adspecs 0.1.18 → 0.1.19

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 (29) hide show
  1. package/.adspecs/extensions/git/commands/adspecs.git.initialize.md +4 -4
  2. package/.adspecs/extensions/git/extension.yml +1 -1
  3. package/.adspecs/extensions/git/git-config.yml +17 -2
  4. package/.adspecs/extensions.yml +32 -0
  5. package/.adspecs/paths.json +17 -0
  6. package/.adspecs/templates/02-/344/272/247/345/223/201/351/234/200/346/261/202/350/257/264/346/230/216/344/271/246/346/250/241/346/235/277.md +4 -0
  7. package/.adspecs/workflows/adspecs/workflow.yml +5 -4
  8. package/.claude-plugin/marketplace.json +1 -1
  9. package/.claude-plugin/plugin.json +1 -1
  10. package/.qoder-plugin/plugin.json +1 -1
  11. package/package.json +1 -1
  12. package/references/antd-front-demo/.env +4 -4
  13. package/references/antd-front-demo/.env.develop +12 -0
  14. package/references/antd-front-demo/.env.production +5 -0
  15. package/references/antd-front-demo/package-lock.json +2 -2
  16. package/references/antd-front-demo/package.json +1 -1
  17. package/skills/adspecs-front-prototype/SKILL.md +405 -0
  18. package/skills/adspecs-git-commit/SKILL.md +23 -8
  19. package/skills/adspecs-git-initialize/SKILL.md +54 -0
  20. package/src/lib/prompts.js +23 -21
  21. package/references/antd-front-demo/src/pages/aps/coil/components/CoilDrawer.tsx +0 -141
  22. package/references/antd-front-demo/src/pages/aps/coil/index.tsx +0 -209
  23. package/references/antd-front-demo/src/pages/aps/optimization/index.tsx +0 -192
  24. package/references/antd-front-demo/src/pages/aps/order/components/OrderDrawer.tsx +0 -251
  25. package/references/antd-front-demo/src/pages/aps/order/index.tsx +0 -273
  26. package/references/antd-front-demo/src/pages/aps/param/index.tsx +0 -153
  27. package/references/antd-front-demo/src/pages/aps/plan/components/CuttingPlanVisualization.tsx +0 -821
  28. package/references/antd-front-demo/src/pages/aps/plan/index.tsx +0 -254
  29. package/references/antd-front-demo/src/pages/aps/task/index.tsx +0 -190
@@ -10,12 +10,12 @@ Initialize a Git repository in the current project directory if one does not alr
10
10
 
11
11
  Run the appropriate script from the project root:
12
12
 
13
- - **Bash**: `.specify/extensions/git/scripts/bash/initialize-repo.sh`
14
- - **PowerShell**: `.specify/extensions/git/scripts/powershell/initialize-repo.ps1`
13
+ - **Bash**: `.adspecs/extensions/git/scripts/bash/initialize-repo.sh`
14
+ - **PowerShell**: `.adspecs/extensions/git/scripts/powershell/initialize-repo.ps1`
15
15
 
16
16
  If the extension scripts are not found, fall back to:
17
- - **Bash**: `git init && git add . && git commit -m "Initial commit from Specify template"`
18
- - **PowerShell**: `git init; git add .; git commit -m "Initial commit from Specify template"`
17
+ - **Bash**: `git init && git add . && git commit -m "Initial commit from Adspecs template"`
18
+ - **PowerShell**: `git init; git add .; git commit -m "Initial commit from Adspecs template"`
19
19
 
20
20
  The script handles all checks internally:
21
21
  - Skips if Git is not available
@@ -10,7 +10,7 @@ extension:
10
10
  license: MIT
11
11
 
12
12
  requires:
13
- adspecs_version: ">=0.2.0"
13
+ adspecs_version: ">=0.1.0"
14
14
  tools:
15
15
  - name: git
16
16
  required: false
@@ -1,5 +1,5 @@
1
1
  # Git Branching Workflow Extension Configuration
2
- # Copied to .specify/extensions/git/git-config.yml on install
2
+ # Copied to .adspecs/extensions/git/git-config.yml on install
3
3
 
4
4
  # Branch numbering strategy: "sequential" (001, 002, ...) or "timestamp" (YYYYMMDD-HHMMSS)
5
5
  branch_numbering: sequential
@@ -11,7 +11,10 @@ init_commit_message: "[adspecs] Initial commit"
11
11
  # Set "default" to enable for all commands, then override per-command.
12
12
  # Each key can be true/false. Message is customizable per-command.
13
13
  auto_commit:
14
- default: false
14
+ default: false
15
+ before_prd:
16
+ enabled: false
17
+ message: "[adspecs] Save progress before prd"
15
18
  before_clarify:
16
19
  enabled: false
17
20
  message: "[adspecs] Save progress before clarification"
@@ -21,6 +24,12 @@ auto_commit:
21
24
  before_tasks:
