Commit Graph
10 Commits
Author SHA1 Message Date
shinyobjectz a331bffd13 BL29, GD8, GD9: Windows and Linux on raea's own v0.1.1-rc4 builds, and setup blender finishes on Windows with uv. Linux (debian:trixie-slim): Blender and GodotJS's Godot installed and both smokes passed. Windows 11 from the release zip in an empty home: Blender's smoke passed, GodotJS's Godot installed and its smoke passed, and raea's own Windows Godot (sha256 as pinned, 4.6.1.stable.raea) passed it too, its typings the same text as GodotJS's (4 of 18 files CRLF there, LF in raea's). With uv on PATH, setup blender exited 1 there: the MCP add-on's installer prints an arrow Python can't encode for the cp1252 console; it now runs with PYTHONIOENCODING=utf-8 and PYTHONUTF8=1 (apps/tools blender.rs), and so run on that machine it installed the add-on and exited 0 2026-11-11 10:09:23 -08:00
shinyobjectz 848ff9471d BL36, BL37, BL38, BL39, BL40, GD9, GD11, GD12, GD13, GD14: status 11-11 with the evidence. Each command passed on a test scene (a crate, a metal ball, a pole, a floor, a sun, a point light and a moving camera): scene export 6 parts on 30 frames; blender open built the .blend in 5 s; blender back said each change at its TSX line and wrote the new box as a model; godot export 3 tracks over 30 frames; godot back the same; the shots 30 frames in their Sequence, a second render 2 s from the store; take.py and the scene-glb guide script on real files (Godot's 3d/platformer: 2,923 meshes). GD9: the three editors report 4.6.1.stable.raea, the Mac's notarized and stapled, Mac and Linux pass the smoke and the typings check; the zips' sizes and sha256 are godot.rs's pins, uploaded with the release's files 2026-11-11 09:57:46 -08:00
shinyobjectz 0ea4eabe4a BL29, GD8: Windows 11 runs raea/blender's smoke on Blender 5.2.4 and starts GodotJS's editor
- BL29: Blender 5.2.4's Windows zip (406 MB, sha256 as blender.org lists it, 901 MB installed) needs nothing more;
  sdk/blender/test/smoke.ts run under Bun 1.4.2 through raea/blender printed its PASS line (3 cubes, the last 4.000 m
  out, a bmesh volume of 1.000).
- GD8: GodotJS's QuickJS-ng Windows editor (83,915,786 bytes, raea's pinned sha256, 178 MB installed) reports
  4.6.1.stable and starts and quits headless with exit 0.
- Still to run on each: raea's own Windows and Linux builds (raea setup, then raea blender run / raea godot run), which
  come with v0.1.1's release builds.

Proven: a probe on a Windows 11 PC (x86_64) in a scratch folder, removed after.
2026-11-10 22:04:00 -08:00
shinyobjectz 65074df06e BL22: 155 any declarations down to 79: Python returns read from their own source, sequence items from Blender's C
- tools/returns.py reads what a function written in Python returns from its source, where its docstring has no
  :rtype: (or a Python property's getter, no :type:): the type every `return` gives when each shows one (a literal, a
  comparison, a builtin's result, a str method on a string, os.path's, a local only ever bound to such), "T | None"
  when a path falls off the end; anything else leaves it any. dump.py gives it as `ret`, gen uses it for functions and
  Python properties alike: CyclesPreferences.has_active_device() boolean, Mesh.edge_keys an array,
  BoneCollection.bones_recursive a set (33 members).
- pymod.ts types the items of sequences whose name doesn't give them, from the C (bmesh_py_types*.cc,
  idprop_py_api.cc): bm.select_history[i] a vertex, edge or face; a BMElemSeq's any element; a layer collection's
  BMLayerItems; a deform vertex's [group] a weight; an IDPropertyArray's numbers or booleans. BMVert/BMEdge/BMFace/
  BMLoop[layer] and an ID property group (keyed by name) no longer claim a number index.
- dump.py leaves out Python's own names a Blender module imports (anim_utils' Mapping, Sequence, Iterable, typing
  aliases, dataclass), and keeps a private class the module's functions name as their :rtype: (bpy.props'
  _PropertyDeferred, so FloatProperty() and the rest return it).
- cret.ts reads `(PyCFunction)(void *)(name)` entries (GPUShaderCreateInfo's depth_write, fragment_out,
  push_constant, uniform_buf: None) and a returned local by its every assignment (libraries.write None,
  bpy.utils.units.to_value float, bpy.app.help_text str): cret.json 284 method and 123 property names.
- Declarations typed any: bpy.types 51 -> 32 of 16 684; modules outside RNA 104 -> 47 of 1 440.

