pi-lossless 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lossless",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Lossless Context Management for the Pi coding agent: long sessions keep working past the point where the model would forget, and every verbatim message stays searchable and readable (lcm_grep / lcm_describe / lcm_expand_query).",
5
5
  "keywords": [
6
6
  "coding-agent",
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: pi-lossless
3
- description: "Use when a Pi session has pi-lossless installed: search compacted history with lcm_grep, lcm_describe, or lcm_expand_query; run /lcm status, settings, backup, export, report, doctor, gc, migrate, heal, or diagnose; or tune compaction thresholds."
3
+ description: "Use when a Pi session has pi-lossless installed: search compacted history with lcm_grep, lcm_describe, or lcm_expand_query; run /lcm status, settings, backup, export, report, doctor, gc, migrate, heal, dump, or diagnose; or tune compaction thresholds."
4
4
  license: MIT
5
5
  metadata:
6
6
  type: composition
7
7
  library: "pi-lossless"
8
- library_version: "0.1.2"
8
+ library_version: "0.1.3"
9
9
  requires: []
10
10
  sources:
11
11
  - stainless-code/lossless:packages/pi/src
@@ -35,6 +35,7 @@ soft threshold (default 70% of the model window).
35
35
  - `/lcm backup` — copy the live store to a timestamped file.
36
36
  - `/lcm export` — write the full store as JSONL (verbatim bytes, secrets included).
37
37
  - `/lcm report` — metrics summary for the current session.
38
+ - `/lcm dump` prints a read-only dump of the session sidecar. `--include-removed` keeps removed-branch rows and `--save <path>` writes the file at mode 0600.
38
39
  - `/lcm doctor` — diagnostics: store checks, thresholds, summarizer chain, footprint; `--repair` rebuilds the index and drops unreachable rows.
39
40
  - `/lcm gc` — dry-run list of retired stores; `--apply` exports then DELETEs them (destructive; export lands beside the stores).
40
41
  - `/lcm migrate` — dry-run list of older-schema stores; `--apply` upgrades them in place for cross-session search.
@@ -43,7 +44,7 @@ soft threshold (default 70% of the model window).
43
44
 
44
45
  ## Recall tools
45
46
 
46
- - `lcm_grep` — search ALL history, including compacted-out content. `query` is full-text over the token index (words, quoted phrases, `AND`/`OR`, prefixes; first 100,000 chars per message). `pattern` is a case-insensitive regex over full text (up to 200,000 chars per message, 1s cap per call) — use it for pointers, calls, punctuation, or spans the index cannot hold. Hits page 20 at a time via `offset`; `query` reports a total, `pattern` reports whether more exist. `summary_id` scopes to one node; `scope: "sessions"` / `"all_sessions"` reaches past sessions.
47
+ - `lcm_grep` searches ALL history, including compacted-out content. `query` is full-text over the token index (words, quoted phrases, `AND`/`OR`, prefixes; first 100,000 chars per message). `pattern` is a case-insensitive regex over full text (up to 200,000 chars per message, 1s cap per call). Use it for pointers, calls, punctuation, or spans the index cannot hold. Hits page 20 at a time via `offset`; `query` reports a total, `pattern` reports whether more exist. `summary_id` scopes to one node; `scope: "sessions"` / `"all_sessions"` reaches past sessions. `role` keeps only rows stored with that role, `date_start` and `date_end` bound rows by timestamp, and `tool_name` keeps only tool-result rows for that tool.
47
48
  - `lcm_describe` — inspect a summary: what reading its originals would cost and which files it covers.
48
49
  - `lcm_expand_query` — bounded reader over stored originals; returns findings without that text entering the main conversation. Default budget 10,000 tokens over at most 6 reader turns; `max_tokens` changes the per-call budget. `summary_id` reads one node, `entry_id` one message. Cross-session: `lcm_expand_query({ session: "<hash>", entry_id: "<id>" })` on a grep hit; findings are tagged as past-session history. Unknown ids are refused before any model call.
49
50