Skip to content

onlyworlds 0.25.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 13:49
· 497 commits to main since this release
  • The Markdown pack (onlyworlds.pack): a world as a few merged Markdown files for an AI notebook with source caps, NotebookLM (50 sources a notebook, 500,000 words a source, Google's FAQ) and Claude Projects (30 MB a file). python -m onlyworlds.pack FOLDER OUT or --api OUT (the doctor's variables); pack_world(world, elements, out), pack_folder, pack_api. 00-world.md holds the world's own fields and an index of every element by type (name, supertype / subtype, the description's first sentence); then one file per type present, in schema order, each element a ## Name section with its id line, its fields in schema order as **Field:** paragraphs, and every link as the target's name and type (an id the world lacks stays as the id, marked unresolved; a link to the wrong type is written with its actual type and noted). Prose is escaped so a line inside a field never becomes a heading. A known-of stub carries one line saying only the shown fields are known. Room elements (is_room_element) are left out unless --rooms; x_*, atlas_* and shadow_* fields unless --extensions; both counted in the sentence. A file past --words (default 400,000) or --bytes (default 25,000,000) splits at element boundaries into parts; when the parts pass --files (default 50), the smallest adjacent whole files merge into one named by their types; a single element past a cap is written alone and named, never cut or dropped; only a pack that cannot meet --files exits 1, every file still written. Same world, same bytes: LF, UTF-8, elements by folded name then name then id, no timestamp of the run. Overlap, written down: OKF (onlyworlds.okf) is one concept per element with frontmatter and relative links for knowledge tools like Obsidian; the pack is merged prose with names instead of paths for notebooks with source caps; the toolkit's context skill says how a session should load a world and names no file shape, and the pack is one such shape. escape_text and the field heading moved to onlyworlds._markdown, shared with okf, whose output is unchanged.
  • Tests: 26, offline: the index, every field kind, an unresolved link, a # line in prose, the known-of line, rooms and extensions out and in, the word cap splitting, the file cap merging, an oversize element kept, two runs equal bytes, the CLI's one-source rule and exit codes, --api on a fake reader; seven mutants each turned one red. Moppetopia through the demo key: 310 elements in 22 types, 23 files, 21,961 words, 162 KB.