@symerian/symi 3.4.27 → 3.4.29
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-DOOj3Gzb.js → agent-CQlyTNu-.js} +1 -1
- package/dist/{agent-CiqPWDUd.js → agent-N_J2cDO6.js} +18 -18
- package/dist/{agent-scope-Bnsyyeci.js → agent-scope-DOrZjOnW.js} +18 -18
- package/dist/{agents-BBQfFoen.js → agents-1xmRO246.js} +2 -2
- package/dist/{agents.config-Dm3oLpYK.js → agents.config-BJ9RIQlb.js} +1 -1
- package/dist/{audit-BSX7fMfc.js → audit-DCwHws4M.js} +20 -20
- package/dist/{auth-choice-rhBmet5i.js → auth-choice-DwXdS4c2.js} +11 -11
- package/dist/{auth-choice-BYbTjWcs.js → auth-choice-Ryx7oj6G.js} +1 -1
- package/dist/{auth-profiles-D5nYBj_Z.js → auth-profiles-Ce7R_25e.js} +2 -2
- package/dist/{auth-token-CAV1oLQG.js → auth-token-DgRRSbEX.js} +3 -3
- package/dist/{banner-C1qG5Rm9.js → banner-CxMQaUgh.js} +1 -1
- package/dist/{browser-cli-De8jg4-F.js → browser-cli-C3hfJNZy.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +2 -2
- package/dist/{call-CW8U1BPq.js → call-BouPakqe.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CJD7jwYg.js → channel-options-WR29vfWK.js} +1 -1
- package/dist/{channel-options-BsXUgCMq.js → channel-options-n9C_ovb1.js} +1 -1
- package/dist/{channels-cli-Dxn5n9e4.js → channels-cli-Cs-Uq67O.js} +7 -7
- package/dist/{channels-cli-Bao4VNbH.js → channels-cli-DbFGI3vF.js} +57 -57
- package/dist/{chrome-pFBxO63W.js → chrome-rzK8edU7.js} +2 -2
- package/dist/{cli-WP38F9C5.js → cli-7ceDvtPc.js} +45 -45
- package/dist/{cli-CrhLSz3t.js → cli-D55pCJ8Q.js} +4 -4
- package/dist/{client-T5P9umyG.js → client-BzUAFrla.js} +1 -1
- package/dist/{command-registry-DoXcG7FZ.js → command-registry-DAy62yhH.js} +10 -10
- package/dist/{commands-registry-BjcGLk4v.js → commands-registry-VfAQOVZO.js} +1 -1
- package/dist/{completion-cli-C0SXi7ya.js → completion-cli-Bc1jojml.js} +12 -12
- package/dist/{completion-cli-DaWi3_ux.js → completion-cli-Bh-Y2NVp.js} +2 -2
- package/dist/{config-D-PYSlE8.js → config-D7SS4vdk.js} +2 -2
- package/dist/{config-cli-DXKm0pS5.js → config-cli-BxRcn2oD.js} +1 -1
- package/dist/{config-cli-DS67KtKf.js → config-cli-DupKETmw.js} +4 -4
- package/dist/{config-guard-xLTTFANi.js → config-guard-BGAQzX2K.js} +6 -6
- package/dist/{config-validation-C4wGq3rz.js → config-validation-COcIIMNe.js} +1 -1
- package/dist/{configure-B99YJJb0.js → configure-0XYm59w7.js} +14 -14
- package/dist/{configure-CzO4_jJJ.js → configure-BilM_Fgn.js} +2 -2
- package/dist/{consolidate-BB4BOQIN.js → consolidate-DI20-Wtn.js} +6 -6
- package/dist/{control-service-y53w3Jzy.js → control-service-Ry7Le68N.js} +4 -4
- package/dist/{control-ui-assets-Dryy7mCE.js → control-ui-assets-DuDhl0co.js} +1 -1
- package/dist/{cron-cli-BMblAFRK.js → cron-cli-DHFgjr_X.js} +7 -7
- package/dist/{daemon-cli-BJGNf5qV.js → daemon-cli-fC2R9YZd.js} +11 -11
- package/dist/{daemon-runtime-u4p9jsEF.js → daemon-runtime-tZgIbDPz.js} +10 -10
- package/dist/{deliver-C79-Umbk.js → deliver-DB4v0Tyl.js} +2 -2
- package/dist/{deps-UA1UBhl7.js → deps-BlmO-MfQ.js} +1 -1
- package/dist/{devices-cli-wsTs-nti.js → devices-cli-DtkKN4l0.js} +6 -6
- package/dist/{diagnostics-oW0LBW-t.js → diagnostics-tVJR9V0_.js} +5 -5
- package/dist/{directory-cli-D8As6t8Z.js → directory-cli-Bfy_ejW2.js} +3 -3
- package/dist/{dm-policy-shared-DRJrFKqJ.js → dm-policy-shared-CBlUyDSX.js} +1 -1
- package/dist/{dns-cli-BKOTBn3n.js → dns-cli-DzKaV6NZ.js} +3 -3
- package/dist/{docs-cli-D5j7Nmz2.js → docs-cli-a90_8wuN.js} +1 -1
- package/dist/{doctor-completion-mev5PRjN.js → doctor-completion-B6OPl_GZ.js} +2 -2
- package/dist/{doctor-completion-B1YCzbvi.js → doctor-completion-BZJWX3Dr.js} +1 -1
- package/dist/{doctor-config-flow-Uv41seME.js → doctor-config-flow-30ZEvATb.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-B4ry9s5r.js → exec-approvals-cli-C3gZAwV8.js} +13 -13
- package/dist/extensionAPI.js +2 -2
- package/dist/{file-lock-2AecMjCa.js → file-lock-BVUYnlQv.js} +8 -8
- package/dist/{fs-safe-B0Is-oLk.js → fs-safe-BdejYjW8.js} +6 -6
- package/dist/{gateway-cli-B3JVj_dv.js → gateway-cli-CyhLb-zS.js} +98 -98
- package/dist/{gateway-cli-Chnp6icp.js → gateway-cli-DQhYa6AL.js} +10 -10
- package/dist/{gateway-rpc-CLzM6ugo.js → gateway-rpc-DNq7EMhm.js} +1 -1
- package/dist/{glass-ui-ws-5o8dvEZO.js → glass-ui-ws-CLDbMDPk.js} +8 -8
- package/dist/{glass-ui-ws--GjxFRyX.js → glass-ui-ws-SJVljtUx.js} +67 -67
- package/dist/{health-D2th0Ip6.js → health-DZ0aipDZ.js} +4 -4
- package/dist/{hooks-cli-B4Nvp9AV.js → hooks-cli-BMRj13QU.js} +59 -59
- package/dist/{hooks-cli-B_sZth4r.js → hooks-cli-BVtdP5x7.js} +5 -5
- package/dist/{image-ops-BzCBIakN.js → image-ops-L70xVnpG.js} +10 -10
- package/dist/index.js +52 -52
- package/dist/{inspect-U3g9owQ8.js → inspect-CXsOujVt.js} +4 -4
- package/dist/{install-safe-path-BwMMOh9z.js → install-safe-path-D5gi-nfu.js} +11 -11
- package/dist/{installs-vdi1BESF.js → installs-DF_LhGX6.js} +10 -10
- package/dist/{internal-csqU78gW.js → internal-DVCddhhN.js} +9 -9
- package/dist/{lifecycle-core-BfmNlC-k.js → lifecycle-core-Bvdl2ShM.js} +5 -5
- package/dist/llm-slug-generator.js +2 -2
- package/dist/{local-roots-2Jb79HZ8.js → local-roots-CgDCgCuM.js} +1 -1
- package/dist/{logs-cli-COZzdFu6.js → logs-cli-mdSEYBKS.js} +7 -7
- package/dist/{manager-DyYRwHZt.js → manager-BLg6zbeA.js} +15 -15
- package/dist/{manager-BfbQb9qM.js → manager-BhIaahpm.js} +1 -1
- package/dist/{manager-Bryhc0Ip.js → manager-BsQIpjy1.js} +1 -1
- package/dist/{manager-C5FGNRjL.js → manager-CtDuNn2T.js} +1 -1
- package/dist/{memory-DgDnTEcB.js → memory-B4DsKRSc.js} +5 -5
- package/dist/{memory-Cypj1lBQ.js → memory-BENbCb4f.js} +2 -2
- package/dist/{memory-cli-DB7UIev4.js → memory-cli-BIjwqjBx.js} +2 -2
- package/dist/{memory-cli-CfJkD7mO.js → memory-cli-DotHyA76.js} +12 -12
- package/dist/{model-DbILYCfo.js → model-DsMHOvMn.js} +1 -1
- package/dist/{model-auth-_C07_3Yr.js → model-auth-1EAQvYRv.js} +2 -2
- package/dist/{model-catalog-CeqDEWGz.js → model-catalog-DQTmHZK7.js} +3 -3
- package/dist/{model-picker-C_f6MALt.js → model-picker-D4TY_tPx.js} +5 -5
- package/dist/{model-selection-CCTzD29o.js → model-selection-7wdmO-Iw.js} +1 -1
- package/dist/{models-Bpqeds64.js → models-CmToZKBp.js} +2 -2
- package/dist/{models-cli-BUWfj5iJ.js → models-cli-CZgkOUZB.js} +55 -55
- package/dist/{models-cli-Bc47WFhD.js → models-cli-Di7iKhD4.js} +6 -6
- package/dist/{models-config-Dp5-tBqs.js → models-config-CRnTzdFs.js} +8 -8
- package/dist/{node-cli-BdjmGI32.js → node-cli-BXv9SEDG.js} +27 -27
- package/dist/{node-service-DphkTjBV.js → node-service-CrDVFWQl.js} +1 -1
- package/dist/{nodes-cli-BChJzcKY.js → nodes-cli-Cim3ANNU.js} +10 -10
- package/dist/{nodes-screen-Cp5QP3ET.js → nodes-screen-De9ma6e1.js} +4 -4
- package/dist/{npm-registry-spec-CqVgiBCf.js → npm-registry-spec-YMWTMnm_.js} +9 -9
- package/dist/{onboard-BbfERyKU.js → onboard-BXI02b3e.js} +1 -1
- package/dist/{onboard-C0nMMiiS.js → onboard-CuLvp4Ds.js} +15 -15
- package/dist/{onboard-channels-CMp9YXHC.js → onboard-channels-A6_QP7MR.js} +1 -1
- package/dist/{onboard-channels-CmsfVut5.js → onboard-channels-E5NIYGJz.js} +4 -4
- package/dist/{onboard-custom-BfHczxx0.js → onboard-custom-BrtjWDlX.js} +3 -3
- package/dist/{onboard-helpers-OB_xKQze.js → onboard-helpers---sZ9pdZ.js} +8 -8
- package/dist/{onboard-hooks-BA22KYCG.js → onboard-hooks-CtIRdncr.js} +1 -1
- package/dist/{onboard-remote-Dv2Uz8Ru.js → onboard-remote-BUB3VPBP.js} +1 -1
- package/dist/{onboard-skills-BzxofI4T.js → onboard-skills-Cs3BZ4VJ.js} +3 -3
- package/dist/{onboarding-vgZFhH5N.js → onboarding-BWMBA6cP.js} +12 -12
- package/dist/{onboarding-DoYMfCjS.js → onboarding-BeYl1Egj.js} +3 -3
- package/dist/{onboarding.finalize-Dj0xG8pk.js → onboarding.finalize-Bk-XW8b3.js} +4 -4
- package/dist/{onboarding.finalize-BYHDzz2i.js → onboarding.finalize-CH8dBgA2.js} +31 -31
- package/dist/{onboarding.gateway-config-CDRLfIZM.js → onboarding.gateway-config-arRNxrI9.js} +8 -8
- package/dist/{openai-model-default-Dl21Ivjc.js → openai-model-default-XudD4Xik.js} +2 -2
- package/dist/{pairing-cli-C2_Zobhz.js → pairing-cli-NDavTm1_.js} +5 -5
- package/dist/{pairing-store-Be-ZQK87.js → pairing-store-BNhJOnWn.js} +1 -1
- package/dist/{pairing-token-B703A1U3.js → pairing-token-Dcy37-4s.js} +7 -7
- package/dist/{paths-BWqg8NZT.js → paths-DObzwe08.js} +1 -1
- package/dist/{pi-auth-json-D-vdh-nY.js → pi-auth-json-Db8XJVGL.js} +6 -6
- package/dist/{pi-embedded-C7mJzGIf.js → pi-embedded-BL3_b-H_.js} +6 -52
- package/dist/{pi-embedded-helpers-y3vJmW6T.js → pi-embedded-helpers-B5cWV7_y.js} +6 -6
- package/dist/{pi-tools.policy-ji-L-Mpv.js → pi-tools.policy-BdGVEMZn.js} +3 -3
- package/dist/{plugin-auto-enable-Ctbn2w4Q.js → plugin-auto-enable-B_lNp6yM.js} +1 -1
- package/dist/{plugin-registry-pKaJ4ltN.js → plugin-registry-CAdIrLmG.js} +1 -1
- package/dist/{plugin-registry-D2ZbwBU_.js → plugin-registry-DovNSdK0.js} +3 -3
- package/dist/plugin-sdk/agents/pi-tools.types.d.ts +2 -1
- package/dist/plugin-sdk/agents/tools/common.d.ts +0 -30
- package/dist/{plugins-cli-uo8lcB7v.js → plugins-cli-JzKO-vmR.js} +5 -5
- package/dist/{plugins-cli-CoHiV4BX.js → plugins-cli-ZG4PxNTC.js} +54 -54
- package/dist/{ports-ukrEAkOP.js → ports-C3ZSkRGq.js} +1 -1
- package/dist/{ports-CB_Iu83U.js → ports-gxLM5ahL.js} +2 -2
- package/dist/{program-rzYjZKRz.js → program-BbfU4idg.js} +10 -10
- package/dist/{program-context-B1ZbQmLL.js → program-context-ByiEP1Lk.js} +38 -38
- package/dist/{prompt-select-styled-F6P-rvFI.js → prompt-select-styled-CWH2Mcrb.js} +4 -4
- package/dist/{prompt-select-styled-CX0v66wx.js → prompt-select-styled-DvrG_zWV.js} +38 -38
- package/dist/{provider-auth-helpers-_jn9PngO.js → provider-auth-helpers-2x7YxT5F.js} +6 -6
- package/dist/{provider-auth-helpers-Ck98bkHV.js → provider-auth-helpers-CMQexdSl.js} +1 -1
- package/dist/{push-apns-BtMtpzEm.js → push-apns-CtWwPxRj.js} +1 -1
- package/dist/{push-apns-CmeoBcIQ.js → push-apns-eGdGU3r7.js} +4 -4
- package/dist/{pw-ai-CQJsGI1b.js → pw-ai-tgngV3iZ.js} +7 -7
- package/dist/{qmd-manager-DawTY2mB.js → qmd-manager-qV_04VKG.js} +19 -19
- package/dist/{qr-cli-DKowtQcM.js → qr-cli-Vo1XL6B2.js} +3 -3
- package/dist/{register.agent-_UqSBmt5.js → register.agent-DZE9NBNx.js} +9 -9
- package/dist/{register.agent-0hWBZXD7.js → register.agent-Dwkya1rv.js} +67 -67
- package/dist/{register.configure-KrTtvKSp.js → register.configure-CD8WkXo8.js} +8 -8
- package/dist/{register.configure-CgQ6sqtQ.js → register.configure-DCpbCHR0.js} +70 -70
- package/dist/{register.maintenance-DjZeknO6.js → register.maintenance-Bqjj77CZ.js} +67 -67
- package/dist/{register.maintenance-DDSfzFoo.js → register.maintenance-CxVeo_7j.js} +9 -9
- package/dist/{register.message-DSwwDcGi.js → register.message-tcJN7-E3.js} +5 -5
- package/dist/{register.message-DTZJ5OiL.js → register.message-uhAmNxoO.js} +47 -47
- package/dist/{register.onboard-B8k5phG7.js → register.onboard-F6d_Wrv1.js} +25 -25
- package/dist/{register.onboard-BToIZTIS.js → register.onboard-Rm5t0yxX.js} +2 -2
- package/dist/{register.setup-BdUewOo1.js → register.setup-C2datfZK.js} +2 -2
- package/dist/{register.setup-1fexz2oW.js → register.setup-CcHxpsUT.js} +28 -28
- package/dist/{register.status-health-sessions-eBaeXIvo.js → register.status-health-sessions-DFVjS9Hy.js} +3 -3
- package/dist/{register.status-health-sessions-0RyA2cXf.js → register.status-health-sessions-DIUDRMqm.js} +41 -41
- package/dist/{register.subclis-tX3BslaT.js → register.subclis-D9uGnVGm.js} +9 -9
- package/dist/{replies-D3cffD5N.js → replies-DzsYQ8Md.js} +1 -1
- package/dist/{reply-prefix-CtZtkTJK.js → reply-prefix-BFNeXT65.js} +1 -1
- package/dist/{resolve-route-B0i_o4Fo.js → resolve-route-Zww0Y-HJ.js} +1 -1
- package/dist/{routes-zpAUwtCG.js → routes-C-rIjd8Z.js} +10 -10
- package/dist/{rpc-DhsDKVo-.js → rpc-BkFkeuJ6.js} +1 -1
- package/dist/{run-main-DIl_Kl0B.js → run-main-HkbyvIDy.js} +17 -17
- package/dist/{sandbox-DQCaejcD.js → sandbox-Dx8IMw-E.js} +18 -18
- package/dist/{sandbox-cli-CbvyZs1z.js → sandbox-cli-BFkLKdlk.js} +13 -13
- package/dist/{security-cli-CbJxNYZx.js → security-cli-BEpQ_rO1.js} +29 -29
- package/dist/{send-QscYkkNh.js → send-Cxu1tl56.js} +7 -7
- package/dist/{server-context-CXVq7gZ7.js → server-context--mmXXEkE.js} +5 -5
- package/dist/{server-methods-CpFBGxWI.js → server-methods-DJ8eiTu1.js} +6 -6
- package/dist/{server-methods-DPxjPGr0.js → server-methods-RtjWUhkv.js} +58 -58
- package/dist/{server-node-events-2SUW10k3.js → server-node-events-CT8fFtBQ.js} +6 -6
- package/dist/{server-node-events-B_BPbi7z.js → server-node-events-DQ1iCUgY.js} +48 -48
- package/dist/{service-Cm4-5AH9.js → service-CyEDtYLq.js} +15 -15
- package/dist/{session-dirs-BypCYFN3.js → session-dirs-CXErIzZq.js} +2 -2
- package/dist/{session-utils-lXjJoBxe.js → session-utils-BZnPW904.js} +14 -14
- package/dist/{sessions-aSo5jsmg.js → sessions-optZRB57.js} +10 -10
- package/dist/{shared-DDX_4ypC.js → shared-Ctok0Bcs.js} +1 -1
- package/dist/{shared-BI-gOZsD.js → shared-DJFwvlUi.js} +3 -3
- package/dist/{skill-commands-C9WuAfb2.js → skill-commands-yPirQFOb.js} +4 -4
- package/dist/{skill-scanner-CFqMkfZW.js → skill-scanner-BBwesm0w.js} +5 -5
- package/dist/{skills-CYcBtLGH.js → skills-BwDmcZdt.js} +4 -4
- package/dist/{skills-cli-BgyaAQoj.js → skills-cli-gC5ETdly.js} +7 -7
- package/dist/{skills-install-MGsx6q5Z.js → skills-install-CLN_Ks5r.js} +3 -3
- package/dist/{skills-remote-BcRQTDsZ.js → skills-remote-bz71Bstn.js} +3 -3
- package/dist/{skills-status-CbSdFlvm.js → skills-status-iltfI_bO.js} +1 -1
- package/dist/{sqlite-BpogPlQW.js → sqlite-Cod7C5ba.js} +5 -5
- package/dist/{status-DbNNmkNB.js → status-CoqGtHXq.js} +1 -1
- package/dist/{status-BVYDUlnp.js → status-Cpz64Vy_.js} +1 -1
- package/dist/{status-C-r9JpJf.js → status-CuMBp54T.js} +23 -23
- package/dist/{status-DIJvpgEm.js → status-EAjzyREy.js} +3 -3
- package/dist/{status.update-EyslEZkn.js → status.update-F4CbQCxF.js} +3 -3
- package/dist/{subagent-registry-DWemyjbN.js → subagent-registry-Dkif1XYO.js} +6 -52
- package/dist/{symi-root-DeCVdZB4.js → symi-root-BQ0IpoW2.js} +2 -2
- package/dist/{synthesis-BdTiornP.js → synthesis-B6tq6-9G.js} +2 -2
- package/dist/{synthesis-C7RlvHEs.js → synthesis-CKKZrrYd.js} +45 -45
- package/dist/{synthesis-BxYzOZUA.js → synthesis-CpsURf9J.js} +4 -4
- package/dist/{synthesis-DQ7Y6OE0.js → synthesis-mgcCKSzl.js} +2 -2
- package/dist/{system-cli-DgOvK_kU.js → system-cli-DMKzffe3.js} +7 -7
- package/dist/{systemd-B2nTr3Y2.js → systemd-DRpQb_L1.js} +5 -5
- package/dist/{systemd-hints-DtOWJT_2.js → systemd-hints-DR4u43WA.js} +6 -6
- package/dist/{systemd-linger-CWi5l8Nt.js → systemd-linger-BQQl5RXN.js} +1 -1
- package/dist/{tui-D7ms_iQ4.js → tui-CqrM_Fj2.js} +7 -7
- package/dist/{tui-cli-DNvAqIYN.js → tui-cli-BsqRmqTX.js} +19 -19
- package/dist/{unified-runner-DPWNhQQA.js → unified-runner-DAWxqcS9.js} +6 -52
- package/dist/{unified-runner-BIUJm_Iv.js → unified-runner-DZAjU6aB.js} +104 -150
- package/dist/{update-pddgyV7i.js → update-CWEjB8uS.js} +3 -3
- package/dist/{update-check-CduiCxPo.js → update-check-CxBGAP1E.js} +5 -5
- package/dist/{update-cli-BM-A3cIZ.js → update-cli-Bgk30eoA.js} +9 -9
- package/dist/{update-cli-GKXF83cS.js → update-cli-t7W6vcQY.js} +77 -77
- package/dist/{update-runner-BMYqz1dl.js → update-runner-C4Uy75eP.js} +15 -15
- package/dist/{webhooks-cli-BPPmnDCj.js → webhooks-cli-Dp-pp0Sf.js} +4 -4
- package/dist/{with-timeout-D1qzvPE0.js → with-timeout-B5zAsivw.js} +1 -1
- package/dist/{workspace-dirs-DCICLTHx.js → workspace-dirs-jKFQf7of.js} +1 -1
- package/dist/{wsl-Sed675xh.js → wsl-DMA0sTvh.js} +2 -2
- package/package.json +1 -1
- package/dist/plugin-sdk/agents/tools/availability-filter.d.ts +0 -10
|
@@ -8,7 +8,7 @@ import { a as buildModelAliasLines } from "./model-B4Btg-Q6.js";
|
|
|
8
8
|
import { r as buildWorkspaceSkillSnapshot } from "./skills-cLBEdkqu.js";
|
|
9
9
|
import { i as loadConfig } from "./config-_DaupjQd.js";
|
|
10
10
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DXToSaWK.js";
|
|
11
|
-
import { A as resolveRunWorkspaceDir, At as buildSystemPromptParams, Bt as applyModelOverrideToSessionEntry, Ft as resolveSendPolicy, H as resolveOutboundTarget, J as runWithModelFallback, Mt as getProcessSupervisor, Nt as detectRuntimeShell, Sn as emitAgentEvent, T as runAgentTurn, Tn as registerAgentRunContext, U as resolveSessionDeliveryTarget, Vt as applyVerboseOverride, Y as FailoverError, Z as resolveFailoverStatus, bt as AGENT_LANE_SUBAGENT, en as resolveAgentTimeoutMs, in as clearSessionAuthProfileOverride, k as redactRunIdentifier, kt as buildAgentSystemPrompt, ln as resolveSymiDocsPath, mn as resolveBootstrapContextForRun, pn as makeBootstrapWarn, xn as clearAgentRunContext, yt as AGENT_LANE_NESTED } from "./subagent-registry-
|
|
11
|
+
import { A as resolveRunWorkspaceDir, At as buildSystemPromptParams, Bt as applyModelOverrideToSessionEntry, Ft as resolveSendPolicy, H as resolveOutboundTarget, J as runWithModelFallback, Mt as getProcessSupervisor, Nt as detectRuntimeShell, Sn as emitAgentEvent, T as runAgentTurn, Tn as registerAgentRunContext, U as resolveSessionDeliveryTarget, Vt as applyVerboseOverride, Y as FailoverError, Z as resolveFailoverStatus, bt as AGENT_LANE_SUBAGENT, en as resolveAgentTimeoutMs, in as clearSessionAuthProfileOverride, k as redactRunIdentifier, kt as buildAgentSystemPrompt, ln as resolveSymiDocsPath, mn as resolveBootstrapContextForRun, pn as makeBootstrapWarn, xn as clearAgentRunContext, yt as AGENT_LANE_NESTED } from "./subagent-registry-Dkif1XYO.js";
|
|
12
12
|
import { D as resolveSessionResetPolicy, E as resolveChannelResetConfig, O as resolveSessionResetType, P as resolveExplicitAgentSessionKey, T as evaluateSessionFreshness, Y as normalizeAccountId, a as resolveAndPersistSessionFile, d as updateSessionStore, n as parseSessionThreadInfo, o as loadSessionStore, w as resolveSessionKey } from "./sessions-DHPf5TzB.js";
|
|
13
13
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BsEhWvLn.js";
|
|
14
14
|
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-6fYMGY7T.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Dn as FailoverError, En as runWithModelFallback, Ft as clearSessionAuthProfileOverride, Gt as resolveAgentTimeoutMs, Jt as AGENT_LANE_NESTED, O as resolveOutboundTarget, Qt as emitAgentEvent, Yt as AGENT_LANE_SUBAGENT, Zt as clearAgentRunContext, bt as applyVerboseOverride, dt as getProcessSupervisor, ft as detectRuntimeShell, gn as resolveRunWorkspaceDir, hn as redactRunIdentifier, k as resolveSessionDeliveryTarget, kn as resolveFailoverStatus, ln as resolveSymiDocsPath, lt as buildSystemPromptParams, mn as resolveBootstrapContextForRun, mt as resolveSendPolicy, nn as buildAgentSystemPrompt, pn as makeBootstrapWarn, t as runAgentTurn, tn as registerAgentRunContext, yt as applyModelOverrideToSessionEntry } from "./unified-runner-
|
|
1
|
+
import { Dn as FailoverError, En as runWithModelFallback, Ft as clearSessionAuthProfileOverride, Gt as resolveAgentTimeoutMs, Jt as AGENT_LANE_NESTED, O as resolveOutboundTarget, Qt as emitAgentEvent, Yt as AGENT_LANE_SUBAGENT, Zt as clearAgentRunContext, bt as applyVerboseOverride, dt as getProcessSupervisor, ft as detectRuntimeShell, gn as resolveRunWorkspaceDir, hn as redactRunIdentifier, k as resolveSessionDeliveryTarget, kn as resolveFailoverStatus, ln as resolveSymiDocsPath, lt as buildSystemPromptParams, mn as resolveBootstrapContextForRun, mt as resolveSendPolicy, nn as buildAgentSystemPrompt, pn as makeBootstrapWarn, t as runAgentTurn, tn as registerAgentRunContext, yt as applyModelOverrideToSessionEntry } from "./unified-runner-DZAjU6aB.js";
|
|
2
2
|
import { D as shouldLogVerbose, r as DEFAULT_CHAT_CHANNEL } from "./registry-Sbac4a4z.js";
|
|
3
3
|
import { u as isRecord } from "./utils-CTPsqyE_.js";
|
|
4
4
|
import { f as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
5
|
-
import { b as ensureAuthProfileStore } from "./auth-profiles-
|
|
5
|
+
import { b as ensureAuthProfileStore } from "./auth-profiles-Ce7R_25e.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
7
7
|
import { c as resolveAgentIdFromSessionKey, o as normalizeAgentId, s as normalizeMainKey } from "./session-key-DUSb7CCb.js";
|
|
8
|
-
import { C as ensureAgentWorkspace, c as resolveAgentWorkspaceDir, d as resolveSessionAgentId, f as resolveSessionAgentIds, i as resolveAgentDir, n as listAgentIds, o as resolveAgentModelPrimary, s as resolveAgentSkillsFilter, u as resolveEffectiveModelFallbacks } from "./agent-scope-
|
|
9
|
-
import { C as DEFAULT_MODEL, S as DEFAULT_CONTEXT_TOKENS, b as resolveThinkingDefault, c as modelKey, h as resolveDefaultModelForAgent, l as normalizeModelRef, m as resolveConfiguredModelRef, s as isCliProvider, t as buildAllowedModelSet, u as normalizeProviderId, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
10
|
-
import { D as isFailoverErrorMessage, g as classifyFailoverReason } from "./pi-embedded-helpers-
|
|
11
|
-
import { i as loadConfig } from "./config-
|
|
8
|
+
import { C as ensureAgentWorkspace, c as resolveAgentWorkspaceDir, d as resolveSessionAgentId, f as resolveSessionAgentIds, i as resolveAgentDir, n as listAgentIds, o as resolveAgentModelPrimary, s as resolveAgentSkillsFilter, u as resolveEffectiveModelFallbacks } from "./agent-scope-DOrZjOnW.js";
|
|
9
|
+
import { C as DEFAULT_MODEL, S as DEFAULT_CONTEXT_TOKENS, b as resolveThinkingDefault, c as modelKey, h as resolveDefaultModelForAgent, l as normalizeModelRef, m as resolveConfiguredModelRef, s as isCliProvider, t as buildAllowedModelSet, u as normalizeProviderId, w as DEFAULT_PROVIDER } from "./model-selection-7wdmO-Iw.js";
|
|
10
|
+
import { D as isFailoverErrorMessage, g as classifyFailoverReason } from "./pi-embedded-helpers-B5cWV7_y.js";
|
|
11
|
+
import { i as loadConfig } from "./config-D7SS4vdk.js";
|
|
12
12
|
import { t as isTruthyEnvValue } from "./env-BRnPI9sO.js";
|
|
13
|
-
import { r as buildWorkspaceSkillSnapshot } from "./skills-
|
|
14
|
-
import { F as resolveSessionResetType, M as evaluateSessionFreshness, N as resolveChannelResetConfig, P as resolveSessionResetPolicy, V as resolveExplicitAgentSessionKey, a as resolveAndPersistSessionFile, b as normalizeAccountId, d as updateSessionStore, j as resolveSessionKey, n as parseSessionThreadInfo, o as loadSessionStore } from "./sessions-
|
|
13
|
+
import { r as buildWorkspaceSkillSnapshot } from "./skills-BwDmcZdt.js";
|
|
14
|
+
import { F as resolveSessionResetType, M as evaluateSessionFreshness, N as resolveChannelResetConfig, P as resolveSessionResetPolicy, V as resolveExplicitAgentSessionKey, a as resolveAndPersistSessionFile, b as normalizeAccountId, d as updateSessionStore, j as resolveSessionKey, n as parseSessionThreadInfo, o as loadSessionStore } from "./sessions-optZRB57.js";
|
|
15
15
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DgjXWzf-.js";
|
|
16
16
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CF5skkHh.js";
|
|
17
17
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath } from "./paths-BtvQ7JvU.js";
|
|
18
18
|
import { d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-COroyVA5.js";
|
|
19
|
-
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
19
|
+
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-DB4v0Tyl.js";
|
|
20
20
|
import { c as hasNonzeroUsage, s as deriveSessionTotalTokens } from "./session-cost-usage-D6Ocwmq1.js";
|
|
21
|
-
import { x as lookupContextTokens } from "./session-utils-
|
|
22
|
-
import { g as getSkillsSnapshotVersion, t as getRemoteSkillEligibility } from "./skills-remote-
|
|
23
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
24
|
-
import { a as buildModelAliasLines } from "./model-
|
|
25
|
-
import { t as createDefaultDeps } from "./deps-
|
|
21
|
+
import { x as lookupContextTokens } from "./session-utils-BZnPW904.js";
|
|
22
|
+
import { g as getSkillsSnapshotVersion, t as getRemoteSkillEligibility } from "./skills-remote-bz71Bstn.js";
|
|
23
|
+
import { n as loadModelCatalog } from "./model-catalog-DQTmHZK7.js";
|
|
24
|
+
import { a as buildModelAliasLines } from "./model-DsMHOvMn.js";
|
|
25
|
+
import { t as createDefaultDeps } from "./deps-BlmO-MfQ.js";
|
|
26
26
|
import { t as createOutboundSendDeps } from "./outbound-send-deps-CocVWWDn.js";
|
|
27
27
|
import crypto from "node:crypto";
|
|
28
28
|
import path from "node:path";
|
|
29
29
|
import os from "node:os";
|
|
30
|
-
import
|
|
30
|
+
import fs from "node:fs/promises";
|
|
31
31
|
|
|
32
32
|
//#region src/agents/cli-watchdog-defaults.ts
|
|
33
33
|
const CLI_WATCHDOG_MIN_TIMEOUT_MS = 1e3;
|
|
@@ -462,18 +462,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
462
462
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
463
463
|
}
|
|
464
464
|
async function writeCliImages(images) {
|
|
465
|
-
const tempDir = await
|
|
465
|
+
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "symi-cli-images-"));
|
|
466
466
|
const paths = [];
|
|
467
467
|
for (let i = 0; i < images.length; i += 1) {
|
|
468
468
|
const image = images[i];
|
|
469
469
|
const ext = resolveImageExtension(image.mimeType);
|
|
470
470
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
471
471
|
const buffer = Buffer.from(image.data, "base64");
|
|
472
|
-
await
|
|
472
|
+
await fs.writeFile(filePath, buffer, { mode: 384 });
|
|
473
473
|
paths.push(filePath);
|
|
474
474
|
}
|
|
475
475
|
const cleanup = async () => {
|
|
476
|
-
await
|
|
476
|
+
await fs.rm(tempDir, {
|
|
477
477
|
recursive: true,
|
|
478
478
|
force: true
|
|
479
479
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as resolveStateDir, b as resolveRequiredHomeDir } from "./paths-By0XjHBk.js";
|
|
2
2
|
import { f as pathExists, h as resolveUserPath } from "./utils-CTPsqyE_.js";
|
|
3
3
|
import { b as isSubagentSessionKey, o as normalizeAgentId, t as DEFAULT_AGENT_ID, x as parseAgentSessionKey, y as isCronSessionKey } from "./session-key-DUSb7CCb.js";
|
|
4
|
-
import { i as normalizeSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-
|
|
4
|
+
import { i as normalizeSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-BQ0IpoW2.js";
|
|
5
5
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
9
|
-
import
|
|
9
|
+
import fs from "node:fs/promises";
|
|
10
10
|
|
|
11
11
|
//#region src/agents/workspace-templates.ts
|
|
12
12
|
const FALLBACK_TEMPLATE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../docs/reference/templates");
|
|
@@ -73,10 +73,10 @@ const workspaceFileCache = /* @__PURE__ */ new Map();
|
|
|
73
73
|
*/
|
|
74
74
|
async function readFileWithCache(filePath) {
|
|
75
75
|
try {
|
|
76
|
-
const mtimeMs = (await
|
|
76
|
+
const mtimeMs = (await fs.stat(filePath)).mtimeMs;
|
|
77
77
|
const cached = workspaceFileCache.get(filePath);
|
|
78
78
|
if (cached && cached.mtimeMs === mtimeMs) return cached.content;
|
|
79
|
-
const content = await
|
|
79
|
+
const content = await fs.readFile(filePath, "utf-8");
|
|
80
80
|
workspaceFileCache.set(filePath, {
|
|
81
81
|
content,
|
|
82
82
|
mtimeMs
|
|
@@ -103,7 +103,7 @@ async function loadTemplate(name) {
|
|
|
103
103
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
104
104
|
const templatePath = path.join(templateDir, name);
|
|
105
105
|
try {
|
|
106
|
-
return stripFrontMatter(await
|
|
106
|
+
return stripFrontMatter(await fs.readFile(templatePath, "utf-8"));
|
|
107
107
|
} catch {
|
|
108
108
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
109
109
|
}
|
|
@@ -118,7 +118,7 @@ async function loadTemplate(name) {
|
|
|
118
118
|
}
|
|
119
119
|
async function writeFileIfMissing(filePath, content) {
|
|
120
120
|
try {
|
|
121
|
-
await
|
|
121
|
+
await fs.writeFile(filePath, content, {
|
|
122
122
|
encoding: "utf-8",
|
|
123
123
|
flag: "wx"
|
|
124
124
|
});
|
|
@@ -130,7 +130,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
130
130
|
}
|
|
131
131
|
async function fileExists(filePath) {
|
|
132
132
|
try {
|
|
133
|
-
await
|
|
133
|
+
await fs.access(filePath);
|
|
134
134
|
return true;
|
|
135
135
|
} catch {
|
|
136
136
|
return false;
|
|
@@ -154,7 +154,7 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
154
154
|
}
|
|
155
155
|
async function readWorkspaceOnboardingState(statePath) {
|
|
156
156
|
try {
|
|
157
|
-
return parseWorkspaceOnboardingState(await
|
|
157
|
+
return parseWorkspaceOnboardingState(await fs.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
158
158
|
} catch (err) {
|
|
159
159
|
if (err.code !== "ENOENT") throw err;
|
|
160
160
|
return { version: WORKSPACE_STATE_VERSION };
|
|
@@ -168,20 +168,20 @@ async function isWorkspaceOnboardingCompleted(dir) {
|
|
|
168
168
|
return typeof state.onboardingCompletedAt === "string" && state.onboardingCompletedAt.trim().length > 0;
|
|
169
169
|
}
|
|
170
170
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
171
|
-
await
|
|
171
|
+
await fs.mkdir(path.dirname(statePath), { recursive: true });
|
|
172
172
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
173
173
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
174
174
|
try {
|
|
175
|
-
await
|
|
176
|
-
await
|
|
175
|
+
await fs.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
176
|
+
await fs.rename(tmpPath, statePath);
|
|
177
177
|
} catch (err) {
|
|
178
|
-
await
|
|
178
|
+
await fs.unlink(tmpPath).catch(() => {});
|
|
179
179
|
throw err;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async function hasGitRepo(dir) {
|
|
183
183
|
try {
|
|
184
|
-
await
|
|
184
|
+
await fs.stat(path.join(dir, ".git"));
|
|
185
185
|
return true;
|
|
186
186
|
} catch {
|
|
187
187
|
return false;
|
|
@@ -211,7 +211,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
211
211
|
}
|
|
212
212
|
async function ensureAgentWorkspace(params) {
|
|
213
213
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
214
|
-
await
|
|
214
|
+
await fs.mkdir(dir, { recursive: true });
|
|
215
215
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
216
216
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
217
217
|
const symicorePath = path.join(dir, DEFAULT_SYMICORE_FILENAME);
|
|
@@ -232,7 +232,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
232
232
|
];
|
|
233
233
|
return (await Promise.all(paths.map(async (p) => {
|
|
234
234
|
try {
|
|
235
|
-
await
|
|
235
|
+
await fs.access(p);
|
|
236
236
|
return true;
|
|
237
237
|
} catch {
|
|
238
238
|
return false;
|
|
@@ -263,7 +263,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
263
263
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
264
264
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
265
265
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
266
|
-
const [identityContent, userContent] = await Promise.all([
|
|
266
|
+
const [identityContent, userContent] = await Promise.all([fs.readFile(identityPath, "utf-8"), fs.readFile(userPath, "utf-8")]);
|
|
267
267
|
if (identityContent !== identityTemplate || userContent !== userTemplate) markState({ onboardingCompletedAt: nowIso() });
|
|
268
268
|
else {
|
|
269
269
|
if (!await writeFileIfMissing(bootstrapPath, await loadTemplate(DEFAULT_BOOTSTRAP_FILENAME))) bootstrapExists = await fileExists(bootstrapPath);
|
|
@@ -290,7 +290,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
290
290
|
for (const name of candidates) {
|
|
291
291
|
const filePath = path.join(resolvedDir, name);
|
|
292
292
|
try {
|
|
293
|
-
await
|
|
293
|
+
await fs.access(filePath);
|
|
294
294
|
entries.push({
|
|
295
295
|
name,
|
|
296
296
|
filePath
|
|
@@ -303,7 +303,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
303
303
|
for (const entry of entries) {
|
|
304
304
|
let key = entry.filePath;
|
|
305
305
|
try {
|
|
306
|
-
key = await
|
|
306
|
+
key = await fs.realpath(entry.filePath);
|
|
307
307
|
} catch {}
|
|
308
308
|
if (seen.has(key)) continue;
|
|
309
309
|
seen.add(key);
|
|
@@ -10,13 +10,13 @@ import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DtiEyjsC.js";
|
|
|
10
10
|
import { t as WizardCancelledError } from "./prompts-C1Vmrk7-.js";
|
|
11
11
|
import { t as createClackPrompter } from "./clack-prompter-B-Q70teL.js";
|
|
12
12
|
import { t as resolveChannelDefaultAccountId } from "./helpers-Cv2yCxAb.js";
|
|
13
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
13
|
+
import { r as setupChannels } from "./onboard-channels-A6_QP7MR.js";
|
|
14
14
|
import { t as requireValidConfigSnapshot } from "./config-validation-HXl5srHm.js";
|
|
15
15
|
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-Cut7JJgz.js";
|
|
16
16
|
import { a as pruneAgentConfig, c as parseIdentityMarkdown, i as loadAgentIdentity, n as buildAgentSummaries, o as identityHasValues, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-DJ6HOh-6.js";
|
|
17
17
|
import { n as logConfigUpdated } from "./logging-BqCc-3Ld.js";
|
|
18
18
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-BMT9i-O0.js";
|
|
19
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
19
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-Ryx7oj6G.js";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import fs from "node:fs/promises";
|
|
22
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as normalizeAgentId } from "./session-key-DUSb7CCb.js";
|
|
2
|
-
import { c as resolveAgentWorkspaceDir, g as DEFAULT_IDENTITY_FILENAME, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, g as DEFAULT_IDENTITY_FILENAME, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-DOrZjOnW.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
|
|
@@ -2,34 +2,34 @@ import { _ as resolveStateDir, h as resolveOAuthDir, o as resolveConfigPath } fr
|
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
3
3
|
import { o as normalizeAgentId } from "./session-key-DUSb7CCb.js";
|
|
4
4
|
import { n as runExec } from "./exec-DuYbft0z.js";
|
|
5
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
6
|
-
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-
|
|
5
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-DOrZjOnW.js";
|
|
6
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-D7SS4vdk.js";
|
|
7
7
|
import { u as normalizePluginsConfig } from "./manifest-registry-D1MLZEjS.js";
|
|
8
8
|
import { i as isPathInside, n as MANIFEST_KEY, r as extensionUsesSkippedScannerPath } from "./legacy-names-BQ9vKISY.js";
|
|
9
|
-
import { S as resolveToolProfilePolicy, f as resolveSandboxConfigForAgent, k as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, l as execDockerRaw, m as resolveSandboxToolPolicyForAgent, u as getBlockedBindReason } from "./sandbox-
|
|
9
|
+
import { S as resolveToolProfilePolicy, f as resolveSandboxConfigForAgent, k as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, l as execDockerRaw, m as resolveSandboxToolPolicyForAgent, u as getBlockedBindReason } from "./sandbox-Dx8IMw-E.js";
|
|
10
10
|
import { a as resolveGatewayAuth } from "./auth-Bkx-QuRN.js";
|
|
11
|
-
import { a as resolveProfile, i as resolveBrowserConfig, m as resolveBrowserControlAuth } from "./server-context
|
|
12
|
-
import { i as loadWorkspaceSkillEntries } from "./skills-
|
|
11
|
+
import { a as resolveProfile, i as resolveBrowserConfig, m as resolveBrowserControlAuth } from "./server-context--mmXXEkE.js";
|
|
12
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-BwDmcZdt.js";
|
|
13
13
|
import { n as formatErrorMessage } from "./errors-bI7Tdx75.js";
|
|
14
14
|
import { c as normalizeStringEntries } from "./dock-hF45sewN.js";
|
|
15
15
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DgjXWzf-.js";
|
|
16
16
|
import { n as listChannelPlugins } from "./plugins-CF5skkHh.js";
|
|
17
17
|
import { i as resolveNativeSkillsEnabled, r as resolveNativeCommandsEnabled } from "./commands-DUzLGgEZ.js";
|
|
18
|
-
import { t as GatewayClient } from "./client-
|
|
19
|
-
import { c as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-
|
|
20
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
21
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
22
|
-
import { n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-
|
|
18
|
+
import { t as GatewayClient } from "./client-BzUAFrla.js";
|
|
19
|
+
import { c as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-BouPakqe.js";
|
|
20
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-jKFQf7of.js";
|
|
21
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-BNhJOnWn.js";
|
|
22
|
+
import { n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-BdGVEMZn.js";
|
|
23
23
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DgsKk072.js";
|
|
24
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
25
|
-
import { t as resolveDmAllowState } from "./dm-policy-shared-
|
|
24
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-BBwesm0w.js";
|
|
25
|
+
import { t as resolveDmAllowState } from "./dm-policy-shared-CBlUyDSX.js";
|
|
26
26
|
import { t as inferParamBFromIdOrName } from "./model-param-b-7eOskmw9.js";
|
|
27
27
|
import { randomUUID } from "node:crypto";
|
|
28
28
|
import path from "node:path";
|
|
29
29
|
import os from "node:os";
|
|
30
30
|
import JSON5 from "json5";
|
|
31
|
-
import * as fs from "node:fs/promises";
|
|
32
|
-
import
|
|
31
|
+
import * as fs$1 from "node:fs/promises";
|
|
32
|
+
import fs from "node:fs/promises";
|
|
33
33
|
|
|
34
34
|
//#region src/gateway/probe.ts
|
|
35
35
|
async function probeGateway(opts) {
|
|
@@ -1166,7 +1166,7 @@ async function collectIncludePathsRecursive(params) {
|
|
|
1166
1166
|
if (visited.has(resolved)) continue;
|
|
1167
1167
|
visited.add(resolved);
|
|
1168
1168
|
result.push(resolved);
|
|
1169
|
-
const rawText = await fs.readFile(resolved, "utf-8").catch(() => null);
|
|
1169
|
+
const rawText = await fs$1.readFile(resolved, "utf-8").catch(() => null);
|
|
1170
1170
|
if (!rawText) continue;
|
|
1171
1171
|
const nestedParsed = (() => {
|
|
1172
1172
|
try {
|
|
@@ -1345,7 +1345,7 @@ function createIcaclsResetCommand(targetPath, opts) {
|
|
|
1345
1345
|
//#region src/security/audit-fs.ts
|
|
1346
1346
|
async function safeStat(targetPath) {
|
|
1347
1347
|
try {
|
|
1348
|
-
const lst = await
|
|
1348
|
+
const lst = await fs.lstat(targetPath);
|
|
1349
1349
|
return {
|
|
1350
1350
|
ok: true,
|
|
1351
1351
|
isSymlink: lst.isSymbolicLink(),
|
|
@@ -1384,7 +1384,7 @@ async function inspectPathPermissions(targetPath, opts) {
|
|
|
1384
1384
|
let effectiveMode = st.mode;
|
|
1385
1385
|
let effectiveIsDir = st.isDir;
|
|
1386
1386
|
if (st.isSymlink) try {
|
|
1387
|
-
const target = await
|
|
1387
|
+
const target = await fs.stat(targetPath);
|
|
1388
1388
|
effectiveMode = typeof target.mode === "number" ? target.mode : st.mode;
|
|
1389
1389
|
effectiveIsDir = target.isDirectory();
|
|
1390
1390
|
} catch {}
|
|
@@ -1487,7 +1487,7 @@ function expandTilde(p, env) {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
async function readPluginManifestExtensions(pluginPath) {
|
|
1489
1489
|
const manifestPath = path.join(pluginPath, "package.json");
|
|
1490
|
-
const raw = await
|
|
1490
|
+
const raw = await fs.readFile(manifestPath, "utf-8").catch(() => "");
|
|
1491
1491
|
if (!raw.trim()) return [];
|
|
1492
1492
|
const extensions = JSON.parse(raw)?.[MANIFEST_KEY]?.extensions;
|
|
1493
1493
|
if (!Array.isArray(extensions)) return [];
|
|
@@ -1509,7 +1509,7 @@ async function listInstalledPluginDirs(params) {
|
|
|
1509
1509
|
};
|
|
1510
1510
|
return {
|
|
1511
1511
|
extensionsDir,
|
|
1512
|
-
pluginDirs: (await
|
|
1512
|
+
pluginDirs: (await fs.readdir(extensionsDir, { withFileTypes: true }).catch((err) => {
|
|
1513
1513
|
params.onReadError?.(err);
|
|
1514
1514
|
return [];
|
|
1515
1515
|
})).filter((entry) => entry.isDirectory()).map((entry) => entry.name).filter(Boolean)
|
|
@@ -1572,7 +1572,7 @@ function isPinnedRegistrySpec(spec) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
async function readInstalledPackageVersion(dir) {
|
|
1574
1574
|
try {
|
|
1575
|
-
const raw = await
|
|
1575
|
+
const raw = await fs.readFile(path.join(dir, "package.json"), "utf-8");
|
|
1576
1576
|
const parsed = JSON.parse(raw);
|
|
1577
1577
|
return typeof parsed.version === "string" ? parsed.version : void 0;
|
|
1578
1578
|
} catch {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { b as ensureAuthProfileStore, d as generateChutesPkce, f as parseOAuthCallbackInput, h as listProfilesForProvider, l as CHUTES_AUTHORIZE_ENDPOINT, n as resolveAuthProfileOrder, u as exchangeChutesCodeForTokens, v as upsertAuthProfile } from "./auth-profiles-
|
|
3
|
-
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-
|
|
4
|
-
import { C as DEFAULT_MODEL, m as resolveConfiguredModelRef, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
2
|
+
import { b as ensureAuthProfileStore, d as generateChutesPkce, f as parseOAuthCallbackInput, h as listProfilesForProvider, l as CHUTES_AUTHORIZE_ENDPOINT, n as resolveAuthProfileOrder, u as exchangeChutesCodeForTokens, v as upsertAuthProfile } from "./auth-profiles-Ce7R_25e.js";
|
|
3
|
+
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-DOrZjOnW.js";
|
|
4
|
+
import { C as DEFAULT_MODEL, m as resolveConfiguredModelRef, w as DEFAULT_PROVIDER } from "./model-selection-7wdmO-Iw.js";
|
|
5
5
|
import { t as resolveSymiAgentDir } from "./agent-paths-BbZSGrUA.js";
|
|
6
6
|
import { r as isLoopbackHost } from "./ws-C7Ktmt-R.js";
|
|
7
|
-
import { n as getCustomProviderApiKey, o as resolveEnvApiKey } from "./model-auth-
|
|
8
|
-
import { D as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, E as isHuggingfacePolicyLocked, T as discoverHuggingfaceModels, _ as SYNTHETIC_DEFAULT_MODEL_REF, u as VENICE_DEFAULT_MODEL_REF } from "./models-config-
|
|
9
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
7
|
+
import { n as getCustomProviderApiKey, o as resolveEnvApiKey } from "./model-auth-1EAQvYRv.js";
|
|
8
|
+
import { D as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, E as isHuggingfacePolicyLocked, T as discoverHuggingfaceModels, _ as SYNTHETIC_DEFAULT_MODEL_REF, u as VENICE_DEFAULT_MODEL_REF } from "./models-config-CRnTzdFs.js";
|
|
9
|
+
import { n as loadModelCatalog } from "./model-catalog-DQTmHZK7.js";
|
|
10
10
|
import { t as enablePluginInConfig } from "./enable-0trJ7bnB.js";
|
|
11
|
-
import { f as openUrl } from "./onboard-helpers
|
|
12
|
-
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-
|
|
13
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
14
|
-
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-
|
|
15
|
-
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-
|
|
11
|
+
import { f as openUrl } from "./onboard-helpers---sZ9pdZ.js";
|
|
12
|
+
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-DgRRSbEX.js";
|
|
13
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-2x7YxT5F.js";
|
|
14
|
+
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-XudD4Xik.js";
|
|
15
|
+
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-D4TY_tPx.js";
|
|
16
16
|
import { randomBytes } from "node:crypto";
|
|
17
17
|
import { loginOpenAICodex } from "@mariozechner/pi-ai";
|
|
18
18
|
import { createServer } from "node:http";
|
|
@@ -10,7 +10,7 @@ import { n as loadModelCatalog } from "./model-catalog-MHTLXFwi.js";
|
|
|
10
10
|
import { t as enablePluginInConfig } from "./enable-CwLPpoEb.js";
|
|
11
11
|
import { f as openUrl } from "./onboard-helpers-Cut7JJgz.js";
|
|
12
12
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-DUIqGPhx.js";
|
|
13
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
13
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-CMQexdSl.js";
|
|
14
14
|
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-CROL7CWb.js";
|
|
15
15
|
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-BAKALONd.js";
|
|
16
16
|
import { randomBytes } from "node:crypto";
|
|
@@ -3,9 +3,9 @@ import { g as resolveOAuthPath } from "./paths-By0XjHBk.js";
|
|
|
3
3
|
import { h as resolveUserPath } from "./utils-CTPsqyE_.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
|
-
import { a as findNormalizedProviderValue, i as findNormalizedProviderKey, u as normalizeProviderId, x as getProviderAdapter } from "./model-selection-
|
|
6
|
+
import { a as findNormalizedProviderValue, i as findNormalizedProviderKey, u as normalizeProviderId, x as getProviderAdapter } from "./model-selection-7wdmO-Iw.js";
|
|
7
7
|
import { n as normalizeSecretInput } from "./normalize-secret-input-DjGU5EXe.js";
|
|
8
|
-
import { t as withFileLock } from "./file-lock-
|
|
8
|
+
import { t as withFileLock } from "./file-lock-BVUYnlQv.js";
|
|
9
9
|
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-CNp4GTiH.js";
|
|
10
10
|
import { t as resolveSymiAgentDir } from "./agent-paths-BbZSGrUA.js";
|
|
11
11
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
|
|
2
|
-
import { v as upsertAuthProfile } from "./auth-profiles-
|
|
3
|
-
import { u as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { v as upsertAuthProfile } from "./auth-profiles-Ce7R_25e.js";
|
|
3
|
+
import { u as normalizeProviderId } from "./model-selection-7wdmO-Iw.js";
|
|
4
4
|
import { t as resolveSymiAgentDir } from "./agent-paths-BbZSGrUA.js";
|
|
5
|
-
import { C as HUGGINGFACE_MODEL_CATALOG, D as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, O as buildCloudflareAiGatewayModelDefinition, S as HUGGINGFACE_BASE_URL, _ as SYNTHETIC_DEFAULT_MODEL_REF, a as buildKimiCodingProvider, d as VENICE_MODEL_CATALOG, f as buildVeniceModelDefinition, g as SYNTHETIC_BASE_URL, h as buildTogetherModelDefinition, i as XIAOMI_DEFAULT_MODEL_ID, k as resolveCloudflareAiGatewayBaseUrl, l as VENICE_BASE_URL, m as TOGETHER_MODEL_CATALOG, n as QIANFAN_BASE_URL, o as buildQianfanProvider, p as TOGETHER_BASE_URL, r as QIANFAN_DEFAULT_MODEL_ID, s as buildXiaomiProvider, u as VENICE_DEFAULT_MODEL_REF, v as SYNTHETIC_MODEL_CATALOG, w as buildHuggingfaceModelDefinition, y as buildSyntheticModelDefinition } from "./models-config-
|
|
5
|
+
import { C as HUGGINGFACE_MODEL_CATALOG, D as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, O as buildCloudflareAiGatewayModelDefinition, S as HUGGINGFACE_BASE_URL, _ as SYNTHETIC_DEFAULT_MODEL_REF, a as buildKimiCodingProvider, d as VENICE_MODEL_CATALOG, f as buildVeniceModelDefinition, g as SYNTHETIC_BASE_URL, h as buildTogetherModelDefinition, i as XIAOMI_DEFAULT_MODEL_ID, k as resolveCloudflareAiGatewayBaseUrl, l as VENICE_BASE_URL, m as TOGETHER_MODEL_CATALOG, n as QIANFAN_BASE_URL, o as buildQianfanProvider, p as TOGETHER_BASE_URL, r as QIANFAN_DEFAULT_MODEL_ID, s as buildXiaomiProvider, u as VENICE_DEFAULT_MODEL_REF, v as SYNTHETIC_MODEL_CATALOG, w as buildHuggingfaceModelDefinition, y as buildSyntheticModelDefinition } from "./models-config-CRnTzdFs.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Q as theme, Z as isRich, h as visibleWidth, nn as hasRootVersionAlias } from "./entry.js";
|
|
2
|
-
import { jt as resolveCommitHash } from "./subagent-registry-
|
|
2
|
+
import { jt as resolveCommitHash } from "./subagent-registry-Dkif1XYO.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/tagline.ts
|
|
5
5
|
const DEFAULT_TAGLINE = "All your chats, one Symi.";
|
|
@@ -4,27 +4,27 @@ import { v as shortenHomePath } from "./utils-CTPsqyE_.js";
|
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import "./exec-DuYbft0z.js";
|
|
7
|
-
import "./agent-scope-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import { i as loadConfig } from "./config-
|
|
7
|
+
import "./agent-scope-DOrZjOnW.js";
|
|
8
|
+
import "./model-selection-7wdmO-Iw.js";
|
|
9
|
+
import { i as loadConfig } from "./config-D7SS4vdk.js";
|
|
10
10
|
import { t as parseBooleanValue } from "./boolean-CbZoNRMn.js";
|
|
11
11
|
import "./env-BRnPI9sO.js";
|
|
12
12
|
import "./shell-env-Dc3iU7HK.js";
|
|
13
13
|
import "./manifest-registry-D1MLZEjS.js";
|
|
14
14
|
import "./redact-B3O-RBO1.js";
|
|
15
15
|
import "./errors-bI7Tdx75.js";
|
|
16
|
-
import "./fs-safe-
|
|
17
|
-
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-
|
|
16
|
+
import "./fs-safe-BdejYjW8.js";
|
|
17
|
+
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-DObzwe08.js";
|
|
18
18
|
import { t as movePathToTrash } from "./trash-_YhavPQI.js";
|
|
19
19
|
import "./message-channel-DgjXWzf-.js";
|
|
20
|
-
import "./client-
|
|
21
|
-
import "./call-
|
|
22
|
-
import "./pairing-token-
|
|
20
|
+
import "./client-BzUAFrla.js";
|
|
21
|
+
import "./call-BouPakqe.js";
|
|
22
|
+
import "./pairing-token-Dcy37-4s.js";
|
|
23
23
|
import { t as formatDocsLink } from "./links-TQwptN6q.js";
|
|
24
24
|
import { n as runCommandWithRuntime } from "./cli-utils-tNdOjVQI.js";
|
|
25
25
|
import { t as formatHelpExamples } from "./help-format-CPT6NY3h.js";
|
|
26
26
|
import "./progress-HNhsbm0E.js";
|
|
27
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
27
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DNq7EMhm.js";
|
|
28
28
|
import { t as copyToClipboard } from "./clipboard-zhZhAHCD.js";
|
|
29
29
|
import { n as inheritOptionFromParent } from "./command-options-nJfiotBs.js";
|
|
30
30
|
import { fileURLToPath } from "node:url";
|
package/dist/build-info.json
CHANGED
|
@@ -4,7 +4,7 @@ import { E as shouldLogVerbose, G as isRecord, r as DEFAULT_CHAT_CHANNEL, v as i
|
|
|
4
4
|
import { a as resolveAgentSkillsFilter, c as resolveEffectiveModelFallbacks, i as resolveAgentModelPrimary, l as resolveSessionAgentId, o as resolveAgentWorkspaceDir, r as resolveAgentDir, t as listAgentIds, u as resolveSessionAgentIds } from "../../agent-scope-B1Ina6jV.js";
|
|
5
5
|
import { r as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-DzRUKS9f.js";
|
|
6
6
|
import { l as ensureAgentWorkspace } from "../../workspace-CsaDUuDn.js";
|
|
7
|
-
import { A as runWithModelFallback, C as resolveSymiDocsPath, D as resolveRunWorkspaceDir, E as redactRunIdentifier, M as resolveFailoverStatus, O as deriveSessionTotalTokens, S as buildAgentSystemPrompt, T as resolveBootstrapContextForRun, _ as AGENT_LANE_NESTED, a as resolveSessionDeliveryTarget, b as emitAgentEvent, c as detectRuntimeShell, d as applyModelOverrideToSessionEntry, f as applyVerboseOverride, g as resolveAgentTimeoutMs, i as resolveOutboundTarget, j as FailoverError, k as hasNonzeroUsage, l as resolveSendPolicy, m as clearSessionAuthProfileOverride, n as buildModelAliasLines, o as buildSystemPromptParams, p as loadModelCatalog, s as getProcessSupervisor, t as runAgentTurn, u as lookupContextTokens, v as AGENT_LANE_SUBAGENT, w as makeBootstrapWarn, x as registerAgentRunContext, y as clearAgentRunContext } from "../../unified-runner-
|
|
7
|
+
import { A as runWithModelFallback, C as resolveSymiDocsPath, D as resolveRunWorkspaceDir, E as redactRunIdentifier, M as resolveFailoverStatus, O as deriveSessionTotalTokens, S as buildAgentSystemPrompt, T as resolveBootstrapContextForRun, _ as AGENT_LANE_NESTED, a as resolveSessionDeliveryTarget, b as emitAgentEvent, c as detectRuntimeShell, d as applyModelOverrideToSessionEntry, f as applyVerboseOverride, g as resolveAgentTimeoutMs, i as resolveOutboundTarget, j as FailoverError, k as hasNonzeroUsage, l as resolveSendPolicy, m as clearSessionAuthProfileOverride, n as buildModelAliasLines, o as buildSystemPromptParams, p as loadModelCatalog, s as getProcessSupervisor, t as runAgentTurn, u as lookupContextTokens, v as AGENT_LANE_SUBAGENT, w as makeBootstrapWarn, x as registerAgentRunContext, y as clearAgentRunContext } from "../../unified-runner-DAWxqcS9.js";
|
|
8
8
|
import { d as ensureAuthProfileStore } from "../../auth-profiles-BSw0aQND.js";
|
|
9
9
|
import { t as formatCliCommand } from "../../command-format-BrrHNE8r.js";
|
|
10
10
|
import { _ as DEFAULT_MODEL, a as isCliProvider, c as normalizeProviderId, d as resolveDefaultModelForAgent, g as DEFAULT_CONTEXT_TOKENS, m as resolveThinkingDefault, o as modelKey, s as normalizeModelRef, t as buildAllowedModelSet, u as resolveConfiguredModelRef, v as DEFAULT_PROVIDER } from "../../model-selection-BqshlIZc.js";
|
|
@@ -27,7 +27,7 @@ import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as re
|
|
|
27
27
|
import { t as SILENT_REPLY_TOKEN } from "../../tokens-D_vCJSzF.js";
|
|
28
28
|
import "../../diagnostic-BALvP9wI.js";
|
|
29
29
|
import "../../diagnostic-session-state-BDfanaOY.js";
|
|
30
|
-
import "../../manager-
|
|
30
|
+
import "../../manager-CtDuNn2T.js";
|
|
31
31
|
import "../../github-copilot-token-uhEBNQfj.js";
|
|
32
32
|
import "../../pi-auth-json-DCGR3yfh.js";
|
|
33
33
|
import "../../reply-prefix-D0NzzC4I.js";
|
|
@@ -4,7 +4,7 @@ import "../../registry-C-JddWwo.js";
|
|
|
4
4
|
import { o as resolveAgentWorkspaceDir } from "../../agent-scope-B1Ina6jV.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "../../subsystem-DzRUKS9f.js";
|
|
6
6
|
import "../../workspace-CsaDUuDn.js";
|
|
7
|
-
import "../../unified-runner-
|
|
7
|
+
import "../../unified-runner-DAWxqcS9.js";
|
|
8
8
|
import "../../auth-profiles-BSw0aQND.js";
|
|
9
9
|
import "../../model-selection-BqshlIZc.js";
|
|
10
10
|
import { Tt as hasInterSessionUserProvenance } from "../../deliver-DTRkeYm3.js";
|
|
@@ -26,7 +26,7 @@ import "../../paths-BsT3BvfH.js";
|
|
|
26
26
|
import "../../tokens-D_vCJSzF.js";
|
|
27
27
|
import "../../diagnostic-BALvP9wI.js";
|
|
28
28
|
import "../../diagnostic-session-state-BDfanaOY.js";
|
|
29
|
-
import "../../manager-
|
|
29
|
+
import "../../manager-CtDuNn2T.js";
|
|
30
30
|
import "../../github-copilot-token-uhEBNQfj.js";
|
|
31
31
|
import "../../pi-auth-json-DCGR3yfh.js";
|
|
32
32
|
import "../../reply-prefix-D0NzzC4I.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { _ as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-By0XjHBk.js";
|
|
2
2
|
import { _ as shortenHomeInString, h as resolveUserPath, s as ensureDir, t as CONFIG_DIR } from "./utils-CTPsqyE_.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
3
|
+
import { i as loadConfig } from "./config-D7SS4vdk.js";
|
|
4
4
|
import { i as isSecureWebSocketUrl } from "./ws-C7Ktmt-R.js";
|
|
5
5
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DgjXWzf-.js";
|
|
6
|
-
import { It as PROTOCOL_VERSION, rn as loadOrCreateDeviceIdentity, t as GatewayClient, tn as normalizeFingerprint } from "./client-
|
|
6
|
+
import { It as PROTOCOL_VERSION, rn as loadOrCreateDeviceIdentity, t as GatewayClient, tn as normalizeFingerprint } from "./client-BzUAFrla.js";
|
|
7
7
|
import { X509Certificate, randomUUID } from "node:crypto";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { promisify } from "node:util";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs/promises";
|
|
11
11
|
import { execFile } from "node:child_process";
|
|
12
12
|
|
|
13
13
|
//#region src/infra/tls/gateway.ts
|
|
14
14
|
const execFileAsync = promisify(execFile);
|
|
15
15
|
async function fileExists(filePath) {
|
|
16
16
|
try {
|
|
17
|
-
await
|
|
17
|
+
await fs.access(filePath);
|
|
18
18
|
return true;
|
|
19
19
|
} catch {
|
|
20
20
|
return false;
|
|
@@ -41,8 +41,8 @@ async function generateSelfSignedCert(params) {
|
|
|
41
41
|
"-subj",
|
|
42
42
|
"/CN=symi-gateway"
|
|
43
43
|
]);
|
|
44
|
-
await
|
|
45
|
-
await
|
|
44
|
+
await fs.chmod(params.keyPath, 384).catch(() => {});
|
|
45
|
+
await fs.chmod(params.certPath, 384).catch(() => {});
|
|
46
46
|
params.log?.info?.(`gateway tls: generated self-signed cert at ${shortenHomeInString(params.certPath)}`);
|
|
47
47
|
}
|
|
48
48
|
async function loadGatewayTlsRuntime(cfg, log) {
|
|
@@ -80,9 +80,9 @@ async function loadGatewayTlsRuntime(cfg, log) {
|
|
|
80
80
|
error: "gateway tls: cert/key missing"
|
|
81
81
|
};
|
|
82
82
|
try {
|
|
83
|
-
const cert = await
|
|
84
|
-
const key = await
|
|
85
|
-
const ca = caPath ? await
|
|
83
|
+
const cert = await fs.readFile(certPath, "utf8");
|
|
84
|
+
const key = await fs.readFile(keyPath, "utf8");
|
|
85
|
+
const ca = caPath ? await fs.readFile(caPath, "utf8") : void 0;
|
|
86
86
|
const fingerprintSha256 = normalizeFingerprint(new X509Certificate(cert).fingerprint256 ?? "");
|
|
87
87
|
if (!fingerprintSha256) return {
|
|
88
88
|
enabled: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
aa4306f51bf0fd499d3bec2dd2aae569975ca1e2350ca0f748e18c253a7bdb73
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as CHAT_CHANNEL_ORDER, n as isTruthyEnvValue } from "./entry.js";
|
|
2
2
|
import { n as listChannelPlugins } from "./plugins-BsEhWvLn.js";
|
|
3
3
|
import { r as listChannelPluginCatalogEntries } from "./catalog-CPv67Mhc.js";
|
|
4
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
4
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-CAdIrLmG.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/channel-options.ts
|
|
7
7
|
function dedupe(values) {
|
|
@@ -2,7 +2,7 @@ import { n as CHAT_CHANNEL_ORDER } from "./registry-Sbac4a4z.js";
|
|
|
2
2
|
import { t as isTruthyEnvValue } from "./env-BRnPI9sO.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-CF5skkHh.js";
|
|
4
4
|
import { r as listChannelPluginCatalogEntries } from "./catalog-DsC3JTw1.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-DovNSdK0.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/channel-options.ts
|
|
8
8
|
function dedupe(values) {
|