@tea-agent/loop-agent 0.25.6 → 0.26.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.
- package/AGENTS.md +2 -1
- package/CHANGELOG.md +1020 -1006
- package/bin/loop-agent.js +21 -21
- package/dist/commands/cursor-prompt.js +6 -6
- package/dist/commands/loop-benchmark.js +11 -11
- package/dist/commands/pi-reuse-benchmark.js +16 -16
- package/dist/executors/dag-pi-executor.js +26 -20
- package/dist/executors/model-routing.js +34 -18
- package/dist/governance/manifest-types.js +33 -5
- package/dist/sidecars/cursor-prompt/executor.js +1 -1
- package/dist/task/task-demand-routing.js +3 -1
- package/dist/worker/console/chat/model-resolver.js +15 -3
- package/dist/worker/observe/static/constants.js +3 -2
- package/dist/worker/observe/static/copy.js +67 -67
- package/dist/worker/observe/static/dag-layout.d.ts +31 -31
- package/dist/worker/observe/static/dag-layout.js +83 -83
- package/dist/worker/observe/static/dag-model.js +1 -0
- package/dist/worker/observe/static/dom.js +220 -220
- package/dist/worker/observe/static/relations.js +133 -133
- package/dist/worker/observe/static/router.js +93 -93
- package/dist/worker/observe/static/run-processing.js +148 -148
- package/dist/worker/observe/static/styles.css +182 -42
- package/dist/worker/observe/static/views/batch.js +227 -227
- package/dist/worker/observe/static/views/dag-graph.js +172 -172
- package/dist/worker/observe/static/views/failures.js +143 -143
- package/dist/worker/observe/static/views/feature.js +492 -492
- package/dist/worker/observe/static/views/run.js +453 -453
- package/dist/worker/observe/static/views/shell.js +7 -7
- package/dist/worker/observe/static/views/timeline.js +163 -163
- package/dist/workflows/dag/canvas-observer.js +275 -275
- package/dist/workflows/dag/lifecycle.js +40 -30
- package/dist/workflows/dag/node-execution.js +13 -0
- package/dist/workflows/dag/types.js +59 -19
- package/docs/skills/README.md +7 -7
- package/docs/templates/adr.md +60 -60
- package/docs/templates/agent-dag-authority-surface-audit.prompt.md +94 -94
- package/docs/templates/agent-dag-decision-envelope.schema.json +213 -213
- package/docs/templates/agent-dag-decision-gate.prompt.md +246 -246
- package/docs/templates/agent-dag-process-supervisor.prompt.md +98 -98
- package/docs/templates/agent-dag-report.schema.json +473 -473
- package/docs/templates/agent-dag-review-verdict.prompt.md +68 -68
- package/docs/templates/backend-test-result.schema.json +99 -99
- package/docs/templates/feature-spec.md +53 -53
- package/docs/templates/frontend-design-contract.md +42 -42
- package/docs/templates/frontend-eval/fixtures/failures/01-type-build-error.md +17 -17
- package/docs/templates/frontend-eval/fixtures/failures/02-unit-component-test-fail.md +16 -16
- package/docs/templates/frontend-eval/fixtures/failures/03-fixture-schema-drift.md +16 -16
- package/docs/templates/frontend-eval/fixtures/failures/04-missing-loading-empty-error-state.md +16 -16
- package/docs/templates/frontend-eval/fixtures/failures/05-forbidden-write-writeset-expansion.md +16 -16
- package/docs/templates/frontend-eval/fixtures/failures/06-unapproved-dependency-add.md +16 -16
- package/docs/templates/frontend-eval/fixtures/failures/07-mock-production-on.md +21 -21
- package/docs/templates/frontend-eval/fixtures/functional/01-simple-component-style.md +29 -29
- package/docs/templates/frontend-eval/fixtures/functional/02-form-validation.md +28 -28
- package/docs/templates/frontend-eval/fixtures/functional/03-list-detail-page.md +28 -28
- package/docs/templates/frontend-eval/fixtures/functional/04-api-mock.md +29 -29
- package/docs/templates/frontend-eval/fixtures/functional/05-permission-auth-gated-ui.md +27 -27
- package/docs/templates/frontend-eval/fixtures/functional/06-ssr-server-client-boundary.md +28 -28
- package/docs/templates/frontend-eval/fixtures/functional/07-shared-public-component-api.md +28 -28
- package/docs/templates/frontend-eval/fixtures/functional/08-pure-local-no-remote.md +27 -27
- package/docs/templates/frontend-eval/metrics.md +138 -138
- package/docs/templates/frontend-eval/smoke-targets.md +53 -53
- package/docs/templates/frontend-task-constraints.md +35 -35
- package/docs/templates/frontend-task-requirement.md +70 -70
- package/docs/templates/harness.schema.json +29 -7
- package/docs/templates/init-evolution-review.md +35 -35
- package/docs/templates/interactive-ui-round2-experiment.md +66 -66
- package/docs/templates/knowledge-graph-bootstrap-dag.json +118 -118
- package/docs/templates/knowledge-sync-dag.json +178 -178
- package/docs/templates/knowledge-sync-draft.schema.json +71 -71
- package/docs/templates/product-line/closeout.yaml +9 -9
- package/docs/templates/product-line/design.md +13 -13
- package/docs/templates/product-line/links.md +10 -10
- package/docs/templates/product-line/requirement.md +17 -17
- package/docs/templates/product-line/test-plan.md +7 -7
- package/docs/templates/production-readiness-checklist.md +57 -57
- package/docs/templates/project-start-checklist.md +9 -9
- package/docs/templates/qa-report.md +48 -48
- package/docs/templates/sprint-contract.md +29 -29
- package/docs/templates/worker-dogfood-evidence.md +80 -80
- package/docs/templates/worker-dogfood-setup.md +68 -68
- package/harness.json +1 -2
- package/package.json +1 -1
- package/scripts/kb-bootstrap-init-skeleton.sh +0 -0
- package/scripts/kb-graph-incremental-prepare.mjs +386 -386
- package/scripts/kb-graph-materialize.mjs +105 -105
- package/scripts/kb-graph-promote.mjs +164 -164
- package/scripts/kb-query.mjs +554 -554
- package/skills/ai-engineering-context/SKILL.md +48 -48
- package/skills/analyze-product-dependencies/SKILL.md +67 -67
- package/skills/analyze-product-dependencies/agents/openai.yaml +4 -4
- package/skills/analyze-product-dependencies/references/api-documentation-schema.md +30 -30
- package/skills/analyze-product-dependencies/references/dependency-analysis-schema.md +28 -28
- package/skills/analyze-product-dependencies/references/example.md +76 -76
- package/skills/analyze-product-dependencies/references/forward-test-cases.md +35 -35
- package/skills/analyze-product-dependencies/references/input-contract.md +11 -11
- package/skills/analyze-product-dependencies/references/scouting-rules.md +61 -61
- package/skills/analyze-product-dependencies/scripts/test-validators.mjs +267 -267
- package/skills/analyze-product-dependencies/scripts/validate-api-documentation.mjs +101 -101
- package/skills/analyze-product-dependencies/scripts/validate-dependency-analysis.mjs +142 -142
- package/skills/analyze-product-dependencies/scripts/validate-product-requirement-input.mjs +76 -76
- package/skills/analyze-product-dependencies/scripts/validation-helpers.mjs +146 -146
- package/skills/analyze-product-requirements/SKILL.md +90 -90
- package/skills/analyze-product-requirements/agents/openai.yaml +4 -4
- package/skills/analyze-product-requirements/references/acceptance-criteria.md +91 -91
- package/skills/analyze-product-requirements/references/clarification-and-knowledge.md +56 -56
- package/skills/analyze-product-requirements/references/example.md +86 -86
- package/skills/analyze-product-requirements/references/forward-test-cases.md +66 -66
- package/skills/analyze-product-requirements/references/product-analysis-schema.md +32 -32
- package/skills/analyze-product-requirements/references/product-requirement-schema.md +33 -33
- package/skills/analyze-product-requirements/references/requirement-clarification-schema.md +35 -35
- package/skills/analyze-product-requirements/scripts/test-validators.mjs +193 -193
- package/skills/analyze-product-requirements/scripts/validate-product-analysis.mjs +69 -69
- package/skills/analyze-product-requirements/scripts/validate-product-requirement.mjs +97 -97
- package/skills/analyze-product-requirements/scripts/validate-requirement-clarification.mjs +98 -98
- package/skills/analyze-product-requirements/scripts/validation-helpers.mjs +156 -156
- package/skills/browser-tools/browser-content.js +103 -103
- package/skills/browser-tools/browser-cookies.js +35 -35
- package/skills/browser-tools/browser-eval.js +53 -53
- package/skills/browser-tools/browser-hn-scraper.js +108 -108
- package/skills/browser-tools/browser-nav.js +44 -44
- package/skills/browser-tools/browser-pick.js +162 -162
- package/skills/browser-tools/browser-screenshot.js +34 -34
- package/skills/browser-tools/browser-start.js +86 -86
- package/skills/browser-tools/package-lock.json +2556 -2556
- package/skills/browser-tools/package.json +19 -19
- package/skills/code-review-core/SKILL.md +20 -20
- package/skills/codebase-scout/SKILL.md +19 -19
- package/skills/grill-me/SKILL.md +10 -10
- package/skills/loop-agent/references/README.md +67 -67
- package/skills/loop-agent/references/docs-converge.md +126 -126
- package/skills/loop-agent/references/hybrid-dag.md +2 -2
- package/skills/loop-agent/references/learned/README.md +21 -21
- package/skills/loop-agent/references/long-running-loop.md +57 -57
- package/skills/loop-agent/references/model-routing.md +2 -0
- package/skills/loop-agent/references/one-shot-runs.md +85 -85
- package/skills/loop-agent/references/pi-prompt.md +23 -23
- package/skills/loop-agent/references/pi-subagent-assisted-mode.md +84 -84
- package/skills/playwright-cli/SKILL.md +420 -420
- package/skills/playwright-cli/references/element-attributes.md +23 -23
- package/skills/playwright-cli/references/playwright-tests.md +39 -39
- package/skills/playwright-cli/references/request-mocking.md +87 -87
- package/skills/playwright-cli/references/running-code.md +241 -241
- package/skills/playwright-cli/references/session-management.md +225 -225
- package/skills/playwright-cli/references/storage-state.md +275 -275
- package/skills/playwright-cli/references/test-generation.md +433 -433
- package/skills/playwright-cli/references/tracing.md +139 -139
- package/skills/playwright-cli/references/video-recording.md +143 -143
- package/skills/requesting-code-review/SKILL.md +101 -101
- package/skills/requesting-code-review/code-reviewer.md +168 -168
- package/skills/systematic-debugging/CREATION-LOG.md +119 -119
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
- package/skills/systematic-debugging/condition-based-waiting.md +115 -115
- package/skills/systematic-debugging/defense-in-depth.md +122 -122
- package/skills/systematic-debugging/find-polluter.sh +63 -63
- package/skills/systematic-debugging/root-cause-tracing.md +169 -169
- package/skills/systematic-debugging/test-academic.md +14 -14
- package/skills/systematic-debugging/test-pressure-1.md +58 -58
- package/skills/systematic-debugging/test-pressure-2.md +68 -68
- package/skills/systematic-debugging/test-pressure-3.md +69 -69
- package/skills/using-git-worktrees/SKILL.md +215 -215
- package/skills/verification-before-completion/SKILL.md +154 -154
- package/skills/webapp-testing/SKILL.md +19 -19
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# 代码侦察与证据规则
|
|
2
|
-
|
|
3
|
-
## 目录
|
|
4
|
-
|
|
5
|
-
- 搜索顺序
|
|
6
|
-
- 事实与推断
|
|
7
|
-
- 前端必查项
|
|
8
|
-
- 后端必查项
|
|
9
|
-
- 未定位项
|
|
10
|
-
|
|
11
|
-
## 搜索顺序
|
|
12
|
-
|
|
13
|
-
1. 阅读仓库级指令、README、技术栈配置和相关架构文档。
|
|
14
|
-
2. 可用时优先使用 CodeGraph 定位符号、引用和调用关系。
|
|
15
|
-
3. 使用 `rg --files` 建立文件范围,使用 `rg` 搜索路由、组件、接口、字段、状态和领域术语。
|
|
16
|
-
4. 阅读入口文件、直接依赖、邻近实现和共享 helper。
|
|
17
|
-
5. 只沿与用户故事相关的引用继续扩展,避免无边界扫描。
|
|
18
|
-
|
|
19
|
-
## 事实与推断
|
|
20
|
-
|
|
21
|
-
- `confirmed`:文件存在,并有 import、调用、路由、注册、类型或配置证据。
|
|
22
|
-
- `inferred`:根据命名和邻近模式推断,但没有完整引用证据;置信度只能为 medium 或 low,证据必须分别写明已观察事实和推断链,不得使用“已确认”措辞。
|
|
23
|
-
- `unknown`:搜索后仍无法定位。
|
|
24
|
-
|
|
25
|
-
每项记录证据,例如:路由注册、组件 import、service 调用、repository 注入、类型引用或配置项。不要只凭文件名断言依赖。
|
|
26
|
-
|
|
27
|
-
## 前端必查项
|
|
28
|
-
|
|
29
|
-
- 页面入口、路由和布局。
|
|
30
|
-
- 已使用或受影响的组件及其真实文件路径。
|
|
31
|
-
- hooks、状态管理、缓存和请求层。
|
|
32
|
-
- API client、类型定义、权限控制和错误展示。
|
|
33
|
-
- normal、loading、empty、error、disabled 及输出规范中的边界处理落点。
|
|
34
|
-
|
|
35
|
-
每个 `FE-US-*` 都必须单独输出,不能只给一份页面级汇总。
|
|
36
|
-
|
|
37
|
-
## 后端必查项
|
|
38
|
-
|
|
39
|
-
- API 路由、controller/handler 和请求校验。
|
|
40
|
-
- application service、domain service 和业务规则。
|
|
41
|
-
- repository、数据模型、查询与写入路径。
|
|
42
|
-
- 鉴权、权限范围、幂等、并发和错误映射。
|
|
43
|
-
- 事件、任务、外部服务、配置、日志和审计。
|
|
44
|
-
- API 场景额外检查路由前缀、版本策略、HTTP 方法惯例、统一响应外壳、分页、时间和标识符格式,以及相似接口的 Swagger/OpenAPI 注释模式。
|
|
45
|
-
- 字段定义前搜索共享 DTO/Schema、OpenAPI components、基础响应类与分页类;命中时复用而不复制定义。搜索与复用判断只用于内部建模,不输出到 API 文档。
|
|
46
|
-
- 返回 code 定义前搜索全局错误枚举、异常到 code 的映射、错误响应外壳与相似接口;命中时复用,未命中才允许局部新定义。搜索与复用判断只用于内部建模,不输出到 API 文档。
|
|
47
|
-
- 分页接口确认仓库既有参数名和默认值;每页条数参数必须为可选,允许值为 `10 | 20 | 50 | 100`。
|
|
48
|
-
|
|
49
|
-
每个 `BE-US-*` 都必须单独输出,不能只给一份服务级汇总。
|
|
50
|
-
|
|
51
|
-
API 技术设计优先级为:Product Requirement 已确认业务契约 > 代码库现有 API 规范 > 相似 API 模式 > 通用 REST 规则。现有实现不得覆盖已确认需求;业务语义缺失时阻断。
|
|
52
|
-
|
|
53
|
-
## 未定位项
|
|
54
|
-
|
|
55
|
-
不能用猜测路径填补空白。输出:
|
|
56
|
-
|
|
57
|
-
- 影响文件路径:未定位。
|
|
58
|
-
- 已搜索范围:实际搜索过的目录、符号或关键词。
|
|
59
|
-
- 原因:例如功能尚不存在、命名不一致或缺少目标仓库。
|
|
60
|
-
- 下一步:需要的文档、仓库或人工确认。
|
|
61
|
-
- 置信度:low。
|
|
1
|
+
# 代码侦察与证据规则
|
|
2
|
+
|
|
3
|
+
## 目录
|
|
4
|
+
|
|
5
|
+
- 搜索顺序
|
|
6
|
+
- 事实与推断
|
|
7
|
+
- 前端必查项
|
|
8
|
+
- 后端必查项
|
|
9
|
+
- 未定位项
|
|
10
|
+
|
|
11
|
+
## 搜索顺序
|
|
12
|
+
|
|
13
|
+
1. 阅读仓库级指令、README、技术栈配置和相关架构文档。
|
|
14
|
+
2. 可用时优先使用 CodeGraph 定位符号、引用和调用关系。
|
|
15
|
+
3. 使用 `rg --files` 建立文件范围,使用 `rg` 搜索路由、组件、接口、字段、状态和领域术语。
|
|
16
|
+
4. 阅读入口文件、直接依赖、邻近实现和共享 helper。
|
|
17
|
+
5. 只沿与用户故事相关的引用继续扩展,避免无边界扫描。
|
|
18
|
+
|
|
19
|
+
## 事实与推断
|
|
20
|
+
|
|
21
|
+
- `confirmed`:文件存在,并有 import、调用、路由、注册、类型或配置证据。
|
|
22
|
+
- `inferred`:根据命名和邻近模式推断,但没有完整引用证据;置信度只能为 medium 或 low,证据必须分别写明已观察事实和推断链,不得使用“已确认”措辞。
|
|
23
|
+
- `unknown`:搜索后仍无法定位。
|
|
24
|
+
|
|
25
|
+
每项记录证据,例如:路由注册、组件 import、service 调用、repository 注入、类型引用或配置项。不要只凭文件名断言依赖。
|
|
26
|
+
|
|
27
|
+
## 前端必查项
|
|
28
|
+
|
|
29
|
+
- 页面入口、路由和布局。
|
|
30
|
+
- 已使用或受影响的组件及其真实文件路径。
|
|
31
|
+
- hooks、状态管理、缓存和请求层。
|
|
32
|
+
- API client、类型定义、权限控制和错误展示。
|
|
33
|
+
- normal、loading、empty、error、disabled 及输出规范中的边界处理落点。
|
|
34
|
+
|
|
35
|
+
每个 `FE-US-*` 都必须单独输出,不能只给一份页面级汇总。
|
|
36
|
+
|
|
37
|
+
## 后端必查项
|
|
38
|
+
|
|
39
|
+
- API 路由、controller/handler 和请求校验。
|
|
40
|
+
- application service、domain service 和业务规则。
|
|
41
|
+
- repository、数据模型、查询与写入路径。
|
|
42
|
+
- 鉴权、权限范围、幂等、并发和错误映射。
|
|
43
|
+
- 事件、任务、外部服务、配置、日志和审计。
|
|
44
|
+
- API 场景额外检查路由前缀、版本策略、HTTP 方法惯例、统一响应外壳、分页、时间和标识符格式,以及相似接口的 Swagger/OpenAPI 注释模式。
|
|
45
|
+
- 字段定义前搜索共享 DTO/Schema、OpenAPI components、基础响应类与分页类;命中时复用而不复制定义。搜索与复用判断只用于内部建模,不输出到 API 文档。
|
|
46
|
+
- 返回 code 定义前搜索全局错误枚举、异常到 code 的映射、错误响应外壳与相似接口;命中时复用,未命中才允许局部新定义。搜索与复用判断只用于内部建模,不输出到 API 文档。
|
|
47
|
+
- 分页接口确认仓库既有参数名和默认值;每页条数参数必须为可选,允许值为 `10 | 20 | 50 | 100`。
|
|
48
|
+
|
|
49
|
+
每个 `BE-US-*` 都必须单独输出,不能只给一份服务级汇总。
|
|
50
|
+
|
|
51
|
+
API 技术设计优先级为:Product Requirement 已确认业务契约 > 代码库现有 API 规范 > 相似 API 模式 > 通用 REST 规则。现有实现不得覆盖已确认需求;业务语义缺失时阻断。
|
|
52
|
+
|
|
53
|
+
## 未定位项
|
|
54
|
+
|
|
55
|
+
不能用猜测路径填补空白。输出:
|
|
56
|
+
|
|
57
|
+
- 影响文件路径:未定位。
|
|
58
|
+
- 已搜索范围:实际搜索过的目录、符号或关键词。
|
|
59
|
+
- 原因:例如功能尚不存在、命名不一致或缺少目标仓库。
|
|
60
|
+
- 下一步:需要的文档、仓库或人工确认。
|
|
61
|
+
- 置信度:low。
|