Proven: tools/gen.sh from Blender 5.2.1 (tools/cret.sh 5.2.1 first); sdk/blender's tsc and its 16 bun tests pass,
with test/returns.test.ts: the reader's 18 cases, and every member it types on live meshes, bone collections and
Cycles' preferences reads as that type in Blender.
2026-11-10 21:54:55 -08:00
shinyobjectz 33d5548254 BL29, GD8, GD2: setup on a clean machine needs no uv, git or shasum; smoke scripts; a clean Linux's libraries recorded
- raea setup blender finishes on a machine without uv (the MCP add-on becomes a note) or git (raea.blender is
  remembered only where git is; find() takes raea's download anyway).
- Downloads are checked with coreutils' sha256sum where perl's shasum is missing (debian:trixie-slim has none), for
  Blender's setup and Godot's.
- A Linux Blender that can't load its libraries names the Debian packages it needs, found in debian:trixie-slim:
  libx11-6 libxi6 libxext6 libxfixes3 libxrender1 libxkbcommon0 libsm6 libice6 libgl1 libopengl0.
- sdk/blender/test/smoke.ts: raea blender run's smoke (cubes made, a bmesh volume, mathutils against Blender's, one
  PASS line).
- GD2: pin_for(os, arch), and a test that Linux and Windows on arm64 and other systems are told to build GodotJS and
  set raea.godot.
- docs: BL29 and GD8 record the clean Mac runs and the clean Linux probe; GD2 is done.

Proven: cargo test -p raea-app-tools -p raea-app-engines. macOS with an empty HOME and the system's PATH: raea setup
blender --download, then raea blender run smoke.ts, PASS (Blender 5.2.4 LTS); raea setup godot, then raea godot run
smoke.ts, PASS. debian:trixie-slim on Modal: Blender 5.2.4 runs with the packages above, smoke.ts under Bun through
raea/blender PASS, and GodotJS's Linux editor starts headless.
2026-11-10 21:42:49 -08:00
shinyobjectz 8a9236fffa BL28: raea setup blender installs raea's add-on, and a script drives the person's own Blender live
- raea setup blender copies sdk/blender/python/raea_blender into that Blender's add-ons folder (replacing an older
  copy) and enables it, beside the MCP add-on; --check says whether it is current and on. Started with its window,
  that Blender serves raea/blender on 127.0.0.1 behind a token (~/.raea/blender/live.json).
