@pi-archimedes/subagent 2.0.0 → 2.0.1
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 +2 -2
- package/src/index.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-archimedes/subagent",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "./src/index.ts",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@pi-archimedes/core": "2.0.
|
|
14
|
+
"@pi-archimedes/core": "2.0.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@earendil-works/pi-ai": ">=0.1.0",
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ExtensionAPI, ExtensionCommandContext, ExtensionContext, Theme } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { Text, TUI } from "@earendil-works/pi-tui";
|
|
3
3
|
import { Type } from "typebox";
|
|
4
|
-
|
|
4
|
+
import { executeSubagent, executeParallel } from "./execute.js";
|
|
5
|
+
// agent-manager.js lazy-loaded below to keep subagent tool registration fast
|
|
5
6
|
import { renderSubagentResult } from "./render.js";
|
|
6
7
|
import { discoverAgents, discoverAgentsAll, findAgent, formatAgentList } from "./agents.js";
|
|
7
8
|
import { validateModel, firstError } from "./model-validation.js";
|
|
@@ -75,8 +76,6 @@ export function registerSubagent(pi: ExtensionAPI): void {
|
|
|
75
76
|
onUpdate: ((update: SubagentToolResult) => void) | undefined,
|
|
76
77
|
ctx: ExtensionContext,
|
|
77
78
|
): Promise<SubagentToolResult> {
|
|
78
|
-
// Lazy-load executor (spawn/stream/cost) — only when tool is actually invoked
|
|
79
|
-
const { executeSubagent, executeParallel } = await import("./execute.js");
|
|
80
79
|
const agents = discoverAgents(ctx.cwd);
|
|
81
80
|
|
|
82
81
|
// Parallel mode
|