[tauri] AtriumManifest: Merge domi-app.toml beside rosea-shell.exe for Atrium Domi, manifest only, no door (PR #5)
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
|||||||
| Feature | Phase | Status | Analysis | Review |
|
| Feature | Phase | Status | Analysis | Review |
|
||||||
|:--|:--|:--|:--|:--|
|
|:--|:--|:--|:--|:--|
|
||||||
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
|
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
|
||||||
| Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan only (2026-11-22); no code until Atrium's `APP_CONTRACT.md` v0 | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md) |
|
| Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan merged (f4efc9e); step 1 = `domi-app.toml` alone (`feature/atrium-door`), the door skipped by Mark's ruling | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md), [feature-atrium-door.md](reviews/feature-atrium-door.md) |
|
||||||
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
|
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
|
||||||
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
|
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
|
||||||
| Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.md) |
|
| Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.md) |
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
|||||||
|
|
||||||
| Id | Gap | Status / evidence |
|
| Id | Gap | Status / evidence |
|
||||||
|:--|:--|:--|
|
|:--|:--|:--|
|
||||||
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | Open, **plan only** (2026-11-22). Inventory: no Tauri invoke or listen, one database (`rosea` IndexedDB), no outgoing request. Step 1 waits for Atrium's `APP_CONTRACT.md` v0, and the later steps wait for their Atrium Day. R1 (keep the origin) and R4 (Rust in the shell) are Mark's. |
|
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | **Narrowed 2026-11-22** (`feature/atrium-door`): step 1 is the `domi-app.toml` alone (contract v0.1 §8 3e), and Atrium's own parser accepts it; 27 hostile fixtures are refused with the parser's codes. The door is skipped by Mark's ruling (manifest only, no rule changes). Earlier: open, **plan only** (2026-11-22). Inventory: no Tauri invoke or listen, one database (`rosea` IndexedDB), no outgoing request. Step 1 waits for Atrium's `APP_CONTRACT.md` v0, and the later steps wait for their Atrium Day. R1 (keep the origin) and R4 (Rust in the shell) are Mark's. |
|
||||||
|
|
||||||
## Phase 6 — Release
|
## Phase 6 — Release
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Atrium adoption: making Rosea Domi "Atrium-ready" (plan)
|
# Atrium adoption: making Rosea Domi "Atrium-ready" (plan)
|
||||||
|
|
||||||
Status: **plan only**, `docs/atrium-adoption`, 2026-11-22. No code changes yet. The brief is Mark's, passed on by the Aula
|
Status: the plan was merged as f4efc9e (PR mnovak/Rosea#4). **Step 1, part A is built** on `feature/atrium-door`, 2026-11-22: the `domi-app.toml` (§8). Part B, the door and the fallback, is skipped by Mark's ruling: manifest only, no rule changes. The brief is Mark's, passed on by the Aula
|
||||||
session: prepare Rosea for Atrium Domi. The source is `F:\Akce\Atrium-plan\ROADMAP.md` §1–2 and Appendix A. Rules for when each step may start:
|
session: prepare Rosea for Atrium Domi. The source is `F:\Akce\Atrium-plan\ROADMAP.md` §1–2 and Appendix A. Rules for when each step may start:
|
||||||
|
|
||||||
- Step 1 code waits for Atrium's `docs/APP_CONTRACT.md` v0 on its `main`.
|
- Step 1 code waits for Atrium's `docs/APP_CONTRACT.md` v0 on its `main`.
|
||||||
@@ -93,11 +93,11 @@ none outside the origin. The offline suite already comes close.
|
|||||||
| `id` | `rosea` | the `@rosea/*` scope, `domi-rosea://` |
|
| `id` | `rosea` | the `@rosea/*` scope, `domi-rosea://` |
|
||||||
| `name` | `Rosea Domi` | `packages/schema/src/constants.ts`; *Domi* never alone |
|
| `name` | `Rosea Domi` | `packages/schema/src/constants.ts`; *Domi* never alone |
|
||||||
| `label` | `Rose` *(judgment: a plain word, as Appendix A asks)* | — |
|
| `label` | `Rose` *(judgment: a plain word, as Appendix A asks)* | — |
|
||||||
| `accent` | `#b4485e` (`--rose`, light); on the dark Domi theme `#e8899b` (`--rose`, dark) | `packages/ui/src/tokens.css`; the web manifest's `theme_color` |
|
| `accent` | `#e8899b`: `--rose` on the dark theme. Atrium Domi's window is dark, and its catalogue already names this colour for Rosea (`atrium-registry` `catalogue.rs`). The light `--rose` is `#b4485e` | `packages/ui/src/tokens.css` |
|
||||||
| `icon` | `apps/rosea/public/icon.svg`, a **placeholder** (form only). The real icon comes through `docs/ART.md` | the shell's icons are made from it at build time |
|
| `icon` | `domi-icon.png`: the shell's 256 px icon, `icons/128x128@2x.png`, made from `apps/rosea/public/icon.svg` at build time. A **placeholder** (form only); the real icon comes through `docs/ART.md` | `tauri.windows.conf.json` `bundle.resources` |
|
||||||
| `ui_bundle` | `apps/rosea/dist-tauri/` (base `/`, no worker, no manifest) | §3, R1 |
|
| `ui_bundle` | `apps/rosea/dist-tauri/` (base `/`, no worker, no manifest) | §3, R1 |
|
||||||
| `hostable` | `true`, with the origin rule in R1 | — |
|
| `hostable` | `true`, with the origin rule in R1 | — |
|
||||||
| `free` | **Mark's to say** | — |
|
| `free` | `true`: Mark's rule, *`free = true` for all apps for now* (via the Aula session, 2026-11-22). Rosea needs no licence anyway (APP_CONTRACT §2.2) | — |
|
||||||
| `capabilities` | `rosea.backup.snapshot`, `rosea.ui.*` (hosted), later `rosea.export.open`. **No** `rosea.atrium.badge` | §5 |
|
| `capabilities` | `rosea.backup.snapshot`, `rosea.ui.*` (hosted), later `rosea.export.open`. **No** `rosea.atrium.badge` | §5 |
|
||||||
|
|
||||||
## 3. Technical architecture (as planned)
|
## 3. Technical architecture (as planned)
|
||||||
@@ -137,7 +137,7 @@ and the PWA stays whole without it.
|
|||||||
| R4 | **Mark decides:** the shell gains Rust code and a local named-pipe client, the first code beyond *a window*. Step 4 needs one page↔shell channel: one Tauri command, or `eval` plus an event, granted only to Rosea's own origin. | This changes CLAUDE.md §2 (*no Tauri command, no plugin*). The pipe is local, not a network, but it is new surface. It is reviewed like a plugin, for network access. |
|
| R4 | **Mark decides:** the shell gains Rust code and a local named-pipe client, the first code beyond *a window*. Step 4 needs one page↔shell channel: one Tauri command, or `eval` plus an event, granted only to Rosea's own origin. | This changes CLAUDE.md §2 (*no Tauri command, no plugin*). The pipe is local, not a network, but it is new surface. It is reviewed like a plugin, for network access. |
|
||||||
| R5 | **No badge, and *today* only if Mark wants it.** If there is a `rosea.atrium.today` at all, it is the real sunset time (*points beyond the screen*). It never mentions the rose's state. | A badge is a count, and a count about her waiting is guilt with a ribbon (CLAUDE.md §8). |
|
| R5 | **No badge, and *today* only if Mark wants it.** If there is a `rosea.atrium.today` at all, it is the real sunset time (*points beyond the screen*). It never mentions the rose's state. | A badge is a count, and a count about her waiting is guilt with a ribbon (CLAUDE.md §8). |
|
||||||
| R6 | **Export (step 7) is the `rosea-rose` JSON**, an open format, with a README line. | It exists already. |
|
| R6 | **Export (step 7) is the `rosea-rose` JSON**, an open format, with a README line. | It exists already. |
|
||||||
| R7 | **The name gains a fifth place** (`domi-app.toml`). The shell's test holds it equal to the constants, as it does for `tauri.conf.json`. | Renaming stays one commit (CLAUDE.md, header). The list in CLAUDE.md needs that line; it is the author's file. |
|
| R7 | **The name gains no new place.** `domi-app.toml` is made before each desktop build from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and the game's version (`scripts/domi-app.ts`), and it is never committed. | Renaming stays one commit (CLAUDE.md, header), and Fabrica's four version files stay four. |
|
||||||
|
|
||||||
## 4. Risk analysis
|
## 4. Risk analysis
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ Only the steps whose Atrium Day has landed may start, and Aula says when.
|
|||||||
|
|
||||||
| Step | Atrium Day | Rosea's work | State |
|
| Step | Atrium Day | Rosea's work | State |
|
||||||
|:--|:--|:--|:--|
|
|:--|:--|:--|:--|
|
||||||
| 1 Manifest + service door | Day 1 + `APP_CONTRACT.md` v0 | `domi-app.toml` (§2.4), the pipe client in the shell, R7's test | waits for APP_CONTRACT v0 |
|
| 1 Manifest + service door | Day 1 + `APP_CONTRACT.md` v0 | A: `domi-app.toml` (§2.4, §8). B: the door client and the fallback | **A built** (`feature/atrium-door`); **B skipped** by Mark's ruling (§8) |
|
||||||
| 2 Bridge | Day 4 | nothing to replace (§2.1); a guard test | waits |
|
| 2 Bridge | Day 4 | nothing to replace (§2.1); a guard test | waits |
|
||||||
| 3 Hosted mode | Day 4 | `--hosted`, `rosea.ui.*`, R1 | waits; R1 needs Atrium's answer |
|
| 3 Hosted mode | Day 4 | `--hosted`, `rosea.ui.*`, R1 | waits; R1 needs Atrium's answer |
|
||||||
| 4 Backup snapshot | Day 3 | R2, R3, R4; a test: a snapshot taken while she is watered restores to a consistent, additive state | waits; R4 is Mark's |
|
| 4 Backup snapshot | Day 3 | R2, R3, R4; a test: a snapshot taken while she is watered restores to a consistent, additive state | waits; R4 is Mark's |
|
||||||
@@ -187,3 +187,42 @@ Visual changes (the room's look, `@domi/ui`) wait for `@domi/ui`.
|
|||||||
| The game imports no `@tauri-apps/api` | unit |
|
| The game imports no `@tauri-apps/api` | unit |
|
||||||
| No request leaves the origin | e2e on the built app |
|
| No request leaves the origin | e2e on the built app |
|
||||||
| The pipe client refuses a peer without Atrium's key | integration (`canalis-testkit`) |
|
| The pipe client refuses a peer without Atrium's key | integration (`canalis-testkit`) |
|
||||||
|
|
||||||
|
## 8. Step 1 (APP_CONTRACT v0.1, Atrium main 25bed39)
|
||||||
|
|
||||||
|
Contract v0.1 §2.4 gives Rosea `id = "rosea"`, `label = "Rose"`, `accent = "#e8899b"`, and the file uses exactly these.
|
||||||
|
§8 point 3e makes the manifest alone *the lightest step 1* for an app with no IPC, and point 5 records that
|
||||||
|
players without Custos skip the door. Mark approved a public mirror of `atrium-door`'s client side (via the Aula
|
||||||
|
session), so a later door would not need the private repository.
|
||||||
|
|
||||||
|
### A, built: `domi-app.toml`
|
||||||
|
|
||||||
|
- `apps/rosea-tauri/scripts/domi-app.ts` writes `src-tauri/atrium/domi-app.toml` (git-ignored) before `tauri dev` and
|
||||||
|
`tauri build`. `ATRIUM` holds what APP_CONTRACT §7 says may move (`needs`, the icon).
|
||||||
|
- `tauri.windows.conf.json` `bundle.resources` puts it and `domi-icon.png` next to `rosea-shell.exe`, in the folder
|
||||||
|
that the per-user uninstall entry's `DisplayIcon` names (NSIS `installMode: currentUser`). It is Windows only:
|
||||||
|
the shared config does not carry it, so it is not in the APK.
|
||||||
|
- `test/domi-app.test.ts` checks the file against `test/domi-app-rules.ts`, which holds §2's rules in the parser's
|
||||||
|
order, with 27 hostile fixtures in `test/fixtures/domi-app/`, each named `<field>.<reason>`.
|
||||||
|
- The real parser (`atrium_registry::parse_manifest`, Fundamentum main) was run once over the shipped file and
|
||||||
|
every fixture. See the review for the result.
|
||||||
|
|
||||||
|
### B, skipped: the door and the fallback (R4)
|
||||||
|
|
||||||
|
**Mark's ruling (via the Aula session, 2026-11-22):** *manifest only for now, no rule changes.* CLAUDE.md §2 and
|
||||||
|
§4 stay as they are, and the door is skipped. R1, the no-Custos players and the public-repo/private-crates
|
||||||
|
question are with the Atrium session for its contract. What follows is the reason, kept for when he reopens it.
|
||||||
|
|
||||||
|
APP_CONTRACT §4–5, read against Rosea's CLAUDE.md:
|
||||||
|
|
||||||
|
| The contract asks | Rosea's CLAUDE.md says |
|
||||||
|
|:--|:--|
|
||||||
|
| Rust code in the shell: `atrium_door::DoorClient`, `canalis` and `atrium-door` from Git (`canalis-v1.2.0`), from the **private** Fundamentum repo | §2: the shell is *a window and nothing else*. The repo is **public**, and a public checkout could no longer build the desktop app |
|
||||||
|
| the app publishes its signed Canalis manifest to `%LOCALAPPDATA%\Domi\canalis\manifests\rosea.json` at every start | §4: *the Rust side writes no file of its own* |
|
||||||
|
| a Tessera subkey and a Canalis key from Custos | §1: *identity is a locally generated keypair*. Players have no Custos, so the door is skipped for every player (the contract's *NoCustos* path). Only the author's PC would ever say hello |
|
||||||
|
| *"Atrium Domi is not running"* with **Start**, shown in the app | §2: no Tauri command and no `@tauri-apps/api` in the game. Showing it in the garden needs a shell→page channel. Starting another program from Rosea is new too |
|
||||||
|
|
||||||
|
So B is a decision for the author, made in this repository's own session, as with G6.1. Once he decides, B is one
|
||||||
|
module in the shell (`src-tauri/src/atrium.rs`): the hello off the UI thread, and the `NotInstalled` and
|
||||||
|
`NoCustos` paths saying nothing. The fallback would be a quiet line, never a wait before the garden.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# Review: `feature/atrium-door` (2026-11-22)
|
||||||
|
|
||||||
|
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md) §8. This branch implements step 1 part
|
||||||
|
A of Atrium's Appendix A, the static `domi-app.toml`, under Atrium docs/APP_CONTRACT.md v0.1. Part B, the door, is
|
||||||
|
skipped by Mark's ruling: *manifest only for now, no rule changes* (via the Aula session).
|
||||||
|
|
||||||
|
## What changed
|
||||||
|
|
||||||
|
- `apps/rosea-tauri/scripts/domi-app.ts` (new): builds the manifest from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and
|
||||||
|
the game's version, and writes `src-tauri/atrium/domi-app.toml`. The file is git-ignored.
|
||||||
|
- `apps/rosea-tauri/package.json`: `dev` and `build:desktop` run it before Tauri.
|
||||||
|
- `apps/rosea-tauri/src-tauri/tauri.windows.conf.json`: `bundle.resources` places `domi-app.toml` and
|
||||||
|
`domi-icon.png` next to the `.exe`.
|
||||||
|
- `apps/rosea-tauri/test/domi-app-rules.ts`, `domi-app.test.ts` and 27 fixtures in `test/fixtures/domi-app/`
|
||||||
|
(all new).
|
||||||
|
- `.gitignore`, and the docs: the plan's §8, G-AT1, FEATURES and the handover.
|
||||||
|
|
||||||
|
No game code, no Rust and no CLAUDE.md change. The PWA and the APK are unchanged: the resources are Windows only.
|
||||||
|
|
||||||
|
## Evidence
|
||||||
|
|
||||||
|
- **The shipped file is valid and agrees with Atrium's own parser.** Fundamentum `origin/main` (fbafd7a) was
|
||||||
|
exported with `git archive` to `D:\build\rosea\atrium-check`. Nothing in Fundamentum was touched. A throwaway
|
||||||
|
crate there ran `atrium_registry::parse_manifest` over Rosea's file and the 27 fixtures:
|
||||||
|
- the shipped file: `ok`;
|
||||||
|
- every fixture: refused with the same `field.reason` that its name and Rosea's test expect (28 of 28 agree).
|
||||||
|
- **The test is honest.** Drill: with the `..` rule removed from `domi-app-rules.ts`, exactly
|
||||||
|
`icon.path_dotdot.toml` failed (33 passed, 1 failed). The file was restored by copy, and `git status` was checked.
|
||||||
|
- **Placement:** see *Installer* below.
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
1. **The rules are a second copy of the parser's.** A change in Atrium's parser would not fail Rosea's test.
|
||||||
|
*Accepted, with a guard:* the agreement was measured against the real parser, and every fixture is named by the
|
||||||
|
parser's reason code. The contract now offers `atrium-registry` at the tag `atrium-v0.1.0` as a dev dependency.
|
||||||
|
That would be a Rust test reaching the private repository from a public one, so it is not taken while Mark's
|
||||||
|
ruling holds.
|
||||||
|
2. **The TOML reader is narrower than TOML.** A valid file using, for example, a quoted key would be
|
||||||
|
`not_toml` here and accepted by the parser. *Accepted:* it only ever reads Rosea's own file and these fixtures,
|
||||||
|
which are within its subset. Being stricter is the safe direction.
|
||||||
|
3. **`domi-app.toml` must not add a place for the name** (CLAUDE.md header). *Fixed by design:* the file is built
|
||||||
|
from the constants and never committed, so a rename changes no extra file.
|
||||||
|
4. **The version must track Fabrica's bump.** It is read from `apps/rosea/package.json` at build time, which is one
|
||||||
|
of the four files `check-version.mjs` names. No fifth version file was added.
|
||||||
|
5. **A value could break out of its string.** *Fixed:* quotes, backslashes and control characters are escaped.
|
||||||
|
A test plants a label carrying a line break and `free = false`, and gets `label control_char` with `free` still
|
||||||
|
`true`.
|
||||||
|
6. **The accent is the dark-theme `--rose`, `#e8899b`, not the light `#b4485e`.** *Kept:* contract v0.1 §2.4 gives
|
||||||
|
Rosea this colour, and Atrium's window is dark.
|
||||||
|
7. **The catalogue calls her `Rosea`, but the product is always *Rosea Domi* in public** (CLAUDE.md, header).
|
||||||
|
The manifest says `Rosea Domi`, and an accepted manifest's name wins in the grid. *For the Atrium session:* the
|
||||||
|
catalogue's name shows only when the manifest is missing.
|
||||||
|
8. **No door means later Days ask again** (contract §8 3e). *Stated* in the handover, as 3e asks.
|
||||||
|
9. **The icon is the placeholder.** *Unchanged* (G-T9). The real one comes through `docs/ART.md`.
|
||||||
|
|
||||||
|
## Soul, privacy, reachability, offline
|
||||||
|
|
||||||
|
- **Soul:** nothing the player sees changes. Atrium's grid shows a name, a label and a colour.
|
||||||
|
- **Privacy:** the file holds the product's name and version only. It names no person, no town and no key. Rosea
|
||||||
|
reads nothing of Atrium's and sends nothing.
|
||||||
|
- **Reachability:** none. No IPC was added.
|
||||||
|
- **Offline:** unchanged.
|
||||||
|
|
||||||
|
## Installer
|
||||||
|
|
||||||
|
- `pnpm tauri:build` was run with Cargo's target and TEMP under `D:\build\rosea`. It produced
|
||||||
|
`Rosea Domi_0.1.0_x64-setup.exe` (1.31 MiB, sha256 `63856129ea0a69f1…`).
|
||||||
|
- The wrapper script reported exit 1, because PowerShell's `ErrorActionPreference = Stop` treats Tauri's first
|
||||||
|
stderr `Info` line as an error.
|
||||||
|
- The build itself finished: the installer and `rosea-shell.exe` both date from 23:09.
|
||||||
|
- The generated `installer.nsi` writes, in `Section Install` with `SetOutPath $INSTDIR`:
|
||||||
|
- `File "/oname=domi-app.toml"` and `File "/oname=domi-icon.png"`, beside `File "${MAINBINARYSRCPATH}"`
|
||||||
|
(`MAINBINARYNAME` is `rosea-shell`);
|
||||||
|
- `DisplayIcon` = `$INSTDIR\rosea-shell.exe` under the per-user key (`INSTALLMODE currentUser`). So the manifest
|
||||||
|
sits exactly in the folder that APP_CONTRACT §3 says Atrium reads.
|
||||||
|
- The uninstaller deletes both files.
|
||||||
|
- `7z l` on the installer lists `rosea-shell.exe`, `domi-app.toml` (189 bytes) and `domi-icon.png`, and nothing
|
||||||
|
else of Rosea's.
|
||||||
|
- Extracted with `7z e` into the scratchpad, never installed:
|
||||||
|
- the shipped `domi-app.toml` is the file above, and Atrium's parser says `ok`;
|
||||||
|
- `domi-icon.png` starts with the PNG signature and is 4,698 bytes, under the 1 MiB cap.
|
||||||
|
|
||||||
|
## Gates (this branch, 2026-11-22)
|
||||||
|
|
||||||
|
- `pnpm test`: **642 passed**. By package: cpu-guard 13, identity 5, schema 19, content 88, storage 70,
|
||||||
|
art-prep 80, release 8, engine 179, tauri 92 (58 before + 34 new), ui 88.
|
||||||
|
- The first full run had `@rosea/tauri` fail under turbo, though all its files reported passing. It did not
|
||||||
|
happen again: the package's own run and a second full run were both green. *Not explained*, and stated here.
|
||||||
|
- `pnpm lint`: clean, after adding `.fabrica/runs/**` to the ESLint ignores. Fabrica's git-ignored run records
|
||||||
|
carry its own `reporter.cjs`, which ESLint was reading (six errors, none in Rosea's code).
|
||||||
|
- `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems. `pnpm validate:library`: 13 of 13 fixtures rejected.
|
||||||
|
- **Not rerun:** `test:e2e` and `test:offline`. Nothing the browser runs changed: the game is the same, and only
|
||||||
|
the Windows bundle gains two files. `fabrica artifex check` was also not rerun, since `.fabrica/` is unchanged.
|
||||||
|
|
||||||
|
## Not verified
|
||||||
|
|
||||||
|
- Atrium Domi showing Rosea in its grid: that needs an installed Rosea and an installed Atrium Domi on this PC. The
|
||||||
|
installer writes the real HKCU uninstall entry (as G-F4), so it was not run.
|
||||||
@@ -37,6 +37,8 @@ packages/schema/src/generated/
|
|||||||
dist-tauri/
|
dist-tauri/
|
||||||
apps/rosea-tauri/src-tauri/gen/
|
apps/rosea-tauri/src-tauri/gen/
|
||||||
apps/rosea-tauri/src-tauri/icons/
|
apps/rosea-tauri/src-tauri/icons/
|
||||||
|
# The domi-app.toml for Atrium Domi, made from the name and version before each desktop build (atrium-adoption.md)
|
||||||
|
apps/rosea-tauri/src-tauri/atrium/
|
||||||
|
|
||||||
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
|
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
|
||||||
e2e/aula/
|
e2e/aula/
|
||||||
|
|||||||
+12
-1
@@ -2,7 +2,18 @@
|
|||||||
|
|
||||||
Rewritten at the end of each session (CLAUDE.md §5.1).
|
Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||||
|
|
||||||
## Latest — 2026-11-22: the Atrium Domi adoption plan (plan only)
|
## Latest — 2026-11-22: Atrium step 1, the manifest alone
|
||||||
|
|
||||||
|
- **`feature/atrium-door`** ships a `domi-app.toml` next to `rosea-shell.exe` (Windows only):
|
||||||
|
- the values are `id rosea`, `name Rosea Domi`, `label Rose`, accent `#e8899b`, `free = true`, `hostable = false`;
|
||||||
|
- it is built from the name constants and the game's version, and never committed;
|
||||||
|
- Atrium's own parser accepts it, and refuses 27 hostile fixtures with the same codes as Rosea's test.
|
||||||
|
- Review: [`.agents/reviews/feature-atrium-door.md`](.agents/reviews/feature-atrium-door.md).
|
||||||
|
- **No door** (contract v0.1 §8 3e). By Mark's ruling, CLAUDE.md §2 (*a window and nothing else*) and §4 (*the Rust
|
||||||
|
side writes no file*) stand. Rosea makes no Canalis call, and Atrium Domi finds her by her uninstall entry and
|
||||||
|
this file. Later Atrium Days (audit, updates, backup, today) will ask again for the door.
|
||||||
|
|
||||||
|
## Earlier — 2026-11-22: the Atrium Domi adoption plan (plan only)
|
||||||
|
|
||||||
- **`docs/atrium-adoption`**: [`.agents/features/atrium-adoption.md`](.agents/features/atrium-adoption.md) has the
|
- **`docs/atrium-adoption`**: [`.agents/features/atrium-adoption.md`](.agents/features/atrium-adoption.md) has the
|
||||||
inventory Atrium's Appendix A asks for:
|
inventory Atrium's Appendix A asks for:
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.",
|
"description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsx scripts/icons.ts && tauri dev",
|
"dev": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri dev",
|
||||||
"build:desktop": "tsx scripts/icons.ts && tauri build",
|
"build:desktop": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri build",
|
||||||
"build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify",
|
"build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify",
|
||||||
"build:android-release": "tsx scripts/android.ts prepare && tauri android build --apk --target aarch64 && tsx scripts/android.ts verify src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk",
|
"build:android-release": "tsx scripts/android.ts prepare && tauri android build --apk --target aarch64 && tsx scripts/android.ts verify src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk",
|
||||||
"sign:apk": "tsx scripts/sign-apk.ts",
|
"sign:apk": "tsx scripts/sign-apk.ts",
|
||||||
|
|||||||
@@ -0,0 +1,96 @@
|
|||||||
|
/**
|
||||||
|
* The `domi-app.toml` that lets Atrium Domi show Rosea Domi in its grid (Atrium docs/APP_CONTRACT.md v0, §2–3;
|
||||||
|
* .agents/features/atrium-adoption.md). It is made before every desktop build from the name constants and the game's
|
||||||
|
* version, so the name stays in its three places (CLAUDE.md, header) and the version in Fabrica's four files
|
||||||
|
* (scripts/check-version.mjs). It is build output, never committed. `tauri.windows.conf.json` puts it next to the
|
||||||
|
* `.exe`, with the icon it names.
|
||||||
|
*
|
||||||
|
* tsx scripts/domi-app.ts writes src-tauri/atrium/domi-app.toml
|
||||||
|
*
|
||||||
|
* This is a static file only. Rosea reads nothing of Atrium's and calls nothing; the door (APP_CONTRACT §4–5) waits
|
||||||
|
* on the author (atrium-adoption.md R4). What APP_CONTRACT §7 says may still change is kept here, in `ATRIUM`.
|
||||||
|
*/
|
||||||
|
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
||||||
|
import { join, resolve } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import { PRODUCT_NAME, PRODUCT_SHORT_NAME } from '../../../packages/schema/src/constants.js';
|
||||||
|
import { PACKAGE, SRC_TAURI } from './tauri.js';
|
||||||
|
|
||||||
|
/** What the Atrium contract fixes today and may move before its v1 (APP_CONTRACT §2.2, §7). */
|
||||||
|
export const ATRIUM = {
|
||||||
|
needs: { fundamentum: '>=0.7', atrium: '>=0.1' },
|
||||||
|
/** The icon, beside the `.exe`: the shell's own 256 px icon, made from apps/rosea/public/icon.svg (a placeholder). */
|
||||||
|
icon: { file: 'domi-icon.png', from: 'icons/128x128@2x.png' }
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
/** The file, relative to src-tauri/, that `tauri.windows.conf.json` bundles. */
|
||||||
|
export const MANIFEST = 'atrium/domi-app.toml';
|
||||||
|
|
||||||
|
export interface DomiApp {
|
||||||
|
readonly id: string;
|
||||||
|
readonly name: string;
|
||||||
|
readonly label: string;
|
||||||
|
readonly version: string;
|
||||||
|
readonly accent: string;
|
||||||
|
readonly icon: string;
|
||||||
|
readonly hostable: boolean;
|
||||||
|
readonly free: boolean;
|
||||||
|
readonly needs: { readonly fundamentum: string; readonly atrium: string };
|
||||||
|
}
|
||||||
|
|
||||||
|
export function domiApp(version: string): DomiApp {
|
||||||
|
return {
|
||||||
|
// The Aula project and the Canalis id; it changes with the name, in the same commit.
|
||||||
|
id: PRODUCT_SHORT_NAME.toLowerCase(),
|
||||||
|
name: PRODUCT_NAME,
|
||||||
|
// One plain word for what she is (atrium-adoption.md §2.4, a judgment).
|
||||||
|
label: 'Rose',
|
||||||
|
version,
|
||||||
|
// --rose on the dark theme (packages/ui/src/tokens.css): Atrium Domi's window is dark, and its catalogue names
|
||||||
|
// the same colour for Rosea (Fundamentum crates/atrium-registry/src/catalogue.rs).
|
||||||
|
accent: '#e8899b',
|
||||||
|
icon: ATRIUM.icon.file,
|
||||||
|
// Day 4 waits on R1: hosted, she must keep her own window and origin, or her rose seems gone.
|
||||||
|
hostable: false,
|
||||||
|
// Rosea needs no licence (APP_CONTRACT §2.2: "true if your app needs no licence").
|
||||||
|
free: true,
|
||||||
|
needs: ATRIUM.needs
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A TOML basic string. Every value here is ours; the escape keeps a later one honest: a quote, a backslash or a
|
||||||
|
* line break can never end the string and start a key.
|
||||||
|
*/
|
||||||
|
const str = (s: string): string =>
|
||||||
|
// eslint-disable-next-line no-control-regex -- finding control characters is the point
|
||||||
|
`"${s.replace(/[\\"\u0000-\u001f\u007f]/g, (c) =>
|
||||||
|
c === '\\' || c === '"' ? `\\${c}` : `\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`
|
||||||
|
)}"`;
|
||||||
|
|
||||||
|
export function toToml(m: DomiApp): string {
|
||||||
|
return [
|
||||||
|
`id = ${str(m.id)}`,
|
||||||
|
`name = ${str(m.name)}`,
|
||||||
|
`label = ${str(m.label)}`,
|
||||||
|
`version = ${str(m.version)}`,
|
||||||
|
`accent = ${str(m.accent)}`,
|
||||||
|
`icon = ${str(m.icon)}`,
|
||||||
|
`hostable = ${String(m.hostable)}`,
|
||||||
|
`free = ${String(m.free)}`,
|
||||||
|
`needs = { fundamentum = ${str(m.needs.fundamentum)}, atrium = ${str(m.needs.atrium)} }`,
|
||||||
|
''
|
||||||
|
].join('\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** The game's version: the installer's own (tauri.conf.json reads the same file). */
|
||||||
|
export function gameVersion(): string {
|
||||||
|
const pkg = JSON.parse(readFileSync(join(PACKAGE, '..', 'rosea', 'package.json'), 'utf8')) as { version: string };
|
||||||
|
return pkg.version;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
||||||
|
mkdirSync(join(SRC_TAURI, 'atrium'), { recursive: true });
|
||||||
|
writeFileSync(join(SRC_TAURI, MANIFEST), toToml(domiApp(gameVersion())), 'utf8');
|
||||||
|
console.log(`domi-app.toml: written for Atrium Domi (${MANIFEST})`);
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"targets": ["nsis"],
|
"targets": ["nsis"],
|
||||||
|
"resources": { "atrium/domi-app.toml": "domi-app.toml", "icons/128x128@2x.png": "domi-icon.png" },
|
||||||
"windows": { "nsis": { "installerHooks": "./windows/hooks.nsh" } }
|
"windows": { "nsis": { "installerHooks": "./windows/hooks.nsh" } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,235 @@
|
|||||||
|
/**
|
||||||
|
* Atrium Domi's rules for a `domi-app.toml` (Atrium docs/APP_CONTRACT.md v0 §2), as a test helper. The real parser is
|
||||||
|
* Rust (`atrium_registry::parse_manifest`, Fundamentum). APP_CONTRACT §6 asks an app that cannot use it "at least" to
|
||||||
|
* check its file against §2. The rules are checked in the parser's order, so a hostile file gets the reason code
|
||||||
|
* the parser gives. That agreement was measured once against the parser itself (review of `feature/atrium-door`).
|
||||||
|
*
|
||||||
|
* The TOML reader takes only what a manifest needs: `key = value` lines, comments, basic strings, booleans, decimal
|
||||||
|
* integers (so `format = 2` is `unknown_key`, as in the parser), one-line inline tables and arrays of strings. Anything else is `not_toml`. That is stricter than TOML, which is safe for
|
||||||
|
* Rosea's own file; `toml` 1.x would accept some files this refuses.
|
||||||
|
*/
|
||||||
|
export interface Refusal {
|
||||||
|
readonly field: string | null;
|
||||||
|
readonly reason: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
type Value = string | boolean | number | readonly string[] | { readonly [k: string]: Value };
|
||||||
|
|
||||||
|
const MAX_MANIFEST = 16_384;
|
||||||
|
|
||||||
|
class NotToml extends Error {}
|
||||||
|
|
||||||
|
function readString(s: string, at: number): [string, number] {
|
||||||
|
if (s[at] !== '"') throw new NotToml();
|
||||||
|
let out = '';
|
||||||
|
let i = at + 1;
|
||||||
|
while (i < s.length) {
|
||||||
|
const c = s[i]!;
|
||||||
|
if (c === '"') return [out, i + 1];
|
||||||
|
if (c === '\\') {
|
||||||
|
const e = s[i + 1];
|
||||||
|
const simple: Record<string, string> = { '"': '"', '\\': '\\', n: '\n', t: '\t', r: '\r', b: '\b', f: '\f' };
|
||||||
|
if (e && e in simple) {
|
||||||
|
out += simple[e];
|
||||||
|
i += 2;
|
||||||
|
} else if (e === 'u' || e === 'U') {
|
||||||
|
const len = e === 'u' ? 4 : 8;
|
||||||
|
const hex = s.slice(i + 2, i + 2 + len);
|
||||||
|
if (!/^[0-9a-fA-F]+$/.test(hex) || hex.length !== len) throw new NotToml();
|
||||||
|
out += String.fromCodePoint(parseInt(hex, 16));
|
||||||
|
i += 2 + len;
|
||||||
|
} else throw new NotToml();
|
||||||
|
} else if (c === '\n' || (c.charCodeAt(0) < 0x20 && c !== '\t') || c === '\x7f') {
|
||||||
|
throw new NotToml();
|
||||||
|
} else {
|
||||||
|
out += c;
|
||||||
|
i += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new NotToml();
|
||||||
|
}
|
||||||
|
|
||||||
|
const skip = (s: string, at: number): number => {
|
||||||
|
let i = at;
|
||||||
|
while (s[i] === ' ' || s[i] === '\t') i += 1;
|
||||||
|
return i;
|
||||||
|
};
|
||||||
|
|
||||||
|
function readValue(s: string, at: number): [Value, number] {
|
||||||
|
const i = skip(s, at);
|
||||||
|
if (s[i] === '"') return readString(s, i);
|
||||||
|
if (s.startsWith('true', i)) return [true, i + 4];
|
||||||
|
if (s.startsWith('false', i)) return [false, i + 5];
|
||||||
|
const int = /^[+-]?(0|[1-9][0-9]*)(?![0-9A-Za-z._:])/.exec(s.slice(i));
|
||||||
|
if (int) return [Number(int[0]), i + int[0].length];
|
||||||
|
if (s[i] === '[') {
|
||||||
|
const items: string[] = [];
|
||||||
|
let j = skip(s, i + 1);
|
||||||
|
if (s[j] === ']') return [items, j + 1];
|
||||||
|
for (;;) {
|
||||||
|
const [v, k] = readString(s, skip(s, j));
|
||||||
|
items.push(v);
|
||||||
|
j = skip(s, k);
|
||||||
|
if (s[j] === ']') return [items, j + 1];
|
||||||
|
if (s[j] !== ',') throw new NotToml();
|
||||||
|
j += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (s[i] === '{') {
|
||||||
|
const table: Record<string, Value> = {};
|
||||||
|
let j = skip(s, i + 1);
|
||||||
|
if (s[j] === '}') return [table, j + 1];
|
||||||
|
for (;;) {
|
||||||
|
const key = /^[A-Za-z0-9_-]+/.exec(s.slice(skip(s, j)))?.[0];
|
||||||
|
if (!key) throw new NotToml();
|
||||||
|
j = skip(s, skip(s, j) + key.length);
|
||||||
|
if (s[j] !== '=') throw new NotToml();
|
||||||
|
const [v, k] = readValue(s, j + 1);
|
||||||
|
if (key in table) throw new NotToml();
|
||||||
|
table[key] = v;
|
||||||
|
j = skip(s, k);
|
||||||
|
if (s[j] === '}') return [table, j + 1];
|
||||||
|
if (s[j] !== ',') throw new NotToml();
|
||||||
|
j += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new NotToml();
|
||||||
|
}
|
||||||
|
|
||||||
|
function readToml(text: string): Record<string, Value> {
|
||||||
|
const table: Record<string, Value> = {};
|
||||||
|
for (const raw of text.split('\n')) {
|
||||||
|
const line = raw.endsWith('\r') ? raw.slice(0, -1) : raw;
|
||||||
|
const start = skip(line, 0);
|
||||||
|
if (start === line.length || line[start] === '#') continue;
|
||||||
|
const key = /^[A-Za-z0-9_-]+/.exec(line.slice(start))?.[0];
|
||||||
|
if (!key) throw new NotToml();
|
||||||
|
let i = skip(line, start + key.length);
|
||||||
|
if (line[i] !== '=') throw new NotToml();
|
||||||
|
const [v, end] = readValue(line, i + 1);
|
||||||
|
i = skip(line, end);
|
||||||
|
if (i !== line.length && line[i] !== '#') throw new NotToml();
|
||||||
|
if (key in table) throw new NotToml();
|
||||||
|
table[key] = v;
|
||||||
|
}
|
||||||
|
return table;
|
||||||
|
}
|
||||||
|
|
||||||
|
type Kind = 'str' | 'bool' | 'table' | 'array' | 'other';
|
||||||
|
const KEYS: readonly (readonly [string, Kind, boolean])[] = [
|
||||||
|
['id', 'str', true],
|
||||||
|
['name', 'str', true],
|
||||||
|
['label', 'str', true],
|
||||||
|
['version', 'str', true],
|
||||||
|
['accent', 'str', true],
|
||||||
|
['icon', 'str', false],
|
||||||
|
['ui_bundle', 'str', false],
|
||||||
|
['hostable', 'bool', true],
|
||||||
|
['free', 'bool', true],
|
||||||
|
['needs', 'table', true],
|
||||||
|
['capabilities', 'array', false]
|
||||||
|
];
|
||||||
|
const kindOf = (v: Value): Kind =>
|
||||||
|
typeof v === 'string' ? 'str' : typeof v === 'boolean' ? 'bool' : typeof v === 'number' ? 'other' : Array.isArray(v) ? 'array' : 'table';
|
||||||
|
|
||||||
|
// SemVer 2.0 (semver.org's regular expression).
|
||||||
|
const SEMVER =
|
||||||
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
||||||
|
// The part of Cargo's requirement syntax this file uses: comparators like `>=0.7`, comma-separated.
|
||||||
|
const SEMVER_REQ = /^\s*(?:[=><~^]|>=|<=)?\s*\d+(?:\.\d+){0,2}(?:\s*,\s*(?:[=><~^]|>=|<=)?\s*\d+(?:\.\d+){0,2})*\s*$/;
|
||||||
|
// eslint-disable-next-line no-control-regex -- APP_CONTRACT §2.2's control characters, on purpose
|
||||||
|
const CONTROL = /[\u0000-\u001f\u007f-\u009f]/;
|
||||||
|
const BIDI = /[--]/;
|
||||||
|
const DEVICE = /^(con|prn|aux|nul|com[0-9]|lpt[0-9]|conin\$|conout\$)$/i;
|
||||||
|
|
||||||
|
function text(field: string, value: string, max: number): Refusal | null {
|
||||||
|
const chars = [...value].length;
|
||||||
|
if (chars === 0) return { field, reason: 'empty' };
|
||||||
|
if (chars > max) return { field, reason: 'too_long' };
|
||||||
|
if (CONTROL.test(value)) return { field, reason: 'control_char' };
|
||||||
|
if (BIDI.test(value)) return { field, reason: 'bidi_char' };
|
||||||
|
if (value.trim() !== value) return { field, reason: 'edge_space' };
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function relPath(p: string): string | null {
|
||||||
|
if (p.length === 0) return 'path_empty';
|
||||||
|
if (new TextEncoder().encode(p).length > 255) return 'path_too_long';
|
||||||
|
if (p.includes('\0')) return 'path_nul';
|
||||||
|
if (p.includes('\\')) return 'path_backslash';
|
||||||
|
if (p.startsWith('/')) return 'path_absolute';
|
||||||
|
if (p.includes(':')) return 'path_colon';
|
||||||
|
if (p.includes('..')) return 'path_dotdot';
|
||||||
|
const parts = p.split('/');
|
||||||
|
if (parts.some((c) => c === '' || c === '.')) return 'path_component';
|
||||||
|
if (parts.some((c) => c.endsWith('.') || c.endsWith(' '))) return 'path_trailing';
|
||||||
|
if (parts.some((c) => DEVICE.test(c.split('.')[0]!))) return 'path_reserved';
|
||||||
|
if (!/^[A-Za-z0-9\-_./ %+()]+$/.test(p)) return 'path_char';
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** `null` when Atrium Domi would accept the file, else the first rule it breaks. */
|
||||||
|
export function checkManifest(bytes: Uint8Array): Refusal | null {
|
||||||
|
if (bytes.length > MAX_MANIFEST) return { field: null, reason: 'too_large' };
|
||||||
|
let source: string;
|
||||||
|
try {
|
||||||
|
source = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
|
||||||
|
} catch {
|
||||||
|
// Invalid UTF-8 is the answer itself, not an error to report.
|
||||||
|
return { field: null, reason: 'not_utf8' };
|
||||||
|
}
|
||||||
|
let t: Record<string, Value>;
|
||||||
|
try {
|
||||||
|
t = readToml(source);
|
||||||
|
} catch (e) {
|
||||||
|
if (e instanceof NotToml) return { field: null, reason: 'not_toml' };
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
if (Object.keys(t).some((k) => !KEYS.some(([name]) => name === k))) return { field: null, reason: 'unknown_key' };
|
||||||
|
for (const [key, kind, required] of KEYS) {
|
||||||
|
const v = t[key];
|
||||||
|
if (v === undefined) {
|
||||||
|
if (required) return { field: key, reason: 'missing' };
|
||||||
|
} else if (kindOf(v) !== kind) return { field: key, reason: 'wrong_type' };
|
||||||
|
}
|
||||||
|
const needs = t['needs'] as Record<string, Value>;
|
||||||
|
if (Object.keys(needs).some((k) => k !== 'fundamentum' && k !== 'atrium')) return { field: 'needs', reason: 'unknown_key' };
|
||||||
|
for (const k of ['fundamentum', 'atrium']) {
|
||||||
|
if (needs[k] === undefined) return { field: 'needs', reason: 'missing' };
|
||||||
|
if (typeof needs[k] !== 'string') return { field: 'needs', reason: 'wrong_type' };
|
||||||
|
}
|
||||||
|
const caps = (t['capabilities'] ?? []) as readonly Value[];
|
||||||
|
if (caps.length > 64) return { field: 'capabilities', reason: 'too_many' };
|
||||||
|
if (caps.some((c) => typeof c !== 'string')) return { field: 'capabilities', reason: 'wrong_type' };
|
||||||
|
|
||||||
|
const id = t['id'] as string;
|
||||||
|
if (!/^[a-z0-9-]{1,32}$/.test(id) || id.startsWith('-') || id.endsWith('-')) return { field: 'id', reason: 'bad_id' };
|
||||||
|
const named = text('name', t['name'] as string, 64) ?? text('label', t['label'] as string, 32);
|
||||||
|
if (named) return named;
|
||||||
|
const version = t['version'] as string;
|
||||||
|
if (version.length > 64 || !SEMVER.test(version)) return { field: 'version', reason: 'not_semver' };
|
||||||
|
if (!/^#[0-9a-fA-F]{6}$/.test(t['accent'] as string)) return { field: 'accent', reason: 'not_rgb' };
|
||||||
|
if (typeof t['icon'] === 'string') {
|
||||||
|
const bad = relPath(t['icon']);
|
||||||
|
if (bad) return { field: 'icon', reason: bad };
|
||||||
|
const last = t['icon'].split('/').pop()!;
|
||||||
|
const dot = last.lastIndexOf('.');
|
||||||
|
if (dot <= 0 || !['png', 'svg', 'ico'].includes(last.slice(dot + 1).toLowerCase())) return { field: 'icon', reason: 'icon_type' };
|
||||||
|
}
|
||||||
|
if (typeof t['ui_bundle'] === 'string') {
|
||||||
|
const bad = relPath(t['ui_bundle']);
|
||||||
|
if (bad) return { field: 'ui_bundle', reason: bad };
|
||||||
|
} else if (t['hostable'] === true) return { field: 'ui_bundle', reason: 'required' };
|
||||||
|
for (const k of ['fundamentum', 'atrium']) {
|
||||||
|
const req = needs[k] as string;
|
||||||
|
if (req.length > 64 || !SEMVER_REQ.test(req)) return { field: 'needs', reason: 'not_semver_req' };
|
||||||
|
}
|
||||||
|
const seen = new Set<string>();
|
||||||
|
for (const c of caps as readonly string[]) {
|
||||||
|
if (!/^[a-z0-9-]+\.[a-z0-9-]+\.[a-z0-9-]+$/.test(c)) return { field: 'capabilities', reason: 'bad_name' };
|
||||||
|
if (!c.startsWith(`${id}.`)) return { field: 'capabilities', reason: 'foreign_prefix' };
|
||||||
|
if (seen.has(c)) return { field: 'capabilities', reason: 'duplicate' };
|
||||||
|
seen.add(c);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
/**
|
||||||
|
* The `domi-app.toml` Rosea ships for Atrium Domi (atrium-adoption.md; Atrium docs/APP_CONTRACT.md v0). Rosea ships
|
||||||
|
* a file Atrium accepts, ships it next to the `.exe` with the icon it names, and keeps her name, version and
|
||||||
|
* identity in the places they already live. The hostile fixtures prove that the check refuses what Atrium refuses,
|
||||||
|
* and refuses it for Atrium's reason.
|
||||||
|
*/
|
||||||
|
import { readdirSync, readFileSync } from 'node:fs';
|
||||||
|
import { dirname, join } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
import { PRODUCT_NAME } from '../../../packages/schema/src/constants.js';
|
||||||
|
import { ATRIUM, MANIFEST, domiApp, gameVersion, toToml } from '../scripts/domi-app.js';
|
||||||
|
import { checkManifest } from './domi-app-rules.js';
|
||||||
|
|
||||||
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
||||||
|
const SRC_TAURI = join(HERE, '..', 'src-tauri');
|
||||||
|
const FIXTURES = join(HERE, 'fixtures', 'domi-app');
|
||||||
|
const shipped = toToml(domiApp(gameVersion()));
|
||||||
|
const bytes = (s: string): Uint8Array => new TextEncoder().encode(s);
|
||||||
|
|
||||||
|
describe('domi-app.toml', () => {
|
||||||
|
it('is accepted by the rules of APP_CONTRACT §2', () => {
|
||||||
|
expect(checkManifest(bytes(shipped))).toBeNull();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("names her as the product does, at the game's version, with her Aula id", () => {
|
||||||
|
const m = domiApp(gameVersion());
|
||||||
|
expect(m.name).toBe(PRODUCT_NAME);
|
||||||
|
expect(m.version).toBe(JSON.parse(readFileSync(join(HERE, '..', '..', 'rosea', 'package.json'), 'utf8')).version);
|
||||||
|
expect(m.id).toBe('rosea');
|
||||||
|
expect(shipped).toContain(`name = "${PRODUCT_NAME}"`);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('is not hostable until her own window and origin are kept (R1), and asks for nothing', () => {
|
||||||
|
const m = domiApp('0.1.0');
|
||||||
|
expect(m.hostable).toBe(false);
|
||||||
|
expect(shipped).not.toContain('ui_bundle');
|
||||||
|
expect(shipped).not.toContain('capabilities');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('is shipped next to the .exe on Windows only, with the icon it names', () => {
|
||||||
|
const win = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.windows.conf.json'), 'utf8')) as {
|
||||||
|
bundle: { resources: Record<string, string> };
|
||||||
|
};
|
||||||
|
expect(win.bundle.resources).toEqual({ [MANIFEST]: 'domi-app.toml', [ATRIUM.icon.from]: ATRIUM.icon.file });
|
||||||
|
expect(domiApp('0.1.0').icon).toBe(ATRIUM.icon.file);
|
||||||
|
// The shared config would put it into the Android and macOS packages too.
|
||||||
|
const shared = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.conf.json'), 'utf8')) as { bundle: Record<string, unknown> };
|
||||||
|
expect(shared.bundle['resources']).toBeUndefined();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('is made before every desktop build and never committed', () => {
|
||||||
|
const pkg = JSON.parse(readFileSync(join(HERE, '..', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
|
||||||
|
expect(pkg.scripts['build:desktop']).toMatch(/tsx scripts\/domi-app\.ts && tauri build$/);
|
||||||
|
expect(pkg.scripts['dev']).toContain('tsx scripts/domi-app.ts');
|
||||||
|
const ignore = readFileSync(join(HERE, '..', '..', '..', '.gitignore'), 'utf8');
|
||||||
|
expect(ignore).toContain('apps/rosea-tauri/src-tauri/atrium/');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('escapes a quote or a backslash, so no value can add a key', () => {
|
||||||
|
const hostile = toToml({ ...domiApp('0.1.0'), label: 'Rose"\nfree = false\n#\\' });
|
||||||
|
expect(checkManifest(bytes(hostile))).toEqual({ field: 'label', reason: 'control_char' });
|
||||||
|
expect(hostile.split('\n').filter((l) => l.startsWith('free'))).toEqual(['free = true']);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('a hostile domi-app.toml is refused, with the reason Atrium Domi logs', () => {
|
||||||
|
const files = readdirSync(FIXTURES).filter((f) => f.endsWith('.toml'));
|
||||||
|
|
||||||
|
it('has one fixture for each rule it claims', () => {
|
||||||
|
expect(files.length).toBeGreaterThanOrEqual(27);
|
||||||
|
});
|
||||||
|
|
||||||
|
for (const file of files) {
|
||||||
|
const [field, reason] = file.replace(/(-\d+)?\.toml$/, '').split('.') as [string, string];
|
||||||
|
it(`${file}: ${field === 'file' ? '' : `${field} `}${reason}`, () => {
|
||||||
|
const refusal = checkManifest(new Uint8Array(readFileSync(join(FIXTURES, file))));
|
||||||
|
expect(refusal).toEqual({ field: field === 'file' ? null : field, reason });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "rose"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
|
capabilities = ["rosea.rose.read", "rosea.rose.read"]
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
|
capabilities = ["culina.recipe.read"]
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
|
id = "rosea"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea ÿ Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
|
format = 2
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = "false"
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.gif"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "/domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "icons\\domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi*icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "C:domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "../domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "CON.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "-rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "Rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = " Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = ""
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea\u0007Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = "newest", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1", lector = ">=1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1.0"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = true
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
id = "rosea"
|
||||||
|
name = "Rosea Domi"
|
||||||
|
label = "Rose"
|
||||||
|
version = "0.1"
|
||||||
|
accent = "#b4485e"
|
||||||
|
icon = "domi-icon.png"
|
||||||
|
hostable = false
|
||||||
|
free = true
|
||||||
|
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||||
+3
-1
@@ -36,7 +36,9 @@ export default [
|
|||||||
// Other sessions' git worktrees live under .claude/worktrees/: separate checkouts,
|
// Other sessions' git worktrees live under .claude/worktrees/: separate checkouts,
|
||||||
// linted in their own place, never from here (with Rust build output inside).
|
// linted in their own place, never from here (with Rust build output inside).
|
||||||
'.claude/**',
|
'.claude/**',
|
||||||
'**/target/**'
|
'**/target/**',
|
||||||
|
// Fabrica's records of `fabrica tests run` (git-ignored): its own reporter, not Rosea's code.
|
||||||
|
'.fabrica/runs/**'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user