@kendoo.agentdesk/agentdesk 0.11.5 → 0.11.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 -2
- package/cli/orchestrator.mjs +2 -2
- package/cli/prompt.mjs +1 -2
- package/cli/team.mjs +1 -2
- package/package.json +1 -1
- package/prompts/team.md +0 -8
package/cli/daemon.mjs
CHANGED
|
@@ -367,7 +367,6 @@ export async function runDaemon() {
|
|
|
367
367
|
const team = resolveTeam(config);
|
|
368
368
|
const teamSections = generateTeamPrompt(team, { tracker, config });
|
|
369
369
|
|
|
370
|
-
const inboxUrl = `${agentdeskServer}/api/sessions/${sessionId}/inbox`;
|
|
371
370
|
const sessionUrl = `${agentdeskServer}/sessions/${sessionId}`;
|
|
372
371
|
|
|
373
372
|
// Run orchestrator
|
|
@@ -377,7 +376,7 @@ export async function runDaemon() {
|
|
|
377
376
|
createTask: !remoteTaskId && !!prompt && !!tracker,
|
|
378
377
|
tracker, config,
|
|
379
378
|
project: detected, team, teamSections,
|
|
380
|
-
|
|
379
|
+
sessionUrl,
|
|
381
380
|
cwd: project.path,
|
|
382
381
|
apiKey,
|
|
383
382
|
serverUrl: agentdeskServer,
|
package/cli/orchestrator.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function timestamp() {
|
|
|
46
46
|
|
|
47
47
|
export async function runOrchestrator({
|
|
48
48
|
taskId, taskLink, description, createTask, tracker, config,
|
|
49
|
-
project, team, teamSections,
|
|
49
|
+
project, team, teamSections, sessionUrl, cwd,
|
|
50
50
|
onEvent, apiKey, serverUrl, soloAgent, childStrategy,
|
|
51
51
|
}) {
|
|
52
52
|
const trackerCreds = await fetchTrackerCredentials(project?.name, apiKey, serverUrl);
|
|
@@ -65,7 +65,7 @@ export async function runOrchestrator({
|
|
|
65
65
|
|
|
66
66
|
const fullPrompt = soloAgent
|
|
67
67
|
? buildSoloPrompt({ agentName: soloAgent, taskId, description, tracker, config, project, sessionUrl, childStrategy, cwd })
|
|
68
|
-
: buildPrompt({ taskId, taskLink, description, createTask, tracker, config, project, teamSections,
|
|
68
|
+
: buildPrompt({ taskId, taskLink, description, createTask, tracker, config, project, teamSections, sessionUrl, cwd });
|
|
69
69
|
|
|
70
70
|
emit({
|
|
71
71
|
type: "session:start",
|
package/cli/prompt.mjs
CHANGED
|
@@ -32,7 +32,7 @@ The team has a shared memory file at \`.agentdesk/memory.md\` for storing learni
|
|
|
32
32
|
**How**: Use the Edit or Write tool on \`.agentdesk/memory.md\`. Create the file if it doesn't exist.
|
|
33
33
|
`.trim();
|
|
34
34
|
|
|
35
|
-
export function buildPrompt({ taskId, taskLink, description, createTask, tracker, config, project, teamSections,
|
|
35
|
+
export function buildPrompt({ taskId, taskLink, description, createTask, tracker, config, project, teamSections, sessionUrl, cwd }) {
|
|
36
36
|
let prompt = readFileSync(PROMPT_PATH, "utf-8");
|
|
37
37
|
|
|
38
38
|
// Team substitution
|
|
@@ -110,7 +110,6 @@ export function buildPrompt({ taskId, taskLink, description, createTask, tracker
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// Inject URLs into prompt
|
|
113
|
-
prompt = prompt.replace(/\{\{AGENTDESK_INBOX_URL\}\}/g, inboxUrl);
|
|
114
113
|
prompt = prompt.replace(/\{\{SESSION_URL\}\}/g, sessionUrl);
|
|
115
114
|
|
|
116
115
|
// Merge declared agents from config into project for context generation
|
package/cli/team.mjs
CHANGED
|
@@ -134,7 +134,6 @@ export async function runTeam(taskId, opts = {}) {
|
|
|
134
134
|
// --- AgentDesk WebSocket config ---
|
|
135
135
|
const AGENTDESK_URL = process.env.AGENTDESK_URL || "wss://agentdesk.live/ws/agent";
|
|
136
136
|
const sessionId = `${taskId}-${randomUUID().slice(0, 8)}`;
|
|
137
|
-
const inboxUrl = `${agentdeskServer}/api/sessions/${sessionId}/inbox`;
|
|
138
137
|
const sessionUrl = `${agentdeskServer}/sessions/${sessionId}`;
|
|
139
138
|
|
|
140
139
|
let vizWs = null;
|
|
@@ -209,7 +208,7 @@ export async function runTeam(taskId, opts = {}) {
|
|
|
209
208
|
|
|
210
209
|
const result = await runOrchestrator({
|
|
211
210
|
taskId, taskLink, description, createTask, tracker, config,
|
|
212
|
-
project, team, teamSections,
|
|
211
|
+
project, team, teamSections, sessionUrl, cwd,
|
|
213
212
|
onEvent: vizSend,
|
|
214
213
|
apiKey,
|
|
215
214
|
serverUrl: agentdeskServer,
|
package/package.json
CHANGED
package/prompts/team.md
CHANGED
|
@@ -23,14 +23,6 @@ Agents only speak when they have something substantive to contribute. No filler,
|
|
|
23
23
|
|
|
24
24
|
{{GROUND_RULES}}
|
|
25
25
|
|
|
26
|
-
## USER INPUT
|
|
27
|
-
|
|
28
|
-
Check for user messages at phase transitions:
|
|
29
|
-
```
|
|
30
|
-
curl -s {{AGENTDESK_INBOX_URL}}
|
|
31
|
-
```
|
|
32
|
-
If not empty (`[]`), Jane reads the messages and incorporates them — user input takes priority.
|
|
33
|
-
|
|
34
26
|
## CODE PRINCIPLES
|
|
35
27
|
|
|
36
28
|
{{CODE_PRINCIPLES}}
|