@hupan56/wlkj 2.2.4 → 2.2.6
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/cli.js +532 -532
- package/package.json +28 -28
- package/templates/qoder/hooks/inject-workflow-state.py +117 -117
- package/templates/qoder/hooks/session-start.py +204 -204
- package/templates/qoder/scripts/common/developer.py +231 -161
- package/templates/qoder/scripts/common/paths.py +310 -310
- package/templates/qoder/scripts/common/task_utils.py +392 -392
- package/templates/qoder/scripts/common/terms.py +42 -2
- package/templates/qoder/scripts/init_developer.py +75 -75
- package/templates/qoder/scripts/install_qoderwork.py +367 -367
- package/templates/qoder/scripts/role.py +39 -39
- package/templates/qoder/scripts/search_index.py +123 -5
- package/templates/qoder/scripts/syncgate.py +333 -333
- package/templates/qoder/scripts/team_sync.py +439 -439
- package/templates/qoder/skills/design-review/SKILL.md +25 -25
- package/templates/qoder/skills/prd-generator/SKILL.md +180 -180
- package/templates/qoder/skills/prd-review/SKILL.md +36 -36
- package/templates/qoder/skills/prototype-generator/SKILL.md +141 -141
- package/templates/qoder/skills/spec-coder/SKILL.md +68 -68
- package/templates/qoder/skills/spec-generator/SKILL.md +66 -66
- package/templates/qoder/skills/test-generator/SKILL.md +71 -71
- package/templates/root/AGENTS.md +182 -182
|
@@ -64,6 +64,37 @@ CN_MAP = {
|
|
|
64
64
|
'分类': 'category classify', '类型': 'type',
|
|
65
65
|
'地区': 'region area', '区域': 'zone region',
|
|
66
66
|
'时间': 'time date', '日期': 'date',
|
|
67
|
+
# 异常/品质/合规 (高频但之前缺失, 导致"异常记录"搜不到)
|
|
68
|
+
'异常': 'abnormal anomaly exception', '故障': 'fault error failure',
|
|
69
|
+
'报警': 'alarm alert warning', '违规': 'violation breach',
|
|
70
|
+
'合规': 'compliance', '风险': 'risk hazard',
|
|
71
|
+
'处理': 'handle process deal', '反馈': 'feedback',
|
|
72
|
+
# 筛选/查询 (PRD 高频, "新增筛选条件"类需求)
|
|
73
|
+
'筛选': 'filter search', '过滤': 'filter',
|
|
74
|
+
'搜索': 'search query', '查询': 'query search find',
|
|
75
|
+
'条件': 'condition filter criteria',
|
|
76
|
+
'排序': 'sort order', '分组': 'group',
|
|
77
|
+
# 页面/交互
|
|
78
|
+
'列表': 'list table', '详情': 'detail info',
|
|
79
|
+
'弹窗': 'modal dialog popup', '抽屉': 'drawer',
|
|
80
|
+
'表单': 'form', '表格': 'table grid',
|
|
81
|
+
'看板': 'dashboard board panel', '大屏': 'screen monitor dashboard',
|
|
82
|
+
'图表': 'chart graph', '柱状图': 'bar chart',
|
|
83
|
+
'饼图': 'pie chart', '折线图': 'line chart',
|
|
84
|
+
# 项目类型/业务对象 (本次需求触发)
|
|
85
|
+
'项目类型': 'projectType project type',
|
|
86
|
+
'业务对象': 'business object entity',
|
|
87
|
+
# 导入导出增强
|
|
88
|
+
'上传': 'upload import', '下载': 'download export',
|
|
89
|
+
'打印': 'print', '预览': 'preview',
|
|
90
|
+
# 人员/身份增强
|
|
91
|
+
'人员': 'person personnel staff user',
|
|
92
|
+
'负责人': 'owner manager charge',
|
|
93
|
+
'驾驶员': 'driver',
|
|
94
|
+
# 地图/位置
|
|
95
|
+
'地图': 'map gis',
|
|
96
|
+
'位置': 'location position gps',
|
|
97
|
+
'轨迹': 'track trajectory gps',
|
|
67
98
|
}
|
|
68
99
|
|
|
69
100
|
# Chinese business term -> code path/identifier patterns.
|
|
@@ -120,6 +151,15 @@ BUSINESS_PATH_MAP = {
|
|
|
120
151
|
'消息': ['message', 'Message', 'notify', 'Notify'],
|
|
121
152
|
'配置': ['config', 'Config', 'setting', 'Setting'],
|
|
122
153
|
'字典': ['dict', 'Dict', 'dictionary', 'Dictionary'],
|
|
154
|
+
# 异常/品质/合规 (新增, 解决"异常记录"搜不到)
|
|
155
|
+
'异常': ['abnormal', 'Abnormal', 'anomaly', 'Anomaly', 'exception', 'Exception'],
|
|
156
|
+
'故障': ['fault', 'Fault', 'error', 'Error', 'failure', 'Failure'],
|
|
157
|
+
'合规': ['compliance', 'Compliance'],
|
|
158
|
+
'看板': ['dashboard', 'Dashboard', 'board', 'Board', 'panel', 'Panel'],
|
|
159
|
+
'大屏': ['screen', 'Screen', 'monitor', 'Monitor', 'dashboard'],
|
|
160
|
+
'地图': ['map', 'Map', 'gis', 'GIS'],
|
|
161
|
+
'轨迹': ['track', 'Track', 'trajectory', 'gps', 'GPS'],
|
|
162
|
+
'筛选': ['filter', 'Filter', 'search', 'Search'],
|
|
123
163
|
}
|
|
124
164
|
|
|
125
165
|
# Chinese term -> single primary English keyword (derived from CN_MAP).
|
|
@@ -178,8 +218,8 @@ PRD_STOP_WORDS = {
|
|
|
178
218
|
'以及', '如果', '那么', '但是', '因为', '所以', '用户', '系统', '页面', '数据',
|
|
179
219
|
'信息', '操作', '管理', '列表', '详情', '新增', '修改', '删除', '查询', '搜索',
|
|
180
220
|
'筛选', '点击', '选择', '输入', '确认', '取消', '保存', '提交', '返回', '跳转',
|
|
181
|
-
'当前', '前端', '后端', '影响', '范围', '下拉', '条件', '字段', '全部',
|
|
182
|
-
'正常', '
|
|
221
|
+
'当前', '前端', '后端', '影响', '范围', '下拉', '条件', '字段', '全部',
|
|
222
|
+
'正常', '面板', '统计', '表页', '搜索表', '与其他', '表单', '背景',
|
|
183
223
|
'一个', '这个', '那个', '通过', '根据', '按照', '同时', '并且',
|
|
184
224
|
'要求', '需求', '描述', '说明', '备注', '注意', '重要', '优先', '级别',
|
|
185
225
|
'方案', '设计', '开发', '测试', '上线', '版本', '迭代', '更新', '发布',
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
"""
|
|
4
|
-
QODER Pipeline - 开发者初始化
|
|
5
|
-
|
|
6
|
-
Usage:
|
|
7
|
-
python init_developer.py <developer-name>
|
|
8
|
-
|
|
9
|
-
功能:
|
|
10
|
-
- 创建 .qoder/.developer 文件 (gitignored, 包含开发者身份信息)
|
|
11
|
-
- 创建 .qoder/workspace/<name>/ 目录结构
|
|
12
|
-
- 创建初始日志文件 journal-1.md
|
|
13
|
-
- 创建工作空间索引 index.md
|
|
14
|
-
|
|
15
|
-
参考: Trellis 的 init_developer.py 设计
|
|
16
|
-
|
|
17
|
-
示例:
|
|
18
|
-
python .qoder/scripts/init_developer.py zhangsan
|
|
19
|
-
python .qoder/scripts/init_developer.py john
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
from __future__ import annotations
|
|
23
|
-
|
|
24
|
-
import sys
|
|
25
|
-
import os
|
|
26
|
-
|
|
27
|
-
# 将 scripts 目录加入路径
|
|
28
|
-
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
29
|
-
|
|
30
|
-
from common.paths import (
|
|
31
|
-
DIR_WORKFLOW,
|
|
32
|
-
FILE_DEVELOPER,
|
|
33
|
-
get_developer,
|
|
34
|
-
get_repo_root,
|
|
35
|
-
)
|
|
36
|
-
from common.developer import init_developer, show_developer_info
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def main() -> None:
|
|
40
|
-
"""CLI 入口。"""
|
|
41
|
-
if len(sys.argv) < 2:
|
|
42
|
-
print(f"Usage: {sys.argv[0]} <developer-name> [role]")
|
|
43
|
-
print()
|
|
44
|
-
print("Example:")
|
|
45
|
-
print(f" {sys.argv[0]} zhangsan")
|
|
46
|
-
print(f" {sys.argv[0]} zhangsan pm")
|
|
47
|
-
sys.exit(1)
|
|
48
|
-
|
|
49
|
-
name = sys.argv[1]
|
|
50
|
-
role = sys.argv[2] if len(sys.argv) > 2 else None
|
|
51
|
-
|
|
52
|
-
# 检查是否已初始化
|
|
53
|
-
existing = get_developer()
|
|
54
|
-
if existing == name:
|
|
55
|
-
print(f"Developer already initialized: {existing}")
|
|
56
|
-
print()
|
|
57
|
-
print("Current developer info:")
|
|
58
|
-
show_developer_info()
|
|
59
|
-
sys.exit(0)
|
|
60
|
-
elif existing:
|
|
61
|
-
print(f"Switching developer: {existing} -> {name}")
|
|
62
|
-
|
|
63
|
-
# 初始化 (幂等, 也用于切换开发者)
|
|
64
|
-
if init_developer(name, role):
|
|
65
|
-
print()
|
|
66
|
-
print("Next steps:")
|
|
67
|
-
print(f" 1. Your workspace is at: workspace/members/{name}/")
|
|
68
|
-
print(f" 2. Start creating tasks: python .qoder/scripts/task.py create \"My Task\"")
|
|
69
|
-
print(f" 3. Check status: python .qoder/scripts/task.py list")
|
|
70
|
-
sys.exit(0)
|
|
71
|
-
else:
|
|
72
|
-
sys.exit(1)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if __name__ == "__main__":
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
QODER Pipeline - 开发者初始化
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
python init_developer.py <developer-name>
|
|
8
|
+
|
|
9
|
+
功能:
|
|
10
|
+
- 创建 .qoder/.developer 文件 (gitignored, 包含开发者身份信息)
|
|
11
|
+
- 创建 .qoder/workspace/<name>/ 目录结构
|
|
12
|
+
- 创建初始日志文件 journal-1.md
|
|
13
|
+
- 创建工作空间索引 index.md
|
|
14
|
+
|
|
15
|
+
参考: Trellis 的 init_developer.py 设计
|
|
16
|
+
|
|
17
|
+
示例:
|
|
18
|
+
python .qoder/scripts/init_developer.py zhangsan
|
|
19
|
+
python .qoder/scripts/init_developer.py john
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from __future__ import annotations
|
|
23
|
+
|
|
24
|
+
import sys
|
|
25
|
+
import os
|
|
26
|
+
|
|
27
|
+
# 将 scripts 目录加入路径
|
|
28
|
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
29
|
+
|
|
30
|
+
from common.paths import (
|
|
31
|
+
DIR_WORKFLOW,
|
|
32
|
+
FILE_DEVELOPER,
|
|
33
|
+
get_developer,
|
|
34
|
+
get_repo_root,
|
|
35
|
+
)
|
|
36
|
+
from common.developer import init_developer, show_developer_info
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def main() -> None:
|
|
40
|
+
"""CLI 入口。"""
|
|
41
|
+
if len(sys.argv) < 2:
|
|
42
|
+
print(f"Usage: {sys.argv[0]} <developer-name> [role]")
|
|
43
|
+
print()
|
|
44
|
+
print("Example:")
|
|
45
|
+
print(f" {sys.argv[0]} zhangsan")
|
|
46
|
+
print(f" {sys.argv[0]} zhangsan pm")
|
|
47
|
+
sys.exit(1)
|
|
48
|
+
|
|
49
|
+
name = sys.argv[1]
|
|
50
|
+
role = sys.argv[2] if len(sys.argv) > 2 else None
|
|
51
|
+
|
|
52
|
+
# 检查是否已初始化
|
|
53
|
+
existing = get_developer()
|
|
54
|
+
if existing == name:
|
|
55
|
+
print(f"Developer already initialized: {existing}")
|
|
56
|
+
print()
|
|
57
|
+
print("Current developer info:")
|
|
58
|
+
show_developer_info()
|
|
59
|
+
sys.exit(0)
|
|
60
|
+
elif existing:
|
|
61
|
+
print(f"Switching developer: {existing} -> {name}")
|
|
62
|
+
|
|
63
|
+
# 初始化 (幂等, 也用于切换开发者)
|
|
64
|
+
if init_developer(name, role):
|
|
65
|
+
print()
|
|
66
|
+
print("Next steps:")
|
|
67
|
+
print(f" 1. Your workspace is at: workspace/members/{name}/")
|
|
68
|
+
print(f" 2. Start creating tasks: python .qoder/scripts/task.py create \"My Task\"")
|
|
69
|
+
print(f" 3. Check status: python .qoder/scripts/task.py list")
|
|
70
|
+
sys.exit(0)
|
|
71
|
+
else:
|
|
72
|
+
sys.exit(1)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if __name__ == "__main__":
|
|
76
76
|
main()
|