@phi-code-admin/phi-code 0.61.5 → 0.61.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.
@@ -274,12 +274,8 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
274
274
  }
275
275
  await writeFile(progressPath, progress, "utf-8");
276
276
 
277
- // Send the mega-prompt — LLM handles everything in current session
278
- pi.sendUserMessage(megaPrompt);
279
-
280
- notify(`📋 ${totalTasks} tasks sent to LLM. Progress: \`${progressFile}\``, "info");
281
-
282
- return { results, progressFile };
277
+ // Return the mega-prompt as tool result — LLM sees it and executes
278
+ return { results, progressFile, megaPrompt };
283
279
  }
284
280
 
285
281
  // ─── Generate Plan Files ─────────────────────────────────────────
@@ -412,23 +408,19 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
412
408
  p.constraints?.length ? `Constraints: ${p.constraints.join("; ")}` : "",
413
409
  ].filter(Boolean).join("\n");
414
410
 
415
- const { results, progressFile } = await executePlan(
411
+ const { results, progressFile, megaPrompt } = await executePlan(
416
412
  p.tasks, todoFile, notify,
417
413
  { title: p.title, description: p.description, specSummary },
418
414
  );
419
415
 
420
- const summary = `**🏁 Project "${p.title}" — ${p.tasks.length} tasks sent!**
421
-
422
- **Plan:** \`${specFile}\`, \`${todoFile}\`
423
- **Progress:** \`${progressFile}\`
424
-
425
- **Tasks queued:**
426
- ${results.map(r => `📋 Task ${r.taskIndex}: ${r.title} [${r.agent}]`).join("\n")}
427
-
428
- The LLM is now executing all tasks in-session.`;
416
+ const header = `**📋 Project "${p.title}" — ${p.tasks.length} tasks planned!**\n` +
417
+ `Plan: \`${specFile}\`, \`${todoFile}\` | Progress: \`${progressFile}\`\n\n` +
418
+ `---\n\n`;
429
419
 
420
+ // Return the mega-prompt as tool result
421
+ // The LLM sees this and executes all tasks in its current turn
430
422
  return {
431
- content: [{ type: "text", text: summary }],
423
+ content: [{ type: "text", text: header + megaPrompt }],
432
424
  details: {
433
425
  specFile, todoFile, progressFile,
434
426
  taskCount: p.tasks.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phi-code-admin/phi-code",
3
- "version": "0.61.5",
3
+ "version": "0.61.6",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "piConfig": {