kaijibot 2026.8.20 → 2026.8.21
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/dist/.buildstamp +1 -1
- package/dist/abort-BA4i4CO6.js +202 -0
- package/dist/abort-cutoff.runtime-140Dy9Z_.js +20 -0
- package/dist/abort-cutoff.runtime.js +1 -1
- package/dist/abort-primitives-DqU6syXA.js +93 -0
- package/dist/abort.runtime-D2xd_Jxq.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/account-action-gate-w2MQyrck.js +114 -0
- package/dist/acp-cli-lUerPOt4.js +2171 -0
- package/dist/acp-spawn-CKu5HWZd.js +1024 -0
- package/dist/acp-stateful-target-driver-DNcDMame.js +88 -0
- package/dist/action-agents-bNO5zlxQ.js +67 -0
- package/dist/action-focus-BQH1yzA9.js +124 -0
- package/dist/action-help-Copk6G3d.js +7 -0
- package/dist/action-info-BUV_zoSU.js +58 -0
- package/dist/action-kill-BMDz9l_U.js +33 -0
- package/dist/action-list-CxkulhYF.js +21 -0
- package/dist/action-log-D0K9-YCV.js +30 -0
- package/dist/action-send-B8ggJVwC.js +39 -0
- package/dist/action-spawn-D9kSXA_K.js +46 -0
- package/dist/action-unfocus-bI4VBonB.js +28 -0
- package/dist/agent-CdxQT19_.js +2 -0
- package/dist/agent-command-Bu_cXSEL.js +1479 -0
- package/dist/agent-list-CPYyofv7.js +67 -0
- package/dist/agent-runner-utils--p6HAP6k.js +202 -0
- package/dist/agent-runner.runtime-BossnlL1.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-DA2-qNUI.js +887 -0
- package/dist/agents-DaKVGj9F.js +5 -0
- package/dist/allow-from-p586L6ne.js +164 -0
- package/dist/anthropic-cache-control-payload-N8EtT94O.js +28 -0
- package/dist/anthropic-payload-policy-D6dpwqVe.js +136 -0
- package/dist/anthropic-vertex-stream-CrF-fPgb.js +5666 -0
- package/dist/api-BPByI3-X.js +2 -0
- package/dist/api-BvFPt7b2.js +19 -0
- package/dist/api-C6IdzdoP.js +5 -0
- package/dist/api-CSOm-O9I.js +5 -0
- package/dist/api-ChQfiSmG.js +4 -0
- package/dist/api-Cm3n-2Iw.js +3 -0
- package/dist/api-CqBQhm6r.js +2 -0
- package/dist/api-D7SjdU34.js +4 -0
- package/dist/api-D7qSjVDS.js +3 -0
- package/dist/api-DbRoXBTn.js +45 -0
- package/dist/api-_HshnS5J.js +35 -0
- package/dist/apply-G86rau7x.js +493 -0
- package/dist/apply.runtime-BoYc09wu.js +166 -0
- package/dist/apply.runtime-Dmh02lO-.js +2 -0
- package/dist/apply.runtime.js +1 -1
- package/dist/approval-gateway-resolver-bdX78er-.js +58 -0
- package/dist/approval-gateway-runtime-CJm68vrp.js +2 -0
- package/dist/approval-handler-runtime-CT08B2_a.js +439 -0
- package/dist/approval-native-helpers-DagoPLtW.js +33 -0
- package/dist/approval-native-runtime-CN4meUkM.js +709 -0
- package/dist/approval-renderers-CnmO8wke.js +64 -0
- package/dist/asr-Cz-FH-3c.js +196 -0
- package/dist/audit-Cbfv4nmn.js +885 -0
- package/dist/audit-extra.async-DQv_s9K0.js +847 -0
- package/dist/audit.deep.runtime-CAPtrWg1.js +2 -0
- package/dist/audit.deep.runtime.js +1 -1
- package/dist/audit.nondeep.runtime-HUJ6INiD.js +859 -0
- package/dist/audit.nondeep.runtime.js +1 -1
- package/dist/audit.runtime-CAKbHyXK.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-CRAwpkC_.js +181 -0
- package/dist/auth-choice-Bhps2D29.js +3 -0
- package/dist/auth-choice-kMIs0xTd.js +71 -0
- package/dist/auth-choice-vRXPONqL.js +353 -0
- package/dist/auth-choice.apply-helpers-D6x2bWVB.js +2 -0
- package/dist/auth-profiles.runtime.js +1 -1
- package/dist/binding-routing-C6_mrNEN.js +50 -0
- package/dist/binding-targets-Cq2e7wRT.js +99 -0
- package/dist/block-streaming-BTtPFYsM.js +103 -0
- package/dist/bootstrap-files-DsmC0cJP.js +206 -0
- package/dist/bridge-server-Co3awCAM.js +103 -0
- package/dist/browser-node-runtime-D8xut4fJ.js +12 -0
- package/dist/browser-open-BzpYLaas.js +94 -0
- package/dist/browser-runtime-BBkGI01q.js +377 -0
- package/dist/browser-security-runtime-CzhzXJ8D.js +10 -0
- package/dist/browser-setup-tools-CD_s48fd.js +12 -0
- package/dist/btw-command-Bgn_NviR.js +17 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +3 -3
- package/dist/call-CiUZqjsN.js +2 -0
- package/dist/call-k_nZXTJ3.js +495 -0
- package/dist/call.runtime-CZI7yxSF.js +2 -0
- package/dist/call.runtime.js +1 -1
- package/dist/capability-cli-CIm_YhHH.js +1357 -0
- package/dist/catalog-provider-Ch4CMHLl.js +40 -0
- package/dist/cdp.helpers-BVl3YwYe.js +372 -0
- package/dist/channel-config-helpers-BO9yY1Zu.js +462 -0
- package/dist/channel-core-BB7pTANC.js +5 -0
- package/dist/channel-feedback-c7a-Gb7w.js +259 -0
- package/dist/channel-plugin-resolution-DHgXIZV6.js +146 -0
- package/dist/channel-policy-DO-ZWErE.js +270 -0
- package/dist/channel-reply-pipeline-2KImYC85.js +26 -0
- package/dist/channel-runtime-Bqn7zFyT.js +6 -0
- package/dist/channel.runtime-2WY9MkoH.js +399 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/channels-D66hRVnR.js +1147 -0
- package/dist/channels-cli-0DjAVaKh.js +248 -0
- package/dist/chat-Fv3LkEfF.js +213 -0
- package/dist/chat-history-text-CZhwQ5__.js +42 -0
- package/dist/chrome-CEE9kYYR.js +1080 -0
- package/dist/chrome.executables-Dp7W-RgV.js +550 -0
- package/dist/chunk-B9X-O7Vw.js +267 -0
- package/dist/clack-prompter-BSVVLa7H.js +113 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BsNkLoFI.js +57 -0
- package/dist/cli-DQH9X5IE.js +2 -0
- package/dist/cli-DuoVlLKx.js +154 -0
- package/dist/cli-auth-seam-BrijKBRQ.js +14 -0
- package/dist/cli-backend-CIs4F7ip.js +66 -0
- package/dist/cli-migration-CVktTGRI.js +127 -0
- package/dist/cli-runner-12iECISR.js +1662 -0
- package/dist/cli-runner.runtime-C5noDuQ-.js +3 -0
- package/dist/cli-runner.runtime-YrAg_h19.js +2 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-runtime-wB1rYZco.js +3 -0
- package/dist/cli-shared-BUW2okV2.js +142 -0
- package/dist/cli-startup-metadata.json +1 -1
- package/dist/cli.runtime-Bhxt80sB.js +819 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/client-bootstrap-BWo-ZK_j.js +28 -0
- package/dist/command-auth-Dlrd5CYD.js +75 -0
- package/dist/command-config-resolution-B8pxzh3W.js +2 -0
- package/dist/command-config-resolution-BXSCDJTh.js +23 -0
- package/dist/command-detection-DFlZHBMC.js +50 -0
- package/dist/command-execution-startup-DYXpKpvc.js +269 -0
- package/dist/command-format-JYoGhCek.js +2 -0
- package/dist/command-registry-BF51N12E.js +3 -0
- package/dist/command-registry-BqpfCBbW.js +113 -0
- package/dist/command-secret-gateway-DuuctECr.js +528 -0
- package/dist/command-status-builders-CnD1rvYb.js +145 -0
- package/dist/commands-acp-DiLJUV45.js +1017 -0
- package/dist/commands-compact.runtime-BOM8PsWH.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-context-C-jRwdK3.js +34 -0
- package/dist/commands-core.runtime-CH_aGeT-.js +2 -0
- package/dist/commands-core.runtime.js +1 -1
- package/dist/commands-handlers.runtime-Ca6xoeW5.js +3762 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-models-CRURuXR-.js +306 -0
- package/dist/commands-registry-CJw_6JDj.js +295 -0
- package/dist/commands-registry.runtime-78mbU8Il.js +2 -0
- package/dist/commands-registry.runtime.js +1 -1
- package/dist/commands-reset-hooks-D3RzsOIn.js +129 -0
- package/dist/commands-status-Cufj4x2j.js +223 -0
- package/dist/commands-status.runtime-C8Nz4Glk.js +2 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-DjhcmoRT.js +3 -0
- package/dist/commands-subagents-control.runtime-s_DYQWfW.js +2 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands.runtime-ChfYOBeV.js +103 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/comment-shared-DFEZzqhH.js +40 -0
- package/dist/compact-DEsHFhEL.js +11324 -0
- package/dist/compact.runtime-BzLFUSmk.js +7 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-CiWtzUFQ.js +2 -0
- package/dist/completion-cli-h3zgpXGM.js +468 -0
- package/dist/config-Bd1PtH4x.js +166 -0
- package/dist/config-cli-BiEmyiRa.js +948 -0
- package/dist/config-defaults-Bw9wwyo1.js +163 -0
- package/dist/config-guard-BGGjXg_Y.js +94 -0
- package/dist/config-runtime-Bvdi0W59.js +14 -0
- package/dist/config-validation-BDeuMlc1.js +279 -0
- package/dist/configure-CUSDnrHs.js +2 -0
- package/dist/configure-FDqT3i_9.js +1162 -0
- package/dist/connection-auth-7izNv08V.js +30 -0
- package/dist/context-B2wCjR9D.js +249 -0
- package/dist/context-n8ANhlMJ.js +2 -0
- package/dist/context-visibility-d6FHLhsq.js +14 -0
- package/dist/context-writer-COhxMkVz.js +290 -0
- package/dist/control-auth-Csa4b5CR.js +122 -0
- package/dist/control-ui-links-tILfT2Ek.js +70 -0
- package/dist/conversation-id-d7KXWjzV.js +140 -0
- package/dist/conversation-runtime-D-YmpVS2.js +31 -0
- package/dist/core-8TPCsNB-.js +210 -0
- package/dist/cron-cli-C5ok2iVK.js +637 -0
- package/dist/daemon-cli-Cr_y38yv.js +476 -0
- package/dist/daemon-install-CrhzPiZ-.js +70 -0
- package/dist/delegate-r3VqUt34.js +61 -0
- package/dist/deliver-Cuu36rnv.js +3 -0
- package/dist/deliver-SAyi_F0e.js +782 -0
- package/dist/deliver-runtime-DKv9J6QE.js +2 -0
- package/dist/delivery-outbound.runtime-DDoInTnF.js +6 -0
- package/dist/delivery-outbound.runtime.js +1 -1
- package/dist/delivery-queue-CWi3kUit.js +372 -0
- package/dist/delivery-queue-ecSu6ZNL.js +2 -0
- package/dist/device-bootstrap---geQnCr.js +4 -0
- package/dist/device-bootstrap-BEWox6at.js +248 -0
- package/dist/device-bootstrap-profile-BR1NnTGX.js +36 -0
- package/dist/device-identity-huL1Exh1.js +2 -0
- package/dist/device-pairing-DSkkI5A-.js +600 -0
- package/dist/devices-cli-BUAuMOOj.js +336 -0
- package/dist/diagnostics-Bh0Gbi4L.js +33 -0
- package/dist/diagnostics-BsUG_otQ.js +2 -0
- package/dist/direct-dm-D_7_vKGq.js +139 -0
- package/dist/directive-handling.fast-lane-C91i_iZm.js +2 -0
- package/dist/directive-handling.fast-lane-F7l0XNwG.js +64 -0
- package/dist/directive-handling.impl-8RAWZiZE.js +659 -0
- package/dist/directive-handling.impl-BxAIWFS-.js +2 -0
- package/dist/directive-handling.parse-B3O0CfXY.js +376 -0
- package/dist/directive-handling.persist-QXt7GHcD.js +139 -0
- package/dist/directive-handling.persist.runtime-CPPm2qYQ.js +2 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/directive-handling.shared-C5ywsGJd.js +159 -0
- package/dist/directory-cli-D9v1dSPr.js +240 -0
- package/dist/dispatch-DoyBs65s.js +1126 -0
- package/dist/dispatch-acp-Dz8rU6t9.js +969 -0
- package/dist/dispatch-acp-command-bypass-CJ5xdqXR.js +38 -0
- package/dist/dispatch-acp-manager.runtime-tPUGDjl3.js +3 -0
- package/dist/dispatch-acp-manager.runtime.js +1 -1
- package/dist/dispatch-acp-media.runtime-rwYN3ewY.js +3 -0
- package/dist/dispatch-acp-media.runtime.js +1 -1
- package/dist/dispatch-acp-session.runtime-C9nyGih8.js +2 -0
- package/dist/dispatch-acp-session.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-Co-JFuKU.js +19 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/docker-TZx6u2PT.js +826 -0
- package/dist/doctor-completion-C46W5KI7.js +90 -0
- package/dist/doctor-config-preflight-B_UDrFsE.js +148 -0
- package/dist/doctor-config-preflight-DtvhOeuT.js +2 -0
- package/dist/doctor-state-migrations-Cd3yfnI1.js +2 -0
- package/dist/doctor-state-migrations-D3qorqjy.js +3 -0
- package/dist/drive-C2mxxJx5.js +718 -0
- package/dist/embedding-provider-C5S1sxvR.js +129 -0
- package/dist/embedding-provider-CNDA2uD3.js +26 -0
- package/dist/embedding-provider-CdVS1B85.js +33 -0
- package/dist/engine-CKgZ1obQ.js +82 -0
- package/dist/engine-embeddings-Bt1bTxtw.js +1489 -0
- package/dist/entry-capabilities-DrciJZn1.js +89 -0
- package/dist/entry.js +1 -1
- package/dist/exec-approval-forwarder.runtime-Dpa8Gi_P.js +3 -0
- package/dist/exec-approval-forwarder.runtime.js +1 -1
- package/dist/exec-approval-session-target-BYtddDF5.js +165 -0
- package/dist/exec-approvals-cli-BuOJPaPp.js +485 -0
- package/dist/exec-defaults-B5egc-6t.js +1440 -0
- package/dist/extensionAPI.js +5 -5
- 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/replay-policy.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 +3 -3
- 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 +4 -4
- 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 +4 -4
- package/dist/extensions/browser/browser-control-auth.js +1 -1
- package/dist/extensions/browser/browser-doctor.js +5 -5
- 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 +2 -2
- package/dist/extensions/browser/browser-runtime-api.js +12 -12
- 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 +13 -13
- 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 +9 -9
- 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 +4 -4
- package/dist/extensions/deepinfra/api.js +8 -8
- package/dist/extensions/deepinfra/embedding-provider.js +2 -2
- package/dist/extensions/deepinfra/image-generation-provider.js +1 -1
- package/dist/extensions/deepinfra/index.js +9 -9
- package/dist/extensions/deepinfra/media-models.js +2 -2
- package/dist/extensions/deepinfra/media-understanding-provider.js +1 -1
- package/dist/extensions/deepinfra/memory-embedding-adapter.js +1 -1
- package/dist/extensions/deepinfra/onboard.js +2 -2
- package/dist/extensions/deepinfra/provider-catalog.js +1 -1
- package/dist/extensions/deepinfra/provider-models.js +1 -1
- package/dist/extensions/deepinfra/speech-provider.js +1 -1
- package/dist/extensions/deepinfra/video-generation-provider.js +1 -1
- package/dist/extensions/deepseek/index.js +3 -3
- package/dist/extensions/device-pair/api.js +6 -6
- package/dist/extensions/device-pair/index.js +9 -9
- 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/exa/index.js +4 -4
- package/dist/extensions/feishu/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/feishu/api.js +21 -21
- package/dist/extensions/feishu/contract-api.js +2 -2
- package/dist/extensions/feishu/runtime-api.js +4 -4
- 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 +4 -4
- package/dist/extensions/fireworks/stream.js +1 -1
- package/dist/extensions/github-copilot/api.js +1 -1
- package/dist/extensions/github-copilot/index.js +5 -5
- 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/github-copilot/stream.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.http.js +1 -1
- package/dist/extensions/google/oauth.js +2 -2
- package/dist/extensions/google/oauth.project.js +1 -1
- 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-contract-api.js +1 -1
- package/dist/extensions/google/web-search-provider.js +1 -1
- package/dist/extensions/gradium/index.js +1 -1
- package/dist/extensions/gradium/speech-provider.js +1 -1
- package/dist/extensions/gradium/tts.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 +8 -8
- 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 +4 -4
- package/dist/extensions/kindle-portal/.kaijibot-runtime-deps-stamp.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 +4 -4
- package/dist/extensions/lmstudio/index.js +3 -3
- 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 +3 -3
- 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/api.js +5 -5
- 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/model-definitions.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/onboard.js +1 -1
- package/dist/extensions/minimax/provider-catalog.js +1 -1
- package/dist/extensions/minimax/provider-models.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-contract-api.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 +3 -3
- package/dist/extensions/mistral/media-understanding-provider.js +1 -1
- package/dist/extensions/mistral/memory-embedding-adapter.js +3 -3
- package/dist/extensions/mistral/provider-compat.js +1 -1
- package/dist/extensions/mistral/test-api.js +1 -1
- package/dist/extensions/moonshot/api.js +3 -3
- package/dist/extensions/moonshot/index.js +9 -9
- package/dist/extensions/moonshot/media-understanding-provider.js +1 -1
- package/dist/extensions/moonshot/onboard.js +1 -1
- package/dist/extensions/moonshot/provider-catalog.js +1 -1
- package/dist/extensions/moonshot/test-api.js +2 -2
- package/dist/extensions/moonshot/web-search-contract-api.js +1 -1
- package/dist/extensions/moonshot/web-search-provider.js +1 -1
- package/dist/extensions/nvidia/index.js +1 -1
- package/dist/extensions/ollama/api.js +4 -4
- package/dist/extensions/ollama/index.js +8 -8
- package/dist/extensions/ollama/provider-discovery.js +1 -1
- package/dist/extensions/ollama/runtime-api.js +2 -2
- package/dist/extensions/ollama/web-search-contract-api.js +1 -1
- 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-provider.runtime.js +2 -2
- 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 +3 -3
- 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 +4 -4
- package/dist/extensions/opencode-go/index.js +3 -3
- package/dist/extensions/openrouter/api.js +2 -2
- package/dist/extensions/openrouter/image-generation-provider.js +1 -1
- package/dist/extensions/openrouter/index.js +8 -8
- package/dist/extensions/openrouter/media-understanding-provider.js +1 -1
- package/dist/extensions/openrouter/music-generation-provider.js +1 -1
- package/dist/extensions/openrouter/stream.js +1 -1
- package/dist/extensions/openrouter/test-api.js +3 -3
- package/dist/extensions/openrouter/video-generation-provider.js +6 -6
- package/dist/extensions/openrouter/video-http.js +1 -1
- package/dist/extensions/openrouter/video-model-catalog.js +1 -1
- package/dist/extensions/openshell/index.js +4 -4
- package/dist/extensions/perplexity/index.js +1 -1
- package/dist/extensions/perplexity/test-api.js +1 -1
- package/dist/extensions/perplexity/web-search-contract-api.js +1 -1
- package/dist/extensions/perplexity/web-search-provider.js +1 -1
- package/dist/extensions/qianfan/index.js +1 -1
- package/dist/extensions/qwen/api.js +4 -4
- package/dist/extensions/qwen/index.js +8 -8
- package/dist/extensions/qwen/media-understanding-provider.js +1 -1
- package/dist/extensions/qwen/model-definitions.js +1 -1
- package/dist/extensions/qwen/models.js +1 -1
- package/dist/extensions/qwen/onboard.js +1 -1
- package/dist/extensions/qwen/provider-catalog.js +1 -1
- package/dist/extensions/qwen/stream.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/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 +3 -3
- package/dist/extensions/speech-core/runtime-api.js +5 -5
- package/dist/extensions/stepfun/index.js +2 -2
- package/dist/extensions/talk-voice/index.js +2 -2
- package/dist/extensions/tavily/index.js +5 -5
- package/dist/extensions/together/index.js +1 -1
- package/dist/extensions/together/video-generation-provider.js +4 -4
- package/dist/extensions/venice/api.js +3 -3
- package/dist/extensions/venice/index.js +6 -6
- 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/api.js +2 -2
- package/dist/extensions/vercel-ai-gateway/index.js +2 -2
- package/dist/extensions/vercel-ai-gateway/models.js +1 -1
- package/dist/extensions/vercel-ai-gateway/provider-catalog.js +1 -1
- 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 +4 -4
- package/dist/extensions/webhooks/runtime-api.js +1 -1
- package/dist/extensions/wechat/api.js +3 -3
- package/dist/extensions/xai/api.js +6 -6
- package/dist/extensions/xai/code-execution.js +5 -5
- package/dist/extensions/xai/index.js +14 -14
- 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/stream.js +1 -1
- package/dist/extensions/xai/video-generation-provider.js +1 -1
- package/dist/extensions/xai/web-search-contract-api.js +1 -1
- package/dist/extensions/xai/web-search.js +1 -1
- package/dist/extensions/xai/x-search.js +5 -5
- package/dist/extensions/xiaomi/index.js +1 -1
- package/dist/extensions/zai/index.js +7 -7
- package/dist/extensions/zai/media-understanding-provider.js +1 -1
- package/dist/extensions/zai/test-api.js +1 -1
- package/dist/extra-params-Bfdm7Piq.js +295 -0
- package/dist/fetch-4HO0k3hc.js +65 -0
- package/dist/fetch-guard-BWtRcc5b.js +224 -0
- package/dist/fetch-jNI8hIPZ.js +256 -0
- package/dist/format-KzNAm6y6.js +245 -0
- package/dist/fragment-collector-DEW1fwlc.js +189 -0
- package/dist/gateway-CR7RtTbI.js +2 -0
- package/dist/gateway-CuQC7wph.js +119 -0
- package/dist/gateway-cli-CWHsIpm8.js +1532 -0
- package/dist/gateway-install-token-CcpoWcqs.js +284 -0
- package/dist/gateway-lock-B4umteJZ.js +238 -0
- package/dist/gateway-rpc-Do_3fQSm.js +14 -0
- package/dist/gateway-rpc.runtime-C4kzyrJj.js +23 -0
- package/dist/gateway-rpc.runtime.js +1 -1
- package/dist/gemini-cli-provider-YULRMcs8.js +106 -0
- package/dist/gemini-web-search-provider-D_QJZMM3.js +167 -0
- package/dist/get-reply-from-config.runtime-BpdriKtr.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/group-policy-BxTxJeKP.js +202 -0
- package/dist/health-B5YmS_bW.js +2 -0
- package/dist/health-CQ4zXQ-2.js +579 -0
- package/dist/heartbeat-B1UJqney.js +184 -0
- package/dist/heartbeat-runner--rVDmB2Z.js +1365 -0
- package/dist/heartbeat-runner-CwtXIPI-.js +4 -0
- package/dist/heartbeat-runner.runtime-D_5UeAsX.js +2 -0
- package/dist/heartbeat-runner.runtime.js +1 -1
- package/dist/heartbeat-summary-Cf17FCYf.js +58 -0
- package/dist/heartbeat-visibility-BpEZ4Xf-.js +86 -0
- package/dist/hooks-cli-BGDBJqzt.js +364 -0
- package/dist/identity-Bwhl61jK.js +30 -0
- package/dist/identity-avatar-Bu5l4dFW.js +87 -0
- package/dist/image-DiK7kcmJ.js +152 -0
- package/dist/image-generation-core-Cwutmg_V.js +17 -0
- package/dist/image-generation-core.auth.runtime-DA7XD5V2.js +2 -0
- package/dist/image-generation-core.auth.runtime.js +1 -1
- package/dist/image-generation-provider-B-0SxnvJ.js +280 -0
- package/dist/image-generation-provider-B-UW3NU_.js +94 -0
- package/dist/image-generation-provider-BR1_oIU4.js +130 -0
- package/dist/image-generation-provider-BvAaZO7K.js +86 -0
- package/dist/image-generation-provider-CnGMLnE9.js +163 -0
- package/dist/image-generation-provider-DHvw6TSJ.js +136 -0
- package/dist/image-generation-runtime-DCWf9P6F.js +2 -0
- package/dist/image-runtime-DGNzvqkb.js +7 -0
- package/dist/images-BwT2L5zh.js +586 -0
- package/dist/inbound-reply-dispatch-DgEqNffL.js +73 -0
- package/dist/inbound.runtime-CloYEZJO.js +4 -0
- package/dist/inbound.runtime-DLbKJWOY.js +3 -0
- package/dist/inbound.runtime.js +1 -1
- package/dist/index.js +2 -2
- package/dist/infra-runtime-DE-Vi3Dn.js +25 -0
- package/dist/ingest-DbZJju1a.js +842 -0
- package/dist/ingest-Dyj9M3ZM.js +2 -0
- package/dist/input-files-tzSehEsO.js +252 -0
- package/dist/inspect-_4i1jBjC.js +2 -0
- package/dist/inspect-dprTBmSB.js +282 -0
- package/dist/issue-format-CoEMThLD.js +2 -0
- package/dist/kaijibot-tools-Df_9YJcO.js +9434 -0
- package/dist/kaijibot-tools.runtime-CZId-V1O.js +2 -0
- package/dist/kaijibot-tools.runtime.js +1 -1
- package/dist/kill-tree-DerqhtJm.js +2 -0
- package/dist/kimi-web-search-provider-DunVVASJ.js +308 -0
- package/dist/launchd-Bh7KL8au.js +556 -0
- package/dist/library-BqMFzJMy.js +45 -0
- package/dist/lifecycle-core-DD_IXtH-.js +422 -0
- package/dist/list.runtime-DU0ctAjd.js +12 -0
- package/dist/list.runtime-DXWlaAJq.js +9 -0
- package/dist/list.runtime.js +1 -1
- package/dist/llm-engine-CMR9RxLA.js +1792 -0
- package/dist/llm-engine-VKRjaGY_.js +2 -0
- package/dist/llm-extractor-BCPvoWmb.js +445 -0
- package/dist/llm-slug-generator.js +2 -2
- package/dist/login-Dex1JqnY.js +108 -0
- package/dist/logs-cli-BZFJyrsk.js +264 -0
- package/dist/logs-cli.runtime-bBS2Sbi6.js +2 -0
- package/dist/logs-cli.runtime.js +1 -1
- package/dist/manager-BmS2ofc4.js +2049 -0
- package/dist/manager-CabVEPeE.js +3314 -0
- package/dist/markdown-tables-DyVly8kN.js +51 -0
- package/dist/mcp-cli-DGrmbpsu.js +733 -0
- package/dist/media-models-Dw0Y1LxG.js +49 -0
- package/dist/media-runtime-CAa8uHqv.js +312 -0
- package/dist/media-understanding-D_VRj6xY.js +83 -0
- package/dist/media-understanding-provider-B9Jfjq6L.js +13 -0
- package/dist/media-understanding-provider-BWksuEBw.js +30 -0
- package/dist/media-understanding-provider-Bhtq5Kpe.js +14 -0
- package/dist/media-understanding-provider-BzsmDAMk.js +67 -0
- package/dist/media-understanding-provider-C6_6yxvP.js +123 -0
- package/dist/media-understanding-provider-CdRlAb9s.js +18 -0
- package/dist/media-understanding-provider-D5m-2RW8.js +21 -0
- package/dist/media-understanding-provider-PmVmfI6p.js +112 -0
- package/dist/media-understanding-provider-cmLTPd8x.js +18 -0
- package/dist/media-understanding-provider-nPxfFv8l.js +37 -0
- package/dist/media-understanding-provider-yp9gxov6.js +69 -0
- package/dist/media-understanding-runtime-Bu7m-lVs.js +2 -0
- package/dist/memory-5jlpYBqx.js +242 -0
- package/dist/memory-BFKl6oSn.js +3 -0
- package/dist/memory-core-host-engine-embeddings-p06288xV.js +2 -0
- package/dist/memory-core-host-runtime-cli-BnvAiNzO.js +9 -0
- package/dist/memory-core-host-runtime-core-CnVg69Uw.js +8 -0
- package/dist/memory-embedding-adapter-Cux48Bvk.js +33 -0
- package/dist/memory-index-DSbV_yD0.js +2 -0
- package/dist/memory-index-EFkCRTeh.js +514 -0
- package/dist/message-CMCdNyAT.js +223 -0
- package/dist/message-action-runner-CG2CcWaS.js +1628 -0
- package/dist/message-action-runner-DUZQ7nmt.js +2 -0
- package/dist/message.gateway.runtime-COLMRCv4.js +2 -0
- package/dist/message.gateway.runtime.js +1 -1
- package/dist/method-scopes-BNjBMlqM.js +2883 -0
- package/dist/minimax-vlm-D1DbVSjC.js +183 -0
- package/dist/minimax-web-search-provider-BzgvahXM.js +165 -0
- package/dist/mmr-Clamw4uq.js +146 -0
- package/dist/model-CJIbRRp9.js +630 -0
- package/dist/model-auth-BQpkMtoP.js +427 -0
- package/dist/model-auth-env-BWJjZ_uc.js +53 -0
- package/dist/model-auth-env-CZXe-GO2.js +2 -0
- package/dist/model-auth-label-dLSkL9EI.js +45 -0
- package/dist/model-catalog-DgqowW_L.js +204 -0
- package/dist/model-definitions-BOTIDDWJ.js +258 -0
- package/dist/model-definitions-mx0Ogg9X.js +74 -0
- package/dist/model-discovery-live.runtime-D2J8zvfK.js +419 -0
- package/dist/model-discovery-live.runtime.js +1 -1
- package/dist/model-discovery-modelsdev-BKijFiV8.js +174 -0
- package/dist/model-picker-B4SuA28P.js +3 -0
- package/dist/model-picker-buwrc8kM.js +500 -0
- package/dist/model-picker.runtime-DXgS2Rab.js +15 -0
- package/dist/model-picker.runtime.js +1 -1
- package/dist/model-selection-CBuo2hSg.js +381 -0
- package/dist/models-BmveqjOE.js +126 -0
- package/dist/models-BucP8NI1.js +760 -0
- package/dist/models-C4-eAnR7.js +157 -0
- package/dist/models-DMLYOe4h.js +2 -0
- package/dist/models-DNNfkS3j.js +2584 -0
- package/dist/models-D_V6hTy-.js +166 -0
- package/dist/models-DkiHZi9S.js +47 -0
- package/dist/models-OhM18fW_.js +555 -0
- package/dist/models-cli-CfvtZXPd.js +198 -0
- package/dist/models-config-BLMZzgfx.js +900 -0
- package/dist/models-config.providers.secrets-rjdH8T5l.js +299 -0
- package/dist/models.fetch-D1o7sMO8.js +518 -0
- package/dist/monitor-CJdL31iS.js +4435 -0
- package/dist/monitor-DB732mUY.js +1023 -0
- package/dist/music-generation-provider-BrUTQBmG.js +169 -0
- package/dist/music-generation-provider-D6aYWSSm.js +238 -0
- package/dist/music-generation-provider-dpX_Oiuw.js +142 -0
- package/dist/node-cli-BSrC37hh.js +2374 -0
- package/dist/node-command-policy-J_sy6jJz.js +205 -0
- package/dist/node-service-Bz1OVtIc.js +69 -0
- package/dist/nodes-cli-uwgDIsqv.js +1046 -0
- package/dist/nodes-screen-EQaXZCHa.js +216 -0
- package/dist/nodes-utils-ChvZvxK1.js +196 -0
- package/dist/nodes.helpers-WGb2Q8DZ.js +34 -0
- package/dist/normalize-reply-B7T9vV8x.js +72 -0
- package/dist/note-9YcA8RtG.js +110 -0
- package/dist/notify-C9-q0Rdu.js +305 -0
- package/dist/oauth-CVAbqwnx.js +152 -0
- package/dist/oauth-RbN-L8pg.js +57 -0
- package/dist/oauth-token-shared-CCzflFLG.js +28 -0
- package/dist/oauth.credentials-BeCOUsTe.js +165 -0
- package/dist/oauth.flow-C2PFyq_h.js +122 -0
- package/dist/oauth.http-BgZeCfvj.js +23 -0
- package/dist/oauth.project-jFMmutMJ.js +123 -0
- package/dist/oauth.settings-CBmYrmAk.js +44 -0
- package/dist/oauth.token-DSow_5Ie.js +43 -0
- package/dist/onboard-8SmAjhIH.js +67 -0
- package/dist/onboard-B-ZJptUZ.js +25 -0
- package/dist/onboard-Beu-mw_-.js +29 -0
- package/dist/onboard-BzUrcgZ5.js +25 -0
- package/dist/onboard-CPuf8esc.js +25 -0
- package/dist/onboard-CR4uUkKJ.js +36 -0
- package/dist/onboard-CTfex1XR2.js +58 -0
- package/dist/onboard-Cksl3HNo.js +54 -0
- package/dist/onboard-D-ccZlbM.js +312 -0
- package/dist/onboard-DHXNhsF7.js +621 -0
- package/dist/onboard-Dd6X5k1s.js +25 -0
- package/dist/onboard-custom-9KIp_ybR.js +647 -0
- package/dist/onboard-custom-CbXUFVN6.js +2 -0
- package/dist/onboard-helpers-BFknCN7m.js +223 -0
- package/dist/onboard-helpers-DSJ_xWpL.js +5 -0
- package/dist/onboard-remote-C28pAu4b.js +193 -0
- package/dist/onboard-remote-DQxyE18D.js +2 -0
- package/dist/onboard-skills-B642NK1o.js +2 -0
- package/dist/onboard-skills-CI4B6Kx5.js +134 -0
- package/dist/openai-codex-auth-identity-PqpqYz4a.js +45 -0
- package/dist/openai-codex-cli-auth-cFTkwXjR.js +57 -0
- package/dist/openai-codex-provider-DjUpM_l9.js +299 -0
- package/dist/openai-codex-shared-o0pq7UkS.js +6 -0
- package/dist/openai-provider-ChZN4Q0c.js +283 -0
- package/dist/openai-transport-stream-DXBBlxJ9.js +1632 -0
- package/dist/operator-approvals-client-RJESCyw4.js +68 -0
- package/dist/outbound-runtime-Bhs-eGEn.js +2 -0
- package/dist/pair-command-approve-5Jr6xo-1.js +34 -0
- package/dist/parse-DH0T3Cu9.js +168 -0
- package/dist/perplexity-web-search-provider-DqEogUCL.js +92 -0
- package/dist/perplexity-web-search-provider.runtime-Clsvb0kX.js +332 -0
- package/dist/perplexity-web-search-provider.runtime-bOr3A0b4.js +2 -0
- package/dist/perplexity-web-search-provider.runtime.js +1 -1
- package/dist/perplexity-web-search-provider.shared-DzXnzvHH.js +73 -0
- package/dist/persistent-bindings.lifecycle-CjXEQUMz.js +94 -0
- package/dist/pi-embedded-Cp3OIZy9.js +2 -0
- package/dist/pi-embedded-DJN2vlNF.js +6 -0
- package/dist/pi-embedded-runner-DXHhhGRS.js +8348 -0
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-D1jUEg-R.js +23 -0
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime.js +1 -1
- package/dist/pi-embedded-utils-CtraRgVx.js +212 -0
- package/dist/pi-embedded.runtime-DQPfEvkF.js +5 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/pi-model-discovery-B9q9ykaA.js +232 -0
- package/dist/plugin-enabled-CMdiRqJS.js +71 -0
- package/dist/plugin-registration-BhPJI7wp.js +23 -0
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/account-core.js +2 -2
- package/dist/plugin-sdk/account-helpers.js +1 -1
- package/dist/plugin-sdk/account-resolution.js +2 -2
- 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 +8 -8
- package/dist/plugin-sdk/agent-runtime.js +11 -11
- package/dist/plugin-sdk/allow-from.js +1 -1
- 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-native-runtime.js +2 -2
- package/dist/plugin-sdk/approval-reply-runtime.js +1 -1
- package/dist/plugin-sdk/approval-runtime.js +5 -5
- package/dist/plugin-sdk/browser-node-runtime.js +5 -5
- package/dist/plugin-sdk/browser-security-runtime.js +2 -2
- package/dist/plugin-sdk/browser-setup-tools.js +3 -3
- package/dist/plugin-sdk/browser-support.js +10 -10
- package/dist/plugin-sdk/channel-config-helpers.js +1 -1
- package/dist/plugin-sdk/channel-config-writes.js +1 -1
- package/dist/plugin-sdk/channel-core.js +2 -2
- package/dist/plugin-sdk/channel-feedback.js +2 -2
- package/dist/plugin-sdk/channel-inbound.js +4 -4
- package/dist/plugin-sdk/channel-message.js +2 -2
- package/dist/plugin-sdk/channel-policy.js +2 -2
- package/dist/plugin-sdk/channel-reply-pipeline.js +2 -2
- package/dist/plugin-sdk/channel-runtime.js +4 -4
- package/dist/plugin-sdk/channel-setup.js +1 -1
- package/dist/plugin-sdk/cli-runtime.js +2 -2
- package/dist/plugin-sdk/command-auth-native.js +1 -1
- package/dist/plugin-sdk/command-auth.js +6 -6
- package/dist/plugin-sdk/command-detection.js +1 -1
- package/dist/plugin-sdk/command-status.js +1 -1
- package/dist/plugin-sdk/command-surface.js +1 -1
- package/dist/plugin-sdk/compat.js +5 -5
- package/dist/plugin-sdk/config-mutation.js +1 -1
- package/dist/plugin-sdk/config-runtime.js +8 -8
- 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 +4 -4
- package/dist/plugin-sdk/device-bootstrap.js +4 -4
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/extension-shared.js +1 -1
- package/dist/plugin-sdk/feishu.js +5 -5
- package/dist/plugin-sdk/fetch-runtime.js +2 -2
- package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
- package/dist/plugin-sdk/gateway-runtime.js +2 -2
- package/dist/plugin-sdk/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 +16 -16
- package/dist/plugin-sdk/markdown-table-runtime.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime-shared.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime.js +1 -1
- package/dist/plugin-sdk/media-runtime.js +7 -7
- package/dist/plugin-sdk/media-understanding-runtime.js +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 +1 -1
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-core.js +2 -2
- package/dist/plugin-sdk/memory-core.js +4 -4
- package/dist/plugin-sdk/memory-host-core.js +2 -2
- package/dist/plugin-sdk/models-provider-runtime.js +1 -1
- package/dist/plugin-sdk/native-command-registry.js +1 -1
- package/dist/plugin-sdk/outbound-media.js +2 -2
- package/dist/plugin-sdk/outbound-runtime.js +2 -2
- package/dist/plugin-sdk/plugin-test-runtime.js +2 -2
- package/dist/plugin-sdk/provider-auth-api-key.js +3 -3
- package/dist/plugin-sdk/provider-auth-login.js +1 -1
- package/dist/plugin-sdk/provider-auth-runtime.js +4 -4
- package/dist/plugin-sdk/provider-auth.js +6 -6
- package/dist/plugin-sdk/provider-catalog-shared.js +1 -1
- package/dist/plugin-sdk/provider-entry.js +1 -1
- package/dist/plugin-sdk/provider-http.js +3 -3
- package/dist/plugin-sdk/provider-model-shared.js +2 -2
- package/dist/plugin-sdk/provider-stream-family.js +5 -5
- package/dist/plugin-sdk/provider-stream-shared.js +3 -3
- package/dist/plugin-sdk/provider-stream.js +4 -4
- package/dist/plugin-sdk/provider-test-contracts.js +1 -1
- package/dist/plugin-sdk/provider-tools.js +1 -1
- package/dist/plugin-sdk/provider-transport-runtime.js +2 -2
- package/dist/plugin-sdk/provider-web-fetch.js +1 -1
- package/dist/plugin-sdk/provider-web-search-config-contract.js +2 -2
- package/dist/plugin-sdk/provider-web-search-contract.js +2 -2
- package/dist/plugin-sdk/provider-web-search.js +4 -4
- package/dist/plugin-sdk/provider-zai-endpoint.js +1 -1
- package/dist/plugin-sdk/reply-chunking.js +2 -2
- package/dist/plugin-sdk/reply-dispatch-runtime.js +2 -2
- package/dist/plugin-sdk/reply-runtime.js +13 -13
- package/dist/plugin-sdk/retry-runtime.js +2 -2
- package/dist/plugin-sdk/routing.js +1 -1
- package/dist/plugin-sdk/runtime-env.js +5 -5
- package/dist/plugin-sdk/runtime-secret-resolution.js +1 -1
- package/dist/plugin-sdk/runtime.js +2 -2
- package/dist/plugin-sdk/sandbox.js +2 -2
- package/dist/plugin-sdk/session-store-runtime.js +2 -2
- package/dist/plugin-sdk/setup-runtime.js +1 -1
- package/dist/plugin-sdk/setup-tools.js +2 -2
- package/dist/plugin-sdk/setup.js +3 -3
- package/dist/plugin-sdk/simple-completion-runtime.js +2 -2
- package/dist/plugin-sdk/skill-commands-runtime.js +1 -1
- package/dist/plugin-sdk/speech-core.js +2 -2
- package/dist/plugin-sdk/speech.js +1 -1
- package/dist/plugin-sdk/src/config/sessions/transcript.d.ts +5 -0
- package/dist/plugin-sdk/src/infra/heartbeat-degeneration-guard.d.ts +31 -0
- package/dist/plugin-sdk/src/infra/heartbeat-events.d.ts +6 -0
- package/dist/plugin-sdk/ssrf-runtime.js +2 -2
- package/dist/plugin-sdk/testing.js +4 -4
- package/dist/plugin-sdk/text-runtime.js +4 -4
- package/dist/plugin-sdk/text-utility-runtime.js +1 -1
- package/dist/plugin-sdk/video-generation-core.js +1 -1
- package/dist/plugin-sdk/video-generation-runtime.js +1 -1
- package/dist/plugin-sdk/video-generation.js +1 -1
- package/dist/plugin-sdk/web-media.js +2 -2
- package/dist/plugin-service-31XQtuZr.js +2494 -0
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins-cli-20A8dYUN.js +576 -0
- package/dist/plugins-update-command-D0Iv4BPb.js +1009 -0
- package/dist/policy-BEVsx7jw.js +172 -0
- package/dist/ports-CwmEcxRS.js +433 -0
- package/dist/ports-Dr-FwKZD.js +263 -0
- package/dist/preemptive-compaction-DlRJt7Zq.js +430 -0
- package/dist/proactive-scheduler-B3w5rW0h.js +1444 -0
- package/dist/probe-BY1GUZvs.js +178 -0
- package/dist/probe-CCTEVLB2.js +54 -0
- package/dist/probe-CcQ1ucSE.js +2 -0
- package/dist/probe-DcSW0ngD.js +426 -0
- package/dist/probe-auth-C7DjgU_m.js +69 -0
- package/dist/probe-auth-Cfwc8qaj.js +3 -0
- package/dist/program-E_Dt_QTp.js +111 -0
- package/dist/prompt-overlay-DsEnjhTn.js +72 -0
- package/dist/prompt-select-styled-Dtw90p2J.js +5305 -0
- package/dist/provider-api-key-auth-CerNsquw.js +113 -0
- package/dist/provider-api-key-auth.runtime-B0BpFkRm.js +14 -0
- package/dist/provider-api-key-auth.runtime.js +1 -1
- package/dist/provider-auth-DwgUXcgu.js +36 -0
- package/dist/provider-auth-api-key-BQfXwqgU.js +5 -0
- package/dist/provider-auth-choice-BKxMQwxd.js +134 -0
- package/dist/provider-auth-choice-preference-DeDdHlsY.js +62 -0
- package/dist/provider-auth-input-BfXB22nt.js +117 -0
- package/dist/provider-auth-login-BYMTrXdl.js +8 -0
- package/dist/provider-auth-login.runtime-CCwO-k5h.js +206 -0
- package/dist/provider-auth-login.runtime.js +1 -1
- package/dist/provider-auth-runtime-p93v7b23.js +36 -0
- package/dist/provider-catalog-BA7O6Faq.js +18 -0
- package/dist/provider-catalog-BZJt3Ew2.js +75 -0
- package/dist/provider-catalog-CjNAbR9b.js +12 -0
- package/dist/provider-catalog-CpTP4D3p.js +56 -0
- package/dist/provider-catalog-CzVEmVzS.js +11 -0
- package/dist/provider-catalog-D1iJW59q.js +11 -0
- package/dist/provider-catalog-Dc48HHhB.js +11 -0
- package/dist/provider-catalog-KHD3te_R.js +61 -0
- package/dist/provider-catalog-jKq2UIeG.js +17 -0
- package/dist/provider-catalog-pmlFBXYr.js +26 -0
- package/dist/provider-catalog-shared-Cra7j-_m.js +104 -0
- package/dist/provider-catalog-xzYpukvK.js +13 -0
- package/dist/provider-compat-CCwXKQGq.js +37 -0
- package/dist/provider-discovery-DubIrc_R.js +2 -0
- package/dist/provider-dispatcher-Dl07uV70.js +22 -0
- package/dist/provider-entry-DkwXZuZY.js +97 -0
- package/dist/provider-http-CHFd_hrC.js +26 -0
- package/dist/provider-iVtrs6XY.js +70 -0
- package/dist/provider-model-shared-CxQysvS-.js +171 -0
- package/dist/provider-models-B3FlcSqf.js +225 -0
- package/dist/provider-models-B63rx638.js +22 -0
- package/dist/provider-models-BXMZj2p1.js +119 -0
- package/dist/provider-models-Bq_MZ0xR.js +35 -0
- package/dist/provider-models-CsUYkHTw.js +116 -0
- package/dist/provider-models-DCvjBHoV.js +169 -0
- package/dist/provider-openai-codex-oauth-tls-DbmKevdp.js +99 -0
- package/dist/provider-registration-DkqLtXSj.js +57 -0
- package/dist/provider-registration-vrLHkywc.js +238 -0
- package/dist/provider-stream-DTbeHqKf.js +285 -0
- package/dist/provider-stream-family-Cz7SHqeS.js +2 -0
- package/dist/provider-stream-shared-CTpijFfV.js +80 -0
- package/dist/provider-tools-X4kNlvXF.js +332 -0
- package/dist/provider-usage-4x0im5xP.js +3 -0
- package/dist/provider-usage-CdkW3Bkb.js +289 -0
- package/dist/provider-web-search-CyGNmODH.js +55 -0
- package/dist/provider-web-search-contract-BEZzFHD8.js +12 -0
- package/dist/provider-web-search-contract-fields-DNH2_b3H.js +38 -0
- package/dist/proxy-stream-wrappers-BcJuaE24.js +480 -0
- package/dist/push-apns-CO3sqbX3.js +1061 -0
- package/dist/pw-ai-DEf5tZLp.js +2268 -0
- package/dist/qmd-manager-CrqmeTuY.js +1799 -0
- package/dist/qr-cli-g_Pkqstu.js +359 -0
- package/dist/qr-image-DcG1bUox.js +2 -0
- package/dist/queue-BveCZpTb.js +636 -0
- package/dist/realtime-provider-shared-BIili3oc.js +21 -0
- package/dist/realtime-transcription-provider-DqEHy_Jr.js +180 -0
- package/dist/realtime-voice-provider-Dau1KlKK.js +342 -0
- package/dist/record-shared-CC55xbFE.js +10 -0
- package/dist/region-CPFmncMW.js +74 -0
- package/dist/register.agent-D5el253o.js +241 -0
- package/dist/register.configure-DeqUaelp.js +15 -0
- package/dist/register.maintenance-Dv5x9ZE6.js +443 -0
- package/dist/register.message-e2Pbh8A_.js +601 -0
- package/dist/register.onboard-COuTKpAw.js +83 -0
- package/dist/register.runtime-BjOIl4eF.js +81 -0
- package/dist/register.runtime-BzJ6RkQN.js +343 -0
- package/dist/register.runtime.js +1 -1
- package/dist/register.setup-DQYY7K4K.js +104 -0
- package/dist/register.status-health-sessions-CXNGQh_O.js +1211 -0
- package/dist/register.subclis-B6uy_ogx.js +232 -0
- package/dist/register.subclis-Cmdrfiej.js +3 -0
- package/dist/remote-env-DU45InJB.js +12 -0
- package/dist/replay-policy-BKyiI8sk.js +10 -0
- package/dist/replay-policy-C6igC4nS.js +8 -0
- package/dist/reply-Bd8ShNWW.js +3523 -0
- package/dist/reply-payloads-CFKnBOGu.js +78 -0
- package/dist/reply-prefix-D43zayDn.js +33 -0
- package/dist/reply.runtime-ByKwE5dg.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/resolve-CSTOvc_c.js +280 -0
- package/dist/restart-C0QhPXk1.js +454 -0
- package/dist/restart-handoff-Dd9C10Ns.js +2 -0
- package/dist/restart-health-BAtQdyZh.js +203 -0
- package/dist/restart-health-CnQMSvvJ.js +2 -0
- package/dist/restart-stale-pids-CiBNQGrr.js +529 -0
- package/dist/retry-C1lmuHl8.js +76 -0
- package/dist/retry-policy-B_7wH7D2.js +58 -0
- package/dist/route-reply-CXZFXlfK.js +141 -0
- package/dist/route-reply.runtime-BK8V9NEg.js +2 -0
- package/dist/route-reply.runtime.js +1 -1
- package/dist/rpc-f0OkPaI1.js +61 -0
- package/dist/rpc.runtime-BQ78T_pB.js +21 -0
- package/dist/rpc.runtime.js +1 -1
- package/dist/run-main-CkwrrhfI.js +453 -0
- package/dist/run-wait-B4pXPLkF.js +118 -0
- package/dist/runner-BSA9M_M9.js +1497 -0
- package/dist/runtime-C18YgW822.js +242 -0
- package/dist/runtime-C3OJQ1Xd.js +200 -0
- package/dist/runtime-CDNVtwVk.js +72 -0
- package/dist/runtime-CMNHfJtF.js +725 -0
- package/dist/runtime-C_o_otMV.js +355 -0
- package/dist/runtime-CiJWy5Ce.js +9 -0
- package/dist/runtime-Di50Fr1z.js +191 -0
- package/dist/runtime-W3qG5LHM.js +2 -0
- package/dist/runtime-api-Bx7nlc4w.js +12 -0
- package/dist/runtime-api-DCNC_FTy2.js +2 -0
- package/dist/runtime-api-_Z8MjR0l.js +3 -0
- package/dist/runtime-embedded-pi.runtime-Cv0MW9ps.js +3 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-env-BeD13rEG.js +9 -0
- package/dist/runtime-internal-DclGtT-e.js +2 -0
- package/dist/runtime-model-auth.runtime-Bjl23_fr.js +39 -0
- package/dist/runtime-model-auth.runtime.js +1 -1
- package/dist/runtime-oEwr_zQb.js +107 -0
- package/dist/runtime-plugins-CwWhqXLJ.js +69 -0
- package/dist/runtime-prepare.runtime-Bi-YD5R-.js +80 -0
- package/dist/runtime-prepare.runtime.js +1 -1
- package/dist/runtime-provider-CSEDbSxr.js +21 -0
- package/dist/runtime-shared-BxJFDFe6.js +249 -0
- package/dist/runtime-taskflow-RwpXng2l.js +250 -0
- package/dist/runtime-web-channel-plugin-Bw74Ar_q.js +215 -0
- package/dist/runtime-web-tools-CEaAGeYr.js +1467 -0
- package/dist/sandbox-BC2XUWcW.js +4 -0
- package/dist/sandbox-cli-ain0MYTB.js +447 -0
- package/dist/sandbox-epLgxWBQ.js +2586 -0
- package/dist/schtasks-CL3tJAH5.js +785 -0
- package/dist/secrets-cli-iLwRZbRt.js +2114 -0
- package/dist/security-audit-DfrokBuq.js +34 -0
- package/dist/security-cli-BqsMM550.js +486 -0
- package/dist/semantic-dedup-BBpIPaSV.js +95 -0
- package/dist/send-C5LHdZqP.js +993 -0
- package/dist/send-media-Df0E2Z_m.js +2123 -0
- package/dist/server-2CD2yd73.js +13 -0
- package/dist/server-B44RMlVT.js +77 -0
- package/dist/server-context-SulhWpXY.js +4164 -0
- package/dist/server-methods-BPzzX5VC.js +11937 -0
- package/dist/server-middleware-WQzQIrD4.js +110 -0
- package/dist/server-node-events-Ug_Atc7G.js +451 -0
- package/dist/server.impl-InfVdwPj.js +19765 -0
- package/dist/service-CK-XuLCu.js +132 -0
- package/dist/service-D9X-uqEA.js +2 -0
- package/dist/service-audit-BQx1zTWD.js +2 -0
- package/dist/service-audit-CQC1FeD7.js +254 -0
- package/dist/session-B5RmIL21.js +48 -0
- package/dist/session-archive.runtime-B1x5wHBw.js +2 -0
- package/dist/session-archive.runtime.js +1 -1
- package/dist/session-conversation-CFty7VTc.js +27 -0
- package/dist/session-cost-usage-CckjvorH.js +2 -0
- package/dist/session-cost-usage-DMRjhi4B.js +648 -0
- package/dist/session-file-DGJqy_ea.js +44 -0
- package/dist/session-key-D-jBcxEp.js +65 -0
- package/dist/session-meta-BijZlLS3.js +109 -0
- package/dist/session-override-1YQHEAlz.js +103 -0
- package/dist/session-reset-model.runtime-CEWrfXLr.js +120 -0
- package/dist/session-reset-model.runtime.js +1 -1
- package/dist/session-reset-service-Dphtb16d.js +474 -0
- package/dist/session-subagent-reactivation.runtime-CF4aqSpn.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-tab-registry-DG9SGi0I.js +553 -0
- package/dist/session-updates-BRFvmIoC.js +234 -0
- package/dist/session-updates.runtime-CiHARWGr.js +2 -0
- package/dist/session-updates.runtime.js +1 -1
- package/dist/session-utils-Cai4P9ih.js +930 -0
- package/dist/session-utils.fs-DV8bxCEw.js +537 -0
- package/dist/sessions-BTcXDmCA.js +2 -0
- package/dist/sessions-CyYVTseV.js +45 -0
- package/dist/sessions-Fb0ep3uj.js +231 -0
- package/dist/sessions.runtime-BGyynSR4.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/setup-CjEjg8Ci.js +505 -0
- package/dist/setup-D-ypxGnK.js +329 -0
- package/dist/setup-DjympYIJ.js +15 -0
- package/dist/setup-binary-BKTpThn7.js +2 -0
- package/dist/setup-surface-QaubzT60.js +586 -0
- package/dist/setup-tools-6s2MNbj0.js +4 -0
- package/dist/setup-wizard-proxy-BscKn1FO.js +139 -0
- package/dist/setup.finalize-B3MWkUF9.js +436 -0
- package/dist/setup.gateway-config-BdK0tA_r.js +246 -0
- package/dist/shared-0JcWj8-R.js +224 -0
- package/dist/shared-BAqqhcWT.js +127 -0
- package/dist/shared-BOd3OCF0.js +36 -0
- package/dist/shared-D5_A7-ng.js +219 -0
- package/dist/shared-DICWV0-6.js +218 -0
- package/dist/shared-DiGX-JK8.js +137 -0
- package/dist/shared-DktX3NHd.js +175 -0
- package/dist/shared-runtime-BltNIfGY.js +7 -0
- package/dist/short-term-promotion-CT1zdD1r.js +1631 -0
- package/dist/simple-completion-runtime-CZyp8rJ3.js +131 -0
- package/dist/simple-completion-transport-BWyoXghG.js +32 -0
- package/dist/skill-commands-BC_2IdwF.js +82 -0
- package/dist/skill-commands.runtime-BP6BnOeq.js +2 -0
- package/dist/skill-commands.runtime.js +1 -1
- package/dist/skills-install-CHUWYiLs.js +822 -0
- package/dist/speech-core-aXx4I3sB.js +126 -0
- package/dist/speech-provider-B2yBILHX.js +101 -0
- package/dist/speech-provider-BTBQ5VOv.js +103 -0
- package/dist/speech-provider-BciszvJf.js +184 -0
- package/dist/speech-provider-BoQDEC_Y.js +167 -0
- package/dist/speech-provider-C-wTEx8k.js +182 -0
- package/dist/speech-provider-DYJcz4pW.js +39 -0
- package/dist/ssh-tunnel-B-uzzPcH.js +2 -0
- package/dist/ssh-tunnel-Bu9s0zUo.js +159 -0
- package/dist/ssrf-runtime-D1skzXnx.js +6 -0
- package/dist/stage-sandbox-media.runtime-DhlTQjXA.js +230 -0
- package/dist/stage-sandbox-media.runtime.js +1 -1
- package/dist/standalone-generate-BRvNW_O7.js +2 -0
- package/dist/standalone-generate-CDfZss4x.js +217 -0
- package/dist/state-migrations-BNib6l8O.js +823 -0
- package/dist/status-8clcfnN0.js +473 -0
- package/dist/status-CNcOKUs2.js +500 -0
- package/dist/status-D1l9Tu3s.js +399 -0
- package/dist/status-P3bvFirO.js +3 -0
- package/dist/status-TmH9qSMG.js +2 -0
- package/dist/status-all-BeyVXDNT.js +495 -0
- package/dist/status-json-Cj42CVZZ.js +14 -0
- package/dist/status-json-command-DWk5RiyN.js +92 -0
- package/dist/status-runtime-shared-orzti3tZ.js +271 -0
- package/dist/status.agent-local-BEtIuLEr.js +58 -0
- package/dist/status.command.text-runtime-B-tNLc3T.js +15 -0
- package/dist/status.format-VfGIeDvx.js +60 -0
- package/dist/status.gateway-connection.runtime-BrkaJ2f5.js +2 -0
- package/dist/status.gateway-connection.runtime.js +1 -1
- package/dist/status.gateway-probe-BwuiZk1h.js +16 -0
- package/dist/status.scan-DegSjLE2.js +62 -0
- package/dist/status.scan-overview-CrSELCru.js +395 -0
- package/dist/status.scan.fast-json-Bm5lN6IK.js +2 -0
- package/dist/status.scan.fast-json-Ch2Zw813.js +128 -0
- package/dist/status.scan.runtime-D-LvzBYN.js +417 -0
- package/dist/status.scan.runtime.js +1 -1
- package/dist/status.summary-OB-43Bvk.js +2 -0
- package/dist/status.summary-gJukahkb.js +209 -0
- package/dist/status.update-BFj-9E8m.js +79 -0
- package/dist/status.update-DYICl5t8.js +2 -0
- package/dist/store-D_vXZ7m9.js +1112 -0
- package/dist/store.runtime-6eaZtPq6.js +2 -0
- package/dist/store.runtime.js +1 -1
- package/dist/stream-B84y4XQY.js +76 -0
- package/dist/stream-BgcqyefI.js +649 -0
- package/dist/stream-C_VJaXT6.js +26 -0
- package/dist/stream-D5lrRuHb.js +129 -0
- package/dist/stream-DXG7L3j5.js +27 -0
- package/dist/stream-UtEiCziE.js +153 -0
- package/dist/stream-wrappers-B7-5gN0i.js +144 -0
- package/dist/strip-inbound-meta-BSHFFiJd.js +155 -0
- package/dist/subagent-announce.registry.runtime-R2bop0gW.js +3 -0
- package/dist/subagent-announce.registry.runtime.js +1 -1
- package/dist/subagent-control-UyMtkJwo.js +485 -0
- package/dist/subagent-followup.runtime-bTK0TymS.js +68 -0
- package/dist/subagent-followup.runtime.js +1 -1
- package/dist/subagent-list-c0JKZR0g.js +168 -0
- package/dist/subagent-orphan-recovery-CSEzwva5.js +214 -0
- package/dist/subagent-registry-Be219RP1.js +2889 -0
- package/dist/subagent-registry-read-IQtTTWj3.js +57 -0
- package/dist/subagent-registry-runtime-Dk57Y91p.js +2 -0
- package/dist/subagent-registry.runtime-D6h_BK2i.js +3 -0
- package/dist/subagent-registry.runtime.js +1 -1
- package/dist/subagent-spawn-BeyYZuFf.js +782 -0
- package/dist/subagents-format-ZcZBg1Vh.js +629 -0
- package/dist/supervisor-DVGQ2rPX.js +737 -0
- package/dist/system-cli-_3czEwa7.js +60 -0
- package/dist/system-prompt-BBrWR8Ef.js +711 -0
- package/dist/system-prompt-Dc6Xr30m.js +2 -0
- package/dist/system-prompt-cache-boundary-BqVZ8lnu.js +25 -0
- package/dist/system-run-command-W-wf2HqZ.js +300 -0
- package/dist/systemd-BeYwG5kN.js +591 -0
- package/dist/systemd-hints-BpWajEeA.js +76 -0
- package/dist/systemd-linger-DsTUkfUn.js +68 -0
- package/dist/systemd-linger-X-aDLDla.js +2 -0
- package/dist/tables-BGTNKk6h.js +832 -0
- package/dist/tailscale-status-CCyq-VvN.js +72 -0
- package/dist/targets-BN0-h0GJ.js +300 -0
- package/dist/targets-CXrDP8_l.js +595 -0
- package/dist/targets.runtime-BvBk-CQ8.js +2 -0
- package/dist/targets.runtime.js +1 -1
- package/dist/task-executor-DNUNtRg8.js +350 -0
- package/dist/task-owner-access--E5Vkg9U.js +48 -0
- package/dist/task-registry-COE-B6MO.js +2346 -0
- package/dist/task-registry-control.runtime-BzsTfRw1.js +3 -0
- package/dist/task-registry-control.runtime.js +1 -1
- package/dist/task-registry-delivery-runtime-Cv6xz8KP.js +2 -0
- package/dist/task-registry-delivery-runtime-DSfcd2LA.js +3 -0
- package/dist/task-registry.maintenance-Bhd9abl9.js +2 -0
- package/dist/task-registry.maintenance-W3lTkY0l.js +425 -0
- package/dist/testing-CQ_-oCQB.js +441 -0
- package/dist/text-report-BgqWDKJR.js +587 -0
- package/dist/text-runtime-asv4kIxS.js +313 -0
- package/dist/thread-bindings-BCRWofo_.js +223 -0
- package/dist/tool-auth-shared-BWZwTobX.js +53 -0
- package/dist/tool-config-shared-BleK697I.js +19 -0
- package/dist/tool-schema-runtime-DZsW_KR4.js +1892 -0
- package/dist/tools-effective-inventory-SB9JwX-y.js +152 -0
- package/dist/tools.runtime-J5rhfXQp.js +4 -0
- package/dist/tools.runtime.js +1 -1
- package/dist/transcript-B8bIvyol.js +2 -0
- package/dist/transcript-CxdKo8Wl.js +222 -0
- package/dist/transcript-DxWx6dVc.js +233 -0
- package/dist/transcript.runtime-CmBnobSv.js +2 -0
- package/dist/transcript.runtime.js +1 -1
- package/dist/transport-policy-BGfaKNz0.js +75 -0
- package/dist/transport-ready-MwpvBxBB.js +36 -0
- package/dist/tts-C1GyTLOi.js +31 -0
- package/dist/tts-JSdoZrZA.js +40 -0
- package/dist/tui-Cqdp1x16.js +4018 -0
- package/dist/tui-cli-BC4O3H6r.js +31 -0
- package/dist/typing-mode-BoJYxUas.js +84 -0
- package/dist/undici-global-dispatcher-BLnQvRel.js +99 -0
- package/dist/update-BrD8yWSp.js +1253 -0
- package/dist/update-check-gcnsxBqT.js +431 -0
- package/dist/update-cli-BzaCTuax.js +1779 -0
- package/dist/update-runner-Cvxezvhf.js +1492 -0
- package/dist/usage-CG1Nshi3.js +71 -0
- package/dist/usage-format-DQTT4pqY.js +507 -0
- package/dist/usage-format-sR4xu0xw.js +2 -0
- package/dist/utils-CBnbWiRL.js +189 -0
- package/dist/video-generation-CksImGdK.js +167 -0
- package/dist/video-generation-provider-7YR4_ldd.js +171 -0
- package/dist/video-generation-provider-AlAZkYIW.js +181 -0
- package/dist/video-generation-provider-BEqi4pUJ.js +104 -0
- package/dist/video-generation-provider-CraaZaR7.js +77 -0
- package/dist/video-generation-provider-CuvO2Hzh.js +246 -0
- package/dist/video-generation-provider-D-t16ACe.js +240 -0
- package/dist/video-generation-provider-DeowxvLt.js +233 -0
- package/dist/video-generation-provider-HbOZ3qzI.js +227 -0
- package/dist/video-generation-provider-_apx1yFE.js +263 -0
- package/dist/video-generation-provider-bvpb6cdV.js +64 -0
- package/dist/video-http-DRLB0lIA.js +29 -0
- package/dist/video-model-catalog-BE5LhQSo.js +187 -0
- package/dist/web-media-BYZC5tOg.js +330 -0
- package/dist/web-media-DKpK9EDb.js +2 -0
- package/dist/web-search-DSDz1iyf.js +221 -0
- package/dist/web-search-provider-DnYRRBVM.js +155 -0
- package/dist/web-search-provider-common-B9jozd8T.js +206 -0
- package/dist/web-search-provider-config-DCqeS6ct.js +52 -0
- package/dist/web-shared--44LWgiH.js +414 -0
- package/dist/x-search-shared-DKPdPR5_.js +109 -0
- package/docs/platforms/termux.md +3 -3
- package/package.json +1 -1
- package/dist/abort-D8E9Viul.js +0 -202
- package/dist/abort-cutoff.runtime-buOT5TQ9.js +0 -20
- package/dist/abort-primitives-B6Qmun6I.js +0 -93
- package/dist/abort.runtime-DBAOcoA0.js +0 -2
- package/dist/account-action-gate-BT_vXl45.js +0 -114
- package/dist/acp-cli-CK-PaZW1.js +0 -2171
- package/dist/acp-spawn-DREGP-Dg.js +0 -1024
- package/dist/acp-stateful-target-driver-BCNEZ0qY.js +0 -88
- package/dist/action-agents-Bghuxxiu.js +0 -67
- package/dist/action-focus-DsDsKPpt.js +0 -124
- package/dist/action-help-Dea7LzSX.js +0 -7
- package/dist/action-info-BeSnrfUx.js +0 -58
- package/dist/action-kill-A8Gm3ASV.js +0 -33
- package/dist/action-list-BkyeGY4Y.js +0 -21
- package/dist/action-log-C-PshBJC.js +0 -30
- package/dist/action-send-B7O-Cyik.js +0 -39
- package/dist/action-spawn-0DHhLXka.js +0 -46
- package/dist/action-unfocus-DQ3mnyh6.js +0 -28
- package/dist/agent-ChCFDEkx.js +0 -2
- package/dist/agent-command-HwJps2h3.js +0 -1479
- package/dist/agent-list-3PG6_Efg.js +0 -67
- package/dist/agent-runner-utils-dAUhMPP0.js +0 -202
- package/dist/agent-runner.runtime-BvOJ3ms5.js +0 -2825
- package/dist/agents-DGs1CWL1.js +0 -5
- package/dist/agents-R-PuEDKr.js +0 -887
- package/dist/allow-from-REaY_RBI.js +0 -164
- package/dist/anthropic-cache-control-payload-CvmvKgnD.js +0 -28
- package/dist/anthropic-payload-policy-CANcBjYh.js +0 -136
- package/dist/anthropic-vertex-stream-BOdy5JqE.js +0 -5666
- package/dist/api-BChlvn8B.js +0 -5
- package/dist/api-BEM__kGA.js +0 -4
- package/dist/api-BQr2q6_t.js +0 -4
- package/dist/api-BzKZ27N_.js +0 -2
- package/dist/api-C7GkbUyn.js +0 -35
- package/dist/api-Cbv-utnp.js +0 -45
- package/dist/api-Csv5YmWm.js +0 -3
- package/dist/api-CvN3buT5.js +0 -3
- package/dist/api-D7OkY2ha.js +0 -5
- package/dist/api-D7cDr4c5.js +0 -19
- package/dist/api-Df793QOm.js +0 -2
- package/dist/apply-DG2_D6J9.js +0 -493
- package/dist/apply.runtime-4Oo5FMhm.js +0 -166
- package/dist/apply.runtime-O1GHmKzQ.js +0 -2
- package/dist/approval-gateway-resolver-By95iflu.js +0 -58
- package/dist/approval-gateway-runtime-C_2l5m0E.js +0 -2
- package/dist/approval-handler-runtime-BcIBxW0i.js +0 -439
- package/dist/approval-native-helpers-Dy60ZISZ.js +0 -33
- package/dist/approval-native-runtime-zPzOoZlr.js +0 -709
- package/dist/approval-renderers-oIQzoEfU.js +0 -64
- package/dist/asr-ChZCFIGe.js +0 -195
- package/dist/audit-DfEhlnGH.js +0 -885
- package/dist/audit-extra.async-B-_wy7Tg.js +0 -847
- package/dist/audit.deep.runtime-CqfZhQYQ.js +0 -2
- package/dist/audit.nondeep.runtime-BEYvNUL0.js +0 -859
- package/dist/audit.runtime-BZIKjR29.js +0 -7
- package/dist/auth-B4RCO9pL.js +0 -181
- package/dist/auth-choice-BKccwE1z.js +0 -353
- package/dist/auth-choice-BjfYwU59.js +0 -71
- package/dist/auth-choice-D5arr50x.js +0 -3
- package/dist/auth-choice.apply-helpers-Bte42LAy.js +0 -2
- package/dist/binding-routing-BOSLYF1b.js +0 -50
- package/dist/binding-targets-JPaoc1qf.js +0 -99
- package/dist/block-streaming-CEz8_YvV.js +0 -103
- package/dist/bootstrap-files-MSqLqaFY.js +0 -206
- package/dist/bridge-server-vuRzCH3N.js +0 -103
- package/dist/browser-node-runtime-C3g2gsaZ.js +0 -12
- package/dist/browser-open-BP0tUM0r.js +0 -94
- package/dist/browser-runtime-BF4n8YQ5.js +0 -377
- package/dist/browser-security-runtime-Ci12HfND.js +0 -10
- package/dist/browser-setup-tools-6xFifQZE.js +0 -12
- package/dist/btw-command-YUgszbXM.js +0 -17
- package/dist/call-5P034-jt.js +0 -495
- package/dist/call-BUDlcDxf.js +0 -2
- package/dist/call.runtime-DUm_Bttq.js +0 -2
- package/dist/capability-cli-Dedr9-5P.js +0 -1357
- package/dist/catalog-provider-B6R9uezh.js +0 -40
- package/dist/cdp.helpers-BIDb2U4E.js +0 -372
- package/dist/channel-config-helpers-XmE0KJZk.js +0 -462
- package/dist/channel-core-CjiYN8RW.js +0 -5
- package/dist/channel-feedback-1aAUqgjY.js +0 -259
- package/dist/channel-plugin-resolution-CN215YtG.js +0 -146
- package/dist/channel-policy-B4aZ_llS.js +0 -270
- package/dist/channel-reply-pipeline-CKLpE2fN.js +0 -26
- package/dist/channel-runtime-B5LPKA4v.js +0 -6
- package/dist/channel.runtime-dnBq2L1v.js +0 -399
- package/dist/channels-CYG1q9PH.js +0 -1147
- package/dist/channels-cli-BoG2L78B.js +0 -248
- package/dist/chat-DnjpEdFB.js +0 -213
- package/dist/chat-history-text-BzdTyI1F.js +0 -42
- package/dist/chrome-e2X2vBVg.js +0 -1080
- package/dist/chrome.executables-CnUVYt-H.js +0 -550
- package/dist/chunk-DgPObAqu.js +0 -267
- package/dist/clack-prompter-BWIrYn8q.js +0 -113
- package/dist/cli-CMvRUMSs.js +0 -154
- package/dist/cli-CYvUljnp.js +0 -57
- package/dist/cli-Cw69q4uo.js +0 -2
- package/dist/cli-auth-seam-BL5t2dya.js +0 -14
- package/dist/cli-backend-Cykx4ud8.js +0 -66
- package/dist/cli-migration-CSx1vbkG.js +0 -127
- package/dist/cli-runner-No9Uhffw.js +0 -1662
- package/dist/cli-runner.runtime-COquWuXM.js +0 -3
- package/dist/cli-runner.runtime-egfGJUTe.js +0 -2
- package/dist/cli-runtime-BTdQg8Pm.js +0 -3
- package/dist/cli-shared-DkBvc2Y5.js +0 -142
- package/dist/cli.runtime-djxOgvtS.js +0 -819
- package/dist/client-bootstrap-Dyqi3fZr.js +0 -28
- package/dist/command-auth-D6uvRaCj.js +0 -75
- package/dist/command-config-resolution-2RDsbHMM.js +0 -2
- package/dist/command-config-resolution-DRvqZFqh.js +0 -23
- package/dist/command-detection-q0CJzVXY.js +0 -50
- package/dist/command-execution-startup-BZH7rNOz.js +0 -269
- package/dist/command-format-BNut7VFf.js +0 -2
- package/dist/command-registry-BsP1NxvH.js +0 -3
- package/dist/command-registry-YDJgbbaF.js +0 -113
- package/dist/command-secret-gateway-DFgAUeer.js +0 -528
- package/dist/command-status-builders-DykmScCm.js +0 -145
- package/dist/commands-acp-BblekZyF.js +0 -1017
- package/dist/commands-compact.runtime-CjyTQ5zv.js +0 -10
- package/dist/commands-context-B5MBVGe2.js +0 -34
- package/dist/commands-core.runtime-CnZNxnAO.js +0 -2
- package/dist/commands-handlers.runtime-DDqt62Dn.js +0 -3762
- package/dist/commands-models-DTev55uI.js +0 -306
- package/dist/commands-registry-vcJhtPD2.js +0 -295
- package/dist/commands-registry.runtime-CgwuBxnW.js +0 -2
- package/dist/commands-reset-hooks-BTmweR6W.js +0 -129
- package/dist/commands-status-DkWx-VSd.js +0 -223
- package/dist/commands-status.runtime-B6nbPpK_.js +0 -2
- package/dist/commands-subagents-control.runtime-B3F_rMws.js +0 -3
- package/dist/commands-subagents-control.runtime-D7PSJsuS.js +0 -2
- package/dist/commands.runtime-D0Qr8f98.js +0 -103
- package/dist/comment-shared-C3tQmrNA.js +0 -40
- package/dist/compact-DBa1TeO8.js +0 -11324
- package/dist/compact.runtime-DLdGjZpf.js +0 -7
- package/dist/completion-cli-CywOElFT.js +0 -468
- package/dist/completion-cli-DK-0MXVG.js +0 -2
- package/dist/config-CYhAmlA1.js +0 -166
- package/dist/config-cli-Cd2yLD4r.js +0 -948
- package/dist/config-defaults-ClVNRdCi.js +0 -163
- package/dist/config-guard-C-3SAUrc.js +0 -94
- package/dist/config-runtime-ofeq3zSi.js +0 -14
- package/dist/config-validation-6s7vNOEX.js +0 -279
- package/dist/configure-C-7Lttr2.js +0 -2
- package/dist/configure-D_7K9hWl.js +0 -1162
- package/dist/connection-auth-47Ob5Igi.js +0 -30
- package/dist/context-6q3_7y5g.js +0 -249
- package/dist/context-BEEy1M1I.js +0 -2
- package/dist/context-visibility-2p0h1zWp.js +0 -14
- package/dist/context-writer-CwqLN0tS.js +0 -290
- package/dist/control-auth-BIgC7VS3.js +0 -122
- package/dist/control-ui-links-DEuG_GSl.js +0 -70
- package/dist/conversation-id-Ztzvbgi8.js +0 -140
- package/dist/conversation-runtime-DdIJJiVg.js +0 -31
- package/dist/core-BNu-9utc.js +0 -210
- package/dist/cron-cli-DRRlvCJ_.js +0 -637
- package/dist/daemon-cli-B9FyFrQ6.js +0 -476
- package/dist/daemon-install-TThZ0lbE.js +0 -70
- package/dist/delegate-Cw2paU9j.js +0 -61
- package/dist/deliver-C5UOgw2b.js +0 -3
- package/dist/deliver-DrIu_P0l.js +0 -782
- package/dist/deliver-runtime-Bc7cK2WN.js +0 -2
- package/dist/delivery-outbound.runtime-BjOSpQD-.js +0 -6
- package/dist/delivery-queue-B19gpiaY.js +0 -372
- package/dist/delivery-queue-Cu4I41c4.js +0 -2
- package/dist/device-bootstrap-D8veEU4x.js +0 -4
- package/dist/device-bootstrap-DyTx6egK.js +0 -248
- package/dist/device-bootstrap-profile-I2zbsVdf.js +0 -36
- package/dist/device-identity-HSVRQkzQ.js +0 -2
- package/dist/device-pairing-BCo5v6N5.js +0 -600
- package/dist/devices-cli-CLWd-IeZ.js +0 -336
- package/dist/diagnostics-DPXDETG1.js +0 -2
- package/dist/diagnostics-QjuefiNT.js +0 -33
- package/dist/direct-dm-CNgsDTy-.js +0 -139
- package/dist/directive-handling.fast-lane-BD5lnzxN.js +0 -2
- package/dist/directive-handling.fast-lane-BTy2s6gs.js +0 -64
- package/dist/directive-handling.impl-CX9FZ-B9.js +0 -2
- package/dist/directive-handling.impl-RaR111-L.js +0 -659
- package/dist/directive-handling.parse-DoJ6BVS3.js +0 -376
- package/dist/directive-handling.persist-BLK-h7OI.js +0 -139
- package/dist/directive-handling.persist.runtime-BzAa2gYU.js +0 -2
- package/dist/directive-handling.shared-D1rGNZt5.js +0 -159
- package/dist/directory-cli-C7aTBxHk.js +0 -240
- package/dist/dispatch-DZk7ttx4.js +0 -1126
- package/dist/dispatch-acp-command-bypass-CASB-Big.js +0 -38
- package/dist/dispatch-acp-fiE-20qf.js +0 -969
- package/dist/dispatch-acp-manager.runtime-CXbLrETb.js +0 -3
- package/dist/dispatch-acp-media.runtime-DBNkTr9w.js +0 -3
- package/dist/dispatch-acp-session.runtime-C37eUPyo.js +0 -2
- package/dist/dispatch-acp.runtime-DNcxyRdr.js +0 -19
- package/dist/docker-WeeHs5I_.js +0 -826
- package/dist/doctor-completion-BndMTWBa.js +0 -90
- package/dist/doctor-config-preflight-CSR8GR_C.js +0 -148
- package/dist/doctor-config-preflight-uNP9xifp.js +0 -2
- package/dist/doctor-state-migrations-Cx5F1a8u.js +0 -3
- package/dist/doctor-state-migrations-Dfz-deYl.js +0 -2
- package/dist/drive-DBvfSweP.js +0 -718
- package/dist/embedding-provider-CFWlEX1d.js +0 -26
- package/dist/embedding-provider-CIycGLf5.js +0 -33
- package/dist/embedding-provider-CWndQr_-.js +0 -129
- package/dist/engine-DP8OY9SI.js +0 -82
- package/dist/engine-embeddings-UKC8SpiN.js +0 -1489
- package/dist/entry-capabilities-E73Yz1yg.js +0 -89
- package/dist/exec-approval-forwarder.runtime-B2duci0j.js +0 -3
- package/dist/exec-approval-session-target-B9-fNjez.js +0 -165
- package/dist/exec-approvals-cli-DLdT3aSv.js +0 -485
- package/dist/exec-defaults-VRp473Sn.js +0 -1440
- package/dist/extra-params-CTzuV0V2.js +0 -295
- package/dist/fetch-DnGnGfIj.js +0 -65
- package/dist/fetch-PlNhlY1D.js +0 -256
- package/dist/fetch-guard-DjigeYAg.js +0 -224
- package/dist/format-DqUmaubt.js +0 -245
- package/dist/fragment-collector-PpItYLA6.js +0 -189
- package/dist/gateway-DML9FbXS.js +0 -2
- package/dist/gateway-cli-DVL048Zj.js +0 -1532
- package/dist/gateway-install-token-BamWepdY.js +0 -284
- package/dist/gateway-lock-CYNSW8aZ.js +0 -238
- package/dist/gateway-mGyPIOuQ.js +0 -119
- package/dist/gateway-rpc-CyLUAd7r.js +0 -14
- package/dist/gateway-rpc.runtime-DK8N4h7v.js +0 -23
- package/dist/gemini-cli-provider-CS_UZ3WR.js +0 -106
- package/dist/gemini-web-search-provider-DL5e-EZn.js +0 -167
- package/dist/get-reply-from-config.runtime-D64zRtWj.js +0 -2
- package/dist/group-policy-F3YMiMAb.js +0 -202
- package/dist/health-4aL9xNMP.js +0 -579
- package/dist/health-DdFGarRx.js +0 -2
- package/dist/heartbeat-OI7GfQHK.js +0 -184
- package/dist/heartbeat-runner-Duz5xcLR.js +0 -1289
- package/dist/heartbeat-runner-aaEswJ0B.js +0 -4
- package/dist/heartbeat-runner.runtime-D_qxPkdL.js +0 -2
- package/dist/heartbeat-summary-Brqv8KYX.js +0 -58
- package/dist/heartbeat-visibility-D03CCH71.js +0 -81
- package/dist/hooks-cli-BzctiLUS.js +0 -364
- package/dist/identity-Bxp0hRpo.js +0 -30
- package/dist/identity-avatar-Di47l4kX.js +0 -87
- package/dist/image-B7CPx51h.js +0 -152
- package/dist/image-generation-core-Q4HhEwJY.js +0 -17
- package/dist/image-generation-core.auth.runtime-Bb2j1_UK.js +0 -2
- package/dist/image-generation-provider-0fSo5h6u.js +0 -136
- package/dist/image-generation-provider-CvFrycEI.js +0 -86
- package/dist/image-generation-provider-DA9kPptM.js +0 -163
- package/dist/image-generation-provider-DF7Y6NGy.js +0 -130
- package/dist/image-generation-provider-DTBiXZGp.js +0 -280
- package/dist/image-generation-provider-xgflECGv.js +0 -94
- package/dist/image-generation-runtime-ovbXa2gS.js +0 -2
- package/dist/image-runtime-LoZZdTXn.js +0 -7
- package/dist/images-DKmW2P-z.js +0 -586
- package/dist/inbound-reply-dispatch-C9NpDPnv.js +0 -73
- package/dist/inbound.runtime-CjLChnR7.js +0 -4
- package/dist/inbound.runtime-hVoRWxJ7.js +0 -3
- package/dist/infra-runtime-C8p_6KK_.js +0 -25
- package/dist/ingest-CdJaLY6Q.js +0 -2
- package/dist/ingest-e1icVEK-.js +0 -842
- package/dist/input-files-CT4CpkOx.js +0 -252
- package/dist/inspect-DOgFXMYn.js +0 -2
- package/dist/inspect-Ysjfnqlj.js +0 -282
- package/dist/issue-format-DjVI0gtD.js +0 -2
- package/dist/kaijibot-tools-rpqkBcQN.js +0 -9434
- package/dist/kaijibot-tools.runtime-BfIawT2J.js +0 -2
- package/dist/kill-tree-0Qfa0fPs.js +0 -2
- package/dist/kimi-web-search-provider-CEDoiAGa.js +0 -308
- package/dist/launchd-upj2lSvL.js +0 -556
- package/dist/library-DbtNtgzd.js +0 -45
- package/dist/lifecycle-core-QhQwW6wK.js +0 -422
- package/dist/list.runtime-DfPgbfBV.js +0 -9
- package/dist/list.runtime-X8TKiP_H.js +0 -12
- package/dist/llm-engine-B-oDIukn.js +0 -2
- package/dist/llm-engine-qg7Gd_hc.js +0 -1792
- package/dist/llm-extractor-CU3Bv_HG.js +0 -445
- package/dist/login-DVTUoRIz.js +0 -108
- package/dist/logs-cli-CaPofk7V.js +0 -264
- package/dist/logs-cli.runtime-DbvBADru.js +0 -2
- package/dist/manager-Dgu69d8y.js +0 -3314
- package/dist/manager-DwHThjE2.js +0 -2049
- package/dist/markdown-tables-DQxQ2v3M.js +0 -51
- package/dist/mcp-cli-CbzoZsr0.js +0 -733
- package/dist/media-models-CuHKr-jc.js +0 -49
- package/dist/media-runtime-bKQT2hiX.js +0 -312
- package/dist/media-understanding-BH3AUOGs.js +0 -83
- package/dist/media-understanding-provider-74lVtrOy.js +0 -69
- package/dist/media-understanding-provider-8BsFirXn.js +0 -18
- package/dist/media-understanding-provider-BP6_w_P_.js +0 -67
- package/dist/media-understanding-provider-BpQmj7qs.js +0 -21
- package/dist/media-understanding-provider-BycEDsFD.js +0 -123
- package/dist/media-understanding-provider-C84Ved45.js +0 -14
- package/dist/media-understanding-provider-CK_eMz1X.js +0 -37
- package/dist/media-understanding-provider-DaSwJ4pP.js +0 -18
- package/dist/media-understanding-provider-Dbs2lNmG.js +0 -112
- package/dist/media-understanding-provider-DqLVMGtn.js +0 -30
- package/dist/media-understanding-provider-QqsNUSwt.js +0 -13
- package/dist/media-understanding-runtime-BZA_6tIW.js +0 -2
- package/dist/memory-DEFXUqME.js +0 -3
- package/dist/memory-VUm9E4xZ.js +0 -242
- package/dist/memory-core-host-engine-embeddings-DT26N-48.js +0 -2
- package/dist/memory-core-host-runtime-cli-ByvpXhTk.js +0 -9
- package/dist/memory-core-host-runtime-core-49LtYnDz.js +0 -8
- package/dist/memory-embedding-adapter-BhBdY21w.js +0 -33
- package/dist/memory-index-D1k6rjci.js +0 -2
- package/dist/memory-index-DGv1BQqr.js +0 -514
- package/dist/message-DktPWsWA.js +0 -223
- package/dist/message-action-runner-D5h5Bbhw.js +0 -2
- package/dist/message-action-runner-ezKz_h2P.js +0 -1628
- package/dist/message.gateway.runtime-ZPAymL77.js +0 -2
- package/dist/method-scopes-Dj9nhnXI.js +0 -2883
- package/dist/minimax-vlm-CtLVue6p.js +0 -183
- package/dist/minimax-web-search-provider-Cd-P4xbp.js +0 -165
- package/dist/mmr-CYI_i9v5.js +0 -146
- package/dist/model-B_-8Dp2m.js +0 -630
- package/dist/model-auth-HL2aJaae.js +0 -427
- package/dist/model-auth-env-Ckzim7ba.js +0 -2
- package/dist/model-auth-env-qNUE5jbD.js +0 -53
- package/dist/model-auth-label-BcJD9v1K.js +0 -45
- package/dist/model-catalog-Bkr4CqDm.js +0 -204
- package/dist/model-definitions-D1o_PR5n.js +0 -258
- package/dist/model-definitions-DJm7w6s6.js +0 -74
- package/dist/model-discovery-live.runtime-Ct-IkaF1.js +0 -419
- package/dist/model-discovery-modelsdev-B_Cpy5zK.js +0 -174
- package/dist/model-picker-B-xpoNbr.js +0 -500
- package/dist/model-picker-R0G2MgB_.js +0 -3
- package/dist/model-picker.runtime-BYwcAdzp.js +0 -15
- package/dist/model-selection-BheFUUQH.js +0 -381
- package/dist/models-BEEXc36p.js +0 -166
- package/dist/models-BPkdENoW.js +0 -2
- package/dist/models-BX49tVvV.js +0 -555
- package/dist/models-C03H7fA8.js +0 -157
- package/dist/models-D7VoP8nw.js +0 -760
- package/dist/models-DtHue44_.js +0 -47
- package/dist/models-HYQ1KAk_.js +0 -126
- package/dist/models-cli-BbXVjf9R.js +0 -198
- package/dist/models-config-B85vfu4p.js +0 -900
- package/dist/models-config.providers.secrets-CpQyoJal.js +0 -299
- package/dist/models-xp1rDutG.js +0 -2584
- package/dist/models.fetch-4YMjSao8.js +0 -518
- package/dist/monitor-BRNovC_Y.js +0 -1023
- package/dist/monitor-CKCVK6S4.js +0 -4435
- package/dist/music-generation-provider-BYL9HM9M.js +0 -238
- package/dist/music-generation-provider-BxTgkF9N.js +0 -142
- package/dist/music-generation-provider-CIJ6A211.js +0 -169
- package/dist/node-cli-Btl_VPq-.js +0 -2374
- package/dist/node-command-policy-NrFO7Yy5.js +0 -205
- package/dist/node-service-C5TgmiSv.js +0 -69
- package/dist/nodes-cli-BV6_k5Dm.js +0 -1046
- package/dist/nodes-screen-DXF9W1E2.js +0 -216
- package/dist/nodes-utils-C50A34ps.js +0 -196
- package/dist/nodes.helpers--U8G3EK-.js +0 -34
- package/dist/normalize-reply-lOvnPpkZ.js +0 -72
- package/dist/note-C-MCr2CR.js +0 -110
- package/dist/notify-CQt_pnIb.js +0 -305
- package/dist/oauth-BiAql40W.js +0 -152
- package/dist/oauth-Ca6vDvKF.js +0 -57
- package/dist/oauth-token-shared-2mBrCAD0.js +0 -28
- package/dist/oauth.credentials-CZ0vMrEi.js +0 -165
- package/dist/oauth.flow-DYTskRLV.js +0 -122
- package/dist/oauth.http-BWxW_gXO.js +0 -23
- package/dist/oauth.project-Cb5OEIsJ.js +0 -123
- package/dist/oauth.settings-CDxrRPQK.js +0 -44
- package/dist/oauth.token-Bru4bLzC.js +0 -43
- package/dist/onboard-C1B08y2Y.js +0 -25
- package/dist/onboard-CJdBVSv3.js +0 -25
- package/dist/onboard-CtbzdbPe.js +0 -312
- package/dist/onboard-DBdkbwl4.js +0 -621
- package/dist/onboard-DBjMgyJ9.js +0 -25
- package/dist/onboard-DIMihTCh.js +0 -36
- package/dist/onboard-DVhexP5q.js +0 -54
- package/dist/onboard-DVnq8yjP.js +0 -25
- package/dist/onboard-DX6XRus52.js +0 -58
- package/dist/onboard-D_Vx-9lK.js +0 -29
- package/dist/onboard-R8-I3hmu.js +0 -67
- package/dist/onboard-custom-BGpsNoJc.js +0 -647
- package/dist/onboard-custom-BHvw3fAA.js +0 -2
- package/dist/onboard-helpers-BeAYS2Qq.js +0 -223
- package/dist/onboard-helpers-CKb-ZP-L.js +0 -5
- package/dist/onboard-remote-BTBfReZD.js +0 -2
- package/dist/onboard-remote-DX0VcrI6.js +0 -193
- package/dist/onboard-skills-CZi8Ky26.js +0 -134
- package/dist/onboard-skills-DLC4BbyM.js +0 -2
- package/dist/openai-codex-auth-identity-ASruZ_P2.js +0 -45
- package/dist/openai-codex-cli-auth-Bt_S0j_c.js +0 -57
- package/dist/openai-codex-provider-BouOhpJB.js +0 -299
- package/dist/openai-codex-shared-DedETK99.js +0 -6
- package/dist/openai-provider-Jci9fP5i.js +0 -283
- package/dist/openai-transport-stream-DJo_5UPR.js +0 -1632
- package/dist/operator-approvals-client-D_up6Wq0.js +0 -68
- package/dist/outbound-runtime-DhL6nVw0.js +0 -2
- package/dist/pair-command-approve-DUMQ1lrT.js +0 -34
- package/dist/parse-DLTK-NVk.js +0 -168
- package/dist/perplexity-web-search-provider-uU3my6N4.js +0 -92
- package/dist/perplexity-web-search-provider.runtime-4zsB5_nx.js +0 -2
- package/dist/perplexity-web-search-provider.runtime-C7OOMB_b.js +0 -332
- package/dist/perplexity-web-search-provider.shared-BXQXODBs.js +0 -73
- package/dist/persistent-bindings.lifecycle-Du2uuiGS.js +0 -94
- package/dist/pi-embedded-C4xYML3_.js +0 -6
- package/dist/pi-embedded-Cbug4fLp.js +0 -2
- package/dist/pi-embedded-runner-CjJ1OH7H.js +0 -8348
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-qoJmuaC3.js +0 -23
- package/dist/pi-embedded-utils-qmoBiSxI.js +0 -212
- package/dist/pi-embedded.runtime-PZWkJVMG.js +0 -5
- package/dist/pi-model-discovery-BhWyylI9.js +0 -232
- package/dist/plugin-enabled-BNJoHRI0.js +0 -71
- package/dist/plugin-registration-CdgdKLdK.js +0 -23
- package/dist/plugin-service-BjwQ0UnC.js +0 -2494
- package/dist/plugins-cli-Inx9NBeP.js +0 -576
- package/dist/plugins-update-command-DCBmHAcw.js +0 -1009
- package/dist/policy-C_NvSQ7D.js +0 -172
- package/dist/ports-2fHnkw5y.js +0 -433
- package/dist/ports-NdA63CHy.js +0 -263
- package/dist/preemptive-compaction-B2i0-LZS.js +0 -430
- package/dist/proactive-scheduler-CMe3amTs.js +0 -1444
- package/dist/probe-C5X2xHFS.js +0 -2
- package/dist/probe-D0gXnUmv.js +0 -426
- package/dist/probe-DwQLQHpB.js +0 -178
- package/dist/probe-aZFpBShN.js +0 -54
- package/dist/probe-auth-0-Td92Qd.js +0 -69
- package/dist/probe-auth-Zwhwfcyg.js +0 -3
- package/dist/program-DKVfTrYP.js +0 -111
- package/dist/prompt-overlay-BvX2tpcA.js +0 -72
- package/dist/prompt-select-styled-Cacsr7x1.js +0 -5305
- package/dist/provider-CWw9unv5.js +0 -70
- package/dist/provider-api-key-auth-DDqs17y7.js +0 -113
- package/dist/provider-api-key-auth.runtime-DFOWhO8H.js +0 -14
- package/dist/provider-auth-D28-DXtL.js +0 -36
- package/dist/provider-auth-api-key-BlUb_Gw8.js +0 -5
- package/dist/provider-auth-choice--RwbO1el.js +0 -134
- package/dist/provider-auth-choice-preference-Bay-KWTs.js +0 -62
- package/dist/provider-auth-input-Duh7v6fc.js +0 -117
- package/dist/provider-auth-login-CqDuosT-.js +0 -8
- package/dist/provider-auth-login.runtime-1ovWzWaE.js +0 -206
- package/dist/provider-auth-runtime-Bep_6xgO.js +0 -36
- package/dist/provider-catalog-B1UHTZ2J.js +0 -56
- package/dist/provider-catalog-BETTnkqQ.js +0 -11
- package/dist/provider-catalog-BgCSPWtg.js +0 -11
- package/dist/provider-catalog-COSwNV9M.js +0 -61
- package/dist/provider-catalog-CVtyzqed.js +0 -17
- package/dist/provider-catalog-D87LxNms.js +0 -26
- package/dist/provider-catalog-DUa_pOgJ.js +0 -75
- package/dist/provider-catalog-_qlQKmNX.js +0 -13
- package/dist/provider-catalog-fRX7Kwpd.js +0 -12
- package/dist/provider-catalog-fjbp4-73.js +0 -11
- package/dist/provider-catalog-kLIlcQiR.js +0 -18
- package/dist/provider-catalog-shared-CUCxLlCb.js +0 -104
- package/dist/provider-compat-CFb-paAS.js +0 -37
- package/dist/provider-discovery-D9udizRd.js +0 -2
- package/dist/provider-dispatcher-CICWLOwX.js +0 -22
- package/dist/provider-entry-D_0kX9WL.js +0 -97
- package/dist/provider-http-CCWzhnsk.js +0 -26
- package/dist/provider-model-shared-TaFcxfzp.js +0 -171
- package/dist/provider-models-3mIjIjQp.js +0 -22
- package/dist/provider-models-CvYgNrs5.js +0 -225
- package/dist/provider-models-D3D1lxRx.js +0 -169
- package/dist/provider-models-DACMEf7B.js +0 -116
- package/dist/provider-models-DoU8PeBb.js +0 -119
- package/dist/provider-models-gP-2JH8n.js +0 -35
- package/dist/provider-openai-codex-oauth-tls-CmSkuSt5.js +0 -99
- package/dist/provider-registration-CbWstPtp.js +0 -238
- package/dist/provider-registration-iGHQBjjx.js +0 -57
- package/dist/provider-stream-BwKmnNvt.js +0 -285
- package/dist/provider-stream-family-CuZuVwyU.js +0 -2
- package/dist/provider-stream-shared-DiqyLpmc.js +0 -80
- package/dist/provider-tools-C8ePitIe.js +0 -332
- package/dist/provider-usage-AerKfwcb.js +0 -289
- package/dist/provider-usage-B1OEBtrp.js +0 -3
- package/dist/provider-web-search-DNrh74o2.js +0 -55
- package/dist/provider-web-search-contract-CD7a3E_j.js +0 -12
- package/dist/provider-web-search-contract-fields-CZpi7HIW.js +0 -38
- package/dist/proxy-stream-wrappers-C_X_spRH.js +0 -480
- package/dist/push-apns-CHUTf5fh.js +0 -1061
- package/dist/pw-ai-DPV1q8xc.js +0 -2268
- package/dist/qmd-manager-Dlyrllit.js +0 -1799
- package/dist/qr-cli-Dxp3C4eA.js +0 -359
- package/dist/qr-image-BqQWAdsz.js +0 -2
- package/dist/queue-B6wGsjBh.js +0 -636
- package/dist/realtime-provider-shared-CjyMmm-x.js +0 -21
- package/dist/realtime-transcription-provider-C3KDEeGw.js +0 -180
- package/dist/realtime-voice-provider-WpxiXAqx.js +0 -342
- package/dist/record-shared-B1JngQ0O.js +0 -10
- package/dist/region-eNoH-aE8.js +0 -74
- package/dist/register.agent-DjEMzHSM.js +0 -241
- package/dist/register.configure-VpDjmPim.js +0 -15
- package/dist/register.maintenance-Bfd-BrEw.js +0 -443
- package/dist/register.message-BUAWvHEW.js +0 -601
- package/dist/register.onboard-D8DOKdFA.js +0 -83
- package/dist/register.runtime-BnPl3ouC.js +0 -343
- package/dist/register.runtime-C3VwoQaW.js +0 -81
- package/dist/register.setup-ED3BxpQA.js +0 -104
- package/dist/register.status-health-sessions-C0kPqTo8.js +0 -1211
- package/dist/register.subclis-BGrRMx_K.js +0 -3
- package/dist/register.subclis-BgdtMdC4.js +0 -232
- package/dist/remote-env-BAi-jql2.js +0 -12
- package/dist/replay-policy-COnD0YJl.js +0 -8
- package/dist/replay-policy-D4RdgaIZ.js +0 -10
- package/dist/reply-B9iku3Vu.js +0 -3523
- package/dist/reply-payloads-DaWnvZFb.js +0 -78
- package/dist/reply-prefix-D_x6MM3Q.js +0 -33
- package/dist/reply.runtime-DC_qTxWc.js +0 -2
- package/dist/resolve-D3giEZj4.js +0 -280
- package/dist/restart-handoff-lV2xM09Z.js +0 -2
- package/dist/restart-health-35eesagj.js +0 -203
- package/dist/restart-health-BotG9-Zg.js +0 -2
- package/dist/restart-pf6Zqlgl.js +0 -454
- package/dist/restart-stale-pids-DCtlWGBh.js +0 -529
- package/dist/retry-DSboRh9T.js +0 -76
- package/dist/retry-policy-CkDNftgh.js +0 -58
- package/dist/route-reply-BFcr1fvj.js +0 -141
- package/dist/route-reply.runtime-HOUK8uDO.js +0 -2
- package/dist/rpc-CQwfsySN.js +0 -61
- package/dist/rpc.runtime-DiwjuRBV.js +0 -21
- package/dist/run-main-OjNMZyXa.js +0 -453
- package/dist/run-wait-DMiGPgPf.js +0 -118
- package/dist/runner-B--qu6Qm.js +0 -1497
- package/dist/runtime-BJ0UokoN.js +0 -2
- package/dist/runtime-BSuZXVXq.js +0 -355
- package/dist/runtime-B_DKJsuG.js +0 -725
- package/dist/runtime-CI87-tZg.js +0 -191
- package/dist/runtime-Cc6PgJbr.js +0 -107
- package/dist/runtime-DGF3I3_g.js +0 -9
- package/dist/runtime-Dfvvcuic.js +0 -72
- package/dist/runtime-TNNT_OrI.js +0 -200
- package/dist/runtime-YH3CE4eQ2.js +0 -242
- package/dist/runtime-api-B5xKNnZ9.js +0 -12
- package/dist/runtime-api-CMG5-b6Q2.js +0 -2
- package/dist/runtime-api-ChFdpsKY.js +0 -3
- package/dist/runtime-embedded-pi.runtime-BszFlzTt.js +0 -3
- package/dist/runtime-env-Clh0MW-d.js +0 -9
- package/dist/runtime-internal-CoQKvsS_.js +0 -2
- package/dist/runtime-model-auth.runtime-Cya-LuWL.js +0 -39
- package/dist/runtime-plugins-DNdpXSxM.js +0 -69
- package/dist/runtime-prepare.runtime-CayOPY9P.js +0 -80
- package/dist/runtime-provider-C-L4QipI.js +0 -21
- package/dist/runtime-shared-Dy_2RXMm.js +0 -249
- package/dist/runtime-taskflow-N2ChOWcS.js +0 -250
- package/dist/runtime-web-channel-plugin-C8CjwZRm.js +0 -215
- package/dist/runtime-web-tools-BvAG0LO3.js +0 -1467
- package/dist/sandbox-Bbc-GWm9.js +0 -2586
- package/dist/sandbox-CSOc5tM4.js +0 -4
- package/dist/sandbox-cli-CT-AarMn.js +0 -447
- package/dist/schtasks-jmQncr1-.js +0 -785
- package/dist/secrets-cli-D1EGuqKu.js +0 -2114
- package/dist/security-audit-BeFqdMin.js +0 -34
- package/dist/security-cli-DbD2JBGF.js +0 -486
- package/dist/semantic-dedup-CZxiDAfb.js +0 -95
- package/dist/send-CGF-mKH3.js +0 -993
- package/dist/send-media-BCm-tPYM.js +0 -2123
- package/dist/server-BWwUuJYL.js +0 -77
- package/dist/server-cBkUNKnZ.js +0 -13
- package/dist/server-context-D_30U_XN.js +0 -4164
- package/dist/server-methods-Bs4pJXUR.js +0 -11937
- package/dist/server-middleware-Dr3VqWzc.js +0 -110
- package/dist/server-node-events-DVfmqVwQ.js +0 -451
- package/dist/server.impl-BJbVZ0t9.js +0 -19765
- package/dist/service-BI1Vz4Xe.js +0 -132
- package/dist/service-CHv4oM_x.js +0 -2
- package/dist/service-audit-DUt5vf5G.js +0 -254
- package/dist/service-audit-VJKA2Zjk.js +0 -2
- package/dist/session-SfhQH5KQ.js +0 -48
- package/dist/session-archive.runtime-B8CG4Ram.js +0 -2
- package/dist/session-conversation-l2xHTnMN.js +0 -27
- package/dist/session-cost-usage-BKZY5nPZ.js +0 -2
- package/dist/session-cost-usage-CmX6miDz.js +0 -648
- package/dist/session-file-CL6lkGa1.js +0 -44
- package/dist/session-key-BmBQ4szp.js +0 -65
- package/dist/session-meta-BR5xK9t1.js +0 -109
- package/dist/session-override-BKrEVfnV.js +0 -103
- package/dist/session-reset-model.runtime-Buk5p4ha.js +0 -120
- package/dist/session-reset-service-BVvvwdRa.js +0 -474
- package/dist/session-subagent-reactivation.runtime-BZNsC5wr.js +0 -2
- package/dist/session-tab-registry-XSWB4W6w.js +0 -553
- package/dist/session-updates-BteiRNzh.js +0 -234
- package/dist/session-updates.runtime-D2XSr1UE.js +0 -2
- package/dist/session-utils-B-CMvBgt.js +0 -930
- package/dist/session-utils.fs-CYcamwPP.js +0 -537
- package/dist/sessions-B5jygaWj.js +0 -231
- package/dist/sessions-BD7awYpY.js +0 -45
- package/dist/sessions-BzM5kMV8.js +0 -2
- package/dist/sessions.runtime-oTrbiPRt.js +0 -2
- package/dist/setup-BoZjwU6i.js +0 -505
- package/dist/setup-DQ_xc449.js +0 -329
- package/dist/setup-Dm1kEe1b.js +0 -15
- package/dist/setup-binary-BJMUy4FP.js +0 -2
- package/dist/setup-surface-D8PAGJCT.js +0 -586
- package/dist/setup-tools-B1DDAQcl.js +0 -4
- package/dist/setup-wizard-proxy-CXecAj2f.js +0 -139
- package/dist/setup.finalize-DYg55WnG.js +0 -436
- package/dist/setup.gateway-config-DWNIMpld.js +0 -246
- package/dist/shared-B1VFlQTd.js +0 -218
- package/dist/shared-B5czq-MF.js +0 -175
- package/dist/shared-BQt90p2U.js +0 -36
- package/dist/shared-CIgFLTPv.js +0 -127
- package/dist/shared-CQhbwWcx.js +0 -219
- package/dist/shared-DDPpwpbe.js +0 -137
- package/dist/shared-DyzdPKTA.js +0 -224
- package/dist/shared-runtime-D-MybTye.js +0 -7
- package/dist/short-term-promotion-Dj0a8ugl.js +0 -1631
- package/dist/simple-completion-runtime-BFLs1pEi.js +0 -131
- package/dist/simple-completion-transport-RE6NPD4B.js +0 -32
- package/dist/skill-commands-CskrC_3W.js +0 -82
- package/dist/skill-commands.runtime-BQvrQPdi.js +0 -2
- package/dist/skills-install-Dg0hrLqC.js +0 -822
- package/dist/speech-core-Dg6E-HQH.js +0 -126
- package/dist/speech-provider-B8AJ3snZ.js +0 -103
- package/dist/speech-provider-B9cT4Gjm.js +0 -39
- package/dist/speech-provider-Bi2E3iv8.js +0 -182
- package/dist/speech-provider-CZSo12LO.js +0 -101
- package/dist/speech-provider-Cj9cz2XB.js +0 -184
- package/dist/speech-provider-R64i_C4Y.js +0 -167
- package/dist/ssh-tunnel-dSVKikW0.js +0 -159
- package/dist/ssh-tunnel-tfx0yANN.js +0 -2
- package/dist/ssrf-runtime-CGgU7d_A.js +0 -6
- package/dist/stage-sandbox-media.runtime-vS4_gqco.js +0 -230
- package/dist/standalone-generate-CEVB92OE.js +0 -217
- package/dist/standalone-generate-EPaOZgrf.js +0 -2
- package/dist/state-migrations-uFpgm1mQ.js +0 -823
- package/dist/status-BLvCM5Ba.js +0 -399
- package/dist/status-CjZEGpOn.js +0 -500
- package/dist/status-CtGb77xh.js +0 -473
- package/dist/status-DeOg-kac.js +0 -2
- package/dist/status-all-CUUt2uLK.js +0 -495
- package/dist/status-json-CKZoUDkl.js +0 -14
- package/dist/status-json-command-BZpfq-t-.js +0 -92
- package/dist/status-runtime-shared-3yS4P9VD.js +0 -271
- package/dist/status-scF4idaf.js +0 -3
- package/dist/status.agent-local-BjZrgfxM.js +0 -58
- package/dist/status.command.text-runtime-BJVN8JqQ.js +0 -15
- package/dist/status.format-BB7s3jni.js +0 -60
- package/dist/status.gateway-connection.runtime-Cdh_gMsz.js +0 -2
- package/dist/status.gateway-probe-Bx2GQ9TU.js +0 -16
- package/dist/status.scan-XFmv1sO8.js +0 -62
- package/dist/status.scan-overview-yDUTiScm.js +0 -395
- package/dist/status.scan.fast-json-CyTKi1z8.js +0 -128
- package/dist/status.scan.fast-json-FEegP0m5.js +0 -2
- package/dist/status.scan.runtime-DPX-O1i4.js +0 -417
- package/dist/status.summary-CLyVQFLP.js +0 -2
- package/dist/status.summary-DYD-kVqt.js +0 -209
- package/dist/status.update-D0v2dhjh.js +0 -2
- package/dist/status.update-fG9weCeY.js +0 -79
- package/dist/store-CB8cC8s0.js +0 -1112
- package/dist/store.runtime-ItAjV6eb.js +0 -2
- package/dist/stream-BPDfd8e1.js +0 -129
- package/dist/stream-BmplokBX.js +0 -649
- package/dist/stream-CxHR78zN.js +0 -26
- package/dist/stream-DBSqjZK_.js +0 -153
- package/dist/stream-DnQfYsj6.js +0 -27
- package/dist/stream-W2dOHnSg.js +0 -76
- package/dist/stream-wrappers-DarIRPWz.js +0 -144
- package/dist/strip-inbound-meta-BltI8kVf.js +0 -155
- package/dist/subagent-announce.registry.runtime-B2pfZw2p.js +0 -3
- package/dist/subagent-control-BTb1NZKm.js +0 -485
- package/dist/subagent-followup.runtime-CxXMev7H.js +0 -68
- package/dist/subagent-list-CU2DlTNj.js +0 -168
- package/dist/subagent-orphan-recovery-lqdIgbEP.js +0 -214
- package/dist/subagent-registry-apNqP8Xn.js +0 -2889
- package/dist/subagent-registry-read-C8xgeh3J.js +0 -57
- package/dist/subagent-registry-runtime-lzitxvG1.js +0 -2
- package/dist/subagent-registry.runtime-DMnY4uWu.js +0 -3
- package/dist/subagent-spawn-lUENqxqV.js +0 -782
- package/dist/subagents-format-CAP1ruPY.js +0 -629
- package/dist/supervisor-DLgjrm-c.js +0 -737
- package/dist/system-cli-BCgDARtJ.js +0 -60
- package/dist/system-prompt-C414pRhO.js +0 -2
- package/dist/system-prompt-T5mXJ7TP.js +0 -711
- package/dist/system-prompt-cache-boundary-NtELRwVL.js +0 -25
- package/dist/system-run-command-DKJXglyj.js +0 -300
- package/dist/systemd-CuaTSaBa.js +0 -591
- package/dist/systemd-hints-B_h09Mzm.js +0 -76
- package/dist/systemd-linger-BA63Qx3W.js +0 -2
- package/dist/systemd-linger-DQ03a1ek.js +0 -68
- package/dist/tables-DFdELq_3.js +0 -832
- package/dist/tailscale-status-PTtL7jnj.js +0 -72
- package/dist/targets-CRHINrER.js +0 -300
- package/dist/targets-UyRPOuj6.js +0 -595
- package/dist/targets.runtime-vvzN_6WM.js +0 -2
- package/dist/task-executor-CtuKi2TZ.js +0 -350
- package/dist/task-owner-access-DhSShXSw.js +0 -48
- package/dist/task-registry-control.runtime-CsUj_KYA.js +0 -3
- package/dist/task-registry-delivery-runtime-Dic6aaTy.js +0 -3
- package/dist/task-registry-delivery-runtime-DtH77Z_E.js +0 -2
- package/dist/task-registry-tECWk779.js +0 -2346
- package/dist/task-registry.maintenance-Du91FMxz.js +0 -2
- package/dist/task-registry.maintenance-IBRK-koK.js +0 -425
- package/dist/testing-DyM4-o2f.js +0 -441
- package/dist/text-report-BEzLSDXl.js +0 -587
- package/dist/text-runtime-CjATQur1.js +0 -313
- package/dist/thread-bindings-BuyhU9E1.js +0 -223
- package/dist/tool-auth-shared-CPke5dxM.js +0 -53
- package/dist/tool-config-shared-DT9mUxpt.js +0 -19
- package/dist/tool-schema-runtime-DTZlFcMR.js +0 -1892
- package/dist/tools-effective-inventory-B16Ib7bd.js +0 -152
- package/dist/tools.runtime-B6sF2TBH.js +0 -4
- package/dist/transcript-0fLDbW8-.js +0 -222
- package/dist/transcript-B3chs9GK.js +0 -191
- package/dist/transcript-DQsKeQyR.js +0 -2
- package/dist/transcript.runtime-Bz9gTz-q.js +0 -2
- package/dist/transport-policy-BLTAZ-oe.js +0 -75
- package/dist/transport-ready-CjD7QFVT.js +0 -36
- package/dist/tts-BKZmS4xr.js +0 -40
- package/dist/tts-BObT55hT.js +0 -31
- package/dist/tui-B9QEI36P.js +0 -4018
- package/dist/tui-cli-D0ST19K6.js +0 -31
- package/dist/typing-mode-BueK7uiv.js +0 -84
- package/dist/undici-global-dispatcher-eRWmqD02.js +0 -99
- package/dist/update-Bhmi2Spr.js +0 -1253
- package/dist/update-check-JM7VVIJX.js +0 -431
- package/dist/update-cli-BlJMXLUZ.js +0 -1779
- package/dist/update-runner-BhQ8gYeg.js +0 -1492
- package/dist/usage-AvsukxPf.js +0 -71
- package/dist/usage-format-CiHAOGUv.js +0 -2
- package/dist/usage-format-DEkEYT6G.js +0 -507
- package/dist/utils-BwORcPSF.js +0 -189
- package/dist/video-generation-D4NjX7OM.js +0 -167
- package/dist/video-generation-provider--Hl1nMjg.js +0 -233
- package/dist/video-generation-provider-BYmO0XfA.js +0 -104
- package/dist/video-generation-provider-CTlDBaAN.js +0 -240
- package/dist/video-generation-provider-Cx3N6a-k.js +0 -263
- package/dist/video-generation-provider-CxAzTS6S.js +0 -181
- package/dist/video-generation-provider-D2-wBkk8.js +0 -246
- package/dist/video-generation-provider-DhD2Xpwp.js +0 -64
- package/dist/video-generation-provider-Dp7jqb8H.js +0 -77
- package/dist/video-generation-provider-WfRVn7Nn.js +0 -227
- package/dist/video-generation-provider-lCyC0SPc.js +0 -171
- package/dist/video-http-CqiFyKro.js +0 -29
- package/dist/video-model-catalog-Dujyv6aJ.js +0 -187
- package/dist/web-media-B770i-06.js +0 -2
- package/dist/web-media-CfbPpWDK.js +0 -330
- package/dist/web-search-C7rRmaDZ.js +0 -221
- package/dist/web-search-provider-DXmbjaIP.js +0 -155
- package/dist/web-search-provider-common-DxHMfm5S.js +0 -206
- package/dist/web-search-provider-config-DopQHA3M.js +0 -52
- package/dist/web-shared-BQmfD1uO.js +0 -414
- package/dist/x-search-shared-C-MC18vi.js +0 -109
- /package/dist/{account-lookup-44DR0qFz.js → account-lookup-DvZ7IbyB.js} +0 -0
- /package/dist/{auth-profiles.runtime-CeH05HY2.js → auth-profiles.runtime-CNNciZQU.js} +0 -0
- /package/dist/{backoff-CoEL_G0O.js → backoff-D10eQVn6.js} +0 -0
- /package/dist/{chat-envelope-C8CaVGEc.js → chat-envelope-C14DhfdY.js} +0 -0
- /package/dist/{chat-message-content-BmiUVjys.js → chat-message-content-N9aXPKj0.js} +0 -0
- /package/dist/{commands-H3Ab0eU8.js → commands-BNMz19sX.js} +0 -0
- /package/dist/{control-ui-shared-upny-T3O.js → control-ui-shared-Bdc3sIMw.js} +0 -0
- /package/dist/{detect-binary-BF7GWFFn.js → detect-binary-DykWiFpV.js} +0 -0
- /package/dist/{device-auth-ChMjC2OY.js → device-auth-Co78c3Fk.js} +0 -0
- /package/dist/{device-identity-CnWSzhCW.js → device-identity-BbqzkeXB.js} +0 -0
- /package/dist/{device-metadata-normalization-BCk_oevU.js → device-metadata-normalization-_VVweA-R.js} +0 -0
- /package/dist/{directive-tags-C-tVOPf_.js → directive-tags-DISVLDCp.js} +0 -0
- /package/dist/{exec-file-CMG8z0ly.js → exec-file-CJGGCNuX.js} +0 -0
- /package/dist/{fetch-timeout-BAjBTvFf.js → fetch-timeout-BCovYv8d.js} +0 -0
- /package/dist/{fingerprint-vRPYSVrE.js → fingerprint-Dl8U2WD6.js} +0 -0
- /package/dist/{identity-BtgZsd-F.js → identity-Dplh_aWR.js} +0 -0
- /package/dist/{input-provenance-CqVg_UvP.js → input-provenance-DXlFriXS.js} +0 -0
- /package/dist/{issue-format-BJCe7wW8.js → issue-format-CxtLa4Cu.js} +0 -0
- /package/dist/{kill-tree-cyGT7uvN.js → kill-tree-DCyfVQx0.js} +0 -0
- /package/dist/{model-auth-markers-CrDTQj4i.js → model-auth-markers-BR92KCie.js} +0 -0
- /package/dist/{model-auth-runtime-shared-Dlg_9I8x.js → model-auth-runtime-shared-7sMIRCy3.js} +0 -0
- /package/dist/{number-coercion-D1JCit9l.js → number-coercion-Cmu1aJr8.js} +0 -0
- /package/dist/{plugin-approvals-D2nSmWGQ.js → plugin-approvals-BVOH9uWd.js} +0 -0
- /package/dist/{plugin-web-search-config-CM7ac77h.js → plugin-web-search-config-Vy4SBasR.js} +0 -0
- /package/dist/{ports-lsof-rC3_YG8t.js → ports-lsof-C7nTF2Et.js} +0 -0
- /package/dist/{ports-probe-CKr2RdYw.js → ports-probe-BFA3MD3-.js} +0 -0
- /package/dist/{prompt-cache-stability-DdwE3HeP.js → prompt-cache-stability-CgXAu47S.js} +0 -0
- /package/dist/{prompt-style-BCo80D6m.js → prompt-style-BCVDnx1C.js} +0 -0
- /package/dist/{provider-discovery-RmybjjET.js → provider-discovery-DfcBjamA.js} +0 -0
- /package/dist/{provider-model-compat-CsF2NGa6.js → provider-model-compat-DfOMY_2L.js} +0 -0
- /package/dist/{restart-handoff-B3HMjoAC.js → restart-handoff-CUig5xgo.js} +0 -0
- /package/dist/{runtime-parse-D4az8KIY.js → runtime-parse-DYEtqXT6.js} +0 -0
- /package/dist/{runtime-status-Di5Hf2P6.js → runtime-status-Cph8qA_2.js} +0 -0
- /package/dist/{schtasks-exec-BgQqxhbL.js → schtasks-exec-wK5FEC9N.js} +0 -0
- /package/dist/{session-transcript-files.fs-CTjDzbyc.js → session-transcript-files.fs-98DIXUOq.js} +0 -0
- /package/dist/{subagent-registry-state-zLMA_MzM.js → subagent-registry-state-CjRrrVgp.js} +0 -0
- /package/dist/{subagent-session-metrics-BgoCTpFX.js → subagent-session-metrics-8IQoh3DH.js} +0 -0
- /package/dist/{targets-DOJmrCN8.js → targets-uT1GHLfz.js} +0 -0
- /package/dist/{thread-info-BvQiu1xr.js → thread-info-DjVKrfI6.js} +0 -0
- /package/dist/{tokens-DIzGgGwL.js → tokens-CB2-NTu5.js} +0 -0
- /package/dist/{transcript-events-BC4_m8-c.js → transcript-events-B4kB35M0.js} +0 -0
- /package/dist/{transcript-mirror-BlMhpuHP.js → transcript-mirror-BQwPaEwA.js} +0 -0
- /package/dist/{wsl-DQ0RgjjQ.js → wsl-084fnhGP.js} +0 -0
- /package/dist/{zod-parse-Cu9hgbVC.js → zod-parse-DRCmgWgX.js} +0 -0
|
@@ -1,1631 +0,0 @@
|
|
|
1
|
-
import { i as normalizeLowercaseStringOrEmpty } from "./string-coerce-xZwG7Dq8.js";
|
|
2
|
-
import { n as asNullableRecord } from "./record-coerce-nraI4tOL.js";
|
|
3
|
-
import "./text-runtime-CjATQur1.js";
|
|
4
|
-
import { n as appendMemoryHostEvent } from "./events-Df7iLK9y.js";
|
|
5
|
-
import "./memory-host-events-BIkxBjiW.js";
|
|
6
|
-
import { t as localDateStr } from "./local-date-CQPjZ0CI.js";
|
|
7
|
-
import { n as deduplicateBySimilarity } from "./semantic-dedup-CZxiDAfb.js";
|
|
8
|
-
import path from "node:path";
|
|
9
|
-
import fs from "node:fs/promises";
|
|
10
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
11
|
-
const CONCEPT_STOP_WORDS = new Set(Object.values({
|
|
12
|
-
shared: [
|
|
13
|
-
"about",
|
|
14
|
-
"after",
|
|
15
|
-
"agent",
|
|
16
|
-
"again",
|
|
17
|
-
"also",
|
|
18
|
-
"because",
|
|
19
|
-
"before",
|
|
20
|
-
"being",
|
|
21
|
-
"between",
|
|
22
|
-
"build",
|
|
23
|
-
"called",
|
|
24
|
-
"could",
|
|
25
|
-
"daily",
|
|
26
|
-
"default",
|
|
27
|
-
"deploy",
|
|
28
|
-
"during",
|
|
29
|
-
"every",
|
|
30
|
-
"file",
|
|
31
|
-
"files",
|
|
32
|
-
"from",
|
|
33
|
-
"have",
|
|
34
|
-
"into",
|
|
35
|
-
"just",
|
|
36
|
-
"line",
|
|
37
|
-
"lines",
|
|
38
|
-
"long",
|
|
39
|
-
"main",
|
|
40
|
-
"make",
|
|
41
|
-
"memory",
|
|
42
|
-
"month",
|
|
43
|
-
"more",
|
|
44
|
-
"most",
|
|
45
|
-
"move",
|
|
46
|
-
"much",
|
|
47
|
-
"next",
|
|
48
|
-
"note",
|
|
49
|
-
"notes",
|
|
50
|
-
"over",
|
|
51
|
-
"part",
|
|
52
|
-
"past",
|
|
53
|
-
"port",
|
|
54
|
-
"same",
|
|
55
|
-
"score",
|
|
56
|
-
"search",
|
|
57
|
-
"session",
|
|
58
|
-
"sessions",
|
|
59
|
-
"short",
|
|
60
|
-
"should",
|
|
61
|
-
"since",
|
|
62
|
-
"some",
|
|
63
|
-
"than",
|
|
64
|
-
"that",
|
|
65
|
-
"their",
|
|
66
|
-
"there",
|
|
67
|
-
"these",
|
|
68
|
-
"they",
|
|
69
|
-
"this",
|
|
70
|
-
"through",
|
|
71
|
-
"today",
|
|
72
|
-
"using",
|
|
73
|
-
"with",
|
|
74
|
-
"work",
|
|
75
|
-
"workspace",
|
|
76
|
-
"year"
|
|
77
|
-
],
|
|
78
|
-
english: [
|
|
79
|
-
"and",
|
|
80
|
-
"are",
|
|
81
|
-
"for",
|
|
82
|
-
"into",
|
|
83
|
-
"its",
|
|
84
|
-
"our",
|
|
85
|
-
"then",
|
|
86
|
-
"were"
|
|
87
|
-
],
|
|
88
|
-
spanish: [
|
|
89
|
-
"al",
|
|
90
|
-
"con",
|
|
91
|
-
"como",
|
|
92
|
-
"de",
|
|
93
|
-
"del",
|
|
94
|
-
"el",
|
|
95
|
-
"en",
|
|
96
|
-
"es",
|
|
97
|
-
"la",
|
|
98
|
-
"las",
|
|
99
|
-
"los",
|
|
100
|
-
"para",
|
|
101
|
-
"por",
|
|
102
|
-
"que",
|
|
103
|
-
"se",
|
|
104
|
-
"sin",
|
|
105
|
-
"su",
|
|
106
|
-
"sus",
|
|
107
|
-
"una",
|
|
108
|
-
"uno",
|
|
109
|
-
"unos",
|
|
110
|
-
"unas",
|
|
111
|
-
"y"
|
|
112
|
-
],
|
|
113
|
-
french: [
|
|
114
|
-
"au",
|
|
115
|
-
"aux",
|
|
116
|
-
"avec",
|
|
117
|
-
"dans",
|
|
118
|
-
"de",
|
|
119
|
-
"des",
|
|
120
|
-
"du",
|
|
121
|
-
"en",
|
|
122
|
-
"est",
|
|
123
|
-
"et",
|
|
124
|
-
"la",
|
|
125
|
-
"le",
|
|
126
|
-
"les",
|
|
127
|
-
"ou",
|
|
128
|
-
"pour",
|
|
129
|
-
"que",
|
|
130
|
-
"qui",
|
|
131
|
-
"sans",
|
|
132
|
-
"ses",
|
|
133
|
-
"son",
|
|
134
|
-
"sur",
|
|
135
|
-
"une",
|
|
136
|
-
"un"
|
|
137
|
-
],
|
|
138
|
-
german: [
|
|
139
|
-
"auf",
|
|
140
|
-
"aus",
|
|
141
|
-
"bei",
|
|
142
|
-
"das",
|
|
143
|
-
"dem",
|
|
144
|
-
"den",
|
|
145
|
-
"der",
|
|
146
|
-
"des",
|
|
147
|
-
"die",
|
|
148
|
-
"ein",
|
|
149
|
-
"eine",
|
|
150
|
-
"einem",
|
|
151
|
-
"einen",
|
|
152
|
-
"einer",
|
|
153
|
-
"für",
|
|
154
|
-
"im",
|
|
155
|
-
"in",
|
|
156
|
-
"mit",
|
|
157
|
-
"nach",
|
|
158
|
-
"oder",
|
|
159
|
-
"ohne",
|
|
160
|
-
"über",
|
|
161
|
-
"und",
|
|
162
|
-
"von",
|
|
163
|
-
"zu",
|
|
164
|
-
"zum",
|
|
165
|
-
"zur"
|
|
166
|
-
],
|
|
167
|
-
cjk: [
|
|
168
|
-
"が",
|
|
169
|
-
"から",
|
|
170
|
-
"する",
|
|
171
|
-
"して",
|
|
172
|
-
"した",
|
|
173
|
-
"で",
|
|
174
|
-
"と",
|
|
175
|
-
"に",
|
|
176
|
-
"の",
|
|
177
|
-
"は",
|
|
178
|
-
"へ",
|
|
179
|
-
"まで",
|
|
180
|
-
"も",
|
|
181
|
-
"や",
|
|
182
|
-
"を",
|
|
183
|
-
"与",
|
|
184
|
-
"为",
|
|
185
|
-
"了",
|
|
186
|
-
"及",
|
|
187
|
-
"和",
|
|
188
|
-
"在",
|
|
189
|
-
"将",
|
|
190
|
-
"或",
|
|
191
|
-
"把",
|
|
192
|
-
"是",
|
|
193
|
-
"用",
|
|
194
|
-
"的",
|
|
195
|
-
"과",
|
|
196
|
-
"는",
|
|
197
|
-
"도",
|
|
198
|
-
"로",
|
|
199
|
-
"를",
|
|
200
|
-
"에",
|
|
201
|
-
"에서",
|
|
202
|
-
"와",
|
|
203
|
-
"은",
|
|
204
|
-
"으로",
|
|
205
|
-
"을",
|
|
206
|
-
"이",
|
|
207
|
-
"하다",
|
|
208
|
-
"한",
|
|
209
|
-
"할",
|
|
210
|
-
"해",
|
|
211
|
-
"했다",
|
|
212
|
-
"했다"
|
|
213
|
-
],
|
|
214
|
-
pathNoise: [
|
|
215
|
-
"cjs",
|
|
216
|
-
"cpp",
|
|
217
|
-
"cts",
|
|
218
|
-
"jsx",
|
|
219
|
-
"json",
|
|
220
|
-
"md",
|
|
221
|
-
"mjs",
|
|
222
|
-
"mts",
|
|
223
|
-
"text",
|
|
224
|
-
"toml",
|
|
225
|
-
"ts",
|
|
226
|
-
"tsx",
|
|
227
|
-
"txt",
|
|
228
|
-
"yaml",
|
|
229
|
-
"yml"
|
|
230
|
-
]
|
|
231
|
-
}).flatMap((words) => words).map((word) => normalizeLowercaseStringOrEmpty(word)));
|
|
232
|
-
const PROTECTED_GLOSSARY = [
|
|
233
|
-
"backup",
|
|
234
|
-
"backups",
|
|
235
|
-
"embedding",
|
|
236
|
-
"embeddings",
|
|
237
|
-
"failover",
|
|
238
|
-
"gateway",
|
|
239
|
-
"glacier",
|
|
240
|
-
"gpt",
|
|
241
|
-
"kv",
|
|
242
|
-
"network",
|
|
243
|
-
"openai",
|
|
244
|
-
"qmd",
|
|
245
|
-
"router",
|
|
246
|
-
"s3",
|
|
247
|
-
"vlan",
|
|
248
|
-
"sauvegarde",
|
|
249
|
-
"routeur",
|
|
250
|
-
"passerelle",
|
|
251
|
-
"konfiguration",
|
|
252
|
-
"sicherung",
|
|
253
|
-
"überwachung",
|
|
254
|
-
"configuración",
|
|
255
|
-
"respaldo",
|
|
256
|
-
"enrutador",
|
|
257
|
-
"puerta-de-enlace",
|
|
258
|
-
"バックアップ",
|
|
259
|
-
"フェイルオーバー",
|
|
260
|
-
"ルーター",
|
|
261
|
-
"ネットワーク",
|
|
262
|
-
"ゲートウェイ",
|
|
263
|
-
"障害対応",
|
|
264
|
-
"路由器",
|
|
265
|
-
"备份",
|
|
266
|
-
"故障转移",
|
|
267
|
-
"网络",
|
|
268
|
-
"网关",
|
|
269
|
-
"라우터",
|
|
270
|
-
"백업",
|
|
271
|
-
"페일오버",
|
|
272
|
-
"네트워크",
|
|
273
|
-
"게이트웨이",
|
|
274
|
-
"장애대응"
|
|
275
|
-
].map((word) => normalizeLowercaseStringOrEmpty(word.normalize("NFKC")));
|
|
276
|
-
const COMPOUND_TOKEN_RE = /[\p{L}\p{N}]+(?:[._/-][\p{L}\p{N}]+)+/gu;
|
|
277
|
-
const LETTER_OR_NUMBER_RE = /[\p{L}\p{N}]/u;
|
|
278
|
-
const LATIN_RE = /\p{Script=Latin}/u;
|
|
279
|
-
const HAN_RE = /\p{Script=Han}/u;
|
|
280
|
-
const HIRAGANA_RE = /\p{Script=Hiragana}/u;
|
|
281
|
-
const KATAKANA_RE = /\p{Script=Katakana}/u;
|
|
282
|
-
const HANGUL_RE = /\p{Script=Hangul}/u;
|
|
283
|
-
const DEFAULT_WORD_SEGMENTER = typeof Intl.Segmenter === "function" ? new Intl.Segmenter("und", { granularity: "word" }) : null;
|
|
284
|
-
function containsLetterOrNumber(value) {
|
|
285
|
-
return LETTER_OR_NUMBER_RE.test(value);
|
|
286
|
-
}
|
|
287
|
-
function classifyConceptTagScript(tag) {
|
|
288
|
-
const normalized = tag.normalize("NFKC");
|
|
289
|
-
const hasLatin = LATIN_RE.test(normalized);
|
|
290
|
-
const hasCjk = HAN_RE.test(normalized) || HIRAGANA_RE.test(normalized) || KATAKANA_RE.test(normalized) || HANGUL_RE.test(normalized);
|
|
291
|
-
if (hasLatin && hasCjk) return "mixed";
|
|
292
|
-
if (hasCjk) return "cjk";
|
|
293
|
-
if (hasLatin) return "latin";
|
|
294
|
-
return "other";
|
|
295
|
-
}
|
|
296
|
-
function minimumTokenLengthForScript(script) {
|
|
297
|
-
if (script === "cjk") return 2;
|
|
298
|
-
return 3;
|
|
299
|
-
}
|
|
300
|
-
function isKanaOnlyToken(value) {
|
|
301
|
-
return !HAN_RE.test(value) && !HANGUL_RE.test(value) && (HIRAGANA_RE.test(value) || KATAKANA_RE.test(value));
|
|
302
|
-
}
|
|
303
|
-
function normalizeConceptToken(rawToken) {
|
|
304
|
-
const normalized = normalizeLowercaseStringOrEmpty(rawToken.normalize("NFKC").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "").replaceAll("_", "-"));
|
|
305
|
-
if (!normalized || !containsLetterOrNumber(normalized) || normalized.length > 32) return null;
|
|
306
|
-
if (/^\d+$/.test(normalized) || /^\d{4}-\d{2}-\d{2}$/u.test(normalized) || /^\d{4}-\d{2}-\d{2}\.[\p{L}\p{N}]+$/u.test(normalized)) return null;
|
|
307
|
-
const script = classifyConceptTagScript(normalized);
|
|
308
|
-
if (normalized.length < minimumTokenLengthForScript(script)) return null;
|
|
309
|
-
if (isKanaOnlyToken(normalized) && normalized.length < 3) return null;
|
|
310
|
-
if (CONCEPT_STOP_WORDS.has(normalized)) return null;
|
|
311
|
-
return normalized;
|
|
312
|
-
}
|
|
313
|
-
function collectGlossaryMatches(source) {
|
|
314
|
-
const normalizedSource = normalizeLowercaseStringOrEmpty(source.normalize("NFKC"));
|
|
315
|
-
const matches = [];
|
|
316
|
-
for (const entry of PROTECTED_GLOSSARY) {
|
|
317
|
-
if (!normalizedSource.includes(entry)) continue;
|
|
318
|
-
matches.push(entry);
|
|
319
|
-
}
|
|
320
|
-
return matches;
|
|
321
|
-
}
|
|
322
|
-
function collectCompoundTokens(source) {
|
|
323
|
-
return source.match(COMPOUND_TOKEN_RE) ?? [];
|
|
324
|
-
}
|
|
325
|
-
function collectSegmentTokens(source) {
|
|
326
|
-
if (DEFAULT_WORD_SEGMENTER) return Array.from(DEFAULT_WORD_SEGMENTER.segment(source), (part) => part.isWordLike ? part.segment : "").filter(Boolean);
|
|
327
|
-
return source.split(/[^\p{L}\p{N}]+/u).filter(Boolean);
|
|
328
|
-
}
|
|
329
|
-
function pushNormalizedTag(tags, rawToken, limit) {
|
|
330
|
-
const normalized = normalizeConceptToken(rawToken);
|
|
331
|
-
if (!normalized || tags.includes(normalized)) return;
|
|
332
|
-
tags.push(normalized);
|
|
333
|
-
if (tags.length > limit) tags.splice(limit);
|
|
334
|
-
}
|
|
335
|
-
function deriveConceptTags(params) {
|
|
336
|
-
const source = `${path.basename(params.path)} ${params.snippet}`;
|
|
337
|
-
const limit = Number.isFinite(params.limit) ? Math.max(0, Math.floor(params.limit)) : 8;
|
|
338
|
-
if (limit === 0) return [];
|
|
339
|
-
const tags = [];
|
|
340
|
-
for (const rawToken of [
|
|
341
|
-
...collectGlossaryMatches(source),
|
|
342
|
-
...collectCompoundTokens(source),
|
|
343
|
-
...collectSegmentTokens(source)
|
|
344
|
-
]) {
|
|
345
|
-
pushNormalizedTag(tags, rawToken, limit);
|
|
346
|
-
if (tags.length >= limit) break;
|
|
347
|
-
}
|
|
348
|
-
return tags;
|
|
349
|
-
}
|
|
350
|
-
function summarizeConceptTagScriptCoverage(conceptTagsByEntry) {
|
|
351
|
-
const coverage = {
|
|
352
|
-
latinEntryCount: 0,
|
|
353
|
-
cjkEntryCount: 0,
|
|
354
|
-
mixedEntryCount: 0,
|
|
355
|
-
otherEntryCount: 0
|
|
356
|
-
};
|
|
357
|
-
for (const conceptTags of conceptTagsByEntry) {
|
|
358
|
-
let hasLatin = false;
|
|
359
|
-
let hasCjk = false;
|
|
360
|
-
let hasOther = false;
|
|
361
|
-
for (const tag of conceptTags) {
|
|
362
|
-
const family = classifyConceptTagScript(tag);
|
|
363
|
-
if (family === "mixed") {
|
|
364
|
-
hasLatin = true;
|
|
365
|
-
hasCjk = true;
|
|
366
|
-
continue;
|
|
367
|
-
}
|
|
368
|
-
if (family === "latin") {
|
|
369
|
-
hasLatin = true;
|
|
370
|
-
continue;
|
|
371
|
-
}
|
|
372
|
-
if (family === "cjk") {
|
|
373
|
-
hasCjk = true;
|
|
374
|
-
continue;
|
|
375
|
-
}
|
|
376
|
-
hasOther = true;
|
|
377
|
-
}
|
|
378
|
-
if (hasLatin && hasCjk) coverage.mixedEntryCount += 1;
|
|
379
|
-
else if (hasCjk) coverage.cjkEntryCount += 1;
|
|
380
|
-
else if (hasLatin) coverage.latinEntryCount += 1;
|
|
381
|
-
else if (hasOther) coverage.otherEntryCount += 1;
|
|
382
|
-
}
|
|
383
|
-
return coverage;
|
|
384
|
-
}
|
|
385
|
-
//#endregion
|
|
386
|
-
//#region extensions/memory-core/src/memory-types.ts
|
|
387
|
-
/**
|
|
388
|
-
* Memory exclusion rules and write quality constants.
|
|
389
|
-
*
|
|
390
|
-
* Prompt sections for subject-based classification, quality enforcement,
|
|
391
|
-
* and verification. Routing is by subject-based topic.
|
|
392
|
-
*/
|
|
393
|
-
/** Line-level patterns that indicate code / implementation details. */
|
|
394
|
-
const CODE_LINE_PATTERNS = [
|
|
395
|
-
/^\s*(?:function|class|interface|type|enum|const|let|var|import|export|from|require)\s/,
|
|
396
|
-
/^\s*(?:if|for|while|return|throw|async|await)\s/,
|
|
397
|
-
/^\s*\S+\s*=\s*["'{[/]/
|
|
398
|
-
];
|
|
399
|
-
/** Substring patterns that indicate git / VCS info. */
|
|
400
|
-
const GIT_PATTERNS = [
|
|
401
|
-
"commit",
|
|
402
|
-
"branch",
|
|
403
|
-
"merge",
|
|
404
|
-
"PR #",
|
|
405
|
-
"hash",
|
|
406
|
-
"blame"
|
|
407
|
-
];
|
|
408
|
-
/** Substring patterns for derivable / obvious statements. */
|
|
409
|
-
const DERIVABLE_PATTERNS = [
|
|
410
|
-
"the file exists",
|
|
411
|
-
"the function is",
|
|
412
|
-
"you can see",
|
|
413
|
-
"as shown in"
|
|
414
|
-
];
|
|
415
|
-
/** Substring patterns for ephemeral task state. */
|
|
416
|
-
const EPHEMERAL_PATTERNS = [
|
|
417
|
-
"currently running",
|
|
418
|
-
"in progress",
|
|
419
|
-
"todo:",
|
|
420
|
-
"FIXME"
|
|
421
|
-
];
|
|
422
|
-
/** Substring patterns for diagnostic / staged metadata. */
|
|
423
|
-
const DIAGNOSTIC_PATTERNS = [
|
|
424
|
-
"confidence:",
|
|
425
|
-
"evidence:",
|
|
426
|
-
"status: staged",
|
|
427
|
-
"recalls:"
|
|
428
|
-
];
|
|
429
|
-
/** File path / extension patterns (substring match). */
|
|
430
|
-
const FILE_PATH_PATTERNS = [
|
|
431
|
-
"/src/",
|
|
432
|
-
"./",
|
|
433
|
-
"../",
|
|
434
|
-
".ts",
|
|
435
|
-
".js",
|
|
436
|
-
".py",
|
|
437
|
-
".json"
|
|
438
|
-
];
|
|
439
|
-
/**
|
|
440
|
-
* Returns true if the content looks like something that should NOT be saved
|
|
441
|
-
* as long-term memory (code, git info, derivable facts, ephemeral state,
|
|
442
|
-
* or diagnostic metadata).
|
|
443
|
-
*/
|
|
444
|
-
function isExcludedMemoryContent(content) {
|
|
445
|
-
const lines = content.split("\n");
|
|
446
|
-
const lower = content.toLowerCase();
|
|
447
|
-
if (DIAGNOSTIC_PATTERNS.some((p) => lower.includes(p.toLowerCase()))) return true;
|
|
448
|
-
for (const line of lines) {
|
|
449
|
-
const trimmed = line.trim();
|
|
450
|
-
if (trimmed.length === 0) continue;
|
|
451
|
-
if (CODE_LINE_PATTERNS.some((re) => re.test(trimmed))) return true;
|
|
452
|
-
if (FILE_PATH_PATTERNS.some((p) => trimmed.includes(p))) return true;
|
|
453
|
-
const lineLower = trimmed.toLowerCase();
|
|
454
|
-
if (GIT_PATTERNS.some((p) => lineLower.includes(p.toLowerCase()))) return true;
|
|
455
|
-
if (DERIVABLE_PATTERNS.some((p) => lineLower.includes(p.toLowerCase()))) return true;
|
|
456
|
-
if (EPHEMERAL_PATTERNS.some((p) => lineLower.includes(p.toLowerCase()))) return true;
|
|
457
|
-
}
|
|
458
|
-
return false;
|
|
459
|
-
}
|
|
460
|
-
const EXCLUSION_PROMPT_SECTION = `## What NOT to save in memory
|
|
461
|
-
|
|
462
|
-
- Code patterns, conventions, architecture, file paths, or project structure
|
|
463
|
-
- Git history, recent changes, or who-changed-what
|
|
464
|
-
- Debugging solutions or fix recipes — the fix is in the code
|
|
465
|
-
- Anything already documented in project files
|
|
466
|
-
- Ephemeral task details: in-progress work, temporary state, current conversation context
|
|
467
|
-
- Information tools can look up in real-time (weather, time, file contents)
|
|
468
|
-
- Diagnostic metadata (confidence scores, evidence paths, status markers)
|
|
469
|
-
|
|
470
|
-
These exclusions apply even when explicitly asked to save. If asked to save a list or summary, ask what was *surprising* or *non-obvious* about it.`;
|
|
471
|
-
const WRITE_QUALITY_PROMPT_SECTION = `## Memory Write Quality Rules
|
|
472
|
-
|
|
473
|
-
1. **Classify by subject**: Tag each memory with a topic subject (English kebab-case, e.g. \`feishu\`, \`philosophy\`, \`product\`).
|
|
474
|
-
2. **Absolute dates**: Convert relative dates ("yesterday", "last week") to absolute dates (2026-04-01)
|
|
475
|
-
3. **Record confirmations**: When user validates an approach ("yes exactly", "keep doing that"), record it
|
|
476
|
-
4. **Why + How to apply**: For feedback and project types, include WHY it matters and HOW to apply it
|
|
477
|
-
5. **Don't duplicate**: If MEMORY.md already says X, don't save X again — update the existing entry`;
|
|
478
|
-
const CLASSIFICATION_PROMPT_SECTION = `## Memory Classification
|
|
479
|
-
|
|
480
|
-
For each memory, choose:
|
|
481
|
-
1. **topic** (required): A subject name in English kebab-case that best categorizes this memory. Group related memories together. Examples: \`feishu\`, \`philosophy\`, \`product\`, \`football\`, \`memory-system\`, \`ai-tools\`.
|
|
482
|
-
2. **type** (required): One of four categories:
|
|
483
|
-
- \`user\` — Personal information about the user: preferences, interests, background, personality traits, communication style, goals
|
|
484
|
-
- \`feedback\` — Explicit or implicit feedback about the assistant: corrections, praise, complaints, preferences about AI behavior
|
|
485
|
-
- \`project\` — Work/project-related information: decisions, requirements, status updates, architecture choices, constraints
|
|
486
|
-
- \`reference\` — Factual reference material: articles, concepts, definitions, how-to knowledge, best practices
|
|
487
|
-
|
|
488
|
-
The topic determines the file; the type determines the section within MEMORY.md.`;
|
|
489
|
-
const VERIFICATION_PROMPT_SECTION = `## Before Recommending from Memory
|
|
490
|
-
|
|
491
|
-
A memory that names a specific file, function, or flag is a claim that it existed *when the memory was written*. Before recommending:
|
|
492
|
-
- If the memory names a file path: check the file exists
|
|
493
|
-
- If the memory names a function or flag: grep for it
|
|
494
|
-
- If the user is about to act on your recommendation, verify first
|
|
495
|
-
|
|
496
|
-
"The memory says X exists" is not the same as "X exists now."`;
|
|
497
|
-
const TOPIC_FILE_FORMAT_SECTION = `## Topic File Format
|
|
498
|
-
|
|
499
|
-
Each topic file lives under memory/topics/ and is named by subject (e.g. \`feishu.md\`, \`philosophy.md\`):
|
|
500
|
-
|
|
501
|
-
\`\`\`markdown
|
|
502
|
-
---
|
|
503
|
-
subject: feishu
|
|
504
|
-
created: YYYY-MM-DD
|
|
505
|
-
updated: YYYY-MM-DD
|
|
506
|
-
entries: N
|
|
507
|
-
---
|
|
508
|
-
|
|
509
|
-
## Entry Title (YYYY-MM-DD)
|
|
510
|
-
|
|
511
|
-
Entry content in free-form markdown.
|
|
512
|
-
|
|
513
|
-
## Another Entry (YYYY-MM-DD)
|
|
514
|
-
|
|
515
|
-
More content.
|
|
516
|
-
\`\`\`
|
|
517
|
-
|
|
518
|
-
Rules:
|
|
519
|
-
- Topic files are created on demand when memories are saved — no pre-created defaults
|
|
520
|
-
- Frontmatter uses \`subject\` (kebab-case) instead of type
|
|
521
|
-
- Each entry is a ## heading with title and date in parentheses
|
|
522
|
-
- Entry type: optional \`- **Type**: user|feedback|project|reference\` line
|
|
523
|
-
- Entry importance: "high", "normal" (default), or "low"
|
|
524
|
-
- Entry source: "session-compact", "memory-save", etc.`;
|
|
525
|
-
//#endregion
|
|
526
|
-
//#region extensions/memory-core/src/short-term-promotion.ts
|
|
527
|
-
function formatLocalIsoDay(epochMs) {
|
|
528
|
-
const d = new Date(epochMs);
|
|
529
|
-
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
530
|
-
}
|
|
531
|
-
function formatMemoryDay(epochMs, timezone) {
|
|
532
|
-
if (!timezone) return formatLocalIsoDay(epochMs);
|
|
533
|
-
try {
|
|
534
|
-
const parts = new Intl.DateTimeFormat("en-CA", {
|
|
535
|
-
timeZone: timezone,
|
|
536
|
-
year: "numeric",
|
|
537
|
-
month: "2-digit",
|
|
538
|
-
day: "2-digit"
|
|
539
|
-
}).formatToParts(new Date(epochMs));
|
|
540
|
-
const values = new Map(parts.map((part) => [part.type, part.value]));
|
|
541
|
-
const year = values.get("year");
|
|
542
|
-
const month = values.get("month");
|
|
543
|
-
const day = values.get("day");
|
|
544
|
-
if (year && month && day) return `${year}-${month}-${day}`;
|
|
545
|
-
} catch {}
|
|
546
|
-
return formatLocalIsoDay(epochMs);
|
|
547
|
-
}
|
|
548
|
-
const DEFAULT_PROMOTION_CRON = "0 3 * * *";
|
|
549
|
-
const DEFAULT_PROMOTION_STORAGE_MODE = "separate";
|
|
550
|
-
const SHORT_TERM_PATH_RE = /(?:^|\/)memory\/(?:[^/]+\/)*(\d{4})-(\d{2})-(\d{2})\.md$/;
|
|
551
|
-
const LEGACY_EXCLUDED_PATH_RE = /(?:^|\/)memory\/dreaming\//;
|
|
552
|
-
const SHORT_TERM_SESSION_CORPUS_RE = /(?:^|\/)memory\/\.dreams\/session-corpus\/(\d{4})-(\d{2})-(\d{2})\.(?:md|txt)$/;
|
|
553
|
-
const SHORT_TERM_BASENAME_RE = /^(\d{4})-(\d{2})-(\d{2})\.md$/;
|
|
554
|
-
const DAY_MS = 1440 * 60 * 1e3;
|
|
555
|
-
const DEFAULT_RECENCY_HALF_LIFE_DAYS = 14;
|
|
556
|
-
const DEFAULT_PROMOTION_MIN_SCORE = .75;
|
|
557
|
-
function resolveShortTermPromotionConfig(_params) {
|
|
558
|
-
return {
|
|
559
|
-
enabled: false,
|
|
560
|
-
cron: DEFAULT_PROMOTION_CRON,
|
|
561
|
-
limit: 10,
|
|
562
|
-
minScore: DEFAULT_PROMOTION_MIN_SCORE,
|
|
563
|
-
minRecallCount: 3,
|
|
564
|
-
minUniqueQueries: 2,
|
|
565
|
-
recencyHalfLifeDays: 14,
|
|
566
|
-
verboseLogging: false,
|
|
567
|
-
storage: {
|
|
568
|
-
mode: DEFAULT_PROMOTION_STORAGE_MODE,
|
|
569
|
-
separateReports: false
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
const PROMOTION_MARKER_PREFIX = "kaijibot-memory-promotion:";
|
|
574
|
-
const MAX_QUERY_HASHES = 32;
|
|
575
|
-
const MAX_RECALL_DAYS = 16;
|
|
576
|
-
const SHORT_TERM_STORE_RELATIVE_PATH = path.join("memory", ".dreams", "short-term-recall.json");
|
|
577
|
-
const SHORT_TERM_PHASE_SIGNAL_RELATIVE_PATH = path.join("memory", ".dreams", "phase-signals.json");
|
|
578
|
-
const SHORT_TERM_LOCK_RELATIVE_PATH = path.join("memory", ".dreams", "short-term-promotion.lock");
|
|
579
|
-
const SHORT_TERM_LOCK_WAIT_TIMEOUT_MS = 1e4;
|
|
580
|
-
const SHORT_TERM_LOCK_STALE_MS = 6e4;
|
|
581
|
-
const SHORT_TERM_LOCK_RETRY_DELAY_MS = 40;
|
|
582
|
-
const PHASE_SIGNAL_LIGHT_BOOST_MAX = .06;
|
|
583
|
-
const PHASE_SIGNAL_REM_BOOST_MAX = .09;
|
|
584
|
-
const PHASE_SIGNAL_HALF_LIFE_DAYS = 14;
|
|
585
|
-
const inProcessShortTermLocks = /* @__PURE__ */ new Map();
|
|
586
|
-
const ensuredShortTermDirs = /* @__PURE__ */ new Map();
|
|
587
|
-
const LEGACY_TRANSCRIPT_PROMPT_LINE_RE = /\[[^\]]*dreaming-narrative[^\]]*]\s*(?:User|Assistant):\s*Write a dream diary entry from these memory fragments:?/i;
|
|
588
|
-
const CONTAMINATED_DIFF_PREFIX_RE = /@@\s*-\d+(?:,\d+)?\s+[-*+]\s+/iy;
|
|
589
|
-
const DEFAULT_PROMOTION_WEIGHTS = {
|
|
590
|
-
frequency: .24,
|
|
591
|
-
relevance: .3,
|
|
592
|
-
diversity: .15,
|
|
593
|
-
recency: .15,
|
|
594
|
-
consolidation: .1,
|
|
595
|
-
conceptual: .06
|
|
596
|
-
};
|
|
597
|
-
function clampScore(value) {
|
|
598
|
-
if (!Number.isFinite(value)) return 0;
|
|
599
|
-
return Math.max(0, Math.min(1, value));
|
|
600
|
-
}
|
|
601
|
-
function toFiniteScore(value, fallback) {
|
|
602
|
-
const num = Number(value);
|
|
603
|
-
if (!Number.isFinite(num)) return fallback;
|
|
604
|
-
if (num < 0 || num > 1) return fallback;
|
|
605
|
-
return num;
|
|
606
|
-
}
|
|
607
|
-
function normalizeSnippet(raw) {
|
|
608
|
-
const trimmed = raw.trim();
|
|
609
|
-
if (!trimmed) return "";
|
|
610
|
-
return trimmed.replace(/\s+/g, " ");
|
|
611
|
-
}
|
|
612
|
-
function consumeContaminatedLeadPrefix(snippet) {
|
|
613
|
-
let index = 0;
|
|
614
|
-
while (index < snippet.length) {
|
|
615
|
-
CONTAMINATED_DIFF_PREFIX_RE.lastIndex = index;
|
|
616
|
-
if (CONTAMINATED_DIFF_PREFIX_RE.exec(snippet)) {
|
|
617
|
-
index = CONTAMINATED_DIFF_PREFIX_RE.lastIndex;
|
|
618
|
-
continue;
|
|
619
|
-
}
|
|
620
|
-
const char = snippet[index];
|
|
621
|
-
if (char === "[" || char === "(") {
|
|
622
|
-
index += 1;
|
|
623
|
-
while (snippet[index] === " ") index += 1;
|
|
624
|
-
continue;
|
|
625
|
-
}
|
|
626
|
-
if ((char === "-" || char === "*" || char === "+" || char === ">") && snippet[index + 1] === " ") {
|
|
627
|
-
index += 2;
|
|
628
|
-
continue;
|
|
629
|
-
}
|
|
630
|
-
break;
|
|
631
|
-
}
|
|
632
|
-
return snippet.slice(index);
|
|
633
|
-
}
|
|
634
|
-
function hasNarrativeLead(snippet) {
|
|
635
|
-
const withoutPrefix = consumeContaminatedLeadPrefix(snippet);
|
|
636
|
-
return /^Candidate:/i.test(withoutPrefix) || /^Reflections?:/i.test(withoutPrefix);
|
|
637
|
-
}
|
|
638
|
-
function isContaminatedSnippet(raw) {
|
|
639
|
-
const snippet = normalizeSnippet(raw);
|
|
640
|
-
if (!snippet) return false;
|
|
641
|
-
if (/<!--\s*kaijibot-memory-promotion:/i.test(snippet) || LEGACY_TRANSCRIPT_PROMPT_LINE_RE.test(snippet)) return true;
|
|
642
|
-
const hasNarrativeLeadResult = hasNarrativeLead(snippet);
|
|
643
|
-
const hasConfidence = /\bconfidence:\s*\d/i.test(snippet);
|
|
644
|
-
const hasEvidence = /\bevidence:\s*memory\/\.dreams\/session-corpus\//i.test(snippet);
|
|
645
|
-
const hasStatus = /\bstatus:\s*staged\b/i.test(snippet);
|
|
646
|
-
const hasRecalls = /\brecalls:\s*\d+\b/i.test(snippet);
|
|
647
|
-
if (hasNarrativeLeadResult && hasConfidence && hasEvidence && hasStatus && hasRecalls) return true;
|
|
648
|
-
return isExcludedMemoryContent(snippet);
|
|
649
|
-
}
|
|
650
|
-
function normalizeMemoryPath(rawPath) {
|
|
651
|
-
return rawPath.replaceAll("\\", "/").replace(/^\.\//, "");
|
|
652
|
-
}
|
|
653
|
-
function buildClaimHash(snippet) {
|
|
654
|
-
return createHash("sha1").update(normalizeSnippet(snippet)).digest("hex").slice(0, 12);
|
|
655
|
-
}
|
|
656
|
-
function buildEntryKey(result) {
|
|
657
|
-
const base = `${result.source}:${normalizeMemoryPath(result.path)}:${result.startLine}:${result.endLine}`;
|
|
658
|
-
return result.claimHash ? `${base}:${result.claimHash}` : base;
|
|
659
|
-
}
|
|
660
|
-
function hashQuery(query) {
|
|
661
|
-
return createHash("sha1").update(normalizeLowercaseStringOrEmpty(query)).digest("hex").slice(0, 12);
|
|
662
|
-
}
|
|
663
|
-
function mergeQueryHashes(existing, queryHash) {
|
|
664
|
-
if (!queryHash) return existing;
|
|
665
|
-
const seen = /* @__PURE__ */ new Set();
|
|
666
|
-
const next = existing.filter((value) => {
|
|
667
|
-
if (!value || seen.has(value)) return false;
|
|
668
|
-
seen.add(value);
|
|
669
|
-
return true;
|
|
670
|
-
});
|
|
671
|
-
if (!seen.has(queryHash)) next.push(queryHash);
|
|
672
|
-
if (next.length <= MAX_QUERY_HASHES) return next;
|
|
673
|
-
return next.slice(next.length - MAX_QUERY_HASHES);
|
|
674
|
-
}
|
|
675
|
-
function mergeRecentDistinct(existing, nextValue, limit) {
|
|
676
|
-
const seen = /* @__PURE__ */ new Set();
|
|
677
|
-
const next = existing.filter((value) => {
|
|
678
|
-
if (typeof value !== "string" || value.length === 0 || seen.has(value)) return false;
|
|
679
|
-
seen.add(value);
|
|
680
|
-
return true;
|
|
681
|
-
});
|
|
682
|
-
if (nextValue && !next.includes(nextValue)) next.push(nextValue);
|
|
683
|
-
if (next.length <= limit) return next;
|
|
684
|
-
return next.slice(next.length - limit);
|
|
685
|
-
}
|
|
686
|
-
function normalizeIsoDay(isoLike) {
|
|
687
|
-
if (typeof isoLike !== "string") return null;
|
|
688
|
-
return isoLike.trim().match(/^(\d{4}-\d{2}-\d{2})/)?.[1] ?? null;
|
|
689
|
-
}
|
|
690
|
-
function normalizeDistinctStrings(values, limit) {
|
|
691
|
-
const seen = /* @__PURE__ */ new Set();
|
|
692
|
-
const normalized = [];
|
|
693
|
-
for (const value of values) {
|
|
694
|
-
if (typeof value !== "string") continue;
|
|
695
|
-
const trimmed = value.trim();
|
|
696
|
-
if (!trimmed || seen.has(trimmed)) continue;
|
|
697
|
-
seen.add(trimmed);
|
|
698
|
-
normalized.push(trimmed);
|
|
699
|
-
if (normalized.length >= limit) break;
|
|
700
|
-
}
|
|
701
|
-
return normalized;
|
|
702
|
-
}
|
|
703
|
-
function totalSignalCountForEntry(entry) {
|
|
704
|
-
return Math.max(0, Math.floor(entry.recallCount ?? 0)) + Math.max(0, Math.floor(entry.dailyCount ?? 0)) + Math.max(0, Math.floor(entry.groundedCount ?? 0));
|
|
705
|
-
}
|
|
706
|
-
function calculateConsolidationComponent(recallDays) {
|
|
707
|
-
if (recallDays.length === 0) return 0;
|
|
708
|
-
if (recallDays.length === 1) return .2;
|
|
709
|
-
const parsed = recallDays.map((value) => Date.parse(`${value}T00:00:00.000Z`)).filter((value) => Number.isFinite(value)).toSorted((left, right) => left - right);
|
|
710
|
-
if (parsed.length <= 1) return .2;
|
|
711
|
-
const spanDays = Math.max(0, (parsed.at(-1) - parsed[0]) / DAY_MS);
|
|
712
|
-
const spacing = clampScore(Math.log1p(parsed.length - 1) / Math.log1p(4));
|
|
713
|
-
const span = clampScore(spanDays / 7);
|
|
714
|
-
return clampScore(.55 * spacing + .45 * span);
|
|
715
|
-
}
|
|
716
|
-
function calculateConceptualComponent(conceptTags) {
|
|
717
|
-
return clampScore(conceptTags.length / 6);
|
|
718
|
-
}
|
|
719
|
-
function emptyStore(nowIso) {
|
|
720
|
-
return {
|
|
721
|
-
version: 1,
|
|
722
|
-
updatedAt: nowIso,
|
|
723
|
-
entries: {}
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
function normalizeStore(raw, nowIso) {
|
|
727
|
-
if (!raw || typeof raw !== "object") return emptyStore(nowIso);
|
|
728
|
-
const record = raw;
|
|
729
|
-
const entriesRaw = record.entries;
|
|
730
|
-
const entries = {};
|
|
731
|
-
if (entriesRaw && typeof entriesRaw === "object") for (const [key, value] of Object.entries(entriesRaw)) {
|
|
732
|
-
if (!value || typeof value !== "object") continue;
|
|
733
|
-
const entry = value;
|
|
734
|
-
const entryPath = typeof entry.path === "string" ? normalizeMemoryPath(entry.path) : "";
|
|
735
|
-
const startLine = Number(entry.startLine);
|
|
736
|
-
const endLine = Number(entry.endLine);
|
|
737
|
-
const source = entry.source === "memory" ? "memory" : null;
|
|
738
|
-
if (!entryPath || !Number.isInteger(startLine) || !Number.isInteger(endLine) || !source) continue;
|
|
739
|
-
const recallCount = Math.max(0, Math.floor(Number(entry.recallCount) || 0));
|
|
740
|
-
const dailyCount = Math.max(0, Math.floor(Number(entry.dailyCount) || 0));
|
|
741
|
-
const groundedCount = Math.max(0, Math.floor(Number(entry.groundedCount) || 0));
|
|
742
|
-
const totalScore = Math.max(0, Number(entry.totalScore) || 0);
|
|
743
|
-
const maxScore = clampScore(Number(entry.maxScore) || 0);
|
|
744
|
-
const firstRecalledAt = typeof entry.firstRecalledAt === "string" ? entry.firstRecalledAt : nowIso;
|
|
745
|
-
const lastRecalledAt = typeof entry.lastRecalledAt === "string" ? entry.lastRecalledAt : nowIso;
|
|
746
|
-
const promotedAt = typeof entry.promotedAt === "string" ? entry.promotedAt : void 0;
|
|
747
|
-
const claimHash = typeof entry.claimHash === "string" && entry.claimHash.trim().length > 0 ? entry.claimHash.trim() : void 0;
|
|
748
|
-
const snippet = typeof entry.snippet === "string" ? normalizeSnippet(entry.snippet) : "";
|
|
749
|
-
if (snippet && isContaminatedSnippet(snippet)) continue;
|
|
750
|
-
const queryHashes = Array.isArray(entry.queryHashes) ? normalizeDistinctStrings(entry.queryHashes, MAX_QUERY_HASHES) : [];
|
|
751
|
-
const recallDays = Array.isArray(entry.recallDays) ? entry.recallDays.map((value) => normalizeIsoDay(String(value))).filter((value) => value !== null) : [];
|
|
752
|
-
const conceptTags = Array.isArray(entry.conceptTags) ? normalizeDistinctStrings(entry.conceptTags.map((tag) => typeof tag === "string" ? normalizeLowercaseStringOrEmpty(tag) : tag), 8) : deriveConceptTags({
|
|
753
|
-
path: entryPath,
|
|
754
|
-
snippet
|
|
755
|
-
});
|
|
756
|
-
const normalizedKey = key || buildEntryKey({
|
|
757
|
-
path: entryPath,
|
|
758
|
-
startLine,
|
|
759
|
-
endLine,
|
|
760
|
-
source,
|
|
761
|
-
claimHash
|
|
762
|
-
});
|
|
763
|
-
entries[normalizedKey] = {
|
|
764
|
-
key: normalizedKey,
|
|
765
|
-
path: entryPath,
|
|
766
|
-
startLine,
|
|
767
|
-
endLine,
|
|
768
|
-
source,
|
|
769
|
-
snippet,
|
|
770
|
-
recallCount,
|
|
771
|
-
dailyCount,
|
|
772
|
-
groundedCount,
|
|
773
|
-
totalScore,
|
|
774
|
-
maxScore,
|
|
775
|
-
firstRecalledAt,
|
|
776
|
-
lastRecalledAt,
|
|
777
|
-
queryHashes,
|
|
778
|
-
recallDays: recallDays.slice(-MAX_RECALL_DAYS),
|
|
779
|
-
conceptTags,
|
|
780
|
-
...claimHash ? { claimHash } : {},
|
|
781
|
-
...promotedAt ? { promotedAt } : {}
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
return {
|
|
785
|
-
version: 1,
|
|
786
|
-
updatedAt: typeof record.updatedAt === "string" ? record.updatedAt : nowIso,
|
|
787
|
-
entries
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
function toFinitePositive(value, fallback) {
|
|
791
|
-
const num = Number(value);
|
|
792
|
-
if (!Number.isFinite(num) || num <= 0) return fallback;
|
|
793
|
-
return num;
|
|
794
|
-
}
|
|
795
|
-
function toFiniteNonNegativeInt(value, fallback) {
|
|
796
|
-
const num = Number(value);
|
|
797
|
-
if (!Number.isFinite(num)) return fallback;
|
|
798
|
-
const floored = Math.floor(num);
|
|
799
|
-
if (floored < 0) return fallback;
|
|
800
|
-
return floored;
|
|
801
|
-
}
|
|
802
|
-
function normalizeWeights(weights) {
|
|
803
|
-
const merged = {
|
|
804
|
-
...DEFAULT_PROMOTION_WEIGHTS,
|
|
805
|
-
...weights
|
|
806
|
-
};
|
|
807
|
-
const frequency = Math.max(0, merged.frequency);
|
|
808
|
-
const relevance = Math.max(0, merged.relevance);
|
|
809
|
-
const diversity = Math.max(0, merged.diversity);
|
|
810
|
-
const recency = Math.max(0, merged.recency);
|
|
811
|
-
const consolidation = Math.max(0, merged.consolidation);
|
|
812
|
-
const conceptual = Math.max(0, merged.conceptual);
|
|
813
|
-
const sum = frequency + relevance + diversity + recency + consolidation + conceptual;
|
|
814
|
-
if (sum <= 0) return { ...DEFAULT_PROMOTION_WEIGHTS };
|
|
815
|
-
return {
|
|
816
|
-
frequency: frequency / sum,
|
|
817
|
-
relevance: relevance / sum,
|
|
818
|
-
diversity: diversity / sum,
|
|
819
|
-
recency: recency / sum,
|
|
820
|
-
consolidation: consolidation / sum,
|
|
821
|
-
conceptual: conceptual / sum
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
function calculateRecencyComponent(ageDays, halfLifeDays) {
|
|
825
|
-
if (!Number.isFinite(ageDays) || ageDays < 0) return 1;
|
|
826
|
-
if (!Number.isFinite(halfLifeDays) || halfLifeDays <= 0) return 1;
|
|
827
|
-
const lambda = Math.LN2 / halfLifeDays;
|
|
828
|
-
return Math.exp(-lambda * ageDays);
|
|
829
|
-
}
|
|
830
|
-
function calculatePhaseSignalAgeDays(lastSeenAt, nowMs) {
|
|
831
|
-
if (!lastSeenAt) return null;
|
|
832
|
-
const parsed = Date.parse(lastSeenAt);
|
|
833
|
-
if (!Number.isFinite(parsed)) return null;
|
|
834
|
-
return Math.max(0, (nowMs - parsed) / DAY_MS);
|
|
835
|
-
}
|
|
836
|
-
function calculatePhaseSignalBoost(entry, nowMs) {
|
|
837
|
-
if (!entry) return 0;
|
|
838
|
-
const lightStrength = clampScore(Math.log1p(Math.max(0, entry.lightHits)) / Math.log1p(6));
|
|
839
|
-
const remStrength = clampScore(Math.log1p(Math.max(0, entry.remHits)) / Math.log1p(6));
|
|
840
|
-
const lightAgeDays = calculatePhaseSignalAgeDays(entry.lastLightAt, nowMs);
|
|
841
|
-
const remAgeDays = calculatePhaseSignalAgeDays(entry.lastRemAt, nowMs);
|
|
842
|
-
const lightRecency = lightAgeDays === null ? 0 : clampScore(calculateRecencyComponent(lightAgeDays, PHASE_SIGNAL_HALF_LIFE_DAYS));
|
|
843
|
-
const remRecency = remAgeDays === null ? 0 : clampScore(calculateRecencyComponent(remAgeDays, PHASE_SIGNAL_HALF_LIFE_DAYS));
|
|
844
|
-
return clampScore(PHASE_SIGNAL_LIGHT_BOOST_MAX * lightStrength * lightRecency + PHASE_SIGNAL_REM_BOOST_MAX * remStrength * remRecency);
|
|
845
|
-
}
|
|
846
|
-
function resolveStorePath(workspaceDir) {
|
|
847
|
-
return path.join(workspaceDir, SHORT_TERM_STORE_RELATIVE_PATH);
|
|
848
|
-
}
|
|
849
|
-
function resolvePhaseSignalPath(workspaceDir) {
|
|
850
|
-
return path.join(workspaceDir, SHORT_TERM_PHASE_SIGNAL_RELATIVE_PATH);
|
|
851
|
-
}
|
|
852
|
-
function resolveLockPath(workspaceDir) {
|
|
853
|
-
return path.join(workspaceDir, SHORT_TERM_LOCK_RELATIVE_PATH);
|
|
854
|
-
}
|
|
855
|
-
function resolveShortTermArtifactsDir(workspaceDir) {
|
|
856
|
-
return path.dirname(resolveLockPath(workspaceDir));
|
|
857
|
-
}
|
|
858
|
-
async function ensureShortTermArtifactsDir(workspaceDir) {
|
|
859
|
-
const artifactsDir = resolveShortTermArtifactsDir(workspaceDir);
|
|
860
|
-
const existing = ensuredShortTermDirs.get(artifactsDir);
|
|
861
|
-
if (existing) {
|
|
862
|
-
await existing;
|
|
863
|
-
return;
|
|
864
|
-
}
|
|
865
|
-
const ensuring = fs.mkdir(artifactsDir, { recursive: true }).then(() => void 0).catch((err) => {
|
|
866
|
-
ensuredShortTermDirs.delete(artifactsDir);
|
|
867
|
-
throw err;
|
|
868
|
-
});
|
|
869
|
-
ensuredShortTermDirs.set(artifactsDir, ensuring);
|
|
870
|
-
await ensuring;
|
|
871
|
-
}
|
|
872
|
-
function parseLockOwnerPid(raw) {
|
|
873
|
-
const match = raw.trim().match(/^(\d+):/);
|
|
874
|
-
if (!match) return null;
|
|
875
|
-
const pid = Number.parseInt(match[1] ?? "", 10);
|
|
876
|
-
if (!Number.isInteger(pid) || pid <= 0) return null;
|
|
877
|
-
return pid;
|
|
878
|
-
}
|
|
879
|
-
function isProcessLikelyAlive(pid) {
|
|
880
|
-
try {
|
|
881
|
-
process.kill(pid, 0);
|
|
882
|
-
return true;
|
|
883
|
-
} catch (err) {
|
|
884
|
-
if (err.code === "ESRCH") return false;
|
|
885
|
-
return true;
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
async function canStealStaleLock(lockPath) {
|
|
889
|
-
const ownerPid = await fs.readFile(lockPath, "utf-8").then((raw) => parseLockOwnerPid(raw)).catch(() => null);
|
|
890
|
-
if (ownerPid === null) return true;
|
|
891
|
-
return !isProcessLikelyAlive(ownerPid);
|
|
892
|
-
}
|
|
893
|
-
async function sleep(ms) {
|
|
894
|
-
await new Promise((resolve) => {
|
|
895
|
-
setTimeout(resolve, ms);
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
async function withInProcessShortTermLock(lockPath, task) {
|
|
899
|
-
const previous = inProcessShortTermLocks.get(lockPath) ?? Promise.resolve();
|
|
900
|
-
let releaseCurrent;
|
|
901
|
-
const current = new Promise((resolve) => {
|
|
902
|
-
releaseCurrent = resolve;
|
|
903
|
-
});
|
|
904
|
-
const queued = previous.catch(() => void 0).then(() => current);
|
|
905
|
-
inProcessShortTermLocks.set(lockPath, queued);
|
|
906
|
-
await previous.catch(() => void 0);
|
|
907
|
-
try {
|
|
908
|
-
return await task();
|
|
909
|
-
} finally {
|
|
910
|
-
releaseCurrent();
|
|
911
|
-
if (inProcessShortTermLocks.get(lockPath) === queued) inProcessShortTermLocks.delete(lockPath);
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
async function withShortTermLock(workspaceDir, task) {
|
|
915
|
-
const lockPath = resolveLockPath(workspaceDir);
|
|
916
|
-
return withInProcessShortTermLock(lockPath, async () => {
|
|
917
|
-
await ensureShortTermArtifactsDir(workspaceDir);
|
|
918
|
-
const startedAt = Date.now();
|
|
919
|
-
while (true) try {
|
|
920
|
-
const lockHandle = await fs.open(lockPath, "wx");
|
|
921
|
-
await lockHandle.writeFile(`${process.pid}:${Date.now()}\n`, "utf-8").catch(() => void 0);
|
|
922
|
-
try {
|
|
923
|
-
return await task();
|
|
924
|
-
} finally {
|
|
925
|
-
await lockHandle.close().catch(() => void 0);
|
|
926
|
-
await fs.unlink(lockPath).catch(() => void 0);
|
|
927
|
-
}
|
|
928
|
-
} catch (err) {
|
|
929
|
-
if (err?.code !== "EEXIST") throw err;
|
|
930
|
-
if (await fs.stat(lockPath).then((stats) => Date.now() - stats.mtimeMs).catch(() => 0) > SHORT_TERM_LOCK_STALE_MS) {
|
|
931
|
-
if (await canStealStaleLock(lockPath)) {
|
|
932
|
-
await fs.unlink(lockPath).catch(() => void 0);
|
|
933
|
-
continue;
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
if (Date.now() - startedAt >= SHORT_TERM_LOCK_WAIT_TIMEOUT_MS) throw new Error(`Timed out waiting for short-term promotion lock at ${lockPath}`, { cause: err });
|
|
937
|
-
await sleep(SHORT_TERM_LOCK_RETRY_DELAY_MS);
|
|
938
|
-
}
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
async function readStore(workspaceDir, nowIso) {
|
|
942
|
-
const storePath = resolveStorePath(workspaceDir);
|
|
943
|
-
try {
|
|
944
|
-
const raw = await fs.readFile(storePath, "utf-8");
|
|
945
|
-
return normalizeStore(JSON.parse(raw), nowIso);
|
|
946
|
-
} catch (err) {
|
|
947
|
-
if (err?.code === "ENOENT") return emptyStore(nowIso);
|
|
948
|
-
throw err;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
function emptyPhaseSignalStore(nowIso) {
|
|
952
|
-
return {
|
|
953
|
-
version: 1,
|
|
954
|
-
updatedAt: nowIso,
|
|
955
|
-
entries: {}
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
function normalizePhaseSignalStore(raw, nowIso) {
|
|
959
|
-
const record = asNullableRecord(raw);
|
|
960
|
-
if (!record) return emptyPhaseSignalStore(nowIso);
|
|
961
|
-
const entriesRaw = asNullableRecord(record?.entries);
|
|
962
|
-
if (!entriesRaw) return emptyPhaseSignalStore(nowIso);
|
|
963
|
-
const entries = {};
|
|
964
|
-
for (const [mapKey, value] of Object.entries(entriesRaw)) {
|
|
965
|
-
const entry = asNullableRecord(value);
|
|
966
|
-
if (!entry) continue;
|
|
967
|
-
const key = typeof entry.key === "string" && entry.key.trim().length > 0 ? entry.key : mapKey;
|
|
968
|
-
const lightHits = toFiniteNonNegativeInt(entry.lightHits, 0);
|
|
969
|
-
const remHits = toFiniteNonNegativeInt(entry.remHits, 0);
|
|
970
|
-
if (lightHits === 0 && remHits === 0) continue;
|
|
971
|
-
const lastLightAt = typeof entry.lastLightAt === "string" && entry.lastLightAt.trim().length > 0 ? entry.lastLightAt : void 0;
|
|
972
|
-
const lastRemAt = typeof entry.lastRemAt === "string" && entry.lastRemAt.trim().length > 0 ? entry.lastRemAt : void 0;
|
|
973
|
-
entries[key] = {
|
|
974
|
-
key,
|
|
975
|
-
lightHits,
|
|
976
|
-
remHits,
|
|
977
|
-
...lastLightAt ? { lastLightAt } : {},
|
|
978
|
-
...lastRemAt ? { lastRemAt } : {}
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
return {
|
|
982
|
-
version: 1,
|
|
983
|
-
updatedAt: typeof record.updatedAt === "string" && record.updatedAt.trim().length > 0 ? record.updatedAt : nowIso,
|
|
984
|
-
entries
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
async function readPhaseSignalStore(workspaceDir, nowIso) {
|
|
988
|
-
const phaseSignalPath = resolvePhaseSignalPath(workspaceDir);
|
|
989
|
-
try {
|
|
990
|
-
const raw = await fs.readFile(phaseSignalPath, "utf-8");
|
|
991
|
-
return normalizePhaseSignalStore(JSON.parse(raw), nowIso);
|
|
992
|
-
} catch (err) {
|
|
993
|
-
if (err?.code === "ENOENT" || err instanceof SyntaxError) return emptyPhaseSignalStore(nowIso);
|
|
994
|
-
return emptyPhaseSignalStore(nowIso);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
async function writePhaseSignalStore(workspaceDir, store) {
|
|
998
|
-
const phaseSignalPath = resolvePhaseSignalPath(workspaceDir);
|
|
999
|
-
await ensureShortTermArtifactsDir(workspaceDir);
|
|
1000
|
-
const tmpPath = `${phaseSignalPath}.${process.pid}.${Date.now()}.${randomUUID()}.tmp`;
|
|
1001
|
-
await fs.writeFile(tmpPath, `${JSON.stringify(store, null, 2)}\n`, "utf-8");
|
|
1002
|
-
await fs.rename(tmpPath, phaseSignalPath);
|
|
1003
|
-
}
|
|
1004
|
-
async function writeStore(workspaceDir, store) {
|
|
1005
|
-
const storePath = resolveStorePath(workspaceDir);
|
|
1006
|
-
await ensureShortTermArtifactsDir(workspaceDir);
|
|
1007
|
-
const tmpPath = `${storePath}.${process.pid}.${Date.now()}.${randomUUID()}.tmp`;
|
|
1008
|
-
await fs.writeFile(tmpPath, `${JSON.stringify(store, null, 2)}\n`, "utf-8");
|
|
1009
|
-
await fs.rename(tmpPath, storePath);
|
|
1010
|
-
}
|
|
1011
|
-
function isShortTermMemoryPath(filePath) {
|
|
1012
|
-
const normalized = normalizeMemoryPath(filePath);
|
|
1013
|
-
if (LEGACY_EXCLUDED_PATH_RE.test(normalized)) return false;
|
|
1014
|
-
if (SHORT_TERM_PATH_RE.test(normalized)) return true;
|
|
1015
|
-
if (SHORT_TERM_SESSION_CORPUS_RE.test(normalized)) return true;
|
|
1016
|
-
return SHORT_TERM_BASENAME_RE.test(normalized);
|
|
1017
|
-
}
|
|
1018
|
-
async function recordShortTermRecalls(params) {
|
|
1019
|
-
const workspaceDir = params.workspaceDir?.trim();
|
|
1020
|
-
if (!workspaceDir) return;
|
|
1021
|
-
const query = params.query.trim();
|
|
1022
|
-
if (!query) return;
|
|
1023
|
-
const relevant = params.results.filter((result) => result.source === "memory" && isShortTermMemoryPath(result.path));
|
|
1024
|
-
if (relevant.length === 0) return;
|
|
1025
|
-
const nowMs = Number.isFinite(params.nowMs) ? params.nowMs : Date.now();
|
|
1026
|
-
const nowIso = new Date(nowMs).toISOString();
|
|
1027
|
-
const signalType = params.signalType ?? "recall";
|
|
1028
|
-
const queryHash = hashQuery(query);
|
|
1029
|
-
const todayBucket = normalizeIsoDay(params.dayBucket ?? "") ?? formatMemoryDay(nowMs, params.timezone);
|
|
1030
|
-
await withShortTermLock(workspaceDir, async () => {
|
|
1031
|
-
const store = await readStore(workspaceDir, nowIso);
|
|
1032
|
-
for (const result of relevant) {
|
|
1033
|
-
const normalizedPath = normalizeMemoryPath(result.path);
|
|
1034
|
-
const snippet = normalizeSnippet(result.snippet);
|
|
1035
|
-
if (snippet && isContaminatedSnippet(snippet)) continue;
|
|
1036
|
-
const claimHash = snippet ? buildClaimHash(snippet) : void 0;
|
|
1037
|
-
const groundedKey = claimHash ? buildEntryKey({
|
|
1038
|
-
path: normalizedPath,
|
|
1039
|
-
startLine: Math.max(1, Math.floor(result.startLine)),
|
|
1040
|
-
endLine: Math.max(1, Math.floor(result.endLine)),
|
|
1041
|
-
source: "memory",
|
|
1042
|
-
claimHash
|
|
1043
|
-
}) : null;
|
|
1044
|
-
const baseKey = buildEntryKey(result);
|
|
1045
|
-
const key = groundedKey && store.entries[groundedKey] ? groundedKey : baseKey;
|
|
1046
|
-
const existing = store.entries[key];
|
|
1047
|
-
const score = clampScore(result.score);
|
|
1048
|
-
const recallDaysBase = existing?.recallDays ?? [];
|
|
1049
|
-
const queryHashesBase = existing?.queryHashes ?? [];
|
|
1050
|
-
const dedupeSignal = Boolean(params.dedupeByQueryPerDay) && queryHashesBase.includes(queryHash) && recallDaysBase.includes(todayBucket);
|
|
1051
|
-
const recallCount = signalType === "recall" ? Math.max(0, Math.floor(existing?.recallCount ?? 0) + (dedupeSignal ? 0 : 1)) : Math.max(0, Math.floor(existing?.recallCount ?? 0));
|
|
1052
|
-
const dailyCount = signalType === "daily" ? Math.max(0, Math.floor(existing?.dailyCount ?? 0) + (dedupeSignal ? 0 : 1)) : Math.max(0, Math.floor(existing?.dailyCount ?? 0));
|
|
1053
|
-
const totalScore = Math.max(0, (existing?.totalScore ?? 0) + (dedupeSignal ? 0 : score));
|
|
1054
|
-
const maxScore = Math.max(existing?.maxScore ?? 0, dedupeSignal ? 0 : score);
|
|
1055
|
-
const queryHashes = mergeQueryHashes(existing?.queryHashes ?? [], queryHash);
|
|
1056
|
-
const recallDays = mergeRecentDistinct(recallDaysBase, todayBucket, MAX_RECALL_DAYS);
|
|
1057
|
-
const conceptTags = deriveConceptTags({
|
|
1058
|
-
path: normalizedPath,
|
|
1059
|
-
snippet
|
|
1060
|
-
});
|
|
1061
|
-
store.entries[key] = {
|
|
1062
|
-
key,
|
|
1063
|
-
path: normalizedPath,
|
|
1064
|
-
startLine: Math.max(1, Math.floor(result.startLine)),
|
|
1065
|
-
endLine: Math.max(1, Math.floor(result.endLine)),
|
|
1066
|
-
source: "memory",
|
|
1067
|
-
snippet: snippet || existing?.snippet || "",
|
|
1068
|
-
recallCount,
|
|
1069
|
-
dailyCount,
|
|
1070
|
-
groundedCount: Math.max(0, Math.floor(existing?.groundedCount ?? 0)),
|
|
1071
|
-
totalScore,
|
|
1072
|
-
maxScore,
|
|
1073
|
-
firstRecalledAt: existing?.firstRecalledAt ?? nowIso,
|
|
1074
|
-
lastRecalledAt: nowIso,
|
|
1075
|
-
queryHashes,
|
|
1076
|
-
recallDays,
|
|
1077
|
-
conceptTags: conceptTags.length > 0 ? conceptTags : existing?.conceptTags ?? [],
|
|
1078
|
-
...existing?.claimHash ? { claimHash: existing.claimHash } : {},
|
|
1079
|
-
...existing?.promotedAt ? { promotedAt: existing.promotedAt } : {}
|
|
1080
|
-
};
|
|
1081
|
-
}
|
|
1082
|
-
store.updatedAt = nowIso;
|
|
1083
|
-
await writeStore(workspaceDir, store);
|
|
1084
|
-
await appendMemoryHostEvent(workspaceDir, {
|
|
1085
|
-
type: "memory.recall.recorded",
|
|
1086
|
-
timestamp: nowIso,
|
|
1087
|
-
query,
|
|
1088
|
-
resultCount: relevant.length,
|
|
1089
|
-
results: relevant.map((result) => ({
|
|
1090
|
-
path: normalizeMemoryPath(result.path),
|
|
1091
|
-
startLine: Math.max(1, Math.floor(result.startLine)),
|
|
1092
|
-
endLine: Math.max(1, Math.floor(result.endLine)),
|
|
1093
|
-
score: clampScore(result.score)
|
|
1094
|
-
}))
|
|
1095
|
-
});
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
async function rankShortTermPromotionCandidates(options) {
|
|
1099
|
-
const workspaceDir = options.workspaceDir.trim();
|
|
1100
|
-
if (!workspaceDir) return [];
|
|
1101
|
-
const nowMs = Number.isFinite(options.nowMs) ? options.nowMs : Date.now();
|
|
1102
|
-
const nowIso = new Date(nowMs).toISOString();
|
|
1103
|
-
const minScore = toFiniteScore(options.minScore, DEFAULT_PROMOTION_MIN_SCORE);
|
|
1104
|
-
const minRecallCount = toFiniteNonNegativeInt(options.minRecallCount, 3);
|
|
1105
|
-
const minUniqueQueries = toFiniteNonNegativeInt(options.minUniqueQueries, 2);
|
|
1106
|
-
const maxAgeDays = toFiniteNonNegativeInt(options.maxAgeDays, -1);
|
|
1107
|
-
const includePromoted = Boolean(options.includePromoted);
|
|
1108
|
-
const halfLifeDays = toFinitePositive(options.recencyHalfLifeDays, DEFAULT_RECENCY_HALF_LIFE_DAYS);
|
|
1109
|
-
const weights = normalizeWeights(options.weights);
|
|
1110
|
-
const [store, phaseSignals] = await Promise.all([readStore(workspaceDir, nowIso), readPhaseSignalStore(workspaceDir, nowIso)]);
|
|
1111
|
-
const candidates = [];
|
|
1112
|
-
for (const entry of Object.values(store.entries)) {
|
|
1113
|
-
if (!entry || entry.source !== "memory" || !isShortTermMemoryPath(entry.path)) continue;
|
|
1114
|
-
if (isContaminatedSnippet(entry.snippet)) continue;
|
|
1115
|
-
if (!includePromoted && entry.promotedAt) continue;
|
|
1116
|
-
const recallCount = Math.max(0, Math.floor(entry.recallCount ?? 0));
|
|
1117
|
-
const dailyCount = Math.max(0, Math.floor(entry.dailyCount ?? 0));
|
|
1118
|
-
const groundedCount = Math.max(0, Math.floor(entry.groundedCount ?? 0));
|
|
1119
|
-
const signalCount = totalSignalCountForEntry(entry);
|
|
1120
|
-
if (signalCount <= 0) continue;
|
|
1121
|
-
if (signalCount < minRecallCount) continue;
|
|
1122
|
-
const avgScore = clampScore(entry.totalScore / Math.max(1, signalCount));
|
|
1123
|
-
const frequency = clampScore(Math.log1p(signalCount) / Math.log1p(10));
|
|
1124
|
-
const uniqueQueries = entry.queryHashes?.length ?? 0;
|
|
1125
|
-
const contextDiversity = Math.max(uniqueQueries, entry.recallDays?.length ?? 0);
|
|
1126
|
-
if (contextDiversity < minUniqueQueries) continue;
|
|
1127
|
-
const diversity = clampScore(contextDiversity / 5);
|
|
1128
|
-
const lastRecalledAtMs = Date.parse(entry.lastRecalledAt);
|
|
1129
|
-
const ageDays = Number.isFinite(lastRecalledAtMs) ? Math.max(0, (nowMs - lastRecalledAtMs) / DAY_MS) : 0;
|
|
1130
|
-
if (maxAgeDays >= 0 && ageDays > maxAgeDays) continue;
|
|
1131
|
-
const recency = clampScore(calculateRecencyComponent(ageDays, halfLifeDays));
|
|
1132
|
-
const recallDays = entry.recallDays ?? [];
|
|
1133
|
-
const conceptTags = entry.conceptTags ?? [];
|
|
1134
|
-
const consolidation = Math.max(calculateConsolidationComponent(recallDays), clampScore(groundedCount / 3));
|
|
1135
|
-
const conceptual = calculateConceptualComponent(conceptTags);
|
|
1136
|
-
const phaseBoost = calculatePhaseSignalBoost(phaseSignals.entries[entry.key], nowMs);
|
|
1137
|
-
const score = weights.frequency * frequency + weights.relevance * avgScore + weights.diversity * diversity + weights.recency * recency + weights.consolidation * consolidation + weights.conceptual * conceptual + phaseBoost;
|
|
1138
|
-
if (score < minScore) continue;
|
|
1139
|
-
candidates.push({
|
|
1140
|
-
key: entry.key,
|
|
1141
|
-
path: entry.path,
|
|
1142
|
-
startLine: entry.startLine,
|
|
1143
|
-
endLine: entry.endLine,
|
|
1144
|
-
source: entry.source,
|
|
1145
|
-
snippet: entry.snippet,
|
|
1146
|
-
recallCount,
|
|
1147
|
-
dailyCount,
|
|
1148
|
-
groundedCount,
|
|
1149
|
-
signalCount,
|
|
1150
|
-
avgScore,
|
|
1151
|
-
maxScore: clampScore(entry.maxScore),
|
|
1152
|
-
uniqueQueries,
|
|
1153
|
-
...entry.claimHash ? { claimHash: entry.claimHash } : {},
|
|
1154
|
-
promotedAt: entry.promotedAt,
|
|
1155
|
-
firstRecalledAt: entry.firstRecalledAt,
|
|
1156
|
-
lastRecalledAt: entry.lastRecalledAt,
|
|
1157
|
-
ageDays,
|
|
1158
|
-
score: clampScore(score),
|
|
1159
|
-
recallDays,
|
|
1160
|
-
conceptTags,
|
|
1161
|
-
components: {
|
|
1162
|
-
frequency,
|
|
1163
|
-
relevance: avgScore,
|
|
1164
|
-
diversity,
|
|
1165
|
-
recency,
|
|
1166
|
-
consolidation,
|
|
1167
|
-
conceptual
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
const sorted = candidates.toSorted((a, b) => {
|
|
1172
|
-
if (b.score !== a.score) return b.score - a.score;
|
|
1173
|
-
if (b.recallCount !== a.recallCount) return b.recallCount - a.recallCount;
|
|
1174
|
-
return a.path.localeCompare(b.path);
|
|
1175
|
-
});
|
|
1176
|
-
const limit = Number.isFinite(options.limit) ? Math.max(0, Math.floor(options.limit)) : sorted.length;
|
|
1177
|
-
return sorted.slice(0, limit);
|
|
1178
|
-
}
|
|
1179
|
-
function resolveShortTermSourcePathCandidates(workspaceDir, candidatePath) {
|
|
1180
|
-
const normalizedPath = normalizeMemoryPath(candidatePath);
|
|
1181
|
-
const basenames = [normalizedPath];
|
|
1182
|
-
if (!normalizedPath.startsWith("memory/")) basenames.push(path.posix.join("memory", path.posix.basename(normalizedPath)));
|
|
1183
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1184
|
-
const resolved = [];
|
|
1185
|
-
for (const relativePath of basenames) {
|
|
1186
|
-
const absolutePath = path.resolve(workspaceDir, relativePath);
|
|
1187
|
-
if (seen.has(absolutePath)) continue;
|
|
1188
|
-
seen.add(absolutePath);
|
|
1189
|
-
resolved.push(absolutePath);
|
|
1190
|
-
}
|
|
1191
|
-
return resolved;
|
|
1192
|
-
}
|
|
1193
|
-
function normalizeRangeSnippet(lines, startLine, endLine) {
|
|
1194
|
-
const startIndex = Math.max(0, startLine - 1);
|
|
1195
|
-
const endIndex = Math.min(lines.length, endLine);
|
|
1196
|
-
if (startIndex >= endIndex) return "";
|
|
1197
|
-
return normalizeSnippet(lines.slice(startIndex, endIndex).join(" "));
|
|
1198
|
-
}
|
|
1199
|
-
function compareCandidateWindow(targetSnippet, windowSnippet) {
|
|
1200
|
-
if (!targetSnippet || !windowSnippet) return {
|
|
1201
|
-
matched: false,
|
|
1202
|
-
quality: 0
|
|
1203
|
-
};
|
|
1204
|
-
if (windowSnippet === targetSnippet) return {
|
|
1205
|
-
matched: true,
|
|
1206
|
-
quality: 3
|
|
1207
|
-
};
|
|
1208
|
-
if (windowSnippet.includes(targetSnippet)) return {
|
|
1209
|
-
matched: true,
|
|
1210
|
-
quality: 2
|
|
1211
|
-
};
|
|
1212
|
-
if (targetSnippet.includes(windowSnippet)) return {
|
|
1213
|
-
matched: true,
|
|
1214
|
-
quality: 1
|
|
1215
|
-
};
|
|
1216
|
-
return {
|
|
1217
|
-
matched: false,
|
|
1218
|
-
quality: 0
|
|
1219
|
-
};
|
|
1220
|
-
}
|
|
1221
|
-
function relocateCandidateRange(lines, candidate) {
|
|
1222
|
-
const targetSnippet = normalizeSnippet(candidate.snippet);
|
|
1223
|
-
const preferredSpan = Math.max(1, candidate.endLine - candidate.startLine + 1);
|
|
1224
|
-
if (targetSnippet.length === 0) {
|
|
1225
|
-
const fallbackSnippet = normalizeRangeSnippet(lines, candidate.startLine, candidate.endLine);
|
|
1226
|
-
if (!fallbackSnippet) return null;
|
|
1227
|
-
return {
|
|
1228
|
-
startLine: candidate.startLine,
|
|
1229
|
-
endLine: candidate.endLine,
|
|
1230
|
-
snippet: fallbackSnippet
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
|
-
const exactSnippet = normalizeRangeSnippet(lines, candidate.startLine, candidate.endLine);
|
|
1234
|
-
if (exactSnippet === targetSnippet) return {
|
|
1235
|
-
startLine: candidate.startLine,
|
|
1236
|
-
endLine: candidate.endLine,
|
|
1237
|
-
snippet: exactSnippet
|
|
1238
|
-
};
|
|
1239
|
-
const maxSpan = Math.min(lines.length, Math.max(preferredSpan + 3, 8));
|
|
1240
|
-
let bestMatch;
|
|
1241
|
-
for (let startIndex = 0; startIndex < lines.length; startIndex += 1) for (let span = 1; span <= maxSpan && startIndex + span <= lines.length; span += 1) {
|
|
1242
|
-
const startLine = startIndex + 1;
|
|
1243
|
-
const endLine = startIndex + span;
|
|
1244
|
-
const snippet = normalizeRangeSnippet(lines, startLine, endLine);
|
|
1245
|
-
const comparison = compareCandidateWindow(targetSnippet, snippet);
|
|
1246
|
-
if (!comparison.matched) continue;
|
|
1247
|
-
const distance = Math.abs(startLine - candidate.startLine);
|
|
1248
|
-
if (!bestMatch || comparison.quality > bestMatch.quality || comparison.quality === bestMatch.quality && distance < bestMatch.distance || comparison.quality === bestMatch.quality && distance === bestMatch.distance && Math.abs(span - preferredSpan) < Math.abs(bestMatch.endLine - bestMatch.startLine + 1 - preferredSpan)) bestMatch = {
|
|
1249
|
-
startLine,
|
|
1250
|
-
endLine,
|
|
1251
|
-
snippet,
|
|
1252
|
-
quality: comparison.quality,
|
|
1253
|
-
distance
|
|
1254
|
-
};
|
|
1255
|
-
}
|
|
1256
|
-
if (!bestMatch) return null;
|
|
1257
|
-
return {
|
|
1258
|
-
startLine: bestMatch.startLine,
|
|
1259
|
-
endLine: bestMatch.endLine,
|
|
1260
|
-
snippet: bestMatch.snippet
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
async function rehydratePromotionCandidate(workspaceDir, candidate) {
|
|
1264
|
-
const sourcePaths = resolveShortTermSourcePathCandidates(workspaceDir, candidate.path);
|
|
1265
|
-
for (const sourcePath of sourcePaths) {
|
|
1266
|
-
let rawSource;
|
|
1267
|
-
try {
|
|
1268
|
-
rawSource = await fs.readFile(sourcePath, "utf-8");
|
|
1269
|
-
} catch (err) {
|
|
1270
|
-
if (err?.code === "ENOENT") continue;
|
|
1271
|
-
throw err;
|
|
1272
|
-
}
|
|
1273
|
-
const relocated = relocateCandidateRange(rawSource.split(/\r?\n/), candidate);
|
|
1274
|
-
if (!relocated) continue;
|
|
1275
|
-
return {
|
|
1276
|
-
...candidate,
|
|
1277
|
-
startLine: relocated.startLine,
|
|
1278
|
-
endLine: relocated.endLine,
|
|
1279
|
-
snippet: relocated.snippet
|
|
1280
|
-
};
|
|
1281
|
-
}
|
|
1282
|
-
return null;
|
|
1283
|
-
}
|
|
1284
|
-
function buildPromotionSection(candidates, nowMs, timezone) {
|
|
1285
|
-
const lines = [
|
|
1286
|
-
"",
|
|
1287
|
-
`## Promoted From Short-Term Memory (${formatMemoryDay(nowMs, timezone)})`,
|
|
1288
|
-
""
|
|
1289
|
-
];
|
|
1290
|
-
for (const candidate of candidates) {
|
|
1291
|
-
const source = `${candidate.path}:${candidate.startLine}-${candidate.endLine}`;
|
|
1292
|
-
const snippet = candidate.snippet || "(no snippet captured)";
|
|
1293
|
-
lines.push(`<!-- ${PROMOTION_MARKER_PREFIX}${candidate.key} -->`);
|
|
1294
|
-
lines.push(`- ${snippet} [score=${candidate.score.toFixed(3)} recalls=${candidate.recallCount} avg=${candidate.avgScore.toFixed(3)} source=${source}]`);
|
|
1295
|
-
}
|
|
1296
|
-
lines.push("");
|
|
1297
|
-
return lines.join("\n");
|
|
1298
|
-
}
|
|
1299
|
-
function withTrailingNewline(content) {
|
|
1300
|
-
if (!content) return "";
|
|
1301
|
-
return content.endsWith("\n") ? content : `${content}\n`;
|
|
1302
|
-
}
|
|
1303
|
-
function extractPromotionMarkers(memoryText) {
|
|
1304
|
-
const markers = /* @__PURE__ */ new Set();
|
|
1305
|
-
const matches = memoryText.matchAll(/<!--\s*kaijibot-memory-promotion:([^\n]+?)\s*-->/gi);
|
|
1306
|
-
for (const match of matches) {
|
|
1307
|
-
const key = match[1]?.trim();
|
|
1308
|
-
if (key) markers.add(key);
|
|
1309
|
-
}
|
|
1310
|
-
return markers;
|
|
1311
|
-
}
|
|
1312
|
-
async function applyShortTermPromotions(options) {
|
|
1313
|
-
const workspaceDir = options.workspaceDir.trim();
|
|
1314
|
-
const nowMs = Number.isFinite(options.nowMs) ? options.nowMs : Date.now();
|
|
1315
|
-
const nowIso = new Date(nowMs).toISOString();
|
|
1316
|
-
const limit = Number.isFinite(options.limit) ? Math.max(0, Math.floor(options.limit)) : options.candidates.length;
|
|
1317
|
-
const minScore = toFiniteScore(options.minScore, DEFAULT_PROMOTION_MIN_SCORE);
|
|
1318
|
-
const minRecallCount = toFiniteNonNegativeInt(options.minRecallCount, 3);
|
|
1319
|
-
const minUniqueQueries = toFiniteNonNegativeInt(options.minUniqueQueries, 2);
|
|
1320
|
-
const maxAgeDays = toFiniteNonNegativeInt(options.maxAgeDays, -1);
|
|
1321
|
-
const memoryPath = path.join(workspaceDir, "MEMORY.md");
|
|
1322
|
-
return await withShortTermLock(workspaceDir, async () => {
|
|
1323
|
-
const store = await readStore(workspaceDir, nowIso);
|
|
1324
|
-
const selected = options.candidates.filter((candidate) => {
|
|
1325
|
-
if (candidate.promotedAt) return false;
|
|
1326
|
-
if (isContaminatedSnippet(candidate.snippet)) return false;
|
|
1327
|
-
if (candidate.score < minScore) return false;
|
|
1328
|
-
if (Math.max(0, candidate.signalCount ?? totalSignalCountForEntry({
|
|
1329
|
-
recallCount: candidate.recallCount,
|
|
1330
|
-
dailyCount: candidate.dailyCount,
|
|
1331
|
-
groundedCount: candidate.groundedCount
|
|
1332
|
-
})) < minRecallCount) return false;
|
|
1333
|
-
if (Math.max(candidate.uniqueQueries, candidate.recallDays.length) < minUniqueQueries) return false;
|
|
1334
|
-
if (maxAgeDays >= 0 && candidate.ageDays > maxAgeDays) return false;
|
|
1335
|
-
if (store.entries[candidate.key]?.promotedAt) return false;
|
|
1336
|
-
return true;
|
|
1337
|
-
}).slice(0, limit);
|
|
1338
|
-
const deduped = deduplicateBySimilarity(selected.map((c, i) => ({
|
|
1339
|
-
id: `${c.path}:${c.startLine}:${i}`,
|
|
1340
|
-
score: c.score ?? 0,
|
|
1341
|
-
content: c.snippet ?? ""
|
|
1342
|
-
})), {
|
|
1343
|
-
enabled: true,
|
|
1344
|
-
threshold: .85
|
|
1345
|
-
});
|
|
1346
|
-
const keptIds = new Set(deduped.map((d) => d.id));
|
|
1347
|
-
const dedupedSelected = selected.filter((_c, i) => keptIds.has(`${selected[i].path}:${selected[i].startLine}:${i}`));
|
|
1348
|
-
const rehydratedSelected = [];
|
|
1349
|
-
for (const candidate of dedupedSelected) {
|
|
1350
|
-
const rehydrated = await rehydratePromotionCandidate(workspaceDir, candidate);
|
|
1351
|
-
if (rehydrated && !isContaminatedSnippet(rehydrated.snippet)) rehydratedSelected.push(rehydrated);
|
|
1352
|
-
}
|
|
1353
|
-
if (rehydratedSelected.length === 0) return {
|
|
1354
|
-
memoryPath,
|
|
1355
|
-
applied: 0,
|
|
1356
|
-
appended: 0,
|
|
1357
|
-
reconciledExisting: 0,
|
|
1358
|
-
appliedCandidates: []
|
|
1359
|
-
};
|
|
1360
|
-
const existingMemory = await fs.readFile(memoryPath, "utf-8").catch((err) => {
|
|
1361
|
-
if (err?.code === "ENOENT") return "";
|
|
1362
|
-
throw err;
|
|
1363
|
-
});
|
|
1364
|
-
const existingMarkers = extractPromotionMarkers(existingMemory);
|
|
1365
|
-
const alreadyWritten = rehydratedSelected.filter((candidate) => existingMarkers.has(candidate.key));
|
|
1366
|
-
const toAppend = rehydratedSelected.filter((candidate) => !existingMarkers.has(candidate.key));
|
|
1367
|
-
if (toAppend.length > 0) {
|
|
1368
|
-
const header = existingMemory.trim().length > 0 ? "" : "# Long-Term Memory\n\n";
|
|
1369
|
-
const section = buildPromotionSection(toAppend, nowMs, options.timezone);
|
|
1370
|
-
await fs.writeFile(memoryPath, `${header}${withTrailingNewline(existingMemory)}${section}`, "utf-8");
|
|
1371
|
-
}
|
|
1372
|
-
for (const candidate of rehydratedSelected) {
|
|
1373
|
-
const entry = store.entries[candidate.key];
|
|
1374
|
-
if (!entry) continue;
|
|
1375
|
-
entry.startLine = candidate.startLine;
|
|
1376
|
-
entry.endLine = candidate.endLine;
|
|
1377
|
-
entry.snippet = candidate.snippet;
|
|
1378
|
-
entry.promotedAt = nowIso;
|
|
1379
|
-
}
|
|
1380
|
-
store.updatedAt = nowIso;
|
|
1381
|
-
await writeStore(workspaceDir, store);
|
|
1382
|
-
await appendMemoryHostEvent(workspaceDir, {
|
|
1383
|
-
type: "memory.promotion.applied",
|
|
1384
|
-
timestamp: nowIso,
|
|
1385
|
-
memoryPath,
|
|
1386
|
-
applied: rehydratedSelected.length,
|
|
1387
|
-
candidates: rehydratedSelected.map((candidate) => ({
|
|
1388
|
-
key: candidate.key,
|
|
1389
|
-
path: candidate.path,
|
|
1390
|
-
startLine: candidate.startLine,
|
|
1391
|
-
endLine: candidate.endLine,
|
|
1392
|
-
score: candidate.score,
|
|
1393
|
-
recallCount: candidate.recallCount
|
|
1394
|
-
}))
|
|
1395
|
-
});
|
|
1396
|
-
return {
|
|
1397
|
-
memoryPath,
|
|
1398
|
-
applied: rehydratedSelected.length,
|
|
1399
|
-
appended: toAppend.length,
|
|
1400
|
-
reconciledExisting: alreadyWritten.length,
|
|
1401
|
-
appliedCandidates: rehydratedSelected
|
|
1402
|
-
};
|
|
1403
|
-
});
|
|
1404
|
-
}
|
|
1405
|
-
function resolveShortTermRecallStorePath(workspaceDir) {
|
|
1406
|
-
return resolveStorePath(workspaceDir);
|
|
1407
|
-
}
|
|
1408
|
-
function resolveShortTermRecallLockPath(workspaceDir) {
|
|
1409
|
-
return resolveLockPath(workspaceDir);
|
|
1410
|
-
}
|
|
1411
|
-
async function auditShortTermPromotionArtifacts(params) {
|
|
1412
|
-
const workspaceDir = params.workspaceDir.trim();
|
|
1413
|
-
const storePath = resolveStorePath(workspaceDir);
|
|
1414
|
-
const lockPath = resolveLockPath(workspaceDir);
|
|
1415
|
-
const issues = [];
|
|
1416
|
-
let exists = false;
|
|
1417
|
-
let entryCount = 0;
|
|
1418
|
-
let promotedCount = 0;
|
|
1419
|
-
let spacedEntryCount = 0;
|
|
1420
|
-
let conceptTaggedEntryCount = 0;
|
|
1421
|
-
let conceptTagScripts;
|
|
1422
|
-
let invalidEntryCount = 0;
|
|
1423
|
-
let updatedAt;
|
|
1424
|
-
try {
|
|
1425
|
-
const raw = await fs.readFile(storePath, "utf-8");
|
|
1426
|
-
exists = true;
|
|
1427
|
-
if (raw.trim().length === 0) issues.push({
|
|
1428
|
-
severity: "warn",
|
|
1429
|
-
code: "recall-store-empty",
|
|
1430
|
-
message: "Short-term recall store is empty.",
|
|
1431
|
-
fixable: true
|
|
1432
|
-
});
|
|
1433
|
-
else {
|
|
1434
|
-
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
1435
|
-
const parsed = JSON.parse(raw);
|
|
1436
|
-
const store = normalizeStore(parsed, nowIso);
|
|
1437
|
-
updatedAt = store.updatedAt;
|
|
1438
|
-
entryCount = Object.keys(store.entries).length;
|
|
1439
|
-
promotedCount = Object.values(store.entries).filter((entry) => Boolean(entry.promotedAt)).length;
|
|
1440
|
-
spacedEntryCount = Object.values(store.entries).filter((entry) => (entry.recallDays?.length ?? 0) > 1).length;
|
|
1441
|
-
conceptTaggedEntryCount = Object.values(store.entries).filter((entry) => (entry.conceptTags?.length ?? 0) > 0).length;
|
|
1442
|
-
conceptTagScripts = summarizeConceptTagScriptCoverage(Object.values(store.entries).filter((entry) => (entry.conceptTags?.length ?? 0) > 0).map((entry) => entry.conceptTags ?? []));
|
|
1443
|
-
invalidEntryCount = Object.keys(asNullableRecord(parsed)?.entries ?? {}).length - entryCount;
|
|
1444
|
-
if (invalidEntryCount > 0) issues.push({
|
|
1445
|
-
severity: "warn",
|
|
1446
|
-
code: "recall-store-invalid",
|
|
1447
|
-
message: `Short-term recall store contains ${invalidEntryCount} invalid entr${invalidEntryCount === 1 ? "y" : "ies"}.`,
|
|
1448
|
-
fixable: true
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
} catch (err) {
|
|
1452
|
-
const code = err.code;
|
|
1453
|
-
if (code !== "ENOENT") issues.push({
|
|
1454
|
-
severity: "error",
|
|
1455
|
-
code: "recall-store-unreadable",
|
|
1456
|
-
message: `Short-term recall store is unreadable: ${code ?? "error"}.`,
|
|
1457
|
-
fixable: false
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
try {
|
|
1461
|
-
const stat = await fs.stat(lockPath);
|
|
1462
|
-
if (Date.now() - stat.mtimeMs > SHORT_TERM_LOCK_STALE_MS && await canStealStaleLock(lockPath)) issues.push({
|
|
1463
|
-
severity: "warn",
|
|
1464
|
-
code: "recall-lock-stale",
|
|
1465
|
-
message: "Short-term promotion lock appears stale.",
|
|
1466
|
-
fixable: true
|
|
1467
|
-
});
|
|
1468
|
-
} catch (err) {
|
|
1469
|
-
const code = err.code;
|
|
1470
|
-
if (code !== "ENOENT") issues.push({
|
|
1471
|
-
severity: "warn",
|
|
1472
|
-
code: "recall-lock-unreadable",
|
|
1473
|
-
message: `Short-term promotion lock could not be inspected: ${code ?? "error"}.`,
|
|
1474
|
-
fixable: false
|
|
1475
|
-
});
|
|
1476
|
-
}
|
|
1477
|
-
let qmd;
|
|
1478
|
-
if (params.qmd) {
|
|
1479
|
-
qmd = {
|
|
1480
|
-
dbPath: params.qmd.dbPath,
|
|
1481
|
-
collections: params.qmd.collections
|
|
1482
|
-
};
|
|
1483
|
-
if (typeof params.qmd.collections === "number" && params.qmd.collections <= 0) issues.push({
|
|
1484
|
-
severity: "warn",
|
|
1485
|
-
code: "qmd-collections-empty",
|
|
1486
|
-
message: "QMD reports zero managed collections.",
|
|
1487
|
-
fixable: false
|
|
1488
|
-
});
|
|
1489
|
-
const dbPath = params.qmd.dbPath?.trim();
|
|
1490
|
-
if (dbPath) try {
|
|
1491
|
-
const stat = await fs.stat(dbPath);
|
|
1492
|
-
qmd.dbBytes = stat.size;
|
|
1493
|
-
if (!stat.isFile() || stat.size <= 0) issues.push({
|
|
1494
|
-
severity: "error",
|
|
1495
|
-
code: "qmd-index-empty",
|
|
1496
|
-
message: "QMD index file exists but is empty.",
|
|
1497
|
-
fixable: false
|
|
1498
|
-
});
|
|
1499
|
-
} catch (err) {
|
|
1500
|
-
if (err.code === "ENOENT") issues.push({
|
|
1501
|
-
severity: "error",
|
|
1502
|
-
code: "qmd-index-missing",
|
|
1503
|
-
message: "QMD index file is missing.",
|
|
1504
|
-
fixable: false
|
|
1505
|
-
});
|
|
1506
|
-
else throw err;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
return {
|
|
1510
|
-
storePath,
|
|
1511
|
-
lockPath,
|
|
1512
|
-
updatedAt,
|
|
1513
|
-
exists,
|
|
1514
|
-
entryCount,
|
|
1515
|
-
promotedCount,
|
|
1516
|
-
spacedEntryCount,
|
|
1517
|
-
conceptTaggedEntryCount,
|
|
1518
|
-
...conceptTagScripts ? { conceptTagScripts } : {},
|
|
1519
|
-
invalidEntryCount,
|
|
1520
|
-
issues,
|
|
1521
|
-
...qmd ? { qmd } : {}
|
|
1522
|
-
};
|
|
1523
|
-
}
|
|
1524
|
-
async function repairShortTermPromotionArtifacts(params) {
|
|
1525
|
-
const workspaceDir = params.workspaceDir.trim();
|
|
1526
|
-
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
1527
|
-
let rewroteStore = false;
|
|
1528
|
-
let removedInvalidEntries = 0;
|
|
1529
|
-
let removedStaleLock = false;
|
|
1530
|
-
try {
|
|
1531
|
-
const lockPath = resolveLockPath(workspaceDir);
|
|
1532
|
-
const stat = await fs.stat(lockPath);
|
|
1533
|
-
if (Date.now() - stat.mtimeMs > SHORT_TERM_LOCK_STALE_MS && await canStealStaleLock(lockPath)) {
|
|
1534
|
-
await fs.unlink(lockPath).catch(() => void 0);
|
|
1535
|
-
removedStaleLock = true;
|
|
1536
|
-
}
|
|
1537
|
-
} catch (err) {
|
|
1538
|
-
if (err.code !== "ENOENT") throw err;
|
|
1539
|
-
}
|
|
1540
|
-
await withShortTermLock(workspaceDir, async () => {
|
|
1541
|
-
const storePath = resolveStorePath(workspaceDir);
|
|
1542
|
-
try {
|
|
1543
|
-
const raw = await fs.readFile(storePath, "utf-8");
|
|
1544
|
-
const parsed = raw.trim().length > 0 ? JSON.parse(raw) : emptyStore(nowIso);
|
|
1545
|
-
const rawEntries = Object.keys(asNullableRecord(parsed)?.entries ?? {}).length;
|
|
1546
|
-
const normalized = normalizeStore(parsed, nowIso);
|
|
1547
|
-
removedInvalidEntries = Math.max(0, rawEntries - Object.keys(normalized.entries).length);
|
|
1548
|
-
const nextEntries = Object.fromEntries(Object.entries(normalized.entries).map(([key, entry]) => {
|
|
1549
|
-
const conceptTags = deriveConceptTags({
|
|
1550
|
-
path: entry.path,
|
|
1551
|
-
snippet: entry.snippet
|
|
1552
|
-
});
|
|
1553
|
-
const fallbackDay = normalizeIsoDay(entry.lastRecalledAt) ?? localDateStr();
|
|
1554
|
-
return [key, {
|
|
1555
|
-
...entry,
|
|
1556
|
-
dailyCount: Math.max(0, Math.floor(entry.dailyCount ?? 0)),
|
|
1557
|
-
groundedCount: Math.max(0, Math.floor(entry.groundedCount ?? 0)),
|
|
1558
|
-
queryHashes: (entry.queryHashes ?? []).slice(-MAX_QUERY_HASHES),
|
|
1559
|
-
recallDays: mergeRecentDistinct(entry.recallDays ?? [], fallbackDay, MAX_RECALL_DAYS),
|
|
1560
|
-
conceptTags: conceptTags.length > 0 ? conceptTags : entry.conceptTags ?? []
|
|
1561
|
-
}];
|
|
1562
|
-
}));
|
|
1563
|
-
const comparableStore = {
|
|
1564
|
-
version: 1,
|
|
1565
|
-
updatedAt: normalized.updatedAt,
|
|
1566
|
-
entries: nextEntries
|
|
1567
|
-
};
|
|
1568
|
-
if (`${JSON.stringify(comparableStore, null, 2)}\n` !== `${raw.trimEnd()}\n`) {
|
|
1569
|
-
await writeStore(workspaceDir, {
|
|
1570
|
-
...comparableStore,
|
|
1571
|
-
updatedAt: nowIso
|
|
1572
|
-
});
|
|
1573
|
-
rewroteStore = true;
|
|
1574
|
-
}
|
|
1575
|
-
} catch (err) {
|
|
1576
|
-
if (err.code !== "ENOENT") throw err;
|
|
1577
|
-
}
|
|
1578
|
-
});
|
|
1579
|
-
return {
|
|
1580
|
-
changed: rewroteStore || removedStaleLock,
|
|
1581
|
-
removedInvalidEntries,
|
|
1582
|
-
rewroteStore,
|
|
1583
|
-
removedStaleLock
|
|
1584
|
-
};
|
|
1585
|
-
}
|
|
1586
|
-
async function removeGroundedShortTermCandidates(params) {
|
|
1587
|
-
const workspaceDir = params.workspaceDir.trim();
|
|
1588
|
-
const storePath = resolveStorePath(workspaceDir);
|
|
1589
|
-
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
1590
|
-
let removed = 0;
|
|
1591
|
-
await withShortTermLock(workspaceDir, async () => {
|
|
1592
|
-
const [store, phaseSignals] = await Promise.all([readStore(workspaceDir, nowIso), readPhaseSignalStore(workspaceDir, nowIso)]);
|
|
1593
|
-
for (const [key, entry] of Object.entries(store.entries)) if (Math.max(0, Math.floor(entry.groundedCount ?? 0)) > 0 && Math.max(0, Math.floor(entry.recallCount ?? 0)) === 0 && Math.max(0, Math.floor(entry.dailyCount ?? 0)) === 0) {
|
|
1594
|
-
delete store.entries[key];
|
|
1595
|
-
removed += 1;
|
|
1596
|
-
}
|
|
1597
|
-
for (const key of Object.keys(phaseSignals.entries)) if (!Object.hasOwn(store.entries, key)) delete phaseSignals.entries[key];
|
|
1598
|
-
if (removed > 0) {
|
|
1599
|
-
store.updatedAt = nowIso;
|
|
1600
|
-
phaseSignals.updatedAt = nowIso;
|
|
1601
|
-
await Promise.all([writeStore(workspaceDir, store), writePhaseSignalStore(workspaceDir, phaseSignals)]);
|
|
1602
|
-
}
|
|
1603
|
-
});
|
|
1604
|
-
return {
|
|
1605
|
-
removed,
|
|
1606
|
-
storePath
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
|
-
async function incrementGroundedCount(params) {
|
|
1610
|
-
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
1611
|
-
const storePath = resolveStorePath(params.workspaceDir);
|
|
1612
|
-
let raw;
|
|
1613
|
-
try {
|
|
1614
|
-
raw = await fs.readFile(storePath, "utf-8");
|
|
1615
|
-
} catch (err) {
|
|
1616
|
-
if (err?.code === "ENOENT") return;
|
|
1617
|
-
throw err;
|
|
1618
|
-
}
|
|
1619
|
-
const store = normalizeStore(JSON.parse(raw), nowIso);
|
|
1620
|
-
let changed = false;
|
|
1621
|
-
for (const entry of Object.values(store.entries)) if (entry.path.includes(params.path)) {
|
|
1622
|
-
entry.groundedCount = Math.max(0, Math.floor(entry.groundedCount)) + params.boost;
|
|
1623
|
-
changed = true;
|
|
1624
|
-
}
|
|
1625
|
-
if (changed) {
|
|
1626
|
-
store.updatedAt = nowIso;
|
|
1627
|
-
await writeStore(params.workspaceDir, store);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
//#endregion
|
|
1631
|
-
export { rankShortTermPromotionCandidates as a, repairShortTermPromotionArtifacts as c, resolveShortTermRecallStorePath as d, CLASSIFICATION_PROMPT_SECTION as f, WRITE_QUALITY_PROMPT_SECTION as g, VERIFICATION_PROMPT_SECTION as h, incrementGroundedCount as i, resolveShortTermPromotionConfig as l, TOPIC_FILE_FORMAT_SECTION as m, applyShortTermPromotions as n, recordShortTermRecalls as o, EXCLUSION_PROMPT_SECTION as p, auditShortTermPromotionArtifacts as r, removeGroundedShortTermCandidates as s, DEFAULT_PROMOTION_MIN_SCORE as t, resolveShortTermRecallLockPath as u };
|