@symerian/symi 3.3.1 → 3.3.2
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-BI1-UXxQ.js → agent-BED0HDsS.js} +2 -5
- package/dist/{agent-DeLysRUa.js → agent-pDOR_idq.js} +17 -20
- package/dist/{agent-scope-BjEBQhs0.js → agent-scope-B_oqIiaD.js} +18 -18
- package/dist/{agent-scope-DE5eEsvh.js → agent-scope-D_MtsuXX.js} +2 -2
- package/dist/{agents-BMRZpxNt.js → agents-mZX2a3hp.js} +2 -2
- package/dist/{agents.config-BFKM-a83.js → agents.config-B_LFeRQS.js} +1 -1
- package/dist/{audit-DQ_p2Pbq.js → audit-B_HL4UJ_.js} +20 -20
- package/dist/{auth-choice-BGZsmh6a.js → auth-choice-BgCnInKE.js} +8 -8
- package/dist/{auth-choice-T77Ymi34.js → auth-choice-nKtOJ3wF.js} +1 -1
- package/dist/{auth-profiles-BVtpxYtY.js → auth-profiles-CPlXilKu.js} +9 -9
- package/dist/{auth-profiles-B6ISm3Th.js → auth-profiles-duUuQXeC.js} +3 -3
- package/dist/{auth-token-CPluo60n.js → auth-token-DTj2WrbV.js} +1 -1
- package/dist/{banner-BJHky-bq.js → banner-C2jUZyMq.js} +1 -1
- package/dist/{browser-cli-O7Ic8DI3.js → browser-cli-C-Q0t9y_.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +29 -32
- package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +28 -28
- package/dist/{call-CdXXPXpo.js → call-Du4CT1Hp.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-BrDTgiiV.js → channel-options-DBKd8H2k.js} +1 -1
- package/dist/{channel-options-C1yi5h7A.js → channel-options-DRzIcaL1.js} +1 -1
- package/dist/{channels-cli-Pxe1OINS.js → channels-cli-CdfROBlW.js} +55 -55
- package/dist/{channels-cli-BYeGzy-G.js → channels-cli-CxUB3oX1.js} +10 -10
- package/dist/{chrome-FAf5DZL2.js → chrome-CejiigNy.js} +10 -10
- package/dist/{chrome-CQnRgvJz.js → chrome-b556dOQ6.js} +7 -7
- package/dist/{chrome-NUKborg3.js → chrome-owBWinlj.js} +2 -2
- package/dist/{chunk-DX6VtywY.js → chunk-5H33X8qU.js} +1 -1
- package/dist/{cli-Dt-wfm_7.js → cli-CzEP9cIM.js} +7 -7
- package/dist/{cli-DFNOC2Ad.js → cli-DWcoPSRG.js} +43 -43
- package/dist/{client-Bs2zB0rY.js → client-ZZqt0H0-.js} +1 -1
- package/dist/{command-registry-BwbT4ll7.js → command-registry-5O5dCHsD.js} +10 -10
- package/dist/{commands-registry-C5IdtVVy.js → commands-registry-DaPrWQSe.js} +4 -4
- package/dist/{commands-registry-DYk02tmt.js → commands-registry-W2GQIywv.js} +1 -1
- package/dist/{completion-cli-DiNUqrNY.js → completion-cli-D4wYjxBG.js} +12 -12
- package/dist/{completion-cli-CyOSA5xZ.js → completion-cli-DqrFJhG4.js} +2 -2
- package/dist/{config-CW8aDVM0.js → config-CphS_6eg.js} +2 -2
- package/dist/{config-cli-DBU_S417.js → config-cli-BE2vvf40.js} +4 -4
- package/dist/{config-cli-DfG0nukz.js → config-cli-CfA5xnD-.js} +1 -1
- package/dist/{config-guard-CNmD3-IC.js → config-guard-B5BwQ-AP.js} +6 -6
- package/dist/{config-validation-Bz5CV181.js → config-validation-A2rXGvVY.js} +1 -1
- package/dist/{configure-BkH4ueot.js → configure-CPY4n9mx.js} +14 -14
- package/dist/{configure-BYu2DI_6.js → configure-DYDsHAWF.js} +2 -2
- package/dist/{consolidate-Cx7qF5Ht.js → consolidate-7Usm-b2g.js} +6 -6
- package/dist/{consolidate-dh1m3X1s.js → consolidate-C-HKdAJo.js} +2 -2
- package/dist/{control-service-Drd2sr2o.js → control-service-CMVDL3Yl.js} +4 -4
- package/dist/{control-ui-assets-D22DSxhv.js → control-ui-assets-DUhvOLUL.js} +1 -1
- package/dist/{cron-cli-BTAdnRhX.js → cron-cli-DR4W075u.js} +7 -7
- package/dist/{daemon-cli-BY9BFNuw.js → daemon-cli-B__05b-d.js} +11 -11
- package/dist/{daemon-runtime-BH3ZBZXS.js → daemon-runtime-BD-3XS8R.js} +10 -10
- package/dist/{deliver-DZ7ynJYH.js → deliver-63FtOVMC.js} +3 -3
- package/dist/{deliver-kmnOOp9j.js → deliver-BY0HHHHB.js} +16 -16
- package/dist/{deliver-CRqS1O8w.js → deliver-DcP6aVt4.js} +1 -1
- package/dist/{deliver-Dlq2X0K5.js → deliver-i5knkyHl.js} +5 -5
- package/dist/{deps-i1g0Zpz4.js → deps-DD_ZCq3v.js} +1 -1
- package/dist/{devices-cli-Cqi6L8PH.js → devices-cli-CJom2K8b.js} +6 -6
- package/dist/{diagnostic-CQLyE7_n.js → diagnostic-D7z6O7v0.js} +1 -1
- package/dist/{diagnostics-nLP2i_BY.js → diagnostics-DxdqTfpW.js} +5 -5
- package/dist/{directory-cli-B0XsBWso.js → directory-cli-BwhEj1FE.js} +3 -3
- package/dist/{dm-policy-shared-CnKffdt_.js → dm-policy-shared-C1TQOlkZ.js} +1 -1
- package/dist/{dns-cli-BHWlCG31.js → dns-cli-DzQDEQM2.js} +3 -3
- package/dist/{docs-cli-DASNErN-.js → docs-cli--T-77Ujn.js} +1 -1
- package/dist/{doctor-completion-D_cwpDAq.js → doctor-completion-C6M7eRb_.js} +2 -2
- package/dist/{doctor-completion-DqvmZZEo.js → doctor-completion-DkwAZ_yS.js} +1 -1
- package/dist/{doctor-config-flow-BvHSaiFy.js → doctor-config-flow-4UT3396o.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-CyHTywue.js → exec-approvals-cli-D-MLmhzh.js} +13 -13
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-BW7tVmn4.js → frontmatter-BzAaXBfE.js} +2 -2
- package/dist/{fs-safe-DjAKGGJ8.js → fs-safe-B6nMaZqV.js} +6 -6
- package/dist/{gateway-cli-BBqSqFGV.js → gateway-cli-Dm5RZoKM.js} +97 -117
- package/dist/{gateway-cli-BYGA5ex3.js → gateway-cli-K_XVNWQc.js} +15 -35
- package/dist/{gateway-rpc-BJF1iDnx.js → gateway-rpc-CUIXRk2t.js} +1 -1
- package/dist/{glass-ui-ws-DJnV8nJK.js → glass-ui-ws-B_7JgOGU.js} +11 -11
- package/dist/{glass-ui-ws-NJNiRFL3.js → glass-ui-ws-BbsrTxei.js} +65 -65
- package/dist/{health-D59E1VfO.js → health-BdxlhiXA.js} +4 -4
- package/dist/{hooks-cli-Bidz8ACz.js → hooks-cli-D5S_h70_.js} +57 -57
- package/dist/{hooks-cli-CyjEjDSY.js → hooks-cli-DyiztpNG.js} +8 -8
- package/dist/{image-ops-c7_of0HT.js → image-ops-C-gIIp7Q.js} +10 -10
- package/dist/index.js +50 -50
- package/dist/{inspect-op0Ov-v4.js → inspect-BDzd6yBs.js} +4 -4
- package/dist/{install-safe-path-B73BkVO3.js → install-safe-path-CQXx3s9R.js} +11 -11
- package/dist/{installs-ZXEjR9Sp.js → installs-CLp95gcX.js} +10 -10
- package/dist/{internal-C3o_xyzP.js → internal-CHnZdvRy.js} +9 -9
- package/dist/{lifecycle-core-zhQYm_ni.js → lifecycle-core-_BlNODTH.js} +5 -5
- package/dist/llm-slug-generator.js +28 -28
- package/dist/{local-roots-CTriU02e.js → local-roots-JhQs5w0I.js} +1 -1
- package/dist/{local-roots-Dm8-ErgQ.js → local-roots-WWcVq0Ma.js} +3 -3
- package/dist/{logs-cli-B7RJ57Dc.js → logs-cli-BEWOyW5R.js} +7 -7
- package/dist/{manager-Dsdh0rGn.js → manager-BT2SbOdg.js} +6 -6
- package/dist/{manager-9dNT9kNF.js → manager-BTtaJXdu.js} +14 -14
- package/dist/{manager-CpBl-VGg.js → manager-TrK63P2M.js} +1 -1
- package/dist/{manager-t4GthPGw.js → manager-ue49bRVP.js} +1 -1
- package/dist/{manifest-registry-B2vClvK5.js → manifest-registry-DsTUFMvZ.js} +1 -1
- package/dist/{markdown-tables-BaWa2kOe.js → markdown-tables-ptfgMe6b.js} +1 -1
- package/dist/{memory-DcWXMzOH.js → memory-Czxk_hJw.js} +5 -5
- package/dist/{memory-B7TJXpqS.js → memory-DJN1Q1jq.js} +2 -2
- package/dist/{memory-cli-xBZPEOeL.js → memory-cli-B-nQp5HP.js} +12 -12
- package/dist/{memory-cli-C0WA_nRS.js → memory-cli-C9ZqpaaB.js} +2 -2
- package/dist/{model-BXWgh5eZ.js → model-BKtw-Bqs.js} +1 -1
- package/dist/{model-catalog-BGVslwAT.js → model-catalog-DKBhNiWm.js} +4 -4
- package/dist/{model-picker-aTfyp_mP.js → model-picker-DKzvan7c.js} +3 -3
- package/dist/{models-cli-DiB4JqF2.js → models-cli-CuHQFbs7.js} +9 -9
- package/dist/{models-cli-h8h_qu3F.js → models-cli-D8rsqzuW.js} +53 -53
- package/dist/{models-config-DRgHv7Ss.js → models-config-CFUwiu4W.js} +7 -7
- package/dist/{models-IfAFy9bK.js → models-oqT-RVMM.js} +2 -2
- package/dist/{node-cli-BPkbqgRt.js → node-cli-CgWAxe-K.js} +27 -27
- package/dist/{node-service-DuN9eBL6.js → node-service-tPO_yUk7.js} +1 -1
- package/dist/{nodes-cli-C09c6nCf.js → nodes-cli-CprJ5K63.js} +10 -10
- package/dist/{nodes-screen-CT94yu_w.js → nodes-screen-JELuBMBi.js} +4 -4
- package/dist/{npm-registry-spec-B8X06AqB.js → npm-registry-spec-BXw_6vF6.js} +9 -9
- package/dist/{onboard-sMgEOBjV.js → onboard-BICXrIV1.js} +13 -13
- package/dist/{onboard-iL7Z0wKJ.js → onboard-D-xPcbdk.js} +1 -1
- package/dist/{onboard-channels-Deq8QGnM.js → onboard-channels-CiLPgwMl.js} +4 -4
- package/dist/{onboard-channels-BfzW-9vo.js → onboard-channels-IZ52XV8A.js} +1 -1
- package/dist/{onboard-custom-DEdRdzNq.js → onboard-custom-Cla8O-Tv.js} +3 -3
- package/dist/{onboard-helpers-DZKHFY2J.js → onboard-helpers-D2mWJnFB.js} +8 -8
- package/dist/{onboard-hooks-DZZM8goM.js → onboard-hooks-DZD-nGLB.js} +1 -1
- package/dist/{onboard-remote-dn4L5WdE.js → onboard-remote-Bi2BNRnh.js} +1 -1
- package/dist/{onboard-skills-DGHye9Q3.js → onboard-skills-C0XDXvWw.js} +4 -4
- package/dist/{onboarding-70YKbZi6.js → onboarding-B-jxZvC2.js} +3 -3
- package/dist/{onboarding-BjXYbWlg.js → onboarding-BmB9v20h.js} +12 -12
- package/dist/{onboarding.finalize-dU_CtL43.js → onboarding.finalize-BejpUEVe.js} +31 -31
- package/dist/{onboarding.finalize-Ch3V08eY.js → onboarding.finalize-DufFKTf4.js} +4 -4
- package/dist/{onboarding.gateway-config-DfF8Rxvn.js → onboarding.gateway-config-BmaAH8uo.js} +8 -8
- package/dist/{openai-model-default-D1NFHFF_.js → openai-model-default-BeRT9S75.js} +2 -2
- package/dist/{pairing-cli-CJv8LQfb.js → pairing-cli-DdtW6Nu-.js} +4 -4
- package/dist/{pairing-store-CxT0UGxd.js → pairing-store-mmeniyUt.js} +1 -1
- package/dist/{pairing-token-DorpwP8O.js → pairing-token-CURbSHdi.js} +7 -7
- package/dist/{paths-DaQrPPet.js → paths-Dc6A9_vI.js} +1 -1
- package/dist/{pi-auth-json-DGZH6URT.js → pi-auth-json-1Z1j1PDI.js} +5 -5
- package/dist/{pi-auth-json-BzuhVcKu.js → pi-auth-json-D4Bl4hBw.js} +1 -1
- package/dist/{pi-embedded-DOCVZrmx.js → pi-embedded-DoWU3tbW.js} +17 -190
- package/dist/{pi-embedded-helpers-Be-EeyzH.js → pi-embedded-helpers-BRM8EM4P.js} +6 -6
- package/dist/{pi-tools.policy-qwS9SXOa.js → pi-tools.policy-BBHbN8Nh.js} +3 -3
- package/dist/{plugin-auto-enable-zDUaiaf2.js → plugin-auto-enable-BCwyDNSP.js} +1 -1
- package/dist/{plugin-registry-BgGVB3kW.js → plugin-registry-BybhOEu2.js} +3 -3
- package/dist/{plugin-registry-CP2mbhwk.js → plugin-registry-CFRFz2CF.js} +1 -1
- package/dist/plugin-sdk/agents/pi-embedded-runner/system-prompt.d.ts +0 -2
- package/dist/plugin-sdk/agents/system-prompt.d.ts +1 -2
- package/dist/plugin-sdk/auto-reply/reply/middleware-transcript-update.d.ts +1 -8
- package/dist/plugin-sdk/auto-reply/reply/normalize-reply.d.ts +1 -3
- package/dist/plugin-sdk/auto-reply/reply/reply-dispatcher.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/tokens.d.ts +0 -3
- package/dist/plugin-sdk/gateway/outbound-filter.d.ts +2 -4
- package/dist/plugin-sdk/index.js +6 -6
- package/dist/{plugins-yymezpEd.js → plugins-CcVzjOo_.js} +1 -1
- package/dist/{plugins-cli-1wkCRsFe.js → plugins-cli-D9jv4SGt.js} +8 -8
- package/dist/{plugins-cli-B_Gtx3LU.js → plugins-cli-Dw_F4XTt.js} +52 -52
- package/dist/{ports-ChuJYhEL.js → ports-DRHSHvqY.js} +1 -1
- package/dist/{ports-EAVAOFyK.js → ports-DqxP-bXz.js} +2 -2
- package/dist/{program-UyCr49qs.js → program-BijlJds3.js} +13 -13
- package/dist/{program-context-C7uCS8z7.js → program-context-f_krhr6H.js} +38 -38
- package/dist/{prompt-select-styled-DcMra8CK.js → prompt-select-styled-D4Dl6PAx.js} +36 -36
- package/dist/{prompt-select-styled-BRcRFLzB.js → prompt-select-styled-wUs9hOXT.js} +4 -4
- package/dist/{provider-auth-helpers-BJTb9xI0.js → provider-auth-helpers-B0LgxUJm.js} +1 -1
- package/dist/{provider-auth-helpers-Xn1TAPPY.js → provider-auth-helpers-Dqg9CSy6.js} +5 -5
- package/dist/{push-apns-Bfqnchj6.js → push-apns-C8U43QIp.js} +1 -1
- package/dist/{push-apns-Aaqf9WKI.js → push-apns-DBG95KxK.js} +4 -4
- package/dist/{pw-ai-B3qisJP1.js → pw-ai-BFZrohva.js} +1 -1
- package/dist/{pw-ai-DJrnU1ja.js → pw-ai-BHSw4eGG.js} +8 -8
- package/dist/{pw-ai-C-ddUgTA.js → pw-ai-BW5obXRK.js} +7 -7
- package/dist/{qmd-manager-D5kqCz-Y.js → qmd-manager-C-J9Sfjk.js} +19 -19
- package/dist/{qmd-manager-DrM6m9z1.js → qmd-manager-CTHJcHPq.js} +5 -5
- package/dist/{qr-cli-B_mw4i0R.js → qr-cli-BIdgVMK1.js} +3 -3
- package/dist/{register.agent-BqKNzdaW.js → register.agent-B0UZREcL.js} +65 -65
- package/dist/{register.agent-vAJ0_4m0.js → register.agent-BQa36aBT.js} +12 -12
- package/dist/{register.configure-7TmTqCgU.js → register.configure-C2da871z.js} +68 -68
- package/dist/{register.configure-BzgavjpU.js → register.configure-DXxKMVFv.js} +11 -11
- package/dist/{register.maintenance-6Wz4HXlm.js → register.maintenance-CU2sJOVr.js} +65 -65
- package/dist/{register.maintenance-BJO0RCk9.js → register.maintenance-DUuHNER1.js} +12 -12
- package/dist/{register.message-XYivyrQJ.js → register.message-DIDXm7JJ.js} +45 -45
- package/dist/{register.message-CW9PahRi.js → register.message-zAQ9mzwS.js} +8 -8
- package/dist/{register.onboard-BgwkmP4D.js → register.onboard-BQrBlJMk.js} +22 -22
- package/dist/{register.onboard-MWRC29wD.js → register.onboard-xApCQkav.js} +2 -2
- package/dist/{register.setup-7OoAqQG_.js → register.setup-C3DgnQee.js} +25 -25
- package/dist/{register.setup-V-arsKvb.js → register.setup-CfJlyVIU.js} +2 -2
- package/dist/{register.status-health-sessions-Bgg1sdY_.js → register.status-health-sessions-CZKtQH3R.js} +38 -38
- package/dist/{register.status-health-sessions-1VnuXhGM.js → register.status-health-sessions-D7eQHV4A.js} +3 -3
- package/dist/{register.subclis-DpPYIqkP.js → register.subclis-DBKLQ-vk.js} +9 -9
- package/dist/{registry-9AaJQms1.js → registry-C-JddWwo.js} +2 -2
- package/dist/{replies-CgVOirGF.js → replies-BOy28KVL.js} +1 -1
- package/dist/{replies-pnMj7AtP.js → replies-BeK3uuQ8.js} +1 -1
- package/dist/{replies-BZN1LuJP.js → replies-C82xaXm3.js} +3 -3
- package/dist/{replies-Dqft-42v.js → replies-P7jbK6Bo.js} +2 -2
- package/dist/{reply-prefix-DkDTGwTs.js → reply-prefix-ChIeKp-P.js} +1 -1
- package/dist/{reply-prefix-CyLplifX.js → reply-prefix-xaWqfM9m.js} +1 -1
- package/dist/{resolve-route-CIA0TSsF.js → resolve-route-CIS2tjpz.js} +3 -3
- package/dist/{resolve-route-xpyI3enn.js → resolve-route-DKhx5C-P.js} +1 -1
- package/dist/{routes-xZZ99jJJ.js → routes-BJ2iXVJF.js} +10 -10
- package/dist/{rpc-BzR2wLkc.js → rpc-CSI4uFgj.js} +1 -1
- package/dist/{run-main-n0fjk-o5.js → run-main-C_9MD69x.js} +20 -20
- package/dist/{sandbox-DGG12SGo.js → sandbox-CQU7Gcb9.js} +18 -18
- package/dist/{sandbox-cli--d2MJPM2.js → sandbox-cli-Ci90LP_X.js} +13 -13
- package/dist/{security-cli-CeP9ss1g.js → security-cli-BfOZ_cJN.js} +28 -28
- package/dist/{send-BzUWmgQ9.js → send-BAKkoPOy.js} +7 -7
- package/dist/{send-BQJKg0bU.js → send-DulXmWcG.js} +7 -7
- package/dist/{server-context-BNbx1tUD.js → server-context-BsMQBnUG.js} +5 -5
- package/dist/{server-methods-BHg4GltA.js → server-methods-B4kcazJq.js} +57 -57
- package/dist/{server-methods-DkZ2XtEo.js → server-methods-BLH71I9g.js} +7 -7
- package/dist/{server-node-events-6dZ22EGj.js → server-node-events-BercSdmp.js} +46 -46
- package/dist/{server-node-events-BXviL2UH.js → server-node-events-DO4ug_A0.js} +9 -9
- package/dist/{service-9ItKCWWS.js → service-AP9pR9R5.js} +15 -15
- package/dist/{session-dirs-B6PWqKEf.js → session-dirs-Chh7bBGo.js} +2 -2
- package/dist/{session-utils-BVC8mmBv.js → session-utils-0F9pB5d6.js} +12 -12
- package/dist/{sessions-BaFVKzC2.js → sessions-DQMaURzb.js} +11 -11
- package/dist/{shared-DUmy8R4n.js → shared-4Z8Ut8Cs.js} +3 -3
- package/dist/{shared-ot5_jkpP.js → shared-DmYHvtn2.js} +1 -1
- package/dist/{skill-commands-DaNhP2Jb.js → skill-commands-Cwrebyvj.js} +5 -5
- package/dist/{skill-commands-X3T9Y9lT.js → skill-commands-DP1fshwh.js} +4 -4
- package/dist/{skill-scanner-DVq7ZopF.js → skill-scanner-qMQf6-FN.js} +5 -5
- package/dist/{skills-BMTJ2Tiq.js → skills-D0k4o0Ez.js} +6 -6
- package/dist/{skills-C_KgxpBD.js → skills-DL8DjveU.js} +4 -4
- package/dist/{skills-cli-DwYoPwkG.js → skills-cli-BkIH3HKr.js} +7 -7
- package/dist/{skills-install-U4FmCP8u.js → skills-install-C9uT4MR2.js} +3 -3
- package/dist/{skills-remote-C0gcKYWX.js → skills-remote-Db5Wwr4s.js} +3 -3
- package/dist/{skills-status-CdfQvU1h.js → skills-status-Dx3Lf5iU.js} +1 -1
- package/dist/{sqlite-C6MZhX4c.js → sqlite--aBEq1-J.js} +1 -1
- package/dist/{sqlite-BUXBg2yu.js → sqlite-DBEvS-Ne.js} +5 -5
- package/dist/{ssrf-BvjSIOlZ.js → ssrf-Dcgaqg3U.js} +9 -9
- package/dist/{status-BAnT_4qI.js → status-3CIcz22o.js} +3 -3
- package/dist/{status-J_gR_zbh.js → status-BdrH4P1l.js} +1 -1
- package/dist/{status-BK-ZK7SP.js → status-DA_sl7Yp.js} +23 -23
- package/dist/{status-CmoBgZ99.js → status-uVc7h7PN.js} +1 -1
- package/dist/{status.update-Cvj7y384.js → status.update-CQ1vKrEg.js} +3 -3
- package/dist/{subagent-registry-CWolsN8K.js → subagent-registry-CgZDo35C.js} +15 -192
- package/dist/{subsystem-DhOo2FZn.js → subsystem-DzRUKS9f.js} +1 -1
- package/dist/{symi-root-0MUhiNlM.js → symi-root-DueRHNOE.js} +2 -2
- package/dist/{synthesis-D3wZX5g3.js → synthesis-B_K7BSX3.js} +28 -28
- package/dist/{synthesis-DTZGPpj5.js → synthesis-DmdaBp-J.js} +6 -6
- package/dist/{synthesis-BSKiS446.js → synthesis-DwfzSD3_.js} +7 -7
- package/dist/{synthesis-CRQp5mTx.js → synthesis-w1oM0_-6.js} +43 -43
- package/dist/{system-cli-CUGyogmP.js → system-cli-5_JOcUt0.js} +7 -7
- package/dist/{systemd-8KKQdTO_.js → systemd-9LEEqibe.js} +5 -5
- package/dist/{systemd-hints-_ghBqtKo.js → systemd-hints-CeavseQh.js} +6 -6
- package/dist/{systemd-linger-CnKJZBUr.js → systemd-linger-PqG8iGCt.js} +1 -1
- package/dist/{thinking-BYtE7_UC.js → thinking-CMIo8E_E.js} +2 -2
- package/dist/{tokens-wW7opugV.js → tokens-BBh6tlmO.js} +2 -5
- package/dist/{tokens-DvvjOTxN.js → tokens-BKbemuIk.js} +1 -4
- package/dist/{tokens-CGqnWNmv.js → tokens-CJgPtOxz.js} +1 -4
- package/dist/{tokens-DJQ4rO24.js → tokens-K3kGchJA.js} +1 -4
- package/dist/{tool-loop-detection-DyZ0TWGh.js → tool-loop-detection-BR52lwOt.js} +2 -2
- package/dist/{tui-fKWqWqeq.js → tui-Bnusp3Vd.js} +7 -7
- package/dist/{tui-cli-BPOcMJ-f.js → tui-cli-BY8W9Yjm.js} +19 -19
- package/dist/{unified-runner-DftrstdI.js → unified-runner-BPgxfuKU.js} +52 -225
- package/dist/{unified-runner-Cdj1nLUh.js → unified-runner-DzycRpag.js} +106 -283
- package/dist/{update-XJWQZpV7.js → update-BvDXKE6K.js} +3 -3
- package/dist/{update-check-BdSIMYWq.js → update-check-CZxZhEXr.js} +5 -5
- package/dist/{update-cli-jQo-vg6S.js → update-cli-C4I2k2u9.js} +12 -12
- package/dist/{update-cli-D_MLjj6j.js → update-cli-DYYKfrbM.js} +75 -75
- package/dist/{update-runner-D_UHlPN0.js → update-runner-C8L4XRQb.js} +15 -15
- package/dist/{webhooks-cli-DgRLVVrD.js → webhooks-cli-CXbv4eB6.js} +4 -4
- package/dist/{with-timeout-DwVWQ2sN.js → with-timeout-C0UtpXBj.js} +1 -1
- package/dist/{workspace-OBnI5mKu.js → workspace-CsaDUuDn.js} +2 -2
- package/dist/{workspace-dirs-DStsDXra.js → workspace-dirs-gn_0yzFP.js} +1 -1
- package/dist/{wsl-DO9usEVV.js → wsl-ZWGwnnKI.js} +2 -2
- package/package.json +1 -1
- package/dist/plugin-sdk/auto-reply/heartbeat.d.ts +0 -26
- package/dist/plugin-sdk/auto-reply/reply/middleware-heartbeat-strip.d.ts +0 -25
|
@@ -2,30 +2,30 @@ import { A as isRich, j as theme } from "./registry-DKJLAPDB.js";
|
|
|
2
2
|
import "./paths-BSzKwaxE.js";
|
|
3
3
|
import "./utils-BU8jVQFM.js";
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-CPlXilKu.js";
|
|
6
6
|
import "./exec-DKyLtSjm.js";
|
|
7
|
-
import "./agent-scope-
|
|
7
|
+
import "./agent-scope-B_oqIiaD.js";
|
|
8
8
|
import "./github-copilot-token-BTNK6Tcd.js";
|
|
9
9
|
import "./boolean-Wzu0-e0P.js";
|
|
10
10
|
import "./env-B97Ms861.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-CphS_6eg.js";
|
|
12
12
|
import "./manifest-registry-D7Qup2Vq.js";
|
|
13
13
|
import "./message-channel-C_V8IAYx.js";
|
|
14
|
-
import "./client-
|
|
15
|
-
import "./call-
|
|
16
|
-
import "./pairing-token-
|
|
14
|
+
import "./client-ZZqt0H0-.js";
|
|
15
|
+
import "./call-Du4CT1Hp.js";
|
|
16
|
+
import "./pairing-token-CURbSHdi.js";
|
|
17
17
|
import { n as formatTimeAgo } from "./format-relative-Vm-Tqk0h.js";
|
|
18
18
|
import { c as readExecApprovalsSnapshot, p as saveExecApprovals } from "./exec-approvals-CZOc8M5w.js";
|
|
19
19
|
import { t as formatDocsLink } from "./links-CSaUKNKm.js";
|
|
20
20
|
import "./progress-CyPyGCDn.js";
|
|
21
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
22
|
-
import "./systemd-
|
|
23
|
-
import "./service-
|
|
21
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-CUIXRk2t.js";
|
|
22
|
+
import "./systemd-9LEEqibe.js";
|
|
23
|
+
import "./service-AP9pR9R5.js";
|
|
24
24
|
import { t as renderTable } from "./table-DkAQzCOR.js";
|
|
25
|
-
import { t as describeUnknownError } from "./shared-
|
|
26
|
-
import { i as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
25
|
+
import { t as describeUnknownError } from "./shared-DmYHvtn2.js";
|
|
26
|
+
import { i as resolveNodeId, r as nodesCallOpts } from "./rpc-CSI4uFgj.js";
|
|
27
27
|
import JSON5 from "json5";
|
|
28
|
-
import
|
|
28
|
+
import fs from "node:fs/promises";
|
|
29
29
|
|
|
30
30
|
//#region src/cli/exec-approvals-cli.ts
|
|
31
31
|
async function readStdin() {
|
|
@@ -315,7 +315,7 @@ function registerExecApprovalsCli(program) {
|
|
|
315
315
|
if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
|
|
316
316
|
if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
|
|
317
317
|
const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
|
|
318
|
-
const raw = opts.stdin ? await readStdin() : await
|
|
318
|
+
const raw = opts.stdin ? await readStdin() : await fs.readFile(String(opts.file), "utf8");
|
|
319
319
|
let file;
|
|
320
320
|
try {
|
|
321
321
|
file = JSON5.parse(raw);
|
package/dist/extensionAPI.js
CHANGED
|
@@ -6,22 +6,22 @@ import { nt as DEFAULT_MODEL, p as resolveThinkingDefault, rt as DEFAULT_PROVIDE
|
|
|
6
6
|
import { a as resolveAgentIdentity } from "./reply-prefix-BqgLflxO.js";
|
|
7
7
|
import "./github-copilot-token-BbsJ0Qbo.js";
|
|
8
8
|
import "./plugins-Cp39v6b_.js";
|
|
9
|
-
import "./replies-
|
|
10
|
-
import { a as resolveAgentTimeoutMs, r as runEmbeddedPiAgent } from "./pi-embedded-
|
|
11
|
-
import { $ as loadSessionStore, nt as saveSessionStore } from "./deliver-
|
|
9
|
+
import "./replies-BeK3uuQ8.js";
|
|
10
|
+
import { a as resolveAgentTimeoutMs, r as runEmbeddedPiAgent } from "./pi-embedded-DoWU3tbW.js";
|
|
11
|
+
import { $ as loadSessionStore, nt as saveSessionStore } from "./deliver-i5knkyHl.js";
|
|
12
12
|
import "./diagnostic-BvZmqxYI.js";
|
|
13
13
|
import "./diagnostic-session-state-CWtaDOiK.js";
|
|
14
14
|
import "./chunk-BjnT3w_x.js";
|
|
15
15
|
import "./ssrf-BJZIZ4yo.js";
|
|
16
16
|
import "./manifest-registry-BV_2TbGz.js";
|
|
17
|
-
import "./chrome-
|
|
17
|
+
import "./chrome-b556dOQ6.js";
|
|
18
18
|
import "./skills-xmXjOnAV.js";
|
|
19
19
|
import "./redact-ojHFHOAb.js";
|
|
20
20
|
import "./errors-C6sHIFo_.js";
|
|
21
|
-
import "./tokens-
|
|
21
|
+
import "./tokens-CJgPtOxz.js";
|
|
22
22
|
import "./thinking-BKsvyjWX.js";
|
|
23
23
|
import { n as resolveSessionFilePath, s as resolveStorePath } from "./paths-N698mtPE.js";
|
|
24
|
-
import "./manager-
|
|
24
|
+
import "./manager-ue49bRVP.js";
|
|
25
25
|
import "./sqlite-jFnvSfLz.js";
|
|
26
26
|
import "./markdown-tables-BtWlyyt1.js";
|
|
27
27
|
import "./commands-registry-BO62ZyK2.js";
|
|
@@ -2,7 +2,7 @@ import { t as parseBooleanValue } from "./boolean-mcn6kL0s.js";
|
|
|
2
2
|
import { n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-sghWmXe3.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
|
-
import
|
|
5
|
+
import JSON5 from "json5";
|
|
6
6
|
import YAML from "yaml";
|
|
7
7
|
|
|
8
8
|
//#region src/shared/config-eval.ts
|
|
@@ -210,7 +210,7 @@ function resolveSymiManifestBlock(params) {
|
|
|
210
210
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
211
211
|
if (!raw) return;
|
|
212
212
|
try {
|
|
213
|
-
const parsed =
|
|
213
|
+
const parsed = JSON5.parse(raw);
|
|
214
214
|
if (!parsed || typeof parsed !== "object") return;
|
|
215
215
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
216
216
|
for (const key of manifestKeys) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
|
-
import
|
|
3
|
+
import fs$1 from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/fs-safe.ts
|
|
6
6
|
var SafeOpenError = class extends Error {
|
|
@@ -20,19 +20,19 @@ const isSymlinkOpenError = (err) => isNodeError(err) && (err.code === "ELOOP" ||
|
|
|
20
20
|
async function openVerifiedLocalFile(filePath) {
|
|
21
21
|
let handle;
|
|
22
22
|
try {
|
|
23
|
-
handle = await
|
|
23
|
+
handle = await fs$1.open(filePath, OPEN_READ_FLAGS);
|
|
24
24
|
} catch (err) {
|
|
25
25
|
if (isNotFoundError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
26
26
|
if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
|
|
27
27
|
throw err;
|
|
28
28
|
}
|
|
29
29
|
try {
|
|
30
|
-
const [stat, lstat] = await Promise.all([handle.stat(),
|
|
30
|
+
const [stat, lstat] = await Promise.all([handle.stat(), fs$1.lstat(filePath)]);
|
|
31
31
|
if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
|
|
32
32
|
if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
|
|
33
33
|
if (stat.ino !== lstat.ino || stat.dev !== lstat.dev) throw new SafeOpenError("path-mismatch", "path changed during read");
|
|
34
|
-
const realPath = await
|
|
35
|
-
const realStat = await
|
|
34
|
+
const realPath = await fs$1.realpath(filePath);
|
|
35
|
+
const realStat = await fs$1.stat(realPath);
|
|
36
36
|
if (stat.ino !== realStat.ino || stat.dev !== realStat.dev) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
37
37
|
return {
|
|
38
38
|
handle,
|
|
@@ -49,7 +49,7 @@ async function openVerifiedLocalFile(filePath) {
|
|
|
49
49
|
async function openFileWithinRoot(params) {
|
|
50
50
|
let rootReal;
|
|
51
51
|
try {
|
|
52
|
-
rootReal = await
|
|
52
|
+
rootReal = await fs$1.realpath(params.rootDir);
|
|
53
53
|
} catch (err) {
|
|
54
54
|
if (isNotFoundError(err)) throw new SafeOpenError("not-found", "root dir not found");
|
|
55
55
|
throw err;
|
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
import { $t as
|
|
1
|
+
import { $t as getAgentRunContext, B as normalizeOptionalText, Bt as countActiveRunsForSession, Cn as classifyOutboundMessage, Ct as DEFAULT_INPUT_IMAGE_MIMES, D as resolveOutboundSessionRoute, Dt as extractImageContentFromSource, En as runWithModelFallback, Et as extractFileContentFromSource, G as hasLegacyDeliveryHints, Gt as resolveAgentTimeoutMs, H as normalizeRequiredName, Ht as listDescendantRunsForRequester, K as stripLegacyDeliveryFields, Kt as runSubagentAnnounceFlow, L as inferLegacyName, M as resetDirectoryCache, O as resolveOutboundTarget, Ot as normalizeMimeList, P as normalizeHttpWebhookUrl, Q as isExternalHookSession, Qt as emitAgentEvent, R as normalizeOptionalAgentId, S as createSymiTools, Sn as CommandLane, St as DEFAULT_INPUT_IMAGE_MAX_BYTES, Tt as DEFAULT_INPUT_TIMEOUT_MS, U as migrateLegacyCronPayload, V as normalizePayloadToSystemText, Vt as initSubagentRegistry, W as buildDeliveryFromLegacyPayload, X as detectSuspiciousPatterns, Y as buildSafeExternalPrompt, Z as getHookType, Zt as clearAgentRunContext, _n as getActiveTaskCount, a as getPluginToolMeta, at as markGatewaySigusr1RestartHandled, bn as setCommandLaneConcurrency, c as handleSlackHttpRequest, cn as ToolInputError, ct as setPreRestartDeferralCheck, d as buildHistoryContextFromEntries, dn as resolveUserTimeFormat, en as onAgentEvent, fn as resolveUserTimezone, h as getTotalPendingReplies, in as getActiveEmbeddedRunCount, it as isGatewaySigusr1RestartExternallyAllowed, k as resolveSessionDeliveryTarget, kt as resolveInputFileLimits, l as readJsonBodyWithLimit, n as applyToolPolicyPipeline, nt as deferGatewayRestartUntilIdle, qt as readLatestAssistantReply, r as buildDefaultToolPolicyPipelineSteps, rt as emitGatewayRestart, s as loadSymiPlugins, sn as registerUnhandledRejectionHandler, st as setGatewaySigusr1RestartPolicy, t as runAgentTurn, tn as registerAgentRunContext, tt as consumeGatewaySigusr1RestartAuthorization, u as requestBodyErrorToText, un as formatUserTime, vn as getTotalQueueSize, w as resolveAnnounceTargetFromKey, wn as resolveModelProfile, wt as DEFAULT_INPUT_MAX_REDIRECTS, xn as waitForActiveTasks, yn as resetAllLanes, z as normalizeOptionalSessionKey, zt as countActiveDescendantRuns } from "./unified-runner-DzycRpag.js";
|
|
2
2
|
import { A as isRich, E as setVerbose, H as createInternalHookEvent, M as getChildLogger, N as getLogger, P as getResolvedLoggerSettings, U as registerInternalHook, V as clearInternalHooks, W as triggerInternalHook, j as theme, k as colorize, m as createEmptyPluginRegistry, r as DEFAULT_CHAT_CHANNEL } from "./registry-DKJLAPDB.js";
|
|
3
3
|
import { _ as expandHomePrefix, g as resolveStateDir, i as isNixMode, l as resolveGatewayLockDir, o as resolveConfigPath, r as STATE_DIR, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-BSzKwaxE.js";
|
|
4
4
|
import { h as resolveUserPath, s as ensureDir, t as CONFIG_DIR, v as shortenHomePath, x as truncateUtf16Safe } from "./utils-BU8jVQFM.js";
|
|
5
5
|
import { a as setConsoleSubsystemFilter, f as defaultRuntime, n as runtimeForLogger, o as setConsoleTimestampPrefix, t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
6
|
-
import { Ht as DEFAULT_MODEL, N as getModelRefStatus, O as isPidAlive, P as isCliProvider, U as resolveHooksGmailModel, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, Vt as DEFAULT_CONTEXT_TOKENS, q as resolveThinkingDefault, z as resolveAllowedModelRef } from "./auth-profiles-
|
|
6
|
+
import { Ht as DEFAULT_MODEL, N as getModelRefStatus, O as isPidAlive, P as isCliProvider, U as resolveHooksGmailModel, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, Vt as DEFAULT_CONTEXT_TOKENS, q as resolveThinkingDefault, z as resolveAllowedModelRef } from "./auth-profiles-CPlXilKu.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
8
8
|
import { b as isSubagentSessionKey, c as resolveAgentIdFromSessionKey, d as toAgentRequestSessionKey, f as toAgentStoreSessionKey, o as normalizeAgentId, p as DEFAULT_ACCOUNT_ID, r as buildAgentMainSessionKey, s as normalizeMainKey, t as DEFAULT_AGENT_ID, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-B_ZVH1kE.js";
|
|
9
|
-
import { r as matchesSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-
|
|
9
|
+
import { r as matchesSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-DueRHNOE.js";
|
|
10
10
|
import { i as logDebug, n as runExec, s as logWarn, t as runCommandWithTimeout } from "./exec-DKyLtSjm.js";
|
|
11
|
-
import { C as ensureAgentWorkspace, D as resolveDefaultAgentWorkspaceDir, O as resolveWorkspaceTemplateDir, a as resolveAgentModelFallbacksOverride, c as resolveAgentWorkspaceDir, d as resolveSessionAgentId, i as resolveAgentDir, l as resolveDefaultAgentId, n as listAgentIds, r as resolveAgentConfig, s as resolveAgentSkillsFilter } from "./agent-scope-
|
|
11
|
+
import { C as ensureAgentWorkspace, D as resolveDefaultAgentWorkspaceDir, O as resolveWorkspaceTemplateDir, a as resolveAgentModelFallbacksOverride, c as resolveAgentWorkspaceDir, d as resolveSessionAgentId, i as resolveAgentDir, l as resolveDefaultAgentId, n as listAgentIds, r as resolveAgentConfig, s as resolveAgentSkillsFilter } from "./agent-scope-B_oqIiaD.js";
|
|
12
12
|
import "./github-copilot-token-BTNK6Tcd.js";
|
|
13
13
|
import "./boolean-Wzu0-e0P.js";
|
|
14
14
|
import { n as logAcceptedEnvOption, t as isTruthyEnvValue } from "./env-B97Ms861.js";
|
|
15
|
-
import "./pi-embedded-helpers-
|
|
16
|
-
import { M as resolveSubagentMaxConcurrent, N as VERSION, P as resolveRuntimeServiceVersion, i as loadConfig, j as resolveAgentMaxConcurrent, l as writeConfigFile, m as parseDurationMs, n as migrateLegacyConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-
|
|
15
|
+
import "./pi-embedded-helpers-BRM8EM4P.js";
|
|
16
|
+
import { M as resolveSubagentMaxConcurrent, N as VERSION, P as resolveRuntimeServiceVersion, i as loadConfig, j as resolveAgentMaxConcurrent, l as writeConfigFile, m as parseDurationMs, n as migrateLegacyConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-CphS_6eg.js";
|
|
17
17
|
import { l as isTestDefaultMemorySlotDisabled } from "./manifest-registry-D7Qup2Vq.js";
|
|
18
18
|
import { a as isPathInsideWithRealpath } from "./legacy-names-C0hZiM-7.js";
|
|
19
|
-
import { S as resolveToolProfilePolicy, _ as collectExplicitAllowlist, b as mergeAlsoAllowPolicy } from "./sandbox-
|
|
20
|
-
import "./chrome-
|
|
19
|
+
import { S as resolveToolProfilePolicy, _ as collectExplicitAllowlist, b as mergeAlsoAllowPolicy } from "./sandbox-CQU7Gcb9.js";
|
|
20
|
+
import "./chrome-owBWinlj.js";
|
|
21
21
|
import { i as enableTailscaleServe, n as disableTailscaleServe, o as getTailnetHostname, r as enableTailscaleFunnel, t as disableTailscaleFunnel } from "./tailscale-D7dC-5EX.js";
|
|
22
22
|
import { t as safeEqualSecret } from "./secret-equal-D1BCVB1D.js";
|
|
23
23
|
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-LYvn9g3I.js";
|
|
24
24
|
import { a as isTrustedProxyAddress, d as resolveGatewayListenHosts, f as resolveHostName, l as resolveClientIp, n as isLoopbackAddress, o as isValidIPv4, r as isLoopbackHost, s as normalizeHostHeader, t as rawDataToString, u as resolveGatewayBindHost } from "./ws-CahTJvD6.js";
|
|
25
25
|
import { a as resolveGatewayAuth, c as createAuthRateLimiter, i as isLocalDirectRequest, n as authorizeHttpGatewayConnect, o as AUTH_RATE_LIMIT_SCOPE_DEVICE_TOKEN, r as authorizeWsControlUiGatewayConnect, s as AUTH_RATE_LIMIT_SCOPE_SHARED_SECRET, t as assertGatewayAuthConfigured } from "./auth-BbwD4lRX.js";
|
|
26
|
-
import { g as mergeGatewayTailscaleConfig, h as ensureGatewayStartupAuth } from "./server-context-
|
|
26
|
+
import { g as mergeGatewayTailscaleConfig, h as ensureGatewayStartupAuth } from "./server-context-BsMQBnUG.js";
|
|
27
27
|
import { d as hasBinary } from "./frontmatter-B6IdJ7UK.js";
|
|
28
|
-
import { r as buildWorkspaceSkillSnapshot } from "./skills-
|
|
29
|
-
import "./routes-
|
|
28
|
+
import { r as buildWorkspaceSkillSnapshot } from "./skills-DL8DjveU.js";
|
|
29
|
+
import "./routes-BJ2iXVJF.js";
|
|
30
30
|
import "./redact-CSc_2Nka.js";
|
|
31
31
|
import { a as isErrno, n as formatErrorMessage } from "./errors-Z-WkF18Q.js";
|
|
32
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
33
|
-
import "./paths-
|
|
32
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-B6nMaZqV.js";
|
|
33
|
+
import "./paths-Dc6A9_vI.js";
|
|
34
34
|
import { t as SsrFBlockedError } from "./ssrf-CC9kEPCT.js";
|
|
35
|
-
import { c as detectMime } from "./image-ops-
|
|
36
|
-
import { a as inspectPortUsage, r as ensurePortAvailable, s as formatPortDiagnostics } from "./ports-
|
|
35
|
+
import { c as detectMime } from "./image-ops-C-gIIp7Q.js";
|
|
36
|
+
import { a as inspectPortUsage, r as ensurePortAvailable, s as formatPortDiagnostics } from "./ports-DqxP-bXz.js";
|
|
37
37
|
import "./trash-BjVrPcAx.js";
|
|
38
|
-
import { B as resolveAgentMainSessionKey, H as resolveMainSessionKey, M as evaluateSessionFreshness, P as resolveSessionResetPolicy, U as resolveMainSessionKeyFromConfig, Y as cleanStaleLockFiles, _ as mergeDeliveryContext, d as updateSessionStore, h as deliveryContextFromSession, n as parseSessionThreadInfo, o as loadSessionStore, z as canonicalizeMainSessionAlias } from "./sessions-
|
|
38
|
+
import { B as resolveAgentMainSessionKey, H as resolveMainSessionKey, M as evaluateSessionFreshness, P as resolveSessionResetPolicy, U as resolveMainSessionKeyFromConfig, Y as cleanStaleLockFiles, _ as mergeDeliveryContext, d as updateSessionStore, h as deliveryContextFromSession, n as parseSessionThreadInfo, o as loadSessionStore, z as canonicalizeMainSessionAlias } from "./sessions-DQMaURzb.js";
|
|
39
39
|
import "./dock-CnGWTXL4.js";
|
|
40
40
|
import { _ as normalizeGatewayClientMode, h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, p as GATEWAY_CLIENT_IDS, r as isGatewayCliClient, s as isWebchatClient } from "./message-channel-C_V8IAYx.js";
|
|
41
41
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DuuHorqi.js";
|
|
42
|
-
import "./send-
|
|
42
|
+
import "./send-BAKkoPOy.js";
|
|
43
43
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, s as resolveSessionTranscriptsDirForAgent } from "./paths-CJcw9nbZ.js";
|
|
44
44
|
import { d as supportsXHighThinking, l as normalizeVerboseLevel, s as normalizeThinkLevel } from "./thinking-177f26eg.js";
|
|
45
|
-
import {
|
|
46
|
-
import { _ as runGlobalGatewayStopSafely, h as getGlobalHookRunner, t as deliverOutboundPayloads } from "./deliver-
|
|
45
|
+
import { n as isSilentReplyText, t as SILENT_REPLY_TOKEN } from "./tokens-BKbemuIk.js";
|
|
46
|
+
import { _ as runGlobalGatewayStopSafely, h as getGlobalHookRunner, t as deliverOutboundPayloads } from "./deliver-63FtOVMC.js";
|
|
47
47
|
import { c as startDiagnosticHeartbeat, l as stopDiagnosticHeartbeat, u as isDiagnosticsEnabled } from "./diagnostic-CwF3MnBL.js";
|
|
48
48
|
import "./diagnostic-session-state-I4x9gPY4.js";
|
|
49
|
-
import "./models-config-
|
|
50
|
-
import "./pi-auth-json-
|
|
49
|
+
import "./models-config-CFUwiu4W.js";
|
|
50
|
+
import "./pi-auth-json-1Z1j1PDI.js";
|
|
51
51
|
import { c as hasNonzeroUsage, s as deriveSessionTotalTokens } from "./session-cost-usage-DYcv40ss.js";
|
|
52
|
-
import { C as enqueueSystemEvent, a as loadCombinedSessionStoreForGateway, f as formatRestartSentinelMessage, i as listSessionsFromStore, m as summarizeRestartSentinel, o as loadSessionEntry, u as consumeRestartSentinel, x as lookupContextTokens } from "./session-utils-
|
|
53
|
-
import { r as getMachineDisplayName } from "./with-timeout-
|
|
54
|
-
import { a as resolveAgentIdentity } from "./reply-prefix-
|
|
55
|
-
import { n as resolveMemoryBackendConfig, t as getMemorySearchManager } from "./memory-
|
|
56
|
-
import { c as resolveMemorySearchConfig } from "./manager-
|
|
57
|
-
import "./sqlite-
|
|
52
|
+
import { C as enqueueSystemEvent, a as loadCombinedSessionStoreForGateway, f as formatRestartSentinelMessage, i as listSessionsFromStore, m as summarizeRestartSentinel, o as loadSessionEntry, u as consumeRestartSentinel, x as lookupContextTokens } from "./session-utils-0F9pB5d6.js";
|
|
53
|
+
import { r as getMachineDisplayName } from "./with-timeout-C0UtpXBj.js";
|
|
54
|
+
import { a as resolveAgentIdentity } from "./reply-prefix-xaWqfM9m.js";
|
|
55
|
+
import { n as resolveMemoryBackendConfig, t as getMemorySearchManager } from "./memory-Czxk_hJw.js";
|
|
56
|
+
import { c as resolveMemorySearchConfig } from "./manager-BTtaJXdu.js";
|
|
57
|
+
import "./sqlite-DBEvS-Ne.js";
|
|
58
58
|
import "./chunk-DQGU0F8t.js";
|
|
59
59
|
import "./markdown-tables-GTLvbzuR.js";
|
|
60
60
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-DG6T0ZdL.js";
|
|
61
|
-
import "./local-roots-
|
|
61
|
+
import "./local-roots-JhQs5w0I.js";
|
|
62
62
|
import { n as isRestartEnabled } from "./commands-B3UrgxIz.js";
|
|
63
|
-
import "./commands-registry-
|
|
64
|
-
import { $t as roleScopesAllow, Bt as buildDeviceAuthPayload, Ft as PROTOCOL_VERSION, Ht as ensureDeviceToken, It as ErrorCodes, Lt as errorShape, Qt as verifyDeviceToken, R as validateExecApprovalRequestParams, Ut as getPairedDevice, Vt as approveDevicePairing, Zt as updatePairedDeviceMetadata, at as validateRequestFrame, in as verifyDeviceSignature, n as formatValidationErrors, qt as requestDevicePairing, rn as normalizeDevicePublicKeyBase64Url, tn as deriveDeviceIdFromPublicKey, w as validateConnectParams, z as validateExecApprovalResolveParams } from "./client-
|
|
65
|
-
import { f as loadGatewayTlsRuntime$1, n as callGateway } from "./call-
|
|
66
|
-
import "./pairing-token-
|
|
63
|
+
import "./commands-registry-W2GQIywv.js";
|
|
64
|
+
import { $t as roleScopesAllow, Bt as buildDeviceAuthPayload, Ft as PROTOCOL_VERSION, Ht as ensureDeviceToken, It as ErrorCodes, Lt as errorShape, Qt as verifyDeviceToken, R as validateExecApprovalRequestParams, Ut as getPairedDevice, Vt as approveDevicePairing, Zt as updatePairedDeviceMetadata, at as validateRequestFrame, in as verifyDeviceSignature, n as formatValidationErrors, qt as requestDevicePairing, rn as normalizeDevicePublicKeyBase64Url, tn as deriveDeviceIdFromPublicKey, w as validateConnectParams, z as validateExecApprovalResolveParams } from "./client-ZZqt0H0-.js";
|
|
65
|
+
import { f as loadGatewayTlsRuntime$1, n as callGateway } from "./call-Du4CT1Hp.js";
|
|
66
|
+
import "./pairing-token-CURbSHdi.js";
|
|
67
67
|
import "./tool-display-Dr6VaTg5.js";
|
|
68
|
-
import { _ as registerSkillsChangeListener, a as refreshRemoteNodeBins, g as getSkillsSnapshotVersion, i as refreshRemoteBinsForConnectedNodes, n as primeRemoteSkillsCache, o as removeRemoteNodeInfo, p as updatePairedNodeMetadata, r as recordRemoteNodeInfo, s as setSkillsRemoteRegistry, t as getRemoteSkillEligibility } from "./skills-remote-
|
|
69
|
-
import "./workspace-dirs-
|
|
68
|
+
import { _ as registerSkillsChangeListener, a as refreshRemoteNodeBins, g as getSkillsSnapshotVersion, i as refreshRemoteBinsForConnectedNodes, n as primeRemoteSkillsCache, o as removeRemoteNodeInfo, p as updatePairedNodeMetadata, r as recordRemoteNodeInfo, s as setSkillsRemoteRegistry, t as getRemoteSkillEligibility } from "./skills-remote-Db5Wwr4s.js";
|
|
69
|
+
import "./workspace-dirs-gn_0yzFP.js";
|
|
70
70
|
import "./pi-model-discovery-DdkUSfiI.js";
|
|
71
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
72
|
-
import "./skill-commands-
|
|
73
|
-
import "./pairing-store-
|
|
71
|
+
import { n as loadModelCatalog } from "./model-catalog-DKBhNiWm.js";
|
|
72
|
+
import "./skill-commands-DP1fshwh.js";
|
|
73
|
+
import "./pairing-store-mmeniyUt.js";
|
|
74
74
|
import { t as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS } from "./exec-approvals-CZOc8M5w.js";
|
|
75
|
-
import "./nodes-screen-
|
|
75
|
+
import "./nodes-screen-JELuBMBi.js";
|
|
76
76
|
import { n as formatTokenCount, r as formatUsd } from "./usage-format-Ca9K30TH.js";
|
|
77
|
-
import "./control-service-
|
|
77
|
+
import "./control-service-CMVDL3Yl.js";
|
|
78
78
|
import { i as parseAbsoluteTimeMs, n as resolveCronStaggerMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-BhvnarfO.js";
|
|
79
79
|
import { n as resolveMessageChannelSelection } from "./channel-selection-BvIcXQLj.js";
|
|
80
80
|
import "./delivery-queue-DDs84baU.js";
|
|
81
81
|
import { t as buildChannelAccountBindings } from "./bindings-9LSA3Jr1.js";
|
|
82
|
-
import "./resolve-route-
|
|
82
|
+
import "./resolve-route-DKhx5C-P.js";
|
|
83
83
|
import { t as formatDocsLink } from "./links-CSaUKNKm.js";
|
|
84
84
|
import { n as runCommandWithRuntime } from "./cli-utils-CX1oQ81G.js";
|
|
85
85
|
import { t as formatHelpExamples } from "./help-format-BI_G2p1e.js";
|
|
86
86
|
import { n as withProgress } from "./progress-CyPyGCDn.js";
|
|
87
|
-
import "./memory-cli-
|
|
87
|
+
import "./memory-cli-B-nQp5HP.js";
|
|
88
88
|
import "./logging-B5YNzZB9.js";
|
|
89
|
-
import "./replies-
|
|
90
|
-
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-
|
|
91
|
-
import "./model-
|
|
92
|
-
import { t as createDefaultDeps } from "./deps-
|
|
89
|
+
import "./replies-P7jbK6Bo.js";
|
|
90
|
+
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-BBHbN8Nh.js";
|
|
91
|
+
import "./model-BKtw-Bqs.js";
|
|
92
|
+
import { t as createDefaultDeps } from "./deps-DD_ZCq3v.js";
|
|
93
93
|
import { t as ensureSymiCliOnPath } from "./path-env-DuQralyy.js";
|
|
94
94
|
import "./runtime-guard-BZ3_1QqS.js";
|
|
95
|
-
import { t as forceFreePortAndWait } from "./ports-
|
|
95
|
+
import { t as forceFreePortAndWait } from "./ports-DRHSHvqY.js";
|
|
96
96
|
import "./catalog-BEREnWaa.js";
|
|
97
|
-
import "./skills-status-
|
|
97
|
+
import "./skills-status-Dx3Lf5iU.js";
|
|
98
98
|
import { n as inheritOptionFromParent } from "./command-options-ChiIn6Na.js";
|
|
99
99
|
import "./prompt-style-Cad0BDRS.js";
|
|
100
100
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BBypnAYf.js";
|
|
101
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
102
|
-
import "./install-safe-path-
|
|
103
|
-
import "./skill-scanner-
|
|
101
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BCwyDNSP.js";
|
|
102
|
+
import "./install-safe-path-CQXx3s9R.js";
|
|
103
|
+
import "./skill-scanner-qMQf6-FN.js";
|
|
104
104
|
import "./channels-status-issues-DC8vgOMo.js";
|
|
105
|
-
import "./daemon-runtime-
|
|
106
|
-
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-
|
|
107
|
-
import "./systemd-
|
|
108
|
-
import "./service-
|
|
109
|
-
import "./lifecycle-core-
|
|
110
|
-
import "./systemd-hints-
|
|
105
|
+
import "./daemon-runtime-BD-3XS8R.js";
|
|
106
|
+
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-D2mWJnFB.js";
|
|
107
|
+
import "./systemd-9LEEqibe.js";
|
|
108
|
+
import "./service-AP9pR9R5.js";
|
|
109
|
+
import "./lifecycle-core-_BlNODTH.js";
|
|
110
|
+
import "./systemd-hints-CeavseQh.js";
|
|
111
111
|
import { t as parsePort$1 } from "./parse-port-CykvIgQu.js";
|
|
112
|
-
import { n as addGatewayServiceCommands } from "./daemon-cli-
|
|
113
|
-
import "./diagnostics-
|
|
112
|
+
import { n as addGatewayServiceCommands } from "./daemon-cli-B__05b-d.js";
|
|
113
|
+
import "./diagnostics-DxdqTfpW.js";
|
|
114
114
|
import "./table-DkAQzCOR.js";
|
|
115
115
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-C5NqCQ3L.js";
|
|
116
|
-
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-
|
|
117
|
-
import { c as resolveNodeCommandAllowlist, l as probeGateway, n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./audit-
|
|
116
|
+
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-DmYHvtn2.js";
|
|
117
|
+
import { c as resolveNodeCommandAllowlist, l as probeGateway, n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./audit-B_HL4UJ_.js";
|
|
118
118
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-CU1mz7AC.js";
|
|
119
|
-
import { r as pickGatewaySelfPresence } from "./status-
|
|
120
|
-
import { i as styleHealthChannelLine, n as getHealthSnapshot, t as formatHealthChannelLines } from "./health-
|
|
121
|
-
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-
|
|
122
|
-
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-
|
|
123
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
124
|
-
import { C as startGatewayConfigReloader, S as resolveCronRunLogPath, _ as MAX_PAYLOAD_BYTES, a as loadFavoritesSet, b as abortChatRunById, c as resolveAssistantIdentity, d as formatError, f as loadVoiceWakeConfig, g as MAX_BUFFERED_BYTES, h as HEALTH_REFRESH_INTERVAL_MS, i as safeParseJson, l as listSystemPresence, m as DEDUPE_TTL_MS, n as handleGatewayRequest, o as reconcileFavorites, p as DEDUPE_MAX, r as broadcastPresenceSnapshot, s as DEFAULT_ASSISTANT_IDENTITY, t as coreGatewayHandlers, u as upsertPresence, v as TICK_INTERVAL_MS, x as appendCronRunLog, y as getHandshakeTimeoutMs } from "./server-methods-
|
|
125
|
-
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-
|
|
119
|
+
import { r as pickGatewaySelfPresence } from "./status-DA_sl7Yp.js";
|
|
120
|
+
import { i as styleHealthChannelLine, n as getHealthSnapshot, t as formatHealthChannelLines } from "./health-BdxlhiXA.js";
|
|
121
|
+
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-DUhvOLUL.js";
|
|
122
|
+
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-CZxZhEXr.js";
|
|
123
|
+
import { t as runOnboardingWizard } from "./onboarding-BmB9v20h.js";
|
|
124
|
+
import { C as startGatewayConfigReloader, S as resolveCronRunLogPath, _ as MAX_PAYLOAD_BYTES, a as loadFavoritesSet, b as abortChatRunById, c as resolveAssistantIdentity, d as formatError, f as loadVoiceWakeConfig, g as MAX_BUFFERED_BYTES, h as HEALTH_REFRESH_INTERVAL_MS, i as safeParseJson, l as listSystemPresence, m as DEDUPE_TTL_MS, n as handleGatewayRequest, o as reconcileFavorites, p as DEDUPE_MAX, r as broadcastPresenceSnapshot, s as DEFAULT_ASSISTANT_IDENTITY, t as coreGatewayHandlers, u as upsertPresence, v as TICK_INTERVAL_MS, x as appendCronRunLog, y as getHandshakeTimeoutMs } from "./server-methods-B4kcazJq.js";
|
|
125
|
+
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-DBG95KxK.js";
|
|
126
126
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-D5G00y8h.js";
|
|
127
|
-
import { a as getCliSessionId, o as setCliSessionId, s as runCliAgent, t as agentCommand } from "./agent-
|
|
127
|
+
import { a as getCliSessionId, o as setCliSessionId, s as runCliAgent, t as agentCommand } from "./agent-pDOR_idq.js";
|
|
128
128
|
import { t as createOutboundSendDeps } from "./outbound-send-deps-BpziI1pC.js";
|
|
129
|
-
import { s as loadAgentIdentityFromWorkspace } from "./agents.config-
|
|
130
|
-
import "./dm-policy-shared-
|
|
131
|
-
import "./node-service-
|
|
132
|
-
import "./status.update-
|
|
133
|
-
import "./skills-install-
|
|
134
|
-
import "./update-runner-
|
|
135
|
-
import { t as resolveAgentSessionDirs } from "./session-dirs-
|
|
129
|
+
import { s as loadAgentIdentityFromWorkspace } from "./agents.config-B_LFeRQS.js";
|
|
130
|
+
import "./dm-policy-shared-C1TQOlkZ.js";
|
|
131
|
+
import "./node-service-tPO_yUk7.js";
|
|
132
|
+
import "./status.update-CQ1vKrEg.js";
|
|
133
|
+
import "./skills-install-C9uT4MR2.js";
|
|
134
|
+
import "./update-runner-C8L4XRQb.js";
|
|
135
|
+
import { t as resolveAgentSessionDirs } from "./session-dirs-Chh7bBGo.js";
|
|
136
136
|
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-B_xyjOdv.js";
|
|
137
137
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
138
138
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -142,7 +142,7 @@ import * as fsSync from "node:fs";
|
|
|
142
142
|
import fs from "node:fs";
|
|
143
143
|
import os from "node:os";
|
|
144
144
|
import JSON5 from "json5";
|
|
145
|
-
import
|
|
145
|
+
import fs$1 from "node:fs/promises";
|
|
146
146
|
import { spawn } from "node:child_process";
|
|
147
147
|
import { z } from "zod";
|
|
148
148
|
import net from "node:net";
|
|
@@ -1132,7 +1132,7 @@ function shouldSkipCheck(allowInTests) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
async function readState(statePath) {
|
|
1134
1134
|
try {
|
|
1135
|
-
const raw = await
|
|
1135
|
+
const raw = await fs$1.readFile(statePath, "utf-8");
|
|
1136
1136
|
const parsed = JSON.parse(raw);
|
|
1137
1137
|
return parsed && typeof parsed === "object" ? parsed : {};
|
|
1138
1138
|
} catch {
|
|
@@ -1140,8 +1140,8 @@ async function readState(statePath) {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
async function writeState(statePath, state) {
|
|
1143
|
-
await
|
|
1144
|
-
await
|
|
1143
|
+
await fs$1.mkdir(path.dirname(statePath), { recursive: true });
|
|
1144
|
+
await fs$1.writeFile(statePath, JSON.stringify(state, null, 2), "utf-8");
|
|
1145
1145
|
}
|
|
1146
1146
|
function sameUpdateAvailable(a, b) {
|
|
1147
1147
|
if (a === b) return true;
|
|
@@ -2648,24 +2648,6 @@ function pickLastDeliverablePayload(payloads) {
|
|
|
2648
2648
|
if (text || hasMedia || hasChannelData) return payload;
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
|
-
/**
|
|
2652
|
-
* Check if all payloads are just heartbeat ack responses (SYMIPULSE_OK).
|
|
2653
|
-
* Returns true if delivery should be skipped because there's no real content.
|
|
2654
|
-
*/
|
|
2655
|
-
function isHeartbeatOnlyResponse(payloads, ackMaxChars) {
|
|
2656
|
-
if (payloads.length === 0) return true;
|
|
2657
|
-
return payloads.every((payload) => {
|
|
2658
|
-
if ((payload.mediaUrls?.length ?? 0) > 0 || Boolean(payload.mediaUrl)) return false;
|
|
2659
|
-
return stripHeartbeatToken(payload.text, {
|
|
2660
|
-
mode: "heartbeat",
|
|
2661
|
-
maxAckChars: ackMaxChars
|
|
2662
|
-
}).shouldSkip;
|
|
2663
|
-
});
|
|
2664
|
-
}
|
|
2665
|
-
function resolveHeartbeatAckMaxChars(agentCfg) {
|
|
2666
|
-
const raw = agentCfg?.heartbeat?.ackMaxChars ?? DEFAULT_HEARTBEAT_ACK_MAX_CHARS;
|
|
2667
|
-
return Math.max(0, raw);
|
|
2668
|
-
}
|
|
2669
2651
|
|
|
2670
2652
|
//#endregion
|
|
2671
2653
|
//#region src/cron/isolated-agent/session.ts
|
|
@@ -3163,15 +3145,13 @@ async function runCronIsolatedAgentTurn(params) {
|
|
|
3163
3145
|
let deliveryPayloads = deliveryPayload !== void 0 ? [deliveryPayload] : synthesizedText ? [{ text: synthesizedText }] : [];
|
|
3164
3146
|
const deliveryPayloadHasStructuredContent = Boolean(deliveryPayload?.mediaUrl) || (deliveryPayload?.mediaUrls?.length ?? 0) > 0 || Object.keys(deliveryPayload?.channelData ?? {}).length > 0;
|
|
3165
3147
|
const deliveryBestEffort = resolveCronDeliveryBestEffort(params.job);
|
|
3166
|
-
const ackMaxChars = resolveHeartbeatAckMaxChars(agentCfg);
|
|
3167
|
-
const skipHeartbeatDelivery = deliveryRequested && isHeartbeatOnlyResponse(payloads, ackMaxChars);
|
|
3168
3148
|
const skipMessagingToolDelivery = deliveryRequested && runResult.didSendViaMessagingTool === true && (runResult.messagingToolSentTargets ?? []).some((target) => matchesMessagingToolDeliveryTarget(target, {
|
|
3169
3149
|
channel: resolvedDelivery.channel,
|
|
3170
3150
|
to: resolvedDelivery.to,
|
|
3171
3151
|
accountId: resolvedDelivery.accountId
|
|
3172
3152
|
}));
|
|
3173
3153
|
let delivered = skipMessagingToolDelivery;
|
|
3174
|
-
if (deliveryRequested && !
|
|
3154
|
+
if (deliveryRequested && !skipMessagingToolDelivery) {
|
|
3175
3155
|
if (resolvedDelivery.error) {
|
|
3176
3156
|
if (!deliveryBestEffort) return withRunSession({
|
|
3177
3157
|
status: "error",
|
|
@@ -6587,7 +6567,7 @@ function normalizeAgentPayload(payload) {
|
|
|
6587
6567
|
async function startBrowserControlServerIfEnabled() {
|
|
6588
6568
|
if (isTruthyEnvValue(process.env.SYMI_SKIP_BROWSER_CONTROL_SERVER)) return null;
|
|
6589
6569
|
const override = process.env.SYMI_BROWSER_CONTROL_MODULE?.trim();
|
|
6590
|
-
const mod = override ? await import(override) : await import("./control-service-
|
|
6570
|
+
const mod = override ? await import(override) : await import("./control-service-CMVDL3Yl.js").then((n) => n.t);
|
|
6591
6571
|
const start = typeof mod.startBrowserControlServiceFromConfig === "function" ? mod.startBrowserControlServiceFromConfig : mod.startBrowserControlServerFromConfig;
|
|
6592
6572
|
const stop = typeof mod.stopBrowserControlService === "function" ? mod.stopBrowserControlService : mod.stopBrowserControlServer;
|
|
6593
6573
|
if (!start) return null;
|
|
@@ -6814,7 +6794,7 @@ async function resolveFileWithinRoot(rootReal, urlPath) {
|
|
|
6814
6794
|
if (normalized.endsWith("/")) return await tryOpen(path.posix.join(rel, "index.html"));
|
|
6815
6795
|
const candidate = path.join(rootReal, rel);
|
|
6816
6796
|
try {
|
|
6817
|
-
const st = await
|
|
6797
|
+
const st = await fs$1.lstat(candidate);
|
|
6818
6798
|
if (st.isSymbolicLink()) return null;
|
|
6819
6799
|
if (st.isDirectory()) return await tryOpen(path.posix.join(rel, "index.html"));
|
|
6820
6800
|
} catch {}
|
|
@@ -6851,8 +6831,8 @@ async function resolveA2uiRoot() {
|
|
|
6851
6831
|
for (const dir of candidates) try {
|
|
6852
6832
|
const indexPath = path.join(dir, "index.html");
|
|
6853
6833
|
const bundlePath = path.join(dir, "a2ui.bundle.js");
|
|
6854
|
-
await
|
|
6855
|
-
await
|
|
6834
|
+
await fs$1.stat(indexPath);
|
|
6835
|
+
await fs$1.stat(bundlePath);
|
|
6856
6836
|
return dir;
|
|
6857
6837
|
} catch {}
|
|
6858
6838
|
return null;
|
|
@@ -6861,7 +6841,7 @@ async function resolveA2uiRootReal() {
|
|
|
6861
6841
|
if (cachedA2uiRootReal !== void 0 && (cachedA2uiRootReal !== null || Date.now() - cachedA2uiResolvedAtMs < A2UI_ROOT_RETRY_NULL_AFTER_MS)) return cachedA2uiRootReal;
|
|
6862
6842
|
if (!resolvingA2uiRoot) resolvingA2uiRoot = (async () => {
|
|
6863
6843
|
const root = await resolveA2uiRoot();
|
|
6864
|
-
cachedA2uiRootReal = root ? await
|
|
6844
|
+
cachedA2uiRootReal = root ? await fs$1.realpath(root) : null;
|
|
6865
6845
|
cachedA2uiResolvedAtMs = Date.now();
|
|
6866
6846
|
resolvingA2uiRoot = null;
|
|
6867
6847
|
return cachedA2uiRootReal;
|
|
@@ -7082,13 +7062,13 @@ function normalizeBasePath(rawPath) {
|
|
|
7082
7062
|
}
|
|
7083
7063
|
async function prepareCanvasRoot(rootDir) {
|
|
7084
7064
|
await ensureDir(rootDir);
|
|
7085
|
-
const rootReal = await
|
|
7065
|
+
const rootReal = await fs$1.realpath(rootDir);
|
|
7086
7066
|
try {
|
|
7087
7067
|
const indexPath = path.join(rootReal, "index.html");
|
|
7088
|
-
await
|
|
7068
|
+
await fs$1.stat(indexPath);
|
|
7089
7069
|
} catch {
|
|
7090
7070
|
try {
|
|
7091
|
-
await
|
|
7071
|
+
await fs$1.writeFile(path.join(rootReal, "index.html"), defaultIndexHTML(), "utf8");
|
|
7092
7072
|
} catch {}
|
|
7093
7073
|
}
|
|
7094
7074
|
return rootReal;
|
|
@@ -10035,7 +10015,7 @@ function resolveGatewayOwnerStatus(pid, payload, platform) {
|
|
|
10035
10015
|
}
|
|
10036
10016
|
async function readLockPayload(lockPath) {
|
|
10037
10017
|
try {
|
|
10038
|
-
const raw = await
|
|
10018
|
+
const raw = await fs$1.readFile(lockPath, "utf8");
|
|
10039
10019
|
const parsed = JSON.parse(raw);
|
|
10040
10020
|
if (typeof parsed.pid !== "number") return null;
|
|
10041
10021
|
if (typeof parsed.createdAt !== "string") return null;
|
|
@@ -10069,11 +10049,11 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
10069
10049
|
const staleMs = opts.staleMs ?? DEFAULT_STALE_MS;
|
|
10070
10050
|
const platform = opts.platform ?? process.platform;
|
|
10071
10051
|
const { lockPath, configPath } = resolveGatewayLockPath(env);
|
|
10072
|
-
await
|
|
10052
|
+
await fs$1.mkdir(path.dirname(lockPath), { recursive: true });
|
|
10073
10053
|
const startedAt = Date.now();
|
|
10074
10054
|
let lastPayload = null;
|
|
10075
10055
|
while (Date.now() - startedAt < timeoutMs) try {
|
|
10076
|
-
const handle = await
|
|
10056
|
+
const handle = await fs$1.open(lockPath, "wx");
|
|
10077
10057
|
const startTime = platform === "linux" ? readLinuxStartTime(process.pid) : null;
|
|
10078
10058
|
const payload = {
|
|
10079
10059
|
pid: process.pid,
|
|
@@ -10087,7 +10067,7 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
10087
10067
|
configPath,
|
|
10088
10068
|
release: async () => {
|
|
10089
10069
|
await handle.close().catch(() => void 0);
|
|
10090
|
-
await
|
|
10070
|
+
await fs$1.rm(lockPath, { force: true });
|
|
10091
10071
|
}
|
|
10092
10072
|
};
|
|
10093
10073
|
} catch (err) {
|
|
@@ -10096,7 +10076,7 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
10096
10076
|
const ownerPid = lastPayload?.pid;
|
|
10097
10077
|
const ownerStatus = ownerPid ? resolveGatewayOwnerStatus(ownerPid, lastPayload, platform) : "unknown";
|
|
10098
10078
|
if (ownerStatus === "dead" && ownerPid) {
|
|
10099
|
-
await
|
|
10079
|
+
await fs$1.rm(lockPath, { force: true });
|
|
10100
10080
|
continue;
|
|
10101
10081
|
}
|
|
10102
10082
|
if (ownerStatus !== "alive") {
|
|
@@ -10106,13 +10086,13 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
10106
10086
|
stale = Number.isFinite(createdAt) ? Date.now() - createdAt > staleMs : false;
|
|
10107
10087
|
}
|
|
10108
10088
|
if (!stale) try {
|
|
10109
|
-
const st = await
|
|
10089
|
+
const st = await fs$1.stat(lockPath);
|
|
10110
10090
|
stale = Date.now() - st.mtimeMs > staleMs;
|
|
10111
10091
|
} catch {
|
|
10112
10092
|
stale = true;
|
|
10113
10093
|
}
|
|
10114
10094
|
if (stale) {
|
|
10115
|
-
await
|
|
10095
|
+
await fs$1.rm(lockPath, { force: true });
|
|
10116
10096
|
continue;
|
|
10117
10097
|
}
|
|
10118
10098
|
}
|
|
@@ -12010,7 +11990,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
12010
11990
|
if (!minimalTestGateway) cron.start().catch((err) => logCron.error(`failed to start: ${String(err)}`));
|
|
12011
11991
|
if (!minimalTestGateway) (async () => {
|
|
12012
11992
|
const { recoverPendingDeliveries } = await import("./delivery-queue-DDs84baU.js").then((n) => n.n);
|
|
12013
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
11993
|
+
const { deliverOutboundPayloads } = await import("./deliver-63FtOVMC.js").then((n) => n.n);
|
|
12014
11994
|
await recoverPendingDeliveries({
|
|
12015
11995
|
deliver: deliverOutboundPayloads,
|
|
12016
11996
|
log: log.child("delivery-recovery"),
|
|
@@ -12083,7 +12063,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
12083
12063
|
});
|
|
12084
12064
|
let glassUiBridgeCleanup = null;
|
|
12085
12065
|
if (!minimalTestGateway) {
|
|
12086
|
-
const { createGlassUiBridge } = await import("./glass-ui-ws-
|
|
12066
|
+
const { createGlassUiBridge } = await import("./glass-ui-ws-BbsrTxei.js");
|
|
12087
12067
|
glassUiBridgeCleanup = createGlassUiBridge({
|
|
12088
12068
|
wss: glassUiWss,
|
|
12089
12069
|
context: gatewayRequestContext,
|