@automovie/template 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/generated/pnpm-workspace.json +3 -3
- package/generated/skills/3d-modeling/conditioning.md +42 -34
- package/generated/skills/3d-modeling/crafting/SKILL.md +6 -6
- package/generated/skills/3d-modeling/crafting/construction.md +22 -29
- package/generated/skills/3d-modeling/crafting/lofting.md +26 -24
- package/generated/skills/3d-modeling/crafting/recovery.md +8 -8
- package/generated/skills/3d-modeling/diffusion/image-hints.md +5 -5
- package/generated/skills/3d-modeling/diffusion/models.md +32 -16
- package/generated/skills/3d-modeling/diffusion/prompts.md +3 -3
- package/generated/skills/3d-modeling/diffusion/request.md +7 -5
- package/generated/skills/3d-modeling/diffusion/shape-hints.md +19 -17
- package/generated/skills/3d-modeling/inspection.md +11 -9
- package/generated/skills/3d-modeling/modularization.md +9 -9
- package/generated/skills/3d-modeling/rigging.md +44 -35
- package/generated/skills/3d-modeling/sources.md +10 -10
- package/generated/skills/contracts/development/common.md +4 -4
- package/generated/skills/contracts/development/design.md +4 -4
- package/generated/skills/contracts/development/implementation.md +7 -7
- package/generated/skills/contracts/development/testing.md +4 -4
- package/generated/skills/development/repair.md +2 -4
- package/generated/skills/documentation/SKILL.md +4 -4
- package/generated/skills/documentation/writing.md +56 -34
- package/generated/skills/motion/laws/authoring.md +20 -30
- package/generated/skills/motion/laws/contacts.md +13 -13
- package/generated/skills/motion/laws/declaration.md +8 -6
- package/generated/skills/motion/laws/transitions.md +20 -18
- package/generated/skills/motion/laws/variation.md +6 -6
- package/generated/skills/motion/laws/verification.md +8 -6
- package/generated/skills/prompting/SKILL.md +52 -34
- package/generated/skills/visual-debugging/capture.md +24 -22
- package/generated/skills/visual-debugging/comparison.md +4 -4
- package/generated/skills/visual-debugging/correction-rounds.md +6 -15
- package/generated/skills/visual-debugging/passes.md +11 -11
- package/generated/skills/visual-debugging/rendering-cost.md +2 -2
- package/lib/createAutoMovieScaffold.js +2 -20
- package/lib/createAutoMovieScaffold.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/renderAutoMovieWorkspace.d.ts +22 -0
- package/lib/renderAutoMovieWorkspace.js +141 -0
- package/lib/renderAutoMovieWorkspace.js.map +1 -0
- package/package.json +5 -5
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +22 -21
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -7
- package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +14 -10
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -10
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +16 -18
- package/scaffold/instructions/.agents/skills/audio/diffusion/SKILL.md +18 -0
- package/scaffold/instructions/.agents/skills/audio/diffusion/cloning.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/diffusion/models.md +59 -0
- package/scaffold/instructions/.agents/skills/audio/diffusion/prompts.md +45 -0
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +7 -5
- package/scaffold/instructions/.agents/skills/audio/generated-sound.md +5 -3
- package/scaffold/instructions/.agents/skills/audio/listening.md +13 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +6 -6
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +4 -2
- package/scaffold/instructions/.agents/skills/automovie/SKILL.md +32 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +6 -29
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +13 -13
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +18 -7
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +9 -6
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +6 -7
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +18 -20
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +4 -6
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +12 -13
- package/scaffold/instructions/.agents/skills/contracts/items.md +26 -0
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +37 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +3 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +0 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +11 -14
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +3 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +2 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +1 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +6 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +2 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +3 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +2 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +6 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +4 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +2 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +2 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +3 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +6 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +19 -22
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +9 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +3 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +1 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +0 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +1 -1
- package/scaffold/instructions/.agents/skills/development/SKILL.md +14 -24
- package/scaffold/instructions/.agents/skills/development/entities.md +19 -15
- package/scaffold/instructions/.agents/skills/development/modules.md +31 -0
- package/scaffold/instructions/.agents/skills/development/source-layout.md +66 -50
- package/scaffold/instructions/.agents/skills/development/testing.md +10 -11
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +7 -7
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
- package/scaffold/instructions/.agents/skills/evidence/answering.md +3 -3
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +4 -4
- package/scaffold/instructions/.agents/skills/image/SKILL.md +8 -19
- package/scaffold/instructions/.agents/skills/image/canon-references.md +16 -6
- package/scaffold/instructions/.agents/skills/image/diffusion/SKILL.md +23 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/conditioning.md +29 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/consistency.md +25 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/editing.md +15 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/finishing.md +11 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/models.md +35 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/prompting.md +27 -0
- package/scaffold/instructions/.agents/skills/image/turnaround-views.md +6 -2
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +15 -32
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +15 -15
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +34 -26
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +5 -5
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +14 -10
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +12 -8
- package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +23 -9
- package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +20 -8
- package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -16
- package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +18 -12
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +6 -6
- package/scaffold/instructions/.agents/skills/motion/judgment.md +37 -0
- package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +11 -11
- package/scaffold/instructions/.agents/skills/motion/laws/extension.md +15 -11
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +47 -17
- package/scaffold/instructions/.agents/skills/motion/performance.md +11 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +15 -15
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +5 -5
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +7 -5
- package/scaffold/instructions/.agents/skills/motion/staging.md +10 -8
- package/scaffold/instructions/.agents/skills/production/SKILL.md +11 -38
- package/scaffold/instructions/.agents/skills/production/assembly.md +11 -5
- package/scaffold/instructions/.agents/skills/production/captions.md +4 -4
- package/scaffold/instructions/.agents/skills/production/director.md +17 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +33 -11
- package/scaffold/instructions/.agents/skills/production/project-context.md +64 -22
- package/scaffold/instructions/.agents/skills/production/reorganization.md +3 -3
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +7 -11
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +7 -7
- package/scaffold/instructions/.agents/skills/production/workflow.md +45 -0
- package/scaffold/instructions/.agents/skills/review/SKILL.md +10 -15
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +51 -30
- package/scaffold/instructions/.agents/skills/review/estimation.md +32 -13
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +6 -4
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +7 -7
- package/scaffold/instructions/.agents/skills/review/source-review.md +5 -9
- package/scaffold/instructions/.agents/skills/story/SKILL.md +10 -13
- package/scaffold/instructions/.agents/skills/story/answers.md +10 -10
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +10 -12
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +20 -14
- package/scaffold/instructions/.agents/skills/story/document-layout.md +32 -17
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +11 -9
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +4 -8
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +8 -6
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +20 -12
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +28 -11
- package/scaffold/instructions/.agents/skills/story/layers/shots.md +8 -8
- package/scaffold/instructions/.agents/skills/story/layers/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +7 -7
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +2 -2
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +9 -7
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +10 -8
- package/scaffold/instructions/.agents/skills/story/planning/research.md +15 -18
- package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +8 -7
- package/scaffold/instructions/.agents/skills/story/workflow/long.md +18 -14
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +23 -17
- package/scaffold/instructions/.agents/skills/story/workflow/short.md +22 -14
- package/scaffold/instructions/.agents/skills/video/SKILL.md +9 -14
- package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +7 -7
- package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +6 -6
- package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +29 -12
- package/scaffold/instructions/.agents/skills/video/diffusion/models.md +40 -19
- package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +23 -15
- package/scaffold/instructions/.agents/skills/video/direct-film.md +53 -0
- package/scaffold/instructions/.agents/skills/video/finishing.md +14 -12
- package/scaffold/instructions/.agents/skills/video/generated-film.md +24 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +25 -17
- package/scaffold/instructions/.agents/skills/video/requests.md +8 -8
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +20 -18
- package/scaffold/instructions/AGENTS.md +46 -46
- package/scaffold/production/README.md +10 -19
- package/scaffold/production/package.json +1 -1
- package/scaffold/production/src/IFilmProduction.ts +22 -3
- package/scaffold/production/src/executable/physics.ts +8 -4
- package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +4 -4
- package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +5 -3
- package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +7 -7
- package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +4 -2
- package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +3 -3
- package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +3 -3
- package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +4 -2
- package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +2 -2
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +17 -18
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +17 -18
- package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +4 -4
- package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +37 -21
- package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +25 -15
- package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +1 -1
- package/scaffold/production/src/markFilmProduction.ts +1 -1
- package/scaffold/production/src/subjects.ts +28 -7
- package/scaffold/production/test/features/test_recovery_publication_cancellation.ts +129 -0
- package/scaffold/production/tsconfig.json +1 -2
- package/scaffold/production/vite.config.ts +12 -0
- package/scaffold/workspace/README.md +2 -2
- package/scaffold/workspace/package.json +1 -1
- package/src/createAutoMovieScaffold.ts +2 -39
- package/src/index.ts +1 -0
- package/src/renderAutoMovieWorkspace.ts +157 -0
- package/scaffold/instructions/.agents/skills/development/reuse.md +0 -48
- package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +0 -51
- package/scaffold/instructions/.agents/skills/image/conditioning.md +0 -27
- package/scaffold/instructions/.agents/skills/image/consistency.md +0 -23
- package/scaffold/instructions/.agents/skills/image/editing.md +0 -15
- package/scaffold/instructions/.agents/skills/image/finishing.md +0 -11
- package/scaffold/instructions/.agents/skills/image/models.md +0 -18
- package/scaffold/instructions/.agents/skills/image/prompting.md +0 -25
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
# AGENTS.md
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AutoMovie lets an LLM write a screenplay and turn it into a reproducible 3D motion hint.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The motion hint can guide video diffusion or be rendered with commissioned [detail](.agents/skills/development/entities.md#detail). A commission can also end at the screenplay, hint or a standalone asset.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Starting work
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The main agent is the [director](.agents/skills/production/director.md) for every commission. A worker follows its assigned role and reports to the director.
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- Review your own work unprompted as a demanding viewer of the depicted practice, and report what you verified, not what you built.
|
|
11
|
+
At [project intake](.agents/skills/production/project-context.md#intake), confirm the deliverables and which decisions the user wants to make or delegate. For a screenplay, ask which [writing route](.agents/skills/story/workflow/routes.md#who-writes-the-screenplay) they want unless they have already chosen one. Record their answer in `PROJECT.md` before assigning the writer.
|
|
12
|
+
|
|
13
|
+
Assign narrative drafting and revision to a writer subagent, including direct writing. When the route calls for Evidence and independent review, assign each to a separate subagent at its stage.
|
|
14
|
+
|
|
15
|
+
Inspect each handoff against the commission and the stage's skill. If it falls short, show the responsible worker what needs repair and check the revision before advancing.
|
|
16
|
+
|
|
17
|
+
Resolve project paths from the directory containing `PROJECT.md`. Run commands from the directory whose README documents them.
|
|
19
18
|
|
|
20
19
|
## Principles
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
| Search the installed packages before writing, and vary a module instead of copying it | [Reuse](.agents/skills/development/reuse.md) |
|
|
28
|
-
| Divide programming by responsibility and test each module | [Development](.agents/skills/development/SKILL.md) |
|
|
21
|
+
Keep subjects simple and motion detailed.
|
|
22
|
+
|
|
23
|
+
- Use the polygon man from `@automovie/human`.
|
|
24
|
+
- Use `@automovie/archetypes` for objects, or build a coarse form.
|
|
25
|
+
- Compose actions from `@automovie/motions`.
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
Realize the screenplay in code.
|
|
31
28
|
|
|
32
|
-
|
|
29
|
+
- Take every outcome from the screenplay.
|
|
30
|
+
- Compute physics only for the response, parts and moments the scene needs.
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
Work from evidence and verify the result.
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
- Research uncertain details the task depends on. Ask the user if the answer remains unclear or sources still conflict.
|
|
35
|
+
- Finish each inspection round, then repair all its findings together by cause.
|
|
36
|
+
- Judge pictures on captured stills. Ask the user for observations that require playback or listening.
|
|
37
|
+
- Review unprompted as a critical viewer of the depicted practice. Report what you verified.
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
Finish the commission. Pause only for a user decision or approval for a destructive or outward-facing action.
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
- an offer to continue;
|
|
42
|
-
- a list of decisions that do not block the work;
|
|
43
|
-
- a report because a stage finished;
|
|
44
|
-
- a wait on background work.
|
|
41
|
+
## Attitude
|
|
45
42
|
|
|
46
|
-
|
|
43
|
+
Work with the user.
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
- Do the literal request, widening it only when the user hands that over.
|
|
46
|
+
- Follow the user's instruction over any skill.
|
|
47
|
+
- Answer a question from the user before continuing any work.
|
|
48
|
+
- Write everything the user sees in the user's language.
|
|
49
49
|
|
|
50
50
|
## Skills
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Use the [production workflow](.agents/skills/production/workflow.md#commissioned-outputs) to choose or finish a commissioned route. For work already scoped, start at its skill below. Follow links when the current decision needs their rules or prerequisites.
|
|
53
53
|
|
|
54
54
|
| Skill | Use when |
|
|
55
55
|
| --- | --- |
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
58
|
-
| [
|
|
59
|
-
| [
|
|
60
|
-
| [
|
|
61
|
-
| [
|
|
62
|
-
| [
|
|
63
|
-
| [
|
|
64
|
-
| [
|
|
65
|
-
| [
|
|
66
|
-
| [contracts](.agents/skills/contracts/SKILL.md) | Selecting, answering or citing a contract item |
|
|
67
|
-
| [documentation](.agents/skills/documentation/SKILL.md) | Writing a README, technical document, evidence prose or doc comment, not a creative body |
|
|
56
|
+
| [3d-modeling](.agents/skills/3d-modeling/SKILL.md) | Preparing a subject's form, attachment or commissioned detail |
|
|
57
|
+
| [audio](.agents/skills/audio/SKILL.md) | Making commissioned sound, a voice preview or a generated film's sound |
|
|
58
|
+
| [automovie](.agents/skills/automovie/SKILL.md) | Choosing or reading an installed package |
|
|
59
|
+
| [contracts](.agents/skills/contracts/SKILL.md) | Finding what an item asks and which work answers it |
|
|
60
|
+
| [development](.agents/skills/development/SKILL.md) | Writing code, integrations, dependencies, commands or tests |
|
|
61
|
+
| [documentation](.agents/skills/documentation/SKILL.md) | Writing a document, README, evidence answer or doc comment |
|
|
62
|
+
| [evidence](.agents/skills/evidence/SKILL.md) | Adopting a requirement, configuring checks or recording answers |
|
|
63
|
+
| [image](.agents/skills/image/SKILL.md) | Making appearance references, shot frames or views for generation |
|
|
64
|
+
| [motion](.agents/skills/motion/SKILL.md) | Composing, extending or verifying motion, staging, camera and channels |
|
|
65
|
+
| [production](.agents/skills/production/SKILL.md) | Choosing a commissioned route or managing scope, caches, assembly or handoff |
|
|
68
66
|
| [prompting](.agents/skills/prompting/SKILL.md) | Changing `AGENTS.md`, `CLAUDE.md` or a skill |
|
|
69
|
-
| [
|
|
70
|
-
| [
|
|
67
|
+
| [review](.agents/skills/review/SKILL.md) | Reviewing work, accepting deliveries or estimating requested quality |
|
|
68
|
+
| [story](.agents/skills/story/SKILL.md) | Researching, planning, writing or repairing narrative |
|
|
69
|
+
| [video](.agents/skills/video/SKILL.md) | Finishing the hint as a direct 3D film or a generated film |
|
|
70
|
+
| [visual-debugging](.agents/skills/visual-debugging/SKILL.md) | Judging pictures or checking the viewer and capture |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# {{name}}
|
|
2
2
|
|
|
3
|
-
Use an LLM to author a complete
|
|
3
|
+
Use an LLM to author a complete screenplay and program its motion, staging and camera in 3D. Assemble the result as a reproducible motion hint or finish it as a direct 3D or generated film. Start with the polygon man prepared by the installed Human package and [coarse forms]({{skills}}/development/entities.md#coarse-first) for the other subjects.
|
|
4
4
|
|
|
5
5
|
## First run
|
|
6
6
|
|
|
@@ -13,7 +13,11 @@ pnpm run evidence
|
|
|
13
13
|
pnpm test
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
The project starts with instructions, contracts and a working inspector page over an empty starter film
|
|
16
|
+
The project starts with instructions, contracts and a working inspector page over an empty starter film. Passing checks do not complete a production.
|
|
17
|
+
|
|
18
|
+
Read the [production workflow]({{skills}}/production/workflow.md) for the stages, their handoffs and the skills that own them.
|
|
19
|
+
|
|
20
|
+
Default lint and evidence check ordinary TypeScript source and tests. [Evidence configuration]({{skills}}/evidence/configuration.md) adds the narrative scope and stages to the same configuration.
|
|
17
21
|
|
|
18
22
|
## Films and the inspector
|
|
19
23
|
|
|
@@ -23,13 +27,13 @@ Each delivered video is one film in `src/composition/films/`, registered in `src
|
|
|
23
27
|
|
|
24
28
|
## Stills
|
|
25
29
|
|
|
26
|
-
Run `pnpm run review:setup` once to install the browser. `pnpm run capture --subject <film> [request]` runs `automovie capture --module src/subjects.ts`: it draws each planned still of the film through the delivery render's draw function and writes the stills, contact sheets and a record into `media/capture/<film>/`, as the [render README](https://github.com/samchon/automovie/tree/master/packages/render#capture) describes, exiting non-zero when a cell could not be drawn.
|
|
30
|
+
Run `pnpm run review:setup` once to install the browser. `pnpm run capture --subject <film> [request]` runs `automovie capture --module src/subjects.ts`: it draws each planned still of the film through the delivery render's draw function and writes the stills, contact sheets and a record into `media/capture/<film>/`, as the [render README](https://github.com/samchon/automovie/tree/master/packages/render#capture) describes, exiting non-zero when a cell could not be drawn. `pnpm exec automovie capture --file <video>` captures an encoded file's own frames around its cuts instead of a film.
|
|
27
31
|
|
|
28
32
|
The request takes the inspector address's keys, each written with `--` before it. The [render README](https://github.com/samchon/automovie/tree/master/packages/render#request-keys) lists every key with what it asks for and the requirement it serves, including marks, rounds, comparisons and the options that select exact frames or seconds.
|
|
29
33
|
|
|
30
34
|
```bash
|
|
31
35
|
pnpm run capture --subject catalog --from 12 --to 14 --events 13.1 --views "right;three-quarter@ortho"
|
|
32
|
-
pnpm
|
|
36
|
+
pnpm exec automovie capture --file media/automovie/<film>/videos/film.mp4 --from 60 --to 70
|
|
33
37
|
```
|
|
34
38
|
|
|
35
39
|
## Render and playback
|
|
@@ -42,25 +46,12 @@ With `pnpm run dev` running, `pnpm run review --url <inspector-address> --second
|
|
|
42
46
|
|
|
43
47
|
## Physical performance
|
|
44
48
|
|
|
45
|
-
[Physical feedback]({{skills}}/motion/physical-feedback.md)
|
|
49
|
+
[Physical feedback]({{skills}}/motion/physical-feedback.md) defines when to simulate. Read the installed Engine's README and types for its simulation and playback APIs.
|
|
46
50
|
|
|
47
51
|
`pnpm run physics <input-module.ts> <output.amphys> [maximum-bytes]` computes a simulated performance once from a Node module exporting `createPhysicalInput()` and writes the archive with its JSON manifest, 256 MiB at most by default. Keep the archive as a [stage cache]({{skills}}/production/stage-caches.md) under `.cache/` and regenerate it after changing physical inputs; playback, seeking and capture read it through the Engine's physical playback, which checks it against the current input's identity.
|
|
48
52
|
|
|
49
53
|
Supply `IFilmProduction.performance` from the displayed state: `src/markFilmProduction.ts` hands it to the inspection in every host, and `marks=joint,bone,contact` draws its skeleton and contact forces. The starter's empty scene supplies none.
|
|
50
54
|
|
|
51
|
-
## Make a motion hint
|
|
52
|
-
|
|
53
|
-
A motion hint is made in these steps:
|
|
54
|
-
|
|
55
|
-
1. Adopt the request in [PROJECT.md](PROJECT.md), recording its output boundary and the intended execution and capture path under [project context]({{skills}}/production/project-context.md).
|
|
56
|
-
2. Write the screenplay along its [writing route]({{skills}}/story/workflow/SKILL.md), by the [writer the user chooses]({{skills}}/story/workflow/routes.md#who-writes-the-screenplay); when the agent writes the story, [ask the user]({{skills}}/story/planning/requirements.md#asking-the-user) about it first. The route sets the layers before the [screenplay]({{skills}}/story/SKILL.md) and when evidence, independent review and a short's film draft run.
|
|
57
|
-
3. Build the coarse entities under [entity work]({{skills}}/development/entities.md) and accept every module in its [catalog cases]({{skills}}/motion/catalog-cases.md). Take the objects people use from the installed archetypes and what people do from the installed motion vocabulary, and write laws, interactions and consequences, with their tests, only for what the packages lack.
|
|
58
|
-
4. Compose every required main scene from the accepted modules under [motion]({{skills}}/motion/SKILL.md) and [staging]({{skills}}/motion/staging.md), in the folders [source layout]({{skills}}/development/source-layout.md) gives, with each shot's sound described for the video prompt under [audio]({{skills}}/audio/SKILL.md).
|
|
59
|
-
5. Prepare the [control channels]({{skills}}/motion/control-channels.md) from the same performance, with the frame and camera mapping of time-matched channels aligned. Use the supplied inspector, capture and render, or document the production's adopted replacement here.
|
|
60
|
-
6. Assemble and encode the complete work through [assembly]({{skills}}/production/assembly.md), inspect the actual output through [delivery review]({{skills}}/review/delivery-review.md), and hand off what [assembly and handoff]({{skills}}/production/assembly.md#repair-and-delivery) lists.
|
|
61
|
-
|
|
62
|
-
Other outputs complete as [commissioned outputs]({{skills}}/production/SKILL.md#commissioned-outputs) set, with their boundaries in `PROJECT.md`.
|
|
63
|
-
|
|
64
55
|
## Commands
|
|
65
56
|
|
|
66
57
|
| Command | Purpose |
|
|
@@ -76,7 +67,7 @@ Other outputs complete as [commissioned outputs]({{skills}}/production/SKILL.md#
|
|
|
76
67
|
| `pnpm run render --subject <film>` | Export one film as a picture-only video |
|
|
77
68
|
| `pnpm run review --url <address> --seconds <s>` | Record real-time playback of the running inspector page |
|
|
78
69
|
| `pnpm run capture --subject <film> [request]` | Stills, sheets and a record of a film, with views, passes, marks and round comparison |
|
|
79
|
-
| `pnpm
|
|
70
|
+
| `pnpm exec automovie capture --file <video> [request]` | Stills of an encoded file's own frames, around its cuts |
|
|
80
71
|
|
|
81
72
|
The project uses ES modules with `verbatimModuleSyntax` and `isolatedModules`: mark type-only imports and exports with `type`, and keep each file transformable on its own.
|
|
82
73
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { AutoMoviePhysicsCache, IAutoMovieMark } from "@automovie/engine";
|
|
2
1
|
import type {
|
|
3
2
|
IAutoMovieContactReceipt,
|
|
3
|
+
IAutoMovieMark,
|
|
4
|
+
IAutoMoviePhysicalFrame,
|
|
4
5
|
IAutoMoviePhysicalProfile,
|
|
6
|
+
IAutoMovieRenderSoftPropFrame,
|
|
5
7
|
} from "@automovie/interface";
|
|
6
8
|
import type * as THREE from "three";
|
|
7
9
|
|
|
@@ -10,7 +12,7 @@ import type * as THREE from "three";
|
|
|
10
12
|
*
|
|
11
13
|
* @evidence contracts/development/common.md#meaningful-documentation The comment names what one mount holds; each member states what it owns and when it runs.
|
|
12
14
|
* @evidence contracts/development/design.md#principled-representation Playback, seeking and capture all place the scene through one seek per second, so a second reached by any path draws the same state.
|
|
13
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The
|
|
15
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The hosts read the film scene and placement, optional soft surfaces, and the review sources: physical marks, named views, and film marks.
|
|
14
16
|
* @evidence contracts/development/design.md#prohibited-design-shortcuts No playback-only or capture-only member exists; named views move only a separate inspection camera, so the film camera and delivered captures are unchanged.
|
|
15
17
|
*/
|
|
16
18
|
export interface IFilmProduction {
|
|
@@ -20,12 +22,29 @@ export interface IFilmProduction {
|
|
|
20
22
|
/** Camera the Viewer renders through; camera entities move it in `seek`. */
|
|
21
23
|
camera: THREE.PerspectiveCamera;
|
|
22
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Soft prop surfaces for an exact film second, read after the film's own
|
|
27
|
+
* seek. Absent leaves all object placement with the film.
|
|
28
|
+
*
|
|
29
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the film timebase, placement order and absent behavior.
|
|
30
|
+
* @evidenceExclude contracts/development/implementation.md#principled-implementation The film owns the surface producer; this signature has no algorithm.
|
|
31
|
+
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure The film owns the surface producer; this signature has no body.
|
|
32
|
+
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts The signature maintains producer-owned surface data without providing a fallback.
|
|
33
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The signature chooses no traversal or allocation strategy.
|
|
34
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The film owns the evaluation and its already planned solve.
|
|
35
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The signature acquires no resources; the film and the draw scene own their lifetimes.
|
|
36
|
+
*/
|
|
37
|
+
softPropsAt?: (seconds: number) => readonly IAutoMovieRenderSoftPropFrame[];
|
|
38
|
+
|
|
39
|
+
/** Inspection mark kinds that may first appear after second zero; `marks` still supplies their actual geometry at the drawn second. */
|
|
40
|
+
markKinds?: readonly string[];
|
|
41
|
+
|
|
23
42
|
/** Optional physical review source: `markFilmProduction` draws its bodies' skeleton and its contact forces as `joint`, `bone` and `contact` marks. */
|
|
24
43
|
performance?: {
|
|
25
44
|
/** Scene ids and profiles for the displayed bodies. */
|
|
26
45
|
bodies: { id: string; profile: IAutoMoviePhysicalProfile }[];
|
|
27
46
|
/** Exact world state used by the current displayed frame. */
|
|
28
|
-
frame: () =>
|
|
47
|
+
frame: () => IAutoMoviePhysicalFrame;
|
|
29
48
|
/** Actual geometric or solved contact episodes. */
|
|
30
49
|
contacts: () => readonly IAutoMovieContactReceipt[];
|
|
31
50
|
/** Inspection vector length per newton of step-mean force. */
|
|
@@ -2,6 +2,10 @@ import {
|
|
|
2
2
|
AutoMoviePhysicalPlayback,
|
|
3
3
|
AutoMoviePhysicalSimulation,
|
|
4
4
|
} from "@automovie/engine";
|
|
5
|
+
import type {
|
|
6
|
+
IAutoMoviePhysicalSimulation,
|
|
7
|
+
IAutoMoviePhysicalSimulationInput,
|
|
8
|
+
} from "@automovie/interface";
|
|
5
9
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
6
10
|
import path from "node:path";
|
|
7
11
|
import { pathToFileURL } from "node:url";
|
|
@@ -15,14 +19,14 @@ async function main(): Promise<void> {
|
|
|
15
19
|
);
|
|
16
20
|
const producer: {
|
|
17
21
|
createPhysicalInput?: () =>
|
|
18
|
-
|
|
|
19
|
-
| Promise<
|
|
22
|
+
| IAutoMoviePhysicalSimulationInput.IInput
|
|
23
|
+
| Promise<IAutoMoviePhysicalSimulationInput.IInput>;
|
|
20
24
|
} = await import(pathToFileURL(path.resolve(file)).href);
|
|
21
25
|
if (typeof producer.createPhysicalInput !== "function")
|
|
22
26
|
throw new Error("Input module must export createPhysicalInput()");
|
|
23
|
-
const input:
|
|
27
|
+
const input: IAutoMoviePhysicalSimulationInput.IInput =
|
|
24
28
|
await producer.createPhysicalInput();
|
|
25
|
-
const run:
|
|
29
|
+
const run: IAutoMoviePhysicalSimulation =
|
|
26
30
|
await AutoMoviePhysicalSimulation.compute(input);
|
|
27
31
|
const bytes: Uint8Array = await AutoMoviePhysicalPlayback.encode(
|
|
28
32
|
run.cache,
|
package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "@automovie/
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieRecoveryArchiveInput,
|
|
3
|
+
IAutoMovieRecoveryArchivedModel,
|
|
4
|
+
} from "@automovie/interface";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieRecoveryArtifact,
|
|
3
|
+
IAutoMovieRecoveryArtifactInput,
|
|
4
|
+
IAutoMovieRecoveryOpenContinuation,
|
|
5
|
+
} from "@automovie/interface";
|
|
1
6
|
import {
|
|
2
|
-
type IAutoMovieRecoveryArtifact,
|
|
3
|
-
type IAutoMovieRecoveryArtifactInput,
|
|
4
|
-
type IAutoMovieRecoveryOpenContinuation,
|
|
5
7
|
describeRecoveryNamedDomains,
|
|
6
8
|
readRecoveryMetadata as read,
|
|
7
9
|
} from "@automovie/recovery";
|
package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "@automovie/
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieByteDigest,
|
|
3
|
+
IAutoMovieJsonArraySource,
|
|
4
|
+
} from "@automovie/interface";
|
|
5
5
|
import { createHash, randomUUID } from "node:crypto";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -32,9 +32,9 @@ export function writeAutoMovieRecoveryArtifact(
|
|
|
32
32
|
artifact: object,
|
|
33
33
|
arraySources: ReadonlyMap<
|
|
34
34
|
readonly unknown[],
|
|
35
|
-
readonly
|
|
35
|
+
readonly IAutoMovieJsonArraySource[]
|
|
36
36
|
> = new Map(),
|
|
37
|
-
):
|
|
37
|
+
): IAutoMovieByteDigest {
|
|
38
38
|
if (artifact === null || typeof artifact !== "object")
|
|
39
39
|
throw new Error("An artifact root must be a plain data container");
|
|
40
40
|
fs.mkdirSync(path.dirname(output), { recursive: true });
|
|
@@ -276,7 +276,7 @@ export function writeAutoMovieRecoveryArtifact(
|
|
|
276
276
|
}
|
|
277
277
|
ancestors.delete(current);
|
|
278
278
|
};
|
|
279
|
-
let result:
|
|
279
|
+
let result: IAutoMovieByteDigest;
|
|
280
280
|
try {
|
|
281
281
|
encode(artifact);
|
|
282
282
|
flush();
|
package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { decodeAutoMoviePpmImage } from "@automovie/ingest";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
IAutoMovieRecoveryCameraFile,
|
|
4
|
+
IAutoMovieRecoveryCameraView,
|
|
5
|
+
} from "@automovie/interface";
|
|
4
6
|
import { createHash } from "node:crypto";
|
|
5
7
|
import path from "node:path";
|
|
6
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
AutoMovieRecoveryCurveFormat,
|
|
2
3
|
IAutoMovieRecoveryInput,
|
|
4
|
+
IAutoMovieRecoveryMeshSections,
|
|
3
5
|
IAutoMovieRecoveryRegistration,
|
|
6
|
+
IAutoMovieRecoveryResult,
|
|
4
7
|
} from "@automovie/interface";
|
|
5
8
|
import {
|
|
6
|
-
type AutoMovieRecoveryCurveFormat,
|
|
7
|
-
type IAutoMovieRecoveryMeshSections,
|
|
8
|
-
type IAutoMovieRecoveryResult,
|
|
9
9
|
convertAutoMovieRecoveryCurves,
|
|
10
10
|
observeAutoMovieRecovery,
|
|
11
11
|
prepareAutoMovieRecoveryInput,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { decodeAutoMoviePpmImage } from "@automovie/ingest";
|
|
2
2
|
import type {
|
|
3
|
-
AutoMovieRecoveryImageRecipe,
|
|
4
3
|
IAutoMovieRecoveryImageInput,
|
|
5
4
|
IAutoMovieRecoveryImageObservation,
|
|
5
|
+
IAutoMovieRecoveryImageRecipe,
|
|
6
6
|
} from "@automovie/interface";
|
|
7
7
|
import {
|
|
8
8
|
compileAutoMovieRecoveryImageLoft,
|
|
@@ -140,12 +140,12 @@ export function recoveryImages(args: string[], sourceEpoch: string): void {
|
|
|
140
140
|
: fitAutoMovieRecoveryImageLoft(spec?.observation, spec?.policy);
|
|
141
141
|
} else {
|
|
142
142
|
const spec: {
|
|
143
|
-
recipe:
|
|
143
|
+
recipe: IAutoMovieRecoveryImageRecipe;
|
|
144
144
|
budget:
|
|
145
145
|
| Parameters<typeof compileAutoMovieRecoveryImageLoft>[1]
|
|
146
146
|
| Parameters<typeof compileAutoMovieRecoverySupportLoft>[1];
|
|
147
147
|
} = document as {
|
|
148
|
-
recipe:
|
|
148
|
+
recipe: IAutoMovieRecoveryImageRecipe;
|
|
149
149
|
budget:
|
|
150
150
|
| Parameters<typeof compileAutoMovieRecoveryImageLoft>[1]
|
|
151
151
|
| Parameters<typeof compileAutoMovieRecoverySupportLoft>[1];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieRecoveryOpenContinuation,
|
|
3
|
+
IAutoMovieRecoveryTensorFamiliesInput,
|
|
4
|
+
} from "@automovie/interface";
|
|
1
5
|
import {
|
|
2
|
-
type IAutoMovieRecoveryOpenContinuation,
|
|
3
|
-
type IAutoMovieRecoveryTensorFamiliesInput,
|
|
4
6
|
applyAutoMovieRecoveryAnalyticPublication,
|
|
5
7
|
restoreRecoveryCurveBasis,
|
|
6
8
|
} from "@automovie/recovery";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
IAutoMovieRecoveryInput,
|
|
3
|
+
IAutoMovieRecoveryMeshSections,
|
|
4
|
+
IAutoMovieRecoveryOpenContinuation,
|
|
3
5
|
IAutoMovieRecoveryRegistration,
|
|
4
6
|
} from "@automovie/interface";
|
|
5
7
|
import {
|
|
6
|
-
type IAutoMovieRecoveryMeshSections,
|
|
7
|
-
type IAutoMovieRecoveryOpenContinuation,
|
|
8
8
|
AutoMovieRecoveryOpenContinuation as O,
|
|
9
9
|
reconstructRecoveryOpen,
|
|
10
10
|
restoreRecoveryCurveBasis,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type IAutoMovieRecoveryContourFileMesh,
|
|
10
|
-
} from "@automovie/recovery";
|
|
1
|
+
import { generateAutoMovieContourLoft64 } from "@automovie/engine";
|
|
2
|
+
import type {
|
|
3
|
+
AutoMovieVector3Tuple,
|
|
4
|
+
IAutoMovieContourLoft64,
|
|
5
|
+
IAutoMovieContourLoftEmission64,
|
|
6
|
+
IAutoMovieJsonArraySource,
|
|
7
|
+
IAutoMovieRecoveryContourFileMesh,
|
|
8
|
+
} from "@automovie/interface";
|
|
11
9
|
import fs from "node:fs";
|
|
12
10
|
import path from "node:path";
|
|
13
11
|
|
|
@@ -32,7 +30,7 @@ import { createRecoveryFileVectorTable } from "../internal/createRecoveryFileVec
|
|
|
32
30
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Scalar channel buffers retain at most 8192 numbers each. Every structured generating ring flushes immediately, so at most one indivisible ring's copied points/phases are pending; its size is bounded by the original retained ring, independently of emitted-mesh limits. Each table owns at most three 65520-byte pages, totaling 393120 bytes across both tables, plus bounded headers and per-face triples. Dirty victims flush before reuse and both tables finish before success. Fragment descriptors and kernel reports grow with actual admitted output. Every acquired descriptor closes independently without replacing a primary failure.
|
|
33
31
|
*/
|
|
34
32
|
export function createAutoMovieRecoveryContourFileMesh(
|
|
35
|
-
input:
|
|
33
|
+
input: IAutoMovieContourLoft64,
|
|
36
34
|
directory: string,
|
|
37
35
|
limits: { maxVertices: number; maxTriangles: number },
|
|
38
36
|
): IAutoMovieRecoveryContourFileMesh {
|
|
@@ -56,7 +54,7 @@ export function createAutoMovieRecoveryContourFileMesh(
|
|
|
56
54
|
const descriptors: number[] = [];
|
|
57
55
|
const placeholders: unknown[][] = [[], [], [], []];
|
|
58
56
|
const pending: unknown[][] = [[], [], [], []];
|
|
59
|
-
const sources:
|
|
57
|
+
const sources: IAutoMovieJsonArraySource[][] = [[], [], [], []];
|
|
60
58
|
const counts: number[] = [0, 0, 0, 0];
|
|
61
59
|
const flush: (channel: number) => void = (channel: number): void => {
|
|
62
60
|
if (!pending[channel]!.length) return;
|
|
@@ -116,7 +114,7 @@ export function createAutoMovieRecoveryContourFileMesh(
|
|
|
116
114
|
const areaTable: ReturnType<typeof createRecoveryFileVectorTable> =
|
|
117
115
|
table(area);
|
|
118
116
|
emission = generateAutoMovieContourLoft64(input, {
|
|
119
|
-
vertex: (index: number, point:
|
|
117
|
+
vertex: (index: number, point: Readonly<AutoMovieVector3Tuple>): void => {
|
|
120
118
|
if (index !== vertices || vertices >= limits.maxVertices)
|
|
121
119
|
throw new Error(
|
|
122
120
|
"Contour vertex population exceeded its admitted output ceiling",
|
|
@@ -175,15 +173,16 @@ export function createAutoMovieRecoveryContourFileMesh(
|
|
|
175
173
|
},
|
|
176
174
|
construction: (
|
|
177
175
|
id: string,
|
|
178
|
-
points: readonly
|
|
179
|
-
phase: (point:
|
|
176
|
+
points: readonly Readonly<AutoMovieVector3Tuple>[],
|
|
177
|
+
phase: (point: Readonly<AutoMovieVector3Tuple>) => number,
|
|
180
178
|
): void => {
|
|
181
179
|
// One original ring is indivisible; no complete output collection is copied.
|
|
182
180
|
append(3, {
|
|
183
181
|
id,
|
|
184
182
|
closed: true,
|
|
185
|
-
points: points.map(
|
|
186
|
-
point
|
|
183
|
+
points: points.map(
|
|
184
|
+
(point: Readonly<AutoMovieVector3Tuple>): number[] =>
|
|
185
|
+
point.map((value: number): number => value * 0.001),
|
|
187
186
|
),
|
|
188
187
|
phases: points.map(phase),
|
|
189
188
|
});
|
|
@@ -246,7 +245,7 @@ export function createAutoMovieRecoveryContourFileMesh(
|
|
|
246
245
|
(
|
|
247
246
|
target: unknown[],
|
|
248
247
|
channel: number,
|
|
249
|
-
): [unknown[],
|
|
248
|
+
): [unknown[], IAutoMovieJsonArraySource[]] => [
|
|
250
249
|
target,
|
|
251
250
|
sources[channel]!,
|
|
252
251
|
],
|
package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "@automovie/
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieByteDigest,
|
|
3
|
+
IAutoMovieFileReceipt,
|
|
4
|
+
IAutoMovieLocalHermiteStream64,
|
|
5
|
+
IAutoMovieMesh,
|
|
6
|
+
IAutoMovieRecoveryMeshChunkOwner,
|
|
7
|
+
IAutoMovieRecoveryMeshSpool,
|
|
8
|
+
} from "@automovie/interface";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
|
|
@@ -136,7 +136,10 @@ export function createAutoMovieRecoveryMeshSpool(
|
|
|
136
136
|
construction,
|
|
137
137
|
ownership,
|
|
138
138
|
counts,
|
|
139
|
-
append: (
|
|
139
|
+
append: (
|
|
140
|
+
chunk: IAutoMovieLocalHermiteStream64.Chunk,
|
|
141
|
+
owner: IAutoMovieRecoveryMeshChunkOwner,
|
|
142
|
+
): void => {
|
|
140
143
|
const count: number = chunk.positions.length / 3;
|
|
141
144
|
if (
|
|
142
145
|
chunk.vertexStart !== counts.vertices ||
|
|
@@ -180,7 +183,9 @@ export function createAutoMovieRecoveryMeshSpool(
|
|
|
180
183
|
triangleCount: chunk.indices.length / 3,
|
|
181
184
|
physicalVertexIds: chunk.physicalVertexIds,
|
|
182
185
|
patches: chunk.faceRanges.map(
|
|
183
|
-
(
|
|
186
|
+
(
|
|
187
|
+
range: IAutoMovieLocalHermiteStream64.Chunk["faceRanges"][number],
|
|
188
|
+
): object => ({
|
|
184
189
|
...range,
|
|
185
190
|
triangleStart: counts.triangles + range.triangleStart,
|
|
186
191
|
}),
|
|
@@ -193,10 +198,7 @@ export function createAutoMovieRecoveryMeshSpool(
|
|
|
193
198
|
counts.triangles += chunk.indices.length / 3;
|
|
194
199
|
counts.chunks++;
|
|
195
200
|
},
|
|
196
|
-
commit: (
|
|
197
|
-
output: string,
|
|
198
|
-
context: object,
|
|
199
|
-
): IAutoMovieRecoveryFileReceipt => {
|
|
201
|
+
commit: (output: string, context: object): IAutoMovieFileReceipt => {
|
|
200
202
|
for (const channel of channels) flush(channel);
|
|
201
203
|
if (
|
|
202
204
|
channels[0]!.items !== counts.vertices * 3 ||
|
|
@@ -232,10 +234,7 @@ export function createAutoMovieRecoveryMeshSpool(
|
|
|
232
234
|
channel.committedFiles = channel.files.length;
|
|
233
235
|
return { ...previous };
|
|
234
236
|
},
|
|
235
|
-
publish: (
|
|
236
|
-
output: string,
|
|
237
|
-
artifact: object,
|
|
238
|
-
): IAutoMovieRecoveryByteDigest => {
|
|
237
|
+
publish: (output: string, artifact: object): IAutoMovieByteDigest => {
|
|
239
238
|
for (const channel of channels) flush(channel);
|
|
240
239
|
return writeAutoMovieRecoveryArtifact(
|
|
241
240
|
output,
|
package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "@automovie/
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieRecoveryMeshFrontier,
|
|
3
|
+
IAutoMovieRecoveryMeshFrontierInput,
|
|
4
|
+
} from "@automovie/interface";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|