opencode-orchestrator 1.0.46 → 1.0.47

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 (28) hide show
  1. package/README.md +35 -35
  2. package/dist/core/notification/task-toast-manager.d.ts +9 -20
  3. package/dist/core/notification/toast-core.d.ts +1 -1
  4. package/dist/core/notification/toast.d.ts +2 -2
  5. package/dist/index.js +659 -600
  6. package/dist/shared/agent/types/index.d.ts +0 -1
  7. package/dist/shared/core/constants/index.d.ts +1 -1
  8. package/dist/shared/core/constants/status-labels.d.ts +1 -0
  9. package/dist/shared/notification/constants/index.d.ts +2 -4
  10. package/dist/shared/notification/constants/tui.const.d.ts +24 -0
  11. package/dist/shared/notification/index.d.ts +1 -0
  12. package/dist/shared/notification/interfaces/index.d.ts +1 -0
  13. package/dist/shared/notification/interfaces/task-toast.interface.d.ts +18 -0
  14. package/dist/{core → shared}/notification/presets/mission.d.ts +2 -2
  15. package/dist/{core → shared}/notification/presets/parallel.d.ts +3 -3
  16. package/dist/{core → shared}/notification/presets/session.d.ts +3 -3
  17. package/dist/{core → shared}/notification/presets/task-lifecycle.d.ts +4 -4
  18. package/dist/{core → shared}/notification/presets/tools.d.ts +3 -3
  19. package/dist/{core → shared}/notification/presets/warnings.d.ts +4 -4
  20. package/package.json +1 -1
  21. package/dist/core/notification/presets.d.ts +0 -7
  22. package/dist/core/notification/types/index.d.ts +0 -6
  23. package/dist/core/notification/types/toast-message.d.ts +0 -13
  24. package/dist/core/notification/types/toast-options.d.ts +0 -10
  25. package/dist/core/notification/types/toast-variant.d.ts +0 -4
  26. package/dist/core/notification/types.d.ts +0 -6
  27. package/dist/shared/agent/types/status-types.d.ts +0 -5
  28. /package/dist/{core → shared}/notification/presets/index.d.ts +0 -0
package/README.md CHANGED
@@ -30,41 +30,41 @@ OpenCode Orchestrator manages complex software tasks through **parallel multi-ag
30
30
  ## 📊 Workflow
31
31
 
32
32
  ```text
33
- [User Task Input]
34
-
35
- ┌─────────▼─────────┐
36
- COMMANDER │ (Orchestration)
37
- └─────────┬─────────┘
38
-
39
- ┌─────────▼─────────┐
40
- PLANNER │ (Create TODO.md)
41
- └─────────┬─────────┘
42
-
43
- ┌────────────────▼────────────────┐
44
- │ COMMANDER: Parallel Workers
45
- └──────┬─────────┬─────────┬──────┘
46
-
47
- ┌──────▼──┐ ┌────▼───┐ ┌───▼────┐
48
- │ WORKER │ │ WORKER │ │ WORKER
49
- └──────┬──┘ └────┬───┘ └────┬────┘
50
-
51
- ╔══════▼═════════▼══════════▼══════╗
52
- ║ COMMANDER: Parallel Reviewers ║
53
- ╚══════╤═════════╤══════════╤══════╝
54
-
55
- ┌──────▼──┐ ┌────▼───┐ ┌────▼────┐
56
- REVIEWER REVIEWER REVIEWER
57
- └──────┬──┘ └────┬───┘ └────┬────┘
58
-
59
- ═▼═════════▼══════════▼═
60
- SYNC BARRIER
61
- ═══════════╤═══════════
62
-
63
- ┌─────────▼─────────┐
64
- MASTER REVIEWER │ (E2E Verification)
65
- └─────────┬─────────┘
66
-
67
- [MISSION SEALED]
33
+ [ 👤 User Task Input ]
34
+
35
+ ┌───────────▼───────────┐
36
+ 🫡 COMMANDER (Hub) │ (Orchestration)
37
+ └───────────┬───────────┘
38
+
39
+ ┌───────────▼───────────┐
40
+ 🗓️ PLANNER (Map) │ (Create TODO.md)
41
+ └───────────┬───────────┘
42
+
43
+ ┌──────────────────▼──────────────────┐
44
+ COMMANDER: Parallel Spawning
45
+ └──────┬───────────┬───────────┬──────┘
46
+
47
+ ┌──────▼───┐ ┌─────▼────┐ ┌────▼─────┐
48
+ 🔨 WORKER│ │ 🔨 WORKER│ │ 🔨 WORKER│
49
+ └──────┬───┘ └─────┬────┘ └────┬─────┘
50
+
51
+ ╔══════▼═══════════▼═══════════▼══════╗
52
+ 🔍 COMMANDER: Parallel Reviewers ║
53
+ ╚══════╤═══════════╤═══════════╤══════╝
54
+
55
+ ┌──────▼───┐ ┌─────▼────┐ ┌────▼─────┐
56
+ │🔍REVIEWER│ │🔍REVIEWER│ │🔍REVIEWER│
57
+ └──────┬───┘ └─────┬────┘ └────┬─────┘
58
+
59
+ ═▼═══════════▼═══════════▼═
60
+ 🚦 SYNC BARRIER
61
+ ═════════════╤═════════════
62
+
63
+ ┌───────────▼───────────┐
64
+ 👑 MASTER REVIEWER │ (E2E Verification)
65
+ └───────────┬───────────┘
66
+
67
+ [ 🎖️ MISSION SEALED ]
68
68
  ```
