@symerian/symi 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-BgGJEKk4.js → agent-BcHmIY_n.js} +17 -17
- package/dist/{agent-scope-DIjW66iO.js → agent-scope-CKTVXF_1.js} +18 -18
- package/dist/{agents.config-CuasVG0i.js → agents.config-D6lBCMyT.js} +1 -1
- package/dist/{audit-BRI7EaSZ.js → audit-CMPCYnHv.js} +20 -20
- package/dist/{auth-choice-Ar8WHnyN.js → auth-choice-s1SGAS0u.js} +8 -8
- package/dist/{auth-profiles-BFSVvFKy.js → auth-profiles-BDvJK1Bg.js} +9 -9
- package/dist/{auth-token-C8wKZLJM.js → auth-token-BKp_ClDP.js} +1 -1
- package/dist/{browser-cli-BdYqssco.js → browser-cli-DW3CxkSc.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +4 -4
- package/dist/{call-CbF18cyd.js → call-BjHvYJx2.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-D2lzRM-e.js → channel-options-77nGDc70.js} +1 -1
- package/dist/{channels-cli-DFN6N0Vp.js → channels-cli-C048Z7h-.js} +54 -54
- package/dist/{chrome-D5UEEo4y.js → chrome-BQoO4LXq.js} +2 -2
- package/dist/{chrome-CbVmSQ7D.js → chrome-C0vnHDyY.js} +7 -7
- package/dist/{chrome-BWQSyLHT.js → chrome-droANDig.js} +7 -7
- package/dist/{cli-BI2hMJ3x.js → cli-CXAyZ9dx.js} +42 -42
- package/dist/{client-ZZqt0H0-.js → client-Bs2zB0rY.js} +1 -1
- package/dist/{command-registry-CwnRHggJ.js → command-registry-B9TplwzB.js} +4 -4
- package/dist/{commands-registry-BNCcZy2y.js → commands-registry-CLePPNDW.js} +1 -1
- package/dist/{completion-cli-DwN2HXNn.js → completion-cli-Dv8CNTMW.js} +2 -2
- package/dist/{completion-cli-Cyueakwc.js → completion-cli-ecfjoaIU.js} +12 -12
- package/dist/{config-MU0QT0xu.js → config-BEaq2Sb6.js} +2 -2
- package/dist/{config-cli-C2Nwn4ID.js → config-cli-CAwWFZwh.js} +4 -4
- package/dist/{config-guard-VJr2yVm_.js → config-guard-29sjAeg8.js} +6 -6
- package/dist/{config-validation-BkJh21Ko.js → config-validation-Bp2AdKjN.js} +1 -1
- package/dist/{configure-2zKlA3cu.js → configure-DvVtZB1V.js} +14 -14
- package/dist/{consolidate-DhJ5sq5p.js → consolidate-DeA11kIO.js} +6 -6
- package/dist/{control-service-D1aZqS0Q.js → control-service-DhlgNQGb.js} +4 -4
- package/dist/{control-ui-assets-DUhvOLUL.js → control-ui-assets-D22DSxhv.js} +1 -1
- package/dist/{cron-cli-Ch8MwxYs.js → cron-cli-Cr8hrEDQ.js} +7 -7
- package/dist/{daemon-cli-DbwmIQAj.js → daemon-cli-OZuuMobs.js} +11 -11
- package/dist/{daemon-runtime-DDwhgI7i.js → daemon-runtime-Dr_xKl0r.js} +10 -10
- package/dist/{deliver-VAsFQe0w.js → deliver-BwcK0QD6.js} +4 -4
- package/dist/{deliver-BX3IOm7k.js → deliver-ccf_boim.js} +2 -2
- package/dist/{deliver-BBoTRer2.js → deliver-vzAN9mRl.js} +4 -4
- package/dist/{deps-BCywDAi0.js → deps-B6QYsl_-.js} +1 -1
- package/dist/{devices-cli-ZiU2HGbP.js → devices-cli-DN3SH89Z.js} +6 -6
- package/dist/{diagnostics-DxdqTfpW.js → diagnostics-nLP2i_BY.js} +5 -5
- package/dist/{directory-cli-DJnKldBM.js → directory-cli-B72WzWuP.js} +3 -3
- package/dist/{dm-policy-shared-BzGFEhLb.js → dm-policy-shared-DiZ3lMtl.js} +1 -1
- package/dist/{dns-cli-LhrwMgGE.js → dns-cli-DPO4AuUq.js} +3 -3
- package/dist/{docs-cli-DjQ3SvBq.js → docs-cli-C2BEC5yU.js} +1 -1
- package/dist/{doctor-completion-DLMAxB2b.js → doctor-completion-Cvu8koMQ.js} +2 -2
- package/dist/{doctor-completion-B9khF9iy.js → doctor-completion-DwrIExJJ.js} +1 -1
- package/dist/{doctor-config-flow-j1iK-0XV.js → doctor-config-flow-Cu1ZuFHd.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-DqWFmApk.js → exec-approvals-cli-BN5OFwrg.js} +13 -13
- package/dist/extensionAPI.js +4 -4
- package/dist/{fs-safe-B6nMaZqV.js → fs-safe-DjAKGGJ8.js} +6 -6
- package/dist/{gateway-cli-05LQa0LN.js → gateway-cli-C_wDspkm.js} +120 -120
- package/dist/{gateway-cli-CUiAKfCT.js → gateway-cli-uquFQTQW.js} +1 -1
- package/dist/{gateway-rpc-RZAJMB1i.js → gateway-rpc-fQLZhzRK.js} +1 -1
- package/dist/{health-DnOYGIFp.js → health-DUulgHFK.js} +4 -4
- package/dist/{hooks-cli-BERKc4aw.js → hooks-cli-6UBBpeAz.js} +56 -56
- package/dist/{image-ops-C-gIIp7Q.js → image-ops-c7_of0HT.js} +10 -10
- package/dist/index.js +49 -49
- package/dist/{inspect-BDzd6yBs.js → inspect-op0Ov-v4.js} +4 -4
- package/dist/{install-safe-path-CQXx3s9R.js → install-safe-path-B73BkVO3.js} +11 -11
- package/dist/{installs-DhSLZRT7.js → installs-BzgwvqqQ.js} +10 -10
- package/dist/{internal-CHnZdvRy.js → internal-C3o_xyzP.js} +9 -9
- package/dist/{lifecycle-core-B9_prcP5.js → lifecycle-core-BmGPBj_P.js} +5 -5
- package/dist/llm-slug-generator.js +4 -4
- package/dist/{local-roots-BnDnugq3.js → local-roots-CUKhHNCV.js} +1 -1
- package/dist/{logs-cli-BuaYoENt.js → logs-cli-BXBN6_Kf.js} +7 -7
- package/dist/{manager-BQJivzx9.js → manager-C_5p8DxF.js} +14 -14
- package/dist/{manager-GRHfrG3p.js → manager-DOfc0hW0.js} +1 -1
- package/dist/{manager-1b5V7lDX.js → manager-WHZtXzz0.js} +1 -1
- package/dist/{memory-ZiPonhHz.js → memory-BZPO-RoX.js} +5 -5
- package/dist/{memory-cli-B5TU8zxX.js → memory-cli-4vj-LpgO.js} +12 -12
- package/dist/{model-BRcKPW49.js → model-CbRy_3xW.js} +1 -1
- package/dist/{model-catalog-De1c8o1y.js → model-catalog-BrW9BL1p.js} +4 -4
- package/dist/{model-picker-CjVFmtQf.js → model-picker-UrQQVAuN.js} +3 -3
- package/dist/{models-cli-BzP7r0Pr.js → models-cli-BRnmApgY.js} +52 -52
- package/dist/{models-config-C-VjjDXg.js → models-config-Dh1tABIl.js} +7 -7
- package/dist/{node-cli-dAjmpFFQ.js → node-cli-DXCDRV3y.js} +27 -27
- package/dist/{node-service-DLCN3Pek.js → node-service-n6G8Ybbk.js} +1 -1
- package/dist/{nodes-cli-Bavn0Wq1.js → nodes-cli-Fyv-oG6A.js} +10 -10
- package/dist/{nodes-screen-JELuBMBi.js → nodes-screen-CT94yu_w.js} +4 -4
- package/dist/{npm-registry-spec-BXw_6vF6.js → npm-registry-spec-B8X06AqB.js} +9 -9
- package/dist/{onboard-DbjF9LIj.js → onboard-CEyd79t_.js} +13 -13
- package/dist/{onboard-Yx5pWXot.js → onboard-CLSFAKKt.js} +1 -1
- package/dist/{onboard-channels-D1ThqeIv.js → onboard-channels-DqhDDHZ3.js} +4 -4
- package/dist/{onboard-custom-Dmv0zr-6.js → onboard-custom-BRFhBogJ.js} +3 -3
- package/dist/{onboard-helpers-DpIB1xVU.js → onboard-helpers-wgkj6qF2.js} +8 -8
- package/dist/{onboard-hooks-DDANBk-9.js → onboard-hooks-CknstfLG.js} +1 -1
- package/dist/{onboard-remote-MlK-zjua.js → onboard-remote-B5rlIYUq.js} +1 -1
- package/dist/{onboard-skills-BFebcdsU.js → onboard-skills-_6kHqhHz.js} +4 -4
- package/dist/{onboarding-BIOnPknC.js → onboarding-CJuG6AyD.js} +1 -1
- package/dist/{onboarding-B4y_mt01.js → onboarding-CREA0oQK.js} +12 -12
- package/dist/{onboarding.finalize-DvuthtW0.js → onboarding.finalize-7iPylQyi.js} +4 -4
- package/dist/{onboarding.finalize-CdYyVsOB.js → onboarding.finalize-CkgL8Zde.js} +31 -31
- package/dist/{onboarding.gateway-config-DC9fM10t.js → onboarding.gateway-config-DtNG0As8.js} +8 -8
- package/dist/{openai-model-default-DYlS_J2T.js → openai-model-default-DeTAMJKz.js} +2 -2
- package/dist/{pairing-cli-D1zyMuRV.js → pairing-cli-BvP6MoPZ.js} +4 -4
- package/dist/{pairing-store-BGf29nPx.js → pairing-store-S9CXOhSG.js} +1 -1
- package/dist/{pairing-token-CURbSHdi.js → pairing-token-DorpwP8O.js} +7 -7
- package/dist/{paths-Dc6A9_vI.js → paths-DaQrPPet.js} +1 -1
- package/dist/{pi-auth-json-SHGGQzOL.js → pi-auth-json-CVwNh4rb.js} +5 -5
- package/dist/{pi-embedded-BvMMjrvj.js → pi-embedded-B7_uthwZ.js} +10 -10
- package/dist/{pi-embedded-helpers-D4cxQiPr.js → pi-embedded-helpers-DGW2untm.js} +6 -6
- package/dist/{pi-tools.policy-NmG0EGEY.js → pi-tools.policy-BcTgKDG6.js} +3 -3
- package/dist/{plugin-auto-enable-D2TNEv3x.js → plugin-auto-enable-BDPdHiLS.js} +1 -1
- package/dist/{plugin-registry-B0d7w7Tq.js → plugin-registry-bskbnEuW.js} +3 -3
- package/dist/plugin-sdk/index.js +6 -6
- package/dist/{plugins-cli-DNMBwSsv.js → plugins-cli-LQUO7D2v.js} +51 -51
- package/dist/{ports-DRHSHvqY.js → ports-ChuJYhEL.js} +1 -1
- package/dist/{ports-DqxP-bXz.js → ports-EAVAOFyK.js} +2 -2
- package/dist/{program-DKmohZYs.js → program-BgrmtnFn.js} +2 -2
- package/dist/{program-context-BHCqXp7K.js → program-context-C_uJXnZV.js} +38 -38
- package/dist/{prompt-select-styled-DIpkZ3Py.js → prompt-select-styled-B3nTSykf.js} +36 -35
- package/dist/{prompt-select-styled-CJ7vyifz.js → prompt-select-styled-CuGBQ9LO.js} +2 -1
- package/dist/{provider-auth-helpers-rT0mj3Rg.js → provider-auth-helpers-IsZNkaS0.js} +5 -5
- package/dist/{push-apns-KHQGzTcZ.js → push-apns-C7t2qAZ6.js} +4 -4
- package/dist/{pw-ai-HU-K9Kp6.js → pw-ai-Bc5uzn_J.js} +1 -1
- package/dist/{pw-ai-CNOE7SUx.js → pw-ai-Tm3pd-HP.js} +1 -1
- package/dist/{pw-ai-CyCnG_Kj.js → pw-ai-YJhl5L-z.js} +7 -7
- package/dist/{qmd-manager-CAQYVZT8.js → qmd-manager-CrRvB46v.js} +19 -19
- package/dist/{qr-cli-Cc3gulVb.js → qr-cli-D1U-qIkG.js} +3 -3
- package/dist/{register.agent-D3QRjMQA.js → register.agent-BblNQlzT.js} +64 -64
- package/dist/{register.configure-BlCCtcgW.js → register.configure-BJ7xtOUZ.js} +67 -67
- package/dist/{register.maintenance-C-U8Vjdk.js → register.maintenance-DLJpeuc4.js} +64 -64
- package/dist/{register.maintenance-BH0tQsKC.js → register.maintenance-w7sKxODf.js} +5 -5
- package/dist/{register.message-BJEu7jXo.js → register.message-CXEwBJ1O.js} +44 -44
- package/dist/{register.onboard-B_WCIG9n.js → register.onboard-B520Ixsd.js} +22 -22
- package/dist/{register.onboard-CcvZY9rS.js → register.onboard-DJmVC_6h.js} +2 -2
- package/dist/{register.setup-CXojM7PS.js → register.setup-BTse4F3a.js} +25 -25
- package/dist/{register.setup-CLFM22gp.js → register.setup-Br-aZ0qD.js} +2 -2
- package/dist/{register.status-health-sessions-DAraoWwd.js → register.status-health-sessions-Dbizirr2.js} +38 -38
- package/dist/{register.subclis-4IO5JLGL.js → register.subclis-CSJZQox4.js} +3 -3
- package/dist/{replies-t5bPemnD.js → replies-CbipVshj.js} +1 -1
- package/dist/{reply-prefix-BOdARKaY.js → reply-prefix-DZQBodKF.js} +1 -1
- package/dist/{resolve-route-CRWE36h5.js → resolve-route-BbUl3Hi7.js} +1 -1
- package/dist/{routes-CTOYLhQ1.js → routes-DiqMB1cp.js} +10 -10
- package/dist/{rpc-BLUOZg0H.js → rpc-BcPBUUXl.js} +1 -1
- package/dist/{run-main-dgWHEHSR.js → run-main-DISYU1dh.js} +3 -3
- package/dist/{sandbox-CpZmnHRC.js → sandbox-DPn-s_K5.js} +18 -18
- package/dist/{sandbox-cli-DtbM64tR.js → sandbox-cli-Bl5CMRjH.js} +13 -13
- package/dist/{security-cli-CnNnxSRu.js → security-cli-DuxEuSGr.js} +28 -28
- package/dist/{send-zbkImdk9.js → send-CYJucYob.js} +7 -7
- package/dist/{server-context-Dytgl6ZD.js → server-context-BUbuOgNz.js} +5 -5
- package/dist/{server-node-events-CY5_aNdi.js → server-node-events-7ToqdaU5.js} +45 -45
- package/dist/{service-AP9pR9R5.js → service-9ItKCWWS.js} +15 -15
- package/dist/{session-dirs-CFEdAT4Z.js → session-dirs-DONOhYc3.js} +16 -16
- package/dist/{session-utils-NOQiGgMD.js → session-utils-CqSXwGYa.js} +12 -12
- package/dist/{sessions-B7Of0Rqm.js → sessions-DorP6zY8.js} +11 -11
- package/dist/{shared-BmS-LOw8.js → shared-Z3KjnA8n.js} +3 -3
- package/dist/{shared-DmYHvtn2.js → shared-ot5_jkpP.js} +1 -1
- package/dist/{skill-commands-5QB5E8bv.js → skill-commands-RbglvrSW.js} +4 -4
- package/dist/{skill-scanner-YF2jR4RY.js → skill-scanner-CZK0TG9g.js} +5 -5
- package/dist/{skills-Bmjf5nFv.js → skills-DS1Vdylm.js} +4 -4
- package/dist/{skills-cli-CGPerRcN.js → skills-cli-BmIb-9--.js} +7 -7
- package/dist/{skills-install-DLUMpiCC.js → skills-install-DcX1Txvp.js} +3 -3
- package/dist/{skills-remote-CqwR3Zvp.js → skills-remote-BDSyRdyX.js} +3 -3
- package/dist/{skills-status-BNDqwHkP.js → skills-status-F7nlolZZ.js} +1 -1
- package/dist/{sqlite-DBEvS-Ne.js → sqlite-BUXBg2yu.js} +5 -5
- package/dist/{status-C6HwMPLx.js → status-CR4VgVZ0.js} +3 -3
- package/dist/{status-CJ4x2gHu.js → status-Hf__QNbH.js} +23 -23
- package/dist/{status.update-iWEAq6bt.js → status.update-DOj5ifHZ.js} +3 -3
- package/dist/{symi-root-DueRHNOE.js → symi-root-0MUhiNlM.js} +2 -2
- package/dist/{synthesis-Q30uczDF.js → synthesis-B4G0BnU5.js} +4 -4
- package/dist/{synthesis-DcGTICel.js → synthesis-C-IePZG6.js} +4 -4
- package/dist/{synthesis-DvSl5w4K.js → synthesis-CK0K7wFk.js} +42 -42
- package/dist/{system-cli-DKMfh71A.js → system-cli-BKp2K0sb.js} +7 -7
- package/dist/{systemd-9LEEqibe.js → systemd-8KKQdTO_.js} +5 -5
- package/dist/{systemd-hints-RoqMZFFM.js → systemd-hints-BefHB3bX.js} +6 -6
- package/dist/{systemd-linger-CWJhsBBY.js → systemd-linger-C0-G8yq4.js} +1 -1
- package/dist/{tui-DeVQrlt9.js → tui-BheB3rbE.js} +7 -7
- package/dist/{tui-cli-3EAQXwu7.js → tui-cli-BDcU-VgA.js} +19 -19
- package/dist/{unified-runner-CSn91cbr.js → unified-runner-BSdnT6eM.js} +10 -10
- package/dist/{unified-runner-CjFXehHb.js → unified-runner-D6p4N2vu.js} +99 -99
- package/dist/{update-CE8nDV7s.js → update-Djvyvehx.js} +3 -3
- package/dist/{update-check-CZxZhEXr.js → update-check-BdSIMYWq.js} +5 -5
- package/dist/{update-cli-BN4_mr6c.js → update-cli-BmQuYKTw.js} +5 -5
- package/dist/{update-cli-CUGTzKWo.js → update-cli-CwznFR5g.js} +74 -74
- package/dist/{webhooks-cli-CoIL1D4T.js → webhooks-cli-D_wAaLOU.js} +4 -4
- package/dist/{with-timeout-COajnkmj.js → with-timeout-CAUWEPmp.js} +1 -1
- package/dist/{workspace-dirs-D5OnUmvw.js → workspace-dirs-QmSWJptJ.js} +1 -1
- package/dist/{wsl-ZWGwnnKI.js → wsl-DO9usEVV.js} +2 -2
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
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-D6p4N2vu.js";
|
|
2
2
|
import { D as shouldLogVerbose, r as DEFAULT_CHAT_CHANNEL } from "./registry-DKJLAPDB.js";
|
|
3
3
|
import { u as isRecord } from "./utils-BU8jVQFM.js";
|
|
4
4
|
import { f as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
5
|
-
import { F as modelKey, H as resolveDefaultModelForAgent, Ht as DEFAULT_MODEL, I as normalizeModelRef, L as normalizeProviderId, P as isCliProvider, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, Vt as DEFAULT_CONTEXT_TOKENS, b as ensureAuthProfileStore, k as buildAllowedModelSet, q as resolveThinkingDefault } from "./auth-profiles-
|
|
5
|
+
import { F as modelKey, H as resolveDefaultModelForAgent, Ht as DEFAULT_MODEL, I as normalizeModelRef, L as normalizeProviderId, P as isCliProvider, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, Vt as DEFAULT_CONTEXT_TOKENS, b as ensureAuthProfileStore, k as buildAllowedModelSet, q as resolveThinkingDefault } from "./auth-profiles-BDvJK1Bg.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
7
7
|
import { c as resolveAgentIdFromSessionKey, o as normalizeAgentId, s as normalizeMainKey } from "./session-key-B_ZVH1kE.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-
|
|
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-CKTVXF_1.js";
|
|
9
9
|
import { t as isTruthyEnvValue } from "./env-B97Ms861.js";
|
|
10
|
-
import { D as isFailoverErrorMessage, g as classifyFailoverReason } from "./pi-embedded-helpers-
|
|
11
|
-
import { i as loadConfig } from "./config-
|
|
12
|
-
import { r as buildWorkspaceSkillSnapshot } from "./skills-
|
|
13
|
-
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-
|
|
10
|
+
import { D as isFailoverErrorMessage, g as classifyFailoverReason } from "./pi-embedded-helpers-DGW2untm.js";
|
|
11
|
+
import { i as loadConfig } from "./config-BEaq2Sb6.js";
|
|
12
|
+
import { r as buildWorkspaceSkillSnapshot } from "./skills-DS1Vdylm.js";
|
|
13
|
+
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-DorP6zY8.js";
|
|
14
14
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-C_V8IAYx.js";
|
|
15
15
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DuuHorqi.js";
|
|
16
16
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath } from "./paths-CJcw9nbZ.js";
|
|
17
17
|
import { d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-177f26eg.js";
|
|
18
|
-
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
18
|
+
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-ccf_boim.js";
|
|
19
19
|
import { c as hasNonzeroUsage, s as deriveSessionTotalTokens } from "./session-cost-usage-DYcv40ss.js";
|
|
20
|
-
import { x as lookupContextTokens } from "./session-utils-
|
|
21
|
-
import { g as getSkillsSnapshotVersion, t as getRemoteSkillEligibility } from "./skills-remote-
|
|
22
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
23
|
-
import { a as buildModelAliasLines } from "./model-
|
|
24
|
-
import { t as createDefaultDeps } from "./deps-
|
|
20
|
+
import { x as lookupContextTokens } from "./session-utils-CqSXwGYa.js";
|
|
21
|
+
import { g as getSkillsSnapshotVersion, t as getRemoteSkillEligibility } from "./skills-remote-BDSyRdyX.js";
|
|
22
|
+
import { n as loadModelCatalog } from "./model-catalog-BrW9BL1p.js";
|
|
23
|
+
import { a as buildModelAliasLines } from "./model-CbRy_3xW.js";
|
|
24
|
+
import { t as createDefaultDeps } from "./deps-B6QYsl_-.js";
|
|
25
25
|
import { t as createOutboundSendDeps } from "./outbound-send-deps-pzO0D6kV.js";
|
|
26
26
|
import crypto from "node:crypto";
|
|
27
27
|
import path from "node:path";
|
|
28
28
|
import os from "node:os";
|
|
29
|
-
import
|
|
29
|
+
import fsPromises from "node:fs/promises";
|
|
30
30
|
|
|
31
31
|
//#region src/agents/cli-watchdog-defaults.ts
|
|
32
32
|
const CLI_WATCHDOG_MIN_TIMEOUT_MS = 1e3;
|
|
@@ -461,18 +461,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
461
461
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
462
462
|
}
|
|
463
463
|
async function writeCliImages(images) {
|
|
464
|
-
const tempDir = await
|
|
464
|
+
const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "symi-cli-images-"));
|
|
465
465
|
const paths = [];
|
|
466
466
|
for (let i = 0; i < images.length; i += 1) {
|
|
467
467
|
const image = images[i];
|
|
468
468
|
const ext = resolveImageExtension(image.mimeType);
|
|
469
469
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
470
470
|
const buffer = Buffer.from(image.data, "base64");
|
|
471
|
-
await
|
|
471
|
+
await fsPromises.writeFile(filePath, buffer, { mode: 384 });
|
|
472
472
|
paths.push(filePath);
|
|
473
473
|
}
|
|
474
474
|
const cleanup = async () => {
|
|
475
|
-
await
|
|
475
|
+
await fsPromises.rm(tempDir, {
|
|
476
476
|
recursive: true,
|
|
477
477
|
force: true
|
|
478
478
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { g as resolveStateDir, y as resolveRequiredHomeDir } from "./paths-BSzKwaxE.js";
|
|
2
2
|
import { f as pathExists, h as resolveUserPath } from "./utils-BU8jVQFM.js";
|
|
3
3
|
import { b as isSubagentSessionKey, o as normalizeAgentId, t as DEFAULT_AGENT_ID, x as parseAgentSessionKey, y as isCronSessionKey } from "./session-key-B_ZVH1kE.js";
|
|
4
|
-
import { i as normalizeSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-
|
|
4
|
+
import { i as normalizeSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-0MUhiNlM.js";
|
|
5
5
|
import { t as runCommandWithTimeout } from "./exec-DKyLtSjm.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 fsPromises 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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
176
|
+
await fsPromises.rename(tmpPath, statePath);
|
|
177
177
|
} catch (err) {
|
|
178
|
-
await
|
|
178
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
179
179
|
throw err;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async function hasGitRepo(dir) {
|
|
183
183
|
try {
|
|
184
|
-
await
|
|
184
|
+
await fsPromises.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 fsPromises.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 fsPromises.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([fsPromises.readFile(identityPath, "utf-8"), fsPromises.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 fsPromises.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 fsPromises.realpath(entry.filePath);
|
|
307
307
|
} catch {}
|
|
308
308
|
if (seen.has(key)) continue;
|
|
309
309
|
seen.add(key);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as normalizeAgentId } from "./session-key-B_ZVH1kE.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-CKTVXF_1.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
|
|
@@ -2,34 +2,34 @@ import { g as resolveStateDir, m as resolveOAuthDir, o as resolveConfigPath } fr
|
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
3
3
|
import { o as normalizeAgentId } from "./session-key-B_ZVH1kE.js";
|
|
4
4
|
import { n as runExec } from "./exec-DKyLtSjm.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-CKTVXF_1.js";
|
|
6
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-BEaq2Sb6.js";
|
|
7
7
|
import { u as normalizePluginsConfig } from "./manifest-registry-D_LsBSyt.js";
|
|
8
8
|
import { i as isPathInside, n as MANIFEST_KEY, r as extensionUsesSkippedScannerPath } from "./legacy-names-Catogrri.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-DPn-s_K5.js";
|
|
10
10
|
import { a as resolveGatewayAuth } from "./auth-BbwD4lRX.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-BUbuOgNz.js";
|
|
12
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-DS1Vdylm.js";
|
|
13
13
|
import { n as formatErrorMessage } from "./errors-Z-WkF18Q.js";
|
|
14
14
|
import { c as normalizeStringEntries } from "./dock-CnGWTXL4.js";
|
|
15
15
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-C_V8IAYx.js";
|
|
16
16
|
import { n as listChannelPlugins } from "./plugins-DuuHorqi.js";
|
|
17
17
|
import { i as resolveNativeSkillsEnabled, r as resolveNativeCommandsEnabled } from "./commands-B3UrgxIz.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-Bs2zB0rY.js";
|
|
19
|
+
import { c as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-BjHvYJx2.js";
|
|
20
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-QmSWJptJ.js";
|
|
21
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-S9CXOhSG.js";
|
|
22
|
+
import { n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-BcTgKDG6.js";
|
|
23
23
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BBypnAYf.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-CZK0TG9g.js";
|
|
25
|
+
import { t as resolveDmAllowState } from "./dm-policy-shared-DiZ3lMtl.js";
|
|
26
26
|
import { t as inferParamBFromIdOrName } from "./model-param-b-DnsFCAGo.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
|
|
32
|
-
import
|
|
31
|
+
import * as fs from "node:fs/promises";
|
|
32
|
+
import fsPromises 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
|
|
1169
|
+
const rawText = await fs.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Ct as resolveEnvApiKey, Ht as DEFAULT_MODEL, It as discoverHuggingfaceModels, Lt as isHuggingfacePolicyLocked, Rt as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, T as resolveSymiAgentDir, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, b as ensureAuthProfileStore, d as generateChutesPkce, f as parseOAuthCallbackInput, h as listProfilesForProvider, l as CHUTES_AUTHORIZE_ENDPOINT, n as resolveAuthProfileOrder, ot as VENICE_DEFAULT_MODEL_REF, pt as SYNTHETIC_DEFAULT_MODEL_REF, u as exchangeChutesCodeForTokens, v as upsertAuthProfile, yt as getCustomProviderApiKey } from "./auth-profiles-
|
|
3
|
-
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-
|
|
2
|
+
import { Ct as resolveEnvApiKey, Ht as DEFAULT_MODEL, It as discoverHuggingfaceModels, Lt as isHuggingfacePolicyLocked, Rt as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, T as resolveSymiAgentDir, Ut as DEFAULT_PROVIDER, V as resolveConfiguredModelRef, b as ensureAuthProfileStore, d as generateChutesPkce, f as parseOAuthCallbackInput, h as listProfilesForProvider, l as CHUTES_AUTHORIZE_ENDPOINT, n as resolveAuthProfileOrder, ot as VENICE_DEFAULT_MODEL_REF, pt as SYNTHETIC_DEFAULT_MODEL_REF, u as exchangeChutesCodeForTokens, v as upsertAuthProfile, yt as getCustomProviderApiKey } from "./auth-profiles-BDvJK1Bg.js";
|
|
3
|
+
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-CKTVXF_1.js";
|
|
4
4
|
import { r as isLoopbackHost } from "./ws-CahTJvD6.js";
|
|
5
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
5
|
+
import { n as loadModelCatalog } from "./model-catalog-BrW9BL1p.js";
|
|
6
6
|
import { t as enablePluginInConfig } from "./enable-CAlFtzVH.js";
|
|
7
|
-
import { f as openUrl } from "./onboard-helpers-
|
|
8
|
-
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-
|
|
9
|
-
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-
|
|
10
|
-
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-
|
|
11
|
-
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-
|
|
7
|
+
import { f as openUrl } from "./onboard-helpers-wgkj6qF2.js";
|
|
8
|
+
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-BKp_ClDP.js";
|
|
9
|
+
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-IsZNkaS0.js";
|
|
10
|
+
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-DeTAMJKz.js";
|
|
11
|
+
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-UrQQVAuN.js";
|
|
12
12
|
import { randomBytes } from "node:crypto";
|
|
13
13
|
import { loginOpenAICodex } from "@mariozechner/pi-ai";
|
|
14
14
|
import { createServer } from "node:http";
|
|
@@ -4,13 +4,13 @@ import { h as resolveUserPath } from "./utils-BU8jVQFM.js";
|
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
6
6
|
import { t as DEFAULT_AGENT_ID } from "./session-key-B_ZVH1kE.js";
|
|
7
|
-
import { o as resolveAgentModelPrimary, r as resolveAgentConfig } from "./agent-scope-
|
|
7
|
+
import { o as resolveAgentModelPrimary, r as resolveAgentConfig } from "./agent-scope-CKTVXF_1.js";
|
|
8
8
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-BTNK6Tcd.js";
|
|
9
9
|
import { t as isTruthyEnvValue } from "./env-B97Ms861.js";
|
|
10
10
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import fs from "node:fs";
|
|
13
|
-
import
|
|
13
|
+
import fsPromises from "node:fs/promises";
|
|
14
14
|
import { execFileSync } from "node:child_process";
|
|
15
15
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
16
16
|
import { createAssistantMessageEventStream, getEnvApiKey, getOAuthApiKey, getOAuthProviders } from "@mariozechner/pi-ai";
|
|
@@ -3157,7 +3157,7 @@ function computeDelayMs(retries, attempt) {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
async function readLockPayload(lockPath) {
|
|
3159
3159
|
try {
|
|
3160
|
-
const raw = await
|
|
3160
|
+
const raw = await fsPromises.readFile(lockPath, "utf8");
|
|
3161
3161
|
const parsed = JSON.parse(raw);
|
|
3162
3162
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
|
|
3163
3163
|
return {
|
|
@@ -3171,9 +3171,9 @@ async function readLockPayload(lockPath) {
|
|
|
3171
3171
|
async function resolveNormalizedFilePath(filePath) {
|
|
3172
3172
|
const resolved = path.resolve(filePath);
|
|
3173
3173
|
const dir = path.dirname(resolved);
|
|
3174
|
-
await
|
|
3174
|
+
await fsPromises.mkdir(dir, { recursive: true });
|
|
3175
3175
|
try {
|
|
3176
|
-
const realDir = await
|
|
3176
|
+
const realDir = await fsPromises.realpath(dir);
|
|
3177
3177
|
return path.join(realDir, path.basename(resolved));
|
|
3178
3178
|
} catch {
|
|
3179
3179
|
return resolved;
|
|
@@ -3187,7 +3187,7 @@ async function isStaleLock(lockPath, staleMs) {
|
|
|
3187
3187
|
if (!Number.isFinite(createdAt) || Date.now() - createdAt > staleMs) return true;
|
|
3188
3188
|
}
|
|
3189
3189
|
try {
|
|
3190
|
-
const stat = await
|
|
3190
|
+
const stat = await fsPromises.stat(lockPath);
|
|
3191
3191
|
return Date.now() - stat.mtimeMs > staleMs;
|
|
3192
3192
|
} catch {
|
|
3193
3193
|
return true;
|
|
@@ -3200,7 +3200,7 @@ async function releaseHeldLock(normalizedFile) {
|
|
|
3200
3200
|
if (current.count > 0) return;
|
|
3201
3201
|
HELD_LOCKS.delete(normalizedFile);
|
|
3202
3202
|
await current.handle.close().catch(() => void 0);
|
|
3203
|
-
await
|
|
3203
|
+
await fsPromises.rm(current.lockPath, { force: true }).catch(() => void 0);
|
|
3204
3204
|
}
|
|
3205
3205
|
async function acquireFileLock(filePath, options) {
|
|
3206
3206
|
const normalizedFile = await resolveNormalizedFilePath(filePath);
|
|
@@ -3215,7 +3215,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
const attempts = Math.max(1, options.retries.retries + 1);
|
|
3217
3217
|
for (let attempt = 0; attempt < attempts; attempt += 1) try {
|
|
3218
|
-
const handle = await
|
|
3218
|
+
const handle = await fsPromises.open(lockPath, "wx");
|
|
3219
3219
|
await handle.writeFile(JSON.stringify({
|
|
3220
3220
|
pid: process.pid,
|
|
3221
3221
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -3232,7 +3232,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3232
3232
|
} catch (err) {
|
|
3233
3233
|
if (err.code !== "EEXIST") throw err;
|
|
3234
3234
|
if (await isStaleLock(lockPath, options.stale)) {
|
|
3235
|
-
await
|
|
3235
|
+
await fsPromises.rm(lockPath, { force: true }).catch(() => void 0);
|
|
3236
3236
|
continue;
|
|
3237
3237
|
}
|
|
3238
3238
|
if (attempt >= attempts - 1) break;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BSzKwaxE.js";
|
|
2
|
-
import { $ as buildXiaomiProvider, Bt as resolveCloudflareAiGatewayBaseUrl, Ft as buildHuggingfaceModelDefinition, J as QIANFAN_BASE_URL, L as normalizeProviderId, Nt as HUGGINGFACE_BASE_URL, Pt as HUGGINGFACE_MODEL_CATALOG, Q as buildQianfanProvider, Rt as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, T as resolveSymiAgentDir, X as XIAOMI_DEFAULT_MODEL_ID, Y as QIANFAN_DEFAULT_MODEL_ID, Z as buildKimiCodingProvider, at as VENICE_BASE_URL, ct as buildVeniceModelDefinition, dt as buildTogetherModelDefinition, ft as SYNTHETIC_BASE_URL, ht as buildSyntheticModelDefinition, lt as TOGETHER_BASE_URL, mt as SYNTHETIC_MODEL_CATALOG, ot as VENICE_DEFAULT_MODEL_REF, pt as SYNTHETIC_DEFAULT_MODEL_REF, st as VENICE_MODEL_CATALOG, ut as TOGETHER_MODEL_CATALOG, v as upsertAuthProfile, zt as buildCloudflareAiGatewayModelDefinition } from "./auth-profiles-
|
|
2
|
+
import { $ as buildXiaomiProvider, Bt as resolveCloudflareAiGatewayBaseUrl, Ft as buildHuggingfaceModelDefinition, J as QIANFAN_BASE_URL, L as normalizeProviderId, Nt as HUGGINGFACE_BASE_URL, Pt as HUGGINGFACE_MODEL_CATALOG, Q as buildQianfanProvider, Rt as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, T as resolveSymiAgentDir, X as XIAOMI_DEFAULT_MODEL_ID, Y as QIANFAN_DEFAULT_MODEL_ID, Z as buildKimiCodingProvider, at as VENICE_BASE_URL, ct as buildVeniceModelDefinition, dt as buildTogetherModelDefinition, ft as SYNTHETIC_BASE_URL, ht as buildSyntheticModelDefinition, lt as TOGETHER_BASE_URL, mt as SYNTHETIC_MODEL_CATALOG, ot as VENICE_DEFAULT_MODEL_REF, pt as SYNTHETIC_DEFAULT_MODEL_REF, st as VENICE_MODEL_CATALOG, ut as TOGETHER_MODEL_CATALOG, v as upsertAuthProfile, zt as buildCloudflareAiGatewayModelDefinition } from "./auth-profiles-BDvJK1Bg.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
|
|
@@ -2,29 +2,29 @@ import { b as danger, j as theme, x as info } from "./registry-DKJLAPDB.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BSzKwaxE.js";
|
|
3
3
|
import { v as shortenHomePath } from "./utils-BU8jVQFM.js";
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-BDvJK1Bg.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
7
7
|
import "./exec-DKyLtSjm.js";
|
|
8
|
-
import "./agent-scope-
|
|
8
|
+
import "./agent-scope-CKTVXF_1.js";
|
|
9
9
|
import "./github-copilot-token-BTNK6Tcd.js";
|
|
10
10
|
import { t as parseBooleanValue } from "./boolean-Wzu0-e0P.js";
|
|
11
11
|
import "./env-B97Ms861.js";
|
|
12
|
-
import { i as loadConfig } from "./config-
|
|
12
|
+
import { i as loadConfig } from "./config-BEaq2Sb6.js";
|
|
13
13
|
import "./manifest-registry-D_LsBSyt.js";
|
|
14
14
|
import "./redact-CSc_2Nka.js";
|
|
15
15
|
import "./errors-Z-WkF18Q.js";
|
|
16
|
-
import "./fs-safe-
|
|
17
|
-
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-
|
|
16
|
+
import "./fs-safe-DjAKGGJ8.js";
|
|
17
|
+
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-DaQrPPet.js";
|
|
18
18
|
import { t as movePathToTrash } from "./trash-BjVrPcAx.js";
|
|
19
19
|
import "./message-channel-C_V8IAYx.js";
|
|
20
|
-
import "./client-
|
|
21
|
-
import "./call-
|
|
22
|
-
import "./pairing-token-
|
|
20
|
+
import "./client-Bs2zB0rY.js";
|
|
21
|
+
import "./call-BjHvYJx2.js";
|
|
22
|
+
import "./pairing-token-DorpwP8O.js";
|
|
23
23
|
import { t as formatDocsLink } from "./links-CSaUKNKm.js";
|
|
24
24
|
import { n as runCommandWithRuntime } from "./cli-utils-CX1oQ81G.js";
|
|
25
25
|
import { t as formatHelpExamples } from "./help-format-BI_G2p1e.js";
|
|
26
26
|
import "./progress-CyPyGCDn.js";
|
|
27
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
27
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-fQLZhzRK.js";
|
|
28
28
|
import { t as copyToClipboard } from "./clipboard-McRwF3r0.js";
|
|
29
29
|
import { n as inheritOptionFromParent } from "./command-options-ChiIn6Na.js";
|
|
30
30
|
import { fileURLToPath } from "node:url";
|
package/dist/build-info.json
CHANGED
|
@@ -4,14 +4,14 @@ 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-BSdnT6eM.js";
|
|
8
8
|
import { $ as DEFAULT_MODEL, A as resolveThinkingDefault, C as normalizeModelRef, D as resolveDefaultModelForAgent, E as resolveConfiguredModelRef, Q as DEFAULT_CONTEXT_TOKENS, S as modelKey, Z as isTruthyEnvValue, _ as buildAllowedModelSet, d as ensureAuthProfileStore, et as DEFAULT_PROVIDER, tt as formatCliCommand, w as normalizeProviderId, x as isCliProvider } from "../../auth-profiles-Boy_KMd1.js";
|
|
9
9
|
import "../../github-copilot-token-B31ugq7R.js";
|
|
10
10
|
import "../../boolean-mcn6kL0s.js";
|
|
11
|
-
import { At as resolveSessionResetPolicy, Dt as resolveSessionKey, It as resolveAgentMainSessionKey, Lt as resolveExplicitAgentSessionKey, M as classifyFailoverReason, Ot as evaluateSessionFreshness, Rt as resolveMainSessionKey, U as isFailoverErrorMessage, a as normalizeOutboundPayloadsForJson, at as loadSessionStore, i as normalizeOutboundPayloads, it as resolveAndPersistSessionFile, jt as resolveSessionResetType, kt as resolveChannelResetConfig, lt as updateSessionStore, nt as parseSessionThreadInfo, r as formatOutboundPayloadLog, t as deliverOutboundPayloads, vt as normalizeAccountId } from "../../deliver-
|
|
11
|
+
import { At as resolveSessionResetPolicy, Dt as resolveSessionKey, It as resolveAgentMainSessionKey, Lt as resolveExplicitAgentSessionKey, M as classifyFailoverReason, Ot as evaluateSessionFreshness, Rt as resolveMainSessionKey, U as isFailoverErrorMessage, a as normalizeOutboundPayloadsForJson, at as loadSessionStore, i as normalizeOutboundPayloads, it as resolveAndPersistSessionFile, jt as resolveSessionResetType, kt as resolveChannelResetConfig, lt as updateSessionStore, nt as parseSessionThreadInfo, r as formatOutboundPayloadLog, t as deliverOutboundPayloads, vt as normalizeAccountId } from "../../deliver-BwcK0QD6.js";
|
|
12
12
|
import { c as loadConfig } from "../../ssrf-BzPY2FrA.js";
|
|
13
13
|
import "../../manifest-registry-C0nJ3Ja3.js";
|
|
14
|
-
import "../../chrome-
|
|
14
|
+
import "../../chrome-C0vnHDyY.js";
|
|
15
15
|
import "../../frontmatter-CwO0i5Q7.js";
|
|
16
16
|
import { n as buildWorkspaceSkillSnapshot } from "../../skills-DaU_5XvP.js";
|
|
17
17
|
import "../../redact-Dd8jrogi.js";
|
|
@@ -27,7 +27,7 @@ import "../../diagnostic-D7z6O7v0.js";
|
|
|
27
27
|
import "../../diagnostic-session-state-BkfiP_y6.js";
|
|
28
28
|
import "../../pi-auth-json-De8XczIE.js";
|
|
29
29
|
import "../../reply-prefix-D3muTai5.js";
|
|
30
|
-
import "../../manager-
|
|
30
|
+
import "../../manager-WHZtXzz0.js";
|
|
31
31
|
import "../../sqlite--aBEq1-J.js";
|
|
32
32
|
import "../../markdown-tables-ptfgMe6b.js";
|
|
33
33
|
import "../../commands-registry-CBFyeJ5K.js";
|
|
@@ -4,14 +4,14 @@ 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-BSdnT6eM.js";
|
|
8
8
|
import "../../auth-profiles-Boy_KMd1.js";
|
|
9
9
|
import "../../github-copilot-token-B31ugq7R.js";
|
|
10
10
|
import "../../boolean-mcn6kL0s.js";
|
|
11
|
-
import { Tt as hasInterSessionUserProvenance } from "../../deliver-
|
|
11
|
+
import { Tt as hasInterSessionUserProvenance } from "../../deliver-BwcK0QD6.js";
|
|
12
12
|
import "../../ssrf-BzPY2FrA.js";
|
|
13
13
|
import "../../manifest-registry-C0nJ3Ja3.js";
|
|
14
|
-
import "../../chrome-
|
|
14
|
+
import "../../chrome-C0vnHDyY.js";
|
|
15
15
|
import "../../frontmatter-CwO0i5Q7.js";
|
|
16
16
|
import "../../skills-DaU_5XvP.js";
|
|
17
17
|
import "../../redact-Dd8jrogi.js";
|
|
@@ -27,7 +27,7 @@ import "../../diagnostic-D7z6O7v0.js";
|
|
|
27
27
|
import "../../diagnostic-session-state-BkfiP_y6.js";
|
|
28
28
|
import "../../pi-auth-json-De8XczIE.js";
|
|
29
29
|
import "../../reply-prefix-D3muTai5.js";
|
|
30
|
-
import "../../manager-
|
|
30
|
+
import "../../manager-WHZtXzz0.js";
|
|
31
31
|
import "../../sqlite--aBEq1-J.js";
|
|
32
32
|
import "../../markdown-tables-ptfgMe6b.js";
|
|
33
33
|
import "../../commands-registry-CBFyeJ5K.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { g as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-BSzKwaxE.js";
|
|
2
2
|
import { _ as shortenHomeInString, h as resolveUserPath, s as ensureDir, t as CONFIG_DIR } from "./utils-BU8jVQFM.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
3
|
+
import { i as loadConfig } from "./config-BEaq2Sb6.js";
|
|
4
4
|
import { i as isSecureWebSocketUrl } from "./ws-CahTJvD6.js";
|
|
5
5
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-C_V8IAYx.js";
|
|
6
|
-
import { Ft as PROTOCOL_VERSION, en as normalizeFingerprint, nn as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-
|
|
6
|
+
import { Ft as PROTOCOL_VERSION, en as normalizeFingerprint, nn as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-Bs2zB0rY.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 fsPromises 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 fsPromises.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 fsPromises.chmod(params.keyPath, 384).catch(() => {});
|
|
45
|
+
await fsPromises.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 fsPromises.readFile(certPath, "utf8");
|
|
84
|
+
const key = await fsPromises.readFile(keyPath, "utf8");
|
|
85
|
+
const ca = caPath ? await fsPromises.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
|
+
c5cac70748b5af0893a6404421bd9a5930a4f2046479f268b7adb742eed0bc56
|
|
@@ -2,7 +2,7 @@ import { n as CHAT_CHANNEL_ORDER } from "./registry-DKJLAPDB.js";
|
|
|
2
2
|
import { t as isTruthyEnvValue } from "./env-B97Ms861.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-DuuHorqi.js";
|
|
4
4
|
import { r as listChannelPluginCatalogEntries } from "./catalog-CSgSg5Gp.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-bskbnEuW.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/channel-options.ts
|
|
8
8
|
function dedupe(values) {
|