@exodus/openspec 1.2.3 → 1.2.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/core/init.js CHANGED
@@ -407,7 +407,8 @@ export class InitCommand {
407
407
  const generatedCommands = generateCommands(commandContents, adapter);
408
408
  for (const cmd of generatedCommands) {
409
409
  const commandFile = path.isAbsolute(cmd.path) ? cmd.path : path.join(projectPath, cmd.path);
410
- await FileSystemUtils.writeFile(commandFile, cmd.fileContent);
410
+ const commandContent = cliTransformer ? cliTransformer(cmd.fileContent) : cmd.fileContent;
411
+ await FileSystemUtils.writeFile(commandFile, commandContent);
411
412
  }
412
413
  }
413
414
  else {
@@ -152,7 +152,8 @@ export class UpdateCommand {
152
152
  const generatedCommands = generateCommands(commandContents, adapter);
153
153
  for (const cmd of generatedCommands) {
154
154
  const commandFile = path.isAbsolute(cmd.path) ? cmd.path : path.join(resolvedProjectPath, cmd.path);
155
- await FileSystemUtils.writeFile(commandFile, cmd.fileContent);
155
+ const commandContent = cliTransformer ? cliTransformer(cmd.fileContent) : cmd.fileContent;
156
+ await FileSystemUtils.writeFile(commandFile, commandContent);
156
157
  }
157
158
  removedDeselectedCommandCount += await this.removeUnselectedCommandFiles(resolvedProjectPath, toolId, desiredWorkflows);
158
159
  }
@@ -527,7 +528,8 @@ export class UpdateCommand {
527
528
  const generatedCommands = generateCommands(commandContents, adapter);
528
529
  for (const cmd of generatedCommands) {
529
530
  const commandFile = path.isAbsolute(cmd.path) ? cmd.path : path.join(projectPath, cmd.path);
530
- await FileSystemUtils.writeFile(commandFile, cmd.fileContent);
531
+ const commandContent = legacyCliTransformer ? legacyCliTransformer(cmd.fileContent) : cmd.fileContent;
532
+ await FileSystemUtils.writeFile(commandFile, commandContent);
531
533
  }
532
534
  }
533
535
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/openspec",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "AI-native system for spec-driven development",
5
5
  "keywords": [
6
6
  "openspec",