opencode-orchestrator 0.8.21 → 0.9.0
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 +32 -33
- package/dist/agents/commander.d.ts +2 -1
- package/dist/agents/prompts/commander/index.d.ts +2 -0
- package/dist/agents/prompts/commander/loop-continuation.d.ts +6 -0
- package/dist/agents/prompts/commander/sync-handling.d.ts +6 -0
- package/dist/agents/prompts/common/shared-workspace.d.ts +1 -1
- package/dist/agents/prompts/planner/file-planning.d.ts +6 -0
- package/dist/agents/prompts/planner/index.d.ts +2 -0
- package/dist/agents/prompts/planner/todo-sync.d.ts +6 -0
- package/dist/agents/prompts/reviewer/async-monitoring.d.ts +6 -0
- package/dist/agents/prompts/reviewer/index.d.ts +3 -0
- package/dist/agents/prompts/reviewer/integration-testing.d.ts +7 -0
- package/dist/agents/prompts/reviewer/sync-verification.d.ts +6 -0
- package/dist/agents/prompts/worker/file-assignment.d.ts +6 -0
- package/dist/agents/prompts/worker/index.d.ts +3 -0
- package/dist/agents/prompts/worker/isolation-testing.d.ts +6 -0
- package/dist/agents/prompts/worker/tdd-workflow.d.ts +7 -0
- package/dist/agents/subagents/planner.d.ts +2 -1
- package/dist/agents/subagents/reviewer.d.ts +1 -1
- package/dist/agents/subagents/worker.d.ts +3 -2
- package/dist/index.js +888 -19
- package/dist/shared/core/constants/id-prefix.d.ts +7 -1
- package/dist/shared/core/constants/paths.d.ts +4 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/prompt/constants/index.d.ts +5 -0
- package/dist/shared/prompt/constants/status.d.ts +34 -0
- package/dist/shared/prompt/constants/tags.d.ts +147 -0
- package/dist/shared/prompt/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ID Prefixes
|
|
3
|
+
*
|
|
4
|
+
* Format: PREFIX + number (e.g., ses_1, SYNC-42, UT-100)
|
|
5
|
+
* No fixed digit limit - use any positive integer.
|
|
3
6
|
*/
|
|
4
7
|
export declare const ID_PREFIX: {
|
|
5
8
|
readonly TASK: "task_";
|
|
6
9
|
readonly JOB: "job_";
|
|
7
|
-
readonly SESSION: "
|
|
10
|
+
readonly SESSION: "ses_";
|
|
11
|
+
readonly SYNC_ISSUE: "SYNC-";
|
|
12
|
+
readonly UNIT_TEST: "UT-";
|
|
13
|
+
readonly WORKER: "wrk_";
|
|
8
14
|
};
|
|
@@ -11,4 +11,8 @@ export declare const PATHS: {
|
|
|
11
11
|
readonly CONTEXT: ".opencode/context.md";
|
|
12
12
|
readonly SUMMARY: ".opencode/summary.md";
|
|
13
13
|
readonly DOC_METADATA: ".opencode/docs/_metadata.json";
|
|
14
|
+
readonly WORK_LOG: ".opencode/work-log.md";
|
|
15
|
+
readonly UNIT_TESTS: ".opencode/unit-tests";
|
|
16
|
+
readonly SYNC_ISSUES: ".opencode/sync-issues.md";
|
|
17
|
+
readonly INTEGRATION_STATUS: ".opencode/integration-status.md";
|
|
14
18
|
};
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* - shared/tool/ - TOOL_NAMES, TOOL_OUTPUT
|
|
15
15
|
* - shared/message/ - PART_TYPES, PROMPTS
|
|
16
16
|
* - shared/errors/ - ERROR_PATTERNS, ERROR_TYPE
|
|
17
|
+
* - shared/prompt/ - PROMPT_TAGS, WORK_STATUS
|
|
17
18
|
*/
|
|
18
19
|
export * from "./agent/index.js";
|
|
19
20
|
export * from "./core/index.js";
|
|
@@ -27,4 +28,5 @@ export * from "./command/index.js";
|
|
|
27
28
|
export * from "./tool/index.js";
|
|
28
29
|
export * from "./message/index.js";
|
|
29
30
|
export * from "./errors/index.js";
|
|
31
|
+
export * from "./prompt/index.js";
|
|
30
32
|
export { TASK_STATUS, TODO_STATUS } from "../core/agents/consts/task-status.const.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Work Status Constants
|
|
3
|
+
*
|
|
4
|
+
* All status values used in work-log.md, todo.md, sync-issues.md.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WORK_STATUS: {
|
|
7
|
+
readonly ACTION: {
|
|
8
|
+
readonly CREATE: "CREATE";
|
|
9
|
+
readonly MODIFY: "MODIFY";
|
|
10
|
+
readonly DELETE: "DELETE";
|
|
11
|
+
readonly FIX: "FIX";
|
|
12
|
+
};
|
|
13
|
+
readonly STATUS: {
|
|
14
|
+
readonly PENDING: "PENDING";
|
|
15
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
16
|
+
readonly DONE: "DONE";
|
|
17
|
+
readonly FAILED: "FAILED";
|
|
18
|
+
};
|
|
19
|
+
readonly TEST_RESULT: {
|
|
20
|
+
readonly PASS: "PASS";
|
|
21
|
+
readonly FAIL: "FAIL";
|
|
22
|
+
readonly SKIP: "SKIP";
|
|
23
|
+
};
|
|
24
|
+
readonly SEVERITY: {
|
|
25
|
+
readonly HIGH: "HIGH";
|
|
26
|
+
readonly MEDIUM: "MEDIUM";
|
|
27
|
+
readonly LOW: "LOW";
|
|
28
|
+
};
|
|
29
|
+
readonly SESSION: {
|
|
30
|
+
readonly STARTED: "STARTED";
|
|
31
|
+
readonly COMPLETED: "COMPLETED";
|
|
32
|
+
readonly CANCELLED: "CANCELLED";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompt XML Tags
|
|
3
|
+
*
|
|
4
|
+
* All XML tags used in agent prompts MUST be defined here.
|
|
5
|
+
* Tags come in pairs: open and close.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PROMPT_TAGS: {
|
|
8
|
+
readonly ROLE: {
|
|
9
|
+
readonly open: "<role>";
|
|
10
|
+
readonly close: "</role>";
|
|
11
|
+
};
|
|
12
|
+
readonly IDENTITY: {
|
|
13
|
+
readonly open: "<identity>";
|
|
14
|
+
readonly close: "</identity>";
|
|
15
|
+
};
|
|
16
|
+
readonly FORBIDDEN_ACTIONS: {
|
|
17
|
+
readonly open: "<forbidden_actions>";
|
|
18
|
+
readonly close: "</forbidden_actions>";
|
|
19
|
+
};
|
|
20
|
+
readonly REQUIRED_ACTIONS: {
|
|
21
|
+
readonly open: "<required_actions>";
|
|
22
|
+
readonly close: "</required_actions>";
|
|
23
|
+
};
|
|
24
|
+
readonly VERIFICATION: {
|
|
25
|
+
readonly open: "<verification>";
|
|
26
|
+
readonly close: "</verification>";
|
|
27
|
+
};
|
|
28
|
+
readonly ENVIRONMENT_DISCOVERY: {
|
|
29
|
+
readonly open: "<environment_discovery>";
|
|
30
|
+
readonly close: "</environment_discovery>";
|
|
31
|
+
};
|
|
32
|
+
readonly ANTI_HALLUCINATION: {
|
|
33
|
+
readonly open: "<anti_hallucination>";
|
|
34
|
+
readonly close: "</anti_hallucination>";
|
|
35
|
+
};
|
|
36
|
+
readonly TODO_RULES: {
|
|
37
|
+
readonly open: "<todo_rules>";
|
|
38
|
+
readonly close: "</todo_rules>";
|
|
39
|
+
};
|
|
40
|
+
readonly MISSION_SEAL: {
|
|
41
|
+
readonly open: "<mission_seal>";
|
|
42
|
+
readonly close: "</mission_seal>";
|
|
43
|
+
};
|
|
44
|
+
readonly SHARED_WORKSPACE: {
|
|
45
|
+
readonly open: "<shared_workspace>";
|
|
46
|
+
readonly close: "</shared_workspace>";
|
|
47
|
+
};
|
|
48
|
+
readonly TOOLS: {
|
|
49
|
+
readonly open: "<tools>";
|
|
50
|
+
readonly close: "</tools>";
|
|
51
|
+
};
|
|
52
|
+
readonly AGENTS: {
|
|
53
|
+
readonly open: "<agents>";
|
|
54
|
+
readonly close: "</agents>";
|
|
55
|
+
};
|
|
56
|
+
readonly EXECUTION_STRATEGY: {
|
|
57
|
+
readonly open: "<execution_strategy>";
|
|
58
|
+
readonly close: "</execution_strategy>";
|
|
59
|
+
};
|
|
60
|
+
readonly PARALLEL_EXECUTION: {
|
|
61
|
+
readonly open: "<parallel_execution>";
|
|
62
|
+
readonly close: "</parallel_execution>";
|
|
63
|
+
};
|
|
64
|
+
readonly TODO_FORMAT: {
|
|
65
|
+
readonly open: "<todo_format>";
|
|
66
|
+
readonly close: "</todo_format>";
|
|
67
|
+
};
|
|
68
|
+
readonly SYNC_ISSUE_HANDLING: {
|
|
69
|
+
readonly open: "<sync_issue_handling>";
|
|
70
|
+
readonly close: "</sync_issue_handling>";
|
|
71
|
+
};
|
|
72
|
+
readonly LOOP_CONTINUATION: {
|
|
73
|
+
readonly open: "<loop_continuation>";
|
|
74
|
+
readonly close: "</loop_continuation>";
|
|
75
|
+
};
|
|
76
|
+
readonly FILE_LEVEL_PLANNING: {
|
|
77
|
+
readonly open: "<file_level_planning>";
|
|
78
|
+
readonly close: "</file_level_planning>";
|
|
79
|
+
};
|
|
80
|
+
readonly TODO_SYNC: {
|
|
81
|
+
readonly open: "<todo_sync>";
|
|
82
|
+
readonly close: "</todo_sync>";
|
|
83
|
+
};
|
|
84
|
+
readonly PLANNING_FORMAT: {
|
|
85
|
+
readonly open: "<planning_format>";
|
|
86
|
+
readonly close: "</planning_format>";
|
|
87
|
+
};
|
|
88
|
+
readonly RESEARCH_WORKFLOW: {
|
|
89
|
+
readonly open: "<research_workflow>";
|
|
90
|
+
readonly close: "</research_workflow>";
|
|
91
|
+
};
|
|
92
|
+
readonly FILE_ASSIGNMENT: {
|
|
93
|
+
readonly open: "<file_assignment>";
|
|
94
|
+
readonly close: "</file_assignment>";
|
|
95
|
+
};
|
|
96
|
+
readonly TDD_WORKFLOW: {
|
|
97
|
+
readonly open: "<tdd_workflow>";
|
|
98
|
+
readonly close: "</tdd_workflow>";
|
|
99
|
+
};
|
|
100
|
+
readonly ISOLATION_TESTING: {
|
|
101
|
+
readonly open: "<isolation_testing>";
|
|
102
|
+
readonly close: "</isolation_testing>";
|
|
103
|
+
};
|
|
104
|
+
readonly WORKFLOW: {
|
|
105
|
+
readonly open: "<workflow>";
|
|
106
|
+
readonly close: "</workflow>";
|
|
107
|
+
};
|
|
108
|
+
readonly QUALITY_CHECKLIST: {
|
|
109
|
+
readonly open: "<quality_checklist>";
|
|
110
|
+
readonly close: "</quality_checklist>";
|
|
111
|
+
};
|
|
112
|
+
readonly SYNC_VERIFICATION: {
|
|
113
|
+
readonly open: "<sync_verification>";
|
|
114
|
+
readonly close: "</sync_verification>";
|
|
115
|
+
};
|
|
116
|
+
readonly ASYNC_MONITORING: {
|
|
117
|
+
readonly open: "<async_monitoring>";
|
|
118
|
+
readonly close: "</async_monitoring>";
|
|
119
|
+
};
|
|
120
|
+
readonly INTEGRATION_TESTING: {
|
|
121
|
+
readonly open: "<integration_testing>";
|
|
122
|
+
readonly close: "</integration_testing>";
|
|
123
|
+
};
|
|
124
|
+
readonly VERIFICATION_PROCESS: {
|
|
125
|
+
readonly open: "<verification_process>";
|
|
126
|
+
readonly close: "</verification_process>";
|
|
127
|
+
};
|
|
128
|
+
readonly TODO_MANAGEMENT: {
|
|
129
|
+
readonly open: "<todo_management>";
|
|
130
|
+
readonly close: "</todo_management>";
|
|
131
|
+
};
|
|
132
|
+
readonly OUTPUT_FORMAT: {
|
|
133
|
+
readonly open: "<output_format>";
|
|
134
|
+
readonly close: "</output_format>";
|
|
135
|
+
};
|
|
136
|
+
readonly MISSION_LOOP: {
|
|
137
|
+
readonly open: "<mission_loop>";
|
|
138
|
+
readonly close: "</mission_loop>";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Helper to wrap content in tags
|
|
143
|
+
*/
|
|
144
|
+
export declare const wrapTag: (tag: {
|
|
145
|
+
open: string;
|
|
146
|
+
close: string;
|
|
147
|
+
}, content: string) => string;
|
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.
|
|
5
|
+
"version": "0.9.0",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|