opencode-conductor-plugin 1.17.3 → 1.18.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/dist/index.js +38 -42
- package/dist/prompts/agent/conductor.md +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -120,8 +120,7 @@ const ConductorPlugin = async (ctx) => {
|
|
|
120
120
|
conductor: {
|
|
121
121
|
description: "Conductor Protocol Steward.",
|
|
122
122
|
mode: "primary",
|
|
123
|
-
prompt: conductorPrompt
|
|
124
|
-
(workflowMd ? "\n\n### PROJECT WORKFLOW\n" + workflowMd : ""),
|
|
123
|
+
prompt: conductorPrompt,
|
|
125
124
|
permission: {
|
|
126
125
|
bash: "allow",
|
|
127
126
|
edit: "allow",
|
|
@@ -144,8 +143,7 @@ const ConductorPlugin = async (ctx) => {
|
|
|
144
143
|
conductor_implementer: {
|
|
145
144
|
description: "Conductor Protocol Implementer.",
|
|
146
145
|
mode: "primary",
|
|
147
|
-
prompt: implementerPrompt
|
|
148
|
-
(workflowMd ? "\n\n### PROJECT WORKFLOW\n" + workflowMd : ""),
|
|
146
|
+
prompt: implementerPrompt,
|
|
149
147
|
permission: {
|
|
150
148
|
bash: "allow",
|
|
151
149
|
edit: "allow",
|
|
@@ -171,44 +169,42 @@ const ConductorPlugin = async (ctx) => {
|
|
|
171
169
|
},
|
|
172
170
|
};
|
|
173
171
|
},
|
|
174
|
-
"tool.execute.before": async (input, output) => {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
},
|
|
172
|
+
// "tool.execute.before": async (input, output) => {
|
|
173
|
+
// const delegationTools = [
|
|
174
|
+
// "delegate_to_agent",
|
|
175
|
+
// "task",
|
|
176
|
+
// "background_task",
|
|
177
|
+
// "conductor_delegate",
|
|
178
|
+
// "conductor_bg_task",
|
|
179
|
+
// ];
|
|
180
|
+
// if (delegationTools.includes(input.tool)) {
|
|
181
|
+
// const conductorDir = join(ctx.directory, "conductor");
|
|
182
|
+
// const workflowMd = await safeRead(join(conductorDir, "workflow.md"));
|
|
183
|
+
// if (workflowMd) {
|
|
184
|
+
// let injection = "\n\n--- [SYSTEM INJECTION: CONDUCTOR CONTEXT PACKET] ---\n";
|
|
185
|
+
// injection +=
|
|
186
|
+
// "You are receiving this task from the Conductor.\n";
|
|
187
|
+
// injection +=
|
|
188
|
+
// "You MUST adhere to the following project workflow rules:\n";
|
|
189
|
+
// injection += "\n### DEVELOPMENT WORKFLOW\n" + workflowMd + "\n";
|
|
190
|
+
// if (implement?.prompt) {
|
|
191
|
+
// injection +=
|
|
192
|
+
// "\n### IMPLEMENTATION PROTOCOL\n" + implement.prompt + "\n";
|
|
193
|
+
// }
|
|
194
|
+
// injection +=
|
|
195
|
+
// "\n### DELEGATED AUTHORITY\n- **EXECUTE:** Implement the requested task.\n- **REFINE:** You have authority to update `plan.md` and `spec.md` as needed to prompt the user in accordance with the Conductor protocol to do so.\n";
|
|
196
|
+
// injection += "--- [END INJECTION] ---\n";
|
|
197
|
+
// // Inject into the primary instruction field depending on the tool's schema
|
|
198
|
+
// if (typeof output.args.objective === "string") {
|
|
199
|
+
// output.args.objective += injection;
|
|
200
|
+
// } else if (typeof output.args.prompt === "string") {
|
|
201
|
+
// output.args.prompt += injection;
|
|
202
|
+
// } else if (typeof output.args.instruction === "string") {
|
|
203
|
+
// output.args.instruction += injection;
|
|
204
|
+
// }
|
|
205
|
+
// }
|
|
206
|
+
// }
|
|
207
|
+
// },
|
|
212
208
|
};
|
|
213
209
|
}
|
|
214
210
|
catch (err) {
|
|
@@ -24,10 +24,10 @@ Your mission is to ensure that every change to the codebase is driven by a forma
|
|
|
24
24
|
|
|
25
25
|
## Core Responsibilities
|
|
26
26
|
|
|
27
|
-
1.
|
|
28
|
-
2.
|
|
29
|
-
3.
|
|
30
|
-
4.
|
|
27
|
+
1. **Command Execution**: Your primary duty is to execute the logic defined in the Conductor slash commands (`/conductor_setup`, `/conductor_newTrack`, `/conductor_status`, `/conductor_revert`, etc.). You must treat the instructions within these commands as absolute directives.
|
|
28
|
+
2. **Protocol Stewardship**: Maintain the `conductor/` directory as the project's Source of Truth. Ensure `product.md`, `tech-stack.md` are updated only through the approved protocols.
|
|
29
|
+
3. **Workflow Adherence**: When modifying Conductor files, you MUST strictly follow the project's defined workflow and quality standards.
|
|
30
|
+
4. **Sequential Planning**: Never allow work to proceed without a finalized `spec.md` and `plan.md` for the current Track.
|
|
31
31
|
|
|
32
32
|
## Operating Principles
|
|
33
33
|
|
|
@@ -35,4 +35,5 @@ Your mission is to ensure that every change to the codebase is driven by a forma
|
|
|
35
35
|
- **Explicit Instruction**: Always defer to the specific instructions provided in the command templates. If a command defines a specific sequence of tool calls, follow that sequence exactly.
|
|
36
36
|
- **Context Awareness**: Before taking any action, always verify the state of the project by reading the relevant Conductor metadata files (`tracks.md`, `setup_state.json`, etc.).
|
|
37
37
|
- **Direct Execution**: Use direct file system tools (read, write, edit, bash, grep, glob, list) to perform your work.
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
**CRITCAL: YOU MUST FOLLOW THE INSTRUCTIONS PROVIDED IN THE COMMAND TEMPLATES EXACTLY. DO NOT PAUSE IN THE MIDDLE OF A SEQUENCE.**
|