@taptap/maker 0.0.19 → 0.0.21-beta.1
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 +1 -1
- package/dist/maker.js +1080 -355
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +11 -3
- package/skills/update-taptap-mcp/SKILL.md +27 -7
package/package.json
CHANGED
|
@@ -56,6 +56,10 @@ exists.
|
|
|
56
56
|
|
|
57
57
|
## Create New Maker Project Intent
|
|
58
58
|
|
|
59
|
+
Standard initialization, clone, download, continue, or "pull remote project" requests use
|
|
60
|
+
`taptap-maker init`; the CLI shows the Maker app list and asks the user to choose an existing app
|
|
61
|
+
or `0`/`new`. Add `--create` only when the user clearly asks to create a new Maker project.
|
|
62
|
+
|
|
59
63
|
Treat these user phrases as an explicit request to create a new Maker project:
|
|
60
64
|
|
|
61
65
|
- 创建新项目
|
|
@@ -241,13 +245,17 @@ Workflow:
|
|
|
241
245
|
5. Run `taptap-maker init` in the user's intended Maker directory. The CLI will request PAT if
|
|
242
246
|
missing, fetch TapTap token, show a paged app preview, ask the user to choose or create a Maker
|
|
243
247
|
project, clone the Maker project, prepare the AI dev kit, and install/verify MCP config.
|
|
248
|
+
For ordinary init/clone/download requests, use `taptap-maker init` so the CLI shows the app
|
|
249
|
+
list first. Add `--create` only when the user clearly asks to create a new Maker project.
|
|
244
250
|
The app preview always includes `0,创建新项目 / 0. Create a new Maker project`. This row must
|
|
245
251
|
remain visible when an AI summarizes or truncates a long app list, even if another app name
|
|
246
252
|
appears to match the current directory. Users can choose `0`/`new` and enter a project name,
|
|
247
253
|
or use `taptap-maker init --create --name "my-local-game"` for non-interactive runs.
|
|
248
|
-
The generated MCP config
|
|
249
|
-
|
|
250
|
-
|
|
254
|
+
The generated user-level MCP config does not pin the selected Maker project directory as `cwd`
|
|
255
|
+
by default. Clients that support MCP Roots should let the current workspace root identify the
|
|
256
|
+
Maker project, so multiple AI clients or Maker projects do not overwrite one shared cwd. If a
|
|
257
|
+
client does not support MCP Roots, the user can explicitly run
|
|
258
|
+
`taptap-maker mcp install --target-dir <PROJECT_DIR>` as a compatibility fix.
|
|
251
259
|
Tell the user that the first Maker clone can take 20+ seconds because the server may be
|
|
252
260
|
preparing the repository, and that they should keep the command running while the CLI retries
|
|
253
261
|
transient 503/5xx failures.
|
|
@@ -17,17 +17,25 @@ This workflow upgrades only the current machine and the current Maker project di
|
|
|
17
17
|
- Do not batch-upgrade multiple projects.
|
|
18
18
|
- Do not delete old config backup files. Historical `.bak.*` files have no reliable ownership
|
|
19
19
|
marker and must be left untouched.
|
|
20
|
+
- The MCP status surface only checks the package policy and reports
|
|
21
|
+
`required_upgrade`, `update_available`, `current`, `unavailable`, or `skipped`.
|
|
22
|
+
It never runs `taptap-maker upgrade` by itself.
|
|
20
23
|
|
|
21
24
|
## Required Steps
|
|
22
25
|
|
|
23
|
-
1.
|
|
26
|
+
1. Read `maker://status`; if resources are unavailable, fall back to `maker_status_lite`.
|
|
27
|
+
If the `Maker MCP package update` section reports `required_upgrade`, explain the version reason
|
|
28
|
+
to the user first.
|
|
29
|
+
Do not run any upgrade command before that explanation and approval step.
|
|
30
|
+
2. Identify the current Maker project directory. Use `--target-dir` only when the directory is
|
|
24
31
|
confirmed to be a Maker project, which means it or one of its parents contains
|
|
25
32
|
`.maker-mcp/config.json`.
|
|
26
|
-
|
|
33
|
+
3. If the AI client has exactly one attached workspace and that workspace is the Maker project, use
|
|
27
34
|
that workspace as `<PROJECT_DIR>`. If there are multiple workspaces, or the current directory is
|
|
28
35
|
not clearly a Maker project, ask the user for the Maker project directory before using
|
|
29
36
|
`--target-dir`.
|
|
30
|
-
|
|
37
|
+
4. After the user approves the upgrade, run the current package upgrade command for the confirmed
|
|
38
|
+
project:
|
|
31
39
|
|
|
32
40
|
```bash
|
|
33
41
|
npx -y -p @taptap/maker taptap-maker upgrade --target-dir <PROJECT_DIR>
|
|
@@ -36,14 +44,26 @@ npx -y -p @taptap/maker taptap-maker upgrade --target-dir <PROJECT_DIR>
|
|
|
36
44
|
If the user only wants one client, pass `--ide codex`, `--ide cursor`, or `--ide claude`.
|
|
37
45
|
|
|
38
46
|
If the user only wants to refresh the machine-level MCP command and no Maker project directory is
|
|
39
|
-
confirmed,
|
|
40
|
-
|
|
47
|
+
confirmed, explain that this refresh will not update project `AGENTS.md`, then run
|
|
48
|
+
`npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after the user agrees.
|
|
41
49
|
|
|
42
|
-
|
|
50
|
+
5. Ask the user to restart/reconnect the AI client MCP session, or open a new AI conversation.
|
|
43
51
|
Current conversations usually do not hot-load a new MCP process or re-read `AGENTS.md`.
|
|
44
|
-
|
|
52
|
+
6. After restart/reconnect, verify by reading `maker://status`; if resources are unavailable, call
|
|
45
53
|
`maker_status_lite`.
|
|
46
54
|
|
|
55
|
+
## Status-Driven Upgrade Notes
|
|
56
|
+
|
|
57
|
+
- Trigger timing is limited to the startup asynchronous check and the 12-hour TTL lazy check from
|
|
58
|
+
`maker://status` / `maker_status_lite`.
|
|
59
|
+
- Business tools do not trigger version checks.
|
|
60
|
+
- The remote policy fields are `schema_version`, `latest`, `latest_beta`,
|
|
61
|
+
`minimum_supported`, `blacklist`, and `message`.
|
|
62
|
+
- `required_upgrade` means the local AI must explain the reason, ask the user for approval, and only
|
|
63
|
+
then run the appropriate upgrade command.
|
|
64
|
+
- After any upgrade, restart or reconnect the MCP session before trusting the new status, then
|
|
65
|
+
verify with `maker://status` or `maker_status_lite`.
|
|
66
|
+
|
|
47
67
|
## Expected Effects
|
|
48
68
|
|
|
49
69
|
`taptap-maker upgrade` performs current-directory upgrade work:
|