@wrongstack/runtime 1.0.6 → 1.0.7

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.
@@ -79,10 +79,11 @@ function createGovernanceMutationSnapshotBridge(input) {
79
79
  completed = await next(payload);
80
80
  return completed;
81
81
  } finally {
82
- const key = completionKey(completed.ctx.session.id, completed.toolUse.id);
82
+ const sessionId = completed.ctx.activeRunSessionId ?? completed.ctx.session?.id;
83
+ const key = completionKey(sessionId, completed.toolUse.id);
83
84
  await enqueueSnapshot(
84
85
  {
85
- ok: !completed.result.is_error,
86
+ ok: !completed.result?.is_error,
86
87
  mutating: completed.tool?.mutating === true
87
88
  },
88
89
  true
@@ -124,6 +124,11 @@ function registerCanonicalHostTools(options) {
124
124
  directNames.add(name);
125
125
  }
126
126
  }
127
+ if (options.vectorMemory?.store) {
128
+ for (const tool of createVectorMemoryTools(options.vectorMemory.store)) {
129
+ directNames.add(tool.name);
130
+ }
131
+ }
127
132
  if (options.browser?.enabled) {
128
133
  for (const name of BROWSER_TOOL_NAMES) directNames.add(name);
129
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/runtime",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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,16 @@
64
64
  "README.md"
65
65
  ],
66
66
  "dependencies": {
67
- "@wrongstack/core": "1.0.6",
68
- "@wrongstack/kanban": "1.0.6",
69
- "@wrongstack/governance": "1.0.6",
70
- "@wrongstack/sage": "1.0.6",
71
- "@wrongstack/tools": "1.0.6",
72
- "@wrongstack/vector-memory": "1.0.6"
67
+ "@wrongstack/core": "1.0.7",
68
+ "@wrongstack/kanban": "1.0.7",
69
+ "@wrongstack/governance": "1.0.7",
70
+ "@wrongstack/sage": "1.0.7",
71
+ "@wrongstack/tools": "1.0.7",
72
+ "@wrongstack/vector-memory": "1.0.7"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/node": "^26.2.0",
76
- "@wrongstack/wrongtrace": "1.0.6",
76
+ "@wrongstack/wrongtrace": "1.0.7",
77
77
  "typescript": "^7.0.2"
78
78
  },
79
79
  "publishConfig": {