@henryqw/pi-subagent 17.0.0 → 17.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/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], agentDir);
189
+ return resolveConfiguredRoute(ctx, profileName, config.profiles[profileName]);
190
190
  }
191
- function resolveConfiguredRoute(ctx, profileName, profile, agentDir = getAgentDir()) {
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, agentDir);
195
+ const resolved = resolveTaskModelRoute(ctx, route);
196
196
  if (resolved)
197
197
  return resolved;
198
198
  }
@@ -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": "17.0.0",
3
+ "version": "17.0.1",
4
4
  "description": "Delegate bounded single, parallel, or chained tasks to isolated Pi roles.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -64,6 +64,6 @@
64
64
  "@henryqw/pi-config-store": "^1.0.0",
65
65
  "@henryqw/pi-multi-codex": "^1.0.0",
66
66
  "@henryqw/pi-process": "^0.1.0",
67
- "@henryqw/pi-task-models": "^5.0.0"
67
+ "@henryqw/pi-task-models": "^6.0.0"
68
68
  }
69
69
  }