Skip to content

refactor(cli): run export episode through the store - #50

Closed
nichinichisou0609 wants to merge 1 commit into
refactor/store-spot-roomfrom
refactor/store-episode
Closed

nichinichisou0609 wants to merge 1 commit into
refactor/store-spot-roomfrom
refactor/store-episode

Conversation

@nichinichisou0609

Copy link
Copy Markdown
Collaborator

Summary

  • adv.episode stage: one episode (a MasterAdv id a command asks for) -> episode.json (facts: commands, resources). adv.extract runs through a task catalog holding the closures of the episode's script, its -Text, -Sound, -SoundCueSheet and -Video shards and the ADV player settings. Whether a resource key exists is answered from an input listing the catalog's keys under the prefixes of the episode's resources, so a key outside them leaves the task unchanged. MasterAdv, MasterAdvChat and MasterText are inputs.
  • TaskCatalog serves several keys: closures by stable name (of_closures), the names resolve lists, internal ids and further known keys.
  • The shared stage helpers (master table inputs, closure context, a task's master directory) are public in modelstages.
  • export episode writes the task's file.

Stacked on #49.

Tests

tests/cli/test_subjects.py: what the task catalog answers for the episode's keys, a store hit when an unrelated key is added, a new task when a resource key appears. tests/pipeline/test_modelstages.py: the multi-key task catalog.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

The adv.episode stage exports one episode (a MasterAdv id a command asks
for) into the store: adv.extract runs through a task catalog that holds
the closures of the episode's script and shards and of the ADV player
settings, and answers which resource keys exist from the catalog's keys
under the prefixes of the episode's resources. A key outside those
prefixes leaves the task unchanged; the master tables the extractor reads
are inputs.

TaskCatalog serves several keys: their closures by stable name, the
names resolve lists, the internal ids extractors read and further known
keys. The shared stage helpers (master table inputs, closure context,
the master directory of a task) are public in modelstages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nichinichisou0609

Copy link
Copy Markdown
Collaborator Author

Closing: the exports are moving to an assembly from per-object results, which covers these commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant