[ui] DaySentence: Her folded petal, the words and their source; the library bundled after validation
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
import { version } from '../package.json';
|
||||
// Bundled at build time, so the letter is precached and opens offline (letter-slot.md L1).
|
||||
import letter from '../../../docs/LETTER.md?raw';
|
||||
// The verified hope library, bundled after validate:library passed (day-sentence.md P5).
|
||||
import sentences from 'virtual:rosea-library';
|
||||
|
||||
// The device's own zone, read here and nowhere else: the engine never asks the
|
||||
// device anything (CLAUDE.md §2). Only the zone's name; never GPS, never a lookup.
|
||||
@@ -92,6 +94,9 @@
|
||||
await storage.appendCare(event);
|
||||
keepAfterCare();
|
||||
},
|
||||
sentences,
|
||||
loadOpened: () => storage.loadOpened(),
|
||||
appendOpened: (event) => storage.appendOpened(event),
|
||||
clientVersion: version,
|
||||
deviceZone,
|
||||
now: () => Date.now(),
|
||||
|
||||
Vendored
+7
@@ -1,3 +1,10 @@
|
||||
/// <reference types="svelte" />
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference types="vite-plugin-pwa/client" />
|
||||
|
||||
declare module 'virtual:rosea-library' {
|
||||
import type { HopeSentence } from '@rosea/schema';
|
||||
/** The verified hope library, bundled at build time after validate:library passed (day-sentence.md P5). */
|
||||
const library: readonly HopeSentence[];
|
||||
export default library;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user