@symerian/symi 3.4.26 → 3.4.27
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/{agent-DR2UU-2F.js → agent-CiqPWDUd.js} +18 -18
- package/dist/{agent-DQvcs-ag.js → agent-DOOj3Gzb.js} +1 -1
- package/dist/{agent-scope-DOrZjOnW.js → agent-scope-Bnsyyeci.js} +18 -18
- package/dist/{agents-BewjExwR.js → agents-BBQfFoen.js} +2 -2
- package/dist/{agents.config-BJ9RIQlb.js → agents.config-Dm3oLpYK.js} +1 -1
- package/dist/{audit-bjakulrx.js → audit-BSX7fMfc.js} +20 -20
- package/dist/{auth-choice-BkSsm1pk.js → auth-choice-BYbTjWcs.js} +1 -1
- package/dist/{auth-choice-L6_DvGSb.js → auth-choice-rhBmet5i.js} +11 -11
- package/dist/{auth-profiles-Ce7R_25e.js → auth-profiles-D5nYBj_Z.js} +2 -2
- package/dist/{auth-token-DgRRSbEX.js → auth-token-CAV1oLQG.js} +3 -3
- package/dist/{banner-DoxWG0Rv.js → banner-C1qG5Rm9.js} +1 -1
- package/dist/{browser-cli-DdLN-X6g.js → browser-cli-De8jg4-F.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +4 -4
- package/dist/{call-BOE4s-tQ.js → call-CW8U1BPq.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CJOhNCrO.js → channel-options-BsXUgCMq.js} +1 -1
- package/dist/{channel-options-X5Mgr-oH.js → channel-options-CJD7jwYg.js} +1 -1
- package/dist/{channels-cli-Drn3JOc8.js → channels-cli-Bao4VNbH.js} +57 -57
- package/dist/{channels-cli-CBdy4UL6.js → channels-cli-Dxn5n9e4.js} +7 -7
- package/dist/{chrome-C_I81hbq.js → chrome-DPjznJQ-.js} +7 -7
- package/dist/{chrome-xlyBE8q3.js → chrome-pFBxO63W.js} +9 -9
- package/dist/{cli-DJA_Gm3_.js → cli-CrhLSz3t.js} +4 -4
- package/dist/{cli-S62cMO1-.js → cli-WP38F9C5.js} +45 -45
- package/dist/{client-iv2QpsT1.js → client-T5P9umyG.js} +4 -4
- package/dist/{command-registry-CZrQWdR_.js → command-registry-DoXcG7FZ.js} +10 -10
- package/dist/{commands-registry-VfAQOVZO.js → commands-registry-BjcGLk4v.js} +1 -1
- package/dist/{completion-cli-DvaCHwGr.js → completion-cli-C0SXi7ya.js} +12 -12
- package/dist/{completion-cli-CPiZTObN.js → completion-cli-DaWi3_ux.js} +2 -2
- package/dist/{config-D7SS4vdk.js → config-D-PYSlE8.js} +2 -2
- package/dist/{config-cli-CiTMrunf.js → config-cli-DS67KtKf.js} +4 -4
- package/dist/{config-cli-Dhb3ZuZ6.js → config-cli-DXKm0pS5.js} +1 -1
- package/dist/{config-guard-BGAQzX2K.js → config-guard-xLTTFANi.js} +6 -6
- package/dist/{config-validation-COcIIMNe.js → config-validation-C4wGq3rz.js} +1 -1
- package/dist/{configure-DlLBbvyP.js → configure-B99YJJb0.js} +14 -14
- package/dist/{configure-CzAszDyQ.js → configure-CzO4_jJJ.js} +2 -2
- package/dist/{consolidate-DI20-Wtn.js → consolidate-BB4BOQIN.js} +6 -6
- package/dist/{control-service-BgfKoTwJ.js → control-service-y53w3Jzy.js} +4 -4
- package/dist/{control-ui-assets-DuDhl0co.js → control-ui-assets-Dryy7mCE.js} +1 -1
- package/dist/{cron-cli-Bg9CiOss.js → cron-cli-BMblAFRK.js} +7 -7
- package/dist/{daemon-cli-wRBPfyuU.js → daemon-cli-BJGNf5qV.js} +11 -11
- package/dist/{daemon-runtime-tZgIbDPz.js → daemon-runtime-u4p9jsEF.js} +10 -10
- package/dist/{deliver-DB4v0Tyl.js → deliver-C79-Umbk.js} +2 -2
- package/dist/{deliver-DyO3QD8O.js → deliver-DTRkeYm3.js} +4 -4
- package/dist/{deps-BlmO-MfQ.js → deps-UA1UBhl7.js} +1 -1
- package/dist/{devices-cli-IoQV2hfa.js → devices-cli-wsTs-nti.js} +6 -6
- package/dist/{diagnostics-tVJR9V0_.js → diagnostics-oW0LBW-t.js} +5 -5
- package/dist/{directory-cli-Bfy_ejW2.js → directory-cli-D8As6t8Z.js} +3 -3
- package/dist/{dm-policy-shared-CBlUyDSX.js → dm-policy-shared-DRJrFKqJ.js} +1 -1
- package/dist/{dns-cli-DzKaV6NZ.js → dns-cli-BKOTBn3n.js} +3 -3
- package/dist/{docs-cli-a90_8wuN.js → docs-cli-D5j7Nmz2.js} +1 -1
- package/dist/{doctor-completion-CBs1R4s0.js → doctor-completion-B1YCzbvi.js} +1 -1
- package/dist/{doctor-completion-C4vmp9I7.js → doctor-completion-mev5PRjN.js} +2 -2
- package/dist/{doctor-config-flow-30ZEvATb.js → doctor-config-flow-Uv41seME.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-D107mxRX.js → exec-approvals-cli-B4ry9s5r.js} +13 -13
- package/dist/extensionAPI.js +2 -2
- package/dist/{file-lock-BVUYnlQv.js → file-lock-2AecMjCa.js} +8 -8
- package/dist/{fs-safe-BdejYjW8.js → fs-safe-B0Is-oLk.js} +6 -6
- package/dist/{gateway-cli-D6v-ok73.js → gateway-cli-B3JVj_dv.js} +98 -98
- package/dist/{gateway-cli-q8Mf3jQH.js → gateway-cli-Chnp6icp.js} +10 -10
- package/dist/{gateway-rpc-rNjNMA6y.js → gateway-rpc-CLzM6ugo.js} +1 -1
- package/dist/{glass-ui-ws-CC93azF2.js → glass-ui-ws--GjxFRyX.js} +67 -67
- package/dist/{glass-ui-ws-CIm7LZ8W.js → glass-ui-ws-5o8dvEZO.js} +8 -8
- package/dist/{health-B92I0vwb.js → health-D2th0Ip6.js} +4 -4
- package/dist/{hooks-cli-DfFHpfYB.js → hooks-cli-B4Nvp9AV.js} +59 -59
- package/dist/{hooks-cli-DCVYSJ8i.js → hooks-cli-B_sZth4r.js} +5 -5
- package/dist/{image-ops-L70xVnpG.js → image-ops-BzCBIakN.js} +10 -10
- package/dist/index.js +52 -52
- package/dist/{inspect-CXsOujVt.js → inspect-U3g9owQ8.js} +4 -4
- package/dist/{install-safe-path-D5gi-nfu.js → install-safe-path-BwMMOh9z.js} +11 -11
- package/dist/{installs-DF_LhGX6.js → installs-vdi1BESF.js} +10 -10
- package/dist/{internal-DVCddhhN.js → internal-csqU78gW.js} +9 -9
- package/dist/{lifecycle-core-Bvdl2ShM.js → lifecycle-core-BfmNlC-k.js} +5 -5
- package/dist/llm-slug-generator.js +4 -4
- package/dist/{local-roots-CgDCgCuM.js → local-roots-2Jb79HZ8.js} +1 -1
- package/dist/{logs-cli-DvPMH-Ur.js → logs-cli-COZzdFu6.js} +7 -7
- package/dist/{manager-CVP2spyx.js → manager-BfbQb9qM.js} +1 -1
- package/dist/{manager-Dz4nKG33.js → manager-Bryhc0Ip.js} +1 -1
- package/dist/{manager-Dj2dVPGR.js → manager-C5FGNRjL.js} +1 -1
- package/dist/{manager-C1bLWQJb.js → manager-DyYRwHZt.js} +15 -15
- package/dist/{memory-BGLXu8Hn.js → memory-Cypj1lBQ.js} +2 -2
- package/dist/{memory-D_CuTCAW.js → memory-DgDnTEcB.js} +5 -5
- package/dist/{memory-cli-XxOC0_-M.js → memory-cli-CfJkD7mO.js} +12 -12
- package/dist/{memory-cli-DLyBqCnp.js → memory-cli-DB7UIev4.js} +2 -2
- package/dist/{model-DsMHOvMn.js → model-DbILYCfo.js} +1 -1
- package/dist/{model-auth-1EAQvYRv.js → model-auth-_C07_3Yr.js} +2 -2
- package/dist/{model-catalog-DQTmHZK7.js → model-catalog-CeqDEWGz.js} +3 -3
- package/dist/{model-picker-D4TY_tPx.js → model-picker-C_f6MALt.js} +5 -5
- package/dist/{model-selection-7wdmO-Iw.js → model-selection-CCTzD29o.js} +1 -1
- package/dist/{models-Bf57T7rZ.js → models-Bpqeds64.js} +2 -2
- package/dist/{models-cli-C7UZtCdE.js → models-cli-BUWfj5iJ.js} +55 -55
- package/dist/{models-cli-BoUVPeOA.js → models-cli-Bc47WFhD.js} +6 -6
- package/dist/{models-config-CRnTzdFs.js → models-config-Dp5-tBqs.js} +8 -8
- package/dist/{node-cli-DBa3SOQb.js → node-cli-BdjmGI32.js} +27 -27
- package/dist/{node-service-CrDVFWQl.js → node-service-DphkTjBV.js} +1 -1
- package/dist/{nodes-cli-Dx8iwcda.js → nodes-cli-BChJzcKY.js} +10 -10
- package/dist/{nodes-screen-De9ma6e1.js → nodes-screen-Cp5QP3ET.js} +4 -4
- package/dist/{npm-registry-spec-YMWTMnm_.js → npm-registry-spec-CqVgiBCf.js} +9 -9
- package/dist/{onboard-CvspL8de.js → onboard-BbfERyKU.js} +1 -1
- package/dist/{onboard-CvXaQ6g7.js → onboard-C0nMMiiS.js} +15 -15
- package/dist/{onboard-channels-MlbB9sk1.js → onboard-channels-CMp9YXHC.js} +1 -1
- package/dist/{onboard-channels-Bf0N23cr.js → onboard-channels-CmsfVut5.js} +4 -4
- package/dist/{onboard-custom-BrtjWDlX.js → onboard-custom-BfHczxx0.js} +3 -3
- package/dist/{onboard-helpers-DP7FgSbE.js → onboard-helpers-OB_xKQze.js} +8 -8
- package/dist/{onboard-hooks-CtIRdncr.js → onboard-hooks-BA22KYCG.js} +1 -1
- package/dist/{onboard-remote-KlZ04Ycj.js → onboard-remote-Dv2Uz8Ru.js} +1 -1
- package/dist/{onboard-skills-C2YVZLtY.js → onboard-skills-BzxofI4T.js} +3 -3
- package/dist/{onboarding-Bkqm3GYG.js → onboarding-DoYMfCjS.js} +3 -3
- package/dist/{onboarding-Dhjsa9Kl.js → onboarding-vgZFhH5N.js} +12 -12
- package/dist/{onboarding.finalize-DEnbT-08.js → onboarding.finalize-BYHDzz2i.js} +31 -31
- package/dist/{onboarding.finalize-Dj2kTz2P.js → onboarding.finalize-Dj0xG8pk.js} +4 -4
- package/dist/{onboarding.gateway-config-1PP2Esxt.js → onboarding.gateway-config-CDRLfIZM.js} +8 -8
- package/dist/{openai-model-default-XudD4Xik.js → openai-model-default-Dl21Ivjc.js} +2 -2
- package/dist/{pairing-cli-NDavTm1_.js → pairing-cli-C2_Zobhz.js} +5 -5
- package/dist/{pairing-store-BNhJOnWn.js → pairing-store-Be-ZQK87.js} +1 -1
- package/dist/{pairing-token-Dcy37-4s.js → pairing-token-B703A1U3.js} +7 -7
- package/dist/{paths-DObzwe08.js → paths-BWqg8NZT.js} +1 -1
- package/dist/{pi-auth-json-Db8XJVGL.js → pi-auth-json-D-vdh-nY.js} +6 -6
- package/dist/{pi-embedded-DisxTf9Y.js → pi-embedded-C7mJzGIf.js} +12 -4
- package/dist/{pi-embedded-helpers-x7n6pMgT.js → pi-embedded-helpers-y3vJmW6T.js} +6 -6
- package/dist/{pi-tools.policy-J58A7qFU.js → pi-tools.policy-ji-L-Mpv.js} +3 -3
- package/dist/{plugin-auto-enable-B_lNp6yM.js → plugin-auto-enable-Ctbn2w4Q.js} +1 -1
- package/dist/{plugin-registry-D-hgQT7P.js → plugin-registry-D2ZbwBU_.js} +3 -3
- package/dist/{plugin-registry-BTkbl0FJ.js → plugin-registry-pKaJ4ltN.js} +1 -1
- package/dist/{plugins-cli-Bh5QiPdZ.js → plugins-cli-CoHiV4BX.js} +54 -54
- package/dist/{plugins-cli-kV-uO1kp.js → plugins-cli-uo8lcB7v.js} +5 -5
- package/dist/{ports-gxLM5ahL.js → ports-CB_Iu83U.js} +2 -2
- package/dist/{ports-C3ZSkRGq.js → ports-ukrEAkOP.js} +1 -1
- package/dist/{program-context-DFJyoCC0.js → program-context-B1ZbQmLL.js} +38 -38
- package/dist/{program-CbGjDDWP.js → program-rzYjZKRz.js} +10 -10
- package/dist/{prompt-select-styled-DaVdKaBp.js → prompt-select-styled-CX0v66wx.js} +38 -38
- package/dist/{prompt-select-styled-p9o4e4m6.js → prompt-select-styled-F6P-rvFI.js} +4 -4
- package/dist/{provider-auth-helpers-CoGyeok2.js → provider-auth-helpers-Ck98bkHV.js} +1 -1
- package/dist/{provider-auth-helpers-BCiBe4Q9.js → provider-auth-helpers-_jn9PngO.js} +6 -6
- package/dist/{push-apns-BorKE_Qo.js → push-apns-BtMtpzEm.js} +1 -1
- package/dist/{push-apns-DzCR9bci.js → push-apns-CmeoBcIQ.js} +4 -4
- package/dist/{pw-ai-8E0uhtHT.js → pw-ai-CQJsGI1b.js} +7 -7
- package/dist/{pw-ai-Cx-Ko_FL.js → pw-ai-D2pEVS5n.js} +1 -1
- package/dist/{qmd-manager-qV_04VKG.js → qmd-manager-DawTY2mB.js} +19 -19
- package/dist/{qr-cli-Vo1XL6B2.js → qr-cli-DKowtQcM.js} +3 -3
- package/dist/{register.agent-CaN-g4uZ.js → register.agent-0hWBZXD7.js} +67 -67
- package/dist/{register.agent-DydJFXJP.js → register.agent-_UqSBmt5.js} +9 -9
- package/dist/{register.configure-DAy2cE8-.js → register.configure-CgQ6sqtQ.js} +70 -70
- package/dist/{register.configure-BVe4hnaS.js → register.configure-KrTtvKSp.js} +8 -8
- package/dist/{register.maintenance-dg4F8WtF.js → register.maintenance-DDSfzFoo.js} +9 -9
- package/dist/{register.maintenance-DOPFPjF1.js → register.maintenance-DjZeknO6.js} +67 -67
- package/dist/{register.message-BcVCnsvF.js → register.message-DSwwDcGi.js} +5 -5
- package/dist/{register.message-C142fUnJ.js → register.message-DTZJ5OiL.js} +47 -47
- package/dist/{register.onboard-JdqDBt_q.js → register.onboard-B8k5phG7.js} +25 -25
- package/dist/{register.onboard-rAsjY0XL.js → register.onboard-BToIZTIS.js} +2 -2
- package/dist/{register.setup-D1aL4OSn.js → register.setup-1fexz2oW.js} +28 -28
- package/dist/{register.setup--uV2P6Rv.js → register.setup-BdUewOo1.js} +2 -2
- package/dist/{register.status-health-sessions-78J4b8E3.js → register.status-health-sessions-0RyA2cXf.js} +41 -41
- package/dist/{register.status-health-sessions-CsaUl0vE.js → register.status-health-sessions-eBaeXIvo.js} +3 -3
- package/dist/{register.subclis-BVReTdEZ.js → register.subclis-tX3BslaT.js} +9 -9
- package/dist/{replies-DzsYQ8Md.js → replies-D3cffD5N.js} +1 -1
- package/dist/{reply-prefix-BFNeXT65.js → reply-prefix-CtZtkTJK.js} +1 -1
- package/dist/{resolve-route-Zww0Y-HJ.js → resolve-route-B0i_o4Fo.js} +1 -1
- package/dist/{routes-DIFuU49J.js → routes-zpAUwtCG.js} +10 -10
- package/dist/{rpc-DfaVxm4P.js → rpc-DhsDKVo-.js} +1 -1
- package/dist/{run-main-Crj9RFFj.js → run-main-DIl_Kl0B.js} +17 -17
- package/dist/{sandbox-DR_uvPm8.js → sandbox-DQCaejcD.js} +18 -18
- package/dist/{sandbox-cli-we8HwKzB.js → sandbox-cli-CbvyZs1z.js} +13 -13
- package/dist/{security-cli-B3nmOCuA.js → security-cli-CbJxNYZx.js} +29 -29
- package/dist/{send-Cxu1tl56.js → send-QscYkkNh.js} +7 -7
- package/dist/{server-context-DZK_rfwz.js → server-context-CXVq7gZ7.js} +5 -5
- package/dist/{server-methods-BR_LQLUr.js → server-methods-CpFBGxWI.js} +6 -6
- package/dist/{server-methods-qP6jEpBJ.js → server-methods-DPxjPGr0.js} +58 -58
- package/dist/{server-node-events-C9CEaVgd.js → server-node-events-2SUW10k3.js} +6 -6
- package/dist/{server-node-events-BLrBQ1Ix.js → server-node-events-B_BPbi7z.js} +48 -48
- package/dist/{service-CyEDtYLq.js → service-Cm4-5AH9.js} +15 -15
- package/dist/{session-dirs-CXErIzZq.js → session-dirs-BypCYFN3.js} +2 -2
- package/dist/{session-utils-BZnPW904.js → session-utils-lXjJoBxe.js} +14 -14
- package/dist/{sessions-optZRB57.js → sessions-aSo5jsmg.js} +10 -10
- package/dist/{shared-DJFwvlUi.js → shared-BI-gOZsD.js} +3 -3
- package/dist/{shared-Ctok0Bcs.js → shared-DDX_4ypC.js} +1 -1
- package/dist/{skill-commands-yPirQFOb.js → skill-commands-C9WuAfb2.js} +4 -4
- package/dist/{skill-scanner-BBwesm0w.js → skill-scanner-CFqMkfZW.js} +5 -5
- package/dist/{skills-BwDmcZdt.js → skills-CYcBtLGH.js} +4 -4
- package/dist/{skills-cli-gC5ETdly.js → skills-cli-BgyaAQoj.js} +7 -7
- package/dist/{skills-install-CLN_Ks5r.js → skills-install-MGsx6q5Z.js} +3 -3
- package/dist/{skills-remote-bz71Bstn.js → skills-remote-BcRQTDsZ.js} +3 -3
- package/dist/{skills-status-iltfI_bO.js → skills-status-CbSdFlvm.js} +1 -1
- package/dist/{sqlite-Cod7C5ba.js → sqlite-BpogPlQW.js} +5 -5
- package/dist/{status-ORM-gYB7.js → status-BVYDUlnp.js} +1 -1
- package/dist/{status-DCL7G3Ib.js → status-C-r9JpJf.js} +23 -23
- package/dist/{status-COihHYJZ.js → status-DIJvpgEm.js} +3 -3
- package/dist/{status-DTQT3d18.js → status-DbNNmkNB.js} +1 -1
- package/dist/{status.update-F4CbQCxF.js → status.update-EyslEZkn.js} +3 -3
- package/dist/{subagent-registry-8gdHiRIg.js → subagent-registry-DWemyjbN.js} +12 -4
- package/dist/{symi-root-BQ0IpoW2.js → symi-root-DeCVdZB4.js} +2 -2
- package/dist/{synthesis-CH82c52O.js → synthesis-BdTiornP.js} +2 -2
- package/dist/{synthesis-SpZQv_zc.js → synthesis-BxYzOZUA.js} +4 -4
- package/dist/{synthesis-CppYEB8e.js → synthesis-C7RlvHEs.js} +45 -45
- package/dist/{synthesis-RrXFr-nJ.js → synthesis-DQ7Y6OE0.js} +4 -4
- package/dist/{system-cli-DNR3YCgN.js → system-cli-DgOvK_kU.js} +7 -7
- package/dist/{systemd-DRpQb_L1.js → systemd-B2nTr3Y2.js} +5 -5
- package/dist/{systemd-hints-DR4u43WA.js → systemd-hints-DtOWJT_2.js} +6 -6
- package/dist/{systemd-linger-BQQl5RXN.js → systemd-linger-CWi5l8Nt.js} +1 -1
- package/dist/{tui-BADAjgA5.js → tui-D7ms_iQ4.js} +7 -7
- package/dist/{tui-cli-3ZepuEPv.js → tui-cli-DNvAqIYN.js} +19 -19
- package/dist/{unified-runner-DOYB1_-K.js → unified-runner-BIUJm_Iv.js} +110 -102
- package/dist/{unified-runner-97bDoU4e.js → unified-runner-DPWNhQQA.js} +19 -11
- package/dist/{update-check-CxBGAP1E.js → update-check-CduiCxPo.js} +5 -5
- package/dist/{update-cli-CKoIGU3l.js → update-cli-BM-A3cIZ.js} +9 -9
- package/dist/{update-cli-BTkGps8b.js → update-cli-GKXF83cS.js} +77 -77
- package/dist/{update-CWEjB8uS.js → update-pddgyV7i.js} +3 -3
- package/dist/{update-runner-C4Uy75eP.js → update-runner-BMYqz1dl.js} +15 -15
- package/dist/{webhooks-cli-Dp-pp0Sf.js → webhooks-cli-BPPmnDCj.js} +4 -4
- package/dist/{with-timeout-CGWq0-d5.js → with-timeout-D1qzvPE0.js} +1 -1
- package/dist/{workspace-dirs-jKFQf7of.js → workspace-dirs-DCICLTHx.js} +1 -1
- package/dist/{wsl-DMA0sTvh.js → wsl-Sed675xh.js} +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Mt as prepareAgentRun, Tn as composeTurnMiddleware, _ as withContextUsageWarning, b as buildAgentTurnParams, jt as applyTemplate, on as installUnhandledRejectionHandler, t as runAgentTurn, ut as resolveCommitHash, v as withContextOverflowRecovery, x as prepareReplyTurn } from "./unified-runner-
|
|
2
|
+
import { Mt as prepareAgentRun, Tn as composeTurnMiddleware, _ as withContextUsageWarning, b as buildAgentTurnParams, jt as applyTemplate, on as installUnhandledRejectionHandler, t as runAgentTurn, ut as resolveCommitHash, v as withContextOverflowRecovery, x as prepareReplyTurn } from "./unified-runner-BIUJm_Iv.js";
|
|
3
3
|
import { A as isRich, E as setVerbose, j as theme } from "./registry-Sbac4a4z.js";
|
|
4
4
|
import "./paths-By0XjHBk.js";
|
|
5
5
|
import { c as escapeRegExp, d as normalizeE164 } from "./utils-CTPsqyE_.js";
|
|
6
6
|
import { f as defaultRuntime, r as enableConsoleCapture, u as visibleWidth } from "./subsystem-CHbO_DkH.js";
|
|
7
|
-
import "./auth-profiles-
|
|
7
|
+
import "./auth-profiles-D5nYBj_Z.js";
|
|
8
8
|
import { n as resolveCliName, t as replaceCliName } from "./cli-name-CzMV-gJF.js";
|
|
9
9
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
10
|
-
import "./agent-scope-
|
|
11
|
-
import "./model-selection-
|
|
12
|
-
import "./file-lock-
|
|
10
|
+
import "./agent-scope-Bnsyyeci.js";
|
|
11
|
+
import "./model-selection-CCTzD29o.js";
|
|
12
|
+
import "./file-lock-2AecMjCa.js";
|
|
13
13
|
import "./agent-paths-BbZSGrUA.js";
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import { F as loadDotEnv, N as VERSION, i as loadConfig } from "./config-
|
|
14
|
+
import "./pi-embedded-helpers-y3vJmW6T.js";
|
|
15
|
+
import { F as loadDotEnv, N as VERSION, i as loadConfig } from "./config-D-PYSlE8.js";
|
|
16
16
|
import "./boolean-CbZoNRMn.js";
|
|
17
17
|
import { r as normalizeEnv, t as isTruthyEnvValue } from "./env-BRnPI9sO.js";
|
|
18
18
|
import "./shell-env-Dc3iU7HK.js";
|
|
19
19
|
import "./manifest-registry-D1MLZEjS.js";
|
|
20
|
-
import "./sandbox-
|
|
21
|
-
import "./chrome-
|
|
20
|
+
import "./sandbox-DQCaejcD.js";
|
|
21
|
+
import "./chrome-pFBxO63W.js";
|
|
22
22
|
import { l as ensureBinary, u as promptYesNo } from "./tailscale-DpKBMIvx.js";
|
|
23
23
|
import "./auth-Bkx-QuRN.js";
|
|
24
|
-
import "./server-context-
|
|
24
|
+
import "./server-context-CXVq7gZ7.js";
|
|
25
25
|
import "./frontmatter-B_jqcova.js";
|
|
26
|
-
import "./skills-
|
|
27
|
-
import "./routes-
|
|
26
|
+
import "./skills-CYcBtLGH.js";
|
|
27
|
+
import "./routes-zpAUwtCG.js";
|
|
28
28
|
import "./redact-B3O-RBO1.js";
|
|
29
29
|
import { r as formatUncaughtError } from "./errors-bI7Tdx75.js";
|
|
30
|
-
import "./fs-safe-
|
|
31
|
-
import "./paths-
|
|
30
|
+
import "./fs-safe-B0Is-oLk.js";
|
|
31
|
+
import "./paths-BWqg8NZT.js";
|
|
32
32
|
import "./ssrf-DOZRI5XH.js";
|
|
33
|
-
import "./image-ops-
|
|
34
|
-
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-
|
|
33
|
+
import "./image-ops-BzCBIakN.js";
|
|
34
|
+
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-CB_Iu83U.js";
|
|
35
35
|
import "./trash-_YhavPQI.js";
|
|
36
|
-
import { A as deriveSessionKey, j as resolveSessionKey, l as saveSessionStore, o as loadSessionStore } from "./sessions-
|
|
36
|
+
import { A as deriveSessionKey, j as resolveSessionKey, l as saveSessionStore, o as loadSessionStore } from "./sessions-aSo5jsmg.js";
|
|
37
37
|
import "./dock-hF45sewN.js";
|
|
38
38
|
import "./message-channel-DgjXWzf-.js";
|
|
39
39
|
import "./plugins-CF5skkHh.js";
|
|
40
|
-
import "./send-
|
|
40
|
+
import "./send-QscYkkNh.js";
|
|
41
41
|
import { c as resolveStorePath } from "./paths-BtvQ7JvU.js";
|
|
42
42
|
import "./thinking-COroyVA5.js";
|
|
43
43
|
import "./tokens-0yh2UnJq.js";
|
|
44
|
-
import "./deliver-
|
|
44
|
+
import "./deliver-C79-Umbk.js";
|
|
45
45
|
import "./diagnostic-DbT9t0Sh.js";
|
|
46
46
|
import "./diagnostic-session-state-DnkpMfCl.js";
|
|
47
|
-
import "./model-auth-
|
|
47
|
+
import "./model-auth-_C07_3Yr.js";
|
|
48
48
|
import "./github-copilot-token-D-FdDfee.js";
|
|
49
|
-
import "./models-config-
|
|
50
|
-
import "./pi-auth-json-
|
|
49
|
+
import "./models-config-Dp5-tBqs.js";
|
|
50
|
+
import "./pi-auth-json-D-vdh-nY.js";
|
|
51
51
|
import "./session-cost-usage-D6Ocwmq1.js";
|
|
52
|
-
import "./session-utils-
|
|
53
|
-
import "./with-timeout-
|
|
54
|
-
import "./reply-prefix-
|
|
55
|
-
import "./memory-
|
|
56
|
-
import "./manager-
|
|
57
|
-
import "./sqlite-
|
|
52
|
+
import "./session-utils-lXjJoBxe.js";
|
|
53
|
+
import "./with-timeout-D1qzvPE0.js";
|
|
54
|
+
import "./reply-prefix-CtZtkTJK.js";
|
|
55
|
+
import "./memory-DgDnTEcB.js";
|
|
56
|
+
import "./manager-DyYRwHZt.js";
|
|
57
|
+
import "./sqlite-BpogPlQW.js";
|
|
58
58
|
import "./chunk-BxfKjCUx.js";
|
|
59
59
|
import "./markdown-tables-CS1Tvb3z.js";
|
|
60
60
|
import "./fetch-guard-JHxT9355.js";
|
|
61
|
-
import "./local-roots-
|
|
61
|
+
import "./local-roots-2Jb79HZ8.js";
|
|
62
62
|
import "./commands-DUzLGgEZ.js";
|
|
63
|
-
import "./commands-registry-
|
|
64
|
-
import "./client-
|
|
65
|
-
import "./call-
|
|
66
|
-
import "./pairing-token-
|
|
63
|
+
import "./commands-registry-BjcGLk4v.js";
|
|
64
|
+
import "./client-T5P9umyG.js";
|
|
65
|
+
import "./call-CW8U1BPq.js";
|
|
66
|
+
import "./pairing-token-B703A1U3.js";
|
|
67
67
|
import "./tool-display-DFOL6UQ9.js";
|
|
68
|
-
import "./skills-remote-
|
|
69
|
-
import "./workspace-dirs-
|
|
68
|
+
import "./skills-remote-BcRQTDsZ.js";
|
|
69
|
+
import "./workspace-dirs-DCICLTHx.js";
|
|
70
70
|
import "./pi-model-discovery-ClQLvlCW.js";
|
|
71
|
-
import "./model-catalog-
|
|
72
|
-
import "./skill-commands-
|
|
73
|
-
import "./pairing-store-
|
|
71
|
+
import "./model-catalog-CeqDEWGz.js";
|
|
72
|
+
import "./skill-commands-C9WuAfb2.js";
|
|
73
|
+
import "./pairing-store-Be-ZQK87.js";
|
|
74
74
|
import "./exec-approvals-DioSaIeH.js";
|
|
75
|
-
import "./nodes-screen-
|
|
76
|
-
import "./control-service-
|
|
75
|
+
import "./nodes-screen-Cp5QP3ET.js";
|
|
76
|
+
import "./control-service-y53w3Jzy.js";
|
|
77
77
|
import "./stagger-DUVGiPYV.js";
|
|
78
78
|
import "./channel-selection-DF4bza2Q.js";
|
|
79
79
|
import "./delivery-queue-RUd4NhRw.js";
|
|
80
80
|
import "./bindings-CLS_owm_.js";
|
|
81
|
-
import "./resolve-route-
|
|
81
|
+
import "./resolve-route-B0i_o4Fo.js";
|
|
82
82
|
import { t as formatDocsLink } from "./links-TQwptN6q.js";
|
|
83
83
|
import "./cli-utils-tNdOjVQI.js";
|
|
84
84
|
import "./help-format-CPT6NY3h.js";
|
|
85
85
|
import "./progress-HNhsbm0E.js";
|
|
86
|
-
import "./memory-cli-
|
|
86
|
+
import "./memory-cli-CfJkD7mO.js";
|
|
87
87
|
import "./logging-Czh4x_NQ.js";
|
|
88
|
-
import "./replies-
|
|
89
|
-
import "./pi-tools.policy-
|
|
90
|
-
import "./model-
|
|
91
|
-
import { t as createDefaultDeps } from "./deps-
|
|
88
|
+
import "./replies-D3cffD5N.js";
|
|
89
|
+
import "./pi-tools.policy-ji-L-Mpv.js";
|
|
90
|
+
import "./model-DbILYCfo.js";
|
|
91
|
+
import { t as createDefaultDeps } from "./deps-UA1UBhl7.js";
|
|
92
92
|
import { t as ensureSymiCliOnPath } from "./path-env-DV7jtyFi.js";
|
|
93
93
|
import { t as assertSupportedRuntime } from "./runtime-guard-DfRLODeV.js";
|
|
94
|
-
import "./ports-
|
|
94
|
+
import "./ports-ukrEAkOP.js";
|
|
95
95
|
import { a as hasFlag, i as getVerboseFlag, n as getCommandPath, o as hasHelpOrVersion, s as hasRootVersionAlias } from "./argv-BH07Qj4L.js";
|
|
96
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
96
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-B1ZbQmLL.js";
|
|
97
97
|
import "./catalog-DsC3JTw1.js";
|
|
98
|
-
import "./plugin-registry-
|
|
99
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
98
|
+
import "./plugin-registry-D2ZbwBU_.js";
|
|
99
|
+
import { n as resolveCliChannelOptions } from "./channel-options-BsXUgCMq.js";
|
|
100
100
|
import process$1 from "node:process";
|
|
101
101
|
import { fileURLToPath } from "node:url";
|
|
102
102
|
import path from "node:path";
|
|
@@ -556,13 +556,13 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
556
556
|
setVerbose(verbose);
|
|
557
557
|
if (!verbose) process.env.NODE_NO_WARNINGS ??= "1";
|
|
558
558
|
if (commandPath[0] === "doctor" || commandPath[0] === "completion") return;
|
|
559
|
-
const { ensureConfigReady } = await import("./config-guard-
|
|
559
|
+
const { ensureConfigReady } = await import("./config-guard-xLTTFANi.js");
|
|
560
560
|
await ensureConfigReady({
|
|
561
561
|
runtime: defaultRuntime,
|
|
562
562
|
commandPath
|
|
563
563
|
});
|
|
564
564
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
565
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
565
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-D2ZbwBU_.js").then((n) => n.n);
|
|
566
566
|
ensurePluginRegistryLoaded();
|
|
567
567
|
}
|
|
568
568
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, n as GATEWAY_SERVICE_KIND, r as GATEWAY_SERVICE_MARKER } from "./constants-ChnKXZKi.js";
|
|
2
|
-
import { n as execSchtasks } from "./service-
|
|
2
|
+
import { n as execSchtasks } from "./service-Cm4-5AH9.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/daemon/inspect.ts
|
|
7
7
|
const EXTRA_MARKERS = [
|
|
@@ -76,14 +76,14 @@ function isLegacyLabel(label) {
|
|
|
76
76
|
}
|
|
77
77
|
async function readDirEntries(dir) {
|
|
78
78
|
try {
|
|
79
|
-
return await
|
|
79
|
+
return await fsPromises.readdir(dir);
|
|
80
80
|
} catch {
|
|
81
81
|
return [];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
async function readUtf8File(filePath) {
|
|
85
85
|
try {
|
|
86
|
-
return await
|
|
86
|
+
return await fsPromises.readFile(filePath, "utf8");
|
|
87
87
|
} catch {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
@@ -2,7 +2,7 @@ import { n as resolveSafeBaseDir } from "./path-safety-C0C4YlKw.js";
|
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createWriteStream } from "node:fs";
|
|
5
|
-
import
|
|
5
|
+
import fsPromises from "node:fs/promises";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
7
7
|
import { Readable, Transform } from "node:stream";
|
|
8
8
|
import JSZip from "jszip";
|
|
@@ -69,9 +69,9 @@ function resolveArchiveKind(filePath) {
|
|
|
69
69
|
async function resolvePackedRootDir(extractDir) {
|
|
70
70
|
const direct = path.join(extractDir, "package");
|
|
71
71
|
try {
|
|
72
|
-
if ((await
|
|
72
|
+
if ((await fsPromises.stat(direct)).isDirectory()) return direct;
|
|
73
73
|
} catch {}
|
|
74
|
-
const dirs = (await
|
|
74
|
+
const dirs = (await fsPromises.readdir(extractDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
75
75
|
if (dirs.length !== 1) throw new Error(`unexpected archive layout (dirs: ${dirs.join(", ")})`);
|
|
76
76
|
const onlyDir = dirs[0];
|
|
77
77
|
if (!onlyDir) throw new Error("unexpected archive layout (no package dir found)");
|
|
@@ -144,8 +144,8 @@ async function readZipEntryStream(entry) {
|
|
|
144
144
|
}
|
|
145
145
|
async function extractZip(params) {
|
|
146
146
|
const limits = resolveExtractLimits(params.limits);
|
|
147
|
-
if ((await
|
|
148
|
-
const buffer = await
|
|
147
|
+
if ((await fsPromises.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
148
|
+
const buffer = await fsPromises.readFile(params.archivePath);
|
|
149
149
|
const zip = await JSZip.loadAsync(buffer);
|
|
150
150
|
const entries = Object.values(zip.files);
|
|
151
151
|
const strip = Math.max(0, Math.floor(params.stripComponents ?? 0));
|
|
@@ -162,21 +162,21 @@ async function extractZip(params) {
|
|
|
162
162
|
originalPath: entry.name
|
|
163
163
|
});
|
|
164
164
|
if (entry.dir) {
|
|
165
|
-
await
|
|
165
|
+
await fsPromises.mkdir(outPath, { recursive: true });
|
|
166
166
|
continue;
|
|
167
167
|
}
|
|
168
|
-
await
|
|
168
|
+
await fsPromises.mkdir(path.dirname(outPath), { recursive: true });
|
|
169
169
|
budget.startEntry();
|
|
170
170
|
const readable = await readZipEntryStream(entry);
|
|
171
171
|
try {
|
|
172
172
|
await pipeline(readable, createExtractBudgetTransform({ onChunkBytes: budget.addBytes }), createWriteStream(outPath));
|
|
173
173
|
} catch (err) {
|
|
174
|
-
await
|
|
174
|
+
await fsPromises.unlink(outPath).catch(() => void 0);
|
|
175
175
|
throw err;
|
|
176
176
|
}
|
|
177
177
|
if (typeof entry.unixPermissions === "number") {
|
|
178
178
|
const mode = entry.unixPermissions & 511;
|
|
179
|
-
if (mode !== 0) await
|
|
179
|
+
if (mode !== 0) await fsPromises.chmod(outPath, mode).catch(() => void 0);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -236,14 +236,14 @@ async function extractArchive(params) {
|
|
|
236
236
|
}
|
|
237
237
|
async function fileExists(filePath) {
|
|
238
238
|
try {
|
|
239
|
-
await
|
|
239
|
+
await fsPromises.stat(filePath);
|
|
240
240
|
return true;
|
|
241
241
|
} catch {
|
|
242
242
|
return false;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
async function readJsonFile(filePath) {
|
|
246
|
-
const raw = await
|
|
246
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
247
247
|
return JSON.parse(raw);
|
|
248
248
|
}
|
|
249
249
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { i as isPathInside, n as MANIFEST_KEY, r as extensionUsesSkippedScannerPath } from "./legacy-names-BQ9vKISY.js";
|
|
3
|
-
import { a as extractArchive, c as resolveArchiveKind, i as unscopedPackageName, l as resolvePackedRootDir, n as safeDirName, o as fileExists, s as readJsonFile, t as resolveSafeInstallDir } from "./install-safe-path-
|
|
4
|
-
import { a as installPackageDir, i as withTempDir, n as installFromNpmSpecArchive, r as resolveArchiveSourcePath, t as validateRegistryNpmSpec } from "./npm-registry-spec-
|
|
5
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
3
|
+
import { a as extractArchive, c as resolveArchiveKind, i as unscopedPackageName, l as resolvePackedRootDir, n as safeDirName, o as fileExists, s as readJsonFile, t as resolveSafeInstallDir } from "./install-safe-path-BwMMOh9z.js";
|
|
4
|
+
import { a as installPackageDir, i as withTempDir, n as installFromNpmSpecArchive, r as resolveArchiveSourcePath, t as validateRegistryNpmSpec } from "./npm-registry-spec-CqVgiBCf.js";
|
|
5
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-CFqMkfZW.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fsPromises from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region src/plugins/install.ts
|
|
10
10
|
const defaultLogger = {};
|
|
@@ -116,7 +116,7 @@ async function installPluginFromPackageDir(params) {
|
|
|
116
116
|
logger.warn?.(`Plugin "${pluginId}" code safety scan failed (${String(err)}). Installation continues; run "symi security audit --deep" after install.`);
|
|
117
117
|
}
|
|
118
118
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
119
|
-
await
|
|
119
|
+
await fsPromises.mkdir(extensionsDir, { recursive: true });
|
|
120
120
|
const targetDirResult = resolveSafeInstallDir({
|
|
121
121
|
baseDir: extensionsDir,
|
|
122
122
|
id: pluginId,
|
|
@@ -180,7 +180,7 @@ async function installPluginFromArchive(params) {
|
|
|
180
180
|
const archivePath = archivePathResult.path;
|
|
181
181
|
return await withTempDir("symi-plugin-", async (tmpDir) => {
|
|
182
182
|
const extractDir = path.join(tmpDir, "extract");
|
|
183
|
-
await
|
|
183
|
+
await fsPromises.mkdir(extractDir, { recursive: true });
|
|
184
184
|
logger.info?.(`Extracting ${archivePath}…`);
|
|
185
185
|
try {
|
|
186
186
|
await extractArchive({
|
|
@@ -221,7 +221,7 @@ async function installPluginFromDir(params) {
|
|
|
221
221
|
ok: false,
|
|
222
222
|
error: `directory not found: ${dirPath}`
|
|
223
223
|
};
|
|
224
|
-
if (!(await
|
|
224
|
+
if (!(await fsPromises.stat(dirPath)).isDirectory()) return {
|
|
225
225
|
ok: false,
|
|
226
226
|
error: `not a directory: ${dirPath}`
|
|
227
227
|
};
|
|
@@ -243,7 +243,7 @@ async function installPluginFromFile(params) {
|
|
|
243
243
|
error: `file not found: ${filePath}`
|
|
244
244
|
};
|
|
245
245
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
246
|
-
await
|
|
246
|
+
await fsPromises.mkdir(extensionsDir, { recursive: true });
|
|
247
247
|
const pluginId = path.basename(filePath, path.extname(filePath)) || "plugin";
|
|
248
248
|
const pluginIdError = validatePluginId(pluginId);
|
|
249
249
|
if (pluginIdError) return {
|
|
@@ -257,7 +257,7 @@ async function installPluginFromFile(params) {
|
|
|
257
257
|
};
|
|
258
258
|
if (dryRun) return buildFileInstallResult(pluginId, targetFile);
|
|
259
259
|
logger.info?.(`Installing to ${targetFile}…`);
|
|
260
|
-
await
|
|
260
|
+
await fsPromises.copyFile(filePath, targetFile);
|
|
261
261
|
return buildFileInstallResult(pluginId, targetFile);
|
|
262
262
|
}
|
|
263
263
|
async function installPluginFromNpmSpec(params) {
|
|
@@ -303,7 +303,7 @@ async function installPluginFromPath(params) {
|
|
|
303
303
|
ok: false,
|
|
304
304
|
error: `path not found: ${resolved}`
|
|
305
305
|
};
|
|
306
|
-
if ((await
|
|
306
|
+
if ((await fsPromises.stat(resolved)).isDirectory()) return await installPluginFromDir({
|
|
307
307
|
dirPath: resolved,
|
|
308
308
|
extensionsDir: params.extensionsDir,
|
|
309
309
|
timeoutMs: params.timeoutMs,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import fs from "node:fs";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/memory/fs-utils.ts
|
|
7
7
|
function isFileMissingError(err) {
|
|
@@ -10,7 +10,7 @@ function isFileMissingError(err) {
|
|
|
10
10
|
async function statRegularFile(absPath) {
|
|
11
11
|
let stat;
|
|
12
12
|
try {
|
|
13
|
-
stat = await
|
|
13
|
+
stat = await fsPromises.lstat(absPath);
|
|
14
14
|
} catch (err) {
|
|
15
15
|
if (isFileMissingError(err)) return { missing: true };
|
|
16
16
|
throw err;
|
|
@@ -86,7 +86,7 @@ function isMemoryPath(relPath) {
|
|
|
86
86
|
return normalized.startsWith("memory/");
|
|
87
87
|
}
|
|
88
88
|
async function walkDir(dir, files) {
|
|
89
|
-
const entries = await
|
|
89
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true });
|
|
90
90
|
for (const entry of entries) {
|
|
91
91
|
const full = path.join(dir, entry.name);
|
|
92
92
|
if (entry.isSymbolicLink()) continue;
|
|
@@ -106,7 +106,7 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
106
106
|
const memoryDir = path.join(workspaceDir, "memory");
|
|
107
107
|
const addMarkdownFile = async (absPath) => {
|
|
108
108
|
try {
|
|
109
|
-
const stat = await
|
|
109
|
+
const stat = await fsPromises.lstat(absPath);
|
|
110
110
|
if (stat.isSymbolicLink() || !stat.isFile()) return;
|
|
111
111
|
if (!absPath.endsWith(".md")) return;
|
|
112
112
|
result.push(absPath);
|
|
@@ -115,12 +115,12 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
115
115
|
await addMarkdownFile(memoryFile);
|
|
116
116
|
await addMarkdownFile(altMemoryFile);
|
|
117
117
|
try {
|
|
118
|
-
const dirStat = await
|
|
118
|
+
const dirStat = await fsPromises.lstat(memoryDir);
|
|
119
119
|
if (!dirStat.isSymbolicLink() && dirStat.isDirectory()) await walkDir(memoryDir, result);
|
|
120
120
|
} catch {}
|
|
121
121
|
const normalizedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
122
122
|
if (normalizedExtraPaths.length > 0) for (const inputPath of normalizedExtraPaths) try {
|
|
123
|
-
const stat = await
|
|
123
|
+
const stat = await fsPromises.lstat(inputPath);
|
|
124
124
|
if (stat.isSymbolicLink()) continue;
|
|
125
125
|
if (stat.isDirectory()) {
|
|
126
126
|
await walkDir(inputPath, result);
|
|
@@ -134,7 +134,7 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
134
134
|
for (const entry of result) {
|
|
135
135
|
let key = entry;
|
|
136
136
|
try {
|
|
137
|
-
key = await
|
|
137
|
+
key = await fsPromises.realpath(entry);
|
|
138
138
|
} catch {}
|
|
139
139
|
if (seen.has(key)) continue;
|
|
140
140
|
seen.add(key);
|
|
@@ -148,14 +148,14 @@ function hashText(value) {
|
|
|
148
148
|
async function buildFileEntry(absPath, workspaceDir) {
|
|
149
149
|
let stat;
|
|
150
150
|
try {
|
|
151
|
-
stat = await
|
|
151
|
+
stat = await fsPromises.stat(absPath);
|
|
152
152
|
} catch (err) {
|
|
153
153
|
if (isFileMissingError(err)) return null;
|
|
154
154
|
throw err;
|
|
155
155
|
}
|
|
156
156
|
let content;
|
|
157
157
|
try {
|
|
158
|
-
content = await
|
|
158
|
+
content = await fsPromises.readFile(absPath, "utf-8");
|
|
159
159
|
} catch (err) {
|
|
160
160
|
if (isFileMissingError(err)) return null;
|
|
161
161
|
throw err;
|
|
@@ -2,13 +2,13 @@ import { A as isRich, P as getResolvedLoggerSettings, j as theme, k as colorize
|
|
|
2
2
|
import { d as resolveIsNixMode } from "./paths-By0XjHBk.js";
|
|
3
3
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
5
|
-
import { i as loadConfig } from "./config-
|
|
5
|
+
import { i as loadConfig } from "./config-D-PYSlE8.js";
|
|
6
6
|
import { c as pickPrimaryLanIPv4 } from "./ws-C7Ktmt-R.js";
|
|
7
7
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-ChnKXZKi.js";
|
|
8
|
-
import { t as isWSL } from "./wsl-
|
|
9
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
10
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
11
|
-
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-
|
|
8
|
+
import { t as isWSL } from "./wsl-Sed675xh.js";
|
|
9
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-B2nTr3Y2.js";
|
|
10
|
+
import { s as resolveGatewayLogPaths } from "./service-Cm4-5AH9.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-DtOWJT_2.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-Bi7Gqqv0.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -3,15 +3,15 @@ import "./registry-C-JddWwo.js";
|
|
|
3
3
|
import { o as resolveAgentWorkspaceDir, s as resolveDefaultAgentId } from "./agent-scope-B1Ina6jV.js";
|
|
4
4
|
import "./subsystem-DzRUKS9f.js";
|
|
5
5
|
import "./workspace-CsaDUuDn.js";
|
|
6
|
-
import { t as runAgentTurn } from "./unified-runner-
|
|
6
|
+
import { t as runAgentTurn } from "./unified-runner-DPWNhQQA.js";
|
|
7
7
|
import "./auth-profiles-BSw0aQND.js";
|
|
8
8
|
import "./model-selection-BqshlIZc.js";
|
|
9
|
-
import "./deliver-
|
|
9
|
+
import "./deliver-DTRkeYm3.js";
|
|
10
10
|
import "./ssrf-oI58TMOb.js";
|
|
11
11
|
import "./boolean-BsqeuxE6.js";
|
|
12
12
|
import "./shell-env-B1lDWz4t.js";
|
|
13
13
|
import "./manifest-registry-BGJu2aC-.js";
|
|
14
|
-
import "./chrome-
|
|
14
|
+
import "./chrome-DPjznJQ-.js";
|
|
15
15
|
import "./frontmatter-CJEX1BrH.js";
|
|
16
16
|
import "./skills-Dm4gX4Tl.js";
|
|
17
17
|
import "./redact-CSGZUFxa.js";
|
|
@@ -25,7 +25,7 @@ import "./paths-BsT3BvfH.js";
|
|
|
25
25
|
import "./tokens-D_vCJSzF.js";
|
|
26
26
|
import "./diagnostic-BALvP9wI.js";
|
|
27
27
|
import "./diagnostic-session-state-BDfanaOY.js";
|
|
28
|
-
import "./manager-
|
|
28
|
+
import "./manager-C5FGNRjL.js";
|
|
29
29
|
import "./github-copilot-token-uhEBNQfj.js";
|
|
30
30
|
import "./pi-auth-json-DCGR3yfh.js";
|
|
31
31
|
import "./reply-prefix-D0NzzC4I.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as resolvePreferredSymiTmpDir } from "./registry-Sbac4a4z.js";
|
|
2
2
|
import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
|
|
3
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-Bnsyyeci.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
6
6
|
//#region src/media/local-roots.ts
|
|
@@ -4,20 +4,20 @@ import "./utils-CTPsqyE_.js";
|
|
|
4
4
|
import { c as formatLocalIsoWithOffset, m as clearActiveProgressLine } from "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import "./exec-DuYbft0z.js";
|
|
7
|
-
import "./agent-scope-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import "./config-
|
|
7
|
+
import "./agent-scope-Bnsyyeci.js";
|
|
8
|
+
import "./model-selection-CCTzD29o.js";
|
|
9
|
+
import "./config-D-PYSlE8.js";
|
|
10
10
|
import "./boolean-CbZoNRMn.js";
|
|
11
11
|
import "./env-BRnPI9sO.js";
|
|
12
12
|
import "./shell-env-Dc3iU7HK.js";
|
|
13
13
|
import "./manifest-registry-D1MLZEjS.js";
|
|
14
14
|
import "./message-channel-DgjXWzf-.js";
|
|
15
|
-
import "./client-
|
|
16
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
17
|
-
import "./pairing-token-
|
|
15
|
+
import "./client-T5P9umyG.js";
|
|
16
|
+
import { t as buildGatewayConnectionDetails } from "./call-CW8U1BPq.js";
|
|
17
|
+
import "./pairing-token-B703A1U3.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-TQwptN6q.js";
|
|
19
19
|
import "./progress-HNhsbm0E.js";
|
|
20
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
20
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-CLzM6ugo.js";
|
|
21
21
|
import { t as parseLogLine } from "./parse-log-line-BX_3CQNJ.js";
|
|
22
22
|
import { setTimeout } from "node:timers/promises";
|
|
23
23
|
|
|
@@ -4219,7 +4219,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4219
4219
|
* to bypass the min-interval guard (CLI use).
|
|
4220
4220
|
*/
|
|
4221
4221
|
async runL3CycleIfDue(params) {
|
|
4222
|
-
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-ONc01jKh.js"), import("./synthesis-
|
|
4222
|
+
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-ONc01jKh.js"), import("./synthesis-BxYzOZUA.js")]);
|
|
4223
4223
|
const synthesize = createSynthesizer({
|
|
4224
4224
|
cfg: this.cfg,
|
|
4225
4225
|
agentId: this.agentId,
|
|
@@ -4449,7 +4449,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4449
4449
|
* to bypass the min-interval guard (CLI use).
|
|
4450
4450
|
*/
|
|
4451
4451
|
async runL3CycleIfDue(params) {
|
|
4452
|
-
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-CwJCvaOH.js"), import("./synthesis-
|
|
4452
|
+
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-CwJCvaOH.js"), import("./synthesis-BdTiornP.js")]);
|
|
4453
4453
|
const synthesize = createSynthesizer({
|
|
4454
4454
|
cfg: this.cfg,
|
|
4455
4455
|
agentId: this.agentId,
|
|
@@ -4449,7 +4449,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4449
4449
|
* to bypass the min-interval guard (CLI use).
|
|
4450
4450
|
*/
|
|
4451
4451
|
async runL3CycleIfDue(params) {
|
|
4452
|
-
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-Dyh_aESo.js"), import("./synthesis-
|
|
4452
|
+
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-Dyh_aESo.js"), import("./synthesis-DQ7Y6OE0.js")]);
|
|
4453
4453
|
const synthesize = createSynthesizer({
|
|
4454
4454
|
cfg: this.cfg,
|
|
4455
4455
|
agentId: this.agentId,
|
|
@@ -2,20 +2,20 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
|
|
3
3
|
import { h as resolveUserPath, i as clampNumber$1, r as clampInt, x as truncateUtf16Safe, y as sleep } from "./utils-CTPsqyE_.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
5
|
-
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { u as normalizeProviderId } from "./model-selection-
|
|
5
|
+
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-Bnsyyeci.js";
|
|
6
|
+
import { u as normalizeProviderId } from "./model-selection-CCTzD29o.js";
|
|
7
7
|
import { t as isTruthyEnvValue } from "./env-BRnPI9sO.js";
|
|
8
8
|
import { n as formatErrorMessage } from "./errors-bI7Tdx75.js";
|
|
9
9
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-BtvQ7JvU.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-x1D4Vniz.js";
|
|
11
|
-
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-
|
|
12
|
-
import { a as hashText, c as normalizeExtraMemoryPaths, d as runWithConcurrency, i as ensureDir, l as parseEmbedding, m as statRegularFile, n as chunkMarkdown, o as isMemoryPath, p as isFileMissingError, r as cosineSimilarity, s as listMemoryFiles, t as buildFileEntry, u as remapChunkLines } from "./internal-
|
|
13
|
-
import { i as sessionPathForFile, n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-
|
|
11
|
+
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-_C07_3Yr.js";
|
|
12
|
+
import { a as hashText, c as normalizeExtraMemoryPaths, d as runWithConcurrency, i as ensureDir, l as parseEmbedding, m as statRegularFile, n as chunkMarkdown, o as isMemoryPath, p as isFileMissingError, r as cosineSimilarity, s as listMemoryFiles, t as buildFileEntry, u as remapChunkLines } from "./internal-csqU78gW.js";
|
|
13
|
+
import { i as sessionPathForFile, n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-BpogPlQW.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
import os from "node:os";
|
|
18
|
-
import
|
|
18
|
+
import fsPromises from "node:fs/promises";
|
|
19
19
|
import { createInterface } from "node:readline";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
21
21
|
import chokidar from "chokidar";
|
|
@@ -1115,7 +1115,7 @@ async function extractTimestamp(params) {
|
|
|
1115
1115
|
if (!params.workspaceDir) return null;
|
|
1116
1116
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1117
1117
|
try {
|
|
1118
|
-
const stat = await
|
|
1118
|
+
const stat = await fsPromises.stat(absolutePath);
|
|
1119
1119
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1120
1120
|
return new Date(stat.mtimeMs);
|
|
1121
1121
|
} catch {
|
|
@@ -2300,7 +2300,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2300
2300
|
const source = `${sourceBase}${suffix}`;
|
|
2301
2301
|
const target = `${targetBase}${suffix}`;
|
|
2302
2302
|
try {
|
|
2303
|
-
await
|
|
2303
|
+
await fsPromises.rename(source, target);
|
|
2304
2304
|
} catch (err) {
|
|
2305
2305
|
if (err.code !== "ENOENT") throw err;
|
|
2306
2306
|
}
|
|
@@ -2311,7 +2311,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2311
2311
|
"",
|
|
2312
2312
|
"-wal",
|
|
2313
2313
|
"-shm"
|
|
2314
|
-
].map((suffix) =>
|
|
2314
|
+
].map((suffix) => fsPromises.rm(`${basePath}${suffix}`, { force: true })));
|
|
2315
2315
|
}
|
|
2316
2316
|
ensureSchema() {
|
|
2317
2317
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2406,7 +2406,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2406
2406
|
if (!thresholds) return null;
|
|
2407
2407
|
let stat;
|
|
2408
2408
|
try {
|
|
2409
|
-
stat = await
|
|
2409
|
+
stat = await fsPromises.stat(sessionFile);
|
|
2410
2410
|
} catch {
|
|
2411
2411
|
return null;
|
|
2412
2412
|
}
|
|
@@ -2448,7 +2448,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2448
2448
|
if (end <= start) return 0;
|
|
2449
2449
|
let handle;
|
|
2450
2450
|
try {
|
|
2451
|
-
handle = await
|
|
2451
|
+
handle = await fsPromises.open(absPath, "r");
|
|
2452
2452
|
} catch (err) {
|
|
2453
2453
|
if (isFileMissingError(err)) return 0;
|
|
2454
2454
|
throw err;
|
|
@@ -3380,7 +3380,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3380
3380
|
});
|
|
3381
3381
|
return;
|
|
3382
3382
|
}
|
|
3383
|
-
const content = options.content ?? await
|
|
3383
|
+
const content = options.content ?? await fsPromises.readFile(entry.absPath, "utf-8");
|
|
3384
3384
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0));
|
|
3385
3385
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
3386
3386
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
@@ -3998,7 +3998,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3998
3998
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3999
3999
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
4000
4000
|
for (const additionalPath of additionalPaths) try {
|
|
4001
|
-
const stat = await
|
|
4001
|
+
const stat = await fsPromises.lstat(additionalPath);
|
|
4002
4002
|
if (stat.isSymbolicLink()) continue;
|
|
4003
4003
|
if (stat.isDirectory()) {
|
|
4004
4004
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -4023,7 +4023,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4023
4023
|
};
|
|
4024
4024
|
let content;
|
|
4025
4025
|
try {
|
|
4026
|
-
content = await
|
|
4026
|
+
content = await fsPromises.readFile(absPath, "utf-8");
|
|
4027
4027
|
} catch (err) {
|
|
4028
4028
|
if (isFileMissingError(err)) return {
|
|
4029
4029
|
text: "",
|
|
@@ -4222,7 +4222,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4222
4222
|
* to bypass the min-interval guard (CLI use).
|
|
4223
4223
|
*/
|
|
4224
4224
|
async runL3CycleIfDue(params) {
|
|
4225
|
-
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-
|
|
4225
|
+
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-BB4BOQIN.js"), import("./synthesis-C7RlvHEs.js")]);
|
|
4226
4226
|
const synthesize = createSynthesizer({
|
|
4227
4227
|
cfg: this.cfg,
|
|
4228
4228
|
agentId: this.agentId,
|