@wrongstack/cli 1.0.15 → 1.0.17
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-IJ55NBMJ.js → acp-INCNOH42.js} +3 -2
- package/dist/boot/tool-registry.d.ts +3 -1
- package/dist/{chunk-TE3Q32JP.js → chunk-CJTBLTS4.js} +5 -1
- package/dist/{chunk-MZY6UDWC.js → chunk-K5PAL6KR.js} +6 -2
- package/dist/{chunk-U3PDQOYU.js → chunk-M4W3QLQW.js} +4 -4
- package/dist/{chunk-DUF5FEWD.js → chunk-VGER3HYZ.js} +2 -2
- package/dist/{cli-context-6MTVFJPO.js → cli-context-4PTWEK52.js} +5 -5
- package/dist/{cli-main-42SM33EG.js → cli-main-DQ2GBY7M.js} +12 -8
- package/dist/{execution-6KIOQUAG.js → execution-A6WJLSOC.js} +5 -5
- package/dist/{hq-O5BOP6UY.js → hq-NU75W3SE.js} +2 -2
- package/dist/{hq-server-YW4MJCKH.js → hq-server-M2JWVW4D.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{mailbox-serve-X3CR6VFW.js → mailbox-serve-3GFOK2I7.js} +3 -2
- package/dist/{short-circuit-flags-T6EFG3W6.js → short-circuit-flags-SJQBJ33I.js} +2 -2
- package/dist/{subcommands-3ILCNR2T.js → subcommands-ERDDIJ3L.js} +2 -2
- package/dist/{webui-server-FRVJWLZA.js → webui-server-MRPGTTKL.js} +14 -7
- package/package.json +28 -28
|
@@ -10,7 +10,8 @@ import {
|
|
|
10
10
|
} from "./chunk-JY52HWL6.js";
|
|
11
11
|
import {
|
|
12
12
|
startCliHqConnection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CJTBLTS4.js";
|
|
14
|
+
import "./chunk-XJXDOF63.js";
|
|
14
15
|
import "./chunk-SIGUWXAA.js";
|
|
15
16
|
import "./chunk-DAKVBMD4.js";
|
|
16
17
|
import "./chunk-DR2OXU46.js";
|
|
@@ -1167,4 +1168,4 @@ ${renderAcpBenchText(result)}
|
|
|
1167
1168
|
export {
|
|
1168
1169
|
acpCmd
|
|
1169
1170
|
};
|
|
1170
|
-
//# sourceMappingURL=acp-
|
|
1171
|
+
//# sourceMappingURL=acp-INCNOH42.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** CLI boot adapter for canonical runtime tool registration and host policies. */
|
|
2
2
|
import type { EventBus } from '@wrongstack/core/kernel';
|
|
3
3
|
import type { ToolRegistry } from '@wrongstack/core/registry';
|
|
4
|
-
import type { AutoThinConfig, ConcreteTokenSavingTier, DisabledToolMeta, MemoryPort, TokenSavingTier, ToolDescriptionModeConfig, ToolResultRenderModeConfig } from '@wrongstack/core/types';
|
|
4
|
+
import type { AutoThinConfig, ConcreteTokenSavingTier, DisabledToolMeta, MemoryPort, SkillLoader, TokenSavingTier, ToolDescriptionModeConfig, ToolResultRenderModeConfig } from '@wrongstack/core/types';
|
|
5
5
|
import type { WstackPaths } from '@wrongstack/core/utils';
|
|
6
6
|
import type { VectorMemoryStore } from '@wrongstack/vector-memory';
|
|
7
7
|
interface RegisterBuiltinToolsDeps {
|
|
@@ -61,6 +61,8 @@ interface RegisterBuiltinToolsDeps {
|
|
|
61
61
|
* Omit (or pass `undefined`) to keep the CLI on the SAGE-only surface.
|
|
62
62
|
*/
|
|
63
63
|
vectorMemoryStore?: VectorMemoryStore | undefined;
|
|
64
|
+
/** Registers the `skill` tool the progressive skill manifest points at. Omit when skills are off. */
|
|
65
|
+
skillLoader?: SkillLoader | undefined;
|
|
64
66
|
events: EventBus;
|
|
65
67
|
wpaths: Pick<WstackPaths, 'projectDir'>;
|
|
66
68
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CLI_VERSION
|
|
3
|
+
} from "./chunk-XJXDOF63.js";
|
|
1
4
|
|
|
2
5
|
// src/hq-publisher.ts
|
|
3
6
|
import { createHqPublisherFromEnv, resolveHqConfig } from "@wrongstack/core/hq";
|
|
@@ -429,6 +432,7 @@ function nodeWsSocketFactory(url) {
|
|
|
429
432
|
}
|
|
430
433
|
function createCliHqPublisher(options) {
|
|
431
434
|
return createHqPublisherFromEnv({
|
|
435
|
+
clientVersion: options.clientVersion ?? options.version ?? CLI_VERSION,
|
|
432
436
|
...options,
|
|
433
437
|
socketFactory: options.socketFactory ?? nodeWsSocketFactory
|
|
434
438
|
});
|
|
@@ -513,4 +517,4 @@ function startCliHqConnection(options) {
|
|
|
513
517
|
export {
|
|
514
518
|
startCliHqConnection
|
|
515
519
|
};
|
|
516
|
-
//# sourceMappingURL=chunk-
|
|
520
|
+
//# sourceMappingURL=chunk-CJTBLTS4.js.map
|
|
@@ -1768,9 +1768,11 @@ function buildSnapshot(clients, options) {
|
|
|
1768
1768
|
project.governance = governance;
|
|
1769
1769
|
}
|
|
1770
1770
|
for (const tracked of client.sessions.values()) {
|
|
1771
|
+
const clientVersion = tracked.payload.clientVersion ?? client.version;
|
|
1771
1772
|
sessionById.set(tracked.payload.sessionId, {
|
|
1772
1773
|
...tracked.payload,
|
|
1773
|
-
clientId: client.clientId
|
|
1774
|
+
clientId: client.clientId,
|
|
1775
|
+
...clientVersion !== void 0 ? { clientVersion } : {}
|
|
1774
1776
|
});
|
|
1775
1777
|
}
|
|
1776
1778
|
for (const snapshot of client.mailboxes.values()) {
|
|
@@ -1911,12 +1913,14 @@ function buildSnapshot(clients, options) {
|
|
|
1911
1913
|
if (typeof agent.costUsd === "number") sessionCost += agent.costUsd;
|
|
1912
1914
|
}
|
|
1913
1915
|
const provider = s.agents.find((a) => a.model !== void 0)?.model;
|
|
1916
|
+
const clientVersion = s.clientVersion ?? (s.clientId ? clientRecordById.get(s.clientId)?.version : void 0);
|
|
1914
1917
|
return {
|
|
1915
1918
|
sessionId: s.sessionId,
|
|
1916
1919
|
projectId: s.projectId,
|
|
1917
1920
|
clientId: s.clientId ?? `${s.machineId}:${s.clientKind}`,
|
|
1918
1921
|
status: s.status === "active" ? "running" : "idle",
|
|
1919
1922
|
...provider !== void 0 ? { model: provider } : {},
|
|
1923
|
+
...clientVersion !== void 0 ? { clientVersion } : {},
|
|
1920
1924
|
startedAt: s.startedAt,
|
|
1921
1925
|
lastActivityAt: s.lastActivityAt,
|
|
1922
1926
|
...sessionCost > 0 ? { costUsd: sessionCost } : {}
|
|
@@ -5100,4 +5104,4 @@ export {
|
|
|
5100
5104
|
startHqServer,
|
|
5101
5105
|
HqInsecureExposureError2 as HqInsecureExposureError
|
|
5102
5106
|
};
|
|
5103
|
-
//# sourceMappingURL=chunk-
|
|
5107
|
+
//# sourceMappingURL=chunk-K5PAL6KR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
// src/subcommands/index.ts
|
|
3
3
|
var loaders = {
|
|
4
|
-
acp: async () => (await import("./acp-
|
|
4
|
+
acp: async () => (await import("./acp-INCNOH42.js")).acpCmd,
|
|
5
5
|
init: async () => (await import("./init-DRMMFG2G.js")).initCmd,
|
|
6
6
|
auth: async () => (await import("./auth-YXK3EDUL.js")).authCmd,
|
|
7
7
|
update: async () => (await import("./update-5DPB4YD4.js")).updateCmd,
|
|
@@ -31,8 +31,8 @@ var loaders = {
|
|
|
31
31
|
quick: async () => (await import("./quick-CNB4Z3HS.js")).quickCmd,
|
|
32
32
|
bench: async () => (await import("./bench-YBU6BVQP.js")).benchCmd,
|
|
33
33
|
chronicle: async () => (await import("./chronicle-UTFETHP6.js")).chronicleCmd,
|
|
34
|
-
hq: async () => (await import("./hq-
|
|
35
|
-
mailbox: async () => (await import("./mailbox-serve-
|
|
34
|
+
hq: async () => (await import("./hq-NU75W3SE.js")).hqCmd,
|
|
35
|
+
mailbox: async () => (await import("./mailbox-serve-3GFOK2I7.js")).mailboxServeCmd,
|
|
36
36
|
permissions: async () => (await import("./permissions-CFDLXETM.js")).permissionsCmd,
|
|
37
37
|
project: async () => (await import("./project-AOQI5XTK.js")).projectCmd,
|
|
38
38
|
governance: async () => (await import("./governance-RYSHV675.js")).governanceCmd
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
subcommands,
|
|
52
52
|
subcommandNames
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-M4W3QLQW.js.map
|
|
@@ -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-ERDDIJ3L.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-VGER3HYZ.js.map
|
|
@@ -19,17 +19,17 @@ import {
|
|
|
19
19
|
} from "./chunk-GPPRNAKW.js";
|
|
20
20
|
import {
|
|
21
21
|
subcommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-M4W3QLQW.js";
|
|
23
23
|
import {
|
|
24
24
|
renderDeepHelp,
|
|
25
25
|
renderFocusedHelp
|
|
26
26
|
} from "./chunk-JX6KL7OF.js";
|
|
27
27
|
import {
|
|
28
28
|
handleHelpVersionShortCircuit
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VGER3HYZ.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_PORT
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-K5PAL6KR.js";
|
|
33
33
|
import "./chunk-HXJYHAR4.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveHqPasswordInput
|
|
@@ -866,7 +866,7 @@ async function isPortInUse(host, port) {
|
|
|
866
866
|
}
|
|
867
867
|
async function handleHqShortCircuit(flags) {
|
|
868
868
|
if (flags["hq"] !== true) return null;
|
|
869
|
-
const { startHqServer } = await import("./hq-server-
|
|
869
|
+
const { startHqServer } = await import("./hq-server-M2JWVW4D.js");
|
|
870
870
|
const tunnelRequested = flags["tunnel"] === true;
|
|
871
871
|
const rawPublicUrl = typeof flags["hq-public-url"] === "string" ? flags["hq-public-url"] : process.env.WRONGSTACK_HQ_PUBLIC_URL;
|
|
872
872
|
let publicOrigin;
|
|
@@ -3303,4 +3303,4 @@ async function initializeCli(argv) {
|
|
|
3303
3303
|
export {
|
|
3304
3304
|
initializeCli
|
|
3305
3305
|
};
|
|
3306
|
-
//# sourceMappingURL=cli-context-
|
|
3306
|
+
//# sourceMappingURL=cli-context-4PTWEK52.js.map
|
|
@@ -71,9 +71,6 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
BEHAVIOR_SECTION_KEYS
|
|
73
73
|
} from "./chunk-UQUYBDMG.js";
|
|
74
|
-
import {
|
|
75
|
-
CLI_VERSION
|
|
76
|
-
} from "./chunk-XJXDOF63.js";
|
|
77
74
|
import {
|
|
78
75
|
buildProviderForId,
|
|
79
76
|
createGracefulShutdown,
|
|
@@ -90,7 +87,10 @@ import {
|
|
|
90
87
|
} from "./chunk-JY52HWL6.js";
|
|
91
88
|
import {
|
|
92
89
|
startCliHqConnection
|
|
93
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-CJTBLTS4.js";
|
|
91
|
+
import {
|
|
92
|
+
CLI_VERSION
|
|
93
|
+
} from "./chunk-XJXDOF63.js";
|
|
94
94
|
import {
|
|
95
95
|
LOCAL_LLM_PRESETS,
|
|
96
96
|
addCustomProvider,
|
|
@@ -6133,7 +6133,7 @@ function createRuntimePickerDeps(input) {
|
|
|
6133
6133
|
function formatAge(at) {
|
|
6134
6134
|
const seconds = Math.max(0, Math.round((Date.now() - at) / 1e3));
|
|
6135
6135
|
if (seconds < 60) return `${seconds}s`;
|
|
6136
|
-
if (seconds < 3600) return `${Math.
|
|
6136
|
+
if (seconds < 3600) return `${Math.floor(seconds / 60)}m`;
|
|
6137
6137
|
return `${Math.round(seconds / 3600)}h`;
|
|
6138
6138
|
}
|
|
6139
6139
|
|
|
@@ -6244,7 +6244,7 @@ async function runCliExecution(params) {
|
|
|
6244
6244
|
governanceHandle,
|
|
6245
6245
|
setConfig
|
|
6246
6246
|
} = params;
|
|
6247
|
-
const { execute } = await import("./execution-
|
|
6247
|
+
const { execute } = await import("./execution-A6WJLSOC.js");
|
|
6248
6248
|
return execute(
|
|
6249
6249
|
toExecuteDeps({
|
|
6250
6250
|
core: {
|
|
@@ -7360,6 +7360,7 @@ function registerBuiltinTools(deps) {
|
|
|
7360
7360
|
memory: { enabled: deps.config.features.memory, store: deps.memoryStore },
|
|
7361
7361
|
vectorMemory: deps.vectorMemoryStore ? { store: deps.vectorMemoryStore } : void 0,
|
|
7362
7362
|
nextSteps: { enabled: deps.config.tools?.nextsteps?.enabled === true },
|
|
7363
|
+
skillLoader: deps.skillLoader,
|
|
7363
7364
|
coordinationTools: [
|
|
7364
7365
|
makeMailboxTool({ projectDir: deps.wpaths.projectDir, events: deps.events }),
|
|
7365
7366
|
makeMailSendTool({ projectDir: deps.wpaths.projectDir, events: deps.events }),
|
|
@@ -7490,6 +7491,9 @@ async function setupCliPromptAndTools(params) {
|
|
|
7490
7491
|
tier,
|
|
7491
7492
|
memoryStore,
|
|
7492
7493
|
vectorMemoryStore,
|
|
7494
|
+
// Same gate the prompt builder uses (`skillsEnabled`), so the manifest and
|
|
7495
|
+
// the tool that loads its entries are present or absent together.
|
|
7496
|
+
skillLoader: config.features.skills ? skillLoader : void 0,
|
|
7493
7497
|
events,
|
|
7494
7498
|
wpaths
|
|
7495
7499
|
});
|
|
@@ -32927,7 +32931,7 @@ function parseArgs(args) {
|
|
|
32927
32931
|
}
|
|
32928
32932
|
async function gatherInput(opts, power) {
|
|
32929
32933
|
const config = opts.configStore.get();
|
|
32930
|
-
const skillMode = config.skills?.mode ?? "
|
|
32934
|
+
const skillMode = config.skills?.mode ?? "progressive";
|
|
32931
32935
|
const eagerMaxChars = config.skills?.eagerMaxChars ?? DEFAULT_EAGER_MAX_CHARS;
|
|
32932
32936
|
const [skills, memoryFiles, update, trust, configIssues, sessionBytes] = await Promise.all([
|
|
32933
32937
|
gatherSkills(opts, skillMode),
|
|
@@ -39110,4 +39114,4 @@ export {
|
|
|
39110
39114
|
CLI_VERSION,
|
|
39111
39115
|
runInteractive
|
|
39112
39116
|
};
|
|
39113
|
-
//# sourceMappingURL=cli-main-
|
|
39117
|
+
//# sourceMappingURL=cli-main-DQ2GBY7M.js.map
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
terminalLink,
|
|
41
41
|
terminalText
|
|
42
42
|
} from "./chunk-HXJYHAR4.js";
|
|
43
|
+
import {
|
|
44
|
+
startCliHqConnection
|
|
45
|
+
} from "./chunk-CJTBLTS4.js";
|
|
43
46
|
import {
|
|
44
47
|
CLI_VERSION
|
|
45
48
|
} from "./chunk-XJXDOF63.js";
|
|
46
|
-
import {
|
|
47
|
-
startCliHqConnection
|
|
48
|
-
} from "./chunk-TE3Q32JP.js";
|
|
49
49
|
import {
|
|
50
50
|
activeProfileConfigPath
|
|
51
51
|
} from "./chunk-YMXXOOFN.js";
|
|
@@ -214,7 +214,7 @@ async function runWebUIDispatch(ctx) {
|
|
|
214
214
|
const isSimpleUi = !isSessionChild && flags["simpleui"] === true;
|
|
215
215
|
agent.disableInteractiveConfirmation();
|
|
216
216
|
renderer.setSilent(true);
|
|
217
|
-
const { runWebUI } = await import("./webui-server-
|
|
217
|
+
const { runWebUI } = await import("./webui-server-MRPGTTKL.js");
|
|
218
218
|
const flagValue = (names) => {
|
|
219
219
|
for (const name of names) {
|
|
220
220
|
if (!Object.hasOwn(flags, name)) continue;
|
|
@@ -6959,4 +6959,4 @@ export {
|
|
|
6959
6959
|
execute,
|
|
6960
6960
|
resolveReviewerFallbackModels
|
|
6961
6961
|
};
|
|
6962
|
-
//# sourceMappingURL=execution-
|
|
6962
|
+
//# sourceMappingURL=execution-A6WJLSOC.js.map
|
|
@@ -68,7 +68,7 @@ var hqCmd = async (args, deps) => {
|
|
|
68
68
|
return 1;
|
|
69
69
|
};
|
|
70
70
|
async function startServer(deps) {
|
|
71
|
-
const { startHqServer } = await import("./hq-server-
|
|
71
|
+
const { startHqServer } = await import("./hq-server-M2JWVW4D.js");
|
|
72
72
|
const dataDir = resolveDataDir(deps);
|
|
73
73
|
const flags = deps.flags ?? {};
|
|
74
74
|
const rawPublicUrl = typeof flags["hq-public-url"] === "string" ? flags["hq-public-url"] : process.env.WRONGSTACK_HQ_PUBLIC_URL;
|
|
@@ -987,4 +987,4 @@ export {
|
|
|
987
987
|
hqCmd,
|
|
988
988
|
resolveAuditActor
|
|
989
989
|
};
|
|
990
|
-
//# sourceMappingURL=hq-
|
|
990
|
+
//# sourceMappingURL=hq-NU75W3SE.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readLocalSubagentTranscript,
|
|
11
11
|
sanitizeApiError,
|
|
12
12
|
startHqServer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K5PAL6KR.js";
|
|
14
14
|
import "./chunk-HXJYHAR4.js";
|
|
15
15
|
import "./chunk-5EA6OTLJ.js";
|
|
16
16
|
import "./chunk-Q7E3BPDU.js";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
sanitizeApiError,
|
|
28
28
|
startHqServer
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=hq-server-
|
|
30
|
+
//# sourceMappingURL=hq-server-M2JWVW4D.js.map
|
package/dist/index.js
CHANGED
|
@@ -16,14 +16,14 @@ async function main(argv) {
|
|
|
16
16
|
applySessionShellDefault();
|
|
17
17
|
const earlyFlags = parseArgs(argv).flags;
|
|
18
18
|
if (earlyFlags["help"] === true || earlyFlags["version"] === true) {
|
|
19
|
-
const { handleHelpVersionShortCircuit } = await import("./short-circuit-flags-
|
|
19
|
+
const { handleHelpVersionShortCircuit } = await import("./short-circuit-flags-SJQBJ33I.js");
|
|
20
20
|
const earlyExit = await handleHelpVersionShortCircuit(argv);
|
|
21
21
|
if (earlyExit !== null) return earlyExit;
|
|
22
22
|
}
|
|
23
|
-
const { initializeCli } = await import("./cli-context-
|
|
23
|
+
const { initializeCli } = await import("./cli-context-4PTWEK52.js");
|
|
24
24
|
const cliCtx = await initializeCli(argv);
|
|
25
25
|
if (typeof cliCtx === "number") return cliCtx;
|
|
26
|
-
const { runInteractive } = await import("./cli-main-
|
|
26
|
+
const { runInteractive } = await import("./cli-main-DQ2GBY7M.js");
|
|
27
27
|
return runInteractive(cliCtx);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startCliHqConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CJTBLTS4.js";
|
|
4
|
+
import "./chunk-XJXDOF63.js";
|
|
4
5
|
|
|
5
6
|
// src/subcommands/handlers/mailbox-serve.ts
|
|
6
7
|
import { createServer } from "node:http";
|
|
@@ -360,4 +361,4 @@ function printHelp(deps) {
|
|
|
360
361
|
export {
|
|
361
362
|
mailboxServeCmd
|
|
362
363
|
};
|
|
363
|
-
//# sourceMappingURL=mailbox-serve-
|
|
364
|
+
//# sourceMappingURL=mailbox-serve-3GFOK2I7.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleHelpVersionShortCircuit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VGER3HYZ.js";
|
|
4
4
|
import "./chunk-6WRKAACA.js";
|
|
5
5
|
import "./chunk-XJXDOF63.js";
|
|
6
6
|
import "./chunk-C3Z4N6A6.js";
|
|
7
7
|
export {
|
|
8
8
|
handleHelpVersionShortCircuit
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=short-circuit-flags-
|
|
10
|
+
//# sourceMappingURL=short-circuit-flags-SJQBJ33I.js.map
|
|
@@ -11,7 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-JY52HWL6.js";
|
|
12
12
|
import {
|
|
13
13
|
startCliHqConnection
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CJTBLTS4.js";
|
|
15
|
+
import {
|
|
16
|
+
CLI_VERSION
|
|
17
|
+
} from "./chunk-XJXDOF63.js";
|
|
15
18
|
import {
|
|
16
19
|
loadConfigProviders,
|
|
17
20
|
mutateConfigProviders
|
|
@@ -38,7 +41,6 @@ import {
|
|
|
38
41
|
envFlag,
|
|
39
42
|
findFreePort,
|
|
40
43
|
findInstalledPackageJson,
|
|
41
|
-
integrationConnectSources,
|
|
42
44
|
isStrictPort,
|
|
43
45
|
resolveAuthToken,
|
|
44
46
|
resolvePendingConfirmsForSession,
|
|
@@ -63,6 +65,7 @@ function createWebuiClientRegistration(deps) {
|
|
|
63
65
|
events: deps.events,
|
|
64
66
|
hqSessionId: deps.hqSessionId,
|
|
65
67
|
getSessionId: deps.getSessionId,
|
|
68
|
+
clientVersion: CLI_VERSION,
|
|
66
69
|
...deps.listSessions ? { listSessions: deps.listSessions } : {},
|
|
67
70
|
...deps.isSessionOwnedElsewhere ? { isSessionOwnedElsewhere: deps.isSessionOwnedElsewhere } : {},
|
|
68
71
|
...deps.getSessionWriter ? { getSessionWriter: deps.getSessionWriter } : {},
|
|
@@ -1526,10 +1529,14 @@ async function runWebUI(opts) {
|
|
|
1526
1529
|
requireToken,
|
|
1527
1530
|
deferListen: surface === "simpleui",
|
|
1528
1531
|
strictPort,
|
|
1529
|
-
//
|
|
1530
|
-
//
|
|
1531
|
-
|
|
1532
|
-
|
|
1532
|
+
// Resolve the same-origin health probes from live preferences, including
|
|
1533
|
+
// changes made after boot, just like the standalone WebUI host.
|
|
1534
|
+
getIntegrationTarget: (kind) => {
|
|
1535
|
+
const meta = opts.agent.ctx.meta;
|
|
1536
|
+
const enabledKey = kind === "hq" ? "hqEnabled" : "wrongProxyEnabled";
|
|
1537
|
+
const urlKey = kind === "hq" ? "hqUrl" : "wrongProxyUrl";
|
|
1538
|
+
return meta[enabledKey] === true && typeof meta[urlKey] === "string" ? meta[urlKey] : void 0;
|
|
1539
|
+
},
|
|
1533
1540
|
...opts.getVectorMemoryStore ? { getVectorMemoryStore: opts.getVectorMemoryStore } : {},
|
|
1534
1541
|
...opts.vectorMemoryModelCacheDir ? { vectorMemoryModelCacheDir: opts.vectorMemoryModelCacheDir } : {}
|
|
1535
1542
|
});
|
|
@@ -2023,4 +2030,4 @@ async function runWebUI(opts) {
|
|
|
2023
2030
|
export {
|
|
2024
2031
|
runWebUI
|
|
2025
2032
|
};
|
|
2026
|
-
//# sourceMappingURL=webui-server-
|
|
2033
|
+
//# sourceMappingURL=webui-server-MRPGTTKL.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack CLI — terminal AI coding agent with provider catalog from models.dev. Provides `wrongstack` and `wstack` binaries.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,36 +41,36 @@
|
|
|
41
41
|
"data"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@wrongstack/acp": "1.0.
|
|
45
|
-
"@wrongstack/bench": "1.0.
|
|
46
|
-
"@wrongstack/core": "1.0.
|
|
47
|
-
"@wrongstack/kanban": "1.0.
|
|
48
|
-
"@wrongstack/mcp": "1.0.
|
|
49
|
-
"@wrongstack/persistence": "1.0.
|
|
50
|
-
"@wrongstack/plug-lsp": "1.0.
|
|
51
|
-
"@wrongstack/plugins": "1.0.
|
|
52
|
-
"@wrongstack/primitives": "1.0.
|
|
53
|
-
"@wrongstack/providers": "1.0.
|
|
54
|
-
"@wrongstack/requirement-intake": "1.0.
|
|
55
|
-
"@wrongstack/runtime": "1.0.
|
|
56
|
-
"@wrongstack/sage": "1.0.
|
|
57
|
-
"@wrongstack/sdd": "1.0.
|
|
58
|
-
"@wrongstack/security-scanner": "1.0.
|
|
59
|
-
"@wrongstack/simpleui": "1.0.
|
|
60
|
-
"@wrongstack/techstack": "1.0.
|
|
61
|
-
"@wrongstack/telegram": "1.0.
|
|
62
|
-
"@wrongstack/tools": "1.0.
|
|
63
|
-
"@wrongstack/tui": "1.0.
|
|
64
|
-
"@wrongstack/vector-memory": "1.0.
|
|
65
|
-
"@wrongstack/webui": "1.0.
|
|
66
|
-
"@wrongstack/webui-hq": "1.0.
|
|
67
|
-
"@wrongstack/webui-protocol": "1.0.
|
|
68
|
-
"@wrongstack/webui-server": "1.0.
|
|
69
|
-
"@wrongstack/wrongtrace": "1.0.
|
|
44
|
+
"@wrongstack/acp": "1.0.17",
|
|
45
|
+
"@wrongstack/bench": "1.0.17",
|
|
46
|
+
"@wrongstack/core": "1.0.17",
|
|
47
|
+
"@wrongstack/kanban": "1.0.17",
|
|
48
|
+
"@wrongstack/mcp": "1.0.17",
|
|
49
|
+
"@wrongstack/persistence": "1.0.17",
|
|
50
|
+
"@wrongstack/plug-lsp": "1.0.17",
|
|
51
|
+
"@wrongstack/plugins": "1.0.17",
|
|
52
|
+
"@wrongstack/primitives": "1.0.17",
|
|
53
|
+
"@wrongstack/providers": "1.0.17",
|
|
54
|
+
"@wrongstack/requirement-intake": "1.0.17",
|
|
55
|
+
"@wrongstack/runtime": "1.0.17",
|
|
56
|
+
"@wrongstack/sage": "1.0.17",
|
|
57
|
+
"@wrongstack/sdd": "1.0.17",
|
|
58
|
+
"@wrongstack/security-scanner": "1.0.17",
|
|
59
|
+
"@wrongstack/simpleui": "1.0.17",
|
|
60
|
+
"@wrongstack/techstack": "1.0.17",
|
|
61
|
+
"@wrongstack/telegram": "1.0.17",
|
|
62
|
+
"@wrongstack/tools": "1.0.17",
|
|
63
|
+
"@wrongstack/tui": "1.0.17",
|
|
64
|
+
"@wrongstack/vector-memory": "1.0.17",
|
|
65
|
+
"@wrongstack/webui": "1.0.17",
|
|
66
|
+
"@wrongstack/webui-hq": "1.0.17",
|
|
67
|
+
"@wrongstack/webui-protocol": "1.0.17",
|
|
68
|
+
"@wrongstack/webui-server": "1.0.17",
|
|
69
|
+
"@wrongstack/wrongtrace": "1.0.17",
|
|
70
70
|
"ws": "^8.21.3"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
|
-
"@wrongstack/desktop": "1.0.
|
|
73
|
+
"@wrongstack/desktop": "1.0.17"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/node": "^26.5.1",
|