specsmd 0.1.6 → 0.1.7

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.
@@ -11,12 +11,20 @@ class OpenCodeInstaller extends ToolInstaller {
11
11
  }
12
12
 
13
13
  get commandsDir() {
14
- return path.join('.opencode', 'agent');
14
+ return path.join('.opencode', 'command');
15
15
  }
16
16
 
17
17
  get detectPath() {
18
18
  return '.opencode';
19
19
  }
20
+
21
+ /**
22
+ * OpenCode requires 'agent: build' in command frontmatter.
23
+ * This inserts the line before the closing '---' of existing frontmatter.
24
+ */
25
+ transformContent(content) {
26
+ return content.replace(/^(---\n[\s\S]*?)(---)/, '$1agent: build\n$2');
27
+ }
20
28
  }
21
29
 
22
30
  module.exports = OpenCodeInstaller;
@@ -56,7 +56,10 @@ class ToolInstaller {
56
56
  const targetFileName = `specsmd-${prefix}${cmdFile}`;
57
57
  const targetPath = path.join(targetCommandsDir, targetFileName);
58
58
 
59
- const content = await fs.readFile(sourcePath, 'utf8');
59
+ let content = await fs.readFile(sourcePath, 'utf8');
60
+ if (this.transformContent) {
61
+ content = this.transformContent(content);
62
+ }
60
63
  await fs.outputFile(targetPath, content, 'utf8');
61
64
  installedFiles.push(targetFileName);
62
65
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specsmd",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Multi-agent orchestration system for AI-native software development. Delivers AI-DLC, Agile, and custom SDLC flows as markdown-based agent systems.",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {