Use stored_bytes when a package needs to bring file bytes with it: help text, JSON rules, images, prompts, lookup tables, or any other package-owned material.
help-package that carries one text file. The app does not read random disk paths. The package declares the file, Runtime Kit checks the path, and the admitted package owns the bytes under a stable name.When to use this
Usestored_bytes when the file is part of the package.The important rule: the package may point at files inside itself. It may not quietly read the rest of the machine.
What you will build
Folder shape
Boundary file
File content
Verify the recipe
Use this checklist before adding the bytes to a bigger feature:What should happen
Why this shape works
The package gives the bytes a public package name:getting-started-help. The package also points at the file inside the package folder. Bitfield can reject a file path that tries to escape the package.That keeps the package file clear. The package can bring bytes with it, but it cannot quietly read random files from the machine.Common failures
Extend it
After this works, you can grow the package without changing the shape:- Add another
stored_bytesentry for a second file. - Add a
recordthat points a screen at which help file to show. - Add a
slottarget that can search or summarize the package-owned bytes. - Add a React surface that reads named data and asks the target for help.