mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 08:35:57 +00:00
feat: add pi-condense with default enablement
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { getAgentDir, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
||||
import { ensureCondenseEnabledDefault } from "./condense-config.ts";
|
||||
|
||||
/** Apply the bundle default before pi-condense reads settings on session_start. */
|
||||
export default async function bundledCondenseExtension(pi: ExtensionAPI): Promise<void> {
|
||||
const result = ensureCondenseEnabledDefault(getAgentDir());
|
||||
if (result === "skipped-invalid") {
|
||||
console.warn("my-pi: skipped the pi-condense default because settings.json or contextPrune is invalid");
|
||||
}
|
||||
const { default: condenseExtension } = await import("../node_modules/pi-condense/index.ts");
|
||||
condenseExtension(pi);
|
||||
}
|
||||
Reference in New Issue
Block a user