@taptap/maker 0.0.34-beta.4 → 0.0.34-beta.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.
@@ -28,10 +28,13 @@
28
28
 
29
29
  构建与测试页在操作区下方提供通栏日志区,按构建、Lua 检查、Runtime 分页签查看,
30
30
  支持刷新、复制及自动换行。上方仅展示简短状态;日志按项目隔离,后台刷新不切换所选日志。
31
- Runtime 日志按需读取,不自动持续拉取。
31
+ Runtime 日志按需读取,不自动持续拉取。日志按行区分颜色:错误为红色、警告为黄色、普通日志为白色。
32
32
  日志栏提供“清理日志”,只清空当前项目、当前页签的显示,不删除日志文件、不停止任务;
33
33
  页面刷新后可重新读取原日志。任务历史按项目只保留最近 10 次,启动时也裁剪已有历史,
34
34
  超出记录从存储和界面移除,执行中的任务不提前丢弃。
35
+ 生成二维码、启动或刷新本地预览、Runtime 安装、Lua 检查和远端构建等耗时操作会在按钮上显示
36
+ loading 并禁止重复触发;二维码任务提交后立即打开等待弹窗,完成后替换为二维码或明确提示失败。
37
+ 构建进度条继续展示真实阶段进度,与按钮 loading 分开。
35
38
 
36
39
  项目与构建页的主操作行包含本地预览、构建、测试二维码;Lua 检查开关和构建结果另起次行。
37
40
  测试二维码复用现有远端生成流程,确认后执行。新项目缺配置时先提示构建初始化,不先收集无法保存的字段;
@@ -79,6 +79,21 @@ Runtime 参数仅携带用户标识和测试服路由。停止只关闭本地 Ru
79
79
 
80
80
  ## 平台与排障
81
81
 
82
+ - 后台进程已登记控制端点、但在启动完成前退出时,只有明确确认 supervisor 已退出,且
83
+ Runtime 尚未尝试创建或已记录的 Runtime 也已退出,才允许重新启动。创建 Runtime 前先持久化
84
+ 启动意图,拿到 PID 后立即登记;如果中断发生在这两步之间,结果未知,不自动清理或重复启动。
85
+ 存活、权限未知以及缺少新阶段标记的旧版启动记录仍保持保护,不按 PID 为零直接删除会话。
86
+ 此恢复机制不绕过安全软件;需先由用户解决外部拦截。
87
+ 已发布端点但创建结果未知的 starting 记录,在确认早于本次系统启动至少一分钟、且已记录
88
+ 的 supervisor/Runtime PID 均不存在后,也允许显式重新启动。权限未知或 PID 仍存活时不回收。
89
+ - Runtime 创建后的 PID 登记或运行状态写入失败,会停止本轮持有句柄的子进程。退出后的状态
90
+ 写入再次失败不会阻断退出等待和映射清理;无法确认子进程退出则保留资源并报告清理未确认,
91
+ 不把失败伪装成成功停止。
92
+
93
+ - Windows Runtime 通过本轮独占的 TEMP 短路径 junction 访问受管理副本,避免较长的 Maker home
94
+ 使 `scripts/main.lua` 超过 Runtime 的路径限制。停止并确认 Runtime 退出后只移除映射,
95
+ 原项目、准备产物和日志保留;无法建立映射或 TEMP 本身过长时明确报错,不启动失效预览。
96
+
82
97
  - macOS 通过会话内本机只读资源服务,将本轮 client manifest 交给 Runtime 的 `game_url`;
83
98
  Windows 使用本地 manifest 入口,仍需 Windows 实机验收。
84
99
  - Windows 预览 supervisor 与控制台复用 PowerShell/CIM 后台启动器,避免依赖 AI IDE
@@ -160,7 +160,7 @@ macOS/Linux:
160
160
 
161
161
  ```text
162
162
  command: npx
163
- args: ["-y", "-p", "@taptap/maker@0.0.34-beta.4", "taptap-maker"]
163
+ args: ["-y", "-p", "@taptap/maker@0.0.34-beta.5", "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.34-beta.4 -- taptap-maker
268
+ "<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.34-beta.5 -- 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.34-beta.4 taptap-maker help
276
+ npx -y -p @taptap/maker@0.0.34-beta.5 taptap-maker help
277
277
  ```
278
278
 
279
279
  如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
@@ -296,7 +296,7 @@ npx -y -p @taptap/maker@0.0.34-beta.4 taptap-maker help
296
296
  作为可选恢复方式,并先备份实际生效的配置:
297
297
 
298
298
  ```bash
299
- npx -y -p @taptap/maker@0.0.34-beta.4 taptap-maker mcp install --launcher self
299
+ npx -y -p @taptap/maker@0.0.34-beta.5 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.34-beta.4 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
331
+ npx -y --package @taptap/maker@0.0.34-beta.5 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.34-beta.4",
3
+ "version": "0.0.34-beta.5",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",
@@ -466,7 +466,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
466
466
  Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
467
467
 
468
468
  ```text
469
- npx -y --package @taptap/maker@0.0.34-beta.4 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
469
+ npx -y --package @taptap/maker@0.0.34-beta.5 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
470
470
  ```
471
471
 
472
472
  Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp