@henryqw/pi-subagent 17.0.0 → 18.0.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/dist/index.js +3 -3
- package/extensions/workflow.ts +0 -2
- package/package.json +12 -7
package/dist/index.js
CHANGED
|
@@ -186,13 +186,13 @@ export function resolveTaskRoute(ctx, profileName, agentDir = getAgentDir()) {
|
|
|
186
186
|
catch {
|
|
187
187
|
throw new Error("Couldn't read task model config. Run /task-models.");
|
|
188
188
|
}
|
|
189
|
-
return resolveConfiguredRoute(ctx, profileName, config.profiles[profileName]
|
|
189
|
+
return resolveConfiguredRoute(ctx, profileName, config.profiles[profileName]);
|
|
190
190
|
}
|
|
191
|
-
function resolveConfiguredRoute(ctx, profileName, profile
|
|
191
|
+
function resolveConfiguredRoute(ctx, profileName, profile) {
|
|
192
192
|
if (!profile)
|
|
193
193
|
throw new Error(`No ${profileName} task model profile is configured. Run /task-models.`);
|
|
194
194
|
for (const route of orderedProfileRoutes(profile)) {
|
|
195
|
-
const resolved = resolveTaskModelRoute(ctx, route
|
|
195
|
+
const resolved = resolveTaskModelRoute(ctx, route);
|
|
196
196
|
if (resolved)
|
|
197
197
|
return resolved;
|
|
198
198
|
}
|
package/extensions/workflow.ts
CHANGED
|
@@ -108,7 +108,6 @@ export function parseWorkflow(value: unknown): ParsedWorkflow {
|
|
|
108
108
|
|
|
109
109
|
export type WorkflowEntry = {
|
|
110
110
|
id: string;
|
|
111
|
-
mode: WorkflowMode;
|
|
112
111
|
index: number;
|
|
113
112
|
delegation: Delegation;
|
|
114
113
|
};
|
|
@@ -116,7 +115,6 @@ export type WorkflowEntry = {
|
|
|
116
115
|
export function identifyWorkflowEntries(toolCallId: string, workflow: ParsedWorkflow): WorkflowEntry[] {
|
|
117
116
|
return workflow.delegations.map((delegation, index) => ({
|
|
118
117
|
id: `${toolCallId}:${workflow.mode}:${index}`,
|
|
119
|
-
mode: workflow.mode,
|
|
120
118
|
index,
|
|
121
119
|
delegation,
|
|
122
120
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@henryqw/pi-subagent",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "Delegate bounded single, parallel, or chained tasks to isolated Pi roles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"pack:check": "npm pack --dry-run"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@earendil-works/pi-ai": "^0.
|
|
42
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
43
|
-
"@earendil-works/pi-tui": "^0.
|
|
41
|
+
"@earendil-works/pi-ai": "^0.86.0",
|
|
42
|
+
"@earendil-works/pi-coding-agent": "^0.86.0",
|
|
43
|
+
"@earendil-works/pi-tui": "^0.86.0",
|
|
44
44
|
"typebox": "^1.3.15"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
@@ -61,9 +61,14 @@
|
|
|
61
61
|
"image": "https://raw.githubusercontent.com/HenryQW/pi-harness/main/extensions/pi-subagent/example.png"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@henryqw/pi-config-store": "^
|
|
65
|
-
"@henryqw/pi-multi-codex": "^
|
|
64
|
+
"@henryqw/pi-config-store": "^2.0.0",
|
|
65
|
+
"@henryqw/pi-multi-codex": "^2.0.0",
|
|
66
66
|
"@henryqw/pi-process": "^0.1.0",
|
|
67
|
-
"@henryqw/pi-task-models": "^
|
|
67
|
+
"@henryqw/pi-task-models": "^7.0.0"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@earendil-works/pi-ai": "0.86.0",
|
|
71
|
+
"@earendil-works/pi-coding-agent": "0.86.0",
|
|
72
|
+
"@earendil-works/pi-tui": "0.86.0"
|
|
68
73
|
}
|
|
69
74
|
}
|