Repository navigation
feat(new-game): add mise new_game:scaffold generator (#479 pr1) - #678
Merged
Merged
Conversation
Stamps a compiling Packages/<Name>CoreKit + <Name>Kit + App/<Name>[E2ETests] + Project.swift wiring by copying Minesweeper at run time and renaming Minesweeper/minesweeper tokens (OQ-1 Option A, OQ-2 run-time template source, per owner decision recorded on #479). Project.swift gets a marker-delimited generated block, anchored on stable surrounding text rather than line numbers. PR1 keeps the copied Minesweeper gameplay (engine/session/board UI), renamed, as the placeholder rather than a from-scratch stub — the RFC's explicitly sanctioned fallback given MinesweeperUI's ~25-file surface. Snapshot-baseline test files are dropped (no baselines ship; RFC wants an empty baseline dir) and PrivateCKConfig's `.minesweeper` shorthand is inlined as a literal so the generated composition never needs a shared-package edit. Verified end-to-end with a throwaway `Zephyr` game: swift build + swift test green for both packages (87 + 146 tests), tuist generate + xcodebuild (iOS Simulator, Debug) green, scan:secrets/scan:hygiene green with the generated tree staged. Generated output removed before commit (cp-aside Project.swift restore, no destructive git). Co-Authored-By: Claude Fable 5 <[email protected]>
The comment claimed word-boundary-aware matching; the mechanism is a literal substring replace, safe because the token has no compound collisions in the current corpus (CR-verified). Say what it is. Co-Authored-By: Claude Fable 5 <[email protected]>
15 tasks
Closed
wei18
added a commit
that referenced
this pull request
Jul 6, 2026
- skill count 8 -> 9 in .claude/skills/README.md + CLAUDE.md (screen- contract-spec landed in #684 after the last count fix-up #666) - mise-task-operations index: add the new_game:scaffold row (task shipped in #678, row was never added) - SDD-006 RFC heading: "three existing games" -> two (Tiles2048 removed 2026-06-29) - resume-seam-design spec: minesweeper.ckdb is committed, not "absent from the repo" Remaining #668 actionable (elapsed(_:) duplication) is tracked as #710. refs #668 Co-authored-by: Claude Fable 5 <[email protected]>
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR1 of the SDD-006 new-game scaffold epic (#479), per the OQ decisions recorded on the issue (Option A generator · runtime-from-Minesweeper template · literal token map · placeholder icon).
mise run new_game:scaffold <Name>stamps a compiling, launchable game-N skeleton: copies MinesweeperCoreKit/MinesweeperKit/App shell/E2E target/ckdb at run time, renames tokens (path + content, binary-safe), drops snapshot baselines (empty baseline dir per RFC), inlines the per-gamePrivateCKConfig, and patches Project.swift via four marker-delimited, anchor-asserted blocks (all-or-nothing write — cannot half-patch). Refuses existing destinations; never touches git state. Real IDs stay out ($()xcconfig macros preserved); PR2/PR3 gaps (NEXT-STEPS checklist, ASCRegister GC template, ck:schema/tf:upload/scan:l10n app-name widening) printed as TODO(#479 PR2) and listed on the issue.Acceptance evidence (RFC §7): throwaway
Zephyrrun — ZephyrCoreKit build + 87/87, ZephyrKit build + 146/146,tuist install && generateclean,xcodebuild -scheme Zephyrsim BUILD SUCCEEDED, scan:secrets/hygiene pass; Leader launch smoke: app boots on iPhone 17 Pro sim to a live Home ("Zephyr", Daily card, UMP consent flow) — screenshot eyeballed. Dual CR APPROVE ×2 (sonnet ran the script end-to-end in a throwaway clone); round-1 cosmetic nit (rename-mechanism comment) fixed in de3cca2.Refs #479 (PR1 of 4 — issue stays open).
🤖 Generated with Claude Code