vektor-slipstream 1.3.0 → 1.3.2
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/axon.js +1 -1
- package/cerebellum.js +5 -4
- package/package.json +1 -1
- package/token.js +1 -1
package/axon.js
CHANGED
|
@@ -212,7 +212,7 @@ async function onSessionStart({ projectPath, memory } = {}) {
|
|
|
212
212
|
try {
|
|
213
213
|
const results = await memory.recall(
|
|
214
214
|
`[CLOAK_AXON_MEMCELL] project:${_sessionLog.projectName}`,
|
|
215
|
-
|
|
215
|
+
1
|
|
216
216
|
);
|
|
217
217
|
if (results && results.length > 0) {
|
|
218
218
|
lastContext = results[0].content;
|
package/cerebellum.js
CHANGED
|
@@ -116,11 +116,12 @@ async function checkWrite({ content, filePath, memory } = {}) {
|
|
|
116
116
|
// Query causal error graph for patterns similar to this write
|
|
117
117
|
const errorPatterns = await memory.recall(
|
|
118
118
|
`${ERROR_PREFIX} ${content.slice(0, 300)}`,
|
|
119
|
-
|
|
119
|
+
MAX_PATTERNS_TO_CHECK
|
|
120
120
|
);
|
|
121
121
|
|
|
122
122
|
if (!errorPatterns || errorPatterns.length === 0) {
|
|
123
|
-
|
|
123
|
+
_cacheSet(key, []); // cache the empty result too — prevents repeat Vektor calls
|
|
124
|
+
return { warnings: [], shouldProceed: true, cached: false };
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
for (const pattern of errorPatterns) {
|
|
@@ -146,7 +147,7 @@ async function checkWrite({ content, filePath, memory } = {}) {
|
|
|
146
147
|
// Also check Do-Not-Repeat rules (always enforced regardless of similarity)
|
|
147
148
|
const dnrRules = await memory.recall(
|
|
148
149
|
`${DNR_PREFIX}`,
|
|
149
|
-
|
|
150
|
+
5
|
|
150
151
|
);
|
|
151
152
|
|
|
152
153
|
if (dnrRules) {
|
|
@@ -253,7 +254,7 @@ async function autoResolve({ content, filePath, memory } = {}) {
|
|
|
253
254
|
// Pull all open errors on this file, then let REM cycle verify.
|
|
254
255
|
const candidates = await memory.recall(
|
|
255
256
|
`${ERROR_PREFIX} file:${filePath}`,
|
|
256
|
-
|
|
257
|
+
MAX_PATTERNS_TO_CHECK
|
|
257
258
|
);
|
|
258
259
|
|
|
259
260
|
if (!candidates || candidates.length === 0) return { resolved: [], written: 0 };
|
package/package.json
CHANGED
package/token.js
CHANGED