@bitseek/claw 1.2.8 → 1.2.9
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-B3zSNWIv.js → accounts-2NNZ6Hbp.js} +1 -1
- package/dist/{accounts-BQHz8_1_.js → accounts-Cv5CUnT4.js} +7 -7
- package/dist/{accounts-DTfEeXyO.js → accounts-NHpMJ0aq.js} +1 -1
- package/dist/{acp-cli-C24-lylb.js → acp-cli-CyPiQ0lt.js} +8 -8
- package/dist/{agent-scope-CJelRKYY.js → agent-scope-CY2-lUIY.js} +1 -1
- package/dist/{agents-BCJbDk2P.js → agents-BC3wwrO-.js} +15 -15
- package/dist/{agents.config-DoxV5m9v.js → agents.config-CeG5P331.js} +2 -2
- package/dist/{agents.config-DQBEXhzA.js → agents.config-rRQ8xZUr.js} +1 -1
- package/dist/{api-key-rotation-xfk-b2Sv.js → api-key-rotation-Cf7QM5M_.js} +1 -1
- package/dist/{audio-preflight-Dl40LQzr.js → audio-preflight-iuCPDl1D.js} +36 -36
- package/dist/{audio-transcription-runner-jiDE7Pt8.js → audio-transcription-runner-CGADiTRL.js} +22 -22
- package/dist/{audit-Bgu8Ommg.js → audit-Bjz6AFn-.js} +29 -29
- package/dist/{auth-B3HDYw4G.js → auth-anvTU0Sb.js} +1 -1
- package/dist/{auth-choice-DYXCDlGW.js → auth-choice-Co_Dl_bs.js} +14 -14
- package/dist/{auth-choice-CP6K5htW.js → auth-choice-Dx1VT2I8.js} +12 -12
- package/dist/{auth-choice-CdsMUqKA.js → auth-choice-eimtfK0N.js} +1 -1
- package/dist/{auth-choice.apply-helpers-DR-eUj_5.js → auth-choice.apply-helpers-Du585kvU.js} +1 -1
- package/dist/{auth-profiles-D_x1_5v_.js → auth-profiles-CyG9VwU_.js} +16 -16
- package/dist/{auth-token-BDQ5b9Wx.js → auth-token-Cfvmvs2X.js} +1 -1
- package/dist/{banner-V_1v329B.js → banner-7O0OkDQ4.js} +2 -2
- package/dist/{bindings-Hx6KNJeg.js → bindings-DGvp9FdD.js} +1 -1
- package/dist/{bonjour-discovery-DiHs5j0y.js → bonjour-discovery-Dv9UQh6g.js} +1 -1
- package/dist/{browser-cli-BMupJSz_.js → browser-cli-C1OEYX9g.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/{call-CzoM7hPS.js → call-CmAGfSJE.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-BV3Q0XnD.js → channel-account-context-BrHQ7XHF.js} +5 -5
- package/dist/{channel-options-Dsjb-V1F.js → channel-options-BnZ1nSBu.js} +3 -3
- package/dist/{channel-options-Bnnem_wD.js → channel-options-uEYF4WRA.js} +1 -1
- package/dist/{channel-selection-D8KYuWir.js → channel-selection-DGtYwfd7.js} +1 -1
- package/dist/{channel-web-KY6EP9HT.js → channel-web-BJJUEEKO.js} +1 -1
- package/dist/{channel-web-wuxrfEJh.js → channel-web-lHPdbnjv.js} +18 -18
- package/dist/{channels-cli-OZeQkPMG.js → channels-cli-DEE_p7e9.js} +95 -95
- package/dist/{channels-cli-tJkvzsqO.js → channels-cli-GwM8DZvP.js} +6 -6
- package/dist/{channels-status-issues-CCNiQcg9.js → channels-status-issues-BWcKByy7.js} +1 -1
- package/dist/{chrome-DuDCGdf-.js → chrome-DeZyLFsG.js} +4 -4
- package/dist/{clawbot-cli-COQB6-NK.js → clawbot-cli-C6oL4o77.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DOS1lPNs.js → cli-BLZW83kS.js} +1 -1
- package/dist/{cli-YeYpjq2c.js → cli-CD5xP9w9.js} +76 -76
- package/dist/{client-BvL3EdiZ.js → client-vUKV2o6h.js} +2 -2
- package/dist/{command-registry-Keal8P25.js → command-registry-B41say0S.js} +13 -13
- package/dist/{commands-C67IbXs7.js → commands-d8L0zY8O.js} +1 -1
- package/dist/{commands-registry-D0_D5hFV.js → commands-registry-C78O6aNi.js} +3 -3
- package/dist/{completion-cli-B_pSnPVY.js → completion-cli-BuLkcc9o.js} +1 -1
- package/dist/{completion-cli-BWcHEWr6.js → completion-cli-DSxTjQik.js} +13 -13
- package/dist/{config-cli-hwawfBlS.js → config-cli-BMtY1oFI.js} +7 -7
- package/dist/{config-cli-DZpbwWvz.js → config-cli-D4EnfBqh.js} +1 -1
- package/dist/{config-guard-CcE0LvHm.js → config-guard-Bztdn_pu.js} +3 -3
- package/dist/{config-validation-DO7QURfM.js → config-validation-CAkiRwLK.js} +3 -3
- package/dist/{configure-CLMtWGiL.js → configure-CBB1YbMN.js} +3 -3
- package/dist/{configure-l-lM74c1.js → configure-Dz9z2cyD.js} +17 -17
- package/dist/{control-ui-assets-Dx8wiZQ_.js → control-ui-assets-BGvtXBkm.js} +1 -1
- package/dist/{cron-cli-xl75rAFd.js → cron-cli-nslB2EKF.js} +12 -12
- package/dist/{daemon-cli-BSy0rtO2.js → daemon-cli-D8I8RTf0.js} +15 -15
- package/dist/{daemon-install-d2OYSlQz.js → daemon-install-CKree1OU.js} +4 -4
- package/dist/{daemon-install-helpers-D28keNLu.js → daemon-install-helpers-CBCbs7y1.js} +11 -11
- package/dist/{dashboard-DXvihe_P.js → dashboard-dc7KG5Fm.js} +2 -2
- package/dist/{deliver-Df8pSQk6.js → deliver-BRwFsEUd.js} +7 -7
- package/dist/{devices-cli-D6CoUTi_.js → devices-cli-jakb5Fk0.js} +8 -8
- package/dist/{diagnostic-Bvatw1Xn.js → diagnostic-DjxUqpmL.js} +1 -1
- package/dist/{diagnostics-ABz8E7c-.js → diagnostics-DR9Z0mN5.js} +5 -5
- package/dist/{directory-cli-Dkil59xj.js → directory-cli-3FgAtenS.js} +8 -8
- package/dist/{dns-cli-CJydclW8.js → dns-cli-DUsjD4em.js} +5 -5
- package/dist/{dock-DT8sACcR.js → dock-CoclJnwp.js} +4 -4
- package/dist/{docs-cli-BkufgU5Y.js → docs-cli-CpIeooaU.js} +4 -4
- package/dist/{doctor-completion-sKCaOE5l.js → doctor-completion-BIt5xBwC.js} +1 -1
- package/dist/{doctor-completion-leOuoRMt.js → doctor-completion-BSR7Om4e.js} +2 -2
- package/dist/{doctor-config-flow-BrXA2e34.js → doctor-config-flow-DUdUJgfq.js} +15 -15
- package/dist/{enable-CinNZxRH.js → enable-BNycqpJc.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-B4DS6FIn.js → exec-approvals-allowlist-CFjPSbxI.js} +1 -1
- package/dist/{exec-approvals-cli-Cani2Hjk.js → exec-approvals-cli-D8lFWgJj.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-BP6ImlkB.js → exec-safe-bin-runtime-policy-CpMj95vJ.js} +2 -2
- package/dist/extensionAPI.js +1 -1
- package/dist/{fetch-DC-NMnAU.js → fetch-DOjg912W.js} +3 -3
- package/dist/{fetch-guard-B62rgaSw.js → fetch-guard-Csbz9pui.js} +1 -1
- package/dist/{fs-safe-CJDtl_QU.js → fs-safe-BqJ9egpm.js} +24 -24
- package/dist/{gateway-cli-jL3MSRHB.js → gateway-cli-CanylfLh.js} +8 -8
- package/dist/{gateway-cli-BlVNebTw.js → gateway-cli-VrzgkvsB.js} +161 -161
- package/dist/{gateway-rpc-C7KYwonl.js → gateway-rpc-B5Spvviy.js} +1 -1
- package/dist/{health-Du8dO3vn.js → health-BX20asqJ.js} +1 -1
- package/dist/{health-CDEXWvnu.js → health-D4cJIlo7.js} +14 -14
- package/dist/{hooks-cli-Deo01lF6.js → hooks-cli-BPg6BqOl.js} +84 -84
- package/dist/{hooks-cli-DUIQuGjr.js → hooks-cli-Cs2Ovk-O.js} +2 -2
- package/dist/{hooks-status-DE20AAEu.js → hooks-status-6tcOdcYp.js} +1 -1
- package/dist/{image-UpBiPNsk.js → image-CI4JYwnc.js} +5 -5
- package/dist/{plugin-sdk/image-ops-C9GXWF3o.js → image-ops-B2L37gT8.js} +11 -11
- package/dist/index.js +6 -6
- package/dist/{inspect-Bmurt9te.js → inspect-BzuEXYfa.js} +4 -4
- package/dist/{install-safe-path-BB9b_AvF.js → install-safe-path-C8QJ5yjB.js} +25 -25
- package/dist/{installs-BXcYytvn.js → installs-CWbEA1d1.js} +9 -9
- package/dist/{ipv4-BB1Ro6so.js → ipv4-DQS0lTwQ.js} +1 -1
- package/dist/{ir-DziC-P4Z.js → ir-CEwBpxhC.js} +6 -6
- package/dist/{issue-format-DF2YB-kZ.js → issue-format-D8MobWNt.js} +1 -1
- package/dist/{json-files-CuJjdF_0.js → json-files-rR19q30D.js} +8 -8
- package/dist/{lifecycle-core-CJd181-h.js → lifecycle-core-CiAE4s92.js} +5 -5
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{login-C_YjM9eH.js → login-CdHg3Emc.js} +3 -3
- package/dist/{login-qr-DujJqOuy.js → login-qr-DXecO0Tb.js} +6 -6
- package/dist/{logs-cli-Bc1A5X-r.js → logs-cli-D8UCmwyR.js} +9 -9
- package/dist/{manager-7hZXEYTj.js → manager-DWpiNvlg.js} +14 -14
- package/dist/{manifest-registry-Kbw8YPsZ.js → manifest-registry-CBF8Vfz8.js} +1 -1
- package/dist/{markdown-tables-BYHgyUjA.js → markdown-tables-DQlQMRGZ.js} +1 -1
- package/dist/{memory-cli-CuT-iG2F.js → memory-cli-BUrf60e_.js} +12 -12
- package/dist/{model-DmBmzJI6.js → model-DMZUvZJo.js} +2 -2
- package/dist/{model-catalog-D1X8r3WJ.js → model-catalog-DFi9HgWu.js} +3 -3
- package/dist/{model-picker-C56N_rW7.js → model-picker-Dt7Rl38k.js} +4 -4
- package/dist/{models-CgguB_MH.js → models-CukrcW4u.js} +18 -18
- package/dist/{models-cli-CHUbcM_y.js → models-cli-C-FMLbe_.js} +2 -2
- package/dist/{models-cli-BEb0DHSP.js → models-cli-DTjBGjrI.js} +81 -81
- package/dist/{models-config-CmrBGsQs.js → models-config-AePb9RAo.js} +6 -6
- package/dist/{net-BXeYv7Iu.js → net-C75G4fup.js} +2 -2
- package/dist/{node-cli-DSoqxwqZ.js → node-cli-D4Tj8JOq.js} +33 -33
- package/dist/{node-command-policy-pJ6IPNBA.js → node-command-policy-BZq5AebG.js} +1 -1
- package/dist/{node-service-DUUObpwl.js → node-service-B0FIwOsW.js} +1 -1
- package/dist/{nodes-cli-BKGcOJ8A.js → nodes-cli-DL-855N8.js} +16 -16
- package/dist/{nodes-screen-DcxCMjOs.js → nodes-screen-BHwVUMr8.js} +7 -7
- package/dist/{npm-pack-install-D5pJ8KzT.js → npm-pack-install-qErvgXGZ.js} +18 -18
- package/dist/{npm-resolution-T8SphiP5.js → npm-resolution-C_FZOBlT.js} +5 -5
- package/dist/{npm-resolution-Dv7nYiaP.js → npm-resolution-oBSNTx2S.js} +1 -1
- package/dist/{onboard-KHObANUh.js → onboard-B-f5pmgG.js} +2 -2
- package/dist/{onboard-BCcjGKBR.js → onboard-DktYC_iu.js} +6 -6
- package/dist/{onboard-channels-CRpmgX82.js → onboard-channels-Bbzz_NPd.js} +1 -1
- package/dist/{onboard-channels-BLZ8FdVP.js → onboard-channels-DGipWl1h.js} +20 -20
- package/dist/{onboard-custom-CZR1K96w.js → onboard-custom-B5F-69pM.js} +3 -3
- package/dist/{onboard-custom.shared-B9NXcXpv.js → onboard-custom.shared-CBgv6y4h.js} +2 -2
- package/dist/{onboard-helpers-CczYNQDJ.js → onboard-helpers-D8lLbK3A.js} +11 -11
- package/dist/{onboard-hooks-o0B0p8tR.js → onboard-hooks-DBif0Jq8.js} +4 -4
- package/dist/{onboard-remote-DtLQyBJB.js → onboard-remote-loJ1Jn9Q.js} +3 -3
- package/dist/{onboard-skills-Brzj5oDF.js → onboard-skills-JtcIUHsb.js} +4 -4
- package/dist/{onboarding-BTXvw1Ro.js → onboarding-D0IraL8k.js} +13 -13
- package/dist/{onboarding-DQNTd5J7.js → onboarding-Kp0zZunD.js} +3 -3
- package/dist/{onboarding.finalize-CHYENeNO.js → onboarding.finalize-CJ23anMx.js} +5 -5
- package/dist/{onboarding.finalize-D0qfP3rB.js → onboarding.finalize-DHitw2tg.js} +89 -89
- package/dist/{onboarding.gateway-config-D-gZxjbU.js → onboarding.gateway-config-uLDVSdpl.js} +18 -18
- package/dist/{openai-model-default-BNYNbslY.js → openai-model-default-B1Dlue6a.js} +2 -2
- package/dist/{outbound-_RTZSBES.js → outbound-BZyqP8d-.js} +4 -4
- package/dist/{outbound-attachment-CXINK8df.js → outbound-attachment-DM-h2uQ1.js} +2 -2
- package/dist/{pairing-cli-DiKgOlKC.js → pairing-cli-DR836bYa.js} +9 -9
- package/dist/{pairing-labels-CFSUHOmk.js → pairing-labels-x4akYNb7.js} +1 -1
- package/dist/{pairing-store-BfzlN-z9.js → pairing-store-rFuiIoGM.js} +3 -3
- package/dist/{path-alias-guards-Cg9ZP1NN.js → path-alias-guards-laKq24fx.js} +3 -3
- package/dist/{path-safety-__ACzYqx.js → path-safety-Cr4WZsHE.js} +1 -1
- package/dist/{paths-BjoSX1aC.js → paths-B_L2Zoe-.js} +9 -9
- package/dist/{pi-embedded-Bacc2S0h.js → pi-embedded-BgVoy_Nm.js} +42 -6
- package/dist/{pi-embedded-Claxav22.js → pi-embedded-DdMbqfLM.js} +42 -6
- package/dist/{pi-embedded-helpers-CrD8I6qf.js → pi-embedded-helpers-CEMPdfif.js} +6 -6
- package/dist/{pi-model-discovery-BZ2RCD_u.js → pi-model-discovery-RrejIg26.js} +1 -1
- package/dist/{pi-tools.policy-upaoJyu4.js → pi-tools.policy-dUeXHcQL.js} +5 -5
- package/dist/{plugin-auto-enable-DER6qA6X.js → plugin-auto-enable-S_lBQAKI.js} +3 -3
- package/dist/{plugin-registry-CxFikiLF.js → plugin-registry-CIUGSWLT.js} +3 -3
- package/dist/{plugin-registry-TOEmbMc4.js → plugin-registry-pa6LjTdT.js} +1 -1
- package/dist/plugin-sdk/{accounts-AbI8uETR.js → accounts-BZrkOo6-.js} +1 -1
- package/dist/plugin-sdk/{accounts-4WE2wtsW.js → accounts-COLYAAOx.js} +1 -1
- package/dist/plugin-sdk/{accounts-BYcizTXn.js → accounts-D_pT5EjF.js} +3 -3
- package/dist/plugin-sdk/{active-listener-pnqLAUOh.js → active-listener-DxBXcWm_.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-_j3fIYCK.js → agent-scope-DT5pxpJB.js} +3 -3
- package/dist/plugin-sdk/agents/context.d.ts +2 -0
- package/dist/plugin-sdk/{api-key-rotation-CYI51U_M.js → api-key-rotation-Dl6Ad7Nj.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-BTRRjPew.js → audio-preflight-CkPj4OVY.js} +33 -33
- package/dist/plugin-sdk/{audio-transcription-runner-DFZS7uCO.js → audio-transcription-runner-BBn9jEMg.js} +10 -10
- package/dist/plugin-sdk/{bindings-CxxzC7gn.js → bindings-BSfhEjKN.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-B3yZ-f-m.js → channel-activity-DAEbma-o.js} +3 -3
- package/dist/plugin-sdk/{channel-web-D2q54sK-.js → channel-web-BaFUnG0F.js} +23 -23
- package/dist/plugin-sdk/{chrome-oPevdeh5.js → chrome-Dn0G4NoF.js} +7 -7
- package/dist/plugin-sdk/{chunk-BPyPeheZ.js → chunk-cvtXztAT.js} +1 -1
- package/dist/plugin-sdk/{command-format-DvyMEXQo.js → command-format-BOJz3y1v.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-Dk8re8Lz.js → commands-registry-CZWv_JwZ.js} +5 -5
- package/dist/plugin-sdk/{config-D7I2_X4P.js → config-DAwOhnVF.js} +10 -10
- package/dist/plugin-sdk/{deliver-NrIHn0__.js → deliver-PdH-MCq8.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-DL3k_wRi.js → diagnostic-BZvj-qNu.js} +2 -2
- package/dist/plugin-sdk/{dock-CjdkiLH7.js → dock-BdR3OYZn.js} +6 -6
- package/dist/plugin-sdk/{errors-DFTN4h2I.js → errors-jusxdu7M.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BivEyA4v.js → fetch-guard-Dary6WwJ.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-B256n7Ff.js → fs-safe-DMCE0ej9.js} +3 -3
- package/dist/plugin-sdk/{image-CkPzr3XN.js → image-B3A2l2ep.js} +6 -6
- package/dist/{image-ops-BGTBZMuE.js → plugin-sdk/image-ops-DulHE5Qc.js} +1 -1
- package/dist/plugin-sdk/index.js +64 -64
- package/dist/plugin-sdk/{ir-BIm-jvIK.js → ir-BFXiJrsN.js} +6 -6
- package/dist/plugin-sdk/{local-roots-2AOXGUXW.js → local-roots-DssN60r6.js} +4 -4
- package/dist/plugin-sdk/{logger-CNhs9eKJ.js → logger-Cr-x0vMf.js} +1 -1
- package/dist/plugin-sdk/{login-BcLiF9tC.js → login-D0ul3-6C.js} +6 -6
- package/dist/plugin-sdk/{login-qr-GyPUodKJ.js → login-qr-XWKTFBuI.js} +9 -9
- package/dist/plugin-sdk/{manager-DYLqNUb4.js → manager-DGx_cF54.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-D9mmqMKi.js → markdown-tables-CsQpDNU5.js} +1 -1
- package/dist/plugin-sdk/{message-channel-_CEZcqxE.js → message-channel-CvNq-esz.js} +1 -1
- package/dist/plugin-sdk/{outbound-DdTsUaXa.js → outbound-D29FHlQl.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment--hkuIDR1.js → outbound-attachment-DRHrZUOx.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-BqUCBfUg.js → path-alias-guards-DpKV1B5p.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CTfvZz83.js → pi-embedded-helpers-CKEUWckk.js} +17 -17
- package/dist/plugin-sdk/{pi-model-discovery-CK3Ih_kq.js → pi-model-discovery-BPeQq9XM.js} +1 -1
- package/dist/plugin-sdk/{plugins-BpHAMNJ1.js → plugins-DF_dKXTR.js} +6 -6
- package/dist/plugin-sdk/{proxy-BJdRZOnJ.js → proxy-BfmEDoun.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-jmbopGcm.js → proxy-fetch-BpHIgvBk.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-D0Kx7w1D.js → pw-ai-BmmXDjtm.js} +13 -13
- package/dist/plugin-sdk/{qmd-manager-BDcutPp9.js → qmd-manager-3hQbqkm5.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-C_X8SyEA.js → query-expansion-BOGLUWB7.js} +2 -2
- package/dist/plugin-sdk/{redact-DH8u23pF.js → redact-BOuKZWXa.js} +1 -1
- package/dist/plugin-sdk/{registry-HF8_S7QO.js → registry-Cv-oHUj1.js} +2 -2
- package/dist/plugin-sdk/{replies-DbjvV4gf.js → replies-CddwWBTJ.js} +3 -3
- package/dist/plugin-sdk/{reply-Cs_Ks2Mr.js → reply-BCRC0yeW.js} +133 -97
- package/dist/plugin-sdk/{reply-prefix-KODsMNJ-.js → reply-prefix-DXthVxCx.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BPT4aNiD.js → resolve-outbound-target-D3Y4F2Le.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-De2B5QY_.js → resolve-route-DuwYYn4a.js} +4 -4
- package/dist/plugin-sdk/{retry-pZ8iKytf.js → retry-BMcrIz7L.js} +1 -1
- package/dist/plugin-sdk/{send-C-Rd2stz.js → send-B0ztz6QC.js} +6 -6
- package/dist/plugin-sdk/{send-BoNw1Bki.js → send-C5USYGq7.js} +8 -8
- package/dist/plugin-sdk/{send-1uW-uqPf.js → send-D0AaWnIj.js} +7 -7
- package/dist/plugin-sdk/{send-wCqsQs_s.js → send-DEyQJTzd.js} +10 -10
- package/dist/plugin-sdk/{send-CZIN8SDx.js → send-DJzwu8kk.js} +15 -15
- package/dist/plugin-sdk/{session-ooYcB82T.js → session-BA7tVDpV.js} +5 -5
- package/dist/plugin-sdk/{session-meta-7J-uHiM_.js → session-meta-ChWvKVWj.js} +1 -1
- package/dist/plugin-sdk/{sessions-lAIo5l8W.js → sessions-BXps6YzJ.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-D1Q6hGS4.js → skill-commands-B20uUsji.js} +5 -5
- package/dist/plugin-sdk/{skills-BWSDv2F_.js → skills-DXOTei42.js} +8 -8
- package/dist/plugin-sdk/{ssrf-JKDwTi8i.js → ssrf-Doxv9M7Q.js} +1 -1
- package/dist/plugin-sdk/{store-BMeqzQAf.js → store-BZbE1V-C.js} +2 -2
- package/dist/plugin-sdk/{subsystem-B0V8LFBA.js → subsystem-CM1s2lDT.js} +2 -2
- package/dist/plugin-sdk/{tables-DCSeBGBz.js → tables-BhH8EIqU.js} +1 -1
- package/dist/{target-errors-C5LA-JI-.js → plugin-sdk/target-errors-QZay02Cv.js} +2 -2
- package/dist/plugin-sdk/{tokens-DF2_VTJy.js → tokens-DIE-Bf72.js} +1 -1
- package/dist/plugin-sdk/{tool-images-BbsgbHMZ.js → tool-images-heXfaJdb.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-JkCpGrfk.js → tool-loop-detection-CygMSQUK.js} +2 -2
- package/dist/plugin-sdk/{utils-BfVxx6bk.js → utils-BcL6KGZf.js} +1 -1
- package/dist/plugin-sdk/web-BDHHRoXS.js +72 -0
- package/dist/plugin-sdk/{whatsapp-actions-tVcrGNQc.js → whatsapp-actions-CRean1yN.js} +25 -25
- package/dist/{plugins-vsjS_m58.js → plugins-C4cYqW07.js} +2 -2
- package/dist/{plugins-cli-Clo_uyvq.js → plugins-cli-CqDquUh9.js} +2 -2
- package/dist/{plugins-cli-bHHZzKd-.js → plugins-cli-DnLeUBfn.js} +86 -86
- package/dist/{ports-sCOQUaAP.js → ports-DRaxdQmm.js} +2 -2
- package/dist/{ports-zWusnrvP.js → ports-tfS1haOJ.js} +1 -1
- package/dist/{program-BI6W1Gll.js → program-3T_oL3TY.js} +84 -84
- package/dist/{program-context-D2D7wH7Q.js → program-context-D2U9PEv9.js} +17 -17
- package/dist/{prompt-select-styled-CdBJ0FWT.js → prompt-select-styled-Bir77erd.js} +4 -4
- package/dist/{prompt-select-styled-FGF3Su20.js → prompt-select-styled-BylOR7bV.js} +39 -39
- package/dist/{provider-auth-helpers-BFsLtU8g.js → provider-auth-helpers-BEFKXIJE.js} +5 -5
- package/dist/{provider-auth-helpers-D_akOb8A.js → provider-auth-helpers-fK9RpOiF.js} +1 -1
- package/dist/{proxy-env-BQIJPH4j.js → proxy-env-BoopXu2J.js} +1 -1
- package/dist/{push-apns-DvNRo3EQ.js → push-apns-C7oC1J4F.js} +1 -1
- package/dist/{push-apns-BSlKJa83.js → push-apns-sUecrS7L.js} +5 -5
- package/dist/{pw-ai-BeJ_96rV.js → pw-ai-CG7D8D2P.js} +15 -15
- package/dist/{qmd-manager-BNohLpRA.js → qmd-manager-Bo22w5wm.js} +20 -20
- package/dist/{qr-cli-CCHyao8J.js → qr-cli-DiKa2ySu.js} +1 -1
- package/dist/{query-expansion-BrM3X6-L.js → query-expansion-Ba9OpCm9.js} +12 -12
- package/dist/{redact-snapshot-C1Yp9Q7B.js → redact-snapshot-Dioor4fY.js} +1 -1
- package/dist/{register.agent-DowGjvNc.js → register.agent-DVy4TdwU.js} +6 -6
- package/dist/{register.agent-C-OmdJMe.js → register.agent-FAGOpOS3.js} +97 -97
- package/dist/{register.configure-BZLa_c3k.js → register.configure-BzG1EPPb.js} +7 -7
- package/dist/register.configure-aZwsNSkf.js +175 -0
- package/dist/{register.init-B1pIa3ys.js → register.init-B-wUDJAX.js} +15 -15
- package/dist/{register.maintenance-f8NCHf6u.js → register.maintenance-B6f_YUQN.js} +99 -99
- package/dist/{register.maintenance-DTx6vUDv.js → register.maintenance-ClYMbiJl.js} +7 -7
- package/dist/{register.message-DE-eKss6.js → register.message-BkAe3KaX.js} +2 -2
- package/dist/{register.message-5hKmcWaB.js → register.message-WkJ5viuk.js} +77 -77
- package/dist/{register.onboard-DmymXZNT.js → register.onboard-BUBCEjZ_.js} +2 -2
- package/dist/{register.onboard-tT7keiju.js → register.onboard-DvpF9feG.js} +18 -18
- package/dist/{register.setup-DjHaiqnA.js → register.setup-CA7jtsG8.js} +21 -21
- package/dist/{register.setup-D9AvFexw.js → register.setup-Dlmt8cdD.js} +2 -2
- package/dist/{register.start-CyYd_xbF.js → register.start-3Hnjf8NZ.js} +17 -17
- package/dist/{register.status-health-sessions-Cbva8fTK.js → register.status-health-sessions-BfIwzFQw.js} +3 -3
- package/dist/{register.status-health-sessions-lOM_lb6H.js → register.status-health-sessions-CY2i61By.js} +91 -91
- package/dist/{register.subclis-pmPhNoRB.js → register.subclis-D72jBDzj.js} +31 -31
- package/dist/{replies-Ckd7Lwt0.js → replies-BDnb0prE.js} +1 -1
- package/dist/{reply-D8Yu6-Ie.js → reply-BOAv4F33.js} +42 -6
- package/dist/{reply-prefix-DpXMFuAa.js → reply-prefix-H_GSyyzN.js} +1 -1
- package/dist/{resolve-route-Cnto8LMw.js → resolve-route-ByAwAiq5.js} +2 -2
- package/dist/{rpc-CnRUZWNJ.js → rpc-DQa5fiBV.js} +1 -1
- package/dist/{run-main-D5C2p24j.js → run-main-DOntWJzb.js} +95 -95
- package/dist/{runtime-D4y0Gdfj.js → runtime-D-Knnx0g.js} +2 -2
- package/dist/{sandbox-Tai-w14a.js → sandbox-DI_zIUpo.js} +18 -18
- package/dist/{sandbox-cli-uwsF36Ea.js → sandbox-cli-Cn6OxK6L.js} +26 -26
- package/dist/{secrets-cli-DzeSuhpa.js → secrets-cli-Cf2fFK2m.js} +10 -10
- package/dist/{security-cli-Dzelqio0.js → security-cli-DS-dXNUv.js} +43 -43
- package/dist/{send-e1X1pfda.js → send-BCLu4NEE.js} +6 -6
- package/dist/{send-BpXRh0BM.js → send-BTswySBz.js} +11 -11
- package/dist/{send-CQJKPGw4.js → send-CZ2O-5pP.js} +6 -6
- package/dist/{send-sj8Hu26l.js → send-D0X-8aPh.js} +8 -8
- package/dist/{send-Cpaj_bKB.js → send-ZyB64ntO.js} +5 -5
- package/dist/{server-Cr92VI8t.js → server-C88L-6UW.js} +19 -19
- package/dist/{server-context-YLHmGfYV.js → server-context-CjPCwa4T.js} +12 -12
- package/dist/{server-lifecycle-B23lXM3Y.js → server-lifecycle-HLBzAVdX.js} +2 -2
- package/dist/{server-middleware-CKSnhiM2.js → server-middleware-DHxnFjIL.js} +1 -1
- package/dist/{server-node-events-yFZiE04b.js → server-node-events-CyVS1c_n.js} +77 -77
- package/dist/{server-node-events-nakjzVDn.js → server-node-events-DAuQ0Pk2.js} +2 -2
- package/dist/{service-Bjqlh_fF.js → service-CFfCS51c.js} +15 -15
- package/dist/{session-DcnQHb9Q.js → session-ApCom0An.js} +1 -1
- package/dist/{session-meta-DF1WT4cr.js → session-meta-Cew1QAYN.js} +1 -1
- package/dist/{session-utils-BncMg1bn.js → session-utils-DYJSA9qa.js} +46 -10
- package/dist/{sessions-B2mnwD21.js → sessions-BXz4gdq6.js} +15 -15
- package/dist/{sessions-C2Xfck_9.js → sessions-CeXgGBJ1.js} +4 -4
- package/dist/{shared-BojXguFB.js → shared-Cd4Yi_Q8.js} +3 -3
- package/dist/{shared-_j1K2VJ9.js → shared-Cl1av01k.js} +1 -1
- package/dist/{skill-commands-CYucDd3C.js → skill-commands-Cpr3Poo2.js} +5 -5
- package/dist/{skill-scanner-CSJqt034.js → skill-scanner-3QHafkQH.js} +6 -6
- package/dist/{skills-BCgFAMj3.js → skills-D4S-gyVf.js} +3 -3
- package/dist/{skills-cli-BM1iUpGc.js → skills-cli-CAhlFcYR.js} +5 -5
- package/dist/{skills-install-e4_jXT_J.js → skills-install-DyneupGw.js} +6 -6
- package/dist/{skills-status-DG-bH5mO.js → skills-status-DQzBD0Y7.js} +1 -1
- package/dist/{status-CQYA6EJN.js → status-C6WYtjMU.js} +2 -2
- package/dist/{status-mS4bWnIW.js → status-VYa-lFs6.js} +26 -26
- package/dist/{status.update-YC9VNJxl.js → status.update-BdgtGtkx.js} +2 -2
- package/dist/{store-U8cs0QvT.js → store-TdzSHRPN.js} +5 -5
- package/dist/{subagent-registry-CXBreqUP.js → subagent-registry-DlmrBMrv.js} +156 -156
- package/dist/{system-cli-B_PUKo6-.js → system-cli-BYGGFlhn.js} +9 -9
- package/dist/{system-run-command-GKGzGztn.js → system-run-command-XHAlbx5q.js} +1 -1
- package/dist/{systemd-HiU4Gzoc.js → systemd-DRGkJYMb.js} +9 -9
- package/dist/{systemd-hints-BDIASQOF.js → systemd-hints-C5HK00QG.js} +6 -6
- package/dist/{systemd-linger-DfrE-63p.js → systemd-linger-DME-3IVk.js} +1 -1
- package/dist/{tables-DVXe5x1J.js → tables-BOsRa7CS.js} +1 -1
- package/dist/{tailnet-C1XBcWue.js → tailnet-CfP3A6g2.js} +1 -1
- package/dist/{plugin-sdk/target-errors-0u6pegQv.js → target-errors-DPJ9HFp9.js} +4 -4
- package/dist/{tool-images-CnpAosfi.js → tool-images-CmgHk8xk.js} +1 -1
- package/dist/{tui-CLK0s6TM.js → tui-C16rnfcv.js} +6 -6
- package/dist/{tui-cli-DTdNoN6U.js → tui-cli-Ct7mmQhr.js} +33 -33
- package/dist/{update-DLc3UsVC.js → update-DOvgIBRu.js} +3 -3
- package/dist/{update-cli-C2EagLTi.js → update-cli-BnefEkIB.js} +107 -107
- package/dist/{update-cli-DiT2fFEK.js → update-cli-CWNpH8nb.js} +7 -7
- package/dist/{update-runner-C9noXbfV.js → update-runner-BSQpjT4r.js} +16 -16
- package/dist/{update-runner-DO6RodZW.js → update-runner-CE9BNhOu.js} +1 -1
- package/dist/{web-CDHXvGxm.js → web-C1PpWeXj.js} +1 -1
- package/dist/web-C1Zm__bd.js +127 -0
- package/dist/{web-DbdjX4Hg.js → web-C_RqjNux.js} +2 -2
- package/dist/{web-DJKitOpu.js → web-DBuATjw6.js} +1 -1
- package/dist/{webhooks-cli-c5SaGz4J.js → webhooks-cli-DyIIpN1Q.js} +6 -6
- package/dist/{whatsapp-actions-CnjEOFOZ.js → whatsapp-actions-Dmv3vDs5.js} +19 -19
- package/dist/{with-timeout-DurSJobr.js → with-timeout-Cf-HNLSj.js} +3 -3
- package/dist/{workspace-DWBFoy1G.js → workspace-A5CNJccm.js} +1 -1
- package/dist/{workspace-BHfqkuYN.js → workspace-DzeL98px.js} +23 -23
- package/dist/{workspace-dirs-BOgNOBjy.js → workspace-dirs-Bevk6X_8.js} +1 -1
- package/dist/{wsl-BDRu1-pk.js → wsl-DksyFTBT.js} +2 -2
- package/package.json +1 -1
- package/dist/plugin-sdk/web-B35hdNQ-.js +0 -72
- package/dist/register.configure-CaSRlI6h.js +0 -175
- package/dist/web-BKrNiKsU.js +0 -127
|
@@ -3,15 +3,15 @@ import { a as logVerbose } from "./globals-B68W7uN8.js";
|
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-DjdBljTA.js";
|
|
4
4
|
import { _ as normalizeOptionalAccountId, g as normalizeAccountId } from "./session-key-BLprDJYq.js";
|
|
5
5
|
import { E as triggerInternalHook, f as getActivePluginRegistryVersion, u as getActivePluginRegistry, w as createInternalHookEvent } from "./registry-7fg1BnMw.js";
|
|
6
|
-
import { t as getChannelDock } from "./dock-
|
|
7
|
-
import { F as parseInlineDirectives, i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript } from "./sessions-
|
|
8
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
6
|
+
import { t as getChannelDock } from "./dock-CoclJnwp.js";
|
|
7
|
+
import { F as parseInlineDirectives, i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript } from "./sessions-BXz4gdq6.js";
|
|
8
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-C4cYqW07.js";
|
|
9
9
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-DyLBF_df.js";
|
|
10
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
11
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
10
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-CEMPdfif.js";
|
|
11
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DOjg912W.js";
|
|
12
12
|
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-kLPohhLl.js";
|
|
13
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
14
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
13
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DQlQMRGZ.js";
|
|
14
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-CZ2O-5pP.js";
|
|
15
15
|
import { i as failDelivery, r as enqueueDelivery, t as ackDelivery } from "./delivery-queue-DhqwvOP8.js";
|
|
16
16
|
|
|
17
17
|
//#region src/plugins/hooks.ts
|
|
@@ -2,10 +2,10 @@ import { p as theme } from "./globals-B68W7uN8.js";
|
|
|
2
2
|
import "./paths-BnKiOk2S.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-DjdBljTA.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-CyG9VwU_.js";
|
|
6
|
+
import "./agent-scope-CY2-lUIY.js";
|
|
7
7
|
import "./utils-DIzy5B5o.js";
|
|
8
|
-
import "./workspace-
|
|
8
|
+
import "./workspace-DzeL98px.js";
|
|
9
9
|
import "./logger-BJMfryJd.js";
|
|
10
10
|
import "./exec-CEAvKSx9.js";
|
|
11
11
|
import "./github-copilot-token-CulJ9J5l.js";
|
|
@@ -13,13 +13,13 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
13
13
|
import "./version-CGDNfh5C.js";
|
|
14
14
|
import "./env-vars-Dw0EwyGP.js";
|
|
15
15
|
import "./registry-7fg1BnMw.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-CBF8Vfz8.js";
|
|
17
17
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-0J6eKf3g.js";
|
|
18
|
-
import { Vt as approveDevicePairing, Wt as listDevicePairing, Xt as summarizeDeviceTokens } from "./client-
|
|
19
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
18
|
+
import { Vt as approveDevicePairing, Wt as listDevicePairing, Xt as summarizeDeviceTokens } from "./client-vUKV2o6h.js";
|
|
19
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-CmAGfSJE.js";
|
|
20
20
|
import "./pairing-token-DoBZxQnC.js";
|
|
21
|
-
import { r as isLoopbackHost } from "./net-
|
|
22
|
-
import "./tailnet-
|
|
21
|
+
import { r as isLoopbackHost } from "./net-C75G4fup.js";
|
|
22
|
+
import "./tailnet-CfP3A6g2.js";
|
|
23
23
|
import { n as formatTimeAgo } from "./format-relative-DlCMhQXD.js";
|
|
24
24
|
import { n as withProgress } from "./progress-CwQKn0ae.js";
|
|
25
25
|
import { t as renderTable } from "./table-CqULNDay.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-DjdBljTA.js";
|
|
3
|
-
import { M as loadConfig } from "./auth-profiles-
|
|
3
|
+
import { M as loadConfig } from "./auth-profiles-CyG9VwU_.js";
|
|
4
4
|
import { n as getDiagnosticSessionState, r as pruneDiagnosticSessionStates, t as diagnosticSessionStates } from "./diagnostic-session-state-Dx-rJXBO.js";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/diagnostic-events.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
2
|
-
import
|
|
1
|
+
import { s as resolveGatewayLogPaths } from "./service-CFfCS51c.js";
|
|
2
|
+
import fsPromises from "node:fs/promises";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/diagnostics.ts
|
|
5
5
|
const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
@@ -11,7 +11,7 @@ const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
|
11
11
|
];
|
|
12
12
|
async function readLastLogLine(filePath) {
|
|
13
13
|
try {
|
|
14
|
-
const lines = (await
|
|
14
|
+
const lines = (await fsPromises.readFile(filePath, "utf8")).split(/\r?\n/).map((line) => line.trim());
|
|
15
15
|
for (let i = lines.length - 1; i >= 0; i -= 1) if (lines[i]) return lines[i];
|
|
16
16
|
return null;
|
|
17
17
|
} catch {
|
|
@@ -20,8 +20,8 @@ async function readLastLogLine(filePath) {
|
|
|
20
20
|
}
|
|
21
21
|
async function readLastGatewayErrorLine(env) {
|
|
22
22
|
const { stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
23
|
-
const stderrRaw = await
|
|
24
|
-
const stdoutRaw = await
|
|
23
|
+
const stderrRaw = await fsPromises.readFile(stderrPath, "utf8").catch(() => "");
|
|
24
|
+
const stdoutRaw = await fsPromises.readFile(stdoutPath, "utf8").catch(() => "");
|
|
25
25
|
const lines = [...stderrRaw.split(/\r?\n/), ...stdoutRaw.split(/\r?\n/)].map((line) => line.trim());
|
|
26
26
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
27
27
|
const line = lines[i];
|
|
@@ -2,10 +2,10 @@ import { p as theme, t as danger } from "./globals-B68W7uN8.js";
|
|
|
2
2
|
import "./paths-BnKiOk2S.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-DjdBljTA.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { M as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { M as loadConfig } from "./auth-profiles-CyG9VwU_.js";
|
|
6
|
+
import "./agent-scope-CY2-lUIY.js";
|
|
7
7
|
import "./utils-DIzy5B5o.js";
|
|
8
|
-
import "./workspace-
|
|
8
|
+
import "./workspace-DzeL98px.js";
|
|
9
9
|
import "./logger-BJMfryJd.js";
|
|
10
10
|
import "./exec-CEAvKSx9.js";
|
|
11
11
|
import "./github-copilot-token-CulJ9J5l.js";
|
|
@@ -13,13 +13,13 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
13
13
|
import "./version-CGDNfh5C.js";
|
|
14
14
|
import "./env-vars-Dw0EwyGP.js";
|
|
15
15
|
import "./registry-7fg1BnMw.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-CBF8Vfz8.js";
|
|
17
17
|
import "./message-channel-0J6eKf3g.js";
|
|
18
|
-
import { t as getChannelPlugin } from "./plugins-
|
|
19
|
-
import "./accounts-
|
|
18
|
+
import { t as getChannelPlugin } from "./plugins-C4cYqW07.js";
|
|
19
|
+
import "./accounts-Cv5CUnT4.js";
|
|
20
20
|
import "./logging-5MtSkLpb.js";
|
|
21
|
-
import "./bindings-
|
|
22
|
-
import { n as resolveMessageChannelSelection } from "./channel-selection-
|
|
21
|
+
import "./bindings-DGvp9FdD.js";
|
|
22
|
+
import { n as resolveMessageChannelSelection } from "./channel-selection-DGtYwfd7.js";
|
|
23
23
|
import { t as formatDocsLink } from "./links-BDNlbZvM.js";
|
|
24
24
|
import { t as formatHelpExamples } from "./help-format-B3bKmDqF.js";
|
|
25
25
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BSfSxnxh.js";
|
|
@@ -2,10 +2,10 @@ import { p as theme } from "./globals-B68W7uN8.js";
|
|
|
2
2
|
import "./paths-BnKiOk2S.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-DjdBljTA.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { M as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { M as loadConfig } from "./auth-profiles-CyG9VwU_.js";
|
|
6
|
+
import "./agent-scope-CY2-lUIY.js";
|
|
7
7
|
import "./utils-DIzy5B5o.js";
|
|
8
|
-
import "./workspace-
|
|
8
|
+
import "./workspace-DzeL98px.js";
|
|
9
9
|
import "./logger-BJMfryJd.js";
|
|
10
10
|
import "./exec-CEAvKSx9.js";
|
|
11
11
|
import "./github-copilot-token-CulJ9J5l.js";
|
|
@@ -13,8 +13,8 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
13
13
|
import "./version-CGDNfh5C.js";
|
|
14
14
|
import "./env-vars-Dw0EwyGP.js";
|
|
15
15
|
import "./registry-7fg1BnMw.js";
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-
|
|
16
|
+
import "./manifest-registry-CBF8Vfz8.js";
|
|
17
|
+
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-CfP3A6g2.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-BDNlbZvM.js";
|
|
19
19
|
import { t as renderTable } from "./table-CqULNDay.js";
|
|
20
20
|
import { n as resolveWideAreaDiscoveryDomain, t as getWideAreaZonePath } from "./widearea-dns-CABro6I6.js";
|
|
@@ -2,10 +2,10 @@ import { g as normalizeAccountId } from "./session-key-BLprDJYq.js";
|
|
|
2
2
|
import { c as escapeRegExp, p as normalizeE164 } from "./utils-DIzy5B5o.js";
|
|
3
3
|
import { a as getChatChannelMeta, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry } from "./registry-7fg1BnMw.js";
|
|
4
4
|
import { t as resolveAccountEntry } from "./account-lookup-DndUerpe.js";
|
|
5
|
-
import { C as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount, v as normalizeWhatsAppTarget } from "./plugins-
|
|
6
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
7
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
8
|
-
import { i as resolveSignalAccount } from "./accounts-
|
|
5
|
+
import { C as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount, v as normalizeWhatsAppTarget } from "./plugins-C4cYqW07.js";
|
|
6
|
+
import { i as resolveWhatsAppAccount } from "./accounts-Cv5CUnT4.js";
|
|
7
|
+
import { r as resolveIMessageAccount } from "./accounts-2NNZ6Hbp.js";
|
|
8
|
+
import { i as resolveSignalAccount } from "./accounts-NHpMJ0aq.js";
|
|
9
9
|
|
|
10
10
|
//#region src/config/types.tools.ts
|
|
11
11
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -4,15 +4,15 @@ import { d as defaultRuntime } from "./subsystem-DjdBljTA.js";
|
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
6
6
|
import "./utils-DIzy5B5o.js";
|
|
7
|
-
import "./workspace-
|
|
7
|
+
import "./workspace-DzeL98px.js";
|
|
8
8
|
import "./logger-BJMfryJd.js";
|
|
9
9
|
import { t as runCommandWithTimeout } from "./exec-CEAvKSx9.js";
|
|
10
10
|
import "./host-env-security-CJMD0__Z.js";
|
|
11
11
|
import "./registry-7fg1BnMw.js";
|
|
12
|
-
import "./manifest-registry-
|
|
12
|
+
import "./manifest-registry-CBF8Vfz8.js";
|
|
13
13
|
import { d as hasBinary } from "./frontmatter-C0E8mspC.js";
|
|
14
|
-
import "./skills-
|
|
15
|
-
import "./path-alias-guards-
|
|
14
|
+
import "./skills-D4S-gyVf.js";
|
|
15
|
+
import "./path-alias-guards-laKq24fx.js";
|
|
16
16
|
import "./redact-Ck5U_y4i.js";
|
|
17
17
|
import "./errors-BJz45-qI.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-BDNlbZvM.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as resolveCliName } from "./paths-BYr-iJJ9.js";
|
|
2
2
|
import { y as resolveOpenClawPackageRoot } from "./workspace-CRdln__H.js";
|
|
3
3
|
import { t as note } from "./note-CLcV1fjx.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-BuLkcc9o.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as resolveCliName } from "./paths-BnKiOk2S.js";
|
|
2
|
-
import { y as resolveOpenClawPackageRoot } from "./workspace-
|
|
2
|
+
import { y as resolveOpenClawPackageRoot } from "./workspace-DzeL98px.js";
|
|
3
3
|
import { t as note } from "./note-BuhsMSuP.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-DSxTjQik.js";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { f as resolveLegacyStateDirs, g as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, s as resolveConfigPathCandidate, t as CONFIG_PATH } from "./paths-BnKiOk2S.js";
|
|
2
|
-
import { B as OpenClawSchema, Cn as formatSlackStreamModeMigrationMessage, Dn as resolveSlackNativeStreaming, En as resolveDiscordPreviewStreamMode, Ht as isTrustedSafeBinPath, On as resolveSlackStreamingMode, P as readConfigFileSnapshot, Vt as getTrustedSafeBinDirs, Wt as normalizeTrustedSafeBinDirs, k as migrateLegacyConfig, kn as resolveTelegramPreviewStreamMode, tn as resolveCommandResolutionFromArgv, wn as formatSlackStreamingBooleanMigrationMessage } from "./auth-profiles-
|
|
2
|
+
import { B as OpenClawSchema, Cn as formatSlackStreamModeMigrationMessage, Dn as resolveSlackNativeStreaming, En as resolveDiscordPreviewStreamMode, Ht as isTrustedSafeBinPath, On as resolveSlackStreamingMode, P as readConfigFileSnapshot, Vt as getTrustedSafeBinDirs, Wt as normalizeTrustedSafeBinDirs, k as migrateLegacyConfig, kn as resolveTelegramPreviewStreamMode, tn as resolveCommandResolutionFromArgv, wn as formatSlackStreamingBooleanMigrationMessage } from "./auth-profiles-CyG9VwU_.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
4
|
-
import { d as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
+
import { d as resolveDefaultAgentId } from "./agent-scope-CY2-lUIY.js";
|
|
5
5
|
import { c as normalizeAgentId, g as normalizeAccountId, h as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey } from "./session-key-BLprDJYq.js";
|
|
6
6
|
import { g as resolveHomeDir, u as isRecord } from "./utils-DIzy5B5o.js";
|
|
7
7
|
import { l as normalizeChatChannelId } from "./registry-7fg1BnMw.js";
|
|
8
|
-
import { f as parseToolsBySenderTypedKey } from "./dock-
|
|
9
|
-
import { Q as canonicalizeMainSessionAlias, l as saveSessionStore } from "./sessions-
|
|
10
|
-
import { l as resolveTelegramAccount, s as listTelegramAccountIds } from "./plugins-
|
|
11
|
-
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-
|
|
12
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
13
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
8
|
+
import { f as parseToolsBySenderTypedKey } from "./dock-CoclJnwp.js";
|
|
9
|
+
import { Q as canonicalizeMainSessionAlias, l as saveSessionStore } from "./sessions-BXz4gdq6.js";
|
|
10
|
+
import { l as resolveTelegramAccount, s as listTelegramAccountIds } from "./plugins-C4cYqW07.js";
|
|
11
|
+
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-CpMj95vJ.js";
|
|
12
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-rFuiIoGM.js";
|
|
13
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-S_lBQAKI.js";
|
|
14
14
|
import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-CffcsSiI.js";
|
|
15
15
|
import { r as shouldMoveSingleAccountChannelKey, t as fetchTelegramChatId } from "./api-CzfBiQzt.js";
|
|
16
16
|
import { t as note } from "./note-BuhsMSuP.js";
|
|
17
|
-
import { t as isWithinDir } from "./path-safety-
|
|
18
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
17
|
+
import { t as isWithinDir } from "./path-safety-Cr4WZsHE.js";
|
|
18
|
+
import { n as formatConfigIssueLines } from "./issue-format-D8MobWNt.js";
|
|
19
19
|
import { a as isMattermostMutableAllowEntry, c as normalizeTelegramAllowFromEntry, i as isMSTeamsMutableAllowEntry, n as isGoogleChatMutableAllowEntry, o as isSlackMutableAllowEntry, r as isIrcMutableAllowEntry, s as isNumericTelegramUserId, t as isDiscordMutableAllowEntry } from "./mutable-allowlist-detectors-BaVrnZS3.js";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import os from "node:os";
|
|
22
22
|
import fs from "node:fs";
|
|
23
23
|
import JSON5 from "json5";
|
|
24
|
-
import
|
|
24
|
+
import fsPromises from "node:fs/promises";
|
|
25
25
|
|
|
26
26
|
//#region src/commands/doctor-legacy-config.ts
|
|
27
27
|
function normalizeCompatibilityConfigValues(cfg) {
|
|
@@ -2109,7 +2109,7 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2109
2109
|
const targetPath = resolveConfigPathCandidate(process.env, () => home);
|
|
2110
2110
|
const targetDir = path.dirname(targetPath);
|
|
2111
2111
|
try {
|
|
2112
|
-
await
|
|
2112
|
+
await fsPromises.access(targetPath);
|
|
2113
2113
|
return changes;
|
|
2114
2114
|
} catch {}
|
|
2115
2115
|
const legacyCandidates = [
|
|
@@ -2119,14 +2119,14 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2119
2119
|
];
|
|
2120
2120
|
let legacyPath = null;
|
|
2121
2121
|
for (const candidate of legacyCandidates) try {
|
|
2122
|
-
await
|
|
2122
|
+
await fsPromises.access(candidate);
|
|
2123
2123
|
legacyPath = candidate;
|
|
2124
2124
|
break;
|
|
2125
2125
|
} catch {}
|
|
2126
2126
|
if (!legacyPath) return changes;
|
|
2127
|
-
await
|
|
2127
|
+
await fsPromises.mkdir(targetDir, { recursive: true });
|
|
2128
2128
|
try {
|
|
2129
|
-
await
|
|
2129
|
+
await fsPromises.copyFile(legacyPath, targetPath, fsPromises.constants.COPYFILE_EXCL);
|
|
2130
2130
|
changes.push(`Migrated legacy config: ${legacyPath} -> ${targetPath}`);
|
|
2131
2131
|
} catch {}
|
|
2132
2132
|
return changes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as normalizeChatChannelId } from "./registry-7fg1BnMw.js";
|
|
2
|
-
import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-
|
|
2
|
+
import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-S_lBQAKI.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/toggle-config.ts
|
|
5
5
|
function setPluginEnabledInConfig(config, pluginId, enabled) {
|
package/dist/entry.js
CHANGED
|
@@ -384,7 +384,7 @@ if (!isMainModule({
|
|
|
384
384
|
}
|
|
385
385
|
function tryHandleRootHelpFastPath(argv) {
|
|
386
386
|
if (!isRootHelpInvocation(argv)) return false;
|
|
387
|
-
import("./program-
|
|
387
|
+
import("./program-3T_oL3TY.js").then(({ buildProgram }) => {
|
|
388
388
|
buildProgram().outputHelp();
|
|
389
389
|
}).catch((error) => {
|
|
390
390
|
console.error("[openclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
|
|
@@ -403,7 +403,7 @@ if (!isMainModule({
|
|
|
403
403
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
404
404
|
process$1.argv = parsed.argv;
|
|
405
405
|
}
|
|
406
|
-
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-
|
|
406
|
+
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-DOntWJzb.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
407
407
|
console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
408
408
|
process$1.exitCode = 1;
|
|
409
409
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as matchAllowlist, Gt as validateSafeBinArgv, Ht as isTrustedSafeBinPath, Qt as DEFAULT_SAFE_BINS, Yt as isWindowsPlatform, Zt as splitCommandChain, dn as unwrapKnownShellMultiplexerInvocation, en as resolveAllowlistCandidatePath, gn as SAFE_BIN_PROFILES, in as extractShellWrapperInlineCommand, on as isDispatchWrapperExecutable, qt as analyzeShellCommand, sn as isShellWrapperExecutable, tn as resolveCommandResolutionFromArgv, un as unwrapKnownDispatchWrapperInvocation } from "./auth-profiles-
|
|
1
|
+
import { $t as matchAllowlist, Gt as validateSafeBinArgv, Ht as isTrustedSafeBinPath, Qt as DEFAULT_SAFE_BINS, Yt as isWindowsPlatform, Zt as splitCommandChain, dn as unwrapKnownShellMultiplexerInvocation, en as resolveAllowlistCandidatePath, gn as SAFE_BIN_PROFILES, in as extractShellWrapperInlineCommand, on as isDispatchWrapperExecutable, qt as analyzeShellCommand, sn as isShellWrapperExecutable, tn as resolveCommandResolutionFromArgv, un as unwrapKnownDispatchWrapperInvocation } from "./auth-profiles-CyG9VwU_.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-approvals-allowlist.ts
|
|
@@ -2,10 +2,10 @@ import { f as isRich, p as theme } from "./globals-B68W7uN8.js";
|
|
|
2
2
|
import "./paths-BnKiOk2S.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-DjdBljTA.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-CyG9VwU_.js";
|
|
6
|
+
import "./agent-scope-CY2-lUIY.js";
|
|
7
7
|
import "./utils-DIzy5B5o.js";
|
|
8
|
-
import "./workspace-
|
|
8
|
+
import "./workspace-DzeL98px.js";
|
|
9
9
|
import "./logger-BJMfryJd.js";
|
|
10
10
|
import "./exec-CEAvKSx9.js";
|
|
11
11
|
import "./github-copilot-token-CulJ9J5l.js";
|
|
@@ -13,26 +13,26 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
13
13
|
import "./version-CGDNfh5C.js";
|
|
14
14
|
import "./env-vars-Dw0EwyGP.js";
|
|
15
15
|
import "./registry-7fg1BnMw.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-CBF8Vfz8.js";
|
|
17
17
|
import "./message-channel-0J6eKf3g.js";
|
|
18
|
-
import "./client-
|
|
19
|
-
import "./call-
|
|
18
|
+
import "./client-vUKV2o6h.js";
|
|
19
|
+
import "./call-CmAGfSJE.js";
|
|
20
20
|
import "./pairing-token-DoBZxQnC.js";
|
|
21
|
-
import "./net-
|
|
22
|
-
import "./tailnet-
|
|
23
|
-
import "./exec-approvals-allowlist-
|
|
21
|
+
import "./net-C75G4fup.js";
|
|
22
|
+
import "./tailnet-CfP3A6g2.js";
|
|
23
|
+
import "./exec-approvals-allowlist-CFjPSbxI.js";
|
|
24
24
|
import { n as formatTimeAgo } from "./format-relative-DlCMhQXD.js";
|
|
25
25
|
import { c as readExecApprovalsSnapshot, p as saveExecApprovals } from "./exec-approvals-HRn5F9dF.js";
|
|
26
26
|
import { t as formatDocsLink } from "./links-BDNlbZvM.js";
|
|
27
27
|
import "./progress-CwQKn0ae.js";
|
|
28
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
29
|
-
import "./systemd-
|
|
30
|
-
import "./service-
|
|
28
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-B5Spvviy.js";
|
|
29
|
+
import "./systemd-DRGkJYMb.js";
|
|
30
|
+
import "./service-CFfCS51c.js";
|
|
31
31
|
import { t as renderTable } from "./table-CqULNDay.js";
|
|
32
|
-
import { t as describeUnknownError } from "./shared-
|
|
33
|
-
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
32
|
+
import { t as describeUnknownError } from "./shared-Cl1av01k.js";
|
|
33
|
+
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-DQa5fiBV.js";
|
|
34
34
|
import JSON5 from "json5";
|
|
35
|
-
import
|
|
35
|
+
import fsPromises from "node:fs/promises";
|
|
36
36
|
|
|
37
37
|
//#region src/cli/exec-approvals-cli.ts
|
|
38
38
|
async function readStdin() {
|
|
@@ -329,7 +329,7 @@ function registerExecApprovalsCli(program) {
|
|
|
329
329
|
if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
|
|
330
330
|
if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
|
|
331
331
|
const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
|
|
332
|
-
const raw = opts.stdin ? await readStdin() : await
|
|
332
|
+
const raw = opts.stdin ? await readStdin() : await fsPromises.readFile(String(opts.file), "utf8");
|
|
333
333
|
let file;
|
|
334
334
|
try {
|
|
335
335
|
file = JSON5.parse(raw);
|
package/dist/{exec-safe-bin-runtime-policy-BP6ImlkB.js → exec-safe-bin-runtime-policy-CpMj95vJ.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ut as listWritableExplicitTrustedSafeBinDirs, Vt as getTrustedSafeBinDirs, Wt as normalizeTrustedSafeBinDirs, _n as normalizeSafeBinProfileFixtures, vn as resolveSafeBinProfiles } from "./auth-profiles-
|
|
2
|
-
import { i as resolveSafeBins } from "./exec-approvals-allowlist-
|
|
1
|
+
import { Ut as listWritableExplicitTrustedSafeBinDirs, Vt as getTrustedSafeBinDirs, Wt as normalizeTrustedSafeBinDirs, _n as normalizeSafeBinProfileFixtures, vn as resolveSafeBinProfiles } from "./auth-profiles-CyG9VwU_.js";
|
|
2
|
+
import { i as resolveSafeBins } from "./exec-approvals-allowlist-CFjPSbxI.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-safe-bin-runtime-policy.ts
|
|
5
5
|
const INTERPRETER_LIKE_SAFE_BINS = new Set([
|
package/dist/extensionAPI.js
CHANGED
|
@@ -10,7 +10,7 @@ import "./env-zky96nK6.js";
|
|
|
10
10
|
import "./registry-BOq-EU8K.js";
|
|
11
11
|
import "./dock-L5TLZmhV.js";
|
|
12
12
|
import "./tokens-2c_yMaYC.js";
|
|
13
|
-
import { P as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
13
|
+
import { P as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-DdMbqfLM.js";
|
|
14
14
|
import "./plugins-BuQyooWr.js";
|
|
15
15
|
import "./accounts-DYfFud2l.js";
|
|
16
16
|
import "./bindings-Cn3Pwuys.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { k as resolvePreferredOpenClawTmpDir } from "./globals-B68W7uN8.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BnKiOk2S.js";
|
|
3
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
3
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-CY2-lUIY.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-B2L37gT8.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Csbz9pui.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/local-roots.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as logWarn } from "./logger-BJMfryJd.js";
|
|
2
|
-
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
2
|
+
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-BoopXu2J.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-CZWuvzq4.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as expandHomePrefix } from "./paths-BnKiOk2S.js";
|
|
2
|
-
import { A as isNotFoundPathError, M as isSymlinkOpenError, T as sameFileIdentity, j as isPathInside, k as hasNodeErrorCode } from "./workspace-
|
|
2
|
+
import { A as isNotFoundPathError, M as isSymlinkOpenError, T as sameFileIdentity, j as isPathInside, k as hasNodeErrorCode } from "./workspace-DzeL98px.js";
|
|
3
3
|
import { i as logWarn } from "./logger-BJMfryJd.js";
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-laKq24fx.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import { constants } from "node:fs";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { pipeline } from "node:stream/promises";
|
|
11
11
|
|
|
@@ -25,19 +25,19 @@ const ensureTrailingSep = (value) => value.endsWith(path.sep) ? value : value +
|
|
|
25
25
|
async function expandRelativePathWithHome(relativePath) {
|
|
26
26
|
let home = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
27
27
|
try {
|
|
28
|
-
home = await
|
|
28
|
+
home = await fsPromises.realpath(home);
|
|
29
29
|
} catch {}
|
|
30
30
|
return expandHomePrefix(relativePath, { home });
|
|
31
31
|
}
|
|
32
32
|
async function openVerifiedLocalFile(filePath, options) {
|
|
33
33
|
try {
|
|
34
|
-
if ((await
|
|
34
|
+
if ((await fsPromises.lstat(filePath)).isDirectory()) throw new SafeOpenError("not-file", "not a file");
|
|
35
35
|
} catch (err) {
|
|
36
36
|
if (err instanceof SafeOpenError) throw err;
|
|
37
37
|
}
|
|
38
38
|
let handle;
|
|
39
39
|
try {
|
|
40
|
-
handle = await
|
|
40
|
+
handle = await fsPromises.open(filePath, OPEN_READ_FLAGS);
|
|
41
41
|
} catch (err) {
|
|
42
42
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
43
43
|
if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
|
|
@@ -45,13 +45,13 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
45
45
|
throw err;
|
|
46
46
|
}
|
|
47
47
|
try {
|
|
48
|
-
const [stat, lstat] = await Promise.all([handle.stat(),
|
|
48
|
+
const [stat, lstat] = await Promise.all([handle.stat(), fsPromises.lstat(filePath)]);
|
|
49
49
|
if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
|
|
50
50
|
if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
|
|
51
51
|
if (options?.rejectHardlinks && stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
52
52
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during read");
|
|
53
|
-
const realPath = await
|
|
54
|
-
const realStat = await
|
|
53
|
+
const realPath = await fsPromises.realpath(filePath);
|
|
54
|
+
const realStat = await fsPromises.stat(realPath);
|
|
55
55
|
if (options?.rejectHardlinks && realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
56
56
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
57
57
|
return {
|
|
@@ -69,7 +69,7 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
69
69
|
async function resolvePathWithinRoot(params) {
|
|
70
70
|
let rootReal;
|
|
71
71
|
try {
|
|
72
|
-
rootReal = await
|
|
72
|
+
rootReal = await fsPromises.realpath(params.rootDir);
|
|
73
73
|
} catch (err) {
|
|
74
74
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
|
|
75
75
|
throw err;
|
|
@@ -170,7 +170,7 @@ function buildAtomicWriteTempPath(targetPath) {
|
|
|
170
170
|
return path.join(dir, `.${base}.${process.pid}.${randomUUID()}.tmp`);
|
|
171
171
|
}
|
|
172
172
|
async function writeTempFileForAtomicReplace(params) {
|
|
173
|
-
const tempHandle = await
|
|
173
|
+
const tempHandle = await fsPromises.open(params.tempPath, OPEN_WRITE_CREATE_FLAGS, params.mode);
|
|
174
174
|
try {
|
|
175
175
|
if (typeof params.data === "string") await tempHandle.writeFile(params.data, params.encoding ?? "utf8");
|
|
176
176
|
else await tempHandle.writeFile(params.data);
|
|
@@ -180,7 +180,7 @@ async function writeTempFileForAtomicReplace(params) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async function verifyAtomicWriteResult(params) {
|
|
183
|
-
const rootWithSep = ensureTrailingSep(await
|
|
183
|
+
const rootWithSep = ensureTrailingSep(await fsPromises.realpath(params.rootDir));
|
|
184
184
|
const opened = await openVerifiedLocalFile(params.targetPath, { rejectHardlinks: true });
|
|
185
185
|
try {
|
|
186
186
|
if (!sameFileIdentity(opened.stat, params.expectedStat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
@@ -191,13 +191,13 @@ async function verifyAtomicWriteResult(params) {
|
|
|
191
191
|
}
|
|
192
192
|
async function resolveOpenedFileRealPathForHandle(handle, ioPath) {
|
|
193
193
|
try {
|
|
194
|
-
return await
|
|
194
|
+
return await fsPromises.realpath(ioPath);
|
|
195
195
|
} catch (err) {
|
|
196
196
|
if (!isNotFoundPathError(err)) throw err;
|
|
197
197
|
}
|
|
198
198
|
const fdCandidates = process.platform === "linux" ? [`/proc/self/fd/${handle.fd}`, `/dev/fd/${handle.fd}`] : process.platform === "win32" ? [] : [`/dev/fd/${handle.fd}`];
|
|
199
199
|
for (const fdPath of fdCandidates) try {
|
|
200
|
-
return await
|
|
200
|
+
return await fsPromises.realpath(fdPath);
|
|
201
201
|
} catch {}
|
|
202
202
|
throw new SafeOpenError("path-mismatch", "unable to resolve opened file path");
|
|
203
203
|
}
|
|
@@ -212,10 +212,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
212
212
|
} catch (err) {
|
|
213
213
|
throw new SafeOpenError("invalid-path", "path alias escape blocked", { cause: err });
|
|
214
214
|
}
|
|
215
|
-
if (params.mkdir !== false) await
|
|
215
|
+
if (params.mkdir !== false) await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
216
216
|
let ioPath = resolved;
|
|
217
217
|
try {
|
|
218
|
-
const resolvedRealPath = await
|
|
218
|
+
const resolvedRealPath = await fsPromises.realpath(resolved);
|
|
219
219
|
if (!isPathInside(rootWithSep, resolvedRealPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
220
220
|
ioPath = resolvedRealPath;
|
|
221
221
|
} catch (err) {
|
|
@@ -227,10 +227,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
227
227
|
let createdForWrite = false;
|
|
228
228
|
try {
|
|
229
229
|
try {
|
|
230
|
-
handle = await
|
|
230
|
+
handle = await fsPromises.open(ioPath, OPEN_WRITE_EXISTING_FLAGS, fileMode);
|
|
231
231
|
} catch (err) {
|
|
232
232
|
if (!isNotFoundPathError(err)) throw err;
|
|
233
|
-
handle = await
|
|
233
|
+
handle = await fsPromises.open(ioPath, OPEN_WRITE_CREATE_FLAGS, fileMode);
|
|
234
234
|
createdForWrite = true;
|
|
235
235
|
}
|
|
236
236
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
244
244
|
if (!stat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
245
245
|
if (stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
246
246
|
try {
|
|
247
|
-
const lstat = await
|
|
247
|
+
const lstat = await fsPromises.lstat(ioPath);
|
|
248
248
|
if (lstat.isSymbolicLink() || !lstat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
249
249
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
250
250
|
} catch (err) {
|
|
@@ -252,7 +252,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
252
252
|
}
|
|
253
253
|
const realPath = await resolveOpenedFileRealPathForHandle(handle, ioPath);
|
|
254
254
|
openedRealPath = realPath;
|
|
255
|
-
const realStat = await
|
|
255
|
+
const realStat = await fsPromises.stat(realPath);
|
|
256
256
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
257
257
|
if (realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
258
258
|
if (!isPathInside(rootWithSep, realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
@@ -267,7 +267,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
267
267
|
const cleanupCreatedPath = createdForWrite && err instanceof SafeOpenError;
|
|
268
268
|
const cleanupPath = openedRealPath ?? ioPath;
|
|
269
269
|
await handle.close().catch(() => {});
|
|
270
|
-
if (cleanupCreatedPath) await
|
|
270
|
+
if (cleanupCreatedPath) await fsPromises.rm(cleanupPath, { force: true }).catch(() => {});
|
|
271
271
|
throw err;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -290,7 +290,7 @@ async function writeFileWithinRoot(params) {
|
|
|
290
290
|
encoding: params.encoding,
|
|
291
291
|
mode: targetMode || 384
|
|
292
292
|
});
|
|
293
|
-
await
|
|
293
|
+
await fsPromises.rename(tempPath, destinationPath);
|
|
294
294
|
tempPath = null;
|
|
295
295
|
try {
|
|
296
296
|
await verifyAtomicWriteResult({
|
|
@@ -303,7 +303,7 @@ async function writeFileWithinRoot(params) {
|
|
|
303
303
|
throw err;
|
|
304
304
|
}
|
|
305
305
|
} finally {
|
|
306
|
-
if (tempPath) await
|
|
306
|
+
if (tempPath) await fsPromises.rm(tempPath, { force: true }).catch(() => {});
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
async function copyFileWithinRoot(params) {
|
|
@@ -331,7 +331,7 @@ async function copyFileWithinRoot(params) {
|
|
|
331
331
|
});
|
|
332
332
|
await pipeline(sourceStream, targetStream);
|
|
333
333
|
} catch (err) {
|
|
334
|
-
if (target?.createdForWrite) await
|
|
334
|
+
if (target?.createdForWrite) await fsPromises.rm(target.openedRealPath, { force: true }).catch(() => {});
|
|
335
335
|
throw err;
|
|
336
336
|
} finally {
|
|
337
337
|
if (!sourceClosedByStream) await source.handle.close().catch(() => {});
|