remoteclaw 0.1.0-next.b9d22ea → 0.1.0-next.bf16d82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/dist/accounts-Aqbb2_Fn.js +270 -0
- package/dist/accounts-Bo2bX8jP.js +272 -0
- package/dist/accounts-CM9-wQiO.js +32 -0
- package/dist/accounts-D3fAPVzU.js +36 -0
- package/dist/accounts-DZmv4bXS.js +47 -0
- package/dist/accounts-DmB4SVPK.js +47 -0
- package/dist/accounts-DtkyfvwR.js +36 -0
- package/dist/ack-reactions-BpScrBGW.js +446 -0
- package/dist/ack-reactions-Dzzngl4O.js +446 -0
- package/dist/acp-cli-DVXhDMc6.js +1324 -0
- package/dist/acp-cli-QBL4_qcW.js +1319 -0
- package/dist/active-listener-CwxZ24bZ.js +37 -0
- package/dist/active-listener-v2sItamh.js +37 -0
- package/dist/agent-BDLAlLCL.js +704 -0
- package/dist/agent-BLF0q7z7.js +703 -0
- package/dist/agent-helpers-BSGqeJr-.js +400 -0
- package/dist/agent-helpers-eEHy5uX2.js +400 -0
- package/dist/agent-scope-CJW7vnF8.js +114 -0
- package/dist/agent-scope-_ND_-bJy.js +116 -0
- package/dist/agents-CL3NO8AU.js +760 -0
- package/dist/agents.config-BPIAuyp2.js +116 -0
- package/dist/agents.config-H06b2bwI.js +116 -0
- package/dist/ansi-DtaiOnt1.js +107 -0
- package/dist/audio-BIvUsncf.js +43 -0
- package/dist/audio-CQ8TfmVN.js +43 -0
- package/dist/audit-BK7HInSG.js +3150 -0
- package/dist/audit-DEXNUeWm.js +3150 -0
- package/dist/auth-DGqCLaQq.js +448 -0
- package/dist/auth-DLTRySEi.js +314 -0
- package/dist/auth-Drf91ntw.js +315 -0
- package/dist/auth-ku2khJyQ.js +448 -0
- package/dist/banner-V89c8CZr.js +294 -0
- package/dist/binaries-BTvHIrCr.js +13 -0
- package/dist/bindings-Dr0bGRst.js +69 -0
- package/dist/bindings-DsWJQVKh.js +69 -0
- package/dist/bonjour-discovery-753eUdn8.js +378 -0
- package/dist/bonjour-discovery-Lo4oz5nx.js +378 -0
- package/dist/boot/handler.js +42 -69
- package/dist/browser-cli-DxJew43l.js +1694 -0
- package/dist/browser-cli-p0nakrjO.js +1690 -0
- package/dist/build-info.json +3 -3
- package/dist/call-BrTmlOx3.js +518 -0
- package/dist/call-ChdUdwb4.js +517 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/catalog-DTlcfTT9.js +185 -0
- package/dist/catalog-PixZqhZK.js +185 -0
- package/dist/channel-account-context-BM7ekXJw.js +133 -0
- package/dist/channel-account-context-B_CTilep.js +133 -0
- package/dist/channel-activity-C-L6rDrQ.js +94 -0
- package/dist/channel-activity-DdgLBZ7M.js +94 -0
- package/dist/channel-activity-hL4KZrCz.js +292 -0
- package/dist/channel-options-DDJfZ19-.js +33 -0
- package/dist/channel-options-DPgNXhhg.js +32 -0
- package/dist/channel-selection-Ba3RY1Ao.js +51 -0
- package/dist/channel-selection-DW21dXB1.js +51 -0
- package/dist/channel-web-BsdEYRcn.js +2136 -0
- package/dist/channel-web-DrEUZh4c.js +2134 -0
- package/dist/channels-cli-D1Hg7OoJ.js +1429 -0
- package/dist/channels-cli-DYdSWyJS.js +1425 -0
- package/dist/channels-status-issues-Chzsa1R2.js +18 -0
- package/dist/channels-status-issues-dszAk26n.js +18 -0
- package/dist/chat-envelope-BIujl9Cj.js +248 -0
- package/dist/chat-envelope-CrM0X4sl.js +248 -0
- package/dist/chrome-Dqtq7zCc.js +1733 -0
- package/dist/chrome-XeSY99Z_.js +1732 -0
- package/dist/chunk-CWD_zrz_.js +341 -0
- package/dist/chunk-LUabyS9k.js +341 -0
- package/dist/clack-prompter-BhtlKYaz.js +122 -0
- package/dist/clack-prompter-Ds_jQwRg.js +121 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-B7AOUqP7.js +133 -0
- package/dist/cli-Cf0q1XPt.js +129 -0
- package/dist/client-B9u3JdT_.js +2316 -0
- package/dist/client-DEEOhx0w.js +2316 -0
- package/dist/clipboard-B2nstLx7.js +31 -0
- package/dist/clipboard-C8QI9fes.js +31 -0
- package/dist/command-format-D0vKipG9.js +32 -0
- package/dist/command-format-LFmgWzKJ.js +18 -0
- package/dist/command-logger/handler.js +1 -1
- package/dist/command-registry-G0iFZSsB.js +215 -0
- package/dist/commands-BAYwlS3d.js +41 -0
- package/dist/commands-D842kCjj.js +41 -0
- package/dist/commands-registry-Cg2GTT2J.js +892 -0
- package/dist/commands-registry-Yz-uV5oG.js +891 -0
- package/dist/common-B67cBSew.js +156 -0
- package/dist/common-DEoiTqOr.js +156 -0
- package/dist/completion-cli-CsnRuzKE.js +452 -0
- package/dist/completion-cli-up_dylJo.js +452 -0
- package/dist/config-CAa0rZSx.js +4225 -0
- package/dist/config-W0w-gi2j.js +4223 -0
- package/dist/config-cli-B3ZJv_rA.js +247 -0
- package/dist/config-cli-Bw9dMm2_.js +243 -0
- package/dist/config-guard-BB8ZCtG2.js +75 -0
- package/dist/config-guard-BGDrhmVw.js +99 -0
- package/dist/config-validation-BRV8Dwlm.js +18 -0
- package/dist/config-validation-CgLT7yOT.js +18 -0
- package/dist/configure-9Z1a-62u.js +889 -0
- package/dist/configure-B8GTAFVp.js +891 -0
- package/dist/constants-BAZuhSRm.js +75 -0
- package/dist/constants-BBVTjb1j.js +75 -0
- package/dist/control-auth-BrBr2xb8.js +397 -0
- package/dist/control-auth-CehjYKnL.js +397 -0
- package/dist/control-ui/assets/index-DdiU_ccM.css +1 -0
- package/dist/control-ui/assets/index-kVUYi64u.js +7723 -0
- package/dist/control-ui/assets/index-kVUYi64u.js.map +1 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/control-ui-assets-BhJwfkgT.js +186 -0
- package/dist/control-ui-assets-DEQuKyme.js +186 -0
- package/dist/conversation-label-Bn5j3lUT.js +36 -0
- package/dist/conversation-label-CDH4rKMG.js +36 -0
- package/dist/cron-cli-Be9JgLb2.js +498 -0
- package/dist/cron-cli-DkXVZaCq.js +494 -0
- package/dist/daemon-cli-CIoKNZvF.js +735 -0
- package/dist/daemon-cli-niV5fzD4.js +737 -0
- package/dist/daemon-cli.js +36 -83
- package/dist/daemon-install-1ynjvFZL.js +56 -0
- package/dist/daemon-install-C8IcQYs1.js +60 -0
- package/dist/daemon-install-helpers-CfcKL7QX.js +504 -0
- package/dist/daemon-install-helpers-DzVSXu0U.js +504 -0
- package/dist/deliver-CDcL8ok6.js +481 -0
- package/dist/deliver-xpNcxpb6.js +481 -0
- package/dist/delivery-queue-33Q7Kk2m.js +244 -0
- package/dist/delivery-queue-CTaYZQ_8.js +244 -0
- package/dist/devices-cli-BKKwdow_.js +319 -0
- package/dist/devices-cli-ChY_hDCH.js +323 -0
- package/dist/diagnostics-DRGjLipf.js +35 -0
- package/dist/diagnostics-DeuGkI5l.js +35 -0
- package/dist/directory-cli-1GNpcNre.js +224 -0
- package/dist/directory-cli-CdlTrGda.js +220 -0
- package/dist/dispatcher-BMmzjWPB.js +174 -0
- package/dist/dispatcher-WqL89TYp.js +173 -0
- package/dist/dm-policy-shared-n9ISCHRR.js +22 -0
- package/dist/dm-policy-shared-rngrU9Sh.js +22 -0
- package/dist/dns-cli-Dih_PCz2.js +203 -0
- package/dist/dns-cli-mGfvT-X2.js +199 -0
- package/dist/dock-Big-J2VN.js +929 -0
- package/dist/dock-Cj4PKiUh.js +928 -0
- package/dist/doctor-completion-Bg4iXpHR.js +92 -0
- package/dist/doctor-completion-x0A_9Rp_.js +92 -0
- package/dist/doctor-config-flow-CP28w1Gp.js +1935 -0
- package/dist/doctor-config-flow-C_HMyUfr.js +1934 -0
- package/dist/enable-Bnnd9rJQ.js +59 -0
- package/dist/enable-DeRa_Dwn.js +59 -0
- package/dist/entry.js +1 -3
- package/dist/env-B3zr72vQ.js +60 -0
- package/dist/env-vars-CD2_baIP.js +43 -0
- package/dist/env-vars-a7S70ba7.js +43 -0
- package/dist/errors-CdmXrBic.js +35 -0
- package/dist/errors-Cr_NbOb4.js +35 -0
- package/dist/exec-D_s-zAtY.js +164 -0
- package/dist/exec-Zz6eJ6YU.js +164 -0
- package/dist/export-html/template.css +0 -36
- package/dist/export-html/template.js +1 -32
- package/dist/extensionAPI.js +1126 -133
- package/dist/fetch-C0Kt-OTD.js +67 -0
- package/dist/fetch-DRVdxxEj.js +67 -0
- package/dist/fetch-DTR2MlOk.js +67 -0
- package/dist/file-lock-6NXMPZTT.js +107 -0
- package/dist/file-lock-C_KRlR7M.js +107 -0
- package/dist/fs-safe-DZHpH7TI.js +98 -0
- package/dist/fs-safe-vm3JMUkq.js +88 -0
- package/dist/gateway-cli-CNBEuTi7.js +24347 -0
- package/dist/gateway-cli-D8h_MX6P.js +24351 -0
- package/dist/gateway-rpc-BCFkQPa2.js +28 -0
- package/dist/gateway-rpc-DOgYbsOG.js +28 -0
- package/dist/gmail-setup-utils-CaCw59UH.js +423 -0
- package/dist/gmail-setup-utils-Esi4W52F.js +422 -0
- package/dist/health-CBusRcqc.js +1417 -0
- package/dist/health-QDyYt942.js +1414 -0
- package/dist/heartbeat-visibility-BjkWJxq6.js +125 -0
- package/dist/heartbeat-visibility-Cg_NtXtE.js +125 -0
- package/dist/helpers-CGZx9FJd.js +10 -0
- package/dist/helpers-b1jzdNE7.js +10 -0
- package/dist/hook-runner-global-C0DFQmQw.js +527 -0
- package/dist/hooks-cli-Dx9gOIX8.js +1225 -0
- package/dist/hooks-cli-K-N__uX4.js +1221 -0
- package/dist/host-env-security-BGibnCbS.js +106 -0
- package/dist/host-env-security-axRnIi8d.js +106 -0
- package/dist/image-ops-B9ofmzSq.js +354 -0
- package/dist/image-ops-CMuvRsMY.js +354 -0
- package/dist/import-CeK_fKST.js +604 -0
- package/dist/import-DMBcRq13.js +606 -0
- package/dist/inbound-context-BLy-G2Eq.js +68 -0
- package/dist/inbound-context-CmmmT8IP.js +68 -0
- package/dist/inbound-path-policy-BdmTOUka.js +90 -0
- package/dist/inbound-path-policy-BurOAu44.js +90 -0
- package/dist/index.js +106 -103
- package/dist/inspect-BK1tKJHb.js +286 -0
- package/dist/inspect-DBREkI_G.js +286 -0
- package/dist/installs-BYABRozP.js +325 -0
- package/dist/installs-CoZboJSz.js +325 -0
- package/dist/ipv4-B7xPGk8R.js +46 -0
- package/dist/ipv4-Y373I4Sy.js +46 -0
- package/dist/ir-CaxTklDC.js +940 -0
- package/dist/json-files-CfhnuGaC.js +46 -0
- package/dist/lifecycle-core-BiImPUqN.js +474 -0
- package/dist/lifecycle-core-DhR4-w4Q.js +476 -0
- package/dist/loader-DCBZ8gN2.js +22401 -0
- package/dist/loader-Dd7Cl24B.js +22404 -0
- package/dist/local-roots-CrJ_Jv_G.js +314 -0
- package/dist/local-roots-n_Y4iYwb.js +313 -0
- package/dist/logger-B8yHnzPl.js +49 -0
- package/dist/logging-BiuZwq5D.js +1 -0
- package/dist/logging-JZEg5nDp.js +1 -0
- package/dist/login-C99fsB0N.js +61 -0
- package/dist/login-cLvGPjeO.js +62 -0
- package/dist/login-qr-BAq-OGnv.js +325 -0
- package/dist/login-qr-BH1GPRt0.js +329 -0
- package/dist/logs-cli-CukoNyQ2.js +240 -0
- package/dist/logs-cli-D7GEvBIc.js +236 -0
- package/dist/markdown-tables-58Hq__7K.js +29 -0
- package/dist/markdown-tables-GFEX0OR6.js +29 -0
- package/dist/media-Bj2S2t91.js +10452 -0
- package/dist/media-CFsyXs3H.js +940 -0
- package/dist/message-action-names-CFl6mreB.js +2521 -0
- package/dist/message-action-names-DngGaJR0.js +2521 -0
- package/dist/message-channel-FMNRI5Ax.js +91 -0
- package/dist/message-channel-tuc9CdEw.js +91 -0
- package/dist/net-BEFkF-nI.js +225 -0
- package/dist/net-CNsUGiSw.js +225 -0
- package/dist/node-cli-BNnJAzRx.js +1458 -0
- package/dist/node-cli-pCw87J46.js +1462 -0
- package/dist/node-service-DJRZflx8.js +67 -0
- package/dist/node-service-GmW3_BfS.js +67 -0
- package/dist/nodes-cli-CIAUxdc0.js +1350 -0
- package/dist/nodes-cli-TzMjNiS1.js +1346 -0
- package/dist/nodes-screen-CFQjs8MT.js +250 -0
- package/dist/nodes-screen-DWZW8GM2.js +250 -0
- package/dist/note-BDIews1m.js +92 -0
- package/dist/note-Nm8KaHZU.js +92 -0
- package/dist/npm-registry-spec-BvfH5h_W.js +786 -0
- package/dist/npm-registry-spec-JNJIF0sj.js +786 -0
- package/dist/npm-resolution-BKF5UOfb.js +86 -0
- package/dist/npm-resolution-CbILViog.js +86 -0
- package/dist/onboard-CRbh4DgN.js +436 -0
- package/dist/onboard-IWFW8JdN.js +438 -0
- package/dist/onboard-channels-D6QHtbux.js +2547 -0
- package/dist/onboard-channels-ZfIB3AQ7.js +2548 -0
- package/dist/onboard-helpers-CpaqhBRc.js +363 -0
- package/dist/onboard-helpers-SCO3k5Y8.js +364 -0
- package/dist/onboard-remote-BuNPRJ5F.js +127 -0
- package/dist/onboard-remote-qen5mdEh.js +127 -0
- package/dist/onboarding-Bfrfm9h3.js +586 -0
- package/dist/onboarding-BwamheyW.js +588 -0
- package/dist/onboarding.finalize-DmQVHUeh.js +402 -0
- package/dist/onboarding.finalize-OhTirY4S.js +404 -0
- package/dist/onboarding.gateway-config-Bnhzp671.js +201 -0
- package/dist/onboarding.gateway-config-CrAPZ-KT.js +195 -0
- package/dist/outbound-CcaPcetn.js +220 -0
- package/dist/outbound-CeiW8z3a.js +221 -0
- package/dist/outbound-attachment-BXV5BWfH.js +18 -0
- package/dist/outbound-attachment-Ba4U62Y0.js +18 -0
- package/dist/outbound-attachment-CZ7zoYxB.js +18 -0
- package/dist/pairing-cli-Cfas8mtn.js +125 -0
- package/dist/pairing-cli-DPYlR__9.js +129 -0
- package/dist/pairing-labels-3wDxaApH.js +9 -0
- package/dist/pairing-labels-iJmT0otM.js +9 -0
- package/dist/pairing-store-CdY7iRS0.js +459 -0
- package/dist/pairing-store-DykkYpQ7.js +460 -0
- package/dist/path-env-Cqo5LZmw.js +89 -0
- package/dist/path-env-GTM4HXCN.js +89 -0
- package/dist/path-safety-Cp7nWVMJ.js +14 -0
- package/dist/path-safety-Dtu7zu8V.js +14 -0
- package/dist/plugin-auto-enable-BuGRHS7-.js +301 -0
- package/dist/plugin-auto-enable-CLfBNuVK.js +302 -0
- package/dist/plugin-registry-DEp-56qo.js +33 -0
- package/dist/plugin-registry-eDrBvMCH.js +33 -0
- package/dist/plugin-sdk/agents/agent-helpers.d.ts +0 -1
- package/dist/plugin-sdk/agents/agent-scope.d.ts +10 -0
- package/dist/plugin-sdk/agents/agent-types.d.ts +1 -6
- package/dist/plugin-sdk/agents/agent-utils.d.ts +0 -14
- package/dist/plugin-sdk/agents/provider-utils.d.ts +0 -1
- package/dist/plugin-sdk/agents/subagent-spawn.d.ts +0 -1
- package/dist/plugin-sdk/agents/tools/sessions-helpers.d.ts +0 -1
- package/dist/plugin-sdk/auth/constants.d.ts +15 -0
- package/dist/plugin-sdk/auth/display.d.ts +7 -0
- package/dist/plugin-sdk/auth/doctor.d.ts +8 -0
- package/dist/plugin-sdk/auth/env-injection.d.ts +38 -0
- package/dist/plugin-sdk/auth/index.d.ts +10 -0
- package/dist/plugin-sdk/auth/oauth.d.ts +13 -0
- package/dist/plugin-sdk/auth/order.d.ts +8 -0
- package/dist/plugin-sdk/auth/paths.d.ts +3 -0
- package/dist/plugin-sdk/auth/profiles.d.ts +11 -0
- package/dist/plugin-sdk/auth/provider-auth.d.ts +38 -0
- package/dist/plugin-sdk/auth/session-override.d.ts +17 -0
- package/dist/plugin-sdk/auth/store.d.ts +7 -0
- package/dist/plugin-sdk/auth/types.d.ts +45 -0
- package/dist/plugin-sdk/auth/usage.d.ts +80 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-execution.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +0 -2
- package/dist/plugin-sdk/auto-reply/reply/commands-status.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/commands-types.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.auth.d.ts +1 -2
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.levels.d.ts +1 -7
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.params.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.parse.d.ts +1 -7
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.persist.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.shared.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directives.d.ts +3 -15
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-apply.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +1 -6
- package/dist/plugin-sdk/auto-reply/reply/get-reply-inline-actions.d.ts +1 -5
- package/dist/plugin-sdk/auto-reply/reply/get-reply-run.d.ts +1 -5
- package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +1 -3
- package/dist/plugin-sdk/auto-reply/reply/response-prefix-template.d.ts +4 -6
- package/dist/plugin-sdk/auto-reply/reply/session-run-accounting.d.ts +0 -7
- package/dist/plugin-sdk/auto-reply/reply/session-updates.d.ts +0 -10
- package/dist/plugin-sdk/auto-reply/reply.d.ts +1 -1
- package/dist/plugin-sdk/auto-reply/status.d.ts +3 -7
- package/dist/plugin-sdk/auto-reply/thinking.d.ts +0 -11
- package/dist/plugin-sdk/auto-reply/types.d.ts +1 -2
- package/dist/plugin-sdk/commands/agent/session.d.ts +1 -2
- package/dist/plugin-sdk/config/defaults.d.ts +0 -1
- package/dist/plugin-sdk/config/sessions/types.d.ts +0 -8
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +28 -112
- package/dist/plugin-sdk/config/types.agents.d.ts +8 -0
- package/dist/plugin-sdk/config/types.messages.d.ts +1 -2
- package/dist/plugin-sdk/config/types.remoteclaw.d.ts +2 -2
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +8 -66
- package/dist/plugin-sdk/config/zod-schema.agent-runtime.d.ts +5 -13
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +11 -76
- package/dist/plugin-sdk/config/zod-schema.d.ts +12 -77
- package/dist/plugin-sdk/daemon/constants.d.ts +2 -2
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +1 -3
- package/dist/plugin-sdk/gateway/protocol/schema/sessions.d.ts +0 -2
- package/dist/plugin-sdk/gateway/server/ws-types.d.ts +2 -0
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +0 -2
- package/dist/plugin-sdk/index.js +105 -120
- package/dist/plugin-sdk/infra/agent-events.d.ts +1 -1
- package/dist/plugin-sdk/infra/provider-usage.auth.d.ts +0 -1
- package/dist/plugin-sdk/infra/provider-usage.load.d.ts +0 -1
- package/dist/plugin-sdk/media-understanding/defaults.d.ts +1 -2
- package/dist/plugin-sdk/media-understanding/providers/deepgram/audio.d.ts +1 -4
- package/dist/plugin-sdk/media-understanding/providers/google/audio.d.ts +1 -3
- package/dist/plugin-sdk/media-understanding/providers/openai/audio.d.ts +1 -3
- package/dist/plugin-sdk/media-understanding/types.d.ts +3 -18
- package/dist/plugin-sdk/middleware/auth-key-retry.d.ts +31 -0
- package/dist/plugin-sdk/middleware/channel-bridge.d.ts +4 -0
- package/dist/plugin-sdk/middleware/error-classifier.d.ts +5 -0
- package/dist/plugin-sdk/middleware/media-capability.d.ts +21 -0
- package/dist/plugin-sdk/middleware/media-resolver.d.ts +12 -0
- package/dist/plugin-sdk/middleware/runtime-factory.d.ts +42 -0
- package/dist/plugin-sdk/middleware/runtimes/claude.d.ts +4 -0
- package/dist/plugin-sdk/middleware/runtimes/codex.d.ts +5 -0
- package/dist/plugin-sdk/middleware/runtimes/gemini.d.ts +4 -0
- package/dist/plugin-sdk/middleware/runtimes/opencode.d.ts +5 -0
- package/dist/plugin-sdk/middleware/types.d.ts +41 -1
- package/dist/plugin-sdk/plugins/types.d.ts +1 -1
- package/dist/plugin-sdk/stt/defaults.d.ts +2 -0
- package/dist/plugin-sdk/stt/preflight.d.ts +16 -0
- package/dist/plugin-sdk/stt/providers/deepgram/audio.d.ts +4 -0
- package/dist/plugin-sdk/stt/providers/deepgram/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/google/audio.d.ts +3 -0
- package/dist/plugin-sdk/stt/providers/google/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/groq/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/index.d.ts +4 -0
- package/dist/plugin-sdk/stt/providers/mistral/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/openai/audio.d.ts +3 -0
- package/dist/plugin-sdk/stt/providers/openai/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/shared.d.ts +1 -0
- package/dist/plugin-sdk/stt/stt.d.ts +27 -0
- package/dist/plugin-sdk/stt/types.d.ts +22 -0
- package/dist/plugin-sdk/tts/tts.d.ts +3 -3
- package/dist/plugins-7B167wIj.js +453 -0
- package/dist/plugins-BRHOfy1Z.js +455 -0
- package/dist/plugins-cli-BvRGvufE.js +797 -0
- package/dist/plugins-cli-aI4bjnQ4.js +801 -0
- package/dist/ports-CAqyeQYZ.js +316 -0
- package/dist/ports-CTUgXF2d.js +96 -0
- package/dist/ports-DLPAW42A.js +96 -0
- package/dist/ports-DqfnVnCw.js +370 -0
- package/dist/preflight-Bj0s82gR.js +64 -0
- package/dist/preflight-x_CMwa17.js +68 -0
- package/dist/program-COwy4sJS.js +248 -0
- package/dist/program-context-D9cxxxLY.js +474 -0
- package/dist/progress-BOdRbOHD.js +124 -0
- package/dist/prompt-select-styled-6MqsW5bZ.js +1648 -0
- package/dist/prompt-select-styled-uxLmoEua.js +1651 -0
- package/dist/provider-dispatcher-Cy2Isoz1.js +659 -0
- package/dist/provider-dispatcher-I3K1YmY3.js +660 -0
- package/dist/push-apns-KJ97wv09.js +713 -0
- package/dist/push-apns-NnGGNBCY.js +711 -0
- package/dist/pw-ai-CnN2sITD.js +1908 -0
- package/dist/pw-ai-fnX3cecw.js +1911 -0
- package/dist/qr-cli-B7LLp7Uo.js +353 -0
- package/dist/qr-cli-CcvOgLQ1.js +349 -0
- package/dist/redact-snapshot-CuSk1PiF.js +2016 -0
- package/dist/redact-snapshot-DsfhbREd.js +2016 -0
- package/dist/register.agent-B0aT5KAm.js +290 -0
- package/dist/register.agent-DbTAbTF7.js +1018 -0
- package/dist/register.configure-Bg5pK0p7.js +128 -0
- package/dist/register.configure-DHm-bmFr.js +133 -0
- package/dist/register.import-C059WtC6.js +31 -0
- package/dist/register.import-DHOWhJbR.js +29 -0
- package/dist/register.maintenance-CBdNBh2k.js +500 -0
- package/dist/register.maintenance-_jnyzREO.js +498 -0
- package/dist/register.message-BhkqTcxt.js +685 -0
- package/dist/register.message-CTj5j1Gh.js +689 -0
- package/dist/register.onboard-6RmDaVze.js +261 -0
- package/dist/register.onboard-DFcMuO4e.js +265 -0
- package/dist/register.setup-BhAJcFcx.js +117 -0
- package/dist/register.setup-BpQpGPcS.js +113 -0
- package/dist/register.status-health-sessions-BDDOQjxJ.js +668 -0
- package/dist/register.status-health-sessions-CqUJ7FNe.js +428 -0
- package/dist/register.subclis-VFXvj7dx.js +267 -0
- package/dist/replies-B58ewStm.js +136 -0
- package/dist/replies-LSx_XhsP.js +136 -0
- package/dist/reply-BY4A8j7Z.js +13715 -0
- package/dist/reply-C1ydfb_h.js +13718 -0
- package/dist/reply-directives-Cz7622Qx.js +182 -0
- package/dist/reply-directives-ssnaPNiU.js +182 -0
- package/dist/reply-payloads-CQMtrphw.js +527 -0
- package/dist/reply-prefix-CWcAZKhE.js +37 -0
- package/dist/reply-prefix-Drq7Pf3A.js +37 -0
- package/dist/resolve-route-B8uIc2H3.js +249 -0
- package/dist/resolve-route-C8ooNlI4.js +249 -0
- package/dist/response-prefix-template-D3ZcJP4E.js +134 -0
- package/dist/response-prefix-template-DPOggmPO.js +134 -0
- package/dist/retry-BMUvSHT-.js +77 -0
- package/dist/run-main-BwtU9LeR.js +306 -0
- package/dist/runner-BQat0D_4.js +2394 -0
- package/dist/runner-CzEWYvcp.js +2394 -0
- package/dist/runtime-guard-CK80eucm.js +60 -0
- package/dist/runtime-status-CM4rzyfO.js +12 -0
- package/dist/runtime-status-CcDMsddE.js +12 -0
- package/dist/secure-random-pF_q3xhf.js +44 -0
- package/dist/security-cli-CPPCeteZ.js +487 -0
- package/dist/security-cli-dGXRUT_F.js +482 -0
- package/dist/send-9Huf62k3.js +2245 -0
- package/dist/send-B9mIJdUo.js +547 -0
- package/dist/send-C7lqywdv.js +374 -0
- package/dist/send-CXj20hiJ.js +332 -0
- package/dist/send-C_RLMTgb.js +11 -0
- package/dist/send-Casi9Q0G.js +492 -0
- package/dist/send-ChvasRSh.js +1779 -0
- package/dist/send-CwcHjhXw.js +426 -0
- package/dist/send-DAEzDqyo.js +547 -0
- package/dist/send-DT-HD0B8.js +1776 -0
- package/dist/send-DWf7BCPe.js +492 -0
- package/dist/send-Dd2_MykI.js +2245 -0
- package/dist/send-DheZejq2.js +29 -0
- package/dist/send-Dt4C-KXH.js +349 -0
- package/dist/send-eIbBsLlB.js +1174 -0
- package/dist/send-vvZXksNU.js +349 -0
- package/dist/server-BrzR9JmX.js +206 -0
- package/dist/server-_h27-uP_.js +202 -0
- package/dist/server-lifecycle-CUdA6Far.js +2437 -0
- package/dist/server-lifecycle-DQZWL8iP.js +2437 -0
- package/dist/server-node-events-6XFKuq3Y.js +392 -0
- package/dist/server-node-events-D29jcNbz.js +396 -0
- package/dist/service-Z0W9IHDW.js +670 -0
- package/dist/service-aV0YmkBw.js +670 -0
- package/dist/session-BIAOl5QR.js +170 -0
- package/dist/session-Wu00pCn_.js +170 -0
- package/dist/session-cost-usage-7plmOKbs.js +627 -0
- package/dist/session-cost-usage-CPFxBFUg.js +627 -0
- package/dist/session-dirs-BLLxW3ZS.js +318 -0
- package/dist/session-dirs-CVihy8Ai.js +318 -0
- package/dist/session-utils-90yswubs.js +622 -0
- package/dist/session-utils-D8GljJ55.js +622 -0
- package/dist/sessions-ZRmCDdj1.js +2569 -0
- package/dist/sessions-usKmYetT.js +247 -0
- package/dist/shell-env-DBS5su07.js +163 -0
- package/dist/shell-env-DYZq9PqC.js +163 -0
- package/dist/ssrf-B-rF_tZB.js +183 -0
- package/dist/ssrf-DJW14Wkh.js +183 -0
- package/dist/status-B1RE8YnT.js +1979 -0
- package/dist/status-Dy4u3bpY.js +1983 -0
- package/dist/status.update-B96J4HaE.js +449 -0
- package/dist/status.update-BjBbgwxn.js +449 -0
- package/dist/store-B5989JkX.js +64 -0
- package/dist/store-DCrrxHyS.js +2571 -0
- package/dist/store-IFJqgD2Q.js +53 -0
- package/dist/store-Ql6vAcsg.js +64 -0
- package/dist/subagent-registry-BGknZEUI.js +4856 -0
- package/dist/subagent-registry-CGhMOYVx.js +4854 -0
- package/dist/subsystem-PQ64_nsu.js +1136 -0
- package/dist/subsystem-SgROXN1v.js +1079 -0
- package/dist/system-cli-Cfk2ankT.js +77 -0
- package/dist/system-cli-feOkmeNQ.js +73 -0
- package/dist/systemd-B6BCzznn.js +547 -0
- package/dist/systemd-BhQdjwJw.js +547 -0
- package/dist/systemd-hints-B8d0fce2.js +278 -0
- package/dist/systemd-hints-C5dlAJ5Z.js +278 -0
- package/dist/systemd-linger-B42HZhnk.js +75 -0
- package/dist/systemd-linger-D1Jtwxar.js +75 -0
- package/dist/table-CzC1hpWo.js +279 -0
- package/dist/tables-CO_kxD0e.js +55 -0
- package/dist/tables-Du1Gu0aG.js +55 -0
- package/dist/tables-WZp8Vt9n.js +55 -0
- package/dist/tailnet-CfZhpSnt.js +40 -0
- package/dist/tailnet-D0NV0tRJ.js +40 -0
- package/dist/tailscale-B__xvMjA.js +230 -0
- package/dist/tailscale-q_ZrxUCc.js +230 -0
- package/dist/targets-B4rMyQFJ.js +53 -0
- package/dist/targets-BHYLCv06.js +2534 -0
- package/dist/targets-BjWhDMJM.js +650 -0
- package/dist/targets-CHwGDIgO.js +650 -0
- package/dist/targets-D3WkRcT8.js +120 -0
- package/dist/targets-DkmiOlPe.js +220 -0
- package/dist/targets-bqjVeCnF.js +2535 -0
- package/dist/targets-mqj9GNg1.js +53 -0
- package/dist/targets-tDrl_ioQ.js +46 -0
- package/dist/thinking-BqJmU6Zp.js +88 -0
- package/dist/thinking-l-rrvZwu.js +88 -0
- package/dist/tool-display-C0hpLmkw.js +785 -0
- package/dist/tool-display-CQTRHo3Z.js +785 -0
- package/dist/tool-images-BYY11Gw3.js +263 -0
- package/dist/tool-images-CnJ0R8Fo.js +263 -0
- package/dist/trash-C0mjnHuW.js +125 -0
- package/dist/trash-Cgwc9mLD.js +125 -0
- package/dist/tui-DmstEnnX.js +3282 -0
- package/dist/tui-Dngv7ykt.js +3282 -0
- package/dist/tui-cli-D2dJs5Fl.js +62 -0
- package/dist/tui-cli-azwehnLo.js +66 -0
- package/dist/update-B7nMMqp1.js +349 -0
- package/dist/update-C1-XOYtz.js +349 -0
- package/dist/update-cli-BmI_TMNi.js +1147 -0
- package/dist/update-cli-BxtNSw_X.js +1145 -0
- package/dist/usage-BOEcX9lB.js +5448 -0
- package/dist/version-3QUZW8EP.js +52 -0
- package/dist/version-CVMnqdzu.js +52 -0
- package/dist/web-CSur3l1X.js +74 -0
- package/dist/web-DABJ4byB.js +79 -0
- package/dist/web-Dkbd0w1V.js +3070 -0
- package/dist/webhooks-cli-CzSeHHov.js +334 -0
- package/dist/webhooks-cli-DDeU_DV5.js +330 -0
- package/dist/whatsapp-actions-3NdzsNg1.js +130 -0
- package/dist/whatsapp-actions-y_1vjkYY.js +125 -0
- package/dist/workspace-DW1ofNbI.js +447 -0
- package/dist/workspace-aStQsS6k.js +449 -0
- package/dist/zod-schema-CbqZAIYy.js +2696 -0
- package/dist/zod-schema-YGQJEcnj.js +2696 -0
- package/extensions/matrix/src/matrix/monitor/replies.ts +0 -24
- package/extensions/mattermost/src/mattermost/monitor-helpers.ts +0 -1
- package/package.json +3 -3
- package/dist/accounts-6bE7_6RL.js +0 -32
- package/dist/accounts-B1aJFYXr.js +0 -272
- package/dist/accounts-BTXSfPWi.js +0 -270
- package/dist/accounts-BxGS70Do.js +0 -36
- package/dist/accounts-CNY1TGj1.js +0 -47
- package/dist/accounts-Cl_cFv9X.js +0 -47
- package/dist/accounts-Dn9h7HHT.js +0 -36
- package/dist/ack-reactions-C5kPZvda.js +0 -446
- package/dist/ack-reactions-obWeK7Rw.js +0 -446
- package/dist/acp-cli-B-wqDGbE.js +0 -1326
- package/dist/acp-cli-BWhVu-KY.js +0 -1320
- package/dist/active-listener-VzhWW8W6.js +0 -37
- package/dist/active-listener-z0qVEcom.js +0 -37
- package/dist/agent-D0tKpxob.js +0 -731
- package/dist/agent-DfNHqNSe.js +0 -732
- package/dist/agent-helpers-CTx5KKJu.js +0 -606
- package/dist/agent-helpers-D_9mS2Ti.js +0 -606
- package/dist/agent-scope-9WY5O-KK.js +0 -121
- package/dist/agent-scope-C50VuLKh.js +0 -119
- package/dist/agents-VeVj5NN9.js +0 -788
- package/dist/agents.config-BPGQ3Qyn.js +0 -116
- package/dist/agents.config-p3V3b9u6.js +0 -116
- package/dist/ansi-D04X81yq.js +0 -14
- package/dist/audio-DPOuhNq7.js +0 -43
- package/dist/audio-VBcVDa08.js +0 -43
- package/dist/audio-preflight-BwmCYeuM.js +0 -64
- package/dist/audio-preflight-Dj6hBcFR.js +0 -69
- package/dist/audit-C1GUK9MZ.js +0 -3138
- package/dist/audit-CakTmUvV.js +0 -3138
- package/dist/auth-C6VDYgb7.js +0 -448
- package/dist/auth-Deh9i9Eg.js +0 -448
- package/dist/auth-profiles-BquJGKLC.js +0 -279
- package/dist/auth-profiles-CeDgZz_7.js +0 -281
- package/dist/banner-D0g6Jqg7.js +0 -294
- package/dist/binaries-X6FW-wD4.js +0 -13
- package/dist/bindings-B582pDIa.js +0 -69
- package/dist/bindings-CRU_udk8.js +0 -69
- package/dist/bonjour-discovery-BtPaR8vb.js +0 -378
- package/dist/bonjour-discovery-DuhiIZZx.js +0 -378
- package/dist/browser-cli-ZGejewVU.js +0 -1692
- package/dist/browser-cli-apM-sb95.js +0 -1687
- package/dist/call-C1c3rcy7.js +0 -2828
- package/dist/call-EndUQoN2.js +0 -2829
- package/dist/catalog-BMf9kYo4.js +0 -185
- package/dist/catalog-DTOwqzdA.js +0 -185
- package/dist/channel-account-context-CjXyzMXE.js +0 -550
- package/dist/channel-account-context-CvIDAtHS.js +0 -550
- package/dist/channel-activity-BZbNMyql.js +0 -292
- package/dist/channel-activity-BeRrcCd8.js +0 -94
- package/dist/channel-activity-DTKGf3j5.js +0 -94
- package/dist/channel-options-A-6mAxk3.js +0 -33
- package/dist/channel-options-CUMGATrC.js +0 -32
- package/dist/channel-selection-CJXZTxae.js +0 -51
- package/dist/channel-selection-NNPbxnyZ.js +0 -51
- package/dist/channel-web-BI274Kbc.js +0 -2136
- package/dist/channel-web-tkULzsN2.js +0 -2134
- package/dist/channels-cli-GMS9bQeR.js +0 -1421
- package/dist/channels-cli-GQ1h5nQo.js +0 -1426
- package/dist/channels-status-issues-BDAHISWe.js +0 -18
- package/dist/channels-status-issues-DwRDzwrV.js +0 -18
- package/dist/chat-envelope-DEZ-5RY8.js +0 -248
- package/dist/chat-envelope-el7Uo-Fe.js +0 -248
- package/dist/chrome-5KCwEdqq.js +0 -1733
- package/dist/chrome-bU1D1n_G.js +0 -1732
- package/dist/chunk-CSQfUhgF.js +0 -341
- package/dist/chunk-DAjFKt2g.js +0 -341
- package/dist/clack-prompter-CCFnKP_1.js +0 -121
- package/dist/clack-prompter-CabwzmG4.js +0 -122
- package/dist/cli-BRKebcMX.js +0 -130
- package/dist/cli-DaI8rboT.js +0 -125
- package/dist/clipboard-B2j4qGIl.js +0 -31
- package/dist/clipboard-Dzkx6Q2K.js +0 -31
- package/dist/command-format-CVfo8I5f.js +0 -18
- package/dist/command-format-DgXcqxBt.js +0 -32
- package/dist/command-registry-DGcTGjBl.js +0 -215
- package/dist/commands-C2uNKRTf.js +0 -41
- package/dist/commands-CDonBOrw.js +0 -41
- package/dist/commands-registry-BvESmXoK.js +0 -893
- package/dist/commands-registry-CWJv6xe2.js +0 -892
- package/dist/common-Cp3rsBqx.js +0 -156
- package/dist/common-DSVmydhm.js +0 -156
- package/dist/completion-cli-BHimaCdU.js +0 -452
- package/dist/completion-cli-C2ej-NKQ.js +0 -452
- package/dist/config-CKjn6ORX.js +0 -6953
- package/dist/config-Dx2muBSJ.js +0 -6955
- package/dist/config-cli-DPSj7xEW.js +0 -246
- package/dist/config-cli-uCJAolq3.js +0 -241
- package/dist/config-guard-C2g3LlWk.js +0 -75
- package/dist/config-guard-D1htIUcx.js +0 -97
- package/dist/config-validation-CqVJLiYT.js +0 -18
- package/dist/config-validation-D3Up1-Pq.js +0 -18
- package/dist/configure-CExN5RUz.js +0 -891
- package/dist/configure-sLl4dSHU.js +0 -889
- package/dist/constants-BmRFoHl0.js +0 -67
- package/dist/constants-C9WPAluB.js +0 -67
- package/dist/control-auth--fCnBrmu.js +0 -397
- package/dist/control-auth-894Ezu61.js +0 -397
- package/dist/control-ui/assets/index-B4ZM1lW1.js +0 -7738
- package/dist/control-ui/assets/index-B4ZM1lW1.js.map +0 -1
- package/dist/control-ui/assets/index-PED72sKF.css +0 -1
- package/dist/control-ui-assets-Cx_mw4D0.js +0 -186
- package/dist/control-ui-assets-D4yaD8jm.js +0 -186
- package/dist/conversation-label-C4SDz4sT.js +0 -36
- package/dist/conversation-label-D1frnvYe.js +0 -36
- package/dist/cron-cli-CzNB7gey.js +0 -495
- package/dist/cron-cli-kN6pZBMh.js +0 -490
- package/dist/daemon-cli-Bf5va8oF.js +0 -1199
- package/dist/daemon-cli-TuWhoQ3H.js +0 -1197
- package/dist/daemon-install-CcohRvKV.js +0 -55
- package/dist/daemon-install-DrTvAWhM.js +0 -60
- package/dist/daemon-install-helpers-CFGAfRlj.js +0 -462
- package/dist/daemon-install-helpers-DIUzSFG1.js +0 -462
- package/dist/defaults-B5KStIBg.js +0 -7
- package/dist/defaults-xUAL2Z-F.js +0 -7
- package/dist/deliver-Dm7GkHXJ.js +0 -481
- package/dist/deliver-wTlFm59G.js +0 -481
- package/dist/delivery-queue-Cfa9Wmxp.js +0 -244
- package/dist/delivery-queue-CxVRi4tw.js +0 -244
- package/dist/devices-cli-CAcVSiHC.js +0 -316
- package/dist/devices-cli-rX6imHCj.js +0 -321
- package/dist/diagnostics-HGkN467d.js +0 -46
- package/dist/diagnostics-VC0cz7kX.js +0 -46
- package/dist/directory-cli-D83Q7y5H.js +0 -222
- package/dist/directory-cli-DVfyUHCz.js +0 -217
- package/dist/dm-policy-shared-BBfEyAN1.js +0 -22
- package/dist/dm-policy-shared-D8lgnmrC.js +0 -22
- package/dist/dns-cli-5SrjpIcy.js +0 -197
- package/dist/dns-cli-Canj4LtY.js +0 -202
- package/dist/dock-BqNINg7k.js +0 -928
- package/dist/dock-O8ArYwed.js +0 -929
- package/dist/doctor-completion-BuPeaJgR.js +0 -92
- package/dist/doctor-completion-CVwczO1U.js +0 -92
- package/dist/doctor-config-flow-DXnCqDd9.js +0 -1933
- package/dist/doctor-config-flow-DZG6oOAj.js +0 -1934
- package/dist/enable-DMIq6evt.js +0 -59
- package/dist/enable-ibNq4UWy.js +0 -59
- package/dist/env-Br2Bl6Ht.js +0 -60
- package/dist/env-vars-7aZqKPhk.js +0 -93
- package/dist/env-vars-CLGbxdpL.js +0 -93
- package/dist/errors-BpAidYqH.js +0 -35
- package/dist/errors-DZ199hOo.js +0 -35
- package/dist/exec-C6ACg_Mn.js +0 -164
- package/dist/exec-DkFE7lqU.js +0 -164
- package/dist/fetch-BFuS-EfP.js +0 -67
- package/dist/fetch-C6XKGA11.js +0 -67
- package/dist/fetch-CEDsOiql.js +0 -67
- package/dist/file-lock-CIvloidc.js +0 -107
- package/dist/file-lock-CzBL_VIx.js +0 -107
- package/dist/fs-safe-DSwT85uK.js +0 -88
- package/dist/fs-safe-DkBhNAc3.js +0 -98
- package/dist/gateway-cli-Ci9M4Tnt.js +0 -23742
- package/dist/gateway-cli-DNr539Bh.js +0 -23747
- package/dist/gateway-rpc-BxH8V6gB.js +0 -28
- package/dist/gateway-rpc-CMsfRKML.js +0 -28
- package/dist/gmail-setup-utils-BPmUIqso.js +0 -423
- package/dist/gmail-setup-utils-Cnx8A5pW.js +0 -422
- package/dist/health-DeNxtGCn.js +0 -1420
- package/dist/health-DwKPQOTn.js +0 -1423
- package/dist/heartbeat-visibility-BvJaUOFC.js +0 -125
- package/dist/heartbeat-visibility-EBPnhcaa.js +0 -125
- package/dist/helpers-R7bU5IBz.js +0 -10
- package/dist/helpers-kkeXif0Q.js +0 -10
- package/dist/hook-runner-global-BSklbS52.js +0 -527
- package/dist/hooks-cli-BuWpetaT.js +0 -1222
- package/dist/hooks-cli-C1BG-IlR.js +0 -1217
- package/dist/host-env-security-Bms2_EMV.js +0 -92
- package/dist/host-env-security-szwfmhC4.js +0 -92
- package/dist/image-ops-DRdKC0uO.js +0 -354
- package/dist/image-ops-DWytvdh_.js +0 -354
- package/dist/import-B6Xn6yAg.js +0 -248
- package/dist/import-CIIB1Q1J.js +0 -250
- package/dist/inbound-context-CPkkQW0i.js +0 -68
- package/dist/inbound-context-DS_kpIYI.js +0 -68
- package/dist/inbound-path-policy-C_Qo8rqg.js +0 -250
- package/dist/inbound-path-policy-sdr5Ji0k.js +0 -250
- package/dist/inspect-B1Fq39RC.js +0 -559
- package/dist/inspect-Dt8hogS3.js +0 -559
- package/dist/installs-B1rNHwnF.js +0 -325
- package/dist/installs-ClyOD2BY.js +0 -325
- package/dist/ipv4--2WXMVtE.js +0 -46
- package/dist/ipv4-CDQpx1A7.js +0 -46
- package/dist/ir-Ch9FC9Z_.js +0 -940
- package/dist/json-files-DzpTak5i.js +0 -46
- package/dist/loader-Bkhoi4yR.js +0 -22621
- package/dist/loader-DrZ6VM0f.js +0 -22624
- package/dist/local-roots-BrH0Q63K.js +0 -313
- package/dist/local-roots-z2u_s7jG.js +0 -314
- package/dist/logger-pznB_IdT.js +0 -49
- package/dist/login-BIgEFDBJ.js +0 -61
- package/dist/login-CqST6Yyp.js +0 -62
- package/dist/login-qr-ChZo1oB2.js +0 -327
- package/dist/login-qr-lciTI8Ue.js +0 -322
- package/dist/logs-cli-B4DaUuwW.js +0 -238
- package/dist/logs-cli-BBWcmNEs.js +0 -233
- package/dist/markdown-tables-hhOWaw8L.js +0 -29
- package/dist/markdown-tables-jrnSPvZ6.js +0 -29
- package/dist/media-BrtsoHDf.js +0 -10499
- package/dist/media-DN7yRfrH.js +0 -940
- package/dist/message-action-names-DYTTi8gx.js +0 -2521
- package/dist/message-action-names-oFjla2Uc.js +0 -2521
- package/dist/message-channel-BlYrtmIp.js +0 -91
- package/dist/message-channel-uWMAiywE.js +0 -91
- package/dist/net-Cg8AQeke.js +0 -225
- package/dist/net-D6D0wgcF.js +0 -225
- package/dist/node-cli-Q2-n3Fgv.js +0 -24
- package/dist/node-cli-Uf6lAntf.js +0 -24
- package/dist/nodes-cli-BAYWaRF9.js +0 -1348
- package/dist/nodes-cli-C0b4ae_w.js +0 -1343
- package/dist/nodes-screen-Bmp1l9wY.js +0 -250
- package/dist/nodes-screen-Cw7Hv7M2.js +0 -250
- package/dist/note-DR8A0G5H.js +0 -92
- package/dist/note-Dlv4NmlQ.js +0 -92
- package/dist/npm-registry-spec-COvUzy5J.js +0 -786
- package/dist/npm-registry-spec-Cobb5KYR.js +0 -786
- package/dist/npm-resolution-D6VFpSMk.js +0 -86
- package/dist/npm-resolution-DCVQ6Y0K.js +0 -86
- package/dist/onboard-BXB0BqXA.js +0 -407
- package/dist/onboard-channels-BMwYGHjJ.js +0 -2547
- package/dist/onboard-channels-Cm2oMc5h.js +0 -2548
- package/dist/onboard-dWO3eHR_.js +0 -405
- package/dist/onboard-helpers-DC1_Uz_K.js +0 -362
- package/dist/onboard-helpers-zH14EFKa.js +0 -363
- package/dist/onboard-remote-DKLIRtxz.js +0 -127
- package/dist/onboard-remote-G7myeQp9.js +0 -127
- package/dist/onboarding-BjqWZRpo.js +0 -534
- package/dist/onboarding-czAjtgrV.js +0 -532
- package/dist/onboarding.finalize-C5K0VM-b.js +0 -398
- package/dist/onboarding.finalize-Df9zwPyz.js +0 -401
- package/dist/onboarding.gateway-config-DbL694q5.js +0 -198
- package/dist/onboarding.gateway-config-mAUMPQtE.js +0 -191
- package/dist/outbound-BSrQB04F.js +0 -221
- package/dist/outbound-UQ05e6hy.js +0 -220
- package/dist/outbound-attachment-DIiKB_mP.js +0 -18
- package/dist/outbound-attachment-DvxfVMMN.js +0 -18
- package/dist/outbound-attachment-o0seS0CP.js +0 -18
- package/dist/pairing-cli-Dg7flTtc.js +0 -122
- package/dist/pairing-cli-DyOmIkR8.js +0 -127
- package/dist/pairing-labels-B_53dY5L.js +0 -9
- package/dist/pairing-labels-BiSZLitI.js +0 -9
- package/dist/pairing-store-BgAv4uN8.js +0 -460
- package/dist/pairing-store-CTkD51uW.js +0 -459
- package/dist/path-env-ErEKbxOI.js +0 -89
- package/dist/path-env-qRJbjJzj.js +0 -89
- package/dist/path-safety-DkT9RmTG.js +0 -14
- package/dist/path-safety-juI2XbO1.js +0 -14
- package/dist/plugin-auto-enable-C2C0yYb0.js +0 -302
- package/dist/plugin-auto-enable-CqeLGGEe.js +0 -301
- package/dist/plugin-registry-ByWYnPMd.js +0 -33
- package/dist/plugin-registry-D1XLfwHj.js +0 -33
- package/dist/plugin-sdk/agents/agent-helpers/thinking.d.ts +0 -5
- package/dist/plugin-sdk/agents/agent-paths.d.ts +0 -1
- package/dist/plugin-sdk/agents/auth-profiles/constants.d.ts +0 -16
- package/dist/plugin-sdk/agents/auth-profiles/display.d.ts +0 -7
- package/dist/plugin-sdk/agents/auth-profiles/doctor.d.ts +0 -8
- package/dist/plugin-sdk/agents/auth-profiles/oauth.d.ts +0 -14
- package/dist/plugin-sdk/agents/auth-profiles/paths.d.ts +0 -4
- package/dist/plugin-sdk/agents/auth-profiles/profiles.d.ts +0 -12
- package/dist/plugin-sdk/agents/auth-profiles/session-override.d.ts +0 -18
- package/dist/plugin-sdk/agents/auth-profiles/store.d.ts +0 -10
- package/dist/plugin-sdk/agents/auth-profiles/types.d.ts +0 -13
- package/dist/plugin-sdk/agents/auth-profiles.d.ts +0 -8
- package/dist/plugin-sdk/agents/defaults.d.ts +0 -3
- package/dist/plugin-sdk/agents/provider-auth.d.ts +0 -40
- package/dist/plugin-sdk/auto-reply/model-runtime.d.ts +0 -17
- package/dist/plugin-sdk/config/model-input.d.ts +0 -9
- package/dist/plugin-sdk/config/zod-schema.agent-model.d.ts +0 -5
- package/dist/plugin-sdk/media-understanding/audio-preflight.d.ts +0 -16
- package/dist/plugin-sdk/sessions/model-overrides.d.ts +0 -14
- package/dist/plugin-sdk/telegram/reasoning-lane-coordinator.d.ts +0 -18
- package/dist/plugins-BXkDApVh.js +0 -455
- package/dist/plugins-BflZz0sp.js +0 -453
- package/dist/plugins-cli-Dq7-gN1i.js +0 -798
- package/dist/plugins-cli-TDt5Ap1o.js +0 -793
- package/dist/ports-DIYJq-SY.js +0 -370
- package/dist/ports-DPL-Pzfh.js +0 -96
- package/dist/ports-NPqtlfp0.js +0 -316
- package/dist/ports-QMI4-F9m.js +0 -96
- package/dist/program-CV25aS-N.js +0 -244
- package/dist/program-context-MYxxQ1ar.js +0 -474
- package/dist/progress--dapuyZA.js +0 -124
- package/dist/prompt-select-styled-4xpEHxBE.js +0 -1647
- package/dist/prompt-select-styled-CqCRCk9u.js +0 -1650
- package/dist/provider-dispatcher-CbJCfJNB.js +0 -660
- package/dist/provider-dispatcher-pOqMXfLQ.js +0 -659
- package/dist/push-apns-CLmNS5AZ.js +0 -713
- package/dist/push-apns-DuG95AKC.js +0 -711
- package/dist/pw-ai-B2LkFeUC.js +0 -1906
- package/dist/pw-ai-CwC1FQEH.js +0 -1910
- package/dist/qr-cli-9iFACuGt.js +0 -352
- package/dist/qr-cli-CDRHTGnv.js +0 -347
- package/dist/redact-snapshot-CJApG-fd.js +0 -2028
- package/dist/redact-snapshot-DR_-YlRl.js +0 -2028
- package/dist/register.agent-BYxDAKY7.js +0 -1043
- package/dist/register.agent-CUANybY6.js +0 -286
- package/dist/register.configure-BP0t9Uwl.js +0 -124
- package/dist/register.configure-DyhKPvnk.js +0 -130
- package/dist/register.import-Dc7m8NdP.js +0 -30
- package/dist/register.import-DdLGUSEK.js +0 -27
- package/dist/register.maintenance-BrX4RfuS.js +0 -497
- package/dist/register.maintenance-BtPJG7Q7.js +0 -494
- package/dist/register.message-CKl_lHTO.js +0 -686
- package/dist/register.message-ZbmkQ5ht.js +0 -681
- package/dist/register.onboard--u57gjFL.js +0 -262
- package/dist/register.onboard-ixO7YHUQ.js +0 -257
- package/dist/register.setup-B6IX71r9.js +0 -114
- package/dist/register.setup-u9E6svMo.js +0 -109
- package/dist/register.status-health-sessions-BBFNCrfS.js +0 -669
- package/dist/register.status-health-sessions-ClYWL_wb.js +0 -423
- package/dist/register.subclis-DJdrt1IR.js +0 -267
- package/dist/replies-BGYU-p0J.js +0 -136
- package/dist/replies-Bn1oXSB8.js +0 -136
- package/dist/reply-Cepi2flR.js +0 -13897
- package/dist/reply-CmeV20ii.js +0 -13900
- package/dist/reply-directives-DOPAdviR.js +0 -182
- package/dist/reply-directives-DspqGGVJ.js +0 -182
- package/dist/reply-payloads-MIecsqo-.js +0 -527
- package/dist/reply-prefix-4zLS7A1Y.js +0 -38
- package/dist/reply-prefix-DBLCYiup.js +0 -38
- package/dist/resolve-route-BDGdM-l3.js +0 -249
- package/dist/resolve-route-CBVbY0xS.js +0 -249
- package/dist/response-prefix-template-CSxp9HN5.js +0 -136
- package/dist/response-prefix-template-up4REfuR.js +0 -136
- package/dist/retry-D_-vU9CD.js +0 -77
- package/dist/run-main-Izi_Z0dI.js +0 -302
- package/dist/runner-BbLPl1dz.js +0 -2294
- package/dist/runner-z92MWZ3m.js +0 -2294
- package/dist/runtime-DJNp29jv.js +0 -94
- package/dist/runtime-guard-DZ_xuCc4.js +0 -60
- package/dist/secure-random-B7stcuHs.js +0 -44
- package/dist/security-cli-BvhB_SJV.js +0 -478
- package/dist/security-cli-DZ_pwUS6.js +0 -484
- package/dist/send-5HyMBvLh.js +0 -492
- package/dist/send-B0elLDis.js +0 -349
- package/dist/send-Bh75o8GE.js +0 -547
- package/dist/send-C2BVmzi6.js +0 -29
- package/dist/send-CHquO379.js +0 -547
- package/dist/send-CltrzWlk.js +0 -492
- package/dist/send-D9zlp5S9.js +0 -11
- package/dist/send-DD5szdZD.js +0 -1174
- package/dist/send-DIO6FcGs.js +0 -426
- package/dist/send-DWzItTE9.js +0 -1775
- package/dist/send-JUsdp68w.js +0 -2245
- package/dist/send-W1ofaGo7.js +0 -2245
- package/dist/send-fmudAAFF.js +0 -332
- package/dist/send-jN0cqz2d.js +0 -349
- package/dist/send-pZWXl_O3.js +0 -1778
- package/dist/send-uNEzfw9q.js +0 -374
- package/dist/server-55CHFsiA.js +0 -205
- package/dist/server-Bk0uMX7-.js +0 -200
- package/dist/server-lifecycle-CEOTZr99.js +0 -2437
- package/dist/server-lifecycle-DGais-nv.js +0 -2437
- package/dist/server-node-events-BT_YSlcA.js +0 -393
- package/dist/server-node-events-CiqYClwC.js +0 -398
- package/dist/service-BHos7oX8.js +0 -670
- package/dist/service-Bjqii5nW.js +0 -670
- package/dist/session-DBL5nHDy.js +0 -170
- package/dist/session-aUptxSVD.js +0 -170
- package/dist/session-cost-usage-DX09eTPU.js +0 -627
- package/dist/session-cost-usage-yYi525j3.js +0 -627
- package/dist/session-dirs-BADAi9Iz.js +0 -947
- package/dist/session-dirs-DdF6TDsE.js +0 -947
- package/dist/session-utils-BuXY8tQT.js +0 -625
- package/dist/session-utils-ByK5sFXr.js +0 -625
- package/dist/sessions-B_zoH4sM.js +0 -252
- package/dist/sessions-BntNl3-l.js +0 -2593
- package/dist/ssrf-Ck9HDZpv.js +0 -183
- package/dist/ssrf-m7kFIobZ.js +0 -183
- package/dist/status-B47idaLU.js +0 -2072
- package/dist/status-Dof6X4RY.js +0 -2068
- package/dist/status.update-C55QM2xs.js +0 -79
- package/dist/status.update-CVnonGHu.js +0 -79
- package/dist/store-BPZo49zT.js +0 -64
- package/dist/store-BsEwlSm1.js +0 -2595
- package/dist/store-Bxy7EHAf.js +0 -53
- package/dist/store-v3P-OWhi.js +0 -64
- package/dist/subagent-registry-DN3omJzH.js +0 -4858
- package/dist/subagent-registry-NTmURwBx.js +0 -4860
- package/dist/subsystem-C_FedsH7.js +0 -1079
- package/dist/subsystem-CrJCqjAh.js +0 -1139
- package/dist/system-cli-ByjvquTo.js +0 -75
- package/dist/system-cli-C8iA6NZ0.js +0 -70
- package/dist/systemd-B5lyaCc3.js +0 -547
- package/dist/systemd-DSnlM3jX.js +0 -547
- package/dist/systemd-linger-DRPSEQVw.js +0 -75
- package/dist/systemd-linger-_0_-RY4v.js +0 -75
- package/dist/table-CpmqqcxJ.js +0 -279
- package/dist/tables-BO6GU4qX.js +0 -55
- package/dist/tables-DI5LGEr1.js +0 -55
- package/dist/tables-D_PTzthR.js +0 -55
- package/dist/tailnet-CEudzG0i.js +0 -40
- package/dist/tailnet-PnMrjwGT.js +0 -40
- package/dist/tailscale-Dbyahx0J.js +0 -230
- package/dist/tailscale-Dxyz13fn.js +0 -230
- package/dist/targets-B-hWtwfx.js +0 -220
- package/dist/targets-CMhBAn87.js +0 -120
- package/dist/targets-CcTME3bp.js +0 -46
- package/dist/targets-Cm1X3IyA.js +0 -650
- package/dist/targets-CmC5m7Ey.js +0 -53
- package/dist/targets-D1e9eyXc.js +0 -2173
- package/dist/targets-D7OKVXMI.js +0 -650
- package/dist/targets-DK9MVsjx.js +0 -2172
- package/dist/targets-DyybKefq.js +0 -53
- package/dist/tool-display-B-nr7cSF.js +0 -785
- package/dist/tool-display-Br6mwaJc.js +0 -785
- package/dist/tool-images-DVrUJEqc.js +0 -263
- package/dist/tool-images-kloBqxqK.js +0 -263
- package/dist/trash-DPi0aCCQ.js +0 -125
- package/dist/trash-DzrtBoP1.js +0 -125
- package/dist/tui-ByoaOs-l.js +0 -3392
- package/dist/tui-C9l1U4r8.js +0 -3392
- package/dist/tui-cli-1Jp507CR.js +0 -63
- package/dist/tui-cli-DvjBEn7h.js +0 -58
- package/dist/update-Cj-HdoD2.js +0 -349
- package/dist/update-CrKl8Exj.js +0 -349
- package/dist/update-cli-BrgFncHk.js +0 -1370
- package/dist/update-cli-CpVeFz7g.js +0 -1373
- package/dist/usage-DY7X9Iud.js +0 -5279
- package/dist/web-B9EiMNAf.js +0 -70
- package/dist/web-Bp50XopI.js +0 -76
- package/dist/web-C5EBMd1-.js +0 -3065
- package/dist/webhooks-cli-D7kHy94s.js +0 -328
- package/dist/webhooks-cli-o4indVra.js +0 -333
- package/dist/whatsapp-actions-BOMh8Mlv.js +0 -122
- package/dist/whatsapp-actions-CT2Z1Iab.js +0 -128
- package/dist/workspace-Bnn6LXsc.js +0 -449
- package/dist/workspace-C6kLpOuR.js +0 -447
- /package/dist/{account-lookup-0KDSp5Mj.js → account-lookup-BOCzCnir.js} +0 -0
- /package/dist/{account-lookup-zvANGr2x.js → account-lookup-C0ndrpt-.js} +0 -0
- /package/dist/{api-BeQMq2iS.js → api-BRGaT2rg.js} +0 -0
- /package/dist/{api-CxX8-gGz.js → api-CUkn9zpm.js} +0 -0
- /package/dist/{argv-Co-b9Zsc.js → argv-BY8EVMTP.js} +0 -0
- /package/dist/{brew-DbSbN8sD.js → brew-CmTYeZk1.js} +0 -0
- /package/dist/{brew-C4zKZsHX.js → brew-V4lMBeE3.js} +0 -0
- /package/dist/{chat-type-CYPyHAj-.js → chat-type-CH3W-zKy.js} +0 -0
- /package/dist/{chat-type-DKb2TlGZ.js → chat-type-DyovJwCt.js} +0 -0
- /package/dist/{cleanup-utils-o2MM9xyf.js → cleanup-utils-C957khj6.js} +0 -0
- /package/dist/{cleanup-utils-CwQvD73q.js → cleanup-utils-CJ_R9s8l.js} +0 -0
- /package/dist/{cli-name-BicfmwQX.js → cli-name-3MdfbvIR.js} +0 -0
- /package/dist/{cli-name-C6rJGl18.js → cli-name-CRLBidNP.js} +0 -0
- /package/dist/{cli-utils-BhXbz2UF.js → cli-utils-5ZIfXAfM.js} +0 -0
- /package/dist/{cli-utils-DZe_rVkZ.js → cli-utils-BUOtyfnU.js} +0 -0
- /package/dist/{client-C61M8zI3.js → client-D5m46AuY.js} +0 -0
- /package/dist/{client-DdpmATKq.js → client-DFyI5I0n.js} +0 -0
- /package/dist/{command-options-C4paWSGf.js → command-options-Cn2fc1Of.js} +0 -0
- /package/dist/{command-options-CA30lfLK.js → command-options-D2nN4AXX.js} +0 -0
- /package/dist/{config-eval-H_wlEYIG.js → config-eval-COtEQ2A7.js} +0 -0
- /package/dist/{config-eval-CjGZtLwx.js → config-eval-DtP5xy_j.js} +0 -0
- /package/dist/{constants-ChptG3d7.js → constants-CRGAZ2ow.js} +0 -0
- /package/dist/{constants-DY6b-_Wl.js → constants-DoYLsBmv.js} +0 -0
- /package/dist/{credentials-BHWUBHMd.js → credentials-DMAWNZdV.js} +0 -0
- /package/dist/{credentials-DFsi1_e8.js → credentials-Dmc3H-jd.js} +0 -0
- /package/dist/{daemon-runtime-CMnbwryP.js → daemon-runtime-99xh1fGv.js} +0 -0
- /package/dist/{daemon-runtime-CvqE4ysg.js → daemon-runtime-KyXiP2ib.js} +0 -0
- /package/dist/{dangerous-name-matching-BzmiLXmA.js → dangerous-name-matching--N6kyM-p.js} +0 -0
- /package/dist/{dangerous-name-matching-DaVRgwer.js → dangerous-name-matching-BlTBBZns.js} +0 -0
- /package/dist/{dangerous-tools-BOLoCRv4.js → dangerous-tools-BRmbBvRf.js} +0 -0
- /package/dist/{dangerous-tools-Baq7Q-i6.js → dangerous-tools-E1i3IoxZ.js} +0 -0
- /package/dist/{fetch-timeout-DTIN7CGM.js → fetch-timeout-DBRRPNBi.js} +0 -0
- /package/dist/{fetch-timeout-DoySHqfO.js → fetch-timeout-l_6RdoMw.js} +0 -0
- /package/dist/{file-identity-BxlKD8Ys.js → file-identity-BnGA6wyc.js} +0 -0
- /package/dist/{format-duration-CqUERz51.js → format-duration-B-Uv5nOi.js} +0 -0
- /package/dist/{format-duration-Ct-yiwkS.js → format-duration-D1M3Zxu6.js} +0 -0
- /package/dist/{format-relative-79_Y1n2Y.js → format-relative-Cywx6ldk.js} +0 -0
- /package/dist/{format-relative-CxLpEQOX.js → format-relative-DcQZUAYl.js} +0 -0
- /package/dist/{health-format-Bygse7KA.js → health-format-4qIciWnH.js} +0 -0
- /package/dist/{health-format-B_QRD8Si.js → health-format-DVAm0AKy.js} +0 -0
- /package/dist/{heartbeat-wake-LGEgcXjs.js → heartbeat-wake-D6Lt5YUk.js} +0 -0
- /package/dist/{heartbeat-wake-Y97geucO.js → heartbeat-wake-exV5m54T.js} +0 -0
- /package/dist/{help-format-NNm_Ov4H.js → help-format-CJQ7APRn.js} +0 -0
- /package/dist/{help-format-sqWgYEdL.js → help-format-DM6-OBt-.js} +0 -0
- /package/dist/{helpers-BAsMXprO.js → helpers-BER76F_2.js} +0 -0
- /package/dist/{helpers-DLgbkcEn.js → helpers-CAHQ-4Mb.js} +0 -0
- /package/dist/{input-provenance-Bn6thJNm.js → input-provenance-BgfeDgck.js} +0 -0
- /package/dist/{ip-C9q3Oq20.js → ip-BAhS4rY2.js} +0 -0
- /package/dist/{ip-D0zgNmBV.js → ip-BUhsZdJu.js} +0 -0
- /package/dist/{is-main-DN8-sNR5.js → is-main-BmHYGRhd.js} +0 -0
- /package/dist/{json-file-ChO_R9yh.js → json-file-B5WEJJye.js} +0 -0
- /package/dist/{json-file-B7l5-Xhr.js → json-file-Dbg7nZg1.js} +0 -0
- /package/dist/{json-files-CmpYSF4G.js → json-files-BFGbyEzL.js} +0 -0
- /package/dist/{lanes-ByWMUgrz.js → lanes-4FoQemog.js} +0 -0
- /package/dist/{lanes-cHJ5arWg.js → lanes-BhdzrAIa.js} +0 -0
- /package/dist/{links-Bz4V7R_p.js → links-CwTlzaPe.js} +0 -0
- /package/dist/{links-Cm43Vcft.js → links-D5vtq30Q.js} +0 -0
- /package/dist/{location-DBWCGNLq.js → location-50gaJF5Z.js} +0 -0
- /package/dist/{location-GbZ0bBRU.js → location-Qo8Ii1zo.js} +0 -0
- /package/dist/{logger-DyL5G2DO.js → logger-B1JSUwco.js} +0 -0
- /package/dist/{logger-GvipVDfh.js → logger-Ds0NtnLh.js} +0 -0
- /package/dist/{logger-BWMPnILd.js → logger-nEdVxm5D.js} +0 -0
- /package/dist/{logging-D8-Kozjc.js → logging-IMll-y7p.js} +0 -0
- /package/dist/{logging-D8R0sLY9.js → logging-xAM90kGK.js} +0 -0
- /package/dist/{mime-BS3jhcZE.js → mime-AuIDUZPG.js} +0 -0
- /package/dist/{mime-Cxh_64P6.js → mime-Cqg1jjia.js} +0 -0
- /package/dist/{mutable-allowlist-detectors-DiZDtmlZ.js → mutable-allowlist-detectors-4m-Kc8Kn.js} +0 -0
- /package/dist/{mutable-allowlist-detectors-U5ThQr9V.js → mutable-allowlist-detectors-DpVwqsrI.js} +0 -0
- /package/dist/{onboard-config-CLLvYuqo.js → onboard-config-B22XEPgo.js} +0 -0
- /package/dist/{onboard-config-CM9pKGnR.js → onboard-config-CnzPYr-v.js} +0 -0
- /package/dist/{parse-log-line-enq8pduH.js → parse-log-line-BqNWR10F.js} +0 -0
- /package/dist/{parse-log-line-mz9TG6ig.js → parse-log-line-ZSGs_ws7.js} +0 -0
- /package/dist/{parse-timeout-BMP8a0_a.js → parse-timeout-BjhbNq7X.js} +0 -0
- /package/dist/{parse-timeout-CDkco8kd.js → parse-timeout-CvODy9RC.js} +0 -0
- /package/dist/{path-guards-CIx4hURU.js → path-guards-DOpzcMXz.js} +0 -0
- /package/dist/{path-guards-CrQOUlsq.js → path-guards-DipYoPVw.js} +0 -0
- /package/dist/plugin-sdk/{agents → auth}/api-key-rotation.d.ts +0 -0
- /package/dist/{plugins-allowlist-BbTQ5Z2k.js → plugins-allowlist-BdyQ2KUk.js} +0 -0
- /package/dist/{plugins-allowlist-C20oaESO.js → plugins-allowlist-NGzAob6Q.js} +0 -0
- /package/dist/{polls-B0CCBDeR.js → polls-DQrR-qT3.js} +0 -0
- /package/dist/{polls-CwwHzYBM.js → polls-ybwcqkWt.js} +0 -0
- /package/dist/{ports-lsof-Wteul3ju.js → ports-lsof-CDyv5GJd.js} +0 -0
- /package/dist/{process-scoped-map-CV9kDvfG.js → process-scoped-map-BwUkYFQV.js} +0 -0
- /package/dist/{process-scoped-map-PEvnG75N.js → process-scoped-map-_zxf_kLz.js} +0 -0
- /package/dist/{program-context-jqeI5alP.js → program-context-D5txVtUZ.js} +0 -0
- /package/dist/{progress-C1kUfYL-.js → progress-DRLmcFiG.js} +0 -0
- /package/dist/{prompt-Yn2yClg1.js → prompt-BRGfic91.js} +0 -0
- /package/dist/{prompt-BVZVovoB.js → prompt-WEkXwIMT.js} +0 -0
- /package/dist/{prompt-style-D0LUnqXi.js → prompt-style-B4Cq4PyQ.js} +0 -0
- /package/dist/{prompt-style-DjEYC_s-.js → prompt-style-DKz0g3V_.js} +0 -0
- /package/dist/{provider-utils-3JTMJroG.js → provider-utils-C9kBVF1f.js} +0 -0
- /package/dist/{provider-utils-FaBmofiq.js → provider-utils-DiLhkKQp.js} +0 -0
- /package/dist/{proxy-DL3MD6-P.js → proxy-BMJL0Qog.js} +0 -0
- /package/dist/{proxy-DpNv2cSV.js → proxy-DIuxrx_D.js} +0 -0
- /package/dist/{pw-ai-state-CGfLv6nV.js → pw-ai-state-CwXeO5d0.js} +0 -0
- /package/dist/{pw-ai-state-Dynx20hr.js → pw-ai-state-DaISdsXY.js} +0 -0
- /package/dist/{redact-Dx1Fue21.js → redact-CqWx9rpK.js} +0 -0
- /package/dist/{redact-BsoXOV1y.js → redact-gXuh8MFk.js} +0 -0
- /package/dist/{redact-identifier-BTIWtaa-.js → redact-identifier-BJOQDEj0.js} +0 -0
- /package/dist/{redact-identifier-CAagcfWA.js → redact-identifier-DR54qsoT.js} +0 -0
- /package/dist/{remoteclaw-root-DybYl8PL.js → remoteclaw-root-C3Pq14Zr.js} +0 -0
- /package/dist/{remoteclaw-root-C2HV2VeC.js → remoteclaw-root-DTWE68ED.js} +0 -0
- /package/dist/{render-CCLsW6Lz.js → render-CDCvpfhh.js} +0 -0
- /package/dist/{render-uf6PvGMV.js → render-CJl4GK1B.js} +0 -0
- /package/dist/{retry-CxXVRdes.js → retry-B19gMxS7.js} +0 -0
- /package/dist/{retry-DnqPAqWp.js → retry-cXXk2j6_.js} +0 -0
- /package/dist/{runtime-guard-U-ewY_QH.js → runtime-guard-CohQmZ1R.js} +0 -0
- /package/dist/{secret-equal-BbHdTtqY.js → secret-equal-CJzes24Z.js} +0 -0
- /package/dist/{secret-equal-CXJEZiWb.js → secret-equal-CQAmGfGc.js} +0 -0
- /package/dist/{secure-random-CS2mSdTn.js → secure-random-B3f7Ri2X.js} +0 -0
- /package/dist/{secure-random-_dzDDlFo.js → secure-random-BkZFG9cd.js} +0 -0
- /package/dist/{session-key-5YLnn_qf.js → session-key-BF-9YzxC.js} +0 -0
- /package/dist/{session-key-C2n-VILA.js → session-key-CgKWfjoZ.js} +0 -0
- /package/dist/{stagger-BXv_apuy.js → stagger--wvODnNe.js} +0 -0
- /package/dist/{stagger-MI9gd2rQ.js → stagger-DhN5TT84.js} +0 -0
- /package/dist/{status-BmtCS3T1.js → status-BVTsuvCS.js} +0 -0
- /package/dist/{status-BrwHRn2B.js → status-BwiJpA37.js} +0 -0
- /package/dist/{strip-inbound-meta-jy3bkUab.js → strip-inbound-meta-0cvL6itU.js} +0 -0
- /package/dist/{table-C1rdyYl9.js → table-r6POocso.js} +0 -0
- /package/dist/{target-errors-BDpPcwh5.js → target-errors-DJVRKFcU.js} +0 -0
- /package/dist/{target-errors-DdIAPcMM.js → target-errors-GZXDqlUu.js} +0 -0
- /package/dist/{targets-D-qLBpTA.js → targets-B_d_1z3N.js} +0 -0
- /package/dist/{targets-UncQvCVs.js → targets-D01MJGnh.js} +0 -0
- /package/dist/{targets-BMenhVHg.js → targets-D3r6Zgic.js} +0 -0
- /package/dist/{targets-C-2xwh9f.js → targets-DOJXjN1U.js} +0 -0
- /package/dist/{targets-D7PT_rdO.js → targets-WSwPflb6.js} +0 -0
- /package/dist/{text-format-BQ3z_OXA.js → text-format-C_RADpVD.js} +0 -0
- /package/dist/{text-format-oWqzVmah.js → text-format-VSogn9Yq.js} +0 -0
- /package/dist/{tokens-B-jmvNR9.js → tokens-C8yGxAcR.js} +0 -0
- /package/dist/{tokens-qLtFu3nT.js → tokens-DAFBx5qr.js} +0 -0
- /package/dist/{usage-BdhBT0Vz.js → usage-BXi79Rq6.js} +0 -0
- /package/dist/{usage-BtQcAnf6.js → usage-C1lHaofV.js} +0 -0
- /package/dist/{usage-format-C3mNLfhI.js → usage-format-CD5jsZY1.js} +0 -0
- /package/dist/{usage-format-DAaPzr_z.js → usage-format-CRVpDVj1.js} +0 -0
- /package/dist/{widearea-dns-BXGCmXnD.js → widearea-dns-BNFRmJwa.js} +0 -0
- /package/dist/{widearea-dns-CsmBVbez.js → widearea-dns-CV8_Cl64.js} +0 -0
- /package/dist/{workspace-BzPeZDew.js → workspace-BJCKO8Ns.js} +0 -0
- /package/dist/{workspace-DkGLVfOl.js → workspace-BisvA9oA.js} +0 -0
- /package/dist/{wsl-B_sPlzWw.js → wsl-DOF5ZlX9.js} +0 -0
- /package/dist/{wsl-BCnYV9O0.js → wsl-kFaeW76c.js} +0 -0
|
@@ -1,1217 +0,0 @@
|
|
|
1
|
-
import { Ct as theme, H as CONFIG_DIR, _ as defaultRuntime, ot as shortenHomePath, rt as resolveUserPath } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-BquJGKLC.js";
|
|
3
|
-
import { t as formatCliCommand } from "./command-format-CVfo8I5f.js";
|
|
4
|
-
import "./file-lock-CzBL_VIx.js";
|
|
5
|
-
import { F as LEGACY_MANIFEST_KEYS, I as MANIFEST_KEY, i as loadConfig, l as writeConfigFile, ot as isPathInside, st as isPathInsideWithRealpath } from "./config-CKjn6ORX.js";
|
|
6
|
-
import "./host-env-security-szwfmhC4.js";
|
|
7
|
-
import "./inbound-path-policy-sdr5Ji0k.js";
|
|
8
|
-
import "./env-vars-7aZqKPhk.js";
|
|
9
|
-
import { a as resolveAgentWorkspaceDir, s as resolveDefaultAgentId } from "./agent-scope-C50VuLKh.js";
|
|
10
|
-
import "./dock-BqNINg7k.js";
|
|
11
|
-
import "./message-channel-uWMAiywE.js";
|
|
12
|
-
import "./sessions-BntNl3-l.js";
|
|
13
|
-
import "./plugins-BflZz0sp.js";
|
|
14
|
-
import "./accounts-BTXSfPWi.js";
|
|
15
|
-
import "./accounts-BxGS70Do.js";
|
|
16
|
-
import "./accounts-CNY1TGj1.js";
|
|
17
|
-
import "./bindings-CRU_udk8.js";
|
|
18
|
-
import "./targets-D7OKVXMI.js";
|
|
19
|
-
import "./loader-Bkhoi4yR.js";
|
|
20
|
-
import "./chat-envelope-DEZ-5RY8.js";
|
|
21
|
-
import "./strip-inbound-meta-DjKcSFaW.js";
|
|
22
|
-
import "./call-C1c3rcy7.js";
|
|
23
|
-
import "./net-Cg8AQeke.js";
|
|
24
|
-
import "./logger-BWMPnILd.js";
|
|
25
|
-
import "./ip-D0zgNmBV.js";
|
|
26
|
-
import "./tailnet-CEudzG0i.js";
|
|
27
|
-
import "./lanes-cHJ5arWg.js";
|
|
28
|
-
import "./subagent-registry-DN3omJzH.js";
|
|
29
|
-
import "./response-prefix-template-up4REfuR.js";
|
|
30
|
-
import "./agent-helpers-CTx5KKJu.js";
|
|
31
|
-
import "./tool-images-kloBqxqK.js";
|
|
32
|
-
import "./exec-DkFE7lqU.js";
|
|
33
|
-
import "./image-ops-DWytvdh_.js";
|
|
34
|
-
import "./tokens-B-jmvNR9.js";
|
|
35
|
-
import "./reply-Cepi2flR.js";
|
|
36
|
-
import "./hook-runner-global-BSklbS52.js";
|
|
37
|
-
import "./redact-Dx1Fue21.js";
|
|
38
|
-
import "./tool-display-Br6mwaJc.js";
|
|
39
|
-
import "./markdown-tables-jrnSPvZ6.js";
|
|
40
|
-
import "./chunk-CSQfUhgF.js";
|
|
41
|
-
import "./media-DN7yRfrH.js";
|
|
42
|
-
import "./render-uf6PvGMV.js";
|
|
43
|
-
import "./tables-DI5LGEr1.js";
|
|
44
|
-
import "./fs-safe-DSwT85uK.js";
|
|
45
|
-
import "./mime-Cxh_64P6.js";
|
|
46
|
-
import "./ssrf-Ck9HDZpv.js";
|
|
47
|
-
import "./local-roots-BrH0Q63K.js";
|
|
48
|
-
import "./common-DSVmydhm.js";
|
|
49
|
-
import "./commands-CDonBOrw.js";
|
|
50
|
-
import "./commands-registry-CWJv6xe2.js";
|
|
51
|
-
import "./audio-VBcVDa08.js";
|
|
52
|
-
import "./runner-z92MWZ3m.js";
|
|
53
|
-
import "./errors-DZ199hOo.js";
|
|
54
|
-
import "./targets-DK9MVsjx.js";
|
|
55
|
-
import "./pairing-store-CTkD51uW.js";
|
|
56
|
-
import "./fetch-CEDsOiql.js";
|
|
57
|
-
import "./retry-DnqPAqWp.js";
|
|
58
|
-
import "./client-C61M8zI3.js";
|
|
59
|
-
import "./channel-activity-DTKGf3j5.js";
|
|
60
|
-
import "./send-W1ofaGo7.js";
|
|
61
|
-
import "./session-cost-usage-DX09eTPU.js";
|
|
62
|
-
import "./reply-directives-DspqGGVJ.js";
|
|
63
|
-
import "./provider-dispatcher-pOqMXfLQ.js";
|
|
64
|
-
import { t as promptYesNo } from "./prompt-Yn2yClg1.js";
|
|
65
|
-
import "./store-v3P-OWhi.js";
|
|
66
|
-
import "./reply-prefix-DBLCYiup.js";
|
|
67
|
-
import "./ack-reactions-C5kPZvda.js";
|
|
68
|
-
import "./resolve-route-CBVbY0xS.js";
|
|
69
|
-
import { t as formatDocsLink } from "./links-Bz4V7R_p.js";
|
|
70
|
-
import "./prompt-style-DjEYC_s-.js";
|
|
71
|
-
import { c as resolveInstallModeOptions, d as withExtractedArchiveRoot, f as resolveArchiveSourcePath, g as resolveArchiveKind, h as readJsonFile, i as resolveSafeInstallDir, l as resolveTimedInstallModeOptions, m as fileExists, n as finalizeNpmSpecArchiveInstall, o as unscopedPackageName, r as installFromNpmSpecArchiveWithInstaller, s as installPackageDir, t as validateRegistryNpmSpec, u as resolveExistingInstallPath } from "./npm-registry-spec-COvUzy5J.js";
|
|
72
|
-
import "./send-jN0cqz2d.js";
|
|
73
|
-
import "./send-Bh75o8GE.js";
|
|
74
|
-
import "./send-DWzItTE9.js";
|
|
75
|
-
import "./proxy-DpNv2cSV.js";
|
|
76
|
-
import "./replies-BGYU-p0J.js";
|
|
77
|
-
import "./agent-D0tKpxob.js";
|
|
78
|
-
import "./channel-selection-NNPbxnyZ.js";
|
|
79
|
-
import "./deliver-Dm7GkHXJ.js";
|
|
80
|
-
import "./outbound-attachment-o0seS0CP.js";
|
|
81
|
-
import "./delivery-queue-Cfa9Wmxp.js";
|
|
82
|
-
import "./send-CltrzWlk.js";
|
|
83
|
-
import "./onboard-helpers-DC1_Uz_K.js";
|
|
84
|
-
import "./pairing-labels-B_53dY5L.js";
|
|
85
|
-
import { t as renderTable } from "./table-C1rdyYl9.js";
|
|
86
|
-
import { n as hasBinary } from "./config-eval-H_wlEYIG.js";
|
|
87
|
-
import { a as parseFrontmatter, n as isConfigPathTruthy, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-C6kLpOuR.js";
|
|
88
|
-
import { n as resolvePinnedNpmInstallRecordForCli, r as buildPluginStatusReport, t as buildNpmInstallRecordFields } from "./npm-resolution-DCVQ6Y0K.js";
|
|
89
|
-
import path from "node:path";
|
|
90
|
-
import fs from "node:fs";
|
|
91
|
-
import fsp from "node:fs/promises";
|
|
92
|
-
|
|
93
|
-
//#region src/shared/entry-metadata.ts
|
|
94
|
-
function resolveEmojiAndHomepage(params) {
|
|
95
|
-
const emoji = params.metadata?.emoji ?? params.frontmatter?.emoji;
|
|
96
|
-
const homepageRaw = params.metadata?.homepage ?? params.frontmatter?.homepage ?? params.frontmatter?.website ?? params.frontmatter?.url;
|
|
97
|
-
const homepage = homepageRaw?.trim() ? homepageRaw.trim() : void 0;
|
|
98
|
-
return {
|
|
99
|
-
...emoji ? { emoji } : {},
|
|
100
|
-
...homepage ? { homepage } : {}
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/shared/requirements.ts
|
|
106
|
-
function resolveMissingBins(params) {
|
|
107
|
-
const remote = params.hasRemoteBin;
|
|
108
|
-
return params.required.filter((bin) => {
|
|
109
|
-
if (params.hasLocalBin(bin)) return false;
|
|
110
|
-
if (remote?.(bin)) return false;
|
|
111
|
-
return true;
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function resolveMissingAnyBins(params) {
|
|
115
|
-
if (params.required.length === 0) return [];
|
|
116
|
-
if (params.required.some((bin) => params.hasLocalBin(bin))) return [];
|
|
117
|
-
if (params.hasRemoteAnyBin?.(params.required)) return [];
|
|
118
|
-
return params.required;
|
|
119
|
-
}
|
|
120
|
-
function resolveMissingOs(params) {
|
|
121
|
-
if (params.required.length === 0) return [];
|
|
122
|
-
if (params.required.includes(params.localPlatform)) return [];
|
|
123
|
-
if (params.remotePlatforms?.some((platform) => params.required.includes(platform))) return [];
|
|
124
|
-
return params.required;
|
|
125
|
-
}
|
|
126
|
-
function resolveMissingEnv(params) {
|
|
127
|
-
const missing = [];
|
|
128
|
-
for (const envName of params.required) {
|
|
129
|
-
if (params.isSatisfied(envName)) continue;
|
|
130
|
-
missing.push(envName);
|
|
131
|
-
}
|
|
132
|
-
return missing;
|
|
133
|
-
}
|
|
134
|
-
function buildConfigChecks(params) {
|
|
135
|
-
return params.required.map((pathStr) => {
|
|
136
|
-
return {
|
|
137
|
-
path: pathStr,
|
|
138
|
-
satisfied: params.isSatisfied(pathStr)
|
|
139
|
-
};
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
function evaluateRequirements(params) {
|
|
143
|
-
const missingBins = resolveMissingBins({
|
|
144
|
-
required: params.required.bins,
|
|
145
|
-
hasLocalBin: params.hasLocalBin,
|
|
146
|
-
hasRemoteBin: params.hasRemoteBin
|
|
147
|
-
});
|
|
148
|
-
const missingAnyBins = resolveMissingAnyBins({
|
|
149
|
-
required: params.required.anyBins,
|
|
150
|
-
hasLocalBin: params.hasLocalBin,
|
|
151
|
-
hasRemoteAnyBin: params.hasRemoteAnyBin
|
|
152
|
-
});
|
|
153
|
-
const missingOs = resolveMissingOs({
|
|
154
|
-
required: params.required.os,
|
|
155
|
-
localPlatform: params.localPlatform,
|
|
156
|
-
remotePlatforms: params.remotePlatforms
|
|
157
|
-
});
|
|
158
|
-
const missingEnv = resolveMissingEnv({
|
|
159
|
-
required: params.required.env,
|
|
160
|
-
isSatisfied: params.isEnvSatisfied
|
|
161
|
-
});
|
|
162
|
-
const configChecks = buildConfigChecks({
|
|
163
|
-
required: params.required.config,
|
|
164
|
-
isSatisfied: params.isConfigSatisfied
|
|
165
|
-
});
|
|
166
|
-
const missingConfig = configChecks.filter((check) => !check.satisfied).map((check) => check.path);
|
|
167
|
-
const missing = params.always ? {
|
|
168
|
-
bins: [],
|
|
169
|
-
anyBins: [],
|
|
170
|
-
env: [],
|
|
171
|
-
config: [],
|
|
172
|
-
os: []
|
|
173
|
-
} : {
|
|
174
|
-
bins: missingBins,
|
|
175
|
-
anyBins: missingAnyBins,
|
|
176
|
-
env: missingEnv,
|
|
177
|
-
config: missingConfig,
|
|
178
|
-
os: missingOs
|
|
179
|
-
};
|
|
180
|
-
return {
|
|
181
|
-
missing,
|
|
182
|
-
eligible: params.always || missing.bins.length === 0 && missing.anyBins.length === 0 && missing.env.length === 0 && missing.config.length === 0 && missing.os.length === 0,
|
|
183
|
-
configChecks
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
function evaluateRequirementsFromMetadata(params) {
|
|
187
|
-
const required = {
|
|
188
|
-
bins: params.metadata?.requires?.bins ?? [],
|
|
189
|
-
anyBins: params.metadata?.requires?.anyBins ?? [],
|
|
190
|
-
env: params.metadata?.requires?.env ?? [],
|
|
191
|
-
config: params.metadata?.requires?.config ?? [],
|
|
192
|
-
os: params.metadata?.os ?? []
|
|
193
|
-
};
|
|
194
|
-
return {
|
|
195
|
-
required,
|
|
196
|
-
...evaluateRequirements({
|
|
197
|
-
always: params.always,
|
|
198
|
-
required,
|
|
199
|
-
hasLocalBin: params.hasLocalBin,
|
|
200
|
-
hasRemoteBin: params.hasRemoteBin,
|
|
201
|
-
hasRemoteAnyBin: params.hasRemoteAnyBin,
|
|
202
|
-
localPlatform: params.localPlatform,
|
|
203
|
-
remotePlatforms: params.remotePlatforms,
|
|
204
|
-
isEnvSatisfied: params.isEnvSatisfied,
|
|
205
|
-
isConfigSatisfied: params.isConfigSatisfied
|
|
206
|
-
})
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function evaluateRequirementsFromMetadataWithRemote(params) {
|
|
210
|
-
return evaluateRequirementsFromMetadata({
|
|
211
|
-
always: params.always,
|
|
212
|
-
metadata: params.metadata,
|
|
213
|
-
hasLocalBin: params.hasLocalBin,
|
|
214
|
-
hasRemoteBin: params.remote?.hasBin,
|
|
215
|
-
hasRemoteAnyBin: params.remote?.hasAnyBin,
|
|
216
|
-
localPlatform: params.localPlatform,
|
|
217
|
-
remotePlatforms: params.remote?.platforms,
|
|
218
|
-
isEnvSatisfied: params.isEnvSatisfied,
|
|
219
|
-
isConfigSatisfied: params.isConfigSatisfied
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/shared/entry-status.ts
|
|
225
|
-
function evaluateEntryMetadataRequirements(params) {
|
|
226
|
-
const { emoji, homepage } = resolveEmojiAndHomepage({
|
|
227
|
-
metadata: params.metadata,
|
|
228
|
-
frontmatter: params.frontmatter
|
|
229
|
-
});
|
|
230
|
-
const { required, missing, eligible, configChecks } = evaluateRequirementsFromMetadataWithRemote({
|
|
231
|
-
always: params.always,
|
|
232
|
-
metadata: params.metadata ?? void 0,
|
|
233
|
-
hasLocalBin: params.hasLocalBin,
|
|
234
|
-
localPlatform: params.localPlatform,
|
|
235
|
-
remote: params.remote,
|
|
236
|
-
isEnvSatisfied: params.isEnvSatisfied,
|
|
237
|
-
isConfigSatisfied: params.isConfigSatisfied
|
|
238
|
-
});
|
|
239
|
-
return {
|
|
240
|
-
...emoji ? { emoji } : {},
|
|
241
|
-
...homepage ? { homepage } : {},
|
|
242
|
-
required,
|
|
243
|
-
missing,
|
|
244
|
-
requirementsSatisfied: eligible,
|
|
245
|
-
configChecks
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
function evaluateEntryMetadataRequirementsForCurrentPlatform(params) {
|
|
249
|
-
return evaluateEntryMetadataRequirements({
|
|
250
|
-
...params,
|
|
251
|
-
localPlatform: process.platform
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function evaluateEntryRequirementsForCurrentPlatform(params) {
|
|
255
|
-
return evaluateEntryMetadataRequirementsForCurrentPlatform({
|
|
256
|
-
always: params.always,
|
|
257
|
-
metadata: params.entry.metadata,
|
|
258
|
-
frontmatter: params.entry.frontmatter,
|
|
259
|
-
hasLocalBin: params.hasLocalBin,
|
|
260
|
-
remote: params.remote,
|
|
261
|
-
isEnvSatisfied: params.isEnvSatisfied,
|
|
262
|
-
isConfigSatisfied: params.isConfigSatisfied
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region src/hooks/hooks-status.ts
|
|
268
|
-
function resolveHookKey(entry) {
|
|
269
|
-
return entry.metadata?.hookKey ?? entry.hook.name;
|
|
270
|
-
}
|
|
271
|
-
function normalizeInstallOptions(entry) {
|
|
272
|
-
const install = entry.metadata?.install ?? [];
|
|
273
|
-
if (install.length === 0) return [];
|
|
274
|
-
return install.map((spec, index) => {
|
|
275
|
-
const id = (spec.id ?? `${spec.kind}-${index}`).trim();
|
|
276
|
-
const bins = spec.bins ?? [];
|
|
277
|
-
let label = (spec.label ?? "").trim();
|
|
278
|
-
if (!label) if (spec.kind === "bundled") label = "Bundled with RemoteClaw";
|
|
279
|
-
else if (spec.kind === "npm" && spec.package) label = `Install ${spec.package} (npm)`;
|
|
280
|
-
else if (spec.kind === "git" && spec.repository) label = `Install from ${spec.repository}`;
|
|
281
|
-
else label = "Run installer";
|
|
282
|
-
return {
|
|
283
|
-
id,
|
|
284
|
-
kind: spec.kind,
|
|
285
|
-
label,
|
|
286
|
-
bins
|
|
287
|
-
};
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function buildHookStatus(entry, config, eligibility) {
|
|
291
|
-
const hookKey = resolveHookKey(entry);
|
|
292
|
-
const hookConfig = resolveHookConfig(config, hookKey);
|
|
293
|
-
const managedByPlugin = entry.hook.source === "remoteclaw-plugin";
|
|
294
|
-
const disabled = managedByPlugin ? false : hookConfig?.enabled === false;
|
|
295
|
-
const always = entry.metadata?.always === true;
|
|
296
|
-
const events = entry.metadata?.events ?? [];
|
|
297
|
-
const isEnvSatisfied = (envName) => Boolean(process.env[envName] || hookConfig?.env?.[envName]);
|
|
298
|
-
const isConfigSatisfied = (pathStr) => isConfigPathTruthy(config, pathStr);
|
|
299
|
-
const { emoji, homepage, required, missing, requirementsSatisfied, configChecks } = evaluateEntryRequirementsForCurrentPlatform({
|
|
300
|
-
always,
|
|
301
|
-
entry,
|
|
302
|
-
hasLocalBin: hasBinary,
|
|
303
|
-
remote: eligibility?.remote,
|
|
304
|
-
isEnvSatisfied,
|
|
305
|
-
isConfigSatisfied
|
|
306
|
-
});
|
|
307
|
-
const eligible = !disabled && requirementsSatisfied;
|
|
308
|
-
return {
|
|
309
|
-
name: entry.hook.name,
|
|
310
|
-
description: entry.hook.description,
|
|
311
|
-
source: entry.hook.source,
|
|
312
|
-
pluginId: entry.hook.pluginId,
|
|
313
|
-
filePath: entry.hook.filePath,
|
|
314
|
-
baseDir: entry.hook.baseDir,
|
|
315
|
-
handlerPath: entry.hook.handlerPath,
|
|
316
|
-
hookKey,
|
|
317
|
-
emoji,
|
|
318
|
-
homepage,
|
|
319
|
-
events,
|
|
320
|
-
always,
|
|
321
|
-
disabled,
|
|
322
|
-
eligible,
|
|
323
|
-
managedByPlugin,
|
|
324
|
-
requirements: required,
|
|
325
|
-
missing,
|
|
326
|
-
configChecks,
|
|
327
|
-
install: normalizeInstallOptions(entry)
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
function buildWorkspaceHookStatus(workspaceDir, opts) {
|
|
331
|
-
return {
|
|
332
|
-
workspaceDir,
|
|
333
|
-
managedHooksDir: opts?.managedHooksDir ?? path.join(CONFIG_DIR, "hooks"),
|
|
334
|
-
hooks: (opts?.entries ?? loadWorkspaceHookEntries(workspaceDir, opts)).map((entry) => buildHookStatus(entry, opts?.config, opts?.eligibility))
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
//#endregion
|
|
339
|
-
//#region src/hooks/install.ts
|
|
340
|
-
const defaultLogger = {};
|
|
341
|
-
function validateHookId(hookId) {
|
|
342
|
-
if (!hookId) return "invalid hook name: missing";
|
|
343
|
-
if (hookId === "." || hookId === "..") return "invalid hook name: reserved path segment";
|
|
344
|
-
if (hookId.includes("/") || hookId.includes("\\")) return "invalid hook name: path separators not allowed";
|
|
345
|
-
return null;
|
|
346
|
-
}
|
|
347
|
-
function resolveHookInstallDir(hookId, hooksDir) {
|
|
348
|
-
const hooksBase = hooksDir ? resolveUserPath(hooksDir) : path.join(CONFIG_DIR, "hooks");
|
|
349
|
-
const hookIdError = validateHookId(hookId);
|
|
350
|
-
if (hookIdError) throw new Error(hookIdError);
|
|
351
|
-
const targetDirResult = resolveSafeInstallDir({
|
|
352
|
-
baseDir: hooksBase,
|
|
353
|
-
id: hookId,
|
|
354
|
-
invalidNameMessage: "invalid hook name: path traversal detected"
|
|
355
|
-
});
|
|
356
|
-
if (!targetDirResult.ok) throw new Error(targetDirResult.error);
|
|
357
|
-
return targetDirResult.path;
|
|
358
|
-
}
|
|
359
|
-
async function ensureRemoteClawHooks(manifest) {
|
|
360
|
-
let hooks = manifest[MANIFEST_KEY]?.hooks;
|
|
361
|
-
if (!Array.isArray(hooks)) for (const key of LEGACY_MANIFEST_KEYS) {
|
|
362
|
-
const legacy = manifest[key]?.hooks;
|
|
363
|
-
if (Array.isArray(legacy)) {
|
|
364
|
-
hooks = legacy;
|
|
365
|
-
break;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
if (!Array.isArray(hooks)) throw new Error("package.json missing remoteclaw.hooks");
|
|
369
|
-
const list = hooks.map((e) => typeof e === "string" ? e.trim() : "").filter(Boolean);
|
|
370
|
-
if (list.length === 0) throw new Error("package.json remoteclaw.hooks is empty");
|
|
371
|
-
return list;
|
|
372
|
-
}
|
|
373
|
-
async function resolveInstallTargetDir(id, hooksDir) {
|
|
374
|
-
const baseHooksDir = hooksDir ? resolveUserPath(hooksDir) : path.join(CONFIG_DIR, "hooks");
|
|
375
|
-
await fsp.mkdir(baseHooksDir, { recursive: true });
|
|
376
|
-
const targetDirResult = resolveSafeInstallDir({
|
|
377
|
-
baseDir: baseHooksDir,
|
|
378
|
-
id,
|
|
379
|
-
invalidNameMessage: "invalid hook name: path traversal detected"
|
|
380
|
-
});
|
|
381
|
-
if (!targetDirResult.ok) return {
|
|
382
|
-
ok: false,
|
|
383
|
-
error: targetDirResult.error
|
|
384
|
-
};
|
|
385
|
-
return {
|
|
386
|
-
ok: true,
|
|
387
|
-
targetDir: targetDirResult.path
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
async function resolveHookNameFromDir(hookDir) {
|
|
391
|
-
const hookMdPath = path.join(hookDir, "HOOK.md");
|
|
392
|
-
if (!await fileExists(hookMdPath)) throw new Error(`HOOK.md missing in ${hookDir}`);
|
|
393
|
-
return parseFrontmatter(await fsp.readFile(hookMdPath, "utf-8")).name || path.basename(hookDir);
|
|
394
|
-
}
|
|
395
|
-
async function validateHookDir(hookDir) {
|
|
396
|
-
if (!await fileExists(path.join(hookDir, "HOOK.md"))) throw new Error(`HOOK.md missing in ${hookDir}`);
|
|
397
|
-
if (!await Promise.all([
|
|
398
|
-
"handler.ts",
|
|
399
|
-
"handler.js",
|
|
400
|
-
"index.ts",
|
|
401
|
-
"index.js"
|
|
402
|
-
].map(async (candidate) => fileExists(path.join(hookDir, candidate)))).then((results) => results.some(Boolean))) throw new Error(`handler.ts/handler.js/index.ts/index.js missing in ${hookDir}`);
|
|
403
|
-
}
|
|
404
|
-
async function installHookPackageFromDir(params) {
|
|
405
|
-
const { logger, timeoutMs, mode, dryRun } = resolveTimedInstallModeOptions(params, defaultLogger);
|
|
406
|
-
const manifestPath = path.join(params.packageDir, "package.json");
|
|
407
|
-
if (!await fileExists(manifestPath)) return {
|
|
408
|
-
ok: false,
|
|
409
|
-
error: "package.json missing"
|
|
410
|
-
};
|
|
411
|
-
let manifest;
|
|
412
|
-
try {
|
|
413
|
-
manifest = await readJsonFile(manifestPath);
|
|
414
|
-
} catch (err) {
|
|
415
|
-
return {
|
|
416
|
-
ok: false,
|
|
417
|
-
error: `invalid package.json: ${String(err)}`
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
let hookEntries;
|
|
421
|
-
try {
|
|
422
|
-
hookEntries = await ensureRemoteClawHooks(manifest);
|
|
423
|
-
} catch (err) {
|
|
424
|
-
return {
|
|
425
|
-
ok: false,
|
|
426
|
-
error: String(err)
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
const pkgName = typeof manifest.name === "string" ? manifest.name : "";
|
|
430
|
-
const hookPackId = pkgName ? unscopedPackageName(pkgName) : path.basename(params.packageDir);
|
|
431
|
-
const hookIdError = validateHookId(hookPackId);
|
|
432
|
-
if (hookIdError) return {
|
|
433
|
-
ok: false,
|
|
434
|
-
error: hookIdError
|
|
435
|
-
};
|
|
436
|
-
if (params.expectedHookPackId && params.expectedHookPackId !== hookPackId) return {
|
|
437
|
-
ok: false,
|
|
438
|
-
error: `hook pack id mismatch: expected ${params.expectedHookPackId}, got ${hookPackId}`
|
|
439
|
-
};
|
|
440
|
-
const targetDirResult = await resolveInstallTargetDir(hookPackId, params.hooksDir);
|
|
441
|
-
if (!targetDirResult.ok) return {
|
|
442
|
-
ok: false,
|
|
443
|
-
error: targetDirResult.error
|
|
444
|
-
};
|
|
445
|
-
const targetDir = targetDirResult.targetDir;
|
|
446
|
-
if (mode === "install" && await fileExists(targetDir)) return {
|
|
447
|
-
ok: false,
|
|
448
|
-
error: `hook pack already exists: ${targetDir} (delete it first)`
|
|
449
|
-
};
|
|
450
|
-
const resolvedHooks = [];
|
|
451
|
-
for (const entry of hookEntries) {
|
|
452
|
-
const hookDir = path.resolve(params.packageDir, entry);
|
|
453
|
-
if (!isPathInside(params.packageDir, hookDir)) return {
|
|
454
|
-
ok: false,
|
|
455
|
-
error: `remoteclaw.hooks entry escapes package directory: ${entry}`
|
|
456
|
-
};
|
|
457
|
-
await validateHookDir(hookDir);
|
|
458
|
-
if (!isPathInsideWithRealpath(params.packageDir, hookDir, { requireRealpath: true })) return {
|
|
459
|
-
ok: false,
|
|
460
|
-
error: `remoteclaw.hooks entry resolves outside package directory: ${entry}`
|
|
461
|
-
};
|
|
462
|
-
const hookName = await resolveHookNameFromDir(hookDir);
|
|
463
|
-
resolvedHooks.push(hookName);
|
|
464
|
-
}
|
|
465
|
-
if (dryRun) return {
|
|
466
|
-
ok: true,
|
|
467
|
-
hookPackId,
|
|
468
|
-
hooks: resolvedHooks,
|
|
469
|
-
targetDir,
|
|
470
|
-
version: typeof manifest.version === "string" ? manifest.version : void 0
|
|
471
|
-
};
|
|
472
|
-
const deps = manifest.dependencies ?? {};
|
|
473
|
-
const hasDeps = Object.keys(deps).length > 0;
|
|
474
|
-
const installRes = await installPackageDir({
|
|
475
|
-
sourceDir: params.packageDir,
|
|
476
|
-
targetDir,
|
|
477
|
-
mode,
|
|
478
|
-
timeoutMs,
|
|
479
|
-
logger,
|
|
480
|
-
copyErrorPrefix: "failed to copy hook pack",
|
|
481
|
-
hasDeps,
|
|
482
|
-
depsLogMessage: "Installing hook pack dependencies…"
|
|
483
|
-
});
|
|
484
|
-
if (!installRes.ok) return installRes;
|
|
485
|
-
return {
|
|
486
|
-
ok: true,
|
|
487
|
-
hookPackId,
|
|
488
|
-
hooks: resolvedHooks,
|
|
489
|
-
targetDir,
|
|
490
|
-
version: typeof manifest.version === "string" ? manifest.version : void 0
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
async function installHookFromDir(params) {
|
|
494
|
-
const { logger, mode, dryRun } = resolveInstallModeOptions(params, defaultLogger);
|
|
495
|
-
await validateHookDir(params.hookDir);
|
|
496
|
-
const hookName = await resolveHookNameFromDir(params.hookDir);
|
|
497
|
-
const hookIdError = validateHookId(hookName);
|
|
498
|
-
if (hookIdError) return {
|
|
499
|
-
ok: false,
|
|
500
|
-
error: hookIdError
|
|
501
|
-
};
|
|
502
|
-
if (params.expectedHookPackId && params.expectedHookPackId !== hookName) return {
|
|
503
|
-
ok: false,
|
|
504
|
-
error: `hook id mismatch: expected ${params.expectedHookPackId}, got ${hookName}`
|
|
505
|
-
};
|
|
506
|
-
const targetDirResult = await resolveInstallTargetDir(hookName, params.hooksDir);
|
|
507
|
-
if (!targetDirResult.ok) return {
|
|
508
|
-
ok: false,
|
|
509
|
-
error: targetDirResult.error
|
|
510
|
-
};
|
|
511
|
-
const targetDir = targetDirResult.targetDir;
|
|
512
|
-
if (mode === "install" && await fileExists(targetDir)) return {
|
|
513
|
-
ok: false,
|
|
514
|
-
error: `hook already exists: ${targetDir} (delete it first)`
|
|
515
|
-
};
|
|
516
|
-
if (dryRun) return {
|
|
517
|
-
ok: true,
|
|
518
|
-
hookPackId: hookName,
|
|
519
|
-
hooks: [hookName],
|
|
520
|
-
targetDir
|
|
521
|
-
};
|
|
522
|
-
logger.info?.(`Installing to ${targetDir}…`);
|
|
523
|
-
let backupDir = null;
|
|
524
|
-
if (mode === "update" && await fileExists(targetDir)) {
|
|
525
|
-
backupDir = `${targetDir}.backup-${Date.now()}`;
|
|
526
|
-
await fsp.rename(targetDir, backupDir);
|
|
527
|
-
}
|
|
528
|
-
try {
|
|
529
|
-
await fsp.cp(params.hookDir, targetDir, { recursive: true });
|
|
530
|
-
} catch (err) {
|
|
531
|
-
if (backupDir) {
|
|
532
|
-
await fsp.rm(targetDir, {
|
|
533
|
-
recursive: true,
|
|
534
|
-
force: true
|
|
535
|
-
}).catch(() => void 0);
|
|
536
|
-
await fsp.rename(backupDir, targetDir).catch(() => void 0);
|
|
537
|
-
}
|
|
538
|
-
return {
|
|
539
|
-
ok: false,
|
|
540
|
-
error: `failed to copy hook: ${String(err)}`
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
if (backupDir) await fsp.rm(backupDir, {
|
|
544
|
-
recursive: true,
|
|
545
|
-
force: true
|
|
546
|
-
}).catch(() => void 0);
|
|
547
|
-
return {
|
|
548
|
-
ok: true,
|
|
549
|
-
hookPackId: hookName,
|
|
550
|
-
hooks: [hookName],
|
|
551
|
-
targetDir
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
async function installHooksFromArchive(params) {
|
|
555
|
-
const logger = params.logger ?? defaultLogger;
|
|
556
|
-
const timeoutMs = params.timeoutMs ?? 12e4;
|
|
557
|
-
const archivePathResult = await resolveArchiveSourcePath(params.archivePath);
|
|
558
|
-
if (!archivePathResult.ok) return archivePathResult;
|
|
559
|
-
const archivePath = archivePathResult.path;
|
|
560
|
-
return await withExtractedArchiveRoot({
|
|
561
|
-
archivePath,
|
|
562
|
-
tempDirPrefix: "remoteclaw-hook-",
|
|
563
|
-
timeoutMs,
|
|
564
|
-
logger,
|
|
565
|
-
onExtracted: async (rootDir) => {
|
|
566
|
-
if (await fileExists(path.join(rootDir, "package.json"))) return await installHookPackageFromDir({
|
|
567
|
-
packageDir: rootDir,
|
|
568
|
-
hooksDir: params.hooksDir,
|
|
569
|
-
timeoutMs,
|
|
570
|
-
logger,
|
|
571
|
-
mode: params.mode,
|
|
572
|
-
dryRun: params.dryRun,
|
|
573
|
-
expectedHookPackId: params.expectedHookPackId
|
|
574
|
-
});
|
|
575
|
-
return await installHookFromDir({
|
|
576
|
-
hookDir: rootDir,
|
|
577
|
-
hooksDir: params.hooksDir,
|
|
578
|
-
logger,
|
|
579
|
-
mode: params.mode,
|
|
580
|
-
dryRun: params.dryRun,
|
|
581
|
-
expectedHookPackId: params.expectedHookPackId
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
async function installHooksFromNpmSpec(params) {
|
|
587
|
-
const { logger, timeoutMs, mode, dryRun } = resolveTimedInstallModeOptions(params, defaultLogger);
|
|
588
|
-
const expectedHookPackId = params.expectedHookPackId;
|
|
589
|
-
const spec = params.spec.trim();
|
|
590
|
-
const specError = validateRegistryNpmSpec(spec);
|
|
591
|
-
if (specError) return {
|
|
592
|
-
ok: false,
|
|
593
|
-
error: specError
|
|
594
|
-
};
|
|
595
|
-
logger.info?.(`Downloading ${spec}…`);
|
|
596
|
-
return finalizeNpmSpecArchiveInstall(await installFromNpmSpecArchiveWithInstaller({
|
|
597
|
-
tempDirPrefix: "remoteclaw-hook-pack-",
|
|
598
|
-
spec,
|
|
599
|
-
timeoutMs,
|
|
600
|
-
expectedIntegrity: params.expectedIntegrity,
|
|
601
|
-
onIntegrityDrift: params.onIntegrityDrift,
|
|
602
|
-
warn: (message) => {
|
|
603
|
-
logger.warn?.(message);
|
|
604
|
-
},
|
|
605
|
-
installFromArchive: installHooksFromArchive,
|
|
606
|
-
archiveInstallParams: {
|
|
607
|
-
hooksDir: params.hooksDir,
|
|
608
|
-
timeoutMs,
|
|
609
|
-
logger,
|
|
610
|
-
mode,
|
|
611
|
-
dryRun,
|
|
612
|
-
expectedHookPackId
|
|
613
|
-
}
|
|
614
|
-
}));
|
|
615
|
-
}
|
|
616
|
-
async function installHooksFromPath(params) {
|
|
617
|
-
const pathResult = await resolveExistingInstallPath(params.path);
|
|
618
|
-
if (!pathResult.ok) return pathResult;
|
|
619
|
-
const { resolvedPath: resolved, stat } = pathResult;
|
|
620
|
-
if (stat.isDirectory()) {
|
|
621
|
-
if (await fileExists(path.join(resolved, "package.json"))) return await installHookPackageFromDir({
|
|
622
|
-
packageDir: resolved,
|
|
623
|
-
hooksDir: params.hooksDir,
|
|
624
|
-
timeoutMs: params.timeoutMs,
|
|
625
|
-
logger: params.logger,
|
|
626
|
-
mode: params.mode,
|
|
627
|
-
dryRun: params.dryRun,
|
|
628
|
-
expectedHookPackId: params.expectedHookPackId
|
|
629
|
-
});
|
|
630
|
-
return await installHookFromDir({
|
|
631
|
-
hookDir: resolved,
|
|
632
|
-
hooksDir: params.hooksDir,
|
|
633
|
-
logger: params.logger,
|
|
634
|
-
mode: params.mode,
|
|
635
|
-
dryRun: params.dryRun,
|
|
636
|
-
expectedHookPackId: params.expectedHookPackId
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
if (!resolveArchiveKind(resolved)) return {
|
|
640
|
-
ok: false,
|
|
641
|
-
error: `unsupported hook file: ${resolved}`
|
|
642
|
-
};
|
|
643
|
-
return await installHooksFromArchive({
|
|
644
|
-
archivePath: resolved,
|
|
645
|
-
hooksDir: params.hooksDir,
|
|
646
|
-
timeoutMs: params.timeoutMs,
|
|
647
|
-
logger: params.logger,
|
|
648
|
-
mode: params.mode,
|
|
649
|
-
dryRun: params.dryRun,
|
|
650
|
-
expectedHookPackId: params.expectedHookPackId
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
//#endregion
|
|
655
|
-
//#region src/hooks/installs.ts
|
|
656
|
-
function recordHookInstall(cfg, update) {
|
|
657
|
-
const { hookId, ...record } = update;
|
|
658
|
-
const installs = {
|
|
659
|
-
...cfg.hooks?.internal?.installs,
|
|
660
|
-
[hookId]: {
|
|
661
|
-
...cfg.hooks?.internal?.installs?.[hookId],
|
|
662
|
-
...record,
|
|
663
|
-
installedAt: record.installedAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
return {
|
|
667
|
-
...cfg,
|
|
668
|
-
hooks: {
|
|
669
|
-
...cfg.hooks,
|
|
670
|
-
internal: {
|
|
671
|
-
...cfg.hooks?.internal,
|
|
672
|
-
installs: {
|
|
673
|
-
...installs,
|
|
674
|
-
[hookId]: installs[hookId]
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
//#endregion
|
|
682
|
-
//#region src/cli/hooks-cli.ts
|
|
683
|
-
function mergeHookEntries(pluginEntries, workspaceEntries) {
|
|
684
|
-
const merged = /* @__PURE__ */ new Map();
|
|
685
|
-
for (const entry of pluginEntries) merged.set(entry.hook.name, entry);
|
|
686
|
-
for (const entry of workspaceEntries) merged.set(entry.hook.name, entry);
|
|
687
|
-
return Array.from(merged.values());
|
|
688
|
-
}
|
|
689
|
-
function buildHooksReport(config) {
|
|
690
|
-
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
|
691
|
-
const workspaceEntries = loadWorkspaceHookEntries(workspaceDir, { config });
|
|
692
|
-
return buildWorkspaceHookStatus(workspaceDir, {
|
|
693
|
-
config,
|
|
694
|
-
entries: mergeHookEntries(buildPluginStatusReport({
|
|
695
|
-
config,
|
|
696
|
-
workspaceDir
|
|
697
|
-
}).hooks.map((hook) => hook.entry), workspaceEntries)
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
function resolveHookForToggle(report, hookName, opts) {
|
|
701
|
-
const hook = report.hooks.find((h) => h.name === hookName);
|
|
702
|
-
if (!hook) throw new Error(`Hook "${hookName}" not found`);
|
|
703
|
-
if (hook.managedByPlugin) throw new Error(`Hook "${hookName}" is managed by plugin "${hook.pluginId ?? "unknown"}" and cannot be enabled/disabled.`);
|
|
704
|
-
if (opts?.requireEligible && !hook.eligible) throw new Error(`Hook "${hookName}" is not eligible (missing requirements)`);
|
|
705
|
-
return hook;
|
|
706
|
-
}
|
|
707
|
-
function buildConfigWithHookEnabled(params) {
|
|
708
|
-
const entries = { ...params.config.hooks?.internal?.entries };
|
|
709
|
-
entries[params.hookName] = {
|
|
710
|
-
...entries[params.hookName],
|
|
711
|
-
enabled: params.enabled
|
|
712
|
-
};
|
|
713
|
-
const internal = {
|
|
714
|
-
...params.config.hooks?.internal,
|
|
715
|
-
...params.ensureHooksEnabled ? { enabled: true } : {},
|
|
716
|
-
entries
|
|
717
|
-
};
|
|
718
|
-
return {
|
|
719
|
-
...params.config,
|
|
720
|
-
hooks: {
|
|
721
|
-
...params.config.hooks,
|
|
722
|
-
internal
|
|
723
|
-
}
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
function formatHookStatus(hook) {
|
|
727
|
-
if (hook.eligible) return theme.success("✓ ready");
|
|
728
|
-
if (hook.disabled) return theme.warn("⏸ disabled");
|
|
729
|
-
return theme.error("✗ missing");
|
|
730
|
-
}
|
|
731
|
-
function formatHookName(hook) {
|
|
732
|
-
return `${hook.emoji ?? "🔗"} ${theme.command(hook.name)}`;
|
|
733
|
-
}
|
|
734
|
-
function formatHookSource(hook) {
|
|
735
|
-
if (!hook.managedByPlugin) return hook.source;
|
|
736
|
-
return `plugin:${hook.pluginId ?? "unknown"}`;
|
|
737
|
-
}
|
|
738
|
-
function formatHookMissingSummary(hook) {
|
|
739
|
-
const missing = [];
|
|
740
|
-
if (hook.missing.bins.length > 0) missing.push(`bins: ${hook.missing.bins.join(", ")}`);
|
|
741
|
-
if (hook.missing.anyBins.length > 0) missing.push(`anyBins: ${hook.missing.anyBins.join(", ")}`);
|
|
742
|
-
if (hook.missing.env.length > 0) missing.push(`env: ${hook.missing.env.join(", ")}`);
|
|
743
|
-
if (hook.missing.config.length > 0) missing.push(`config: ${hook.missing.config.join(", ")}`);
|
|
744
|
-
if (hook.missing.os.length > 0) missing.push(`os: ${hook.missing.os.join(", ")}`);
|
|
745
|
-
return missing.join("; ");
|
|
746
|
-
}
|
|
747
|
-
function exitHooksCliWithError(err) {
|
|
748
|
-
defaultRuntime.error(`${theme.error("Error:")} ${err instanceof Error ? err.message : String(err)}`);
|
|
749
|
-
process.exit(1);
|
|
750
|
-
}
|
|
751
|
-
async function runHooksCliAction(action) {
|
|
752
|
-
try {
|
|
753
|
-
await action();
|
|
754
|
-
} catch (err) {
|
|
755
|
-
exitHooksCliWithError(err);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
function createInstallLogger() {
|
|
759
|
-
return {
|
|
760
|
-
info: (msg) => defaultRuntime.log(msg),
|
|
761
|
-
warn: (msg) => defaultRuntime.log(theme.warn(msg))
|
|
762
|
-
};
|
|
763
|
-
}
|
|
764
|
-
function logGatewayRestartHint() {
|
|
765
|
-
defaultRuntime.log("Restart the gateway to load hooks.");
|
|
766
|
-
}
|
|
767
|
-
function logIntegrityDriftWarning(hookId, drift) {
|
|
768
|
-
const specLabel = drift.resolution.resolvedSpec ?? drift.spec;
|
|
769
|
-
defaultRuntime.log(theme.warn(`Integrity drift detected for "${hookId}" (${specLabel})\nExpected: ${drift.expectedIntegrity}\nActual: ${drift.actualIntegrity}`));
|
|
770
|
-
}
|
|
771
|
-
async function readInstalledPackageVersion(dir) {
|
|
772
|
-
try {
|
|
773
|
-
const raw = await fsp.readFile(path.join(dir, "package.json"), "utf-8");
|
|
774
|
-
const parsed = JSON.parse(raw);
|
|
775
|
-
return typeof parsed.version === "string" ? parsed.version : void 0;
|
|
776
|
-
} catch {
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
function enableInternalHookEntries(config, hookNames) {
|
|
781
|
-
const entries = { ...config.hooks?.internal?.entries };
|
|
782
|
-
for (const hookName of hookNames) entries[hookName] = {
|
|
783
|
-
...entries[hookName],
|
|
784
|
-
enabled: true
|
|
785
|
-
};
|
|
786
|
-
return {
|
|
787
|
-
...config,
|
|
788
|
-
hooks: {
|
|
789
|
-
...config.hooks,
|
|
790
|
-
internal: {
|
|
791
|
-
...config.hooks?.internal,
|
|
792
|
-
enabled: true,
|
|
793
|
-
entries
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* Format the hooks list output
|
|
800
|
-
*/
|
|
801
|
-
function formatHooksList(report, opts) {
|
|
802
|
-
const hooks = opts.eligible ? report.hooks.filter((h) => h.eligible) : report.hooks;
|
|
803
|
-
if (opts.json) {
|
|
804
|
-
const jsonReport = {
|
|
805
|
-
workspaceDir: report.workspaceDir,
|
|
806
|
-
managedHooksDir: report.managedHooksDir,
|
|
807
|
-
hooks: hooks.map((h) => ({
|
|
808
|
-
name: h.name,
|
|
809
|
-
description: h.description,
|
|
810
|
-
emoji: h.emoji,
|
|
811
|
-
eligible: h.eligible,
|
|
812
|
-
disabled: h.disabled,
|
|
813
|
-
source: h.source,
|
|
814
|
-
pluginId: h.pluginId,
|
|
815
|
-
events: h.events,
|
|
816
|
-
homepage: h.homepage,
|
|
817
|
-
missing: h.missing,
|
|
818
|
-
managedByPlugin: h.managedByPlugin
|
|
819
|
-
}))
|
|
820
|
-
};
|
|
821
|
-
return JSON.stringify(jsonReport, null, 2);
|
|
822
|
-
}
|
|
823
|
-
if (hooks.length === 0) return opts.eligible ? `No eligible hooks found. Run \`${formatCliCommand("remoteclaw hooks list")}\` to see all hooks.` : "No hooks found.";
|
|
824
|
-
const eligible = hooks.filter((h) => h.eligible);
|
|
825
|
-
const tableWidth = Math.max(60, (process.stdout.columns ?? 120) - 1);
|
|
826
|
-
const rows = hooks.map((hook) => {
|
|
827
|
-
const missing = formatHookMissingSummary(hook);
|
|
828
|
-
return {
|
|
829
|
-
Status: formatHookStatus(hook),
|
|
830
|
-
Hook: formatHookName(hook),
|
|
831
|
-
Description: theme.muted(hook.description),
|
|
832
|
-
Source: formatHookSource(hook),
|
|
833
|
-
Missing: missing ? theme.warn(missing) : ""
|
|
834
|
-
};
|
|
835
|
-
});
|
|
836
|
-
const columns = [
|
|
837
|
-
{
|
|
838
|
-
key: "Status",
|
|
839
|
-
header: "Status",
|
|
840
|
-
minWidth: 10
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
key: "Hook",
|
|
844
|
-
header: "Hook",
|
|
845
|
-
minWidth: 18,
|
|
846
|
-
flex: true
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
key: "Description",
|
|
850
|
-
header: "Description",
|
|
851
|
-
minWidth: 24,
|
|
852
|
-
flex: true
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
key: "Source",
|
|
856
|
-
header: "Source",
|
|
857
|
-
minWidth: 12,
|
|
858
|
-
flex: true
|
|
859
|
-
}
|
|
860
|
-
];
|
|
861
|
-
if (opts.verbose) columns.push({
|
|
862
|
-
key: "Missing",
|
|
863
|
-
header: "Missing",
|
|
864
|
-
minWidth: 18,
|
|
865
|
-
flex: true
|
|
866
|
-
});
|
|
867
|
-
const lines = [];
|
|
868
|
-
lines.push(`${theme.heading("Hooks")} ${theme.muted(`(${eligible.length}/${hooks.length} ready)`)}`);
|
|
869
|
-
lines.push(renderTable({
|
|
870
|
-
width: tableWidth,
|
|
871
|
-
columns,
|
|
872
|
-
rows
|
|
873
|
-
}).trimEnd());
|
|
874
|
-
return lines.join("\n");
|
|
875
|
-
}
|
|
876
|
-
/**
|
|
877
|
-
* Format detailed info for a single hook
|
|
878
|
-
*/
|
|
879
|
-
function formatHookInfo(report, hookName, opts) {
|
|
880
|
-
const hook = report.hooks.find((h) => h.name === hookName || h.hookKey === hookName);
|
|
881
|
-
if (!hook) {
|
|
882
|
-
if (opts.json) return JSON.stringify({
|
|
883
|
-
error: "not found",
|
|
884
|
-
hook: hookName
|
|
885
|
-
}, null, 2);
|
|
886
|
-
return `Hook "${hookName}" not found. Run \`${formatCliCommand("remoteclaw hooks list")}\` to see available hooks.`;
|
|
887
|
-
}
|
|
888
|
-
if (opts.json) return JSON.stringify(hook, null, 2);
|
|
889
|
-
const lines = [];
|
|
890
|
-
const emoji = hook.emoji ?? "🔗";
|
|
891
|
-
const status = hook.eligible ? theme.success("✓ Ready") : hook.disabled ? theme.warn("⏸ Disabled") : theme.error("✗ Missing requirements");
|
|
892
|
-
lines.push(`${emoji} ${theme.heading(hook.name)} ${status}`);
|
|
893
|
-
lines.push("");
|
|
894
|
-
lines.push(hook.description);
|
|
895
|
-
lines.push("");
|
|
896
|
-
lines.push(theme.heading("Details:"));
|
|
897
|
-
if (hook.managedByPlugin) lines.push(`${theme.muted(" Source:")} ${hook.source} (${hook.pluginId ?? "unknown"})`);
|
|
898
|
-
else lines.push(`${theme.muted(" Source:")} ${hook.source}`);
|
|
899
|
-
lines.push(`${theme.muted(" Path:")} ${shortenHomePath(hook.filePath)}`);
|
|
900
|
-
lines.push(`${theme.muted(" Handler:")} ${shortenHomePath(hook.handlerPath)}`);
|
|
901
|
-
if (hook.homepage) lines.push(`${theme.muted(" Homepage:")} ${hook.homepage}`);
|
|
902
|
-
if (hook.events.length > 0) lines.push(`${theme.muted(" Events:")} ${hook.events.join(", ")}`);
|
|
903
|
-
if (hook.managedByPlugin) lines.push(theme.muted(" Managed by plugin; enable/disable via hooks CLI not available."));
|
|
904
|
-
if (hook.requirements.bins.length > 0 || hook.requirements.anyBins.length > 0 || hook.requirements.env.length > 0 || hook.requirements.config.length > 0 || hook.requirements.os.length > 0) {
|
|
905
|
-
lines.push("");
|
|
906
|
-
lines.push(theme.heading("Requirements:"));
|
|
907
|
-
if (hook.requirements.bins.length > 0) {
|
|
908
|
-
const binsStatus = hook.requirements.bins.map((bin) => {
|
|
909
|
-
return hook.missing.bins.includes(bin) ? theme.error(`✗ ${bin}`) : theme.success(`✓ ${bin}`);
|
|
910
|
-
});
|
|
911
|
-
lines.push(`${theme.muted(" Binaries:")} ${binsStatus.join(", ")}`);
|
|
912
|
-
}
|
|
913
|
-
if (hook.requirements.anyBins.length > 0) {
|
|
914
|
-
const anyBinsStatus = hook.missing.anyBins.length > 0 ? theme.error(`✗ (any of: ${hook.requirements.anyBins.join(", ")})`) : theme.success(`✓ (any of: ${hook.requirements.anyBins.join(", ")})`);
|
|
915
|
-
lines.push(`${theme.muted(" Any binary:")} ${anyBinsStatus}`);
|
|
916
|
-
}
|
|
917
|
-
if (hook.requirements.env.length > 0) {
|
|
918
|
-
const envStatus = hook.requirements.env.map((env) => {
|
|
919
|
-
return hook.missing.env.includes(env) ? theme.error(`✗ ${env}`) : theme.success(`✓ ${env}`);
|
|
920
|
-
});
|
|
921
|
-
lines.push(`${theme.muted(" Environment:")} ${envStatus.join(", ")}`);
|
|
922
|
-
}
|
|
923
|
-
if (hook.requirements.config.length > 0) {
|
|
924
|
-
const configStatus = hook.configChecks.map((check) => {
|
|
925
|
-
return check.satisfied ? theme.success(`✓ ${check.path}`) : theme.error(`✗ ${check.path}`);
|
|
926
|
-
});
|
|
927
|
-
lines.push(`${theme.muted(" Config:")} ${configStatus.join(", ")}`);
|
|
928
|
-
}
|
|
929
|
-
if (hook.requirements.os.length > 0) {
|
|
930
|
-
const osStatus = hook.missing.os.length > 0 ? theme.error(`✗ (${hook.requirements.os.join(", ")})`) : theme.success(`✓ (${hook.requirements.os.join(", ")})`);
|
|
931
|
-
lines.push(`${theme.muted(" OS:")} ${osStatus}`);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
return lines.join("\n");
|
|
935
|
-
}
|
|
936
|
-
/**
|
|
937
|
-
* Format check output
|
|
938
|
-
*/
|
|
939
|
-
function formatHooksCheck(report, opts) {
|
|
940
|
-
if (opts.json) {
|
|
941
|
-
const eligible = report.hooks.filter((h) => h.eligible);
|
|
942
|
-
const notEligible = report.hooks.filter((h) => !h.eligible);
|
|
943
|
-
return JSON.stringify({
|
|
944
|
-
total: report.hooks.length,
|
|
945
|
-
eligible: eligible.length,
|
|
946
|
-
notEligible: notEligible.length,
|
|
947
|
-
hooks: {
|
|
948
|
-
eligible: eligible.map((h) => h.name),
|
|
949
|
-
notEligible: notEligible.map((h) => ({
|
|
950
|
-
name: h.name,
|
|
951
|
-
missing: h.missing
|
|
952
|
-
}))
|
|
953
|
-
}
|
|
954
|
-
}, null, 2);
|
|
955
|
-
}
|
|
956
|
-
const eligible = report.hooks.filter((h) => h.eligible);
|
|
957
|
-
const notEligible = report.hooks.filter((h) => !h.eligible);
|
|
958
|
-
const lines = [];
|
|
959
|
-
lines.push(theme.heading("Hooks Status"));
|
|
960
|
-
lines.push("");
|
|
961
|
-
lines.push(`${theme.muted("Total hooks:")} ${report.hooks.length}`);
|
|
962
|
-
lines.push(`${theme.success("Ready:")} ${eligible.length}`);
|
|
963
|
-
lines.push(`${theme.warn("Not ready:")} ${notEligible.length}`);
|
|
964
|
-
if (notEligible.length > 0) {
|
|
965
|
-
lines.push("");
|
|
966
|
-
lines.push(theme.heading("Hooks not ready:"));
|
|
967
|
-
for (const hook of notEligible) {
|
|
968
|
-
const reasons = [];
|
|
969
|
-
if (hook.disabled) reasons.push("disabled");
|
|
970
|
-
if (hook.missing.bins.length > 0) reasons.push(`bins: ${hook.missing.bins.join(", ")}`);
|
|
971
|
-
if (hook.missing.anyBins.length > 0) reasons.push(`anyBins: ${hook.missing.anyBins.join(", ")}`);
|
|
972
|
-
if (hook.missing.env.length > 0) reasons.push(`env: ${hook.missing.env.join(", ")}`);
|
|
973
|
-
if (hook.missing.config.length > 0) reasons.push(`config: ${hook.missing.config.join(", ")}`);
|
|
974
|
-
if (hook.missing.os.length > 0) reasons.push(`os: ${hook.missing.os.join(", ")}`);
|
|
975
|
-
lines.push(` ${hook.emoji ?? "🔗"} ${hook.name} - ${reasons.join("; ")}`);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
return lines.join("\n");
|
|
979
|
-
}
|
|
980
|
-
async function enableHook(hookName) {
|
|
981
|
-
const config = loadConfig();
|
|
982
|
-
const hook = resolveHookForToggle(buildHooksReport(config), hookName, { requireEligible: true });
|
|
983
|
-
await writeConfigFile(buildConfigWithHookEnabled({
|
|
984
|
-
config,
|
|
985
|
-
hookName,
|
|
986
|
-
enabled: true,
|
|
987
|
-
ensureHooksEnabled: true
|
|
988
|
-
}));
|
|
989
|
-
defaultRuntime.log(`${theme.success("✓")} Enabled hook: ${hook.emoji ?? "🔗"} ${theme.command(hookName)}`);
|
|
990
|
-
}
|
|
991
|
-
async function disableHook(hookName) {
|
|
992
|
-
const config = loadConfig();
|
|
993
|
-
const hook = resolveHookForToggle(buildHooksReport(config), hookName);
|
|
994
|
-
await writeConfigFile(buildConfigWithHookEnabled({
|
|
995
|
-
config,
|
|
996
|
-
hookName,
|
|
997
|
-
enabled: false
|
|
998
|
-
}));
|
|
999
|
-
defaultRuntime.log(`${theme.warn("⏸")} Disabled hook: ${hook.emoji ?? "🔗"} ${theme.command(hookName)}`);
|
|
1000
|
-
}
|
|
1001
|
-
function registerHooksCli(program) {
|
|
1002
|
-
const hooks = program.command("hooks").description("Manage internal agent hooks").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/hooks", "docs.remoteclaw.org/cli/hooks")}\n`);
|
|
1003
|
-
hooks.command("list").description("List all hooks").option("--eligible", "Show only eligible hooks", false).option("--json", "Output as JSON", false).option("-v, --verbose", "Show more details including missing requirements", false).action(async (opts) => runHooksCliAction(async () => {
|
|
1004
|
-
const report = buildHooksReport(loadConfig());
|
|
1005
|
-
defaultRuntime.log(formatHooksList(report, opts));
|
|
1006
|
-
}));
|
|
1007
|
-
hooks.command("info <name>").description("Show detailed information about a hook").option("--json", "Output as JSON", false).action(async (name, opts) => runHooksCliAction(async () => {
|
|
1008
|
-
const report = buildHooksReport(loadConfig());
|
|
1009
|
-
defaultRuntime.log(formatHookInfo(report, name, opts));
|
|
1010
|
-
}));
|
|
1011
|
-
hooks.command("check").description("Check hooks eligibility status").option("--json", "Output as JSON", false).action(async (opts) => runHooksCliAction(async () => {
|
|
1012
|
-
const report = buildHooksReport(loadConfig());
|
|
1013
|
-
defaultRuntime.log(formatHooksCheck(report, opts));
|
|
1014
|
-
}));
|
|
1015
|
-
hooks.command("enable <name>").description("Enable a hook").action(async (name) => runHooksCliAction(async () => {
|
|
1016
|
-
await enableHook(name);
|
|
1017
|
-
}));
|
|
1018
|
-
hooks.command("disable <name>").description("Disable a hook").action(async (name) => runHooksCliAction(async () => {
|
|
1019
|
-
await disableHook(name);
|
|
1020
|
-
}));
|
|
1021
|
-
hooks.command("install").description("Install a hook pack (path, archive, or npm spec)").argument("<path-or-spec>", "Path to a hook pack or npm package spec").option("-l, --link", "Link a local path instead of copying", false).option("--pin", "Record npm installs as exact resolved <name>@<version>", false).action(async (raw, opts) => {
|
|
1022
|
-
const resolved = resolveUserPath(raw);
|
|
1023
|
-
const cfg = loadConfig();
|
|
1024
|
-
if (fs.existsSync(resolved)) {
|
|
1025
|
-
if (opts.link) {
|
|
1026
|
-
if (!fs.statSync(resolved).isDirectory()) {
|
|
1027
|
-
defaultRuntime.error("Linked hook paths must be directories.");
|
|
1028
|
-
process.exit(1);
|
|
1029
|
-
}
|
|
1030
|
-
const existing = cfg.hooks?.internal?.load?.extraDirs ?? [];
|
|
1031
|
-
const merged = Array.from(new Set([...existing, resolved]));
|
|
1032
|
-
const probe = await installHooksFromPath({
|
|
1033
|
-
path: resolved,
|
|
1034
|
-
dryRun: true
|
|
1035
|
-
});
|
|
1036
|
-
if (!probe.ok) {
|
|
1037
|
-
defaultRuntime.error(probe.error);
|
|
1038
|
-
process.exit(1);
|
|
1039
|
-
}
|
|
1040
|
-
let next = {
|
|
1041
|
-
...cfg,
|
|
1042
|
-
hooks: {
|
|
1043
|
-
...cfg.hooks,
|
|
1044
|
-
internal: {
|
|
1045
|
-
...cfg.hooks?.internal,
|
|
1046
|
-
enabled: true,
|
|
1047
|
-
load: {
|
|
1048
|
-
...cfg.hooks?.internal?.load,
|
|
1049
|
-
extraDirs: merged
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
next = enableInternalHookEntries(next, probe.hooks);
|
|
1055
|
-
next = recordHookInstall(next, {
|
|
1056
|
-
hookId: probe.hookPackId,
|
|
1057
|
-
source: "path",
|
|
1058
|
-
sourcePath: resolved,
|
|
1059
|
-
installPath: resolved,
|
|
1060
|
-
version: probe.version,
|
|
1061
|
-
hooks: probe.hooks
|
|
1062
|
-
});
|
|
1063
|
-
await writeConfigFile(next);
|
|
1064
|
-
defaultRuntime.log(`Linked hook path: ${shortenHomePath(resolved)}`);
|
|
1065
|
-
logGatewayRestartHint();
|
|
1066
|
-
return;
|
|
1067
|
-
}
|
|
1068
|
-
const result = await installHooksFromPath({
|
|
1069
|
-
path: resolved,
|
|
1070
|
-
logger: createInstallLogger()
|
|
1071
|
-
});
|
|
1072
|
-
if (!result.ok) {
|
|
1073
|
-
defaultRuntime.error(result.error);
|
|
1074
|
-
process.exit(1);
|
|
1075
|
-
}
|
|
1076
|
-
let next = enableInternalHookEntries(cfg, result.hooks);
|
|
1077
|
-
const source = resolveArchiveKind(resolved) ? "archive" : "path";
|
|
1078
|
-
next = recordHookInstall(next, {
|
|
1079
|
-
hookId: result.hookPackId,
|
|
1080
|
-
source,
|
|
1081
|
-
sourcePath: resolved,
|
|
1082
|
-
installPath: result.targetDir,
|
|
1083
|
-
version: result.version,
|
|
1084
|
-
hooks: result.hooks
|
|
1085
|
-
});
|
|
1086
|
-
await writeConfigFile(next);
|
|
1087
|
-
defaultRuntime.log(`Installed hooks: ${result.hooks.join(", ")}`);
|
|
1088
|
-
logGatewayRestartHint();
|
|
1089
|
-
return;
|
|
1090
|
-
}
|
|
1091
|
-
if (opts.link) {
|
|
1092
|
-
defaultRuntime.error("`--link` requires a local path.");
|
|
1093
|
-
process.exit(1);
|
|
1094
|
-
}
|
|
1095
|
-
if (raw.startsWith(".") || raw.startsWith("~") || path.isAbsolute(raw) || raw.endsWith(".zip") || raw.endsWith(".tgz") || raw.endsWith(".tar.gz") || raw.endsWith(".tar")) {
|
|
1096
|
-
defaultRuntime.error(`Path not found: ${resolved}`);
|
|
1097
|
-
process.exit(1);
|
|
1098
|
-
}
|
|
1099
|
-
const result = await installHooksFromNpmSpec({
|
|
1100
|
-
spec: raw,
|
|
1101
|
-
logger: createInstallLogger()
|
|
1102
|
-
});
|
|
1103
|
-
if (!result.ok) {
|
|
1104
|
-
defaultRuntime.error(result.error);
|
|
1105
|
-
process.exit(1);
|
|
1106
|
-
}
|
|
1107
|
-
let next = enableInternalHookEntries(cfg, result.hooks);
|
|
1108
|
-
const installRecord = resolvePinnedNpmInstallRecordForCli(raw, Boolean(opts.pin), result.targetDir, result.version, result.npmResolution, defaultRuntime.log, theme.warn);
|
|
1109
|
-
next = recordHookInstall(next, {
|
|
1110
|
-
hookId: result.hookPackId,
|
|
1111
|
-
...installRecord,
|
|
1112
|
-
hooks: result.hooks
|
|
1113
|
-
});
|
|
1114
|
-
await writeConfigFile(next);
|
|
1115
|
-
defaultRuntime.log(`Installed hooks: ${result.hooks.join(", ")}`);
|
|
1116
|
-
logGatewayRestartHint();
|
|
1117
|
-
});
|
|
1118
|
-
hooks.command("update").description("Update installed hooks (npm installs only)").argument("[id]", "Hook pack id (omit with --all)").option("--all", "Update all tracked hooks", false).option("--dry-run", "Show what would change without writing", false).action(async (id, opts) => {
|
|
1119
|
-
const cfg = loadConfig();
|
|
1120
|
-
const installs = cfg.hooks?.internal?.installs ?? {};
|
|
1121
|
-
const targets = opts.all ? Object.keys(installs) : id ? [id] : [];
|
|
1122
|
-
if (targets.length === 0) {
|
|
1123
|
-
defaultRuntime.error("Provide a hook id or use --all.");
|
|
1124
|
-
process.exit(1);
|
|
1125
|
-
}
|
|
1126
|
-
let nextCfg = cfg;
|
|
1127
|
-
let updatedCount = 0;
|
|
1128
|
-
for (const hookId of targets) {
|
|
1129
|
-
const record = installs[hookId];
|
|
1130
|
-
if (!record) {
|
|
1131
|
-
defaultRuntime.log(theme.warn(`No install record for "${hookId}".`));
|
|
1132
|
-
continue;
|
|
1133
|
-
}
|
|
1134
|
-
if (record.source !== "npm") {
|
|
1135
|
-
defaultRuntime.log(theme.warn(`Skipping "${hookId}" (source: ${record.source}).`));
|
|
1136
|
-
continue;
|
|
1137
|
-
}
|
|
1138
|
-
if (!record.spec) {
|
|
1139
|
-
defaultRuntime.log(theme.warn(`Skipping "${hookId}" (missing npm spec).`));
|
|
1140
|
-
continue;
|
|
1141
|
-
}
|
|
1142
|
-
let installPath;
|
|
1143
|
-
try {
|
|
1144
|
-
installPath = record.installPath ?? resolveHookInstallDir(hookId);
|
|
1145
|
-
} catch (err) {
|
|
1146
|
-
defaultRuntime.log(theme.error(`Invalid install path for "${hookId}": ${String(err)}`));
|
|
1147
|
-
continue;
|
|
1148
|
-
}
|
|
1149
|
-
const currentVersion = await readInstalledPackageVersion(installPath);
|
|
1150
|
-
if (opts.dryRun) {
|
|
1151
|
-
const probe = await installHooksFromNpmSpec({
|
|
1152
|
-
spec: record.spec,
|
|
1153
|
-
mode: "update",
|
|
1154
|
-
dryRun: true,
|
|
1155
|
-
expectedHookPackId: hookId,
|
|
1156
|
-
expectedIntegrity: record.integrity,
|
|
1157
|
-
onIntegrityDrift: async (drift) => {
|
|
1158
|
-
logIntegrityDriftWarning(hookId, drift);
|
|
1159
|
-
return true;
|
|
1160
|
-
},
|
|
1161
|
-
logger: createInstallLogger()
|
|
1162
|
-
});
|
|
1163
|
-
if (!probe.ok) {
|
|
1164
|
-
defaultRuntime.log(theme.error(`Failed to check ${hookId}: ${probe.error}`));
|
|
1165
|
-
continue;
|
|
1166
|
-
}
|
|
1167
|
-
const nextVersion = probe.version ?? "unknown";
|
|
1168
|
-
const currentLabel = currentVersion ?? "unknown";
|
|
1169
|
-
if (currentVersion && probe.version && currentVersion === probe.version) defaultRuntime.log(`${hookId} is up to date (${currentLabel}).`);
|
|
1170
|
-
else defaultRuntime.log(`Would update ${hookId}: ${currentLabel} → ${nextVersion}.`);
|
|
1171
|
-
continue;
|
|
1172
|
-
}
|
|
1173
|
-
const result = await installHooksFromNpmSpec({
|
|
1174
|
-
spec: record.spec,
|
|
1175
|
-
mode: "update",
|
|
1176
|
-
expectedHookPackId: hookId,
|
|
1177
|
-
expectedIntegrity: record.integrity,
|
|
1178
|
-
onIntegrityDrift: async (drift) => {
|
|
1179
|
-
logIntegrityDriftWarning(hookId, drift);
|
|
1180
|
-
return await promptYesNo(`Continue updating "${hookId}" with this artifact?`);
|
|
1181
|
-
},
|
|
1182
|
-
logger: createInstallLogger()
|
|
1183
|
-
});
|
|
1184
|
-
if (!result.ok) {
|
|
1185
|
-
defaultRuntime.log(theme.error(`Failed to update ${hookId}: ${result.error}`));
|
|
1186
|
-
continue;
|
|
1187
|
-
}
|
|
1188
|
-
const nextVersion = result.version ?? await readInstalledPackageVersion(result.targetDir);
|
|
1189
|
-
nextCfg = recordHookInstall(nextCfg, {
|
|
1190
|
-
hookId,
|
|
1191
|
-
...buildNpmInstallRecordFields({
|
|
1192
|
-
spec: record.spec,
|
|
1193
|
-
installPath: result.targetDir,
|
|
1194
|
-
version: nextVersion,
|
|
1195
|
-
resolution: result.npmResolution
|
|
1196
|
-
}),
|
|
1197
|
-
hooks: result.hooks
|
|
1198
|
-
});
|
|
1199
|
-
updatedCount += 1;
|
|
1200
|
-
const currentLabel = currentVersion ?? "unknown";
|
|
1201
|
-
const nextLabel = nextVersion ?? "unknown";
|
|
1202
|
-
if (currentVersion && nextVersion && currentVersion === nextVersion) defaultRuntime.log(`${hookId} already at ${currentLabel}.`);
|
|
1203
|
-
else defaultRuntime.log(`Updated ${hookId}: ${currentLabel} → ${nextLabel}.`);
|
|
1204
|
-
}
|
|
1205
|
-
if (updatedCount > 0) {
|
|
1206
|
-
await writeConfigFile(nextCfg);
|
|
1207
|
-
logGatewayRestartHint();
|
|
1208
|
-
}
|
|
1209
|
-
});
|
|
1210
|
-
hooks.action(async () => runHooksCliAction(async () => {
|
|
1211
|
-
const report = buildHooksReport(loadConfig());
|
|
1212
|
-
defaultRuntime.log(formatHooksList(report, {}));
|
|
1213
|
-
}));
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
//#endregion
|
|
1217
|
-
export { registerHooksCli };
|