@taptap/maker 0.0.20 → 0.0.21-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.20",
3
+ "version": "0.0.21-beta.2",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",
@@ -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. Identify the current Maker project directory. Use `--target-dir` only when the directory is
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
- 2. If the AI client has exactly one attached workspace and that workspace is the Maker project, use
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
- 3. Run the current package upgrade command for the confirmed project:
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, run `npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after
40
- explaining that project `AGENTS.md` will not be updated.
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
- 4. Ask the user to restart/reconnect the AI client MCP session, or open a new AI conversation.
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
- 5. After restart/reconnect, verify by reading `maker://status`; if resources are unavailable, call
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: