omp-vcc 0.1.9 → 0.1.10
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 # 788 tests, 60 files, 2363 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
|
@@ -94,11 +94,9 @@ export default function (pi: ExtensionAPI): void {
|
|
|
94
94
|
|
|
95
95
|
const q = p.query?.trim();
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return { content: [{ type: "text", text: "Invalid entry ref query." }], details: undefined };
|
|
101
|
-
}
|
|
97
|
+
const entryRef = q ? parseEntryRef(q) : null;
|
|
98
|
+
if (entryRef) {
|
|
99
|
+
const ref = entryRef;
|
|
102
100
|
if (lineageEntryIds) {
|
|
103
101
|
const { rendered } = loadAllMessages(sessionFile, false, lineageEntryIds);
|
|
104
102
|
const exists = rendered.some((m) => m.index === ref.index);
|
|
@@ -113,11 +111,9 @@ export default function (pi: ExtensionAPI): void {
|
|
|
113
111
|
return { content: [{ type: "text", text }], details: undefined };
|
|
114
112
|
}
|
|
115
113
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return { content: [{ type: "text", text: "Invalid drill-down query." }], details: undefined };
|
|
120
|
-
}
|
|
114
|
+
const drill = q ? parseDrillDown(q) : null;
|
|
115
|
+
if (drill) {
|
|
116
|
+
const parsed = drill;
|
|
121
117
|
if (lineageEntryIds) {
|
|
122
118
|
const { rendered } = loadAllMessages(sessionFile, false, lineageEntryIds);
|
|
123
119
|
const exists = rendered.some((m) => m.index === parsed.index);
|
|
@@ -84,7 +84,7 @@ export function migrateStalePluginEntries(home?: string): string {
|
|
|
84
84
|
if (k.startsWith("@")) {
|
|
85
85
|
const scopeDir = join(nm, k.split("/")[0]!);
|
|
86
86
|
try {
|
|
87
|
-
|
|
87
|
+
if (fsSync.readdirSync(scopeDir).length === 0) fsSync.rmSync(scopeDir, { force: true, recursive: true });
|
|
88
88
|
} catch {}
|
|
89
89
|
}
|
|
90
90
|
} catch {}
|
|
@@ -119,7 +119,7 @@ export function migrateStalePluginEntries(home?: string): string {
|
|
|
119
119
|
if (k.startsWith("@")) {
|
|
120
120
|
const scopeDir = join(nm, k.split("/")[0]!);
|
|
121
121
|
try {
|
|
122
|
-
if (fsSync.readdirSync(scopeDir).length === 0) fsSync.rmSync(scopeDir, { force: true });
|
|
122
|
+
if (fsSync.readdirSync(scopeDir).length === 0) fsSync.rmSync(scopeDir, { force: true, recursive: true });
|
|
123
123
|
} catch {}
|
|
124
124
|
}
|
|
125
125
|
} catch {}
|
|
@@ -145,7 +145,7 @@ export function migrateStalePluginEntries(home?: string): string {
|
|
|
145
145
|
if (cand.startsWith("@")) {
|
|
146
146
|
const scopeDir = join(nm, cand.split("/")[0]!);
|
|
147
147
|
try {
|
|
148
|
-
|
|
148
|
+
if (fsSync.readdirSync(scopeDir).length === 0) fsSync.rmSync(scopeDir, { force: true, recursive: true });
|
|
149
149
|
} catch {}
|
|
150
150
|
}
|
|
151
151
|
} catch {}
|
|
@@ -162,20 +162,6 @@ export const triggerInvisibleContinue = (pi: ExtensionAPI): void => {
|
|
|
162
162
|
);
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
const clearPendingAutoContinue = () => {
|
|
166
|
-
clearTimeout(pendingAutoContinueTimer as any);
|
|
167
|
-
pendingAutoContinueTimer = null;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
const scheduleAutoContinue = (pi: any) => {
|
|
171
|
-
clearPendingAutoContinue();
|
|
172
|
-
pendingAutoContinueTimer = setTimeout(() => {
|
|
173
|
-
pendingAutoContinueTimer = null;
|
|
174
|
-
try {
|
|
175
|
-
triggerInvisibleContinue(pi);
|
|
176
|
-
} catch {}
|
|
177
|
-
}, 0);
|
|
178
|
-
};
|
|
179
165
|
|
|
180
166
|
export const getLastCompactionStats = (pi?: any) => {
|
|
181
167
|
if (pi) {
|