@symerian/symi 3.4.14 → 3.4.16
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-C8IIjDyn.js → agent-BxlwfrtS.js} +17 -17
- package/dist/{agent-BaSGoKPq.js → agent-C4QXV3DM.js} +1 -1
- package/dist/{agent-scope-DIjW66iO.js → agent-scope-CKTVXF_1.js} +18 -18
- package/dist/{agents-D6Ygz9ED.js → agents-MAWGh-MZ.js} +3 -3
- package/dist/{agents.config-D1nFwU81.js → agents.config-DDPgPAe-.js} +1 -1
- package/dist/{audit-nqP-JeOr.js → audit-BCJhGGs7.js} +2 -2
- package/dist/{audit-BI8Rbs5q.js → audit-Bhy0yCzM.js} +20 -20
- package/dist/{auth-choice-Bx4Duu6u.js → auth-choice-B3pG20oL.js} +2 -2
- package/dist/{auth-choice-BBrEzoy2.js → auth-choice-DERl6GbY.js} +8 -8
- package/dist/{auth-profiles-BFSVvFKy.js → auth-profiles-BDvJK1Bg.js} +9 -9
- package/dist/{auth-token-SebYuqfR.js → auth-token-Dh7cXEKa.js} +1 -1
- package/dist/{banner-l9GjW5Rm.js → banner-CrLh-2_L.js} +1 -1
- package/dist/{browser-cli-Bk8DxxeA.js → browser-cli-CpVBXw3C.js} +3 -3
- package/dist/{browser-cli-BAxOL41p.js → browser-cli-Ctdel5GZ.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-BPJn2_th.js → call-8H645eSK.js} +10 -9
- package/dist/{call-5IE9ycvm.js → call-Dwi3ARhD.js} +2 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DGUqfnbP.js → channel-options-I01CE5I3.js} +1 -1
- package/dist/{channel-options-COanIUoQ.js → channel-options-Jb0g65X3.js} +1 -1
- package/dist/{channels-cli-CZ3M3yE1.js → channels-cli-Bhrx8sbn.js} +9 -9
- package/dist/{channels-cli-B1zmnm5a.js → channels-cli-BqFCS_7N.js} +54 -54
- package/dist/{chrome-B4P7ycw5.js → chrome-CQn8fDIy.js} +4 -4
- package/dist/{chrome-VbDUdW0_.js → chrome-CXZZLI1N.js} +2 -2
- package/dist/{chrome-CPSDqbK6.js → chrome-DT1fIVG1.js} +4 -4
- package/dist/{cli-CC5GrdTI.js → cli-CmH8dZk4.js} +6 -6
- package/dist/{cli-C7I5uEFC.js → cli-DHDuQ1Ao.js} +42 -42
- package/dist/{client-Dp8LUTmF.js → client-CFUQAIIE.js} +3 -1
- package/dist/{client-qjXXRKCO.js → client-lkWaEu6S.js} +4 -2
- package/dist/{command-registry-D8fj6th4.js → command-registry-DJZ5J_NP.js} +11 -11
- package/dist/{commands-registry-BNCcZy2y.js → commands-registry-CLePPNDW.js} +1 -1
- package/dist/{completion-cli-BxspmuYm.js → completion-cli-DF5DA16K.js} +2 -2
- package/dist/{completion-cli-C-85b5b8.js → completion-cli-SuImt6E5.js} +12 -12
- package/dist/{config-cli-BqzjDmIH.js → config-cli-CxfJyFzy.js} +4 -4
- package/dist/{config-cli-DSDGwckX.js → config-cli-D4ZuazGl.js} +1 -1
- package/dist/{config-DqMsGcSQ.js → config-e4gtNbYA.js} +2 -2
- package/dist/{config-guard-CJcSKMuP.js → config-guard-9KHqoVah.js} +6 -6
- package/dist/{config-validation-Bp2wJ610.js → config-validation-DdA5SfZN.js} +1 -1
- package/dist/{configure-BazJdwKU.js → configure-C-N62SHF.js} +6 -6
- package/dist/{configure-Dl1f1Den.js → configure-CNG8CYHb.js} +14 -14
- package/dist/{consolidate-7Usm-b2g.js → consolidate-Cx7qF5Ht.js} +6 -6
- package/dist/{control-service-Fn3d9AlH.js → control-service-D3Iaavrm.js} +4 -4
- package/dist/control-ui/css/style.css +54 -43
- package/dist/control-ui/index.html +1 -9
- package/dist/control-ui/js/app.js +0 -5
- package/dist/control-ui/js/slash-autocomplete.js +149 -0
- package/dist/{control-ui-assets-DUhvOLUL.js → control-ui-assets-D22DSxhv.js} +1 -1
- package/dist/{cron-cli-DXgI5Lid.js → cron-cli-9gskPfAH.js} +3 -3
- package/dist/{cron-cli-DZyH2BfZ.js → cron-cli-DVj7bddU.js} +7 -7
- package/dist/{daemon-cli-DmMYx5Uf.js → daemon-cli-Bbv64XWl.js} +2 -2
- package/dist/{daemon-cli-C6FSROt1.js → daemon-cli-nhO-a_Bi.js} +11 -11
- package/dist/daemon-cli.js +3 -0
- package/dist/{daemon-runtime-BpfA4d6Q.js → daemon-runtime-CJzKuFbC.js} +10 -10
- package/dist/{deliver-BkCYBlzi.js → deliver-59sRVaYQ.js} +4 -4
- package/dist/{deliver-RwovDEDy.js → deliver-CxOAv44C.js} +2 -2
- package/dist/{deliver-Mqq3tgqB.js → deliver-DvW5xHHr.js} +4 -4
- package/dist/{deps-bCHNuszw.js → deps-Cwq_3i09.js} +1 -1
- package/dist/{devices-cli-D6xXc9Ym.js → devices-cli-BdRBoZbv.js} +6 -6
- package/dist/{devices-cli-IMv-0zor.js → devices-cli-Cbez9Fap.js} +2 -2
- package/dist/{diagnostics-DxdqTfpW.js → diagnostics-nLP2i_BY.js} +5 -5
- package/dist/{directory-cli-ClbYhd6z.js → directory-cli-CMa8Okul.js} +3 -3
- package/dist/{dm-policy-shared-5HLej1br.js → dm-policy-shared-CQpFAzTa.js} +1 -1
- package/dist/{dns-cli-CY2voLuR.js → dns-cli-CMBl2B2j.js} +3 -3
- package/dist/{docs-cli-DjQ3SvBq.js → docs-cli-C2BEC5yU.js} +1 -1
- package/dist/{doctor-completion-CX7LjkOD.js → doctor-completion-C4XUXnaA.js} +1 -1
- package/dist/{doctor-completion-BwHbIZjF.js → doctor-completion-DKCccBNY.js} +2 -2
- package/dist/{doctor-config-flow-CYDx1U0Z.js → doctor-config-flow-Dwm_Y2h3.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-B_P-1zVp.js → exec-approvals-cli-4n1jYMlS.js} +13 -13
- package/dist/{exec-approvals-cli-Dy1jvh2M.js → exec-approvals-cli-BtH1ykEU.js} +4 -4
- package/dist/extensionAPI.js +4 -4
- package/dist/{fs-safe-B6nMaZqV.js → fs-safe-DjAKGGJ8.js} +6 -6
- package/dist/{gateway-cli-CTcK1Az2.js → gateway-cli-6DYQ9V3M.js} +96 -95
- package/dist/{gateway-cli-CW-Z71cE.js → gateway-cli-Y6aR7DlZ.js} +17 -16
- package/dist/{gateway-rpc-DD_aXogj.js → gateway-rpc-Cb6Hsnx7.js} +1 -1
- package/dist/{gateway-rpc-C1xjWlxu.js → gateway-rpc-Mf07Va_c.js} +1 -1
- package/dist/{glass-ui-ws-BZvH4MBO.js → glass-ui-ws-D9lv_Fus.js} +13 -13
- package/dist/{glass-ui-ws-BNJkhJrL.js → glass-ui-ws-kUuNFNa_.js} +64 -64
- package/dist/{health-D8cKia4i.js → health-BNbL0vIk.js} +4 -4
- package/dist/{health-DdzNc1yA.js → health-Citq_4AL.js} +1 -1
- package/dist/{hooks-cli-qO421UdO.js → hooks-cli-9VgRbUTO.js} +7 -7
- package/dist/{hooks-cli-DkP3Y4ou.js → hooks-cli-BLVpSc2f.js} +56 -56
- package/dist/{image-ops-C-gIIp7Q.js → image-ops-c7_of0HT.js} +10 -10
- package/dist/index.js +49 -49
- package/dist/{inspect-BDzd6yBs.js → inspect-op0Ov-v4.js} +4 -4
- package/dist/{install-safe-path-CQXx3s9R.js → install-safe-path-B73BkVO3.js} +11 -11
- package/dist/{installs-DhSLZRT7.js → installs-BzgwvqqQ.js} +10 -10
- package/dist/{internal-CHnZdvRy.js → internal-C3o_xyzP.js} +9 -9
- package/dist/{lifecycle-core-BEmljRfh.js → lifecycle-core-FlMrd9ab.js} +5 -5
- package/dist/llm-slug-generator.js +4 -4
- package/dist/{local-roots-BnDnugq3.js → local-roots-CUKhHNCV.js} +1 -1
- package/dist/{logs-cli-Dbmzz8m_.js → logs-cli-K2EqrFLO.js} +7 -7
- package/dist/{logs-cli-BB0Mq8D1.js → logs-cli-rsKjIgKD.js} +3 -3
- package/dist/{manager-BQaZlWzK.js → manager-Abf6Ojpw.js} +1 -1
- package/dist/{manager-MbrGCH4o.js → manager-BSHK3Wl8.js} +1 -1
- package/dist/{manager-BD_cpL9b.js → manager-BeNnzSJv.js} +1 -1
- package/dist/{manager-DOiW-Koo.js → manager-ByEbqe6-.js} +14 -14
- package/dist/{memory-Cl4I_45k.js → memory-BaDWe-xp.js} +2 -2
- package/dist/{memory-kIYeV9aO.js → memory-DC-qFwtN.js} +5 -5
- package/dist/{memory-cli-CszP57Ee.js → memory-cli-Ceun-Zo3.js} +2 -2
- package/dist/{memory-cli-DkD_OD70.js → memory-cli-DDXHC4Oc.js} +12 -12
- package/dist/{model-BRcKPW49.js → model-CbRy_3xW.js} +1 -1
- package/dist/{model-catalog-CaGfL-2g.js → model-catalog-Bfu_yBpI.js} +4 -4
- package/dist/{model-picker-CV56GE8A.js → model-picker-BEm4_Lpz.js} +3 -3
- package/dist/{models-BYi0Fo1a.js → models-BvyDRpwv.js} +3 -3
- package/dist/{models-cli-Bn9M1TgO.js → models-cli-9VxvzSY6.js} +52 -52
- package/dist/{models-cli-EdjvkvFO.js → models-cli-CQ7EMoEg.js} +9 -9
- package/dist/{models-config-Unnduxgs.js → models-config-B-YxzPLd.js} +7 -7
- package/dist/{node-cli-C8FYMIjN.js → node-cli-BGHROzvW.js} +1 -1
- package/dist/{node-cli-39H0MZ8q.js → node-cli-BUwT-V9W.js} +27 -27
- package/dist/{node-service-tPO_yUk7.js → node-service-DuN9eBL6.js} +1 -1
- package/dist/{nodes-cli-C-03nIJ0.js → nodes-cli-Deouq1_W.js} +10 -10
- package/dist/{nodes-cli-CqxQexTU.js → nodes-cli-L9PE4_mv.js} +3 -3
- package/dist/{nodes-screen-JELuBMBi.js → nodes-screen-CT94yu_w.js} +4 -4
- package/dist/{npm-registry-spec-BXw_6vF6.js → npm-registry-spec-B8X06AqB.js} +9 -9
- package/dist/{onboard-CAIujkV7.js → onboard-4NbQl96N.js} +3 -3
- package/dist/{onboard-C8IQnigm.js → onboard-8ohsW35T.js} +13 -13
- package/dist/{onboard-channels-B2l6OoMg.js → onboard-channels-BBjQQeMN.js} +1 -1
- package/dist/{onboard-channels-D_uUQbem.js → onboard-channels-CWTpqREc.js} +4 -4
- package/dist/{onboard-custom-B2fJvyxt.js → onboard-custom-D6tlcthi.js} +3 -3
- package/dist/{onboard-helpers-Bm-oyLWy.js → onboard-helpers-CAuQ1IWD.js} +1 -1
- package/dist/{onboard-helpers-CHfdRdZR.js → onboard-helpers-DKnX4Zrl.js} +8 -8
- package/dist/{onboard-hooks-DBYkemjF.js → onboard-hooks-zOcdg3uW.js} +1 -1
- package/dist/{onboard-remote-ecyetiyL.js → onboard-remote-CZmU-yNO.js} +1 -1
- package/dist/{onboard-remote-z8XLK4M0.js → onboard-remote-D2u2nh0i.js} +1 -1
- package/dist/{onboard-skills-BLvL0KPR.js → onboard-skills-B-meN1aW.js} +4 -4
- package/dist/{onboard-skills-C53RGq_5.js → onboard-skills-CmD3Tuui.js} +1 -1
- package/dist/{onboarding-BIq5BxG0.js → onboarding-BcuWzulD.js} +7 -7
- package/dist/{onboarding-4v9LJueP.js → onboarding-FLjy51GR.js} +12 -12
- package/dist/{onboarding.finalize-Bkcwe5RS.js → onboarding.finalize-DSdlsUwa.js} +31 -31
- package/dist/{onboarding.finalize-CXAQzVXM.js → onboarding.finalize-TsyIiWeF.js} +9 -9
- package/dist/{onboarding.gateway-config-3JMN1xRf.js → onboarding.gateway-config-C9led5lX.js} +8 -8
- package/dist/{onboarding.gateway-config-Ft3f6Jba.js → onboarding.gateway-config-CM3sKyZo.js} +3 -3
- package/dist/{openai-model-default-CDDFpxUr.js → openai-model-default-C57VbKS7.js} +2 -2
- package/dist/{pairing-cli-CJGA4j6G.js → pairing-cli-CRy4Sw1m.js} +4 -4
- package/dist/{pairing-store-BGf29nPx.js → pairing-store-S9CXOhSG.js} +1 -1
- package/dist/{pairing-token-CURbSHdi.js → pairing-token-DorpwP8O.js} +7 -7
- package/dist/{paths-Dc6A9_vI.js → paths-DaQrPPet.js} +1 -1
- package/dist/{pi-auth-json-SHGGQzOL.js → pi-auth-json-CVwNh4rb.js} +5 -5
- package/dist/{pi-embedded-8Zh_Y5ur.js → pi-embedded-DJKetjip.js} +13 -10
- package/dist/{pi-embedded-helpers-CAdI9wJ5.js → pi-embedded-helpers-DUx9ViYy.js} +6 -6
- package/dist/{pi-tools.policy-Dyx3nBmp.js → pi-tools.policy-B0lPjw5N.js} +3 -3
- package/dist/{plugin-auto-enable-D2TNEv3x.js → plugin-auto-enable-BDPdHiLS.js} +1 -1
- package/dist/{plugin-registry-D7ACpV2Y.js → plugin-registry-CDwUvhG3.js} +1 -1
- package/dist/{plugin-registry-d4hMhLLZ.js → plugin-registry-lssaEXUZ.js} +3 -3
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +5 -2
- package/dist/plugin-sdk/gateway/protocol/schema/logs-chat.d.ts +1 -0
- package/dist/{plugins-cli-CPf1hMaZ.js → plugins-cli-CR6LA3Zk.js} +51 -51
- package/dist/{plugins-cli-D1gd8p9T.js → plugins-cli-HROGUz9H.js} +7 -7
- package/dist/{ports-DRHSHvqY.js → ports-ChuJYhEL.js} +1 -1
- package/dist/{ports-DqxP-bXz.js → ports-EAVAOFyK.js} +2 -2
- package/dist/{program-C19G7o-Q.js → program-CVgY3xqh.js} +12 -12
- package/dist/{program-context-BSUkEz3n.js → program-context-C5ExAuya.js} +38 -38
- package/dist/{prompt-select-styled-CnYM7W0j.js → prompt-select-styled-DYWkAR4G.js} +7 -7
- package/dist/{prompt-select-styled-B5wlPYN5.js → prompt-select-styled-Eh0nzrZ8.js} +36 -36
- package/dist/{provider-auth-helpers-DpRoNr_8.js → provider-auth-helpers-4Z6bU9-3.js} +5 -5
- package/dist/{provider-auth-helpers-BUC4xGK9.js → provider-auth-helpers-B9NAbuRn.js} +1 -1
- package/dist/{push-apns-Bm39oOO9.js → push-apns-CUACAVd6.js} +4 -4
- package/dist/{push-apns-DqmFEcqh.js → push-apns-DB-oyDXs.js} +1 -1
- package/dist/{pw-ai-w6Qalz1W.js → pw-ai-BB1pJj9_.js} +1 -1
- package/dist/{pw-ai-BsEf8C15.js → pw-ai-C5MJKzUM.js} +1 -1
- package/dist/{pw-ai-B2NuWIL7.js → pw-ai-Df15PGTL.js} +7 -7
- package/dist/{qmd-manager-358OTDns.js → qmd-manager-0KqWHsaN.js} +19 -19
- package/dist/{qr-cli-hPIeUYAT.js → qr-cli-LK6XUdA4.js} +3 -3
- package/dist/{register.agent-CCKcgAXs.js → register.agent-B2uaqVl1.js} +64 -64
- package/dist/{register.agent-DZuxoC0a.js → register.agent-Cw-xilkP.js} +12 -12
- package/dist/{register.configure-CJErdFO_.js → register.configure-DcK9kvfL.js} +67 -67
- package/dist/{register.configure-JT8T7HO5.js → register.configure-PJAnKSja.js} +14 -14
- package/dist/{register.maintenance-DDzKUGYJ.js → register.maintenance-_6TRSsvd.js} +64 -64
- package/dist/{register.maintenance-CKsv0lok.js → register.maintenance-g_pNbyVg.js} +13 -13
- package/dist/{register.message-CpOXi1rz.js → register.message-BnpfKdYG.js} +44 -44
- package/dist/{register.message-_bfhetTg.js → register.message-D3Ig-Jzq.js} +7 -7
- package/dist/{register.onboard-CkIM3hU7.js → register.onboard-Cd99utnP.js} +6 -6
- package/dist/{register.onboard-BHtTh0b_.js → register.onboard-CrdHd4YG.js} +22 -22
- package/dist/{register.setup-CLhdFQHW.js → register.setup-BEs9uiiC.js} +25 -25
- package/dist/{register.setup-CYtYDKMU.js → register.setup-DkCfuBzx.js} +6 -6
- package/dist/{register.status-health-sessions-DmX0DLAt.js → register.status-health-sessions-DVBjRsJi.js} +8 -8
- package/dist/{register.status-health-sessions-DZnebsxZ.js → register.status-health-sessions-DYmKN4um.js} +38 -38
- package/dist/{register.subclis-CnDo2jzv.js → register.subclis-CVoaDyXE.js} +19 -19
- package/dist/{replies-B2O2eRh6.js → replies-BLmn6tJz.js} +1 -1
- package/dist/{reply-prefix-BOdARKaY.js → reply-prefix-DZQBodKF.js} +1 -1
- package/dist/{resolve-route-CRWE36h5.js → resolve-route-BbUl3Hi7.js} +1 -1
- package/dist/{routes-BMShi_eY.js → routes-DgT1raBC.js} +10 -10
- package/dist/{rpc-D0Ldc6Hv.js → rpc-Bki5OqHV.js} +1 -1
- package/dist/{rpc-CEhoSTGo.js → rpc-C6w0z2sB.js} +1 -1
- package/dist/{run-main-BIRbWKyA.js → run-main-DGMiCTPr.js} +20 -20
- package/dist/{sandbox-C-UeHmuJ.js → sandbox-BkYjPUBB.js} +18 -18
- package/dist/{sandbox-cli-CNAPNXJ4.js → sandbox-cli-0FmIDe_m.js} +13 -13
- package/dist/{security-cli-DDM0Z6IW.js → security-cli-DFvPQsvu.js} +3 -3
- package/dist/{security-cli-BSd8_Gsq.js → security-cli-ejJGH_gW.js} +28 -28
- package/dist/{send-DSK6O8SC.js → send-9PcWD4fG.js} +7 -7
- package/dist/{server-context-DFO6o83F.js → server-context-B7dLOKCi.js} +5 -5
- package/dist/{server-methods-Dz6NGEg3.js → server-methods-B9PH0oNz.js} +33 -10
- package/dist/{server-methods-vp5zi6v5.js → server-methods-BtlhJrhx.js} +80 -57
- package/dist/{server-node-events-4ufB_olv.js → server-node-events-CZwsbJJ7.js} +8 -8
- package/dist/{server-node-events-B7UtUhkC.js → server-node-events-pgNK7gTw.js} +45 -45
- package/dist/{service-AP9pR9R5.js → service-9ItKCWWS.js} +15 -15
- package/dist/{session-dirs-Chh7bBGo.js → session-dirs-B6PWqKEf.js} +2 -2
- package/dist/{session-utils-CgGDr4eh.js → session-utils-0LAFVJl4.js} +12 -12
- package/dist/{sessions-Dh88Kqd6.js → sessions-DJ9kN6ZB.js} +11 -11
- package/dist/{shared-_wwqvx84.js → shared-BTKigB51.js} +3 -3
- package/dist/{shared-DmYHvtn2.js → shared-ot5_jkpP.js} +1 -1
- package/dist/{skill-commands-5QB5E8bv.js → skill-commands-RbglvrSW.js} +4 -4
- package/dist/{skill-scanner-YF2jR4RY.js → skill-scanner-CZK0TG9g.js} +5 -5
- package/dist/{skills-Bmjf5nFv.js → skills-DS1Vdylm.js} +4 -4
- package/dist/{skills-cli-Byp9MfZh.js → skills-cli-DHTm73Re.js} +7 -7
- package/dist/{skills-install-BB27sD4d.js → skills-install-CD4O4yWI.js} +3 -3
- package/dist/{skills-remote-CqwR3Zvp.js → skills-remote-BDSyRdyX.js} +3 -3
- package/dist/{skills-status-BNDqwHkP.js → skills-status-F7nlolZZ.js} +1 -1
- package/dist/{sqlite-DBEvS-Ne.js → sqlite-BUXBg2yu.js} +5 -5
- package/dist/{status-MMLxoRgQ.js → status-C27L1-B1.js} +1 -1
- package/dist/{status-DEXnB1sw.js → status-DQQOJNd8.js} +23 -23
- package/dist/{status-BD8gFYKH.js → status-DfAxyxKZ.js} +5 -5
- package/dist/{status-B0HecH1s.js → status-Df_qWsKA.js} +3 -3
- package/dist/{status.update-CB9e3eWW.js → status.update-Bk4bidvt.js} +3 -3
- package/dist/{subagent-registry-C57PFGHU.js → subagent-registry-B6hpdjMe.js} +5 -5
- package/dist/{symi-root-DueRHNOE.js → symi-root-0MUhiNlM.js} +2 -2
- package/dist/{synthesis-iB7TWRW4.js → synthesis-BLGzIzgw.js} +4 -4
- package/dist/{synthesis-j_kjlFo1.js → synthesis-BQarjPR5.js} +6 -6
- package/dist/{synthesis-CjsIBd8X.js → synthesis-ZzOpDY0_.js} +42 -42
- package/dist/{synthesis-DSdF0vsi.js → synthesis-dplLmFIP.js} +4 -4
- package/dist/{system-cli-BM8KbtUc.js → system-cli-CMJlwDbx.js} +7 -7
- package/dist/{system-cli-CQFH_HwX.js → system-cli-D1KbTajz.js} +3 -3
- package/dist/{systemd-9LEEqibe.js → systemd-8KKQdTO_.js} +5 -5
- package/dist/{systemd-hints-A1W3AdVo.js → systemd-hints-BdnQ93Ux.js} +6 -6
- package/dist/{systemd-linger-PqG8iGCt.js → systemd-linger-CnKJZBUr.js} +1 -1
- package/dist/{tui-D0j61PXx.js → tui-D2WEKSKp.js} +2 -2
- package/dist/{tui-DFuScHlA.js → tui-ZtRGw-US.js} +7 -7
- package/dist/{tui-cli-25xTveHh.js → tui-cli-CXZw2cb8.js} +3 -3
- package/dist/{tui-cli-C3dXNtPo.js → tui-cli-D56ntFvh.js} +19 -19
- package/dist/{unified-runner-BNt7TQKM.js → unified-runner-BFLLzEHE.js} +13 -10
- package/dist/{unified-runner-DCiPB--z.js → unified-runner-BiVD0QYP.js} +99 -99
- package/dist/{update-check-CZxZhEXr.js → update-check-BdSIMYWq.js} +5 -5
- package/dist/{update-cli-Dl_QbjXc.js → update-cli-BX7yQdFR.js} +14 -14
- package/dist/{update-cli-CWufRpkr.js → update-cli-DKtCvgSg.js} +74 -74
- package/dist/{update-CjZgU686.js → update-lQHC4OGO.js} +3 -3
- package/dist/{update-runner-Dq5UYQbo.js → update-runner-D4-wGM5B.js} +15 -15
- package/dist/{webhooks-cli-Clx8DGfA.js → webhooks-cli-9-_fKRFZ.js} +4 -4
- package/dist/{with-timeout-BE7lxhxW.js → with-timeout-DNA2hy4y.js} +1 -1
- package/dist/{workspace-dirs-D5OnUmvw.js → workspace-dirs-QmSWJptJ.js} +1 -1
- package/dist/{wsl-ZWGwnnKI.js → wsl-DO9usEVV.js} +2 -2
- package/package.json +1 -1
- package/dist/control-ui/js/debug.js +0 -55
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { $ as applyBrowserProxyPaths, A as normalizePollInput, C as listTasksInWorkdir, D as resolveOutboundSessionRoute, E as ensureOutboundSessionEntry, F as normalizeCronJobCreate, Gt as resolveAgentTimeoutMs, Ht as listDescendantRunsForRequester, I as normalizeCronJobPatch, It as formatZonedTimestamp, Lt as isAbortTrigger, Mt as prepareAgentRun, Nt as BARE_SESSION_RESET_PROMPT, O as resolveOutboundTarget, Pt as normalizeGroupActivation, Rt as stopSubagentsForRequester, Ut as listSubagentRunsForRequester, Xt as clearSessionQueues, an as waitForEmbeddedPiRunEnd, b as buildAgentTurnParams, bt as applyVerboseOverride, en as onAgentEvent, et as persistBrowserProxyFiles, f as getChannelActivity, fn as resolveUserTimezone, g as buildGlassUiProfile, m as createReplyDispatcher, mt as resolveSendPolicy, ot as scheduleGatewaySigusr1Restart, pt as normalizeSendPolicy, rn as abortEmbeddedPiRun, s as loadSymiPlugins, tn as registerAgentRunContext, x as prepareReplyTurn, xt as parseVerboseOverride, y as runUnifiedTurn, yt as applyModelOverrideToSessionEntry } from "./unified-runner-
|
|
1
|
+
import { $ as applyBrowserProxyPaths, A as normalizePollInput, C as listTasksInWorkdir, D as resolveOutboundSessionRoute, E as ensureOutboundSessionEntry, F as normalizeCronJobCreate, Gt as resolveAgentTimeoutMs, Ht as listDescendantRunsForRequester, I as normalizeCronJobPatch, It as formatZonedTimestamp, Lt as isAbortTrigger, Mt as prepareAgentRun, Nt as BARE_SESSION_RESET_PROMPT, O as resolveOutboundTarget, Pt as normalizeGroupActivation, Rt as stopSubagentsForRequester, Ut as listSubagentRunsForRequester, Xt as clearSessionQueues, an as waitForEmbeddedPiRunEnd, b as buildAgentTurnParams, bt as applyVerboseOverride, en as onAgentEvent, et as persistBrowserProxyFiles, f as getChannelActivity, fn as resolveUserTimezone, g as buildGlassUiProfile, m as createReplyDispatcher, mt as resolveSendPolicy, ot as scheduleGatewaySigusr1Restart, pt as normalizeSendPolicy, rn as abortEmbeddedPiRun, s as loadSymiPlugins, tn as registerAgentRunContext, x as prepareReplyTurn, xt as parseVerboseOverride, y as runUnifiedTurn, yt as applyModelOverrideToSessionEntry } from "./unified-runner-BiVD0QYP.js";
|
|
2
2
|
import { H as createInternalHookEvent, P as getResolvedLoggerSettings, W as triggerInternalHook, d as getActivePluginRegistry, r as DEFAULT_CHAT_CHANNEL } from "./registry-DKJLAPDB.js";
|
|
3
3
|
import { g as resolveStateDir, t as CONFIG_PATH } from "./paths-BSzKwaxE.js";
|
|
4
4
|
import { S as isPlainObject, h as resolveUserPath, n as clamp } from "./utils-BU8jVQFM.js";
|
|
5
5
|
import { f as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
6
|
-
import { Et as normalizeSecretInput, G as resolveSubagentConfiguredModelSelection, H as resolveDefaultModelForAgent, q as resolveThinkingDefault, z as resolveAllowedModelRef } from "./auth-profiles-
|
|
6
|
+
import { Et as normalizeSecretInput, G as resolveSubagentConfiguredModelSelection, H as resolveDefaultModelForAgent, q as resolveThinkingDefault, z as resolveAllowedModelRef } from "./auth-profiles-BDvJK1Bg.js";
|
|
7
7
|
import { a as classifySessionKeyShape, b as isSubagentSessionKey, c as resolveAgentIdFromSessionKey, o as normalizeAgentId, p as DEFAULT_ACCOUNT_ID, t as DEFAULT_AGENT_ID, x as parseAgentSessionKey } from "./session-key-B_ZVH1kE.js";
|
|
8
|
-
import { t as resolveSymiPackageRoot } from "./symi-root-
|
|
9
|
-
import { C as ensureAgentWorkspace, S as DEFAULT_USER_FILENAME, T as isWorkspaceOnboardingCompleted, _ as DEFAULT_MEMORY_ALT_FILENAME, b as DEFAULT_SYMIPULSE_FILENAME, c as resolveAgentWorkspaceDir, d as resolveSessionAgentId, g as DEFAULT_IDENTITY_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, l as resolveDefaultAgentId, n as listAgentIds, p as DEFAULT_AGENTS_FILENAME, t as listAgentEntries, v as DEFAULT_MEMORY_FILENAME, x as DEFAULT_TOOLS_FILENAME, y as DEFAULT_SYMICORE_FILENAME } from "./agent-scope-
|
|
10
|
-
import { N as VERSION, P as resolveRuntimeServiceVersion, T as applyLegacyMigrations, a as parseConfigJson5, c as resolveConfigSnapshotHash, d as SymiSchema, i as loadConfig, l as writeConfigFile, m as sensitive, o as readConfigFileSnapshot, s as readConfigFileSnapshotForWrite, u as validateConfigObjectWithPlugins, w as applyMergePatch } from "./config-
|
|
8
|
+
import { t as resolveSymiPackageRoot } from "./symi-root-0MUhiNlM.js";
|
|
9
|
+
import { C as ensureAgentWorkspace, S as DEFAULT_USER_FILENAME, T as isWorkspaceOnboardingCompleted, _ as DEFAULT_MEMORY_ALT_FILENAME, b as DEFAULT_SYMIPULSE_FILENAME, c as resolveAgentWorkspaceDir, d as resolveSessionAgentId, g as DEFAULT_IDENTITY_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, l as resolveDefaultAgentId, n as listAgentIds, p as DEFAULT_AGENTS_FILENAME, t as listAgentEntries, v as DEFAULT_MEMORY_FILENAME, x as DEFAULT_TOOLS_FILENAME, y as DEFAULT_SYMICORE_FILENAME } from "./agent-scope-CKTVXF_1.js";
|
|
10
|
+
import { N as VERSION, P as resolveRuntimeServiceVersion, T as applyLegacyMigrations, a as parseConfigJson5, c as resolveConfigSnapshotHash, d as SymiSchema, i as loadConfig, l as writeConfigFile, m as sensitive, o as readConfigFileSnapshot, s as readConfigFileSnapshotForWrite, u as validateConfigObjectWithPlugins, w as applyMergePatch } from "./config-e4gtNbYA.js";
|
|
11
11
|
import { c as pickPrimaryLanIPv4 } from "./ws-CahTJvD6.js";
|
|
12
|
-
import { i as loadWorkspaceSkillEntries } from "./skills-
|
|
12
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-DS1Vdylm.js";
|
|
13
13
|
import { t as movePathToTrash } from "./trash-BjVrPcAx.js";
|
|
14
|
-
import { B as resolveAgentMainSessionKey, C as capArrayByJsonBytes, D as resolveSessionTranscriptCandidates, G as snapshotSessionOrigin, H as resolveMainSessionKey, O as stripEnvelopeFromMessages, S as archiveSessionTranscripts, T as readSessionPreviewItemsFromTranscript, U as resolveMainSessionKeyFromConfig, V as resolveExplicitAgentSessionKey, d as updateSessionStore, o as loadSessionStore, t as extractDeliveryInfo, w as readSessionMessages, x as archiveFileOnDisk, y as normalizeSessionDeliveryFields } from "./sessions-
|
|
14
|
+
import { B as resolveAgentMainSessionKey, C as capArrayByJsonBytes, D as resolveSessionTranscriptCandidates, G as snapshotSessionOrigin, H as resolveMainSessionKey, O as stripEnvelopeFromMessages, S as archiveSessionTranscripts, T as readSessionPreviewItemsFromTranscript, U as resolveMainSessionKeyFromConfig, V as resolveExplicitAgentSessionKey, d as updateSessionStore, o as loadSessionStore, t as extractDeliveryInfo, w as readSessionMessages, x as archiveFileOnDisk, y as normalizeSessionDeliveryFields } from "./sessions-DJ9kN6ZB.js";
|
|
15
15
|
import { f as GATEWAY_CLIENT_CAPS, g as hasGatewayClientCap, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-C_V8IAYx.js";
|
|
16
16
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DuuHorqi.js";
|
|
17
17
|
import { c as resolveStorePath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-CJcw9nbZ.js";
|
|
18
18
|
import { i as normalizeInputProvenance } from "./input-provenance-DsLesw6T.js";
|
|
19
19
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-177f26eg.js";
|
|
20
|
-
import { h as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-
|
|
20
|
+
import { h as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-CxOAv44C.js";
|
|
21
21
|
import { i as loadSessionUsageTimeSeries, n as loadCostUsageSummary, r as loadSessionCostSummary, t as discoverAllSessions } from "./session-cost-usage-DYcv40ss.js";
|
|
22
|
-
import { C as enqueueSystemEvent, _ as loadProviderUsageSummary, a as loadCombinedSessionStoreForGateway, c as resolveGatewaySessionStoreTarget, d as formatDoctorNonInteractiveHint, g as writeRestartSentinel, i as listSessionsFromStore, l as resolveSessionModelRef, o as loadSessionEntry, r as listAgentsForGateway, s as pruneLegacyStoreKeys, t as canonicalizeSpawnedByForAgent, w as isSystemEventContextChanged } from "./session-utils-
|
|
23
|
-
import { n as createBrowserRouteDispatcher } from "./with-timeout-
|
|
24
|
-
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
25
|
-
import { t as getMemorySearchManager } from "./memory-
|
|
26
|
-
import { $ as
|
|
27
|
-
import { l as authorizeOperatorScopesForMethod, s as ADMIN_SCOPE$2, u as isNodeRoleMethod } from "./call-
|
|
28
|
-
import { c as writeJsonAtomic, o as createAsyncLock, s as readJsonFile } from "./pairing-token-
|
|
29
|
-
import { c as approveNodePairing, d as renamePairedNode, f as requestNodePairing, l as listNodePairing, m as verifyNodeToken, t as getRemoteSkillEligibility, u as rejectNodePairing } from "./skills-remote-
|
|
30
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
22
|
+
import { C as enqueueSystemEvent, _ as loadProviderUsageSummary, a as loadCombinedSessionStoreForGateway, c as resolveGatewaySessionStoreTarget, d as formatDoctorNonInteractiveHint, g as writeRestartSentinel, i as listSessionsFromStore, l as resolveSessionModelRef, o as loadSessionEntry, r as listAgentsForGateway, s as pruneLegacyStoreKeys, t as canonicalizeSpawnedByForAgent, w as isSystemEventContextChanged } from "./session-utils-0LAFVJl4.js";
|
|
23
|
+
import { n as createBrowserRouteDispatcher } from "./with-timeout-DNA2hy4y.js";
|
|
24
|
+
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-DZQBodKF.js";
|
|
25
|
+
import { t as getMemorySearchManager } from "./memory-DC-qFwtN.js";
|
|
26
|
+
import { $ as validateNodePairListParams, A as validateCronRunsParams, At as validateWebLoginStartParams, Bt as parseSessionLabel, C as validateConfigSchemaParams, Ct as validateSkillsStatusParams, D as validateCronListParams, Dt as validateTasksListParams, E as validateCronAddParams, Et as validateTalkModeParams, F as validateDevicePairRejectParams, Ft as validateWizardStatusParams, G as validateLogsTailParams, Gt as listDevicePairing, H as validateExecApprovalsNodeGetParams, Ht as approveDevicePairing, I as validateDevicePairRemoveParams, J as validateNodeEventParams, K as validateModelsListParams, Kt as rejectDevicePairing, L as validateDeviceTokenRevokeParams, Lt as ErrorCodes, M as validateCronUpdateParams, Mt as validateWizardCancelParams, N as validateDevicePairApproveParams, Nt as validateWizardNextParams, O as validateCronRemoveParams, Ot as validateUpdateRunParams, P as validateDevicePairListParams, Pt as validateWizardStartParams, Q as validateNodePairApproveParams, R as validateDeviceTokenRotateParams, Rt as errorShape, S as validateConfigPatchParams, St as validateSkillsInstallParams, Tt as validateTalkConfigParams, U as validateExecApprovalsNodeSetParams, V as validateExecApprovalsGetParams, W as validateExecApprovalsSetParams, X as validateNodeInvokeResultParams, Xt as rotateDeviceToken, Y as validateNodeInvokeParams, Yt as revokeDeviceToken, Z as validateNodeListParams, Zt as summarizeDeviceTokens, _ as validateChatHistoryParams, _t as validateSessionsResolveParams, a as validateAgentWaitParams, at as validatePushTestParams, b as validateConfigApplyParams, bt as validateSessionsUsageParams, c as validateAgentsFilesGetParams, ct as validateSessionsAdoptFileParams, d as validateAgentsListParams, dt as validateSessionsDeleteParams, et as validateNodePairRejectParams, f as validateAgentsUpdateParams, ft as validateSessionsFavoriteFileParams, g as validateChatCommandsListParams, gt as validateSessionsResetParams, h as validateChatAbortParams, ht as validateSessionsPreviewParams, i as validateAgentParams, it as validatePollParams, j as validateCronStatusParams, jt as validateWebLoginWaitParams, k as validateCronRunParams, kt as validateWakeParams, l as validateAgentsFilesListParams, lt as validateSessionsCompactParams, m as validateChannelsStatusParams, mt as validateSessionsPatchParams, n as formatValidationErrors, nt as validateNodePairVerifyParams, o as validateAgentsCreateParams, p as validateChannelsLogoutParams, pt as validateSessionsListParams, q as validateNodeDescribeParams, qt as removePairedDevice, r as validateAgentIdentityParams, rt as validateNodeRenameParams, s as validateAgentsDeleteParams, st as validateSendParams, tt as validateNodePairRequestParams, u as validateAgentsFilesSetParams, ut as validateSessionsDeleteFileParams, v as validateChatInjectParams, vt as validateSessionsRestoreParams, w as validateConfigSetParams, wt as validateSkillsUpdateParams, x as validateConfigGetParams, xt as validateSkillsBinsParams, y as validateChatSendParams, yt as validateSessionsSearchParams } from "./client-lkWaEu6S.js";
|
|
27
|
+
import { l as authorizeOperatorScopesForMethod, s as ADMIN_SCOPE$2, u as isNodeRoleMethod } from "./call-8H645eSK.js";
|
|
28
|
+
import { c as writeJsonAtomic, o as createAsyncLock, s as readJsonFile } from "./pairing-token-DorpwP8O.js";
|
|
29
|
+
import { c as approveNodePairing, d as renamePairedNode, f as requestNodePairing, l as listNodePairing, m as verifyNodeToken, t as getRemoteSkillEligibility, u as rejectNodePairing } from "./skills-remote-BDSyRdyX.js";
|
|
30
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-QmSWJptJ.js";
|
|
31
31
|
import { a as mergeExecApprovalsSocketDefaults, c as readExecApprovalsSnapshot, p as saveExecApprovals, r as ensureExecApprovals, s as normalizeExecApprovals } from "./exec-approvals-CZOc8M5w.js";
|
|
32
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
32
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-D3Iaavrm.js";
|
|
33
33
|
import { i as parseAbsoluteTimeMs } from "./stagger-BhvnarfO.js";
|
|
34
|
-
import { n as createOutboundSendDeps } from "./deps-
|
|
34
|
+
import { n as createOutboundSendDeps } from "./deps-Cwq_3i09.js";
|
|
35
35
|
import { t as buildChannelUiCatalog } from "./catalog-CSgSg5Gp.js";
|
|
36
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
36
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-F7nlolZZ.js";
|
|
37
37
|
import { t as WizardCancelledError } from "./prompts-CPtDKw-j.js";
|
|
38
38
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BBypnAYf.js";
|
|
39
39
|
import { t as buildChannelAccountSnapshot } from "./status-DvTRhxOu.js";
|
|
40
|
-
import { w as resolveAssistantAvatarUrl } from "./onboard-helpers-
|
|
41
|
-
import { c as resolveNodeCommandAllowlist, s as isNodeCommandAllowed } from "./audit-
|
|
42
|
-
import { n as getStatusSummary } from "./status-
|
|
43
|
-
import { m as normalizeUpdateChannel } from "./update-check-
|
|
44
|
-
import { a as sendApnsAlert, c as parseMessageWithAttachments, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration } from "./push-apns-
|
|
45
|
-
import { i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-
|
|
46
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
40
|
+
import { w as resolveAssistantAvatarUrl } from "./onboard-helpers-DKnX4Zrl.js";
|
|
41
|
+
import { c as resolveNodeCommandAllowlist, s as isNodeCommandAllowed } from "./audit-Bhy0yCzM.js";
|
|
42
|
+
import { n as getStatusSummary } from "./status-DQQOJNd8.js";
|
|
43
|
+
import { m as normalizeUpdateChannel } from "./update-check-BdSIMYWq.js";
|
|
44
|
+
import { a as sendApnsAlert, c as parseMessageWithAttachments, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration } from "./push-apns-CUACAVd6.js";
|
|
45
|
+
import { i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-BxlwfrtS.js";
|
|
46
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-DDPgPAe-.js";
|
|
47
47
|
import { t as resolveSystemRunCommand } from "./system-run-command-QikSIqYG.js";
|
|
48
|
-
import { t as installSkill } from "./skills-install-
|
|
49
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
48
|
+
import { t as installSkill } from "./skills-install-CD4O4yWI.js";
|
|
49
|
+
import { t as runGatewayUpdate } from "./update-runner-D4-wGM5B.js";
|
|
50
50
|
import crypto, { randomUUID } from "node:crypto";
|
|
51
51
|
import path from "node:path";
|
|
52
|
-
import * as fs$
|
|
52
|
+
import * as fs$1 from "node:fs";
|
|
53
53
|
import fs from "node:fs";
|
|
54
54
|
import * as os$1 from "node:os";
|
|
55
55
|
import os from "node:os";
|
|
56
|
-
import
|
|
56
|
+
import fsPromises from "node:fs/promises";
|
|
57
57
|
import { spawnSync } from "node:child_process";
|
|
58
58
|
import { z } from "zod";
|
|
59
59
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -400,20 +400,20 @@ function resolveCronRunLogPath(params) {
|
|
|
400
400
|
}
|
|
401
401
|
const writesByPath = /* @__PURE__ */ new Map();
|
|
402
402
|
async function pruneIfNeeded(filePath, opts) {
|
|
403
|
-
const stat = await
|
|
403
|
+
const stat = await fsPromises.stat(filePath).catch(() => null);
|
|
404
404
|
if (!stat || stat.size <= opts.maxBytes) return;
|
|
405
|
-
const lines = (await
|
|
405
|
+
const lines = (await fsPromises.readFile(filePath, "utf-8").catch(() => "")).split("\n").map((l) => l.trim()).filter(Boolean);
|
|
406
406
|
const kept = lines.slice(Math.max(0, lines.length - opts.keepLines));
|
|
407
407
|
const { randomBytes } = await import("node:crypto");
|
|
408
408
|
const tmp = `${filePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
409
|
-
await
|
|
410
|
-
await
|
|
409
|
+
await fsPromises.writeFile(tmp, `${kept.join("\n")}\n`, "utf-8");
|
|
410
|
+
await fsPromises.rename(tmp, filePath);
|
|
411
411
|
}
|
|
412
412
|
async function appendCronRunLog(filePath, entry, opts) {
|
|
413
413
|
const resolved = path.resolve(filePath);
|
|
414
414
|
const next = (writesByPath.get(resolved) ?? Promise.resolve()).catch(() => void 0).then(async () => {
|
|
415
|
-
await
|
|
416
|
-
await
|
|
415
|
+
await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
416
|
+
await fsPromises.appendFile(resolved, `${JSON.stringify(entry)}\n`, "utf-8");
|
|
417
417
|
await pruneIfNeeded(resolved, {
|
|
418
418
|
maxBytes: opts?.maxBytes ?? 2e6,
|
|
419
419
|
keepLines: opts?.keepLines ?? 2e3
|
|
@@ -425,7 +425,7 @@ async function appendCronRunLog(filePath, entry, opts) {
|
|
|
425
425
|
async function readCronRunLogEntries(filePath, opts) {
|
|
426
426
|
const limit = Math.max(1, Math.min(5e3, Math.floor(opts?.limit ?? 200)));
|
|
427
427
|
const jobId = opts?.jobId?.trim() || void 0;
|
|
428
|
-
const raw = await
|
|
428
|
+
const raw = await fsPromises.readFile(path.resolve(filePath), "utf-8").catch(() => "");
|
|
429
429
|
if (!raw.trim()) return [];
|
|
430
430
|
const parsed = [];
|
|
431
431
|
const lines = raw.split("\n");
|
|
@@ -2937,7 +2937,7 @@ function resolveAgentWorkspaceFileOrRespondError(params, respond) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
async function statFile(filePath) {
|
|
2939
2939
|
try {
|
|
2940
|
-
const stat = await
|
|
2940
|
+
const stat = await fsPromises.stat(filePath);
|
|
2941
2941
|
if (!stat.isFile()) return null;
|
|
2942
2942
|
return {
|
|
2943
2943
|
size: stat.size,
|
|
@@ -3007,7 +3007,7 @@ function resolveOptionalStringParam(value) {
|
|
|
3007
3007
|
async function moveToTrashBestEffort(pathname) {
|
|
3008
3008
|
if (!pathname) return;
|
|
3009
3009
|
try {
|
|
3010
|
-
await
|
|
3010
|
+
await fsPromises.access(pathname);
|
|
3011
3011
|
} catch {
|
|
3012
3012
|
return;
|
|
3013
3013
|
}
|
|
@@ -3054,7 +3054,7 @@ const agentsHandlers = {
|
|
|
3054
3054
|
dir: workspaceDir,
|
|
3055
3055
|
ensureBootstrapFiles: !Boolean(nextConfig.agents?.defaults?.skipBootstrap)
|
|
3056
3056
|
});
|
|
3057
|
-
await
|
|
3057
|
+
await fsPromises.mkdir(resolveSessionTranscriptsDirForAgent(agentId), { recursive: true });
|
|
3058
3058
|
await writeConfigFile(nextConfig);
|
|
3059
3059
|
const safeName = sanitizeIdentityLine(rawName);
|
|
3060
3060
|
const emoji = resolveOptionalStringParam(params.emoji);
|
|
@@ -3067,7 +3067,7 @@ const agentsHandlers = {
|
|
|
3067
3067
|
...avatar ? [`- Avatar: ${sanitizeIdentityLine(avatar)}`] : [],
|
|
3068
3068
|
""
|
|
3069
3069
|
];
|
|
3070
|
-
await
|
|
3070
|
+
await fsPromises.appendFile(identityPath, lines.join("\n"), "utf-8");
|
|
3071
3071
|
respond(true, {
|
|
3072
3072
|
ok: true,
|
|
3073
3073
|
agentId,
|
|
@@ -3102,9 +3102,9 @@ const agentsHandlers = {
|
|
|
3102
3102
|
});
|
|
3103
3103
|
if (avatar) {
|
|
3104
3104
|
const workspace = workspaceDir ?? resolveAgentWorkspaceDir(nextConfig, agentId);
|
|
3105
|
-
await
|
|
3105
|
+
await fsPromises.mkdir(workspace, { recursive: true });
|
|
3106
3106
|
const identityPath = path.join(workspace, DEFAULT_IDENTITY_FILENAME);
|
|
3107
|
-
await
|
|
3107
|
+
await fsPromises.appendFile(identityPath, `\n- Avatar: ${sanitizeIdentityLine(avatar)}\n`, "utf-8");
|
|
3108
3108
|
}
|
|
3109
3109
|
respond(true, {
|
|
3110
3110
|
ok: true,
|
|
@@ -3187,7 +3187,7 @@ const agentsHandlers = {
|
|
|
3187
3187
|
}, void 0);
|
|
3188
3188
|
return;
|
|
3189
3189
|
}
|
|
3190
|
-
const content = await
|
|
3190
|
+
const content = await fsPromises.readFile(filePath, "utf-8");
|
|
3191
3191
|
respond(true, {
|
|
3192
3192
|
agentId,
|
|
3193
3193
|
workspace: workspaceDir,
|
|
@@ -3209,10 +3209,10 @@ const agentsHandlers = {
|
|
|
3209
3209
|
const resolved = resolveAgentWorkspaceFileOrRespondError(params, respond);
|
|
3210
3210
|
if (!resolved) return;
|
|
3211
3211
|
const { agentId, workspaceDir, name } = resolved;
|
|
3212
|
-
await
|
|
3212
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
3213
3213
|
const filePath = path.join(workspaceDir, name);
|
|
3214
3214
|
const content = String(params.content ?? "");
|
|
3215
|
-
await
|
|
3215
|
+
await fsPromises.writeFile(filePath, content, "utf-8");
|
|
3216
3216
|
const meta = await statFile(filePath);
|
|
3217
3217
|
respond(true, {
|
|
3218
3218
|
ok: true,
|
|
@@ -4193,6 +4193,29 @@ const chatHandlers = {
|
|
|
4193
4193
|
verboseLevel
|
|
4194
4194
|
});
|
|
4195
4195
|
},
|
|
4196
|
+
"chat.commands.list": ({ params, respond }) => {
|
|
4197
|
+
if (!validateChatCommandsListParams(params)) {
|
|
4198
|
+
respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, `invalid chat.commands.list params: ${formatValidationErrors(validateChatCommandsListParams.errors)}`));
|
|
4199
|
+
return;
|
|
4200
|
+
}
|
|
4201
|
+
import("./commands-registry-CLePPNDW.js").then((n) => n.t).then((mod) => {
|
|
4202
|
+
import("./config-e4gtNbYA.js").then((n) => n.t).then(({ loadConfig }) => {
|
|
4203
|
+
const cfg = loadConfig();
|
|
4204
|
+
respond(true, { commands: mod.listChatCommandsForConfig(cfg).map((cmd) => ({
|
|
4205
|
+
key: cmd.key,
|
|
4206
|
+
nativeName: cmd.nativeName,
|
|
4207
|
+
description: cmd.description,
|
|
4208
|
+
textAliases: cmd.textAliases,
|
|
4209
|
+
scope: cmd.scope,
|
|
4210
|
+
category: cmd.category,
|
|
4211
|
+
acceptsArgs: cmd.acceptsArgs,
|
|
4212
|
+
args: cmd.args
|
|
4213
|
+
})) }, void 0);
|
|
4214
|
+
});
|
|
4215
|
+
}).catch((err) => {
|
|
4216
|
+
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, `failed to list commands: ${String(err)}`));
|
|
4217
|
+
});
|
|
4218
|
+
},
|
|
4196
4219
|
"chat.abort": ({ params, respond, context }) => {
|
|
4197
4220
|
if (!validateChatAbortParams(params)) {
|
|
4198
4221
|
respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, `invalid chat.abort params: ${formatValidationErrors(validateChatAbortParams.errors)}`));
|
|
@@ -6436,7 +6459,7 @@ const docsHandlers = { "docs.get": async ({ params, respond }) => {
|
|
|
6436
6459
|
const fullPath = path.join(packageRoot, relPath);
|
|
6437
6460
|
let markdown;
|
|
6438
6461
|
try {
|
|
6439
|
-
markdown = await
|
|
6462
|
+
markdown = await fsPromises.readFile(fullPath, "utf-8");
|
|
6440
6463
|
} catch (err) {
|
|
6441
6464
|
if (err?.code === "ENOENT") {
|
|
6442
6465
|
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, `docs file not bundled in this Symi install: ${relPath}`));
|
|
@@ -6587,14 +6610,14 @@ function isRollingLogFile(file) {
|
|
|
6587
6610
|
return ROLLING_LOG_RE.test(path.basename(file));
|
|
6588
6611
|
}
|
|
6589
6612
|
async function resolveLogFile(file) {
|
|
6590
|
-
if (await
|
|
6613
|
+
if (await fsPromises.stat(file).catch(() => null)) return file;
|
|
6591
6614
|
if (!isRollingLogFile(file)) return file;
|
|
6592
6615
|
const dir = path.dirname(file);
|
|
6593
|
-
const entries = await
|
|
6616
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true }).catch(() => null);
|
|
6594
6617
|
if (!entries) return file;
|
|
6595
6618
|
return (await Promise.all(entries.filter((entry) => entry.isFile() && ROLLING_LOG_RE.test(entry.name)).map(async (entry) => {
|
|
6596
6619
|
const fullPath = path.join(dir, entry.name);
|
|
6597
|
-
const fileStat = await
|
|
6620
|
+
const fileStat = await fsPromises.stat(fullPath).catch(() => null);
|
|
6598
6621
|
return fileStat ? {
|
|
6599
6622
|
path: fullPath,
|
|
6600
6623
|
mtimeMs: fileStat.mtimeMs
|
|
@@ -6602,7 +6625,7 @@ async function resolveLogFile(file) {
|
|
|
6602
6625
|
}))).filter((entry) => Boolean(entry)).toSorted((a, b) => b.mtimeMs - a.mtimeMs)[0]?.path ?? file;
|
|
6603
6626
|
}
|
|
6604
6627
|
async function readLogSlice(params) {
|
|
6605
|
-
const stat = await
|
|
6628
|
+
const stat = await fsPromises.stat(params.file).catch(() => null);
|
|
6606
6629
|
if (!stat) return {
|
|
6607
6630
|
cursor: 0,
|
|
6608
6631
|
size: 0,
|
|
@@ -6640,7 +6663,7 @@ async function readLogSlice(params) {
|
|
|
6640
6663
|
truncated,
|
|
6641
6664
|
reset
|
|
6642
6665
|
};
|
|
6643
|
-
const handle = await
|
|
6666
|
+
const handle = await fsPromises.open(params.file, "r");
|
|
6644
6667
|
try {
|
|
6645
6668
|
let prefix = "";
|
|
6646
6669
|
if (start > 0) {
|
|
@@ -7441,7 +7464,7 @@ const nodeHandlers = {
|
|
|
7441
7464
|
const p = params;
|
|
7442
7465
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
7443
7466
|
await respondUnavailableOnThrow(respond, async () => {
|
|
7444
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
7467
|
+
const { handleNodeEvent } = await import("./server-node-events-pgNK7gTw.js");
|
|
7445
7468
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
7446
7469
|
await handleNodeEvent({
|
|
7447
7470
|
deps: context.deps,
|
|
@@ -7960,7 +7983,7 @@ function broadcastPresenceSnapshot(params) {
|
|
|
7960
7983
|
let _prevCpu = null;
|
|
7961
7984
|
function getCpuPercent() {
|
|
7962
7985
|
try {
|
|
7963
|
-
const parts = fs$
|
|
7986
|
+
const parts = fs$1.readFileSync("/proc/stat", "utf8").split("\n")[0].trim().split(/\s+/).slice(1).map(Number);
|
|
7964
7987
|
const [, , , idle, iowait] = parts;
|
|
7965
7988
|
const total = parts.reduce((a, b) => a + b, 0);
|
|
7966
7989
|
const active = total - idle - (iowait || 0);
|
|
@@ -7984,7 +8007,7 @@ function getCpuPercent() {
|
|
|
7984
8007
|
}
|
|
7985
8008
|
function getMemInfo() {
|
|
7986
8009
|
try {
|
|
7987
|
-
const text = fs$
|
|
8010
|
+
const text = fs$1.readFileSync("/proc/meminfo", "utf8");
|
|
7988
8011
|
const get = (key) => parseInt(text.match(new RegExp(`${key}:\\s+(\\d+)`))?.[1] ?? "0", 10) * 1024;
|
|
7989
8012
|
const total = get("MemTotal");
|
|
7990
8013
|
const used = total - get("MemAvailable");
|
|
@@ -8003,7 +8026,7 @@ function getMemInfo() {
|
|
|
8003
8026
|
}
|
|
8004
8027
|
function getDiskInfo() {
|
|
8005
8028
|
try {
|
|
8006
|
-
const stats = fs$
|
|
8029
|
+
const stats = fs$1.statfsSync("/");
|
|
8007
8030
|
const total = stats.blocks * stats.bsize;
|
|
8008
8031
|
const used = total - stats.bfree * stats.bsize;
|
|
8009
8032
|
return {
|
|
@@ -11,11 +11,11 @@ import "./frontmatter-B4levtVg.js";
|
|
|
11
11
|
import "./skills-BP6p7GnN.js";
|
|
12
12
|
import "./manifest-registry-DJcKcUQ9.js";
|
|
13
13
|
import { i as loadConfig } from "./config-igdtSRrZ.js";
|
|
14
|
-
import "./client-
|
|
15
|
-
import "./call-
|
|
14
|
+
import "./client-CFUQAIIE.js";
|
|
15
|
+
import "./call-Dwi3ARhD.js";
|
|
16
16
|
import "./message-channel-CNPAq1Tl.js";
|
|
17
17
|
import "./pairing-token-Bnr7QjVF.js";
|
|
18
|
-
import { H as resolveOutboundTarget } from "./subagent-registry-
|
|
18
|
+
import { H as resolveOutboundTarget } from "./subagent-registry-B6hpdjMe.js";
|
|
19
19
|
import { d as updateSessionStore } from "./sessions-BNEDanZO.js";
|
|
20
20
|
import { r as normalizeChannelId } from "./plugins-Bq-Msc8Z.js";
|
|
21
21
|
import "./send-EluKytgO.js";
|
|
@@ -43,8 +43,8 @@ import "./paths-CNexk5_o.js";
|
|
|
43
43
|
import "./thinking-BDh5LPh-.js";
|
|
44
44
|
import "./models-config-yKxNCn4V.js";
|
|
45
45
|
import "./reply-prefix-B7pYEiW_.js";
|
|
46
|
-
import "./memory-
|
|
47
|
-
import "./manager-
|
|
46
|
+
import "./memory-BaDWe-xp.js";
|
|
47
|
+
import "./manager-Abf6Ojpw.js";
|
|
48
48
|
import "./sqlite-l3CZYU6t.js";
|
|
49
49
|
import "./chunk-BySyfaEr.js";
|
|
50
50
|
import "./markdown-tables-CCOfinlW.js";
|
|
@@ -74,13 +74,13 @@ import "./links-Db3Rw0Tg.js";
|
|
|
74
74
|
import "./cli-utils-BqMwAlgf.js";
|
|
75
75
|
import "./help-format-DbbIlOje.js";
|
|
76
76
|
import "./progress-C4ck6JXh.js";
|
|
77
|
-
import "./memory-cli-
|
|
77
|
+
import "./memory-cli-Ceun-Zo3.js";
|
|
78
78
|
import "./logging-D0L9TWhE.js";
|
|
79
79
|
import "./replies-DIHkSwoW.js";
|
|
80
80
|
import "./pi-tools.policy-BaRznBvu.js";
|
|
81
81
|
import { t as createOutboundSendDeps } from "./outbound-send-deps-Dmc3B-LK.js";
|
|
82
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
83
|
-
import { t as agentCommand } from "./agent-
|
|
82
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-DB-oyDXs.js";
|
|
83
|
+
import { t as agentCommand } from "./agent-C4QXV3DM.js";
|
|
84
84
|
import { randomUUID } from "node:crypto";
|
|
85
85
|
|
|
86
86
|
//#region src/gateway/server-node-events.ts
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { O as resolveOutboundTarget } from "./unified-runner-
|
|
1
|
+
import { O as resolveOutboundTarget } from "./unified-runner-BiVD0QYP.js";
|
|
2
2
|
import "./registry-DKJLAPDB.js";
|
|
3
3
|
import "./paths-BSzKwaxE.js";
|
|
4
4
|
import "./utils-BU8jVQFM.js";
|
|
5
5
|
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
6
|
-
import "./auth-profiles-
|
|
6
|
+
import "./auth-profiles-BDvJK1Bg.js";
|
|
7
7
|
import { s as normalizeMainKey } from "./session-key-B_ZVH1kE.js";
|
|
8
8
|
import "./exec-DKyLtSjm.js";
|
|
9
|
-
import { d as resolveSessionAgentId } from "./agent-scope-
|
|
9
|
+
import { d as resolveSessionAgentId } from "./agent-scope-CKTVXF_1.js";
|
|
10
10
|
import "./github-copilot-token-BTNK6Tcd.js";
|
|
11
11
|
import "./boolean-Wzu0-e0P.js";
|
|
12
12
|
import "./env-B97Ms861.js";
|
|
13
|
-
import "./pi-embedded-helpers-
|
|
14
|
-
import { i as loadConfig } from "./config-
|
|
13
|
+
import "./pi-embedded-helpers-DUx9ViYy.js";
|
|
14
|
+
import { i as loadConfig } from "./config-e4gtNbYA.js";
|
|
15
15
|
import "./manifest-registry-D_LsBSyt.js";
|
|
16
|
-
import "./sandbox-
|
|
17
|
-
import "./chrome-
|
|
16
|
+
import "./sandbox-BkYjPUBB.js";
|
|
17
|
+
import "./chrome-CXZZLI1N.js";
|
|
18
18
|
import "./tailscale-D7dC-5EX.js";
|
|
19
19
|
import "./auth-BbwD4lRX.js";
|
|
20
|
-
import "./server-context-
|
|
20
|
+
import "./server-context-B7dLOKCi.js";
|
|
21
21
|
import "./frontmatter-CHu3sfCM.js";
|
|
22
|
-
import "./skills-
|
|
23
|
-
import "./routes-
|
|
22
|
+
import "./skills-DS1Vdylm.js";
|
|
23
|
+
import "./routes-DgT1raBC.js";
|
|
24
24
|
import "./redact-CSc_2Nka.js";
|
|
25
25
|
import "./errors-Z-WkF18Q.js";
|
|
26
|
-
import "./fs-safe-
|
|
27
|
-
import "./paths-
|
|
26
|
+
import "./fs-safe-DjAKGGJ8.js";
|
|
27
|
+
import "./paths-DaQrPPet.js";
|
|
28
28
|
import "./ssrf-CC9kEPCT.js";
|
|
29
|
-
import "./image-ops-
|
|
30
|
-
import "./ports-
|
|
29
|
+
import "./image-ops-c7_of0HT.js";
|
|
30
|
+
import "./ports-EAVAOFyK.js";
|
|
31
31
|
import "./trash-BjVrPcAx.js";
|
|
32
|
-
import { d as updateSessionStore } from "./sessions-
|
|
32
|
+
import { d as updateSessionStore } from "./sessions-DJ9kN6ZB.js";
|
|
33
33
|
import "./dock-CnGWTXL4.js";
|
|
34
34
|
import "./message-channel-C_V8IAYx.js";
|
|
35
35
|
import { r as normalizeChannelId } from "./plugins-DuuHorqi.js";
|
|
36
|
-
import "./send-
|
|
36
|
+
import "./send-9PcWD4fG.js";
|
|
37
37
|
import "./paths-CJcw9nbZ.js";
|
|
38
38
|
import "./thinking-177f26eg.js";
|
|
39
39
|
import "./tokens-BKbemuIk.js";
|
|
40
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
40
|
+
import { t as deliverOutboundPayloads } from "./deliver-CxOAv44C.js";
|
|
41
41
|
import "./diagnostic-CwF3MnBL.js";
|
|
42
42
|
import "./diagnostic-session-state-I4x9gPY4.js";
|
|
43
|
-
import "./models-config-
|
|
44
|
-
import "./pi-auth-json-
|
|
43
|
+
import "./models-config-B-YxzPLd.js";
|
|
44
|
+
import "./pi-auth-json-CVwNh4rb.js";
|
|
45
45
|
import "./session-cost-usage-DYcv40ss.js";
|
|
46
|
-
import { C as enqueueSystemEvent, c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-
|
|
47
|
-
import "./with-timeout-
|
|
48
|
-
import "./reply-prefix-
|
|
49
|
-
import "./memory-
|
|
50
|
-
import "./manager-
|
|
51
|
-
import "./sqlite-
|
|
46
|
+
import { C as enqueueSystemEvent, c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-0LAFVJl4.js";
|
|
47
|
+
import "./with-timeout-DNA2hy4y.js";
|
|
48
|
+
import "./reply-prefix-DZQBodKF.js";
|
|
49
|
+
import "./memory-DC-qFwtN.js";
|
|
50
|
+
import "./manager-ByEbqe6-.js";
|
|
51
|
+
import "./sqlite-BUXBg2yu.js";
|
|
52
52
|
import "./chunk-DQGU0F8t.js";
|
|
53
53
|
import "./markdown-tables-GTLvbzuR.js";
|
|
54
54
|
import "./fetch-guard-DG6T0ZdL.js";
|
|
55
|
-
import "./local-roots-
|
|
55
|
+
import "./local-roots-CUKhHNCV.js";
|
|
56
56
|
import "./commands-B3UrgxIz.js";
|
|
57
|
-
import "./commands-registry-
|
|
58
|
-
import "./client-
|
|
59
|
-
import "./call-
|
|
60
|
-
import "./pairing-token-
|
|
57
|
+
import "./commands-registry-CLePPNDW.js";
|
|
58
|
+
import "./client-lkWaEu6S.js";
|
|
59
|
+
import "./call-8H645eSK.js";
|
|
60
|
+
import "./pairing-token-DorpwP8O.js";
|
|
61
61
|
import "./tool-display-Dr6VaTg5.js";
|
|
62
|
-
import "./skills-remote-
|
|
63
|
-
import "./workspace-dirs-
|
|
62
|
+
import "./skills-remote-BDSyRdyX.js";
|
|
63
|
+
import "./workspace-dirs-QmSWJptJ.js";
|
|
64
64
|
import "./pi-model-discovery-DdkUSfiI.js";
|
|
65
|
-
import "./model-catalog-
|
|
66
|
-
import "./skill-commands-
|
|
67
|
-
import "./pairing-store-
|
|
65
|
+
import "./model-catalog-Bfu_yBpI.js";
|
|
66
|
+
import "./skill-commands-RbglvrSW.js";
|
|
67
|
+
import "./pairing-store-S9CXOhSG.js";
|
|
68
68
|
import "./exec-approvals-CZOc8M5w.js";
|
|
69
|
-
import "./nodes-screen-
|
|
70
|
-
import "./control-service-
|
|
69
|
+
import "./nodes-screen-CT94yu_w.js";
|
|
70
|
+
import "./control-service-D3Iaavrm.js";
|
|
71
71
|
import "./stagger-BhvnarfO.js";
|
|
72
72
|
import "./channel-selection-BvIcXQLj.js";
|
|
73
73
|
import "./delivery-queue-DDs84baU.js";
|
|
74
74
|
import "./bindings-9LSA3Jr1.js";
|
|
75
|
-
import "./resolve-route-
|
|
75
|
+
import "./resolve-route-BbUl3Hi7.js";
|
|
76
76
|
import "./links-CSaUKNKm.js";
|
|
77
77
|
import "./cli-utils-CX1oQ81G.js";
|
|
78
78
|
import "./help-format-BI_G2p1e.js";
|
|
79
79
|
import "./progress-CyPyGCDn.js";
|
|
80
|
-
import "./memory-cli-
|
|
80
|
+
import "./memory-cli-DDXHC4Oc.js";
|
|
81
81
|
import "./logging-B5YNzZB9.js";
|
|
82
|
-
import "./replies-
|
|
83
|
-
import "./pi-tools.policy-
|
|
84
|
-
import "./model-
|
|
85
|
-
import "./deps-
|
|
86
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
87
|
-
import { t as agentCommand } from "./agent-
|
|
82
|
+
import "./replies-BLmn6tJz.js";
|
|
83
|
+
import "./pi-tools.policy-B0lPjw5N.js";
|
|
84
|
+
import "./model-CbRy_3xW.js";
|
|
85
|
+
import "./deps-Cwq_3i09.js";
|
|
86
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-CUACAVd6.js";
|
|
87
|
+
import { t as agentCommand } from "./agent-BxlwfrtS.js";
|
|
88
88
|
import { t as createOutboundSendDeps } from "./outbound-send-deps-BpziI1pC.js";
|
|
89
89
|
import { randomUUID } from "node:crypto";
|
|
90
90
|
|
|
@@ -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`);
|