specline 1.1.0 → 1.1.1

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/cli.mjs +4 -1
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -8,7 +8,10 @@ import { get } from 'https';
8
8
 
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
10
  const TEMPLATES_DIR = join(__dirname, 'templates');
11
- const VERSION = '1.0.0';
11
+
12
+ // 从 package.json 读取版本号(由 npm version 命令自动维护)
13
+ const PKG = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8'));
14
+ const VERSION = PKG.version;
12
15
 
13
16
  // ============================================================
14
17
  // 共享工具函数 — 锁文件读写、哈希计算
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specline",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Spec-driven AI coding pipeline with deterministic quality gates for Cursor IDE",
5
5
  "bin": {
6
6
  "specline": "./cli.mjs"