@symerian/symi 3.5.22 → 3.5.24
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-NT0EKnK_.js → agent-CBfp75J4.js} +18 -18
- package/dist/{agent-scope-Bnsyyeci.js → agent-scope-DOrZjOnW.js} +18 -18
- package/dist/{agents.config-DA0ISLi7.js → agents.config-B7sNDvhz.js} +1 -1
- package/dist/{audit-CXIXYDRx.js → audit-Ce-u6aaR.js} +20 -20
- package/dist/{auth-choice-BtXIQPTU.js → auth-choice-CUvx59kv.js} +11 -11
- package/dist/{auth-profiles-D5nYBj_Z.js → auth-profiles-Ce7R_25e.js} +2 -2
- package/dist/{auth-token-fgnCQEHT.js → auth-token-Cr28IDKY.js} +3 -3
- package/dist/{browser-cli-DOTM7UBC.js → browser-cli-Ibgld3mA.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/{call-Bpjj5p7I.js → call-xdEE97oU.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-XRJiHUm5.js → channel-options-DCmWOAc0.js} +1 -1
- package/dist/{channels-cli-CQ4M05oy.js → channels-cli-Cs1Z0dn8.js} +57 -57
- package/dist/{chrome-DNssqQJs.js → chrome-3jl2ulOE.js} +7 -7
- package/dist/{chrome-38OnGyuN.js → chrome-DJChpTwP.js} +2 -2
- package/dist/{cli-B-uoiYP2.js → cli-CadU09SC.js} +45 -45
- package/dist/{client-CTrfpKT3.js → client-Cs9Bh-G0.js} +1 -1
- package/dist/{commands-registry-CwXsDVuO.js → commands-registry-Ca5hh7nh.js} +1 -1
- package/dist/{completion-cli-Cn_81QBb.js → completion-cli-Dd56ibFZ.js} +12 -12
- package/dist/{config-BngIfn5l.js → config-B4jkreCN.js} +2 -2
- package/dist/{config-cli-B1cPkJ4p.js → config-cli-GwUJEapt.js} +4 -4
- package/dist/{config-guard-DStz4_V2.js → config-guard-BRm3RiOi.js} +6 -6
- package/dist/{config-validation-Dxj9LRzr.js → config-validation-Cdyg1BZB.js} +1 -1
- package/dist/{configure-C7zmSgvC.js → configure-5md67tCP.js} +14 -14
- package/dist/{consolidate-CO32_TEx.js → consolidate-DymnvvYm.js} +6 -6
- package/dist/{control-service-CUreKVeY.js → control-service-D8kKOts5.js} +4 -4
- package/dist/control-ui/css/style.css +36 -4
- package/dist/{control-ui-assets-B8B9z_Ll.js → control-ui-assets-CJQ97d4u.js} +1 -1
- package/dist/{cost-cli-D-ssjcRF.js → cost-cli-DWiVCOCx.js} +3 -3
- package/dist/{cron-cli-otPeKxmi.js → cron-cli-CE9bV9Et.js} +7 -7
- package/dist/{daemon-cli-qDdMg615.js → daemon-cli-BYiG4GOU.js} +11 -11
- package/dist/{daemon-runtime-CKn0wmCk.js → daemon-runtime-DlQla_dA.js} +10 -10
- package/dist/{deliver-q23ar_Pm.js → deliver-f3cIWxXT.js} +4 -4
- package/dist/{deliver-CWMFmMCv.js → deliver-lTZLIQqf.js} +2 -2
- package/dist/{deps-CdibsPMx.js → deps-Bf9dt2UO.js} +1 -1
- package/dist/{devices-cli-DDPwF2Nx.js → devices-cli-Bhr6jGtH.js} +6 -6
- package/dist/{diagnostics-CYkqD5lP.js → diagnostics-DlZODdRf.js} +5 -5
- package/dist/{directory-cli-giqTe8Yg.js → directory-cli-Bm5QYEo-.js} +3 -3
- package/dist/{dm-policy-shared-B61_yf6G.js → dm-policy-shared-CeFt0nch.js} +1 -1
- package/dist/{dns-cli-Dssz4RqF.js → dns-cli-CubLq4j9.js} +3 -3
- package/dist/{docs-cli-Ct1STieY.js → docs-cli-PS8m1er7.js} +1 -1
- package/dist/{doctor-completion-CL7MyXlo.js → doctor-completion-BpUGRguQ.js} +2 -2
- package/dist/{doctor-config-flow-ljVnQJjo.js → doctor-config-flow-C52W1uUK.js} +9 -9
- package/dist/{exec-approvals-cli-DsBoQu5H.js → exec-approvals-cli-CzvIqBUd.js} +13 -13
- package/dist/extensionAPI.js +4 -4
- package/dist/{file-lock-2AecMjCa.js → file-lock-BVUYnlQv.js} +8 -8
- package/dist/{fs-safe-B0Is-oLk.js → fs-safe-BdejYjW8.js} +6 -6
- package/dist/{gateway-cli-DG_2YZ8B.js → gateway-cli-D1d5YAt0.js} +98 -98
- package/dist/{gateway-rpc-gaoD882s.js → gateway-rpc-BTGT1SuZ.js} +1 -1
- package/dist/{glass-ui-ws-Bof7krDJ.js → glass-ui-ws-BH9WH_VN.js} +67 -67
- package/dist/{health-CMbUI4aN.js → health-DpE9GWGn.js} +4 -4
- package/dist/{hooks-cli-Cgjor7F-.js → hooks-cli-D7xxbEwI.js} +59 -59
- package/dist/{image-ops-BzCBIakN.js → image-ops-L70xVnpG.js} +10 -10
- package/dist/index.js +52 -52
- package/dist/{inspect-DzYUb_Dl.js → inspect-CGKsaVZ4.js} +4 -4
- package/dist/{install-safe-path-BrpA09f2.js → install-safe-path-B2JrFspY.js} +11 -11
- package/dist/{installs-bnDlOSq2.js → installs-D890uIIW.js} +10 -10
- package/dist/{internal-csqU78gW.js → internal-DVCddhhN.js} +9 -9
- package/dist/{lifecycle-core-cSR_xiIO.js → lifecycle-core-wFwnK_mD.js} +5 -5
- package/dist/{local-roots-2Jb79HZ8.js → local-roots-CgDCgCuM.js} +1 -1
- package/dist/{logs-cli-Kr145PO_.js → logs-cli-DvIVuW0d.js} +7 -7
- package/dist/{manager-DG6PODgu.js → manager-CoCX7L5u.js} +15 -15
- package/dist/{manager-qrAOWmHt.js → manager-V4UCf0Av.js} +1 -1
- package/dist/{memory-BFnx3v3_.js → memory-B067LTL9.js} +5 -5
- package/dist/{memory-cli-CHNghdrm.js → memory-cli-D8Z_5-Nz.js} +12 -12
- package/dist/{model-Cwbcw-km.js → model-MUMSB_7d.js} +1 -1
- package/dist/{model-auth-_C07_3Yr.js → model-auth-1EAQvYRv.js} +2 -2
- package/dist/{model-catalog-BWurV7gl.js → model-catalog-IWi6-nY9.js} +3 -3
- package/dist/{model-picker-Dpkr5xBW.js → model-picker-Cf6UgQEh.js} +5 -5
- package/dist/{model-selection-CCTzD29o.js → model-selection-7wdmO-Iw.js} +1 -1
- package/dist/{models-cli-BbK8HMKa.js → models-cli-C979SN3Z.js} +55 -55
- package/dist/{models-config-DlXge3Sd.js → models-config-B5Xxy-c-.js} +8 -8
- package/dist/{node-cli-BPnBosC4.js → node-cli-DGybtex_.js} +27 -27
- package/dist/{node-service-Cc18m-uk.js → node-service-BH08wY5j.js} +1 -1
- package/dist/{nodes-cli-CN_m6PO5.js → nodes-cli-C-mEw2av.js} +10 -10
- package/dist/{nodes-screen-Cp5QP3ET.js → nodes-screen-De9ma6e1.js} +4 -4
- package/dist/{npm-registry-spec-C-muP97-.js → npm-registry-spec-DTqn-NXZ.js} +9 -9
- package/dist/{onboard-B2IcTMv-.js → onboard-CotuAZi6.js} +15 -15
- package/dist/{onboard-channels-wfGO5Zlh.js → onboard-channels-DSyynpou.js} +4 -4
- package/dist/{onboard-custom-DnDrvxSg.js → onboard-custom-BcRYreNG.js} +3 -3
- package/dist/{onboard-helpers-BKejzolA.js → onboard-helpers-CLXJ8zp0.js} +8 -8
- package/dist/{onboard-hooks-D9jHwImb.js → onboard-hooks-2SCajRKc.js} +1 -1
- package/dist/{onboard-remote-y3ZmP90U.js → onboard-remote-BYBai0w3.js} +1 -1
- package/dist/{onboard-skills-BFhHfrt9.js → onboard-skills-BxJlS1Bk.js} +3 -3
- package/dist/{onboarding-DqlPV372.js → onboarding-BnoGiOh3.js} +12 -12
- package/dist/{onboarding.finalize-Bwjv3jew.js → onboarding.finalize-g86Q4433.js} +31 -31
- package/dist/{onboarding.gateway-config-CiRo9EMt.js → onboarding.gateway-config-CEXjbEM0.js} +8 -8
- package/dist/{openai-model-default-De-UAjwg.js → openai-model-default-BkuuK-Di.js} +2 -2
- package/dist/{pairing-cli-CBMMCNnx.js → pairing-cli-Rsae0KnN.js} +5 -5
- package/dist/{pairing-store-Be-ZQK87.js → pairing-store-BNhJOnWn.js} +1 -1
- package/dist/{pairing-token-B703A1U3.js → pairing-token-Dcy37-4s.js} +7 -7
- package/dist/{paths-BWqg8NZT.js → paths-DObzwe08.js} +1 -1
- package/dist/{pi-auth-json-D-vdh-nY.js → pi-auth-json-Db8XJVGL.js} +6 -6
- package/dist/{pi-embedded-CviuByGd.js → pi-embedded-B9rtlNMc.js} +10 -10
- package/dist/{pi-embedded-helpers-j1JrlsI0.js → pi-embedded-helpers-D-OFjhdI.js} +6 -6
- package/dist/{pi-tools.policy-CvAqjEH9.js → pi-tools.policy-H2t-Xkfc.js} +3 -3
- package/dist/{plugin-auto-enable-BXSJTxI7.js → plugin-auto-enable-DJBhDIMq.js} +1 -1
- package/dist/{plugin-registry-B43UosQh.js → plugin-registry-AsC9gydF.js} +3 -3
- package/dist/plugin-sdk/index.js +6 -6
- package/dist/{plugins-cli-BV2wbjfI.js → plugins-cli-CbByGz8z.js} +54 -54
- package/dist/{ports-CB_Iu83U.js → ports-gxLM5ahL.js} +2 -2
- package/dist/{ports-Bi3V_3n9.js → ports-r7LBic2V.js} +1 -1
- package/dist/{program-context-BmXxHUKe.js → program-context-CiyK6MfV.js} +40 -40
- package/dist/{prompt-select-styled-BlQZX6pK.js → prompt-select-styled-DaNQ_GgB.js} +38 -38
- package/dist/{provider-auth-helpers-WLwb6tL4.js → provider-auth-helpers-D2FDvwT5.js} +6 -6
- package/dist/{push-apns-CBGvXev_.js → push-apns-va-DRu4U.js} +4 -4
- package/dist/{pw-ai-CP5pn3eU.js → pw-ai-BiBvIJzd.js} +7 -7
- package/dist/{pw-ai-v__CyAlM.js → pw-ai-DOAsQ5NX.js} +1 -1
- package/dist/{qmd-manager-Dxyue7B1.js → qmd-manager-C8-M4Pru.js} +19 -19
- package/dist/{qr-cli-DHw6muwK.js → qr-cli-1sCVaPcF.js} +3 -3
- package/dist/{register.agent-CXdTiqyP.js → register.agent-BqdQ0s30.js} +67 -67
- package/dist/{register.configure-DVcn-gCO.js → register.configure-Dhwi-4FG.js} +70 -70
- package/dist/{register.maintenance-cpspl8D6.js → register.maintenance-iMjNw9uy.js} +67 -67
- package/dist/{register.message-BjcYy5UG.js → register.message-Ao_b9s2g.js} +47 -47
- package/dist/{register.onboard-D4RN92s2.js → register.onboard-ymhSAezZ.js} +25 -25
- package/dist/{register.setup-BvoXF0xl.js → register.setup-CKs9mqtD.js} +28 -28
- package/dist/{register.status-health-sessions-DjDvCXBn.js → register.status-health-sessions-U-azRmpb.js} +41 -41
- package/dist/{replies-B_3j7R_Q.js → replies-CbXXjn9X.js} +1 -1
- package/dist/{reply-prefix-CtZtkTJK.js → reply-prefix-BFNeXT65.js} +1 -1
- package/dist/{resolve-route-Du0VftVs.js → resolve-route-C1IIA6kH.js} +1 -1
- package/dist/{routes-BwTUoI5h.js → routes-ivqbutvM.js} +10 -10
- package/dist/{rpc-CwxSZZOx.js → rpc-DjqFrbOc.js} +1 -1
- package/dist/{sandbox-CZGTCone.js → sandbox-BkznAPKO.js} +18 -18
- package/dist/{sandbox-cli-DEtGT_4y.js → sandbox-cli-Bb9cBtBH.js} +13 -13
- package/dist/{security-cli-DJd7Fcdy.js → security-cli-JKsf9SIu.js} +29 -29
- package/dist/{send-CxjvucMO.js → send-B0jHSNMF.js} +7 -7
- package/dist/{server-context-DXdk410X.js → server-context-ChcbJgNo.js} +5 -5
- package/dist/{server-methods-DfVfzYqq.js → server-methods-B2tykucj.js} +60 -60
- package/dist/{server-node-events-B0yC6hi1.js → server-node-events-BKqszk_a.js} +48 -48
- package/dist/{service-CRZoXO_n.js → service-e6MzlLCd.js} +15 -15
- package/dist/{session-dirs-a00Ad2SO.js → session-dirs-C9E2G0yZ.js} +2 -2
- package/dist/{session-utils-CJhcRx3E.js → session-utils-Cs1jlD-q.js} +14 -14
- package/dist/{sessions-BCc3THTm.js → sessions-Dxf5Kjig.js} +10 -10
- package/dist/{shared-C39SiDDJ.js → shared-1xPo9ygd.js} +1 -1
- package/dist/{shared-Dh-O8nRd.js → shared-COtpr3Ad.js} +3 -3
- package/dist/{skill-commands-DWvXs3lz.js → skill-commands-DDGGlq68.js} +4 -4
- package/dist/{skill-scanner-CIlHPszT.js → skill-scanner-BCgVcIwi.js} +5 -5
- package/dist/{skills-CYcBtLGH.js → skills-BwDmcZdt.js} +4 -4
- package/dist/{skills-cli-CD9s3cgm.js → skills-cli-B-7TY-vS.js} +7 -7
- package/dist/{skills-install-BTa9IuQ6.js → skills-install-Dwzsjoc8.js} +3 -3
- package/dist/{skills-remote-BcRQTDsZ.js → skills-remote-bz71Bstn.js} +3 -3
- package/dist/{skills-status-DLnCHUZ2.js → skills-status-BKX1PjCc.js} +1 -1
- package/dist/{sqlite-BpogPlQW.js → sqlite-Cod7C5ba.js} +5 -5
- package/dist/{status-BWxLtb3D.js → status-DHBVIMyL.js} +23 -23
- package/dist/{status-Doq8T1zj.js → status-DPGFZPpp.js} +3 -3
- package/dist/{status.update-CKfyV6zw.js → status.update-DGJi0OLl.js} +3 -3
- package/dist/{symframe-cli-D1CtN3pf.js → symframe-cli-CX3dINPw.js} +9 -9
- package/dist/{symi-root-DeCVdZB4.js → symi-root-BQ0IpoW2.js} +2 -2
- package/dist/{synthesis-DuP2d469.js → synthesis-Bc2QkGvt.js} +4 -4
- package/dist/{synthesis-VZNnlUTf.js → synthesis-DmqicCsT.js} +45 -45
- package/dist/{system-cli-r7WJj0Xh.js → system-cli-DUHzCGfK.js} +7 -7
- package/dist/{systemd-CsoVnIbM.js → systemd-CUIM0n5P.js} +5 -5
- package/dist/{systemd-hints-QISwLlFU.js → systemd-hints-CsrzMCTD.js} +6 -6
- package/dist/{systemd-linger-BnhuRdbt.js → systemd-linger-BzYk7A6M.js} +1 -1
- package/dist/{tui-J7Jxp-FF.js → tui-DCqVZ6sC.js} +7 -7
- package/dist/{tui-cli-DR48dU_C.js → tui-cli-CI-P3sei.js} +19 -19
- package/dist/{unified-runner-DXjH-prv.js → unified-runner-CznU7Ad0.js} +101 -101
- package/dist/{update-check-u6Jgr1cz.js → update-check-BCL_K7kx.js} +5 -5
- package/dist/{update-cli-CKpjWtlv.js → update-cli-DBoIBDNe.js} +77 -77
- package/dist/{update-runner-G2YgEATs.js → update-runner-BLV8SI96.js} +15 -15
- package/dist/{update-Cb0Fmxic.js → update-yYduAjKd.js} +3 -3
- package/dist/{webhooks-cli-DjUITimx.js → webhooks-cli-D5k-Y2A8.js} +4 -4
- package/dist/{with-timeout-CLrF-Yr_.js → with-timeout-DPR4A2dx.js} +1 -1
- package/dist/{workspace-dirs-DCICLTHx.js → workspace-dirs-jKFQf7of.js} +1 -1
- package/dist/{wsl-DTi7eX-V.js → wsl-CglTdtlb.js} +2 -2
- package/extensions/memory-core/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/outlook/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h as resolveUserPath } from "./utils-CTPsqyE_.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.js";
|
|
3
|
-
import { c as resolveArchiveKind, o as fileExists } from "./install-safe-path-
|
|
3
|
+
import { c as resolveArchiveKind, o as fileExists } from "./install-safe-path-B2JrFspY.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
|
-
import
|
|
6
|
+
import fs from "node:fs/promises";
|
|
7
7
|
|
|
8
8
|
//#region src/infra/install-package-dir.ts
|
|
9
9
|
async function installPackageDir(params) {
|
|
@@ -11,18 +11,18 @@ async function installPackageDir(params) {
|
|
|
11
11
|
let backupDir = null;
|
|
12
12
|
if (params.mode === "update" && await fileExists(params.targetDir)) {
|
|
13
13
|
backupDir = `${params.targetDir}.backup-${Date.now()}`;
|
|
14
|
-
await
|
|
14
|
+
await fs.rename(params.targetDir, backupDir);
|
|
15
15
|
}
|
|
16
16
|
const rollback = async () => {
|
|
17
17
|
if (!backupDir) return;
|
|
18
|
-
await
|
|
18
|
+
await fs.rm(params.targetDir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
force: true
|
|
21
21
|
}).catch(() => void 0);
|
|
22
|
-
await
|
|
22
|
+
await fs.rename(backupDir, params.targetDir).catch(() => void 0);
|
|
23
23
|
};
|
|
24
24
|
try {
|
|
25
|
-
await
|
|
25
|
+
await fs.cp(params.sourceDir, params.targetDir, { recursive: true });
|
|
26
26
|
} catch (err) {
|
|
27
27
|
await rollback();
|
|
28
28
|
return {
|
|
@@ -59,7 +59,7 @@ async function installPackageDir(params) {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
if (backupDir) await
|
|
62
|
+
if (backupDir) await fs.rm(backupDir, {
|
|
63
63
|
recursive: true,
|
|
64
64
|
force: true
|
|
65
65
|
}).catch(() => void 0);
|
|
@@ -69,11 +69,11 @@ async function installPackageDir(params) {
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/infra/install-source-utils.ts
|
|
71
71
|
async function withTempDir(prefix, fn) {
|
|
72
|
-
const tmpDir = await
|
|
72
|
+
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), prefix));
|
|
73
73
|
try {
|
|
74
74
|
return await fn(tmpDir);
|
|
75
75
|
} finally {
|
|
76
|
-
await
|
|
76
|
+
await fs.rm(tmpDir, {
|
|
77
77
|
recursive: true,
|
|
78
78
|
force: true
|
|
79
79
|
}).catch(() => void 0);
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-By0XjHBk.js";
|
|
2
2
|
import { h as resolveUserPath, v as shortenHomePath } from "./utils-CTPsqyE_.js";
|
|
3
3
|
import { f as defaultRuntime, p as restoreTerminalState } from "./subsystem-CHbO_DkH.js";
|
|
4
|
-
import { b as ensureAuthProfileStore, c as resolveApiKeyForProfile, n as resolveAuthProfileOrder, v as upsertAuthProfile } from "./auth-profiles-
|
|
4
|
+
import { b as ensureAuthProfileStore, c as resolveApiKeyForProfile, n as resolveAuthProfileOrder, v as upsertAuthProfile } from "./auth-profiles-Ce7R_25e.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
|
-
import { u as normalizeProviderId } from "./model-selection-
|
|
6
|
+
import { u as normalizeProviderId } from "./model-selection-7wdmO-Iw.js";
|
|
7
7
|
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "./normalize-secret-input-DjGU5EXe.js";
|
|
8
|
-
import { f as parseDurationMs, l as writeConfigFile, o as readConfigFileSnapshot } from "./config-
|
|
9
|
-
import { o as resolveEnvApiKey } from "./model-auth-
|
|
8
|
+
import { f as parseDurationMs, l as writeConfigFile, o as readConfigFileSnapshot } from "./config-B4jkreCN.js";
|
|
9
|
+
import { o as resolveEnvApiKey } from "./model-auth-1EAQvYRv.js";
|
|
10
10
|
import { t as assertSupportedRuntime } from "./runtime-guard-CWA00ZXa.js";
|
|
11
11
|
import { t as WizardCancelledError } from "./prompts-CNzp9M83.js";
|
|
12
12
|
import { t as createClackPrompter } from "./clack-prompter-BpcKjPIh.js";
|
|
13
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
14
|
-
import { a as ensureWorkspaceAndSessions, b as waitForGatewayReachable, c as handleReset, g as resolveControlUiLinks, h as randomToken, n as applyWizardMetadata, t as DEFAULT_WORKSPACE } from "./onboard-helpers-
|
|
15
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
16
|
-
import { t as resolveGatewayService } from "./service-
|
|
17
|
-
import { r as healthCommand } from "./health-
|
|
18
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
19
|
-
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-
|
|
13
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DlQla_dA.js";
|
|
14
|
+
import { a as ensureWorkspaceAndSessions, b as waitForGatewayReachable, c as handleReset, g as resolveControlUiLinks, h as randomToken, n as applyWizardMetadata, t as DEFAULT_WORKSPACE } from "./onboard-helpers-CLXJ8zp0.js";
|
|
15
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-CUIM0n5P.js";
|
|
16
|
+
import { t as resolveGatewayService } from "./service-e6MzlLCd.js";
|
|
17
|
+
import { r as healthCommand } from "./health-DpE9GWGn.js";
|
|
18
|
+
import { t as runOnboardingWizard } from "./onboarding-BnoGiOh3.js";
|
|
19
|
+
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-Cr28IDKY.js";
|
|
20
20
|
import { n as logConfigUpdated } from "./logging-DDnP1BTp.js";
|
|
21
21
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-CsL_9IlL.js";
|
|
22
|
-
import { a as detectZaiEndpoint, i as upsertSharedEnvVar, n as applyOpenAIConfig, s as applyGoogleGeminiModelDefault } from "./openai-model-default-
|
|
23
|
-
import { r as applyPrimaryModel } from "./model-picker-
|
|
24
|
-
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-
|
|
25
|
-
import { i as parseNonInteractiveCustomApiFlags, n as applyCustomApiConfig, o as resolveCustomProviderId, t as CustomApiError } from "./onboard-custom-
|
|
22
|
+
import { a as detectZaiEndpoint, i as upsertSharedEnvVar, n as applyOpenAIConfig, s as applyGoogleGeminiModelDefault } from "./openai-model-default-BkuuK-Di.js";
|
|
23
|
+
import { r as applyPrimaryModel } from "./model-picker-Cf6UgQEh.js";
|
|
24
|
+
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-BzYk7A6M.js";
|
|
25
|
+
import { i as parseNonInteractiveCustomApiFlags, n as applyCustomApiConfig, o as resolveCustomProviderId, t as CustomApiError } from "./onboard-custom-BcRYreNG.js";
|
|
26
26
|
import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-DrMJycgG.js";
|
|
27
27
|
|
|
28
28
|
//#region src/commands/onboard-provider-auth-flags.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { o as createPluginLoaderLogger, s as loadSymiPlugins } from "./unified-runner-
|
|
2
|
+
import { o as createPluginLoaderLogger, s as loadSymiPlugins } from "./unified-runner-CznU7Ad0.js";
|
|
3
3
|
import { a as formatChannelSelectionLine, i as formatChannelPrimerLine, s as listChatChannels } from "./registry-Sbac4a4z.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import { m as normalizeAccountId, p as DEFAULT_ACCOUNT_ID } from "./session-key-DUSb7CCb.js";
|
|
7
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
7
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-DOrZjOnW.js";
|
|
8
8
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CF5skkHh.js";
|
|
9
9
|
import { t as formatDocsLink } from "./links-Bqr0FxXx.js";
|
|
10
10
|
import { r as listChannelPluginCatalogEntries } from "./catalog-BptA-dUv.js";
|
|
11
11
|
import { t as resolveChannelDefaultAccountId } from "./helpers-G6zuddmF.js";
|
|
12
|
-
import { n as isChannelConfigured } from "./plugin-auto-enable-
|
|
12
|
+
import { n as isChannelConfigured } from "./plugin-auto-enable-DJBhDIMq.js";
|
|
13
13
|
import { t as enablePluginInConfig } from "./enable-B8TbkmWU.js";
|
|
14
|
-
import { n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-
|
|
14
|
+
import { n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-D890uIIW.js";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as modelKey, r as buildModelAliasIndex, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
2
|
+
import { c as modelKey, r as buildModelAliasIndex, w as DEFAULT_PROVIDER } from "./model-selection-7wdmO-Iw.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-BhdrdVp5.js";
|
|
4
|
-
import { c as normalizeAlias } from "./shared-
|
|
5
|
-
import { r as applyPrimaryModel } from "./model-picker-
|
|
4
|
+
import { c as normalizeAlias } from "./shared-COtpr3Ad.js";
|
|
5
|
+
import { r as applyPrimaryModel } from "./model-picker-Cf6UgQEh.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/onboard-custom.ts
|
|
8
8
|
var onboard_custom_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2,19 +2,19 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { t as CONFIG_PATH } from "./paths-By0XjHBk.js";
|
|
3
3
|
import { _ as shortenHomeInString, h as resolveUserPath, t as CONFIG_DIR, v as shortenHomePath, y as sleep } from "./utils-CTPsqyE_.js";
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-DuYbft0z.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-DOrZjOnW.js";
|
|
6
|
+
import { E as isSafeExecutableValue, N as VERSION } from "./config-B4jkreCN.js";
|
|
7
7
|
import { n as pickPrimaryTailnetIPv4 } from "./tailnet-XKACsamF.js";
|
|
8
8
|
import { c as pickPrimaryLanIPv4, o as isValidIPv4 } from "./ws-C7Ktmt-R.js";
|
|
9
9
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DgjXWzf-.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-BtvQ7JvU.js";
|
|
11
|
-
import { n as callGateway } from "./call-
|
|
11
|
+
import { n as callGateway } from "./call-xdEE97oU.js";
|
|
12
12
|
import { r as stylePromptTitle } from "./prompt-style-olk5zI5k.js";
|
|
13
|
-
import { t as isWSL } from "./wsl-
|
|
13
|
+
import { t as isWSL } from "./wsl-CglTdtlb.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 fs 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 fs.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 fs.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 fs.access(resolved);
|
|
296
296
|
return true;
|
|
297
297
|
} catch {
|
|
298
298
|
return false;
|
|
@@ -4,7 +4,7 @@ import "./utils-CTPsqyE_.js";
|
|
|
4
4
|
import "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import "./exec-DuYbft0z.js";
|
|
7
|
-
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
7
|
+
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-DOrZjOnW.js";
|
|
8
8
|
import "./boolean-CbZoNRMn.js";
|
|
9
9
|
import "./frontmatter-B_jqcova.js";
|
|
10
10
|
import "./workspace-dN7eNg6n.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-CLXJ8zp0.js";
|
|
3
3
|
import { n as resolveWideAreaDiscoveryDomain } from "./widearea-dns-DHO-Mc6G.js";
|
|
4
4
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-CWTnBKX8.js";
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
3
3
|
import { n as normalizeSecretInput } from "./normalize-secret-input-DjGU5EXe.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-BKX1PjCc.js";
|
|
5
|
+
import { _ as resolveNodeManagerOptions, r as detectBinary } from "./onboard-helpers-CLXJ8zp0.js";
|
|
6
|
+
import { t as installSkill } from "./skills-install-Dwzsjoc8.js";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/onboard-skills.ts
|
|
9
9
|
var onboard_skills_exports = /* @__PURE__ */ __exportAll({ setupSkills: () => setupSkills });
|
|
@@ -2,7 +2,7 @@ import { n as DEFAULT_GATEWAY_PORT, u as resolveGatewayPort } from "./paths-By0X
|
|
|
2
2
|
import { h as resolveUserPath } from "./utils-CTPsqyE_.js";
|
|
3
3
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
5
|
-
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-
|
|
5
|
+
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-B4jkreCN.js";
|
|
6
6
|
import { t as WizardCancelledError } from "./prompts-CNzp9M83.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-CLXJ8zp0.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-BYBai0w3.js").then((n) => n.t);
|
|
208
208
|
const { logConfigUpdated } = await import("./logging-DDnP1BTp.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-DrMJycgG.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-Ce7R_25e.js").then((n) => n.t);
|
|
226
226
|
const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-BAFfYZeR.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-BcRYreNG.js").then((n) => n.r);
|
|
228
|
+
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-CUvx59kv.js").then((n) => n.t);
|
|
229
|
+
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-Cf6UgQEh.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-CEXjbEM0.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-CF5skkHh.js").then((n) => n.i);
|
|
281
|
-
const { setupChannels } = await import("./onboard-channels-
|
|
281
|
+
const { setupChannels } = await import("./onboard-channels-DSyynpou.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-BxJlS1Bk.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-2SCajRKc.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-g86Q4433.js");
|
|
308
308
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
309
309
|
flow,
|
|
310
310
|
opts,
|
|
@@ -5,61 +5,61 @@ import { p as restoreTerminalState } from "./subsystem-CHbO_DkH.js";
|
|
|
5
5
|
import { n as resolveCliName } from "./cli-name-CzMV-gJF.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
7
7
|
import "./exec-DuYbft0z.js";
|
|
8
|
-
import { h as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-
|
|
9
|
-
import "./model-selection-
|
|
10
|
-
import "./pi-embedded-helpers-
|
|
11
|
-
import "./config-
|
|
8
|
+
import { h as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-DOrZjOnW.js";
|
|
9
|
+
import "./model-selection-7wdmO-Iw.js";
|
|
10
|
+
import "./pi-embedded-helpers-D-OFjhdI.js";
|
|
11
|
+
import "./config-B4jkreCN.js";
|
|
12
12
|
import "./boolean-CbZoNRMn.js";
|
|
13
13
|
import "./env-BRnPI9sO.js";
|
|
14
14
|
import "./shell-env-Dc3iU7HK.js";
|
|
15
15
|
import "./manifest-registry-D1MLZEjS.js";
|
|
16
|
-
import "./sandbox-
|
|
17
|
-
import "./chrome-
|
|
16
|
+
import "./sandbox-BkznAPKO.js";
|
|
17
|
+
import "./chrome-DJChpTwP.js";
|
|
18
18
|
import "./tailscale-DpKBMIvx.js";
|
|
19
19
|
import "./auth-Bkx-QuRN.js";
|
|
20
|
-
import "./server-context-
|
|
20
|
+
import "./server-context-ChcbJgNo.js";
|
|
21
21
|
import "./frontmatter-B_jqcova.js";
|
|
22
|
-
import "./skills-
|
|
23
|
-
import "./routes-
|
|
22
|
+
import "./skills-BwDmcZdt.js";
|
|
23
|
+
import "./routes-ivqbutvM.js";
|
|
24
24
|
import "./redact-B3O-RBO1.js";
|
|
25
25
|
import "./errors-bI7Tdx75.js";
|
|
26
|
-
import "./fs-safe-
|
|
27
|
-
import "./paths-
|
|
26
|
+
import "./fs-safe-BdejYjW8.js";
|
|
27
|
+
import "./paths-DObzwe08.js";
|
|
28
28
|
import "./ssrf-DOZRI5XH.js";
|
|
29
|
-
import "./image-ops-
|
|
30
|
-
import "./ports-
|
|
29
|
+
import "./image-ops-L70xVnpG.js";
|
|
30
|
+
import "./ports-gxLM5ahL.js";
|
|
31
31
|
import "./trash-_YhavPQI.js";
|
|
32
|
-
import "./sessions-
|
|
32
|
+
import "./sessions-Dxf5Kjig.js";
|
|
33
33
|
import "./dock-hF45sewN.js";
|
|
34
34
|
import "./message-channel-DgjXWzf-.js";
|
|
35
35
|
import "./plugins-CF5skkHh.js";
|
|
36
36
|
import "./paths-BtvQ7JvU.js";
|
|
37
37
|
import "./thinking-COroyVA5.js";
|
|
38
38
|
import "./commands-DUzLGgEZ.js";
|
|
39
|
-
import "./commands-registry-
|
|
40
|
-
import "./client-
|
|
41
|
-
import "./call-
|
|
42
|
-
import "./pairing-token-
|
|
39
|
+
import "./commands-registry-Ca5hh7nh.js";
|
|
40
|
+
import "./client-Cs9Bh-G0.js";
|
|
41
|
+
import "./call-xdEE97oU.js";
|
|
42
|
+
import "./pairing-token-Dcy37-4s.js";
|
|
43
43
|
import "./tool-display-DFOL6UQ9.js";
|
|
44
44
|
import "./bindings-DIhsYGa_.js";
|
|
45
45
|
import "./progress-swt2y17x.js";
|
|
46
46
|
import "./runtime-guard-CWA00ZXa.js";
|
|
47
|
-
import "./program-context-
|
|
47
|
+
import "./program-context-CiyK6MfV.js";
|
|
48
48
|
import "./prompt-style-olk5zI5k.js";
|
|
49
49
|
import "./note-D9FXI2qW.js";
|
|
50
|
-
import { r as installCompletion } from "./completion-cli-
|
|
51
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
52
|
-
import { b as waitForGatewayReachable, f as openUrl, g as resolveControlUiLinks, i as detectBrowserOpenSupport, m as probeGatewayReachable, o as formatControlUiSshHint } from "./onboard-helpers-
|
|
53
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
54
|
-
import { t as resolveGatewayService } from "./service-
|
|
55
|
-
import { r as healthCommand } from "./health-
|
|
56
|
-
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-
|
|
50
|
+
import { r as installCompletion } from "./completion-cli-Dd56ibFZ.js";
|
|
51
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DlQla_dA.js";
|
|
52
|
+
import { b as waitForGatewayReachable, f as openUrl, g as resolveControlUiLinks, i as detectBrowserOpenSupport, m as probeGatewayReachable, o as formatControlUiSshHint } from "./onboard-helpers-CLXJ8zp0.js";
|
|
53
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-CUIM0n5P.js";
|
|
54
|
+
import { t as resolveGatewayService } from "./service-e6MzlLCd.js";
|
|
55
|
+
import { r as healthCommand } from "./health-DpE9GWGn.js";
|
|
56
|
+
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-CJQ97d4u.js";
|
|
57
57
|
import { t as formatHealthCheckFailure } from "./health-format-Bxg84_f4.js";
|
|
58
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
59
|
-
import { t as runTui } from "./tui-
|
|
58
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-BpUGRguQ.js";
|
|
59
|
+
import { t as runTui } from "./tui-DCqVZ6sC.js";
|
|
60
60
|
import path from "node:path";
|
|
61
61
|
import os from "node:os";
|
|
62
|
-
import
|
|
62
|
+
import fs from "node:fs/promises";
|
|
63
63
|
|
|
64
64
|
//#region src/wizard/onboarding.completion.ts
|
|
65
65
|
async function resolveProfileHint(shell) {
|
|
@@ -121,7 +121,7 @@ async function finalizeOnboardingWizard(options) {
|
|
|
121
121
|
const systemdAvailable = process.platform === "linux" ? await isSystemdUserServiceAvailable() : true;
|
|
122
122
|
if (process.platform === "linux" && !systemdAvailable) await prompter.note("Systemd user services are unavailable. Skipping lingering checks and service install.", "Systemd");
|
|
123
123
|
if (process.platform === "linux" && systemdAvailable) {
|
|
124
|
-
const { ensureSystemdUserLingerInteractive } = await import("./systemd-linger-
|
|
124
|
+
const { ensureSystemdUserLingerInteractive } = await import("./systemd-linger-BzYk7A6M.js").then((n) => n.r);
|
|
125
125
|
await ensureSystemdUserLingerInteractive({
|
|
126
126
|
runtime,
|
|
127
127
|
prompter: {
|
|
@@ -270,7 +270,7 @@ async function finalizeOnboardingWizard(options) {
|
|
|
270
270
|
});
|
|
271
271
|
const gatewayStatusLine = gatewayProbe.ok ? "Gateway: reachable" : `Gateway: not detected${gatewayProbe.detail ? ` (${gatewayProbe.detail})` : ""}`;
|
|
272
272
|
const bootstrapPath = path.join(resolveUserPath(options.workspaceDir), DEFAULT_BOOTSTRAP_FILENAME);
|
|
273
|
-
const hasBootstrap = await
|
|
273
|
+
const hasBootstrap = await fs.access(bootstrapPath).then(() => true).catch(() => false);
|
|
274
274
|
await prompter.note([
|
|
275
275
|
`Web UI: ${links.httpUrl}`,
|
|
276
276
|
settings.authMode === "token" && settings.gatewayToken ? `Web UI (with token): ${authedUrl}` : void 0,
|
package/dist/{onboarding.gateway-config-CiRo9EMt.js → onboarding.gateway-config-CEXjbEM0.js}
RENAMED
|
@@ -3,24 +3,24 @@ import "./paths-By0XjHBk.js";
|
|
|
3
3
|
import "./utils-CTPsqyE_.js";
|
|
4
4
|
import "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import "./exec-DuYbft0z.js";
|
|
6
|
-
import "./agent-scope-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./config-
|
|
6
|
+
import "./agent-scope-DOrZjOnW.js";
|
|
7
|
+
import "./model-selection-7wdmO-Iw.js";
|
|
8
|
+
import "./config-B4jkreCN.js";
|
|
9
9
|
import "./boolean-CbZoNRMn.js";
|
|
10
10
|
import "./env-BRnPI9sO.js";
|
|
11
11
|
import "./shell-env-Dc3iU7HK.js";
|
|
12
12
|
import "./manifest-registry-D1MLZEjS.js";
|
|
13
13
|
import { a as findTailscaleBinary } from "./tailscale-DpKBMIvx.js";
|
|
14
|
-
import "./sessions-
|
|
14
|
+
import "./sessions-Dxf5Kjig.js";
|
|
15
15
|
import "./dock-hF45sewN.js";
|
|
16
16
|
import "./message-channel-DgjXWzf-.js";
|
|
17
17
|
import "./plugins-CF5skkHh.js";
|
|
18
18
|
import "./paths-BtvQ7JvU.js";
|
|
19
|
-
import "./client-
|
|
20
|
-
import "./call-
|
|
21
|
-
import "./pairing-token-
|
|
19
|
+
import "./client-Cs9Bh-G0.js";
|
|
20
|
+
import "./call-xdEE97oU.js";
|
|
21
|
+
import "./pairing-token-Dcy37-4s.js";
|
|
22
22
|
import "./prompt-style-olk5zI5k.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-CLXJ8zp0.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-C_NtZ3JP.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-CTPsqyE_.js";
|
|
2
|
-
import { p as resolveAllowlistModelKey, w as DEFAULT_PROVIDER } from "./model-selection-
|
|
2
|
+
import { p as resolveAllowlistModelKey, w as DEFAULT_PROVIDER } from "./model-selection-7wdmO-Iw.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-BhdrdVp5.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-Cr28IDKY.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
|
|
@@ -4,16 +4,16 @@ import "./utils-CTPsqyE_.js";
|
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-CHbO_DkH.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BzjsXBTi.js";
|
|
6
6
|
import "./exec-DuYbft0z.js";
|
|
7
|
-
import "./agent-scope-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import "./file-lock-
|
|
10
|
-
import { i as loadConfig } from "./config-
|
|
7
|
+
import "./agent-scope-DOrZjOnW.js";
|
|
8
|
+
import "./model-selection-7wdmO-Iw.js";
|
|
9
|
+
import "./file-lock-BVUYnlQv.js";
|
|
10
|
+
import { i as loadConfig } from "./config-B4jkreCN.js";
|
|
11
11
|
import "./boolean-CbZoNRMn.js";
|
|
12
12
|
import "./env-BRnPI9sO.js";
|
|
13
13
|
import "./shell-env-Dc3iU7HK.js";
|
|
14
14
|
import "./manifest-registry-D1MLZEjS.js";
|
|
15
15
|
import { r as normalizeChannelId } from "./plugins-CF5skkHh.js";
|
|
16
|
-
import { c as listPairingChannels, l as notifyPairingApproved, n as approveChannelPairingCode, r as listChannelPairingRequests, s as getPairingAdapter } from "./pairing-store-
|
|
16
|
+
import { c as listPairingChannels, l as notifyPairingApproved, n as approveChannelPairingCode, r as listChannelPairingRequests, s as getPairingAdapter } from "./pairing-store-BNhJOnWn.js";
|
|
17
17
|
import { t as formatDocsLink } from "./links-Bqr0FxXx.js";
|
|
18
18
|
import { t as renderTable } from "./table-0A3xKJVC.js";
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as resolveStateDir, b as resolveRequiredHomeDir, h as resolveOAuthDir } from "./paths-By0XjHBk.js";
|
|
2
2
|
import { g as safeParseJson } from "./utils-CTPsqyE_.js";
|
|
3
|
-
import { t as withFileLock$1 } from "./file-lock-
|
|
3
|
+
import { t as withFileLock$1 } from "./file-lock-BVUYnlQv.js";
|
|
4
4
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CF5skkHh.js";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
import path from "node:path";
|
|
@@ -2,12 +2,12 @@ import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
|
|
|
2
2
|
import { t as safeEqualSecret } from "./secret-equal-CbntzRkh.js";
|
|
3
3
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fs 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 fs.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 fs.mkdir(dir, { recursive: true });
|
|
20
20
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
21
|
-
await
|
|
21
|
+
await fs.writeFile(tmp, JSON.stringify(value, null, 2), "utf8");
|
|
22
22
|
try {
|
|
23
|
-
await
|
|
23
|
+
await fs.chmod(tmp, mode);
|
|
24
24
|
} catch {}
|
|
25
|
-
await
|
|
25
|
+
await fs.rename(tmp, filePath);
|
|
26
26
|
try {
|
|
27
|
-
await
|
|
27
|
+
await fs.chmod(filePath, mode);
|
|
28
28
|
} catch {}
|
|
29
29
|
}
|
|
30
30
|
function createAsyncLock() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as resolvePreferredSymiTmpDir } from "./registry-Sbac4a4z.js";
|
|
2
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
2
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-BdejYjW8.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
5
|
//#region src/browser/paths.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { b as ensureAuthProfileStore } from "./auth-profiles-
|
|
3
|
-
import { u as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { b as ensureAuthProfileStore } from "./auth-profiles-Ce7R_25e.js";
|
|
3
|
+
import { u as normalizeProviderId } from "./model-selection-7wdmO-Iw.js";
|
|
4
4
|
import { t as normalizeOptionalSecretInput } from "./normalize-secret-input-DjGU5EXe.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import fs from "node:fs/promises";
|
|
7
7
|
|
|
8
8
|
//#region src/agents/pi-auth-json.ts
|
|
9
9
|
var pi_auth_json_exports = /* @__PURE__ */ __exportAll({ ensurePiAuthJsonFromAuthProfiles: () => ensurePiAuthJsonFromAuthProfiles });
|
|
10
10
|
async function readAuthJson(filePath) {
|
|
11
11
|
try {
|
|
12
|
-
const raw = await
|
|
12
|
+
const raw = await fs.readFile(filePath, "utf8");
|
|
13
13
|
const parsed = JSON.parse(raw);
|
|
14
14
|
if (!parsed || typeof parsed !== "object") return {};
|
|
15
15
|
return parsed;
|
|
@@ -120,11 +120,11 @@ async function ensurePiAuthJsonFromAuthProfiles(agentDir, options) {
|
|
|
120
120
|
wrote: false,
|
|
121
121
|
authPath
|
|
122
122
|
};
|
|
123
|
-
await
|
|
123
|
+
await fs.mkdir(agentDir, {
|
|
124
124
|
recursive: true,
|
|
125
125
|
mode: 448
|
|
126
126
|
});
|
|
127
|
-
await
|
|
127
|
+
await fs.writeFile(authPath, `${JSON.stringify(existing, null, 2)}\n`, { mode: 384 });
|
|
128
128
|
return {
|
|
129
129
|
wrote: true,
|
|
130
130
|
authPath
|