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/AGENTS.md
CHANGED
|
@@ -524,3 +524,110 @@ starts overwriting instead.
|
|
|
524
524
|
|
|
525
525
|
Tests that touch persistence must point it at an isolated temporary project directory and clean up
|
|
526
526
|
only that data; `memory.clear()` wipes all memories and acquired knowledge.
|
|
527
|
+
|
|
528
|
+
---\n\n# Dotmem activation adapter (KILO)
|
|
529
|
+
|
|
530
|
+
When the user sends one of the canonical activation triggers, complete the canonical
|
|
531
|
+
Dotmem initialization sequence deterministically. Do not search the filesystem, create
|
|
532
|
+
demos, or explain the package.
|
|
533
|
+
|
|
534
|
+
## Activation triggers
|
|
535
|
+
|
|
536
|
+
The recognized exact-message triggers are:
|
|
537
|
+
|
|
538
|
+
| Trigger | Behavior |
|
|
539
|
+
|---|---|
|
|
540
|
+
| `DOTMEM` | Activate the Dotmem environment |
|
|
541
|
+
| `npx DOTMEM` | Activate the Dotmem environment |
|
|
542
|
+
| `Joy` | Resolve the canonical conversational profile Joy |
|
|
543
|
+
| `Jo` | Resolve the canonical conversational profile Joy |
|
|
544
|
+
|
|
545
|
+
Matching rules:
|
|
546
|
+
|
|
547
|
+
- Case-insensitive.
|
|
548
|
+
- Ignore surrounding whitespace.
|
|
549
|
+
- Ignore trailing punctuation.
|
|
550
|
+
- Exact-message matching only.
|
|
551
|
+
- Activation occurs once per session.
|
|
552
|
+
|
|
553
|
+
Important distinction:
|
|
554
|
+
|
|
555
|
+
- `DOTMEM` and `npx DOTMEM` activate the Dotmem environment.
|
|
556
|
+
- `Joy` and `Jo` resolve the canonical conversational profile.
|
|
557
|
+
- Resolving Joy/Jo does not establish carrier compatibility or authority binding.
|
|
558
|
+
- Identity resolution, handshake and authority binding remain separate operations.
|
|
559
|
+
|
|
560
|
+
## Deterministic activation sequence
|
|
561
|
+
|
|
562
|
+
Run these steps in order, immediately, when a trigger is received. Do not improvise,
|
|
563
|
+
search the filesystem, inspect package internals, invent commands or tools, or read
|
|
564
|
+
individual claims when a step below already provides the required information.
|
|
565
|
+
|
|
566
|
+
1. Environment activation.
|
|
567
|
+
Reuse: `npx dotmem`
|
|
568
|
+
Capture and report the resolved storage root, canonical identity, index total,
|
|
569
|
+
size disclosure, and personality anchor from its output. If it presents a
|
|
570
|
+
handshake gate, follow that gate before any memory load.
|
|
571
|
+
|
|
572
|
+
2. USER and PROJECT context loading.
|
|
573
|
+
Reuse: `npx dotmem bootstrap` (or `npx dotmem context "current project"`);
|
|
574
|
+
MCP equivalents: `dotmem_bootstrap`, `dotmem_context`.
|
|
575
|
+
Load the returned USER and PROJECT context from the storage root resolved in
|
|
576
|
+
step 1. Do not resolve paths independently.
|
|
577
|
+
|
|
578
|
+
3. Canonical Joy profile resolution and document loading.
|
|
579
|
+
Reuse: `npx dotmem built-in-context --json` (MCP server creation also validates
|
|
580
|
+
the same built-in context) and the `DOTMEM_PROFILE_IDENTITY` block from the MCP
|
|
581
|
+
instructions.
|
|
582
|
+
Confirm and report profile id `joy`, alias `Jo`, and the seven profile documents:
|
|
583
|
+
`ai.md`, `behavior.md`, `decision.md`, `curiosity.md`, `trust.md`,
|
|
584
|
+
`language.md`, `soul.md`.
|
|
585
|
+
Resolving Joy/Jo does not establish human operator's authority.
|
|
586
|
+
|
|
587
|
+
4. Iron Rules retrieval and application.
|
|
588
|
+
Reuse: `npx dotmem rules --expand` (or `npx dotmem rules --json`);
|
|
589
|
+
MCP equivalent: `dotmem_rules` with `expand: true`.
|
|
590
|
+
Report and apply the returned count and signature. Do not claim rules were
|
|
591
|
+
loaded without this output.
|
|
592
|
+
|
|
593
|
+
5. HI recognition and handshake/authority verification.
|
|
594
|
+
Reuse: `npx dotmem handshake --status`.
|
|
595
|
+
Report `currentSpeakerBinding` and `currentAuthorityBinding` exactly as returned.
|
|
596
|
+
If unbound, run the challenge flow only when the HI provides an identity:
|
|
597
|
+
`npx dotmem handshake` (gate), then `npx dotmem handshake --answer "<answer>"`,
|
|
598
|
+
then `npx dotmem handshake --bind-hi "<identity>" --scope user`.
|
|
599
|
+
Never claim a bound HI or authority without the corresponding CLI output.
|
|
600
|
+
|
|
601
|
+
6. Final activation acknowledgement.
|
|
602
|
+
Report, with evidence from steps 1-5: storage root, context loaded, Joy profile
|
|
603
|
+
documents loaded, Iron Rules count and signature, and HI/authority status.
|
|
604
|
+
A generated acknowledgement is not proof of initialization; only the step
|
|
605
|
+
outputs are.
|
|
606
|
+
|
|
607
|
+
## Prohibitions
|
|
608
|
+
|
|
609
|
+
- Do not search the filesystem for Dotmem.
|
|
610
|
+
- Do not inspect package internals to discover commands.
|
|
611
|
+
- Do not invent commands or tools.
|
|
612
|
+
- Do not search for individual claims when bootstrap/context already provides them.
|
|
613
|
+
- Do not modify global host configuration.
|
|
614
|
+
- Do not repeatedly initialize an already initialized session.
|
|
615
|
+
- If a required capability is unavailable, report the exact missing capability.
|
|
616
|
+
|
|
617
|
+
## Index discrepancy
|
|
618
|
+
|
|
619
|
+
`npx dotmem` reports `INDEX_TOTAL` for all claims in the combined store. Totals shown by
|
|
620
|
+
context projection, bootstrap, or MCP can differ because of applicability, scope,
|
|
621
|
+
retracted, superseded, no-term-match, and limit filtering. Compare with
|
|
622
|
+
`npx dotmem context --explain` and `npx dotmem bootstrap`; do not modify live memory
|
|
623
|
+
data to reconcile counts.
|
|
624
|
+
|
|
625
|
+
## Run
|
|
626
|
+
|
|
627
|
+
```sh
|
|
628
|
+
npx dotmem
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
Then follow the canonical contract referenced by Dotmem's bootstrap output. Preserve
|
|
632
|
+
all identity, authority, and security boundaries. Report activation briefly and
|
|
633
|
+
continue with the user's actual task.
|
package/MEMORY.md
CHANGED
|
@@ -571,7 +571,7 @@ does not prevent one.
|
|
|
571
571
|
|
|
572
572
|
### Extra commands: proposed MCP exposure (no implementation yet)
|
|
573
573
|
|
|
574
|
-
The following CLI commands exist but are **not** exposed as MCP tools. This table records the proposal only; no command below becomes an MCP tool without a decision from
|
|
574
|
+
The following CLI commands exist but are **not** exposed as MCP tools. This table records the proposal only; no command below becomes an MCP tool without a decision from human operator.
|
|
575
575
|
|
|
576
576
|
| Command | MCP Exposure | Risk |
|
|
577
577
|
| --- | --- | --- |
|