@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.
@@ -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
- ## Controller-frozen Base URL (required)
5
+ ## Runtime Base URL resolution (required)
6
6
 
7
- The preflight controller resolves and freezes one absolute browser base URL before this Pi node runs. It accepts only controller-owned, hash-bound reference documents on its filename/key allowlists (including `config.md`, `environment.md`, `urls.md` and explicit `baseUrl` / `targetUrl` / `loginUrl` variants); it fails closed on conflicting candidates and uses the localhost default only when no candidate exists. Copy the supplied value and source exactly into `context.md` as `baseUrl: <url>` and `baseUrlSource: <source>`.
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
- - Do not derive, replace, or override the origin from model reasoning, route text, case prose, existing RAG files, or other repository content.
10
- - Never use production hosts or credentials.
11
- - Write `environmentProbe: pending`. The environment preflight shell will replace this with `reachable`, `unreachable`, or `curl-unavailable` plus a structured `blockedReason` (for example `frontend-base-url-unreachable`).
12
- - Include the exact browser start prefix using the supplied controller-frozen URL:
13
- `playwright-cli open --browser=chrome <controller-frozen-base-url>`.
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/grok-4.5",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tea-agent/loop-agent",
3
- "version": "0.33.4",
3
+ "version": "0.33.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "loop-agent": "bin/loop-agent.js",
@@ -54,8 +54,7 @@ request
54
54
 
55
55
  ## 推荐执行流程
56
56
 
57
- 使用 controller 冻结的非生产 `baseUrl` 和默认浏览器 session;不得创建 named session。交互前先
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、冻结配置和 runtime allowlist 证明时,
91
+ 当环境、数据、权限、时序、异常路径或响应内容无法用 RAG、已验证 context URL 和 runtime allowlist 证明时,
93
92
  写入 `blocked` evidence,并提供具体 `blockedReason`。不要引入替代执行路径,也不要把隐藏状态或
94
93
  未观察到的网络结果当作通过证据。