@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
|
@@ -2,19 +2,19 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { t as CONFIG_PATH } from "./paths-BSzKwaxE.js";
|
|
3
3
|
import { _ as shortenHomeInString, h as resolveUserPath, t as CONFIG_DIR, v as shortenHomePath, y as sleep } from "./utils-BU8jVQFM.js";
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-DKyLtSjm.js";
|
|
5
|
-
import { C as ensureAgentWorkspace, m as DEFAULT_AGENT_WORKSPACE_DIR } from "./agent-scope-
|
|
6
|
-
import { E as isSafeExecutableValue, N as VERSION } from "./config-
|
|
5
|
+
import { C as ensureAgentWorkspace, m as DEFAULT_AGENT_WORKSPACE_DIR } from "./agent-scope-CKTVXF_1.js";
|
|
6
|
+
import { E as isSafeExecutableValue, N as VERSION } from "./config-BEaq2Sb6.js";
|
|
7
7
|
import { n as pickPrimaryTailnetIPv4 } from "./tailnet-LYvn9g3I.js";
|
|
8
8
|
import { c as pickPrimaryLanIPv4, o as isValidIPv4 } from "./ws-CahTJvD6.js";
|
|
9
9
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-C_V8IAYx.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-CJcw9nbZ.js";
|
|
11
|
-
import { n as callGateway } from "./call-
|
|
11
|
+
import { n as callGateway } from "./call-BjHvYJx2.js";
|
|
12
12
|
import { r as stylePromptTitle } from "./prompt-style-Cad0BDRS.js";
|
|
13
|
-
import { t as isWSL } from "./wsl-
|
|
13
|
+
import { t as isWSL } from "./wsl-DO9usEVV.js";
|
|
14
14
|
import crypto from "node:crypto";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import { inspect } from "node:util";
|
|
17
|
-
import
|
|
17
|
+
import fsPromises from "node:fs/promises";
|
|
18
18
|
import { cancel, isCancel } from "@clack/prompts";
|
|
19
19
|
|
|
20
20
|
//#region src/gateway/control-ui-shared.ts
|
|
@@ -247,7 +247,7 @@ async function ensureWorkspaceAndSessions(workspaceDir, runtime, options) {
|
|
|
247
247
|
});
|
|
248
248
|
runtime.log(`Workspace OK: ${shortenHomePath(ws.dir)}`);
|
|
249
249
|
const sessionsDir = resolveSessionTranscriptsDirForAgent(options?.agentId);
|
|
250
|
-
await
|
|
250
|
+
await fsPromises.mkdir(sessionsDir, { recursive: true });
|
|
251
251
|
runtime.log(`Sessions OK: ${shortenHomePath(sessionsDir)}`);
|
|
252
252
|
}
|
|
253
253
|
function resolveNodeManagerOptions() {
|
|
@@ -269,7 +269,7 @@ function resolveNodeManagerOptions() {
|
|
|
269
269
|
async function moveToTrash(pathname, runtime) {
|
|
270
270
|
if (!pathname) return;
|
|
271
271
|
try {
|
|
272
|
-
await
|
|
272
|
+
await fsPromises.access(pathname);
|
|
273
273
|
} catch {
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
@@ -292,7 +292,7 @@ async function detectBinary(name) {
|
|
|
292
292
|
if (!isSafeExecutableValue(name)) return false;
|
|
293
293
|
const resolved = name.startsWith("~") ? resolveUserPath(name) : name;
|
|
294
294
|
if (path.isAbsolute(resolved) || resolved.startsWith(".") || resolved.includes("/") || resolved.includes("\\")) try {
|
|
295
|
-
await
|
|
295
|
+
await fsPromises.access(resolved);
|
|
296
296
|
return true;
|
|
297
297
|
} catch {
|
|
298
298
|
return false;
|
|
@@ -4,7 +4,7 @@ import "./utils-BU8jVQFM.js";
|
|
|
4
4
|
import "./subsystem-CtH6J8AV.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
6
6
|
import "./exec-DKyLtSjm.js";
|
|
7
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
7
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-CKTVXF_1.js";
|
|
8
8
|
import "./boolean-Wzu0-e0P.js";
|
|
9
9
|
import "./frontmatter-CHu3sfCM.js";
|
|
10
10
|
import "./workspace-CxAs2tsz.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as detectBinary } from "./onboard-helpers-
|
|
2
|
+
import { r as detectBinary } from "./onboard-helpers-wgkj6qF2.js";
|
|
3
3
|
import { n as resolveWideAreaDiscoveryDomain } from "./widearea-dns-C5NqCQ3L.js";
|
|
4
4
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-CU1mz7AC.js";
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Et as normalizeSecretInput } from "./auth-profiles-
|
|
2
|
+
import { Et as normalizeSecretInput } from "./auth-profiles-BDvJK1Bg.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
4
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
5
|
-
import { _ as resolveNodeManagerOptions, r as detectBinary } from "./onboard-helpers-
|
|
6
|
-
import { t as installSkill } from "./skills-install-
|
|
4
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-F7nlolZZ.js";
|
|
5
|
+
import { _ as resolveNodeManagerOptions, r as detectBinary } from "./onboard-helpers-wgkj6qF2.js";
|
|
6
|
+
import { t as installSkill } from "./skills-install-DcX1Txvp.js";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/onboard-skills.ts
|
|
9
9
|
var onboard_skills_exports = /* @__PURE__ */ __exportAll({ setupSkills: () => setupSkills });
|
|
@@ -302,7 +302,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
302
302
|
mode
|
|
303
303
|
});
|
|
304
304
|
await writeConfigFile(nextConfig);
|
|
305
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
305
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-7iPylQyi.js");
|
|
306
306
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
307
307
|
flow,
|
|
308
308
|
opts,
|
|
@@ -2,7 +2,7 @@ import { n as DEFAULT_GATEWAY_PORT, u as resolveGatewayPort } from "./paths-BSzK
|
|
|
2
2
|
import { h as resolveUserPath } from "./utils-BU8jVQFM.js";
|
|
3
3
|
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
5
|
-
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-
|
|
5
|
+
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-BEaq2Sb6.js";
|
|
6
6
|
import { t as WizardCancelledError } from "./prompts-CPtDKw-j.js";
|
|
7
7
|
|
|
8
8
|
//#region src/wizard/onboarding.ts
|
|
@@ -36,7 +36,7 @@ async function requireRiskAcknowledgement(params) {
|
|
|
36
36
|
})) throw new WizardCancelledError("risk not accepted");
|
|
37
37
|
}
|
|
38
38
|
async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
39
|
-
const onboardHelpers = await import("./onboard-helpers-
|
|
39
|
+
const onboardHelpers = await import("./onboard-helpers-wgkj6qF2.js").then((n) => n.d);
|
|
40
40
|
onboardHelpers.printWizardHeader(runtime);
|
|
41
41
|
await prompter.intro("Symi onboarding");
|
|
42
42
|
await requireRiskAcknowledgement({
|
|
@@ -204,7 +204,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
204
204
|
}]
|
|
205
205
|
}));
|
|
206
206
|
if (mode === "remote") {
|
|
207
|
-
const { promptRemoteGatewayConfig } = await import("./onboard-remote-
|
|
207
|
+
const { promptRemoteGatewayConfig } = await import("./onboard-remote-B5rlIYUq.js").then((n) => n.t);
|
|
208
208
|
const { logConfigUpdated } = await import("./logging-BA2NbxMy.js").then((n) => n.r);
|
|
209
209
|
let nextConfig = await promptRemoteGatewayConfig(baseConfig, prompter);
|
|
210
210
|
nextConfig = onboardHelpers.applyWizardMetadata(nextConfig, {
|
|
@@ -222,11 +222,11 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
222
222
|
}))).trim() || onboardHelpers.DEFAULT_WORKSPACE);
|
|
223
223
|
const { applyOnboardingLocalWorkspaceConfig } = await import("./onboard-config-D6L72_zg.js").then((n) => n.n);
|
|
224
224
|
let nextConfig = applyOnboardingLocalWorkspaceConfig(baseConfig, workspaceDir);
|
|
225
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
225
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-BDvJK1Bg.js").then((n) => n.t);
|
|
226
226
|
const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-CXcrToaB.js").then((n) => n.t);
|
|
227
|
-
const { promptCustomApiConfig } = await import("./onboard-custom-
|
|
228
|
-
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-
|
|
229
|
-
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-
|
|
227
|
+
const { promptCustomApiConfig } = await import("./onboard-custom-BRFhBogJ.js").then((n) => n.r);
|
|
228
|
+
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-s1SGAS0u.js").then((n) => n.t);
|
|
229
|
+
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-UrQQVAuN.js").then((n) => n.i);
|
|
230
230
|
const authStore = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false });
|
|
231
231
|
const authChoiceFromPrompt = opts.authChoice === void 0;
|
|
232
232
|
const authChoice = opts.authChoice ?? await promptAuthChoiceGrouped({
|
|
@@ -263,7 +263,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
263
263
|
if (modelSelection.model) nextConfig = applyPrimaryModel(nextConfig, modelSelection.model);
|
|
264
264
|
}
|
|
265
265
|
await warnIfModelConfigLooksOff(nextConfig, prompter);
|
|
266
|
-
const { configureGatewayForOnboarding } = await import("./onboarding.gateway-config-
|
|
266
|
+
const { configureGatewayForOnboarding } = await import("./onboarding.gateway-config-DtNG0As8.js");
|
|
267
267
|
const gateway = await configureGatewayForOnboarding({
|
|
268
268
|
flow,
|
|
269
269
|
baseConfig,
|
|
@@ -278,7 +278,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
278
278
|
if (opts.skipChannels ?? opts.skipProviders) await prompter.note("Skipping channel setup.", "Channels");
|
|
279
279
|
else {
|
|
280
280
|
const { listChannelPlugins } = await import("./plugins-DuuHorqi.js").then((n) => n.i);
|
|
281
|
-
const { setupChannels } = await import("./onboard-channels-
|
|
281
|
+
const { setupChannels } = await import("./onboard-channels-DqhDDHZ3.js").then((n) => n.n);
|
|
282
282
|
const quickstartAllowFromChannels = flow === "quickstart" ? listChannelPlugins().filter((plugin) => plugin.meta.quickstartAllowFrom).map((plugin) => plugin.id) : [];
|
|
283
283
|
nextConfig = await setupChannels(nextConfig, runtime, prompter, {
|
|
284
284
|
allowSignalInstall: true,
|
|
@@ -294,17 +294,17 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
294
294
|
await onboardHelpers.ensureWorkspaceAndSessions(workspaceDir, runtime, { skipBootstrap: Boolean(nextConfig.agents?.defaults?.skipBootstrap) });
|
|
295
295
|
if (opts.skipSkills) await prompter.note("Skipping skills setup.", "Skills");
|
|
296
296
|
else {
|
|
297
|
-
const { setupSkills } = await import("./onboard-skills-
|
|
297
|
+
const { setupSkills } = await import("./onboard-skills-_6kHqhHz.js").then((n) => n.t);
|
|
298
298
|
nextConfig = await setupSkills(nextConfig, workspaceDir, runtime, prompter);
|
|
299
299
|
}
|
|
300
|
-
const { setupInternalHooks } = await import("./onboard-hooks-
|
|
300
|
+
const { setupInternalHooks } = await import("./onboard-hooks-CknstfLG.js");
|
|
301
301
|
nextConfig = await setupInternalHooks(nextConfig, runtime, prompter);
|
|
302
302
|
nextConfig = onboardHelpers.applyWizardMetadata(nextConfig, {
|
|
303
303
|
command: "onboard",
|
|
304
304
|
mode
|
|
305
305
|
});
|
|
306
306
|
await writeConfigFile(nextConfig);
|
|
307
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
307
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-CkgL8Zde.js");
|
|
308
308
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
309
309
|
flow,
|
|
310
310
|
opts,
|
|
@@ -39,10 +39,10 @@ import "./bindings-D3NmzRPM.js";
|
|
|
39
39
|
import "./progress-C4ck6JXh.js";
|
|
40
40
|
import "./prompt-style-Z2ZizQap.js";
|
|
41
41
|
import "./note-DKRm9hYC.js";
|
|
42
|
-
import "./register.subclis-
|
|
43
|
-
import "./command-registry-
|
|
42
|
+
import "./register.subclis-CSJZQox4.js";
|
|
43
|
+
import "./command-registry-B9TplwzB.js";
|
|
44
44
|
import "./program-context-BFKw4l9I.js";
|
|
45
|
-
import { r as installCompletion } from "./completion-cli-
|
|
45
|
+
import { r as installCompletion } from "./completion-cli-Dv8CNTMW.js";
|
|
46
46
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CkBw3gG5.js";
|
|
47
47
|
import "./runtime-guard-p4-FMx0l.js";
|
|
48
48
|
import { b as waitForGatewayReachable, f as openUrl, g as resolveControlUiLinks, i as detectBrowserOpenSupport, m as probeGatewayReachable, o as formatControlUiSshHint } from "./onboard-helpers-C5YryU1N.js";
|
|
@@ -51,7 +51,7 @@ import { t as resolveGatewayService } from "./service-BIixwO-v.js";
|
|
|
51
51
|
import { r as healthCommand } from "./health-D2CsIdFz.js";
|
|
52
52
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-B5BrwGRs.js";
|
|
53
53
|
import { t as formatHealthCheckFailure } from "./health-format-OIqaDZ2V.js";
|
|
54
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
54
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-DwrIExJJ.js";
|
|
55
55
|
import { t as runTui } from "./tui-C_yv1hvy.js";
|
|
56
56
|
import os from "node:os";
|
|
57
57
|
import path from "node:path";
|
|
@@ -2,63 +2,63 @@ import "./registry-DKJLAPDB.js";
|
|
|
2
2
|
import "./paths-BSzKwaxE.js";
|
|
3
3
|
import { f as pathExists, h as resolveUserPath } from "./utils-BU8jVQFM.js";
|
|
4
4
|
import { p as restoreTerminalState } from "./subsystem-CtH6J8AV.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-BDvJK1Bg.js";
|
|
6
6
|
import { r as resolveCliName, t as formatCliCommand } from "./command-format-BvAkTjTI.js";
|
|
7
7
|
import "./exec-DKyLtSjm.js";
|
|
8
|
-
import { h as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-
|
|
8
|
+
import { h as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-CKTVXF_1.js";
|
|
9
9
|
import "./github-copilot-token-BTNK6Tcd.js";
|
|
10
10
|
import "./boolean-Wzu0-e0P.js";
|
|
11
11
|
import "./env-B97Ms861.js";
|
|
12
|
-
import "./pi-embedded-helpers-
|
|
13
|
-
import "./config-
|
|
12
|
+
import "./pi-embedded-helpers-DGW2untm.js";
|
|
13
|
+
import "./config-BEaq2Sb6.js";
|
|
14
14
|
import "./manifest-registry-D_LsBSyt.js";
|
|
15
|
-
import "./sandbox-
|
|
16
|
-
import "./chrome-
|
|
15
|
+
import "./sandbox-DPn-s_K5.js";
|
|
16
|
+
import "./chrome-BQoO4LXq.js";
|
|
17
17
|
import "./tailscale-D7dC-5EX.js";
|
|
18
18
|
import "./auth-BbwD4lRX.js";
|
|
19
|
-
import "./server-context-
|
|
19
|
+
import "./server-context-BUbuOgNz.js";
|
|
20
20
|
import "./frontmatter-CHu3sfCM.js";
|
|
21
|
-
import "./skills-
|
|
22
|
-
import "./routes-
|
|
21
|
+
import "./skills-DS1Vdylm.js";
|
|
22
|
+
import "./routes-DiqMB1cp.js";
|
|
23
23
|
import "./redact-CSc_2Nka.js";
|
|
24
24
|
import "./errors-Z-WkF18Q.js";
|
|
25
|
-
import "./fs-safe-
|
|
26
|
-
import "./paths-
|
|
25
|
+
import "./fs-safe-DjAKGGJ8.js";
|
|
26
|
+
import "./paths-DaQrPPet.js";
|
|
27
27
|
import "./ssrf-CC9kEPCT.js";
|
|
28
|
-
import "./image-ops-
|
|
29
|
-
import "./ports-
|
|
28
|
+
import "./image-ops-c7_of0HT.js";
|
|
29
|
+
import "./ports-EAVAOFyK.js";
|
|
30
30
|
import "./trash-BjVrPcAx.js";
|
|
31
|
-
import "./sessions-
|
|
31
|
+
import "./sessions-DorP6zY8.js";
|
|
32
32
|
import "./dock-CnGWTXL4.js";
|
|
33
33
|
import "./message-channel-C_V8IAYx.js";
|
|
34
34
|
import "./plugins-DuuHorqi.js";
|
|
35
35
|
import "./paths-CJcw9nbZ.js";
|
|
36
36
|
import "./thinking-177f26eg.js";
|
|
37
37
|
import "./commands-B3UrgxIz.js";
|
|
38
|
-
import "./commands-registry-
|
|
39
|
-
import "./client-
|
|
40
|
-
import "./call-
|
|
41
|
-
import "./pairing-token-
|
|
38
|
+
import "./commands-registry-CLePPNDW.js";
|
|
39
|
+
import "./client-Bs2zB0rY.js";
|
|
40
|
+
import "./call-BjHvYJx2.js";
|
|
41
|
+
import "./pairing-token-DorpwP8O.js";
|
|
42
42
|
import "./tool-display-Dr6VaTg5.js";
|
|
43
43
|
import "./bindings-9LSA3Jr1.js";
|
|
44
44
|
import "./progress-CyPyGCDn.js";
|
|
45
45
|
import "./runtime-guard-BZ3_1QqS.js";
|
|
46
|
-
import "./program-context-
|
|
46
|
+
import "./program-context-C_uJXnZV.js";
|
|
47
47
|
import "./prompt-style-Cad0BDRS.js";
|
|
48
48
|
import "./note-CHrtEumO.js";
|
|
49
|
-
import { r as installCompletion } from "./completion-cli-
|
|
50
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
51
|
-
import { b as waitForGatewayReachable, f as openUrl, g as resolveControlUiLinks, i as detectBrowserOpenSupport, m as probeGatewayReachable, o as formatControlUiSshHint } from "./onboard-helpers-
|
|
52
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
53
|
-
import { t as resolveGatewayService } from "./service-
|
|
54
|
-
import { r as healthCommand } from "./health-
|
|
55
|
-
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-
|
|
49
|
+
import { r as installCompletion } from "./completion-cli-ecfjoaIU.js";
|
|
50
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Dr_xKl0r.js";
|
|
51
|
+
import { b as waitForGatewayReachable, f as openUrl, g as resolveControlUiLinks, i as detectBrowserOpenSupport, m as probeGatewayReachable, o as formatControlUiSshHint } from "./onboard-helpers-wgkj6qF2.js";
|
|
52
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-8KKQdTO_.js";
|
|
53
|
+
import { t as resolveGatewayService } from "./service-9ItKCWWS.js";
|
|
54
|
+
import { r as healthCommand } from "./health-DUulgHFK.js";
|
|
55
|
+
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-D22DSxhv.js";
|
|
56
56
|
import { t as formatHealthCheckFailure } from "./health-format-BQdYy0nL.js";
|
|
57
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
58
|
-
import { t as runTui } from "./tui-
|
|
57
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-Cvu8koMQ.js";
|
|
58
|
+
import { t as runTui } from "./tui-BheB3rbE.js";
|
|
59
59
|
import path from "node:path";
|
|
60
60
|
import os from "node:os";
|
|
61
|
-
import
|
|
61
|
+
import fsPromises from "node:fs/promises";
|
|
62
62
|
|
|
63
63
|
//#region src/wizard/onboarding.completion.ts
|
|
64
64
|
async function resolveProfileHint(shell) {
|
|
@@ -120,7 +120,7 @@ async function finalizeOnboardingWizard(options) {
|
|
|
120
120
|
const systemdAvailable = process.platform === "linux" ? await isSystemdUserServiceAvailable() : true;
|
|
121
121
|
if (process.platform === "linux" && !systemdAvailable) await prompter.note("Systemd user services are unavailable. Skipping lingering checks and service install.", "Systemd");
|
|
122
122
|
if (process.platform === "linux" && systemdAvailable) {
|
|
123
|
-
const { ensureSystemdUserLingerInteractive } = await import("./systemd-linger-
|
|
123
|
+
const { ensureSystemdUserLingerInteractive } = await import("./systemd-linger-C0-G8yq4.js").then((n) => n.r);
|
|
124
124
|
await ensureSystemdUserLingerInteractive({
|
|
125
125
|
runtime,
|
|
126
126
|
prompter: {
|
|
@@ -269,7 +269,7 @@ async function finalizeOnboardingWizard(options) {
|
|
|
269
269
|
});
|
|
270
270
|
const gatewayStatusLine = gatewayProbe.ok ? "Gateway: reachable" : `Gateway: not detected${gatewayProbe.detail ? ` (${gatewayProbe.detail})` : ""}`;
|
|
271
271
|
const bootstrapPath = path.join(resolveUserPath(options.workspaceDir), DEFAULT_BOOTSTRAP_FILENAME);
|
|
272
|
-
const hasBootstrap = await
|
|
272
|
+
const hasBootstrap = await fsPromises.access(bootstrapPath).then(() => true).catch(() => false);
|
|
273
273
|
await prompter.note([
|
|
274
274
|
`Web UI: ${links.httpUrl}`,
|
|
275
275
|
settings.authMode === "token" && settings.gatewayToken ? `Web UI (with token): ${authedUrl}` : void 0,
|
package/dist/{onboarding.gateway-config-DC9fM10t.js → onboarding.gateway-config-DtNG0As8.js}
RENAMED
|
@@ -2,25 +2,25 @@ import "./registry-DKJLAPDB.js";
|
|
|
2
2
|
import "./paths-BSzKwaxE.js";
|
|
3
3
|
import "./utils-BU8jVQFM.js";
|
|
4
4
|
import "./subsystem-CtH6J8AV.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-BDvJK1Bg.js";
|
|
6
6
|
import "./exec-DKyLtSjm.js";
|
|
7
|
-
import "./agent-scope-
|
|
7
|
+
import "./agent-scope-CKTVXF_1.js";
|
|
8
8
|
import "./github-copilot-token-BTNK6Tcd.js";
|
|
9
9
|
import "./boolean-Wzu0-e0P.js";
|
|
10
10
|
import "./env-B97Ms861.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-BEaq2Sb6.js";
|
|
12
12
|
import "./manifest-registry-D_LsBSyt.js";
|
|
13
13
|
import { a as findTailscaleBinary } from "./tailscale-D7dC-5EX.js";
|
|
14
|
-
import "./sessions-
|
|
14
|
+
import "./sessions-DorP6zY8.js";
|
|
15
15
|
import "./dock-CnGWTXL4.js";
|
|
16
16
|
import "./message-channel-C_V8IAYx.js";
|
|
17
17
|
import "./plugins-DuuHorqi.js";
|
|
18
18
|
import "./paths-CJcw9nbZ.js";
|
|
19
|
-
import "./client-
|
|
20
|
-
import "./call-
|
|
21
|
-
import "./pairing-token-
|
|
19
|
+
import "./client-Bs2zB0rY.js";
|
|
20
|
+
import "./call-BjHvYJx2.js";
|
|
21
|
+
import "./pairing-token-DorpwP8O.js";
|
|
22
22
|
import "./prompt-style-Cad0BDRS.js";
|
|
23
|
-
import { h as randomToken, u as normalizeGatewayTokenInput, y as validateGatewayPasswordInput } from "./onboard-helpers-
|
|
23
|
+
import { h as randomToken, u as normalizeGatewayTokenInput, y as validateGatewayPasswordInput } from "./onboard-helpers-wgkj6qF2.js";
|
|
24
24
|
import { i as TAILSCALE_MISSING_BIN_NOTE_LINES, n as TAILSCALE_DOCS_LINES, r as TAILSCALE_EXPOSURE_OPTIONS, t as validateIPv4AddressInput } from "./ipv4-DBwTCOBu.js";
|
|
25
25
|
|
|
26
26
|
//#region src/wizard/onboarding.gateway-config.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as escapeRegExp, p as resolveConfigDir } from "./utils-BU8jVQFM.js";
|
|
2
|
-
import { B as resolveAllowlistModelKey, Ut as DEFAULT_PROVIDER } from "./auth-profiles-
|
|
2
|
+
import { B as resolveAllowlistModelKey, Ut as DEFAULT_PROVIDER } from "./auth-profiles-BDvJK1Bg.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-CgmRK282.js";
|
|
4
|
-
import { St as ZAI_GLOBAL_BASE_URL, bt as ZAI_CODING_CN_BASE_URL, xt as ZAI_CODING_GLOBAL_BASE_URL, yt as ZAI_CN_BASE_URL } from "./auth-token-
|
|
4
|
+
import { St as ZAI_GLOBAL_BASE_URL, bt as ZAI_CODING_CN_BASE_URL, xt as ZAI_CODING_GLOBAL_BASE_URL, yt as ZAI_CN_BASE_URL } from "./auth-token-BKp_ClDP.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
|
|
@@ -2,17 +2,17 @@ import { j as theme } from "./registry-DKJLAPDB.js";
|
|
|
2
2
|
import "./paths-BSzKwaxE.js";
|
|
3
3
|
import "./utils-BU8jVQFM.js";
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-CtH6J8AV.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-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 "./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 { r as normalizeChannelId } from "./plugins-DuuHorqi.js";
|
|
15
|
-
import { c as listPairingChannels, l as notifyPairingApproved, n as approveChannelPairingCode, r as listChannelPairingRequests, s as getPairingAdapter } from "./pairing-store-
|
|
15
|
+
import { c as listPairingChannels, l as notifyPairingApproved, n as approveChannelPairingCode, r as listChannelPairingRequests, s as getPairingAdapter } from "./pairing-store-S9CXOhSG.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-CSaUKNKm.js";
|
|
17
17
|
import { t as renderTable } from "./table-DkAQzCOR.js";
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as resolveStateDir, m as resolveOAuthDir, y as resolveRequiredHomeDir } from "./paths-BSzKwaxE.js";
|
|
2
2
|
import { g as safeParseJson } from "./utils-BU8jVQFM.js";
|
|
3
|
-
import { E as withFileLock$1 } from "./auth-profiles-
|
|
3
|
+
import { E as withFileLock$1 } from "./auth-profiles-BDvJK1Bg.js";
|
|
4
4
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-DuuHorqi.js";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
import path from "node:path";
|
|
@@ -2,12 +2,12 @@ import { g as resolveStateDir } from "./paths-BSzKwaxE.js";
|
|
|
2
2
|
import { t as safeEqualSecret } from "./secret-equal-D1BCVB1D.js";
|
|
3
3
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsPromises from "node:fs/promises";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/json-files.ts
|
|
8
8
|
async function readJsonFile(filePath) {
|
|
9
9
|
try {
|
|
10
|
-
const raw = await
|
|
10
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return null;
|
|
@@ -16,15 +16,15 @@ async function readJsonFile(filePath) {
|
|
|
16
16
|
async function writeJsonAtomic(filePath, value, options) {
|
|
17
17
|
const mode = options?.mode ?? 384;
|
|
18
18
|
const dir = path.dirname(filePath);
|
|
19
|
-
await
|
|
19
|
+
await fsPromises.mkdir(dir, { recursive: true });
|
|
20
20
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
21
|
-
await
|
|
21
|
+
await fsPromises.writeFile(tmp, JSON.stringify(value, null, 2), "utf8");
|
|
22
22
|
try {
|
|
23
|
-
await
|
|
23
|
+
await fsPromises.chmod(tmp, mode);
|
|
24
24
|
} catch {}
|
|
25
|
-
await
|
|
25
|
+
await fsPromises.rename(tmp, filePath);
|
|
26
26
|
try {
|
|
27
|
-
await
|
|
27
|
+
await fsPromises.chmod(filePath, mode);
|
|
28
28
|
} catch {}
|
|
29
29
|
}
|
|
30
30
|
function createAsyncLock() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as resolvePreferredSymiTmpDir } from "./registry-DKJLAPDB.js";
|
|
2
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
2
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-DjAKGGJ8.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
5
|
//#region src/browser/paths.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { L as normalizeProviderId, Tt as normalizeOptionalSecretInput, b as ensureAuthProfileStore } from "./auth-profiles-
|
|
2
|
+
import { L as normalizeProviderId, Tt as normalizeOptionalSecretInput, b as ensureAuthProfileStore } from "./auth-profiles-BDvJK1Bg.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/pi-auth-json.ts
|
|
7
7
|
var pi_auth_json_exports = /* @__PURE__ */ __exportAll({ ensurePiAuthJsonFromAuthProfiles: () => ensurePiAuthJsonFromAuthProfiles });
|
|
8
8
|
async function readAuthJson(filePath) {
|
|
9
9
|
try {
|
|
10
|
-
const raw = await
|
|
10
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
11
11
|
const parsed = JSON.parse(raw);
|
|
12
12
|
if (!parsed || typeof parsed !== "object") return {};
|
|
13
13
|
return parsed;
|
|
@@ -118,11 +118,11 @@ async function ensurePiAuthJsonFromAuthProfiles(agentDir, options) {
|
|
|
118
118
|
wrote: false,
|
|
119
119
|
authPath
|
|
120
120
|
};
|
|
121
|
-
await
|
|
121
|
+
await fsPromises.mkdir(agentDir, {
|
|
122
122
|
recursive: true,
|
|
123
123
|
mode: 448
|
|
124
124
|
});
|
|
125
|
-
await
|
|
125
|
+
await fsPromises.writeFile(authPath, `${JSON.stringify(existing, null, 2)}\n`, { mode: 384 });
|
|
126
126
|
return {
|
|
127
127
|
wrote: true,
|
|
128
128
|
authPath
|
|
@@ -10,13 +10,13 @@ import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-Bbs
|
|
|
10
10
|
import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
|
|
11
11
|
import { i as resolveSlackAccount, n as listChannelPlugins, o as resolveSlackAppToken, r as normalizeChannelId$1, s as resolveSlackBotToken, t as getChannelPlugin } from "./plugins-Cp39v6b_.js";
|
|
12
12
|
import { S as resolveSlackChannelId, _ as resolveSlackWebClientOptions, a as sendMessageSlack, b as buildSlackBlocksFallbackText, c as getDefaultLocalRoots, d as fetchRemoteMedia, f as readResponseWithLimit, g as createSlackWebClient, h as fetchWithTimeout, i as resolveSlackThreadTs, l as loadWebMedia, m as bindAbortRelay, n as deliverReplies, o as renderMarkdownWithMarkers, p as fetchWithSsrFGuard, s as markdownToIRWithMeta, t as createSlackReplyDeliveryPlan, u as MediaFetchError, v as parseSlackBlocksInput, x as parseSlackTarget, y as validateSlackBlocksArray } from "./replies-CjSfYK97.js";
|
|
13
|
-
import { $ as loadSessionStore, $t as resolveToolProfilePolicy, A as formatRawAssistantErrorForUi, At as resolveMainSessionKey, B as isRateLimitAssistantError, Bt as saveMediaBuffer, C as downgradeOpenAIReasoningBlocks, Ct as resolveChannelResetConfig, D as classifyFailoverReason, Dt as DEFAULT_RESET_TRIGGERS, E as BILLING_ERROR_USER_MESSAGE, Et as resolveThreadFlag, F as isCompactionFailureError, Ft as createBrowserRouteContext, G as parseImageSizeError, Gt as resolveBrowserControlAuth, H as isTimeoutErrorMessage, Ht as resolveExistingPathsWithinRoot, I as isContextOverflowError, It as registerBrowserRoutes, J as resolveSandboxContext, Jt as collectExplicitAllowlist, K as sanitizeUserFacingText, Kt as applyOwnerOnlyToolPolicy, L as isFailoverAssistantError, Lt as resolveBrowserConfig, M as isAuthAssistantError, Mt as resolveGroupSessionKey, N as isBillingAssistantError, Nt as acquireSessionWriteLock, O as formatAssistantErrorText, Ot as resolveFreshSessionTotalTokens, P as isCloudCodeAssistFormatError, Pt as resolveSessionLockMaxHoldFromTimeout, Q as resolveAndPersistSessionFile, Qt as normalizeToolName$1, R as isFailoverErrorMessage, Rt as resolveProfile, S as extractToolResultId, St as evaluateSessionFreshness, T as isGoogleModelApi, Tt as resolveSessionResetType, U as isTransientHttpError, Ut as getBridgeAuthForPort, V as isRawApiErrorPayload, Vt as DEFAULT_UPLOAD_DIR, W as parseImageDimensionError, Wt as ensureBrowserControlAuth, X as extractDeliveryInfo, Xt as expandToolGroups, Y as resolveSandboxRuntimeStatus, Yt as expandPolicyWithPluginGroups, Z as appendAssistantMessageToSessionTranscript, Zt as mergeAlsoAllowPolicy, _ as sanitizeSessionMessagesImages, _t as INPUT_PROVENANCE_KIND_VALUES, a as normalizeChannelTargetInput, an as resolveBootstrapMaxChars, at as updateSessionStoreEntry, b as resolveImageSanitizationLimits, bt as normalizeInputProvenance, c as parseReplyDirectives, cn as getGlobalHookRunner, ct as deliveryContextFromSession, d as parseInlineDirectives$1, dt as normalizeDeliveryContext, en as stripPluginOnlyAllowlist, et as readSessionUpdatedAt, f as validateAnthropicTurns, ft as normalizeSessionDeliveryFields, g as normalizeTextForComparison, gt as extractToolCallNames, h as isMessagingToolDuplicateNormalized, ht as countToolResults, i as buildTargetResolverSignature, in as ensureSessionHeader, it as updateSessionStore, j as getApiErrorPayloadFingerprint, jt as deriveSessionMetaPatch, k as formatBillingErrorMessage, kt as canonicalizeMainSessionAlias, l as MEDIA_TOKEN_RE, ln as initializeGlobalHookRunner, lt as deliveryContextKey, m as pickFallbackThinkingLevel, mt as capArrayByJsonBytes, nn as matchesAnyGlobPattern, o as normalizeTargetForProvider, on as resolveBootstrapTotalMaxChars, ot as isCacheEnabled, p as validateGeminiTurns, pt as archiveSessionTranscripts, q as ensureSandboxWorkspaceForSession, qt as buildPluginToolGroups, r as normalizeReplyPayloadsForDelivery, rn as buildBootstrapContextFiles, rt as updateLastRoute, s as throwIfAborted, sn as sanitizeGoogleTurnOrdering, st as resolveCacheTtlMs$1, t as deliverOutboundPayloads, tn as compileGlobPatterns, tt as recordSessionMetaFromInbound, u as splitMediaFromOutput, ut as mergeDeliveryContext, v as sanitizeImageBlocks, vt as applyInputProvenanceToUserMessage, w as isAntigravityClaude, wt as resolveSessionResetPolicy, x as extractToolCallsFromAssistant, xt as resolveSessionKey, y as sanitizeToolResultImages, yt as hasInterSessionUserProvenance, z as isLikelyContextOverflowError, zt as getMediaDir } from "./deliver-
|
|
13
|
+
import { $ as loadSessionStore, $t as resolveToolProfilePolicy, A as formatRawAssistantErrorForUi, At as resolveMainSessionKey, B as isRateLimitAssistantError, Bt as saveMediaBuffer, C as downgradeOpenAIReasoningBlocks, Ct as resolveChannelResetConfig, D as classifyFailoverReason, Dt as DEFAULT_RESET_TRIGGERS, E as BILLING_ERROR_USER_MESSAGE, Et as resolveThreadFlag, F as isCompactionFailureError, Ft as createBrowserRouteContext, G as parseImageSizeError, Gt as resolveBrowserControlAuth, H as isTimeoutErrorMessage, Ht as resolveExistingPathsWithinRoot, I as isContextOverflowError, It as registerBrowserRoutes, J as resolveSandboxContext, Jt as collectExplicitAllowlist, K as sanitizeUserFacingText, Kt as applyOwnerOnlyToolPolicy, L as isFailoverAssistantError, Lt as resolveBrowserConfig, M as isAuthAssistantError, Mt as resolveGroupSessionKey, N as isBillingAssistantError, Nt as acquireSessionWriteLock, O as formatAssistantErrorText, Ot as resolveFreshSessionTotalTokens, P as isCloudCodeAssistFormatError, Pt as resolveSessionLockMaxHoldFromTimeout, Q as resolveAndPersistSessionFile, Qt as normalizeToolName$1, R as isFailoverErrorMessage, Rt as resolveProfile, S as extractToolResultId, St as evaluateSessionFreshness, T as isGoogleModelApi, Tt as resolveSessionResetType, U as isTransientHttpError, Ut as getBridgeAuthForPort, V as isRawApiErrorPayload, Vt as DEFAULT_UPLOAD_DIR, W as parseImageDimensionError, Wt as ensureBrowserControlAuth, X as extractDeliveryInfo, Xt as expandToolGroups, Y as resolveSandboxRuntimeStatus, Yt as expandPolicyWithPluginGroups, Z as appendAssistantMessageToSessionTranscript, Zt as mergeAlsoAllowPolicy, _ as sanitizeSessionMessagesImages, _t as INPUT_PROVENANCE_KIND_VALUES, a as normalizeChannelTargetInput, an as resolveBootstrapMaxChars, at as updateSessionStoreEntry, b as resolveImageSanitizationLimits, bt as normalizeInputProvenance, c as parseReplyDirectives, cn as getGlobalHookRunner, ct as deliveryContextFromSession, d as parseInlineDirectives$1, dt as normalizeDeliveryContext, en as stripPluginOnlyAllowlist, et as readSessionUpdatedAt, f as validateAnthropicTurns, ft as normalizeSessionDeliveryFields, g as normalizeTextForComparison, gt as extractToolCallNames, h as isMessagingToolDuplicateNormalized, ht as countToolResults, i as buildTargetResolverSignature, in as ensureSessionHeader, it as updateSessionStore, j as getApiErrorPayloadFingerprint, jt as deriveSessionMetaPatch, k as formatBillingErrorMessage, kt as canonicalizeMainSessionAlias, l as MEDIA_TOKEN_RE, ln as initializeGlobalHookRunner, lt as deliveryContextKey, m as pickFallbackThinkingLevel, mt as capArrayByJsonBytes, nn as matchesAnyGlobPattern, o as normalizeTargetForProvider, on as resolveBootstrapTotalMaxChars, ot as isCacheEnabled, p as validateGeminiTurns, pt as archiveSessionTranscripts, q as ensureSandboxWorkspaceForSession, qt as buildPluginToolGroups, r as normalizeReplyPayloadsForDelivery, rn as buildBootstrapContextFiles, rt as updateLastRoute, s as throwIfAborted, sn as sanitizeGoogleTurnOrdering, st as resolveCacheTtlMs$1, t as deliverOutboundPayloads, tn as compileGlobPatterns, tt as recordSessionMetaFromInbound, u as splitMediaFromOutput, ut as mergeDeliveryContext, v as sanitizeImageBlocks, vt as applyInputProvenanceToUserMessage, w as isAntigravityClaude, wt as resolveSessionResetPolicy, x as extractToolCallsFromAssistant, xt as resolveSessionKey, y as sanitizeToolResultImages, yt as hasInterSessionUserProvenance, z as isLikelyContextOverflowError, zt as getMediaDir } from "./deliver-vzAN9mRl.js";
|
|
14
14
|
import { a as logMessageProcessed, i as logLaneEnqueue, o as logMessageQueued, r as logLaneDequeue, s as logSessionStateChange, t as diag } from "./diagnostic-BvZmqxYI.js";
|
|
15
15
|
import { n as getDiagnosticSessionState } from "./diagnostic-session-state-CWtaDOiK.js";
|
|
16
16
|
import { S as GATEWAY_CLIENT_NAMES, _ as listDeliverableMessageChannels, a as chunkText, b as GATEWAY_CLIENT_IDS, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, g as isMarkdownCapableMessageChannel, h as isInternalMessageChannel, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, m as isDeliverableMessageChannel, o as chunkTextWithMode, p as INTERNAL_MESSAGE_CHANNEL, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt, v as normalizeMessageChannel, x as GATEWAY_CLIENT_MODES, y as resolveGatewayMessageChannel } from "./chunk-BjnT3w_x.js";
|
|
17
17
|
import { C as unsetConfigValueAtPath, S as setConfigValueAtPath, T as VERSION, _ as resetConfigOverrides, b as getConfigValueAtPath, c as loadConfig, d as writeConfigFile, f as validateConfigObjectWithPlugins, g as getConfigOverrides, h as validateJsonSchemaValue, i as isBlockedHostnameOrIp, l as readConfigFileSnapshot, o as normalizeHostname, p as parseDurationMs, t as SsrFBlockedError, u as resolveConfigSnapshotHash, v as setConfigOverride, w as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, x as parseConfigPath, y as unsetConfigOverride } from "./ssrf-CJor4ewC.js";
|
|
18
18
|
import { c as normalizePluginsConfig, f as isPathInsideWithRealpath, i as safeStatSync, l as resolveEnableState, n as discoverSymiPlugins, p as isDangerousHostEnvVarName, r as isPathInside, s as applyTestPluginDefaults, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-CAWGTwb5.js";
|
|
19
|
-
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
19
|
+
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-droANDig.js";
|
|
20
20
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, h as parseFrontmatterBlock, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-Bn0f9KTL.js";
|
|
21
21
|
import { n as redactToolDetail } from "./redact-ojHFHOAb.js";
|
|
22
22
|
import { n as formatErrorMessage } from "./errors-C6sHIFo_.js";
|
|
@@ -25,7 +25,7 @@ import { _ as normalizeHyphenSlug, a as normalizeReasoningLevel, c as normalizeV
|
|
|
25
25
|
import { n as resolveConversationLabel } from "./conversation-label-CPUfoQmh.js";
|
|
26
26
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-N698mtPE.js";
|
|
27
27
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-fUhPZcB5.js";
|
|
28
|
-
import { a as parseGeminiAuth, c as resolveMemorySearchConfig, i as resolveOllamaBaseUrl, n as retryAsync, o as collectProviderApiKeysForExecution, r as probeOllamaEmbeddingModels, s as executeWithApiKeyRotation } from "./manager-
|
|
28
|
+
import { a as parseGeminiAuth, c as resolveMemorySearchConfig, i as resolveOllamaBaseUrl, n as retryAsync, o as collectProviderApiKeysForExecution, r as probeOllamaEmbeddingModels, s as executeWithApiKeyRotation } from "./manager-DOfc0hW0.js";
|
|
29
29
|
import { c as normalizeExtraMemoryPaths, f as runTasksWithConcurrency, s as listMemoryFiles } from "./internal-DWs9CjHs.js";
|
|
30
30
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-BtWlyyt1.js";
|
|
31
31
|
import { a as shouldHandleTextCommands, c as resolveNativeCommandsEnabled, i as normalizeCommandBody, l as resolveNativeSkillsEnabled, n as listChatCommands, o as isCommandFlagEnabled, r as listChatCommandsForConfig, s as isRestartEnabled } from "./commands-registry-BRWqR35Z.js";
|
|
@@ -49,7 +49,7 @@ import crypto, { X509Certificate, createHash, createHmac, randomBytes, randomUUI
|
|
|
49
49
|
import { complete, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
50
50
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
51
51
|
import AjvPkg from "ajv";
|
|
52
|
-
import { WebSocket
|
|
52
|
+
import { WebSocket } from "ws";
|
|
53
53
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
54
54
|
import { createJiti } from "jiti";
|
|
55
55
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1028,7 +1028,7 @@ async function getMemorySearchManager(params) {
|
|
|
1028
1028
|
const wrapper = new FallbackMemoryManager({
|
|
1029
1029
|
primary,
|
|
1030
1030
|
fallbackFactory: async () => {
|
|
1031
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
1031
|
+
const { MemoryIndexManager } = await import("./manager-DOfc0hW0.js").then((n) => n.t);
|
|
1032
1032
|
return await MemoryIndexManager.get(params);
|
|
1033
1033
|
}
|
|
1034
1034
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -1041,7 +1041,7 @@ async function getMemorySearchManager(params) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
try {
|
|
1044
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
1044
|
+
const { MemoryIndexManager } = await import("./manager-DOfc0hW0.js").then((n) => n.t);
|
|
1045
1045
|
return { manager: await MemoryIndexManager.get(params) };
|
|
1046
1046
|
} catch (err) {
|
|
1047
1047
|
return {
|
|
@@ -3557,7 +3557,7 @@ var GatewayClient = class {
|
|
|
3557
3557
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
3558
3558
|
});
|
|
3559
3559
|
}
|
|
3560
|
-
this.ws = new WebSocket
|
|
3560
|
+
this.ws = new WebSocket(url, wsOptions);
|
|
3561
3561
|
this.ws.on("open", () => {
|
|
3562
3562
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
3563
3563
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -3776,7 +3776,7 @@ var GatewayClient = class {
|
|
|
3776
3776
|
return null;
|
|
3777
3777
|
}
|
|
3778
3778
|
async request(method, params, opts) {
|
|
3779
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
3779
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
3780
3780
|
const id = randomUUID();
|
|
3781
3781
|
const frame = {
|
|
3782
3782
|
type: "req",
|
|
@@ -4724,7 +4724,7 @@ async function routeReply(params) {
|
|
|
4724
4724
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
4725
4725
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
4726
4726
|
try {
|
|
4727
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
4727
|
+
const { deliverOutboundPayloads } = await import("./deliver-vzAN9mRl.js").then((n) => n.n);
|
|
4728
4728
|
return {
|
|
4729
4729
|
ok: true,
|
|
4730
4730
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -38795,7 +38795,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
38795
38795
|
return;
|
|
38796
38796
|
}
|
|
38797
38797
|
try {
|
|
38798
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
38798
|
+
const { deliverOutboundPayloads } = await import("./deliver-vzAN9mRl.js").then((n) => n.n);
|
|
38799
38799
|
await deliverOutboundPayloads({
|
|
38800
38800
|
cfg: params.cfg,
|
|
38801
38801
|
channel,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { x as truncateUtf16Safe } from "./utils-BU8jVQFM.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-CtH6J8AV.js";
|
|
3
|
-
import { s as formatSandboxToolPolicyBlockedMessage } from "./sandbox-
|
|
4
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
3
|
+
import { s as formatSandboxToolPolicyBlockedMessage } from "./sandbox-DPn-s_K5.js";
|
|
4
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-c7_of0HT.js";
|
|
5
5
|
import { s as normalizeThinkLevel } from "./thinking-177f26eg.js";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/agents/pi-embedded-helpers/bootstrap.ts
|
|
11
11
|
function isBase64Signature(value) {
|
|
@@ -102,10 +102,10 @@ function clampToBudget(content, budget) {
|
|
|
102
102
|
async function ensureSessionHeader(params) {
|
|
103
103
|
const file = params.sessionFile;
|
|
104
104
|
try {
|
|
105
|
-
await
|
|
105
|
+
await fsPromises.stat(file);
|
|
106
106
|
return;
|
|
107
107
|
} catch {}
|
|
108
|
-
await
|
|
108
|
+
await fsPromises.mkdir(path.dirname(file), { recursive: true });
|
|
109
109
|
const entry = {
|
|
110
110
|
type: "session",
|
|
111
111
|
version: 2,
|
|
@@ -113,7 +113,7 @@ async function ensureSessionHeader(params) {
|
|
|
113
113
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
114
114
|
cwd: params.cwd
|
|
115
115
|
};
|
|
116
|
-
await
|
|
116
|
+
await fsPromises.writeFile(file, `${JSON.stringify(entry)}\n`, "utf-8");
|
|
117
117
|
}
|
|
118
118
|
function buildBootstrapContextFiles(files, opts) {
|
|
119
119
|
const maxChars = opts?.maxChars ?? DEFAULT_BOOTSTRAP_MAX_CHARS;
|