@vib795/agent-memory 0.7.3 → 0.7.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/digest.js +15 -12
package/README.md
CHANGED
|
@@ -440,7 +440,7 @@ equivalent and is not: npm links the global install to that folder rather than c
|
|
|
440
440
|
it, which shows up as an arrow in `npm list -g`:
|
|
441
441
|
|
|
442
442
|
```
|
|
443
|
-
`-- @vib795/agent-memory@0.
|
|
443
|
+
`-- @vib795/agent-memory@0.7.4 -> .\..\..\..\agent-memory
|
|
444
444
|
```
|
|
445
445
|
|
|
446
446
|
Move or delete the clone afterwards and the global install points at nothing — the same
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vib795/agent-memory",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Durable cross-repo knowledge graph for GitHub Copilot and Claude Code. Markdown source of truth, disposable SQLite index, zero runtime dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github-copilot",
|
package/src/digest.js
CHANGED
|
@@ -3,22 +3,25 @@ import { createHash } from 'node:crypto';
|
|
|
3
3
|
import { captureGap, currentRepo } from './staleness.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Tiers 1 and 2 of a three-tier ladder.
|
|
7
7
|
*
|
|
8
|
-
* Tier 1 is
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Tier 1 is a skill description, loaded into every chat whether or not memory is ever
|
|
9
|
+
* used. It is standing cost, so it has to read like a description rather than a
|
|
10
|
+
* document. It has two occupants, not one: `recall`'s description advertises what the
|
|
11
|
+
* store knows; `remember`'s advertises what it is missing. Both are the same mechanism
|
|
12
|
+
* — a line of frontmatter that code regenerates and every conversation loads —
|
|
13
|
+
* pointed at opposite halves of the same problem.
|
|
11
14
|
*
|
|
12
|
-
* Tier 2 is
|
|
13
|
-
* cost, paid once, and only when someone
|
|
15
|
+
* Tier 2 is printed only when a skill actually fires: the tree for `recall`, the
|
|
16
|
+
* capture brief for `remember`. Per-invocation cost, paid once, and only when someone
|
|
17
|
+
* is already looking something up or about to write one down.
|
|
14
18
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
19
|
+
* Tier 3 — note bodies, and the colliding note that `write` hands back — lives
|
|
20
|
+
* outside this module, because by then the question is which note rather than which
|
|
21
|
+
* of them.
|
|
17
22
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* line of frontmatter that code regenerates and every conversation loads — pointed at
|
|
21
|
-
* opposite halves of the same problem.
|
|
23
|
+
* Neither tier here costs a premium request. A request is charged per prompt, not per
|
|
24
|
+
* tool call, so both of these ride inside a turn that was already paid for.
|
|
22
25
|
*/
|
|
23
26
|
|
|
24
27
|
// Never dropped from either tier. A constraint is what stops an agent from burning
|