22
25
  enabled: false
23
26
  message: "[adspecs] Save progress before task generation"
27
+ before_front-spec:
28
+ enabled: false
29
+ message: "[adspecs] Save progress before front-spec"
30
+ before_front-tasks:
31
+ enabled: false
32
+ message: "[adspecs] Save progress before front-tasks"
24
33
  before_implement:
25
34
  enabled: false
26
35
  message: "[adspecs] Save progress before implementation"
@@ -33,6 +42,9 @@ auto_commit:
33
42
  before_taskstoissues:
34
43
  enabled: false
35
44
  message: "[adspecs] Save progress before issue sync"
45
+ before_update_status:
46
+ enabled: false
47
+ message: "[adspecs] Save progress before update status"
36
48
  after_constitution:
37
49
  enabled: false
38
50
  message: "[adspecs] Add project constitution"
@@ -63,3 +75,6 @@ auto_commit:
63
75
  after_taskstoissues:
64
76
  enabled: false
65
77
  message: "[adspecs] Sync tasks to issues"
78
+ after_updatestatus:
79
+ enabled: true
80
+ message: "[adspecs] Sync update status"
@@ -50,6 +50,22 @@ hooks:
50
50
  optional: false
51
51
  prompt: Commit outstanding changes before task generation?
52
52
  description: Auto-commit before task generation
53
+ condition: null
54
+ before_front-spec:
55
+ - extension: git
56
+ command: adspecs.git.commit
57
+ enabled: false
58
+ optional: false
59
+ prompt: Commit outstanding changes before front-spec planning?
60
+ description: Auto-commit before front-spec planning
61
+ condition: null
62
+ before_front-tasks:
63
+ - extension: git
64
+ command: adspecs.git.commit
65
+ enabled: false
66
+ optional: false
67
+ prompt: Commit outstanding changes before front tasks generation?
68
+ description: Auto-commit before front tasks generation
53
69
  condition: null
54
70
  before_implement:
55
71
  - extension: git
@@ -130,6 +146,22 @@ hooks:
130
146
  optional: true
131
147
  prompt: Commit task changes?
132
148
  description: Auto-commit after task generation
149
+ condition: null
150
+ after_front-spec:
151
+ - extension: git
152
+ command: adspecs.git.commit
153
+ enabled: true
154
+ optional: true
155
+ prompt: Commit front-spec changes?
156
+ description: Auto-commit after implementation front-spec
157
+ condition: null
158
+ after_front-tasks:
159
+ - extension: git
160
+ command: adspecs.git.commit
161
+ enabled: true
162
+ optional: true
163
+ prompt: Commit front tasks changes?
164
+ description: Auto-commit after implementation front-tasks
133
165
  condition: null
134
166
  after_implement:
135
167
  - extension: git
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "adspecs plugin path configuration",
3
+ "version": 1,
4
+ "paths": {
5
+ "biz_analysis_dir": "docs/00-customer-requirements",
6
+ "architecture_dir": "docs/10-architecture",
7
+ "research_output_dir": "docs/02-prd",
8
+ "sow_dir": "docs/05-sow",
9
+ "prd_dir": "docs/20-prd",
10
+ "design_dir": "docs/30-system-design",
11
+ "test_report_dir": "docs/80-development",
12
+ "export_dir": "docs/90-export",
13
+ "front_demo_dir": "front-demo",
14
+ "front_prototype_dir": "web-ui",
15
+ "wiki_dir": "wiki"
16
+ }
17
+ }
@@ -370,6 +370,9 @@ stateDiagram-v2
370
370
  - [如果有特殊的业务逻辑,描述清楚]
371
371
  - [如:需要调用第三方接口、需要特殊计算、需要特殊权限等]
372
372
 
373
+ **异常处理**:
374
+ - [详细描述异常场景业务逻辑,重点包括权限异常、数据为空、接口失败、重复提交、状态冲突、网络异常、历史数据兼容、用户中途退出]
375
+
373
376
  **业务实体**(若功能涉及数据,请包含):
374
377
  - **[实体1]**: [其代表的含义,未实现的关键属性]
375
378
  - **[实体2]**: [它代表什么,与其他实体的关系]
@@ -394,6 +397,7 @@ stateDiagram-v2
394
397
  - [原型文件路径]: [如:应收佣金(一期).html]
395
398
  - [原型页面说明]: [描述原型页面对应的功能,包括详细描述界面中各个按钮、字段之间的联动逻辑]
396
399
  ---
400
+
397
401
  #### 4.3.2 功能2: [功能编号] [功能名称]
398
402
 
399
403
  [按照上述格式继续描述。报表类功能可用"页面布局"小节替代操作流程;扫码/移动端功能可用"功能入口"小节列出各操作场景]
@@ -2,7 +2,7 @@ schema_version: "1.0"
2
2
  workflow:
3
3
  id: "adspecs"
4
4
  name: "Full SDD Cycle"
5
- version: "1.0.1"
5
+ version: "0.1.18"
6
6
  author: "GitHub"
7
7
  description: "Runs adspecs → plan → tasks → implement with review gates"
8
8
 
@@ -10,7 +10,7 @@ requires:
10
10
  # 0.8.5 is the first release with engine-side resolution of the
11
11
  # ``integration: "auto"`` default. Older versions would treat "auto"
12
12
  # as a literal integration key and fail at dispatch.
13
- adspecs_version: ">=1.0.1"
13
+ adspecs_version: ">=0.1.0"
14
14
  integrations:
15
15
  # The four commands below (adspecs, plan, tasks, implement) are core
16
16
  # adspecs commands provided by every integration. The list here is an
@@ -21,6 +21,7 @@ requires:
21
21
  # core commands referenced in ``steps``.
22
22
  any:
23
23
  - "claude"
24
+ - "qoder"
24
25
  - "copilot"
25
26
  - "gemini"
26
27
  - "opencode"
@@ -40,8 +41,8 @@ inputs:
40
41
  enum: ["full", "backend-only", "frontend-only"]
41
42
 
42
43
  steps:
43
- - id: biz-analysis
44
- command: adspecs.biz-analysis
44
+ - id: new-requirement
45
+ command: adspecs.new-requirement
45
46
  integration: "{{ inputs.integration }}"
46
47
  input:
47
48
  args: "{{ inputs.spec }}"
@@ -10,7 +10,7 @@
10
10
  {
11
11
  "name": "adspecs",
12
12
  "description": "AI Coding研发协同开发插件",
13
- "version": "0.1.18",
13
+ "version": "0.1.19",
14
14
  "source": "./",
15
15
  "author": {
16
16
  "name": "Qingwen Chen",
@@ -2,7 +2,7 @@
2
2
  "name": "adspecs",
3
3
  "displayName": "adspecs AI Plugin",
4
4
  "description": "AI first工程规范驱动开发插件",
5
- "version": "0.1.18",
5
+ "version": "0.1.19",
6
6
  "author": {
7
7
  "name": "Qingwen Chen",
8
8
  "email": "cqinwn@qq.com",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adspecs",
3
3
  "displayName": "adspecs AI 工程规范驱动开发插件",
4
- "version": "0.1.18",
4
+ "version": "0.1.19",
5
5
  "description": "AI-first specification-driven development plugin for ECP platform full-lifecycle development",
6
6
  "descriptionZh": "AI优先的工程规范驱动开发插件,覆盖需求分析、PRD、系统设计、任务拆解、TDD、代码评审、Wiki同步全流程",
7
7
  "author": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adspecs",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "AI first 工程规范驱动开发插件 — 支持 npm 安装和 CLI 初始化",
5
5
  "bin": {
6
6
  "adspecs": "./bin/adspecs.js"
@@ -1,10 +1,10 @@
1
1
  # 应用标题
2
- VITE_APP_TITLE=Sie Front Demo
3
- VITE_APP_SIDEBAR_TITLE=Sie Demo
4
- VITE_APP_BRAND_TITLE=Sie Front Demo
2
+ VITE_APP_TITLE=演示环境
3
+ VITE_APP_SIDEBAR_TITLE=演示环境
4
+ VITE_APP_BRAND_TITLE=演示环境
5
5
 
6
6
  # 应用命名空间
7
- VITE_APP_NAMESPACE=sie-demo
7
+ VITE_APP_NAMESPACE=front-demo
8
8
 
9
9
  # 请求路径
10
10
  VITE_BASE_URL=
@@ -0,0 +1,12 @@
1
+ # 应用标题
2
+ VITE_APP_TITLE=演示环境
3
+ VITE_APP_SIDEBAR_TITLE=演示环境
4
+ VITE_APP_BRAND_TITLE=演示环境
5
+
6
+ # 请求路径
7
+ VITE_BASE_URL=
8
+ # 接口地址
9
+ VITE_API_BASE_URL=/admin-api
10
+
11
+ # 是否开启模拟数据(生产环境可关闭)
12
+ VITE_MOCK_ENABLED=true
@@ -1,3 +1,8 @@
1
+ # 应用标题
2
+ VITE_APP_TITLE=演示环境
3
+ VITE_APP_SIDEBAR_TITLE=演示环境
4
+ VITE_APP_BRAND_TITLE=演示环境
5
+
1
6
  # 请求路径
2
7
  VITE_BASE_URL=
3
8
  # 接口地址
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "sie-front-demo",
2
+ "name": "front-demo",
3
3
  "version": "1.0.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
- "name": "sie-front-demo",
8
+ "name": "front-demo",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
11
  "@ant-design/icons": "^6.2.3",
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "sie-front-demo",
2
+ "name": "front-demo",
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "type": "module",