@kendoo.agentdesk/agentdesk 0.20.4 → 0.20.6
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/cli/daemon.mjs +1 -1
- package/cli/orchestrator.mjs +6 -0
- package/package.json +1 -1
package/cli/daemon.mjs
CHANGED
|
@@ -465,7 +465,7 @@ export async function runDaemon() {
|
|
|
465
465
|
// Clear active session BEFORE sending session:end — this prevents
|
|
466
466
|
// the orchestrator's onEvent callback from sending a duplicate
|
|
467
467
|
activeSession = null;
|
|
468
|
-
sendBuffered(sessionId, { type: "session:end", duration, steps: 0, inputTokens: 0, outputTokens: 0 });
|
|
468
|
+
sendBuffered(sessionId, { type: "session:end", duration, steps: 0, inputTokens: 0, outputTokens: 0, status: "stopped" });
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
|
package/cli/orchestrator.mjs
CHANGED
|
@@ -135,6 +135,11 @@ export async function runOrchestrator({
|
|
|
135
135
|
emit({ type: "phase:change", phase: initialPhase, model: representativeModel });
|
|
136
136
|
|
|
137
137
|
const modelArgs = modelArgsForPhase("EXECUTION", config?.phaseModels);
|
|
138
|
+
const phaseModelsResolved = config?.phaseModels && Object.keys(config.phaseModels).length
|
|
139
|
+
? JSON.stringify(config.phaseModels)
|
|
140
|
+
: "(none — using Claude Code defaults)";
|
|
141
|
+
console.error(`[agentdesk] phaseModels: ${phaseModelsResolved}`);
|
|
142
|
+
console.error(`[agentdesk] EXECUTION model: ${modelArgs.length ? modelArgs[1] : "default (no --model flag)"}`);
|
|
138
143
|
const wrapped = wrapIsolatedSpawn({
|
|
139
144
|
cmd: "claude",
|
|
140
145
|
args: ["-p", fullPrompt, ...modelArgs, "--allowedTools", "Bash,Read,Edit,Write,Glob,Grep", "--verbose", "--output-format", "stream-json"],
|
|
@@ -387,6 +392,7 @@ export async function runPhasedOrchestrator({
|
|
|
387
392
|
});
|
|
388
393
|
|
|
389
394
|
const modelArgs = modelArgsForPhase(phase, config?.phaseModels);
|
|
395
|
+
console.error(`[agentdesk] phase ${phase} model: ${modelArgs.length ? modelArgs[1] : "default (no --model flag)"}`);
|
|
390
396
|
const result = await runSinglePhase({ prompt, cwd, env, teamNames, emit, modelArgs, scratchHome: sandbox.home, sessionId, tracker, config });
|
|
391
397
|
|
|
392
398
|
if (onChild) onChild(result.child);
|