@wrongstack/runtime 0.310.1 → 0.313.1
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.
|
@@ -39,6 +39,15 @@ export interface LightSubagentFactoryDeps {
|
|
|
39
39
|
* The host owns this hook; it is not exposed through the agent's tools.
|
|
40
40
|
*/
|
|
41
41
|
installToolBoundary?: ((pipelines: import('@wrongstack/core/agent').AgentPipelines) => void) | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Optional hook runner applied to the subagent's ToolExecutor so worker
|
|
44
|
+
* edits honor the WrongTrace lock gate like the leader's. The host owns
|
|
45
|
+
* this runner (typically a dedicated WrongTrace-only HookRunner with a
|
|
46
|
+
* per-process session id); `undefined` means pre-gate behavior, never an
|
|
47
|
+
* error. Mirrors the CLI host factory's `host.deps.hookRunner` thread at
|
|
48
|
+
* packages/cli/src/fleet/host-subagent-factory.ts.
|
|
49
|
+
*/
|
|
50
|
+
hookRunner?: import('@wrongstack/core/hooks').HookRunner | undefined;
|
|
42
51
|
}
|
|
43
52
|
/**
|
|
44
53
|
* Retrieve and abort a light subagent's AbortController (stored in ctx.meta
|
package/dist/index.js
CHANGED
|
@@ -579,7 +579,11 @@ function makeLightSubagentFactory(deps) {
|
|
|
579
579
|
// in ctx.meta and can satisfy the same gate its leader was held to.
|
|
580
580
|
// Every ToolExecutor host must resolve this identically — see
|
|
581
581
|
// packages/cli/src/wiring/pipeline.ts.
|
|
582
|
-
requireKanbanGovernance: config.tools?.kanbanGovernance ?? false
|
|
582
|
+
requireKanbanGovernance: config.tools?.kanbanGovernance ?? false,
|
|
583
|
+
// WrongTrace lock gate — worker edits honor peer locks exactly like
|
|
584
|
+
// the leader's, when the host supplies a hookRunner (see
|
|
585
|
+
// LightSubagentFactoryDeps). Absent runner = pre-gate behavior.
|
|
586
|
+
...deps.hookRunner ? { hookRunner: deps.hookRunner } : {}
|
|
583
587
|
});
|
|
584
588
|
const agent = new Agent({
|
|
585
589
|
container: deps.container,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.313.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack default runtime implementations and host-level composition helpers built on @wrongstack/core.",
|
|
6
6
|
"repository": {
|
|
@@ -64,16 +64,17 @@
|
|
|
64
64
|
"README.md"
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@wrongstack/core": "0.
|
|
68
|
-
"@wrongstack/
|
|
69
|
-
"@wrongstack/
|
|
70
|
-
"@wrongstack/
|
|
71
|
-
"@wrongstack/
|
|
72
|
-
"@wrongstack/
|
|
67
|
+
"@wrongstack/core": "0.313.1",
|
|
68
|
+
"@wrongstack/sage": "0.313.1",
|
|
69
|
+
"@wrongstack/governance": "0.313.1",
|
|
70
|
+
"@wrongstack/kanban": "0.313.1",
|
|
71
|
+
"@wrongstack/tools": "0.313.1",
|
|
72
|
+
"@wrongstack/vector-memory": "0.313.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/node": "^26.2.0",
|
|
76
|
-
"typescript": "^7.0.2"
|
|
76
|
+
"typescript": "^7.0.2",
|
|
77
|
+
"@wrongstack/wrongtrace": "0.313.1"
|
|
77
78
|
},
|
|
78
79
|
"publishConfig": {
|
|
79
80
|
"access": "public"
|