Expand description
Volume directory scaffolding.
Creates the v2 .omne/ directory structure — lib/ for static
config + docs, var/ for runtime state, wt/ for per-run
worktrees — writes the CLAUDE.md bootloader with its single-hop
@.omne/dist/AGENTS.md import, seeds the docs baseline, and
appends .gitignore entries for the runtime paths.
Idempotency contract:
create_volume_dirsusescreate_dir_all(idempotent).write_docs_baselineskipsindex.mdand any existing.gitkeep.write_gitignoreappends only missing entries under an# omnemarker.write_omne_readmeandwrite_bootloaderoverwrite unconditionally: re-runninginitalways re-stamps these files. Volume metadata inomne.md(versions, sources) is re-derived from the freshly-extracted tarballs, so the prior content is by definition stale.
Functions§
- create_
volume_ dirs - Create the v2
.omne/directory skeleton underroot. - write_
bootloader - Write the
CLAUDE.mdbootloader to the volume root. - write_
docs_ baseline - Seed the docs baseline:
index.md+.gitkeepfiles in each bucket. Idempotent — a pre-existingindex.mdis preserved and existing.gitkeepfiles are left alone. - write_
gitignore - Ensure the volume’s
.gitignorecarries the runtime entries. - write_
omne_ readme - Write stamped README content to
.omne/omne.md.