opencode-orchestrator 0.8.19 → 0.8.21
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/README.md +12 -0
- package/dist/agents/commander.d.ts +1 -1
- package/dist/agents/definitions.d.ts +1 -1
- package/dist/agents/subagents/planner.d.ts +1 -1
- package/dist/agents/subagents/reviewer.d.ts +1 -1
- package/dist/agents/subagents/worker.d.ts +1 -1
- package/dist/core/agents/config.d.ts +1 -1
- package/dist/core/cache/constants.d.ts +2 -0
- package/dist/core/orchestrator/state.d.ts +2 -2
- package/dist/core/orchestrator/types/task-status.d.ts +2 -1
- package/dist/core/recovery/constants.d.ts +6 -3
- package/dist/core/task/interfaces/index.d.ts +1 -1
- package/dist/core/task/interfaces/task-node.d.ts +1 -1
- package/dist/index.js +317 -173
- package/dist/shared/agent/constants/agent-tokens.d.ts +11 -0
- package/dist/shared/agent/constants/index.d.ts +7 -0
- package/dist/shared/agent/{names.d.ts → constants/names.d.ts} +1 -2
- package/dist/shared/agent/index.d.ts +4 -4
- package/dist/shared/agent/{definition.d.ts → interfaces/agent-definition.d.ts} +1 -1
- package/dist/shared/agent/interfaces/concurrency-config.d.ts +9 -0
- package/dist/shared/agent/interfaces/index.d.ts +5 -0
- package/dist/shared/agent/types/agent-name.d.ts +5 -0
- package/dist/shared/agent/types/index.d.ts +4 -0
- package/dist/shared/cache/constants/cache.d.ts +11 -0
- package/dist/shared/cache/constants/index.d.ts +8 -0
- package/dist/shared/cache/index.d.ts +4 -0
- package/dist/shared/command/index.d.ts +5 -0
- package/dist/shared/command/interfaces/background-task.d.ts +20 -0
- package/dist/shared/command/interfaces/index.d.ts +5 -0
- package/dist/shared/command/interfaces/run-background-options.d.ts +9 -0
- package/dist/shared/command/types/background-task-status.d.ts +4 -0
- package/dist/shared/command/types/index.d.ts +4 -0
- package/dist/shared/core/constants/index.d.ts +7 -0
- package/dist/shared/core/index.d.ts +4 -0
- package/dist/shared/errors/index.d.ts +1 -1
- package/dist/shared/errors/patterns.d.ts +13 -0
- package/dist/shared/errors/retry.d.ts +1 -1
- package/dist/shared/index.d.ts +30 -0
- package/dist/shared/loop/constants/index.d.ts +5 -0
- package/dist/shared/loop/constants/loop.d.ts +17 -0
- package/dist/shared/loop/index.d.ts +6 -0
- package/dist/shared/loop/interfaces/index.d.ts +5 -0
- package/dist/shared/loop/interfaces/todo-stats.d.ts +11 -0
- package/dist/shared/loop/interfaces/todo.d.ts +13 -0
- package/dist/shared/loop/types/index.d.ts +5 -0
- package/dist/shared/loop/types/todo-priority.d.ts +4 -0
- package/dist/shared/loop/types/todo-status.d.ts +4 -0
- package/dist/shared/message/constants/index.d.ts +6 -0
- package/dist/shared/message/index.d.ts +4 -0
- package/dist/shared/notification/constants/index.d.ts +5 -0
- package/dist/shared/notification/constants/toast-duration.d.ts +19 -0
- package/dist/shared/notification/index.d.ts +6 -0
- package/dist/shared/notification/interfaces/index.d.ts +5 -0
- package/dist/shared/notification/interfaces/toast-message.d.ts +13 -0
- package/dist/shared/notification/interfaces/toast-options.d.ts +10 -0
- package/dist/shared/notification/types/index.d.ts +4 -0
- package/dist/shared/notification/types/toast-variant.d.ts +4 -0
- package/dist/shared/recovery/constants/history.d.ts +11 -0
- package/dist/shared/recovery/constants/index.d.ts +5 -0
- package/dist/shared/recovery/constants/recovery.d.ts +13 -0
- package/dist/shared/recovery/index.d.ts +6 -0
- package/dist/shared/recovery/interfaces/error-context.d.ts +11 -0
- package/dist/shared/recovery/interfaces/index.d.ts +5 -0
- package/dist/shared/recovery/interfaces/recovery-record.d.ts +10 -0
- package/dist/shared/recovery/types/index.d.ts +4 -0
- package/dist/shared/recovery/types/recovery-action.d.ts +4 -0
- package/dist/shared/session/constants/index.d.ts +7 -0
- package/dist/shared/session/constants/session-events.d.ts +10 -0
- package/dist/shared/session/index.d.ts +4 -0
- package/dist/shared/{constants → task/constants}/background-task.d.ts +3 -0
- package/dist/shared/task/constants/index.d.ts +7 -0
- package/dist/shared/{constants → task/constants}/parallel-task.d.ts +7 -4
- package/dist/shared/task/index.d.ts +6 -0
- package/dist/shared/task/interfaces/index.d.ts +7 -0
- package/dist/shared/task/interfaces/launch-input.d.ts +11 -0
- package/dist/shared/task/interfaces/parallel-task.d.ts +26 -0
- package/dist/shared/task/interfaces/resume-input.d.ts +16 -0
- package/dist/shared/task/interfaces/task-progress.d.ts +9 -0
- package/dist/shared/task/types/index.d.ts +4 -0
- package/dist/shared/task/types/parallel-task-status.d.ts +4 -0
- package/dist/shared/tool/constants/index.d.ts +5 -0
- package/dist/shared/tool/constants/tool-output.d.ts +9 -0
- package/dist/shared/tool/index.d.ts +4 -0
- package/package.json +1 -1
- package/dist/shared/agent.d.ts +0 -6
- package/dist/shared/constants/index.d.ts +0 -28
- package/dist/shared/constants.d.ts +0 -7
- package/dist/shared/error-patterns.d.ts +0 -6
- /package/dist/shared/{constants → agent/constants}/status.d.ts +0 -0
- /package/dist/shared/{constants → cache/constants}/cache-actions.d.ts +0 -0
- /package/dist/shared/{constants → cache/constants}/filter-status.d.ts +0 -0
- /package/dist/shared/{constants → core/constants}/id-prefix.d.ts +0 -0
- /package/dist/shared/{constants → core/constants}/memory-limits.d.ts +0 -0
- /package/dist/shared/{constants → core/constants}/paths.d.ts +0 -0
- /package/dist/shared/{constants → core/constants}/time.d.ts +0 -0
- /package/dist/shared/{constants → loop/constants}/mission-seal.d.ts +0 -0
- /package/dist/shared/{constants → message/constants}/part-types.d.ts +0 -0
- /package/dist/shared/{constants → message/constants}/prompts.d.ts +0 -0
- /package/dist/shared/{constants → message/constants}/slash-commands.d.ts +0 -0
- /package/dist/shared/{constants → notification/constants}/toast-variants.d.ts +0 -0
- /package/dist/shared/{event-types.d.ts → session/constants/event-types.d.ts} +0 -0
- /package/dist/shared/{constants → task/constants}/background-status.d.ts +0 -0
- /package/dist/shared/{constants → tool/constants}/tool-names.d.ts +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parallel task running in child session
|
|
3
|
+
*/
|
|
4
|
+
import type { ParallelTaskStatus } from "../types/index.js";
|
|
5
|
+
import type { TaskProgress } from "./task-progress.js";
|
|
6
|
+
export interface ParallelTask {
|
|
7
|
+
id: string;
|
|
8
|
+
sessionID: string;
|
|
9
|
+
parentSessionID: string;
|
|
10
|
+
description: string;
|
|
11
|
+
prompt: string;
|
|
12
|
+
agent: string;
|
|
13
|
+
status: ParallelTaskStatus;
|
|
14
|
+
startedAt: Date;
|
|
15
|
+
completedAt?: Date;
|
|
16
|
+
error?: string;
|
|
17
|
+
result?: string;
|
|
18
|
+
concurrencyKey?: string;
|
|
19
|
+
/** Depth tracking - prevents infinite recursion */
|
|
20
|
+
depth: number;
|
|
21
|
+
/** Stability detection */
|
|
22
|
+
lastMsgCount?: number;
|
|
23
|
+
stablePolls?: number;
|
|
24
|
+
/** Progress tracking */
|
|
25
|
+
progress?: TaskProgress;
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input for resuming an existing parallel task session
|
|
3
|
+
*
|
|
4
|
+
* Preserves context for:
|
|
5
|
+
* - Retry after failure
|
|
6
|
+
* - Follow-up questions
|
|
7
|
+
* - Token efficiency
|
|
8
|
+
*/
|
|
9
|
+
export interface ResumeInput {
|
|
10
|
+
/** Session ID to resume */
|
|
11
|
+
sessionId: string;
|
|
12
|
+
/** New prompt for resumed session */
|
|
13
|
+
prompt: string;
|
|
14
|
+
/** Parent session for notifications */
|
|
15
|
+
parentSessionID: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Output Configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare const TOOL_OUTPUT: {
|
|
5
|
+
/** Maximum length for healthy output capture */
|
|
6
|
+
readonly MAX_HEALTHY_OUTPUT_LENGTH: 1000;
|
|
7
|
+
/** Threshold for considering output small enough to capture */
|
|
8
|
+
readonly SMALL_OUTPUT_THRESHOLD: 5000;
|
|
9
|
+
};
|
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.
|
|
5
|
+
"version": "0.8.21",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
package/dist/shared/agent.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared Constants - Index
|
|
3
|
-
*
|
|
4
|
-
* Re-exports all constants for backward compatibility.
|
|
5
|
-
*/
|
|
6
|
-
export { TIME } from "./time.js";
|
|
7
|
-
export { ID_PREFIX } from "./id-prefix.js";
|
|
8
|
-
export { PARALLEL_TASK } from "./parallel-task.js";
|
|
9
|
-
export { MEMORY_LIMITS } from "./memory-limits.js";
|
|
10
|
-
export { PATHS } from "./paths.js";
|
|
11
|
-
export { BACKGROUND_TASK } from "./background-task.js";
|
|
12
|
-
export { TOOL_NAMES } from "./tool-names.js";
|
|
13
|
-
export { MISSION_SEAL, MISSION } from "./mission-seal.js";
|
|
14
|
-
export { SLASH_COMMANDS } from "./slash-commands.js";
|
|
15
|
-
export { AGENT_EMOJI, STATUS_EMOJI, getStatusEmoji } from "./status.js";
|
|
16
|
-
export type { TaskStatus } from "./status.js";
|
|
17
|
-
export { PART_TYPES } from "./part-types.js";
|
|
18
|
-
export { PROMPTS } from "./prompts.js";
|
|
19
|
-
export { CACHE_ACTIONS } from "./cache-actions.js";
|
|
20
|
-
export type { CacheAction } from "./cache-actions.js";
|
|
21
|
-
export { BACKGROUND_STATUS } from "./background-status.js";
|
|
22
|
-
export type { BackgroundStatus } from "./background-status.js";
|
|
23
|
-
export { TOAST_VARIANTS } from "./toast-variants.js";
|
|
24
|
-
export { FILTER_STATUS } from "./filter-status.js";
|
|
25
|
-
export type { FilterStatus } from "./filter-status.js";
|
|
26
|
-
export { AGENT_NAMES } from "../agent.js";
|
|
27
|
-
export { TASK_STATUS, TODO_STATUS } from "../../core/agents/consts/task-status.const.js";
|
|
28
|
-
export type { ParallelTaskStatus } from "../../core/agents/types/parallel-task-status.type.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|