@narumitw/pi-context-management 0.1.0 → 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,27 @@
1
+ # @narumitw/pi-context-management
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e484010: Include the existing package-root CHANGELOG.md in extension tarballs so Pi can show native update notices. Keep Changesets version headings and Pi's first-observation and collapseChangelog behavior unchanged.
8
+ - 5120d4d: Preserve TypeBox enum inference for direct imports and Pi's extension loader without changing provider-visible schemas or validation rules. Import Notes schemas from TypeBox, declare its host-provided peer, and complete Worktree's command result contract for the updated Pi APIs.
9
+ - Updated dependencies [54f2700]
10
+ - Updated dependencies [6c76ef1]
11
+ - @narumitw/pi-tui-kit@0.69.0
12
+
13
+ ## 0.1.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 8abd5b7: Keep generated extension runtime graphs inside Pi's Jiti-loaded TypeScript path to avoid duplicate peer-runtime evaluation during startup. Add measured generated runtimes for Context Management, Herdr, and TypeSafe Search.
18
+
19
+ ## 0.1.0
20
+
21
+ ### Minor Changes
22
+
23
+ - f3e18ce: Add an opt-in standalone extension for summary-free context rollover, bounded history recall, and branch-local notes.
24
+
25
+ ### Patch Changes
26
+
27
+ - 827ca96: Bound recalled compaction details as one operation, avoid rescanning history before the first page, and restore tools after a successful lineage retry.
package/README.md CHANGED
@@ -31,13 +31,14 @@ Try the published package without installing:
31
31
  pi -e npm:@narumitw/pi-context-management
32
32
  ```
33
33
 
34
- Try a local checkout from the repository root:
34
+ Build and try a local checkout from the repository root:
35
35
 
36
36
  ```bash
37
+ npm --workspace @narumitw/pi-context-management run build
37
38
  pi -e ./packages/pi-context-management
38
39
  ```
39
40
 
40
- The package loads its TypeScript source directly and does not require a build step.
41
+ An unbuilt local checkout has no generated entrypoint and cannot be loaded by package directory.
41
42
  Do not load a global npm installation and the local workspace at the same time.
42
43
  Pi extensions run with your user permissions; review third-party extension source before installing it.
43
44
 
@@ -132,12 +133,14 @@ The extension does not read provider credentials or request headers and makes no
132
133
  ```text
133
134
  packages/pi-context-management/
134
135
  ├── src/ # Authoritative extension, tools, state, settings, and UI
135
- │ └── index.ts # Thin Pi entrypoint
136
+ │ └── index.ts # Thin repository entrypoint
137
+ ├── dist/ # Generated TypeScript runtime loaded by Pi
138
+ ├── scripts/ # Deterministic runtime builder
136
139
  ├── docs/ # Detailed operating guide
137
140
  └── test/ # Lifecycle, persistence, loader, and real-runtime coverage