- The add-on serves only a Blender with a window: a background one (a command-line render, setup's own checks) would
  hide the person's open Blender behind its own live.json.
- Fixed: Blender 5.2 gives a timer the window but no area, so the bridge's ui_context left view3d operators with no 3D
  view; it now fills in the area whenever there is none.
- Fixed, headless too: a slot freed by garbage collection was freed at the head of the next batch, before the read an
  await had queued for it ("reference N was released or never set"). Frees now go last, and are sent again after a
  batch that fails before them. test/bridge.test.ts forces the race: it failed before the fix and passes after.
- test/live.ts, run by hand (it opens a window): setup in a scratch BLENDER_USER_RESOURCES, Blender started with its
  window, a cube made, moved and put in edit mode and view3d.snap_cursor_to_center run, on the main thread in the 3D
  view; once Blender quits, connect({ live: true }) refuses its live.json.
- The CLI reference (docs/manual/reference/cli: setup, blender, index) follows the help.

Proven: cargo test -p raea-app-tools; sdk/blender's tsc and its 14 bun tests against Blender 5.2.1; test/live.ts 5 of 5
runs; the race test 5 of 5; bun tools/manual-ref/cli.ts check.
2026-11-10 21:42:49 -08:00
shinyobjectz 95cccb4af5 BL22: C methods and properties typed from the bindings' own C source (tools/cret.sh)
- tools/cret.sh fetches Blender 5.2.1's Python bindings (a sparse clone of its tag) and tools/gen/cret.ts reads, for
  every method and getset entry, the one Python type all its C function's returns give: None, bool, int, float, str,
  or a tuple a Py_BuildValue format makes. An error's nullptr gives nothing back; any other return leaves it unknown.
  A name is typed for a family of bindings (bmesh, gpu, mathutils, generic, bpy, aud) only when every C function bound
  to it there agrees: tools/cret.json, 274 method and 122 property names.
- dump.py marks functions written in Python (`py`), which keep what their own source says. gen applies cret.json where
  a docstring has no :rtype: or :type:, and a C property's setter takes what its getter gives.
- Declarations typed any: bpy.types 68 -> 51 of 16 684; modules outside RNA 423 -> 104 of 1 461 (gpu.state,
  gpu.matrix, aud's properties, bmesh's and gpu.types' methods).
- test/cret.test.ts reads every property so typed on live bmesh, aud, imbuf and mathutils objects in Blender: each is
  that Python type.

Proven: tools/gen.sh twice gives identical src/gen; sdk/blender's tsc and its 13 bun tests against Blender 5.2.1 pass.
2026-11-10 21:42:49 -08:00
shinyobjectz 87fa310c80 BL34: an enum Blender works out at the time takes its static items or any string; Python methods that return None are typed so (BL22)
- BL34: tools/itemf.sh reads Blender 5.2.1's own makesrna (a sparse clone of its tag) for RNA_def_property_enum_funcs
  calls with an item function, into tools/itemf.json (tools/gen/itemf.ts): 147 properties and RNA function parameters,
  a helper's placed on the struct its caller defines. gen types them `static items | (string & {})`: 222 declarations,
  Curve.fill_mode among them, so `fill_mode = "BOTH"` on a 2D curve type-checks without a cast. Python can't tell
  these enums apart (with no context Blender never calls an item function). 8 helpers whose struct is named at run
  time stay unresolved; their enums have one item or none, typed string already.
- BL22: dump.py marks a function written in Python whose source returns no value anywhere (returns_none, by its
  AST), and gen types it as returning nothing where its docstring has no :rtype: (register, draw, shade_smooth,
  keyframe helpers...). bpy.types declarations typed any: 127 -> 68 of 16 684; Python modules 470 -> 423 of 1 461.
- Two dumps of one Blender now write the same src/gen: a data member's repr sorts a set's items and drops memory
  addresses.
- The guide (bevy/blender), README and docs/blender.feature drop the BL34 cast.

Proven: sdk/blender's tsc and its 12 bun tests against Blender 5.2.1 (bridge, rna, mathutils); test/typing.ts sets a
2D curve's fill_mode to "BOTH" and still refuses rotation_mode "XYZW"; run by `raea blender run`, the same script
prints fill_mode BOTH; tools/gen.sh twice gives identical src/gen.
2026-11-10 21:42:49 -08:00
shinyobjectz b2631ff5b6 raea/blender and raea/godot: Blender's and Godot's whole APIs from TypeScript (docs/blender.feature BL22-BL35, docs/godot.feature GD1-GD10)
Shane, 11-10: "include natively a blender api package in raea/blender using samchon/blendia as good starting place and
get us to a solid scripting parity to the official blender python api. we will own this ourselves", and "make sure to
add GodotJS which should add a more complete integration and bindings for godot integration".

raea/blender (sdk/blender, started from samchon/blendia, MIT, and rewritten): bpy, bmesh, mathutils, bpy_extras and
gpu typed from Blender 5.2.1's own RNA and docstrings (tools/gen.sh: 1809 structs, 2498 operators, 41 modules outside
RNA; 102 of about 12 900 members any), run against a real Blender. Paths are lazy as Python's attribute access is
(writes and calls sent in order, reads awaited, py.pin for a stable handle), errors are Python's (BlenderError),
mathutils is computed in TypeScript with Blender's maths (1450 values within 1e-5 of Blender's), float arrays are
the value Blender gives (Vector, Matrix, Euler, Quaternion, Color), a call that makes a thing by its type returns
that class (tools/refine.py), node sockets are typed by name, and every argument can be given by keyword.
`raea blender run SCRIPT.ts [FILE.blend] [ARGS...]` runs a script on raea's engine against a headless Blender
(apps/tools blender_bridge.rs, runtime/calls blender.post); under Bun or Node it starts its own, or joins the person's
Blender through raea's add-on (python/raea_blender).

raea/godot (sdk/godot) on GodotJS (MIT): Godot 4.6.1's every class, singleton, enum and builtin typed from GodotJS's
codegen, JavaScriptCore on the Mac and QuickJS-ng on Windows and Linux (no V8). `raea setup godot` downloads GodotJS's
editor build pinned by size and sha256 (apps/tools godot.rs); `raea godot run SCRIPT.ts` bundles the script and runs
its default export (a function given the SceneTree and ARGS, or a SceneTree subclass as the main loop) headless or
with --window, --movie recording with Godot's Movie Maker (the window kept on top, the frame size from the project),
a callback that throws stopping the run, RAEA_CWD with cwd() and resolve() for paths; `raea godot types` and
`raea godot open` (godot_run.rs).

The guides: raea guide bevy/blender gains "A step in TypeScript" and bevy/godot is new, each example type-checked
with its SDK's tests (sdk/blender/test/guide.ts, sdk/godot/test/guide.ts) and run as shown; raea guide bevy routes to
bevy/godot. Their raea-skills copies are 7497067 (branch blender-godot-ts, not pushed). sdk/tsconfig.base.json maps
raea/blender and raea/godot; tools/release.sh ships @raea/blender's python/.

Proven: sdk/blender's tsc and bun tests against Blender 5.2.1; sdk/godot's tsc and its 7 bun tests against the
installed GodotJS; apps/tools godot_run's unit tests; post 07b's film (releases/0.1.1/src/engines), its left half
built and keyed by raea/blender and its right half recorded by raea/godot.
2026-11-10 21:42:49 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00