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.
- package/bin/spec-runner.js +4 -1
- package/package.json +1 -1
package/bin/spec-runner.js
CHANGED
|
@@ -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
|
-
|
|
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('');
|