dsh-bufeng 0.0.0-stage → 0.64.0

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 (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -2
  3. package/bufeng.patch.yml +3 -0
  4. package/client/build-client.mjs +159 -0
  5. package/client/client.js +4038 -0
  6. package/client/src/board.js +133 -0
  7. package/client/src/capabilities.js +787 -0
  8. package/client/src/cards.js +263 -0
  9. package/client/src/data.js +43 -0
  10. package/client/src/graph.js +558 -0
  11. package/client/src/icons.js +88 -0
  12. package/client/src/projects.js +467 -0
  13. package/client/src/prompt.js +55 -0
  14. package/client/src/react.js +7 -0
  15. package/client/src/settings.js +407 -0
  16. package/client/src/styles.js +611 -0
  17. package/client/src/taskboard.js +321 -0
  18. package/client/src/taskgraph.js +145 -0
  19. package/client/src/ui.js +72 -0
  20. package/lib/acceptance-subject.js +71 -0
  21. package/lib/board/server.js +546 -0
  22. package/lib/board/snapshot.js +133 -0
  23. package/lib/board/taskview.js +151 -0
  24. package/lib/bootstrap.js +77 -0
  25. package/lib/catalog.js +385 -0
  26. package/lib/core.js +478 -0
  27. package/lib/data/capability-alias-catalog.json +301 -0
  28. package/lib/data/capability-alias.json +25 -0
  29. package/lib/domain.js +1342 -0
  30. package/lib/host-probe.js +176 -0
  31. package/lib/identity-hook.js +490 -0
  32. package/lib/index.js +119 -0
  33. package/lib/lessons.js +134 -0
  34. package/lib/metering.js +109 -0
  35. package/lib/scope.js +389 -0
  36. package/lib/session/child-watch.js +86 -0
  37. package/lib/session/evidence.js +118 -0
  38. package/lib/session/node-session.js +335 -0
  39. package/lib/session/queue.js +307 -0
  40. package/lib/session/reconcile.js +500 -0
  41. package/lib/tools/capabilities.js +1461 -0
  42. package/lib/tools/governance.js +579 -0
  43. package/lib/tools/index.js +33 -0
  44. package/lib/tools/project.js +500 -0
  45. package/lib/tools/readonly.js +566 -0
  46. package/lib/tools/recover.js +402 -0
  47. package/lib/tools/run.js +1609 -0
  48. package/lib/tools/skills.js +162 -0
  49. package/lib/tools/trees.js +637 -0
  50. package/lib/workspace-rmw.js +365 -0
  51. package/package.json +42 -4
@@ -0,0 +1,301 @@
1
+ {
2
+ "_meta": {
3
+ "owner": "v0.60.0 S2a(lib/catalog.js 路径·catalog 候选语料别名层);v0.62 B批扩充(k-mw1y3s8u05d,ADR 2026-11-04)",
4
+ "shape": "{ \"_meta\": {...}, \"<中文能力键>\": [\"<英文触发词>\", ...] }——中文键走 ideaTokens 二元组展开,英文触发词小写反查",
5
+ "consumer": "lib/tools/capabilities.js getCatalogAliasIndex()(惰性合并共享表 lib/data/capability-alias.json 反查表,仅 kind=catalog 候选语料路径使用)",
6
+ "quality": "v0.62 B批设计纪律:触发词以真实缓存(422 条)df>0 为源(df=0 不设键防僵尸:plugin/kernel/cache/dashboard/trademark/frontend/regression/login 等);停用/降权层词不作触发词;单键全量 union df<0.08 为设计纪律(防全收 records/analytics/statistics 类自造降权键)——实测按合并反查表口径(getCatalogAliasIndex 同 token 多键注入,单键 union 估算≠实测 df):数据=34/422=0.0806 落降权层,51 键中自身触发词越线 6 键均落降权层 ×0.25(工具 0.1090/广告 0.1019/面板/后端/数据/数据库 bigram 均 0.0806;仅影响加权非召回);存量 2026-10-30 夹具核对结论沿用"
7
+ },
8
+ "_消歧": {
9
+ "游戏": [
10
+ "match"
11
+ ],
12
+ "策划": [
13
+ "ideas"
14
+ ]
15
+ },
16
+ "架构": [
17
+ "architecture",
18
+ "design"
19
+ ],
20
+ "依赖": [
21
+ "dependency",
22
+ "dependencies"
23
+ ],
24
+ "评审": [
25
+ "review",
26
+ "audit"
27
+ ],
28
+ "指标": [
29
+ "metric",
30
+ "metrics"
31
+ ],
32
+ "发布": [
33
+ "release",
34
+ "publish"
35
+ ],
36
+ "数据库": [
37
+ "database",
38
+ "sql",
39
+ "postgres",
40
+ "mysql",
41
+ "sqlite"
42
+ ],
43
+ "浏览器": [
44
+ "browser",
45
+ "playwright",
46
+ "puppeteer",
47
+ "chrome"
48
+ ],
49
+ "邮件": [
50
+ "email",
51
+ "smtp",
52
+ "imap"
53
+ ],
54
+ "日历": [
55
+ "calendar",
56
+ "schedule",
57
+ "scheduling"
58
+ ],
59
+ "地图": [
60
+ "map",
61
+ "maps",
62
+ "geocode",
63
+ "geo"
64
+ ],
65
+ "监控": [
66
+ "monitor",
67
+ "monitoring",
68
+ "observability"
69
+ ],
70
+ "内核": [
71
+ "core",
72
+ "engine",
73
+ "runtime",
74
+ "system",
75
+ "os"
76
+ ],
77
+ "工具": [
78
+ "tools",
79
+ "tool"
80
+ ],
81
+ "提示词": [
82
+ "prompt",
83
+ "llm",
84
+ "gpt"
85
+ ],
86
+ "模型": [
87
+ "model",
88
+ "models"
89
+ ],
90
+ "派单": [
91
+ "tasks",
92
+ "task",
93
+ "jobs",
94
+ "job"
95
+ ],
96
+ "会话": [
97
+ "session",
98
+ "chat",
99
+ "messages",
100
+ "messaging"
101
+ ],
102
+ "文件": [
103
+ "file",
104
+ "files",
105
+ "directory",
106
+ "path"
107
+ ],
108
+ "面板": [
109
+ "console",
110
+ "app",
111
+ "web",
112
+ "website"
113
+ ],
114
+ "看板": [
115
+ "board"
116
+ ],
117
+ "数据": [
118
+ "data",
119
+ "database"
120
+ ],
121
+ "云": [
122
+ "cloud",
123
+ "hosted"
124
+ ],
125
+ "安全": [
126
+ "security",
127
+ "ssl",
128
+ "certificate",
129
+ "sso",
130
+ "consent",
131
+ "privacy"
132
+ ],
133
+ "登录": [
134
+ "auth",
135
+ "oauth",
136
+ "sso",
137
+ "sign"
138
+ ],
139
+ "部署": [
140
+ "deploy",
141
+ "dns",
142
+ "cdn",
143
+ "gateway",
144
+ "infrastructure"
145
+ ],
146
+ "运维": [
147
+ "monitoring",
148
+ "observability",
149
+ "status",
150
+ "health",
151
+ "alerts"
152
+ ],
153
+ "网络": [
154
+ "network",
155
+ "dns",
156
+ "gateway",
157
+ "cdn"
158
+ ],
159
+ "广告": [
160
+ "ads",
161
+ "ad",
162
+ "campaigns",
163
+ "campaign",
164
+ "marketing",
165
+ "seo",
166
+ "keywords"
167
+ ],
168
+ "榜单": [
169
+ "leaderboard"
170
+ ],
171
+ "音频": [
172
+ "audio",
173
+ "speech",
174
+ "voice",
175
+ "tts"
176
+ ],
177
+ "视频": [
178
+ "video",
179
+ "videos",
180
+ "caption",
181
+ "transcription"
182
+ ],
183
+ "美术": [
184
+ "image",
185
+ "images",
186
+ "photo",
187
+ "photos",
188
+ "draw",
189
+ "pixel",
190
+ "design",
191
+ "creative"
192
+ ],
193
+ "前端": [
194
+ "web",
195
+ "website",
196
+ "html",
197
+ "app"
198
+ ],
199
+ "后端": [
200
+ "api",
201
+ "gateway",
202
+ "dns",
203
+ "database"
204
+ ],
205
+ "游戏": [
206
+ "game",
207
+ "cards",
208
+ "chess",
209
+ "puzzle",
210
+ "board",
211
+ "score",
212
+ "match",
213
+ "sports"
214
+ ],
215
+ "策划": [
216
+ "plans",
217
+ "ideas",
218
+ "guide",
219
+ "guides"
220
+ ],
221
+ "数值": [
222
+ "statistics",
223
+ "calculator",
224
+ "convert",
225
+ "conversion",
226
+ "exchange"
227
+ ],
228
+ "关卡": [
229
+ "puzzle",
230
+ "cards"
231
+ ],
232
+ "文案": [
233
+ "content",
234
+ "writer",
235
+ "blog",
236
+ "summary",
237
+ "grammar",
238
+ "spell"
239
+ ],
240
+ "合规": [
241
+ "compliance",
242
+ "policy",
243
+ "privacy",
244
+ "consent",
245
+ "rules"
246
+ ],
247
+ "法务": [
248
+ "law",
249
+ "court",
250
+ "contract",
251
+ "contracts",
252
+ "compliance",
253
+ "tax"
254
+ ],
255
+ "版权": [
256
+ "license"
257
+ ],
258
+ "知识": [
259
+ "knowledge",
260
+ "notes",
261
+ "memory",
262
+ "research"
263
+ ],
264
+ "决策": [
265
+ "insights",
266
+ "reports",
267
+ "report",
268
+ "research",
269
+ "analytics"
270
+ ],
271
+ "取证": [
272
+ "evidence",
273
+ "records",
274
+ "record",
275
+ "screenshot",
276
+ "capture",
277
+ "replay",
278
+ "recording"
279
+ ],
280
+ "构建": [
281
+ "build"
282
+ ],
283
+ "同步": [
284
+ "sync"
285
+ ],
286
+ "性能": [
287
+ "performance",
288
+ "benchmark"
289
+ ],
290
+ "引擎": [
291
+ "engine"
292
+ ],
293
+ "商店": [
294
+ "store",
295
+ "shop",
296
+ "commerce"
297
+ ],
298
+ "音乐": [
299
+ "music"
300
+ ]
301
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "_meta": {
3
+ "owner": "lib/data/(v0.45.0 批1-A1 中文别名层,设计稿 §4.2)",
4
+ "shape": "中文键(2 字,指向交付物或动作,禁泛化词/禁单字) → 英文触发词数组(3-8 个,小写拉丁词)",
5
+ "consumer": "lib/tools/capabilities.js getAliasIndex()——candidateCorpusTokens 别名展开唯一数据源;缺失/损坏按空表处理(输出与无别名行为逐字节等价)",
6
+ "quality": "禁泛化词(工程/任务/处理/工作/相关/能力);禁单字(中文二元组切分下单字不命中);每键 3-8 条;覆盖 office 系/测试/诊断/文档检索核心域;随代码同 commit 入库"
7
+ },
8
+ "文档": ["document", "documents", "documentation", "docs"],
9
+ "表格": ["spreadsheet", "spreadsheets", "excel", "xlsx", "workbook", "workbooks"],
10
+ "演示": ["presentation", "presentations", "powerpoint", "pptx", "slides"],
11
+ "导出": ["export", "exports", "convert", "conversion", "pdf", "pdfs"],
12
+ "渲染": ["render", "rendering", "image", "images", "screenshot", "layout"],
13
+ "校验": ["validate", "validation", "verify", "lint"],
14
+ "重算": ["recalculate", "calculate", "formula", "formulas", "compute"],
15
+ "测试": ["test", "tests", "testing", "qa"],
16
+ "回归": ["regression", "regressions", "retest"],
17
+ "断言": ["assert", "assertion", "assertions", "expect"],
18
+ "诊断": ["diagnose", "diagnostic", "diagnostics", "troubleshoot", "debug"],
19
+ "修复": ["repair", "fix", "patch", "restore"],
20
+ "检索": ["query", "search", "retrieve", "retrieves", "lookup", "fetch"],
21
+ "版本": ["version", "versions", "release", "changelog"],
22
+ "核对": ["reconcile", "audit", "check", "crosscheck"],
23
+ "沙箱": ["sandbox", "sandboxed", "confined", "confinement"],
24
+ "权限": ["acl", "permission", "permissions", "access"]
25
+ }