@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
|
@@ -2,27 +2,27 @@ import { j as theme } from "./registry-Sbac4a4z.js";
|
|
|
2
2
|
import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
|
|
3
3
|
import { u as isRecord } from "./utils-CTPsqyE_.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
5
|
-
import { b as ensureAuthProfileStore, c as resolveApiKeyForProfile, h as listProfilesForProvider, m as dedupeProfileIds, n as resolveAuthProfileOrder } from "./auth-profiles-
|
|
5
|
+
import { b as ensureAuthProfileStore, c as resolveApiKeyForProfile, h as listProfilesForProvider, m as dedupeProfileIds, n as resolveAuthProfileOrder } from "./auth-profiles-D5nYBj_Z.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
7
7
|
import { o as normalizeAgentId, p as DEFAULT_ACCOUNT_ID, s as normalizeMainKey, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-DUSb7CCb.js";
|
|
8
8
|
import { i as logDebug } from "./exec-DuYbft0z.js";
|
|
9
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
10
|
-
import { C as DEFAULT_MODEL, S as DEFAULT_CONTEXT_TOKENS, d as parseModelRef, h as resolveDefaultModelForAgent, m as resolveConfiguredModelRef, u as normalizeProviderId, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
9
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-Bnsyyeci.js";
|
|
10
|
+
import { C as DEFAULT_MODEL, S as DEFAULT_CONTEXT_TOKENS, d as parseModelRef, h as resolveDefaultModelForAgent, m as resolveConfiguredModelRef, u as normalizeProviderId, w as DEFAULT_PROVIDER } from "./model-selection-CCTzD29o.js";
|
|
11
11
|
import { n as normalizeSecretInput } from "./normalize-secret-input-DjGU5EXe.js";
|
|
12
12
|
import { t as resolveSymiAgentDir } from "./agent-paths-BbZSGrUA.js";
|
|
13
|
-
import { i as loadConfig } from "./config-
|
|
14
|
-
import { B as resolveAgentMainSessionKey, D as resolveSessionTranscriptCandidates, E as readSessionTitleFieldsFromTranscript, H as resolveMainSessionKey, K as buildGroupDisplayName, R as resolveFreshSessionTotalTokens, o as loadSessionStore, y as normalizeSessionDeliveryFields, z as canonicalizeMainSessionAlias } from "./sessions-
|
|
13
|
+
import { i as loadConfig } from "./config-D-PYSlE8.js";
|
|
14
|
+
import { B as resolveAgentMainSessionKey, D as resolveSessionTranscriptCandidates, E as readSessionTitleFieldsFromTranscript, H as resolveMainSessionKey, K as buildGroupDisplayName, R as resolveFreshSessionTotalTokens, o as loadSessionStore, y as normalizeSessionDeliveryFields, z as canonicalizeMainSessionAlias } from "./sessions-aSo5jsmg.js";
|
|
15
15
|
import { n as listChannelPlugins } from "./plugins-CF5skkHh.js";
|
|
16
16
|
import { c as resolveStorePath } from "./paths-BtvQ7JvU.js";
|
|
17
|
-
import { n as getCustomProviderApiKey } from "./model-auth-
|
|
18
|
-
import { t as ensureSymiModelsJson } from "./models-config-
|
|
17
|
+
import { n as getCustomProviderApiKey } from "./model-auth-_C07_3Yr.js";
|
|
18
|
+
import { t as ensureSymiModelsJson } from "./models-config-Dp5-tBqs.js";
|
|
19
19
|
import { t as bindAbortRelay } from "./fetch-timeout-BhdrdVp5.js";
|
|
20
20
|
import { n as formatTimeAgo } from "./format-relative-D4GQsWlP.js";
|
|
21
21
|
import crypto from "node:crypto";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import fs from "node:fs";
|
|
24
24
|
import os from "node:os";
|
|
25
|
-
import
|
|
25
|
+
import fsPromises from "node:fs/promises";
|
|
26
26
|
|
|
27
27
|
//#region src/logging/redact-identifier.ts
|
|
28
28
|
function sha256HexPrefix(value, len = 12) {
|
|
@@ -1432,27 +1432,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
1434
1434
|
const filePath = resolveRestartSentinelPath(env);
|
|
1435
|
-
await
|
|
1435
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
1436
1436
|
const data = {
|
|
1437
1437
|
version: 1,
|
|
1438
1438
|
payload
|
|
1439
1439
|
};
|
|
1440
|
-
await
|
|
1440
|
+
await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
1441
1441
|
return filePath;
|
|
1442
1442
|
}
|
|
1443
1443
|
async function readRestartSentinel(env = process.env) {
|
|
1444
1444
|
const filePath = resolveRestartSentinelPath(env);
|
|
1445
1445
|
try {
|
|
1446
|
-
const raw = await
|
|
1446
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
1447
1447
|
let parsed;
|
|
1448
1448
|
try {
|
|
1449
1449
|
parsed = JSON.parse(raw);
|
|
1450
1450
|
} catch {
|
|
1451
|
-
await
|
|
1451
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
1452
1452
|
return null;
|
|
1453
1453
|
}
|
|
1454
1454
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
1455
|
-
await
|
|
1455
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
1456
1456
|
return null;
|
|
1457
1457
|
}
|
|
1458
1458
|
return parsed;
|
|
@@ -1464,7 +1464,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
1464
1464
|
const filePath = resolveRestartSentinelPath(env);
|
|
1465
1465
|
const parsed = await readRestartSentinel(env);
|
|
1466
1466
|
if (!parsed) return null;
|
|
1467
|
-
await
|
|
1467
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
1468
1468
|
return parsed;
|
|
1469
1469
|
}
|
|
1470
1470
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -3,7 +3,7 @@ import { d as normalizeE164 } from "./utils-CTPsqyE_.js";
|
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
4
4
|
import { h as normalizeOptionalAccountId, o as normalizeAgentId, r as buildAgentMainSessionKey, s as normalizeMainKey, t as DEFAULT_AGENT_ID } from "./session-key-DUSb7CCb.js";
|
|
5
5
|
import { n as isPidAlive, t as resolveProcessScopedMap } from "./process-scoped-map-lWFQjQ3p.js";
|
|
6
|
-
import { f as parseDurationMs, i as loadConfig, p as parseByteSize } from "./config-
|
|
6
|
+
import { f as parseDurationMs, i as loadConfig, p as parseByteSize } from "./config-D-PYSlE8.js";
|
|
7
7
|
import { s as normalizeHyphenSlug, t as getChannelDock } from "./dock-hF45sewN.js";
|
|
8
8
|
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-DgjXWzf-.js";
|
|
9
9
|
import { t as normalizeChatType } from "./chat-type-CUJqUqwu.js";
|
|
@@ -17,7 +17,7 @@ import crypto from "node:crypto";
|
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import fs from "node:fs";
|
|
19
19
|
import os from "node:os";
|
|
20
|
-
import
|
|
20
|
+
import fsPromises from "node:fs/promises";
|
|
21
21
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
22
22
|
|
|
23
23
|
//#region src/agents/session-write-lock.ts
|
|
@@ -82,7 +82,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
82
82
|
await held.handle.close();
|
|
83
83
|
} catch {}
|
|
84
84
|
try {
|
|
85
|
-
await
|
|
85
|
+
await fsPromises.rm(held.lockPath, { force: true });
|
|
86
86
|
} catch {}
|
|
87
87
|
})();
|
|
88
88
|
try {
|
|
@@ -161,7 +161,7 @@ function registerCleanupHandlers() {
|
|
|
161
161
|
}
|
|
162
162
|
async function readLockPayload(lockPath) {
|
|
163
163
|
try {
|
|
164
|
-
const raw = await
|
|
164
|
+
const raw = await fsPromises.readFile(lockPath, "utf8");
|
|
165
165
|
const parsed = JSON.parse(raw);
|
|
166
166
|
const payload = {};
|
|
167
167
|
if (typeof parsed.pid === "number") payload.pid = parsed.pid;
|
|
@@ -198,7 +198,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
198
198
|
const nowMs = params.nowMs ?? Date.now();
|
|
199
199
|
let entries = [];
|
|
200
200
|
try {
|
|
201
|
-
entries = await
|
|
201
|
+
entries = await fsPromises.readdir(sessionsDir, { withFileTypes: true });
|
|
202
202
|
} catch (err) {
|
|
203
203
|
if (err.code === "ENOENT") return {
|
|
204
204
|
locks: [],
|
|
@@ -217,7 +217,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
217
217
|
removed: false
|
|
218
218
|
};
|
|
219
219
|
if (lockInfo.stale && removeStale) {
|
|
220
|
-
await
|
|
220
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
221
221
|
lockInfo.removed = true;
|
|
222
222
|
cleaned.push(lockInfo);
|
|
223
223
|
params.log?.warn?.(`removed stale session lock: ${lockPath} (${lockInfo.staleReasons.join(", ") || "unknown"})`);
|
|
@@ -236,10 +236,10 @@ async function acquireSessionWriteLock(params) {
|
|
|
236
236
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
237
237
|
const sessionFile = path.resolve(params.sessionFile);
|
|
238
238
|
const sessionDir = path.dirname(sessionFile);
|
|
239
|
-
await
|
|
239
|
+
await fsPromises.mkdir(sessionDir, { recursive: true });
|
|
240
240
|
let normalizedDir = sessionDir;
|
|
241
241
|
try {
|
|
242
|
-
normalizedDir = await
|
|
242
|
+
normalizedDir = await fsPromises.realpath(sessionDir);
|
|
243
243
|
} catch {}
|
|
244
244
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
245
245
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -256,7 +256,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
256
256
|
while (Date.now() - startedAt < timeoutMs) {
|
|
257
257
|
attempt += 1;
|
|
258
258
|
try {
|
|
259
|
-
const handle = await
|
|
259
|
+
const handle = await fsPromises.open(lockPath, "wx");
|
|
260
260
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
261
261
|
await handle.writeFile(JSON.stringify({
|
|
262
262
|
pid: process.pid,
|
|
@@ -276,7 +276,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
276
276
|
} catch (err) {
|
|
277
277
|
if (err.code !== "EEXIST") throw err;
|
|
278
278
|
if (inspectLockPayload(await readLockPayload(lockPath), staleMs, Date.now()).stale) {
|
|
279
|
-
await
|
|
279
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
280
280
|
continue;
|
|
281
281
|
}
|
|
282
282
|
const delay = Math.min(1e3, 50 * attempt);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
2
2
|
import { o as normalizeAgentId } from "./session-key-DUSb7CCb.js";
|
|
3
|
-
import { n as listAgentIds } from "./agent-scope-
|
|
4
|
-
import { _ as resolveModelRefFromString, c as modelKey, r as buildModelAliasIndex, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
5
|
-
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-
|
|
3
|
+
import { n as listAgentIds } from "./agent-scope-Bnsyyeci.js";
|
|
4
|
+
import { _ as resolveModelRefFromString, c as modelKey, r as buildModelAliasIndex, w as DEFAULT_PROVIDER } from "./model-selection-CCTzD29o.js";
|
|
5
|
+
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-D-PYSlE8.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/models/shared.ts
|
|
8
8
|
const ensureFlagCompatibility = (opts) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
3
3
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-ChnKXZKi.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-Cm4-5AH9.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
const toOptionString = (value) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveAgentWorkspaceDir, n as listAgentIds } from "./agent-scope-
|
|
3
|
-
import { n as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
4
|
-
import { n as listChatCommands } from "./commands-registry-
|
|
5
|
-
import { t as getRemoteSkillEligibility } from "./skills-remote-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, n as listAgentIds } from "./agent-scope-Bnsyyeci.js";
|
|
3
|
+
import { n as buildWorkspaceSkillCommandSpecs } from "./skills-CYcBtLGH.js";
|
|
4
|
+
import { n as listChatCommands } from "./commands-registry-BjcGLk4v.js";
|
|
5
|
+
import { t as getRemoteSkillEligibility } from "./skills-remote-BcRQTDsZ.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
|
|
8
8
|
//#region src/auto-reply/skill-commands.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as isPathInside } from "./legacy-names-BQ9vKISY.js";
|
|
2
2
|
import { i as hasErrnoCode } from "./errors-bI7Tdx75.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/security/skill-scanner.ts
|
|
7
7
|
const SCANNABLE_EXTENSIONS = new Set([
|
|
@@ -154,7 +154,7 @@ async function walkDirWithLimit(dirPath, maxFiles) {
|
|
|
154
154
|
while (stack.length > 0 && files.length < maxFiles) {
|
|
155
155
|
const currentDir = stack.pop();
|
|
156
156
|
if (!currentDir) break;
|
|
157
|
-
const entries = await
|
|
157
|
+
const entries = await fsPromises.readdir(currentDir, { withFileTypes: true });
|
|
158
158
|
for (const entry of entries) {
|
|
159
159
|
if (files.length >= maxFiles) break;
|
|
160
160
|
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
@@ -176,7 +176,7 @@ async function resolveForcedFiles(params) {
|
|
|
176
176
|
if (seen.has(includePath)) continue;
|
|
177
177
|
let st = null;
|
|
178
178
|
try {
|
|
179
|
-
st = await
|
|
179
|
+
st = await fsPromises.stat(includePath);
|
|
180
180
|
} catch (err) {
|
|
181
181
|
if (hasErrnoCode(err, "ENOENT")) continue;
|
|
182
182
|
throw err;
|
|
@@ -208,14 +208,14 @@ async function collectScannableFiles(dirPath, opts) {
|
|
|
208
208
|
async function readScannableSource(filePath, maxFileBytes) {
|
|
209
209
|
let st = null;
|
|
210
210
|
try {
|
|
211
|
-
st = await
|
|
211
|
+
st = await fsPromises.stat(filePath);
|
|
212
212
|
} catch (err) {
|
|
213
213
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
214
214
|
throw err;
|
|
215
215
|
}
|
|
216
216
|
if (!st?.isFile() || st.size > maxFileBytes) return null;
|
|
217
217
|
try {
|
|
218
|
-
return await
|
|
218
|
+
return await fsPromises.readFile(filePath, "utf-8");
|
|
219
219
|
} catch (err) {
|
|
220
220
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
221
221
|
throw err;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
3
|
-
import { i as normalizeSkillFilter, n as resolveSymiPackageRootSync } from "./symi-root-
|
|
3
|
+
import { i as normalizeSkillFilter, n as resolveSymiPackageRootSync } from "./symi-root-DeCVdZB4.js";
|
|
4
4
|
import { d as resolveEnableState, f as resolveMemorySlotDecision, h as isDangerousHostEnvVarName, n as loadPluginManifestRegistry, u as normalizePluginsConfig } from "./manifest-registry-D1MLZEjS.js";
|
|
5
5
|
import { a as resolveSymiManifestBlock, c as resolveSymiManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseSymiManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveSymiManifestInstall, p as resolveRuntimePlatform, r as parseFrontmatterBool, s as resolveSymiManifestOs, t as getFrontmatterString, u as evaluateRuntimeRequires } from "./frontmatter-B_jqcova.js";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
10
|
-
import
|
|
10
|
+
import fsPromises from "node:fs/promises";
|
|
11
11
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
12
12
|
|
|
13
13
|
//#region src/agents/skills/frontmatter.ts
|
|
@@ -392,7 +392,7 @@ async function assertNoSymlinkEscape(relative, root, options) {
|
|
|
392
392
|
const isLast = idx === parts.length - 1;
|
|
393
393
|
current = path.join(current, part);
|
|
394
394
|
try {
|
|
395
|
-
if ((await
|
|
395
|
+
if ((await fsPromises.lstat(current)).isSymbolicLink()) {
|
|
396
396
|
if (options?.allowFinalSymlink && isLast) return;
|
|
397
397
|
const target = await tryRealpath(current);
|
|
398
398
|
if (!isPathInside(rootReal, target)) throw new Error(`Symlink escapes sandbox root (${shortPath(rootReal)}): ${shortPath(current)}`);
|
|
@@ -406,7 +406,7 @@ async function assertNoSymlinkEscape(relative, root, options) {
|
|
|
406
406
|
}
|
|
407
407
|
async function tryRealpath(value) {
|
|
408
408
|
try {
|
|
409
|
-
return await
|
|
409
|
+
return await fsPromises.realpath(value);
|
|
410
410
|
} catch {
|
|
411
411
|
return path.resolve(value);
|
|
412
412
|
}
|
|
@@ -4,9 +4,9 @@ import { v as shortenHomePath } 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 "./exec-DuYbft0z.js";
|
|
7
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import { i as loadConfig } from "./config-
|
|
7
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-Bnsyyeci.js";
|
|
8
|
+
import "./model-selection-CCTzD29o.js";
|
|
9
|
+
import { i as loadConfig } from "./config-D-PYSlE8.js";
|
|
10
10
|
import "./boolean-CbZoNRMn.js";
|
|
11
11
|
import "./env-BRnPI9sO.js";
|
|
12
12
|
import "./shell-env-Dc3iU7HK.js";
|
|
@@ -236,7 +236,7 @@ function registerSkillsCli(program) {
|
|
|
236
236
|
try {
|
|
237
237
|
const config = loadConfig();
|
|
238
238
|
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
|
239
|
-
const { buildWorkspaceSkillStatus } = await import("./skills-status-
|
|
239
|
+
const { buildWorkspaceSkillStatus } = await import("./skills-status-CbSdFlvm.js").then((n) => n.n);
|
|
240
240
|
const report = buildWorkspaceSkillStatus(workspaceDir, { config });
|
|
241
241
|
defaultRuntime.log(formatSkillsList(report, opts));
|
|
242
242
|
} catch (err) {
|
|
@@ -248,7 +248,7 @@ function registerSkillsCli(program) {
|
|
|
248
248
|
try {
|
|
249
249
|
const config = loadConfig();
|
|
250
250
|
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
|
251
|
-
const { buildWorkspaceSkillStatus } = await import("./skills-status-
|
|
251
|
+
const { buildWorkspaceSkillStatus } = await import("./skills-status-CbSdFlvm.js").then((n) => n.n);
|
|
252
252
|
const report = buildWorkspaceSkillStatus(workspaceDir, { config });
|
|
253
253
|
defaultRuntime.log(formatSkillInfo(report, name, opts));
|
|
254
254
|
} catch (err) {
|
|
@@ -260,7 +260,7 @@ function registerSkillsCli(program) {
|
|
|
260
260
|
try {
|
|
261
261
|
const config = loadConfig();
|
|
262
262
|
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
|
263
|
-
const { buildWorkspaceSkillStatus } = await import("./skills-status-
|
|
263
|
+
const { buildWorkspaceSkillStatus } = await import("./skills-status-CbSdFlvm.js").then((n) => n.n);
|
|
264
264
|
const report = buildWorkspaceSkillStatus(workspaceDir, { config });
|
|
265
265
|
defaultRuntime.log(formatSkillsCheck(report, opts));
|
|
266
266
|
} catch (err) {
|
|
@@ -272,7 +272,7 @@ function registerSkillsCli(program) {
|
|
|
272
272
|
try {
|
|
273
273
|
const config = loadConfig();
|
|
274
274
|
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
|
275
|
-
const { buildWorkspaceSkillStatus } = await import("./skills-status-
|
|
275
|
+
const { buildWorkspaceSkillStatus } = await import("./skills-status-CbSdFlvm.js").then((n) => n.n);
|
|
276
276
|
const report = buildWorkspaceSkillStatus(workspaceDir, { config });
|
|
277
277
|
defaultRuntime.log(formatSkillsList(report, {}));
|
|
278
278
|
} catch (err) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h as resolveUserPath, p as resolveConfigDir, s as ensureDir } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
3
3
|
import { d as hasBinary } from "./frontmatter-B_jqcova.js";
|
|
4
|
-
import { i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences, x as resolveSkillKey } from "./skills-
|
|
4
|
+
import { i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences, x as resolveSkillKey } from "./skills-CYcBtLGH.js";
|
|
5
5
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-JHxT9355.js";
|
|
6
6
|
import { t as resolveBrewExecutable } from "./brew-CHxBxbYV.js";
|
|
7
7
|
import { t as isWithinDir } from "./path-safety-C0C4YlKw.js";
|
|
8
|
-
import { a as extractArchive$1, d as resolveArchiveOutputPath, f as stripArchivePath, p as validateArchiveEntryPath, r as safePathSegmentHashed, u as isWindowsDrivePath } from "./install-safe-path-
|
|
9
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
8
|
+
import { a as extractArchive$1, d as resolveArchiveOutputPath, f as stripArchivePath, p as validateArchiveEntryPath, r as safePathSegmentHashed, u as isWindowsDrivePath } from "./install-safe-path-BwMMOh9z.js";
|
|
9
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-CFqMkfZW.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import fs from "node:fs";
|
|
12
12
|
import { pipeline } from "node:stream/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
3
|
-
import { i as loadWorkspaceSkillEntries, s as resolvePluginSkillDirs } from "./skills-
|
|
4
|
-
import { a as upsertPendingPairingRequest, c as writeJsonAtomic, i as resolvePairingPaths, n as verifyPairingToken, o as createAsyncLock, r as pruneExpiredPending, s as readJsonFile, t as generatePairingToken } from "./pairing-token-
|
|
5
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
3
|
+
import { i as loadWorkspaceSkillEntries, s as resolvePluginSkillDirs } from "./skills-CYcBtLGH.js";
|
|
4
|
+
import { a as upsertPendingPairingRequest, c as writeJsonAtomic, i as resolvePairingPaths, n as verifyPairingToken, o as createAsyncLock, r as pruneExpiredPending, s as readJsonFile, t as generatePairingToken } from "./pairing-token-B703A1U3.js";
|
|
5
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-DCICLTHx.js";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { t as CONFIG_DIR } from "./utils-CTPsqyE_.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
4
4
|
import { d as hasBinary } from "./frontmatter-B_jqcova.js";
|
|
5
|
-
import { _ as isBundledSkillAllowed, b as resolveSkillConfig, c as resolveBundledSkillsDir, i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences, v as isConfigPathTruthy, y as resolveBundledAllowlist } from "./skills-
|
|
5
|
+
import { _ as isBundledSkillAllowed, b as resolveSkillConfig, c as resolveBundledSkillsDir, i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences, v as isConfigPathTruthy, y as resolveBundledAllowlist } from "./skills-CYcBtLGH.js";
|
|
6
6
|
import { t as evaluateEntryMetadataRequirementsForCurrentPlatform } from "./entry-status-B63VEeeK.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
2
2
|
import { n as redactSensitiveText } from "./redact-B3O-RBO1.js";
|
|
3
3
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-BtvQ7JvU.js";
|
|
4
|
-
import { a as hashText } from "./internal-
|
|
4
|
+
import { a as hashText } from "./internal-csqU78gW.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fsPromises from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region src/memory/session-files.ts
|
|
10
10
|
const log = createSubsystemLogger("memory");
|
|
11
11
|
async function listSessionFilesForAgent(agentId) {
|
|
12
12
|
const dir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
13
13
|
try {
|
|
14
|
-
return (await
|
|
14
|
+
return (await fsPromises.readdir(dir, { withFileTypes: true })).filter((entry) => entry.isFile()).map((entry) => entry.name).filter((name) => name.endsWith(".jsonl")).map((name) => path.join(dir, name));
|
|
15
15
|
} catch {
|
|
16
16
|
return [];
|
|
17
17
|
}
|
|
@@ -41,8 +41,8 @@ function extractSessionText(content) {
|
|
|
41
41
|
}
|
|
42
42
|
async function buildSessionEntry(absPath) {
|
|
43
43
|
try {
|
|
44
|
-
const stat = await
|
|
45
|
-
const lines = (await
|
|
44
|
+
const stat = await fsPromises.stat(absPath);
|
|
45
|
+
const lines = (await fsPromises.readFile(absPath, "utf-8")).split("\n");
|
|
46
46
|
const collected = [];
|
|
47
47
|
const lineMap = [];
|
|
48
48
|
for (let jsonlIdx = 0; jsonlIdx < lines.length; jsonlIdx++) {
|
|
@@ -14,7 +14,7 @@ import { n as listChannelPlugins } from "./plugins-BsEhWvLn.js";
|
|
|
14
14
|
import { o as getTailnetHostname, s as readTailscaleStatusJson } from "./tailscale-FeJ1M0mP.js";
|
|
15
15
|
import { i as formatPortDiagnostics, n as inspectPortUsage } from "./ports-uA7P2qIK.js";
|
|
16
16
|
import { c as resolveStorePath } from "./paths-DtiEyjsC.js";
|
|
17
|
-
import { t as getMemorySearchManager } from "./memory-
|
|
17
|
+
import { t as getMemorySearchManager } from "./memory-Cypj1lBQ.js";
|
|
18
18
|
import { n as formatTimeAgo } from "./format-relative-CxLpEQOX.js";
|
|
19
19
|
import { t as getRemoteSkillEligibility } from "./skills-remote-DSGpkPJE.js";
|
|
20
20
|
import { _ as peekSystemEvents, b as formatChannelAllowFrom, d as formatUsageReportLines, n as sha256HexPrefix, o as readRestartSentinel, s as summarizeRestartSentinel, u as loadProviderUsageSummary, v as buildChannelSummary, y as buildChannelAccountSnapshot } from "./redact-identifier-CXvHJXk9.js";
|
|
@@ -2,41 +2,41 @@ import { A as isRich, j as theme, x as info } from "./registry-Sbac4a4z.js";
|
|
|
2
2
|
import { u as resolveGatewayPort } from "./paths-By0XjHBk.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
4
4
|
import { x as parseAgentSessionKey } from "./session-key-DUSb7CCb.js";
|
|
5
|
-
import { t as resolveSymiPackageRoot } from "./symi-root-
|
|
5
|
+
import { t as resolveSymiPackageRoot } from "./symi-root-DeCVdZB4.js";
|
|
6
6
|
import { n as runExec } from "./exec-DuYbft0z.js";
|
|
7
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
8
|
-
import { C as DEFAULT_MODEL, S as DEFAULT_CONTEXT_TOKENS, m as resolveConfiguredModelRef, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
9
|
-
import { N as VERSION, i as loadConfig, o as readConfigFileSnapshot } from "./config-
|
|
7
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-Bnsyyeci.js";
|
|
8
|
+
import { C as DEFAULT_MODEL, S as DEFAULT_CONTEXT_TOKENS, m as resolveConfiguredModelRef, w as DEFAULT_PROVIDER } from "./model-selection-CCTzD29o.js";
|
|
9
|
+
import { N as VERSION, i as loadConfig, o as readConfigFileSnapshot } from "./config-D-PYSlE8.js";
|
|
10
10
|
import { o as getTailnetHostname, s as readTailscaleStatusJson } from "./tailscale-DpKBMIvx.js";
|
|
11
|
-
import { a as inspectPortUsage, s as formatPortDiagnostics } from "./ports-
|
|
12
|
-
import { H as resolveMainSessionKey, R as resolveFreshSessionTotalTokens, o as loadSessionStore } from "./sessions-
|
|
11
|
+
import { a as inspectPortUsage, s as formatPortDiagnostics } from "./ports-CB_Iu83U.js";
|
|
12
|
+
import { H as resolveMainSessionKey, R as resolveFreshSessionTotalTokens, o as loadSessionStore } from "./sessions-aSo5jsmg.js";
|
|
13
13
|
import { n as listChannelPlugins } from "./plugins-CF5skkHh.js";
|
|
14
14
|
import { c as resolveStorePath } from "./paths-BtvQ7JvU.js";
|
|
15
|
-
import { A as sha256HexPrefix, D as buildChannelAccountSnapshot, E as buildChannelSummary, O as formatChannelAllowFrom, T as peekSystemEvents, _ as loadProviderUsageSummary, l as resolveSessionModelRef, m as summarizeRestartSentinel, n as classifySessionKey, p as readRestartSentinel, r as listAgentsForGateway, v as formatUsageReportLines, x as lookupContextTokens } from "./session-utils-
|
|
16
|
-
import { t as getMemorySearchManager } from "./memory-
|
|
17
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
15
|
+
import { A as sha256HexPrefix, D as buildChannelAccountSnapshot, E as buildChannelSummary, O as formatChannelAllowFrom, T as peekSystemEvents, _ as loadProviderUsageSummary, l as resolveSessionModelRef, m as summarizeRestartSentinel, n as classifySessionKey, p as readRestartSentinel, r as listAgentsForGateway, v as formatUsageReportLines, x as lookupContextTokens } from "./session-utils-lXjJoBxe.js";
|
|
16
|
+
import { t as getMemorySearchManager } from "./memory-DgDnTEcB.js";
|
|
17
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-CW8U1BPq.js";
|
|
18
18
|
import { n as formatTimeAgo } from "./format-relative-D4GQsWlP.js";
|
|
19
|
-
import { t as getRemoteSkillEligibility } from "./skills-remote-
|
|
19
|
+
import { t as getRemoteSkillEligibility } from "./skills-remote-BcRQTDsZ.js";
|
|
20
20
|
import { r as formatDurationPrecise } from "./format-duration-CIjmjQST.js";
|
|
21
21
|
import { n as withProgress } from "./progress-HNhsbm0E.js";
|
|
22
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
22
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-CbSdFlvm.js";
|
|
23
23
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DgsKk072.js";
|
|
24
24
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-mROqdfm_.js";
|
|
25
|
-
import { C as normalizeControlUiBasePath, g as resolveControlUiLinks } from "./onboard-helpers-
|
|
26
|
-
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-
|
|
25
|
+
import { C as normalizeControlUiBasePath, g as resolveControlUiLinks } from "./onboard-helpers-OB_xKQze.js";
|
|
26
|
+
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-Cm4-5AH9.js";
|
|
27
27
|
import { t as formatRuntimeStatusWithDetails } from "./runtime-status-BgZqic8M.js";
|
|
28
|
-
import { t as readLastGatewayErrorLine } from "./diagnostics-
|
|
28
|
+
import { t as readLastGatewayErrorLine } from "./diagnostics-oW0LBW-t.js";
|
|
29
29
|
import { t as renderTable } from "./table-D902H0x3.js";
|
|
30
|
-
import { l as probeGateway, o as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-
|
|
31
|
-
import { t as formatHealthChannelLines } from "./health-
|
|
32
|
-
import { g as resolveUpdateChannelDisplay, i as formatGitInstallLabel, m as normalizeUpdateChannel, t as checkUpdateStatus } from "./update-check-
|
|
33
|
-
import { t as resolveNodeService } from "./node-service-
|
|
30
|
+
import { l as probeGateway, o as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-BSX7fMfc.js";
|
|
31
|
+
import { t as formatHealthChannelLines } from "./health-D2th0Ip6.js";
|
|
32
|
+
import { g as resolveUpdateChannelDisplay, i as formatGitInstallLabel, m as normalizeUpdateChannel, t as checkUpdateStatus } from "./update-check-CduiCxPo.js";
|
|
33
|
+
import { t as resolveNodeService } from "./node-service-DphkTjBV.js";
|
|
34
34
|
import { n as redactSecrets, t as formatGatewayAuthUsed } from "./format-Bxjkt5ce.js";
|
|
35
|
-
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-
|
|
35
|
+
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-EyslEZkn.js";
|
|
36
36
|
import path from "node:path";
|
|
37
37
|
import fs from "node:fs";
|
|
38
38
|
import os from "node:os";
|
|
39
|
-
import
|
|
39
|
+
import fsPromises from "node:fs/promises";
|
|
40
40
|
import { spawnSync } from "node:child_process";
|
|
41
41
|
|
|
42
42
|
//#region src/commands/gateway-presence.ts
|
|
@@ -125,7 +125,7 @@ function resolveOsSummary() {
|
|
|
125
125
|
//#region src/commands/status-all/agents.ts
|
|
126
126
|
async function fileExists$1(p) {
|
|
127
127
|
try {
|
|
128
|
-
await
|
|
128
|
+
await fsPromises.access(p);
|
|
129
129
|
return true;
|
|
130
130
|
} catch {
|
|
131
131
|
return false;
|
|
@@ -490,7 +490,7 @@ async function buildChannelsTable(cfg, opts) {
|
|
|
490
490
|
//#endregion
|
|
491
491
|
//#region src/commands/status-all/gateway.ts
|
|
492
492
|
async function readFileTailLines(filePath, maxLines) {
|
|
493
|
-
const raw = await
|
|
493
|
+
const raw = await fsPromises.readFile(filePath, "utf8").catch(() => "");
|
|
494
494
|
if (!raw.trim()) return [];
|
|
495
495
|
const lines = raw.replace(/\r/g, "").split("\n");
|
|
496
496
|
return lines.slice(Math.max(0, lines.length - maxLines)).map((line) => line.trimEnd()).filter((line) => line.trim().length > 0);
|
|
@@ -1256,7 +1256,7 @@ function resolveGatewayProbeAuth(cfg) {
|
|
|
1256
1256
|
//#region src/commands/status.agent-local.ts
|
|
1257
1257
|
async function fileExists(p) {
|
|
1258
1258
|
try {
|
|
1259
|
-
await
|
|
1259
|
+
await fsPromises.access(p);
|
|
1260
1260
|
return true;
|
|
1261
1261
|
} catch {
|
|
1262
1262
|
return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as createPluginLoaderLogger, s as loadSymiPlugins } from "./unified-runner-
|
|
1
|
+
import { o as createPluginLoaderLogger, s as loadSymiPlugins } from "./unified-runner-BIUJm_Iv.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
3
|
-
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
-
import { i as loadConfig } from "./config-
|
|
3
|
+
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-Bnsyyeci.js";
|
|
4
|
+
import { i as loadConfig } from "./config-D-PYSlE8.js";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/status.ts
|
|
7
7
|
const log = createSubsystemLogger("plugins");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as createSubsystemLogger } from "./entry.js";
|
|
2
2
|
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-C-Jte08L.js";
|
|
3
3
|
import { i as loadConfig } from "./config-_DaupjQd.js";
|
|
4
|
-
import { m as loadSymiPlugins, p as createPluginLoaderLogger } from "./subagent-registry-
|
|
4
|
+
import { m as loadSymiPlugins, p as createPluginLoaderLogger } from "./subagent-registry-DWemyjbN.js";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/status.ts
|
|
7
7
|
const log = createSubsystemLogger("plugins");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
2
|
-
import { t as resolveSymiPackageRoot } from "./symi-root-
|
|
3
|
-
import { N as VERSION } from "./config-
|
|
4
|
-
import { n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-
|
|
2
|
+
import { t as resolveSymiPackageRoot } from "./symi-root-DeCVdZB4.js";
|
|
3
|
+
import { N as VERSION } from "./config-D-PYSlE8.js";
|
|
4
|
+
import { n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-CduiCxPo.js";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/status.update.ts
|
|
7
7
|
async function getUpdateCheckResult(params) {
|
|
@@ -49,8 +49,8 @@ import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsX
|
|
|
49
49
|
import { i as resolveApiKeyForProvider, n as getCustomProviderApiKey, o as resolveEnvApiKey, r as requireApiKey, s as resolveModelAuthMode, t as getApiKeyForModel } from "./model-auth-Byr7Gic_.js";
|
|
50
50
|
import { b as OLLAMA_NATIVE_BASE_URL, c as normalizeGoogleModelId, t as ensureSymiModelsJson, x as createOllamaStreamFn } from "./models-config-Br7EjqgG.js";
|
|
51
51
|
import { i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-DV3KhOhL.js";
|
|
52
|
-
import { n as resolveMemoryBackendConfig, t as getMemorySearchManager } from "./memory-
|
|
53
|
-
import { a as parseGeminiAuth, c as resolveMemorySearchConfig, n as retryAsync, o as collectProviderApiKeysForExecution, s as executeWithApiKeyRotation } from "./manager-
|
|
52
|
+
import { n as resolveMemoryBackendConfig, t as getMemorySearchManager } from "./memory-Cypj1lBQ.js";
|
|
53
|
+
import { a as parseGeminiAuth, c as resolveMemorySearchConfig, n as retryAsync, o as collectProviderApiKeysForExecution, s as executeWithApiKeyRotation } from "./manager-BfbQb9qM.js";
|
|
54
54
|
import { f as runTasksWithConcurrency } from "./internal-D3mEiuyB.js";
|
|
55
55
|
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-B2lBXhR0.js";
|
|
56
56
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-BEdkErjm.js";
|
|
@@ -81,7 +81,7 @@ import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normal
|
|
|
81
81
|
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-BiYW5XI-.js";
|
|
82
82
|
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-CmZ7XjmB.js";
|
|
83
83
|
import { t as parseTimeoutMs } from "./parse-timeout-DKY8YAUj.js";
|
|
84
|
-
import { n as registerMemoryCli } from "./memory-cli-
|
|
84
|
+
import { n as registerMemoryCli } from "./memory-cli-DB7UIev4.js";
|
|
85
85
|
import { i as resolveSlackThreadTs, n as deliverReplies, t as createSlackReplyDeliveryPlan } from "./replies-LM-arXEE.js";
|
|
86
86
|
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, n as isToolAllowedByPolicies, r as resolveEffectiveToolPolicy, t as filterToolsByPolicy } from "./pi-tools.policy-4gtz_Ipq.js";
|
|
87
87
|
import { createRequire } from "node:module";
|
|
@@ -28321,11 +28321,19 @@ function createWebSearchTool(options) {
|
|
|
28321
28321
|
const provider = resolveSearchProvider(search);
|
|
28322
28322
|
const perplexityConfig = resolvePerplexityConfig(search);
|
|
28323
28323
|
const grokConfig = resolveGrokConfig(search);
|
|
28324
|
+
const description = provider === "perplexity" ? "Search the web using Perplexity Sonar (direct or via OpenRouter). Returns AI-synthesized answers with citations from real-time web search." : provider === "grok" ? "Search the web using xAI Grok. Returns AI-synthesized answers with citations from real-time web search." : "Search the web using Brave Search API. Supports region-specific and localized search via country and language parameters. Returns titles, URLs, and snippets for fast research.";
|
|
28325
|
+
const resolveActiveApiKey = () => {
|
|
28326
|
+
if (provider === "perplexity") return resolvePerplexityApiKey(perplexityConfig)?.apiKey;
|
|
28327
|
+
if (provider === "grok") return resolveGrokApiKey(grokConfig);
|
|
28328
|
+
return resolveSearchApiKey(search);
|
|
28329
|
+
};
|
|
28324
28330
|
return {
|
|
28325
28331
|
label: "Web Search",
|
|
28326
28332
|
name: "web_search",
|
|
28327
|
-
description
|
|
28333
|
+
description,
|
|
28328
28334
|
parameters: WebSearchSchema,
|
|
28335
|
+
checkFn: () => Boolean(resolveActiveApiKey()),
|
|
28336
|
+
requiredEnv: provider === "perplexity" ? ["PERPLEXITY_API_KEY", "OPENROUTER_API_KEY"] : provider === "grok" ? ["XAI_API_KEY"] : ["BRAVE_API_KEY"],
|
|
28329
28337
|
execute: async (_toolCallId, args) => {
|
|
28330
28338
|
const perplexityAuth = provider === "perplexity" ? resolvePerplexityApiKey(perplexityConfig) : void 0;
|
|
28331
28339
|
const apiKey = provider === "perplexity" ? perplexityAuth?.apiKey : provider === "grok" ? resolveGrokApiKey(grokConfig) : resolveSearchApiKey(search);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
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/agents/skills/filter.ts
|
|
7
7
|
function normalizeSkillFilter(skillFilter) {
|
|
@@ -26,7 +26,7 @@ function matchesSkillFilter(cached, next) {
|
|
|
26
26
|
const CORE_PACKAGE_NAMES = new Set(["symi", "@symerian/symi"]);
|
|
27
27
|
async function readPackageName(dir) {
|
|
28
28
|
try {
|
|
29
|
-
const raw = await
|
|
29
|
+
const raw = await fsPromises.readFile(path.join(dir, "package.json"), "utf-8");
|
|
30
30
|
const parsed = JSON.parse(raw);
|
|
31
31
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
32
32
|
} catch {
|
|
@@ -6,7 +6,7 @@ import "./model-selection-BisYvTBb.js";
|
|
|
6
6
|
import "./reply-prefix-i-FPYcoQ.js";
|
|
7
7
|
import "./plugins-CZ_mYwXq.js";
|
|
8
8
|
import "./replies-BYF1gbJf.js";
|
|
9
|
-
import { n as runAgentTurn } from "./pi-embedded-
|
|
9
|
+
import { n as runAgentTurn } from "./pi-embedded-C7mJzGIf.js";
|
|
10
10
|
import "./deliver-Cjyb6h4g.js";
|
|
11
11
|
import "./diagnostic-BdRnGknC.js";
|
|
12
12
|
import "./diagnostic-session-state-DpxCUzoM.js";
|
|
@@ -23,7 +23,7 @@ import "./errors-BEU7IHU6.js";
|
|
|
23
23
|
import "./tokens-yWO1wD7Z.js";
|
|
24
24
|
import "./thinking-DgjGxdSP.js";
|
|
25
25
|
import "./paths-BsT3BvfH.js";
|
|
26
|
-
import "./manager-
|
|
26
|
+
import "./manager-Bryhc0Ip.js";
|
|
27
27
|
import "./github-copilot-token-dYUr1mDQ.js";
|
|
28
28
|
import "./sqlite-D8iYC_CU.js";
|
|
29
29
|
import "./markdown-tables-jQzXAsf3.js";
|