pi-observational-memory 3.0.1 → 3.0.2

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
@@ -263,12 +263,12 @@ For details and tuning guidance, see [`docs/configuration.md`](docs/configuratio
263
263
 
264
264
  | Surface | What it does |
265
265
  | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
266
- | `/om-status` | Shows memory counts, plain `+N` / `-N` visible/full drift suffixes, progress clocks, visible and active observation pool pressure, passive/in-flight state, and last worker errors. |
267
- | `/om-view` | Shows current visible memory and attempts to copy the rendered memory text to the clipboard. |
268
- | `/om-view full` | Shows the full current memory state for the branch and attempts to copy the rendered memory text to the clipboard. |
266
+ | `/om:status` | Shows memory counts, plain `+N` / `-N` visible/full drift suffixes, progress clocks, visible and active observation pool pressure, passive/in-flight state, and last worker errors. |
267
+ | `/om:view` | Shows current visible memory and attempts to copy the rendered memory text to the clipboard. |
268
+ | `/om:view full` | Shows the full current memory state for the branch and attempts to copy the rendered memory text to the clipboard. |
269
269
  | `recall` agent tool | Recovers source evidence for a 12-character observation/reflection id on the current branch. It is not semantic search or a transcript browser. |
270
270
 
271
- `/om-view` copies only the rendered memory content. The success/failure line shown in Pi is not included in the clipboard text. If clipboard support is unavailable, the command still prints the memory view and shows a warning. Before the first V3 compaction, visible memory can be empty because nothing has been folded into `om.folded` details; use `/om-view full` to inspect recorded branch memory.
271
+ `/om:view` copies only the rendered memory content. The success/failure line shown in Pi is not included in the clipboard text. If clipboard support is unavailable, the command still prints the memory view and shows a warning. Before the first V3 compaction, visible memory can be empty because nothing has been folded into `om.folded` details; use `/om:view full` to inspect recorded branch memory.
272
272
 
273
273
  ---
274
274
 
@@ -310,7 +310,7 @@ Current behavior:
310
310
  * **Fast compaction.** `session_before_compact` does not call a model or wait for background workers. It renders the current prepared memory state.
311
311
  * **Background memory work.** Observation and reflection work run from `turn_end` when their token clocks are due; dropper work runs only after successful reflection and prunes the folded active observation ledger toward `observationsPoolTargetTokens`.
312
312
  * **Source-backed recall.** Observations and reflections can be traced back through the `recall` tool.
313
- * **Visible/full views.** `/om-view` shows visible memory and `/om-view full` shows the full current memory state. Use `/om-status` for visible-vs-full drift and for the separate visible observation pool vs active observation pool.
313
+ * **Visible/full views.** `/om:view` shows visible memory and `/om:view full` shows the full current memory state. Use `/om:status` for visible-vs-full drift and for the separate visible observation pool vs active observation pool.
314
314
  * **No V2 compatibility layer.** Old V2 settings and memory entries are ignored rather than migrated.
315
315
 
316
316
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-observational-memory",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Observational memory extension for pi — cache-friendly tiered compaction with observations and reflections.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@ import {
13
13
  } from "../session-ledger/index.js";
14
14
 
15
15
  function pct(current: number, total: number): number {
16
- return total > 0 ? Math.min(100, Math.round((current / total) * 100)) : 0;
16
+ return total > 0 ? Math.round((current / total) * 100) : 0;
17
17
  }
18
18
 
19
19
  function tokenSum(items: { tokenCount: number }[]): number {
@@ -34,7 +34,7 @@ function appendSuffixes(line: string, suffixes: (string | undefined)[]): string
34
34
  }
35
35
 
36
36
  export function registerStatusCommand(pi: ExtensionAPI, runtime: Runtime): void {
37
- pi.registerCommand("om-status", {
37
+ pi.registerCommand("om:status", {
38
38
  description: "Show observational memory status",
39
39
  handler: async (_args, ctx) => {
40
40
  runtime.ensureConfig(ctx.cwd);
@@ -41,7 +41,7 @@ interface ViewCommandOptions {
41
41
  export function registerViewCommand(pi: ExtensionAPI, runtime: Runtime, options: ViewCommandOptions = {}): void {
42
42
  const copyToClipboard = options.copyToClipboard ?? copyTextToClipboard;
43
43
 
44
- pi.registerCommand("om-view", {
44
+ pi.registerCommand("om:view", {
45
45
  description: "Print and copy observational memory content (visible by default, full for recorded memory)",
46
46
  handler: async (args, ctx) => {
47
47
  runtime.ensureConfig(ctx.cwd);
@@ -52,8 +52,8 @@ export function registerViewCommand(pi: ExtensionAPI, runtime: Runtime, options:
52
52
  const copied = await copyToClipboard(output).catch(() => false);
53
53
  ctx.ui.notify(
54
54
  copied
55
- ? `${output}\n\nCopied /om-view output to clipboard.`
56
- : `${output}\n\nWarning: failed to copy /om-view output to clipboard.`,
55
+ ? `${output}\n\nCopied /om:view output to clipboard.`
56
+ : `${output}\n\nWarning: failed to copy /om:view output to clipboard.`,
57
57
  "info",
58
58
  );
59
59
  };
@@ -64,7 +64,7 @@ export function registerViewCommand(pi: ExtensionAPI, runtime: Runtime, options:
64
64
  }
65
65
 
66
66
  if (mode && mode !== "visible") {
67
- ctx.ui.notify("Usage: /om-view [full]", "info");
67
+ ctx.ui.notify("Usage: /om:view [full]", "info");
68
68
  return;
69
69
  }
70
70
 
@@ -453,7 +453,7 @@ export const recallObservationTool = defineTool({
453
453
  parameters: Type.Object({
454
454
  id: Type.String({
455
455
  pattern: "^[a-f0-9]{12}$",
456
- description: "12-character lowercase hex observation or reflection id shown in compacted memory, /om-view, or a previous recall result. Must be a specific id; this tool does not search by topic.",
456
+ description: "12-character lowercase hex observation or reflection id shown in compacted memory, /om:view, or a previous recall result. Must be a specific id; this tool does not search by topic.",
457
457
  }),
458
458
  }),
459
459
  renderCall(args) {