@kendoo.agentdesk/agentdesk 0.14.0 → 0.14.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.
@@ -54,6 +54,11 @@ function modelArgsForPhase(phase, phaseModels) {
54
54
  return ["--model", choice];
55
55
  }
56
56
 
57
+ // Display label for a phase's model ("opus"|"sonnet"|"haiku"|"default").
58
+ function modelLabelForPhase(phase, phaseModels) {
59
+ return phaseModels?.[phase] || "default";
60
+ }
61
+
57
62
  export async function runOrchestrator({
58
63
  taskId, taskLink, description, createTask, tracker, config,
59
64
  project, team, teamSections, sessionUrl, cwd,
@@ -87,10 +92,12 @@ export async function runOrchestrator({
87
92
  cliVersion: CLI_VERSION,
88
93
  });
89
94
 
90
- emit({ type: "phase:change", phase: soloAgent ? "EXECUTION" : "INTAKE" });
91
-
95
+ const initialPhase = soloAgent ? "EXECUTION" : "INTAKE";
92
96
  // Non-phased single run spans all phases in one process — use EXECUTION's model
93
97
  // as the representative choice (matches where the heavy lifting happens).
98
+ const representativeModel = modelLabelForPhase("EXECUTION", config?.phaseModels);
99
+ emit({ type: "phase:change", phase: initialPhase, model: representativeModel });
100
+
94
101
  const modelArgs = modelArgsForPhase("EXECUTION", config?.phaseModels);
95
102
  const child = spawn(
96
103
  "claude",
@@ -102,7 +109,7 @@ export async function runOrchestrator({
102
109
  const { parseLine } = createStreamParser({
103
110
  teamNames: soloAgent ? [soloAgent] : teamSections.names,
104
111
  callbacks: {
105
- onPhaseChange({ phase }) { emit({ type: "phase:change", phase }); },
112
+ onPhaseChange({ phase }) { emit({ type: "phase:change", phase, model: representativeModel }); },
106
113
  onAgentMessage({ agent, tag, message }) { emit({ type: "agent:message", agent, tag, message }); },
107
114
  onToolUse({ agent, tool, description }) { totalSteps++; emit({ type: "tool:use", agent, tool, description }); },
108
115
  onToolResult({ success, summary }) { emit({ type: "tool:result", success, summary }); },
@@ -265,7 +272,7 @@ export async function runPhasedOrchestrator({
265
272
  if (existsSync(sessionMemoryPath)) sessionMemory = readFileSync(sessionMemoryPath, "utf-8").trim();
266
273
  } catch {}
267
274
 
268
- emit({ type: "phase:change", phase });
275
+ emit({ type: "phase:change", phase, model: modelLabelForPhase(phase, config?.phaseModels) });
269
276
 
270
277
  const prompt = buildPhasedPrompt({
271
278
  phase, taskId, taskLink, description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kendoo.agentdesk/agentdesk",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "AI team orchestrator for Claude Code — run collaborative agent sessions from your terminal",
5
5
  "type": "module",
6
6
  "bin": {