dsh-hypatia-auto-memory 2.2.0 → 2.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-hypatia-auto-memory",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Event-driven Hypatia memory for DSH: automatic conversation logging via session events, queued background consolidation (span summaries + work-unit extraction) with a dedicated model route, and recall injection — zero per-call model work in the main session.",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
package/src/cascade.js CHANGED
@@ -118,7 +118,7 @@ export function createCascade({ cli, llm, selectRoute, getConfig, status, modelL
118
118
  system: 'You produce strict JSON only. You never add prose around it.',
119
119
  messages: [createUserMessage({
120
120
  content: [{ type: 'text', text: `${archiveInstruction(level, rows.length)}\n\n${body}` }],
121
- source: { kind: 'plugin', plugin: PLUGIN_NAME },
121
+ source: { kind: `plugin:${PLUGIN_NAME}`, plugin: PLUGIN_NAME },
122
122
  })],
123
123
  // Thinking stays ON by default here, unlike the extraction call: an
124
124
  // archive is a semantic compression of sixteen summaries, not a
@@ -509,7 +509,7 @@ export function createConsolidator({ queue, progress, sessions, llm, cli, writer
509
509
  system: 'You produce strict JSON only. You never add prose around it.',
510
510
  messages: [createUserMessage({
511
511
  content: [{ type: 'text', text: instruction }],
512
- source: { kind: 'plugin', plugin: PLUGIN_NAME },
512
+ source: { kind: `plugin:${PLUGIN_NAME}`, plugin: PLUGIN_NAME },
513
513
  })],
514
514
  maxTokens: budgetForEffort(ADJUDICATION_MAX_TOKENS, effort),
515
515
  ...effort === undefined ? {} : { reasoningEffort: effort },
@@ -731,7 +731,7 @@ export function createConsolidator({ queue, progress, sessions, llm, cli, writer
731
731
  assembler = new BlockAssembler()
732
732
  const request = createUserMessage({
733
733
  content: [{ type: 'text', text: `${consolidationInstruction(maxUnits)}\n\n<transcript>\n${transcript}\n</transcript>` }],
734
- source: { kind: 'plugin', plugin: PLUGIN_NAME },
734
+ source: { kind: `plugin:${PLUGIN_NAME}`, plugin: PLUGIN_NAME },
735
735
  })
736
736
  // The purpose policy asks for no reasoning here and the adjudication
737
737
  // call above does the same: extraction is a mechanical transform into a
package/src/recall.js CHANGED
@@ -32,7 +32,7 @@
32
32
  * to another. That line is sent even with the preload switched off or nothing
33
33
  * to preload, because it is not a preference — without it retrieval is wrong.
34
34
  *
35
- * The seed carries `source: {kind: 'plugin', plugin, form: 'recall'}` so the
35
+ * The seed carries `source: {kind: 'plugin:<name>', plugin, form: 'recall'}` so the
36
36
  * collector skips it — recall output must never be re-logged into memory.
37
37
  *
38
38
  * @module dsh-hypatia-auto-memory/recall
@@ -132,7 +132,7 @@ export function createRecall({ ctx, cli, shelf = DEFAULT_SHELF, getConfig, statu
132
132
  if (taboosText !== '') sections.push('### Taboos', taboosText, '')
133
133
  agent.inject(createUserMessage({
134
134
  content: [{ type: 'text', text: sections.join('\n') }],
135
- source: { kind: 'plugin', plugin: PLUGIN_NAME, form: 'recall' },
135
+ source: { kind: `plugin:${PLUGIN_NAME}`, plugin: PLUGIN_NAME, form: 'recall' },
136
136
  }))
137
137
  }
138
138