Commit Graph
25 Commits
Author SHA1 Message Date
huanghuoguoguo 2a3c76ccbf fix(artifact): reuse bounded package cache and reap soak descendants 2026-11-16 23:50:59 -08:00
huanghuoguoguo 9cd50c9c19 fix(artifact): preserve continuation budgets and isolate process acceptance 2026-11-17 07:48:33 +00:00
huanghuoguoguo 1df989eb20 feat(artifact): reference fixed skill package resources without copying 2026-11-17 07:48:33 +00:00
huanghuoguoguo 01f6cde569 test(artifact): exercise authorized output lifecycle under sustained load 2026-11-17 12:32:17 +08:00
huanghuoguoguo 7a5c9985f9 feat(artifact): authorize publication and release of run outputs 2026-11-17 12:26:46 +08:00
huanghuoguoguo 278667d690 feat(artifact): persist run output files behind authorized handles 2026-11-17 11:10:54 +08:00
huanghuoguoguo 33dd118872 feat(artifact): add run-scoped on-demand attachment reads 2026-11-16 21:24:36 +08:00
huanghuoguoguo b01af050ff feat(artifact): add authorized asset service and lifecycle APIs 2026-11-16 19:41:11 +08:00
RockChinQandmultica-agent de0d8961fd feat(telemetry): report workspace alert usage counters (#3050)
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 15:57:33 +08:00
RockChinQandmultica-agent 4e7127d234 LANG-503: add application operations API and API-key plugin confirmation (#3046)
* feat(api): expose application operations and API key plugin confirmation

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

* test(api): include operation transport capability flags

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

* fix: encode operation binary outputs as standard base64

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

---------

Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 15:15:02 +08:00
8c7ed88a0f fix(alerts): keep alerts opt-in on LangBot Cloud too (LANG-429) (#3043)
Reverts the Cloud default-on from #3012: in two days it mailed about 2.3k
alerts, mostly bot_offline bursts caused by platform-side capacity errors.
Workspaces without saved settings now have alerts off everywhere.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 09:29:50 +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
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
194662cb6d feat(alerts): enable alerts by default on LangBot Cloud (LANG-429) (#3012)
Workspaces without saved alert settings default to alerts on in the
multi-tenant Cloud runtime (existing and newly registered) and stay opt-in
on self-hosted and dedicated instances. A saved choice always wins.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-12 19:55:57 +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
5ef31d965d fix(runner): keep host execution leases proportional to in-flight work (#2924)
* fix(runner): keep host execution leases proportional to in-flight work

Lease maintenance walked every active Workspace binding on each pass. On
cloud (~3k Workspaces) one pass took ~150s, longer than the 120s lease,
so the host reaped its own live runs; finalize_run then failed with
"Cannot transition terminal run ... from failed to completed" and users
got "Request failed" after the reply was generated (LANG-326).

- Add the global execution_lease_scopes(owner, workspace) registry,
  written before any leased row. Each tick renews this host's scopes in
  one statement, renews rows only in its own active Workspaces and reaps a
  bounded batch of expired scopes (dead hosts). Nothing scans all
  Workspaces, so cost no longer grows with tenant count.
- Migration 0046 creates the table and backfills already-leased rows.
- finalize_run lets the owning process replace its own interrupted state.
- Warn when a tick exceeds a third of the lease.

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

* fix(runner): guard lease scope backfill on partial schemas and update table fixtures

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

* test(runner): include lease scopes in runner timestamp Postgres fixtures

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-07 02:50:38 +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
cc96ab5b85 fix(plugin): retry the whole Marketplace sweep when startup is saturated (LANG-323) (#2918)
On cloud.langbot.app the final run failed before touching any Workspace:
fetching Marketplace versions hit BlockingWorkCapacityError while about
1400 bots reconnected, and the once-per-process sweep gave up. Retry the
idempotent run after 60, 120, 300 and 600 seconds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 18:05:31 +08:00
eab66af7e2 feat(api): let plugins and Agents read the Workspace language (LANG-334) (#2916)
- Document workspace.language.get with exposure 'all' and risk 'read' so
  plugins can declare it and Agents/Pipelines can select it as a workspace
  tool. It requires workspace.view, takes no arguments and reads the
  Workspace only from the trusted context. workspace.language.update stays
  member/API-key only.
- Declare the operation in LocalAgent.
- Document it in zh/en/ja plugin Workspace API references and dev-docs.
- Cover grants, denial, invalid input, the unset default and the processor
  tool path.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 17:42:33 +08:00
cb98131afd fix(plugin): retry the Marketplace sweep and confirm every pending install (LANG-323) (#2909)
The first fleet-wide Cloud run hit DNS errors and blocking-executor
saturation while 1400 bots reconnected, and an upgrade whose confirmation
failed was left disabled and was not confirmed by a later run. Retry
upgrade and confirmation, and confirm every listed installation that is
pending confirmation. Tenant-disabled installations keep their confirmed
snapshot and stay off. Document that env overrides persist in
data/config.yaml.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 15:42:14 +08:00
664f0f9e27 feat(plugin): operator sweep to upgrade Marketplace plugins in every Workspace (LANG-323) (#2902)
Cloud tenants can only upgrade plugins one Workspace at a time in the
WebUI. plugin.marketplace_upgrade.plugins lets an operator upgrade listed
Marketplace plugins across all active Workspaces from inside Core, through
the same tenant fence and upgrade_plugin path as the WebUI. Installations
that were enabled have their declared permissions confirmed as an owner
operator, so plugins without a permission declaration are not left
disabled. Tenant-disabled installations stay disabled. An optional
Workspace allowlist supports a canary run.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 14:00:16 +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
ac0622ea3f feat(api): open marketplace search and install to plugins and Agents (#2891)
* feat(api): open marketplace search and install to plugins and Agents

- Add plugin.marketplace.search, a read operation that proxies the configured
  Space plugin search, honours plugin.enable_marketplace and returns only the
  fields needed to install.
- Expose plugin.install.marketplace to plugins and processors as a dangerous
  operation. Plugins and Agents cannot auto-confirm permissions or replace an
  installed plugin; new installations stay disabled until a member confirms.
  GitHub and local installs keep their current exposure.
- Expose task.get so callers can follow installation progress; non-member
  principals receive the public projection, now including
  pending_permission_confirmation.
- Declare the new operations in LocalAgent, document them in zh/en/ja and
  localize the new errors.

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

* test(api): include marketplace search and task status in processor read sweep

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 21:19:30 +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
0582d1b3d4 chore: rename internal docs/ to dev-docs/ and prepare docs site merge
Move the 27 internal design docs (87 tracked files) from docs/ to dev-docs/
to make room for the public documentation site, adjust Docker/fnOS ignores,
refresh the README/AGENTS/ARCHITECTURE references, and land the docs
workflows ahead of the subtree import so they cannot diverge from mirror.

Co-Authored-By: Mika (Multica) <noreply@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-10-27 08:04:20 +00:00