sdlc-subagents 0.1.2 → 0.1.3
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/agents/codebase-mapper.md +0 -0
- package/agents/researcher.md +0 -0
- package/dist/index.js +24 -6
- package/package.json +3 -2
|
File without changes
|
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -122,6 +122,7 @@ var __filename = fileURLToPath(import.meta.url);
|
|
|
122
122
|
var __dirname = dirname(__filename);
|
|
123
123
|
var TEMPLATES_DIR = resolve(__dirname, "..", "templates");
|
|
124
124
|
var COMMANDS_DIR = resolve(__dirname, "..", "commands");
|
|
125
|
+
var AGENTS_MD_DIR = resolve(__dirname, "..", "agents");
|
|
125
126
|
function isCommandAvailable(command) {
|
|
126
127
|
try {
|
|
127
128
|
const cmd = process.platform === "win32" ? `where ${command}` : `which ${command}`;
|
|
@@ -149,6 +150,13 @@ function readCommand(filename) {
|
|
|
149
150
|
function listCommands() {
|
|
150
151
|
return readdirSync(COMMANDS_DIR).filter((f) => f.endsWith(".md"));
|
|
151
152
|
}
|
|
153
|
+
function readAgentMd(filename) {
|
|
154
|
+
const fullPath = join(AGENTS_MD_DIR, filename);
|
|
155
|
+
return readFileSync(fullPath, "utf-8");
|
|
156
|
+
}
|
|
157
|
+
function listAgentMds() {
|
|
158
|
+
return readdirSync(AGENTS_MD_DIR).filter((f) => f.endsWith(".md"));
|
|
159
|
+
}
|
|
152
160
|
function writeFile(targetDir, relativePath, content) {
|
|
153
161
|
const fullPath = join(targetDir, relativePath);
|
|
154
162
|
const dir = dirname(fullPath);
|
|
@@ -288,8 +296,14 @@ async function main() {
|
|
|
288
296
|
);
|
|
289
297
|
await sleep(200);
|
|
290
298
|
}
|
|
299
|
+
const agentMdFiles = listAgentMds();
|
|
300
|
+
for (const mdFile of agentMdFiles) {
|
|
301
|
+
const content = readAgentMd(mdFile);
|
|
302
|
+
writeFile(targetDir, `${agentsDir}/${mdFile}`, content);
|
|
303
|
+
fileCount++;
|
|
304
|
+
}
|
|
291
305
|
process.stdout.write(`\r\x1B[K`);
|
|
292
|
-
console.log(` ${green("\u2714")} Created ${bold(String(totalAgentFiles))} agent
|
|
306
|
+
console.log(` ${green("\u2714")} Created ${bold(String(totalAgentFiles + agentMdFiles.length))} agent files in ${cyan(agentsDir + "/")}`);
|
|
293
307
|
console.log();
|
|
294
308
|
const commandFiles = listCommands();
|
|
295
309
|
const commandsDir = ".opencode/commands";
|
|
@@ -324,15 +338,19 @@ async function main() {
|
|
|
324
338
|
console.log();
|
|
325
339
|
console.log(` ${cyan("\u{1F4C1} .opencode/agents/")}`);
|
|
326
340
|
console.log(` ${dim("\u251C\u2500\u2500")} ${cyan("sdlc-orchestrator/")} ${dim("\u2190 master routing skill")}`);
|
|
327
|
-
for (
|
|
328
|
-
const agent = AGENTS[i];
|
|
329
|
-
const isLast = i === AGENTS.length - 1;
|
|
330
|
-
const prefix = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
|
|
341
|
+
for (const agent of AGENTS) {
|
|
331
342
|
const status = installed.get(agent.id) ? green("\u25CF") : yellow("\u25CB");
|
|
332
343
|
console.log(
|
|
333
|
-
` ${dim(
|
|
344
|
+
` ${dim("\u251C\u2500\u2500")} ${status} ${cyan(`${agent.id}/`)} ${dim(`\u2190 ${agent.bestFor.split(",")[0].trim()}`)}`
|
|
334
345
|
);
|
|
335
346
|
}
|
|
347
|
+
const agentMdList = listAgentMds();
|
|
348
|
+
for (let i = 0; i < agentMdList.length; i++) {
|
|
349
|
+
const isLast = i === agentMdList.length - 1;
|
|
350
|
+
const prefix = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
|
|
351
|
+
const name = agentMdList[i].replace(".md", "");
|
|
352
|
+
console.log(` ${dim(prefix)} ${cyan(agentMdList[i])} ${dim(`\u2190 @${name} subagent`)}`);
|
|
353
|
+
}
|
|
336
354
|
console.log();
|
|
337
355
|
console.log(` ${cyan("\u{1F4C1} .opencode/commands/")}`);
|
|
338
356
|
const cmdFileList = listCommands();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdlc-subagents",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Scaffold OpenCode as an orchestrator of multiple coding agent CLIs (Gemini, Copilot, Claude, Aider, Kimi, Cursor)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sdlc-subagents": "dist/index.js"
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
31
|
"templates",
|
|
32
|
-
"commands"
|
|
32
|
+
"commands",
|
|
33
|
+
"agents"
|
|
33
34
|
],
|
|
34
35
|
"engines": {
|
|
35
36
|
"node": ">=18"
|