@symerian/symi 3.4.25 → 3.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-N_J2cDO6.js → agent-CiqPWDUd.js} +18 -18
- package/dist/{agent-CQlyTNu-.js → agent-DOOj3Gzb.js} +1 -1
- package/dist/{agent-scope-DOrZjOnW.js → agent-scope-Bnsyyeci.js} +18 -18
- package/dist/{agents-1xmRO246.js → agents-BBQfFoen.js} +2 -2
- package/dist/{agents.config-BJ9RIQlb.js → agents.config-Dm3oLpYK.js} +1 -1
- package/dist/{audit-DCwHws4M.js → audit-BSX7fMfc.js} +20 -20
- package/dist/{auth-choice-Ryx7oj6G.js → auth-choice-BYbTjWcs.js} +1 -1
- package/dist/{auth-choice-DwXdS4c2.js → auth-choice-rhBmet5i.js} +11 -11
- package/dist/{auth-profiles-Ce7R_25e.js → auth-profiles-D5nYBj_Z.js} +2 -2
- package/dist/{auth-token-DgRRSbEX.js → auth-token-CAV1oLQG.js} +3 -3
- package/dist/{banner-CxMQaUgh.js → banner-C1qG5Rm9.js} +1 -1
- package/dist/{browser-cli-C3hfJNZy.js → browser-cli-De8jg4-F.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +4 -4
- package/dist/{call-BouPakqe.js → call-CW8U1BPq.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-n9C_ovb1.js → channel-options-BsXUgCMq.js} +1 -1
- package/dist/{channel-options-WR29vfWK.js → channel-options-CJD7jwYg.js} +1 -1
- package/dist/{channels-cli-DbFGI3vF.js → channels-cli-Bao4VNbH.js} +57 -57
- package/dist/{channels-cli-Cs-Uq67O.js → channels-cli-Dxn5n9e4.js} +7 -7
- package/dist/{chrome-B7-rO4i9.js → chrome-BKUACyeO.js} +7 -7
- package/dist/{chrome-C_I81hbq.js → chrome-DPjznJQ-.js} +7 -7
- package/dist/{chrome-rzK8edU7.js → chrome-pFBxO63W.js} +2 -2
- package/dist/{cli-D55pCJ8Q.js → cli-CrhLSz3t.js} +4 -4
- package/dist/{cli-7ceDvtPc.js → cli-WP38F9C5.js} +45 -45
- package/dist/{client-BzUAFrla.js → client-T5P9umyG.js} +1 -1
- package/dist/{command-registry-DAy62yhH.js → command-registry-DoXcG7FZ.js} +10 -10
- package/dist/{commands-registry-VfAQOVZO.js → commands-registry-BjcGLk4v.js} +1 -1
- package/dist/{completion-cli-Bc1jojml.js → completion-cli-C0SXi7ya.js} +12 -12
- package/dist/{completion-cli-Bh-Y2NVp.js → completion-cli-DaWi3_ux.js} +2 -2
- package/dist/{config-D7SS4vdk.js → config-D-PYSlE8.js} +2 -2
- package/dist/{config-cli-DupKETmw.js → config-cli-DS67KtKf.js} +4 -4
- package/dist/{config-cli-BxRcn2oD.js → config-cli-DXKm0pS5.js} +1 -1
- package/dist/{config-guard-BGAQzX2K.js → config-guard-xLTTFANi.js} +6 -6
- package/dist/{config-validation-COcIIMNe.js → config-validation-C4wGq3rz.js} +1 -1
- package/dist/{configure-0XYm59w7.js → configure-B99YJJb0.js} +14 -14
- package/dist/{configure-BilM_Fgn.js → configure-CzO4_jJJ.js} +2 -2
- package/dist/{consolidate-DI20-Wtn.js → consolidate-BB4BOQIN.js} +6 -6
- package/dist/{control-service-Ry7Le68N.js → control-service-y53w3Jzy.js} +4 -4
- package/dist/{control-ui-assets-DuDhl0co.js → control-ui-assets-Dryy7mCE.js} +1 -1
- package/dist/{cron-cli-DHFgjr_X.js → cron-cli-BMblAFRK.js} +7 -7
- package/dist/{daemon-cli-fC2R9YZd.js → daemon-cli-BJGNf5qV.js} +11 -11
- package/dist/{daemon-runtime-tZgIbDPz.js → daemon-runtime-u4p9jsEF.js} +10 -10
- package/dist/{deliver-DB4v0Tyl.js → deliver-C79-Umbk.js} +2 -2
- package/dist/{deliver-oWGJwzFf.js → deliver-Cjyb6h4g.js} +4 -4
- package/dist/{deliver-DyO3QD8O.js → deliver-DTRkeYm3.js} +4 -4
- package/dist/{deps-BlmO-MfQ.js → deps-UA1UBhl7.js} +1 -1
- package/dist/{devices-cli-DtkKN4l0.js → devices-cli-wsTs-nti.js} +6 -6
- package/dist/{diagnostics-tVJR9V0_.js → diagnostics-oW0LBW-t.js} +5 -5
- package/dist/{directory-cli-Bfy_ejW2.js → directory-cli-D8As6t8Z.js} +3 -3
- package/dist/{dm-policy-shared-CBlUyDSX.js → dm-policy-shared-DRJrFKqJ.js} +1 -1
- package/dist/{dns-cli-DzKaV6NZ.js → dns-cli-BKOTBn3n.js} +3 -3
- package/dist/{docs-cli-a90_8wuN.js → docs-cli-D5j7Nmz2.js} +1 -1
- package/dist/{doctor-completion-BZJWX3Dr.js → doctor-completion-B1YCzbvi.js} +1 -1
- package/dist/{doctor-completion-B6OPl_GZ.js → doctor-completion-mev5PRjN.js} +2 -2
- package/dist/{doctor-config-flow-30ZEvATb.js → doctor-config-flow-Uv41seME.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-C3gZAwV8.js → exec-approvals-cli-B4ry9s5r.js} +13 -13
- package/dist/extensionAPI.js +4 -4
- package/dist/{file-lock-BVUYnlQv.js → file-lock-2AecMjCa.js} +8 -8
- package/dist/{fs-safe-BdejYjW8.js → fs-safe-B0Is-oLk.js} +6 -6
- package/dist/{gateway-cli-CyhLb-zS.js → gateway-cli-B3JVj_dv.js} +98 -98
- package/dist/{gateway-cli-DQhYa6AL.js → gateway-cli-Chnp6icp.js} +10 -10
- package/dist/{gateway-rpc-DNq7EMhm.js → gateway-rpc-CLzM6ugo.js} +1 -1
- package/dist/{glass-ui-ws-SJVljtUx.js → glass-ui-ws--GjxFRyX.js} +67 -67
- package/dist/{glass-ui-ws-CLDbMDPk.js → glass-ui-ws-5o8dvEZO.js} +8 -8
- package/dist/{health-DZ0aipDZ.js → health-D2th0Ip6.js} +4 -4
- package/dist/{hooks-cli-BMRj13QU.js → hooks-cli-B4Nvp9AV.js} +59 -59
- package/dist/{hooks-cli-BVtdP5x7.js → hooks-cli-B_sZth4r.js} +5 -5
- package/dist/{image-ops-L70xVnpG.js → image-ops-BzCBIakN.js} +10 -10
- package/dist/index.js +52 -52
- package/dist/{inspect-CXsOujVt.js → inspect-U3g9owQ8.js} +4 -4
- package/dist/{install-safe-path-D5gi-nfu.js → install-safe-path-BwMMOh9z.js} +11 -11
- package/dist/{installs-DF_LhGX6.js → installs-vdi1BESF.js} +10 -10
- package/dist/{internal-DVCddhhN.js → internal-csqU78gW.js} +9 -9
- package/dist/{lifecycle-core-Bvdl2ShM.js → lifecycle-core-BfmNlC-k.js} +5 -5
- package/dist/llm-slug-generator.js +4 -4
- package/dist/{local-roots-CgDCgCuM.js → local-roots-2Jb79HZ8.js} +1 -1
- package/dist/{logs-cli-mdSEYBKS.js → logs-cli-COZzdFu6.js} +7 -7
- package/dist/{manager-BhIaahpm.js → manager-BfbQb9qM.js} +1 -1
- package/dist/{manager-DhHNnMyK.js → manager-Bryhc0Ip.js} +1 -1
- package/dist/{manager-BIt2_nlu.js → manager-C5FGNRjL.js} +1 -1
- package/dist/{manager-BLg6zbeA.js → manager-DyYRwHZt.js} +15 -15
- package/dist/{memory-BENbCb4f.js → memory-Cypj1lBQ.js} +2 -2
- package/dist/{memory-B4DsKRSc.js → memory-DgDnTEcB.js} +5 -5
- package/dist/{memory-cli-DotHyA76.js → memory-cli-CfJkD7mO.js} +12 -12
- package/dist/{memory-cli-BIjwqjBx.js → memory-cli-DB7UIev4.js} +2 -2
- package/dist/{model-DsMHOvMn.js → model-DbILYCfo.js} +1 -1
- package/dist/{model-auth-1EAQvYRv.js → model-auth-_C07_3Yr.js} +2 -2
- package/dist/{model-catalog-DQTmHZK7.js → model-catalog-CeqDEWGz.js} +3 -3
- package/dist/{model-picker-D4TY_tPx.js → model-picker-C_f6MALt.js} +5 -5
- package/dist/{model-selection-7wdmO-Iw.js → model-selection-CCTzD29o.js} +1 -1
- package/dist/{models-CmToZKBp.js → models-Bpqeds64.js} +2 -2
- package/dist/{models-cli-CZgkOUZB.js → models-cli-BUWfj5iJ.js} +55 -55
- package/dist/{models-cli-Di7iKhD4.js → models-cli-Bc47WFhD.js} +6 -6
- package/dist/{models-config-CRnTzdFs.js → models-config-Dp5-tBqs.js} +8 -8
- package/dist/{node-cli-BXv9SEDG.js → node-cli-BdjmGI32.js} +27 -27
- package/dist/{node-service-CrDVFWQl.js → node-service-DphkTjBV.js} +1 -1
- package/dist/{nodes-cli-Cim3ANNU.js → nodes-cli-BChJzcKY.js} +10 -10
- package/dist/{nodes-screen-De9ma6e1.js → nodes-screen-Cp5QP3ET.js} +4 -4
- package/dist/{npm-registry-spec-YMWTMnm_.js → npm-registry-spec-CqVgiBCf.js} +9 -9
- package/dist/{onboard-BXI02b3e.js → onboard-BbfERyKU.js} +1 -1
- package/dist/{onboard-CuLvp4Ds.js → onboard-C0nMMiiS.js} +15 -15
- package/dist/{onboard-channels-A6_QP7MR.js → onboard-channels-CMp9YXHC.js} +1 -1
- package/dist/{onboard-channels-E5NIYGJz.js → onboard-channels-CmsfVut5.js} +4 -4
- package/dist/{onboard-custom-BrtjWDlX.js → onboard-custom-BfHczxx0.js} +3 -3
- package/dist/{onboard-helpers---sZ9pdZ.js → onboard-helpers-OB_xKQze.js} +8 -8
- package/dist/{onboard-hooks-CtIRdncr.js → onboard-hooks-BA22KYCG.js} +1 -1
- package/dist/{onboard-remote-BUB3VPBP.js → onboard-remote-Dv2Uz8Ru.js} +1 -1
- package/dist/{onboard-skills-Cs3BZ4VJ.js → onboard-skills-BzxofI4T.js} +3 -3
- package/dist/{onboarding-BeYl1Egj.js → onboarding-DoYMfCjS.js} +3 -3
- package/dist/{onboarding-BWMBA6cP.js → onboarding-vgZFhH5N.js} +12 -12
- package/dist/{onboarding.finalize-CH8dBgA2.js → onboarding.finalize-BYHDzz2i.js} +31 -31
- package/dist/{onboarding.finalize-Bk-XW8b3.js → onboarding.finalize-Dj0xG8pk.js} +4 -4
- package/dist/{onboarding.gateway-config-arRNxrI9.js → onboarding.gateway-config-CDRLfIZM.js} +8 -8
- package/dist/{openai-model-default-XudD4Xik.js → openai-model-default-Dl21Ivjc.js} +2 -2
- package/dist/{pairing-cli-NDavTm1_.js → pairing-cli-C2_Zobhz.js} +5 -5
- package/dist/{pairing-store-BNhJOnWn.js → pairing-store-Be-ZQK87.js} +1 -1
- package/dist/{pairing-token-Dcy37-4s.js → pairing-token-B703A1U3.js} +7 -7
- package/dist/{paths-DObzwe08.js → paths-BWqg8NZT.js} +1 -1
- package/dist/{pi-auth-json-Db8XJVGL.js → pi-auth-json-D-vdh-nY.js} +6 -6
- package/dist/{pi-embedded-0I7WdtRz.js → pi-embedded-C7mJzGIf.js} +59 -13
- package/dist/{pi-embedded-helpers-B5cWV7_y.js → pi-embedded-helpers-y3vJmW6T.js} +6 -6
- package/dist/{pi-tools.policy-BdGVEMZn.js → pi-tools.policy-ji-L-Mpv.js} +3 -3
- package/dist/{plugin-auto-enable-B_lNp6yM.js → plugin-auto-enable-Ctbn2w4Q.js} +1 -1
- package/dist/{plugin-registry-DovNSdK0.js → plugin-registry-D2ZbwBU_.js} +3 -3
- package/dist/{plugin-registry-CAdIrLmG.js → plugin-registry-pKaJ4ltN.js} +1 -1
- package/dist/plugin-sdk/agents/pi-tools.types.d.ts +1 -2
- package/dist/plugin-sdk/agents/tools/availability-filter.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/common.d.ts +30 -0
- package/dist/{plugins-cli-ZG4PxNTC.js → plugins-cli-CoHiV4BX.js} +54 -54
- package/dist/{plugins-cli-JzKO-vmR.js → plugins-cli-uo8lcB7v.js} +5 -5
- package/dist/{ports-gxLM5ahL.js → ports-CB_Iu83U.js} +2 -2
- package/dist/{ports-C3ZSkRGq.js → ports-ukrEAkOP.js} +1 -1
- package/dist/{program-context-ByiEP1Lk.js → program-context-B1ZbQmLL.js} +38 -38
- package/dist/{program-BbfU4idg.js → program-rzYjZKRz.js} +10 -10
- package/dist/{prompt-select-styled-DvrG_zWV.js → prompt-select-styled-CX0v66wx.js} +38 -38
- package/dist/{prompt-select-styled-CWH2Mcrb.js → prompt-select-styled-F6P-rvFI.js} +4 -4
- package/dist/{provider-auth-helpers-CMQexdSl.js → provider-auth-helpers-Ck98bkHV.js} +1 -1
- package/dist/{provider-auth-helpers-2x7YxT5F.js → provider-auth-helpers-_jn9PngO.js} +6 -6
- package/dist/{push-apns-CtWwPxRj.js → push-apns-BtMtpzEm.js} +1 -1
- package/dist/{push-apns-eGdGU3r7.js → push-apns-CmeoBcIQ.js} +4 -4
- package/dist/{pw-ai-BOOB8qoi.js → pw-ai-BFS9ezWe.js} +1 -1
- package/dist/{pw-ai-tgngV3iZ.js → pw-ai-CQJsGI1b.js} +7 -7
- package/dist/{pw-ai-Cx-Ko_FL.js → pw-ai-D2pEVS5n.js} +1 -1
- package/dist/{qmd-manager-qV_04VKG.js → qmd-manager-DawTY2mB.js} +19 -19
- package/dist/{qr-cli-Vo1XL6B2.js → qr-cli-DKowtQcM.js} +3 -3
- package/dist/{register.agent-Dwkya1rv.js → register.agent-0hWBZXD7.js} +67 -67
- package/dist/{register.agent-DZE9NBNx.js → register.agent-_UqSBmt5.js} +9 -9
- package/dist/{register.configure-DCpbCHR0.js → register.configure-CgQ6sqtQ.js} +70 -70
- package/dist/{register.configure-CD8WkXo8.js → register.configure-KrTtvKSp.js} +8 -8
- package/dist/{register.maintenance-CxVeo_7j.js → register.maintenance-DDSfzFoo.js} +9 -9
- package/dist/{register.maintenance-Bqjj77CZ.js → register.maintenance-DjZeknO6.js} +67 -67
- package/dist/{register.message-tcJN7-E3.js → register.message-DSwwDcGi.js} +5 -5
- package/dist/{register.message-uhAmNxoO.js → register.message-DTZJ5OiL.js} +47 -47
- package/dist/{register.onboard-F6d_Wrv1.js → register.onboard-B8k5phG7.js} +25 -25
- package/dist/{register.onboard-Rm5t0yxX.js → register.onboard-BToIZTIS.js} +2 -2
- package/dist/{register.setup-CcHxpsUT.js → register.setup-1fexz2oW.js} +28 -28
- package/dist/{register.setup-C2datfZK.js → register.setup-BdUewOo1.js} +2 -2
- package/dist/{register.status-health-sessions-DIUDRMqm.js → register.status-health-sessions-0RyA2cXf.js} +41 -41
- package/dist/{register.status-health-sessions-DFVjS9Hy.js → register.status-health-sessions-eBaeXIvo.js} +3 -3
- package/dist/{register.subclis-D9uGnVGm.js → register.subclis-tX3BslaT.js} +9 -9
- package/dist/{replies-DzsYQ8Md.js → replies-D3cffD5N.js} +1 -1
- package/dist/{reply-prefix-BFNeXT65.js → reply-prefix-CtZtkTJK.js} +1 -1
- package/dist/{resolve-route-Zww0Y-HJ.js → resolve-route-B0i_o4Fo.js} +1 -1
- package/dist/{routes-C-rIjd8Z.js → routes-zpAUwtCG.js} +10 -10
- package/dist/{rpc-BkFkeuJ6.js → rpc-DhsDKVo-.js} +1 -1
- package/dist/{run-main-HkbyvIDy.js → run-main-DIl_Kl0B.js} +17 -17
- package/dist/{sandbox-Dx8IMw-E.js → sandbox-DQCaejcD.js} +18 -18
- package/dist/{sandbox-cli-BFkLKdlk.js → sandbox-cli-CbvyZs1z.js} +13 -13
- package/dist/{security-cli-BEpQ_rO1.js → security-cli-CbJxNYZx.js} +29 -29
- package/dist/{send-Cxu1tl56.js → send-QscYkkNh.js} +7 -7
- package/dist/{server-context--mmXXEkE.js → server-context-CXVq7gZ7.js} +5 -5
- package/dist/{server-methods-DJ8eiTu1.js → server-methods-CpFBGxWI.js} +6 -6
- package/dist/{server-methods-RtjWUhkv.js → server-methods-DPxjPGr0.js} +58 -58
- package/dist/{server-node-events-CT8fFtBQ.js → server-node-events-2SUW10k3.js} +6 -6
- package/dist/{server-node-events-DQ1iCUgY.js → server-node-events-B_BPbi7z.js} +48 -48
- package/dist/{service-CyEDtYLq.js → service-Cm4-5AH9.js} +15 -15
- package/dist/{session-dirs-CXErIzZq.js → session-dirs-BypCYFN3.js} +2 -2
- package/dist/{session-utils-BZnPW904.js → session-utils-lXjJoBxe.js} +14 -14
- package/dist/{sessions-optZRB57.js → sessions-aSo5jsmg.js} +10 -10
- package/dist/{shared-DJFwvlUi.js → shared-BI-gOZsD.js} +3 -3
- package/dist/{shared-Ctok0Bcs.js → shared-DDX_4ypC.js} +1 -1
- package/dist/{skill-commands-yPirQFOb.js → skill-commands-C9WuAfb2.js} +4 -4
- package/dist/{skill-scanner-BBwesm0w.js → skill-scanner-CFqMkfZW.js} +5 -5
- package/dist/{skills-BwDmcZdt.js → skills-CYcBtLGH.js} +4 -4
- package/dist/{skills-cli-gC5ETdly.js → skills-cli-BgyaAQoj.js} +7 -7
- package/dist/{skills-install-CLN_Ks5r.js → skills-install-MGsx6q5Z.js} +3 -3
- package/dist/{skills-remote-bz71Bstn.js → skills-remote-BcRQTDsZ.js} +3 -3
- package/dist/{skills-status-iltfI_bO.js → skills-status-CbSdFlvm.js} +1 -1
- package/dist/{sqlite-Cod7C5ba.js → sqlite-BpogPlQW.js} +5 -5
- package/dist/{status-Cpz64Vy_.js → status-BVYDUlnp.js} +1 -1
- package/dist/{status-CuMBp54T.js → status-C-r9JpJf.js} +23 -23
- package/dist/{status-EAjzyREy.js → status-DIJvpgEm.js} +3 -3
- package/dist/{status-CoqGtHXq.js → status-DbNNmkNB.js} +1 -1
- package/dist/{status.update-F4CbQCxF.js → status.update-EyslEZkn.js} +3 -3
- package/dist/{subagent-registry-Dkif1XYO.js → subagent-registry-DWemyjbN.js} +52 -6
- package/dist/{symi-root-BQ0IpoW2.js → symi-root-DeCVdZB4.js} +2 -2
- package/dist/{synthesis-D3fpp3Vu.js → synthesis-BdTiornP.js} +4 -4
- package/dist/{synthesis-CpsURf9J.js → synthesis-BxYzOZUA.js} +4 -4
- package/dist/{synthesis-CKKZrrYd.js → synthesis-C7RlvHEs.js} +45 -45
- package/dist/{synthesis-B0PXRiiM.js → synthesis-DQ7Y6OE0.js} +4 -4
- package/dist/{system-cli-DMKzffe3.js → system-cli-DgOvK_kU.js} +7 -7
- package/dist/{systemd-DRpQb_L1.js → systemd-B2nTr3Y2.js} +5 -5
- package/dist/{systemd-hints-DR4u43WA.js → systemd-hints-DtOWJT_2.js} +6 -6
- package/dist/{systemd-linger-BQQl5RXN.js → systemd-linger-CWi5l8Nt.js} +1 -1
- package/dist/{tui-CqrM_Fj2.js → tui-D7ms_iQ4.js} +7 -7
- package/dist/{tui-cli-BsqRmqTX.js → tui-cli-DNvAqIYN.js} +19 -19
- package/dist/{unified-runner-DZAjU6aB.js → unified-runner-BIUJm_Iv.js} +150 -104
- package/dist/{unified-runner-DkPztkL8.js → unified-runner-DPWNhQQA.js} +59 -13
- package/dist/{update-check-CxBGAP1E.js → update-check-CduiCxPo.js} +5 -5
- package/dist/{update-cli-Bgk30eoA.js → update-cli-BM-A3cIZ.js} +9 -9
- package/dist/{update-cli-t7W6vcQY.js → update-cli-GKXF83cS.js} +77 -77
- package/dist/{update-CWEjB8uS.js → update-pddgyV7i.js} +3 -3
- package/dist/{update-runner-C4Uy75eP.js → update-runner-BMYqz1dl.js} +15 -15
- package/dist/{webhooks-cli-Dp-pp0Sf.js → webhooks-cli-BPPmnDCj.js} +4 -4
- package/dist/{with-timeout-B5zAsivw.js → with-timeout-D1qzvPE0.js} +1 -1
- package/dist/{workspace-dirs-jKFQf7of.js → workspace-dirs-DCICLTHx.js} +1 -1
- package/dist/{wsl-DMA0sTvh.js → wsl-Sed675xh.js} +2 -2
- package/package.json +1 -1
|
@@ -5,54 +5,54 @@ import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import { o as normalizeAgentId } from "./session-key-DUSb7CCb.js";
|
|
7
7
|
import { n as runExec } from "./exec-DuYbft0z.js";
|
|
8
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
9
|
-
import "./model-selection-
|
|
10
|
-
import "./file-lock-
|
|
11
|
-
import { i as loadConfig, r as createConfigIO } from "./config-
|
|
8
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-Bnsyyeci.js";
|
|
9
|
+
import "./model-selection-CCTzD29o.js";
|
|
10
|
+
import "./file-lock-2AecMjCa.js";
|
|
11
|
+
import { i as loadConfig, r as createConfigIO } from "./config-D-PYSlE8.js";
|
|
12
12
|
import "./boolean-CbZoNRMn.js";
|
|
13
13
|
import "./env-BRnPI9sO.js";
|
|
14
14
|
import "./shell-env-Dc3iU7HK.js";
|
|
15
15
|
import "./manifest-registry-D1MLZEjS.js";
|
|
16
|
-
import "./sandbox-
|
|
17
|
-
import "./chrome-
|
|
16
|
+
import "./sandbox-DQCaejcD.js";
|
|
17
|
+
import "./chrome-pFBxO63W.js";
|
|
18
18
|
import "./tailscale-DpKBMIvx.js";
|
|
19
19
|
import "./auth-Bkx-QuRN.js";
|
|
20
|
-
import "./server-context
|
|
20
|
+
import "./server-context-CXVq7gZ7.js";
|
|
21
21
|
import "./frontmatter-B_jqcova.js";
|
|
22
|
-
import "./skills-
|
|
23
|
-
import "./routes-
|
|
22
|
+
import "./skills-CYcBtLGH.js";
|
|
23
|
+
import "./routes-zpAUwtCG.js";
|
|
24
24
|
import "./redact-B3O-RBO1.js";
|
|
25
25
|
import "./errors-bI7Tdx75.js";
|
|
26
|
-
import "./fs-safe-
|
|
27
|
-
import "./paths-
|
|
26
|
+
import "./fs-safe-B0Is-oLk.js";
|
|
27
|
+
import "./paths-BWqg8NZT.js";
|
|
28
28
|
import "./ssrf-DOZRI5XH.js";
|
|
29
|
-
import "./image-ops-
|
|
30
|
-
import "./ports-
|
|
29
|
+
import "./image-ops-BzCBIakN.js";
|
|
30
|
+
import "./ports-CB_Iu83U.js";
|
|
31
31
|
import "./trash-_YhavPQI.js";
|
|
32
|
-
import "./sessions-
|
|
32
|
+
import "./sessions-aSo5jsmg.js";
|
|
33
33
|
import "./dock-hF45sewN.js";
|
|
34
34
|
import "./message-channel-DgjXWzf-.js";
|
|
35
35
|
import "./plugins-CF5skkHh.js";
|
|
36
36
|
import "./paths-BtvQ7JvU.js";
|
|
37
37
|
import "./commands-DUzLGgEZ.js";
|
|
38
|
-
import "./client-
|
|
39
|
-
import "./call-
|
|
40
|
-
import "./pairing-token-
|
|
41
|
-
import "./workspace-dirs-
|
|
42
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
38
|
+
import "./client-T5P9umyG.js";
|
|
39
|
+
import "./call-CW8U1BPq.js";
|
|
40
|
+
import "./pairing-token-B703A1U3.js";
|
|
41
|
+
import "./workspace-dirs-DCICLTHx.js";
|
|
42
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-Be-ZQK87.js";
|
|
43
43
|
import { t as formatDocsLink } from "./links-TQwptN6q.js";
|
|
44
44
|
import { t as formatHelpExamples } from "./help-format-CPT6NY3h.js";
|
|
45
|
-
import "./pi-tools.policy-
|
|
46
|
-
import "./skill-scanner-
|
|
47
|
-
import { a as collectIncludePathsRecursive, i as formatIcaclsResetCommand, r as createIcaclsResetCommand, t as runSecurityAudit } from "./audit-
|
|
48
|
-
import "./dm-policy-shared-
|
|
45
|
+
import "./pi-tools.policy-ji-L-Mpv.js";
|
|
46
|
+
import "./skill-scanner-CFqMkfZW.js";
|
|
47
|
+
import { a as collectIncludePathsRecursive, i as formatIcaclsResetCommand, r as createIcaclsResetCommand, t as runSecurityAudit } from "./audit-BSX7fMfc.js";
|
|
48
|
+
import "./dm-policy-shared-DRJrFKqJ.js";
|
|
49
49
|
import path from "node:path";
|
|
50
|
-
import
|
|
50
|
+
import fsPromises from "node:fs/promises";
|
|
51
51
|
|
|
52
52
|
//#region src/security/fix.ts
|
|
53
53
|
async function safeChmod(params) {
|
|
54
54
|
try {
|
|
55
|
-
const st = await
|
|
55
|
+
const st = await fsPromises.lstat(params.path);
|
|
56
56
|
if (st.isSymbolicLink()) return {
|
|
57
57
|
kind: "chmod",
|
|
58
58
|
path: params.path,
|
|
@@ -81,7 +81,7 @@ async function safeChmod(params) {
|
|
|
81
81
|
ok: false,
|
|
82
82
|
skipped: "already"
|
|
83
83
|
};
|
|
84
|
-
await
|
|
84
|
+
await fsPromises.chmod(params.path, params.mode);
|
|
85
85
|
return {
|
|
86
86
|
kind: "chmod",
|
|
87
87
|
path: params.path,
|
|
@@ -111,7 +111,7 @@ async function safeAclReset(params) {
|
|
|
111
111
|
env: params.env
|
|
112
112
|
});
|
|
113
113
|
try {
|
|
114
|
-
const st = await
|
|
114
|
+
const st = await fsPromises.lstat(params.path);
|
|
115
115
|
if (st.isSymbolicLink()) return {
|
|
116
116
|
kind: "icacls",
|
|
117
117
|
path: params.path,
|
|
@@ -249,7 +249,7 @@ async function chmodCredentialsAndAgentState(params) {
|
|
|
249
249
|
mode: 448,
|
|
250
250
|
require: "dir"
|
|
251
251
|
}));
|
|
252
|
-
const credsEntries = await
|
|
252
|
+
const credsEntries = await fsPromises.readdir(credsDir, { withFileTypes: true }).catch(() => []);
|
|
253
253
|
for (const entry of credsEntries) {
|
|
254
254
|
if (!entry.isFile()) continue;
|
|
255
255
|
if (!entry.name.endsWith(".json")) continue;
|
|
@@ -300,7 +300,7 @@ async function chmodCredentialsAndAgentState(params) {
|
|
|
300
300
|
mode: 384,
|
|
301
301
|
require: "file"
|
|
302
302
|
}));
|
|
303
|
-
const sessionEntries = await
|
|
303
|
+
const sessionEntries = await fsPromises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
304
304
|
for (const entry of sessionEntries) {
|
|
305
305
|
if (!entry.isFile()) continue;
|
|
306
306
|
if (!entry.name.endsWith(".jsonl")) continue;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { D as shouldLogVerbose, w as logVerbose } from "./registry-Sbac4a4z.js";
|
|
3
3
|
import { h as resolveUserPath } from "./utils-CTPsqyE_.js";
|
|
4
|
-
import { i as loadConfig } from "./config-
|
|
5
|
-
import { r as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
6
|
-
import { _ as mediaKindFromMime, a as hasAlphaChannel, c as detectMime, g as maxBytesForKind, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
4
|
+
import { i as loadConfig } from "./config-D-PYSlE8.js";
|
|
5
|
+
import { r as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-B0Is-oLk.js";
|
|
6
|
+
import { _ as mediaKindFromMime, a as hasAlphaChannel, c as detectMime, g as maxBytesForKind, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-BzCBIakN.js";
|
|
7
7
|
import { a as resolveSlackAccount, c as resolveSlackBotToken } from "./plugins-CF5skkHh.js";
|
|
8
8
|
import { a as chunkText, c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-BxfKjCUx.js";
|
|
9
9
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-CS1Tvb3z.js";
|
|
10
10
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-JHxT9355.js";
|
|
11
|
-
import { n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
11
|
+
import { n as getDefaultMediaLocalRoots } from "./local-roots-2Jb79HZ8.js";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
13
13
|
import path from "node:path";
|
|
14
|
-
import
|
|
14
|
+
import fsPromises from "node:fs/promises";
|
|
15
15
|
import { WebClient } from "@slack/web-api";
|
|
16
16
|
import MarkdownIt from "markdown-it";
|
|
17
17
|
|
|
@@ -380,7 +380,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
380
380
|
const roots = localRoots ?? getDefaultLocalRoots();
|
|
381
381
|
let resolved;
|
|
382
382
|
try {
|
|
383
|
-
resolved = await
|
|
383
|
+
resolved = await fsPromises.realpath(mediaPath);
|
|
384
384
|
} catch {
|
|
385
385
|
resolved = path.resolve(mediaPath);
|
|
386
386
|
}
|
|
@@ -397,7 +397,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
397
397
|
for (const root of roots) {
|
|
398
398
|
let resolvedRoot;
|
|
399
399
|
try {
|
|
400
|
-
resolvedRoot = await
|
|
400
|
+
resolvedRoot = await fsPromises.realpath(root);
|
|
401
401
|
} catch {
|
|
402
402
|
resolvedRoot = path.resolve(root);
|
|
403
403
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-By0XjHBk.js";
|
|
2
|
-
import { i as loadConfig, l as writeConfigFile, r as createConfigIO } from "./config-
|
|
3
|
-
import { A as DEFAULT_SYMI_BROWSER_PROFILE_NAME, D as DEFAULT_BROWSER_EVALUATE_ENABLED, E as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, O as DEFAULT_SYMI_BROWSER_COLOR, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, k as DEFAULT_SYMI_BROWSER_ENABLED, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, v as fetchOk, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
2
|
+
import { i as loadConfig, l as writeConfigFile, r as createConfigIO } from "./config-D-PYSlE8.js";
|
|
3
|
+
import { A as DEFAULT_SYMI_BROWSER_PROFILE_NAME, D as DEFAULT_BROWSER_EVALUATE_ENABLED, E as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, O as DEFAULT_SYMI_BROWSER_COLOR, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, k as DEFAULT_SYMI_BROWSER_ENABLED, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, v as fetchOk, x as ensureChromeExtensionRelayServer } from "./chrome-pFBxO63W.js";
|
|
4
4
|
import { r as isLoopbackHost } from "./ws-C7Ktmt-R.js";
|
|
5
5
|
import { a as resolveGatewayAuth } from "./auth-Bkx-QuRN.js";
|
|
6
6
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-bI7Tdx75.js";
|
|
@@ -152,7 +152,7 @@ function isModuleNotFoundError(err) {
|
|
|
152
152
|
}
|
|
153
153
|
async function loadPwAiModule(mode) {
|
|
154
154
|
try {
|
|
155
|
-
return await import("./pw-ai-
|
|
155
|
+
return await import("./pw-ai-CQJsGI1b.js");
|
|
156
156
|
} catch (err) {
|
|
157
157
|
if (mode === "soft") return null;
|
|
158
158
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -775,11 +775,11 @@ function createProfileContext(opts, profile) {
|
|
|
775
775
|
const userDataDir = resolveSymiUserDataDir(profile.name);
|
|
776
776
|
const profileState = getProfileState();
|
|
777
777
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
778
|
-
await (await import("./pw-ai-
|
|
778
|
+
await (await import("./pw-ai-CQJsGI1b.js")).closePlaywrightBrowserConnection();
|
|
779
779
|
} catch {}
|
|
780
780
|
if (profileState.running) await stopRunningBrowser();
|
|
781
781
|
try {
|
|
782
|
-
await (await import("./pw-ai-
|
|
782
|
+
await (await import("./pw-ai-CQJsGI1b.js")).closePlaywrightBrowserConnection();
|
|
783
783
|
} catch {}
|
|
784
784
|
if (!fs.existsSync(userDataDir)) return {
|
|
785
785
|
moved: false,
|
|
@@ -13,7 +13,7 @@ import { f as GATEWAY_CLIENT_CAPS, g as hasGatewayClientCap, i as isGatewayMessa
|
|
|
13
13
|
import { c as writeJsonAtomic, o as createAsyncLock, s as readJsonFile } from "./pairing-token-B-OTYROz.js";
|
|
14
14
|
import { s as pickPrimaryLanIPv4 } from "./net-TZUXtwGR.js";
|
|
15
15
|
import { i as normalizeInputProvenance } from "./input-provenance-BdV0rbga.js";
|
|
16
|
-
import { $ as normalizeCronJobCreate, B as ensureOutboundSessionEntry, Bt as applyModelOverrideToSessionEntry, C as buildGlassUiProfile, E as abortEmbeddedPiRun, Et as scheduleGatewaySigusr1Restart, Ft as resolveSendPolicy, H as resolveOutboundTarget, Ht as parseVerboseOverride, I as listTasksInWorkdir, N as buildAgentTurnParams, O as waitForEmbeddedPiRunEnd, P as prepareReplyTurn, Pt as normalizeSendPolicy, Tn as registerAgentRunContext, V as resolveOutboundSessionRoute, Vt as applyVerboseOverride, W as normalizePollInput, _t as applyBrowserProxyPaths, a as listSubagentRunsForRequester, an as formatZonedTimestamp, c as clearSessionQueues, en as resolveAgentTimeoutMs, et as normalizeCronJobPatch, fn as resolveUserTimezone, i as listDescendantRunsForRequester, m as loadSymiPlugins, nn as BARE_SESSION_RESET_PROMPT, on as isAbortTrigger, rn as normalizeGroupActivation, sn as stopSubagentsForRequester, tn as prepareAgentRun, vt as persistBrowserProxyFiles, w as runUnifiedTurn, wn as onAgentEvent, x as createReplyDispatcher, y as getChannelActivity } from "./subagent-registry-
|
|
16
|
+
import { $ as normalizeCronJobCreate, B as ensureOutboundSessionEntry, Bt as applyModelOverrideToSessionEntry, C as buildGlassUiProfile, E as abortEmbeddedPiRun, Et as scheduleGatewaySigusr1Restart, Ft as resolveSendPolicy, H as resolveOutboundTarget, Ht as parseVerboseOverride, I as listTasksInWorkdir, N as buildAgentTurnParams, O as waitForEmbeddedPiRunEnd, P as prepareReplyTurn, Pt as normalizeSendPolicy, Tn as registerAgentRunContext, V as resolveOutboundSessionRoute, Vt as applyVerboseOverride, W as normalizePollInput, _t as applyBrowserProxyPaths, a as listSubagentRunsForRequester, an as formatZonedTimestamp, c as clearSessionQueues, en as resolveAgentTimeoutMs, et as normalizeCronJobPatch, fn as resolveUserTimezone, i as listDescendantRunsForRequester, m as loadSymiPlugins, nn as BARE_SESSION_RESET_PROMPT, on as isAbortTrigger, rn as normalizeGroupActivation, sn as stopSubagentsForRequester, tn as prepareAgentRun, vt as persistBrowserProxyFiles, w as runUnifiedTurn, wn as onAgentEvent, x as createReplyDispatcher, y as getChannelActivity } from "./subagent-registry-DWemyjbN.js";
|
|
17
17
|
import { F as resolveMainSessionKey, I as resolveMainSessionKeyFromConfig, J as normalizeSessionDeliveryFields, N as resolveAgentMainSessionKey, P as resolveExplicitAgentSessionKey, R as snapshotSessionOrigin, S as stripEnvelopeFromMessages, _ as capArrayByJsonBytes, d as updateSessionStore, g as archiveSessionTranscripts, h as archiveFileOnDisk, o as loadSessionStore, t as extractDeliveryInfo, v as readSessionMessages, x as resolveSessionTranscriptCandidates, y as readSessionPreviewItemsFromTranscript } from "./sessions-DHPf5TzB.js";
|
|
18
18
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BsEhWvLn.js";
|
|
19
19
|
import { n as createBrowserRouteDispatcher } from "./with-timeout-CaEWDssR.js";
|
|
@@ -22,7 +22,7 @@ import { t as movePathToTrash } from "./trash-Bx4LIudf.js";
|
|
|
22
22
|
import { c as resolveStorePath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-DtiEyjsC.js";
|
|
23
23
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-BZDIJMl_.js";
|
|
24
24
|
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-DV3KhOhL.js";
|
|
25
|
-
import { t as getMemorySearchManager } from "./memory-
|
|
25
|
+
import { t as getMemorySearchManager } from "./memory-Cypj1lBQ.js";
|
|
26
26
|
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-DSGpkPJE.js";
|
|
27
27
|
import { g as isSystemEventContextChanged, h as enqueueSystemEvent, i as formatDoctorNonInteractiveHint, l as writeRestartSentinel, u as loadProviderUsageSummary } from "./redact-identifier-CXvHJXk9.js";
|
|
28
28
|
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-wlRR65M3.js";
|
|
@@ -37,11 +37,11 @@ import { t as resolveChannelDefaultAccountId } from "./helpers-Cv2yCxAb.js";
|
|
|
37
37
|
import { t as buildChannelAccountSnapshot } from "./status-QSx6bfFf.js";
|
|
38
38
|
import { w as resolveAssistantAvatarUrl } from "./onboard-helpers-Cut7JJgz.js";
|
|
39
39
|
import { c as resolveNodeCommandAllowlist, s as isNodeCommandAllowed } from "./audit-CXT_jhD1.js";
|
|
40
|
-
import { r as getStatusSummary } from "./status-
|
|
40
|
+
import { r as getStatusSummary } from "./status-BVYDUlnp.js";
|
|
41
41
|
import { r as createOutboundSendDeps } from "./outbound-send-deps-Bms6Lw6N.js";
|
|
42
42
|
import { m as normalizeUpdateChannel } from "./update-check-BVu0zSCT.js";
|
|
43
|
-
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-
|
|
44
|
-
import { i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-
|
|
43
|
+
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-BtMtpzEm.js";
|
|
44
|
+
import { i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-DOOj3Gzb.js";
|
|
45
45
|
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-DJ6HOh-6.js";
|
|
46
46
|
import { t as resolveSystemRunCommand } from "./system-run-command-fjiicRnc.js";
|
|
47
47
|
import { t as installSkill } from "./skills-install-BmZ-1p6t.js";
|
|
@@ -7464,7 +7464,7 @@ const nodeHandlers = {
|
|
|
7464
7464
|
const p = params;
|
|
7465
7465
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
7466
7466
|
await respondUnavailableOnThrow(respond, async () => {
|
|
7467
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
7467
|
+
const { handleNodeEvent } = await import("./server-node-events-2SUW10k3.js");
|
|
7468
7468
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
7469
7469
|
await handleNodeEvent({
|
|
7470
7470
|
deps: context.deps,
|
|
@@ -1,60 +1,60 @@
|
|
|
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-BIUJm_Iv.js";
|
|
2
2
|
import { H as createInternalHookEvent, P as getResolvedLoggerSettings, W as triggerInternalHook, d as getActivePluginRegistry, r as DEFAULT_CHAT_CHANNEL } from "./registry-Sbac4a4z.js";
|
|
3
3
|
import { _ as resolveStateDir, t as CONFIG_PATH } from "./paths-By0XjHBk.js";
|
|
4
4
|
import { S as isPlainObject, h as resolveUserPath, n as clamp } from "./utils-CTPsqyE_.js";
|
|
5
5
|
import { f as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
6
6
|
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-DUSb7CCb.js";
|
|
7
|
-
import { t as resolveSymiPackageRoot } from "./symi-root-
|
|
8
|
-
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-
|
|
9
|
-
import { b as resolveThinkingDefault, f as resolveAllowedModelRef, h as resolveDefaultModelForAgent, v as resolveSubagentConfiguredModelSelection } from "./model-selection-
|
|
7
|
+
import { t as resolveSymiPackageRoot } from "./symi-root-DeCVdZB4.js";
|
|
8
|
+
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-Bnsyyeci.js";
|
|
9
|
+
import { b as resolveThinkingDefault, f as resolveAllowedModelRef, h as resolveDefaultModelForAgent, v as resolveSubagentConfiguredModelSelection } from "./model-selection-CCTzD29o.js";
|
|
10
10
|
import { n as normalizeSecretInput } from "./normalize-secret-input-DjGU5EXe.js";
|
|
11
|
-
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-
|
|
11
|
+
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-D-PYSlE8.js";
|
|
12
12
|
import { c as pickPrimaryLanIPv4 } from "./ws-C7Ktmt-R.js";
|
|
13
|
-
import { i as loadWorkspaceSkillEntries } from "./skills-
|
|
13
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-CYcBtLGH.js";
|
|
14
14
|
import { t as movePathToTrash } from "./trash-_YhavPQI.js";
|
|
15
|
-
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-
|
|
15
|
+
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-aSo5jsmg.js";
|
|
16
16
|
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-DgjXWzf-.js";
|
|
17
17
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CF5skkHh.js";
|
|
18
18
|
import { c as resolveStorePath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-BtvQ7JvU.js";
|
|
19
19
|
import { i as normalizeInputProvenance } from "./input-provenance-Dfn-vEsu.js";
|
|
20
20
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-COroyVA5.js";
|
|
21
|
-
import { h as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-
|
|
21
|
+
import { h as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-C79-Umbk.js";
|
|
22
22
|
import { i as loadSessionUsageTimeSeries, n as loadCostUsageSummary, r as loadSessionCostSummary, t as discoverAllSessions } from "./session-cost-usage-D6Ocwmq1.js";
|
|
23
|
-
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-
|
|
24
|
-
import { n as createBrowserRouteDispatcher } from "./with-timeout-
|
|
25
|
-
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
26
|
-
import { t as getMemorySearchManager } from "./memory-
|
|
27
|
-
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-
|
|
28
|
-
import { l as authorizeOperatorScopesForMethod, s as ADMIN_SCOPE$2, u as isNodeRoleMethod } from "./call-
|
|
29
|
-
import { c as writeJsonAtomic, o as createAsyncLock, s as readJsonFile } from "./pairing-token-
|
|
30
|
-
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-
|
|
31
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
23
|
+
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-lXjJoBxe.js";
|
|
24
|
+
import { n as createBrowserRouteDispatcher } from "./with-timeout-D1qzvPE0.js";
|
|
25
|
+
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-CtZtkTJK.js";
|
|
26
|
+
import { t as getMemorySearchManager } from "./memory-DgDnTEcB.js";
|
|
27
|
+
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-T5P9umyG.js";
|
|
28
|
+
import { l as authorizeOperatorScopesForMethod, s as ADMIN_SCOPE$2, u as isNodeRoleMethod } from "./call-CW8U1BPq.js";
|
|
29
|
+
import { c as writeJsonAtomic, o as createAsyncLock, s as readJsonFile } from "./pairing-token-B703A1U3.js";
|
|
30
|
+
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-BcRQTDsZ.js";
|
|
31
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-DCICLTHx.js";
|
|
32
32
|
import { a as mergeExecApprovalsSocketDefaults, c as readExecApprovalsSnapshot, p as saveExecApprovals, r as ensureExecApprovals, s as normalizeExecApprovals } from "./exec-approvals-DioSaIeH.js";
|
|
33
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
33
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-y53w3Jzy.js";
|
|
34
34
|
import { i as parseAbsoluteTimeMs } from "./stagger-DUVGiPYV.js";
|
|
35
|
-
import { n as createOutboundSendDeps } from "./deps-
|
|
35
|
+
import { n as createOutboundSendDeps } from "./deps-UA1UBhl7.js";
|
|
36
36
|
import { t as buildChannelUiCatalog } from "./catalog-DsC3JTw1.js";
|
|
37
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
37
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-CbSdFlvm.js";
|
|
38
38
|
import { t as WizardCancelledError } from "./prompts-GoDC3iAV.js";
|
|
39
39
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DgsKk072.js";
|
|
40
40
|
import { t as buildChannelAccountSnapshot } from "./status-BvbsaoNZ.js";
|
|
41
|
-
import { w as resolveAssistantAvatarUrl } from "./onboard-helpers
|
|
42
|
-
import { c as resolveNodeCommandAllowlist, s as isNodeCommandAllowed } from "./audit-
|
|
43
|
-
import { n as getStatusSummary } from "./status-
|
|
44
|
-
import { m as normalizeUpdateChannel } from "./update-check-
|
|
45
|
-
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-
|
|
46
|
-
import { i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-
|
|
47
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
41
|
+
import { w as resolveAssistantAvatarUrl } from "./onboard-helpers-OB_xKQze.js";
|
|
42
|
+
import { c as resolveNodeCommandAllowlist, s as isNodeCommandAllowed } from "./audit-BSX7fMfc.js";
|
|
43
|
+
import { n as getStatusSummary } from "./status-C-r9JpJf.js";
|
|
44
|
+
import { m as normalizeUpdateChannel } from "./update-check-CduiCxPo.js";
|
|
45
|
+
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-CmeoBcIQ.js";
|
|
46
|
+
import { i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-CiqPWDUd.js";
|
|
47
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-Dm3oLpYK.js";
|
|
48
48
|
import { t as resolveSystemRunCommand } from "./system-run-command-Craglj8T.js";
|
|
49
|
-
import { t as installSkill } from "./skills-install-
|
|
50
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
49
|
+
import { t as installSkill } from "./skills-install-MGsx6q5Z.js";
|
|
50
|
+
import { t as runGatewayUpdate } from "./update-runner-BMYqz1dl.js";
|
|
51
51
|
import crypto, { randomUUID } from "node:crypto";
|
|
52
52
|
import path from "node:path";
|
|
53
|
-
import * as fs$
|
|
53
|
+
import * as fs$1 from "node:fs";
|
|
54
54
|
import fs from "node:fs";
|
|
55
55
|
import * as os$1 from "node:os";
|
|
56
56
|
import os from "node:os";
|
|
57
|
-
import
|
|
57
|
+
import fsPromises from "node:fs/promises";
|
|
58
58
|
import { spawnSync } from "node:child_process";
|
|
59
59
|
import { z } from "zod";
|
|
60
60
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -401,20 +401,20 @@ function resolveCronRunLogPath(params) {
|
|
|
401
401
|
}
|
|
402
402
|
const writesByPath = /* @__PURE__ */ new Map();
|
|
403
403
|
async function pruneIfNeeded(filePath, opts) {
|
|
404
|
-
const stat = await
|
|
404
|
+
const stat = await fsPromises.stat(filePath).catch(() => null);
|
|
405
405
|
if (!stat || stat.size <= opts.maxBytes) return;
|
|
406
|
-
const lines = (await
|
|
406
|
+
const lines = (await fsPromises.readFile(filePath, "utf-8").catch(() => "")).split("\n").map((l) => l.trim()).filter(Boolean);
|
|
407
407
|
const kept = lines.slice(Math.max(0, lines.length - opts.keepLines));
|
|
408
408
|
const { randomBytes } = await import("node:crypto");
|
|
409
409
|
const tmp = `${filePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
410
|
-
await
|
|
411
|
-
await
|
|
410
|
+
await fsPromises.writeFile(tmp, `${kept.join("\n")}\n`, "utf-8");
|
|
411
|
+
await fsPromises.rename(tmp, filePath);
|
|
412
412
|
}
|
|
413
413
|
async function appendCronRunLog(filePath, entry, opts) {
|
|
414
414
|
const resolved = path.resolve(filePath);
|
|
415
415
|
const next = (writesByPath.get(resolved) ?? Promise.resolve()).catch(() => void 0).then(async () => {
|
|
416
|
-
await
|
|
417
|
-
await
|
|
416
|
+
await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
417
|
+
await fsPromises.appendFile(resolved, `${JSON.stringify(entry)}\n`, "utf-8");
|
|
418
418
|
await pruneIfNeeded(resolved, {
|
|
419
419
|
maxBytes: opts?.maxBytes ?? 2e6,
|
|
420
420
|
keepLines: opts?.keepLines ?? 2e3
|
|
@@ -426,7 +426,7 @@ async function appendCronRunLog(filePath, entry, opts) {
|
|
|
426
426
|
async function readCronRunLogEntries(filePath, opts) {
|
|
427
427
|
const limit = Math.max(1, Math.min(5e3, Math.floor(opts?.limit ?? 200)));
|
|
428
428
|
const jobId = opts?.jobId?.trim() || void 0;
|
|
429
|
-
const raw = await
|
|
429
|
+
const raw = await fsPromises.readFile(path.resolve(filePath), "utf-8").catch(() => "");
|
|
430
430
|
if (!raw.trim()) return [];
|
|
431
431
|
const parsed = [];
|
|
432
432
|
const lines = raw.split("\n");
|
|
@@ -2938,7 +2938,7 @@ function resolveAgentWorkspaceFileOrRespondError(params, respond) {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
async function statFile(filePath) {
|
|
2940
2940
|
try {
|
|
2941
|
-
const stat = await
|
|
2941
|
+
const stat = await fsPromises.stat(filePath);
|
|
2942
2942
|
if (!stat.isFile()) return null;
|
|
2943
2943
|
return {
|
|
2944
2944
|
size: stat.size,
|
|
@@ -3008,7 +3008,7 @@ function resolveOptionalStringParam(value) {
|
|
|
3008
3008
|
async function moveToTrashBestEffort(pathname) {
|
|
3009
3009
|
if (!pathname) return;
|
|
3010
3010
|
try {
|
|
3011
|
-
await
|
|
3011
|
+
await fsPromises.access(pathname);
|
|
3012
3012
|
} catch {
|
|
3013
3013
|
return;
|
|
3014
3014
|
}
|
|
@@ -3055,7 +3055,7 @@ const agentsHandlers = {
|
|
|
3055
3055
|
dir: workspaceDir,
|
|
3056
3056
|
ensureBootstrapFiles: !Boolean(nextConfig.agents?.defaults?.skipBootstrap)
|
|
3057
3057
|
});
|
|
3058
|
-
await
|
|
3058
|
+
await fsPromises.mkdir(resolveSessionTranscriptsDirForAgent(agentId), { recursive: true });
|
|
3059
3059
|
await writeConfigFile(nextConfig);
|
|
3060
3060
|
const safeName = sanitizeIdentityLine(rawName);
|
|
3061
3061
|
const emoji = resolveOptionalStringParam(params.emoji);
|
|
@@ -3068,7 +3068,7 @@ const agentsHandlers = {
|
|
|
3068
3068
|
...avatar ? [`- Avatar: ${sanitizeIdentityLine(avatar)}`] : [],
|
|
3069
3069
|
""
|
|
3070
3070
|
];
|
|
3071
|
-
await
|
|
3071
|
+
await fsPromises.appendFile(identityPath, lines.join("\n"), "utf-8");
|
|
3072
3072
|
respond(true, {
|
|
3073
3073
|
ok: true,
|
|
3074
3074
|
agentId,
|
|
@@ -3103,9 +3103,9 @@ const agentsHandlers = {
|
|
|
3103
3103
|
});
|
|
3104
3104
|
if (avatar) {
|
|
3105
3105
|
const workspace = workspaceDir ?? resolveAgentWorkspaceDir(nextConfig, agentId);
|
|
3106
|
-
await
|
|
3106
|
+
await fsPromises.mkdir(workspace, { recursive: true });
|
|
3107
3107
|
const identityPath = path.join(workspace, DEFAULT_IDENTITY_FILENAME);
|
|
3108
|
-
await
|
|
3108
|
+
await fsPromises.appendFile(identityPath, `\n- Avatar: ${sanitizeIdentityLine(avatar)}\n`, "utf-8");
|
|
3109
3109
|
}
|
|
3110
3110
|
respond(true, {
|
|
3111
3111
|
ok: true,
|
|
@@ -3188,7 +3188,7 @@ const agentsHandlers = {
|
|
|
3188
3188
|
}, void 0);
|
|
3189
3189
|
return;
|
|
3190
3190
|
}
|
|
3191
|
-
const content = await
|
|
3191
|
+
const content = await fsPromises.readFile(filePath, "utf-8");
|
|
3192
3192
|
respond(true, {
|
|
3193
3193
|
agentId,
|
|
3194
3194
|
workspace: workspaceDir,
|
|
@@ -3210,10 +3210,10 @@ const agentsHandlers = {
|
|
|
3210
3210
|
const resolved = resolveAgentWorkspaceFileOrRespondError(params, respond);
|
|
3211
3211
|
if (!resolved) return;
|
|
3212
3212
|
const { agentId, workspaceDir, name } = resolved;
|
|
3213
|
-
await
|
|
3213
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
3214
3214
|
const filePath = path.join(workspaceDir, name);
|
|
3215
3215
|
const content = String(params.content ?? "");
|
|
3216
|
-
await
|
|
3216
|
+
await fsPromises.writeFile(filePath, content, "utf-8");
|
|
3217
3217
|
const meta = await statFile(filePath);
|
|
3218
3218
|
respond(true, {
|
|
3219
3219
|
ok: true,
|
|
@@ -4201,7 +4201,7 @@ const chatHandlers = {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
(async () => {
|
|
4203
4203
|
try {
|
|
4204
|
-
const [mod, { loadConfig }] = await Promise.all([import("./commands-registry-
|
|
4204
|
+
const [mod, { loadConfig }] = await Promise.all([import("./commands-registry-BjcGLk4v.js").then((n) => n.t), import("./config-D-PYSlE8.js").then((n) => n.t)]);
|
|
4205
4205
|
const cfg = loadConfig();
|
|
4206
4206
|
respond(true, { commands: mod.listChatCommandsForConfig(cfg).map((cmd) => ({
|
|
4207
4207
|
key: cmd.key,
|
|
@@ -6461,7 +6461,7 @@ const docsHandlers = { "docs.get": async ({ params, respond }) => {
|
|
|
6461
6461
|
const fullPath = path.join(packageRoot, relPath);
|
|
6462
6462
|
let markdown;
|
|
6463
6463
|
try {
|
|
6464
|
-
markdown = await
|
|
6464
|
+
markdown = await fsPromises.readFile(fullPath, "utf-8");
|
|
6465
6465
|
} catch (err) {
|
|
6466
6466
|
if (err?.code === "ENOENT") {
|
|
6467
6467
|
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, `docs file not bundled in this Symi install: ${relPath}`));
|
|
@@ -6612,14 +6612,14 @@ function isRollingLogFile(file) {
|
|
|
6612
6612
|
return ROLLING_LOG_RE.test(path.basename(file));
|
|
6613
6613
|
}
|
|
6614
6614
|
async function resolveLogFile(file) {
|
|
6615
|
-
if (await
|
|
6615
|
+
if (await fsPromises.stat(file).catch(() => null)) return file;
|
|
6616
6616
|
if (!isRollingLogFile(file)) return file;
|
|
6617
6617
|
const dir = path.dirname(file);
|
|
6618
|
-
const entries = await
|
|
6618
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true }).catch(() => null);
|
|
6619
6619
|
if (!entries) return file;
|
|
6620
6620
|
return (await Promise.all(entries.filter((entry) => entry.isFile() && ROLLING_LOG_RE.test(entry.name)).map(async (entry) => {
|
|
6621
6621
|
const fullPath = path.join(dir, entry.name);
|
|
6622
|
-
const fileStat = await
|
|
6622
|
+
const fileStat = await fsPromises.stat(fullPath).catch(() => null);
|
|
6623
6623
|
return fileStat ? {
|
|
6624
6624
|
path: fullPath,
|
|
6625
6625
|
mtimeMs: fileStat.mtimeMs
|
|
@@ -6627,7 +6627,7 @@ async function resolveLogFile(file) {
|
|
|
6627
6627
|
}))).filter((entry) => Boolean(entry)).toSorted((a, b) => b.mtimeMs - a.mtimeMs)[0]?.path ?? file;
|
|
6628
6628
|
}
|
|
6629
6629
|
async function readLogSlice(params) {
|
|
6630
|
-
const stat = await
|
|
6630
|
+
const stat = await fsPromises.stat(params.file).catch(() => null);
|
|
6631
6631
|
if (!stat) return {
|
|
6632
6632
|
cursor: 0,
|
|
6633
6633
|
size: 0,
|
|
@@ -6665,7 +6665,7 @@ async function readLogSlice(params) {
|
|
|
6665
6665
|
truncated,
|
|
6666
6666
|
reset
|
|
6667
6667
|
};
|
|
6668
|
-
const handle = await
|
|
6668
|
+
const handle = await fsPromises.open(params.file, "r");
|
|
6669
6669
|
try {
|
|
6670
6670
|
let prefix = "";
|
|
6671
6671
|
if (start > 0) {
|
|
@@ -7466,7 +7466,7 @@ const nodeHandlers = {
|
|
|
7466
7466
|
const p = params;
|
|
7467
7467
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
7468
7468
|
await respondUnavailableOnThrow(respond, async () => {
|
|
7469
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
7469
|
+
const { handleNodeEvent } = await import("./server-node-events-B_BPbi7z.js");
|
|
7470
7470
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
7471
7471
|
await handleNodeEvent({
|
|
7472
7472
|
deps: context.deps,
|
|
@@ -7985,7 +7985,7 @@ function broadcastPresenceSnapshot(params) {
|
|
|
7985
7985
|
let _prevCpu = null;
|
|
7986
7986
|
function getCpuPercent() {
|
|
7987
7987
|
try {
|
|
7988
|
-
const parts = fs$
|
|
7988
|
+
const parts = fs$1.readFileSync("/proc/stat", "utf8").split("\n")[0].trim().split(/\s+/).slice(1).map(Number);
|
|
7989
7989
|
const [, , , idle, iowait] = parts;
|
|
7990
7990
|
const total = parts.reduce((a, b) => a + b, 0);
|
|
7991
7991
|
const active = total - idle - (iowait || 0);
|
|
@@ -8009,7 +8009,7 @@ function getCpuPercent() {
|
|
|
8009
8009
|
}
|
|
8010
8010
|
function getMemInfo() {
|
|
8011
8011
|
try {
|
|
8012
|
-
const text = fs$
|
|
8012
|
+
const text = fs$1.readFileSync("/proc/meminfo", "utf8");
|
|
8013
8013
|
const get = (key) => parseInt(text.match(new RegExp(`${key}:\\s+(\\d+)`))?.[1] ?? "0", 10) * 1024;
|
|
8014
8014
|
const total = get("MemTotal");
|
|
8015
8015
|
const used = total - get("MemAvailable");
|
|
@@ -8028,7 +8028,7 @@ function getMemInfo() {
|
|
|
8028
8028
|
}
|
|
8029
8029
|
function getDiskInfo() {
|
|
8030
8030
|
try {
|
|
8031
|
-
const stats = fs$
|
|
8031
|
+
const stats = fs$1.statfsSync("/");
|
|
8032
8032
|
const total = stats.blocks * stats.bsize;
|
|
8033
8033
|
const used = total - stats.bfree * stats.bsize;
|
|
8034
8034
|
return {
|
|
@@ -18,7 +18,7 @@ import "./client-BqT7xONl.js";
|
|
|
18
18
|
import "./call-GzGqMHAx.js";
|
|
19
19
|
import "./message-channel-DXToSaWK.js";
|
|
20
20
|
import "./pairing-token-B-OTYROz.js";
|
|
21
|
-
import { H as resolveOutboundTarget } from "./subagent-registry-
|
|
21
|
+
import { H as resolveOutboundTarget } from "./subagent-registry-DWemyjbN.js";
|
|
22
22
|
import { d as updateSessionStore } from "./sessions-DHPf5TzB.js";
|
|
23
23
|
import { r as normalizeChannelId } from "./plugins-BsEhWvLn.js";
|
|
24
24
|
import "./send-BBfSp-8Q.js";
|
|
@@ -48,8 +48,8 @@ import "./model-auth-Byr7Gic_.js";
|
|
|
48
48
|
import "./github-copilot-token-B5y4__YM.js";
|
|
49
49
|
import "./models-config-Br7EjqgG.js";
|
|
50
50
|
import "./reply-prefix-DV3KhOhL.js";
|
|
51
|
-
import "./memory-
|
|
52
|
-
import "./manager-
|
|
51
|
+
import "./memory-Cypj1lBQ.js";
|
|
52
|
+
import "./manager-BfbQb9qM.js";
|
|
53
53
|
import "./sqlite-9jF_eajd.js";
|
|
54
54
|
import "./chunk-B2lBXhR0.js";
|
|
55
55
|
import "./markdown-tables-BEdkErjm.js";
|
|
@@ -79,13 +79,13 @@ import "./links-BDe4dm1J.js";
|
|
|
79
79
|
import "./cli-utils-BhfE5XS2.js";
|
|
80
80
|
import "./help-format-CbgFRc-H.js";
|
|
81
81
|
import "./progress-CqV5lJkt.js";
|
|
82
|
-
import "./memory-cli-
|
|
82
|
+
import "./memory-cli-DB7UIev4.js";
|
|
83
83
|
import "./logging-BeW3kpQA.js";
|
|
84
84
|
import "./replies-LM-arXEE.js";
|
|
85
85
|
import "./pi-tools.policy-4gtz_Ipq.js";
|
|
86
86
|
import { t as createOutboundSendDeps } from "./outbound-send-deps-Bms6Lw6N.js";
|
|
87
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
88
|
-
import { t as agentCommand } from "./agent-
|
|
87
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-BtMtpzEm.js";
|
|
88
|
+
import { t as agentCommand } from "./agent-DOOj3Gzb.js";
|
|
89
89
|
import { randomUUID } from "node:crypto";
|
|
90
90
|
|
|
91
91
|
//#region src/gateway/server-node-events.ts
|