opencode-orchestrator 1.0.65 → 1.0.72
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 +60 -104
- package/dist/core/agents/agent-registry.d.ts +29 -0
- package/dist/core/agents/interfaces/session-pool.interface.d.ts +79 -0
- package/dist/core/agents/manager/task-cleaner.d.ts +3 -1
- package/dist/core/agents/manager/task-launcher.d.ts +4 -2
- package/dist/core/agents/manager.d.ts +2 -0
- package/dist/core/agents/session-pool.d.ts +58 -0
- package/dist/core/loop/todo-manager.d.ts +18 -0
- package/dist/core/memory/interfaces.d.ts +33 -0
- package/dist/core/memory/memory-manager.d.ts +40 -0
- package/dist/core/metrics/collector.d.ts +27 -0
- package/dist/core/orchestrator/session-manager.d.ts +0 -1
- package/dist/core/plugins/interfaces.d.ts +30 -0
- package/dist/core/plugins/plugin-manager.d.ts +21 -0
- package/dist/core/progress/progress-notifier.d.ts +14 -0
- package/dist/core/progress/state-broadcaster.d.ts +29 -0
- package/dist/core/progress/terminal-monitor.d.ts +13 -0
- package/dist/core/recovery/interfaces/recovery-action.d.ts +1 -0
- package/dist/hooks/constants.d.ts +4 -1
- package/dist/hooks/custom/memory-gate.d.ts +21 -0
- package/dist/hooks/custom/metrics.d.ts +14 -0
- package/dist/index.js +1621 -469
- package/dist/shared/core/constants/index.d.ts +1 -0
- package/dist/shared/core/constants/memory-hooks.d.ts +66 -0
- package/dist/shared/core/constants/paths.d.ts +2 -0
- package/dist/shared/tool/constants/tool-names.d.ts +3 -0
- package/dist/tools/lsp/diagnostics-cache.d.ts +14 -0
- package/dist/tools/parallel/list-agents.d.ts +10 -0
- package/dist/tools/parallel/show-metrics.d.ts +10 -0
- package/dist/tools/parallel/update-todo.d.ts +28 -0
- package/package.json +1 -1
|
@@ -9,4 +9,5 @@ export { STATUS_LABEL, type TaskStatus } from "./status-labels.js";
|
|
|
9
9
|
export { LIMITS } from "./limits.js";
|
|
10
10
|
export { WAL_ACTIONS } from "./wal-actions.js";
|
|
11
11
|
export { PHASES } from "./phases.js";
|
|
12
|
+
export { MEMORY_CONSTANTS, HOOK_NAMES, TODO_CONSTANTS, TUI_CONSTANTS } from "./memory-hooks.js";
|
|
12
13
|
export * from "./cli.js";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const MEMORY_CONSTANTS: {
|
|
2
|
+
readonly ID_PREFIX: "mem_";
|
|
3
|
+
readonly LEVELS: {
|
|
4
|
+
readonly SYSTEM: "system";
|
|
5
|
+
readonly PROJECT: "project";
|
|
6
|
+
readonly MISSION: "mission";
|
|
7
|
+
readonly TASK: "task";
|
|
8
|
+
};
|
|
9
|
+
readonly IMPORTANCE: {
|
|
10
|
+
readonly LOW: 0.3;
|
|
11
|
+
readonly NORMAL: 0.5;
|
|
12
|
+
readonly HIGH: 0.7;
|
|
13
|
+
readonly CRITICAL: 0.9;
|
|
14
|
+
};
|
|
15
|
+
readonly NOISY_TOOLS: string[];
|
|
16
|
+
readonly KEYWORDS: {
|
|
17
|
+
readonly DONE: "DONE";
|
|
18
|
+
readonly SUCCESS: "SUCCESS";
|
|
19
|
+
readonly ERROR: "ERROR";
|
|
20
|
+
readonly FAIL: "FAIL";
|
|
21
|
+
};
|
|
22
|
+
readonly MAX_CONTENT_LENGTH: 1000;
|
|
23
|
+
};
|
|
24
|
+
export declare const HOOK_NAMES: {
|
|
25
|
+
readonly MEMORY_GATE: "MemoryGate";
|
|
26
|
+
readonly METRICS_TELEMETRY: "MetricsTelemetry";
|
|
27
|
+
readonly SANITY_CHECK: "SanityCheck";
|
|
28
|
+
readonly MISSION_LOOP: "MissionLoop";
|
|
29
|
+
readonly MISSION_CONTROL: "MissionControl";
|
|
30
|
+
readonly STRICT_ROLE_GUARD: "StrictRoleGuard";
|
|
31
|
+
readonly SECRET_SCANNER: "SecretScanner";
|
|
32
|
+
readonly AGENT_UI: "AgentUI";
|
|
33
|
+
readonly RESOURCE_CONTROL: "ResourceControl";
|
|
34
|
+
readonly USER_ACTIVITY: "UserActivity";
|
|
35
|
+
readonly SLASH_COMMAND: "SlashCommandDispatcher";
|
|
36
|
+
};
|
|
37
|
+
export declare const TODO_CONSTANTS: {
|
|
38
|
+
readonly MARKERS: {
|
|
39
|
+
readonly PENDING: "[ ]";
|
|
40
|
+
readonly COMPLETED: "[x]";
|
|
41
|
+
readonly PROGRESS: "[/]";
|
|
42
|
+
readonly FAILED: "[-]";
|
|
43
|
+
};
|
|
44
|
+
readonly STATUS: {
|
|
45
|
+
readonly PENDING: "pending";
|
|
46
|
+
readonly COMPLETED: "completed";
|
|
47
|
+
readonly PROGRESS: "progress";
|
|
48
|
+
readonly FAILED: "failed";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const TUI_CONSTANTS: {
|
|
52
|
+
readonly BAR_WIDTH: 30;
|
|
53
|
+
readonly COLORS: {
|
|
54
|
+
readonly PROGRESS: "\u001B[36m";
|
|
55
|
+
readonly AGENT: "\u001B[32m";
|
|
56
|
+
readonly RESET: "\u001B[0m";
|
|
57
|
+
readonly BOLD: "\u001B[1m";
|
|
58
|
+
readonly DIM: "\u001B[2m";
|
|
59
|
+
};
|
|
60
|
+
readonly LABELS: {
|
|
61
|
+
readonly IDLE: "Idle";
|
|
62
|
+
readonly WAITING: "Waiting for tasks...";
|
|
63
|
+
readonly PROGRESS_TITLE: "MISSION PROGRESS";
|
|
64
|
+
readonly AGENT_TITLE: "ACTIVE AGENTS";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -16,4 +16,6 @@ export declare const PATHS: {
|
|
|
16
16
|
readonly SYNC_ISSUES: ".opencode/sync-issues.md";
|
|
17
17
|
readonly INTEGRATION_STATUS: ".opencode/integration-status.md";
|
|
18
18
|
readonly STATUS: ".opencode/status.md";
|
|
19
|
+
readonly AGENTS_CONFIG: ".opencode/agents.json";
|
|
20
|
+
readonly PLUGINS: ".opencode/plugins";
|
|
19
21
|
};
|
|
@@ -6,6 +6,9 @@ export declare const TOOL_NAMES: {
|
|
|
6
6
|
readonly GET_TASK_RESULT: "get_task_result";
|
|
7
7
|
readonly LIST_TASKS: "list_tasks";
|
|
8
8
|
readonly CANCEL_TASK: "cancel_task";
|
|
9
|
+
readonly LIST_AGENTS: "list_agents";
|
|
10
|
+
readonly SHOW_METRICS: "show_metrics";
|
|
11
|
+
readonly UPDATE_TODO: "update_todo";
|
|
9
12
|
readonly RUN_BACKGROUND: "run_background";
|
|
10
13
|
readonly CHECK_BACKGROUND: "check_background";
|
|
11
14
|
readonly LIST_BACKGROUND: "list_background";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CachedDiagnostics {
|
|
2
|
+
diagnostics: any;
|
|
3
|
+
timestamp: number;
|
|
4
|
+
filesMtime: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class DiagnosticsCache {
|
|
7
|
+
private cache;
|
|
8
|
+
private defaultTTL;
|
|
9
|
+
get(directory: string, file?: string): Promise<any | null>;
|
|
10
|
+
set(directory: string, file: string | undefined, diagnostics: any): Promise<void>;
|
|
11
|
+
private getCacheKey;
|
|
12
|
+
private getFilesMtime;
|
|
13
|
+
}
|
|
14
|
+
export declare const diagnosticsCache: DiagnosticsCache;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* list_agents Tool
|
|
3
|
+
*
|
|
4
|
+
* Lists all available agents, including built-in and custom templates.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createListAgentsTool: () => {
|
|
7
|
+
description: string;
|
|
8
|
+
args: {};
|
|
9
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* show_metrics Tool
|
|
3
|
+
*
|
|
4
|
+
* Displays a performance dashboard for the current mission.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createShowMetricsTool: () => {
|
|
7
|
+
description: string;
|
|
8
|
+
args: {};
|
|
9
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* update_todo Tool
|
|
3
|
+
*
|
|
4
|
+
* Performs incremental updates to .opencode/todo.md
|
|
5
|
+
*/
|
|
6
|
+
export declare const createUpdateTodoTool: () => {
|
|
7
|
+
description: string;
|
|
8
|
+
args: {
|
|
9
|
+
action: import("zod").ZodEnum<{
|
|
10
|
+
update: "update";
|
|
11
|
+
add: "add";
|
|
12
|
+
}>;
|
|
13
|
+
task: import("zod").ZodString;
|
|
14
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
15
|
+
pending: "pending";
|
|
16
|
+
completed: "completed";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
progress: "progress";
|
|
19
|
+
}>>;
|
|
20
|
+
subtask: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
};
|
|
22
|
+
execute(args: {
|
|
23
|
+
action: "update" | "add";
|
|
24
|
+
task: string;
|
|
25
|
+
status?: "pending" | "completed" | "failed" | "progress" | undefined;
|
|
26
|
+
subtask?: string | undefined;
|
|
27
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
28
|
+
};
|
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": "1.0.
|
|
5
|
+
"version": "1.0.72",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|