From 3418be3d7b33d58fa0b6ce0c2ecba6b2acf5862c Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 6 Jul 2026 00:11:22 +0200 Subject: [PATCH] chore: move to @cozy-games/mnswpr --- AGENTS.md | 6 +++--- apps/mnswpr/README.md | 6 +++--- apps/mnswpr/main.js | 6 +++--- apps/mnswpr/package.json | 2 +- apps/mnswpr/scripts/export-legends.js | 2 +- docs/decisions/0001-package-boundary.md | 2 +- package.json | 2 +- packages/mnswpr/TUTORIAL.md | 6 +++--- packages/mnswpr/core/index.js | 2 +- packages/mnswpr/core/minesweeper/board.js | 2 +- .../docs/headless-core-and-client-design.md | 18 +++++++++--------- pnpm-lock.yaml | 6 +++--- scripts/publish-lib.js | 2 +- 13 files changed, 31 insertions(+), 31 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c35d9b7..2185952 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ Guidance for AI coding agents working in this repository. ## What this is -Classic Minesweeper as a vanilla web game — no framework, no TypeScript (JSDoc + `// @ts-check` only). Deployed at [mnswpr.com](https://mnswpr.com) (Netlify) and published to npm as `@ayo-run/mnswpr`. The game engine has **zero runtime dependencies**; only the website adds Firebase. +Classic Minesweeper as a vanilla web game — no framework, no TypeScript (JSDoc + `// @ts-check` only). Deployed at [mnswpr.com](https://mnswpr.com) (Netlify) and published to npm as `@cozy-games/mnswpr`. The game engine has **zero runtime dependencies**; only the website adds Firebase. **`mnswpr` is the main test app.** It's the reference app for the monorepo and the default target for local runs — `.claude/launch.json` launches it (`dev` on :5173, `preview` on :4173), and it's what you should build/run/preview when verifying changes to the shared packages or tooling. @@ -79,8 +79,8 @@ Node version: `.nvmrc` pins `lts/*`. This is the **Cozy Games** monorepo. Workspaces are declared in `pnpm-workspace.yaml` as `apps/*`, `packages/*`, and `sites/*`. `utils/` is now a real workspace package (`@cozy-games/utils`), imported by name — no more `../utils` relative paths. -- **`apps/mnswpr/`** — package `mnswpr`, `@ayo-run/mnswpr`'s host, the mnswpr.com website. Consumes the engine and leaderboard via `workspace:*` (`import mnswpr from '@ayo-run/mnswpr/mnswpr.js'`) and wires them together in `apps/mnswpr/main.js`. Owns its Firebase config (`firebase.json`, `firestore.rules`, `.firebaserc`) and app-specific scripts (`apps/mnswpr/scripts/`). A future app (e.g. sudoku) gets its own `apps//` and its `package.json` `name` is just the app name (``, unscoped) so it's addressable directly by name (`pnpm -F run