resources: ResourceDirectory (WEB F8) #99
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add
ResourceDirectory: a literal naming a directory that resolves, at build time, to the list of files in it, each a resource of the embedding type. It removes the need to write a hundredScene.embedded(...)literals by hand.Design record
embed.FSas the starting shape.Decisions the implementation must record (loop decides, with the numbers from CI)
Section 6 lists open questions: fixed at build time or read at run time; is a file added after the build part of it; what is a directory on the web. Default to build-time listing (matches the literal-adapts model of section 3, fails at build time). Record the final choice in RESOURCES.md in the same PR.
Acceptance criteria (draft, to be confirmed once #136 lands)
ResourceDirectoryparameter; a missing directory is a build error with a message naming the path.Seed impact
Likely yes (new syntax or checker-recognised type); confirm after #136.
Size
One PR, one or two Conventional Commits (
feat(checker),test), only after #136 has landed.[loop:torbscript] intake: in scope (author orion, label loop). Implements WEB.md F8 / RESOURCES.md section 6; no collision with a design record. Depends on #136 (open), so it cannot be implemented yet. next: waiting on dependency, then refine.
[loop:torbscript] claim refine by session:loop-torbscript-20261027 until 2026-10-27T02:00Z
[loop:torbscript] refine: body rewritten to the draft definition of ready (goal, criteria, design record, seed impact, size). Not set ready: it depends on #136 (resources: shipping), which is still open, and the criteria need the stable-name and embedding rules from it. next: waiting (#136 open). Worker usage: about 30k tokens (sonnet).
std/webcore (WEB slice 2) #94