icex-dsh-memory 0.2.6 → 0.2.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.
Files changed (2) hide show
  1. package/index.js +10 -8
  2. 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
- const connection = ctx.get('connection')
473
- if (connection === undefined || connection.fetch === undefined || typeof connection.fetch.register !== 'function') return
474
- ctx.effect(() => connection.fetch.register({
475
- path: '/api/icex-memory',
476
- methods: ['GET', 'POST'],
477
- requestBody: 'buffered',
478
- fetch: handleEditorRequest,
479
- }), 'icex-dsh-memory: settings editor route')
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.6",
3
+ "version": "0.2.7",
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": {