@taptap/maker 0.0.37-beta.9 → 0.0.38-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.
@@ -88,8 +88,8 @@ active plugin's marketplace instead of installing or upgrading a standalone Make
88
88
  | status / is Maker ready | Read `maker://status`, call `maker_status_lite` if resources are unavailable, then follow `AGENTS.md` and `Maker remote sync` hints if present. |
89
89
  | upgrade Maker MCP / old project policy | Follow the active distribution's update skill. Plugin users update through the active plugin's marketplace; standalone MCP users run `taptap-maker upgrade` for the current project only. |
90
90
  | submit / commit / push to Maker | Inspect local Git state, summarize changed files, then call `maker_build_current_directory` unless blocked. |
91
- | pull / update from remote | Inspect local changes first; if dirty, explain options before pulling. |
92
- | conflict / merge failed | Explain why the conflict happened, list conflict files, inspect conflict hunks, propose a resolution plan, and ask before editing. |
91
+ | pull / update from remote | Run `taptap-maker git sync --target-dir <PROJECT_DIR>`. It fetches, then fast-forwards or merges `origin/main`; on conflicts it aborts the merge and lists `conflictFiles`. |
92
+ | conflict / merge failed | Read `conflictFiles` from the sync result. Compare each local file with `origin/main`, explain both sides, propose a resolution, and ask before editing. Do not look for conflict markers. |
93
93
  | build / submit / push / explicitly remote Web preview | Use `maker_build_current_directory`; preserve its original authorization and remote log watcher. |
94
94
  | local preview / refresh preview / stop preview | Follow Local Window Preview below; use CLI with explicit project path, never remote build. |
95
95
  | finish a related code-edit batch | Query real local preview status; automatically refresh only a live session, then collect evidence. |
@@ -386,9 +386,27 @@ Maker project submit/build work. Do not run generic Git commit/push helpers as a
386
386
  the Maker MCP tool.
387
387
 
388
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 automatically fast-forwards before
390
- committing. It stops when history is diverged, the branch is not `main`, remote sync cannot be
391
- verified, or fast-forward would overwrite local changes.
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.
392
410
 
393
411
  The root `.gitignore` is a required Maker project file. If it changes after binding or dev-kit
394
412
  updates, include it with the game changes and mention it in the submit summary. Do not omit it from
@@ -643,7 +661,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
643
661
  Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
644
662
 
645
663
  ```text
646
- npx -y --package @taptap/maker@0.0.37-beta.9 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
664
+ npx -y --package @taptap/maker@0.0.38-beta.1 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
647
665
  ```
648
666
 
649
667
  Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
@@ -941,13 +959,12 @@ before routine work; use `maker_status_lite` with `detail: true` before explicit
941
959
  - For an explicit submit/build request, call `maker_build_current_directory` directly when status is
942
960
  `needs_pull`. The tool attempts `git merge --ff-only origin/main` before creating the local commit.
943
961
  If Git refuses because remote files overlap local edits, the tool stops and preserves the workspace.
944
- - `needs_pull` with `local_changes: no`: tell the user the workspace is clean and the local AI can
945
- run `git pull --ff-only origin main` before editing.
946
- - `needs_pull` with `local_changes: yes`: do not pull immediately. Explain that remote changes exist
947
- and local edits are present; ask the local AI to inspect `git status` and help the user choose
948
- submit current changes, stash then pull and restore, or cancel.
949
- - `diverged`: do not push or blindly pull. Ask the local AI to plan a rebase or merge of current
950
- Maker remote changes.
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.
951
968
  - `branch_not_allowed`: Maker only accepts `main`; switch/migrate local commits to `main` before
952
969
  build or submit.
953
970
  - `remote_unavailable`: follow the failure classification and retry later only for temporary
@@ -987,9 +1004,11 @@ Use `maker_build_current_directory` for this path. Do not use generic Git task-i
987
1004
  branch-creation, or PR rules inside Maker project repositories.
