Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Single source of the app and installer version. Velopack needs it to strictly increase; see ADR-008 "Versioning". -->
<Version>0.8.1</Version>
<Version>0.9.0</Version>
<Company>TomeStack</Company>
<Product>TomeStack</Product>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Every number explains itself.** A local-first Windows character sheet for 5E-compatible play and homebrew: tap any value to see the rule, the source page and the choice behind it. It works offline, with no account.

> **Status: v0.8.1**, an unsigned installer on the [Releases page](https://github.com/firegiant9000/TomeStack/releases) (Windows asks you to confirm the first run). What each release added is in the [CHANGELOG](docs/CHANGELOG.md); `main` is ahead of that release (see Unreleased there).
> **Status: v0.9.0**, an unsigned installer on the [Releases page](https://github.com/firegiant9000/TomeStack/releases) (Windows asks you to confirm the first run). What each release added is in the [CHANGELOG](docs/CHANGELOG.md); `main` is ahead of that release (see Unreleased there).
>
> **Stack:** .NET 10 (WPF shell hosting WebView2), a React 19 and TypeScript UI, SQLite through `Microsoft.Data.Sqlite`. The rules engine ([`src/RulesCore`](src/RulesCore)) is plain C# with no persistence, UI or Windows references.

Expand Down Expand Up @@ -137,7 +137,7 @@ gh attestation verify .\TomeStack.App-win-Setup.exe --repo firegiant9000/TomeSta

## Code signing policy

Releases up to 0.8.x are unsigned. The project applied to [SignPath Foundation](https://signpath.org) for free code signing for open source projects on 2026-11-12 and is waiting for their answer. The first signed release is targeted for 0.9.0 if the application is accepted. The plan and the alternatives are in [ADR-025](docs/decisions/ADR-025-code-signing.md). If the application is declined, releases stay unsigned.
Releases up to 0.9.0 are unsigned. The project applied to [SignPath Foundation](https://signpath.org) for free code signing for open source projects on 2026-11-12 and is waiting for their answer. If the application is accepted, the next release after that is the first signed one. The plan and the alternatives are in [ADR-025](docs/decisions/ADR-025-code-signing.md). If the application is declined, releases stay unsigned.

Once accepted, signed releases carry this line:

Expand Down
20 changes: 16 additions & 4 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

## Unreleased

## 0.9.0 (starting gear and creation guides, a sample character, the status bar and clearer navigation, a sheet for your phone, database 13)

Starting equipment and key abilities in the builder, from new creation guides and gear catalogues (content schema 13, D97, D98, [ADR-024](decisions/ADR-024-content-v13.md)); a sample character for a first run (D95); one status bar, six tabs and a More list on the sheet, and a regrouped sidebar (D94, D96); plainer words on screen (D99); a sheet for a phone or tablet (D105); an accessibility check in CI; and content that the database itself keeps insert-only (D104). The bundled SRD packs change in this release, by new revisions only: a saved character keeps calculating as before.

**Unsigned:** Windows shows "Windows protected your PC" the first time you run `TomeStack.App-win-Setup.exe`. Choose **More info**, then **Run anyway**. Some workplace PCs, and Windows 11 with Smart App Control on, block unsigned apps entirely.

**Updating from 0.8.x, database 13:** back up first (Backups, "Back up everything"), then download the newer `Setup.exe` and run it; TomeStack never checks for updates and makes no network calls. On first start the database moves from version 11 to 13: it gains a column that marks the sample character and triggers that stop any content version from being changed or deleted. No stored data changes. Before it upgrades, TomeStack copies the database to `tomestack.db.v11-<UTC time>.bak` and `tomestack.db.app-0.8.1-to-0.9.0.bak` (`app-0.8.0-to-0.9.0` from 0.8.0). Once 0.9.0 has opened a data folder, 0.8.x and older refuse to open it. To go back, first make another full backup in 0.9.0 (0.8.x deletes any PDF copy its database does not know, and work done since the upgrade is not in the pre-upgrade copy), then restore that copy as in [Moving your library to a new version or a new PC](features/restore-drill-procedure.md#moving-your-library-to-a-new-version-or-a-new-pc).

**Content schema 13:** creation guides (a class's or background's starting equipment and key abilities) and packs (an item that lists what it holds) are new content. The character schema (11) and the package format do not change. A package or backup that holds v13 content, or the new bundled gear and guides, opens only in 0.9.0 or later, and the export preview says so. "Save for an older TomeStack" now offers 0.8.0 only: that copy leaves the guides out and turns the new gear into custom items (in a few cases the save is blocked instead; see Added). If you swap files at the table, update together.

**A sheet for your phone or tablet:** More, Export, "Export to another tool or device" now writes one HTML page of the sheet that opens in any browser with no internet and no script: the core numbers, attacks, spells with slot checkboxes, resources and features, and your session notes in a personal copy. Ticks on the phone are not saved; reopening the file starts from the export.

**Not affiliated:** TomeStack names D&D Beyond only to say which character-sheet PDF it imports. It is not affiliated with D&D Beyond or Wizards of the Coast, and the importer says so on its first step.

### Added
- **Sheet for a phone or tablet (D105, Wave 4 item 4.8):** More, Export, "Export to another tool or device" now offers "Sheet for a phone or tablet (HTML page, no internet needed)". It writes one `.tomestack-sheet.html` file that opens in any browser, with no script and no network: the core numbers, abilities, skills, attacks, spells (with slots as checkboxes), resources, features, notices and, in a personal copy only, your session notes. Ticks on the phone are not saved: reopening the file starts from the export. A share copy goes through the same preview and licence filter as the other exports. The sheet export model v1 is unchanged. [features/static-session-sheet.md](features/static-session-sheet.md).
- **Development only, test load caps and a gate script:** local test runs no longer use every core. Vitest runs at most 8 workers (override with `TOMESTACK_TEST_WORKERS`), and xUnit runs at most 8 threads per test project on machines with more than 8 cores; CI keeps its defaults. `scripts/gate.ps1` runs gate steps 1–8 in order, with per-step logs, a summary, a watchdog for a hung e2e or a11y run, DevHost cleanup, an optional lower priority and a CPU check. No app change.
Expand All @@ -10,8 +24,7 @@
- **Release assets:** each release now includes two CycloneDX software bills of materials, `tomestack-X.Y.Z-nuget.cdx.json` (the .NET packages) and `tomestack-X.Y.Z-npm.cdx.json` (the UI's npm runtime packages). They are listed in `SHA256SUMS` and attested like the installer (D101). No app change.
- **Content schema 13: creation guides and packs, engine only (D97, D98, [ADR-024](decisions/ADR-024-content-v13.md)):** content can now carry a creation guide for a class or background (starting equipment as picks and options, and primary abilities) and packs (an item that lists what it contains). The change adds the format, validation, kit expansion and a catalogue lookup; the bundled guides and gear are listed below. The one change a player can see is in saving for an older TomeStack. Characters never pin a guide. Saving for an older TomeStack leaves guides out, drops what a pack contains, and turns plain gear that release does not have into a custom item (the save is blocked if that would pass 50 custom items, if a quantity is outside 1 to 9,999, or if an item's name is blank or over 80 characters). A source pack or campaign pack that would hold only guides cannot be saved for an older TomeStack; a library backup is unaffected. Older versions refuse v13 content.
- **Easier to find your way around (D94):** the sidebar is grouped into Characters, Library and App. "+ Add a character" opens one screen with three ways in: make a new one, open a TomeStack file, or read a character sheet (PDF or text). Add-ons moved into Settings. The "TomeStack, your characters" button at the top takes you home. Every screen has one main heading, and the window title names where you are (a character's name shows in the taskbar). Esc closes an open "Why?"-style detail or the sidebar and never changes screen. In a narrow window, opening a character sheet tucks the sidebar away without changing your saved choice.

- **2014 starting equipment and key abilities ([ADR-024](decisions/ADR-024-content-v13.md)):** TomeStack now bundles a gear catalogue (73 items and the seven adventuring packs) and a creation guide for each of the 12 classes and the Acolyte background under the 2014 rules. A guide holds the class's starting equipment as choices and its key abilities. The builder's gear step now reads them (see below); they change no saved character. Item names and quantities only; no descriptions are copied ([licensing review](licensing/srd-pack-review.md)). Saving for TomeStack 0.6.0 or later leaves the guides out and turns the gear into custom items; saving for 0.5.0 is blocked while a character holds any of this gear (0.5.0 has no custom items).
- **2014 starting equipment and key abilities ([ADR-024](decisions/ADR-024-content-v13.md)):** TomeStack now bundles a gear catalogue (73 items and the seven adventuring packs) and a creation guide for each of the 12 classes and the Acolyte background under the 2014 rules. A guide holds the class's starting equipment as choices and its key abilities. The builder's gear step now reads them (see below); they change no saved character. Item names and quantities only; no descriptions are copied ([licensing review](licensing/srd-pack-review.md)). Saving for an older TomeStack (0.8.0) leaves the guides out and turns the gear into custom items.
- **2024 starting equipment and key abilities ([ADR-024](decisions/ADR-024-content-v13.md)):** TomeStack now also bundles a gear catalogue (89 items and the seven adventuring packs) and a creation guide for each of the 12 classes and the Acolyte, Criminal, Sage and Soldier backgrounds under the 2024 rules. Like the 2014 guides, they hold starting equipment as choices and key abilities, the builder's gear step now reads them (see below), and they change no saved character. A choice may now offer up to 30 options (it was 20), so the Monk's tool or instrument choice lists every one. Item names and quantities only; no descriptions are copied ([licensing review](licensing/srd-pack-review.md)). Saving for an older TomeStack treats them the same way as the 2014 ones.
- **Save for an older TomeStack, a held item (ADR-023):** the preview lists an item that still blocks the save once, as the blocker, instead of also saying it "becomes a custom item" (for example a rope held with an attunement by another character).
- **One status bar on the sheet (D96):** Hit points, Armor Class, Initiative, Speed, Heroic Inspiration (Inspiration in the 2014 rules), conditions and the last roll now sit in one bar under the sheet header. It stays at the top while you scroll when it fits in a third of the window (in a window narrower or shorter than 40rem it stays in place), and the last roll shows there from every tab. Keyboard order is the sheet header, the bar, the "?" help on rolling, "Choices to make", the tabs, then the tab's page.
Expand Down Expand Up @@ -49,8 +62,7 @@
- **Tests only:** the accessibility check (`npm run test:a11y`) now waits up to 10 s for each screen, as the UI flow tests do; at Testing Library's 1 s default, "builder, each step" failed locally before the choices step loaded. No app change.

### Migration
- **Migration note (database 13, D104):** the database moves to version 13, forward-only. The first start adds triggers that make content revisions insert-only; no stored data changes. Before the upgrade the data folder is copied to `tomestack.db.v12-<UTC time>.bak` (for example `tomestack.db.v12-20261117T090503Z.bak`), and the newest 3 copies are kept. After this version opens a data folder, 0.8.x and older refuse to open it. To go back, restore that copy. Character, content and package formats do not change.
- **Release note: the database moves to version 12.** The first start of this version adds a column to the characters table (`origin`, empty for every existing character; it marks the sample character, D95). After this version opens a data folder, 0.8.x and older refuse to open it. To go back, restore the pre-upgrade backup the first start writes (`tomestack.db.v11.bak`, and the `tomestack.db.app-<from>-to-<to>.bak` copy of the database as the earlier version left it); anything you added after upgrading is not in those copies. Character, content and package formats do not change.
- **Database 11 to 13, forward-only (D95, D104):** version 12 adds a column to the characters table (`origin`, empty for every existing character; it marks the sample character), and version 13 adds triggers that make content revisions insert-only. No stored data changes. Before upgrading, the database is copied to `tomestack.db.v<N>-<UTC time>.bak`, where N is the version it had (from 0.8.x, for example `tomestack.db.v11-20261120T090503Z.bak`); the newest 3 of these copies are kept, older-named `tomestack.db.v<N>.bak` copies counted and removed first. The `tomestack.db.app-<from>-to-0.9.0.bak` copy is written as before and never removed. After this version opens a data folder, 0.8.x and older refuse to open it; to go back, make a full backup in 0.9.0, then restore one of those copies. Content schema moves to 13; the character schema (11) and the package format do not change.

## 0.8.1 (save for 0.7.0, Foundry dnd5e 6.0.6, release and CI hygiene)

Expand Down
1 change: 1 addition & 0 deletions docs/LIVING_SPECS.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Create `CHANGELOG.md` with `## Unreleased` and subsections `Added`, `Changed`, `

## Change history

- **2026-11-19 · Release 0.9.0 cut:** the version is 0.9.0. `ReleaseLadder` gains the 0.9.0 row (character 11, content 13, gap notes 2, format 9, database 13), not offered as a target; its bundled set (`BundledAt/0.9.0.txt`, generated from the release tree) keeps every 0.8.0 id, and a new test checks that each set keeps the one before. 0.8.0 stays the one offered target (D103). Tests that pinned the 0.8.1 stamp now expect 0.8.0 as the previous minor. Release notes, ROADMAP, MVP, README, ADR-023 (six rungs), ADR-025 (0.9.0 unsigned) and the release checklist are updated. No schema, package format or database change beyond D95, D104 and ADR-024.
- **2026-11-18 · Static session sheet (D105, Wave 4 row 4.8):** a new export target, `html-sheet`, writes one script-free HTML page of the sheet for a phone or tablet: no network, no links, a Content-Security-Policy that allows only its one hashed style, and plain tick boxes that are not saved. A personal copy may include session notes; a share copy never does. It only reads the sheet export model v1. Details in `docs/features/static-session-sheet.md`. No character, package format, database or dependency change.
- **2026-11-17 · Wave 4 item 4.7: database migration v13 (D104):** `content_revisions` is insert-only in the database (BEFORE UPDATE and BEFORE DELETE triggers on every row, drafts too). The pre-upgrade copies are named `tomestack.db.v<N>-<UTC time>.bak` and the newest 3 are kept. Older builds refuse the database-13 folder. No character, content or package format change.
- **2026-11-14 · Smoke ready-time budget in CI 45 s (D102):** the CI budget goes from 30 s to 45 s (owner ruling 2026-11-14); main 43600fc5 failed only on a 36,010 ms ready time and the next run passed. The local budget stays 15 s. `scripts/ready-budget.ps1`. No character, package format, database or dependency change.
Expand Down
2 changes: 1 addition & 1 deletion docs/MVP.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A Windows player can install TomeStack, create and play a level-1-to-20 SRD-based character under either 2014 or 2024 rules, add a structured homebrew subclass or feature, and recover/export their work offline. The product is useful before PDF mechanics interpretation or arbitrary custom base classes exist.

**Current build (0.8.1): the content goal is met; the real-play gate (M3) is not recorded yet.** All twelve SRD classes are bundled at levels 1–20 in both families, each with its SRD subclass, plus the SRD armor table. Species and backgrounds: all nine SRD 5.1 races and the Acolyte, and every SRD 5.2.1 species, background and feat (9, 4 and 17). Anything else comes from the homebrew studio. The M2 checks passed ([features/m2-acceptance.md](features/m2-acceptance.md)); nothing is accepted in real play yet.
**Current build (0.9.0): the content goal is met; the real-play gate (M3) is not recorded yet.** All twelve SRD classes are bundled at levels 1–20 in both families, each with its SRD subclass, plus the SRD armor table, starting gear and a creation guide for each class (0.9.0). Species and backgrounds: all nine SRD 5.1 races and the Acolyte, and every SRD 5.2.1 species, background and feat (9, 4 and 17). Anything else comes from the homebrew studio. The M2 checks passed ([features/m2-acceptance.md](features/m2-acceptance.md)); nothing is accepted in real play yet.

## Committed candidate scope

Expand Down
Loading