icex-dsh-memory 0.2.6 → 0.2.8
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 +10 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -469,14 +469,16 @@ export async function handleEditorRequest(request) {
|
|
|
469
469
|
|
|
470
470
|
/** Claim the settings-editor route when this host carries a browser connection. */
|
|
471
471
|
function registerEditorRoute(ctx) {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
472
|
+
ctx.inject(['connection'], (scope) => {
|
|
473
|
+
const connection = scope.connection
|
|
474
|
+
if (connection === undefined || connection.fetch === undefined || typeof connection.fetch.register !== 'function') return
|
|
475
|
+
scope.effect(() => connection.fetch.register({
|
|
476
|
+
path: '/api/icex-memory',
|
|
477
|
+
methods: ['GET', 'POST'],
|
|
478
|
+
requestBody: 'buffered',
|
|
479
|
+
fetch: handleEditorRequest,
|
|
480
|
+
}), 'icex-dsh-memory: settings editor route')
|
|
481
|
+
})
|
|
480
482
|
}
|
|
481
483
|
|
|
482
484
|
/** Apply the plugin: one prompt section, one injection, optionally one tool. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "icex-dsh-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cross-session memory for DeepSeek Harness: a budgeted MEMORY.md digest injected once per session, plus one memory tool with provenance back to the producing session.",
|
|
6
6
|
"exports": {
|