@wrongstack/cli 1.0.35 → 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-T77EAEDB.js → acp-QLU7T5WX.js} +3 -3
- package/dist/{auth-M6LXZTDA.js → auth-AED7RW7D.js} +5 -5
- package/dist/{automation-MCDFCIMV.js → automation-3E3AUPBF.js} +19 -4
- package/dist/{boot-auto-thin-YMAZI3QL.js → boot-auto-thin-AGJ6TAWY.js} +3 -3
- 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-LKFKO4JW.js → chunk-B6EHK772.js} +2 -2
- package/dist/{chunk-4UWCMBPG.js → chunk-BJH44J7G.js} +3 -3
- package/dist/{chunk-6Z6C6ZHH.js → chunk-GF7LUWQS.js} +4 -10
- package/dist/{chunk-TXAFIERF.js → chunk-L5NWFP5R.js} +2 -2
- package/dist/{chunk-LDXXMPMS.js → chunk-LPGZ3NUF.js} +20 -20
- package/dist/{chunk-GZSKLXYG.js → chunk-NEWXDNF2.js} +8 -8
- package/dist/{chunk-6SIUTX75.js → chunk-NOZJIN46.js} +1 -2
- package/dist/{chunk-KMU7GF7X.js → chunk-RE73FP2X.js} +2 -2
- package/dist/{chunk-LDV4ERNV.js → chunk-RYTSPBNM.js} +2 -2
- package/dist/{chunk-WTJDSTYD.js → chunk-T5KR6SNO.js} +2 -2
- package/dist/{chunk-ZYACRPLN.js → chunk-ULYAI7CP.js} +6 -3
- package/dist/{chunk-HLSHFXTO.js → chunk-WY74MMDB.js} +2 -2
- package/dist/{chunk-RWNI5OWT.js → chunk-ZWBI7ORM.js} +2 -2
- package/dist/{cli-context-II57EHD2.js → cli-context-I6HJCVCV.js} +76 -68
- package/dist/{cli-main-YR2WJCPL.js → cli-main-X7KD7IOC.js} +213 -153
- package/dist/{config-transfer-VOIFY7U4.js → config-transfer-YPD7HYXH.js} +6 -4
- package/dist/{execution-IBAZ2EIU.js → execution-M7D4KNBB.js} +37 -12
- package/dist/{hq-5OIEKB4V.js → hq-BBLGEEUH.js} +3 -3
- package/dist/{hq-server-DU3ZH3X7.js → hq-server-5TR6NBGS.js} +2 -2
- package/dist/{hq-service-LYZV7EK7.js → hq-service-4Q64WFNT.js} +2 -2
- package/dist/{import-claude-code-AYG24RG2.js → import-claude-code-GHIS2F7Y.js} +3 -3
- package/dist/index.js +4 -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/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-37DUV2GW.js → providers-models-S3S6VXME.js} +3 -3
- package/dist/{sage-FFKUOCQL.js → sage-BMRDJCDI.js} +9 -5
- package/dist/{sage-sync-ZMTHB477.js → sage-sync-PCWCNEUK.js} +2 -2
- package/dist/{sessions-config-VE26SB56.js → sessions-config-RQRQDW5Q.js} +2 -2
- package/dist/{short-circuit-flags-EXJBJ5GT.js → short-circuit-flags-IEV3FEOT.js} +2 -2
- package/dist/slash-commands/doctor.d.ts +0 -9
- package/dist/{standalone-auto-update-VQC4GYCM.js → standalone-auto-update-QUXOZ4B5.js} +13 -2
- package/dist/{subcommands-DTKBXLPU.js → subcommands-75IB23LS.js} +2 -2
- package/dist/{typesafe-NHC322W5.js → typesafe-KW2XHOG3.js} +2 -2
- package/dist/{update-6OEPAEUV.js → update-LHCWAWEZ.js} +2 -2
- package/dist/webui-server/credential-watcher.d.ts +3 -1
- package/dist/{webui-server-6IC3SLZG.js → webui-server-CUIFA25W.js} +5 -33
- package/dist/wiring/management-tools.d.ts +9 -1
- package/package.json +31 -31
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
loadConfigProviders,
|
|
12
12
|
mutateConfigProviders
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ULYAI7CP.js";
|
|
14
14
|
import {
|
|
15
15
|
createHqCommandDispatcher,
|
|
16
16
|
createProjectKanbanAssignHandler,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-NRXWOMK7.js";
|
|
19
19
|
import {
|
|
20
20
|
startCliHqConnection
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BJH44J7G.js";
|
|
22
22
|
import {
|
|
23
23
|
CLI_VERSION
|
|
24
24
|
} from "./chunk-F5DCFAKI.js";
|
|
@@ -1057,8 +1057,6 @@ import {
|
|
|
1057
1057
|
// src/webui-server/credential-watcher.ts
|
|
1058
1058
|
import { TOKENS } from "@wrongstack/core/kernel";
|
|
1059
1059
|
import { watchProviderConfig } from "@wrongstack/core/storage";
|
|
1060
|
-
import { toErrorMessage } from "@wrongstack/core/utils/error";
|
|
1061
|
-
import { makeProviderFromConfig } from "@wrongstack/providers";
|
|
1062
1060
|
function startWebuiCredentialWatcher({
|
|
1063
1061
|
opts,
|
|
1064
1062
|
profileConfigPath,
|
|
@@ -1069,9 +1067,6 @@ function startWebuiCredentialWatcher({
|
|
|
1069
1067
|
if (!watchConfigPath || process.env["WRONGSTACK_DISABLE_CONFIG_WATCH"] === "1") {
|
|
1070
1068
|
return void 0;
|
|
1071
1069
|
}
|
|
1072
|
-
let lastActiveCfg = JSON.stringify(
|
|
1073
|
-
opts.appConfig?.providers?.[opts.agent.ctx.provider.id] ?? null
|
|
1074
|
-
);
|
|
1075
1070
|
let lastUiLocale = opts.appConfig?.uiLocale;
|
|
1076
1071
|
const watcher = watchProviderConfig(
|
|
1077
1072
|
watchConfigPath,
|
|
@@ -1115,29 +1110,6 @@ function startWebuiCredentialWatcher({
|
|
|
1115
1110
|
broadcast({ type: "prefs.updated", payload: { uiLocale: snapshot.uiLocale } });
|
|
1116
1111
|
}
|
|
1117
1112
|
}
|
|
1118
|
-
const activeId = opts.agent.ctx.provider.id;
|
|
1119
|
-
const newCfgStr = JSON.stringify(snapshot.providers[activeId] ?? null);
|
|
1120
|
-
if (newCfgStr === lastActiveCfg) return;
|
|
1121
|
-
lastActiveCfg = newCfgStr;
|
|
1122
|
-
try {
|
|
1123
|
-
const newCfg = snapshot.providers[activeId] ?? {
|
|
1124
|
-
type: activeId,
|
|
1125
|
-
...snapshot.apiKey !== void 0 ? { apiKey: snapshot.apiKey } : {},
|
|
1126
|
-
...snapshot.baseUrl !== void 0 ? { baseUrl: snapshot.baseUrl } : {}
|
|
1127
|
-
};
|
|
1128
|
-
const oldMax = opts.agent.ctx.provider.capabilities?.maxContext;
|
|
1129
|
-
const prov = makeProviderFromConfig(activeId, {
|
|
1130
|
-
...newCfg,
|
|
1131
|
-
type: newCfg.type ?? activeId
|
|
1132
|
-
});
|
|
1133
|
-
if (oldMax != null && prov.capabilities) prov.capabilities.maxContext = oldMax;
|
|
1134
|
-
opts.agent.ctx.provider = prov;
|
|
1135
|
-
console.log(`[WebUI] Provider credentials reloaded from config.json (${activeId})`);
|
|
1136
|
-
} catch (err) {
|
|
1137
|
-
console.warn(
|
|
1138
|
-
`[WebUI] Credential hot-reload failed for ${activeId}: ${toErrorMessage(err)}`
|
|
1139
|
-
);
|
|
1140
|
-
}
|
|
1141
1113
|
},
|
|
1142
1114
|
{
|
|
1143
1115
|
warn: (m) => console.warn(
|
|
@@ -1747,7 +1719,7 @@ function createWebuiTransport(clients) {
|
|
|
1747
1719
|
}
|
|
1748
1720
|
|
|
1749
1721
|
// src/webui-server-lifecycle.ts
|
|
1750
|
-
import { toErrorMessage
|
|
1722
|
+
import { toErrorMessage } from "@wrongstack/core/utils/error";
|
|
1751
1723
|
|
|
1752
1724
|
// src/webui-server/connection-handler.ts
|
|
1753
1725
|
import { deriveSessionAgents } from "@wrongstack/core/storage";
|
|
@@ -1939,7 +1911,7 @@ function runWebuiServerLifecycle({
|
|
|
1939
1911
|
webuiInstanceRegistered
|
|
1940
1912
|
});
|
|
1941
1913
|
} catch (err) {
|
|
1942
|
-
consoleLogger.error("setup_events_failed", { message:
|
|
1914
|
+
consoleLogger.error("setup_events_failed", { message: toErrorMessage(err) });
|
|
1943
1915
|
}
|
|
1944
1916
|
};
|
|
1945
1917
|
wss.on("listening", announceListening);
|
|
@@ -2448,4 +2420,4 @@ async function runWebUI(opts) {
|
|
|
2448
2420
|
export {
|
|
2449
2421
|
runWebUI
|
|
2450
2422
|
};
|
|
2451
|
-
//# sourceMappingURL=webui-server-
|
|
2423
|
+
//# sourceMappingURL=webui-server-CUIFA25W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToolRegistry } from '@wrongstack/core/registry';
|
|
2
2
|
import { type PluginManagerHookRunner } from '@wrongstack/core/tools';
|
|
3
|
-
import type { Config } from '@wrongstack/core/types';
|
|
3
|
+
import type { Config, ReasoningConfig, ReasoningEffort } from '@wrongstack/core/types';
|
|
4
4
|
type ConfigStoreLike = {
|
|
5
5
|
get(): Config;
|
|
6
6
|
update(patch: Partial<Config>): void;
|
|
@@ -10,6 +10,7 @@ type ModelsRegistryLike = {
|
|
|
10
10
|
getModel(providerId: string, modelId: string): Promise<{
|
|
11
11
|
capabilities?: {
|
|
12
12
|
maxContext?: number | undefined;
|
|
13
|
+
reasoningConfig?: ReasoningConfig | undefined;
|
|
13
14
|
} | undefined;
|
|
14
15
|
cost?: {
|
|
15
16
|
input?: number | undefined;
|
|
@@ -19,9 +20,16 @@ type ModelsRegistryLike = {
|
|
|
19
20
|
} | undefined;
|
|
20
21
|
} | undefined>;
|
|
21
22
|
};
|
|
23
|
+
type LeaderEffortChange = {
|
|
24
|
+
sessionId?: string | undefined;
|
|
25
|
+
effort?: ReasoningEffort | undefined;
|
|
26
|
+
reason?: string | undefined;
|
|
27
|
+
};
|
|
22
28
|
/** Minimal event-bus shape: enough to observe context size and turn boundaries. */
|
|
23
29
|
type EventsLike = {
|
|
24
30
|
on(event: string, handler: (...args: unknown[]) => void): unknown;
|
|
31
|
+
/** Used to announce `leader.effort_changed` so the UIs can show it. */
|
|
32
|
+
emit?(event: 'leader.effort_changed', payload: LeaderEffortChange): unknown;
|
|
25
33
|
};
|
|
26
34
|
interface RegisterCliManagementToolsDeps {
|
|
27
35
|
toolRegistry: ToolRegistry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
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,42 +41,42 @@
|
|
|
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/sage-mcp": "1.0.
|
|
58
|
-
"@wrongstack/sdd": "1.0.
|
|
59
|
-
"@wrongstack/security-scanner": "1.0.
|
|
60
|
-
"@wrongstack/simpleui": "1.0.
|
|
61
|
-
"@wrongstack/techstack": "1.0.
|
|
62
|
-
"@wrongstack/telegram": "1.0.
|
|
63
|
-
"@wrongstack/tools": "1.0.
|
|
64
|
-
"@wrongstack/tui": "1.0.
|
|
65
|
-
"@wrongstack/vector-memory": "1.0.
|
|
66
|
-
"@wrongstack/webui": "1.0.
|
|
67
|
-
"@wrongstack/webui-hq": "1.0.
|
|
68
|
-
"@wrongstack/webui-protocol": "1.0.
|
|
69
|
-
"@wrongstack/webui-server": "1.0.
|
|
70
|
-
"@wrongstack/wrongtrace": "1.0.
|
|
44
|
+
"@wrongstack/acp": "1.0.36",
|
|
45
|
+
"@wrongstack/bench": "1.0.36",
|
|
46
|
+
"@wrongstack/core": "1.0.36",
|
|
47
|
+
"@wrongstack/kanban": "1.0.36",
|
|
48
|
+
"@wrongstack/mcp": "1.0.36",
|
|
49
|
+
"@wrongstack/persistence": "1.0.36",
|
|
50
|
+
"@wrongstack/plug-lsp": "1.0.36",
|
|
51
|
+
"@wrongstack/plugins": "1.0.36",
|
|
52
|
+
"@wrongstack/primitives": "1.0.36",
|
|
53
|
+
"@wrongstack/providers": "1.0.36",
|
|
54
|
+
"@wrongstack/requirement-intake": "1.0.36",
|
|
55
|
+
"@wrongstack/runtime": "1.0.36",
|
|
56
|
+
"@wrongstack/sage": "1.0.36",
|
|
57
|
+
"@wrongstack/sage-mcp": "1.0.36",
|
|
58
|
+
"@wrongstack/sdd": "1.0.36",
|
|
59
|
+
"@wrongstack/security-scanner": "1.0.36",
|
|
60
|
+
"@wrongstack/simpleui": "1.0.36",
|
|
61
|
+
"@wrongstack/techstack": "1.0.36",
|
|
62
|
+
"@wrongstack/telegram": "1.0.36",
|
|
63
|
+
"@wrongstack/tools": "1.0.36",
|
|
64
|
+
"@wrongstack/tui": "1.0.36",
|
|
65
|
+
"@wrongstack/vector-memory": "1.0.36",
|
|
66
|
+
"@wrongstack/webui": "1.0.36",
|
|
67
|
+
"@wrongstack/webui-hq": "1.0.36",
|
|
68
|
+
"@wrongstack/webui-protocol": "1.0.36",
|
|
69
|
+
"@wrongstack/webui-server": "1.0.36",
|
|
70
|
+
"@wrongstack/wrongtrace": "1.0.36",
|
|
71
71
|
"ws": "^8.21.3"
|
|
72
72
|
},
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"@wrongstack/desktop": "1.0.
|
|
74
|
+
"@wrongstack/desktop": "1.0.36"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^26.5.1",
|
|
78
78
|
"@types/ws": "^8.18.1",
|
|
79
|
-
"@wrongstack/governance": "1.0.
|
|
79
|
+
"@wrongstack/governance": "1.0.36",
|
|
80
80
|
"jsdom": "^30.0.1",
|
|
81
81
|
"typescript": "^7.0.2"
|
|
82
82
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "node ../../scripts/build-package.mjs",
|
|
88
|
-
"typecheck": "pnpm --filter @wrongstack/tools run build && pnpm --filter @wrongstack/tui run build && pnpm --filter @wrongstack/webui-server run build &&
|
|
88
|
+
"typecheck": "pnpm --filter @wrongstack/tools run build && pnpm --filter @wrongstack/tui run build && pnpm --filter @wrongstack/webui-server run build && node ../../scripts/bun-typecheck.mjs --noEmit && node ../../scripts/bun-typecheck.mjs --noEmit -p tsconfig.test.json",
|
|
89
89
|
"test": "vitest run",
|
|
90
90
|
"test:hqdash": "vitest run --config vitest.hqdash.config.ts",
|
|
91
91
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""
|