@kendoo.agentdesk/agentdesk 0.8.2 → 0.8.3
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/orchestrator.mjs +6 -1
- package/cli/team.mjs +6 -1
- package/package.json +1 -1
package/cli/orchestrator.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// Orchestrator — manages agent sub-sessions across phases
|
|
2
2
|
|
|
3
3
|
import { existsSync, readFileSync } from "fs";
|
|
4
|
-
import { join } from "path";
|
|
4
|
+
import { join, dirname } from "path";
|
|
5
|
+
import { fileURLToPath } from "url";
|
|
5
6
|
import { runAgent } from "./agent-runner.mjs";
|
|
7
|
+
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const CLI_VERSION = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8")).version;
|
|
6
10
|
import { buildAgentPrompt, getAgentTools } from "./agent-prompts.mjs";
|
|
7
11
|
import { detectProject, generateContext } from "./detect.mjs";
|
|
8
12
|
|
|
@@ -125,6 +129,7 @@ export async function runOrchestrator({
|
|
|
125
129
|
project: project?.name || null,
|
|
126
130
|
sessionNumber: 1,
|
|
127
131
|
agents: teamSections.names,
|
|
132
|
+
cliVersion: CLI_VERSION,
|
|
128
133
|
});
|
|
129
134
|
|
|
130
135
|
// Build agent lookup
|
package/cli/team.mjs
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
import { spawn } from "child_process";
|
|
4
4
|
import { existsSync, readFileSync } from "fs";
|
|
5
5
|
import { createInterface } from "readline";
|
|
6
|
-
import { join } from "path";
|
|
6
|
+
import { join, dirname } from "path";
|
|
7
7
|
import { randomUUID } from "crypto";
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
|
+
|
|
10
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
const CLI_VERSION = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8")).version;
|
|
8
12
|
import WebSocket from "ws";
|
|
9
13
|
import { detectProject } from "./detect.mjs";
|
|
10
14
|
import { loadConfig } from "./config.mjs";
|
|
@@ -139,6 +143,7 @@ export async function runTeam(taskId, opts = {}) {
|
|
|
139
143
|
project: project.name || null,
|
|
140
144
|
sessionNumber: 1,
|
|
141
145
|
agents: teamSections.names,
|
|
146
|
+
cliVersion: CLI_VERSION,
|
|
142
147
|
});
|
|
143
148
|
sessionStartSent = true;
|
|
144
149
|
while (vizQueue.length > 0 && vizWs.readyState === WebSocket.OPEN) {
|