fengming 0.3.8 → 0.3.9
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 +8 -0
- package/dist/abort-CCR8oZyg.js +277 -0
- package/dist/abort.runtime-eqx84NZa.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/acp-spawn-BcDyvaXh.js +2 -0
- package/dist/acp-spawn-CCtSel-_.js +1286 -0
- package/dist/acp-stateful-target-driver-B3pCvuOV.js +89 -0
- package/dist/active-tool-schema-warnings-Cf-5q5WU.js +105 -0
- package/dist/active-tool-schema-warnings-Dzt3XE-y.js +2 -0
- package/dist/agent-1M2dVE2G.js +2 -0
- package/dist/agent-DLDIbUT4.js +1825 -0
- package/dist/agent-DZi6j3o6.js +3 -0
- package/dist/agent-command-ppfDBwET.js +1435 -0
- package/dist/agent-harness-runtime-C0bo62eY.d.ts +913 -0
- package/dist/agent-harness-runtime-RkTGiliR.js +207 -0
- package/dist/agent-runner-utils-B4YeVAO_.js +267 -0
- package/dist/agent-runner.runtime-T_3tlZN1.js +3784 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agent-runtime-CloshyK-.d.ts +207 -0
- package/dist/agent-runtime-DZsmp1xr.js +199 -0
- package/dist/agent-tools-CET9usCz.js +2506 -0
- package/dist/agent-via-gateway-CZ0X0YkM.js +486 -0
- package/dist/agent-wait-dedupe-I81_F2tr.js +180 -0
- package/dist/agents/embedded-agent-runner/run/runtime-context-prompt.d.ts +1 -1
- package/dist/agents/embedded-agent-runner/tool-split.d.ts +1 -1
- package/dist/agents/model-catalog.runtime.d.ts +1 -1
- package/dist/api-BDB5xHYj.js +3 -0
- package/dist/api-BH7bfI5d.js +6 -0
- package/dist/api-BxJNXitd.js +2 -0
- package/dist/approval-client-helpers-CfQA9Jzh.d.ts +78 -0
- package/dist/approval-native-helpers-B2zyhxWc.d.ts +241 -0
- package/dist/approval-renderers-CMqSXyvm.d.ts +39 -0
- package/dist/assistant-Cu_Mzzgu.js +291 -0
- package/dist/attachment-normalize-Bb3v5iCC.js +213 -0
- package/dist/attempt-execution-BskbAq5I.js +584 -0
- package/dist/attempt-execution.runtime-BuT1wpNS.js +3 -0
- package/dist/attempt-execution.runtime.js +1 -1
- package/dist/attempt.prompt-helpers-ByKj-vQ7.js +543 -0
- package/dist/auto-reply/reply/commands-crestodian.d.ts +1 -1
- package/dist/binding-routing-EGRNvRC4.js +113 -0
- package/dist/binding-targets-B9vYS8n6.js +121 -0
- package/dist/bridge-server-DG9YtKQe.js +113 -0
- package/dist/browser-cli-B0Ou-Nbm.js +2 -0
- package/dist/browser-cli-GF25gL6M.js +230 -0
- package/dist/browser-cli-actions-input-CuER6RVe.js +522 -0
- package/dist/browser-cli-actions-observe-Dq-Zz_FA.js +81 -0
- package/dist/browser-cli-debug-7hvb49S1.js +137 -0
- package/dist/browser-cli-inspect-WU5KeWOK.js +117 -0
- package/dist/browser-cli-manage-B9D9BvSe.js +446 -0
- package/dist/browser-cli-resize-BUOusOPb.js +32 -0
- package/dist/browser-cli-shared-DmpSN-Qi.js +69 -0
- package/dist/browser-cli-state-D_YxTqRw.js +371 -0
- package/dist/browser-control-auth-Cqd1n9FA.js +2 -0
- package/dist/browser-profiles-9tQ05wYh.js +2 -0
- package/dist/browser-runtime-Bbzumoha.js +389 -0
- package/dist/build-CBXuT2K1.js +261 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/bundled-channel-config-schema-DpdKMATU.d.ts +3168 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/capability-cli-CiVGX7ut.js +1809 -0
- package/dist/channel-BIVwHq7P.js +2309 -0
- package/dist/channel-CiA2FVdL.d.ts +427 -0
- package/dist/channel-core-Cj9JTqeu.js +5 -0
- package/dist/channel-core-DjVpcH1C.d.ts +6 -0
- package/dist/channel-entry-contract-Bs_54m1D.d.ts +114 -0
- package/dist/channel-inbound-CdUdeQRa.js +121 -0
- package/dist/channel-inbound-iGiqx6CS.d.ts +97 -0
- package/dist/channel-message-C3QPaDUk.js +12 -0
- package/dist/channel-message-CXDjxb2U.d.ts +9 -0
- package/dist/channel-outbound-ofvvmMSK.d.ts +325 -0
- package/dist/channel-pairing-DKscOV1K.d.ts +58 -0
- package/dist/channel.runtime-VW6PW_ez.js +697 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/chat-CFkQepUQ.js +3 -0
- package/dist/chat-Czh_tXM0.js +2940 -0
- package/dist/chrome-B2cq8YyH.js +1517 -0
- package/dist/cli/run-main.js +5 -5
- package/dist/cli-compaction-Dxv4nt7R.js +363 -0
- package/dist/cli-runner-CimXSTVs.js +2 -0
- package/dist/cli-runner-orCzE1Sr.js +597 -0
- package/dist/cli-runner.runtime-CsW0dXJW.js +3 -0
- package/dist/cli-runner.runtime-DgPrc1do.js +4 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-startup-metadata.json +10 -12
- package/dist/command-registry-C5ooX6PF.js +4 -0
- package/dist/command-registry-DMB-HKIk.js +9 -0
- package/dist/command-registry-core-B2w_XWvn.js +114 -0
- package/dist/command-status.runtime-Bdy3Dkar.js +90 -0
- package/dist/command-status.runtime.js +1 -1
- package/dist/commands-compact.runtime-Bk2jTQo6.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-handlers.runtime-Csw1og0U.js +6327 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-mRqmLIVz.d.ts +117 -0
- package/dist/commands-status-Dgrj_ubK.js +3 -0
- package/dist/commands-status-s32HJOpD.js +16 -0
- package/dist/commands-status.runtime-Dgrj_ubK.js +3 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-C_hnOO9l.js +2 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands-system-prompt-CQV742Cc.js +2 -0
- package/dist/commands-system-prompt-DTfsKwK1.js +161 -0
- package/dist/commands-types-MXHhrssO.d.ts +132 -0
- package/dist/commands.runtime-akiVK67l.js +175 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/commitments/runtime.js +1 -1
- package/dist/compact-U6ZhvPtD.js +1165 -0
- package/dist/compact.runtime-36E5vKsC.js +12 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-Bf4mEw2W.js +393 -0
- package/dist/config-BJJhHN9E.js +374 -0
- package/dist/config-mutations-swLu-j_p.js +161 -0
- package/dist/config-schema-Tjner6bM.d.ts +20 -0
- package/dist/context-engine-host-compat-6fkn_daV.js +280 -0
- package/dist/context-engine-host-compat-DtAZC1bS.js +2 -0
- package/dist/context-engine-lifecycle-R__Idxi1.js +627 -0
- package/dist/control-auth-DnkI94_D.js +114 -0
- package/dist/control-service-BBsamNjq.js +40 -0
- package/dist/control-service-BGpHj7RL.js +3 -0
- package/dist/control-ui/assets/activity-B2W-IeAT.js +124 -0
- package/dist/control-ui/assets/agents-mRUyNVCz.js +1030 -0
- package/dist/control-ui/assets/channels-8QHOqBnt.js +120 -0
- package/dist/control-ui/assets/cron-H3unP_mO.js +1016 -0
- package/dist/control-ui/assets/debug-CxLsQ9vH.js +97 -0
- package/dist/control-ui/assets/index-jtIYT0Eh.js +7214 -0
- package/dist/control-ui/assets/instances-B1JQeCRb.js +57 -0
- package/dist/control-ui/assets/nodes-RGOmq_1l.js +444 -0
- package/dist/control-ui/assets/sessions-C2O-Jgpg.js +425 -0
- package/dist/control-ui/assets/skills-jyJOYA4I.js +362 -0
- package/dist/control-ui/assets/workboard-uM_kK8cQ.js +402 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/sw.js +1 -1
- package/dist/conversation-runtime-DDekWU-U.js +31 -0
- package/dist/core-Bpk-qSJH.js +284 -0
- package/dist/core-Chrz4oRB.d.ts +223 -0
- package/dist/core-api-DSpUKNVW.js +2 -0
- package/dist/core-api-hLsW03Wo.js +5 -0
- package/dist/crestodian/crestodian.js +1 -1
- package/dist/crestodian/rescue-message.d.ts +1 -1
- package/dist/crestodian/rescue-message.js +1 -1
- package/dist/crestodian-C0x7JjF-.js +55 -0
- package/dist/delegate-BArFIZ4B.d.ts +30 -0
- package/dist/deliver-BnVp3VbL.d.ts +111 -0
- package/dist/delivery-queue-BFOASdf5.d.ts +161 -0
- package/dist/delivery-queue-runtime-BFfc8AEs.d.ts +9 -0
- package/dist/dialogue-No0NvYX7.js +37 -0
- package/dist/direct-dm-C-h88JJH.d.ts +79 -0
- package/dist/directive-handling.fast-lane-DTyDKhZb.js +70 -0
- package/dist/directive-handling.impl-DMReM6tu.js +2 -0
- package/dist/directive-handling.impl-DzPouhV-.js +823 -0
- package/dist/directive-handling.model-selection-BjwTBAZJ.js +122 -0
- package/dist/directive-handling.persist.runtime-D_O1okkR.js +274 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/dispatch-Dtl-oRuN.js +2057 -0
- package/dist/dispatch-acp-transcript.runtime-M4y0Dq74.js +40 -0
- package/dist/dispatch-acp-transcript.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-B8uCIKZS.js +18 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/dispatcher-DslvaRcj.js +106 -0
- package/dist/doctor-config-flow-LU2C94af.js +1819 -0
- package/dist/doctor-core-checks-BqcjExIZ.js +666 -0
- package/dist/doctor-core-checks-Diuk8l0N.js +2 -0
- package/dist/doctor-core-checks.runtime-DbS-kMZN.js +278 -0
- package/dist/doctor-core-checks.runtime.js +1 -1
- package/dist/doctor-health-BdqHwfYE.js +65 -0
- package/dist/doctor-health-contributions-DLLTVnll.js +874 -0
- package/dist/doctor-lint-PZqkVMWf.js +95 -0
- package/dist/doctor-mRfJMSb5.js +6 -0
- package/dist/doctor-state-integrity-Cdlm-peH.js +1257 -0
- package/dist/draft-stream-controls-B7uLonbw.d.ts +159 -0
- package/dist/embedded-agent-CEpOPW6X.js +4 -0
- package/dist/embedded-agent-CNINO_M-.d.ts +5 -0
- package/dist/embedded-agent-DxwzoZkp.js +4074 -0
- package/dist/embedded-agent.runtime-DDbhA85-.js +4 -0
- package/dist/embedded-agent.runtime.js +1 -1
- package/dist/embedded-backend-ChaKCepC.js +1581 -0
- package/dist/embedded-gateway-stub.runtime-e_ZxGhcW.js +12 -0
- package/dist/embedded-gateway-stub.runtime.js +1 -1
- package/dist/entry.d.ts +1 -1
- package/dist/extensionAPI.d.ts +2 -2
- package/dist/extensionAPI.js +1 -1
- package/dist/extensions/active-memory/index.d.ts +1 -1
- package/dist/extensions/active-memory/index.js +1 -1
- package/dist/extensions/admin-http-rpc/index.d.ts +1 -1
- package/dist/extensions/admin-http-rpc/index.js +1 -1
- package/dist/extensions/bonjour/index.d.ts +1 -1
- package/dist/extensions/browser/browser-bridge.js +1 -1
- package/dist/extensions/browser/browser-config.js +4 -4
- package/dist/extensions/browser/browser-control-auth.js +2 -2
- package/dist/extensions/browser/browser-doctor.js +2 -2
- package/dist/extensions/browser/browser-maintenance.js +1 -1
- package/dist/extensions/browser/browser-profiles.js +2 -2
- package/dist/extensions/browser/browser-runtime-api.js +12 -12
- package/dist/extensions/browser/cli-metadata.d.ts +1 -1
- package/dist/extensions/browser/cli-metadata.js +1 -1
- package/dist/extensions/browser/index.d.ts +1 -1
- package/dist/extensions/browser/index.js +1 -1
- package/dist/extensions/browser/plugin-registration.d.ts +1 -1
- package/dist/extensions/browser/plugin-registration.js +1 -1
- package/dist/extensions/browser/register.runtime.d.ts +2 -2
- package/dist/extensions/browser/register.runtime.js +4 -4
- package/dist/extensions/browser/runtime-api.d.ts +3 -3
- package/dist/extensions/browser/runtime-api.js +14 -14
- package/dist/extensions/browser/setup-api.d.ts +1 -1
- package/dist/extensions/canvas/cli-metadata.d.ts +1 -1
- package/dist/extensions/canvas/index.d.ts +1 -1
- package/dist/extensions/canvas/index.js +1 -1
- package/dist/extensions/canvas/setup-api.d.ts +1 -1
- package/dist/extensions/deepseek/api.d.ts +1 -1
- package/dist/extensions/deepseek/index.d.ts +1 -1
- package/dist/extensions/deepseek/provider-discovery.d.ts +1 -1
- package/dist/extensions/deepseek/stream.d.ts +1 -1
- package/dist/extensions/device-pair/api.d.ts +4 -4
- package/dist/extensions/device-pair/api.js +1 -1
- package/dist/extensions/device-pair/index.d.ts +1 -1
- package/dist/extensions/device-pair/notify.d.ts +1 -1
- package/dist/extensions/device-pair/pair-command-approve.js +1 -1
- package/dist/extensions/device-pair/qr-image.d.ts +1 -1
- package/dist/extensions/memory-core/api.d.ts +1 -1
- package/dist/extensions/memory-core/cli-metadata.d.ts +1 -1
- package/dist/extensions/memory-core/cli-metadata.js +1 -1
- package/dist/extensions/memory-core/index.d.ts +1 -1
- package/dist/extensions/memory-core/manager-runtime.d.ts +1 -1
- package/dist/extensions/memory-core/runtime-api.d.ts +3 -3
- package/dist/extensions/skill-workshop/api.d.ts +2 -2
- package/dist/extensions/skill-workshop/api.js +1 -1
- package/dist/extensions/skill-workshop/index.d.ts +1 -1
- package/dist/extensions/skill-workshop/index.js +2 -2
- package/dist/extensions/tavily/index.d.ts +1 -1
- package/dist/extensions/tavily/web-search-contract-api.d.ts +1 -1
- package/dist/extensions/tavily/web-search-provider.d.ts +1 -1
- package/dist/extensions/thread-ownership/api.d.ts +2 -2
- package/dist/extensions/thread-ownership/index.d.ts +1 -1
- package/dist/extensions/webhooks/api.d.ts +2 -2
- package/dist/extensions/webhooks/api.js +1 -1
- package/dist/extensions/webhooks/index.d.ts +1 -1
- package/dist/extensions/webhooks/index.js +1 -1
- package/dist/extensions/webhooks/runtime-api.d.ts +1 -1
- package/dist/extensions/workboard/api.d.ts +2 -2
- package/dist/extensions/workboard/index.d.ts +1 -1
- package/dist/extensions/workboard/index.js +1 -1
- package/dist/extensions/workboard/runtime-api.d.ts +1 -1
- package/dist/fengming-runtime-CtRd5677.d.ts +153 -0
- package/dist/fengming-tools-DBLsJfsf.js +12221 -0
- package/dist/gateway/protocol/index.d.ts +1 -1
- package/dist/gateway-cli-BgDV2HF9.js +443 -0
- package/dist/gateway-method-runtime-d9oN_XO9.js +21 -0
- package/dist/get-reply-CEMtvaTJ.js +5198 -0
- package/dist/get-reply-from-config.runtime-CE8zmX7o.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/heartbeat-runner-H8SmaKmJ.js +5 -0
- package/dist/heartbeat-runner.runtime-6hUaxEbl.js +3 -0
- package/dist/heartbeat-runner.runtime.js +1 -1
- package/dist/hooks-DkEvkwzS.js +536 -0
- package/dist/host-compat-DeAq3dnI.d.ts +21 -0
- package/dist/http-registry-BDoApjTY.d.ts +23 -0
- package/dist/inbound-reply-dispatch-CIYP2OPo.d.ts +156 -0
- package/dist/inbound-reply-dispatch-geHu6oUK.js +147 -0
- package/dist/inbound-reply-dispatch-vwW5Hl-_.js +2 -0
- package/dist/index-DhOQs6M_.d.ts +1497 -0
- package/dist/index.js +1 -1
- package/dist/init-DpE_6dG4.js +59 -0
- package/dist/interactive-Cb_1f91G.d.ts +26 -0
- package/dist/isolated-agent-B_upYOOM.js +2 -0
- package/dist/isolated-agent-KH9uwWhw.js +1097 -0
- package/dist/kernel-BHnBXnm2.d.ts +241 -0
- package/dist/lifecycle-BmZwopzF.js +570 -0
- package/dist/list.probe-5kzWm9Jk.js +451 -0
- package/dist/list.probe-9zBcGGQ4.js +2 -0
- package/dist/list.status-command-DY2ifqp1.js +815 -0
- package/dist/llm-slug-generator-Bmx0I84M.js +78 -0
- package/dist/llm-slug-generator.js +1 -1
- package/dist/loader-BVz75gSb.d.ts +142 -0
- package/dist/local-dispatch.runtime-CX3IOY1E.js +10 -0
- package/dist/local-dispatch.runtime.js +1 -1
- package/dist/manager-BXGg8bfG.d.ts +409 -0
- package/dist/mcp-http-B1lnh67s.js +2 -0
- package/dist/mcp-http-CamghE-W.js +583 -0
- package/dist/media-runtime-DpykroJR.d.ts +261 -0
- package/dist/memory-core-host-engine-embeddings-N2dX5P40.d.ts +324 -0
- package/dist/memory-core-host-engine-storage-WQfkQMer.d.ts +54 -0
- package/dist/message-handler-Ca_pqGVS.js +1806 -0
- package/dist/model-catalog-BBMLIjhq.d.ts +88 -0
- package/dist/model-selection-Cq82FXLy.js +352 -0
- package/dist/models-cli-Dm_393dw.js +257 -0
- package/dist/monitor-d0eyE2k0.js +60 -0
- package/dist/monitor.account-vLQ3bKHu.js +5382 -0
- package/dist/nodes-Bunvrb33.js +1483 -0
- package/dist/nodes-edNlxb2I.js +3 -0
- package/dist/nodes-pending-DEIwVh9v.js +211 -0
- package/dist/openai-compat-errors-CvWEoG98.js +136 -0
- package/dist/openai-http-Bskdv4Tv.js +836 -0
- package/dist/openresponses-http-DxdgCxFU.js +1175 -0
- package/dist/operations-Z85LFqsT.js +805 -0
- package/dist/outbound.types-DVkbsxo8.d.ts +291 -0
- package/dist/plugin-enabled-fvhTpvYS.js +232 -0
- package/dist/plugin-entry-CunlVUw6.d.ts +47 -0
- package/dist/plugin-registration-9ovnK_Tk.js +97 -0
- package/dist/plugin-runtime-DH2ZM9P5.d.ts +117 -0
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/acp-runtime-backend.js +1 -1
- package/dist/plugin-sdk/acp-runtime.js +1 -1
- package/dist/plugin-sdk/agent-harness-runtime.js +5 -5
- package/dist/plugin-sdk/agent-harness-task-runtime.js +1 -1
- package/dist/plugin-sdk/agent-harness.js +6 -6
- package/dist/plugin-sdk/agent-runtime.js +2 -2
- package/dist/plugin-sdk/bundled-channel-config-schema-Dfn3b8sF.d.ts +3169 -0
- package/dist/plugin-sdk/bundled-channel-config-schema.d.ts +1 -1
- 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 +2 -2
- package/dist/plugin-sdk/channel-location.js +1 -1
- package/dist/plugin-sdk/channel-message-runtime.js +3 -3
- package/dist/plugin-sdk/channel-message.js +2 -2
- package/dist/plugin-sdk/channel-runtime.js +0 -1
- package/dist/plugin-sdk/command-status-runtime.js +1 -1
- package/dist/plugin-sdk/compat.js +1 -1
- package/dist/plugin-sdk/config-schema.d.ts +4 -4
- 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 +2 -2
- package/dist/plugin-sdk/discord.d.ts +1 -1
- package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
- package/dist/plugin-sdk/health.js +1 -1
- package/dist/plugin-sdk/hook-runtime.js +0 -1
- package/dist/plugin-sdk/inbound-reply-dispatch.js +2 -2
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +3 -1
- package/dist/plugin-sdk/provider-auth-api-key.js +0 -1
- package/dist/plugin-sdk/provider-stream-family.js +0 -1
- package/dist/plugin-sdk/provider-usage.js +649 -1
- package/dist/plugin-sdk/reply-runtime.js +4 -4
- package/dist/plugin-sdk/video-generation.js +206 -1
- package/dist/plugin-service-BdZxoKBZ.js +1249 -0
- package/dist/plugin-service-quTl5hT0.d.ts +24 -0
- package/dist/plugins/build-smoke-entry.d.ts +2 -2
- package/dist/plugins/loader.d.ts +1 -1
- package/dist/plugins/provider-discovery.runtime.d.ts +1 -1
- package/dist/plugins/provider-runtime.runtime.d.ts +1 -1
- package/dist/plugins/runtime/index.d.ts +1 -1
- package/dist/plugins/runtime/index.js +4 -4
- package/dist/plugins/tools.d.ts +1 -1
- package/dist/prepare.runtime-DFvkUqBZ.js +798 -0
- package/dist/prepare.runtime.js +1 -1
- package/dist/preview-warnings-CGzc8ccG.js +618 -0
- package/dist/program-D19g2jaa.js +131 -0
- package/dist/provider-api-key-auth-B8GgTfo8.d.ts +27 -0
- package/dist/provider-auth-result-Diw-woMA.d.ts +21 -0
- package/dist/provider-catalog-shared-hMvzzDgL.d.ts +62 -0
- package/dist/provider-dispatcher-DCTc4lG_.js +22 -0
- package/dist/provider-dispatcher.runtime.js +1 -1
- package/dist/provider-model-shared-BUCh3uCL.d.ts +143 -0
- package/dist/provider-registry-BIokPlxa.d.ts +8 -0
- package/dist/provider-registry-CyUOXHG-.d.ts +8 -0
- package/dist/provider-registry-i--H79Ao.d.ts +29 -0
- package/dist/provider-self-hosted-setup-BF8UR8wg.d.ts +74 -0
- package/dist/provider-stream-NF0XJnar.d.ts +139 -0
- package/dist/provider-stream-shared-DLwDaYed.d.ts +132 -0
- package/dist/provider-web-search-contract-fields-D61Vl5Kl.d.ts +25 -0
- package/dist/pw-ai-DYR-D7xR.js +3064 -0
- package/dist/register.agent-DwW0mQPk.js +152 -0
- package/dist/register.crestodian-BhIukKDA.js +24 -0
- package/dist/register.maintenance-DWHlvztJ.js +85 -0
- package/dist/register.subclis-Bsvdh8RI.js +3 -0
- package/dist/register.subclis-DVk0HU4k.js +31 -0
- package/dist/register.subclis-core-BK7nVvl6.js +278 -0
- package/dist/registry-hscEPAcC.d.ts +8 -0
- package/dist/registry-types-Ce-n1tuw.d.ts +392 -0
- package/dist/repair-sequencing-0-qGNSUO.js +652 -0
- package/dist/reply-payload-mCw4ZND6.d.ts +200 -0
- package/dist/reply-turn-admission-DMWNadoS.js +2056 -0
- package/dist/reply.runtime-CE8zmX7o.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/result-fallback-classifier-BZmv2ACy.js +98 -0
- package/dist/route-qQ-jYpFa.js +475 -0
- package/dist/routes-dTCmw98g.js +2 -0
- package/dist/routes-r8DRKa83.js +3701 -0
- package/dist/run-BgH7EPGH.js +1162 -0
- package/dist/run-command-DCsM-BVh.js +23 -0
- package/dist/run-command-I2ib4dwS.js +2 -0
- package/dist/run-context-CWaKUKKJ.js +66 -0
- package/dist/run-embedded.runtime-CBnDBWN0.js +4 -0
- package/dist/run-embedded.runtime.js +1 -1
- package/dist/run-execution-cli.runtime-DlYXI-lw.js +4 -0
- package/dist/run-execution-cli.runtime.js +1 -1
- package/dist/run-executor.runtime-DwepGrmB.js +330 -0
- package/dist/run-executor.runtime.js +1 -1
- package/dist/run-subagent-registry.runtime-CeVpoIhj.js +2 -0
- package/dist/run-subagent-registry.runtime.js +1 -1
- package/dist/runtime-D2ee-rNh.js +436 -0
- package/dist/runtime-api-B99ZlkNt.d.ts +5 -0
- package/dist/runtime-api-Cta2L_Yo.js +12 -0
- package/dist/runtime-channel-LKOkML3M.js +2 -0
- package/dist/runtime-channel-UtWvrTZ5.js +148 -0
- package/dist/runtime-embedded-agent.runtime-9O2Idzyb.js +2 -0
- package/dist/runtime-embedded-agent.runtime.js +1 -1
- package/dist/runtime-forwarders-DjI8RFL5.d.ts +39 -0
- package/dist/sdk-setup-tools-B-X04pa6.js +8 -0
- package/dist/selection-B02h8Old.js +3 -0
- package/dist/selection-DEPvzrW2.js +18365 -0
- package/dist/server-CMYi8gDo.js +24 -0
- package/dist/server-Cx07rsiY.js +72 -0
- package/dist/server-close.runtime.js +1 -1
- package/dist/server-context-BIemGRt4.js +2 -0
- package/dist/server-context-CB_an9iy.js +955 -0
- package/dist/server-cron-BeyuBUjb.js +3173 -0
- package/dist/server-cron-CV7KkVeB.js +2 -0
- package/dist/server-methods-C7EnpOhB.js +497 -0
- package/dist/server-node-events-DMMzZciN.js +597 -0
- package/dist/server-plugin-bootstrap-O6MzvzL8.js +71 -0
- package/dist/server-plugins-Dwnaz9kX.js +435 -0
- package/dist/server-reload-handlers-C-6TyPvI.js +719 -0
- package/dist/server-restart-sentinel-Dc35eYgk.js +700 -0
- package/dist/server-runtime-services-DCs-gqh_.js +3 -0
- package/dist/server-runtime-services-DF2fzzVd.js +147 -0
- package/dist/server-startup-plugins-t-YeYibm.js +127 -0
- package/dist/server-startup-post-attach-CiEki-DC.js +793 -0
- package/dist/server-ws-runtime-uaUpI-e8.js +374 -0
- package/dist/server.impl-MoHjSMr5.js +2622 -0
- package/dist/session-kill-http-CYCiQpt2.js +121 -0
- package/dist/session-reset-service-BYbADY57.js +651 -0
- package/dist/session-status.runtime-8NASbeO4.js +2 -0
- package/dist/session-status.runtime.js +1 -1
- package/dist/session-subagent-reactivation.runtime-DGeNY2Rb.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-tab-registry-C2eElZrt.js +551 -0
- package/dist/sessions-DXAdVXIx.js +1917 -0
- package/dist/sessions-history-http-BwK7b8OH.js +432 -0
- package/dist/sessions-patch-BYC5gvY1.js +401 -0
- package/dist/sessions-resolve-C3ORcdmo.js +180 -0
- package/dist/sessions.runtime-BijldeSY.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/snapshot-urls-C5CfP3Co.js +317 -0
- package/dist/speech-core-wWkTZPpQ.d.ts +49 -0
- package/dist/standalone-CHrieUsw.js +42 -0
- package/dist/startup-context-CZfmG8-g.js +314 -0
- package/dist/status-subagents.runtime-D2XMebiS.js +32 -0
- package/dist/status-subagents.runtime.js +1 -1
- package/dist/status-text-JR7IPyzZ.js +301 -0
- package/dist/stream-BJgTkLEI.d.ts +5 -0
- package/dist/subagent-announce-B9cfs_KZ.js +353 -0
- package/dist/subagent-announce-delivery-CtmEvLTS.js +1369 -0
- package/dist/subagent-control-DVqLHi9O.js +492 -0
- package/dist/subagent-hooks-D251uSvy.js +230 -0
- package/dist/subagent-hooks-api-DvdMKxsC.js +23 -0
- package/dist/subagent-hooks-uLORYChc.js +2 -0
- package/dist/subagent-registry-BW2l_oYu.js +3 -0
- package/dist/subagent-registry-BxEMHuiN.js +2627 -0
- package/dist/subagent-registry.runtime.d.ts +1 -1
- package/dist/subagent-registry.runtime.js +1 -1
- package/dist/subagent-session-cleanup-BC5wV2qQ.js +390 -0
- package/dist/system-fvgHsr2x.js +111 -0
- package/dist/talk-DU0Sod_K.js +2454 -0
- package/dist/target-id-BR2xJIkd.js +107 -0
- package/dist/task-registry-control.runtime.js +1 -1
- package/dist/thread-bindings-8XNu5U2p.js +228 -0
- package/dist/tool-Boeg0N5g.js +143 -0
- package/dist/tool-dispatch-BhLLaL2g.js +155 -0
- package/dist/tool-resolution-CzsLs-87.js +153 -0
- package/dist/tool-split-Bedy42Ms.d.ts +19 -0
- package/dist/tools-B6egHpE3.d.ts +38 -0
- package/dist/tools-effective-NXscxK8n.js +442 -0
- package/dist/tools-effective-inventory-NsGMUVo-.js +379 -0
- package/dist/tools-invoke-_sSu96Kq.js +51 -0
- package/dist/tools-invoke-http-BDhlRl-G.js +68 -0
- package/dist/tools-invoke-shared-BH-T9Bcg.js +200 -0
- package/dist/tts-runtime-C1wu3o15.d.ts +230 -0
- package/dist/tui-C733Qov0.js +2 -0
- package/dist/tui-DqbscVN5.js +3 -0
- package/dist/tui-backend-_Pn3Byj-.js +257 -0
- package/dist/tui-cli-CAiC39zd.js +40 -0
- package/dist/tui-ink-run-ChXEGj1h.js +7414 -0
- package/dist/tui-ink-run-D4mSfLHj.js +2 -0
- package/dist/types-BQw1qXGl.d.ts +7034 -0
- package/dist/types-BzMoU6-C.d.ts +111 -0
- package/dist/types-DltHmoCX.d.ts +393 -0
- package/dist/types.public-C_bVIMBl.d.ts +70 -0
- package/dist/web-fetch/runtime.d.ts +1 -1
- package/dist/webhook-targets-DW2jhddP.d.ts +99 -0
- package/dist/zod-schema.core-Cuz0lz6m.d.ts +166 -0
- package/npm-shrinkwrap.json +12861 -11889
- package/package.json +2 -5
- package/skills/batch/SKILL.md +118 -0
- package/skills/code-review/SKILL.md +107 -0
- package/skills/debug/SKILL.md +83 -0
- package/skills/loop/SKILL.md +118 -0
- package/skills/run/SKILL.md +79 -0
- package/skills/run-skill-generator/SKILL.md +179 -0
- package/skills/verify/SKILL.md +103 -0
- package/dist/abort-DGskei2p.js +0 -277
- package/dist/abort.runtime-Buq9IZxn.js +0 -2
- package/dist/acp-spawn-DC6IyYaB.js +0 -1286
- package/dist/acp-spawn-Diqb3nel.js +0 -2
- package/dist/acp-stateful-target-driver-Clhe_L8v.js +0 -89
- package/dist/active-tool-schema-warnings-BRhKkyvt.js +0 -2
- package/dist/active-tool-schema-warnings-C6N0-ce6.js +0 -105
- package/dist/agent-C5lhsEZJ.js +0 -2
- package/dist/agent-WEb757bl.js +0 -1825
- package/dist/agent-command-iLD_nsVY.js +0 -1435
- package/dist/agent-core-BeDN8Ns5.d.ts +0 -13
- package/dist/agent-harness-runtime-C89_Q-bW.d.ts +0 -913
- package/dist/agent-harness-runtime-Dfn5rik2.js +0 -207
- package/dist/agent-runner-utils-DNiuuo43.js +0 -267
- package/dist/agent-runner.runtime-CFF_qJ5V.js +0 -3784
- package/dist/agent-runtime-BkMtWXxn.js +0 -199
- package/dist/agent-runtime-HufMO_YR.d.ts +0 -207
- package/dist/agent-tools-HmaDv4ot.js +0 -2506
- package/dist/agent-via-gateway-CZQG8RYL.js +0 -486
- package/dist/agent-wait-dedupe-C3xQk2Ww.js +0 -180
- package/dist/agent-z1cs3c7n.js +0 -3
- package/dist/api-B4IMKjSe.js +0 -3
- package/dist/api-BwSbBWI8.js +0 -3
- package/dist/api-CE9In9m4.js +0 -5
- package/dist/api-ClPvYNGa.js +0 -32
- package/dist/api-CntBCaZf.js +0 -3
- package/dist/api-DBZBwTsn.js +0 -6
- package/dist/api-OCPwGOvK.js +0 -2
- package/dist/api-yYhEo7gK.js +0 -4
- package/dist/approval-client-helpers-CfdQ3-vv.d.ts +0 -78
- package/dist/approval-native-helpers-DSHPksK4.d.ts +0 -241
- package/dist/approval-renderers-BfEfwk44.d.ts +0 -39
- package/dist/assistant-v5fdOYu7.js +0 -291
- package/dist/attachment-normalize-BHAbLiL2.js +0 -213
- package/dist/attempt-execution-5w9WYbaJ.js +0 -584
- package/dist/attempt-execution.runtime-DnhOWGzr.js +0 -3
- package/dist/attempt.prompt-helpers-C4M4erF7.js +0 -543
- package/dist/binding-routing-Dpes-QF1.js +0 -113
- package/dist/binding-targets-B6H5Pd-A.js +0 -121
- package/dist/bridge-server-BCpxCRm_.js +0 -113
- package/dist/browser-cli-DMhXHopl.js +0 -230
- package/dist/browser-cli-Dy_VugK0.js +0 -2
- package/dist/browser-cli-actions-input-WMP7_lm6.js +0 -522
- package/dist/browser-cli-actions-observe-DQWAWhwU.js +0 -81
- package/dist/browser-cli-debug-CaT2ZKAx.js +0 -137
- package/dist/browser-cli-inspect-DU-LUXq1.js +0 -117
- package/dist/browser-cli-manage-DAuogqIh.js +0 -446
- package/dist/browser-cli-resize-Cz5uO_aR.js +0 -32
- package/dist/browser-cli-shared-CjPZcG3j.js +0 -69
- package/dist/browser-cli-state-CC3l77-K.js +0 -371
- package/dist/browser-control-auth-ELccIUZy.js +0 -2
- package/dist/browser-profiles-Cuy4ia6_.js +0 -2
- package/dist/browser-runtime-De-iUfME.js +0 -389
- package/dist/build-DEF8Per9.js +0 -261
- package/dist/bundled-channel-config-schema-Bte--ZlY.d.ts +0 -3168
- package/dist/capability-cli-Bydel4E7.js +0 -1809
- package/dist/channel-6SGL4R5P.js +0 -2309
- package/dist/channel-D3Q3b8J-.d.ts +0 -427
- package/dist/channel-core-Bj71kAB5.d.ts +0 -6
- package/dist/channel-core-DMvyWnHg.js +0 -5
- package/dist/channel-entry-contract-zYxRmEdf.d.ts +0 -114
- package/dist/channel-inbound-DVJzBcJ8.d.ts +0 -97
- package/dist/channel-inbound-DlCa7eJe.js +0 -121
- package/dist/channel-message-CyPGMMFB.js +0 -12
- package/dist/channel-message-Czl4cdoA.d.ts +0 -9
- package/dist/channel-outbound-BNbhmruA.d.ts +0 -325
- package/dist/channel-pairing-BiS-tSvl.d.ts +0 -58
- package/dist/channel-runtime-D8hntg7H.js +0 -7
- package/dist/channel.runtime-DxErReJR.js +0 -697
- package/dist/chat-BLA8ORQI.js +0 -3
- package/dist/chat-DWRXkuvU.js +0 -2940
- package/dist/chrome-DPwFYi-g.js +0 -1517
- package/dist/cli-compaction-YZpssARf.js +0 -363
- package/dist/cli-runner-D2OAqxu3.js +0 -597
- package/dist/cli-runner-DO4SORQf.js +0 -2
- package/dist/cli-runner.runtime-CNSIpbeT.js +0 -4
- package/dist/cli-runner.runtime-DAOYvpVQ.js +0 -3
- package/dist/command-registry-DpD0fb8D.js +0 -4
- package/dist/command-registry-core-Cl3tLG8G.js +0 -114
- package/dist/command-registry-nbP7c8RT.js +0 -9
- package/dist/command-status.runtime-BBuXTkq0.js +0 -90
- package/dist/commands-CR8MVvlD.d.ts +0 -117
- package/dist/commands-compact.runtime-BoafIjjg.js +0 -10
- package/dist/commands-handlers.runtime-D9jViG_x.js +0 -6327
- package/dist/commands-status-BqqJ7PVq.js +0 -16
- package/dist/commands-status-CMd41Vxf.js +0 -3
- package/dist/commands-status.runtime-CMd41Vxf.js +0 -3
- package/dist/commands-subagents-control.runtime-CU4I3A_n.js +0 -2
- package/dist/commands-system-prompt-CTtu1D3-.js +0 -2
- package/dist/commands-system-prompt-xswhORdM.js +0 -161
- package/dist/commands-types-B67CsqXf.d.ts +0 -132
- package/dist/commands.runtime-BUFhkrjQ.js +0 -175
- package/dist/compact-Dz_WvRkQ.js +0 -1165
- package/dist/compact.runtime-n-AKErni.js +0 -12
- package/dist/completion-cli-DJYs_L4_.js +0 -393
- package/dist/config-CFMbHJb0.js +0 -374
- package/dist/config-mutations-DCAloTKR.js +0 -161
- package/dist/config-schema-Drw1zrnG.d.ts +0 -20
- package/dist/context-engine-host-compat-4mNm1HCE.js +0 -2
- package/dist/context-engine-host-compat-BzJ7fUIn.js +0 -280
- package/dist/context-engine-lifecycle-V4PNQp6k.js +0 -627
- package/dist/control-auth-DG_cw-aN.js +0 -114
- package/dist/control-service-CurYipgK.js +0 -3
- package/dist/control-service-VyncoV7j.js +0 -40
- package/dist/control-ui/assets/activity-D5Plhlo-.js +0 -124
- package/dist/control-ui/assets/agents-Chcdfe1E.js +0 -1030
- package/dist/control-ui/assets/channels-BEtB4H37.js +0 -120
- package/dist/control-ui/assets/cron-CZyPkxSU.js +0 -1016
- package/dist/control-ui/assets/debug-DvM8iG47.js +0 -97
- package/dist/control-ui/assets/index-Rmpgh0f1.js +0 -7214
- package/dist/control-ui/assets/instances-yTC_uu60.js +0 -57
- package/dist/control-ui/assets/nodes-vbAxVHIH.js +0 -444
- package/dist/control-ui/assets/sessions-DOviHme5.js +0 -425
- package/dist/control-ui/assets/skills-Bfp5HEGW.js +0 -362
- package/dist/control-ui/assets/workboard-5sU2kHsV.js +0 -402
- package/dist/conversation-runtime-DgaABwHh.js +0 -31
- package/dist/core-BeBXdneV.js +0 -284
- package/dist/core-Chqb7X6l.d.ts +0 -223
- package/dist/core-api-BlK0FgBM.js +0 -2
- package/dist/core-api-pAvYk716.js +0 -5
- package/dist/crestodian-FeGTBqO1.js +0 -55
- package/dist/delegate-BjIjSU_E.d.ts +0 -30
- package/dist/deliver-CvtWN4Ey.d.ts +0 -111
- package/dist/delivery-queue-CQ-cj3KG.d.ts +0 -161
- package/dist/delivery-queue-runtime-ut7MG04m.d.ts +0 -9
- package/dist/detect-BjXPyrwn.js +0 -115
- package/dist/detect-C1xeIemQ.d.ts +0 -16
- package/dist/dialogue-BowVYhEC.js +0 -37
- package/dist/direct-dm-DoZZHpA0.d.ts +0 -79
- package/dist/directive-handling.fast-lane-hnmQ_CvD.js +0 -70
- package/dist/directive-handling.impl-Cai-CFS1.js +0 -2
- package/dist/directive-handling.impl-DY84qIfU.js +0 -823
- package/dist/directive-handling.model-selection-DASssLFQ.js +0 -122
- package/dist/directive-handling.persist.runtime-BY7tJUs2.js +0 -274
- package/dist/dispatch-D5iG5A8j.js +0 -2057
- package/dist/dispatch-acp-transcript.runtime-D3r16hbD.js +0 -40
- package/dist/dispatch-acp.runtime-CAIau5qX.js +0 -18
- package/dist/dispatcher-7-d2gw3J.js +0 -106
- package/dist/doctor-DD5YEMmf.js +0 -6
- package/dist/doctor-config-flow-CdlLHJmX.js +0 -1819
- package/dist/doctor-core-checks-6MP99TQG.js +0 -666
- package/dist/doctor-core-checks-Dm_o576z.js +0 -2
- package/dist/doctor-core-checks.runtime-B2qbKATd.js +0 -278
- package/dist/doctor-health-BKrhOv1v.js +0 -65
- package/dist/doctor-health-contributions-bIBLmw69.js +0 -874
- package/dist/doctor-lint-aOLOWli4.js +0 -95
- package/dist/doctor-state-integrity-23NQNNuo.js +0 -1257
- package/dist/draft-stream-controls-Bk1GVJ1l.d.ts +0 -159
- package/dist/embedded-agent-BeK8FhZr.d.ts +0 -5
- package/dist/embedded-agent-CNp_y7jW.js +0 -4074
- package/dist/embedded-agent-NEmNlXDR.js +0 -4
- package/dist/embedded-agent.runtime-hEby8P2s.js +0 -4
- package/dist/embedded-backend-BdbgfpBP.js +0 -1581
- package/dist/embedded-gateway-stub.runtime-ySZUA3Gy.js +0 -12
- package/dist/extensions/alibaba/fengming.plugin.json +0 -47
- package/dist/extensions/alibaba/index.d.ts +0 -12
- package/dist/extensions/alibaba/index.js +0 -13
- package/dist/extensions/alibaba/package.json +0 -15
- package/dist/extensions/alibaba/video-generation-provider.d.ts +0 -6
- package/dist/extensions/alibaba/video-generation-provider.js +0 -2
- package/dist/extensions/baichuan/fengming.plugin.json +0 -69
- package/dist/extensions/baichuan/index.d.ts +0 -11
- package/dist/extensions/baichuan/index.js +0 -45
- package/dist/extensions/baichuan/models.d.ts +0 -7
- package/dist/extensions/baichuan/models.js +0 -2
- package/dist/extensions/baichuan/onboard.d.ts +0 -5
- package/dist/extensions/baichuan/onboard.js +0 -2
- package/dist/extensions/baichuan/package.json +0 -15
- package/dist/extensions/baichuan/provider-catalog.d.ts +0 -2
- package/dist/extensions/baichuan/provider-catalog.js +0 -2
- package/dist/extensions/baichuan/provider-discovery.d.ts +0 -2
- package/dist/extensions/baichuan/provider-discovery.js +0 -5
- package/dist/extensions/byteplus/api.d.ts +0 -3
- package/dist/extensions/byteplus/api.js +0 -3
- package/dist/extensions/byteplus/fengming.plugin.json +0 -196
- package/dist/extensions/byteplus/index.d.ts +0 -12
- package/dist/extensions/byteplus/index.js +0 -85
- package/dist/extensions/byteplus/models.d.ts +0 -2
- package/dist/extensions/byteplus/models.js +0 -2
- package/dist/extensions/byteplus/package.json +0 -15
- package/dist/extensions/byteplus/provider-catalog.d.ts +0 -2
- package/dist/extensions/byteplus/provider-catalog.js +0 -2
- package/dist/extensions/byteplus/provider-discovery.d.ts +0 -5
- package/dist/extensions/byteplus/provider-discovery.js +0 -23
- package/dist/extensions/byteplus/video-generation-provider.d.ts +0 -6
- package/dist/extensions/byteplus/video-generation-provider.js +0 -2
- package/dist/extensions/longcat/fengming.plugin.json +0 -84
- package/dist/extensions/longcat/index.d.ts +0 -11
- package/dist/extensions/longcat/index.js +0 -45
- package/dist/extensions/longcat/models.d.ts +0 -7
- package/dist/extensions/longcat/models.js +0 -2
- package/dist/extensions/longcat/onboard.d.ts +0 -5
- package/dist/extensions/longcat/onboard.js +0 -2
- package/dist/extensions/longcat/package.json +0 -15
- package/dist/extensions/longcat/provider-catalog.d.ts +0 -2
- package/dist/extensions/longcat/provider-catalog.js +0 -2
- package/dist/extensions/longcat/provider-discovery.d.ts +0 -2
- package/dist/extensions/longcat/provider-discovery.js +0 -5
- package/dist/extensions/minimax/api.d.ts +0 -5
- package/dist/extensions/minimax/api.js +0 -6
- package/dist/extensions/minimax/fengming.plugin.json +0 -206
- package/dist/extensions/minimax/image-generation-provider.d.ts +0 -6
- package/dist/extensions/minimax/image-generation-provider.js +0 -2
- package/dist/extensions/minimax/index.d.ts +0 -12
- package/dist/extensions/minimax/index.js +0 -29
- package/dist/extensions/minimax/media-understanding-provider.d.ts +0 -6
- package/dist/extensions/minimax/media-understanding-provider.js +0 -2
- package/dist/extensions/minimax/model-definitions.d.ts +0 -2
- package/dist/extensions/minimax/model-definitions.js +0 -2
- package/dist/extensions/minimax/music-generation-provider.d.ts +0 -6
- package/dist/extensions/minimax/music-generation-provider.js +0 -2
- package/dist/extensions/minimax/oauth.d.ts +0 -2
- package/dist/extensions/minimax/oauth.js +0 -2
- package/dist/extensions/minimax/oauth.runtime.d.ts +0 -2
- package/dist/extensions/minimax/oauth.runtime.js +0 -2
- package/dist/extensions/minimax/onboard.d.ts +0 -2
- package/dist/extensions/minimax/onboard.js +0 -2
- package/dist/extensions/minimax/package.json +0 -15
- package/dist/extensions/minimax/provider-catalog.d.ts +0 -2
- package/dist/extensions/minimax/provider-catalog.js +0 -2
- package/dist/extensions/minimax/provider-contract-api.d.ts +0 -6
- package/dist/extensions/minimax/provider-contract-api.js +0 -77
- package/dist/extensions/minimax/provider-discovery.d.ts +0 -5
- package/dist/extensions/minimax/provider-discovery.js +0 -23
- package/dist/extensions/minimax/provider-models.d.ts +0 -2
- package/dist/extensions/minimax/provider-models.js +0 -2
- package/dist/extensions/minimax/provider-registration.d.ts +0 -7
- package/dist/extensions/minimax/provider-registration.js +0 -2
- package/dist/extensions/minimax/speech-provider.d.ts +0 -5
- package/dist/extensions/minimax/speech-provider.js +0 -2
- package/dist/extensions/minimax/tts.d.ts +0 -20
- package/dist/extensions/minimax/tts.js +0 -2
- package/dist/extensions/minimax/video-generation-provider.d.ts +0 -7
- package/dist/extensions/minimax/video-generation-provider.js +0 -2
- package/dist/extensions/minimax/web-search-contract-api.d.ts +0 -5
- package/dist/extensions/minimax/web-search-contract-api.js +0 -31
- package/dist/extensions/minimax/web-search-provider.d.ts +0 -5
- package/dist/extensions/minimax/web-search-provider.js +0 -2
- package/dist/extensions/moonshot/api.d.ts +0 -3
- package/dist/extensions/moonshot/api.js +0 -4
- package/dist/extensions/moonshot/fengming.plugin.json +0 -250
- package/dist/extensions/moonshot/index.d.ts +0 -11
- package/dist/extensions/moonshot/index.js +0 -70
- package/dist/extensions/moonshot/media-understanding-provider.d.ts +0 -6
- package/dist/extensions/moonshot/media-understanding-provider.js +0 -2
- package/dist/extensions/moonshot/onboard.d.ts +0 -2
- package/dist/extensions/moonshot/onboard.js +0 -2
- package/dist/extensions/moonshot/package.json +0 -15
- package/dist/extensions/moonshot/provider-catalog.d.ts +0 -2
- package/dist/extensions/moonshot/provider-catalog.js +0 -2
- package/dist/extensions/moonshot/provider-contract-api.d.ts +0 -5
- package/dist/extensions/moonshot/provider-contract-api.js +0 -27
- package/dist/extensions/moonshot/provider-discovery.d.ts +0 -5
- package/dist/extensions/moonshot/provider-discovery.js +0 -15
- package/dist/extensions/moonshot/web-search-contract-api.d.ts +0 -5
- package/dist/extensions/moonshot/web-search-contract-api.js +0 -29
- package/dist/extensions/moonshot/web-search-provider.d.ts +0 -5
- package/dist/extensions/moonshot/web-search-provider.js +0 -2
- package/dist/extensions/qianfan/api.d.ts +0 -3
- package/dist/extensions/qianfan/api.js +0 -3
- package/dist/extensions/qianfan/fengming.plugin.json +0 -89
- package/dist/extensions/qianfan/index.d.ts +0 -11
- package/dist/extensions/qianfan/index.js +0 -26
- package/dist/extensions/qianfan/onboard.d.ts +0 -2
- package/dist/extensions/qianfan/onboard.js +0 -2
- package/dist/extensions/qianfan/package.json +0 -15
- package/dist/extensions/qianfan/provider-catalog.d.ts +0 -2
- package/dist/extensions/qianfan/provider-catalog.js +0 -2
- package/dist/extensions/qwen/api.d.ts +0 -4
- package/dist/extensions/qwen/api.js +0 -5
- package/dist/extensions/qwen/fengming.plugin.json +0 -389
- package/dist/extensions/qwen/index.d.ts +0 -11
- package/dist/extensions/qwen/index.js +0 -202
- package/dist/extensions/qwen/media-understanding-provider.d.ts +0 -6
- package/dist/extensions/qwen/media-understanding-provider.js +0 -2
- package/dist/extensions/qwen/model-definitions.d.ts +0 -2
- package/dist/extensions/qwen/model-definitions.js +0 -2
- package/dist/extensions/qwen/models.d.ts +0 -2
- package/dist/extensions/qwen/models.js +0 -2
- package/dist/extensions/qwen/onboard.d.ts +0 -21
- package/dist/extensions/qwen/onboard.js +0 -2
- package/dist/extensions/qwen/package.json +0 -15
- package/dist/extensions/qwen/provider-catalog.d.ts +0 -2
- package/dist/extensions/qwen/provider-catalog.js +0 -2
- package/dist/extensions/qwen/stream.d.ts +0 -2
- package/dist/extensions/qwen/stream.js +0 -2
- package/dist/extensions/qwen/video-generation-provider.d.ts +0 -6
- package/dist/extensions/qwen/video-generation-provider.js +0 -2
- package/dist/extensions/sensenova/fengming.plugin.json +0 -69
- package/dist/extensions/sensenova/index.d.ts +0 -11
- package/dist/extensions/sensenova/index.js +0 -45
- package/dist/extensions/sensenova/models.d.ts +0 -7
- package/dist/extensions/sensenova/models.js +0 -2
- package/dist/extensions/sensenova/onboard.d.ts +0 -5
- package/dist/extensions/sensenova/onboard.js +0 -2
- package/dist/extensions/sensenova/package.json +0 -15
- package/dist/extensions/sensenova/provider-catalog.d.ts +0 -2
- package/dist/extensions/sensenova/provider-catalog.js +0 -2
- package/dist/extensions/sensenova/provider-discovery.d.ts +0 -2
- package/dist/extensions/sensenova/provider-discovery.js +0 -5
- package/dist/extensions/stepfun/fengming.plugin.json +0 -162
- package/dist/extensions/stepfun/index.d.ts +0 -12
- package/dist/extensions/stepfun/index.js +0 -165
- package/dist/extensions/stepfun/onboard.d.ts +0 -7
- package/dist/extensions/stepfun/onboard.js +0 -2
- package/dist/extensions/stepfun/package.json +0 -15
- package/dist/extensions/stepfun/provider-catalog.d.ts +0 -14
- package/dist/extensions/stepfun/provider-catalog.js +0 -2
- package/dist/extensions/tencent/api.d.ts +0 -3
- package/dist/extensions/tencent/api.js +0 -4
- package/dist/extensions/tencent/fengming.plugin.json +0 -105
- package/dist/extensions/tencent/index.d.ts +0 -12
- package/dist/extensions/tencent/index.js +0 -62
- package/dist/extensions/tencent/models.d.ts +0 -2
- package/dist/extensions/tencent/models.js +0 -2
- package/dist/extensions/tencent/onboard.d.ts +0 -6
- package/dist/extensions/tencent/onboard.js +0 -2
- package/dist/extensions/tencent/package.json +0 -15
- package/dist/extensions/tencent/provider-catalog.d.ts +0 -2
- package/dist/extensions/tencent/provider-catalog.js +0 -2
- package/dist/extensions/tencent/provider-discovery.d.ts +0 -5
- package/dist/extensions/tencent/provider-discovery.js +0 -14
- package/dist/extensions/tiangong/fengming.plugin.json +0 -69
- package/dist/extensions/tiangong/index.d.ts +0 -11
- package/dist/extensions/tiangong/index.js +0 -45
- package/dist/extensions/tiangong/models.d.ts +0 -7
- package/dist/extensions/tiangong/models.js +0 -2
- package/dist/extensions/tiangong/onboard.d.ts +0 -5
- package/dist/extensions/tiangong/onboard.js +0 -2
- package/dist/extensions/tiangong/package.json +0 -15
- package/dist/extensions/tiangong/provider-catalog.d.ts +0 -2
- package/dist/extensions/tiangong/provider-catalog.js +0 -2
- package/dist/extensions/tiangong/provider-discovery.d.ts +0 -2
- package/dist/extensions/tiangong/provider-discovery.js +0 -5
- package/dist/extensions/volcengine/api.d.ts +0 -12
- package/dist/extensions/volcengine/api.js +0 -4
- package/dist/extensions/volcengine/fengming.plugin.json +0 -263
- package/dist/extensions/volcengine/index.d.ts +0 -12
- package/dist/extensions/volcengine/index.js +0 -88
- package/dist/extensions/volcengine/models.d.ts +0 -2
- package/dist/extensions/volcengine/models.js +0 -2
- package/dist/extensions/volcengine/package.json +0 -15
- package/dist/extensions/volcengine/provider-catalog.d.ts +0 -2
- package/dist/extensions/volcengine/provider-catalog.js +0 -2
- package/dist/extensions/volcengine/provider-discovery.d.ts +0 -5
- package/dist/extensions/volcengine/provider-discovery.js +0 -23
- package/dist/extensions/volcengine/speech-provider.d.ts +0 -5
- package/dist/extensions/volcengine/speech-provider.js +0 -2
- package/dist/extensions/volcengine/tts.d.ts +0 -22
- package/dist/extensions/volcengine/tts.js +0 -2
- package/dist/extensions/weixin/fengming.plugin.json +0 -22
- package/dist/extensions/weixin/index.d.ts +0 -26
- package/dist/extensions/weixin/index.js +0 -862
- package/dist/extensions/weixin/package.json +0 -45
- package/dist/extensions/xiaomi/api.d.ts +0 -3
- package/dist/extensions/xiaomi/api.js +0 -3
- package/dist/extensions/xiaomi/fengming.plugin.json +0 -260
- package/dist/extensions/xiaomi/index.d.ts +0 -12
- package/dist/extensions/xiaomi/index.js +0 -284
- package/dist/extensions/xiaomi/onboard.d.ts +0 -2
- package/dist/extensions/xiaomi/onboard.js +0 -2
- package/dist/extensions/xiaomi/package.json +0 -15
- package/dist/extensions/xiaomi/provider-catalog.d.ts +0 -2
- package/dist/extensions/xiaomi/provider-catalog.js +0 -2
- package/dist/extensions/xiaomi/speech-provider.d.ts +0 -5
- package/dist/extensions/xiaomi/speech-provider.js +0 -2
- package/dist/extensions/xiaomi/stream.d.ts +0 -5
- package/dist/extensions/xiaomi/stream.js +0 -2
- package/dist/extensions/xiaomi/thinking.d.ts +0 -11
- package/dist/extensions/xiaomi/thinking.js +0 -2
- package/dist/extensions/xingchen/fengming.plugin.json +0 -69
- package/dist/extensions/xingchen/index.d.ts +0 -11
- package/dist/extensions/xingchen/index.js +0 -45
- package/dist/extensions/xingchen/models.d.ts +0 -7
- package/dist/extensions/xingchen/models.js +0 -2
- package/dist/extensions/xingchen/onboard.d.ts +0 -5
- package/dist/extensions/xingchen/onboard.js +0 -2
- package/dist/extensions/xingchen/package.json +0 -15
- package/dist/extensions/xingchen/provider-catalog.d.ts +0 -2
- package/dist/extensions/xingchen/provider-catalog.js +0 -2
- package/dist/extensions/xingchen/provider-discovery.d.ts +0 -2
- package/dist/extensions/xingchen/provider-discovery.js +0 -5
- package/dist/extensions/yi/fengming.plugin.json +0 -84
- package/dist/extensions/yi/index.d.ts +0 -11
- package/dist/extensions/yi/index.js +0 -45
- package/dist/extensions/yi/models.d.ts +0 -7
- package/dist/extensions/yi/models.js +0 -2
- package/dist/extensions/yi/onboard.d.ts +0 -5
- package/dist/extensions/yi/onboard.js +0 -2
- package/dist/extensions/yi/package.json +0 -15
- package/dist/extensions/yi/provider-catalog.d.ts +0 -2
- package/dist/extensions/yi/provider-catalog.js +0 -2
- package/dist/extensions/yi/provider-discovery.d.ts +0 -2
- package/dist/extensions/yi/provider-discovery.js +0 -5
- package/dist/extensions/zai/api.d.ts +0 -4
- package/dist/extensions/zai/api.js +0 -4
- package/dist/extensions/zai/detect.d.ts +0 -2
- package/dist/extensions/zai/detect.js +0 -2
- package/dist/extensions/zai/fengming.plugin.json +0 -377
- package/dist/extensions/zai/index.d.ts +0 -12
- package/dist/extensions/zai/index.js +0 -297
- package/dist/extensions/zai/media-understanding-provider.d.ts +0 -5
- package/dist/extensions/zai/media-understanding-provider.js +0 -2
- package/dist/extensions/zai/model-definitions.d.ts +0 -2
- package/dist/extensions/zai/model-definitions.js +0 -2
- package/dist/extensions/zai/onboard.d.ts +0 -2
- package/dist/extensions/zai/onboard.js +0 -2
- package/dist/extensions/zai/package.json +0 -15
- package/dist/extensions/zai/runtime-api.d.ts +0 -2
- package/dist/extensions/zai/runtime-api.js +0 -2
- package/dist/extensions/zhinao/fengming.plugin.json +0 -69
- package/dist/extensions/zhinao/index.d.ts +0 -11
- package/dist/extensions/zhinao/index.js +0 -45
- package/dist/extensions/zhinao/models.d.ts +0 -7
- package/dist/extensions/zhinao/models.js +0 -2
- package/dist/extensions/zhinao/onboard.d.ts +0 -5
- package/dist/extensions/zhinao/onboard.js +0 -2
- package/dist/extensions/zhinao/package.json +0 -15
- package/dist/extensions/zhinao/provider-catalog.d.ts +0 -2
- package/dist/extensions/zhinao/provider-catalog.js +0 -2
- package/dist/extensions/zhinao/provider-discovery.d.ts +0 -2
- package/dist/extensions/zhinao/provider-discovery.js +0 -5
- package/dist/fengming-runtime-0jdu_329.d.ts +0 -153
- package/dist/fengming-tools-gQkwsWYz.js +0 -12221
- package/dist/fengming.plugin-C-Kdi1_5.js +0 -130
- package/dist/fengming.plugin-CRPqMj85.js +0 -166
- package/dist/gateway-cli-BV1V43-D.js +0 -443
- package/dist/gateway-method-runtime-J2OPP_oH.js +0 -21
- package/dist/get-reply-BE8ZGJos.js +0 -5198
- package/dist/get-reply-from-config.runtime-C5wfxVI_.js +0 -2
- package/dist/heartbeat-runner-_0HlObMb.js +0 -5
- package/dist/heartbeat-runner.runtime-DvYz_4Z3.js +0 -3
- package/dist/hook-runtime-BH9moP5T.js +0 -4
- package/dist/hooks-icCwsmrQ.js +0 -536
- package/dist/host-compat-dfJvEfe7.d.ts +0 -21
- package/dist/http-registry-Buj7R-F_.d.ts +0 -23
- package/dist/image-generation-provider-hrRXkkGc.js +0 -152
- package/dist/inbound-reply-dispatch-5AYt56Yt.js +0 -147
- package/dist/inbound-reply-dispatch-B5weFW8i.js +0 -2
- package/dist/inbound-reply-dispatch-cJh4H31y.d.ts +0 -156
- package/dist/index-AZzJCgph.d.ts +0 -1497
- package/dist/infra-runtime-3_0R8nmO.js +0 -32
- package/dist/init-BnfkYG_k.js +0 -59
- package/dist/interactive-V8NfYsTW.d.ts +0 -26
- package/dist/isolated-agent-CgH7dfOj.js +0 -1097
- package/dist/isolated-agent-dBWkiw0a.js +0 -2
- package/dist/kernel-Ds2aqAJF.d.ts +0 -241
- package/dist/kimi-web-search-provider-QJT3Ftj3.js +0 -80
- package/dist/kimi-web-search-provider.runtime-Dj3SS4T5.js +0 -307
- package/dist/kimi-web-search-provider.runtime.js +0 -1
- package/dist/lib-Dg4yjNFQ.js +0 -871
- package/dist/lifecycle-B9k7QGsS.js +0 -570
- package/dist/list.probe-CbVHFNwf.js +0 -2
- package/dist/list.probe-CxiEBmyW.js +0 -451
- package/dist/list.status-command-DE-edGgB.js +0 -815
- package/dist/llm-slug-generator-DJgq9eFd.js +0 -78
- package/dist/loader-5AqYM9PC.d.ts +0 -142
- package/dist/local-dispatch.runtime-D3F4v51B.js +0 -10
- package/dist/manager-BWf1ks-Z.d.ts +0 -409
- package/dist/mcp-http-DU7Nsg4P.js +0 -583
- package/dist/mcp-http-iZCW6Cet.js +0 -2
- package/dist/media-runtime-DZ5RpQN7.d.ts +0 -261
- package/dist/media-understanding-DEdEyoQB.d.ts +0 -46
- package/dist/media-understanding-provider-4JHrQOUE.js +0 -70
- package/dist/media-understanding-provider-BV7O82XV.js +0 -29
- package/dist/media-understanding-provider-BlPRhYkx.js +0 -69
- package/dist/media-understanding-provider-BuX8eQLj.js +0 -13
- package/dist/memory-core-host-engine-embeddings-BDu5fx8E.d.ts +0 -324
- package/dist/memory-core-host-engine-storage-CdCuH-E2.d.ts +0 -54
- package/dist/message-handler-L6QLWNVP.js +0 -1806
- package/dist/minimax-web-search-provider-_gxeEOy8.js +0 -58
- package/dist/minimax-web-search-provider.runtime-BF4mGi6U.js +0 -148
- package/dist/minimax-web-search-provider.runtime.js +0 -1
- package/dist/model-catalog-DCnRkX8f.d.ts +0 -88
- package/dist/model-definitions-B2gY43hI.d.ts +0 -34
- package/dist/model-definitions-BLOyeH5h.js +0 -73
- package/dist/model-definitions-CoByf5mT.js +0 -243
- package/dist/model-definitions-WP3OmzbS.d.ts +0 -57
- package/dist/model-selection-DhTE6GZD.js +0 -352
- package/dist/models--iAR9QkZ.js +0 -175
- package/dist/models-8ImVEkvh.js +0 -36
- package/dist/models-BIDM8htk.js +0 -48
- package/dist/models-BRgRfrcS.js +0 -36
- package/dist/models-Bib5-APc.js +0 -67
- package/dist/models-Bl67zOoe.js +0 -36
- package/dist/models-BqDDYFE3.d.ts +0 -65
- package/dist/models-BtRQoRIu.js +0 -36
- package/dist/models-BvXmOXik.js +0 -48
- package/dist/models-C-sJciOD.d.ts +0 -9
- package/dist/models-COnXPdlL.js +0 -24
- package/dist/models-CXTmk-Da.d.ts +0 -8
- package/dist/models-Cz0C_8re.js +0 -36
- package/dist/models-DbwEIt-m.d.ts +0 -15
- package/dist/models-DgXkSADi.js +0 -30
- package/dist/models-cli-Bv3y3JgQ.js +0 -257
- package/dist/monitor-BiVOsbbN.js +0 -1024
- package/dist/monitor-BumfRp1t.js +0 -60
- package/dist/monitor.account-Cd6EwtuZ.js +0 -5382
- package/dist/music-generation-provider-ZdDMiC-c.js +0 -308
- package/dist/nodes-C0f8XgD5.js +0 -1483
- package/dist/nodes-Dk4vOgg9.js +0 -3
- package/dist/nodes-pending-Cjg09MXz.js +0 -211
- package/dist/oauth-BIO69Qw0.d.ts +0 -25
- package/dist/oauth-CnO10TN2.js +0 -207
- package/dist/onboard-B3BYT5k7.js +0 -34
- package/dist/onboard-BDMNV6RE.js +0 -23
- package/dist/onboard-B_WNNy5F.d.ts +0 -6
- package/dist/onboard-BbyMaErU.js +0 -69
- package/dist/onboard-BuYPNE6j2.js +0 -23
- package/dist/onboard-C394zMnM.d.ts +0 -11
- package/dist/onboard-CHn4oVbY.js +0 -24
- package/dist/onboard-CPpVbb0O.js +0 -73
- package/dist/onboard-CWDx7Crt.js +0 -23
- package/dist/onboard-CbzkwBzu.d.ts +0 -12
- package/dist/onboard-D099qUd0.js +0 -23
- package/dist/onboard-D7dbzfHc.js +0 -23
- package/dist/onboard-DB-x0nHF.js +0 -30
- package/dist/onboard-DFVrRnxJ.js +0 -23
- package/dist/onboard-DFiqoOc2.d.ts +0 -7
- package/dist/onboard-DJaMK3rr.d.ts +0 -6
- package/dist/onboard-DMdK8D_h.js +0 -67
- package/dist/onboard-J-KL-I6m.js +0 -48
- package/dist/onboard-MIBU-Rmv.js +0 -39
- package/dist/onboard-vmGylfFe.js +0 -23
- package/dist/openai-compat-errors-Dcr5Y8bF.js +0 -136
- package/dist/openai-http-CcqspzU6.js +0 -836
- package/dist/openresponses-http-BnyYYvUF.js +0 -1175
- package/dist/operations-H2Oq0KYz.js +0 -805
- package/dist/outbound.types-BhRehecY.d.ts +0 -291
- package/dist/plugin-enabled-CEIKWKrq.js +0 -232
- package/dist/plugin-entry-CTVRRaaA.d.ts +0 -47
- package/dist/plugin-registration-BTyO5Fwt.js +0 -97
- package/dist/plugin-runtime-_XF2N_UQ.d.ts +0 -117
- package/dist/plugin-sdk/bundled-channel-config-schema-BsOWCrJT.d.ts +0 -3169
- package/dist/plugin-service-B91jVlmZ.d.ts +0 -24
- package/dist/plugin-service-CtGwVz8V.js +0 -1249
- package/dist/prepare.runtime-9dlboph7.js +0 -798
- package/dist/preview-warnings-DJx4KJpC.js +0 -618
- package/dist/program-CWC-NBBB.js +0 -131
- package/dist/provider-api-key-auth-BmNcYRMl.d.ts +0 -27
- package/dist/provider-auth-api-key-CCaFiqY3.js +0 -5
- package/dist/provider-auth-result-D_E9dcVc.d.ts +0 -21
- package/dist/provider-catalog-5KZLmrDO.js +0 -11
- package/dist/provider-catalog-7P6AvDzS.js +0 -11
- package/dist/provider-catalog-B2gyTjTU.js +0 -88
- package/dist/provider-catalog-B3YBhe77.js +0 -17
- package/dist/provider-catalog-B7XEeuUm.js +0 -11
- package/dist/provider-catalog-BFGPRd9v.js +0 -17
- package/dist/provider-catalog-BLvkIMSk.d.ts +0 -6
- package/dist/provider-catalog-BPBL9mJf.d.ts +0 -5
- package/dist/provider-catalog-BRkZ6-HD.d.ts +0 -5
- package/dist/provider-catalog-Bfl_AoTZ.js +0 -142
- package/dist/provider-catalog-BpiHWHu1.js +0 -11
- package/dist/provider-catalog-C1qDLekT.d.ts +0 -5
- package/dist/provider-catalog-CKWNCfry.js +0 -11
- package/dist/provider-catalog-CUHB2pSt.d.ts +0 -7
- package/dist/provider-catalog-CWqN2j6J.d.ts +0 -5
- package/dist/provider-catalog-CZ8oYbx3.js +0 -11
- package/dist/provider-catalog-CcQ5-4ZW.d.ts +0 -6
- package/dist/provider-catalog-Cd16uZ0U.js +0 -20
- package/dist/provider-catalog-CpF2D0VK.js +0 -61
- package/dist/provider-catalog-CvXq36zW.d.ts +0 -5
- package/dist/provider-catalog-D2pgEME3.js +0 -48
- package/dist/provider-catalog-DPzcupEl.d.ts +0 -5
- package/dist/provider-catalog-DaeI606G.d.ts +0 -9
- package/dist/provider-catalog-DrOCtTb-.js +0 -11
- package/dist/provider-catalog-DwZ1J2Al.d.ts +0 -6
- package/dist/provider-catalog-Dy7IcHmS.js +0 -107
- package/dist/provider-catalog-TsZS52nq.d.ts +0 -10
- package/dist/provider-catalog-YqIFRCND.d.ts +0 -5
- package/dist/provider-catalog-Ywb5jRwG.d.ts +0 -5
- package/dist/provider-catalog-evknl1oN.js +0 -11
- package/dist/provider-catalog-l0hFpFO2.d.ts +0 -17
- package/dist/provider-catalog-shared-DsRBv0Tp.d.ts +0 -62
- package/dist/provider-dispatcher-BMy9mBJ1.js +0 -22
- package/dist/provider-model-shared-CPAfQBNs.d.ts +0 -143
- package/dist/provider-models-Diu65OcG.d.ts +0 -18
- package/dist/provider-models-LE7PlLYY.js +0 -22
- package/dist/provider-onboard-CpvXEmvz.d.ts +0 -91
- package/dist/provider-registration-DF-LkmNE.js +0 -235
- package/dist/provider-registry-D9cTPW1F.d.ts +0 -8
- package/dist/provider-registry-DI7gMKUP.d.ts +0 -8
- package/dist/provider-registry-DZtgZDkl.d.ts +0 -29
- package/dist/provider-self-hosted-setup-CoHvoyKm.d.ts +0 -74
- package/dist/provider-stream-BpXJr5Ap.d.ts +0 -139
- package/dist/provider-stream-family-Bj5aBD8w.js +0 -2
- package/dist/provider-stream-shared-BaUkhUHj.d.ts +0 -132
- package/dist/provider-usage-DFUhW2do.js +0 -651
- package/dist/provider-web-search-contract-fields-CkXzSsWu.d.ts +0 -25
- package/dist/pw-ai-9Q_dIq4B.js +0 -3064
- package/dist/register.agent-CbfrlzXB.js +0 -152
- package/dist/register.crestodian-CEg0rPfK.js +0 -24
- package/dist/register.maintenance-k9N8I4Wg.js +0 -85
- package/dist/register.subclis-CrXOeaS3.js +0 -3
- package/dist/register.subclis-DfKlni8N.js +0 -31
- package/dist/register.subclis-core-Bg4wbDsO.js +0 -278
- package/dist/registry-Bh3-P2HL.d.ts +0 -8
- package/dist/registry-types-BmEUS4d3.d.ts +0 -392
- package/dist/repair-sequencing-E4yViXG9.js +0 -652
- package/dist/reply-payload-S2mrc_Mh.d.ts +0 -200
- package/dist/reply-turn-admission-BBoPjmGB.js +0 -2056
- package/dist/reply.runtime-C5wfxVI_.js +0 -2
- package/dist/result-fallback-classifier-CX4iLD1G.js +0 -98
- package/dist/route-CifxcQZ1.js +0 -475
- package/dist/routes-B3XAOeWo.js +0 -2
- package/dist/routes-H185h3U-.js +0 -3701
- package/dist/run-CTJFbwbB.js +0 -1162
- package/dist/run-command-B7B53tYk.js +0 -23
- package/dist/run-command-BFuxRDxS.js +0 -2
- package/dist/run-context-C7im9ICg.js +0 -66
- package/dist/run-embedded.runtime-TljBTbzh.js +0 -4
- package/dist/run-execution-cli.runtime-Bt5zwx1W.js +0 -4
- package/dist/run-executor.runtime-hmbWX2Ct.js +0 -330
- package/dist/run-subagent-registry.runtime-B70X80nS.js +0 -2
- package/dist/runtime-DoKE0o7v.js +0 -436
- package/dist/runtime-api-Ca4Llbgf.js +0 -12
- package/dist/runtime-api-pa8xcEmg.d.ts +0 -5
- package/dist/runtime-channel-CFQ59svm.js +0 -148
- package/dist/runtime-channel-DRwCWGUx.js +0 -2
- package/dist/runtime-embedded-agent.runtime-DwmqKUVp.js +0 -2
- package/dist/runtime-forwarders-BMThPHg_.d.ts +0 -39
- package/dist/sdk-setup-tools-Cg_Tabrf.js +0 -8
- package/dist/selection-COhr7g82.js +0 -18365
- package/dist/selection-_G44EVqd.js +0 -3
- package/dist/send-media-BNc67G7I.js +0 -2072
- package/dist/server-5rR0RCpI.js +0 -24
- package/dist/server-context-BhiPROPA.js +0 -955
- package/dist/server-context-OShBAJZQ.js +0 -2
- package/dist/server-cron-Bkzb9edh.js +0 -3173
- package/dist/server-cron-DdR-ugiU.js +0 -2
- package/dist/server-lwtC1vaS.js +0 -72
- package/dist/server-methods-BY_ZqDFJ.js +0 -497
- package/dist/server-node-events-CLvE94AS.js +0 -597
- package/dist/server-plugin-bootstrap-cKOAH5GL.js +0 -71
- package/dist/server-plugins-CPpUykw5.js +0 -435
- package/dist/server-reload-handlers-uzt4VDZ-.js +0 -719
- package/dist/server-restart-sentinel-CpvV0t4O.js +0 -700
- package/dist/server-runtime-services-BhOHoerM.js +0 -147
- package/dist/server-runtime-services-D3Ig68nC.js +0 -3
- package/dist/server-startup-plugins-DslzKVHK.js +0 -127
- package/dist/server-startup-post-attach-DPFBTQez.js +0 -793
- package/dist/server-ws-runtime-D0zoWoiz.js +0 -374
- package/dist/server.impl-CzqLQ3qt.js +0 -2622
- package/dist/session-kill-http-D8JhwZVS.js +0 -121
- package/dist/session-reset-service-uoi7E4Xp.js +0 -651
- package/dist/session-status.runtime-CZK5IU8w.js +0 -2
- package/dist/session-subagent-reactivation.runtime-BSO00-FY.js +0 -2
- package/dist/session-tab-registry-DM9U7e3o.js +0 -551
- package/dist/sessions-B-SkIoaa.js +0 -1917
- package/dist/sessions-history-http-DCiOG4FK.js +0 -432
- package/dist/sessions-patch-DlAAvQvB.js +0 -401
- package/dist/sessions-resolve-DfMXookg.js +0 -180
- package/dist/sessions.runtime-0V2YxKxB.js +0 -2
- package/dist/snapshot-urls-Ble1-NEW.js +0 -317
- package/dist/speech-core-Bk60ZS_y.d.ts +0 -49
- package/dist/speech-provider-DQO9eZd0.js +0 -233
- package/dist/speech-provider-DnBCla4V.js +0 -171
- package/dist/speech-provider-DyYHFxT5.js +0 -227
- package/dist/standalone-9EWfcxeO.js +0 -42
- package/dist/startup-context-nti4X0_w.js +0 -314
- package/dist/status-subagents.runtime-CPZb1EF1.js +0 -32
- package/dist/status-text-C1Hf37lF.js +0 -301
- package/dist/stream-9VBt1MDs.js +0 -26
- package/dist/stream-B_3P7v7P.js +0 -86
- package/dist/stream-CXsue2-v.d.ts +0 -9
- package/dist/stream-oNBFxfKt.d.ts +0 -5
- package/dist/subagent-announce-CPjQQLy8.js +0 -353
- package/dist/subagent-announce-delivery-B6iBOicL.js +0 -1369
- package/dist/subagent-control-DP72sk-l.js +0 -492
- package/dist/subagent-hooks-B1oUIYH3.js +0 -2
- package/dist/subagent-hooks-BkGj4_xI.js +0 -230
- package/dist/subagent-hooks-api-D2mulK3S.js +0 -23
- package/dist/subagent-registry-CEKAUB5h.js +0 -3
- package/dist/subagent-registry-OUVucPAn.js +0 -2627
- package/dist/subagent-session-cleanup-Bx8d3kw0.js +0 -390
- package/dist/system-CelaP2zI.js +0 -111
- package/dist/talk-DGOI3Lu3.js +0 -2454
- package/dist/target-id-BXRG7x9x.js +0 -107
- package/dist/thinking-B8V29FhB.js +0 -35
- package/dist/thread-bindings-DpVdEPZ0.js +0 -228
- package/dist/tool-DHzDpxE4.js +0 -143
- package/dist/tool-dispatch-ClP3Rc7g.js +0 -155
- package/dist/tool-resolution-CZcLod1d.js +0 -153
- package/dist/tool-split-BhiQ8676.d.ts +0 -19
- package/dist/tools-ZvSvbsCW.d.ts +0 -38
- package/dist/tools-effective-C2mHZT-A.js +0 -442
- package/dist/tools-effective-inventory-ctnM7hc6.js +0 -379
- package/dist/tools-invoke-Ci6Rux2s.js +0 -51
- package/dist/tools-invoke-http-CJflXcJk.js +0 -68
- package/dist/tools-invoke-shared-BLu_mJEX.js +0 -200
- package/dist/tts-B2rPJPij.js +0 -83
- package/dist/tts-Gp9FI3_n.js +0 -163
- package/dist/tts-runtime-DNi1HXPF.d.ts +0 -230
- package/dist/tui-BUhfQ9vD.js +0 -3
- package/dist/tui-BhH5mvLf.js +0 -2
- package/dist/tui-backend-C_4ajTHI.js +0 -257
- package/dist/tui-cli-BhWJ-QoB.js +0 -40
- package/dist/tui-ink-run-BTWbUQGb.js +0 -7414
- package/dist/tui-ink-run-DfTdivkh.js +0 -2
- package/dist/types-B4fW3r5y.d.ts +0 -111
- package/dist/types-DI62NfFe.d.ts +0 -7034
- package/dist/types-sAih_uQb.d.ts +0 -393
- package/dist/types.public-B3MKhuo2.d.ts +0 -70
- package/dist/video-generation-B9c6a5cw.js +0 -207
- package/dist/video-generation-BgJp7UIA.d.ts +0 -224
- package/dist/video-generation-provider-BjiVjf40.js +0 -325
- package/dist/video-generation-provider-CsnQJg_h.js +0 -297
- package/dist/video-generation-provider-DtU-ZPqP.js +0 -64
- package/dist/video-generation-provider-wZ0bzv0e.js +0 -77
- package/dist/webhook-targets-Cy8e7y3g.d.ts +0 -99
- package/dist/zod-schema.core-BGLctDlK.d.ts +0 -166
- package/skills/canvas/SKILL.md +0 -78
- package/skills/clawhub/SKILL.md +0 -77
- package/skills/coding-agent/SKILL.md +0 -143
- package/skills/diagram-maker/SKILL.md +0 -53
- package/skills/diagram-maker/references/excalidraw-patterns.md +0 -85
- package/skills/diagram-maker/references/svg-template.md +0 -112
- package/skills/gemini/SKILL.md +0 -47
- package/skills/gh-issues/SKILL.md +0 -213
- package/skills/gifgrep/SKILL.md +0 -85
- package/skills/github/SKILL.md +0 -84
- package/skills/healthcheck/SKILL.md +0 -105
- package/skills/mcporter/SKILL.md +0 -61
- package/skills/meme-maker/SKILL.md +0 -42
- package/skills/meme-maker/references/templates.json +0 -358
- package/skills/meme-maker/scripts/meme.mjs +0 -398
- package/skills/model-usage/SKILL.md +0 -71
- package/skills/model-usage/references/codexbar-cli.md +0 -33
- package/skills/model-usage/scripts/model_usage.py +0 -319
- package/skills/model-usage/scripts/test_model_usage.py +0 -40
- package/skills/nano-pdf/SKILL.md +0 -38
- package/skills/node-connect/SKILL.md +0 -143
- package/skills/node-inspect-debugger/SKILL.md +0 -85
- package/skills/openai-whisper/SKILL.md +0 -38
- package/skills/openai-whisper-api/SKILL.md +0 -71
- package/skills/openai-whisper-api/scripts/transcribe.sh +0 -154
- package/skills/oracle/SKILL.md +0 -126
- package/skills/pyproject.toml +0 -10
- package/skills/python-debugpy/SKILL.md +0 -73
- package/skills/sag/SKILL.md +0 -87
- package/skills/session-logs/SKILL.md +0 -151
- package/skills/sherpa-onnx-tts/SKILL.md +0 -109
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
- package/skills/skill-creator/SKILL.md +0 -78
- package/skills/skill-creator/license.txt +0 -202
- package/skills/skill-creator/scripts/init_skill.py +0 -378
- package/skills/skill-creator/scripts/package_skill.py +0 -139
- package/skills/skill-creator/scripts/quick_validate.py +0 -169
- package/skills/skill-creator/scripts/test_package_skill.py +0 -161
- package/skills/skill-creator/scripts/test_quick_validate.py +0 -116
- package/skills/spike/SKILL.md +0 -51
- package/skills/summarize/SKILL.md +0 -87
- package/skills/taskflow/SKILL.md +0 -149
- package/skills/taskflow/examples/inbox-triage.lobster +0 -33
- package/skills/taskflow/examples/pr-intake.lobster +0 -32
- package/skills/taskflow-inbox-triage/SKILL.md +0 -119
- package/skills/video-frames/SKILL.md +0 -46
- package/skills/video-frames/scripts/frame.sh +0 -81
- package/skills/voice-call/SKILL.md +0 -45
- package/skills/weather/SKILL.md +0 -64
- /package/dist/{acp-runtime-backend-DbchQ02o.js → acp-runtime-backend-DZ1Lnt7f.js} +0 -0
- /package/dist/{delegate-k1aptKei.js → delegate-CwhxUdeb.js} +0 -0
- /package/dist/{dispatch-acp-CD4YxPpf.js → dispatch-acp-BP4I5ZQf.js} +0 -0
- /package/dist/{exec-approvals-ByWUCFQM.js → exec-approvals-ByWUCFQM2.js} +0 -0
- /package/dist/{heartbeat-runner-CM0UZxa_.js → heartbeat-runner-CL3alQ8-.js} +0 -0
- /package/dist/{index-B0VJdRJQ.d.ts → index-B0VJdRJQ2.d.ts} +0 -0
- /package/dist/{library-CQ71yATP.js → library-CiTr_aqC.js} +0 -0
- /package/dist/{run-session-state-DbDeH-q6.js → run-session-state-BOMUtBKZ.js} +0 -0
- /package/dist/{session-subagent-reactivation-Bj91A2ms.js → session-subagent-reactivation-CH0C2I6Y.js} +0 -0
- /package/dist/{types-C4HgagiY2.d.ts → types-C4HgagiY.d.ts} +0 -0
|
@@ -1,823 +0,0 @@
|
|
|
1
|
-
import { a as normalizeLowercaseStringOrEmpty, c as normalizeOptionalString } from "./string-coerce-DKw2K5wM.js";
|
|
2
|
-
import { g as shortenHomePath } from "./utils-v5zGdVpj.js";
|
|
3
|
-
import { o as coerceSecretRef } from "./types.secrets-Z7uJY7vF.js";
|
|
4
|
-
import { n as findNormalizedProviderValue, r as normalizeProviderId } from "./provider-id-DhcncFyL.js";
|
|
5
|
-
import { _ as resolveSessionAgentId } from "./agent-scope-EEbMCF2I.js";
|
|
6
|
-
import { a as resolveAgentDir } from "./agent-scope-config-BHdZonI2.js";
|
|
7
|
-
import { n as isThinkingLevelSupported, o as resolveSupportedThinkingLevel, t as formatThinkingLevels } from "./thinking-BmfCvr5O.js";
|
|
8
|
-
import { i as resolveAuthStorePathForDisplay } from "./path-resolve-DOQGJeuE.js";
|
|
9
|
-
import { t as resolveAgentHarnessPolicy } from "./policy-vPn4fInM.js";
|
|
10
|
-
import { t as getChannelPlugin } from "./registry-BfD-kLBR.js";
|
|
11
|
-
import { d as updateSessionStore } from "./store-DH20opqS.js";
|
|
12
|
-
import "./plugins-dSrD-mvK.js";
|
|
13
|
-
import "./sessions-CtMqsEs2.js";
|
|
14
|
-
import { n as ensureAuthProfileStore } from "./store-5z-UIEBD.js";
|
|
15
|
-
import { i as resolveAuthProfileDisplayLabel } from "./auth-profiles-BudN23FA.js";
|
|
16
|
-
import { a as isProfileInCooldown } from "./usage-state-C6N0ss4h.js";
|
|
17
|
-
import { i as resolveAuthProfileOrder, t as isConfiguredAwsSdkAuthProfileForProvider } from "./order-D-KKkXpx.js";
|
|
18
|
-
import { r as buildConfiguredModelCatalog, v as resolveConfiguredModelRef, x as resolveModelRefFromString } from "./model-selection-shared-vfQyPxy6.js";
|
|
19
|
-
import { n as modelKey } from "./model-selection-normalize-aLGuxVEp.js";
|
|
20
|
-
import "./model-selection-C4gJ7iHA.js";
|
|
21
|
-
import { t as resolveEnvApiKey } from "./model-auth-env-BKYWjM-G.js";
|
|
22
|
-
import { f as resolveUsableCustomProviderApiKey } from "./model-auth-Dg9gi4Wd.js";
|
|
23
|
-
import { a as enqueueSystemEvent } from "./system-events-DviB_CZO.js";
|
|
24
|
-
import { n as resolveSandboxRuntimeStatus } from "./runtime-status-FKnO8P0l.js";
|
|
25
|
-
import { r as triggerSessionPatchHook } from "./fengming-tools-gQkwsWYz.js";
|
|
26
|
-
import "./selection-COhr7g82.js";
|
|
27
|
-
import { n as resolveQueueSettings, s as refreshQueuedFollowupSession } from "./queue-Bp_sf0n7.js";
|
|
28
|
-
import { t as applyModelOverrideToSessionEntry } from "./model-overrides-jsF3RKPy.js";
|
|
29
|
-
import "./sandbox-CRE56oUs.js";
|
|
30
|
-
import { d as renderExecTargetLabel } from "./bash-tools.exec-runtime-CRixdHwa.js";
|
|
31
|
-
import { n as resolveExecDefaults } from "./exec-defaults-_yUznbFp.js";
|
|
32
|
-
import { t as buildAgentRuntimeAuthPlan } from "./auth-uG5clIDh.js";
|
|
33
|
-
import { t as resolveFastModeState } from "./fast-mode-Y-awBHW0.js";
|
|
34
|
-
import { t as resolveModelSelectionFromDirective } from "./directive-handling.model-selection-DASssLFQ.js";
|
|
35
|
-
import { t as resolveRuntimePolicySessionKey } from "./runtime-policy-session-key-CXSRXJ7R.js";
|
|
36
|
-
import { n as applyVerboseOverride, t as applyTraceOverride } from "./level-overrides-CiUQwg6P.js";
|
|
37
|
-
import { i as resolveModelsCommandReply } from "./commands-models-CONmMcWE.js";
|
|
38
|
-
import { n as resolveSelectedAndActiveModel } from "./model-runtime-DbOmaJ1o.js";
|
|
39
|
-
import { r as formatRemainingShort } from "./auth-health-XX9zpqaC.js";
|
|
40
|
-
import { t as maskApiKey } from "./mask-api-key-CbfeqQaR.js";
|
|
41
|
-
import { a as formatElevatedUnavailableText, c as formatInternalVerbosePersistenceDeniedText, i as formatElevatedRuntimeHint, l as withOptions, n as enqueueModeSwitchEvents, o as formatInternalExecPersistenceDeniedText, r as formatDirectiveAck, s as formatInternalVerboseCurrentReplyOnlyText, t as canPersistSessionDirectiveDefaults } from "./directive-handling.shared-DEYveYXA.js";
|
|
42
|
-
//#region src/auto-reply/reply/directive-handling.auth.ts
|
|
43
|
-
function resolveStoredCredentialLabel(params) {
|
|
44
|
-
const masked = maskApiKey(typeof params.value === "string" ? params.value : "");
|
|
45
|
-
if (masked !== "missing") return masked;
|
|
46
|
-
if (coerceSecretRef(params.refValue)) return params.mode === "compact" ? "(ref)" : "ref";
|
|
47
|
-
return "missing";
|
|
48
|
-
}
|
|
49
|
-
function formatExpirationLabel(expires, now, formatUntil, compactExpiredPrefix = " expired") {
|
|
50
|
-
if (typeof expires !== "number" || !Number.isFinite(expires) || expires <= 0) return "";
|
|
51
|
-
return expires <= now ? compactExpiredPrefix : ` exp ${formatUntil(expires)}`;
|
|
52
|
-
}
|
|
53
|
-
function formatFlagsSuffix(flags) {
|
|
54
|
-
return flags.length > 0 ? ` (${flags.join(", ")})` : "";
|
|
55
|
-
}
|
|
56
|
-
const resolveAuthLabel = async (provider, cfg, modelsPath, agentDir, mode = "compact", workspaceDir) => {
|
|
57
|
-
const formatPath = (value) => shortenHomePath(value);
|
|
58
|
-
const store = ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false });
|
|
59
|
-
const order = resolveAuthProfileOrder({
|
|
60
|
-
cfg,
|
|
61
|
-
store,
|
|
62
|
-
provider
|
|
63
|
-
});
|
|
64
|
-
const providerKey = normalizeProviderId(provider);
|
|
65
|
-
const lastGood = findNormalizedProviderValue(store.lastGood, providerKey);
|
|
66
|
-
const nextProfileId = order[0];
|
|
67
|
-
const now = Date.now();
|
|
68
|
-
const formatUntil = (timestampMs) => formatRemainingShort(timestampMs - now, { underMinuteLabel: "soon" });
|
|
69
|
-
if (order.length > 0) {
|
|
70
|
-
if (mode === "compact") {
|
|
71
|
-
const profileId = nextProfileId;
|
|
72
|
-
if (!profileId) return {
|
|
73
|
-
label: "missing",
|
|
74
|
-
source: "missing"
|
|
75
|
-
};
|
|
76
|
-
const profile = store.profiles[profileId];
|
|
77
|
-
const configProfile = cfg.auth?.profiles?.[profileId];
|
|
78
|
-
const configOnlyAwsSdk = !profile ? isConfiguredAwsSdkAuthProfileForProvider({
|
|
79
|
-
cfg,
|
|
80
|
-
provider,
|
|
81
|
-
profileId
|
|
82
|
-
}) : false;
|
|
83
|
-
const more = order.length > 1 ? ` (+${order.length - 1})` : "";
|
|
84
|
-
if (configOnlyAwsSdk) return {
|
|
85
|
-
label: `${profileId} aws-sdk${more}`,
|
|
86
|
-
source: ""
|
|
87
|
-
};
|
|
88
|
-
if (!profile || configProfile?.provider && configProfile.provider !== profile.provider || configProfile?.mode && configProfile.mode !== profile.type && !(configProfile.mode === "oauth" && profile.type === "token")) return {
|
|
89
|
-
label: `${profileId} missing${more}`,
|
|
90
|
-
source: ""
|
|
91
|
-
};
|
|
92
|
-
if (profile.type === "api_key") return {
|
|
93
|
-
label: `${profileId} api-key ${resolveStoredCredentialLabel({
|
|
94
|
-
value: profile.key,
|
|
95
|
-
refValue: profile.keyRef,
|
|
96
|
-
mode
|
|
97
|
-
})}${more}`,
|
|
98
|
-
source: ""
|
|
99
|
-
};
|
|
100
|
-
if (profile.type === "token") return {
|
|
101
|
-
label: `${profileId} token ${resolveStoredCredentialLabel({
|
|
102
|
-
value: profile.token,
|
|
103
|
-
refValue: profile.tokenRef,
|
|
104
|
-
mode
|
|
105
|
-
})}${formatExpirationLabel(profile.expires, now, formatUntil)}${more}`,
|
|
106
|
-
source: ""
|
|
107
|
-
};
|
|
108
|
-
const display = resolveAuthProfileDisplayLabel({
|
|
109
|
-
cfg,
|
|
110
|
-
store,
|
|
111
|
-
profileId
|
|
112
|
-
});
|
|
113
|
-
return {
|
|
114
|
-
label: `${display === profileId ? profileId : display} oauth${formatExpirationLabel(profile.expires, now, formatUntil)}${more}`,
|
|
115
|
-
source: ""
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
label: order.map((profileId) => {
|
|
120
|
-
const profile = store.profiles[profileId];
|
|
121
|
-
const configProfile = cfg.auth?.profiles?.[profileId];
|
|
122
|
-
const flags = [];
|
|
123
|
-
if (profileId === nextProfileId) flags.push("next");
|
|
124
|
-
if (lastGood && profileId === lastGood) flags.push("lastGood");
|
|
125
|
-
if (isProfileInCooldown(store, profileId)) {
|
|
126
|
-
const until = store.usageStats?.[profileId]?.cooldownUntil;
|
|
127
|
-
if (typeof until === "number" && Number.isFinite(until) && until > now) flags.push(`cooldown ${formatUntil(until)}`);
|
|
128
|
-
else flags.push("cooldown");
|
|
129
|
-
}
|
|
130
|
-
if (!profile && isConfiguredAwsSdkAuthProfileForProvider({
|
|
131
|
-
cfg,
|
|
132
|
-
provider,
|
|
133
|
-
profileId
|
|
134
|
-
})) return `${profileId}=aws-sdk${formatFlagsSuffix(flags)}`;
|
|
135
|
-
if (!profile || configProfile?.provider && configProfile.provider !== profile.provider || configProfile?.mode && configProfile.mode !== profile.type && !(configProfile.mode === "oauth" && profile.type === "token")) return `${profileId}=missing${formatFlagsSuffix(flags)}`;
|
|
136
|
-
if (profile.type === "api_key") return `${profileId}=${resolveStoredCredentialLabel({
|
|
137
|
-
value: profile.key,
|
|
138
|
-
refValue: profile.keyRef,
|
|
139
|
-
mode
|
|
140
|
-
})}${formatFlagsSuffix(flags)}`;
|
|
141
|
-
if (profile.type === "token") {
|
|
142
|
-
const tokenLabel = resolveStoredCredentialLabel({
|
|
143
|
-
value: profile.token,
|
|
144
|
-
refValue: profile.tokenRef,
|
|
145
|
-
mode
|
|
146
|
-
});
|
|
147
|
-
const expirationFlag = formatExpirationLabel(profile.expires, now, formatUntil, "expired");
|
|
148
|
-
if (expirationFlag) flags.push(expirationFlag);
|
|
149
|
-
return `${profileId}=token:${tokenLabel}${formatFlagsSuffix(flags)}`;
|
|
150
|
-
}
|
|
151
|
-
const display = resolveAuthProfileDisplayLabel({
|
|
152
|
-
cfg,
|
|
153
|
-
store,
|
|
154
|
-
profileId
|
|
155
|
-
});
|
|
156
|
-
const suffix = display === profileId ? "" : display.startsWith(profileId) ? display.slice(profileId.length).trim() : `(${display})`;
|
|
157
|
-
const expirationFlag = formatExpirationLabel(profile.expires, now, formatUntil, "expired");
|
|
158
|
-
if (expirationFlag) flags.push(expirationFlag);
|
|
159
|
-
return `${profileId}=OAuth${suffix ? ` ${suffix}` : ""}${formatFlagsSuffix(flags)}`;
|
|
160
|
-
}).join(", "),
|
|
161
|
-
source: `auth-profiles.json: ${formatPath(resolveAuthStorePathForDisplay(agentDir))}`
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
const envKey = resolveEnvApiKey(provider, process.env, {
|
|
165
|
-
config: cfg,
|
|
166
|
-
workspaceDir
|
|
167
|
-
});
|
|
168
|
-
if (envKey) return {
|
|
169
|
-
label: envKey.source.includes("ANTHROPIC_OAUTH_TOKEN") || normalizeLowercaseStringOrEmpty(envKey.source).includes("oauth") ? "OAuth (env)" : maskApiKey(envKey.apiKey),
|
|
170
|
-
source: mode === "verbose" ? envKey.source : ""
|
|
171
|
-
};
|
|
172
|
-
const customKey = resolveUsableCustomProviderApiKey({
|
|
173
|
-
cfg,
|
|
174
|
-
provider
|
|
175
|
-
})?.apiKey;
|
|
176
|
-
if (customKey) return {
|
|
177
|
-
label: maskApiKey(customKey),
|
|
178
|
-
source: mode === "verbose" ? `models.json: ${formatPath(modelsPath)}` : ""
|
|
179
|
-
};
|
|
180
|
-
return {
|
|
181
|
-
label: "missing",
|
|
182
|
-
source: "missing"
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
const formatAuthLabel = (auth) => {
|
|
186
|
-
if (!auth.source || auth.source === auth.label || auth.source === "missing") return auth.label;
|
|
187
|
-
return `${auth.label} (${auth.source})`;
|
|
188
|
-
};
|
|
189
|
-
new Map([
|
|
190
|
-
"anthropic",
|
|
191
|
-
"openai",
|
|
192
|
-
"openai-codex",
|
|
193
|
-
"minimax",
|
|
194
|
-
"synthetic",
|
|
195
|
-
"google",
|
|
196
|
-
"zai",
|
|
197
|
-
"openrouter",
|
|
198
|
-
"opencode",
|
|
199
|
-
"opencode-go",
|
|
200
|
-
"github-copilot",
|
|
201
|
-
"groq",
|
|
202
|
-
"cerebras",
|
|
203
|
-
"mistral",
|
|
204
|
-
"xai",
|
|
205
|
-
"lmstudio"
|
|
206
|
-
].map((provider, idx) => [provider, idx]));
|
|
207
|
-
function resolveProviderEndpointLabel(provider, cfg) {
|
|
208
|
-
const normalized = normalizeProviderId(provider);
|
|
209
|
-
const entry = findNormalizedProviderValue(cfg.models?.providers ?? {}, normalized);
|
|
210
|
-
const endpoint = normalizeOptionalString(entry?.baseUrl);
|
|
211
|
-
const api = normalizeOptionalString(entry?.api);
|
|
212
|
-
return {
|
|
213
|
-
endpoint: endpoint || void 0,
|
|
214
|
-
api: api || void 0
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/auto-reply/reply/directive-handling.model.ts
|
|
219
|
-
function isMissingAuthLabel(auth) {
|
|
220
|
-
return auth.label === "missing" && auth.source === "missing";
|
|
221
|
-
}
|
|
222
|
-
function resolveStatusHarnessRuntime(params) {
|
|
223
|
-
params.sessionEntry;
|
|
224
|
-
return params.defaultRuntime;
|
|
225
|
-
}
|
|
226
|
-
async function resolveStatusAuthLabel(params) {
|
|
227
|
-
const auth = await resolveAuthLabel(params.provider, params.cfg, params.modelsPath, params.agentDir, params.authMode, params.workspaceDir);
|
|
228
|
-
if (!isMissingAuthLabel(auth)) return formatAuthLabel(auth);
|
|
229
|
-
const provider = normalizeProviderId(params.provider);
|
|
230
|
-
const harnessPolicy = resolveAgentHarnessPolicy({
|
|
231
|
-
provider,
|
|
232
|
-
modelId: params.modelId,
|
|
233
|
-
config: params.cfg,
|
|
234
|
-
agentId: params.activeAgentId
|
|
235
|
-
});
|
|
236
|
-
const harnessRuntime = resolveStatusHarnessRuntime({
|
|
237
|
-
sessionEntry: params.sessionEntry,
|
|
238
|
-
defaultRuntime: harnessPolicy.runtime
|
|
239
|
-
});
|
|
240
|
-
const effectiveAuthProvider = buildAgentRuntimeAuthPlan({
|
|
241
|
-
provider,
|
|
242
|
-
config: params.cfg,
|
|
243
|
-
workspaceDir: params.workspaceDir,
|
|
244
|
-
harnessRuntime
|
|
245
|
-
}).harnessAuthProvider;
|
|
246
|
-
if (!effectiveAuthProvider || effectiveAuthProvider === provider) return formatAuthLabel(auth);
|
|
247
|
-
const runtimeAuth = await resolveAuthLabel(effectiveAuthProvider, params.cfg, params.modelsPath, params.agentDir, params.authMode, params.workspaceDir);
|
|
248
|
-
if (isMissingAuthLabel(runtimeAuth)) return formatAuthLabel(auth);
|
|
249
|
-
return `via ${harnessRuntime} runtime / ${effectiveAuthProvider} ${formatAuthLabel(runtimeAuth)}`;
|
|
250
|
-
}
|
|
251
|
-
function pushUniqueCatalogEntry(params) {
|
|
252
|
-
const provider = normalizeProviderId(params.provider);
|
|
253
|
-
const id = normalizeOptionalString(params.id) ?? "";
|
|
254
|
-
if (!provider || !id) return;
|
|
255
|
-
const key = modelKey(provider, id);
|
|
256
|
-
if (params.keys.has(key)) return;
|
|
257
|
-
params.keys.add(key);
|
|
258
|
-
params.out.push({
|
|
259
|
-
provider,
|
|
260
|
-
id,
|
|
261
|
-
name: params.fallbackNameToId ? params.name ?? id : params.name
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
function buildModelPickerCatalog(params) {
|
|
265
|
-
const resolvedDefault = resolveConfiguredModelRef({
|
|
266
|
-
cfg: params.cfg,
|
|
267
|
-
defaultProvider: params.defaultProvider,
|
|
268
|
-
defaultModel: params.defaultModel
|
|
269
|
-
});
|
|
270
|
-
const buildConfiguredCatalog = () => {
|
|
271
|
-
const out = [];
|
|
272
|
-
const keys = /* @__PURE__ */ new Set();
|
|
273
|
-
const pushRef = (ref, name) => {
|
|
274
|
-
pushUniqueCatalogEntry({
|
|
275
|
-
keys,
|
|
276
|
-
out,
|
|
277
|
-
provider: ref.provider,
|
|
278
|
-
id: ref.model,
|
|
279
|
-
name,
|
|
280
|
-
fallbackNameToId: true
|
|
281
|
-
});
|
|
282
|
-
};
|
|
283
|
-
const pushRaw = (raw) => {
|
|
284
|
-
const value = normalizeOptionalString(raw) ?? "";
|
|
285
|
-
if (!value) return;
|
|
286
|
-
const resolved = resolveModelRefFromString({
|
|
287
|
-
raw: value,
|
|
288
|
-
defaultProvider: params.defaultProvider,
|
|
289
|
-
aliasIndex: params.aliasIndex
|
|
290
|
-
});
|
|
291
|
-
if (!resolved) return;
|
|
292
|
-
pushRef(resolved.ref);
|
|
293
|
-
};
|
|
294
|
-
pushRef(resolvedDefault);
|
|
295
|
-
const modelConfig = params.cfg.agents?.defaults?.model;
|
|
296
|
-
const modelFallbacks = modelConfig && typeof modelConfig === "object" ? modelConfig.fallbacks ?? [] : [];
|
|
297
|
-
for (const fallback of modelFallbacks) pushRaw(fallback ?? "");
|
|
298
|
-
const imageConfig = params.cfg.agents?.defaults?.imageModel;
|
|
299
|
-
if (imageConfig && typeof imageConfig === "object") {
|
|
300
|
-
pushRaw(imageConfig.primary);
|
|
301
|
-
for (const fallback of imageConfig.fallbacks ?? []) pushRaw(fallback ?? "");
|
|
302
|
-
}
|
|
303
|
-
for (const raw of Object.keys(params.cfg.agents?.defaults?.models ?? {})) pushRaw(raw);
|
|
304
|
-
return out;
|
|
305
|
-
};
|
|
306
|
-
const keys = /* @__PURE__ */ new Set();
|
|
307
|
-
const out = [];
|
|
308
|
-
const push = (entry) => {
|
|
309
|
-
pushUniqueCatalogEntry({
|
|
310
|
-
keys,
|
|
311
|
-
out,
|
|
312
|
-
provider: entry.provider,
|
|
313
|
-
id: entry.id ?? "",
|
|
314
|
-
name: entry.name,
|
|
315
|
-
fallbackNameToId: false
|
|
316
|
-
});
|
|
317
|
-
};
|
|
318
|
-
if (!(Object.keys(params.cfg.agents?.defaults?.models ?? {}).length > 0)) {
|
|
319
|
-
for (const entry of params.allowedModelCatalog) push({
|
|
320
|
-
provider: entry.provider,
|
|
321
|
-
id: entry.id ?? "",
|
|
322
|
-
name: entry.name
|
|
323
|
-
});
|
|
324
|
-
for (const entry of buildConfiguredCatalog()) push(entry);
|
|
325
|
-
return out;
|
|
326
|
-
}
|
|
327
|
-
for (const entry of params.allowedModelCatalog) push({
|
|
328
|
-
provider: entry.provider,
|
|
329
|
-
id: entry.id ?? "",
|
|
330
|
-
name: entry.name
|
|
331
|
-
});
|
|
332
|
-
for (const raw of Object.keys(params.cfg.agents?.defaults?.models ?? {})) {
|
|
333
|
-
const resolved = resolveModelRefFromString({
|
|
334
|
-
raw,
|
|
335
|
-
defaultProvider: params.defaultProvider,
|
|
336
|
-
aliasIndex: params.aliasIndex
|
|
337
|
-
});
|
|
338
|
-
if (!resolved) continue;
|
|
339
|
-
push({
|
|
340
|
-
provider: resolved.ref.provider,
|
|
341
|
-
id: resolved.ref.model,
|
|
342
|
-
name: resolved.ref.model
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
if (resolvedDefault.model) push({
|
|
346
|
-
provider: resolvedDefault.provider,
|
|
347
|
-
id: resolvedDefault.model,
|
|
348
|
-
name: resolvedDefault.model
|
|
349
|
-
});
|
|
350
|
-
return out;
|
|
351
|
-
}
|
|
352
|
-
function filterMissingAuthNestedProviderDuplicates(params) {
|
|
353
|
-
const configuredKeys = new Set(buildConfiguredModelCatalog({ cfg: params.cfg }).map((entry) => modelKey(entry.provider, entry.id)));
|
|
354
|
-
const wrapperKeys = /* @__PURE__ */ new Set();
|
|
355
|
-
for (const entry of params.entries) {
|
|
356
|
-
const id = normalizeOptionalString(entry.id) ?? "";
|
|
357
|
-
const slash = id.indexOf("/");
|
|
358
|
-
if (slash <= 0) continue;
|
|
359
|
-
const nestedProvider = normalizeProviderId(id.slice(0, slash));
|
|
360
|
-
const nestedModel = normalizeOptionalString(id.slice(slash + 1)) ?? "";
|
|
361
|
-
const wrapperProvider = normalizeProviderId(entry.provider);
|
|
362
|
-
if (!nestedProvider || !nestedModel || nestedProvider === wrapperProvider) continue;
|
|
363
|
-
wrapperKeys.add(modelKey(nestedProvider, nestedModel));
|
|
364
|
-
}
|
|
365
|
-
if (wrapperKeys.size === 0) return params.entries;
|
|
366
|
-
return params.entries.filter((entry) => {
|
|
367
|
-
const provider = normalizeProviderId(entry.provider);
|
|
368
|
-
const key = modelKey(provider, normalizeOptionalString(entry.id) ?? "");
|
|
369
|
-
if (configuredKeys.has(key)) return true;
|
|
370
|
-
return params.authByProvider.get(provider) !== "missing" || !wrapperKeys.has(key);
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
async function maybeHandleModelDirectiveInfo(params) {
|
|
374
|
-
if (!params.directives.hasModelDirective) return;
|
|
375
|
-
const rawDirective = normalizeOptionalString(params.directives.rawModelDirective);
|
|
376
|
-
const directive = rawDirective ? normalizeLowercaseStringOrEmpty(rawDirective) : void 0;
|
|
377
|
-
const wantsStatus = directive === "status";
|
|
378
|
-
const wantsSummary = !rawDirective;
|
|
379
|
-
const wantsLegacyList = directive === "list";
|
|
380
|
-
if (!wantsSummary && !wantsStatus && !wantsLegacyList) return;
|
|
381
|
-
if (params.directives.rawModelProfile) return { text: "认证配置 override requires a model selection." };
|
|
382
|
-
const pickerCatalog = buildModelPickerCatalog({
|
|
383
|
-
cfg: params.cfg,
|
|
384
|
-
defaultProvider: params.defaultProvider,
|
|
385
|
-
defaultModel: params.defaultModel,
|
|
386
|
-
aliasIndex: params.aliasIndex,
|
|
387
|
-
allowedModelCatalog: params.allowedModelCatalog
|
|
388
|
-
});
|
|
389
|
-
if (wantsLegacyList) return await resolveModelsCommandReply({
|
|
390
|
-
cfg: params.cfg,
|
|
391
|
-
commandBodyNormalized: "/models",
|
|
392
|
-
surface: params.surface,
|
|
393
|
-
currentModel: `${params.provider}/${params.model}`,
|
|
394
|
-
agentId: params.activeAgentId,
|
|
395
|
-
agentDir: params.agentDir,
|
|
396
|
-
workspaceDir: params.workspaceDir,
|
|
397
|
-
sessionEntry: isCompleteSessionEntry(params.sessionEntry) ? params.sessionEntry : void 0
|
|
398
|
-
}) ?? { text: "No models available." };
|
|
399
|
-
if (wantsSummary) {
|
|
400
|
-
const modelRefs = resolveSelectedAndActiveModel({
|
|
401
|
-
selectedProvider: params.provider,
|
|
402
|
-
selectedModel: params.model,
|
|
403
|
-
sessionEntry: params.sessionEntry
|
|
404
|
-
});
|
|
405
|
-
const current = modelRefs.selected.label;
|
|
406
|
-
const activeRuntimeLine = modelRefs.activeDiffers ? `Active: ${modelRefs.active.label} (runtime)` : null;
|
|
407
|
-
const channelData = (params.surface ? getChannelPlugin(params.surface) : null)?.commands?.buildModelBrowseChannelData?.();
|
|
408
|
-
if (channelData) return {
|
|
409
|
-
text: [
|
|
410
|
-
`Current: ${current}${modelRefs.activeDiffers ? " (selected)" : ""}`,
|
|
411
|
-
activeRuntimeLine,
|
|
412
|
-
"",
|
|
413
|
-
"Tap below to browse models, or use:",
|
|
414
|
-
"/model <provider/model> to switch",
|
|
415
|
-
"/model <provider/model> --runtime <runtime> to switch harnesses",
|
|
416
|
-
"/model status for details"
|
|
417
|
-
].filter(Boolean).join("\n"),
|
|
418
|
-
channelData
|
|
419
|
-
};
|
|
420
|
-
return { text: [
|
|
421
|
-
`Current: ${current}${modelRefs.activeDiffers ? " (selected)" : ""}`,
|
|
422
|
-
activeRuntimeLine,
|
|
423
|
-
"",
|
|
424
|
-
"Switch: /model <provider/model>",
|
|
425
|
-
"Runtime: /model <provider/model> --runtime <runtime>",
|
|
426
|
-
"Browse: /models (providers) or /models <provider> (models)",
|
|
427
|
-
"More: /model status"
|
|
428
|
-
].filter(Boolean).join("\n") };
|
|
429
|
-
}
|
|
430
|
-
const modelsPath = `${params.agentDir}/models.json`;
|
|
431
|
-
const formatPath = (value) => shortenHomePath(value);
|
|
432
|
-
const authMode = "verbose";
|
|
433
|
-
if (pickerCatalog.length === 0) return { text: "No models available." };
|
|
434
|
-
const authByProvider = /* @__PURE__ */ new Map();
|
|
435
|
-
for (const entry of pickerCatalog) {
|
|
436
|
-
const provider = normalizeProviderId(entry.provider);
|
|
437
|
-
if (authByProvider.has(provider)) continue;
|
|
438
|
-
const authLabel = await resolveStatusAuthLabel({
|
|
439
|
-
provider,
|
|
440
|
-
modelId: entry.id,
|
|
441
|
-
cfg: params.cfg,
|
|
442
|
-
modelsPath,
|
|
443
|
-
agentDir: params.agentDir,
|
|
444
|
-
activeAgentId: params.activeAgentId,
|
|
445
|
-
authMode,
|
|
446
|
-
workspaceDir: params.workspaceDir,
|
|
447
|
-
sessionEntry: params.sessionEntry
|
|
448
|
-
});
|
|
449
|
-
authByProvider.set(provider, authLabel);
|
|
450
|
-
}
|
|
451
|
-
const modelRefs = resolveSelectedAndActiveModel({
|
|
452
|
-
selectedProvider: params.provider,
|
|
453
|
-
selectedModel: params.model,
|
|
454
|
-
sessionEntry: params.sessionEntry
|
|
455
|
-
});
|
|
456
|
-
const current = modelRefs.selected.label;
|
|
457
|
-
const defaultLabel = `${params.defaultProvider}/${params.defaultModel}`;
|
|
458
|
-
const lines = [
|
|
459
|
-
`Current: ${current}${modelRefs.activeDiffers ? " (selected)" : ""}`,
|
|
460
|
-
modelRefs.activeDiffers ? `Active: ${modelRefs.active.label} (runtime)` : null,
|
|
461
|
-
`Default: ${defaultLabel}`,
|
|
462
|
-
`Agent: ${params.activeAgentId}`,
|
|
463
|
-
`Auth file: ${formatPath(resolveAuthStorePathForDisplay(params.agentDir))}`
|
|
464
|
-
].filter((line) => Boolean(line));
|
|
465
|
-
if (params.resetModelOverride) lines.push(`(previous selection reset to default)`);
|
|
466
|
-
const byProvider = /* @__PURE__ */ new Map();
|
|
467
|
-
const statusCatalog = filterMissingAuthNestedProviderDuplicates({
|
|
468
|
-
cfg: params.cfg,
|
|
469
|
-
entries: pickerCatalog,
|
|
470
|
-
authByProvider
|
|
471
|
-
});
|
|
472
|
-
for (const entry of statusCatalog) {
|
|
473
|
-
const provider = normalizeProviderId(entry.provider);
|
|
474
|
-
const models = byProvider.get(provider);
|
|
475
|
-
if (models) {
|
|
476
|
-
models.push(entry);
|
|
477
|
-
continue;
|
|
478
|
-
}
|
|
479
|
-
byProvider.set(provider, [entry]);
|
|
480
|
-
}
|
|
481
|
-
for (const provider of byProvider.keys()) {
|
|
482
|
-
const models = byProvider.get(provider);
|
|
483
|
-
if (!models) continue;
|
|
484
|
-
const authLabel = authByProvider.get(provider) ?? "missing";
|
|
485
|
-
const endpoint = resolveProviderEndpointLabel(provider, params.cfg);
|
|
486
|
-
const endpointSuffix = endpoint.endpoint ? ` endpoint: ${endpoint.endpoint}` : " endpoint: default";
|
|
487
|
-
const apiSuffix = endpoint.api ? ` api: ${endpoint.api}` : "";
|
|
488
|
-
lines.push("");
|
|
489
|
-
lines.push(`[${provider}]${endpointSuffix}${apiSuffix} auth: ${authLabel}`);
|
|
490
|
-
for (const entry of models) {
|
|
491
|
-
const label = `${provider}/${entry.id}`;
|
|
492
|
-
const aliases = params.aliasIndex.byKey.get(label);
|
|
493
|
-
const aliasSuffix = aliases && aliases.length > 0 ? ` (${aliases.join(", ")})` : "";
|
|
494
|
-
lines.push(` • ${label}${aliasSuffix}`);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
return { text: lines.join("\n") };
|
|
498
|
-
}
|
|
499
|
-
function isCompleteSessionEntry(entry) {
|
|
500
|
-
return Boolean(entry && typeof entry.sessionId === "string" && typeof entry.updatedAt === "number");
|
|
501
|
-
}
|
|
502
|
-
//#endregion
|
|
503
|
-
//#region src/auto-reply/reply/directive-handling.queue-validation.ts
|
|
504
|
-
function maybeHandleQueueDirective(params) {
|
|
505
|
-
const { directives } = params;
|
|
506
|
-
if (!directives.hasQueueDirective) return;
|
|
507
|
-
if (!directives.queueMode && !directives.queueReset && !directives.hasQueueOptions && directives.rawQueueMode === void 0 && directives.rawDebounce === void 0 && directives.rawCap === void 0 && directives.rawDrop === void 0) {
|
|
508
|
-
const settings = resolveQueueSettings({
|
|
509
|
-
cfg: params.cfg,
|
|
510
|
-
channel: params.channel,
|
|
511
|
-
sessionEntry: params.sessionEntry
|
|
512
|
-
});
|
|
513
|
-
const debounceLabel = typeof settings.debounceMs === "number" ? `${settings.debounceMs}ms` : "default";
|
|
514
|
-
const capLabel = typeof settings.cap === "number" ? String(settings.cap) : "default";
|
|
515
|
-
const dropLabel = settings.dropPolicy ?? "default";
|
|
516
|
-
return { text: withOptions(`Current queue settings: mode=${settings.mode}, debounce=${debounceLabel}, cap=${capLabel}, drop=${dropLabel}.`, "modes steer, followup, collect, interrupt; debounce:<ms|s|m>, cap:<n>, drop:old|new|summarize") };
|
|
517
|
-
}
|
|
518
|
-
const queueModeInvalid = !directives.queueMode && !directives.queueReset && Boolean(directives.rawQueueMode);
|
|
519
|
-
const queueDebounceInvalid = directives.rawDebounce !== void 0 && typeof directives.debounceMs !== "number";
|
|
520
|
-
const queueCapInvalid = directives.rawCap !== void 0 && typeof directives.cap !== "number";
|
|
521
|
-
const queueDropInvalid = directives.rawDrop !== void 0 && !directives.dropPolicy;
|
|
522
|
-
if (queueModeInvalid || queueDebounceInvalid || queueCapInvalid || queueDropInvalid) {
|
|
523
|
-
const errors = [];
|
|
524
|
-
if (queueModeInvalid) errors.push(`Unrecognized queue mode "${directives.rawQueueMode ?? ""}". Valid modes: steer, followup, collect, interrupt.`);
|
|
525
|
-
if (queueDebounceInvalid) errors.push(`Invalid debounce "${directives.rawDebounce ?? ""}". Use ms/s/m (e.g. debounce:1500ms, debounce:2s).`);
|
|
526
|
-
if (queueCapInvalid) errors.push(`Invalid cap "${directives.rawCap ?? ""}". Use a positive integer (e.g. cap:10).`);
|
|
527
|
-
if (queueDropInvalid) errors.push(`Invalid drop policy "${directives.rawDrop ?? ""}". Use drop:old, drop:new, or drop:summarize.`);
|
|
528
|
-
return { text: errors.join(" ") };
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
//#endregion
|
|
532
|
-
//#region src/auto-reply/reply/directive-handling.impl.ts
|
|
533
|
-
async function handleDirectiveOnly(params) {
|
|
534
|
-
const { directives, sessionEntry, sessionStore, sessionKey, storePath, elevatedEnabled, elevatedAllowed, defaultProvider, defaultModel, aliasIndex, allowedModelKeys, allowedModelCatalog, resetModelOverride, provider, model, initialModelLabel, formatModelSwitchEvent, currentThinkLevel, currentFastMode, currentVerboseLevel, currentReasoningLevel, currentElevatedLevel } = params;
|
|
535
|
-
const delegatedTraceAllowed = (params.gatewayClientScopes ?? []).includes("operator.admin");
|
|
536
|
-
if (directives.hasTraceDirective && !params.senderIsOwner && !delegatedTraceAllowed) return { text: "❌ /trace is restricted to owners and gateway clients with operator.admin scope." };
|
|
537
|
-
const activeAgentId = resolveSessionAgentId({
|
|
538
|
-
sessionKey: params.sessionKey,
|
|
539
|
-
config: params.cfg
|
|
540
|
-
});
|
|
541
|
-
const agentDir = resolveAgentDir(params.cfg, activeAgentId);
|
|
542
|
-
const runtimeIsSandboxed = resolveSandboxRuntimeStatus({
|
|
543
|
-
cfg: params.cfg,
|
|
544
|
-
sessionKey: resolveRuntimePolicySessionKey({
|
|
545
|
-
cfg: params.cfg,
|
|
546
|
-
ctx: params.ctx,
|
|
547
|
-
sessionKey: params.sessionKey
|
|
548
|
-
})
|
|
549
|
-
}).sandboxed;
|
|
550
|
-
const shouldHintDirectRuntime = directives.hasElevatedDirective && !runtimeIsSandboxed;
|
|
551
|
-
const allowInternalExecPersistence = canPersistSessionDirectiveDefaults({
|
|
552
|
-
messageProvider: params.messageProvider,
|
|
553
|
-
surface: params.surface,
|
|
554
|
-
gatewayClientScopes: params.gatewayClientScopes,
|
|
555
|
-
commandAuthorized: params.commandAuthorized,
|
|
556
|
-
senderIsOwner: params.senderIsOwner
|
|
557
|
-
});
|
|
558
|
-
const allowInternalVerbosePersistence = canPersistSessionDirectiveDefaults({
|
|
559
|
-
messageProvider: params.messageProvider,
|
|
560
|
-
surface: params.surface,
|
|
561
|
-
gatewayClientScopes: params.gatewayClientScopes,
|
|
562
|
-
commandAuthorized: params.commandAuthorized,
|
|
563
|
-
senderIsOwner: params.senderIsOwner
|
|
564
|
-
});
|
|
565
|
-
const modelInfo = await maybeHandleModelDirectiveInfo({
|
|
566
|
-
directives,
|
|
567
|
-
cfg: params.cfg,
|
|
568
|
-
agentDir,
|
|
569
|
-
activeAgentId,
|
|
570
|
-
provider,
|
|
571
|
-
model,
|
|
572
|
-
defaultProvider,
|
|
573
|
-
defaultModel,
|
|
574
|
-
aliasIndex,
|
|
575
|
-
allowedModelCatalog,
|
|
576
|
-
resetModelOverride,
|
|
577
|
-
workspaceDir: params.workspaceDir,
|
|
578
|
-
surface: params.surface,
|
|
579
|
-
sessionEntry
|
|
580
|
-
});
|
|
581
|
-
if (modelInfo) return modelInfo;
|
|
582
|
-
const modelResolution = resolveModelSelectionFromDirective({
|
|
583
|
-
directives,
|
|
584
|
-
cfg: params.cfg,
|
|
585
|
-
agentDir,
|
|
586
|
-
defaultProvider,
|
|
587
|
-
defaultModel,
|
|
588
|
-
aliasIndex,
|
|
589
|
-
allowedModelKeys,
|
|
590
|
-
allowedModelCatalog,
|
|
591
|
-
provider
|
|
592
|
-
});
|
|
593
|
-
if (modelResolution.errorText) return { text: modelResolution.errorText };
|
|
594
|
-
const modelSelection = modelResolution.modelSelection;
|
|
595
|
-
const profileOverride = modelResolution.profileOverride;
|
|
596
|
-
const resolvedProvider = modelSelection?.provider ?? provider;
|
|
597
|
-
const resolvedModel = modelSelection?.model ?? model;
|
|
598
|
-
const thinkingCatalog = params.thinkingCatalog && params.thinkingCatalog.length > 0 ? params.thinkingCatalog : allowedModelCatalog.length > 0 ? allowedModelCatalog : void 0;
|
|
599
|
-
const fastModeState = resolveFastModeState({
|
|
600
|
-
cfg: params.cfg,
|
|
601
|
-
provider: resolvedProvider,
|
|
602
|
-
model: resolvedModel,
|
|
603
|
-
agentId: activeAgentId,
|
|
604
|
-
sessionEntry: directives.clearFastMode ? void 0 : sessionEntry
|
|
605
|
-
});
|
|
606
|
-
const effectiveFastMode = directives.fastMode ?? (directives.clearFastMode ? fastModeState.enabled : currentFastMode) ?? fastModeState.enabled;
|
|
607
|
-
const effectiveFastModeSource = directives.fastMode !== void 0 ? "session" : fastModeState.source;
|
|
608
|
-
if (directives.hasThinkDirective && !directives.thinkLevel && !directives.clearThinkLevel) {
|
|
609
|
-
if (!directives.rawThinkLevel) return { text: withOptions(`Current thinking level: ${currentThinkLevel ?? "off"}.`, `default, ${formatThinkingLevels(resolvedProvider, resolvedModel, ", ", thinkingCatalog)}`) };
|
|
610
|
-
return { text: `Unrecognized thinking level "${directives.rawThinkLevel}". Valid levels: default, ${formatThinkingLevels(resolvedProvider, resolvedModel, ", ", thinkingCatalog)}.` };
|
|
611
|
-
}
|
|
612
|
-
if (directives.hasVerboseDirective && !directives.verboseLevel) {
|
|
613
|
-
if (!directives.rawVerboseLevel) return { text: withOptions(`Current verbose level: ${currentVerboseLevel ?? "off"}.`, "on, full, off") };
|
|
614
|
-
return { text: `Unrecognized verbose level "${directives.rawVerboseLevel}". Valid levels: off, on, full.` };
|
|
615
|
-
}
|
|
616
|
-
if (directives.hasTraceDirective && !directives.traceLevel) {
|
|
617
|
-
if (!directives.rawTraceLevel) return { text: withOptions(`Current trace level: ${sessionEntry.traceLevel ?? "off"}.`, "on, off, raw") };
|
|
618
|
-
return { text: `Unrecognized trace level "${directives.rawTraceLevel}". Valid levels: off, on, raw.` };
|
|
619
|
-
}
|
|
620
|
-
if (directives.hasFastDirective && directives.fastMode === void 0 && !directives.clearFastMode) {
|
|
621
|
-
if (!directives.rawFastMode || normalizeLowercaseStringOrEmpty(directives.rawFastMode) === "status") return { text: withOptions(`Current fast mode: ${effectiveFastMode ? "on" : "off"}${effectiveFastModeSource === "config" ? " (config)" : effectiveFastModeSource === "default" ? " (default)" : ""}.`, "status, on, off, default") };
|
|
622
|
-
return { text: `Unrecognized fast mode "${directives.rawFastMode}". Valid levels: status, on, off, default.` };
|
|
623
|
-
}
|
|
624
|
-
if (directives.hasReasoningDirective && !directives.reasoningLevel) {
|
|
625
|
-
if (!directives.rawReasoningLevel) return { text: withOptions(`Current reasoning level: ${currentReasoningLevel ?? "off"}.`, "on, off, stream") };
|
|
626
|
-
return { text: `Unrecognized reasoning level "${directives.rawReasoningLevel}". Valid levels: on, off, stream.` };
|
|
627
|
-
}
|
|
628
|
-
if (directives.hasElevatedDirective && !directives.elevatedLevel) {
|
|
629
|
-
if (!directives.rawElevatedLevel) {
|
|
630
|
-
if (!elevatedEnabled || !elevatedAllowed) return { text: formatElevatedUnavailableText({
|
|
631
|
-
runtimeSandboxed: runtimeIsSandboxed,
|
|
632
|
-
failures: params.elevatedFailures,
|
|
633
|
-
sessionKey: params.sessionKey
|
|
634
|
-
}) };
|
|
635
|
-
return { text: [withOptions(`Current elevated level: ${currentElevatedLevel ?? "off"}.`, "on, off, ask, full"), shouldHintDirectRuntime ? formatElevatedRuntimeHint() : null].filter(Boolean).join("\n") };
|
|
636
|
-
}
|
|
637
|
-
return { text: `Unrecognized elevated level "${directives.rawElevatedLevel}". Valid levels: off, on, ask, full.` };
|
|
638
|
-
}
|
|
639
|
-
if (directives.hasElevatedDirective && (!elevatedEnabled || !elevatedAllowed)) return { text: formatElevatedUnavailableText({
|
|
640
|
-
runtimeSandboxed: runtimeIsSandboxed,
|
|
641
|
-
failures: params.elevatedFailures,
|
|
642
|
-
sessionKey: params.sessionKey
|
|
643
|
-
}) };
|
|
644
|
-
if (directives.hasExecDirective) {
|
|
645
|
-
if (directives.invalidExecHost) return { text: `Unrecognized exec host "${directives.rawExecHost ?? ""}". Valid hosts: auto, sandbox, gateway, node.` };
|
|
646
|
-
if (directives.invalidExecSecurity) return { text: `Unrecognized exec security "${directives.rawExecSecurity ?? ""}". Valid: deny, allowlist, full.` };
|
|
647
|
-
if (directives.invalidExecAsk) return { text: `Unrecognized exec ask "${directives.rawExecAsk ?? ""}". Valid: off, on-miss, always.` };
|
|
648
|
-
if (directives.invalidExecNode) return { text: "Exec node requires a value." };
|
|
649
|
-
if (!directives.hasExecOptions) {
|
|
650
|
-
const execDefaults = resolveExecDefaults({
|
|
651
|
-
cfg: params.cfg,
|
|
652
|
-
sessionEntry,
|
|
653
|
-
agentId: activeAgentId,
|
|
654
|
-
sandboxAvailable: runtimeIsSandboxed
|
|
655
|
-
});
|
|
656
|
-
const nodeLabel = execDefaults.node ? `node=${execDefaults.node}` : "node=(unset)";
|
|
657
|
-
return { text: withOptions(`Current exec defaults: host=${renderExecTargetLabel(execDefaults.host)}, effective=${execDefaults.effectiveHost}, security=${execDefaults.security}, ask=${execDefaults.ask}, ${nodeLabel}.`, "host=auto|sandbox|gateway|node, security=deny|allowlist|full, ask=off|on-miss|always, node=<id>") };
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
const queueAck = maybeHandleQueueDirective({
|
|
661
|
-
directives,
|
|
662
|
-
cfg: params.cfg,
|
|
663
|
-
channel: provider,
|
|
664
|
-
sessionEntry
|
|
665
|
-
});
|
|
666
|
-
if (queueAck) return queueAck;
|
|
667
|
-
if (directives.hasThinkDirective && directives.thinkLevel && !isThinkingLevelSupported({
|
|
668
|
-
provider: resolvedProvider,
|
|
669
|
-
model: resolvedModel,
|
|
670
|
-
level: directives.thinkLevel,
|
|
671
|
-
catalog: thinkingCatalog
|
|
672
|
-
})) return { text: `Thinking level "${directives.thinkLevel}" is not supported for ${resolvedProvider}/${resolvedModel}. Use one of: ${formatThinkingLevels(resolvedProvider, resolvedModel, ", ", thinkingCatalog)}.` };
|
|
673
|
-
const resolvedDirectiveThinkLevel = directives.thinkLevel;
|
|
674
|
-
const nextThinkLevel = directives.hasThinkDirective ? resolvedDirectiveThinkLevel : sessionEntry?.thinkingLevel ?? currentThinkLevel;
|
|
675
|
-
const remappedUnsupportedThinkLevel = !directives.hasThinkDirective && nextThinkLevel && !isThinkingLevelSupported({
|
|
676
|
-
provider: resolvedProvider,
|
|
677
|
-
model: resolvedModel,
|
|
678
|
-
level: nextThinkLevel,
|
|
679
|
-
catalog: thinkingCatalog
|
|
680
|
-
}) ? resolveSupportedThinkingLevel({
|
|
681
|
-
provider: resolvedProvider,
|
|
682
|
-
model: resolvedModel,
|
|
683
|
-
level: nextThinkLevel,
|
|
684
|
-
catalog: thinkingCatalog
|
|
685
|
-
}) : void 0;
|
|
686
|
-
const shouldRemapUnsupportedThinkLevel = Boolean(remappedUnsupportedThinkLevel) && remappedUnsupportedThinkLevel !== nextThinkLevel;
|
|
687
|
-
const prevElevatedLevel = currentElevatedLevel ?? sessionEntry.elevatedLevel ?? (elevatedAllowed ? "on" : "off");
|
|
688
|
-
const prevReasoningLevel = currentReasoningLevel ?? sessionEntry.reasoningLevel ?? "off";
|
|
689
|
-
let elevatedChanged = directives.hasElevatedDirective && directives.elevatedLevel !== void 0 && elevatedEnabled && elevatedAllowed;
|
|
690
|
-
let modelSelectionUpdated = false;
|
|
691
|
-
const shouldPersistSessionEntry = directives.hasThinkDirective && (Boolean(directives.thinkLevel) || directives.clearThinkLevel) || directives.hasFastDirective && (directives.fastMode !== void 0 || directives.clearFastMode) || directives.hasVerboseDirective && Boolean(directives.verboseLevel) && allowInternalVerbosePersistence || directives.hasTraceDirective && Boolean(directives.traceLevel) || directives.hasReasoningDirective && Boolean(directives.reasoningLevel) || directives.hasElevatedDirective && Boolean(directives.elevatedLevel) || directives.hasExecDirective && directives.hasExecOptions && allowInternalExecPersistence || Boolean(modelSelection) || directives.hasQueueDirective || shouldRemapUnsupportedThinkLevel;
|
|
692
|
-
const fastModeChanged = directives.hasFastDirective && directives.fastMode !== void 0 && directives.fastMode !== currentFastMode || directives.clearFastMode && currentFastMode !== fastModeState.enabled;
|
|
693
|
-
let reasoningChanged = directives.hasReasoningDirective && directives.reasoningLevel !== void 0;
|
|
694
|
-
if (shouldPersistSessionEntry) {
|
|
695
|
-
if (directives.clearThinkLevel) delete sessionEntry.thinkingLevel;
|
|
696
|
-
else if (directives.hasThinkDirective && directives.thinkLevel && resolvedDirectiveThinkLevel) sessionEntry.thinkingLevel = resolvedDirectiveThinkLevel;
|
|
697
|
-
if (directives.clearFastMode) delete sessionEntry.fastMode;
|
|
698
|
-
else if (directives.hasFastDirective && directives.fastMode !== void 0) sessionEntry.fastMode = directives.fastMode;
|
|
699
|
-
if (shouldRemapUnsupportedThinkLevel && remappedUnsupportedThinkLevel) sessionEntry.thinkingLevel = remappedUnsupportedThinkLevel;
|
|
700
|
-
if (directives.hasVerboseDirective && directives.verboseLevel && allowInternalVerbosePersistence) applyVerboseOverride(sessionEntry, directives.verboseLevel);
|
|
701
|
-
if (directives.hasTraceDirective && directives.traceLevel) applyTraceOverride(sessionEntry, directives.traceLevel);
|
|
702
|
-
if (directives.hasReasoningDirective && directives.reasoningLevel) {
|
|
703
|
-
if (directives.reasoningLevel === "off") sessionEntry.reasoningLevel = "off";
|
|
704
|
-
else sessionEntry.reasoningLevel = directives.reasoningLevel;
|
|
705
|
-
reasoningChanged = directives.reasoningLevel !== prevReasoningLevel && directives.reasoningLevel !== void 0;
|
|
706
|
-
}
|
|
707
|
-
if (directives.hasElevatedDirective && directives.elevatedLevel) {
|
|
708
|
-
sessionEntry.elevatedLevel = directives.elevatedLevel;
|
|
709
|
-
elevatedChanged = elevatedChanged || directives.elevatedLevel !== prevElevatedLevel && directives.elevatedLevel !== void 0;
|
|
710
|
-
}
|
|
711
|
-
if (directives.hasExecDirective && directives.hasExecOptions && allowInternalExecPersistence) {
|
|
712
|
-
if (directives.execHost) sessionEntry.execHost = directives.execHost;
|
|
713
|
-
if (directives.execSecurity) sessionEntry.execSecurity = directives.execSecurity;
|
|
714
|
-
if (directives.execAsk) sessionEntry.execAsk = directives.execAsk;
|
|
715
|
-
if (directives.execNode) sessionEntry.execNode = directives.execNode;
|
|
716
|
-
}
|
|
717
|
-
if (modelSelection) modelSelectionUpdated = applyModelOverrideToSessionEntry({
|
|
718
|
-
entry: sessionEntry,
|
|
719
|
-
selection: modelSelection,
|
|
720
|
-
profileOverride,
|
|
721
|
-
markLiveSwitchPending: true
|
|
722
|
-
}).updated;
|
|
723
|
-
if (directives.hasQueueDirective && directives.queueReset) {
|
|
724
|
-
delete sessionEntry.queueMode;
|
|
725
|
-
delete sessionEntry.queueDebounceMs;
|
|
726
|
-
delete sessionEntry.queueCap;
|
|
727
|
-
delete sessionEntry.queueDrop;
|
|
728
|
-
} else if (directives.hasQueueDirective) {
|
|
729
|
-
if (directives.queueMode) sessionEntry.queueMode = directives.queueMode;
|
|
730
|
-
if (typeof directives.debounceMs === "number") sessionEntry.queueDebounceMs = directives.debounceMs;
|
|
731
|
-
if (typeof directives.cap === "number") sessionEntry.queueCap = directives.cap;
|
|
732
|
-
if (directives.dropPolicy) sessionEntry.queueDrop = directives.dropPolicy;
|
|
733
|
-
}
|
|
734
|
-
sessionEntry.updatedAt = Date.now();
|
|
735
|
-
sessionStore[sessionKey] = sessionEntry;
|
|
736
|
-
if (storePath) await updateSessionStore(storePath, (store) => {
|
|
737
|
-
store[sessionKey] = sessionEntry;
|
|
738
|
-
});
|
|
739
|
-
if (modelSelection && modelSelectionUpdated && sessionKey) {
|
|
740
|
-
triggerSessionPatchHook({
|
|
741
|
-
cfg: params.cfg,
|
|
742
|
-
sessionEntry,
|
|
743
|
-
sessionKey,
|
|
744
|
-
patch: {
|
|
745
|
-
key: sessionKey,
|
|
746
|
-
model: directives.rawModelDirective ?? `${modelSelection.provider}/${modelSelection.model}`
|
|
747
|
-
}
|
|
748
|
-
});
|
|
749
|
-
refreshQueuedFollowupSession({
|
|
750
|
-
key: sessionKey,
|
|
751
|
-
nextProvider: modelSelection.provider,
|
|
752
|
-
nextModel: modelSelection.model,
|
|
753
|
-
nextModelOverrideSource: "user",
|
|
754
|
-
nextAuthProfileId: profileOverride,
|
|
755
|
-
nextAuthProfileIdSource: profileOverride ? "user" : void 0
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
if (modelSelection) {
|
|
760
|
-
const nextLabel = `${modelSelection.provider}/${modelSelection.model}`;
|
|
761
|
-
if (nextLabel !== initialModelLabel) enqueueSystemEvent(formatModelSwitchEvent(nextLabel, modelSelection.alias), {
|
|
762
|
-
sessionKey,
|
|
763
|
-
contextKey: `model:${nextLabel}`
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
enqueueModeSwitchEvents({
|
|
767
|
-
enqueueSystemEvent,
|
|
768
|
-
sessionEntry,
|
|
769
|
-
sessionKey,
|
|
770
|
-
elevatedChanged,
|
|
771
|
-
reasoningChanged
|
|
772
|
-
});
|
|
773
|
-
const parts = [];
|
|
774
|
-
if (directives.clearThinkLevel) parts.push("Thinking level reset to default.");
|
|
775
|
-
else if (directives.hasThinkDirective && directives.thinkLevel) {
|
|
776
|
-
const displayedThinkLevel = resolvedDirectiveThinkLevel ?? directives.thinkLevel;
|
|
777
|
-
parts.push(displayedThinkLevel === "off" ? "Thinking disabled." : `Thinking level set to ${displayedThinkLevel}.`);
|
|
778
|
-
if (directives.thinkLevel === "max" && displayedThinkLevel !== "max") parts.push(`max not supported for ${resolvedProvider}/${resolvedModel}; using ${displayedThinkLevel}.`);
|
|
779
|
-
}
|
|
780
|
-
if (directives.clearFastMode) parts.push(formatDirectiveAck("Fast mode reset to default."));
|
|
781
|
-
else if (directives.hasFastDirective && directives.fastMode !== void 0) parts.push(directives.fastMode ? formatDirectiveAck("Fast mode enabled.") : formatDirectiveAck("Fast mode disabled."));
|
|
782
|
-
if (directives.hasVerboseDirective && directives.verboseLevel) parts.push(!allowInternalVerbosePersistence ? formatDirectiveAck(formatInternalVerboseCurrentReplyOnlyText()) : directives.verboseLevel === "off" ? formatDirectiveAck("Verbose logging disabled.") : directives.verboseLevel === "full" ? formatDirectiveAck("Verbose logging set to full.") : formatDirectiveAck("Verbose logging enabled."));
|
|
783
|
-
if (directives.hasTraceDirective && directives.traceLevel) parts.push(directives.traceLevel === "off" ? formatDirectiveAck("Trace disabled.") : directives.traceLevel === "raw" ? formatDirectiveAck("Trace set to raw. Warning: trace output may contain sensitive information.") : formatDirectiveAck("Trace enabled. Warning: trace output may contain sensitive information."));
|
|
784
|
-
if (directives.hasVerboseDirective && directives.verboseLevel && !allowInternalVerbosePersistence) parts.push(formatDirectiveAck(formatInternalVerbosePersistenceDeniedText()));
|
|
785
|
-
if (directives.hasReasoningDirective && directives.reasoningLevel) parts.push(directives.reasoningLevel === "off" ? formatDirectiveAck("Reasoning visibility disabled.") : directives.reasoningLevel === "stream" ? formatDirectiveAck("Reasoning stream enabled.") : formatDirectiveAck("Reasoning visibility enabled."));
|
|
786
|
-
if (directives.hasElevatedDirective && directives.elevatedLevel) {
|
|
787
|
-
parts.push(directives.elevatedLevel === "off" ? formatDirectiveAck("Elevated mode disabled.") : directives.elevatedLevel === "full" ? formatDirectiveAck("Elevated mode set to full (auto-approve).") : formatDirectiveAck("Elevated mode set to ask (approvals may still apply)."));
|
|
788
|
-
if (shouldHintDirectRuntime) parts.push(formatElevatedRuntimeHint());
|
|
789
|
-
}
|
|
790
|
-
if (directives.hasExecDirective && directives.hasExecOptions && allowInternalExecPersistence) {
|
|
791
|
-
const execParts = [];
|
|
792
|
-
if (directives.execHost) execParts.push(`host=${directives.execHost}`);
|
|
793
|
-
if (directives.execSecurity) execParts.push(`security=${directives.execSecurity}`);
|
|
794
|
-
if (directives.execAsk) execParts.push(`ask=${directives.execAsk}`);
|
|
795
|
-
if (directives.execNode) execParts.push(`node=${directives.execNode}`);
|
|
796
|
-
if (execParts.length > 0) parts.push(formatDirectiveAck(`Exec defaults set (${execParts.join(", ")}).`));
|
|
797
|
-
}
|
|
798
|
-
if (directives.hasExecDirective && directives.hasExecOptions && !allowInternalExecPersistence) parts.push(formatDirectiveAck(formatInternalExecPersistenceDeniedText()));
|
|
799
|
-
if (!directives.hasThinkDirective && shouldRemapUnsupportedThinkLevel && remappedUnsupportedThinkLevel) parts.push(`Thinking level set to ${remappedUnsupportedThinkLevel} (${nextThinkLevel} not supported for ${resolvedProvider}/${resolvedModel}).`);
|
|
800
|
-
if (modelSelection) {
|
|
801
|
-
const label = `${modelSelection.provider}/${modelSelection.model}`;
|
|
802
|
-
const labelWithAlias = modelSelection.alias ? `${modelSelection.alias} (${label})` : label;
|
|
803
|
-
parts.push(modelSelection.isDefault ? `Model reset to default (${labelWithAlias}).` : `Model set to ${labelWithAlias} for this session.`);
|
|
804
|
-
if (profileOverride) parts.push(`认证配置 set to ${profileOverride}.`);
|
|
805
|
-
}
|
|
806
|
-
if (directives.hasQueueDirective && directives.queueMode) parts.push(formatDirectiveAck(`Queue mode set to ${directives.queueMode}.`));
|
|
807
|
-
else if (directives.hasQueueDirective && directives.queueReset) parts.push(formatDirectiveAck("Queue mode reset to default."));
|
|
808
|
-
if (directives.hasQueueDirective && typeof directives.debounceMs === "number") parts.push(formatDirectiveAck(`Queue debounce set to ${directives.debounceMs}ms.`));
|
|
809
|
-
if (directives.hasQueueDirective && typeof directives.cap === "number") parts.push(formatDirectiveAck(`Queue cap set to ${directives.cap}.`));
|
|
810
|
-
if (directives.hasQueueDirective && directives.dropPolicy) parts.push(formatDirectiveAck(`Queue drop set to ${directives.dropPolicy}.`));
|
|
811
|
-
if (fastModeChanged) {
|
|
812
|
-
const nextFastMode = directives.clearFastMode ? fastModeState.enabled : sessionEntry.fastMode;
|
|
813
|
-
enqueueSystemEvent(`Fast mode ${nextFastMode ? "enabled" : "disabled"}.`, {
|
|
814
|
-
sessionKey,
|
|
815
|
-
contextKey: `fast:${nextFastMode ? "on" : "off"}`
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
const ack = parts.join(" ").trim();
|
|
819
|
-
if (!ack && directives.hasStatusDirective) return;
|
|
820
|
-
return { text: ack || "OK." };
|
|
821
|
-
}
|
|
822
|
-
//#endregion
|
|
823
|
-
export { handleDirectiveOnly as t };
|