zugzbot 1.0.3 → 1.0.5
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/bin/init.js +17 -0
- package/opencode.json +7 -1
- package/package.json +1 -1
package/bin/init.js
CHANGED
|
@@ -68,6 +68,23 @@ for (const item of itemsToCopy) {
|
|
|
68
68
|
console.error(`${red}❌ Error copying ${item.name}: ${error.message}${reset}`);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
// Ensure .openspec directory and active-brief.md exist on target
|
|
72
|
+
try {
|
|
73
|
+
const openspecDir = join(targetDir, '.openspec');
|
|
74
|
+
if (!fs.existsSync(openspecDir)) {
|
|
75
|
+
fs.mkdirSync(openspecDir, { recursive: true });
|
|
76
|
+
}
|
|
77
|
+
const activeBriefPath = join(openspecDir, 'active-brief.md');
|
|
78
|
+
if (!fs.existsSync(activeBriefPath)) {
|
|
79
|
+
fs.writeFileSync(
|
|
80
|
+
activeBriefPath,
|
|
81
|
+
"# SDD Active Brief\n\nNo hay ninguna sesión activa o el spec actual no ha sido iniciado.\n",
|
|
82
|
+
"utf8"
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
} catch (error) {
|
|
86
|
+
console.error(`${red}❌ Error creating .openspec directory: ${error.message}${reset}`);
|
|
87
|
+
}
|
|
71
88
|
|
|
72
89
|
if (copiedCount > 0) {
|
|
73
90
|
console.log(`\n${bold}${green}✨ Zugzbot Harness successfully installed/updated!${reset}`);
|
package/opencode.json
CHANGED
|
@@ -102,7 +102,13 @@
|
|
|
102
102
|
"prompt": "{file:./.opencode/rules/sdd-global.md}\n\n{file:./.opencode/agents/sdd-orchestrator.md}",
|
|
103
103
|
"permission": {
|
|
104
104
|
"*": "allow",
|
|
105
|
-
"write":
|
|
105
|
+
"write": {
|
|
106
|
+
".openspec/*": "allow",
|
|
107
|
+
".openspec/**": "allow",
|
|
108
|
+
".opencode/*": "allow",
|
|
109
|
+
".opencode/**": "allow",
|
|
110
|
+
"*": "deny"
|
|
111
|
+
},
|
|
106
112
|
"edit": "deny",
|
|
107
113
|
"bash": "deny",
|
|
108
114
|
"task": {
|