opencode-conductor-plugin 1.1.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.
Files changed (57) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +91 -0
  3. package/dist/commands/implement.d.ts +2 -0
  4. package/dist/commands/implement.js +17 -0
  5. package/dist/commands/newTrack.d.ts +2 -0
  6. package/dist/commands/newTrack.js +19 -0
  7. package/dist/commands/revert.d.ts +2 -0
  8. package/dist/commands/revert.js +17 -0
  9. package/dist/commands/setup.d.ts +2 -0
  10. package/dist/commands/setup.js +19 -0
  11. package/dist/commands/status.d.ts +2 -0
  12. package/dist/commands/status.js +15 -0
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.js +97 -0
  15. package/dist/prompts/agent/conductor.md +33 -0
  16. package/dist/prompts/agent.md +23 -0
  17. package/dist/prompts/commands/c-implement.md +5 -0
  18. package/dist/prompts/commands/c-new.md +5 -0
  19. package/dist/prompts/commands/c-revert.md +5 -0
  20. package/dist/prompts/commands/c-setup.md +5 -0
  21. package/dist/prompts/commands/c-status.md +5 -0
  22. package/dist/prompts/implement.toml +170 -0
  23. package/dist/prompts/newTrack.toml +144 -0
  24. package/dist/prompts/revert.toml +123 -0
  25. package/dist/prompts/setup.toml +426 -0
  26. package/dist/prompts/status.toml +57 -0
  27. package/dist/templates/code_styleguides/c.md +28 -0
  28. package/dist/templates/code_styleguides/cpp.md +46 -0
  29. package/dist/templates/code_styleguides/csharp.md +115 -0
  30. package/dist/templates/code_styleguides/dart.md +238 -0
  31. package/dist/templates/code_styleguides/general.md +23 -0
  32. package/dist/templates/code_styleguides/go.md +48 -0
  33. package/dist/templates/code_styleguides/html-css.md +49 -0
  34. package/dist/templates/code_styleguides/java.md +39 -0
  35. package/dist/templates/code_styleguides/javascript.md +51 -0
  36. package/dist/templates/code_styleguides/julia.md +27 -0
  37. package/dist/templates/code_styleguides/kotlin.md +41 -0
  38. package/dist/templates/code_styleguides/php.md +37 -0
  39. package/dist/templates/code_styleguides/python.md +37 -0
  40. package/dist/templates/code_styleguides/react.md +37 -0
  41. package/dist/templates/code_styleguides/ruby.md +39 -0
  42. package/dist/templates/code_styleguides/rust.md +44 -0
  43. package/dist/templates/code_styleguides/shell.md +35 -0
  44. package/dist/templates/code_styleguides/solidity.md +60 -0
  45. package/dist/templates/code_styleguides/sql.md +39 -0
  46. package/dist/templates/code_styleguides/swift.md +36 -0
  47. package/dist/templates/code_styleguides/typescript.md +43 -0
  48. package/dist/templates/code_styleguides/vue.md +38 -0
  49. package/dist/templates/code_styleguides/zig.md +27 -0
  50. package/dist/templates/workflow.md +333 -0
  51. package/dist/utils/bootstrap.d.ts +1 -0
  52. package/dist/utils/bootstrap.js +49 -0
  53. package/dist/utils/promptLoader.d.ts +1 -0
  54. package/dist/utils/promptLoader.js +23 -0
  55. package/dist/utils/stateManager.d.ts +10 -0
  56. package/dist/utils/stateManager.js +30 -0
  57. package/package.json +74 -0
