@wrongstack/cli 1.0.33 → 1.0.36
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/{acp-EDGUWU7N.js → acp-QLU7T5WX.js} +470 -466
- package/dist/{auth-SUHKFFO4.js → auth-AED7RW7D.js} +7 -7
- package/dist/auth-menu/openai-codex-oauth.d.ts +1 -1
- package/dist/auth-menu/panel-provider-edits.d.ts +15 -0
- package/dist/auth-menu/panel-service.d.ts +1 -1
- package/dist/{automation-MCDFCIMV.js → automation-3E3AUPBF.js} +19 -4
- package/dist/boot/governance-evidence-candidate.d.ts +1 -2
- package/dist/boot/system-prompt-builder.d.ts +1 -1
- package/dist/boot/tui-project-spawn.d.ts +0 -1
- package/dist/boot/tui-session-resume-contracts.d.ts +95 -0
- package/dist/boot/tui-session-resume.d.ts +2 -88
- package/dist/boot/tui-settings-read.d.ts +3 -0
- package/dist/{boot-auto-thin-K2DHHYIW.js → boot-auto-thin-AGJ6TAWY.js} +3 -3
- package/dist/boot-launch-choices.d.ts +22 -0
- package/dist/boot-provider-gate.d.ts +28 -0
- package/dist/boot-subcommand-dispatch.d.ts +24 -0
- package/dist/boot.d.ts +1 -1
- package/dist/chimera-cascade-evidence.d.ts +1 -1
- package/dist/{chunk-TI7KLHYX.js → chunk-2CMMWRQH.js} +81 -80
- package/dist/{chunk-4BX2YDTQ.js → chunk-4JMAWKLA.js} +45 -4
- package/dist/{chunk-TWSQTQKR.js → chunk-4R6TVMYA.js} +2 -2
- package/dist/{chunk-HHRYIDOW.js → chunk-ACW64W4M.js} +34 -7
- package/dist/{chunk-5EA6OTLJ.js → chunk-AFOH6CHO.js} +2 -2
- package/dist/{chunk-WHEYHDIE.js → chunk-AKESWZH5.js} +2 -1
- package/dist/{chunk-JHUJUIOH.js → chunk-AT2A7RJZ.js} +4 -16
- package/dist/{chunk-LKFKO4JW.js → chunk-B6EHK772.js} +2 -2
- package/dist/{chunk-U3SS4NRH.js → chunk-BHXAKTBE.js} +1 -1
- package/dist/{chunk-4UWCMBPG.js → chunk-BJH44J7G.js} +3 -3
- package/dist/{chunk-MPQCHBDJ.js → chunk-CJSHS2K7.js} +5 -1
- package/dist/{chunk-RQ4UBKYH.js → chunk-GF7LUWQS.js} +5 -11
- package/dist/{chunk-TXAFIERF.js → chunk-L5NWFP5R.js} +2 -2
- package/dist/{chunk-24C6VVLM.js → chunk-LPGZ3NUF.js} +23 -23
- package/dist/{chunk-UQUYBDMG.js → chunk-M4G5FO7F.js} +1 -1
- package/dist/{chunk-P3GRLV47.js → chunk-NEWXDNF2.js} +212 -145
- package/dist/{chunk-3LEFXLAW.js → chunk-NOZJIN46.js} +36 -37
- package/dist/{chunk-4MDRHMX4.js → chunk-RE73FP2X.js} +4 -27
- package/dist/{chunk-5UZBUV2H.js → chunk-RKU66D2O.js} +6 -4
- package/dist/{chunk-SWOPJHXI.js → chunk-RYTSPBNM.js} +4 -4
- package/dist/{chunk-WTJDSTYD.js → chunk-T5KR6SNO.js} +2 -2
- package/dist/chunk-TGSPCFBT.js +1 -0
- package/dist/{chunk-ZYACRPLN.js → chunk-ULYAI7CP.js} +6 -3
- package/dist/{chunk-HLSHFXTO.js → chunk-WY74MMDB.js} +2 -2
- package/dist/{chunk-PGNERAZL.js → chunk-ZWBI7ORM.js} +3 -3
- package/dist/{cli-context-7HK67B2Z.js → cli-context-I6HJCVCV.js} +1607 -1495
- package/dist/cli-initial-tools.d.ts +54 -0
- package/dist/{cli-main-TQGLKB6D.js → cli-main-X7KD7IOC.js} +38223 -37136
- package/dist/cli-main-boot.d.ts +133 -0
- package/dist/cli-main-orchestration.d.ts +170 -0
- package/dist/cli-main-state.d.ts +19 -0
- package/dist/config-doctor.d.ts +1 -1
- package/dist/{config-transfer-UE37X4B5.js → config-transfer-YPD7HYXH.js} +7 -5
- package/dist/{execution-C2IECWF7.js → execution-M7D4KNBB.js} +171 -132
- package/dist/fleet/host-director-setup.d.ts +41 -0
- package/dist/fleet/host-spawn-types.d.ts +17 -0
- package/dist/fleet/host.d.ts +2 -1
- package/dist/goal-host-prompts.d.ts +5 -0
- package/dist/goal-host-types.d.ts +94 -0
- package/dist/goal-host.d.ts +2 -91
- package/dist/{hq-KBFDKTDD.js → hq-BBLGEEUH.js} +5 -6
- package/dist/hq-server/handle-types.d.ts +1 -1
- package/dist/hq-server/routes/auth-handlers.d.ts +1 -1
- package/dist/hq-server/routes.d.ts +1 -13
- package/dist/hq-server/utils.d.ts +1 -1
- package/dist/{hq-server-AVNKZ2PV.js → hq-server-5TR6NBGS.js} +3 -3
- package/dist/{hq-service-FGB7BY2D.js → hq-service-4Q64WFNT.js} +3 -3
- package/dist/{import-claude-code-AYG24RG2.js → import-claude-code-GHIS2F7Y.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/live-settings-input.d.ts +2 -0
- package/dist/mailbox-bridge-bootstrap.d.ts +1 -4
- package/dist/{mailbox-serve-S536N66F.js → mailbox-serve-DRWJVMYU.js} +2 -2
- package/dist/{modeldiag-NEPTLFZW.js → modeldiag-F3LUF4VJ.js} +3 -3
- package/dist/picker-effort.d.ts +32 -0
- package/dist/picker-model-picker.d.ts +13 -2
- package/dist/picker-provider-list.d.ts +66 -0
- package/dist/picker.d.ts +12 -12
- package/dist/plugin-config.d.ts +6 -0
- package/dist/{plugin-usage-3TZGROK7.js → plugin-usage-EM752WHG.js} +3 -3
- package/dist/{plugins-ITH4SLO6.js → plugins-U6HQFJ7N.js} +4 -4
- package/dist/{providers-models-O75MKLN2.js → providers-models-S3S6VXME.js} +249 -239
- package/dist/repl-suggestions.d.ts +0 -5
- package/dist/{sage-FFKUOCQL.js → sage-BMRDJCDI.js} +9 -5
- package/dist/{sage-sync-ZMTHB477.js → sage-sync-PCWCNEUK.js} +2 -2
- package/dist/{sdd-runtime-PTOSPYI4.js → sdd-runtime-PF72WHLO.js} +3 -20
- package/dist/services/sdd/task-manager.d.ts +1 -12
- package/dist/services/sdd-runtime.d.ts +3 -4
- package/dist/services/statusline-config.d.ts +0 -2
- package/dist/{sessions-config-VE26SB56.js → sessions-config-RQRQDW5Q.js} +2 -2
- package/dist/settings-behavior-sections.d.ts +0 -1
- package/dist/short-circuit-flags-IEV3FEOT.js +10 -0
- package/dist/{skill-suggest-L2EVWB6R.js → skill-suggest-THANK3LV.js} +1 -1
- package/dist/slash-commands/command-context.d.ts +2 -0
- package/dist/slash-commands/doctor.d.ts +0 -9
- package/dist/slash-commands/fallback-chain-view.d.ts +3 -0
- package/dist/slash-commands/fallback-ref-validation.d.ts +34 -0
- package/dist/slash-commands/goal-refiner.d.ts +10 -2
- package/dist/slash-commands/goals.d.ts +6 -0
- package/dist/slash-commands/kanban-task-completion.d.ts +17 -0
- package/dist/slash-commands/mcp.d.ts +0 -1
- package/dist/slash-commands/memory-purge-domain-terms.d.ts +5 -0
- package/dist/slash-commands/nextsteps-mode.d.ts +13 -0
- package/dist/slash-commands/session-live-status.d.ts +21 -0
- package/dist/slash-commands/session.d.ts +1 -1
- package/dist/slash-commands/settings-feature-ui-mutations.d.ts +8 -0
- package/dist/slash-commands/settings-hq-autonomy-mutations.d.ts +8 -0
- package/dist/slash-commands/settings-persist-deps.d.ts +10 -0
- package/dist/slash-commands/settings-runtime-mutations.d.ts +12 -0
- package/dist/slash-commands/shadow.d.ts +0 -1
- package/dist/slash-commands/tool-auto-thin-commands.d.ts +15 -0
- package/dist/{standalone-auto-update-VQC4GYCM.js → standalone-auto-update-QUXOZ4B5.js} +13 -2
- package/dist/subcommands/handlers/acp-agents.d.ts +9 -0
- package/dist/subcommands/handlers/acp-server.d.ts +7 -0
- package/dist/subcommands/handlers/hq.d.ts +0 -1
- package/dist/subcommands/handlers/providers-models-custom.d.ts +33 -0
- package/dist/subcommands/handlers/providers-models-visibility.d.ts +29 -0
- package/dist/subcommands/handlers/skill-suggest.d.ts +0 -2
- package/dist/{subcommands-CLI6QTLU.js → subcommands-75IB23LS.js} +2 -2
- package/dist/{typesafe-NHC322W5.js → typesafe-KW2XHOG3.js} +2 -2
- package/dist/{update-J5WHAFPE.js → update-LHCWAWEZ.js} +3 -3
- package/dist/utils/win32-cmd.d.ts +1 -1
- package/dist/{version-help-ATOKGMTK.js → version-help-JQGRPDJW.js} +2 -2
- package/dist/webui-server/credential-watcher.d.ts +3 -1
- package/dist/webui-server/host-settings.d.ts +17 -0
- package/dist/webui-server/http-bridge.d.ts +32 -0
- package/dist/webui-server/instance-registration.d.ts +19 -0
- package/dist/webui-server/kanban-services.d.ts +9 -0
- package/dist/webui-server/message-router.d.ts +14 -0
- package/dist/webui-server/prefs-seeding.d.ts +1 -2
- package/dist/webui-server/provider-config.d.ts +0 -1
- package/dist/webui-server/provider-plane.d.ts +14 -0
- package/dist/webui-server/session-agents.d.ts +18 -0
- package/dist/webui-server/session-start-live.d.ts +11 -0
- package/dist/webui-server/stream-coalescer.d.ts +1 -1
- package/dist/webui-server/transport.d.ts +12 -0
- package/dist/{webui-server-GQOVLQS3.js → webui-server-CUIFA25W.js} +1472 -1335
- package/dist/webui-session-maintenance.d.ts +16 -0
- package/dist/wiring/brain-and-orchestration.d.ts +1 -1
- package/dist/wiring/cli-slash-commands-setup.d.ts +1 -0
- package/dist/wiring/command-host-state.d.ts +11 -2
- package/dist/wiring/dep-watcher-bridge.d.ts +8 -1
- package/dist/wiring/management-tools.d.ts +9 -1
- package/dist/wiring/session-command-handlers.d.ts +2 -1
- package/dist/worktree-command-host.d.ts +31 -0
- package/package.json +31 -31
- package/dist/chunk-WHOIR577.js +0 -1
- package/dist/short-circuit-flags-D6VAG47Y.js +0 -10
|
@@ -45,6 +45,39 @@ function normalizeTuiThinkingWord(value) {
|
|
|
45
45
|
return word;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
// src/services/run-git.ts
|
|
49
|
+
import { spawn } from "node:child_process";
|
|
50
|
+
import { toErrorMessage } from "@wrongstack/core/utils";
|
|
51
|
+
async function runGit(args, cwd, env) {
|
|
52
|
+
try {
|
|
53
|
+
return await new Promise((resolve, reject) => {
|
|
54
|
+
const child = spawn("git", args, {
|
|
55
|
+
cwd,
|
|
56
|
+
...env ? { env: { ...process.env, ...env } } : {},
|
|
57
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
58
|
+
signal: AbortSignal.timeout(3e4),
|
|
59
|
+
windowsHide: true
|
|
60
|
+
});
|
|
61
|
+
let stdout = "";
|
|
62
|
+
let stderr = "";
|
|
63
|
+
child.stdout?.setEncoding("utf8");
|
|
64
|
+
child.stderr?.setEncoding("utf8");
|
|
65
|
+
child.stdout?.on("data", (d) => {
|
|
66
|
+
stdout += d;
|
|
67
|
+
});
|
|
68
|
+
child.stderr?.on("data", (d) => {
|
|
69
|
+
stderr += d;
|
|
70
|
+
});
|
|
71
|
+
child.on("error", (err) => {
|
|
72
|
+
reject(new Error(`Failed to run git: ${err.message}`));
|
|
73
|
+
});
|
|
74
|
+
child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 1 }));
|
|
75
|
+
});
|
|
76
|
+
} catch (err) {
|
|
77
|
+
throw new Error(toErrorMessage(err));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
48
81
|
// src/hq-fleet-control.ts
|
|
49
82
|
import {
|
|
50
83
|
areSubagentsAllowedForSession,
|
|
@@ -94,7 +127,6 @@ async function spawnHqAgent(director, sessionId, role, task, maxIterations) {
|
|
|
94
127
|
const base = FLEET_ROSTER[role] ?? {
|
|
95
128
|
id: `manual-${Date.now()}`,
|
|
96
129
|
name: role,
|
|
97
|
-
maxIterations: maxIterations ?? 0,
|
|
98
130
|
maxToolCalls: 200
|
|
99
131
|
};
|
|
100
132
|
const overrides = maxIterations !== void 0 ? { maxIterations } : {};
|
|
@@ -109,39 +141,6 @@ function createHqFleetControl(getDirector, defaultSessionId, scope) {
|
|
|
109
141
|
};
|
|
110
142
|
}
|
|
111
143
|
|
|
112
|
-
// src/services/run-git.ts
|
|
113
|
-
import { spawn } from "node:child_process";
|
|
114
|
-
import { toErrorMessage } from "@wrongstack/core/utils";
|
|
115
|
-
async function runGit(args, cwd, env) {
|
|
116
|
-
try {
|
|
117
|
-
return await new Promise((resolve, reject) => {
|
|
118
|
-
const child = spawn("git", args, {
|
|
119
|
-
cwd,
|
|
120
|
-
...env ? { env: { ...process.env, ...env } } : {},
|
|
121
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
122
|
-
signal: AbortSignal.timeout(3e4),
|
|
123
|
-
windowsHide: true
|
|
124
|
-
});
|
|
125
|
-
let stdout = "";
|
|
126
|
-
let stderr = "";
|
|
127
|
-
child.stdout?.setEncoding("utf8");
|
|
128
|
-
child.stderr?.setEncoding("utf8");
|
|
129
|
-
child.stdout?.on("data", (d) => {
|
|
130
|
-
stdout += d;
|
|
131
|
-
});
|
|
132
|
-
child.stderr?.on("data", (d) => {
|
|
133
|
-
stderr += d;
|
|
134
|
-
});
|
|
135
|
-
child.on("error", (err) => {
|
|
136
|
-
reject(new Error(`Failed to run git: ${err.message}`));
|
|
137
|
-
});
|
|
138
|
-
child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 1 }));
|
|
139
|
-
});
|
|
140
|
-
} catch (err) {
|
|
141
|
-
throw new Error(toErrorMessage(err));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
144
|
export {
|
|
146
145
|
resolveExecutionMode,
|
|
147
146
|
setSuggestions,
|
|
@@ -151,10 +150,10 @@ export {
|
|
|
151
150
|
clearSuggestions,
|
|
152
151
|
MAX_TUI_THINKING_WORD_LENGTH,
|
|
153
152
|
normalizeTuiThinkingWord,
|
|
153
|
+
runGit,
|
|
154
154
|
killHqSessionFleet,
|
|
155
155
|
terminateHqAgent,
|
|
156
156
|
spawnHqAgent,
|
|
157
|
-
createHqFleetControl
|
|
158
|
-
runGit
|
|
157
|
+
createHqFleetControl
|
|
159
158
|
};
|
|
160
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-NOZJIN46.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendHistory,
|
|
3
3
|
backupCurrent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4JMAWKLA.js";
|
|
5
5
|
|
|
6
6
|
// src/settings-menu.ts
|
|
7
7
|
import * as fs from "node:fs/promises";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { decryptConfigSecretsForRewrite, encryptConfigSecrets } from "@wrongstack/core/security";
|
|
10
|
+
import { listInProjectDeniedPaths } from "@wrongstack/core/storage";
|
|
10
11
|
import { ConfigError, ERROR_CODES, FsError } from "@wrongstack/core/types";
|
|
11
12
|
import { atomicWrite, deepMerge, withFileLock } from "@wrongstack/core/utils";
|
|
12
13
|
function resolvePersistPath(deps) {
|
|
@@ -86,31 +87,7 @@ var PROJECT_SAFE_FIELDS = /* @__PURE__ */ new Set([
|
|
|
86
87
|
"uiLocale",
|
|
87
88
|
"themePreset"
|
|
88
89
|
]);
|
|
89
|
-
var PROJECT_DENIED_PATHS =
|
|
90
|
-
"tools.exec.allow",
|
|
91
|
-
"tools.exec.danger",
|
|
92
|
-
"tools.council",
|
|
93
|
-
"skills.extraDirs",
|
|
94
|
-
"skills.registryUrl",
|
|
95
|
-
"skills.suggest",
|
|
96
|
-
"Sage.storage.directory",
|
|
97
|
-
"autonomy.yolo",
|
|
98
|
-
"autonomy.defaultMode",
|
|
99
|
-
"autonomy.yoloConfirm",
|
|
100
|
-
"launch.autonomy",
|
|
101
|
-
"features.allowOutsideProjectRoot",
|
|
102
|
-
"tools.restrictToProjectRoot",
|
|
103
|
-
"tools.loopDetection",
|
|
104
|
-
"tools.maxIterations",
|
|
105
|
-
"tools.autoExtendLimit",
|
|
106
|
-
"tools.maxAutoExtensions",
|
|
107
|
-
"tools.kanbanGovernance",
|
|
108
|
-
"tools.autoThin",
|
|
109
|
-
"tools.disabledToolMeta",
|
|
110
|
-
"tools.wrongProxy",
|
|
111
|
-
"features.mailboxBridge",
|
|
112
|
-
"features.pluginsTrust"
|
|
113
|
-
];
|
|
90
|
+
var PROJECT_DENIED_PATHS = listInProjectDeniedPaths();
|
|
114
91
|
function deleteProjectDeniedPath(target, dotted) {
|
|
115
92
|
const parts = dotted.split(".");
|
|
116
93
|
const leaf = parts.pop();
|
|
@@ -269,4 +246,4 @@ export {
|
|
|
269
246
|
persistTelegramConfig,
|
|
270
247
|
deriveFsAccessPair
|
|
271
248
|
};
|
|
272
|
-
//# sourceMappingURL=chunk-
|
|
249
|
+
//# sourceMappingURL=chunk-RE73FP2X.js.map
|
|
@@ -89,9 +89,11 @@ function modelDetails(models) {
|
|
|
89
89
|
// Documented effort vocabulary, mirroring the gate
|
|
90
90
|
// `getActiveModelReasoningEffortLevels` applies for the settings
|
|
91
91
|
// panel: `effortSupported === false` is a documented "no effort
|
|
92
|
-
// control", and the picker must not offer a strip for it
|
|
93
|
-
//
|
|
94
|
-
// canonical set".
|
|
92
|
+
// control", and the picker must not offer a strip for it — carried
|
|
93
|
+
// explicitly, because an absent `effortLevels` alone would read as
|
|
94
|
+
// "undocumented → canonical set". An absent field stays absent,
|
|
95
|
+
// which the strip reads as "undocumented → canonical set".
|
|
96
|
+
...model.reasoningConfig?.effortSupported === false ? { effortControlSupported: false } : {},
|
|
95
97
|
...model.reasoningConfig?.effortSupported && model.reasoningConfig.effortLevels?.length ? { effortLevels: [...model.reasoningConfig.effortLevels] } : {},
|
|
96
98
|
maxContext: model.limit?.context,
|
|
97
99
|
maxOutput: model.limit?.output,
|
|
@@ -111,4 +113,4 @@ export {
|
|
|
111
113
|
hasApiKey,
|
|
112
114
|
buildPickableProviders
|
|
113
115
|
};
|
|
114
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-RKU66D2O.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseArgs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CJSHS2K7.js";
|
|
4
4
|
import {
|
|
5
5
|
helpCmd,
|
|
6
6
|
versionCmd
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AKESWZH5.js";
|
|
8
8
|
|
|
9
9
|
// src/boot/short-circuit-flags.ts
|
|
10
10
|
async function handleHelpVersionShortCircuit(argv) {
|
|
@@ -22,7 +22,7 @@ async function handleHelpVersionShortCircuit(argv) {
|
|
|
22
22
|
}
|
|
23
23
|
if (earlyFlags["help"] === true) {
|
|
24
24
|
if (positional.length > 0) {
|
|
25
|
-
const { subcommandNames } = await import("./subcommands-
|
|
25
|
+
const { subcommandNames } = await import("./subcommands-75IB23LS.js");
|
|
26
26
|
if (subcommandNames.includes(positional[0])) {
|
|
27
27
|
const first = positional[0];
|
|
28
28
|
const deep = positional[1];
|
|
@@ -43,4 +43,4 @@ async function handleHelpVersionShortCircuit(argv) {
|
|
|
43
43
|
export {
|
|
44
44
|
handleHelpVersionShortCircuit
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-RYTSPBNM.js.map
|
|
@@ -23,7 +23,7 @@ var APPLIED_FMT = `
|
|
|
23
23
|
`;
|
|
24
24
|
async function printStandaloneUpdateNotice(info, config) {
|
|
25
25
|
const [{ autoUpdateEnabled, standaloneUpdater, takeAppliedUpdate }, { isNewer }, version] = await Promise.all([
|
|
26
|
-
import("./standalone-auto-update-
|
|
26
|
+
import("./standalone-auto-update-QUXOZ4B5.js"),
|
|
27
27
|
import("./update-check-VLVT4IV2.js"),
|
|
28
28
|
import("./version-JB2UAV2A.js")
|
|
29
29
|
]);
|
|
@@ -102,4 +102,4 @@ export {
|
|
|
102
102
|
applySessionShellDefault,
|
|
103
103
|
runPreflight
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-T5KR6SNO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-TGSPCFBT.js.map
|
|
@@ -58,6 +58,9 @@ function maskedKey(key) {
|
|
|
58
58
|
const tail = key.slice(-4);
|
|
59
59
|
return `${color.dim(head + "\u2026")}${tail}`;
|
|
60
60
|
}
|
|
61
|
+
function stripConfigBom(raw) {
|
|
62
|
+
return raw.replace(/^\uFEFF/, "");
|
|
63
|
+
}
|
|
61
64
|
async function loadConfigProviders(configPath, vault, opts) {
|
|
62
65
|
const warn = opts?.warn;
|
|
63
66
|
const targetPath = opts?.profileConfigPath ?? configPath;
|
|
@@ -72,7 +75,7 @@ async function loadConfigProviders(configPath, vault, opts) {
|
|
|
72
75
|
}
|
|
73
76
|
let parsed;
|
|
74
77
|
try {
|
|
75
|
-
parsed = JSON.parse(raw);
|
|
78
|
+
parsed = JSON.parse(stripConfigBom(raw));
|
|
76
79
|
validateProviderConfigShape(parsed);
|
|
77
80
|
} catch (err) {
|
|
78
81
|
warn?.(`Config at ${targetPath} is not valid JSON: ${err.message}`);
|
|
@@ -118,7 +121,7 @@ async function mutateConfigProviders(configPath, vault, mutator, profileConfigPa
|
|
|
118
121
|
}
|
|
119
122
|
let parsed;
|
|
120
123
|
try {
|
|
121
|
-
parsed = JSON.parse(raw);
|
|
124
|
+
parsed = JSON.parse(stripConfigBom(raw));
|
|
122
125
|
validateProviderConfigShape(parsed);
|
|
123
126
|
} catch (err) {
|
|
124
127
|
if (fileExists) {
|
|
@@ -168,4 +171,4 @@ export {
|
|
|
168
171
|
mutateConfigProviders,
|
|
169
172
|
nowIso
|
|
170
173
|
};
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-ULYAI7CP.js.map
|
|
@@ -50,7 +50,7 @@ function normalizeMcpServerEntry(name, raw) {
|
|
|
50
50
|
function parseLaunchMcpServers(text, source) {
|
|
51
51
|
let doc;
|
|
52
52
|
try {
|
|
53
|
-
doc = JSON.parse(text);
|
|
53
|
+
doc = JSON.parse(text.replace(/^\uFEFF/, ""));
|
|
54
54
|
} catch (err) {
|
|
55
55
|
throw new Error(`--mcp-config: ${source} is not valid JSON (${err.message})`);
|
|
56
56
|
}
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
resolveLaunchMcpServers,
|
|
95
95
|
effectiveMcpServers
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-WY74MMDB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildWin32CmdShimInvocation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BHXAKTBE.js";
|
|
4
4
|
import {
|
|
5
5
|
checkForUpdate
|
|
6
6
|
} from "./chunk-DIOODAYM.js";
|
|
@@ -81,7 +81,7 @@ async function runUpdateCommand(args, deps) {
|
|
|
81
81
|
if (isStandaloneBinary()) {
|
|
82
82
|
const [{ updateStandaloneBinary }, { standaloneUpdater }, { STANDALONE_TARGET }] = await Promise.all([
|
|
83
83
|
import("./standalone-update-HZHDZZOR.js"),
|
|
84
|
-
import("./standalone-auto-update-
|
|
84
|
+
import("./standalone-auto-update-QUXOZ4B5.js"),
|
|
85
85
|
import("./version-JB2UAV2A.js")
|
|
86
86
|
]);
|
|
87
87
|
const updater = standaloneUpdater({
|
|
@@ -406,4 +406,4 @@ export {
|
|
|
406
406
|
detectUpdatePackageManager,
|
|
407
407
|
detectUpdatePackageName
|
|
408
408
|
};
|
|
409
|
-
//# sourceMappingURL=chunk-
|
|
409
|
+
//# sourceMappingURL=chunk-ZWBI7ORM.js.map
|