@cad0p/pi-subagents-tintinweb 0.14.2-20260814.3 → 0.14.2
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/package.json +5 -5
- package/src/agent-runner.ts +2 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cad0p/pi-subagents-tintinweb",
|
|
3
|
-
"version": "0.14.2
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "A pi extension extension that brings smart Claude Code-style autonomous sub-agents to pi.",
|
|
5
5
|
"author": "tintinweb",
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc",
|
|
39
|
+
"prepublishOnly": "npm run lint && npm run typecheck && npm run test && npm run build",
|
|
39
40
|
"test": "vitest run",
|
|
40
41
|
"test:watch": "vitest",
|
|
41
42
|
"test:e2e": "vitest run e2e --reporter=verbose",
|
|
@@ -53,9 +54,8 @@
|
|
|
53
54
|
"pi": {
|
|
54
55
|
"extensions": [
|
|
55
56
|
"./src/index.ts"
|
|
56
|
-
]
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"node": ">=22.19.0"
|
|
57
|
+
],
|
|
58
|
+
"video": "https://github.com/tintinweb/pi-subagents/raw/master/media/demo.mp4",
|
|
59
|
+
"image": "https://github.com/tintinweb/pi-subagents/raw/master/media/screenshot.png"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/src/agent-runner.ts
CHANGED
|
@@ -688,19 +688,11 @@ export async function runAgent(
|
|
|
688
688
|
? SessionManager.create(effectiveCwd, configuredSessionDir ?? defaultSessionDir)
|
|
689
689
|
: SessionManager.inMemory(effectiveCwd);
|
|
690
690
|
|
|
691
|
-
type AgentSessionOptions = NonNullable<Parameters<typeof createAgentSession>[0]>;
|
|
692
691
|
// Pi 0.80.8 replaced createAgentSession's modelRegistry option with
|
|
693
692
|
// modelRuntime, but ExtensionContext still exposes only the registry facade.
|
|
694
693
|
// Pass both so the full supported Pi range retains the parent's providers.
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
// object literal stays assignable when tsc runs against current types.
|
|
698
|
-
const parentModelRuntime = (
|
|
699
|
-
ctx.modelRegistry as unknown as {
|
|
700
|
-
runtime?: AgentSessionOptions extends { modelRuntime?: infer TModelRuntime } ? TModelRuntime : never;
|
|
701
|
-
}
|
|
702
|
-
).runtime;
|
|
703
|
-
const sessionOpts: AgentSessionOptions & {
|
|
694
|
+
const parentModelRuntime = (ctx.modelRegistry as unknown as { runtime?: unknown }).runtime;
|
|
695
|
+
const sessionOpts: Parameters<typeof createAgentSession>[0] & {
|
|
704
696
|
modelRegistry: ExtensionContext["modelRegistry"];
|
|
705
697
|
modelRuntime?: unknown;
|
|
706
698
|
} = {
|