@taptap/maker 0.0.34 → 0.0.35-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 +1604 -799
- package/docs/MAKER_CONSOLE.md +18 -3
- package/docs/MAKER_LOCAL_PREVIEW.md +8 -1
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +5 -5
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +51 -1
package/docs/MAKER_CONSOLE.md
CHANGED
|
@@ -125,7 +125,10 @@ taptap-maker console stop --json
|
|
|
125
125
|
在 `~/.taptap-maker/runtime/` 登记并由所有项目共用,切换项目不会要求重复安装;旧项目级安装
|
|
126
126
|
会自动登记为本机安装。Lua LSP 未安装不影响控制台连接。已安装 Runtime 时优先显示版本,
|
|
127
127
|
没有版本时显示安装时间,未安装时可进入现有 Runtime 安装流程。
|
|
128
|
-
- 构建页提供独立“Lua
|
|
128
|
+
- 构建页提供独立“Lua 检查”按钮。控制台启动本机 maker-lua-lsp 的项目级 LSP MCP 会话,
|
|
129
|
+
查询 textDocument/diagnostic 检查当前项目 scripts,不调用 --mode check,也不要求安装
|
|
130
|
+
emmylua_check。诊断未完成、超时或结果不完整时记为检查不可用,不能显示为通过。
|
|
131
|
+
构建按钮旁默认勾选“构建前检查 Lua”,
|
|
129
132
|
勾选后先检查,发现 Lua 错误则停止提交和远端构建;取消勾选可直接构建。LSP 未安装时提示
|
|
130
133
|
环境问题,不把安装缺失当成代码错误。勾选状态保存在本机浏览器。
|
|
131
134
|
- 项目页的构建和本地预览快捷操作会先切换到“构建与测试”。构建调用现有 CLI,可能提交并推送
|
|
@@ -134,6 +137,9 @@ taptap-maker console stop --json
|
|
|
134
137
|
任务详情。最近构建详情和 Runtime 日志使用整行宽度,结果未知时先核实,不自动重试。
|
|
135
138
|
- 任务运行时可以切换项目;任务和日志仍归属发起项目,同一项目的重复操作仍被拦截。
|
|
136
139
|
切换页面不取消已发起的“Lua 检查 → 构建”流程。
|
|
140
|
+
- 顶部切换项目后,当前页签留在原地并刷新为对应游戏。页面用 `getCurrentProject()` 读取当前项目,
|
|
141
|
+
用 `onProjectChange` 在切换时刷新自己。当前项目不可用、且该页必须有项目时,回到项目列表。
|
|
142
|
+
文档页可以没有项目。插件工作区按项目保留,切换只显示对应工作区,不重新加载。
|
|
137
143
|
- 从顶部“本地预览”进入时,若缺少 Runtime,确认安装成功后继续启动原项目;
|
|
138
144
|
独立“安装 Runtime”按钮仍只安装,安装失败或结果未知时不会自动启动。
|
|
139
145
|
- 本地预览的安装、启动和刷新见[预览指南](MAKER_LOCAL_PREVIEW.md)。
|
|
@@ -144,7 +150,12 @@ taptap-maker console stop --json
|
|
|
144
150
|
诊断信息中,不占用主要状态区域。
|
|
145
151
|
- Lua 检查结果以构建页的检查摘要和问题列表为主;对应失败任务不自动展开,也不重复展示与
|
|
146
152
|
结构化结果相同的原始输出。完整原始结果仍保留在折叠详情中供排查。
|
|
147
|
-
- Git
|
|
153
|
+
- Git 页展示提交关系、日期和差异;浅克隆的历史不完整,不提供分支切换或回退。
|
|
154
|
+
「刷新本地历史」只读本地仓库。「拉取远端代码」只在 `main` 上、本地没有自己的提交、且文件不重叠时快进。
|
|
155
|
+
已有本地提交或同一文件两边都改过时不改写历史;文件相交时弹出可复制给 AI 的提示词。
|
|
156
|
+
不在 `main`、预览运行中、已有未完成的 Git 操作或远端不可用时,只在页面说明原因。
|
|
157
|
+
拉取进行中占用该项目的控制台任务名额,其它任务和关闭控制台会等待它结束。
|
|
158
|
+
快进不会被中途取消,避免留下 Git 锁。
|
|
148
159
|
|
|
149
160
|
## 控制台插件与 FrameCrate
|
|
150
161
|
|
|
@@ -237,8 +248,12 @@ MAC token、client secret 等凭证不进入启动命令。macOS/Linux 保持 de
|
|
|
237
248
|
|
|
238
249
|
启动锁恢复使用短期 loopback socket 互斥,进程退出后由操作系统释放,不增加额外磁盘互斥锁。
|
|
239
250
|
已有 `.recovery` 文件仅在持有互斥且确认所属进程不存在时回收;空文件需超过 2 秒。
|
|
240
|
-
|
|
251
|
+
存活、权限不明或内容损坏的非空锁保持拒绝接管。首选互斥口 `EACCES` 时改试邻近口,
|
|
252
|
+
`EADDRINUSE` 视为互斥占用并拒绝接管;仍不探测、不关闭占用者。
|
|
241
253
|
升级测试前应结束旧版启动命令;旧版不参与 socket 互斥,无法保证与新版同时恢复空锁的安全性。
|
|
254
|
+
Windows 启动失败且服务尚未对外时,只回收命令行仍匹配本次 EncodedCommand 的包装进程。
|
|
255
|
+
空 `server.log` 加启动失败,按 CIM Hidden EncodedCommand 被拦截处理;可直接运行同一 Maker
|
|
256
|
+
`node` 的 `__maker-console-server` 作为最后恢复,不改 PATH。
|
|
242
257
|
|
|
243
258
|
断连后重新运行 `console open` 获取新会话地址,旧端口和凭证可能失效。
|
|
244
259
|
单次请求失败仅提示该操作错误,不停止状态轮询;同一有效会话恢复响应后自动恢复连接显示。
|
|
@@ -105,7 +105,14 @@ supervisor/后台启动链路、Runtime 本体与游戏加载。依次核对实
|
|
|
105
105
|
Runtime 可执行文件、`supervisor_log_path`、Runtime 日志和 control channel 结果;不要把
|
|
106
106
|
“Runtime 文件存在”或“WMI 返回 PID/请求成功”当作 Runtime 已经真正启动。若 supervisor 日志为空
|
|
107
107
|
且 control channel 超时,应优先记录为 Windows 后台启动链路的待确认问题,不要直接归因于游戏代码、
|
|
108
|
-
Runtime 缺失或 Node
|
|
108
|
+
Runtime 缺失或 Node 版本。本地 AI 按 `skills/taptap-maker-local/SKILL.md` 的
|
|
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
116
|
|
|
110
117
|
- 后台进程已登记控制端点、但在启动完成前退出时,只有明确确认 supervisor 已退出,且
|
|
111
118
|
Runtime 尚未尝试创建或已记录的 Runtime 也已退出,才允许重新启动。创建 Runtime 前先持久化
|
|
@@ -160,7 +160,7 @@ macOS/Linux:
|
|
|
160
160
|
|
|
161
161
|
```text
|
|
162
162
|
command: npx
|
|
163
|
-
args: ["-y", "-p", "@taptap/maker@0.0.
|
|
163
|
+
args: ["-y", "-p", "@taptap/maker@0.0.35-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.
|
|
268
|
+
"<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.35-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.
|
|
276
|
+
npx -y -p @taptap/maker@0.0.35-beta.2 taptap-maker help
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
|
|
@@ -296,7 +296,7 @@ npx -y -p @taptap/maker@0.0.34 taptap-maker help
|
|
|
296
296
|
作为可选恢复方式,并先备份实际生效的配置:
|
|
297
297
|
|
|
298
298
|
```bash
|
|
299
|
-
npx -y -p @taptap/maker@0.0.
|
|
299
|
+
npx -y -p @taptap/maker@0.0.35-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.
|
|
331
|
+
npx -y --package @taptap/maker@0.0.35-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
|
@@ -105,6 +105,14 @@ directory and opens its page. It does not authorize build, push, Runtime install
|
|
|
105
105
|
Do not call init, build or preview just to open it. A missing/invalid directory is a selection
|
|
106
106
|
problem, not permission to clone a game.
|
|
107
107
|
|
|
108
|
+
The Git page fast-forwards remote `main` only when the local branch has no unique commits and file
|
|
109
|
+
paths do not overlap. Uncommitted edits on other files stay in place. If local commits exist, or
|
|
110
|
+
the same files changed on both sides, the console does not rewrite history. Overlapping files open
|
|
111
|
+
a copyable prompt. Follow that prompt: explain both sides in plain language and wait for
|
|
112
|
+
confirmation before editing. Do not run pull, rebase, stash, reset, or checkout from that prompt,
|
|
113
|
+
and do not create a branch. If the page says the branch is not `main`, only tell the user Maker
|
|
114
|
+
uses `main`; do not switch branches unless the user asks.
|
|
115
|
+
|
|
108
116
|
The user selects the operation in the console. Each operation passes the selected project's
|
|
109
117
|
absolute target directory to the CLI. `console status --json` inspects the service;
|
|
110
118
|
`console stop --json` stops it only when no task is active. If a different Maker bundle owns
|
|
@@ -164,6 +172,48 @@ Runtime 已执行。若 supervisor 日志为空且 control channel 超时,先
|
|
|
164
172
|
Issue/反馈中附上上述脱敏证据,让后续处理基于实际环境,而不是把某一次 Windows 兼容性问题写死
|
|
165
173
|
成所有项目的结论。
|
|
166
174
|
|
|
175
|
+
### AI Local Preview Launch Playbook
|
|
176
|
+
|
|
177
|
+
Goal: open the shared local `UrhoXRuntime` window for the current bound Maker project. Do not
|
|
178
|
+
commit, push, or remote-build. Do not rewrite PATH, switch Node, or disable antivirus unless the
|
|
179
|
+
collected evidence names that cause.
|
|
180
|
+
|
|
181
|
+
Launch chain:
|
|
182
|
+
|
|
183
|
+
1. Active-distribution CLI `taptap-maker preview start --target-dir <PROJECT> --json`.
|
|
184
|
+
2. Windows only: CLI Node → PowerShell broker → CIM `Win32_Process.Create` → Hidden PowerShell
|
|
185
|
+
`-EncodedCommand` wrapper → `__maker-preview-supervisor`.
|
|
186
|
+
3. Supervisor publishes a loopback control channel, then spawns `UrhoXRuntime.exe`.
|
|
187
|
+
4. Projects that need prepare run managed Python `project_builder.py` before Runtime starts.
|
|
188
|
+
|
|
189
|
+
Evidence files, all under Maker home preview/runtime directories returned by status/start JSON:
|
|
190
|
+
|
|
191
|
+
- `supervisor.log`
|
|
192
|
+
- current-round `prepare.log`
|
|
193
|
+
- Runtime `logs/game` and `logs/lua`
|
|
194
|
+
- `session.json` (`supervisor_pid`, `runtime_pid`, `runtime_launch_pending`, `port`)
|
|
195
|
+
|
|
196
|
+
Classify from evidence, then act:
|
|
197
|
+
|
|
198
|
+
| Evidence | Meaning | Next action |
|
|
199
|
+
| ---------------------------------------------------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
200
|
+
| `install_state: missing` | Runtime not installed | Host-approved `preview install`, then start |
|
|
201
|
+
| `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 |
|
|
202
|
+
| Empty `supervisor.log` + control-channel TIMEOUT | Wrapper never reached Node; often antivirus blocked Hidden EncodedCommand | Retry `preview start` once. Do not run `__maker-preview-supervisor` after start has returned; that entry only accepts a live pending starting record. If CIM stays blocked, report EncodedCommand interception. Do not change PATH |
|
|
203
|
+
| `supervisor exit is unverified` | CIM wrapper PID could not be proven owned | Do not taskkill by historical PID or process name. Inspect `supervisor.log` and status |
|
|
204
|
+
| `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 |
|
|
205
|
+
| Runtime PID exists / window opened | Launch succeeded | Report process launch only; use `preview logs` / `preview check` for evidence |
|
|
206
|
+
|
|
207
|
+
Console open uses the same Windows CIM wrapper with `__maker-console-server`. An empty
|
|
208
|
+
`server.log` plus “Console did not start” is the same wrapper/antivirus class, not a preview
|
|
209
|
+
Runtime missing. Retry `console open` once. If CIM stays blocked and no session.json exists,
|
|
210
|
+
run the same Maker `node` + `maker.js` with `__maker-console-server`; that entry starts the
|
|
211
|
+
HTTP service and publishes a session that later `console open` can reuse. Do not change PATH.
|
|
212
|
+
This console recovery does not start preview.
|
|
213
|
+
|
|
214
|
+
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 or CLI does not stop an independent Runtime.
|
|
216
|
+
|
|
167
217
|
Process launch and clean logs do not prove gameplay or visual correctness. Do not promise
|
|
168
218
|
screenshots, input automation or cloud/server emulation; these are not supported.
|
|
169
219
|
|
|
@@ -485,7 +535,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
|
|
|
485
535
|
Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
|
|
486
536
|
|
|
487
537
|
```text
|
|
488
|
-
npx -y --package @taptap/maker@0.0.
|
|
538
|
+
npx -y --package @taptap/maker@0.0.35-beta.2 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
489
539
|
```
|
|
490
540
|
|
|
491
541
|
Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
|