@tea-agent/loop-agent 0.33.4 → 0.33.5
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/CHANGELOG.md +28 -0
- package/dist/executors/dag-pi-executor.js +34 -12
- package/dist/executors/shell-executor.js +26 -66
- package/dist/task/config-types.js +2 -2
- package/dist/worker/console/chat/chat-event-store.js +57 -18
- package/dist/worker/console/chat/routes.js +850 -170
- package/dist/worker/console/static/assets/{index-PzYzcuFG.js → index-CteJFFL2.js} +17 -17
- package/dist/worker/console/static/index.html +1 -1
- package/dist/worker/console/static-src/operator-chat/chat-sse-events.js +33 -8
- package/dist/worker/console/static-src/operator-chat/refs.js +3 -0
- package/dist/worker/console/static-src/operator-chat/useChatSessions.js +3 -0
- package/dist/worker/console/static-src/operator-chat/useChatStream.js +80 -2
- package/dist/workflows/dag/backend-test-markdown-workflow.js +17 -0
- package/dist/workflows/dag/backend-test-module-stem.js +21 -0
- package/dist/workflows/dag/backend-test-pytest-collection.js +44 -0
- package/dist/workflows/dag/backend-test-writer-completeness.js +130 -45
- package/dist/workflows/dag/init-hybrid.js +29 -160
- package/docs/templates/backend-test-dag.json +3 -3
- package/docs/templates/frontend-test-dag.generate-cases.prompt.md +2 -2
- package/docs/templates/frontend-test-dag.json +9 -9
- package/docs/templates/frontend-test-dag.retrieve-context.prompt.md +7 -7
- package/harness.json +1 -1
- package/package.json +1 -1
- package/skills/playwright-cli/SKILL.md +2 -3
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Write only `testcase/frontend/rag/context.md` and `coverage-map.md`. Record traceable facts from the task source, routes, components, API/Mock contracts, existing tests and execution contract. Do not invent fields, credentials, limits or test data.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Runtime Base URL resolution (required)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Read the bound task source and environment/config references, then select one concrete browser entry URL. Prefer `TARGET_URL`/`targetUrl`, then `BASE_URL`/`baseUrl` or `FRONTEND_BASE_URL`/`frontendUrl`, then `LOGIN_URL`/`loginUrl`; accept common case, underscore, kebab and space variants. If no usable URL exists, use `http://localhost:5173`.
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
- Never
|
|
11
|
-
- Write `environmentProbe: pending`. The environment
|
|
12
|
-
- Include the exact browser start prefix using the
|
|
13
|
-
`playwright-cli open --browser=chrome <
|
|
9
|
+
- Write the selected value and its bound source into `context.md` as `baseUrl: <url>` and `baseUrlSource: <source>|default-localhost-5173`.
|
|
10
|
+
- Never select API-only endpoints, production hosts, credential URLs, query-bearing URLs or fragment URLs.
|
|
11
|
+
- Write `environmentProbe: pending`. The following environment shell deterministically parses `context.md`, validates URL safety, probes curl HEAD→GET, and replaces this with `reachable`, `unreachable`, or `curl-unavailable` plus a structured `blockedReason`.
|
|
12
|
+
- Include the exact browser start prefix using the selected concrete URL:
|
|
13
|
+
`playwright-cli open --browser=chrome <resolved-base-url>`.
|
|
14
14
|
|
|
15
15
|
Do not claim the environment is reachable until preflight completes. Preflight does not start the application.
|
|
16
16
|
|
package/harness.json
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"pi": {
|
|
82
82
|
"description": "Pi 负责规划、评审、诊断;当 DAG toolProfile=write 时也可做有界写入。模型按复杂度三档配置,格式为 provider/model 字符串(例:wizard-local/grok-4.5);斜杠前为 Pi provider,后为 modelId,勿只写裸 modelId。",
|
|
83
83
|
"LOW": "wizard-local/minimax-m3",
|
|
84
|
-
"MED": "wizard-local/
|
|
84
|
+
"MED": "wizard-local/gpt-5.6-sol",
|
|
85
85
|
"HIGH": "wizard-local/gpt-5.6-sol"
|
|
86
86
|
}
|
|
87
87
|
}
|
package/package.json
CHANGED
|
@@ -54,8 +54,7 @@ request
|
|
|
54
54
|
|
|
55
55
|
## 推荐执行流程
|
|
56
56
|
|
|
57
|
-
使用
|
|
58
|
-
获取 snapshot,并只使用 snapshot 中可见的 ref 或已知安全 locator。
|
|
57
|
+
使用 `testcase/frontend/rag/context.md` 中已由 environment shell 标记为 `reachable` 的非生产 `baseUrl` 和默认浏览器 session;不得创建 named session。交互前先获取 snapshot,并只使用 snapshot 中可见的 ref 或已知安全 locator。
|
|
59
58
|
|
|
60
59
|
```text
|
|
61
60
|
playwright-cli open --browser=chrome http://localhost:5173
|
|
@@ -89,6 +88,6 @@ controller receipts:successful `open` → successful `find` → successful pos
|
|
|
89
88
|
|
|
90
89
|
## 阻塞处理
|
|
91
90
|
|
|
92
|
-
当环境、数据、权限、时序、异常路径或响应内容无法用 RAG
|
|
91
|
+
当环境、数据、权限、时序、异常路径或响应内容无法用 RAG、已验证 context URL 和 runtime allowlist 证明时,
|
|
93
92
|
写入 `blocked` evidence,并提供具体 `blockedReason`。不要引入替代执行路径,也不要把隐藏状态或
|
|
94
93
|
未观察到的网络结果当作通过证据。
|