ssd-ql-workflow 0.1.5 → 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.
Files changed (2) hide show
  1. package/bin/cli.js +4 -16
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -19,20 +19,15 @@ program
19
19
  .command('init')
20
20
  .description('Initialize SDD workflow configuration in current project')
21
21
  .option('-f, --force', 'Overwrite existing files', false)
22
- .option('--no-commands', 'Skip copying command files', false)
23
- .option('--no-schema', 'Skip copying schema files', false)
22
+ .option('--skip-commands', 'Skip copying command files', false)
23
+ .option('--skip-schema', 'Skip copying schema files', false)
24
24
  .action(async (options) => {
25
25
  const cwd = process.cwd();
26
26
  console.log(chalk.blue('\nšŸš€ Initializing SDD workflow...\n'));
27
27
 
28
- // Debug: print templates dir
29
- console.log(chalk.gray(`Templates dir: ${TEMPLATES_DIR}`));
30
- console.log(chalk.gray(`Templates exists: ${await fs.pathExists(TEMPLATES_DIR)}`));
31
- console.log(chalk.gray(`Working dir: ${cwd}\n`));
32
-
33
28
  try {
34
29
  // 1. Copy openspec config and schema
35
- if (options.schema !== false) {
30
+ if (!options.skipSchema) {
36
31
  const openspecDir = path.join(cwd, 'openspec');
37
32
 
38
33
  // Create openspec directory structure
@@ -44,9 +39,6 @@ program
44
39
  const configSrc = path.join(TEMPLATES_DIR, 'openspec', 'config.yaml');
45
40
  const configDest = path.join(openspecDir, 'config.yaml');
46
41
 
47
- console.log(chalk.gray(`Config src: ${configSrc}`));
48
- console.log(chalk.gray(`Config src exists: ${await fs.pathExists(configSrc)}`));
49
-
50
42
  if (await fs.exists(configDest) && !options.force) {
51
43
  console.log(chalk.yellow('⚠ config.yaml already exists, use --force to overwrite'));
52
44
  } else {
@@ -80,16 +72,12 @@ program
80
72
  }
81
73
 
82
74
  // 2. Copy opencode commands
83
- if (options.commands !== false) {
75
+ if (!options.skipCommands) {
84
76
  const commandsDir = path.join(cwd, '.opencode', 'commands');
85
77
  await fs.ensureDir(commandsDir);
86
78
 
87
79
  const templateCommandsDir = path.join(TEMPLATES_DIR, 'opencode', 'commands');
88
- console.log(chalk.gray(`Commands template dir: ${templateCommandsDir}`));
89
- console.log(chalk.gray(`Commands dir exists: ${await fs.pathExists(templateCommandsDir)}`));
90
-
91
80
  const commands = await fs.readdir(templateCommandsDir);
92
- console.log(chalk.gray(`Found ${commands.length} command files\n`));
93
81
 
94
82
  let copiedCount = 0;
95
83
  for (const cmd of commands) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssd-ql-workflow",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "SDD (Skill-Driven Development) CLI - Initialize trinity-workflow schema and commands",
5
5
  "type": "module",
6
6
  "bin": {