@@ -0,0 +1,333 @@
1
+ # Project Workflow
2
+
3
+ ## Guiding Principles
4
+
5
+ 1. **The Plan is the Source of Truth:** All work must be tracked in `plan.md`
6
+ 2. **The Tech Stack is Deliberate:** Changes to the tech stack must be documented in `tech-stack.md` *before* implementation
7
+ 3. **Test-Driven Development:** Write unit tests before implementing functionality
8
+ 4. **High Code Coverage:** Aim for >80% code coverage for all modules
9
+ 5. **User Experience First:** Every decision should prioritize user experience
10
+ 6. **Non-Interactive & CI-Aware:** Prefer non-interactive commands. Use `CI=true` for watch-mode tools (tests, linters) to ensure single execution.
11
+
12
+ ## Task Workflow
13
+
14
+ All tasks follow a strict lifecycle:
15
+
16
+ ### Standard Task Workflow
17
+
18
+ 1. **Select Task:** Choose the next available task from `plan.md` in sequential order
19
+
20
+ 2. **Mark In Progress:** Before beginning work, edit `plan.md` and change the task from `[ ]` to `[~]`
21
+
22
+ 3. **Write Failing Tests (Red Phase):**
23
+ - Create a new test file for the feature or bug fix.
24
+ - Write one or more unit tests that clearly define the expected behavior and acceptance criteria for the task.
25
+ - **CRITICAL:** Run the tests and confirm that they fail as expected. This is the "Red" phase of TDD. Do not proceed until you have failing tests.
26
+
27
+ 4. **Implement to Pass Tests (Green Phase):**
28
+ - Write the minimum amount of application code necessary to make the failing tests pass.
29
+ - Run the test suite again and confirm that all tests now pass. This is the "Green" phase.
30
+
31
+ 5. **Refactor (Optional but Recommended):**
32
+ - With the safety of passing tests, refactor the implementation code and the test code to improve clarity, remove duplication, and enhance performance without changing the external behavior.
33
+ - Rerun tests to ensure they still pass after refactoring.
34
+
35
+ 6. **Verify Coverage:** Run coverage reports using the project's chosen tools. For example, in a Python project, this might look like:
36
+ ```bash
37
+ pytest --cov=app --cov-report=html
38
+ ```
39
+ Target: >80% coverage for new code. The specific tools and commands will vary by language and framework.
40
+
41
+ 7. **Document Deviations:** If implementation differs from tech stack:
42
+ - **STOP** implementation
43
+ - Update `tech-stack.md` with new design
44
+ - Add dated note explaining the change
45
+ - Resume implementation
46
+
47
+ 8. **Commit Code Changes:**
48
+ - Stage all code changes related to the task.
49
+ - Propose a clear, concise commit message e.g, `feat(ui): Create basic HTML structure for calculator`.
50
+ - Perform the commit.
51
+
52
+ 9. **Attach Task Summary with Git Notes:**
53
+ - **Step 9.1: Get Commit Hash:** Obtain the hash of the *just-completed commit* (`git log -1 --format="%H"`).
54
+ - **Step 9.2: Draft Note Content:** Create a detailed summary for the completed task. This should include the task name, a summary of changes, a list of all created/modified files, and the core "why" for the change.
55
+ - **Step 9.3: Attach Note:** Use the `git notes` command to attach the summary to the commit.
56
+ ```bash
57
+ # The note content from the previous step is passed via the -m flag.
58
+ git notes add -m "<note content>" <commit_hash>
59
+ ```
60
+
61
+ 10. **Get and Record Task Commit SHA:**
62
+ - **Step 10.1: Update Plan:** Read `plan.md`, find the line for the completed task, update its status from `[~]` to `[x]`, and append the first 7 characters of the *just-completed commit's* commit hash.
63
+ - **Step 10.2: Write Plan:** Write the updated content back to `plan.md`.
64
+
65
+ 11. **Commit Plan Update:**
66
+ - **Action:** Stage the modified `plan.md` file.
67
+ - **Action:** Commit this change with a descriptive message (e.g., `conductor(plan): Mark task 'Create user model' as complete`).
68
+
69
+ ### Phase Completion Verification and Checkpointing Protocol
70
+
71
+ **Trigger:** This protocol is executed immediately after a task is completed that also concludes a phase in `plan.md`.
72
+
73
+ 1. **Announce Protocol Start:** Inform the user that the phase is complete and the verification and checkpointing protocol has begun.
74
+
75
+ 2. **Ensure Test Coverage for Phase Changes:**
76
+ - **Step 2.1: Determine Phase Scope:** To identify the files changed in this phase, you must first find the starting point. Read `plan.md` to find the Git commit SHA of the *previous* phase's checkpoint. If no previous checkpoint exists, the scope is all changes since the first commit.
77
+ - **Step 2.2: List Changed Files:** Execute `git diff --name-only <previous_checkpoint_sha> HEAD` to get a precise list of all files modified during this phase.
78
+ - **Step 2.3: Verify and Create Tests:** For each file in the list:
79
+ - **CRITICAL:** First, check its extension. Exclude non-code files (e.g., `.json`, `.md`, `.yaml`).
80
+ - For each remaining code file, verify a corresponding test file exists.
81
+ - If a test file is missing, you **must** create one. Before writing the test, **first, analyze other test files in the repository to determine the correct naming convention and testing style.** The new tests **must** validate the functionality described in this phase's tasks (`plan.md`).
82
+
83
+ 3. **Execute Automated Tests with Proactive Debugging:**
84
+ - Before execution, you **must** announce the exact shell command you will use to run the tests.
85
+ - **Example Announcement:** "I will now run the automated test suite to verify the phase. **Command:** `CI=true npm test`"
86
+ - Execute the announced command.
87
+ - If tests fail, you **must** inform the user and begin debugging. You may attempt to propose a fix a **maximum of two times**. If the tests still fail after your second proposed fix, you **must stop**, report the persistent failure, and ask the user for guidance.
88
+
89
+ 4. **Propose a Detailed, Actionable Manual Verification Plan:**
90
+ - **CRITICAL:** To generate the plan, first analyze `product.md`, `product-guidelines.md`, and `plan.md` to determine the user-facing goals of the completed phase.
91
+ - You **must** generate a step-by-step plan that walks the user through the verification process, including any necessary commands and specific, expected outcomes.
92
+ - The plan you present to the user **must** follow this format:
93
+
94
+ **For a Frontend Change:**
95
+ ```
96
+ The automated tests have passed. For manual verification, please follow these steps:
97
+
98
+ **Manual Verification Steps:**
99
+ 1. **Start the development server with the command:** `npm run dev`
100
+ 2. **Open your browser to:** `http://localhost:3000`
101
+ 3. **Confirm that you see:** The new user profile page, with the user's name and email displayed correctly.
102
+ ```
103
+
104
+ **For a Backend Change:**
105
+ ```
106
+ The automated tests have passed. For manual verification, please follow these steps:
107
+
108
+ **Manual Verification Steps:**
109
+ 1. **Ensure the server is running.**
110
+ 2. **Execute the following command in your terminal:** `curl -X POST http://localhost:8080/api/v1/users -d '{"name": "test"}'`
111
+ 3. **Confirm that you receive:** A JSON response with a status of `201 Created`.
112
+ ```
113
+
114
+ 5. **Await Explicit User Feedback:**
115
+ - After presenting the detailed plan, ask the user for confirmation: "**Does this meet your expectations? Please confirm with yes or provide feedback on what needs to be changed.**"
116
+ - **PAUSE** and await the user's response. Do not proceed without an explicit yes or confirmation.
117
+
118
+ 6. **Create Checkpoint Commit:**
119
+ - Stage all changes. If no changes occurred in this step, proceed with an empty commit.
120
+ - Perform the commit with a clear and concise message (e.g., `conductor(checkpoint): Checkpoint end of Phase X`).
121
+
122
+ 7. **Attach Auditable Verification Report using Git Notes:**
123
+ - **Step 7.1: Draft Note Content:** Create a detailed verification report including the automated test command, the manual verification steps, and the user's confirmation.
124
+ - **Step 7.2: Attach Note:** Use the `git notes` command and the full commit hash from the previous step to attach the full report to the checkpoint commit.
125
+
126
+ 8. **Get and Record Phase Checkpoint SHA:**
127
+ - **Step 8.1: Get Commit Hash:** Obtain the hash of the *just-created checkpoint commit* (`git log -1 --format="%H"`).
128
+ - **Step 8.2: Update Plan:** Read `plan.md`, find the heading for the completed phase, and append the first 7 characters of the commit hash in the format `[checkpoint: <sha>]`.
129
+ - **Step 8.3: Write Plan:** Write the updated content back to `plan.md`.
130
+
131
+ 9. **Commit Plan Update:**
132
+ - **Action:** Stage the modified `plan.md` file.
133
+ - **Action:** Commit this change with a descriptive message following the format `conductor(plan): Mark phase '<PHASE NAME>' as complete`.
134
+
135
+ 10. **Announce Completion:** Inform the user that the phase is complete and the checkpoint has been created, with the detailed verification report attached as a git note.
136
+
137
+ ### Quality Gates
138
+
139
+ Before marking any task complete, verify:
140
+
141
+ - [ ] All tests pass
142
+ - [ ] Code coverage meets requirements (>80%)
143
+ - [ ] Code follows project's code style guidelines (as defined in `code_styleguides/`)
144
+ - [ ] All public functions/methods are documented (e.g., docstrings, JSDoc, GoDoc)
145
+ - [ ] Type safety is enforced (e.g., type hints, TypeScript types, Go types)
146
+ - [ ] No linting or static analysis errors (using the project's configured tools)
147
+ - [ ] Works correctly on mobile (if applicable)
148
+ - [ ] Documentation updated if needed
149
+ - [ ] No security vulnerabilities introduced
150
+
151
+ ## Development Commands
152
+
153
+ **AI AGENT INSTRUCTION: This section should be adapted to the project's specific language, framework, and build tools.**
154
+
155
+ ### Setup
156
+ ```bash
157
+ # Example: Commands to set up the development environment (e.g., install dependencies, configure database)
158
+ # e.g., for a Node.js project: npm install
159
+ # e.g., for a Go project: go mod tidy
160
+ ```
161
+
162
+ ### Daily Development
163
+ ```bash
164
+ # Example: Commands for common daily tasks (e.g., start dev server, run tests, lint, format)
165
+ # e.g., for a Node.js project: npm run dev, npm test, npm run lint
166
+ # e.g., for a Go project: go run main.go, go test ./..., go fmt ./...
167
+ ```
168
+
169
+ ### Before Committing
170
+ ```bash
171
+ # Example: Commands to run all pre-commit checks (e.g., format, lint, type check, run tests)
172
+ # e.g., for a Node.js project: npm run check
173
+ # e.g., for a Go project: make check (if a Makefile exists)
174
+ ```
175
+
176
+ ## Testing Requirements
177
+
178
+ ### Unit Testing
179
+ - Every module must have corresponding tests.
180
+ - Use appropriate test setup/teardown mechanisms (e.g., fixtures, beforeEach/afterEach).
181
+ - Mock external dependencies.
182
+ - Test both success and failure cases.
183
+
184
+ ### Integration Testing
185
+ - Test complete user flows
186
+ - Verify database transactions
187
+ - Test authentication and authorization
188
+ - Check form submissions
189
+
190
+ ### Mobile Testing
191
+ - Test on actual iPhone when possible
192
+ - Use Safari developer tools
193
+ - Test touch interactions
194
+ - Verify responsive layouts
195
+ - Check performance on 3G/4G
196
+
197
+ ## Code Review Process
198
+
199
+ ### Self-Review Checklist
200
+ Before requesting review:
201
+
202
+ 1. **Functionality**
203
+ - Feature works as specified
204
+ - Edge cases handled
205
+ - Error messages are user-friendly
206
+
207
+ 2. **Code Quality**
208
+ - Follows style guide
209
+ - DRY principle applied
210
+ - Clear variable/function names
211
+ - Appropriate comments
212
+
213
+ 3. **Testing**
214
+ - Unit tests comprehensive
215
+ - Integration tests pass
216
+ - Coverage adequate (>80%)
217
+
218
+ 4. **Security**
219
+ - No hardcoded secrets
220
+ - Input validation present
221
+ - SQL injection prevented
222
+ - XSS protection in place
223
+
224
+ 5. **Performance**
225
+ - Database queries optimized
226
+ - Images optimized
227
+ - Caching implemented where needed
228
+
229
+ 6. **Mobile Experience**
230
+ - Touch targets adequate (44x44px)
231
+ - Text readable without zooming
232
+ - Performance acceptable on mobile
233
+ - Interactions feel native
234
+
235
+ ## Commit Guidelines
236
+
237
+ ### Message Format
238
+ ```
239
+ <type>(<scope>): <description>
240
+
241
+ [optional body]
242
+
243
+ [optional footer]
244
+ ```
245
+
246
+ ### Types
247
+ - `feat`: New feature
248
+ - `fix`: Bug fix
249
+ - `docs`: Documentation only
250
+ - `style`: Formatting, missing semicolons, etc.
251
+ - `refactor`: Code change that neither fixes a bug nor adds a feature
252
+ - `test`: Adding missing tests
253
+ - `chore`: Maintenance tasks
254
+
255
+ ### Examples
256
+ ```bash
257
+ git commit -m "feat(auth): Add remember me functionality"
258
+ git commit -m "fix(posts): Correct excerpt generation for short posts"
259
+ git commit -m "test(comments): Add tests for emoji reaction limits"
260
+ git commit -m "style(mobile): Improve button touch targets"
261
+ ```
262
+
263
+ ## Definition of Done
264
+
265
+ A task is complete when:
266
+
267
+ 1. All code implemented to specification
268
+ 2. Unit tests written and passing
269
+ 3. Code coverage meets project requirements
270
+ 4. Documentation complete (if applicable)
271
+ 5. Code passes all configured linting and static analysis checks
272
+ 6. Works beautifully on mobile (if applicable)
273
+ 7. Implementation notes added to `plan.md`
274
+ 8. Changes committed with proper message
275
+ 9. Git note with task summary attached to the commit
276
+
277
+ ## Emergency Procedures
278
+
279
+ ### Critical Bug in Production
280
+ 1. Create hotfix branch from main
281
+ 2. Write failing test for bug
282
+ 3. Implement minimal fix
283
+ 4. Test thoroughly including mobile
284
+ 5. Deploy immediately
285
+ 6. Document in plan.md
286
+
287
+ ### Data Loss
288
+ 1. Stop all write operations
289
+ 2. Restore from latest backup
290
+ 3. Verify data integrity
291
+ 4. Document incident
292
+ 5. Update backup procedures
293
+
294
+ ### Security Breach
295
+ 1. Rotate all secrets immediately
296
+ 2. Review access logs
297
+ 3. Patch vulnerability
298
+ 4. Notify affected users (if any)
299
+ 5. Document and update security procedures
300
+
301
+ ## Deployment Workflow
302
+
303
+ ### Pre-Deployment Checklist
304
+ - [ ] All tests passing
305
+ - [ ] Coverage >80%
306
+ - [ ] No linting errors
307
+ - [ ] Mobile testing complete
308
+ - [ ] Environment variables configured
309
+ - [ ] Database migrations ready
310
+ - [ ] Backup created
311
+
312
+ ### Deployment Steps
313
+ 1. Merge feature branch to main
314
+ 2. Tag release with version
315
+ 3. Push to deployment service
316
+ 4. Run database migrations
317
+ 5. Verify deployment
318
+ 6. Test critical paths
319
+ 7. Monitor for errors
320
+
321
+ ### Post-Deployment
322
+ 1. Monitor analytics
323
+ 2. Check error logs
324
+ 3. Gather user feedback
325
+ 4. Plan next iteration
326
+
327
+ ## Continuous Improvement
328
+
329
+ - Review workflow weekly
330
+ - Update based on pain points
331
+ - Document lessons learned
332
+ - Optimize for user happiness
333
+ - Keep things simple and maintainable
@@ -0,0 +1 @@
1
+ export declare function bootstrap(ctx: any): Promise<void>;
@@ -0,0 +1,49 @@
1
+ import { existsSync, mkdirSync, copyFileSync, readdirSync } from "fs";
2
+ import { join, dirname } from "path";
3
+ import { fileURLToPath } from "url";
4
+ import { homedir } from "os";
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+ export async function bootstrap(ctx) {
8
+ const opencodeConfigDir = join(homedir(), ".config", "opencode");
9
+ const targetAgentDir = join(opencodeConfigDir, "agent");
10
+ const targetCommandDir = join(opencodeConfigDir, "command");
11
+ const sourcePromptsDir = join(__dirname, "../prompts");
12
+ const sourceAgentFile = join(sourcePromptsDir, "agent/conductor.md");
13
+ const sourceCommandsDir = join(sourcePromptsDir, "commands");
14
+ let installedAnything = false;
15
+ // 1. Ensure directories exist
16
+ if (!existsSync(targetAgentDir))
17
+ mkdirSync(targetAgentDir, { recursive: true });
18
+ if (!existsSync(targetCommandDir))
19
+ mkdirSync(targetCommandDir, { recursive: true });
20
+ // 2. Install Agent if missing
21
+ const targetAgentFile = join(targetAgentDir, "conductor.md");
22
+ if (!existsSync(targetAgentFile)) {
23
+ if (existsSync(sourceAgentFile)) {
24
+ copyFileSync(sourceAgentFile, targetAgentFile);
25
+ installedAnything = true;
26
+ }
27
+ }
28
+ // 3. Install Commands if missing
29
+ if (existsSync(sourceCommandsDir)) {
30
+ const commands = readdirSync(sourceCommandsDir);
31
+ for (const cmdFile of commands) {
32
+ const targetCmdFile = join(targetCommandDir, cmdFile);
33
+ if (!existsSync(targetCmdFile)) {
34
+ copyFileSync(join(sourceCommandsDir, cmdFile), targetCmdFile);
35
+ installedAnything = true;
36
+ }
37
+ }
38
+ }
39
+ if (installedAnything) {
40
+ await ctx.client.tui.showToast({
41
+ body: {
42
+ title: "Conductor",
43
+ message: "First-run setup: Conductor agent and commands installed globally. Please restart OpenCode to enable slash commands.",
44
+ variant: "info",
45
+ duration: 5000
46
+ }
47
+ }).catch(() => { });
48
+ }
49
+ }
@@ -0,0 +1 @@
1
+ export declare function loadPrompt(filename: string, replacements?: Record<string, string>): Promise<string>;
@@ -0,0 +1,23 @@
1
+ import { readFile } from "fs/promises";
2
+ import { join, dirname } from "path";
3
+ import { fileURLToPath } from "url";
4
+ import { parse } from "smol-toml";
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+ export async function loadPrompt(filename, replacements = {}) {
8
+ // Resolve path relative to this file.
9
+ // Structure: dist/utils/promptLoader.js -> dist/prompts/filename.toml
10
+ const promptPath = join(__dirname, "../prompts", filename);
11
+ try {
12
+ const content = await readFile(promptPath, "utf-8");
13
+ const parsed = parse(content);
14
+ let promptText = parsed.prompt;
15
+ for (const [key, value] of Object.entries(replacements)) {
16
+ promptText = promptText.replaceAll(`{{${key}}}`, value || "");
17
+ }
18
+ return promptText;
19
+ }
20
+ catch (error) {
21
+ throw new Error(`Failed to load prompt from ${promptPath}: ${error}`);
22
+ }
23
+ }
@@ -0,0 +1,10 @@
1
+ export interface SetupState {
2
+ last_successful_step: string;
3
+ }
4
+ export declare class StateManager {
5
+ private statePath;
6
+ constructor(workDir: string);
7
+ ensureConductorDir(): void;
8
+ readState(): SetupState;
9
+ writeState(step: string): void;
10
+ }
@@ -0,0 +1,30 @@
1
+ import { join } from "path";
2
+ import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
3
+ export class StateManager {
4
+ statePath;
5
+ constructor(workDir) {
6
+ this.statePath = join(workDir, "conductor", "setup_state.json");
7
+ }
8
+ ensureConductorDir() {
9
+ const dir = join(this.statePath, "..");
10
+ if (!existsSync(dir)) {
11
+ mkdirSync(dir, { recursive: true });
12
+ }
13
+ }
14
+ readState() {
15
+ if (!existsSync(this.statePath)) {
16
+ return { last_successful_step: "" };
17
+ }
18
+ try {
19
+ return JSON.parse(readFileSync(this.statePath, "utf-8"));
20
+ }
21
+ catch (e) {
22
+ return { last_successful_step: "" };
23
+ }
24
+ }
25
+ writeState(step) {
26
+ this.ensureConductorDir();
27
+ const state = { last_successful_step: step };
28
+ writeFileSync(this.statePath, JSON.stringify(state, null, 2));
29
+ }
30
+ }
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "opencode-conductor-plugin",
3
+ "version": "1.1.0",
4
+ "description": "Conductor plugin for OpenCode",
5
+ "type": "module",
6
+ "repository": "derekbar90/opencode-conductor",
7
+ "keywords": [
8
+ "opencode",
9
+ "plugin",
10
+ "conductor",
11
+ "agent",
12
+ "sisyphus"
13
+ ],
14
+ "author": "Derek Barrera",
15
+ "license": "Apache-2.0",
16
+ "bugs": {
17
+ "url": "https://github.com/derekbar90/opencode-conductor/issues"
18
+ },
19
+ "homepage": "https://github.com/derekbar90/opencode-conductor#readme",
20
+ "publishConfig": {
21
+ "access": "public",
22
+ "registry": "https://registry.npmjs.org/"
23
+ },
24
+ "main": "dist/index.js",
25
+ "types": "dist/index.d.ts",
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc && npm run copy-prompts && npm run copy-templates",
31
+ "copy-prompts": "mkdir -p dist/prompts && cp src/prompts/*.toml src/prompts/*.md dist/prompts/ && mkdir -p dist/prompts/agent && cp src/prompts/agent/*.md dist/prompts/agent/ && mkdir -p dist/prompts/commands && cp src/prompts/commands/*.md dist/prompts/commands/",
32
+ "copy-templates": "mkdir -p dist/templates && cp -r src/templates/* dist/templates/",
33
+ "prepublishOnly": "npm run build"
34
+ },
35
+ "dependencies": {
36
+ "@opencode-ai/plugin": "^1.0.209",
37
+ "smol-toml": "^1.6.0"
38
+ },
39
+ "devDependencies": {
40
+ "@semantic-release/changelog": "^6.0.3",
41
+ "@semantic-release/commit-analyzer": "^13.0.0",
42
+ "@semantic-release/git": "^10.0.1",
43
+ "@semantic-release/github": "^11.0.1",
44
+ "@semantic-release/npm": "^12.0.1",
45
+ "@semantic-release/release-notes-generator": "^14.0.0",
46
+ "@types/node": "^20.0.0",
47
+ "semantic-release": "^24.2.1",
48
+ "typescript": "^5.0.0"
49
+ },
50
+ "release": {
51
+ "branches": [
52
+ "main"
53
+ ],
54
+ "repositoryUrl": "https://github.com/derekbar90/opencode-conductor",
55
+ "plugins": [
56
+ "@semantic-release/commit-analyzer",
57
+ "@semantic-release/release-notes-generator",
58
+ "@semantic-release/changelog",
59
+ "@semantic-release/npm",
60
+ [
61
+ "@semantic-release/git",
62
+ {
63
+ "assets": [
64
+ "package.json",
65
+ "package-lock.json",
66
+ "CHANGELOG.md"
67
+ ],
68
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
69
+ }
70
+ ],
71
+ "@semantic-release/github"
72
+ ]
73
+ }
74
+ }