Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
v0.9.18: i18n for the signed-writes UI + architecture note; bump
nyblnet97f4c02dcc6e
diff --git a/CLAUDE.md b/CLAUDE.mdindex afe55f9e..f68a73f4 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -80,6 +80,28 @@ One HTML file = the document + viewer + editor. See `README.md` for the vision.fraction (nearest sample), integrate 1/speed to a time LUT, invert — so theelement dwells at low-speed anchors and rushes at high ones. Uniform speeds =identity (no cost); speeds omitted from the model unless they vary.+- **Signed writes / read-only tiers (v0.9.18)**: three file modes now, split+ from the old conflated `readonly`. (1) **Presentation package** = `doc.readonly`+ (unchanged: PLAYER file, present-only, collab stripped) — "Save as+ presentation package…". (2) **Read-only live viewer** = `collab.role:'reader'`+ + `writerPriv` stripped — "Save read-only copy…" (shown only when sharing is+ on); boots the editor in a locked state (`store.readOnly` no-ops commit; remote+ ops apply via session's direct state.apply+emit, NOT commit, so live updates+ still land; `editor.enterReaderMode` hides the insert group + Moveable handles,+ shows a pulsing banner; canvas text/cell edits early-return). (3) **Writer**+ (default). ENFORCEMENT is cryptographic, not honour-system: `collab` gains an+ ECDSA P-256 writer keypair (`writerPub` in every copy, `writerPriv` only in+ writers) SEPARATE from the symmetric `key` (read cap). `mintCollab` is ASYNC+ now and the room id COMMITS to the pubkey — `w`+b64url(sha256(pubRaw)) — so the+ blind relay pins the writer key trustlessly (legacy rooms are `r`+random,+ stay permissive). OnlineTransport signs op batches + snapshots (ECDSA over the+ ciphertext `${i}.${d}`); the relay (server/sync-worker) verifies the+ commitment at connect and DROPS any persisted frame lacking a valid sig →+ readers (no priv) can't write. Client signs on the old relay too (extra fields+ ignored) so there was no breakage window; **relay must be `wrangler deploy`d**+ for enforcement (done). Async-mint ripple: `session.ensureCollab` (new docs+ only, never auto-connected), startSharing/rotateKeys/saveAsNewDeck await.+ Full spec + threat model in docs/collab-design.md.- **File modes (v0.9.0)**: `doc.readonly` = PLAYER file (boots straight intothe show; exit lands on a minimal card, never the editor; "Save read-onlycopy…" strips collab). Password encryption: the #bento-doc block can hold adiff --git a/slides/package.json b/slides/package.jsonindex 3e928267..7989a3e3 100644--- a/slides/package.json+++ b/slides/package.json@@ -1,7 +1,7 @@{"name": "bento-slides","private": true,- "version": "0.9.17",+ "version": "0.9.18","type": "module","scripts": {"dev": "vite",diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.tsindex bb408361..52424149 100644--- a/slides/src/i18n/de.ts+++ b/slides/src/i18n/de.ts@@ -449,4 +449,13 @@ export const de: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "Dieses {kind} ist {mb} MB groß. Das Einbetten behält es in der .bento.html, macht die Datei aber groß und langsam beim Öffnen und Speichern.\n\nTrotzdem einbetten? (Abbrechen, dann eine gehostete URL im Bedienfeld einfügen, damit das Deck klein bleibt.)","URL": "URL","…or paste a media URL": "…oder eine Medien-URL einfügen",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "Ein Live-Betrachter: folgt dieser geteilten Sitzung und zeigt Änderungen in Echtzeit, kann das Deck aber nie ändern (vom Relay erzwungen — Nur-Lesen ist nicht bloß Ehrensache).",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "Eine versiegelte Ausgabe: öffnet direkt die Präsentation — nur Ansehen und Präsentieren, kein Editor, keine Live-Sitzung.",+ "Presentation package saved — it opens straight into the show": "Präsentationspaket gespeichert — es öffnet direkt die Präsentation",+ "Read-only copy saved — it follows the live session, view only": "Nur-Lese-Kopie gespeichert — sie folgt der Live-Sitzung, nur zum Ansehen",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "Nur-Lesen — Sie betrachten diese Live-Sitzung. Ansehen und präsentieren, aber nicht bearbeiten.",+ "Save as presentation package…": "Als Präsentationspaket speichern…",+ "This is a presentation package — view and present only.": "Dies ist ein Präsentationspaket — nur ansehen und präsentieren.",+ "Turn on live sharing first — a read-only copy follows the session": "Zuerst Live-Freigabe einschalten — eine Nur-Lese-Kopie folgt der Sitzung",}diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.tsindex ee7bc687..dfbe682e 100644--- a/slides/src/i18n/es.ts+++ b/slides/src/i18n/es.ts@@ -449,4 +449,13 @@ export const es: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "Este {kind} pesa {mb} MB. Incrustarlo lo mantiene dentro del .bento.html pero hace que el archivo sea grande y lento de abrir y guardar.\n\n¿Incrustar de todos modos? (Cancela y pega una URL alojada en el panel para mantener la presentación ligera.)","URL": "URL","…or paste a media URL": "…o pega una URL multimedia",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "Un visor en vivo: sigue esta sesión compartida y muestra los cambios en tiempo real, pero nunca puede modificar la presentación (lo impone el relay: el solo lectura no es solo cuestión de confianza).",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "Una entrega sellada: abre directamente la presentación — solo ver y presentar, sin editor, sin sesión en vivo.",+ "Presentation package saved — it opens straight into the show": "Paquete de presentación guardado — abre directamente la presentación",+ "Read-only copy saved — it follows the live session, view only": "Copia de solo lectura guardada — sigue la sesión en vivo, solo para ver",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "Solo lectura — estás viendo esta sesión en vivo. Puedes ver y presentar, pero no editar.",+ "Save as presentation package…": "Guardar como paquete de presentación…",+ "This is a presentation package — view and present only.": "Esto es un paquete de presentación — solo ver y presentar.",+ "Turn on live sharing first — a read-only copy follows the session": "Primero activa el uso compartido en vivo — una copia de solo lectura sigue la sesión",}diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.tsindex c05fc770..6570c7a4 100644--- a/slides/src/i18n/fr.ts+++ b/slides/src/i18n/fr.ts@@ -449,4 +449,13 @@ export const fr: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "Ce {kind} fait {mb} Mo. L’intégrer le conserve dans le .bento.html mais rend le fichier volumineux et lent à ouvrir et enregistrer.\n\nIntégrer quand même ? (Annulez, puis collez une URL hébergée dans le panneau pour garder le deck léger.)","URL": "URL","…or paste a media URL": "…ou collez une URL de média",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "Un lecteur en direct : il suit cette session partagée et affiche les modifications en temps réel, mais ne peut jamais modifier le deck (imposé par le relais — la lecture seule n’est pas qu’une question de confiance).",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "Une remise scellée : elle ouvre directement la présentation — lecture et présentation uniquement, sans éditeur ni session en direct.",+ "Presentation package saved — it opens straight into the show": "Paquet de présentation enregistré — il ouvre directement la présentation",+ "Read-only copy saved — it follows the live session, view only": "Copie en lecture seule enregistrée — elle suit la session en direct, en lecture seule",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "Lecture seule — vous regardez cette session en direct. Vous pouvez voir et présenter, mais pas modifier.",+ "Save as presentation package…": "Enregistrer comme paquet de présentation…",+ "This is a presentation package — view and present only.": "Ceci est un paquet de présentation — lecture et présentation uniquement.",+ "Turn on live sharing first — a read-only copy follows the session": "Activez d’abord le partage en direct — une copie en lecture seule suit la session",}diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.tsindex 5e782664..604ece2d 100644--- a/slides/src/i18n/it.ts+++ b/slides/src/i18n/it.ts@@ -449,4 +449,13 @@ export const it: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "Questo {kind} è di {mb} MB. Incorporarlo lo mantiene nel .bento.html ma rende il file grande e lento da aprire e salvare.\n\nIncorporare comunque? (Annulla, poi incolla un URL ospitato nel pannello per mantenere il deck leggero.)","URL": "URL","…or paste a media URL": "…oppure incolla un URL multimediale",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "Un visualizzatore live: segue questa sessione condivisa e mostra le modifiche in tempo reale, ma non può mai cambiare il deck (lo impone il relay — la sola lettura non è solo questione di fiducia).",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "Una consegna sigillata: apre direttamente la presentazione — solo visualizzazione e presentazione, senza editor né sessione live.",+ "Presentation package saved — it opens straight into the show": "Pacchetto di presentazione salvato — apre direttamente la presentazione",+ "Read-only copy saved — it follows the live session, view only": "Copia in sola lettura salvata — segue la sessione live, solo visualizzazione",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "Sola lettura — stai guardando questa sessione live. Puoi vedere e presentare, ma non modificare.",+ "Save as presentation package…": "Salva come pacchetto di presentazione…",+ "This is a presentation package — view and present only.": "Questo è un pacchetto di presentazione — solo visualizzazione e presentazione.",+ "Turn on live sharing first — a read-only copy follows the session": "Attiva prima la condivisione live — una copia in sola lettura segue la sessione",}diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.tsindex 0e92b915..50b6405e 100644--- a/slides/src/i18n/ja.ts+++ b/slides/src/i18n/ja.ts@@ -449,4 +449,13 @@ export const ja: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "この {kind} は {mb} MB です。埋め込むと .bento.html 内に保持されますが、ファイルが大きくなり、開閉や保存が遅くなります。\n\nそれでも埋め込みますか?(キャンセルして、デッキを小さく保つためにパネルでホスト URL を貼り付けてください。)","URL": "URL","…or paste a media URL": "…またはメディア URL を貼り付け",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "ライブビューア:この共有セッションに追従し、変更をリアルタイムで表示しますが、デッキを変更することはできません(リレーが強制します — 読み取り専用は単なる自主ルールではありません)。",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "封印された配布用:直接プレゼンを開きます — 閲覧とプレゼンのみ、エディターもライブセッションもありません。",+ "Presentation package saved — it opens straight into the show": "プレゼンテーションパッケージを保存しました — 直接プレゼンが開きます",+ "Read-only copy saved — it follows the live session, view only": "読み取り専用コピーを保存しました — ライブセッションに追従し、閲覧のみです",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "読み取り専用 — このライブセッションを閲覧中です。閲覧とプレゼンはできますが、編集はできません。",+ "Save as presentation package…": "プレゼンテーションパッケージとして保存…",+ "This is a presentation package — view and present only.": "これはプレゼンテーションパッケージです — 閲覧とプレゼンのみ。",+ "Turn on live sharing first — a read-only copy follows the session": "先にライブ共有をオンにしてください — 読み取り専用コピーはセッションに追従します",}diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.tsindex b459ed61..895e75f5 100644--- a/slides/src/i18n/zh-Hans.ts+++ b/slides/src/i18n/zh-Hans.ts@@ -449,4 +449,13 @@ export const zhHans: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "此 {kind} 为 {mb} MB。嵌入会将其保留在 .bento.html 中,但会使文件变大,打开和保存变慢。\n\n仍要嵌入吗?(取消后在面板中粘贴托管 URL,以保持演示文稿小巧。)","URL": "URL","…or paste a media URL": "…或粘贴媒体 URL",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "实时查看器:跟随此共享会话并实时显示编辑,但永远无法更改演示文稿(由中继强制执行——只读不只是靠自觉)。",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "密封的分发件:直接打开放映——仅供查看和演示,没有编辑器,没有实时会话。",+ "Presentation package saved — it opens straight into the show": "演示文稿包已保存——它直接打开放映",+ "Read-only copy saved — it follows the live session, view only": "只读副本已保存——它跟随实时会话,仅供查看",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "只读——您正在查看此实时会话。可以观看和演示,但不能编辑。",+ "Save as presentation package…": "另存为演示文稿包…",+ "This is a presentation package — view and present only.": "这是一个演示文稿包——仅供查看和演示。",+ "Turn on live sharing first — a read-only copy follows the session": "请先开启实时共享——只读副本会跟随该会话",}diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.tsindex 080b6706..7adfb33d 100644--- a/slides/src/i18n/zh-Hant.ts+++ b/slides/src/i18n/zh-Hant.ts@@ -449,4 +449,13 @@ export const zhHant: Catalog = {"This {kind} is {mb} MB. Embedding keeps it inside the .bento.html but makes the file large and slow to open and save.\n\nEmbed anyway? (Cancel, then paste a hosted URL in the panel to keep the deck small.)": "此 {kind} 為 {mb} MB。嵌入會將其保留在 .bento.html 中,但會使檔案變大,開啟與儲存變慢。\n\n仍要嵌入嗎?(取消後在面板中貼上託管 URL,以保持簡報小巧。)","URL": "URL","…or paste a media URL": "…或貼上媒體 URL",+ // signed writes: viewer + presentation package (v0.9.18)+ "A live viewer: it follows this shared session and shows edits as they happen, but can never change the deck (the relay enforces it — read-only is not just honour-system).": "即時檢視器:跟隨此共享工作階段並即時顯示編輯,但永遠無法變更簡報(由中繼強制執行——唯讀不只是靠自覺)。",+ "A sealed hand-out: it opens straight into the show — viewing and presenting only, no editor, no live session.": "密封的分發檔:直接開啟放映——僅供檢視與演示,沒有編輯器,沒有即時工作階段。",+ "Presentation package saved — it opens straight into the show": "簡報套件已儲存——它直接開啟放映",+ "Read-only copy saved — it follows the live session, view only": "唯讀副本已儲存——它跟隨即時工作階段,僅供檢視",+ "Read-only — viewing this live session. You can watch and present, but not edit.": "唯讀——您正在檢視此即時工作階段。可以觀看與演示,但不能編輯。",+ "Save as presentation package…": "另存為簡報套件…",+ "This is a presentation package — view and present only.": "這是一個簡報套件——僅供檢視與演示。",+ "Turn on live sharing first — a read-only copy follows the session": "請先開啟即時共享——唯讀副本會跟隨此工作階段",}