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
|
@@ -0,0 +1,2309 @@
|
|
|
1
|
+
import { a as normalizeLowercaseStringOrEmpty, c as normalizeOptionalString, s as normalizeOptionalLowercaseString } from "./string-coerce-DKw2K5wM.js";
|
|
2
|
+
import { _ as parseStrictPositiveInteger } from "./number-coercion-D1aDmIZp.js";
|
|
3
|
+
import { y as resolveStateDir } from "./paths-9MqJt9oL.js";
|
|
4
|
+
import { t as formatDocsLink } from "./links-CgdQazeA.js";
|
|
5
|
+
import { s as hasConfiguredSecretInput } from "./types.secrets-Z7uJY7vF.js";
|
|
6
|
+
import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./account-id-B0YIFDpA.js";
|
|
7
|
+
import { l as normalizeAgentId } from "./session-key-CJf5_zWs.js";
|
|
8
|
+
import { At as boolean, Et as array, Nn as record, Rn as string, Tn as object, Xn as union, Zn as unknown, dn as literal, wn as number, yt as _enum } from "./schemas-CjJwTzTb.js";
|
|
9
|
+
import { n as ZodIssueCode } from "./compat-Bgx3pUs9.js";
|
|
10
|
+
import { r as buildChannelConfigSchema } from "./config-schema-CbYyd1Ys.js";
|
|
11
|
+
import { i as resolveSessionFilePath, u as resolveStorePath } from "./paths-C79m3Aob.js";
|
|
12
|
+
import { d as updateSessionStore } from "./store-BfSa-Tzr.js";
|
|
13
|
+
import { n as getSessionBindingService } from "./session-binding-service-BjjMIxQb.js";
|
|
14
|
+
import { l as normalizeMessagePresentation } from "./payload-Cpx3heIy.js";
|
|
15
|
+
import { i as createLazyRuntimeNamedExport } from "./lazy-runtime-D-7_JraP.js";
|
|
16
|
+
import { i as createActionGate } from "./common-CoOYhmSg.js";
|
|
17
|
+
import { i as createHybridChannelConfigAdapter, t as adaptScopedAccountAccessor } from "./channel-config-helpers-DRhB8UDj.js";
|
|
18
|
+
import "./number-runtime-Cu8gqEYx.js";
|
|
19
|
+
import "./string-coerce-runtime-BurriTLB.js";
|
|
20
|
+
import { t as chunkTextForOutbound } from "./text-chunking-CxulW3mV.js";
|
|
21
|
+
import { t as formatAllowFromLowercase } from "./allow-from-D9EKO1Ew.js";
|
|
22
|
+
import { E as projectConfigAccountIdWarningCollector, g as createAllowlistProviderGroupPolicyWarningCollector } from "./channel-policy-DhNKPj2M.js";
|
|
23
|
+
import { t as createChannelDirectoryAdapter } from "./directory-runtime-tNFkacH3.js";
|
|
24
|
+
import { n as createRuntimeOutboundDelegates, t as createRuntimeDirectoryLiveAdapter } from "./runtime-forwarders-CJHIfxll.js";
|
|
25
|
+
import { i as createChatChannelPlugin, t as buildChannelOutboundSessionRoute, u as stripChannelTargetPrefix } from "./core-Bslrvfnp.js";
|
|
26
|
+
import "./routing-C_-TU0OJ.js";
|
|
27
|
+
import { t as createSetupTranslator } from "./i18n-B2NGlG0C.js";
|
|
28
|
+
import { D as patchTopLevelChannelConfigSection, P as promptSingleChannelSecretInput, Q as splitSetupEntries, v as mergeAllowFromEntries } from "./setup-wizard-helpers-3IY5iIHW.js";
|
|
29
|
+
import "./setup-Da_9ELbV.js";
|
|
30
|
+
import { t as resolveApprovalApprovers } from "./approval-approvers-DngDfOqq.js";
|
|
31
|
+
import { t as createResolvedApproverActionAuthAdapter } from "./approval-auth-helpers-DZDuVKe4.js";
|
|
32
|
+
import { S as defineChannelMessageAdapter } from "./channel-outbound-DO4HI6E_.js";
|
|
33
|
+
import "./conversation-runtime-BEgHW4ta.js";
|
|
34
|
+
import { n as describeAccountSnapshot } from "./account-helpers-BSPsbBAx.js";
|
|
35
|
+
import "./account-resolution-BvA1gwmf.js";
|
|
36
|
+
import { t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-CdyV9HGl.js";
|
|
37
|
+
import { d as createDefaultChannelRuntimeState, i as buildProbeChannelStatusSummary, u as createComputedAccountStatusAdapter } from "./status-helpers-BO7Kjlqy.js";
|
|
38
|
+
import "./channel-status-CGihze3B.js";
|
|
39
|
+
import "./channel-config-primitives-C8KsyZ1Q.js";
|
|
40
|
+
import "./channel-actions-hdQKe_se.js";
|
|
41
|
+
import "./channel-core-BLcWqSk-.js";
|
|
42
|
+
import { i as createPairingPrefixStripper } from "./channel-pairing-CCk-Htaa.js";
|
|
43
|
+
import { t as loadSessionStore } from "./session-store-runtime-DkwwbvYX.js";
|
|
44
|
+
import { r as buildSecretInputSchema } from "./secret-input-x6Acx3js.js";
|
|
45
|
+
import "./state-paths-CERdaFAp.js";
|
|
46
|
+
import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-DaD9SG4D.js";
|
|
47
|
+
import { n as looksLikeFeishuId, r as normalizeFeishuTarget } from "./targets-RVqOtwc5.js";
|
|
48
|
+
import { a as resolveDefaultFeishuAccountId, i as listFeishuAccountIds, l as resolveFeishuRuntimeAccount, m as isRecord$1, n as inspectFeishuCredentials, r as listEnabledFeishuAccounts, s as resolveFeishuAccount } from "./accounts-Cyn0sm_v.js";
|
|
49
|
+
import { n as createFeishuSendReceipt } from "./send-result-DMFwBuOl.js";
|
|
50
|
+
import { i as listFeishuDirectoryPeers, r as listFeishuDirectoryGroups, t as buildFeishuPresentationCard } from "./presentation-card-DeAf3jYW.js";
|
|
51
|
+
import { t as messageActionTargetAliases } from "./security-audit-DS3al5fx.js";
|
|
52
|
+
import { s as resolveFeishuGroupToolPolicy } from "./policy-CdIFEDFy.js";
|
|
53
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-qXYOiUB7.js";
|
|
54
|
+
import { t as collectFeishuSecurityAuditFindings } from "./security-audit-shared-BC_jIoy2.js";
|
|
55
|
+
import { t as resolveFeishuSessionConversation } from "./session-conversation-ChO3o_8-.js";
|
|
56
|
+
import fs from "node:fs";
|
|
57
|
+
import path from "node:path";
|
|
58
|
+
import os from "node:os";
|
|
59
|
+
//#region extensions/feishu/src/approval-auth.ts
|
|
60
|
+
function normalizeFeishuApproverId(value) {
|
|
61
|
+
const trimmed = normalizeOptionalLowercaseString(normalizeFeishuTarget(String(value)));
|
|
62
|
+
return trimmed?.startsWith("ou_") ? trimmed : void 0;
|
|
63
|
+
}
|
|
64
|
+
const feishuApprovalAuth = createResolvedApproverActionAuthAdapter({
|
|
65
|
+
channelLabel: "Feishu",
|
|
66
|
+
resolveApprovers: ({ cfg, accountId }) => {
|
|
67
|
+
const account = resolveFeishuAccount({
|
|
68
|
+
cfg,
|
|
69
|
+
accountId
|
|
70
|
+
}).config;
|
|
71
|
+
return resolveApprovalApprovers({
|
|
72
|
+
allowFrom: account.allowFrom,
|
|
73
|
+
normalizeApprover: normalizeFeishuApproverId
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
normalizeSenderId: (value) => normalizeFeishuApproverId(value)
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region extensions/feishu/src/config-schema.ts
|
|
80
|
+
const ChannelActionsSchema = object({ reactions: boolean().optional() }).strict().optional();
|
|
81
|
+
const DmPolicySchema = _enum([
|
|
82
|
+
"open",
|
|
83
|
+
"pairing",
|
|
84
|
+
"allowlist"
|
|
85
|
+
]);
|
|
86
|
+
const GroupPolicySchema = union([_enum([
|
|
87
|
+
"open",
|
|
88
|
+
"allowlist",
|
|
89
|
+
"disabled"
|
|
90
|
+
]), literal("allowall").transform(() => "open")]);
|
|
91
|
+
const FeishuDomainSchema = union([_enum(["feishu", "lark"]), string().url().startsWith("https://")]);
|
|
92
|
+
const FeishuConnectionModeSchema = _enum(["websocket", "webhook"]);
|
|
93
|
+
const TtsOverrideSchema = object({
|
|
94
|
+
auto: _enum([
|
|
95
|
+
"off",
|
|
96
|
+
"always",
|
|
97
|
+
"inbound",
|
|
98
|
+
"tagged"
|
|
99
|
+
]).optional(),
|
|
100
|
+
enabled: boolean().optional(),
|
|
101
|
+
mode: _enum(["final", "all"]).optional(),
|
|
102
|
+
provider: string().optional(),
|
|
103
|
+
persona: string().optional(),
|
|
104
|
+
personas: record(string(), record(string(), unknown())).optional(),
|
|
105
|
+
summaryModel: string().optional(),
|
|
106
|
+
modelOverrides: record(string(), unknown()).optional(),
|
|
107
|
+
providers: record(string(), record(string(), unknown())).optional(),
|
|
108
|
+
prefsPath: string().optional(),
|
|
109
|
+
maxTextLength: number().int().min(1).optional(),
|
|
110
|
+
timeoutMs: number().int().min(1e3).max(12e4).optional()
|
|
111
|
+
}).strict().optional();
|
|
112
|
+
const ToolPolicySchema = object({
|
|
113
|
+
allow: array(string()).optional(),
|
|
114
|
+
deny: array(string()).optional()
|
|
115
|
+
}).strict().optional();
|
|
116
|
+
const DmConfigSchema = object({
|
|
117
|
+
enabled: boolean().optional(),
|
|
118
|
+
systemPrompt: string().optional()
|
|
119
|
+
}).strict().optional();
|
|
120
|
+
const MarkdownConfigSchema = object({
|
|
121
|
+
mode: _enum([
|
|
122
|
+
"native",
|
|
123
|
+
"escape",
|
|
124
|
+
"strip"
|
|
125
|
+
]).optional(),
|
|
126
|
+
tableMode: _enum([
|
|
127
|
+
"native",
|
|
128
|
+
"ascii",
|
|
129
|
+
"simple"
|
|
130
|
+
]).optional()
|
|
131
|
+
}).strict().optional();
|
|
132
|
+
const RenderModeSchema = _enum([
|
|
133
|
+
"auto",
|
|
134
|
+
"raw",
|
|
135
|
+
"card"
|
|
136
|
+
]).optional();
|
|
137
|
+
const StreamingModeSchema = boolean().optional();
|
|
138
|
+
const BlockStreamingSchema = boolean().optional();
|
|
139
|
+
const BlockStreamingCoalesceSchema = object({
|
|
140
|
+
enabled: boolean().optional(),
|
|
141
|
+
minDelayMs: number().int().positive().optional(),
|
|
142
|
+
maxDelayMs: number().int().positive().optional()
|
|
143
|
+
}).strict().optional();
|
|
144
|
+
const ChannelHeartbeatVisibilitySchema = object({
|
|
145
|
+
visibility: _enum(["visible", "hidden"]).optional(),
|
|
146
|
+
intervalMs: number().int().positive().optional()
|
|
147
|
+
}).strict().optional();
|
|
148
|
+
/**
|
|
149
|
+
* Dynamic agent creation configuration.
|
|
150
|
+
* When enabled, a new agent is created for each unique DM user.
|
|
151
|
+
*/
|
|
152
|
+
const DynamicAgentCreationSchema = object({
|
|
153
|
+
enabled: boolean().optional(),
|
|
154
|
+
workspaceTemplate: string().optional(),
|
|
155
|
+
agentDirTemplate: string().optional(),
|
|
156
|
+
maxAgents: number().int().positive().optional()
|
|
157
|
+
}).strict().optional();
|
|
158
|
+
/**
|
|
159
|
+
* Feishu tools configuration.
|
|
160
|
+
* Controls which tool categories are enabled.
|
|
161
|
+
*
|
|
162
|
+
* Dependencies:
|
|
163
|
+
* - wiki requires doc (wiki content is edited via doc tools)
|
|
164
|
+
* - perm can work independently but is typically used with drive
|
|
165
|
+
*/
|
|
166
|
+
const FeishuToolsConfigSchema = object({
|
|
167
|
+
doc: boolean().optional(),
|
|
168
|
+
chat: boolean().optional(),
|
|
169
|
+
wiki: boolean().optional(),
|
|
170
|
+
drive: boolean().optional(),
|
|
171
|
+
perm: boolean().optional(),
|
|
172
|
+
scopes: boolean().optional()
|
|
173
|
+
}).strict().optional();
|
|
174
|
+
/**
|
|
175
|
+
* Group session scope for routing Feishu group messages.
|
|
176
|
+
* - "group" (default): one session per group chat
|
|
177
|
+
* - "group_sender": one session per (group + sender)
|
|
178
|
+
* - "group_topic": one session per group topic thread (falls back to group if no topic)
|
|
179
|
+
* - "group_topic_sender": one session per (group + topic thread + sender),
|
|
180
|
+
* falls back to (group + sender) if no topic
|
|
181
|
+
*/
|
|
182
|
+
const GroupSessionScopeSchema = _enum([
|
|
183
|
+
"group",
|
|
184
|
+
"group_sender",
|
|
185
|
+
"group_topic",
|
|
186
|
+
"group_topic_sender"
|
|
187
|
+
]).optional();
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated Use groupSessionScope instead.
|
|
190
|
+
*
|
|
191
|
+
* Topic session isolation mode for group chats.
|
|
192
|
+
* - "disabled" (default): All messages in a group share one session
|
|
193
|
+
* - "enabled": Messages in different topics get separate sessions
|
|
194
|
+
*
|
|
195
|
+
* Topic routing uses Feishu topic-group `thread_id` when the event identifies a
|
|
196
|
+
* native topic group, and keeps `root_id` precedence for normal groups so
|
|
197
|
+
* reply-created threads stay on the initiating message session.
|
|
198
|
+
*/
|
|
199
|
+
const TopicSessionModeSchema = _enum(["disabled", "enabled"]).optional();
|
|
200
|
+
const ReactionNotificationModeSchema = _enum([
|
|
201
|
+
"off",
|
|
202
|
+
"own",
|
|
203
|
+
"all"
|
|
204
|
+
]).optional();
|
|
205
|
+
/**
|
|
206
|
+
* Reply-in-thread mode for group chats.
|
|
207
|
+
* - "disabled" (default): Bot replies are normal inline replies
|
|
208
|
+
* - "enabled": Bot replies create or continue a Feishu topic thread
|
|
209
|
+
*
|
|
210
|
+
* When enabled, the Feishu reply API is called with `reply_in_thread: true`,
|
|
211
|
+
* causing the reply to appear as a topic (话题) under the original message.
|
|
212
|
+
*/
|
|
213
|
+
const ReplyInThreadSchema = _enum(["disabled", "enabled"]).optional();
|
|
214
|
+
const FeishuGroupSchema = object({
|
|
215
|
+
requireMention: boolean().optional(),
|
|
216
|
+
tools: ToolPolicySchema,
|
|
217
|
+
skills: array(string()).optional(),
|
|
218
|
+
enabled: boolean().optional(),
|
|
219
|
+
allowFrom: array(union([string(), number()])).optional(),
|
|
220
|
+
systemPrompt: string().optional(),
|
|
221
|
+
groupSessionScope: GroupSessionScopeSchema,
|
|
222
|
+
topicSessionMode: TopicSessionModeSchema,
|
|
223
|
+
replyInThread: ReplyInThreadSchema
|
|
224
|
+
}).strict();
|
|
225
|
+
const FeishuSharedConfigShape = {
|
|
226
|
+
webhookHost: string().optional(),
|
|
227
|
+
webhookPort: number().int().positive().optional(),
|
|
228
|
+
capabilities: array(string()).optional(),
|
|
229
|
+
markdown: MarkdownConfigSchema,
|
|
230
|
+
configWrites: boolean().optional(),
|
|
231
|
+
dmPolicy: DmPolicySchema.optional(),
|
|
232
|
+
allowFrom: array(union([string(), number()])).optional(),
|
|
233
|
+
groupPolicy: GroupPolicySchema.optional(),
|
|
234
|
+
groupAllowFrom: array(union([string(), number()])).optional(),
|
|
235
|
+
groupSenderAllowFrom: array(union([string(), number()])).optional(),
|
|
236
|
+
requireMention: boolean().optional(),
|
|
237
|
+
groups: record(string(), FeishuGroupSchema.optional()).optional(),
|
|
238
|
+
historyLimit: number().int().min(0).optional(),
|
|
239
|
+
dmHistoryLimit: number().int().min(0).optional(),
|
|
240
|
+
dms: record(string(), DmConfigSchema).optional(),
|
|
241
|
+
textChunkLimit: number().int().positive().optional(),
|
|
242
|
+
chunkMode: _enum(["length", "newline"]).optional(),
|
|
243
|
+
blockStreaming: BlockStreamingSchema,
|
|
244
|
+
blockStreamingCoalesce: BlockStreamingCoalesceSchema,
|
|
245
|
+
mediaMaxMb: number().positive().optional(),
|
|
246
|
+
httpTimeoutMs: number().int().positive().max(3e5).optional(),
|
|
247
|
+
heartbeat: ChannelHeartbeatVisibilitySchema,
|
|
248
|
+
renderMode: RenderModeSchema,
|
|
249
|
+
streaming: StreamingModeSchema,
|
|
250
|
+
tools: FeishuToolsConfigSchema,
|
|
251
|
+
actions: ChannelActionsSchema,
|
|
252
|
+
replyInThread: ReplyInThreadSchema,
|
|
253
|
+
reactionNotifications: ReactionNotificationModeSchema,
|
|
254
|
+
typingIndicator: boolean().optional(),
|
|
255
|
+
resolveSenderNames: boolean().optional(),
|
|
256
|
+
tts: TtsOverrideSchema
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Per-account configuration.
|
|
260
|
+
* All fields are optional - missing fields inherit from top-level config.
|
|
261
|
+
*/
|
|
262
|
+
const FeishuAccountConfigSchema = object({
|
|
263
|
+
enabled: boolean().optional(),
|
|
264
|
+
name: string().optional(),
|
|
265
|
+
appId: string().optional(),
|
|
266
|
+
appSecret: buildSecretInputSchema().optional(),
|
|
267
|
+
encryptKey: buildSecretInputSchema().optional(),
|
|
268
|
+
verificationToken: buildSecretInputSchema().optional(),
|
|
269
|
+
domain: FeishuDomainSchema.optional(),
|
|
270
|
+
connectionMode: FeishuConnectionModeSchema.optional(),
|
|
271
|
+
webhookPath: string().optional(),
|
|
272
|
+
...FeishuSharedConfigShape,
|
|
273
|
+
groupSessionScope: GroupSessionScopeSchema,
|
|
274
|
+
topicSessionMode: TopicSessionModeSchema
|
|
275
|
+
}).strict();
|
|
276
|
+
const FeishuConfigSchema = object({
|
|
277
|
+
enabled: boolean().optional(),
|
|
278
|
+
defaultAccount: string().optional(),
|
|
279
|
+
appId: string().optional(),
|
|
280
|
+
appSecret: buildSecretInputSchema().optional(),
|
|
281
|
+
encryptKey: buildSecretInputSchema().optional(),
|
|
282
|
+
verificationToken: buildSecretInputSchema().optional(),
|
|
283
|
+
domain: FeishuDomainSchema.optional().default("feishu"),
|
|
284
|
+
connectionMode: FeishuConnectionModeSchema.optional().default("websocket"),
|
|
285
|
+
webhookPath: string().optional().default("/feishu/events"),
|
|
286
|
+
...FeishuSharedConfigShape,
|
|
287
|
+
dmPolicy: DmPolicySchema.optional().default("pairing"),
|
|
288
|
+
reactionNotifications: ReactionNotificationModeSchema.optional().default("own"),
|
|
289
|
+
groupPolicy: GroupPolicySchema.optional().default("allowlist"),
|
|
290
|
+
requireMention: boolean().optional(),
|
|
291
|
+
groupSessionScope: GroupSessionScopeSchema,
|
|
292
|
+
topicSessionMode: TopicSessionModeSchema,
|
|
293
|
+
dynamicAgentCreation: DynamicAgentCreationSchema,
|
|
294
|
+
typingIndicator: boolean().optional().default(true),
|
|
295
|
+
resolveSenderNames: boolean().optional().default(true),
|
|
296
|
+
accounts: record(string(), FeishuAccountConfigSchema.optional()).optional()
|
|
297
|
+
}).strict().superRefine((value, ctx) => {
|
|
298
|
+
const defaultAccount = value.defaultAccount?.trim();
|
|
299
|
+
if (defaultAccount && value.accounts && Object.keys(value.accounts).length > 0) {
|
|
300
|
+
const normalizedDefaultAccount = normalizeAccountId(defaultAccount);
|
|
301
|
+
if (!Object.prototype.hasOwnProperty.call(value.accounts, normalizedDefaultAccount)) ctx.addIssue({
|
|
302
|
+
code: ZodIssueCode.custom,
|
|
303
|
+
path: ["defaultAccount"],
|
|
304
|
+
message: `channels.feishu.defaultAccount="${defaultAccount}" does not match a configured account key`
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
const defaultConnectionMode = value.connectionMode ?? "websocket";
|
|
308
|
+
const defaultVerificationTokenConfigured = hasConfiguredSecretInput(value.verificationToken);
|
|
309
|
+
const defaultEncryptKeyConfigured = hasConfiguredSecretInput(value.encryptKey);
|
|
310
|
+
if (defaultConnectionMode === "webhook") {
|
|
311
|
+
if (!defaultVerificationTokenConfigured) ctx.addIssue({
|
|
312
|
+
code: ZodIssueCode.custom,
|
|
313
|
+
path: ["verificationToken"],
|
|
314
|
+
message: "channels.feishu.connectionMode=\"webhook\" requires channels.feishu.verificationToken"
|
|
315
|
+
});
|
|
316
|
+
if (!defaultEncryptKeyConfigured) ctx.addIssue({
|
|
317
|
+
code: ZodIssueCode.custom,
|
|
318
|
+
path: ["encryptKey"],
|
|
319
|
+
message: "channels.feishu.connectionMode=\"webhook\" requires channels.feishu.encryptKey"
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
for (const [accountId, account] of Object.entries(value.accounts ?? {})) {
|
|
323
|
+
if (!account) continue;
|
|
324
|
+
if ((account.connectionMode ?? defaultConnectionMode) !== "webhook") continue;
|
|
325
|
+
const accountVerificationTokenConfigured = hasConfiguredSecretInput(account.verificationToken) || defaultVerificationTokenConfigured;
|
|
326
|
+
const accountEncryptKeyConfigured = hasConfiguredSecretInput(account.encryptKey) || defaultEncryptKeyConfigured;
|
|
327
|
+
if (!accountVerificationTokenConfigured) ctx.addIssue({
|
|
328
|
+
code: ZodIssueCode.custom,
|
|
329
|
+
path: [
|
|
330
|
+
"accounts",
|
|
331
|
+
accountId,
|
|
332
|
+
"verificationToken"
|
|
333
|
+
],
|
|
334
|
+
message: `channels.feishu.accounts.${accountId}.connectionMode="webhook" requires a verificationToken (account-level or top-level)`
|
|
335
|
+
});
|
|
336
|
+
if (!accountEncryptKeyConfigured) ctx.addIssue({
|
|
337
|
+
code: ZodIssueCode.custom,
|
|
338
|
+
path: [
|
|
339
|
+
"accounts",
|
|
340
|
+
accountId,
|
|
341
|
+
"encryptKey"
|
|
342
|
+
],
|
|
343
|
+
message: `channels.feishu.accounts.${accountId}.connectionMode="webhook" requires an encryptKey (account-level or top-level)`
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
if (value.dmPolicy === "open") {
|
|
347
|
+
if (!(value.allowFrom ?? []).some((entry) => String(entry).trim() === "*")) ctx.addIssue({
|
|
348
|
+
code: ZodIssueCode.custom,
|
|
349
|
+
path: ["allowFrom"],
|
|
350
|
+
message: "channels.feishu.dmPolicy=\"open\" requires channels.feishu.allowFrom to include \"*\""
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region extensions/feishu/src/doctor.ts
|
|
356
|
+
const FEISHU_STATE_DIR = "feishu";
|
|
357
|
+
const BACKUP_PREFIX = "feishu-state-repair";
|
|
358
|
+
const BLANK_USER_MESSAGE_REPAIR_THRESHOLD = 3;
|
|
359
|
+
const SESSION_FILE_INSPECTION_MAX_BYTES = 16 * 1024 * 1024;
|
|
360
|
+
function timestampForPath(now = /* @__PURE__ */ new Date()) {
|
|
361
|
+
return now.toISOString().replaceAll(":", "-");
|
|
362
|
+
}
|
|
363
|
+
function isRecord(value) {
|
|
364
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
365
|
+
}
|
|
366
|
+
function toFeishuSessionEntry(value) {
|
|
367
|
+
if (!isRecord(value)) return {};
|
|
368
|
+
return {
|
|
369
|
+
sessionId: value.sessionId,
|
|
370
|
+
sessionFile: value.sessionFile
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function countLabel(count, singular, plural = `${singular}s`) {
|
|
374
|
+
return `${count} ${count === 1 ? singular : plural}`;
|
|
375
|
+
}
|
|
376
|
+
function existsDir(dir) {
|
|
377
|
+
try {
|
|
378
|
+
return fs.statSync(dir).isDirectory();
|
|
379
|
+
} catch {
|
|
380
|
+
return false;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function existsFile(filePath) {
|
|
384
|
+
try {
|
|
385
|
+
return fs.statSync(filePath).isFile();
|
|
386
|
+
} catch {
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
function safeReadDir(dir) {
|
|
391
|
+
try {
|
|
392
|
+
return fs.readdirSync(dir, { withFileTypes: true });
|
|
393
|
+
} catch {
|
|
394
|
+
return [];
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
function isPathWithinRoot(targetPath, rootPath) {
|
|
398
|
+
const resolvedTarget = path.resolve(targetPath);
|
|
399
|
+
const resolvedRoot = path.resolve(rootPath);
|
|
400
|
+
const relative = path.relative(resolvedRoot, resolvedTarget);
|
|
401
|
+
return Boolean(relative) && !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
402
|
+
}
|
|
403
|
+
function formatDisplayPath(filePath) {
|
|
404
|
+
const home = os.homedir();
|
|
405
|
+
const resolved = path.resolve(filePath);
|
|
406
|
+
return resolved === home || resolved.startsWith(`${home}${path.sep}`) ? `~${resolved.slice(home.length)}` : resolved;
|
|
407
|
+
}
|
|
408
|
+
function formatFinding(finding) {
|
|
409
|
+
switch (finding.kind) {
|
|
410
|
+
case "corrupt-state-json": return `- Feishu local JSON state is corrupt: ${formatDisplayPath(finding.path)}`;
|
|
411
|
+
case "missing-session-transcript": return `- Feishu session ${finding.sessionKey} points to a missing transcript in ${formatDisplayPath(finding.storePath)}`;
|
|
412
|
+
case "invalid-session-transcript": return `- Feishu session ${finding.sessionKey} has an invalid transcript (${finding.reason}): ${formatDisplayPath(finding.path)}`;
|
|
413
|
+
case "blank-user-message-run": return `- Feishu session ${finding.sessionKey} contains ${finding.count} blank user messages: ${formatDisplayPath(finding.path)}`;
|
|
414
|
+
}
|
|
415
|
+
return finding;
|
|
416
|
+
}
|
|
417
|
+
function isFeishuSessionStoreKey(key) {
|
|
418
|
+
const normalized = key.trim().toLowerCase();
|
|
419
|
+
return /^agent:[^:]+:feishu(?::|$)/.test(normalized) || /^feishu(?::|$)/.test(normalized);
|
|
420
|
+
}
|
|
421
|
+
function isFeishuAcpBindingSessionKey(key) {
|
|
422
|
+
return /^agent:[^:]+:acp:binding:feishu(?::|$)/.test(key.trim().toLowerCase());
|
|
423
|
+
}
|
|
424
|
+
function normalizeMetadataString(value) {
|
|
425
|
+
return typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
426
|
+
}
|
|
427
|
+
function isFeishuSessionEntry(key, value) {
|
|
428
|
+
if (isFeishuAcpBindingSessionKey(key)) return false;
|
|
429
|
+
if (isFeishuSessionStoreKey(key)) return true;
|
|
430
|
+
if (!isRecord(value)) return false;
|
|
431
|
+
if (normalizeMetadataString(value.channel) === "feishu" || normalizeMetadataString(value.lastChannel) === "feishu") return true;
|
|
432
|
+
if (normalizeMetadataString((isRecord(value.route) ? value.route : null)?.channel) === "feishu") return true;
|
|
433
|
+
if (normalizeMetadataString((isRecord(value.deliveryContext) ? value.deliveryContext : null)?.channel) === "feishu") return true;
|
|
434
|
+
if (normalizeMetadataString((isRecord(value.pendingFinalDeliveryContext) ? value.pendingFinalDeliveryContext : null)?.channel) === "feishu") return true;
|
|
435
|
+
const origin = isRecord(value.origin) ? value.origin : null;
|
|
436
|
+
const originProvider = normalizeMetadataString(origin?.provider);
|
|
437
|
+
const originSurface = normalizeMetadataString(origin?.surface);
|
|
438
|
+
const originFrom = normalizeMetadataString(origin?.from);
|
|
439
|
+
return originProvider === "feishu" || originSurface.startsWith("feishu") || originFrom.startsWith("feishu:");
|
|
440
|
+
}
|
|
441
|
+
function collectConfiguredAgentIds(cfg) {
|
|
442
|
+
const ids = /* @__PURE__ */ new Set();
|
|
443
|
+
ids.add(resolveConfiguredDefaultAgentId(cfg));
|
|
444
|
+
for (const agent of cfg.agents?.list ?? []) if (typeof agent.id === "string" && agent.id.trim()) ids.add(normalizeAgentId(agent.id));
|
|
445
|
+
return [...ids].toSorted();
|
|
446
|
+
}
|
|
447
|
+
function resolveConfiguredDefaultAgentId(cfg) {
|
|
448
|
+
const agents = cfg.agents?.list ?? [];
|
|
449
|
+
const chosen = agents.find((agent) => agent?.default) ?? agents[0];
|
|
450
|
+
return normalizeAgentId(typeof chosen?.id === "string" && chosen.id.trim() ? chosen.id : "main");
|
|
451
|
+
}
|
|
452
|
+
function collectFeishuSessionTargets(params) {
|
|
453
|
+
const byStorePath = /* @__PURE__ */ new Map();
|
|
454
|
+
const addTarget = (target) => {
|
|
455
|
+
byStorePath.set(path.resolve(target.storePath), {
|
|
456
|
+
...target,
|
|
457
|
+
storePath: path.resolve(target.storePath)
|
|
458
|
+
});
|
|
459
|
+
};
|
|
460
|
+
for (const agentId of collectConfiguredAgentIds(params.cfg)) addTarget({
|
|
461
|
+
agentId,
|
|
462
|
+
storePath: resolveStorePath(params.cfg.session?.store, {
|
|
463
|
+
agentId,
|
|
464
|
+
env: params.env
|
|
465
|
+
})
|
|
466
|
+
});
|
|
467
|
+
const agentsDir = path.join(params.stateDir, "agents");
|
|
468
|
+
for (const agentDir of safeReadDir(agentsDir)) {
|
|
469
|
+
if (!agentDir.isDirectory()) continue;
|
|
470
|
+
const agentId = normalizeAgentId(agentDir.name);
|
|
471
|
+
const storePath = path.join(agentsDir, agentDir.name, "sessions", "sessions.json");
|
|
472
|
+
if (existsFile(storePath)) addTarget({
|
|
473
|
+
agentId,
|
|
474
|
+
storePath
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
return [...byStorePath.values()].toSorted((left, right) => left.storePath.localeCompare(right.storePath));
|
|
478
|
+
}
|
|
479
|
+
function collectJsonFiles(rootDir, limit = 200) {
|
|
480
|
+
const files = [];
|
|
481
|
+
const visit = (dir) => {
|
|
482
|
+
if (files.length >= limit) return;
|
|
483
|
+
for (const entry of safeReadDir(dir).toSorted((left, right) => left.name.localeCompare(right.name))) {
|
|
484
|
+
const fullPath = path.join(dir, entry.name);
|
|
485
|
+
if (entry.isDirectory()) {
|
|
486
|
+
visit(fullPath);
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (entry.isFile() && entry.name.endsWith(".json")) files.push(fullPath);
|
|
490
|
+
if (files.length >= limit) return;
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
if (existsDir(rootDir)) visit(rootDir);
|
|
494
|
+
return files;
|
|
495
|
+
}
|
|
496
|
+
function collectCorruptFeishuStateJsonFindings(feishuStateDir) {
|
|
497
|
+
const findings = [];
|
|
498
|
+
for (const filePath of collectJsonFiles(feishuStateDir)) try {
|
|
499
|
+
JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
|
500
|
+
} catch {
|
|
501
|
+
findings.push({
|
|
502
|
+
kind: "corrupt-state-json",
|
|
503
|
+
path: filePath
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
return findings;
|
|
507
|
+
}
|
|
508
|
+
function resolveSessionTranscriptCandidates(params) {
|
|
509
|
+
const candidates = /* @__PURE__ */ new Set();
|
|
510
|
+
const sessionsDir = path.dirname(params.storePath);
|
|
511
|
+
const addSafeCandidate = (candidate) => {
|
|
512
|
+
const resolved = path.isAbsolute(candidate) ? path.resolve(candidate) : path.resolve(sessionsDir, candidate);
|
|
513
|
+
if (resolved === sessionsDir || !isPathWithinRoot(resolved, sessionsDir)) return;
|
|
514
|
+
candidates.add(resolved);
|
|
515
|
+
};
|
|
516
|
+
if (typeof params.entry.sessionId === "string" && /^[a-z0-9][a-z0-9._-]{0,127}$/i.test(params.entry.sessionId)) {
|
|
517
|
+
candidates.add(resolveSessionFilePath(params.entry.sessionId, typeof params.entry.sessionFile === "string" ? { sessionFile: params.entry.sessionFile } : void 0, {
|
|
518
|
+
agentId: params.agentId,
|
|
519
|
+
sessionsDir
|
|
520
|
+
}));
|
|
521
|
+
return [...candidates].toSorted();
|
|
522
|
+
}
|
|
523
|
+
if (typeof params.entry.sessionFile === "string" && params.entry.sessionFile.trim()) addSafeCandidate(params.entry.sessionFile.trim());
|
|
524
|
+
return [...candidates].toSorted();
|
|
525
|
+
}
|
|
526
|
+
function isSessionHeader(value) {
|
|
527
|
+
return isRecord(value) && value.type === "session" && typeof value.id === "string";
|
|
528
|
+
}
|
|
529
|
+
function isBlankUserMessage(value) {
|
|
530
|
+
if (!isRecord(value) || value.type !== "message" || !isRecord(value.message)) return false;
|
|
531
|
+
if (value.message.role !== "user") return false;
|
|
532
|
+
const content = value.message.content;
|
|
533
|
+
if (typeof content === "string") return content.trim().length === 0;
|
|
534
|
+
return Array.isArray(content) && content.length === 0;
|
|
535
|
+
}
|
|
536
|
+
function isUserMessage(value) {
|
|
537
|
+
return isRecord(value) && value.type === "message" && isRecord(value.message) && value.message.role === "user";
|
|
538
|
+
}
|
|
539
|
+
function inspectSessionTranscript(params) {
|
|
540
|
+
let stat;
|
|
541
|
+
try {
|
|
542
|
+
stat = fs.statSync(params.transcriptPath);
|
|
543
|
+
} catch {
|
|
544
|
+
return null;
|
|
545
|
+
}
|
|
546
|
+
if (!stat.isFile()) return {
|
|
547
|
+
kind: "invalid-session-transcript",
|
|
548
|
+
sessionKey: params.sessionKey,
|
|
549
|
+
storePath: params.storePath,
|
|
550
|
+
path: params.transcriptPath,
|
|
551
|
+
reason: "not a file"
|
|
552
|
+
};
|
|
553
|
+
if (stat.size > SESSION_FILE_INSPECTION_MAX_BYTES) return null;
|
|
554
|
+
let raw = "";
|
|
555
|
+
try {
|
|
556
|
+
raw = fs.readFileSync(params.transcriptPath, "utf-8");
|
|
557
|
+
} catch {
|
|
558
|
+
return {
|
|
559
|
+
kind: "invalid-session-transcript",
|
|
560
|
+
sessionKey: params.sessionKey,
|
|
561
|
+
storePath: params.storePath,
|
|
562
|
+
path: params.transcriptPath,
|
|
563
|
+
reason: "unreadable"
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
const entries = [];
|
|
567
|
+
let malformedLines = 0;
|
|
568
|
+
let blankUserMessageRun = 0;
|
|
569
|
+
let maxBlankUserMessageRun = 0;
|
|
570
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
571
|
+
if (!line.trim()) continue;
|
|
572
|
+
try {
|
|
573
|
+
const entry = JSON.parse(line);
|
|
574
|
+
entries.push(entry);
|
|
575
|
+
if (isBlankUserMessage(entry)) {
|
|
576
|
+
blankUserMessageRun += 1;
|
|
577
|
+
maxBlankUserMessageRun = Math.max(maxBlankUserMessageRun, blankUserMessageRun);
|
|
578
|
+
} else if (isUserMessage(entry)) blankUserMessageRun = 0;
|
|
579
|
+
} catch {
|
|
580
|
+
malformedLines += 1;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
if (entries.length === 0) return {
|
|
584
|
+
kind: "invalid-session-transcript",
|
|
585
|
+
sessionKey: params.sessionKey,
|
|
586
|
+
storePath: params.storePath,
|
|
587
|
+
path: params.transcriptPath,
|
|
588
|
+
reason: "empty transcript"
|
|
589
|
+
};
|
|
590
|
+
if (!isSessionHeader(entries[0])) return {
|
|
591
|
+
kind: "invalid-session-transcript",
|
|
592
|
+
sessionKey: params.sessionKey,
|
|
593
|
+
storePath: params.storePath,
|
|
594
|
+
path: params.transcriptPath,
|
|
595
|
+
reason: "invalid session header"
|
|
596
|
+
};
|
|
597
|
+
if (malformedLines > 0) return {
|
|
598
|
+
kind: "invalid-session-transcript",
|
|
599
|
+
sessionKey: params.sessionKey,
|
|
600
|
+
storePath: params.storePath,
|
|
601
|
+
path: params.transcriptPath,
|
|
602
|
+
reason: `${malformedLines} malformed JSONL line(s)`
|
|
603
|
+
};
|
|
604
|
+
if (maxBlankUserMessageRun >= BLANK_USER_MESSAGE_REPAIR_THRESHOLD) return {
|
|
605
|
+
kind: "blank-user-message-run",
|
|
606
|
+
sessionKey: params.sessionKey,
|
|
607
|
+
storePath: params.storePath,
|
|
608
|
+
path: params.transcriptPath,
|
|
609
|
+
count: maxBlankUserMessageRun
|
|
610
|
+
};
|
|
611
|
+
return null;
|
|
612
|
+
}
|
|
613
|
+
function collectFeishuSessionFindings(params) {
|
|
614
|
+
const transcriptCandidates = resolveSessionTranscriptCandidates(params);
|
|
615
|
+
const existing = transcriptCandidates.filter(existsFile);
|
|
616
|
+
if (transcriptCandidates.length > 0 && existing.length === 0) return [{
|
|
617
|
+
kind: "missing-session-transcript",
|
|
618
|
+
sessionKey: params.sessionKey,
|
|
619
|
+
storePath: params.storePath
|
|
620
|
+
}];
|
|
621
|
+
const findings = [];
|
|
622
|
+
for (const transcriptPath of existing) {
|
|
623
|
+
const finding = inspectSessionTranscript({
|
|
624
|
+
sessionKey: params.sessionKey,
|
|
625
|
+
storePath: params.storePath,
|
|
626
|
+
transcriptPath
|
|
627
|
+
});
|
|
628
|
+
if (finding) findings.push(finding);
|
|
629
|
+
}
|
|
630
|
+
return findings;
|
|
631
|
+
}
|
|
632
|
+
function hasCorruptFeishuStateJsonFinding(inspection) {
|
|
633
|
+
return inspection.findings.some((finding) => finding.kind === "corrupt-state-json");
|
|
634
|
+
}
|
|
635
|
+
function sessionEntryId(storePath, key) {
|
|
636
|
+
return `${path.resolve(storePath)}\0${key}`;
|
|
637
|
+
}
|
|
638
|
+
function collectRepairSessionEntries(inspection) {
|
|
639
|
+
const entriesById = /* @__PURE__ */ new Map();
|
|
640
|
+
for (const entry of inspection.sessionEntries) entriesById.set(sessionEntryId(entry.storePath, entry.key), entry);
|
|
641
|
+
const repairEntries = [];
|
|
642
|
+
const seen = /* @__PURE__ */ new Set();
|
|
643
|
+
for (const finding of inspection.findings) {
|
|
644
|
+
if (finding.kind === "corrupt-state-json") continue;
|
|
645
|
+
const id = sessionEntryId(finding.storePath, finding.sessionKey);
|
|
646
|
+
if (seen.has(id)) continue;
|
|
647
|
+
const entry = entriesById.get(id);
|
|
648
|
+
if (entry) {
|
|
649
|
+
repairEntries.push(entry);
|
|
650
|
+
seen.add(id);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return repairEntries.toSorted((left, right) => left.storePath.localeCompare(right.storePath) || left.key.localeCompare(right.key));
|
|
654
|
+
}
|
|
655
|
+
function inspectFeishuDoctorState(params) {
|
|
656
|
+
const env = params.env ?? process.env;
|
|
657
|
+
const stateDir = resolveStateDir(env, os.homedir);
|
|
658
|
+
const feishuStateDir = path.join(stateDir, FEISHU_STATE_DIR);
|
|
659
|
+
const findings = collectCorruptFeishuStateJsonFindings(feishuStateDir);
|
|
660
|
+
const sessionEntries = [];
|
|
661
|
+
for (const target of collectFeishuSessionTargets({
|
|
662
|
+
cfg: params.cfg,
|
|
663
|
+
env,
|
|
664
|
+
stateDir
|
|
665
|
+
})) {
|
|
666
|
+
const store = loadSessionStore(target.storePath, { skipCache: true });
|
|
667
|
+
for (const [key, entry] of Object.entries(store).toSorted(([left], [right]) => left.localeCompare(right))) {
|
|
668
|
+
if (!isFeishuSessionEntry(key, entry)) continue;
|
|
669
|
+
const sessionEntry = toFeishuSessionEntry(entry);
|
|
670
|
+
sessionEntries.push({
|
|
671
|
+
key,
|
|
672
|
+
storePath: target.storePath,
|
|
673
|
+
agentId: target.agentId,
|
|
674
|
+
entry: sessionEntry
|
|
675
|
+
});
|
|
676
|
+
findings.push(...collectFeishuSessionFindings({
|
|
677
|
+
sessionKey: key,
|
|
678
|
+
storePath: target.storePath,
|
|
679
|
+
agentId: target.agentId,
|
|
680
|
+
entry: sessionEntry
|
|
681
|
+
}));
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
return {
|
|
685
|
+
stateDir,
|
|
686
|
+
feishuStateDir,
|
|
687
|
+
findings,
|
|
688
|
+
sessionEntries
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
function ensureBackupDir(stateDir, now) {
|
|
692
|
+
const backupDir = path.join(stateDir, "backups", `${BACKUP_PREFIX}-${timestampForPath(now)}`);
|
|
693
|
+
fs.mkdirSync(backupDir, {
|
|
694
|
+
recursive: true,
|
|
695
|
+
mode: 448
|
|
696
|
+
});
|
|
697
|
+
return backupDir;
|
|
698
|
+
}
|
|
699
|
+
function resolveUniquePath(candidate) {
|
|
700
|
+
if (!fs.existsSync(candidate)) return candidate;
|
|
701
|
+
for (let index = 1; index < 1e3; index += 1) {
|
|
702
|
+
const next = `${candidate}.${index}`;
|
|
703
|
+
if (!fs.existsSync(next)) return next;
|
|
704
|
+
}
|
|
705
|
+
throw new Error(`Unable to resolve unique path for ${candidate}`);
|
|
706
|
+
}
|
|
707
|
+
function movePathToBackup(params) {
|
|
708
|
+
if (!fs.existsSync(params.sourcePath)) return false;
|
|
709
|
+
const targetPath = resolveUniquePath(path.join(params.backupDir, params.relativeTarget));
|
|
710
|
+
fs.mkdirSync(path.dirname(targetPath), {
|
|
711
|
+
recursive: true,
|
|
712
|
+
mode: 448
|
|
713
|
+
});
|
|
714
|
+
fs.renameSync(params.sourcePath, targetPath);
|
|
715
|
+
return true;
|
|
716
|
+
}
|
|
717
|
+
function copyStoreBackup(params) {
|
|
718
|
+
if (!existsFile(params.storePath)) return;
|
|
719
|
+
const targetPath = path.join(params.backupDir, "session-stores", params.agentId, path.basename(params.storePath));
|
|
720
|
+
fs.mkdirSync(path.dirname(targetPath), {
|
|
721
|
+
recursive: true,
|
|
722
|
+
mode: 448
|
|
723
|
+
});
|
|
724
|
+
fs.copyFileSync(params.storePath, resolveUniquePath(targetPath));
|
|
725
|
+
}
|
|
726
|
+
function collectSessionArtifactPaths(params) {
|
|
727
|
+
const artifacts = /* @__PURE__ */ new Set();
|
|
728
|
+
for (const transcriptPath of resolveSessionTranscriptCandidates(params)) {
|
|
729
|
+
artifacts.add(transcriptPath);
|
|
730
|
+
if (transcriptPath.endsWith(".jsonl")) {
|
|
731
|
+
const base = transcriptPath.slice(0, -6);
|
|
732
|
+
artifacts.add(`${base}.trajectory.jsonl`);
|
|
733
|
+
artifacts.add(`${base}.trajectory-path.json`);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return [...artifacts].toSorted();
|
|
737
|
+
}
|
|
738
|
+
function archiveSessionArtifacts(params) {
|
|
739
|
+
const seen = /* @__PURE__ */ new Set();
|
|
740
|
+
let archived = 0;
|
|
741
|
+
for (const entry of params.entries) for (const artifactPath of collectSessionArtifactPaths({
|
|
742
|
+
storePath: params.storePath,
|
|
743
|
+
agentId: entry.agentId,
|
|
744
|
+
entry: entry.entry
|
|
745
|
+
})) {
|
|
746
|
+
if (seen.has(artifactPath) || !existsFile(artifactPath)) continue;
|
|
747
|
+
seen.add(artifactPath);
|
|
748
|
+
const archivedPath = resolveUniquePath(`${artifactPath}.deleted.${params.archiveTimestamp}`);
|
|
749
|
+
fs.renameSync(artifactPath, archivedPath);
|
|
750
|
+
archived += 1;
|
|
751
|
+
}
|
|
752
|
+
return archived;
|
|
753
|
+
}
|
|
754
|
+
async function repairFeishuDoctorState(params) {
|
|
755
|
+
const env = params.env ?? process.env;
|
|
756
|
+
const now = params.now ?? /* @__PURE__ */ new Date();
|
|
757
|
+
const inspection = params.inspection ?? inspectFeishuDoctorState({
|
|
758
|
+
cfg: params.cfg,
|
|
759
|
+
env
|
|
760
|
+
});
|
|
761
|
+
const backupDir = ensureBackupDir(inspection.stateDir, now);
|
|
762
|
+
const archiveTimestamp = timestampForPath(now);
|
|
763
|
+
const warnings = [];
|
|
764
|
+
const stateDirRepairAttempted = hasCorruptFeishuStateJsonFinding(inspection);
|
|
765
|
+
let rebuiltStateDir = false;
|
|
766
|
+
if (stateDirRepairAttempted) try {
|
|
767
|
+
rebuiltStateDir = movePathToBackup({
|
|
768
|
+
sourcePath: inspection.feishuStateDir,
|
|
769
|
+
backupDir,
|
|
770
|
+
relativeTarget: FEISHU_STATE_DIR
|
|
771
|
+
});
|
|
772
|
+
fs.mkdirSync(inspection.feishuStateDir, {
|
|
773
|
+
recursive: true,
|
|
774
|
+
mode: 448
|
|
775
|
+
});
|
|
776
|
+
} catch (error) {
|
|
777
|
+
warnings.push(`- Failed to rebuild Feishu local state: ${String(error)}`);
|
|
778
|
+
}
|
|
779
|
+
const entriesByStore = /* @__PURE__ */ new Map();
|
|
780
|
+
for (const entry of collectRepairSessionEntries(inspection)) {
|
|
781
|
+
const existing = entriesByStore.get(entry.storePath);
|
|
782
|
+
if (existing) existing.entries.push({
|
|
783
|
+
key: entry.key,
|
|
784
|
+
entry: entry.entry
|
|
785
|
+
});
|
|
786
|
+
else entriesByStore.set(entry.storePath, {
|
|
787
|
+
agentId: entry.agentId,
|
|
788
|
+
entries: [{
|
|
789
|
+
key: entry.key,
|
|
790
|
+
entry: entry.entry
|
|
791
|
+
}]
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
let removedSessionEntries = 0;
|
|
795
|
+
let touchedSessionStores = 0;
|
|
796
|
+
let archivedSessionArtifacts = 0;
|
|
797
|
+
for (const [storePath, group] of [...entriesByStore.entries()].toSorted(([left], [right]) => left.localeCompare(right))) try {
|
|
798
|
+
copyStoreBackup({
|
|
799
|
+
storePath,
|
|
800
|
+
backupDir,
|
|
801
|
+
agentId: group.agentId
|
|
802
|
+
});
|
|
803
|
+
const keys = new Set(group.entries.map((entry) => entry.key));
|
|
804
|
+
const removedEntries = await updateSessionStore(storePath, (store) => {
|
|
805
|
+
const removed = [];
|
|
806
|
+
for (const key of keys) if (Object.prototype.hasOwnProperty.call(store, key)) {
|
|
807
|
+
delete store[key];
|
|
808
|
+
const entry = group.entries.find((candidate) => candidate.key === key);
|
|
809
|
+
if (entry) removed.push(entry);
|
|
810
|
+
}
|
|
811
|
+
return removed;
|
|
812
|
+
}, {
|
|
813
|
+
skipMaintenance: true,
|
|
814
|
+
allowDropAcpMetaSessionKeys: [...keys]
|
|
815
|
+
});
|
|
816
|
+
const removed = removedEntries.length;
|
|
817
|
+
removedSessionEntries += removed;
|
|
818
|
+
if (removed > 0) {
|
|
819
|
+
touchedSessionStores += 1;
|
|
820
|
+
archivedSessionArtifacts += archiveSessionArtifacts({
|
|
821
|
+
storePath,
|
|
822
|
+
entries: removedEntries.map((entry) => ({
|
|
823
|
+
agentId: group.agentId,
|
|
824
|
+
entry: entry.entry
|
|
825
|
+
})),
|
|
826
|
+
archiveTimestamp
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
} catch (error) {
|
|
830
|
+
warnings.push(`- Failed to archive Feishu sessions in ${formatDisplayPath(storePath)}: ${String(error)}`);
|
|
831
|
+
}
|
|
832
|
+
return {
|
|
833
|
+
backupDir,
|
|
834
|
+
stateDirRepairAttempted,
|
|
835
|
+
rebuiltStateDir,
|
|
836
|
+
removedSessionEntries,
|
|
837
|
+
touchedSessionStores,
|
|
838
|
+
archivedSessionArtifacts,
|
|
839
|
+
warnings
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function formatPreviewWarning(inspection) {
|
|
843
|
+
const previewFindings = inspection.findings.slice(0, 5).map(formatFinding);
|
|
844
|
+
const remaining = inspection.findings.length - previewFindings.length;
|
|
845
|
+
const repairActions = [];
|
|
846
|
+
if (hasCorruptFeishuStateJsonFinding(inspection)) repairActions.push(`archive ${formatDisplayPath(inspection.feishuStateDir)}`);
|
|
847
|
+
const repairSessionEntries = collectRepairSessionEntries(inspection);
|
|
848
|
+
if (repairSessionEntries.length > 0) repairActions.push(`archive artifacts and remove ${countLabel(repairSessionEntries.length, "flagged Feishu-scoped session entry", "flagged Feishu-scoped session entries")}`);
|
|
849
|
+
const repairSummary = repairActions.length > 0 ? repairActions.join(" and ") : "apply targeted Feishu state cleanup";
|
|
850
|
+
return [
|
|
851
|
+
"- Feishu local channel state may need repair.",
|
|
852
|
+
...previewFindings,
|
|
853
|
+
...remaining > 0 ? [`- ...and ${remaining} more Feishu state finding(s).`] : [],
|
|
854
|
+
`- Repair will ${repairSummary}, while preserving Feishu App ID/secret config and healthy session entries.`,
|
|
855
|
+
"- Run \"openclaw doctor --fix\" to rebuild Feishu local state."
|
|
856
|
+
].join("\n");
|
|
857
|
+
}
|
|
858
|
+
function formatRepairChange(report) {
|
|
859
|
+
const stateRepairStatus = report.stateDirRepairAttempted ? report.rebuiltStateDir ? "yes" : "no existing state" : "not needed";
|
|
860
|
+
return [
|
|
861
|
+
"Feishu local state repaired.",
|
|
862
|
+
`- Backup dir: ${formatDisplayPath(report.backupDir)}`,
|
|
863
|
+
`- Rebuilt Feishu runtime state: ${stateRepairStatus}`,
|
|
864
|
+
`- Removed ${countLabel(report.removedSessionEntries, "Feishu-scoped session entry", "Feishu-scoped session entries")} from ${countLabel(report.touchedSessionStores, "session store")}.`,
|
|
865
|
+
`- Archived ${countLabel(report.archivedSessionArtifacts, "session artifact file")}.`,
|
|
866
|
+
"- Preserved Feishu App ID/secret config."
|
|
867
|
+
].join("\n");
|
|
868
|
+
}
|
|
869
|
+
function hasConfiguredFeishuChannel(cfg) {
|
|
870
|
+
return Boolean(cfg.channels?.feishu);
|
|
871
|
+
}
|
|
872
|
+
async function runFeishuDoctorSequence(params) {
|
|
873
|
+
if (!hasConfiguredFeishuChannel(params.cfg)) return {
|
|
874
|
+
changeNotes: [],
|
|
875
|
+
warningNotes: []
|
|
876
|
+
};
|
|
877
|
+
const inspection = inspectFeishuDoctorState({
|
|
878
|
+
cfg: params.cfg,
|
|
879
|
+
env: params.env
|
|
880
|
+
});
|
|
881
|
+
if (inspection.findings.length === 0) return {
|
|
882
|
+
changeNotes: [],
|
|
883
|
+
warningNotes: []
|
|
884
|
+
};
|
|
885
|
+
if (!params.shouldRepair) return {
|
|
886
|
+
changeNotes: [],
|
|
887
|
+
warningNotes: [formatPreviewWarning(inspection)]
|
|
888
|
+
};
|
|
889
|
+
const report = await repairFeishuDoctorState({
|
|
890
|
+
cfg: params.cfg,
|
|
891
|
+
env: params.env,
|
|
892
|
+
inspection
|
|
893
|
+
});
|
|
894
|
+
return {
|
|
895
|
+
changeNotes: [formatRepairChange(report)],
|
|
896
|
+
warningNotes: report.warnings
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
const feishuDoctor = { runConfigSequence: async ({ cfg, env, shouldRepair }) => await runFeishuDoctorSequence({
|
|
900
|
+
cfg,
|
|
901
|
+
env,
|
|
902
|
+
shouldRepair
|
|
903
|
+
}) };
|
|
904
|
+
//#endregion
|
|
905
|
+
//#region extensions/feishu/src/session-route.ts
|
|
906
|
+
function resolveFeishuOutboundSessionRoute(params) {
|
|
907
|
+
let trimmed = stripChannelTargetPrefix(params.target, "feishu", "lark");
|
|
908
|
+
if (!trimmed) return null;
|
|
909
|
+
const lower = normalizeLowercaseStringOrEmpty(trimmed);
|
|
910
|
+
let isGroup = false;
|
|
911
|
+
let typeExplicit = false;
|
|
912
|
+
if (lower.startsWith("group:") || lower.startsWith("chat:") || lower.startsWith("channel:")) {
|
|
913
|
+
trimmed = trimmed.replace(/^(group|chat|channel):/i, "").trim();
|
|
914
|
+
isGroup = true;
|
|
915
|
+
typeExplicit = true;
|
|
916
|
+
} else if (lower.startsWith("user:") || lower.startsWith("dm:")) {
|
|
917
|
+
trimmed = trimmed.replace(/^(user|dm):/i, "").trim();
|
|
918
|
+
isGroup = false;
|
|
919
|
+
typeExplicit = true;
|
|
920
|
+
}
|
|
921
|
+
if (!typeExplicit) {
|
|
922
|
+
const idLower = normalizeLowercaseStringOrEmpty(trimmed);
|
|
923
|
+
if (idLower.startsWith("ou_") || idLower.startsWith("on_")) isGroup = false;
|
|
924
|
+
}
|
|
925
|
+
return buildChannelOutboundSessionRoute({
|
|
926
|
+
cfg: params.cfg,
|
|
927
|
+
agentId: params.agentId,
|
|
928
|
+
channel: "feishu",
|
|
929
|
+
accountId: params.accountId,
|
|
930
|
+
peer: {
|
|
931
|
+
kind: isGroup ? "group" : "direct",
|
|
932
|
+
id: trimmed
|
|
933
|
+
},
|
|
934
|
+
chatType: isGroup ? "group" : "direct",
|
|
935
|
+
from: isGroup ? `feishu:group:${trimmed}` : `feishu:${trimmed}`,
|
|
936
|
+
to: trimmed
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region extensions/feishu/src/setup-core.ts
|
|
941
|
+
function setFeishuNamedAccountEnabled$1(cfg, accountId, enabled) {
|
|
942
|
+
const feishuCfg = cfg.channels?.feishu;
|
|
943
|
+
return {
|
|
944
|
+
...cfg,
|
|
945
|
+
channels: {
|
|
946
|
+
...cfg.channels,
|
|
947
|
+
feishu: {
|
|
948
|
+
...feishuCfg,
|
|
949
|
+
accounts: {
|
|
950
|
+
...feishuCfg?.accounts,
|
|
951
|
+
[accountId]: {
|
|
952
|
+
...feishuCfg?.accounts?.[accountId],
|
|
953
|
+
enabled
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
const feishuSetupAdapter = {
|
|
961
|
+
resolveAccountId: ({ cfg, accountId }) => accountId?.trim() || resolveDefaultFeishuAccountId(cfg),
|
|
962
|
+
applyAccountConfig: ({ cfg, accountId }) => {
|
|
963
|
+
if (!accountId || accountId === "default") return {
|
|
964
|
+
...cfg,
|
|
965
|
+
channels: {
|
|
966
|
+
...cfg.channels,
|
|
967
|
+
feishu: {
|
|
968
|
+
...cfg.channels?.feishu,
|
|
969
|
+
enabled: true
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
};
|
|
973
|
+
return setFeishuNamedAccountEnabled$1(cfg, accountId, true);
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
//#endregion
|
|
977
|
+
//#region extensions/feishu/src/setup-surface.ts
|
|
978
|
+
const t = createSetupTranslator();
|
|
979
|
+
const channel = "feishu";
|
|
980
|
+
const SCAN_TO_CREATE_TP = "ob_cli_app";
|
|
981
|
+
const FEISHU_SETUP_FLOW_KEY = "_flow";
|
|
982
|
+
function isFeishuConfigured(cfg) {
|
|
983
|
+
const feishuCfg = cfg.channels?.feishu;
|
|
984
|
+
const isAppIdConfigured = (value) => {
|
|
985
|
+
if (normalizeOptionalString(value)) return true;
|
|
986
|
+
if (!value || typeof value !== "object") return false;
|
|
987
|
+
const rec = value;
|
|
988
|
+
const source = normalizeOptionalString(rec.source)?.toLowerCase();
|
|
989
|
+
const id = normalizeOptionalString(rec.id);
|
|
990
|
+
if (source === "env" && id) return Boolean(normalizeOptionalString(process.env[id]));
|
|
991
|
+
return hasConfiguredSecretInput(value);
|
|
992
|
+
};
|
|
993
|
+
const topLevelConfigured = isAppIdConfigured(feishuCfg?.appId) && hasConfiguredSecretInput(feishuCfg?.appSecret);
|
|
994
|
+
const accountConfigured = Object.values(feishuCfg?.accounts ?? {}).some((account) => {
|
|
995
|
+
if (!account || typeof account !== "object") return false;
|
|
996
|
+
const hasOwnAppId = Object.prototype.hasOwnProperty.call(account, "appId");
|
|
997
|
+
const hasOwnAppSecret = Object.prototype.hasOwnProperty.call(account, "appSecret");
|
|
998
|
+
const accountAppIdConfigured = hasOwnAppId ? isAppIdConfigured(account.appId) : isAppIdConfigured(feishuCfg?.appId);
|
|
999
|
+
const accountSecretConfigured = hasOwnAppSecret ? hasConfiguredSecretInput(account.appSecret) : hasConfiguredSecretInput(feishuCfg?.appSecret);
|
|
1000
|
+
return accountAppIdConfigured && accountSecretConfigured;
|
|
1001
|
+
});
|
|
1002
|
+
return topLevelConfigured || accountConfigured;
|
|
1003
|
+
}
|
|
1004
|
+
function formatFeishuStatusLine(status) {
|
|
1005
|
+
if (status === "needs-credentials") return `Feishu: ${t("wizard.channels.statusNeedsAppCredentials")}`;
|
|
1006
|
+
return `Feishu: ${t("wizard.channels.statusConfiguredConnectionNotVerified")}`;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Patch feishu config at the correct location based on accountId.
|
|
1010
|
+
* - DEFAULT_ACCOUNT_ID → writes to top-level channels.feishu
|
|
1011
|
+
* - named account → writes to channels.feishu.accounts[accountId]
|
|
1012
|
+
*/
|
|
1013
|
+
function patchFeishuConfig(cfg, accountId, patch) {
|
|
1014
|
+
const feishuCfg = cfg.channels?.feishu;
|
|
1015
|
+
if (accountId === "default") return patchTopLevelChannelConfigSection({
|
|
1016
|
+
cfg,
|
|
1017
|
+
channel,
|
|
1018
|
+
enabled: true,
|
|
1019
|
+
patch
|
|
1020
|
+
});
|
|
1021
|
+
const nextAccountPatch = {
|
|
1022
|
+
...feishuCfg?.accounts?.[accountId],
|
|
1023
|
+
enabled: true,
|
|
1024
|
+
...patch
|
|
1025
|
+
};
|
|
1026
|
+
return patchTopLevelChannelConfigSection({
|
|
1027
|
+
cfg,
|
|
1028
|
+
channel,
|
|
1029
|
+
enabled: true,
|
|
1030
|
+
patch: { accounts: {
|
|
1031
|
+
...feishuCfg?.accounts,
|
|
1032
|
+
[accountId]: nextAccountPatch
|
|
1033
|
+
} }
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
async function promptFeishuAllowFrom(params) {
|
|
1037
|
+
const feishuCfg = params.cfg.channels?.feishu;
|
|
1038
|
+
const resolvedAccountId = params.accountId ?? resolveDefaultFeishuAccountId(params.cfg);
|
|
1039
|
+
const existingAllowFrom = (resolvedAccountId !== "default" ? feishuCfg?.accounts?.[resolvedAccountId] : void 0)?.allowFrom ?? feishuCfg?.allowFrom ?? [];
|
|
1040
|
+
await params.prompter.note([
|
|
1041
|
+
t("wizard.feishu.allowlistIntro"),
|
|
1042
|
+
t("wizard.feishu.allowlistFindUser"),
|
|
1043
|
+
t("wizard.feishu.examples"),
|
|
1044
|
+
"- ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
1045
|
+
"- on_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
1046
|
+
].join("\n"), t("wizard.feishu.allowlistTitle"));
|
|
1047
|
+
const mergedAllowFrom = mergeAllowFromEntries(existingAllowFrom, splitSetupEntries(await params.prompter.text({
|
|
1048
|
+
message: t("wizard.feishu.allowFromPrompt"),
|
|
1049
|
+
placeholder: "ou_xxxxx, ou_yyyyy",
|
|
1050
|
+
initialValue: existingAllowFrom.length > 0 ? existingAllowFrom.map(String).join(", ") : void 0
|
|
1051
|
+
})));
|
|
1052
|
+
return patchFeishuConfig(params.cfg, resolvedAccountId, { allowFrom: mergedAllowFrom });
|
|
1053
|
+
}
|
|
1054
|
+
async function noteFeishuCredentialHelp(prompter) {
|
|
1055
|
+
await prompter.note([
|
|
1056
|
+
t("wizard.feishu.credentialsStepOpenPlatform"),
|
|
1057
|
+
t("wizard.feishu.credentialsStepCreateApp"),
|
|
1058
|
+
t("wizard.feishu.credentialsStepGetCredentials"),
|
|
1059
|
+
t("wizard.feishu.credentialsStepPermissions"),
|
|
1060
|
+
t("wizard.feishu.credentialsStepPublish"),
|
|
1061
|
+
t("wizard.feishu.credentialsEnvTip"),
|
|
1062
|
+
t("wizard.channels.docs", { link: formatDocsLink("/channels/feishu", "feishu") })
|
|
1063
|
+
].join("\n"), t("wizard.feishu.credentialsTitle"));
|
|
1064
|
+
}
|
|
1065
|
+
async function promptFeishuAppId(params) {
|
|
1066
|
+
return (await params.prompter.text({
|
|
1067
|
+
message: t("wizard.feishu.appIdPrompt"),
|
|
1068
|
+
initialValue: params.initialValue,
|
|
1069
|
+
validate: (value) => value?.trim() ? void 0 : t("common.required")
|
|
1070
|
+
})).trim();
|
|
1071
|
+
}
|
|
1072
|
+
const feishuDmPolicy = {
|
|
1073
|
+
label: "Feishu",
|
|
1074
|
+
channel,
|
|
1075
|
+
policyKey: "channels.feishu.dmPolicy",
|
|
1076
|
+
allowFromKey: "channels.feishu.allowFrom",
|
|
1077
|
+
resolveConfigKeys: (_cfg, accountId) => {
|
|
1078
|
+
const resolvedAccountId = accountId ?? resolveDefaultFeishuAccountId(_cfg);
|
|
1079
|
+
return resolvedAccountId !== "default" ? {
|
|
1080
|
+
policyKey: `channels.feishu.accounts.${resolvedAccountId}.dmPolicy`,
|
|
1081
|
+
allowFromKey: `channels.feishu.accounts.${resolvedAccountId}.allowFrom`
|
|
1082
|
+
} : {
|
|
1083
|
+
policyKey: "channels.feishu.dmPolicy",
|
|
1084
|
+
allowFromKey: "channels.feishu.allowFrom"
|
|
1085
|
+
};
|
|
1086
|
+
},
|
|
1087
|
+
getCurrent: (cfg, accountId) => {
|
|
1088
|
+
const feishuCfg = cfg.channels?.feishu;
|
|
1089
|
+
const resolvedAccountId = accountId ?? resolveDefaultFeishuAccountId(cfg);
|
|
1090
|
+
if (resolvedAccountId !== "default") {
|
|
1091
|
+
const account = feishuCfg?.accounts?.[resolvedAccountId];
|
|
1092
|
+
if (account?.dmPolicy) return account.dmPolicy;
|
|
1093
|
+
}
|
|
1094
|
+
return feishuCfg?.dmPolicy ?? "pairing";
|
|
1095
|
+
},
|
|
1096
|
+
setPolicy: (cfg, policy, accountId) => {
|
|
1097
|
+
return patchFeishuConfig(cfg, accountId ?? resolveDefaultFeishuAccountId(cfg), {
|
|
1098
|
+
dmPolicy: policy,
|
|
1099
|
+
...policy === "open" ? { allowFrom: mergeAllowFromEntries([], ["*"]) } : {}
|
|
1100
|
+
});
|
|
1101
|
+
},
|
|
1102
|
+
promptAllowFrom: promptFeishuAllowFrom
|
|
1103
|
+
};
|
|
1104
|
+
function applyNewAppSecurityPolicy(cfg, accountId, openId, groupPolicy) {
|
|
1105
|
+
let next = cfg;
|
|
1106
|
+
if (openId) next = patchFeishuConfig(next, accountId, {
|
|
1107
|
+
dmPolicy: "allowlist",
|
|
1108
|
+
allowFrom: [openId]
|
|
1109
|
+
});
|
|
1110
|
+
const groupPatch = { groupPolicy };
|
|
1111
|
+
if (groupPolicy === "open") groupPatch.requireMention = true;
|
|
1112
|
+
next = patchFeishuConfig(next, accountId, groupPatch);
|
|
1113
|
+
return next;
|
|
1114
|
+
}
|
|
1115
|
+
async function promptFeishuDomain(params) {
|
|
1116
|
+
return await params.prompter.select({
|
|
1117
|
+
message: t("wizard.feishu.domainPrompt"),
|
|
1118
|
+
options: [{
|
|
1119
|
+
value: "feishu",
|
|
1120
|
+
label: t("wizard.feishu.domainFeishu")
|
|
1121
|
+
}, {
|
|
1122
|
+
value: "lark",
|
|
1123
|
+
label: t("wizard.feishu.domainLark")
|
|
1124
|
+
}],
|
|
1125
|
+
initialValue: params.initialValue ?? "feishu"
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
async function promptFeishuSetupMethod(prompter) {
|
|
1129
|
+
return await prompter.select({
|
|
1130
|
+
message: t("wizard.feishu.setupMethodPrompt"),
|
|
1131
|
+
options: [{
|
|
1132
|
+
value: "manual",
|
|
1133
|
+
label: t("wizard.feishu.setupMethodManual")
|
|
1134
|
+
}, {
|
|
1135
|
+
value: "scan",
|
|
1136
|
+
label: t("wizard.feishu.setupMethodScan")
|
|
1137
|
+
}],
|
|
1138
|
+
initialValue: "manual"
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
async function runScanToCreate(prompter, domain) {
|
|
1142
|
+
const { beginAppRegistration, initAppRegistration, pollAppRegistration, printQrCode } = await import("./app-registration-BBDxCbFo.js");
|
|
1143
|
+
try {
|
|
1144
|
+
await initAppRegistration(domain);
|
|
1145
|
+
} catch {
|
|
1146
|
+
await prompter.note(t("wizard.feishu.scanUnavailable"), t("wizard.feishu.setupTitle"));
|
|
1147
|
+
return null;
|
|
1148
|
+
}
|
|
1149
|
+
const begin = await beginAppRegistration(domain);
|
|
1150
|
+
await prompter.note(t("wizard.feishu.scanQr"), t("wizard.feishu.scanTitle"));
|
|
1151
|
+
await printQrCode(begin.qrUrl);
|
|
1152
|
+
const progress = prompter.progress(t("wizard.feishu.fetchingConfig"));
|
|
1153
|
+
const outcome = await pollAppRegistration({
|
|
1154
|
+
deviceCode: begin.deviceCode,
|
|
1155
|
+
interval: begin.interval,
|
|
1156
|
+
expireIn: begin.expireIn,
|
|
1157
|
+
initialDomain: domain,
|
|
1158
|
+
tp: SCAN_TO_CREATE_TP
|
|
1159
|
+
});
|
|
1160
|
+
switch (outcome.status) {
|
|
1161
|
+
case "success":
|
|
1162
|
+
progress.stop(t("wizard.feishu.scanCompleted"));
|
|
1163
|
+
return outcome.result;
|
|
1164
|
+
case "access_denied":
|
|
1165
|
+
progress.stop(t("wizard.feishu.scanDenied"));
|
|
1166
|
+
return null;
|
|
1167
|
+
case "expired":
|
|
1168
|
+
progress.stop(t("wizard.feishu.scanExpired"));
|
|
1169
|
+
return null;
|
|
1170
|
+
case "timeout":
|
|
1171
|
+
progress.stop(t("wizard.feishu.scanTimedOut"));
|
|
1172
|
+
return null;
|
|
1173
|
+
case "error":
|
|
1174
|
+
progress.stop(t("wizard.feishu.scanError", { error: outcome.message }));
|
|
1175
|
+
return null;
|
|
1176
|
+
}
|
|
1177
|
+
return null;
|
|
1178
|
+
}
|
|
1179
|
+
async function runNewAppFlow(params) {
|
|
1180
|
+
const { prompter, options } = params;
|
|
1181
|
+
let next = params.cfg;
|
|
1182
|
+
const targetAccountId = resolveDefaultFeishuAccountId(next);
|
|
1183
|
+
let appId = null;
|
|
1184
|
+
let appSecret = null;
|
|
1185
|
+
let appSecretProbeValue = null;
|
|
1186
|
+
let scanDomain;
|
|
1187
|
+
let scanOpenId;
|
|
1188
|
+
const currentDomain = (next.channels?.feishu)?.domain ?? "feishu";
|
|
1189
|
+
const setupMethod = await promptFeishuSetupMethod(prompter);
|
|
1190
|
+
const selectedDomain = await promptFeishuDomain({
|
|
1191
|
+
prompter,
|
|
1192
|
+
initialValue: currentDomain
|
|
1193
|
+
});
|
|
1194
|
+
scanDomain = selectedDomain;
|
|
1195
|
+
const scanResult = setupMethod === "scan" ? await runScanToCreate(prompter, selectedDomain) : null;
|
|
1196
|
+
if (scanResult) {
|
|
1197
|
+
appId = scanResult.appId;
|
|
1198
|
+
appSecret = scanResult.appSecret;
|
|
1199
|
+
appSecretProbeValue = scanResult.appSecret;
|
|
1200
|
+
scanDomain = scanResult.domain;
|
|
1201
|
+
scanOpenId = scanResult.openId;
|
|
1202
|
+
} else {
|
|
1203
|
+
await noteFeishuCredentialHelp(prompter);
|
|
1204
|
+
appId = await promptFeishuAppId({
|
|
1205
|
+
prompter,
|
|
1206
|
+
initialValue: normalizeOptionalString(process.env.FEISHU_APP_ID)
|
|
1207
|
+
});
|
|
1208
|
+
const appSecretResult = await promptSingleChannelSecretInput({
|
|
1209
|
+
cfg: next,
|
|
1210
|
+
prompter,
|
|
1211
|
+
providerHint: "feishu",
|
|
1212
|
+
credentialLabel: "App Secret",
|
|
1213
|
+
secretInputMode: options?.secretInputMode,
|
|
1214
|
+
accountConfigured: false,
|
|
1215
|
+
canUseEnv: false,
|
|
1216
|
+
hasConfigToken: false,
|
|
1217
|
+
envPrompt: "",
|
|
1218
|
+
keepPrompt: t("wizard.feishu.appSecretKeep"),
|
|
1219
|
+
inputPrompt: t("wizard.feishu.appSecretPrompt"),
|
|
1220
|
+
preferredEnvVar: "FEISHU_APP_SECRET"
|
|
1221
|
+
});
|
|
1222
|
+
if (appSecretResult.action === "set") {
|
|
1223
|
+
appSecret = appSecretResult.value;
|
|
1224
|
+
appSecretProbeValue = appSecretResult.resolvedValue;
|
|
1225
|
+
}
|
|
1226
|
+
if (appId && appSecretProbeValue) {
|
|
1227
|
+
const { getAppOwnerOpenId } = await import("./app-registration-BBDxCbFo.js");
|
|
1228
|
+
scanOpenId = await getAppOwnerOpenId({
|
|
1229
|
+
appId,
|
|
1230
|
+
appSecret: appSecretProbeValue,
|
|
1231
|
+
domain: selectedDomain
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
const groupPolicy = await prompter.select({
|
|
1236
|
+
message: t("wizard.feishu.groupPolicyPrompt"),
|
|
1237
|
+
options: [
|
|
1238
|
+
{
|
|
1239
|
+
value: "allowlist",
|
|
1240
|
+
label: t("wizard.feishu.groupPolicyAllowlist")
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
value: "open",
|
|
1244
|
+
label: t("wizard.feishu.groupPolicyOpen")
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
value: "disabled",
|
|
1248
|
+
label: t("wizard.feishu.groupPolicyDisabled")
|
|
1249
|
+
}
|
|
1250
|
+
],
|
|
1251
|
+
initialValue: "allowlist"
|
|
1252
|
+
});
|
|
1253
|
+
const configProgress = prompter.progress(t("wizard.feishu.configuring"));
|
|
1254
|
+
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
1255
|
+
if (appId && appSecret) next = patchFeishuConfig(next, targetAccountId, {
|
|
1256
|
+
appId,
|
|
1257
|
+
appSecret,
|
|
1258
|
+
connectionMode: "websocket",
|
|
1259
|
+
...scanDomain ? { domain: scanDomain } : {}
|
|
1260
|
+
});
|
|
1261
|
+
else if (scanDomain) next = patchFeishuConfig(next, targetAccountId, { domain: scanDomain });
|
|
1262
|
+
next = applyNewAppSecurityPolicy(next, targetAccountId, scanOpenId, groupPolicy);
|
|
1263
|
+
configProgress.stop(t("wizard.feishu.botConfigured"));
|
|
1264
|
+
return { cfg: next };
|
|
1265
|
+
}
|
|
1266
|
+
async function runEditFlow(params) {
|
|
1267
|
+
const { prompter, options } = params;
|
|
1268
|
+
const next = params.cfg;
|
|
1269
|
+
const feishuCfg = next.channels?.feishu;
|
|
1270
|
+
const resolveAppIdLabel = (value) => {
|
|
1271
|
+
const asString = normalizeOptionalString(value);
|
|
1272
|
+
if (asString) return asString;
|
|
1273
|
+
if (value && typeof value === "object") {
|
|
1274
|
+
const rec = value;
|
|
1275
|
+
if (normalizeOptionalString(rec.source) && normalizeOptionalString(rec.id)) return normalizeOptionalString(process.env[rec.id]) ?? `env:${String(rec.id)}`;
|
|
1276
|
+
if (hasConfiguredSecretInput(value)) return "(configured)";
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
const existingAppId = resolveAppIdLabel(feishuCfg?.appId) ?? Object.values(feishuCfg?.accounts ?? {}).reduce((found, account) => {
|
|
1280
|
+
if (found) return found;
|
|
1281
|
+
if (account && typeof account === "object") return resolveAppIdLabel(account.appId);
|
|
1282
|
+
}, void 0);
|
|
1283
|
+
if (existingAppId) {
|
|
1284
|
+
if (!await prompter.confirm({
|
|
1285
|
+
message: t("wizard.feishu.existingBotPrompt", { appId: existingAppId }),
|
|
1286
|
+
initialValue: true
|
|
1287
|
+
})) return runNewAppFlow({
|
|
1288
|
+
cfg: next,
|
|
1289
|
+
prompter,
|
|
1290
|
+
options
|
|
1291
|
+
});
|
|
1292
|
+
} else return runNewAppFlow({
|
|
1293
|
+
cfg: next,
|
|
1294
|
+
prompter,
|
|
1295
|
+
options
|
|
1296
|
+
});
|
|
1297
|
+
await prompter.note(t("wizard.feishu.botConfigured"), "");
|
|
1298
|
+
return { cfg: next };
|
|
1299
|
+
}
|
|
1300
|
+
async function runFeishuLogin(params) {
|
|
1301
|
+
const { cfg, prompter } = params;
|
|
1302
|
+
const options = {};
|
|
1303
|
+
if (isFeishuConfigured(cfg)) {
|
|
1304
|
+
const result = await runEditFlow({
|
|
1305
|
+
cfg,
|
|
1306
|
+
prompter,
|
|
1307
|
+
options
|
|
1308
|
+
});
|
|
1309
|
+
if (result === null) return cfg;
|
|
1310
|
+
return result.cfg;
|
|
1311
|
+
}
|
|
1312
|
+
return (await runNewAppFlow({
|
|
1313
|
+
cfg,
|
|
1314
|
+
prompter,
|
|
1315
|
+
options
|
|
1316
|
+
})).cfg;
|
|
1317
|
+
}
|
|
1318
|
+
const feishuSetupWizard = {
|
|
1319
|
+
channel,
|
|
1320
|
+
resolveAccountIdForConfigure: ({ accountOverride, defaultAccountId, cfg }) => (typeof accountOverride === "string" && accountOverride.trim() ? accountOverride.trim() : void 0) ?? resolveDefaultFeishuAccountId(cfg) ?? defaultAccountId,
|
|
1321
|
+
resolveShouldPromptAccountIds: () => false,
|
|
1322
|
+
status: {
|
|
1323
|
+
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
1324
|
+
unconfiguredLabel: t("wizard.channels.statusNeedsAppCredentials"),
|
|
1325
|
+
configuredHint: t("wizard.channels.statusConfigured"),
|
|
1326
|
+
unconfiguredHint: t("wizard.channels.statusNeedsAppCreds"),
|
|
1327
|
+
configuredScore: 2,
|
|
1328
|
+
unconfiguredScore: 0,
|
|
1329
|
+
resolveConfigured: ({ cfg }) => isFeishuConfigured(cfg),
|
|
1330
|
+
resolveStatusLines: async ({ cfg, accountId, configured }) => {
|
|
1331
|
+
const account = resolveFeishuAccount({
|
|
1332
|
+
cfg,
|
|
1333
|
+
accountId
|
|
1334
|
+
});
|
|
1335
|
+
let probeResult = null;
|
|
1336
|
+
if (configured && account.configured) try {
|
|
1337
|
+
const { probeFeishu } = await import("./probe--jnTJpax.js");
|
|
1338
|
+
probeResult = await probeFeishu(account);
|
|
1339
|
+
} catch {}
|
|
1340
|
+
if (!configured) return [formatFeishuStatusLine("needs-credentials")];
|
|
1341
|
+
if (probeResult?.ok) return [`Feishu: ${t("wizard.channels.statusConnectedAs", { name: probeResult.botName ?? probeResult.botOpenId ?? "bot" })}`];
|
|
1342
|
+
return [formatFeishuStatusLine("configured-unverified")];
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
prepare: async ({ cfg, credentialValues }) => {
|
|
1346
|
+
if (isFeishuConfigured(cfg)) return { credentialValues: {
|
|
1347
|
+
...credentialValues,
|
|
1348
|
+
[FEISHU_SETUP_FLOW_KEY]: "edit"
|
|
1349
|
+
} };
|
|
1350
|
+
return { credentialValues: {
|
|
1351
|
+
...credentialValues,
|
|
1352
|
+
[FEISHU_SETUP_FLOW_KEY]: "new"
|
|
1353
|
+
} };
|
|
1354
|
+
},
|
|
1355
|
+
credentials: [],
|
|
1356
|
+
finalize: async ({ cfg, prompter, options, credentialValues }) => {
|
|
1357
|
+
if ((credentialValues[FEISHU_SETUP_FLOW_KEY] ?? "new") === "edit") {
|
|
1358
|
+
const result = await runEditFlow({
|
|
1359
|
+
cfg,
|
|
1360
|
+
prompter,
|
|
1361
|
+
options
|
|
1362
|
+
});
|
|
1363
|
+
if (result === null) return { cfg };
|
|
1364
|
+
return result;
|
|
1365
|
+
}
|
|
1366
|
+
return runNewAppFlow({
|
|
1367
|
+
cfg,
|
|
1368
|
+
prompter,
|
|
1369
|
+
options
|
|
1370
|
+
});
|
|
1371
|
+
},
|
|
1372
|
+
dmPolicy: feishuDmPolicy,
|
|
1373
|
+
disable: (cfg) => patchTopLevelChannelConfigSection({
|
|
1374
|
+
cfg,
|
|
1375
|
+
channel,
|
|
1376
|
+
patch: { enabled: false }
|
|
1377
|
+
})
|
|
1378
|
+
};
|
|
1379
|
+
//#endregion
|
|
1380
|
+
//#region extensions/feishu/src/channel.ts
|
|
1381
|
+
function readFeishuMediaParam(params) {
|
|
1382
|
+
const media = params.media;
|
|
1383
|
+
if (typeof media !== "string") return;
|
|
1384
|
+
return media.trim() ? media : void 0;
|
|
1385
|
+
}
|
|
1386
|
+
function readBooleanParam(params, keys) {
|
|
1387
|
+
for (const key of keys) {
|
|
1388
|
+
const value = params[key];
|
|
1389
|
+
if (typeof value === "boolean") return value;
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
function hasLegacyFeishuCardCommandValue(actionValue) {
|
|
1393
|
+
return isRecord$1(actionValue) && actionValue.oc !== "ocf1" && (Boolean(typeof actionValue.command === "string" && actionValue.command.trim()) || Boolean(typeof actionValue.text === "string" && actionValue.text.trim()));
|
|
1394
|
+
}
|
|
1395
|
+
function containsLegacyFeishuCardCommandValue(node) {
|
|
1396
|
+
if (Array.isArray(node)) return node.some((item) => containsLegacyFeishuCardCommandValue(item));
|
|
1397
|
+
if (!isRecord$1(node)) return false;
|
|
1398
|
+
if (node.tag === "button" && hasLegacyFeishuCardCommandValue(node.value)) return true;
|
|
1399
|
+
if (node.tag === "button" && Array.isArray(node.behaviors) && node.behaviors.some((behavior) => isRecord$1(behavior) && hasLegacyFeishuCardCommandValue(behavior.value))) return true;
|
|
1400
|
+
return Object.values(node).some((value) => containsLegacyFeishuCardCommandValue(value));
|
|
1401
|
+
}
|
|
1402
|
+
const meta = {
|
|
1403
|
+
id: "feishu",
|
|
1404
|
+
label: "Feishu",
|
|
1405
|
+
selectionLabel: "Feishu/Lark (飞书)",
|
|
1406
|
+
docsPath: "/channels/feishu",
|
|
1407
|
+
docsLabel: "feishu",
|
|
1408
|
+
blurb: "飞书/Lark enterprise messaging.",
|
|
1409
|
+
aliases: ["lark"],
|
|
1410
|
+
order: 70,
|
|
1411
|
+
preferSessionLookupForAnnounceTarget: true
|
|
1412
|
+
};
|
|
1413
|
+
const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime.js"), "feishuChannelRuntime");
|
|
1414
|
+
function toFeishuMessageSendResult(result, kind) {
|
|
1415
|
+
const receipt = result.receipt ?? createFeishuSendReceipt({
|
|
1416
|
+
messageId: result.messageId,
|
|
1417
|
+
chatId: result.chatId ?? "",
|
|
1418
|
+
kind
|
|
1419
|
+
});
|
|
1420
|
+
return {
|
|
1421
|
+
messageId: result.messageId || receipt.primaryPlatformMessageId,
|
|
1422
|
+
receipt
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
const feishuMessageAdapter = defineChannelMessageAdapter({
|
|
1426
|
+
id: "feishu",
|
|
1427
|
+
durableFinal: { capabilities: {
|
|
1428
|
+
text: true,
|
|
1429
|
+
media: true
|
|
1430
|
+
} },
|
|
1431
|
+
send: {
|
|
1432
|
+
text: async (ctx) => {
|
|
1433
|
+
const sendText = (await loadFeishuChannelRuntime()).feishuOutbound.sendText;
|
|
1434
|
+
if (!sendText) throw new Error("Feishu text sending is not available.");
|
|
1435
|
+
return toFeishuMessageSendResult(await sendText(ctx), "text");
|
|
1436
|
+
},
|
|
1437
|
+
media: async (ctx) => {
|
|
1438
|
+
const sendMedia = (await loadFeishuChannelRuntime()).feishuOutbound.sendMedia;
|
|
1439
|
+
if (!sendMedia) throw new Error("Feishu media sending is not available.");
|
|
1440
|
+
return toFeishuMessageSendResult(await sendMedia(ctx), "media");
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
});
|
|
1444
|
+
async function createFeishuActionClient(account) {
|
|
1445
|
+
const { createFeishuClient } = await import("./client-Chndlujz.js");
|
|
1446
|
+
return createFeishuClient(account);
|
|
1447
|
+
}
|
|
1448
|
+
const collectFeishuSecurityWarnings = createAllowlistProviderGroupPolicyWarningCollector({
|
|
1449
|
+
providerConfigPresent: (cfg) => cfg.channels?.feishu !== void 0,
|
|
1450
|
+
resolveGroupPolicy: ({ cfg, accountId }) => resolveFeishuAccount({
|
|
1451
|
+
cfg,
|
|
1452
|
+
accountId
|
|
1453
|
+
}).config?.groupPolicy,
|
|
1454
|
+
collect: ({ cfg, accountId, groupPolicy }) => {
|
|
1455
|
+
if (groupPolicy !== "open") return [];
|
|
1456
|
+
return [`- Feishu[${resolveFeishuAccount({
|
|
1457
|
+
cfg,
|
|
1458
|
+
accountId
|
|
1459
|
+
}).accountId}] groups: groupPolicy="open" allows any member to trigger (mention-gated). Set channels.feishu.groupPolicy="allowlist" + channels.feishu.groupAllowFrom to restrict senders.`];
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
1462
|
+
function describeFeishuMessageTool({ cfg, accountId }) {
|
|
1463
|
+
const enabledAccounts = accountId ? [resolveFeishuAccount({
|
|
1464
|
+
cfg,
|
|
1465
|
+
accountId
|
|
1466
|
+
})].filter((account) => account.enabled && account.configured) : listEnabledFeishuAccounts(cfg);
|
|
1467
|
+
const enabled = enabledAccounts.length > 0 || !accountId && cfg.channels?.feishu?.enabled !== false && Boolean(inspectFeishuCredentials(cfg.channels?.feishu));
|
|
1468
|
+
if (enabledAccounts.length === 0) return {
|
|
1469
|
+
actions: [],
|
|
1470
|
+
capabilities: enabled ? ["presentation"] : []
|
|
1471
|
+
};
|
|
1472
|
+
const actions = new Set([
|
|
1473
|
+
"send",
|
|
1474
|
+
"read",
|
|
1475
|
+
"edit",
|
|
1476
|
+
"thread-reply",
|
|
1477
|
+
"pin",
|
|
1478
|
+
"list-pins",
|
|
1479
|
+
"unpin",
|
|
1480
|
+
"member-info",
|
|
1481
|
+
"channel-info",
|
|
1482
|
+
"channel-list"
|
|
1483
|
+
]);
|
|
1484
|
+
if (accountId ? enabledAccounts.some((account) => isFeishuReactionsActionEnabled({
|
|
1485
|
+
cfg,
|
|
1486
|
+
account
|
|
1487
|
+
})) : areAnyFeishuReactionActionsEnabled(cfg)) {
|
|
1488
|
+
actions.add("react");
|
|
1489
|
+
actions.add("reactions");
|
|
1490
|
+
}
|
|
1491
|
+
return {
|
|
1492
|
+
actions: Array.from(actions),
|
|
1493
|
+
capabilities: enabled ? ["presentation"] : []
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
function setFeishuNamedAccountEnabled(cfg, accountId, enabled) {
|
|
1497
|
+
const feishuCfg = cfg.channels?.feishu;
|
|
1498
|
+
return {
|
|
1499
|
+
...cfg,
|
|
1500
|
+
channels: {
|
|
1501
|
+
...cfg.channels,
|
|
1502
|
+
feishu: {
|
|
1503
|
+
...feishuCfg,
|
|
1504
|
+
accounts: {
|
|
1505
|
+
...feishuCfg?.accounts,
|
|
1506
|
+
[accountId]: {
|
|
1507
|
+
...feishuCfg?.accounts?.[accountId],
|
|
1508
|
+
enabled
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
const feishuConfigAdapter = createHybridChannelConfigAdapter({
|
|
1516
|
+
sectionKey: "feishu",
|
|
1517
|
+
listAccountIds: listFeishuAccountIds,
|
|
1518
|
+
resolveAccount: adaptScopedAccountAccessor(resolveFeishuAccount),
|
|
1519
|
+
defaultAccountId: resolveDefaultFeishuAccountId,
|
|
1520
|
+
clearBaseFields: [],
|
|
1521
|
+
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
1522
|
+
formatAllowFrom: (allowFrom) => formatAllowFromLowercase({ allowFrom })
|
|
1523
|
+
});
|
|
1524
|
+
function isFeishuReactionsActionEnabled(params) {
|
|
1525
|
+
if (!params.account.enabled || !params.account.configured) return false;
|
|
1526
|
+
return createActionGate(params.account.config.actions ?? (params.cfg.channels?.feishu)?.actions)("reactions");
|
|
1527
|
+
}
|
|
1528
|
+
function areAnyFeishuReactionActionsEnabled(cfg) {
|
|
1529
|
+
for (const account of listEnabledFeishuAccounts(cfg)) if (isFeishuReactionsActionEnabled({
|
|
1530
|
+
cfg,
|
|
1531
|
+
account
|
|
1532
|
+
})) return true;
|
|
1533
|
+
return false;
|
|
1534
|
+
}
|
|
1535
|
+
function isFeishuGroupTopicSessionKey(sessionKey) {
|
|
1536
|
+
if (typeof sessionKey !== "string" || !sessionKey) return false;
|
|
1537
|
+
const parsed = parseFeishuConversationId({ conversationId: sessionKey });
|
|
1538
|
+
return parsed?.scope === "group_topic" || parsed?.scope === "group_topic_sender";
|
|
1539
|
+
}
|
|
1540
|
+
function resolveFeishuTopicAutoThreadAnchor(ctx) {
|
|
1541
|
+
if (ctx.action !== "send") return;
|
|
1542
|
+
if (!isFeishuGroupTopicSessionKey(ctx.sessionKey)) return;
|
|
1543
|
+
const inbound = ctx.toolContext?.currentMessageId;
|
|
1544
|
+
return typeof inbound === "string" && inbound.length > 0 ? inbound : void 0;
|
|
1545
|
+
}
|
|
1546
|
+
function buildFeishuSendReplyAnchor(ctx) {
|
|
1547
|
+
if (ctx.action === "thread-reply") return {
|
|
1548
|
+
replyToMessageId: resolveFeishuMessageId(ctx.params),
|
|
1549
|
+
replyInThread: true
|
|
1550
|
+
};
|
|
1551
|
+
const autoThreadId = resolveFeishuTopicAutoThreadAnchor(ctx);
|
|
1552
|
+
return {
|
|
1553
|
+
replyToMessageId: autoThreadId,
|
|
1554
|
+
replyInThread: autoThreadId !== void 0
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
function isSupportedFeishuDirectConversationId(conversationId) {
|
|
1558
|
+
const trimmed = conversationId.trim();
|
|
1559
|
+
if (!trimmed || trimmed.includes(":")) return false;
|
|
1560
|
+
if (trimmed.startsWith("oc_") || trimmed.startsWith("on_")) return false;
|
|
1561
|
+
return true;
|
|
1562
|
+
}
|
|
1563
|
+
function normalizeFeishuAcpConversationId(conversationId) {
|
|
1564
|
+
const parsed = parseFeishuConversationId({ conversationId });
|
|
1565
|
+
if (!parsed || parsed.scope !== "group_topic" && parsed.scope !== "group_topic_sender" && !isSupportedFeishuDirectConversationId(parsed.canonicalConversationId)) return null;
|
|
1566
|
+
return {
|
|
1567
|
+
conversationId: parsed.canonicalConversationId,
|
|
1568
|
+
parentConversationId: parsed.scope === "group_topic" || parsed.scope === "group_topic_sender" ? parsed.chatId : void 0
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
function matchFeishuAcpConversation(params) {
|
|
1572
|
+
const binding = normalizeFeishuAcpConversationId(params.bindingConversationId);
|
|
1573
|
+
if (!binding) return null;
|
|
1574
|
+
const incoming = parseFeishuConversationId({
|
|
1575
|
+
conversationId: params.conversationId,
|
|
1576
|
+
parentConversationId: params.parentConversationId
|
|
1577
|
+
});
|
|
1578
|
+
if (!incoming || incoming.scope !== "group_topic" && incoming.scope !== "group_topic_sender" && !isSupportedFeishuDirectConversationId(incoming.canonicalConversationId)) return null;
|
|
1579
|
+
const matchesCanonicalConversation = binding.conversationId === incoming.canonicalConversationId;
|
|
1580
|
+
const matchesParentTopicForSenderScopedConversation = incoming.scope === "group_topic_sender" && binding.parentConversationId === incoming.chatId && binding.conversationId === `${incoming.chatId}:topic:${incoming.topicId}`;
|
|
1581
|
+
if (!matchesCanonicalConversation && !matchesParentTopicForSenderScopedConversation) return null;
|
|
1582
|
+
return {
|
|
1583
|
+
conversationId: matchesParentTopicForSenderScopedConversation ? binding.conversationId : incoming.canonicalConversationId,
|
|
1584
|
+
parentConversationId: incoming.scope === "group_topic" || incoming.scope === "group_topic_sender" ? incoming.chatId : void 0,
|
|
1585
|
+
matchPriority: matchesCanonicalConversation ? 2 : 1
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
function resolveFeishuSenderScopedCommandConversation(params) {
|
|
1589
|
+
const parentConversationId = params.parentConversationId?.trim();
|
|
1590
|
+
const threadId = params.threadId?.trim();
|
|
1591
|
+
const senderId = params.senderId?.trim();
|
|
1592
|
+
if (!parentConversationId || !threadId || !senderId) return;
|
|
1593
|
+
const expectedScopePrefix = `feishu:group:${normalizeLowercaseStringOrEmpty(parentConversationId)}:topic:${normalizeLowercaseStringOrEmpty(threadId)}:sender:`;
|
|
1594
|
+
const isSenderScopedSession = [params.sessionKey, params.parentSessionKey].some((candidate) => {
|
|
1595
|
+
const normalized = normalizeLowercaseStringOrEmpty(candidate ?? "");
|
|
1596
|
+
if (!normalized) return false;
|
|
1597
|
+
return normalized.replace(/^agent:[^:]+:/, "").startsWith(expectedScopePrefix);
|
|
1598
|
+
});
|
|
1599
|
+
const senderScopedConversationId = buildFeishuConversationId({
|
|
1600
|
+
chatId: parentConversationId,
|
|
1601
|
+
scope: "group_topic_sender",
|
|
1602
|
+
topicId: threadId,
|
|
1603
|
+
senderOpenId: senderId
|
|
1604
|
+
});
|
|
1605
|
+
if (isSenderScopedSession) return senderScopedConversationId;
|
|
1606
|
+
if (!params.sessionKey?.trim()) return;
|
|
1607
|
+
return getSessionBindingService().listBySession(params.sessionKey).find((binding) => {
|
|
1608
|
+
if (binding.conversation.channel !== "feishu" || binding.conversation.accountId !== params.accountId) return false;
|
|
1609
|
+
return binding.conversation.conversationId === senderScopedConversationId;
|
|
1610
|
+
})?.conversation.conversationId;
|
|
1611
|
+
}
|
|
1612
|
+
function resolveFeishuCommandConversation(params) {
|
|
1613
|
+
if (params.threadId) {
|
|
1614
|
+
const parentConversationId = parseFeishuTargetId(params.originatingTo) ?? parseFeishuTargetId(params.commandTo) ?? parseFeishuTargetId(params.fallbackTo);
|
|
1615
|
+
if (!parentConversationId) return null;
|
|
1616
|
+
return {
|
|
1617
|
+
conversationId: resolveFeishuSenderScopedCommandConversation({
|
|
1618
|
+
accountId: params.accountId,
|
|
1619
|
+
parentConversationId,
|
|
1620
|
+
threadId: params.threadId,
|
|
1621
|
+
senderId: params.senderId,
|
|
1622
|
+
sessionKey: params.sessionKey,
|
|
1623
|
+
parentSessionKey: params.parentSessionKey
|
|
1624
|
+
}) ?? buildFeishuConversationId({
|
|
1625
|
+
chatId: parentConversationId,
|
|
1626
|
+
scope: "group_topic",
|
|
1627
|
+
topicId: params.threadId
|
|
1628
|
+
}),
|
|
1629
|
+
parentConversationId
|
|
1630
|
+
};
|
|
1631
|
+
}
|
|
1632
|
+
const conversationId = parseFeishuDirectConversationId(params.originatingTo) ?? parseFeishuDirectConversationId(params.commandTo) ?? parseFeishuDirectConversationId(params.fallbackTo);
|
|
1633
|
+
return conversationId ? { conversationId } : null;
|
|
1634
|
+
}
|
|
1635
|
+
function jsonActionResult(details) {
|
|
1636
|
+
return {
|
|
1637
|
+
content: [{
|
|
1638
|
+
type: "text",
|
|
1639
|
+
text: JSON.stringify(details)
|
|
1640
|
+
}],
|
|
1641
|
+
details
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
function readFirstString(params, keys, fallback) {
|
|
1645
|
+
for (const key of keys) {
|
|
1646
|
+
const value = params[key];
|
|
1647
|
+
if (typeof value === "string" && value.trim()) return value.trim();
|
|
1648
|
+
}
|
|
1649
|
+
if (typeof fallback === "string" && fallback.trim()) return fallback.trim();
|
|
1650
|
+
}
|
|
1651
|
+
function readOptionalPositiveInteger(params, keys) {
|
|
1652
|
+
for (const key of keys) {
|
|
1653
|
+
const parsed = parseStrictPositiveInteger(params[key]);
|
|
1654
|
+
if (parsed !== void 0) return parsed;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
function resolveFeishuActionTarget(ctx) {
|
|
1658
|
+
return readFirstString(ctx.params, ["to", "target"], ctx.toolContext?.currentChannelId);
|
|
1659
|
+
}
|
|
1660
|
+
function resolveFeishuChatId(ctx) {
|
|
1661
|
+
const raw = readFirstString(ctx.params, [
|
|
1662
|
+
"chatId",
|
|
1663
|
+
"chat_id",
|
|
1664
|
+
"channelId",
|
|
1665
|
+
"channel_id",
|
|
1666
|
+
"to",
|
|
1667
|
+
"target"
|
|
1668
|
+
], ctx.toolContext?.currentChannelId);
|
|
1669
|
+
if (!raw) return;
|
|
1670
|
+
if (/^(user|dm|open_id):/i.test(raw)) return;
|
|
1671
|
+
if (/^(chat|group|channel):/i.test(raw)) return normalizeFeishuTarget(raw) ?? void 0;
|
|
1672
|
+
return raw;
|
|
1673
|
+
}
|
|
1674
|
+
function resolveFeishuMessageId(params) {
|
|
1675
|
+
return readFirstString(params, [
|
|
1676
|
+
"messageId",
|
|
1677
|
+
"message_id",
|
|
1678
|
+
"replyTo",
|
|
1679
|
+
"reply_to"
|
|
1680
|
+
]);
|
|
1681
|
+
}
|
|
1682
|
+
function resolveFeishuMemberId(params) {
|
|
1683
|
+
return readFirstString(params, [
|
|
1684
|
+
"memberId",
|
|
1685
|
+
"member_id",
|
|
1686
|
+
"userId",
|
|
1687
|
+
"user_id",
|
|
1688
|
+
"openId",
|
|
1689
|
+
"open_id",
|
|
1690
|
+
"unionId",
|
|
1691
|
+
"union_id"
|
|
1692
|
+
]);
|
|
1693
|
+
}
|
|
1694
|
+
function resolveFeishuMemberIdType(params) {
|
|
1695
|
+
const raw = readFirstString(params, [
|
|
1696
|
+
"memberIdType",
|
|
1697
|
+
"member_id_type",
|
|
1698
|
+
"userIdType",
|
|
1699
|
+
"user_id_type"
|
|
1700
|
+
]);
|
|
1701
|
+
if (raw === "open_id" || raw === "user_id" || raw === "union_id") return raw;
|
|
1702
|
+
if (readFirstString(params, ["userId", "user_id"]) && !readFirstString(params, [
|
|
1703
|
+
"openId",
|
|
1704
|
+
"open_id",
|
|
1705
|
+
"unionId",
|
|
1706
|
+
"union_id"
|
|
1707
|
+
])) return "user_id";
|
|
1708
|
+
if (readFirstString(params, ["unionId", "union_id"]) && !readFirstString(params, ["openId", "open_id"])) return "union_id";
|
|
1709
|
+
return "open_id";
|
|
1710
|
+
}
|
|
1711
|
+
const feishuPlugin = createChatChannelPlugin({
|
|
1712
|
+
base: {
|
|
1713
|
+
id: "feishu",
|
|
1714
|
+
meta: { ...meta },
|
|
1715
|
+
capabilities: {
|
|
1716
|
+
chatTypes: ["direct", "channel"],
|
|
1717
|
+
polls: false,
|
|
1718
|
+
threads: true,
|
|
1719
|
+
media: true,
|
|
1720
|
+
tts: { voice: {
|
|
1721
|
+
synthesisTarget: "voice-note",
|
|
1722
|
+
transcodesAudio: true
|
|
1723
|
+
} },
|
|
1724
|
+
reactions: true,
|
|
1725
|
+
edit: true,
|
|
1726
|
+
reply: true
|
|
1727
|
+
},
|
|
1728
|
+
agentPrompt: { messageToolHints: () => [
|
|
1729
|
+
"- Feishu targeting: omit `target` to reply to the current conversation (auto-inferred). Explicit targets: `user:open_id` or `chat:chat_id`.",
|
|
1730
|
+
"- Feishu supports interactive cards plus native image, file, audio, and video/media delivery.",
|
|
1731
|
+
"- Feishu supports `send`, `read`, `edit`, `thread-reply`, pins, and channel/member lookup, plus reactions when enabled."
|
|
1732
|
+
] },
|
|
1733
|
+
groups: { resolveToolPolicy: resolveFeishuGroupToolPolicy },
|
|
1734
|
+
conversationBindings: {
|
|
1735
|
+
defaultTopLevelPlacement: "current",
|
|
1736
|
+
buildModelOverrideParentCandidates: ({ parentConversationId }) => buildFeishuModelOverrideParentCandidates(parentConversationId)
|
|
1737
|
+
},
|
|
1738
|
+
mentions: { stripPatterns: () => ["<at user_id=\"[^\"]*\">[^<]*</at>"] },
|
|
1739
|
+
reload: { configPrefixes: ["channels.feishu"] },
|
|
1740
|
+
doctor: feishuDoctor,
|
|
1741
|
+
configSchema: buildChannelConfigSchema(FeishuConfigSchema),
|
|
1742
|
+
config: {
|
|
1743
|
+
...feishuConfigAdapter,
|
|
1744
|
+
setAccountEnabled: ({ cfg, accountId, enabled }) => {
|
|
1745
|
+
if (accountId === "default") return {
|
|
1746
|
+
...cfg,
|
|
1747
|
+
channels: {
|
|
1748
|
+
...cfg.channels,
|
|
1749
|
+
feishu: {
|
|
1750
|
+
...cfg.channels?.feishu,
|
|
1751
|
+
enabled
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
};
|
|
1755
|
+
return setFeishuNamedAccountEnabled(cfg, accountId, enabled);
|
|
1756
|
+
},
|
|
1757
|
+
deleteAccount: ({ cfg, accountId }) => {
|
|
1758
|
+
if (accountId === "default") {
|
|
1759
|
+
const next = { ...cfg };
|
|
1760
|
+
const nextChannels = { ...cfg.channels };
|
|
1761
|
+
delete nextChannels.feishu;
|
|
1762
|
+
if (Object.keys(nextChannels).length > 0) next.channels = nextChannels;
|
|
1763
|
+
else delete next.channels;
|
|
1764
|
+
return next;
|
|
1765
|
+
}
|
|
1766
|
+
const feishuCfg = cfg.channels?.feishu;
|
|
1767
|
+
const accounts = { ...feishuCfg?.accounts };
|
|
1768
|
+
delete accounts[accountId];
|
|
1769
|
+
return {
|
|
1770
|
+
...cfg,
|
|
1771
|
+
channels: {
|
|
1772
|
+
...cfg.channels,
|
|
1773
|
+
feishu: {
|
|
1774
|
+
...feishuCfg,
|
|
1775
|
+
accounts: Object.keys(accounts).length > 0 ? accounts : void 0
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
};
|
|
1779
|
+
},
|
|
1780
|
+
isConfigured: (account) => account.configured,
|
|
1781
|
+
describeAccount: (account) => describeAccountSnapshot({
|
|
1782
|
+
account,
|
|
1783
|
+
configured: account.configured,
|
|
1784
|
+
extra: {
|
|
1785
|
+
appId: account.appId,
|
|
1786
|
+
domain: account.domain
|
|
1787
|
+
}
|
|
1788
|
+
})
|
|
1789
|
+
},
|
|
1790
|
+
approvalCapability: feishuApprovalAuth,
|
|
1791
|
+
secrets: {
|
|
1792
|
+
secretTargetRegistryEntries,
|
|
1793
|
+
collectRuntimeConfigAssignments
|
|
1794
|
+
},
|
|
1795
|
+
actions: {
|
|
1796
|
+
messageActionTargetAliases,
|
|
1797
|
+
describeMessageTool: describeFeishuMessageTool,
|
|
1798
|
+
handleAction: async (ctx) => {
|
|
1799
|
+
const account = resolveFeishuAccount({
|
|
1800
|
+
cfg: ctx.cfg,
|
|
1801
|
+
accountId: ctx.accountId ?? void 0
|
|
1802
|
+
});
|
|
1803
|
+
if ((ctx.action === "react" || ctx.action === "reactions") && !isFeishuReactionsActionEnabled({
|
|
1804
|
+
cfg: ctx.cfg,
|
|
1805
|
+
account
|
|
1806
|
+
})) throw new Error("Feishu reactions are disabled via actions.reactions.");
|
|
1807
|
+
if (ctx.action === "send" || ctx.action === "thread-reply") {
|
|
1808
|
+
const to = resolveFeishuActionTarget(ctx);
|
|
1809
|
+
if (!to) throw new Error(`Feishu ${ctx.action} requires a target (to).`);
|
|
1810
|
+
const { replyToMessageId, replyInThread } = buildFeishuSendReplyAnchor(ctx);
|
|
1811
|
+
if (ctx.action === "thread-reply" && !replyToMessageId) throw new Error("Feishu thread-reply requires messageId.");
|
|
1812
|
+
const presentation = normalizeMessagePresentation(ctx.params.presentation);
|
|
1813
|
+
const text = readFirstString(ctx.params, ["text", "message"]);
|
|
1814
|
+
const mediaUrl = readFeishuMediaParam(ctx.params);
|
|
1815
|
+
const audioAsVoice = readBooleanParam(ctx.params, ["asVoice", "audioAsVoice"]);
|
|
1816
|
+
const card = presentation ? buildFeishuPresentationCard({
|
|
1817
|
+
presentation,
|
|
1818
|
+
fallbackText: text
|
|
1819
|
+
}) : void 0;
|
|
1820
|
+
if (card && mediaUrl) throw new Error(`Feishu ${ctx.action} does not support card with media.`);
|
|
1821
|
+
if (!card && !text && !mediaUrl) throw new Error(`Feishu ${ctx.action} requires text/message, media, or card.`);
|
|
1822
|
+
const runtime = await loadFeishuChannelRuntime();
|
|
1823
|
+
const maybeSendMedia = runtime.feishuOutbound.sendMedia;
|
|
1824
|
+
if (mediaUrl && !maybeSendMedia) throw new Error("Feishu media sending is not available.");
|
|
1825
|
+
const sendMedia = maybeSendMedia;
|
|
1826
|
+
let result;
|
|
1827
|
+
if (card) {
|
|
1828
|
+
if (containsLegacyFeishuCardCommandValue(card)) throw new Error("Feishu card buttons that trigger text or commands must use structured interaction envelopes.");
|
|
1829
|
+
result = await runtime.sendCardFeishu({
|
|
1830
|
+
cfg: ctx.cfg,
|
|
1831
|
+
to,
|
|
1832
|
+
card,
|
|
1833
|
+
accountId: ctx.accountId ?? void 0,
|
|
1834
|
+
replyToMessageId,
|
|
1835
|
+
replyInThread
|
|
1836
|
+
});
|
|
1837
|
+
} else if (mediaUrl) result = await sendMedia({
|
|
1838
|
+
cfg: ctx.cfg,
|
|
1839
|
+
to,
|
|
1840
|
+
text: text ?? "",
|
|
1841
|
+
mediaUrl,
|
|
1842
|
+
accountId: ctx.accountId ?? void 0,
|
|
1843
|
+
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
1844
|
+
...replyInThread ? { threadId: replyToMessageId } : { replyToId: replyToMessageId },
|
|
1845
|
+
...audioAsVoice === true ? { audioAsVoice: true } : {}
|
|
1846
|
+
});
|
|
1847
|
+
else result = await runtime.sendMessageFeishu({
|
|
1848
|
+
cfg: ctx.cfg,
|
|
1849
|
+
to,
|
|
1850
|
+
text,
|
|
1851
|
+
accountId: ctx.accountId ?? void 0,
|
|
1852
|
+
replyToMessageId,
|
|
1853
|
+
replyInThread
|
|
1854
|
+
});
|
|
1855
|
+
return jsonActionResult({
|
|
1856
|
+
ok: true,
|
|
1857
|
+
channel: "feishu",
|
|
1858
|
+
action: ctx.action,
|
|
1859
|
+
...result
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
if (ctx.action === "read") {
|
|
1863
|
+
const messageId = resolveFeishuMessageId(ctx.params);
|
|
1864
|
+
if (!messageId) throw new Error("Feishu read requires messageId.");
|
|
1865
|
+
const { getMessageFeishu } = await loadFeishuChannelRuntime();
|
|
1866
|
+
const message = await getMessageFeishu({
|
|
1867
|
+
cfg: ctx.cfg,
|
|
1868
|
+
messageId,
|
|
1869
|
+
accountId: ctx.accountId ?? void 0
|
|
1870
|
+
});
|
|
1871
|
+
if (!message) return {
|
|
1872
|
+
isError: true,
|
|
1873
|
+
content: [{
|
|
1874
|
+
type: "text",
|
|
1875
|
+
text: JSON.stringify({ error: `Feishu read failed or message not found: ${messageId}` })
|
|
1876
|
+
}],
|
|
1877
|
+
details: { error: `Feishu read failed or message not found: ${messageId}` }
|
|
1878
|
+
};
|
|
1879
|
+
return jsonActionResult({
|
|
1880
|
+
ok: true,
|
|
1881
|
+
channel: "feishu",
|
|
1882
|
+
action: "read",
|
|
1883
|
+
message
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
if (ctx.action === "edit") {
|
|
1887
|
+
const messageId = resolveFeishuMessageId(ctx.params);
|
|
1888
|
+
if (!messageId) throw new Error("Feishu edit requires messageId.");
|
|
1889
|
+
const text = readFirstString(ctx.params, ["text", "message"]);
|
|
1890
|
+
const card = ctx.params.card && typeof ctx.params.card === "object" ? ctx.params.card : void 0;
|
|
1891
|
+
const { editMessageFeishu } = await loadFeishuChannelRuntime();
|
|
1892
|
+
return jsonActionResult({
|
|
1893
|
+
ok: true,
|
|
1894
|
+
channel: "feishu",
|
|
1895
|
+
action: "edit",
|
|
1896
|
+
...await editMessageFeishu({
|
|
1897
|
+
cfg: ctx.cfg,
|
|
1898
|
+
messageId,
|
|
1899
|
+
text,
|
|
1900
|
+
card,
|
|
1901
|
+
accountId: ctx.accountId ?? void 0
|
|
1902
|
+
})
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
if (ctx.action === "pin") {
|
|
1906
|
+
const messageId = resolveFeishuMessageId(ctx.params);
|
|
1907
|
+
if (!messageId) throw new Error("Feishu pin requires messageId.");
|
|
1908
|
+
const { createPinFeishu } = await loadFeishuChannelRuntime();
|
|
1909
|
+
return jsonActionResult({
|
|
1910
|
+
ok: true,
|
|
1911
|
+
channel: "feishu",
|
|
1912
|
+
action: "pin",
|
|
1913
|
+
pin: await createPinFeishu({
|
|
1914
|
+
cfg: ctx.cfg,
|
|
1915
|
+
messageId,
|
|
1916
|
+
accountId: ctx.accountId ?? void 0
|
|
1917
|
+
})
|
|
1918
|
+
});
|
|
1919
|
+
}
|
|
1920
|
+
if (ctx.action === "unpin") {
|
|
1921
|
+
const messageId = resolveFeishuMessageId(ctx.params);
|
|
1922
|
+
if (!messageId) throw new Error("Feishu unpin requires messageId.");
|
|
1923
|
+
const { removePinFeishu } = await loadFeishuChannelRuntime();
|
|
1924
|
+
await removePinFeishu({
|
|
1925
|
+
cfg: ctx.cfg,
|
|
1926
|
+
messageId,
|
|
1927
|
+
accountId: ctx.accountId ?? void 0
|
|
1928
|
+
});
|
|
1929
|
+
return jsonActionResult({
|
|
1930
|
+
ok: true,
|
|
1931
|
+
channel: "feishu",
|
|
1932
|
+
action: "unpin",
|
|
1933
|
+
messageId
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1936
|
+
if (ctx.action === "list-pins") {
|
|
1937
|
+
const chatId = resolveFeishuChatId(ctx);
|
|
1938
|
+
if (!chatId) throw new Error("Feishu list-pins requires chatId or channelId.");
|
|
1939
|
+
const { listPinsFeishu } = await loadFeishuChannelRuntime();
|
|
1940
|
+
return jsonActionResult({
|
|
1941
|
+
ok: true,
|
|
1942
|
+
channel: "feishu",
|
|
1943
|
+
action: "list-pins",
|
|
1944
|
+
...await listPinsFeishu({
|
|
1945
|
+
cfg: ctx.cfg,
|
|
1946
|
+
chatId,
|
|
1947
|
+
startTime: readFirstString(ctx.params, ["startTime", "start_time"]),
|
|
1948
|
+
endTime: readFirstString(ctx.params, ["endTime", "end_time"]),
|
|
1949
|
+
pageSize: readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]),
|
|
1950
|
+
pageToken: readFirstString(ctx.params, ["pageToken", "page_token"]),
|
|
1951
|
+
accountId: ctx.accountId ?? void 0
|
|
1952
|
+
})
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
if (ctx.action === "channel-info") {
|
|
1956
|
+
const chatId = resolveFeishuChatId(ctx);
|
|
1957
|
+
if (!chatId) throw new Error("Feishu channel-info requires chatId or channelId.");
|
|
1958
|
+
const runtime = await loadFeishuChannelRuntime();
|
|
1959
|
+
const client = await createFeishuActionClient(account);
|
|
1960
|
+
const channel = await runtime.getChatInfo(client, chatId);
|
|
1961
|
+
if (!(ctx.params.includeMembers === true || ctx.params.members === true)) return jsonActionResult({
|
|
1962
|
+
ok: true,
|
|
1963
|
+
provider: "feishu",
|
|
1964
|
+
action: "channel-info",
|
|
1965
|
+
channel
|
|
1966
|
+
});
|
|
1967
|
+
return jsonActionResult({
|
|
1968
|
+
ok: true,
|
|
1969
|
+
provider: "feishu",
|
|
1970
|
+
action: "channel-info",
|
|
1971
|
+
channel,
|
|
1972
|
+
members: await runtime.getChatMembers(client, chatId, readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]), readFirstString(ctx.params, ["pageToken", "page_token"]), resolveFeishuMemberIdType(ctx.params))
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
if (ctx.action === "member-info") {
|
|
1976
|
+
const runtime = await loadFeishuChannelRuntime();
|
|
1977
|
+
const client = await createFeishuActionClient(account);
|
|
1978
|
+
const memberId = resolveFeishuMemberId(ctx.params);
|
|
1979
|
+
if (memberId) return jsonActionResult({
|
|
1980
|
+
ok: true,
|
|
1981
|
+
channel: "feishu",
|
|
1982
|
+
action: "member-info",
|
|
1983
|
+
member: await runtime.getFeishuMemberInfo(client, memberId, resolveFeishuMemberIdType(ctx.params))
|
|
1984
|
+
});
|
|
1985
|
+
const chatId = resolveFeishuChatId(ctx);
|
|
1986
|
+
if (!chatId) throw new Error("Feishu member-info requires memberId or chatId/channelId.");
|
|
1987
|
+
return jsonActionResult({
|
|
1988
|
+
ok: true,
|
|
1989
|
+
channel: "feishu",
|
|
1990
|
+
action: "member-info",
|
|
1991
|
+
...await runtime.getChatMembers(client, chatId, readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]), readFirstString(ctx.params, ["pageToken", "page_token"]), resolveFeishuMemberIdType(ctx.params))
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
if (ctx.action === "channel-list") {
|
|
1995
|
+
const runtime = await loadFeishuChannelRuntime();
|
|
1996
|
+
const query = readFirstString(ctx.params, ["query"]);
|
|
1997
|
+
const limit = readOptionalPositiveInteger(ctx.params, ["limit"]);
|
|
1998
|
+
const scope = readFirstString(ctx.params, ["scope", "kind"]) ?? "all";
|
|
1999
|
+
if (scope === "groups" || scope === "group" || scope === "channels" || scope === "channel") return jsonActionResult({
|
|
2000
|
+
ok: true,
|
|
2001
|
+
channel: "feishu",
|
|
2002
|
+
action: "channel-list",
|
|
2003
|
+
groups: await runtime.listFeishuDirectoryGroupsLive({
|
|
2004
|
+
cfg: ctx.cfg,
|
|
2005
|
+
query,
|
|
2006
|
+
limit,
|
|
2007
|
+
fallbackToStatic: false,
|
|
2008
|
+
accountId: ctx.accountId ?? void 0
|
|
2009
|
+
})
|
|
2010
|
+
});
|
|
2011
|
+
if (scope === "peers" || scope === "peer" || scope === "members" || scope === "member" || scope === "users" || scope === "user") return jsonActionResult({
|
|
2012
|
+
ok: true,
|
|
2013
|
+
channel: "feishu",
|
|
2014
|
+
action: "channel-list",
|
|
2015
|
+
peers: await runtime.listFeishuDirectoryPeersLive({
|
|
2016
|
+
cfg: ctx.cfg,
|
|
2017
|
+
query,
|
|
2018
|
+
limit,
|
|
2019
|
+
fallbackToStatic: false,
|
|
2020
|
+
accountId: ctx.accountId ?? void 0
|
|
2021
|
+
})
|
|
2022
|
+
});
|
|
2023
|
+
const [groups, peers] = await Promise.all([runtime.listFeishuDirectoryGroupsLive({
|
|
2024
|
+
cfg: ctx.cfg,
|
|
2025
|
+
query,
|
|
2026
|
+
limit,
|
|
2027
|
+
fallbackToStatic: false,
|
|
2028
|
+
accountId: ctx.accountId ?? void 0
|
|
2029
|
+
}), runtime.listFeishuDirectoryPeersLive({
|
|
2030
|
+
cfg: ctx.cfg,
|
|
2031
|
+
query,
|
|
2032
|
+
limit,
|
|
2033
|
+
fallbackToStatic: false,
|
|
2034
|
+
accountId: ctx.accountId ?? void 0
|
|
2035
|
+
})]);
|
|
2036
|
+
return jsonActionResult({
|
|
2037
|
+
ok: true,
|
|
2038
|
+
channel: "feishu",
|
|
2039
|
+
action: "channel-list",
|
|
2040
|
+
groups,
|
|
2041
|
+
peers
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
if (ctx.action === "react") {
|
|
2045
|
+
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2046
|
+
if (!messageId) throw new Error("Feishu reaction requires messageId.");
|
|
2047
|
+
const emoji = typeof ctx.params.emoji === "string" ? ctx.params.emoji.trim() : "";
|
|
2048
|
+
const remove = ctx.params.remove === true;
|
|
2049
|
+
const clearAll = ctx.params.clearAll === true;
|
|
2050
|
+
if (remove) {
|
|
2051
|
+
if (!emoji) throw new Error("Emoji is required to remove a Feishu reaction.");
|
|
2052
|
+
const { listReactionsFeishu, removeReactionFeishu } = await loadFeishuChannelRuntime();
|
|
2053
|
+
const ownReaction = (await listReactionsFeishu({
|
|
2054
|
+
cfg: ctx.cfg,
|
|
2055
|
+
messageId,
|
|
2056
|
+
emojiType: emoji,
|
|
2057
|
+
accountId: ctx.accountId ?? void 0
|
|
2058
|
+
})).find((entry) => entry.operatorType === "app");
|
|
2059
|
+
if (!ownReaction) return jsonActionResult({
|
|
2060
|
+
ok: true,
|
|
2061
|
+
removed: null
|
|
2062
|
+
});
|
|
2063
|
+
await removeReactionFeishu({
|
|
2064
|
+
cfg: ctx.cfg,
|
|
2065
|
+
messageId,
|
|
2066
|
+
reactionId: ownReaction.reactionId,
|
|
2067
|
+
accountId: ctx.accountId ?? void 0
|
|
2068
|
+
});
|
|
2069
|
+
return jsonActionResult({
|
|
2070
|
+
ok: true,
|
|
2071
|
+
removed: emoji
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
if (!emoji) {
|
|
2075
|
+
if (!clearAll) throw new Error("Emoji is required to add a Feishu reaction. Set clearAll=true to remove all bot reactions.");
|
|
2076
|
+
const { listReactionsFeishu, removeReactionFeishu } = await loadFeishuChannelRuntime();
|
|
2077
|
+
const reactions = await listReactionsFeishu({
|
|
2078
|
+
cfg: ctx.cfg,
|
|
2079
|
+
messageId,
|
|
2080
|
+
accountId: ctx.accountId ?? void 0
|
|
2081
|
+
});
|
|
2082
|
+
let removed = 0;
|
|
2083
|
+
for (const reaction of reactions.filter((entry) => entry.operatorType === "app")) {
|
|
2084
|
+
await removeReactionFeishu({
|
|
2085
|
+
cfg: ctx.cfg,
|
|
2086
|
+
messageId,
|
|
2087
|
+
reactionId: reaction.reactionId,
|
|
2088
|
+
accountId: ctx.accountId ?? void 0
|
|
2089
|
+
});
|
|
2090
|
+
removed += 1;
|
|
2091
|
+
}
|
|
2092
|
+
return jsonActionResult({
|
|
2093
|
+
ok: true,
|
|
2094
|
+
removed
|
|
2095
|
+
});
|
|
2096
|
+
}
|
|
2097
|
+
const { addReactionFeishu } = await loadFeishuChannelRuntime();
|
|
2098
|
+
await addReactionFeishu({
|
|
2099
|
+
cfg: ctx.cfg,
|
|
2100
|
+
messageId,
|
|
2101
|
+
emojiType: emoji,
|
|
2102
|
+
accountId: ctx.accountId ?? void 0
|
|
2103
|
+
});
|
|
2104
|
+
return jsonActionResult({
|
|
2105
|
+
ok: true,
|
|
2106
|
+
added: emoji
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2109
|
+
if (ctx.action === "reactions") {
|
|
2110
|
+
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2111
|
+
if (!messageId) throw new Error("Feishu reactions lookup requires messageId.");
|
|
2112
|
+
const { listReactionsFeishu } = await loadFeishuChannelRuntime();
|
|
2113
|
+
return jsonActionResult({
|
|
2114
|
+
ok: true,
|
|
2115
|
+
reactions: await listReactionsFeishu({
|
|
2116
|
+
cfg: ctx.cfg,
|
|
2117
|
+
messageId,
|
|
2118
|
+
accountId: ctx.accountId ?? void 0
|
|
2119
|
+
})
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
throw new Error(`Unsupported Feishu action: "${ctx.action}"`);
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
bindings: {
|
|
2126
|
+
compileConfiguredBinding: ({ conversationId }) => normalizeFeishuAcpConversationId(conversationId),
|
|
2127
|
+
matchInboundConversation: ({ compiledBinding, conversationId, parentConversationId }) => matchFeishuAcpConversation({
|
|
2128
|
+
bindingConversationId: compiledBinding.conversationId,
|
|
2129
|
+
conversationId,
|
|
2130
|
+
parentConversationId
|
|
2131
|
+
}),
|
|
2132
|
+
resolveCommandConversation: ({ accountId, threadId, senderId, sessionKey, parentSessionKey, originatingTo, commandTo, fallbackTo }) => resolveFeishuCommandConversation({
|
|
2133
|
+
accountId,
|
|
2134
|
+
threadId,
|
|
2135
|
+
senderId,
|
|
2136
|
+
sessionKey,
|
|
2137
|
+
parentSessionKey,
|
|
2138
|
+
originatingTo,
|
|
2139
|
+
commandTo,
|
|
2140
|
+
fallbackTo
|
|
2141
|
+
})
|
|
2142
|
+
},
|
|
2143
|
+
auth: { login: async ({ cfg }) => {
|
|
2144
|
+
const { createClackPrompter } = await import("./plugin-sdk/setup-runtime.js");
|
|
2145
|
+
const { replaceConfigFile } = await import("./plugin-sdk/config-mutation.js");
|
|
2146
|
+
const nextCfg = await runFeishuLogin({
|
|
2147
|
+
cfg,
|
|
2148
|
+
prompter: createClackPrompter()
|
|
2149
|
+
});
|
|
2150
|
+
if (nextCfg !== cfg) await replaceConfigFile({
|
|
2151
|
+
nextConfig: nextCfg,
|
|
2152
|
+
afterWrite: { mode: "auto" }
|
|
2153
|
+
});
|
|
2154
|
+
} },
|
|
2155
|
+
setup: feishuSetupAdapter,
|
|
2156
|
+
setupWizard: feishuSetupWizard,
|
|
2157
|
+
messaging: {
|
|
2158
|
+
targetPrefixes: ["feishu", "lark"],
|
|
2159
|
+
normalizeTarget: (raw) => normalizeFeishuTarget(raw) ?? void 0,
|
|
2160
|
+
resolveDeliveryTarget: ({ conversationId, parentConversationId }) => {
|
|
2161
|
+
const directId = parseFeishuDirectConversationId(conversationId);
|
|
2162
|
+
if (directId) return { to: `user:${directId}` };
|
|
2163
|
+
const parsed = parseFeishuConversationId({
|
|
2164
|
+
conversationId,
|
|
2165
|
+
parentConversationId
|
|
2166
|
+
});
|
|
2167
|
+
if (parsed?.topicId) return {
|
|
2168
|
+
to: `chat:${parentConversationId?.trim() || parsed.chatId}`,
|
|
2169
|
+
threadId: parsed.topicId
|
|
2170
|
+
};
|
|
2171
|
+
return { to: `chat:${parsed?.chatId ?? conversationId.trim()}` };
|
|
2172
|
+
},
|
|
2173
|
+
resolveSessionConversation: ({ kind, rawId }) => resolveFeishuSessionConversation({
|
|
2174
|
+
kind,
|
|
2175
|
+
rawId
|
|
2176
|
+
}),
|
|
2177
|
+
resolveOutboundSessionRoute: (params) => resolveFeishuOutboundSessionRoute(params),
|
|
2178
|
+
targetResolver: {
|
|
2179
|
+
looksLikeId: looksLikeFeishuId,
|
|
2180
|
+
hint: "<chatId|user:openId|chat:chatId>"
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
directory: createChannelDirectoryAdapter({
|
|
2184
|
+
listPeers: async ({ cfg, query, limit, accountId }) => listFeishuDirectoryPeers({
|
|
2185
|
+
cfg,
|
|
2186
|
+
query: query ?? void 0,
|
|
2187
|
+
limit: limit ?? void 0,
|
|
2188
|
+
accountId: accountId ?? void 0
|
|
2189
|
+
}),
|
|
2190
|
+
listGroups: async ({ cfg, query, limit, accountId }) => listFeishuDirectoryGroups({
|
|
2191
|
+
cfg,
|
|
2192
|
+
query: query ?? void 0,
|
|
2193
|
+
limit: limit ?? void 0,
|
|
2194
|
+
accountId: accountId ?? void 0
|
|
2195
|
+
}),
|
|
2196
|
+
...createRuntimeDirectoryLiveAdapter({
|
|
2197
|
+
getRuntime: loadFeishuChannelRuntime,
|
|
2198
|
+
listPeersLive: (runtime) => async ({ cfg, query, limit, accountId }) => await runtime.listFeishuDirectoryPeersLive({
|
|
2199
|
+
cfg,
|
|
2200
|
+
query: query ?? void 0,
|
|
2201
|
+
limit: limit ?? void 0,
|
|
2202
|
+
accountId: accountId ?? void 0
|
|
2203
|
+
}),
|
|
2204
|
+
listGroupsLive: (runtime) => async ({ cfg, query, limit, accountId }) => await runtime.listFeishuDirectoryGroupsLive({
|
|
2205
|
+
cfg,
|
|
2206
|
+
query: query ?? void 0,
|
|
2207
|
+
limit: limit ?? void 0,
|
|
2208
|
+
accountId: accountId ?? void 0
|
|
2209
|
+
})
|
|
2210
|
+
})
|
|
2211
|
+
}),
|
|
2212
|
+
status: createComputedAccountStatusAdapter({
|
|
2213
|
+
defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID, { port: null }),
|
|
2214
|
+
buildChannelSummary: ({ snapshot }) => buildProbeChannelStatusSummary(snapshot, { port: snapshot.port ?? null }),
|
|
2215
|
+
probeAccount: async ({ account }) => await (await loadFeishuChannelRuntime()).probeFeishu(account),
|
|
2216
|
+
resolveAccountSnapshot: ({ account, runtime }) => ({
|
|
2217
|
+
accountId: account.accountId,
|
|
2218
|
+
enabled: account.enabled,
|
|
2219
|
+
configured: account.configured,
|
|
2220
|
+
name: account.name,
|
|
2221
|
+
extra: {
|
|
2222
|
+
appId: account.appId,
|
|
2223
|
+
domain: account.domain,
|
|
2224
|
+
port: runtime?.port ?? null
|
|
2225
|
+
}
|
|
2226
|
+
})
|
|
2227
|
+
}),
|
|
2228
|
+
gateway: { startAccount: async (ctx) => {
|
|
2229
|
+
const { monitorFeishuProvider } = await import("./monitor-CqWICrjO.js");
|
|
2230
|
+
const account = resolveFeishuRuntimeAccount({
|
|
2231
|
+
cfg: ctx.cfg,
|
|
2232
|
+
accountId: ctx.accountId
|
|
2233
|
+
}, { requireEventSecrets: true });
|
|
2234
|
+
const port = account.config?.webhookPort ?? null;
|
|
2235
|
+
ctx.setStatus({
|
|
2236
|
+
accountId: ctx.accountId,
|
|
2237
|
+
port
|
|
2238
|
+
});
|
|
2239
|
+
ctx.log?.info(`starting feishu[${ctx.accountId}] (mode: ${account.config?.connectionMode ?? "websocket"})`);
|
|
2240
|
+
return monitorFeishuProvider({
|
|
2241
|
+
config: ctx.cfg,
|
|
2242
|
+
runtime: ctx.runtime,
|
|
2243
|
+
abortSignal: ctx.abortSignal,
|
|
2244
|
+
accountId: ctx.accountId
|
|
2245
|
+
});
|
|
2246
|
+
} },
|
|
2247
|
+
message: feishuMessageAdapter
|
|
2248
|
+
},
|
|
2249
|
+
security: {
|
|
2250
|
+
collectWarnings: projectConfigAccountIdWarningCollector(collectFeishuSecurityWarnings),
|
|
2251
|
+
collectAuditFindings: ({ cfg }) => collectFeishuSecurityAuditFindings({ cfg })
|
|
2252
|
+
},
|
|
2253
|
+
pairing: { text: {
|
|
2254
|
+
idLabel: "feishuUserId",
|
|
2255
|
+
message: PAIRING_APPROVED_MESSAGE,
|
|
2256
|
+
normalizeAllowEntry: createPairingPrefixStripper(/^(feishu|user|open_id):/i),
|
|
2257
|
+
notify: async ({ cfg, id, message, accountId }) => {
|
|
2258
|
+
const { sendMessageFeishu } = await loadFeishuChannelRuntime();
|
|
2259
|
+
await sendMessageFeishu({
|
|
2260
|
+
cfg,
|
|
2261
|
+
to: id,
|
|
2262
|
+
text: message,
|
|
2263
|
+
accountId
|
|
2264
|
+
});
|
|
2265
|
+
}
|
|
2266
|
+
} },
|
|
2267
|
+
outbound: {
|
|
2268
|
+
deliveryMode: "direct",
|
|
2269
|
+
chunker: chunkTextForOutbound,
|
|
2270
|
+
chunkerMode: "markdown",
|
|
2271
|
+
textChunkLimit: 4e3,
|
|
2272
|
+
presentationCapabilities: {
|
|
2273
|
+
supported: true,
|
|
2274
|
+
buttons: true,
|
|
2275
|
+
selects: false,
|
|
2276
|
+
context: true,
|
|
2277
|
+
divider: true,
|
|
2278
|
+
limits: {
|
|
2279
|
+
actions: {
|
|
2280
|
+
maxActions: 20,
|
|
2281
|
+
maxActionsPerRow: 5,
|
|
2282
|
+
maxLabelLength: 40,
|
|
2283
|
+
maxValueBytes: 1024
|
|
2284
|
+
},
|
|
2285
|
+
text: {
|
|
2286
|
+
maxLength: 4e3,
|
|
2287
|
+
encoding: "characters",
|
|
2288
|
+
markdownDialect: "markdown"
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
},
|
|
2292
|
+
renderPresentation: async (ctx) => {
|
|
2293
|
+
const renderPresentation = (await loadFeishuChannelRuntime()).feishuOutbound.renderPresentation;
|
|
2294
|
+
return renderPresentation ? await renderPresentation(ctx) : null;
|
|
2295
|
+
},
|
|
2296
|
+
sendPayload: async (ctx) => {
|
|
2297
|
+
const sendPayload = (await loadFeishuChannelRuntime()).feishuOutbound.sendPayload;
|
|
2298
|
+
if (!sendPayload) throw new Error("Feishu payload sending is not available.");
|
|
2299
|
+
return await sendPayload(ctx);
|
|
2300
|
+
},
|
|
2301
|
+
...createRuntimeOutboundDelegates({
|
|
2302
|
+
getRuntime: loadFeishuChannelRuntime,
|
|
2303
|
+
sendText: { resolve: (runtime) => runtime.feishuOutbound.sendText },
|
|
2304
|
+
sendMedia: { resolve: (runtime) => runtime.feishuOutbound.sendMedia }
|
|
2305
|
+
})
|
|
2306
|
+
}
|
|
2307
|
+
});
|
|
2308
|
+
//#endregion
|
|
2309
|
+
export { setFeishuNamedAccountEnabled$1 as a, feishuSetupAdapter as i, feishuSetupWizard as n, runFeishuLogin as r, feishuPlugin as t };
|