@wrongstack/cli 0.303.0 → 0.305.0
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-AQMGKW6O.js → acp-5ZLGFHWP.js} +4 -2
- package/dist/boot/system-prompt-builder.d.ts +24 -1
- package/dist/boot/tui-project-switch.d.ts +1 -1
- package/dist/boot/tui-runtime-state.d.ts +14 -0
- package/dist/{chunk-JW75HY4F.js → chunk-FKWHSFX4.js} +33 -4
- package/dist/{chunk-LUAFQIXT.js → chunk-RHLQT3EV.js} +11 -1
- package/dist/{cli-main-37XO26GK.js → cli-main-W3T56YCY.js} +390 -299
- package/dist/execute-deps.d.ts +16 -0
- package/dist/{execution-MVOH6PAQ.js → execution-YMBD7YWC.js} +68 -18
- package/dist/fleet/host-context.d.ts +2 -0
- package/dist/fleet/host-session-writer.d.ts +33 -0
- package/dist/fleet/host.d.ts +10 -0
- package/dist/{hq-CD77GVSS.js → hq-5G6D5YIU.js} +2 -2
- package/dist/{hq-server-DME6EWIO.js → hq-server-IVZLVCFV.js} +2 -2
- package/dist/index.js +13 -56
- package/dist/{mailbox-serve-DBOOOOWZ.js → mailbox-serve-V3QIJBDH.js} +2 -2
- package/dist/{mcp-AX6ZAFJR.js → mcp-MSARYOPN.js} +4 -2
- package/dist/replay-XU6ZD7GM.js +34 -0
- package/dist/slash-commands/memory-triage.d.ts +4 -17
- package/dist/{webui-server-E3OPEKU5.js → webui-server-FTG7JAZU.js} +5 -5
- package/dist/wiring/domain-glossary.d.ts +58 -0
- package/dist/wiring/domain-terms-mirror.d.ts +52 -0
- package/dist/wiring/pipeline.d.ts +2 -0
- package/dist/wiring/replay.d.ts +11 -1
- package/dist/wiring/sage.d.ts +4 -16
- package/package.json +23 -23
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refresh the `.wrongstack/domain-terms.md` mirror file from the
|
|
3
|
+
* resolved SAGE `MemoryPort` at CLI boot.
|
|
4
|
+
*
|
|
5
|
+
* Background
|
|
6
|
+
* ----------
|
|
7
|
+
* The Project Jargon Dictionary feature splits ownership between two
|
|
8
|
+
* storage backends (per `packages/sage/docs/direct-icp-usage.md`):
|
|
9
|
+
* - SAGE's SQLite store is the authoritative source of truth.
|
|
10
|
+
* - `.wrongstack/domain-terms.md` is a *derived* view of the same
|
|
11
|
+
* data, kept on disk so humans (and ProjectRoot sandboxes) can
|
|
12
|
+
* read the glossary without going through the IPC client.
|
|
13
|
+
*
|
|
14
|
+
* `SageDomainTermExtractor.writeDomainTermsFile` already knows how to
|
|
15
|
+
* regenerate the file from the canonical SAGE state. What it lacks
|
|
16
|
+
* is a runtime host caller — the helper exists only in tests. This
|
|
17
|
+
* module closes that gap for the CLI host.
|
|
18
|
+
*
|
|
19
|
+
* Behaviour
|
|
20
|
+
* ---------
|
|
21
|
+
* - **Fire and forget at boot.** The mirror is a derived artefact;
|
|
22
|
+
* a failure to refresh at startup must not abort the CLI. The
|
|
23
|
+
* helper logs via `writeErr` and returns `null` on failure.
|
|
24
|
+
* - **Idempotent.** Calling this on every boot is safe: the file is
|
|
25
|
+
* regenerated atomically by `writeDomainTermsFile`, and the content
|
|
26
|
+
* is fully derived from SAGE state.
|
|
27
|
+
* - **Honest about scope.** Only the CLI host invokes this. TUI and
|
|
28
|
+
* WebUI hosts share the same SAGE port and read the same file; the
|
|
29
|
+
* CLI boot path is the canonical place to refresh the mirror.
|
|
30
|
+
*/
|
|
31
|
+
import type { MemoryPort } from '@wrongstack/core/types';
|
|
32
|
+
export interface RefreshDomainTermsMirrorOptions {
|
|
33
|
+
/** Absolute project root whose `.wrongstack/domain-terms.md` should be refreshed. */
|
|
34
|
+
projectRoot: string;
|
|
35
|
+
/**
|
|
36
|
+
* Resolved SAGE `MemoryPort`. The extractor reads the `domain-term`
|
|
37
|
+
* tagged subset from this port.
|
|
38
|
+
*/
|
|
39
|
+
memoryStore: MemoryPort;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Regenerate the mirror file from the current SAGE state.
|
|
43
|
+
*
|
|
44
|
+
* Returns the absolute path of the written file, or `null` when the
|
|
45
|
+
* refresh failed (the CLI logs the underlying reason to stderr and
|
|
46
|
+
* continues — the SAGE corpus remains authoritative).
|
|
47
|
+
*
|
|
48
|
+
* Never throws — callers are guaranteed to receive a `string | null`
|
|
49
|
+
* outcome.
|
|
50
|
+
*/
|
|
51
|
+
export declare function refreshDomainTermsMirror(options: RefreshDomainTermsMirrorOptions): Promise<string | null>;
|
|
52
|
+
//# sourceMappingURL=domain-terms-mirror.d.ts.map
|
|
@@ -79,6 +79,8 @@ export declare function createAgent(params: {
|
|
|
79
79
|
maxToolTimeoutMs?: number | undefined;
|
|
80
80
|
defaultExecutionStrategy: 'parallel' | 'sequential' | 'smart';
|
|
81
81
|
perIterationOutputCapBytes: number;
|
|
82
|
+
/** Opt-in Kanban governance gate; see ToolsConfig.kanbanGovernance. */
|
|
83
|
+
kanbanGovernance?: boolean | undefined;
|
|
82
84
|
loopDetection?: import('@wrongstack/core/types').LoopDetectionConfig | undefined;
|
|
83
85
|
};
|
|
84
86
|
};
|
package/dist/wiring/replay.d.ts
CHANGED
|
@@ -23,11 +23,21 @@ import type { WstackPaths } from '@wrongstack/core/utils';
|
|
|
23
23
|
* The log lives next to the session JSONL via
|
|
24
24
|
* `sessionScopedPath(projectSessions, sessionId, '.replay.jsonl')`,
|
|
25
25
|
* colocated with annotations and audit sidecars.
|
|
26
|
+
*
|
|
27
|
+
* Call this AFTER the session exists. `TOKENS.ProviderRunner` is resolved per
|
|
28
|
+
* request inside the agent loop, not at agent construction, so the binding only
|
|
29
|
+
* has to be in place before the first `run()` — which is what lets `--record`
|
|
30
|
+
* name the real session instead of inventing one.
|
|
26
31
|
*/
|
|
27
32
|
export interface BindReplayOptions {
|
|
28
33
|
container: Container;
|
|
29
34
|
wpaths: WstackPaths;
|
|
30
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Explicit id for `--replay <id>`, or a resolver for `--record` so the log
|
|
37
|
+
* lands beside the live session's transcript instead of under a synthetic
|
|
38
|
+
* name. See {@link ReplayProviderRunnerOptions.sessionId}.
|
|
39
|
+
*/
|
|
40
|
+
sessionId: string | (() => string);
|
|
31
41
|
mode: ReplayMode;
|
|
32
42
|
logger?: Logger | undefined;
|
|
33
43
|
}
|
package/dist/wiring/sage.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import type { AgentPipelines } from '@wrongstack/core/agent';
|
|
2
|
-
import type { EventBus } from '@wrongstack/core/kernel';
|
|
3
|
-
import type { Config, Logger, MemoryPort } from '@wrongstack/core/types';
|
|
4
|
-
export interface SageWiringDeps {
|
|
5
|
-
config: Config;
|
|
6
|
-
pipelines: AgentPipelines;
|
|
7
|
-
memoryStore: MemoryPort | undefined;
|
|
8
|
-
logger: Logger;
|
|
9
|
-
events: EventBus;
|
|
10
|
-
getSessionId?: (() => string | undefined) | undefined;
|
|
11
|
-
}
|
|
12
1
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
2
|
+
* CLI host adapter for shared SAGE wiring.
|
|
3
|
+
*
|
|
4
|
+
* Implementation lives in `@wrongstack/sage` so CLI and WebUI cannot drift.
|
|
16
5
|
*/
|
|
17
|
-
export
|
|
18
|
-
export declare function setupSage(deps: SageWiringDeps): () => Promise<void>;
|
|
6
|
+
export { AUTO_HYGIENE_INTERVAL_MS, _resetAutoHygieneThrottleForTesting, sageHygieneOptionsFromConfig, setupSage, type SageHostWiringDeps as SageWiringDeps, } from '@wrongstack/sage';
|
|
19
7
|
//# sourceMappingURL=sage.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.305.0",
|
|
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": [
|
|
@@ -42,30 +42,30 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"ws": "^8.21.1",
|
|
45
|
-
"@wrongstack/
|
|
46
|
-
"@wrongstack/
|
|
47
|
-
"@wrongstack/
|
|
48
|
-
"@wrongstack/
|
|
49
|
-
"@wrongstack/
|
|
50
|
-
"@wrongstack/
|
|
51
|
-
"@wrongstack/
|
|
52
|
-
"@wrongstack/
|
|
53
|
-
"@wrongstack/
|
|
54
|
-
"@wrongstack/
|
|
55
|
-
"@wrongstack/
|
|
56
|
-
"@wrongstack/
|
|
57
|
-
"@wrongstack/
|
|
58
|
-
"@wrongstack/
|
|
59
|
-
"@wrongstack/
|
|
60
|
-
"@wrongstack/tools": "0.
|
|
61
|
-
"@wrongstack/
|
|
62
|
-
"@wrongstack/
|
|
63
|
-
"@wrongstack/
|
|
64
|
-
"@wrongstack/
|
|
65
|
-
"@wrongstack/webui-server": "0.
|
|
45
|
+
"@wrongstack/bench": "0.305.0",
|
|
46
|
+
"@wrongstack/core": "0.305.0",
|
|
47
|
+
"@wrongstack/acp": "0.305.0",
|
|
48
|
+
"@wrongstack/kanban": "0.305.0",
|
|
49
|
+
"@wrongstack/plug-lsp": "0.305.0",
|
|
50
|
+
"@wrongstack/mcp": "0.305.0",
|
|
51
|
+
"@wrongstack/requirement-intake": "0.305.0",
|
|
52
|
+
"@wrongstack/sdd": "0.305.0",
|
|
53
|
+
"@wrongstack/sage": "0.305.0",
|
|
54
|
+
"@wrongstack/providers": "0.305.0",
|
|
55
|
+
"@wrongstack/runtime": "0.305.0",
|
|
56
|
+
"@wrongstack/plugins": "0.305.0",
|
|
57
|
+
"@wrongstack/security-scanner": "0.305.0",
|
|
58
|
+
"@wrongstack/techstack": "0.305.0",
|
|
59
|
+
"@wrongstack/simpleui": "0.305.0",
|
|
60
|
+
"@wrongstack/tools": "0.305.0",
|
|
61
|
+
"@wrongstack/telegram": "0.305.0",
|
|
62
|
+
"@wrongstack/webui-hq": "0.305.0",
|
|
63
|
+
"@wrongstack/webui": "0.305.0",
|
|
64
|
+
"@wrongstack/tui": "0.305.0",
|
|
65
|
+
"@wrongstack/webui-server": "0.305.0"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"@wrongstack/desktop": "0.
|
|
68
|
+
"@wrongstack/desktop": "0.305.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/node": "^26.1.2",
|