opcrew 0.1.3 → 0.1.4

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/cli.js CHANGED
@@ -9,19 +9,19 @@ import { mkdir, writeFile } from "fs/promises";
9
9
  import path from "path";
10
10
  // src/core/tools/translations.ts
11
11
  var CLAUDE_TOOLS = {
12
- read: "read_fs",
13
- write: "edit_code",
14
- edit: "edit_code",
15
- glob: "bash",
16
- grep: "bash",
17
- execute: "bash",
18
- websearch: "web_search",
19
- webfetch: "web_fetch",
20
- delegate: "task",
21
- todo: "todowrite",
22
- test: "run_tests",
23
- logbook: "edit_logbook",
24
- skill: "skill"
12
+ read: "Read",
13
+ write: "Write",
14
+ edit: "Edit",
15
+ glob: "Glob",
16
+ grep: "Grep",
17
+ execute: "Bash",
18
+ websearch: "WebSearch",
19
+ webfetch: "WebFetch",
20
+ delegate: "Agent",
21
+ todo: "TodoWrite",
22
+ test: "Bash",
23
+ logbook: "Edit",
24
+ skill: "Skill"
25
25
  };
26
26
  var OPENCODE_TOOLS = {
27
27
  read: "read",
@@ -71,9 +71,10 @@ class OpCrewAgent {
71
71
  }
72
72
  compileToMarkdown() {
73
73
  const translatedTools = translateTools(this.config.tools, "claude");
74
+ const lowerName = this.config.name.toLowerCase();
74
75
  const frontmatter = `---
75
- name: ${this.config.name}
76
- role: ${this.config.role}
76
+ name: ${lowerName}
77
+ description: ${this.config.description}
77
78
  tools: [${translatedTools.join(", ")}]
78
79
  ---`;
79
80
  return `${frontmatter}
@@ -125,6 +126,7 @@ Refer to \`.opcrew/logbook.json\` for the current voyage status.
125
126
  // src/crew/Captain.ts
126
127
  var Captain = new OpCrewAgent({
127
128
  name: "Captain",
129
+ description: "Orchestrator agent that coordinates work delegation and verification. Use for complex multi-step tasks requiring coordination between specialists.",
128
130
  role: "Orchestrator",
129
131
  mode: "primary",
130
132
  instructions: [
@@ -148,6 +150,7 @@ var Captain = new OpCrewAgent({
148
150
  // src/crew/Navigator.ts
149
151
  var Navigator = new OpCrewAgent({
150
152
  name: "Navigator",
153
+ description: "Planning specialist that decomposes work into atomic tasks with clear inputs, outputs, and ownership. Use when you need to chart an implementation path or create a structured plan.",
151
154
  role: "Planner",
152
155
  mode: "subagent",
153
156
  instructions: [
@@ -169,6 +172,7 @@ var Navigator = new OpCrewAgent({
169
172
  // src/crew/Boatswain.ts
170
173
  var Boatswain = new OpCrewAgent({
171
174
  name: "Boatswain",
175
+ description: "Execution specialist that implements approved plans with precise edits. Use when you need to make code changes, run tests, or execute implementation steps.",
172
176
  role: "Executor",
173
177
  mode: "subagent",
174
178
  instructions: [
@@ -188,6 +192,7 @@ var Boatswain = new OpCrewAgent({
188
192
  // src/crew/Quartermaster.ts
189
193
  var Quartermaster = new OpCrewAgent({
190
194
  name: "Quartermaster",
195
+ description: "Quality assurance specialist that reviews diffs, verifies tests pass, and ensures conventions are followed. Use proactively after code changes to verify quality.",
191
196
  role: "Reviewer",
192
197
  mode: "subagent",
193
198
  instructions: [
@@ -206,6 +211,7 @@ var Quartermaster = new OpCrewAgent({
206
211
  // src/crew/Scout.ts
207
212
  var Scout = new OpCrewAgent({
208
213
  name: "Scout",
214
+ description: "Research specialist for external information gathering - web searches, documentation lookup, API references, and best practices. Use when you need information from outside the project.",
209
215
  role: "Researcher",
210
216
  mode: "subagent",
211
217
  instructions: [
@@ -15,19 +15,19 @@ var __export = (target, all) => {
15
15
  };
16
16
  // src/core/tools/translations.ts
17
17
  var CLAUDE_TOOLS = {
18
- read: "read_fs",
19
- write: "edit_code",
20
- edit: "edit_code",
21
- glob: "bash",
22
- grep: "bash",
23
- execute: "bash",
24
- websearch: "web_search",
25
- webfetch: "web_fetch",
26
- delegate: "task",
27
- todo: "todowrite",
28
- test: "run_tests",
29
- logbook: "edit_logbook",
30
- skill: "skill"
18
+ read: "Read",
19
+ write: "Write",
20
+ edit: "Edit",
21
+ glob: "Glob",
22
+ grep: "Grep",
23
+ execute: "Bash",
24
+ websearch: "WebSearch",
25
+ webfetch: "WebFetch",
26
+ delegate: "Agent",
27
+ todo: "TodoWrite",
28
+ test: "Bash",
29
+ logbook: "Edit",
30
+ skill: "Skill"
31
31
  };
32
32
  var OPENCODE_TOOLS = {
33
33
  read: "read",
@@ -77,9 +77,10 @@ class OpCrewAgent {
77
77
  }
78
78
  compileToMarkdown() {
79
79
  const translatedTools = translateTools(this.config.tools, "claude");
80
+ const lowerName = this.config.name.toLowerCase();
80
81
  const frontmatter = `---
81
- name: ${this.config.name}
82
- role: ${this.config.role}
82
+ name: ${lowerName}
83
+ description: ${this.config.description}
83
84
  tools: [${translatedTools.join(", ")}]
84
85
  ---`;
85
86
  return `${frontmatter}
@@ -131,6 +132,7 @@ Refer to \`.opcrew/logbook.json\` for the current voyage status.
131
132
  // src/crew/Captain.ts
132
133
  var Captain = new OpCrewAgent({
133
134
  name: "Captain",
135
+ description: "Orchestrator agent that coordinates work delegation and verification. Use for complex multi-step tasks requiring coordination between specialists.",
134
136
  role: "Orchestrator",
135
137
  mode: "primary",
136
138
  instructions: [
@@ -154,6 +156,7 @@ var Captain = new OpCrewAgent({
154
156
  // src/crew/Navigator.ts
155
157
  var Navigator = new OpCrewAgent({
156
158
  name: "Navigator",
159
+ description: "Planning specialist that decomposes work into atomic tasks with clear inputs, outputs, and ownership. Use when you need to chart an implementation path or create a structured plan.",
157
160
  role: "Planner",
158
161
  mode: "subagent",
159
162
  instructions: [
@@ -175,6 +178,7 @@ var Navigator = new OpCrewAgent({
175
178
  // src/crew/Boatswain.ts
176
179
  var Boatswain = new OpCrewAgent({
177
180
  name: "Boatswain",
181
+ description: "Execution specialist that implements approved plans with precise edits. Use when you need to make code changes, run tests, or execute implementation steps.",
178
182
  role: "Executor",
179
183
  mode: "subagent",
180
184
  instructions: [
@@ -194,6 +198,7 @@ var Boatswain = new OpCrewAgent({
194
198
  // src/crew/Quartermaster.ts
195
199
  var Quartermaster = new OpCrewAgent({
196
200
  name: "Quartermaster",
201
+ description: "Quality assurance specialist that reviews diffs, verifies tests pass, and ensures conventions are followed. Use proactively after code changes to verify quality.",
197
202
  role: "Reviewer",
198
203
  mode: "subagent",
199
204
  instructions: [
@@ -212,6 +217,7 @@ var Quartermaster = new OpCrewAgent({
212
217
  // src/crew/Scout.ts
213
218
  var Scout = new OpCrewAgent({
214
219
  name: "Scout",
220
+ description: "Research specialist for external information gathering - web searches, documentation lookup, API references, and best practices. Use when you need information from outside the project.",
215
221
  role: "Researcher",
216
222
  mode: "subagent",
217
223
  instructions: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opcrew",
3
3
  "description": "OpenCrew agents and OpenCode plugin",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "main": "./dist/opencode-plugin.js",
6
6
  "module": "./dist/opencode-plugin.js",
7
7
  "type": "module",