@eleboucher/pi-memini 0.7.5 → 0.7.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/README.md CHANGED
@@ -154,7 +154,7 @@ authority is restored.
154
154
  | `MEMINI_RECALL` | on | Automatic prompt recall. |
155
155
  | `MEMINI_CAPTURE` | on | Settled-turn capture. |
156
156
  | `MEMINI_RECALL_LIMIT` | `3` | Maximum automatic recall hits. |
157
- | `MEMINI_INJECT_RECALL_MAX_TOK` | `0` | Recall injection token ceiling; `0` is unbounded. |
157
+ | `MEMINI_INJECT_RECALL_MAX_TOK` | `250` | Recall injection token ceiling; `0` is unbounded. |
158
158
  | `MEMINI_INJECT_RECALL_MIN_SCORE` | `0` | Minimum automatic recall score. |
159
159
  | `MEMINI_INJECT_DEDUPE` | on | Shared cross-surface suppression state. |
160
160
  | `MEMINI_INJECT_COOLDOWN_MS` | `1800000` | Time cooldown for repeated injection; `0` disables this dimension. |
@@ -164,7 +164,7 @@ authority is restored.
164
164
  | `MEMINI_INJECT_BRIEFING_FACTS` | `5` | Startup durable-fact cap. |
165
165
  | `MEMINI_INJECT_BRIEFING_PROCEDURES` | `5` | Startup procedure cap. |
166
166
  | `MEMINI_INJECT_BRIEFING_RECENT` | `3` | Startup recent-memory cap. |
167
- | `MEMINI_INJECT_BRIEFING_MAX_TOK` | `0` | Whole briefing token ceiling; `0` is unbounded. |
167
+ | `MEMINI_INJECT_BRIEFING_MAX_TOK` | `600` | Whole briefing token ceiling; `0` is unbounded. |
168
168
  | `MEMINI_SESSION_DIGEST` | on | Pre-compaction and shutdown activity checkpoints. |
169
169
  | `MEMINI_MIN_CAPTURE_CHARS` | `0` | Minimum settled user-text length required for capture. |
170
170
  | `MEMINI_CAPTURE_USER_MAX_CHARS` | `1000` | Per-turn captured user-text cap; `0` is unbounded. |
package/dist/index.js CHANGED
@@ -108,9 +108,9 @@ var BEHAVIOR_KNOBS = [
108
108
  { envName: "MEMINI_INJECT_BRIEFING_FACTS", wireKey: "inject_briefing_facts", kind: "int", default: 5 },
109
109
  { envName: "MEMINI_INJECT_BRIEFING_PROCEDURES", wireKey: "inject_briefing_procedures", kind: "int", default: 5 },
110
110
  { envName: "MEMINI_INJECT_BRIEFING_RECENT", wireKey: "inject_briefing_recent", kind: "int", default: 3 },
111
- { envName: "MEMINI_INJECT_BRIEFING_MAX_TOK", wireKey: "inject_briefing_max_tok", kind: "int", default: 0 },
111
+ { envName: "MEMINI_INJECT_BRIEFING_MAX_TOK", wireKey: "inject_briefing_max_tok", kind: "int", default: 600 },
112
112
  { envName: "MEMINI_INJECT_PRETOOL_ITEMS", wireKey: "inject_pretool_items", kind: "int", default: 3 },
113
- { envName: "MEMINI_INJECT_PRETOOL_MAX_TOK", wireKey: "inject_pretool_max_tok", kind: "int", default: 0 },
113
+ { envName: "MEMINI_INJECT_PRETOOL_MAX_TOK", wireKey: "inject_pretool_max_tok", kind: "int", default: 200 },
114
114
  { envName: "MEMINI_INJECT_PRETOOL_MIN_SCORE", wireKey: "inject_pretool_min_score", kind: "float", default: 0 },
115
115
  {
116
116
  envName: "MEMINI_INJECT_PRETOOL_TOOLS",
@@ -120,13 +120,14 @@ var BEHAVIOR_KNOBS = [
120
120
  },
121
121
  { envName: "MEMINI_INJECT_PRETOOL_GATE_MS", wireKey: "inject_pretool_gate_ms", kind: "int", default: 9e4 },
122
122
  { envName: "MEMINI_INJECT_DEDUPE", wireKey: "inject_dedupe", kind: "bool", default: true },
123
+ { envName: "MEMINI_INJECT_TELEMETRY", wireKey: "inject_telemetry", kind: "bool", default: true },
123
124
  { envName: "MEMINI_INJECT_COOLDOWN_MS", wireKey: "inject_cooldown_ms", kind: "int", default: 18e5 },
124
125
  { envName: "MEMINI_INJECT_COOLDOWN_PROMPTS", wireKey: "inject_cooldown_prompts", kind: "int", default: 3 },
125
126
  { envName: "MEMINI_INJECT_LABELS", wireKey: "inject_labels", kind: "list", default: [] },
126
127
  { envName: "MEMINI_RECALL", wireKey: "recall", kind: "bool", default: true },
127
128
  { envName: "MEMINI_CAPTURE", wireKey: "capture", kind: "bool", default: true },
128
129
  { envName: "MEMINI_RECALL_LIMIT", wireKey: "recall_limit", kind: "int", default: 3 },
129
- { envName: "MEMINI_INJECT_RECALL_MAX_TOK", wireKey: "inject_recall_max_tok", kind: "int", default: 0 },
130
+ { envName: "MEMINI_INJECT_RECALL_MAX_TOK", wireKey: "inject_recall_max_tok", kind: "int", default: 250 },
130
131
  { envName: "MEMINI_INJECT_RECALL_MIN_SCORE", wireKey: "inject_recall_min_score", kind: "float", default: 0 },
131
132
  { envName: "MEMINI_MIN_CAPTURE_CHARS", wireKey: "min_capture_chars", kind: "int", default: 0 },
132
133
  { envName: "MEMINI_CAPTURE_USER_MAX_CHARS", wireKey: "capture_user_max_chars", kind: "int", default: 1e3 },
@@ -640,7 +641,12 @@ var MEMORY_FIELDS = [
640
641
  "superseded_by",
641
642
  "valid_from",
642
643
  "valid_to",
643
- "confidence"
644
+ "confidence",
645
+ // Progressive-disclosure fields: content_hash (16-hex identity over the
646
+ // full stored content, stable across response formats) and
647
+ // content_truncated (set on concise projections that actually cut).
648
+ "content_hash",
649
+ "content_truncated"
644
650
  ];
645
651
  function normalizeMemory(raw) {
646
652
  const memory = raw?.memory ?? raw ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleboucher/pi-memini",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "Shared cross-session memory for the Pi coding agent, backed by a memini service.",
5
5
  "keywords": [
6
6
  "memini",