Commit Graph
5685 Commits
Author SHA1 Message Date
63ac89a5f1 feat(OASlackBridge): post user details in the takeover thread (#2914)
After the Slack root message, reply in its thread with the user's full
OpenID, session ID, Official Account bot, message count, first contact
time and the most recent user/AI messages (history_messages, default 10,
max 50). Data comes from the read-only monitoring.messages Workspace
operation, now declared; without the grant the details fall back to the
basic fields with a hint. Never blocks the takeover. Toggle with
send_user_details. Bump to 0.4.0.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 17:34:26 +08:00
RockChinQandmultica-agent e18195bc7c fix(plugins): name the installation binding instead of re-creating an invocation (#2915)
ai-source-v2 finding F-01 for RockChinQ/GitHubKit 0.2.3: the background poller
wrapped its whole lifetime in bind_invocation(handler, config, binding), so
after the scheduling command ended the loop still ran under a freshly created,
active invocation - tenant config, GitHub token and Host authority retained
outside the SDK's invocation lifetime.

Background Host calls (plugin KV read/write and message pushes) now pass the
immutable installation binding as their explicit action_context. call_action
validates it against the live connection (Workspace, installation, revision and
artifact), so the Host decides whether that installation may still act and
refuses a detached or superseded revision. The poller task starts in an empty
Context and keeps no invocation and no config snapshot; GC-visible token,
interval and language settings are re-read when the poller is (re)created.

Co-authored-by: multica-agent <[email protected]>
2026-11-06 17:19:20 +08:00
RockChinQandmultica-agent f66adde797 fix(plugins): deliver scheduled reminders with an explicit installation binding (#2912)
ai-source-v2 finding F1 for langbot-team/ScheNotify 0.2.7: the detached
scheduler wrapped its whole lifetime in bind_invocation, so a reminder fired
after the scheduling call ended still ran under a freshly created, active
invocation - authority re-established outside the SDK's invocation lifetime.

Each delivery now passes the immutable installation binding as the explicit
action_context of the Host action. call_action resolves and validates that
context against the connection binding (Workspace, installation, revision and
artifact), so the Host - not the plugin - decides whether this installation may
still act, a superseded revision or detached installation is refused, and the
loop needs neither an invocation nor a configuration snapshot. The manifest and
permissions are unchanged: delivery is still the bot.message.send capability.

Co-authored-by: multica-agent <[email protected]>
2026-11-06 16:53:59 +08:00
a814616204 feat(OASlackBridge): notify the Official Account user when takeover starts and ends (#2913)
* feat(OASlackBridge): notify the Official Account user when takeover starts and ends

Add start_notice / end_notice config (default Chinese texts, empty
disables). The start notice is sent after the Slack root message; the end
notice after !close or an observed expiration, before the AI reply. No
end notice past the 48-hour window or when the expired user's message
starts a new takeover. A failed notice never undoes the takeover change
and is reported in the Slack thread with the readable errcode.

Bump to 0.3.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

* docs(OASlackBridge): rewrite README for end users

Step-by-step setup (Official Account auto mode, Slack app scopes/events,
finding the channel ID, permissions, processor subscription), staff usage,
troubleshooting and limits, in en and zh_Hans.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 16:35:29 +08:00
91ff57538b fix(officialaccount): dispatch every message in auto mode (#2911)
In auto mode the callback skipped dispatching any message from a user
who still had an entry in user_msg_queue. That entry is only cleared when
an AI reply is sent, so a message that never gets one (for example a
human-takeover keyword handled by a plugin with prevent_default, with the
staff reply sent through send_message) left the user silenced until the
bot was reloaded: later messages got an immediate 'success' and never
reached the pipeline or the event log.

Only passive mode needs to treat follow-ups as fetch requests; auto mode
pushes replies through the customer service API, so dispatch every
message there. The queued fallback reply (customer service unavailable)
is still returned on the next message.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 15:53:29 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 15:42:14 +08:00
RockChinQandmultica-agent ba08a6d082 fix(plugins): refuse control characters before building a request target (#2910)
ai-source-v2 finding F1 for langbot-team/URLSummary 0.1.10: the URL extraction
pattern keeps control characters (a DEL survives the trailing punctuation
strip), so http.client raised InvalidURL quoting the whole relative request
target — query string included. The redaction boundaries only matched absolute
URLs, so a signed query reached the shared log verbatim.

Refuse control characters in validate_url before a request target exists,
skip such URLs during detection, and log only an exception class instead of
raw exception text (and frames only, not traceback.format_exc() tail).

Co-authored-by: multica-agent <[email protected]>
2026-11-06 15:34:14 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 15:26:12 +08:00
RockChinQandmultica-agent 12f7b315f5 fix(plugins): send the QWeather API key as a request header (#2907)
The API key travelled as a `key` query parameter. httpx logs
`HTTP Request: GET <full url>` at INFO level, so a successful request wrote
the installation's credential into the shared plugin runtime log (ai-source-v2
finding F-01 for langbot-team/QWeather 0.1.7). QWeather supports API KEY
authentication through the `X-QW-Api-Key` header, so pass the key there and
keep it out of the URL, and stop logging whole provider payloads at debug
level.

Co-authored-by: multica-agent <[email protected]>
2026-11-06 15:20:52 +08:00
c81070765f feat(adapters): mark legacy LINE adapter as legacy (LANG-332) (#2906)
The LINE source adapter is superseded by the EBA `line-omni` adapter but
was missing `spec.legacy: true`, so the bot form and wizard showed two
LINE entries side by side. Mark it legacy so it moves into the collapsed
legacy group like the other EBA-superseded adapters, and add a test that
every source adapter with an EBA replacement is marked legacy.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 15:15:44 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 14:36:52 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 14:00:16 +08:00
RockChinQandmultica-agent 3ccccff1f7 fix(plugins): create shared asset gateway listeners tenant-free (#2901)
CozeAgent, DifyAgent and N8nAgent built their shared asset gateway listener
and per-connection service tasks inside the registering invocation, so the
listener's accept handle retained the first caller's invocation Context
(configuration plus revocable authority) and later connections inherited it.
Create the listener and connection tasks in an explicit empty Context; an
invocation Context is entered only per validated run token. Applies the same
fix already used by DashScopeAgent and LangflowAgent, with a regression test.

Co-authored-by: multica-agent <[email protected]>
2026-11-06 13:39:13 +08:00
c21d432a9d chore(deps): pin langbot-plugin 0.7.22 from PyPI (#2900)
SDK 0.7.22 contains the commits Core already tracked from SDK main
(#200 unified API layer, #216 plugin-handled event attribution, #211,
#206), so drop the git source and pin the released package.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 11:57:13 +08:00
f78a5176d5 chore(plugins): bump versions of plugins changed since their Marketplace release (LANG-323) (#2899)
Every listed version still carries the old langbot-plugins repository link,
and many also have unpublished source changes. Bump the patch version so
each can be republished from the LangBot repository. SDK requirements stay
as ranges.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 11:57:09 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

* 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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 02:04:33 +08:00
RockChinQandClaude Opus 5.5 08b118a4fc docs(enterprise): new Enterprise Support prices and inquiry form (LANG-322) (#2898)
Enterprise Support ¥3,980 / Assurance ¥7,980 per year (US$599 / US$1,199 in
the English and Japanese docs). Replace the WeCom QR code and
[email protected] with a link to the inquiry form on langbot.app/enterprise.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-06 01:33:53 +08:00
1c8cc9a122 fix: keep models resolvable during Cloud reloads and report quota errors clearly (LANG-318) (#2896)
* fix(provider): keep models resolvable during reloads and report quota errors clearly

Cloud catalog syncs triggered by any directory change called
load_models_from_db(), which emptied every tenant's runtime model cache
before reloading Workspaces one by one. Messages arriving in that window
could not resolve their configured model, and LocalAgent failed with
"No authorized model for local-agent".

- Stage the reload in a separate manager and swap it in atomically;
  adopt unchanged providers instead of retiring and rebuilding them.
- Isolate per-Workspace load failures so one tenant cannot leave later
  Workspaces unloaded.
- Lazily load a persisted model on a cache miss (another replica,
  failed startup load, keys invalidated by a racing write).
- Classify New API quota errors (insufficient_user_quota,
  pre_consume_token_quota_failed, HTTP 402, quota wording) as
  quota_exceeded with a clear message in the Workspace language
  (English by default) instead of "Permission denied"/"API error".
- Read upstream codes from the response body and exception chain,
  and append safe machine codes to otherwise generic API errors.
- Report a missing API key explicitly instead of a raw OpenAIError.
- Keep HTTP status and body in the leased LiteLLM HTTP handler, which
  previously turned every HTTP error into "Connection failed".

Refs LANG-318

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

* fix(local-agent): accept bare model UUIDs and explain missing models

- parse_model_config accepts the bare model UUID shape the Host
  selector already accepts, instead of treating it as "no model".
- Replace "No authorized model for local-agent" with an actionable
  message pointing at the pipeline's model selection.
- Bump LocalAgent to 0.2.8.

Refs LANG-318

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 01:24:27 +08:00
5dc60b3e5d fix(monitoring): record LLM calls made by plugins outside a pipeline query (#2895)
Plugin-level invoke_llm/invoke_llm_stream run on a Host-built Query that
has no launcher identity. MonitoringHelper derived session ids from
query.launcher_type, so every such call failed with
"'Query' object has no attribute 'launcher_type'" and the LLM call record
was dropped (LANG-320).

Derive session id and platform defensively and label Host-built plugin
Queries with the calling plugin, so the call is recorded under
session "plugin:<author>/<name>".

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-06 00:20:52 +08:00
afc426826d feat(plugins): add timezone config to ScheNotify for all tools (LANG-319) (#2894)
* feat(plugins): add timezone config to ScheNotify for all tools (LANG-319)

Add a `timezone` plugin config (IANA name, UTC, or an offset such as
UTC+8; empty keeps the server's local timezone). get_current_time_str
reports the time in it, schedule_notify interprets time_str in it, and
!sche / !dsche display reminder times in it. Reminders now store aware
instants, so the detached scheduler compares against UTC without reading
installation config. Bump to 0.2.7 and add tzdata.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

* fix(plugins): deliver ScheNotify reminders under audit-correlating SDKs (LANG-319)

The scheduler task was created with a copy of the scheduling invocation's
context, which carries the SDK's per-action audit correlation. SDKs that
close that correlation when the action returns (langbot-plugin 0.7.21,
pinned by Core) then rejected every delivery with "Plugin audit
invocation has ended", so no reminder was ever sent. Start the loop from
an empty context; it already re-enters the captured invocation.

Found during live acceptance; adds a regression test that relays the
audit correlation like the real handler.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 23:54:13 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 23:37:28 +08:00
dd1002a4ad fix(telemetry): report one execution chain per inbound event with full errors (LANG-316) (#2893)
A routed platform message was closed twice: the platform handler closed
its chain as soon as the query was queued (event_done, a few hundred ms,
no Runner/model), and the query-pool task opened a second chain with the
same event id (pipeline_done). Space keeps the first closure per event, so
the half carrying the Runner, model, plugins, real duration and failure
was dropped, and node order/parents were inconsistent.

- Hand the in-flight chain to the queued query (handoff/resume): the
  Pipeline lane continues the same chain, nests under the route step and
  releases it; the chain closes once the ingress boundary and every
  handoff finished. Dropped, steered and aggregated queries release their
  handoff; a handoff that never reports back closes as timeout.
- Close reasons are now completed / merged / timeout (merged_into names
  the chain an aggregated message was folded into).
- Open the event route step before delivery so the Pipeline/Agent run
  nests under it and follows it in the chain order.
- Report complete failures: class, message, cause chain and traceback
  tail (about 4000 chars, both ends kept), with common credential shapes
  and emails redacted; value-style lane failures carry their text.
- Record the adapter at ingress and the Runner/category on Agent paths;
  runner_category now classifies embedded vs local/cloud services from
  the Runner config (it was always "unknown").
- Send one Workspace per flush with workspace_uuid on the envelope so OSS
  batches can be authenticated; drop the legacy per-query sanitizing.
- Update the data collection policy (zh/en/ja).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 23:17:10 +08:00
84a380f4a3 chore(deps): pin langbot-plugin to SDK main with the Workspace API (#2892)
Moves the SDK git pin to langbot-plugin-sdk main (186d962b), where the
unified Workspace API (#200) and the marketplace typed methods (#215) landed.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 22:05:57 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 21:19:30 +08:00
4daa494cb8 feat(plugins): add MulticaAgent runner to chat with Multica agents (LANG-315) (#2889)
New Runner plugin plugins/Runner/multica-agent (plugin:langbot-team/MulticaAgent/default).
Each LangBot conversation maps to one Multica chat session; messages are posted
via the Multica chat API (PAT + X-Workspace-ID), and the runner polls until the
assistant reply for that task lands, then returns it.

In-chat commands (/multica agents|use|new) list agents and switch the agent per
conversation. Deleted sessions are recreated once; failed/cancelled/timed-out
agent tasks surface as run.failed with stable multica.* codes.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 20:10:23 +08:00
RockChinQandmultica-agent daedb22d05 fix(platform): align messaging APIs and thread docs (LANG-312) (#2886)
* fix(platform): align messaging capabilities and reply contracts

Co-authored-by: multica-agent <[email protected]>

* fix(deps): pin SDK with unified API quote fix

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
2026-11-05 20:07:37 +08:00
RockChinQandmultica-agent 045a7ccd8e LANG-313: register OASlackBridge Slack reply processor (#2887)
* feat(plugins): register OASlackBridge Slack reply processor

Co-authored-by: multica-agent <[email protected]>

* fix(plugins): keep pipeline open on bridge permission denial

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
2026-11-05 19:48:19 +08:00
be9385a86b docs(agents): document Unified API, standard adapter contracts and repo layout (#2885)
- AGENTS.md: add a repository layout section (docs/ vs dev-docs/, plugins/,
  skills/, tools/), Unified API rules for Workspace/Execution operations and
  consumer support, standard event/API alignment for adapters, and plugin
  development entry points; condense the backend language section.
- Add plugins/AGENTS.md, which AGENTS.md already referenced.
- Slim langbot-plugin-dev to a routing skill covering all component types,
  the Workspace/platform API catalogs and permissions; move pitfalls and
  testing notes to references and drop the host-specific deployment guide.
- Fix misplaced plugin-permission text in langbot-mcp-ops, add standard
  alignment rules to langbot-eba-adapter-dev, and update langbot-dev for the
  Application API and monorepo layout.
- Refresh skills/AGENTS.md and README for the monorepo; remove the unused
  vendored writing-skills copy from docs/.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-05 18:21:38 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
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 <[email protected]>
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 <[email protected]>
2026-11-05 16:36:22 +08:00
RockChinQandmultica-agent 33e482a357 feat(telemetry): report execution model and feature usage (#2876)
Co-authored-by: multica-agent <[email protected]>
2026-11-04 23:48:48 +08:00
huanghuoguoguo a1c80ea157 fix(box): normalize E2B selected export paths (#2866) 2026-11-04 21:50:56 +08:00
huanghuoguoguo 898bf7d4b6 perf(vector): initialize backends on first use (#2874) 2026-11-04 20:20:01 +08:00
RockChinQandmultica-agent e2645a28c2 LANG-296: add Official Account–Slack support bridge (#2872)
* feat(plugins): add Official Account Slack bridge

Co-authored-by: multica-agent <[email protected]>

* fix(OASlackBridge): decode Slack replies before forwarding

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
2026-11-04 19:21:34 +08:00
RockChinQandmultica-agent dbe8b15679 LANG-295: support Slack threads through standard message APIs (#2864)
* feat(slack): expose thread messaging and context APIs

Co-authored-by: multica-agent <[email protected]>

* fix(slack): preserve actual mentions in thread replies

Co-authored-by: multica-agent <[email protected]>

* feat(slack): use standard message APIs for threads

Co-authored-by: multica-agent <[email protected]>

* fix(slack): append thread quotes after message content

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
2026-11-04 18:58:52 +08:00
RockChinQandmultica-agent ae63811182 feat(officialaccount): support proactive text sends in auto mode (#2863)
Co-authored-by: multica-agent <[email protected]>
2026-11-04 18:58:39 +08:00
huanghuoguoguo 9f6023ac32 test(regression): observe thread growth without gating (#2868) 2026-11-04 15:21:17 +08:00
huanghuoguoguo b1a8bea8b6 test(regression): allow 13 retained Runtime threads (#2865) 2026-11-04 14:47:43 +08:00
huanghuoguoguo e4793dd2ed perf(persistence): reduce repeated scoped SQL validation work (#2856) 2026-11-04 14:42:46 +08:00
huanghuoguoguo 8bc9456e14 perf(platform): load adapter SDKs when creating runtime bots (#2854) 2026-11-04 14:30:51 +08:00
RockChinQandmultica-agent 80775f03f2 fix(box): persist runtime ownership across instance restarts (#2860)
Co-authored-by: multica-agent <[email protected]>
2026-11-04 13:50:52 +08:00
0a962769b9 修复 ACPAgentRunner 存储缺失识别与会话删除参数 (#2849)
* fix(acp-agent-runner): 识别嵌套的存储缺失错误

* fix(acp-agent-runner): 支持按序号删除会话

* fix(acp-agent-runner): guard deletion indices and unwrap storage errors

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Chin Rock <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-04 13:12:15 +08:00
0ef32210df chore(deps): pin langbot-plugin 0.7.21 (#2862)
Picks up the shared Plugin Runtime fix that nests nsjail worker cgroups
under the Runtime's own cgroup so the Pod memory limit bounds every
sandbox (LANG-287, langbot-app/langbot-plugin-sdk#207).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-04 12:41:50 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-04 01:29:31 +08:00
c62f79f9d7 fix(agent): pass execution context when resolving model context window (#2858)
RunnerContextBuilder called ModelManager.get_model_by_uuid(model_uuid)
without the required tenant context. The TypeError was swallowed at debug
level, so runtime.metadata.model_context_window_tokens was always missing.
Thread the run's ExecutionContext through build_context_from_event.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-04 01:13:39 +08:00
RockChinQandmultica-agent 63cb2bc460 feat(models): synchronize Space TTS and ASR models (#2857)
Co-authored-by: multica-agent <[email protected]>
2026-11-04 01:06:34 +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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

* 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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

* 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 <[email protected]>
Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: RockChinQ <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-11-03 21:45:49 +08:00
huanghuoguoguo 990f766661 Merge pull request #2846 from langbot-app/fix/memory-fact-integrity
feat(LongTermMemory): add temporal recall and reviewed semantic memory
2026-11-03 10:22:37 +08:00