@kendoo.agentdesk/agentdesk 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/cli/team.mjs +19 -0
  2. package/package.json +1 -1
package/cli/team.mjs CHANGED
@@ -122,6 +122,7 @@ export async function runTeam(taskId, opts = {}) {
122
122
  createInstr += `Create a GitHub issue:\n- Run: gh issue create --title "..." --body "..."\n- After creation, use the returned issue number as the task ID for the rest of the session\n`;
123
123
  }
124
124
  createInstr += `\nTask description: ${description}\n`;
125
+ createInstr += `\nIMPORTANT: After creating the task, Jane MUST immediately announce the new task ID on its own line in this exact format:\nTASK_ID: <identifier>\nExample: TASK_ID: KEN-530\nThis is required so the session can be linked to the correct task.\n`;
125
126
  prompt += createInstr;
126
127
  }
127
128
 
@@ -355,6 +356,24 @@ export async function runTeam(taskId, opts = {}) {
355
356
  continue;
356
357
  }
357
358
 
359
+ // Detect TASK_ID announcement from Jane
360
+ const taskIdMatch = text.match(/TASK_ID:\s*(\S+)/);
361
+ if (taskIdMatch && createTask) {
362
+ const newTaskId = taskIdMatch[1];
363
+ taskId = newTaskId;
364
+ // Build task link for the real task
365
+ if (tracker === "linear" && config.linear?.workspace) {
366
+ taskLink = `https://linear.app/${config.linear.workspace}/issue/${newTaskId}`;
367
+ } else if (tracker === "jira" && config.jira?.baseUrl) {
368
+ taskLink = `${config.jira.baseUrl}/browse/${newTaskId}`;
369
+ } else if (tracker === "github") {
370
+ const repo = config.github?.repo || "";
371
+ if (repo) taskLink = `https://github.com/${repo}/issues/${newTaskId}`;
372
+ }
373
+ console.log(`\n # Task: ${newTaskId}${taskLink ? ` (${taskLink})` : ""}\n`);
374
+ vizSend({ type: "session:update", taskId: newTaskId, taskLink, title: description || newTaskId });
375
+ }
376
+
358
377
  const textLines = text.split("\n");
359
378
  let i = 0;
360
379
  while (i < textLines.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kendoo.agentdesk/agentdesk",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "AI team orchestrator for Claude Code — run collaborative agent sessions from your terminal",
5
5
  "type": "module",
6
6
  "bin": {