spec-runner 1.0.2 → 1.0.3

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.
@@ -31,6 +31,8 @@ try {
31
31
 
32
32
  // ── 定数 ──────────────────────────────────────────────────────────────────────
33
33
  const PKG_DIR = path.resolve(__dirname, '..');
34
+ const PKG_JSON = (() => { try { return require(path.join(PKG_DIR, 'package.json')); } catch { return {}; } })();
35
+ const VERSION = PKG_JSON.version || '?.?.?';
34
36
  const CWD = process.cwd();
35
37
  const CONFIG_DIR = path.join(CWD, '.spec-runner');
36
38
  const CONFIG_SH = path.join(CONFIG_DIR, 'config.sh');
@@ -152,7 +154,8 @@ const DEFAULT_STRUCTURE = {
152
154
  async function main() {
153
155
  log('');
154
156
  log(chalk.bold('╔════════════════════════════════════════╗'));
155
- log(chalk.bold('║ spec-runner v1.0.0-alpha ║'));
157
+ const verPad = Math.max(0, 17 - String(VERSION).length);
158
+ log(chalk.bold(`║ spec-runner v${VERSION}${' '.repeat(verPad)}║`));
156
159
  log(chalk.bold('║ AI-driven DDD Phase Gate System ║'));
157
160
  log(chalk.bold('╚════════════════════════════════════════╝'));
158
161
  log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-runner",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI-driven DDD phase gate system — design-first enforcement for Claude Code, Cursor, and Copilot",
5
5
  "license": "MIT",
6
6
  "bin": {