@localsummer/incspec 0.2.3 → 0.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/README.md +5 -0
- package/package.json +5 -8
- package/{index.mjs → src/index.mjs} +1 -1
- /package/{commands → src/commands}/analyze.mjs +0 -0
- /package/{commands → src/commands}/apply.mjs +0 -0
- /package/{commands → src/commands}/archive.mjs +0 -0
- /package/{commands → src/commands}/collect-dep.mjs +0 -0
- /package/{commands → src/commands}/collect-req.mjs +0 -0
- /package/{commands → src/commands}/design.mjs +0 -0
- /package/{commands → src/commands}/help.mjs +0 -0
- /package/{commands → src/commands}/init.mjs +0 -0
- /package/{commands → src/commands}/list.mjs +0 -0
- /package/{commands → src/commands}/merge.mjs +0 -0
- /package/{commands → src/commands}/reset.mjs +0 -0
- /package/{commands → src/commands}/status.mjs +0 -0
- /package/{commands → src/commands}/sync.mjs +0 -0
- /package/{commands → src/commands}/update.mjs +0 -0
- /package/{commands → src/commands}/validate.mjs +0 -0
- /package/{lib → src/lib}/agents.mjs +0 -0
- /package/{lib → src/lib}/config.mjs +0 -0
- /package/{lib → src/lib}/ide-sync.mjs +0 -0
- /package/{lib → src/lib}/spec.mjs +0 -0
- /package/{lib → src/lib}/terminal.mjs +0 -0
- /package/{lib → src/lib}/workflow.mjs +0 -0
- /package/{templates → src/templates}/AGENTS.md +0 -0
- /package/{templates → src/templates}/INCSPEC_BLOCK.md +0 -0
- /package/{templates → src/templates}/WORKFLOW.md +0 -0
- /package/{templates → src/templates}/commands/analyze-codeflow.md +0 -0
- /package/{templates → src/templates}/commands/analyze-increment-codeflow.md +0 -0
- /package/{templates → src/templates}/commands/apply-increment-code.md +0 -0
- /package/{templates → src/templates}/commands/inc-archive.md +0 -0
- /package/{templates → src/templates}/commands/merge-to-baseline.md +0 -0
- /package/{templates → src/templates}/commands/structured-requirements-collection.md +0 -0
- /package/{templates → src/templates}/commands/ui-dependency-collection.md +0 -0
- /package/{templates → src/templates}/project.md +0 -0
package/README.md
CHANGED
|
@@ -470,6 +470,11 @@ incspec reset -t 3 # 短选项形式
|
|
|
470
470
|
```
|
|
471
471
|
your-project/
|
|
472
472
|
├── AGENTS.md # AI 代理指令(包含 incspec 指令块)
|
|
473
|
+
├── src/ # IncSpec 源代码
|
|
474
|
+
│ ├── index.mjs # CLI 入口
|
|
475
|
+
│ ├── commands/ # 命令实现
|
|
476
|
+
│ ├── lib/ # 核心库
|
|
477
|
+
│ └── templates/ # Markdown 模板文件
|
|
473
478
|
├── incspec/
|
|
474
479
|
│ ├── project.md # 项目配置
|
|
475
480
|
│ ├── WORKFLOW.md # 当前工作流状态
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localsummer/incspec",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "面向 AI 编程助手的增量规范驱动开发工具",
|
|
5
5
|
"bin": {
|
|
6
|
-
"incspec": "index.mjs"
|
|
6
|
+
"incspec": "src/index.mjs"
|
|
7
7
|
},
|
|
8
|
-
"main": "index.mjs",
|
|
8
|
+
"main": "src/index.mjs",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"start": "node index.mjs"
|
|
11
|
+
"start": "node src/index.mjs"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"incspec",
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
"node": ">=18.0.0"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
|
-
"
|
|
36
|
-
"commands/",
|
|
37
|
-
"lib/",
|
|
38
|
-
"templates/"
|
|
35
|
+
"src/"
|
|
39
36
|
]
|
|
40
37
|
}
|
|
@@ -121,7 +121,7 @@ async function main() {
|
|
|
121
121
|
const { createRequire } = await import('module');
|
|
122
122
|
const require = createRequire(import.meta.url);
|
|
123
123
|
try {
|
|
124
|
-
const pkg = require('
|
|
124
|
+
const pkg = require('../package.json');
|
|
125
125
|
console.log(pkg.version);
|
|
126
126
|
} catch {
|
|
127
127
|
console.log('unknown');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|