dsh-plugin-soulbridge 0.0.109 → 0.0.110
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/index.js +12 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -884,6 +884,18 @@ export function createPreStepHandler(deps) {
|
|
|
884
884
|
} catch (error) {
|
|
885
885
|
log(`threads close failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
886
886
|
}
|
|
887
|
+
|
|
888
|
+
// Housekeeping once per turn: an open question nobody answered in two weeks stopped
|
|
889
|
+
// being a question worth asking. No model call, one UPDATE.
|
|
890
|
+
try {
|
|
891
|
+
const swept = ensureSoul().sweep(Date.now(), { gapMaxAgeDays: 14 });
|
|
892
|
+
if (swept.gapsClosed > 0) {
|
|
893
|
+
log(`gaps closed: ${swept.gapsClosed} (expired)`);
|
|
894
|
+
trace({ event: 'gaps-expired', closed: swept.gapsClosed });
|
|
895
|
+
}
|
|
896
|
+
} catch (error) {
|
|
897
|
+
log(`gap sweep failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
898
|
+
}
|
|
887
899
|
const messages = Array.isArray(payload?.messages) ? payload.messages : [];
|
|
888
900
|
const text = textOf(messages[messages.length - 1]?.content);
|
|
889
901
|
if (text.length === 0) return decision;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-soulbridge",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
4
4
|
"description": "Inject soulbridge context into DSH sessions and feed user turns back as observations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"setup": "node scripts/install-hooks.mjs"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"soulbridge": ">=0.0.
|
|
45
|
+
"soulbridge": ">=0.0.107 <0.1.0"
|
|
46
46
|
}
|
|
47
47
|
}
|