omp-vcc 0.1.12 → 0.1.14

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": "omp-vcc",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "description": "Algorithmic VCC compaction for omp - fast lossless no-LLM",
6
6
  "author": "Zhu Lin <zhulin@czl.my>",
@@ -64,6 +64,44 @@
64
64
  "type": "boolean",
65
65
  "default": false,
66
66
  "description": "Eager post-VCC shake chain (host rescue is automatic; this forces a second shake even when VCC created headroom)"
67
+ },
68
+ "compactionSummaryMode": {
69
+ "type": "enum",
70
+ "values": [
71
+ "rewrite",
72
+ "append"
73
+ ],
74
+ "default": "append",
75
+ "description": "Use append-only compaction segments with a complete host fallback summary"
76
+ },
77
+ "retainedToolOutputMaxTokens": {
78
+ "type": "number",
79
+ "min": 0,
80
+ "max": 200000,
81
+ "default": 20000,
82
+ "description": "Retained provider-visible tool-output tokens; 0 disables projection"
83
+ },
84
+ "showPreCompactionMessage": {
85
+ "type": "boolean",
86
+ "default": true,
87
+ "description": "Show the newest dropped assistant output after compaction"
88
+ },
89
+ "recallResponseMaxChars": {
90
+ "type": "number",
91
+ "min": 0,
92
+ "max": 2000000,
93
+ "default": 48000,
94
+ "description": "Maximum model-facing recall response characters; 0 disables the cap"
95
+ },
96
+ "nativeMemory": {
97
+ "type": "boolean",
98
+ "default": true,
99
+ "description": "Query oh-my-pi's public native memory backend during compaction"
100
+ },
101
+ "debugLog": {
102
+ "type": "boolean",
103
+ "default": false,
104
+ "description": "Write bounded rotating compaction metrics JSONL"
67
105
  }
68
106
  }
69
107
  },
@@ -102,6 +140,44 @@
102
140
  "type": "boolean",
103
141
  "default": false,
104
142
  "description": "Eager post-VCC shake chain (host rescue is automatic; this forces a second shake even when VCC created headroom)"
143
+ },
144
+ "compactionSummaryMode": {
145
+ "type": "enum",
146
+ "values": [
147
+ "rewrite",
148
+ "append"
149
+ ],
150
+ "default": "append",
151
+ "description": "Use append-only compaction segments with a complete host fallback summary"
152
+ },
153
+ "retainedToolOutputMaxTokens": {
154
+ "type": "number",
155
+ "min": 0,
156
+ "max": 200000,
157
+ "default": 20000,
158
+ "description": "Retained provider-visible tool-output tokens; 0 disables projection"
159
+ },
160
+ "showPreCompactionMessage": {
161
+ "type": "boolean",
162
+ "default": true,
163
+ "description": "Show the newest dropped assistant output after compaction"
164
+ },
165
+ "recallResponseMaxChars": {
166
+ "type": "number",
167
+ "min": 0,
168
+ "max": 2000000,
169
+ "default": 48000,
170
+ "description": "Maximum model-facing recall response characters; 0 disables the cap"
171
+ },
172
+ "nativeMemory": {
173
+ "type": "boolean",
174
+ "default": true,
175
+ "description": "Query oh-my-pi's public native memory backend during compaction"
176
+ },
177
+ "debugLog": {
178
+ "type": "boolean",
179
+ "default": false,
180
+ "description": "Write bounded rotating compaction metrics JSONL"
105
181
  }
106
182
  }
107
183
  },
package/scripts/smoke.ts CHANGED
@@ -59,6 +59,14 @@ try {
59
59
  "vcc_stats registered",
60
60
  tools.some((t) => t.name === "vcc_stats"),
61
61
  );
62
+ check(
63
+ "vcc_recall schema has query/expand/page/scope/mode",
64
+ (() => {
65
+ const t = tools.find((t) => t.name === "vcc_recall");
66
+ const keys = t?.parameters ? Object.keys(t.parameters) : [];
67
+ return ["query", "expand", "page", "scope", "mode"].every((k) => keys.includes(k));
68
+ })(),
69
+ );
62
70
  check(
63
71
  "omp-vcc command registered",
64
72
  commands.some((c) => c.name === "omp-vcc"),
package/types.d.ts CHANGED
@@ -13,14 +13,22 @@ declare module "@oh-my-pi/pi-coding-agent" {
13
13
  getSessionFile(): string | undefined;
14
14
  getBranch(fromId?: string): any[];
15
15
  getEntries(): any[];
16
+ getSessionId?(): string | undefined;
16
17
  };
17
- compact(instructionsOrOptions?: string | any): Promise<void>;
18
+ model?: { contextWindow?: number; id?: string };
19
+ memory?: {
20
+ search(query: string, options?: { limit?: number; signal?: { aborted: boolean } }): Promise<unknown> | unknown;
21
+ };
22
+ setTimeout?: (callback: () => void, delay: number) => unknown;
23
+ clearTimer?: (timer: unknown) => void;
24
+ getSystemPrompt?: () => unknown;
25
+ compact(instructionsOrOptions?: string | any): Promise<void> | void;
18
26
  sendMessage?: any;
19
27
  sendUserMessage?: any;
20
28
  [key: string]: unknown;
21
29
  }
22
30
  export interface ExtensionCommandContext extends ExtensionContext {
23
- compact(instructionsOrOptions?: string | any): Promise<void>;
31
+ compact(instructionsOrOptions?: string | any): Promise<void> | void;
24
32
  }
25
33
  export interface ExtensionAPI {
26
34
  registerTool(tool: unknown): void;