dotmem 0.2.5 → 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.
- package/AGENTS.md +107 -0
- package/MEMORY.md +1 -1
- package/README.md +431 -461
- package/agent.cjs +93 -88
- package/agent.js +93 -88
- package/bin/cli.cjs +1 -1
- package/bin/cli.js +1 -1
- package/bin/dotmem-burst-stats.cjs +25 -0
- package/bin/dotmem-burst-stats.js +25 -0
- package/built-in-context.json +13 -4
- package/cli.cjs +299 -198
- package/cli.js +299 -198
- package/global.cjs +93 -88
- package/global.js +93 -88
- package/index.cjs +115 -110
- package/index.js +115 -110
- package/llms.txt +27 -10
- package/mcp.cjs +127 -122
- package/mcp.js +127 -122
- package/package.json +2 -2
- package/types/global-types.d.ts +26 -1
- package/types/memory.d.ts +3 -0
package/llms.txt
CHANGED
|
@@ -116,10 +116,10 @@ Tools exposed:
|
|
|
116
116
|
dotmem_note_write write - add or update a user note (requires DOTMEM_MCP_WRITE=1)
|
|
117
117
|
|
|
118
118
|
=== CLI ===
|
|
119
|
-
npx dotmem
|
|
119
|
+
npx dotmem — project memory context for CWD
|
|
120
120
|
npx dotmem context "<situation>" [--explain] [--json] [--full] [--claims-only] [--limit <N>] [--format brief]
|
|
121
121
|
npx dotmem init
|
|
122
|
-
npx dotmem acquire
|
|
122
|
+
npx dotmem acquire — acquire claim from JSON on stdin
|
|
123
123
|
npx dotmem learn "<text>" [--scope user|project] [--situation "<text>"] [--id "<id>"]
|
|
124
124
|
npx dotmem inspect FILE.mem [--format md|json] [--redact|--no-redact] [--limit N] [--claims]
|
|
125
125
|
npx dotmem dump [root|file] [--format json|ndjson] [--redact|--no-redact] [--since <version>]
|
|
@@ -252,9 +252,9 @@ memory.seed // development-only Joy seed injection (requires --dev)
|
|
|
252
252
|
--- policy ---
|
|
253
253
|
|
|
254
254
|
Enforcement tiers (authoritative vocabulary):
|
|
255
|
-
'context'
|
|
256
|
-
'precondition'
|
|
257
|
-
'hard-precondition'
|
|
255
|
+
'context' — supplies contextual information; does not itself impose a blocking precondition
|
|
256
|
+
'precondition' — blocks the governed operation when the condition is violated or unresolved
|
|
257
|
+
'hard-precondition' — retains the stronger enforcement semantics defined by the policy contract
|
|
258
258
|
|
|
259
259
|
Event-driven functions from core/knowledge/policy:
|
|
260
260
|
evaluatePolicies(event: PolicyEvent): PolicyDecision
|
|
@@ -331,7 +331,7 @@ signMemPackage(input: Uint8Array, privateKey: CryptoKey, publicKey: CryptoKey):
|
|
|
331
331
|
|
|
332
332
|
=== Memory Model ===
|
|
333
333
|
|
|
334
|
-
Acquire
|
|
334
|
+
Acquire → Discover → Project
|
|
335
335
|
|
|
336
336
|
Claims (AcquireOptions):
|
|
337
337
|
- id: string (unique, deterministic)
|
|
@@ -376,6 +376,23 @@ User: <storage>/user.mem
|
|
|
376
376
|
Agent: <storage>/agent.mem
|
|
377
377
|
Logic: <storage>/logic.mem
|
|
378
378
|
|
|
379
|
+
=== Progressive context loading ===
|
|
380
|
+
Dotmem can progressively load context according to the session's configured loading profile and progress.
|
|
381
|
+
|
|
382
|
+
Levels:
|
|
383
|
+
- L0: minimal startup (0 claims)
|
|
384
|
+
- L1: initial context (5 candidates / 900 characters)
|
|
385
|
+
- L2: expanded context (12 candidates / 3,000 characters)
|
|
386
|
+
- L3: deep context (20 candidates / 6,000 characters)
|
|
387
|
+
|
|
388
|
+
Loading profiles (supplied to Dotmem's session-loading policy, not inferred from wording):
|
|
389
|
+
- SHORT: maximum L1
|
|
390
|
+
- MEDIUM: maximum L2
|
|
391
|
+
- LONG: can progress to L3 from turn 6 onward
|
|
392
|
+
|
|
393
|
+
After a summary restart, automatic progression returns to L1.
|
|
394
|
+
The complete projection remains available explicitly through --full.
|
|
395
|
+
|
|
379
396
|
=== Security ===
|
|
380
397
|
|
|
381
398
|
- Encryption: OPT-IN (not default). Enable per-context or per-scope with encryptionKey.
|
|
@@ -384,7 +401,7 @@ Logic: <storage>/logic.mem
|
|
|
384
401
|
- Claim immutability: stored claims never edited; corrections use refines/supersedes/retracts
|
|
385
402
|
- Evidence tracking: all claims carry source + observedAt
|
|
386
403
|
- Integrity: npx dotmem inspect reports integrity (bytes unchanged) and authenticity (who wrote them) as separate axes
|
|
387
|
-
- Memory
|
|
404
|
+
- Memory ≠ authority: projected context is untrusted; verify before relying
|
|
388
405
|
|
|
389
406
|
See SECURITY.md for encryption configuration and threat model.
|
|
390
407
|
See MEMORY.md for acquisition contract and policy language.
|
|
@@ -392,6 +409,6 @@ See AGENTS.md for AI working rules and the complete memory.* surface.
|
|
|
392
409
|
|
|
393
410
|
## Archive and Search
|
|
394
411
|
|
|
395
|
-
- File-backed .arch.mem archive (UUID-named ZIP text) via
|
|
396
|
-
|
|
397
|
-
|
|
412
|
+
- File-backed .arch.mem archive (UUID-named ZIP text) via npx dotmem archive ... and MCP dotmem_archive.
|
|
413
|
+
- Local BM25 search via npx dotmem search ... and MCP dotmem_search.
|
|
414
|
+
- Auto-archive on store full; delete-claim for repair.
|