greprag 5.72.3 → 5.72.4

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.
@@ -20,7 +20,7 @@ exports.buildMemoryAnnounce = buildMemoryAnnounce;
20
20
  function buildMemoryAnnounce() {
21
21
  return [
22
22
  '[greprag memory — this project remembers. Every past session (decisions, bugs, what was discussed, who did what) is captured and searchable.]',
23
- 'On demand, the moment you suspect this project knows something you don\'t: `greprag memory search "<topic>"` (semantic — ask in natural language), `greprag memory recap` to catch up on the session, `greprag memory recap --last N` for deeper history. Searching is cheap — reach for it rather than guessing or asking the operator to re-explain.',
23
+ 'On demand, the moment you suspect this project knows something you don\'t: `greprag memory search "<topic>"` (semantic — ask in natural language), `greprag memory recap` to catch up on the session, `greprag memory recap --last N` for deeper history. Named Entity Recall: if the user mentions a person, organization, project, repo, customer, handle, or unexplained proper noun, search memory for that entity before responding when prior context could affect the answer; skip generic nouns and entities fully defined in the current turn. Searching is cheap — reach for it rather than guessing or asking the operator to re-explain.',
24
24
  ].join('\n');
25
25
  }
26
26
  /** memory-primer as a reminder-interrupt module: announce-only (a PRIMER). detect →
@@ -1 +1 @@
1
- {"version":3,"file":"memory-reflex.js","sourceRoot":"","sources":["../../src/commands/memory-reflex.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;wFAYwF;;;AAMxF,kDAKC;AAPD;+EAC+E;AAC/E,SAAgB,mBAAmB;IACjC,OAAO;QACL,+IAA+I;QAC/I,wVAAwV;KACzV,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;qCACqC;AACxB,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,eAAe;IACnB,MAAM,EAAE,CAAC,IAAiB,EAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9D,QAAQ,EAAE,CAAC,IAAiB,EAAiB,EAAE,CAAC,mBAAmB,EAAE;IACrE,QAAQ,EAAE,GAAkB,EAAE,CAAC,IAAI;CACpC,CAAC"}
1
+ {"version":3,"file":"memory-reflex.js","sourceRoot":"","sources":["../../src/commands/memory-reflex.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;wFAYwF;;;AAMxF,kDAKC;AAPD;+EAC+E;AAC/E,SAAgB,mBAAmB;IACjC,OAAO;QACL,+IAA+I;QAC/I,snBAAsnB;KACvnB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;qCACqC;AACxB,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,eAAe;IACnB,MAAM,EAAE,CAAC,IAAiB,EAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9D,QAAQ,EAAE,CAAC,IAAiB,EAAiB,EAAE,CAAC,mBAAmB,EAAE;IACrE,QAAQ,EAAE,GAAkB,EAAE,CAAC,IAAI;CACpC,CAAC"}
@@ -24,7 +24,7 @@ function buildOsPrimer(env) {
24
24
  '[grepragOS — the operating laws. Full doctrine: `greprag load os`.]',
25
25
  '• Doctrine vs state: methods ship in the CLI (`greprag load`); live state lives in the repo. A skill that depends on repo state carries a "STATE — read these first" block naming exact paths.',
26
26
  '• Discoverability: every durable artifact must be findable next session — docs auto-register, skills auto-mirror, decisions get a dated ADR/decision-log entry, everything else gets its path named in the owning skill/doc. If nothing points at it, you didn\'t finish.',
27
- '• Pull before derive: `greprag memory search` / `corpus search` / `load` BEFORE asking the operator or re-deriving what the project already knows.',
27
+ '• Pull before derive: `greprag memory search` / `corpus search` / `load` BEFORE asking the operator or re-deriving what the project already knows. Named person/org/project/repo/customer/handle or unexplained proper noun → search Memory before guessing, unless fully defined in-turn.',
28
28
  `• Friction ⇒ fix NOW: one unit of friction ⇒ \`greprag fix spawn "<unit>"\`. It PRINTS a fix-chip mission (a chip = a spawned child task/session) — YOU then create the child task with that mission as its first message (how: \`greprag load ${spawnEntry}\`, or your harness's native task tool). One unit per chip; the chip investigates, then confidence ≥90 repairs autonomously / <90 parks for operator co-design. Never queue friction.`,
29
29
  '• Teach the system, not the chat: explained twice by the operator ⇒ it belongs in a skill / load entry / STATE block / ADR, not the conversation.',
30
30
  ].join('\n');
@@ -1 +1 @@
1
- {"version":3,"file":"os-primer-reminder.js","sourceRoot":"","sources":["../../src/commands/os-primer-reminder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;4EAU4E;;;AAI5E,sCAeC;AAfD,SAAgB,aAAa,CAAC,GAAmC;IAC/D,4EAA4E;IAC5E,yEAAyE;IACzE,+EAA+E;IAC/E,MAAM,UAAU,GAAG,GAAG,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB;QAC/D,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB;YAClD,CAAC,CAAC,YAAY,CAAC;IACjB,OAAO;QACL,qEAAqE;QACrE,gMAAgM;QAChM,2QAA2Q;QAC3Q,oJAAoJ;QACpJ,kPAAkP,UAAU,uLAAuL;QACnb,mJAAmJ;KACpJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAEY,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,WAAW;IACf,MAAM,EAAE,CAAC,IAAiB,EAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,uBAAuB;IACvF,QAAQ,EAAE,CAAC,GAAG,EAAiB,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC;IACpD,QAAQ,EAAE,GAAkB,EAAE,CAAC,IAAI;CACpC,CAAC"}
1
+ {"version":3,"file":"os-primer-reminder.js","sourceRoot":"","sources":["../../src/commands/os-primer-reminder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;4EAU4E;;;AAI5E,sCAeC;AAfD,SAAgB,aAAa,CAAC,GAAmC;IAC/D,4EAA4E;IAC5E,yEAAyE;IACzE,+EAA+E;IAC/E,MAAM,UAAU,GAAG,GAAG,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB;QAC/D,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB;YAClD,CAAC,CAAC,YAAY,CAAC;IACjB,OAAO;QACL,qEAAqE;QACrE,gMAAgM;QAChM,2QAA2Q;QAC3Q,4RAA4R;QAC5R,kPAAkP,UAAU,uLAAuL;QACnb,mJAAmJ;KACpJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAEY,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,WAAW;IACf,MAAM,EAAE,CAAC,IAAiB,EAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,uBAAuB;IACvF,QAAQ,EAAE,CAAC,GAAG,EAAiB,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC;IACpD,QAAQ,EAAE,GAAkB,EAAE,CAAC,IAAI;CACpC,CAAC"}
@@ -1752,7 +1752,7 @@ function buildOsPrimer(env) {
1752
1752
  "[grepragOS \u2014 the operating laws. Full doctrine: `greprag load os`.]",
1753
1753
  '\u2022 Doctrine vs state: methods ship in the CLI (`greprag load`); live state lives in the repo. A skill that depends on repo state carries a "STATE \u2014 read these first" block naming exact paths.',
1754
1754
  "\u2022 Discoverability: every durable artifact must be findable next session \u2014 docs auto-register, skills auto-mirror, decisions get a dated ADR/decision-log entry, everything else gets its path named in the owning skill/doc. If nothing points at it, you didn't finish.",
1755
- "\u2022 Pull before derive: `greprag memory search` / `corpus search` / `load` BEFORE asking the operator or re-deriving what the project already knows.",
1755
+ "\u2022 Pull before derive: `greprag memory search` / `corpus search` / `load` BEFORE asking the operator or re-deriving what the project already knows. Named person/org/project/repo/customer/handle or unexplained proper noun \u2192 search Memory before guessing, unless fully defined in-turn.",
1756
1756
  `\u2022 Friction \u21D2 fix NOW: one unit of friction \u21D2 \`greprag fix spawn "<unit>"\`. It PRINTS a fix-chip mission (a chip = a spawned child task/session) \u2014 YOU then create the child task with that mission as its first message (how: \`greprag load ${spawnEntry}\`, or your harness's native task tool). One unit per chip; the chip investigates, then confidence \u226590 repairs autonomously / <90 parks for operator co-design. Never queue friction.`,
1757
1757
  "\u2022 Teach the system, not the chat: explained twice by the operator \u21D2 it belongs in a skill / load entry / STATE block / ADR, not the conversation."
1758
1758
  ].join("\n");
@@ -1958,7 +1958,7 @@ var assistantDoctrineModule = {
1958
1958
  function buildMemoryAnnounce() {
1959
1959
  return [
1960
1960
  "[greprag memory \u2014 this project remembers. Every past session (decisions, bugs, what was discussed, who did what) is captured and searchable.]",
1961
- 'On demand, the moment you suspect this project knows something you don\'t: `greprag memory search "<topic>"` (semantic \u2014 ask in natural language), `greprag memory recap` to catch up on the session, `greprag memory recap --last N` for deeper history. Searching is cheap \u2014 reach for it rather than guessing or asking the operator to re-explain.'
1961
+ 'On demand, the moment you suspect this project knows something you don\'t: `greprag memory search "<topic>"` (semantic \u2014 ask in natural language), `greprag memory recap` to catch up on the session, `greprag memory recap --last N` for deeper history. Named Entity Recall: if the user mentions a person, organization, project, repo, customer, handle, or unexplained proper noun, search memory for that entity before responding when prior context could affect the answer; skip generic nouns and entities fully defined in the current turn. Searching is cheap \u2014 reach for it rather than guessing or asking the operator to re-explain.'
1962
1962
  ].join("\n");
1963
1963
  }
1964
1964
  var memoryPrimerModule = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greprag",
3
- "version": "5.72.3",
3
+ "version": "5.72.4",
4
4
  "description": "GrepRAG — agent memory for Claude Code, Codex, and OpenCode.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -41,6 +41,12 @@ Before asking the operator or re-deriving what the project already knows:
41
41
  (reference banks), `greprag load` (the method catalog). Searching is cheap;
42
42
  re-explaining is expensive; guessing is worst.
43
43
 
44
+ Service doctrine lives under this law. Use the installed greprag service when
45
+ its trigger appears. For Memory: if the user mentions a person, organization,
46
+ project, repo, customer, handle, or unexplained proper noun, search memory for
47
+ that entity before responding when prior context could affect the answer. Do
48
+ not do this for generic nouns or for entities fully defined in the current turn.
49
+
44
50
  ## Law 4 — Friction ⇒ fix spawn, at the moment
45
51
 
46
52
  Friction — you repeated yourself, fought a tool, got corrected twice on the