@taptap/maker 0.0.38 → 0.0.39
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 +6574 -2926
- package/docs/MAKER_CONSOLE.md +50 -4
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +5 -5
- package/package.json +1 -1
- package/skills/maker-ui-bbox-workflow/SKILL.md +67 -125
- package/skills/maker-ui-workflow/SKILL.md +9 -7
- package/skills/maker-ui-workflow/references/chatgpt-web.md +2 -0
- package/skills/maker-ui-workflow/scripts/assemble-ui-lib.d.mts +58 -0
- package/skills/maker-ui-workflow/scripts/assemble-ui.mjs +54 -18
- package/skills/taptap-maker-local/SKILL.md +41 -1112
- package/skills/taptap-maker-local/references/assets.md +85 -0
- package/skills/taptap-maker-local/references/console.md +27 -0
- package/skills/taptap-maker-local/references/dev-kit.md +45 -0
- package/skills/taptap-maker-local/references/diagnostics.md +141 -0
- package/skills/taptap-maker-local/references/git.md +239 -0
- package/skills/taptap-maker-local/references/initialize.md +252 -0
- package/skills/taptap-maker-local/references/preview-windows.md +23 -0
- package/skills/taptap-maker-local/references/preview.md +110 -0
- package/skills/taptap-maker-local/references/project.md +69 -0
- package/skills/taptap-maker-local/references/validation.md +93 -0
|
@@ -1,1121 +1,50 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: taptap-maker-local
|
|
3
|
-
description:
|
|
3
|
+
description: Initialize, clone, inspect, preview, sync or submit a TapTap Maker game; open its local console (打开make mcp控制台) or diagnose Maker MCP. Not for unrelated code edits or maintenance of the Maker MCP repository itself.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# TapTap Maker Local Workflow
|
|
7
7
|
|
|
8
|
-
Use
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Do not infer or set a service environment from preview, build, test, or local-development intent.
|
|
35
|
-
Do not add environment parameters to Maker tool calls or user MCP config; use the default Maker
|
|
36
|
-
service configuration.
|
|
37
|
-
|
|
38
|
-
For multiplayer builds, use `maker_build_current_directory` structured parameters instead of
|
|
39
|
-
editing project JSON directly. `entry_client` / `entry_server` map to `project.json`
|
|
40
|
-
`entry@client` / `entry@server`; `multiplayer.enabled`, `max_players`, `background_match`,
|
|
41
|
-
`match_info`, and `persistent_world` map to `.project/settings.json` `@runtime.multiplayer`.
|
|
42
|
-
On the first multiplayer build, pass `multiplayer.enabled=true` together with
|
|
43
|
-
`entry_client` / `entry_server`. Send multiplayer settings only when the user explicitly provides
|
|
44
|
-
them; missing local `.project/settings.json` must not inject `enabled=false`. The remote build keeps
|
|
45
|
-
omitted multiplayer fields unchanged on later builds.
|
|
46
|
-
|
|
47
|
-
Maker status, status_lite, and doctor run a lightweight `.project/settings.json` health check.
|
|
48
|
-
Normal `maker_build_current_directory` blocks before commit/push when settings JSON is invalid or
|
|
49
|
-
build-critical fields are damaged. `$schema`, `sources`, and `build` must keep the default build
|
|
50
|
-
shape; `sources.*.tag` must be `stable` for online user projects, and `build.asset_ignores` only
|
|
51
|
-
needs to exist. Do not edit settings build fields directly for feature work; restore only the
|
|
52
|
-
build-critical fields when the check fails, and preserve valid `@runtime` config.
|
|
53
|
-
The health checker itself is read-only. When repair is needed, prefer the exact
|
|
54
|
-
file from Git or an intact misplaced copy; only repair fixed fields in a parseable
|
|
55
|
-
settings object. Never synthesize project identity, entry, version, publish metadata,
|
|
56
|
-
or resource groups from defaults. With user confirmation, missing settings defaults may
|
|
57
|
-
be added without overwriting existing intent: `$schema`, `build.output_dir=../dist`,
|
|
58
|
-
`build.asset_dirs=["../assets","../scripts"]`, `build.generate_fs_path=true`,
|
|
59
|
-
`build.asset_ignores=[]`, `assets_7z_threshold=50`, `preload_include_refs=true`,
|
|
60
|
-
`trim_remote_refs=true`, `legacy_binary=false`, and `tags={}`. Do not invent locked
|
|
61
|
-
`sources.*.tag` values; recover them from Git or an intact copy. `entry=main.lua`
|
|
62
|
-
is only safe after confirming that the project uses that entry script.
|
|
63
|
-
|
|
64
|
-
## Responsibilities
|
|
65
|
-
|
|
66
|
-
Keep this split clear:
|
|
67
|
-
|
|
68
|
-
- Skill: user intent, step order, whether to ask the user, friendly explanations, failure recovery.
|
|
69
|
-
- CLI: save PAT, fetch app list, clone, prepare dev kit, install MCP config, verify local setup,
|
|
70
|
-
collect and submit sanitized MCP issue reports, update the current project's managed `AGENTS.md`
|
|
71
|
-
policy block, and run the local runtime log watcher, including runtime log polling.
|
|
72
|
-
- MCP tools/resources: inspect Maker status and run the combined commit/push/build path.
|
|
73
|
-
|
|
74
|
-
Do not reimplement Maker API calls or Git authentication in shell when the Maker CLI or MCP tool
|
|
75
|
-
exists.
|
|
76
|
-
|
|
77
|
-
When `taptap-maker-plugin-lifecycle` is bundled, follow it before this workflow. Resolve and use the
|
|
78
|
-
plugin's bundled CLI, initialize with `taptap-maker init --skip-mcp-install`, and update through the
|
|
79
|
-
active plugin's marketplace instead of installing or upgrading a standalone Maker MCP package.
|
|
8
|
+
Use the existing Maker capability routing index and this entry to select the current workflow.
|
|
9
|
+
Read only the matching reference below, not this entire directory. References are relative to
|
|
10
|
+
this Skill; paths starting with docs/ refer to the active Maker distribution's documentation.
|
|
11
|
+
If an operation changes (for example, preview fails or the user requests a build), load that
|
|
12
|
+
workflow then. Do not preload other Maker or ai-dev-kit Skills just because they are installed.
|
|
13
|
+
|
|
14
|
+
## Shared Boundaries
|
|
15
|
+
|
|
16
|
+
- Use the user's current game workspace and its verified binding; never guess a project from a
|
|
17
|
+
dialogue directory or pick one from a project list for the user. Pass the real absolute project
|
|
18
|
+
path as target_dir or --target-dir. If the workspace is missing or ambiguous, use
|
|
19
|
+
[Project Context](references/project.md).
|
|
20
|
+
- Start/resume/status: read maker://status, or call maker_status_lite when resources are unavailable.
|
|
21
|
+
Reuse current task evidence; do not repeat status for every edit. Status is read-only.
|
|
22
|
+
- Reuse the active distribution's CLI and exposed tool schemas/next_action; do not reimplement
|
|
23
|
+
authentication or APIs. When bundled, follow taptap-maker-plugin-lifecycle for plugin setup;
|
|
24
|
+
initialize with --skip-mcp-install and update through the active plugin's marketplace.
|
|
25
|
+
- Local preview and generic tests do not authorize commit, push or remote build. Resolve ambiguous
|
|
26
|
+
preview/run intent from context, asking only when needed. Follow explicit user authorization.
|
|
27
|
+
- Do not infer or set a service environment from preview, build, test, or local-development intent.
|
|
28
|
+
Do not add environment parameters to Maker calls or user MCP config.
|
|
29
|
+
- Preserve user files, project identity and secrets. Do not put PAT directly in argv or logs.
|
|
30
|
+
Never blindly retry an unknown remote mutation or paid operation; inspect its existing result.
|
|
31
|
+
- Always explain the next irreversible step before taking it. Explain results briefly: process
|
|
32
|
+
launch is not gameplay success, and successful push is not successful build. Missing evidence
|
|
33
|
+
is unknown, not PASS.
|
|
80
34
|
|
|
81
35
|
## Main Intent Table
|
|
82
36
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
| generic code validation / tests / lint | Do not use Maker remote build without an explicit remote build request. |
|
|
98
|
-
| MCP unavailable / proxy timeout / unexpected server error | Diagnose first; offer one consent-gated GitHub issue report when the evidence suggests an MCP, proxy, client integration, or service defect. |
|
|
99
|
-
|
|
100
|
-
## Local Web Console
|
|
101
|
-
|
|
102
|
-
Use the active Maker CLI/bundle for `console open`, not an unversioned npm package.
|
|
103
|
-
Opening the console only starts/reuses a loopback service, registers the explicit project
|
|
104
|
-
directory and opens its page. It does not authorize build, push, Runtime installation or preview.
|
|
105
|
-
Do not call init, build or preview just to open it. A missing/invalid directory is a selection
|
|
106
|
-
problem, not permission to clone a game.
|
|
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
|
-
|
|
116
|
-
The user selects the operation in the console. Each operation passes the selected project's
|
|
117
|
-
absolute target directory to the CLI. `console status --json` inspects the service;
|
|
118
|
-
`console stop --json` stops it only when no task is active. If a different Maker bundle owns
|
|
119
|
-
the running service, ask before stopping it. Never expose PAT or copy local session credentials
|
|
120
|
-
into project files. Console errors retain the CLI result; unknown results require verification,
|
|
121
|
-
not an automatic retry.
|
|
122
|
-
|
|
123
|
-
## Local Window Preview
|
|
124
|
-
|
|
125
|
-
Use the active distribution's Maker CLI and the current real Maker project absolute path as
|
|
126
|
-
`--target-dir`; never guess a business project from the dialogue directory. Every command supports
|
|
127
|
-
`--json`. Local preview does not require Git clean, commit or push. Single-player preview needs
|
|
128
|
-
no PAT or remote build. Multiplayer preview uses the existing Maker login and a previously built
|
|
129
|
-
remote test version; it never builds or uploads server code automatically.
|
|
130
|
-
|
|
131
|
-
1. For an explicit local-preview request, run `taptap-maker preview status --target-dir <PROJECT> --json`.
|
|
132
|
-
If Runtime is missing, follow host approval for downloading/installing with
|
|
133
|
-
`taptap-maker preview install --target-dir <PROJECT> --json`, then start. Installation requires
|
|
134
|
-
Python and curl; do not install dependencies or bypass client approval silently.
|
|
135
|
-
Explain that preparation and Runtime may download public indexes/assets. Start/refresh prepare
|
|
136
|
-
a copy only when preparation is needed; plain source previews do not copy. Prepared source is
|
|
137
|
-
reused at `<PROJECT>/.maker-preview/source`, overwritten after the old Runtime exits, and ignored
|
|
138
|
-
by Git. History keeps evidence, not source snapshots. `preview prepare` rejects active previews.
|
|
139
|
-
The console distinguishes all-project usage from current-project usage and offers explicit cleanup. Platform support,
|
|
140
|
-
installation recovery and cache behavior are documented in `docs/MAKER_LOCAL_PREVIEW.md`.
|
|
141
|
-
|
|
142
|
-
2. Run `taptap-maker preview start --target-dir <PROJECT> --json`. Report process launch only,
|
|
143
|
-
not game readiness. Never substitute validate/headless mode or remote build.
|
|
144
|
-
3. After **each batch of related code/resource changes**, actually run preview status again.
|
|
145
|
-
If `process_alive=true`, automatically run preview refresh and collect logs/check.
|
|
146
|
-
This includes a failed-but-live Runtime after Lua fixes. Do not merely remind the user to refresh.
|
|
147
|
-
If stopped, missing, or ownership is unknown, do not start or revive the session.
|
|
148
|
-
4. Explicit refresh also only refreshes an active session. Tell the user it is a restart and loses
|
|
149
|
-
in-memory state. Merge related edits into batches; do not restart on every file save. The CLI
|
|
150
|
-
coalesces overlapping refreshes, with stop/cancel taking priority. No default file watcher exists;
|
|
151
|
-
edits from other editors/agents need explicit refresh unless they follow this same rule.
|
|
152
|
-
5. For stop, run `taptap-maker preview stop --target-dir <PROJECT> --json`. Manual window close
|
|
153
|
-
is detected by status. Never kill by process name or trust a stored PID alone.
|
|
154
|
-
6. Fetch current evidence with `preview logs` and `preview check`, each with
|
|
155
|
-
the same `--target-dir`. Incremental logs use the returned `--session-id`, `--reload-id`,
|
|
156
|
-
`--cursor` and optionally `--limit` (1–500). Reset cursor after a reload. Keep local evidence
|
|
157
|
-
separate from `.maker/logs/runtime/`, which belongs to the remote watcher.
|
|
158
|
-
|
|
159
|
-
### Local run-lua-validate
|
|
160
|
-
|
|
161
|
-
Use the project's `run-lua-validate` Skill for runtime checks, screenshots, assertions and
|
|
162
|
-
controlled-state visual verification. Keep its review/fix/retest workflow; Maker supplies the
|
|
163
|
-
local execution adapter, not another test framework.
|
|
164
|
-
|
|
165
|
-
On a bound macOS/Windows Maker project, use this distribution's CLI instead of the Skill's
|
|
166
|
-
standalone Runtime installer/launch commands. Query `preview status` first; an active preview
|
|
167
|
-
must be explicitly stopped with user authorization. For the command mapping and options read
|
|
168
|
-
`docs/MAKER_LOCAL_PREVIEW.md` section `run-lua-validate 本地接入`.
|
|
169
|
-
Example: `preview validate --target-dir <PROJECT> --mode both --screenshot-frame <N> --json`,
|
|
170
|
-
where N is selected for the current test, not a fixed readiness guarantee.
|
|
171
|
-
Use the returned report/log/artifact paths with the original Skill's review rules.
|
|
172
|
-
`COMPLETED` means evidence collected, not game PASS. Preserve failures and inspect partial
|
|
173
|
-
evidence. No Computer Use capture, engine modification or remote-build fallback is required.
|
|
174
|
-
When the user requests Validate and the project Skill is unavailable, the Agent must first
|
|
175
|
-
enable/install the existing local Skill; do not immediately download or update ai-dev-kit:
|
|
176
|
-
|
|
177
|
-
1. Check `<PROJECT>/skills/run-lua-validate/SKILL.md` and
|
|
178
|
-
`<PROJECT>/.installer/skills/run-lua-validate/SKILL.md`. If neither exists, explain that
|
|
179
|
-
the source is missing and guide `dev-kit update --target-dir <PROJECT>` through this
|
|
180
|
-
distribution. Do not invent or rewrite the original Skill.
|
|
181
|
-
2. If source exists, inspect `<PROJECT>/.installer/local-skill-filter.json` as JSON.
|
|
182
|
-
When `exclude_skills.win32` (Windows) or `exclude_skills.darwin` (macOS) contains
|
|
183
|
-
`run-lua-validate`, tell the user before removing only that entry for this platform.
|
|
184
|
-
Preserve all other values. A missing filter needs no repair; malformed/unwritable
|
|
185
|
-
configuration must be reported, not replaced with an empty configuration.
|
|
186
|
-
3. Run the existing project installer: Windows uses
|
|
187
|
-
`powershell.exe -NoProfile -ExecutionPolicy Bypass -File "<PROJECT>/tools/install-skills.ps1" all`;
|
|
188
|
-
macOS uses `bash "<PROJECT>/tools/install-skills.sh" all`.
|
|
189
|
-
Check its exit status and the installed Skill file, not just its success message.
|
|
190
|
-
4. For Codex, ensure `<PROJECT>/.agents/skills/run-lua-validate/SKILL.md` is readable.
|
|
191
|
-
If the old installer only installs `.codex`, copy the original Skill directory, including
|
|
192
|
-
supporting files, from `.installer/skills` (or `skills` if still there) into the missing
|
|
193
|
-
`.agents/skills/run-lua-validate` directory. If the installer is absent, likewise install
|
|
194
|
-
only this Skill into the current host's documented project Skill directory.
|
|
195
|
-
Do not overwrite an existing directory or broken link; inspect/report conflicts first.
|
|
196
|
-
5. Read the installed `SKILL.md` and its needed references, then continue validation using
|
|
197
|
-
the local mapping below. If the host needs a Skill refresh/new session for discovery,
|
|
198
|
-
explain that; do not claim the current session has loaded it merely because installation
|
|
199
|
-
succeeded. Report permission/install failures rather than pretending the Skill is ready.
|
|
200
|
-
|
|
201
|
-
These are Agent-executed local setup steps, not a new CLI command or automatic download.
|
|
202
|
-
Skill distribution belongs to UrhoX ai-dev-kit. Maker detects legacy exclusions, warns before
|
|
203
|
-
removing only this Skill from the current platform's list, and preserves all other entries.
|
|
204
|
-
If original Skill files were already deleted, guide the user to `dev-kit update` through the
|
|
205
|
-
current distribution; a repaired exclusion is not proof of an installed Skill. Do not rewrite
|
|
206
|
-
the Skill, auto-upgrade, or block Runtime execution because compatibility repair failed.
|
|
207
|
-
|
|
208
|
-
Local iterations are Agent-controlled: choose test states, assertion scripts, screenshot timing
|
|
209
|
-
and the number of runs from the acceptance goal. Repeat `preview validate` sequentially as needed;
|
|
210
|
-
each invocation launches its own Runtime, not a capture of an existing preview window. Do not
|
|
211
|
-
add a fixed frame/count policy or interpret loading-screen captures as acceptance. Inspect the
|
|
212
|
-
collected JSON/logs/images, then fix and rerun using the original Skill's rules.
|
|
213
|
-
|
|
214
|
-
For screenshots, Maker checks near-total black/transparent pixels and observed engine bootstrap
|
|
215
|
-
ordering. An unsafe capture is marked `screenshot_assessment.status=NOT_READY`; when the run
|
|
216
|
-
completed safely without actual runtime errors it waits three seconds and retries at a later
|
|
217
|
-
frame, up to two retries. Each attempt keeps its own evidence/run ID; the final result includes
|
|
218
|
-
`attempt_run_ids`. Do not overwrite earlier failed evidence or treat the raw game report as fixed.
|
|
219
|
-
Automatic retries scale the default timeout with the frame count, capped at 580 seconds; an
|
|
220
|
-
explicit `--validate-timeout` is never increased. If the next run's estimated Runtime duration
|
|
221
|
-
exceeds the budget, no retry launches: inspect retained evidence and explicitly adjust the timeout.
|
|
222
|
-
The estimate uses the preceding Runtime duration and is not a guarantee of future loading speed.
|
|
223
|
-
`REVIEW_REQUIRED` only means these narrow checks found no issue, not that loading/gameplay passed.
|
|
224
|
-
Open every PNG. If visual inspection still shows game-specific loading, wait three seconds,
|
|
225
|
-
choose a later screenshot frame and adjust validate frames/timeout to cover it, then rerun the
|
|
226
|
-
same test. Waiting before relaunch at the same early frame is not a readiness fix. Stop and inspect
|
|
227
|
-
errors or repeated lack of progress; do not loop forever, change the engine, or hide a game FAIL.
|
|
228
|
-
|
|
229
|
-
The stderr `validation.started` event returns `run_id`, `evidence_directory`, `log_path` and
|
|
230
|
-
`invocation_path` before preparation. Poll the returned run's `run.json` and bounded log tails
|
|
231
|
-
while the CLI is running; do not start another Runtime to poll progress. The final stdout JSON
|
|
232
|
-
remains the command result. Missing final evidence means incomplete/unknown, never PASS.
|
|
233
|
-
The Maker console's Build/Test > Validate tab reads the same local evidence and does not launch
|
|
234
|
-
or control validation. All loaded rounds appear newest first in a scrollable process
|
|
235
|
-
list; scrolling to the bottom loads older pages. Logs/JSON show a three-line collapsed preview,
|
|
236
|
-
screenshots show thumbnails linked to the original. It shows collected evidence, not proof the
|
|
237
|
-
Agent inspected an image.
|
|
238
|
-
|
|
239
|
-
Validation evidence is project-realpath isolated and retains the latest three completed runs,
|
|
240
|
-
with active or unverified runs additionally protected. Each invocation checks cleanup eligibility
|
|
241
|
-
after it finishes; there is no age-based or 24-hour cleanup delay.
|
|
242
|
-
Failures do not advance that timestamp or change the validation result. There is no background
|
|
243
|
-
timer, console lifecycle trigger, or automatic cross-project cleanup. For durable acceptance output, pass
|
|
244
|
-
`--output-dir <ABSOLUTE_DIRECTORY_OUTSIDE_PREVIEW_CACHE>` on each invocation: completed or failed
|
|
245
|
-
run artifacts are copied into a unique run subdirectory, never automatically cleaned. Verify
|
|
246
|
-
`archive_directory` in the result; archive failures remain explicit. Prepared game source is not
|
|
247
|
-
part of the archive. A 5 GiB cache warning is not permission to delete recent acceptance evidence.
|
|
248
|
-
|
|
249
|
-
### Windows Node 与后台启动诊断
|
|
250
|
-
|
|
251
|
-
Maker 预览优先使用当前宿主进程的 `process.execPath`;宿主 Node 不可用时才回退系统 Node。
|
|
252
|
-
不要因为看到 system Node,或因为它不是 WorkBuddy managed Node,就直接判定环境错误、要求用户
|
|
253
|
-
切换 Node、修改 PATH 或重装依赖。只有在 Node 缺失、版本不满足,或用实际配置的 Node 直接执行
|
|
254
|
-
Maker bundle 已失败时,才把 Node 环境列为主要怀疑对象。
|
|
255
|
-
|
|
256
|
-
Windows 预览失败时,先收集并区分以下证据,再决定修复方向:
|
|
257
|
-
|
|
258
|
-
1. Node 来源、`process.execPath`、版本,以及直接执行 bundle 的结果。
|
|
259
|
-
2. Runtime 可执行文件、资源准备结果、supervisor 状态和 `supervisor_log_path`。
|
|
260
|
-
3. Runtime 原始日志、control channel 发布/超时结果,以及 Windows 后台启动器的返回信息。
|
|
261
|
-
|
|
262
|
-
仅在显式 legacy 模式下,WMI/CIM 返回已受理或 PID 只证明请求被接受,不证明 Runtime 已执行。
|
|
263
|
-
正常进程内模式不要求生成独立 supervisor.log,优先读取所属 Node 的 stderr、status 和本轮 logs。
|
|
264
|
-
legacy 模式若 supervisor 日志为空且 control channel 超时,先归类为 Windows 后台启动链路
|
|
265
|
-
的待确认问题;不要直接改 PATH、切换 Node、修改游戏代码,或把问题归因于 Runtime 文件缺失。
|
|
266
|
-
Issue/反馈中附上上述脱敏证据,让后续处理基于实际环境,而不是把某一次 Windows 兼容性问题写死
|
|
267
|
-
成所有项目的结论。
|
|
268
|
-
|
|
269
|
-
### AI Local Preview Launch Playbook
|
|
270
|
-
|
|
271
|
-
Goal: open the shared local `UrhoXRuntime` window for the current bound Maker project. Do not
|
|
272
|
-
commit, push, or remote-build. Do not rewrite PATH, switch Node, or disable antivirus unless the
|
|
273
|
-
collected evidence names that cause.
|
|
274
|
-
|
|
275
|
-
Launch chain (normal paths):
|
|
276
|
-
|
|
277
|
-
1. Agent debugging: keep CLI `preview run --target-dir <PROJECT> --json` running in the
|
|
278
|
-
foreground. It directly owns Runtime, emits a preview.started event on stderr and returns
|
|
279
|
-
final JSON on stdout. Query logs/status/check or stop using its session identity. Default
|
|
280
|
-
safety limit is 10 minutes; --duration-ms 1000..600000 selects a shorter smoke test.
|
|
281
|
-
2. User preview: `preview start` submits the registered project to the same console task
|
|
282
|
-
used by the browser. `console open` automatically starts/reuses the console with Node.
|
|
283
|
-
The console directly owns Runtime; finishing the request CLI does not stop the game.
|
|
284
|
-
3. No intermediate preview CLI or supervisor process. Existing session/control-channel,
|
|
285
|
-
project classification, prepare and manifest code remain shared in process. The legacy
|
|
286
|
-
supervisor_pid field identifies the owning Node. Normal paths never invoke WMI/CIM.
|
|
287
|
-
4. An entire IDE process-tree teardown can still terminate preview. Optional external
|
|
288
|
-
`console serve` is for that separate requirement, not a mandatory first-use step.
|
|
289
|
-
5. Runtime logs include bounded, identity-checked current-round Lua logs. Live-window screenshots
|
|
290
|
-
and game assertion JSON remain unsupported in run/start/check; use `preview validate` for
|
|
291
|
-
the original Skill's one-shot evidence. Process status JSON is not gameplay validation.
|
|
292
|
-
6. Never auto-retry an unknown launch or disable antivirus. Only explicit --legacy-wmi
|
|
293
|
-
selects the old launcher. Never kill by process name or an unverified historical PID.
|
|
294
|
-
Evidence files, all under Maker home preview/runtime directories returned by status/start JSON:
|
|
295
|
-
|
|
296
|
-
- `supervisor.log`
|
|
297
|
-
- current-round `prepare.log`
|
|
298
|
-
- Runtime `logs/game` and `logs/lua`
|
|
299
|
-
- `session.json` (`supervisor_pid`, `runtime_pid`, `runtime_launch_pending`, `port`)
|
|
300
|
-
|
|
301
|
-
Classify from evidence, then act:
|
|
302
|
-
|
|
303
|
-
| Evidence | Meaning | Next action |
|
|
304
|
-
| ---------------------------------------------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
305
|
-
| `install_state: missing` | Runtime not installed | Host-approved `preview install`, then start |
|
|
306
|
-
| `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 |
|
|
307
|
-
| 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. |
|
|
308
|
-
| 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. |
|
|
309
|
-
| supervisor exit is unverified | Process ownership is unknown | Do not kill by PID or name; inspect session identity and logs. |
|
|
310
|
-
| `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 |
|
|
311
|
-
| Runtime PID exists / window opened | Launch succeeded | Report process launch only; use `preview logs` / `preview check` for evidence |
|
|
312
|
-
|
|
313
|
-
Console open starts/reuses a Node console automatically; no mandatory manual Host step.
|
|
314
|
-
Stop an incompatible older console explicitly after its previews are stopped. A separate browser
|
|
315
|
-
window does not prove that its service will survive the entire IDE shutting down. Only that
|
|
316
|
-
separate requirement calls for the optional external console serve entry.
|
|
317
|
-
Never kill by process name. Never use a stored PID without matching session identity. Stop with
|
|
318
|
-
`preview stop` or `console stop`. Closing the browser does not stop a Host-owned Runtime; ending Agent preview run stops only its owned Runtime.
|
|
319
|
-
|
|
320
|
-
Process launch and clean logs do not prove gameplay or visual correctness. Do not promise
|
|
321
|
-
live-window screenshots, input automation or cloud/server emulation. One-shot validation
|
|
322
|
-
screenshots use the separate `preview validate` adapter.
|
|
323
|
-
|
|
324
|
-
Only an AI authorized to modify the game may fix it. Bound automatic fixes to two attempts and an
|
|
325
|
-
agreed time budget, permit cancellation, refresh after each attempt, and return remaining failures
|
|
326
|
-
and evidence. Without modification authorization only report.
|
|
327
|
-
|
|
328
|
-
Multiplayer settings automatically select a remote test server using PAT authentication on the
|
|
329
|
-
Maker side and skip_login/WebSocket direct connect in Runtime. A refresh creates a new test game,
|
|
330
|
-
not a restored room. Local server changes require an explicit remote build before taking effect.
|
|
331
|
-
Missing game configuration requires a successful build and test QR generation; authentication or
|
|
332
|
-
allocation failures must not silently fall back to single-player. No local Server/cloud mock or
|
|
333
|
-
game-save isolation is provided. Do not classify shared scripts by filename suffix,
|
|
334
|
-
inject stubs, delete old dist/manifest files, copy whole resource libraries, or silently fetch
|
|
335
|
-
official-res/uuid assets. Explain missing references/cache state and seek approval for retrieval.
|
|
336
|
-
|
|
337
|
-
## Create New Maker Project Intent
|
|
338
|
-
|
|
339
|
-
Standard initialization, clone, download, continue, or "pull remote project" requests use
|
|
340
|
-
`taptap-maker init`; the CLI shows the Maker app list and asks the user to choose an existing app
|
|
341
|
-
or `0`/`new`. Add `--create` only when the user clearly asks to create a new Maker project.
|
|
342
|
-
|
|
343
|
-
Treat these user phrases as an explicit request to create a new Maker project:
|
|
344
|
-
|
|
345
|
-
- 创建新项目
|
|
346
|
-
- 创建项目
|
|
347
|
-
- 创建maker项目
|
|
348
|
-
- 创建 Maker 项目
|
|
349
|
-
- 创建游戏
|
|
350
|
-
- 创建新游戏
|
|
351
|
-
- 创建新游戏/项目
|
|
352
|
-
- 新建项目
|
|
353
|
-
- 新建游戏
|
|
354
|
-
|
|
355
|
-
When this intent is present, project creation has higher priority than matching an existing app by
|
|
356
|
-
name. If the current directory is unbound, guide the user into the Maker init creation path:
|
|
357
|
-
|
|
358
|
-
```bash
|
|
359
|
-
taptap-maker init --create
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
If the user already provided a project/game name, pass it explicitly:
|
|
363
|
-
|
|
364
|
-
```bash
|
|
365
|
-
taptap-maker init --create --name "<PROJECT_NAME>"
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
If no name is provided, ask for the project name or suggest the current directory name as the
|
|
369
|
-
default, but do not silently invent a name. If the current directory is already bound to a Maker
|
|
370
|
-
project, do not create a new project there; tell the user to open or create a new independent
|
|
371
|
-
directory first. A same-name app may be shown as an alternative existing-project choice, but a
|
|
372
|
-
same-name app must not override the user's explicit create-project intent.
|
|
373
|
-
|
|
374
|
-
## Maker Git Workflow Policy
|
|
375
|
-
|
|
376
|
-
This policy overrides generic local Git skills and generic Git workflows whenever the current
|
|
377
|
-
directory is a Maker project, which means `.maker-mcp/config.json` exists in the project or one of
|
|
378
|
-
its parents.
|
|
379
|
-
|
|
380
|
-
Use `maker_build_current_directory` for submit, push, build, explicitly remote Web preview, and remote game result
|
|
381
|
-
verification requests in a bound Maker project.
|
|
382
|
-
Do not treat generic code checks like "验证代码", "跑测试", "lint", or "检查实现" as Maker
|
|
383
|
-
remote build unless the user explicitly asks for the remote build workflow. Local preview uses CLI.
|
|
384
|
-
Do not create feature branches, task branches, PR/MR. Do not create task-id based Git flows for
|
|
385
|
-
Maker project submit/build work. Do not run generic Git commit/push helpers as a replacement for
|
|
386
|
-
the Maker MCP tool.
|
|
387
|
-
|
|
388
|
-
`maker_build_current_directory` owns the Maker safety gate. It checks remote sync before creating a
|
|
389
|
-
commit. When local `main` is only behind Maker remote, it fast-forwards before committing. When
|
|
390
|
-
local and remote both have new commits, it merges `origin/main` after the local commit. When the
|
|
391
|
-
push is rejected because the Maker cloud workspace has uncommitted changes (`Working directory has
|
|
392
|
-
unstaged changes` / `Could not update working tree to new HEAD`), it commits the cloud changes
|
|
393
|
-
through the cloud Git API, merges them, and pushes once more. Merge conflicts are aborted and
|
|
394
|
-
reported as `merge_conflict` with `conflict_files`; resolve them, commit, and retry. It stops when
|
|
395
|
-
the branch is not `main`, remote sync cannot be verified, or fast-forward would overwrite local
|
|
396
|
-
changes.
|
|
397
|
-
|
|
398
|
-
Maker Git CLI (all commands print JSON; `--target-dir` defaults to the current directory):
|
|
399
|
-
|
|
400
|
-
- `taptap-maker git status` - local state and ahead/behind against `origin/main` (fetches).
|
|
401
|
-
- `taptap-maker git sync` - fetch, then fast-forward or merge `origin/main`; aborts on conflicts.
|
|
402
|
-
- `taptap-maker git push [--message MSG]` - the same sync/commit/push/cloud-repair flow as the
|
|
403
|
-
build tool, without the remote build.
|
|
404
|
-
- `taptap-maker git cloud-status` / `cloud-diff [--path PATH] [--staged]` - read the Maker cloud
|
|
405
|
-
workspace state and diff. Untracked cloud files are not in the diff.
|
|
406
|
-
- `taptap-maker git cloud-commit --message MSG (--all | PATH...)` - commit cloud workspace changes
|
|
407
|
-
(project owner only). Run it only when the user explicitly asks; the web agent may still be
|
|
408
|
-
editing those files. The automatic cloud commit inside push needs no extra confirmation. Never retry it after a timeout or `outcomeUnknown`; run `cloud-status`
|
|
409
|
-
first, because the commit may already have succeeded.
|
|
410
|
-
|
|
411
|
-
The root `.gitignore` is a required Maker project file. If it changes after binding or dev-kit
|
|
412
|
-
updates, include it with the game changes and mention it in the submit summary. Do not omit it from
|
|
413
|
-
selected files.
|
|
414
|
-
|
|
415
|
-
## Maker Creative Asset Tool Policy
|
|
416
|
-
|
|
417
|
-
Maker MCP provides image, video, music, sound-effect, dialogue/voice, and 3D asset tools for Maker
|
|
418
|
-
projects. These tools keep generated files inside the project, record remote mappings for later
|
|
419
|
-
editing, and can forward resolvable local reference media as data URLs when the remote tool schema
|
|
420
|
-
supports it. Follow the selected tool schema when one of these tools is used.
|
|
421
|
-
|
|
422
|
-
- Use `generate_image` for one image.
|
|
423
|
-
- Use `batch_generate_images` for multiple images.
|
|
424
|
-
- Use `edit_image` for modifying project images.
|
|
425
|
-
- Use `create_video_task` for game videos and image/video referenced generation.
|
|
426
|
-
- Only call `create_video_task` after the user explicitly requests video generation. Do not generate
|
|
427
|
-
video proactively while implementing gameplay, filling asset gaps, or improving the game.
|
|
428
|
-
- Estimate video cost as duration times 200 credits per second for `model="2.0"`, 300 for
|
|
429
|
-
`model="2.5"`, and for `model="wan"` 42 at 480p, 84 at 720p, and 168 at 1080p. When resolution is
|
|
430
|
-
omitted, wan is billed as 1080p, so use 168 credits per second. If duration is omitted or `duration=-1`, estimate
|
|
431
|
-
at the model maximum. When the estimate exceeds 1000 credits, show the estimate and say actual
|
|
432
|
-
billing is determined at generation, wait for explicit confirmation, then repeat the same request
|
|
433
|
-
with `user_confirmed=true`. Do not pass `user_confirmed=true` before confirmation or at or below
|
|
434
|
-
1000 credits.
|
|
435
|
-
- Use `query_video_task` to refresh video task status, release completed task quota, and fetch final videos.
|
|
436
|
-
- Use `text_to_music` for game music with Suno.
|
|
437
|
-
- Use `text_to_sound_effect` for one sound effect with Doubao Seed Audio.
|
|
438
|
-
- Use `batch_sound_effects` for multiple sound effects with Doubao Seed Audio.
|
|
439
|
-
- Use `text_to_dialogue` for final character dialogue with ElevenLabs Eleven v3.
|
|
440
|
-
- `text_to_dialogue` reuses confirmed local ElevenLabs voice mappings. After confirmation, pass only `character_name` and `text`.
|
|
441
|
-
- For ElevenLabs auditions, pass a detailed `character_description` and an `audition_line` of at least 100 characters. `candidate_count` is optional and accepts 1 to 3.
|
|
442
|
-
- After `audition_voices_for_character` returns previews, show them to the user and wait
|
|
443
|
-
for the user to choose. Do not select or confirm a voice automatically.
|
|
444
|
-
- Call `confirm_character_voice` only after the user explicitly chooses one preview.
|
|
445
|
-
- After confirmation, follow `next_step_hint`: call `text_to_dialogue` with the character name and
|
|
446
|
-
text only.
|
|
447
|
-
- Generated sound effects and dialogue are saved in the project.
|
|
448
|
-
- Voice audition previews are not saved to the project.
|
|
449
|
-
- Local MCP does not transcode generated audio to OGG.
|
|
450
|
-
- Follow each tool schema for supported local path, remote URL, and data URL inputs.
|
|
451
|
-
- Local proxy may convert resolvable local reference media to data URLs before forwarding.
|
|
452
|
-
- If a Maker proxy tool returns an error or `isError`, report the full remote result/error payload.
|
|
453
|
-
Include the server response payload so developers can diagnose the issue.
|
|
454
|
-
- Use `create_3d_asset` for the complete 3D asset lifecycle. Start with `action="start"`, poll
|
|
455
|
-
with `action="query"`, and use `action="continue"` only after explicit user approval of a
|
|
456
|
-
returned review step. Use `action="post_process"` for rigging, texturing, retopology, or format
|
|
457
|
-
conversion when supported by the remote schema.
|
|
458
|
-
- Preserve and inspect the complete remote 3D response. When `local_delivery.status` is `success`,
|
|
459
|
-
use the returned local model path. The local proxy materializes only the `model_files` copy/extract
|
|
460
|
-
instructions returned by the local runtime; report `delivery_failures` when no model can be delivered.
|
|
461
|
-
- For any ad-related request such as 广告, rewarded videos, play ads, ad ID, ad placement,
|
|
462
|
-
ad status, ad config, or `ShowRewardVideoAd`, first read `maker://ads-integration-guide`, then
|
|
463
|
-
follow it: confirm project -> `get_ad_config` -> verify remote/local configuration ->
|
|
464
|
-
project SDK docs -> implementation -> real-device validation.
|
|
465
|
-
- Keep the same explicit `target_dir` throughout. Remote success does not update local settings;
|
|
466
|
-
if local `@runtime.ad` is missing or differs, follow the guide before proceeding.
|
|
467
|
-
- Do not infer ad readiness from local SDK docs, `.maker-mcp/config.json`, or runtime callbacks.
|
|
468
|
-
If the primary local project configs are missing, keep ad config unavailable and do not call the
|
|
469
|
-
remote tool. Build only for an explicit user build/submit/remote Web preview request. If a successful build
|
|
470
|
-
still leaves local configs missing, explain the known limitation and do not automatically rebuild.
|
|
471
|
-
- Local window preview uses CLI and does not authorize commit or push.
|
|
472
|
-
- If `get_ad_config` reports missing `app_id` or `developer_id`, call `generate_test_qrcode` once
|
|
473
|
-
to generate test QR code metadata, then call `get_ad_config` again. Do not use publish-only tools
|
|
474
|
-
for this recovery path.
|
|
475
|
-
- If status or doctor reports `Maker project initialization` with `missing_project_json` or
|
|
476
|
-
`missing_taptap_identity`, follow that `next_action` before using tools that depend on remote
|
|
477
|
-
project config. `.project` directory presence alone is never proof of initialization; empty,
|
|
478
|
-
voice-mapping-only, and primary-config-incomplete directories remain buildable new-project state.
|
|
479
|
-
- For the current Maker game's online player feedback, including player-submitted game bug reports,
|
|
480
|
-
real-device game logs, or screenshots, or server/Lua logs for a specified game session,
|
|
481
|
-
call the Maker proxy `get_debug_feedbacks` tool only when it is exposed by the current Maker tool list.
|
|
482
|
-
This includes 当前 Maker 游戏的玩家反馈、
|
|
483
|
-
玩家提交的游戏故障、真机游戏日志或截图、指定游戏会话的服务端/Lua 日志. It does not include
|
|
484
|
-
AI client, plugin, or other product feedback.
|
|
485
|
-
- Use local runtime log files only for the current local build/runtime session. Do not use local logs
|
|
486
|
-
as a substitute for remote player-submitted feedback.
|
|
487
|
-
- Before `edit_image`, resolve dragged or referenced images to a local project image path or CDN
|
|
488
|
-
URL. If the user references an attached/local image, inspect the attachment or workspace file path
|
|
489
|
-
first. If the image is under `assets/image`, pass that path. If only a file name is given, search
|
|
490
|
-
`assets/image` for the matching file.
|
|
491
|
-
- Do not call `edit_image` without an image path or CDN URL.
|
|
492
|
-
|
|
493
|
-
Generated assets should be saved by Maker MCP under `assets/image`, `assets/video`, or
|
|
494
|
-
`assets/audio`. `create_3d_asset` local runtime `model_files` instructions are materialized under
|
|
495
|
-
`assets/model`; use `local_delivery` for the usable model path and `preview_assets` for local review images.
|
|
496
|
-
|
|
497
|
-
## Project Detection
|
|
498
|
-
|
|
499
|
-
A directory is a Maker project when the user's current project directory or one of its parents contains:
|
|
500
|
-
|
|
501
|
-
```text
|
|
502
|
-
.maker-mcp/config.json
|
|
503
|
-
```
|
|
504
|
-
|
|
505
|
-
When this file exists, explain that the directory is already bound to a Maker project.
|
|
506
|
-
|
|
507
|
-
For a bound project, always inspect `maker://status` or `maker_status_lite` before continuing
|
|
508
|
-
development after an MCP/package or plugin upgrade. If the status includes an `AGENTS.md` section
|
|
509
|
-
with `status: missing_file`, `missing_block`, or `outdated`, run
|
|
510
|
-
`taptap-maker agents update --target-dir <project dir>` before making gameplay/code changes. After
|
|
511
|
-
updating `AGENTS.md`, tell the user the current session remains usable; updated instructions load on
|
|
512
|
-
the next MCP start or user-requested reconnect. Do not require a new conversation. Package or plugin
|
|
513
|
-
updates are a separate workflow and must follow the active distribution's update skill.
|
|
514
|
-
|
|
515
|
-
When this file is missing and the user asks to clone, initialize, or continue Maker local
|
|
516
|
-
development, do not ask the user for an app_id directly. Follow the initialization workflow.
|
|
517
|
-
|
|
518
|
-
The user's current project directory is the business target. Do not ask the user to choose a
|
|
519
|
-
directory and do not scan unrelated Maker projects. If the MCP process cwd is a transient
|
|
520
|
-
dialogue/session directory, pass the user's current project directory as `target_dir`. If the AI
|
|
521
|
-
client does not expose that directory, say the current client did not provide the project directory
|
|
522
|
-
instead of guessing.
|
|
523
|
-
|
|
524
|
-
### Attached Workspace Selection
|
|
525
|
-
|
|
526
|
-
Some AI clients start MCP from a dialogue/session directory and expose the real project as an
|
|
527
|
-
attached workspace. For Maker status, clone, submit, and build, compare:
|
|
528
|
-
|
|
529
|
-
- the AI dialogue current directory, often containing `dialogues`
|
|
530
|
-
- the attached workspace directories shown by the client
|
|
531
|
-
|
|
532
|
-
If there is a single attached workspace, use that single attached workspace as `target_dir` when
|
|
533
|
-
calling Maker tools. If there are multiple attached workspaces, show the paths and ask the user
|
|
534
|
-
which one is the Maker project directory. Do not treat the dialogue/session directory as the Maker
|
|
535
|
-
project directory, and do not ask the user to clone an app into that directory.
|
|
536
|
-
|
|
537
|
-
If status output returns `AI client workspace selection`, follow that hint: choose an attached
|
|
538
|
-
workspace first, then read `maker://status` or call `maker_status_lite` with the attached project
|
|
539
|
-
directory.
|
|
540
|
-
|
|
541
|
-
DeepSeek Harness (DSH) uses `@deepseek-ai/dsh-mcp-client` and currently does not advertise MCP
|
|
542
|
-
Roots. In DSH, resolve the active game workspace from the conversation/IDE context and pass that
|
|
543
|
-
absolute directory as `target_dir` on every project-related Maker call. Never persist it as plugin
|
|
544
|
-
`cwd`; multiple DSH projects share the same user-level plugin configuration.
|
|
545
|
-
|
|
546
|
-
### Proxy Tools Missing From The Current Session
|
|
547
|
-
|
|
548
|
-
If Maker MCP is completely unavailable, tools are missing, the process exits immediately, or the
|
|
549
|
-
client reports `-32000`, `Connection closed`, or `command not found`, do not call Maker MCP tools
|
|
550
|
-
for the initial diagnosis. Work offline first:
|
|
551
|
-
|
|
552
|
-
1. Find the MCP config file the current client actually reads and back it up.
|
|
553
|
-
2. Attempt `taptap-maker mcp verify --json`. It verifies the stable self runtime by default; use
|
|
554
|
-
`--mode npx` only when diagnosing npm startup. If the command itself fails, keep that failure as
|
|
555
|
-
diagnostic evidence. If `taptap-maker` is not on PATH, reuse that config's absolute command and
|
|
556
|
-
ordered args, append `mcp verify --json`, and run the same argv directly.
|
|
557
|
-
3. This command uses the same stable launcher as MCP install and completes MCP
|
|
558
|
-
initialize and tools/list, and returns launcher_kind, command, stage, tools, stderr, error, and
|
|
559
|
-
failure_type. It does not read the client's active config or validate WorkBuddy trust, client
|
|
560
|
-
config caching, or Roots.
|
|
561
|
-
In explicit npx mode, EPERM/EACCES or an unwritable npm cache is
|
|
562
|
-
`npm_environment_error`; prefer `mcp install --launcher self` instead of blindly changing
|
|
563
|
-
`~/.npm` ownership.
|
|
564
|
-
4. First identify the active AI client from reliable evidence, then inspect and reproduce only that
|
|
565
|
-
client's active config path, command, ordered args, cwd, workspace/Roots, Node/npm/npx paths,
|
|
566
|
-
client PATH, exit status, and stderr.
|
|
567
|
-
5. Only when the active client is confirmed to be WorkBuddy, verify both the `taptap-maker` server
|
|
568
|
-
entry and the account-level enable/trust state. Do not edit account trust storage automatically;
|
|
569
|
-
ask the user to enable it in WorkBuddy.
|
|
570
|
-
6. Never use one client's configuration or trust state to diagnose another client. `doctor` does not
|
|
571
|
-
inspect the active AI client's loaded tools or configuration.
|
|
572
|
-
7. On Windows, configs written by the CLI default to absolute Node plus the versioned self runtime.
|
|
573
|
-
Explicit npx mode uses absolute Node/npm. Treat existing `cmd.exe` or `npx.cmd` configs as legacy
|
|
574
|
-
diagnostic evidence; do not persist them as a repair. Never replace cwd with a
|
|
575
|
-
`cd /d "<project>" && npx.cmd ...` command string, including for Chinese project paths.
|
|
576
|
-
8. For DSH, inspect `$DSH_HOME/cordis.patch.yml` (default `~/.dsh/cordis.patch.yml`) and any active
|
|
577
|
-
profile `cordis.yml`/`cordis.patch.yml`. The generated Maker plugin uses the stable self runtime,
|
|
578
|
-
`failOnStartupError: true`, and `toolCallTimeoutMs: 3600000`; DSH hot-reloads the patch without an
|
|
579
|
-
IDE restart. A new plugin row must be inside a Cordis `insert` patch; a bare top-level id patch
|
|
580
|
-
cannot create the row over an empty root. A fixed project `cwd` is invalid. If calls fail at about 60 seconds, repair the
|
|
581
|
-
active plugin config with `taptap-maker install` before diagnosing Maker server
|
|
582
|
-
latency.
|
|
583
|
-
9. User-level MCP config must not contain a project cwd. If WorkBuddy or DSH does not expose Roots, pass
|
|
584
|
-
`target_dir` on the concrete Maker tool call and record the process actual cwd only as diagnostic
|
|
585
|
-
evidence.
|
|
586
|
-
If cwd fallback is unbound, project-related proxy calls return `evaluated_target_dir` and
|
|
587
|
-
`project_context_source` before remote access. Fix Roots or pass the correct `target_dir`.
|
|
588
|
-
10. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
|
|
589
|
-
result first; an unchanged or missing short path is not a usable cwd workaround.
|
|
590
|
-
11. Reproduce the configured Windows launch with the same direct argv boundary when possible.
|
|
591
|
-
Separate outer shell quoting or stderr decoding failures from the MCP child process result, and
|
|
592
|
-
record both without treating wrapper failures as server evidence.
|
|
593
|
-
12. Remember that multiple AI conversations share user-level MCP config. One conversation can break
|
|
594
|
-
every other conversation by rewriting the shared command or manually adding a project cwd.
|
|
595
|
-
13. Classify the root cause from evidence before repairing it. Do not automatically change trust
|
|
596
|
-
storage, PATH, cwd, credentials, or game code. Use `taptap-maker install` only after evidence
|
|
597
|
-
confirms that the active config entry is damaged; it auto-detects clients and keeps unchanged
|
|
598
|
-
entries untouched. Reconnect and verify again in both the current and a new conversation.
|
|
599
|
-
|
|
600
|
-
If the MCP connection is established but a tool or resource call fails, including `-32003`, use a
|
|
601
|
-
separate evidence-first runtime-error workflow. Do not assign a fixed meaning to `-32003`; preserve
|
|
602
|
-
the exact client error. `mcp verify` is not the primary check for an already connected session
|
|
603
|
-
because it tests only the local launcher and stdio MCP path. Collect the failed tool/resource, redacted
|
|
604
|
-
request parameters, current `tools/list`, exact error code/message/data, complete sanitized
|
|
605
|
-
`remote_result`, request/correlation IDs, timestamp with timezone, OS/architecture, AI client and
|
|
606
|
-
`@taptap/maker` package versions, and stable reproduction steps. Preserve useful nested error,
|
|
607
|
-
warning, debug, and remote status fields while removing credentials. Do not rewrite command, cwd,
|
|
608
|
-
PATH, trust state, credentials, or game code unless the collected evidence identifies that cause.
|
|
609
|
-
|
|
610
|
-
Only after the base Maker MCP connection works should you use the following MCP-based context checks.
|
|
611
|
-
|
|
612
|
-
If the user is in a bound Maker project but `generate_image`, `batch_generate_images`, `edit_image`,
|
|
613
|
-
`create_video_task`, `query_video_task`, `text_to_music`, `text_to_sound_effect`,
|
|
614
|
-
`batch_sound_effects`, `text_to_dialogue`, `audition_voices_for_character`,
|
|
615
|
-
`confirm_character_voice`, `create_3d_asset`,
|
|
616
|
-
`generate_test_qrcode`, `get_ad_config`, or `get_debug_feedbacks` are missing from the current AI
|
|
617
|
-
tool list, do not diagnose project cwd as the registration cause. Current Maker MCP registers every
|
|
618
|
-
whitelisted proxy tool from local definitions before resolving cwd, project binding, auth, or the
|
|
619
|
-
remote proxy:
|
|
620
|
-
|
|
621
|
-
1. Capture the active client's exact `tools/list` and loaded `@taptap/maker` version.
|
|
622
|
-
2. Verify the configured launcher with `taptap-maker mcp verify --json`; a successful current
|
|
623
|
-
launcher plus a stale active tool list indicates client/session caching, not missing project auth.
|
|
624
|
-
3. Reconnect the active Maker MCP once from the client UI or start a new session so it loads the
|
|
625
|
-
current package. Do not rewrite a user-level cwd to make proxy tools appear.
|
|
626
|
-
4. After the tools are present, read status. `MCP project context cwd` with `status: mismatch` means
|
|
627
|
-
calls without `target_dir` may select an unbound or wrong project; the tools remain registered.
|
|
628
|
-
Use the active workspace/MCP Roots or pass the real project directory as `target_dir` for that call.
|
|
629
|
-
|
|
630
|
-
When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
|
|
631
|
-
that requests specifically requiring those tools cannot use them in the current session.
|
|
632
|
-
|
|
633
|
-
### Maker MCP Issue Reporting
|
|
634
|
-
|
|
635
|
-
Use this flow only for likely Maker infrastructure or integration defects. Examples include MCP
|
|
636
|
-
startup failure, `Connection closed`, unexpected missing tools, proxy connection failure, request
|
|
637
|
-
timeout, repeated reconnect failure, HTTP 5xx/unavailable responses, or an unclassified internal
|
|
638
|
-
server error. Diagnose enough to distinguish these from expected user or project errors before
|
|
639
|
-
offering a report.
|
|
640
|
-
|
|
641
|
-
Do not propose issue reporting for expected user or project errors such as invalid parameters,
|
|
642
|
-
missing project files, expired login with a documented recovery, user cancellation, project Lua
|
|
643
|
-
compile errors, or other business validation errors with a concrete next action.
|
|
644
|
-
|
|
645
|
-
Ask once per distinct failure fingerprint in the current conversation. Use the failed operation,
|
|
646
|
-
error code, and stable error message as the fingerprint. If the user declines, do not ask again for
|
|
647
|
-
that fingerprint during the conversation. A materially different infrastructure failure may be
|
|
648
|
-
offered once separately.
|
|
649
|
-
|
|
650
|
-
Before collecting or submitting, ask in the user's language. Explain that the report contains the
|
|
651
|
-
sanitized error, only the active client's Maker MCP entry, local runtime/Maker status, and current
|
|
652
|
-
workspace context. State that it excludes PAT/token values, other MCP servers, project source, and
|
|
653
|
-
the complete conversation. A suitable Chinese prompt is:
|
|
654
|
-
|
|
655
|
-
> Maker MCP 似乎遇到了连接或服务异常。是否允许我收集已脱敏的报错、Maker MCP 配置和运行环境,
|
|
656
|
-
> 并提交到官方 GitHub Issue,帮助开发团队定位和修复?不会上传 PAT/token、完整聊天或项目源码。
|
|
657
|
-
|
|
658
|
-
Only after explicit consent, create a compact JSON object with the useful current-session evidence:
|
|
659
|
-
summary, exact sanitized error, failed operation, error code/data, sanitized `remote_result`,
|
|
660
|
-
request/correlation ID, reproduction steps, visible Maker tools, client version, and workspace roots.
|
|
661
|
-
Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
|
|
662
|
-
|
|
663
|
-
```text
|
|
664
|
-
npx -y --package @taptap/maker@0.0.38 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
665
|
-
```
|
|
666
|
-
|
|
667
|
-
Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
|
|
668
|
-
report` arguments above. This preserves the installed beta/stable version and, on Windows, the
|
|
669
|
-
absolute `node.exe` plus `npm-cli.js` launcher. Use the npx fallback only when it contains the exact
|
|
670
|
-
installed Maker version. Never use an unversioned package spec,
|
|
671
|
-
assume `taptap-maker` or `npx` is on PATH, or build a `cmd /c`, `cd && npx`, or PowerShell wrapper.
|
|
672
|
-
For DSH, read only the active Maker plugin from the user/profile Cordis YAML and reuse its
|
|
673
|
-
`config.command` plus ordered `config.args`; do not upload other DSH plugins or environment values.
|
|
674
|
-
If neither an exact configured launcher nor an exact version is available, explain that automatic
|
|
675
|
-
collection cannot start, show the manual Issue URL, and continue the original task.
|
|
676
|
-
|
|
677
|
-
Do not ask for a second confirmation after the user consents. If the result is `created`, show the
|
|
678
|
-
returned Issue URL. If the result is `manual_required`, clearly tell the user that automatic GitHub
|
|
679
|
-
submission was unavailable, show the returned sanitized title/body, and provide the returned manual
|
|
680
|
-
Issue URL. This fallback is informational: it must not block troubleshooting or the user's original
|
|
681
|
-
Maker task. If the result is `consent_required`, do not submit; ask for consent because the required
|
|
682
|
-
authorization was not provided.
|
|
683
|
-
|
|
684
|
-
## Initialization Workflow
|
|
685
|
-
|
|
686
|
-
Trigger phrases include:
|
|
687
|
-
|
|
688
|
-
- 我要开发 Maker 游戏
|
|
689
|
-
- 本地 Maker 开发
|
|
690
|
-
- 拉取 Maker 游戏到本地
|
|
691
|
-
- clone Maker 项目
|
|
692
|
-
- 下载 Maker 项目代码
|
|
693
|
-
- 初始化 Maker 项目
|
|
694
|
-
- 初始化 Maker 开发目录
|
|
695
|
-
- 配置 Maker 本地开发
|
|
696
|
-
- 打开/继续开发 Maker 项目
|
|
697
|
-
|
|
698
|
-
Workflow:
|
|
699
|
-
|
|
700
|
-
1. Run `taptap-maker doctor` for the user's intended Maker directory, or read `maker://status` when
|
|
701
|
-
the MCP server is already available.
|
|
702
|
-
2. If the status reports the current directory is already bound to a Maker project, stop the
|
|
703
|
-
initialization/clone path. Continue with the user's current intent in that bound project. Do not
|
|
704
|
-
ask which app to clone unless the user explicitly asks to switch or re-clone.
|
|
705
|
-
3. If Git is missing, stop. Tell the user Git is required for clone/submit/build-side Git work.
|
|
706
|
-
4. Python plus `maker-lua-lsp` is the local Lua diagnostics prerequisite for Maker local
|
|
707
|
-
development. `taptap-maker init` checks Python before PAT, app list, clone, and MCP config
|
|
708
|
-
installation. If Python is not ready, init tries `taptap-maker python setup` up to 3 total
|
|
709
|
-
attempts. After Python is ready, setup best-effort creates a Maker private LSP venv,
|
|
710
|
-
installs/upgrades `maker-lua-lsp` there, and runs
|
|
711
|
-
`maker-lua-lsp install --ide codex,cursor,claude`; LSP failure should be reported but must not
|
|
712
|
-
block remote build. If Python setup still fails, explain that init has paused before
|
|
713
|
-
login/project clone/MCP config, then guide the user to retry `taptap-maker python setup` with
|
|
714
|
-
the current AI or install Python 3.12 manually and run `taptap-maker python doctor`.
|
|
715
|
-
5. Run `taptap-maker init` in the user's intended Maker directory. The CLI will request PAT if
|
|
716
|
-
missing, fetch TapTap token, show a paged app preview, ask the user to choose or create a Maker
|
|
717
|
-
project, clone the Maker project, prepare the AI dev kit, and install/verify MCP config.
|
|
718
|
-
For ordinary init/clone/download requests, use `taptap-maker init` so the CLI shows the app
|
|
719
|
-
list first. Add `--create` only when the user clearly asks to create a new Maker project.
|
|
720
|
-
The app preview always includes `0,创建新项目 / 0. Create a new Maker project`. This row must
|
|
721
|
-
remain visible when an AI summarizes or truncates a long app list, even if another app name
|
|
722
|
-
appears to match the current directory. Users can choose `0`/`new` and enter a project name,
|
|
723
|
-
or use `taptap-maker init --create --name "my-local-game"` for non-interactive runs.
|
|
724
|
-
User-level MCP config never pins the selected Maker project directory as `cwd`. Clients that
|
|
725
|
-
support MCP Roots should let the current workspace root identify the Maker project. If a client
|
|
726
|
-
does not support MCP Roots, pass the real project directory as `target_dir` on the concrete
|
|
727
|
-
Maker tool call. Never rewrite shared user-level MCP config to switch projects.
|
|
728
|
-
Tell the user that the first Maker clone can take 20+ seconds because the server may be
|
|
729
|
-
preparing the repository, and that they should keep the command running while the CLI retries
|
|
730
|
-
transient 503/5xx failures.
|
|
731
|
-
6. If the CLI reports ordinary local files or parent Git repository risk, explain the warning and
|
|
732
|
-
ask whether the user wants to continue in this directory or switch to a clean independent one.
|
|
733
|
-
7. After clone succeeds, run `taptap-maker doctor` again or explain that `.maker-mcp/config.json`
|
|
734
|
-
now binds the directory to the Maker project.
|
|
735
|
-
8. Tell the local AI/Agent to use the `taptap-maker-dev-kit-guide` skill for the installed dev-kit
|
|
736
|
-
resources, especially `CLAUDE.md`, `examples/`, `templates/`, and `urhox-libs/`.
|
|
737
|
-
|
|
738
|
-
Keep the user-facing explanation short:
|
|
739
|
-
|
|
740
|
-
```text
|
|
741
|
-
我会先用 Maker CLI 检查本机 Git、PAT 和当前目录是否已绑定 Maker 项目。
|
|
742
|
-
如果还没有本地鉴权,CLI 会打开 Maker 授权页;授权完成后拿到项目列表,你选游戏,我再拉代码。
|
|
743
|
-
```
|
|
744
|
-
|
|
745
|
-
## AI Dev Kit Preparation
|
|
746
|
-
|
|
747
|
-
`taptap-maker init` checks out the Maker project before preparing local development environment
|
|
748
|
-
files in the current working directory. Init reinstalls the dev kit after checkout and allows
|
|
749
|
-
dev-kit files to overwrite same-path local helper files; the managed `.gitignore` block keeps
|
|
750
|
-
those files local-only. The `.gitignore` file itself is a required Maker project file that should be
|
|
751
|
-
submitted to Maker Git.
|
|
752
|
-
|
|
753
|
-
`taptap-maker doctor`, `maker://status`, and `maker_status_lite` check the dev-kit top-level
|
|
754
|
-
entries and version state for an already bound Maker project. If `CLAUDE.md`, `examples/`,
|
|
755
|
-
`templates/`, or `urhox-libs/` are missing, or if the status reports `update_available: yes`, run
|
|
756
|
-
`taptap-maker dev-kit update` to refresh the managed dev kit files and the managed `.gitignore`
|
|
757
|
-
block. The update command replaces dev-kit managed entries so version metadata and local files stay
|
|
758
|
-
consistent. Do not call the version API directly from the skill; use the CLI/MCP status output.
|
|
759
|
-
|
|
760
|
-
The CLI checks the latest AI dev kit version for the current environment, downloads that version,
|
|
761
|
-
and records the installed version locally. If the version check is temporarily unavailable, the CLI
|
|
762
|
-
falls back to its built-in default download URL instead of blocking initialization.
|
|
763
|
-
|
|
764
|
-
After clone, use the bundled `taptap-maker-dev-kit-guide` skill to explain the installed dev-kit
|
|
765
|
-
resources to the local AI/Agent:
|
|
766
|
-
|
|
767
|
-
- `CLAUDE.md` is the AI development guide entry.
|
|
768
|
-
- `examples/` contains Maker development examples.
|
|
769
|
-
- `templates/` contains reusable templates.
|
|
770
|
-
- `urhox-libs/` contains engine APIs and capability references.
|
|
771
|
-
|
|
772
|
-
The CLI is responsible for deterministic file operations:
|
|
773
|
-
|
|
774
|
-
- extract the ZIP into the current directory after checkout
|
|
775
|
-
- skip the ZIP top-level `scripts` directory because it conflicts with Maker project code
|
|
776
|
-
- delete the downloaded `ai-dev-kit.zip` after extraction
|
|
777
|
-
- refresh the checked-out `.gitignore` managed block for installed dev-kit entries
|
|
778
|
-
- keep the dev-kit helper files ignored while submitting the `.gitignore` rules to Maker Git
|
|
779
|
-
|
|
780
|
-
Do not hand-write a custom download/unzip script while this CLI command is available.
|
|
781
|
-
|
|
782
|
-
If dev-kit network access is unavailable after clone succeeds, explain that the Maker project is
|
|
783
|
-
already checked out, but local AI development docs/API/demo support may be incomplete. Ask whether
|
|
784
|
-
the user wants to retry `taptap-maker init` for a full post-checkout dev-kit reinstall or continue
|
|
785
|
-
without the dev kit.
|
|
786
|
-
|
|
787
|
-
If clone or fetch fails with Maker Git output, inspect the returned error fields instead of asking
|
|
788
|
-
the user to delete local files immediately. Treat `retryable: yes`, `classification:
|
|
789
|
-
remote_transient`, or retry reasons such as `remote_http_5xx`, `network_or_timeout`, and
|
|
790
|
-
`connection_interrupted` as temporary service/network failures. For first clone, explain that 503
|
|
791
|
-
often means the Maker server is still preparing the repository and can take more than 20 seconds.
|
|
792
|
-
The CLI already retried these automatically; if it still fails, tell the user they can retry
|
|
793
|
-
`taptap-maker init` later or switch to a cleaner independent directory after repeated failures. Do
|
|
794
|
-
not retry for auth, permission, repository-not-found, remote-rejected, local file conflict, or local
|
|
795
|
-
permission errors until the reported cause is fixed.
|
|
796
|
-
|
|
797
|
-
## PAT Handling
|
|
798
|
-
|
|
799
|
-
If local Maker auth is missing or expired, run `taptap-maker login`. The CLI opens the Maker auth
|
|
800
|
-
page and polls the authorization result; do not ask the user to open a PAT page or manually paste a
|
|
801
|
-
PAT for normal local development. `taptap-maker pat set <PAT>`, `--pat PAT`, and `--pat-stdin` are
|
|
802
|
-
compatibility fallbacks for CI or emergency debugging only. Do not put PAT directly in argv unless
|
|
803
|
-
the user explicitly accepts the ps/shell-history exposure. If the directory is already bound, treat
|
|
804
|
-
`taptap-maker apps` output as account reference only and continue the user's current bound-project
|
|
805
|
-
task.
|
|
806
|
-
|
|
807
|
-
If PAT exchange fails:
|
|
808
|
-
|
|
809
|
-
1. Ask the user to run `taptap-maker login` again.
|
|
810
|
-
2. Do not switch to JWT/OAuth fallback or manual PAT fallback unless the user explicitly asks for
|
|
811
|
-
CI/emergency debugging.
|
|
812
|
-
|
|
813
|
-
## App Selection
|
|
814
|
-
|
|
815
|
-
Use app selection only when the current directory is unbound and the user is initializing or cloning
|
|
816
|
-
a Maker project, or when the user explicitly asks to switch or re-clone.
|
|
817
|
-
|
|
818
|
-
If the current directory is already bound, app lists from `taptap-maker apps` are reference only.
|
|
819
|
-
Continue operating on the current bound project. When the user explicitly requests a different
|
|
820
|
-
project or wants to create a new project, require a new independent directory before starting the
|
|
821
|
-
project selection or creation flow.
|
|
822
|
-
|
|
823
|
-
When app selection is needed, show the returned app preview and total count, then ask the user to
|
|
824
|
-
choose by index, app id, or name. The default preview shows the 40 most recently active apps.
|
|
825
|
-
If the target is not visible, ask the user to type `all` inside `taptap-maker init` to expand the
|
|
826
|
-
full list, or run `taptap-maker apps --all` for a one-shot human-readable dump; use
|
|
827
|
-
`taptap-maker apps --json` only when AI / scripts need the machine-readable list. If the
|
|
828
|
-
chat/client width is enough, you may present the preview as a compact two-column layout;
|
|
829
|
-
otherwise keep a single column. Keep app_id visible in every app row, and include the preview
|
|
830
|
-
details instead of only a summary such as "40 apps are available". Always preserve and show
|
|
831
|
-
`0,创建新项目 / 0. Create a new Maker project`, because it is the supported creation entry even
|
|
832
|
-
when the app preview is cropped or a same-name app exists.
|
|
833
|
-
|
|
834
|
-
Selection confirmation:
|
|
835
|
-
|
|
836
|
-
- Ask the user to choose by index, app id, or name.
|
|
837
|
-
- If the user wants a new project, tell them to choose `0`/`new` in `taptap-maker init` and enter a
|
|
838
|
-
project name; do not invent a project name unless the user explicitly asks the AI to name it.
|
|
839
|
-
- Treat the user's explicit reply as the selected app.
|
|
840
|
-
- If there is only one app, still ask for confirmation before selecting it.
|
|
841
|
-
|
|
842
|
-
After the user chooses or creates a project, route the next action to `taptap-maker init` so the
|
|
843
|
-
Maker initialization workflow can continue. For non-interactive CLI runs, pass the selected app id
|
|
844
|
-
through the supported CLI option, or use `--create --name <NAME>` for creation.
|
|
845
|
-
|
|
846
|
-
## Working Directory Compliance Check
|
|
847
|
-
|
|
848
|
-
Before every clone attempt, run `taptap-maker doctor` for the user's intended Maker development
|
|
849
|
-
directory. Use that result as the source of truth for Git availability, existing Maker binding,
|
|
850
|
-
outer Git repository detection, and AI dev-kit status.
|
|
851
|
-
|
|
852
|
-
### Directory Suitability Decision
|
|
853
|
-
|
|
854
|
-
After `taptap-maker doctor`, decide whether the directory is suitable for clone:
|
|
855
|
-
|
|
856
|
-
- If the directory is already bound to a Maker project, do not clone again unless the user
|
|
857
|
-
explicitly asks to switch or re-clone.
|
|
858
|
-
- If the directory is already bound to a Maker project and the user wants a new project, stop and
|
|
859
|
-
require a new independent directory; do not create a new Maker project into the existing binding.
|
|
860
|
-
- If Git is missing, stop and tell the user to install Git first.
|
|
861
|
-
- If `Maker Git directory` reports `inside_parent_git_repo` or `target_is_git_root: no` with an
|
|
862
|
-
outer `git_root`, explain that the directory is under another Git repository. Recommend a
|
|
863
|
-
completely independent directory, such as `~/MakerProjects/<game-name>`.
|
|
864
|
-
- If the directory is unbound and only contains ignored local config folders, continue after the
|
|
865
|
-
user chooses an app.
|
|
866
|
-
- If the directory contains ordinary user files or folders, explain that Maker clone keeps local
|
|
867
|
-
files but may stop on path conflicts. Ask whether to continue here or switch to a clean directory.
|
|
868
|
-
|
|
869
|
-
Before clone, inspect only the current directory top level.
|
|
870
|
-
The goal is to avoid surprising overwrites, not to deeply audit game code.
|
|
871
|
-
|
|
872
|
-
Acceptable local config entries include:
|
|
873
|
-
|
|
874
|
-
- `.claude`
|
|
875
|
-
- `.mcp`
|
|
876
|
-
- `.skill`
|
|
877
|
-
- `.config`
|
|
878
|
-
- `.ini`
|
|
879
|
-
- `.cursor`
|
|
880
|
-
- `.codex`
|
|
881
|
-
|
|
882
|
-
If the directory contains ordinary user files or folders, explain that Maker initialization will
|
|
883
|
-
keep local files, but clone can fail if a local path conflicts with the Maker project. Ask whether
|
|
884
|
-
to continue in this directory or switch to a clean directory.
|
|
885
|
-
|
|
886
|
-
If the current directory is inside a larger Git repository but is not itself a Git root, warn the
|
|
887
|
-
user before clone:
|
|
888
|
-
|
|
889
|
-
- The outer repository may be an existing user project.
|
|
890
|
-
- A Maker project can live under that directory only if the Maker directory gets its own `.git`.
|
|
891
|
-
- Recommend a completely independent directory, such as `~/MakerProjects/<game-name>`, for safer
|
|
892
|
-
local development.
|
|
893
|
-
- If the user explicitly continues, continue `taptap-maker init`; the CLI must initialize an
|
|
894
|
-
independent Maker Git repository in the target directory and must not modify the outer repository
|
|
895
|
-
remote.
|
|
896
|
-
|
|
897
|
-
Do not delete, move, or overwrite user files during this check.
|
|
898
|
-
|
|
899
|
-
## Clone Directory Safety
|
|
900
|
-
|
|
901
|
-
Before clone, the Maker CLI checks local files and reports conflicts. The current init flow installs
|
|
902
|
-
the AI dev kit after checkout, so a fresh directory should not get checkout conflicts from newly
|
|
903
|
-
generated dev-kit files. Explain this in non-technical terms:
|
|
904
|
-
|
|
905
|
-
- existing local config folders such as `.claude`, `.mcp`, `.skill`, `.config`, `.ini` are kept
|
|
906
|
-
- normal local files are kept unless they conflict with files from the Maker project
|
|
907
|
-
- if conflicts are reported, tell the user exactly which pre-existing files block clone and ask whether to move,
|
|
908
|
-
rename, or choose another directory
|
|
909
|
-
|
|
910
|
-
Do not delete or overwrite user files to make clone work unless the user explicitly asks.
|
|
911
|
-
|
|
912
|
-
If `taptap-maker init` fails and returns `partial_state`, explain the state in plain language:
|
|
913
|
-
|
|
914
|
-
- `project_bound: no` usually means clone did not finish; retrying clone is allowed.
|
|
915
|
-
- `git_initialized: yes` with `project_bound: no` means the directory may contain a partial local
|
|
916
|
-
Git setup; retry once, and if it fails again recommend a fresh independent directory.
|
|
917
|
-
- `ai_dev_kit_present: yes` means local AI docs/examples may already be present even though Maker
|
|
918
|
-
project checkout failed.
|
|
919
|
-
- `project_bound: yes` means the directory already has Maker binding; run `taptap-maker doctor` before
|
|
920
|
-
attempting anything else.
|
|
921
|
-
|
|
922
|
-
Do not delete partial files automatically. For novice users, prefer recommending a new independent
|
|
923
|
-
directory over manual cleanup.
|
|
924
|
-
|
|
925
|
-
### `.gitignore` Managed Block
|
|
926
|
-
|
|
927
|
-
The CLI refreshes the checked-out `.gitignore` managed block for local dev-kit files, Agent skill
|
|
928
|
-
discovery directories, and Maker runtime state.
|
|
929
|
-
|
|
930
|
-
If clone reports conflicts for project files, do not auto-merge them. Show the conflict list and
|
|
931
|
-
ask the user whether to move the local files, choose another directory, or let the local AI inspect
|
|
932
|
-
and resolve the conflict.
|
|
933
|
-
|
|
934
|
-
Explain to the user that this `.gitignore` managed block prevents local dev-kit files from being
|
|
935
|
-
submitted to Maker Git, while the `.gitignore` file itself should be submitted.
|
|
936
|
-
|
|
937
|
-
## Bundled Skills
|
|
938
|
-
|
|
939
|
-
When `taptap-maker doctor`, `maker://status`, or `maker_status_lite` reports TapTap bundled workflow
|
|
940
|
-
skills, show the skill names and document paths. Do not install or register skills automatically.
|
|
941
|
-
|
|
942
|
-
`taptap-maker-local` covers Maker local workflow. `taptap-maker-dev-kit-guide` explains the local
|
|
943
|
-
AI dev-kit resources installed during clone. `update-taptap-mcp` covers the active distribution's
|
|
944
|
-
supported update workflow.
|
|
945
|
-
|
|
946
|
-
Prefer user/global scope for Maker MCP installation. If a project/local config already exists,
|
|
947
|
-
do not block the workflow; just explain that user/global scope is recommended to avoid config
|
|
948
|
-
being tied to a specific project folder.
|
|
949
|
-
|
|
950
|
-
## Remote Sync Status
|
|
951
|
-
|
|
952
|
-
For a bound Maker project, detailed status includes `Maker remote sync`. Read the default local summary
|
|
953
|
-
before routine work; use `maker_status_lite` with `detail: true` before explicit sync diagnostics:
|
|
954
|
-
|
|
955
|
-
- For frequent polling or quick local-only status checks, call the default `maker_status_lite`; it is
|
|
956
|
-
already local-only. In detail mode, pass `skip_remote_sync: true` to avoid `git fetch origin` and
|
|
957
|
-
AI dev kit latest-version network round trips.
|
|
958
|
-
- `up_to_date`: continue development.
|
|
959
|
-
- For an explicit submit/build request, call `maker_build_current_directory` directly when status is
|
|
960
|
-
`needs_pull`. The tool attempts `git merge --ff-only origin/main` before creating the local commit.
|
|
961
|
-
If Git refuses because remote files overlap local edits, the tool stops and preserves the workspace.
|
|
962
|
-
- `needs_pull`: run `taptap-maker git sync --target-dir <PROJECT_DIR>` before editing. Local
|
|
963
|
-
uncommitted edits are kept; if remote changes touch the same files, Git refuses and keeps the
|
|
964
|
-
local files, so commit the local edits first and sync again.
|
|
965
|
-
- `diverged`: run `taptap-maker git sync`, or call `maker_build_current_directory` directly for a
|
|
966
|
-
submit/build request; both merge `origin/main`. On conflicts the merge is aborted and the
|
|
967
|
-
conflict files are listed.
|
|
968
|
-
- `branch_not_allowed`: Maker only accepts `main`; switch/migrate local commits to `main` before
|
|
969
|
-
build or submit.
|
|
970
|
-
- `remote_unavailable`: follow the failure classification and retry later only for temporary
|
|
971
|
-
5xx/network/timeout failures.
|
|
972
|
-
|
|
973
|
-
## Local Change Review
|
|
974
|
-
|
|
975
|
-
Before submitting, run local Git inspection when available:
|
|
976
|
-
|
|
977
|
-
```bash
|
|
978
|
-
git status --short --branch
|
|
979
|
-
git diff --stat
|
|
980
|
-
```
|
|
981
|
-
|
|
982
|
-
If the change set is small, inspect relevant diffs before summarizing. Do not paste large diffs
|
|
983
|
-
unless the user asks. Summaries should be understandable to non-programmers:
|
|
984
|
-
|
|
985
|
-
- what changed
|
|
986
|
-
- why these files are being submitted
|
|
987
|
-
- whether any generated or suspicious files are included
|
|
988
|
-
|
|
989
|
-
For normal remote build/Web-preview/game-result verification requests, a clean workspace still goes through
|
|
990
|
-
`maker_build_current_directory`; Maker MCP creates and pushes an empty
|
|
991
|
-
`chore: wake maker build server` commit before remote build to wake the Maker server.
|
|
992
|
-
Only skip submit/push when the user explicitly asks to build the committed remote version.
|
|
993
|
-
|
|
994
|
-
## Submit And Push
|
|
995
|
-
|
|
996
|
-
For Maker projects, user words like "提交", "提交代码", "推送", "push", or "提交到 Maker"
|
|
997
|
-
mean:
|
|
998
|
-
|
|
999
|
-
```text
|
|
1000
|
-
commit + push + Maker build
|
|
1001
|
-
```
|
|
1002
|
-
|
|
1003
|
-
Use `maker_build_current_directory` for this path. Do not use generic Git task-id,
|
|
1004
|
-
branch-creation, or PR rules inside Maker project repositories.
|
|
1005
|
-
|
|
1006
|
-
`maker_build_current_directory` owns the safety gate before commit/push. When local `main` is only
|
|
1007
|
-
behind Maker remote, it automatically fast-forwards before creating a local commit. When history is
|
|
1008
|
-
diverged, it merges `origin/main` after the local commit. When the Maker cloud workspace blocks the
|
|
1009
|
-
push, it commits the cloud changes, merges them and pushes once more. It stops when the branch is
|
|
1010
|
-
not `main`, remote sync cannot be verified, fast-forward would overwrite local changes, or a merge
|
|
1011
|
-
conflicts (the merge is aborted). Do not work around this by creating a new branch,
|
|
1012
|
-
requesting a task id, running generic Git commit/push, or opening a PR/MR.
|
|
1013
|
-
|
|
1014
|
-
If `.gitignore` changed after Maker binding or dev-kit update, include it in the submit summary.
|
|
1015
|
-
The root `.gitignore` is a Maker project file generated/maintained by the local workflow and must
|
|
1016
|
-
be submitted with the game changes; do not omit it from selected files.
|
|
1017
|
-
|
|
1018
|
-
If `maker_build_current_directory` returns a build failure after a successful push, report both:
|
|
1019
|
-
|
|
1020
|
-
- submit/push succeeded
|
|
1021
|
-
- build failed, with the concrete build error
|
|
1022
|
-
|
|
1023
|
-
If `maker_build_current_directory` returns a successful remote build, check
|
|
1024
|
-
`runtime_logs.watch_started`. The MCP starts the local watcher as a detached CLI process. The
|
|
1025
|
-
standard command is:
|
|
1026
|
-
|
|
1027
|
-
```bash
|
|
1028
|
-
taptap-maker logs watch --target-dir <PROJECT_ROOT> --reset --interval 5s
|
|
1029
|
-
```
|
|
1030
|
-
|
|
1031
|
-
This CLI flow clears old local runtime logs before polling, then appends server-shaped rows to
|
|
1032
|
-
`.maker/logs/runtime/runtime.log`. Do not start a second watcher unless the first one failed to
|
|
1033
|
-
start. For gameplay/runtime diagnostics after a successful build, read
|
|
1034
|
-
`runtime_logs.local_file`. To check whether the watcher is alive or failing, read
|
|
1035
|
-
`runtime_logs.state_file`.
|
|
1036
|
-
|
|
1037
|
-
Watcher protection rules:
|
|
1038
|
-
|
|
1039
|
-
- The watcher owns `.maker/logs/runtime/watcher.pid`; a new watcher replaces the old watcher for
|
|
1040
|
-
the same project before writing logs.
|
|
1041
|
-
- Temporary poll failures are retried by default. Treat `logs_poll_error` as diagnostic output,
|
|
1042
|
-
not as a final failure, unless the watcher exits.
|
|
1043
|
-
- If server cursor metadata lags behind returned log timestamps, the local cursor is advanced past
|
|
1044
|
-
the newest written log. Local log writing appends server-returned rows as-is.
|
|
1045
|
-
- `.maker/logs/runtime/state.json` records heartbeat fields including `lastPollAt`,
|
|
1046
|
-
`lastSuccessAt`, `lastWrittenLogs`, `consecutiveFailures`, and `lastError`.
|
|
1047
|
-
|
|
1048
|
-
If submit created a local commit but push failed because the Maker remote was temporarily
|
|
1049
|
-
unavailable, do not run a manual generic `git push`. Fix the reported cause if needed, then retry
|
|
1050
|
-
`maker_build_current_directory`. Maker MCP will detect committed-but-unpushed local commits and push
|
|
1051
|
-
them before build.
|
|
1052
|
-
|
|
1053
|
-
If the user explicitly asks "不提交", "直接构建", or "构建云端版本", call
|
|
1054
|
-
`maker_build_current_directory` with `confirm_remote_build_without_submit=true`. In that mode, Maker
|
|
1055
|
-
MCP builds the committed remote version only and does not auto-open Maker pages.
|
|
1056
|
-
|
|
1057
|
-
For push failures, use the returned `classification`, `retryable`, `retry_reason`, and
|
|
1058
|
-
`retry_attempts` fields. Temporary 5xx/network/timeout failures may be retried with the Maker build
|
|
1059
|
-
tool; `remote_rejected` means run `taptap-maker git sync` and retry; `cloud_workspace_blocked` means
|
|
1060
|
-
the automatic cloud commit did not finish (follow `next_action`); `merge_conflict` means resolve
|
|
1061
|
-
`conflict_files`, commit, and retry; `auth` means refreshing PAT;
|
|
1062
|
-
`branch_not_allowed` means Maker remote only accepts `main`; `forbidden_path` means the remote
|
|
1063
|
-
pre-receive hook rejected one or more paths/directories and the forbidden pattern from stderr must
|
|
1064
|
-
be removed from the unpushed commit before retrying.
|
|
1065
|
-
|
|
1066
|
-
When a Maker tool output contains `push_recovery`, follow it exactly:
|
|
1067
|
-
|
|
1068
|
-
- Tell the user the local commit is preserved but not yet on Maker remote.
|
|
1069
|
-
- Do not ask for permission to run a generic `git push`.
|
|
1070
|
-
- Retry with `maker_build_current_directory` for submit and build requests.
|
|
1071
|
-
- If the failure is `remote_rejected`, run `taptap-maker git sync`, then retry; do not create a new
|
|
1072
|
-
branch or PR.
|
|
1073
|
-
- If the failure is `merge_conflict`, the merge was already aborted. Explain both sides of each
|
|
1074
|
-
`conflict_files` entry, ask before editing, commit the resolution, then retry.
|
|
1075
|
-
- If the failure is `branch_not_allowed`, do not sync or merge. Tell the user Maker only accepts
|
|
1076
|
-
`main`, switch back to `main`, cherry-pick the preserved local commit there, then retry.
|
|
1077
|
-
- If the failure is `forbidden_path`, do not refresh PAT. Read the forbidden pattern in stderr,
|
|
1078
|
-
remove those paths from the unpushed commit while keeping local files, then retry after
|
|
1079
|
-
`git status` is clean for them.
|
|
1080
|
-
|
|
1081
|
-
## Pull And Conflict Handling
|
|
1082
|
-
|
|
1083
|
-
To pull, run `taptap-maker git sync --target-dir <PROJECT_DIR>`. It fetches, then fast-forwards or
|
|
1084
|
-
merges `origin/main`, and keeps local uncommitted edits. If Git refuses because remote changes touch
|
|
1085
|
-
locally edited files, commit the local edits first and sync again. Do not stash or rebase.
|
|
1086
|
-
|
|
1087
|
-
If sync returns `outcome: "conflict"`, the merge was already aborted. The working tree has no
|
|
1088
|
-
conflict markers and `git status` will not show `UU`, `AA`, `DU`, or `UD`. Do not look for those
|
|
1089
|
-
states.
|
|
1090
|
-
|
|
1091
|
-
1. Use `conflictFiles` from the sync JSON. Do not invent paths that are not listed.
|
|
1092
|
-
2. For each path, compare the local file with `origin/main` (`git show origin/main:<path>`). The
|
|
1093
|
-
local file is unchanged because the merge was aborted.
|
|
1094
|
-
3. Explain both sides and why they conflict, in plain language.
|
|
1095
|
-
4. Propose a resolution that keeps the needed parts of both sides.
|
|
1096
|
-
5. Ask for confirmation before editing files.
|
|
1097
|
-
6. After the user confirms, edit the files, commit the resolution, then run sync again.
|
|
1098
|
-
|
|
1099
|
-
If sync returns `outcome: "blocked"` because the merge could not be aborted, stop. Inspect
|
|
1100
|
-
`git status` and ask the user; do not sync again and do not treat leftover markers as a normal
|
|
1101
|
-
conflict result.
|
|
1102
|
-
|
|
1103
|
-
Do not hide unresolved conflicts. Only submit after the listed files are resolved and committed.
|
|
1104
|
-
|
|
1105
|
-
## User Communication
|
|
1106
|
-
|
|
1107
|
-
Maker users may not understand Git terminology. Prefer concrete wording:
|
|
1108
|
-
|
|
1109
|
-
- "本地改动" instead of "working tree"
|
|
1110
|
-
- "提交到 Maker" instead of "commit and push"
|
|
1111
|
-
- "远端版本" instead of "origin/main"
|
|
1112
|
-
- "冲突文件" instead of "unmerged paths"
|
|
1113
|
-
|
|
1114
|
-
Always explain the next irreversible step before taking it.
|
|
1115
|
-
|
|
1116
|
-
Windows 启动验收与受限 Job 回归参考 `docs/MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md` 的隔离探针;它只验证 Node 进程心跳,不代表 Runtime 可见或退出 IDE 后继续存活。空 supervisor 日志不单独证明是 EncodedCommand 被拦截,需结合安全软件事件确认。
|
|
1117
|
-
|
|
1118
|
-
Windows 两种用途分别由 Agent 前台 Node 和控制台 Node 直接持有 Runtime。
|
|
1119
|
-
不承诺退出整个 IDE 后仍保活,不使用 breakaway 绕过宿主管理。
|
|
1120
|
-
实测与兼容边界见 `docs/MAKER_WINDOWS_RUNTIME_LAUNCH_PROBE.md` 的最新记录;
|
|
1121
|
-
仍需产品经理杀软环境复验,不自动重试未知启动或按进程名清理。
|
|
37
|
+
| Current task | Read / use |
|
|
38
|
+
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
39
|
+
| initialize / clone / create / login recovery | [Initialization Workflow](references/initialize.md); use taptap-maker init, --create only for explicit new-project intent. |
|
|
40
|
+
| status / workspace selection / resume after upgrade | [Project Context](references/project.md); maker://status or maker_status_lite. |
|
|
41
|
+
| missing/outdated AI dev kit | [AI Dev Kit Preparation](references/dev-kit.md); existing dev-kit update workflow. |
|
|
42
|
+
| open console / 打开make mcp控制台 | [Local Web Console](references/console.md); active CLI console open --target-dir <PROJECT> --json; omit target-dir only to show the project list. |
|
|
43
|
+
| local preview / refresh / stop / preview task iteration | [Local Window Preview](references/preview.md); CLI preview, never remote build. |
|
|
44
|
+
| runtime tests / screenshot acceptance / run-lua-validate | [Local Validation](references/validation.md); Maker preview validate adapter and the project's run-lua-validate Skill. |
|
|
45
|
+
| Windows preview launch failure | [Windows Preview Diagnostics](references/preview-windows.md); collect evidence before environment changes. |
|
|
46
|
+
| submit / push / remote build / pull / conflicts | [Maker Git Workflow Policy](references/git.md); maker_build_current_directory for submit/build, CLI git sync for pull. |
|
|
47
|
+
| image / video / audio / 3D / ads / test QR / online game feedback | [Maker Creative Asset Tool Policy](references/assets.md); follow exposed tools and their confirmation gates. |
|
|
48
|
+
| MCP unavailable / missing tools / proxy failure / issue report | [MCP Diagnostics](references/diagnostics.md); diagnose first, obtain consent before reporting. |
|
|
49
|
+
| generic code validation / tests / lint | Use the relevant local check; load the validation workflow only if Runtime evidence is needed. No automatic remote build. |
|
|
50
|
+
| package/plugin update | Use the active distribution's update-taptap-mcp Skill; keep the existing session usable. |
|