opencode-orchestrator 0.8.4 → 0.8.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14023,7 +14023,7 @@ function formatDuration(start, end) {
14023
14023
  }
14024
14024
  function buildNotificationMessage(tasks) {
14025
14025
  const summary = tasks.map((t) => {
14026
- const status = t.status === "completed" ? "\u2705" : "\u274C";
14026
+ const status = t.status === TASK_STATUS.COMPLETED ? "\u2705" : "\u274C";
14027
14027
  return `${status} \`${t.id}\`: ${t.description}`;
14028
14028
  }).join("\n");
14029
14029
  return `<system-notification>
@@ -14402,9 +14402,9 @@ Still running: ${remaining.length} | Queued: ${queued.length}`;
14402
14402
  if (!this.client) return;
14403
14403
  const tuiClient2 = this.client;
14404
14404
  if (!tuiClient2.tui?.showToast) return;
14405
- const successCount = completedTasks.filter((t) => t.status === "completed").length;
14406
- const failCount = completedTasks.filter((t) => t.status === "error" || t.status === "cancelled").length;
14407
- const taskList = completedTasks.map((t) => `- ${t.status === "completed" ? "\u2705" : "\u274C"} ${t.description} (${t.duration})`).join("\n");
14405
+ const successCount = completedTasks.filter((t) => t.status === TASK_STATUS.COMPLETED).length;
14406
+ const failCount = completedTasks.filter((t) => t.status === TASK_STATUS.ERROR || t.status === TASK_STATUS.CANCELLED).length;
14407
+ const taskList = completedTasks.map((t) => `- ${t.status === TASK_STATUS.COMPLETED ? "\u2705" : "\u274C"} ${t.description} (${t.duration})`).join("\n");
14408
14408
  tuiClient2.tui.showToast({
14409
14409
  body: {
14410
14410
  title: "\u{1F389} All Tasks Completed",
@@ -15341,10 +15341,10 @@ var createListTasksTool = (manager) => tool({
15341
15341
  tasks = manager.getRunningTasks();
15342
15342
  break;
15343
15343
  case "completed":
15344
- tasks = manager.getAllTasks().filter((t) => t.status === "completed");
15344
+ tasks = manager.getAllTasks().filter((t) => t.status === TASK_STATUS.COMPLETED);
15345
15345
  break;
15346
15346
  case "error":
15347
- tasks = manager.getAllTasks().filter((t) => t.status === "error" || t.status === "timeout");
15347
+ tasks = manager.getAllTasks().filter((t) => t.status === TASK_STATUS.ERROR || t.status === TASK_STATUS.TIMEOUT);
15348
15348
  break;
15349
15349
  default:
15350
15350
  tasks = manager.getAllTasks();
@@ -16296,7 +16296,7 @@ ${r.content}
16296
16296
  // src/core/loop/stats.ts
16297
16297
  function getIncompleteCount(todos) {
16298
16298
  return todos.filter(
16299
- (t) => t.status !== "completed" && t.status !== "cancelled"
16299
+ (t) => t.status !== TODO_STATUS.COMPLETED && t.status !== TODO_STATUS.CANCELLED
16300
16300
  ).length;
16301
16301
  }
16302
16302
  function hasRemainingWork(todos) {
@@ -16304,7 +16304,7 @@ function hasRemainingWork(todos) {
16304
16304
  }
16305
16305
  function getNextPending(todos) {
16306
16306
  const pending = todos.filter(
16307
- (t) => t.status === "pending" || t.status === "in_progress"
16307
+ (t) => t.status === TODO_STATUS.PENDING || t.status === TODO_STATUS.IN_PROGRESS
16308
16308
  );
16309
16309
  const priorityOrder = { high: 0, medium: 1, low: 2 };
16310
16310
  pending.sort((a, b) => priorityOrder[a.priority] - priorityOrder[b.priority]);
@@ -16313,10 +16313,10 @@ function getNextPending(todos) {
16313
16313
  function getStats(todos) {
16314
16314
  const stats2 = {
16315
16315
  total: todos.length,
16316
- pending: todos.filter((t) => t.status === "pending").length,
16317
- inProgress: todos.filter((t) => t.status === "in_progress").length,
16318
- completed: todos.filter((t) => t.status === "completed").length,
16319
- cancelled: todos.filter((t) => t.status === "cancelled").length,
16316
+ pending: todos.filter((t) => t.status === TODO_STATUS.PENDING).length,
16317
+ inProgress: todos.filter((t) => t.status === TODO_STATUS.IN_PROGRESS).length,
16318
+ completed: todos.filter((t) => t.status === TODO_STATUS.COMPLETED).length,
16319
+ cancelled: todos.filter((t) => t.status === TODO_STATUS.CANCELLED).length,
16320
16320
  percentComplete: 0
16321
16321
  };
16322
16322
  if (stats2.total > 0) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "opencode-orchestrator",
3
3
  "displayName": "OpenCode Orchestrator",
4
4
  "description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
5
- "version": "0.8.4",
5
+ "version": "0.8.6",
6
6
  "author": "agnusdei1207",
7
7
  "license": "MIT",
8
8
  "repository": {