mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-10-26 10:45:22 +00:00
feat: unify context compaction
This commit is contained in:
@@ -46,16 +46,25 @@ test("all package extensions load together without global registration conflicts
|
||||
packageJson.pi.extensions.includes("./pi-extension-codex-fast-mode/index.ts"),
|
||||
"the bundle must load the locally maintained Codex Fast mode extension",
|
||||
);
|
||||
assert.equal(packageJson.dependencies["pi-condense"], "file:./pi-condense");
|
||||
assert.ok(packageJson.files.includes("pi-condense"), "the packed bundle must include maintained pi-condense source");
|
||||
assert.equal(packageJson.dependencies["pi-compaction"], "file:./pi-compaction");
|
||||
assert.ok(packageJson.files.includes("pi-compaction"), "the packed bundle must include maintained pi-compaction source");
|
||||
assert.ok(
|
||||
packageJson.pi.extensions.includes("./pi-condense/index.ts"),
|
||||
"the bundle must load maintained pi-condense directly",
|
||||
packageJson.pi.extensions.includes("./pi-compaction/index.ts"),
|
||||
"the bundle must load the unified pi-compaction authority",
|
||||
);
|
||||
assert.equal(
|
||||
packageJson.pi.extensions.includes("./extensions/condense.ts"),
|
||||
false,
|
||||
"the removed config-injection wrapper must not be loaded in parallel",
|
||||
assert.equal(packageJson.dependencies["pi-condense"], undefined);
|
||||
assert.equal(packageJson.dependencies["@ogulcancelik/pi-codex-compaction"], undefined);
|
||||
assert.equal(packageJson.dependencies["pi-context-view"], undefined);
|
||||
assert.ok(packageJson.pi.extensions.includes("./extensions/context-view.ts"));
|
||||
assert.ok(
|
||||
packageJson.pi.extensions.indexOf("./pi-compaction/index.ts") <
|
||||
packageJson.pi.extensions.indexOf("./extensions/context-view.ts"),
|
||||
"the context observer must load after the compaction authority",
|
||||
);
|
||||
assert.ok(
|
||||
packageJson.pi.extensions.indexOf("./pi-compaction/index.ts") <
|
||||
packageJson.pi.extensions.indexOf("./pi-minimal-footer/index.ts"),
|
||||
"the footer must load after the compaction metrics service",
|
||||
);
|
||||
assert.ok(packageJson.pi.extensions.includes("./pi-ssh/index.ts"), "the bundle must load the locally maintained SSH extension");
|
||||
assert.equal(packageJson.dependencies["pi-ssh"], "file:./pi-ssh");
|
||||
|
||||
Reference in New Issue
Block a user