kaijibot 2026.8.21 → 2026.8.29
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/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/.buildstamp +1 -1
- package/dist/abort-cutoff.runtime-CvjKPRCc.js +20 -0
- package/dist/abort-cutoff.runtime.js +1 -1
- package/dist/abort-oydh5Lhz.js +202 -0
- package/dist/abort.runtime-CRdzW7xT.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/acp-cli-BHDaxHbu.js +2171 -0
- package/dist/acp-spawn-DxOz0xfY.js +1024 -0
- package/dist/acp-stateful-target-driver-KEFKE9Xp.js +88 -0
- package/dist/action-agents-Bx5S-ZYL.js +67 -0
- package/dist/action-focus-DGURwLDo.js +124 -0
- package/dist/action-help-7ey3e-V9.js +7 -0
- package/dist/action-info-C-s3lTKU.js +58 -0
- package/dist/action-kill-C8NE3VV1.js +33 -0
- package/dist/action-list-cwGVroWS.js +21 -0
- package/dist/action-log-DT-bRM9X.js +30 -0
- package/dist/action-send-aPSA7hXi.js +39 -0
- package/dist/action-spawn-C_rE09kV.js +46 -0
- package/dist/action-unfocus-CU1WRop0.js +28 -0
- package/dist/agent-DHoWKPhG.js +2 -0
- package/dist/agent-command-C85CZnB2.js +1479 -0
- package/dist/agent-runner-utils-fBrjJUeq.js +202 -0
- package/dist/agent-runner.runtime-BqeiZ4EM.js +2825 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agents/auth-profiles.runtime.js +1 -1
- package/dist/agents/model-catalog.runtime.js +1 -1
- package/dist/agents/models-config.runtime.js +1 -1
- package/dist/agents/pi-model-discovery-runtime.js +1 -1
- package/dist/agents-CLRmtsGT.js +5 -0
- package/dist/agents-CpAbdgb5.js +887 -0
- package/dist/anthropic-vertex-stream-C-dr7gew.js +5666 -0
- package/dist/api-BdhUf3WJ.js +2 -0
- package/dist/api-BmEJb46d.js +5 -0
- package/dist/api-C-d6hJ6R.js +3 -0
- package/dist/api-CWzMTsre.js +35 -0
- package/dist/api-CspIEuoI.js +4 -0
- package/dist/api-DWfH8UCU.js +19 -0
- package/dist/api-Y8trG2YC.js +2 -0
- package/dist/api-fZ1Mwhb9.js +2 -0
- package/dist/api-inKLxoen.js +45 -0
- package/dist/api-plrtNPKq.js +2 -0
- package/dist/apply-Bfh6a5Gd.js +493 -0
- package/dist/apply.runtime-9wUnQpcn.js +2 -0
- package/dist/apply.runtime-BOvle-IJ.js +166 -0
- package/dist/apply.runtime.js +1 -1
- package/dist/approval-client-helpers-Ss4gUaso.js +82 -0
- package/dist/approval-gateway-resolver-D6xh0K2G.js +58 -0
- package/dist/approval-gateway-runtime-CffF6RIQ.js +2 -0
- package/dist/approval-handler-runtime-p9BmT1Xf.js +439 -0
- package/dist/approval-native-runtime-DN73OHKf.js +709 -0
- package/dist/approval-renderers-CITEnajR.js +64 -0
- package/dist/asr-DhijEuKe.js +196 -0
- package/dist/audit-BM_BshdA.js +885 -0
- package/dist/audit-extra.async-Cvm-ViC4.js +847 -0
- package/dist/audit.deep.runtime-Ccabqd1Y.js +2 -0
- package/dist/audit.deep.runtime.js +1 -1
- package/dist/audit.nondeep.runtime-BNrDSb24.js +859 -0
- package/dist/audit.nondeep.runtime.js +1 -1
- package/dist/audit.runtime-BKUEHsrE.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-Dt8gUUJi.js +181 -0
- package/dist/auth-choice-B7p3GCLx.js +71 -0
- package/dist/auth-choice-C_fDkWzu.js +3 -0
- package/dist/auth-choice-aZGUR7iI.js +353 -0
- package/dist/auth-choice-options-BxgjFsFO.js +104 -0
- package/dist/auth-choice-prompt-B-P39mib.js +2 -0
- package/dist/auth-choice-prompt-Dp7Vptqj.js +36 -0
- package/dist/auth-choice.plugin-providers.runtime-BJqmauZz.js +11 -0
- package/dist/auth-choice.plugin-providers.runtime.js +1 -1
- package/dist/auth-health-CPclIUZ3.js +165 -0
- package/dist/auth-profiles-P49vCUs4.js +438 -0
- package/dist/auth-profiles.runtime-pIuc_0v-.js +7 -0
- package/dist/auth-profiles.runtime.js +1 -1
- package/dist/auto-recall-Dm-J3oEj.js +78 -0
- package/dist/backup-create-DcO0pYFy.js +391 -0
- package/dist/banner-CIw8Yepm.js +2 -0
- package/dist/banner-w4GNKrs6.js +281 -0
- package/dist/binding-routing-BPc8aHaH.js +50 -0
- package/dist/binding-targets-BgrFPSR_.js +99 -0
- package/dist/bridge-server-Cu0xkN0E.js +103 -0
- package/dist/browser-config-runtime-3QVJiqnP.js +6 -0
- package/dist/browser-control-auth-BkunTzw7.js +120 -0
- package/dist/browser-node-runtime-BusKdg2E.js +12 -0
- package/dist/browser-profiles-BocOxjqC.js +170 -0
- package/dist/browser-runtime-D3goJLF9.js +377 -0
- package/dist/browser-setup-tools-j-IDYASL.js +12 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +2 -2
- package/dist/call-CMDK9Mqx.js +2 -0
- package/dist/call-Cisydyym.js +495 -0
- package/dist/call.runtime-CJUaD_Ck.js +2 -0
- package/dist/call.runtime.js +1 -1
- package/dist/capability-cli-DiozBqD0.js +1357 -0
- package/dist/catalog-provider-D5mzbnCM.js +40 -0
- package/dist/cdp.helpers-BqVqEY02.js +372 -0
- package/dist/channel-core-XiZJKMdn.js +5 -0
- package/dist/channel-summary-BHojSrOd.js +139 -0
- package/dist/channel-summary-CzjCL-4-.js +2 -0
- package/dist/channel.runtime-aniwgXor.js +399 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/channels-cli-Y-Wnalvd.js +248 -0
- package/dist/channels-uiGUmLk2.js +1147 -0
- package/dist/chat-i1lw_GS7.js +213 -0
- package/dist/chrome-BcU0ZvUn.js +1080 -0
- package/dist/chrome.executables-Dp0Lkjmz.js +550 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BGB7qdp3.js +191 -0
- package/dist/cli-BtTS8CKF.js +2 -0
- package/dist/cli-CQX3q4Fm.js +57 -0
- package/dist/cli-ZLAF588A.js +154 -0
- package/dist/cli-auth-seam-D-Qci5-b.js +14 -0
- package/dist/cli-backend-DxaeTZ8N.js +66 -0
- package/dist/cli-g4KJW_UT.js +2 -0
- package/dist/cli-migration-B2SFdY0j.js +127 -0
- package/dist/cli-runner-BVQt0v1D.js +1662 -0
- package/dist/cli-runner.runtime-BAMS4uW0.js +3 -0
- package/dist/cli-runner.runtime-H3alxbDK.js +2 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-shared-BaJRfEqD.js +142 -0
- package/dist/cli-startup-metadata.json +2 -2
- package/dist/cli.runtime-CQ1qvGdJ.js +819 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/client-bootstrap-BE7PiMJr.js +28 -0
- package/dist/codex-native-web-search-TdFXLTHZ.js +2 -0
- package/dist/codex-native-web-search-dKQT4ZPV.js +156 -0
- package/dist/collector-BXDPP4rJ.js +2 -0
- package/dist/collector-CT3qBEYi.js +424 -0
- package/dist/command-auth-DWJeLGyD.js +75 -0
- package/dist/command-config-resolution-BfTLOZxI.js +23 -0
- package/dist/command-config-resolution-GV0h_B0u.js +2 -0
- package/dist/command-execution-startup-oMdUg9Py.js +269 -0
- package/dist/command-format-CZ8oMoC9.js +2 -0
- package/dist/command-queue-BlORGS1M.js +260 -0
- package/dist/command-registry-Btc2eVOe.js +3 -0
- package/dist/command-registry-xNH71zVG.js +113 -0
- package/dist/command-secret-gateway-Cnjliq_k.js +528 -0
- package/dist/commands-acp-Bdd13J_G.js +1017 -0
- package/dist/commands-compact.runtime-yJyp-ut6.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-core.runtime-Ca3exd9B.js +2 -0
- package/dist/commands-core.runtime.js +1 -1
- package/dist/commands-handlers.runtime-C8y-XQKy.js +3762 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-models-C4z_O60i.js +306 -0
- package/dist/commands-reset-hooks-0RFpUGBC.js +129 -0
- package/dist/commands-status-sybj_ri9.js +223 -0
- package/dist/commands-status.runtime-DYFjfk2h.js +2 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-Cpc3gG_N.js +2 -0
- package/dist/commands-subagents-control.runtime-DxYylY9i.js +3 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands.runtime-B7K8rL1c.js +103 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/comment-shared-BCggDOtV.js +40 -0
- package/dist/compact-lqt6mZJz.js +11324 -0
- package/dist/compact.runtime-BM2mdK3C.js +7 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-CkGZkKuo.js +468 -0
- package/dist/completion-cli-CuWswpSF.js +2 -0
- package/dist/config-BZb7_jO5.js +166 -0
- package/dist/config-C2M27bOw.js +8 -0
- package/dist/config-D_fICGrQ.js +53 -0
- package/dist/config-cli-5iJ3ONwl.js +948 -0
- package/dist/config-defaults-XFEo6I7v.js +163 -0
- package/dist/config-guard-wGGj2x7b.js +94 -0
- package/dist/config-runtime-xwO8vvQP.js +14 -0
- package/dist/config-validation-tPbNhbrH.js +279 -0
- package/dist/configure-BNlqzTPI.js +2 -0
- package/dist/configure-C34mJxny.js +1162 -0
- package/dist/connection-auth-ClCO21bT.js +30 -0
- package/dist/context-CJMC7SyI.js +249 -0
- package/dist/context-CWC_tVM8.js +2 -0
- package/dist/context-writer-DNkMBOu9.js +290 -0
- package/dist/control-auth-DUZs9D8n.js +122 -0
- package/dist/control-ui/assets/agents-HENIRhRj.js +767 -0
- package/dist/control-ui/assets/anthropic-DlOZcqqy.js +40 -0
- package/dist/control-ui/assets/azure-openai-responses-BmSDwKAQ.js +2 -0
- package/dist/control-ui/assets/cron-B2CJajqc.js +744 -0
- package/dist/control-ui/assets/dialogues-DmWmdbMF.js +83 -0
- package/dist/control-ui/assets/history-CP7LOJan.js +71 -0
- package/dist/control-ui/assets/index-BsGBtIKy.css +1 -0
- package/dist/control-ui/assets/index-BtNFbQhY.js +2686 -0
- package/dist/control-ui/assets/mistral-CYEJ-E7G.js +72 -0
- package/dist/control-ui/assets/openai-codex-responses-BnLjDxo3.js +8 -0
- package/dist/control-ui/assets/openai-completions-D46D4eD2.js +6 -0
- package/dist/control-ui/assets/openai-responses-CNVWXuC0.js +2 -0
- package/dist/control-ui/assets/openai-responses-shared-ByeOE-gc.js +13 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/conversation-id-DlazDTmW.js +140 -0
- package/dist/conversation-runtime-DT_Kt-1e.js +31 -0
- package/dist/core-CDevM2NU.js +210 -0
- package/dist/cron-cli-CTGN3Kum.js +637 -0
- package/dist/curator-BM2jeaou.js +600 -0
- package/dist/curator-_QLWjb7r.js +2 -0
- package/dist/daemon-cli-BLe7aLfJ.js +476 -0
- package/dist/daemon-install-BneaHOcs.js +70 -0
- package/dist/delegate-DjZBGLcI.js +61 -0
- package/dist/deliver-BvUx9v-a.js +3 -0
- package/dist/deliver-DQbRPHSb.js +782 -0
- package/dist/deliver-runtime-ERlRZAW4.js +2 -0
- package/dist/delivery-outbound.runtime-Bi6Lu4JP.js +6 -0
- package/dist/delivery-outbound.runtime.js +1 -1
- package/dist/delivery-queue-B4kCxhnW.js +2 -0
- package/dist/delivery-queue-DDHwRyN-.js +372 -0
- package/dist/deps-DZQeVHSD.js +60 -0
- package/dist/devices-cli-CFSjN2KZ.js +336 -0
- package/dist/diagnostic-Bh12mVkv.js +311 -0
- package/dist/direct-dm-B6ygwMl8.js +139 -0
- package/dist/directive-handling.fast-lane-CjPxeQQ2.js +64 -0
- package/dist/directive-handling.fast-lane-DtY_Rzhu.js +2 -0
- package/dist/directive-handling.impl-DHH_ngCz.js +659 -0
- package/dist/directive-handling.impl-D_BUzYTB.js +2 -0
- package/dist/directive-handling.parse-COyCTXvI.js +376 -0
- package/dist/directive-handling.persist-CgxhTMmz.js +139 -0
- package/dist/directive-handling.persist.runtime-4pppF2CM.js +2 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/directive-handling.shared-BuNzwbwp.js +159 -0
- package/dist/directory-cli-gWQfdmFR.js +240 -0
- package/dist/dispatch-CS6YwhWT.js +1126 -0
- package/dist/dispatch-acp-CHwiKXlb.js +969 -0
- package/dist/dispatch-acp-manager.runtime-kJDHLlOT.js +3 -0
- package/dist/dispatch-acp-manager.runtime.js +1 -1
- package/dist/dispatch-acp-media.runtime-CCYs6Ack.js +3 -0
- package/dist/dispatch-acp-media.runtime.js +1 -1
- package/dist/dispatch-acp-session.runtime-DdkuSkq8.js +2 -0
- package/dist/dispatch-acp-session.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-D8sMZufW.js +19 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/dns-cli-C4uepTJE.js +193 -0
- package/dist/docs-cli-DWzfteG6.js +156 -0
- package/dist/doctor-completion-Fy70rfGZ.js +90 -0
- package/dist/doctor-config-preflight-BIf8igIW.js +148 -0
- package/dist/doctor-config-preflight-BiJSPUPg.js +2 -0
- package/dist/doctor-state-migrations-BbfPLoLz.js +2 -0
- package/dist/doctor-state-migrations-DFQets45.js +3 -0
- package/dist/drive-Bo8IgJdV.js +718 -0
- package/dist/embedding-provider-DUT_HxYD.js +26 -0
- package/dist/embedding-provider-DjVEIg-4.js +33 -0
- package/dist/embedding-provider-TKNNnQ3m.js +129 -0
- package/dist/engine-DfRE1gmI.js +82 -0
- package/dist/engine-embeddings-BN4uJOv0.js +1489 -0
- package/dist/entry-capabilities-BhpTqh0w.js +89 -0
- package/dist/entry.js +2 -2
- package/dist/env-overrides-Dn5yy0l4.js +347 -0
- package/dist/env-overrides.runtime-DdD841Km.js +7 -0
- package/dist/env-overrides.runtime.js +1 -1
- package/dist/exec-approval-forwarder.runtime-CV81fvQh.js +3 -0
- package/dist/exec-approval-forwarder.runtime.js +1 -1
- package/dist/exec-approval-reply-C_NfihTE.js +292 -0
- package/dist/exec-approvals-cli-DKOFcUAn.js +485 -0
- package/dist/exec-defaults-Cs1FwIKH.js +1440 -0
- package/dist/extensionAPI.js +4 -4
- package/dist/extensions/alibaba/index.js +1 -1
- package/dist/extensions/alibaba/video-generation-provider.js +1 -1
- package/dist/extensions/anthropic/api.js +2 -2
- package/dist/extensions/anthropic/cli-auth-seam.js +1 -1
- package/dist/extensions/anthropic/cli-backend-api.js +2 -2
- package/dist/extensions/anthropic/cli-backend.js +1 -1
- package/dist/extensions/anthropic/cli-migration.js +1 -1
- package/dist/extensions/anthropic/cli-shared.js +1 -1
- package/dist/extensions/anthropic/config-defaults.js +1 -1
- package/dist/extensions/anthropic/contract-api.js +1 -1
- package/dist/extensions/anthropic/index.js +1 -1
- package/dist/extensions/anthropic/media-understanding-provider.js +1 -1
- package/dist/extensions/anthropic/provider-policy-api.js +1 -1
- package/dist/extensions/anthropic/register.runtime.js +1 -1
- package/dist/extensions/anthropic/setup-api.js +1 -1
- package/dist/extensions/anthropic/stream-wrappers.js +1 -1
- package/dist/extensions/anthropic/test-api.js +3 -3
- package/dist/extensions/anthropic-vertex/api.js +3 -3
- package/dist/extensions/anthropic-vertex/index.js +2 -2
- package/dist/extensions/anthropic-vertex/provider-catalog.js +1 -1
- package/dist/extensions/anthropic-vertex/region.js +1 -1
- package/dist/extensions/anthropic-vertex/setup-api.js +1 -1
- package/dist/extensions/arcee/index.js +2 -2
- package/dist/extensions/browser/browser-bridge.js +1 -1
- package/dist/extensions/browser/browser-cdp.js +1 -1
- package/dist/extensions/browser/browser-config.js +3 -3
- package/dist/extensions/browser/browser-control-auth.js +1 -1
- package/dist/extensions/browser/browser-doctor.js +4 -4
- package/dist/extensions/browser/browser-host-inspection.js +1 -1
- package/dist/extensions/browser/browser-maintenance.js +2 -2
- package/dist/extensions/browser/browser-profiles.js +1 -1
- package/dist/extensions/browser/browser-runtime-api.js +11 -11
- package/dist/extensions/browser/index.js +1 -1
- package/dist/extensions/browser/plugin-registration.js +1 -1
- package/dist/extensions/browser/register.runtime.js +3 -3
- package/dist/extensions/browser/runtime-api.js +12 -12
- package/dist/extensions/browser/setup-api.js +2 -2
- package/dist/extensions/browser/test-support.js +1 -1
- package/dist/extensions/byteplus/index.js +3 -3
- package/dist/extensions/byteplus/video-generation-provider.js +1 -1
- package/dist/extensions/cerebras/index.js +1 -1
- package/dist/extensions/chutes/api.js +3 -3
- package/dist/extensions/chutes/index.js +7 -7
- package/dist/extensions/chutes/models.js +1 -1
- package/dist/extensions/chutes/onboard.js +2 -2
- package/dist/extensions/chutes/provider-catalog.js +1 -1
- package/dist/extensions/cloudflare-ai-gateway/api.js +1 -1
- package/dist/extensions/cloudflare-ai-gateway/catalog-provider.js +1 -1
- package/dist/extensions/cloudflare-ai-gateway/index.js +6 -6
- package/dist/extensions/deepinfra/api.js +3 -3
- package/dist/extensions/deepinfra/embedding-provider.js +1 -1
- package/dist/extensions/deepinfra/index.js +4 -4
- package/dist/extensions/deepinfra/media-understanding-provider.js +1 -1
- package/dist/extensions/deepinfra/memory-embedding-adapter.js +1 -1
- package/dist/extensions/deepinfra/video-generation-provider.js +1 -1
- package/dist/extensions/deepseek/index.js +1 -1
- package/dist/extensions/device-pair/api.js +2 -2
- package/dist/extensions/device-pair/index.js +5 -5
- package/dist/extensions/device-pair/notify.js +1 -1
- package/dist/extensions/device-pair/pair-command-approve.js +1 -1
- package/dist/extensions/device-pair/qr-image.js +2 -2
- package/dist/extensions/diffs/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/diffs/index.js +1 -1
- package/dist/extensions/diffs/node_modules/.package-lock.json +6 -6
- package/dist/extensions/diffs/node_modules/@ungap/structured-clone/cjs/deserialize.js +12 -2
- package/dist/extensions/diffs/node_modules/@ungap/structured-clone/cjs/serialize.js +5 -1
- package/dist/extensions/diffs/node_modules/@ungap/structured-clone/esm/deserialize.js +12 -2
- package/dist/extensions/diffs/node_modules/@ungap/structured-clone/esm/serialize.js +5 -1
- package/dist/extensions/diffs/node_modules/@ungap/structured-clone/package.json +1 -1
- package/dist/extensions/diffs/node_modules/@ungap/structured-clone/structured-json.js +1 -1
- package/dist/extensions/diffs/node_modules/typebox/build/format/email.mjs +1 -1
- package/dist/extensions/diffs/node_modules/typebox/build/format/idna/idn-hostname.mjs +21 -1
- package/dist/extensions/diffs/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/dist/extensions/diffs/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/dist/extensions/diffs/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/dist/extensions/diffs/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/dist/extensions/diffs/node_modules/typebox/build/system/memory/discard.mjs +2 -2
- package/dist/extensions/diffs/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
- package/dist/extensions/diffs/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/dist/extensions/diffs/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/dist/extensions/diffs/node_modules/typebox/package.json +1 -1
- package/dist/extensions/exa/index.js +1 -1
- package/dist/extensions/feishu/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/feishu/api.js +16 -16
- package/dist/extensions/feishu/contract-api.js +2 -2
- package/dist/extensions/feishu/node_modules/.package-lock.json +12 -12
- package/dist/extensions/feishu/node_modules/@types/node/README.md +1 -1
- package/dist/extensions/feishu/node_modules/@types/node/buffer.buffer.d.ts +10 -5
- package/dist/extensions/feishu/node_modules/@types/node/crypto.d.ts +2 -4
- package/dist/extensions/feishu/node_modules/@types/node/dgram.d.ts +119 -4
- package/dist/extensions/feishu/node_modules/@types/node/fs/promises.d.ts +61 -65
- package/dist/extensions/feishu/node_modules/@types/node/fs.d.ts +86 -76
- package/dist/extensions/feishu/node_modules/@types/node/http.d.ts +17 -1
- package/dist/extensions/feishu/node_modules/@types/node/http2.d.ts +12 -4
- package/dist/extensions/feishu/node_modules/@types/node/index.d.ts +1 -0
- package/dist/extensions/feishu/node_modules/@types/node/inspector.d.ts +2 -1
- package/dist/extensions/feishu/node_modules/@types/node/net.d.ts +108 -16
- package/dist/extensions/feishu/node_modules/@types/node/package.json +2 -2
- package/dist/extensions/feishu/node_modules/@types/node/process.d.ts +52 -0
- package/dist/extensions/feishu/node_modules/@types/node/quic.d.ts +246 -38
- package/dist/extensions/feishu/node_modules/@types/node/sqlite.d.ts +6 -2
- package/dist/extensions/feishu/node_modules/@types/node/stream/iter.d.ts +4 -4
- package/dist/extensions/feishu/node_modules/@types/node/test.d.ts +36 -0
- package/dist/extensions/feishu/node_modules/@types/node/tls.d.ts +24 -0
- package/dist/extensions/feishu/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
- package/dist/extensions/feishu/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/dist/extensions/feishu/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/dist/extensions/feishu/node_modules/@types/node/tty.d.ts +4 -3
- package/dist/extensions/feishu/node_modules/@types/node/vfs.d.ts +210 -0
- package/dist/extensions/feishu/node_modules/@types/node/vm.d.ts +1 -1
- package/dist/extensions/feishu/node_modules/axios/CHANGELOG.md +62 -0
- package/dist/extensions/feishu/node_modules/axios/README.md +233 -5
- package/dist/extensions/feishu/node_modules/axios/dist/axios.js +387 -89
- package/dist/extensions/feishu/node_modules/axios/dist/axios.min.js +3 -3
- package/dist/extensions/feishu/node_modules/axios/dist/browser/axios.cjs +458 -98
- package/dist/extensions/feishu/node_modules/axios/dist/esm/axios.js +458 -98
- package/dist/extensions/feishu/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/dist/extensions/feishu/node_modules/axios/dist/node/axios.cjs +568 -116
- package/dist/extensions/feishu/node_modules/axios/index.d.cts +4 -0
- package/dist/extensions/feishu/node_modules/axios/index.d.ts +4 -0
- package/dist/extensions/feishu/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/dist/extensions/feishu/node_modules/axios/lib/adapters/http.js +134 -50
- package/dist/extensions/feishu/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/dist/extensions/feishu/node_modules/axios/lib/core/Axios.js +19 -14
- package/dist/extensions/feishu/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/dist/extensions/feishu/node_modules/axios/lib/core/buildFullPath.js +1 -13
- package/dist/extensions/feishu/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/dist/extensions/feishu/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/dist/extensions/feishu/node_modules/axios/lib/core/methodList.js +17 -0
- package/dist/extensions/feishu/node_modules/axios/lib/defaults/index.js +2 -1
- package/dist/extensions/feishu/node_modules/axios/lib/env/data.js +1 -1
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/HttpStatusCode.js +11 -1
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/progressEventReducer.js +1 -1
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/resolveConfig.js +4 -2
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/shouldBypassProxy.js +182 -6
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/dist/extensions/feishu/node_modules/axios/lib/helpers/toFormData.js +14 -21
- package/dist/extensions/feishu/node_modules/axios/lib/utils.js +134 -13
- package/dist/extensions/feishu/node_modules/axios/package.json +1 -1
- package/dist/extensions/feishu/node_modules/protobufjs/dist/light/protobuf.js +59 -6
- package/dist/extensions/feishu/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/dist/extensions/feishu/node_modules/protobufjs/dist/minimal/protobuf.js +22 -2
- package/dist/extensions/feishu/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/dist/extensions/feishu/node_modules/protobufjs/dist/protobuf.js +59 -6
- package/dist/extensions/feishu/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/dist/extensions/feishu/node_modules/protobufjs/package.json +1 -1
- package/dist/extensions/feishu/node_modules/protobufjs/src/decoder.js +32 -3
- package/dist/extensions/feishu/node_modules/protobufjs/src/reader.js +20 -0
- package/dist/extensions/feishu/node_modules/protobufjs/src/wrappers.js +5 -1
- package/dist/extensions/feishu/node_modules/typebox/build/format/email.mjs +1 -1
- package/dist/extensions/feishu/node_modules/typebox/build/format/idna/idn-hostname.mjs +21 -1
- package/dist/extensions/feishu/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/dist/extensions/feishu/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/dist/extensions/feishu/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/dist/extensions/feishu/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/dist/extensions/feishu/node_modules/typebox/build/system/memory/discard.mjs +2 -2
- package/dist/extensions/feishu/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
- package/dist/extensions/feishu/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/dist/extensions/feishu/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/dist/extensions/feishu/node_modules/typebox/package.json +1 -1
- package/dist/extensions/feishu/runtime-api.js +2 -2
- package/dist/extensions/feishu/security-contract-api.js +1 -1
- package/dist/extensions/feishu/session-key-api.js +1 -1
- package/dist/extensions/feishu/setup-api.js +1 -1
- package/dist/extensions/fireworks/index.js +1 -1
- package/dist/extensions/github-copilot/api.js +1 -1
- package/dist/extensions/github-copilot/index.js +6 -6
- package/dist/extensions/github-copilot/login.js +1 -1
- package/dist/extensions/github-copilot/models-defaults.js +1 -1
- package/dist/extensions/github-copilot/models.js +1 -1
- package/dist/extensions/github-copilot/register.runtime.js +4 -4
- package/dist/extensions/github-copilot/replay-policy.js +1 -1
- package/dist/extensions/google/api.js +1 -1
- package/dist/extensions/google/gemini-cli-provider.js +1 -1
- package/dist/extensions/google/image-generation-provider.js +1 -1
- package/dist/extensions/google/index.js +5 -5
- package/dist/extensions/google/media-understanding-provider.js +1 -1
- package/dist/extensions/google/music-generation-provider.js +1 -1
- package/dist/extensions/google/oauth-token-shared.js +1 -1
- package/dist/extensions/google/oauth.credentials.js +1 -1
- package/dist/extensions/google/oauth.flow.js +1 -1
- package/dist/extensions/google/oauth.js +2 -2
- package/dist/extensions/google/oauth.runtime.js +1 -1
- package/dist/extensions/google/oauth.settings.js +1 -1
- package/dist/extensions/google/oauth.token.js +1 -1
- package/dist/extensions/google/provider-models.js +1 -1
- package/dist/extensions/google/provider-registration.js +1 -1
- package/dist/extensions/google/runtime-api.js +2 -2
- package/dist/extensions/google/test-api.js +2 -2
- package/dist/extensions/google/video-generation-provider.js +1 -1
- package/dist/extensions/google/web-search-provider.js +1 -1
- package/dist/extensions/groq/index.js +1 -1
- package/dist/extensions/groq/media-understanding-provider.js +1 -1
- package/dist/extensions/groq/test-api.js +1 -1
- package/dist/extensions/huggingface/api.js +3 -3
- package/dist/extensions/huggingface/index.js +3 -3
- package/dist/extensions/huggingface/models.js +1 -1
- package/dist/extensions/huggingface/onboard.js +1 -1
- package/dist/extensions/huggingface/provider-catalog.js +2 -2
- package/dist/extensions/image-generation-core/api.js +2 -2
- package/dist/extensions/image-generation-core/runtime-api.js +2 -2
- package/dist/extensions/kilocode/api.js +2 -2
- package/dist/extensions/kilocode/index.js +6 -6
- package/dist/extensions/kilocode/onboard.js +2 -2
- package/dist/extensions/kilocode/provider-catalog.js +1 -1
- package/dist/extensions/kilocode/provider-models.js +1 -1
- package/dist/extensions/kilocode/shared.js +1 -1
- package/dist/extensions/kimi-coding/index.js +3 -3
- package/dist/extensions/kindle-portal/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/kindle-portal/node_modules/.package-lock.json +3 -3
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/email.mjs +1 -1
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/idna/idn-hostname.mjs +21 -1
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/dist/extensions/kindle-portal/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/dist/extensions/kindle-portal/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/dist/extensions/kindle-portal/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/dist/extensions/kindle-portal/node_modules/typebox/build/system/memory/discard.mjs +2 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
- package/dist/extensions/kindle-portal/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/dist/extensions/kindle-portal/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/dist/extensions/kindle-portal/node_modules/typebox/package.json +1 -1
- package/dist/extensions/knowledge-wiki/index.js +2 -2
- package/dist/extensions/litellm/index.js +1 -1
- package/dist/extensions/llm-task/index.js +1 -1
- package/dist/extensions/lmstudio/api.js +6 -6
- package/dist/extensions/lmstudio/index.js +2 -2
- package/dist/extensions/lmstudio/runtime-api.js +1 -1
- package/dist/extensions/media-understanding-core/runtime-api.js +2 -2
- package/dist/extensions/memory-core/cli-metadata.js +2 -2
- package/dist/extensions/memory-core/index.js +12 -12
- package/dist/extensions/memory-core/manager-runtime.js +1 -1
- package/dist/extensions/memory-core/runtime-api.js +5 -5
- package/dist/extensions/memory-lancedb/cli-metadata.js +1 -1
- package/dist/extensions/memory-lancedb/index.js +1 -1
- package/dist/extensions/microsoft/index.js +1 -1
- package/dist/extensions/microsoft/speech-provider.js +1 -1
- package/dist/extensions/microsoft/test-api.js +1 -1
- package/dist/extensions/microsoft/tts.js +1 -1
- package/dist/extensions/microsoft-foundry/auth.js +1 -1
- package/dist/extensions/microsoft-foundry/cli.js +1 -1
- package/dist/extensions/microsoft-foundry/index.js +1 -1
- package/dist/extensions/microsoft-foundry/onboard.js +2 -2
- package/dist/extensions/microsoft-foundry/provider.js +1 -1
- package/dist/extensions/microsoft-foundry/runtime.js +1 -1
- package/dist/extensions/microsoft-foundry/shared-runtime.js +2 -2
- package/dist/extensions/microsoft-foundry/shared.js +1 -1
- package/dist/extensions/minimax/image-generation-provider.js +1 -1
- package/dist/extensions/minimax/index.js +7 -7
- package/dist/extensions/minimax/media-understanding-provider.js +1 -1
- package/dist/extensions/minimax/music-generation-provider.js +1 -1
- package/dist/extensions/minimax/oauth.js +1 -1
- package/dist/extensions/minimax/oauth.runtime.js +1 -1
- package/dist/extensions/minimax/provider-registration.js +1 -1
- package/dist/extensions/minimax/speech-provider.js +1 -1
- package/dist/extensions/minimax/test-api.js +2 -2
- package/dist/extensions/minimax/video-generation-provider.js +1 -1
- package/dist/extensions/minimax/web-search-provider.js +1 -1
- package/dist/extensions/mistral/embedding-provider.js +1 -1
- package/dist/extensions/mistral/index.js +2 -2
- package/dist/extensions/mistral/media-understanding-provider.js +1 -1
- package/dist/extensions/mistral/memory-embedding-adapter.js +3 -3
- package/dist/extensions/mistral/test-api.js +1 -1
- package/dist/extensions/moonshot/index.js +5 -5
- package/dist/extensions/moonshot/media-understanding-provider.js +1 -1
- package/dist/extensions/moonshot/test-api.js +2 -2
- package/dist/extensions/moonshot/web-search-provider.js +1 -1
- package/dist/extensions/nvidia/index.js +1 -1
- package/dist/extensions/ollama/api.js +3 -3
- package/dist/extensions/ollama/index.js +6 -6
- package/dist/extensions/ollama/runtime-api.js +2 -2
- package/dist/extensions/ollama/web-search-provider.js +1 -1
- package/dist/extensions/openai/api.js +3 -3
- package/dist/extensions/openai/image-generation-provider.js +1 -1
- package/dist/extensions/openai/index.js +9 -9
- package/dist/extensions/openai/media-understanding-provider.js +1 -1
- package/dist/extensions/openai/openai-codex-auth-identity.js +1 -1
- package/dist/extensions/openai/openai-codex-cli-auth.js +1 -1
- package/dist/extensions/openai/openai-codex-provider.js +1 -1
- package/dist/extensions/openai/openai-codex-shared.js +1 -1
- package/dist/extensions/openai/openai-provider.js +1 -1
- package/dist/extensions/openai/prompt-overlay.js +1 -1
- package/dist/extensions/openai/realtime-provider-shared.js +1 -1
- package/dist/extensions/openai/realtime-transcription-provider.js +1 -1
- package/dist/extensions/openai/realtime-voice-provider.js +1 -1
- package/dist/extensions/openai/register.runtime.js +8 -8
- package/dist/extensions/openai/shared.js +1 -1
- package/dist/extensions/openai/speech-provider.js +1 -1
- package/dist/extensions/openai/test-api.js +5 -5
- package/dist/extensions/openai/transport-policy.js +1 -1
- package/dist/extensions/openai/video-generation-provider.js +1 -1
- package/dist/extensions/opencode/index.js +3 -3
- package/dist/extensions/opencode-go/index.js +2 -2
- package/dist/extensions/openrouter/api.js +2 -2
- package/dist/extensions/openrouter/image-generation-provider.js +1 -1
- package/dist/extensions/openrouter/index.js +6 -6
- package/dist/extensions/openrouter/media-understanding-provider.js +1 -1
- package/dist/extensions/openrouter/music-generation-provider.js +1 -1
- package/dist/extensions/openrouter/test-api.js +3 -3
- package/dist/extensions/openrouter/video-generation-provider.js +1 -1
- package/dist/extensions/openshell/index.js +4 -4
- package/dist/extensions/qianfan/index.js +1 -1
- package/dist/extensions/qwen/index.js +3 -3
- package/dist/extensions/qwen/media-understanding-provider.js +1 -1
- package/dist/extensions/qwen/test-api.js +2 -2
- package/dist/extensions/qwen/video-generation-provider.js +1 -1
- package/dist/extensions/runway/index.js +1 -1
- package/dist/extensions/runway/video-generation-provider.js +1 -1
- package/dist/extensions/sglang/api.js +2 -2
- package/dist/extensions/sglang/index.js +2 -2
- package/dist/extensions/sglang/models.js +1 -1
- package/dist/extensions/sherpa-speech/asr.js +1 -1
- package/dist/extensions/sherpa-speech/engine.js +1 -1
- package/dist/extensions/sherpa-speech/index.js +1 -1
- package/dist/extensions/speech-core/api.js +2 -2
- package/dist/extensions/speech-core/runtime-api.js +4 -4
- package/dist/extensions/stepfun/index.js +2 -2
- package/dist/extensions/talk-voice/index.js +3 -3
- package/dist/extensions/tavily/index.js +1 -1
- package/dist/extensions/together/index.js +1 -1
- package/dist/extensions/together/video-generation-provider.js +1 -1
- package/dist/extensions/venice/api.js +3 -3
- package/dist/extensions/venice/index.js +5 -5
- package/dist/extensions/venice/models.js +1 -1
- package/dist/extensions/venice/onboard.js +2 -2
- package/dist/extensions/venice/provider-catalog.js +1 -1
- package/dist/extensions/vercel-ai-gateway/index.js +1 -1
- package/dist/extensions/vllm/api.js +2 -2
- package/dist/extensions/vllm/index.js +2 -2
- package/dist/extensions/vllm/models.js +1 -1
- package/dist/extensions/vllm/register.runtime.js +2 -2
- package/dist/extensions/volcengine/index.js +2 -2
- package/dist/extensions/vydra/image-generation-provider.js +1 -1
- package/dist/extensions/vydra/index.js +5 -5
- package/dist/extensions/vydra/shared.js +1 -1
- package/dist/extensions/vydra/speech-provider.js +1 -1
- package/dist/extensions/vydra/video-generation-provider.js +1 -1
- package/dist/extensions/webhooks/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/webhooks/api.js +1 -1
- package/dist/extensions/webhooks/index.js +3 -3
- package/dist/extensions/webhooks/runtime-api.js +1 -1
- package/dist/extensions/wechat/api.js +3 -3
- package/dist/extensions/xai/api.js +5 -5
- package/dist/extensions/xai/code-execution.js +3 -3
- package/dist/extensions/xai/index.js +9 -9
- package/dist/extensions/xai/model-definitions.js +1 -1
- package/dist/extensions/xai/onboard.js +1 -1
- package/dist/extensions/xai/provider-catalog.js +1 -1
- package/dist/extensions/xai/provider-models.js +1 -1
- package/dist/extensions/xai/setup-api.js +1 -1
- package/dist/extensions/xai/video-generation-provider.js +1 -1
- package/dist/extensions/xai/web-search.js +1 -1
- package/dist/extensions/xai/x-search.js +3 -3
- package/dist/extensions/xiaomi/index.js +1 -1
- package/dist/extensions/zai/index.js +5 -5
- package/dist/extensions/zai/media-understanding-provider.js +1 -1
- package/dist/extensions/zai/test-api.js +1 -1
- package/dist/extra-params-CEZLNZPM.js +295 -0
- package/dist/format-P9xNDyfD.js +245 -0
- package/dist/fragment-collector-D6OalgG0.js +189 -0
- package/dist/gateway-cli-Bfl1SRvS.js +1532 -0
- package/dist/gateway-install-token-6z725yP4.js +284 -0
- package/dist/gateway-rpc-BIq75xob.js +14 -0
- package/dist/gateway-rpc.runtime-qaUC59kw.js +23 -0
- package/dist/gateway-rpc.runtime.js +1 -1
- package/dist/gemini-cli-provider-DapCuX8Q.js +106 -0
- package/dist/gemini-web-search-provider-qckYFHgT.js +167 -0
- package/dist/get-reply-from-config.runtime-Cxp-IFCe.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/gmail-setup-utils-Cc3pRzTO.js +422 -0
- package/dist/health-3b-YI19K.js +579 -0
- package/dist/health-MLtfjMov.js +2 -0
- package/dist/heartbeat-runner-Bn5_NCaE.js +1365 -0
- package/dist/heartbeat-runner-CLxBx0e9.js +4 -0
- package/dist/heartbeat-runner.runtime-B6RlKYc2.js +2 -0
- package/dist/heartbeat-runner.runtime.js +1 -1
- package/dist/help-ktSd2tag.js +76 -0
- package/dist/hooks-cli-IZb2tmWn.js +364 -0
- package/dist/image-C3lHN8WH.js +152 -0
- package/dist/image-generation-core-Csa-tOLR.js +17 -0
- package/dist/image-generation-core.auth.runtime-DWfzUU3N.js +2 -0
- package/dist/image-generation-core.auth.runtime.js +1 -1
- package/dist/image-generation-provider-Bq81bEDF.js +94 -0
- package/dist/image-generation-provider-D9rV0jKg.js +280 -0
- package/dist/image-generation-provider-DLxx1bzz.js +130 -0
- package/dist/image-generation-provider-DtYtLZ5X.js +136 -0
- package/dist/image-generation-provider-DxkBVWXc.js +163 -0
- package/dist/image-generation-runtime-BSjvNi3e.js +2 -0
- package/dist/image-runtime-DiMm78ho.js +7 -0
- package/dist/inbound-reply-dispatch-CIawaoIo.js +73 -0
- package/dist/inbound.runtime-CRF3jMe0.js +3 -0
- package/dist/inbound.runtime-DTPuWSKr.js +4 -0
- package/dist/inbound.runtime.js +1 -1
- package/dist/index.js +2 -2
- package/dist/infra-runtime-D3jjt6RI.js +25 -0
- package/dist/ingest-DZbARiPc.js +2 -0
- package/dist/ingest-gzQEKaUE.js +842 -0
- package/dist/io-NwOu0Lqq.js +7188 -0
- package/dist/io-p7f7Dzgz.js +5 -0
- package/dist/kaijibot-tools-DIght9Qs.js +9434 -0
- package/dist/kaijibot-tools.runtime-CoJzzzuq.js +2 -0
- package/dist/kaijibot-tools.runtime.js +1 -1
- package/dist/kimi-web-search-provider-Ccz-6FOv.js +308 -0
- package/dist/library-BAkHHC7d.js +45 -0
- package/dist/lifecycle-DPisznBr.js +51 -0
- package/dist/lifecycle-core-DHpL48zF.js +422 -0
- package/dist/list.runtime-BivtGTp4.js +12 -0
- package/dist/list.runtime-DGC3Tgsn.js +9 -0
- package/dist/list.runtime.js +1 -1
- package/dist/llm-engine-CJ4a8si7.js +2 -0
- package/dist/llm-engine-JflSw21y.js +1792 -0
- package/dist/llm-extractor-f_T1e84b.js +445 -0
- package/dist/llm-slug-generator.js +2 -2
- package/dist/load-context-BgiRixkE.js +51 -0
- package/dist/logging-BmlPHvHz.js +13 -0
- package/dist/logging-i6p97HMj.js +2 -0
- package/dist/login-BCtkm5rk.js +108 -0
- package/dist/logs-cli-ObIjoAas.js +264 -0
- package/dist/logs-cli.runtime-BFjo2k4n.js +2 -0
- package/dist/logs-cli.runtime.js +1 -1
- package/dist/manager-BKQsr8XG.js +2049 -0
- package/dist/manager-YA9gsC3-.js +3314 -0
- package/dist/mcp/plugin-tools-serve.js +3 -3
- package/dist/mcp-cli-4snhlJll.js +733 -0
- package/dist/mcp-config-BorcRx6O.js +115 -0
- package/dist/media-runtime-C8aW96zz.js +312 -0
- package/dist/media-understanding-provider-3Ttl6hmp.js +18 -0
- package/dist/media-understanding-provider-BGTcMbZI.js +13 -0
- package/dist/media-understanding-provider-BWZtBNix.js +30 -0
- package/dist/media-understanding-provider-CLJBFDyf.js +123 -0
- package/dist/media-understanding-provider-CZ0oRDnO.js +69 -0
- package/dist/media-understanding-provider-CfBvdveE.js +112 -0
- package/dist/media-understanding-provider-D6Ei6zjV.js +18 -0
- package/dist/media-understanding-provider-DEbLZtur.js +37 -0
- package/dist/media-understanding-provider-DysTPulI.js +14 -0
- package/dist/media-understanding-provider-guIrycoj.js +21 -0
- package/dist/media-understanding-provider-sqqt3Zo1.js +67 -0
- package/dist/media-understanding-runtime-CR8E8lqS.js +2 -0
- package/dist/media-understanding-zIdRKTHF.js +83 -0
- package/dist/memory-CEPz51C1.js +242 -0
- package/dist/memory-Dz9LyrwM.js +3 -0
- package/dist/memory-core-host-engine-embeddings-D_hioQXv.js +2 -0
- package/dist/memory-core-host-engine-foundation-1Abnrvzg.js +11 -0
- package/dist/memory-core-host-runtime-cli-CPpWR4jD.js +9 -0
- package/dist/memory-core-host-runtime-core-QOAE1eXJ.js +8 -0
- package/dist/memory-embedding-adapter-CJMHQ4fD.js +33 -0
- package/dist/memory-host-search.runtime-CCL0QyRa.js +2 -0
- package/dist/memory-host-search.runtime.js +1 -1
- package/dist/memory-index-BaKGqStn.js +2 -0
- package/dist/memory-index-Dq16t3Le.js +514 -0
- package/dist/memory-runtime-Cr2ycPVC.js +2 -0
- package/dist/memory-runtime-DuWAywa6.js +26 -0
- package/dist/message-B59-6tOr.js +223 -0
- package/dist/message-action-runner-CD2L-ZBQ.js +2 -0
- package/dist/message-action-runner-y-EYEp0n.js +1628 -0
- package/dist/message.config.runtime-NCa2v5Ci.js +3 -0
- package/dist/message.config.runtime.js +1 -1
- package/dist/message.gateway.runtime-Ba2cmeG0.js +2 -0
- package/dist/message.gateway.runtime.js +1 -1
- package/dist/metadata-registry-loader-BAAhCgIz.js +2 -0
- package/dist/metadata-registry-loader-D7YsnsL7.js +15 -0
- package/dist/minimax-vlm-CRQ1qjBy.js +183 -0
- package/dist/minimax-web-search-provider-CBq2_5UU.js +165 -0
- package/dist/mmr-CqmAMXIW.js +146 -0
- package/dist/model-NNxPja4R.js +630 -0
- package/dist/model-auth-BCNvl8s6.js +427 -0
- package/dist/model-auth-label-B0iZbvPM.js +45 -0
- package/dist/model-catalog-CDC0RDIQ.js +204 -0
- package/dist/model-definitions-YQ1lzfH1.js +258 -0
- package/dist/model-discovery-live.runtime-CFR_70lW.js +446 -0
- package/dist/model-discovery-live.runtime.js +1 -1
- package/dist/model-picker-CYGRTUlg.js +500 -0
- package/dist/model-picker-ucRyNr9a.js +3 -0
- package/dist/model-picker.runtime-BLIC1v4k.js +15 -0
- package/dist/model-picker.runtime.js +1 -1
- package/dist/model-selection-BNkt6VsY.js +381 -0
- package/dist/model-suppression-BLpblK4C.js +28 -0
- package/dist/model-suppression.runtime-CzgXh3-Q.js +7 -0
- package/dist/model-suppression.runtime.js +1 -1
- package/dist/models-BUxoFu33.js +47 -0
- package/dist/models-Ch34kBry.js +18 -0
- package/dist/models-CxT1_oJh.js +157 -0
- package/dist/models-D4gmkPz-.js +2 -0
- package/dist/models-DUS7kA8D.js +2584 -0
- package/dist/models-DdsCg0Z3.js +18 -0
- package/dist/models-cli-BGRqz0Hw.js +198 -0
- package/dist/models-config-C91hdcPk.js +900 -0
- package/dist/models-config.providers.secrets-CAQfFlJs.js +299 -0
- package/dist/models-jeG3zz29.js +555 -0
- package/dist/models-uX_1Gq3N.js +760 -0
- package/dist/models.fetch-CBAxXkYq.js +518 -0
- package/dist/monitor-BFKCdzLJ.js +4435 -0
- package/dist/monitor-Ddg6EzcR.js +1023 -0
- package/dist/music-generation-provider-CEN-hiuw.js +238 -0
- package/dist/music-generation-provider-D3eEV7AI.js +142 -0
- package/dist/music-generation-provider-azGX0awZ.js +169 -0
- package/dist/node-cli-DiZrvwCr.js +2374 -0
- package/dist/nodes-cli-CHIEN-F1.js +1046 -0
- package/dist/nodes-utils-DsRDUdkI.js +196 -0
- package/dist/notify-DBYcJXxh.js +305 -0
- package/dist/oauth-BH1NzJxX.js +57 -0
- package/dist/oauth-oo4i0YoK.js +152 -0
- package/dist/oauth-token-shared-DQSx2gNJ.js +28 -0
- package/dist/oauth.credentials-Bry_dis_.js +165 -0
- package/dist/oauth.flow-BHm8lbRc.js +122 -0
- package/dist/oauth.settings-BEQZQI_l.js +44 -0
- package/dist/oauth.token-CrxxQ__U.js +43 -0
- package/dist/onboard-7nVuWCbc.js +25 -0
- package/dist/onboard-BR4C6q_p.js +25 -0
- package/dist/onboard-CdxRLmEw2.js +58 -0
- package/dist/onboard-ClstIj39.js +29 -0
- package/dist/onboard-DCvok686.js +25 -0
- package/dist/onboard-DQL7hoUg.js +621 -0
- package/dist/onboard-RcjANnyK.js +312 -0
- package/dist/onboard-custom-fYFKqRC8.js +647 -0
- package/dist/onboard-custom-sjMgP57O.js +2 -0
- package/dist/onboard-helpers-DptwxvqO.js +223 -0
- package/dist/onboard-helpers-hUiLSHkd.js +5 -0
- package/dist/onboard-remote-BLFcjcH2.js +2 -0
- package/dist/onboard-remote-D21HhC2v.js +193 -0
- package/dist/onboard-search-D-BZAp6B.js +324 -0
- package/dist/onboard-skills-B90sl6kA.js +134 -0
- package/dist/onboard-skills-DBZJuUNt.js +2 -0
- package/dist/openai-codex-auth-identity-DJ-yiC5N.js +45 -0
- package/dist/openai-codex-cli-auth-BdZB_Fn0.js +57 -0
- package/dist/openai-codex-provider-D23flY_z.js +299 -0
- package/dist/openai-codex-shared-7LLW54Av.js +6 -0
- package/dist/openai-provider-xmL-RBDi.js +283 -0
- package/dist/openai-transport-stream-M1bujvhd.js +1632 -0
- package/dist/operator-approvals-client-DNHRZj38.js +68 -0
- package/dist/order-DFWeiLxK.js +794 -0
- package/dist/pair-command-approve-B7OK0jeZ.js +34 -0
- package/dist/pairing-cli-WXk-duET.js +118 -0
- package/dist/persistent-bindings.lifecycle-jyYneAcf.js +94 -0
- package/dist/pi-bundle-mcp-tools-CX0SFgbF.js +709 -0
- package/dist/pi-embedded-D-SwWv_N.js +6 -0
- package/dist/pi-embedded-runner-DV6kNYZT.js +8350 -0
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-DAY2Idkx.js +23 -0
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime.js +1 -1
- package/dist/pi-embedded-vPoHjY1s.js +2 -0
- package/dist/pi-embedded.runtime-B4_BgrLm.js +5 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/pi-model-discovery-eCOzFFEF.js +232 -0
- package/dist/pi-tools.before-tool-call.runtime-DxhFk59d.js +354 -0
- package/dist/pi-tools.before-tool-call.runtime.js +1 -1
- package/dist/plugin-enabled-CHyNN_TN.js +71 -0
- package/dist/plugin-install-config-policy-AxFoCFZw.js +137 -0
- package/dist/plugin-registration-DNzK0hY5.js +23 -0
- package/dist/plugin-registry-CtFzpQUT.js +3 -0
- package/dist/plugin-registry-loader-2DtlC05M.js +22 -0
- package/dist/plugin-registry-rGAVZ04A.js +2 -0
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/acp-binding-runtime.js +1 -1
- package/dist/plugin-sdk/acp-runtime.js +3 -3
- package/dist/plugin-sdk/agent-harness-runtime.js +6 -6
- package/dist/plugin-sdk/agent-runtime.js +9 -9
- package/dist/plugin-sdk/approval-client-runtime.js +2 -2
- package/dist/plugin-sdk/approval-gateway-runtime.js +2 -2
- package/dist/plugin-sdk/approval-handler-runtime.js +3 -3
- package/dist/plugin-sdk/approval-reply-runtime.js +2 -2
- package/dist/plugin-sdk/approval-runtime.js +4 -4
- package/dist/plugin-sdk/browser-config-runtime.js +2 -2
- package/dist/plugin-sdk/browser-config.js +2 -2
- package/dist/plugin-sdk/browser-control-auth.js +1 -1
- package/dist/plugin-sdk/browser-node-runtime.js +3 -3
- package/dist/plugin-sdk/browser-profiles.js +1 -1
- package/dist/plugin-sdk/browser-setup-tools.js +2 -2
- package/dist/plugin-sdk/browser-support.js +7 -7
- package/dist/plugin-sdk/channel-core.js +2 -2
- package/dist/plugin-sdk/channel-inbound.js +3 -3
- package/dist/plugin-sdk/command-auth.js +4 -4
- package/dist/plugin-sdk/compat.js +2 -2
- package/dist/plugin-sdk/config-mutation.js +4 -4
- package/dist/plugin-sdk/config-runtime.js +6 -6
- package/dist/plugin-sdk/config-schema.js +1 -1
- package/dist/plugin-sdk/conversation-binding-runtime.js +1 -1
- package/dist/plugin-sdk/conversation-runtime.js +4 -4
- package/dist/plugin-sdk/core.js +3 -3
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
- package/dist/plugin-sdk/gateway-runtime.js +1 -1
- package/dist/plugin-sdk/generate-text.js +1 -1
- package/dist/plugin-sdk/image-generation-core.js +2 -2
- package/dist/plugin-sdk/image-generation-runtime.js +2 -2
- package/dist/plugin-sdk/inbound-reply-dispatch.js +1 -1
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +4 -4
- package/dist/plugin-sdk/media-generation-runtime-shared.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime.js +1 -1
- package/dist/plugin-sdk/media-runtime.js +5 -5
- package/dist/plugin-sdk/media-understanding-runtime.js +2 -2
- package/dist/plugin-sdk/media-understanding.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-embeddings.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-foundation.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-core.js +3 -3
- package/dist/plugin-sdk/memory-core.js +5 -5
- package/dist/plugin-sdk/memory-host-core.js +3 -3
- package/dist/plugin-sdk/memory-host-search.js +1 -1
- package/dist/plugin-sdk/models-provider-runtime.js +1 -1
- package/dist/plugin-sdk/plugin-test-runtime.js +3 -3
- package/dist/plugin-sdk/provider-auth-api-key.js +4 -4
- package/dist/plugin-sdk/provider-auth.js +7 -7
- package/dist/plugin-sdk/provider-entry.js +1 -1
- package/dist/plugin-sdk/provider-setup.js +2 -2
- package/dist/plugin-sdk/provider-stream-family.js +3 -3
- package/dist/plugin-sdk/provider-stream.js +2 -2
- package/dist/plugin-sdk/provider-test-contracts.js +2 -2
- package/dist/plugin-sdk/provider-transport-runtime.js +1 -1
- package/dist/plugin-sdk/reply-dispatch-runtime.js +1 -1
- package/dist/plugin-sdk/reply-runtime.js +7 -7
- package/dist/plugin-sdk/runtime-secret-resolution.js +1 -1
- package/dist/plugin-sdk/runtime.js +3 -3
- package/dist/plugin-sdk/sandbox.js +2 -2
- package/dist/plugin-sdk/self-hosted-provider-setup.js +1 -1
- package/dist/plugin-sdk/session-store-runtime.js +2 -2
- package/dist/plugin-sdk/simple-completion-runtime.js +1 -1
- package/dist/plugin-sdk/skill-commands-runtime.js +1 -1
- package/dist/plugin-sdk/speech-core.js +1 -1
- package/dist/plugin-sdk/src/cognitive/feedback/collector.d.ts +21 -0
- package/dist/plugin-sdk/src/cognitive/persona/lifecycle.d.ts +3 -6
- package/dist/plugin-sdk/src/cognitive/types.d.ts +14 -0
- package/dist/plugin-sdk/src/config/types.cognitive.d.ts +2 -0
- package/dist/plugin-sdk/src/config/zod-schema.cognitive.d.ts +2 -0
- package/dist/plugin-sdk/src/config/zod-schema.d.ts +1 -0
- package/dist/plugin-sdk/testing.js +5 -5
- package/dist/plugin-sdk/text-runtime.js +2 -2
- package/dist/plugin-sdk/video-generation-core.js +1 -1
- package/dist/plugin-sdk/video-generation-runtime.js +1 -1
- package/dist/plugin-service-ByhemcPW.js +2494 -0
- package/dist/plugins/provider-discovery.runtime.js +1 -1
- package/dist/plugins/provider-runtime.runtime.js +1 -1
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins-cli-Bsu-vzeD.js +576 -0
- package/dist/plugins-command-helpers-DHYkcqua.js +117 -0
- package/dist/plugins-install-persist-C8eGd_C5.js +121 -0
- package/dist/plugins-update-command-3xt3Uqf8.js +1009 -0
- package/dist/policy-CFE2PMMh.js +172 -0
- package/dist/preemptive-compaction-DBfSd-op.js +430 -0
- package/dist/proactive-scheduler-CsHZHnLk.js +1535 -0
- package/dist/probe-CWzUPp-f.js +426 -0
- package/dist/probe-QRfkrTQp.js +54 -0
- package/dist/probe-auth-DG3q8vB9.js +69 -0
- package/dist/probe-auth-GBOKLPAd.js +3 -0
- package/dist/profiles-CBddrdQK.js +117 -0
- package/dist/program-NfZ-fQSf.js +111 -0
- package/dist/prompt-overlay-CTwbv1jO.js +72 -0
- package/dist/prompt-select-styled-D7z26jOB.js +5305 -0
- package/dist/provider-B_TyrVqo.js +70 -0
- package/dist/provider-api-key-auth-DsEmjrKm.js +113 -0
- package/dist/provider-api-key-auth.runtime-DnU922Pm.js +14 -0
- package/dist/provider-api-key-auth.runtime.js +1 -1
- package/dist/provider-auth-B0NxCABI.js +36 -0
- package/dist/provider-auth-api-key-BRkYGkki.js +5 -0
- package/dist/provider-auth-choice-BU5MwS9n.js +134 -0
- package/dist/provider-auth-choice-preference-BjTvWslj.js +62 -0
- package/dist/provider-auth-choice.runtime-B8ZRr0Ji.js +2 -0
- package/dist/provider-auth-choice.runtime-DIN9GqRk.js +14 -0
- package/dist/provider-auth-choice.runtime.js +1 -1
- package/dist/provider-auth-guidance-BmbcHSR7.js +34 -0
- package/dist/provider-auth-helpers-BHAUl4Gr.js +168 -0
- package/dist/provider-catalog-BL8_CAyj.js +11 -0
- package/dist/provider-catalog-BRtoWqwn.js +11 -0
- package/dist/provider-catalog-BeddZRA_.js +12 -0
- package/dist/provider-catalog-Dl5yMnFQ.js +17 -0
- package/dist/provider-catalog-Doxz6-g3.js +56 -0
- package/dist/provider-catalog-nJImUuqB.js +26 -0
- package/dist/provider-dispatcher-5MWNj1cU.js +22 -0
- package/dist/provider-entry-B01Usrgw.js +97 -0
- package/dist/provider-flow-DgiCMoEf.js +66 -0
- package/dist/provider-models-CjNZS5bS.js +35 -0
- package/dist/provider-models-KjFLrk3V.js +119 -0
- package/dist/provider-models-vPWkBVJC.js +116 -0
- package/dist/provider-registration-BKyn4HAU.js +238 -0
- package/dist/provider-registration-Dtxvk5CC.js +57 -0
- package/dist/provider-runtime-DOtN11v9.js +2 -0
- package/dist/provider-runtime-DSAVX2DR.js +366 -0
- package/dist/provider-runtime.runtime-kKhVhqLz.js +26 -0
- package/dist/provider-runtime.runtime.js +1 -1
- package/dist/provider-self-hosted-setup-l_z2VcmU.js +249 -0
- package/dist/provider-setup-Bf_9tp4f.js +2 -0
- package/dist/provider-stream-BdikYSRa.js +285 -0
- package/dist/provider-stream-family-DSm3KbQw.js +2 -0
- package/dist/provider-usage-BGu0-R4j.js +289 -0
- package/dist/provider-usage-lgVGEKOt.js +3 -0
- package/dist/provider-wizard-BLwU3k7w.js +166 -0
- package/dist/providers.runtime-C0Xkoksw.js +125 -0
- package/dist/providers.runtime.js +1 -1
- package/dist/proxy-stream-wrappers-CIRRoMpa.js +480 -0
- package/dist/push-apns-DN3ZNQab.js +1061 -0
- package/dist/pw-ai-Ld88tf39.js +2268 -0
- package/dist/qmd-manager-kG_qjIil.js +1799 -0
- package/dist/qr-cli-CsNdevN-.js +359 -0
- package/dist/qr-image-ClomasxW.js +2 -0
- package/dist/queue-fniCZ6ND.js +636 -0
- package/dist/realtime-provider-shared-B2y3nIjr.js +21 -0
- package/dist/realtime-transcription-provider-BYeb_Pdh.js +180 -0
- package/dist/realtime-voice-provider-Cs5kAI5o.js +342 -0
- package/dist/record-shared-vbhlkLLm.js +10 -0
- package/dist/refresh-DgMFD0Y0.js +115 -0
- package/dist/region-BOx9--Jp.js +74 -0
- package/dist/register.agent-D_D6OLOs.js +241 -0
- package/dist/register.backup-PaaKiScO.js +234 -0
- package/dist/register.configure-ByfqqSmj.js +15 -0
- package/dist/register.maintenance-DHP5Hi3e.js +443 -0
- package/dist/register.message-DCzLrhHI.js +601 -0
- package/dist/register.onboard-C3XVikL8.js +83 -0
- package/dist/register.runtime-Br9LK2gh.js +81 -0
- package/dist/register.runtime-CgbjcVmK.js +343 -0
- package/dist/register.runtime.js +1 -1
- package/dist/register.setup-DVykiPXv.js +104 -0
- package/dist/register.status-health-sessions-cOzG_7Nf.js +1211 -0
- package/dist/register.subclis-LdyYwzr7.js +232 -0
- package/dist/register.subclis-OWj7LZOR.js +3 -0
- package/dist/repair-DUb-NpH_.js +112 -0
- package/dist/replay-policy-8aUdDKqI.js +8 -0
- package/dist/reply-Xl-LGWx9.js +3523 -0
- package/dist/reply.runtime-DOj7KtNv.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/resolve-b0jc4sM3.js +280 -0
- package/dist/restart-CReI1iMn.js +454 -0
- package/dist/root-help-DOYfXVGX.js +44 -0
- package/dist/route-reply-Bsd_X1hM.js +141 -0
- package/dist/route-reply.runtime-0EDNxcfO.js +2 -0
- package/dist/route-reply.runtime.js +1 -1
- package/dist/rpc-C4VoC6lx.js +61 -0
- package/dist/rpc.runtime-CrjwpfEG.js +21 -0
- package/dist/rpc.runtime.js +1 -1
- package/dist/run-main-DK-D5F3f.js +453 -0
- package/dist/run-wait-KirpkWGm.js +118 -0
- package/dist/runner-C9pcnHzR.js +1497 -0
- package/dist/runs-Djzm6zWd.js +495 -0
- package/dist/runtime-6nDEFb75.js +72 -0
- package/dist/runtime-7-RqyV6x.js +107 -0
- package/dist/runtime-Bw9f54EP.js +355 -0
- package/dist/runtime-CAESWN5P.js +725 -0
- package/dist/runtime-CrAHjeUY.js +2 -0
- package/dist/runtime-D2tXO42J2.js +242 -0
- package/dist/runtime-DOWgnTkX.js +191 -0
- package/dist/runtime-DObmMc6X.js +253 -0
- package/dist/runtime-DoFRWRgY.js +9 -0
- package/dist/runtime-api-BpPa5PZ4.js +12 -0
- package/dist/runtime-api-CjjNrjOu2.js +2 -0
- package/dist/runtime-api-D7fKSLcI.js +3 -0
- package/dist/runtime-embedded-pi.runtime-BMPEoO0x.js +3 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-internal-CedDfUad.js +2 -0
- package/dist/runtime-model-auth.runtime-Cgx5HiVv.js +39 -0
- package/dist/runtime-model-auth.runtime.js +1 -1
- package/dist/runtime-oxFh0OA-.js +2 -0
- package/dist/runtime-plugins-cyYSAIUC.js +69 -0
- package/dist/runtime-prepare.runtime-C1hoi3Pj.js +80 -0
- package/dist/runtime-prepare.runtime.js +1 -1
- package/dist/runtime-provider-CXi4BTPW.js +21 -0
- package/dist/runtime-r3Ke_KuH.js +200 -0
- package/dist/runtime-registry-loader-471RbKgH.js +2 -0
- package/dist/runtime-registry-loader-Dov85dVR.js +58 -0
- package/dist/runtime-schema-DUetufoV.js +28395 -0
- package/dist/runtime-shared-BGttaPX3.js +249 -0
- package/dist/runtime-taskflow-BBc9FyfD.js +250 -0
- package/dist/runtime-web-channel-plugin-Dyt-ZWxm.js +215 -0
- package/dist/runtime-web-tools-CXeVnAOE.js +1467 -0
- package/dist/runtime-web-tools-fallback.runtime-B5P96RjD.js +9 -0
- package/dist/runtime-web-tools-fallback.runtime.js +1 -1
- package/dist/sandbox-B7Mdkad9.js +2586 -0
- package/dist/sandbox-Bkj7NfH_.js +4 -0
- package/dist/sandbox-cli-BMrDh7ip.js +447 -0
- package/dist/secrets-cli-CDO_S3rr.js +2114 -0
- package/dist/security-audit-D4tdLi7R.js +34 -0
- package/dist/security-cli-BtMEiNIM.js +486 -0
- package/dist/semantic-dedup-BGgf2SFR.js +95 -0
- package/dist/send-CxqF8rl4.js +993 -0
- package/dist/send-media-Dcmyu6Y-.js +2123 -0
- package/dist/server-CaXqmTFP.js +13 -0
- package/dist/server-D0ZKpih4.js +77 -0
- package/dist/server-context-BekzVd0R.js +4164 -0
- package/dist/server-methods-BCeJH-Fr.js +11937 -0
- package/dist/server-middleware-FqXPNqqT.js +110 -0
- package/dist/server-node-events-BXJobTDM.js +451 -0
- package/dist/server.impl-CKDBAm1X.js +19766 -0
- package/dist/session-C-0F1BlP.js +48 -0
- package/dist/session-conversation-Ckza03tl.js +27 -0
- package/dist/session-cost-usage-Dnbtqvv7.js +648 -0
- package/dist/session-cost-usage-iTVG22AO.js +2 -0
- package/dist/session-file-CiJXAZP4.js +44 -0
- package/dist/session-key-6G1LpIon.js +65 -0
- package/dist/session-meta-knhthO95.js +109 -0
- package/dist/session-override-CGqy8cfR.js +103 -0
- package/dist/session-reset-model.runtime-DpNzWHUe.js +120 -0
- package/dist/session-reset-model.runtime.js +1 -1
- package/dist/session-reset-service-6NPnzaso.js +474 -0
- package/dist/session-subagent-reactivation.runtime-BCeway2I.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-system-events-BifSkL6x.js +63 -0
- package/dist/session-tab-registry-DR0gRhet.js +553 -0
- package/dist/session-updates-CHOc_4vH.js +234 -0
- package/dist/session-updates.runtime-DsHKjhyM.js +2 -0
- package/dist/session-updates.runtime.js +1 -1
- package/dist/session-utils-GLg54NBi.js +930 -0
- package/dist/sessions-BxOkBx-e.js +45 -0
- package/dist/sessions-C6oolVsU.js +231 -0
- package/dist/sessions-D6_b32XT.js +2 -0
- package/dist/sessions.runtime-Bi4et4J1.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/setup-CslW2MtR.js +505 -0
- package/dist/setup-DwqTuGTp.js +329 -0
- package/dist/setup-surface-Ore2Ehcn.js +586 -0
- package/dist/setup.finalize-Wq93dYFU.js +436 -0
- package/dist/setup.gateway-config-DteoOy8F.js +246 -0
- package/dist/shared-CLjMam2L.js +36 -0
- package/dist/shared-DGIkRU6J.js +218 -0
- package/dist/shared-DUnO9yTD.js +175 -0
- package/dist/shared-DeBJWig-.js +137 -0
- package/dist/shared-igYZ1cFQ.js +224 -0
- package/dist/shared-runtime-cWVnVIl5.js +7 -0
- package/dist/short-term-promotion-BhxerFzv.js +1631 -0
- package/dist/simple-completion-runtime-Bv1VtWSA.js +131 -0
- package/dist/simple-completion-transport-CLqa5Iyl.js +32 -0
- package/dist/skill-commands-D02-U6zf.js +82 -0
- package/dist/skill-commands.runtime-J2XiyESs.js +2 -0
- package/dist/skill-commands.runtime.js +1 -1
- package/dist/skills-BI8fjdW_.js +4 -0
- package/dist/skills-C6n71k5r.js +1075 -0
- package/dist/skills-cli-zp3lOjti.js +382 -0
- package/dist/skills-install-DlqA6nec.js +822 -0
- package/dist/skills-status-B57B5p12.js +170 -0
- package/dist/skills-status-DSk7-Gbk.js +2 -0
- package/dist/soul-cli-D_VMWljI.js +110 -0
- package/dist/speech-core-5C9NDTWw.js +126 -0
- package/dist/speech-provider-5npDU3CX.js +103 -0
- package/dist/speech-provider-BQ4WhohP.js +182 -0
- package/dist/speech-provider-BgLqt9Ul.js +184 -0
- package/dist/speech-provider-DAxRZc2f.js +167 -0
- package/dist/stage-sandbox-media.runtime-CFdAVxo8.js +230 -0
- package/dist/stage-sandbox-media.runtime.js +1 -1
- package/dist/standalone-generate-BG6TQ0jK.js +217 -0
- package/dist/standalone-generate-CgZQCsuI.js +2 -0
- package/dist/startup-auth-CKh--SuD.js +151 -0
- package/dist/state-migrations-CN7oRMHd.js +823 -0
- package/dist/status-BAqccuUp.js +278 -0
- package/dist/status-BaSW-xxu.js +2 -0
- package/dist/status-CJpxvQmZ.js +500 -0
- package/dist/status-D-UHaHvI.js +399 -0
- package/dist/status-DggLTQr0.js +3 -0
- package/dist/status-KOZpSuVN.js +2 -0
- package/dist/status-TqK4AoMQ.js +473 -0
- package/dist/status-all-cwk3DGiJ.js +495 -0
- package/dist/status-json-CiuEzsaR.js +14 -0
- package/dist/status-json-command-sAasGH5G.js +92 -0
- package/dist/status-runtime-shared-DTGujn3T.js +271 -0
- package/dist/status.command.text-runtime-CugrZfYj.js +15 -0
- package/dist/status.gateway-connection.runtime-kuu5mcJa.js +2 -0
- package/dist/status.gateway-connection.runtime.js +1 -1
- package/dist/status.gateway-probe-DNRjTzrV.js +16 -0
- package/dist/status.scan-DYlemegM.js +62 -0
- package/dist/status.scan-overview-CUrJYmgc.js +395 -0
- package/dist/status.scan.deps.runtime-CvmH94mX.js +18 -0
- package/dist/status.scan.deps.runtime.js +1 -1
- package/dist/status.scan.fast-json--vXBXh8v.js +2 -0
- package/dist/status.scan.fast-json-B-pkKP5g.js +128 -0
- package/dist/status.scan.runtime-BRjuY3QE.js +417 -0
- package/dist/status.scan.runtime.js +1 -1
- package/dist/status.summary-Bo-OmzfE.js +209 -0
- package/dist/status.summary-Bu3ZM6Co.js +2 -0
- package/dist/store-BCDEVRXR.js +1112 -0
- package/dist/store-C6poa5Og.js +1075 -0
- package/dist/store-DxQRR8Va.js +424 -0
- package/dist/store.runtime-D6t_wvEo.js +2 -0
- package/dist/store.runtime.js +1 -1
- package/dist/stream-CxAFhAae.js +649 -0
- package/dist/stream-wrappers-BALQapyz.js +144 -0
- package/dist/subagent-announce.registry.runtime-CXVmS4_2.js +3 -0
- package/dist/subagent-announce.registry.runtime.js +1 -1
- package/dist/subagent-control-BFaUO5Rg.js +485 -0
- package/dist/subagent-followup.runtime-9Gmh8O_s.js +68 -0
- package/dist/subagent-followup.runtime.js +1 -1
- package/dist/subagent-list-BPsxOWK_.js +168 -0
- package/dist/subagent-orphan-recovery-CaHOkovt.js +214 -0
- package/dist/subagent-registry-Bq6lqR6P.js +2889 -0
- package/dist/subagent-registry-runtime-uCulOUrX.js +2 -0
- package/dist/subagent-registry.runtime-CECbHZpy.js +3 -0
- package/dist/subagent-registry.runtime.js +1 -1
- package/dist/subagent-spawn-fyzcNnrQ.js +782 -0
- package/dist/subagents-format-DXuyOMu-.js +629 -0
- package/dist/system-cli-_jfrKryu.js +60 -0
- package/dist/targets-DKzJlbu6.js +595 -0
- package/dist/task-executor-DgYvvOLW.js +350 -0
- package/dist/task-owner-access-CMssttgc.js +48 -0
- package/dist/task-registry-control.runtime-BS73ZjL4.js +3 -0
- package/dist/task-registry-control.runtime.js +1 -1
- package/dist/task-registry-delivery-runtime-BMfszrF8.js +2 -0
- package/dist/task-registry-delivery-runtime-D_Ocdg0_.js +3 -0
- package/dist/task-registry-mrk7vw-b.js +2346 -0
- package/dist/task-registry.maintenance-Bq3ZMKN3.js +425 -0
- package/dist/task-registry.maintenance-CXSWJocW.js +2 -0
- package/dist/testing-q13vie3Q.js +441 -0
- package/dist/text-report-CUwo5L1k.js +587 -0
- package/dist/text-runtime-B3UrMt6T.js +313 -0
- package/dist/thread-bindings-B0KBAhDo.js +223 -0
- package/dist/tool-auth-shared-BwlRX_zo.js +53 -0
- package/dist/tool-config-shared-CThVi2Zv.js +19 -0
- package/dist/tool-schema-runtime-CiqxCMkH.js +1892 -0
- package/dist/tools-BUzk9uUn.js +110 -0
- package/dist/tools-effective-inventory-BYOAo-n_.js +152 -0
- package/dist/tools.runtime-D6GnPvuW.js +4 -0
- package/dist/tools.runtime.js +1 -1
- package/dist/transcript-kBzFcvfJ.js +233 -0
- package/dist/transcript.runtime-X5nUWG5J.js +2 -0
- package/dist/transcript.runtime.js +1 -1
- package/dist/transport-policy-qrbV7LdB.js +75 -0
- package/dist/tts-BW2-rTjx.js +31 -0
- package/dist/tui-Cnxy7MIi.js +4018 -0
- package/dist/tui-cli-COdAidhT.js +31 -0
- package/dist/update-cli-BtoVpbqh.js +1779 -0
- package/dist/update-runner-BY92EdE9.js +1492 -0
- package/dist/usage-format-CPx6tGPA.js +2 -0
- package/dist/usage-format-CpsXzXcG.js +507 -0
- package/dist/video-generation-provider-BAQ2E65z.js +171 -0
- package/dist/video-generation-provider-CCsVq0-G.js +263 -0
- package/dist/video-generation-provider-CPHXFGar.js +246 -0
- package/dist/video-generation-provider-DRMOwtTj.js +104 -0
- package/dist/video-generation-provider-DohNwNos.js +181 -0
- package/dist/video-generation-provider-DsIqJI0e.js +227 -0
- package/dist/video-generation-provider-Kg01Dy_G.js +233 -0
- package/dist/video-generation-provider-Z-xZjApd.js +240 -0
- package/dist/video-generation-provider-kfoZ8epM.js +64 -0
- package/dist/video-generation-provider-wgwFq2Wr.js +77 -0
- package/dist/web-fetch-providers.runtime-YHUYJGZL.js +33 -0
- package/dist/web-fetch-providers.runtime.js +1 -1
- package/dist/web-search-C0DUuJkz.js +221 -0
- package/dist/web-search-provider-BVISR8ti.js +155 -0
- package/dist/web-search-providers.runtime-BxK0HVx5.js +206 -0
- package/dist/web-search-providers.runtime.js +1 -1
- package/dist/webhooks-cli-CNvp2Osa.js +321 -0
- package/dist/x-search-shared-uvKOvvdl.js +109 -0
- package/dist/zod-schema-CgftpN_n.js +1401 -0
- package/docs/concepts/cognitive-overview.md +27 -12
- package/package.json +2 -1
- package/dist/abort-BA4i4CO6.js +0 -202
- package/dist/abort-cutoff.runtime-140Dy9Z_.js +0 -20
- package/dist/abort.runtime-D2xd_Jxq.js +0 -2
- package/dist/acp-cli-lUerPOt4.js +0 -2171
- package/dist/acp-spawn-CKu5HWZd.js +0 -1024
- package/dist/acp-stateful-target-driver-DNcDMame.js +0 -88
- package/dist/action-agents-bNO5zlxQ.js +0 -67
- package/dist/action-focus-BQH1yzA9.js +0 -124
- package/dist/action-help-Copk6G3d.js +0 -7
- package/dist/action-info-BUV_zoSU.js +0 -58
- package/dist/action-kill-BMDz9l_U.js +0 -33
- package/dist/action-list-CxkulhYF.js +0 -21
- package/dist/action-log-D0K9-YCV.js +0 -30
- package/dist/action-send-B8ggJVwC.js +0 -39
- package/dist/action-spawn-D9kSXA_K.js +0 -46
- package/dist/action-unfocus-bI4VBonB.js +0 -28
- package/dist/agent-CdxQT19_.js +0 -2
- package/dist/agent-command-Bu_cXSEL.js +0 -1479
- package/dist/agent-runner-utils--p6HAP6k.js +0 -202
- package/dist/agent-runner.runtime-BossnlL1.js +0 -2825
- package/dist/agents-DA2-qNUI.js +0 -887
- package/dist/agents-DaKVGj9F.js +0 -5
- package/dist/anthropic-vertex-stream-CrF-fPgb.js +0 -5666
- package/dist/api-BPByI3-X.js +0 -2
- package/dist/api-BRJq6Aya.js +0 -2
- package/dist/api-BpAm-eRQ.js +0 -2
- package/dist/api-BvFPt7b2.js +0 -19
- package/dist/api-CSOm-O9I.js +0 -5
- package/dist/api-ChQfiSmG.js +0 -4
- package/dist/api-CqBQhm6r.js +0 -2
- package/dist/api-D7qSjVDS.js +0 -3
- package/dist/api-DbRoXBTn.js +0 -45
- package/dist/api-_HshnS5J.js +0 -35
- package/dist/apply-G86rau7x.js +0 -493
- package/dist/apply.runtime-BoYc09wu.js +0 -166
- package/dist/apply.runtime-Dmh02lO-.js +0 -2
- package/dist/approval-client-helpers-cyaJyAMz.js +0 -82
- package/dist/approval-gateway-resolver-bdX78er-.js +0 -58
- package/dist/approval-gateway-runtime-CJm68vrp.js +0 -2
- package/dist/approval-handler-runtime-CT08B2_a.js +0 -439
- package/dist/approval-native-runtime-CN4meUkM.js +0 -709
- package/dist/approval-renderers-CnmO8wke.js +0 -64
- package/dist/asr-Cz-FH-3c.js +0 -196
- package/dist/audit-Cbfv4nmn.js +0 -885
- package/dist/audit-extra.async-DQv_s9K0.js +0 -847
- package/dist/audit.deep.runtime-CAPtrWg1.js +0 -2
- package/dist/audit.nondeep.runtime-HUJ6INiD.js +0 -859
- package/dist/audit.runtime-CAKbHyXK.js +0 -7
- package/dist/auth-CRAwpkC_.js +0 -181
- package/dist/auth-choice-Bhps2D29.js +0 -3
- package/dist/auth-choice-kMIs0xTd.js +0 -71
- package/dist/auth-choice-options-Bx_XsiW-.js +0 -104
- package/dist/auth-choice-prompt-B-koxVGL.js +0 -2
- package/dist/auth-choice-prompt-DytHsI5U.js +0 -36
- package/dist/auth-choice-vRXPONqL.js +0 -353
- package/dist/auth-choice.plugin-providers.runtime-BNfpK_sp.js +0 -11
- package/dist/auth-health-BAxUQXZE.js +0 -165
- package/dist/auth-profiles-YXfmeEhu.js +0 -438
- package/dist/auth-profiles.runtime-CNNciZQU.js +0 -7
- package/dist/auto-recall-CsrNcQNa.js +0 -78
- package/dist/backup-create-DuIPhK_s.js +0 -391
- package/dist/banner-Bb9u_-IS.js +0 -2
- package/dist/banner-BkHTsqFt.js +0 -281
- package/dist/binding-routing-C6_mrNEN.js +0 -50
- package/dist/binding-targets-Cq2e7wRT.js +0 -99
- package/dist/bridge-server-Co3awCAM.js +0 -103
- package/dist/browser-config-runtime-BtkKPBMj.js +0 -6
- package/dist/browser-control-auth-Bqu1lakr.js +0 -120
- package/dist/browser-node-runtime-D8xut4fJ.js +0 -12
- package/dist/browser-profiles-gPG14SPk.js +0 -170
- package/dist/browser-runtime-BBkGI01q.js +0 -377
- package/dist/browser-setup-tools-CD_s48fd.js +0 -12
- package/dist/call-CiUZqjsN.js +0 -2
- package/dist/call-k_nZXTJ3.js +0 -495
- package/dist/call.runtime-CZI7yxSF.js +0 -2
- package/dist/capability-cli-CIm_YhHH.js +0 -1357
- package/dist/catalog-provider-Ch4CMHLl.js +0 -40
- package/dist/cdp.helpers-BVl3YwYe.js +0 -372
- package/dist/channel-core-BB7pTANC.js +0 -5
- package/dist/channel-summary-TxoZjGPA.js +0 -139
- package/dist/channel-summary-dKkFDRbe.js +0 -2
- package/dist/channel.runtime-2WY9MkoH.js +0 -399
- package/dist/channels-D66hRVnR.js +0 -1147
- package/dist/channels-cli-0DjAVaKh.js +0 -248
- package/dist/chat-Fv3LkEfF.js +0 -213
- package/dist/chrome-CEE9kYYR.js +0 -1080
- package/dist/chrome.executables-Dp7W-RgV.js +0 -550
- package/dist/cli-BsNkLoFI.js +0 -57
- package/dist/cli-DQH9X5IE.js +0 -2
- package/dist/cli-DW_ou4hw.js +0 -2
- package/dist/cli-DuoVlLKx.js +0 -154
- package/dist/cli-QG03g_im.js +0 -191
- package/dist/cli-auth-seam-BrijKBRQ.js +0 -14
- package/dist/cli-backend-CIs4F7ip.js +0 -66
- package/dist/cli-migration-CVktTGRI.js +0 -127
- package/dist/cli-runner-12iECISR.js +0 -1662
- package/dist/cli-runner.runtime-C5noDuQ-.js +0 -3
- package/dist/cli-runner.runtime-YrAg_h19.js +0 -2
- package/dist/cli-shared-BUW2okV2.js +0 -142
- package/dist/cli.runtime-Bhxt80sB.js +0 -819
- package/dist/client-bootstrap-BWo-ZK_j.js +0 -28
- package/dist/codex-native-web-search-C6s55zGf.js +0 -2
- package/dist/codex-native-web-search-Cxf1u7R-.js +0 -156
- package/dist/collector-CRTTihSY.js +0 -349
- package/dist/collector-tJxrYXuY.js +0 -2
- package/dist/command-auth-Dlrd5CYD.js +0 -75
- package/dist/command-config-resolution-B8pxzh3W.js +0 -2
- package/dist/command-config-resolution-BXSCDJTh.js +0 -23
- package/dist/command-execution-startup-DYXpKpvc.js +0 -269
- package/dist/command-format-JYoGhCek.js +0 -2
- package/dist/command-queue-CmX7XAL1.js +0 -260
- package/dist/command-registry-BF51N12E.js +0 -3
- package/dist/command-registry-BqpfCBbW.js +0 -113
- package/dist/command-secret-gateway-DuuctECr.js +0 -528
- package/dist/commands-acp-DiLJUV45.js +0 -1017
- package/dist/commands-compact.runtime-BOM8PsWH.js +0 -10
- package/dist/commands-core.runtime-CH_aGeT-.js +0 -2
- package/dist/commands-handlers.runtime-Ca6xoeW5.js +0 -3762
- package/dist/commands-models-CRURuXR-.js +0 -306
- package/dist/commands-reset-hooks-D3RzsOIn.js +0 -129
- package/dist/commands-status-Cufj4x2j.js +0 -223
- package/dist/commands-status.runtime-C8Nz4Glk.js +0 -2
- package/dist/commands-subagents-control.runtime-DjhcmoRT.js +0 -3
- package/dist/commands-subagents-control.runtime-s_DYQWfW.js +0 -2
- package/dist/commands.runtime-ChfYOBeV.js +0 -103
- package/dist/comment-shared-DFEZzqhH.js +0 -40
- package/dist/compact-DEsHFhEL.js +0 -11324
- package/dist/compact.runtime-BzLFUSmk.js +0 -7
- package/dist/completion-cli-CiWtzUFQ.js +0 -2
- package/dist/completion-cli-h3zgpXGM.js +0 -468
- package/dist/config-B3cxNRyw.js +0 -8
- package/dist/config-Bd1PtH4x.js +0 -166
- package/dist/config-DuLfQQvE.js +0 -53
- package/dist/config-cli-BiEmyiRa.js +0 -948
- package/dist/config-defaults-Bw9wwyo1.js +0 -163
- package/dist/config-guard-BGGjXg_Y.js +0 -94
- package/dist/config-runtime-Bvdi0W59.js +0 -14
- package/dist/config-validation-BDeuMlc1.js +0 -279
- package/dist/configure-CUSDnrHs.js +0 -2
- package/dist/configure-FDqT3i_9.js +0 -1162
- package/dist/connection-auth-7izNv08V.js +0 -30
- package/dist/context-B2wCjR9D.js +0 -249
- package/dist/context-n8ANhlMJ.js +0 -2
- package/dist/context-writer-COhxMkVz.js +0 -290
- package/dist/control-auth-Csa4b5CR.js +0 -122
- package/dist/control-ui/assets/agents-CYCtph5J.js +0 -767
- package/dist/control-ui/assets/anthropic-B66S-tt5.js +0 -40
- package/dist/control-ui/assets/azure-openai-responses-CRJyPvrW.js +0 -2
- package/dist/control-ui/assets/cron-DPaLQLTR.js +0 -744
- package/dist/control-ui/assets/dialogues-DPJy1B4C.js +0 -83
- package/dist/control-ui/assets/history-CT3DjMa7.js +0 -71
- package/dist/control-ui/assets/index-Ci2oc-eJ.css +0 -1
- package/dist/control-ui/assets/index-Ua-cFlP6.js +0 -2686
- package/dist/control-ui/assets/mistral-DWkPN1WM.js +0 -72
- package/dist/control-ui/assets/openai-codex-responses-CSJ_tbUW.js +0 -8
- package/dist/control-ui/assets/openai-completions-QUhkmdlC.js +0 -6
- package/dist/control-ui/assets/openai-responses-CjthZA3L.js +0 -2
- package/dist/control-ui/assets/openai-responses-shared-tozh4HQx.js +0 -13
- package/dist/conversation-id-d7KXWjzV.js +0 -140
- package/dist/conversation-runtime-D-YmpVS2.js +0 -31
- package/dist/core-8TPCsNB-.js +0 -210
- package/dist/cron-cli-C5ok2iVK.js +0 -637
- package/dist/curator-9KwCnpXG.js +0 -598
- package/dist/curator-t_jLT3Ie.js +0 -2
- package/dist/daemon-cli-Cr_y38yv.js +0 -476
- package/dist/daemon-install-CrhzPiZ-.js +0 -70
- package/dist/delegate-r3VqUt34.js +0 -61
- package/dist/deliver-Cuu36rnv.js +0 -3
- package/dist/deliver-SAyi_F0e.js +0 -782
- package/dist/deliver-runtime-DKv9J6QE.js +0 -2
- package/dist/delivery-outbound.runtime-DDoInTnF.js +0 -6
- package/dist/delivery-queue-CWi3kUit.js +0 -372
- package/dist/delivery-queue-ecSu6ZNL.js +0 -2
- package/dist/deps-BIU2SScd.js +0 -60
- package/dist/devices-cli-BUAuMOOj.js +0 -336
- package/dist/diagnostic-BLwuJXPT.js +0 -311
- package/dist/direct-dm-D_7_vKGq.js +0 -139
- package/dist/directive-handling.fast-lane-C91i_iZm.js +0 -2
- package/dist/directive-handling.fast-lane-F7l0XNwG.js +0 -64
- package/dist/directive-handling.impl-8RAWZiZE.js +0 -659
- package/dist/directive-handling.impl-BxAIWFS-.js +0 -2
- package/dist/directive-handling.parse-B3O0CfXY.js +0 -376
- package/dist/directive-handling.persist-QXt7GHcD.js +0 -139
- package/dist/directive-handling.persist.runtime-CPPm2qYQ.js +0 -2
- package/dist/directive-handling.shared-C5ywsGJd.js +0 -159
- package/dist/directory-cli-D9v1dSPr.js +0 -240
- package/dist/dispatch-DoyBs65s.js +0 -1126
- package/dist/dispatch-acp-Dz8rU6t9.js +0 -969
- package/dist/dispatch-acp-manager.runtime-tPUGDjl3.js +0 -3
- package/dist/dispatch-acp-media.runtime-rwYN3ewY.js +0 -3
- package/dist/dispatch-acp-session.runtime-C9nyGih8.js +0 -2
- package/dist/dispatch-acp.runtime-Co-JFuKU.js +0 -19
- package/dist/dns-cli-BRVJtnve.js +0 -193
- package/dist/docs-cli-DvJd--iI.js +0 -156
- package/dist/doctor-completion-C46W5KI7.js +0 -90
- package/dist/doctor-config-preflight-B_UDrFsE.js +0 -148
- package/dist/doctor-config-preflight-DtvhOeuT.js +0 -2
- package/dist/doctor-state-migrations-Cd3yfnI1.js +0 -2
- package/dist/doctor-state-migrations-D3qorqjy.js +0 -3
- package/dist/drive-C2mxxJx5.js +0 -718
- package/dist/embedding-provider-C5S1sxvR.js +0 -129
- package/dist/embedding-provider-CNDA2uD3.js +0 -26
- package/dist/embedding-provider-CdVS1B85.js +0 -33
- package/dist/engine-CKgZ1obQ.js +0 -82
- package/dist/engine-embeddings-Bt1bTxtw.js +0 -1489
- package/dist/entry-capabilities-DrciJZn1.js +0 -89
- package/dist/env-overrides-DTd6EBBV.js +0 -347
- package/dist/env-overrides.runtime-Dxy8Shg7.js +0 -7
- package/dist/exec-approval-forwarder.runtime-Dpa8Gi_P.js +0 -3
- package/dist/exec-approval-reply-BaUWuhD6.js +0 -292
- package/dist/exec-approvals-cli-BuOJPaPp.js +0 -485
- package/dist/exec-defaults-B5egc-6t.js +0 -1440
- package/dist/extra-params-Bfdm7Piq.js +0 -295
- package/dist/format-KzNAm6y6.js +0 -245
- package/dist/fragment-collector-DEW1fwlc.js +0 -189
- package/dist/gateway-cli-CWHsIpm8.js +0 -1532
- package/dist/gateway-install-token-CcpoWcqs.js +0 -284
- package/dist/gateway-rpc-Do_3fQSm.js +0 -14
- package/dist/gateway-rpc.runtime-C4kzyrJj.js +0 -23
- package/dist/gemini-cli-provider-YULRMcs8.js +0 -106
- package/dist/gemini-web-search-provider-D_QJZMM3.js +0 -167
- package/dist/get-reply-from-config.runtime-BpdriKtr.js +0 -2
- package/dist/gmail-setup-utils-D_e1q-h_.js +0 -422
- package/dist/health-B5YmS_bW.js +0 -2
- package/dist/health-CQ4zXQ-2.js +0 -579
- package/dist/heartbeat-runner--rVDmB2Z.js +0 -1365
- package/dist/heartbeat-runner-CwtXIPI-.js +0 -4
- package/dist/heartbeat-runner.runtime-D_5UeAsX.js +0 -2
- package/dist/help-CAj5xloH.js +0 -76
- package/dist/hooks-cli-BGDBJqzt.js +0 -364
- package/dist/image-DiK7kcmJ.js +0 -152
- package/dist/image-generation-core-Cwutmg_V.js +0 -17
- package/dist/image-generation-core.auth.runtime-DA7XD5V2.js +0 -2
- package/dist/image-generation-provider-B-0SxnvJ.js +0 -280
- package/dist/image-generation-provider-B-UW3NU_.js +0 -94
- package/dist/image-generation-provider-BR1_oIU4.js +0 -130
- package/dist/image-generation-provider-CnGMLnE9.js +0 -163
- package/dist/image-generation-provider-DHvw6TSJ.js +0 -136
- package/dist/image-generation-runtime-DCWf9P6F.js +0 -2
- package/dist/image-runtime-DGNzvqkb.js +0 -7
- package/dist/inbound-reply-dispatch-DgEqNffL.js +0 -73
- package/dist/inbound.runtime-CloYEZJO.js +0 -4
- package/dist/inbound.runtime-DLbKJWOY.js +0 -3
- package/dist/infra-runtime-DE-Vi3Dn.js +0 -25
- package/dist/ingest-DbZJju1a.js +0 -842
- package/dist/ingest-Dyj9M3ZM.js +0 -2
- package/dist/io-Bz-M35LC.js +0 -7184
- package/dist/io-DacBLjh1.js +0 -5
- package/dist/kaijibot-tools-Df_9YJcO.js +0 -9434
- package/dist/kaijibot-tools.runtime-CZId-V1O.js +0 -2
- package/dist/kimi-web-search-provider-DunVVASJ.js +0 -308
- package/dist/library-BqMFzJMy.js +0 -45
- package/dist/lifecycle-core-DD_IXtH-.js +0 -422
- package/dist/lifecycle-lZ5BtT_X.js +0 -57
- package/dist/list.runtime-DU0ctAjd.js +0 -12
- package/dist/list.runtime-DXWlaAJq.js +0 -9
- package/dist/llm-engine-CMR9RxLA.js +0 -1792
- package/dist/llm-engine-VKRjaGY_.js +0 -2
- package/dist/llm-extractor-BCPvoWmb.js +0 -445
- package/dist/load-context-DV3B4twI.js +0 -51
- package/dist/logging-BMNGvpuz.js +0 -13
- package/dist/logging-CN3VAZ70.js +0 -2
- package/dist/login-Dex1JqnY.js +0 -108
- package/dist/logs-cli-BZFJyrsk.js +0 -264
- package/dist/logs-cli.runtime-bBS2Sbi6.js +0 -2
- package/dist/manager-BmS2ofc4.js +0 -2049
- package/dist/manager-CabVEPeE.js +0 -3314
- package/dist/mcp-cli-DGrmbpsu.js +0 -733
- package/dist/mcp-config-CY_3tJVi.js +0 -115
- package/dist/media-runtime-CAa8uHqv.js +0 -312
- package/dist/media-understanding-D_VRj6xY.js +0 -83
- package/dist/media-understanding-provider-B9Jfjq6L.js +0 -13
- package/dist/media-understanding-provider-BWksuEBw.js +0 -30
- package/dist/media-understanding-provider-Bhtq5Kpe.js +0 -14
- package/dist/media-understanding-provider-BzsmDAMk.js +0 -67
- package/dist/media-understanding-provider-C6_6yxvP.js +0 -123
- package/dist/media-understanding-provider-CdRlAb9s.js +0 -18
- package/dist/media-understanding-provider-D5m-2RW8.js +0 -21
- package/dist/media-understanding-provider-PmVmfI6p.js +0 -112
- package/dist/media-understanding-provider-cmLTPd8x.js +0 -18
- package/dist/media-understanding-provider-nPxfFv8l.js +0 -37
- package/dist/media-understanding-provider-yp9gxov6.js +0 -69
- package/dist/media-understanding-runtime-Bu7m-lVs.js +0 -2
- package/dist/memory-5jlpYBqx.js +0 -242
- package/dist/memory-BFKl6oSn.js +0 -3
- package/dist/memory-core-host-engine-embeddings-p06288xV.js +0 -2
- package/dist/memory-core-host-engine-foundation-DHbdNLgZ.js +0 -11
- package/dist/memory-core-host-runtime-cli-BnvAiNzO.js +0 -9
- package/dist/memory-core-host-runtime-core-CnVg69Uw.js +0 -8
- package/dist/memory-embedding-adapter-Cux48Bvk.js +0 -33
- package/dist/memory-host-search.runtime-D6ORyqHq.js +0 -2
- package/dist/memory-index-DSbV_yD0.js +0 -2
- package/dist/memory-index-EFkCRTeh.js +0 -514
- package/dist/memory-runtime-BKqNwQ9X.js +0 -2
- package/dist/memory-runtime-Cn41W0bC.js +0 -26
- package/dist/message-CMCdNyAT.js +0 -223
- package/dist/message-action-runner-CG2CcWaS.js +0 -1628
- package/dist/message-action-runner-DUZQ7nmt.js +0 -2
- package/dist/message.config.runtime-B3ztIjsr.js +0 -3
- package/dist/message.gateway.runtime-COLMRCv4.js +0 -2
- package/dist/metadata-registry-loader-BSyFpHop.js +0 -15
- package/dist/metadata-registry-loader-Ci3mcmNV.js +0 -2
- package/dist/minimax-vlm-D1DbVSjC.js +0 -183
- package/dist/minimax-web-search-provider-BzgvahXM.js +0 -165
- package/dist/mmr-Clamw4uq.js +0 -146
- package/dist/model-CJIbRRp9.js +0 -630
- package/dist/model-auth-BQpkMtoP.js +0 -427
- package/dist/model-auth-label-dLSkL9EI.js +0 -45
- package/dist/model-catalog-DgqowW_L.js +0 -204
- package/dist/model-definitions-BOTIDDWJ.js +0 -258
- package/dist/model-discovery-live.runtime-D2J8zvfK.js +0 -419
- package/dist/model-picker-B4SuA28P.js +0 -3
- package/dist/model-picker-buwrc8kM.js +0 -500
- package/dist/model-picker.runtime-DXgS2Rab.js +0 -15
- package/dist/model-selection-CBuo2hSg.js +0 -381
- package/dist/model-suppression-CthTVW_x.js +0 -28
- package/dist/model-suppression.runtime-R-qnGNBa.js +0 -7
- package/dist/models-B3UnmjRf.js +0 -18
- package/dist/models-BucP8NI1.js +0 -760
- package/dist/models-C3w7hz3K.js +0 -18
- package/dist/models-C4-eAnR7.js +0 -157
- package/dist/models-DMLYOe4h.js +0 -2
- package/dist/models-DNNfkS3j.js +0 -2584
- package/dist/models-DkiHZi9S.js +0 -47
- package/dist/models-OhM18fW_.js +0 -555
- package/dist/models-cli-CfvtZXPd.js +0 -198
- package/dist/models-config-BLMZzgfx.js +0 -900
- package/dist/models-config.providers.secrets-rjdH8T5l.js +0 -299
- package/dist/models.fetch-D1o7sMO8.js +0 -518
- package/dist/monitor-CJdL31iS.js +0 -4435
- package/dist/monitor-DB732mUY.js +0 -1023
- package/dist/music-generation-provider-BrUTQBmG.js +0 -169
- package/dist/music-generation-provider-D6aYWSSm.js +0 -238
- package/dist/music-generation-provider-dpX_Oiuw.js +0 -142
- package/dist/node-cli-BSrC37hh.js +0 -2374
- package/dist/nodes-cli-uwgDIsqv.js +0 -1046
- package/dist/nodes-utils-ChvZvxK1.js +0 -196
- package/dist/notify-C9-q0Rdu.js +0 -305
- package/dist/oauth-CVAbqwnx.js +0 -152
- package/dist/oauth-RbN-L8pg.js +0 -57
- package/dist/oauth-token-shared-CCzflFLG.js +0 -28
- package/dist/oauth.credentials-BeCOUsTe.js +0 -165
- package/dist/oauth.flow-C2PFyq_h.js +0 -122
- package/dist/oauth.settings-CBmYrmAk.js +0 -44
- package/dist/oauth.token-DSow_5Ie.js +0 -43
- package/dist/onboard-B-ZJptUZ.js +0 -25
- package/dist/onboard-Beu-mw_-.js +0 -29
- package/dist/onboard-BzUrcgZ5.js +0 -25
- package/dist/onboard-CPuf8esc.js +0 -25
- package/dist/onboard-CTfex1XR2.js +0 -58
- package/dist/onboard-D-ccZlbM.js +0 -312
- package/dist/onboard-DHXNhsF7.js +0 -621
- package/dist/onboard-custom-9KIp_ybR.js +0 -647
- package/dist/onboard-custom-CbXUFVN6.js +0 -2
- package/dist/onboard-helpers-BFknCN7m.js +0 -223
- package/dist/onboard-helpers-DSJ_xWpL.js +0 -5
- package/dist/onboard-remote-C28pAu4b.js +0 -193
- package/dist/onboard-remote-DQxyE18D.js +0 -2
- package/dist/onboard-search-CPHGVmos.js +0 -324
- package/dist/onboard-skills-B642NK1o.js +0 -2
- package/dist/onboard-skills-CI4B6Kx5.js +0 -134
- package/dist/openai-codex-auth-identity-PqpqYz4a.js +0 -45
- package/dist/openai-codex-cli-auth-cFTkwXjR.js +0 -57
- package/dist/openai-codex-provider-DjUpM_l9.js +0 -299
- package/dist/openai-codex-shared-o0pq7UkS.js +0 -6
- package/dist/openai-provider-ChZN4Q0c.js +0 -283
- package/dist/openai-transport-stream-DXBBlxJ9.js +0 -1632
- package/dist/operator-approvals-client-RJESCyw4.js +0 -68
- package/dist/order-D863tCt-.js +0 -794
- package/dist/pair-command-approve-5Jr6xo-1.js +0 -34
- package/dist/pairing-cli-BF3jieZo.js +0 -118
- package/dist/persistent-bindings.lifecycle-CjXEQUMz.js +0 -94
- package/dist/pi-bundle-mcp-tools-DPVGNVRw.js +0 -709
- package/dist/pi-embedded-Cp3OIZy9.js +0 -2
- package/dist/pi-embedded-DJN2vlNF.js +0 -6
- package/dist/pi-embedded-runner-DXHhhGRS.js +0 -8348
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-D1jUEg-R.js +0 -23
- package/dist/pi-embedded.runtime-DQPfEvkF.js +0 -5
- package/dist/pi-model-discovery-B9q9ykaA.js +0 -232
- package/dist/pi-tools.before-tool-call.runtime-vGvkJ6V9.js +0 -354
- package/dist/plugin-enabled-CMdiRqJS.js +0 -71
- package/dist/plugin-install-config-policy-32D2JJMl.js +0 -137
- package/dist/plugin-registration-BhPJI7wp.js +0 -23
- package/dist/plugin-registry-Bo4RF_Fn.js +0 -2
- package/dist/plugin-registry-C4M8QkVh.js +0 -3
- package/dist/plugin-registry-loader-ZzUapRh3.js +0 -22
- package/dist/plugin-service-31XQtuZr.js +0 -2494
- package/dist/plugins-cli-20A8dYUN.js +0 -576
- package/dist/plugins-command-helpers-C3Qls10N.js +0 -117
- package/dist/plugins-install-persist-DEr-zA4G.js +0 -121
- package/dist/plugins-update-command-D0Iv4BPb.js +0 -1009
- package/dist/policy-BEVsx7jw.js +0 -172
- package/dist/preemptive-compaction-DlRJt7Zq.js +0 -430
- package/dist/proactive-scheduler-B3w5rW0h.js +0 -1444
- package/dist/probe-CCTEVLB2.js +0 -54
- package/dist/probe-DcSW0ngD.js +0 -426
- package/dist/probe-auth-C7DjgU_m.js +0 -69
- package/dist/probe-auth-Cfwc8qaj.js +0 -3
- package/dist/profiles-BYudUysD.js +0 -117
- package/dist/program-E_Dt_QTp.js +0 -111
- package/dist/prompt-overlay-DsEnjhTn.js +0 -72
- package/dist/prompt-select-styled-Dtw90p2J.js +0 -5305
- package/dist/provider-api-key-auth-CerNsquw.js +0 -113
- package/dist/provider-api-key-auth.runtime-B0BpFkRm.js +0 -14
- package/dist/provider-auth-DwgUXcgu.js +0 -36
- package/dist/provider-auth-api-key-BQfXwqgU.js +0 -5
- package/dist/provider-auth-choice-BKxMQwxd.js +0 -134
- package/dist/provider-auth-choice-preference-DeDdHlsY.js +0 -62
- package/dist/provider-auth-choice.runtime-BJxc73Ex.js +0 -2
- package/dist/provider-auth-choice.runtime-DBcrr0Ab.js +0 -14
- package/dist/provider-auth-guidance-Cqo9An-I.js +0 -34
- package/dist/provider-auth-helpers-r9kVb6L3.js +0 -168
- package/dist/provider-catalog-CjNAbR9b.js +0 -12
- package/dist/provider-catalog-CpTP4D3p.js +0 -56
- package/dist/provider-catalog-D1iJW59q.js +0 -11
- package/dist/provider-catalog-Dc48HHhB.js +0 -11
- package/dist/provider-catalog-jKq2UIeG.js +0 -17
- package/dist/provider-catalog-pmlFBXYr.js +0 -26
- package/dist/provider-dispatcher-Dl07uV70.js +0 -22
- package/dist/provider-entry-DkwXZuZY.js +0 -97
- package/dist/provider-flow-CmI4jkWV.js +0 -66
- package/dist/provider-iVtrs6XY.js +0 -70
- package/dist/provider-models-BXMZj2p1.js +0 -119
- package/dist/provider-models-Bq_MZ0xR.js +0 -35
- package/dist/provider-models-CsUYkHTw.js +0 -116
- package/dist/provider-registration-DkqLtXSj.js +0 -57
- package/dist/provider-registration-vrLHkywc.js +0 -238
- package/dist/provider-runtime-C_ebc-4l.js +0 -2
- package/dist/provider-runtime-Czioyn5w.js +0 -366
- package/dist/provider-runtime.runtime-lPuF4lqy.js +0 -26
- package/dist/provider-self-hosted-setup-Bjk91HZ7.js +0 -249
- package/dist/provider-setup-hUbxRciz.js +0 -2
- package/dist/provider-stream-DTbeHqKf.js +0 -285
- package/dist/provider-stream-family-Cz7SHqeS.js +0 -2
- package/dist/provider-usage-4x0im5xP.js +0 -3
- package/dist/provider-usage-CdkW3Bkb.js +0 -289
- package/dist/provider-wizard-BPkIa2bk.js +0 -166
- package/dist/providers.runtime-CawuCJXc.js +0 -125
- package/dist/proxy-stream-wrappers-BcJuaE24.js +0 -480
- package/dist/push-apns-CO3sqbX3.js +0 -1061
- package/dist/pw-ai-DEf5tZLp.js +0 -2268
- package/dist/qmd-manager-CrqmeTuY.js +0 -1799
- package/dist/qr-cli-g_Pkqstu.js +0 -359
- package/dist/qr-image-DcG1bUox.js +0 -2
- package/dist/queue-BveCZpTb.js +0 -636
- package/dist/realtime-provider-shared-BIili3oc.js +0 -21
- package/dist/realtime-transcription-provider-DqEHy_Jr.js +0 -180
- package/dist/realtime-voice-provider-Dau1KlKK.js +0 -342
- package/dist/record-shared-CC55xbFE.js +0 -10
- package/dist/refresh-BXJ80ji4.js +0 -115
- package/dist/region-CPFmncMW.js +0 -74
- package/dist/register.agent-D5el253o.js +0 -241
- package/dist/register.backup-CBhoChp-.js +0 -234
- package/dist/register.configure-DeqUaelp.js +0 -15
- package/dist/register.maintenance-Dv5x9ZE6.js +0 -443
- package/dist/register.message-e2Pbh8A_.js +0 -601
- package/dist/register.onboard-COuTKpAw.js +0 -83
- package/dist/register.runtime-BjOIl4eF.js +0 -81
- package/dist/register.runtime-BzJ6RkQN.js +0 -343
- package/dist/register.setup-DQYY7K4K.js +0 -104
- package/dist/register.status-health-sessions-CXNGQh_O.js +0 -1211
- package/dist/register.subclis-B6uy_ogx.js +0 -232
- package/dist/register.subclis-Cmdrfiej.js +0 -3
- package/dist/repair-C8v1vNU-.js +0 -112
- package/dist/replay-policy-C6igC4nS.js +0 -8
- package/dist/reply-Bd8ShNWW.js +0 -3523
- package/dist/reply.runtime-ByKwE5dg.js +0 -2
- package/dist/resolve-CSTOvc_c.js +0 -280
- package/dist/restart-C0QhPXk1.js +0 -454
- package/dist/root-help-D2vz4lbV.js +0 -44
- package/dist/route-reply-CXZFXlfK.js +0 -141
- package/dist/route-reply.runtime-BK8V9NEg.js +0 -2
- package/dist/rpc-f0OkPaI1.js +0 -61
- package/dist/rpc.runtime-BQ78T_pB.js +0 -21
- package/dist/run-main-CkwrrhfI.js +0 -453
- package/dist/run-wait-B4pXPLkF.js +0 -118
- package/dist/runner-BSA9M_M9.js +0 -1497
- package/dist/runs-CEDW87Fd.js +0 -495
- package/dist/runtime-C18YgW822.js +0 -242
- package/dist/runtime-C3OJQ1Xd.js +0 -200
- package/dist/runtime-CDNVtwVk.js +0 -72
- package/dist/runtime-CMNHfJtF.js +0 -725
- package/dist/runtime-C_o_otMV.js +0 -355
- package/dist/runtime-CiJWy5Ce.js +0 -9
- package/dist/runtime-D8bLKXLh.js +0 -253
- package/dist/runtime-DM4z9RVx.js +0 -2
- package/dist/runtime-Di50Fr1z.js +0 -191
- package/dist/runtime-W3qG5LHM.js +0 -2
- package/dist/runtime-api-Bx7nlc4w.js +0 -12
- package/dist/runtime-api-DCNC_FTy2.js +0 -2
- package/dist/runtime-api-_Z8MjR0l.js +0 -3
- package/dist/runtime-embedded-pi.runtime-Cv0MW9ps.js +0 -3
- package/dist/runtime-internal-DclGtT-e.js +0 -2
- package/dist/runtime-model-auth.runtime-Bjl23_fr.js +0 -39
- package/dist/runtime-oEwr_zQb.js +0 -107
- package/dist/runtime-plugins-CwWhqXLJ.js +0 -69
- package/dist/runtime-prepare.runtime-Bi-YD5R-.js +0 -80
- package/dist/runtime-provider-CSEDbSxr.js +0 -21
- package/dist/runtime-registry-loader-CbbaZCXY.js +0 -58
- package/dist/runtime-registry-loader-kqiMFCUa.js +0 -2
- package/dist/runtime-schema-CDuvvU7B.js +0 -28383
- package/dist/runtime-shared-BxJFDFe6.js +0 -249
- package/dist/runtime-taskflow-RwpXng2l.js +0 -250
- package/dist/runtime-web-channel-plugin-Bw74Ar_q.js +0 -215
- package/dist/runtime-web-tools-CEaAGeYr.js +0 -1467
- package/dist/runtime-web-tools-fallback.runtime-DU8Hp_QZ.js +0 -9
- package/dist/sandbox-BC2XUWcW.js +0 -4
- package/dist/sandbox-cli-ain0MYTB.js +0 -447
- package/dist/sandbox-epLgxWBQ.js +0 -2586
- package/dist/secrets-cli-iLwRZbRt.js +0 -2114
- package/dist/security-audit-DfrokBuq.js +0 -34
- package/dist/security-cli-BqsMM550.js +0 -486
- package/dist/semantic-dedup-BBpIPaSV.js +0 -95
- package/dist/send-C5LHdZqP.js +0 -993
- package/dist/send-media-Df0E2Z_m.js +0 -2123
- package/dist/server-2CD2yd73.js +0 -13
- package/dist/server-B44RMlVT.js +0 -77
- package/dist/server-context-SulhWpXY.js +0 -4164
- package/dist/server-methods-BPzzX5VC.js +0 -11937
- package/dist/server-middleware-WQzQIrD4.js +0 -110
- package/dist/server-node-events-Ug_Atc7G.js +0 -451
- package/dist/server.impl-InfVdwPj.js +0 -19765
- package/dist/session-B5RmIL21.js +0 -48
- package/dist/session-conversation-CFty7VTc.js +0 -27
- package/dist/session-cost-usage-CckjvorH.js +0 -2
- package/dist/session-cost-usage-DMRjhi4B.js +0 -648
- package/dist/session-file-DGJqy_ea.js +0 -44
- package/dist/session-key-D-jBcxEp.js +0 -65
- package/dist/session-meta-BijZlLS3.js +0 -109
- package/dist/session-override-1YQHEAlz.js +0 -103
- package/dist/session-reset-model.runtime-CEWrfXLr.js +0 -120
- package/dist/session-reset-service-Dphtb16d.js +0 -474
- package/dist/session-subagent-reactivation.runtime-CF4aqSpn.js +0 -2
- package/dist/session-system-events-BSVIh760.js +0 -63
- package/dist/session-tab-registry-DG9SGi0I.js +0 -553
- package/dist/session-updates-BRFvmIoC.js +0 -234
- package/dist/session-updates.runtime-CiHARWGr.js +0 -2
- package/dist/session-utils-Cai4P9ih.js +0 -930
- package/dist/sessions-BTcXDmCA.js +0 -2
- package/dist/sessions-CyYVTseV.js +0 -45
- package/dist/sessions-Fb0ep3uj.js +0 -231
- package/dist/sessions.runtime-BGyynSR4.js +0 -2
- package/dist/setup-CjEjg8Ci.js +0 -505
- package/dist/setup-D-ypxGnK.js +0 -329
- package/dist/setup-surface-QaubzT60.js +0 -586
- package/dist/setup.finalize-B3MWkUF9.js +0 -436
- package/dist/setup.gateway-config-BdK0tA_r.js +0 -246
- package/dist/shared-0JcWj8-R.js +0 -224
- package/dist/shared-BOd3OCF0.js +0 -36
- package/dist/shared-DICWV0-6.js +0 -218
- package/dist/shared-DiGX-JK8.js +0 -137
- package/dist/shared-DktX3NHd.js +0 -175
- package/dist/shared-runtime-BltNIfGY.js +0 -7
- package/dist/short-term-promotion-CT1zdD1r.js +0 -1631
- package/dist/simple-completion-runtime-CZyp8rJ3.js +0 -131
- package/dist/simple-completion-transport-BWyoXghG.js +0 -32
- package/dist/skill-commands-BC_2IdwF.js +0 -82
- package/dist/skill-commands.runtime-BP6BnOeq.js +0 -2
- package/dist/skills-BQX1AsbM.js +0 -4
- package/dist/skills-D7XPR8N-.js +0 -1075
- package/dist/skills-cli-CxmgxC7X.js +0 -382
- package/dist/skills-install-CHUWYiLs.js +0 -822
- package/dist/skills-status-DRTnP8E3.js +0 -170
- package/dist/skills-status-v28wm8HD.js +0 -2
- package/dist/soul-cli-B1-3BHbA.js +0 -110
- package/dist/speech-core-aXx4I3sB.js +0 -126
- package/dist/speech-provider-BTBQ5VOv.js +0 -103
- package/dist/speech-provider-BciszvJf.js +0 -184
- package/dist/speech-provider-BoQDEC_Y.js +0 -167
- package/dist/speech-provider-C-wTEx8k.js +0 -182
- package/dist/stage-sandbox-media.runtime-DhlTQjXA.js +0 -230
- package/dist/standalone-generate-BRvNW_O7.js +0 -2
- package/dist/standalone-generate-CDfZss4x.js +0 -217
- package/dist/startup-auth-B5V0AaIU.js +0 -151
- package/dist/state-migrations-BNib6l8O.js +0 -823
- package/dist/status-8clcfnN0.js +0 -473
- package/dist/status-C9YBVOov.js +0 -278
- package/dist/status-CNcOKUs2.js +0 -500
- package/dist/status-D1l9Tu3s.js +0 -399
- package/dist/status-DKth_wbp.js +0 -2
- package/dist/status-P3bvFirO.js +0 -3
- package/dist/status-TmH9qSMG.js +0 -2
- package/dist/status-all-BeyVXDNT.js +0 -495
- package/dist/status-json-Cj42CVZZ.js +0 -14
- package/dist/status-json-command-DWk5RiyN.js +0 -92
- package/dist/status-runtime-shared-orzti3tZ.js +0 -271
- package/dist/status.command.text-runtime-B-tNLc3T.js +0 -15
- package/dist/status.gateway-connection.runtime-BrkaJ2f5.js +0 -2
- package/dist/status.gateway-probe-BwuiZk1h.js +0 -16
- package/dist/status.scan-DegSjLE2.js +0 -62
- package/dist/status.scan-overview-CrSELCru.js +0 -395
- package/dist/status.scan.deps.runtime-DrUvBz4e.js +0 -18
- package/dist/status.scan.fast-json-Bm5lN6IK.js +0 -2
- package/dist/status.scan.fast-json-Ch2Zw813.js +0 -128
- package/dist/status.scan.runtime-D-LvzBYN.js +0 -417
- package/dist/status.summary-OB-43Bvk.js +0 -2
- package/dist/status.summary-gJukahkb.js +0 -209
- package/dist/store-D5JODeba.js +0 -421
- package/dist/store-D_vXZ7m9.js +0 -1112
- package/dist/store-yc7MvXdd.js +0 -1075
- package/dist/store.runtime-6eaZtPq6.js +0 -2
- package/dist/stream-BgcqyefI.js +0 -649
- package/dist/stream-wrappers-B7-5gN0i.js +0 -144
- package/dist/subagent-announce.registry.runtime-R2bop0gW.js +0 -3
- package/dist/subagent-control-UyMtkJwo.js +0 -485
- package/dist/subagent-followup.runtime-bTK0TymS.js +0 -68
- package/dist/subagent-list-c0JKZR0g.js +0 -168
- package/dist/subagent-orphan-recovery-CSEzwva5.js +0 -214
- package/dist/subagent-registry-Be219RP1.js +0 -2889
- package/dist/subagent-registry-runtime-Dk57Y91p.js +0 -2
- package/dist/subagent-registry.runtime-D6h_BK2i.js +0 -3
- package/dist/subagent-spawn-BeyYZuFf.js +0 -782
- package/dist/subagents-format-ZcZBg1Vh.js +0 -629
- package/dist/system-cli-_3czEwa7.js +0 -60
- package/dist/targets-CXrDP8_l.js +0 -595
- package/dist/task-executor-DNUNtRg8.js +0 -350
- package/dist/task-owner-access--E5Vkg9U.js +0 -48
- package/dist/task-registry-COE-B6MO.js +0 -2346
- package/dist/task-registry-control.runtime-BzsTfRw1.js +0 -3
- package/dist/task-registry-delivery-runtime-Cv6xz8KP.js +0 -2
- package/dist/task-registry-delivery-runtime-DSfcd2LA.js +0 -3
- package/dist/task-registry.maintenance-Bhd9abl9.js +0 -2
- package/dist/task-registry.maintenance-W3lTkY0l.js +0 -425
- package/dist/testing-CQ_-oCQB.js +0 -441
- package/dist/text-report-BgqWDKJR.js +0 -587
- package/dist/text-runtime-asv4kIxS.js +0 -313
- package/dist/thread-bindings-BCRWofo_.js +0 -223
- package/dist/tool-auth-shared-BWZwTobX.js +0 -53
- package/dist/tool-config-shared-BleK697I.js +0 -19
- package/dist/tool-schema-runtime-DZsW_KR4.js +0 -1892
- package/dist/tools-C7lv9rSD.js +0 -110
- package/dist/tools-effective-inventory-SB9JwX-y.js +0 -152
- package/dist/tools.runtime-J5rhfXQp.js +0 -4
- package/dist/transcript-DxWx6dVc.js +0 -233
- package/dist/transcript.runtime-CmBnobSv.js +0 -2
- package/dist/transport-policy-BGfaKNz0.js +0 -75
- package/dist/tts-C1GyTLOi.js +0 -31
- package/dist/tui-Cqdp1x16.js +0 -4018
- package/dist/tui-cli-BC4O3H6r.js +0 -31
- package/dist/update-cli-BzaCTuax.js +0 -1779
- package/dist/update-runner-Cvxezvhf.js +0 -1492
- package/dist/usage-format-DQTT4pqY.js +0 -507
- package/dist/usage-format-sR4xu0xw.js +0 -2
- package/dist/video-generation-provider-7YR4_ldd.js +0 -171
- package/dist/video-generation-provider-AlAZkYIW.js +0 -181
- package/dist/video-generation-provider-BEqi4pUJ.js +0 -104
- package/dist/video-generation-provider-CraaZaR7.js +0 -77
- package/dist/video-generation-provider-CuvO2Hzh.js +0 -246
- package/dist/video-generation-provider-D-t16ACe.js +0 -240
- package/dist/video-generation-provider-DeowxvLt.js +0 -233
- package/dist/video-generation-provider-HbOZ3qzI.js +0 -227
- package/dist/video-generation-provider-_apx1yFE.js +0 -263
- package/dist/video-generation-provider-bvpb6cdV.js +0 -64
- package/dist/web-fetch-providers.runtime-m66rypbB.js +0 -33
- package/dist/web-search-DSDz1iyf.js +0 -221
- package/dist/web-search-provider-DnYRRBVM.js +0 -155
- package/dist/web-search-providers.runtime-Cv56XIGr.js +0 -206
- package/dist/webhooks-cli-DQ_JTSNA.js +0 -321
- package/dist/x-search-shared-DKPdPR5_.js +0 -109
- package/dist/zod-schema-B7jQiHXQ.js +0 -1400
|
@@ -1,1365 +0,0 @@
|
|
|
1
|
-
import { i as normalizeLowercaseStringOrEmpty, s as normalizeOptionalString } from "./string-coerce-xZwG7Dq8.js";
|
|
2
|
-
import { a as hasErrnoCode, r as formatErrorMessage } from "./errors-Ez4cKI2Y.js";
|
|
3
|
-
import { n as defaultRuntime } from "./runtime-CGvKIwIL.js";
|
|
4
|
-
import { c as escapeRegExp } from "./utils-C8dt4mi-.js";
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-BikUf0BS.js";
|
|
6
|
-
import { o as isSubagentSessionKey, s as parseAgentSessionKey } from "./session-key-utils-DEfwsZM6.js";
|
|
7
|
-
import { c as normalizeAgentId, g as toAgentStoreSessionKey, u as resolveAgentIdFromSessionKey } from "./session-key-Dny5dRer.js";
|
|
8
|
-
import { i as resolveAgentConfig, m as resolveDefaultAgentId, p as resolveAgentWorkspaceDir } from "./agent-scope-z3lpbLWu.js";
|
|
9
|
-
import { i as DEFAULT_HEARTBEAT_FILENAME } from "./workspace-4a1dwE_K.js";
|
|
10
|
-
import { o as loadConfig } from "./io-Bz-M35LC.js";
|
|
11
|
-
import { t as getChannelPlugin } from "./registry-oQjdISx1.js";
|
|
12
|
-
import "./config-DuLfQQvE.js";
|
|
13
|
-
import "./plugins-Dvy8KJPp.js";
|
|
14
|
-
import { c as updateSessionStore, o as saveSessionStore } from "./store-D_vXZ7m9.js";
|
|
15
|
-
import { n as resolveAgentMainSessionKey, t as canonicalizeMainSessionAlias } from "./main-session-CdTg-YvV.js";
|
|
16
|
-
import { l as resolveStorePath } from "./paths-DrQr2my6.js";
|
|
17
|
-
import { r as resolveSessionResetPolicy, t as evaluateSessionFreshness } from "./reset-D6p6byql.js";
|
|
18
|
-
import { t as loadSessionStore } from "./store-load-5DAj5ABj.js";
|
|
19
|
-
import { o as startsWithSilentToken, s as stripLeadingSilentToken, t as HEARTBEAT_TOKEN } from "./tokens-CB2-NTu5.js";
|
|
20
|
-
import { n as loadOrCreateDeviceIdentity } from "./device-identity-BbqzkeXB.js";
|
|
21
|
-
import { r as resolveEffectiveMessagesConfig } from "./identity-Dplh_aWR.js";
|
|
22
|
-
import { a as parseHeartbeatTasks, i as isTaskDue, o as resolveHeartbeatPrompt$1, r as isHeartbeatContentEffectivelyEmpty, s as stripHeartbeatToken } from "./heartbeat-B1UJqney.js";
|
|
23
|
-
import { n as resolveHeartbeatIntervalMs, t as isHeartbeatEnabledForAgent } from "./heartbeat-summary-Cf17FCYf.js";
|
|
24
|
-
import { f as CommandLane, o as getQueueSize } from "./command-queue-CmX7XAL1.js";
|
|
25
|
-
import { r as clearBootstrapSnapshotOnSessionRollover } from "./bootstrap-cache-M_FM5rOv.js";
|
|
26
|
-
import { i as resolveUserTimezone } from "./date-time-BwFuxzII.js";
|
|
27
|
-
import { t as deliverOutboundPayloads } from "./deliver-SAyi_F0e.js";
|
|
28
|
-
import { a as resolveHeartbeatReasonKind, n as requestHeartbeatNow, r as setHeartbeatWakeHandler, t as areHeartbeatsEnabled } from "./heartbeat-wake-DL3yhijT.js";
|
|
29
|
-
import { s as peekSystemEventEntries, t as consumeSystemEventEntries, u as resolveSystemEventDeliveryContext } from "./system-events-Yd4M0_kC.js";
|
|
30
|
-
import { p as resolveSendableOutboundReplyParts, s as hasOutboundReplyContent } from "./reply-payload-CNLx7o4Q.js";
|
|
31
|
-
import { t as buildOutboundSessionContext } from "./session-context-CWUgil5i.js";
|
|
32
|
-
import { n as resolveHeartbeatSenderContext, t as resolveHeartbeatDeliveryTarget } from "./targets-BN0-h0GJ.js";
|
|
33
|
-
import { _ as resolveEmbeddedSessionLane } from "./queue-BveCZpTb.js";
|
|
34
|
-
import { t as appendCronStyleCurrentTimeLine } from "./current-time-DnecTm2R.js";
|
|
35
|
-
import "./pi-embedded-runner-DXHhhGRS.js";
|
|
36
|
-
import { t as resolveHeartbeatReplyPayload } from "./heartbeat-reply-payload-DW6ihrUg.js";
|
|
37
|
-
import { n as emitHeartbeatEvent, o as resolveIndicatorType, t as resolveHeartbeatVisibility } from "./heartbeat-visibility-BpEZ4Xf-.js";
|
|
38
|
-
import { r as pickLocalized, t as L } from "./cognitive-locale-2_l40Ot0.js";
|
|
39
|
-
import path from "node:path";
|
|
40
|
-
import fs from "node:fs/promises";
|
|
41
|
-
import crypto, { createHash } from "node:crypto";
|
|
42
|
-
//#region src/cron/isolated-agent/session.ts
|
|
43
|
-
function resolveCronSession(params) {
|
|
44
|
-
const sessionCfg = params.cfg.session;
|
|
45
|
-
const storePath = resolveStorePath(sessionCfg?.store, { agentId: params.agentId });
|
|
46
|
-
const store = loadSessionStore(storePath);
|
|
47
|
-
const entry = store[params.sessionKey];
|
|
48
|
-
let sessionId;
|
|
49
|
-
let isNewSession;
|
|
50
|
-
let systemSent;
|
|
51
|
-
if (!params.forceNew && entry?.sessionId) {
|
|
52
|
-
const resetPolicy = resolveSessionResetPolicy({
|
|
53
|
-
sessionCfg,
|
|
54
|
-
resetType: "direct"
|
|
55
|
-
});
|
|
56
|
-
if (evaluateSessionFreshness({
|
|
57
|
-
updatedAt: entry.updatedAt,
|
|
58
|
-
now: params.nowMs,
|
|
59
|
-
policy: resetPolicy
|
|
60
|
-
}).fresh) {
|
|
61
|
-
sessionId = entry.sessionId;
|
|
62
|
-
isNewSession = false;
|
|
63
|
-
systemSent = entry.systemSent ?? false;
|
|
64
|
-
} else {
|
|
65
|
-
sessionId = crypto.randomUUID();
|
|
66
|
-
isNewSession = true;
|
|
67
|
-
systemSent = false;
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
sessionId = crypto.randomUUID();
|
|
71
|
-
isNewSession = true;
|
|
72
|
-
systemSent = false;
|
|
73
|
-
}
|
|
74
|
-
clearBootstrapSnapshotOnSessionRollover({
|
|
75
|
-
sessionKey: params.sessionKey,
|
|
76
|
-
previousSessionId: isNewSession ? entry?.sessionId : void 0
|
|
77
|
-
});
|
|
78
|
-
return {
|
|
79
|
-
storePath,
|
|
80
|
-
store,
|
|
81
|
-
sessionEntry: {
|
|
82
|
-
...entry,
|
|
83
|
-
sessionId,
|
|
84
|
-
updatedAt: params.nowMs,
|
|
85
|
-
systemSent,
|
|
86
|
-
...isNewSession && {
|
|
87
|
-
lastChannel: void 0,
|
|
88
|
-
lastTo: void 0,
|
|
89
|
-
lastAccountId: void 0,
|
|
90
|
-
lastThreadId: void 0,
|
|
91
|
-
deliveryContext: void 0,
|
|
92
|
-
sessionFile: void 0
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
systemSent,
|
|
96
|
-
isNewSession
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/infra/heartbeat-active-hours.ts
|
|
101
|
-
const ACTIVE_HOURS_TIME_PATTERN = /^(?:([01]\d|2[0-3]):([0-5]\d)|24:00)$/;
|
|
102
|
-
function resolveActiveHoursTimezone(cfg, raw) {
|
|
103
|
-
const trimmed = raw?.trim();
|
|
104
|
-
if (!trimmed || trimmed === "user") return resolveUserTimezone(cfg.agents?.defaults?.userTimezone);
|
|
105
|
-
if (trimmed === "local") return Intl.DateTimeFormat().resolvedOptions().timeZone?.trim() || "UTC";
|
|
106
|
-
try {
|
|
107
|
-
new Intl.DateTimeFormat("en-US", { timeZone: trimmed }).format(/* @__PURE__ */ new Date());
|
|
108
|
-
return trimmed;
|
|
109
|
-
} catch {
|
|
110
|
-
return resolveUserTimezone(cfg.agents?.defaults?.userTimezone);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function parseActiveHoursTime(opts, raw) {
|
|
114
|
-
if (!raw || !ACTIVE_HOURS_TIME_PATTERN.test(raw)) return null;
|
|
115
|
-
const [hourStr, minuteStr] = raw.split(":");
|
|
116
|
-
const hour = Number(hourStr);
|
|
117
|
-
const minute = Number(minuteStr);
|
|
118
|
-
if (!Number.isFinite(hour) || !Number.isFinite(minute)) return null;
|
|
119
|
-
if (hour === 24) {
|
|
120
|
-
if (!opts.allow24 || minute !== 0) return null;
|
|
121
|
-
return 1440;
|
|
122
|
-
}
|
|
123
|
-
return hour * 60 + minute;
|
|
124
|
-
}
|
|
125
|
-
function resolveMinutesInTimeZone(nowMs, timeZone) {
|
|
126
|
-
try {
|
|
127
|
-
const parts = new Intl.DateTimeFormat("en-US", {
|
|
128
|
-
timeZone,
|
|
129
|
-
hour: "2-digit",
|
|
130
|
-
minute: "2-digit",
|
|
131
|
-
hourCycle: "h23"
|
|
132
|
-
}).formatToParts(new Date(nowMs));
|
|
133
|
-
const map = {};
|
|
134
|
-
for (const part of parts) if (part.type !== "literal") map[part.type] = part.value;
|
|
135
|
-
const hour = Number(map.hour);
|
|
136
|
-
const minute = Number(map.minute);
|
|
137
|
-
if (!Number.isFinite(hour) || !Number.isFinite(minute)) return null;
|
|
138
|
-
return hour * 60 + minute;
|
|
139
|
-
} catch {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
function isWithinActiveHours(cfg, heartbeat, nowMs) {
|
|
144
|
-
const active = heartbeat?.activeHours;
|
|
145
|
-
if (!active) return true;
|
|
146
|
-
const startMin = parseActiveHoursTime({ allow24: false }, active.start);
|
|
147
|
-
const endMin = parseActiveHoursTime({ allow24: true }, active.end);
|
|
148
|
-
if (startMin === null || endMin === null) return true;
|
|
149
|
-
if (startMin === endMin) return false;
|
|
150
|
-
const timeZone = resolveActiveHoursTimezone(cfg, active.timezone);
|
|
151
|
-
const currentMin = resolveMinutesInTimeZone(nowMs ?? Date.now(), timeZone);
|
|
152
|
-
if (currentMin === null) return true;
|
|
153
|
-
if (endMin > startMin) return currentMin >= startMin && currentMin < endMin;
|
|
154
|
-
return currentMin >= startMin || currentMin < endMin;
|
|
155
|
-
}
|
|
156
|
-
function distinctShingleRatio(text) {
|
|
157
|
-
const size = 24;
|
|
158
|
-
const total = text.length - size + 1;
|
|
159
|
-
if (total <= 0) return 1;
|
|
160
|
-
const step = Math.max(1, Math.ceil(total / 2e4));
|
|
161
|
-
const seen = /* @__PURE__ */ new Set();
|
|
162
|
-
let scanned = 0;
|
|
163
|
-
for (let i = 0; i + size <= text.length; i += step) {
|
|
164
|
-
seen.add(text.slice(i, i + size));
|
|
165
|
-
scanned += 1;
|
|
166
|
-
}
|
|
167
|
-
return scanned === 0 ? 1 : seen.size / scanned;
|
|
168
|
-
}
|
|
169
|
-
function isDegenerateReplyText(text) {
|
|
170
|
-
const trimmed = text.trim();
|
|
171
|
-
if (trimmed.length > 24e3) return {
|
|
172
|
-
degenerate: true,
|
|
173
|
-
reason: "length"
|
|
174
|
-
};
|
|
175
|
-
if (trimmed.length <= 6e3) return { degenerate: false };
|
|
176
|
-
const ratio = distinctShingleRatio(trimmed);
|
|
177
|
-
if (ratio < .12) return {
|
|
178
|
-
degenerate: true,
|
|
179
|
-
reason: "repetition",
|
|
180
|
-
shingleRatio: ratio
|
|
181
|
-
};
|
|
182
|
-
return {
|
|
183
|
-
degenerate: false,
|
|
184
|
-
shingleRatio: ratio
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
const INSIGHT_EVENT_PREFIX = "[Cognitive Insight] ";
|
|
188
|
-
const INSIGHT_EVENT_INSTRUCTION = "(这是一条已生成的主动洞察,请用你自己的语言自然地分享给用户。)";
|
|
189
|
-
const FALLBACK_INSIGHT_MAX_CHARS = 2e3;
|
|
190
|
-
/**
|
|
191
|
-
* Bounded fallback text for a blocked insight relay: the insight itself was
|
|
192
|
-
* verified before delivery, so relaying the stored event text is strictly
|
|
193
|
-
* safer than whatever the relay turn produced.
|
|
194
|
-
*/
|
|
195
|
-
function buildDegenerateReplyFallback(insightEventText) {
|
|
196
|
-
const notice = "(转述生成异常,已自动拦截。以下为洞察原文)";
|
|
197
|
-
const raw = insightEventText?.trim();
|
|
198
|
-
if (!raw) return "(主动回复生成异常,已自动拦截。原始事件仍保留在系统记录中。)";
|
|
199
|
-
let content = raw.startsWith(INSIGHT_EVENT_PREFIX) ? raw.slice(20).trim() : raw;
|
|
200
|
-
const instructionIndex = content.indexOf(INSIGHT_EVENT_INSTRUCTION);
|
|
201
|
-
if (instructionIndex >= 0) content = content.slice(0, instructionIndex).trim();
|
|
202
|
-
if (content.length > FALLBACK_INSIGHT_MAX_CHARS) content = `${content.slice(0, FALLBACK_INSIGHT_MAX_CHARS)}…`;
|
|
203
|
-
return `${notice}\n\n${content}`;
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/infra/heartbeat-events-filter.ts
|
|
207
|
-
const INSIGHT_EVENT_PROMPT = L("一条主动洞察已生成(内容在系统消息中)。请用自然的方式将其分享给用户。\n保持原意但可以用你自己的语言表达,让它读起来像对话而非推送通知。\n如果洞察包含来源链接,保留它们。", "A proactive insight has been generated (content in the system message). Share it with the user in a natural way.\nKeep the original meaning but feel free to express it in your own words so it reads like a conversation, not a push notification.\nIf the insight contains source links, keep them.");
|
|
208
|
-
const EVOLUTION_EVENT_PROMPT = L("你收到了一个技能进化信号(内容在系统消息中)。请根据完整对话上下文自主判断这个任务模式是否值得保存为可复用技能。\n\n判断流程:\n1. 调用 evaluate_skill_evolution 工具生成技能草稿\n2. 根据返回的 complexityScore 和 recentSuggestions 决定:\n - 值得且不频繁 → 直接告诉用户你生成了一个技能草稿,问要不要保存\n - 值得但近期已建议过类似内容 → 告诉用户你静默创建了技能,下次需要时可以直接用\n - 不值得(太简单、一次性需求) → 简短告诉用户你评估了但觉得不值得保存\n3. 无论哪种情况,你都必须输出一段自然语言回复给用户\n\n如果用户想修改已有技能,使用 patch_skill 工具。", "You received a skill evolution signal (content in the system message). Based on the full conversation context, decide autonomously whether this task pattern is worth saving as a reusable skill.\n\nDecision flow:\n1. Call the evaluate_skill_evolution tool to generate a skill draft\n2. Based on the returned complexityScore and recentSuggestions, decide:\n - Worth it and not frequent → tell the user you generated a skill draft and ask if they want to save it\n - Worth it but similar content was suggested recently → tell the user you silently created the skill for next time\n - Not worth it (too simple, one-off need) → briefly tell the user you evaluated but decided it's not worth saving\n3. In every case, you must output a natural-language reply to the user\n\nIf the user wants to modify an existing skill, use the patch_skill tool.");
|
|
209
|
-
function buildCronEventPrompt(pendingEvents, opts) {
|
|
210
|
-
const deliverToUser = opts?.deliverToUser ?? true;
|
|
211
|
-
const eventText = pendingEvents.join("\n").trim();
|
|
212
|
-
if (!eventText) {
|
|
213
|
-
if (!deliverToUser) return "A scheduled cron event was triggered, but no event content was found. Handle this internally and reply HEARTBEAT_OK when nothing needs user-facing follow-up.";
|
|
214
|
-
return "A scheduled cron event was triggered, but no event content was found. Reply HEARTBEAT_OK.";
|
|
215
|
-
}
|
|
216
|
-
if (!deliverToUser) return "A scheduled reminder has been triggered. The reminder content is:\n\n" + eventText + "\n\nHandle this reminder internally. Do not relay it to the user unless explicitly requested.";
|
|
217
|
-
return "A scheduled reminder has been triggered. The reminder content is:\n\n" + eventText + "\n\nPlease relay this reminder to the user in a helpful and friendly way.";
|
|
218
|
-
}
|
|
219
|
-
function buildExecEventPrompt(opts) {
|
|
220
|
-
if (!(opts?.deliverToUser ?? true)) return "An async command you ran earlier has completed. The result is shown in the system messages above. Handle the result internally. Do not relay it to the user unless explicitly requested.";
|
|
221
|
-
return "An async command you ran earlier has completed. The result is shown in the system messages above. Please relay the command output to the user in a helpful way. If the command succeeded, share the relevant output. If it failed, explain what went wrong.";
|
|
222
|
-
}
|
|
223
|
-
const HEARTBEAT_OK_PREFIX = normalizeLowercaseStringOrEmpty(HEARTBEAT_TOKEN);
|
|
224
|
-
function isHeartbeatAckEvent(evt) {
|
|
225
|
-
const trimmed = evt.trim();
|
|
226
|
-
if (!trimmed) return false;
|
|
227
|
-
const lower = normalizeLowercaseStringOrEmpty(trimmed);
|
|
228
|
-
if (!lower.startsWith(HEARTBEAT_OK_PREFIX)) return false;
|
|
229
|
-
const suffix = lower.slice(HEARTBEAT_OK_PREFIX.length);
|
|
230
|
-
if (suffix.length === 0) return true;
|
|
231
|
-
return !/[a-z0-9_]/.test(suffix[0]);
|
|
232
|
-
}
|
|
233
|
-
function isHeartbeatNoiseEvent(evt) {
|
|
234
|
-
const lower = normalizeLowercaseStringOrEmpty(evt);
|
|
235
|
-
if (!lower) return false;
|
|
236
|
-
return isHeartbeatAckEvent(lower) || lower.includes("heartbeat poll") || lower.includes("heartbeat wake");
|
|
237
|
-
}
|
|
238
|
-
function isExecCompletionEvent(evt) {
|
|
239
|
-
return normalizeLowercaseStringOrEmpty(evt).includes("exec finished");
|
|
240
|
-
}
|
|
241
|
-
function isEvolutionSignalEvent(evt) {
|
|
242
|
-
return evt.includes("[Evolution Signal]");
|
|
243
|
-
}
|
|
244
|
-
function isInsightEvent(evt) {
|
|
245
|
-
return evt.includes("[Cognitive Insight]");
|
|
246
|
-
}
|
|
247
|
-
function buildInsightEventPrompt(locale = "zh") {
|
|
248
|
-
return pickLocalized(INSIGHT_EVENT_PROMPT, locale);
|
|
249
|
-
}
|
|
250
|
-
function buildEvolutionEventPrompt(opts, locale = "zh") {
|
|
251
|
-
if (!(opts?.deliverToUser ?? true)) return "A skill evolution signal has been received (shown in system messages above). Evaluate the signal and call evaluate_skill_evolution if the pattern is worth saving as a reusable skill. Handle this internally.";
|
|
252
|
-
return pickLocalized(EVOLUTION_EVENT_PROMPT, locale);
|
|
253
|
-
}
|
|
254
|
-
function isCronSystemEvent(evt) {
|
|
255
|
-
if (!evt.trim()) return false;
|
|
256
|
-
return !isHeartbeatNoiseEvent(evt) && !isExecCompletionEvent(evt);
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region src/infra/heartbeat-schedule.ts
|
|
260
|
-
function normalizeModulo(value, divisor) {
|
|
261
|
-
return (value % divisor + divisor) % divisor;
|
|
262
|
-
}
|
|
263
|
-
function resolveHeartbeatPhaseMs(params) {
|
|
264
|
-
const intervalMs = Math.max(1, Math.floor(params.intervalMs));
|
|
265
|
-
return createHash("sha256").update(`${params.schedulerSeed}:${params.agentId}`).digest().readUInt32BE(0) % intervalMs;
|
|
266
|
-
}
|
|
267
|
-
function computeNextHeartbeatPhaseDueMs(params) {
|
|
268
|
-
const intervalMs = Math.max(1, Math.floor(params.intervalMs));
|
|
269
|
-
const nowMs = Math.floor(params.nowMs);
|
|
270
|
-
let deltaMs = normalizeModulo(normalizeModulo(Math.floor(params.phaseMs), intervalMs) - normalizeModulo(nowMs, intervalMs), intervalMs);
|
|
271
|
-
if (deltaMs === 0) deltaMs = intervalMs;
|
|
272
|
-
return nowMs + deltaMs;
|
|
273
|
-
}
|
|
274
|
-
function resolveNextHeartbeatDueMs(params) {
|
|
275
|
-
const intervalMs = Math.max(1, Math.floor(params.intervalMs));
|
|
276
|
-
const phaseMs = normalizeModulo(Math.floor(params.phaseMs), intervalMs);
|
|
277
|
-
const prev = params.prev;
|
|
278
|
-
if (prev && prev.intervalMs === intervalMs && prev.phaseMs === phaseMs && prev.nextDueMs > params.nowMs) return prev.nextDueMs;
|
|
279
|
-
return computeNextHeartbeatPhaseDueMs({
|
|
280
|
-
nowMs: params.nowMs,
|
|
281
|
-
intervalMs,
|
|
282
|
-
phaseMs
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region src/infra/heartbeat-runner.ts
|
|
287
|
-
const log = createSubsystemLogger("gateway/heartbeat");
|
|
288
|
-
const DEFAULT_HEARTBEAT_RUN_TIMEOUT_SECONDS = 600;
|
|
289
|
-
let heartbeatRunnerRuntimePromise = null;
|
|
290
|
-
function loadHeartbeatRunnerRuntime() {
|
|
291
|
-
heartbeatRunnerRuntimePromise ??= import("./heartbeat-runner.runtime-D_5UeAsX.js");
|
|
292
|
-
return heartbeatRunnerRuntimePromise;
|
|
293
|
-
}
|
|
294
|
-
function resolveHeartbeatSchedulerSeed(explicitSeed) {
|
|
295
|
-
const normalized = normalizeOptionalString(explicitSeed);
|
|
296
|
-
if (normalized) return normalized;
|
|
297
|
-
try {
|
|
298
|
-
return loadOrCreateDeviceIdentity().deviceId;
|
|
299
|
-
} catch {
|
|
300
|
-
return createHash("sha256").update(process.env.HOME ?? "").update("\0").update(process.cwd()).digest("hex");
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
function hasExplicitHeartbeatAgents(cfg) {
|
|
304
|
-
return (cfg.agents?.list ?? []).some((entry) => Boolean(entry?.heartbeat));
|
|
305
|
-
}
|
|
306
|
-
function resolveHeartbeatConfig(cfg, agentId) {
|
|
307
|
-
const defaults = cfg.agents?.defaults?.heartbeat;
|
|
308
|
-
if (!agentId) return defaults;
|
|
309
|
-
const overrides = resolveAgentConfig(cfg, agentId)?.heartbeat;
|
|
310
|
-
if (!defaults && !overrides) return overrides;
|
|
311
|
-
return {
|
|
312
|
-
...defaults,
|
|
313
|
-
...overrides
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
function resolveHeartbeatAgents(cfg) {
|
|
317
|
-
const list = cfg.agents?.list ?? [];
|
|
318
|
-
if (hasExplicitHeartbeatAgents(cfg)) return list.filter((entry) => entry?.heartbeat).map((entry) => {
|
|
319
|
-
const id = normalizeAgentId(entry.id);
|
|
320
|
-
return {
|
|
321
|
-
agentId: id,
|
|
322
|
-
heartbeat: resolveHeartbeatConfig(cfg, id)
|
|
323
|
-
};
|
|
324
|
-
}).filter((entry) => entry.agentId);
|
|
325
|
-
const fallbackId = resolveDefaultAgentId(cfg);
|
|
326
|
-
return [{
|
|
327
|
-
agentId: fallbackId,
|
|
328
|
-
heartbeat: resolveHeartbeatConfig(cfg, fallbackId)
|
|
329
|
-
}];
|
|
330
|
-
}
|
|
331
|
-
function resolveHeartbeatPrompt(cfg, heartbeat) {
|
|
332
|
-
return resolveHeartbeatPrompt$1(heartbeat?.prompt ?? cfg.agents?.defaults?.heartbeat?.prompt);
|
|
333
|
-
}
|
|
334
|
-
function resolveHeartbeatAckMaxChars(cfg, heartbeat) {
|
|
335
|
-
return Math.max(0, heartbeat?.ackMaxChars ?? cfg.agents?.defaults?.heartbeat?.ackMaxChars ?? 300);
|
|
336
|
-
}
|
|
337
|
-
function resolveHeartbeatSession(cfg, agentId, heartbeat, forcedSessionKey) {
|
|
338
|
-
const sessionCfg = cfg.session;
|
|
339
|
-
const scope = sessionCfg?.scope ?? "per-sender";
|
|
340
|
-
const resolvedAgentId = normalizeAgentId(agentId ?? resolveDefaultAgentId(cfg));
|
|
341
|
-
const mainSessionKey = scope === "global" ? "global" : resolveAgentMainSessionKey({
|
|
342
|
-
cfg,
|
|
343
|
-
agentId: resolvedAgentId
|
|
344
|
-
});
|
|
345
|
-
const storeAgentId = scope === "global" ? resolveDefaultAgentId(cfg) : resolvedAgentId;
|
|
346
|
-
const storePath = resolveStorePath(sessionCfg?.store, { agentId: storeAgentId });
|
|
347
|
-
const store = loadSessionStore(storePath);
|
|
348
|
-
const mainEntry = store[mainSessionKey];
|
|
349
|
-
if (scope === "global") return {
|
|
350
|
-
sessionKey: mainSessionKey,
|
|
351
|
-
storePath,
|
|
352
|
-
store,
|
|
353
|
-
entry: mainEntry,
|
|
354
|
-
suppressOriginatingContext: false
|
|
355
|
-
};
|
|
356
|
-
const forced = forcedSessionKey?.trim();
|
|
357
|
-
if (forced && isSubagentSessionKey(forced)) return {
|
|
358
|
-
sessionKey: mainSessionKey,
|
|
359
|
-
storePath,
|
|
360
|
-
store,
|
|
361
|
-
entry: mainEntry,
|
|
362
|
-
suppressOriginatingContext: true
|
|
363
|
-
};
|
|
364
|
-
if (forced && !isSubagentSessionKey(forced)) {
|
|
365
|
-
const forcedCandidate = toAgentStoreSessionKey({
|
|
366
|
-
agentId: resolvedAgentId,
|
|
367
|
-
requestKey: forced,
|
|
368
|
-
mainKey: cfg.session?.mainKey
|
|
369
|
-
});
|
|
370
|
-
if (!isSubagentSessionKey(forcedCandidate)) {
|
|
371
|
-
const forcedCanonical = canonicalizeMainSessionAlias({
|
|
372
|
-
cfg,
|
|
373
|
-
agentId: resolvedAgentId,
|
|
374
|
-
sessionKey: forcedCandidate
|
|
375
|
-
});
|
|
376
|
-
if (forcedCanonical !== "global" && !isSubagentSessionKey(forcedCanonical)) {
|
|
377
|
-
if (resolveAgentIdFromSessionKey(forcedCanonical) === normalizeAgentId(resolvedAgentId)) return {
|
|
378
|
-
sessionKey: forcedCanonical,
|
|
379
|
-
storePath,
|
|
380
|
-
store,
|
|
381
|
-
entry: store[forcedCanonical],
|
|
382
|
-
suppressOriginatingContext: false
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
const trimmed = heartbeat?.session?.trim() ?? "";
|
|
388
|
-
if (!trimmed || isSubagentSessionKey(trimmed)) return {
|
|
389
|
-
sessionKey: mainSessionKey,
|
|
390
|
-
storePath,
|
|
391
|
-
store,
|
|
392
|
-
entry: mainEntry,
|
|
393
|
-
suppressOriginatingContext: false
|
|
394
|
-
};
|
|
395
|
-
const normalized = normalizeLowercaseStringOrEmpty(trimmed);
|
|
396
|
-
if (normalized === "main" || normalized === "global") return {
|
|
397
|
-
sessionKey: mainSessionKey,
|
|
398
|
-
storePath,
|
|
399
|
-
store,
|
|
400
|
-
entry: mainEntry,
|
|
401
|
-
suppressOriginatingContext: false
|
|
402
|
-
};
|
|
403
|
-
const candidate = toAgentStoreSessionKey({
|
|
404
|
-
agentId: resolvedAgentId,
|
|
405
|
-
requestKey: trimmed,
|
|
406
|
-
mainKey: cfg.session?.mainKey
|
|
407
|
-
});
|
|
408
|
-
if (isSubagentSessionKey(candidate)) return {
|
|
409
|
-
sessionKey: mainSessionKey,
|
|
410
|
-
storePath,
|
|
411
|
-
store,
|
|
412
|
-
entry: mainEntry,
|
|
413
|
-
suppressOriginatingContext: false
|
|
414
|
-
};
|
|
415
|
-
const canonical = canonicalizeMainSessionAlias({
|
|
416
|
-
cfg,
|
|
417
|
-
agentId: resolvedAgentId,
|
|
418
|
-
sessionKey: candidate
|
|
419
|
-
});
|
|
420
|
-
if (canonical !== "global" && !isSubagentSessionKey(canonical)) {
|
|
421
|
-
if (resolveAgentIdFromSessionKey(canonical) === normalizeAgentId(resolvedAgentId)) return {
|
|
422
|
-
sessionKey: canonical,
|
|
423
|
-
storePath,
|
|
424
|
-
store,
|
|
425
|
-
entry: store[canonical],
|
|
426
|
-
suppressOriginatingContext: false
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
return {
|
|
430
|
-
sessionKey: mainSessionKey,
|
|
431
|
-
storePath,
|
|
432
|
-
store,
|
|
433
|
-
entry: mainEntry,
|
|
434
|
-
suppressOriginatingContext: false
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
function resolveIsolatedHeartbeatSessionKey(params) {
|
|
438
|
-
const storedBaseSessionKey = params.sessionEntry?.heartbeatIsolatedBaseSessionKey?.trim();
|
|
439
|
-
if (storedBaseSessionKey) {
|
|
440
|
-
const suffix = params.sessionKey.slice(storedBaseSessionKey.length);
|
|
441
|
-
if (params.sessionKey.startsWith(storedBaseSessionKey) && suffix.length > 0 && /^(:heartbeat)+$/.test(suffix)) return {
|
|
442
|
-
isolatedSessionKey: `${storedBaseSessionKey}:heartbeat`,
|
|
443
|
-
isolatedBaseSessionKey: storedBaseSessionKey
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
const configuredSuffix = params.sessionKey.slice(params.configuredSessionKey.length);
|
|
447
|
-
if (params.sessionKey.startsWith(params.configuredSessionKey) && /^(:heartbeat)+$/.test(configuredSuffix) && !params.configuredSessionKey.endsWith(":heartbeat")) return {
|
|
448
|
-
isolatedSessionKey: `${params.configuredSessionKey}:heartbeat`,
|
|
449
|
-
isolatedBaseSessionKey: params.configuredSessionKey
|
|
450
|
-
};
|
|
451
|
-
return {
|
|
452
|
-
isolatedSessionKey: `${params.sessionKey}:heartbeat`,
|
|
453
|
-
isolatedBaseSessionKey: params.sessionKey
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
function resolveHeartbeatReasoningPayloads(replyResult) {
|
|
457
|
-
return (Array.isArray(replyResult) ? replyResult : replyResult ? [replyResult] : []).filter((payload) => {
|
|
458
|
-
return (typeof payload.text === "string" ? payload.text : "").trimStart().startsWith("Reasoning:");
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
async function restoreHeartbeatUpdatedAt(params) {
|
|
462
|
-
const { storePath, sessionKey, updatedAt } = params;
|
|
463
|
-
if (typeof updatedAt !== "number") return;
|
|
464
|
-
const entry = loadSessionStore(storePath)[sessionKey];
|
|
465
|
-
if (!entry) return;
|
|
466
|
-
const now = Date.now();
|
|
467
|
-
const currentUpdatedAt = entry.updatedAt ?? 0;
|
|
468
|
-
if (currentUpdatedAt !== updatedAt && now - currentUpdatedAt < 5e3) await updateSessionStore(storePath, (nextStore) => {
|
|
469
|
-
const nextEntry = nextStore[sessionKey];
|
|
470
|
-
if (!nextEntry) return;
|
|
471
|
-
const liveUpdatedAt = nextEntry.updatedAt ?? 0;
|
|
472
|
-
if (Date.now() - liveUpdatedAt < 5e3) nextStore[sessionKey] = {
|
|
473
|
-
...nextEntry,
|
|
474
|
-
updatedAt
|
|
475
|
-
};
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
function stripLeadingHeartbeatResponsePrefix(text, responsePrefix) {
|
|
479
|
-
const normalizedPrefix = responsePrefix?.trim();
|
|
480
|
-
if (!normalizedPrefix) return text;
|
|
481
|
-
const prefixPattern = new RegExp(`^${escapeRegExp(normalizedPrefix)}(?=$|\\s|[\\p{P}\\p{S}])\\s*`, "iu");
|
|
482
|
-
return text.replace(prefixPattern, "");
|
|
483
|
-
}
|
|
484
|
-
function normalizeHeartbeatReply(payload, responsePrefix, ackMaxChars) {
|
|
485
|
-
const rawText = typeof payload.text === "string" ? payload.text : "";
|
|
486
|
-
const stripped = stripHeartbeatToken(stripLeadingHeartbeatResponsePrefix(startsWithSilentToken(rawText) ? stripLeadingSilentToken(rawText) : rawText, responsePrefix), {
|
|
487
|
-
mode: "heartbeat",
|
|
488
|
-
maxAckChars: ackMaxChars
|
|
489
|
-
});
|
|
490
|
-
const hasMedia = resolveSendableOutboundReplyParts(payload).hasMedia;
|
|
491
|
-
if (stripped.shouldSkip && !hasMedia) return {
|
|
492
|
-
shouldSkip: true,
|
|
493
|
-
text: "",
|
|
494
|
-
hasMedia
|
|
495
|
-
};
|
|
496
|
-
let finalText = stripped.text;
|
|
497
|
-
if (responsePrefix && finalText && !finalText.startsWith(responsePrefix)) finalText = `${responsePrefix} ${finalText}`;
|
|
498
|
-
return {
|
|
499
|
-
shouldSkip: false,
|
|
500
|
-
text: finalText,
|
|
501
|
-
hasMedia
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
function resolveHeartbeatReasonFlags(reason) {
|
|
505
|
-
const reasonKind = resolveHeartbeatReasonKind(reason);
|
|
506
|
-
return {
|
|
507
|
-
isExecEventReason: reasonKind === "exec-event",
|
|
508
|
-
isCronEventReason: reasonKind === "cron",
|
|
509
|
-
isWakeReason: reasonKind === "wake" || reasonKind === "hook"
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
async function resolveHeartbeatPreflight(params) {
|
|
513
|
-
const reasonFlags = resolveHeartbeatReasonFlags(params.reason);
|
|
514
|
-
const session = resolveHeartbeatSession(params.cfg, params.agentId, params.heartbeat, params.forcedSessionKey);
|
|
515
|
-
const pendingEventEntries = peekSystemEventEntries(session.sessionKey);
|
|
516
|
-
const turnSourceDeliveryContext = resolveSystemEventDeliveryContext(pendingEventEntries);
|
|
517
|
-
const hasTaggedCronEvents = pendingEventEntries.some((event) => event.contextKey?.startsWith("cron:"));
|
|
518
|
-
const shouldInspectWakePendingEvents = (() => {
|
|
519
|
-
if (!reasonFlags.isWakeReason) return false;
|
|
520
|
-
if (params.heartbeat?.isolatedSession === false) return true;
|
|
521
|
-
const configuredSession = resolveHeartbeatSession(params.cfg, params.agentId, params.heartbeat);
|
|
522
|
-
const { isolatedSessionKey } = resolveIsolatedHeartbeatSessionKey({
|
|
523
|
-
sessionKey: session.sessionKey,
|
|
524
|
-
configuredSessionKey: configuredSession.sessionKey,
|
|
525
|
-
sessionEntry: session.entry
|
|
526
|
-
});
|
|
527
|
-
return isolatedSessionKey === session.sessionKey;
|
|
528
|
-
})();
|
|
529
|
-
const shouldInspectPendingEvents = reasonFlags.isExecEventReason || reasonFlags.isCronEventReason || shouldInspectWakePendingEvents || hasTaggedCronEvents || pendingEventEntries.some((e) => isEvolutionSignalEvent(e.text)) || pendingEventEntries.some((e) => isInsightEvent(e.text));
|
|
530
|
-
const shouldBypassFileGates = reasonFlags.isExecEventReason || reasonFlags.isCronEventReason || reasonFlags.isWakeReason || hasTaggedCronEvents;
|
|
531
|
-
const basePreflight = {
|
|
532
|
-
...reasonFlags,
|
|
533
|
-
session,
|
|
534
|
-
pendingEventEntries,
|
|
535
|
-
turnSourceDeliveryContext,
|
|
536
|
-
hasTaggedCronEvents,
|
|
537
|
-
shouldInspectPendingEvents
|
|
538
|
-
};
|
|
539
|
-
if (shouldBypassFileGates) return basePreflight;
|
|
540
|
-
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, params.agentId);
|
|
541
|
-
const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
|
|
542
|
-
let heartbeatFileContent;
|
|
543
|
-
try {
|
|
544
|
-
heartbeatFileContent = await fs.readFile(heartbeatFilePath, "utf-8");
|
|
545
|
-
const tasks = parseHeartbeatTasks(heartbeatFileContent);
|
|
546
|
-
if (isHeartbeatContentEffectivelyEmpty(heartbeatFileContent) && tasks.length === 0) return {
|
|
547
|
-
...basePreflight,
|
|
548
|
-
skipReason: "empty-heartbeat-file",
|
|
549
|
-
tasks: [],
|
|
550
|
-
heartbeatFileContent
|
|
551
|
-
};
|
|
552
|
-
return {
|
|
553
|
-
...basePreflight,
|
|
554
|
-
tasks,
|
|
555
|
-
heartbeatFileContent
|
|
556
|
-
};
|
|
557
|
-
} catch (err) {
|
|
558
|
-
if (hasErrnoCode(err, "ENOENT")) return basePreflight;
|
|
559
|
-
}
|
|
560
|
-
return basePreflight;
|
|
561
|
-
}
|
|
562
|
-
function appendHeartbeatWorkspacePathHint(prompt, workspaceDir) {
|
|
563
|
-
if (!/heartbeat\.md/i.test(prompt)) return prompt;
|
|
564
|
-
const hint = `When reading HEARTBEAT.md, use workspace file ${path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME).replace(/\\/g, "/")} (exact case). Do not read docs/heartbeat.md.`;
|
|
565
|
-
if (prompt.includes(hint)) return prompt;
|
|
566
|
-
return `${prompt}\n${hint}`;
|
|
567
|
-
}
|
|
568
|
-
function resolveHeartbeatRunPrompt(params) {
|
|
569
|
-
const pendingEventEntries = params.preflight.pendingEventEntries;
|
|
570
|
-
const pendingEvents = params.preflight.shouldInspectPendingEvents ? pendingEventEntries.map((event) => event.text) : [];
|
|
571
|
-
const cronEvents = pendingEventEntries.filter((event) => (params.preflight.isCronEventReason || event.contextKey?.startsWith("cron:")) && isCronSystemEvent(event.text)).map((event) => event.text);
|
|
572
|
-
const hasExecCompletion = pendingEvents.some(isExecCompletionEvent);
|
|
573
|
-
const hasCronEvents = cronEvents.length > 0;
|
|
574
|
-
const hasEvolutionSignal = pendingEvents.some(isEvolutionSignalEvent);
|
|
575
|
-
const hasInsightEvent = pendingEvents.some(isInsightEvent);
|
|
576
|
-
if (params.preflight.tasks && params.preflight.tasks.length > 0) {
|
|
577
|
-
const dueTasks = params.preflight.tasks.filter((task) => isTaskDue((params.preflight.session.entry?.heartbeatTaskState)?.[task.name], task.interval, params.startedAt));
|
|
578
|
-
if (dueTasks.length > 0) {
|
|
579
|
-
let prompt = `Run the following periodic tasks (only those due based on their intervals):
|
|
580
|
-
|
|
581
|
-
${dueTasks.map((task) => `- ${task.name}: ${task.prompt}`).join("\n")}
|
|
582
|
-
|
|
583
|
-
After completing all due tasks, reply HEARTBEAT_OK.`;
|
|
584
|
-
if (params.heartbeatFileContent) {
|
|
585
|
-
const directives = params.heartbeatFileContent.replace(/^[\s\S]*?^tasks:[\s\S]*?(?=^[^\s]|^$)/m, "").trim();
|
|
586
|
-
if (directives) prompt += `\n\nAdditional context from HEARTBEAT.md:\n${directives}`;
|
|
587
|
-
}
|
|
588
|
-
return {
|
|
589
|
-
prompt,
|
|
590
|
-
hasExecCompletion: false,
|
|
591
|
-
hasCronEvents: false,
|
|
592
|
-
hasEvolutionSignal: false,
|
|
593
|
-
hasInsightEvent: false
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
return {
|
|
597
|
-
prompt: null,
|
|
598
|
-
hasExecCompletion: false,
|
|
599
|
-
hasCronEvents: false,
|
|
600
|
-
hasEvolutionSignal: false,
|
|
601
|
-
hasInsightEvent: false
|
|
602
|
-
};
|
|
603
|
-
}
|
|
604
|
-
return {
|
|
605
|
-
prompt: appendHeartbeatWorkspacePathHint(hasEvolutionSignal ? buildEvolutionEventPrompt({ deliverToUser: params.canRelayToUser }) : hasInsightEvent ? buildInsightEventPrompt() : hasExecCompletion ? buildExecEventPrompt({ deliverToUser: params.canRelayToUser }) : hasCronEvents ? buildCronEventPrompt(cronEvents, { deliverToUser: params.canRelayToUser }) : resolveHeartbeatPrompt(params.cfg, params.heartbeat), params.workspaceDir),
|
|
606
|
-
hasExecCompletion,
|
|
607
|
-
hasCronEvents,
|
|
608
|
-
hasEvolutionSignal,
|
|
609
|
-
hasInsightEvent
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
async function runHeartbeatOnce(opts) {
|
|
613
|
-
const cfg = opts.cfg ?? loadConfig();
|
|
614
|
-
const explicitAgentId = typeof opts.agentId === "string" ? opts.agentId.trim() : "";
|
|
615
|
-
const forcedSessionAgentId = explicitAgentId.length > 0 ? void 0 : parseAgentSessionKey(opts.sessionKey)?.agentId;
|
|
616
|
-
const agentId = normalizeAgentId(explicitAgentId || forcedSessionAgentId || resolveDefaultAgentId(cfg));
|
|
617
|
-
const heartbeat = opts.heartbeat ?? resolveHeartbeatConfig(cfg, agentId);
|
|
618
|
-
const isCognitiveDelivery = opts.reason === "cognitive-insight" || opts.reason === "cognitive-evolution";
|
|
619
|
-
if (!areHeartbeatsEnabled()) return {
|
|
620
|
-
status: "skipped",
|
|
621
|
-
reason: "disabled"
|
|
622
|
-
};
|
|
623
|
-
if (!isCognitiveDelivery && !isHeartbeatEnabledForAgent(cfg, agentId)) return {
|
|
624
|
-
status: "skipped",
|
|
625
|
-
reason: "disabled"
|
|
626
|
-
};
|
|
627
|
-
if (!isCognitiveDelivery && !resolveHeartbeatIntervalMs(cfg, void 0, heartbeat)) return {
|
|
628
|
-
status: "skipped",
|
|
629
|
-
reason: "disabled"
|
|
630
|
-
};
|
|
631
|
-
const startedAt = opts.deps?.nowMs?.() ?? Date.now();
|
|
632
|
-
if (!isWithinActiveHours(cfg, heartbeat, startedAt)) return {
|
|
633
|
-
status: "skipped",
|
|
634
|
-
reason: "quiet-hours"
|
|
635
|
-
};
|
|
636
|
-
if ((opts.deps?.getQueueSize ?? getQueueSize)(CommandLane.Main) > 0) return {
|
|
637
|
-
status: "skipped",
|
|
638
|
-
reason: "requests-in-flight"
|
|
639
|
-
};
|
|
640
|
-
const preflight = await resolveHeartbeatPreflight({
|
|
641
|
-
cfg,
|
|
642
|
-
agentId,
|
|
643
|
-
heartbeat,
|
|
644
|
-
forcedSessionKey: opts.sessionKey,
|
|
645
|
-
reason: opts.reason
|
|
646
|
-
});
|
|
647
|
-
if (preflight.skipReason) {
|
|
648
|
-
emitHeartbeatEvent({
|
|
649
|
-
status: "skipped",
|
|
650
|
-
reason: preflight.skipReason,
|
|
651
|
-
durationMs: Date.now() - startedAt
|
|
652
|
-
});
|
|
653
|
-
return {
|
|
654
|
-
status: "skipped",
|
|
655
|
-
reason: preflight.skipReason
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
const { entry, sessionKey, storePath, suppressOriginatingContext } = preflight.session;
|
|
659
|
-
const sessionLaneKey = resolveEmbeddedSessionLane(sessionKey);
|
|
660
|
-
if ((opts.deps?.getQueueSize ?? getQueueSize)(sessionLaneKey) > 0) {
|
|
661
|
-
emitHeartbeatEvent({
|
|
662
|
-
status: "skipped",
|
|
663
|
-
reason: "requests-in-flight",
|
|
664
|
-
durationMs: Date.now() - startedAt
|
|
665
|
-
});
|
|
666
|
-
return {
|
|
667
|
-
status: "skipped",
|
|
668
|
-
reason: "requests-in-flight"
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
const previousUpdatedAt = entry?.updatedAt;
|
|
672
|
-
const isolatedExplicit = heartbeat?.isolatedSession;
|
|
673
|
-
const useIsolatedSession = (isolatedExplicit === true || isolatedExplicit == null && !preflight.isWakeReason) && opts.reason !== "cognitive-evolution" && opts.reason !== "cognitive-insight";
|
|
674
|
-
const delivery = resolveHeartbeatDeliveryTarget({
|
|
675
|
-
cfg,
|
|
676
|
-
entry,
|
|
677
|
-
heartbeat,
|
|
678
|
-
turnSource: useIsolatedSession ? void 0 : preflight.turnSourceDeliveryContext
|
|
679
|
-
});
|
|
680
|
-
const heartbeatAccountId = heartbeat?.accountId?.trim();
|
|
681
|
-
if (delivery.reason === "unknown-account") log.warn("heartbeat: unknown accountId", {
|
|
682
|
-
accountId: delivery.accountId ?? heartbeatAccountId ?? null,
|
|
683
|
-
target: heartbeat?.target ?? "none"
|
|
684
|
-
});
|
|
685
|
-
else if (heartbeatAccountId) log.info("heartbeat: using explicit accountId", {
|
|
686
|
-
accountId: delivery.accountId ?? heartbeatAccountId,
|
|
687
|
-
target: heartbeat?.target ?? "none",
|
|
688
|
-
channel: delivery.channel
|
|
689
|
-
});
|
|
690
|
-
const visibility = delivery.channel !== "none" ? resolveHeartbeatVisibility({
|
|
691
|
-
cfg,
|
|
692
|
-
channel: delivery.channel,
|
|
693
|
-
accountId: delivery.accountId
|
|
694
|
-
}) : {
|
|
695
|
-
showOk: false,
|
|
696
|
-
showAlerts: true,
|
|
697
|
-
useIndicator: true
|
|
698
|
-
};
|
|
699
|
-
const { sender } = resolveHeartbeatSenderContext({
|
|
700
|
-
cfg,
|
|
701
|
-
entry,
|
|
702
|
-
delivery
|
|
703
|
-
});
|
|
704
|
-
const responsePrefix = resolveEffectiveMessagesConfig(cfg, agentId, {
|
|
705
|
-
channel: delivery.channel !== "none" ? delivery.channel : void 0,
|
|
706
|
-
accountId: delivery.accountId
|
|
707
|
-
}).responsePrefix;
|
|
708
|
-
const { prompt, hasExecCompletion, hasCronEvents, hasEvolutionSignal, hasInsightEvent } = resolveHeartbeatRunPrompt({
|
|
709
|
-
cfg,
|
|
710
|
-
heartbeat,
|
|
711
|
-
preflight,
|
|
712
|
-
canRelayToUser: Boolean(delivery.channel !== "none" && delivery.to && visibility.showAlerts),
|
|
713
|
-
workspaceDir: resolveAgentWorkspaceDir(cfg, agentId),
|
|
714
|
-
startedAt,
|
|
715
|
-
heartbeatFileContent: preflight.heartbeatFileContent
|
|
716
|
-
});
|
|
717
|
-
const insightIdForOutcome = hasInsightEvent ? preflight.pendingEventEntries.map((event) => event.contextKey ?? "").find((key) => key.startsWith("insight:"))?.slice(8) ?? null : null;
|
|
718
|
-
const insightOutcomeDep = opts.deps?.onInsightDeliveryOutcome;
|
|
719
|
-
const reportInsightOutcome = async (delivered) => {
|
|
720
|
-
if (!insightIdForOutcome || !insightOutcomeDep) return;
|
|
721
|
-
try {
|
|
722
|
-
await insightOutcomeDep({
|
|
723
|
-
agentId,
|
|
724
|
-
sessionKey,
|
|
725
|
-
insightId: insightIdForOutcome,
|
|
726
|
-
delivered
|
|
727
|
-
});
|
|
728
|
-
} catch (err) {
|
|
729
|
-
log.error("insight delivery outcome handler failed", { error: formatErrorMessage(err) });
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const isInsightAlreadyDelivered = async (insightId) => {
|
|
733
|
-
if (!insightId) return false;
|
|
734
|
-
try {
|
|
735
|
-
const { resolveConfigDir } = await import("./utils-Bgql-lJ9.js");
|
|
736
|
-
const { InsightStore } = await import("./store-xR8gNpX6.js");
|
|
737
|
-
const { resolveCognitiveUserId } = await import("./identity-T5awrFpu.js");
|
|
738
|
-
const uid = resolveCognitiveUserId(sessionKey);
|
|
739
|
-
if (!uid) return false;
|
|
740
|
-
const rec = await new InsightStore(resolveConfigDir()).load(agentId, uid, insightId);
|
|
741
|
-
return Boolean(rec?.deliveryMessageId);
|
|
742
|
-
} catch {
|
|
743
|
-
return false;
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
|
-
if (prompt === null) {
|
|
747
|
-
if (!preflight.isWakeReason && preflight.shouldInspectPendingEvents && preflight.pendingEventEntries.length > 0) consumeSystemEventEntries(sessionKey, preflight.pendingEventEntries);
|
|
748
|
-
return {
|
|
749
|
-
status: "skipped",
|
|
750
|
-
reason: "no-tasks-due"
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
let runSessionKey = sessionKey;
|
|
754
|
-
if (useIsolatedSession) {
|
|
755
|
-
const { isolatedSessionKey, isolatedBaseSessionKey } = resolveIsolatedHeartbeatSessionKey({
|
|
756
|
-
sessionKey,
|
|
757
|
-
configuredSessionKey: resolveHeartbeatSession(cfg, agentId, heartbeat).sessionKey,
|
|
758
|
-
sessionEntry: entry
|
|
759
|
-
});
|
|
760
|
-
const cronSession = resolveCronSession({
|
|
761
|
-
cfg,
|
|
762
|
-
sessionKey: isolatedSessionKey,
|
|
763
|
-
agentId,
|
|
764
|
-
nowMs: startedAt,
|
|
765
|
-
forceNew: false
|
|
766
|
-
});
|
|
767
|
-
cronSession.sessionEntry.heartbeatIsolatedBaseSessionKey = isolatedBaseSessionKey;
|
|
768
|
-
cronSession.sessionEntry.transient = true;
|
|
769
|
-
cronSession.store[isolatedSessionKey] = cronSession.sessionEntry;
|
|
770
|
-
await saveSessionStore(cronSession.storePath, cronSession.store);
|
|
771
|
-
runSessionKey = isolatedSessionKey;
|
|
772
|
-
}
|
|
773
|
-
if (runSessionKey !== sessionKey && preflight.pendingEventEntries.length > 0) {
|
|
774
|
-
const { enqueueSystemEvent: reEnqueue } = await import("./system-events-CSlYGyPX.js");
|
|
775
|
-
for (const event of preflight.pendingEventEntries) reEnqueue(event.text, {
|
|
776
|
-
sessionKey: runSessionKey,
|
|
777
|
-
contextKey: event.contextKey,
|
|
778
|
-
deliveryContext: event.deliveryContext,
|
|
779
|
-
trusted: event.trusted
|
|
780
|
-
});
|
|
781
|
-
const { consumeSystemEventEntries } = await import("./system-events-CSlYGyPX.js");
|
|
782
|
-
consumeSystemEventEntries(sessionKey, preflight.pendingEventEntries);
|
|
783
|
-
}
|
|
784
|
-
const activeSessionPendingEventEntries = runSessionKey === sessionKey ? preflight.pendingEventEntries : peekSystemEventEntries(runSessionKey);
|
|
785
|
-
const hasUntrustedInspectedEvents = preflight.shouldInspectPendingEvents && preflight.pendingEventEntries.some((event) => event.trusted === false);
|
|
786
|
-
const hasUntrustedActiveSessionEvents = activeSessionPendingEventEntries.some((event) => event.trusted === false);
|
|
787
|
-
const hasUntrustedPendingEvents = hasUntrustedInspectedEvents || hasUntrustedActiveSessionEvents;
|
|
788
|
-
const updateTaskTimestamps = async () => {
|
|
789
|
-
if (!preflight.tasks || preflight.tasks.length === 0) return;
|
|
790
|
-
const store = loadSessionStore(storePath);
|
|
791
|
-
const base = store[sessionKey] ?? {
|
|
792
|
-
sessionId: sessionKey.replace(/:/g, "_"),
|
|
793
|
-
updatedAt: startedAt,
|
|
794
|
-
createdAt: startedAt,
|
|
795
|
-
messageCount: 0,
|
|
796
|
-
lastMessageAt: startedAt,
|
|
797
|
-
heartbeatTaskState: {}
|
|
798
|
-
};
|
|
799
|
-
const taskState = { ...base.heartbeatTaskState };
|
|
800
|
-
for (const task of preflight.tasks) if (isTaskDue(taskState[task.name], task.interval, startedAt)) taskState[task.name] = startedAt;
|
|
801
|
-
store[sessionKey] = {
|
|
802
|
-
...base,
|
|
803
|
-
heartbeatTaskState: taskState
|
|
804
|
-
};
|
|
805
|
-
await saveSessionStore(storePath, store);
|
|
806
|
-
};
|
|
807
|
-
const consumeInspectedSystemEvents = () => {
|
|
808
|
-
if (!preflight.shouldInspectPendingEvents || preflight.pendingEventEntries.length === 0) return;
|
|
809
|
-
consumeSystemEventEntries(sessionKey, preflight.pendingEventEntries);
|
|
810
|
-
};
|
|
811
|
-
const ctx = {
|
|
812
|
-
Body: appendCronStyleCurrentTimeLine(prompt, cfg, startedAt),
|
|
813
|
-
From: sender,
|
|
814
|
-
To: sender,
|
|
815
|
-
OriginatingChannel: !suppressOriginatingContext && delivery.channel !== "none" ? delivery.channel : void 0,
|
|
816
|
-
OriginatingTo: !suppressOriginatingContext ? delivery.to : void 0,
|
|
817
|
-
AccountId: delivery.accountId,
|
|
818
|
-
MessageThreadId: delivery.threadId,
|
|
819
|
-
Provider: hasEvolutionSignal ? "evolution-event" : hasInsightEvent ? "insight-event" : hasExecCompletion ? "exec-event" : hasCronEvents ? "cron-event" : "heartbeat",
|
|
820
|
-
SessionKey: runSessionKey,
|
|
821
|
-
ForceSenderIsOwnerFalse: hasExecCompletion || hasUntrustedPendingEvents || hasEvolutionSignal || hasInsightEvent
|
|
822
|
-
};
|
|
823
|
-
if (!visibility.showAlerts && !visibility.showOk && !visibility.useIndicator) {
|
|
824
|
-
emitHeartbeatEvent({
|
|
825
|
-
status: "skipped",
|
|
826
|
-
reason: "alerts-disabled",
|
|
827
|
-
durationMs: Date.now() - startedAt,
|
|
828
|
-
channel: delivery.channel !== "none" ? delivery.channel : void 0,
|
|
829
|
-
accountId: delivery.accountId
|
|
830
|
-
});
|
|
831
|
-
return {
|
|
832
|
-
status: "skipped",
|
|
833
|
-
reason: "alerts-disabled"
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
const heartbeatOkText = responsePrefix ? `${responsePrefix} ${HEARTBEAT_TOKEN}` : HEARTBEAT_TOKEN;
|
|
837
|
-
const outboundSession = buildOutboundSessionContext({
|
|
838
|
-
cfg,
|
|
839
|
-
agentId,
|
|
840
|
-
sessionKey
|
|
841
|
-
});
|
|
842
|
-
const canAttemptHeartbeatOk = Boolean(visibility.showOk && delivery.channel !== "none" && delivery.to);
|
|
843
|
-
const maybeSendHeartbeatOk = async () => {
|
|
844
|
-
if (!canAttemptHeartbeatOk || delivery.channel === "none" || !delivery.to) return false;
|
|
845
|
-
const heartbeatPlugin = getChannelPlugin(delivery.channel);
|
|
846
|
-
if (heartbeatPlugin?.heartbeat?.checkReady) {
|
|
847
|
-
if (!(await heartbeatPlugin.heartbeat.checkReady({
|
|
848
|
-
cfg,
|
|
849
|
-
accountId: delivery.accountId,
|
|
850
|
-
deps: opts.deps
|
|
851
|
-
})).ok) return false;
|
|
852
|
-
}
|
|
853
|
-
await deliverOutboundPayloads({
|
|
854
|
-
cfg,
|
|
855
|
-
channel: delivery.channel,
|
|
856
|
-
to: delivery.to,
|
|
857
|
-
accountId: delivery.accountId,
|
|
858
|
-
threadId: delivery.threadId,
|
|
859
|
-
payloads: [{ text: heartbeatOkText }],
|
|
860
|
-
session: outboundSession,
|
|
861
|
-
deps: opts.deps,
|
|
862
|
-
mirror: {
|
|
863
|
-
sessionKey,
|
|
864
|
-
agentId,
|
|
865
|
-
text: heartbeatOkText
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
return true;
|
|
869
|
-
};
|
|
870
|
-
try {
|
|
871
|
-
const heartbeatModelOverride = normalizeOptionalString(heartbeat?.model);
|
|
872
|
-
const suppressToolErrorWarnings = heartbeat?.suppressToolErrorWarnings === true;
|
|
873
|
-
const timeoutOverrideSeconds = typeof heartbeat?.timeoutSeconds === "number" ? heartbeat.timeoutSeconds : DEFAULT_HEARTBEAT_RUN_TIMEOUT_SECONDS;
|
|
874
|
-
const bootstrapContextMode = heartbeat?.lightContext === true ? "lightweight" : void 0;
|
|
875
|
-
const replyOpts = {
|
|
876
|
-
isHeartbeat: true,
|
|
877
|
-
...heartbeatModelOverride ? { heartbeatModelOverride } : {},
|
|
878
|
-
suppressToolErrorWarnings,
|
|
879
|
-
timeoutOverrideSeconds,
|
|
880
|
-
bootstrapContextMode
|
|
881
|
-
};
|
|
882
|
-
const replyResult = await (opts.deps?.getReplyFromConfig ?? (await loadHeartbeatRunnerRuntime()).getReplyFromConfig)(ctx, replyOpts, cfg);
|
|
883
|
-
const replyPayload = resolveHeartbeatReplyPayload(replyResult);
|
|
884
|
-
const reasoningPayloads = heartbeat?.includeReasoning === true ? resolveHeartbeatReasoningPayloads(replyResult).filter((payload) => payload !== replyPayload) : [];
|
|
885
|
-
if (!replyPayload || !hasOutboundReplyContent(replyPayload)) {
|
|
886
|
-
await restoreHeartbeatUpdatedAt({
|
|
887
|
-
storePath,
|
|
888
|
-
sessionKey,
|
|
889
|
-
updatedAt: previousUpdatedAt
|
|
890
|
-
});
|
|
891
|
-
const okSent = await maybeSendHeartbeatOk();
|
|
892
|
-
emitHeartbeatEvent({
|
|
893
|
-
status: "ok-empty",
|
|
894
|
-
reason: opts.reason,
|
|
895
|
-
durationMs: Date.now() - startedAt,
|
|
896
|
-
channel: delivery.channel !== "none" ? delivery.channel : void 0,
|
|
897
|
-
accountId: delivery.accountId,
|
|
898
|
-
silent: !okSent,
|
|
899
|
-
indicatorType: visibility.useIndicator ? resolveIndicatorType("ok-empty") : void 0
|
|
900
|
-
});
|
|
901
|
-
await updateTaskTimestamps();
|
|
902
|
-
consumeInspectedSystemEvents();
|
|
903
|
-
await reportInsightOutcome(hasInsightEvent ? await isInsightAlreadyDelivered(insightIdForOutcome) : false);
|
|
904
|
-
return {
|
|
905
|
-
status: "ran",
|
|
906
|
-
durationMs: Date.now() - startedAt
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
const normalized = normalizeHeartbeatReply(replyPayload, responsePrefix, resolveHeartbeatAckMaxChars(cfg, heartbeat));
|
|
910
|
-
const eventFallbackText = (hasExecCompletion || hasEvolutionSignal || hasInsightEvent) && !normalized.text.trim() && replyPayload.text?.trim() ? replyPayload.text.trim() : null;
|
|
911
|
-
if (eventFallbackText) {
|
|
912
|
-
normalized.text = eventFallbackText;
|
|
913
|
-
normalized.shouldSkip = false;
|
|
914
|
-
}
|
|
915
|
-
let degenerateBlocked = null;
|
|
916
|
-
const relaySourceText = normalized.text.trim();
|
|
917
|
-
if (relaySourceText && !normalized.shouldSkip) {
|
|
918
|
-
const verdict = isDegenerateReplyText(relaySourceText);
|
|
919
|
-
if (verdict.degenerate) {
|
|
920
|
-
const insightEventText = preflight.pendingEventEntries.find((event) => String(event.contextKey ?? "").startsWith("insight:"))?.text;
|
|
921
|
-
normalized.text = buildDegenerateReplyFallback(insightEventText);
|
|
922
|
-
normalized.shouldSkip = false;
|
|
923
|
-
degenerateBlocked = {
|
|
924
|
-
reason: verdict.reason,
|
|
925
|
-
replyChars: relaySourceText.length
|
|
926
|
-
};
|
|
927
|
-
log.warn("heartbeat reply blocked by degeneration guard; delivering fallback", {
|
|
928
|
-
reason: verdict.reason,
|
|
929
|
-
replyChars: relaySourceText.length,
|
|
930
|
-
shingleRatio: verdict.shingleRatio,
|
|
931
|
-
hasInsightFallback: Boolean(insightEventText)
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
const shouldSkipMain = normalized.shouldSkip && !normalized.hasMedia && !hasExecCompletion && !hasEvolutionSignal;
|
|
936
|
-
if (shouldSkipMain && reasoningPayloads.length === 0) {
|
|
937
|
-
await restoreHeartbeatUpdatedAt({
|
|
938
|
-
storePath,
|
|
939
|
-
sessionKey,
|
|
940
|
-
updatedAt: previousUpdatedAt
|
|
941
|
-
});
|
|
942
|
-
const okSent = await maybeSendHeartbeatOk();
|
|
943
|
-
emitHeartbeatEvent({
|
|
944
|
-
status: "ok-token",
|
|
945
|
-
reason: opts.reason,
|
|
946
|
-
durationMs: Date.now() - startedAt,
|
|
947
|
-
channel: delivery.channel !== "none" ? delivery.channel : void 0,
|
|
948
|
-
accountId: delivery.accountId,
|
|
949
|
-
silent: !okSent,
|
|
950
|
-
indicatorType: visibility.useIndicator ? resolveIndicatorType("ok-token") : void 0
|
|
951
|
-
});
|
|
952
|
-
await updateTaskTimestamps();
|
|
953
|
-
consumeInspectedSystemEvents();
|
|
954
|
-
return {
|
|
955
|
-
status: "ran",
|
|
956
|
-
durationMs: Date.now() - startedAt
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
const mediaUrls = resolveSendableOutboundReplyParts(replyPayload).mediaUrls;
|
|
960
|
-
const prevHeartbeatText = typeof entry?.lastHeartbeatText === "string" ? entry.lastHeartbeatText : "";
|
|
961
|
-
const prevHeartbeatAt = typeof entry?.lastHeartbeatSentAt === "number" ? entry.lastHeartbeatSentAt : void 0;
|
|
962
|
-
if (!shouldSkipMain && !mediaUrls.length && Boolean(prevHeartbeatText.trim()) && normalized.text.trim() === prevHeartbeatText.trim() && typeof prevHeartbeatAt === "number" && startedAt - prevHeartbeatAt < 1440 * 60 * 1e3) {
|
|
963
|
-
await restoreHeartbeatUpdatedAt({
|
|
964
|
-
storePath,
|
|
965
|
-
sessionKey,
|
|
966
|
-
updatedAt: previousUpdatedAt
|
|
967
|
-
});
|
|
968
|
-
emitHeartbeatEvent({
|
|
969
|
-
status: "skipped",
|
|
970
|
-
reason: "duplicate",
|
|
971
|
-
preview: normalized.text.slice(0, 200),
|
|
972
|
-
durationMs: Date.now() - startedAt,
|
|
973
|
-
hasMedia: false,
|
|
974
|
-
channel: delivery.channel !== "none" ? delivery.channel : void 0,
|
|
975
|
-
accountId: delivery.accountId
|
|
976
|
-
});
|
|
977
|
-
await updateTaskTimestamps();
|
|
978
|
-
consumeInspectedSystemEvents();
|
|
979
|
-
await reportInsightOutcome(hasInsightEvent ? await isInsightAlreadyDelivered(insightIdForOutcome) : false);
|
|
980
|
-
return {
|
|
981
|
-
status: "ran",
|
|
982
|
-
durationMs: Date.now() - startedAt
|
|
983
|
-
};
|
|
984
|
-
}
|
|
985
|
-
const previewText = shouldSkipMain ? reasoningPayloads.map((payload) => payload.text).filter((text) => Boolean(text?.trim())).join("\n") : normalized.text;
|
|
986
|
-
if (delivery.channel === "none" || !delivery.to) {
|
|
987
|
-
emitHeartbeatEvent({
|
|
988
|
-
status: "skipped",
|
|
989
|
-
reason: delivery.reason ?? "no-target",
|
|
990
|
-
preview: previewText?.slice(0, 200),
|
|
991
|
-
durationMs: Date.now() - startedAt,
|
|
992
|
-
hasMedia: mediaUrls.length > 0,
|
|
993
|
-
accountId: delivery.accountId
|
|
994
|
-
});
|
|
995
|
-
await updateTaskTimestamps();
|
|
996
|
-
consumeInspectedSystemEvents();
|
|
997
|
-
await reportInsightOutcome(hasInsightEvent ? await isInsightAlreadyDelivered(insightIdForOutcome) : false);
|
|
998
|
-
return {
|
|
999
|
-
status: "ran",
|
|
1000
|
-
durationMs: Date.now() - startedAt
|
|
1001
|
-
};
|
|
1002
|
-
}
|
|
1003
|
-
if (!visibility.showAlerts) {
|
|
1004
|
-
await updateTaskTimestamps();
|
|
1005
|
-
await restoreHeartbeatUpdatedAt({
|
|
1006
|
-
storePath,
|
|
1007
|
-
sessionKey,
|
|
1008
|
-
updatedAt: previousUpdatedAt
|
|
1009
|
-
});
|
|
1010
|
-
emitHeartbeatEvent({
|
|
1011
|
-
status: "skipped",
|
|
1012
|
-
reason: "alerts-disabled",
|
|
1013
|
-
preview: previewText?.slice(0, 200),
|
|
1014
|
-
durationMs: Date.now() - startedAt,
|
|
1015
|
-
channel: delivery.channel,
|
|
1016
|
-
hasMedia: mediaUrls.length > 0,
|
|
1017
|
-
accountId: delivery.accountId,
|
|
1018
|
-
indicatorType: visibility.useIndicator ? resolveIndicatorType("sent") : void 0
|
|
1019
|
-
});
|
|
1020
|
-
consumeInspectedSystemEvents();
|
|
1021
|
-
await reportInsightOutcome(hasInsightEvent ? await isInsightAlreadyDelivered(insightIdForOutcome) : false);
|
|
1022
|
-
return {
|
|
1023
|
-
status: "ran",
|
|
1024
|
-
durationMs: Date.now() - startedAt
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
const deliveryAccountId = delivery.accountId;
|
|
1028
|
-
const heartbeatPlugin = getChannelPlugin(delivery.channel);
|
|
1029
|
-
if (heartbeatPlugin?.heartbeat?.checkReady) {
|
|
1030
|
-
const readiness = await heartbeatPlugin.heartbeat.checkReady({
|
|
1031
|
-
cfg,
|
|
1032
|
-
accountId: deliveryAccountId,
|
|
1033
|
-
deps: opts.deps
|
|
1034
|
-
});
|
|
1035
|
-
if (!readiness.ok) {
|
|
1036
|
-
emitHeartbeatEvent({
|
|
1037
|
-
status: "skipped",
|
|
1038
|
-
reason: readiness.reason,
|
|
1039
|
-
preview: previewText?.slice(0, 200),
|
|
1040
|
-
durationMs: Date.now() - startedAt,
|
|
1041
|
-
hasMedia: mediaUrls.length > 0,
|
|
1042
|
-
channel: delivery.channel,
|
|
1043
|
-
accountId: delivery.accountId
|
|
1044
|
-
});
|
|
1045
|
-
log.info("heartbeat: channel not ready", {
|
|
1046
|
-
channel: delivery.channel,
|
|
1047
|
-
reason: readiness.reason
|
|
1048
|
-
});
|
|
1049
|
-
return {
|
|
1050
|
-
status: "skipped",
|
|
1051
|
-
reason: readiness.reason
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
const deliveryResults = await deliverOutboundPayloads({
|
|
1056
|
-
cfg,
|
|
1057
|
-
channel: delivery.channel,
|
|
1058
|
-
to: delivery.to,
|
|
1059
|
-
accountId: deliveryAccountId,
|
|
1060
|
-
session: outboundSession,
|
|
1061
|
-
threadId: delivery.threadId,
|
|
1062
|
-
payloads: [...reasoningPayloads, ...shouldSkipMain ? [] : [{
|
|
1063
|
-
text: normalized.text,
|
|
1064
|
-
mediaUrls
|
|
1065
|
-
}]],
|
|
1066
|
-
deps: opts.deps,
|
|
1067
|
-
mirror: {
|
|
1068
|
-
sessionKey,
|
|
1069
|
-
agentId,
|
|
1070
|
-
text: normalized.text,
|
|
1071
|
-
mediaUrls: mediaUrls.length > 0 ? mediaUrls : void 0
|
|
1072
|
-
}
|
|
1073
|
-
});
|
|
1074
|
-
if (hasInsightEvent && deliveryResults.length > 0) {
|
|
1075
|
-
const msgId = deliveryResults[0]?.messageId;
|
|
1076
|
-
if (msgId) try {
|
|
1077
|
-
const { resolveConfigDir } = await import("./utils-Bgql-lJ9.js");
|
|
1078
|
-
const { InsightStore } = await import("./store-xR8gNpX6.js");
|
|
1079
|
-
const { resolveCognitiveUserId } = await import("./identity-T5awrFpu.js");
|
|
1080
|
-
const insightUserId = resolveCognitiveUserId(sessionKey);
|
|
1081
|
-
if (insightUserId) {
|
|
1082
|
-
const insightId = preflight.pendingEventEntries.map((event) => event.contextKey ?? "").find((key) => key.startsWith("insight:"))?.slice(8);
|
|
1083
|
-
const insightStore = new InsightStore(resolveConfigDir());
|
|
1084
|
-
if (insightId) {
|
|
1085
|
-
const record = await insightStore.load(agentId, insightUserId, insightId);
|
|
1086
|
-
if (record && !record.deliveryMessageId) {
|
|
1087
|
-
record.deliveryMessageId = msgId;
|
|
1088
|
-
await insightStore.save(agentId, insightUserId, record);
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
} catch {}
|
|
1093
|
-
}
|
|
1094
|
-
if (!shouldSkipMain && normalized.text.trim()) {
|
|
1095
|
-
const store = loadSessionStore(storePath);
|
|
1096
|
-
const current = store[sessionKey];
|
|
1097
|
-
if (current) {
|
|
1098
|
-
store[sessionKey] = {
|
|
1099
|
-
...current,
|
|
1100
|
-
lastHeartbeatText: normalized.text,
|
|
1101
|
-
lastHeartbeatSentAt: startedAt
|
|
1102
|
-
};
|
|
1103
|
-
await saveSessionStore(storePath, store);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
emitHeartbeatEvent({
|
|
1107
|
-
status: "sent",
|
|
1108
|
-
to: delivery.to,
|
|
1109
|
-
preview: previewText?.slice(0, 200),
|
|
1110
|
-
durationMs: Date.now() - startedAt,
|
|
1111
|
-
hasMedia: mediaUrls.length > 0,
|
|
1112
|
-
channel: delivery.channel,
|
|
1113
|
-
accountId: delivery.accountId,
|
|
1114
|
-
indicatorType: visibility.useIndicator ? resolveIndicatorType("sent") : void 0,
|
|
1115
|
-
replyChars: normalized.text.length,
|
|
1116
|
-
...degenerateBlocked ? {
|
|
1117
|
-
degenerateBlocked: degenerateBlocked.reason,
|
|
1118
|
-
blockedReplyChars: degenerateBlocked.replyChars
|
|
1119
|
-
} : {}
|
|
1120
|
-
});
|
|
1121
|
-
await updateTaskTimestamps();
|
|
1122
|
-
consumeInspectedSystemEvents();
|
|
1123
|
-
await reportInsightOutcome(true);
|
|
1124
|
-
await restoreHeartbeatUpdatedAt({
|
|
1125
|
-
storePath,
|
|
1126
|
-
sessionKey,
|
|
1127
|
-
updatedAt: previousUpdatedAt
|
|
1128
|
-
});
|
|
1129
|
-
return {
|
|
1130
|
-
status: "ran",
|
|
1131
|
-
durationMs: Date.now() - startedAt
|
|
1132
|
-
};
|
|
1133
|
-
} catch (err) {
|
|
1134
|
-
const reason = formatErrorMessage(err);
|
|
1135
|
-
emitHeartbeatEvent({
|
|
1136
|
-
status: "failed",
|
|
1137
|
-
reason,
|
|
1138
|
-
durationMs: Date.now() - startedAt,
|
|
1139
|
-
channel: delivery.channel !== "none" ? delivery.channel : void 0,
|
|
1140
|
-
accountId: delivery.accountId,
|
|
1141
|
-
indicatorType: visibility.useIndicator ? resolveIndicatorType("failed") : void 0
|
|
1142
|
-
});
|
|
1143
|
-
log.error(`heartbeat failed: ${reason}`, { error: reason });
|
|
1144
|
-
try {
|
|
1145
|
-
await reportInsightOutcome(hasInsightEvent ? await isInsightAlreadyDelivered(insightIdForOutcome) : false);
|
|
1146
|
-
} catch {}
|
|
1147
|
-
return {
|
|
1148
|
-
status: "failed",
|
|
1149
|
-
reason
|
|
1150
|
-
};
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
function startHeartbeatRunner(opts) {
|
|
1154
|
-
const runtime = opts.runtime ?? defaultRuntime;
|
|
1155
|
-
const runOnce = opts.runOnce ?? runHeartbeatOnce;
|
|
1156
|
-
const insightDeliveryOutcome = opts.onInsightDeliveryOutcome;
|
|
1157
|
-
const state = {
|
|
1158
|
-
cfg: opts.cfg ?? loadConfig(),
|
|
1159
|
-
runtime,
|
|
1160
|
-
schedulerSeed: resolveHeartbeatSchedulerSeed(opts.stableSchedulerSeed),
|
|
1161
|
-
agents: /* @__PURE__ */ new Map(),
|
|
1162
|
-
timer: null,
|
|
1163
|
-
stopped: false
|
|
1164
|
-
};
|
|
1165
|
-
let initialized = false;
|
|
1166
|
-
const resolveNextDue = (now, intervalMs, phaseMs, prevState) => resolveNextHeartbeatDueMs({
|
|
1167
|
-
nowMs: now,
|
|
1168
|
-
intervalMs,
|
|
1169
|
-
phaseMs,
|
|
1170
|
-
prev: prevState ? {
|
|
1171
|
-
intervalMs: prevState.intervalMs,
|
|
1172
|
-
phaseMs: prevState.phaseMs,
|
|
1173
|
-
nextDueMs: prevState.nextDueMs
|
|
1174
|
-
} : void 0
|
|
1175
|
-
});
|
|
1176
|
-
const advanceAgentSchedule = (agent, now, reason) => {
|
|
1177
|
-
agent.nextDueMs = reason === "interval" ? computeNextHeartbeatPhaseDueMs({
|
|
1178
|
-
nowMs: now,
|
|
1179
|
-
intervalMs: agent.intervalMs,
|
|
1180
|
-
phaseMs: agent.phaseMs
|
|
1181
|
-
}) : now + agent.intervalMs;
|
|
1182
|
-
};
|
|
1183
|
-
const scheduleNext = () => {
|
|
1184
|
-
if (state.stopped) return;
|
|
1185
|
-
if (state.timer) {
|
|
1186
|
-
clearTimeout(state.timer);
|
|
1187
|
-
state.timer = null;
|
|
1188
|
-
}
|
|
1189
|
-
if (state.agents.size === 0) return;
|
|
1190
|
-
const now = Date.now();
|
|
1191
|
-
let nextDue = Number.POSITIVE_INFINITY;
|
|
1192
|
-
for (const agent of state.agents.values()) if (agent.nextDueMs < nextDue) nextDue = agent.nextDueMs;
|
|
1193
|
-
if (!Number.isFinite(nextDue)) return;
|
|
1194
|
-
const delay = Math.max(0, nextDue - now);
|
|
1195
|
-
state.timer = setTimeout(() => {
|
|
1196
|
-
state.timer = null;
|
|
1197
|
-
requestHeartbeatNow({
|
|
1198
|
-
reason: "interval",
|
|
1199
|
-
coalesceMs: 0
|
|
1200
|
-
});
|
|
1201
|
-
}, delay);
|
|
1202
|
-
state.timer.unref?.();
|
|
1203
|
-
};
|
|
1204
|
-
const updateConfig = (cfg) => {
|
|
1205
|
-
if (state.stopped) return;
|
|
1206
|
-
const now = Date.now();
|
|
1207
|
-
const prevAgents = state.agents;
|
|
1208
|
-
const prevEnabled = prevAgents.size > 0;
|
|
1209
|
-
const nextAgents = /* @__PURE__ */ new Map();
|
|
1210
|
-
const intervals = [];
|
|
1211
|
-
for (const agent of resolveHeartbeatAgents(cfg)) {
|
|
1212
|
-
const intervalMs = resolveHeartbeatIntervalMs(cfg, void 0, agent.heartbeat);
|
|
1213
|
-
if (!intervalMs) continue;
|
|
1214
|
-
const phaseMs = resolveHeartbeatPhaseMs({
|
|
1215
|
-
schedulerSeed: state.schedulerSeed,
|
|
1216
|
-
agentId: agent.agentId,
|
|
1217
|
-
intervalMs
|
|
1218
|
-
});
|
|
1219
|
-
intervals.push(intervalMs);
|
|
1220
|
-
const nextDueMs = resolveNextDue(now, intervalMs, phaseMs, prevAgents.get(agent.agentId));
|
|
1221
|
-
nextAgents.set(agent.agentId, {
|
|
1222
|
-
agentId: agent.agentId,
|
|
1223
|
-
heartbeat: agent.heartbeat,
|
|
1224
|
-
intervalMs,
|
|
1225
|
-
phaseMs,
|
|
1226
|
-
nextDueMs
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
state.cfg = cfg;
|
|
1230
|
-
state.agents = nextAgents;
|
|
1231
|
-
const nextEnabled = nextAgents.size > 0;
|
|
1232
|
-
if (!initialized) {
|
|
1233
|
-
if (!nextEnabled) log.info("heartbeat: disabled", { enabled: false });
|
|
1234
|
-
else log.info("heartbeat: started", { intervalMs: Math.min(...intervals) });
|
|
1235
|
-
initialized = true;
|
|
1236
|
-
} else if (prevEnabled !== nextEnabled) if (!nextEnabled) log.info("heartbeat: disabled", { enabled: false });
|
|
1237
|
-
else log.info("heartbeat: started", { intervalMs: Math.min(...intervals) });
|
|
1238
|
-
scheduleNext();
|
|
1239
|
-
};
|
|
1240
|
-
const run = async (params) => {
|
|
1241
|
-
if (state.stopped) return {
|
|
1242
|
-
status: "skipped",
|
|
1243
|
-
reason: "disabled"
|
|
1244
|
-
};
|
|
1245
|
-
if (!areHeartbeatsEnabled()) return {
|
|
1246
|
-
status: "skipped",
|
|
1247
|
-
reason: "disabled"
|
|
1248
|
-
};
|
|
1249
|
-
if (state.agents.size === 0) return {
|
|
1250
|
-
status: "skipped",
|
|
1251
|
-
reason: "disabled"
|
|
1252
|
-
};
|
|
1253
|
-
const reason = params?.reason;
|
|
1254
|
-
const requestedAgentId = params?.agentId ? normalizeAgentId(params.agentId) : void 0;
|
|
1255
|
-
const requestedSessionKey = normalizeOptionalString(params?.sessionKey);
|
|
1256
|
-
const isInterval = reason === "interval";
|
|
1257
|
-
const startedAt = Date.now();
|
|
1258
|
-
const now = startedAt;
|
|
1259
|
-
let ran = false;
|
|
1260
|
-
let requestsInFlight = false;
|
|
1261
|
-
try {
|
|
1262
|
-
if (requestedSessionKey || requestedAgentId) {
|
|
1263
|
-
const targetAgentId = requestedAgentId ?? resolveAgentIdFromSessionKey(requestedSessionKey);
|
|
1264
|
-
let targetAgent = state.agents.get(targetAgentId);
|
|
1265
|
-
if (!targetAgent) {
|
|
1266
|
-
if (reason === "cognitive-insight" || reason === "cognitive-evolution") targetAgent = {
|
|
1267
|
-
agentId: targetAgentId,
|
|
1268
|
-
heartbeat: resolveHeartbeatConfig(state.cfg, targetAgentId),
|
|
1269
|
-
intervalMs: 0,
|
|
1270
|
-
phaseMs: 0,
|
|
1271
|
-
nextDueMs: now
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
if (!targetAgent) return {
|
|
1275
|
-
status: "skipped",
|
|
1276
|
-
reason: "disabled"
|
|
1277
|
-
};
|
|
1278
|
-
try {
|
|
1279
|
-
const res = await runOnce({
|
|
1280
|
-
cfg: state.cfg,
|
|
1281
|
-
agentId: targetAgent.agentId,
|
|
1282
|
-
heartbeat: targetAgent.heartbeat,
|
|
1283
|
-
reason,
|
|
1284
|
-
sessionKey: requestedSessionKey,
|
|
1285
|
-
deps: {
|
|
1286
|
-
runtime: state.runtime,
|
|
1287
|
-
...insightDeliveryOutcome ? { onInsightDeliveryOutcome: insightDeliveryOutcome } : {}
|
|
1288
|
-
}
|
|
1289
|
-
});
|
|
1290
|
-
if (res.status !== "skipped" || res.reason !== "disabled") advanceAgentSchedule(targetAgent, now, reason);
|
|
1291
|
-
return res.status === "ran" ? {
|
|
1292
|
-
status: "ran",
|
|
1293
|
-
durationMs: Date.now() - startedAt
|
|
1294
|
-
} : res;
|
|
1295
|
-
} catch (err) {
|
|
1296
|
-
const errMsg = formatErrorMessage(err);
|
|
1297
|
-
log.error(`heartbeat runner: targeted runOnce threw unexpectedly: ${errMsg}`, { error: errMsg });
|
|
1298
|
-
advanceAgentSchedule(targetAgent, now, reason);
|
|
1299
|
-
return {
|
|
1300
|
-
status: "failed",
|
|
1301
|
-
reason: errMsg
|
|
1302
|
-
};
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
for (const agent of state.agents.values()) {
|
|
1306
|
-
if (isInterval && now < agent.nextDueMs) continue;
|
|
1307
|
-
let res;
|
|
1308
|
-
try {
|
|
1309
|
-
res = await runOnce({
|
|
1310
|
-
cfg: state.cfg,
|
|
1311
|
-
agentId: agent.agentId,
|
|
1312
|
-
heartbeat: agent.heartbeat,
|
|
1313
|
-
reason,
|
|
1314
|
-
deps: {
|
|
1315
|
-
runtime: state.runtime,
|
|
1316
|
-
...insightDeliveryOutcome ? { onInsightDeliveryOutcome: insightDeliveryOutcome } : {}
|
|
1317
|
-
}
|
|
1318
|
-
});
|
|
1319
|
-
} catch (err) {
|
|
1320
|
-
const errMsg = formatErrorMessage(err);
|
|
1321
|
-
log.error(`heartbeat runner: runOnce threw unexpectedly: ${errMsg}`, { error: errMsg });
|
|
1322
|
-
advanceAgentSchedule(agent, now, reason);
|
|
1323
|
-
continue;
|
|
1324
|
-
}
|
|
1325
|
-
if (res.status === "skipped" && res.reason === "requests-in-flight") {
|
|
1326
|
-
requestsInFlight = true;
|
|
1327
|
-
return res;
|
|
1328
|
-
}
|
|
1329
|
-
if (res.status !== "skipped" || res.reason !== "disabled") advanceAgentSchedule(agent, now, reason);
|
|
1330
|
-
if (res.status === "ran") ran = true;
|
|
1331
|
-
}
|
|
1332
|
-
if (ran) return {
|
|
1333
|
-
status: "ran",
|
|
1334
|
-
durationMs: Date.now() - startedAt
|
|
1335
|
-
};
|
|
1336
|
-
return {
|
|
1337
|
-
status: "skipped",
|
|
1338
|
-
reason: isInterval ? "not-due" : "disabled"
|
|
1339
|
-
};
|
|
1340
|
-
} finally {
|
|
1341
|
-
if (!requestsInFlight) scheduleNext();
|
|
1342
|
-
}
|
|
1343
|
-
};
|
|
1344
|
-
const wakeHandler = async (params) => run({
|
|
1345
|
-
reason: params.reason,
|
|
1346
|
-
agentId: params.agentId,
|
|
1347
|
-
sessionKey: params.sessionKey
|
|
1348
|
-
});
|
|
1349
|
-
const disposeWakeHandler = setHeartbeatWakeHandler(wakeHandler);
|
|
1350
|
-
updateConfig(state.cfg);
|
|
1351
|
-
const cleanup = () => {
|
|
1352
|
-
if (state.stopped) return;
|
|
1353
|
-
state.stopped = true;
|
|
1354
|
-
disposeWakeHandler();
|
|
1355
|
-
if (state.timer) clearTimeout(state.timer);
|
|
1356
|
-
state.timer = null;
|
|
1357
|
-
};
|
|
1358
|
-
opts.abortSignal?.addEventListener("abort", cleanup, { once: true });
|
|
1359
|
-
return {
|
|
1360
|
-
stop: cleanup,
|
|
1361
|
-
updateConfig
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
//#endregion
|
|
1365
|
-
export { resolveCronSession as a, isCronSystemEvent as i, runHeartbeatOnce as n, startHeartbeatRunner as r, resolveHeartbeatPrompt as t };
|