mitsupi 1.0.1 → 1.0.3
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 +1 -0
- package/package.json +1 -1
- package/pi-extensions/answer.ts +9 -4
- package/pi-extensions/todos.ts +2058 -0
- package/TODO.md +0 -11
- package/pi-extensions/codex-tuning.ts +0 -632
- package/pi-extensions/commit.ts +0 -248
- package/pi-extensions/issues.ts +0 -548
package/README.md
CHANGED
|
@@ -89,6 +89,7 @@ Custom extensions for the PI Coding Agent can be found in the [`pi-extensions`](
|
|
|
89
89
|
* [`reveal.ts`](pi-extensions/reveal.ts) - Finder/Quick Look helper that browses session file references via Ctrl+F or `/files`, with Ctrl+R revealing the latest file and Ctrl+Shift+R opening Quick Look on macOS.
|
|
90
90
|
* [`cwd-history.ts`](pi-extensions/cwd-history.ts) - Displays and manages recent working directory history inside the PI Coding Agent.
|
|
91
91
|
* [`codex-tuning.ts`](pi-extensions/codex-tuning.ts) - Codex tuning helper for collecting samples and tagging outcomes during agent sessions.
|
|
92
|
+
* [`todos.ts`](pi-extensions/todos.ts) - Todo manager extension with file-backed storage and a TUI for listing and editing todos.
|
|
92
93
|
|
|
93
94
|
## PI Coding Agent Themes
|
|
94
95
|
|
package/package.json
CHANGED
package/pi-extensions/answer.ts
CHANGED
|
@@ -67,10 +67,11 @@ Example output:
|
|
|
67
67
|
]
|
|
68
68
|
}`;
|
|
69
69
|
|
|
70
|
+
const CODEX_MODEL_ID = "gpt-5.1-codex-mini";
|
|
70
71
|
const HAIKU_MODEL_ID = "claude-haiku-4-5";
|
|
71
72
|
|
|
72
73
|
/**
|
|
73
|
-
* Prefer
|
|
74
|
+
* Prefer Codex mini for extraction when available, otherwise fallback to haiku or the current model.
|
|
74
75
|
*/
|
|
75
76
|
async function selectExtractionModel(
|
|
76
77
|
currentModel: Model<Api>,
|
|
@@ -79,8 +80,12 @@ async function selectExtractionModel(
|
|
|
79
80
|
getApiKey: (model: Model<Api>) => Promise<string | undefined>;
|
|
80
81
|
},
|
|
81
82
|
): Promise<Model<Api>> {
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
const codexModel = modelRegistry.find("openai-codex", CODEX_MODEL_ID);
|
|
84
|
+
if (codexModel) {
|
|
85
|
+
const apiKey = await modelRegistry.getApiKey(codexModel);
|
|
86
|
+
if (apiKey) {
|
|
87
|
+
return codexModel;
|
|
88
|
+
}
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
const haikuModel = modelRegistry.find("anthropic", HAIKU_MODEL_ID);
|
|
@@ -443,7 +448,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
443
448
|
return;
|
|
444
449
|
}
|
|
445
450
|
|
|
446
|
-
// Select the best model for extraction (prefer
|
|
451
|
+
// Select the best model for extraction (prefer Codex mini, then haiku)
|
|
447
452
|
const extractionModel = await selectExtractionModel(ctx.model, ctx.modelRegistry);
|
|
448
453
|
|
|
449
454
|
// Run extraction with loader UI
|