Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Merge pull request #96 from nyblnet/claude/fix-shell-block-clear

nyblnetafc39e58b9ec
diff --cc slides/src/packs.ts
index 5c09c3c0,4804c6dc..ac5834ee
--- a/slides/src/packs.ts
+++ b/slides/src/packs.ts
@@@ -42,16 -38,12 +42,16 @@@ export interface PackListing
url: string
/** app version the pack was built against, for display */
version?: string
+ /** lowercase hex sha256 of the pack's bytes, PINNED by the signed index */
+ sha256: string
+ /** size of the pack, for display */
+ bytes?: number
}
-export type PackError = 'offline' | 'bad-pack' | 'wrong-app'
+export type PackError = 'offline' | 'bad-pack' | 'wrong-app' | 'unverified'
/** The block type carrying a pack inside a saved shell. */
- const BLOCK_TYPE = 'application/bento+lang'
+ export const PACK_BLOCK_TYPE = 'application/bento+lang'
const blockId = (lang: string) => `bento-lang-${lang}`
/** Packs destined for the file: those already in it, plus any staged since. */