managarten/packages/spiral-db
Till JS 7df515434e fix: revert tier test patch, widen toggleField, add spiral-db prepare
Three independent fixes grouped because they're each one-line changes:

1. Revert MANA_APPS requiredTier test patch
   Commit e52b6e29f flipped all 36+ apps to requiredTier='guest' for
   local testing. Restored original tiers from before the flip:
   guest-accessible (contacts, calendar, todo), public (who),
   beta (zitare, calc, guides, arcade), alpha (most modules),
   founder (memoro, nutriphi, mail, habits, notes, dreams, cycles,
   events, finance, places, news). Body stays at 'guest' (new module,
   intentional). The memory note "REVERT BEFORE RELEASE" is now done.

2. Widen toggleField to accept IndexableType keys
   `toggleField<T>(table: Table<T, string>, ...)` rejected Dexie
   tables keyed by IndexableType (the default). Changed the second
   generic to IndexableType so callers like images.svelte.ts don't
   need the `as unknown as Parameters<...>[0]` double-cast.

3. Add prepare script to spiral-db
   `"prepare": "pnpm build"` ensures `dist/` is rebuilt after
   `pnpm install` on a fresh clone. Without this, the 209 cascading
   type errors from stale/missing dist files return on every new
   checkout. Also added `prepublishOnly` as a safety net.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 18:35:20 +02:00
..
src refactor(mana): rename inventar → inventory across the codebase 2026-04-09 15:50:24 +02:00
demo.ts fix(spiral-db): add test suite and fix critical bugs 2026-03-23 09:52:18 +01:00
package.json fix: revert tier test patch, widen toggleField, add spiral-db prepare 2026-04-10 18:35:20 +02:00
tsconfig.json feat(spiral-db): add pixel-based spiral database package 2026-02-17 10:42:09 +01:00
vitest.config.ts feat(spiral-db): add pixel-based spiral database package 2026-02-17 10:42:09 +01:00