zugzbot-sdd 1.5.37 → 1.5.39

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.
@@ -175,16 +175,29 @@ export default tool({
175
175
  report.push(`⚠️ Sincronización automática de habilidades fallida o no disponible: ${e.message || e}`);
176
176
  }
177
177
  // 4. No temporary file is needed on disk, we feed it directly to git commit stdin in step 7.
178
- // 5. Resetear el lockfile a idle (ANTES del commit para incluirlo en el cierre)
178
+ // 5. Resetear el lockfile a idle con un estado completamente limpio y fresco (ANTES del commit para incluirlo en el cierre)
179
179
  if (fs.existsSync(lockfilePath)) {
180
180
  try {
181
- const lockfile = JSON.parse(fs.readFileSync(lockfilePath, "utf-8"));
182
- lockfile.active_phase = 0;
183
- lockfile.active_subagent = "sdd-planner";
184
- lockfile.status = "idle";
185
- lockfile.last_updated = dateStr;
181
+ const lockfile = {
182
+ change_name: "nuevo-cambio",
183
+ active_phase: 0,
184
+ active_subagent: "sdd-explorer",
185
+ status: "idle",
186
+ auto_pilot: false,
187
+ iteration: 0,
188
+ last_updated: dateStr,
189
+ orchestrator_mode: "delegation_only",
190
+ direction: "forward",
191
+ last_successful_phase: 0,
192
+ retry_count: 0,
193
+ corrective_loop_active: false,
194
+ fresh_task: false,
195
+ checkpoints: [],
196
+ tasks: [],
197
+ complexity: "low"
198
+ };
186
199
  fs.writeFileSync(lockfilePath, JSON.stringify(lockfile, null, 2), "utf-8");
187
- report.push(`✓ Lockfile .openspec/sdd-lock.json restablecido a 'idle'`);
200
+ report.push(`✓ Lockfile .openspec/sdd-lock.json restablecido a 'idle' con valores limpios`);
188
201
  }
189
202
  catch (e) {
190
203
  report.push(`⚠️ No se pudo restablecer el lockfile: ${e.message}`);
package/bin/zugzbot.js CHANGED
@@ -40,6 +40,10 @@ const TEMPLATE_GITIGNORE = `# Zugzbot SDD
40
40
  .openspec/sdd-lock.json
41
41
  .openspec/checkpoints/
42
42
  tui.json
43
+ zugz-models.json
44
+ node_modules/
45
+ .opencode/
46
+ package-lock.json
43
47
  `
44
48
 
45
49
  const BRAIN_TEMPLATE = `# 🧠 Brain del Proyecto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zugzbot-sdd",
3
- "version": "1.5.37",
3
+ "version": "1.5.39",
4
4
  "description": "Zugzbot SDD Swarm - Spec-Driven Development Harness for OpenCode",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -174,16 +174,29 @@ export default tool({
174
174
 
175
175
  // 4. No temporary file is needed on disk, we feed it directly to git commit stdin in step 7.
176
176
 
177
- // 5. Resetear el lockfile a idle (ANTES del commit para incluirlo en el cierre)
177
+ // 5. Resetear el lockfile a idle con un estado completamente limpio y fresco (ANTES del commit para incluirlo en el cierre)
178
178
  if (fs.existsSync(lockfilePath)) {
179
179
  try {
180
- const lockfile = JSON.parse(fs.readFileSync(lockfilePath, "utf-8"))
181
- lockfile.active_phase = 0
182
- lockfile.active_subagent = "sdd-planner"
183
- lockfile.status = "idle"
184
- lockfile.last_updated = dateStr
180
+ const lockfile = {
181
+ change_name: "nuevo-cambio",
182
+ active_phase: 0,
183
+ active_subagent: "sdd-explorer",
184
+ status: "idle",
185
+ auto_pilot: false,
186
+ iteration: 0,
187
+ last_updated: dateStr,
188
+ orchestrator_mode: "delegation_only",
189
+ direction: "forward",
190
+ last_successful_phase: 0,
191
+ retry_count: 0,
192
+ corrective_loop_active: false,
193
+ fresh_task: false,
194
+ checkpoints: [],
195
+ tasks: [],
196
+ complexity: "low"
197
+ }
185
198
  fs.writeFileSync(lockfilePath, JSON.stringify(lockfile, null, 2), "utf-8")
186
- report.push(`✓ Lockfile .openspec/sdd-lock.json restablecido a 'idle'`)
199
+ report.push(`✓ Lockfile .openspec/sdd-lock.json restablecido a 'idle' con valores limpios`)
187
200
  } catch (e: any) {
188
201
  report.push(`⚠️ No se pudo restablecer el lockfile: ${e.message}`)
189
202
  }