@taptap/maker 0.0.36 → 0.0.37-beta.10

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.
@@ -133,7 +133,10 @@ remote test version; it never builds or uploads server code automatically.
133
133
  `taptap-maker preview install --target-dir <PROJECT> --json`, then start. Installation requires
134
134
  Python and curl; do not install dependencies or bypass client approval silently.
135
135
  Explain that preparation and Runtime may download public indexes/assets. Start/refresh prepare
136
- a managed copy automatically; `preview prepare` diagnoses preparation alone. Platform support,
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,
137
140
  installation recovery and cache behavior are documented in `docs/MAKER_LOCAL_PREVIEW.md`.
138
141
 
139
142
  2. Run `taptap-maker preview start --target-dir <PROJECT> --json`. Report process launch only,
@@ -153,6 +156,96 @@ remote test version; it never builds or uploads server code automatically.
153
156
  `--cursor` and optionally `--limit` (1–500). Reset cursor after a reload. Keep local evidence
154
157
  separate from `.maker/logs/runtime/`, which belongs to the remote watcher.
155
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
+
156
249
  ### Windows Node 与后台启动诊断
157
250
 
158
251
  Maker 预览优先使用当前宿主进程的 `process.execPath`;宿主 Node 不可用时才回退系统 Node。
@@ -193,8 +286,9 @@ Launch chain (normal paths):
193
286
  supervisor_pid field identifies the owning Node. Normal paths never invoke WMI/CIM.
194
287
  4. An entire IDE process-tree teardown can still terminate preview. Optional external
195
288
  `console serve` is for that separate requirement, not a mandatory first-use step.
196
- 5. Runtime logs include bounded, identity-checked current-round Lua logs. Screenshots and
197
- game assertion JSON remain unsupported; process status JSON is not gameplay validation.
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.
198
292
  6. Never auto-retry an unknown launch or disable antivirus. Only explicit --legacy-wmi
199
293
  selects the old launcher. Never kill by process name or an unverified historical PID.
200
294
  Evidence files, all under Maker home preview/runtime directories returned by status/start JSON:
@@ -224,7 +318,8 @@ Never kill by process name. Never use a stored PID without matching session iden
224
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.
225
319
 
226
320
  Process launch and clean logs do not prove gameplay or visual correctness. Do not promise
227
- screenshots, input automation or cloud/server emulation; these are not supported.
321
+ live-window screenshots, input automation or cloud/server emulation. One-shot validation
322
+ screenshots use the separate `preview validate` adapter.
228
323
 
229
324
  Only an AI authorized to modify the game may fix it. Bound automatic fixes to two attempts and an
230
325
  agreed time budget, permit cancellation, refresh after each attempt, and return remaining failures
@@ -312,9 +407,13 @@ supports it. Follow the selected tool schema when one of these tools is used.
312
407
  - Use `create_video_task` for game videos and image/video referenced generation.
313
408
  - Only call `create_video_task` after the user explicitly requests video generation. Do not generate
314
409
  video proactively while implementing gameplay, filling asset gaps, or improving the game.
315
- - When duration exceeds 10 seconds or `model="2.5"`, show the rough credit estimate and explain that
316
- actual billing follows upstream token usage. Wait for explicit confirmation, then repeat the same
317
- request with `user_confirmed=true`.
410
+ - Estimate video cost as duration times 200 credits per second for `model="2.0"`, 300 for
411
+ `model="2.5"`, and for `model="wan"` 42 at 480p, 84 at 720p, and 168 at 1080p. When resolution is
412
+ omitted, wan is billed as 1080p, so use 168 credits per second. If duration is omitted or `duration=-1`, estimate
413
+ at the model maximum. When the estimate exceeds 1000 credits, show the estimate and say actual
414
+ billing is determined at generation, wait for explicit confirmation, then repeat the same request
415
+ with `user_confirmed=true`. Do not pass `user_confirmed=true` before confirmation or at or below
416
+ 1000 credits.
318
417
  - Use `query_video_task` to refresh video task status, release completed task quota, and fetch final videos.
319
418
  - Use `text_to_music` for game music with Suno.
320
419
  - Use `text_to_sound_effect` for one sound effect with Doubao Seed Audio.
@@ -544,7 +643,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
544
643
  Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
545
644
 
546
645
  ```text
547
- npx -y --package @taptap/maker@0.0.36 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
646
+ npx -y --package @taptap/maker@0.0.37-beta.10 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
548
647
  ```
549
648
 
550
649
  Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp