@symerian/symi 3.4.27 → 3.4.29
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-DOOj3Gzb.js → agent-CQlyTNu-.js} +1 -1
- package/dist/{agent-CiqPWDUd.js → agent-N_J2cDO6.js} +18 -18
- package/dist/{agent-scope-Bnsyyeci.js → agent-scope-DOrZjOnW.js} +18 -18
- package/dist/{agents-BBQfFoen.js → agents-1xmRO246.js} +2 -2
- package/dist/{agents.config-Dm3oLpYK.js → agents.config-BJ9RIQlb.js} +1 -1
- package/dist/{audit-BSX7fMfc.js → audit-DCwHws4M.js} +20 -20
- package/dist/{auth-choice-rhBmet5i.js → auth-choice-DwXdS4c2.js} +11 -11
- package/dist/{auth-choice-BYbTjWcs.js → auth-choice-Ryx7oj6G.js} +1 -1
- package/dist/{auth-profiles-D5nYBj_Z.js → auth-profiles-Ce7R_25e.js} +2 -2
- package/dist/{auth-token-CAV1oLQG.js → auth-token-DgRRSbEX.js} +3 -3
- package/dist/{banner-C1qG5Rm9.js → banner-CxMQaUgh.js} +1 -1
- package/dist/{browser-cli-De8jg4-F.js → browser-cli-C3hfJNZy.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +2 -2
- package/dist/{call-CW8U1BPq.js → call-BouPakqe.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CJD7jwYg.js → channel-options-WR29vfWK.js} +1 -1
- package/dist/{channel-options-BsXUgCMq.js → channel-options-n9C_ovb1.js} +1 -1
- package/dist/{channels-cli-Dxn5n9e4.js → channels-cli-Cs-Uq67O.js} +7 -7
- package/dist/{channels-cli-Bao4VNbH.js → channels-cli-DbFGI3vF.js} +57 -57
- package/dist/{chrome-pFBxO63W.js → chrome-rzK8edU7.js} +2 -2
- package/dist/{cli-WP38F9C5.js → cli-7ceDvtPc.js} +45 -45
- package/dist/{cli-CrhLSz3t.js → cli-D55pCJ8Q.js} +4 -4
- package/dist/{client-T5P9umyG.js → client-BzUAFrla.js} +1 -1
- package/dist/{command-registry-DoXcG7FZ.js → command-registry-DAy62yhH.js} +10 -10
- package/dist/{commands-registry-BjcGLk4v.js → commands-registry-VfAQOVZO.js} +1 -1
- package/dist/{completion-cli-C0SXi7ya.js → completion-cli-Bc1jojml.js} +12 -12
- package/dist/{completion-cli-DaWi3_ux.js → completion-cli-Bh-Y2NVp.js} +2 -2
- package/dist/{config-D-PYSlE8.js → config-D7SS4vdk.js} +2 -2
- package/dist/{config-cli-DXKm0pS5.js → config-cli-BxRcn2oD.js} +1 -1
- package/dist/{config-cli-DS67KtKf.js → config-cli-DupKETmw.js} +4 -4
- package/dist/{config-guard-xLTTFANi.js → config-guard-BGAQzX2K.js} +6 -6
- package/dist/{config-validation-C4wGq3rz.js → config-validation-COcIIMNe.js} +1 -1
- package/dist/{configure-B99YJJb0.js → configure-0XYm59w7.js} +14 -14
- package/dist/{configure-CzO4_jJJ.js → configure-BilM_Fgn.js} +2 -2
- package/dist/{consolidate-BB4BOQIN.js → consolidate-DI20-Wtn.js} +6 -6
- package/dist/{control-service-y53w3Jzy.js → control-service-Ry7Le68N.js} +4 -4
- package/dist/{control-ui-assets-Dryy7mCE.js → control-ui-assets-DuDhl0co.js} +1 -1
- package/dist/{cron-cli-BMblAFRK.js → cron-cli-DHFgjr_X.js} +7 -7
- package/dist/{daemon-cli-BJGNf5qV.js → daemon-cli-fC2R9YZd.js} +11 -11
- package/dist/{daemon-runtime-u4p9jsEF.js → daemon-runtime-tZgIbDPz.js} +10 -10
- package/dist/{deliver-C79-Umbk.js → deliver-DB4v0Tyl.js} +2 -2
- package/dist/{deps-UA1UBhl7.js → deps-BlmO-MfQ.js} +1 -1
- package/dist/{devices-cli-wsTs-nti.js → devices-cli-DtkKN4l0.js} +6 -6
- package/dist/{diagnostics-oW0LBW-t.js → diagnostics-tVJR9V0_.js} +5 -5
- package/dist/{directory-cli-D8As6t8Z.js → directory-cli-Bfy_ejW2.js} +3 -3
- package/dist/{dm-policy-shared-DRJrFKqJ.js → dm-policy-shared-CBlUyDSX.js} +1 -1
- package/dist/{dns-cli-BKOTBn3n.js → dns-cli-DzKaV6NZ.js} +3 -3
- package/dist/{docs-cli-D5j7Nmz2.js → docs-cli-a90_8wuN.js} +1 -1
- package/dist/{doctor-completion-mev5PRjN.js → doctor-completion-B6OPl_GZ.js} +2 -2
- package/dist/{doctor-completion-B1YCzbvi.js → doctor-completion-BZJWX3Dr.js} +1 -1
- package/dist/{doctor-config-flow-Uv41seME.js → doctor-config-flow-30ZEvATb.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-B4ry9s5r.js → exec-approvals-cli-C3gZAwV8.js} +13 -13
- package/dist/extensionAPI.js +2 -2
- package/dist/{file-lock-2AecMjCa.js → file-lock-BVUYnlQv.js} +8 -8
- package/dist/{fs-safe-B0Is-oLk.js → fs-safe-BdejYjW8.js} +6 -6
- package/dist/{gateway-cli-B3JVj_dv.js → gateway-cli-CyhLb-zS.js} +98 -98
- package/dist/{gateway-cli-Chnp6icp.js → gateway-cli-DQhYa6AL.js} +10 -10
- package/dist/{gateway-rpc-CLzM6ugo.js → gateway-rpc-DNq7EMhm.js} +1 -1
- package/dist/{glass-ui-ws-5o8dvEZO.js → glass-ui-ws-CLDbMDPk.js} +8 -8
- package/dist/{glass-ui-ws--GjxFRyX.js → glass-ui-ws-SJVljtUx.js} +67 -67
- package/dist/{health-D2th0Ip6.js → health-DZ0aipDZ.js} +4 -4
- package/dist/{hooks-cli-B4Nvp9AV.js → hooks-cli-BMRj13QU.js} +59 -59
- package/dist/{hooks-cli-B_sZth4r.js → hooks-cli-BVtdP5x7.js} +5 -5
- package/dist/{image-ops-BzCBIakN.js → image-ops-L70xVnpG.js} +10 -10
- package/dist/index.js +52 -52
- package/dist/{inspect-U3g9owQ8.js → inspect-CXsOujVt.js} +4 -4
- package/dist/{install-safe-path-BwMMOh9z.js → install-safe-path-D5gi-nfu.js} +11 -11
- package/dist/{installs-vdi1BESF.js → installs-DF_LhGX6.js} +10 -10
- package/dist/{internal-csqU78gW.js → internal-DVCddhhN.js} +9 -9
- package/dist/{lifecycle-core-BfmNlC-k.js → lifecycle-core-Bvdl2ShM.js} +5 -5
- package/dist/llm-slug-generator.js +2 -2
- package/dist/{local-roots-2Jb79HZ8.js → local-roots-CgDCgCuM.js} +1 -1
- package/dist/{logs-cli-COZzdFu6.js → logs-cli-mdSEYBKS.js} +7 -7
- package/dist/{manager-DyYRwHZt.js → manager-BLg6zbeA.js} +15 -15
- package/dist/{manager-BfbQb9qM.js → manager-BhIaahpm.js} +1 -1
- package/dist/{manager-Bryhc0Ip.js → manager-BsQIpjy1.js} +1 -1
- package/dist/{manager-C5FGNRjL.js → manager-CtDuNn2T.js} +1 -1
- package/dist/{memory-DgDnTEcB.js → memory-B4DsKRSc.js} +5 -5
- package/dist/{memory-Cypj1lBQ.js → memory-BENbCb4f.js} +2 -2
- package/dist/{memory-cli-DB7UIev4.js → memory-cli-BIjwqjBx.js} +2 -2
- package/dist/{memory-cli-CfJkD7mO.js → memory-cli-DotHyA76.js} +12 -12
- package/dist/{model-DbILYCfo.js → model-DsMHOvMn.js} +1 -1
- package/dist/{model-auth-_C07_3Yr.js → model-auth-1EAQvYRv.js} +2 -2
- package/dist/{model-catalog-CeqDEWGz.js → model-catalog-DQTmHZK7.js} +3 -3
- package/dist/{model-picker-C_f6MALt.js → model-picker-D4TY_tPx.js} +5 -5
- package/dist/{model-selection-CCTzD29o.js → model-selection-7wdmO-Iw.js} +1 -1
- package/dist/{models-Bpqeds64.js → models-CmToZKBp.js} +2 -2
- package/dist/{models-cli-BUWfj5iJ.js → models-cli-CZgkOUZB.js} +55 -55
- package/dist/{models-cli-Bc47WFhD.js → models-cli-Di7iKhD4.js} +6 -6
- package/dist/{models-config-Dp5-tBqs.js → models-config-CRnTzdFs.js} +8 -8
- package/dist/{node-cli-BdjmGI32.js → node-cli-BXv9SEDG.js} +27 -27
- package/dist/{node-service-DphkTjBV.js → node-service-CrDVFWQl.js} +1 -1
- package/dist/{nodes-cli-BChJzcKY.js → nodes-cli-Cim3ANNU.js} +10 -10
- package/dist/{nodes-screen-Cp5QP3ET.js → nodes-screen-De9ma6e1.js} +4 -4
- package/dist/{npm-registry-spec-CqVgiBCf.js → npm-registry-spec-YMWTMnm_.js} +9 -9
- package/dist/{onboard-BbfERyKU.js → onboard-BXI02b3e.js} +1 -1
- package/dist/{onboard-C0nMMiiS.js → onboard-CuLvp4Ds.js} +15 -15
- package/dist/{onboard-channels-CMp9YXHC.js → onboard-channels-A6_QP7MR.js} +1 -1
- package/dist/{onboard-channels-CmsfVut5.js → onboard-channels-E5NIYGJz.js} +4 -4
- package/dist/{onboard-custom-BfHczxx0.js → onboard-custom-BrtjWDlX.js} +3 -3
- package/dist/{onboard-helpers-OB_xKQze.js → onboard-helpers---sZ9pdZ.js} +8 -8
- package/dist/{onboard-hooks-BA22KYCG.js → onboard-hooks-CtIRdncr.js} +1 -1
- package/dist/{onboard-remote-Dv2Uz8Ru.js → onboard-remote-BUB3VPBP.js} +1 -1
- package/dist/{onboard-skills-BzxofI4T.js → onboard-skills-Cs3BZ4VJ.js} +3 -3
- package/dist/{onboarding-vgZFhH5N.js → onboarding-BWMBA6cP.js} +12 -12
- package/dist/{onboarding-DoYMfCjS.js → onboarding-BeYl1Egj.js} +3 -3
- package/dist/{onboarding.finalize-Dj0xG8pk.js → onboarding.finalize-Bk-XW8b3.js} +4 -4
- package/dist/{onboarding.finalize-BYHDzz2i.js → onboarding.finalize-CH8dBgA2.js} +31 -31
- package/dist/{onboarding.gateway-config-CDRLfIZM.js → onboarding.gateway-config-arRNxrI9.js} +8 -8
- package/dist/{openai-model-default-Dl21Ivjc.js → openai-model-default-XudD4Xik.js} +2 -2
- package/dist/{pairing-cli-C2_Zobhz.js → pairing-cli-NDavTm1_.js} +5 -5
- package/dist/{pairing-store-Be-ZQK87.js → pairing-store-BNhJOnWn.js} +1 -1
- package/dist/{pairing-token-B703A1U3.js → pairing-token-Dcy37-4s.js} +7 -7
- package/dist/{paths-BWqg8NZT.js → paths-DObzwe08.js} +1 -1
- package/dist/{pi-auth-json-D-vdh-nY.js → pi-auth-json-Db8XJVGL.js} +6 -6
- package/dist/{pi-embedded-C7mJzGIf.js → pi-embedded-BL3_b-H_.js} +6 -52
- package/dist/{pi-embedded-helpers-y3vJmW6T.js → pi-embedded-helpers-B5cWV7_y.js} +6 -6
- package/dist/{pi-tools.policy-ji-L-Mpv.js → pi-tools.policy-BdGVEMZn.js} +3 -3
- package/dist/{plugin-auto-enable-Ctbn2w4Q.js → plugin-auto-enable-B_lNp6yM.js} +1 -1
- package/dist/{plugin-registry-pKaJ4ltN.js → plugin-registry-CAdIrLmG.js} +1 -1
- package/dist/{plugin-registry-D2ZbwBU_.js → plugin-registry-DovNSdK0.js} +3 -3
- package/dist/plugin-sdk/agents/pi-tools.types.d.ts +2 -1
- package/dist/plugin-sdk/agents/tools/common.d.ts +0 -30
- package/dist/{plugins-cli-uo8lcB7v.js → plugins-cli-JzKO-vmR.js} +5 -5
- package/dist/{plugins-cli-CoHiV4BX.js → plugins-cli-ZG4PxNTC.js} +54 -54
- package/dist/{ports-ukrEAkOP.js → ports-C3ZSkRGq.js} +1 -1
- package/dist/{ports-CB_Iu83U.js → ports-gxLM5ahL.js} +2 -2
- package/dist/{program-rzYjZKRz.js → program-BbfU4idg.js} +10 -10
- package/dist/{program-context-B1ZbQmLL.js → program-context-ByiEP1Lk.js} +38 -38
- package/dist/{prompt-select-styled-F6P-rvFI.js → prompt-select-styled-CWH2Mcrb.js} +4 -4
- package/dist/{prompt-select-styled-CX0v66wx.js → prompt-select-styled-DvrG_zWV.js} +38 -38
- package/dist/{provider-auth-helpers-_jn9PngO.js → provider-auth-helpers-2x7YxT5F.js} +6 -6
- package/dist/{provider-auth-helpers-Ck98bkHV.js → provider-auth-helpers-CMQexdSl.js} +1 -1
- package/dist/{push-apns-BtMtpzEm.js → push-apns-CtWwPxRj.js} +1 -1
- package/dist/{push-apns-CmeoBcIQ.js → push-apns-eGdGU3r7.js} +4 -4
- package/dist/{pw-ai-CQJsGI1b.js → pw-ai-tgngV3iZ.js} +7 -7
- package/dist/{qmd-manager-DawTY2mB.js → qmd-manager-qV_04VKG.js} +19 -19
- package/dist/{qr-cli-DKowtQcM.js → qr-cli-Vo1XL6B2.js} +3 -3
- package/dist/{register.agent-_UqSBmt5.js → register.agent-DZE9NBNx.js} +9 -9
- package/dist/{register.agent-0hWBZXD7.js → register.agent-Dwkya1rv.js} +67 -67
- package/dist/{register.configure-KrTtvKSp.js → register.configure-CD8WkXo8.js} +8 -8
- package/dist/{register.configure-CgQ6sqtQ.js → register.configure-DCpbCHR0.js} +70 -70
- package/dist/{register.maintenance-DjZeknO6.js → register.maintenance-Bqjj77CZ.js} +67 -67
- package/dist/{register.maintenance-DDSfzFoo.js → register.maintenance-CxVeo_7j.js} +9 -9
- package/dist/{register.message-DSwwDcGi.js → register.message-tcJN7-E3.js} +5 -5
- package/dist/{register.message-DTZJ5OiL.js → register.message-uhAmNxoO.js} +47 -47
- package/dist/{register.onboard-B8k5phG7.js → register.onboard-F6d_Wrv1.js} +25 -25
- package/dist/{register.onboard-BToIZTIS.js → register.onboard-Rm5t0yxX.js} +2 -2
- package/dist/{register.setup-BdUewOo1.js → register.setup-C2datfZK.js} +2 -2
- package/dist/{register.setup-1fexz2oW.js → register.setup-CcHxpsUT.js} +28 -28
- package/dist/{register.status-health-sessions-eBaeXIvo.js → register.status-health-sessions-DFVjS9Hy.js} +3 -3
- package/dist/{register.status-health-sessions-0RyA2cXf.js → register.status-health-sessions-DIUDRMqm.js} +41 -41
- package/dist/{register.subclis-tX3BslaT.js → register.subclis-D9uGnVGm.js} +9 -9
- package/dist/{replies-D3cffD5N.js → replies-DzsYQ8Md.js} +1 -1
- package/dist/{reply-prefix-CtZtkTJK.js → reply-prefix-BFNeXT65.js} +1 -1
- package/dist/{resolve-route-B0i_o4Fo.js → resolve-route-Zww0Y-HJ.js} +1 -1
- package/dist/{routes-zpAUwtCG.js → routes-C-rIjd8Z.js} +10 -10
- package/dist/{rpc-DhsDKVo-.js → rpc-BkFkeuJ6.js} +1 -1
- package/dist/{run-main-DIl_Kl0B.js → run-main-HkbyvIDy.js} +17 -17
- package/dist/{sandbox-DQCaejcD.js → sandbox-Dx8IMw-E.js} +18 -18
- package/dist/{sandbox-cli-CbvyZs1z.js → sandbox-cli-BFkLKdlk.js} +13 -13
- package/dist/{security-cli-CbJxNYZx.js → security-cli-BEpQ_rO1.js} +29 -29
- package/dist/{send-QscYkkNh.js → send-Cxu1tl56.js} +7 -7
- package/dist/{server-context-CXVq7gZ7.js → server-context--mmXXEkE.js} +5 -5
- package/dist/{server-methods-CpFBGxWI.js → server-methods-DJ8eiTu1.js} +6 -6
- package/dist/{server-methods-DPxjPGr0.js → server-methods-RtjWUhkv.js} +58 -58
- package/dist/{server-node-events-2SUW10k3.js → server-node-events-CT8fFtBQ.js} +6 -6
- package/dist/{server-node-events-B_BPbi7z.js → server-node-events-DQ1iCUgY.js} +48 -48
- package/dist/{service-Cm4-5AH9.js → service-CyEDtYLq.js} +15 -15
- package/dist/{session-dirs-BypCYFN3.js → session-dirs-CXErIzZq.js} +2 -2
- package/dist/{session-utils-lXjJoBxe.js → session-utils-BZnPW904.js} +14 -14
- package/dist/{sessions-aSo5jsmg.js → sessions-optZRB57.js} +10 -10
- package/dist/{shared-DDX_4ypC.js → shared-Ctok0Bcs.js} +1 -1
- package/dist/{shared-BI-gOZsD.js → shared-DJFwvlUi.js} +3 -3
- package/dist/{skill-commands-C9WuAfb2.js → skill-commands-yPirQFOb.js} +4 -4
- package/dist/{skill-scanner-CFqMkfZW.js → skill-scanner-BBwesm0w.js} +5 -5
- package/dist/{skills-CYcBtLGH.js → skills-BwDmcZdt.js} +4 -4
- package/dist/{skills-cli-BgyaAQoj.js → skills-cli-gC5ETdly.js} +7 -7
- package/dist/{skills-install-MGsx6q5Z.js → skills-install-CLN_Ks5r.js} +3 -3
- package/dist/{skills-remote-BcRQTDsZ.js → skills-remote-bz71Bstn.js} +3 -3
- package/dist/{skills-status-CbSdFlvm.js → skills-status-iltfI_bO.js} +1 -1
- package/dist/{sqlite-BpogPlQW.js → sqlite-Cod7C5ba.js} +5 -5
- package/dist/{status-DbNNmkNB.js → status-CoqGtHXq.js} +1 -1
- package/dist/{status-BVYDUlnp.js → status-Cpz64Vy_.js} +1 -1
- package/dist/{status-C-r9JpJf.js → status-CuMBp54T.js} +23 -23
- package/dist/{status-DIJvpgEm.js → status-EAjzyREy.js} +3 -3
- package/dist/{status.update-EyslEZkn.js → status.update-F4CbQCxF.js} +3 -3
- package/dist/{subagent-registry-DWemyjbN.js → subagent-registry-Dkif1XYO.js} +6 -52
- package/dist/{symi-root-DeCVdZB4.js → symi-root-BQ0IpoW2.js} +2 -2
- package/dist/{synthesis-BdTiornP.js → synthesis-B6tq6-9G.js} +2 -2
- package/dist/{synthesis-C7RlvHEs.js → synthesis-CKKZrrYd.js} +45 -45
- package/dist/{synthesis-BxYzOZUA.js → synthesis-CpsURf9J.js} +4 -4
- package/dist/{synthesis-DQ7Y6OE0.js → synthesis-mgcCKSzl.js} +2 -2
- package/dist/{system-cli-DgOvK_kU.js → system-cli-DMKzffe3.js} +7 -7
- package/dist/{systemd-B2nTr3Y2.js → systemd-DRpQb_L1.js} +5 -5
- package/dist/{systemd-hints-DtOWJT_2.js → systemd-hints-DR4u43WA.js} +6 -6
- package/dist/{systemd-linger-CWi5l8Nt.js → systemd-linger-BQQl5RXN.js} +1 -1
- package/dist/{tui-D7ms_iQ4.js → tui-CqrM_Fj2.js} +7 -7
- package/dist/{tui-cli-DNvAqIYN.js → tui-cli-BsqRmqTX.js} +19 -19
- package/dist/{unified-runner-DPWNhQQA.js → unified-runner-DAWxqcS9.js} +6 -52
- package/dist/{unified-runner-BIUJm_Iv.js → unified-runner-DZAjU6aB.js} +104 -150
- package/dist/{update-pddgyV7i.js → update-CWEjB8uS.js} +3 -3
- package/dist/{update-check-CduiCxPo.js → update-check-CxBGAP1E.js} +5 -5
- package/dist/{update-cli-BM-A3cIZ.js → update-cli-Bgk30eoA.js} +9 -9
- package/dist/{update-cli-GKXF83cS.js → update-cli-t7W6vcQY.js} +77 -77
- package/dist/{update-runner-BMYqz1dl.js → update-runner-C4Uy75eP.js} +15 -15
- package/dist/{webhooks-cli-BPPmnDCj.js → webhooks-cli-Dp-pp0Sf.js} +4 -4
- package/dist/{with-timeout-D1qzvPE0.js → with-timeout-B5zAsivw.js} +1 -1
- package/dist/{workspace-dirs-DCICLTHx.js → workspace-dirs-jKFQf7of.js} +1 -1
- package/dist/{wsl-Sed675xh.js → wsl-DMA0sTvh.js} +2 -2
- package/package.json +1 -1
- package/dist/plugin-sdk/agents/tools/availability-filter.d.ts +0 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h as resolveUserPath } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { o as loadPluginManifest, r as discoverSymiPlugins } from "./manifest-registry-D1MLZEjS.js";
|
|
3
|
-
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-
|
|
4
|
-
import
|
|
3
|
+
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-DF_LhGX6.js";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/update.ts
|
|
7
7
|
async function readInstalledPackageVersion(dir) {
|
|
8
8
|
try {
|
|
9
|
-
const raw = await
|
|
9
|
+
const raw = await fs.readFile(`${dir}/package.json`, "utf-8");
|
|
10
10
|
const parsed = JSON.parse(raw);
|
|
11
11
|
return typeof parsed.version === "string" ? parsed.version : void 0;
|
|
12
12
|
} catch {
|
|
@@ -2,7 +2,7 @@ import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
|
2
2
|
import { n as fetchWithTimeout } from "./fetch-timeout-BhdrdVp5.js";
|
|
3
3
|
import { r as parseSemver } from "./runtime-guard-DfRLODeV.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fs from "node:fs/promises";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/update-channels.ts
|
|
8
8
|
const DEFAULT_PACKAGE_CHANNEL = "stable";
|
|
@@ -86,11 +86,11 @@ function resolveUpdateChannelDisplay(params) {
|
|
|
86
86
|
//#region src/infra/detect-package-manager.ts
|
|
87
87
|
async function detectPackageManager$1(root) {
|
|
88
88
|
try {
|
|
89
|
-
const raw = await
|
|
89
|
+
const raw = await fs.readFile(path.join(root, "package.json"), "utf-8");
|
|
90
90
|
const pm = JSON.parse(raw)?.packageManager?.split("@")[0]?.trim();
|
|
91
91
|
if (pm === "pnpm" || pm === "bun" || pm === "npm") return pm;
|
|
92
92
|
} catch {}
|
|
93
|
-
const files = await
|
|
93
|
+
const files = await fs.readdir(root).catch(() => []);
|
|
94
94
|
if (files.includes("pnpm-lock.yaml")) return "pnpm";
|
|
95
95
|
if (files.includes("bun.lockb")) return "bun";
|
|
96
96
|
if (files.includes("package-lock.json")) return "npm";
|
|
@@ -112,7 +112,7 @@ function formatGitInstallLabel(update) {
|
|
|
112
112
|
}
|
|
113
113
|
async function exists(p) {
|
|
114
114
|
try {
|
|
115
|
-
await
|
|
115
|
+
await fs.access(p);
|
|
116
116
|
return true;
|
|
117
117
|
} catch {
|
|
118
118
|
return false;
|
|
@@ -239,7 +239,7 @@ async function checkGitUpdateStatus(params) {
|
|
|
239
239
|
}
|
|
240
240
|
async function statMtimeMs(p) {
|
|
241
241
|
try {
|
|
242
|
-
return (await
|
|
242
|
+
return (await fs.stat(p)).mtimeMs;
|
|
243
243
|
} catch {
|
|
244
244
|
return null;
|
|
245
245
|
}
|
|
@@ -21,7 +21,7 @@ import "./client-BqT7xONl.js";
|
|
|
21
21
|
import "./call-GzGqMHAx.js";
|
|
22
22
|
import "./message-channel-DXToSaWK.js";
|
|
23
23
|
import "./pairing-token-B-OTYROz.js";
|
|
24
|
-
import "./subagent-registry-
|
|
24
|
+
import "./subagent-registry-Dkif1XYO.js";
|
|
25
25
|
import "./sessions-DHPf5TzB.js";
|
|
26
26
|
import "./plugins-BsEhWvLn.js";
|
|
27
27
|
import "./send-BBfSp-8Q.js";
|
|
@@ -51,8 +51,8 @@ import "./model-auth-Byr7Gic_.js";
|
|
|
51
51
|
import "./github-copilot-token-B5y4__YM.js";
|
|
52
52
|
import "./models-config-Br7EjqgG.js";
|
|
53
53
|
import "./reply-prefix-DV3KhOhL.js";
|
|
54
|
-
import "./memory-
|
|
55
|
-
import "./manager-
|
|
54
|
+
import "./memory-BENbCb4f.js";
|
|
55
|
+
import "./manager-BhIaahpm.js";
|
|
56
56
|
import "./sqlite-9jF_eajd.js";
|
|
57
57
|
import "./chunk-B2lBXhR0.js";
|
|
58
58
|
import "./markdown-tables-BEdkErjm.js";
|
|
@@ -84,7 +84,7 @@ import { t as formatDocsLink } from "./links-BDe4dm1J.js";
|
|
|
84
84
|
import "./cli-utils-BhfE5XS2.js";
|
|
85
85
|
import { t as formatHelpExamples } from "./help-format-CbgFRc-H.js";
|
|
86
86
|
import "./progress-CqV5lJkt.js";
|
|
87
|
-
import "./memory-cli-
|
|
87
|
+
import "./memory-cli-BIjwqjBx.js";
|
|
88
88
|
import "./logging-BeW3kpQA.js";
|
|
89
89
|
import "./replies-LM-arXEE.js";
|
|
90
90
|
import "./pi-tools.policy-4gtz_Ipq.js";
|
|
@@ -98,10 +98,10 @@ import "./npm-registry-spec-B5KYXHyZ.js";
|
|
|
98
98
|
import "./skill-scanner-CH9qofCG.js";
|
|
99
99
|
import "./installs-CylGJ0W4.js";
|
|
100
100
|
import "./channels-status-issues-DGneT0fj.js";
|
|
101
|
-
import "./register.subclis-
|
|
102
|
-
import "./command-registry-
|
|
101
|
+
import "./register.subclis-D9uGnVGm.js";
|
|
102
|
+
import "./command-registry-DAy62yhH.js";
|
|
103
103
|
import "./program-context-4vIUuzQk.js";
|
|
104
|
-
import { r as installCompletion } from "./completion-cli-
|
|
104
|
+
import { r as installCompletion } from "./completion-cli-Bh-Y2NVp.js";
|
|
105
105
|
import "./daemon-runtime-Cyqcsmvq.js";
|
|
106
106
|
import { r as parseSemver } from "./runtime-guard-C8jl1lEu.js";
|
|
107
107
|
import "./onboard-helpers-Cut7JJgz.js";
|
|
@@ -123,8 +123,8 @@ import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from
|
|
|
123
123
|
import "./doctor-config-flow-B0pP_wcc.js";
|
|
124
124
|
import "./systemd-linger-C6G2nDWK.js";
|
|
125
125
|
import "./health-format-y74JTiFu.js";
|
|
126
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
127
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
126
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-CWH2Mcrb.js";
|
|
127
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-BZJWX3Dr.js";
|
|
128
128
|
import { spawn, spawnSync } from "node:child_process";
|
|
129
129
|
import os from "node:os";
|
|
130
130
|
import path from "node:path";
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import "./unified-runner-
|
|
1
|
+
import "./unified-runner-DZAjU6aB.js";
|
|
2
2
|
import { j as theme } from "./registry-Sbac4a4z.js";
|
|
3
3
|
import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
|
|
4
4
|
import { f as pathExists } from "./utils-CTPsqyE_.js";
|
|
5
5
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
6
|
-
import "./auth-profiles-
|
|
6
|
+
import "./auth-profiles-Ce7R_25e.js";
|
|
7
7
|
import { n as resolveCliName, t as replaceCliName } from "./cli-name-CzMV-gJF.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
9
|
-
import { t as resolveSymiPackageRoot } from "./symi-root-
|
|
9
|
+
import { t as resolveSymiPackageRoot } from "./symi-root-BQ0IpoW2.js";
|
|
10
10
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
11
|
-
import "./agent-scope-
|
|
12
|
-
import "./model-selection-
|
|
13
|
-
import "./file-lock-
|
|
11
|
+
import "./agent-scope-DOrZjOnW.js";
|
|
12
|
+
import "./model-selection-7wdmO-Iw.js";
|
|
13
|
+
import "./file-lock-BVUYnlQv.js";
|
|
14
14
|
import "./agent-paths-BbZSGrUA.js";
|
|
15
|
-
import "./pi-embedded-helpers-
|
|
16
|
-
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-
|
|
15
|
+
import "./pi-embedded-helpers-B5cWV7_y.js";
|
|
16
|
+
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-D7SS4vdk.js";
|
|
17
17
|
import "./boolean-CbZoNRMn.js";
|
|
18
18
|
import "./env-BRnPI9sO.js";
|
|
19
19
|
import "./shell-env-Dc3iU7HK.js";
|
|
20
20
|
import "./manifest-registry-D1MLZEjS.js";
|
|
21
|
-
import "./sandbox-
|
|
22
|
-
import "./chrome-
|
|
21
|
+
import "./sandbox-Dx8IMw-E.js";
|
|
22
|
+
import "./chrome-rzK8edU7.js";
|
|
23
23
|
import "./tailscale-DpKBMIvx.js";
|
|
24
24
|
import "./auth-Bkx-QuRN.js";
|
|
25
|
-
import "./server-context
|
|
25
|
+
import "./server-context--mmXXEkE.js";
|
|
26
26
|
import "./frontmatter-B_jqcova.js";
|
|
27
|
-
import "./skills-
|
|
28
|
-
import "./routes-
|
|
27
|
+
import "./skills-BwDmcZdt.js";
|
|
28
|
+
import "./routes-C-rIjd8Z.js";
|
|
29
29
|
import "./redact-B3O-RBO1.js";
|
|
30
30
|
import "./errors-bI7Tdx75.js";
|
|
31
|
-
import "./fs-safe-
|
|
32
|
-
import "./paths-
|
|
31
|
+
import "./fs-safe-BdejYjW8.js";
|
|
32
|
+
import "./paths-DObzwe08.js";
|
|
33
33
|
import "./ssrf-DOZRI5XH.js";
|
|
34
|
-
import "./image-ops-
|
|
35
|
-
import "./ports-
|
|
34
|
+
import "./image-ops-L70xVnpG.js";
|
|
35
|
+
import "./ports-gxLM5ahL.js";
|
|
36
36
|
import "./trash-_YhavPQI.js";
|
|
37
|
-
import "./sessions-
|
|
37
|
+
import "./sessions-optZRB57.js";
|
|
38
38
|
import "./dock-hF45sewN.js";
|
|
39
39
|
import "./message-channel-DgjXWzf-.js";
|
|
40
40
|
import "./plugins-CF5skkHh.js";
|
|
41
|
-
import "./send-
|
|
41
|
+
import "./send-Cxu1tl56.js";
|
|
42
42
|
import "./paths-BtvQ7JvU.js";
|
|
43
43
|
import "./thinking-COroyVA5.js";
|
|
44
44
|
import "./tokens-0yh2UnJq.js";
|
|
45
|
-
import "./deliver-
|
|
45
|
+
import "./deliver-DB4v0Tyl.js";
|
|
46
46
|
import "./diagnostic-DbT9t0Sh.js";
|
|
47
47
|
import "./diagnostic-session-state-DnkpMfCl.js";
|
|
48
|
-
import "./model-auth-
|
|
48
|
+
import "./model-auth-1EAQvYRv.js";
|
|
49
49
|
import "./github-copilot-token-D-FdDfee.js";
|
|
50
|
-
import "./models-config-
|
|
51
|
-
import "./pi-auth-json-
|
|
50
|
+
import "./models-config-CRnTzdFs.js";
|
|
51
|
+
import "./pi-auth-json-Db8XJVGL.js";
|
|
52
52
|
import "./session-cost-usage-D6Ocwmq1.js";
|
|
53
|
-
import { h as trimLogTail } from "./session-utils-
|
|
54
|
-
import "./with-timeout-
|
|
55
|
-
import "./reply-prefix-
|
|
56
|
-
import "./memory-
|
|
57
|
-
import "./manager-
|
|
58
|
-
import "./sqlite-
|
|
53
|
+
import { h as trimLogTail } from "./session-utils-BZnPW904.js";
|
|
54
|
+
import "./with-timeout-B5zAsivw.js";
|
|
55
|
+
import "./reply-prefix-BFNeXT65.js";
|
|
56
|
+
import "./memory-B4DsKRSc.js";
|
|
57
|
+
import "./manager-BLg6zbeA.js";
|
|
58
|
+
import "./sqlite-Cod7C5ba.js";
|
|
59
59
|
import "./chunk-BxfKjCUx.js";
|
|
60
60
|
import "./markdown-tables-CS1Tvb3z.js";
|
|
61
61
|
import "./fetch-guard-JHxT9355.js";
|
|
62
|
-
import "./local-roots-
|
|
62
|
+
import "./local-roots-CgDCgCuM.js";
|
|
63
63
|
import "./commands-DUzLGgEZ.js";
|
|
64
|
-
import "./commands-registry-
|
|
65
|
-
import "./client-
|
|
66
|
-
import "./call-
|
|
67
|
-
import "./pairing-token-
|
|
64
|
+
import "./commands-registry-VfAQOVZO.js";
|
|
65
|
+
import "./client-BzUAFrla.js";
|
|
66
|
+
import "./call-BouPakqe.js";
|
|
67
|
+
import "./pairing-token-Dcy37-4s.js";
|
|
68
68
|
import "./tool-display-DFOL6UQ9.js";
|
|
69
|
-
import "./skills-remote-
|
|
70
|
-
import "./workspace-dirs-
|
|
69
|
+
import "./skills-remote-bz71Bstn.js";
|
|
70
|
+
import "./workspace-dirs-jKFQf7of.js";
|
|
71
71
|
import "./pi-model-discovery-ClQLvlCW.js";
|
|
72
|
-
import "./model-catalog-
|
|
73
|
-
import "./skill-commands-
|
|
74
|
-
import "./pairing-store-
|
|
72
|
+
import "./model-catalog-DQTmHZK7.js";
|
|
73
|
+
import "./skill-commands-yPirQFOb.js";
|
|
74
|
+
import "./pairing-store-BNhJOnWn.js";
|
|
75
75
|
import "./exec-approvals-DioSaIeH.js";
|
|
76
|
-
import "./nodes-screen-
|
|
76
|
+
import "./nodes-screen-De9ma6e1.js";
|
|
77
77
|
import { r as formatDurationPrecise } from "./format-duration-CIjmjQST.js";
|
|
78
78
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-ChnKXZKi.js";
|
|
79
|
-
import "./control-service-
|
|
79
|
+
import "./control-service-Ry7Le68N.js";
|
|
80
80
|
import "./stagger-DUVGiPYV.js";
|
|
81
81
|
import "./channel-selection-DF4bza2Q.js";
|
|
82
82
|
import "./delivery-queue-RUd4NhRw.js";
|
|
83
83
|
import "./bindings-CLS_owm_.js";
|
|
84
|
-
import "./resolve-route-
|
|
84
|
+
import "./resolve-route-Zww0Y-HJ.js";
|
|
85
85
|
import { t as formatDocsLink } from "./links-TQwptN6q.js";
|
|
86
86
|
import "./cli-utils-tNdOjVQI.js";
|
|
87
87
|
import { t as formatHelpExamples } from "./help-format-CPT6NY3h.js";
|
|
88
88
|
import "./progress-HNhsbm0E.js";
|
|
89
|
-
import "./memory-cli-
|
|
89
|
+
import "./memory-cli-DotHyA76.js";
|
|
90
90
|
import "./logging-Czh4x_NQ.js";
|
|
91
|
-
import "./replies-
|
|
92
|
-
import "./pi-tools.policy-
|
|
93
|
-
import "./model-
|
|
91
|
+
import "./replies-DzsYQ8Md.js";
|
|
92
|
+
import "./pi-tools.policy-BdGVEMZn.js";
|
|
93
|
+
import "./model-DsMHOvMn.js";
|
|
94
94
|
import { r as parseSemver } from "./runtime-guard-DfRLODeV.js";
|
|
95
|
-
import "./program-context-
|
|
95
|
+
import "./program-context-ByiEP1Lk.js";
|
|
96
96
|
import "./catalog-DsC3JTw1.js";
|
|
97
|
-
import "./skills-status-
|
|
97
|
+
import "./skills-status-iltfI_bO.js";
|
|
98
98
|
import { n as inheritOptionFromParent } from "./command-options-nJfiotBs.js";
|
|
99
99
|
import { n as stylePromptMessage } from "./prompt-style-BEDZROvQ.js";
|
|
100
100
|
import "./note-DlaPViz1.js";
|
|
101
|
-
import "./plugin-auto-enable-
|
|
102
|
-
import "./install-safe-path-
|
|
103
|
-
import "./npm-registry-spec-
|
|
104
|
-
import "./skill-scanner-
|
|
105
|
-
import "./installs-
|
|
101
|
+
import "./plugin-auto-enable-B_lNp6yM.js";
|
|
102
|
+
import "./install-safe-path-D5gi-nfu.js";
|
|
103
|
+
import "./npm-registry-spec-YMWTMnm_.js";
|
|
104
|
+
import "./skill-scanner-BBwesm0w.js";
|
|
105
|
+
import "./installs-DF_LhGX6.js";
|
|
106
106
|
import "./channels-status-issues-mROqdfm_.js";
|
|
107
|
-
import { r as installCompletion } from "./completion-cli-
|
|
108
|
-
import "./daemon-runtime-
|
|
109
|
-
import "./onboard-helpers
|
|
110
|
-
import "./systemd-
|
|
111
|
-
import { t as resolveGatewayService } from "./service-
|
|
112
|
-
import "./lifecycle-core-
|
|
113
|
-
import "./systemd-hints-
|
|
114
|
-
import { i as runDaemonInstall, r as runDaemonRestart } from "./daemon-cli-
|
|
115
|
-
import "./diagnostics-
|
|
107
|
+
import { r as installCompletion } from "./completion-cli-Bc1jojml.js";
|
|
108
|
+
import "./daemon-runtime-tZgIbDPz.js";
|
|
109
|
+
import "./onboard-helpers---sZ9pdZ.js";
|
|
110
|
+
import "./systemd-DRpQb_L1.js";
|
|
111
|
+
import { t as resolveGatewayService } from "./service-CyEDtYLq.js";
|
|
112
|
+
import "./lifecycle-core-Bvdl2ShM.js";
|
|
113
|
+
import "./systemd-hints-DR4u43WA.js";
|
|
114
|
+
import { i as runDaemonInstall, r as runDaemonRestart } from "./daemon-cli-fC2R9YZd.js";
|
|
115
|
+
import "./diagnostics-tVJR9V0_.js";
|
|
116
116
|
import { t as renderTable } from "./table-D902H0x3.js";
|
|
117
|
-
import "./health-
|
|
118
|
-
import "./control-ui-assets-
|
|
119
|
-
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, d as formatUpdateChannelLabel, g as resolveUpdateChannelDisplay, h as resolveEffectiveUpdateChannel, m as normalizeUpdateChannel, n as compareSemverStrings, r as fetchNpmTagVersion, s as DEFAULT_GIT_CHANNEL, t as checkUpdateStatus, u as channelToNpmTag } from "./update-check-
|
|
120
|
-
import "./dm-policy-shared-
|
|
121
|
-
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-
|
|
122
|
-
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-
|
|
117
|
+
import "./health-DZ0aipDZ.js";
|
|
118
|
+
import "./control-ui-assets-DuDhl0co.js";
|
|
119
|
+
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, d as formatUpdateChannelLabel, g as resolveUpdateChannelDisplay, h as resolveEffectiveUpdateChannel, m as normalizeUpdateChannel, n as compareSemverStrings, r as fetchNpmTagVersion, s as DEFAULT_GIT_CHANNEL, t as checkUpdateStatus, u as channelToNpmTag } from "./update-check-CxBGAP1E.js";
|
|
120
|
+
import "./dm-policy-shared-CBlUyDSX.js";
|
|
121
|
+
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-F4CbQCxF.js";
|
|
122
|
+
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-C4Uy75eP.js";
|
|
123
123
|
import "./logging-CoYSc9bY.js";
|
|
124
|
-
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-
|
|
125
|
-
import "./doctor-config-flow-
|
|
126
|
-
import "./systemd-linger-
|
|
124
|
+
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-CWEjB8uS.js";
|
|
125
|
+
import "./doctor-config-flow-30ZEvATb.js";
|
|
126
|
+
import "./systemd-linger-BQQl5RXN.js";
|
|
127
127
|
import "./health-format-CUEM0lJl.js";
|
|
128
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
129
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
128
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-DvrG_zWV.js";
|
|
129
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-B6OPl_GZ.js";
|
|
130
130
|
import path from "node:path";
|
|
131
131
|
import os from "node:os";
|
|
132
|
-
import
|
|
132
|
+
import fs from "node:fs/promises";
|
|
133
133
|
import { spawn, spawnSync } from "node:child_process";
|
|
134
134
|
import { confirm, isCancel, spinner } from "@clack/prompts";
|
|
135
135
|
|
|
@@ -172,7 +172,7 @@ async function resolveTargetVersion(tag, timeoutMs) {
|
|
|
172
172
|
}
|
|
173
173
|
async function isGitCheckout(root) {
|
|
174
174
|
try {
|
|
175
|
-
await
|
|
175
|
+
await fs.stat(path.join(root, ".git"));
|
|
176
176
|
return true;
|
|
177
177
|
} catch {
|
|
178
178
|
return false;
|
|
@@ -184,7 +184,7 @@ async function isCorePackage(root) {
|
|
|
184
184
|
}
|
|
185
185
|
async function isEmptyDir(targetPath) {
|
|
186
186
|
try {
|
|
187
|
-
return (await
|
|
187
|
+
return (await fs.readdir(targetPath)).length === 0;
|
|
188
188
|
} catch {
|
|
189
189
|
return false;
|
|
190
190
|
}
|
|
@@ -581,7 +581,7 @@ del "%~f0"
|
|
|
581
581
|
`;
|
|
582
582
|
} else return null;
|
|
583
583
|
const scriptPath = path.join(tmpDir, filename);
|
|
584
|
-
await
|
|
584
|
+
await fs.writeFile(scriptPath, scriptContent, { mode: 493 });
|
|
585
585
|
return scriptPath;
|
|
586
586
|
} catch {
|
|
587
587
|
return null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { f as pathExists } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
3
|
-
import { h as trimLogTail } from "./session-utils-
|
|
4
|
-
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-
|
|
5
|
-
import { c as DEFAULT_PACKAGE_CHANNEL, f as isBetaTag, l as DEV_BRANCH, n as compareSemverStrings, o as detectPackageManager$1, p as isStableTag, u as channelToNpmTag } from "./update-check-
|
|
3
|
+
import { h as trimLogTail } from "./session-utils-BZnPW904.js";
|
|
4
|
+
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-DuDhl0co.js";
|
|
5
|
+
import { c as DEFAULT_PACKAGE_CHANNEL, f as isBetaTag, l as DEV_BRANCH, n as compareSemverStrings, o as detectPackageManager$1, p as isStableTag, u as channelToNpmTag } from "./update-check-CxBGAP1E.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import os from "node:os";
|
|
8
|
-
import
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/infra/package-json.ts
|
|
11
11
|
async function readPackageVersion(root) {
|
|
12
12
|
try {
|
|
13
|
-
const raw = await
|
|
13
|
+
const raw = await fs.readFile(path.join(root, "package.json"), "utf-8");
|
|
14
14
|
const parsed = JSON.parse(raw);
|
|
15
15
|
return typeof parsed?.version === "string" ? parsed.version : null;
|
|
16
16
|
} catch {
|
|
@@ -19,7 +19,7 @@ async function readPackageVersion(root) {
|
|
|
19
19
|
}
|
|
20
20
|
async function readPackageName(root) {
|
|
21
21
|
try {
|
|
22
|
-
const raw = await
|
|
22
|
+
const raw = await fs.readFile(path.join(root, "package.json"), "utf-8");
|
|
23
23
|
const name = JSON.parse(raw)?.name?.trim();
|
|
24
24
|
return name ? name : null;
|
|
25
25
|
} catch {
|
|
@@ -39,7 +39,7 @@ const NPM_GLOBAL_INSTALL_QUIET_FLAGS = [
|
|
|
39
39
|
];
|
|
40
40
|
async function tryRealpath(targetPath) {
|
|
41
41
|
try {
|
|
42
|
-
return await
|
|
42
|
+
return await fs.realpath(targetPath);
|
|
43
43
|
} catch {
|
|
44
44
|
return path.resolve(targetPath);
|
|
45
45
|
}
|
|
@@ -140,7 +140,7 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
140
140
|
const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
|
|
141
141
|
let entries = [];
|
|
142
142
|
try {
|
|
143
|
-
entries = await
|
|
143
|
+
entries = await fs.readdir(root);
|
|
144
144
|
} catch {
|
|
145
145
|
return { removed };
|
|
146
146
|
}
|
|
@@ -148,8 +148,8 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
148
148
|
if (!entry.startsWith(prefix)) continue;
|
|
149
149
|
const target = path.join(root, entry);
|
|
150
150
|
try {
|
|
151
|
-
if (!(await
|
|
152
|
-
await
|
|
151
|
+
if (!(await fs.lstat(target)).isDirectory()) continue;
|
|
152
|
+
await fs.rm(target, {
|
|
153
153
|
recursive: true,
|
|
154
154
|
force: true
|
|
155
155
|
});
|
|
@@ -261,7 +261,7 @@ async function findPackageRoot(candidates) {
|
|
|
261
261
|
for (let i = 0; i < 12; i += 1) {
|
|
262
262
|
const pkgPath = path.join(current, "package.json");
|
|
263
263
|
try {
|
|
264
|
-
const raw = await
|
|
264
|
+
const raw = await fs.readFile(pkgPath, "utf-8");
|
|
265
265
|
const name = JSON.parse(raw)?.name?.trim();
|
|
266
266
|
if (name && CORE_PACKAGE_NAMES.has(name)) return current;
|
|
267
267
|
} catch {}
|
|
@@ -543,7 +543,7 @@ async function runGatewayUpdate(opts = {}) {
|
|
|
543
543
|
durationMs: Date.now() - startedAt
|
|
544
544
|
};
|
|
545
545
|
const manager = await detectPackageManager(gitRoot);
|
|
546
|
-
const preflightRoot = await
|
|
546
|
+
const preflightRoot = await fs.mkdtemp(path.join(os.tmpdir(), "symi-update-preflight-"));
|
|
547
547
|
const worktreeDir = path.join(preflightRoot, "worktree");
|
|
548
548
|
const worktreeStep = await runStep(step("preflight worktree", [
|
|
549
549
|
"git",
|
|
@@ -557,7 +557,7 @@ async function runGatewayUpdate(opts = {}) {
|
|
|
557
557
|
], gitRoot));
|
|
558
558
|
steps.push(worktreeStep);
|
|
559
559
|
if (worktreeStep.exitCode !== 0) {
|
|
560
|
-
await
|
|
560
|
+
await fs.rm(preflightRoot, {
|
|
561
561
|
recursive: true,
|
|
562
562
|
force: true
|
|
563
563
|
}).catch(() => {});
|
|
@@ -621,7 +621,7 @@ async function runGatewayUpdate(opts = {}) {
|
|
|
621
621
|
cwd: gitRoot,
|
|
622
622
|
timeoutMs
|
|
623
623
|
}).catch(() => null);
|
|
624
|
-
await
|
|
624
|
+
await fs.rm(preflightRoot, {
|
|
625
625
|
recursive: true,
|
|
626
626
|
force: true
|
|
627
627
|
}).catch(() => {});
|
|
@@ -769,7 +769,7 @@ async function runGatewayUpdate(opts = {}) {
|
|
|
769
769
|
durationMs: Date.now() - startedAt
|
|
770
770
|
};
|
|
771
771
|
const doctorEntry = path.join(gitRoot, "symi.mjs");
|
|
772
|
-
if (!await
|
|
772
|
+
if (!await fs.stat(doctorEntry).then(() => true).catch(() => false)) {
|
|
773
773
|
steps.push({
|
|
774
774
|
name: "symi doctor entry",
|
|
775
775
|
command: `verify ${doctorEntry}`,
|
|
@@ -4,15 +4,15 @@ import { a as displayPath } from "./utils-CTPsqyE_.js";
|
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
7
|
-
import "./agent-scope-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-
|
|
7
|
+
import "./agent-scope-DOrZjOnW.js";
|
|
8
|
+
import "./model-selection-7wdmO-Iw.js";
|
|
9
|
+
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-D7SS4vdk.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 "./frontmatter-B_jqcova.js";
|
|
15
|
-
import "./skills-
|
|
15
|
+
import "./skills-BwDmcZdt.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-TQwptN6q.js";
|
|
17
17
|
import { C as normalizeServePath, S as normalizeHooksPath, T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, a as ensureTopic, b as generateHookToken, c as DEFAULT_GMAIL_LABEL, d as DEFAULT_GMAIL_SERVE_BIND, f as DEFAULT_GMAIL_SERVE_PATH, g as buildDefaultHookUrl, h as DEFAULT_GMAIL_TOPIC, i as ensureTailscaleEndpoint, l as DEFAULT_GMAIL_MAX_BYTES, m as DEFAULT_GMAIL_SUBSCRIPTION, n as ensureGcloudAuth, o as resolveProjectIdFromGogCredentials, p as DEFAULT_GMAIL_SERVE_PORT, r as ensureSubscription, s as runGcloud, t as ensureDependency, u as DEFAULT_GMAIL_RENEW_MINUTES, v as buildGogWatchStartArgs, w as parseTopicPath, x as mergeHookPresets, y as buildTopicPath } from "./gmail-setup-utils-D91ZFrEZ.js";
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as escapeRegExp } from "./utils-CTPsqyE_.js";
|
|
2
|
-
import { t as registerBrowserRoutes } from "./routes-
|
|
2
|
+
import { t as registerBrowserRoutes } from "./routes-C-rIjd8Z.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
5
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-DOrZjOnW.js";
|
|
2
2
|
|
|
3
3
|
//#region src/agents/workspace-dirs.ts
|
|
4
4
|
function listAgentWorkspaceDirs(cfg) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import fs$1 from "node:fs/promises";
|
|
2
2
|
|
|
3
3
|
//#region src/infra/wsl.ts
|
|
4
4
|
let wslCached = null;
|
|
@@ -13,7 +13,7 @@ async function isWSL() {
|
|
|
13
13
|
return wslCached;
|
|
14
14
|
}
|
|
15
15
|
try {
|
|
16
|
-
const release = await
|
|
16
|
+
const release = await fs$1.readFile("/proc/sys/kernel/osrelease", "utf8");
|
|
17
17
|
wslCached = release.toLowerCase().includes("microsoft") || release.toLowerCase().includes("wsl");
|
|
18
18
|
} catch {
|
|
19
19
|
wslCached = false;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AnyAgentTool } from "./common.js";
|
|
2
|
-
/**
|
|
3
|
-
* Filter the tool palette by each tool's `checkFn`. Tools without a
|
|
4
|
-
* checkFn pass through unchanged. Throwing checkFns are treated as
|
|
5
|
-
* available (defensive). The `SYMI_FORCE_ALL_TOOLS=1` env bypasses the
|
|
6
|
-
* filter entirely.
|
|
7
|
-
*
|
|
8
|
-
* Pure function — does not mutate the input array.
|
|
9
|
-
*/
|
|
10
|
-
export declare function filterToolsByAvailability(tools: readonly AnyAgentTool[]): AnyAgentTool[];
|