Skip to content

Commit 6f65788

Browse files
author
SqlRush
committed
Accept wrapped task reverse expectations
1 parent 8b4a778 commit 6f65788

5 files changed

Lines changed: 427 additions & 164 deletions

File tree

docs/cc-100-roadmap.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,8 @@ M7 补充:prompt history `LogEntry` 读取现在接受 `sessionID`/`session`/`
618618

619619
本轮补充:interaction script 的 direct screen/viewport expectation 现在也递归解包 JSON:API/GraphQL-style wrapper;`expectScreen`/`expect_screen``expectViewport`/`expect_viewport` 可从 `resource.attributes``edge.node.attrs` 等外壳中恢复 columns/rows、scroll offset、visible line count 和 visible contains/not-contains 断言,避免 wrapper fixture 静默变成空 screen/viewport expectation。
620620

621+
本轮补充:interaction script 的 direct task/reverse-search expectation 现在也递归解包 JSON:API/GraphQL-style wrapper;`expectTasks`/`expect_tasks``expectReverseSearch`/`expect_reverse_search` 可从 `resource.attributes``edge.node.attrs` 等外壳中恢复 task count/stateCounts/contains、reverse active/query/cursor/current/result-count 断言,并保留 wrapped `active:false``taskCount:0`
622+
621623
本轮补充:interaction script action/type/kind/name/operation 动作判别字段现在也接受 compact/camel event/media aliases,包括 `focusIn``focusOut``mouseEvent``pasteImage``imagePaste`
622624

623625
本轮补充:interaction script 的 mouseEvent/pasteImage action payload 现在递归解包 JSON:API/GraphQL-style `resource`/`attributes`/`properties`/`attrs`/`edge.node` wrapper,wrapped mouse 坐标/按钮和 image filename/media/content 可直接驱动 dialog click 与 image paste。

docs/claude-code-go-rewrite-plan.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ test/parity/ # golden tests against TS/official behavior
320320
- 本轮补充:interaction script 的 direct prompt expectation 现在也递归解包 JSON:API/GraphQL-style wrapper;`expectPrompt`/`expect_prompt` 可从 `resource.attributes``edge.node.attrs` 等外壳恢复 prompt text、cursor、empty、pasted-content count 和 next pasted ID 断言。
321321
- 本轮补充:interaction script 的 direct vim expectation 现在也递归解包 JSON:API/GraphQL-style wrapper;`expectVim`/`expect_vim` 可从 `resource.attributes``edge.node.attrs` 等外壳恢复 enabled、mode、register 和 register-linewise 断言。
322322
- 本轮补充:interaction script 的 direct screen/viewport expectation 现在也递归解包 JSON:API/GraphQL-style wrapper;`expectScreen`/`expect_screen``expectViewport`/`expect_viewport` 可从 `resource.attributes``edge.node.attrs` 等外壳恢复 columns/rows、scroll offset、visible line count 和 visible contains/not-contains 断言。
323+
- 本轮补充:interaction script 的 direct task/reverse-search expectation 现在也递归解包 JSON:API/GraphQL-style wrapper;`expectTasks`/`expect_tasks``expectReverseSearch`/`expect_reverse_search` 可从 `resource.attributes``edge.node.attrs` 等外壳恢复 task count/stateCounts/contains、reverse active/query/cursor/current/result-count 断言,并保留 wrapped `active:false``taskCount:0`
323324
- 本轮补充:interaction script action/type/kind/name/operation 动作判别字段继续接受 compact/camel event/media aliases,包括 `focusIn``focusOut``mouseEvent``pasteImage``imagePaste`
324325
- 本轮补充:interaction script mouseEvent/pasteImage action payload 现在递归解包 JSON:API/GraphQL-style `resource`/`attributes`/`properties`/`attrs`/`edge.node` wrapper,wrapped mouse 坐标/按钮和 image filename/media/content 可直接驱动 dialog click 与 image paste。
325326
- 本轮补充:interaction script action/type/kind/name/operation 动作判别字段也可驱动 runtime/dialog mutation,支持 `requestPermission``taskStatus``showTasks``cancelTasks``removeTask``showDialog` 等动作,并从 `value`/`payload`/`data`/`body` 载荷解析对象、ID 或取消原因。

docs/first-second-parity-audit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ M7 progress now includes:
375375
- `internal/tui`: interaction script direct prompt expectation fields now recursively unwrap JSON:API/GraphQL-style `resource.attributes` and `edge.node.attrs` payloads for `expectPrompt`/`expect_prompt`, preserving prompt text, cursor, empty, pasted-content count, and next pasted ID assertions.
376376
- `internal/tui`: interaction script direct Vim expectation fields now recursively unwrap JSON:API/GraphQL-style `resource.attributes` and `edge.node.attrs` payloads for `expectVim`/`expect_vim`, preserving enabled, mode, register, and register-linewise assertions.
377377
- `internal/tui`: interaction script direct screen and viewport expectation fields now recursively unwrap JSON:API/GraphQL-style `resource.attributes` and `edge.node.attrs` payloads for `expectScreen`/`expect_screen` and `expectViewport`/`expect_viewport`, preserving columns/rows, scroll offset, visible line count, and visible contains/not-contains assertions.
378+
- `internal/tui`: interaction script direct task and reverse-search expectation fields now recursively unwrap JSON:API/GraphQL-style `resource.attributes` and `edge.node.attrs` payloads for `expectTasks`/`expect_tasks` and `expectReverseSearch`/`expect_reverse_search`, preserving task count/stateCounts/contains, reverse active/query/cursor/current/result-count assertions, wrapped `active:false`, and wrapped `taskCount:0`.
378379
- `internal/tui`: mouse and image action payloads now recursively unwrap JSON:API/GraphQL-style wrappers, preserving wrapped mouse button/coordinate fields and image filename/media/content fields for scripted dialog clicks and paste-image prompts.
379380
- `internal/tui`: interaction script action discriminators can now drive runtime/dialog mutations such as `requestPermission`, `taskStatus`, `showTasks`, `cancelTasks`, `removeTask`, and `showDialog`, using `value`/`payload`/`data`/`body` payloads for objects, IDs, and cancel reasons.
380381
- `internal/contracts`/`internal/session`: image content blocks now normalize source aliases such as `mediaType`/`mimeType`/`contentType` and `base64`/`payload`, including top-level image block fields, into canonical `ImageSource` values during transcript resume.

0 commit comments

Comments
 (0)