69
69
 
70
70
 
@@ -12,26 +12,9 @@
12
12
  */
13
13
  import type { PluginInput } from "@opencode-ai/plugin";
14
14
  import type { ConcurrencyController } from "../agents/concurrency.js";
15
- import { STATUS_LABEL } from "../../shared/index.js";
15
+ import { type TaskStatus, type TrackedTask, type TaskCompletionInfo } from "../../shared/index.js";
16
+ export type { TaskStatus, TrackedTask, TaskCompletionInfo } from "../../shared/index.js";
16
17
  type OpencodeClient = PluginInput["client"];
17
- export type TaskStatus = typeof STATUS_LABEL[keyof typeof STATUS_LABEL];
18
- export interface TrackedTask {
19
- id: string;
20
- description: string;
21
- agent: string;
22
- status: TaskStatus;
23
- startedAt: Date;
24
- isBackground: boolean;
25
- parentSessionID?: string;
26
- sessionID?: string;
27
- }
28
- export interface TaskCompletionInfo {
29
- id: string;
30
- description: string;
31
- duration: string;
32
- status: TaskStatus;
33
- error?: string;
34
- }
35
18
  export declare class TaskToastManager {
36
19
  private tasks;
37
20
  private client;
@@ -80,6 +63,9 @@ export declare class TaskToastManager {
80
63
  * Format duration since task started
81
64
  */
82
65
  private formatDuration;
66
+ /**
67
+ * Get concurrency info string (e.g., " [2/5]")
68
+ */
83
69
  /**
84
70
  * Get concurrency info string (e.g., " [2/5]")
85
71
  */
@@ -100,6 +86,10 @@ export declare class TaskToastManager {
100
86
  * Show all-tasks-complete summary toast
101
87
  */
102
88
  showAllCompleteToast(parentSessionID: string, completedTasks: TaskCompletionInfo[]): void;
89
+ /**
90
+ * Show Mission Sealed toast (Grand Finale)
91
+ */
92
+ showMissionSealedToast(title?: string, message?: string): void;
103
93
  /**
104
94
  * Show progress toast (for long-running tasks)
105
95
  */
@@ -129,4 +119,3 @@ export declare function getTaskToastManager(): TaskToastManager | null;
129
119
  * Initialize the global TaskToastManager
130
120
  */
131
121
  export declare function initTaskToastManager(client: OpencodeClient, concurrency?: ConcurrencyController): TaskToastManager;
132
- export {};
@@ -2,7 +2,7 @@
2
2
  * Toast Core - Core notification functions
3
3
  * Uses OpenCode TUI's showToast API for actual UI display
4
4
  */
5
- import type { ToastMessage, ToastOptions } from "./types.js";
5
+ import type { ToastMessage, ToastOptions } from "../../shared/index.js";
6
6
  import type { PluginInput } from "@opencode-ai/plugin";
7
7
  type OpencodeClient = PluginInput["client"];
8
8
  /**
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Provides notifications for task events, completions, errors
5
5
  */
6
- export type { ToastVariant, ToastMessage, ToastOptions } from "./types.js";
6
+ export type { ToastVariant, ToastMessage, ToastOptions } from "../../shared/index.js";
7
7
  export { show, dismiss, getActive, getHistory, clear, onToast, initToastClient } from "./toast-core.js";
8
- export { presets } from "./presets.js";
8
+ export { presets } from "../../shared/index.js";
9
9
  export { TaskToastManager, getTaskToastManager, initTaskToastManager, type TrackedTask, type TaskStatus, type TaskCompletionInfo, } from "./task-toast-manager.js";