stableclaw 2026.5.9 → 2026.5.11
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-cutoff.runtime-CFk0K-Wc.js +20 -0
- package/dist/abort-cutoff.runtime.js +1 -1
- package/dist/abort-klY_5bYy.js +192 -0
- package/dist/abort.runtime-D_O-E8uI.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/access-control-CFqIx6bj.js +152 -0
- package/dist/account-inspect-B8gXBNNX.js +158 -0
- package/dist/accounts-B-l36S8g.js +102 -0
- package/dist/accounts-C4GNkPXi.js +2 -0
- package/dist/accounts-C5ySc4tQ.js +137 -0
- package/dist/accounts-DClgbyjK.js +107 -0
- package/dist/accounts-qYrt8mmi.js +57 -0
- package/dist/acp-cli-dRa37k6_.js +2207 -0
- package/dist/acp-runtime-B81VaDx-.js +8 -0
- package/dist/acp-stateful-target-driver-USLx3YHp.js +60 -0
- package/dist/action-runtime-B3T-BzxB.js +72 -0
- package/dist/action-runtime-CrcPHFlV.js +318 -0
- package/dist/action-runtime-api-DTepWaID.js +1028 -0
- package/dist/actions-C0WqkHdt.js +531 -0
- package/dist/actions.runtime-BYC7tBRB.js +2 -0
- package/dist/actions.runtime-CyIIdqqR.js +18 -0
- package/dist/actions.runtime-G8fgm2Lz.js +5 -0
- package/dist/actions.runtime.js +1 -1
- package/dist/agent-NgDR-JqU.js +2 -0
- package/dist/agent-command-BNXvOfkg.js +1457 -0
- package/dist/agent-runner.runtime-DJebqp2K.js +2241 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agent-runtime-DDZ7BtM-.js +142 -0
- package/dist/agent-tools-login-0KCJPZPY.js +57 -0
- package/dist/agents-D3g1jiFE.js +5 -0
- package/dist/agents-DcPbpvJc.js +888 -0
- package/dist/api-BewxDTVZ.js +2 -0
- package/dist/api-BimHc7qv.js +2 -0
- package/dist/api-C1OQQiwk.js +5 -0
- package/dist/api-C1V5_J2f.js +10 -0
- package/dist/api-CFiwPxyW2.js +322 -0
- package/dist/api-J-O53JdQ.js +6 -0
- package/dist/api-VNPt8mkg.js +5 -0
- package/dist/apply-vOA8I8_V.js +485 -0
- package/dist/apply.runtime-BzyN4C58.js +2 -0
- package/dist/apply.runtime.js +1 -1
- package/dist/approval-native-B_lMCL8R.js +79 -0
- package/dist/approval-native-runtime-BURdx3V6.js +399 -0
- package/dist/approval-renderers-lOtkxCat.js +87 -0
- package/dist/approval-runtime-DtuLBkTR.js +262 -0
- package/dist/audit-C3YWAqJy.js +86 -0
- package/dist/audit-DxofLC9t.js +892 -0
- package/dist/audit-channel.allow-from.runtime.js +1 -1
- package/dist/audit-channel.collect.runtime-Cq_6bcJ7.js +528 -0
- package/dist/audit-channel.collect.runtime.js +1 -1
- package/dist/audit-channel.discord.runtime.js +1 -1
- package/dist/audit-channel.telegram.runtime-BxVvAb-7.js +8 -0
- package/dist/audit-channel.telegram.runtime.js +1 -1
- package/dist/audit-channel.zalouser.runtime.js +1 -1
- package/dist/audit-extra.async-CCQgqJxH.js +820 -0
- package/dist/audit.deep.runtime-JYeZkn0C.js +2 -0
- package/dist/audit.deep.runtime.js +1 -1
- package/dist/audit.nondeep.runtime-Uxo-yXvi.js +831 -0
- package/dist/audit.nondeep.runtime.js +1 -1
- package/dist/audit.runtime-D8Zkg-zf.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-Cbw71Sdn.js +181 -0
- package/dist/auth-choice-B4Jf69Kj.js +341 -0
- package/dist/auth-choice-CHk5HC8h.js +3 -0
- package/dist/auth-choice-DU3zRjMs.js +69 -0
- package/dist/binding-targets-4pspfnd9.js +99 -0
- package/dist/bot-C5bjqG8d.js +4268 -0
- package/dist/bot-message-context-BeeAwE3p.js +1175 -0
- package/dist/bot-message-context-DQovfNxL.js +2 -0
- package/dist/bot-message-context.runtime-CxjiW0Zv.js +7 -0
- package/dist/bot-message-context.runtime.js +1 -1
- package/dist/bot-message-context.session.runtime-CwPavBen.js +12 -0
- package/dist/bot-message-context.session.runtime.js +1 -1
- package/dist/bot-native-commands.delivery.runtime-fgHY1eFi.js +3 -0
- package/dist/bot-native-commands.delivery.runtime.js +1 -1
- package/dist/bot-native-commands.runtime-BW5CS2Ep.js +11 -0
- package/dist/bot-native-commands.runtime.js +1 -1
- package/dist/browser-support-Fy-gZYo6.js +35 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/call-DGxas044.js +650 -0
- package/dist/call-DoSzR2gj.js +2 -0
- package/dist/channel-B7jUu7dH.js +599 -0
- package/dist/channel-B9w4Tc7x.js +783 -0
- package/dist/channel-C7IBlI-F.js +698 -0
- package/dist/channel-C8u-VfDg.js +454 -0
- package/dist/channel-CCIOe7bh.js +337 -0
- package/dist/channel-CLNU94QW.js +883 -0
- package/dist/channel-CSbvtfKV.js +1135 -0
- package/dist/channel-CT56GHdR.js +788 -0
- package/dist/channel-CWH4HLyJ.js +800 -0
- package/dist/channel-CYs1dekK.js +1217 -0
- package/dist/channel-Cqxew0OY.js +1129 -0
- package/dist/channel-D3Wa1OyY.js +208 -0
- package/dist/channel-DCg3P7oK.js +1661 -0
- package/dist/channel-DUIEJuBO.js +4976 -0
- package/dist/channel-eeM9-TTE.js +361 -0
- package/dist/channel-inbound-v42kUA_l.js +30 -0
- package/dist/channel-plugin-resolution-DislBvgV.js +144 -0
- package/dist/channel-shared-fp5bFNdD.js +58 -0
- package/dist/channel.runtime--1OIefYB.js +108 -0
- package/dist/channel.runtime-CozBDY74.js +335 -0
- package/dist/channel.runtime-Csjg2kRS.js +22252 -0
- package/dist/channel.runtime-D2waErwq.js +373 -0
- package/dist/channel.runtime-DNpji3RZ.js +309 -0
- package/dist/channel.runtime-DV0hJuum.js +14 -0
- package/dist/channel.runtime-DWDhE_Nx.js +80 -0
- package/dist/channel.runtime-DwgJ30DY.js +125 -0
- package/dist/channel.setup-CjA3g5Fv.js +279 -0
- package/dist/channels-BxekMHzp.js +1134 -0
- package/dist/channels-cli-Ca8__1Qm.js +246 -0
- package/dist/clawbot-cli-D8i5zKoe.js +9 -0
- package/dist/clawhub-DGX0DKXa.js +163 -0
- package/dist/cli/daemon-cli.js +3 -9
- package/dist/cli-DXa_ItCc.js +152 -0
- package/dist/cli-DmzxzRvR.js +695 -0
- package/dist/cli-migration-CospFHVO.js +100 -0
- package/dist/cli-runner-CcZmxF0X.js +1014 -0
- package/dist/cli-startup-metadata.json +1 -1
- package/dist/cli.runtime-CTwCco1w.js +547 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/client-BKJfVSXL.js +7 -0
- package/dist/client-DB0eq00K.js +5 -0
- package/dist/client-bootstrap-CcVlj7oR.js +121 -0
- package/dist/client-bootstrap-D0iLJpBW.js +2 -0
- package/dist/client-h7_QmnT6.js +748 -0
- package/dist/code-execution-DBhqp92I.js +142 -0
- package/dist/command-auth-DiOdnJVv.js +64 -0
- package/dist/command-registry-C407tmLC.js +199 -0
- package/dist/command-registry-DcBB8Go2.js +3 -0
- package/dist/command-secret-gateway-BmC1zdLA.js +2 -0
- package/dist/command-secret-gateway-bPaGOGez.js +442 -0
- package/dist/commands-D5wGNvE5.js +4 -0
- package/dist/commands-acp-C5icMLP4.js +990 -0
- package/dist/commands-core-DUQIyMlr.js +241 -0
- package/dist/commands-core.runtime-u21oQL5w.js +2 -0
- package/dist/commands-core.runtime.js +1 -1
- package/dist/commands-handlers.runtime-DAT6euVF.js +3707 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-info-AKW6CTHD.js +651 -0
- package/dist/commands-models-BhlfMZgd.js +395 -0
- package/dist/commands-status.runtime-C1ClKll2.js +2 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands.runtime-C8Rg2D6l.js +4 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/compact.runtime-wWufEtX9.js +7 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-BJbBVoBg.js +466 -0
- package/dist/completion-cli-Bv2QsHQh.js +2 -0
- package/dist/config-Bi18gt-v.js +475 -0
- package/dist/config-cli-DK0ARyLc.js +945 -0
- package/dist/config-guard-pIDh5OVZ.js +113 -0
- package/dist/config-runtime-CZKGelsA.js +13 -0
- package/dist/config-secret-input.runtime-Bq0wwvO5.js +3 -0
- package/dist/config-secret-input.runtime.js +1 -1
- package/dist/config-update-COl3IX8L.js +3 -0
- package/dist/config-update-y-nZq8Mo.js +127 -0
- package/dist/configure-C-O1aIlY.js +1140 -0
- package/dist/configure-rtJ5JIAG.js +2 -0
- package/dist/connection-auth-jvcGgo4L.js +30 -0
- package/dist/context-CRO7LNj7.js +227 -0
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/agents-BvhOkb6O.js +813 -0
- package/dist/control-ui/assets/anthropic-f83vwUUd.js +37 -0
- package/dist/control-ui/assets/azure-openai-responses-jZCpIfAe.js +2 -0
- package/dist/control-ui/assets/channels-CeoRIYnn.js +349 -0
- package/dist/control-ui/assets/cron-Da7Hmvwf.js +928 -0
- package/dist/control-ui/assets/de-C3edepAl.js +2 -0
- package/dist/control-ui/assets/debug-CzVpLWUh.js +94 -0
- package/dist/control-ui/assets/es-Blk11wd5.js +2 -0
- package/dist/control-ui/assets/google-DmXqWrxE.js +2 -0
- package/dist/control-ui/assets/index-BNGJYcVK.css +1 -0
- package/dist/control-ui/assets/index-DwRCpzVC.js +5175 -0
- package/dist/control-ui/assets/instances-ClQAkh14.js +57 -0
- package/dist/control-ui/assets/mistral-OhM__jXU.js +8 -0
- package/dist/control-ui/assets/openai-codex-responses-TxHb8u4M.js +8 -0
- package/dist/control-ui/assets/openai-completions-A0wDaxQ2.js +6 -0
- package/dist/control-ui/assets/openai-responses-4-Kzewry.js +2 -0
- package/dist/control-ui/assets/openai-responses-shared-tDgfbH9G.js +11 -0
- package/dist/control-ui/assets/pt-BR-ssNJoyGg.js +2 -0
- package/dist/control-ui/assets/sessions-BbicR6R0.js +236 -0
- package/dist/control-ui/assets/skills-DimyNqfg.js +216 -0
- package/dist/control-ui/assets/zh-CN-DDQ7rDsv.js +2 -0
- package/dist/control-ui/assets/zh-TW-BDoiT7Y_.js +2 -0
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +36 -58
- package/dist/control-ui/index.html +2 -2
- package/dist/conversation-bindings-CMYYUxif.js +210 -0
- package/dist/conversation-id-1c1KTKek.js +168 -0
- package/dist/conversation-runtime-DGApEQUE.js +85 -0
- package/dist/core-DV4mns8N.js +195 -0
- package/dist/core-api-Dk2DKCeR.js +670 -0
- package/dist/create-client-Bb_H-wLN.js +2 -0
- package/dist/create-client-D_f6TMp0.js +58 -0
- package/dist/credentials-B5nQbvsL.js +22 -0
- package/dist/credentials-write.runtime-f7-WBVm7.js +9 -0
- package/dist/credentials-write.runtime.js +1 -1
- package/dist/cron-cli-nBgLMc3J.js +644 -0
- package/dist/crypto-runtime-BF5K0Ykk.js +3495 -0
- package/dist/daemon-cli-BcUtR_Fc.js +383 -0
- package/dist/daemon-install-DkwEBTGz.js +63 -0
- package/dist/delegate-C4n9EoEE.js +43 -0
- package/dist/deliver-BiCEYwbW.js +954 -0
- package/dist/deliver-Cwky56LH.js +3 -0
- package/dist/deliver-reply-BgNZNv--.js +238 -0
- package/dist/deliver-runtime-DBJN-y97.js +2 -0
- package/dist/delivery-BhPfATDX.js +834 -0
- package/dist/delivery-info-hffYpTqv.js +40 -0
- package/dist/devices-cli-RTWW2iyU.js +328 -0
- package/dist/direct-dm-p4Ucrn3n.js +139 -0
- package/dist/direct-management-BO6NzRmL.js +300 -0
- package/dist/direct-management-CP-Mh7QW.js +2 -0
- package/dist/directive-handling.fast-lane-BarLCaSz.js +64 -0
- package/dist/directive-handling.fast-lane-DQUuSVDF.js +2 -0
- package/dist/directive-handling.impl-BprheV0M.js +2 -0
- package/dist/directive-handling.impl-CrNnk7KE.js +672 -0
- package/dist/directive-handling.parse-BlsvDfA2.js +375 -0
- package/dist/directive-handling.persist-BpviDq11.js +133 -0
- package/dist/directive-handling.persist.runtime-DcNNLGQy.js +2 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/directive-handling.shared-BIfN4x4J.js +158 -0
- package/dist/directory-cli-Oesb9ZVX.js +238 -0
- package/dist/directory.static-B3wXLoA8.js +45 -0
- package/dist/discovery-VsrGM6nV.js +171 -0
- package/dist/dispatch-_zf68glj.js +858 -0
- package/dist/dispatch-acp.runtime-BXGm0avm.js +884 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/doctor-completion-MIcucvV1.js +90 -0
- package/dist/doctor-config-preflight-CDoiEVOp.js +2 -0
- package/dist/doctor-config-preflight-DwBc2_nQ.js +148 -0
- package/dist/doctor-state-migrations-BnS8hVmM.js +2 -0
- package/dist/doctor-state-migrations-Ccb8ZG6Q.js +3 -0
- package/dist/embedding-provider-Dp38wNQU.js +129 -0
- package/dist/encryption-guidance-DD_WTmnS.js +33 -0
- package/dist/entry.js +2 -2
- package/dist/error-text-C9NM0qIk.js +24 -0
- package/dist/exec-approval-session-target-B3Bjql7S.js +159 -0
- package/dist/exec-approvals-BOiwqSel.js +121 -0
- package/dist/exec-approvals-cli-DcZ3H7zz.js +483 -0
- package/dist/extensionAPI.js +3 -3
- package/dist/extensions/acpx/index.js +3 -3
- package/dist/extensions/acpx/runtime-api.js +2 -2
- package/dist/extensions/amazon-bedrock/api.js +2 -2
- package/dist/extensions/amazon-bedrock/discovery.js +1 -1
- package/dist/extensions/amazon-bedrock/index.js +2 -2
- package/dist/extensions/anthropic/cli-migration.js +1 -1
- package/dist/extensions/anthropic/index.js +5 -5
- package/dist/extensions/anthropic/media-understanding-provider.js +1 -1
- package/dist/extensions/bluebubbles/api.js +2 -2
- package/dist/extensions/bluebubbles/index.js +2 -2
- package/dist/extensions/bluebubbles/setup-entry.js +1 -1
- package/dist/extensions/browser/browser-runtime-api.js +3 -3
- package/dist/extensions/browser/index.js +1 -1
- package/dist/extensions/browser/runtime-api.js +4 -4
- package/dist/extensions/browser/test-support.js +1 -1
- package/dist/extensions/byteplus/index.js +2 -2
- package/dist/extensions/chutes/index.js +4 -4
- package/dist/extensions/cloudflare-ai-gateway/index.js +1 -1
- package/dist/extensions/deepseek/index.js +1 -1
- package/dist/extensions/device-pair/api.js +2 -2
- package/dist/extensions/device-pair/index.js +3 -3
- package/dist/extensions/device-pair/notify.js +1 -1
- package/dist/extensions/device-pair/qr-image.js +2 -2
- package/dist/extensions/diffs/index.js +1 -1
- package/dist/extensions/discord/action-runtime-api.js +1 -1
- package/dist/extensions/discord/api.js +4 -4
- package/dist/extensions/discord/index.js +9 -9
- package/dist/extensions/discord/runtime-api.js +10 -10
- package/dist/extensions/discord/setup-entry.js +2 -2
- package/dist/extensions/discord/test-api.js +3 -3
- package/dist/extensions/fal/index.js +2 -2
- package/dist/extensions/feishu/api.js +2 -2
- package/dist/extensions/feishu/index.js +7 -7
- package/dist/extensions/feishu/setup-api.js +1 -1
- package/dist/extensions/feishu/setup-entry.js +2 -2
- package/dist/extensions/github-copilot/api.js +1 -1
- package/dist/extensions/github-copilot/index.js +2 -2
- package/dist/extensions/github-copilot/login.js +1 -1
- package/dist/extensions/google/index.js +2 -2
- package/dist/extensions/google/media-understanding-provider.js +2 -2
- package/dist/extensions/googlechat/api.js +1 -1
- package/dist/extensions/googlechat/index.js +2 -2
- package/dist/extensions/googlechat/setup-entry.js +2 -2
- package/dist/extensions/googlechat/test-api.js +1 -1
- package/dist/extensions/groq/index.js +1 -1
- package/dist/extensions/groq/media-understanding-provider.js +1 -1
- package/dist/extensions/huggingface/index.js +2 -2
- package/dist/extensions/imessage/api.js +2 -2
- package/dist/extensions/imessage/index.js +7 -7
- package/dist/extensions/imessage/runtime-api.js +2 -2
- package/dist/extensions/imessage/setup-entry.js +3 -3
- package/dist/extensions/irc/api.js +1 -1
- package/dist/extensions/irc/index.js +2 -2
- package/dist/extensions/irc/setup-entry.js +2 -2
- package/dist/extensions/kilocode/index.js +1 -1
- package/dist/extensions/kimi-coding/index.js +2 -2
- package/dist/extensions/line/api.js +4 -4
- package/dist/extensions/line/index.js +5 -5
- package/dist/extensions/line/runtime-api.js +2 -2
- package/dist/extensions/line/setup-api.js +2 -2
- package/dist/extensions/line/setup-entry.js +3 -3
- package/dist/extensions/litellm/index.js +1 -1
- package/dist/extensions/llm-task/index.js +2 -2
- package/dist/extensions/lobster/index.js +1 -1
- package/dist/extensions/lobster/runtime-api.js +1 -1
- package/dist/extensions/matrix/api.js +3 -3
- package/dist/extensions/matrix/index.js +3 -3
- package/dist/extensions/matrix/plugin-entry.handlers.runtime.js +3 -3
- package/dist/extensions/matrix/setup-entry.js +2 -2
- package/dist/extensions/matrix/test-api.js +1 -1
- package/dist/extensions/mattermost/api.js +1 -1
- package/dist/extensions/mattermost/index.js +2 -2
- package/dist/extensions/mattermost/runtime-api.js +4 -4
- package/dist/extensions/mattermost/setup-entry.js +2 -2
- package/dist/extensions/media-understanding-core/runtime-api.js +2 -2
- package/dist/extensions/memory-core/index.js +2 -2
- 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-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/index.js +4 -4
- package/dist/extensions/minimax/media-understanding-provider.js +1 -1
- package/dist/extensions/minimax/oauth.js +1 -1
- package/dist/extensions/minimax/oauth.runtime.js +1 -1
- package/dist/extensions/mistral/index.js +2 -2
- package/dist/extensions/mistral/media-understanding-provider.js +1 -1
- package/dist/extensions/modelstudio/index.js +1 -1
- package/dist/extensions/moonshot/index.js +2 -2
- package/dist/extensions/moonshot/media-understanding-provider.js +1 -1
- package/dist/extensions/msteams/api.js +1 -1
- package/dist/extensions/msteams/index.js +3 -3
- package/dist/extensions/msteams/runtime-api.js +4 -4
- package/dist/extensions/msteams/setup-entry.js +2 -2
- package/dist/extensions/msteams/test-api.js +1 -1
- package/dist/extensions/nextcloud-talk/api.js +1 -1
- package/dist/extensions/nextcloud-talk/index.js +2 -2
- package/dist/extensions/nextcloud-talk/runtime-api.js +2 -2
- package/dist/extensions/nextcloud-talk/setup-entry.js +2 -2
- package/dist/extensions/nostr/api.js +3 -3
- package/dist/extensions/nostr/index.js +4 -4
- package/dist/extensions/nostr/runtime-api.js +3 -3
- package/dist/extensions/nostr/setup-api.js +1 -1
- package/dist/extensions/nostr/setup-entry.js +2 -2
- package/dist/extensions/nostr/test-api.js +1 -1
- package/dist/extensions/nvidia/index.js +1 -1
- package/dist/extensions/ollama/api.js +2 -2
- package/dist/extensions/ollama/index.js +3 -3
- package/dist/extensions/ollama/runtime-api.js +2 -2
- package/dist/extensions/openai/api.js +1 -1
- package/dist/extensions/openai/index.js +3 -3
- package/dist/extensions/openai/media-understanding-provider.js +1 -1
- package/dist/extensions/openai/openai-codex-provider.js +1 -1
- package/dist/extensions/openai/openai-provider.js +1 -1
- package/dist/extensions/openai/test-api.js +1 -1
- package/dist/extensions/opencode/index.js +2 -2
- package/dist/extensions/opencode-go/index.js +2 -2
- package/dist/extensions/openrouter/index.js +3 -3
- package/dist/extensions/openrouter/media-understanding-provider.js +1 -1
- package/dist/extensions/openshell/index.js +1 -1
- package/dist/extensions/qianfan/index.js +1 -1
- package/dist/extensions/qqbot/index.js +2 -2
- package/dist/extensions/qqbot/setup-entry.js +2 -2
- package/dist/extensions/signal/api.js +4 -4
- package/dist/extensions/signal/index.js +9 -9
- package/dist/extensions/signal/reaction-runtime-api.js +1 -1
- package/dist/extensions/signal/runtime-api.js +4 -4
- package/dist/extensions/signal/setup-entry.js +2 -2
- package/dist/extensions/signal/test-api.js +4 -4
- package/dist/extensions/slack/api.js +6 -6
- package/dist/extensions/slack/index.js +2 -2
- package/dist/extensions/slack/runtime-api.js +6 -6
- package/dist/extensions/slack/setup-entry.js +2 -2
- package/dist/extensions/slack/test-api.js +4 -4
- package/dist/extensions/stepfun/index.js +2 -2
- package/dist/extensions/synology-chat/index.js +2 -2
- package/dist/extensions/synology-chat/setup-api.js +1 -1
- package/dist/extensions/synology-chat/setup-entry.js +2 -2
- package/dist/extensions/synthetic/index.js +1 -1
- package/dist/extensions/talk-voice/index.js +1 -1
- package/dist/extensions/telegram/api.js +8 -8
- package/dist/extensions/telegram/index.js +2 -2
- package/dist/extensions/telegram/runtime-api.js +8 -8
- package/dist/extensions/telegram/setup-entry.js +3 -3
- package/dist/extensions/telegram/test-api.js +7 -7
- package/dist/extensions/telegram/test-support.js +4 -4
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/README.md +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/SKILL.md +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/package.json +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks-examples/auto-react.hoon +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks-examples/delete-old-posts.hoon +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks-examples/word-filter.hoon +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks.md +0 -0
- package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/urbit-api.md +0 -0
- package/dist/extensions/tlon/index.js +2 -2
- package/dist/extensions/tlon/setup-entry.js +2 -2
- package/dist/extensions/tlon/test-api.js +1 -1
- package/dist/extensions/together/index.js +1 -1
- package/dist/extensions/twitch/index.js +1 -1
- package/dist/extensions/venice/index.js +1 -1
- package/dist/extensions/vercel-ai-gateway/index.js +1 -1
- package/dist/extensions/voice-call/index.js +1 -1
- package/dist/extensions/voice-call/runtime-entry.js +1 -1
- package/dist/extensions/volcengine/index.js +2 -2
- package/dist/extensions/whatsapp/action-runtime-api.js +1 -1
- package/dist/extensions/whatsapp/action-runtime.runtime.js +1 -1
- package/dist/extensions/whatsapp/api.js +2 -2
- package/dist/extensions/whatsapp/index.js +2 -2
- package/dist/extensions/whatsapp/light-runtime-api.js +1 -1
- package/dist/extensions/whatsapp/login-qr-api.js +1 -1
- package/dist/extensions/whatsapp/runtime-api.js +13 -13
- package/dist/extensions/whatsapp/setup-entry.js +3 -3
- package/dist/extensions/whatsapp/test-api.js +6 -6
- package/dist/extensions/xai/code-execution.js +1 -1
- package/dist/extensions/xai/index.js +4 -4
- package/dist/extensions/xai/x-search.js +1 -1
- package/dist/extensions/xiaomi/index.js +1 -1
- package/dist/extensions/zai/index.js +2 -2
- package/dist/extensions/zai/media-understanding-provider.js +1 -1
- package/dist/extensions/zalo/api.js +2 -2
- package/dist/extensions/zalo/index.js +2 -2
- package/dist/extensions/zalo/runtime-api.js +2 -2
- package/dist/extensions/zalo/setup-entry.js +2 -2
- package/dist/extensions/zalo/test-api.js +1 -1
- package/dist/extensions/zalouser/api.js +1 -1
- package/dist/extensions/zalouser/index.js +10 -10
- package/dist/extensions/zalouser/runtime-api.js +3 -3
- package/dist/extensions/zalouser/setup-entry.js +3 -3
- package/dist/extensions/zalouser/test-api.js +4 -4
- package/dist/format-CjUcUiAS.js +817 -0
- package/dist/gateway-C0XIV6ig.js +2575 -0
- package/dist/gateway-cli-BahMP_kF.js +1595 -0
- package/dist/gateway-install-token-NqvVCJIc.js +230 -0
- package/dist/gateway-rpc-g_R810hl.js +26 -0
- package/dist/gateway-runtime-KKmCQjqE.js +12 -0
- package/dist/get-reply-from-config.runtime-hpWbsmYx.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/gmail-watcher-lifecycle-BSmtho89.js +2 -0
- package/dist/graph-users-D_Wd9CjS.js +918 -0
- package/dist/group-access-DhzcblJn.js +119 -0
- package/dist/group-access-DpBavvG8.js +32 -0
- package/dist/handle-action-Cg-XA_5t.js +500 -0
- package/dist/health-5XdT5wrx.js +577 -0
- package/dist/health-LwmyM0Vn.js +2 -0
- package/dist/heartbeat-runner-B2bWlkRZ.js +995 -0
- package/dist/hooks-cli-C0XzNkzn.js +353 -0
- package/dist/http-client-DrDHhXiN.js +294 -0
- package/dist/image-Da8Hs6gD.js +152 -0
- package/dist/image-runtime-C-IqI2pA.js +7 -0
- package/dist/inbound-reply-dispatch-B_i6MaE2.js +73 -0
- package/dist/inbound.runtime-DNkDodS9.js +3 -0
- package/dist/inbound.runtime.js +1 -1
- package/dist/index.js +2 -2
- package/dist/infra-runtime-ys-6FFBb.js +22 -0
- package/dist/install-BFUCKrvK.js +590 -0
- package/dist/install-security-scan-BSW5EeAV.js +22 -0
- package/dist/install-security-scan.runtime-Dp_BW5Af.js +299 -0
- package/dist/install-security-scan.runtime.js +1 -1
- package/dist/install.runtime-D70UgdPH.js +27 -0
- package/dist/install.runtime-Hwr6WxKw.js +11 -0
- package/dist/install.runtime.js +1 -1
- package/dist/irc-Dy6J5w53.js +14 -0
- package/dist/legacy-crypto-restore-BP-Hc3PY.js +85 -0
- package/dist/library-Bw6BG_2-.js +44 -0
- package/dist/llm-slug-generator-CBwBGjZ8.js +68 -0
- package/dist/llm-slug-generator.js +1 -1
- package/dist/loader-C2_SmMnO.js +2 -0
- package/dist/login-Bcb8wbyx.js +2332 -0
- package/dist/login-CmI8lV4Y.js +108 -0
- package/dist/login-qr-api-5S1hXHTV.js +16 -0
- package/dist/login-qr-r2fVGHp8.js +211 -0
- package/dist/logs-cli-Cbd-6Ezj.js +221 -0
- package/dist/manager.runtime-Ct70BNQ4.js +670 -0
- package/dist/manager.runtime.js +1 -1
- package/dist/matrix-BmziG3pb.js +351 -0
- package/dist/matrix-runtime-heavy-ttFMxAUW.js +4 -0
- package/dist/mattermost-BDHPNYrf.js +18 -0
- package/dist/mcp-cli-CZOrO2_t.js +769 -0
- package/dist/media-D901cmoE.js +1691 -0
- package/dist/media-runtime-DiQcwQBI.js +295 -0
- package/dist/media-understanding-CObJNP6B.js +51 -0
- package/dist/media-understanding-provider-7SwpD6RT.js +16 -0
- package/dist/media-understanding-provider-BfNxkW7N.js +86 -0
- package/dist/media-understanding-provider-CBLwzm3-.js +16 -0
- package/dist/media-understanding-provider-CT70QyDc.js +28 -0
- package/dist/media-understanding-provider-CZLvfTTo.js +11 -0
- package/dist/media-understanding-provider-DbPx3WER.js +11 -0
- package/dist/media-understanding-provider-DuwXVYxP.js +11 -0
- package/dist/media-understanding-provider-reSmoSCx.js +17 -0
- package/dist/media-understanding.runtime-CqIWAX7n.js +7 -0
- package/dist/media-understanding.runtime.js +1 -1
- package/dist/memory-core-host-runtime-cli-BEFoRfBC.js +10 -0
- package/dist/message-BEoOf6DC.js +205 -0
- package/dist/message-action-runner-z2gDxHUR.js +1330 -0
- package/dist/message-handler-a8n00zLx.js +1771 -0
- package/dist/messages-B6ZOlc49.js +270 -0
- package/dist/method-scopes-bYJxNgUd.js +1929 -0
- package/dist/migration-snapshot.runtime-DJSYeWLs.js +3 -0
- package/dist/migration-snapshot.runtime.js +1 -1
- package/dist/model-catalog-1voMaEjk.js +216 -0
- package/dist/model-catalog.runtime-BSwGXPx5.js +2 -0
- package/dist/model-catalog.runtime.js +1 -1
- package/dist/model-picker-CFfuuILx.js +3 -0
- package/dist/model-picker-KsQtL--1.js +439 -0
- package/dist/model-runtime-uS3W4VLR.js +1772 -0
- package/dist/model-selection-Wwf0ZSw6.js +407 -0
- package/dist/models-Bec1S-8f.js +3 -0
- package/dist/models-CB6wO1ox.js +2550 -0
- package/dist/models-cli-BFq_ALX2.js +197 -0
- package/dist/models-config-DtCT1bwB.js +1106 -0
- package/dist/models-config-Dy7aH1mU.js +2 -0
- package/dist/models-config.runtime-Bk1lPOca.js +2 -0
- package/dist/models-config.runtime.js +1 -1
- package/dist/models-provider-runtime-NF3_9z3y.js +2 -0
- package/dist/monitor-Bj5g5Esg.js +4067 -0
- package/dist/monitor-BuQS4v8R.js +666 -0
- package/dist/monitor-Cr_BpmCt.js +3660 -0
- package/dist/monitor-DNG7q7PP.js +676 -0
- package/dist/monitor-DbNcg542.js +687 -0
- package/dist/monitor-DlDV3NpB.js +3622 -0
- package/dist/monitor-auth-B9iRfhIU.js +192 -0
- package/dist/monitor-oIJY2lc1.js +1525 -0
- package/dist/monitor-polling.runtime-CkYnC-zG.js +307 -0
- package/dist/monitor-polling.runtime.js +1 -1
- package/dist/monitor-provider-DPxgzxCa.js +1782 -0
- package/dist/monitor-webhook.runtime-CjcJBqh9.js +297 -0
- package/dist/monitor-webhook.runtime.js +1 -1
- package/dist/msteams-DJvw1cb7.js +33 -0
- package/dist/nextcloud-talk-CDhRjH5s.js +18 -0
- package/dist/node-cli-C2GQirgy.js +2323 -0
- package/dist/node-registry-CleVPR5q.js +1506 -0
- package/dist/nodes-cli-CSg-n2Tm.js +1044 -0
- package/dist/nodes.helpers-CxmQGfkd.js +34 -0
- package/dist/nostr-C8DeraDi.js +19 -0
- package/dist/notify-1cIdYcFv.js +298 -0
- package/dist/oauth-DuYH2PL9.js +152 -0
- package/dist/onboard-CiBtz-xM.js +591 -0
- package/dist/onboard-channels-CrG2bMLE.js +2 -0
- package/dist/onboard-channels-DaTilNcP.js +705 -0
- package/dist/onboard-custom-BA1IlMDs.js +2 -0
- package/dist/onboard-custom-BDuYqFPr.js +646 -0
- package/dist/onboard-helpers-6GR2gn02.js +227 -0
- package/dist/onboard-helpers-DFXWbItq.js +4 -0
- package/dist/onboard-remote-BOEn7F1j.js +2 -0
- package/dist/onboard-remote-D5LJTfkk.js +193 -0
- package/dist/onboard-skills-BOGKR-Ca.js +134 -0
- package/dist/onboard-skills-BjJtYABu.js +2 -0
- package/dist/onboard-ztmmlZVG.js +307 -0
- package/dist/openai-codex-provider-DJvHGsag.js +254 -0
- package/dist/openai-provider-Dz-35eCO.js +272 -0
- package/dist/openclaw-tools.runtime-DmTCbki_.js +2 -0
- package/dist/openclaw-tools.runtime.js +1 -1
- package/dist/operator-approvals-client-D3Vdz2IP.js +33 -0
- package/dist/outbound-adapter-uZRDMPZK.js +183 -0
- package/dist/outbound-session-WMAsJ0a8.js +41 -0
- package/dist/persistent-bindings.lifecycle-DKSsLLcK.js +159 -0
- package/dist/pi-embedded--FMyE2xG.js +40737 -0
- package/dist/pi-embedded.runtime-CBU9daab.js +4 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/plugin-install--Fssejhn.js +2 -0
- package/dist/plugin-install-CmCRXyYk.js +230 -0
- package/dist/plugin-install-config-policy-B_Gn13WK.js +93 -0
- package/dist/plugin-install-plan-CE32eCUV.js +50 -0
- package/dist/plugin-sdk/acp-runtime.js +2 -2
- package/dist/plugin-sdk/agent-runtime.js +4 -4
- package/dist/plugin-sdk/approval-runtime.js +5 -5
- package/dist/plugin-sdk/browser-support.js +5 -5
- package/dist/plugin-sdk/channel-inbound.js +3 -3
- package/dist/plugin-sdk/command-auth.js +6 -6
- package/dist/plugin-sdk/compat.js +1 -1
- package/dist/plugin-sdk/config-runtime.js +4 -4
- package/dist/plugin-sdk/conversation-runtime.js +3 -3
- package/dist/plugin-sdk/core.js +2 -2
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/gateway-runtime.js +3 -3
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +4 -4
- package/dist/plugin-sdk/irc.js +2 -2
- package/dist/plugin-sdk/matrix-runtime-heavy.js +3 -3
- package/dist/plugin-sdk/mattermost.js +4 -4
- package/dist/plugin-sdk/media-runtime.js +3 -3
- package/dist/plugin-sdk/media-understanding.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core.js +2 -2
- package/dist/plugin-sdk/models-provider-runtime.js +2 -2
- package/dist/plugin-sdk/msteams.js +3 -3
- package/dist/plugin-sdk/nextcloud-talk.js +2 -2
- package/dist/plugin-sdk/nostr.js +2 -2
- package/dist/plugin-sdk/provider-auth-api-key.js +2 -2
- package/dist/plugin-sdk/provider-auth-login.js +1 -1
- package/dist/plugin-sdk/provider-auth.js +2 -2
- package/dist/plugin-sdk/provider-entry.js +1 -1
- package/dist/plugin-sdk/reply-dispatch-runtime.js +2 -2
- package/dist/plugin-sdk/reply-runtime.js +4 -4
- package/dist/plugin-sdk/session-store-runtime.js +2 -2
- package/dist/plugin-sdk/src/plugins/plugin-error-handler.d.ts +1 -1
- package/dist/plugin-sdk/testing.js +4 -4
- package/dist/plugin-sdk/zalo.js +2 -2
- package/dist/plugin-sdk/zalouser.js +2 -2
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins-cli-DPeRjArv.js +561 -0
- package/dist/plugins-command-helpers-CwuHxZyr.js +116 -0
- package/dist/plugins-install-persist-DJc1nVov.js +121 -0
- package/dist/plugins-update-command-D-j0Tsk9.js +974 -0
- package/dist/policy-DvzI5272.js +147 -0
- package/dist/preflight-audio-BfvE8rdB.js +48 -0
- package/dist/preflight-audio.runtime-B9FVqgqK.js +7 -0
- package/dist/preflight-audio.runtime.js +1 -1
- package/dist/prepare-BtsQRK5c.js +1301 -0
- package/dist/probe-BDx5FDy0.js +431 -0
- package/dist/probe-Byt11l2h.js +2 -0
- package/dist/probe-C6dLAcEi.js +179 -0
- package/dist/probe-CuRJLZoJ.js +1868 -0
- package/dist/probe-LRuOTBuj.js +170 -0
- package/dist/probe-NXW41NuC.js +349 -0
- package/dist/probe-auth-BRhhh4ex.js +2 -0
- package/dist/probe-auth-DAy8dcLR.js +63 -0
- package/dist/profile-update-C7KF4WPF.js +67 -0
- package/dist/program-CIPtXoa8.js +158 -0
- package/dist/prompt-select-styled-C-KeIf-L.js +6434 -0
- package/dist/provider-D69XwktR.js +3685 -0
- package/dist/provider-DgyQ1WZG.js +18901 -0
- package/dist/provider-DsIs5BAW.js +70 -0
- package/dist/provider-api-key-auth-D0WnKQuM.js +109 -0
- package/dist/provider-api-key-auth.runtime.js +1 -1
- package/dist/provider-auth-Dpp25jpA.js +43 -0
- package/dist/provider-auth-api-key-33w-_rl0.js +5 -0
- package/dist/provider-auth-login-C-fsmNpl.js +8 -0
- package/dist/provider-auth-login.runtime.js +1 -1
- package/dist/provider-discovery.runtime.js +1 -1
- package/dist/provider-dispatcher-DPZmVgP-.js +22 -0
- package/dist/provider-entry-ChYiYdtX.js +86 -0
- package/dist/provider-session.runtime-C912iyEr.js +7 -0
- package/dist/provider-session.runtime.js +1 -1
- package/dist/provider.runtime-CbYqFFJS.js +2 -0
- package/dist/provider.runtime.js +1 -1
- package/dist/push-apns-Bo0lOK8I.js +921 -0
- package/dist/pw-ai-CQExslwy.js +2037 -0
- package/dist/qr-cli-CkukyQ2x.js +367 -0
- package/dist/qr-cli-LF2uq3sE.js +2 -0
- package/dist/qr-image-aygzLQ4I.js +2 -0
- package/dist/queue-Dl3GLDgP.js +663 -0
- package/dist/reaction-runtime-api-CRYWT_PT.js +114 -0
- package/dist/reactions-BAFR6GbN.js +258 -0
- package/dist/read-only-account-inspect.telegram-CDWl732t.js +202 -0
- package/dist/register.agent-CJG-ZO4-.js +239 -0
- package/dist/register.configure-CHLRdbKM.js +15 -0
- package/dist/register.maintenance-Q2lf3_YM.js +449 -0
- package/dist/register.message-D2rylE70.js +643 -0
- package/dist/register.onboard-DdBxSW_S.js +79 -0
- package/dist/register.setup-CYXizCGK.js +183 -0
- package/dist/register.status-health-sessions-CMluKX5S.js +1206 -0
- package/dist/register.subclis-BKGbrHyR.js +3 -0
- package/dist/register.subclis-BM6g9QQL.js +295 -0
- package/dist/replies-R0m4q8kg.js +118 -0
- package/dist/reply-ZN9hngZ5.js +3192 -0
- package/dist/reply-blocks-Bg8ILI7V.js +103 -0
- package/dist/reply-dispatch-runtime-Cu90JzU1.js +3 -0
- package/dist/reply-runtime-C86tm-KJ.js +123 -0
- package/dist/reply.runtime-BRboWHJs.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/resolve-allowlist-DTUbLryt.js +147 -0
- package/dist/resolve-targets-DHGtpcOl.js +280 -0
- package/dist/rooms-gnGkAkxW.js +325 -0
- package/dist/route-reply-DhfrKDln.js +133 -0
- package/dist/route-reply.runtime-BGjs_dp0.js +2 -0
- package/dist/route-reply.runtime.js +1 -1
- package/dist/route-resolution-DQn8g26a.js +461 -0
- package/dist/routes-D0jZwV8F.js +6884 -0
- package/dist/rpc-IppAj-IP.js +67 -0
- package/dist/rpc-context-_iL3pHdc.js +155 -0
- package/dist/run-main-CJptpMCC.js +425 -0
- package/dist/runner-C7IpTwpd.js +1479 -0
- package/dist/runtime-B0wy8llu.js +68 -0
- package/dist/runtime-DOxtJBzp.js +1175 -0
- package/dist/runtime-api-B5uSuI-q.js +81 -0
- package/dist/runtime-api-BNU2Ieri.js +2 -0
- package/dist/runtime-api-BlrQYW2y.js +29 -0
- package/dist/runtime-api-C0X2O-0v.js +2 -0
- package/dist/runtime-api-C1FRgFrk.js +2484 -0
- package/dist/runtime-api-CAmugnzl.js +2 -0
- package/dist/runtime-api-CEOSBEyV.js +2 -0
- package/dist/runtime-api-CyCuXosH.js +2 -0
- package/dist/runtime-api-D7UUAlH6.js +3 -0
- package/dist/runtime-api-DAK6MloS.js +2 -0
- package/dist/runtime-api-DK-Y9EYy.js +2 -0
- package/dist/runtime-api-DprG6OfE.js +2 -0
- package/dist/runtime-api-Eo_GYixB.js +14 -0
- package/dist/runtime-api-Vxiguu1I.js +3676 -0
- package/dist/runtime-discord-ops.runtime.js +1 -1
- package/dist/runtime-embedded-pi.runtime-D8rAOi5T.js +2 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-entry-ChGqHA0x.js +4925 -0
- package/dist/runtime-media-understanding.runtime.js +1 -1
- package/dist/runtime-model-auth.runtime.js +1 -1
- package/dist/runtime-slack-ops.runtime.js +1 -1
- package/dist/runtime-tts.runtime.js +1 -1
- package/dist/sandbox-cli-CPpbsT5I.js +443 -0
- package/dist/sdk-Z1fJrGQr.js +1108 -0
- package/dist/secrets-cli-BFWMV6Rn.js +2112 -0
- package/dist/security-cli-DOuEmv3z.js +477 -0
- package/dist/send-BMP0Q7KX.js +318 -0
- package/dist/send-BS2V9mFf.js +2 -0
- package/dist/send-C-A2To04.js +178 -0
- package/dist/send-Ci1IPXfI.js +442 -0
- package/dist/send-CpE0zxTi.js +856 -0
- package/dist/send-DTAJ-mpx.js +1076 -0
- package/dist/send-DjCWVRaN.js +3 -0
- package/dist/send-DuEFcw1B.js +532 -0
- package/dist/send-DxGzJJRt.js +100 -0
- package/dist/send.components-CGyVaARq.js +2 -0
- package/dist/send.components-DzxQR3-4.js +942 -0
- package/dist/server-CExH4wdw.js +67 -0
- package/dist/server-DKesNeGq.js +8784 -0
- package/dist/server-cron-B2iZTVwh.js +2 -0
- package/dist/server-cron-ClQxmQgw.js +4173 -0
- package/dist/server-lite-hc-hPZNK.js +4028 -0
- package/dist/server-maintenance-BSIzrjJl.js +2 -0
- package/dist/server-maintenance-hnVWi8is.js +542 -0
- package/dist/server-methods-B31gAI2f.js +10158 -0
- package/dist/server-methods-vPROTQdN.js +2 -0
- package/dist/server-middleware-hhxbngch.js +108 -0
- package/dist/server-node-events-CbACjH9K.js +454 -0
- package/dist/server-plugin-bootstrap-BKa3rIo-.js +62 -0
- package/dist/server-plugin-bootstrap-Cp9OCYuH.js +2 -0
- package/dist/server-plugins-B7VIy9jT.js +2 -0
- package/dist/server-plugins-BBVaEGng.js +284 -0
- package/dist/server-startup-memory-CVapa4Yz.js +2 -0
- package/dist/server-tailscale-54LjqWBi.js +2 -0
- package/dist/services-hJ00-1pr.js +2 -0
- package/dist/session-APtJPn_Y.js +50 -0
- package/dist/session-archive.runtime-c-nz7eqz.js +2 -0
- package/dist/session-archive.runtime.js +1 -1
- package/dist/session-envelope-C1rp6McA.js +18 -0
- package/dist/session-file-C48zoqz9.js +120 -0
- package/dist/session-key-BdWePaC2.js +52 -0
- package/dist/session-override-DA6SNv5r.js +100 -0
- package/dist/session-reset-model.runtime-DyC0zHNk.js +119 -0
- package/dist/session-reset-model.runtime.js +1 -1
- package/dist/session-route-DQu594nL.js +91 -0
- package/dist/session-store-runtime-DrBF1W1Y.js +2 -0
- package/dist/session-subagent-reactivation.runtime-DMBg8kKb.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-transcript-files.fs-BDOYcS36.js +149 -0
- package/dist/session-updates-B-w6fPxz.js +222 -0
- package/dist/session-updates.runtime-CKGV87hI.js +2 -0
- package/dist/session-updates.runtime.js +1 -1
- package/dist/session-utils-DCvDCnS_.js +1743 -0
- package/dist/sessions-BjJZXiKF.js +224 -0
- package/dist/sessions-DkDvF2NY.js +443 -0
- package/dist/sessions-dfM6agTF.js +2 -0
- package/dist/setup-B0Kl_ZUj.js +427 -0
- package/dist/setup-api-DG_r0aSK.js +2 -0
- package/dist/setup-bootstrap-BPlvd0ul.js +54 -0
- package/dist/setup-core-CRwgduxq.js +146 -0
- package/dist/setup-core-Dg-88XZa.js +256 -0
- package/dist/setup-surface-1cII5Ep0.js +450 -0
- package/dist/setup-surface-9CLft9ha.js +261 -0
- package/dist/setup-surface-CYp-g_uf.js +272 -0
- package/dist/setup-surface-Cgsey6kQ.js +237 -0
- package/dist/setup-surface-Crlpt6px.js +333 -0
- package/dist/setup-surface-DKqlEudS.js +261 -0
- package/dist/setup-surface-DWK_BFRX.js +8848 -0
- package/dist/setup-surface-DkJ-eGo6.js +304 -0
- package/dist/setup-surface-F7oisGVl.js +656 -0
- package/dist/setup-surface-P_IDbA-y.js +484 -0
- package/dist/setup-surface-WQO_NWaX.js +346 -0
- package/dist/setup-surface-sBJXL-eD.js +353 -0
- package/dist/setup.finalize-dMX37hla.js +458 -0
- package/dist/setup.gateway-config-DBugYTmN.js +247 -0
- package/dist/shared-2v-Gidov.js +160 -0
- package/dist/shared-BkqJ4cXQ.js +64 -0
- package/dist/shared-BmNbtg3Q.js +78 -0
- package/dist/shared-CYV3hklv.js +72 -0
- package/dist/shared-DKB-cs8-.js +144 -0
- package/dist/shared-DRflxFm-.js +198 -0
- package/dist/shared-hlZgZOiW.js +94 -0
- package/dist/shared-ps1MuZ_j.js +2 -0
- package/dist/shared-runtime-BJtRkVrz.js +7 -0
- package/dist/shared-v0WC-oQK.js +180 -0
- package/dist/skills-install-Bwa6Sgln.js +819 -0
- package/dist/slash-commands-C49Fz94I.js +672 -0
- package/dist/slash-commands.runtime-DMTBns1k.js +20 -0
- package/dist/slash-commands.runtime.js +1 -1
- package/dist/slash-dispatch.runtime-BDyHiqlk.js +38 -0
- package/dist/slash-dispatch.runtime.js +1 -1
- package/dist/slash-skill-commands.runtime-CRPGuJSi.js +8 -0
- package/dist/slash-skill-commands.runtime.js +1 -1
- package/dist/speech-provider-n8zFqxBL.js +190 -0
- package/dist/src-BU1xt4IS.js +2739 -0
- package/dist/startup-verification-CRqbTtcz.js +131 -0
- package/dist/state-migrations-FSPFP4JZ.js +845 -0
- package/dist/status-C_dPcNLc.js +3 -0
- package/dist/status-DQ3J6fvJ.js +650 -0
- package/dist/status-Dc_cBWaT.js +608 -0
- package/dist/status-all-BZvhglUE.js +798 -0
- package/dist/status-iPa-BHzU.js +2 -0
- package/dist/status-issues-BFWHBD7_.js +187 -0
- package/dist/status-issues-C5mwgE1K.js +336 -0
- package/dist/status-json-CzBfMBdV.js +86 -0
- package/dist/status.command.text-runtime-Bi06x2bO.js +18 -0
- package/dist/status.gateway-probe-BrDE5smD.js +15 -0
- package/dist/status.scan-b-df16rd.js +264 -0
- package/dist/status.scan.fast-json-C550Vn46.js +97 -0
- package/dist/status.scan.fast-json-Da1qWI9h.js +2 -0
- package/dist/status.scan.json-core-Djk59_R4.js +254 -0
- package/dist/status.summary-Cc493RMi.js +2 -0
- package/dist/status.summary-DMLqJh4Z.js +210 -0
- package/dist/sticker-cache-DHEbYRHS.js +1573 -0
- package/dist/sticker-vision.runtime-BMK5kqQJ.js +16 -0
- package/dist/sticker-vision.runtime.js +1 -1
- package/dist/storage-D-6clR9f.js +234 -0
- package/dist/store-CoM_1E9z.js +1343 -0
- package/dist/store.runtime-CIuNZON5.js +2 -0
- package/dist/store.runtime.js +1 -1
- package/dist/stream-CWjb_cUN.js +633 -0
- package/dist/subagent-orphan-recovery-C-aUn3fW.js +206 -0
- package/dist/subagent-registry-runtime-Ca8dZzkt.js +2 -0
- package/dist/supervisor-log.runtime.js +1 -1
- package/dist/system-cli-Di5xjQhp.js +58 -0
- package/dist/targets-CHXsZ0Lh.js +748 -0
- package/dist/task-registry-delivery-runtime-Bn8lFyyJ.js +2 -0
- package/dist/task-registry.audit-DKeA5n0-.js +320 -0
- package/dist/task-registry.maintenance-Dn_d7ihC.js +2 -0
- package/dist/telegram/token.js +1 -1
- package/dist/test-api-CHvlVfTp.js +47 -0
- package/dist/testing-DT7rtX0c.js +677 -0
- package/dist/thread-bindings-B6zN0k21.js +534 -0
- package/dist/thread-bindings-CmKQt5q_.js +219 -0
- package/dist/thread-bindings-DWWH36_X.js +778 -0
- package/dist/thread-bindings-DnpgWNT4.js +352 -0
- package/dist/thread-bindings.discord-api-BwD-uZz_.js +487 -0
- package/dist/threading-B_gDurxs.js +832 -0
- package/dist/threading-D0r4Anla.js +2 -0
- package/dist/threading-tool-context-BPKW8GhQ.js +157 -0
- package/dist/token-BvVXTa1Z.js +82 -0
- package/dist/tool-actions.runtime-BsuBBeVX.js +532 -0
- package/dist/tool-actions.runtime.js +1 -1
- package/dist/tools-effective-inventory-C2GF5VmP.js +148 -0
- package/dist/tts.runtime.js +1 -1
- package/dist/tui-Bb5azvQF.js +3900 -0
- package/dist/tui-cli-DxmK_eUj.js +31 -0
- package/dist/ui-DPp2RltH.js +212 -0
- package/dist/update-CwetpUkV.js +1253 -0
- package/dist/update-cli-DxX_eB5r.js +1447 -0
- package/dist/update-runner-CII40Iqw.js +1195 -0
- package/dist/verification-3dzB3kXb.js +2 -0
- package/dist/verification-DKcxjWhr.js +130 -0
- package/dist/with-timeout-ByWPy6Dr.js +214 -0
- package/dist/x-search-Diq4fQx-.js +166 -0
- package/dist/zalo-BpIY-cZQ.js +13 -0
- package/dist/zalo-js-C82Pw8Jo.js +1156 -0
- package/dist/zalouser-Dg8kWtnU.js +22 -0
- package/package.json +3 -3
- package/dist/abort-C-R1vDVW.js +0 -192
- package/dist/abort-cutoff.runtime-wJ3StaO0.js +0 -20
- package/dist/abort.runtime-crAOXEdW.js +0 -2
- package/dist/access-control-BdDw4zw9.js +0 -152
- package/dist/account-inspect-tdNMIW_5.js +0 -158
- package/dist/accounts-Ba33JnWD.js +0 -107
- package/dist/accounts-BfpMQVP6.js +0 -102
- package/dist/accounts-BtXklbXk.js +0 -137
- package/dist/accounts-Bxxr7I94.js +0 -2
- package/dist/accounts-LJrbnFo9.js +0 -57
- package/dist/acp-cli-Bz-qu15C.js +0 -2207
- package/dist/acp-runtime-CaQ7rReD.js +0 -8
- package/dist/acp-stateful-target-driver-DdQ6SSZR.js +0 -60
- package/dist/action-runtime-Cr84Cv4x.js +0 -318
- package/dist/action-runtime-DVGAbrjd.js +0 -72
- package/dist/action-runtime-api-BOIItFIX.js +0 -1028
- package/dist/actions-DCPy_zyJ.js +0 -531
- package/dist/actions.runtime-Banu7c1j.js +0 -5
- package/dist/actions.runtime-CzqzyqtR.js +0 -2
- package/dist/actions.runtime-N7JGLCQD.js +0 -18
- package/dist/agent-BQhTLJ7d.js +0 -2
- package/dist/agent-command-D9dnP3W6.js +0 -1457
- package/dist/agent-runner.runtime-BAvcIrtU.js +0 -2241
- package/dist/agent-runtime-6BFTt5wC.js +0 -142
- package/dist/agent-tools-login-B46ZHbA3.js +0 -57
- package/dist/agents-BBuZz7Gs.js +0 -888
- package/dist/agents-CGaBjhmU.js +0 -5
- package/dist/api-BBydv9bj.js +0 -6
- package/dist/api-BttH_0qb.js +0 -10
- package/dist/api-CEV_MiWr.js +0 -2
- package/dist/api-CRMuNrP0.js +0 -2
- package/dist/api-DeLufq6p.js +0 -5
- package/dist/api-XLQ5jEl02.js +0 -322
- package/dist/api-_jxL2ZSY.js +0 -5
- package/dist/apply-3X8274RG.js +0 -485
- package/dist/apply.runtime-SF-p0ieM.js +0 -2
- package/dist/approval-native-Cx6aCdoW.js +0 -79
- package/dist/approval-native-runtime-BJdgdwW4.js +0 -399
- package/dist/approval-renderers-BrOupScX.js +0 -87
- package/dist/approval-runtime-DRSZEeu5.js +0 -262
- package/dist/audit-CZ1IMnnH.js +0 -86
- package/dist/audit-Dy_oE5jo.js +0 -892
- package/dist/audit-channel.collect.runtime-CUGyfHea.js +0 -528
- package/dist/audit-channel.telegram.runtime-B4PWhMcI.js +0 -8
- package/dist/audit-extra.async-A69TqYNB.js +0 -820
- package/dist/audit.deep.runtime-DzbbbpfP.js +0 -2
- package/dist/audit.nondeep.runtime-BT2K9ZrE.js +0 -831
- package/dist/audit.runtime-DVAOUEDw.js +0 -7
- package/dist/auth-B6YkJAzi.js +0 -181
- package/dist/auth-choice-B4YsIfyS.js +0 -3
- package/dist/auth-choice-DmHG47KG.js +0 -341
- package/dist/auth-choice-gyPfrpUp.js +0 -69
- package/dist/binding-targets-z1XsHk5C.js +0 -99
- package/dist/bot-BD-7NfVz.js +0 -4268
- package/dist/bot-message-context-DtCobh_J.js +0 -1175
- package/dist/bot-message-context-kkFlhT_H.js +0 -2
- package/dist/bot-message-context.runtime-Cd8B3ifB.js +0 -7
- package/dist/bot-message-context.session.runtime-al9sVjI_.js +0 -12
- package/dist/bot-native-commands.delivery.runtime-Bt31VSW0.js +0 -3
- package/dist/bot-native-commands.runtime-KTnbJVGa.js +0 -11
- package/dist/browser-support-CxpnAMs-.js +0 -35
- package/dist/call-D2H2TYNJ.js +0 -2
- package/dist/call-hhpjYw2P.js +0 -650
- package/dist/channel-B0UL9h2R.js +0 -1661
- package/dist/channel-BA_BqNts.js +0 -783
- package/dist/channel-BJEC2I4A.js +0 -788
- package/dist/channel-BXOwd9rg.js +0 -698
- package/dist/channel-B__auQWP.js +0 -1135
- package/dist/channel-Bxph2D0U.js +0 -599
- package/dist/channel-CDXvKC1d.js +0 -4976
- package/dist/channel-Cd0OpYRG.js +0 -337
- package/dist/channel-Chz8vweK.js +0 -800
- package/dist/channel-CllO-o_Y.js +0 -361
- package/dist/channel-Cy7NDY_f.js +0 -454
- package/dist/channel-D1HWfFyr.js +0 -208
- package/dist/channel-DRRT9EEP.js +0 -883
- package/dist/channel-dWhvGm5M.js +0 -1217
- package/dist/channel-inbound-B3iTJQkw.js +0 -30
- package/dist/channel-kIBHrQdr.js +0 -1129
- package/dist/channel-plugin-resolution-EmcpRdg3.js +0 -144
- package/dist/channel-shared-DpBTfQuJ.js +0 -58
- package/dist/channel.runtime--WcurZ3V.js +0 -14
- package/dist/channel.runtime-B4dGq4Zj.js +0 -309
- package/dist/channel.runtime-BL7-T8oX.js +0 -373
- package/dist/channel.runtime-BTe6JGLY.js +0 -108
- package/dist/channel.runtime-Bq2FkSOB.js +0 -80
- package/dist/channel.runtime-CPZjMqQF.js +0 -125
- package/dist/channel.runtime-CYDr4lhp.js +0 -335
- package/dist/channel.runtime-KtPqEMsN.js +0 -22252
- package/dist/channel.setup-sa9uBBuk.js +0 -279
- package/dist/channels-CMPZA5CH.js +0 -1134
- package/dist/channels-cli-BVrEF_ts.js +0 -246
- package/dist/clawbot-cli-DKOcQmPL.js +0 -9
- package/dist/clawhub-xZ-u3Kxs.js +0 -163
- package/dist/cli-BfgYpywg.js +0 -695
- package/dist/cli-DyWsJgSZ.js +0 -152
- package/dist/cli-migration-i9vbb7Po.js +0 -100
- package/dist/cli-runner-CWYFSXRU.js +0 -1014
- package/dist/cli.runtime-BkOpObJc.js +0 -547
- package/dist/client-BBCr6ebF.js +0 -7
- package/dist/client-DX5q4uvt.js +0 -5
- package/dist/client-DtmLczg3.js +0 -748
- package/dist/client-bootstrap-B9UCvZhE.js +0 -2
- package/dist/client-bootstrap-Cj186P_J.js +0 -121
- package/dist/code-execution-Z8MJ5cFI.js +0 -142
- package/dist/command-auth-D_zMq39C.js +0 -64
- package/dist/command-registry-Bp0dfOA4.js +0 -199
- package/dist/command-registry-CiLAd7LY.js +0 -3
- package/dist/command-secret-gateway-lKzmAhpK.js +0 -2
- package/dist/command-secret-gateway-qxg2slRU.js +0 -442
- package/dist/commands-BgcRDdFh.js +0 -4
- package/dist/commands-acp-Cg-_icu4.js +0 -990
- package/dist/commands-core-BJEXMESE.js +0 -241
- package/dist/commands-core.runtime-DwYvbB2X.js +0 -2
- package/dist/commands-handlers.runtime-Bisn4G0L.js +0 -3707
- package/dist/commands-info-BkKdjc13.js +0 -651
- package/dist/commands-models-Du_O-i4Z.js +0 -395
- package/dist/commands-status.runtime-_ImLW35v.js +0 -2
- package/dist/commands.runtime-BEoCgdkw.js +0 -4
- package/dist/compact.runtime-26juuVw5.js +0 -7
- package/dist/completion-cli-BD3-voiU.js +0 -466
- package/dist/completion-cli-D3vz60kY.js +0 -2
- package/dist/config-C2_JxDOt.js +0 -475
- package/dist/config-cli-CTbnUJF2.js +0 -945
- package/dist/config-guard-2ccWxqyd.js +0 -113
- package/dist/config-runtime-D1G3eul7.js +0 -13
- package/dist/config-secret-input.runtime-BoWyBGWe.js +0 -3
- package/dist/config-update-MTRYAH8I.js +0 -127
- package/dist/config-update-a8-9E898.js +0 -3
- package/dist/configure-D0AcAdKb.js +0 -2
- package/dist/configure-DaQfBby_.js +0 -1140
- package/dist/connection-auth-C7GmyWgk.js +0 -30
- package/dist/context-B4mmliZ6.js +0 -227
- package/dist/control-ui/assets/agents-DDFoQ9J0.js +0 -813
- package/dist/control-ui/assets/anthropic-C-tf8Fen.js +0 -37
- package/dist/control-ui/assets/azure-openai-responses-BSGEJ3Ei.js +0 -2
- package/dist/control-ui/assets/channels-CTt1MgBj.js +0 -349
- package/dist/control-ui/assets/cron-BXASmQ8d.js +0 -928
- package/dist/control-ui/assets/de-DU-XmSEb.js +0 -2
- package/dist/control-ui/assets/debug-CzhHXdzp.js +0 -94
- package/dist/control-ui/assets/es-Be891ZDf.js +0 -2
- package/dist/control-ui/assets/google-DRrl9_02.js +0 -2
- package/dist/control-ui/assets/index-Bj7BfTbG.js +0 -5155
- package/dist/control-ui/assets/index-DS0K8n_P.css +0 -1
- package/dist/control-ui/assets/instances-C0rMmz-O.js +0 -57
- package/dist/control-ui/assets/mistral-CtyV_AUP.js +0 -8
- package/dist/control-ui/assets/openai-codex-responses-DJEk5pd-.js +0 -8
- package/dist/control-ui/assets/openai-completions-DfHThFc9.js +0 -6
- package/dist/control-ui/assets/openai-responses-DE7suJPm.js +0 -2
- package/dist/control-ui/assets/openai-responses-shared-B0AQhUSV.js +0 -11
- package/dist/control-ui/assets/pt-BR-RqwUvKTB.js +0 -2
- package/dist/control-ui/assets/sessions-DPTm5-Ov.js +0 -236
- package/dist/control-ui/assets/skills-D2mKSfSN.js +0 -216
- package/dist/control-ui/assets/zh-CN-CUzhgfRs.js +0 -2
- package/dist/control-ui/assets/zh-TW-CCgwa2eS.js +0 -2
- package/dist/conversation-bindings-k6Zat25I.js +0 -210
- package/dist/conversation-id-CAreatJD.js +0 -168
- package/dist/conversation-runtime-DGPuiyes.js +0 -85
- package/dist/core-BqV46wdr.js +0 -195
- package/dist/core-api-Ze44HFRt.js +0 -670
- package/dist/create-client-DXh0pIbI.js +0 -58
- package/dist/create-client-PrI1i_nr.js +0 -2
- package/dist/credentials-DRmtcdwX.js +0 -22
- package/dist/credentials-write.runtime-Desqx527.js +0 -9
- package/dist/cron-cli-Bie0XKE2.js +0 -644
- package/dist/crypto-runtime-CREXIwmf.js +0 -3495
- package/dist/daemon-cli-BAkA0dlb.js +0 -383
- package/dist/daemon-install-C1RFhYR_.js +0 -63
- package/dist/delegate-BGKKKvAo.js +0 -43
- package/dist/deliver-23oq34d7.js +0 -3
- package/dist/deliver-i0goisDA.js +0 -954
- package/dist/deliver-reply-BjFM8ww6.js +0 -238
- package/dist/deliver-runtime-B5bbRmZQ.js +0 -2
- package/dist/delivery-BNiQ1TLP.js +0 -834
- package/dist/delivery-info-B-deh5FM.js +0 -40
- package/dist/devices-cli-DjfErYAS.js +0 -328
- package/dist/direct-dm-5oTzBcIu.js +0 -139
- package/dist/direct-management-BPGS6FTh.js +0 -300
- package/dist/direct-management-BpCWFJyF.js +0 -2
- package/dist/directive-handling.fast-lane-CVh4IBjI.js +0 -2
- package/dist/directive-handling.fast-lane-DOm23t5v.js +0 -64
- package/dist/directive-handling.impl-CgiA9pjT.js +0 -672
- package/dist/directive-handling.impl-DCQZ0dnd.js +0 -2
- package/dist/directive-handling.parse-DPDyLd_-.js +0 -375
- package/dist/directive-handling.persist-DMsyO25o.js +0 -133
- package/dist/directive-handling.persist.runtime-Dra5HtIl.js +0 -2
- package/dist/directive-handling.shared-dtc25KE5.js +0 -158
- package/dist/directory-cli-D_XkzhyY.js +0 -238
- package/dist/directory.static-61y-cdOc.js +0 -45
- package/dist/discovery-BnBaoozs.js +0 -171
- package/dist/dispatch-BLg_McKx.js +0 -858
- package/dist/dispatch-acp.runtime-DVpSni12.js +0 -884
- package/dist/doctor-completion-CjSsQ6q1.js +0 -90
- package/dist/doctor-config-preflight-DbWinFHH.js +0 -148
- package/dist/doctor-config-preflight-eMDt9sPz.js +0 -2
- package/dist/doctor-state-migrations-CJNTjLDX.js +0 -3
- package/dist/doctor-state-migrations-eu6Fo9yR.js +0 -2
- package/dist/embedding-provider-B7OF_Le_.js +0 -129
- package/dist/encryption-guidance-CPoKWB96.js +0 -33
- package/dist/error-text-Fkco_WlC.js +0 -24
- package/dist/exec-approval-session-target-63NTDHSk.js +0 -159
- package/dist/exec-approvals-DRayTFaP.js +0 -121
- package/dist/exec-approvals-cli-oWw9Njcf.js +0 -483
- package/dist/format-BZ_AALm5.js +0 -817
- package/dist/gateway-C6qrR9vv.js +0 -2575
- package/dist/gateway-cli-BP0caZ1T.js +0 -1595
- package/dist/gateway-install-token-C1bCP8FD.js +0 -230
- package/dist/gateway-rpc-CUDjWhyj.js +0 -26
- package/dist/gateway-runtime-BqKUNCEX.js +0 -12
- package/dist/get-reply-from-config.runtime-cBQqvlsu.js +0 -2
- package/dist/gmail-watcher-lifecycle-D8LqSLow.js +0 -2
- package/dist/graph-users-BXa-0D92.js +0 -918
- package/dist/group-access-CFuLUayJ.js +0 -119
- package/dist/group-access-ggVqA0yW.js +0 -32
- package/dist/handle-action-CJa1sujq.js +0 -500
- package/dist/health-5QTgh5ZT.js +0 -2
- package/dist/health-BPAWBs8D.js +0 -577
- package/dist/heartbeat-runner-DrmDzx7x.js +0 -995
- package/dist/hooks-cli-Co8dJkIQ.js +0 -353
- package/dist/http-client-B-7r-EaG.js +0 -294
- package/dist/image-D8EANgNy.js +0 -152
- package/dist/image-runtime-CYcM7c6K.js +0 -7
- package/dist/inbound-reply-dispatch-BFMtgdb3.js +0 -73
- package/dist/inbound.runtime-CZ4vwuZM.js +0 -3
- package/dist/infra-runtime-TUgf6BY4.js +0 -22
- package/dist/install-C3ahg3Ch.js +0 -590
- package/dist/install-security-scan-_wP0O-j9.js +0 -22
- package/dist/install-security-scan.runtime-BbVgrDf4.js +0 -299
- package/dist/install.runtime-CAY5b592.js +0 -27
- package/dist/install.runtime-DsTaCUuj.js +0 -11
- package/dist/irc-CUgPhQqJ.js +0 -14
- package/dist/legacy-crypto-restore-CLPSZ8Pk.js +0 -85
- package/dist/library-BAQpjYF5.js +0 -44
- package/dist/llm-slug-generator-BJjdmZp7.js +0 -68
- package/dist/loader-C7kWxh9e.js +0 -2
- package/dist/login-BxNpWftp.js +0 -108
- package/dist/login-nECDoiqe.js +0 -2332
- package/dist/login-qr-BDFl3Vh4.js +0 -211
- package/dist/login-qr-api-BMiYcsLk.js +0 -16
- package/dist/logs-cli-C5Lmb2j6.js +0 -221
- package/dist/manager.runtime-C-apxYLt.js +0 -670
- package/dist/matrix-CQsqRSCK.js +0 -351
- package/dist/matrix-runtime-heavy-UU1aX8pf.js +0 -4
- package/dist/mattermost-D7G4xAjF.js +0 -18
- package/dist/mcp-cli-BmaQNQ4z.js +0 -769
- package/dist/media-BV-I273a.js +0 -1691
- package/dist/media-runtime-CfN-j727.js +0 -295
- package/dist/media-understanding-provider-02QSLqqt.js +0 -11
- package/dist/media-understanding-provider-C5BjKPbr.js +0 -11
- package/dist/media-understanding-provider-C8dIGWsf.js +0 -16
- package/dist/media-understanding-provider-CJQ9Mh27.js +0 -11
- package/dist/media-understanding-provider-CwY-Q1oI.js +0 -16
- package/dist/media-understanding-provider-DMgFt5ty.js +0 -86
- package/dist/media-understanding-provider-DNg263zS.js +0 -17
- package/dist/media-understanding-provider-V2D1oJNm.js +0 -28
- package/dist/media-understanding-r1N6yrBj.js +0 -51
- package/dist/media-understanding.runtime-DXZUHoQS.js +0 -7
- package/dist/memory-core-host-runtime-cli-BMEvjE55.js +0 -10
- package/dist/message-BO818ypY.js +0 -205
- package/dist/message-action-runner-CbJgNlrr.js +0 -1330
- package/dist/message-handler-DIqmS8Ib.js +0 -1771
- package/dist/messages-BeCeDoad.js +0 -270
- package/dist/method-scopes-CVHg8pE6.js +0 -1929
- package/dist/migration-snapshot.runtime-CXj70Ike.js +0 -3
- package/dist/model-catalog-CpFqzG7b.js +0 -216
- package/dist/model-catalog.runtime-CCRQ14-b.js +0 -2
- package/dist/model-picker-BeKGVoa0.js +0 -439
- package/dist/model-picker-BjVg6Z6O.js +0 -3
- package/dist/model-runtime-sJQrO3i8.js +0 -1772
- package/dist/model-selection-BIT-zcf7.js +0 -407
- package/dist/models-C2-igd5s.js +0 -2550
- package/dist/models-Cs6t5Ho9.js +0 -3
- package/dist/models-cli-DZB4GN2_.js +0 -197
- package/dist/models-config-CpBJhJKI.js +0 -1106
- package/dist/models-config-DTyFvAsL.js +0 -2
- package/dist/models-config.runtime-DhXZ0S9R.js +0 -2
- package/dist/models-provider-runtime-Bd8FDFn1.js +0 -2
- package/dist/monitor-BAkdQvBr.js +0 -4067
- package/dist/monitor-Bwn1Qx_Z.js +0 -3660
- package/dist/monitor-D4dPoKaG.js +0 -676
- package/dist/monitor-DFmfC81T.js +0 -666
- package/dist/monitor-DasIFiFS.js +0 -687
- package/dist/monitor-DiuOBmY2.js +0 -3622
- package/dist/monitor-WJveB1YW.js +0 -1525
- package/dist/monitor-auth-D-ZfrnMq.js +0 -192
- package/dist/monitor-polling.runtime-ppq4kiNX.js +0 -307
- package/dist/monitor-provider-BmqCSN_5.js +0 -1782
- package/dist/monitor-webhook.runtime-9mPgE_7_.js +0 -297
- package/dist/msteams-DuvzAzc3.js +0 -33
- package/dist/nextcloud-talk-Dh5KvFT7.js +0 -18
- package/dist/node-cli-Cq_gbjnH.js +0 -2323
- package/dist/node-registry-DTM62pwt.js +0 -1506
- package/dist/nodes-cli-C_0rr6dK.js +0 -1044
- package/dist/nodes.helpers-B9yGPd4K.js +0 -34
- package/dist/nostr-Ci5UL3gh.js +0 -19
- package/dist/notify-D0bbW4VY.js +0 -298
- package/dist/oauth-DRFka7IG.js +0 -152
- package/dist/onboard-C25BA7uj.js +0 -307
- package/dist/onboard-Cct6jsME.js +0 -591
- package/dist/onboard-channels-DRJJTKpi.js +0 -2
- package/dist/onboard-channels-hXqESgDm.js +0 -705
- package/dist/onboard-custom-BTYJsiQD.js +0 -2
- package/dist/onboard-custom-wVFPx9iZ.js +0 -646
- package/dist/onboard-helpers-BDgSqWzb.js +0 -227
- package/dist/onboard-helpers-DRAFN5HG.js +0 -4
- package/dist/onboard-remote-BhcJasfJ.js +0 -2
- package/dist/onboard-remote-jfi49JAj.js +0 -193
- package/dist/onboard-skills-B3GLSkSy.js +0 -134
- package/dist/onboard-skills-lPyWbubp.js +0 -2
- package/dist/openai-codex-provider-B8hmaMiq.js +0 -254
- package/dist/openai-provider-RJ8MNV95.js +0 -272
- package/dist/openclaw-tools.runtime-YUd26ky7.js +0 -2
- package/dist/operator-approvals-client-w-CN-0UE.js +0 -33
- package/dist/outbound-adapter-DHzn7ZnT.js +0 -183
- package/dist/outbound-session-ChaX8Mz9.js +0 -41
- package/dist/persistent-bindings.lifecycle-YqPFNqw7.js +0 -159
- package/dist/pi-embedded-DqAXZ5mm.js +0 -40737
- package/dist/pi-embedded.runtime-iAEdo00I.js +0 -4
- package/dist/plugin-install-DEQFx10e.js +0 -230
- package/dist/plugin-install-DHDB8Hzx.js +0 -2
- package/dist/plugin-install-config-policy-BDdJD3iT.js +0 -93
- package/dist/plugin-install-plan-BZZdI1yO.js +0 -50
- package/dist/plugins-cli-BAd9FcxT.js +0 -561
- package/dist/plugins-command-helpers-Dk0PM1PX.js +0 -116
- package/dist/plugins-install-persist-BkAhaAy6.js +0 -121
- package/dist/plugins-update-command-DiW25Zd2.js +0 -974
- package/dist/policy-XlDZLCj4.js +0 -147
- package/dist/preflight-audio-yJWjeb90.js +0 -48
- package/dist/preflight-audio.runtime-D3GENvKf.js +0 -7
- package/dist/prepare-CO_5sieF.js +0 -1301
- package/dist/probe-AKE2K57t.js +0 -2
- package/dist/probe-BleQjCQb.js +0 -349
- package/dist/probe-D4oWGWPA.js +0 -170
- package/dist/probe-DbRh5GfH.js +0 -431
- package/dist/probe-DeM-_2H1.js +0 -1868
- package/dist/probe-Vu5tEHmn.js +0 -179
- package/dist/probe-auth-B7mUVq3_.js +0 -63
- package/dist/probe-auth-DYXfiphF.js +0 -2
- package/dist/profile-update-CD_9Ny7n.js +0 -67
- package/dist/program-CNAbY9e5.js +0 -158
- package/dist/prompt-select-styled-fOd73vu7.js +0 -6434
- package/dist/provider-Bw8a6di1.js +0 -3685
- package/dist/provider-CcnVCgoC.js +0 -18901
- package/dist/provider-DeMffucC.js +0 -70
- package/dist/provider-api-key-auth-Fw0FAT4X.js +0 -109
- package/dist/provider-auth-DmHeOrmp.js +0 -43
- package/dist/provider-auth-api-key-BMp5CIvm.js +0 -5
- package/dist/provider-auth-login-3akLjEuy.js +0 -8
- package/dist/provider-dispatcher-BKgxVhVR.js +0 -22
- package/dist/provider-entry-LpHYNMIM.js +0 -86
- package/dist/provider-session.runtime-CeZtv89j.js +0 -7
- package/dist/provider.runtime-DSgjKir9.js +0 -2
- package/dist/push-apns-DNnB8Sqa.js +0 -921
- package/dist/pw-ai-BTk-_J6-.js +0 -2037
- package/dist/qr-cli-B-CPAJSt.js +0 -367
- package/dist/qr-cli-DGi7sjQx.js +0 -2
- package/dist/qr-image-BRCTbByD.js +0 -2
- package/dist/queue-BBe8S_gc.js +0 -663
- package/dist/reaction-runtime-api-B6L7ZRvx.js +0 -114
- package/dist/reactions-C1l2DC5D.js +0 -258
- package/dist/read-only-account-inspect.telegram-CCLKyaFb.js +0 -202
- package/dist/register.agent-BekNRQwt.js +0 -239
- package/dist/register.configure-CaeuTg-5.js +0 -15
- package/dist/register.maintenance-C0G7qo1l.js +0 -449
- package/dist/register.message-auk274Q5.js +0 -643
- package/dist/register.onboard-qeV-rnU4.js +0 -79
- package/dist/register.setup-D30RCZoW.js +0 -183
- package/dist/register.status-health-sessions-EcDxje-q.js +0 -1206
- package/dist/register.subclis-BPujvPgl.js +0 -3
- package/dist/register.subclis-CfY8YYfB.js +0 -295
- package/dist/replies-CaeWSY0v.js +0 -118
- package/dist/reply-SLI-m69-.js +0 -3192
- package/dist/reply-blocks-BUmPXunU.js +0 -103
- package/dist/reply-dispatch-runtime-DwtcBWPx.js +0 -3
- package/dist/reply-runtime-B4zuDqrP.js +0 -123
- package/dist/reply.runtime-CEAzU7oO.js +0 -2
- package/dist/resolve-allowlist-CbQm_52c.js +0 -147
- package/dist/resolve-targets-WwtDYxLu.js +0 -280
- package/dist/rooms-C8Q97RRP.js +0 -325
- package/dist/route-reply-2LdyaX41.js +0 -133
- package/dist/route-reply.runtime-DOWYVMof.js +0 -2
- package/dist/route-resolution-DIEWYvHg.js +0 -461
- package/dist/routes-C3GBjg-t.js +0 -6884
- package/dist/rpc-BdqM0tp-.js +0 -67
- package/dist/rpc-context-BYbfOCJ7.js +0 -155
- package/dist/run-main-ChL1qCCV.js +0 -425
- package/dist/runner-7fXdAEoe.js +0 -1479
- package/dist/runtime-E2sVG9FR.js +0 -1175
- package/dist/runtime-Phv175JZ.js +0 -68
- package/dist/runtime-api-57_2o4hO.js +0 -29
- package/dist/runtime-api-B1vpMZ-4.js +0 -2
- package/dist/runtime-api-BLq6hBt7.js +0 -2
- package/dist/runtime-api-BX-cbhp7.js +0 -2
- package/dist/runtime-api-BZ4pw-PJ.js +0 -3676
- package/dist/runtime-api-CGPmECzP.js +0 -81
- package/dist/runtime-api-CL3FlPOR.js +0 -2
- package/dist/runtime-api-CX7jY7dM.js +0 -2484
- package/dist/runtime-api-D9mIqRLA.js +0 -3
- package/dist/runtime-api-DGeT4nv5.js +0 -2
- package/dist/runtime-api-Rlo74mSs.js +0 -2
- package/dist/runtime-api-kICPwsJY.js +0 -2
- package/dist/runtime-api-nBext8kz.js +0 -14
- package/dist/runtime-api-xrgALPPO.js +0 -2
- package/dist/runtime-embedded-pi.runtime-DgflfD-s.js +0 -2
- package/dist/runtime-entry-BUcGs63h.js +0 -4925
- package/dist/sandbox-cli-BIXGyQG1.js +0 -443
- package/dist/sdk-C43bGiZI.js +0 -1108
- package/dist/secrets-cli-iVLkh6Qo.js +0 -2112
- package/dist/security-cli-DtU-9aT5.js +0 -477
- package/dist/send-BExy4hgH.js +0 -856
- package/dist/send-BS_-zqqE.js +0 -1076
- package/dist/send-BUdVnd-p.js +0 -318
- package/dist/send-BYURbLFH.js +0 -100
- package/dist/send-ChYzrro1.js +0 -3
- package/dist/send-D09poh88.js +0 -442
- package/dist/send-DRZWOpIw.js +0 -532
- package/dist/send-DvJuIeZw.js +0 -2
- package/dist/send-XxyjRSQS.js +0 -178
- package/dist/send.components-D50Qfcvv.js +0 -2
- package/dist/send.components-V88XA5Ab.js +0 -942
- package/dist/server-2xHufWyv.js +0 -8809
- package/dist/server-C4wYNzd0.js +0 -67
- package/dist/server-cron-D28-k2Qz.js +0 -2
- package/dist/server-cron-j-PvzsZr.js +0 -4173
- package/dist/server-lite-DLerMz6Z.js +0 -4028
- package/dist/server-maintenance-B6Gv8w9Z.js +0 -542
- package/dist/server-maintenance-Bg78ffAt.js +0 -2
- package/dist/server-methods-BW_vo_ge.js +0 -10158
- package/dist/server-methods-RBJciC_v.js +0 -2
- package/dist/server-middleware-aZ0TxvAy.js +0 -108
- package/dist/server-node-events-DQhJ15cB.js +0 -454
- package/dist/server-plugins-C618mqeN.js +0 -284
- package/dist/server-plugins-D6_g6-zX.js +0 -2
- package/dist/server-startup-memory-CapA1qbO.js +0 -2
- package/dist/server-tailscale-CP3CeRG6.js +0 -2
- package/dist/services-BIfzmxJl.js +0 -2
- package/dist/session-Bx07yxdT.js +0 -50
- package/dist/session-archive.runtime-BcuA9ZJR.js +0 -2
- package/dist/session-envelope-DFx8t5js.js +0 -18
- package/dist/session-file-PbVwaPBl.js +0 -120
- package/dist/session-key-Cdo_MCiO.js +0 -52
- package/dist/session-override-CRMkT5KD.js +0 -100
- package/dist/session-reset-model.runtime-CZ5C-Mbj.js +0 -119
- package/dist/session-route-DdXMXWC7.js +0 -91
- package/dist/session-store-runtime-DXBmS5ME.js +0 -2
- package/dist/session-subagent-reactivation.runtime-Dl2BL6Hc.js +0 -2
- package/dist/session-transcript-files.fs-CMVxomus.js +0 -149
- package/dist/session-updates-CNJbjVn7.js +0 -222
- package/dist/session-updates.runtime--vqDI0CB.js +0 -2
- package/dist/session-utils-BJUv7bZE.js +0 -1743
- package/dist/sessions-BIOgxXcy.js +0 -2
- package/dist/sessions-C4ZYot4a.js +0 -224
- package/dist/sessions-CcmCSJC7.js +0 -443
- package/dist/setup-Dmg8-OSB.js +0 -427
- package/dist/setup-api-IocImqEz.js +0 -2
- package/dist/setup-bootstrap-CQ_1z9aC.js +0 -54
- package/dist/setup-core-2puURxPY.js +0 -256
- package/dist/setup-core-Y6iTq0U4.js +0 -146
- package/dist/setup-surface-BLn8RdUz.js +0 -237
- package/dist/setup-surface-BmytW1kl.js +0 -261
- package/dist/setup-surface-BxFYjN33.js +0 -333
- package/dist/setup-surface-CE-sbpM6.js +0 -304
- package/dist/setup-surface-CGJt0028.js +0 -353
- package/dist/setup-surface-CNTSZNaT.js +0 -484
- package/dist/setup-surface-CQ0dKqII.js +0 -272
- package/dist/setup-surface-Cb1u23Qx.js +0 -346
- package/dist/setup-surface-D01-WW_f.js +0 -450
- package/dist/setup-surface-DFrH2fWN.js +0 -261
- package/dist/setup-surface-Df5lqbwF.js +0 -8848
- package/dist/setup-surface-TYb5-CPo.js +0 -656
- package/dist/setup.finalize-BmMtfpXO.js +0 -458
- package/dist/setup.gateway-config-BPdLqlTp.js +0 -247
- package/dist/shared-4v9t5RUY.js +0 -64
- package/dist/shared-B2ubzu9D.js +0 -94
- package/dist/shared-Cn-JNKV6.js +0 -160
- package/dist/shared-CqYi_-SN.js +0 -2
- package/dist/shared-D1XUNk3w.js +0 -72
- package/dist/shared-DbFrG6eg.js +0 -198
- package/dist/shared-n2xHLYx_.js +0 -144
- package/dist/shared-nPpdOmAI.js +0 -180
- package/dist/shared-runtime-40QTn46o.js +0 -7
- package/dist/shared-uxOP0JgB.js +0 -78
- package/dist/skills-install-D5IFfGsA.js +0 -819
- package/dist/slash-commands-Cs1PFfVH.js +0 -672
- package/dist/slash-commands.runtime-KsdVMGNj.js +0 -20
- package/dist/slash-dispatch.runtime-C5a_Ht1Y.js +0 -38
- package/dist/slash-skill-commands.runtime-Dr_VA7p0.js +0 -8
- package/dist/speech-provider-Cz5y2dj-.js +0 -190
- package/dist/src-J-RVwbS_.js +0 -2739
- package/dist/startup-verification-BOGCdeSQ.js +0 -131
- package/dist/state-migrations-_XDtJkPE.js +0 -845
- package/dist/status-Bi6L2m3P.js +0 -3
- package/dist/status-ByZ1fdT8.js +0 -608
- package/dist/status-CwU7xDRN.js +0 -650
- package/dist/status-Dpz58W1F.js +0 -2
- package/dist/status-all-DCjisFdf.js +0 -798
- package/dist/status-issues-Cwg9Pkg5.js +0 -336
- package/dist/status-issues-QG73TAMx.js +0 -187
- package/dist/status-json-ZZOAmlR2.js +0 -86
- package/dist/status.command.text-runtime-NPU09cbA.js +0 -18
- package/dist/status.gateway-probe-Bfdax1lP.js +0 -15
- package/dist/status.scan-DWdTfCfj.js +0 -264
- package/dist/status.scan.fast-json-B27pd03e.js +0 -2
- package/dist/status.scan.fast-json-BjeshYm5.js +0 -97
- package/dist/status.scan.json-core-59qf9kwk.js +0 -254
- package/dist/status.summary-9aorJ-Ol.js +0 -2
- package/dist/status.summary-Cr5t28tM.js +0 -210
- package/dist/sticker-cache-Bli6c_DZ.js +0 -1573
- package/dist/sticker-vision.runtime-CnJsHup9.js +0 -16
- package/dist/storage-04ybZWLH.js +0 -234
- package/dist/store-tJKTsDI2.js +0 -1343
- package/dist/store.runtime-Dy4jx7GN.js +0 -2
- package/dist/stream-BD-DIe2U.js +0 -633
- package/dist/subagent-orphan-recovery-qJNs-qtl.js +0 -206
- package/dist/subagent-registry-runtime-DrIC_8RV.js +0 -2
- package/dist/system-cli-DFYYy_gE.js +0 -58
- package/dist/targets-BPr74A1B.js +0 -748
- package/dist/task-registry-delivery-runtime-D1uhY4Pl.js +0 -2
- package/dist/task-registry.audit-B7fmnXhg.js +0 -320
- package/dist/task-registry.maintenance-DokrYiDW.js +0 -2
- package/dist/test-api-CbDyUFfi.js +0 -47
- package/dist/testing-IYfu9Htg.js +0 -677
- package/dist/thread-bindings-B8nhOfmX.js +0 -219
- package/dist/thread-bindings-CDcefNck.js +0 -534
- package/dist/thread-bindings-CPDnj65K.js +0 -778
- package/dist/thread-bindings-rEHzo2Iu.js +0 -352
- package/dist/thread-bindings.discord-api-D16Nnw-3.js +0 -487
- package/dist/threading-Bpkg8c6J.js +0 -2
- package/dist/threading-Ci2vGn9I.js +0 -832
- package/dist/threading-tool-context-b6x-e9kC.js +0 -157
- package/dist/token-DCJS_5G7.js +0 -82
- package/dist/tool-actions.runtime-DNdxx_aa.js +0 -532
- package/dist/tools-effective-inventory--oTDOeLY.js +0 -148
- package/dist/tui-CoZzFgeH.js +0 -3900
- package/dist/tui-cli-D9_wj5C_.js +0 -31
- package/dist/ui-aHe6CA8g.js +0 -212
- package/dist/update-cli-Bzch-i9l.js +0 -1447
- package/dist/update-oUnqP9KL.js +0 -1253
- package/dist/update-runner-NZCKF0lA.js +0 -1195
- package/dist/verification-DKGhirlb.js +0 -2
- package/dist/verification-iTi4uH9J.js +0 -130
- package/dist/with-timeout-BqND1a0B.js +0 -214
- package/dist/x-search-CrX_TVbx.js +0 -166
- package/dist/zalo-T-o8XTHe.js +0 -13
- package/dist/zalo-js-Bu8D6Alf.js +0 -1156
- package/dist/zalouser-DEcTHZHs.js +0 -22
- /package/dist/{apply.runtime-CJZLpvHz.js → apply.runtime-Co_6Ywti.js} +0 -0
- /package/dist/{audit-channel.allow-from.runtime-C5xk2VOm.js → audit-channel.allow-from.runtime-yi4awTB_.js} +0 -0
- /package/dist/{audit-channel.discord.runtime-BqTSk8Zj.js → audit-channel.discord.runtime-sdiArSyU.js} +0 -0
- /package/dist/{audit-channel.zalouser.runtime-BcXb9dqA.js → audit-channel.zalouser.runtime-C9JP2yL0.js} +0 -0
- /package/dist/{gaxios-fetch-compat-CbbP1nvr.js → gaxios-fetch-compat-DIfuXXfA.js} +0 -0
- /package/dist/{gmail-watcher-lifecycle-5rwOjWDp.js → gmail-watcher-lifecycle-Tnc1uwFk.js} +0 -0
- /package/dist/{install-target-B3gpsf1T.js → install-target-BwF9y7os.js} +0 -0
- /package/dist/{loader-Y99q6pI6.js → loader-5pI3plAf.js} +0 -0
- /package/dist/{plugin-error-boundary-BIXbGSKh.js → plugin-error-boundary-9CHX3Bj4.js} +0 -0
- /package/dist/{plugin-health-checker-DbVLGGdj.js → plugin-health-checker-BZNKdZh7.js} +0 -0
- /package/dist/{plugin-hot-reload-DO6sOYe_.js → plugin-hot-reload-ssQGmU3Q.js} +0 -0
- /package/dist/{provider-api-key-auth.runtime-Bgs1hQQQ.js → provider-api-key-auth.runtime-BZG8I2v0.js} +0 -0
- /package/dist/{provider-auth-login.runtime-DP_0kKxK.js → provider-auth-login.runtime-0i8Ys6wG.js} +0 -0
- /package/dist/{provider-discovery.runtime-uhjzfprv.js → provider-discovery.runtime-CtptkjB1.js} +0 -0
- /package/dist/{runtime-discord-ops.runtime-Bpl5oCql.js → runtime-discord-ops.runtime-BzZPrJSi.js} +0 -0
- /package/dist/{runtime-media-understanding.runtime-HT2bsGQv.js → runtime-media-understanding.runtime-BBbKJ-a2.js} +0 -0
- /package/dist/{runtime-model-auth.runtime-CwDR-B5r.js → runtime-model-auth.runtime-BI1NsMxx.js} +0 -0
- /package/dist/{runtime-slack-ops.runtime-DHxpumcz.js → runtime-slack-ops.runtime-DOeL5J3r.js} +0 -0
- /package/dist/{runtime-tts.runtime-BAKvmrko.js → runtime-tts.runtime-Cw-9hUtx.js} +0 -0
- /package/dist/{server-startup-memory-2EC8bYGc.js → server-startup-memory-DkWRgVcY.js} +0 -0
- /package/dist/{server-tailscale-D8ey_XJs.js → server-tailscale-cMblnVux.js} +0 -0
- /package/dist/{services-Dvy72m2p.js → services-BQA-hLu3.js} +0 -0
- /package/dist/{skill-scanner-ChASG-d_.js → skill-scanner-CXyUvrKV.js} +0 -0
- /package/dist/{ssh-config-CBDc82lw.js → ssh-config-Bc3Mh2Av.js} +0 -0
- /package/dist/{supervisor-log.runtime-uVySODfS.js → supervisor-log.runtime-CWi0noHW.js} +0 -0
- /package/dist/{tts.runtime-Bh_kbBUm.js → tts.runtime-DXT4EYXb.js} +0 -0
|
@@ -0,0 +1,1206 @@
|
|
|
1
|
+
import { r as setVerbose } from "./global-state-DUuMGgts.js";
|
|
2
|
+
import { n as defaultRuntime, r as writeRuntimeJson } from "./runtime-kS8e4c6-.js";
|
|
3
|
+
import { t as formatDocsLink } from "./links-D7o22Ygt.js";
|
|
4
|
+
import { n as isRich, r as theme } from "./theme-wBMZmJzz.js";
|
|
5
|
+
import { n as info } from "./globals-CDtV0ht8.js";
|
|
6
|
+
import { c as loadConfig } from "./io-DrDrxu_9.js";
|
|
7
|
+
import { t as sanitizeTerminalText } from "./safe-text-DhIQbZid.js";
|
|
8
|
+
import "./config-CI5mPIIt.js";
|
|
9
|
+
import { d as updateSessionStore, g as enforceSessionDiskBudget, h as resolveMaintenanceConfig, i as loadSessionStore, m as pruneStaleEntries, p as capEntryCount } from "./store-CoM_1E9z.js";
|
|
10
|
+
import "./sessions-DkDvF2NY.js";
|
|
11
|
+
import { i as resolveSessionFilePathOptions, r as resolveSessionFilePath } from "./paths-xpks599B.js";
|
|
12
|
+
import { Gt as getTaskById, Ht as cancelTaskById, It as getFlowTaskSummary, Qt as updateTaskNotifyPolicyById, an as listTaskFlowRecords, en as deleteTaskFlowRecordById, in as getTaskFlowRegistryRestoreFailure, jt as cancelFlowById, qt as listTasksForFlowId, rn as getTaskFlowById, sn as resolveTaskFlowForLookupToken, un as updateFlowRecordByIdExpectedRevision } from "./pi-embedded--FMyE2xG.js";
|
|
13
|
+
import { n as summarizeTaskRecords } from "./task-registry.summary-Bz8YePUh.js";
|
|
14
|
+
import { n as runCommandWithRuntime } from "./cli-utils-C74WP4NL.js";
|
|
15
|
+
import { t as formatHelpExamples } from "./help-format-xfCRmgrW.js";
|
|
16
|
+
import { n as parsePositiveIntOrUndefined } from "./helpers-oGtX-4Ym.js";
|
|
17
|
+
import { r as healthCommand } from "./health-5XdT5wrx.js";
|
|
18
|
+
import { a as formatSessionModelCell, c as toSessionDisplayRows, i as formatSessionKeyCell, l as resolveSessionStoreTargetsOrExit, n as formatSessionAgeCell, o as resolveSessionDisplayDefaults, r as formatSessionFlagsCell, s as resolveSessionDisplayModel, t as sessionsCommand } from "./sessions-BjJZXiKF.js";
|
|
19
|
+
import { t as statusCommand } from "./status-Dc_cBWaT.js";
|
|
20
|
+
import { c as reconcileTaskLookupToken, i as getInspectableTaskRegistrySummary, n as summarizeTaskAuditFindings, o as previewTaskRegistryMaintenance, r as getInspectableTaskAuditSummary, s as reconcileInspectableTasks, t as listTaskAuditFindings, u as runTaskRegistryMaintenance } from "./task-registry.audit-DKeA5n0-.js";
|
|
21
|
+
import fsSync from "node:fs";
|
|
22
|
+
//#region src/commands/flows.ts
|
|
23
|
+
const ID_PAD$1 = 10;
|
|
24
|
+
const STATUS_PAD$1 = 10;
|
|
25
|
+
const MODE_PAD = 14;
|
|
26
|
+
const REV_PAD = 6;
|
|
27
|
+
const CTRL_PAD = 20;
|
|
28
|
+
function truncate$1(value, maxChars) {
|
|
29
|
+
if (value.length <= maxChars) return value;
|
|
30
|
+
if (maxChars <= 1) return value.slice(0, maxChars);
|
|
31
|
+
return `${value.slice(0, maxChars - 1)}…`;
|
|
32
|
+
}
|
|
33
|
+
function safeFlowDisplayText(value, maxChars) {
|
|
34
|
+
const sanitized = sanitizeTerminalText(value ?? "").trim();
|
|
35
|
+
if (!sanitized) return "n/a";
|
|
36
|
+
return typeof maxChars === "number" ? truncate$1(sanitized, maxChars) : sanitized;
|
|
37
|
+
}
|
|
38
|
+
function shortToken$1(value, maxChars = ID_PAD$1) {
|
|
39
|
+
const trimmed = value?.trim();
|
|
40
|
+
if (!trimmed) return "n/a";
|
|
41
|
+
return truncate$1(trimmed, maxChars);
|
|
42
|
+
}
|
|
43
|
+
function formatFlowStatusCell(status, rich) {
|
|
44
|
+
const padded = status.padEnd(STATUS_PAD$1);
|
|
45
|
+
if (!rich) return padded;
|
|
46
|
+
if (status === "succeeded") return theme.success(padded);
|
|
47
|
+
if (status === "failed" || status === "lost") return theme.error(padded);
|
|
48
|
+
if (status === "running") return theme.accentBright(padded);
|
|
49
|
+
if (status === "blocked") return theme.warn(padded);
|
|
50
|
+
return theme.muted(padded);
|
|
51
|
+
}
|
|
52
|
+
function formatFlowRows(flows, rich) {
|
|
53
|
+
const header = [
|
|
54
|
+
"TaskFlow".padEnd(ID_PAD$1),
|
|
55
|
+
"Mode".padEnd(MODE_PAD),
|
|
56
|
+
"Status".padEnd(STATUS_PAD$1),
|
|
57
|
+
"Rev".padEnd(REV_PAD),
|
|
58
|
+
"Controller".padEnd(CTRL_PAD),
|
|
59
|
+
"Tasks".padEnd(14),
|
|
60
|
+
"Goal"
|
|
61
|
+
].join(" ");
|
|
62
|
+
const lines = [rich ? theme.heading(header) : header];
|
|
63
|
+
for (const flow of flows) {
|
|
64
|
+
const taskSummary = getFlowTaskSummary(flow.flowId);
|
|
65
|
+
const counts = `${taskSummary.active} active/${taskSummary.total} total`;
|
|
66
|
+
lines.push([
|
|
67
|
+
shortToken$1(flow.flowId).padEnd(ID_PAD$1),
|
|
68
|
+
flow.syncMode.padEnd(MODE_PAD),
|
|
69
|
+
formatFlowStatusCell(flow.status, rich),
|
|
70
|
+
String(flow.revision).padEnd(REV_PAD),
|
|
71
|
+
safeFlowDisplayText(flow.controllerId, CTRL_PAD).padEnd(CTRL_PAD),
|
|
72
|
+
counts.padEnd(14),
|
|
73
|
+
safeFlowDisplayText(flow.goal, 80)
|
|
74
|
+
].join(" "));
|
|
75
|
+
}
|
|
76
|
+
return lines;
|
|
77
|
+
}
|
|
78
|
+
function formatFlowListSummary(flows) {
|
|
79
|
+
return `${flows.filter((flow) => flow.status === "queued" || flow.status === "running").length} active · ${flows.filter((flow) => flow.status === "blocked").length} blocked · ${flows.filter((flow) => flow.cancelRequestedAt != null).length} cancel-requested · ${flows.length} total`;
|
|
80
|
+
}
|
|
81
|
+
function summarizeWait(flow) {
|
|
82
|
+
if (flow.waitJson == null) return "n/a";
|
|
83
|
+
if (typeof flow.waitJson === "string" || typeof flow.waitJson === "number" || typeof flow.waitJson === "boolean") return String(flow.waitJson);
|
|
84
|
+
if (Array.isArray(flow.waitJson)) return `array(${flow.waitJson.length})`;
|
|
85
|
+
return Object.keys(flow.waitJson).toSorted().join(", ") || "object";
|
|
86
|
+
}
|
|
87
|
+
function summarizeFlowState(flow) {
|
|
88
|
+
if (flow.status === "blocked") {
|
|
89
|
+
if (flow.blockedSummary) return flow.blockedSummary;
|
|
90
|
+
if (flow.blockedTaskId) return `blocked by ${flow.blockedTaskId}`;
|
|
91
|
+
return "blocked";
|
|
92
|
+
}
|
|
93
|
+
if (flow.status === "waiting" && flow.waitJson != null) return summarizeWait(flow);
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
async function flowsListCommand(opts, runtime) {
|
|
97
|
+
const statusFilter = opts.status?.trim();
|
|
98
|
+
const flows = listTaskFlowRecords().filter((flow) => {
|
|
99
|
+
if (statusFilter && flow.status !== statusFilter) return false;
|
|
100
|
+
return true;
|
|
101
|
+
});
|
|
102
|
+
if (opts.json) {
|
|
103
|
+
runtime.log(JSON.stringify({
|
|
104
|
+
count: flows.length,
|
|
105
|
+
status: statusFilter ?? null,
|
|
106
|
+
flows: flows.map((flow) => ({
|
|
107
|
+
...flow,
|
|
108
|
+
tasks: listTasksForFlowId(flow.flowId),
|
|
109
|
+
taskSummary: getFlowTaskSummary(flow.flowId)
|
|
110
|
+
}))
|
|
111
|
+
}, null, 2));
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
runtime.log(info(`TaskFlows: ${flows.length}`));
|
|
115
|
+
runtime.log(info(`TaskFlow pressure: ${formatFlowListSummary(flows)}`));
|
|
116
|
+
if (statusFilter) runtime.log(info(`Status filter: ${statusFilter}`));
|
|
117
|
+
if (flows.length === 0) {
|
|
118
|
+
runtime.log("No TaskFlows found.");
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const rich = isRich();
|
|
122
|
+
for (const line of formatFlowRows(flows, rich)) runtime.log(line);
|
|
123
|
+
}
|
|
124
|
+
async function flowsShowCommand(opts, runtime) {
|
|
125
|
+
const flow = resolveTaskFlowForLookupToken(opts.lookup);
|
|
126
|
+
if (!flow) {
|
|
127
|
+
runtime.error(`TaskFlow not found: ${opts.lookup}`);
|
|
128
|
+
runtime.exit(1);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const tasks = listTasksForFlowId(flow.flowId);
|
|
132
|
+
const taskSummary = getFlowTaskSummary(flow.flowId);
|
|
133
|
+
const stateSummary = summarizeFlowState(flow);
|
|
134
|
+
if (opts.json) {
|
|
135
|
+
runtime.log(JSON.stringify({
|
|
136
|
+
...flow,
|
|
137
|
+
tasks,
|
|
138
|
+
taskSummary
|
|
139
|
+
}, null, 2));
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const lines = [
|
|
143
|
+
"TaskFlow:",
|
|
144
|
+
`flowId: ${flow.flowId}`,
|
|
145
|
+
`status: ${flow.status}`,
|
|
146
|
+
`goal: ${safeFlowDisplayText(flow.goal)}`,
|
|
147
|
+
`currentStep: ${safeFlowDisplayText(flow.currentStep)}`,
|
|
148
|
+
`owner: ${safeFlowDisplayText(flow.ownerKey)}`,
|
|
149
|
+
`notify: ${flow.notifyPolicy}`,
|
|
150
|
+
...stateSummary ? [`state: ${safeFlowDisplayText(stateSummary)}`] : [],
|
|
151
|
+
...flow.cancelRequestedAt ? [`cancelRequestedAt: ${new Date(flow.cancelRequestedAt).toISOString()}`] : [],
|
|
152
|
+
`createdAt: ${new Date(flow.createdAt).toISOString()}`,
|
|
153
|
+
`updatedAt: ${new Date(flow.updatedAt).toISOString()}`,
|
|
154
|
+
`endedAt: ${flow.endedAt ? new Date(flow.endedAt).toISOString() : "n/a"}`,
|
|
155
|
+
`tasks: ${taskSummary.total} total · ${taskSummary.active} active · ${taskSummary.failures} issues`
|
|
156
|
+
];
|
|
157
|
+
for (const line of lines) runtime.log(line);
|
|
158
|
+
if (tasks.length === 0) {
|
|
159
|
+
runtime.log("Linked tasks: none");
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
runtime.log("Linked tasks:");
|
|
163
|
+
for (const task of tasks) {
|
|
164
|
+
const safeLabel = safeFlowDisplayText(task.label ?? task.task);
|
|
165
|
+
runtime.log(`- ${task.taskId} ${task.status} ${task.runId ?? "n/a"} ${safeLabel}`);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
async function flowsCancelCommand(opts, runtime) {
|
|
169
|
+
const flow = resolveTaskFlowForLookupToken(opts.lookup);
|
|
170
|
+
if (!flow) {
|
|
171
|
+
runtime.error(`Flow not found: ${opts.lookup}`);
|
|
172
|
+
runtime.exit(1);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const result = await cancelFlowById({
|
|
176
|
+
cfg: loadConfig(),
|
|
177
|
+
flowId: flow.flowId
|
|
178
|
+
});
|
|
179
|
+
if (!result.found) {
|
|
180
|
+
runtime.error(result.reason ?? `Flow not found: ${opts.lookup}`);
|
|
181
|
+
runtime.exit(1);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (!result.cancelled) {
|
|
185
|
+
runtime.error(result.reason ?? `Could not cancel TaskFlow: ${opts.lookup}`);
|
|
186
|
+
runtime.exit(1);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const updated = getTaskFlowById(flow.flowId) ?? result.flow ?? flow;
|
|
190
|
+
runtime.log(`Cancelled ${updated.flowId} (${updated.syncMode}) with status ${updated.status}.`);
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/commands/sessions-cleanup.ts
|
|
194
|
+
const ACTION_PAD = 12;
|
|
195
|
+
function resolveSessionCleanupAction(params) {
|
|
196
|
+
if (params.missingKeys.has(params.key)) return "prune-missing";
|
|
197
|
+
if (params.staleKeys.has(params.key)) return "prune-stale";
|
|
198
|
+
if (params.cappedKeys.has(params.key)) return "cap-overflow";
|
|
199
|
+
if (params.budgetEvictedKeys.has(params.key)) return "evict-budget";
|
|
200
|
+
return "keep";
|
|
201
|
+
}
|
|
202
|
+
function formatCleanupActionCell(action, rich) {
|
|
203
|
+
const label = action.padEnd(ACTION_PAD);
|
|
204
|
+
if (!rich) return label;
|
|
205
|
+
if (action === "keep") return theme.muted(label);
|
|
206
|
+
if (action === "prune-missing") return theme.error(label);
|
|
207
|
+
if (action === "prune-stale") return theme.warn(label);
|
|
208
|
+
if (action === "cap-overflow") return theme.accentBright(label);
|
|
209
|
+
return theme.error(label);
|
|
210
|
+
}
|
|
211
|
+
function buildActionRows(params) {
|
|
212
|
+
return toSessionDisplayRows(params.beforeStore).map((row) => ({
|
|
213
|
+
...row,
|
|
214
|
+
action: resolveSessionCleanupAction({
|
|
215
|
+
key: row.key,
|
|
216
|
+
missingKeys: params.missingKeys,
|
|
217
|
+
staleKeys: params.staleKeys,
|
|
218
|
+
cappedKeys: params.cappedKeys,
|
|
219
|
+
budgetEvictedKeys: params.budgetEvictedKeys
|
|
220
|
+
})
|
|
221
|
+
}));
|
|
222
|
+
}
|
|
223
|
+
function pruneMissingTranscriptEntries(params) {
|
|
224
|
+
const sessionPathOpts = resolveSessionFilePathOptions({ storePath: params.storePath });
|
|
225
|
+
let removed = 0;
|
|
226
|
+
for (const [key, entry] of Object.entries(params.store)) {
|
|
227
|
+
if (!entry?.sessionId) continue;
|
|
228
|
+
const transcriptPath = resolveSessionFilePath(entry.sessionId, entry, sessionPathOpts);
|
|
229
|
+
if (!fsSync.existsSync(transcriptPath)) {
|
|
230
|
+
delete params.store[key];
|
|
231
|
+
removed += 1;
|
|
232
|
+
params.onPruned?.(key);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return removed;
|
|
236
|
+
}
|
|
237
|
+
async function previewStoreCleanup(params) {
|
|
238
|
+
const maintenance = resolveMaintenanceConfig();
|
|
239
|
+
const beforeStore = loadSessionStore(params.target.storePath, { skipCache: true });
|
|
240
|
+
const previewStore = structuredClone(beforeStore);
|
|
241
|
+
const staleKeys = /* @__PURE__ */ new Set();
|
|
242
|
+
const cappedKeys = /* @__PURE__ */ new Set();
|
|
243
|
+
const missingKeys = /* @__PURE__ */ new Set();
|
|
244
|
+
const missing = params.fixMissing === true ? pruneMissingTranscriptEntries({
|
|
245
|
+
store: previewStore,
|
|
246
|
+
storePath: params.target.storePath,
|
|
247
|
+
onPruned: (key) => {
|
|
248
|
+
missingKeys.add(key);
|
|
249
|
+
}
|
|
250
|
+
}) : 0;
|
|
251
|
+
const pruned = pruneStaleEntries(previewStore, maintenance.pruneAfterMs, {
|
|
252
|
+
log: false,
|
|
253
|
+
onPruned: ({ key }) => {
|
|
254
|
+
staleKeys.add(key);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
const capped = capEntryCount(previewStore, maintenance.maxEntries, {
|
|
258
|
+
log: false,
|
|
259
|
+
onCapped: ({ key }) => {
|
|
260
|
+
cappedKeys.add(key);
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
const beforeBudgetStore = structuredClone(previewStore);
|
|
264
|
+
const diskBudget = await enforceSessionDiskBudget({
|
|
265
|
+
store: previewStore,
|
|
266
|
+
storePath: params.target.storePath,
|
|
267
|
+
activeSessionKey: params.activeKey,
|
|
268
|
+
maintenance,
|
|
269
|
+
warnOnly: false,
|
|
270
|
+
dryRun: true
|
|
271
|
+
});
|
|
272
|
+
const budgetEvictedKeys = /* @__PURE__ */ new Set();
|
|
273
|
+
for (const key of Object.keys(beforeBudgetStore)) if (!Object.hasOwn(previewStore, key)) budgetEvictedKeys.add(key);
|
|
274
|
+
const beforeCount = Object.keys(beforeStore).length;
|
|
275
|
+
const afterPreviewCount = Object.keys(previewStore).length;
|
|
276
|
+
const wouldMutate = missing > 0 || pruned > 0 || capped > 0 || Boolean((diskBudget?.removedEntries ?? 0) > 0 || (diskBudget?.removedFiles ?? 0) > 0);
|
|
277
|
+
return {
|
|
278
|
+
summary: {
|
|
279
|
+
agentId: params.target.agentId,
|
|
280
|
+
storePath: params.target.storePath,
|
|
281
|
+
mode: params.mode,
|
|
282
|
+
dryRun: params.dryRun,
|
|
283
|
+
beforeCount,
|
|
284
|
+
afterCount: afterPreviewCount,
|
|
285
|
+
missing,
|
|
286
|
+
pruned,
|
|
287
|
+
capped,
|
|
288
|
+
diskBudget,
|
|
289
|
+
wouldMutate
|
|
290
|
+
},
|
|
291
|
+
actionRows: buildActionRows({
|
|
292
|
+
beforeStore,
|
|
293
|
+
staleKeys,
|
|
294
|
+
cappedKeys,
|
|
295
|
+
budgetEvictedKeys,
|
|
296
|
+
missingKeys
|
|
297
|
+
})
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
function renderStoreDryRunPlan(params) {
|
|
301
|
+
const rich = isRich();
|
|
302
|
+
if (params.showAgentHeader) params.runtime.log(`Agent: ${params.summary.agentId}`);
|
|
303
|
+
params.runtime.log(`Session store: ${params.summary.storePath}`);
|
|
304
|
+
params.runtime.log(`Maintenance mode: ${params.summary.mode}`);
|
|
305
|
+
params.runtime.log(`Entries: ${params.summary.beforeCount} -> ${params.summary.afterCount} (remove ${params.summary.beforeCount - params.summary.afterCount})`);
|
|
306
|
+
params.runtime.log(`Would prune missing transcripts: ${params.summary.missing}`);
|
|
307
|
+
params.runtime.log(`Would prune stale: ${params.summary.pruned}`);
|
|
308
|
+
params.runtime.log(`Would cap overflow: ${params.summary.capped}`);
|
|
309
|
+
if (params.summary.diskBudget) params.runtime.log(`Would enforce disk budget: ${params.summary.diskBudget.totalBytesBefore} -> ${params.summary.diskBudget.totalBytesAfter} bytes (files ${params.summary.diskBudget.removedFiles}, entries ${params.summary.diskBudget.removedEntries})`);
|
|
310
|
+
if (params.actionRows.length === 0) return;
|
|
311
|
+
params.runtime.log("");
|
|
312
|
+
params.runtime.log("Planned session actions:");
|
|
313
|
+
const header = [
|
|
314
|
+
"Action".padEnd(ACTION_PAD),
|
|
315
|
+
"Key".padEnd(26),
|
|
316
|
+
"Age".padEnd(9),
|
|
317
|
+
"Model".padEnd(14),
|
|
318
|
+
"Flags"
|
|
319
|
+
].join(" ");
|
|
320
|
+
params.runtime.log(rich ? theme.heading(header) : header);
|
|
321
|
+
for (const actionRow of params.actionRows) {
|
|
322
|
+
const model = resolveSessionDisplayModel(params.cfg, actionRow, params.displayDefaults);
|
|
323
|
+
const line = [
|
|
324
|
+
formatCleanupActionCell(actionRow.action, rich),
|
|
325
|
+
formatSessionKeyCell(actionRow.key, rich),
|
|
326
|
+
formatSessionAgeCell(actionRow.updatedAt, rich),
|
|
327
|
+
formatSessionModelCell(model, rich),
|
|
328
|
+
formatSessionFlagsCell(actionRow, rich)
|
|
329
|
+
].join(" ");
|
|
330
|
+
params.runtime.log(line.trimEnd());
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
async function sessionsCleanupCommand(opts, runtime) {
|
|
334
|
+
const cfg = loadConfig();
|
|
335
|
+
const displayDefaults = resolveSessionDisplayDefaults(cfg);
|
|
336
|
+
const mode = opts.enforce ? "enforce" : resolveMaintenanceConfig().mode;
|
|
337
|
+
const targets = resolveSessionStoreTargetsOrExit({
|
|
338
|
+
cfg,
|
|
339
|
+
opts: {
|
|
340
|
+
store: opts.store,
|
|
341
|
+
agent: opts.agent,
|
|
342
|
+
allAgents: opts.allAgents
|
|
343
|
+
},
|
|
344
|
+
runtime
|
|
345
|
+
});
|
|
346
|
+
if (!targets) return;
|
|
347
|
+
const previewResults = [];
|
|
348
|
+
for (const target of targets) {
|
|
349
|
+
const result = await previewStoreCleanup({
|
|
350
|
+
target,
|
|
351
|
+
mode,
|
|
352
|
+
dryRun: Boolean(opts.dryRun),
|
|
353
|
+
activeKey: opts.activeKey,
|
|
354
|
+
fixMissing: Boolean(opts.fixMissing)
|
|
355
|
+
});
|
|
356
|
+
previewResults.push(result);
|
|
357
|
+
}
|
|
358
|
+
if (opts.dryRun) {
|
|
359
|
+
if (opts.json) {
|
|
360
|
+
if (previewResults.length === 1) {
|
|
361
|
+
writeRuntimeJson(runtime, previewResults[0]?.summary ?? {});
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
writeRuntimeJson(runtime, {
|
|
365
|
+
allAgents: true,
|
|
366
|
+
mode,
|
|
367
|
+
dryRun: true,
|
|
368
|
+
stores: previewResults.map((result) => result.summary)
|
|
369
|
+
});
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
for (let i = 0; i < previewResults.length; i += 1) {
|
|
373
|
+
const result = previewResults[i];
|
|
374
|
+
if (i > 0) runtime.log("");
|
|
375
|
+
renderStoreDryRunPlan({
|
|
376
|
+
cfg,
|
|
377
|
+
summary: result.summary,
|
|
378
|
+
actionRows: result.actionRows,
|
|
379
|
+
displayDefaults,
|
|
380
|
+
runtime,
|
|
381
|
+
showAgentHeader: previewResults.length > 1
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
const appliedSummaries = [];
|
|
387
|
+
for (const target of targets) {
|
|
388
|
+
const appliedReportRef = { current: null };
|
|
389
|
+
const missingApplied = await updateSessionStore(target.storePath, async (store) => {
|
|
390
|
+
if (!opts.fixMissing) return 0;
|
|
391
|
+
return pruneMissingTranscriptEntries({
|
|
392
|
+
store,
|
|
393
|
+
storePath: target.storePath
|
|
394
|
+
});
|
|
395
|
+
}, {
|
|
396
|
+
activeSessionKey: opts.activeKey,
|
|
397
|
+
maintenanceOverride: { mode },
|
|
398
|
+
onMaintenanceApplied: (report) => {
|
|
399
|
+
appliedReportRef.current = report;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
const afterStore = loadSessionStore(target.storePath, { skipCache: true });
|
|
403
|
+
const preview = previewResults.find((result) => result.summary.storePath === target.storePath);
|
|
404
|
+
const appliedReport = appliedReportRef.current;
|
|
405
|
+
const summary = appliedReport === null ? {
|
|
406
|
+
...preview?.summary ?? {
|
|
407
|
+
agentId: target.agentId,
|
|
408
|
+
storePath: target.storePath,
|
|
409
|
+
mode,
|
|
410
|
+
dryRun: false,
|
|
411
|
+
beforeCount: 0,
|
|
412
|
+
afterCount: 0,
|
|
413
|
+
missing: 0,
|
|
414
|
+
pruned: 0,
|
|
415
|
+
capped: 0,
|
|
416
|
+
diskBudget: null,
|
|
417
|
+
wouldMutate: false
|
|
418
|
+
},
|
|
419
|
+
dryRun: false,
|
|
420
|
+
applied: true,
|
|
421
|
+
appliedCount: Object.keys(afterStore).length
|
|
422
|
+
} : {
|
|
423
|
+
agentId: target.agentId,
|
|
424
|
+
storePath: target.storePath,
|
|
425
|
+
mode: appliedReport.mode,
|
|
426
|
+
dryRun: false,
|
|
427
|
+
beforeCount: appliedReport.beforeCount,
|
|
428
|
+
afterCount: appliedReport.afterCount,
|
|
429
|
+
missing: missingApplied,
|
|
430
|
+
pruned: appliedReport.pruned,
|
|
431
|
+
capped: appliedReport.capped,
|
|
432
|
+
diskBudget: appliedReport.diskBudget,
|
|
433
|
+
wouldMutate: missingApplied > 0 || appliedReport.pruned > 0 || appliedReport.capped > 0 || Boolean((appliedReport.diskBudget?.removedEntries ?? 0) > 0 || (appliedReport.diskBudget?.removedFiles ?? 0) > 0),
|
|
434
|
+
applied: true,
|
|
435
|
+
appliedCount: Object.keys(afterStore).length
|
|
436
|
+
};
|
|
437
|
+
appliedSummaries.push(summary);
|
|
438
|
+
}
|
|
439
|
+
if (opts.json) {
|
|
440
|
+
if (appliedSummaries.length === 1) {
|
|
441
|
+
writeRuntimeJson(runtime, appliedSummaries[0] ?? {});
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
writeRuntimeJson(runtime, {
|
|
445
|
+
allAgents: true,
|
|
446
|
+
mode,
|
|
447
|
+
dryRun: false,
|
|
448
|
+
stores: appliedSummaries
|
|
449
|
+
});
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
for (let i = 0; i < appliedSummaries.length; i += 1) {
|
|
453
|
+
const summary = appliedSummaries[i];
|
|
454
|
+
if (i > 0) runtime.log("");
|
|
455
|
+
if (appliedSummaries.length > 1) runtime.log(`Agent: ${summary.agentId}`);
|
|
456
|
+
runtime.log(`Session store: ${summary.storePath}`);
|
|
457
|
+
runtime.log(`Applied maintenance. Current entries: ${summary.appliedCount ?? 0}`);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/tasks/task-flow-registry.audit.ts
|
|
462
|
+
const DEFAULT_STALE_RUNNING_MS = 30 * 6e4;
|
|
463
|
+
const DEFAULT_STALE_WAITING_MS = 30 * 6e4;
|
|
464
|
+
const DEFAULT_STALE_BLOCKED_MS = 30 * 6e4;
|
|
465
|
+
const DEFAULT_CANCEL_STUCK_MS = 5 * 6e4;
|
|
466
|
+
function createFinding(params) {
|
|
467
|
+
return {
|
|
468
|
+
severity: params.severity,
|
|
469
|
+
code: params.code,
|
|
470
|
+
detail: params.detail,
|
|
471
|
+
...typeof params.ageMs === "number" ? { ageMs: params.ageMs } : {},
|
|
472
|
+
...params.flow ? { flow: params.flow } : {}
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function severityRank(severity) {
|
|
476
|
+
return severity === "error" ? 0 : 1;
|
|
477
|
+
}
|
|
478
|
+
function compareFindings(left, right) {
|
|
479
|
+
const severityDiff = severityRank(left.severity) - severityRank(right.severity);
|
|
480
|
+
if (severityDiff !== 0) return severityDiff;
|
|
481
|
+
const leftAge = left.ageMs ?? -1;
|
|
482
|
+
const rightAge = right.ageMs ?? -1;
|
|
483
|
+
if (leftAge !== rightAge) return rightAge - leftAge;
|
|
484
|
+
return (left.flow?.createdAt ?? 0) - (right.flow?.createdAt ?? 0);
|
|
485
|
+
}
|
|
486
|
+
function getReferenceAt(flow) {
|
|
487
|
+
return flow.updatedAt ?? flow.createdAt;
|
|
488
|
+
}
|
|
489
|
+
function getLinkedTasks(flowId) {
|
|
490
|
+
return listTasksForFlowId(flowId);
|
|
491
|
+
}
|
|
492
|
+
function hasBlockingMetadata(flow) {
|
|
493
|
+
return Boolean(flow.blockedTaskId?.trim() || flow.blockedSummary?.trim() || flow.waitJson != null);
|
|
494
|
+
}
|
|
495
|
+
function findTimestampInconsistency(flow) {
|
|
496
|
+
if (flow.updatedAt < flow.createdAt) return createFinding({
|
|
497
|
+
severity: "warn",
|
|
498
|
+
code: "inconsistent_timestamps",
|
|
499
|
+
flow,
|
|
500
|
+
detail: "updatedAt is earlier than createdAt"
|
|
501
|
+
});
|
|
502
|
+
if (flow.endedAt && flow.endedAt < flow.createdAt) return createFinding({
|
|
503
|
+
severity: "warn",
|
|
504
|
+
code: "inconsistent_timestamps",
|
|
505
|
+
flow,
|
|
506
|
+
detail: "endedAt is earlier than createdAt"
|
|
507
|
+
});
|
|
508
|
+
if (flow.endedAt && flow.endedAt < flow.updatedAt) return createFinding({
|
|
509
|
+
severity: "warn",
|
|
510
|
+
code: "inconsistent_timestamps",
|
|
511
|
+
flow,
|
|
512
|
+
detail: "endedAt is earlier than updatedAt"
|
|
513
|
+
});
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
function createEmptyTaskFlowAuditSummary() {
|
|
517
|
+
return {
|
|
518
|
+
total: 0,
|
|
519
|
+
warnings: 0,
|
|
520
|
+
errors: 0,
|
|
521
|
+
byCode: {
|
|
522
|
+
restore_failed: 0,
|
|
523
|
+
stale_running: 0,
|
|
524
|
+
stale_waiting: 0,
|
|
525
|
+
stale_blocked: 0,
|
|
526
|
+
cancel_stuck: 0,
|
|
527
|
+
missing_linked_tasks: 0,
|
|
528
|
+
blocked_task_missing: 0,
|
|
529
|
+
inconsistent_timestamps: 0
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
function listTaskFlowAuditFindings(options = {}) {
|
|
534
|
+
const flows = options.flows ?? listTaskFlowRecords();
|
|
535
|
+
const now = options.now ?? Date.now();
|
|
536
|
+
const staleRunningMs = options.staleRunningMs ?? DEFAULT_STALE_RUNNING_MS;
|
|
537
|
+
const staleWaitingMs = options.staleWaitingMs ?? DEFAULT_STALE_WAITING_MS;
|
|
538
|
+
const staleBlockedMs = options.staleBlockedMs ?? DEFAULT_STALE_BLOCKED_MS;
|
|
539
|
+
const cancelStuckMs = options.cancelStuckMs ?? DEFAULT_CANCEL_STUCK_MS;
|
|
540
|
+
const findings = [];
|
|
541
|
+
const restoreFailure = getTaskFlowRegistryRestoreFailure();
|
|
542
|
+
if (restoreFailure) findings.push(createFinding({
|
|
543
|
+
severity: "error",
|
|
544
|
+
code: "restore_failed",
|
|
545
|
+
detail: `task-flow registry restore failed: ${restoreFailure}`
|
|
546
|
+
}));
|
|
547
|
+
for (const flow of flows) {
|
|
548
|
+
const referenceAt = getReferenceAt(flow);
|
|
549
|
+
const ageMs = Math.max(0, now - referenceAt);
|
|
550
|
+
const linkedTasks = getLinkedTasks(flow.flowId);
|
|
551
|
+
const activeTasks = linkedTasks.filter((task) => task.status === "queued" || task.status === "running");
|
|
552
|
+
if (flow.status === "running" && ageMs >= staleRunningMs) findings.push(createFinding({
|
|
553
|
+
severity: "error",
|
|
554
|
+
code: "stale_running",
|
|
555
|
+
flow,
|
|
556
|
+
ageMs,
|
|
557
|
+
detail: "running TaskFlow has not advanced recently"
|
|
558
|
+
}));
|
|
559
|
+
if (flow.status === "waiting" && ageMs >= staleWaitingMs) findings.push(createFinding({
|
|
560
|
+
severity: "warn",
|
|
561
|
+
code: "stale_waiting",
|
|
562
|
+
flow,
|
|
563
|
+
ageMs,
|
|
564
|
+
detail: "waiting TaskFlow has not advanced recently"
|
|
565
|
+
}));
|
|
566
|
+
if (flow.status === "blocked" && ageMs >= staleBlockedMs) findings.push(createFinding({
|
|
567
|
+
severity: "warn",
|
|
568
|
+
code: "stale_blocked",
|
|
569
|
+
flow,
|
|
570
|
+
ageMs,
|
|
571
|
+
detail: "blocked TaskFlow has not advanced recently"
|
|
572
|
+
}));
|
|
573
|
+
if (flow.cancelRequestedAt != null && flow.status !== "cancelled" && flow.status !== "failed" && flow.status !== "succeeded" && flow.status !== "lost" && activeTasks.length === 0 && now - flow.cancelRequestedAt >= cancelStuckMs) findings.push(createFinding({
|
|
574
|
+
severity: "warn",
|
|
575
|
+
code: "cancel_stuck",
|
|
576
|
+
flow,
|
|
577
|
+
ageMs: Math.max(0, now - flow.cancelRequestedAt),
|
|
578
|
+
detail: "cancel-requested TaskFlow has no active child tasks but is still nonterminal"
|
|
579
|
+
}));
|
|
580
|
+
if (flow.syncMode === "managed" && (flow.status === "running" || flow.status === "waiting" || flow.status === "blocked") && ageMs >= (flow.status === "running" ? staleRunningMs : flow.status === "waiting" ? staleWaitingMs : staleBlockedMs) && linkedTasks.length === 0 && !hasBlockingMetadata(flow)) findings.push(createFinding({
|
|
581
|
+
severity: flow.status === "running" ? "error" : "warn",
|
|
582
|
+
code: "missing_linked_tasks",
|
|
583
|
+
flow,
|
|
584
|
+
ageMs,
|
|
585
|
+
detail: "managed TaskFlow has no linked tasks or wait state"
|
|
586
|
+
}));
|
|
587
|
+
if (flow.blockedTaskId?.trim()) {
|
|
588
|
+
const blockedTaskId = flow.blockedTaskId.trim();
|
|
589
|
+
if (!linkedTasks.some((task) => task.taskId === blockedTaskId)) findings.push(createFinding({
|
|
590
|
+
severity: "warn",
|
|
591
|
+
code: "blocked_task_missing",
|
|
592
|
+
flow,
|
|
593
|
+
ageMs,
|
|
594
|
+
detail: `blocked TaskFlow points at missing task ${blockedTaskId}`
|
|
595
|
+
}));
|
|
596
|
+
}
|
|
597
|
+
const inconsistency = findTimestampInconsistency(flow);
|
|
598
|
+
if (inconsistency) findings.push(inconsistency);
|
|
599
|
+
}
|
|
600
|
+
return findings.toSorted(compareFindings);
|
|
601
|
+
}
|
|
602
|
+
function summarizeTaskFlowAuditFindings(findings) {
|
|
603
|
+
const summary = createEmptyTaskFlowAuditSummary();
|
|
604
|
+
for (const finding of findings) {
|
|
605
|
+
summary.total += 1;
|
|
606
|
+
summary.byCode[finding.code] += 1;
|
|
607
|
+
if (finding.severity === "error") summary.errors += 1;
|
|
608
|
+
else summary.warnings += 1;
|
|
609
|
+
}
|
|
610
|
+
return summary;
|
|
611
|
+
}
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region src/tasks/task-flow-registry.maintenance.ts
|
|
614
|
+
const TASK_FLOW_RETENTION_MS = 10080 * 6e4;
|
|
615
|
+
function isTerminalFlow(flow) {
|
|
616
|
+
return flow.status === "succeeded" || flow.status === "failed" || flow.status === "cancelled" || flow.status === "lost";
|
|
617
|
+
}
|
|
618
|
+
function hasActiveLinkedTasks(flowId) {
|
|
619
|
+
return listTasksForFlowId(flowId).some((task) => task.status === "queued" || task.status === "running");
|
|
620
|
+
}
|
|
621
|
+
function resolveTerminalAt(flow) {
|
|
622
|
+
return flow.endedAt ?? flow.updatedAt ?? flow.createdAt;
|
|
623
|
+
}
|
|
624
|
+
function shouldPruneFlow(flow, now) {
|
|
625
|
+
if (!isTerminalFlow(flow)) return false;
|
|
626
|
+
if (hasActiveLinkedTasks(flow.flowId)) return false;
|
|
627
|
+
return now - resolveTerminalAt(flow) >= TASK_FLOW_RETENTION_MS;
|
|
628
|
+
}
|
|
629
|
+
function shouldFinalizeCancelledFlow(flow) {
|
|
630
|
+
if (flow.syncMode !== "managed") return false;
|
|
631
|
+
if (flow.cancelRequestedAt == null || isTerminalFlow(flow)) return false;
|
|
632
|
+
return !hasActiveLinkedTasks(flow.flowId);
|
|
633
|
+
}
|
|
634
|
+
function finalizeCancelledFlow(flow, now) {
|
|
635
|
+
let current = flow;
|
|
636
|
+
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
637
|
+
const endedAt = Math.max(now, current.updatedAt, current.cancelRequestedAt ?? now);
|
|
638
|
+
const result = updateFlowRecordByIdExpectedRevision({
|
|
639
|
+
flowId: current.flowId,
|
|
640
|
+
expectedRevision: current.revision,
|
|
641
|
+
patch: {
|
|
642
|
+
status: "cancelled",
|
|
643
|
+
blockedTaskId: null,
|
|
644
|
+
blockedSummary: null,
|
|
645
|
+
waitJson: null,
|
|
646
|
+
endedAt,
|
|
647
|
+
updatedAt: endedAt
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
if (result.applied) return true;
|
|
651
|
+
if (result.reason === "not_found" || !result.current) return false;
|
|
652
|
+
current = result.current;
|
|
653
|
+
if (!shouldFinalizeCancelledFlow(current)) return false;
|
|
654
|
+
}
|
|
655
|
+
return false;
|
|
656
|
+
}
|
|
657
|
+
function getInspectableTaskFlowAuditSummary() {
|
|
658
|
+
return summarizeTaskFlowAuditFindings(listTaskFlowAuditFindings());
|
|
659
|
+
}
|
|
660
|
+
function previewTaskFlowRegistryMaintenance() {
|
|
661
|
+
const now = Date.now();
|
|
662
|
+
let reconciled = 0;
|
|
663
|
+
let pruned = 0;
|
|
664
|
+
for (const flow of listTaskFlowRecords()) {
|
|
665
|
+
if (shouldFinalizeCancelledFlow(flow)) {
|
|
666
|
+
reconciled += 1;
|
|
667
|
+
continue;
|
|
668
|
+
}
|
|
669
|
+
if (shouldPruneFlow(flow, now)) pruned += 1;
|
|
670
|
+
}
|
|
671
|
+
return {
|
|
672
|
+
reconciled,
|
|
673
|
+
pruned
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
async function runTaskFlowRegistryMaintenance() {
|
|
677
|
+
const now = Date.now();
|
|
678
|
+
let reconciled = 0;
|
|
679
|
+
let pruned = 0;
|
|
680
|
+
for (const flow of listTaskFlowRecords()) {
|
|
681
|
+
const current = getTaskFlowById(flow.flowId);
|
|
682
|
+
if (!current) continue;
|
|
683
|
+
if (shouldFinalizeCancelledFlow(current)) {
|
|
684
|
+
if (finalizeCancelledFlow(current, now)) reconciled += 1;
|
|
685
|
+
continue;
|
|
686
|
+
}
|
|
687
|
+
if (shouldPruneFlow(current, now) && deleteTaskFlowRecordById(current.flowId)) pruned += 1;
|
|
688
|
+
}
|
|
689
|
+
return {
|
|
690
|
+
reconciled,
|
|
691
|
+
pruned
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region src/commands/tasks.ts
|
|
696
|
+
const RUNTIME_PAD = 8;
|
|
697
|
+
const STATUS_PAD = 10;
|
|
698
|
+
const DELIVERY_PAD = 14;
|
|
699
|
+
const ID_PAD = 10;
|
|
700
|
+
const RUN_PAD = 10;
|
|
701
|
+
function truncate(value, maxChars) {
|
|
702
|
+
if (value.length <= maxChars) return value;
|
|
703
|
+
if (maxChars <= 1) return value.slice(0, maxChars);
|
|
704
|
+
return `${value.slice(0, maxChars - 1)}…`;
|
|
705
|
+
}
|
|
706
|
+
function shortToken(value, maxChars = ID_PAD) {
|
|
707
|
+
const trimmed = value?.trim();
|
|
708
|
+
if (!trimmed) return "n/a";
|
|
709
|
+
return truncate(trimmed, maxChars);
|
|
710
|
+
}
|
|
711
|
+
function formatTaskStatusCell(status, rich) {
|
|
712
|
+
const padded = status.padEnd(STATUS_PAD);
|
|
713
|
+
if (!rich) return padded;
|
|
714
|
+
if (status === "succeeded") return theme.success(padded);
|
|
715
|
+
if (status === "failed" || status === "lost" || status === "timed_out") return theme.error(padded);
|
|
716
|
+
if (status === "running") return theme.accentBright(padded);
|
|
717
|
+
return theme.muted(padded);
|
|
718
|
+
}
|
|
719
|
+
function formatTaskRows(tasks, rich) {
|
|
720
|
+
const header = [
|
|
721
|
+
"Task".padEnd(ID_PAD),
|
|
722
|
+
"Kind".padEnd(RUNTIME_PAD),
|
|
723
|
+
"Status".padEnd(STATUS_PAD),
|
|
724
|
+
"Delivery".padEnd(DELIVERY_PAD),
|
|
725
|
+
"Run".padEnd(RUN_PAD),
|
|
726
|
+
"Child Session",
|
|
727
|
+
"Summary"
|
|
728
|
+
].join(" ");
|
|
729
|
+
const lines = [rich ? theme.heading(header) : header];
|
|
730
|
+
for (const task of tasks) {
|
|
731
|
+
const summary = truncate(task.terminalSummary?.trim() || task.progressSummary?.trim() || task.label?.trim() || task.task.trim(), 80);
|
|
732
|
+
const line = [
|
|
733
|
+
shortToken(task.taskId).padEnd(ID_PAD),
|
|
734
|
+
task.runtime.padEnd(RUNTIME_PAD),
|
|
735
|
+
formatTaskStatusCell(task.status, rich),
|
|
736
|
+
task.deliveryStatus.padEnd(DELIVERY_PAD),
|
|
737
|
+
shortToken(task.runId, RUN_PAD).padEnd(RUN_PAD),
|
|
738
|
+
truncate(task.childSessionKey?.trim() || "n/a", 36).padEnd(36),
|
|
739
|
+
summary
|
|
740
|
+
].join(" ");
|
|
741
|
+
lines.push(line.trimEnd());
|
|
742
|
+
}
|
|
743
|
+
return lines;
|
|
744
|
+
}
|
|
745
|
+
function formatTaskListSummary(tasks) {
|
|
746
|
+
const summary = summarizeTaskRecords(tasks);
|
|
747
|
+
return `${summary.byStatus.queued} queued · ${summary.byStatus.running} running · ${summary.failures} issues`;
|
|
748
|
+
}
|
|
749
|
+
function formatAgeMs(ageMs) {
|
|
750
|
+
if (typeof ageMs !== "number" || ageMs < 1e3) return "fresh";
|
|
751
|
+
const totalSeconds = Math.floor(ageMs / 1e3);
|
|
752
|
+
const days = Math.floor(totalSeconds / 86400);
|
|
753
|
+
const hours = Math.floor(totalSeconds % 86400 / 3600);
|
|
754
|
+
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
|
755
|
+
if (days > 0) return `${days}d${hours}h`;
|
|
756
|
+
if (hours > 0) return `${hours}h${minutes}m`;
|
|
757
|
+
if (minutes > 0) return `${minutes}m`;
|
|
758
|
+
return `${totalSeconds}s`;
|
|
759
|
+
}
|
|
760
|
+
function compareSystemAuditFindings(left, right) {
|
|
761
|
+
const severityRank = (severity) => severity === "error" ? 0 : 1;
|
|
762
|
+
const severityDiff = severityRank(left.severity) - severityRank(right.severity);
|
|
763
|
+
if (severityDiff !== 0) return severityDiff;
|
|
764
|
+
const leftAge = left.ageMs ?? -1;
|
|
765
|
+
const rightAge = right.ageMs ?? -1;
|
|
766
|
+
if (leftAge !== rightAge) return rightAge - leftAge;
|
|
767
|
+
return (left.task?.createdAt ?? left.flow?.createdAt ?? 0) - (right.task?.createdAt ?? right.flow?.createdAt ?? 0);
|
|
768
|
+
}
|
|
769
|
+
function formatAuditRows(findings, rich) {
|
|
770
|
+
const header = [
|
|
771
|
+
"Scope".padEnd(8),
|
|
772
|
+
"Severity".padEnd(8),
|
|
773
|
+
"Code".padEnd(22),
|
|
774
|
+
"Item".padEnd(ID_PAD),
|
|
775
|
+
"Status".padEnd(STATUS_PAD),
|
|
776
|
+
"Age".padEnd(8),
|
|
777
|
+
"Detail"
|
|
778
|
+
].join(" ");
|
|
779
|
+
const lines = [rich ? theme.heading(header) : header];
|
|
780
|
+
for (const finding of findings) {
|
|
781
|
+
const severity = finding.severity.padEnd(8);
|
|
782
|
+
const status = formatTaskStatusCell(finding.status ?? "n/a", rich);
|
|
783
|
+
const severityCell = !rich ? severity : finding.severity === "error" ? theme.error(severity) : theme.warn(severity);
|
|
784
|
+
const scope = finding.kind === "task" ? "Task" : "TaskFlow";
|
|
785
|
+
lines.push([
|
|
786
|
+
scope.padEnd(8),
|
|
787
|
+
severityCell,
|
|
788
|
+
finding.code.padEnd(22),
|
|
789
|
+
shortToken(finding.token).padEnd(ID_PAD),
|
|
790
|
+
status,
|
|
791
|
+
formatAgeMs(finding.ageMs).padEnd(8),
|
|
792
|
+
truncate(finding.detail, 88)
|
|
793
|
+
].join(" ").trimEnd());
|
|
794
|
+
}
|
|
795
|
+
return lines;
|
|
796
|
+
}
|
|
797
|
+
function toSystemAuditFindings(params) {
|
|
798
|
+
const taskFindings = listTaskAuditFindings();
|
|
799
|
+
const flowFindings = listTaskFlowAuditFindings();
|
|
800
|
+
const allFindings = [...taskFindings.map((finding) => ({
|
|
801
|
+
kind: "task",
|
|
802
|
+
severity: finding.severity,
|
|
803
|
+
code: finding.code,
|
|
804
|
+
detail: finding.detail,
|
|
805
|
+
ageMs: finding.ageMs,
|
|
806
|
+
status: finding.task.status,
|
|
807
|
+
token: finding.task.taskId,
|
|
808
|
+
task: finding.task
|
|
809
|
+
})), ...flowFindings.map((finding) => ({
|
|
810
|
+
kind: "task_flow",
|
|
811
|
+
severity: finding.severity,
|
|
812
|
+
code: finding.code,
|
|
813
|
+
detail: finding.detail,
|
|
814
|
+
ageMs: finding.ageMs,
|
|
815
|
+
status: finding.flow?.status ?? "n/a",
|
|
816
|
+
token: finding.flow?.flowId,
|
|
817
|
+
...finding.flow ? { flow: finding.flow } : {}
|
|
818
|
+
}))];
|
|
819
|
+
const filteredFindings = allFindings.filter((finding) => {
|
|
820
|
+
if (params.severityFilter && finding.severity !== params.severityFilter) return false;
|
|
821
|
+
if (params.codeFilter && finding.code !== params.codeFilter) return false;
|
|
822
|
+
return true;
|
|
823
|
+
}).toSorted(compareSystemAuditFindings);
|
|
824
|
+
const sortedAllFindings = [...allFindings].toSorted(compareSystemAuditFindings);
|
|
825
|
+
return {
|
|
826
|
+
allFindings: sortedAllFindings,
|
|
827
|
+
filteredFindings,
|
|
828
|
+
taskFindings,
|
|
829
|
+
flowFindings,
|
|
830
|
+
summary: {
|
|
831
|
+
total: sortedAllFindings.length,
|
|
832
|
+
errors: sortedAllFindings.filter((finding) => finding.severity === "error").length,
|
|
833
|
+
warnings: sortedAllFindings.filter((finding) => finding.severity !== "error").length,
|
|
834
|
+
tasks: summarizeTaskAuditFindings(taskFindings),
|
|
835
|
+
taskFlows: summarizeTaskFlowAuditFindings(flowFindings)
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
async function tasksListCommand(opts, runtime) {
|
|
840
|
+
const runtimeFilter = opts.runtime?.trim();
|
|
841
|
+
const statusFilter = opts.status?.trim();
|
|
842
|
+
const tasks = reconcileInspectableTasks().filter((task) => {
|
|
843
|
+
if (runtimeFilter && task.runtime !== runtimeFilter) return false;
|
|
844
|
+
if (statusFilter && task.status !== statusFilter) return false;
|
|
845
|
+
return true;
|
|
846
|
+
});
|
|
847
|
+
if (opts.json) {
|
|
848
|
+
runtime.log(JSON.stringify({
|
|
849
|
+
count: tasks.length,
|
|
850
|
+
runtime: runtimeFilter ?? null,
|
|
851
|
+
status: statusFilter ?? null,
|
|
852
|
+
tasks
|
|
853
|
+
}, null, 2));
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
runtime.log(info(`Background tasks: ${tasks.length}`));
|
|
857
|
+
runtime.log(info(`Task pressure: ${formatTaskListSummary(tasks)}`));
|
|
858
|
+
if (runtimeFilter) runtime.log(info(`Runtime filter: ${runtimeFilter}`));
|
|
859
|
+
if (statusFilter) runtime.log(info(`Status filter: ${statusFilter}`));
|
|
860
|
+
if (tasks.length === 0) {
|
|
861
|
+
runtime.log("No background tasks found.");
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
const rich = isRich();
|
|
865
|
+
for (const line of formatTaskRows(tasks, rich)) runtime.log(line);
|
|
866
|
+
}
|
|
867
|
+
async function tasksShowCommand(opts, runtime) {
|
|
868
|
+
const task = reconcileTaskLookupToken(opts.lookup);
|
|
869
|
+
if (!task) {
|
|
870
|
+
runtime.error(`Task not found: ${opts.lookup}`);
|
|
871
|
+
runtime.exit(1);
|
|
872
|
+
return;
|
|
873
|
+
}
|
|
874
|
+
if (opts.json) {
|
|
875
|
+
runtime.log(JSON.stringify(task, null, 2));
|
|
876
|
+
return;
|
|
877
|
+
}
|
|
878
|
+
const lines = [
|
|
879
|
+
"Background task:",
|
|
880
|
+
`taskId: ${task.taskId}`,
|
|
881
|
+
`kind: ${task.runtime}`,
|
|
882
|
+
`sourceId: ${task.sourceId ?? "n/a"}`,
|
|
883
|
+
`status: ${task.status}`,
|
|
884
|
+
`result: ${task.terminalOutcome ?? "n/a"}`,
|
|
885
|
+
`delivery: ${task.deliveryStatus}`,
|
|
886
|
+
`notify: ${task.notifyPolicy}`,
|
|
887
|
+
`ownerKey: ${task.ownerKey}`,
|
|
888
|
+
`childSessionKey: ${task.childSessionKey ?? "n/a"}`,
|
|
889
|
+
`parentTaskId: ${task.parentTaskId ?? "n/a"}`,
|
|
890
|
+
`agentId: ${task.agentId ?? "n/a"}`,
|
|
891
|
+
`runId: ${task.runId ?? "n/a"}`,
|
|
892
|
+
`label: ${task.label ?? "n/a"}`,
|
|
893
|
+
`task: ${task.task}`,
|
|
894
|
+
`createdAt: ${new Date(task.createdAt).toISOString()}`,
|
|
895
|
+
`startedAt: ${task.startedAt ? new Date(task.startedAt).toISOString() : "n/a"}`,
|
|
896
|
+
`endedAt: ${task.endedAt ? new Date(task.endedAt).toISOString() : "n/a"}`,
|
|
897
|
+
`lastEventAt: ${task.lastEventAt ? new Date(task.lastEventAt).toISOString() : "n/a"}`,
|
|
898
|
+
`cleanupAfter: ${task.cleanupAfter ? new Date(task.cleanupAfter).toISOString() : "n/a"}`,
|
|
899
|
+
...task.error ? [`error: ${task.error}`] : [],
|
|
900
|
+
...task.progressSummary ? [`progressSummary: ${task.progressSummary}`] : [],
|
|
901
|
+
...task.terminalSummary ? [`terminalSummary: ${task.terminalSummary}`] : []
|
|
902
|
+
];
|
|
903
|
+
for (const line of lines) runtime.log(line);
|
|
904
|
+
}
|
|
905
|
+
async function tasksNotifyCommand(opts, runtime) {
|
|
906
|
+
const task = reconcileTaskLookupToken(opts.lookup);
|
|
907
|
+
if (!task) {
|
|
908
|
+
runtime.error(`Task not found: ${opts.lookup}`);
|
|
909
|
+
runtime.exit(1);
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
const updated = updateTaskNotifyPolicyById({
|
|
913
|
+
taskId: task.taskId,
|
|
914
|
+
notifyPolicy: opts.notify
|
|
915
|
+
});
|
|
916
|
+
if (!updated) {
|
|
917
|
+
runtime.error(`Task not found: ${opts.lookup}`);
|
|
918
|
+
runtime.exit(1);
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
runtime.log(`Updated ${updated.taskId} notify policy to ${updated.notifyPolicy}.`);
|
|
922
|
+
}
|
|
923
|
+
async function tasksCancelCommand(opts, runtime) {
|
|
924
|
+
const task = reconcileTaskLookupToken(opts.lookup);
|
|
925
|
+
if (!task) {
|
|
926
|
+
runtime.error(`Task not found: ${opts.lookup}`);
|
|
927
|
+
runtime.exit(1);
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
const result = await cancelTaskById({
|
|
931
|
+
cfg: loadConfig(),
|
|
932
|
+
taskId: task.taskId
|
|
933
|
+
});
|
|
934
|
+
if (!result.found) {
|
|
935
|
+
runtime.error(result.reason ?? `Task not found: ${opts.lookup}`);
|
|
936
|
+
runtime.exit(1);
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
if (!result.cancelled) {
|
|
940
|
+
runtime.error(result.reason ?? `Could not cancel task: ${opts.lookup}`);
|
|
941
|
+
runtime.exit(1);
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
const updated = getTaskById(task.taskId);
|
|
945
|
+
runtime.log(`Cancelled ${updated?.taskId ?? task.taskId} (${updated?.runtime ?? task.runtime})${updated?.runId ? ` run ${updated.runId}` : ""}.`);
|
|
946
|
+
}
|
|
947
|
+
async function tasksAuditCommand(opts, runtime) {
|
|
948
|
+
const severityFilter = opts.severity?.trim();
|
|
949
|
+
const codeFilter = opts.code?.trim();
|
|
950
|
+
const { allFindings, filteredFindings, taskFindings, summary } = toSystemAuditFindings({
|
|
951
|
+
severityFilter,
|
|
952
|
+
codeFilter
|
|
953
|
+
});
|
|
954
|
+
const limit = typeof opts.limit === "number" && opts.limit > 0 ? opts.limit : void 0;
|
|
955
|
+
const displayed = limit ? filteredFindings.slice(0, limit) : filteredFindings;
|
|
956
|
+
if (opts.json) {
|
|
957
|
+
const legacySummary = summarizeTaskAuditFindings(taskFindings);
|
|
958
|
+
runtime.log(JSON.stringify({
|
|
959
|
+
count: allFindings.length,
|
|
960
|
+
filteredCount: filteredFindings.length,
|
|
961
|
+
displayed: displayed.length,
|
|
962
|
+
filters: {
|
|
963
|
+
severity: severityFilter ?? null,
|
|
964
|
+
code: codeFilter ?? null,
|
|
965
|
+
limit: limit ?? null
|
|
966
|
+
},
|
|
967
|
+
summary: {
|
|
968
|
+
...legacySummary,
|
|
969
|
+
taskFlows: summary.taskFlows,
|
|
970
|
+
combined: {
|
|
971
|
+
total: summary.total,
|
|
972
|
+
errors: summary.errors,
|
|
973
|
+
warnings: summary.warnings
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
findings: displayed
|
|
977
|
+
}, null, 2));
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
runtime.log(info(`Tasks audit: ${summary.total} findings · ${summary.errors} errors · ${summary.warnings} warnings`));
|
|
981
|
+
if (severityFilter || codeFilter) runtime.log(info(`Showing ${filteredFindings.length} matching findings.`));
|
|
982
|
+
if (severityFilter) runtime.log(info(`Severity filter: ${severityFilter}`));
|
|
983
|
+
if (codeFilter) runtime.log(info(`Code filter: ${codeFilter}`));
|
|
984
|
+
if (limit) runtime.log(info(`Limit: ${limit}`));
|
|
985
|
+
runtime.log(info(`Task findings: ${summary.tasks.total} · TaskFlow findings: ${summary.taskFlows.total}`));
|
|
986
|
+
if (displayed.length === 0) {
|
|
987
|
+
runtime.log("No tasks audit findings.");
|
|
988
|
+
return;
|
|
989
|
+
}
|
|
990
|
+
const rich = isRich();
|
|
991
|
+
for (const line of formatAuditRows(displayed, rich)) runtime.log(line);
|
|
992
|
+
}
|
|
993
|
+
async function tasksMaintenanceCommand(opts, runtime) {
|
|
994
|
+
const auditBefore = getInspectableTaskAuditSummary();
|
|
995
|
+
const flowAuditBefore = getInspectableTaskFlowAuditSummary();
|
|
996
|
+
const taskMaintenance = opts.apply ? await runTaskRegistryMaintenance() : previewTaskRegistryMaintenance();
|
|
997
|
+
const flowMaintenance = opts.apply ? await runTaskFlowRegistryMaintenance() : previewTaskFlowRegistryMaintenance();
|
|
998
|
+
const summary = getInspectableTaskRegistrySummary();
|
|
999
|
+
const auditAfter = opts.apply ? getInspectableTaskAuditSummary() : auditBefore;
|
|
1000
|
+
const flowAuditAfter = opts.apply ? getInspectableTaskFlowAuditSummary() : flowAuditBefore;
|
|
1001
|
+
if (opts.json) {
|
|
1002
|
+
runtime.log(JSON.stringify({
|
|
1003
|
+
mode: opts.apply ? "apply" : "preview",
|
|
1004
|
+
maintenance: {
|
|
1005
|
+
tasks: taskMaintenance,
|
|
1006
|
+
taskFlows: flowMaintenance
|
|
1007
|
+
},
|
|
1008
|
+
tasks: summary,
|
|
1009
|
+
auditBefore: {
|
|
1010
|
+
...auditBefore,
|
|
1011
|
+
taskFlows: flowAuditBefore
|
|
1012
|
+
},
|
|
1013
|
+
auditAfter: {
|
|
1014
|
+
...auditAfter,
|
|
1015
|
+
taskFlows: flowAuditAfter
|
|
1016
|
+
}
|
|
1017
|
+
}, null, 2));
|
|
1018
|
+
return;
|
|
1019
|
+
}
|
|
1020
|
+
runtime.log(info(`Tasks maintenance (${opts.apply ? "applied" : "preview"}): tasks ${taskMaintenance.reconciled} reconcile · ${taskMaintenance.cleanupStamped} cleanup stamp · ${taskMaintenance.pruned} prune; task-flows ${flowMaintenance.reconciled} reconcile · ${flowMaintenance.pruned} prune`));
|
|
1021
|
+
runtime.log(info(`${opts.apply ? "Tasks health after apply" : "Tasks health"}: ${summary.byStatus.queued} queued · ${summary.byStatus.running} running · ${auditAfter.errors + flowAuditAfter.errors} audit errors · ${auditAfter.warnings + flowAuditAfter.warnings} audit warnings`));
|
|
1022
|
+
if (opts.apply) runtime.log(info(`Tasks health before apply: ${auditBefore.errors + flowAuditBefore.errors} audit errors · ${auditBefore.warnings + flowAuditBefore.warnings} audit warnings`));
|
|
1023
|
+
if (!opts.apply) runtime.log("Dry run only. Re-run with `openclaw tasks maintenance --apply` to write changes.");
|
|
1024
|
+
}
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/cli/program/register.status-health-sessions.ts
|
|
1027
|
+
function resolveVerbose(opts) {
|
|
1028
|
+
return Boolean(opts.verbose || opts.debug);
|
|
1029
|
+
}
|
|
1030
|
+
function parseTimeoutMs(timeout) {
|
|
1031
|
+
const parsed = parsePositiveIntOrUndefined(timeout);
|
|
1032
|
+
if (timeout !== void 0 && parsed === void 0) {
|
|
1033
|
+
defaultRuntime.error("--timeout must be a positive integer (milliseconds)");
|
|
1034
|
+
defaultRuntime.exit(1);
|
|
1035
|
+
return null;
|
|
1036
|
+
}
|
|
1037
|
+
return parsed;
|
|
1038
|
+
}
|
|
1039
|
+
async function runWithVerboseAndTimeout(opts, action) {
|
|
1040
|
+
const verbose = resolveVerbose(opts);
|
|
1041
|
+
setVerbose(verbose);
|
|
1042
|
+
const timeoutMs = parseTimeoutMs(opts.timeout);
|
|
1043
|
+
if (timeoutMs === null) return;
|
|
1044
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1045
|
+
await action({
|
|
1046
|
+
verbose,
|
|
1047
|
+
timeoutMs
|
|
1048
|
+
});
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
function registerStatusHealthSessionsCommands(program) {
|
|
1052
|
+
program.command("status").description("Show channel health and recent session recipients").option("--json", "Output JSON instead of text", false).option("--all", "Full diagnosis (read-only, pasteable)", false).option("--usage", "Show model provider usage/quota snapshots", false).option("--deep", "Probe channels (WhatsApp Web + Telegram + Discord + Slack + Signal)", false).option("--timeout <ms>", "Probe timeout in milliseconds", "10000").option("--verbose", "Verbose logging", false).option("--debug", "Alias for --verbose", false).addHelpText("after", () => `\n${theme.heading("Examples:")}\n${formatHelpExamples([
|
|
1053
|
+
["openclaw status", "Show channel health + session summary."],
|
|
1054
|
+
["openclaw status --all", "Full diagnosis (read-only)."],
|
|
1055
|
+
["openclaw status --json", "Machine-readable output."],
|
|
1056
|
+
["openclaw status --usage", "Show model provider usage/quota snapshots."],
|
|
1057
|
+
["openclaw status --deep", "Run channel probes (WA + Telegram + Discord + Slack + Signal)."],
|
|
1058
|
+
["openclaw status --deep --timeout 5000", "Tighten probe timeout."]
|
|
1059
|
+
])}`).addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/status", "docs.stableclaw.ai/cli/status")}\n`).action(async (opts) => {
|
|
1060
|
+
await runWithVerboseAndTimeout(opts, async ({ verbose, timeoutMs }) => {
|
|
1061
|
+
await statusCommand({
|
|
1062
|
+
json: Boolean(opts.json),
|
|
1063
|
+
all: Boolean(opts.all),
|
|
1064
|
+
deep: Boolean(opts.deep),
|
|
1065
|
+
usage: Boolean(opts.usage),
|
|
1066
|
+
timeoutMs,
|
|
1067
|
+
verbose
|
|
1068
|
+
}, defaultRuntime);
|
|
1069
|
+
});
|
|
1070
|
+
});
|
|
1071
|
+
program.command("health").description("Fetch health from the running gateway").option("--json", "Output JSON instead of text", false).option("--timeout <ms>", "Connection timeout in milliseconds", "10000").option("--verbose", "Verbose logging", false).option("--debug", "Alias for --verbose", false).addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/health", "docs.stableclaw.ai/cli/health")}\n`).action(async (opts) => {
|
|
1072
|
+
await runWithVerboseAndTimeout(opts, async ({ verbose, timeoutMs }) => {
|
|
1073
|
+
await healthCommand({
|
|
1074
|
+
json: Boolean(opts.json),
|
|
1075
|
+
timeoutMs,
|
|
1076
|
+
verbose
|
|
1077
|
+
}, defaultRuntime);
|
|
1078
|
+
});
|
|
1079
|
+
});
|
|
1080
|
+
const sessionsCmd = program.command("sessions").description("List stored conversation sessions").option("--json", "Output as JSON", false).option("--verbose", "Verbose logging", false).option("--store <path>", "Path to session store (default: resolved from config)").option("--agent <id>", "Agent id to inspect (default: configured default agent)").option("--all-agents", "Aggregate sessions across all configured agents", false).option("--active <minutes>", "Only show sessions updated within the past N minutes").addHelpText("after", () => `\n${theme.heading("Examples:")}\n${formatHelpExamples([
|
|
1081
|
+
["openclaw sessions", "List all sessions."],
|
|
1082
|
+
["openclaw sessions --agent work", "List sessions for one agent."],
|
|
1083
|
+
["openclaw sessions --all-agents", "Aggregate sessions across agents."],
|
|
1084
|
+
["openclaw sessions --active 120", "Only last 2 hours."],
|
|
1085
|
+
["openclaw sessions --json", "Machine-readable output."],
|
|
1086
|
+
["openclaw sessions --store ./tmp/sessions.json", "Use a specific session store."]
|
|
1087
|
+
])}\n\n${theme.muted("Shows token usage per session when the agent reports it; set agents.defaults.contextTokens to cap the window and show %.")}`).addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/sessions", "docs.stableclaw.ai/cli/sessions")}\n`).action(async (opts) => {
|
|
1088
|
+
setVerbose(Boolean(opts.verbose));
|
|
1089
|
+
await sessionsCommand({
|
|
1090
|
+
json: Boolean(opts.json),
|
|
1091
|
+
store: opts.store,
|
|
1092
|
+
agent: opts.agent,
|
|
1093
|
+
allAgents: Boolean(opts.allAgents),
|
|
1094
|
+
active: opts.active
|
|
1095
|
+
}, defaultRuntime);
|
|
1096
|
+
});
|
|
1097
|
+
sessionsCmd.enablePositionalOptions();
|
|
1098
|
+
sessionsCmd.command("cleanup").description("Run session-store maintenance now").option("--store <path>", "Path to session store (default: resolved from config)").option("--agent <id>", "Agent id to maintain (default: configured default agent)").option("--all-agents", "Run maintenance across all configured agents", false).option("--dry-run", "Preview maintenance actions without writing", false).option("--enforce", "Apply maintenance even when configured mode is warn", false).option("--fix-missing", "Remove store entries whose transcript files are missing (bypasses age/count retention)", false).option("--active-key <key>", "Protect this session key from budget-eviction").option("--json", "Output JSON", false).addHelpText("after", () => `\n${theme.heading("Examples:")}\n${formatHelpExamples([
|
|
1099
|
+
["openclaw sessions cleanup --dry-run", "Preview stale/cap cleanup."],
|
|
1100
|
+
["openclaw sessions cleanup --dry-run --fix-missing", "Also preview pruning entries with missing transcript files."],
|
|
1101
|
+
["openclaw sessions cleanup --enforce", "Apply maintenance now."],
|
|
1102
|
+
["openclaw sessions cleanup --agent work --dry-run", "Preview one agent store."],
|
|
1103
|
+
["openclaw sessions cleanup --all-agents --dry-run", "Preview all agent stores."],
|
|
1104
|
+
["openclaw sessions cleanup --enforce --store ./tmp/sessions.json", "Use a specific store."]
|
|
1105
|
+
])}`).action(async (opts, command) => {
|
|
1106
|
+
const parentOpts = command.parent?.opts();
|
|
1107
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1108
|
+
await sessionsCleanupCommand({
|
|
1109
|
+
store: opts.store ?? parentOpts?.store,
|
|
1110
|
+
agent: opts.agent ?? parentOpts?.agent,
|
|
1111
|
+
allAgents: Boolean(opts.allAgents || parentOpts?.allAgents),
|
|
1112
|
+
dryRun: Boolean(opts.dryRun),
|
|
1113
|
+
enforce: Boolean(opts.enforce),
|
|
1114
|
+
fixMissing: Boolean(opts.fixMissing),
|
|
1115
|
+
activeKey: opts.activeKey,
|
|
1116
|
+
json: Boolean(opts.json || parentOpts?.json)
|
|
1117
|
+
}, defaultRuntime);
|
|
1118
|
+
});
|
|
1119
|
+
});
|
|
1120
|
+
const tasksCmd = program.command("tasks").description("Inspect durable background tasks and TaskFlow state").option("--json", "Output as JSON", false).option("--runtime <name>", "Filter by kind (subagent, acp, cron, cli)").option("--status <name>", "Filter by status (queued, running, succeeded, failed, timed_out, cancelled, lost)").action(async (opts) => {
|
|
1121
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1122
|
+
await tasksListCommand({
|
|
1123
|
+
json: Boolean(opts.json),
|
|
1124
|
+
runtime: opts.runtime,
|
|
1125
|
+
status: opts.status
|
|
1126
|
+
}, defaultRuntime);
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
tasksCmd.enablePositionalOptions();
|
|
1130
|
+
tasksCmd.command("list").description("List tracked background tasks").option("--json", "Output as JSON", false).option("--runtime <name>", "Filter by kind (subagent, acp, cron, cli)").option("--status <name>", "Filter by status (queued, running, succeeded, failed, timed_out, cancelled, lost)").action(async (opts, command) => {
|
|
1131
|
+
const parentOpts = command.parent?.opts();
|
|
1132
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1133
|
+
await tasksListCommand({
|
|
1134
|
+
json: Boolean(opts.json || parentOpts?.json),
|
|
1135
|
+
runtime: opts.runtime ?? parentOpts?.runtime,
|
|
1136
|
+
status: opts.status ?? parentOpts?.status
|
|
1137
|
+
}, defaultRuntime);
|
|
1138
|
+
});
|
|
1139
|
+
});
|
|
1140
|
+
tasksCmd.command("audit").description("Show stale or broken background tasks and TaskFlows").option("--json", "Output as JSON", false).option("--severity <level>", "Filter by severity (warn, error)").option("--code <name>", "Filter by finding code (stale_queued, stale_running, lost, delivery_failed, missing_cleanup, inconsistent_timestamps, restore_failed, stale_waiting, stale_blocked, cancel_stuck, missing_linked_tasks, blocked_task_missing)").option("--limit <n>", "Limit displayed findings").action(async (opts, command) => {
|
|
1141
|
+
const parentOpts = command.parent?.opts();
|
|
1142
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1143
|
+
await tasksAuditCommand({
|
|
1144
|
+
json: Boolean(opts.json || parentOpts?.json),
|
|
1145
|
+
severity: opts.severity,
|
|
1146
|
+
code: opts.code,
|
|
1147
|
+
limit: parsePositiveIntOrUndefined(opts.limit)
|
|
1148
|
+
}, defaultRuntime);
|
|
1149
|
+
});
|
|
1150
|
+
});
|
|
1151
|
+
tasksCmd.command("maintenance").description("Preview or apply tasks and TaskFlow maintenance").option("--json", "Output as JSON", false).option("--apply", "Apply reconciliation, cleanup stamping, and pruning", false).action(async (opts, command) => {
|
|
1152
|
+
const parentOpts = command.parent?.opts();
|
|
1153
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1154
|
+
await tasksMaintenanceCommand({
|
|
1155
|
+
json: Boolean(opts.json || parentOpts?.json),
|
|
1156
|
+
apply: Boolean(opts.apply)
|
|
1157
|
+
}, defaultRuntime);
|
|
1158
|
+
});
|
|
1159
|
+
});
|
|
1160
|
+
tasksCmd.command("show").description("Show one background task by task id, run id, or session key").argument("<lookup>", "Task id, run id, or session key").option("--json", "Output as JSON", false).action(async (lookup, opts, command) => {
|
|
1161
|
+
const parentOpts = command.parent?.opts();
|
|
1162
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1163
|
+
await tasksShowCommand({
|
|
1164
|
+
lookup,
|
|
1165
|
+
json: Boolean(opts.json || parentOpts?.json)
|
|
1166
|
+
}, defaultRuntime);
|
|
1167
|
+
});
|
|
1168
|
+
});
|
|
1169
|
+
tasksCmd.command("notify").description("Set task notify policy").argument("<lookup>", "Task id, run id, or session key").argument("<notify>", "Notify policy (done_only, state_changes, silent)").action(async (lookup, notify) => {
|
|
1170
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1171
|
+
await tasksNotifyCommand({
|
|
1172
|
+
lookup,
|
|
1173
|
+
notify
|
|
1174
|
+
}, defaultRuntime);
|
|
1175
|
+
});
|
|
1176
|
+
});
|
|
1177
|
+
tasksCmd.command("cancel").description("Cancel a running background task").argument("<lookup>", "Task id, run id, or session key").action(async (lookup) => {
|
|
1178
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1179
|
+
await tasksCancelCommand({ lookup }, defaultRuntime);
|
|
1180
|
+
});
|
|
1181
|
+
});
|
|
1182
|
+
const tasksFlowCmd = tasksCmd.command("flow").description("Inspect durable TaskFlow state under tasks");
|
|
1183
|
+
tasksFlowCmd.command("list").description("List tracked TaskFlows").option("--json", "Output as JSON", false).option("--status <name>", "Filter by status (queued, running, waiting, blocked, succeeded, failed, cancelled, lost)").action(async (opts) => {
|
|
1184
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1185
|
+
await flowsListCommand({
|
|
1186
|
+
json: Boolean(opts.json),
|
|
1187
|
+
status: opts.status
|
|
1188
|
+
}, defaultRuntime);
|
|
1189
|
+
});
|
|
1190
|
+
});
|
|
1191
|
+
tasksFlowCmd.command("show").description("Show one TaskFlow by flow id or owner key").argument("<lookup>", "Flow id or owner key").option("--json", "Output as JSON", false).action(async (lookup, opts) => {
|
|
1192
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1193
|
+
await flowsShowCommand({
|
|
1194
|
+
lookup,
|
|
1195
|
+
json: Boolean(opts.json)
|
|
1196
|
+
}, defaultRuntime);
|
|
1197
|
+
});
|
|
1198
|
+
});
|
|
1199
|
+
tasksFlowCmd.command("cancel").description("Cancel a running TaskFlow").argument("<lookup>", "Flow id or owner key").action(async (lookup) => {
|
|
1200
|
+
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
1201
|
+
await flowsCancelCommand({ lookup }, defaultRuntime);
|
|
1202
|
+
});
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
//#endregion
|
|
1206
|
+
export { registerStatusHealthSessionsCommands };
|