@fabersep/memory 0.5.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `@fabersep/memory`. Versions follow [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [0.5.1](https://github.com/fabersep/memory/compare/v0.5.0...v0.5.1) (2026-12-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * stage agent rules and preferences in the startup index ([#23](https://github.com/fabersep/memory/issues/23)) ([6fc3d5a](https://github.com/fabersep/memory/commit/6fc3d5a4eaa58ce1b46cd0a2f7a384d7b46f4094))
11
+
5
12
  ## [0.5.0](https://github.com/fabersep/memory/compare/v0.4.0...v0.5.0) (2026-12-03)
6
13
 
7
14
 
package/dist/src/mcp.d.ts CHANGED
@@ -90,6 +90,7 @@ export declare const MCP_TOOLS: readonly [{
90
90
  readonly l0: {
91
91
  readonly type: "string";
92
92
  readonly enum: readonly ["none", "line", "body"];
93
+ readonly description: "\"line\": listed in the startup index every session (rules and preferences that must always hold). \"none\": found only by search (details looked up when needed).";
93
94
  };
94
95
  readonly force_new: {
95
96
  readonly type: "boolean";
@@ -214,6 +215,7 @@ export declare class FaberMemoryMcpServer {
214
215
  readonly l0: {
215
216
  readonly type: "string";
216
217
  readonly enum: readonly ["none", "line", "body"];
218
+ readonly description: "\"line\": listed in the startup index every session (rules and preferences that must always hold). \"none\": found only by search (details looked up when needed).";
217
219
  };
218
220
  readonly force_new: {
219
221
  readonly type: "boolean";
package/dist/src/mcp.js CHANGED
@@ -60,7 +60,11 @@ export const MCP_TOOLS = [
60
60
  target_id: { type: 'string' },
61
61
  entry_id: { type: 'string' },
62
62
  tags: { type: 'array', items: { type: 'string' } },
63
- l0: { type: 'string', enum: ['none', 'line', 'body'] },
63
+ l0: {
64
+ type: 'string',
65
+ enum: ['none', 'line', 'body'],
66
+ description: '"line": listed in the startup index every session (rules and preferences that must always hold). "none": found only by search (details looked up when needed).',
67
+ },
64
68
  force_new: { type: 'boolean' },
65
69
  reason: { type: 'string' },
66
70
  source: { type: 'string', enum: ['agent', 'user'], default: 'agent' },
@@ -367,6 +371,14 @@ export class FaberMemoryMcpServer {
367
371
  l0Note = `l0 set to "line" (was ${l0 ? `"${l0}"` : 'not set'}): a memory the user asks for is listed in the startup index.`;
368
372
  l0 = 'line';
369
373
  }
374
+ else if (source === 'agent' &&
375
+ scope !== 'project' &&
376
+ l0 === 'none' &&
377
+ (type === 'rule' || type === 'preference')) {
378
+ // 06 FR-03 amendment: a rule or preference must reach the startup index to be applied.
379
+ l0Note = `l0 set to "line" (was "none"): a ${type} is listed in the startup index so it holds in every session; the reviewer can lower it.`;
380
+ l0 = 'line';
381
+ }
370
382
  let stagedReason;
371
383
  if (source === 'user') {
372
384
  stagedReason = this.directSaveBlocker(config, scope);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabersep/memory",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "description": "Prefix-cache-first, Git-backed Markdown memory MCP server, pre-memory staging, and import CLI for AI coding agents.",
6
6
  "license": "Apache-2.0",