138
141
  ```
139
142
 
140
- The published entrypoint is `src/index.ts` and the package has no generated runtime.
143
+ The published package loads `dist/index.ts`; `src/index.ts` remains the authoritative repository entrypoint.
141
144
 
142
145
  ## 🔎 Keywords
143
146
 
@@ -0,0 +1,15 @@
1
+ // @generated by scripts/build-runtime.mjs; do not edit.
2
+ // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
+
4
+ // src/terminal.ts
5
+ function terminalText(value) {
6
+ return Array.from(value, (character) => {
7
+ const codePoint = character.codePointAt(0) ?? 0;
8
+ return codePoint < 32 || codePoint >= 127 && codePoint <= 159 ? " " : character;
9
+ }).join("");
10
+ }
11
+
12
+ export {
13
+ terminalText
14
+ };
15
+ //# sourceMappingURL=chunk-K6TRB5OJ.ts.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/terminal.ts"],
4
+ "sourcesContent": ["export function terminalText(value: string): string {\n return Array.from(value, (character) => {\n const codePoint = character.codePointAt(0) ?? 0;\n return codePoint < 32 || (codePoint >= 127 && codePoint <= 159) ? \" \" : character;\n }).join(\"\");\n}\n"],
5
+ "mappings": ";;;;AAAO,SAAS,aAAa,OAAuB;AAClD,SAAO,MAAM,KAAK,OAAO,CAAC,cAAc;AACtC,UAAM,YAAY,UAAU,YAAY,CAAC,KAAK;AAC9C,WAAO,YAAY,MAAO,aAAa,OAAO,aAAa,MAAO,MAAM;AAAA,EAC1E,CAAC,EAAE,KAAK,EAAE;AACZ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,157 @@
1
+ // @generated by scripts/build-runtime.mjs; do not edit.
2
+ // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
+ import {
4
+ terminalText
5
+ } from "./chunk-K6TRB5OJ.ts";
6
+
7
+ // src/settings-menu.ts
8
+ var settingsChangeQueues = /* @__PURE__ */ new WeakMap();
9
+ function enqueueSettingsChange(runtime, operation) {
10
+ const queued = settingsChangeQueues.get(runtime) ?? Promise.resolve();
11
+ const result = queued.then(operation, operation);
12
+ settingsChangeQueues.set(
13
+ runtime,
14
+ result.then(
15
+ () => void 0,
16
+ () => void 0
17
+ )
18
+ );
19
+ return result;
20
+ }
21
+ async function updateEnabled(runtime, ctx, enabled, signal, onSettingsChanged) {
22
+ return enqueueSettingsChange(runtime, async () => {
23
+ const previous = runtime.get().settings.enabled;
24
+ try {
25
+ await runtime.update({ enabled }, signal);
26
+ } catch (error) {
27
+ if (signal.aborted) return { kind: "rejected" };
28
+ ctx.ui.notify(
29
+ `Could not save pi-context-management.json: ${terminalText(error instanceof Error ? error.message : String(error))}`,
30
+ "error"
31
+ );
32
+ return { kind: "rejected" };
33
+ }
34
+ try {
35
+ await onSettingsChanged();
36
+ } catch (error) {
37
+ let rollbackError;
38
+ try {
39
+ await runtime.update({ enabled: previous });
40
+ await onSettingsChanged();
41
+ } catch (recoveryError) {
42
+ rollbackError = recoveryError;
43
+ }
44
+ if (signal.aborted) return { kind: "rejected" };
45
+ const failure = terminalText(error instanceof Error ? error.message : String(error));
46
+ const recovery = rollbackError ? ` The previous setting could not be fully restored: ${terminalText(rollbackError instanceof Error ? rollbackError.message : String(rollbackError))}` : " The previous setting was restored.";
47
+ ctx.ui.notify(`Could not apply experimental context management: ${failure}.${recovery}`, "error");
48
+ return { kind: "rejected" };
49
+ }
50
+ if (signal.aborted) return { kind: "rejected" };
51
+ ctx.ui.notify("Context management settings saved.", "info");
52
+ return { kind: "stay" };
53
+ });
54
+ }
55
+ function createContextManagementMenu(runtime, options = {}) {
56
+ return {
57
+ start: "main",
58
+ screens: {
59
+ main: ({ state }) => ({
60
+ kind: "actions",
61
+ title: "Experimental Context Management",
62
+ lines: [
63
+ `Configured: ${state.settings.enabled ? "On" : "Off"}`,
64
+ `Runtime: ${options.isActive?.() ? "Active" : state.settings.enabled ? "Unavailable" : "Inactive"}`
65
+ ],
66
+ items: [
67
+ state.kind === "invalid" ? {
68
+ id: "settings",
69
+ label: "Settings",
70
+ description: "Read-only until the invalid settings file is repaired.",
71
+ to: "invalid"
72
+ } : { id: "settings", label: "Settings", to: "settings" },
73
+ { id: "status", label: "Status", to: "status" },
74
+ { id: "help", label: "Help", to: "help" },
75
+ { id: "close", label: "Close", close: true }
76
+ ],
77
+ hint: "close"
78
+ }),
79
+ settings: ({ state }) => ({
80
+ kind: "settings",
81
+ title: "Context Management Settings",
82
+ lines: [`User settings \xB7 ${terminalText(state.path)}`],
83
+ items: [
84
+ {
85
+ id: "enabled",
86
+ label: "Experimental context management",
87
+ description: "Use summary-free local rollover and four branch-local context tools.",
88
+ currentValue: state.settings.enabled ? "On" : "Off",
89
+ values: ["On", "Off"],
90
+ action: "set-enabled"
91
+ }
92
+ ]
93
+ }),
94
+ status: ({ state }) => ({
95
+ kind: "detail",
96
+ title: "Context Management Status",
97
+ lines: [
98
+ `Configured: ${state.settings.enabled ? "On" : "Off"}`,
99
+ `Runtime: ${options.isActive?.() ? "Active" : state.settings.enabled ? "Unavailable" : "Inactive"}`,
100
+ `Settings: ${terminalText(state.path)}`
101
+ ],
102
+ hint: "back"
103
+ }),
104
+ help: () => ({
105
+ kind: "detail",
106
+ title: "Context Management Help",
107
+ lines: [
108
+ "This experimental extension starts summary-free context windows and exposes bounded history and note tools.",
109
+ "Save important information in notes before starting a new context.",
110
+ "Disabling the extension restores Pi-native compaction after the active run settles."
111
+ ],
112
+ hint: "back"
113
+ }),
114
+ invalid: ({ state }) => ({
115
+ kind: "detail",
116
+ title: "Context Management Settings \xB7 Read only",
117
+ lines: [
118
+ `Invalid settings file: ${terminalText(state.path)}`,
119
+ `Issue: ${terminalText(state.issue ?? "unknown validation error")}`,
120
+ "Built-in defaults are active. Repair the file and run /reload; it will not be overwritten."
121
+ ],
122
+ hint: "back"
123
+ })
124
+ },
125
+ actions: {
126
+ "set-enabled": ({ ctx, value, signal }) => updateEnabled(runtime, ctx, value === "On", signal, options.onSettingsChanged ?? (() => void 0))
127
+ }
128
+ };
129
+ }
130
+ async function showContextManagementMenu(runtime, ctx, owner) {
131
+ if (ctx.mode === "rpc" && ctx.hasUI) {
132
+ ctx.ui.notify(`Edit experimental context management settings at ${terminalText(runtime.get().path)}.`, "info");
133
+ return;
134
+ }
135
+ if (ctx.mode !== "tui") {
136
+ throw new Error("/context-management requires TUI or RPC UI support");
137
+ }
138
+ const { runMenu } = await import("@narumitw/pi-tui-kit");
139
+ if (owner.signal.aborted || !owner.isCurrent()) return;
140
+ await runMenu(
141
+ ctx,
142
+ createContextManagementMenu(runtime, {
143
+ isActive: owner.isActive,
144
+ onSettingsChanged: owner.onSettingsChanged
145
+ }),
146
+ {
147
+ getState: () => runtime.get(),
148
+ signal: owner.signal,
149
+ isCurrent: owner.isCurrent
150
+ }
151
+ );
152
+ }
153
+ export {
154
+ createContextManagementMenu,
155
+ showContextManagementMenu
156
+ };
157
+ //# sourceMappingURL=settings-menu-WBYIMN23.ts.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/settings-menu.ts"],
4
+ "sourcesContent": ["import type { ExtensionCommandContext } from \"@earendil-works/pi-coding-agent\";\nimport type { MenuDefinition } from \"@narumitw/pi-tui-kit\";\nimport type { ContextManagementSettingsRuntime, ContextManagementSettingsState } from \"./settings.js\";\nimport { terminalText as safeText } from \"./terminal.js\";\n\ntype Screen = \"main\" | \"settings\" | \"status\" | \"help\" | \"invalid\";\ntype Action = \"set-enabled\";\n\nexport interface ContextManagementMenuOwner {\n signal: AbortSignal;\n isCurrent(): boolean;\n isActive(): boolean;\n onSettingsChanged(): void | Promise<void>;\n}\n\nconst settingsChangeQueues = new WeakMap<ContextManagementSettingsRuntime, Promise<void>>();\n\nfunction enqueueSettingsChange<T>(runtime: ContextManagementSettingsRuntime, operation: () => Promise<T>): Promise<T> {\n const queued = settingsChangeQueues.get(runtime) ?? Promise.resolve();\n const result = queued.then(operation, operation);\n settingsChangeQueues.set(\n runtime,\n result.then(\n () => undefined,\n () => undefined,\n ),\n );\n return result;\n}\n\nasync function updateEnabled(\n runtime: ContextManagementSettingsRuntime,\n ctx: ExtensionCommandContext,\n enabled: boolean,\n signal: AbortSignal,\n onSettingsChanged: () => void | Promise<void>,\n) {\n return enqueueSettingsChange(runtime, async () => {\n const previous = runtime.get().settings.enabled;\n try {\n await runtime.update({ enabled }, signal);\n } catch (error) {\n if (signal.aborted) return { kind: \"rejected\" as const };\n ctx.ui.notify(\n `Could not save pi-context-management.json: ${safeText(error instanceof Error ? error.message : String(error))}`,\n \"error\",\n );\n return { kind: \"rejected\" as const };\n }\n try {\n // A completed save remains committed even if menu cancellation races with reconciliation.\n await onSettingsChanged();\n } catch (error) {\n let rollbackError: unknown;\n try {\n await runtime.update({ enabled: previous });\n await onSettingsChanged();\n } catch (recoveryError) {\n rollbackError = recoveryError;\n }\n if (signal.aborted) return { kind: \"rejected\" as const };\n const failure = safeText(error instanceof Error ? error.message : String(error));\n const recovery = rollbackError\n ? ` The previous setting could not be fully restored: ${safeText(rollbackError instanceof Error ? rollbackError.message : String(rollbackError))}`\n : \" The previous setting was restored.\";\n ctx.ui.notify(`Could not apply experimental context management: ${failure}.${recovery}`, \"error\");\n return { kind: \"rejected\" as const };\n }\n if (signal.aborted) return { kind: \"rejected\" as const };\n ctx.ui.notify(\"Context management settings saved.\", \"info\");\n return { kind: \"stay\" as const };\n });\n}\n\nexport function createContextManagementMenu(\n runtime: ContextManagementSettingsRuntime,\n options: {\n isActive?: () => boolean;\n onSettingsChanged?: () => void | Promise<void>;\n } = {},\n): MenuDefinition<ContextManagementSettingsState, Screen, Action, ExtensionCommandContext> {\n return {\n start: \"main\",\n screens: {\n main: ({ state }) => ({\n kind: \"actions\",\n title: \"Experimental Context Management\",\n lines: [\n `Configured: ${state.settings.enabled ? \"On\" : \"Off\"}`,\n `Runtime: ${options.isActive?.() ? \"Active\" : state.settings.enabled ? \"Unavailable\" : \"Inactive\"}`,\n ],\n items: [\n state.kind === \"invalid\"\n ? {\n id: \"settings\",\n label: \"Settings\",\n description: \"Read-only until the invalid settings file is repaired.\",\n to: \"invalid\" as const,\n }\n : { id: \"settings\", label: \"Settings\", to: \"settings\" as const },\n { id: \"status\", label: \"Status\", to: \"status\" as const },\n { id: \"help\", label: \"Help\", to: \"help\" as const },\n { id: \"close\", label: \"Close\", close: true },\n ],\n hint: \"close\",\n }),\n settings: ({ state }) => ({\n kind: \"settings\",\n title: \"Context Management Settings\",\n lines: [`User settings \u00B7 ${safeText(state.path)}`],\n items: [\n {\n id: \"enabled\",\n label: \"Experimental context management\",\n description: \"Use summary-free local rollover and four branch-local context tools.\",\n currentValue: state.settings.enabled ? \"On\" : \"Off\",\n values: [\"On\", \"Off\"],\n action: \"set-enabled\",\n },\n ],\n }),\n status: ({ state }) => ({\n kind: \"detail\",\n title: \"Context Management Status\",\n lines: [\n `Configured: ${state.settings.enabled ? \"On\" : \"Off\"}`,\n `Runtime: ${options.isActive?.() ? \"Active\" : state.settings.enabled ? \"Unavailable\" : \"Inactive\"}`,\n `Settings: ${safeText(state.path)}`,\n ],\n hint: \"back\",\n }),\n help: () => ({\n kind: \"detail\",\n title: \"Context Management Help\",\n lines: [\n \"This experimental extension starts summary-free context windows and exposes bounded history and note tools.\",\n \"Save important information in notes before starting a new context.\",\n \"Disabling the extension restores Pi-native compaction after the active run settles.\",\n ],\n hint: \"back\",\n }),\n invalid: ({ state }) => ({\n kind: \"detail\",\n title: \"Context Management Settings \u00B7 Read only\",\n lines: [\n `Invalid settings file: ${safeText(state.path)}`,\n `Issue: ${safeText(state.issue ?? \"unknown validation error\")}`,\n \"Built-in defaults are active. Repair the file and run /reload; it will not be overwritten.\",\n ],\n hint: \"back\",\n }),\n },\n actions: {\n \"set-enabled\": ({ ctx, value, signal }) =>\n updateEnabled(runtime, ctx, value === \"On\", signal, options.onSettingsChanged ?? (() => undefined)),\n },\n };\n}\n\nexport async function showContextManagementMenu(\n runtime: ContextManagementSettingsRuntime,\n ctx: ExtensionCommandContext,\n owner: ContextManagementMenuOwner,\n): Promise<void> {\n if (ctx.mode === \"rpc\" && ctx.hasUI) {\n ctx.ui.notify(`Edit experimental context management settings at ${safeText(runtime.get().path)}.`, \"info\");\n return;\n }\n if (ctx.mode !== \"tui\") {\n throw new Error(\"/context-management requires TUI or RPC UI support\");\n }\n const { runMenu } = await import(\"@narumitw/pi-tui-kit\");\n if (owner.signal.aborted || !owner.isCurrent()) return;\n await runMenu(\n ctx,\n createContextManagementMenu(runtime, {\n isActive: owner.isActive,\n onSettingsChanged: owner.onSettingsChanged,\n }),\n {\n getState: () => runtime.get(),\n signal: owner.signal,\n isCurrent: owner.isCurrent,\n },\n );\n}\n"],
5
+ "mappings": ";;;;;;;AAeA,IAAM,uBAAuB,oBAAI,QAAyD;AAE1F,SAAS,sBAAyB,SAA2C,WAAyC;AACpH,QAAM,SAAS,qBAAqB,IAAI,OAAO,KAAK,QAAQ,QAAQ;AACpE,QAAM,SAAS,OAAO,KAAK,WAAW,SAAS;AAC/C,uBAAqB;AAAA,IACnB;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AACA,SAAO;AACT;AAEA,eAAe,cACb,SACA,KACA,SACA,QACA,mBACA;AACA,SAAO,sBAAsB,SAAS,YAAY;AAChD,UAAM,WAAW,QAAQ,IAAI,EAAE,SAAS;AACxC,QAAI;AACF,YAAM,QAAQ,OAAO,EAAE,QAAQ,GAAG,MAAM;AAAA,IAC1C,SAAS,OAAO;AACd,UAAI,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