988
1005
 
989
1006
  `maker_build_current_directory` owns the safety gate before commit/push. When local `main` is only
990
- behind Maker remote, it automatically fast-forwards before creating a local commit. It stops before
991
- commit and push when history is diverged, the branch is not `main`, remote sync cannot be verified,
992
- or fast-forward would overwrite local changes. Do not work around this by creating a new branch,
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,
993
1012
  requesting a task id, running generic Git commit/push, or opening a PR/MR.
994
1013
 
995
1014
  If `.gitignore` changed after Maker binding or dev-kit update, include it in the submit summary.
@@ -1037,7 +1056,9 @@ MCP builds the committed remote version only and does not auto-open Maker pages.
1037
1056
 
1038
1057
  For push failures, use the returned `classification`, `retryable`, `retry_reason`, and
1039
1058
  `retry_attempts` fields. Temporary 5xx/network/timeout failures may be retried with the Maker build
1040
- tool; `remote_rejected` means remote updates require pull/rebase first; `auth` means refreshing PAT;
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;
1041
1062
  `branch_not_allowed` means Maker remote only accepts `main`; `forbidden_path` means the remote
1042
1063
  pre-receive hook rejected one or more paths/directories and the forbidden pattern from stderr must
1043
1064
  be removed from the unpushed commit before retrying.
@@ -1047,8 +1068,11 @@ When a Maker tool output contains `push_recovery`, follow it exactly:
1047
1068
  - Tell the user the local commit is preserved but not yet on Maker remote.
1048
1069
  - Do not ask for permission to run a generic `git push`.
1049
1070
  - Retry with `maker_build_current_directory` for submit and build requests.
1050
- - If the failure is `remote_rejected`, ask before pull/rebase; do not create a new branch or PR.
1051
- - If the failure is `branch_not_allowed`, do not pull/rebase. Tell the user Maker only accepts
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
1052
1076
  `main`, switch back to `main`, cherry-pick the preserved local commit there, then retry.
1053
1077
  - If the failure is `forbidden_path`, do not refresh PAT. Read the forbidden pattern in stderr,
1054
1078
  remove those paths from the unpushed commit while keeping local files, then retry after
@@ -1056,42 +1080,27 @@ When a Maker tool output contains `push_recovery`, follow it exactly:
1056
1080
 
1057
1081
  ## Pull And Conflict Handling
1058
1082
 
1059
- Before pulling:
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.
1060
1086
 
1061
- 1. Run `git status --short --branch`.
1062
- 2. If the workspace is dirty, explain that pulling can mix remote changes with local edits.
1063
- 3. Offer safe options:
1064
- - submit current local changes first
1065
- - stash local changes, pull, then restore
1066
- - cancel and let the user review local files
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.
1067
1090
 
1068
- If conflicts occur:
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.
1069
1098
 
1070
- 1. Run `git status --short`.
1071
- 2. Identify conflicted files (`UU`, `AA`, `DU`, `UD`, or unmerged paths).
1072
- 3. Show the user the conflict files and explain why the conflict happened.
1073
- 4. Inspect conflict markers in each file.
1074
- 5. Explain the competing versions in plain language.
1075
- 6. Propose a resolution strategy.
1076
- 7. Ask for confirmation before editing files.
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.
1077
1102
 
1078
- When showing conflict content, keep excerpts small and focused around conflict markers:
1079
-
1080
- ```text
1081
- <<<<<<<
1082
- local version
1083
- =======
1084
- remote version
1085
- >>>>>>>
1086
- ```
1087
-
1088
- Do not hide unresolved conflicts. After editing, run:
1089
-
1090
- ```bash
1091
- git status --short
1092
- ```
1093
-
1094
- Only submit after conflicts are fully resolved.
1103
+ Do not hide unresolved conflicts. Only submit after the listed files are resolved and committed.
1095
1104
 
1096
1105
  ## User Communication
1097
1106