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.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
FP14a: room for fingerprint in L1's checks. raea/fingerprint gets its SDK reference page under Tools, every field of a fingerprint.ts described; the four crates have their layers; raea-sys-fingerprint-use drops serde_json, which it never used; and raea-cli's hook and check dispatch are one line each, as world, findings and notes are, keeping the crate at its 2000 lines with raea fingerprint in it
shinyobjectzdb58ead2c904
diff --git a/docs/manual/reference/sdk/dev_tools.md b/docs/manual/reference/sdk/dev_tools.mdindex 27b2ca26..34884057 100644--- a/docs/manual/reference/sdk/dev_tools.md+++ b/docs/manual/reference/sdk/dev_tools.md@@ -1,7 +1,7 @@---title: "raea/dev_tools"summary: "Checks and lints you can run from code: a motion performance's lint report."-order: 103+order: 104sources: ["sdk/raea/src/dev_tools.ts"]---diff --git a/docs/manual/reference/sdk/fingerprint.md b/docs/manual/reference/sdk/fingerprint.mdnew file mode 100644index 00000000..2612540a--- /dev/null+++ b/docs/manual/reference/sdk/fingerprint.md@@ -0,0 +1,72 @@+---+title: "raea/fingerprint"+summary: "A fingerprint (fingerprint.ts, docs/fingerprint.md): a person's or a team's sense of good work as axes, each with a small head over on-device encoders that `raea fingerprint` trains from their labels. `raea fingerprint new NAME` writes one with raea's base taxonomy; add an axis, reword one, or remove one, and raea retrains. Rust reads the default export (systems/fingerprint/src/taxonomy.rs), so these types follow its fields."+order: 103+sources: ["sdk/raea/src/fingerprint.ts"]+---++A fingerprint (fingerprint.ts, docs/fingerprint.md): a person's or a team's sense of good work as axes, each with a small head over on-device encoders that `raea fingerprint` trains from their labels. `raea fingerprint new NAME` writes one with raea's base taxonomy; add an axis, reword one, or remove one, and raea retrains. Rust reads the default export (systems/fingerprint/src/taxonomy.rs), so these types follow its fields.++<!-- generated:begin by tools/manual-ref/sdk.ts from the SDK's exports and doc comments; edit outside this block -->++```ts+import { fingerprint } from "raea/fingerprint"+```++`raea/fingerprint` exports 1 function, 4 types. Source: [sdk/raea/src/fingerprint.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/fingerprint.ts).++## Functions++### `fingerprint`++A fingerprint (fingerprint.ts): its axes and the encoders its heads were trained on.++```ts+function fingerprint(f: Fingerprint): Fingerprint+```++## Types++### `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. |++### `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. |++### `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"+```++<!-- generated:end -->diff --git a/docs/manual/reference/sdk/index.md b/docs/manual/reference/sdk/index.mdindex 200d3dc6..6f943939 100644--- a/docs/manual/reference/sdk/index.md+++ b/docs/manual/reference/sdk/index.md@@ -95,6 +95,7 @@ Checks, lints and a headless App you can drive.| Import | What it's for | Exports || --- | --- | --- || [`raea/check`](check.md) | A check written as a system over a composition's world: what `raea check` runs for a rule a controller holds. | 8 functions, 1 class, 38 types |+| [`raea/fingerprint`](fingerprint.md) | A fingerprint (fingerprint.ts, docs/fingerprint.md): a person's or a team's sense of good work as axes, each with a small head over on-device encoders that `raea fingerprint` trains from their labels. `raea fingerprint new NAME` writes one with raea's base taxonomy; add an axis, reword one, or remove one, and raea retrains. Rust reads the default export (systems/fingerprint/src/taxonomy.rs), so these types follow its fields. | 1 function, 4 types || [`raea/dev_tools`](dev_tools.md) | Checks and lints you can run from code: a motion performance's lint report. | 2 functions, 3 types || [`raea/remote`](remote.md) | A headless Bevy App you open, step and query from TypeScript, through Bevy's remote protocol. | 1 class, 1 type |diff --git a/docs/manual/reference/sdk/remote.md b/docs/manual/reference/sdk/remote.mdindex c2586bef..594d5728 100644--- a/docs/manual/reference/sdk/remote.md+++ b/docs/manual/reference/sdk/remote.md@@ -1,7 +1,7 @@---title: "raea/remote"summary: "A headless Bevy App you open, step and query from TypeScript, through Bevy's remote protocol."-order: 104+order: 105sources: ["sdk/raea/src/remote.ts"]---diff --git a/engine/cli/src/cli.rs b/engine/cli/src/cli.rsindex f0ee48b2..e49fe5be 100644--- a/engine/cli/src/cli.rs+++ b/engine/cli/src/cli.rs@@ -199,14 +199,10 @@ pub fn run(args: &[String]) -> R<String> {std::process::exit(i32::from(bad));}// `hook [AGENT]`: every agent harness's tool hooks (A5d): raea show over Preview, the quick check after a save (SK10)- if args[0] == "hook" {- return raea_app_check::hook::hook(&args[1..]);- }+ if args[0] == "hook" { return raea_app_check::hook::hook(&args[1..]); }// `check PROJECT|EDIT.tsx`: every rule's check over the compositions' worlds (DR4); a video is the floor aloneif args[0] == "check" && !raea_app_direction::check::of_video(&args[1..]) { std::process::exit(raea_app_direction::check::cli(&args[1..], &CHECK)); }- if args[0] == "check" {- std::process::exit(raea_app_check::cli_with(&args[1..], spec::tastes_ts(args)?));- }+ if args[0] == "check" { std::process::exit(raea_app_check::cli_with(&args[1..], spec::tastes_ts(args)?)); }if args[0] == "world" { std::process::exit(raea_app_direction::cli(&args[1..])); } // a frame as one world of facts (docs/direction.feature DR1)if args[0] == "findings" { return raea_app_direction::findings::cli(args); } // the project's record read back (DR3)if args[0] == "notes" { std::process::exit(raea_app_notes::cli(&args[1..], spec::spec_json, notes_run)); } // a person's notes as files, restated as asks, each with a check (DR5, DR6)diff --git a/sdk/raea/src/fingerprint.ts b/sdk/raea/src/fingerprint.tsindex 952269ba..1034b987 100644--- a/sdk/raea/src/fingerprint.ts+++ b/sdk/raea/src/fingerprint.ts@@ -7,9 +7,11 @@export type Modality = "picture" | "change" | "look" | "sound" | "events";export interface Axis {+ /** Its name, short and lowercase (blur, clip, barren): what reports, marks and `--axis` call it. */name: string;/** What people say for it, best first: the word head scores it from these on day one. */words: string[];+ /** What its head reads. */modality: Modality;/** "moment" (the default), "shot" or "whole". */scope?: string;@@ -19,6 +21,7 @@ export interface Axis {check?: string;/** False where words can't find it (silence matches no description). */word_head?: boolean;+ /** The sense it's shown under in the app: pictures, sound or motion. */group?: string;}@@ -31,13 +34,17 @@ export interface Applies {}export interface Fingerprint {+ /** Its folder's name under ~/.raea/fingerprints, or a project's or workspace's .raea/fingerprints. */name: string;+ /** Whose taste it is, for evidence rows and the app. */who?: string;/** One line: what it tracks and when it judges ("Short ads for one brand: pace, type on screen, the brand's colours"). */about?: string;/** The fingerprint it builds on, by name: it started from that one's axes. */extends?: string;+ /** Which pieces it judges when its project or workspace holds more than one. */applies?: Applies;+ /** What it notices, each axis with its words and the sense its head reads. */axes: Axis[];/** Each encoder's id and its file's sha256: heads trained on other encoders' columns are refused. */encoders?: Record<string, string>;diff --git a/systems/fingerprint-use/Cargo.toml b/systems/fingerprint-use/Cargo.tomlindex 86b4b940..ef374856 100644--- a/systems/fingerprint-use/Cargo.toml+++ b/systems/fingerprint-use/Cargo.toml@@ -12,7 +12,6 @@ raea-sys-fingerprint = { path = "../fingerprint" }# a piece's columns, and the frames and sound the sheet drawsraea-sys-columns = { path = "../columns" }serde = { version = "1", features = ["derive"] }-serde_json = "1"anyhow = "1"# the sheet (sheet.rs) is a PNGimage = { version = "0.25", default-features = false, features = ["png"] }diff --git a/tools/layers.toml b/tools/layers.tomlindex 65759e12..81c5d199 100644--- a/tools/layers.toml+++ b/tools/layers.toml@@ -55,6 +55,10 @@ raea-sys-ml = "systems"raea-sys-speech = "systems"raea-sys-layout = "systems"raea-sys-vision = "systems"+# Fingerprint (docs/fingerprint.feature): the columns its heads read, and the heads+raea-sys-columns = "systems"+raea-sys-fingerprint = "systems"+raea-sys-fingerprint-use = "systems"raea-sys-song = "systems"raea-sys-perceive = "systems"raea-sys-footage = "systems"@@ -150,6 +154,8 @@ raea-app-check = "apps"raea-app-check-flash = "apps"raea-app-direction = "apps"raea-app-notes = "apps"+# `raea fingerprint`: its verbs and the resident service that keeps the encoders loaded+raea-app-fingerprint = "apps"raea-app-sound = "apps"raea-app-ci = "apps"raea-app-tools = "apps"@@ -222,6 +228,8 @@ raea-sys-tone = trueraea-sys-ml = trueraea-sys-layout = trueraea-sys-vision = true+# a file's encoder columns (Fingerprint's heads read them)+raea-sys-columns = trueraea-sys-song = trueraea-sys-k = trueraea-sys-wear = truediff --git a/tools/manual-ref/sdk.ts b/tools/manual-ref/sdk.tsindex a203af5c..8fa67970 100644--- a/tools/manual-ref/sdk.ts+++ b/tools/manual-ref/sdk.ts@@ -27,7 +27,7 @@ const GROUPS: [string, string, string[]][] = [["Video, sound and text", "Footage, pictures, sound, words and colour.", ["video", "audio", "text", "image", "asset", "color"]],["3D", "Bevy's 3D: cameras, lights, materials, meshes and the frame after it's drawn.", ["3d", "camera", "light", "pbr", "mesh", "transform", "post_process", "picking", "gizmos"]],["2D and UI", "Sprites and flat shapes, bevy_ui and Bevy's widgets.", ["sprite", "ui", "feathers"]],- ["Tools", "Checks, lints and a headless App you can drive.", ["check", "dev_tools", "remote"]],+ ["Tools", "Checks, lints and a headless App you can drive.", ["check", "fingerprint", "dev_tools", "remote"]],]const groupAt = new Map(GROUPS.flatMap(([, , ps], g) => ps.map((p, i) => [p, g * 20 + i + 2] as const)))const BEGIN = "<!-- generated:begin by tools/manual-ref/sdk.ts from the SDK's exports and doc comments; edit outside this block -->"