@taptap/maker 0.0.37-beta.1 → 0.0.37-beta.2
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 +3 -3
- package/dist/maker.js +2728 -221
- package/docs/MAKER_CONSOLE.md +16 -9
- package/docs/MAKER_LOCAL_PREVIEW.md +27 -3
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +5 -5
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +24 -3
package/docs/MAKER_CONSOLE.md
CHANGED
|
@@ -48,21 +48,28 @@ loading 并禁止重复触发;二维码任务提交后立即打开等待弹窗
|
|
|
48
48
|
### Validate 过程记录
|
|
49
49
|
|
|
50
50
|
日志区的 Validate 页签展示当前项目通过 `preview validate` 留下的本地证据,不发起验证任务,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
不推送控制指令,不要求控制台先运行。多轮记录按时间倒序列在同一可滚动区域,最新结果在最上面,不用下拉框选择;
|
|
52
|
+
首次读取最近 20 轮,滚动到底部或点击底部“加载更早记录”继续读取历史,已加载轮次不会被新记录替换。
|
|
53
|
+
每轮包含实际调用参数、准备日志、stdout/stderr/Lua 合并日志、原始 JSON 报告和截图;
|
|
54
|
+
收集完成不等于游戏 PASS。内容以准备日志、运行日志、截图和原始 JSON 分块展示,
|
|
55
|
+
日志与 JSON 默认缩起并显示末尾最多 3 行缩略内容;展开查看完整的有界内容,
|
|
56
|
+
长日志在卡片内滚动,不撑长页面。截图始终显示小图,最大 240×150 CSS 像素。
|
|
57
|
+
轮询保留展开状态和日志滚动位置;在顶部阅读时保持显示最新结果,向下查看历史时不抢走位置。
|
|
56
58
|
图片按浏览器可见范围懒加载,点击可查看原图;无截图明确区分未请求、等待采集与未收集到,
|
|
57
59
|
读取失败可单独重载图片,不重新执行验证。
|
|
58
|
-
只在构建页的 Validate 页签可见时约每 5
|
|
59
|
-
|
|
60
|
+
只在构建页的 Validate 页签可见时约每 5 秒刷新,运行日志按各轮独立游标增量读取。
|
|
61
|
+
历史摘要刷新和翻页不等待整批证据读取;证据仍限制并发,避免占满本地读取名额。
|
|
62
|
+
已完成且未变化的证据与轮次卡片复用页面缓存,仍有未读日志或读取错误时继续获取。
|
|
63
|
+
切换项目保留各自历史、展开状态和滚动位置,旧项目迟到的响应不会覆盖新项目。
|
|
60
64
|
异常中断、缺少最终记录显示结果待确认,不把进程存在或截图文件存在当作验证成功。
|
|
61
65
|
|
|
62
66
|
控制台仅读取登记项目的固定证据文件;不接受任意本地路径,不跟随证据目录或文件链接,
|
|
63
|
-
日志和 JSON
|
|
67
|
+
日志和 JSON 脱敏后按文本展示。“清理日志”清空当前项目所有已加载轮次的证据显示,
|
|
68
|
+
不删除磁盘证据、不停止验证;清理后新增的运行日志仍可显示,截图可单独重载。
|
|
64
69
|
普通任务的最近 10 次历史限制不适用于 Validate:证据按项目 realpath 分隔、完成后保留 7 天,
|
|
65
|
-
|
|
70
|
+
由验证命令结束时检查清理时间,每个项目成功清理后 24 小时内不重复扫描,
|
|
71
|
+
仅清理过期的非活动记录;不设后台定时任务,打开、关闭控制台或浏览记录均不触发清理。
|
|
72
|
+
超过 5 GiB 只告警,不删除近期记录。
|
|
66
73
|
长期验收使用 `preview validate --output-dir <绝对目录>`,详情见
|
|
67
74
|
[本地验证说明](MAKER_LOCAL_PREVIEW.md#本地多轮验证与过程可见性)。
|
|
68
75
|
|
|
@@ -116,7 +116,26 @@ CLI 返回 `report`、`exit_code`、`exit_signal`、`artifacts`、`log_path`、`
|
|
|
116
116
|
|
|
117
117
|
不依赖 `-screenshot-after-start` 或新增引擎协议,不要求 Computer Use 截屏。
|
|
118
118
|
无 PNG 时检查日志、文件权限和桌面环境,不凭一条 captured 日志判成功或断言版本过旧;
|
|
119
|
-
确认缺少能力后才按当前渠道升级 Runtime
|
|
119
|
+
确认缺少能力后才按当前渠道升级 Runtime。不自动换引擎,
|
|
120
|
+
不对缺产物、崩溃、超时、取消或进程归属未知自动重试,不影响正常预览入口。
|
|
121
|
+
|
|
122
|
+
截图完成后,Maker 检查 PNG 像素及本轮引擎 Bootstrap 日志的截图时序。
|
|
123
|
+
接近全黑/透明(至少 99.9% 像素 RGB 均不超过 3,或近乎透明),
|
|
124
|
+
或截图时已观察到 Bootstrap 开始但尚未完成,标为 `screenshot_assessment.status=NOT_READY`,
|
|
125
|
+
本轮 PNG 保留但不作为有效视觉证据;不修改原始游戏报告。
|
|
126
|
+
仅本轮进程及证据收集正常、且没有实际运行错误时,等待 3 秒后用更晚的截图帧重新启动验证,
|
|
127
|
+
最多自动重试 2 次。后续截图帧参考已观察到的加载完成帧,并增大原截图帧;
|
|
128
|
+
both 模式同时延长验证帧数,不改变入口或断言。未显式指定超时时,重试按帧数比例增加预算,
|
|
129
|
+
最多 580 秒;显式 `--validate-timeout` 保持不变。按上一轮 Runtime 实际耗时估算后续所需时间,
|
|
130
|
+
若已达到预算则不启动重试,保留证据并提示调整超时;估算不保证下一轮的加载速度。
|
|
131
|
+
每次尝试都有独立 run ID、日志、JSON、PNG,
|
|
132
|
+
`attempt_run_ids` 关联实际尝试,最终命令结果对应最后一轮;显式归档保留每轮证据。
|
|
133
|
+
耗尽重试仍未就绪则明确失败,不把黑屏当成成功。取消重试等待不再启动 Runtime。
|
|
134
|
+
|
|
135
|
+
自动检查不是任意游戏 loading 的视觉识别:非黑画面仅返回 `REVIEW_REQUIRED`,必须由 Agent
|
|
136
|
+
打开每张 PNG 确认。若仍是游戏自己的 loading,等待 3 秒、选更晚截图帧并合理调整验证帧数与超时,
|
|
137
|
+
再运行同一入口;不能仅等待后重复同一个过早帧。重复无进展或存在真实错误时先排查,
|
|
138
|
+
不得无限重试或宣称截图一定有效。正常黑色场景可由 Agent 选择明确可见的受控入口验收。
|
|
120
139
|
|
|
121
140
|
### 本地多轮验证与过程可见性
|
|
122
141
|
|
|
@@ -130,11 +149,16 @@ CLI 在准备开始前向 stderr 输出 `validation.started`,包含 `run_id`
|
|
|
130
149
|
完成;早期失败也会留档。进程意外退出、缺少最终记录时展示“结果待确认”,不能判为 PASS。
|
|
131
150
|
|
|
132
151
|
控制台“构建与测试 → 日志 → Validate”只读取这些文件,控制台未启动也不影响验证。
|
|
133
|
-
|
|
152
|
+
多轮按时间倒序列表展示调用参数、准备日志、合并的 stdout/stderr/Lua 日志、JSON 报告和 PNG,最新结果在最上面,
|
|
153
|
+
日志/JSON 缩起显示最多 3 行、小图可打开原图;向下滚动加载更早记录,不使用轮次下拉框。
|
|
134
154
|
执行收集结果与游戏报告结果分别展示。控制台不代替 Agent 看图,也不记录 Agent 内部推理。
|
|
135
155
|
|
|
136
156
|
证据位于 Maker user home 的 `preview/<项目 realpath 哈希>/validation/<run ID>/`,
|
|
137
|
-
独立于普通预览的最近几轮清理。完成后保留 7
|
|
157
|
+
独立于普通预览的最近几轮清理。完成后保留 7 天,每轮验证结束检查当前项目的清理时间;
|
|
158
|
+
成功清理后 24 小时内跳过历史及容量扫描,间隔到期后由下一轮验证结束触发,
|
|
159
|
+
只清理过期且确认不再使用的记录。清理时间存于该项目 `validation/cleanup.json`,
|
|
160
|
+
重启 MCP 后仍有效;清理失败不更新时间,只告警、不改变验证结果。
|
|
161
|
+
不设后台定时任务、不联动控制台启动或关闭、不扫描其它项目。
|
|
138
162
|
活跃或进程归属未知的记录不自动删除。单项目超过 5 GiB 只告警,不为满足配额删除近期证据。
|
|
139
163
|
验收材料需长期保留时指定 `--output-dir`,结果中的 `archive_directory` 表示实际归档位置;
|
|
140
164
|
归档包含调用参数、日志、原始报告、截图和最终结果,不包含准备副本源码。
|
|
@@ -160,7 +160,7 @@ macOS/Linux:
|
|
|
160
160
|
|
|
161
161
|
```text
|
|
162
162
|
command: npx
|
|
163
|
-
args: ["-y", "-p", "@taptap/maker@0.0.37-beta.
|
|
163
|
+
args: ["-y", "-p", "@taptap/maker@0.0.37-beta.2", "taptap-maker"]
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
上面的 macOS/Linux npx 形式只是显式兼容模式;默认同样是绝对 Node + 版本化 self runtime。
|
|
@@ -265,7 +265,7 @@ stderr、尝试的编码和解码错误,不能把解码异常直接当成 Make
|
|
|
265
265
|
例如,配置使用 Windows 绝对 Node/npm CLI 时,按相同顺序复现:
|
|
266
266
|
|
|
267
267
|
```bat
|
|
268
|
-
"<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.37-beta.
|
|
268
|
+
"<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.37-beta.2 -- taptap-maker
|
|
269
269
|
```
|
|
270
270
|
|
|
271
271
|
然后用该 CLI 执行 `mcp verify --json`;不要只用 `help` 代替 MCP 协议握手。
|
|
@@ -273,7 +273,7 @@ stderr、尝试的编码和解码错误,不能把解码异常直接当成 Make
|
|
|
273
273
|
配置使用 macOS/Linux 标准 argv 时:
|
|
274
274
|
|
|
275
275
|
```bash
|
|
276
|
-
npx -y -p @taptap/maker@0.0.37-beta.
|
|
276
|
+
npx -y -p @taptap/maker@0.0.37-beta.2 taptap-maker help
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
|
|
@@ -296,7 +296,7 @@ npx -y -p @taptap/maker@0.0.37-beta.1 taptap-maker help
|
|
|
296
296
|
作为可选恢复方式,并先备份实际生效的配置:
|
|
297
297
|
|
|
298
298
|
```bash
|
|
299
|
-
npx -y -p @taptap/maker@0.0.37-beta.
|
|
299
|
+
npx -y -p @taptap/maker@0.0.37-beta.2 taptap-maker mcp install --launcher self
|
|
300
300
|
```
|
|
301
301
|
|
|
302
302
|
Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm 的绝对路径启动这一次 CLI;安装器
|
|
@@ -328,7 +328,7 @@ Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm
|
|
|
328
328
|
指纹打扰。用户明确同意后无需第二次确认,AI 将已脱敏的当前会话错误 JSON 通过 stdin 传入:
|
|
329
329
|
|
|
330
330
|
```text
|
|
331
|
-
npx -y --package @taptap/maker@0.0.37-beta.
|
|
331
|
+
npx -y --package @taptap/maker@0.0.37-beta.2 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
优先原样复用当前客户端 Maker MCP 配置中的 command 和有序 args,再追加上述 `mcp report`
|
package/package.json
CHANGED
|
@@ -208,15 +208,36 @@ each invocation launches its own Runtime, not a capture of an existing preview w
|
|
|
208
208
|
add a fixed frame/count policy or interpret loading-screen captures as acceptance. Inspect the
|
|
209
209
|
collected JSON/logs/images, then fix and rerun using the original Skill's rules.
|
|
210
210
|
|
|
211
|
+
For screenshots, Maker checks near-total black/transparent pixels and observed engine bootstrap
|
|
212
|
+
ordering. An unsafe capture is marked `screenshot_assessment.status=NOT_READY`; when the run
|
|
213
|
+
completed safely without actual runtime errors it waits three seconds and retries at a later
|
|
214
|
+
frame, up to two retries. Each attempt keeps its own evidence/run ID; the final result includes
|
|
215
|
+
`attempt_run_ids`. Do not overwrite earlier failed evidence or treat the raw game report as fixed.
|
|
216
|
+
Automatic retries scale the default timeout with the frame count, capped at 580 seconds; an
|
|
217
|
+
explicit `--validate-timeout` is never increased. If the next run's estimated Runtime duration
|
|
218
|
+
exceeds the budget, no retry launches: inspect retained evidence and explicitly adjust the timeout.
|
|
219
|
+
The estimate uses the preceding Runtime duration and is not a guarantee of future loading speed.
|
|
220
|
+
`REVIEW_REQUIRED` only means these narrow checks found no issue, not that loading/gameplay passed.
|
|
221
|
+
Open every PNG. If visual inspection still shows game-specific loading, wait three seconds,
|
|
222
|
+
choose a later screenshot frame and adjust validate frames/timeout to cover it, then rerun the
|
|
223
|
+
same test. Waiting before relaunch at the same early frame is not a readiness fix. Stop and inspect
|
|
224
|
+
errors or repeated lack of progress; do not loop forever, change the engine, or hide a game FAIL.
|
|
225
|
+
|
|
211
226
|
The stderr `validation.started` event returns `run_id`, `evidence_directory`, `log_path` and
|
|
212
227
|
`invocation_path` before preparation. Poll the returned run's `run.json` and bounded log tails
|
|
213
228
|
while the CLI is running; do not start another Runtime to poll progress. The final stdout JSON
|
|
214
229
|
remains the command result. Missing final evidence means incomplete/unknown, never PASS.
|
|
215
230
|
The Maker console's Build/Test > Validate tab reads the same local evidence and does not launch
|
|
216
|
-
or control validation.
|
|
231
|
+
or control validation. All loaded rounds appear newest first in a scrollable process
|
|
232
|
+
list; scrolling to the bottom loads older pages. Logs/JSON show a three-line collapsed preview,
|
|
233
|
+
screenshots show thumbnails linked to the original. It shows collected evidence, not proof the
|
|
234
|
+
Agent inspected an image.
|
|
217
235
|
|
|
218
236
|
Validation evidence is project-realpath isolated and retained for seven days after completion,
|
|
219
|
-
independently of normal preview cleanup.
|
|
237
|
+
independently of normal preview cleanup. Each invocation checks cleanup eligibility after it
|
|
238
|
+
finishes; successful cleanup is persisted per project and skips history/disk scans for 24 hours.
|
|
239
|
+
Failures do not advance that timestamp or change the validation result. There is no background
|
|
240
|
+
timer, console lifecycle trigger, or cross-project scan. For durable acceptance output, pass
|
|
220
241
|
`--output-dir <ABSOLUTE_DIRECTORY_OUTSIDE_PREVIEW_CACHE>` on each invocation: completed or failed
|
|
221
242
|
run artifacts are copied into a unique run subdirectory, never automatically cleaned. Verify
|
|
222
243
|
`archive_directory` in the result; archive failures remain explicit. Prepared game source is not
|
|
@@ -615,7 +636,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
|
|
|
615
636
|
Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
|
|
616
637
|
|
|
617
638
|
```text
|
|
618
|
-
npx -y --package @taptap/maker@0.0.37-beta.
|
|
639
|
+
npx -y --package @taptap/maker@0.0.37-beta.2 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
619
640
|
```
|
|
620
641
|
|
|
621
642
|
Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
|