@symerian/symi 3.3.0 → 3.3.1
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-B2IkIBj2.js → agent-BI1-UXxQ.js} +1 -1
- package/dist/{agent-BrIHHGnC.js → agent-DeLysRUa.js} +29 -29
- package/dist/{agent-scope-2la27US0.js → agent-scope-BjEBQhs0.js} +23 -23
- package/dist/{agent-scope-D_MtsuXX.js → agent-scope-DE5eEsvh.js} +2 -2
- package/dist/{agents-B57SUSPt.js → agents-BMRZpxNt.js} +2 -2
- package/dist/{agents.config-COMcEDAk.js → agents.config-BFKM-a83.js} +3 -3
- package/dist/{audit-B58SlbPa.js → audit-DQ_p2Pbq.js} +34 -34
- package/dist/{auth-CC9_WXMi.js → auth-BbwD4lRX.js} +3 -3
- package/dist/{auth-choice-B6iYCDVN.js → auth-choice-BGZsmh6a.js} +9 -9
- package/dist/{auth-choice-Z1qCZxwg.js → auth-choice-T77Ymi34.js} +1 -1
- package/dist/{auth-profiles-CZTGpbyT.js → auth-profiles-B6ISm3Th.js} +5 -5
- package/dist/{auth-profiles-8vSEr9B4.js → auth-profiles-BVtpxYtY.js} +17 -17
- package/dist/{auth-token-DpYUPTNG.js → auth-token-CPluo60n.js} +3 -3
- package/dist/{banner-QsnCDxXH.js → banner-BJHky-bq.js} +1 -1
- package/dist/{bindings-CiRAK4tH.js → bindings-9LSA3Jr1.js} +2 -2
- package/dist/{bonjour-discovery-lp5P_YUR.js → bonjour-discovery-CU1mz7AC.js} +3 -3
- package/dist/{browser-cli-_9G3GBJS.js → browser-cli-O7Ic8DI3.js} +28 -28
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +34 -34
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/session-memory/handler.js +33 -33
- package/dist/{call-DLBaLOHo.js → call-CdXXPXpo.js} +13 -13
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-CNZxYA15.js → catalog-BEREnWaa.js} +4 -4
- package/dist/{channel-options-DckWOMWG.js → channel-options-BrDTgiiV.js} +5 -5
- package/dist/{channel-options-Cj-xJAMD.js → channel-options-C1yi5h7A.js} +1 -1
- package/dist/{channel-selection-BGtIUbFL.js → channel-selection-BvIcXQLj.js} +2 -2
- package/dist/{channels-cli-CIq4PFA0.js → channels-cli-BYeGzy-G.js} +7 -7
- package/dist/{channels-cli-Y8CGJ_qQ.js → channels-cli-Pxe1OINS.js} +98 -98
- package/dist/{channels-status-issues-rRBNHH7B.js → channels-status-issues-DC8vgOMo.js} +1 -1
- package/dist/{chrome-b556dOQ6.js → chrome-CQnRgvJz.js} +7 -7
- package/dist/{chrome-BgQbis3t.js → chrome-FAf5DZL2.js} +11 -11
- package/dist/{chrome-sQI2Ex5S.js → chrome-NUKborg3.js} +7 -7
- package/dist/{chunk-CKgSHf7u.js → chunk-DQGU0F8t.js} +2 -2
- package/dist/{chunk-Ds8SZRkS.js → chunk-DX6VtywY.js} +1 -1
- package/dist/{clack-prompter-CR9tYooX.js → clack-prompter-CWQQn_CK.js} +5 -5
- package/dist/cli-DFNOC2Ad.js +128 -0
- package/dist/{cli--omJsLkl.js → cli-Dt-wfm_7.js} +4 -4
- package/dist/{client-D8iTVY4F.js → client-Bs2zB0rY.js} +7 -7
- package/dist/{clipboard-C9NQe8TV.js → clipboard-McRwF3r0.js} +1 -1
- package/dist/{command-registry-bozDt85D.js → command-registry-BwbT4ll7.js} +10 -10
- package/dist/{commands-sNCgvbpu.js → commands-B3UrgxIz.js} +2 -2
- package/dist/{commands-registry-CRkL6mTz.js → commands-registry-C5IdtVVy.js} +4 -4
- package/dist/{commands-registry-DXK4Ortm.js → commands-registry-DYk02tmt.js} +6 -6
- package/dist/{completion-cli-9qQYFUPk.js → completion-cli-CyOSA5xZ.js} +2 -2
- package/dist/{completion-cli-FXkVKM19.js → completion-cli-DiNUqrNY.js} +16 -16
- package/dist/{config-fTqqDRAc.js → config-CW8aDVM0.js} +9 -9
- package/dist/{config-cli-BexhS7Qb.js → config-cli-DBU_S417.js} +15 -15
- package/dist/{config-cli-C3D7beGW.js → config-cli-DfG0nukz.js} +1 -1
- package/dist/{config-guard-IteQa1rq.js → config-guard-CNmD3-IC.js} +23 -23
- package/dist/{config-validation-B05t9fma.js → config-validation-Bz5CV181.js} +2 -2
- package/dist/{configure-BWXNd2TO.js → configure-BYu2DI_6.js} +2 -2
- package/dist/{configure-0e3ty1G9.js → configure-BkH4ueot.js} +26 -26
- package/dist/{consolidate-BaeR2tIX.js → consolidate-Cx7qF5Ht.js} +10 -10
- package/dist/{consolidate-C-HKdAJo.js → consolidate-dh1m3X1s.js} +2 -2
- package/dist/{control-service-BDMq-0pg.js → control-service-Drd2sr2o.js} +5 -5
- package/dist/{control-ui-assets-muBwnb6-.js → control-ui-assets-D22DSxhv.js} +4 -4
- package/dist/{conversation-label-B4d5pKXr.js → conversation-label-CS5Zjc4w.js} +1 -1
- package/dist/{conversation-label-WjwKgn7n.js → conversation-label-tLwAlqLf.js} +1 -1
- package/dist/{cron-cli-DvDr2Uxo.js → cron-cli-BTAdnRhX.js} +21 -21
- package/dist/{daemon-cli-DiLogoCM.js → daemon-cli-BY9BFNuw.js} +22 -22
- package/dist/{daemon-runtime-C3dBpZhs.js → daemon-runtime-BH3ZBZXS.js} +13 -13
- package/dist/{deliver-B_Fv-dS9.js → deliver-DZ7ynJYH.js} +8 -8
- package/dist/{deliver-B_Gz2_tA.js → deliver-Dlq2X0K5.js} +4 -4
- package/dist/{deliver-B_jXI55b.js → deliver-kmnOOp9j.js} +22 -22
- package/dist/{delivery-queue-CeY346SK.js → delivery-queue-DDs84baU.js} +2 -2
- package/dist/{deps-Du8ZcRHN.js → deps-i1g0Zpz4.js} +1 -1
- package/dist/{devices-cli-BFPrh5bu.js → devices-cli-Cqi6L8PH.js} +19 -19
- package/dist/{diagnostic-D7z6O7v0.js → diagnostic-CQLyE7_n.js} +1 -1
- package/dist/{diagnostic-oeL366QK.js → diagnostic-CwF3MnBL.js} +1 -1
- package/dist/{diagnostics-3x3usVgE.js → diagnostics-nLP2i_BY.js} +5 -5
- package/dist/{directory-cli-BUBucKQI.js → directory-cli-B0XsBWso.js} +19 -19
- package/dist/{dm-policy-shared-BcXoqtVd.js → dm-policy-shared-CnKffdt_.js} +2 -2
- package/dist/{dns-cli-B6QTNBXV.js → dns-cli-BHWlCG31.js} +17 -17
- package/dist/{dock-n_MeJBcj.js → dock-CnGWTXL4.js} +3 -3
- package/dist/{docs-cli-C2xEH6jC.js → docs-cli-DASNErN-.js} +13 -13
- package/dist/{doctor-completion-K1dL1s3P.js → doctor-completion-D_cwpDAq.js} +4 -4
- package/dist/{doctor-completion-CcHk8myN.js → doctor-completion-DqvmZZEo.js} +1 -1
- package/dist/{doctor-config-flow-Dl08K6Q3.js → doctor-config-flow-BvHSaiFy.js} +15 -15
- package/dist/entry.js +1 -1
- package/dist/{env-B7UUyzd_.js → env-B97Ms861.js} +2 -2
- package/dist/{errors-BgCjRT2k.js → errors-BkfLlDKo.js} +1 -1
- package/dist/{errors-CBVhQiQ9.js → errors-Z-WkF18Q.js} +1 -1
- package/dist/{exec-BcvUYCcV.js → exec-DKyLtSjm.js} +2 -2
- package/dist/{exec-approvals-BWtVKlN2.js → exec-approvals-CZOc8M5w.js} +3 -3
- package/dist/{exec-approvals-cli-SDF4LICf.js → exec-approvals-cli-CyHTywue.js} +27 -27
- package/dist/extensionAPI.js +4 -4
- package/dist/{fetch-guard-BWofyagX.js → fetch-guard-DG6T0ZdL.js} +2 -2
- package/dist/{frontmatter-B5iYTsZP.js → frontmatter-B6IdJ7UK.js} +2 -2
- package/dist/{frontmatter-vaw8OX7Y.js → frontmatter-BW7tVmn4.js} +5 -5
- package/dist/{fs-safe-CR_3Yr4x.js → fs-safe-DjAKGGJ8.js} +7 -7
- package/dist/{gateway-cli-CAFWFnSX.js → gateway-cli-BBqSqFGV.js} +451 -151
- package/dist/{gateway-cli-CzD6faIt.js → gateway-cli-BYGA5ex3.js} +311 -11
- package/dist/{gateway-rpc-o8CJkHuM.js → gateway-rpc-BJF1iDnx.js} +3 -3
- package/dist/{github-copilot-token-DTYkb2IC.js → github-copilot-token-BTNK6Tcd.js} +2 -2
- package/dist/{glass-ui-ws-Bbs2mIij.js → glass-ui-ws-DJnV8nJK.js} +8 -8
- package/dist/{glass-ui-ws-Dsez9bGF.js → glass-ui-ws-NJNiRFL3.js} +105 -105
- package/dist/{gmail-setup-utils-CLvOQ6kY.js → gmail-setup-utils-D5G00y8h.js} +5 -5
- package/dist/{health-iJ9JzccO.js → health-D59E1VfO.js} +13 -13
- package/dist/{health-format-CxAXRqzB.js → health-format-39e76m9p.js} +1 -1
- package/dist/{help-format-BWTv-lf6.js → help-format-BI_G2p1e.js} +1 -1
- package/dist/{helpers-BtwjKsDp.js → helpers-BBypnAYf.js} +1 -1
- package/dist/{hooks-cli-BEYoHsqh.js → hooks-cli-Bidz8ACz.js} +98 -98
- package/dist/{hooks-cli-DNlmk6eB.js → hooks-cli-CyjEjDSY.js} +5 -5
- package/dist/{hooks-status-D9SOPTTY.js → hooks-status-DLHEahg_.js} +3 -3
- package/dist/{image-ops-BkR5mVOY.js → image-ops-c7_of0HT.js} +12 -12
- package/dist/{inbound-context-CICDRKxY.js → inbound-context-CJj1VfzK.js} +2 -2
- package/dist/{inbound-context-B4B7i7oM.js → inbound-context-DqAyGDbE.js} +2 -2
- package/dist/index.js +90 -90
- package/dist/{inspect-XD55qAEL.js → inspect-op0Ov-v4.js} +4 -4
- package/dist/{install-safe-path-odQNUvjd.js → install-safe-path-B73BkVO3.js} +12 -12
- package/dist/{installs-DLhIne1t.js → installs-ZXEjR9Sp.js} +12 -12
- package/dist/{internal-CBKiu8Jv.js → internal-C3o_xyzP.js} +10 -10
- package/dist/{legacy-names-BVA_sKnb.js → legacy-names-C0hZiM-7.js} +1 -1
- package/dist/{lifecycle-core-CcinwCvM.js → lifecycle-core-zhQYm_ni.js} +10 -10
- package/dist/{links-C6mXo5Yj.js → links-CSaUKNKm.js} +1 -1
- package/dist/llm-slug-generator.js +33 -33
- package/dist/{local-roots-C0G03E-R.js → local-roots-CTriU02e.js} +3 -3
- package/dist/{local-roots-DtvYChMM.js → local-roots-Dm8-ErgQ.js} +3 -3
- package/dist/{logging-CMolPIQB.js → logging-B96FQvnn.js} +2 -2
- package/dist/{logs-cli--Wek899G.js → logs-cli-B7RJ57Dc.js} +20 -20
- package/dist/{manager-CS1vxold.js → manager-9dNT9kNF.js} +22 -22
- package/dist/{manager-9Rt8-xIT.js → manager-CpBl-VGg.js} +1 -1
- package/dist/{manager-Bmh-pcUv.js → manager-Dsdh0rGn.js} +9 -9
- package/dist/{manager-Do0-i7vp.js → manager-t4GthPGw.js} +1 -1
- package/dist/{manifest-registry-Cc80pffV.js → manifest-registry-B2vClvK5.js} +2 -2
- package/dist/{manifest-registry-B4I9g0CL.js → manifest-registry-D7Qup2Vq.js} +3 -3
- package/dist/{markdown-tables-D0bwB4O7.js → markdown-tables-BaWa2kOe.js} +1 -1
- package/dist/{markdown-tables-jlJYpF1X.js → markdown-tables-GTLvbzuR.js} +2 -2
- package/dist/{memory-BduQaKuC.js → memory-B7TJXpqS.js} +2 -2
- package/dist/{memory-ofHIUCzf.js → memory-DcWXMzOH.js} +7 -7
- package/dist/{memory-cli-BCz9iNCM.js → memory-cli-C0WA_nRS.js} +2 -2
- package/dist/{memory-cli-LXH0BNmI.js → memory-cli-xBZPEOeL.js} +22 -22
- package/dist/{message-channel-j44ChSJV.js → message-channel-C_V8IAYx.js} +1 -1
- package/dist/{model-BBL3doiY.js → model-BXWgh5eZ.js} +1 -1
- package/dist/{model-catalog-D8YRs6r8.js → model-catalog-BGVslwAT.js} +4 -4
- package/dist/{model-picker-CdmjvvmL.js → model-picker-aTfyp_mP.js} +3 -3
- package/dist/{models-DTHdIg0A.js → models-IfAFy9bK.js} +2 -2
- package/dist/{models-cli-CdL5Tf5E.js → models-cli-DiB4JqF2.js} +6 -6
- package/dist/{models-cli-DrJsggrX.js → models-cli-h8h_qu3F.js} +94 -94
- package/dist/{models-config-BCa11tVc.js → models-config-DRgHv7Ss.js} +8 -8
- package/dist/{node-cli-Dl-lvH1N.js → node-cli-BPkbqgRt.js} +50 -50
- package/dist/{node-service-O5CpXu6c.js → node-service-DuN9eBL6.js} +1 -1
- package/dist/{nodes-cli-C9pjIduh.js → nodes-cli-C09c6nCf.js} +27 -27
- package/dist/{nodes-screen-B_D8bZhT.js → nodes-screen-CT94yu_w.js} +7 -7
- package/dist/{note-1QdZVD7W.js → note-CHrtEumO.js} +2 -2
- package/dist/{npm-registry-spec-BQ7yzKIT.js → npm-registry-spec-B8X06AqB.js} +12 -12
- package/dist/{onboard-channels-DmvTuYe_.js → onboard-channels-BfzW-9vo.js} +1 -1
- package/dist/{onboard-channels-CXqIlUcV.js → onboard-channels-Deq8QGnM.js} +13 -13
- package/dist/{onboard-custom-DAD9D1fS.js → onboard-custom-DEdRdzNq.js} +3 -3
- package/dist/{onboard-helpers-C5J9vSm2.js → onboard-helpers-DZKHFY2J.js} +16 -16
- package/dist/{onboard-hooks-D87tRcuX.js → onboard-hooks-DZZM8goM.js} +11 -11
- package/dist/{onboard-3VcPRZV5.js → onboard-iL7Z0wKJ.js} +1 -1
- package/dist/{onboard-remote-D3CWFQ0_.js → onboard-remote-dn4L5WdE.js} +3 -3
- package/dist/{onboard-Cr1Rd93U.js → onboard-sMgEOBjV.js} +20 -20
- package/dist/{onboard-skills-CTv0hBJv.js → onboard-skills-DGHye9Q3.js} +5 -5
- package/dist/{onboarding-D_wPq7hv.js → onboarding-70YKbZi6.js} +3 -3
- package/dist/{onboarding-Bop5peq2.js → onboarding-BjXYbWlg.js} +19 -19
- package/dist/{onboarding.finalize-DGwAMlRi.js → onboarding.finalize-Ch3V08eY.js} +4 -4
- package/dist/{onboarding.finalize-Pa0bEFjp.js → onboarding.finalize-dU_CtL43.js} +62 -62
- package/dist/{onboarding.gateway-config-aIrdqmcQ.js → onboarding.gateway-config-DfF8Rxvn.js} +23 -23
- package/dist/{openai-model-default-BDH_OYY8.js → openai-model-default-D1NFHFF_.js} +4 -4
- package/dist/{pairing-cli-PrIxvqnD.js → pairing-cli-CJv8LQfb.js} +17 -17
- package/dist/{pairing-store-DmCi9E47.js → pairing-store-CxT0UGxd.js} +5 -5
- package/dist/{pairing-token-BmIoXjHZ.js → pairing-token-DorpwP8O.js} +9 -9
- package/dist/{path-env-CRW1aXZp.js → path-env-DuQralyy.js} +3 -3
- package/dist/{paths-Cqn-zk3M.js → paths-BSzKwaxE.js} +1 -1
- package/dist/paths-BeAyfCRg.js +127 -0
- package/dist/{paths-CdGa1jlU.js → paths-CJcw9nbZ.js} +3 -3
- package/dist/{paths-DvXvD4Xu.js → paths-DaQrPPet.js} +2 -2
- package/dist/{pi-auth-json-ChKC--mV.js → pi-auth-json-BzuhVcKu.js} +1 -1
- package/dist/{pi-auth-json-DhbhmAvs.js → pi-auth-json-DGZH6URT.js} +5 -5
- package/dist/{pi-embedded-hri4e4ie.js → pi-embedded-DOCVZrmx.js} +20 -64
- package/dist/{pi-embedded-helpers-VZo1D4Ck.js → pi-embedded-helpers-Be-EeyzH.js} +9 -9
- package/dist/{pi-tools.policy-DrRZdkk0.js → pi-tools.policy-qwS9SXOa.js} +6 -6
- package/dist/{plugin-auto-enable-BV-thF8P.js → plugin-auto-enable-zDUaiaf2.js} +4 -4
- package/dist/{plugin-registry-CYEwOWqU.js → plugin-registry-BgGVB3kW.js} +5 -5
- package/dist/{plugin-registry-q_UuFncy.js → plugin-registry-CP2mbhwk.js} +1 -1
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/model-selection.d.ts +0 -3
- package/dist/plugin-sdk/auto-reply/reply/payload-middleware.d.ts +0 -2
- package/dist/plugin-sdk/auto-reply/reply/typing-mode.d.ts +5 -3
- package/dist/plugin-sdk/auto-reply/types.d.ts +0 -3
- package/dist/plugin-sdk/gateway/outbound-filter.d.ts +4 -7
- package/dist/plugin-sdk/infra/agent-events.d.ts +0 -1
- package/dist/{plugins-CYQOjCDt.js → plugins-DuuHorqi.js} +3 -3
- package/dist/{plugins-cli-DE_0PdqM.js → plugins-cli-1wkCRsFe.js} +5 -5
- package/dist/{plugins-cli-CR1PAkGv.js → plugins-cli-B_Gtx3LU.js} +89 -89
- package/dist/{plugins-BG2b7dR_.js → plugins-yymezpEd.js} +2 -2
- package/dist/{ports-DfsXfAsq.js → ports-ChuJYhEL.js} +2 -2
- package/dist/{ports-LzI_-wEZ.js → ports-EAVAOFyK.js} +7 -7
- package/dist/{program-x8XxEZXE.js → program-UyCr49qs.js} +10 -10
- package/dist/{program-context-CvgJOZ3Q.js → program-context-C7uCS8z7.js} +39 -39
- package/dist/{progress-B6mhJhX6.js → progress-CyPyGCDn.js} +2 -2
- package/dist/{prompt-select-styled-BFV2QYJC.js → prompt-select-styled-BRcRFLzB.js} +4 -4
- package/dist/{prompt-select-styled-CFeLUnsr.js → prompt-select-styled-DcMra8CK.js} +54 -54
- package/dist/{prompt-style-DtQMGj0v.js → prompt-style-Cad0BDRS.js} +1 -1
- package/dist/{provider-auth-helpers-D2GLBV7U.js → provider-auth-helpers-BJTb9xI0.js} +1 -1
- package/dist/{provider-auth-helpers-C-Cv3SZA.js → provider-auth-helpers-Xn1TAPPY.js} +8 -8
- package/dist/{push-apns-DTqLWoEj.js → push-apns-Aaqf9WKI.js} +10 -10
- package/dist/{push-apns-9XQgEWxs.js → push-apns-Bfqnchj6.js} +1 -1
- package/dist/{pw-ai-BFZrohva.js → pw-ai-B3qisJP1.js} +1 -1
- package/dist/{pw-ai-Bb4P23-n.js → pw-ai-C-ddUgTA.js} +20 -20
- package/dist/{pw-ai-D5WlMgqy.js → pw-ai-DJrnU1ja.js} +12 -12
- package/dist/{qmd-manager-92cDmzSO.js → qmd-manager-D5kqCz-Y.js} +28 -28
- package/dist/{qmd-manager-D6ABQ2yd.js → qmd-manager-DrM6m9z1.js} +7 -7
- package/dist/{qr-cli-B_kge4ua.js → qr-cli-B_mw4i0R.js} +12 -12
- package/dist/{register.agent-C-p6kDhf.js → register.agent-BqKNzdaW.js} +108 -108
- package/dist/{register.agent-D9FfFyh0.js → register.agent-vAJ0_4m0.js} +9 -9
- package/dist/register.configure-7TmTqCgU.js +129 -0
- package/dist/{register.configure-CtbO9t7v.js → register.configure-BzgavjpU.js} +8 -8
- package/dist/{register.maintenance-Dy8l8hKt.js → register.maintenance-6Wz4HXlm.js} +109 -109
- package/dist/{register.maintenance-h-CVvMpP.js → register.maintenance-BJO0RCk9.js} +9 -9
- package/dist/{register.message-DFytf1Dr.js → register.message-CW9PahRi.js} +5 -5
- package/dist/{register.message-CaOagrcp.js → register.message-XYivyrQJ.js} +81 -81
- package/dist/{register.onboard-SunldfQB.js → register.onboard-BgwkmP4D.js} +45 -45
- package/dist/{register.onboard-BAQSWmTB.js → register.onboard-MWRC29wD.js} +2 -2
- package/dist/{register.setup-D3uuohUQ.js → register.setup-7OoAqQG_.js} +48 -48
- package/dist/{register.setup-BnuPTj2h.js → register.setup-V-arsKvb.js} +2 -2
- package/dist/{register.status-health-sessions-azKiEST-.js → register.status-health-sessions-1VnuXhGM.js} +3 -3
- package/dist/{register.status-health-sessions-CPcQpUNU.js → register.status-health-sessions-Bgg1sdY_.js} +68 -68
- package/dist/{register.subclis-Di2DRNVF.js → register.subclis-DpPYIqkP.js} +9 -9
- package/dist/{registry-C-JddWwo.js → registry-9AaJQms1.js} +2 -2
- package/dist/{registry-CtguoMhn.js → registry-DKJLAPDB.js} +4 -4
- package/dist/{replies-CvuXRwhI.js → replies-BZN1LuJP.js} +3 -3
- package/dist/{replies-BUaT9S6J.js → replies-Dqft-42v.js} +3 -3
- package/dist/{reply-prefix-ClUrRCRd.js → reply-prefix-CyLplifX.js} +1 -1
- package/dist/{reply-prefix-ChIeKp-P.js → reply-prefix-DkDTGwTs.js} +1 -1
- package/dist/{resolve-route-BLDKso2x.js → resolve-route-CIA0TSsF.js} +4 -4
- package/dist/{resolve-route-C0EHjIMD.js → resolve-route-xpyI3enn.js} +6 -6
- package/dist/{routes-BFfAPz_0.js → routes-xZZ99jJJ.js} +14 -14
- package/dist/{rpc-CQUsmQ6_.js → rpc-BzR2wLkc.js} +3 -3
- package/dist/{run-main-BhJ6M7oy.js → run-main-n0fjk-o5.js} +17 -17
- package/dist/{runtime-guard-Btd35-OG.js → runtime-guard-BZ3_1QqS.js} +1 -1
- package/dist/{sandbox-sayuve7z.js → sandbox-DGG12SGo.js} +27 -27
- package/dist/{sandbox-cli-Dyh_eqHp.js → sandbox-cli--d2MJPM2.js} +37 -37
- package/dist/{security-cli-B5XGCe-n.js → security-cli-CeP9ss1g.js} +53 -53
- package/dist/{send-dfhV1QIV.js → send-BQJKg0bU.js} +7 -7
- package/dist/{send-B-tsyoRw.js → send-BzUWmgQ9.js} +13 -13
- package/dist/{server-context-hxl_K7eY.js → server-context-BNbx1tUD.js} +11 -11
- package/dist/{server-methods-MUFuMWc_.js → server-methods-BHg4GltA.js} +76 -408
- package/dist/{server-methods-3uA_KwN4.js → server-methods-DkZ2XtEo.js} +8 -340
- package/dist/{server-node-events-FUPulMjB.js → server-node-events-6dZ22EGj.js} +82 -82
- package/dist/{server-node-events-DkbyHj1T.js → server-node-events-BXviL2UH.js} +6 -6
- package/dist/{service-B5aOZmQH.js → service-9ItKCWWS.js} +15 -15
- package/dist/{session-cost-usage-DQjHUno0.js → session-cost-usage-DYcv40ss.js} +3 -3
- package/dist/{session-dirs-Chh7bBGo.js → session-dirs-B6PWqKEf.js} +2 -2
- package/dist/{session-utils-C6O0Db39.js → session-utils-BVC8mmBv.js} +22 -22
- package/dist/{sessions-oPVoK2gW.js → sessions-BaFVKzC2.js} +25 -25
- package/dist/{shared-BJxR-kzm.js → shared-DUmy8R4n.js} +5 -5
- package/dist/{shared-E4KDN3LG.js → shared-ot5_jkpP.js} +3 -3
- package/dist/{skill-commands-CfGPouRa.js → skill-commands-DaNhP2Jb.js} +5 -5
- package/dist/{skill-commands-4afIEM1a.js → skill-commands-X3T9Y9lT.js} +4 -4
- package/dist/{skill-scanner-BGtq5jZi.js → skill-scanner-DVq7ZopF.js} +7 -7
- package/dist/{skills-Kt1PL_Um.js → skills-BMTJ2Tiq.js} +6 -6
- package/dist/{skills-BF_e-fYt.js → skills-C_KgxpBD.js} +9 -9
- package/dist/{skills-cli-BlFM1U3r.js → skills-cli-DwYoPwkG.js} +19 -19
- package/dist/{skills-install-miTQGOBQ.js → skills-install-U4FmCP8u.js} +9 -9
- package/dist/{skills-remote-Ch1B-1aN.js → skills-remote-C0gcKYWX.js} +6 -6
- package/dist/{skills-status-CFVFYR-o.js → skills-status-CdfQvU1h.js} +4 -4
- package/dist/{sqlite-CfMLToLW.js → sqlite-BUXBg2yu.js} +8 -8
- package/dist/{sqlite-BKMdYqso.js → sqlite-C6MZhX4c.js} +3 -3
- package/dist/{ssrf-LaudpmHD.js → ssrf-BvjSIOlZ.js} +9 -9
- package/dist/{status-BNH-f3PA.js → status-BAnT_4qI.js} +4 -4
- package/dist/{status-B-XD80Yl.js → status-BK-ZK7SP.js} +36 -36
- package/dist/{status-CCgqMBwp.js → status-CmoBgZ99.js} +1 -1
- package/dist/{status-C7F7r-qN.js → status-J_gR_zbh.js} +1 -1
- package/dist/{status.update-B9WCVHPy.js → status.update-Cvj7y384.js} +4 -4
- package/dist/{subagent-registry-z08a8MUS.js → subagent-registry-CWolsN8K.js} +13 -55
- package/dist/{subsystem-CgepNOk5.js → subsystem-CtH6J8AV.js} +1 -1
- package/dist/{subsystem-DzRUKS9f.js → subsystem-DhOo2FZn.js} +1 -1
- package/dist/{symi-root-7ei1lwo0.js → symi-root-0MUhiNlM.js} +3 -3
- package/dist/{synthesis-D4iCZvKx.js → synthesis-BSKiS446.js} +4 -4
- package/dist/{synthesis-CjFmYp54.js → synthesis-CRQp5mTx.js} +78 -78
- package/dist/{synthesis-Dlweuq0p.js → synthesis-D3wZX5g3.js} +33 -33
- package/dist/{synthesis-ByjLMHMS.js → synthesis-DTZGPpj5.js} +4 -4
- package/dist/{system-cli-Ccu9utFt.js → system-cli-CUGyogmP.js} +19 -19
- package/dist/{systemd-ChKNxGyT.js → systemd-8KKQdTO_.js} +8 -8
- package/dist/{systemd-hints-hoofHqb7.js → systemd-hints-_ghBqtKo.js} +7 -7
- package/dist/{systemd-linger-DLgi3jd0.js → systemd-linger-CnKJZBUr.js} +2 -2
- package/dist/{table-Cyd0-LaL.js → table-DkAQzCOR.js} +2 -2
- package/dist/{tailscale-D3KwzQUZ.js → tailscale-D7dC-5EX.js} +3 -3
- package/dist/{thinking-nf5YVDrR.js → thinking-BYtE7_UC.js} +2 -2
- package/dist/{tokens-DfB8vBa4.js → tokens-DvvjOTxN.js} +1 -1
- package/dist/{tokens-B24nv23l.js → tokens-wW7opugV.js} +1 -1
- package/dist/{tool-display-D1Hh5TqL.js → tool-display-Dr6VaTg5.js} +2 -2
- package/dist/{tool-loop-detection-BxrJfVQU.js → tool-loop-detection-CSSq5kkt.js} +4 -4
- package/dist/{tool-loop-detection-BR52lwOt.js → tool-loop-detection-DyZ0TWGh.js} +2 -2
- package/dist/transcript-events-JGGQViao.js +17 -0
- package/dist/{trash-oWw0M_xA.js → trash-BjVrPcAx.js} +2 -2
- package/dist/{tui-cli-sRKxOjmC.js → tui-cli-BPOcMJ-f.js} +43 -43
- package/dist/{tui-DqMRn1zF.js → tui-fKWqWqeq.js} +12 -12
- package/dist/{unified-runner-Uyw1gZOm.js → unified-runner-Cdj1nLUh.js} +286 -328
- package/dist/{unified-runner-CBVGL54b.js → unified-runner-DftrstdI.js} +200 -245
- package/dist/{update-rop24lF7.js → update-XJWQZpV7.js} +5 -5
- package/dist/{update-check-CC111uwU.js → update-check-BdSIMYWq.js} +7 -7
- package/dist/{update-cli-BbtFbkK5.js → update-cli-D_MLjj6j.js} +120 -120
- package/dist/{update-cli-CH7SLjSd.js → update-cli-jQo-vg6S.js} +9 -9
- package/dist/{update-runner-B0L2a2rW.js → update-runner-D_UHlPN0.js} +18 -18
- package/dist/{utils-AQWIWjGu.js → utils-BU8jVQFM.js} +2 -2
- package/dist/{webhooks-cli-CFMpDwWL.js → webhooks-cli-DgRLVVrD.js} +17 -17
- package/dist/{widearea-dns-DxpPXWPv.js → widearea-dns-C5NqCQ3L.js} +2 -2
- package/dist/{with-timeout-Bxn0qVBQ.js → with-timeout-DwVWQ2sN.js} +2 -2
- package/dist/{workspace-StbmAqYj.js → workspace-B_xyjOdv.js} +4 -4
- package/dist/{workspace-CsaDUuDn.js → workspace-OBnI5mKu.js} +2 -2
- package/dist/{workspace-dirs-B5axjz_-.js → workspace-dirs-DStsDXra.js} +1 -1
- package/dist/{ws-FAiTi9-v.js → ws-CahTJvD6.js} +1 -1
- package/dist/{wsl-ZWGwnnKI.js → wsl-DO9usEVV.js} +2 -2
- package/package.json +1 -1
- package/dist/cli-iz9sMJ9d.js +0 -128
- package/dist/plugin-sdk/gateway/server-chat.d.ts +0 -49
- package/dist/register.configure-D69HXLo4.js +0 -129
- package/dist/{boolean-B8-BqKGQ.js → boolean-Wzu0-e0P.js} +0 -0
- package/dist/{boolean-BgXe2hyu.js → boolean-mcn6kL0s.js} +0 -0
- package/dist/{brew-ip7v32wW.js → brew-BoKmB5x9.js} +1 -1
- /package/dist/{chat-type-B2TfTsnW.js → chat-type-B7XD_ESN.js} +0 -0
- /package/dist/{chat-type-BoBpxitL.js → chat-type-BPBtOjer.js} +0 -0
- /package/dist/{command-format-CyXZlazG.js → command-format-BvAkTjTI.js} +0 -0
- /package/dist/{github-copilot-token-BUd9oA8x.js → github-copilot-token-B31ugq7R.js} +0 -0
- /package/dist/{input-provenance-iBlnbS1d.js → input-provenance-DsLesw6T.js} +0 -0
- /package/dist/{legacy-names-BlIw4lsD.js → legacy-names-sghWmXe3.js} +0 -0
- /package/dist/{redact-CozCe54d.js → redact-CSc_2Nka.js} +0 -0
- /package/dist/{redact-DPnDWsnT.js → redact-Dd8jrogi.js} +0 -0
- /package/dist/{secret-equal-DjTAoH50.js → secret-equal-D1BCVB1D.js} +0 -0
- /package/dist/{session-key-DUSb7CCb.js → session-key-B_ZVH1kE.js} +0 -0
- /package/dist/{ssrf-Cirmgays.js → ssrf-CC9kEPCT.js} +0 -0
- /package/dist/{tailnet-BruyvjMC.js → tailnet-LYvn9g3I.js} +0 -0
- /package/dist/{thinking-BTh3b5vY.js → thinking-177f26eg.js} +0 -0
- /package/dist/{transcript-events-BOK6eOU8.js → transcript-events-Ch7wLX-j.js} +0 -0
- /package/dist/{transcript-tools--a2pL_yH.js → transcript-tools-CrMLYORt.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as resolveGatewayLaunchAgentLabel, f as resolveGatewayWindowsTaskName, p as resolveLegacyGatewayLaunchAgentLabels, t as GATEWAY_LAUNCH_AGENT_LABEL, u as resolveGatewayServiceDescription } from "./constants-DsZw7bas.js";
|
|
2
|
-
import { _ as toPosixPath, a as readSystemdServiceRuntime, c as stopSystemdService, f as splitArgsPreservingQuotes, g as formatLine, h as resolveHomeDir, i as readSystemdServiceExecStart, l as uninstallSystemdService, m as resolveGatewayStateDir, n as isSystemdServiceEnabled, p as parseKeyValueOutput, s as restartSystemdService, t as installSystemdService, v as writeFormattedLines, y as execFileUtf8 } from "./systemd-
|
|
2
|
+
import { _ as toPosixPath, a as readSystemdServiceRuntime, c as stopSystemdService, f as splitArgsPreservingQuotes, g as formatLine, h as resolveHomeDir, i as readSystemdServiceExecStart, l as uninstallSystemdService, m as resolveGatewayStateDir, n as isSystemdServiceEnabled, p as parseKeyValueOutput, s as restartSystemdService, t as installSystemdService, v as writeFormattedLines, y as execFileUtf8 } from "./systemd-8KKQdTO_.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/daemon/launchd-plist.ts
|
|
7
7
|
const plistEscape = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
@@ -14,7 +14,7 @@ const renderEnvDict = (env) => {
|
|
|
14
14
|
};
|
|
15
15
|
async function readLaunchAgentProgramArgumentsFromFile(plistPath) {
|
|
16
16
|
try {
|
|
17
|
-
const plist = await
|
|
17
|
+
const plist = await fsPromises.readFile(plistPath, "utf8");
|
|
18
18
|
const programMatch = plist.match(/<key>ProgramArguments<\/key>\s*<array>([\s\S]*?)<\/array>/i);
|
|
19
19
|
if (!programMatch) return null;
|
|
20
20
|
const args = Array.from(programMatch[1].matchAll(/<string>([\s\S]*?)<\/string>/gi)).map((match) => plistUnescape(match[1] ?? "").trim());
|
|
@@ -128,7 +128,7 @@ async function isLaunchAgentListed(args) {
|
|
|
128
128
|
async function launchAgentPlistExists(env) {
|
|
129
129
|
try {
|
|
130
130
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
131
|
-
await
|
|
131
|
+
await fsPromises.access(plistPath);
|
|
132
132
|
return true;
|
|
133
133
|
} catch {
|
|
134
134
|
return false;
|
|
@@ -188,7 +188,7 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
188
188
|
]);
|
|
189
189
|
await execLaunchctl(["unload", plistPath]);
|
|
190
190
|
try {
|
|
191
|
-
await
|
|
191
|
+
await fsPromises.access(plistPath);
|
|
192
192
|
} catch {
|
|
193
193
|
stdout.write(`LaunchAgent not found at ${plistPath}\n`);
|
|
194
194
|
return;
|
|
@@ -197,8 +197,8 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
197
197
|
const trashDir = path.join(home, ".Trash");
|
|
198
198
|
const dest = path.join(trashDir, `${label}.plist`);
|
|
199
199
|
try {
|
|
200
|
-
await
|
|
201
|
-
await
|
|
200
|
+
await fsPromises.mkdir(trashDir, { recursive: true });
|
|
201
|
+
await fsPromises.rename(plistPath, dest);
|
|
202
202
|
stdout.write(`${formatLine("Moved LaunchAgent to Trash", dest)}\n`);
|
|
203
203
|
} catch {
|
|
204
204
|
stdout.write(`LaunchAgent remains at ${plistPath} (could not move)\n`);
|
|
@@ -221,7 +221,7 @@ async function stopLaunchAgent({ stdout, env }) {
|
|
|
221
221
|
}
|
|
222
222
|
async function installLaunchAgent({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
223
223
|
const { logDir, stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
224
|
-
await
|
|
224
|
+
await fsPromises.mkdir(logDir, { recursive: true });
|
|
225
225
|
const domain = resolveGuiDomain();
|
|
226
226
|
const label = resolveLaunchAgentLabel({ env });
|
|
227
227
|
for (const legacyLabel of resolveLegacyGatewayLaunchAgentLabels(env.SYMI_PROFILE)) {
|
|
@@ -233,11 +233,11 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
233
233
|
]);
|
|
234
234
|
await execLaunchctl(["unload", legacyPlistPath]);
|
|
235
235
|
try {
|
|
236
|
-
await
|
|
236
|
+
await fsPromises.unlink(legacyPlistPath);
|
|
237
237
|
} catch {}
|
|
238
238
|
}
|
|
239
239
|
const plistPath = resolveLaunchAgentPlistPathForLabel(env, label);
|
|
240
|
-
await
|
|
240
|
+
await fsPromises.mkdir(path.dirname(plistPath), { recursive: true });
|
|
241
241
|
const plist = buildLaunchAgentPlist({
|
|
242
242
|
label,
|
|
243
243
|
comment: resolveGatewayServiceDescription({
|
|
@@ -251,7 +251,7 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
251
251
|
stderrPath,
|
|
252
252
|
environment
|
|
253
253
|
});
|
|
254
|
-
await
|
|
254
|
+
await fsPromises.writeFile(plistPath, plist, "utf8");
|
|
255
255
|
await execLaunchctl([
|
|
256
256
|
"bootout",
|
|
257
257
|
domain,
|
|
@@ -408,7 +408,7 @@ function resolveTaskUser(env) {
|
|
|
408
408
|
async function readScheduledTaskCommand(env) {
|
|
409
409
|
const scriptPath = resolveTaskScriptPath(env);
|
|
410
410
|
try {
|
|
411
|
-
const content = await
|
|
411
|
+
const content = await fsPromises.readFile(scriptPath, "utf8");
|
|
412
412
|
let workingDirectory = "";
|
|
413
413
|
let commandLine = "";
|
|
414
414
|
const environment = {};
|
|
@@ -476,7 +476,7 @@ async function assertSchtasksAvailable() {
|
|
|
476
476
|
async function installScheduledTask({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
477
477
|
await assertSchtasksAvailable();
|
|
478
478
|
const scriptPath = resolveTaskScriptPath(env);
|
|
479
|
-
await
|
|
479
|
+
await fsPromises.mkdir(path.dirname(scriptPath), { recursive: true });
|
|
480
480
|
const script = buildTaskScript({
|
|
481
481
|
description: resolveGatewayServiceDescription({
|
|
482
482
|
env,
|
|
@@ -487,7 +487,7 @@ async function installScheduledTask({ env, stdout, programArguments, workingDire
|
|
|
487
487
|
workingDirectory,
|
|
488
488
|
environment
|
|
489
489
|
});
|
|
490
|
-
await
|
|
490
|
+
await fsPromises.writeFile(scriptPath, script, "utf8");
|
|
491
491
|
const taskName = resolveTaskName(env);
|
|
492
492
|
const baseArgs = [
|
|
493
493
|
"/Create",
|
|
@@ -539,7 +539,7 @@ async function uninstallScheduledTask({ env, stdout }) {
|
|
|
539
539
|
]);
|
|
540
540
|
const scriptPath = resolveTaskScriptPath(env);
|
|
541
541
|
try {
|
|
542
|
-
await
|
|
542
|
+
await fsPromises.unlink(scriptPath);
|
|
543
543
|
stdout.write(`${formatLine("Removed task script", scriptPath)}\n`);
|
|
544
544
|
} catch {
|
|
545
545
|
stdout.write(`Task script not found at ${scriptPath}\n`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as resolveSessionFilePath, s as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
3
|
-
import { n as extractToolCallNames, t as countToolResults } from "./transcript-tools
|
|
2
|
+
import { n as resolveSessionFilePath, s as resolveSessionTranscriptsDirForAgent } from "./paths-CJcw9nbZ.js";
|
|
3
|
+
import { n as extractToolCallNames, t as countToolResults } from "./transcript-tools-CrMLYORt.js";
|
|
4
4
|
import { i as resolveModelCostConfig, t as estimateUsageCost } from "./usage-format-Ca9K30TH.js";
|
|
5
|
-
import fs from "node:fs";
|
|
6
5
|
import path from "node:path";
|
|
6
|
+
import fs from "node:fs";
|
|
7
7
|
import readline from "node:readline";
|
|
8
8
|
|
|
9
9
|
//#region src/agents/usage.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fsPromises from "node:fs/promises";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/session-dirs.ts
|
|
5
5
|
async function resolveAgentSessionDirs(stateDir) {
|
|
6
6
|
const agentsDir = path.join(stateDir, "agents");
|
|
7
7
|
let entries = [];
|
|
8
8
|
try {
|
|
9
|
-
entries = await
|
|
9
|
+
entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
|
|
10
10
|
} catch (err) {
|
|
11
11
|
if (err.code === "ENOENT") return [];
|
|
12
12
|
throw err;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { Et as normalizeSecretInput, H as resolveDefaultModelForAgent, Ht as DEFAULT_MODEL, L as normalizeProviderId, R as parseModelRef, T as resolveSymiAgentDir, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, Vt as DEFAULT_CONTEXT_TOKENS, b as ensureAuthProfileStore, c as resolveApiKeyForProfile, h as listProfilesForProvider, m as dedupeProfileIds, n as resolveAuthProfileOrder, yt as getCustomProviderApiKey } from "./auth-profiles-
|
|
6
|
-
import { t as formatCliCommand } from "./command-format-
|
|
7
|
-
import { o as normalizeAgentId, p as DEFAULT_ACCOUNT_ID, s as normalizeMainKey, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-
|
|
8
|
-
import { i as logDebug } from "./exec-
|
|
9
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
10
|
-
import { i as loadConfig } from "./config-
|
|
11
|
-
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-
|
|
12
|
-
import { n as listChannelPlugins } from "./plugins-
|
|
13
|
-
import { c as resolveStorePath } from "./paths-
|
|
14
|
-
import { t as ensureSymiModelsJson } from "./models-config-
|
|
1
|
+
import { j as theme } from "./registry-DKJLAPDB.js";
|
|
2
|
+
import { g as resolveStateDir } from "./paths-BSzKwaxE.js";
|
|
3
|
+
import { u as isRecord } from "./utils-BU8jVQFM.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
5
|
+
import { Et as normalizeSecretInput, H as resolveDefaultModelForAgent, Ht as DEFAULT_MODEL, L as normalizeProviderId, R as parseModelRef, T as resolveSymiAgentDir, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, Vt as DEFAULT_CONTEXT_TOKENS, b as ensureAuthProfileStore, c as resolveApiKeyForProfile, h as listProfilesForProvider, m as dedupeProfileIds, n as resolveAuthProfileOrder, yt as getCustomProviderApiKey } from "./auth-profiles-BVtpxYtY.js";
|
|
6
|
+
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
7
|
+
import { o as normalizeAgentId, p as DEFAULT_ACCOUNT_ID, s as normalizeMainKey, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-B_ZVH1kE.js";
|
|
8
|
+
import { i as logDebug } from "./exec-DKyLtSjm.js";
|
|
9
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-BjEBQhs0.js";
|
|
10
|
+
import { i as loadConfig } from "./config-CW8aDVM0.js";
|
|
11
|
+
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-BaFVKzC2.js";
|
|
12
|
+
import { n as listChannelPlugins } from "./plugins-DuuHorqi.js";
|
|
13
|
+
import { c as resolveStorePath } from "./paths-CJcw9nbZ.js";
|
|
14
|
+
import { t as ensureSymiModelsJson } from "./models-config-DRgHv7Ss.js";
|
|
15
15
|
import { t as bindAbortRelay } from "./fetch-timeout-CgmRK282.js";
|
|
16
16
|
import { n as formatTimeAgo } from "./format-relative-Vm-Tqk0h.js";
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
|
+
import path from "node:path";
|
|
18
19
|
import fs from "node:fs";
|
|
19
20
|
import os from "node:os";
|
|
20
|
-
import
|
|
21
|
-
import fs$1 from "node:fs/promises";
|
|
21
|
+
import fsPromises from "node:fs/promises";
|
|
22
22
|
|
|
23
23
|
//#region src/logging/redact-identifier.ts
|
|
24
24
|
function sha256HexPrefix(value, len = 12) {
|
|
@@ -1428,27 +1428,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
1430
1430
|
const filePath = resolveRestartSentinelPath(env);
|
|
1431
|
-
await
|
|
1431
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
1432
1432
|
const data = {
|
|
1433
1433
|
version: 1,
|
|
1434
1434
|
payload
|
|
1435
1435
|
};
|
|
1436
|
-
await
|
|
1436
|
+
await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
1437
1437
|
return filePath;
|
|
1438
1438
|
}
|
|
1439
1439
|
async function readRestartSentinel(env = process.env) {
|
|
1440
1440
|
const filePath = resolveRestartSentinelPath(env);
|
|
1441
1441
|
try {
|
|
1442
|
-
const raw = await
|
|
1442
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
1443
1443
|
let parsed;
|
|
1444
1444
|
try {
|
|
1445
1445
|
parsed = JSON.parse(raw);
|
|
1446
1446
|
} catch {
|
|
1447
|
-
await
|
|
1447
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
1448
1448
|
return null;
|
|
1449
1449
|
}
|
|
1450
1450
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
1451
|
-
await
|
|
1451
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
1452
1452
|
return null;
|
|
1453
1453
|
}
|
|
1454
1454
|
return parsed;
|
|
@@ -1460,7 +1460,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
1460
1460
|
const filePath = resolveRestartSentinelPath(env);
|
|
1461
1461
|
const parsed = await readRestartSentinel(env);
|
|
1462
1462
|
if (!parsed) return null;
|
|
1463
|
-
await
|
|
1463
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
1464
1464
|
return parsed;
|
|
1465
1465
|
}
|
|
1466
1466
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { y as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { d as normalizeE164 } from "./utils-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { D as resolveProcessScopedMap, O as isPidAlive } from "./auth-profiles-
|
|
5
|
-
import { h as normalizeOptionalAccountId, o as normalizeAgentId, r as buildAgentMainSessionKey, s as normalizeMainKey, t as DEFAULT_AGENT_ID } from "./session-key-
|
|
6
|
-
import { f as parseByteSize, i as loadConfig, m as parseDurationMs } from "./config-
|
|
7
|
-
import { s as normalizeHyphenSlug, t as getChannelDock } from "./dock-
|
|
8
|
-
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-
|
|
9
|
-
import { t as normalizeChatType } from "./chat-type-
|
|
10
|
-
import { n as resolveConversationLabel } from "./conversation-label-
|
|
11
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
12
|
-
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
13
|
-
import { r as hasInterSessionUserProvenance } from "./input-provenance-
|
|
14
|
-
import { n as extractToolCallNames, r as hasToolCall } from "./transcript-tools
|
|
15
|
-
import { t as emitSessionTranscriptUpdate } from "./transcript-events-
|
|
1
|
+
import { y as resolveRequiredHomeDir } from "./paths-BSzKwaxE.js";
|
|
2
|
+
import { d as normalizeE164 } from "./utils-BU8jVQFM.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
4
|
+
import { D as resolveProcessScopedMap, O as isPidAlive } from "./auth-profiles-BVtpxYtY.js";
|
|
5
|
+
import { h as normalizeOptionalAccountId, o as normalizeAgentId, r as buildAgentMainSessionKey, s as normalizeMainKey, t as DEFAULT_AGENT_ID } from "./session-key-B_ZVH1kE.js";
|
|
6
|
+
import { f as parseByteSize, i as loadConfig, m as parseDurationMs } from "./config-CW8aDVM0.js";
|
|
7
|
+
import { s as normalizeHyphenSlug, t as getChannelDock } from "./dock-CnGWTXL4.js";
|
|
8
|
+
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-C_V8IAYx.js";
|
|
9
|
+
import { t as normalizeChatType } from "./chat-type-B7XD_ESN.js";
|
|
10
|
+
import { n as resolveConversationLabel } from "./conversation-label-CS5Zjc4w.js";
|
|
11
|
+
import { r as normalizeChannelId } from "./plugins-DuuHorqi.js";
|
|
12
|
+
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, t as resolveDefaultSessionStorePath } from "./paths-CJcw9nbZ.js";
|
|
13
|
+
import { r as hasInterSessionUserProvenance } from "./input-provenance-DsLesw6T.js";
|
|
14
|
+
import { n as extractToolCallNames, r as hasToolCall } from "./transcript-tools-CrMLYORt.js";
|
|
15
|
+
import { t as emitSessionTranscriptUpdate } from "./transcript-events-Ch7wLX-j.js";
|
|
16
16
|
import crypto from "node:crypto";
|
|
17
|
+
import path from "node:path";
|
|
17
18
|
import fs from "node:fs";
|
|
18
19
|
import os from "node:os";
|
|
19
|
-
import
|
|
20
|
-
import fs$1 from "node:fs/promises";
|
|
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
|
-
import { F as modelKey, Ut as DEFAULT_PROVIDER, W as resolveModelRefFromString, j as buildModelAliasIndex } from "./auth-profiles-
|
|
2
|
-
import { t as formatCliCommand } from "./command-format-
|
|
3
|
-
import { o as normalizeAgentId } from "./session-key-
|
|
4
|
-
import { n as listAgentIds } from "./agent-scope-
|
|
5
|
-
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-
|
|
1
|
+
import { F as modelKey, Ut as DEFAULT_PROVIDER, W as resolveModelRefFromString, j as buildModelAliasIndex } from "./auth-profiles-BVtpxYtY.js";
|
|
2
|
+
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
3
|
+
import { o as normalizeAgentId } from "./session-key-B_ZVH1kE.js";
|
|
4
|
+
import { n as listAgentIds } from "./agent-scope-BjEBQhs0.js";
|
|
5
|
+
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-CW8aDVM0.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/models/shared.ts
|
|
8
8
|
const ensureFlagCompatibility = (opts) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as defaultRuntime } from "./subsystem-
|
|
2
|
-
import { t as formatCliCommand } from "./command-format-
|
|
1
|
+
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
2
|
+
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
3
3
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-DsZw7bas.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-9ItKCWWS.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
const toOptionString = (value) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
3
|
-
import { Y as resolveUserPath, z as CONFIG_DIR } from "./registry-
|
|
4
|
-
import { o as resolveAgentWorkspaceDir, t as listAgentIds } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
7
|
-
import { n as listChatCommands } from "./commands-registry-
|
|
3
|
+
import { Y as resolveUserPath, z as CONFIG_DIR } from "./registry-9AaJQms1.js";
|
|
4
|
+
import { o as resolveAgentWorkspaceDir, t as listAgentIds } from "./agent-scope-DE5eEsvh.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
6
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-BMTJ2Tiq.js";
|
|
7
|
+
import { n as listChatCommands } from "./commands-registry-C5IdtVVy.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
@@ -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-BjEBQhs0.js";
|
|
3
|
+
import { n as buildWorkspaceSkillCommandSpecs } from "./skills-C_KgxpBD.js";
|
|
4
|
+
import { n as listChatCommands } from "./commands-registry-DYk02tmt.js";
|
|
5
|
+
import { t as getRemoteSkillEligibility } from "./skills-remote-C0gcKYWX.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
|
|
8
8
|
//#region src/auto-reply/skill-commands.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as isPathInside } from "./legacy-names-
|
|
2
|
-
import { i as hasErrnoCode } from "./errors-
|
|
1
|
+
import { i as isPathInside } from "./legacy-names-C0hZiM-7.js";
|
|
2
|
+
import { i as hasErrnoCode } from "./errors-Z-WkF18Q.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,9 +1,9 @@
|
|
|
1
|
-
import { Y as resolveUserPath, z as CONFIG_DIR } from "./registry-
|
|
2
|
-
import { d as normalizeSkillFilter } from "./agent-scope-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { h as resolveSymiPackageRootSync } from "./workspace-
|
|
5
|
-
import { c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, o as normalizePluginsConfig, s as resolveEnableState, t as loadPluginManifestRegistry } from "./manifest-registry-
|
|
6
|
-
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-
|
|
1
|
+
import { Y as resolveUserPath, z as CONFIG_DIR } from "./registry-9AaJQms1.js";
|
|
2
|
+
import { d as normalizeSkillFilter } from "./agent-scope-DE5eEsvh.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
4
|
+
import { h as resolveSymiPackageRootSync } from "./workspace-OBnI5mKu.js";
|
|
5
|
+
import { c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, o as normalizePluginsConfig, s as resolveEnableState, t as loadPluginManifestRegistry } from "./manifest-registry-B2vClvK5.js";
|
|
6
|
+
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-BW7tVmn4.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { i as normalizeSkillFilter, n as resolveSymiPackageRootSync } from "./symi-root-
|
|
4
|
-
import { d as resolveEnableState, f as resolveMemorySlotDecision, h as isDangerousHostEnvVarName, n as loadPluginManifestRegistry, u as normalizePluginsConfig } from "./manifest-registry-
|
|
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-
|
|
1
|
+
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-BU8jVQFM.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
3
|
+
import { i as normalizeSkillFilter, n as resolveSymiPackageRootSync } from "./symi-root-0MUhiNlM.js";
|
|
4
|
+
import { d as resolveEnableState, f as resolveMemorySlotDecision, h as isDangerousHostEnvVarName, n as loadPluginManifestRegistry, u as normalizePluginsConfig } from "./manifest-registry-D7Qup2Vq.js";
|
|
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-B6IdJ7UK.js";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
|
+
import path from "node:path";
|
|
7
8
|
import fs from "node:fs";
|
|
8
9
|
import os from "node:os";
|
|
9
|
-
import
|
|
10
|
-
import fs$1 from "node:fs/promises";
|
|
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
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { f as defaultRuntime } from "./subsystem-
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import { t as formatCliCommand } from "./command-format-
|
|
7
|
-
import "./exec-
|
|
8
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
9
|
-
import "./github-copilot-token-
|
|
10
|
-
import "./boolean-
|
|
11
|
-
import "./env-
|
|
12
|
-
import { i as loadConfig } from "./config-
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import { t as formatDocsLink } from "./links-
|
|
15
|
-
import { t as renderTable } from "./table-
|
|
1
|
+
import { j as theme } from "./registry-DKJLAPDB.js";
|
|
2
|
+
import "./paths-BSzKwaxE.js";
|
|
3
|
+
import { v as shortenHomePath } from "./utils-BU8jVQFM.js";
|
|
4
|
+
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
5
|
+
import "./auth-profiles-BVtpxYtY.js";
|
|
6
|
+
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
7
|
+
import "./exec-DKyLtSjm.js";
|
|
8
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-BjEBQhs0.js";
|
|
9
|
+
import "./github-copilot-token-BTNK6Tcd.js";
|
|
10
|
+
import "./boolean-Wzu0-e0P.js";
|
|
11
|
+
import "./env-B97Ms861.js";
|
|
12
|
+
import { i as loadConfig } from "./config-CW8aDVM0.js";
|
|
13
|
+
import "./manifest-registry-D7Qup2Vq.js";
|
|
14
|
+
import { t as formatDocsLink } from "./links-CSaUKNKm.js";
|
|
15
|
+
import { t as renderTable } from "./table-DkAQzCOR.js";
|
|
16
16
|
|
|
17
17
|
//#region src/cli/skills-cli.format.ts
|
|
18
18
|
function appendSymiHubHint(output, json) {
|
|
@@ -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-CdfQvU1h.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-CdfQvU1h.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-CdfQvU1h.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-CdfQvU1h.js").then((n) => n.n);
|
|
276
276
|
const report = buildWorkspaceSkillStatus(workspaceDir, { config });
|
|
277
277
|
defaultRuntime.log(formatSkillsList(report, {}));
|
|
278
278
|
} catch (err) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h as resolveUserPath, p as resolveConfigDir, s as ensureDir } from "./utils-
|
|
2
|
-
import { t as runCommandWithTimeout } from "./exec-
|
|
3
|
-
import { d as hasBinary } from "./frontmatter-
|
|
4
|
-
import { i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences, x as resolveSkillKey } from "./skills-
|
|
5
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
6
|
-
import { t as resolveBrewExecutable } from "./brew-
|
|
1
|
+
import { h as resolveUserPath, p as resolveConfigDir, s as ensureDir } from "./utils-BU8jVQFM.js";
|
|
2
|
+
import { t as runCommandWithTimeout } from "./exec-DKyLtSjm.js";
|
|
3
|
+
import { d as hasBinary } from "./frontmatter-B6IdJ7UK.js";
|
|
4
|
+
import { i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences, x as resolveSkillKey } from "./skills-C_KgxpBD.js";
|
|
5
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-DG6T0ZdL.js";
|
|
6
|
+
import { t as resolveBrewExecutable } from "./brew-BoKmB5x9.js";
|
|
7
7
|
import { t as isWithinDir } from "./path-safety-pFCZCFPp.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-
|
|
10
|
-
import fs from "node:fs";
|
|
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-B73BkVO3.js";
|
|
9
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-DVq7ZopF.js";
|
|
11
10
|
import path from "node:path";
|
|
11
|
+
import fs from "node:fs";
|
|
12
12
|
import { pipeline } from "node:stream/promises";
|
|
13
13
|
import { Readable } from "node:stream";
|
|
14
14
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
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-
|
|
1
|
+
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-BU8jVQFM.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
3
|
+
import { i as loadWorkspaceSkillEntries, s as resolvePluginSkillDirs } from "./skills-C_KgxpBD.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-DorpwP8O.js";
|
|
5
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-DStsDXra.js";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
|
-
import os from "node:os";
|
|
8
7
|
import path from "node:path";
|
|
8
|
+
import os from "node:os";
|
|
9
9
|
import chokidar from "chokidar";
|
|
10
10
|
|
|
11
11
|
//#region src/agents/skills/refresh.ts
|