@leing2021/super-pi 0.19.7 → 0.20.0
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 +11 -1
- package/extensions/super-pi-extension/index.ts +5 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -421,7 +421,13 @@ Not a fork. Not a wrapper. Methodologies extracted and rebuilt with Pi's native
|
|
|
421
421
|
|
|
422
422
|
## Changelog
|
|
423
423
|
|
|
424
|
-
### 0.
|
|
424
|
+
### 0.20.0 — Extension API migration + v0.19.7 rework
|
|
425
|
+
- Migrated `super-pi-extension` from legacy `export default { load() }` object format to Pi-native factory function `(pi: ExtensionAPI) => void`.
|
|
426
|
+
- Replaced hardcoded `ExtensionContext` import with `ExtensionAPI`-only — context now provided via event handler.
|
|
427
|
+
- Removed dead auto-install comment block and unused `ExtensionContext` type import.
|
|
428
|
+
- Restored v0.19.6 changelog entry that was accidentally overwritten by the v0.19.7 release commit.
|
|
429
|
+
|
|
430
|
+
### 0.19.6 — pi-subagents integration extension
|
|
425
431
|
- New `super-pi-extension`: pre-configured CE Agents (ce-scout, ce-planner, ce-worker, ce-reviewer, ce-oracle) and CE Chains (ce-standard, ce-review-only, ce-parallel-review).
|
|
426
432
|
- New `thinkingStrategy` setting: per-stage thinking level sync (`modelStrategy` + `thinkingStrategy` → `subagents.agentOverrides`).
|
|
427
433
|
- Removed hardcoded `model` and `thinking` from CE Agent frontmatter — now fully driven by settings.
|
|
@@ -430,6 +436,10 @@ Not a fork. Not a wrapper. Methodologies extracted and rebuilt with Pi's native
|
|
|
430
436
|
- Updated README with Optional: pi-subagents Integration section.
|
|
431
437
|
|
|
432
438
|
### 0.19.5 — Plan/Work/Review skill rules loading alignment
|
|
439
|
+
|
|
440
|
+
---
|
|
441
|
+
|
|
442
|
+
> **Note:** v0.19.7 was a broken release — version bump with no code change, changelog entry for v0.19.6 overwritten. v0.20.0 supersedes it.
|
|
433
443
|
- Fixed `02-plan` not loading language-specific rules (e.g. `rules/typescript/`) during the planning phase — only `common/` rules were loaded.
|
|
434
444
|
- Fixed `03-work` Core rules missing explicit `common/` loading and `web/` conditional loading (10-rules defined them but the skill's own instructions didn't).
|
|
435
445
|
- Fixed `04-review` Core rules missing explicit language detection method and `web/` conditional loading.
|
|
@@ -15,7 +15,7 @@ import * as fs from "node:fs";
|
|
|
15
15
|
import * as path from "node:path";
|
|
16
16
|
import * as os from "node:os";
|
|
17
17
|
import { execSync } from "node:child_process";
|
|
18
|
-
import type { ExtensionAPI
|
|
18
|
+
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
19
19
|
|
|
20
20
|
// CE Stage to Agent mapping
|
|
21
21
|
const STAGE_AGENT_MAP: Record<string, string[]> = {
|
|
@@ -162,11 +162,8 @@ function formatInstallInstructions(): string {
|
|
|
162
162
|
`;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
export default {
|
|
166
|
-
|
|
167
|
-
description: "Compound Engineering integration for pi-subagents",
|
|
168
|
-
|
|
169
|
-
async load(ctx: ExtensionContext): Promise<void> {
|
|
165
|
+
export default function (pi: ExtensionAPI) {
|
|
166
|
+
pi.on("session_start", async (_event, ctx) => {
|
|
170
167
|
const cwd = ctx.cwd || process.cwd();
|
|
171
168
|
|
|
172
169
|
// Auto-sync modelStrategy + thinkingStrategy to agentOverrides
|
|
@@ -176,16 +173,10 @@ export default {
|
|
|
176
173
|
if (!isPiSubagentsInstalled()) {
|
|
177
174
|
console.warn("[super-pi-extension] pi-subagents not found. CE Agents/Chains require it.");
|
|
178
175
|
console.warn("[super-pi-extension] Run: pi install npm:pi-subagents");
|
|
179
|
-
|
|
180
|
-
// Optionally auto-install (uncomment to enable)
|
|
181
|
-
// const installed = tryAutoInstallPiSubagents();
|
|
182
|
-
// if (installed) {
|
|
183
|
-
// console.log("[super-pi-extension] pi-subagents installed successfully!");
|
|
184
|
-
// }
|
|
185
176
|
} else {
|
|
186
177
|
console.log("[super-pi-extension] pi-subagents detected. Full CE workflow enabled.");
|
|
187
178
|
}
|
|
188
179
|
|
|
189
180
|
console.log("[super-pi-extension] Loaded. CE agents and chains available.");
|
|
190
|
-
}
|
|
191
|
-
}
|
|
181
|
+
});
|
|
182
|
+
}
|