fengming 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -2
- package/dist/abort-CjCDVBbH.js +277 -0
- package/dist/abort.runtime-DxJ8129J.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/accounts-Cyn0sm_v.js +423 -0
- package/dist/accounts-DzcLKcN5.js +2 -0
- package/dist/acp/control-plane/manager.js +1 -1
- package/dist/acp-spawn-4lfz_3K9.js +1286 -0
- package/dist/acp-spawn-BCUjuO6L.js +2 -0
- package/dist/acp-stateful-target-driver-Bv99uwEA.js +89 -0
- package/dist/action-info-CP-p6RHS.js +75 -0
- package/dist/active-runtime-registry-DjKe53a5.js +62 -0
- package/dist/active-tool-schema-warnings-p7CqUnu1.js +105 -0
- package/dist/active-tool-schema-warnings-pGI92yka.js +2 -0
- package/dist/agent-B77yluip.js +1825 -0
- package/dist/agent-BooUvZnR.js +2 -0
- package/dist/agent-bundle-lsp-runtime-3ieSgTgo.js +389 -0
- package/dist/agent-bundle-lsp-runtime-CkJ0XJK7.js +2 -0
- package/dist/agent-bundle-mcp-materialize-BH-esGZL.js +124 -0
- package/dist/agent-bundle-mcp-tools-DkixTTnL.js +3 -0
- package/dist/agent-command-BJKcnQy6.js +1435 -0
- package/dist/agent-delivery-CEfe_Zzt.js +117 -0
- package/dist/agent-harness-runtime-R_Ae6o9C.js +207 -0
- package/dist/agent-kWSaRcQt.js +3 -0
- package/dist/agent-model-discovery-C49swEgd.js +238 -0
- package/dist/agent-model-discovery-DZbixJQs.js +3 -0
- package/dist/agent-runner-utils-BChpi9Ec.js +267 -0
- package/dist/agent-runner.runtime-3LOdt215.js +3784 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agent-runtime-3jsv8b7Y.js +199 -0
- package/dist/agent-runtime-label-uoFI4ovH.js +30 -0
- package/dist/agent-runtime-metadata-BhFt6kLt.js +53 -0
- package/dist/agent-tool-result-middleware-loader-BxYJNC1i.js +55 -0
- package/dist/agent-tools-COLEG7aL.js +2506 -0
- package/dist/agent-tools.before-tool-call--rMZI5Rd.js +1274 -0
- package/dist/agent-tools.before-tool-call-CbX2sfP4.js +2 -0
- package/dist/agent-via-gateway-DfKij3De.js +486 -0
- package/dist/agent-wait-dedupe-BAUSJotw.js +180 -0
- package/dist/agents/agent-bundle-mcp-materialize.js +1 -1
- package/dist/agents/auth-profiles.runtime.js +1 -1
- package/dist/agents/compaction-planning.worker.js +1 -1
- package/dist/agents/embedded-agent-runner/effective-tool-policy.js +1 -1
- package/dist/agents/embedded-agent-runner/tool-split.js +1 -1
- package/dist/agents/model-catalog.runtime.js +1 -1
- package/dist/agents/model-provider-auth.worker.js +3 -3
- package/dist/agents/models-config.runtime.js +1 -1
- package/dist/agents-CZSNDJWD.js +632 -0
- package/dist/agents.command-shared-DgbjfH23.js +16 -0
- package/dist/agents.commands.add-DknGM1oz.js +304 -0
- package/dist/agents.commands.bind-DDVI0yDe.js +265 -0
- package/dist/agents.commands.delete-Dv4RHEhc.js +128 -0
- package/dist/agents.commands.identity-BSZbc1QR.js +143 -0
- package/dist/agents.commands.list-CA0OTw59.js +235 -0
- package/dist/aliases-EY1GbfwT.js +97 -0
- package/dist/api-CY0oKcRz.js +3 -0
- package/dist/api-DgjY0gIl.js +6 -0
- package/dist/api-VyMyAYze.js +2 -0
- package/dist/api-key-rotation-DxPKIdmC.js +167 -0
- package/dist/app-registration-BBDxCbFo.js +194 -0
- package/dist/apply-DMYy7tc3.js +544 -0
- package/dist/apply-Dd0n97MD.js +2 -0
- package/dist/apply-bHIT1nMp.js +416 -0
- package/dist/apply-g8x7Z83S.js +510 -0
- package/dist/apply-nnbx9TaB.js +2 -0
- package/dist/approval-native-helpers-CjaYvOaZ.js +398 -0
- package/dist/artifacts-B55YR-uA.js +368 -0
- package/dist/assistant-hJaOgfKl.js +291 -0
- package/dist/attachment-normalize-COsastJx.js +213 -0
- package/dist/attempt-execution-fDWDWcWe.js +584 -0
- package/dist/attempt-execution.helpers-Cze5xPim.js +969 -0
- package/dist/attempt-execution.runtime-B1iCG6LN.js +3 -0
- package/dist/attempt-execution.runtime.js +1 -1
- package/dist/attempt.prompt-helpers-CkBYHBBo.js +543 -0
- package/dist/attempt.tool-run-context-DzfRK5pV.js +1240 -0
- package/dist/audio-preflight.runtime-rjWd9uyk.js +7 -0
- package/dist/audio-preflight.runtime.js +1 -1
- package/dist/audit-DgFtNg3U.js +1108 -0
- package/dist/audit-L8EC3WhV.js +477 -0
- package/dist/audit.nondeep.runtime-D0sQ6bO2.js +1416 -0
- package/dist/audit.nondeep.runtime.js +1 -1
- package/dist/audit.runtime-CiG82F31.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-CzPdsZVM.js +567 -0
- package/dist/auth-choice-BNzS9QBI.js +3 -0
- package/dist/auth-choice-Cwr5kgcD.js +110 -0
- package/dist/auth-choice-DW9qPpMS.js +400 -0
- package/dist/auth-choice.apply.api-providers-C68tOdqj.js +34 -0
- package/dist/auth-choice.apply.api-providers-DSRK0gYo.js +2 -0
- package/dist/auth-choice.plugin-providers.runtime-BJ9VyO1C.js +11 -0
- package/dist/auth-choice.plugin-providers.runtime.js +1 -1
- package/dist/auth-health-BanKwsTW.js +219 -0
- package/dist/auth-list-Dq8obVno.js +115 -0
- package/dist/auth-order-VXqoAroP.js +105 -0
- package/dist/auth-profiles-6VFEdgC-.js +73 -0
- package/dist/auth-profiles-a0M4JYYg.js +14 -0
- package/dist/backend-config-COaTdVnN.js +259 -0
- package/dist/bash-tools-BMAquSiM.js +3 -0
- package/dist/bash-tools-DLiUXfaS.js +3497 -0
- package/dist/binding-routing-Bwvdx_7S.js +113 -0
- package/dist/binding-targets-Z_d0mK_1.js +121 -0
- package/dist/bootstrap-files-CoCV_zqu.js +202 -0
- package/dist/bootstrap-files-_T3VoTrV.js +3 -0
- package/dist/bridge-server-BIaNurGa.js +113 -0
- package/dist/browser-cli-D4wL8NU9.js +230 -0
- package/dist/browser-cli-actions-input-z40PGiYI.js +522 -0
- package/dist/browser-cli-actions-observe-C4TeyNke.js +81 -0
- package/dist/browser-cli-debug-Dv0gH-c8.js +137 -0
- package/dist/browser-cli-inspect-BUXeITYc.js +117 -0
- package/dist/browser-cli-manage-qMb3Yw5Y.js +446 -0
- package/dist/browser-cli-resize-CZWnGwGz.js +32 -0
- package/dist/browser-cli-shared-BpinhvE3.js +69 -0
- package/dist/browser-cli-state-CBbKqqgP.js +371 -0
- package/dist/browser-cli-uI5GGX51.js +2 -0
- package/dist/browser-control-auth-CFPJXdN_.js +2 -0
- package/dist/browser-profiles-D4ni3t4J.js +2 -0
- package/dist/browser-runtime-Dm5D_PLf.js +389 -0
- package/dist/browser-tool.schema-Bek02ox5.js +132 -0
- package/dist/btw-command-DdrwvCK4.js +18 -0
- package/dist/build-DkEeJ9sO.js +261 -0
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/bundled-channel-config-schema-BeowdkHi.d.ts +3168 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/capability-cli-DTRuKZJC.js +1809 -0
- package/dist/capability-provider-runtime-Cpp-Jq9g.js +346 -0
- package/dist/cdp.helpers-GfQkB-B5.js +637 -0
- package/dist/channel-BRehZ4Cg.js +2309 -0
- package/dist/channel-actions-hdQKe_se.js +46 -0
- package/dist/channel-bootstrap.runtime-BzjlNG_j.js +38 -0
- package/dist/channel-bootstrap.runtime-CmNNVl40.js +2 -0
- package/dist/channel-bootstrap.runtime.js +1 -1
- package/dist/channel-core-BLcWqSk-.js +5 -0
- package/dist/channel-inbound-pR1B7HTU.js +121 -0
- package/dist/channel-message-W0VurpjH.js +12 -0
- package/dist/channel-outbound-DO4HI6E_.js +436 -0
- package/dist/channel-plugin-resolution-CLA7S5_A.js +2 -0
- package/dist/channel-plugin-resolution-DzwVj01h.js +135 -0
- package/dist/channel-resolution-DOPyiG4k.js +46 -0
- package/dist/channel-selection-kwoWZDQ3.js +171 -0
- package/dist/channel-selection.runtime-LiDliif9.js +2 -0
- package/dist/channel-selection.runtime.js +1 -1
- package/dist/channel.runtime-DDt3PayH.js +697 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/channels-CKJd4eUz.js +1004 -0
- package/dist/channels-cli-DLAPi8pX.js +331 -0
- package/dist/chat-6WsYrS9m.js +3 -0
- package/dist/chat-DpsCEXAx.js +2940 -0
- package/dist/chrome-BWHc9vYG.js +1517 -0
- package/dist/chrome-mcp-BGKgR8A_.js +2 -0
- package/dist/chrome-mcp-Bg5D5PDc.js +864 -0
- package/dist/claude-live-session-BLCZnv-A.js +2 -0
- package/dist/claude-live-session-CGnB64D6.js +1338 -0
- package/dist/clawbot-cli-ynXzgp8B.js +9 -0
- package/dist/cli/daemon-cli.js +3 -3
- package/dist/cli/gateway-lifecycle.runtime.js +4 -4
- package/dist/cli/run-main.js +12 -12
- package/dist/cli-B4Ttnj0P.js +2 -0
- package/dist/cli-BjVgdamH.js +2 -0
- package/dist/cli-CNqBrHLU.js +293 -0
- package/dist/cli-backends.runtime-DoxtCrow.js +7 -0
- package/dist/cli-backends.runtime.js +1 -1
- package/dist/cli-compaction-BCuLbs75.js +363 -0
- package/dist/cli-mthNIkji.js +141 -0
- package/dist/cli-registry-loader-B2sNTdgY.js +2 -0
- package/dist/cli-registry-loader-Dz9YFrjw.js +193 -0
- package/dist/cli-runner-C9t-9-Io.js +597 -0
- package/dist/cli-runner-D21qMGk7.js +2 -0
- package/dist/cli-runner.runtime-BNqbJFgu.js +3 -0
- package/dist/cli-runner.runtime-Dv50IEvH.js +4 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-session-jBtClYfT.js +119 -0
- package/dist/cli-startup-metadata.json +9 -9
- package/dist/cli.runtime-CGBzSGAG.js +1276 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/codex-native-web-search-B3C-srtm.js +20 -0
- package/dist/codex-native-web-search-B7xh2Xcb.js +4 -0
- package/dist/codex-native-web-search-core-CrwANQg5.js +106 -0
- package/dist/command-auth-Dz_pdczs.js +135 -0
- package/dist/command-config-resolution-XCA63Yv8.js +25 -0
- package/dist/command-config-resolution-xtKMDTG9.js +2 -0
- package/dist/command-config-resolution.runtime-xtKMDTG9.js +2 -0
- package/dist/command-config-resolution.runtime.js +1 -1
- package/dist/command-execution-startup-CasEqEXh.js +90 -0
- package/dist/command-primitives-runtime-DC9gtSI3.js +3 -0
- package/dist/command-registry-BQnMdca9.js +9 -0
- package/dist/command-registry-core-hx2t1jQP.js +114 -0
- package/dist/command-registry-rbKA-L_8.js +4 -0
- package/dist/command-secret-gateway-7oveYQCx.js +589 -0
- package/dist/command-secret-targets-B7M1Us_C.js +2 -0
- package/dist/command-status-builders-DrSoZhiI.js +147 -0
- package/dist/command-status.runtime-By0071-y.js +90 -0
- package/dist/command-status.runtime.js +1 -1
- package/dist/commands/status.summary.runtime.js +3 -3
- package/dist/commands-B1MnUj5-.js +161 -0
- package/dist/commands-compact.runtime-DELj3JaW.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-core.runtime-Zw0grrkC.js +2 -0
- package/dist/commands-core.runtime.js +1 -1
- package/dist/commands-handlers.runtime-BCl_ZHJZ.js +6327 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-models-Uurm-0C3.js +448 -0
- package/dist/commands-registry-Bo1AeDcq.js +195 -0
- package/dist/commands-registry.runtime-C9DBHyhh.js +4 -0
- package/dist/commands-registry.runtime.js +1 -1
- package/dist/commands-status-BoAXH-wg.js +16 -0
- package/dist/commands-status-CNALMTN9.js +3 -0
- package/dist/commands-status.runtime-CNALMTN9.js +3 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-Dl4IuTzV.js +2 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands-system-prompt-BPzpLmUp.js +2 -0
- package/dist/commands-system-prompt-DCOZSNh5.js +161 -0
- package/dist/commands.runtime-bfCLM0Sg.js +175 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/commitments/runtime.js +1 -1
- package/dist/common-CoOYhmSg.js +286 -0
- package/dist/compact-yqaUOESq.js +1165 -0
- package/dist/compact.runtime-Y91AFZVE.js +12 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/compaction-planning-DVnykwzd.js +202 -0
- package/dist/completion-cli-BJjq_g_B.js +393 -0
- package/dist/config-CsmSEaNn.js +374 -0
- package/dist/config-CtNXZ0iy.js +610 -0
- package/dist/config-cli-CNpIVdqp.js +1703 -0
- package/dist/config-mutation-B-SErGM0.js +5 -0
- package/dist/config-mutations-Bu3ahkX8.js +161 -0
- package/dist/config-utils-Bv0Nisds.js +141 -0
- package/dist/config-validation-DitvTYD8.js +33 -0
- package/dist/configure-CdjbRKTg.js +771 -0
- package/dist/configure-Cvi-5ml4.js +3 -0
- package/dist/configure.commands-BJii4733.js +1253 -0
- package/dist/configure.commands-tJzVFJ0o.js +2 -0
- package/dist/context-D1N9oPds.js +2 -0
- package/dist/context-XMtJ9b3v.js +248 -0
- package/dist/context-engine-host-compat-3QznbSaW.js +280 -0
- package/dist/context-engine-host-compat-DquSpnKD.js +2 -0
- package/dist/context-engine-lifecycle-Bqdhy9JU.js +627 -0
- package/dist/control-auth-CMW_9jmY.js +114 -0
- package/dist/control-service-D-r3k91q.js +40 -0
- package/dist/control-service-uIPYrp9F.js +3 -0
- package/dist/control-ui/assets/activity-DgMhyllD.js +124 -0
- package/dist/control-ui/assets/agents-CsRhxO2O.js +1030 -0
- package/dist/control-ui/assets/channels-Dq8bzpMg.js +120 -0
- package/dist/control-ui/assets/cron-Dk5bqYwg.js +1016 -0
- package/dist/control-ui/assets/debug-CNIwFEQO.js +97 -0
- package/dist/control-ui/assets/index-CV2NsPlu.js +7214 -0
- package/dist/control-ui/assets/instances-DLr0iEvT.js +57 -0
- package/dist/control-ui/assets/nodes-D3JEksjl.js +444 -0
- package/dist/control-ui/assets/sessions-nbXWGlHZ.js +425 -0
- package/dist/control-ui/assets/skills-tBOi8OBq.js +362 -0
- package/dist/control-ui/assets/workboard-ClTo7wmK.js +402 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/sw.js +1 -1
- package/dist/control-ui-AkRMsk9S.js +750 -0
- package/dist/conversation-label-generator-DHtcgSBn.js +72 -0
- package/dist/conversation-runtime-BEgHW4ta.js +31 -0
- package/dist/core-Bslrvfnp.js +284 -0
- package/dist/core-api-BOlUb7G8.js +5 -0
- package/dist/core-api-CiBoGa2I.js +2 -0
- package/dist/crestodian/crestodian.js +1 -1
- package/dist/crestodian/rescue-message.js +1 -1
- package/dist/crestodian-mXnyuHx9.js +55 -0
- package/dist/cron-PbdpyFrD.js +453 -0
- package/dist/daemon-install-C-d4dFvn.js +66 -0
- package/dist/daemon-install-auth-profiles-store.runtime-CvE2EVVo.js +2 -0
- package/dist/daemon-install-auth-profiles-store.runtime.js +1 -1
- package/dist/dashboard-Ey5dnvMI.js +263 -0
- package/dist/defaults-CsRAv-qE.js +130 -0
- package/dist/defaults-DHZBSNHC.js +3 -0
- package/dist/defaults.constants-CR4S_tvw.js +76 -0
- package/dist/deliver-BkuuFBlm.js +1399 -0
- package/dist/deliver-P4upyes7.js +3 -0
- package/dist/deliver-runtime-CjnLI_nC.js +2 -0
- package/dist/delivery-outbound.runtime-fcJ-M8qj.js +7 -0
- package/dist/delivery-outbound.runtime.js +1 -1
- package/dist/delivery-queue-BqgHvNlY.js +863 -0
- package/dist/delivery-queue-CfsRscJb.js +2 -0
- package/dist/delivery-queue-runtime-D0PKG1Bv.js +16 -0
- package/dist/delivery-target.runtime-C5e8d0WH.js +45 -0
- package/dist/delivery-target.runtime.js +1 -1
- package/dist/delivery.runtime-2Ut8xM3P.js +470 -0
- package/dist/delivery.runtime.js +1 -1
- package/dist/detached-task-runtime-OOZBqRy-.js +86 -0
- package/dist/diagnostics-zf6WQ2h7.js +168 -0
- package/dist/dialogue-C8IOya-l.js +37 -0
- package/dist/direct-dm-wPF-KfNb.js +81 -0
- package/dist/directive-handling.defaults-C-1lmFYo.js +22 -0
- package/dist/directive-handling.fast-lane-DENPMtYI.js +70 -0
- package/dist/directive-handling.impl-C1p5t3qA.js +2 -0
- package/dist/directive-handling.impl-DOo2Sa7C.js +823 -0
- package/dist/directive-handling.model-selection-6gC-fr_g.js +122 -0
- package/dist/directive-handling.persist.runtime-CuhUd2kW.js +274 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/directives-BIKSyN8C.js +319 -0
- package/dist/directory-cli-DZ0PU0Rv.js +239 -0
- package/dist/dispatch-DQLImAqt.js +2057 -0
- package/dist/dispatch-acp-DzyX7wsq.js +1102 -0
- package/dist/dispatch-acp-manager.runtime-CoAfs4O1.js +3 -0
- package/dist/dispatch-acp-manager.runtime.js +1 -1
- package/dist/dispatch-acp-media.runtime-7uUP_jr9.js +4 -0
- package/dist/dispatch-acp-media.runtime.js +1 -1
- package/dist/dispatch-acp-transcript.runtime-BUlmV_h0.js +40 -0
- package/dist/dispatch-acp-transcript.runtime.js +1 -1
- package/dist/dispatch-acp-tts.runtime-ChBnVkNt.js +3 -0
- package/dist/dispatch-acp-tts.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-DAexFaBu.js +18 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/dispatcher-D3IQEbf9.js +106 -0
- package/dist/doctor-BSqEqfb6.js +760 -0
- package/dist/doctor-auth-flat-profiles-BIZ4wsYP.js +2 -0
- package/dist/doctor-auth-flat-profiles-DXtD5LfC.js +516 -0
- package/dist/doctor-auth-legacy-oauth-DwFbRYTP.js +48 -0
- package/dist/doctor-auth-oauth-sidecar-6I3FEJbi.js +2 -0
- package/dist/doctor-auth-oauth-sidecar-BSC3rnDM.js +177 -0
- package/dist/doctor-auth-tVGsUiM6.js +216 -0
- package/dist/doctor-bootstrap-size-B0q6bdkO.js +57 -0
- package/dist/doctor-claude-cli-Bn79OuBT.js +150 -0
- package/dist/doctor-config-flow-CCwocXpV.js +1819 -0
- package/dist/doctor-core-checks-D7-1l8jy.js +666 -0
- package/dist/doctor-core-checks-eM8FNi8B.js +2 -0
- package/dist/doctor-core-checks.runtime-Dc03aeoU.js +278 -0
- package/dist/doctor-core-checks.runtime.js +1 -1
- package/dist/doctor-gRYfpEbB.js +6 -0
- package/dist/doctor-gateway-daemon-flow-KTnHAdeV.js +349 -0
- package/dist/doctor-gateway-services-BByDQtjY.js +465 -0
- package/dist/doctor-health-CnoM718z.js +65 -0
- package/dist/doctor-health-contributions-flVKMQwr.js +874 -0
- package/dist/doctor-lint-BBm6gtBa.js +95 -0
- package/dist/doctor-memory-search-DjHVDCGo.js +407 -0
- package/dist/doctor-state-integrity-Bgw25cz1.js +1257 -0
- package/dist/doctor-tool-result-cap-advice-B8wTpiTO.js +27 -0
- package/dist/doctor-workspace-status-DcjeJIpT.js +76 -0
- package/dist/dreaming-BE4t8DVf.js +523 -0
- package/dist/dreaming-command-DWm1lB-Z.js +101 -0
- package/dist/dreaming-narrative-8DM-OMrm.js +721 -0
- package/dist/dreaming-narrative-CcFfheQI.js +2 -0
- package/dist/dreaming-phases-CqOhhTdZ.js +2 -0
- package/dist/dreaming-phases-D9eT6Kk0.js +1162 -0
- package/dist/drive-D2M5B7-2.js +899 -0
- package/dist/echo-transcript-B-wl5MoX.js +52 -0
- package/dist/effective-tool-policy-Cx8mC5aA.js +89 -0
- package/dist/embedded-agent-BTvtoOe_.js +4 -0
- package/dist/embedded-agent-CGmSKuNM.js +4074 -0
- package/dist/embedded-agent-helpers-CboIPx57.js +6 -0
- package/dist/embedded-agent-helpers-cw0InMDZ.js +1037 -0
- package/dist/embedded-agent.runtime-Bfe4bjyF.js +4 -0
- package/dist/embedded-agent.runtime.js +1 -1
- package/dist/embedded-backend-D-EshN85.js +744 -0
- package/dist/embedded-gateway-stub.runtime-Cx9qs0KV.js +12 -0
- package/dist/embedded-gateway-stub.runtime.js +1 -1
- package/dist/embedding-provider-runtime-DaXfsUPo.js +86 -0
- package/dist/embedding-providers-CdU99clu.js +2 -0
- package/dist/embeddings-http-BQnlTr-1.js +222 -0
- package/dist/engine-qmd-5jbjGywA.js +708 -0
- package/dist/engine-storage-CfAgwoDp.js +203 -0
- package/dist/entry.js +1 -1
- package/dist/errors-C0AUxo3P.js +2 -0
- package/dist/exec-approval-forwarder.runtime-BvR47p5Z.js +4 -0
- package/dist/exec-approval-forwarder.runtime.js +1 -1
- package/dist/exec-approval-session-target-CCqYgaVa.js +177 -0
- package/dist/exec-auto-reviewer-BfJaNkNy.js +2 -0
- package/dist/exec-auto-reviewer-Dqx7I88Z.js +241 -0
- package/dist/execute.runtime-Qb6Z75sG.js +579 -0
- package/dist/execute.runtime.js +1 -1
- package/dist/extensionAPI.js +2 -2
- package/dist/extensions/active-memory/index.js +3 -3
- package/dist/extensions/admin-http-rpc/index.js +1 -1
- package/dist/extensions/alibaba/index.js +1 -1
- package/dist/extensions/alibaba/video-generation-provider.js +1 -1
- package/dist/extensions/baichuan/index.js +1 -1
- package/dist/extensions/browser/browser-bridge.js +1 -1
- package/dist/extensions/browser/browser-cdp.js +1 -1
- package/dist/extensions/browser/browser-config.js +5 -5
- package/dist/extensions/browser/browser-control-auth.js +2 -2
- package/dist/extensions/browser/browser-doctor.js +3 -3
- package/dist/extensions/browser/browser-maintenance.js +1 -1
- package/dist/extensions/browser/browser-profiles.js +3 -3
- package/dist/extensions/browser/browser-runtime-api.js +14 -14
- package/dist/extensions/browser/cli-metadata.js +1 -1
- package/dist/extensions/browser/index.js +1 -1
- package/dist/extensions/browser/plugin-registration.js +1 -1
- package/dist/extensions/browser/register.runtime.js +4 -4
- package/dist/extensions/browser/runtime-api.js +16 -16
- package/dist/extensions/byteplus/index.js +3 -3
- package/dist/extensions/byteplus/video-generation-provider.js +1 -1
- package/dist/extensions/canvas/index.js +3 -3
- package/dist/extensions/canvas/runtime-api.js +2 -2
- package/dist/extensions/deepseek/index.js +1 -1
- package/dist/extensions/device-pair/api.js +2 -2
- package/dist/extensions/device-pair/pair-command-approve.js +1 -1
- package/dist/extensions/device-pair/qr-image.js +2 -2
- package/dist/extensions/longcat/index.js +1 -1
- package/dist/extensions/memory-core/api.js +3 -3
- package/dist/extensions/memory-core/cli-metadata.js +1 -1
- package/dist/extensions/memory-core/cli.js +2 -2
- package/dist/extensions/memory-core/index.js +11 -11
- package/dist/extensions/memory-core/manager-runtime.js +1 -1
- package/dist/extensions/memory-core/runtime-api.js +6 -6
- package/dist/extensions/minimax/image-generation-provider.js +1 -1
- package/dist/extensions/minimax/index.js +7 -7
- package/dist/extensions/minimax/media-understanding-provider.js +1 -1
- package/dist/extensions/minimax/music-generation-provider.js +1 -1
- package/dist/extensions/minimax/oauth.js +1 -1
- package/dist/extensions/minimax/oauth.runtime.js +1 -1
- package/dist/extensions/minimax/provider-registration.js +1 -1
- package/dist/extensions/minimax/speech-provider.js +1 -1
- package/dist/extensions/minimax/video-generation-provider.js +1 -1
- package/dist/extensions/minimax/web-search-provider.js +1 -1
- package/dist/extensions/moonshot/index.js +5 -5
- package/dist/extensions/moonshot/media-understanding-provider.js +1 -1
- package/dist/extensions/moonshot/web-search-provider.js +1 -1
- package/dist/extensions/qianfan/index.js +1 -1
- package/dist/extensions/qwen/index.js +5 -5
- package/dist/extensions/qwen/media-understanding-provider.js +1 -1
- package/dist/extensions/qwen/video-generation-provider.js +1 -1
- package/dist/extensions/sensenova/index.js +1 -1
- package/dist/extensions/skill-workshop/api.js +2 -2
- package/dist/extensions/skill-workshop/index.js +4 -4
- package/dist/extensions/stepfun/index.js +2 -2
- package/dist/extensions/tavily/index.js +1 -1
- package/dist/extensions/tavily/web-search-provider.js +1 -1
- package/dist/extensions/tencent/index.js +2 -2
- package/dist/extensions/tiangong/index.js +1 -1
- package/dist/extensions/volcengine/index.js +3 -3
- package/dist/extensions/volcengine/speech-provider.js +1 -1
- package/dist/extensions/webhooks/api.js +1 -1
- package/dist/extensions/webhooks/index.js +1 -1
- package/dist/extensions/weixin/index.js +3 -3
- package/dist/extensions/workboard/index.js +2 -2
- package/dist/extensions/xiaomi/index.js +4 -4
- package/dist/extensions/xiaomi/speech-provider.js +1 -1
- package/dist/extensions/xingchen/index.js +1 -1
- package/dist/extensions/yi/index.js +1 -1
- package/dist/extensions/zai/index.js +4 -4
- package/dist/extensions/zai/media-understanding-provider.js +1 -1
- package/dist/extensions/zhinao/index.js +1 -1
- package/dist/external-cli-auth-selection-CM_aOUJw.js +113 -0
- package/dist/extra-params-Bm1eLWN9.js +615 -0
- package/dist/fallback-notice-state-v1kyWACv.js +15 -0
- package/dist/fallbacks-CDllk2g1.js +31 -0
- package/dist/fallbacks-shared-DdMKEmAC.js +116 -0
- package/dist/fengming-runtime-DSv30J04.js +33 -0
- package/dist/fengming-runtime-config-BE-DquuY.js +2 -0
- package/dist/fengming-runtime-memory-BE-DquuY.js +2 -0
- package/dist/fengming-runtime-session-BE-DquuY.js +2 -0
- package/dist/fengming-tools-DHb-ZeDC.js +12221 -0
- package/dist/flows-Cz3y10A9.js +189 -0
- package/dist/fs-utils-D05rps7O.js +9 -0
- package/dist/gateway/protocol/index.d.ts +1 -1
- package/dist/gateway-DTi2D7ZS.js +133 -0
- package/dist/gateway-cli-DT2fL2fX.js +443 -0
- package/dist/gateway-install-token-CJhAycOA.js +136 -0
- package/dist/gateway-method-runtime-BuiYTDQk.js +21 -0
- package/dist/gateway-runtime-C5_cVlSW.js +23 -0
- package/dist/get-reply-Cz-dUrWm.js +5198 -0
- package/dist/get-reply-from-config.runtime-BC1HT67i.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/github-copilot-token-09lxV3kH.js +2 -0
- package/dist/health-CmihbcqN.js +621 -0
- package/dist/health-D8L37hBZ.js +111 -0
- package/dist/health-DU7I9RrJ.js +3 -0
- package/dist/health-state-QZ2E6xGQ.js +106 -0
- package/dist/heartbeat-runner-Bz5PMzEI.js +1930 -0
- package/dist/heartbeat-runner-DfqqQ_8w.js +5 -0
- package/dist/heartbeat-runner.runtime-8BshUhoS.js +3 -0
- package/dist/heartbeat-runner.runtime.js +1 -1
- package/dist/helpers-Bkq4POdX.js +406 -0
- package/dist/hook-helpers-nmDwt3Fa.js +44 -0
- package/dist/hooks-9FOcRqfu.js +536 -0
- package/dist/hooks-cli-CrQelcwo.js +465 -0
- package/dist/http-endpoint-helpers-BD5u6YsT.js +37 -0
- package/dist/http-utils-RcKuBJ0I.js +98 -0
- package/dist/image-DwNoypK2.js +385 -0
- package/dist/image-fallbacks-BUyDnmUX.js +31 -0
- package/dist/image-generation-core.auth.runtime-CA8miEMh.js +2 -0
- package/dist/image-generation-core.auth.runtime.js +1 -1
- package/dist/image-generation-provider-DXMW5EmB.js +152 -0
- package/dist/image-runtime-D5QpNNzz.js +9 -0
- package/dist/image-tool.helpers-6vGxo1Y0.js +150 -0
- package/dist/images-BGWLzQEJ.js +416 -0
- package/dist/images-Db4UB3JG.js +2 -0
- package/dist/inbound-reply-dispatch-DRF6ZmQg.js +2 -0
- package/dist/inbound-reply-dispatch-RAKLqow4.js +147 -0
- package/dist/index-DhOQs6M_.d.ts +1497 -0
- package/dist/index.js +1 -1
- package/dist/infra-runtime-BFrpRc_V.js +32 -0
- package/dist/init-sR7bCS9D.js +59 -0
- package/dist/install-BzdJbOUx.js +262 -0
- package/dist/install.runtime-Zye6pbZ6.js +2 -0
- package/dist/internal-DL_vFx8C.js +399 -0
- package/dist/isolated-agent-Qif8Llbt.js +2 -0
- package/dist/isolated-agent-aqEjxqs-.js +1097 -0
- package/dist/kernel-B-i4c2IK.js +979 -0
- package/dist/kernel-DYDJ_hLb.js +3 -0
- package/dist/kimi-web-search-provider.runtime-95HAkvHY.js +307 -0
- package/dist/kimi-web-search-provider.runtime.js +1 -1
- package/dist/library-CZVbE5hF.js +45 -0
- package/dist/lifecycle-C8M3YLbT.js +2 -0
- package/dist/lifecycle-CPDNQnUN.js +570 -0
- package/dist/lifecycle-DpuP7n3J.js +355 -0
- package/dist/lifecycle.runtime-C8M3YLbT.js +2 -0
- package/dist/lifecycle.runtime.js +1 -1
- package/dist/link-understanding/apply.runtime.js +3 -3
- package/dist/list-B_ALwpPl.js +2 -0
- package/dist/list-Bda_GYFy.js +207 -0
- package/dist/list.list-command-W9OGfAIU.js +429 -0
- package/dist/list.model-row-LV4AaX0H.js +39 -0
- package/dist/list.probe-CrZm6BH2.js +451 -0
- package/dist/list.probe-Dfdmb8bC.js +2 -0
- package/dist/list.provider-catalog-7T1jKk0n.js +211 -0
- package/dist/list.provider-catalog-DjGyZVEj.js +2 -0
- package/dist/list.registry-load-DkCS8JZQ.js +152 -0
- package/dist/list.row-sources-B1vjo_Y9.js +474 -0
- package/dist/list.source-plan-C9Sa6zRK.js +81 -0
- package/dist/list.status-command-9daSZZDm.js +815 -0
- package/dist/live-model-switch-Dy-UFUMS.js +119 -0
- package/dist/llm-slug-generator-DEmh5-_1.js +78 -0
- package/dist/llm-slug-generator.js +1 -1
- package/dist/load-config-CvQpC8k6.js +27 -0
- package/dist/load-context-_qSHpZ5S.js +82 -0
- package/dist/loader-CntMt07B.js +7008 -0
- package/dist/local-dispatch.runtime-BSN_gqNS.js +10 -0
- package/dist/local-dispatch.runtime.js +1 -1
- package/dist/main-session-restart-recovery-Db7366lt.js +2 -0
- package/dist/main-session-restart-recovery-n87NTooQ.js +389 -0
- package/dist/managed-image-attachments-BTBBHlKl.js +2 -0
- package/dist/managed-image-attachments-C6_V1yX0.js +616 -0
- package/dist/manager-CKrWxjV6.js +3737 -0
- package/dist/manager-Dvb1FVnx.js +2314 -0
- package/dist/mcp/plugin-tools-serve.js +2 -2
- package/dist/mcp-http-CSoGXOa_.js +583 -0
- package/dist/mcp-http-D4ieDB3W.js +2 -0
- package/dist/media-runtime-GeQTQkkK.js +391 -0
- package/dist/media-services-CWbIUZDe.js +416 -0
- package/dist/media-understanding/apply.runtime.js +1 -1
- package/dist/media-understanding-DXc2BD2L.js +87 -0
- package/dist/media-understanding-provider-BkdUiVWU.js +70 -0
- package/dist/media-understanding-provider-BlgmLViW.js +13 -0
- package/dist/media-understanding-provider-C9P2VjkC.js +29 -0
- package/dist/media-understanding-provider-CJlbgAvl.js +69 -0
- package/dist/memory-CnC2jM1l.js +437 -0
- package/dist/memory-core-host-engine-embeddings-Dy9vN-Ce.js +667 -0
- package/dist/memory-core-host-engine-foundation-C-pGGQnm.js +15 -0
- package/dist/memory-core-host-engine-qmd-DLJDON9w.js +2 -0
- package/dist/memory-core-host-engine-storage-Bzf-C8XE.js +2 -0
- package/dist/memory-core-host-runtime-cli-_LWA6G3x.js +10 -0
- package/dist/memory-core-host-runtime-core-CromkNBr.js +12 -0
- package/dist/memory-core-host-runtime-files-DpbviC1b.js +4 -0
- package/dist/memory-embedding-provider-runtime-CaVVaYC5.js +36 -0
- package/dist/memory-host-core-B5dWHwBF.js +78 -0
- package/dist/memory-host-search.runtime-DqlCFac1.js +2 -0
- package/dist/memory-host-search.runtime.js +1 -1
- package/dist/memory-runtime-BCeeWb1G.js +2 -0
- package/dist/memory-runtime-pR9KGin0.js +57 -0
- package/dist/memory-search-CpDEEY2Q.js +235 -0
- package/dist/message-BeGCG-D8.js +284 -0
- package/dist/message-YGMOyqP5.js +2 -0
- package/dist/message-action-runner-ByMT3_eb.js +1922 -0
- package/dist/message-action-runner-VXmKO_W7.js +2 -0
- package/dist/message-handler-MZ0DMbCx.js +1806 -0
- package/dist/metadata-registry-loader-BH9D1UOx.js +2 -0
- package/dist/metadata-registry-loader-BK1cHCas.js +22 -0
- package/dist/migrate-BA6w0hd3.js +2 -0
- package/dist/migrate-BGuQC-1W.js +458 -0
- package/dist/migration-provider-runtime-BBdDegWG.js +2 -0
- package/dist/migration-provider-runtime-C5WUjrQz.js +68 -0
- package/dist/minimax-web-search-provider.runtime-suVFk3Zx.js +148 -0
- package/dist/minimax-web-search-provider.runtime.js +1 -1
- package/dist/model-BJZXR9dq.js +1302 -0
- package/dist/model-BL7xlN5h.js +2 -0
- package/dist/model-auth-C-6dYVob.js +6 -0
- package/dist/model-auth-DJz7R41W.js +705 -0
- package/dist/model-auth-label-DKNXktIu.js +67 -0
- package/dist/model-catalog-BjiK5rtT.js +3 -0
- package/dist/model-catalog-DM1CTjkW.js +434 -0
- package/dist/model-catalog-visibility-DEJZG0In.js +76 -0
- package/dist/model-config.helpers-BKcUeE_P.js +95 -0
- package/dist/model-context-tokens-5y_PQELY.js +572 -0
- package/dist/model-fallback-BDdBR053.js +1288 -0
- package/dist/model-fallback-auth.runtime-pcWfkIUF.js +5 -0
- package/dist/model-fallback-auth.runtime.js +1 -1
- package/dist/model-picker-Bpvp4_N4.js +1135 -0
- package/dist/model-picker-DWPPtq6d.js +3 -0
- package/dist/model-picker-visibility-BtdqVF80.js +22 -0
- package/dist/model-picker.runtime-CYlqts2z.js +48 -0
- package/dist/model-picker.runtime.js +1 -1
- package/dist/model-pricing-cache-BmmncDqL.js +856 -0
- package/dist/model-pricing-cache-CEwRyWw2.js +3 -0
- package/dist/model-pricing-cache-state-B8Aspp85.js +83 -0
- package/dist/model-provider-auth-B3KXoKkE.js +2 -0
- package/dist/model-provider-auth-Bo_8T7of.js +375 -0
- package/dist/model-runtime-aliases-Br-ZlhrL.js +133 -0
- package/dist/model-selection-D5-ERakL.js +254 -0
- package/dist/model-selection-DrzgktRu.js +7 -0
- package/dist/model-selection-ibwsPgIw.js +352 -0
- package/dist/model-selection.runtime-BRkOZejt.js +7 -0
- package/dist/model-selection.runtime.js +1 -1
- package/dist/models-RPAH3ZBn.js +57 -0
- package/dist/models-auth-status-Cwu9OXU8.js +280 -0
- package/dist/models-cli-CrYkSUoa.js +257 -0
- package/dist/models-config-Ayzj9gDz.js +1189 -0
- package/dist/models-config-BFcjB7nN.js +2 -0
- package/dist/models-config.providers.secrets-CCRUW7gL.js +2 -0
- package/dist/models-config.providers.secrets-DdX_XSRo.js +382 -0
- package/dist/models-http-jLFnelH7.js +88 -0
- package/dist/monitor-CqWICrjO.js +60 -0
- package/dist/monitor-DwccYPfp.js +1024 -0
- package/dist/monitor.account-e9EVttpP.js +5382 -0
- package/dist/music-generation-provider-Dfc--R-x.js +308 -0
- package/dist/native-hook-relay-Cioqiqv8.js +1378 -0
- package/dist/native-hook-relay-DRwJIspI.js +19 -0
- package/dist/node-cli-CrG3LH9J.js +2806 -0
- package/dist/node-command-policy-CkBTEmhl.js +295 -0
- package/dist/nodes-BxrWFA09.js +1483 -0
- package/dist/nodes-DFPTGZjc.js +3 -0
- package/dist/nodes-cli-Czwyt6r1.js +960 -0
- package/dist/nodes-pending-B_4QHyB2.js +211 -0
- package/dist/nodes-utils-c4k31OaG.js +85 -0
- package/dist/oauth-BXncC0JP.js +852 -0
- package/dist/oauth-Ba1O2vqP.js +207 -0
- package/dist/oauth-CGQkfxbJ.js +746 -0
- package/dist/onboard-I5tQlVm6.js +768 -0
- package/dist/onboard-channels-BleKfB1D.js +2 -0
- package/dist/onboard-channels-jVaUjGYX.js +1534 -0
- package/dist/onboard-custom-BR_5oqUr.js +3 -0
- package/dist/onboard-custom-Ss0DThuP.js +280 -0
- package/dist/onboard-custom-config-B-knjQm7.js +422 -0
- package/dist/onboard-search-BsIztGYF.js +412 -0
- package/dist/openai-compat-errors-UkLkk8Q9.js +136 -0
- package/dist/openai-http-mTQB44gu.js +836 -0
- package/dist/openai-transport-stream-CZSs3SIi.js +3427 -0
- package/dist/openresponses-http-BA1Shmj-.js +1175 -0
- package/dist/operations-DhgPih1F.js +805 -0
- package/dist/order-CaXafMPG.js +218 -0
- package/dist/outbound-attachment-BAp7DXDc.js +19 -0
- package/dist/param-readers-De-m2SoB.js +2 -0
- package/dist/payloads-Dg9aAEOC.js +256 -0
- package/dist/persistent-bindings.lifecycle-BkLOz501.js +2 -0
- package/dist/persistent-bindings.lifecycle-e2MLbBCo.js +85 -0
- package/dist/plugin-enabled-CGSENjXc.js +232 -0
- package/dist/plugin-install-BI9_bsVT.js +118 -0
- package/dist/plugin-install-an4V2iXO.js +2 -0
- package/dist/plugin-install-config-policy-C66Nss3D.js +169 -0
- package/dist/plugin-registration-DMerQktl.js +97 -0
- package/dist/plugin-registry-BZfdCw65.js +3 -0
- package/dist/plugin-registry-I1fegSdK.js +2 -0
- package/dist/plugin-runtime-B3XMLJka.js +102 -0
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/acp-binding-runtime.js +1 -1
- package/dist/plugin-sdk/acp-runtime-backend.js +1 -1
- package/dist/plugin-sdk/acp-runtime.js +2 -2
- package/dist/plugin-sdk/agent-harness-runtime.js +16 -16
- package/dist/plugin-sdk/agent-harness-task-runtime.js +4 -4
- package/dist/plugin-sdk/agent-harness.js +17 -17
- package/dist/plugin-sdk/agent-runtime.js +17 -17
- package/dist/plugin-sdk/agent-sessions.js +1 -1
- package/dist/plugin-sdk/approval-native-runtime.js +2 -2
- package/dist/plugin-sdk/approval-reaction-runtime.js +1 -1
- package/dist/plugin-sdk/approval-runtime.js +2 -2
- package/dist/plugin-sdk/bundled-channel-config-schema-BsOWCrJT.d.ts +3169 -0
- package/dist/plugin-sdk/bundled-channel-config-schema.d.ts +1 -1
- package/dist/plugin-sdk/channel-actions.js +2 -2
- package/dist/plugin-sdk/channel-config-schema-legacy.d.ts +1 -1
- package/dist/plugin-sdk/channel-core.js +2 -2
- package/dist/plugin-sdk/channel-envelope.js +1 -1
- package/dist/plugin-sdk/channel-inbound-roots.js +1 -1
- package/dist/plugin-sdk/channel-inbound.js +4 -4
- package/dist/plugin-sdk/channel-location.js +1 -1
- package/dist/plugin-sdk/channel-message-runtime.js +5 -5
- package/dist/plugin-sdk/channel-message.js +5 -5
- package/dist/plugin-sdk/channel-outbound.js +2 -2
- package/dist/plugin-sdk/channel-reply-options-runtime.js +1 -1
- package/dist/plugin-sdk/command-auth-native.js +2 -2
- package/dist/plugin-sdk/command-auth.js +4 -4
- package/dist/plugin-sdk/command-primitives-runtime.js +2 -2
- package/dist/plugin-sdk/command-status-runtime.js +1 -1
- package/dist/plugin-sdk/command-status.js +1 -1
- package/dist/plugin-sdk/compat.js +2 -2
- package/dist/plugin-sdk/config-mutation.js +2 -2
- package/dist/plugin-sdk/config-runtime.js +1 -1
- package/dist/plugin-sdk/config-schema.d.ts +2 -2
- package/dist/plugin-sdk/conversation-binding-runtime.js +1 -1
- package/dist/plugin-sdk/conversation-runtime.js +3 -3
- package/dist/plugin-sdk/core.js +3 -3
- package/dist/plugin-sdk/delivery-queue-runtime.js +1 -1
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/discord.d.ts +1 -1
- package/dist/plugin-sdk/embedding-providers.js +2 -2
- package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
- package/dist/plugin-sdk/gateway-runtime.js +2 -2
- package/dist/plugin-sdk/health.js +1 -1
- package/dist/plugin-sdk/image-generation-core.js +3 -3
- package/dist/plugin-sdk/image-generation-runtime.js +1 -1
- package/dist/plugin-sdk/image-generation.js +2 -2
- package/dist/plugin-sdk/inbound-reply-dispatch.js +3 -3
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +3 -3
- package/dist/plugin-sdk/mattermost.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime-shared.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime.js +1 -1
- package/dist/plugin-sdk/media-runtime.js +7 -7
- package/dist/plugin-sdk/media-understanding-runtime.js +1 -1
- package/dist/plugin-sdk/media-understanding.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-embeddings.js +4 -4
- package/dist/plugin-sdk/memory-core-host-engine-foundation.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-qmd.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-storage.js +6 -6
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-core.js +3 -3
- package/dist/plugin-sdk/memory-core-host-runtime-files.js +4 -4
- package/dist/plugin-sdk/memory-core.js +3 -3
- package/dist/plugin-sdk/memory-host-core.js +3 -3
- package/dist/plugin-sdk/memory-host-files.js +4 -4
- package/dist/plugin-sdk/memory-host-search.js +1 -1
- package/dist/plugin-sdk/models-provider-runtime.js +1 -1
- package/dist/plugin-sdk/music-generation-core.js +1 -1
- package/dist/plugin-sdk/native-command-registry.js +1 -1
- package/dist/plugin-sdk/outbound-media.js +2 -2
- package/dist/plugin-sdk/outbound-runtime.js +3 -3
- package/dist/plugin-sdk/param-readers.js +2 -2
- package/dist/plugin-sdk/plugin-runtime.js +2 -2
- package/dist/plugin-sdk/provider-auth-api-key.js +4 -4
- package/dist/plugin-sdk/provider-auth-login.js +1 -1
- package/dist/plugin-sdk/provider-auth-runtime.js +2 -2
- package/dist/plugin-sdk/provider-auth.js +6 -6
- package/dist/plugin-sdk/provider-catalog-runtime.js +2 -2
- package/dist/plugin-sdk/provider-entry.js +1 -1
- package/dist/plugin-sdk/provider-setup.js +1 -1
- package/dist/plugin-sdk/provider-stream-family.js +3 -3
- package/dist/plugin-sdk/provider-stream.js +2 -2
- package/dist/plugin-sdk/provider-transport-runtime.js +1 -1
- package/dist/plugin-sdk/provider-web-fetch.js +2 -2
- package/dist/plugin-sdk/provider-web-search.js +4 -4
- package/dist/plugin-sdk/realtime-bootstrap-context.js +2 -2
- package/dist/plugin-sdk/realtime-transcription.js +1 -1
- package/dist/plugin-sdk/realtime-voice.js +2 -2
- package/dist/plugin-sdk/reply-dispatch-runtime.js +1 -1
- package/dist/plugin-sdk/reply-runtime.js +6 -6
- package/dist/plugin-sdk/runtime-secret-resolution.js +2 -2
- package/dist/plugin-sdk/runtime.js +3 -3
- package/dist/plugin-sdk/self-hosted-provider-setup.js +1 -1
- package/dist/plugin-sdk/simple-completion-runtime.js +1 -1
- package/dist/plugin-sdk/speech-core.js +2 -2
- package/dist/plugin-sdk/speech.js +1 -1
- package/dist/plugin-sdk/tool-plugin.js +1 -1
- package/dist/plugin-sdk/transcripts.js +1 -1
- package/dist/plugin-sdk/tts-runtime.js +1 -1
- package/dist/plugin-sdk/video-generation-core.js +2 -2
- package/dist/plugin-sdk/video-generation-runtime.js +1 -1
- package/dist/plugin-sdk/web-media.js +3 -3
- package/dist/plugin-sdk/zalouser.js +1 -1
- package/dist/plugin-service-2XF6Lu_a.js +1249 -0
- package/dist/plugins/build-smoke-entry.js +2 -2
- package/dist/plugins/loader.js +1 -1
- package/dist/plugins/provider-discovery.runtime.js +1 -1
- package/dist/plugins/provider-runtime.runtime.js +1 -1
- package/dist/plugins/runtime/index.js +19 -19
- package/dist/plugins/tools.js +1 -1
- package/dist/plugins-authoring-command-CCX6tJwd.js +304 -0
- package/dist/plugins-cli-HX8nTV2h.js +63 -0
- package/dist/plugins-cli.runtime-BYn4VsLP.js +339 -0
- package/dist/plugins-cli.runtime.js +1 -1
- package/dist/plugins-command-helpers-ByuW-yNj.js +2 -0
- package/dist/plugins-command-helpers-DaaxGnCD.js +164 -0
- package/dist/plugins-inspect-command-C9NDk23X.js +248 -0
- package/dist/plugins-install-command-B0NfUxeA.js +993 -0
- package/dist/plugins-install-command-BmuScfLI.js +2 -0
- package/dist/plugins-install-persist-CfwO876P.js +252 -0
- package/dist/plugins-list-command-Bx8X908n.js +184 -0
- package/dist/plugins-uninstall-command-p6h44-Ft.js +118 -0
- package/dist/postinstall-inventory.json +862 -862
- package/dist/prepare.runtime-8DdQ4k9k.js +798 -0
- package/dist/prepare.runtime.js +1 -1
- package/dist/presentation-card-DeAf3jYW.js +164 -0
- package/dist/preview-warnings-BF7nlTo8.js +618 -0
- package/dist/profiles-DUhMLnqX.js +194 -0
- package/dist/program-C7f_U7fr.js +131 -0
- package/dist/provider-adapters-CWLwE9KS.js +104 -0
- package/dist/provider-api-key-auth-CshQbUPZ.js +117 -0
- package/dist/provider-api-key-auth.runtime-B64jPCKn.js +14 -0
- package/dist/provider-api-key-auth.runtime.js +1 -1
- package/dist/provider-auth-D-I3YLSn.js +281 -0
- package/dist/provider-auth-api-key-Bub0Rjak.js +5 -0
- package/dist/provider-auth-choice-DpNAEScm.js +311 -0
- package/dist/provider-auth-choice-helpers-Bof937LW.js +210 -0
- package/dist/provider-auth-choice.runtime-B3spikLY.js +18 -0
- package/dist/provider-auth-choice.runtime-vVgz7FKq.js +2 -0
- package/dist/provider-auth-choice.runtime.js +1 -1
- package/dist/provider-auth-guidance-DcCL0Q2U.js +2 -0
- package/dist/provider-auth-guidance-rWRMN4Jn.js +34 -0
- package/dist/provider-auth-helpers-Cp8L-Xha.js +177 -0
- package/dist/provider-auth-login.runtime-BJUzc4iH.js +156 -0
- package/dist/provider-auth-login.runtime.js +1 -1
- package/dist/provider-auth-runtime-DmcWtzbb.js +186 -0
- package/dist/provider-discovery-JyAJi97k.js +95 -0
- package/dist/provider-discovery.runtime-D_0WTYr8.js +290 -0
- package/dist/provider-discovery.runtime.js +1 -1
- package/dist/provider-dispatcher-C8Jt94Xl.js +22 -0
- package/dist/provider-dispatcher.runtime.js +1 -1
- package/dist/provider-entry-By0ggZuI.js +134 -0
- package/dist/provider-hook-runtime-B8AUbQxf.js +255 -0
- package/dist/provider-openai-codex-oauth-C9Mmnt7d.js +2 -0
- package/dist/provider-openai-codex-oauth-CH5Jg1vk.js +44 -0
- package/dist/provider-registration-C1zvaHQP.js +235 -0
- package/dist/provider-registry-B9diJyLv.js +31 -0
- package/dist/provider-registry-BXSxmPGA.js +61 -0
- package/dist/provider-registry-CoE-sxbq.js +61 -0
- package/dist/provider-registry-DLth_GdI.js +61 -0
- package/dist/provider-registry-J4LRd5Rg.js +36 -0
- package/dist/provider-runtime-B4cw16pt.js +3 -0
- package/dist/provider-runtime-DNNbfwOK.js +386 -0
- package/dist/provider-runtime.runtime-98mAe_ni.js +26 -0
- package/dist/provider-runtime.runtime.js +1 -1
- package/dist/provider-self-hosted-setup-Dysv2Kwt.js +373 -0
- package/dist/provider-stream-BLaC8bqO.js +1084 -0
- package/dist/provider-stream-Caa5YOx2.js +313 -0
- package/dist/provider-stream-family-CvvfxLyP.js +2 -0
- package/dist/provider-usage-CVNosTP3.js +71 -0
- package/dist/provider-usage-D2NudXbO.js +4 -0
- package/dist/provider-usage.load-DG6R3lkG.js +357 -0
- package/dist/provider-web-search-DmgTaxRU.js +58 -0
- package/dist/provider-wizard-Cw-5H3tX.js +125 -0
- package/dist/providers.runtime-DF0T9lFz.js +240 -0
- package/dist/providers.runtime-oM9Vn1wr.js +2 -0
- package/dist/providers.runtime.js +1 -1
- package/dist/proxy-BxGnVyJu.js +662 -0
- package/dist/public-artifacts-BMP9hZfh.js +7 -0
- package/dist/pw-ai-CD52qfYo.js +3064 -0
- package/dist/qmd-manager-BYbvU4YC.js +2040 -0
- package/dist/qr-cli-Btz2ZdO3.js +2 -0
- package/dist/qr-cli-eyTRwMm2.js +371 -0
- package/dist/qr-image-BCwiO6tL.js +2 -0
- package/dist/queue-CJRoTOBi.js +923 -0
- package/dist/read-file-ogB-HjbK.js +183 -0
- package/dist/register-service-commands-D_gQ3b6_.js +77 -0
- package/dist/register.agent-DXQLn-r0.js +152 -0
- package/dist/register.configure-FavQPGce.js +16 -0
- package/dist/register.crestodian-Cbfmnl6h.js +24 -0
- package/dist/register.maintenance-B8xODEMU.js +85 -0
- package/dist/register.message-B8PYgZ-j.js +404 -0
- package/dist/register.migrate-CieoN8zZ.js +106 -0
- package/dist/register.onboard-BqWDIDKH.js +115 -0
- package/dist/register.setup-CgeTBW4T.js +40 -0
- package/dist/register.status-health-sessions-C99aHa5h.js +293 -0
- package/dist/register.subclis-79SvyMFt.js +31 -0
- package/dist/register.subclis-CXrO8_TO.js +3 -0
- package/dist/register.subclis-core-GoXV1yMG.js +273 -0
- package/dist/rem-harness-laL5luQa.js +649 -0
- package/dist/repair-sequencing-DGY2mBg6.js +652 -0
- package/dist/reply-media-paths.runtime-BeWVPkgy.js +2 -0
- package/dist/reply-media-paths.runtime-rzAV_Kee.js +154 -0
- package/dist/reply-media-paths.runtime.js +1 -1
- package/dist/reply-payloads-D_JHMviC.js +79 -0
- package/dist/reply-payloads-dedupe-B9GGGaL-.js +176 -0
- package/dist/reply-payloads-dedupe.runtime--C3jHs9y.js +2 -0
- package/dist/reply-payloads-dedupe.runtime.js +1 -1
- package/dist/reply-timing-tracker-DPjlETUb.js +205 -0
- package/dist/reply-turn-admission-DdfIwcMK.js +2056 -0
- package/dist/reply.runtime-BC1HT67i.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/reset-preserved-selection-Czd80hug.js +45 -0
- package/dist/resolve-COJFlAZT.js +106 -0
- package/dist/restart-B9GMMIZt.js +121 -0
- package/dist/result-fallback-classifier-By0Z6b8r.js +98 -0
- package/dist/root-help-Bp0kGaUZ.js +43 -0
- package/dist/route-CgG9Z7OI.js +475 -0
- package/dist/route-reply-D9_9oRg1.js +174 -0
- package/dist/route-reply.runtime-BwNl3h2m.js +2 -0
- package/dist/route-reply.runtime.js +1 -1
- package/dist/routes-Cz2NHUV4.js +2 -0
- package/dist/routes-DMo6Eacc.js +3701 -0
- package/dist/run-SFRSThMI.js +1162 -0
- package/dist/run-auth-profile.runtime-BxLM8m_2.js +2 -0
- package/dist/run-auth-profile.runtime.js +1 -1
- package/dist/run-command-Cd5iN7eN.js +2 -0
- package/dist/run-command-ah46O06U.js +23 -0
- package/dist/run-context-DGCQJldA.js +66 -0
- package/dist/run-context.runtime-CSBHDAd5.js +2 -0
- package/dist/run-context.runtime.js +1 -1
- package/dist/run-delivery.runtime-C9xoiZ3h.js +762 -0
- package/dist/run-delivery.runtime.js +1 -1
- package/dist/run-embedded.runtime-D8bz5vfV.js +4 -0
- package/dist/run-embedded.runtime.js +1 -1
- package/dist/run-execution-cli.runtime-BAa8KPn7.js +4 -0
- package/dist/run-execution-cli.runtime.js +1 -1
- package/dist/run-executor.runtime-CNnemqSa.js +330 -0
- package/dist/run-executor.runtime.js +1 -1
- package/dist/run-model-catalog.runtime-Dh7EghXr.js +2 -0
- package/dist/run-model-catalog.runtime.js +1 -1
- package/dist/run-session-state-cMlTFwT_.js +159 -0
- package/dist/run-subagent-registry.runtime-BgQU86-E.js +2 -0
- package/dist/run-subagent-registry.runtime.js +1 -1
- package/dist/runner-B3YXRJOB.js +704 -0
- package/dist/runner.entries-DMTKpRDP.js +1485 -0
- package/dist/runtime-BHReFHE2.js +2 -0
- package/dist/runtime-BiQZ6Usw.js +615 -0
- package/dist/runtime-CAeriu2O.js +10 -0
- package/dist/runtime-CAnCRCX3.js +224 -0
- package/dist/runtime-CV_2NqSY.js +300 -0
- package/dist/runtime-CmpnvXo3.js +245 -0
- package/dist/runtime-D2fci1Ey.js +2 -0
- package/dist/runtime-DAsYmYeA.js +3 -0
- package/dist/runtime-DeA45VKG.js +210 -0
- package/dist/runtime-DvkZ8tHI.js +436 -0
- package/dist/runtime-DxVUR2Xg.js +2 -0
- package/dist/runtime-api-B88le0UE.js +12 -0
- package/dist/runtime-channel-AubRWvnH.js +2 -0
- package/dist/runtime-channel-DdclSuEu.js +148 -0
- package/dist/runtime-config-collectors-DukTj2va.js +525 -0
- package/dist/runtime-embedded-agent.runtime-BpLweeFv.js +2 -0
- package/dist/runtime-embedded-agent.runtime.js +1 -1
- package/dist/runtime-internal-CaoUylZw.js +2 -0
- package/dist/runtime-llm.runtime-DlpqGc7S.js +307 -0
- package/dist/runtime-llm.runtime.js +1 -1
- package/dist/runtime-model-auth.runtime-CLAaWzxY.js +46 -0
- package/dist/runtime-model-auth.runtime-DxVvqRTd.js +2 -0
- package/dist/runtime-model-auth.runtime.js +1 -1
- package/dist/runtime-options-TTtN01-I.js +275 -0
- package/dist/runtime-plugin-ClqxJSbp.js +92 -0
- package/dist/runtime-plugins-Bq01wLXP.js +32 -0
- package/dist/runtime-plugins.runtime-cwCvl1TR.js +2 -0
- package/dist/runtime-plugins.runtime.js +1 -1
- package/dist/runtime-prepare.runtime-Cz_hV_k5.js +81 -0
- package/dist/runtime-prepare.runtime.js +1 -1
- package/dist/runtime-provider-QCJq90av.js +24 -0
- package/dist/runtime-provider-Wllc3jC6.js +2 -0
- package/dist/runtime-registry-loader-BM1mQBJr.js +2 -0
- package/dist/runtime-registry-loader-DzhYCt4s.js +117 -0
- package/dist/runtime-shared-BfqOW-Vb.js +365 -0
- package/dist/runtime-web-channel-plugin-BcVPgD14.js +204 -0
- package/dist/runtime-web-tools-fallback.runtime.js +1 -1
- package/dist/scan-ldbaD8jq.js +573 -0
- package/dist/sdk-security-runtime-Bxhq2O1G.js +86 -0
- package/dist/sdk-setup-tools-CsQM9pF0.js +8 -0
- package/dist/secrets-cli-DbpIf4-z.js +150 -0
- package/dist/security-cli-BK4Xpa6h.js +520 -0
- package/dist/selection-BXKik6Ps.js +3 -0
- package/dist/selection-D4O3gK3Q.js +18365 -0
- package/dist/send-DaoGIay5.js +1222 -0
- package/dist/send-DzNjJGJX.js +178 -0
- package/dist/send-f5w9krNS.js +711 -0
- package/dist/send-media-cOciBxcg.js +2072 -0
- package/dist/send-result-DMFwBuOl.js +141 -0
- package/dist/server-BoC1mxZ-.js +24 -0
- package/dist/server-DZnI6w5k.js +72 -0
- package/dist/server-aux-handlers-BwRdYdub.js +1347 -0
- package/dist/server-chat-Q95f4ywD.js +827 -0
- package/dist/server-close.runtime.js +3 -3
- package/dist/server-context-CnXNaarB.js +2 -0
- package/dist/server-context-DRBebo7Y.js +955 -0
- package/dist/server-cron-C0o0ZvqF.js +3173 -0
- package/dist/server-cron-CLeBvurR.js +2 -0
- package/dist/server-maintenance-CqHfTnFD.js +152 -0
- package/dist/server-methods-BmlBQJMD.js +497 -0
- package/dist/server-middleware-DJhnR6jl.js +122 -0
- package/dist/server-model-catalog-CoSSk_Gy.js +2 -0
- package/dist/server-model-catalog-D32oDTQp.js +73 -0
- package/dist/server-node-events-DX9a4etQ.js +597 -0
- package/dist/server-plugin-bootstrap-Vco-EpxY.js +71 -0
- package/dist/server-plugins-WBX2fZRp.js +435 -0
- package/dist/server-reload-handlers-DGJLH8bg.js +719 -0
- package/dist/server-restart-sentinel-Bvon7f8K.js +700 -0
- package/dist/server-runtime-services-BNcH4vhR.js +3 -0
- package/dist/server-runtime-services-BjcQG5y7.js +147 -0
- package/dist/server-runtime-subscriptions-W39HeyoT.js +67 -0
- package/dist/server-session-events-CO73dMU-.js +244 -0
- package/dist/server-session-key-D8V67lDk.js +2 -0
- package/dist/server-session-key-v-KYSmRS.js +75 -0
- package/dist/server-startup-config-u54lUdWN.js +305 -0
- package/dist/server-startup-early-Cy5kArJG.js +87 -0
- package/dist/server-startup-memory-DvINFAYn.js +72 -0
- package/dist/server-startup-plugins-CerpbOSQ.js +127 -0
- package/dist/server-startup-post-attach-COUCwhNa.js +793 -0
- package/dist/server-ws-runtime-BfznAnbI.js +374 -0
- package/dist/server.impl-dQXccj0z.js +2622 -0
- package/dist/session-cost-usage-Bs5yIOBH.js +1600 -0
- package/dist/session-kill-http-DVleb3RW.js +121 -0
- package/dist/session-log-runtime-OG7J4j9m.js +1258 -0
- package/dist/session-override-LIWl5a9T.js +134 -0
- package/dist/session-reset-model.runtime-BpnTi4sa.js +144 -0
- package/dist/session-reset-model.runtime.js +1 -1
- package/dist/session-reset-service-HA07zS8L.js +651 -0
- package/dist/session-status.runtime-D6_clH8l.js +2 -0
- package/dist/session-status.runtime.js +1 -1
- package/dist/session-store-Cj4Rh6qc.js +273 -0
- package/dist/session-store.runtime-DSCxACdZ.js +4 -0
- package/dist/session-store.runtime.js +1 -1
- package/dist/session-subagent-reactivation.runtime-CcwaHAxg.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-tab-registry-C-9uI2Wi.js +551 -0
- package/dist/session-utils-BRtPESA4.js +1508 -0
- package/dist/sessions-Beltl3Ra.js +1917 -0
- package/dist/sessions-DR-X-j8D.js +316 -0
- package/dist/sessions-cleanup-CR1CFcJb.js +165 -0
- package/dist/sessions-history-http-CjyHWYEv.js +432 -0
- package/dist/sessions-patch-peSeltuF.js +401 -0
- package/dist/sessions-resolve-D9ULr95s.js +180 -0
- package/dist/sessions-table-Da6bua9d.js +161 -0
- package/dist/sessions-uKpnhod0.js +12736 -0
- package/dist/sessions.runtime-C1mVNaU3.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/set-DVj21EuB.js +31 -0
- package/dist/set-image-JChDCaAP.js +17 -0
- package/dist/setup-5I-zpID3.js +614 -0
- package/dist/setup-CjtY6cli.js +2 -0
- package/dist/setup-onboard-configure-help-fast-path-C5GcSuXb.js +64 -0
- package/dist/setup.finalize-Bf10PNbl.js +586 -0
- package/dist/setup.gateway-config-EH5Rvwzy.js +281 -0
- package/dist/setup.migration-import-CoeV4Kc1.js +200 -0
- package/dist/setup.migration-import-DFFGw4DI.js +2 -0
- package/dist/setup.post-install-migration-DcQmWTE7.js +128 -0
- package/dist/shared-BFSJZ6B3.js +212 -0
- package/dist/shared-CVM-dYkO.js +5 -0
- package/dist/shared-fvgcmCsj.js +71 -0
- package/dist/simple-completion-runtime-C_TXe4M1.js +2 -0
- package/dist/simple-completion-runtime-DREq-fcF.js +206 -0
- package/dist/simple-completion-transport-DtD1fEvJ.js +83 -0
- package/dist/snapshot-urls-B-wkwDI9.js +317 -0
- package/dist/speech-core-KQg6oKcR.js +119 -0
- package/dist/speech-provider-DfyLYitQ.js +171 -0
- package/dist/speech-provider-oDvTumNW.js +227 -0
- package/dist/speech-provider-yL-TQ3Em.js +233 -0
- package/dist/stale-oauth-profile-shadows-CW11VYMM.js +2 -0
- package/dist/stale-oauth-profile-shadows-DFl6Lyf1.js +186 -0
- package/dist/standalone-runtime-registry-loader-BiponY-y.js +59 -0
- package/dist/startup-context-PVXYM-X3.js +314 -0
- package/dist/status-BA_0z83w.js +249 -0
- package/dist/status-Bc7BGlRt.js +2 -0
- package/dist/status-BwPWg9eQ.js +3 -0
- package/dist/status-CLQ66eml.js +4 -0
- package/dist/status-Ci2gChtY.js +466 -0
- package/dist/status-CmtBWJEE.js +2 -0
- package/dist/status-DdnMnPNs.js +73 -0
- package/dist/status-all-BpTvkYrt.js +573 -0
- package/dist/status-json-CizozZCr.js +15 -0
- package/dist/status-json-command-FzKa2t6O.js +84 -0
- package/dist/status-message-BHbnxwmt.js +495 -0
- package/dist/status-message.runtime-Df5WBBAk.js +6 -0
- package/dist/status-message.runtime.js +1 -1
- package/dist/status-queue.runtime-CXnZV4Bj.js +2 -0
- package/dist/status-queue.runtime.js +1 -1
- package/dist/status-runtime-shared-D3Hz8WZ_.js +289 -0
- package/dist/status-subagents.runtime-PoDdwwaw.js +32 -0
- package/dist/status-subagents.runtime.js +1 -1
- package/dist/status-text-DNxXSCuI.js +301 -0
- package/dist/status.command-C_e9GcMg.js +2 -0
- package/dist/status.command-DjVKDmt_.js +425 -0
- package/dist/status.command.text-runtime-BeHlqL8b.js +15 -0
- package/dist/status.runtime-h--fx9HY.js +2 -0
- package/dist/status.scan-WyR8TeJz.js +72 -0
- package/dist/status.scan-overview-CMzUAQMQ.js +460 -0
- package/dist/status.scan.deps.runtime-1JTrdyHk.js +19 -0
- package/dist/status.scan.deps.runtime.js +1 -1
- package/dist/status.scan.fast-json-D2jw1wKO.js +163 -0
- package/dist/status.scan.fast-json-DbN1KxJT.js +2 -0
- package/dist/status.summary-6ZijZM1g.js +2 -0
- package/dist/status.summary-CiCsChO-.js +276 -0
- package/dist/store-CdBPITcg.js +2302 -0
- package/dist/store-D0l2NCdn.js +3 -0
- package/dist/stored-model-override-HEgnFh6b.js +79 -0
- package/dist/subagent-announce-BUv_kA1W.js +353 -0
- package/dist/subagent-announce-delivery-Ci2Y_p--.js +1369 -0
- package/dist/subagent-control-BM3vNgsQ.js +492 -0
- package/dist/subagent-control.runtime-Df3pVQL9.js +3 -0
- package/dist/subagent-control.runtime.js +1 -1
- package/dist/subagent-hooks-CN2fLez2.js +2 -0
- package/dist/subagent-hooks-CeOmTJBf.js +230 -0
- package/dist/subagent-hooks-api-Cfe4DAT9.js +23 -0
- package/dist/subagent-registry-B9RPAXUs.js +2627 -0
- package/dist/subagent-registry-C7tedtVB.js +3 -0
- package/dist/subagent-registry.runtime.js +2 -2
- package/dist/subagent-session-cleanup-y0ijZ-LQ.js +390 -0
- package/dist/system-DVtrOGbV.js +111 -0
- package/dist/system-prompt-config-BVmrcmmr.js +918 -0
- package/dist/talk-CrdgqTCl.js +2454 -0
- package/dist/target-id-CrUyi-Uq.js +107 -0
- package/dist/targets-KZ2ezPwx.js +267 -0
- package/dist/targets.runtime-iZ8KdQ1C.js +2 -0
- package/dist/targets.runtime.js +1 -1
- package/dist/task-executor-893pMqzn.js +349 -0
- package/dist/task-owner-access-DC7MKz3n.js +74 -0
- package/dist/task-registry-control.runtime.js +2 -2
- package/dist/task-registry-delivery-runtime-YGMOyqP5.js +2 -0
- package/dist/task-registry-uaYJfgXF.js +2362 -0
- package/dist/task-registry.maintenance-Dx0m2NYh.js +2 -0
- package/dist/task-registry.maintenance-gApg-XOt.js +764 -0
- package/dist/task-status-access-CFhD_ieY.js +18 -0
- package/dist/tasks-B_Qoz38D.js +153 -0
- package/dist/tasks-DtV85zJT.js +548 -0
- package/dist/tasks-audit-system-Con3yYnm.js +210 -0
- package/dist/tasks-json-BM3pauZl.js +73 -0
- package/dist/tavily-web-search-provider.runtime-Cmyyc5kX.js +112 -0
- package/dist/tavily-web-search-provider.runtime.js +1 -1
- package/dist/text-report-CKxmVmt5.js +695 -0
- package/dist/text-transforms.runtime-DVwVsBRS.js +113 -0
- package/dist/text-transforms.runtime.js +1 -1
- package/dist/thread-bindings-B6UEVp9q.js +228 -0
- package/dist/tool-KOZc7TIF.js +143 -0
- package/dist/tool-dispatch-Ca4z2GEr.js +155 -0
- package/dist/tool-images-CzDwHeDR.js +247 -0
- package/dist/tool-plugin-BvQBJ2gU.js +93 -0
- package/dist/tool-resolution-Ddxl6tjh.js +153 -0
- package/dist/tool-result-truncation-BSKuIhd5.js +498 -0
- package/dist/tool-schema-nB27q-vb.js +40 -0
- package/dist/tool-schema-projection-COrMarLR.js +215 -0
- package/dist/tool-split-BjPHBFrv.js +323 -0
- package/dist/tools-CV40BWkc.js +901 -0
- package/dist/tools-catalog-5stC7W2V.js +156 -0
- package/dist/tools-effective-BVjqz2FV.js +442 -0
- package/dist/tools-effective-inventory-esPY5jRB.js +379 -0
- package/dist/tools-invoke-Czk_NM9G.js +51 -0
- package/dist/tools-invoke-http-D7PbsODz.js +68 -0
- package/dist/tools-invoke-shared-CzrEn0Dm.js +200 -0
- package/dist/tools-rSjgf61B.js +579 -0
- package/dist/tools.runtime-DiChCSGI.js +5 -0
- package/dist/tools.runtime.js +1 -1
- package/dist/transcript-rewrite-4IQefjvK.js +688 -0
- package/dist/transcripts-tool-BXTS8tE5.js +2 -0
- package/dist/transcripts-tool-CeWGgz5k.js +656 -0
- package/dist/tts-BS8EeM8p.js +2 -0
- package/dist/tts-BlTZjsaE.js +194 -0
- package/dist/tts-runtime-BfRdJDyY.js +1337 -0
- package/dist/tts-vRSvSw-t.js +3 -0
- package/dist/tts.runtime-ChBnVkNt.js +3 -0
- package/dist/tts.runtime-CmVCUbzq.js +2 -0
- package/dist/tts.runtime.js +1 -1
- package/dist/tui-BoQVBgWB.js +4860 -0
- package/dist/tui-DBYK9BeQ.js +2 -0
- package/dist/tui-backend-X0NI7rAv.js +256 -0
- package/dist/tui-cli-BpUtjV38.js +40 -0
- package/dist/typing-policy-CBwyAQh4.js +199 -0
- package/dist/usage-Bl-tgGx-.js +623 -0
- package/dist/usage-Cj_ektBl.js +1113 -0
- package/dist/usage-format-DWO9ckX3.js +394 -0
- package/dist/usage-format-DnCIXsqG.js +2 -0
- package/dist/video-generation-provider-B7ib4AeI.js +297 -0
- package/dist/video-generation-provider-CXQ6fqJx.js +64 -0
- package/dist/video-generation-provider-DXjl05T6.js +325 -0
- package/dist/video-generation-provider-Db8h71jA.js +77 -0
- package/dist/web-fetch/runtime.js +1 -1
- package/dist/web-fetch-providers.runtime-DhPkYjgB.js +41 -0
- package/dist/web-fetch-providers.runtime.js +1 -1
- package/dist/web-guarded-fetch-BdsVyvDS.js +58 -0
- package/dist/web-guarded-fetch-CJR3JCwT.js +2 -0
- package/dist/web-media-BzzQJAwk.js +4 -0
- package/dist/web-media-DViZjNBa.js +2 -0
- package/dist/web-media-inHawfBU.js +651 -0
- package/dist/web-provider-runtime-shared-Cc08Lt9p.js +142 -0
- package/dist/web-search-provider-common-CtbtmUL-.js +252 -0
- package/dist/web-search-providers.runtime-B7x_cRVn.js +41 -0
- package/dist/web-search-providers.runtime.js +1 -1
- package/dist/zod-schema.core-Cuz0lz6m.d.ts +166 -0
- package/package.json +1 -1
- package/dist/abort-CR0u3VsG.js +0 -277
- package/dist/abort.runtime-CXUxanGg.js +0 -2
- package/dist/accounts-BxBaquAf.js +0 -423
- package/dist/accounts-vQjpoqEe.js +0 -2
- package/dist/acp-spawn-2elSoS0E.js +0 -1286
- package/dist/acp-spawn-DtKOHNO1.js +0 -2
- package/dist/acp-stateful-target-driver-BqeA5j0h.js +0 -89
- package/dist/action-info-B8NotHFw.js +0 -75
- package/dist/active-runtime-registry-BO9mpPuB.js +0 -62
- package/dist/active-tool-schema-warnings-C8vGj5FX.js +0 -105
- package/dist/active-tool-schema-warnings-CVeFJuWI.js +0 -2
- package/dist/agent-BgEaDMdp.js +0 -1825
- package/dist/agent-_V5GbziF.js +0 -2
- package/dist/agent-bundle-lsp-runtime-0jBcDEHh.js +0 -389
- package/dist/agent-bundle-lsp-runtime-CQ6dZLs_.js +0 -2
- package/dist/agent-bundle-mcp-materialize-Cu6JqMzC.js +0 -124
- package/dist/agent-bundle-mcp-tools-BGL827cn.js +0 -3
- package/dist/agent-command-CMJdGr16.js +0 -1435
- package/dist/agent-delivery-DMu1MOeq.js +0 -117
- package/dist/agent-harness-runtime-BKSW2E1O.js +0 -207
- package/dist/agent-model-discovery-Cu4YL31r.js +0 -3
- package/dist/agent-model-discovery-DdmVtkZo.js +0 -238
- package/dist/agent-runner-utils-DXNDhwkI.js +0 -267
- package/dist/agent-runner.runtime-Cym4Odfd.js +0 -3784
- package/dist/agent-runtime-BkbhevY3.js +0 -199
- package/dist/agent-runtime-label-DNP06p76.js +0 -30
- package/dist/agent-runtime-metadata-JaTKc7mA.js +0 -53
- package/dist/agent-tool-result-middleware-loader-FbZE0Qpk.js +0 -55
- package/dist/agent-tools-Nwh8BlKX.js +0 -2506
- package/dist/agent-tools.before-tool-call-BwY-FYFl.js +0 -1274
- package/dist/agent-tools.before-tool-call-DwUmYhE3.js +0 -2
- package/dist/agent-u5NDWrw9.js +0 -3
- package/dist/agent-via-gateway-DMtOMwZa.js +0 -486
- package/dist/agent-wait-dedupe-CLuKbI_7.js +0 -180
- package/dist/agents-CiW7UEuB.js +0 -632
- package/dist/agents.command-shared-CXGSQscb.js +0 -16
- package/dist/agents.commands.add-BYBrZDXD.js +0 -304
- package/dist/agents.commands.bind-nfg3AlVc.js +0 -265
- package/dist/agents.commands.delete-pRj6vIrn.js +0 -128
- package/dist/agents.commands.identity-Ci2PnDDl.js +0 -143
- package/dist/agents.commands.list-Crj3BmqB.js +0 -235
- package/dist/aliases-BFspFx3-.js +0 -97
- package/dist/api-BiXhdPle.js +0 -3
- package/dist/api-Cptkjys5.js +0 -6
- package/dist/api-D3vT4ZVi.js +0 -2
- package/dist/api-key-rotation-CQgW8LEx.js +0 -167
- package/dist/app-registration-YW276fZC.js +0 -194
- package/dist/apply-BRxKrOiK.js +0 -510
- package/dist/apply-D0fWCa-U.js +0 -2
- package/dist/apply-DIR8y0ZA.js +0 -2
- package/dist/apply-DNUIV0Lt.js +0 -416
- package/dist/apply-Dux9jI7f.js +0 -544
- package/dist/approval-native-helpers-BMT-5X47.js +0 -398
- package/dist/artifacts-CTrtIv9T.js +0 -368
- package/dist/assistant-ClfI8Kho.js +0 -291
- package/dist/attachment-normalize-DAW86mZY.js +0 -213
- package/dist/attempt-execution-DTi2UfET.js +0 -584
- package/dist/attempt-execution.helpers-DrX0QToi.js +0 -969
- package/dist/attempt-execution.runtime-BCmAxwGy.js +0 -3
- package/dist/attempt.prompt-helpers-BE6kGRtT.js +0 -543
- package/dist/attempt.tool-run-context-J9O2yjbV.js +0 -1240
- package/dist/audio-preflight.runtime-D3GXVYBI.js +0 -7
- package/dist/audit-5T20D-xm.js +0 -1108
- package/dist/audit-CWuV5GlP.js +0 -477
- package/dist/audit.nondeep.runtime-DeYwRDYj.js +0 -1416
- package/dist/audit.runtime-rUlvK4Rb.js +0 -7
- package/dist/auth-DunUSatn.js +0 -567
- package/dist/auth-choice--eBzca8Y.js +0 -3
- package/dist/auth-choice-DJ9jsFUq.js +0 -400
- package/dist/auth-choice-_pLkIdVh.js +0 -110
- package/dist/auth-choice.apply.api-providers-CALcopRP.js +0 -2
- package/dist/auth-choice.apply.api-providers-Dzzm1snk.js +0 -34
- package/dist/auth-choice.plugin-providers.runtime-BHKTeZZc.js +0 -11
- package/dist/auth-health-Cs4OjiF2.js +0 -219
- package/dist/auth-list-bwJ4QDs0.js +0 -115
- package/dist/auth-order-BoHN3Dc_.js +0 -105
- package/dist/auth-profiles-BOLncVgy.js +0 -73
- package/dist/auth-profiles-BiQRkULt.js +0 -14
- package/dist/backend-config-B5yga5ay.js +0 -259
- package/dist/bash-tools-BWvldguc.js +0 -3
- package/dist/bash-tools-DEAAO5np.js +0 -3497
- package/dist/binding-routing-BbtHmU_l.js +0 -113
- package/dist/binding-targets-DSNv3-QA.js +0 -121
- package/dist/bootstrap-files-DD8V2dLe.js +0 -202
- package/dist/bootstrap-files-_6u1uJW2.js +0 -3
- package/dist/bridge-server-v1-XPnAZ.js +0 -113
- package/dist/browser-cli-CnpuO4KR.js +0 -230
- package/dist/browser-cli-DPbIn8SK.js +0 -2
- package/dist/browser-cli-actions-input-DoGR6LI-.js +0 -522
- package/dist/browser-cli-actions-observe-CYMpgmtF.js +0 -81
- package/dist/browser-cli-debug-ChJjSq-h.js +0 -137
- package/dist/browser-cli-inspect-Bbci-WPG.js +0 -117
- package/dist/browser-cli-manage-Bnscjb7b.js +0 -446
- package/dist/browser-cli-resize-D1MJdvZI.js +0 -32
- package/dist/browser-cli-shared-BCQwqz51.js +0 -69
- package/dist/browser-cli-state-BWkPsvUg.js +0 -371
- package/dist/browser-control-auth-CEP_ExeC.js +0 -2
- package/dist/browser-profiles-SvnqnHVN.js +0 -2
- package/dist/browser-runtime-0mRxjFpp.js +0 -389
- package/dist/browser-tool.schema--CLR3nDv.js +0 -132
- package/dist/btw-command-DV6HfrRV.js +0 -18
- package/dist/build-DiRmljCi.js +0 -261
- package/dist/bundled-channel-config-schema-Bte--ZlY.d.ts +0 -3168
- package/dist/capability-cli-ATfwTYFe.js +0 -1809
- package/dist/capability-provider-runtime-l3nnLGvn.js +0 -346
- package/dist/cdp.helpers-IIuc0KGS.js +0 -637
- package/dist/channel-CzTD2ouI.js +0 -2309
- package/dist/channel-actions-B5Yk5Axf.js +0 -46
- package/dist/channel-bootstrap.runtime-C9F-Pq1o.js +0 -38
- package/dist/channel-bootstrap.runtime-TPyY5Ngv.js +0 -2
- package/dist/channel-core-XMZJ-ZGF.js +0 -5
- package/dist/channel-inbound-DvqkKmiH.js +0 -121
- package/dist/channel-message-CnJ4vUyt.js +0 -12
- package/dist/channel-outbound-BhefGAqY.js +0 -436
- package/dist/channel-plugin-resolution-BiaJ8aRa.js +0 -2
- package/dist/channel-plugin-resolution-D_CxkMVc.js +0 -135
- package/dist/channel-resolution-DzI28gIM.js +0 -46
- package/dist/channel-selection-CLFO4-eQ.js +0 -171
- package/dist/channel-selection.runtime-Beb2-bMH.js +0 -2
- package/dist/channel.runtime-By5T5eGw.js +0 -697
- package/dist/channels-BrRY9Mag.js +0 -1004
- package/dist/channels-cli-CF--e2RU.js +0 -331
- package/dist/chat-BTMPilpx.js +0 -2940
- package/dist/chat-DnC7XCWK.js +0 -3
- package/dist/chrome-C3_dN9jE.js +0 -1517
- package/dist/chrome-mcp-5jjDHIgn.js +0 -864
- package/dist/chrome-mcp-DFAa-WzK.js +0 -2
- package/dist/claude-live-session-BUPeOzLE.js +0 -1338
- package/dist/claude-live-session-Bprgmr1-.js +0 -2
- package/dist/clawbot-cli-5UVkLT1Y.js +0 -9
- package/dist/cli-6a6sMEUB.js +0 -2
- package/dist/cli-COCN9B5e.js +0 -2
- package/dist/cli-CpI4dBXy.js +0 -141
- package/dist/cli-YLx-ekdH.js +0 -293
- package/dist/cli-backends.runtime-CsBjr7ag.js +0 -7
- package/dist/cli-compaction-Bh0oMwUa.js +0 -363
- package/dist/cli-registry-loader-DDbaAJgY.js +0 -2
- package/dist/cli-registry-loader-xc2Ah8S4.js +0 -193
- package/dist/cli-runner-BfSrIn-9.js +0 -597
- package/dist/cli-runner-D_FAjNbR.js +0 -2
- package/dist/cli-runner.runtime-BJetQDu1.js +0 -3
- package/dist/cli-runner.runtime-BKJQkc7C.js +0 -4
- package/dist/cli-session-Cy3IeH0g.js +0 -119
- package/dist/cli.runtime-BpOz0s3N.js +0 -1276
- package/dist/codex-native-web-search-BDtKRV3F.js +0 -4
- package/dist/codex-native-web-search-C0TrfoMX.js +0 -20
- package/dist/codex-native-web-search-core-CzlK1GfN.js +0 -106
- package/dist/command-auth-CFnvdYX2.js +0 -135
- package/dist/command-config-resolution-B_86rG8v.js +0 -2
- package/dist/command-config-resolution-BbadcA2M.js +0 -25
- package/dist/command-config-resolution.runtime-B_86rG8v.js +0 -2
- package/dist/command-execution-startup-Rrwwdg_5.js +0 -90
- package/dist/command-primitives-runtime-C9bTt5IV.js +0 -3
- package/dist/command-registry-CbpdQKmu.js +0 -9
- package/dist/command-registry-Dw-XC_Zk.js +0 -4
- package/dist/command-registry-core-rvEDki6p.js +0 -114
- package/dist/command-secret-gateway-BX6BIiFn.js +0 -589
- package/dist/command-secret-targets-DCzlTkb5.js +0 -2
- package/dist/command-status-builders-DIsZN9aY.js +0 -147
- package/dist/command-status.runtime-C2x4yMRd.js +0 -90
- package/dist/commands-FYCxWqIx.js +0 -161
- package/dist/commands-compact.runtime-BTMQfx1k.js +0 -10
- package/dist/commands-core.runtime-CuNLz2wm.js +0 -2
- package/dist/commands-handlers.runtime-DyNuPOmY.js +0 -6327
- package/dist/commands-models-s7BRmLQh.js +0 -448
- package/dist/commands-registry-BxEq-3UJ.js +0 -195
- package/dist/commands-registry.runtime-CbXW33S_.js +0 -4
- package/dist/commands-status-BRJMba4h.js +0 -16
- package/dist/commands-status-DCXEwlSF.js +0 -3
- package/dist/commands-status.runtime-DCXEwlSF.js +0 -3
- package/dist/commands-subagents-control.runtime-CduLQJFD.js +0 -2
- package/dist/commands-system-prompt-B3LD8CDs.js +0 -161
- package/dist/commands-system-prompt-DPsXTqOQ.js +0 -2
- package/dist/commands.runtime-3sVz8Qgo.js +0 -175
- package/dist/common-CZvBLb3w.js +0 -286
- package/dist/compact-DxU_9XEc.js +0 -1165
- package/dist/compact.runtime-CqQTypVl.js +0 -12
- package/dist/compaction-planning-DArTi9SN.js +0 -202
- package/dist/completion-cli-CiKl5HhI.js +0 -393
- package/dist/config--yllOaSC.js +0 -374
- package/dist/config-Yt5UcD91.js +0 -610
- package/dist/config-cli-BeXS3R6k.js +0 -1703
- package/dist/config-mutation-cQeWhUqy.js +0 -5
- package/dist/config-mutations-Cg04LH_S.js +0 -161
- package/dist/config-utils-Dhq_UKMC.js +0 -141
- package/dist/config-validation-BANohTKD.js +0 -33
- package/dist/configure-CWxhlx9G.js +0 -771
- package/dist/configure-Jejkc6dn.js +0 -3
- package/dist/configure.commands-BYy1bz8G.js +0 -2
- package/dist/configure.commands-C3hDvZse.js +0 -1253
- package/dist/context-DptQ59DZ.js +0 -248
- package/dist/context-_ZshNBhD.js +0 -2
- package/dist/context-engine-host-compat-C_eflvRw.js +0 -2
- package/dist/context-engine-host-compat-s15Pu845.js +0 -280
- package/dist/context-engine-lifecycle-COHFLnj4.js +0 -627
- package/dist/control-auth-CQJpLoIb.js +0 -114
- package/dist/control-service-BFSgA0Py.js +0 -40
- package/dist/control-service-D7GZv-GS.js +0 -3
- package/dist/control-ui/assets/activity-CCu43qU8.js +0 -124
- package/dist/control-ui/assets/agents-DCvsB0yO.js +0 -1030
- package/dist/control-ui/assets/channels-CpM2j5xT.js +0 -120
- package/dist/control-ui/assets/cron-CLXNfwYa.js +0 -1016
- package/dist/control-ui/assets/debug-BcJ34lrC.js +0 -97
- package/dist/control-ui/assets/index-CuBn2YpX.js +0 -7214
- package/dist/control-ui/assets/instances-Bu6NM_Hs.js +0 -57
- package/dist/control-ui/assets/nodes-Bd1WzVLK.js +0 -444
- package/dist/control-ui/assets/sessions-C2r8pbt7.js +0 -425
- package/dist/control-ui/assets/skills-DIjn93ee.js +0 -362
- package/dist/control-ui/assets/workboard-CHb0if1l.js +0 -402
- package/dist/control-ui-ChfTPXZo.js +0 -750
- package/dist/conversation-label-generator-CTfnInQF.js +0 -72
- package/dist/conversation-runtime-B7oAN9Tq.js +0 -31
- package/dist/core-api-CBD0dvTQ.js +0 -5
- package/dist/core-api-ClCm_yM8.js +0 -2
- package/dist/core-wuoxL08a.js +0 -284
- package/dist/crestodian--iYeGB8u.js +0 -55
- package/dist/cron-D2SzQyqo.js +0 -453
- package/dist/daemon-install-B6CAkU3V.js +0 -66
- package/dist/daemon-install-auth-profiles-store.runtime-Cpt5LSD6.js +0 -2
- package/dist/dashboard-ChYOQjM2.js +0 -263
- package/dist/defaults-CCopehWw.js +0 -130
- package/dist/defaults-H4kBp17N.js +0 -3
- package/dist/defaults.constants-CjB9HP6f.js +0 -76
- package/dist/deliver-BzPhWO_F.js +0 -3
- package/dist/deliver-DGyKH3Qi.js +0 -1399
- package/dist/deliver-runtime-Ca2kcQoZ.js +0 -2
- package/dist/delivery-outbound.runtime-D7ycPxY-.js +0 -7
- package/dist/delivery-queue-CnLv30ko.js +0 -863
- package/dist/delivery-queue-CuaDjNMh.js +0 -2
- package/dist/delivery-queue-runtime-DO2vqOIJ.js +0 -16
- package/dist/delivery-target.runtime-QcBVk_j8.js +0 -45
- package/dist/delivery.runtime-L09v4tys.js +0 -470
- package/dist/detached-task-runtime-BqU7YXYT.js +0 -86
- package/dist/diagnostics-T-Hk_Qzi.js +0 -168
- package/dist/dialogue-C0VnTMMn.js +0 -37
- package/dist/direct-dm-BWn67tDD.js +0 -81
- package/dist/directive-handling.defaults-DO6Snm4_.js +0 -22
- package/dist/directive-handling.fast-lane-BemYRfPn.js +0 -70
- package/dist/directive-handling.impl-BMVh1pMh.js +0 -823
- package/dist/directive-handling.impl-vr4MsYbt.js +0 -2
- package/dist/directive-handling.model-selection-DegP9exp.js +0 -122
- package/dist/directive-handling.persist.runtime-BUdU6_zm.js +0 -274
- package/dist/directives-1xk_ZcMf.js +0 -319
- package/dist/directory-cli-D83WEjEG.js +0 -239
- package/dist/dispatch-Ck2tvRYH.js +0 -2057
- package/dist/dispatch-acp-GdaHNdvf.js +0 -1102
- package/dist/dispatch-acp-manager.runtime-BGSrJqrW.js +0 -3
- package/dist/dispatch-acp-media.runtime-DQ8dYQh8.js +0 -4
- package/dist/dispatch-acp-transcript.runtime-CsJZGhnu.js +0 -40
- package/dist/dispatch-acp-tts.runtime-Bo-QxKgx.js +0 -3
- package/dist/dispatch-acp.runtime-C_u7sGcQ.js +0 -18
- package/dist/dispatcher-GtuYO6Ni.js +0 -106
- package/dist/doctor-B2qP9g8d.js +0 -760
- package/dist/doctor-D9wCez5t.js +0 -6
- package/dist/doctor-auth-XnseqtS7.js +0 -216
- package/dist/doctor-auth-flat-profiles-B6cL-TiJ.js +0 -516
- package/dist/doctor-auth-flat-profiles-Birb7qIk.js +0 -2
- package/dist/doctor-auth-legacy-oauth-CXO3OtyG.js +0 -48
- package/dist/doctor-auth-oauth-sidecar-BSgQPbcS.js +0 -177
- package/dist/doctor-auth-oauth-sidecar-CzzyNwxc.js +0 -2
- package/dist/doctor-bootstrap-size-BlVcO5D6.js +0 -57
- package/dist/doctor-claude-cli-_MTVnCQ-.js +0 -150
- package/dist/doctor-config-flow-0kxzjUjK.js +0 -1819
- package/dist/doctor-core-checks-C_g9REOd.js +0 -666
- package/dist/doctor-core-checks-CahzmM1L.js +0 -2
- package/dist/doctor-core-checks.runtime-Bi_oTiTZ.js +0 -278
- package/dist/doctor-gateway-daemon-flow-UAIWsI9w.js +0 -349
- package/dist/doctor-gateway-services-BiMEGiw_.js +0 -465
- package/dist/doctor-health-C69GVfMl.js +0 -65
- package/dist/doctor-health-contributions-Bz19QhI4.js +0 -874
- package/dist/doctor-lint-BVW4E6Qf.js +0 -95
- package/dist/doctor-memory-search-D2PWzDCY.js +0 -407
- package/dist/doctor-state-integrity-DuJIszQj.js +0 -1257
- package/dist/doctor-tool-result-cap-advice-Dpn4zNH3.js +0 -27
- package/dist/doctor-workspace-status-nW9TcIWi.js +0 -76
- package/dist/dreaming-CcOWzGN5.js +0 -523
- package/dist/dreaming-command-sxm3FQGb.js +0 -101
- package/dist/dreaming-narrative-BSRwiUPL.js +0 -2
- package/dist/dreaming-narrative-BskwmYdC.js +0 -721
- package/dist/dreaming-phases-BuHjGyPw.js +0 -2
- package/dist/dreaming-phases-ChVT8Ovk.js +0 -1162
- package/dist/drive-C_u5W4ln.js +0 -899
- package/dist/echo-transcript-tnZWH4EO.js +0 -52
- package/dist/effective-tool-policy-CeHdL2D7.js +0 -89
- package/dist/embedded-agent-CGULn3lb.js +0 -4
- package/dist/embedded-agent-DZTa1YiK.js +0 -4074
- package/dist/embedded-agent-helpers-B65K9o55.js +0 -6
- package/dist/embedded-agent-helpers-BPXCvWBb.js +0 -1037
- package/dist/embedded-agent.runtime-TfBgXcUV.js +0 -4
- package/dist/embedded-backend-BAaFwayA.js +0 -744
- package/dist/embedded-gateway-stub.runtime-CNyrjvgT.js +0 -12
- package/dist/embedding-provider-runtime-EnkHdROJ.js +0 -86
- package/dist/embedding-providers-CDkDb0kv.js +0 -2
- package/dist/embeddings-http-ClIu4_mP.js +0 -222
- package/dist/engine-qmd-DZRiT9i4.js +0 -708
- package/dist/engine-storage-BEqlN8TR.js +0 -203
- package/dist/errors-Co8auIlv.js +0 -2
- package/dist/exec-approval-forwarder.runtime-C7QvfWQ6.js +0 -4
- package/dist/exec-approval-session-target-ChuH1nXL.js +0 -177
- package/dist/exec-auto-reviewer-Bm7380HF.js +0 -2
- package/dist/exec-auto-reviewer-BrrdGleK.js +0 -241
- package/dist/execute.runtime-B-8jUqDB.js +0 -579
- package/dist/external-cli-auth-selection-0BxmRUps.js +0 -113
- package/dist/extra-params-BgyvpEpv.js +0 -615
- package/dist/fallback-notice-state-BXk_kRWM.js +0 -15
- package/dist/fallbacks-CPdVRP81.js +0 -31
- package/dist/fallbacks-shared-CSGf1oaf.js +0 -116
- package/dist/fengming-runtime-NUA51sEw.js +0 -33
- package/dist/fengming-runtime-config-CIZ-SHPt.js +0 -2
- package/dist/fengming-runtime-memory-CIZ-SHPt.js +0 -2
- package/dist/fengming-runtime-session-CIZ-SHPt.js +0 -2
- package/dist/fengming-tools-MvRSt0JA.js +0 -12221
- package/dist/flows-BocRit8D.js +0 -189
- package/dist/fs-utils-DSXeBcjj.js +0 -9
- package/dist/gateway-BCrUxrVw.js +0 -133
- package/dist/gateway-cli-B8bXBd_L.js +0 -443
- package/dist/gateway-install-token-pngTMc-f.js +0 -136
- package/dist/gateway-method-runtime-ueZTz7WH.js +0 -21
- package/dist/gateway-runtime-DbsoThML.js +0 -23
- package/dist/get-reply-DUuaxcBz.js +0 -5198
- package/dist/get-reply-from-config.runtime-B4Dgs3Hg.js +0 -2
- package/dist/github-copilot-token-7AfRRF7J.js +0 -2
- package/dist/health-7Yq5zpoZ.js +0 -3
- package/dist/health-DlZqxm2f.js +0 -621
- package/dist/health-DxesUuur.js +0 -111
- package/dist/health-state-BMG8kOby.js +0 -106
- package/dist/heartbeat-runner-Bq7A_Cjm.js +0 -5
- package/dist/heartbeat-runner-DVwbVyft.js +0 -1930
- package/dist/heartbeat-runner.runtime-DQ2NPXMD.js +0 -3
- package/dist/helpers-PCu2RivJ.js +0 -406
- package/dist/hook-helpers-DLEnCRO7.js +0 -44
- package/dist/hooks-Bv-otcl7.js +0 -536
- package/dist/hooks-cli-C5ve0nzF.js +0 -465
- package/dist/http-endpoint-helpers-w2SagsQz.js +0 -37
- package/dist/http-utils-CVvn0ZA-.js +0 -98
- package/dist/image-BeixBis4.js +0 -385
- package/dist/image-fallbacks-CPbmIMn9.js +0 -31
- package/dist/image-generation-core.auth.runtime-Co38iRxQ.js +0 -2
- package/dist/image-generation-provider-BA4Ar91S.js +0 -152
- package/dist/image-runtime-7ZsfioS1.js +0 -9
- package/dist/image-tool.helpers-upjA3ksB.js +0 -150
- package/dist/images-ChLi1Uog.js +0 -2
- package/dist/images-nB0XAnTa.js +0 -416
- package/dist/inbound-reply-dispatch-DglobJ8j.js +0 -2
- package/dist/inbound-reply-dispatch-QKOgNx-m.js +0 -147
- package/dist/index-AZzJCgph.d.ts +0 -1497
- package/dist/infra-runtime-CGD3RE_2.js +0 -32
- package/dist/init-poVZDCAM.js +0 -59
- package/dist/install-Dn9oPGmU.js +0 -262
- package/dist/install.runtime-D5sllsjl.js +0 -2
- package/dist/internal-CnOL_Roa.js +0 -399
- package/dist/isolated-agent-CNw6E3F0.js +0 -1097
- package/dist/isolated-agent-DjkHhEyR.js +0 -2
- package/dist/kernel-B5Y5IQ-A.js +0 -3
- package/dist/kernel-CMuO4VJy.js +0 -979
- package/dist/kimi-web-search-provider.runtime-V4m_MHsk.js +0 -307
- package/dist/library-B-1EZjtY.js +0 -45
- package/dist/lifecycle-B-5gEZ7O.js +0 -570
- package/dist/lifecycle-Bzh5Jo09.js +0 -2
- package/dist/lifecycle-DvbcJYMl.js +0 -355
- package/dist/lifecycle.runtime-Bzh5Jo09.js +0 -2
- package/dist/list-B4xSHRdU.js +0 -2
- package/dist/list-BnhZHpxx.js +0 -207
- package/dist/list.list-command-DAz-Ws_6.js +0 -429
- package/dist/list.model-row-DtdX9KDu.js +0 -39
- package/dist/list.probe-CY6lxq51.js +0 -2
- package/dist/list.probe-DPuE1GOH.js +0 -451
- package/dist/list.provider-catalog-BHc9WXI6.js +0 -211
- package/dist/list.provider-catalog-CFbrroys.js +0 -2
- package/dist/list.registry-load-C1_sr3gb.js +0 -152
- package/dist/list.row-sources-BMtHc9oi.js +0 -474
- package/dist/list.source-plan-Dth72qPP.js +0 -81
- package/dist/list.status-command-BXCnEq8Q.js +0 -815
- package/dist/live-model-switch-Dxav22vq.js +0 -119
- package/dist/llm-slug-generator-6o8RXL11.js +0 -78
- package/dist/load-config-EF3n0Dyo.js +0 -27
- package/dist/load-context-CI_ogQt_.js +0 -82
- package/dist/loader-DtwEzpp-.js +0 -7008
- package/dist/local-dispatch.runtime-21liE3rA.js +0 -10
- package/dist/main-session-restart-recovery-D1g62iJ5.js +0 -2
- package/dist/main-session-restart-recovery-v2I9CEXi.js +0 -389
- package/dist/managed-image-attachments-BEl5qfCT.js +0 -616
- package/dist/managed-image-attachments-D5KqX2Qy.js +0 -2
- package/dist/manager-DZc3xiNq.js +0 -2314
- package/dist/manager-Vf3vLTGe.js +0 -3737
- package/dist/mcp-http-BaJoPKF9.js +0 -583
- package/dist/mcp-http-CpEaJIGJ.js +0 -2
- package/dist/media-runtime-DtP_Ff8m.js +0 -391
- package/dist/media-services-CXYbyIIp.js +0 -416
- package/dist/media-understanding-DvTIsIyr.js +0 -87
- package/dist/media-understanding-provider-DBBAvuwG.js +0 -13
- package/dist/media-understanding-provider-DOf_uZrx.js +0 -70
- package/dist/media-understanding-provider-DdRfNh9h.js +0 -69
- package/dist/media-understanding-provider-mqpQDt8V.js +0 -29
- package/dist/memory-BNk25Hi6.js +0 -437
- package/dist/memory-core-host-engine-embeddings-XsK5xS70.js +0 -667
- package/dist/memory-core-host-engine-foundation-BYkoOLXl.js +0 -15
- package/dist/memory-core-host-engine-qmd-0JuUCKCK.js +0 -2
- package/dist/memory-core-host-engine-storage-MCFGjDwW.js +0 -2
- package/dist/memory-core-host-runtime-cli-fVGH65E8.js +0 -10
- package/dist/memory-core-host-runtime-core-JtXIAdlM.js +0 -12
- package/dist/memory-core-host-runtime-files-BGw_ypoN.js +0 -4
- package/dist/memory-embedding-provider-runtime-3UBzs4sx.js +0 -36
- package/dist/memory-host-core-Y_O5V-mu.js +0 -78
- package/dist/memory-host-search.runtime-B4TzyvmR.js +0 -2
- package/dist/memory-runtime-9kEPAeKV.js +0 -2
- package/dist/memory-runtime-BU4t85uu.js +0 -57
- package/dist/memory-search-CVX--mSz.js +0 -235
- package/dist/message-BVXoNpWP.js +0 -284
- package/dist/message-HaiKqj0A.js +0 -2
- package/dist/message-action-runner-Chwzn02r.js +0 -2
- package/dist/message-action-runner-tEEliptt.js +0 -1922
- package/dist/message-handler-CHDS_NF-.js +0 -1806
- package/dist/metadata-registry-loader-Croa1pgR.js +0 -22
- package/dist/metadata-registry-loader-w0p86vis.js +0 -2
- package/dist/migrate-CPCZJ4H5.js +0 -2
- package/dist/migrate-CUj6m6Cx.js +0 -458
- package/dist/migration-provider-runtime-4r4WGtf2.js +0 -2
- package/dist/migration-provider-runtime-TxrH_mM7.js +0 -68
- package/dist/minimax-web-search-provider.runtime-Dr2GJiWj.js +0 -148
- package/dist/model-BQSouNOa.js +0 -2
- package/dist/model-CAk0bcuO.js +0 -1302
- package/dist/model-auth-BF7w9Fiv.js +0 -705
- package/dist/model-auth-label-r729wcPk.js +0 -67
- package/dist/model-auth-us8b_D5d.js +0 -6
- package/dist/model-catalog-BGykBGxx.js +0 -434
- package/dist/model-catalog-BVXrqFbI.js +0 -3
- package/dist/model-catalog-visibility-Bsup46vy.js +0 -76
- package/dist/model-config.helpers-wzD1EEfE.js +0 -95
- package/dist/model-context-tokens-DrIU9eJc.js +0 -572
- package/dist/model-fallback-GySPjr3J.js +0 -1288
- package/dist/model-fallback-auth.runtime-Dg_Jmguu.js +0 -5
- package/dist/model-picker-BI6jXOjt.js +0 -3
- package/dist/model-picker-DYyJHhfH.js +0 -1135
- package/dist/model-picker-visibility-D_IMZfxd.js +0 -22
- package/dist/model-picker.runtime-B70kQMyc.js +0 -48
- package/dist/model-pricing-cache-CSpUDzSt.js +0 -856
- package/dist/model-pricing-cache-dkPwTUVJ.js +0 -3
- package/dist/model-pricing-cache-state-C6shoEWy.js +0 -83
- package/dist/model-provider-auth-BfZHbTaj.js +0 -2
- package/dist/model-provider-auth-CPCBWvqL.js +0 -375
- package/dist/model-runtime-aliases-DUzusc9_.js +0 -133
- package/dist/model-selection-8UzO5mgF.js +0 -254
- package/dist/model-selection-Cb7azWw1.js +0 -7
- package/dist/model-selection-jDYEo0WI.js +0 -352
- package/dist/model-selection.runtime-D_yHZLbs.js +0 -7
- package/dist/models-BxA2IU3W.js +0 -57
- package/dist/models-auth-status-yG7yyRcv.js +0 -280
- package/dist/models-cli-DUt4uiMH.js +0 -257
- package/dist/models-config-B5bkuh6A.js +0 -1189
- package/dist/models-config-Xj8vG_x2.js +0 -2
- package/dist/models-config.providers.secrets-DNBB440Z.js +0 -2
- package/dist/models-config.providers.secrets-DNIQlBSE.js +0 -382
- package/dist/models-http-DMILRsry.js +0 -88
- package/dist/monitor-2_c2Ttjf.js +0 -1024
- package/dist/monitor-7tD_FE_5.js +0 -60
- package/dist/monitor.account-D0F9tnWD.js +0 -5382
- package/dist/music-generation-provider-3ykPaUwR.js +0 -308
- package/dist/native-hook-relay-BJKHIhWd.js +0 -1378
- package/dist/native-hook-relay-V8Kappw1.js +0 -19
- package/dist/node-cli-BLVyQ93e.js +0 -2806
- package/dist/node-command-policy-B0ezpI_O.js +0 -295
- package/dist/nodes-DnWH_15m.js +0 -3
- package/dist/nodes-RkB4ZmP6.js +0 -1483
- package/dist/nodes-cli-upwPs91b.js +0 -960
- package/dist/nodes-pending--sojaxpI.js +0 -211
- package/dist/nodes-utils-Yks_uDZK.js +0 -85
- package/dist/oauth-CQN2efEy.js +0 -207
- package/dist/oauth-DApi3OI9.js +0 -746
- package/dist/oauth-DkUWBub2.js +0 -852
- package/dist/onboard-CiQSBSrz.js +0 -768
- package/dist/onboard-channels-DaWYXiLv.js +0 -1534
- package/dist/onboard-channels-DnwM2_IL.js +0 -2
- package/dist/onboard-custom-BQPckD0V.js +0 -3
- package/dist/onboard-custom-config-BmbThk2-.js +0 -422
- package/dist/onboard-custom-xInFj1Rs.js +0 -280
- package/dist/onboard-search-DSfmthe5.js +0 -412
- package/dist/openai-compat-errors-VR4SN1MV.js +0 -136
- package/dist/openai-http-DV95ynPi.js +0 -836
- package/dist/openai-transport-stream-BwpzqR-b.js +0 -3427
- package/dist/openresponses-http-DPchx8IC.js +0 -1175
- package/dist/operations-f9R8j-r9.js +0 -805
- package/dist/order-BQx8mNGZ.js +0 -218
- package/dist/outbound-attachment-C4yojK6p.js +0 -19
- package/dist/param-readers-BIXyd5la.js +0 -2
- package/dist/payloads-DrY1bKyF.js +0 -256
- package/dist/persistent-bindings.lifecycle-BiPN7luW.js +0 -85
- package/dist/persistent-bindings.lifecycle-X3wfan2Z.js +0 -2
- package/dist/plugin-enabled-CqsBObeO.js +0 -232
- package/dist/plugin-install-CfB1_kpX.js +0 -118
- package/dist/plugin-install-DzMraXHH.js +0 -2
- package/dist/plugin-install-config-policy-BD_elPNg.js +0 -169
- package/dist/plugin-registration-Dy58ncPf.js +0 -97
- package/dist/plugin-registry-BlmODeop.js +0 -3
- package/dist/plugin-registry-k5OK18l5.js +0 -2
- package/dist/plugin-runtime-B3t53CKr.js +0 -102
- package/dist/plugin-sdk/bundled-channel-config-schema-UtIBjviA.d.ts +0 -3169
- package/dist/plugin-service-sKF4gWFm.js +0 -1249
- package/dist/plugins-authoring-command-I72k2cuv.js +0 -304
- package/dist/plugins-cli-DMQRbPsU.js +0 -63
- package/dist/plugins-cli.runtime-CvDuKFJj.js +0 -339
- package/dist/plugins-command-helpers-C5WMM4bk.js +0 -164
- package/dist/plugins-command-helpers-DDt_pMQ4.js +0 -2
- package/dist/plugins-inspect-command-ka7Hpld3.js +0 -248
- package/dist/plugins-install-command-BHSgof-_.js +0 -2
- package/dist/plugins-install-command-t5caX9q_.js +0 -993
- package/dist/plugins-install-persist-Bah1m3x7.js +0 -252
- package/dist/plugins-list-command-BXLWwXHM.js +0 -184
- package/dist/plugins-uninstall-command-C_3m6CrW.js +0 -118
- package/dist/prepare.runtime-COZaHg5E.js +0 -798
- package/dist/presentation-card-CciJv4ru.js +0 -164
- package/dist/preview-warnings-L4VuEOyB.js +0 -618
- package/dist/profiles-CM2xoUYX.js +0 -194
- package/dist/program-B-4C7bC-.js +0 -131
- package/dist/provider-adapters-Eh8mS2Fd.js +0 -104
- package/dist/provider-api-key-auth-DTh2cbmS.js +0 -117
- package/dist/provider-api-key-auth.runtime-DrTYYfxK.js +0 -14
- package/dist/provider-auth-Bnaijzmv.js +0 -281
- package/dist/provider-auth-api-key-CNP8o5E7.js +0 -5
- package/dist/provider-auth-choice-Devw4sQf.js +0 -311
- package/dist/provider-auth-choice-helpers-DmVudRp6.js +0 -210
- package/dist/provider-auth-choice.runtime-C337IQ3W.js +0 -2
- package/dist/provider-auth-choice.runtime-DqGYalFo.js +0 -18
- package/dist/provider-auth-guidance-Bk4WV6Lg.js +0 -2
- package/dist/provider-auth-guidance-C7NCKuKn.js +0 -34
- package/dist/provider-auth-helpers-r7mC8I5l.js +0 -177
- package/dist/provider-auth-login.runtime-BFJgAAS6.js +0 -156
- package/dist/provider-auth-runtime-BiLPGiMW.js +0 -186
- package/dist/provider-discovery-uxRmAIf_.js +0 -95
- package/dist/provider-discovery.runtime-mwbSivDS.js +0 -290
- package/dist/provider-dispatcher-CtKWj3r-.js +0 -22
- package/dist/provider-entry-DjACqdrB.js +0 -134
- package/dist/provider-hook-runtime-CpJsM7Dk.js +0 -255
- package/dist/provider-openai-codex-oauth-DWGmVUYg.js +0 -2
- package/dist/provider-openai-codex-oauth-ctxd00JW.js +0 -44
- package/dist/provider-registration-l8EX4voM.js +0 -235
- package/dist/provider-registry-BgIQXJle.js +0 -31
- package/dist/provider-registry-CVuzobHN.js +0 -36
- package/dist/provider-registry-DmdDbSQs.js +0 -61
- package/dist/provider-registry-LqtLqheu.js +0 -61
- package/dist/provider-registry-pTYVjODc.js +0 -61
- package/dist/provider-runtime-BQZSuC9l.js +0 -3
- package/dist/provider-runtime-D9Q-7VuO.js +0 -386
- package/dist/provider-runtime.runtime-C6YZ8YI0.js +0 -26
- package/dist/provider-self-hosted-setup-BIAD2ISe.js +0 -373
- package/dist/provider-stream-DScdaoRo.js +0 -313
- package/dist/provider-stream-PE0IxmpZ.js +0 -1084
- package/dist/provider-stream-family-S2fhlydZ.js +0 -2
- package/dist/provider-usage-DVKHMF6l.js +0 -4
- package/dist/provider-usage-EEjx1av0.js +0 -71
- package/dist/provider-usage.load-Cu11xbrw.js +0 -357
- package/dist/provider-web-search-Dbk7MO-1.js +0 -58
- package/dist/provider-wizard-DS2Xb2eu.js +0 -125
- package/dist/providers.runtime-BPhGcupv.js +0 -240
- package/dist/providers.runtime-DoylK-ht.js +0 -2
- package/dist/proxy-BxacG0p3.js +0 -662
- package/dist/public-artifacts-Dq3y7bBv.js +0 -7
- package/dist/pw-ai-DlSSqerW.js +0 -3064
- package/dist/qmd-manager-B_SG-ejE.js +0 -2040
- package/dist/qr-cli-CT-sE_j9.js +0 -2
- package/dist/qr-cli-DPlDCXJQ.js +0 -371
- package/dist/qr-image--VmmvuDB.js +0 -2
- package/dist/queue-Be2Y7PcO.js +0 -923
- package/dist/read-file-hhemkDfq.js +0 -183
- package/dist/register-service-commands-CeVpCQU3.js +0 -77
- package/dist/register.agent-JLsb-giw.js +0 -152
- package/dist/register.configure-CP0Q-ost.js +0 -16
- package/dist/register.crestodian-CBXyXEix.js +0 -24
- package/dist/register.maintenance-DGIPQ2Vo.js +0 -85
- package/dist/register.message-BBQwz0Ld.js +0 -404
- package/dist/register.migrate-CkgNlvLD.js +0 -106
- package/dist/register.onboard-CS9gRK0c.js +0 -115
- package/dist/register.setup-DhqDOer9.js +0 -40
- package/dist/register.status-health-sessions-CiwQN_lw.js +0 -293
- package/dist/register.subclis-86Md7P0P.js +0 -3
- package/dist/register.subclis-CTVI8zvZ.js +0 -31
- package/dist/register.subclis-core-Cy4AnRCu.js +0 -273
- package/dist/rem-harness-vSsq3HiK.js +0 -649
- package/dist/repair-sequencing-SHADYdcA.js +0 -652
- package/dist/reply-media-paths.runtime-Bf5nxPuP.js +0 -154
- package/dist/reply-media-paths.runtime-sLsMpKGO.js +0 -2
- package/dist/reply-payloads-CJ3w8rSA.js +0 -79
- package/dist/reply-payloads-dedupe-DDFXWCVR.js +0 -176
- package/dist/reply-payloads-dedupe.runtime-DbXPzKmG.js +0 -2
- package/dist/reply-timing-tracker-DjVIBsVb.js +0 -205
- package/dist/reply-turn-admission-nEW5QbY5.js +0 -2056
- package/dist/reply.runtime-B4Dgs3Hg.js +0 -2
- package/dist/reset-preserved-selection-CVD1yeVC.js +0 -45
- package/dist/resolve-DidlinMh.js +0 -106
- package/dist/restart-DzTrO95c.js +0 -121
- package/dist/result-fallback-classifier-BqsFUDvP.js +0 -98
- package/dist/root-help-QGs0dCCN.js +0 -43
- package/dist/route-B3R-uzFG.js +0 -475
- package/dist/route-reply-CdfhgIoY.js +0 -174
- package/dist/route-reply.runtime-DwuU2WjH.js +0 -2
- package/dist/routes-ChXmJocl.js +0 -3701
- package/dist/routes-D-ZF4AdA.js +0 -2
- package/dist/run-ClmVDTET.js +0 -1162
- package/dist/run-auth-profile.runtime-CTxrwz0y.js +0 -2
- package/dist/run-command-CqZJQ0Im.js +0 -2
- package/dist/run-command-GClW75NL.js +0 -23
- package/dist/run-context-BOdGeRg5.js +0 -66
- package/dist/run-context.runtime-CwuKVYPj.js +0 -2
- package/dist/run-delivery.runtime-BQ39dm34.js +0 -762
- package/dist/run-embedded.runtime-e1K4Bt1_.js +0 -4
- package/dist/run-execution-cli.runtime-Cjrgt4cV.js +0 -4
- package/dist/run-executor.runtime-C2JE6JGb.js +0 -330
- package/dist/run-model-catalog.runtime-DkrLKopr.js +0 -2
- package/dist/run-session-state-C5YdQs7o.js +0 -159
- package/dist/run-subagent-registry.runtime-Dl_lXi6y.js +0 -2
- package/dist/runner-CNGHdaIg.js +0 -704
- package/dist/runner.entries-dckPkeld.js +0 -1485
- package/dist/runtime-9LxcVCyw.js +0 -615
- package/dist/runtime-BCOtBS5G.js +0 -3
- package/dist/runtime-C-pgjoJr.js +0 -210
- package/dist/runtime-CyF0vJXG.js +0 -10
- package/dist/runtime-D-7lMvGV.js +0 -2
- package/dist/runtime-D17OmF9G.js +0 -224
- package/dist/runtime-D6SweufG.js +0 -245
- package/dist/runtime-DVAM7AFd.js +0 -2
- package/dist/runtime-DX2ClrP-.js +0 -436
- package/dist/runtime-FOOWuiYX.js +0 -300
- package/dist/runtime-api-B0F0JsV1.js +0 -12
- package/dist/runtime-cREKSBYC.js +0 -2
- package/dist/runtime-channel-BmD4hoCR.js +0 -148
- package/dist/runtime-channel-BsebQSPL.js +0 -2
- package/dist/runtime-config-collectors-BjYeQ0Tk.js +0 -525
- package/dist/runtime-embedded-agent.runtime-A4r23Bn8.js +0 -2
- package/dist/runtime-internal-DkV-EMTK.js +0 -2
- package/dist/runtime-llm.runtime-BQKNnuRc.js +0 -307
- package/dist/runtime-model-auth.runtime-BbGqHVM5.js +0 -2
- package/dist/runtime-model-auth.runtime-rtJH4LBB.js +0 -46
- package/dist/runtime-options-B0EGb1Wq.js +0 -275
- package/dist/runtime-plugin-Bdqm44bH.js +0 -92
- package/dist/runtime-plugins-rZk1eAK_.js +0 -32
- package/dist/runtime-plugins.runtime-DApiYzny.js +0 -2
- package/dist/runtime-prepare.runtime-DWxvnbyY.js +0 -81
- package/dist/runtime-provider-B0slPjtk.js +0 -2
- package/dist/runtime-provider-DLgupOKt.js +0 -24
- package/dist/runtime-registry-loader-Cf2HuMjd.js +0 -2
- package/dist/runtime-registry-loader-DLzDrA7e.js +0 -117
- package/dist/runtime-shared-Bg-OiD4u.js +0 -365
- package/dist/runtime-web-channel-plugin-DrMjRaqi.js +0 -204
- package/dist/scan-DA7Oqxuv.js +0 -573
- package/dist/sdk-security-runtime-WjOaCbga.js +0 -86
- package/dist/sdk-setup-tools-DaYT6_jD.js +0 -8
- package/dist/secrets-cli-fJQ0geWO.js +0 -150
- package/dist/security-cli-CJMwGp8U.js +0 -520
- package/dist/selection-BNwLQzqJ.js +0 -3
- package/dist/selection-Cj-l80pO.js +0 -18365
- package/dist/send-DstYcrDW.js +0 -711
- package/dist/send-aTxtLkJm.js +0 -178
- package/dist/send-media-OG5Gd31l.js +0 -2072
- package/dist/send-qwDMMnM6.js +0 -1222
- package/dist/send-result-BWRKr16H.js +0 -141
- package/dist/server-CMtA1S09.js +0 -24
- package/dist/server-DIRaYiiH.js +0 -72
- package/dist/server-aux-handlers-BRO-9-Jf.js +0 -1347
- package/dist/server-chat-0J_ke0ph.js +0 -827
- package/dist/server-context-DWOSX34k.js +0 -2
- package/dist/server-context-R7MFLFdI.js +0 -955
- package/dist/server-cron-2FuFg2j8.js +0 -2
- package/dist/server-cron-ChPAVQtg.js +0 -3173
- package/dist/server-maintenance-ZvS7Id6T.js +0 -152
- package/dist/server-methods-DSbhPK3k.js +0 -497
- package/dist/server-middleware-CYxFU-e5.js +0 -122
- package/dist/server-model-catalog-B22UhmRr.js +0 -73
- package/dist/server-model-catalog-BJIHPP3P.js +0 -2
- package/dist/server-node-events-tNWJnXQM.js +0 -597
- package/dist/server-plugin-bootstrap-Ccu97zi8.js +0 -71
- package/dist/server-plugins-ByXwKPnj.js +0 -435
- package/dist/server-reload-handlers-ConGiT9Q.js +0 -719
- package/dist/server-restart-sentinel-mPHo61LL.js +0 -700
- package/dist/server-runtime-services-BR1icaUW.js +0 -3
- package/dist/server-runtime-services-Bx8n34dj.js +0 -147
- package/dist/server-runtime-subscriptions-CZklTkRG.js +0 -67
- package/dist/server-session-events-DxdiZYM2.js +0 -244
- package/dist/server-session-key-CYvLslFO.js +0 -75
- package/dist/server-session-key-D9GQut81.js +0 -2
- package/dist/server-startup-config-Byb0vR8j.js +0 -305
- package/dist/server-startup-early-a65fHTQS.js +0 -87
- package/dist/server-startup-memory-ClwzC9jX.js +0 -72
- package/dist/server-startup-plugins-CaBj0Nt2.js +0 -127
- package/dist/server-startup-post-attach-B7TcxkmO.js +0 -793
- package/dist/server-ws-runtime-Cxk_CqMr.js +0 -374
- package/dist/server.impl-CQ6dnx43.js +0 -2622
- package/dist/session-cost-usage-GsYDNvka.js +0 -1600
- package/dist/session-kill-http-CKkxZhhd.js +0 -121
- package/dist/session-log-runtime-Bwc2Oijk.js +0 -1258
- package/dist/session-override-CWbKiXiC.js +0 -134
- package/dist/session-reset-model.runtime-CDFMjwWA.js +0 -144
- package/dist/session-reset-service-SE0aK4cw.js +0 -651
- package/dist/session-status.runtime-Df89I7Fk.js +0 -2
- package/dist/session-store-RkvjJPMQ.js +0 -273
- package/dist/session-store.runtime-C7P5asx7.js +0 -4
- package/dist/session-subagent-reactivation.runtime-BhGUZG1Z.js +0 -2
- package/dist/session-tab-registry-9rSuQ0Yz.js +0 -551
- package/dist/session-utils-De8TIM0h.js +0 -1508
- package/dist/sessions-6b9a00Tl.js +0 -1917
- package/dist/sessions-CEPHczjC.js +0 -316
- package/dist/sessions-CEojHc8b.js +0 -12736
- package/dist/sessions-cleanup-BkG7_sq9.js +0 -165
- package/dist/sessions-history-http-BjJEfjJa.js +0 -432
- package/dist/sessions-patch-PwG5sknc.js +0 -401
- package/dist/sessions-resolve-CSIrd_fi.js +0 -180
- package/dist/sessions-table-8CbU7jXa.js +0 -161
- package/dist/sessions.runtime-BYHMD0M7.js +0 -2
- package/dist/set-BJDpe28W.js +0 -31
- package/dist/set-image-CwTFx7PX.js +0 -17
- package/dist/setup-B6LmeIms.js +0 -614
- package/dist/setup-B_zxHfYu.js +0 -2
- package/dist/setup-onboard-configure-help-fast-path-Bck3SKEH.js +0 -64
- package/dist/setup.finalize-CmLYX-Rf.js +0 -586
- package/dist/setup.gateway-config-H_89Msro.js +0 -281
- package/dist/setup.migration-import-DVzyUjX6.js +0 -2
- package/dist/setup.migration-import-DmJpqoqf.js +0 -200
- package/dist/setup.post-install-migration-WPFWKXXg.js +0 -128
- package/dist/shared-CUhu8NTs.js +0 -5
- package/dist/shared-D-BN2JhY.js +0 -71
- package/dist/shared-ES8nDIcn.js +0 -212
- package/dist/simple-completion-runtime-BGZkWvKr.js +0 -206
- package/dist/simple-completion-runtime-CM_IISYW.js +0 -2
- package/dist/simple-completion-transport-Bo0u9dhp.js +0 -83
- package/dist/snapshot-urls-C1KjRQD5.js +0 -317
- package/dist/speech-core-Bas7e4h0.js +0 -119
- package/dist/speech-provider-BonJQv5S.js +0 -227
- package/dist/speech-provider-CwdKQmDv.js +0 -171
- package/dist/speech-provider-DcQRnYhZ.js +0 -233
- package/dist/stale-oauth-profile-shadows-C3aeAWfv.js +0 -186
- package/dist/stale-oauth-profile-shadows-m5rb8dPc.js +0 -2
- package/dist/standalone-runtime-registry-loader-B9n2LBKC.js +0 -59
- package/dist/startup-context-DY7C4riM.js +0 -314
- package/dist/status-6EPKat7p.js +0 -73
- package/dist/status-C6Fa7Dsf.js +0 -2
- package/dist/status-CNnxDQlM.js +0 -4
- package/dist/status-D2Scvbc0.js +0 -3
- package/dist/status-Ducanro3.js +0 -2
- package/dist/status-_XX_6QVA.js +0 -466
- package/dist/status-all-BP1u6vou.js +0 -573
- package/dist/status-json-DPlOJ_ue.js +0 -15
- package/dist/status-json-command-BT7EwVKj.js +0 -84
- package/dist/status-message-Dzr9-MX-.js +0 -495
- package/dist/status-message.runtime-DFezIt1d.js +0 -6
- package/dist/status-prBlcUV5.js +0 -249
- package/dist/status-queue.runtime-C1bmg2rl.js +0 -2
- package/dist/status-runtime-shared-RjKIPEQ0.js +0 -289
- package/dist/status-subagents.runtime-tsCCe4Ny.js +0 -32
- package/dist/status-text-Bkeyg8Bf.js +0 -301
- package/dist/status.command-D06_4ATq.js +0 -425
- package/dist/status.command-dDEZM84a.js +0 -2
- package/dist/status.command.text-runtime-WH9tP7yg.js +0 -15
- package/dist/status.runtime-B76GaBIR.js +0 -2
- package/dist/status.scan-Bc6clx0F.js +0 -72
- package/dist/status.scan-overview-v_-AaFhC.js +0 -460
- package/dist/status.scan.deps.runtime-BkH1HAb4.js +0 -19
- package/dist/status.scan.fast-json-CrlfKKI3.js +0 -2
- package/dist/status.scan.fast-json-D8v6zfP8.js +0 -163
- package/dist/status.summary-DBhvgOPr.js +0 -276
- package/dist/status.summary-hQV0PKFO.js +0 -2
- package/dist/store-BClomp_4.js +0 -3
- package/dist/store-BHqDPtNw.js +0 -2302
- package/dist/stored-model-override-vm4CtQWX.js +0 -79
- package/dist/subagent-announce-D244Q4w2.js +0 -353
- package/dist/subagent-announce-delivery-qKZfF7Bs.js +0 -1369
- package/dist/subagent-control-c87mVGUE.js +0 -492
- package/dist/subagent-control.runtime-DfQtIsDb.js +0 -3
- package/dist/subagent-hooks-B_UW5Len.js +0 -2
- package/dist/subagent-hooks-CYvFWt_r.js +0 -230
- package/dist/subagent-hooks-api-DZgaJf19.js +0 -23
- package/dist/subagent-registry-BlcoCggo.js +0 -2627
- package/dist/subagent-registry-CuObhNeO.js +0 -3
- package/dist/subagent-session-cleanup-hFF8Z34s.js +0 -390
- package/dist/system-CN_Knfqq.js +0 -111
- package/dist/system-prompt-config-BmZlhYK9.js +0 -918
- package/dist/talk-DrjGczYs.js +0 -2454
- package/dist/target-id-BNpbyWkq.js +0 -107
- package/dist/targets-CQcGo6u4.js +0 -267
- package/dist/targets.runtime-DwcxNI-x.js +0 -2
- package/dist/task-executor-CZg-qt4u.js +0 -349
- package/dist/task-owner-access-Duem5jjb.js +0 -74
- package/dist/task-registry-Cw8pc3Ry.js +0 -2362
- package/dist/task-registry-delivery-runtime-HaiKqj0A.js +0 -2
- package/dist/task-registry.maintenance-BLv3wpK9.js +0 -764
- package/dist/task-registry.maintenance-CvlIcxE-.js +0 -2
- package/dist/task-status-access-C5nDJSI4.js +0 -18
- package/dist/tasks-D3CfEAlq.js +0 -548
- package/dist/tasks-WKnE5fvr.js +0 -153
- package/dist/tasks-audit-system-okJjcOjU.js +0 -210
- package/dist/tasks-json-C-iUgWNu.js +0 -73
- package/dist/tavily-web-search-provider.runtime-jpagljrA.js +0 -112
- package/dist/text-report-BTsF3Pv3.js +0 -695
- package/dist/text-transforms.runtime-CgH_pbcQ.js +0 -113
- package/dist/thread-bindings-BWxpUE9U.js +0 -228
- package/dist/tool-DhJbbm91.js +0 -143
- package/dist/tool-dispatch-CpFUfblu.js +0 -155
- package/dist/tool-images-C-tFlXjE.js +0 -247
- package/dist/tool-plugin-3NejWxZW.js +0 -93
- package/dist/tool-resolution-oW8Cbamd.js +0 -153
- package/dist/tool-result-truncation-CWFGf7Eu.js +0 -498
- package/dist/tool-schema-CMtc7PdZ.js +0 -40
- package/dist/tool-schema-projection-DJRPEEvY.js +0 -215
- package/dist/tool-split-E4RdK5jS.js +0 -323
- package/dist/tools-BAl3JiNw.js +0 -901
- package/dist/tools-DC8tCPxR.js +0 -579
- package/dist/tools-catalog-Dzv9zaBD.js +0 -156
- package/dist/tools-effective-CGvzyIL2.js +0 -442
- package/dist/tools-effective-inventory-GI5N5Q9v.js +0 -379
- package/dist/tools-invoke-CU2U0hNH.js +0 -51
- package/dist/tools-invoke-http-8s3FiUy4.js +0 -68
- package/dist/tools-invoke-shared-DIETrEY7.js +0 -200
- package/dist/tools.runtime-Bnm8CI7w.js +0 -5
- package/dist/transcript-rewrite-Buv2ITw4.js +0 -688
- package/dist/transcripts-tool-BCFlLCFd.js +0 -2
- package/dist/transcripts-tool-CWgNd0Uw.js +0 -656
- package/dist/tts-Aguo4zC5.js +0 -3
- package/dist/tts-Bf77cURn.js +0 -2
- package/dist/tts-DnADOKOP.js +0 -194
- package/dist/tts-runtime-MBSH-nOM.js +0 -1337
- package/dist/tts.runtime-B-NR9osE.js +0 -2
- package/dist/tts.runtime-Bo-QxKgx.js +0 -3
- package/dist/tui-B0CdNmCz.js +0 -4860
- package/dist/tui-ByRcXM3Z.js +0 -2
- package/dist/tui-backend-C52BUoZI.js +0 -256
- package/dist/tui-cli-BQHpZ4n0.js +0 -40
- package/dist/typing-policy-XspVOezC.js +0 -199
- package/dist/usage-BOYwzimH.js +0 -1113
- package/dist/usage-BSmLrVWB.js +0 -623
- package/dist/usage-format-CfzICmvv.js +0 -2
- package/dist/usage-format-DPJKCPic.js +0 -394
- package/dist/video-generation-provider-CdCTztQ7.js +0 -77
- package/dist/video-generation-provider-MUUshUzz.js +0 -325
- package/dist/video-generation-provider-XmzzTa6e.js +0 -297
- package/dist/video-generation-provider-weiQUJE5.js +0 -64
- package/dist/web-fetch-providers.runtime-tD9zqAS2.js +0 -41
- package/dist/web-guarded-fetch-CyhQZ1yD.js +0 -2
- package/dist/web-guarded-fetch-DIXHI-yJ.js +0 -58
- package/dist/web-media-BPnTMYE5.js +0 -4
- package/dist/web-media-DV_tCQiQ.js +0 -2
- package/dist/web-media-DYydVGCK.js +0 -651
- package/dist/web-provider-runtime-shared-h3M6Bqyg.js +0 -142
- package/dist/web-search-provider-common-CEYWuDcp.js +0 -252
- package/dist/web-search-providers.runtime-YrayP296.js +0 -41
- package/dist/zod-schema.core-BGLctDlK.d.ts +0 -166
- /package/dist/{acp-runtime-backend-CHZtaM6t.js → acp-runtime-backend-B83JR5Zf.js} +0 -0
- /package/dist/{agent-turn-attachments-BYCRK86s.js → agent-turn-attachments-D5uJijuK.js} +0 -0
- /package/dist/{auth-install-policy-t46tJ8jV.js → auth-install-policy-BIpdwrZ9.js} +0 -0
- /package/dist/{cli-backends-BHXnrVN_.js → cli-backends-79CCRQ2a.js} +0 -0
- /package/dist/{command-secret-targets-DZ0J2Wm3.js → command-secret-targets-BOJlcBil.js} +0 -0
- /package/dist/{commands-DWp49Exc.js → commands-Dw9hwmVt.js} +0 -0
- /package/dist/{commands-reset-hooks-MMq2dvff.js → commands-reset-hooks-epArfNOY.js} +0 -0
- /package/dist/{delegate-Dkj_5OvH.js → delegate-Bw8NQXVr.js} +0 -0
- /package/dist/{jobs-BGELIHcx.js → jobs-BIOTaq7l.js} +0 -0
- /package/dist/{kimi-web-search-provider-4PlMYsPx.js → kimi-web-search-provider-Bzg_DiXO.js} +0 -0
- /package/dist/{memory-host-search-Ds9GiNpf.js → memory-host-search-Dph0Mq-v.js} +0 -0
- /package/dist/{minimax-web-search-provider-d5gTJUNg.js → minimax-web-search-provider-CETxDkkI.js} +0 -0
- /package/dist/{model-selection-cli-CO6BHPiL.js → model-selection-cli-DizUvxeY.js} +0 -0
- /package/dist/{provider-auth-choice-preference-f7Us6TQL.js → provider-auth-choice-preference-uJn1811S.js} +0 -0
- /package/dist/{runtime-wfO9bV5y.js → runtime-BEVbpIgZ.js} +0 -0
- /package/dist/{runtime-web-tools-B6vr1LZs.js → runtime-web-tools-Bf0aEe-F.js} +0 -0
- /package/dist/{runtime-web-tools-fallback.runtime-Crs7KfH5.js → runtime-web-tools-fallback.runtime-DU6rTj6l.js} +0 -0
- /package/dist/{session-subagent-reactivation-H5Rdwkyy.js → session-subagent-reactivation-Bb5SCi9J.js} +0 -0
- /package/dist/{tavily-web-search-provider-DbdIzpMv.js → tavily-web-search-provider-CIEhV60D.js} +0 -0
|
@@ -1,2057 +0,0 @@
|
|
|
1
|
-
import { a as normalizeLowercaseStringOrEmpty, c as normalizeOptionalString, s as normalizeOptionalLowercaseString } from "./string-coerce-DKw2K5wM.js";
|
|
2
|
-
import { i as formatErrorMessage } from "./errors-5ePGD43N.js";
|
|
3
|
-
import { n as isAbortError } from "./unhandled-rejections-C9Js31PG.js";
|
|
4
|
-
import { t as createLazyImportLoader } from "./lazy-promise-Djskx0qC.js";
|
|
5
|
-
import { c as isDiagnosticsEnabled } from "./diagnostic-events-Bwqd0ZOT.js";
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-46gngkCY.js";
|
|
7
|
-
import { _ as resolveSessionAgentId } from "./agent-scope-DYvAPpmY.js";
|
|
8
|
-
import { n as isAcpSessionKey } from "./session-key-utils-CdfsDYvz.js";
|
|
9
|
-
import { o as resolveAgentWorkspaceDir, r as resolveAgentConfig } from "./agent-scope-config-BFfPgg3b.js";
|
|
10
|
-
import { c as measureDiagnosticsTimelineSpan, l as measureDiagnosticsTimelineSpanSync } from "./plugin-metadata-snapshot-DeNMzywg.js";
|
|
11
|
-
import { r as logVerbose } from "./globals-644GLqmc.js";
|
|
12
|
-
import { t as applyMergePatch } from "./merge-patch-DUwYfE67.js";
|
|
13
|
-
import { g as normalizeVerboseLevel } from "./thinking-aqhrOuj7.js";
|
|
14
|
-
import "./message-channel-core-rOsWksPZ.js";
|
|
15
|
-
import { i as normalizeMessageChannel } from "./message-channel-normalize-CaOaCinb.js";
|
|
16
|
-
import "./message-channel-DcN_7tYD.js";
|
|
17
|
-
import { i as getReplyPayloadMetadata, l as markReplyPayloadAsTtsSupplement, r as copyReplyPayloadMetadata, s as isReplyPayloadStatusNotice } from "./reply-payload-DM17pxMC.js";
|
|
18
|
-
import { n as getGlobalPluginRegistry, t as getGlobalHookRunner, u as fireAndForgetHook } from "./hook-runner-global-lWQvOg8l.js";
|
|
19
|
-
import { m as triggerInternalHook, n as createInternalHookEvent } from "./internal-hooks-BwDOyy7b.js";
|
|
20
|
-
import { u as resolveStorePath } from "./paths-C79m3Aob.js";
|
|
21
|
-
import { i as readSessionEntry, t as loadSessionStore, z as resolveSessionStoreEntry } from "./store-load-Bs35PLbM.js";
|
|
22
|
-
import { a as normalizeChannelId, t as getChannelPlugin } from "./registry-BoFbe6qB.js";
|
|
23
|
-
import { f as updateSessionStoreEntry } from "./store-BfSa-Tzr.js";
|
|
24
|
-
import { t as normalizeChatType } from "./chat-type-DeA3YwAD.js";
|
|
25
|
-
import { n as resolveGroupSessionKey } from "./group-Derc8o5Y.js";
|
|
26
|
-
import { t as appendAssistantMessageToSessionTranscript } from "./transcript-B07Cf07z.js";
|
|
27
|
-
import { i as buildModelAliasIndex, x as resolveModelRefFromString } from "./model-selection-shared-BOcnt3fQ.js";
|
|
28
|
-
import { s as resolveDefaultModelForAgent } from "./model-selection-8UzO5mgF.js";
|
|
29
|
-
import { a as isNativeCommandTurn, c as resolveCommandTurnTargetSessionKey, s as resolveCommandTurnContext } from "./command-turn-context-Cqhb6nXp.js";
|
|
30
|
-
import { i as resolveTextCommand, r as normalizeCommandBody } from "./commands-registry-normalize-e3Epq9C1.js";
|
|
31
|
-
import { i as resolveSourceReplyVisibilityPolicy, t as isExplicitSourceReplyCommand } from "./source-reply-delivery-mode-BY9vvW_9.js";
|
|
32
|
-
import { p as replyRunRegistry } from "./reply-run-registry-CE6ehUBj.js";
|
|
33
|
-
import { g as markDiagnosticSessionProgress, i as logMessageDispatchStarted, r as logMessageDispatchCompleted, s as logMessageReceived } from "./diagnostic-mK1DfrTJ.js";
|
|
34
|
-
import { h as resolveToolProfilePolicy, l as mergeAlsoAllowPolicy } from "./tool-policy-Dv92jaRW.js";
|
|
35
|
-
import { t as isToolAllowedByPolicies } from "./tool-policy-match-BK9FXN4N.js";
|
|
36
|
-
import { n as getSessionBindingService } from "./session-binding-service-BjjMIxQb.js";
|
|
37
|
-
import { c as toPluginInboundClaimEvent, i as toInternalMessageReceivedContext, l as toPluginMessageContext, n as deriveInboundMessageHookContext, s as toPluginInboundClaimContext, u as toPluginMessageReceivedEvent } from "./message-hook-mappers-Lw-1gD5K.js";
|
|
38
|
-
import { o as runReplyPayloadSendingHook, s as isOutboundDeliveryError } from "./deliver-DGyKH3Qi.js";
|
|
39
|
-
import { m as resolveSendableOutboundReplyParts, s as hasOutboundReplyContent } from "./reply-payload-swpu2tGD.js";
|
|
40
|
-
import { D as isParentOwnedBackgroundAcpSession } from "./fengming-tools-MvRSt0JA.js";
|
|
41
|
-
import { o as resolveSubagentCapabilityStore, t as isSubagentEnvelopeSession } from "./subagent-capabilities-CH6UwTM3.js";
|
|
42
|
-
import { i as resolveInheritedToolPolicyForSession, n as resolveEffectiveToolPolicy, o as resolveSubagentToolPolicyForSession, r as resolveGroupToolPolicy } from "./agent-tools.policy-BhqSsYtP.js";
|
|
43
|
-
import { i as selectAgentHarness } from "./selection-Cj-l80pO.js";
|
|
44
|
-
import { n as normalizeTtsAutoMode } from "./tts-auto-mode-jJO08bho.js";
|
|
45
|
-
import { i as shouldCleanTtsDirectiveText, r as shouldAttemptTtsPayload, t as resolveConfiguredTtsMode } from "./tts-config-DZTpGcdO.js";
|
|
46
|
-
import { t as createTtsDirectiveTextStreamCleaner } from "./directives-1xk_ZcMf.js";
|
|
47
|
-
import { a as buildPluginBindingUnavailableText, b as touchConversationBindingRecord, c as hasShownPluginBindingFallbackNotice, d as markPluginBindingFallbackNoticeShown, h as toPluginConversationBinding, n as buildPluginBindingDeclinedText, r as buildPluginBindingErrorText, u as isPluginOwnedSessionBindingRecord, y as resolveConversationBindingRecord } from "./conversation-binding-Bxc6eFMK.js";
|
|
48
|
-
import { t as resolveChannelModelOverride } from "./model-overrides-ChdyP2xK.js";
|
|
49
|
-
import { n as hasActiveApprovalNativeRouteRuntime } from "./approval-native-route-coordinator-B6NgzbVd.js";
|
|
50
|
-
import { t as createDiagnosticMessageLifecycle } from "./message-lifecycle-CbzNJkTb.js";
|
|
51
|
-
import { r as matchPluginCommand } from "./commands-DWp49Exc.js";
|
|
52
|
-
import { n as resolveSendPolicy } from "./send-policy-cLIJehRZ.js";
|
|
53
|
-
import { r as findCommandByNativeName } from "./commands-registry-BxEq-3UJ.js";
|
|
54
|
-
import { n as isReplyProfilerEnabled } from "./reply-timing-tracker-DjVIBsVb.js";
|
|
55
|
-
import { a as resolveSessionRuntimeOverrideForProvider, n as resolveReplyTurnKind, t as admitReplyTurn } from "./reply-turn-admission-nEW5QbY5.js";
|
|
56
|
-
import { n as resolveOriginMessageProvider } from "./origin-routing-CMrrA67a.js";
|
|
57
|
-
import { i as resolveConversationBindingContextFromMessage } from "./conversation-binding-input-z9f6x75F.js";
|
|
58
|
-
import { d as resolveEffectiveReplyRoute, l as withFullRuntimeReplyConfig, t as resolveRunTypingPolicy } from "./typing-policy-XspVOezC.js";
|
|
59
|
-
import { n as commitInboundDedupe, r as releaseInboundDedupe, t as claimInboundDedupe } from "./inbound-dedupe-D1DBleEG.js";
|
|
60
|
-
import { n as createReplyDispatcherWithTyping, r as waitForReplyDispatcherIdle, t as createReplyDispatcher } from "./reply-dispatcher-BT0Jq3lw.js";
|
|
61
|
-
import { t as resolveRoutedDeliveryThreadId } from "./routed-delivery-thread-BSWfejNe.js";
|
|
62
|
-
import { n as resolveStoredModelOverride } from "./stored-model-override-vm4CtQWX.js";
|
|
63
|
-
import { t as finalizeInboundContext } from "./inbound-context-CbkangX1.js";
|
|
64
|
-
import crypto from "node:crypto";
|
|
65
|
-
//#region src/auto-reply/dispatch-dispatcher.ts
|
|
66
|
-
async function settleReplyDispatcher(params) {
|
|
67
|
-
params.dispatcher.markComplete();
|
|
68
|
-
try {
|
|
69
|
-
await params.dispatcher.waitForIdle();
|
|
70
|
-
} finally {
|
|
71
|
-
await params.onSettled?.();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
async function withReplyDispatcher(params) {
|
|
75
|
-
try {
|
|
76
|
-
return await params.run();
|
|
77
|
-
} finally {
|
|
78
|
-
await settleReplyDispatcher(params);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/channels/plugins/exec-approval-local.ts
|
|
83
|
-
function shouldSuppressLocalExecApprovalPrompt(params) {
|
|
84
|
-
const channel = params.channel ? normalizeChannelId(params.channel) : null;
|
|
85
|
-
if (!channel) return false;
|
|
86
|
-
return getChannelPlugin(channel)?.outbound?.shouldSuppressLocalPayloadPrompt?.({
|
|
87
|
-
cfg: params.cfg,
|
|
88
|
-
accountId: params.accountId,
|
|
89
|
-
payload: params.payload,
|
|
90
|
-
hint: {
|
|
91
|
-
kind: "approval-pending",
|
|
92
|
-
approvalKind: "exec",
|
|
93
|
-
nativeRouteActive: hasActiveApprovalNativeRouteRuntime({
|
|
94
|
-
channel,
|
|
95
|
-
accountId: params.accountId,
|
|
96
|
-
approvalKind: "exec"
|
|
97
|
-
})
|
|
98
|
-
}
|
|
99
|
-
}) ?? false;
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/auto-reply/reply/routing-policy.ts
|
|
103
|
-
function resolveReplyRoutingDecision(params) {
|
|
104
|
-
const originatingChannel = normalizeMessageChannel(params.originatingChannel);
|
|
105
|
-
const providerChannel = normalizeMessageChannel(params.provider);
|
|
106
|
-
const surfaceChannel = normalizeMessageChannel(params.surface);
|
|
107
|
-
const currentSurface = providerChannel ?? surfaceChannel;
|
|
108
|
-
const isInternalWebchatTurn = currentSurface === "webchat" && (surfaceChannel === "webchat" || !surfaceChannel) && params.explicitDeliverRoute !== true;
|
|
109
|
-
const shouldRouteToOriginating = Boolean(!params.suppressDirectUserDelivery && !isInternalWebchatTurn && params.isRoutableChannel(originatingChannel) && params.originatingTo && originatingChannel !== currentSurface);
|
|
110
|
-
return {
|
|
111
|
-
originatingChannel,
|
|
112
|
-
currentSurface,
|
|
113
|
-
isInternalWebchatTurn,
|
|
114
|
-
shouldRouteToOriginating,
|
|
115
|
-
shouldSuppressTyping: params.suppressDirectUserDelivery === true || shouldRouteToOriginating || originatingChannel === "webchat"
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/auto-reply/reply/dispatch-from-config.ts
|
|
120
|
-
var DispatchReplyOperationAbortedError = class extends Error {
|
|
121
|
-
constructor() {
|
|
122
|
-
super("Dispatch reply operation aborted");
|
|
123
|
-
this.name = "AbortError";
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
function isDispatchReplyOperationAbortedError(error) {
|
|
127
|
-
return error instanceof DispatchReplyOperationAbortedError;
|
|
128
|
-
}
|
|
129
|
-
function composeAbortSignals(...signals) {
|
|
130
|
-
const activeSignals = [];
|
|
131
|
-
for (const signal of signals) if (signal && !activeSignals.includes(signal)) activeSignals.push(signal);
|
|
132
|
-
if (activeSignals.length === 0) return;
|
|
133
|
-
if (activeSignals.length === 1) return activeSignals[0];
|
|
134
|
-
if (typeof AbortSignal.any === "function") return AbortSignal.any(activeSignals);
|
|
135
|
-
const controller = new AbortController();
|
|
136
|
-
const abort = (signal) => {
|
|
137
|
-
if (!controller.signal.aborted) controller.abort(signal.reason);
|
|
138
|
-
};
|
|
139
|
-
for (const signal of activeSignals) {
|
|
140
|
-
if (signal.aborted) {
|
|
141
|
-
abort(signal);
|
|
142
|
-
return controller.signal;
|
|
143
|
-
}
|
|
144
|
-
signal.addEventListener("abort", () => abort(signal), { once: true });
|
|
145
|
-
}
|
|
146
|
-
return controller.signal;
|
|
147
|
-
}
|
|
148
|
-
const routeReplyRuntimeLoader = createLazyImportLoader(() => import("./route-reply.runtime.js"));
|
|
149
|
-
const getReplyFromConfigRuntimeLoader = createLazyImportLoader(() => import("./get-reply-from-config.runtime.js"));
|
|
150
|
-
const abortRuntimeLoader = createLazyImportLoader(() => import("./abort.runtime.js"));
|
|
151
|
-
const ttsRuntimeLoader = createLazyImportLoader(() => import("./tts.runtime.js"));
|
|
152
|
-
const runtimePluginsLoader = createLazyImportLoader(() => import("./runtime-plugins.runtime.js"));
|
|
153
|
-
const replyMediaPathsRuntimeLoader = createLazyImportLoader(() => import("./reply-media-paths.runtime.js"));
|
|
154
|
-
function loadRouteReplyRuntime() {
|
|
155
|
-
return routeReplyRuntimeLoader.load();
|
|
156
|
-
}
|
|
157
|
-
function loadGetReplyFromConfigRuntime() {
|
|
158
|
-
return getReplyFromConfigRuntimeLoader.load();
|
|
159
|
-
}
|
|
160
|
-
function loadAbortRuntime() {
|
|
161
|
-
return abortRuntimeLoader.load();
|
|
162
|
-
}
|
|
163
|
-
function loadTtsRuntime() {
|
|
164
|
-
return ttsRuntimeLoader.load();
|
|
165
|
-
}
|
|
166
|
-
function loadRuntimePlugins() {
|
|
167
|
-
return runtimePluginsLoader.load();
|
|
168
|
-
}
|
|
169
|
-
function loadReplyMediaPathsRuntime() {
|
|
170
|
-
return replyMediaPathsRuntimeLoader.load();
|
|
171
|
-
}
|
|
172
|
-
function formatSuppressedReplyPayloadForLog(reply) {
|
|
173
|
-
const metadata = getReplyPayloadMetadata(reply);
|
|
174
|
-
const text = normalizeOptionalString(reply.text);
|
|
175
|
-
const textPreview = text ? text.replace(/\s+/g, " ").slice(0, 160) : void 0;
|
|
176
|
-
const sendableParts = resolveSendableOutboundReplyParts(reply);
|
|
177
|
-
const richParts = [
|
|
178
|
-
reply.presentation ? "presentation" : void 0,
|
|
179
|
-
reply.interactive ? "interactive" : void 0,
|
|
180
|
-
reply.channelData ? "channelData" : void 0
|
|
181
|
-
].filter(Boolean);
|
|
182
|
-
return [
|
|
183
|
-
`textChars=${text?.length ?? 0}`,
|
|
184
|
-
`media=${sendableParts.mediaCount}`,
|
|
185
|
-
`rich=${richParts.length ? richParts.join("|") : "none"}`,
|
|
186
|
-
`error=${reply.isError === true}`,
|
|
187
|
-
`beforeAgentRunBlocked=${metadata?.beforeAgentRunBlocked === true}`,
|
|
188
|
-
`deliverDespiteSuppression=${metadata?.deliverDespiteSourceReplySuppression === true}`,
|
|
189
|
-
textPreview ? `textPreview=${JSON.stringify(textPreview)}` : void 0
|
|
190
|
-
].filter(Boolean).join(" ");
|
|
191
|
-
}
|
|
192
|
-
async function maybeApplyTtsToReplyPayload(params) {
|
|
193
|
-
if (isReplyPayloadStatusNotice(params.payload)) return params.payload;
|
|
194
|
-
if (!shouldAttemptTtsPayload({
|
|
195
|
-
cfg: params.cfg,
|
|
196
|
-
ttsAuto: params.ttsAuto,
|
|
197
|
-
agentId: params.agentId,
|
|
198
|
-
channelId: params.channel,
|
|
199
|
-
accountId: params.accountId
|
|
200
|
-
})) return params.payload;
|
|
201
|
-
const { maybeApplyTtsToPayload } = await loadTtsRuntime();
|
|
202
|
-
const ttsPayload = await maybeApplyTtsToPayload(params);
|
|
203
|
-
return ttsPayload === params.payload ? ttsPayload : copyReplyPayloadMetadata(params.payload, ttsPayload);
|
|
204
|
-
}
|
|
205
|
-
const AUDIO_PLACEHOLDER_RE = /^<media:audio>(\s*\([^)]*\))?$/i;
|
|
206
|
-
const AUDIO_HEADER_RE = /^\[Audio\b/i;
|
|
207
|
-
const normalizeMediaType = (value) => normalizeOptionalLowercaseString(value.split(";")[0]) ?? "";
|
|
208
|
-
const isInboundAudioContext = (ctx) => {
|
|
209
|
-
if ([typeof ctx.MediaType === "string" ? ctx.MediaType : void 0, ...Array.isArray(ctx.MediaTypes) ? ctx.MediaTypes : []].filter(Boolean).map((type) => normalizeMediaType(type)).some((type) => type === "audio" || type.startsWith("audio/"))) return true;
|
|
210
|
-
const trimmed = (typeof ctx.BodyForCommands === "string" ? ctx.BodyForCommands : typeof ctx.CommandBody === "string" ? ctx.CommandBody : typeof ctx.RawBody === "string" ? ctx.RawBody : typeof ctx.Body === "string" ? ctx.Body : "").trim();
|
|
211
|
-
if (!trimmed) return false;
|
|
212
|
-
if (AUDIO_PLACEHOLDER_RE.test(trimmed)) return true;
|
|
213
|
-
return AUDIO_HEADER_RE.test(trimmed);
|
|
214
|
-
};
|
|
215
|
-
const resolveRoutedPolicyConversationType = (ctx) => {
|
|
216
|
-
const commandTargetSessionKey = resolveCommandTurnTargetSessionKey(ctx);
|
|
217
|
-
if (commandTargetSessionKey && commandTargetSessionKey !== ctx.SessionKey) return;
|
|
218
|
-
const chatType = normalizeChatType(ctx.ChatType);
|
|
219
|
-
if (chatType === "direct") return "direct";
|
|
220
|
-
if (chatType === "group" || chatType === "channel") return "group";
|
|
221
|
-
};
|
|
222
|
-
const resolveSessionStoreLookup = (ctx, cfg) => {
|
|
223
|
-
const sessionKey = normalizeOptionalString(resolveCommandTurnTargetSessionKey(ctx) ?? ctx.SessionKey);
|
|
224
|
-
if (!sessionKey) return {};
|
|
225
|
-
const agentId = resolveSessionAgentId({
|
|
226
|
-
sessionKey,
|
|
227
|
-
config: cfg,
|
|
228
|
-
agentId: ctx.AgentId
|
|
229
|
-
});
|
|
230
|
-
const storePath = resolveStorePath(cfg.session?.store, { agentId });
|
|
231
|
-
try {
|
|
232
|
-
const store = loadSessionStore(storePath);
|
|
233
|
-
return {
|
|
234
|
-
sessionKey,
|
|
235
|
-
storePath,
|
|
236
|
-
store,
|
|
237
|
-
entry: resolveSessionStoreEntry({
|
|
238
|
-
store,
|
|
239
|
-
sessionKey
|
|
240
|
-
}).existing
|
|
241
|
-
};
|
|
242
|
-
} catch {
|
|
243
|
-
return {
|
|
244
|
-
sessionKey,
|
|
245
|
-
storePath
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
const resolveBoundAcpDispatchSessionKey = (params) => {
|
|
250
|
-
const bindingContext = resolveConversationBindingContextFromMessage({
|
|
251
|
-
cfg: params.cfg,
|
|
252
|
-
ctx: params.ctx
|
|
253
|
-
});
|
|
254
|
-
if (!bindingContext) return;
|
|
255
|
-
const binding = getSessionBindingService().resolveByConversation({
|
|
256
|
-
channel: bindingContext.channel,
|
|
257
|
-
accountId: bindingContext.accountId,
|
|
258
|
-
conversationId: bindingContext.conversationId,
|
|
259
|
-
...bindingContext.parentConversationId ? { parentConversationId: bindingContext.parentConversationId } : {}
|
|
260
|
-
});
|
|
261
|
-
const targetSessionKey = normalizeOptionalString(binding?.targetSessionKey);
|
|
262
|
-
if (!binding || !targetSessionKey || !isAcpSessionKey(targetSessionKey)) return;
|
|
263
|
-
if (isPluginOwnedSessionBindingRecord(binding)) return;
|
|
264
|
-
getSessionBindingService().touch(binding.bindingId);
|
|
265
|
-
return targetSessionKey;
|
|
266
|
-
};
|
|
267
|
-
const createShouldEmitVerboseProgress = (params) => {
|
|
268
|
-
const resolveCurrentExplicitLevel = () => {
|
|
269
|
-
if (params.sessionKey && params.storePath) try {
|
|
270
|
-
return normalizeVerboseLevel(readSessionEntry(params.storePath, params.sessionKey)?.verboseLevel ?? "");
|
|
271
|
-
} catch {}
|
|
272
|
-
return normalizeVerboseLevel(params.initialExplicitLevel ?? "");
|
|
273
|
-
};
|
|
274
|
-
const resolveLevel = () => {
|
|
275
|
-
const explicitLevel = resolveCurrentExplicitLevel();
|
|
276
|
-
if (explicitLevel) return explicitLevel;
|
|
277
|
-
return normalizeVerboseLevel(params.fallbackLevel) ?? "off";
|
|
278
|
-
};
|
|
279
|
-
return {
|
|
280
|
-
shouldEmit: () => resolveLevel() !== "off",
|
|
281
|
-
shouldEmitFull: () => resolveLevel() === "full"
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
function createReplyDispatchEvent(params) {
|
|
285
|
-
const { shouldSendToolSummaries, ...event } = params;
|
|
286
|
-
return Object.defineProperty(event, "shouldSendToolSummaries", {
|
|
287
|
-
enumerable: true,
|
|
288
|
-
get: shouldSendToolSummaries
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
function resolveHarnessDefaultChannel(params) {
|
|
292
|
-
const originatingChannel = typeof params.ctx.OriginatingChannel === "string" ? params.ctx.OriginatingChannel : void 0;
|
|
293
|
-
return params.entry?.channel ?? params.entry?.origin?.provider ?? originatingChannel ?? params.ctx.Provider ?? params.ctx.Surface;
|
|
294
|
-
}
|
|
295
|
-
function resolveHarnessDefaultParentSessionKey(params) {
|
|
296
|
-
return params.entry?.parentSessionKey ?? params.ctx.ModelParentSessionKey ?? params.ctx.ParentSessionKey;
|
|
297
|
-
}
|
|
298
|
-
function resolveTurnModelOverride(replyOptions) {
|
|
299
|
-
if (replyOptions?.isHeartbeat !== true) return;
|
|
300
|
-
return normalizeOptionalString(replyOptions.heartbeatModelOverride);
|
|
301
|
-
}
|
|
302
|
-
function resolveChannelModelCandidate(params) {
|
|
303
|
-
if (!params.cfg.channels?.modelByChannel) return;
|
|
304
|
-
const channel = resolveHarnessDefaultChannel({
|
|
305
|
-
ctx: params.ctx,
|
|
306
|
-
entry: params.entry
|
|
307
|
-
});
|
|
308
|
-
const channelModelOverride = resolveChannelModelOverride({
|
|
309
|
-
cfg: params.cfg,
|
|
310
|
-
channel,
|
|
311
|
-
groupId: params.entry?.groupId,
|
|
312
|
-
groupChatType: params.entry?.chatType ?? params.ctx.ChatType,
|
|
313
|
-
groupChannel: params.entry?.groupChannel ?? params.ctx.GroupChannel,
|
|
314
|
-
groupSubject: params.entry?.subject ?? params.ctx.GroupSubject,
|
|
315
|
-
parentSessionKey: params.parentSessionKey
|
|
316
|
-
});
|
|
317
|
-
if (!channelModelOverride) return;
|
|
318
|
-
return resolveModelRefFromString({
|
|
319
|
-
raw: channelModelOverride.model,
|
|
320
|
-
defaultProvider: params.defaultProvider,
|
|
321
|
-
aliasIndex: params.aliasIndex
|
|
322
|
-
})?.ref;
|
|
323
|
-
}
|
|
324
|
-
function resolveStoredModelCandidate(params) {
|
|
325
|
-
const storedModelRef = resolveStoredModelOverride({
|
|
326
|
-
sessionEntry: params.entry,
|
|
327
|
-
sessionStore: params.sessionStore,
|
|
328
|
-
sessionKey: params.sessionKey,
|
|
329
|
-
parentSessionKey: params.parentSessionKey,
|
|
330
|
-
defaultProvider: params.defaultProvider
|
|
331
|
-
});
|
|
332
|
-
if (!storedModelRef) return;
|
|
333
|
-
return {
|
|
334
|
-
provider: storedModelRef.provider ?? params.defaultProvider,
|
|
335
|
-
model: storedModelRef.model
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function resolveModelOverrideCandidate(params) {
|
|
339
|
-
if (!params.modelOverride) return;
|
|
340
|
-
return resolveModelRefFromString({
|
|
341
|
-
raw: params.modelOverride,
|
|
342
|
-
defaultProvider: params.defaultProvider,
|
|
343
|
-
aliasIndex: params.aliasIndex
|
|
344
|
-
})?.ref;
|
|
345
|
-
}
|
|
346
|
-
const resolveHarnessSourceVisibleRepliesDefault = (params) => {
|
|
347
|
-
if (isNativeCommandTurn(resolveCommandTurnContext(params.ctx))) return;
|
|
348
|
-
try {
|
|
349
|
-
const defaultModelRef = resolveDefaultModelForAgent({
|
|
350
|
-
cfg: params.cfg,
|
|
351
|
-
agentId: params.sessionAgentId
|
|
352
|
-
});
|
|
353
|
-
const aliasIndex = buildModelAliasIndex({
|
|
354
|
-
cfg: params.cfg,
|
|
355
|
-
defaultProvider: defaultModelRef.provider
|
|
356
|
-
});
|
|
357
|
-
const parentSessionKey = resolveHarnessDefaultParentSessionKey(params);
|
|
358
|
-
const channelModelCandidate = resolveChannelModelCandidate({
|
|
359
|
-
aliasIndex,
|
|
360
|
-
cfg: params.cfg,
|
|
361
|
-
ctx: params.ctx,
|
|
362
|
-
defaultProvider: defaultModelRef.provider,
|
|
363
|
-
entry: params.entry,
|
|
364
|
-
parentSessionKey
|
|
365
|
-
});
|
|
366
|
-
const storedModelCandidate = resolveStoredModelCandidate({
|
|
367
|
-
defaultProvider: defaultModelRef.provider,
|
|
368
|
-
entry: params.entry,
|
|
369
|
-
parentSessionKey,
|
|
370
|
-
sessionKey: params.sessionKey,
|
|
371
|
-
sessionStore: params.sessionStore
|
|
372
|
-
});
|
|
373
|
-
const turnModelCandidate = resolveModelOverrideCandidate({
|
|
374
|
-
aliasIndex,
|
|
375
|
-
defaultProvider: defaultModelRef.provider,
|
|
376
|
-
modelOverride: params.turnModelOverride
|
|
377
|
-
});
|
|
378
|
-
const resolveCandidateDefault = (candidate) => {
|
|
379
|
-
const agentHarnessRuntimeOverride = resolveSessionRuntimeOverrideForProvider({
|
|
380
|
-
provider: candidate.provider,
|
|
381
|
-
entry: params.entry
|
|
382
|
-
});
|
|
383
|
-
return selectAgentHarness({
|
|
384
|
-
provider: candidate.provider,
|
|
385
|
-
modelId: candidate.model,
|
|
386
|
-
config: params.cfg,
|
|
387
|
-
agentId: params.sessionAgentId,
|
|
388
|
-
sessionKey: params.sessionKey,
|
|
389
|
-
agentHarnessRuntimeOverride
|
|
390
|
-
}).deliveryDefaults?.sourceVisibleReplies;
|
|
391
|
-
};
|
|
392
|
-
const selectedModelCandidate = turnModelCandidate ?? storedModelCandidate ?? channelModelCandidate;
|
|
393
|
-
if (selectedModelCandidate) return resolveCandidateDefault(selectedModelCandidate);
|
|
394
|
-
const sourceProvider = normalizeOptionalString(params.entry?.origin?.provider ?? params.ctx.Provider ?? params.ctx.Surface);
|
|
395
|
-
if (sourceProvider) {
|
|
396
|
-
const sourceDefault = resolveCandidateDefault({ provider: sourceProvider });
|
|
397
|
-
if (sourceDefault) return sourceDefault;
|
|
398
|
-
}
|
|
399
|
-
return resolveCandidateDefault(defaultModelRef);
|
|
400
|
-
} catch (error) {
|
|
401
|
-
logVerbose(`dispatch-from-config: could not resolve harness visible-reply defaults: ${formatErrorMessage(error)}`);
|
|
402
|
-
return;
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
function shouldBypassPluginOwnedBindingForCommand(ctx, cfg) {
|
|
406
|
-
const commandTurn = resolveCommandTurnContext(ctx);
|
|
407
|
-
if ((commandTurn.kind === "native" || commandTurn.kind === "text-slash") && !commandTurn.authorized) return false;
|
|
408
|
-
if (isNativeCommandTurn(commandTurn) && commandTurn.authorized) return true;
|
|
409
|
-
if (!isExplicitSourceReplyCommand(ctx, cfg)) return false;
|
|
410
|
-
const commandBody = normalizeCommandBody(commandTurn.body ?? ctx.CommandBody ?? "", { botUsername: ctx.BotUsername });
|
|
411
|
-
if (!commandBody.startsWith("/")) return false;
|
|
412
|
-
if (resolveTextCommand(commandBody)) return true;
|
|
413
|
-
const provider = normalizeOptionalString(ctx.Provider ?? ctx.Surface);
|
|
414
|
-
if (commandTurn.commandName && findCommandByNativeName(commandTurn.commandName, provider, { includeBundledChannelFallback: true })) return true;
|
|
415
|
-
return Boolean(matchPluginCommand(commandBody, { channel: normalizeOptionalString(ctx.Surface ?? ctx.Provider) }));
|
|
416
|
-
}
|
|
417
|
-
async function clearPendingFinalDeliveryAfterSuccess(params) {
|
|
418
|
-
if (!params.storePath || !params.sessionKey) return;
|
|
419
|
-
await updateSessionStoreEntry({
|
|
420
|
-
storePath: params.storePath,
|
|
421
|
-
sessionKey: params.sessionKey,
|
|
422
|
-
skipMaintenance: true,
|
|
423
|
-
takeCacheOwnership: true,
|
|
424
|
-
update: async (entry) => {
|
|
425
|
-
if (!entry.pendingFinalDelivery && !entry.pendingFinalDeliveryText) return null;
|
|
426
|
-
return {
|
|
427
|
-
pendingFinalDelivery: void 0,
|
|
428
|
-
pendingFinalDeliveryText: void 0,
|
|
429
|
-
pendingFinalDeliveryCreatedAt: void 0,
|
|
430
|
-
pendingFinalDeliveryLastAttemptAt: void 0,
|
|
431
|
-
pendingFinalDeliveryAttemptCount: void 0,
|
|
432
|
-
pendingFinalDeliveryLastError: void 0,
|
|
433
|
-
pendingFinalDeliveryContext: void 0,
|
|
434
|
-
updatedAt: Date.now()
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
async function mirrorInternalSourceReplyToTranscript(params) {
|
|
440
|
-
const mirror = params.metadata;
|
|
441
|
-
if (!mirror) return;
|
|
442
|
-
const result = await appendAssistantMessageToSessionTranscript({
|
|
443
|
-
sessionKey: mirror.sessionKey,
|
|
444
|
-
agentId: mirror.agentId,
|
|
445
|
-
text: mirror.text,
|
|
446
|
-
mediaUrls: mirror.mediaUrls,
|
|
447
|
-
idempotencyKey: mirror.idempotencyKey,
|
|
448
|
-
updateMode: "inline",
|
|
449
|
-
config: params.cfg
|
|
450
|
-
});
|
|
451
|
-
if (!result.ok) logVerbose(`dispatch-from-config: internal source reply mirror skipped: ${result.reason}`);
|
|
452
|
-
}
|
|
453
|
-
function getDispatcherFinalOutcomeCounts(dispatcher) {
|
|
454
|
-
return {
|
|
455
|
-
cancelled: dispatcher.getCancelledCounts?.().final ?? 0,
|
|
456
|
-
failed: dispatcher.getFailedCounts().final
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
function sourceReplyTranscriptMirrorForDeliveredPayload(metadata, payload) {
|
|
460
|
-
const sendable = resolveSendableOutboundReplyParts(payload);
|
|
461
|
-
return {
|
|
462
|
-
...metadata,
|
|
463
|
-
text: sendable.text,
|
|
464
|
-
mediaUrls: sendable.mediaUrls.length > 0 ? sendable.mediaUrls : void 0
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
function captureDeliveredSourceReplyTranscriptMirror(params) {
|
|
468
|
-
if (!params.metadata || !params.dispatcher.appendBeforeDeliver) return () => params.metadata;
|
|
469
|
-
let deliveredMetadata;
|
|
470
|
-
const { idempotencyKey, sessionKey } = params.metadata;
|
|
471
|
-
params.dispatcher.appendBeforeDeliver((payload, info) => {
|
|
472
|
-
if (info.kind !== "final") return payload;
|
|
473
|
-
const payloadMetadata = getReplyPayloadMetadata(payload)?.sourceReplyTranscriptMirror;
|
|
474
|
-
if (!payloadMetadata) return payload;
|
|
475
|
-
if (payloadMetadata.idempotencyKey === idempotencyKey && payloadMetadata.sessionKey === sessionKey) deliveredMetadata = sourceReplyTranscriptMirrorForDeliveredPayload(payloadMetadata, payload);
|
|
476
|
-
return payload;
|
|
477
|
-
});
|
|
478
|
-
return () => deliveredMetadata;
|
|
479
|
-
}
|
|
480
|
-
async function mirrorInternalSourceReplyAfterDispatcherDelivery(params) {
|
|
481
|
-
await params.dispatcher.waitForIdle();
|
|
482
|
-
const after = getDispatcherFinalOutcomeCounts(params.dispatcher);
|
|
483
|
-
if (after.cancelled > params.before.cancelled || after.failed > params.before.failed) return;
|
|
484
|
-
const metadata = params.metadata();
|
|
485
|
-
if (!metadata) return;
|
|
486
|
-
await mirrorInternalSourceReplyToTranscript({
|
|
487
|
-
metadata,
|
|
488
|
-
cfg: params.cfg
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
function runWithDispatchAbortSignal(signal, run) {
|
|
492
|
-
if (!signal) return Promise.resolve().then(run);
|
|
493
|
-
const shouldStopForAbort = () => signal.aborted;
|
|
494
|
-
if (signal.aborted && shouldStopForAbort()) return Promise.reject(new DispatchReplyOperationAbortedError());
|
|
495
|
-
let settled = false;
|
|
496
|
-
let abortHandler;
|
|
497
|
-
const aborted = new Promise((_, reject) => {
|
|
498
|
-
abortHandler = () => {
|
|
499
|
-
if (!settled && shouldStopForAbort()) reject(new DispatchReplyOperationAbortedError());
|
|
500
|
-
};
|
|
501
|
-
signal.addEventListener("abort", abortHandler, { once: true });
|
|
502
|
-
});
|
|
503
|
-
const work = Promise.resolve().then(run).then((value) => {
|
|
504
|
-
settled = true;
|
|
505
|
-
return value;
|
|
506
|
-
}, (error) => {
|
|
507
|
-
settled = true;
|
|
508
|
-
if (shouldStopForAbort() && isAbortError(error)) throw new DispatchReplyOperationAbortedError();
|
|
509
|
-
throw error;
|
|
510
|
-
});
|
|
511
|
-
return Promise.race([work, aborted]).finally(() => {
|
|
512
|
-
settled = true;
|
|
513
|
-
if (abortHandler) signal.removeEventListener("abort", abortHandler);
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
function createAbortAwareDispatcher(params) {
|
|
517
|
-
const sendIfActive = (send) => (payload) => params.isAborted() ? false : send(payload);
|
|
518
|
-
const dispatcher = {
|
|
519
|
-
sendToolResult: sendIfActive(params.dispatcher.sendToolResult),
|
|
520
|
-
sendBlockReply: sendIfActive(params.dispatcher.sendBlockReply),
|
|
521
|
-
sendFinalReply: sendIfActive(params.dispatcher.sendFinalReply),
|
|
522
|
-
waitForIdle: () => params.dispatcher.waitForIdle(),
|
|
523
|
-
getQueuedCounts: () => params.dispatcher.getQueuedCounts(),
|
|
524
|
-
getFailedCounts: () => params.dispatcher.getFailedCounts(),
|
|
525
|
-
markComplete: () => {
|
|
526
|
-
if (!params.isAborted()) params.dispatcher.markComplete();
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
if (params.dispatcher.getCancelledCounts) dispatcher.getCancelledCounts = () => params.dispatcher.getCancelledCounts();
|
|
530
|
-
return dispatcher;
|
|
531
|
-
}
|
|
532
|
-
const replyHotPathTimingLog = createSubsystemLogger("auto-reply/reply-timing");
|
|
533
|
-
const REPLY_HOT_PATH_TIMING_WARN_TOTAL_MS = 1e3;
|
|
534
|
-
const REPLY_HOT_PATH_TIMING_WARN_STAGE_MS = 500;
|
|
535
|
-
function createReplyHotPathTimingTracker(options = {}) {
|
|
536
|
-
if (!options.profilerEnabled) return {
|
|
537
|
-
async measure(_name, run) {
|
|
538
|
-
return await run();
|
|
539
|
-
},
|
|
540
|
-
logIfSlow() {}
|
|
541
|
-
};
|
|
542
|
-
const startedAt = Date.now();
|
|
543
|
-
let didLog = false;
|
|
544
|
-
const spans = [];
|
|
545
|
-
const toMs = (value) => Math.max(0, Math.round(value));
|
|
546
|
-
const snapshot = () => ({
|
|
547
|
-
totalMs: toMs(Date.now() - startedAt),
|
|
548
|
-
spans: spans.slice()
|
|
549
|
-
});
|
|
550
|
-
const shouldLog = (summary) => summary.totalMs >= REPLY_HOT_PATH_TIMING_WARN_TOTAL_MS || summary.spans.some((span) => span.durationMs >= REPLY_HOT_PATH_TIMING_WARN_STAGE_MS);
|
|
551
|
-
const formatSpans = (summary) => summary.spans.length > 0 ? summary.spans.map((span) => `${span.name}:${span.durationMs}ms@${span.elapsedMs}ms`).join(",") : "none";
|
|
552
|
-
return {
|
|
553
|
-
async measure(name, run) {
|
|
554
|
-
const spanStartedAt = Date.now();
|
|
555
|
-
try {
|
|
556
|
-
return await run();
|
|
557
|
-
} finally {
|
|
558
|
-
spans.push({
|
|
559
|
-
name,
|
|
560
|
-
durationMs: toMs(Date.now() - spanStartedAt),
|
|
561
|
-
elapsedMs: toMs(Date.now() - startedAt)
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
logIfSlow(params) {
|
|
566
|
-
if (didLog) return;
|
|
567
|
-
const summary = snapshot();
|
|
568
|
-
if (!shouldLog(summary)) return;
|
|
569
|
-
didLog = true;
|
|
570
|
-
replyHotPathTimingLog.warn(`reply hot path timings channel=${params.channel} messageId=${params.messageId ?? "unknown"} sessionKey=${params.sessionKey ?? "unknown"} outcome=${params.outcome} totalMs=${summary.totalMs} stages=${formatSpans(summary)}${params.reason ? ` reason=${params.reason}` : ""}`, {
|
|
571
|
-
channel: params.channel,
|
|
572
|
-
messageId: params.messageId,
|
|
573
|
-
sessionKey: params.sessionKey,
|
|
574
|
-
outcome: params.outcome,
|
|
575
|
-
reason: params.reason,
|
|
576
|
-
totalMs: summary.totalMs,
|
|
577
|
-
spans: summary.spans
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
async function dispatchReplyFromConfig(params) {
|
|
583
|
-
const { ctx, cfg, dispatcher } = params;
|
|
584
|
-
if (params.replyOptions?.abortSignal?.aborted) return {
|
|
585
|
-
queuedFinal: false,
|
|
586
|
-
counts: dispatcher.getQueuedCounts()
|
|
587
|
-
};
|
|
588
|
-
const diagnosticsEnabled = isDiagnosticsEnabled(cfg);
|
|
589
|
-
const channel = normalizeLowercaseStringOrEmpty(ctx.Surface ?? ctx.Provider ?? "unknown");
|
|
590
|
-
const chatId = ctx.To ?? ctx.From;
|
|
591
|
-
const messageId = ctx.MessageSid ?? ctx.MessageSidFirst ?? ctx.MessageSidLast;
|
|
592
|
-
const sessionKey = normalizeOptionalString(ctx.SessionKey) ?? normalizeOptionalString(ctx.CommandTargetSessionKey);
|
|
593
|
-
const startTime = diagnosticsEnabled ? Date.now() : 0;
|
|
594
|
-
const canTrackSession = diagnosticsEnabled && Boolean(sessionKey);
|
|
595
|
-
const messageLifecycle = createDiagnosticMessageLifecycle({
|
|
596
|
-
enabled: diagnosticsEnabled,
|
|
597
|
-
channel,
|
|
598
|
-
chatId,
|
|
599
|
-
messageId,
|
|
600
|
-
sessionKey,
|
|
601
|
-
source: "dispatch",
|
|
602
|
-
processingReason: "message_start",
|
|
603
|
-
startedAtMs: startTime,
|
|
604
|
-
trackSessionState: canTrackSession
|
|
605
|
-
});
|
|
606
|
-
const traceAttributes = {
|
|
607
|
-
surface: channel,
|
|
608
|
-
hasSessionKey: Boolean(sessionKey),
|
|
609
|
-
hasRunId: typeof params.replyOptions?.runId === "string"
|
|
610
|
-
};
|
|
611
|
-
const replyHotPathTiming = createReplyHotPathTimingTracker({ profilerEnabled: isReplyProfilerEnabled({ config: cfg }) });
|
|
612
|
-
const traceReplyPhase = (name, run) => replyHotPathTiming.measure(name, () => measureDiagnosticsTimelineSpan(name, run, {
|
|
613
|
-
phase: "agent-turn",
|
|
614
|
-
config: cfg,
|
|
615
|
-
attributes: traceAttributes
|
|
616
|
-
}));
|
|
617
|
-
let agentDispatchStartedAt = 0;
|
|
618
|
-
const recordProcessed = (outcome, opts) => {
|
|
619
|
-
if (diagnosticsEnabled) replyHotPathTiming.logIfSlow({
|
|
620
|
-
channel,
|
|
621
|
-
messageId,
|
|
622
|
-
sessionKey,
|
|
623
|
-
outcome,
|
|
624
|
-
reason: opts?.reason
|
|
625
|
-
});
|
|
626
|
-
messageLifecycle.markProcessed(outcome, opts);
|
|
627
|
-
};
|
|
628
|
-
const recordAgentDispatchStarted = () => {
|
|
629
|
-
if (!diagnosticsEnabled || agentDispatchStartedAt > 0) return;
|
|
630
|
-
agentDispatchStartedAt = Date.now();
|
|
631
|
-
logMessageDispatchStarted({
|
|
632
|
-
channel,
|
|
633
|
-
sessionKey: acpDispatchSessionKey,
|
|
634
|
-
source: "replyResolver"
|
|
635
|
-
});
|
|
636
|
-
};
|
|
637
|
-
const recordAgentDispatchCompleted = (outcome, opts) => {
|
|
638
|
-
if (!diagnosticsEnabled || agentDispatchStartedAt <= 0) return;
|
|
639
|
-
logMessageDispatchCompleted({
|
|
640
|
-
channel,
|
|
641
|
-
sessionKey: acpDispatchSessionKey,
|
|
642
|
-
source: "replyResolver",
|
|
643
|
-
durationMs: Date.now() - agentDispatchStartedAt,
|
|
644
|
-
outcome,
|
|
645
|
-
reason: opts?.reason,
|
|
646
|
-
error: opts?.error
|
|
647
|
-
});
|
|
648
|
-
};
|
|
649
|
-
const markProcessing = () => {
|
|
650
|
-
messageLifecycle.markProcessing();
|
|
651
|
-
};
|
|
652
|
-
const markIdle = (reason) => {
|
|
653
|
-
messageLifecycle.markIdle(reason);
|
|
654
|
-
};
|
|
655
|
-
let inboundDedupeReplayUnsafe = false;
|
|
656
|
-
const markInboundDedupeReplayUnsafe = () => {
|
|
657
|
-
inboundDedupeReplayUnsafe = true;
|
|
658
|
-
};
|
|
659
|
-
const initialSessionStoreEntry = resolveSessionStoreLookup(ctx, cfg);
|
|
660
|
-
const boundAcpDispatchSessionKey = resolveBoundAcpDispatchSessionKey({
|
|
661
|
-
ctx,
|
|
662
|
-
cfg
|
|
663
|
-
});
|
|
664
|
-
const acpDispatchSessionKey = boundAcpDispatchSessionKey ?? initialSessionStoreEntry.sessionKey ?? sessionKey;
|
|
665
|
-
const dispatchOperationSessionKey = initialSessionStoreEntry.sessionKey ?? sessionKey ?? acpDispatchSessionKey;
|
|
666
|
-
if (params.replyOptions?.isHeartbeat === true && dispatchOperationSessionKey && replyRunRegistry.get(dispatchOperationSessionKey)) return {
|
|
667
|
-
queuedFinal: false,
|
|
668
|
-
counts: dispatcher.getQueuedCounts()
|
|
669
|
-
};
|
|
670
|
-
const markProgress = () => {
|
|
671
|
-
if (!canTrackSession || !sessionKey) return;
|
|
672
|
-
markDiagnosticSessionProgress({ sessionKey });
|
|
673
|
-
if (acpDispatchSessionKey && acpDispatchSessionKey !== sessionKey) markDiagnosticSessionProgress({ sessionKey: acpDispatchSessionKey });
|
|
674
|
-
};
|
|
675
|
-
const sessionStoreEntry = boundAcpDispatchSessionKey ? resolveSessionStoreLookup({
|
|
676
|
-
...ctx,
|
|
677
|
-
SessionKey: boundAcpDispatchSessionKey
|
|
678
|
-
}, cfg) : initialSessionStoreEntry;
|
|
679
|
-
const sessionAgentId = resolveSessionAgentId({
|
|
680
|
-
sessionKey: acpDispatchSessionKey,
|
|
681
|
-
config: cfg,
|
|
682
|
-
agentId: ctx.AgentId
|
|
683
|
-
});
|
|
684
|
-
const sessionAgentCfg = resolveAgentConfig(cfg, sessionAgentId);
|
|
685
|
-
const verboseProgress = createShouldEmitVerboseProgress({
|
|
686
|
-
sessionKey: acpDispatchSessionKey,
|
|
687
|
-
storePath: sessionStoreEntry.storePath,
|
|
688
|
-
initialExplicitLevel: sessionStoreEntry.entry?.verboseLevel,
|
|
689
|
-
fallbackLevel: normalizeVerboseLevel(sessionStoreEntry.entry?.verboseLevel ?? sessionAgentCfg?.verboseDefault ?? cfg.agents?.defaults?.verboseDefault ?? "") ?? "off"
|
|
690
|
-
});
|
|
691
|
-
const shouldEmitVerboseProgress = verboseProgress.shouldEmit;
|
|
692
|
-
const shouldEmitFullVerboseProgress = verboseProgress.shouldEmitFull;
|
|
693
|
-
const replyRoute = resolveEffectiveReplyRoute({
|
|
694
|
-
ctx,
|
|
695
|
-
entry: sessionStoreEntry.entry
|
|
696
|
-
});
|
|
697
|
-
const routeThreadId = resolveRoutedDeliveryThreadId({
|
|
698
|
-
ctx,
|
|
699
|
-
sessionKey: acpDispatchSessionKey
|
|
700
|
-
});
|
|
701
|
-
const inboundAudio = isInboundAudioContext(ctx);
|
|
702
|
-
const sessionTtsAuto = normalizeTtsAutoMode(sessionStoreEntry.entry?.ttsAuto);
|
|
703
|
-
const workspaceDir = resolveAgentWorkspaceDir(cfg, sessionAgentId);
|
|
704
|
-
let dispatchReplyOperation;
|
|
705
|
-
let dispatchAbortOperation;
|
|
706
|
-
let preDispatchAbortOperation;
|
|
707
|
-
const ensureDispatchReplyOperation = async (phase) => {
|
|
708
|
-
if (dispatchReplyOperation && !dispatchReplyOperation.result) return { status: "ready" };
|
|
709
|
-
if (dispatchAbortOperation && !dispatchAbortOperation.result) return dispatchReplyOperation ? { status: "ready" } : { status: "busy" };
|
|
710
|
-
if (phase === "dispatch" && preDispatchAbortOperation?.result && preDispatchAbortOperation.result.kind !== "completed" && !dispatchReplyOperation) {
|
|
711
|
-
dispatchAbortOperation = preDispatchAbortOperation;
|
|
712
|
-
return { status: "busy" };
|
|
713
|
-
}
|
|
714
|
-
if (!dispatchOperationSessionKey) return { status: "ready" };
|
|
715
|
-
const operationSessionId = dispatchAbortOperation?.sessionId ?? initialSessionStoreEntry.entry?.sessionId ?? sessionStoreEntry.entry?.sessionId ?? crypto.randomUUID();
|
|
716
|
-
const replyTurnKind = resolveReplyTurnKind(params.replyOptions);
|
|
717
|
-
const allowActivePreDispatch = phase === "pre_dispatch" && replyTurnKind === "visible";
|
|
718
|
-
const admission = await admitReplyTurn({
|
|
719
|
-
sessionKey: dispatchOperationSessionKey,
|
|
720
|
-
sessionId: operationSessionId,
|
|
721
|
-
kind: replyTurnKind,
|
|
722
|
-
resetTriggered: false,
|
|
723
|
-
upstreamAbortSignal: params.replyOptions?.abortSignal,
|
|
724
|
-
waitForActive: !allowActivePreDispatch
|
|
725
|
-
});
|
|
726
|
-
if (admission.status === "skipped") {
|
|
727
|
-
if (allowActivePreDispatch && admission.reason === "active-run") {
|
|
728
|
-
preDispatchAbortOperation = admission.activeOperation;
|
|
729
|
-
return { status: "ready" };
|
|
730
|
-
}
|
|
731
|
-
dispatchAbortOperation = admission.activeOperation;
|
|
732
|
-
logVerbose(`dispatch-from-config: skipped reply operation admission for ${dispatchOperationSessionKey}; reason=${admission.reason}`);
|
|
733
|
-
return { status: "busy" };
|
|
734
|
-
}
|
|
735
|
-
dispatchReplyOperation = admission.operation;
|
|
736
|
-
dispatchAbortOperation = admission.operation;
|
|
737
|
-
return { status: "ready" };
|
|
738
|
-
};
|
|
739
|
-
const getPreDispatchAbortOperation = () => dispatchAbortOperation ?? preDispatchAbortOperation;
|
|
740
|
-
let cachedPreDispatchAbortSignal;
|
|
741
|
-
let cachedDispatchAbortSignal;
|
|
742
|
-
const getPreDispatchAbortSignal = () => {
|
|
743
|
-
const operationSignal = getPreDispatchAbortOperation()?.abortSignal;
|
|
744
|
-
const upstreamSignal = params.replyOptions?.abortSignal;
|
|
745
|
-
if (cachedPreDispatchAbortSignal && cachedPreDispatchAbortSignal.operationSignal === operationSignal && cachedPreDispatchAbortSignal.upstreamSignal === upstreamSignal) return cachedPreDispatchAbortSignal.signal;
|
|
746
|
-
const signal = composeAbortSignals(operationSignal, upstreamSignal);
|
|
747
|
-
cachedPreDispatchAbortSignal = {
|
|
748
|
-
operationSignal,
|
|
749
|
-
upstreamSignal,
|
|
750
|
-
signal
|
|
751
|
-
};
|
|
752
|
-
return signal;
|
|
753
|
-
};
|
|
754
|
-
const getDispatchAbortSignal = () => {
|
|
755
|
-
const operationSignal = dispatchReplyOperation?.abortSignal;
|
|
756
|
-
const upstreamSignal = params.replyOptions?.abortSignal;
|
|
757
|
-
if (cachedDispatchAbortSignal && cachedDispatchAbortSignal.operationSignal === operationSignal && cachedDispatchAbortSignal.upstreamSignal === upstreamSignal) return cachedDispatchAbortSignal.signal;
|
|
758
|
-
const signal = composeAbortSignals(operationSignal, upstreamSignal);
|
|
759
|
-
cachedDispatchAbortSignal = {
|
|
760
|
-
operationSignal,
|
|
761
|
-
upstreamSignal,
|
|
762
|
-
signal
|
|
763
|
-
};
|
|
764
|
-
return signal;
|
|
765
|
-
};
|
|
766
|
-
const getQueuedFollowupAbortSignal = () => dispatchReplyOperation?.abortSignal ?? params.replyOptions?.abortSignal;
|
|
767
|
-
const getReplyOptions = () => {
|
|
768
|
-
const abortSignal = getDispatchAbortSignal();
|
|
769
|
-
if (!abortSignal) return params.replyOptions;
|
|
770
|
-
return {
|
|
771
|
-
...params.replyOptions,
|
|
772
|
-
abortSignal,
|
|
773
|
-
queuedFollowupAbortSignal: getQueuedFollowupAbortSignal(),
|
|
774
|
-
...dispatchReplyOperation ? { replyOperation: dispatchReplyOperation } : {}
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
|
-
const completeDispatchReplyOperation = () => {
|
|
778
|
-
if (dispatchReplyOperation) dispatchReplyOperation.complete();
|
|
779
|
-
};
|
|
780
|
-
const failDispatchReplyOperation = (error) => {
|
|
781
|
-
if (dispatchReplyOperation && !dispatchReplyOperation.result) dispatchReplyOperation.fail("run_failed", error);
|
|
782
|
-
};
|
|
783
|
-
const isDispatchOperationAborted = () => getDispatchAbortSignal()?.aborted === true;
|
|
784
|
-
const isPreDispatchOperationAborted = () => getPreDispatchAbortSignal()?.aborted === true;
|
|
785
|
-
const throwIfDispatchOperationAborted = () => {
|
|
786
|
-
if (isDispatchOperationAborted()) throw new DispatchReplyOperationAbortedError();
|
|
787
|
-
};
|
|
788
|
-
const dispatchHookDispatcher = createAbortAwareDispatcher({
|
|
789
|
-
dispatcher,
|
|
790
|
-
isAborted: isPreDispatchOperationAborted
|
|
791
|
-
});
|
|
792
|
-
const { ensureRuntimePluginsLoaded } = await traceReplyPhase("reply.load_runtime_plugins", () => loadRuntimePlugins());
|
|
793
|
-
await traceReplyPhase("reply.ensure_runtime_plugins", () => {
|
|
794
|
-
ensureRuntimePluginsLoaded({
|
|
795
|
-
config: cfg,
|
|
796
|
-
workspaceDir
|
|
797
|
-
});
|
|
798
|
-
});
|
|
799
|
-
const hookRunner = getGlobalHookRunner();
|
|
800
|
-
const timestamp = typeof ctx.Timestamp === "number" && Number.isFinite(ctx.Timestamp) ? ctx.Timestamp : void 0;
|
|
801
|
-
const hookContext = deriveInboundMessageHookContext(ctx, { messageId: ctx.MessageSidFull ?? ctx.MessageSid ?? ctx.MessageSidFirst ?? ctx.MessageSidLast });
|
|
802
|
-
const { isGroup, groupId } = hookContext;
|
|
803
|
-
const inboundClaimContext = toPluginInboundClaimContext(hookContext);
|
|
804
|
-
const inboundClaimEvent = toPluginInboundClaimEvent(hookContext, {
|
|
805
|
-
commandAuthorized: typeof ctx.CommandAuthorized === "boolean" ? ctx.CommandAuthorized : void 0,
|
|
806
|
-
wasMentioned: typeof ctx.WasMentioned === "boolean" ? ctx.WasMentioned : void 0
|
|
807
|
-
});
|
|
808
|
-
const suppressAcpChildUserDelivery = isParentOwnedBackgroundAcpSession(sessionStoreEntry.entry);
|
|
809
|
-
const normalizedRouteReplyChannel = normalizeMessageChannel(replyRoute.channel);
|
|
810
|
-
const normalizedProviderChannel = normalizeMessageChannel(ctx.Provider);
|
|
811
|
-
const normalizedSurfaceChannel = normalizeMessageChannel(ctx.Surface);
|
|
812
|
-
const normalizedCurrentSurface = normalizedProviderChannel ?? normalizedSurfaceChannel;
|
|
813
|
-
const isInternalWebchatTurn = normalizedCurrentSurface === "webchat" && (normalizedSurfaceChannel === "webchat" || !normalizedSurfaceChannel) && ctx.ExplicitDeliverRoute !== true;
|
|
814
|
-
const routeReplyRuntime = Boolean(!suppressAcpChildUserDelivery && !isInternalWebchatTurn && normalizedRouteReplyChannel && replyRoute.to && normalizedRouteReplyChannel !== normalizedCurrentSurface) ? await loadRouteReplyRuntime() : void 0;
|
|
815
|
-
const { originatingChannel: routeReplyChannel, currentSurface, shouldRouteToOriginating, shouldSuppressTyping } = resolveReplyRoutingDecision({
|
|
816
|
-
provider: ctx.Provider,
|
|
817
|
-
surface: ctx.Surface,
|
|
818
|
-
explicitDeliverRoute: ctx.ExplicitDeliverRoute,
|
|
819
|
-
originatingChannel: replyRoute.channel,
|
|
820
|
-
originatingTo: replyRoute.to,
|
|
821
|
-
suppressDirectUserDelivery: suppressAcpChildUserDelivery,
|
|
822
|
-
isRoutableChannel: routeReplyRuntime?.isRoutableChannel ?? (() => false)
|
|
823
|
-
});
|
|
824
|
-
const routeReplyTo = replyRoute.to;
|
|
825
|
-
const deliveryChannel = shouldRouteToOriginating ? routeReplyChannel : currentSurface;
|
|
826
|
-
let normalizeReplyMediaPaths;
|
|
827
|
-
const getNormalizeReplyMediaPaths = async () => {
|
|
828
|
-
if (normalizeReplyMediaPaths) return normalizeReplyMediaPaths;
|
|
829
|
-
const { createReplyMediaPathNormalizer } = await loadReplyMediaPathsRuntime();
|
|
830
|
-
normalizeReplyMediaPaths = createReplyMediaPathNormalizer({
|
|
831
|
-
cfg,
|
|
832
|
-
sessionKey: acpDispatchSessionKey,
|
|
833
|
-
workspaceDir,
|
|
834
|
-
messageProvider: deliveryChannel,
|
|
835
|
-
accountId: replyRoute.accountId,
|
|
836
|
-
groupId,
|
|
837
|
-
groupChannel: ctx.GroupChannel,
|
|
838
|
-
groupSpace: ctx.GroupSpace,
|
|
839
|
-
requesterSenderId: ctx.SenderId,
|
|
840
|
-
requesterSenderName: ctx.SenderName,
|
|
841
|
-
requesterSenderUsername: ctx.SenderUsername,
|
|
842
|
-
requesterSenderE164: ctx.SenderE164
|
|
843
|
-
});
|
|
844
|
-
return normalizeReplyMediaPaths;
|
|
845
|
-
};
|
|
846
|
-
const normalizeReplyMediaPayload = async (payload) => {
|
|
847
|
-
if (!resolveSendableOutboundReplyParts(payload).hasMedia) return payload;
|
|
848
|
-
return await (await getNormalizeReplyMediaPaths())(payload);
|
|
849
|
-
};
|
|
850
|
-
const routeReplyToOriginating = async (payload, options) => {
|
|
851
|
-
if (!shouldRouteToOriginating || !routeReplyChannel || !routeReplyTo || !routeReplyRuntime) return null;
|
|
852
|
-
markInboundDedupeReplayUnsafe();
|
|
853
|
-
const agentRuntimeSessionKey = ctx.CommandSource === "native" ? resolveCommandTurnTargetSessionKey(ctx) ?? ctx.SessionKey : ctx.SessionKey;
|
|
854
|
-
return await routeReplyRuntime.routeReply({
|
|
855
|
-
payload,
|
|
856
|
-
channel: routeReplyChannel,
|
|
857
|
-
to: routeReplyTo,
|
|
858
|
-
sessionKey: agentRuntimeSessionKey,
|
|
859
|
-
policySessionKey: resolveCommandTurnTargetSessionKey(ctx) ?? ctx.SessionKey,
|
|
860
|
-
policyConversationType: resolveRoutedPolicyConversationType(ctx),
|
|
861
|
-
accountId: replyRoute.accountId,
|
|
862
|
-
requesterSenderId: ctx.SenderId,
|
|
863
|
-
requesterSenderName: ctx.SenderName,
|
|
864
|
-
requesterSenderUsername: ctx.SenderUsername,
|
|
865
|
-
requesterSenderE164: ctx.SenderE164,
|
|
866
|
-
threadId: routeThreadId,
|
|
867
|
-
cfg,
|
|
868
|
-
abortSignal: options?.abortSignal,
|
|
869
|
-
mirror: options?.mirror,
|
|
870
|
-
isGroup,
|
|
871
|
-
groupId,
|
|
872
|
-
replyKind: options?.kind ?? "final",
|
|
873
|
-
runId: params.replyOptions?.runId
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
const isRoutedReplyDelivered = (result) => result.ok && result.suppressed !== true;
|
|
877
|
-
/**
|
|
878
|
-
* Helper to send a payload via route-reply (async).
|
|
879
|
-
* Only used when actually routing to a different provider.
|
|
880
|
-
* Note: Only called when shouldRouteToOriginating is true, so
|
|
881
|
-
* routeReplyChannel and routeReplyTo are guaranteed to be defined.
|
|
882
|
-
*/
|
|
883
|
-
const sendPayloadAsync = async (payload, abortSignal, mirror, kind = "tool") => {
|
|
884
|
-
if (!routeReplyRuntime || !routeReplyChannel || !routeReplyTo) return;
|
|
885
|
-
const effectiveAbortSignal = abortSignal ?? getDispatchAbortSignal();
|
|
886
|
-
if (effectiveAbortSignal?.aborted) return;
|
|
887
|
-
const result = await routeReplyToOriginating(payload, {
|
|
888
|
-
abortSignal: effectiveAbortSignal,
|
|
889
|
-
mirror,
|
|
890
|
-
kind
|
|
891
|
-
});
|
|
892
|
-
if (result && !result.ok) logVerbose(`dispatch-from-config: route-reply failed: ${result.error ?? "unknown error"}`);
|
|
893
|
-
};
|
|
894
|
-
const sendBindingNotice = async (payload, mode) => {
|
|
895
|
-
if (suppressAutomaticSourceDelivery) return false;
|
|
896
|
-
const result = await routeReplyToOriginating(payload, { kind: mode === "terminal" ? "final" : "tool" });
|
|
897
|
-
if (result) {
|
|
898
|
-
if (!result.ok) logVerbose(`dispatch-from-config: route-reply (plugin binding notice) failed: ${result.error ?? "unknown error"}`);
|
|
899
|
-
return result.ok;
|
|
900
|
-
}
|
|
901
|
-
markInboundDedupeReplayUnsafe();
|
|
902
|
-
return mode === "additive" ? dispatcher.sendToolResult(payload) : dispatcher.sendFinalReply(payload);
|
|
903
|
-
};
|
|
904
|
-
const pluginOwnedBindingRecord = inboundClaimContext.conversationId && inboundClaimContext.channelId ? resolveConversationBindingRecord({
|
|
905
|
-
channel: inboundClaimContext.channelId,
|
|
906
|
-
accountId: inboundClaimContext.accountId ?? cfg.channels?.[inboundClaimContext.channelId]?.defaultAccount ?? "default",
|
|
907
|
-
conversationId: inboundClaimContext.conversationId,
|
|
908
|
-
parentConversationId: inboundClaimContext.parentConversationId
|
|
909
|
-
}) : null;
|
|
910
|
-
const pluginOwnedBinding = isPluginOwnedSessionBindingRecord(pluginOwnedBindingRecord) ? toPluginConversationBinding(pluginOwnedBindingRecord) : null;
|
|
911
|
-
const sendPolicy = resolveSendPolicy({
|
|
912
|
-
cfg,
|
|
913
|
-
entry: sessionStoreEntry.entry,
|
|
914
|
-
sessionKey: sessionStoreEntry.sessionKey ?? sessionKey,
|
|
915
|
-
channel: (shouldRouteToOriginating ? routeReplyChannel : void 0) ?? sessionStoreEntry.entry?.channel ?? replyRoute.channel ?? ctx.Surface ?? ctx.Provider ?? void 0,
|
|
916
|
-
chatType: sessionStoreEntry.entry?.chatType
|
|
917
|
-
});
|
|
918
|
-
const { globalPolicy, globalProviderPolicy, agentPolicy, agentProviderPolicy, profile, providerProfile, profileAlsoAllow, providerProfileAlsoAllow } = resolveEffectiveToolPolicy({
|
|
919
|
-
config: cfg,
|
|
920
|
-
sessionKey: acpDispatchSessionKey,
|
|
921
|
-
agentId: sessionAgentId
|
|
922
|
-
});
|
|
923
|
-
const chatType = normalizeChatType(ctx.ChatType);
|
|
924
|
-
const configuredVisibleReplies = chatType === "group" || chatType === "channel" ? cfg.messages?.groupChat?.visibleReplies ?? cfg.messages?.visibleReplies : cfg.messages?.visibleReplies;
|
|
925
|
-
const harnessDefaultVisibleReplies = configuredVisibleReplies === void 0 && chatType !== "group" && chatType !== "channel" ? resolveHarnessSourceVisibleRepliesDefault({
|
|
926
|
-
cfg,
|
|
927
|
-
ctx,
|
|
928
|
-
entry: sessionStoreEntry.entry,
|
|
929
|
-
sessionAgentId,
|
|
930
|
-
sessionKey: acpDispatchSessionKey,
|
|
931
|
-
sessionStore: sessionStoreEntry.store,
|
|
932
|
-
turnModelOverride: resolveTurnModelOverride(params.replyOptions)
|
|
933
|
-
}) : void 0;
|
|
934
|
-
const effectiveVisibleReplies = configuredVisibleReplies ?? harnessDefaultVisibleReplies;
|
|
935
|
-
const runtimeProfileAlsoAllow = params.replyOptions?.sourceReplyDeliveryMode === "message_tool_only" || ctx.InboundEventKind === "room_event" && !isInternalWebchatTurn || params.replyOptions?.sourceReplyDeliveryMode === void 0 && !isExplicitSourceReplyCommand(ctx, cfg) && (configuredVisibleReplies === "message_tool" || !isInternalWebchatTurn && effectiveVisibleReplies === "message_tool") ? ["message"] : [];
|
|
936
|
-
const profilePolicy = mergeAlsoAllowPolicy(resolveToolProfilePolicy(profile), [...profileAlsoAllow ?? [], ...runtimeProfileAlsoAllow]);
|
|
937
|
-
const providerProfilePolicy = mergeAlsoAllowPolicy(resolveToolProfilePolicy(providerProfile), [...providerProfileAlsoAllow ?? [], ...runtimeProfileAlsoAllow]);
|
|
938
|
-
const groupResolution = resolveGroupSessionKey(ctx);
|
|
939
|
-
const groupPolicy = resolveGroupToolPolicy({
|
|
940
|
-
config: cfg,
|
|
941
|
-
sessionKey: acpDispatchSessionKey,
|
|
942
|
-
messageProvider: resolveOriginMessageProvider({
|
|
943
|
-
originatingChannel: ctx.OriginatingChannel,
|
|
944
|
-
provider: ctx.Provider ?? ctx.Surface
|
|
945
|
-
}),
|
|
946
|
-
groupId: groupResolution?.id,
|
|
947
|
-
groupChannel: normalizeOptionalString(ctx.GroupChannel) ?? normalizeOptionalString(ctx.GroupSubject),
|
|
948
|
-
groupSpace: normalizeOptionalString(ctx.GroupSpace),
|
|
949
|
-
accountId: ctx.AccountId,
|
|
950
|
-
senderId: normalizeOptionalString(ctx.SenderId),
|
|
951
|
-
senderName: normalizeOptionalString(ctx.SenderName),
|
|
952
|
-
senderUsername: normalizeOptionalString(ctx.SenderUsername),
|
|
953
|
-
senderE164: normalizeOptionalString(ctx.SenderE164)
|
|
954
|
-
});
|
|
955
|
-
const subagentStore = resolveSubagentCapabilityStore(acpDispatchSessionKey, { cfg });
|
|
956
|
-
const messageToolAvailable = isToolAllowedByPolicies("message", [
|
|
957
|
-
profilePolicy,
|
|
958
|
-
providerProfilePolicy,
|
|
959
|
-
globalProviderPolicy,
|
|
960
|
-
agentProviderPolicy,
|
|
961
|
-
globalPolicy,
|
|
962
|
-
agentPolicy,
|
|
963
|
-
groupPolicy,
|
|
964
|
-
acpDispatchSessionKey && isSubagentEnvelopeSession(acpDispatchSessionKey, {
|
|
965
|
-
cfg,
|
|
966
|
-
store: subagentStore
|
|
967
|
-
}) ? resolveSubagentToolPolicyForSession(cfg, acpDispatchSessionKey, { store: subagentStore }) : void 0,
|
|
968
|
-
resolveInheritedToolPolicyForSession(cfg, acpDispatchSessionKey, { store: subagentStore })
|
|
969
|
-
]);
|
|
970
|
-
const sourceReplyPolicy = resolveSourceReplyVisibilityPolicy({
|
|
971
|
-
cfg,
|
|
972
|
-
ctx,
|
|
973
|
-
requested: params.replyOptions?.sourceReplyDeliveryMode,
|
|
974
|
-
strictMessageToolOnly: ctx.InboundEventKind === "room_event" && !isInternalWebchatTurn,
|
|
975
|
-
sendPolicy,
|
|
976
|
-
suppressAcpChildUserDelivery,
|
|
977
|
-
explicitSuppressTyping: params.replyOptions?.suppressTyping === true,
|
|
978
|
-
shouldSuppressTyping,
|
|
979
|
-
messageToolAvailable,
|
|
980
|
-
defaultVisibleReplies: harnessDefaultVisibleReplies
|
|
981
|
-
});
|
|
982
|
-
const { sourceReplyDeliveryMode, suppressAutomaticSourceDelivery, suppressDelivery, sendPolicyDenied, deliverySuppressionReason, suppressHookUserDelivery, suppressHookReplyLifecycle } = sourceReplyPolicy;
|
|
983
|
-
const attachSourceReplyDeliveryMode = (result) => sourceReplyDeliveryMode === "message_tool_only" ? {
|
|
984
|
-
...result,
|
|
985
|
-
sourceReplyDeliveryMode
|
|
986
|
-
} : result;
|
|
987
|
-
const inboundDedupeClaim = claimInboundDedupe(ctx);
|
|
988
|
-
if (inboundDedupeClaim.status === "duplicate" || inboundDedupeClaim.status === "inflight") {
|
|
989
|
-
recordProcessed("skipped", { reason: "duplicate" });
|
|
990
|
-
return attachSourceReplyDeliveryMode({
|
|
991
|
-
queuedFinal: false,
|
|
992
|
-
counts: dispatcher.getQueuedCounts()
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
const commitInboundDedupeIfClaimed = () => {
|
|
996
|
-
if (inboundDedupeClaim.status === "claimed") commitInboundDedupe(inboundDedupeClaim.key);
|
|
997
|
-
};
|
|
998
|
-
const finishReplyOperationBusyDispatch = (opts) => {
|
|
999
|
-
if (opts?.recordAgentDispatchCompleted) recordAgentDispatchCompleted("completed", { reason: "reply-operation-active" });
|
|
1000
|
-
recordProcessed("skipped", { reason: "reply-operation-active" });
|
|
1001
|
-
markIdle("message_completed");
|
|
1002
|
-
commitInboundDedupeIfClaimed();
|
|
1003
|
-
return attachSourceReplyDeliveryMode({
|
|
1004
|
-
queuedFinal: false,
|
|
1005
|
-
counts: dispatcher.getQueuedCounts()
|
|
1006
|
-
});
|
|
1007
|
-
};
|
|
1008
|
-
const finishReplyOperationAbortedDispatch = () => {
|
|
1009
|
-
commitInboundDedupeIfClaimed();
|
|
1010
|
-
recordProcessed("completed", { reason: "reply_operation_aborted" });
|
|
1011
|
-
markIdle("message_completed");
|
|
1012
|
-
completeDispatchReplyOperation();
|
|
1013
|
-
return attachSourceReplyDeliveryMode({
|
|
1014
|
-
queuedFinal: false,
|
|
1015
|
-
counts: dispatcher.getQueuedCounts()
|
|
1016
|
-
});
|
|
1017
|
-
};
|
|
1018
|
-
let pluginFallbackReason;
|
|
1019
|
-
if (pluginOwnedBinding) {
|
|
1020
|
-
if (isPreDispatchOperationAborted()) return finishReplyOperationAbortedDispatch();
|
|
1021
|
-
touchConversationBindingRecord(pluginOwnedBinding.bindingId);
|
|
1022
|
-
if (shouldBypassPluginOwnedBindingForCommand(ctx, cfg)) logVerbose(`plugin-bound inbound command escaped plugin binding (plugin=${pluginOwnedBinding.pluginId} session=${sessionKey ?? "unknown"}); falling through to command processing`);
|
|
1023
|
-
else if (sendPolicyDenied || suppressDelivery && !suppressAutomaticSourceDelivery) logVerbose(`plugin-bound inbound skipped under ${deliverySuppressionReason} (plugin=${pluginOwnedBinding.pluginId} session=${sessionKey ?? "unknown"}); falling through to suppressed agent processing`);
|
|
1024
|
-
else {
|
|
1025
|
-
logVerbose(`plugin-bound inbound routed to ${pluginOwnedBinding.pluginId} conversation=${pluginOwnedBinding.conversationId}`);
|
|
1026
|
-
const targetedClaimOutcome = hookRunner?.runInboundClaimForPluginOutcome ? await hookRunner.runInboundClaimForPluginOutcome(pluginOwnedBinding.pluginId, inboundClaimEvent, {
|
|
1027
|
-
...inboundClaimContext,
|
|
1028
|
-
pluginBinding: pluginOwnedBinding
|
|
1029
|
-
}) : getGlobalPluginRegistry()?.plugins.some((plugin) => plugin.id === pluginOwnedBinding.pluginId && plugin.status === "loaded") ?? false ? { status: "no_handler" } : { status: "missing_plugin" };
|
|
1030
|
-
switch (targetedClaimOutcome.status) {
|
|
1031
|
-
case "handled":
|
|
1032
|
-
if (targetedClaimOutcome.result.reply) await sendBindingNotice(targetedClaimOutcome.result.reply, "terminal");
|
|
1033
|
-
markIdle("plugin_binding_dispatch");
|
|
1034
|
-
recordProcessed("completed", { reason: "plugin-bound-handled" });
|
|
1035
|
-
commitInboundDedupeIfClaimed();
|
|
1036
|
-
return attachSourceReplyDeliveryMode({
|
|
1037
|
-
queuedFinal: false,
|
|
1038
|
-
counts: dispatcher.getQueuedCounts()
|
|
1039
|
-
});
|
|
1040
|
-
case "missing_plugin":
|
|
1041
|
-
case "no_handler":
|
|
1042
|
-
pluginFallbackReason = targetedClaimOutcome.status === "missing_plugin" ? "plugin-bound-fallback-missing-plugin" : "plugin-bound-fallback-no-handler";
|
|
1043
|
-
if ((chatType === "group" || chatType === "channel") && ctx.WasMentioned === false && !isExplicitSourceReplyCommand(ctx, cfg)) {
|
|
1044
|
-
markIdle("plugin_binding_fallback_unmentioned");
|
|
1045
|
-
recordProcessed("completed", { reason: pluginFallbackReason });
|
|
1046
|
-
commitInboundDedupeIfClaimed();
|
|
1047
|
-
return attachSourceReplyDeliveryMode({
|
|
1048
|
-
queuedFinal: false,
|
|
1049
|
-
counts: dispatcher.getQueuedCounts()
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
if (!hasShownPluginBindingFallbackNotice(pluginOwnedBinding.bindingId)) {
|
|
1053
|
-
if (await sendBindingNotice({ text: buildPluginBindingUnavailableText(pluginOwnedBinding) }, "additive")) markPluginBindingFallbackNoticeShown(pluginOwnedBinding.bindingId);
|
|
1054
|
-
}
|
|
1055
|
-
break;
|
|
1056
|
-
case "declined":
|
|
1057
|
-
await sendBindingNotice({ text: buildPluginBindingDeclinedText(pluginOwnedBinding) }, "terminal");
|
|
1058
|
-
markIdle("plugin_binding_declined");
|
|
1059
|
-
recordProcessed("completed", { reason: "plugin-bound-declined" });
|
|
1060
|
-
commitInboundDedupeIfClaimed();
|
|
1061
|
-
return attachSourceReplyDeliveryMode({
|
|
1062
|
-
queuedFinal: false,
|
|
1063
|
-
counts: dispatcher.getQueuedCounts()
|
|
1064
|
-
});
|
|
1065
|
-
case "error":
|
|
1066
|
-
logVerbose(`plugin-bound inbound claim failed for ${pluginOwnedBinding.pluginId}: ${targetedClaimOutcome.error}`);
|
|
1067
|
-
await sendBindingNotice({ text: buildPluginBindingErrorText(pluginOwnedBinding) }, "terminal");
|
|
1068
|
-
markIdle("plugin_binding_error");
|
|
1069
|
-
recordProcessed("completed", { reason: "plugin-bound-error" });
|
|
1070
|
-
commitInboundDedupeIfClaimed();
|
|
1071
|
-
return attachSourceReplyDeliveryMode({
|
|
1072
|
-
queuedFinal: false,
|
|
1073
|
-
counts: dispatcher.getQueuedCounts()
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
if (hookRunner?.hasHooks("message_received")) fireAndForgetHook(hookRunner.runMessageReceived(toPluginMessageReceivedEvent(hookContext), toPluginMessageContext(hookContext)), "dispatch-from-config: message_received plugin hook failed");
|
|
1079
|
-
if (sessionKey) fireAndForgetHook(triggerInternalHook(createInternalHookEvent("message", "received", sessionKey, {
|
|
1080
|
-
...toInternalMessageReceivedContext(hookContext),
|
|
1081
|
-
timestamp
|
|
1082
|
-
})), "dispatch-from-config: message_received internal hook failed");
|
|
1083
|
-
markProcessing();
|
|
1084
|
-
try {
|
|
1085
|
-
const abortRuntime = params.fastAbortResolver ? null : await loadAbortRuntime();
|
|
1086
|
-
const fastAbortResolver = params.fastAbortResolver ?? abortRuntime?.tryFastAbortFromMessage;
|
|
1087
|
-
const formatAbortReplyTextResolver = params.formatAbortReplyTextResolver ?? abortRuntime?.formatAbortReplyText;
|
|
1088
|
-
if (!fastAbortResolver || !formatAbortReplyTextResolver) throw new Error("abort runtime unavailable");
|
|
1089
|
-
const fastAbort = await fastAbortResolver({
|
|
1090
|
-
ctx,
|
|
1091
|
-
cfg
|
|
1092
|
-
});
|
|
1093
|
-
if (fastAbort.handled) {
|
|
1094
|
-
let queuedFinal = false;
|
|
1095
|
-
let routedFinalCount = 0;
|
|
1096
|
-
if (!suppressDelivery) {
|
|
1097
|
-
const payload = { text: formatAbortReplyTextResolver(fastAbort.stoppedSubagents) };
|
|
1098
|
-
const result = await routeReplyToOriginating(payload);
|
|
1099
|
-
if (result) {
|
|
1100
|
-
queuedFinal = result.ok;
|
|
1101
|
-
if (isRoutedReplyDelivered(result)) routedFinalCount += 1;
|
|
1102
|
-
if (!result.ok) logVerbose(`dispatch-from-config: route-reply (abort) failed: ${result.error ?? "unknown error"}`);
|
|
1103
|
-
} else {
|
|
1104
|
-
markInboundDedupeReplayUnsafe();
|
|
1105
|
-
queuedFinal = dispatcher.sendFinalReply(payload);
|
|
1106
|
-
}
|
|
1107
|
-
} else logVerbose(`dispatch-from-config: fast_abort reply suppressed by ${deliverySuppressionReason} (session=${sessionKey ?? "unknown"})`);
|
|
1108
|
-
const counts = dispatcher.getQueuedCounts();
|
|
1109
|
-
counts.final += routedFinalCount;
|
|
1110
|
-
recordProcessed("completed", { reason: "fast_abort" });
|
|
1111
|
-
markIdle("message_completed");
|
|
1112
|
-
commitInboundDedupeIfClaimed();
|
|
1113
|
-
completeDispatchReplyOperation();
|
|
1114
|
-
return attachSourceReplyDeliveryMode({
|
|
1115
|
-
queuedFinal,
|
|
1116
|
-
counts
|
|
1117
|
-
});
|
|
1118
|
-
}
|
|
1119
|
-
if ((await ensureDispatchReplyOperation("pre_dispatch")).status === "busy") return finishReplyOperationBusyDispatch();
|
|
1120
|
-
const shouldSuppressDefaultToolProgressMessages = () => !shouldEmitVerboseProgress();
|
|
1121
|
-
const shouldSendVerboseProgressMessages = () => !shouldSuppressDefaultToolProgressMessages();
|
|
1122
|
-
const shouldSendToolSummaries = () => shouldSendVerboseProgressMessages();
|
|
1123
|
-
const shouldDeliverVerboseProgressDespiteSourceSuppression = () => suppressAutomaticSourceDelivery && sourceReplyDeliveryMode === "message_tool_only" && ctx.InboundEventKind !== "room_event" && !sendPolicyDenied && shouldEmitVerboseProgress() && shouldSendVerboseProgressMessages();
|
|
1124
|
-
let finalReplyDeliveryStarted = false;
|
|
1125
|
-
const hasExecApprovalPayload = (payload) => {
|
|
1126
|
-
const execApproval = payload.channelData && typeof payload.channelData === "object" && !Array.isArray(payload.channelData) ? payload.channelData.execApproval : void 0;
|
|
1127
|
-
return execApproval && typeof execApproval === "object" && !Array.isArray(execApproval);
|
|
1128
|
-
};
|
|
1129
|
-
const shouldSuppressLateTextOnlyToolProgress = (payload) => {
|
|
1130
|
-
if (!finalReplyDeliveryStarted) return false;
|
|
1131
|
-
return !resolveSendableOutboundReplyParts(payload).hasMedia && !hasExecApprovalPayload(payload);
|
|
1132
|
-
};
|
|
1133
|
-
const shouldSuppressMessageToolOnlyTextErrorProgress = (payload) => {
|
|
1134
|
-
if (sourceReplyDeliveryMode !== "message_tool_only" || shouldEmitFullVerboseProgress() || payload.isError !== true) return false;
|
|
1135
|
-
return !resolveSendableOutboundReplyParts(payload).hasMedia && !hasExecApprovalPayload(payload);
|
|
1136
|
-
};
|
|
1137
|
-
const sendFinalPayload = async (payload, options = {}) => {
|
|
1138
|
-
const abortSignal = options.abortSignal ?? getDispatchAbortSignal();
|
|
1139
|
-
const throwIfFinalDeliveryAborted = () => {
|
|
1140
|
-
if (abortSignal?.aborted) throw new DispatchReplyOperationAbortedError();
|
|
1141
|
-
};
|
|
1142
|
-
throwIfFinalDeliveryAborted();
|
|
1143
|
-
const sourceReplyTranscriptMirror = getReplyPayloadMetadata(payload)?.sourceReplyTranscriptMirror;
|
|
1144
|
-
if (hasOutboundReplyContent(payload, { trimText: true })) {
|
|
1145
|
-
markInboundDedupeReplayUnsafe();
|
|
1146
|
-
finalReplyDeliveryStarted = true;
|
|
1147
|
-
}
|
|
1148
|
-
const ttsPayload = await maybeApplyTtsToReplyPayload({
|
|
1149
|
-
payload,
|
|
1150
|
-
cfg,
|
|
1151
|
-
channel: deliveryChannel,
|
|
1152
|
-
kind: "final",
|
|
1153
|
-
inboundAudio,
|
|
1154
|
-
ttsAuto: sessionTtsAuto,
|
|
1155
|
-
agentId: sessionAgentId,
|
|
1156
|
-
accountId: replyRoute.accountId
|
|
1157
|
-
});
|
|
1158
|
-
throwIfFinalDeliveryAborted();
|
|
1159
|
-
const normalizedPayload = await normalizeReplyMediaPayload(ttsPayload);
|
|
1160
|
-
throwIfFinalDeliveryAborted();
|
|
1161
|
-
const result = await routeReplyToOriginating(normalizedPayload, {
|
|
1162
|
-
abortSignal,
|
|
1163
|
-
kind: "final"
|
|
1164
|
-
});
|
|
1165
|
-
if (result) {
|
|
1166
|
-
if (!result.ok) logVerbose(`dispatch-from-config: route-reply (final) failed: ${result.error ?? "unknown error"}`);
|
|
1167
|
-
if (isRoutedReplyDelivered(result)) await mirrorInternalSourceReplyToTranscript({
|
|
1168
|
-
metadata: sourceReplyTranscriptMirror,
|
|
1169
|
-
cfg
|
|
1170
|
-
});
|
|
1171
|
-
return {
|
|
1172
|
-
queuedFinal: result.ok,
|
|
1173
|
-
routedFinalCount: isRoutedReplyDelivered(result) ? 1 : 0
|
|
1174
|
-
};
|
|
1175
|
-
}
|
|
1176
|
-
throwIfFinalDeliveryAborted();
|
|
1177
|
-
markInboundDedupeReplayUnsafe();
|
|
1178
|
-
const finalOutcomeBefore = getDispatcherFinalOutcomeCounts(dispatcher);
|
|
1179
|
-
const deliveredSourceReplyTranscriptMirror = captureDeliveredSourceReplyTranscriptMirror({
|
|
1180
|
-
dispatcher,
|
|
1181
|
-
metadata: sourceReplyTranscriptMirror
|
|
1182
|
-
});
|
|
1183
|
-
const queuedFinal = dispatcher.sendFinalReply(normalizedPayload);
|
|
1184
|
-
if (queuedFinal) await mirrorInternalSourceReplyAfterDispatcherDelivery({
|
|
1185
|
-
dispatcher,
|
|
1186
|
-
before: finalOutcomeBefore,
|
|
1187
|
-
metadata: deliveredSourceReplyTranscriptMirror,
|
|
1188
|
-
cfg
|
|
1189
|
-
});
|
|
1190
|
-
return {
|
|
1191
|
-
queuedFinal,
|
|
1192
|
-
routedFinalCount: 0
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
if (hookRunner?.hasHooks("before_dispatch")) {
|
|
1196
|
-
const beforeDispatchResult = await traceReplyPhase("reply.before_dispatch_hooks", () => runWithDispatchAbortSignal(getPreDispatchAbortSignal(), () => hookRunner.runBeforeDispatch({
|
|
1197
|
-
content: hookContext.content,
|
|
1198
|
-
body: hookContext.bodyForAgent ?? hookContext.body,
|
|
1199
|
-
channel: hookContext.channelId,
|
|
1200
|
-
sessionKey: sessionStoreEntry.sessionKey ?? sessionKey,
|
|
1201
|
-
senderId: hookContext.senderId,
|
|
1202
|
-
isGroup: hookContext.isGroup,
|
|
1203
|
-
timestamp: hookContext.timestamp
|
|
1204
|
-
}, {
|
|
1205
|
-
channelId: hookContext.channelId,
|
|
1206
|
-
accountId: hookContext.accountId,
|
|
1207
|
-
conversationId: inboundClaimContext.conversationId,
|
|
1208
|
-
sessionKey: sessionStoreEntry.sessionKey ?? sessionKey,
|
|
1209
|
-
senderId: hookContext.senderId
|
|
1210
|
-
})));
|
|
1211
|
-
if (beforeDispatchResult?.handled) {
|
|
1212
|
-
const text = beforeDispatchResult.text;
|
|
1213
|
-
let queuedFinal = false;
|
|
1214
|
-
let routedFinalCount = 0;
|
|
1215
|
-
if (text && !suppressDelivery) {
|
|
1216
|
-
const handledReply = await sendFinalPayload({ text }, { abortSignal: getPreDispatchAbortSignal() });
|
|
1217
|
-
queuedFinal = handledReply.queuedFinal;
|
|
1218
|
-
routedFinalCount += handledReply.routedFinalCount;
|
|
1219
|
-
}
|
|
1220
|
-
const counts = dispatcher.getQueuedCounts();
|
|
1221
|
-
counts.final += routedFinalCount;
|
|
1222
|
-
recordProcessed("completed", { reason: "before_dispatch_handled" });
|
|
1223
|
-
markIdle("message_completed");
|
|
1224
|
-
commitInboundDedupeIfClaimed();
|
|
1225
|
-
completeDispatchReplyOperation();
|
|
1226
|
-
return attachSourceReplyDeliveryMode({
|
|
1227
|
-
queuedFinal,
|
|
1228
|
-
counts
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
if (hookRunner?.hasHooks("reply_dispatch")) {
|
|
1233
|
-
const replyDispatchResult = await traceReplyPhase("reply.reply_dispatch_hooks", () => runWithDispatchAbortSignal(getPreDispatchAbortSignal(), () => hookRunner.runReplyDispatch(createReplyDispatchEvent({
|
|
1234
|
-
ctx,
|
|
1235
|
-
runId: params.replyOptions?.runId,
|
|
1236
|
-
sessionKey: acpDispatchSessionKey,
|
|
1237
|
-
images: params.replyOptions?.images,
|
|
1238
|
-
inboundAudio,
|
|
1239
|
-
sessionTtsAuto,
|
|
1240
|
-
ttsChannel: deliveryChannel,
|
|
1241
|
-
suppressUserDelivery: suppressHookUserDelivery,
|
|
1242
|
-
suppressReplyLifecycle: suppressHookReplyLifecycle,
|
|
1243
|
-
sourceReplyDeliveryMode,
|
|
1244
|
-
shouldRouteToOriginating,
|
|
1245
|
-
originatingChannel: routeReplyChannel,
|
|
1246
|
-
originatingTo: routeReplyTo,
|
|
1247
|
-
shouldSendToolSummaries,
|
|
1248
|
-
sendPolicy
|
|
1249
|
-
}), {
|
|
1250
|
-
cfg,
|
|
1251
|
-
dispatcher: dispatchHookDispatcher,
|
|
1252
|
-
abortSignal: getPreDispatchAbortSignal() ?? params.replyOptions?.abortSignal,
|
|
1253
|
-
onReplyStart: params.replyOptions?.onReplyStart,
|
|
1254
|
-
recordProcessed,
|
|
1255
|
-
markIdle
|
|
1256
|
-
})));
|
|
1257
|
-
if (replyDispatchResult?.handled) {
|
|
1258
|
-
commitInboundDedupeIfClaimed();
|
|
1259
|
-
completeDispatchReplyOperation();
|
|
1260
|
-
return attachSourceReplyDeliveryMode({
|
|
1261
|
-
queuedFinal: replyDispatchResult.queuedFinal,
|
|
1262
|
-
counts: replyDispatchResult.counts
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
if ((await ensureDispatchReplyOperation("dispatch")).status === "busy") return finishReplyOperationBusyDispatch();
|
|
1267
|
-
if (suppressDelivery) logVerbose(`Delivery suppressed by ${deliverySuppressionReason} for session ${sessionStoreEntry.sessionKey ?? sessionKey ?? "unknown"} — agent will still process the message`);
|
|
1268
|
-
const toolStartStatusesSent = /* @__PURE__ */ new Set();
|
|
1269
|
-
let toolStartStatusCount = 0;
|
|
1270
|
-
let didSendPlanStatusNotice = false;
|
|
1271
|
-
const normalizeWorkingLabel = (label) => {
|
|
1272
|
-
const collapsed = label.replace(/\s+/g, " ").trim();
|
|
1273
|
-
if (collapsed.length <= 80) return collapsed;
|
|
1274
|
-
return `${collapsed.slice(0, 77).trimEnd()}...`;
|
|
1275
|
-
};
|
|
1276
|
-
const formatPlanUpdateText = (payload) => {
|
|
1277
|
-
const explanation = payload.explanation?.replace(/\s+/g, " ").trim();
|
|
1278
|
-
const steps = (payload.steps ?? []).map((step) => step.replace(/\s+/g, " ").trim()).filter(Boolean);
|
|
1279
|
-
if (steps.length > 0) return steps.map((step, index) => `${index + 1}. ${step}`).join("\n");
|
|
1280
|
-
return explanation || "Planning next steps.";
|
|
1281
|
-
};
|
|
1282
|
-
const maybeSendWorkingStatus = async (label) => {
|
|
1283
|
-
if (shouldSuppressProgressDelivery()) return;
|
|
1284
|
-
const normalizedLabel = normalizeWorkingLabel(label);
|
|
1285
|
-
if (!shouldEmitVerboseProgress() || true) return;
|
|
1286
|
-
toolStartStatusesSent.add(normalizedLabel);
|
|
1287
|
-
toolStartStatusCount += 1;
|
|
1288
|
-
const payload = { text: `Working: ${normalizedLabel}` };
|
|
1289
|
-
if (shouldRouteToOriginating) {
|
|
1290
|
-
await sendPayloadAsync(payload, void 0, false);
|
|
1291
|
-
return;
|
|
1292
|
-
}
|
|
1293
|
-
markInboundDedupeReplayUnsafe();
|
|
1294
|
-
dispatcher.sendToolResult(payload);
|
|
1295
|
-
};
|
|
1296
|
-
const sendPlanUpdate = async (payload) => {
|
|
1297
|
-
if (shouldSuppressProgressDelivery() || !shouldSendVerboseProgressMessages() || didSendPlanStatusNotice) return;
|
|
1298
|
-
didSendPlanStatusNotice = true;
|
|
1299
|
-
const replyPayload = {
|
|
1300
|
-
text: formatPlanUpdateText(payload),
|
|
1301
|
-
isStatusNotice: true
|
|
1302
|
-
};
|
|
1303
|
-
if (shouldRouteToOriginating) {
|
|
1304
|
-
await sendPayloadAsync(replyPayload, void 0, false);
|
|
1305
|
-
return;
|
|
1306
|
-
}
|
|
1307
|
-
markInboundDedupeReplayUnsafe();
|
|
1308
|
-
dispatcher.sendToolResult(replyPayload);
|
|
1309
|
-
};
|
|
1310
|
-
const summarizeApprovalLabel = (payload) => {
|
|
1311
|
-
if (payload.status === "pending") {
|
|
1312
|
-
const command = normalizeOptionalString(payload.command);
|
|
1313
|
-
if (command) return normalizeWorkingLabel(`awaiting approval: ${command}`);
|
|
1314
|
-
return "awaiting approval";
|
|
1315
|
-
}
|
|
1316
|
-
if (payload.status === "unavailable") {
|
|
1317
|
-
const message = normalizeOptionalString(payload.message);
|
|
1318
|
-
if (message) return normalizeWorkingLabel(message);
|
|
1319
|
-
return "approval unavailable";
|
|
1320
|
-
}
|
|
1321
|
-
return "";
|
|
1322
|
-
};
|
|
1323
|
-
const summarizePatchLabel = (payload) => {
|
|
1324
|
-
const summary = normalizeOptionalString(payload.summary);
|
|
1325
|
-
if (summary) return normalizeWorkingLabel(summary);
|
|
1326
|
-
const title = normalizeOptionalString(payload.title);
|
|
1327
|
-
if (title) return normalizeWorkingLabel(title);
|
|
1328
|
-
return "";
|
|
1329
|
-
};
|
|
1330
|
-
let accumulatedBlockText = "";
|
|
1331
|
-
let accumulatedBlockTtsText = "";
|
|
1332
|
-
let blockCount = 0;
|
|
1333
|
-
const cleanBlockTtsDirectiveText = shouldCleanTtsDirectiveText({
|
|
1334
|
-
cfg,
|
|
1335
|
-
ttsAuto: sessionTtsAuto,
|
|
1336
|
-
agentId: sessionAgentId,
|
|
1337
|
-
channelId: deliveryChannel,
|
|
1338
|
-
accountId: replyRoute.accountId
|
|
1339
|
-
}) ? createTtsDirectiveTextStreamCleaner() : void 0;
|
|
1340
|
-
const resolveToolDeliveryPayload = (payload) => {
|
|
1341
|
-
if (shouldSuppressLocalExecApprovalPrompt({
|
|
1342
|
-
channel: normalizeMessageChannel(ctx.Surface ?? ctx.Provider),
|
|
1343
|
-
cfg,
|
|
1344
|
-
accountId: ctx.AccountId,
|
|
1345
|
-
payload
|
|
1346
|
-
})) return null;
|
|
1347
|
-
if (shouldSendToolSummaries()) return payload;
|
|
1348
|
-
const execApproval = payload.channelData && typeof payload.channelData === "object" && !Array.isArray(payload.channelData) ? payload.channelData.execApproval : void 0;
|
|
1349
|
-
if (execApproval && typeof execApproval === "object" && !Array.isArray(execApproval)) return payload;
|
|
1350
|
-
if (!resolveSendableOutboundReplyParts(payload).hasMedia) return null;
|
|
1351
|
-
return {
|
|
1352
|
-
...payload,
|
|
1353
|
-
text: void 0
|
|
1354
|
-
};
|
|
1355
|
-
};
|
|
1356
|
-
const typing = resolveRunTypingPolicy({
|
|
1357
|
-
requestedPolicy: params.replyOptions?.typingPolicy,
|
|
1358
|
-
suppressTyping: sourceReplyPolicy.suppressTyping,
|
|
1359
|
-
originatingChannel: routeReplyChannel,
|
|
1360
|
-
systemEvent: shouldRouteToOriginating
|
|
1361
|
-
});
|
|
1362
|
-
const shouldSuppressProgressDelivery = () => sendPolicyDenied || suppressDelivery && !shouldDeliverVerboseProgressDespiteSourceSuppression();
|
|
1363
|
-
const hasVisibleRegularVerboseToolProgress = () => shouldEmitVerboseProgress() && !shouldEmitFullVerboseProgress() && shouldSendVerboseProgressMessages() && ctx.InboundEventKind !== "room_event" && !shouldSuppressProgressDelivery();
|
|
1364
|
-
let observedVisibleToolErrorProgress = false;
|
|
1365
|
-
const markVisibleToolErrorProgress = () => {
|
|
1366
|
-
if (hasVisibleRegularVerboseToolProgress()) observedVisibleToolErrorProgress = true;
|
|
1367
|
-
};
|
|
1368
|
-
const hasFailedProgressStatus = (payload) => payload.phase === "error" || payload.status === "failed" || payload.status === "error" || typeof payload.exitCode === "number" && payload.exitCode !== 0;
|
|
1369
|
-
const shouldSuppressToolErrorWarnings = () => {
|
|
1370
|
-
if (params.replyOptions?.suppressToolErrorWarnings !== void 0) return params.replyOptions.suppressToolErrorWarnings;
|
|
1371
|
-
if (!shouldEmitVerboseProgress()) return false;
|
|
1372
|
-
return observedVisibleToolErrorProgress ? true : void 0;
|
|
1373
|
-
};
|
|
1374
|
-
const suppressToolErrorWarnings = params.replyOptions?.suppressToolErrorWarnings ?? (observedVisibleToolErrorProgress ? true : void 0);
|
|
1375
|
-
const onToolResultFromReplyOptions = params.replyOptions?.onToolResult;
|
|
1376
|
-
const onPlanUpdateFromReplyOptions = params.replyOptions?.onPlanUpdate;
|
|
1377
|
-
const onApprovalEventFromReplyOptions = params.replyOptions?.onApprovalEvent;
|
|
1378
|
-
const onPatchSummaryFromReplyOptions = params.replyOptions?.onPatchSummary;
|
|
1379
|
-
const allowSuppressedSourceProgressCallbacks = params.replyOptions?.allowProgressCallbacksWhenSourceDeliverySuppressed === true;
|
|
1380
|
-
const shouldAllowQuietChannelOwnedProgressCallbacks = (options) => options?.requiresToolSummaryVisibility === true && params.replyOptions?.suppressDefaultToolProgressMessages === true;
|
|
1381
|
-
let hasPendingDirectBlockReplyDelivery = false;
|
|
1382
|
-
const waitForPendingDirectBlockReplyDelivery = async (abortSignal) => {
|
|
1383
|
-
if (!hasPendingDirectBlockReplyDelivery) return;
|
|
1384
|
-
hasPendingDirectBlockReplyDelivery = false;
|
|
1385
|
-
await waitForReplyDispatcherIdle(dispatcher, abortSignal);
|
|
1386
|
-
};
|
|
1387
|
-
const shouldForwardProgressCallback = (options) => {
|
|
1388
|
-
if (options?.requiresToolSummaryVisibility === true && !shouldSendToolSummaries() && !shouldAllowQuietChannelOwnedProgressCallbacks(options)) return false;
|
|
1389
|
-
return !suppressAutomaticSourceDelivery || allowSuppressedSourceProgressCallbacks && ctx.InboundEventKind !== "room_event" && !sendPolicyDenied && options?.forwardWhenSourceDeliverySuppressed === true;
|
|
1390
|
-
};
|
|
1391
|
-
const wrapProgressCallback = (callback, options) => {
|
|
1392
|
-
if (!callback) return;
|
|
1393
|
-
return async (...args) => {
|
|
1394
|
-
if (isDispatchOperationAborted()) return;
|
|
1395
|
-
markProgress();
|
|
1396
|
-
if (options?.waitForDirectBlockReplyDelivery) {
|
|
1397
|
-
await waitForPendingDirectBlockReplyDelivery(dispatchAbortOperation?.abortSignal);
|
|
1398
|
-
if (isDispatchOperationAborted()) return;
|
|
1399
|
-
}
|
|
1400
|
-
if (shouldForwardProgressCallback(options)) {
|
|
1401
|
-
options?.onForward?.(...args);
|
|
1402
|
-
await callback?.(...args);
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
};
|
|
1406
|
-
const replyResolver = params.replyResolver ?? (await traceReplyPhase("reply.load_reply_resolver", () => loadGetReplyFromConfigRuntime())).getReplyFromConfig;
|
|
1407
|
-
const replyConfig = withFullRuntimeReplyConfig(params.configOverride ? applyMergePatch(cfg, params.configOverride) : cfg);
|
|
1408
|
-
recordAgentDispatchStarted();
|
|
1409
|
-
const replyResult = await runWithDispatchAbortSignal(getDispatchAbortSignal(), () => traceReplyPhase("reply.run_reply_resolver", () => replyResolver(ctx, {
|
|
1410
|
-
...getReplyOptions(),
|
|
1411
|
-
sourceReplyDeliveryMode,
|
|
1412
|
-
suppressToolErrorWarnings,
|
|
1413
|
-
shouldSuppressToolErrorWarnings,
|
|
1414
|
-
typingPolicy: typing.typingPolicy,
|
|
1415
|
-
suppressTyping: typing.suppressTyping,
|
|
1416
|
-
onPartialReply: wrapProgressCallback(params.replyOptions?.onPartialReply),
|
|
1417
|
-
onReasoningStream: wrapProgressCallback(params.replyOptions?.onReasoningStream),
|
|
1418
|
-
onReasoningEnd: wrapProgressCallback(params.replyOptions?.onReasoningEnd),
|
|
1419
|
-
onAssistantMessageStart: wrapProgressCallback(params.replyOptions?.onAssistantMessageStart),
|
|
1420
|
-
onBlockReplyQueued: wrapProgressCallback(params.replyOptions?.onBlockReplyQueued),
|
|
1421
|
-
onToolStart: wrapProgressCallback(params.replyOptions?.onToolStart, {
|
|
1422
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1423
|
-
requiresToolSummaryVisibility: true,
|
|
1424
|
-
waitForDirectBlockReplyDelivery: true
|
|
1425
|
-
}),
|
|
1426
|
-
onItemEvent: wrapProgressCallback(params.replyOptions?.onItemEvent, {
|
|
1427
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1428
|
-
requiresToolSummaryVisibility: true,
|
|
1429
|
-
waitForDirectBlockReplyDelivery: true,
|
|
1430
|
-
onForward: (payload) => {
|
|
1431
|
-
if (hasFailedProgressStatus(payload)) markVisibleToolErrorProgress();
|
|
1432
|
-
}
|
|
1433
|
-
}),
|
|
1434
|
-
onCommandOutput: wrapProgressCallback(params.replyOptions?.onCommandOutput, {
|
|
1435
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1436
|
-
requiresToolSummaryVisibility: true,
|
|
1437
|
-
waitForDirectBlockReplyDelivery: true,
|
|
1438
|
-
onForward: (payload) => {
|
|
1439
|
-
if (hasFailedProgressStatus(payload)) markVisibleToolErrorProgress();
|
|
1440
|
-
}
|
|
1441
|
-
}),
|
|
1442
|
-
onCompactionStart: wrapProgressCallback(params.replyOptions?.onCompactionStart, {
|
|
1443
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1444
|
-
requiresToolSummaryVisibility: true,
|
|
1445
|
-
waitForDirectBlockReplyDelivery: true
|
|
1446
|
-
}),
|
|
1447
|
-
onCompactionEnd: wrapProgressCallback(params.replyOptions?.onCompactionEnd, {
|
|
1448
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1449
|
-
requiresToolSummaryVisibility: true,
|
|
1450
|
-
waitForDirectBlockReplyDelivery: true
|
|
1451
|
-
}),
|
|
1452
|
-
onToolResult: (payload) => {
|
|
1453
|
-
markProgress();
|
|
1454
|
-
const run = async () => {
|
|
1455
|
-
if (isDispatchOperationAborted()) return;
|
|
1456
|
-
await waitForPendingDirectBlockReplyDelivery(dispatchAbortOperation?.abortSignal);
|
|
1457
|
-
if (isDispatchOperationAborted()) return;
|
|
1458
|
-
markInboundDedupeReplayUnsafe();
|
|
1459
|
-
if (!suppressAutomaticSourceDelivery && shouldSendToolSummaries()) await onToolResultFromReplyOptions?.(payload);
|
|
1460
|
-
if (isDispatchOperationAborted()) return;
|
|
1461
|
-
if (shouldSuppressProgressDelivery()) return;
|
|
1462
|
-
const visibleToolPayload = resolveToolDeliveryPayload(payload);
|
|
1463
|
-
if (!visibleToolPayload) return;
|
|
1464
|
-
const deliveryPayload = resolveToolDeliveryPayload(await normalizeReplyMediaPayload(await maybeApplyTtsToReplyPayload({
|
|
1465
|
-
payload: visibleToolPayload,
|
|
1466
|
-
cfg,
|
|
1467
|
-
channel: deliveryChannel,
|
|
1468
|
-
kind: "tool",
|
|
1469
|
-
inboundAudio,
|
|
1470
|
-
ttsAuto: sessionTtsAuto,
|
|
1471
|
-
agentId: sessionAgentId,
|
|
1472
|
-
accountId: replyRoute.accountId
|
|
1473
|
-
})));
|
|
1474
|
-
if (!deliveryPayload) return;
|
|
1475
|
-
if (isDispatchOperationAborted()) return;
|
|
1476
|
-
if (shouldSuppressLateTextOnlyToolProgress(deliveryPayload)) return;
|
|
1477
|
-
if (shouldSuppressMessageToolOnlyTextErrorProgress(deliveryPayload)) return;
|
|
1478
|
-
if (shouldSuppressDefaultToolProgressMessages()) {
|
|
1479
|
-
if (!resolveSendableOutboundReplyParts(deliveryPayload).hasMedia && !hasExecApprovalPayload(deliveryPayload)) return;
|
|
1480
|
-
}
|
|
1481
|
-
if (deliveryPayload.isError === true) markVisibleToolErrorProgress();
|
|
1482
|
-
if (shouldRouteToOriginating) await sendPayloadAsync(deliveryPayload, void 0, false);
|
|
1483
|
-
else {
|
|
1484
|
-
markInboundDedupeReplayUnsafe();
|
|
1485
|
-
dispatcher.sendToolResult(deliveryPayload);
|
|
1486
|
-
}
|
|
1487
|
-
};
|
|
1488
|
-
return run();
|
|
1489
|
-
},
|
|
1490
|
-
onPlanUpdate: async (payload) => {
|
|
1491
|
-
if (isDispatchOperationAborted()) return;
|
|
1492
|
-
markProgress();
|
|
1493
|
-
await waitForPendingDirectBlockReplyDelivery(dispatchAbortOperation?.abortSignal);
|
|
1494
|
-
if (isDispatchOperationAborted()) return;
|
|
1495
|
-
markInboundDedupeReplayUnsafe();
|
|
1496
|
-
if (shouldForwardProgressCallback({
|
|
1497
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1498
|
-
requiresToolSummaryVisibility: true
|
|
1499
|
-
})) await onPlanUpdateFromReplyOptions?.(payload);
|
|
1500
|
-
if (isDispatchOperationAborted()) return;
|
|
1501
|
-
if (payload.phase !== "update" || shouldSuppressDefaultToolProgressMessages()) return;
|
|
1502
|
-
await sendPlanUpdate({
|
|
1503
|
-
explanation: payload.explanation,
|
|
1504
|
-
steps: payload.steps
|
|
1505
|
-
});
|
|
1506
|
-
},
|
|
1507
|
-
onApprovalEvent: async (payload) => {
|
|
1508
|
-
if (isDispatchOperationAborted()) return;
|
|
1509
|
-
markProgress();
|
|
1510
|
-
await waitForPendingDirectBlockReplyDelivery(dispatchAbortOperation?.abortSignal);
|
|
1511
|
-
if (isDispatchOperationAborted()) return;
|
|
1512
|
-
markInboundDedupeReplayUnsafe();
|
|
1513
|
-
if (shouldForwardProgressCallback({
|
|
1514
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1515
|
-
requiresToolSummaryVisibility: true
|
|
1516
|
-
})) await onApprovalEventFromReplyOptions?.(payload);
|
|
1517
|
-
if (isDispatchOperationAborted()) return;
|
|
1518
|
-
if (payload.phase !== "requested" || shouldSuppressDefaultToolProgressMessages()) return;
|
|
1519
|
-
const label = summarizeApprovalLabel({
|
|
1520
|
-
status: payload.status,
|
|
1521
|
-
command: payload.command,
|
|
1522
|
-
message: payload.message
|
|
1523
|
-
});
|
|
1524
|
-
if (!label) return;
|
|
1525
|
-
await maybeSendWorkingStatus(label);
|
|
1526
|
-
},
|
|
1527
|
-
onPatchSummary: async (payload) => {
|
|
1528
|
-
if (isDispatchOperationAborted()) return;
|
|
1529
|
-
markProgress();
|
|
1530
|
-
await waitForPendingDirectBlockReplyDelivery(dispatchAbortOperation?.abortSignal);
|
|
1531
|
-
if (isDispatchOperationAborted()) return;
|
|
1532
|
-
markInboundDedupeReplayUnsafe();
|
|
1533
|
-
if (shouldForwardProgressCallback({
|
|
1534
|
-
forwardWhenSourceDeliverySuppressed: true,
|
|
1535
|
-
requiresToolSummaryVisibility: true
|
|
1536
|
-
})) await onPatchSummaryFromReplyOptions?.(payload);
|
|
1537
|
-
if (isDispatchOperationAborted()) return;
|
|
1538
|
-
if (payload.phase !== "end" || shouldSuppressDefaultToolProgressMessages()) return;
|
|
1539
|
-
const label = summarizePatchLabel({
|
|
1540
|
-
summary: payload.summary,
|
|
1541
|
-
title: payload.title
|
|
1542
|
-
});
|
|
1543
|
-
if (!label) return;
|
|
1544
|
-
await maybeSendWorkingStatus(label);
|
|
1545
|
-
},
|
|
1546
|
-
onBlockReply: (payload, context) => {
|
|
1547
|
-
markProgress();
|
|
1548
|
-
const run = async () => {
|
|
1549
|
-
if (isDispatchOperationAborted()) return;
|
|
1550
|
-
if (payload.isReasoning !== true && hasOutboundReplyContent(payload, { trimText: true })) markInboundDedupeReplayUnsafe();
|
|
1551
|
-
if (suppressDelivery) return;
|
|
1552
|
-
if (payload.isReasoning === true) return;
|
|
1553
|
-
const isStatusNotice = isReplyPayloadStatusNotice(payload);
|
|
1554
|
-
if (payload.text && !isStatusNotice) {
|
|
1555
|
-
const joinsBufferedTtsDirective = cleanBlockTtsDirectiveText?.hasBufferedDirectiveText() === true;
|
|
1556
|
-
if (accumulatedBlockText.length > 0) accumulatedBlockText += "\n";
|
|
1557
|
-
accumulatedBlockText += payload.text;
|
|
1558
|
-
if (accumulatedBlockTtsText.length > 0 && !joinsBufferedTtsDirective) accumulatedBlockTtsText += "\n";
|
|
1559
|
-
accumulatedBlockTtsText += payload.text;
|
|
1560
|
-
blockCount++;
|
|
1561
|
-
}
|
|
1562
|
-
const visiblePayload = payload.text && cleanBlockTtsDirectiveText && !isStatusNotice ? (() => {
|
|
1563
|
-
const text = cleanBlockTtsDirectiveText.push(payload.text);
|
|
1564
|
-
return {
|
|
1565
|
-
...payload,
|
|
1566
|
-
text: text.trim() ? text : void 0
|
|
1567
|
-
};
|
|
1568
|
-
})() : payload;
|
|
1569
|
-
if (!hasOutboundReplyContent(visiblePayload, { trimText: true })) return;
|
|
1570
|
-
const payloadMetadata = getReplyPayloadMetadata(payload);
|
|
1571
|
-
const queuedContext = payloadMetadata?.assistantMessageIndex !== void 0 ? {
|
|
1572
|
-
...context,
|
|
1573
|
-
assistantMessageIndex: payloadMetadata.assistantMessageIndex
|
|
1574
|
-
} : context;
|
|
1575
|
-
if (!suppressAutomaticSourceDelivery) await params.replyOptions?.onBlockReplyQueued?.(visiblePayload, queuedContext);
|
|
1576
|
-
if (isDispatchOperationAborted()) return;
|
|
1577
|
-
const normalizedPayload = await normalizeReplyMediaPayload(await maybeApplyTtsToReplyPayload({
|
|
1578
|
-
payload: visiblePayload,
|
|
1579
|
-
cfg,
|
|
1580
|
-
channel: deliveryChannel,
|
|
1581
|
-
kind: "block",
|
|
1582
|
-
inboundAudio,
|
|
1583
|
-
ttsAuto: sessionTtsAuto,
|
|
1584
|
-
agentId: sessionAgentId,
|
|
1585
|
-
accountId: replyRoute.accountId
|
|
1586
|
-
}));
|
|
1587
|
-
if (isDispatchOperationAborted()) return;
|
|
1588
|
-
if (shouldRouteToOriginating) await sendPayloadAsync(normalizedPayload, context?.abortSignal, false, "block");
|
|
1589
|
-
else {
|
|
1590
|
-
markInboundDedupeReplayUnsafe();
|
|
1591
|
-
if (dispatcher.sendBlockReply(normalizedPayload)) hasPendingDirectBlockReplyDelivery = true;
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
|
-
return run();
|
|
1595
|
-
}
|
|
1596
|
-
}, replyConfig)));
|
|
1597
|
-
if ((await ensureDispatchReplyOperation("dispatch")).status === "busy") return finishReplyOperationBusyDispatch({ recordAgentDispatchCompleted: true });
|
|
1598
|
-
if (ctx.AcpDispatchTailAfterReset === true) {
|
|
1599
|
-
ctx.AcpDispatchTailAfterReset = false;
|
|
1600
|
-
if (hookRunner?.hasHooks("reply_dispatch")) {
|
|
1601
|
-
const tailDispatchResult = await runWithDispatchAbortSignal(getDispatchAbortSignal(), () => hookRunner.runReplyDispatch(createReplyDispatchEvent({
|
|
1602
|
-
ctx,
|
|
1603
|
-
runId: params.replyOptions?.runId,
|
|
1604
|
-
sessionKey: acpDispatchSessionKey,
|
|
1605
|
-
images: params.replyOptions?.images,
|
|
1606
|
-
inboundAudio,
|
|
1607
|
-
sessionTtsAuto,
|
|
1608
|
-
ttsChannel: deliveryChannel,
|
|
1609
|
-
suppressUserDelivery: suppressHookUserDelivery,
|
|
1610
|
-
suppressReplyLifecycle: suppressHookReplyLifecycle,
|
|
1611
|
-
sourceReplyDeliveryMode,
|
|
1612
|
-
shouldRouteToOriginating,
|
|
1613
|
-
originatingChannel: routeReplyChannel,
|
|
1614
|
-
originatingTo: routeReplyTo,
|
|
1615
|
-
shouldSendToolSummaries,
|
|
1616
|
-
sendPolicy,
|
|
1617
|
-
isTailDispatch: true
|
|
1618
|
-
}), {
|
|
1619
|
-
cfg,
|
|
1620
|
-
dispatcher: dispatchHookDispatcher,
|
|
1621
|
-
abortSignal: getPreDispatchAbortSignal() ?? params.replyOptions?.abortSignal,
|
|
1622
|
-
onReplyStart: params.replyOptions?.onReplyStart,
|
|
1623
|
-
recordProcessed,
|
|
1624
|
-
markIdle
|
|
1625
|
-
}));
|
|
1626
|
-
if (tailDispatchResult?.handled) {
|
|
1627
|
-
recordAgentDispatchCompleted("completed");
|
|
1628
|
-
completeDispatchReplyOperation();
|
|
1629
|
-
return attachSourceReplyDeliveryMode({
|
|
1630
|
-
queuedFinal: tailDispatchResult.queuedFinal,
|
|
1631
|
-
counts: tailDispatchResult.counts
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
const replies = replyResult ? Array.isArray(replyResult) ? replyResult : [replyResult] : [];
|
|
1637
|
-
const beforeAgentRunBlocked = replies.some((reply) => getReplyPayloadMetadata(reply)?.beforeAgentRunBlocked === true);
|
|
1638
|
-
let queuedFinal = false;
|
|
1639
|
-
let routedFinalCount = 0;
|
|
1640
|
-
let attemptedFinalDelivery = false;
|
|
1641
|
-
let finalDeliveryFailed = false;
|
|
1642
|
-
const explicitCommandTurnCtx = isExplicitSourceReplyCommand(ctx, cfg);
|
|
1643
|
-
const shouldDeliverDespiteSourceReplySuppression = (reply) => suppressAutomaticSourceDelivery && !sendPolicyDenied && getReplyPayloadMetadata(reply)?.deliverDespiteSourceReplySuppression === true && (ctx.InboundEventKind !== "room_event" || explicitCommandTurnCtx);
|
|
1644
|
-
for (const reply of replies) {
|
|
1645
|
-
throwIfDispatchOperationAborted();
|
|
1646
|
-
if (reply.isReasoning === true) continue;
|
|
1647
|
-
if (suppressDelivery && !shouldDeliverDespiteSourceReplySuppression(reply)) {
|
|
1648
|
-
if (hasOutboundReplyContent(reply, { trimText: true })) logVerbose([
|
|
1649
|
-
`dispatch-from-config: final reply suppressed by ${deliverySuppressionReason || "source delivery policy"}`,
|
|
1650
|
-
`(session=${acpDispatchSessionKey ?? sessionKey ?? "unknown"}`,
|
|
1651
|
-
`provider=${ctx.Provider ?? "unknown"}`,
|
|
1652
|
-
`surface=${ctx.Surface ?? "unknown"}`,
|
|
1653
|
-
`chatType=${chatType ?? "unknown"}`,
|
|
1654
|
-
`inboundEventKind=${ctx.InboundEventKind ?? "unknown"}`,
|
|
1655
|
-
`message=${ctx.MessageSidFull ?? ctx.MessageSid ?? "unknown"}`,
|
|
1656
|
-
`${formatSuppressedReplyPayloadForLog(reply)})`
|
|
1657
|
-
].join(" "));
|
|
1658
|
-
continue;
|
|
1659
|
-
}
|
|
1660
|
-
attemptedFinalDelivery = true;
|
|
1661
|
-
const finalReply = await sendFinalPayload(reply);
|
|
1662
|
-
queuedFinal = finalReply.queuedFinal || queuedFinal;
|
|
1663
|
-
routedFinalCount += finalReply.routedFinalCount;
|
|
1664
|
-
if (!finalReply.queuedFinal && finalReply.routedFinalCount === 0) finalDeliveryFailed = true;
|
|
1665
|
-
}
|
|
1666
|
-
if (attemptedFinalDelivery && !finalDeliveryFailed) {
|
|
1667
|
-
throwIfDispatchOperationAborted();
|
|
1668
|
-
await clearPendingFinalDeliveryAfterSuccess({
|
|
1669
|
-
storePath: sessionStoreEntry.storePath,
|
|
1670
|
-
sessionKey: sessionStoreEntry.sessionKey ?? sessionKey
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
if (!suppressDelivery) {
|
|
1674
|
-
if (resolveConfiguredTtsMode(cfg, {
|
|
1675
|
-
agentId: sessionAgentId,
|
|
1676
|
-
channelId: deliveryChannel,
|
|
1677
|
-
accountId: replyRoute.accountId
|
|
1678
|
-
}) === "final" && replies.length === 0 && blockCount > 0 && accumulatedBlockTtsText.trim()) try {
|
|
1679
|
-
await waitForPendingDirectBlockReplyDelivery(getDispatchAbortSignal());
|
|
1680
|
-
throwIfDispatchOperationAborted();
|
|
1681
|
-
const ttsSyntheticReply = await maybeApplyTtsToReplyPayload({
|
|
1682
|
-
payload: { text: accumulatedBlockTtsText },
|
|
1683
|
-
cfg,
|
|
1684
|
-
channel: deliveryChannel,
|
|
1685
|
-
kind: "final",
|
|
1686
|
-
inboundAudio,
|
|
1687
|
-
ttsAuto: sessionTtsAuto,
|
|
1688
|
-
agentId: sessionAgentId,
|
|
1689
|
-
accountId: replyRoute.accountId
|
|
1690
|
-
});
|
|
1691
|
-
throwIfDispatchOperationAborted();
|
|
1692
|
-
if (ttsSyntheticReply.mediaUrl) {
|
|
1693
|
-
const normalizedTtsOnlyPayload = await normalizeReplyMediaPayload(markReplyPayloadAsTtsSupplement({
|
|
1694
|
-
mediaUrl: ttsSyntheticReply.mediaUrl,
|
|
1695
|
-
audioAsVoice: ttsSyntheticReply.audioAsVoice,
|
|
1696
|
-
spokenText: accumulatedBlockTtsText,
|
|
1697
|
-
trustedLocalMedia: true
|
|
1698
|
-
}, accumulatedBlockTtsText, { visibleTextAlreadyDelivered: true }));
|
|
1699
|
-
throwIfDispatchOperationAborted();
|
|
1700
|
-
const result = await routeReplyToOriginating(normalizedTtsOnlyPayload, {
|
|
1701
|
-
abortSignal: getDispatchAbortSignal(),
|
|
1702
|
-
kind: "final"
|
|
1703
|
-
});
|
|
1704
|
-
if (result) {
|
|
1705
|
-
queuedFinal = result.ok || queuedFinal;
|
|
1706
|
-
if (isRoutedReplyDelivered(result)) routedFinalCount += 1;
|
|
1707
|
-
if (!result.ok) logVerbose(`dispatch-from-config: route-reply (tts-only) failed: ${result.error ?? "unknown error"}`);
|
|
1708
|
-
} else {
|
|
1709
|
-
throwIfDispatchOperationAborted();
|
|
1710
|
-
markInboundDedupeReplayUnsafe();
|
|
1711
|
-
queuedFinal = dispatcher.sendFinalReply(normalizedTtsOnlyPayload) || queuedFinal;
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
} catch (err) {
|
|
1715
|
-
if (isDispatchReplyOperationAbortedError(err)) throw err;
|
|
1716
|
-
logVerbose(`dispatch-from-config: accumulated block TTS failed: ${formatErrorMessage(err)}`);
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
await waitForPendingDirectBlockReplyDelivery(getDispatchAbortSignal());
|
|
1720
|
-
const counts = dispatcher.getQueuedCounts();
|
|
1721
|
-
counts.final += routedFinalCount;
|
|
1722
|
-
commitInboundDedupeIfClaimed();
|
|
1723
|
-
recordAgentDispatchCompleted("completed");
|
|
1724
|
-
recordProcessed("completed", pluginFallbackReason ? { reason: pluginFallbackReason } : void 0);
|
|
1725
|
-
markIdle("message_completed");
|
|
1726
|
-
completeDispatchReplyOperation();
|
|
1727
|
-
return attachSourceReplyDeliveryMode({
|
|
1728
|
-
queuedFinal,
|
|
1729
|
-
counts,
|
|
1730
|
-
...beforeAgentRunBlocked ? { beforeAgentRunBlocked } : {}
|
|
1731
|
-
});
|
|
1732
|
-
} catch (err) {
|
|
1733
|
-
if (isDispatchReplyOperationAbortedError(err)) return finishReplyOperationAbortedDispatch();
|
|
1734
|
-
if (inboundDedupeClaim.status === "claimed") if (inboundDedupeReplayUnsafe) commitInboundDedupe(inboundDedupeClaim.key);
|
|
1735
|
-
else releaseInboundDedupe(inboundDedupeClaim.key);
|
|
1736
|
-
recordAgentDispatchCompleted("error", { error: String(err) });
|
|
1737
|
-
recordProcessed("error", { error: String(err) });
|
|
1738
|
-
markIdle("message_error");
|
|
1739
|
-
failDispatchReplyOperation(err);
|
|
1740
|
-
throw err;
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
//#endregion
|
|
1744
|
-
//#region src/auto-reply/dispatch.ts
|
|
1745
|
-
const foregroundReplyFenceByKey = /* @__PURE__ */ new Map();
|
|
1746
|
-
const replyPayloadSendingDispatchers = /* @__PURE__ */ new WeakSet();
|
|
1747
|
-
function normalizeForegroundReplyFencePart(value) {
|
|
1748
|
-
if (typeof value !== "string") return;
|
|
1749
|
-
const trimmed = value.trim();
|
|
1750
|
-
return trimmed.length > 0 ? trimmed : void 0;
|
|
1751
|
-
}
|
|
1752
|
-
function resolveForegroundReplyFenceKey(finalized) {
|
|
1753
|
-
const sessionKey = normalizeForegroundReplyFencePart(finalized.SessionKey);
|
|
1754
|
-
const channel = normalizeForegroundReplyFencePart(finalized.OriginatingChannel) ?? normalizeForegroundReplyFencePart(finalized.Surface) ?? normalizeForegroundReplyFencePart(finalized.Provider);
|
|
1755
|
-
const target = normalizeForegroundReplyFencePart(finalized.OriginatingTo) ?? normalizeForegroundReplyFencePart(finalized.NativeChannelId) ?? normalizeForegroundReplyFencePart(finalized.From) ?? normalizeForegroundReplyFencePart(finalized.To);
|
|
1756
|
-
if (!sessionKey || !channel || !target) return;
|
|
1757
|
-
return JSON.stringify([
|
|
1758
|
-
"foreground",
|
|
1759
|
-
channel,
|
|
1760
|
-
normalizeForegroundReplyFencePart(finalized.AccountId) ?? "default",
|
|
1761
|
-
sessionKey,
|
|
1762
|
-
normalizeChatType(finalized.ChatType) ?? "unknown",
|
|
1763
|
-
target
|
|
1764
|
-
]);
|
|
1765
|
-
}
|
|
1766
|
-
function beginForegroundReplyFence(finalized) {
|
|
1767
|
-
const key = resolveForegroundReplyFenceKey(finalized);
|
|
1768
|
-
if (!key) return;
|
|
1769
|
-
const state = foregroundReplyFenceByKey.get(key) ?? {
|
|
1770
|
-
generation: 0,
|
|
1771
|
-
visibleDeliveryGeneration: 0,
|
|
1772
|
-
activeDispatches: 0,
|
|
1773
|
-
activeGenerations: /* @__PURE__ */ new Map(),
|
|
1774
|
-
waiters: /* @__PURE__ */ new Set()
|
|
1775
|
-
};
|
|
1776
|
-
state.generation += 1;
|
|
1777
|
-
state.activeDispatches += 1;
|
|
1778
|
-
state.activeGenerations.set(state.generation, (state.activeGenerations.get(state.generation) ?? 0) + 1);
|
|
1779
|
-
foregroundReplyFenceByKey.set(key, state);
|
|
1780
|
-
return {
|
|
1781
|
-
key,
|
|
1782
|
-
generation: state.generation
|
|
1783
|
-
};
|
|
1784
|
-
}
|
|
1785
|
-
function notifyForegroundReplyFenceWaiters(state) {
|
|
1786
|
-
const waiters = [...state.waiters];
|
|
1787
|
-
state.waiters.clear();
|
|
1788
|
-
for (const resolve of waiters) resolve();
|
|
1789
|
-
}
|
|
1790
|
-
function hasNewerActiveForegroundReplyFenceGeneration(state, generation) {
|
|
1791
|
-
for (const [activeGeneration, count] of state.activeGenerations) if (activeGeneration > generation && count > 0) return true;
|
|
1792
|
-
return false;
|
|
1793
|
-
}
|
|
1794
|
-
async function shouldCancelForegroundReplyDelivery(snapshot) {
|
|
1795
|
-
if (!snapshot) return false;
|
|
1796
|
-
while (true) {
|
|
1797
|
-
const state = foregroundReplyFenceByKey.get(snapshot.key);
|
|
1798
|
-
if (!state) return false;
|
|
1799
|
-
if (state.visibleDeliveryGeneration > snapshot.generation) return true;
|
|
1800
|
-
if (!hasNewerActiveForegroundReplyFenceGeneration(state, snapshot.generation)) return false;
|
|
1801
|
-
await new Promise((resolve) => {
|
|
1802
|
-
state.waiters.add(resolve);
|
|
1803
|
-
});
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
function markForegroundReplyFenceVisibleDelivery(snapshot, payload, deliveryResult) {
|
|
1807
|
-
if (!snapshot || !hasOutboundReplyContent(payload, { trimText: true })) return;
|
|
1808
|
-
if (isExplicitlyNonVisibleDelivery(deliveryResult)) return;
|
|
1809
|
-
markForegroundReplyFenceVisibleDeliveryGeneration(snapshot);
|
|
1810
|
-
}
|
|
1811
|
-
function markForegroundReplyFenceVisibleDeliveryGeneration(snapshot) {
|
|
1812
|
-
if (!snapshot) return;
|
|
1813
|
-
const state = foregroundReplyFenceByKey.get(snapshot.key);
|
|
1814
|
-
if (!state) return;
|
|
1815
|
-
state.visibleDeliveryGeneration = Math.max(state.visibleDeliveryGeneration, snapshot.generation);
|
|
1816
|
-
notifyForegroundReplyFenceWaiters(state);
|
|
1817
|
-
}
|
|
1818
|
-
function isExplicitlyNonVisibleDelivery(deliveryResult) {
|
|
1819
|
-
return typeof deliveryResult === "object" && deliveryResult !== null && !Array.isArray(deliveryResult) && "visibleReplySent" in deliveryResult && deliveryResult.visibleReplySent === false;
|
|
1820
|
-
}
|
|
1821
|
-
function isExplicitlyVisibleDelivery(deliveryResult) {
|
|
1822
|
-
return typeof deliveryResult === "object" && deliveryResult !== null && !Array.isArray(deliveryResult) && deliveryResult.visibleReplySent === true;
|
|
1823
|
-
}
|
|
1824
|
-
function isVisiblePartialDeliveryError(error) {
|
|
1825
|
-
if (isOutboundDeliveryError(error)) return error.sentBeforeError;
|
|
1826
|
-
return typeof error === "object" && error !== null && !Array.isArray(error) && (error.visibleReplySent === true || error.sentBeforeError === true);
|
|
1827
|
-
}
|
|
1828
|
-
async function runForegroundReplyFenceFreshSettledDelivery(snapshot, onFreshSettledDelivery) {
|
|
1829
|
-
if (!onFreshSettledDelivery) return;
|
|
1830
|
-
if (await shouldCancelForegroundReplyDelivery(snapshot)) return;
|
|
1831
|
-
try {
|
|
1832
|
-
if (isExplicitlyVisibleDelivery(await onFreshSettledDelivery())) markForegroundReplyFenceVisibleDeliveryGeneration(snapshot);
|
|
1833
|
-
} catch (err) {
|
|
1834
|
-
if (isVisiblePartialDeliveryError(err)) markForegroundReplyFenceVisibleDeliveryGeneration(snapshot);
|
|
1835
|
-
throw err;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
function endForegroundReplyFence(snapshot) {
|
|
1839
|
-
const state = foregroundReplyFenceByKey.get(snapshot.key);
|
|
1840
|
-
if (!state) return;
|
|
1841
|
-
const activeGenerationCount = state.activeGenerations.get(snapshot.generation) ?? 0;
|
|
1842
|
-
if (activeGenerationCount <= 1) state.activeGenerations.delete(snapshot.generation);
|
|
1843
|
-
else state.activeGenerations.set(snapshot.generation, activeGenerationCount - 1);
|
|
1844
|
-
state.activeDispatches -= 1;
|
|
1845
|
-
notifyForegroundReplyFenceWaiters(state);
|
|
1846
|
-
if (state.activeDispatches <= 0) foregroundReplyFenceByKey.delete(snapshot.key);
|
|
1847
|
-
}
|
|
1848
|
-
function resolveDispatcherSilentReplyContext(ctx, cfg) {
|
|
1849
|
-
const finalized = finalizeInboundContext(ctx);
|
|
1850
|
-
const commandTargetSessionKey = resolveCommandTurnTargetSessionKey(finalized);
|
|
1851
|
-
const policySessionKey = commandTargetSessionKey ?? finalized.SessionKey;
|
|
1852
|
-
const chatType = normalizeChatType(finalized.ChatType);
|
|
1853
|
-
const conversationType = commandTargetSessionKey && commandTargetSessionKey !== finalized.SessionKey ? void 0 : chatType === "direct" ? "direct" : chatType === "group" || chatType === "channel" ? "group" : void 0;
|
|
1854
|
-
return {
|
|
1855
|
-
cfg,
|
|
1856
|
-
sessionKey: policySessionKey,
|
|
1857
|
-
surface: finalized.Surface ?? finalized.Provider,
|
|
1858
|
-
conversationType
|
|
1859
|
-
};
|
|
1860
|
-
}
|
|
1861
|
-
function resolveInboundReplyHookTarget(finalized, hookCtx) {
|
|
1862
|
-
if (typeof finalized.OriginatingTo === "string" && finalized.OriginatingTo.trim()) return finalized.OriginatingTo;
|
|
1863
|
-
if (hookCtx.isGroup) return hookCtx.conversationId ?? hookCtx.to ?? hookCtx.from;
|
|
1864
|
-
return hookCtx.from || hookCtx.conversationId || hookCtx.to || "";
|
|
1865
|
-
}
|
|
1866
|
-
function buildMessageSendingBeforeDeliver(ctx) {
|
|
1867
|
-
const hookRunner = getGlobalHookRunner();
|
|
1868
|
-
if (!hookRunner?.hasHooks("message_sending")) return;
|
|
1869
|
-
const finalized = finalizeInboundContext(ctx);
|
|
1870
|
-
const hookCtx = deriveInboundMessageHookContext(finalized);
|
|
1871
|
-
const replyTarget = resolveInboundReplyHookTarget(finalized, hookCtx);
|
|
1872
|
-
return async (payload) => {
|
|
1873
|
-
if (!payload.text) return payload;
|
|
1874
|
-
const result = await hookRunner.runMessageSending({
|
|
1875
|
-
content: payload.text,
|
|
1876
|
-
to: replyTarget
|
|
1877
|
-
}, toPluginMessageContext(hookCtx));
|
|
1878
|
-
if (result?.cancel) return null;
|
|
1879
|
-
if (result?.content != null) return {
|
|
1880
|
-
...payload,
|
|
1881
|
-
text: result.content
|
|
1882
|
-
};
|
|
1883
|
-
return payload;
|
|
1884
|
-
};
|
|
1885
|
-
}
|
|
1886
|
-
function buildReplyPayloadSendingBeforeDeliver(ctx, opts) {
|
|
1887
|
-
const finalized = finalizeInboundContext(ctx);
|
|
1888
|
-
const hookCtx = deriveInboundMessageHookContext(finalized);
|
|
1889
|
-
return async (payload, info) => {
|
|
1890
|
-
const hookedPayload = await runReplyPayloadSendingHook({
|
|
1891
|
-
payload,
|
|
1892
|
-
kind: info.kind,
|
|
1893
|
-
channel: finalized.Surface ?? finalized.Provider,
|
|
1894
|
-
sessionKey: finalized.SessionKey,
|
|
1895
|
-
runId: opts?.runId,
|
|
1896
|
-
context: {
|
|
1897
|
-
...toPluginMessageContext(hookCtx),
|
|
1898
|
-
runId: opts?.runId
|
|
1899
|
-
}
|
|
1900
|
-
});
|
|
1901
|
-
return hookedPayload && hasOutboundReplyContent(hookedPayload) ? hookedPayload : null;
|
|
1902
|
-
};
|
|
1903
|
-
}
|
|
1904
|
-
function installReplyPayloadSendingBeforeDeliver(dispatcher, ctx, opts) {
|
|
1905
|
-
if (replyPayloadSendingDispatchers.has(dispatcher)) return;
|
|
1906
|
-
const beforeDeliver = buildReplyPayloadSendingBeforeDeliver(ctx, opts);
|
|
1907
|
-
if (!beforeDeliver || !dispatcher.appendBeforeDeliver) return;
|
|
1908
|
-
dispatcher.appendBeforeDeliver(beforeDeliver);
|
|
1909
|
-
replyPayloadSendingDispatchers.add(dispatcher);
|
|
1910
|
-
}
|
|
1911
|
-
function markReplyPayloadSendingBeforeDeliverInstalled(dispatcher, beforeDeliver) {
|
|
1912
|
-
if (beforeDeliver) replyPayloadSendingDispatchers.add(dispatcher);
|
|
1913
|
-
}
|
|
1914
|
-
function combineBeforeDeliverHooks(...hooks) {
|
|
1915
|
-
const activeHooks = hooks.filter((hook) => Boolean(hook));
|
|
1916
|
-
if (activeHooks.length === 0) return;
|
|
1917
|
-
return async (payload, info) => {
|
|
1918
|
-
let current = payload;
|
|
1919
|
-
for (const hook of activeHooks) {
|
|
1920
|
-
if (!current) return null;
|
|
1921
|
-
current = await hook(current, info);
|
|
1922
|
-
}
|
|
1923
|
-
return current;
|
|
1924
|
-
};
|
|
1925
|
-
}
|
|
1926
|
-
function buildDispatchTimelineAttributes(ctx) {
|
|
1927
|
-
const commandTurn = resolveCommandTurnContext(ctx);
|
|
1928
|
-
return {
|
|
1929
|
-
surface: typeof ctx.Surface === "string" ? ctx.Surface : typeof ctx.Provider === "string" ? ctx.Provider : "unknown",
|
|
1930
|
-
hasSessionKey: typeof ctx.SessionKey === "string" || typeof ctx.CommandTargetSessionKey === "string",
|
|
1931
|
-
commandSource: commandTurn.source
|
|
1932
|
-
};
|
|
1933
|
-
}
|
|
1934
|
-
function finalizeDispatchResult(result, dispatcher) {
|
|
1935
|
-
const cancelledCounts = dispatcher.getCancelledCounts?.();
|
|
1936
|
-
const failedCounts = dispatcher.getFailedCounts?.();
|
|
1937
|
-
if (!cancelledCounts && !failedCounts) return result;
|
|
1938
|
-
const resultCounts = {
|
|
1939
|
-
tool: result.counts?.tool ?? 0,
|
|
1940
|
-
block: result.counts?.block ?? 0,
|
|
1941
|
-
final: result.counts?.final ?? 0
|
|
1942
|
-
};
|
|
1943
|
-
const counts = {
|
|
1944
|
-
tool: Math.max(0, resultCounts.tool - (cancelledCounts?.tool ?? 0) - (failedCounts?.tool ?? 0)),
|
|
1945
|
-
block: Math.max(0, resultCounts.block - (cancelledCounts?.block ?? 0) - (failedCounts?.block ?? 0)),
|
|
1946
|
-
final: Math.max(0, resultCounts.final - (cancelledCounts?.final ?? 0) - (failedCounts?.final ?? 0))
|
|
1947
|
-
};
|
|
1948
|
-
const hasFailedCounts = (failedCounts?.tool ?? 0) > 0 || (failedCounts?.block ?? 0) > 0 || (failedCounts?.final ?? 0) > 0;
|
|
1949
|
-
return {
|
|
1950
|
-
...result,
|
|
1951
|
-
queuedFinal: result.queuedFinal && counts.final > 0,
|
|
1952
|
-
counts,
|
|
1953
|
-
...hasFailedCounts ? { failedCounts } : {}
|
|
1954
|
-
};
|
|
1955
|
-
}
|
|
1956
|
-
async function dispatchInboundMessage(params) {
|
|
1957
|
-
const finalized = measureDiagnosticsTimelineSpanSync("auto_reply.finalize_context", () => finalizeInboundContext(params.ctx), {
|
|
1958
|
-
phase: "agent-turn",
|
|
1959
|
-
config: params.cfg,
|
|
1960
|
-
attributes: buildDispatchTimelineAttributes(params.ctx)
|
|
1961
|
-
});
|
|
1962
|
-
if (isDiagnosticsEnabled(params.cfg)) logMessageReceived({
|
|
1963
|
-
sessionKey: finalized.SessionKey,
|
|
1964
|
-
channel: finalized.Surface ?? finalized.Provider,
|
|
1965
|
-
chatId: finalized.To ?? finalized.From,
|
|
1966
|
-
messageId: finalized.MessageSid ?? finalized.MessageSidFirst ?? finalized.MessageSidLast,
|
|
1967
|
-
source: "dispatchInboundMessage"
|
|
1968
|
-
});
|
|
1969
|
-
installReplyPayloadSendingBeforeDeliver(params.dispatcher, finalized, { runId: params.replyOptions?.runId });
|
|
1970
|
-
return finalizeDispatchResult(await withReplyDispatcher({
|
|
1971
|
-
dispatcher: params.dispatcher,
|
|
1972
|
-
run: () => measureDiagnosticsTimelineSpan("auto_reply.dispatch_reply_from_config", () => dispatchReplyFromConfig({
|
|
1973
|
-
ctx: finalized,
|
|
1974
|
-
cfg: params.cfg,
|
|
1975
|
-
dispatcher: params.dispatcher,
|
|
1976
|
-
replyOptions: params.replyOptions,
|
|
1977
|
-
replyResolver: params.replyResolver
|
|
1978
|
-
}), {
|
|
1979
|
-
phase: "agent-turn",
|
|
1980
|
-
config: params.cfg,
|
|
1981
|
-
attributes: buildDispatchTimelineAttributes(finalized)
|
|
1982
|
-
})
|
|
1983
|
-
}), params.dispatcher);
|
|
1984
|
-
}
|
|
1985
|
-
async function dispatchInboundMessageWithBufferedDispatcher(params) {
|
|
1986
|
-
const finalized = finalizeInboundContext(params.ctx);
|
|
1987
|
-
const foregroundReplyFence = beginForegroundReplyFence(finalized);
|
|
1988
|
-
const silentReplyContext = resolveDispatcherSilentReplyContext(finalized, params.cfg);
|
|
1989
|
-
const replyPayloadBeforeDeliver = buildReplyPayloadSendingBeforeDeliver(finalized, { runId: params.replyOptions?.runId });
|
|
1990
|
-
const globalBeforeDeliver = combineBeforeDeliverHooks(replyPayloadBeforeDeliver, buildMessageSendingBeforeDeliver(finalized));
|
|
1991
|
-
const configuredBeforeDeliver = params.dispatcherOptions.beforeDeliver ? combineBeforeDeliverHooks(params.dispatcherOptions.beforeDeliver, replyPayloadBeforeDeliver) : globalBeforeDeliver;
|
|
1992
|
-
const beforeDeliver = foregroundReplyFence || configuredBeforeDeliver ? async (payload, info) => {
|
|
1993
|
-
if (await shouldCancelForegroundReplyDelivery(foregroundReplyFence)) return null;
|
|
1994
|
-
const deliverPayload = configuredBeforeDeliver ? await configuredBeforeDeliver(payload, info) : payload;
|
|
1995
|
-
if (!deliverPayload || await shouldCancelForegroundReplyDelivery(foregroundReplyFence)) return null;
|
|
1996
|
-
return deliverPayload;
|
|
1997
|
-
} : void 0;
|
|
1998
|
-
const deliver = async (payload, info) => {
|
|
1999
|
-
try {
|
|
2000
|
-
const result = await params.dispatcherOptions.deliver(payload, info);
|
|
2001
|
-
markForegroundReplyFenceVisibleDelivery(foregroundReplyFence, payload, result);
|
|
2002
|
-
return result;
|
|
2003
|
-
} catch (err) {
|
|
2004
|
-
if (isVisiblePartialDeliveryError(err)) markForegroundReplyFenceVisibleDelivery(foregroundReplyFence, payload, { visibleReplySent: true });
|
|
2005
|
-
throw err;
|
|
2006
|
-
}
|
|
2007
|
-
};
|
|
2008
|
-
const { dispatcher, replyOptions, markDispatchIdle, markRunComplete } = createReplyDispatcherWithTyping({
|
|
2009
|
-
...params.dispatcherOptions,
|
|
2010
|
-
deliver,
|
|
2011
|
-
beforeDeliver,
|
|
2012
|
-
silentReplyContext: params.dispatcherOptions.silentReplyContext ?? silentReplyContext
|
|
2013
|
-
});
|
|
2014
|
-
markReplyPayloadSendingBeforeDeliverInstalled(dispatcher, replyPayloadBeforeDeliver);
|
|
2015
|
-
try {
|
|
2016
|
-
return await dispatchInboundMessage({
|
|
2017
|
-
ctx: finalized,
|
|
2018
|
-
cfg: params.cfg,
|
|
2019
|
-
dispatcher,
|
|
2020
|
-
replyResolver: params.replyResolver,
|
|
2021
|
-
replyOptions: {
|
|
2022
|
-
...params.replyOptions,
|
|
2023
|
-
...replyOptions
|
|
2024
|
-
}
|
|
2025
|
-
});
|
|
2026
|
-
} finally {
|
|
2027
|
-
try {
|
|
2028
|
-
if (isExplicitlyVisibleDelivery(await params.dispatcherOptions.onSettled?.())) markForegroundReplyFenceVisibleDeliveryGeneration(foregroundReplyFence);
|
|
2029
|
-
await runForegroundReplyFenceFreshSettledDelivery(foregroundReplyFence, params.dispatcherOptions.onFreshSettledDelivery);
|
|
2030
|
-
} finally {
|
|
2031
|
-
if (foregroundReplyFence) endForegroundReplyFence(foregroundReplyFence);
|
|
2032
|
-
markRunComplete();
|
|
2033
|
-
markDispatchIdle();
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
async function dispatchInboundMessageWithDispatcher(params) {
|
|
2038
|
-
const silentReplyContext = resolveDispatcherSilentReplyContext(params.ctx, params.cfg);
|
|
2039
|
-
const replyPayloadBeforeDeliver = buildReplyPayloadSendingBeforeDeliver(params.ctx, { runId: params.replyOptions?.runId });
|
|
2040
|
-
const globalBeforeDeliver = combineBeforeDeliverHooks(replyPayloadBeforeDeliver, buildMessageSendingBeforeDeliver(params.ctx));
|
|
2041
|
-
const composedBeforeDeliver = params.dispatcherOptions.beforeDeliver ? combineBeforeDeliverHooks(params.dispatcherOptions.beforeDeliver, replyPayloadBeforeDeliver) : globalBeforeDeliver;
|
|
2042
|
-
const dispatcher = createReplyDispatcher({
|
|
2043
|
-
...params.dispatcherOptions,
|
|
2044
|
-
beforeDeliver: composedBeforeDeliver,
|
|
2045
|
-
silentReplyContext: params.dispatcherOptions.silentReplyContext ?? silentReplyContext
|
|
2046
|
-
});
|
|
2047
|
-
markReplyPayloadSendingBeforeDeliverInstalled(dispatcher, replyPayloadBeforeDeliver);
|
|
2048
|
-
return await dispatchInboundMessage({
|
|
2049
|
-
ctx: params.ctx,
|
|
2050
|
-
cfg: params.cfg,
|
|
2051
|
-
dispatcher,
|
|
2052
|
-
replyResolver: params.replyResolver,
|
|
2053
|
-
replyOptions: params.replyOptions
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
//#endregion
|
|
2057
|
-
export { settleReplyDispatcher as a, dispatchReplyFromConfig as i, dispatchInboundMessageWithBufferedDispatcher as n, withReplyDispatcher as o, dispatchInboundMessageWithDispatcher as r, dispatchInboundMessage as t };
|