automovie 0.0.0 → 0.1.0

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.
Files changed (2) hide show
  1. package/README.md +135 -20
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,6 +1,116 @@
1
- # automovie
1
+ # AutoMovie
2
2
 
3
- The command that starts an AutoMovie production. It installs the scaffold a coding agent works in: instructions, configuration and package dependencies, with no film content.
3
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/automovie/blob/master/LICENSE)
4
+ [![NPM Version](https://img.shields.io/npm/v/automovie.svg)](https://www.npmjs.com/package/automovie)
5
+ [![Build Status](https://github.com/samchon/automovie/workflows/build/badge.svg)](https://github.com/samchon/automovie/actions?query=workflow%3Abuild)
6
+
7
+ Your coding agent writes a film's screenplay and programs its staging, motion and camera; AutoMovie computes that code into the same frames every time, as a motion hint for video diffusion or as a film rendered directly.
8
+
9
+ - **Made for the motion hint.** Every part serves one output: the best hint a video diffusion model can be given of who is where, what they do, what they touch and when.
10
+ - **Simple rendering, precise motion.** People are a polygon man and sets are coarse meshes on purpose; the accuracy goes into the performance, its contacts and its timing.
11
+ - **Everything is code.** The agent writes the screenplay as text and the film as TypeScript against typed packages, so a motion is a module: tested once, accepted on stills, reused by any scene and any body.
12
+ - **The same frames every time.** The engine computes each frame from the code and a seed, so a defect is found on a still, corrected at its cause and recomputed, never regenerated.
13
+ - **No LLM and no server inside.** You bring the coding agent, the image or video models a production uses, and the machine that renders.
14
+
15
+ ## What AutoMovie is
16
+
17
+ AutoMovie is a set of npm packages and a scaffold for a production, the project of one film. `automovie create` installs the scaffold: an `AGENTS.md` and `CLAUDE.md`, the skills that tell the agent how a film is researched, written, programmed, rendered and reviewed, the contracts its work answers, and an empty Viewer. You open it in any coding agent that reads those files and direct it in natural language: what to make, what you fix, what you delegate. The agent records your decisions in `PROJECT.md` and `docs/instructions`, decides delegated choices itself, and asks only when a fixed condition conflicts or an undelegated decision blocks it.
18
+
19
+ ### Simple rendering, precise motion
20
+
21
+ A motion hint tells a video model where each person is, what they do, what they touch and when; the model supplies the surfaces. So a production draws every person as a polygon man, plain primitives over the joints of the body `@automovie/human` prepares, and every other subject as the simplest form that identifies it, and detail is an option a delivery switches on, never something a scene depends on. A polygon man has no face, so the screenplay writes attention as the turn of a head and torso, and what the hint cannot carry reaches a generated film through reference images and the prompt.
22
+
23
+ The motion is where the accuracy goes. Every movement is a goal for hands, feet and hips on their targets, a fist on the struck region, each foot on the floor at its step, both hands on a grip, scaled to the body that performs it, with contacts and reactions computed by the engine.
24
+
25
+ ### Motion as code
26
+
27
+ The cast, sets, performance, staging and camera are TypeScript the agent writes against `@automovie/interface`, the typed authoring AST, and `@automovie/motions`, the vocabulary of human actions. An action is a law that brings the body onto its targets, so one chain of actions fits people of different stature and proportion, and an action can be interrupted mid-motion. A production composes each person's performance from that vocabulary, writes a law of its own only for what the vocabulary lacks, tests it against its study, and accepts every module in catalog cases on stills before a scene uses it. A scene then only composes accepted modules, and a defect the scene shows is fixed in the module and its case, never patched in the scene.
28
+
29
+ ### The motion hint
30
+
31
+ The hint reaches a video model as a hint video and the control channels that model takes, such as pose, depth, normal, outline or a semantic mask, rendered from the same performance and aligned frame for frame. Some models restyle the hint video, some read it as a reference for motion and camera, and open models follow pose or depth passes exactly. An accurate hint does not decide what the model makes of it, so generated takes are inspected against the hint at matched frames, and the agent's report says what it verified and what only you watched.
32
+
33
+ ### Inspect and correct
34
+
35
+ `@automovie/engine` computes what each frame contains: poses within range of motion, sampled motion, staging and cuts, physics, light and sound. The same input produces the same frames in the browser Viewer, in a Node frame capture that needs no GPU, and in the exported video, so the agent judges a film on stills at the seconds that matter, every contact and cut included, fixes the module at fault, and judges the correction at the same second and camera. You watch the playback and listen, which the agent cannot.
36
+
37
+ ### No LLM and no server
38
+
39
+ AutoMovie contains no LLM and no server. The agent is yours; the engine, the motion vocabulary and the Viewer are libraries the production imports; an image or video model, when a production uses one, is reached through the provider you choose and record in `PROJECT.md`; the render runs on your machine through Chrome and FFmpeg.
40
+
41
+ ## How a film is made
42
+
43
+ ```mermaid
44
+ flowchart LR
45
+ subgraph short[Short]
46
+ brief[Brief]
47
+ end
48
+ subgraph series[Series]
49
+ settings[Settings] --> treatments[Treatments] --> scripts[Scripts]
50
+ end
51
+ brief --> screenplay[Screenplay]
52
+ scripts --> screenplay
53
+ screenplay --> code[Staging, motion and camera as code]
54
+ code --> hint[Motion-hint video]
55
+ hint -.-> film[Finished film]
56
+ code -.-> film
57
+ ```
58
+
59
+ A short runs brief → screenplay and a series settings → treatments → scripts → screenplay; in a workspace the production's folder, `movies/shorts/<name>` or `movies/series/<name>`, fixes the route. The agent follows one chain, and each link cites the decisions of the link above it, so no scene exists without a written basis and no decision goes unrealized. Each layer is inspected, repaired by cause and reviewed independently before the next starts, and a gap found downstream is repaired in the layer that owns it.
60
+
61
+ Before writing, the agent studies every practice and style the film shows, a sport, a craft, a crowd's conduct, a camera style, and keeps the sources under `references/`, because a law written without a study invents the practice.
62
+
63
+ ### A short: brief, then screenplay
64
+
65
+ A short is a film of a few minutes whose events fit one screenplay. Its brief is its canon: the fixed conditions such as running time and frame, and the decisions about world, cast, crowds, props, sets, cinematography and sound that its films share, one file per subject with an anchor per decision that every screenplay cites. Several shorts can share one brief and one world.
66
+
67
+ ### A series: settings, treatments, scripts, then screenplay
68
+
69
+ A series, a feature or an episode spans causes, setups and payoffs over many scenes, so it is written in four layers. Settings are the facts about the world and its people, places and objects, with their baseline states, relationships and what each one knows. Treatments decide the events: causes, choices, consequences, setup and payoff, and when the audience learns what. Scripts partition the events into scenes and execute each one: dialogue, action, reactions, stage, light, sound and view.
70
+
71
+ ### The screenplay
72
+
73
+ On both routes the screenplay composes what the audience sees and hears, beat by beat, with each action named as one the installed motion vocabulary performs or as a law the research describes. It is the last place a decision is made; code only realizes it. A separate expression pass then rewrites how it is seen and heard with its meaning frozen.
74
+
75
+ ### Staging, motion and camera as code
76
+
77
+ The agent builds the cast and sets as coarse entities, composes each person's performance from actions such as walk, approach, look, gesture, sit, pick up, punch and guard, and writes a law of its own, with its study and tests, for an animal, a vehicle, a crowd moving as a mass, a camera or a light. Each main scene is composed segment by segment from the accepted modules and staged for the camera, and the sound of each shot is described for the video prompt.
78
+
79
+ ### The motion-hint video
80
+
81
+ The production's Viewer plays, pauses and seeks the same performance the export uses, a Node capture draws stills of any second from any view, and the render exports the film through Chrome and FFmpeg on your machine. The agent assembles the film in the screenplay's order, renders the control channels from the same performance, inspects stills from the source and from the encoded file, and hands off the fixed inputs, the commands that reproduce it and the remaining limits. The whole hint is complete when every main scene is programmed and the whole video is assembled; stills or pilot clips do not complete it.
82
+
83
+ ### A finished film
84
+
85
+ A production can end at the screenplay or the hint, or go on to a film: rendered directly in 3D from the same code, or generated by a video model from the hint. For a generated film the agent chooses the model with you, plans each shot within the model's limits, writes the prompts, and inspects and assembles the accepted takes.
86
+
87
+ The generated production [README](https://github.com/samchon/automovie/blob/master/packages/template/scaffold/production/README.md) owns these steps, their commands and the project layout.
88
+
89
+ ## Setup
90
+
91
+ ### A single production
92
+
93
+ ```bash
94
+ npx automovie create <directory>
95
+ cd <directory>
96
+ npm install
97
+ ```
98
+
99
+ Open the directory in your coding agent and tell it what to make. The new production holds the instructions, contracts, configuration and an empty Viewer, and no film.
100
+
101
+ ### A workspace
102
+
103
+ ```bash
104
+ npx automovie create <directory> --workspace
105
+ cd <directory>
106
+ pnpm install
107
+ pnpm automovie add shorts/<name>
108
+ pnpm install
109
+ ```
110
+
111
+ A workspace keeps several productions under one `AGENTS.md`, `CLAUDE.md` and `.agents/skills`, with its own packages for code they share. Open the production's directory in your coding agent as above.
112
+
113
+ ## Commands
4
114
 
5
115
  ```text
6
116
  npx automovie create <directory> [--workspace] [--name <name>] [--force]
@@ -8,31 +118,36 @@ pnpm automovie add <shorts|series>/<name> [--name <name>] [--force]
8
118
  npx automovie sync <directory> [--check] [--baseline <directory>]
9
119
  ```
10
120
 
11
- The smallest use is `npx automovie create my-film`.
12
-
13
- A generated production needs Node.js 22.23.2 or later, and a workspace also needs pnpm. The commands of the generated production are in its [README](../template/scaffold/production/README.md).
14
-
15
- ## `create`
16
-
17
- `create` takes one target directory and installs a single production there. With `--workspace` it installs a pnpm workspace root instead: one shared `AGENTS.md`, `CLAUDE.md` and `.agents/skills`, and a `pnpm-workspace.yaml` whose members are `movies/shorts/*`, `movies/series/*` and `packages/*` and whose catalogs pin every production dependency.
121
+ ### create
18
122
 
19
- The package name is `--name` when given and otherwise comes from the directory name. For the current directory (`create .`) the command asks for a name and offers `automovie-examples`, which it uses without asking when no terminal is attached.
123
+ `create` installs a single production. With `--workspace` it installs a pnpm workspace root instead, with a `pnpm-workspace.yaml` whose members are `movies/shorts/*`, `movies/series/*` and `packages/*` and whose catalogs pin every production dependency. The package name is `--name` when given and otherwise comes from the directory name.
20
124
 
21
- ## `add`
125
+ ### add
22
126
 
23
- Run `add` from a workspace root, the directory that holds `pnpm-workspace.yaml`. It does not search parent directories. `add shorts/<name>` writes a production into `movies/shorts/<name>`, and `add series/<name>` into `movies/series/<name>`. A short is written as a brief and then the screenplay; a series is written in four layers: settings, treatments, scripts and screenplay. The new production takes its dependencies from the root's catalogs and its skills from the root's `.agents/skills`, so it gets no instruction copy of its own. `--name` sets the package name as in `create`.
127
+ `add` runs at a workspace root, the directory holding `pnpm-workspace.yaml`. `add shorts/<name>` writes a production into `movies/shorts/<name>` and `add series/<name>` into `movies/series/<name>`; `pnpm install` again links it. The production takes its dependencies from the root's catalogs and its skills from the root's `.agents/skills`.
24
128
 
25
- ## `sync`
129
+ `create` and `add` refuse a non-empty target unless `--force` is given, which replaces files at the same paths.
26
130
 
27
- Upgrading `automovie` never changes an installed project. `sync` is the explicit update, run on a single production or a workspace root. It rewrites `AGENTS.md`, `CLAUDE.md` and the bundled skill files, except the contracts, the checklists a production's code and writing answer. Contracts, your own skills, `PROJECT.md`, the README, configuration, source and written content stay as they are.
131
+ ### sync
28
132
 
29
- - `--check` writes nothing and exits 1 when updates or conflicts remain.
30
- - `--baseline <directory>` names the instruction files the project was installed from. It is required when files differ and the project has no `.automovie/scaffold-state.json`, and it takes precedence over that state for the files it holds.
133
+ `sync` updates the generated instructions after upgrading `automovie`, on a single production or a workspace root. It rewrites `AGENTS.md`, `CLAUDE.md` and the bundled skills and leaves the contracts, your own skills, `PROJECT.md`, the README, configuration, source and written content as they are. `--check` writes nothing and exits 1 while updates or conflicts remain, and `--baseline <directory>` names the instruction files the project was installed from. An instruction file you edited is reported as a conflict and nothing is written until you restore it, keeping your edit in a skill of your own.
31
134
 
32
- An instruction file you edited locally is reported as a conflict, and nothing is written until it is resolved. Resolve it by restoring the file and keeping your edit in a skill of your own, then run `sync` again. Instruction files that the new scaffold no longer ships are reported and kept.
135
+ ## Packages
33
136
 
34
- ## Other options
137
+ | Package | Purpose |
138
+ | --- | --- |
139
+ | [`automovie`](https://github.com/samchon/automovie/tree/master/packages/cli) | The CLI that installs and updates the scaffold |
140
+ | [`@automovie/interface`](https://github.com/samchon/automovie/tree/master/packages/interface) | The authoring AST: the types a coding agent fills in |
141
+ | [`@automovie/engine`](https://github.com/samchon/automovie/tree/master/packages/engine) | Deterministic validation and computation of everything a frame contains |
142
+ | [`@automovie/human`](https://github.com/samchon/automovie/tree/master/packages/human) | The body of a person, its skeleton and contact profile, generated by code from typed parameters (being rebuilt) |
143
+ | [`@automovie/motions`](https://github.com/samchon/automovie/tree/master/packages/motions) | Human actions, such as walk, sit and pick up, as deterministic laws scaled to the body |
144
+ | [`@automovie/ingest`](https://github.com/samchon/automovie/tree/master/packages/ingest) | Deterministic import of glTF, GLB, VRM, WAVE and PPM inputs |
145
+ | [`@automovie/recovery`](https://github.com/samchon/automovie/tree/master/packages/recovery) | Curves recovered from a reference mesh, and geometry rebuilt from them |
146
+ | [`@automovie/viewer`](https://github.com/samchon/automovie/tree/master/packages/viewer) | Three.js display, capture and inspection |
147
+ | [`@automovie/render`](https://github.com/samchon/automovie/tree/master/packages/render) | Frame schedules, edit timelines and encoder plans, with capture and encoding supplied by the calling program |
148
+ | [`@automovie/evidence`](https://github.com/samchon/automovie/tree/master/packages/evidence) | Checks that a production's code and writing answer their checklists |
149
+ | [`@automovie/template`](https://github.com/samchon/automovie/tree/master/packages/template) | The scaffold every production starts from |
35
150
 
36
- `create` and `add` refuse a non-empty target unless `--force` is given. With `--force`, files at the same paths are replaced.
151
+ ## License
37
152
 
38
- `-h`, `--help`, `-v` and `--version` must each be the only argument. Any unknown command or option is refused before anything is written.
153
+ [MIT](https://github.com/samchon/automovie/blob/master/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automovie",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Scaffold a coding-agent-first AutoMovie production repository.",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@automovie/template": "^0.0.0"
41
+ "@automovie/template": "^0.1.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@ttsc/evidence": "^0.36.3",
@@ -50,7 +50,7 @@
50
50
  "@wrtnlabs/evidence": "^0.8.2"
51
51
  },
52
52
  "scripts": {
53
- "build": "rimraf lib && ttsc",
53
+ "build": "rimraf lib && ttsc && node -e \"require('node:fs').copyFileSync('../../README.md', 'README.md')\"",
54
54
  "start": "ttsx src/bin.ts",
55
55
  "evidence": "evidence"
56
56
  },