@symerian/symi 2.6.10 → 2.6.11
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/{accounts-BRw8yhIW.js → accounts-D1r2dq1t.js} +21 -21
- package/dist/{accounts-3dCrO3oZ.js → accounts-dRUMQQrB.js} +1 -1
- package/dist/{accounts-BuZxOb3B.js → accounts-wSphH5gv.js} +1 -1
- package/dist/{acp-cli-DT0rEuUE.js → acp-cli-Cu4icbJT.js} +2 -2
- package/dist/{active-listener-CfHHV2SU.js → active-listener-DFUTUjxt.js} +1 -1
- package/dist/{agent-scope-CpEJ0B88.js → agent-scope-D68_xfTL.js} +3 -3
- package/dist/{agents-DDqXWXbP.js → agents-DRRBdgqz.js} +4 -4
- package/dist/{agents.config-CEt-ES9z.js → agents.config-BO1N5Z_6.js} +1 -1
- package/dist/{agents.config-Bu_N-bn_.js → agents.config-GCucbcBy.js} +1 -1
- package/dist/{audio-preflight-C40mKAp7.js → audio-preflight-CPBOQV4I.js} +4 -4
- package/dist/{audio-preflight-BcSzL_0I.js → audio-preflight-CWnxkaac.js} +8 -8
- package/dist/{audio-preflight-BVaaZWkg.js → audio-preflight-CjV36MUe.js} +29 -29
- package/dist/{audit-BIE9JAxf.js → audit-CrITRV6w.js} +5 -5
- package/dist/{auth-choice-Bmd-rbuU.js → auth-choice-C1sul2-I.js} +1 -1
- package/dist/{auth-choice-Djy_YmfW.js → auth-choice-i7tTgbDd.js} +4 -4
- package/dist/{auth-profiles-DdK1Hxaa.js → auth-profiles-Bl9aU7fc.js} +17 -17
- package/dist/{banner-BNkhjU8E.js → banner-VbhMdl-b.js} +1 -1
- package/dist/{bindings-BsHoBLIE.js → bindings-Bat2RnAR.js} +2 -2
- package/dist/{browser-cli-nNQ60Koh.js → browser-cli-BG4qPxpM.js} +3 -3
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/{call-7djMRPgl.js → call-CJaS1iRF.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-B6G1jnQT.js → channel-activity-DK0AV-r9.js} +1 -1
- package/dist/{channel-options-NLrg-j_d.js → channel-options-CsXOvqAc.js} +1 -1
- package/dist/{channel-options-D8ByM6g0.js → channel-options-Esf0QB4M.js} +1 -1
- package/dist/{channel-web-BUQWBln9.js → channel-web-DDC84nZg.js} +2 -2
- package/dist/{channels-cli-qBgicVqp.js → channels-cli-C989dAD4.js} +19 -19
- package/dist/{channels-cli-C5DWcDDG.js → channels-cli-DomEe8uI.js} +4 -4
- package/dist/{chrome-CDJYxX5a.js → chrome-D2SKJnR7.js} +7 -7
- package/dist/{chrome-DkaXoP36.js → chrome-DRHvMBbb.js} +14 -14
- package/dist/{chrome-DBKZkx0x.js → chrome-DtPkPq9T.js} +7 -7
- package/dist/{chunk-09egQapi.js → chunk-DR8ukp6r.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-Bx78WeyO.js → cli-CPRCkEdK.js} +1 -1
- package/dist/{cli-UHMMUbWL.js → cli-RXswESw1.js} +16 -16
- package/dist/{client-Z6SFrwob.js → client-CQSyCS4M.js} +3 -3
- package/dist/{command-registry-BSGsNY71.js → command-registry-DwBw5-nh.js} +9 -9
- package/dist/{commands-registry-Bfc7Uz0o.js → commands-registry-DIakZUZb.js} +4 -4
- package/dist/{completion-cli-B915TqN4.js → completion-cli-C43sjF75.js} +2 -2
- package/dist/{completion-cli-CajQzz5J.js → completion-cli-Cwx8MtF9.js} +1 -1
- package/dist/{config-5SdHIcHU.js → config-CvmE3Yx1.js} +12 -12
- package/dist/{config-cli-CeErUiHR.js → config-cli-CkkIU7AY.js} +1 -1
- package/dist/{config-cli-BM9FX48b.js → config-cli-DG0xBZhs.js} +1 -1
- package/dist/{configure-DggNPSKd.js → configure-DlVtomYJ.js} +3 -3
- package/dist/{configure-CbiNzEIk.js → configure-nxnXIUVI.js} +8 -8
- package/dist/{control-service-DdeFa44u.js → control-service-Bz7rxLWq.js} +3 -3
- package/dist/{cron-cli-C_1RndRW.js → cron-cli-DBIlCvp3.js} +3 -3
- package/dist/{daemon-cli-C2fkpr13.js → daemon-cli-DscwlsKW.js} +2 -2
- package/dist/{deliver-BH0l3UKW.js → deliver-C-37cZUe.js} +1 -1
- package/dist/{deliver-Bu624MY6.js → deliver-CWR_98sK.js} +1 -1
- package/dist/{deliver-C46-vyqg.js → deliver-UMgfGLxW.js} +20 -20
- package/dist/{devices-cli-ERMql8Dq.js → devices-cli-Dds-25Ve.js} +2 -2
- package/dist/{diagnostic-rPhsBoZz.js → diagnostic-spWOtH_g.js} +1 -1
- package/dist/{doctor-completion-BP_qD5Bt.js → doctor-completion-CWr51Q4O.js} +1 -1
- package/dist/{doctor-completion-BfLDfA98.js → doctor-completion-Dd5P0i9L.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-BDXYbTKj.js → env-xmBFQPBP.js} +1 -1
- package/dist/{exec-approvals-cli-BEU-xJFu.js → exec-approvals-cli-BliRl8VB.js} +4 -4
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-CTR5f_Ez.js → frontmatter-CV0YkjoY.js} +2 -2
- package/dist/{gateway-cli-LmMxDk7B.js → gateway-cli-B1h1FhD-.js} +28 -28
- package/dist/{gateway-cli-qMBjCmLH.js → gateway-cli-BBJjWKyu.js} +9 -9
- package/dist/{gateway-rpc-BWZzo3L9.js → gateway-rpc-BxkKeCZ0.js} +1 -1
- package/dist/{gemini-auth-Dy12ZAH3.js → gemini-auth-C6Z-2T42.js} +1 -1
- package/dist/{github-copilot-token-cCYzSU9h.js → github-copilot-token-B8B2pmph.js} +7 -7
- package/dist/{glass-ui-ws-CXpW0epd.js → glass-ui-ws-Bk01KSVI.js} +7 -7
- package/dist/{glass-ui-ws-DbV46Nrg.js → glass-ui-ws-UewDPjVh.js} +23 -23
- package/dist/{health-BctmvDJ0.js → health-BiipZUOd.js} +1 -1
- package/dist/{health-pukFTT09.js → health-Dzi6letr.js} +3 -3
- package/dist/{hooks-cli-DcQN6UeT.js → hooks-cli-BdelOAPH.js} +2 -2
- package/dist/{hooks-cli-BMQOn6QU.js → hooks-cli-DxRXaSHR.js} +17 -17
- package/dist/{image-CuzFLQWC.js → image-CK4oZUJJ.js} +4 -4
- package/dist/{image-CtCUVPCD.js → image-D9uvDTrc.js} +1 -1
- package/dist/{image-CHzdaNJ4.js → image-DcpMiprB.js} +1 -1
- package/dist/{image-ops-C7CauEK8.js → image-ops-M5agStZn.js} +16 -16
- package/dist/index.js +21 -21
- package/dist/{ir-CTiz95Vb.js → ir-B-XXcYFe.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-DhZz0Ybs.js → local-roots-CdXg5-Cx.js} +5 -5
- package/dist/{login-ul8zaw_S.js → login-BHUrERYo.js} +7 -7
- package/dist/{login-qr-AP9agO-i.js → login-qr-BKIOHn1V.js} +12 -12
- package/dist/{logs-cli-V5qUbmVy.js → logs-cli-xOzIPrHm.js} +3 -3
- package/dist/{manager-PprhCvO_.js → manager-DW3JqFpY.js} +22 -22
- package/dist/{manifest-registry-yb7sAlu4.js → manifest-registry-0J48biqr.js} +19 -19
- package/dist/{markdown-tables-C-BmIap8.js → markdown-tables-tW9bGjLM.js} +1 -1
- package/dist/{message-channel-OlFBYAw8.js → message-channel-DwDSKGn4.js} +1 -1
- package/dist/{model-catalog-Da6fXK5K.js → model-catalog-DvBJ8pMD.js} +1 -1
- package/dist/{model-picker-B6QoK7pe.js → model-picker-Ddo3jHe-.js} +1 -1
- package/dist/{models-yF2XRbPQ.js → models-DUrbBEOU.js} +2 -2
- package/dist/{models-cli-DAKvip7R.js → models-cli-CF0KZtK4.js} +18 -18
- package/dist/{models-cli-DHOMkJmd.js → models-cli-D5KE-evn.js} +3 -3
- package/dist/{node-cli-r5-MNz9_.js → node-cli-C_G-Q3h-.js} +6 -6
- package/dist/{nodes-cli-DQed-Snk.js → nodes-cli-BcnuJajV.js} +3 -3
- package/dist/{onboard-BafMA6T9.js → onboard-Bizq_LAS.js} +5 -5
- package/dist/{onboard-BhqTlAS0.js → onboard-DK-oOqRl.js} +2 -2
- package/dist/{onboard-channels-CHe-XSLv.js → onboard-channels-B6yLPqH5.js} +1 -1
- package/dist/{onboard-channels-CZB5bhSJ.js → onboard-channels-DSZzjOo1.js} +1 -1
- package/dist/{onboard-custom-BduhuM_4.js → onboard-custom-C7O-zfQ1.js} +1 -1
- package/dist/{onboard-helpers-CiLCJJVQ.js → onboard-helpers-ZmZYzlq3.js} +1 -1
- package/dist/{onboard-remote-C1nRkyWo.js → onboard-remote-zUjD7UtM.js} +1 -1
- package/dist/{onboard-skills-9GLwG44a.js → onboard-skills-BB0YhUmF.js} +1 -1
- package/dist/{onboarding-BXVYtRYj.js → onboarding-CkWWIQA7.js} +3 -3
- package/dist/{onboarding-D5yCx7Yb.js → onboarding-DGSCNnGY.js} +9 -9
- package/dist/{onboarding.finalize-DF5Zx0Zc.js → onboarding.finalize-BMGwhjIR.js} +6 -6
- package/dist/{onboarding.finalize-BX4DUaoK.js → onboarding.finalize-Dj0noUgo.js} +21 -21
- package/dist/{onboarding.gateway-config-TSh7IejG.js → onboarding.gateway-config-CJUgDC6Y.js} +3 -3
- package/dist/{outbound-CtMCmwxR.js → outbound-CIVsLpJK.js} +7 -7
- package/dist/{outbound-attachment-DJldbweZ.js → outbound-attachment-CHcmlip8.js} +2 -2
- package/dist/paths-CYmyCDsE.js +212 -0
- package/dist/{paths-CbQV9WEg.js → paths-DEuVuViW.js} +1 -1
- package/dist/{pi-auth-json-Bk8ERadJ.js → pi-auth-json-BYuCWAs0.js} +8 -8
- package/dist/{pi-auth-json-Tqz9D47K.js → pi-auth-json-DayrlDg_.js} +1 -1
- package/dist/{pi-embedded-DV6dp0BP.js → pi-embedded-DLma-HLn.js} +57 -16
- package/dist/{pi-embedded-helpers-lgx_U5KS.js → pi-embedded-helpers-B8kqLWns.js} +4 -4
- package/dist/{pi-embedded-helpers-CfqDGQ9J.js → pi-embedded-helpers-BU8EZuwx.js} +73 -73
- package/dist/{pi-embedded-helpers-D-dUrQOR.js → pi-embedded-helpers-CNPyv_ax.js} +1 -1
- package/dist/{pi-tools.policy-CgGK6Jq8.js → pi-tools.policy-CIDBbw6x.js} +1 -1
- package/dist/{plugin-registry-BSmy8tIV.js → plugin-registry-BcgpVdtC.js} +1 -1
- package/dist/{plugin-registry-BwnzEvIz.js → plugin-registry-D8PAS3Sx.js} +1 -1
- package/dist/plugin-sdk/{channel-web-BdY2z7lg.js → channel-web-DgNOPxkV.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-BvxntA3R.js → reply-DJN8Xcq2.js} +43 -2
- package/dist/plugin-sdk/{web-CorFnJCI.js → web-HkDBSFef.js} +2 -2
- package/dist/{plugins-BzmbgY7s.js → plugins-Bkr5ZdYs.js} +9 -9
- package/dist/{plugins-cli-BMmiYArH.js → plugins-cli-B_ln22KG.js} +17 -17
- package/dist/{plugins-cli-CrN718uZ.js → plugins-cli-Bcmq1fs1.js} +2 -2
- package/dist/{program-NGbjPxJh.js → program-C_rxRb1M.js} +7 -7
- package/dist/{program-context-BqxG0w61.js → program-context-BqH8IVSK.js} +30 -30
- package/dist/{prompt-select-styled-B7SzTPf7.js → prompt-select-styled-D8WAeDQY.js} +8 -8
- package/dist/{prompt-select-styled-B1LZVYl0.js → prompt-select-styled-DMRbQO0q.js} +4 -4
- package/dist/{provider-auth-helpers--A-4LKUl.js → provider-auth-helpers-DiuVmtmQ.js} +1 -1
- package/dist/{provider-auth-helpers-CNEhLjMl.js → provider-auth-helpers-DstpUAya.js} +1 -1
- package/dist/{push-apns-DgT_gz_P.js → push-apns-DKU4DgbI.js} +1 -1
- package/dist/{push-apns-Cem8OlK7.js → push-apns-be2xWY22.js} +1 -1
- package/dist/{pw-ai-De-KR9_s.js → pw-ai-1htA-NnS.js} +1 -1
- package/dist/{pw-ai-m0mj2KWK.js → pw-ai-BTgmcNVp.js} +11 -11
- package/dist/{pw-ai-CC0xm0TY.js → pw-ai-DqL87js3.js} +1 -1
- package/dist/{qmd-manager-iDLSiI4Z.js → qmd-manager-BKu9rOuB.js} +7 -7
- package/dist/{register.agent-vP7gkHzk.js → register.agent-Dcd_oFsG.js} +6 -6
- package/dist/{register.agent-DT0doE92.js → register.agent-k7WxtPOd.js} +21 -21
- package/dist/{register.configure-BnkkCig3.js → register.configure-BOgCp-h4.js} +25 -25
- package/dist/{register.configure-B_W1y_ag.js → register.configure-DMHVPA-T.js} +6 -6
- package/dist/{register.maintenance-Br5q9f-j.js → register.maintenance-BdBlQQ6G.js} +8 -8
- package/dist/{register.maintenance-C0akYVa2.js → register.maintenance-Bsbgpe-Z.js} +22 -22
- package/dist/{register.message-mCGVBJsU.js → register.message-BE0gDUQZ.js} +17 -17
- package/dist/{register.message-CRaEakG_.js → register.message-DAyubW1M.js} +2 -2
- package/dist/{register.onboard-BvsYOovb.js → register.onboard-CTKa4O9W.js} +21 -21
- package/dist/{register.onboard-CV_3MiHm.js → register.onboard-CqavyaNa.js} +4 -4
- package/dist/{register.setup-BQqw49hm.js → register.setup-BO3CD8Pz.js} +21 -21
- package/dist/{register.setup-DFcMhPAd.js → register.setup-DpkI2F6r.js} +4 -4
- package/dist/{register.status-health-sessions-DlgKRa9S.js → register.status-health-sessions-C5Qa-DmU.js} +3 -3
- package/dist/{register.status-health-sessions-SAm9yGnr.js → register.status-health-sessions-ClDUpT3j.js} +19 -19
- package/dist/{register.subclis-CdANuuHY.js → register.subclis-Bvil7KuO.js} +9 -9
- package/dist/{registry-DYq1AYOv.js → registry-UkL38jvt.js} +17 -17
- package/dist/{replies-LSmuwOhA.js → replies-mfnbLu2p.js} +3 -3
- package/dist/{reply-CiPQDsZl.js → reply-4ilKYVzu.js} +64 -23
- package/dist/{reply-prefix-DpqZu44Z.js → reply-prefix-DkGsdyBm.js} +1 -1
- package/dist/{resolve-route-C4_I4GFI.js → resolve-route-q8AFnU5c.js} +4 -4
- package/dist/{retry-BBVXkKBV.js → retry-CqMeDhyp.js} +1 -1
- package/dist/{routes-BO8eMYxn.js → routes-Ba9CUQ8M.js} +2 -2
- package/dist/{rpc-BcyzUwtC.js → rpc-BfhojW8g.js} +1 -1
- package/dist/{run-main-z8u07ybv.js → run-main-D1n_tgGX.js} +14 -14
- package/dist/{runner-DUBExAb5.js → runner-BcQ0sF9T.js} +1 -1
- package/dist/{runner-CU9l0uJh.js → runner-CKYly94z.js} +22 -22
- package/dist/{runner-DxdRmWfW.js → runner-CUglpiFP.js} +2 -2
- package/dist/{sandbox-B7qoYkRl.js → sandbox-C-T6hOMv.js} +3 -3
- package/dist/{sandbox-cli-C-hbJJWM.js → sandbox-cli-BllVdQzR.js} +4 -4
- package/dist/{security-cli-CNzBZn7V.js → security-cli-BFLtWWHy.js} +8 -8
- package/dist/{send-DYj_o4_F.js → send-B7z8CDbr.js} +18 -18
- package/dist/{send-CQAKg_12.js → send-Cd81AY_Z.js} +7 -7
- package/dist/{send-CvhXrdgS.js → send-D3zDmQim.js} +10 -10
- package/dist/{send-DAN9hA5h.js → send-XRUYukww.js} +6 -6
- package/dist/{send-CVMyYPQw.js → send-qItpAHcI.js} +6 -6
- package/dist/{server-context-B-ra1emS.js → server-context-CEpFjqSk.js} +4 -4
- package/dist/{server-methods-Dwsrsy7D.js → server-methods-BRdl4pcP.js} +7 -7
- package/dist/{server-methods-D9jBWl7O.js → server-methods-VC0ahxUh.js} +14 -14
- package/dist/{server-node-events-9T-Sm9Q4.js → server-node-events-Bq2fr8Z3.js} +17 -17
- package/dist/{server-node-events-CUKIb7Xq.js → server-node-events-Y5xFGvsj.js} +2 -2
- package/dist/{session-DSU1vxxi.js → session-Dh2wWQkD.js} +8 -8
- package/dist/{skill-commands-DcVwOafC.js → skill-commands-B_f8uGi7.js} +16 -16
- package/dist/{skills-Bs0AW1g3.js → skills-CGHRETGF.js} +24 -24
- package/dist/{sqlite-D_mz1_-y.js → sqlite-Bv87EXeg.js} +16 -16
- package/dist/{status-DPk2qV91.js → status-BxNHXm7T.js} +1 -1
- package/dist/{status-Dqm_DV3z.js → status-CRCD2RpZ.js} +2 -2
- package/dist/{status-CB6N6XaA.js → status-DNJBoKuu.js} +1 -1
- package/dist/{status-UWWMuety.js → status-DOCg6R55.js} +5 -5
- package/dist/{store-01F_JM7O.js → store-Ea3zM6xK.js} +6 -6
- package/dist/{subagent-registry-DTIudfq4.js → subagent-registry-7wPEZQKK.js} +43 -2
- package/dist/{subsystem-BjyjJF-d.js → subsystem-DN75fnEF.js} +1 -1
- package/dist/{system-cli-_0h_FSPB.js → system-cli-UMsMEurS.js} +3 -3
- package/dist/{tables-qMwbq29u.js → tables-BX7_aBvN.js} +1 -1
- package/dist/{target-errors-Bbr9rlzN.js → target-errors-7KhTCTdS.js} +2 -2
- package/dist/{thinking-BprCy23Z.js → thinking-C9-JAUzD.js} +5 -5
- package/dist/{tokens-Bux9Y_xD.js → tokens-BZGy4v--.js} +1 -1
- package/dist/{tool-images-SqqWIT22.js → tool-images-B1qVCntj.js} +2 -2
- package/dist/{tool-loop-detection-DR_rrIA1.js → tool-loop-detection-C8FBZVVx.js} +3 -3
- package/dist/{tui-D0s_9S8b.js → tui-CriznorL.js} +3 -3
- package/dist/{tui-cli-gm9fv3M8.js → tui-cli-CSIdfCTR.js} +8 -8
- package/dist/{unified-runner-DdeRGc1w.js → unified-runner-quomT1T-.js} +261 -220
- package/dist/{update-cli-C55vGnoj.js → update-cli-CcyCWvCB.js} +8 -8
- package/dist/{update-cli-D8jX4yKe.js → update-cli-FOE23Lo4.js} +23 -23
- package/dist/{update-runner-B0ORHPYT.js → update-runner-CJg-OANA.js} +1 -1
- package/dist/{update-runner-CGsqW9Gu.js → update-runner-Dcjlf0aY.js} +1 -1
- package/dist/{web-DsGfc1GN.js → web-BTmqdXgt.js} +17 -17
- package/dist/{web-CRFt1vNo.js → web-CuNZExQK.js} +1 -1
- package/dist/{web-BC4kDUZw.js → web-DPBfrIzo.js} +6 -6
- package/dist/{web-nKQzj7wJ.js → web-DcHxbz2H.js} +57 -57
- package/dist/{whatsapp-actions-BIeSWsCF.js → whatsapp-actions-SXenaJIn.js} +23 -23
- package/dist/{with-timeout-BFdGltxb.js → with-timeout-gmK6RciS.js} +1 -1
- package/dist/{workspace-DscDraUb.js → workspace-DqJ5h-ZB.js} +27 -27
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import os from "node:os";
|
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { execFileSync, spawn } from "node:child_process";
|
|
11
11
|
import { createServer } from "node:http";
|
|
12
|
-
import WebSocket
|
|
12
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
13
13
|
|
|
14
14
|
//#region src/browser/constants.ts
|
|
15
15
|
const DEFAULT_SYMI_BROWSER_ENABLED = true;
|
|
@@ -123,7 +123,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
123
123
|
let nextExtensionId = 1;
|
|
124
124
|
const sendToExtension = async (payload) => {
|
|
125
125
|
const ws = extensionWs;
|
|
126
|
-
if (!ws || ws.readyState !== WebSocket
|
|
126
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
127
127
|
ws.send(JSON.stringify(payload));
|
|
128
128
|
return await new Promise((resolve, reject) => {
|
|
129
129
|
const timer = setTimeout(() => {
|
|
@@ -140,12 +140,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
140
140
|
const broadcastToCdpClients = (evt) => {
|
|
141
141
|
const msg = JSON.stringify(evt);
|
|
142
142
|
for (const ws of cdpClients) {
|
|
143
|
-
if (ws.readyState !== WebSocket
|
|
143
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
144
144
|
ws.send(msg);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
const sendResponseToCdp = (ws, res) => {
|
|
148
|
-
if (ws.readyState !== WebSocket
|
|
148
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
149
149
|
ws.send(JSON.stringify(res));
|
|
150
150
|
};
|
|
151
151
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -370,7 +370,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
370
370
|
wssExtension.on("connection", (ws) => {
|
|
371
371
|
extensionWs = ws;
|
|
372
372
|
const ping = setInterval(() => {
|
|
373
|
-
if (ws.readyState !== WebSocket
|
|
373
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
374
374
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
375
375
|
}, 5e3);
|
|
376
376
|
ws.on("message", (data) => {
|
|
@@ -688,7 +688,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
688
688
|
}
|
|
689
689
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
690
690
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
691
|
-
const ws = new WebSocket
|
|
691
|
+
const ws = new WebSocket(wsUrl, {
|
|
692
692
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
693
693
|
...Object.keys(headers).length ? { headers } : {}
|
|
694
694
|
});
|
|
@@ -1555,7 +1555,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1555
1555
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1556
1556
|
return await new Promise((resolve) => {
|
|
1557
1557
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1558
|
-
const ws = new WebSocket
|
|
1558
|
+
const ws = new WebSocket(wsUrl, {
|
|
1559
1559
|
handshakeTimeout: timeoutMs,
|
|
1560
1560
|
...Object.keys(headers).length ? { headers } : {}
|
|
1561
1561
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-
|
|
3
|
+
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DwDSKGn4.js";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/fences.ts
|
|
6
6
|
function parseFenceSpans(buffer) {
|
package/dist/cli/daemon-cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Legacy shim for pre-tsdown update-cli imports.
|
|
2
|
-
import * as daemonCli from "../daemon-cli-
|
|
2
|
+
import * as daemonCli from "../daemon-cli-DscwlsKW.js";
|
|
3
3
|
export const registerDaemonCli = daemonCli.t.registerDaemonCli;
|
|
4
4
|
export const runDaemonInstall = daemonCli.i;
|
|
5
5
|
export const runDaemonRestart = daemonCli.r;
|
|
@@ -13,7 +13,7 @@ import "./client-DMBZpU6X.js";
|
|
|
13
13
|
import "./call-BcE47FtD.js";
|
|
14
14
|
import "./message-channel-C9dERklz.js";
|
|
15
15
|
import "./pairing-token-Byh6drgn.js";
|
|
16
|
-
import { m as loadSymiPlugins } from "./subagent-registry-
|
|
16
|
+
import { m as loadSymiPlugins } from "./subagent-registry-7wPEZQKK.js";
|
|
17
17
|
import "./sessions-CJXnZVjR.js";
|
|
18
18
|
import "./tokens-Csntmwwn.js";
|
|
19
19
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-Cqn-zk3M.js";
|
|
2
2
|
import "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { ft as loadSymiPlugins } from "./reply-
|
|
4
|
+
import { ft as loadSymiPlugins } from "./reply-4ilKYVzu.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import { t as createSubsystemLogger } from "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -14,19 +14,19 @@ import "./message-channel-aT-I_DTX.js";
|
|
|
14
14
|
import "./send-CZr1hVHY.js";
|
|
15
15
|
import { i as loadConfig } from "./config-CHwyw6l5.js";
|
|
16
16
|
import "./manifest-registry-C4BxOMWX.js";
|
|
17
|
-
import "./runner-
|
|
18
|
-
import "./image-
|
|
17
|
+
import "./runner-CUglpiFP.js";
|
|
18
|
+
import "./image-D9uvDTrc.js";
|
|
19
19
|
import "./models-config-qyOXrOli.js";
|
|
20
20
|
import "./pi-model-discovery-4uUnLc3n.js";
|
|
21
|
-
import "./pi-embedded-helpers-
|
|
22
|
-
import "./sandbox-
|
|
23
|
-
import "./chrome-
|
|
21
|
+
import "./pi-embedded-helpers-CNPyv_ax.js";
|
|
22
|
+
import "./sandbox-C-T6hOMv.js";
|
|
23
|
+
import "./chrome-DtPkPq9T.js";
|
|
24
24
|
import "./tailscale-D5dKabOc.js";
|
|
25
25
|
import "./auth-B741uFtk.js";
|
|
26
|
-
import "./server-context-
|
|
26
|
+
import "./server-context-CEpFjqSk.js";
|
|
27
27
|
import "./frontmatter-DWQhtOo7.js";
|
|
28
28
|
import "./skills-6jdJQ5ZL.js";
|
|
29
|
-
import "./routes-
|
|
29
|
+
import "./routes-Ba9CUQ8M.js";
|
|
30
30
|
import "./redact-f-Q-hFt_.js";
|
|
31
31
|
import "./errors-BF3TeRH2.js";
|
|
32
32
|
import "./fs-safe-CUjO1ca2.js";
|
|
@@ -52,10 +52,10 @@ import "./fetch-guard-DOPkVbh3.js";
|
|
|
52
52
|
import "./api-key-rotation-CzuPlV2t.js";
|
|
53
53
|
import "./local-roots-aAFLQGkY.js";
|
|
54
54
|
import "./sqlite-Dx3J_aSE.js";
|
|
55
|
-
import "./model-catalog-
|
|
55
|
+
import "./model-catalog-DvBJ8pMD.js";
|
|
56
56
|
import "./tokens-BuceUQDl.js";
|
|
57
|
-
import "./with-timeout-
|
|
58
|
-
import "./deliver-
|
|
57
|
+
import "./with-timeout-gmK6RciS.js";
|
|
58
|
+
import "./deliver-CWR_98sK.js";
|
|
59
59
|
import "./diagnostic-DjBRPfu9.js";
|
|
60
60
|
import "./diagnostic-session-state-CUslJyKP.js";
|
|
61
61
|
import "./send-Cutb0ZDY.js";
|
|
@@ -71,8 +71,8 @@ import "./ir-DZam9q5M.js";
|
|
|
71
71
|
import "./render-CXDO_kgw.js";
|
|
72
72
|
import "./commands-BNLCWX6e.js";
|
|
73
73
|
import "./commands-registry-BT0-zzs3.js";
|
|
74
|
-
import "./client-
|
|
75
|
-
import "./call-
|
|
74
|
+
import "./client-CQSyCS4M.js";
|
|
75
|
+
import "./call-CJaS1iRF.js";
|
|
76
76
|
import "./pairing-token-CX3NN_qj.js";
|
|
77
77
|
import "./channel-activity-BOiuJS3t.js";
|
|
78
78
|
import "./fetch-DTNGXEzX.js";
|
|
@@ -92,13 +92,13 @@ import "./session-cost-usage-UxUgrslM.js";
|
|
|
92
92
|
import "./outbound-attachment-mQQiYZ3C.js";
|
|
93
93
|
import "./delivery-queue-CxuV9EeG.js";
|
|
94
94
|
import "./send-DWYkPSUs.js";
|
|
95
|
-
import "./onboard-helpers-
|
|
95
|
+
import "./onboard-helpers-ZmZYzlq3.js";
|
|
96
96
|
import "./prompt-style-8JqOYj0q.js";
|
|
97
97
|
import "./pairing-labels-2S6x2UoV.js";
|
|
98
98
|
import "./exec-approvals-Kn31mBcW.js";
|
|
99
99
|
import "./nodes-screen-VBGXKdLk.js";
|
|
100
|
-
import "./pi-tools.policy-
|
|
101
|
-
import "./control-service-
|
|
100
|
+
import "./pi-tools.policy-CIDBbw6x.js";
|
|
101
|
+
import "./control-service-Bz7rxLWq.js";
|
|
102
102
|
import "./stagger-BUClb97_.js";
|
|
103
103
|
import "./channel-selection-DuWs0Aak.js";
|
|
104
104
|
|
|
@@ -8,7 +8,7 @@ import fs from "node:fs";
|
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto, { randomUUID } from "node:crypto";
|
|
10
10
|
import AjvPkg from "ajv";
|
|
11
|
-
import { WebSocket } from "ws";
|
|
11
|
+
import { WebSocket as WebSocket$1 } from "ws";
|
|
12
12
|
import { Type } from "@sinclair/typebox";
|
|
13
13
|
|
|
14
14
|
//#region src/infra/device-identity.ts
|
|
@@ -1968,7 +1968,7 @@ var GatewayClient = class {
|
|
|
1968
1968
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
1971
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
1972
1972
|
this.ws.on("open", () => {
|
|
1973
1973
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
1974
1974
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -2187,7 +2187,7 @@ var GatewayClient = class {
|
|
|
2187
2187
|
return null;
|
|
2188
2188
|
}
|
|
2189
2189
|
async request(method, params, opts) {
|
|
2190
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
2190
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
2191
2191
|
const id = randomUUID();
|
|
2192
2192
|
const frame = {
|
|
2193
2193
|
type: "req",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { an as getPrimaryCommand, cn as hasHelpOrVersion } from "./entry.js";
|
|
3
|
-
import { i as registerSubCliCommands, o as reparseProgramFromActionArgs } from "./register.subclis-
|
|
3
|
+
import { i as registerSubCliCommands, o as reparseProgramFromActionArgs } from "./register.subclis-Bvil7KuO.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/program/command-registry.ts
|
|
6
6
|
var command_registry_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -22,7 +22,7 @@ const coreEntries = [
|
|
|
22
22
|
hasSubcommands: false
|
|
23
23
|
}],
|
|
24
24
|
register: async ({ program }) => {
|
|
25
|
-
(await import("./register.setup-
|
|
25
|
+
(await import("./register.setup-DpkI2F6r.js")).registerSetupCommand(program);
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -32,7 +32,7 @@ const coreEntries = [
|
|
|
32
32
|
hasSubcommands: false
|
|
33
33
|
}],
|
|
34
34
|
register: async ({ program }) => {
|
|
35
|
-
(await import("./register.onboard-
|
|
35
|
+
(await import("./register.onboard-CqavyaNa.js")).registerOnboardCommand(program);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -42,7 +42,7 @@ const coreEntries = [
|
|
|
42
42
|
hasSubcommands: false
|
|
43
43
|
}],
|
|
44
44
|
register: async ({ program }) => {
|
|
45
|
-
(await import("./register.configure-
|
|
45
|
+
(await import("./register.configure-DMHVPA-T.js")).registerConfigureCommand(program);
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -52,7 +52,7 @@ const coreEntries = [
|
|
|
52
52
|
hasSubcommands: true
|
|
53
53
|
}],
|
|
54
54
|
register: async ({ program }) => {
|
|
55
|
-
(await import("./config-cli-
|
|
55
|
+
(await import("./config-cli-DG0xBZhs.js")).registerConfigCli(program);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
@@ -79,7 +79,7 @@ const coreEntries = [
|
|
|
79
79
|
}
|
|
80
80
|
],
|
|
81
81
|
register: async ({ program }) => {
|
|
82
|
-
(await import("./register.maintenance-
|
|
82
|
+
(await import("./register.maintenance-BdBlQQ6G.js")).registerMaintenanceCommands(program);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -89,7 +89,7 @@ const coreEntries = [
|
|
|
89
89
|
hasSubcommands: true
|
|
90
90
|
}],
|
|
91
91
|
register: async ({ program, ctx }) => {
|
|
92
|
-
(await import("./register.message-
|
|
92
|
+
(await import("./register.message-DAyubW1M.js")).registerMessageCommands(program, ctx);
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
@@ -113,7 +113,7 @@ const coreEntries = [
|
|
|
113
113
|
hasSubcommands: true
|
|
114
114
|
}],
|
|
115
115
|
register: async ({ program, ctx }) => {
|
|
116
|
-
(await import("./register.agent-
|
|
116
|
+
(await import("./register.agent-Dcd_oFsG.js")).registerAgentCommands(program, { agentChannelOptions: ctx.agentChannelOptions });
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
@@ -135,7 +135,7 @@ const coreEntries = [
|
|
|
135
135
|
}
|
|
136
136
|
],
|
|
137
137
|
register: async ({ program }) => {
|
|
138
|
-
(await import("./register.status-health-sessions-
|
|
138
|
+
(await import("./register.status-health-sessions-C5Qa-DmU.js")).registerStatusHealthSessionsCommands(program);
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { D as escapeRegExp, W as isPlainObject, c as getActivePluginRegistry } from "./registry-
|
|
3
|
-
import { T as resolveConfiguredModelRef, X as DEFAULT_MODEL, Z as DEFAULT_PROVIDER } from "./auth-profiles-
|
|
4
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
5
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
2
|
+
import { D as escapeRegExp, W as isPlainObject, c as getActivePluginRegistry } from "./registry-UkL38jvt.js";
|
|
3
|
+
import { T as resolveConfiguredModelRef, X as DEFAULT_MODEL, Z as DEFAULT_PROVIDER } from "./auth-profiles-Bl9aU7fc.js";
|
|
4
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-C9-JAUzD.js";
|
|
5
|
+
import { r as normalizeChannelId } from "./plugins-Bkr5ZdYs.js";
|
|
6
6
|
|
|
7
7
|
//#region src/config/commands.ts
|
|
8
8
|
function resolveAutoDefault(providerId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Yt as resolveStateDir, l as routeLogsToStderr, nt as pathExists } from "./entry.js";
|
|
3
|
-
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-
|
|
4
|
-
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-
|
|
3
|
+
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-Bvil7KuO.js";
|
|
4
|
+
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-DwBw5-nh.js";
|
|
5
5
|
import { t as getProgramContext } from "./program-context-CqzR_m-7.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-Cqn-zk3M.js";
|
|
3
3
|
import { h as pathExists } from "./utils-B-0b9bGM.js";
|
|
4
4
|
import { i as routeLogsToStderr } from "./subsystem-D9vIQve0.js";
|
|
5
|
-
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-
|
|
5
|
+
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-BqH8IVSK.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as resolveConfigPath, r as resolveDefaultConfigCandidates, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { n as resolveConfigPath, r as resolveDefaultConfigCandidates, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-CYmyCDsE.js";
|
|
2
2
|
import { s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { I as resolveUserPath, P as resolveConfigDir, W as isPlainObject$1, k as isRecord, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
4
|
-
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { G as loadShellEnvFallback, J as shouldEnableShellEnvFallback, K as resolveShellEnvFallbackTimeoutMs, Y as DEFAULT_CONTEXT_TOKENS, q as shouldDeferShellEnvFallback, w as parseModelRef } from "./auth-profiles-
|
|
6
|
-
import { c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, f as normalizeEnvVarKey, l as isPathInside, o as normalizePluginsConfig, s as resolveEnableState, t as loadPluginManifestRegistry } from "./manifest-registry-
|
|
3
|
+
import { I as resolveUserPath, P as resolveConfigDir, W as isPlainObject$1, k as isRecord, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-UkL38jvt.js";
|
|
4
|
+
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-D68_xfTL.js";
|
|
5
|
+
import { G as loadShellEnvFallback, J as shouldEnableShellEnvFallback, K as resolveShellEnvFallbackTimeoutMs, Y as DEFAULT_CONTEXT_TOKENS, q as shouldDeferShellEnvFallback, w as parseModelRef } from "./auth-profiles-Bl9aU7fc.js";
|
|
6
|
+
import { c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, f as normalizeEnvVarKey, l as isPathInside, o as normalizePluginsConfig, s as resolveEnableState, t as loadPluginManifestRegistry } from "./manifest-registry-0J48biqr.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import fsSync from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import JSON5 from "json5";
|
|
12
12
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -20,7 +20,7 @@ function loadDotEnv(opts) {
|
|
|
20
20
|
const quiet = opts?.quiet ?? true;
|
|
21
21
|
dotenv.config({ quiet });
|
|
22
22
|
const globalEnvPath = path.join(resolveConfigDir(process.env), ".env");
|
|
23
|
-
if (!
|
|
23
|
+
if (!fsSync.existsSync(globalEnvPath)) return;
|
|
24
24
|
dotenv.config({
|
|
25
25
|
quiet,
|
|
26
26
|
path: globalEnvPath,
|
|
@@ -156,7 +156,7 @@ function resolveAgentMaxConcurrent(cfg) {
|
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/config/talk.ts
|
|
158
158
|
function readTalkApiKeyFromProfile(deps = {}) {
|
|
159
|
-
const fsImpl = deps.fs ??
|
|
159
|
+
const fsImpl = deps.fs ?? fsSync;
|
|
160
160
|
const osImpl = deps.os ?? os;
|
|
161
161
|
const pathImpl = deps.path ?? path;
|
|
162
162
|
const home = osImpl.homedir();
|
|
@@ -849,7 +849,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
849
849
|
const normalized = path.normalize(resolved);
|
|
850
850
|
if (!isPathInside(this.rootDir, normalized)) throw new ConfigIncludeError(`Include path escapes config directory: ${includePath} (root: ${this.rootDir})`, includePath);
|
|
851
851
|
try {
|
|
852
|
-
const real =
|
|
852
|
+
const real = fsSync.realpathSync(normalized);
|
|
853
853
|
if (!isPathInside(this.rootRealDir, real)) throw new ConfigIncludeError(`Include path resolves outside config directory (symlink): ${includePath} (root: ${this.rootDir})`, includePath);
|
|
854
854
|
} catch (err) {
|
|
855
855
|
if (err instanceof ConfigIncludeError) throw err;
|
|
@@ -885,13 +885,13 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
885
885
|
};
|
|
886
886
|
function safeRealpath(target) {
|
|
887
887
|
try {
|
|
888
|
-
return
|
|
888
|
+
return fsSync.realpathSync(target);
|
|
889
889
|
} catch {
|
|
890
890
|
return target;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
const defaultResolver = {
|
|
894
|
-
readFile: (p) =>
|
|
894
|
+
readFile: (p) => fsSync.readFileSync(p, "utf-8"),
|
|
895
895
|
parseJson: (raw) => JSON5.parse(raw)
|
|
896
896
|
};
|
|
897
897
|
/**
|
|
@@ -5583,7 +5583,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
5583
5583
|
}
|
|
5584
5584
|
function normalizeDeps(overrides = {}) {
|
|
5585
5585
|
return {
|
|
5586
|
-
fs: overrides.fs ??
|
|
5586
|
+
fs: overrides.fs ?? fsSync,
|
|
5587
5587
|
json5: overrides.json5 ?? JSON5,
|
|
5588
5588
|
env: overrides.env ?? process.env,
|
|
5589
5589
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
@@ -206,7 +206,7 @@ async function runConfigUnset(opts) {
|
|
|
206
206
|
}
|
|
207
207
|
function registerConfigCli(program) {
|
|
208
208
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset). Run without subcommand for the setup wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.symi.ai/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
209
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
209
|
+
const { configureCommandFromSectionsArg } = await import("./configure-nxnXIUVI.js").then((n) => n.t);
|
|
210
210
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
211
211
|
});
|
|
212
212
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -201,7 +201,7 @@ async function runConfigUnset(opts) {
|
|
|
201
201
|
}
|
|
202
202
|
function registerConfigCli(program) {
|
|
203
203
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset). Run without subcommand for the setup wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.symi.ai/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
204
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
204
|
+
const { configureCommandFromSectionsArg } = await import("./configure-DlVtomYJ.js").then((n) => n.t);
|
|
205
205
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
206
206
|
});
|
|
207
207
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -11,14 +11,14 @@ import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint }
|
|
|
11
11
|
import { t as note$1 } from "./note-DDecZomM.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-m1IJwIAx.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-B1aVoXd5.js";
|
|
14
|
-
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
14
|
+
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-B6yLPqH5.js";
|
|
15
15
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CfRwa6qh.js";
|
|
16
16
|
import { t as resolveGatewayService } from "./service-Cm9j9WzQ.js";
|
|
17
|
-
import { r as healthCommand } from "./health-
|
|
17
|
+
import { r as healthCommand } from "./health-BiipZUOd.js";
|
|
18
18
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-BseSWee1.js";
|
|
19
19
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
20
20
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-DVcYPG2v.js";
|
|
21
|
-
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-
|
|
21
|
+
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-C1sul2-I.js";
|
|
22
22
|
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-D5nCutGW.js";
|
|
23
23
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-DA_LW52P.js";
|
|
24
24
|
import { a as promptCustomApiConfig } from "./onboard-custom-DdWPfzJO.js";
|
|
@@ -8,26 +8,26 @@ import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot } fr
|
|
|
8
8
|
import { a as findTailscaleBinary } from "./tailscale-D5dKabOc.js";
|
|
9
9
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-DKDeQZF0.js";
|
|
10
10
|
import { n as withProgress } from "./progress-jIePzvGA.js";
|
|
11
|
-
import { a as ensureWorkspaceAndSessions, b as waitForGatewayReachable, g as resolveControlUiLinks, h as randomToken, m as probeGatewayReachable, n as applyWizardMetadata, p as printWizardHeader, s as guardCancel, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as summarizeExistingConfig, y as validateGatewayPasswordInput } from "./onboard-helpers-
|
|
11
|
+
import { a as ensureWorkspaceAndSessions, b as waitForGatewayReachable, g as resolveControlUiLinks, h as randomToken, m as probeGatewayReachable, n as applyWizardMetadata, p as printWizardHeader, s as guardCancel, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as summarizeExistingConfig, y as validateGatewayPasswordInput } from "./onboard-helpers-ZmZYzlq3.js";
|
|
12
12
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-8JqOYj0q.js";
|
|
13
13
|
import { t as note$1 } from "./note-DeHoW7xO.js";
|
|
14
14
|
import { t as WizardCancelledError } from "./prompts-Xu2Sveka.js";
|
|
15
15
|
import { t as createClackPrompter } from "./clack-prompter-B7pN13HV.js";
|
|
16
|
-
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
16
|
+
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-DSZzjOo1.js";
|
|
17
17
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-2mwX-jqj.js";
|
|
18
18
|
import { t as resolveGatewayService } from "./service-Cl74hx8J.js";
|
|
19
|
-
import { r as healthCommand } from "./health-
|
|
19
|
+
import { r as healthCommand } from "./health-Dzi6letr.js";
|
|
20
20
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-Z947tKLt.js";
|
|
21
21
|
import { n as logConfigUpdated } from "./logging-BzzwiKjv.js";
|
|
22
22
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-BLzEBA1v.js";
|
|
23
|
-
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-
|
|
24
|
-
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-
|
|
23
|
+
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-i7tTgbDd.js";
|
|
24
|
+
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-Ddo3jHe-.js";
|
|
25
25
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-aQ75ZlXY.js";
|
|
26
|
-
import { a as promptCustomApiConfig } from "./onboard-custom-
|
|
26
|
+
import { a as promptCustomApiConfig } from "./onboard-custom-C7O-zfQ1.js";
|
|
27
27
|
import { i as TAILSCALE_MISSING_BIN_NOTE_LINES, n as TAILSCALE_DOCS_LINES, r as TAILSCALE_EXPOSURE_OPTIONS, t as validateIPv4AddressInput } from "./ipv4-CxY-xbsH.js";
|
|
28
28
|
import { t as formatHealthCheckFailure } from "./health-format-DSwnXZPU.js";
|
|
29
|
-
import { n as promptRemoteGatewayConfig } from "./onboard-remote-
|
|
30
|
-
import { n as setupSkills } from "./onboard-skills-
|
|
29
|
+
import { n as promptRemoteGatewayConfig } from "./onboard-remote-zUjD7UtM.js";
|
|
30
|
+
import { n as setupSkills } from "./onboard-skills-BB0YhUmF.js";
|
|
31
31
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
32
32
|
|
|
33
33
|
//#region src/commands/configure.shared.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-D9vIQve0.js";
|
|
3
3
|
import { i as loadConfig } from "./config-CHwyw6l5.js";
|
|
4
|
-
import { x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
5
|
-
import { a as resolveProfile, i as resolveBrowserConfig, n as listKnownProfileNames, p as ensureBrowserControlAuth, t as createBrowserRouteContext } from "./server-context-
|
|
4
|
+
import { x as ensureChromeExtensionRelayServer } from "./chrome-DtPkPq9T.js";
|
|
5
|
+
import { a as resolveProfile, i as resolveBrowserConfig, n as listKnownProfileNames, p as ensureBrowserControlAuth, t as createBrowserRouteContext } from "./server-context-CEpFjqSk.js";
|
|
6
6
|
|
|
7
7
|
//#region src/browser/server-lifecycle.ts
|
|
8
8
|
async function ensureExtensionRelayForProfiles(params) {
|
|
@@ -80,7 +80,7 @@ async function stopBrowserControlService() {
|
|
|
80
80
|
});
|
|
81
81
|
state = null;
|
|
82
82
|
try {
|
|
83
|
-
await (await import("./pw-ai-
|
|
83
|
+
await (await import("./pw-ai-DqL87js3.js")).closePlaywrightBrowserConnection();
|
|
84
84
|
} catch {}
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -16,15 +16,15 @@ import { n as listChannelPlugins } from "./plugins-DKDeQZF0.js";
|
|
|
16
16
|
import "./accounts-DDuIpcln.js";
|
|
17
17
|
import "./bindings-DFaVVCsf.js";
|
|
18
18
|
import "./logging-w5jq5901.js";
|
|
19
|
-
import "./client-
|
|
20
|
-
import "./call-
|
|
19
|
+
import "./client-CQSyCS4M.js";
|
|
20
|
+
import "./call-CJaS1iRF.js";
|
|
21
21
|
import "./pairing-token-CX3NN_qj.js";
|
|
22
22
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
23
23
|
import "./progress-jIePzvGA.js";
|
|
24
24
|
import { n as formatDurationHuman } from "./format-duration-D0B0Uo-I.js";
|
|
25
25
|
import { i as parseAbsoluteTimeMs, n as resolveCronStaggerMs } from "./stagger-BUClb97_.js";
|
|
26
26
|
import { n as parsePositiveIntOrUndefined } from "./helpers-By2rxBQ5.js";
|
|
27
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
27
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BxkKeCZ0.js";
|
|
28
28
|
|
|
29
29
|
//#region src/cli/cron-cli/shared.ts
|
|
30
30
|
const getCronChannelOptions = () => ["last", ...listChannelPlugins().map((plugin) => plugin.id)].join("|");
|
|
@@ -9,10 +9,10 @@ import { n as pickPrimaryTailnetIPv4 } from "./tailnet-B2SPYrh4.js";
|
|
|
9
9
|
import { u as resolveGatewayBindHost } from "./ws-C7EXRv8z.js";
|
|
10
10
|
import { a as resolveGatewayAuth } from "./auth-B741uFtk.js";
|
|
11
11
|
import { a as inspectPortUsage, s as formatPortDiagnostics } from "./ports-BOmtxoTv.js";
|
|
12
|
-
import { n as callGateway } from "./call-
|
|
12
|
+
import { n as callGateway } from "./call-CJaS1iRF.js";
|
|
13
13
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
14
14
|
import { n as withProgress } from "./progress-jIePzvGA.js";
|
|
15
|
-
import { g as resolveControlUiLinks, h as randomToken } from "./onboard-helpers-
|
|
15
|
+
import { g as resolveControlUiLinks, h as randomToken } from "./onboard-helpers-ZmZYzlq3.js";
|
|
16
16
|
import { n as isWSLEnv } from "./wsl-C4424szg.js";
|
|
17
17
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName } from "./constants-C8_BLnaW.js";
|
|
18
18
|
import { n as inheritOptionFromParent } from "./command-options-BtDai3oC.js";
|
|
@@ -5,7 +5,7 @@ import { c as getActivePluginRegistry, v as createInternalHookEvent, y as trigge
|
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-CZixfwU8.js";
|
|
6
6
|
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Cn6drXx2.js";
|
|
7
7
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-71oIavrF.js";
|
|
8
|
-
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-
|
|
8
|
+
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-B8kqLWns.js";
|
|
9
9
|
import { d as getChannelDock } from "./thinking-W85Rb32m.js";
|
|
10
10
|
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-DTMTDXwE.js";
|
|
11
11
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-DawaaZEe.js";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as normalizeOptionalAccountId, h as normalizeAccountId } from "./session-key-DCt45XZa.js";
|
|
3
3
|
import { C as createInternalHookEvent, T as triggerInternalHook, d as getActivePluginRegistry } from "./registry-Cja8eT7G.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-D9vIQve0.js";
|
|
5
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
5
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-CNPyv_ax.js";
|
|
6
6
|
import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript } from "./sessions-DgYpBvse.js";
|
|
7
7
|
import { t as getChannelDock } from "./dock-BhS32F6E.js";
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DKDeQZF0.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-CYmyCDsE.js";
|
|
3
3
|
import { m as normalizeOptionalAccountId, p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { c as getActivePluginRegistry, v as createInternalHookEvent, x as triggerInternalHook } from "./registry-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-
|
|
7
|
-
import { d as getChannelDock } from "./thinking-
|
|
8
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
10
|
-
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-
|
|
11
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
12
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
13
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
4
|
+
import { c as getActivePluginRegistry, v as createInternalHookEvent, x as triggerInternalHook } from "./registry-UkL38jvt.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-DN75fnEF.js";
|
|
6
|
+
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-BU8EZuwx.js";
|
|
7
|
+
import { d as getChannelDock } from "./thinking-C9-JAUzD.js";
|
|
8
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Bkr5ZdYs.js";
|
|
9
|
+
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BZGy4v--.js";
|
|
10
|
+
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-DR8ukp6r.js";
|
|
11
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-tW9bGjLM.js";
|
|
12
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-CdXg5-Cx.js";
|
|
13
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-XRUYukww.js";
|
|
14
14
|
import path from "node:path";
|
|
15
|
-
import
|
|
15
|
+
import fsSync from "node:fs";
|
|
16
16
|
import crypto from "node:crypto";
|
|
17
17
|
|
|
18
18
|
//#region src/plugins/hooks.ts
|
|
@@ -721,11 +721,11 @@ function resolveFailedDir(stateDir) {
|
|
|
721
721
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
722
722
|
async function ensureQueueDir(stateDir) {
|
|
723
723
|
const queueDir = resolveQueueDir(stateDir);
|
|
724
|
-
await
|
|
724
|
+
await fsSync.promises.mkdir(queueDir, {
|
|
725
725
|
recursive: true,
|
|
726
726
|
mode: 448
|
|
727
727
|
});
|
|
728
|
-
await
|
|
728
|
+
await fsSync.promises.mkdir(resolveFailedDir(stateDir), {
|
|
729
729
|
recursive: true,
|
|
730
730
|
mode: 448
|
|
731
731
|
});
|
|
@@ -752,18 +752,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
752
752
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
753
753
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
754
754
|
const json = JSON.stringify(entry, null, 2);
|
|
755
|
-
await
|
|
755
|
+
await fsSync.promises.writeFile(tmp, json, {
|
|
756
756
|
encoding: "utf-8",
|
|
757
757
|
mode: 384
|
|
758
758
|
});
|
|
759
|
-
await
|
|
759
|
+
await fsSync.promises.rename(tmp, filePath);
|
|
760
760
|
return id;
|
|
761
761
|
}
|
|
762
762
|
/** Remove a successfully delivered entry from the queue. */
|
|
763
763
|
async function ackDelivery(id, stateDir) {
|
|
764
764
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
765
765
|
try {
|
|
766
|
-
await
|
|
766
|
+
await fsSync.promises.unlink(filePath);
|
|
767
767
|
} catch (err) {
|
|
768
768
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
769
769
|
}
|
|
@@ -771,16 +771,16 @@ async function ackDelivery(id, stateDir) {
|
|
|
771
771
|
/** Update a queue entry after a failed delivery attempt. */
|
|
772
772
|
async function failDelivery(id, error, stateDir) {
|
|
773
773
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
774
|
-
const raw = await
|
|
774
|
+
const raw = await fsSync.promises.readFile(filePath, "utf-8");
|
|
775
775
|
const entry = JSON.parse(raw);
|
|
776
776
|
entry.retryCount += 1;
|
|
777
777
|
entry.lastError = error;
|
|
778
778
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
779
|
-
await
|
|
779
|
+
await fsSync.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
780
780
|
encoding: "utf-8",
|
|
781
781
|
mode: 384
|
|
782
782
|
});
|
|
783
|
-
await
|
|
783
|
+
await fsSync.promises.rename(tmp, filePath);
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
//#endregion
|