omp-vcc 0.1.10 → 0.1.11
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
|
@@ -90,7 +90,7 @@ Additive VCC+shake is automatic. Eager chain: `chainShakeHint:true`. Explicit mo
|
|
|
90
90
|
|
|
91
91
|
```sh
|
|
92
92
|
bunx tsc --noEmit
|
|
93
|
-
bun test #
|
|
93
|
+
bun test # 800 tests, 61 files, 2396 expects, 0 fail
|
|
94
94
|
bun test tests/e2e --timeout 120000 # 124 E2E
|
|
95
95
|
bun run smoke # 13 checks: 3 hooks + 6 cmds + 2 tools + dedup (+ pipeline)
|
|
96
96
|
omp plugin link . && omp plugin doctor
|
package/extensions/main.ts
CHANGED
|
@@ -244,11 +244,9 @@ export default function (pi: ExtensionAPI): void {
|
|
|
244
244
|
}
|
|
245
245
|
} catch (err: unknown) {
|
|
246
246
|
const msg = err instanceof Error ? err.message : String(err);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
try { c.ui.notify(`Compaction failed: ${msg}`, "error"); } catch {}
|
|
251
|
-
}
|
|
247
|
+
const cancelled = msg === "Compaction cancelled" || msg === "Already compacted";
|
|
248
|
+
const note = cancelled ? "Nothing to compact" : `Compaction failed: ${msg}`;
|
|
249
|
+
try { c.ui.notify(note, cancelled ? "warning" : "error"); } catch {}
|
|
252
250
|
}
|
|
253
251
|
},
|
|
254
252
|
});
|
|
@@ -204,13 +204,12 @@ export function parseDrillDown(query: string): {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
if (suffix !== undefined) {
|
|
207
|
-
// Parse "offset" or "offset:limit"
|
|
207
|
+
// Parse "offset" or "offset:limit". The pattern above admits only
|
|
208
|
+
// numeric suffixes, so offset always parses here.
|
|
208
209
|
const parts = suffix.split(":");
|
|
209
210
|
const offset = parseInt(parts[0], 10);
|
|
210
211
|
const limit = parts[1] !== undefined ? parseInt(parts[1], 10) : undefined;
|
|
211
|
-
|
|
212
|
-
return { index, pathPattern, full: false, offset, limit };
|
|
213
|
-
}
|
|
212
|
+
return { index, pathPattern, full: false, offset, limit };
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
return {
|
|
@@ -126,11 +126,9 @@ const mergeFileLines = (prev: string, fresh: string): string => {
|
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
128
|
const grouped = /^ \(\+(\d+) more( under (.+?))?\): (.*)$/.exec(tail);
|
|
129
|
-
if (grouped)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
return null;
|
|
129
|
+
if (!grouped) return null;
|
|
130
|
+
const dir = grouped[3] ?? "";
|
|
131
|
+
return { prefix: dir && !dir.endsWith("/") ? `${dir}/` : dir, rest: grouped[4] };
|
|
134
132
|
};
|
|
135
133
|
for (const text of [prev, fresh]) {
|
|
136
134
|
let current: { cat: string; prefix: string; rest: string } | null = null;
|
|
@@ -32,8 +32,8 @@ try {
|
|
|
32
32
|
|
|
33
33
|
export { PI_VCC_COMPACT_INSTRUCTION } from "./core/compact-args";
|
|
34
34
|
export const OMP_VCC_COMPACT_INSTRUCTION = "__omp_vcc__";
|
|
35
|
-
//
|
|
36
|
-
|
|
35
|
+
// (Both pi/omp sentinels are matched inline at the explicit-mode bypass in
|
|
36
|
+
// the session_before_compact handler below.)
|
|
37
37
|
|
|
38
38
|
export interface CompactionStats {
|
|
39
39
|
summarized: number;
|
|
@@ -1294,11 +1294,9 @@ export const registerPiVccCommand = (pi: any) => {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
},
|
|
1296
1296
|
onError: (err) => {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
ctx.ui.notify(`Compaction failed: ${err.message}`, "error");
|
|
1301
|
-
}
|
|
1297
|
+
const cancelled = err.message === "Compaction cancelled" || err.message === "Already compacted";
|
|
1298
|
+
const msg = cancelled ? "Nothing to compact" : `Compaction failed: ${err.message}`;
|
|
1299
|
+
ctx.ui.notify(msg, cancelled ? "warning" : "error");
|
|
1302
1300
|
},
|
|
1303
1301
|
});
|
|
1304
1302
|
},
|