Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

FP14a: raea/brief's reference page lists the fingerprint types brief.ts exports (Fingerprint, Axis, Applies, Modality and fingerprint())

shinyobjectz0226baca9a59
diff --git a/docs/manual/reference/sdk/brief.md b/docs/manual/reference/sdk/brief.md
index ac98e40f..1be28259 100644
--- a/docs/manual/reference/sdk/brief.md
+++ b/docs/manual/reference/sdk/brief.md
@@ -30,10 +30,10 @@ See [Workspaces and projects](../../concepts/workspaces.md) for where each spec
<!-- generated:begin by tools/manual-ref/sdk.ts from the SDK's exports and doc comments; edit outside this block -->
```ts
-import { brief, controller, plan, script } from "raea/brief"
+import { brief, controller, fingerprint, plan } from "raea/brief"
```
-`raea/brief` exports 5 functions, 28 types. Source: [sdk/raea/src/brief.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/brief.ts).
+`raea/brief` exports 6 functions, 32 types. Source: [sdk/raea/src/brief.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/brief.ts).
## Functions
@@ -55,6 +55,14 @@ shows a new controller in the project's feed, and an agent brings one to the per
function controller(c: ControllerInput): ControllerInput
```
+### `fingerprint`
+
+A fingerprint (fingerprint.ts): its axes and the encoders its heads were trained on.
+
+```ts
+function fingerprint(f: Fingerprint): Fingerprint
+```
+
### `plan`
An object's plan (plan.ts): its parts by name, levels, counts, materials.
@@ -87,6 +95,28 @@ function taste(t: Taste): Taste
type Agent = { name: string, role?: string, }
```
+### `Applies`
+
+Which pieces a fingerprint judges, when a project or workspace holds more than one.
+
+| Field | Type | What it is |
+| --- | --- | --- |
+| `kinds` | `string[]` | film, ad, game, playable, still, sound |
+| `tags` | `string[]` | the project's tags |
+
+### `Axis`
+
+| Field | Type | What it is |
+| --- | --- | --- |
+| `name` (required) | `string` | Its name, short and lowercase (blur, clip, barren): what reports, marks and `--axis` call it. |
+| `words` (required) | `string[]` | What people say for it, best first: the word head scores it from these on day one. |
+| `modality` (required) | `Modality` | What its head reads. |
+| `scope` | `string` | "moment" (the default), "shot" or "whole". |
+| `polarity` | `"bad" \| "good"` | "bad" (the default): a high score is the defect; "good": a high score is the quality. |
+| `check` | `string` | The `raea check` rule that measures it exactly, when one does: the check wins over the head. |
+| `word_head` | `boolean` | False where words can't find it (silence matches no description). |
+| `group` | `string` | The sense it's shown under in the app: pictures, sound or motion. |
+
### `Beat`
```ts
@@ -151,6 +181,18 @@ A field as written: its id is filled in from its label when left out.
type FieldInput = Field extends infer F ? (F extends Field ? Omit<F, "id"> & { id?: string } : never) : never
```
+### `Fingerprint`
+
+| Field | Type | What it is |
+| --- | --- | --- |
+| `name` (required) | `string` | Its folder's name under ~/.raea/fingerprints, or a project's or workspace's.raea/fingerprints. |
+| `who` | `string` | Whose taste it is, for evidence rows and the app. |
+| `about` | `string` | One line: what it tracks and when it judges ("Short ads for one brand: pace, type on screen, the brand's colours"). |
+| `extends` | `string` | The fingerprint it builds on, by name: it started from that one's axes. |
+| `applies` | `Applies` | Which pieces it judges when its project or workspace holds more than one. |
+| `axes` (required) | `Axis[]` | What it notices, each axis with its words and the sense its head reads. |
+| `encoders` | `Record<string, string>` | Each encoder's id and its file's sha256: heads trained on other encoders' columns are refused. |
+
### `Group`
```ts
@@ -181,6 +223,14 @@ type Line = { /** * a character, or "narrator" */ who: string, says: string, /**
type Mark = "todo" | "done" | "dropped"
```
+### `Modality`
+
+What an axis's head reads: the frames (SigLIP 2), how they change, their look, the sound (CLAP) or its events (YAMNet).
+
+```ts
+type Modality = "picture" | "change" | "look" | "sound" | "events"
+```
+
### `Part`
```ts
diff --git a/docs/manual/reference/sdk/index.md b/docs/manual/reference/sdk/index.md
index 6f943939..9ad2af3f 100644
--- a/docs/manual/reference/sdk/index.md
+++ b/docs/manual/reference/sdk/index.md
@@ -33,7 +33,7 @@ The composition, the app, and the specs and notes an agent writes.
| --- | --- | --- |
| [`raea`](raea.md) | The main entry: compositions, sequences, time, interpolation, springs, footage, sound and words. | 18 components, 8 hooks, 55 functions, 9 values, 91 types |
| [`raea/app`](app.md) | The App, its plugins and schedules, and the registry a video's compositions are kept in. | 1 component, 4 functions, 3 classes, 17 values, 8 types |
-| [`raea/brief`](brief.md) | The specs an agent writes as data: brief, script, taste, plan and controller, checked against raea's schemas. | 5 functions, 28 types |
+| [`raea/brief`](brief.md) | The specs an agent writes as data: brief, script, taste, plan and controller, checked against raea's schemas. | 6 functions, 32 types |
| [`raea/note`](note.md) | A person's note as a file in the project: their words kept as written, and the asks the agent restates it as. | 1 function, 4 types |
## Time and motion