teamsmith 0.4.7 → 0.4.8
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 +4 -4
- package/package.json +1 -1
- package/skills/teamsmith/CHANGELOG.md +11 -0
- package/skills/teamsmith/SKILL.md +12 -8
- package/skills/teamsmith/references/config.md +11 -12
- package/skills/teamsmith/scripts/lib/cmd-review.sh +21 -33
- package/skills/teamsmith/scripts/lib/common.sh +1 -1
- package/skills/teamsmith/scripts/panel/README.md +35 -33
- package/skills/teamsmith/scripts/panel/panel.js +217 -199
- package/skills/teamsmith/scripts/panel/src/App.tsx +221 -66
- package/skills/teamsmith/scripts/panel/src/layout.ts +139 -302
- package/skills/teamsmith/scripts/panel/src/project-settings.ts +46 -0
- package/skills/teamsmith/scripts/panel/src/strings/en.ts +71 -205
- package/skills/teamsmith/scripts/panel/src/strings/index.ts +3 -5
- package/skills/teamsmith/scripts/panel/src/strings/zh.ts +72 -204
- package/skills/teamsmith/scripts/panel/src/types.ts +23 -4
- package/skills/teamsmith/scripts/strings/commands.tsv +1 -1
- package/skills/teamsmith/templates/AGENTS.section.md.tmpl +7 -0
- package/skills/teamsmith/templates/pm-prompt.md.tmpl +10 -6
- package/skills/teamsmith/tests/help-surface.sh +75 -7
- package/skills/teamsmith/tests/install-shape.sh +7 -7
- package/skills/teamsmith/tests/key-replies-ui.sh +11 -5
- package/skills/teamsmith/tests/lib/main-team-fingerprint.sh +2 -0
- package/skills/teamsmith/tests/lib/model-routing-boundary.sh +255 -90
- package/skills/teamsmith/tests/lib/model-routing-expansion.sh +181 -61
- package/skills/teamsmith/tests/lib/model-routing-roles.sh +125 -67
- package/skills/teamsmith/tests/lib/reply-fixture.sh +14 -9
- package/skills/teamsmith/tests/lib/tmp-root.sh +1 -1
- package/skills/teamsmith/tests/loop-inventory.tsv +2 -0
- package/skills/teamsmith/tests/panel-b2.sh +91 -31
- package/skills/teamsmith/tests/panel-p21.sh +607 -1162
- package/skills/teamsmith/tests/panel-strings.mjs +21 -113
- package/skills/teamsmith/tests/remind-adversarial-faults.mjs +65 -38
- package/skills/teamsmith/tests/remind-adversarial-faults.sh +64 -12
- package/skills/teamsmith/tests/remind-adversarial-real.sh +13 -12
- package/skills/teamsmith/tests/remind-tool-real.mjs +159 -112
- package/skills/teamsmith/tests/remind-tool-real.sh +178 -3
- package/skills/teamsmith/tests/section-paths.tsv +10 -10
- package/skills/teamsmith/tests/smoke.sh +108 -114
- package/skills/teamsmith/tests/task-model-routing.sh +57 -26
- package/skills/teamsmith/tests/tmp-hygiene.sh +1 -1
- package/skills/teamsmith-init/SKILL.md +1 -1
|
@@ -176,75 +176,73 @@ export const zh = {
|
|
|
176
176
|
prefProjectSettings: '项目设置',
|
|
177
177
|
prefNavArrow: '›',
|
|
178
178
|
settingsViewTitle: '项目设置',
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
179
|
+
settingsChecks: '自动检查',
|
|
180
|
+
settingsCommands: '项目命令',
|
|
181
|
+
settingsRecords: '模型记录',
|
|
182
|
+
settingsNewTasks: '新任务生效',
|
|
183
|
+
settingsAfterPmRestart: '重新启动PM后生效',
|
|
184
|
+
settingsAfterPulseRestart: '重新启动Pulse后生效',
|
|
185
|
+
settingsNoRecovery: '不自动恢复',
|
|
186
|
+
settingsUnfilled: '未填写',
|
|
187
|
+
settingsEntries: '{n}项',
|
|
188
|
+
settingsRuleModel: '适用模型',
|
|
189
|
+
settingsRuleCount: '同时运行数量',
|
|
190
|
+
settingsRuleUnlimited: '此项不限制',
|
|
191
|
+
settingsRuleAdd: '添加限制',
|
|
192
|
+
settingsRuleDelete: '删除限制',
|
|
193
|
+
settingsRuleEdit: '编辑限制',
|
|
194
|
+
settingsSave: '保存',
|
|
195
|
+
settingsRuleOther: '其它适用模型',
|
|
196
|
+
settingsRuleCountInvalid: '请输入非负整数',
|
|
197
|
+
settingsOld: '原值',
|
|
198
|
+
settingsNew: '新值',
|
|
199
|
+
settingsFieldHint: 'Enter 完成 · Esc 返回',
|
|
200
|
+
settingsConfirmHint: 'Enter 保存 · Esc 取消',
|
|
201
|
+
settingsEditHint: 'Enter 继续 · Esc 取消',
|
|
202
|
+
settingsSeconds: '秒',
|
|
203
|
+
settingsSecondsEditHint: '输入秒数 · Enter 继续 · Esc 取消',
|
|
204
|
+
keySettingsBack: 'Esc 返回',
|
|
205
|
+
settingsKeepEmpty: '保持未设置',
|
|
206
|
+
settingsRecordTask: '任务',
|
|
207
|
+
settingsRecordCategory: '类别',
|
|
208
|
+
settingsRecordModel: '模型',
|
|
209
|
+
settingsRecordSid: '会话编号',
|
|
210
|
+
settingsRecordSelected: '模型选择来源',
|
|
211
|
+
settingsRecordLaunch: '本次启动方式',
|
|
212
|
+
settingsRecordTime: '时间',
|
|
213
|
+
settingsRecordWindow: '窗口',
|
|
214
|
+
settingsRecordMode: '启动方式',
|
|
215
|
+
settingsGroupCategories: '模型',
|
|
201
216
|
keyFilter: '/ 筛选',
|
|
202
217
|
settingFilterTitle: '筛选设置',
|
|
203
|
-
settingConfirm: '
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
settingsCategoryMapHint: '类别块就是这一行的编辑器(命令:team config set-task-model <category> <model>)—— 映射在面板里绝不被组合',
|
|
221
|
-
settingsCategoryMapEmpty: '类别块就是这一行的编辑器(命令:team config set-task-model <category> <model>)—— 当前映射为空,先用 CLI 添加一个类别',
|
|
222
|
-
settingsAssignmentHint: '任务派出去以后就固定用它当时的模型,不跟着上面的设置变',
|
|
223
|
-
settingsAssignmentNote: '任务 {task} · 类别 {category} · 会话 {sid} · 来源 {selected}/{launch}',
|
|
224
|
-
settingsAssignmentNone: '这个席位还没有派过任务',
|
|
225
|
-
settingsAssignmentUnreadable: '这个席位派过任务,但它的记录读不出来,面板不显示它在用的模型',
|
|
226
|
-
settingsReadOnlyBadge: '不可改',
|
|
227
|
-
settingsPmLaunchLabel: 'PM 上次启动',
|
|
228
|
-
settingsPmLaunchNote: '窗口 {window} · {mode} · {time}',
|
|
229
|
-
settingsPmLaunchHint: 'PM 上一次启动时用的模型,这里不能改',
|
|
230
|
-
settingsDiagnosisHeading: '旧设置需要升级',
|
|
231
|
-
settingsCliHint: '命令行:team config set {key} <新值>',
|
|
232
|
-
settingsRefusedHint: '这个值要改项目配置文件 .pi/team/config.sh,界面不能改',
|
|
233
|
-
settingsUnknownHint: '{key}:这个设置在文件里,工具不认识它,面板不能改',
|
|
234
|
-
settingsChoiceTitle: '选择 {label} 的值 · {key}',
|
|
235
|
-
settingsChoiceHint: '↑/↓ 选择 · Enter 直接写入该值(危险值再按一次确认)· 「自由输入」才进编辑器 · Esc 返回',
|
|
218
|
+
settingConfirm: '{key}\n原值 {old}\n新值 {next}\n{timing}',
|
|
219
|
+
settingDanger: '危险:{reason} · Enter 确认',
|
|
220
|
+
settingWritten: '已保存{key} · {timing}',
|
|
221
|
+
settingRefused: '无法编辑:{line}',
|
|
222
|
+
settingInvalid: '数值无效:{line}',
|
|
223
|
+
settingConflict: '设置已被修改,未保存',
|
|
224
|
+
settingWriteError: '保存失败:{line}',
|
|
225
|
+
settingsRefusedRoute: '请修改 .pi/team/config.sh',
|
|
226
|
+
settingsCategoryRow: '{category}',
|
|
227
|
+
settingsCategoryPickerHint: '新任务生效',
|
|
228
|
+
settingsAssignmentNone: '尚无派单记录',
|
|
229
|
+
settingsAssignmentUnreadable: '记录读取失败',
|
|
230
|
+
settingsPmLaunchLabel: 'PM上次启动',
|
|
231
|
+
settingsDiagnosisHeading: '配置需要更新',
|
|
232
|
+
settingsLaunchFresh: '全新启动',
|
|
233
|
+
settingsLaunchContinued: '延续上次会话',
|
|
234
|
+
settingsChoiceHint: '↑/↓ 选择 · Enter 保存 · Esc 取消',
|
|
236
235
|
settingsChoiceCurrent: '当前',
|
|
237
236
|
settingsChoiceDefault: '默认',
|
|
238
|
-
settingsChoiceKeepUnset: '
|
|
239
|
-
settingsChoiceClear: '
|
|
240
|
-
settingsChoiceFree: '
|
|
241
|
-
settingsChoiceInterval: '
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
settingsBoolOff: '关(0)',
|
|
237
|
+
settingsChoiceKeepUnset: '保持默认值',
|
|
238
|
+
settingsChoiceClear: '清空',
|
|
239
|
+
settingsChoiceFree: '输入其它值',
|
|
240
|
+
settingsChoiceInterval: '{min}–{max}',
|
|
241
|
+
settingCategoryConfirm: '{category}\n原值 {old}\n新值 {next}\n新任务生效',
|
|
242
|
+
settingCategoryWritten: '已保存{category}模型 · 新任务生效',
|
|
243
|
+
settingPmWritten: '已保存PM模型 · 重新启动PM后生效 · team up --fresh-pm',
|
|
244
|
+
settingsBoolOn: '开',
|
|
245
|
+
settingsBoolOff: '关',
|
|
248
246
|
settingsPathExists: '存在',
|
|
249
247
|
settingsPathMissing: '不存在',
|
|
250
248
|
settingsPathNotExec: '不是可执行文件',
|
|
@@ -252,147 +250,17 @@ export const zh = {
|
|
|
252
250
|
seatSourceExplicit: '派单时指定',
|
|
253
251
|
seatSourcePolicy: '按类别设置',
|
|
254
252
|
seatSourceAssignment: '沿用原记录',
|
|
253
|
+
seatSourceRecord: '按派单记录',
|
|
255
254
|
|
|
256
|
-
//
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
label_TEAM_PROJECT: '项目名',
|
|
262
|
-
label_TEAM_SESSION: '会话名',
|
|
263
|
-
label_TEAM_PM_WINDOW: 'PM 窗口',
|
|
264
|
-
label_TEAM_AGENTS: '名册',
|
|
265
|
-
label_TEAM_DOCS_DIR: '账本目录',
|
|
266
|
-
label_TEAM_WORKTREES_DIR: '工作树目录',
|
|
267
|
-
label_TEAM_STATE_DIR: '状态目录',
|
|
268
|
-
label_TEAM_MEETINGS_DIR: '会议目录',
|
|
269
|
-
label_TEAM_SPEC_DIR: '规格目录',
|
|
270
|
-
label_TEAM_ROOT: '项目根',
|
|
271
|
-
label_TEAM_MAIN_ROOT: '主检出根',
|
|
272
|
-
label_TEAM_TMP_ROOT: '临时根目录',
|
|
273
|
-
label_TEAM_CONFIG_FILE: '契约文件',
|
|
274
|
-
// —— 分支与托管平台(只读)
|
|
275
|
-
label_TEAM_BRANCH_MODE: '分支命名模式',
|
|
276
|
-
label_TEAM_TASK_BRANCH_PREFIX: '任务分支前缀',
|
|
277
|
-
label_TEAM_AGENT_BRANCH_PREFIX: '席位分支前缀',
|
|
278
|
-
label_TEAM_PROTECTED_BRANCH: '保护分支',
|
|
279
|
-
label_TEAM_REMOTE: '远端',
|
|
280
|
-
label_TEAM_VCS: '托管平台',
|
|
281
|
-
label_TEAM_TOKEN_FILE: '凭据文件',
|
|
282
|
-
label_TEAM_GITLAB_HOST: 'GitLab 主机',
|
|
283
|
-
label_TEAM_GITLAB_PROJECT: 'GitLab 项目',
|
|
284
|
-
label_TEAM_GITLAB_TOKEN_FILE: 'GitLab 凭据文件',
|
|
285
|
-
label_TEAM_MERGE_PREFER_THEIRS: '冲突默认取分支侧',
|
|
286
|
-
// —— 权限与依赖(不可改)
|
|
287
|
-
label_TEAM_CONFIRM_WRITES: '写入前确认',
|
|
288
|
-
label_TEAM_ALLOW_FOREIGN_IDENTITY: '放行外部身份',
|
|
289
|
-
label_TEAM_ALLOW_FOREIGN_SESSION: '放行外部会话',
|
|
290
|
-
label_TEAM_GUARD_FOREIGN_TARGET: '拦截外部目标',
|
|
291
|
-
label_TEAM_REPLACE_FOREIGN_PM: '可替换外部 PM',
|
|
292
|
-
label_TEAM_ALLOW_DESTRUCTIVE_TMUX: '放行破坏性操作',
|
|
293
|
-
label_TEAM_ASSUME_YES: '默认全部确认',
|
|
294
|
-
label_TEAM_REQUIRE_JS: '必需 JS 运行时',
|
|
295
|
-
label_TEAM_REQUIRE_OPENSPEC: '必需 OpenSpec',
|
|
296
|
-
label_TEAM_REQUIRE_MAGIC_CONTEXT: '必需 Magic Context',
|
|
297
|
-
label_TEAM_PI_AGENT_DIR: 'Pi 配置目录',
|
|
298
|
-
label_TEAM_PI_SETTINGS_FILE: 'Pi 设置文件',
|
|
299
|
-
label_TEAM_MEMINFO_FILE: '内存信息文件',
|
|
300
|
-
label_TEAM_DISK_STATS_FILE: '磁盘读数夹具',
|
|
301
|
-
label_TEAM_SMOKE_FAST: '冒烟快模式',
|
|
302
|
-
// —— 名册、模型解析与适配器
|
|
303
|
-
label_TEAM_MODEL_LIMITS: '模型并发上限',
|
|
304
|
-
label_TEAM_MODEL_WINDOWS: '显式上下文窗口',
|
|
305
|
-
label_TEAM_SESSION_WARN_TOKENS: '上下文告警阈值',
|
|
306
|
-
label_TEAM_EXTRA_PI_ARGS: '席位附加参数',
|
|
307
|
-
label_TEAM_AGENT_CMD: '席位启动命令',
|
|
308
|
-
label_TEAM_AGENT_NOTIFY_CMD: '收工通知命令',
|
|
309
|
-
label_TEAM_AGENT_LOG_GLOB: '席位日志路径',
|
|
310
|
-
label_TEAM_PI_BIN: 'pi 可执行文件',
|
|
311
|
-
label_TEAM_AGENT_BIN: '席位可执行文件',
|
|
312
|
-
label_TEAM_OPENSPEC_BIN: 'openspec 可执行文件',
|
|
313
|
-
label_TEAM_JS_BIN: 'JS 运行时',
|
|
314
|
-
// —— 任务类别与 PM 模型(apply/restart)
|
|
315
|
-
label_TEAM_TASK_MODELS: '任务类别模型',
|
|
316
|
-
label_TEAM_PM_MODEL: 'PM 模型',
|
|
317
|
-
label_TEAM_CONFIG_VERSION: '配置形状号',
|
|
318
|
-
// —— 工作流与门禁
|
|
319
|
-
label_TEAM_UPDATE_CHECK: '启动时提示新版本',
|
|
320
|
-
label_TEAM_GATES: '门禁命令',
|
|
255
|
+
// Labels only for selected settings; the complete CLI schema is unchanged.
|
|
256
|
+
label_TEAM_MODEL_LIMITS: '模型同时运行任务数',
|
|
257
|
+
label_TEAM_PM_MODEL: 'PM模型',
|
|
258
|
+
label_TEAM_UPDATE_CHECK: '启动时检查新版本',
|
|
259
|
+
label_TEAM_GATES: '验收命令',
|
|
321
260
|
label_TEAM_INSTALL_CMD: '安装命令',
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
label_TEAM_SQUASH_LOOKBACK: 'squash 回看条数',
|
|
326
|
-
label_TEAM_REVIEW_TIMEOUT: '复验超时',
|
|
327
|
-
label_TEAM_REVIEW_TIMEOUT_GRACE: '超时宽限',
|
|
328
|
-
label_TEAM_REVIEW_ALLOW_DIRTY: '复验放行脏工作树',
|
|
329
|
-
label_TEAM_REVIEW_ALLOW_IGNORED: '复验放行忽略文件',
|
|
330
|
-
label_TEAM_REVIEW_ALLOW_UNRESOLVED_BRANCH: '放行未解析分支',
|
|
331
|
-
label_TEAM_REVIEW_ANY_DIR: '复验跳过目录校验',
|
|
332
|
-
label_TEAM_BOARD_DONE_FORCE: '强制标记 done',
|
|
333
|
-
label_TEAM_BOARD_DONE_REASON: '强制放行理由',
|
|
334
|
-
// —— 容量与投递
|
|
335
|
-
label_TEAM_MIN_FREE_SWAP_MB: 'swap 底线',
|
|
336
|
-
label_TEAM_MIN_TOTAL_MB: '内存硬底线',
|
|
337
|
-
label_TEAM_MIN_AVAIL_MB: '可用内存底线',
|
|
338
|
-
label_TEAM_TMP_MIN_FREE_MB: '临时根空间底线',
|
|
339
|
-
label_TEAM_TMP_MIN_FREE_INODES: '临时根 inode 底线',
|
|
340
|
-
label_TEAM_WARN_AVAIL_MB: '可用内存告警线',
|
|
341
|
-
label_TEAM_ZRAM_WARN_PCT: 'zram 告警比例',
|
|
342
|
-
label_TEAM_AGENT_MEM_MB: '席位内存上限',
|
|
343
|
-
label_TEAM_NOTIFY_TMUX: '走 tmux 投递',
|
|
344
|
-
label_TEAM_NOTIFY_DEDUP_SEC: '通知去重窗口',
|
|
345
|
-
label_TEAM_INBOX_MAX_CHARS: '预览字数',
|
|
346
|
-
label_TEAM_NOTIFY_LOG: '通知调试日志',
|
|
347
|
-
label_TEAM_NOTIFY_DETAIL_MAX: '通知明细条数上限',
|
|
348
|
-
label_TEAM_DEFER_TTL: '排队过期时间',
|
|
349
|
-
label_TEAM_OUTBOX_MAX: '发件箱条数上限',
|
|
350
|
-
label_TEAM_PANEL_DETAIL_CAP: '详情文件读取上限',
|
|
351
|
-
label_TEAM_ORPHAN_WARN_MB: '孤儿内存提示阈值',
|
|
352
|
-
label_TEAM_ORPHAN_SCAN: '扫描孤儿席位进程',
|
|
353
|
-
label_TEAM_ORPHAN_PROC_ROOT: '普查 /proc 接缝',
|
|
354
|
-
// —— 巡检与面板(需重启)
|
|
355
|
-
label_TEAM_PULSE_INTERVAL: '巡检周期',
|
|
356
|
-
label_TEAM_MONITOR_REFRESH: '面板刷新周期',
|
|
357
|
-
label_TEAM_MONITOR_EVENTS: '事件初始条数',
|
|
358
|
-
label_TEAM_MONITOR_UI: '面板渲染器',
|
|
359
|
-
label_TEAM_MONITOR_ACTIVITY: '活动列',
|
|
360
|
-
label_TEAM_AGENT_LOG_TAIL_BYTES: '日志尾部读取上限',
|
|
361
|
-
label_TEAM_PULSE_WINDOW: '巡检窗口名',
|
|
362
|
-
// —— 巡检策略
|
|
363
|
-
label_TEAM_PULSE_NUDGE_GAP: '重复提醒间隔',
|
|
364
|
-
label_TEAM_PULSE_PENDING_BOARD: '看板待办也唤醒',
|
|
365
|
-
label_TEAM_PULSE_REBUILD_TMUX: '自愈重建 server',
|
|
366
|
-
label_TEAM_PULSE_MAX_RESTARTS: '自动拉起次数上限',
|
|
367
|
-
// —— PM 生命周期(需重启)
|
|
368
|
-
label_TEAM_PM_SESSION_ID: 'PM 会话 ID',
|
|
369
|
-
label_TEAM_PM_CMD: 'PM 启动命令',
|
|
370
|
-
label_TEAM_PM_BIN: 'PM 可执行文件',
|
|
371
|
-
label_TEAM_PM_EXTRA_PI_ARGS: 'PM 附加参数',
|
|
372
|
-
label_TEAM_PM_RESUME_ARGS: 'PM 续跑参数',
|
|
373
|
-
label_TEAM_PM_START_WAIT: 'PM 启动等待',
|
|
374
|
-
// —— 活着的会话(需重启)
|
|
375
|
-
label_TEAM_INBOX_WATCH_MAX_BYTES: 'watcher 读取上限',
|
|
376
|
-
label_TEAM_INBOX_WATCH_PREVIEW: '预览行数',
|
|
377
|
-
label_TEAM_INBOX_WATCH_REPLAY_MAX: '重放条数上限',
|
|
378
|
-
label_TEAM_INBOX_WATCH_SEEN_MAX: '已见记录上限',
|
|
379
|
-
label_TEAM_INBOX_WATCH_STALE: '过期判定秒数',
|
|
380
|
-
label_TEAM_INBOX_WATCH_STALE_SEC: '唤醒行新鲜度',
|
|
381
|
-
label_TEAM_INBOX_WATCH_FORCE_FAIL: '强制注册失败(测试)',
|
|
382
|
-
label_TEAM_IW_REQUIRE_WATCH: '门禁严格模式(测试)',
|
|
383
|
-
label_TEAM_INBOX_WATCH_POLL_MS: '轮询间隔',
|
|
384
|
-
label_TEAM_INBOX_WATCH_HEARTBEAT_MS: '心跳间隔',
|
|
385
|
-
label_TEAM_INBOX_WATCH_TARGET: '投递目标',
|
|
386
|
-
label_TEAM_BG_LOG_MAX_BYTES: '后台日志上限',
|
|
387
|
-
// —— 信号纪律(P159)
|
|
388
|
-
label_TEAM_SIGNAL_CALLS_LOG: '信号调用审计',
|
|
389
|
-
label_TEAM_SIGNAL_REAL: '信号真身',
|
|
390
|
-
label_TEAM_BG_STOP_GRACE: '作业停止宽限',
|
|
391
|
-
// —— 跨项目会议
|
|
392
|
-
label_TEAM_MEETING_TTL_HOURS: '会议有效期',
|
|
393
|
-
label_TEAM_MEETING_MAX_TURNS: '会议轮次上限',
|
|
394
|
-
label_TEAM_MEETING_KNOCK: '允许敲门',
|
|
395
|
-
label_TEAM_MEETING_ALLOW_USER_ID: '可敲门用户',
|
|
261
|
+
label_TEAM_REVIEW_TIMEOUT: '验收最长时间',
|
|
262
|
+
label_TEAM_PULSE_INTERVAL: '检查间隔',
|
|
263
|
+
label_TEAM_PULSE_MAX_RESTARTS: 'PM每小时自动恢复次数',
|
|
396
264
|
|
|
397
265
|
// 关键回复(pulse-key-replies)
|
|
398
266
|
replyHeading: '关键回复',
|
|
@@ -314,15 +314,15 @@ export interface SettingsKey {
|
|
|
314
314
|
route?: string
|
|
315
315
|
/**
|
|
316
316
|
* The key's schema-derived choice set (M55), verbatim from `team config list --json`. The
|
|
317
|
-
* console reads its options from here
|
|
318
|
-
*
|
|
317
|
+
* console reads its selected operations' options from here: a choice added to a retained key
|
|
318
|
+
* appears without rebuilding the bundle. Absent against an older command.
|
|
319
319
|
*/
|
|
320
320
|
choices?: SettingsChoices
|
|
321
321
|
/**
|
|
322
322
|
* The key's functional domain (P30): the schema row's tenth column, verbatim from `team config
|
|
323
323
|
* list --json` ('' for a key the schema does not know, and for a schema row that declares none).
|
|
324
|
-
*
|
|
325
|
-
*
|
|
324
|
+
* Retained as complete CLI metadata; console purpose headings do not use it.
|
|
325
|
+
* Absent against an older command.
|
|
326
326
|
*/
|
|
327
327
|
group?: string
|
|
328
328
|
/** False for a key in the file the schema does not know (read-only row). */
|
|
@@ -345,6 +345,16 @@ export interface SettingsChoices {
|
|
|
345
345
|
note: string
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
+
export type SettingsPage = 'main' | 'commands' | 'records' | 'limits' | 'rule'
|
|
349
|
+
export interface LimitsDraft {
|
|
350
|
+
original: string
|
|
351
|
+
tokens: string[]
|
|
352
|
+
changed: boolean
|
|
353
|
+
rule: number
|
|
354
|
+
target: { row: number; key: string; value: string; cls: string; fingerprint: string; kind?: string; choices?: SettingsKey['choices'] }
|
|
355
|
+
confirm?: { danger: boolean }
|
|
356
|
+
}
|
|
357
|
+
|
|
348
358
|
/** One drawn entry of the choice picker (M55). */
|
|
349
359
|
export interface SettingsChoiceEntry {
|
|
350
360
|
/** The value the entry carries ('' for keep-unset/clear/free). */
|
|
@@ -377,6 +387,9 @@ export interface SettingsChoicePicker {
|
|
|
377
387
|
* the accept writes `team config set-task-model <category> <model>` — never a pair list.
|
|
378
388
|
*/
|
|
379
389
|
category?: boolean
|
|
390
|
+
ruleField?: boolean
|
|
391
|
+
/** Opening read, not a later background refresh. */
|
|
392
|
+
target?: { row: number; key: string; value: string; cls: string; fingerprint: string; category?: string; kind?: string; choices?: SettingsKey['choices'] }
|
|
380
393
|
}
|
|
381
394
|
|
|
382
395
|
/** One future task-category policy row as `team config list --json` reports it (P232). */
|
|
@@ -729,6 +742,7 @@ export interface DetailWindow {
|
|
|
729
742
|
|
|
730
743
|
/** The project-settings view's row window as the frame rendered it (P22/B2). */
|
|
731
744
|
export interface SettingsWindow {
|
|
745
|
+
width?: number
|
|
732
746
|
/** The focused focusable row (an index into the filtered row list). */
|
|
733
747
|
focus: number
|
|
734
748
|
/** The first drawn focusable row. */
|
|
@@ -821,7 +835,12 @@ export interface ViewState {
|
|
|
821
835
|
detailScroll?: number
|
|
822
836
|
/** True while the project-settings view replaces the page's blocks (P22/B2). */
|
|
823
837
|
settings?: boolean
|
|
838
|
+
/** The setting/filter editor supplies its own current-key hint instead of the view's key band. */
|
|
839
|
+
settingsEditing?: boolean
|
|
824
840
|
/** The focused row in the filtered project-settings row list. */
|
|
841
|
+
settingsPage?: SettingsPage
|
|
842
|
+
limitsDraft?: LimitsDraft | null
|
|
843
|
+
settingsDetails?: string[] | null
|
|
825
844
|
settingsFocus?: number
|
|
826
845
|
/** The filter text (`''` = no filter). */
|
|
827
846
|
settingsFilter?: string
|
|
@@ -53,7 +53,7 @@ cmd inbox observe inbox [<agent>] - - - ledger - read-only none idempotent - inb
|
|
|
53
53
|
cmd paths observe paths - - - ledger - read-only none idempotent - paths team paths
|
|
54
54
|
cmd config observe config list ;; config log ;; config set <key> <value> ;; config set-task-model <category> <model> ;; config upgrade-models [--task-models <map>] [--pm-model <model>] --task-models --pm-model list log set set-task-model upgrade-models help - pm seat change config state writes-config none not-reversible:the audit log keeps every write - config team config list
|
|
55
55
|
cmd task ledger task <ID> --title <title> --category <category> [--agent <a>] [--deps <ids>] [--issue <N>] --title --category --agent --deps --issue - - brief category change ledger docs writes-docs none not-reversible:no command removes a brief or its board row - task team task P1 --title "First task" --category code
|
|
56
|
-
cmd board ledger board add <ID> [--allow-dup] ;; board assign <ID> <agent> ;; board set <ID> <status> ;; board row <ID> ;; board ls --allow-dup add assign set row ls - ledger docs writes-docs none not-reversible:no command removes a board row - board team board ls
|
|
56
|
+
cmd board ledger board add <ID> <title> [agent] [deps] [--allow-dup] ;; board assign <ID> <agent> ;; board set <ID> <status> ;; board row <ID> ;; board ls --allow-dup add assign set row ls - ledger docs writes-docs none not-reversible:no command removes a board row - board team board ls
|
|
57
57
|
cmd change ledger change status <id> [--json] --json status - change spec ledger - read-only none idempotent - change team change status cli-help
|
|
58
58
|
cmd thread ledger thread <agent> [<message>] [--from <sender>] [--re <n>] --from --re - - ledger docs writes-docs none not-reversible:the thread is append-only - thread team thread dev "a decision with its reason"
|
|
59
59
|
cmd report ledger report <ID> <agent> [--force] --force - - ledger gate docs writes-docs none not-reversible:the report file stays - report team report P1 dev
|
|
@@ -17,6 +17,13 @@ inventoried and preserved outside first -- the PM's job, recipe in `{{SKILL_DIR}
|
|
|
17
17
|
| PM | Briefs / roadmap / decision log, dispatch, evidence acceptance, merging, wrap-up | Treat "the agent says it passed" as evidence; execute verification or archive gates |
|
|
18
18
|
| agent:<name> | Exactly the brief, tests and reports, opening PR/MRs | push `main`, force-push, merge PR/MRs, touch other people's directories |
|
|
19
19
|
|
|
20
|
+
**PM — proceed within authorization.** For work the user has already authorized, check the facts, break down and
|
|
21
|
+
delegate the work, make small reversible choices, coordinate corrections, arrange independent review, and finish
|
|
22
|
+
without asking again. If the user asked for a proposal only, stop at the proposal. Agreement on its goal and scope
|
|
23
|
+
is not authorization to implement it. If a decision belongs to the user, advance the work that does not depend on
|
|
24
|
+
it, then give your recommendation and say what it would affect. New product trade-offs and scope changes are for
|
|
25
|
+
the user. Production operations, merges, pushes and releases still need the required explicit authorization.
|
|
26
|
+
|
|
20
27
|
Before starting, in this order: this file (especially this section), your own thread
|
|
21
28
|
`{{DOCS_DIR}}/threads/<agent>.md` (the PM may have added instructions), and the task brief
|
|
22
29
|
`{{DOCS_DIR}}/tasks/<ID>-<slug>.md` -- the brief is the single source of scope and acceptance commands.
|
|
@@ -76,6 +76,8 @@ recovery entry only -- never the daily default. See `{{SKILL_DIR}}/references/pr
|
|
|
76
76
|
|
|
77
77
|
## Your loop
|
|
78
78
|
|
|
79
|
+
Follow **PM — proceed within authorization** under **Roles and reading order** in `AGENTS.md`.
|
|
80
|
+
|
|
79
81
|
Specs live in OpenSpec: a brief names the change id and the scenarios it must satisfy; `openspec validate --all
|
|
80
82
|
--strict` before dispatching. After the same verifier accepts the merged revision and valid confirmation is recorded,
|
|
81
83
|
dispatch a non-implementer worker to run `openspec archive -y <change>` on its own authorized task branch
|
|
@@ -149,10 +151,11 @@ does not fit; a model change for a running task is an explicit `--fresh` launch,
|
|
|
149
151
|
own model changes only through `team up --fresh-pm`. Disk beats memory across a fresh takeover: brief, report, thread
|
|
150
152
|
and `state/` carry the work, never a session.
|
|
151
153
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
For a Teamsmith tool-source upgrade, keep four separate recorded gates: private source verification; landing
|
|
155
|
+
validated source on a shared/protected tree; writing this project's configuration and the first fresh PM launch that
|
|
156
|
+
reads it; and adopting a changed shared skill/copy source. Preview the exact command and obtain authorization for each
|
|
157
|
+
command, including both the configuration write and the first fresh launch. A shared link reads its target's current
|
|
158
|
+
bytes, so changing that target can affect other readers without any installer.
|
|
156
159
|
|
|
157
160
|
## Boundaries
|
|
158
161
|
|
|
@@ -162,8 +165,9 @@ current bytes, so changing that target can affect other readers without any inst
|
|
|
162
165
|
temporary windows with `team add-agent` instead of creating them by hand.
|
|
163
166
|
- **Do not implement yourself** (except small fixes found during evidence review); your output is briefs, evidence
|
|
164
167
|
acceptance, merges and decisions, not verification or archive execution. The protected branch `{{PROTECTED_BRANCH}}` is yours to advance; agents may only push their own
|
|
165
|
-
task branches. Changing shared/remote state (push, merge, PR/MR, issue) needs explicit user authorization
|
|
166
|
-
`--yes
|
|
168
|
+
task branches. Changing shared/remote state (push, merge, PR/MR, issue) needs explicit user authorization. Where a
|
|
169
|
+
`team` command requires `--yes`, it expresses authorization already given; it does not grant authorization or apply
|
|
170
|
+
to direct git/forge writes.
|
|
167
171
|
- The pulse is yours to run: `team pulse up` / `status` / `logs` / `down`; it checks for work every 15 minutes and only
|
|
168
172
|
wakes you when there is some.
|
|
169
173
|
- Keep the team alive: you yourself may be restarted by the pulse, so **all progress must land on disk** (reports,
|
|
@@ -926,7 +926,7 @@ FACE_VOCAB="state docs config worktree skills meetings"
|
|
|
926
926
|
TEAM_HELP_AUTH_CONDITIONS="TEAM_CONFIRM_WRITES"
|
|
927
927
|
EFFECT_VOCAB="read-only writes-<face> starts-process"
|
|
928
928
|
# commands whose real run is a whole suite: the probe judges a bounded window (never a silent skip)
|
|
929
|
-
BOUNDED_PROBES="smoke
|
|
929
|
+
BOUNDED_PROBES="smoke"
|
|
930
930
|
|
|
931
931
|
probe_is_bounded() { case " $BOUNDED_PROBES " in *" $1 "*) return 0 ;; esac; return 1; }
|
|
932
932
|
|
|
@@ -1041,6 +1041,53 @@ run_probe() { # <cmd> → ok/finding
|
|
|
1041
1041
|
mkdir -p "$tmp/probe-tmp/$cmd"
|
|
1042
1042
|
local eff="${MG_EFFECT[$cmd]}" faces="${MG_FACES[$cmd]}" before after i face changed missing
|
|
1043
1043
|
before="$(fp_all "$d")"
|
|
1044
|
+
|
|
1045
|
+
if [ "$cmd" = perf ]; then
|
|
1046
|
+
# The copied CLI resolves its own sibling target; never run the measurement in this fixture.
|
|
1047
|
+
local private="$tmp/perf-cli" receipt="$tmp/logs/p-perf.receipt" physical expected_rc=23
|
|
1048
|
+
if ! physical="$(cd -P "$d" && pwd -P)" || ! mkdir "$private" "$private/tests" ||
|
|
1049
|
+
! cp -a "$skill/scripts" "$private/scripts" ||
|
|
1050
|
+
! cat > "$private/tests/perf.sh" <<'PERF_RECORDER'
|
|
1051
|
+
status=23
|
|
1052
|
+
cwd="$(pwd -P)" || exit 1
|
|
1053
|
+
# One line of shell-quoted words: status, physical cwd, argc, then the actual argv.
|
|
1054
|
+
printf -v record '%q ' "$status" "$cwd" "$#" "$@"
|
|
1055
|
+
printf '%s\n' "${record% }" >> "$HS_PERF_RECEIPT" || exit 1
|
|
1056
|
+
exit "$status"
|
|
1057
|
+
PERF_RECORDER
|
|
1058
|
+
then
|
|
1059
|
+
finding "claims: perf 无法准备私有 CLI 和交接记录器"
|
|
1060
|
+
return 1
|
|
1061
|
+
fi
|
|
1062
|
+
local -a perf_argv
|
|
1063
|
+
read -r -a perf_argv <<< "$argv"
|
|
1064
|
+
team="$private/scripts/team" TMPDIR="$tmp/probe-tmp/$cmd" HS_PERF_RECEIPT="$receipt" \
|
|
1065
|
+
env_run "$d" "${perf_argv[@]}"
|
|
1066
|
+
local rc="$HS_RC" handoff="已确认" status_note="" digest
|
|
1067
|
+
printf '%s\n' "$HS_OUT" > "$tmp/logs/p-$cmd.out"
|
|
1068
|
+
after="$(fp_all "$d")"
|
|
1069
|
+
changed=""
|
|
1070
|
+
while read -r face digest; do
|
|
1071
|
+
grep -qxF -- "$face $digest" <<< "$before" || changed="${changed:+$changed }$face"
|
|
1072
|
+
done <<< "$after"
|
|
1073
|
+
if [ ! -e "$receipt" ]; then
|
|
1074
|
+
handoff="未交接:没有回执"
|
|
1075
|
+
elif ! cmp -s "$receipt" <(printf '%q %q 1 --host\n' "$expected_rc" "$physical"); then
|
|
1076
|
+
handoff="回执不符:需要恰好一条完整回执,参数为 --host,目录为调用项目,状态为 $expected_rc"
|
|
1077
|
+
fi
|
|
1078
|
+
case "$rc" in
|
|
1079
|
+
"$expected_rc") ;;
|
|
1080
|
+
124) status_note=",CLI 超时" ;;
|
|
1081
|
+
*) status_note=",预期退出 $expected_rc" ;;
|
|
1082
|
+
esac
|
|
1083
|
+
if [ "$handoff" = "已确认" ] && [ "$rc" = "$expected_rc" ] && [ -z "$changed" ]; then
|
|
1084
|
+
ok "claims: perf 交接已确认(rc=$rc),调用项目六项指纹不变:$FACE_VOCAB"
|
|
1085
|
+
else
|
|
1086
|
+
finding "claims: perf 交接:$handoff;rc=$rc$status_note;调用项目变化:${changed:-无}"
|
|
1087
|
+
fi
|
|
1088
|
+
return 0
|
|
1089
|
+
fi
|
|
1090
|
+
|
|
1044
1091
|
local launch_before launch_after
|
|
1045
1092
|
launch_before="$(cat "$tmp/tmux-calls.log" "$tmp/launch.log" 2>/dev/null | wc -l)"
|
|
1046
1093
|
|
|
@@ -1293,6 +1340,32 @@ check_invariants() {
|
|
|
1293
1340
|
}
|
|
1294
1341
|
|
|
1295
1342
|
# ---------------------------------------------------------------- route
|
|
1343
|
+
check_route_command() { # <command> — three current renders, one canonical file for both comparisons
|
|
1344
|
+
local c="$1" canonical_rc long_rc short_rc failed=0
|
|
1345
|
+
local canonical="$tmp/route-canonical.txt" long="$tmp/route-long.txt" short="$tmp/route-short.txt"
|
|
1346
|
+
page en help "$c" >"$canonical"; canonical_rc=$?
|
|
1347
|
+
page en "$c" --help >"$long"; long_rc=$?
|
|
1348
|
+
page en "$c" -h >"$short"; short_rc=$?
|
|
1349
|
+
|
|
1350
|
+
if [ "$canonical_rc" -ne 0 ]; then
|
|
1351
|
+
finding "route: $c 的 help $c 入口失败(rc=$canonical_rc)"; failed=1
|
|
1352
|
+
fi
|
|
1353
|
+
if [ "$long_rc" -ne 0 ]; then
|
|
1354
|
+
finding "route: $c 的 --help 入口失败(rc=$long_rc)"; failed=1
|
|
1355
|
+
fi
|
|
1356
|
+
if [ "$short_rc" -ne 0 ]; then
|
|
1357
|
+
finding "route: $c 的 -h 入口失败(rc=$short_rc)"; failed=1
|
|
1358
|
+
fi
|
|
1359
|
+
# A failed entry's bytes are not a page: compare only pairs that both rendered successfully.
|
|
1360
|
+
if [ "$canonical_rc" -eq 0 ] && [ "$long_rc" -eq 0 ] && ! cmp -s "$canonical" "$long"; then
|
|
1361
|
+
finding "route: $c 的两条入口不逐字节相同(--help)"; failed=1
|
|
1362
|
+
fi
|
|
1363
|
+
if [ "$canonical_rc" -eq 0 ] && [ "$short_rc" -eq 0 ] && ! cmp -s "$canonical" "$short"; then
|
|
1364
|
+
finding "route: $c 的 -h 入口与 help 页不同"; failed=1
|
|
1365
|
+
fi
|
|
1366
|
+
return "$failed"
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1296
1369
|
check_route() {
|
|
1297
1370
|
section "route · 三级可达、两条入口逐字节相同、未知 token exit 2、无项目可用"
|
|
1298
1371
|
local rc
|
|
@@ -1306,12 +1379,7 @@ check_route() {
|
|
|
1306
1379
|
ok "每个分组页都列出命令"
|
|
1307
1380
|
local c same=0
|
|
1308
1381
|
for c in "${MG_ORDER[@]}"; do
|
|
1309
|
-
if !
|
|
1310
|
-
finding "route: $c 的两条入口不逐字节相同"; same=1
|
|
1311
|
-
fi
|
|
1312
|
-
if ! diff -q <(page en help "$c") <(page en "$c" -h) >/dev/null 2>&1; then
|
|
1313
|
-
finding "route: $c 的 -h 入口与 help 页不同"; same=1
|
|
1314
|
-
fi
|
|
1382
|
+
if ! check_route_command "$c"; then same=1; fi
|
|
1315
1383
|
done
|
|
1316
1384
|
[ "$same" = "0" ] && ok "team help <命令> 与 team <命令> --help/-h 逐字节相同(${#MG_ORDER[@]} 个命令)"
|
|
1317
1385
|
# a page never falls back to the menu
|
|
@@ -849,9 +849,9 @@ agents_run_case() { # <tree> <repo> <render> <label> <head-crlf> <tail-crlf> <bo
|
|
|
849
849
|
# 既有契约上跑裸 `team init --no-skills`,受管块写成 `pm-skills:pm` / `dev verify` —— 会话名取了目录名,
|
|
850
850
|
# 名册取了硬编码默认。判据两半:既有契约 → 契约现值(整块逐字节等于同参数的显式渲染);无契约的新项目 →
|
|
851
851
|
# 目录名 + 默认名册(两条路径没有合并成一条)。
|
|
852
|
-
init_cfg_fixture() { # <tree> <repo
|
|
853
|
-
local t="$1" p="$2"
|
|
854
|
-
run_tree "$t" "$p" init
|
|
852
|
+
init_cfg_fixture() { # <tree> <repo> [init flags]:把非默认的渲染参数写进契约(P402 的既有契约夹具)
|
|
853
|
+
local t="$1" p="$2"; shift 2
|
|
854
|
+
run_tree "$t" "$p" init "$@" --session cfg-session --agents "alice bob carol" \
|
|
855
855
|
--pm-window cfg-pm --docs docs/crew --vcs local --gates "make check" \
|
|
856
856
|
--task-models 'routine=deepseek/deepseek-flash analysis=xai/grok-4.6 verify=kimi-coding/k3-256k' \
|
|
857
857
|
--pm-model 'deepseek/deepseek-flash'
|
|
@@ -866,7 +866,7 @@ chk_init_render_from_config() { # <tree> <已 init 的仓库>:裸 init 取契
|
|
|
866
866
|
[ "$rc" = "0" ] || { printf '裸 init rc=%s(%s)' "$rc" "$(printf '%s\n' "$out" | tail -1)"; return 1; }
|
|
867
867
|
after="$(file_hash "$cfg")"
|
|
868
868
|
[ "$before" = "$after" ] || { printf '裸 init 改了既有契约(sha %s → %s)' "$before" "$after"; return 1; }
|
|
869
|
-
#
|
|
869
|
+
# 承重判据:参考树与裸 init 都默认安装,整块逐字节比较;单项 grep 只用来点名是哪一条错。
|
|
870
870
|
e="$p.expected"; rm -rf "$e"; git_new "$e"
|
|
871
871
|
init_cfg_fixture "$t" "$e" >/dev/null 2>&1 || { printf '参考渲染(同一组参数显式 init)失败'; return 1; }
|
|
872
872
|
cmp -s "$e/AGENTS.md" "$p/AGENTS.md" || {
|
|
@@ -1068,7 +1068,7 @@ if want install; then
|
|
|
1068
1068
|
# ②b P402:既有契约 + 非 --force 的裸 init → 渲染参数取契约现值(不是目录名/硬编码默认);
|
|
1069
1069
|
# 对照组是无契约的新项目:仍是目录名与默认名册(证明没有把两条路径合并成一条)。
|
|
1070
1070
|
p="$tmp/p-cfg-render"; git_new "$p"; assert_isolated "$tree" "$p"
|
|
1071
|
-
init_cfg_fixture "$tree" "$p" >/dev/null; rc=$?
|
|
1071
|
+
init_cfg_fixture "$tree" "$p" --no-skills >/dev/null; rc=$?
|
|
1072
1072
|
assert_eq "P402 夹具:非默认渲染参数写进契约" "$rc" "0"
|
|
1073
1073
|
check_holds "P402 裸 init 取契约里的 session/名册/docs/PM 窗口/门禁(整块等于同参数的显式渲染)" \
|
|
1074
1074
|
chk_init_render_from_config "$tree" "$p"
|
|
@@ -1593,8 +1593,8 @@ if old not in s:
|
|
|
1593
1593
|
print("夹具没生效:找不到 P402 的契约回落块"); sys.exit(1)
|
|
1594
1594
|
open(p, "w", encoding="utf-8").write(s.replace(old, new, 1))
|
|
1595
1595
|
PYINITRENDER
|
|
1596
|
-
pg="$tmp/f-init-render-green"; git_new "$pg"; init_cfg_fixture "$tree" "$pg" >/dev/null 2>&1
|
|
1597
|
-
pf="$tmp/f-init-render-red"; git_new "$pf"; init_cfg_fixture "$ft" "$pf" >/dev/null 2>&1
|
|
1596
|
+
pg="$tmp/f-init-render-green"; git_new "$pg"; init_cfg_fixture "$tree" "$pg" --no-skills >/dev/null 2>&1
|
|
1597
|
+
pf="$tmp/f-init-render-red"; git_new "$pf"; init_cfg_fixture "$ft" "$pf" --no-skills >/dev/null 2>&1
|
|
1598
1598
|
check_holds "⑮ 对照:真实树裸 init 取契约现值" chk_init_render_from_config "$tree" "$pg"
|
|
1599
1599
|
check_breaks "⑮ 翻转:回落顺序退回目录名/硬编码默认(不看契约现值)" chk_init_render_from_config "$ft" "$pf"
|
|
1600
1600
|
# ⑥ 真实树没被夹具动过:git status 指纹前后一致
|
|
@@ -33,7 +33,7 @@ for g in "${KR_SEL[@]}"; do
|
|
|
33
33
|
hit=0; for k in "${UI_GROUPS[@]}"; do [ "$g" = "$k" ] && hit=1; done
|
|
34
34
|
[ "$hit" = "1" ] || { printf 'key-replies-ui.sh:未知组 [%s](可选:%s)\n' "$g" "${UI_GROUPS[*]}" >&2; exit 2; }
|
|
35
35
|
done
|
|
36
|
-
trap
|
|
36
|
+
trap tmp_root_reap_all EXIT
|
|
37
37
|
|
|
38
38
|
# 面板的 CLI 走记录 argv 的 shim(真 CLI 前面一行日志):块的逐条调用可查,数据仍是真读数。
|
|
39
39
|
kr_panel_snapshot_raw() { # <页> <额外参数…> → 未剥 ANSI 的原始 stdout
|
|
@@ -58,7 +58,7 @@ kr_reply_time_snapshot() { # <输出> <TZ> <at|-> <省略 0|1> <页> <额外参
|
|
|
58
58
|
kr_group_blocks() {
|
|
59
59
|
section "blocks · 三个需求块的装配契约(3.3)"
|
|
60
60
|
local b="$tmp/bl.md"; printf '块夹具正文\n' >"$b"
|
|
61
|
-
|
|
61
|
+
fixture_prepare blocks "dev2|块夹具一号|$b" "verify|块夹具二号|$b"
|
|
62
62
|
# ① 总览一次装配:只有 summary(list/body 不在 wanted 集合里)
|
|
63
63
|
reset_argv
|
|
64
64
|
kr_panel_snapshot 1 --width 120 --height 28 --lang zh >"$tmp/bl-ov.txt"
|
|
@@ -154,7 +154,7 @@ FLOOD
|
|
|
154
154
|
kr_group_machine() {
|
|
155
155
|
section "machine · 机器出口零 reply 读(3.3)"
|
|
156
156
|
local b="$tmp/mn.md"; printf '机器出口夹具正文\n' >"$b"
|
|
157
|
-
|
|
157
|
+
fixture_prepare machine
|
|
158
158
|
kr_cli "$ROOT" monitor --print 2>/dev/null | kr_mask_print >"$tmp/m-print-before.txt"
|
|
159
159
|
kr_cli "$ROOT" monitor --json 2>/dev/null | sed -E 's/"timestamp": *"[^"]*"/"timestamp": "T"/' >"$tmp/m-json-before.txt"
|
|
160
160
|
printf 'lang=en\ndefaultPage=5\nmouse=off\n' >"$state/panel.conf"
|
|
@@ -182,7 +182,7 @@ kr_group_snapshots() {
|
|
|
182
182
|
local b1="$tmp/s1.md" long="$tmp/s-long.md"
|
|
183
183
|
printf '快照回复一\n第二行\n' >"$b1"
|
|
184
184
|
{ local i; for i in $(seq 1 200); do printf '滚动行 %s\n' "$i"; done; printf 'END-MARKER-P234\n'; } >"$long"
|
|
185
|
-
|
|
185
|
+
fixture_prepare snapshots "dev2|快照标题|$b1" "verify|长文快照|$long"
|
|
186
186
|
local i
|
|
187
187
|
for i in $(seq 1 58); do kr_cli "$ROOT" reply post --from dev2 --title "槽位 $i" --stdin <"$b1" >/dev/null; done
|
|
188
188
|
assert_eq "snapshots:夹具 store 有 60 个编号" "$(kr_cli "$ROOT" reply list --json | python3 -c 'import json,sys;print(json.load(sys.stdin)["total_slots"])')" "60"
|
|
@@ -364,7 +364,13 @@ PYP
|
|
|
364
364
|
kr_run_group() { # 组名到函数(`routing-regression` 带连字符,不能靠 $var 展开)
|
|
365
365
|
case "$1" in
|
|
366
366
|
routing-regression) kr_group_routing_regression ;;
|
|
367
|
-
*)
|
|
367
|
+
*)
|
|
368
|
+
# 真实面板读者仍会查询窗口状态;只查本轮私有目录,不连调用者的 server。
|
|
369
|
+
local -x TMUX_TMPDIR="$tmp"
|
|
370
|
+
local TMUX TMUX_PANE
|
|
371
|
+
unset TMUX TMUX_PANE
|
|
372
|
+
"kr_group_$1"
|
|
373
|
+
;;
|
|
368
374
|
esac
|
|
369
375
|
}
|
|
370
376
|
|