opencode-orchestrator 1.2.32 → 1.2.35
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/dist/core/agents/concurrency.d.ts +1 -4
- package/dist/core/agents/config.d.ts +1 -2
- package/dist/core/agents/manager/task-poller.d.ts +2 -4
- package/dist/core/agents/manager.d.ts +5 -1
- package/dist/core/agents/session-pool.d.ts +0 -5
- package/dist/core/loop/verification.d.ts +0 -5
- package/dist/core/sync/todo-sync-service.d.ts +0 -7
- package/dist/hooks/types.d.ts +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +26795 -21318
- package/dist/scripts/postinstall.js +29 -125
- package/dist/shared/constants/system-messages.d.ts +1 -1
- package/dist/shared/loop/constants/mission-control.d.ts +2 -2
- package/dist/shared/prompt/constants/tags.d.ts +0 -4
- package/dist/shared/session/constants/events/index.d.ts +0 -5
- package/dist/shared/task/constants/parallel-task.d.ts +4 -5
- package/package.json +1 -1
- package/dist/core/agents/unified-task-executor.d.ts +0 -109
- package/dist/core/loop/continuation-lock.d.ts +0 -57
- package/dist/core/mission/mission-controller.d.ts +0 -53
- package/dist/core/resource/resource-tracker.d.ts +0 -61
- package/dist/core/session/session-health.d.ts +0 -93
- package/dist/shared/core/constants/labels.d.ts +0 -12
- package/dist/shared/core/constants/mission.d.ts +0 -8
- package/dist/shared/core/constants/os.d.ts +0 -10
- package/dist/shared/core/constants/signals.d.ts +0 -22
- package/dist/shared/prompt/constants/prompts.d.ts +0 -7
- package/dist/shared/session/constants/events/hook-events.d.ts +0 -9
- package/dist/shared/session/constants/message.d.ts +0 -15
- package/dist/shared/session/constants/status.d.ts +0 -9
|
@@ -26,10 +26,7 @@ export declare class ConcurrencyController {
|
|
|
26
26
|
acquire(key: string): Promise<void>;
|
|
27
27
|
release(key: string): void;
|
|
28
28
|
/**
|
|
29
|
-
* Report success/failure
|
|
30
|
-
*
|
|
31
|
-
* Auto-scaling has been removed for stability. Concurrency is now fixed at 5.
|
|
32
|
-
* This method is kept for backwards compatibility and metrics tracking.
|
|
29
|
+
* Report success/failure to adjust concurrency dynamically
|
|
33
30
|
*/
|
|
34
31
|
reportResult(key: string, success: boolean): void;
|
|
35
32
|
getQueueLength(key: string): number;
|
|
@@ -14,14 +14,12 @@ export declare class TaskPoller {
|
|
|
14
14
|
private scheduleCleanup;
|
|
15
15
|
private pruneExpiredTasks;
|
|
16
16
|
private onTaskComplete?;
|
|
17
|
-
private
|
|
18
|
-
private pollTimeout?;
|
|
17
|
+
private pollingInterval?;
|
|
19
18
|
private messageCache;
|
|
20
|
-
constructor(client: OpencodeClient, store: TaskStore, concurrency: ConcurrencyController, notifyParentIfAllComplete: (parentSessionID: string) => Promise<void>, scheduleCleanup: (taskId: string) => void, pruneExpiredTasks: () => void, onTaskComplete?: ((task: ParallelTask) => void | Promise<void>) | undefined
|
|
19
|
+
constructor(client: OpencodeClient, store: TaskStore, concurrency: ConcurrencyController, notifyParentIfAllComplete: (parentSessionID: string) => Promise<void>, scheduleCleanup: (taskId: string) => void, pruneExpiredTasks: () => void, onTaskComplete?: ((task: ParallelTask) => void | Promise<void>) | undefined);
|
|
21
20
|
start(): void;
|
|
22
21
|
stop(): void;
|
|
23
22
|
isRunning(): boolean;
|
|
24
|
-
private scheduleNextPoll;
|
|
25
23
|
poll(): Promise<void>;
|
|
26
24
|
validateSessionHasOutput(sessionID: string, task?: ParallelTask): Promise<boolean>;
|
|
27
25
|
completeTask(task: ParallelTask): Promise<void>;
|
|
@@ -24,7 +24,11 @@ export declare class ParallelAgentManager {
|
|
|
24
24
|
private directory;
|
|
25
25
|
private concurrency;
|
|
26
26
|
private sessionPool;
|
|
27
|
-
private
|
|
27
|
+
private launcher;
|
|
28
|
+
private resumer;
|
|
29
|
+
private poller;
|
|
30
|
+
private cleaner;
|
|
31
|
+
private eventHandler;
|
|
28
32
|
private constructor();
|
|
29
33
|
static getInstance(client?: OpencodeClient, directory?: string): ParallelAgentManager;
|
|
30
34
|
launch(inputs: LaunchInput | LaunchInput[]): Promise<ParallelTask | ParallelTask[]>;
|
|
@@ -23,7 +23,6 @@ export declare class SessionPool implements ISessionPool {
|
|
|
23
23
|
static getInstance(client?: OpencodeClient, directory?: string, config?: Partial<SessionPoolConfig>): SessionPool;
|
|
24
24
|
/**
|
|
25
25
|
* Acquire a session from the pool or create a new one.
|
|
26
|
-
* Sessions are validated before reuse to ensure health.
|
|
27
26
|
*/
|
|
28
27
|
acquire(agentName: string, parentSessionID: string, description: string): Promise<PooledSession>;
|
|
29
28
|
/**
|
|
@@ -53,10 +52,6 @@ export declare class SessionPool implements ISessionPool {
|
|
|
53
52
|
private getPoolKey;
|
|
54
53
|
private createSession;
|
|
55
54
|
private deleteSession;
|
|
56
|
-
/**
|
|
57
|
-
* Validate session health by checking if it exists on the server.
|
|
58
|
-
*/
|
|
59
|
-
private validateSessionHealth;
|
|
60
55
|
private startHealthCheck;
|
|
61
56
|
}
|
|
62
57
|
export declare const sessionPool: {
|
|
@@ -11,16 +11,11 @@ export type { ChecklistItem, ChecklistCategory, ChecklistVerificationResult, Ver
|
|
|
11
11
|
export declare const CHECKLIST_FILE: ".opencode/verification-checklist.md";
|
|
12
12
|
export declare function parseChecklist(content: string): ChecklistItem[];
|
|
13
13
|
export declare function readChecklist(directory: string): ChecklistItem[];
|
|
14
|
-
export declare function readChecklistAsync(directory: string): Promise<ChecklistItem[]>;
|
|
15
|
-
export declare function clearVerificationCache(): void;
|
|
16
14
|
export declare function verifyChecklist(directory: string): ChecklistVerificationResult;
|
|
17
|
-
export declare function verifyChecklistAsync(directory: string): Promise<ChecklistVerificationResult>;
|
|
18
15
|
export declare function hasValidChecklist(directory: string): boolean;
|
|
19
16
|
export declare function getChecklistSummary(directory: string): string;
|
|
20
17
|
export declare function buildChecklistFailurePrompt(result: ChecklistVerificationResult): string;
|
|
21
18
|
export declare function getChecklistCreationInstructions(): string;
|
|
22
|
-
export declare function verifyMissionCompletionSync(directory: string): VerificationResult;
|
|
23
|
-
export declare function verifyMissionCompletionAsync(directory: string): Promise<VerificationResult>;
|
|
24
19
|
export declare function verifyMissionCompletion(directory: string): VerificationResult;
|
|
25
20
|
export declare function buildVerificationFailurePrompt(result: VerificationResult): string;
|
|
26
21
|
export declare function buildTodoIncompletePrompt(result: VerificationResult): string;
|
|
@@ -16,9 +16,6 @@ export declare class TodoSyncService {
|
|
|
16
16
|
private taskTodos;
|
|
17
17
|
private updateTimeout;
|
|
18
18
|
private watcher;
|
|
19
|
-
private pendingUpdates;
|
|
20
|
-
private batchTimer;
|
|
21
|
-
private readonly BATCH_WINDOW_MS;
|
|
22
19
|
private activeSessions;
|
|
23
20
|
constructor(client: OpencodeClient, directory: string);
|
|
24
21
|
start(): Promise<void>;
|
|
@@ -32,10 +29,6 @@ export declare class TodoSyncService {
|
|
|
32
29
|
removeTask(taskId: string): void;
|
|
33
30
|
private broadcastUpdate;
|
|
34
31
|
private scheduleUpdate;
|
|
35
|
-
/**
|
|
36
|
-
* Flush all pending updates in parallel batches
|
|
37
|
-
*/
|
|
38
|
-
private flushBatchedUpdates;
|
|
39
32
|
private sendTodosToSession;
|
|
40
33
|
stop(): void;
|
|
41
34
|
}
|
package/dist/hooks/types.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenCode Orchestrator Plugin
|
|
3
|
+
*
|
|
4
|
+
* This is the main entry point for the 4-Agent consolidated architecture.
|
|
5
|
+
* Handlers are modularized in src/plugin-handlers/ for maintainability.
|
|
6
|
+
*
|
|
7
|
+
* The agents are: Commander, Planner, Worker, Reviewer
|
|
8
|
+
*/
|
|
1
9
|
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
10
|
declare const OrchestratorPlugin: Plugin;
|
|
3
11
|
export default OrchestratorPlugin;
|