Commit Graph
5672 Commits
Author SHA1 Message Date
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
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 <[email protected]>

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

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

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

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

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

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

* fix(speech): restore migration and CI contracts

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

* 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 <[email protected]>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

---------

Co-authored-by: multica-agent <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-02 23:51:22 +08:00
huanghuoguoguo d666e1f5cf fix(LongTermMemory): enforce stored context budgets before publication 2026-11-02 22:17:33 +08:00
huanghuoguoguo 7355a23eed Merge remote-tracking branch 'origin/master' into fix/memory-fact-integrity 2026-11-02 21:13:10 +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
Martin 4623148817 fix(core): 收紧 event-first 会话身份传播 (#2832) 2026-11-02 20:33:17 +08:00
huanghuoguoguo 2cbe686a57 fix(LongTermMemory): preserve facts during correction and archival 2026-11-02 20:11:51 +08:00