Skip to content

refactor(cli): run export room and spot through the store - #49

Closed
nichinichisou0609 wants to merge 1 commit into
refactor/store-subjectsfrom
refactor/store-spot-room
Closed

nichinichisou0609 wants to merge 1 commit into
refactor/store-subjectsfrom
refactor/store-spot-room

Conversation

@nichinichisou0609

Copy link
Copy Markdown
Collaborator

Summary

Two stages export scenes into the store. Their subjects are those a command asks for (the planning fact requests), so export assets plans no tasks of them:

  • room.scene: a background key -> room.glb (facts: meshCount, inactiveMeshes) and its room.json report, from the bundles of the key's closure in load order.
  • spot.scene: a Spot id -> spot.json (facts: tapTargets, skeletons) and its Spine files, from the master tables spot.extract reads and the bundles of the situation key. The bundle names spot.json lists are the task's context, so a renamed bundle gives a new task.

export room writes the scene and its report under the name -o gives. export spot places the Spot, its room and the shaders of the background's and situation's closures (unity.export, class Shader), with the shader assembly of export shader. TaskCatalog answers resolve for keys whose bundles an extractor only names.

Stacked on #48.

Tests

tests/cli/test_subjects.py: export spot on a synthetic catalog with master tables (the closures the extractors read, the names spot.json lists, the first shader of each name across both closures, the summary), store hits on a second Spot export and on export room of its background, and the usage error for a Spot key the catalog lacks.

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

Two stages export scenes into the store, with subjects a command asks
for (the planning fact "requests"):

- room.scene: a background key -> room.glb and its room.json report,
  from the bundles of the key's closure in load order.
- spot.scene: a Spot id -> spot.json and its Spine files, from the
  master tables spot.extract reads and the bundles of the situation
  key; the bundle names spot.json lists are the task's context.

export room writes the scene's glb and report under the name -o gives.
export spot places the Spot, its room and the shaders of the
background's and situation's closures (unity.export, class Shader),
sharing the shader assembly of export shader. TaskCatalog answers
resolve for keys whose bundles an extractor only names.

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