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.
- package/.adspecs/extensions/git/commands/adspecs.git.initialize.md +4 -4
- package/.adspecs/extensions/git/extension.yml +1 -1
- package/.adspecs/extensions/git/git-config.yml +17 -2
- package/.adspecs/extensions.yml +32 -0
- package/.adspecs/paths.json +17 -0
- 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
- package/.adspecs/workflows/adspecs/workflow.yml +5 -4
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.qoder-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/references/antd-front-demo/.env +4 -4
- package/references/antd-front-demo/.env.develop +12 -0
- package/references/antd-front-demo/.env.production +5 -0
- package/references/antd-front-demo/package-lock.json +2 -2
- package/references/antd-front-demo/package.json +1 -1
- package/skills/adspecs-front-prototype/SKILL.md +405 -0
- package/skills/adspecs-git-commit/SKILL.md +23 -8
- package/skills/adspecs-git-initialize/SKILL.md +54 -0
- package/src/lib/prompts.js +23 -21
- package/references/antd-front-demo/src/pages/aps/coil/components/CoilDrawer.tsx +0 -141
- package/references/antd-front-demo/src/pages/aps/coil/index.tsx +0 -209
- package/references/antd-front-demo/src/pages/aps/optimization/index.tsx +0 -192
- package/references/antd-front-demo/src/pages/aps/order/components/OrderDrawer.tsx +0 -251
- package/references/antd-front-demo/src/pages/aps/order/index.tsx +0 -273
- package/references/antd-front-demo/src/pages/aps/param/index.tsx +0 -153
- package/references/antd-front-demo/src/pages/aps/plan/components/CuttingPlanVisualization.tsx +0 -821
- package/references/antd-front-demo/src/pages/aps/plan/index.tsx +0 -254
- 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**: `.
|
|
14
|
-
- **PowerShell**: `.
|
|
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
|
|
18
|
-
- **PowerShell**: `git init; git add .; git commit -m "Initial commit from
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Git Branching Workflow Extension Configuration
|
|
2
|
-
# Copied to .
|
|
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"
|
package/.adspecs/extensions.yml
CHANGED
|
@@ -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: "
|
|
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
|
|
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:
|
|
44
|
-
command: adspecs.
|
|
44
|
+
- id: new-requirement
|
|
45
|
+
command: adspecs.new-requirement
|
|
45
46
|
integration: "{{ inputs.integration }}"
|
|
46
47
|
input:
|
|
47
48
|
args: "{{ inputs.spec }}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adspecs",
|
|
3
3
|
"displayName": "adspecs AI 工程规范驱动开发插件",
|
|
4
|
-
"version": "0.1.
|
|
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,10 +1,10 @@
|
|
|
1
1
|
# 应用标题
|
|
2
|
-
VITE_APP_TITLE
|
|
3
|
-
VITE_APP_SIDEBAR_TITLE
|
|
4
|
-
VITE_APP_BRAND_TITLE
|
|
2
|
+
VITE_APP_TITLE=演示环境
|
|
3
|
+
VITE_APP_SIDEBAR_TITLE=演示环境
|
|
4
|
+
VITE_APP_BRAND_TITLE=演示环境
|
|
5
5
|
|
|
6
6
|
# 应用命名空间
|
|
7
|
-
VITE_APP_NAMESPACE=
|
|
7
|
+
VITE_APP_NAMESPACE=front-demo
|
|
8
8
|
|
|
9
9
|
# 请求路径
|
|
10
10
|
VITE_BASE_URL=
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
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": "
|
|
8
|
+
"name": "front-demo",
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@ant-design/icons": "^6.2.3",
|