Commit Graph
45 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
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
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
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
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
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
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
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 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
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 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
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
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 d666e1f5cf fix(LongTermMemory): enforce stored context budgets before publication 2026-11-02 22:17:33 +08:00
huanghuoguoguo 5627a3b9bc fix(LongTermMemory): reject summaries that cannot fit recall context 2026-11-02 21:13:10 +08:00
huanghuoguoguo dd95ff9796 fix(LongTermMemory): clear derived memory across document and KB deletion 2026-11-02 21:11:14 +08:00
huanghuoguoguo 1d81e1dcc7 fix(LongTermMemory): validate integrated temporal and summary boundaries 2026-11-02 21:10:04 +08:00
huanghuoguoguo f207965e68 feat(LongTermMemory): review consolidation proposals in Memory Console 2026-11-02 20:52:56 +08:00
huanghuoguoguo 8a3657430c feat(LongTermMemory): publish reviewed summaries with scoped source lineage 2026-11-02 20:50:01 +08:00
huanghuoguoguo 34ac1a8ee5 fix(LongTermMemory): preserve temporal precision and complete evidence spans 2026-11-02 20:45:19 +08:00
huanghuoguoguo 7cd90087b1 feat(LongTermMemory): retain fact provenance and review model-selected evidence 2026-11-02 20:45:14 +08:00
huanghuoguoguo 7d1f217350 fix(LongTermMemory): unify bounded current and historical recall 2026-11-02 20:41:33 +08:00
huanghuoguoguo 2cbe686a57 fix(LongTermMemory): preserve facts during correction and archival 2026-11-02 20:11:51 +08:00
huanghuoguoguo 558ded2b7a fix(LongTermMemory): support memory tools in Agent processors (#2843)
* fix(LongTermMemory): support memory tools in Agent processors

* docs(LongTermMemory): clarify tool and Pipeline lifecycle access

* test(LongTermMemory): isolate persistent Chroma clients across fixtures
2026-11-02 20:11:23 +08:00
huanghuoguoguo 8ee321f8c1 test(n8n): exercise latest DefaultRunner in daily regression (#2830)
* fix(n8n): validate runner timeout values

* fix(n8n): validate runner timeout values

* test(n8n): add latest DefaultRunner regression

* test(n8n): add latest DefaultRunner regression

* test(n8n): add latest DefaultRunner regression

* test(n8n): fix latest Runner response assertion
2026-10-31 22:24:22 +08:00
Martin 5aa1b0f5ae 完善 ACPAgentRunner 会话管理与权限边界 (#2822)
* feat(acp-agent-runner): add ACP session commands

* fix(acp-agent-runner): 收紧会话管理契约

* fix(acp-agent-runner): 修复 event-first 会话身份与切换能力校验
2026-10-31 21:53:46 +08:00
huanghuoguoguo f750bb96ac test(ci): add daily Dify Cloud Agent regression
Add daily Dify Cloud Agent regression via Runner
2026-10-31 15:35:55 +08:00
huanghuoguoguo 292fe43731 test(plugins): use in-tree sources without hash pins
Use the in-tree plugins directly for consumer contracts and avoid per-edit hash refreshes.
2026-10-30 11:11:31 +08:00
Chin Rockandmultica-agent 75e1630550 fix(localagent): keep the SDK constraint installable across 0.7.x
LocalAgent declared langbot-plugin>=0.7.18, and the published 0.2.2 artifact
pinned langbot-plugin==0.7.16. The plugin runtime rejects any SDK requirement
its own SDK version does not satisfy, so both directions were dead ends: 4.11.4
(SDK 0.7.19) could not install the published build, and a 0.7.18 floor would
have locked out 4.11.2/4.11.3 (SDK 0.7.16) from the next one.

Use a bounded range from the 4.11.2 baseline instead, matching every other
official Runner and KnowledgeEngine plugin. Verified on SDK 0.7.16 and 0.7.19:
327 tests pass on both, including the runtime dependency admission contract.

Co-authored-by: multica-agent <[email protected]>
2026-10-29 15:48:06 +00:00
Chin Rockandmultica-agent 117e3bb350 fix(dify-agent): separate final answers and release 0.2.5
Co-authored-by: multica-agent <[email protected]>
2026-10-28 15:15:48 +00:00
huanghuoguoguo b21d150c4c fix(localagent): test against the latest stable SDK 2026-10-28 20:31:31 +08:00
RockChinQandmultica-agent 0219007acd fix(qqofficial): correct group mentions and reply sequences (LANG-181) (#2799)
* fix(qqofficial): preserve native mentions and reply sequences (LANG-181)

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

* fix(qqofficial): respect group mention rendering capability

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

---------

Co-authored-by: multica-agent <[email protected]>
2026-10-28 18:43:18 +08:00
RockChinQandmultica-agent 3a77306c3c feat(plugins): consolidate official plugins with independent releases (LANG-180) (#2797)
Co-authored-by: multica-agent <[email protected]>
2026-10-28 17:32:24 +08:00
RockChinQ 2a913ed24c chore: 删除过时文件 2024-02-06 21:29:31 +08:00
Rock Chin 680085d16f feat: 删除plugins/__init__.py的内容 2023-01-17 14:30:28 +08:00
Rock Chin 870aba0560 debug: 删除示例插件 2023-01-15 22:39:28 +08:00
Rock Chin b4033b2902 debug: ExamplePlugin 2023-01-15 09:48:03 +08:00
Rock Chin eb1564a3dd feat: 增加prevent_default和prevent_postorder的支持 2023-01-14 19:59:51 +08:00
Rock Chin da5b1cf3fa feat: person_message和group_message的事件钩子 2023-01-13 23:13:54 +08:00
Rock Chin 4232ab6f47 feat: plugins目录占位 2023-01-13 21:47:30 +08:00