Commit Graph
1002 Commits
Author SHA1 Message Date
huanghuoguoguo 1f227f7aa8 ci: scope PR checks and run the complete matrix daily (#3056)
* ci: streamline pull request checks and run the full matrix daily

Refs #3055

* ci: run runtime contracts only on affected Core checks

* test(ci): distinguish SDK checks from SDK publication

* fix(ci): retain legacy regressions and scope production image builds

* docs(ci): clarify focused regressions and production image selection
2026-11-17 17:31:50 +08:00
Type_rBody 8e20947054 Merge pull request #2963 from langbot-app/fix/2804-plugin-component-guidance
feat(plugins): guide the next step after an install by component kind (#2804)
2026-11-17 01:46:15 +08:00
0a7584be7b fix(web): replace plain "Loading..." route fallback with a styled loading state (#3057)
The lazy-route Suspense fallback was a bare `<div>Loading...</div>`, which
rendered as unstyled text in the top-left corner while the /home and
/wizard chunks loaded. HomeLayout then rendered an empty div during the
Workspace bootstrap.

- Add PageLoading (centered LangBot mark + spinner, theme-aware, fades in
  after 200ms so fast loads show nothing) and ContentLoading.
- Use PageLoading for route fallbacks and HomeLayout's bootstrap phase so
  the two phases look like one continuous state.
- Wrap the /home content area in its own Suspense so the sidebar/header
  stay visible while a page chunk loads.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-17 00:32:27 +08:00
01185b8fc1 feat(web): ask for a GitHub Star after 100 handled executions (#3047)
Show a one-time milestone card once the current Workspace has handled
100 real executions (agent runs + pipeline queries). The answer is kept
per browser; 'Maybe later' snoozes for 7 days, Star/close are final.

The executions endpoint gains summary=false so the count-only probe
skips the dashboard aggregates.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 14:02:05 +08:00
044d2698d4 feat(web): show release notes from langbot.app changelog in the update dialog (#3044)
* feat(web): show release notes from langbot.app changelog in the update dialog

Read the curated changelog feed at https://langbot.app/changelog.json for
update detection and release notes, and redesign the dialog as a timeline
of every release between the running and latest version, grouped by
change type. Clicking the sidebar version opens the current version's
notes. Falls back to the Space-cached GitHub releases when the feed is
unreachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(web): simplify update dialog to match the existing UI

Drop the header gradient, icon tile, coloured type pills and timeline
rail; use plain DialogHeader, neutral type labels and separators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(web): use langbot.app changelog type tags in the update dialog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(web): order pre-release, post and hand-edited Core versions correctly in the update prompt

The sidebar badge and the dialog used two different comparators that
both read PEP 440 suffixes like 4.11.8b1 as 4.11.8, so beta users were
never offered the matching stable release, and the two could disagree.
Unparseable versions such as "custom" were offered every release.

Use one parser (coreVersion.ts) for both: stable X.Y.Z supersedes its
own a/b/rc/dev and -beta.N builds, .postN and +local map to their base
release, and unparseable versions never get an update prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 13:31:53 +08:00
RockChinQandmultica-agent 156820e381 feat(telemetry): add heartbeat usage counters (#3041)
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 02:55:06 +08:00
TyperBody 0d7e583d03 test(web): let the Workspace bootstrap land before switching 2026-11-16 02:51:10 +08:00
TyperBody 0c7ae1149f fix(web): pin the Workspace on an authenticated asset request
The interceptor stamps the header from the global uuid at send time, but the
hook is keyed off the rendered snapshot. A Workspace switch updates the two
separately, so the effect could fire carrying the previous Workspace and land
after the new one, leaving the old bytes in place.

The hook now passes the Workspace it rendered for, and the client honours it.
The spec also waits for the initial Workspace bootstrap before switching,
because that bootstrap writes the server's Workspace over the selector.
2026-11-16 02:33:06 +08:00
TyperBody 5476672f63 feat(web): offer a next step after installing a plugin (#2804)
After an install completes the dialog points at the one thing worth doing
next for each component kind the plugin actually ships, and drops the kinds
that need no guidance. Each row opens the create form directly (?id=new).

A pending permission review renders in the same row, in amber, because the
user still has to act; the extensions list gets the same treatment.

Rebuilt on current master: the branch was 61 commits behind, which left it
on the pre-#3027 http client and made unrelated e2e fail.
2026-11-16 00:35:22 +08:00
482c47d5da fix(auth): stop logging Cloud users out on transient server failures; plugin detail upload button (#3033)
* fix(auth): stop logging Cloud users out on transient server failures

On Cloud, valid sessions were bounced to /login: authentication that
failed for infrastructure reasons (BlockingWorkCapacityError from the
2-thread DNS pool, socket.gaierror, database blips) answered 401, and the
WebUI tears down the session on any 401. Production logs showed 47
capacity and 2 DNS failures answered as 401 in one hour.

- Transient authentication failures now answer 503
  'authentication_unavailable' with Retry-After; credential failures keep 401.
- The resolver pool scales with the main pool (64 workers -> 16 DNS
  workers / 256 queued, minimum 4 / 64) instead of a fixed 2 / 32.
- WebUI retries a request once on that 503, and on a 401 confirms with
  /user/check-token before clearing the session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(plugins): upload button on the plugin detail page

Debug, local and GitHub installs get the same 'Upload to marketplace'
action on their detail page as on the installed-plugin card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-14 23:49:09 +08:00
9ff492ac41 feat(space-share): prompt library and sharing prompts/skills/remote MCPs/local plugins to Space (LANG-439) (#3027)
* feat(space-share): share prompts, skills, remote MCPs and local plugins to LangBot Space (LANG-439)

- Prompt library dialog on Pipeline (messaging) and Agent (agent) prompt
  fields: search, preview, replace/append, favorites tied to the bound
  LangBot Account; share the current prompt for review
- Share to Space for Skills (file list + credential scan) and remote MCP
  servers (credentials become ${VAR} placeholders before anything leaves
  Core; stdio stays private)
- Community MCP installs with required inputs are created disabled and the
  detail page lists the placeholders to fill (unfilled_inputs)
- Locally / GitHub-installed plugins share their exact installed .lbpkg via
  the existing space-upload flow
- docs (zh/en/ja) and dev-docs contract note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(web): use a star for prompt favorites (LANG-439)

The heart is the anonymous extension like; favorites need a LangBot Account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(i18n): call messaging prompts "Messaging" in English (LANG-439)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): marketplace type tiles matching Space, shadcn prompt list (LANG-439)

- the in-app marketplace shows All / Plugins / MCP / Skills as tiles with a
  description and count, plugin components and Runner usage as ToggleGroup
  chips; the Filters popover is gone (same layout as space.langbot.app)
- prompt library rows use the shadcn Item component

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(market): soften extension type tiles; type-tinted selected state

Drop the dark outline/ring on the selected tile. Idle tiles use a muted
fill; the selected tile gets a soft type-tinted fill with an inset ring
and a solid icon badge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(market): use a fixed blue for the selected All tile

The theme primary is near-black in Core, which brought back the dark
selected border on the All tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): switch market type on press and keep results while loading

Type tiles switch on mouse press (keyboard/touch still use click).
Filter changes keep the current cards dimmed until the new page arrives,
and stale responses are ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): apply library prompts in the WebUI language; one-language share note

- Prompt library applies the version matching the WebUI language (exact
  -> same family -> en_US -> original), with a language switcher.
- Share dialogs say one language is enough; other languages are
  translated automatically after upload.
- extractI18nObject falls back across Chinese scripts and to any
  available language instead of rendering an empty label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): one-click LangBot Account binding from share and library

- Share dialogs: the 'bind a LangBot Account' state now has a button that
  starts the bind flow and returns to the same page; the creator-profile
  state gets a button too, with clearer copy.
- Prompt library: when no account is bound, the preview shows a
  'bind to favorite' button instead of only a disabled tab tooltip.
- Shared useSpaceBind hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): friendly empty state for templates; contributors no longer tag

- Empty template list: short, playful 'on their way, be the first to
  share' state (Space /templates, Core prompt library).
- Share dialogs drop the tags field; Space assigns tags during review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(space-share): update an existing item; clearer identifier field

- Share dialogs list the bound account's published items of the same type
  (prompts: same kind) and offer 'Update existing': pick an identifier,
  metadata is prefilled, a changelog is asked for and the submission
  becomes the next version. Sharing something with the same identifier
  preselects update mode.
- The identifier field now looks like a normal input with the fixed
  '@creator/' prefix and a format hint.
- GET /api/v1/space-share/items proxies the Space owner item list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-14 21:20:18 +08:00
huanghuoguoguo ac0b1eaac5 feat: workspace sandbox selection, lightweight validation and limits (#2882)
* feat: configure workspace sandbox backends and E2B templates

* fix: accept user supplied E2B templates without listing API

* feat: separate sandbox test runs and add workspace resource limits

* feat(box): pin workspace backends and validate E2B templates

* fix(box): validate user templates without modifying E2B services

* feat(box): lightweight E2B validation and workspace limit enforcement

* test(box): retain identity cleanup guard for workspace backends

* style(box): satisfy checks on migrated sandbox tests

* fix(box): preserve SDK startup and pin MCP sandbox configuration

* fix(box): retain legacy bound-session execution contract

* fix(mcp): reject untrusted sandbox selection overrides

* test(web): match Workspace settings heading exactly

* test(runner): wait for the managed runtime handshake

* test(runner): align boot fixture with runtime readiness

* fix(box): keep default configuration usable with the published SDK

* fix(box): preserve E2B proxy routing on sandbox reconnect
2026-11-12 21:13:45 +08:00
3006a70c30 feat(alerts): Workspace failure alerts via email, LangBot Space and webhooks (LANG-429) (#3009)
* refactor(email): move invitation mail config to a shared top-level email section (LANG-429)

workspace.invitations.email becomes the instance-wide email section used by
invitations and alerts. LoadConfigStage migrates the legacy section on
startup and WORKSPACE__INVITATIONS__EMAIL__* stay aliases of EMAIL__*.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(alerts): Workspace failure alerts via email, LangBot Space and webhooks (LANG-429)

Pipeline errors, model call failures and adapter crashes open deduplicated
incidents that notify owners and admins through the instance mail service,
the official LangBot Space sender, or selected webhooks, with reminders,
recovery notices and per-Workspace caps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): Alerts settings panel (LANG-429)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* docs: alerts guide and shared email settings (LANG-429)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(alerts): opt-in alerts, dashboard shortcut and LangBot Account sign-in prompt (LANG-429)

Alerts start off for every Workspace. The dashboard Failed card offers an
Enable alerts shortcut while failures exist and alerts are off, and the
alert settings prompt a LangBot Account sign-in when neither a mail service
nor a Space-linked admin can send email; the bind flow returns to Alerts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(alerts): LangBot Account wording and docs page count (LANG-429)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(docs): count the alerts pages per locale (LANG-429)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(docs): include alerts pages in sitemap and static build counts (LANG-429)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-12 18:30:46 +08:00
0b7c137f33 fix(plugin): stop member-driven install paths from stalling on permission confirmation (#2961)
* fix(plugin): stop member-driven install paths from stalling on permission confirmation

- Runner/event-processor installs from the Agent and Pipeline forms and
  knowledge-engine installs from the knowledge base form now auto-confirm
  declared permissions, so their registration polling no longer times out.
- RAG migration confirms the plugins it installs on behalf of the member
  running it and reports plugin_permission_confirmation_required otherwise.
- Upgrading a confirmed compatibility-mode installation to another
  compatibility-mode package keeps it enabled with the full legacy grant set.
- The WebUI install task reads pending_permission_confirmation, the key the
  backend actually writes; the marketplace task clears it after auto-confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(web): expect auto-confirm on inline marketplace installs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-09 22:08:41 +08:00
a93b2c6e46 fix(web): add missing common i18n keys; fix plugin-upgrade e2e assertion (#2956)
* fix(web,plugin): allow plugin page modals, cache headers for page-api, missing common i18n keys

Salvaged from #2936 (core fix already landed via #2953):

- plugin pages: add `allow-modals` to the iframe sandbox so confirm()/alert()
  in plugin management pages are no longer silently ignored. No
  `allow-same-origin`; the null-origin isolation is unchanged.
- page-api: mark proxied reads `private, max-age=5` and writes
  `private, no-store`; error responses are unchanged.
- i18n: add common.refresh / clickToCopy / finish / operationFailed /
  optional to all 8 locales; they are referenced in the UI but missing
  from every locale.

The WebSocketClient reconnect change from #2936 is intentionally not
taken: transport failures already retry indefinitely with a 15s cap, and
pre-handshake server errors stop by design.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(e2e): assert the upgrade summary instead of a removed progress bar; defer modals/cache headers

- plugin-upgrade-recovery: the done state replaces the progress block
  with the success summary, so asserting aria-valuenow=100 on the bar
  fails (also failing on master). Assert the bar is gone instead
  (from #2936).
- Drop iframe `allow-modals` and page-api `Cache-Control` from this PR:
  per the #2936 close-out, modals for third-party plugin pages need a
  separate security review, and Cache-Control on a POST-only route has
  no practical effect. Kept on branch fix/plugin-page-modals-cache-hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix: restore plugins router files to the PR base

The previous commit restored them from a stale local ref.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-09 20:38:10 +08:00
2a25bc13fd feat(monitoring): record which pipeline rule stage dropped a message (#2925)
Access control, group respond rules, content filter/ignore rules and rate
limit used to interrupt silently: the user message was recorded as success
with no run, reply or error. Mark such interrupts as
handled_by=filtered:<StageName>, log the stage, and show a "stopped by
pipeline · <rule>" badge in monitoring executions.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-07 01:28:01 +08:00
759ab65af2 feat(web): unify tool pickers as grouped collapsible cards (LANG-333) (#2908)
Tool selectors in Pipelines and Agents now share the Workspace operations
look: per-group collapsible cards with a selected/total counter and a
group-level select-all checkbox.

- Add SelectableGroupCard and ToolGroupChecklist under tool-groups/.
- AgentApiToolPicker (event/bot/sandbox/MCP/plugin/skill tools) uses the
  collapsible group cards.
- Runner "Select tools" dialog and the dynamic-form tools selector use a
  searchable provider-grouped checklist.
- Move tool source grouping helpers into tool-groups/toolGroups.ts.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 15:26:12 +08:00
776e8eade1 feat(web): simplify plugin install progress dialog (LANG-331) (#2905)
Show only the current step with overall progress while running, and a
single result banner when done or failed, instead of listing every
install stage.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 14:48:41 +08:00
7a779cb708 feat(web): show adapter icon in plugin config bot selector (LANG-328) (#2904)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 14:36:52 +08:00
ff7482fc7d feat(monitoring): show messages handled by plugins in monitoring (#2897)
* feat(monitoring): show messages handled by plugins in monitoring

A plugin can take a message over with prevent_default() and answer through
ctx.reply / send_message / invoke_llm. Monitoring then showed the user
message as handled by the pipeline Runner, with no reply, no LLM call and
no delivery errors (LANG-320).

- monitoring_messages.handled_by (0045): runner:<id> | plugin:<author>/<name>;
  plugin-handled messages no longer claim the Runner.
- Attribute prevent_default to the plugin reported by the Runtime, falling
  back to a single emitted plugin for older Runtimes.
- Record ctx.reply and plugin send_message as assistant messages, with
  PluginReplyError / PluginSendError on failure; delivery behaviour is
  unchanged and monitoring failures are swallowed.
- Link plugin-level LLM calls and sends to the triggering message through
  origin_query_uuid. The Host opts in per event (origin_attribution), so
  plugins never send the new field to Hosts with strict schemas. Used for
  attribution only, never for authorization.
- WebUI: "Handled by plugin" badge in the execution list and detail.
- Docs (zh/en/ja) and dev-docs contract note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(migrations): account for the 0045 handled_by index on downgrade

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(postgres): register the capacity requester instead of patching _build_provider

#2896 builds providers on a staged ModelManager during load_models_from_db,
so the per-instance _build_provider patch no longer applied and the populated
Cloud startup test loaded zero providers on master. Register a network-free
requester that the staged manager inherits instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 02:04:33 +08:00
d85bf8f350 feat(cloud): let invited LangBot Space members sign in to dedicated instances (#2888)
* feat(cloud): let invited LangBot Space members sign in to dedicated instances

Dedicated Cloud instances (edition=cloud on OSS persistence) now accept
LangBot Account logins from people the buyer invited on LangBot Space.

- On Space login Core asks Space for the account's role on this instance
  (instance_id = Pod UUID). Invited accounts are created and joined to the
  singleton Workspace with that role; uninvited ones get the new
  space_dedicated_member_required error.
- Space never grants owner and Core never changes the local owner, password
  accounts, or locally invited members. Only Space-managed accounts
  (Space-bound, no password, non-owner) are reconciled.
- A lookup failure never removes access; only an explicit "not a member"
  does. A 10-minute maintenance task re-checks Space-managed members with
  their own Space token so removals apply without a new login.
- Dedicated instances always offer LangBot Account login, so members can
  sign in to instances that were initialized with a password.
- Workspace settings point dedicated owners to Space for member management;
  the local password invitation flow is unchanged.
- Self-hosted OSS (edition != cloud) and Cloud v2 (mode=cloud) are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(i18n): use single quotes in dedicated member strings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-05 23:37:28 +08:00
aba838f79b fix(workspace): enforce Cloud member quota on invitations (#2884)
Cloud Workspaces could still invite members after reaching the plan's
members.max limit because Core's invitation API never consulted it.

- Project members.max into the Workspace limitation as max_members,
  mirroring Control Plane semantics (absent or <= 0 means unlimited).
- Reject invitation creation when active members plus pending
  invitations fill the plan, and reject acceptance when active members
  already fill it (e.g. after a downgrade), with member_limit_reached.
- Disable the invite form in Workspace settings when the quota is full
  and show an upgrade-plan CTA that opens the Cloud plans dialog.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-05 18:11:48 +08:00
RockChinQandClaude Opus 5.5 55be792a3d fix(ci): restore i18n key parity and tolerate Context7 refresh cooldown (#2883)
- Add the workspace operation and assistant workspace-tool strings missing
  from zh-Hant, ja-JP, es-ES, ru-RU, th-TH and vi-VN, so the i18n key check
  passes again.
- Treat Context7's "too-early" refresh reply as a skipped refresh rather
  than a failure; the next docs push after the cooldown refreshes again.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:06:11 +08:00
huanghuoguoguoandClaude Opus 5.5 97ef5b457d feat(api): provide Workspace and execution API foundations (#2648)
Unified Workspace and execution APIs for LangBot (#2639).

- Versioned Application API shared by HTTP, MCP, the Workspace assistant
  and plugins, with one authorization and error contract.
- Execution API facade for every plugin and Runner action.
- Plugin installation permissions: manifest declarations, member
  confirmation, capability ceilings, compatibility mode, revocation and
  audit. Typed Workspace API in the plugin SDK.
- Processor tool configuration: workspace operations, event and bot tools,
  default tool sets for new Agents and Pipelines, and sensitive-tool
  warnings.
- Plugin permission picker in the WebUI; LocalAgent declares every
  plugin-callable permission.
- Documentation for plugin permissions and the Workspace API in English,
  Chinese and Japanese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:36:22 +08:00
db17132728 fix(web): add missing ASR/TTS model tab labels to es/ru/th/vi locales (#2859)
#2857 added models.asrTab and models.ttsTab to en-US, ja-JP and zh-*,
which broke the i18n key check on master.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-04 01:29:31 +08:00
532b8ce204 feat(agent): add cross-platform interactive cards for QQ, WeCom, Feishu and DingTalk (#2787)
* feat(agent): add cross-platform interactive card tool

* fix(agent): create pipelines with selected runner defaults

* fix(agent): enable reliable cross-platform card interactions

* feat(dingtalk): deliver A2UI cards and restore agent replies

* Fix DingTalk A2UI form submissions and agent replies

* Restore LangBot branding on DingTalk A2UI cards

* Use compatible Markdown link in DingTalk A2UI branding

* Place LangBot branding above DingTalk card content

* Stream DingTalk replies without a source message

* Move DingTalk branding into compact card footer

* fix(wecombot): handle native select card callbacks

* fix(wecombot): stream replies after HITL cards

* fix(dingtalk): show submitted HITL choices in cards

* fix(lark): stream replies after HITL submissions

* fix(plugins): refresh LocalAgent source hashes

* fix(dify): merge HITL resume streaming into in-tree plugin

* feat(interactions): resume runner in place after card submission

* fix(interactions): respect live adapter APIs and preserve deadlines

* fix(ci): lock blocking interaction SDK for dependent checks

* test(runner): keep legacy SDK probe importable

* fix(interactions): align adapter manifests and close timed-out streams

* fix(agent): avoid duplicate replies and enable LocalAgent cards

* chore(plugins): sync LocalAgent catalog version

* refactor(agent): unify blocking interaction callbacks and adapters

* chore(deps): pin blocking interaction SDK revision

* test(agent): remove obsolete async fixture mark

* test(interaction): update legacy admission assertions

* fix(qqofficial): keep card callbacks responsive

* fix(runner): keep blocking card interactions alive

* ci(plugins): expect SDK 0.7.20 in Runner workflows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* ci(plugins): test coding Runners against SDK 0.7.20

Claude Code and Codex now call ctx.request_interaction, first released in 0.7.20.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(discord): deliver guild interaction cards to the originating channel

Pipeline group conversations are keyed by guild id, so send_interaction
targeted the guild and Discord returned Unknown Channel. Resolve the channel
from the message being answered, edit cards in that channel, and report the
card's conversation on callbacks so the Host scope check matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: RockChinQ <rockchinq@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-03 21:45:49 +08:00
43c0ba7e44 feat(speech): implement TTS and STT model layer and pipeline stages (LANG-251) (#2839)
* feat(speech): implement TTS and STT model layer and pipeline stages (LANG-251)

Co-authored-by: multica-agent <github@multica.ai>

* fix(speech): fix invoke signatures and provider lookup in speech stages and model testing

Co-authored-by: multica-agent <github@multica.ai>

* feat(speech): rename STT to ASR, improve TTS voice parameter handling and failure recovery

Co-authored-by: multica-agent <github@multica.ai>

* fix(persistence, lint, web): fix migration revision id, legacy table check, ruff duplicates, and frontend types

Co-authored-by: multica-agent <github@multica.ai>

* fix(speech): restore migration and CI contracts

Co-authored-by: multica-agent <github@multica.ai>

* fix(pipeline,ui): fix select dropdown width gap, add speech to guided tour, and configure show_if for speech options

Co-authored-by: multica-agent <github@multica.ai>

* feat(speech,openclaw): support silk audio transcoding, graceful fallback, duration estimation, and multi-lang deploy docs

Co-authored-by: multica-agent <github@multica.ai>

* fix(audio): enhance ffmpeg executable detection via venv and imageio_ffmpeg

Co-authored-by: multica-agent <github@multica.ai>

* fix(provider): improve LiteLLM error classification and avoid falling back to Unknown error

Co-authored-by: multica-agent <github@multica.ai>

* fix(openclaw): serialize voice_item attributes and improve transcoding fallback logging

Co-authored-by: multica-agent <github@multica.ai>

* fix(audio,openclaw): handle transient TMPDIR deletion and add size attribute to voice_item

Co-authored-by: multica-agent <github@multica.ai>

* fix(openclaw): download and convert inbound voice messages and align voice sending protocol

Co-authored-by: multica-agent <github@multica.ai>

* fix(models): redesign add model popover tabs layout and include ASR/TTS models in provider counts and scanning

Co-authored-by: multica-agent <github@multica.ai>

* fix(audio): decrypt and transcode wecombot voice to mp3, align openclaw weixin voice delivery

Co-authored-by: multica-agent <github@multica.ai>

* fix(wecombot): transcode outbound voice to silk and support voice_delivery mode

Co-authored-by: multica-agent <github@multica.ai>

* fix(discord,web): map audio attachments to voice for ASR, prefer base64 voice in webui

Co-authored-by: multica-agent <github@multica.ai>

* fix(telegram): deliver voice replies in streaming and non-streaming modes with quote origin

Co-authored-by: multica-agent <github@multica.ai>

* feat(dingtalk): route voice messages through pipeline ASR and send TTS replies as voice

Inbound DingTalk audio now arrives as a Voice component with its duration,
so the pipeline speech recognition switch decides how it is transcribed.
DingTalk's own recognition text is used only when the audio cannot be
downloaded.

Outbound Voice components are transcoded to ogg/opus, uploaded as voice
media and sent as native sampleAudio messages in both the omni and legacy
adapters. Audio over 60 seconds, or audio that cannot be transcoded or is
rejected as a voice message, is sent as a file instead. Voice parts no longer
leak into the reply text as "[Voice]".

Also estimate ogg durations from the granule position and ignore non-audio
MIME hints when extracting voice bytes, so ffmpeg can probe the input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(ci): include speech model counts in provider responses and fix lint/image build

- Copy every count returned by get_provider_model_counts into the provider
  payload instead of indexing asr_count/tts_count, and update the test fakes
  to return the speech model counts.
- Install libc6-dev in the runtime image so the pilk audio extra can compile.
- Apply ruff and prettier formatting required by the lint jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(e2e): expect the speech step in the pipeline setup guide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:51:22 +08:00
RockChinQandmultica-agent 62c24c43e3 fix(i18n): add missing spaceUpload keys to all locales (#2800)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-28 18:45:57 +08:00
4b537973f9 feat(plugin): upload debug plugin to LangBot Space with optional GitH… (#2612)
* feat(plugin): upload debug plugin to LangBot Space with optional GitHub sync

- SDK: reusable in-memory .lbpkg packaging + git sync helper (local git by default, optional repo/token override)
- routing: space-upload config/upload/git-sync endpoints; debug plugins resolved via OSS bridge without touching get_plugin_info
- frontend: debug-card entry + upload dialog with multi-language metadata, icon upload and changelog
- i18n across 8 locales; operation-trace + action allowlist entries

* fix(plugin-space-upload): stable dialog width, single-line locale tabs, broader error surfacing

- fixed dialog width so toggling the GitHub section no longer resizes it
- language tabs render on one line (horizontal scroll when needed)
- surface the real upload/git error message (msg field) instead of [object Object]
- hint that a missing GitHub repo is auto-created when a token is provided

* fix(plugin-space-upload): narrow dialog and reset sm:max-w clamp

The base DialogContent applies sm:max-w-lg at the sm breakpoint, which overrode the unprefixed max-w-none and clamped the upload card to 32rem on desktop. Set an explicit sm:max-width and size the card to ~36rem. Locale tabs now wrap instead of scrolling horizontally.

* fix

* fix(plugin-space-upload): address CI and UX feedback

- narrow the upload dialog to ~36rem and reset the sm:max-w clamp
- guide the publisher to the Space review page after a successful upload
- drop the redundant null comparison flagged by code quality
- update the operation-action expectation and Space/LangBot Account wording
- ruff format the touched API modules

* feat(plugin-space-upload): public repo, editable author/license, card red dot

* fix(market): replace yellow download count with update available badge

* style(market): unify installed and update indicators into badges

* feat(plugin): redesign debug card banner, style debug icon, and prioritize debug plugins

* feat(plugin-space-upload): simplify upload dialog layout, add creator verification and market redirection

* fix(i18n): use LangBot Account terminology in Space upload dialog

Co-authored-by: multica-agent <github@multica.ai>

* style(i18n): reflow reworded locale strings for prettier

Co-authored-by: multica-agent <github@multica.ai>

* test(utils): stop timing out the pattern-count cap test on loaded runners

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Hyu <chenhyu@proton.me>
Co-authored-by: RockChinQ <rockchinq@gmail.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-10-28 18:23:09 +08:00
RockChinQandmultica-agent 3a77306c3c feat(plugins): consolidate official plugins with independent releases (LANG-180) (#2797)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-28 17:32:24 +08:00
Hyu d6bce3228b refactor(skill): remove legacy host scan endpoint and client method 2026-10-25 00:08:25 +08:00
彼方 38ec3cc9be Merge pull request #2759 from langbot-app/feat/onebot-image-url-refresh
feat(onebot): refresh expired image URLs in history and model requests
2026-10-23 15:22:32 +08:00
RockChinQ 07466c9d99 copy: call every plan 计划 instead of 套餐 (#2763)
The Chinese copy used 套餐 (package) for the subscription plan in the cloud
banner, the model errors and the multi-tenant docs. Name the same concept 计划
everywhere; Traditional Chinese keeps 計劃.
2026-10-23 12:54:53 +08:00
RockChinQandmultica-agent b8f7b295ba fix(deps): patch Dependabot vulnerability alerts (Python + web) (#2762)
Python (pyproject.toml + uv.lock):
- Pillow >=13.0.0 (52 alerts closed, including 4 critical, 33 high, 15 medium)
- pyjwt >=2.15.0 (15 alerts closed, including 1 critical, 8 high, 6 medium)
- aiohttp >=3.14.4 (11 alerts closed)
- virtualenv -> 21.14.13 (12 alerts closed)
- mcp >=1.30.0,<2.0.0 (4 alerts closed)
- soupsieve -> 3.0.4 (4 alerts closed)
- urllib3 >=2.8.0 (3 alerts closed)
- transformers -> 5.20.2 (3 alerts closed)
- anyio -> 4.14.2 (2 alerts closed, including 1 critical)
- oauthlib -> 4.0.0 (2 alerts closed)
- certifi >=2026.10.19 (1 critical alert closed)
- uv >=0.13.4 (1 critical alert closed)
- sentence-transformers -> 6.2.0 (1 critical alert closed)
- cryptography >=50.0.0, fsspec -> 2026.9.0, h2 -> 4.4.1, hpack -> 4.2.0
- langgraph-sdk -> 0.4.8, litellm >=1.88.6, Mako >=1.4.2, multidict -> 7.1.0
- opentelemetry-api -> 1.45.1, pip >=26.2.0, setuptools -> 84.2.1, torch -> 2.14.1, werkzeug -> 3.1.9
- PyPDF2: replaced with pypdf>=6.0.0 (deprecated PyPDF2 had no upstream fix; closes 1 medium alert)

Web (web/package.json + dual lockfiles npm + pnpm in sync):
- axios 1.17.0 -> 1.20.0 (22 alerts closed)
- vite 8.0.16 -> 8.3.4 (5 alerts closed)
- react-router / react-router-dom 7.17.0 -> 7.18.4 (5 alerts closed)
- brace-expansion -> 1.1.21 & 5.0.12 (4 alerts closed)
- js-yaml -> 4.3.2 (3 alerts closed)
- follow-redirects -> 1.16.1 (2 alerts closed)
- nanoid -> 3.3.18 / 3.3.20 (2 alerts closed)
- postcss -> 8.5.31 (2 alerts closed)
- @humanfs/node -> 0.16.8 (1 alert closed)
- source-map-js -> 1.2.2 (1 alert closed)

Unfixable upstream (pending ChromaDB release):
- chromadb (4 open alerts: GHSA-36p7-vc44-83pf, GHSA-2wm9-hf6c-p5cr, GHSA-xph7-9rjv-w5fr, GHSA-f4j7-r4q5-qw2c; vulnerable range <=1.5.9, latest published version is 1.5.9 with no patched release).

Verified: uv sync + core imports, pytest test suites, pnpm build, pnpm lint.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-23 12:23:50 +08:00
RockChinQ 39645cdd84 fix(web): keep the dedicated-environment link on a custom Cloud banner (#2760)
* fix(web): keep the dedicated-environment link on a custom Cloud banner

The Cloud banner can carry per-language copy, but the custom-copy branch
rendered that text alone: everything else in the banner swaps the built-in
message for an override so the operator can say what is actually happening,
and doing so silently dropped the link to the dedicated environment -- the only
destination that turns a warning into an upgrade.

Render the dedicated link after the override when show_links is on, using new
cta_dedicated copy in every locale so the second half of the sentence reads as
a call to action rather than repeating the environment name.

* test(web): expect the new banner CTA copy in every locale
2026-10-23 11:43:15 +08:00
BiFangKNT baddaa2b74 feat(onebot): refresh expired image URLs in history and model requests
- Cache NapCat rkeys by type and refresh only when their TTL expires
- Renew image URLs through get_msg for other OneBot v11 implementations
- Refresh session views, Runner history, and each model request attempt
- Isolate caches by connection without downloading images or rewriting history
2026-10-23 08:41:50 +08:00
RockChinQandmultica-agent a8dd85063f LANG-145: hide passkey UI unless the core reports it is supported (#2754)
* fix(adapters): stop SSRF and arbitrary local file reads in media handling

The platform adapters fetch URLs and open paths that come from inbound
messages, so both are attacker-influenced.

New guard module pkg/utils/outbound_url.py:

- assert_safe_outbound_url: checks the scheme, rejects literal private /
  loopback / link-local / reserved / multicast addresses, and resolves the
  hostname so a public-looking name pointing at an internal address is refused
  too. Optional allowed_domains confines a fetch to a known prefix.
- assert_safe_local_media_path: resolves a caller-supplied path and requires it
  to stay inside the media roots (data dir + temp dir), so symlinks and .. cannot
  escape. Directories are refused.

Wired in:

- DingTalk send_message: session_webhook is taken from the inbound event and was
  POSTed verbatim, so a forged event could redirect reply content (including LLM
  output) to any host. Now restricted to dingtalk.com.
- DingTalk send_attachment: component.url was fetched with no destination check;
  now goes through the SSRF guard, which also covers cloud metadata.
- DingTalk upload_image_media: caller-supplied file_path was opened directly; now
  confined to the media roots.
- Slack attachment_bytes: component.path was opened directly and uploaded to the
  channel (arbitrary file exfiltration); now confined to the media roots.
- Slack download_media: redirects were followed with no destination check. Every
  hop is now validated, the hop count is bounded, and a redirect off the Slack
  domain drops the bearer token.

Tests: 25 new cases for the guard (internal address forms, scheme rejection,
suffix impostor, traversal, symlink escape, directory). The Slack credential test
now stubs DNS because the guard resolves before fetching, and asserts
allow_redirects is False for every case since redirects are handled manually.

Co-authored-by: multica-agent <github@multica.ai>

* fix(web): hide passkey UI unless the core reports it is supported

The core refuses every passkey route on a cloud deployment (403
edition_unsupported) and reports passkey_login_enabled/passkey_supported as
false. The WebUI still rendered the controls:

- Login page read 'passkey_login_enabled !== false || passkey_supported', so an
  absent flag counted as enabled. It now requires an explicit true.
- The account settings panel always rendered the passkey section and called
  GET /passkeys on open, which 403s on cloud. It now reads the capabilities
  first, skips the list call when unsupported, and does not render the section.

Also drop the client-supplied origin from both passkey options requests. The
server resolves the WebAuthn RP ID and expected origin from api.webui_url /
api.webhook_prefix, so sending window.location.origin was dead weight that would
invite a future handler to trust it again.

Verified: tsc --noEmit clean, eslint clean (only two pre-existing hook-dep
warnings), pnpm build succeeds.

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
2026-10-22 21:26:33 +08:00
RockChinQandmultica-agent d45b0a3957 feat(cloud): add configurable Cloud-only WebUI notice banner
Cloud deployments need a way to tell readers what is happening to the
instance they are using (maintenance windows, service notices) without
shipping a release per notice.

Add a cloud.banner config block (switch, tone, dismissal, link targets and
per-language copy) and expose the resolved banner on the unauthenticated
/api/v1/system/info payload so the WebUI can render it before login. The
banner resolves to null on OSS deployments, so a self-hosted copy of
config.yaml never shows managed-service copy. Copy is plain text; only
absolute http(s) link targets are rendered.

The WebUI renders it once from the root layout, offsets the fixed app shell
and the wizard through --cloud-banner-height, and keeps a dismissal bound to
the notice it dismissed so new copy reappears.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 16:26:43 +00:00
Chin Rockandmultica-agent 6bea0f15e1 fix(web): outline the plan upgrade control and call the grant 模型积分
Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 10:32:21 +00:00
Chin Rockandmultica-agent 61c59687c2 fix(web): satisfy prettier and align the switcher layout spec after the upgrade control
Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 08:06:42 +00:00
fa2913a986 feat(web): rename credits label to model credits, shorten workspace switcher, add upgrade button
- creditsLabel: 每月赠送积分 → 模型积分 (zh), Monthly credits → Model credits (en), 毎月のクレジット → モデルクレジット (ja)
- creditsHelp: append note that own model providers remain usable after credits run out, all locales
- WorkspaceSwitcher trigger: cap workspace name to 6rem, remove justify-start
- HomeSidebar: add ArrowUp upgrade icon button next to workspace switcher (cloud_projection only), opens CloudPlansDialog lazy-loaded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 07:45:56 +00:00
BiFangKNT 726ad5530f fix(web): omit referrer when loading message images
Set no-referrer on message thumbnails and previews to prevent
QQ image requests from returning 400 and triggering ORB.

Add browser coverage for image loading and request headers.
2026-10-21 12:03:00 +08:00
RockChinQandmultica-agent d13ae56ea5 fix: bot routing setup and busy-session response checks (#2728)
Apply group response rules before busy-session steering. Initialize usable private-message and group-mention routes for new bots, including Wizard-created pipelines, and preserve member-configured rules across saves and retries.

Fix empty pipeline configuration, refresh the processor sidebar after automatic creation, and show creation feedback. Align routing regressions and use Node 24 for the browser CI job.

Correct the task's erroneous agent attribution while preserving every code tree and the original human contribution.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 21:22:53 +08:00
Chin Rockandmultica-agent c28ae761ac fix(web): format migration diagnostics and tolerate wrapped translations
Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 09:09:41 +00:00
Chin Rock 40d40204cf fix(install-diagnostics): Sanitize plugin installation network diagnostics (LANG-132) 2026-10-20 07:53:56 +00:00
RockChinQandmultica-agent a10a6eb780 fix(ci): provision real-stack browser dependencies and disambiguate runtime assertion (#2724)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 00:08:14 +08:00
RockChinQandmultica-agent d9e4e7d9df fix(pipeline): decouple Runner from extension permissions (LANG-54) (#2723)
* fix(pipeline): decouple runner from extension allowlist

Co-authored-by: multica-agent <github@multica.ai>

* fix(pipeline): complete runner diagnostics and real runtime coverage

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
2026-10-19 23:07:11 +08:00
Zhang Bowen 9ac9958391 fix(web): hide revoked API keys in integration settings (#2714) 2026-10-18 17:26:39 +08:00
BiFangKNT 57077740bd chore(merge): sync master and preserve monitoring test coverage 2026-10-18 12:43:44 +08:00
BiFangKNT b9acf7d9b0 fix(ui): prevent closing selects from stealing focus
Preserve focus when another control becomes active during the close animation.
Add regression tests for filter persistence, Escape, and custom range dialog focus.
2026-10-18 10:21:48 +08:00