@taptap/maker 0.0.35-beta.2 → 0.0.35
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 +20261 -19216
- package/docs/MAKER_CONSOLE.md +26 -11
- package/docs/MAKER_LOCAL_PREVIEW.md +63 -22
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +5 -5
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +45 -29
package/docs/MAKER_CONSOLE.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Maker 本地控制台
|
|
2
2
|
|
|
3
|
+
Lua LSP/Python 状态在后台异步检查,同一时刻只执行一次;首次返回“检测中”,
|
|
4
|
+
后续复用 30 秒缓存。检查不得阻塞状态、停止或健康请求;关闭控制台时取消并等待检查进程退出。
|
|
5
|
+
|
|
3
6
|
控制台是 Maker CLI 的本机网页入口,随包分发,无需安装前端开发环境。
|
|
4
7
|
|
|
5
8
|
页脚版本信息旁保留小号、低对比度淡黄色“独立游戏开发日签”入口;控制台先在后台加载外部 iframe,
|
|
@@ -32,6 +35,9 @@
|
|
|
32
35
|
构建与测试页在操作区下方提供通栏日志区,按构建、Lua 检查、Runtime 分页签查看,
|
|
33
36
|
支持刷新、复制及自动换行。上方仅展示简短状态;日志按项目隔离,后台刷新不切换所选日志。
|
|
34
37
|
Runtime 日志按需读取,不自动持续拉取。日志按行区分颜色:错误为红色、警告为黄色、普通日志为白色。
|
|
38
|
+
控制台和 Agent preview run 的最终证据显示最近最多 100 行、64 KiB 日志,避免启动日志挤掉
|
|
39
|
+
游戏输出;截断会明确提示。CLI preview logs 默认仍从开头分页,--tail 可读取末尾,
|
|
40
|
+
--cursor 配合 session/reload 标识可继续增量读取;不把日志或窗口存活当成游戏断言通过。
|
|
35
41
|
日志栏提供“清理日志”,只清空当前项目、当前页签的显示,不删除日志文件、不停止任务;
|
|
36
42
|
页面刷新后可重新读取原日志。任务历史按项目只保留最近 10 次,启动时也裁剪已有历史,
|
|
37
43
|
超出记录从存储和界面移除,执行中的任务不提前丢弃。
|
|
@@ -240,21 +246,25 @@ Studio 就绪 JSON 交付本机 URL 和匹配的 `projectPath`,URL fragment
|
|
|
240
246
|
服务自动分配空闲端口。控制台页面存活时每分钟续期,重新获得焦点或恢复可见时立即续期;
|
|
241
247
|
普通状态轮询和健康检查不续期。页面关闭、浏览器退出或租约停止后,无任务时约 30 分钟退出,
|
|
242
248
|
任务结束后重新计时。关闭浏览器不会终止任务,`stop` 在任务执行中拒绝退出。
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
+
有预览任务或可核实存活的 Runtime 时,控制台拒绝主动退出;先停止预览。强制结束 Host 后仍应通过会话状态核对 Runtime,不按进程名清理。
|
|
250
|
+
|
|
251
|
+
`console open` 自动复用或用 Node 直接启动同版本控制台,不再要求用户手动启动 Host。
|
|
252
|
+
页面预览任务在控制台进程内调用共享预览业务,直接持有 Runtime;不经子 CLI 和独立 supervisor。
|
|
253
|
+
`preview start` 也通过相同的项目登记与任务接口发起,短命请求进程退出不停止用户游戏。
|
|
254
|
+
`preview run` 则由 Agent 前台 Node 直接持有 Runtime,调试结束清理自己的会话。
|
|
255
|
+
普通请求结束与整个 IDE 退出不同:外层 IDE 若回收整个进程树,预览也可能结束;不自动逃离其管理。
|
|
256
|
+
`console serve` 保留为可选外部终端入口,不是日常使用的前置步骤。
|
|
257
|
+
正常链路不使用 WMI、EncodedCommand 或额外安装的启动器,不要求关闭杀软。
|
|
258
|
+
控制台自身停止时等待其持有的预览收尾;按项目记录所有权,不因项目登记失效而遗漏活动进程。
|
|
259
|
+
新旧控制台协议不混用;升级后应先停止旧控制台再打开。
|
|
249
260
|
启动锁恢复使用短期 loopback socket 互斥,进程退出后由操作系统释放,不增加额外磁盘互斥锁。
|
|
250
261
|
已有 `.recovery` 文件仅在持有互斥且确认所属进程不存在时回收;空文件需超过 2 秒。
|
|
251
262
|
存活、权限不明或内容损坏的非空锁保持拒绝接管。首选互斥口 `EACCES` 时改试邻近口,
|
|
252
263
|
`EADDRINUSE` 视为互斥占用并拒绝接管;仍不探测、不关闭占用者。
|
|
253
264
|
升级测试前应结束旧版启动命令;旧版不参与 socket 互斥,无法保证与新版同时恢复空锁的安全性。
|
|
254
|
-
Windows
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
265
|
+
Windows 只有显式 `console open --legacy-wmi` 才运行旧 CIM 控制台启动器;
|
|
266
|
+
进入新版控制台后,预览仍由控制台直接持有。失败时不按进程名清理,不自动切换启动方式。
|
|
267
|
+
控制台有任务或自己持有的预览时不会空闲退出,界面显式关闭仍要求先停止预览。
|
|
258
268
|
断连后重新运行 `console open` 获取新会话地址,旧端口和凭证可能失效。
|
|
259
269
|
单次请求失败仅提示该操作错误,不停止状态轮询;同一有效会话恢复响应后自动恢复连接显示。
|
|
260
270
|
鉴权失败仍停止请求并提示重新打开。任何结果未知的修改操作都不自动重放。
|
|
@@ -296,6 +306,11 @@ Git 401/403 应检查凭证和项目权限,BLACKLISTED 需管理员解除账
|
|
|
296
306
|
只清理已确认所有权的进程,不按名称终止。生命周期和存储实现分别见
|
|
297
307
|
`src/maker/console/`、`src/maker/projectRegistry.ts`。
|
|
298
308
|
- macOS/Linux 的 CLI 进程组守卫是 best-effort;同步阻塞可能延迟父进程退出后的回收。
|
|
299
|
-
Windows
|
|
309
|
+
Windows 普通预览自动启动控制台,外部 console serve 仅供需要独立于整个 IDE 的场景。
|
|
310
|
+
Runtime 不 detached,强杀清理依赖 Node/libuv Job 行为;实机结果不等于所有宿主或杀软均通过。
|
|
300
311
|
控制台执行的直接 CLI 子进程已覆盖终止测试,辅助进程清理仍需实机验证。
|
|
301
312
|
固定 Runtime 安装器另有清理确认机制,不能据此推断所有 CLI 子进程均已回收。
|
|
313
|
+
|
|
314
|
+
Windows 正常预览由控制台或 Agent Node 直接持有 Runtime,旧 CIM 仅为显式兼容入口。
|
|
315
|
+
最新实测和未覆盖边界见 [启动方式探针](MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md) 的最新记录。
|
|
316
|
+
历史 breakaway 与强制手动 Host 方案不是当前默认流程。
|
|
@@ -29,6 +29,7 @@ taptap-maker preview status --target-dir <PROJECT> --json
|
|
|
29
29
|
taptap-maker preview start --target-dir <PROJECT> --json
|
|
30
30
|
taptap-maker preview refresh --target-dir <PROJECT> --json
|
|
31
31
|
taptap-maker preview logs --target-dir <PROJECT> --json
|
|
32
|
+
taptap-maker preview logs --target-dir <PROJECT> --tail --json
|
|
32
33
|
taptap-maker preview check --target-dir <PROJECT> --json
|
|
33
34
|
taptap-maker preview stop --target-dir <PROJECT> --json
|
|
34
35
|
```
|
|
@@ -43,9 +44,14 @@ taptap-maker preview stop --target-dir <PROJECT> --json
|
|
|
43
44
|
已有配置及资源元数据保持优先;配置损坏不以默认值掩盖。
|
|
44
45
|
不支持 JSONC/旧根目录配置或外部 `asset_dirs`。
|
|
45
46
|
|
|
47
|
+
安装器的 stdin 仅用于取消通知;下载等子进程默认使用空输入,不继承取消管道,避免 Windows
|
|
48
|
+
子进程卡住或争用取消信号。超时与取消必须等待本轮子进程回收,未确认回收时保留失败状态。
|
|
49
|
+
|
|
46
50
|
刷新会先关闭旧窗口,重新读取原项目并启动,丢失内存状态;新项目 prepare 失败不启动
|
|
47
51
|
Runtime,也不运行旧 dist。
|
|
48
52
|
停止或手动关闭后不自动复活。`process_alive=true` 只证明进程存活,`check` 不代表玩法通过。
|
|
53
|
+
停止标记只针对读取并核验过的 session 与 owner;旧会话的停止请求不会取消并发的新预览。
|
|
54
|
+
没有已登记会话时,stop 不创建可影响后续启动的标记;启动前探测由发起任务的取消信号中止。
|
|
49
55
|
截图、输入脚本、Server/云模拟和游戏存档隔离尚不支持,停止也不保证保存游戏。
|
|
50
56
|
|
|
51
57
|
## 联网项目
|
|
@@ -100,20 +106,32 @@ Maker 启动本地预览时优先复用当前宿主进程的 Node.js;只有宿
|
|
|
100
106
|
Node.js。系统 Node 本身不是失败证据,不要仅因为路径来自系统或 WorkBuddy 之外就要求用户切换
|
|
101
107
|
Node、修改 PATH 或重装环境。
|
|
102
108
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
“AI Local Preview Launch Playbook”处理:目标是打开本机 `UrhoXRuntime`,不要改 PATH 或切 Node。
|
|
110
|
-
`Local prepare failed` 只表示 Python/ProjectBuilder 未写出完整 manifest,Runtime 尚未启动,
|
|
111
|
-
应读本轮 `prepare.log`。空 supervisor 日志加控制通道超时,通常是 CIM Hidden EncodedCommand
|
|
112
|
-
被拦截;可重试 `preview start`。不要在 start 返回后再跑 `__maker-preview-supervisor`。
|
|
113
|
-
锁恢复互斥口 `EACCES` 时改试邻近口,`EADDRINUSE` 视为互斥占用并 fail closed,不结束占用进程。
|
|
114
|
-
启动失败且控制通道未发布时,Windows 只在当前 PID 命令行仍是本次 EncodedCommand 时回收包装进程,
|
|
115
|
-
不按历史 PID 误杀。
|
|
109
|
+
正常路径只用 Node 启动 Runtime,不调用 WMI/CIM、隐藏 PowerShell 或 EncodedCommand。
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
AI 调试 -> 前台 Node 会话 -> Runtime -> 收集日志 -> 停止本轮游戏
|
|
113
|
+
用户预览 -> 控制台 Node -> Runtime -> 用户关闭或停止 -> 清理本轮资源
|
|
114
|
+
```
|
|
116
115
|
|
|
116
|
+
- 调试:`preview run --target-dir <项目> --json` 在前台持有游戏。stderr 的
|
|
117
|
+
`preview.started` 事件提供会话信息;其它 CLI 可按 session 查询 logs/status/check 或 stop。
|
|
118
|
+
默认最多运行 10 分钟,`--duration-ms 1000..600000` 可指定较短的冒烟测试。
|
|
119
|
+
结束时 stdout 返回最终状态和日志摘要,不把会话 JSON 当作游戏断言通过。
|
|
120
|
+
- 用户预览:`preview start` 自动连接或直接启动同版本控制台,经已有项目任务接口发起预览。
|
|
121
|
+
`console open` 打开页面后点击预览也走同一流程。无需先手动启动 Host。
|
|
122
|
+
请求 CLI 结束后游戏继续由控制台管理;不承诺退出整个 IDE 后仍能保活。
|
|
123
|
+
需要独立于整个 IDE 时,可由用户在外部终端运行可选的 `console serve`。
|
|
124
|
+
- 两入口在各自 Node 进程内复用 PreviewSession、资源准备和日志代码,不再启动预览 CLI
|
|
125
|
+
或独立 supervisor 子进程。保留兼容字段 `supervisor_pid`,其值现在是持有会话的 Node PID。
|
|
126
|
+
- Runtime 明确使用 `shell:false`、`detached:false`;Windows 环境变量使用白名单。
|
|
127
|
+
正常退出等待 Runtime 结束。Windows 强杀清理利用 Node/libuv 对非 detached 子进程的
|
|
128
|
+
Job 管理,并需实机验收;不新增 breakaway、WMI 或按进程名清理的兜底。
|
|
129
|
+
- `logs` 合并 stdout/stderr 与本轮 Runtime 公布的 Lua 日志。Lua 文件只允许来自当前
|
|
130
|
+
Runtime 的固定 logs/lua 目录,校验文件身份、拒绝链接、有界增量读取,不扫描其它项目日志。
|
|
131
|
+
- 截图、输入注入、游戏断言 JSON 协议仍未实现,必须明确返回不支持或 UNDETERMINED。
|
|
132
|
+
游戏加载、画面和业务正确性不能用进程存活代替。
|
|
133
|
+
- 只有显式 `--legacy-wmi` 使用旧后台入口;正常失败不自动重试。先区分创建失败、
|
|
134
|
+
Runtime 自行退出、主动停止及宿主回收,不因空日志就断言杀软拦截。
|
|
117
135
|
- 后台进程已登记控制端点、但在启动完成前退出时,只有明确确认 supervisor 已退出,且
|
|
118
136
|
Runtime 尚未尝试创建或已记录的 Runtime 也已退出,才允许重新启动。创建 Runtime 前先持久化
|
|
119
137
|
启动意图,拿到 PID 后立即登记;如果中断发生在这两步之间,结果未知,不自动清理或重复启动。
|
|
@@ -140,11 +158,9 @@ Runtime 缺失或 Node 版本。本地 AI 按 `skills/taptap-maker-local/SKILL.m
|
|
|
140
158
|
临时文件名叠加超过 Runtime 路径限制。正常退出、刷新和启动失败时在确认进程退出后清理;
|
|
141
159
|
无法确认退出或缓存根被替换时保留,不清理原项目或共享 Runtime 资源。每轮缓存不复用,
|
|
142
160
|
公共资源可能需要重新下载;异常强杀 supervisor 时可能遗留临时缓存。
|
|
143
|
-
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
Windows 包装脚本的准备步骤失败即停止;Node 的 stderr 警告写入日志,不作为启动失败,
|
|
147
|
-
最终保留 Node 退出码。self runtime 同时携带 `package.json` 的 ESM 模块声明。
|
|
161
|
+
- 控制台与 Agent 前台会话在各自进程内直接持有 Runtime,共用准备、manifest、联网和日志逻辑。
|
|
162
|
+
不再另外启动 supervisor 进程。Windows Runtime 子进程不 detached,环境变量使用白名单;
|
|
163
|
+
legacy WMI 不是自动回退。
|
|
148
164
|
- 失败先查看 status、logs 和返回的 `log_path`;Runtime 原始日志位于安装目录
|
|
149
165
|
`logs/game`、`logs/lua`,需按本轮时间判断。进程启动不能代替资源、画面或云能力验收。
|
|
150
166
|
- 安装取消、超时或 CLI 断连后,守卫停止并等待下载辅助进程。无法确认退出时保留带
|
|
@@ -203,13 +219,38 @@ DirectConnect/Ready,运行时配置虽已存在于 manifest,Ready 仍找不
|
|
|
203
219
|
- 执行 Builder 前校验标准配置和版本路径:版本须为跨平台安全的单个目录名,
|
|
204
220
|
允许 `{x}` 模板,禁止路径跳转和 Windows 保留名;不得允许配置回退绕过校验。
|
|
205
221
|
只对受管理副本执行构建及输出清理,保留原项目 UUID 和资源引用语义。
|
|
206
|
-
- Windows/macOS
|
|
222
|
+
- Windows/macOS 资源服务归本轮持有者管理,使用动态 loopback 端口、随机访问路径及
|
|
207
223
|
client manifest 文件白名单,校验 Host 并拒绝浏览器跨源请求,不暴露源码和 server 产物。
|
|
208
|
-
|
|
224
|
+
停止、刷新、启动失败或窗口退出时关闭。控制台只清理自己的会话,不影响独立 Agent 调试。
|
|
209
225
|
- 缓存只清理 Maker 管理且已确认无活跃引用的目录,不跟随链接、不清理外部 Runtime
|
|
210
226
|
或公共缓存。独立 prepare 保留最近 3 份;本机 Runtime 安装保留当前与上一份,
|
|
211
227
|
被任一项目活跃会话引用的版本额外保留;
|
|
212
228
|
证据保留最近 3 个会话、每会话 5 轮。活跃引用和清理未确认目录额外保留。
|
|
213
229
|
这是数量限制,不是磁盘配额。
|
|
214
|
-
-
|
|
215
|
-
Windows
|
|
230
|
+
- 正常结束等待 Runtime 退出和资源清理;强杀 Node 时 Windows 子进程清理依赖 libuv Job 行为。
|
|
231
|
+
特殊宿主限制、进程创建瞬间被强杀、非 Windows 强杀等边界不作绝对保证,临时下载缓存可能保留。
|
|
232
|
+
未确认所有权或退出时不强行清理、不宣称无孤儿;安装器取消测试不替代实机进程回收测试。
|
|
233
|
+
|
|
234
|
+
Windows 启动链路迁移阶段 A 的独立探针、操作方法和未完成验收项见 [启动方式探针](MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md)。空 supervisor 日志只说明未观察到 supervisor 写日志,不能单凭此确认是火绒、WMI 或 Runtime 故障;先结合杀软事件与本轮启动结果排查。
|
|
235
|
+
|
|
236
|
+
隔离新用户目录完成 Runtime 安装、Agent 前台取数及控制台 Host 预览;受限 Job 退出测试证明 Agent 会清理,独立 Host 持有的窗口仍存活。旧 breakaway 实验路径已撤回。详情见 [启动方式探针](MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md)。
|
|
237
|
+
|
|
238
|
+
## Preparation and final evidence
|
|
239
|
+
|
|
240
|
+
Real-game acceptance results and remaining blockers: see the 2026-09-28 section in
|
|
241
|
+
[Windows launch verification](MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md).
|
|
242
|
+
|
|
243
|
+
Python probes and setup in the preview path run asynchronously with bounded output and timeouts.
|
|
244
|
+
Cancellation waits for the owned child process cleanup; sequential asynchronous copying preserves
|
|
245
|
+
project isolation and rejects links. Existing synchronous Python commands are unchanged.
|
|
246
|
+
After cancellation or timeout, Python command cleanup has a six-second drain deadline. If a
|
|
247
|
+
Windows parent has already exited, its PID is not reused for tree termination. Unverifiable
|
|
248
|
+
cleanup is reported explicitly as failure; closing inherited pipes is not proof of child cleanup.
|
|
249
|
+
|
|
250
|
+
Agent runs continue through reloading. Stop/cancel still wins, and final evidence is selected only
|
|
251
|
+
after owned-session cleanup and identity verification, using the final reload ID. Runtime close
|
|
252
|
+
drains remaining Lua output in 64 KiB chunks, yielding between chunks, up to the existing 64 MiB
|
|
253
|
+
file limit. Truncation or incomplete collection is reported as an error rather than hidden.
|
|
254
|
+
|
|
255
|
+
These checks do not prove game rendering, interaction, or server connectivity. Real-game acceptance
|
|
256
|
+
must include inspected window screenshots and representative input, separately from process checks.
|
|
@@ -160,7 +160,7 @@ macOS/Linux:
|
|
|
160
160
|
|
|
161
161
|
```text
|
|
162
162
|
command: npx
|
|
163
|
-
args: ["-y", "-p", "@taptap/maker@0.0.35
|
|
163
|
+
args: ["-y", "-p", "@taptap/maker@0.0.35", "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.35
|
|
268
|
+
"<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.35 -- 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.35
|
|
276
|
+
npx -y -p @taptap/maker@0.0.35 taptap-maker help
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
|
|
@@ -296,7 +296,7 @@ npx -y -p @taptap/maker@0.0.35-beta.2 taptap-maker help
|
|
|
296
296
|
作为可选恢复方式,并先备份实际生效的配置:
|
|
297
297
|
|
|
298
298
|
```bash
|
|
299
|
-
npx -y -p @taptap/maker@0.0.35
|
|
299
|
+
npx -y -p @taptap/maker@0.0.35 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.35
|
|
331
|
+
npx -y --package @taptap/maker@0.0.35 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
|
@@ -166,8 +166,9 @@ Windows 预览失败时,先收集并区分以下证据,再决定修复方向
|
|
|
166
166
|
2. Runtime 可执行文件、资源准备结果、supervisor 状态和 `supervisor_log_path`。
|
|
167
167
|
3. Runtime 原始日志、control channel 发布/超时结果,以及 Windows 后台启动器的返回信息。
|
|
168
168
|
|
|
169
|
-
WMI/CIM
|
|
170
|
-
|
|
169
|
+
仅在显式 legacy 模式下,WMI/CIM 返回已受理或 PID 只证明请求被接受,不证明 Runtime 已执行。
|
|
170
|
+
正常进程内模式不要求生成独立 supervisor.log,优先读取所属 Node 的 stderr、status 和本轮 logs。
|
|
171
|
+
legacy 模式若 supervisor 日志为空且 control channel 超时,先归类为 Windows 后台启动链路
|
|
171
172
|
的待确认问题;不要直接改 PATH、切换 Node、修改游戏代码,或把问题归因于 Runtime 文件缺失。
|
|
172
173
|
Issue/反馈中附上上述脱敏证据,让后续处理基于实际环境,而不是把某一次 Windows 兼容性问题写死
|
|
173
174
|
成所有项目的结论。
|
|
@@ -178,15 +179,25 @@ Goal: open the shared local `UrhoXRuntime` window for the current bound Maker pr
|
|
|
178
179
|
commit, push, or remote-build. Do not rewrite PATH, switch Node, or disable antivirus unless the
|
|
179
180
|
collected evidence names that cause.
|
|
180
181
|
|
|
181
|
-
Launch chain:
|
|
182
|
-
|
|
183
|
-
1.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
182
|
+
Launch chain (normal paths):
|
|
183
|
+
|
|
184
|
+
1. Agent debugging: keep CLI `preview run --target-dir <PROJECT> --json` running in the
|
|
185
|
+
foreground. It directly owns Runtime, emits a preview.started event on stderr and returns
|
|
186
|
+
final JSON on stdout. Query logs/status/check or stop using its session identity. Default
|
|
187
|
+
safety limit is 10 minutes; --duration-ms 1000..600000 selects a shorter smoke test.
|
|
188
|
+
2. User preview: `preview start` submits the registered project to the same console task
|
|
189
|
+
used by the browser. `console open` automatically starts/reuses the console with Node.
|
|
190
|
+
The console directly owns Runtime; finishing the request CLI does not stop the game.
|
|
191
|
+
3. No intermediate preview CLI or supervisor process. Existing session/control-channel,
|
|
192
|
+
project classification, prepare and manifest code remain shared in process. The legacy
|
|
193
|
+
supervisor_pid field identifies the owning Node. Normal paths never invoke WMI/CIM.
|
|
194
|
+
4. An entire IDE process-tree teardown can still terminate preview. Optional external
|
|
195
|
+
`console serve` is for that separate requirement, not a mandatory first-use step.
|
|
196
|
+
5. Runtime logs include bounded, identity-checked current-round Lua logs. Screenshots and
|
|
197
|
+
game assertion JSON remain unsupported; process status JSON is not gameplay validation.
|
|
198
|
+
6. Never auto-retry an unknown launch or disable antivirus. Only explicit --legacy-wmi
|
|
199
|
+
selects the old launcher. Never kill by process name or an unverified historical PID.
|
|
200
|
+
Evidence files, all under Maker home preview/runtime directories returned by status/start JSON:
|
|
190
201
|
|
|
191
202
|
- `supervisor.log`
|
|
192
203
|
- current-round `prepare.log`
|
|
@@ -195,24 +206,22 @@ Evidence files, all under Maker home preview/runtime directories returned by sta
|
|
|
195
206
|
|
|
196
207
|
Classify from evidence, then act:
|
|
197
208
|
|
|
198
|
-
| Evidence | Meaning
|
|
199
|
-
| ---------------------------------------------------------------- |
|
|
200
|
-
| `install_state: missing` | Runtime not installed
|
|
201
|
-
| `Local prepare failed` + Python/Builder/timeout in `prepare.log` | Manifest/copy failed; Runtime was not started
|
|
202
|
-
|
|
|
203
|
-
|
|
|
204
|
-
|
|
|
205
|
-
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
This console recovery does not start preview.
|
|
213
|
-
|
|
209
|
+
| Evidence | Meaning | Next action |
|
|
210
|
+
| ---------------------------------------------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
211
|
+
| `install_state: missing` | Runtime not installed | Host-approved `preview install`, then start |
|
|
212
|
+
| `Local prepare failed` + Python/Builder/timeout in `prepare.log` | Manifest/copy failed; Runtime was not started | Read `prepare.log`. Retry `preview prepare --json`. Do not treat as CIM/antivirus. Public-index download and managed Python must be ready |
|
|
213
|
+
| NATIVE_LAUNCH_FAILED + EACCES | Node background process creation was denied | Check the security product event for this exact process; do not disable protection or switch back to WMI automatically. |
|
|
214
|
+
| Empty supervisor.log + control-channel TIMEOUT | Only meaningful for an explicit legacy launcher | Normal in-process preview uses owner stderr and status; an absent standalone log is not evidence of antivirus blocking. |
|
|
215
|
+
| supervisor exit is unverified | Process ownership is unknown | Do not kill by PID or name; inspect session identity and logs. |
|
|
216
|
+
| `preferred loopback port` / recovery ports in use | Lock-recovery mutex collided with another local bind | Retry the same CLI. Do not kill the occupying process |
|
|
217
|
+
| Runtime PID exists / window opened | Launch succeeded | Report process launch only; use `preview logs` / `preview check` for evidence |
|
|
218
|
+
|
|
219
|
+
Console open starts/reuses a Node console automatically; no mandatory manual Host step.
|
|
220
|
+
Stop an incompatible older console explicitly after its previews are stopped. A separate browser
|
|
221
|
+
window does not prove that its service will survive the entire IDE shutting down. Only that
|
|
222
|
+
separate requirement calls for the optional external console serve entry.
|
|
214
223
|
Never kill by process name. Never use a stored PID without matching session identity. Stop with
|
|
215
|
-
`preview stop` or `console stop`. Closing the browser
|
|
224
|
+
`preview stop` or `console stop`. Closing the browser does not stop a Host-owned Runtime; ending Agent preview run stops only its owned Runtime.
|
|
216
225
|
|
|
217
226
|
Process launch and clean logs do not prove gameplay or visual correctness. Do not promise
|
|
218
227
|
screenshots, input automation or cloud/server emulation; these are not supported.
|
|
@@ -535,7 +544,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
|
|
|
535
544
|
Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
|
|
536
545
|
|
|
537
546
|
```text
|
|
538
|
-
npx -y --package @taptap/maker@0.0.35
|
|
547
|
+
npx -y --package @taptap/maker@0.0.35 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
539
548
|
```
|
|
540
549
|
|
|
541
550
|
Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
|
|
@@ -995,3 +1004,10 @@ Maker users may not understand Git terminology. Prefer concrete wording:
|
|
|
995
1004
|
- "冲突文件" instead of "unmerged paths"
|
|
996
1005
|
|
|
997
1006
|
Always explain the next irreversible step before taking it.
|
|
1007
|
+
|
|
1008
|
+
Windows 启动验收与受限 Job 回归参考 `docs/MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md` 的隔离探针;它只验证 Node 进程心跳,不代表 Runtime 可见或退出 IDE 后继续存活。空 supervisor 日志不单独证明是 EncodedCommand 被拦截,需结合安全软件事件确认。
|
|
1009
|
+
|
|
1010
|
+
Windows 两种用途分别由 Agent 前台 Node 和控制台 Node 直接持有 Runtime。
|
|
1011
|
+
不承诺退出整个 IDE 后仍保活,不使用 breakaway 绕过宿主管理。
|
|
1012
|
+
实测与兼容边界见 `docs/MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md` 的最新记录;
|
|
1013
|
+
仍需产品经理杀软环境复验,不自动重试未知启动或按进程名清理。
|