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.

surface: a guide's `raea export-game` is the command it names, not `raea export` (#76)

shane8b5f153ec5a3
diff --git a/engine/cli/conformance/surface.test.ts b/engine/cli/conformance/surface.test.ts
index 1a12c2a2..bae7d54e 100644
--- a/engine/cli/conformance/surface.test.ts
+++ b/engine/cli/conformance/surface.test.ts
@@ -84,7 +84,7 @@ describe("raea's surface", () => {
const bad: string[] = [];
for (const src of sources) {
const text = src.startsWith("AGENTS.md") ? /const NOTES = `([\s\S]*?)`;/.exec(cli)![1] : readFileSync(src, "utf8");
- for (const m of text.matchAll(/`raea (\w+)/g)) if (!listed.has(m[1])) bad.push(`${src.replace(raea + "/", "")}: raea ${m[1]}`);
+ for (const m of text.matchAll(/`raea ([a-z][\w-]*)/g)) if (!listed.has(m[1])) bad.push(`${src.replace(raea + "/", "")}: raea ${m[1]}`);
// render's --at takes frame numbers (cut's and frame's take seconds)
for (const m of text.matchAll(/raea render [^\n`]*?--at ([^\s`\\]+)/g)) if (!/^(\d+|[A-Z]+)(,(\d+|[A-Z]+))*$/.test(m[1])) bad.push(`${src.replace(raea + "/", "")}: raea render --at ${m[1]} (frame numbers)`);
}