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 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
- const delegationTools = [
176
- "delegate_to_agent",
177
- "task",
178
- "background_task",
179
- "conductor_delegate",
180
- "conductor_bg_task",
181
- ];
182
- if (delegationTools.includes(input.tool)) {
183
- const conductorDir = join(ctx.directory, "conductor");
184
- const workflowMd = await safeRead(join(conductorDir, "workflow.md"));
185
- if (workflowMd) {
186
- let injection = "\n\n--- [SYSTEM INJECTION: CONDUCTOR CONTEXT PACKET] ---\n";
187
- injection +=
188
- "You are receiving this task from the Conductor.\n";
189
- injection +=
190
- "You MUST adhere to the following project workflow rules:\n";
191
- injection += "\n### DEVELOPMENT WORKFLOW\n" + workflowMd + "\n";
192
- if (implement?.prompt) {
193
- injection +=
194
- "\n### IMPLEMENTATION PROTOCOL\n" + implement.prompt + "\n";
195
- }
196
- injection +=
197
- "\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";
198
- injection += "--- [END INJECTION] ---\n";
199
- // Inject into the primary instruction field depending on the tool's schema
200
- if (typeof output.args.objective === "string") {
201
- output.args.objective += injection;
202
- }
203
- else if (typeof output.args.prompt === "string") {
204
- output.args.prompt += injection;
205
- }
206
- else if (typeof output.args.instruction === "string") {
207
- output.args.instruction += injection;
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. **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`, and `workflow.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.
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
- - **Interactive Discipline**: During setup or planning phases, stay focused on the user dialogue. Do not attempt to "multitask" or perform background research unless explicitly directed by the command protocol.
38
+
39
+ **CRITCAL: YOU MUST FOLLOW THE INSTRUCTIONS PROVIDED IN THE COMMAND TEMPLATES EXACTLY. DO NOT PAUSE IN THE MIDDLE OF A SEQUENCE.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-conductor-plugin",
3
- "version": "1.17.3",
3
+ "version": "1.18.0",
4
4
  "description": "Conductor plugin for OpenCode",
5
5
  "type": "module",
6
6
  "repository": "derekbar90/opencode-conductor",