@bitseek/claw 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-CCbfXe4Y.js → accounts-D5DQlttG.js} +7 -7
- package/dist/{accounts-C3iwoWUS.js → accounts-DKvlV3Tm.js} +1 -1
- package/dist/{accounts-ChjgDDok.js → accounts-jPPbCJns.js} +1 -1
- package/dist/{acp-cli-DIikR-tj.js → acp-cli-BZnPaFm3.js} +8 -8
- package/dist/{agent-scope-DHMu2mab.js → agent-scope-CiBV1K6b.js} +1 -1
- package/dist/{agents.config-BoNoGEQI.js → agents.config-DQBEXhzA.js} +2 -2
- package/dist/{api-key-rotation-CuHjsofV.js → api-key-rotation-j4O7qxMf.js} +1 -1
- package/dist/{audio-preflight-BClvbKMQ.js → audio-preflight-BkoTbTIH.js} +36 -36
- package/dist/{audio-transcription-runner-Dv-MCA8E.js → audio-transcription-runner-CF_UP4C7.js} +22 -22
- package/dist/{audit-BAGbgihO.js → audit-1YVlVmk7.js} +29 -29
- package/dist/{auth-B9WdgDjZ.js → auth-Co2g3d8d.js} +1 -1
- package/dist/{auth-choice-FFUrxk0-.js → auth-choice-BamWYpsc.js} +14 -14
- package/dist/{auth-choice-CTCXt7WB.js → auth-choice-CdsMUqKA.js} +12 -12
- package/dist/{auth-choice.apply-helpers-Dz2x-3CK.js → auth-choice.apply-helpers-CQLQ5Tuk.js} +1 -1
- package/dist/{auth-token-BPWVp11S.js → auth-token-BjVRLcvi.js} +1 -1
- package/dist/{bindings-C0k4wFy7.js → bindings-Ck6aotGf.js} +1 -1
- package/dist/{bonjour-discovery-DXvZeG8M.js → bonjour-discovery-CtUQb94i.js} +1 -1
- package/dist/{browser-cli-BwtSgIvC.js → browser-cli-CaBLM5A6.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-B9Vrcbed.js → call-BGZQEHL4.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-CeGx9Aq7.js → channel-account-context-C6rIxLzo.js} +5 -5
- package/dist/{channel-options-DmEaPgkZ.js → channel-options-Bnnem_wD.js} +3 -3
- package/dist/{channel-selection-BDdjozhi.js → channel-selection-TZJgoz5h.js} +1 -1
- package/dist/{channel-web-mFdbEE2o.js → channel-web-KY6EP9HT.js} +18 -18
- package/dist/{channels-cli-CCTczoJM.js → channels-cli-tJkvzsqO.js} +94 -94
- package/dist/{channels-status-issues-Dir7g-Pc.js → channels-status-issues-DeT1Znlx.js} +1 -1
- package/dist/{chrome-2gfHr1cU.js → chrome-DzGCPEQK.js} +4 -4
- package/dist/{clawbot-cli-BMGBnmny.js → clawbot-cli-Comysjn9.js} +5 -5
- package/dist/{cli-zsP2OqB6.js → cli-DOS1lPNs.js} +75 -75
- package/dist/{client-BoUhzGrS.js → client-B91adiXh.js} +2 -2
- package/dist/{command-registry-okzYatr9.js → command-registry-Keal8P25.js} +5 -5
- package/dist/{commands-npgZubp3.js → commands-C6OLhl3n.js} +1 -1
- package/dist/{commands-registry-B5jHbfUL.js → commands-registry-CVzTBX51.js} +3 -3
- package/dist/{completion-cli-BFxGdqak.js → completion-cli-BWcHEWr6.js} +2 -2
- package/dist/{completion-cli-Dm9dt8iw.js → completion-cli-B_pSnPVY.js} +12 -12
- package/dist/{config-cli-CJVYN-g-.js → config-cli-DZpbwWvz.js} +7 -7
- package/dist/{config-guard-1SsvFO9G.js → config-guard-9BjlFVZx.js} +17 -17
- package/dist/{config-validation-BJ6PNk8H.js → config-validation-BcxAhhcj.js} +3 -3
- package/dist/{configure-DMwHaNHJ.js → configure-CLMtWGiL.js} +17 -17
- package/dist/control-ui/assets/{index-CKSSOzJL.js → index-puDi2eTY.js} +2 -2
- package/dist/control-ui/assets/index-puDi2eTY.js.map +1 -0
- package/dist/control-ui/brand.png +0 -0
- package/dist/control-ui/index.html +4 -5
- package/dist/{control-ui-assets-DpInddpx.js → control-ui-assets-B_3g_YF0.js} +1 -1
- package/dist/{cron-cli-CyEcKgVG.js → cron-cli-C8kDGh6_.js} +12 -12
- package/dist/{daemon-cli-CB9c5SXP.js → daemon-cli-RKWFtF-K.js} +15 -15
- package/dist/{daemon-install-Bqjc3wky.js → daemon-install-DsJ0L8HP.js} +4 -4
- package/dist/{daemon-install-helpers-CGZBs-X3.js → daemon-install-helpers-CMWYg4_W.js} +11 -11
- package/dist/{dashboard-8HFxt9IY.js → dashboard-BhAYjl6n.js} +2 -2
- package/dist/{deliver-D4ugOkLr.js → deliver-Bn10XzRP.js} +7 -7
- package/dist/{devices-cli-Bp8AMOPE.js → devices-cli-DoJBheGs.js} +8 -8
- package/dist/{diagnostic-phUWJbF_.js → diagnostic-DRPetA8l.js} +1 -1
- package/dist/{diagnostics-D_AmByNE.js → diagnostics-BHQgZbuI.js} +5 -5
- package/dist/{directory-cli-Bt3I30_e.js → directory-cli-Brla3Idn.js} +8 -8
- package/dist/{dns-cli-DaTrsB61.js → dns-cli-rEvE1LG9.js} +5 -5
- package/dist/{dock-swzevZbj.js → dock-BXksV3sC.js} +4 -4
- package/dist/{docs-cli--2Qgcpvs.js → docs-cli-DtThi0Xf.js} +4 -4
- package/dist/{doctor-completion-wHIBxn-7.js → doctor-completion-leOuoRMt.js} +1 -1
- package/dist/{doctor-completion-UEYo4_U6.js → doctor-completion-sKCaOE5l.js} +2 -2
- package/dist/{doctor-config-flow-DKaeaH2u.js → doctor-config-flow-18ijj3KB.js} +15 -15
- package/dist/{enable-xlkWJvIn.js → enable-CJ75JA5u.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-fG-NsL-O.js → exec-approvals-allowlist-CGVHz3PX.js} +1 -1
- package/dist/{exec-approvals-cli-r7jbe_Rj.js → exec-approvals-cli-DfcUJ9Sm.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-B9kCrTY1.js → exec-safe-bin-runtime-policy-D7olAQMf.js} +2 -2
- package/dist/{fetch-guard-N12H9lEe.js → fetch-guard-D6eclxeP.js} +1 -1
- package/dist/{fs-safe-BGAE6eOQ.js → fs-safe-p5lyYI__.js} +24 -24
- package/dist/{gateway-cli-BFo0WvJx.js → gateway-cli-BlVNebTw.js} +15 -5
- package/dist/{gateway-cli-Bi6tzv7v.js → gateway-cli-jL3MSRHB.js} +174 -164
- package/dist/{gateway-rpc-BHBGSN7Z.js → gateway-rpc-CJVCek88.js} +1 -1
- package/dist/{health-DlFSsTw-.js → health-Du8dO3vn.js} +14 -14
- package/dist/{hooks-cli-CMLpJr6I.js → hooks-cli-DUIQuGjr.js} +83 -83
- package/dist/{hooks-status-inMD7sD-.js → hooks-status-ONaKEpUH.js} +1 -1
- package/dist/{image-BzR2twGI.js → image-B270IRGo.js} +5 -5
- package/dist/{image-ops-B6BeXmZU.js → image-ops-BAMcbVMS.js} +10 -10
- package/dist/index.js +85 -85
- package/dist/{inspect-BwbOLUun.js → inspect-C0e0Dmvg.js} +4 -4
- package/dist/{install-safe-path-DodF6oyk.js → install-safe-path-CSqVUjL8.js} +25 -25
- package/dist/{installs-8bzJi35e.js → installs-BXOZ3DXs.js} +9 -9
- package/dist/{ipv4-BY_PmkpX.js → ipv4-Bk-doiEE.js} +1 -1
- package/dist/{ir-vGBxQkIg.js → ir-BGgl4f9u.js} +6 -6
- package/dist/{issue-format-B4oxePhU.js → issue-format-rk9Vpcxd.js} +1 -1
- package/dist/{json-files-C7p5SEie.js → json-files-bJqSYqgg.js} +8 -8
- package/dist/{lifecycle-core-C5a4clqu.js → lifecycle-core-Bqse41aA.js} +5 -5
- package/dist/{local-roots-Dcc5UeD8.js → local-roots-jW0nhxVT.js} +3 -3
- package/dist/{login-BM9p9nig.js → login-B2B75WGK.js} +3 -3
- package/dist/{login-qr-CB4JWkHM.js → login-qr-YjUycQZT.js} +6 -6
- package/dist/{logs-cli-DGdXLEv-.js → logs-cli-Dyid6hUQ.js} +9 -9
- package/dist/{manager-X8AF3rQJ.js → manager-C9rftBaE.js} +14 -14
- package/dist/{manifest-registry-HNrtHxxI.js → manifest-registry-B_U2pKBU.js} +1 -1
- package/dist/{markdown-tables-XmfG1bwr.js → markdown-tables-B5l_33qL.js} +1 -1
- package/dist/{memory-cli-87nxADqy.js → memory-cli-o3L9NN74.js} +12 -12
- package/dist/{model-CESXYutI.js → model-FnrgCVyS.js} +2 -2
- package/dist/{model-catalog-DUHxH2xb.js → model-catalog-CjA5pRJF.js} +3 -3
- package/dist/{model-picker-D705WMPf.js → model-picker-CMgjcqV_.js} +4 -4
- package/dist/{model-selection-DCo8MhsE.js → model-selection-xdfZxwgB.js} +16 -16
- package/dist/{models-cli-9x2mp4Ac.js → models-cli-CHUbcM_y.js} +85 -85
- package/dist/{models-config-Bgpjcu8R.js → models-config-Do1Ur_ov.js} +6 -6
- package/dist/{node-cli-DJnihsNr.js → node-cli-DYOdgLUu.js} +33 -33
- package/dist/{node-command-policy-BiPTB8BK.js → node-command-policy-BKUs_pS2.js} +1 -1
- package/dist/{node-service-CfKJ5oC1.js → node-service-6W3vqgVv.js} +1 -1
- package/dist/{nodes-cli-4kBrEEti.js → nodes-cli-CQzck2kc.js} +16 -16
- package/dist/{nodes-screen-FWjD2j3v.js → nodes-screen-Dptoharj.js} +7 -7
- package/dist/{npm-pack-install-CXheGnb0.js → npm-pack-install-Byr0kgft.js} +18 -18
- package/dist/{npm-resolution-DIr_TibO.js → npm-resolution-Dv7nYiaP.js} +5 -5
- package/dist/{onboard-B_MoYnrn.js → onboard-BCcjGKBR.js} +1 -1
- package/dist/{onboard-DEFQu6dU.js → onboard-KHObANUh.js} +6 -6
- package/dist/{onboard-channels-BuG5-e60.js → onboard-channels-CRpmgX82.js} +20 -20
- package/dist/{onboard-custom-HI7NPx1u.js → onboard-custom-Bow6lZPm.js} +3 -3
- package/dist/{onboard-custom.shared-SWx67Er2.js → onboard-custom.shared-CBRRhb95.js} +2 -2
- package/dist/{onboard-helpers-Jc1-4LBc.js → onboard-helpers-B1AEo6oL.js} +11 -11
- package/dist/{onboard-hooks-DFjIpeE_.js → onboard-hooks-CtxRk6l_.js} +4 -4
- package/dist/{onboard-remote-BLAyUeAO.js → onboard-remote-DmHpLoWf.js} +3 -3
- package/dist/{onboard-skills--XkA2Jj4.js → onboard-skills-DwpZY5tZ.js} +4 -4
- package/dist/{onboarding-CSnr51pR.js → onboarding-BTXvw1Ro.js} +1 -1
- package/dist/{onboarding-BQ2WB7tp.js → onboarding-DQNTd5J7.js} +13 -13
- package/dist/{onboarding.finalize-DAbr5Ar8.js → onboarding.finalize-CHYENeNO.js} +87 -87
- package/dist/{onboarding.finalize-BlMlIFRW.js → onboarding.finalize-D0qfP3rB.js} +4 -4
- package/dist/{onboarding.gateway-config-CMKjEPRA.js → onboarding.gateway-config-wXH6gE7c.js} +18 -18
- package/dist/{openai-model-default-BTNz1OzV.js → openai-model-default-Q7Hmy0eQ.js} +2 -2
- package/dist/{outbound-Bf7VAx0-.js → outbound-DlVJWa4u.js} +4 -4
- package/dist/{outbound-attachment-Df5o7JIG.js → outbound-attachment-CZh4VjhT.js} +2 -2
- package/dist/{pairing-cli-CA7Dxs-g.js → pairing-cli-DAMLvDcA.js} +9 -9
- package/dist/{pairing-labels-BBti3jJg.js → pairing-labels-Cl7ROILg.js} +1 -1
- package/dist/{pairing-store-DY0yrkuM.js → pairing-store-DdZ0xMD7.js} +3 -3
- package/dist/{path-alias-guards-BNzjbOwM.js → path-alias-guards-DWh6tSaP.js} +3 -3
- package/dist/{path-safety-dmCI2tpN.js → path-safety-COhgvniC.js} +1 -1
- package/dist/{paths-BZfURxkW.js → paths-AxolTUEH.js} +9 -9
- package/dist/{pi-embedded-helpers-D3nc5XJW.js → pi-embedded-helpers-ZTn-T7tW.js} +6 -6
- package/dist/{pi-model-discovery-BSytrsu4.js → pi-model-discovery-DVhDvAnA.js} +1 -1
- package/dist/{pi-tools.policy-Dwsq-Yaf.js → pi-tools.policy-eyXj0EY5.js} +5 -5
- package/dist/{plugin-auto-enable-4zXn-eVS.js → plugin-auto-enable-D1WySsnE.js} +3 -3
- package/dist/{plugin-registry-DsZTkNKu.js → plugin-registry-TOEmbMc4.js} +3 -3
- package/dist/{plugins-Ce8ThYGQ.js → plugins-CKWxMohB.js} +2 -2
- package/dist/{plugins-cli-DxFh5OQi.js → plugins-cli-Clo_uyvq.js} +85 -85
- package/dist/{ports-wtEwdqsX.js → ports-BL-FP2jP.js} +1 -1
- package/dist/{ports-DXMCFRgn.js → ports-DppAHKM-.js} +2 -2
- package/dist/{program-DnjsZxiJ.js → program-BI6W1Gll.js} +2 -2
- package/dist/{program-context-36wFBslW.js → program-context-D2D7wH7Q.js} +43 -43
- package/dist/{prompt-select-styled-CJt-zhnt.js → prompt-select-styled-CdBJ0FWT.js} +39 -39
- package/dist/{prompt-select-styled-BkpL6eKQ.js → prompt-select-styled-FGF3Su20.js} +1 -1
- package/dist/{provider-auth-helpers-DeJ105rb.js → provider-auth-helpers-D_akOb8A.js} +5 -5
- package/dist/{proxy-env-DhFUQlwP.js → proxy-env-ClbXa7vn.js} +1 -1
- package/dist/{push-apns-SIM2es-Y.js → push-apns-DvNRo3EQ.js} +5 -5
- package/dist/{pw-ai-BOQE6s45.js → pw-ai-D21rIJ2z.js} +15 -15
- package/dist/{qmd-manager-DVKj0i6T.js → qmd-manager-BD6lfN35.js} +20 -20
- package/dist/{qr-cli-Z4_Y6bva.js → qr-cli-BQGJJ5hp.js} +1 -1
- package/dist/{query-expansion-B9kneDbd.js → query-expansion-Dl85zpSb.js} +12 -12
- package/dist/{redact-snapshot-BI4Ryuhy.js → redact-snapshot-DCGL0k2M.js} +1 -1
- package/dist/{register.agent-Cd2LVcga.js → register.agent-DowGjvNc.js} +100 -100
- package/dist/register.configure-BZLa_c3k.js +174 -0
- package/dist/{register.init-BiLKNwSu.js → register.init-B1pIa3ys.js} +5 -88
- package/dist/{register.init-DpFUY5Ed.js → register.init-BrturXsS.js} +20 -103
- package/dist/{register.maintenance-DAU-mVIz.js → register.maintenance-DTx6vUDv.js} +97 -97
- package/dist/{register.maintenance-R4RCi4f3.js → register.maintenance-f8NCHf6u.js} +5 -5
- package/dist/{register.message-B0CI0Q4o.js → register.message-DE-eKss6.js} +76 -76
- package/dist/{register.onboard-BGhXUfbX.js → register.onboard-DmymXZNT.js} +18 -18
- package/dist/{register.onboard-Di7iClKl.js → register.onboard-tT7keiju.js} +2 -2
- package/dist/{register.setup-nlXy06aa.js → register.setup-D9AvFexw.js} +21 -21
- package/dist/{register.setup-Dm_dHAB-.js → register.setup-DjHaiqnA.js} +2 -2
- package/dist/{register.start-Dzss99ZY.js → register.start-BHASi8Um.js} +17 -17
- package/dist/{register.status-health-sessions-B4eNiGWS.js → register.status-health-sessions-Cbva8fTK.js} +89 -89
- package/dist/{register.subclis-1MobNhis.js → register.subclis-pmPhNoRB.js} +3 -3
- package/dist/{replies-k5K96_46.js → replies-B6SXcEs0.js} +1 -1
- package/dist/{reply-DQMWsIE2.js → reply-D8Yu6-Ie.js} +156 -156
- package/dist/{reply-prefix-aBvAQX6L.js → reply-prefix-BttpF8VB.js} +1 -1
- package/dist/{resolve-route-R565qQgt.js → resolve-route-Ck23oGqS.js} +2 -2
- package/dist/{rpc-CMyUzpcT.js → rpc-9jE_1PW0.js} +1 -1
- package/dist/{run-main-CFGtfsPd.js → run-main-D5C2p24j.js} +3 -3
- package/dist/{runtime-D64ACWoX.js → runtime-Rd7ooKB0.js} +2 -2
- package/dist/{sandbox-DH9YtUfB.js → sandbox-BKa5RrBl.js} +18 -18
- package/dist/{sandbox-cli-B1ThXy7C.js → sandbox-cli-BnpEc205.js} +26 -26
- package/dist/{secrets-cli-BEjJ3GP-.js → secrets-cli-CIxUNZyC.js} +10 -10
- package/dist/{security-cli-Zma5k5BZ.js → security-cli-BqOOeGxS.js} +43 -43
- package/dist/{send-NexNe2Wh.js → send-BntubUtK.js} +6 -6
- package/dist/{send-DmVTXBWW.js → send-ByUfPpKj.js} +11 -11
- package/dist/{send-CabiU1-J.js → send-Cua2kS5v.js} +6 -6
- package/dist/{send-BQVNhO4Q.js → send-DuNBSJln.js} +5 -5
- package/dist/{send-CFUSH9C-.js → send-SZBhACLn.js} +8 -8
- package/dist/{server-DQ7D-B-v.js → server-Ct0J5VXf.js} +19 -19
- package/dist/{server-context-Cr-Y4i6P.js → server-context-DWxmyV-0.js} +12 -12
- package/dist/{server-lifecycle-BVnXIEfI.js → server-lifecycle-B7aXKxY3.js} +2 -2
- package/dist/{server-middleware-zyvA9rl9.js → server-middleware-CO1brrgv.js} +1 -1
- package/dist/{server-node-events-oa4mOmsp.js → server-node-events-nakjzVDn.js} +76 -76
- package/dist/{service-BcFhE63y.js → service-DqxfCr8y.js} +15 -15
- package/dist/{session-Dl3x3d75.js → session-FOGqE7bj.js} +1 -1
- package/dist/{session-meta-C6MooccR.js → session-meta-C-ox3bdI.js} +1 -1
- package/dist/{sessions-sIaYsUyX.js → sessions-BpuJ64B0.js} +15 -15
- package/dist/{shared-sFrejcA4.js → shared-BmSv3K8N.js} +1 -1
- package/dist/{shared-DNcLp2mA.js → shared-CgFPGTLU.js} +3 -3
- package/dist/{skill-commands-C2_BOuyl.js → skill-commands-COl0HE54.js} +5 -5
- package/dist/{skill-scanner-DYkQAh0l.js → skill-scanner-CsmM5F4F.js} +6 -6
- package/dist/{skills-BXLKd7i5.js → skills-BeFcXCoN.js} +3 -3
- package/dist/{skills-cli-DrN4v5_m.js → skills-cli-D3ZteX5N.js} +5 -5
- package/dist/{skills-install-CSfh8nRm.js → skills-install-B_Vda3dM.js} +6 -6
- package/dist/{skills-status-C7Q6Ezbv.js → skills-status-BEq0_fOn.js} +1 -1
- package/dist/{status-rMgdZcE5.js → status-CQYA6EJN.js} +25 -25
- package/dist/{status.update-D4GfnNDI.js → status.update-HwSPC5ZX.js} +2 -2
- package/dist/{store-CRcBie8T.js → store-B-nkOSsv.js} +5 -5
- package/dist/{system-cli-Bscj57lL.js → system-cli-IYwpBiC6.js} +9 -9
- package/dist/{system-run-command-Cn5yQ2rv.js → system-run-command-C3OIMtEu.js} +1 -1
- package/dist/{systemd-BIfjzi-4.js → systemd-DJ5Red-Q.js} +9 -9
- package/dist/{systemd-hints-CgtHwBfD.js → systemd-hints-D40Qx3hg.js} +6 -6
- package/dist/{systemd-linger-0Vho6LMt.js → systemd-linger-BK6kig-o.js} +1 -1
- package/dist/{tables-C5n2nXbu.js → tables-C9_oCtRN.js} +1 -1
- package/dist/{tailnet-C8NwaQEp.js → tailnet-BYBKD8Kh.js} +1 -1
- package/dist/{target-errors-cerGxvCB.js → target-errors-B1cYmIjq.js} +4 -4
- package/dist/{tool-images-CgSADinH.js → tool-images-QWbHWc0F.js} +1 -1
- package/dist/{tui-DNT0WnU-.js → tui-Dd6DhgjX.js} +6 -6
- package/dist/{tui-cli-DTFq2wGK.js → tui-cli-C3PCazFC.js} +33 -33
- package/dist/{update-Mb6BH0o9.js → update-B1Dhhu_3.js} +3 -3
- package/dist/{update-cli-Dbb1EPi2.js → update-cli-C2EagLTi.js} +5 -5
- package/dist/{update-cli--qEz2_Eg.js → update-cli-DiT2fFEK.js} +105 -105
- package/dist/{update-runner-Dj_CAfd4.js → update-runner-DO6RodZW.js} +16 -16
- package/dist/web-DbdjX4Hg.js +126 -0
- package/dist/{webhooks-cli-uXE9EOwT.js → webhooks-cli-BFdw7BAP.js} +6 -6
- package/dist/{whatsapp-actions-DeX4x9sq.js → whatsapp-actions-CNoiLzRB.js} +19 -19
- package/dist/{with-timeout-C-EETHnf.js → with-timeout-tSH4Tex_.js} +3 -3
- package/dist/{workspace-TersEUYu.js → workspace-CRdln__H.js} +23 -23
- package/dist/{workspace-1nc7aTpg.js → workspace-dKMB109Q.js} +1 -1
- package/dist/{workspace-dirs-DxTFH1r3.js → workspace-dirs-DcAUEsSG.js} +1 -1
- package/dist/{ws-E9v842O2.js → ws-DKbBt0us.js} +2 -2
- package/dist/{wsl-Dg6XQcw5.js → wsl-yjQQ-PJd.js} +2 -2
- package/package.json +1 -1
- package/dist/control-ui/assets/index-CKSSOzJL.js.map +0 -1
- package/dist/register.configure-DGIWBQvN.js +0 -174
- package/dist/web-BQRkxG9u.js +0 -126
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-CKAn7Lf7.js";
|
|
2
|
-
import { n as callGateway } from "./call-
|
|
2
|
+
import { n as callGateway } from "./call-BGZQEHL4.js";
|
|
3
3
|
import { n as withProgress } from "./progress-86COuAnG.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/gateway-rpc.ts
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { f as isRich, n as info, p as theme } from "./globals-uLeGcRW1.js";
|
|
3
3
|
import { l as escapeRegExp } from "./utils-CP51tiAi.js";
|
|
4
|
-
import { Cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Dn as resolveHeartbeatDeliveryTarget, Dr as stripHeartbeatToken, Er as resolveHeartbeatPrompt$1, Fr as setHeartbeatWakeHandler, Ir as resolveHeartbeatReasonKind, Jn as buildOutboundSessionContext, Mr as peekSystemEventEntries, On as resolveHeartbeatSenderContext, Pr as requestHeartbeatNow, Sr as CommandLane, Tr as isHeartbeatContentEffectivelyEmpty, er as resolveUserTimezone, gr as getQueueSize, r as appendCronStyleCurrentTimeLine, t as getReplyFromConfig, wr as DEFAULT_HEARTBEAT_EVERY } from "./reply-
|
|
5
|
-
import { d as resolveDefaultAgentId, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
+
import { Cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Dn as resolveHeartbeatDeliveryTarget, Dr as stripHeartbeatToken, Er as resolveHeartbeatPrompt$1, Fr as setHeartbeatWakeHandler, Ir as resolveHeartbeatReasonKind, Jn as buildOutboundSessionContext, Mr as peekSystemEventEntries, On as resolveHeartbeatSenderContext, Pr as requestHeartbeatNow, Sr as CommandLane, Tr as isHeartbeatContentEffectivelyEmpty, er as resolveUserTimezone, gr as getQueueSize, r as appendCronStyleCurrentTimeLine, t as getReplyFromConfig, wr as DEFAULT_HEARTBEAT_EVERY } from "./reply-D8Yu6-Ie.js";
|
|
5
|
+
import { d as resolveDefaultAgentId, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-CiBV1K6b.js";
|
|
6
6
|
import { d as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BT74-yyS.js";
|
|
7
7
|
import { c as normalizeAgentId, m as toAgentStoreSessionKey, u as resolveAgentIdFromSessionKey } from "./session-key-C9z4VQtw.js";
|
|
8
|
-
import { i as DEFAULT_HEARTBEAT_FILENAME } from "./workspace-
|
|
9
|
-
import { Wt as loadConfig, _n as parseDurationMs } from "./model-selection-
|
|
8
|
+
import { i as DEFAULT_HEARTBEAT_FILENAME } from "./workspace-CRdln__H.js";
|
|
9
|
+
import { Wt as loadConfig, _n as parseDurationMs } from "./model-selection-xdfZxwgB.js";
|
|
10
10
|
import { t as isTruthyEnvValue } from "./env-4r1Vlroz.js";
|
|
11
11
|
import { a as hasErrnoCode, r as formatErrorMessage } from "./errors-D5pCqwf4.js";
|
|
12
|
-
import { X as canonicalizeMainSessionAlias, Z as resolveAgentMainSessionKey, d as updateSessionStore, l as saveSessionStore, o as loadSessionStore } from "./sessions-
|
|
13
|
-
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
14
|
-
import { a as resolvePreferredAccountId, t as buildChannelAccountBindings } from "./bindings-
|
|
12
|
+
import { X as canonicalizeMainSessionAlias, Z as resolveAgentMainSessionKey, d as updateSessionStore, l as saveSessionStore, o as loadSessionStore } from "./sessions-BpuJ64B0.js";
|
|
13
|
+
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CKWxMohB.js";
|
|
14
|
+
import { a as resolvePreferredAccountId, t as buildChannelAccountBindings } from "./bindings-Ck6aotGf.js";
|
|
15
15
|
import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-BJLbJUqV.js";
|
|
16
16
|
import { t as HEARTBEAT_TOKEN } from "./tokens-BK5VYCE_.js";
|
|
17
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
18
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
19
|
-
import { o as resolveEffectiveMessagesConfig } from "./reply-prefix-
|
|
17
|
+
import { t as deliverOutboundPayloads } from "./deliver-Bn10XzRP.js";
|
|
18
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-BGZQEHL4.js";
|
|
19
|
+
import { o as resolveEffectiveMessagesConfig } from "./reply-prefix-BttpF8VB.js";
|
|
20
20
|
import { n as withProgress } from "./progress-86COuAnG.js";
|
|
21
21
|
import { a as resolveIndicatorType, n as emitHeartbeatEvent, o as resolveHeartbeatReplyPayload, t as resolveHeartbeatVisibility } from "./heartbeat-visibility-BdDIMad6.js";
|
|
22
22
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D0Q6sarx.js";
|
|
23
23
|
import path from "node:path";
|
|
24
|
-
import
|
|
24
|
+
import fs from "node:fs/promises";
|
|
25
25
|
|
|
26
26
|
//#region src/infra/heartbeat-active-hours.ts
|
|
27
27
|
const ACTIVE_HOURS_TIME_PATTERN = /^(?:([01]\d|2[0-3]):([0-5]\d)|24:00)$/;
|
|
@@ -315,7 +315,7 @@ async function pruneHeartbeatTranscript(params) {
|
|
|
315
315
|
const { transcriptPath, preHeartbeatSize } = params;
|
|
316
316
|
if (!transcriptPath || typeof preHeartbeatSize !== "number" || preHeartbeatSize < 0) return;
|
|
317
317
|
try {
|
|
318
|
-
if ((await
|
|
318
|
+
if ((await fs.stat(transcriptPath)).size > preHeartbeatSize) await fs.truncate(transcriptPath, preHeartbeatSize);
|
|
319
319
|
} catch {}
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
@@ -333,7 +333,7 @@ async function captureTranscriptState(params) {
|
|
|
333
333
|
});
|
|
334
334
|
return {
|
|
335
335
|
transcriptPath,
|
|
336
|
-
preHeartbeatSize: (await
|
|
336
|
+
preHeartbeatSize: (await fs.stat(transcriptPath)).size
|
|
337
337
|
};
|
|
338
338
|
} catch {
|
|
339
339
|
return {};
|
|
@@ -390,7 +390,7 @@ async function resolveHeartbeatPreflight(params) {
|
|
|
390
390
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, params.agentId);
|
|
391
391
|
const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
|
|
392
392
|
try {
|
|
393
|
-
if (isHeartbeatContentEffectivelyEmpty(await
|
|
393
|
+
if (isHeartbeatContentEffectivelyEmpty(await fs.readFile(heartbeatFilePath, "utf-8"))) return {
|
|
394
394
|
...basePreflight,
|
|
395
395
|
skipReason: "empty-heartbeat-file"
|
|
396
396
|
};
|
|
@@ -2,13 +2,13 @@ import "./paths-BYr-iJJ9.js";
|
|
|
2
2
|
import { p as theme } from "./globals-uLeGcRW1.js";
|
|
3
3
|
import { S as shortenHomePath, t as CONFIG_DIR, y as resolveUserPath } from "./utils-CP51tiAi.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import "./reply-
|
|
6
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import "./reply-D8Yu6-Ie.js";
|
|
6
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-CiBV1K6b.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
8
|
-
import "./workspace-
|
|
8
|
+
import "./workspace-CRdln__H.js";
|
|
9
9
|
import "./logger-D04dg4Ex.js";
|
|
10
10
|
import "./exec-BdDcFm8M.js";
|
|
11
|
-
import { Wt as loadConfig, Xt as writeConfigFile } from "./model-selection-
|
|
11
|
+
import { Wt as loadConfig, Xt as writeConfigFile } from "./model-selection-xdfZxwgB.js";
|
|
12
12
|
import "./github-copilot-token-CVsUoC9m.js";
|
|
13
13
|
import { t as formatCliCommand } from "./command-format-DBmYTAza.js";
|
|
14
14
|
import "./boolean-BgXe2hyu.js";
|
|
@@ -17,118 +17,118 @@ import "./host-env-security-BiAcoumI.js";
|
|
|
17
17
|
import "./env-vars-DM119fhK.js";
|
|
18
18
|
import { a as isPathInsideWithRealpath, i as isPathInside, n as MANIFEST_KEY } from "./legacy-names-BYUgjYSw.js";
|
|
19
19
|
import "./registry-CUyWRciN.js";
|
|
20
|
-
import "./manifest-registry-
|
|
21
|
-
import "./dock-
|
|
20
|
+
import "./manifest-registry-B_U2pKBU.js";
|
|
21
|
+
import "./dock-BXksV3sC.js";
|
|
22
22
|
import "./message-channel-CKAn7Lf7.js";
|
|
23
|
-
import "./send-
|
|
24
|
-
import "./audio-transcription-runner-
|
|
25
|
-
import "./image-
|
|
26
|
-
import "./models-config-
|
|
27
|
-
import "./pi-model-discovery-
|
|
28
|
-
import "./pi-embedded-helpers-
|
|
29
|
-
import "./sandbox-
|
|
23
|
+
import "./send-ByUfPpKj.js";
|
|
24
|
+
import "./audio-transcription-runner-CF_UP4C7.js";
|
|
25
|
+
import "./image-B270IRGo.js";
|
|
26
|
+
import "./models-config-Do1Ur_ov.js";
|
|
27
|
+
import "./pi-model-discovery-DVhDvAnA.js";
|
|
28
|
+
import "./pi-embedded-helpers-ZTn-T7tW.js";
|
|
29
|
+
import "./sandbox-BKa5RrBl.js";
|
|
30
30
|
import "./tool-catalog-zFhF8IWN.js";
|
|
31
|
-
import "./chrome-
|
|
31
|
+
import "./chrome-DzGCPEQK.js";
|
|
32
32
|
import { u as promptYesNo } from "./tailscale-OcOGSzmc.js";
|
|
33
|
-
import "./tailnet-
|
|
34
|
-
import "./ws-
|
|
35
|
-
import "./auth-
|
|
36
|
-
import "./server-context-
|
|
33
|
+
import "./tailnet-BYBKD8Kh.js";
|
|
34
|
+
import "./ws-DKbBt0us.js";
|
|
35
|
+
import "./auth-Co2g3d8d.js";
|
|
36
|
+
import "./server-context-DWxmyV-0.js";
|
|
37
37
|
import "./frontmatter-f69paAeU.js";
|
|
38
|
-
import { S as validateRegistryNpmSpec } from "./skills-
|
|
39
|
-
import "./path-alias-guards-
|
|
40
|
-
import "./paths-
|
|
38
|
+
import { S as validateRegistryNpmSpec } from "./skills-BeFcXCoN.js";
|
|
39
|
+
import "./path-alias-guards-DWh6tSaP.js";
|
|
40
|
+
import "./paths-AxolTUEH.js";
|
|
41
41
|
import "./redact-Bf_pxORb.js";
|
|
42
42
|
import "./errors-D5pCqwf4.js";
|
|
43
|
-
import "./fs-safe-
|
|
44
|
-
import "./proxy-env-
|
|
45
|
-
import "./image-ops-
|
|
46
|
-
import "./store-
|
|
47
|
-
import "./ports-
|
|
43
|
+
import "./fs-safe-p5lyYI__.js";
|
|
44
|
+
import "./proxy-env-ClbXa7vn.js";
|
|
45
|
+
import "./image-ops-BAMcbVMS.js";
|
|
46
|
+
import "./store-B-nkOSsv.js";
|
|
47
|
+
import "./ports-DppAHKM-.js";
|
|
48
48
|
import "./trash-Cq4N8bvb.js";
|
|
49
|
-
import "./server-middleware-
|
|
50
|
-
import "./sessions-
|
|
51
|
-
import "./plugins-
|
|
52
|
-
import "./accounts-
|
|
53
|
-
import "./accounts-
|
|
49
|
+
import "./server-middleware-CO1brrgv.js";
|
|
50
|
+
import "./sessions-BpuJ64B0.js";
|
|
51
|
+
import "./plugins-CKWxMohB.js";
|
|
52
|
+
import "./accounts-D5DQlttG.js";
|
|
53
|
+
import "./accounts-DKvlV3Tm.js";
|
|
54
54
|
import "./logging-Dn5qdhsZ.js";
|
|
55
|
-
import "./accounts-
|
|
56
|
-
import "./bindings-
|
|
57
|
-
import "./send-
|
|
55
|
+
import "./accounts-jPPbCJns.js";
|
|
56
|
+
import "./bindings-Ck6aotGf.js";
|
|
57
|
+
import "./send-DuNBSJln.js";
|
|
58
58
|
import "./paths-BJLbJUqV.js";
|
|
59
59
|
import "./chat-envelope-D2ZROPtK.js";
|
|
60
|
-
import "./tool-images-
|
|
60
|
+
import "./tool-images-QWbHWc0F.js";
|
|
61
61
|
import "./tool-display-BnVcCWLz.js";
|
|
62
|
-
import "./fetch-guard-
|
|
63
|
-
import "./api-key-rotation-
|
|
64
|
-
import "./local-roots-
|
|
65
|
-
import "./model-catalog-
|
|
62
|
+
import "./fetch-guard-D6eclxeP.js";
|
|
63
|
+
import "./api-key-rotation-j4O7qxMf.js";
|
|
64
|
+
import "./local-roots-jW0nhxVT.js";
|
|
65
|
+
import "./model-catalog-CjA5pRJF.js";
|
|
66
66
|
import "./proxy-fetch-7LT9tml2.js";
|
|
67
67
|
import "./tokens-BK5VYCE_.js";
|
|
68
|
-
import "./deliver-
|
|
69
|
-
import "./commands-
|
|
70
|
-
import "./commands-registry-
|
|
71
|
-
import "./client-
|
|
72
|
-
import "./call-
|
|
68
|
+
import "./deliver-Bn10XzRP.js";
|
|
69
|
+
import "./commands-C6OLhl3n.js";
|
|
70
|
+
import "./commands-registry-CVzTBX51.js";
|
|
71
|
+
import "./client-B91adiXh.js";
|
|
72
|
+
import "./call-BGZQEHL4.js";
|
|
73
73
|
import "./pairing-token-QppPqMJU.js";
|
|
74
74
|
import "./fetch-Ca92M4MR.js";
|
|
75
75
|
import "./retry-AsJdJVsE.js";
|
|
76
|
-
import "./pairing-store-
|
|
76
|
+
import "./pairing-store-DdZ0xMD7.js";
|
|
77
77
|
import "./exec-approvals-C23wqMXV.js";
|
|
78
|
-
import "./exec-approvals-allowlist-
|
|
79
|
-
import "./exec-safe-bin-runtime-policy-
|
|
80
|
-
import "./nodes-screen-
|
|
81
|
-
import "./target-errors-
|
|
82
|
-
import "./system-run-command-
|
|
78
|
+
import "./exec-approvals-allowlist-CGVHz3PX.js";
|
|
79
|
+
import "./exec-safe-bin-runtime-policy-D7olAQMf.js";
|
|
80
|
+
import "./nodes-screen-Dptoharj.js";
|
|
81
|
+
import "./target-errors-B1cYmIjq.js";
|
|
82
|
+
import "./system-run-command-C3OIMtEu.js";
|
|
83
83
|
import "./diagnostic-session-state-DtDi2x-e.js";
|
|
84
|
-
import "./with-timeout-
|
|
85
|
-
import "./diagnostic-
|
|
86
|
-
import "./send-
|
|
87
|
-
import "./model-
|
|
88
|
-
import "./reply-prefix-
|
|
84
|
+
import "./with-timeout-tSH4Tex_.js";
|
|
85
|
+
import "./diagnostic-DRPetA8l.js";
|
|
86
|
+
import "./send-SZBhACLn.js";
|
|
87
|
+
import "./model-FnrgCVyS.js";
|
|
88
|
+
import "./reply-prefix-BttpF8VB.js";
|
|
89
89
|
import "./chunk-mV8H66i-.js";
|
|
90
|
-
import "./markdown-tables-
|
|
91
|
-
import "./ir-
|
|
90
|
+
import "./markdown-tables-B5l_33qL.js";
|
|
91
|
+
import "./ir-BGgl4f9u.js";
|
|
92
92
|
import "./render-C9RrMnL2.js";
|
|
93
|
-
import "./channel-selection-
|
|
94
|
-
import "./plugin-auto-enable-
|
|
95
|
-
import "./send-
|
|
96
|
-
import "./outbound-attachment-
|
|
93
|
+
import "./channel-selection-TZJgoz5h.js";
|
|
94
|
+
import "./plugin-auto-enable-D1WySsnE.js";
|
|
95
|
+
import "./send-Cua2kS5v.js";
|
|
96
|
+
import "./outbound-attachment-CZh4VjhT.js";
|
|
97
97
|
import "./delivery-queue-EvfYzqtX.js";
|
|
98
|
-
import "./send-
|
|
99
|
-
import "./resolve-route-
|
|
100
|
-
import "./pi-tools.policy-
|
|
98
|
+
import "./send-BntubUtK.js";
|
|
99
|
+
import "./resolve-route-Ck23oGqS.js";
|
|
100
|
+
import "./pi-tools.policy-eyXj0EY5.js";
|
|
101
101
|
import "./channel-activity-C--BGtPd.js";
|
|
102
|
-
import "./tables-
|
|
102
|
+
import "./tables-C9_oCtRN.js";
|
|
103
103
|
import "./proxy-D8dYXgWo.js";
|
|
104
|
-
import "./replies-
|
|
105
|
-
import "./skill-commands-
|
|
106
|
-
import "./workspace-dirs-
|
|
104
|
+
import "./replies-B6SXcEs0.js";
|
|
105
|
+
import "./skill-commands-COl0HE54.js";
|
|
106
|
+
import "./workspace-dirs-DcAUEsSG.js";
|
|
107
107
|
import "./session-cost-usage-DbjE1AVb.js";
|
|
108
|
-
import "./onboard-helpers-
|
|
108
|
+
import "./onboard-helpers-B1AEo6oL.js";
|
|
109
109
|
import "./prompt-style-sTNfJFX8.js";
|
|
110
|
-
import "./pairing-labels-
|
|
111
|
-
import "./session-meta-
|
|
112
|
-
import "./memory-cli-
|
|
113
|
-
import "./manager-
|
|
114
|
-
import "./query-expansion-
|
|
110
|
+
import "./pairing-labels-Cl7ROILg.js";
|
|
111
|
+
import "./session-meta-C-ox3bdI.js";
|
|
112
|
+
import "./memory-cli-o3L9NN74.js";
|
|
113
|
+
import "./manager-C9rftBaE.js";
|
|
114
|
+
import "./query-expansion-Dl85zpSb.js";
|
|
115
115
|
import { t as formatDocsLink } from "./links-CM7pO4C5.js";
|
|
116
116
|
import "./cli-utils-BKqG4ZT-.js";
|
|
117
117
|
import "./help-format-DUJs-8Xi.js";
|
|
118
118
|
import "./progress-86COuAnG.js";
|
|
119
|
-
import "./server-lifecycle-
|
|
119
|
+
import "./server-lifecycle-B7aXKxY3.js";
|
|
120
120
|
import "./stagger-C-R8Eo-4.js";
|
|
121
121
|
import "./constants-BJiQF5Ae.js";
|
|
122
122
|
import "./context-window-guard-BNuaId5E.js";
|
|
123
|
-
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, u as resolveArchiveKind } from "./install-safe-path-
|
|
124
|
-
import { a as installPackageDir, c as resolveTimedInstallModeOptions, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, o as installPackageDirWithManifestDeps, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-
|
|
123
|
+
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, u as resolveArchiveKind } from "./install-safe-path-CSqVUjL8.js";
|
|
124
|
+
import { a as installPackageDir, c as resolveTimedInstallModeOptions, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, o as installPackageDirWithManifestDeps, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-Byr0kgft.js";
|
|
125
125
|
import { t as renderTable } from "./table-DZBPnHSy.js";
|
|
126
|
-
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-
|
|
127
|
-
import { t as buildWorkspaceHookStatus } from "./hooks-status-
|
|
128
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-
|
|
126
|
+
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-dKMB109Q.js";
|
|
127
|
+
import { t as buildWorkspaceHookStatus } from "./hooks-status-ONaKEpUH.js";
|
|
128
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-Dv7nYiaP.js";
|
|
129
129
|
import fs from "node:fs";
|
|
130
130
|
import path from "node:path";
|
|
131
|
-
import
|
|
131
|
+
import fs$1 from "node:fs/promises";
|
|
132
132
|
|
|
133
133
|
//#region src/infra/install-from-npm-spec.ts
|
|
134
134
|
async function installFromValidatedNpmSpecArchive(params) {
|
|
@@ -233,7 +233,7 @@ async function installFromResolvedHookDir(resolvedDir, params) {
|
|
|
233
233
|
async function resolveHookNameFromDir(hookDir) {
|
|
234
234
|
const hookMdPath = path.join(hookDir, "HOOK.md");
|
|
235
235
|
if (!await fileExists(hookMdPath)) throw new Error(`HOOK.md missing in ${hookDir}`);
|
|
236
|
-
return parseFrontmatter(await
|
|
236
|
+
return parseFrontmatter(await fs$1.readFile(hookMdPath, "utf-8")).name || path.basename(hookDir);
|
|
237
237
|
}
|
|
238
238
|
async function validateHookDir(hookDir) {
|
|
239
239
|
if (!await fileExists(path.join(hookDir, "HOOK.md"))) throw new Error(`HOOK.md missing in ${hookDir}`);
|
|
@@ -562,7 +562,7 @@ function logIntegrityDriftWarning(hookId, drift) {
|
|
|
562
562
|
}
|
|
563
563
|
async function readInstalledPackageVersion(dir) {
|
|
564
564
|
try {
|
|
565
|
-
const raw = await
|
|
565
|
+
const raw = await fs$1.readFile(path.join(dir, "package.json"), "utf-8");
|
|
566
566
|
const parsed = JSON.parse(raw);
|
|
567
567
|
return typeof parsed.version === "string" ? parsed.version : void 0;
|
|
568
568
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as CONFIG_DIR } from "./utils-CP51tiAi.js";
|
|
2
2
|
import { d as hasBinary } from "./frontmatter-f69paAeU.js";
|
|
3
3
|
import { t as evaluateEntryRequirementsForCurrentPlatform } from "./entry-status-CdZ_Et6j.js";
|
|
4
|
-
import { n as isConfigPathTruthy, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-
|
|
4
|
+
import { n as isConfigPathTruthy, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-dKMB109Q.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/hooks/hooks-status.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as isRecord } from "./utils-CP51tiAi.js";
|
|
3
|
-
import { _ as resolveAgentModelPrimaryValue, g as resolveAgentModelFallbackValues } from "./agent-scope-
|
|
4
|
-
import { Q as getApiKeyForModel, Ti as normalizeSecretInput, et as requireApiKey } from "./model-selection-
|
|
5
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
6
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
7
|
-
import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
3
|
+
import { _ as resolveAgentModelPrimaryValue, g as resolveAgentModelFallbackValues } from "./agent-scope-CiBV1K6b.js";
|
|
4
|
+
import { Q as getApiKeyForModel, Ti as normalizeSecretInput, et as requireApiKey } from "./model-selection-xdfZxwgB.js";
|
|
5
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-Do1Ur_ov.js";
|
|
6
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DVhDvAnA.js";
|
|
7
|
+
import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-ZTn-T7tW.js";
|
|
8
8
|
import { r as resolveToolDisplay, t as formatToolDetail } from "./tool-display-BnVcCWLz.js";
|
|
9
9
|
import { complete } from "@mariozechner/pi-ai";
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as runExec } from "./exec-BdDcFm8M.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
5
|
import { fileTypeFromBuffer } from "file-type";
|
|
6
6
|
|
|
7
7
|
//#region src/media/constants.ts
|
|
@@ -235,11 +235,11 @@ function readJpegExifOrientation(buffer) {
|
|
|
235
235
|
return null;
|
|
236
236
|
}
|
|
237
237
|
async function withTempDir(fn) {
|
|
238
|
-
const dir = await
|
|
238
|
+
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-img-"));
|
|
239
239
|
try {
|
|
240
240
|
return await fn(dir);
|
|
241
241
|
} finally {
|
|
242
|
-
await
|
|
242
|
+
await fs.rm(dir, {
|
|
243
243
|
recursive: true,
|
|
244
244
|
force: true
|
|
245
245
|
}).catch(() => {});
|
|
@@ -248,7 +248,7 @@ async function withTempDir(fn) {
|
|
|
248
248
|
async function sipsMetadataFromBuffer(buffer) {
|
|
249
249
|
return await withTempDir(async (dir) => {
|
|
250
250
|
const input = path.join(dir, "in.img");
|
|
251
|
-
await
|
|
251
|
+
await fs.writeFile(input, buffer);
|
|
252
252
|
const { stdout } = await runExec("/usr/bin/sips", [
|
|
253
253
|
"-g",
|
|
254
254
|
"pixelWidth",
|
|
@@ -276,7 +276,7 @@ async function sipsResizeToJpeg(params) {
|
|
|
276
276
|
return await withTempDir(async (dir) => {
|
|
277
277
|
const input = path.join(dir, "in.img");
|
|
278
278
|
const output = path.join(dir, "out.jpg");
|
|
279
|
-
await
|
|
279
|
+
await fs.writeFile(input, params.buffer);
|
|
280
280
|
await runExec("/usr/bin/sips", [
|
|
281
281
|
"-Z",
|
|
282
282
|
String(Math.max(1, Math.round(params.maxSide))),
|
|
@@ -293,14 +293,14 @@ async function sipsResizeToJpeg(params) {
|
|
|
293
293
|
timeoutMs: 2e4,
|
|
294
294
|
maxBuffer: 1024 * 1024
|
|
295
295
|
});
|
|
296
|
-
return await
|
|
296
|
+
return await fs.readFile(output);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
async function sipsConvertToJpeg(buffer) {
|
|
300
300
|
return await withTempDir(async (dir) => {
|
|
301
301
|
const input = path.join(dir, "in.heic");
|
|
302
302
|
const output = path.join(dir, "out.jpg");
|
|
303
|
-
await
|
|
303
|
+
await fs.writeFile(input, buffer);
|
|
304
304
|
await runExec("/usr/bin/sips", [
|
|
305
305
|
"-s",
|
|
306
306
|
"format",
|
|
@@ -312,7 +312,7 @@ async function sipsConvertToJpeg(buffer) {
|
|
|
312
312
|
timeoutMs: 2e4,
|
|
313
313
|
maxBuffer: 1024 * 1024
|
|
314
314
|
});
|
|
315
|
-
return await
|
|
315
|
+
return await fs.readFile(output);
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
async function getImageMetadata(buffer) {
|
|
@@ -363,7 +363,7 @@ async function sipsApplyOrientation(buffer, orientation) {
|
|
|
363
363
|
return await withTempDir(async (dir) => {
|
|
364
364
|
const input = path.join(dir, "in.jpg");
|
|
365
365
|
const output = path.join(dir, "out.jpg");
|
|
366
|
-
await
|
|
366
|
+
await fs.writeFile(input, buffer);
|
|
367
367
|
await runExec("/usr/bin/sips", [
|
|
368
368
|
...ops,
|
|
369
369
|
input,
|
|
@@ -373,7 +373,7 @@ async function sipsApplyOrientation(buffer, orientation) {
|
|
|
373
373
|
timeoutMs: 2e4,
|
|
374
374
|
maxBuffer: 1024 * 1024
|
|
375
375
|
});
|
|
376
|
-
return await
|
|
376
|
+
return await fs.readFile(output);
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
async function resizeToJpeg(params) {
|