Compare commits

...
233 Commits
Author SHA1 Message Date
shinyobjectz d6f41c605a release.yml: a plain version tag is a full release
Shane 11-09: the release after canary.3 is v0.1.0, not canary.4. A tag with a suffix (v0.1.0-rc1, canary) stays a
pre-release; a plain version (v0.1.0) is now a full release, GitHub's latest, instead of every release being made a
pre-release.
2026-11-09 06:55:57 -08:00
shinyobjectz 65eb89e635 Windows Live play runs the zip's raea, unpacked, with RAEA_NO_TREE=1 and the cases copied out of the checkout. target/dist's raea has no share/raea beside it, so its home was the checkout with the build's target/ in it, and there every 3D case ran past 300 s (v0.1.0-rc1: 10 of 13 open), where fresh-runner probes of the same zip opened them in 19 to 67 s, after release-check too. A failing case whose log is empty no longer ends the step's log loop (grep -v exits 1 on it under pipefail) 2026-11-09 06:54:59 -08:00
shaneandshinyobjectz 8b5f153ec5 surface: a guide's raea export-game is the command it names, not raea export (#76)
The check that every `raea <command>` in the agent's context exists matched \w+, which stops at a hyphen, so the
delivery and games guides' raea export-game read as raea export and failed every lane's L1 since #73. It matches commands
as the help list is read ([a-z][\w-]*); export-game and setup-audio are the hyphenated ones the guides name, both real.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 09:54:55 -05:00
shaneandshinyobjectz 39aade79f7 App steps: { frames: 30 } and { dialog: 1 } play again; a count from JS arrives as 30.0, which u32 and usize refused (#75)
raea app check reads export const steps through the JS engine, whose JSON writes every number as a double, so the
documented { frames: 30 } failed with '{"frames":30.0} is none of press, ...'. Frames and Dialog take a whole double as
the count it is and refuse 2.5, -1 and anything past the type. Tests for both, checked against the unfixed enum.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 09:20:09 -05:00
shaneandshinyobjectz c5a6d4f846 Modes and verbs, past a recipe: each mode's decisions and how it fails, each verb's Decide and When it goes wrong; skills at raea-skills c507860 (#74)
The five modes each name the choices that make or break the piece, with the default that comes easily and why to
question it, and a table of how it fails (what you see, why, what to change). The nineteen verbs each say what to
decide before changing anything and what a wrong pass looks like.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 09:18:41 -05:00
shaneandshinyobjectz 9ce80fc134 Delivery and apps guides (motion/delivery, motion/interface), reference/platforms.md from the app's publishing guidelines; skills at raea-skills 261e854 (#73)
motion/delivery.md: from the brief and the delivery controller to one composition per shape, cutdowns as their own
edits, UI zones checked with raea check --shape --platform, captions and loudness, file names and versions, export tags,
and publishing as the person's (the app's Publish view). Its example renders in 9:16, 1:1 and 16:9.
motion/interface.md: an app built state by state for modes/tool, roles and labels, steps that walk every state, the
check read PNG by PNG. Its example passes raea app check on web (7 steps).
tools/skills.sh gen writes reference/platforms.md from apps/app src/publish/specs.ts at the recorded commit, and check
holds it current like the other references. motion.md routes to both guides.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 09:13:58 -05:00
shaneandshinyobjectz b7fc9e964f skills: the craft guides travel with the raea skill (raea-skills 4db36f6), and tools/skills.sh coverage says what nothing teaches (#72)
tools/skills.sh gen copies sdk/guides/craft into the skill by one list (copies()): bevy/ as 3d/ as before, and now
motion.md and motion/, and the router, floor, rubric, modes/ and verbs/ under craft/, each folder with its NOTICE. check
fails on a copy that differs from its guide and on a copy whose guide is gone, in any of those folders (3d/plugins.md
and 3d/rows.md are the skill's own).

tools/skills.sh coverage lists every verb in raea's help, every SDK entry (sdk/raea/src) and every feed tool with whether
a guide or the skill teaches it outside reference/; check warns on each untaught one, so new engine surface shows in
L1. COVERAGE_SKIP holds what an agent never runs (hook, traces, raea/dev_tools, raea/test), each with why. On this main
with raea-skills 4db36f6: 43 of 43 verbs, 28 of 28 SDK entries, 19 of 19 feed tools. Mutants checked:
an edited copy and an orphaned copy fail, an untaught verb warns.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 09:07:00 -05:00
shaneandshinyobjectz 1faf24f9ac skills: raea-skills bc52595 (feed.md's four new feed tools, files.md's new ~/.raea paths, the skill tested against 0.1.0-rc1, a controller is not a feed item) (#71)
raea-skills #10 regenerates reference/feed.md (controller_post, editor_selection, editor_edit, item_tags; feed_post's
changed, export, tags, uses) and files.md (~/.raea/feed, media, plugins.json, usage-queue.json) from origin/main with the
feed app at raea-feed 1b3b9fe, and stamps the skill raea-tested-against 0.1.0-rc1 with rc1's upstream snapshot; #3 adds
SKILL.md's paragraph on controllers against notes and the feed's controller_post. tools/skills.sh check passes on that
export.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 08:56:04 -05:00
shinyobjectz bc052693ac Ray tracing: a chrome ball under Solari reflects a panorama's sun
Solari gated light sampling on a glossy metal by its roughness (6% of paths at 0.06), too rarely for a small sun to
show; a metal short of a perfect mirror now samples lights on at least a quarter of its paths, which stays unbiased as
the weights divide by the gate. Off a mirror's specular lobe, which light sampling can't reach, rays see the
panorama's own sun, in Solari and the path tracer alike.
2026-11-08 22:03:28 -08:00
shinyobjectz b301c65570 Ray tracing: see-through materials, uv_transform and a panorama's sun under Solari and the path tracer
bevy_solari 0.20 is vendored (vendor/bevy_solari, changes marked "raea:"). Each TLAS instance now carries a mask, so a
ray finds the nearest opaque hit and then walks the see-through instances up to it: Mask materials stop it by their
cutoff, Blend by the chance of their alpha, Premultiplied by that plus their clear coat's Fresnel share (the path
tracer shades the coat alone, weighted back), and Add never. Before, every traced mesh was opaque, so a transparent
skin turned what it covered black. StandardMaterial's uv_transform now applies to traced texture reads.

<Environment> finds a panorama's sun when it loads (systems/environment sun.rs), using the panorama's own floats, and
Solari samples that sun as a directional light. Inside the sun's disk the environment map shows the sky around it, so
its light isn't counted twice; camera rays and mirror bounces still see the panorama's sun. The path tracer bends a
normal-mapped normal that faces away from a grazing ray, which removes the black streaks toward the horizon of a bumpy
plane.
2026-11-08 21:26:44 -08:00
shinyobjectz 19b72d3dee Ray tracing and shaders: a ShaderExtension that doesn't compile refuses the render, and <Pathtracer /> no longer panics on its first frame
- raea-sys-shader (failed.rs): a shader raea registers for a scene (a ShaderExtension's surface and lit hooks, an own
  material's, a UI material's) that doesn't compile left its pipeline out, the frame drew without it (black) and the
  render said APPLIED. The render world now finds those pipelines in Bevy's cache and refuses the render with the
  compiler's error, through raea-gpu-device's refuse, which the frame's read back checks. Repro: `patch` (a WGSL
  reserved word) as a variable in a surface() hook.
- engine/render/raytrace: SolariPlugins makes every StandardMaterial deferred, but Bevy's Pathtracer requires only Hdr,
  so a <Pathtracer /> camera had no deferred prepass and Bevy's prepass queue panicked unwrapping its deferred phase.
  A Pathtracer camera now gets DepthPrepass and DeferredPrepass.
2026-11-08 20:46:49 -08:00
shinyobjectz f63bbca23b Live play: each bevy-ts case's run is bounded (RAEA_CASE_SECONDS, default 180, by coreutils' timeout where there is one), so a run that hangs is that case open, with its reason, rather than the whole check stuck; rc3's Windows Live play ran 24 minutes with no output until the run was cancelled. release.yml's step streams each case's line as it finishes, bounds each case at 300s (a fresh Windows runner's first play opens in about 100s, the next in seconds) and the step at 75 minutes 2026-11-08 20:32:21 -08:00
shinyobjectz 668ae2eb08 Docs: every SDK prop, field and member described on raea.io/docs, and the reference check fails on a missing one
The SDK reference's tables had 1,476 empty cells. Each prop, field and class member the pages table now has a doc
comment in its source, or Bevy's own field doc where the SDK mirrors a Bevy type:

- doc comments on 773 declarations across 84 SDK files (song maps, goo and rigid bodies, matchmove, the clock and
  timeline, state machines, materials and their extensions, the 2D shapes, bevy_ui and feathers wrappers, colours)
- inline prop types pulled out as named, documented interfaces (EchoesProps, DaylightProps, UiScaleProps, ...), so
  each prop can carry its own doc
- types raea-bevy-sdk generates from raea's crates (/** raea_core_animate::spec::AnimKey */) take their field docs
  from the Rust source, shown as raea's ("Rust: ..."), not Bevy's; core/animate's spec.rs gains the missing ///
- a props type (StandardMaterialProps) takes its component's @bevy fields; the colour classes gain their @bevy tags
- tools/manual-ref/sdk.ts check now fails on any prop, field or member without a description, as cli.ts does for
  flags; tools/manual-ref.sh links an export's node_modules (RAEA_MODULES) so it can run in L1's lane export
2026-11-08 20:18:08 -08:00
shinyobjectz 2881f190bb Docs: a page for every CLI verb and every SDK import path on raea.io/docs
The CLI reference is now 43 pages, one a verb, each with its forms, where it runs and what each of its 164 flags does,
under docs/manual/reference/cli. The forms and flags are generated from `raea help --json`; the prose and the flag
descriptions are written by hand, kept by the generator, and checked: a new flag without a description fails.

The SDK reference is 28 pages, one an import path, under docs/manual/reference/sdk: every export with its doc, its
signature, a component's props, a class's members, its Bevy type and the parity ports and examples that use it,
generated by the TypeScript compiler, with a hand-written introduction and a type-checked example on each page.
Where the SDK mirrors a Bevy type without a comment of its own, Bevy's own doc is shown, marked as Bevy's
(tools/manual-ref/bevy-docs.json). Doc comments added to the SDK exports that had none.

tools/manual-ref.sh gen|check runs both generators.
2026-11-08 19:43:15 -08:00
shinyobjectz e19e07b12f Bevy's own Text2d inside a Canvas3D and TextureAtlasBuilder; Bevy parity for 2d/text2d (exact), 2d/texture_atlas and 2d/rotation
A <Text2d> inside a <Canvas3D> is now Bevy's Text2d (raea-sys-sprite text2d.rs, sent as a Shape2D row with its `text` spec): bevy_text lays it out and rasterises it and bevy_sprite_render orders it with the sprites by z, so TextBounds (`bounds`), FontSmoothing::None (`font_smoothing`), Text2dShadow (`shadow`), LineBreak, its <TextSpan>s, a z under a sprite and a scaled quad's pixelated look are Bevy's. After the Canvas3D it is the page's Text, as before; the page refuses bounds, shadow and "None", which it can't draw. 2d/text2d is exact at frames 10 and 60 (SSIM 1.000000, tile 0); with FontSmoothing::None taken out it fails (tile 40, 5308 px off in that block).

TextureAtlasBuilder (raea/sprite, raea/image): pictures packed by Bevy's own builder in the order added (padding, sampler), a sprite showing the whole atlas or one picture (sources.handle(texture), the row's atlas_pick, which sync_2d no longer resets to a sheet's cell). 2d/texture_atlas lists textures/rpg in load_folder's order and passes at 0.998551; its packed atlases match Bevy's.

2d/rotation: the port took the direction to the ship as -at, so the enemy straight above had x = -0 and copysign turned it the other way; player - enemy (0 - 0 = +0) as Bevy subtracts. Passes at 0.999751, its turning enemies within 8 grey of Bevy's at frames 10 and 60 (the bar alone passed a 10 degree a second error).

All 2D ports and shader/pipeline_constants rerun: 155 ported, 155 passing.

skills/ pins raea-skills f81678f (#9), whose generated sdk.md lists TextureAtlasBuilder.
2026-11-08 21:27:59 -05:00
shinyobjectz 5a77c3c834 Windows: a page's root-absolute files load from its roots (an app's posters and pictures). FileNet, FrameNet and page_fetch took a file URL's path from url's to_file_path, which on Windows refuses a path with no drive: every /media/x a page names, as file:///media/x, was None before any root was looked in, so the Windows app's cards drew no poster (its log: file:///media/pong.jpg isn't a file). A file URL's path is to_file_path's, else its decoded path as written, which the roots join as on the Mac and Linux 2026-11-08 18:11:30 -08:00
shinyobjectz 9f8a94cdfd raea's own git commits work on a clean Mac: apps/workspace git_cmd sets EMAIL ([email protected]) when it's unset
A new Mac has no user.email and a hostname git can't make one from, so the first project's commit failed with
"Author identity unknown" and onboarding never made the person's first project (found in tools/raea-app/journey.sh
from a fresh HOME). git reads $EMAIL only when user.email isn't set, so nobody's own identity is overridden. Used by
workspace::git and the controllers' commit.
2026-11-08 18:05:19 -08:00
shinyobjectz 2c5b71fef8 Every 2D primitive and ring in Mesh2d, 2D drawn with Bevy's MSAA and exact colours; Bevy parity for 2d/2d_shapes
Mesh2d takes all of bevy_math's 2D primitives (CircularSector, CircularSegment, Annulus, Capsule2d, Rhombus,
Triangle2d, Segment2d, Polyline2d, ConvexPolygon beside Circle, Rectangle, Ellipse and RegularPolygon), each with its
reflected fields, and any of them as Bevy's Ring: `ring={thickness}` (to_ring) or `inner={...}`. A Shape2D row
carries the spec as `primitive` and raea-sys-mesh's primitive_mesh builds it, as Bevy's mesher does.

Two fidelity gaps 2d_shapes exposed, fixed for every 2D part:
- A Mesh2d's ColorMaterial colour reached the GPU rounded to a hex. It now goes as the Srgba's floats (`srgb`).
- 2D drew single-sampled, where Bevy's Camera2d defaults to 4x MSAA, so edges between pixels snapped. An edit with
  2D mesh rows now gets MSAA (raea_sys_sprite::has_2d, beside has_3d at the two MSAA call sites only, not the
  encoder's), and the 2D camera keeps to the 3D camera's MSAA every frame, sharing its main texture. The frame tag's
  Camera2d on the same target keeps to it too: Bevy makes one 2D depth texture per target, so differing sample
  counts were a validation error.

A relative import of a file under raea's sdk/ that isn't an SDK package's source (a bench's shared helper) is now
copied into the bundle like any outside import; before, everything under sdk/ was assumed to come by name.

New bench helper sdk/raea/bench/bevy-parity/helpers/theme.ts: examples/helpers' basic_example_theme, option checkbox
and bottom-left column, used by 14 Bevy examples.

2d_shapes passes at 0.99987: the shapes area matches with 0 pixels off by more than 2%; the rest is the checkbox
captions' glyph edges (the known text item). Every port was rerun after the MSAA change: 152 of 152 pass.

skills/ pins raea-skills 004b866 (#8), whose generated sdk.md lists the new primitives.
2026-11-08 20:57:45 -05:00
shinyobjectz 121cdc7a0a raea-page-host's --css is a list as PATH is (split_paths: ; on Windows): split on ':', a C:\ path was two files and the page lost its stylesheets 2026-11-08 17:39:52 -08:00
shinyobjectz ce8f2d29d2 Windows: raea play no longer crashes as its mixer opens. warm_audio found the output device on a thread of its own, but on Windows cpal keeps one device enumerator a process (a OnceLock) made on the thread that first asks, and that thread's COM is torn down when it ends: where nothing else held MMDevApi.dll (GitHub's runners, no audio device) it was unloaded, and the mixer's open called through the enumerator into it, an access violation in every play since the JS error before it was fixed. The warm is for CoreAudio's start-up and runs only on Apple now; elsewhere the mixer finds the device on the play's own thread. release.yml's Live play runs without the Vulkan loader's debug lines and prints each failing case's log tail, and bevy-ts's check.sh doesn't take the loader's INFO lines for a failure's reason 2026-11-08 17:36:03 -08:00
shinyobjectz 894f9821b4 Texture binding arrays in an own Material; Bevy parity for shader_advanced/texture_binding_array, exact
A <Material>'s textures may give one list of 1 to 16 pictures, bound as the source's binding_array<texture_2d<f32>>
(ui_bind's ARRAY slot, binding 57). Bevy's AsBindGroup derive can't own an array of views, so a new
OwnArrayMaterial (systems/shader/src/own_array.rs) wraps the part's OwnMaterial and builds its bind group directly,
as Bevy's example does: the derived entries, then the array with the fallback image past the list. Its layout leaves
out the uniform buffers, because wgpu refuses a binding array beside one, so build refuses uniforms on such a source.
Its pipelines are OwnMaterial's (same key, specialize), and own_live patches it too. A source with no texture_2d of
its own samples with the first sampler, which becomes the list's first picture's. 2D and devices without texture
binding arrays are refused. The depth and picture helpers move to own_images.rs (own.rs stays under 500 lines).

The port is exact at frames 5 and 10. Two tiles swapped and linear filtering each still passed the 0.99 bar
(0.992, 0.990); a missing tile failed it.
2026-11-08 17:08:08 -08:00
shinyobjectz 4175c116fb MeshPass with depth and vertex colours, Mesh3d material={false}; Bevy parity for shader_advanced/specialized_mesh_pipeline, exact
Bevy's specialized_mesh_pipeline draws meshes that have no material by a SpecializedMeshPipeline of its own: positions
at location 0 (compressed or not), colours at 1 under VERTEX_COLORS when the mesh has them, depth tested and written
GreaterEqual, under the view's MSAA. raea's <MeshPass> now does all of it:
- `depth`: it tests and writes the view's depth as an opaque mesh does. The pass always attaches the view's depth (a
  pipeline's depth state must match the pass), so without `depth` it compares Always and writes nothing, as before.
- a mesh's colours go to location 1 under VERTEX_COLORS, as Bevy's own specialize does.
- the pipeline takes the view's MSAA sample count (it assumed 1, so it only worked with Msaa off).
And <Mesh3d material={false}> (any <Mesh>) gets no material at all, as a Bevy Mesh3d without a MeshMaterial3d, so
only its own pass draws it: row no_material, spawned beside the toon branch (engine/render line-neutral).

Parity: SSIM 1.000000, worst tile 0, batch keys 0 / 0 at frames 5 and 10. Without material={false} the pixels were
already exact, but raea drew 2 batch keys of default material Bevy doesn't. Mutants: without the vertex colours it
fails (0.961897, tile 147); without `depth` it is unchanged, since the rectangle is behind the triangles and the pass
draws far to near. custom_render_phase, custom_phase_item, custom_shader_instancing, 3d_scene and mesh2d still pass.
150 ported, 150 passing.
2026-11-08 16:42:57 -08:00
shinyobjectz 426567fb63 A camera's depth as a texture: <DepthCopy>, depth images and depth textures in <Material>; Bevy parity for shader_advanced/render_depth_to_texture
Three pieces, as Bevy's render_depth_to_texture uses them:
- "render:NAME:WxH:depth" names a depth image (Depth32Float, its sampler comparing Always), shared by every field
  that names it, as "render:NAME" images are (raea-runtime-plugins fields.rs; raea-sys-shader own::depth_image).
- <DepthCopy image> in a Camera3d (raea-sys-phase DepthCopy) copies the camera's depth buffer into that image after
  its prepass and before its main pass. A depth-only camera is Bevy's own components: RenderTarget::None { size },
  DepthPrepass and Msaa off, with an order before the main camera's.
- A <Material> may bind a texture_depth_2d and a sampler_comparison (rebind slots 25 and 26, raea-sys-shader-wgsl
  ui_bind DEPTH), its texture given by name as any other. Bevy has no depth fallback image, so a Material that binds
  none gets a shared 1 x 1 depth image there.

Parity: the scene is pixel-exact at frames 5, 10, 30 and 60 (SSIM 0.999617). The only difference left is the
instruction text's glyph edges (tile 6), the same text-over-3D blend fullscreen_material records. Mutants: without
the DepthCopy it fails (0.957, tile 35); the cube one update behind passes the bar (0.995), but the real port differs
from Bevy only in the text. Every port with a Material or StandardMaterial under shader/, shader_advanced/ and 2d/
still passes (29 ports). 149 ported, 149 passing.
2026-11-08 16:34:29 -08:00
shinyobjectz 0620a51e85 raea-sys-shader-wgsl: a WGSL source read as text, split from raea-sys-shader
raea-sys-shader was at 1989 of its 2000 lines, with a depth texture for <Material> (FC2d, Bevy's
render_depth_to_texture) still to add. Its source-text modules move to a crate of their own, unchanged:
layout.rs (an own uniform struct's fields and uniform layout), storage_layout.rs (a storage buffer's words) and
ui_bind.rs (bindings renumbered into raea's slots); raea-sys-shader imports them under the same names. Four
pub(crate) helpers are pub now. Tests: the same 12 pass (6 in each crate).
2026-11-08 16:21:10 -08:00
shinyobjectz c240b8e99d Mesh shaders: <MeshShaderPass> on a camera, and Bevy parity for shader_advanced/mesh_shader_intro, exact
A camera's MeshShaderPass (raea-sys-phase mesh_shader.rs) runs your task shader (when given) and mesh shader, which
make primitives on the GPU and hand them to your fragment shader, straight into the view's colour and depth (compared
GreaterEqual) after the main opaque pass, as Bevy's mesh_shader_intro does. Each stage is a shader file compiled as
written; bind group 0 is Globals and the view uniform; `groups` is draw_mesh_tasks' workgroup count. raea's shared
device already takes every adapter feature, so Apple silicon's mesh shaders are there; a GPU without them logs once
and draws nothing. In TSX it is <MeshShaderPass task mesh fragment groups> from raea/3d.

Found on the way and fixed: a shader file's `import super::NAME` was read a line at a time, so a statement over
lines (`import super::{\n bindings::{globals, TaskPayload},\n};`, as the example's three files write it) imported
nothing, and a nested list would have read its items as modules; it is now read to its `;` with each top-level
item's first name. And raea-sys-phase's own shaders (PhaseItem, MeshPass, ShaderInstances, GBufferPass) are now
registered in a folder of their own with their super:: imports, as a Material's are.

Parity: SSIM 1.000000 with a worst tile of 0 at frames 5, 10, 30, 60, 120, 240 and 300. Frames 240 and 300 (64 and
125 cubes) are there because the bar passed a port with no pass at all at frame 120 (0.997961, tile 23: the cubes
are small); with them that mutant fails (0.984513 and 0.967070), and one without its task shader fails at 0.0001.
The ports that read shader files (shader_material, extended_material, shader_material_2d, deferred_raymarch,
custom_render_phase, custom_phase_item, custom_shader_instancing, manual_material) still pass. 148 ported, 148 passing.
2026-11-08 16:14:57 -08:00
shinyobjectz 9a6f3d7358 Bevy parity: shader_advanced/manual_material, exact
The example prepares its ImageMaterial by hand (ErasedRenderAsset, its own bind group layout and allocator) rather
than through the Material trait; in raea it is a <Material> with manual_material.wesl as written, the Bevy logo as
its texture and wgpu's SamplerDescriptor::default() (nearest filtering, nearest mipmaps, clamp to edge) as its
sampler. SSIM 1.000000 with a worst tile of 0 at frames 5, 10 and 30. Mutants: linear filtering moves it off exact
(0.999147, tile 4), and the cube 5 cm higher fails (0.972591, tile 75). 147 ported, 147 passing.
2026-11-08 15:56:37 -08:00
shinyobjectz c5fec6aeb9 hanabi: a <Particles> mounted part way through a render draws, not a panic: its effect on a child of the part
build_particles put the ParticleEffect on the part's own entity, beside its Mesh3d, so Bevy's mesh queue and
hanabi's binned the same main entity in one phase. That passed when both came on the first frame, but a
<Particles> mounted mid-render (a fountain from frame 8) panicked "Binning main entity ... when it was already
binned" on the next frame. The effect is now a child of the part, so it follows the part's transform; the
mid-render fountain starts on its frame, and the plugin bench (check.sh avian hanabi) still passes, hanabi at
SSIM 1.000000.
2026-11-08 15:46:35 -08:00
shinyobjectz 20ff5785b6 Plugins in a sequential render: a component held for its frame lands in a fed render too; an import written in a string stays text
A render to MP4 is a fed render (each frame's rows handed to a live engine), and keyed_rows stood aside for any
live engine, so a <BevyComponent from={N}> (an avian RigidBody, a hanabi Particles) waited in Keyed for good: a
row held for its frame never changes after the load, so the frames' rows never carry it either. keyed_rows now
applies them in a live engine as well, each once on its frame. A render to a PNG folder, or of one --frame, was
right already; the cube that turns dynamic at frame 10 now falls in the MP4 too.

The bundle's import rewrite (runtime/bundle rewrite.rs) matched `import ... from "..."` anywhere in the text,
so a template string a code chip types (`import { RigidBody } from "raea/plugins/avian"`) came out as
"../plugins/avian.gen". A lexer's pass now marks strings, template text, comments and regular expressions,
and a match inside one is left as written.
2026-11-08 15:07:06 -08:00
shinyobjectz bcfdb9e2b0 Windows: live play bundles the live runtime's React again. The edit resolver took an importer as the edit's own only when its path started with the work folder's canonical one, but the resolver names a module as its path was given: on GitHub's Windows runners TEMP is the 8.3 C:\Users\RUNNER~1\.., which canonicalize() spells runneradmin, so no importer was the edit's, the live harness's react went to the engine's CommonJS copy, and every raea play threw "not a function" (its __h) before the first frame, in every Windows build so far. The importer is canonicalized as the folders are, and a package is told by a node_modules component, not a /node_modules/ substring a backslashed id never has. A unit test names the work folder by a symlink 2026-11-08 14:40:10 -08:00
shinyobjectz eeea139ade Bevy's deferred_raymarch, exact: a GBufferPass, drawn in the camera's viewport; cameras and lights placed by their own rotation
shader_advanced/deferred_raymarch (docs/control.feature FC2d) ports with a <GBufferPass> on the camera
(systems/phase gbuffer.rs): a shader file's fullscreen fragment writes Bevy's deferred G-buffer, the
lighting pass id and depth after the late deferred prepass, and its shadow entry writes every shadow view
the camera's lights draw, so Bevy's deferred lighting lights it and it casts shadows. It matches Bevy to
the pixel (SSIM 1.000000, 0 px off at frames 5, 10 and 30); the whole suite (147 ports) passes on pixels.

Three gaps closed on the way, each found by probing the shader's inputs on both sides:
- The pass sets the camera's viewport, as Bevy's own passes do. raea's target is w x (h + 1) (its tag
  row), so a fullscreen triangle drawn without it stretched its uv over 721 rows: rays a pixel low at the
  bottom.
- Camera3d sends its rotation, and the engine places the camera by it (rot_qx..qw, exact). It used to send
  a look-at point the engine turned back into a rotation in f32, about a millionth of a radian off. Bevy's
  lights do the same (their direction was also rounded to 1e-6).
- Transform.lookingAt computes in f32 as glam does (Dir3::new, cross, try_normalize,
  Quat::from_rotation_axes), the same quaternion to the bit; glam.test.ts holds it to glam's own bits.

The port sets Bevy's shadow defaults in a <Shadows> (2048 texels, cascades to 150 m, the first to 10 m,
overlap 0.2), as the other shadowed ports do. Mutants (no shadow entry, the first cascade at 8 m, 7000 lux,
the cube moved 5 cm, the camera's target 1 cm up) are each thousands of pixels off.
2026-11-08 14:40:08 -08:00
shaneandshinyobjectz ce63b7a280 Release CI: the skills unpack without raea-skills' root symlink, the macOS and Linux packing gets its disk back, and a failed styles check says why (#61)
- tools/release.sh's skills_at takes raea-skills' skills/ folder alone. Its whole tree held AGENTS.md, a link to
  CLAUDE.md, which Windows' tar can't make, so rc1's Windows packing stopped there.
- release.yml frees target/ once the binaries are in ship/ (packing and its checks read ship/ only): macos-15 ran out
  of disk packing rc1 ("No space left on device"). It prints the disk before and after.
- release-check keeps the styled render's log and prints its end when styles.gen.ts isn't written (rc0's macOS check
  failed there with its output thrown away), and a failed check uploads every step's log, not only the app's frames.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-08 17:39:20 -05:00
shinyobjectz d6c7bf8d36 R3F: a mesh swapped in with another shader program is another part, not the old one's layout
A part's three.js shader and its uniform layout are its first frame's, and an unnamed mesh's part is named by its
place in the tree. So a <primitive object> given another mesh in the same place kept the first mesh's program: a
sequential render drew the old shader, or refused when the new uniforms didn't fit its layout (a mat4 where a float
was), while a single --frame render was right. A mesh part with a ThreeShaderMaterial is now named for its program
too (a hash of its GLSL or WGSL and uniform types), so the same program keeps its part and another one gets its own.
2026-11-08 13:52:24 -08:00
shinyobjectz be8bdd597e A three.js shader's uniforms get 254 vec4 slots, not 62: lettra's default scramble() runs as its graph
lettra's scramble() with its default pool (every glyph in the font) takes 78 vec4 slots for 66 glyphs, over the 62 a
three shader had, so it fell back to flat quads with a warning; its README's own example did too. The uniform block is
256 vec4s (4 KB), the last two still the material's own (three's time, how the colour is read), now named from the
total in tone.wesl too, and the TSL reader's limit is the same 254. R3F parity: all 28 cases pass.
2026-11-08 13:49:10 -08:00
shinyobjectz 4217941ad5 A staticFile path is found in the media folders wherever a source is resolved, a three.js shader's texture too
resolve_src read /media/fonts/x.png as a file at the root, so an R3F ShaderMaterial or TSL node material whose texture
came from new THREE.TextureLoader().load(staticFile("fonts/x.png")) found no such file, and its render was refused
(a material's map, drei's Environment files and every other source already went through media_path). /media/ paths
now go through raea-core-scene media_path in resolve_src itself, with a test.
2026-11-08 13:43:14 -08:00
shinyobjectz be388ffe80 FC2d: a mesh drawn many times in one draw by your shader; shader_advanced/custom_shader_instancing passes
<ShaderInstances shader stride attributes words> inside a mesh draws it once per instance in one draw, in the camera's
Transparent3d phase: Bevy's mesh pipeline with its vertex and fragment shader swapped for your file as written, and a
second vertex buffer of your words stepped per instance (raea-sys-phase ShaderInstances, as the example's
CustomPipeline and DrawMeshInstanced). The phase components' shader registration is one function for all three now.

The port is pixel-identical to Bevy at frames 5 and 10. Moving the instances 2 cm, making a colour 2% darker or a cube
1 cm shorter puts 10,000 to 48,000 pixels off. 145 of 438 ported, 145 passing.
2026-11-08 13:38:14 -08:00
shinyobjectz de1a6830c2 An SVG shape's transform from a <style> inside its <svg> turns it, as Chrome does (closes #60)
In a composition, a <style> inside an <svg> goes to usvg in the SVG's markup (raea's HTML host turns it into a hidden
div first, so HTML pages weren't hit). Blitz had already computed the shape's transform from the cascade, with its
transform-box and transform-origin, and written it as a transform attribute; usvg then applied the sheet's own
transform and transform-origin over it. `rotate(30deg)` isn't SVG transform syntax, so the shape drew unturned, and
a class giving only transform-box and transform-origin turned an inline transform about the SVG's 0,0.

The computed transform now goes into the element's style attribute with transform-origin: 0 0 (its origin is in
the matrix), where usvg lets it win over a sheet's rule as CSS does; the identity is written too, so a sheet can't
turn a shape the cascade leaves unturned. The separate transform attribute is no longer written.

bench/svg-css-transform/check.sh: the class-turned square against the inline-turned one, 78 px differ (antialiased
edges; before 8827), and a class's box and origin with an inline turn against all-inline, 0 px (before 5598). The
svg-css-paint, svg-stroke-box, rotated-paint and background-clip-text benches pass; the P26 rows that draw SVG
score the same as before (studio 3/3, css/svg 1/1; bevy/datamaps is 0.971-0.976 on main with or without this).
2026-11-08 13:34:33 -08:00
shinyobjectz 3f95080394 LinearRgba.from takes an Srgba and names the fix when given anything else
LinearRgba.from("#ff3fa4") read a hex string's missing channels as NaN, and an emissive made from it drew nothing,
silently. Bevy's From takes an Srgba, so the string form now throws with the call that works:
LinearRgba.from(Srgba.hex("#ff3fa4")).
2026-11-08 13:30:14 -08:00
shinyobjectz 4103559dac FC2d: a mesh drawn again in a phase of its own, and compressed meshes; shader_advanced/custom_render_phase passes
<MeshPass shader> inside a mesh draws it again by your shader file as written, in a sorted phase after the camera's
main opaque pass, onto the colour target with no depth attachment and back faces culled, with Bevy's mesh view and
mesh bind groups: raea-sys-phase's MeshPass, Bevy's custom_render_phase stencil phase made a component. A mesh's
`compressed` prop compresses its geometry as Bevy's compressed_mesh(&MeshCompressionArgs::regular()) does
(raea-sys-mesh finished), so a shader reads its positions under VERTEX_POSITIONS_COMPRESSED; engine/render's mesh
build calls it in the same line, keyed on it.

The port is pixel-identical to Bevy at frames 5 and 10 (0 pixels differ). A 1 to 3 cm move of the sphere, camera or
cube still passes the SSIM bar but is 177 to 629 pixels off, so the exact match is the port's, not the bar's. The parity
host gets indexmap and nonmax, the example's own dependencies. 144 of 438 ported, 144 passing.
2026-11-08 13:28:22 -08:00
shinyobjectz 4081e5ac17 A three.js-style emissiveIntensity of 1 is Bevy's 1.0, not 998 nits: glows no longer draw white
core/scene's EMISSIVE took a three.js emissive of 1 as 1.2 x 2^9.7 cd/m², what Bevy's default exposure shows as 1.0.
But a StandardMaterial's emissive skips the camera's exposure (emissive_exposure_weight 0, pbr_functions.wesl), so
every 3d.tsx and R3F glow drew about 1000 times too bright: an emissiveIntensity of 0.25 on #ff5fa2 came out white,
and a transmissive knot over it read as opaque white glass. EMISSIVE is now 1.0; a Bevy material's emissive_nits is
still taken as written.

sdk/r3f's parity suite gets an in-glass case (clear, clearcoated glass over a thin emissive knot), drawn by three.js
in Chrome: SSIM 0.930. The other 26 cases still pass.
2026-11-08 13:10:07 -08:00
shinyobjectz 087949140d A page draw past Vello's buffers is painted again before its frame is encoded, in the fed render too
A page past raea's smaller Vello bump buffers draws nothing, and only its sentinel read back says so (#23). The fed
render (pages handed to raea-render, the default for a page composition's mp4) never checked: the log said "drawn
again", but the skipped draw went into the film as it was. A heavy first frame came out black, and a layer could drop
for a frame (seen as a grain overlay flickering under 70 clipped, blurred, 3D-transformed shards).

- raea-sys-page skipped.rs: wait_drawn waits for the last draw's sentinel read back (its submission alone).
- raea-gpu-device check.rs fed_checked: once every read back has answered, a skip paints the frame again at Vello's
  own sizes, and a skip even then refuses the frame by its number, as the other render paths do; runtime/export
  fed.rs calls it after each frame's page is painted.

bench/vello-skip/check.sh: shards.tsx's mp4 frame 0 has mean luma 21 (the page); with the raea before this, 0. The
wait costs nothing measurable on an ordinary 1080p page (300 frames, alternating: 256.8 and 263.6 fps before, 262.8
and 263.7 after). Still to look at: the redrawn first frame lacks one shard that a render at Vello's own sizes from
the start draws (4,400 pixels, also in a --frame 0 still, whose redraw is skip_checked's).
2026-11-08 12:54:48 -08:00
shinyobjectz e9b22879a0 shader_advanced/fullscreen_material: a FullscreenMaterial is a <FramePass file> before tonemapping
Bevy's FullscreenMaterial runs its fragment shader (fullscreen_effect.wesl, a chromatic aberration) in Core3d's
PostProcess before tonemapping, its intensity (sin(2t) + 1) / 2 * 0.015 from update_intensity. The port is the file
as written in a <FramePass file at="before-tonemap">, with the example's cube, light, camera and text.

Parity: frames 10, 30 and 60 at ssim 0.99975. The only differences are the text's antialiased edges: Bevy blends UI
over a Camera3d in linear light (CompositingSpace allows sRGB blending only for a Camera2d), and raea's page over its 3D
blends sRGB-encoded, as Chrome does. That gap is shared by every port with text over 3D (split_screen 0.99897) and
is recorded in control.feature FC2d, not changed here.

Mutants: a doubled intensity fails the bar; a halved frequency, the camera 0.2 further back and a darker cube pass it,
with the probe counting 6,118 and 8,672 pixels off for the first two (the cube's colour moves luma by under 2%).
Before or after tonemapping gives identical frames, in Bevy as in raea: a non-HDR camera tonemaps in the material
shader, so the tonemapping node is skipped.
2026-11-08 12:42:22 -08:00
shinyobjectz 6684ea7c77 An <EffectComposer> with a DepthOfField renders: raea's stand-in WebGL context takes every call
@react-three/postprocessing's composer renders each frame, and pmndrs postprocessing's DepthOfField blits the depth
buffer through the raw context (gl.bindFramebuffer, gl.blitFramebuffer). The stand-in context answered only what a
composer asks as it's made, so every frame threw "gl.bindFramebuffer is not a function". It's now a Proxy, as the
stand-in renderer is: its methods do nothing, its constants are 0, and `then` stays undefined so it never reads as a
promise. raea draws the effect from the composer's DepthOfFieldEffect (post.ts), as before.

test/post.test.ts runs postprocessing's own EffectComposer with a DepthOfFieldEffect on the stand-in renderer for three
frames; without this change it fails with the same error.
2026-11-08 12:32:08 -08:00
shinyobjectz c60db71abf An <R3F> scene's first frame waits for what it loads: a render holds the frame while the scene suspends
drei's <Environment> suspends while its HDR loads, and so do useGLTF and useTexture. raea took frame 0 before the
load came, so an mp4's first frame was the 2D alone and a looping film opened blank (launch post 02 trimmed it off).

- sdk/r3f hold.tsx: <R3F> renders its children under a Suspense whose fallback opens a hold on raea's frame
  (globalThis.__raeaHold), and the last release wakes the frame, so <R3F> draws it again with what loaded.
- runtime/bundle entry.rs: the frame isn't marked done while a hold is open (the React Marker and the lite
  entry), and a wake marks it, or draws it again in the lite entry.

sdk/r3f/test/hold/check.sh renders a scene whose box colour comes from a promise resolved 50 ms later: frame 0 of the
mp4 and a --frame 0 still are the red box. With the raea before this change, the mp4's frame 0 is the background.
bench/at-0, bench/compute-frames, sdk/r3f's input/clock/roundtrip tests and a pong live play are unchanged.
2026-11-08 12:27:41 -08:00
shinyobjectz ae61cbb3e6 A mesh carries its own vertex attributes, and a Material reads the ones it names (shader_advanced/custom_vertex_attribute)
Bevy's custom_vertex_attribute gives a cube a BlendColor attribute and lays out the material's vertex buffer as
[POSITION at 0, BLEND_COLOR at 1] in its specialize. raea now does both:

- sdk/render: MeshVertexAttribute.new(name, id, format) and Mesh's ATTRIBUTE_* constants; Mesh3d `attributes`
  ([[attribute, values]], a value a vertex); Material `vertex_attributes` ([[attribute, location]]).
- runtime/scene: the mesh row carries `attributes` from the first frame.
- raea-sys-mesh attribute.rs: with_attributes inserts them into the mesh (names interned once, as Bevy's are
  &'static str); engine/render's shared mesh keys on them, line-neutral.
- raea-sys-shader own.rs: the layout is part of the pipeline key, and swap sets the vertex buffer to
  layout.0.get_layout of the named attributes, as Bevy's specialize does.

Parity: frames 5 and 10 at ssim 1.000000, 0 pixels off. Mutants: a green BlendColor, BlendColor at location 0 and
four blue vertices fail the bar. Moving the cube 0.1 up and halving the uniform's red pass the bar but the probe
counts 6,067 and 36,685 pixels off (the known SSIM blind spot; the real port is 0).

skills/ pins raea-skills 5218644 (#7), whose generated sdk.md lists the new names.
2026-11-08 15:20:15 -05:00
shinyobjectz 1a516a8de1 A compute's uniforms follow the frame, in a PNG render and an mp4
Two gaps a launch film found in <Compute>, both of one cause: its uniforms never reached it after frame 0.

A compute's uniforms travelled only inside its `shader` spec, which a row holds from its first frame, so an inline
compute (or one as written) saw frame 0's values on every frame. They now also go as a keyed `uniforms` column, as a
frame pass's do. raea-sys-compute's `follow` repacks them when the column changes: an inline compute's into its slots
by name (a name it wasn't built with is refused), one as written through its packer (written::follow_uniforms;
`Ranged` is kept for every compute as written, and a field that is a mesh's slab range is still packed each frame).

An mp4 render draws its 3D live (LiveScene): each frame's changed columns are set on the live rows. The compute's and
the frame pass's `follow` read the timeline's columns (`FrameRows::cols`), which in a live render hold only the load's
first frame, so an mp4 of a compute driven by its uniforms stayed black. FrameRows::at reads a row's value by its
place, the live row's when there is one; both follows use it.

bench/compute-frames/check.sh renders level.tsx (an inline compute filling an image with the grey `level`, f / 20,
gives) to PNGs and to an mp4: frame 0 is black and frame 10 grey 188 in both (the mp4 within 4, its YUV round trip).
Before, frame 10 was black in both. shader/compute_shader_game_of_life, shader_advanced/compute_mesh,
custom_phase_item and custom_post_processing still pass pixel for pixel.
2026-11-08 12:00:17 -08:00
shaneandshinyobjectz eaf5406f39 One raea skill, in raea-skills (skills/): raea pins it, and its release ships it from the pin (#58)
The raea skill moves from sdk/skills to the raea-skills submodule, in its framework (skills/skills/raea/SKILL.md
with raea-tested-against and raea-verbs, checked by its skillcheck), and raea-bevy is folded into it: its router
is the skill's 3d.md and its topic files are in 3d/. An agent loads one skill for everything raea does.

- `raea skill` and `raea skills install` find a checkout's skill in skills/skills (an install's share/raea/skills is
  unchanged) and skip raea-skills' _template. `raea skill raea-bevy` says where its text went, and install removes
  an older raea's raea-bevy copy.
- tools/skills.sh gen writes the references into skills/skills/raea/reference and copies the Bevy craft guides
  (sdk/guides/craft/bevy) in as the 3D topic files, which were links: a clone of raea-skills, or GitHub, reads them
  whole. check fails on a copy that differs from its guide, on one whose guide is gone, and on an uninitialised
  submodule.
- tools/release.sh gates on the pointer (skills in the gate inputs), adds raea-skills at the pin to the gate's tree,
  packs share/raea/skills from it, and lists raea-skills' own commits in the skills notes.
- The core-rules test reads the skill from the submodule, and the surface test checks it.
- The Claude Code plugin names the one skill folder; README, the guides and the SDK docs say raea's 3D guide.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-08 14:36:53 -05:00
shinyobjectz c1acc96d8d bevy-parity runs headless: the Bevy examples open no window
A full bevy-parity suite opened one window per example, each taking focus, so the Mac was unusable while it ran. The
Bevy side now runs with no window whenever its pictures are taken (RAEA_PARITY_PNG). The host's build.rs gives each
example `crate::plugins(DefaultPlugins)`: its DefaultPlugins without WinitPlugin. In WinitPlugin's place,
raea_sys_parity::Reserve makes as many empty entities as the window's plugin makes before an example's Startup (11:
its observers and a Monitor for this Mac's display). The example's own entities then get the indices they get with a
window: a port matches some by index (image_node_resizing's debug outline colours), and an index breaks ties in UI
draw order (scrollbars' thumbs). Reserve also sends what winit sends as it makes the window, WindowCreated and then
WindowResized, which split_screen lays its viewports out on. The probe's `run` is the App's loop, as Bevy's
ScheduleRunnerPlugin runs one, with no wait between updates. The primary Window entity is still there, for the
examples that read its size, and its cameras already drew into the probe's offscreen image (FC0a, 11-07).
RAEA_PARITY_WINDOW=1 opens the window again to watch an example. raea's side was already headless (raea render, raea
play --offscreen).

The whole suite was run headless. Every ported example's picture scores what it scored with a window (split_screen
0.998973, scrollbars 0.994530, image_node_resizing 0.998153, standard_widgets 0.994691). Four failed only the
frame-time bar while another session rendered a film on the same machine; their pixels pass. The results docs here are
left at the last windowed run's, and the cost bar will be rerun on a quiet machine.
2026-11-08 11:33:24 -08:00
shinyobjectz 94d62d7fd7 The frame tag has its own camera: render --at works for TSX compositions again
Since a3db7b6db, `raea render X.tsx --at N` refused every TSX composition ("no two readbacks with its tag agreed in
240 updates"). That commit gave every camera on the Engine's target a w x h Viewport above the tag row. The frame tag,
a 16 x 1 UI node in that row, was laid out under the scene's camera (UiTargetCamera), so bevy_ui clipped it to the
viewport and no readback ever carried a tag. Full renders and HTML stills don't wait on the tag and kept working.

The tag now has a camera of its own (raea-sys-frame spawn_tag, called where load.rs spawned the node): a Camera2d on
the same target, ordered last, on no render layer (so it draws no sprite or mesh), with no tone mapping, dither or
MSAA. Its texture is cleared to transparent and alpha-blended over the target, so every pixel but the tag's is left
as the frame's cameras drew it. tag_row_view leaves it out of the viewport it gives the rest.

bench/at-0/check.sh renders a one-colour composition with --at 0 and checks the frame is 160 x 160, one colour, and
#246 in its last row. It refused on a3db7b6db and passes now. bench/at-3d still passes (its four frames are
pixel-identical to the frozen render's), an mp4 render works, and the whole bevy-parity suite was rerun with the change.
2026-11-08 10:56:20 -08:00
shinyobjectz 6f6daa1b3b A composition that paints no background is black behind it in a video too, as in a PNG
A video takes the fed path (pages handed to the encoder on the GPU), whose program has no camera row; runtime/view's
camera_bg then gave raea's old dark blue (13,10,26), so every transparent part of an mp4 or mov was navy while the
same frame as a PNG (raea-export's program, which clears 2D pages to #000000) was black. #13's snapcn sweep met it:
text-swap, text-build, text-highlight and cursor-track read as a 0.52 SSIM drop against Chrome until the harness's
page took the navy. The default is now black, as program.rs's.

bench/clear-backdrop/check.sh: white text on nothing to an mp4 and a PNG, both corners black. Before: the mp4's
13,9,26 (the 02:20 build), the PNG 0,0,0. After: both 0,0,0.
2026-11-08 10:54:18 -08:00
shinyobjectz ac39b671ee raea/text loadFont: a composition asks for a Google Fonts family by name and the page gets it (part of #13)
snapcn's components (#13) load their families by name from Google Fonts; raea had no way for a composition
to ask for one. Google families came only with RAEA_PAGE_GOOGLE_FONTS=1, which fetches every family a
page names, so it is off by default (Chrome loads only what a page links, and every composition's root names Inter).

loadFont("Space Grotesk") (sdk/video/src/fonts.ts, exported from raea/text) returns { fontFamily } and calls the
new native fonts.google, which marks that family wanted in raea-sys-fonts google.rs: the page fetches its Latin
faces, every weight and style, once through raea's URL cache, so a render stays a function of its code and plays
offline once cached. Families nobody asked for still fall back as before. Outside raea (a browser) it links Google's
stylesheet, so the same code shows the same family there.

bench/load-font/check.sh: "Hello raea" in Rubik Mono One with loadFont differs from the fallback by 12885 px, and an
offline render from the cache matches the first exactly. Needs the network on the first render.
2026-11-08 10:38:36 -08:00
shinyobjectz ffd2738dcc A <Video> whose src is an http(s) URL plays it, fetched once into raea's URL cache (closes #57)
core/scene's media_path joined an https src to the composition's folder, so a remote clip was refused as
"<dir>/https:/…: no video track" (seven snapcn components in #13: hero-launch, laptop-frame, phone-frame,
phone-stack, reel-collage, reel-wall, screen-recording).

raea_io_net::cache::remote(src) gives an http(s) src's file through cache::fetch (keyed by the URL, which is in
the composition's source, so a render stays a function of its code; under $RAEA_CACHE beside the render cache)
and None for a file. The page's video elements, the export's sounds and live play's video list ask it first.
A src that can't be fetched refuses the frame saying why: "video <url>: HTTP 404 Not Found", or "(not in
raea's cache): not sent, because RAEA_OFFLINE is set". The cache's status errors no longer name the URL twice.

bench/remote-media/check.sh: a local server's red clip plays (centre 252,0,0), plays again offline from the
cache, an uncached URL offline refuses, a 404 refuses with its status. Before: all four read the URL as a path.
laptop-frame (snapcn) renders its remote clip, 240 frames at 7.0 ms a frame.
2026-11-08 10:34:24 -08:00
shinyobjectz a3db7b6dba FC2d: a compute writes a mesh, your own phase item, a frame pass as written; three shader_advanced ports pass
Three of Bevy's shader_advanced examples now run as written, each through a general feature.

A compute writes a mesh (shader_advanced/compute_mesh). A <Compute file> binds each var<storage> its file declares:
either its own buffer, its first contents in the type's storage layout and kept from frame to frame, or a mesh's
vertex or index slab in Bevy's MeshAllocator, found by its part's name (systems/compute/src/slab.rs). A uniform
field given { start: NAME } or { end: NAME } is that mesh's range in the slab, counted in the array's elements, and
is packed each frame once the allocator has placed the mesh. The allocator's slabs carry STORAGE usage, set before
MeshAllocatorPlugin's finish makes the allocator, as the example's plugin sets it. A <BufferMesh> with indices and
normals is now Bevy's indexed Mesh, its index buffer kept, instead of flat triangles (systems/mesh/src/indexed.rs);
3d/vertex_colors, which takes that path, still passes. Every row with a name now gets a Bevy Name, not only bare
entities.

Your own phase item (shader_advanced/custom_phase_item). <PhaseItem> puts raea-sys-phase's PhaseItem and an Aabb on
an <Entity>. A new crate, systems/phase, queues it into each view's Opaque3d phase with a pipeline of its shader
file as written, drawing its own vertex buffer (its stride and attributes) and index buffer with its depth state,
as the example's queue_custom_phase_item does.

A frame pass as written (shader_advanced/custom_post_processing). A <FramePass file> binds its file's own @group(0)
declarations: each texture_2d<f32> is the frame (the one `frame` names) or an image, each sampler Bevy's default or
the one given, each var<uniform> its value (systems/framepass/src/written.rs). Its uniforms may change frame by
frame: like a compute's entry and bind, they are a keyed string column, and the pass repacks them when they change.
FramePass moves out of materials.tsx (at its 500-line limit) into 3d/framepass.tsx. The group(0) declaration parser
the compute and the pass share is raea-sys-shader's bindings::group0.

A camera on the Engine's target now draws a w x h Viewport of the w x (h + 1) tag-row target, as orthographic
cameras already did. A perspective camera had a sub view of the whole target, so a draw in clip space, such as the
phase item's triangle, mapped to 721 rows: its bottom edge landed 0.75 px low and the port passed at SSIM 0.9936 with
2355 pixels off. It is now pixel-exact. The whole suite was rerun with the change.

Results:
- compute_mesh passes at frames 5 and 10 (SSIM 0.999999, 2 pixels off at a 2% threshold). Eight mutants all fail the
  bar: no dispatch, either range set to 0, indices written into the vertex slab, the compute's mesh unnamed, the
  other cube's colour, no shadows, and the other cube moved.
- custom_phase_item passes at frames 5 and 10 with SSIM 1.0 and 0 pixels off. Mutants: the second attribute at
  offset 12, a vertex given another colour, and the top vertex at y 0.9 all fail the bar; a vertex moved from 0.866 to
  0.86 passes on SSIM (0.9953) but leaves 1556 pixels off, where the port leaves 0.
- custom_post_processing passes at frames 10, 30 and 60 (SSIM 0.99995, 0 pixels off). Mutants: no white clear colour
  fails the bar; intensity times 4/3 (8100 pixels off), a slower turn (4256), a linear sampler (16) and sin(t) for
  sin(sin(t)) (2964 at frame 60) pass on SSIM but leave pixels off. The pass before tone mapping draws the same
  frame, as it should: the camera is not HDR, so Bevy tone-maps in the material shader and its tonemapping node is
  skipped.
- After the change, the whole suite passes: 141 of 141 ported (two first-run misses rerun clean: standard_widgets
  missed its replayed menu click on the Bevy side, automatic_instancing missed its frame-time bar under another load).
2026-11-08 10:31:46 -08:00
shinyobjectz 21f9dd6936 Windows: an app's press reaches its handlers. A file the bundle's resolver names has one module id however its path was written: raea:script's ids are rebuilt from their components (one separator, no . or doubled ones) and lose canonicalize()'s verbatim prefix. On Windows an app's @raea/ui aliases were joined with mixed separators (sdk/ui/src under a backslashed home) while Rolldown resolved react.ts's ./wire with backslashes only, so the bundle carried two wires; the second took __ui_deliver with none of the first's handlers, and every press was dropped with no error. A unit test gives two spellings of one file one id (#51) 2026-11-08 10:20:40 -08:00
shane d356bf5819 Merge #53: skills/ is the raea-skills repo as a submodule
skills/: the raea-skills repo as a submodule
2026-11-08 13:10:20 -05:00
shinyobjectz c6157d0d81 skills/ is the raea-skills repo (github.com/shinyobjectz/raea-skills) as a submodule: the home of raea's agent skills from here on; sdk/skills moves there once that repo has its first layout 2026-11-08 10:06:21 -08:00
shinyobjectz 8de480c11a The raea skill's description names the work only raea does first, so an agent with other video skills installed picks raea for it (fixes #22, wording from watzon's suggestion): 3D scenes, matchmove, games, cutting by words, beat-timed cuts, local foley and instruments 2026-11-08 10:04:16 -08:00
shinyobjectz 498d7765cd FC2a: storage buffers in any WGSL type; shader/gpu_component_array_buffer passes pixel-exact
A <Material>'s storage buffer is no longer limited to an array of numbers or vectors. It can be any host-shareable
type its source declares: scalars and vectors, matCxR<f32>, fixed and runtime arrays, and the source's own structs,
including fields under @if. Each is written in WGSL's storage layout (systems/shader/src/storage_layout.rs), as
Bevy's examples write such buffers with encase. In TSX a buffer is a StorageValue: a number, a list (a vector's
components, an array's elements, a matrix's columns) or a struct's { field: value }. Struct fields may also share a
line (`struct S { a: f32, b: vec2<f32> }`); layout.rs splits them at the commas outside a type's <>.

The parity bench's ChaCha8Rng gains next_u64, random_bool and random_index, matching rand's draws for seed 12345
(lib/rand.test.ts). The parity host depends on bytemuck, which the example uses.

shader/gpu_component_array_buffer passes at frames 60, 180, 240 and 400 with SSIM 1.0 and 4 pixels off at a 2%
threshold. The port replays the example's add_cube and remove_cube on Bevy's clock. Two details matter. A part keeps
its row across frames by its name, not its React key, so each cube is named by its spawn number; otherwise a cube
that moves up the list takes the texture of the cube that was there first. And when both timers fire on one update,
the cube spawned then is not yet in the other cubes' archetype, so the despawn swaps in the previous last cube and
the new one joins after it.

Nine mutants all fail the bar: swapped textures, swapped colour channels, a constant MeshTag, a 310 ms spawn timer,
the new cube put first, another seed, cube scale, camera target and a mirrored z. All 19 shader ports still pass.
2026-11-08 09:39:48 -08:00
shinyobjectz 4e83e0b4b2 SECURITY.md: report security problems privately through the Security tab (private vulnerability reporting is on) 2026-11-08 09:31:39 -08:00
shinyobjectz 47545d9212 FC2d: a compute as written; shader/compute_shader_game_of_life passes pixel-exact
A <Compute file> compiles its shader file as written, binding its own @group(0) storage textures and uniforms
(systems/compute/src/written.rs). Each frame picks the entry point and which image each storage texture binds, as
a Bevy example's render-graph node picks its pipeline and bind group. Its images are render:NAME images in the
storage format the file declares, each with a sampler if one is given.

Strings can now change from frame to frame. A row column holds a number per frame, so a changing string is kept
as the list of values it takes plus a keyed index into it (raea-runtime-look's keyed_strings, read back with
raea-sys-frame's keyed). The changing-picture code for ImagePlane already worked this way and now uses the helper.
A Compute's entry and bind use it, and so does a Sprite's src: a Sprite can show a render:NAME image and switch
to another by name each frame.

The render-image registry (RenderImages) moves into raea-sys-frame, so the sprite system can look images up by
name. raea-runtime-plugins re-exports it.

A still renders only the frames it needs and their neighbours. When a scene has a compute that carries state
between frames (a file's images, or its own buffers), every frame up to the wanted one is now rendered, because
the GPU state can't be rebuilt from one frame.

Load checks every entry name and binding the run uses. A frame whose entry leaves a storage texture unbound is
logged and skips its dispatch.

shader/compute_shader_game_of_life passes at frames 10, 11, 30 and 60 with SSIM 1.0 and 0 pixels off. Frame 11
was added so each of the two images' samplers is drawn. Mutants are caught either by the bar or by the 2% pixel
probe: init a frame late, swapped bindings, alive colour, sprite parity, either image's sampler, clear colour,
scale, and one extra row of workgroups. The extra-row mutant passes SSIM at 0.9994; the probe finds 784 pixels off,
against 0 for the real port.
2026-11-08 09:19:32 -08:00
shinyobjectz 011cd1bd6c FC2: clay.rs moves to raea-sys-material (re-exported by scene3d, whose crate was over 2000 lines); rot_of and scale_of, no longer read, folded into transform_by
The fast path for placed rows grew raea-runtime-scene3d to 2010 lines. Clay is a material concern (every standard surface drawn grey and matte) and depends only on Bevy, so it moves to raea-sys-material; scene3d re-exports it, so every caller keeps its path.
2026-11-08 08:23:07 -08:00
shinyobjectz f5cb4f3ae2 FC2: automatic_instancing and pipeline_constants pass; gpu_readback excluded (136/136)
shader/automatic_instancing: 65 536 cubes, one mesh and one Material, each with a MeshTag (a BevyComponent) its
vertex shader reads a texel by, moved in z every frame. The update was 103 ms against Bevy's 9: every moving row's
values were made into a map each frame. The timeline now records which columns move per row (Timeline::moving), and
a row only its placement moves has, once its other values are applied, its transform read straight from the frame's
columns (FrameRows::moves_only, placer, transform_by): 7.4 ms against Bevy's 8.3. The parity probe formatted a string
for every visible mesh each probed frame, in the next frame's measured time, on both sides; it now formats a size once.
Mutants: the tag off by one (SSIM 0.977) and the phase (0.397) fail the bar.

shader/pipeline_constants: a Material's `constants` are its fragment's pipeline-overridable constants (WGSL override),
set in its pipeline as the example's specialize pushes LEVELS; kept by hash so its key stays Copy (SpriteMaterial's
combined key is a packed struct). Its quads are pixel-exact; LEVELS + 1 and no constants both fail the bar. A Text2d
inside a layered Canvas3D was silently not drawn (the bar passed it at SSIM 0.9946); it now throws, saying to put it
after the Canvas3D.

shader/gpu_readback is excluded: it spawns no camera and draws no frame; its behaviour is the GPU results it reads back
and logs, the world check's, not a picture.
2026-11-08 08:17:42 -08:00
shinyobjectz 0dd03f7c24 FC2b: an extension file's own bindings, any numbers (shader/extended_material_bindless, 134/134)
A MaterialExtension's fragment file is compiled as written but for its material-group bindings' numbers, which go to
ShaderExt's slots in the order declared: its uniform struct at 100 (its uniforms packed in its layout), up to four
texture_2d at 101-107 and their one sampler at 102 (ext_bind.rs, through ui_bind's rebind_with). A declaration under
@if(BINDLESS) is left as written and compiles out, so Bevy's extended_material_bindless binds its @else set (50, 51,
52), as it does without bindless; the @binding(100) struct is read from outside those spans.

The port is pixel-exact at frames 30 and 60. Mutants on a dark scene the bar's SSIM threshold can't see: the
modulate colour (30k px off at a 2% probe), the rotation by 0.1 rad (9k), the sphere's sectors (2k); the base
colour under the checker moves SSIM 1.0 to 0.9995.
2026-11-08 07:22:25 -08:00
shinyobjectz 2ff13ee50b FC2a: bindless Materials as Bevy draws them without bindless (shader/shader_material_bindless, shader_material_2d_bindless, 133/133)
A Material's declarations under @if(BINDLESS) are left as written: raea's Materials aren't bindless, so that set
compiles out and the @else set binds, as Bevy's does on a GPU without bindless (ui_bind.rs bindless_spans).

A Cylinder alone is drawn as Bevy's Cylinder mesh (32 sides, one segment), with its normals and texture coordinates,
as a lone sphere, cuboid and plane already are: a shader reading its uv now compiles (core/shape cylinder_of).

Mutants: the cylinder's colour, its logo and the cube's blue are each caught (the blue by a pixel probe, 236 against
214); the radius by the pixel count. In 2D a logo swap is caught; Mask against Opaque draws the same picture in Bevy
too (a custom Material2d doesn't discard, and the Mask pipeline doesn't blend).
2026-11-08 07:13:06 -08:00
shinyobjectz fa6a5ed17f FC2a: a Material reads the camera's prepasses (shader/shader_prepass, 131/131); live play's 3D under the page drawn opaque, as a window shows it
shader/shader_prepass passes at 4 frames, one per prepass view (transparent, depth, normals, motion vectors), stepped by
scripted Space presses. The camera carries Bevy's DepthPrepass, NormalPrepass and MotionVectorPrepass and Msaa::Off as
<BevyComponent>s, and show_prepass.wesl reads them through bevy_pbr::prepass::utils as written. The opaque Material
cube writes into the prepass and turns with Time::elapsed_secs.

Live play drew its 3D under the page blended by the 3D's alpha, which a window ignores, so custom_material's
COLOR_MULTIPLIER alpha of 0.5 faded the opaque cube toward the page's white. The 3D under a whole page is now copied
opaque (place_under, fs_opaque), as raea render and Bevy's window present it.

Outside the text block at most 574 pixels differ (edges). Mutants fail: the normals view off, NormalPrepass removed,
the cube's turn frozen, the opaque cube blended. A Mask cutoff of 0.2 against 1.0 passes the bar but moves the pixel
probe (2350 to 2474 px): the icon's alpha is all but 0 or 1. The ports with input scripts rerun pass.
2026-11-08 07:00:32 -08:00
shinyobjectz 5acc123835 FC2a: one reader for the component a part holds its own Material by (3D, 2D or a sprite's) 2026-11-08 06:38:33 -08:00
shinyobjectz 1b6fbfc390 FC2a: a Sprite's own Material (Bevy's SpriteMaterial), its values per frame in live play, and scripted keys in the parity host (shader/sprite_material, 130/130)
<Sprite><Material/></Sprite> is Bevy's SpriteMaterial<M>: raea's OwnMaterial is also a MaterialExtension2d, so it
extends the sprite's own SpriteMeshMaterial and its shader reads the sprite through sprite_mesh::functions. A
Material's fixed slots now start at 30, past the sprite's own bindings (a UiMaterial's still start at 0), and an
alpha mode the spec doesn't give leaves the sprite's own.

Live play now carries a Material's values frame by frame: a one-frame program sends its own:uniforms row, and a
component whose target keeps its render id (a sprite, a 2D shape) is no longer dropped.

The parity host's input script takes key names (KeyCode's: "Space"), held in ButtonInput<KeyCode> after Bevy's
input systems, so input_just_pressed sees a press on its update.

shader/sprite_material passes at 6 frames across two Space presses (SSIM 0.99983, the text's tile). Mutants of the
amount, the burn edge's width and the delta fail. A burn-edge colour mutant passes the bar, which can't see a thin
edge's colour, but the edge probe catches it: the same 1721 edge pixels, green total 1428 real against 1266 mutant,
and 1428 in Bevy's. The Material, sprite and 2D ports rerun pass.
2026-11-08 06:34:46 -08:00
shinyobjectz 21182ec6ba FC2a: one check for a name a Material's shader doesn't declare (uniform or storage buffer); materials.tsx back under 500 lines 2026-11-08 06:05:57 -08:00
shinyobjectz 8ff3d0cf00 FC2a: a Material's texture_2d_array, its layer picked by each cube's MeshTag (shader/array_texture, 129/129) 2026-11-08 05:58:11 -08:00
shinyobjectz 4f7944c463 FC2a: a Material's storage buffers and its values frame by frame; parts with one spec share one Material (128/128)
A <Material>'s `buffers` are its read-only storage buffers (var<storage, read> NAME: array<T(, N)>, up to two, at
OwnMaterial's 23 and 24), each laid out as WGSL stores its element type (own_live.rs storage; a vec3 takes 16 bytes).
Its uniforms and buffers may change from frame to frame: raea-runtime-look own_uniforms sends them as keyed
`own:uniforms` component rows from each frame they change, and own_live.rs patch packs them into the part's
Material and ShaderBuffers (a row that arrives before shade_rows puts the Material on waits on the part, Pending).
Parts whose spec is the same share one Material, as Bevy's examples share a handle: a varying spec carries its
track's hash, so parts share only when every frame's values match too (own.rs shared, OwnMade, cleared per load).
layout.rs's word encoding is shared by uniforms and buffers.

Port: shader/storage_buffer (SSIM 0.999999 at 30 and 60): 91 cubes with MeshTags (<BevyComponent
bevy_mesh::components::MeshTag>), the example's vertex and fragment shaders from its one file, its colour buffer
recomputed each frame as its update system does. Freezing the colours at frame 0 fails (97310 px off), as does
tagging every cube 0 (76718). The other shader ports rerun and pass.
2026-11-08 05:55:22 -08:00
shinyobjectz fff38cbcd6 FC2a: a Material's textures of every dimension (1d, 2d_array, cube, cube_array, 3d), up to 6 samplers, and Bevy's fallback image for a texture it doesn't give (127/127)
rebind_in takes `dims`: a Material's (not a UiMaterial's) textures of the other dimensions go to their own slots
of OwnMaterial, one of each (16 1d, 18 2d_array, 20 cube, 21 cube_array, 22 3d), and its samplers, in the order
the source declares them, to 9, 11, 13, 15, 17 and 19 (Bevy's view binds up to 8 of the fragment stage's 16). A
texture the source declares and the spec doesn't give binds Bevy's fallback image of its dimension, as an
Option<Handle<Image>> left None does; a 2d_array takes the spec's texture array ({ layers }).

Port: shader/fallback_image (SSIM 1.000000). Its fragment writes nothing, so the frame alone can't show the
bindings: a raea-only variant that samples all six textures draws the cube (worst tile 158 against Bevy's empty
frame), so the six bind and sample. A unit test puts fallback_image_test.wesl's twelve bindings in their slots.
2026-11-08 05:43:27 -08:00
shinyobjectz ffc9962cd0 Fold three new copies in own.rs: one specialize for Material and Material2d (a macro), the shader handle inline, and no is_own 2026-11-08 05:35:58 -08:00
shinyobjectz 66195f7472 FC2a: your own Material in 2D (Bevy's Material2d), and a shared-texture 2D camera's output replaces as Bevy's first camera does (126/126)
A <Material> in a Mesh2d is Bevy's Material2d: raea-sys-shader's OwnMaterial implements both Material and Material2d
(group 3 in 3D, 2 in 2D), so the bindings, the imports beside the file and the packing are one code path;
alpha_mode maps to AlphaMode2d (Opaque, Mask, else Blend), and cull_mode now keeps the pipeline's own unless given
(Back in 3D, none in 2D, as Bevy's pipelines have them). Mesh2d carries it to Shape2D as `shader`, the shape row
keeps it as a JSON column, and raea-sys-sprite's spawn_shape puts MeshMaterial2d<OwnMaterial> on in place of the
ColorMaterial, its textures decoded at once (own::picture, which the UiMaterial now uses too).

raea's 2D camera draws over the 3D camera on its target. With the 3D camera single-sampled and not Hdr (a 2D-only
scene's), the two share one main texture, so the 2D camera's blit used to alpha-blend the finished frame over
itself (Bevy blends every camera after the first on a target). It now replaces, as a lone Camera2d's does: a 2D
fragment's alpha below 1 reaches the frame as Bevy leaves it. Found by shader/shader_material_2d, whose Mask(0.5)
material writes alpha 0.5 and never discards: Bevy's centre pixel (0, 0, 40), raea's was (29, 29, 43) and is now
(0, 0, 40). A mixed scene (a multisampled 3D camera) keeps the blend.

Port: shader/shader_material_2d, SSIM 1.000000 (the Blend mutant fails, 16384 px off). The full sweep passes
126 of 126.
2026-11-08 05:29:32 -08:00
shinyobjectz a28118696e FC2a: your own Material is Bevy's Material, not an extension: its own bindings, imports beside it, alpha mode, depth bias, cull mode; 3 shader ports (125/125)
raea/pbr's <Material> now draws as raea-sys-shader's OwnMaterial (own.rs), an `impl Material` whose bind group
takes any author's layout: the file's @group(MATERIAL_BIND_GROUP) bindings are renumbered into fixed slots in the
order the source declares them (8 uniforms of any type up to 256 bytes, packed in their declared types, a struct's
from { field: value }; 4 textures and their samplers), as the UiMaterial's are (ui_bind.rs rebind_in, generalized
to any group). `import super::NAME` reads NAME.wesl beside the file: the module is registered under an embedded
folder per source folder, which is the module path WESL resolves super:: to. alpha_mode and depth_bias are its
Material methods', cull_mode its specialize's (Back; null culls none), and `vertex` names a vertex shader for the
main pass. A shader's textures given as staticFile paths are now found as its fragment is.

Ports: shader/shader_material (SSIM 1.000000: its own bindings at 0-2, the relative import, AlphaMode::Blend; the
Opaque mutant fails at 36143 px off, and a cull_mode null mutant moves SSIM to 0.992), shader/shader_defs
(0.999999: its uniform a struct, IS_RED from defs), shader/shader_material_screenspace_texture (0.9989 at 10 and
60, max 12 grey off: view.viewport uv under the turning camera). animate_shader, extended_material and
ui/ui_material rerun and pass as before.
2026-11-08 05:29:32 -08:00
shinyobjectz 6aff2de92a L2 checks the generated plugin bindings against the commit's registry
sdk/plugins/src/bevy.gen.tsx drifted from 10-31 to 11-08 over four landings (d708518be): a landed material registers
a MeshMaterial3d<..>, and only the plugin build (raea-bevy-sdk, required-features bevy-plugins) can read the type
registry. tools/bevy-plugins.sh check compares the generated TypeScript with that registry and catches it (a mutant
dropping one wrapper's type fails it), but nothing ran it: L1 only cargo-checks the plugin build, and a fresh one
takes about 20 minutes, too much for every landing. L2 already builds it in its own clean checkout of the commit,
so it now runs the check after that build (about 50 s) and reports "plugin bindings: ok" or "drift" with the fix, in
its summary line and summary.json.
2026-11-08 05:10:31 -08:00
shinyobjectz d708518be1 sdk/plugins regenerated: four material components the plugin build now reflects
bevy.gen.tsx was last generated 10-31. Since then, landed materials made Bevy register four MeshMaterial3d /
MaterialNode components, which tools/bevy-plugins.sh gen now writes as wrappers (380 -> 384 components):
- MeshMaterial3d<ShadowCatchMaterial>, raea-sys-material's shadow_catch (88ccb8284);
- MeshMaterial3d<ThreeShader>, raea-sys-three-shader, R3F's shaders (d3c399b4d);
- MaterialNode<RaeaUiMaterial>, raea-sys-shader's ui, FC0a's ui_material (c703bb308);
- MeshMaterial3d<ExtendedMaterial<StandardMaterial, Procedural>>, raea-sys-procmat.
plugins.lock.json: every plugin's schema hash moves with the shared registry. Regenerated on the current tree (no
uncommitted Rust touches reflection); tools/bevy-plugins.sh check sdk/raea/bench/bevy-plugins matches its lock.
2026-11-08 05:05:46 -08:00
shinyobjectz ced8fe55a2 Fold two new copies into shared readers: keyed_vec (a camera's up, a 2D part's quat) and the sprite Tiled flags 2026-11-08 04:58:41 -08:00
shinyobjectz 5f5e7190db Split crates back under 2000 lines: raea-sys-mesh and raea-runtime-scene2d
- raea-sys-mesh: a row's mesh from JSON (Bevy's primitives by name, rings, extrusions, buffer meshes), moved out of
  raea-sys-material, which re-exports it as its `mesh`.
- raea-runtime-scene2d: the 2D parts' rows (<Sprite>, <Shape2D>), moved out of raea-runtime-scene.
- The part-row helpers both use (visible, sheet, tint) now live in raea-runtime-look's parts.rs.

raea-sys-material had gone to 2048 lines and raea-runtime-scene to 2040 with the FC0a additions.
2026-11-08 04:52:35 -08:00
shinyobjectz e4a0704178 FC0a: 2D at Bevy's exact size, Bevy's primitives by name, Model nodes, sprite modes; 7 more ports (122/122)
2D was drawn 0.14% small. An orthographic camera on the engine's w x (h + 1) target (the frame and its tag row) saw
the frame through Bevy's SubCameraView, whose orthographic math sizes its area from the 721-row target. A white rect
at (90, 510) drew at 41..140 instead of 40..139. Every 2D port still passed the pixel bar. Orthographic cameras now
get a w x h Viewport instead (engine target.rs, line-neutral). 2d/sprite and 2d/move_sprite went from SSIM 0.998
(worst tile 8-9) to 1.000000.

New in the SDK:
- Bevy's primitive meshers by name (systems/material mesh.rs): CircularSector, CircularSegment, Segment2d/3d,
  Polyline2d/3d, ConvexPolygon, Ring (`inner`, or `ring: thickness` as Bevy's to_ring), Extrusion, the Sphere's uv or
  ico kind and Plane3d subdivisions.
- <Model nodes>: glTF nodes' local transforms by name, each frame.
- Lights' shadow_depth_bias and shadow_normal_bias.
- <Sprite image_mode> (Bevy's SpriteImageMode: Auto, Scale, Sliced and Tiled) and <Sprite sampler>. A sprite sheet is
  no longer forced to nearest; the ports whose examples use ImagePlugin::default_nearest ask for it.
- Text2d's Anchor, and it no longer wraps (Bevy's Text2d is unbounded).
- Srgba.hex takes Bevy's 3, 4, 6 or 8 digits.
- Quat.slerp.
- The parity probe marks the example's highest-order window camera as the UI camera, unless the example marked one
  itself.

New ports, all passing: camera/2d_on_ui, gltf/load_gltf, gltf/gltf_skinned_mesh, animation/animated_transform, 3d/fog,
3d/3d_shapes, 2d/sprite_scale and 2d/sprite_slice.

Mutants:
- Caught by the bar: skinned mesh without the joint pose and at PI/3; animated_transform without the controller's
  turn; 3d_shapes with a Cuboid for the Tetrahedron.
- Caught by pixels off: 3d_shapes' ring thickness (4736 vs 2911) and animated_transform's scale key (728 vs 0).
- Passing the bar: fog's end and colour (SSIM 0.989 / 0.990). The real fog port matches Bevy to within 1/255 in every
  fogged region, and its 5819 pixels off are the help text.
- sprite_scale's gabe sheets match Bevy byte for byte at frames 10 and 60.
2026-11-08 04:52:35 -08:00
shinyobjectz 0105bb67c4 FC0a: 2D parts take Bevy's quaternion (quat), for camera/2d_on_ui 2026-11-08 04:52:35 -08:00
shinyobjectz 65a687182f GPU particles the same on every run: bevy_hanabi vendored with two raea: changes (closes #52)
sdk/raea/bench/bevy-plugins/hanabi.tsx, with seed 7 on both fountains, differed from itself on the same build: 110 to
113 of its 120 frame hashes, from frame 7 or so (seen in #38's live-3d corpus as a route difference; it wasn't one).
Only the alpha-blended fountain varied. bevy_hanabi (rev 77630ff) builds its draw list with atomicAdd, so blended
particles drew in an order that changed from run to run, and it seeds a new particle from the dead slot it recycles,
which threads take in atomic order too, so once particles die the new ones differed as well.

vendor/bevy_hanabi is that rev, src/ byte for byte but for four files, all marked raea: (tools/vendor: 104 lines):
- vfx_init.wesl: a new particle's seed is its index in this frame's spawns, not its slot;
- mod.rs, sort.rs, vfx_sort_fill.wesl: blended effects (not opaque, not alpha-masked) go through the sort pass that
  only ribbons used, keyed by view depth from the main camera (the near plane of SimParams' frustum, which sort-fill
  now binds), far first as Bevy sorts its transparent phase, AGE breaking ties. The sort's layout key no longer needs
  RIBBON_ID or AGE.
Its Cargo.toml drops the examples, GPU tests, dev-dependencies and [workspace] (Cargo.toml.orig is upstream's). A git
[patch] in the root Cargo.toml points at it; only the plugin build compiles it (raea-cli without plugins doesn't).
LICENSES/bevy_hanabi moves into the vendored folder, as for the other vendored crates (tools/licenses.sh).
engine/bevy-plugins' hanabi.rs tags the first 3D camera HanabiMainCamera, so the sort has a camera.

bench/hanabi-repeat/check.sh renders it 4 times on the program route: before, 110 to 113 of 120 frames differed run to
run; now every frame is the same, and program vs live (RAEA_LIVE3D_CHECK) matches on all 120 frames. At frame 30,
before any particle dies, sorted vs unsorted (the same build, sort switched off) differs in 9 pixels, as two unsorted
runs do (8.5): order where particles overlap, not coverage. bevy-ts plugin-hanabi passes.
2026-11-08 04:47:40 -08:00
shinyobjectz 01538b57e7 The live-3d corpus as a script, honest about what it skips (part of #38)
bench/live-3d/corpus.sh renders each composition in bench/live-3d/corpus.txt (the 190 files #38's run used) for 30
frames on RAEA_3D=program and on the live route, and compares the frame hashes. A failure there is now a real gap,
not the harness:
- a .tsx without registerRoot is a module (bunting, wake, cloud, contrail, smoke, bevy/view/scene and the generated
  plugin modules), so it is skipped;
- a case with // build: plugins or a raea/plugins import renders with the plugin build (motion.sh, or
  RAEA_PLUGIN_BIN), the way bevy-ts/check.sh does;
- animated-character (its glb was deleted), brick-rush (it needs the playable host) and rotate_environment_map
  (multi-layer textures, off by default) are expected skips, each with its reason.

shader-character's card-body/body.glb has its one joint renamed from CMU's Hips to pelvis, the game_engine name
sdk/character now looks for, so the case passes again.

Run: 169 same, 6 failed (examples/character x5 and bevy/passes: their kid body.glb is on the CMU rig), 4 differ
(hanabi varies between two program runs despite its seed; live-world, world-host and world-render differ at frame 0
only), 11 skipped.
2026-11-08 03:54:11 -08:00
shinyobjectz 392e4c7f1b FC1b: many_lights and many_foxes pass frame time: pipelined updates, and each row's values made once a frame (114 of 114)
raea_sys_frame::pipe does inside the engine's own update what Bevy's PipelinedRenderingPlugin does: a render thread (one for the engine's life) draws the frame the last update extracted while the main world runs this one; then this frame is extracted and the render world waits, home in the App, so what reads it between updates is unchanged. A render's frames and a live engine's catch-up steps pipeline; a live draw still hands its frame on drawn. RAEA_SERIAL or RAEA_PIPELINE=0 turn it off. Vello's renderer moves from a NonSend to a resource (in a SyncCell) so the render world can change threads.

FrameRows::vals made a row's values on every call, and six of the 3D's systems call it for every row (44% of a many_foxes update); set_cols now keeps each row's values, made on first ask, for the frame.

many_lights 6.2 -> 3.9 ms against Bevy's 4.9, many_foxes 11.8 -> 5.5-6.2 against 6.05; pixels identical with pipelining on and off. tools/bevy-parity: 114 of 114 ported examples pass.
2026-11-08 03:25:59 -08:00
shinyobjectz c94e26cc2a The Linux and Windows releases ship raea song: raea-perceive and the Beat This! model are packed on every platform since #43, release-check maps a 12 s 120 BPM drum loop with the unpacked raea, and the Windows job plays bevy-ts's play cases live after its pack and check (ImageMagick for check.sh's pixel reads) 2026-11-08 03:23:58 -08:00
shinyobjectz ec8669acba ui-parity's WPT run leaves SMIL tests out, with the reason in skipped.jsonl, since raea doesn't run SMIL by design. A test whose page has <animate> (and its kin) or <set> is skipped as "SMIL animation (<animate>, <set>), which raea doesn't run", so its failure isn't read as a regression. In the pinned checkout's areas that is one test, css-masking's clip-path-animation-neutral-keyframe-svg-smil. It had passed only because the test and its reference were drawn equally wrong, until #45 brought stylesheet paint to SVG and its CSS fill showed where Chrome animates it. 2026-11-08 03:22:09 -08:00
shinyobjectz fb7a4e4aeb An SVG shape's transform-box: stroke-box resolves as Chrome's: fill-box under vector-effect: non-scaling-stroke, and wide by a stylesheet's stroke (closes #50). WPT's svgbox-stroke-box-003/004 (a rect with id="target", a 20-wide non-scaling stroke, stroke-box, scale(0.5) translateY(-100%)) drew the rect smaller and off by a few pixels. It used to pass only because, before #45, the test and its reference were both drawn as plain black rects. Three things in blitz-dom were wrong:
- css-transforms-1 (csswg-drafts#9640) uses fill-box for stroke-box and border-box when the shape has vector-effect: non-scaling-stroke. svg_css_transform now does, from the computed value or the attribute.
- svg_stroke_width read stroke and stroke-width from the style attribute and attributes only, so a stylesheet's stroke didn't widen the stroke box (svgbox-stroke-box-001/002 and svgbox-border-box moved by the fill box's size). It now reads each as usvg sees the serialized element: its style attribute, then a rule's computed value that svg_css_paint writes there, then its attribute, then what it inherits.
- A non-scaling stroke reaches anyrender_svg as an id starting raea-nss-, since usvg drops vector-effect but keeps ids. An element with an id of its own was never marked, so its stroke scaled. mark_non_scaling_strokes now renames an element's own id to carry the mark when nothing in the source refers to it (`#id`); a referred-to id keeps its name (and its stroke still scales). The unit test covers both.

bench/svg-stroke-box/check.sh moves two stroked rects by translateX(50%) of their stroke box: a (stylesheet stroke: moves 60) and b (non-scaling stroke with its own id under scaleY(0.5): moves 50, its stroke 20 wide). Chrome 148 gives the probed pixels. The raea before this fails three probes; the raea with it passes. WPT css-transforms transform-box: 15 of the 28 tests Chrome passes before, 20 after (border-box, stroke-box-001 to 004), none lost.

fps, the same 120-frame page back to back, three runs each: 3.2, 3.8, 4.1 ms a frame before, 3.0, 3.8, 3.2 after (about 280 fps both).

Upstream candidate (Blitz): blitz-dom serialize.rs's stroke box and svg.rs's mark (the mark itself is raea's, for anyrender_svg).
2026-11-08 03:20:57 -08:00
shinyobjectz ac27341206 T1f: what release.yml's third run found on Windows: check-cli compares cli.md's text, not its line ends, since a Windows checkout has CRLF (Git's autocrlf) and raea's help LF; the run failed before packing, so it left no zip to look into 2026-11-08 03:17:46 -08:00
shinyobjectz 1db765c97d T1f: what release.yml's third run found: Linux's web app check panicked in raea-page-host because xkbcommon's X11 part wasn't installed. The runner installs libxkbcommon-x11-dev, and the README's Ubuntu build list names both xkbcommon packages 2026-11-08 03:17:46 -08:00
shinyobjectz 167f1b6e12 T1f: what release.yml's second run found: sdk/skills/raea/reference/cli.md was stale on main (raea render --review and --clay, raea solid, raea blender's library scripts), regenerated from the help, which the runners' own builds now check; Linux's runner installs libxkbcommon-dev, which raea-rune-host links 2026-11-08 03:17:46 -08:00
shinyobjectz 99003a573e T1f: a failed release check can be looked into without a rebuild: tools/release-check.sh keeps its folder at RAEA_CHECK_DIR, release.yml uploads the app check's frames and logs when a job's check fails, and Windows's zip is kept as an artifact whatever its check says (only windows-verify attaches it) 2026-11-08 03:17:46 -08:00
shinyobjectz f5596c75c6 T1f: what release.yml's first run found: Linux's runner installs NASM (rav1d's assembly), and the key scan counts an AWS key only standing alone, so a run of base64 (Bevy's inlined default font) isn't one 2026-11-08 03:17:46 -08:00
shinyobjectz 8e0c2b8d3d T1f: a release checks cli.md against its own build on every platform: tools/skills.sh check-cli compares the reference with RAEA_BIN's help alone and needs no feed app, and tools/release.sh runs it on a public checkout with the raea it just built, where the rest of the gate's pass comes from the tag. No other checkout checks cli.md strictly, since each one's raea holds other lanes' code 2026-11-08 03:17:46 -08:00
shinyobjectz 4667346f40 T1f: Windows joins release.yml: built on windows-latest, packed by tools/release.sh, attested, then unzipped on a fresh runner, installed through the published install.ps1 and checked before it's attached. The skills gate reads the private feed app, so a public checkout on any platform takes the commit where it passed from the annotated tag's "skills-passed: <sha>" line (or the skills_passed input) and checks the gate's inputs are unchanged since; without one the release refuses 2026-11-08 03:17:46 -08:00
shinyobjectz 53b0ce3fbb A 3D render draws the same pixels every time it runs (closes #48). Two renders of sdk/react/bench/games/room3d with one binary differed in 147 (RAEA_3D=program) to 369 (the live route) of their 7200 frames, by one pixel a frame: a single MSAA sample where a wall's foot meets the floor. There the two surfaces tie in depth, and the draw order decides the tie. Within a Bevy multidraw batch set, draws go in the order their bins were added, with removed bins swap-removed. await_models ran full updates while glTFs loaded, so the render world binned each mesh at the update its load landed on, and the trees' meshes joined at a different update each run. Bisected: without <Outside> (the glTF garden) 0 of 30 stills differ; with the trees alone they differ. Waiting for the GPU each frame (RAEA_SERIAL), the single-threaded executor and RGBA readback all still differ.
While models load, await_models now holds the active cameras off (raea-sys-post's views.rs). The render world still prepares meshes, textures and pipelines, but bins nothing. It turns them on before the first frame, so every view bins the whole scene into new phases in queue order. Turning views off after a draw was binned instead loses what Bevy extracts only on a change. And a morph mesh first seen by a view after loading would keep "no morph" for good: Bevy 0.20 gives it a descriptor only once its instance was collected, and collects an instance only when it changes. So views::on runs one update and then marks each morphed mesh's Mesh3d changed (bevy-ts morph drew its card unmorphed without that; the old loading updates collected it again by chance). An earlier try, updating only the main world while models load, broke the same case: messages the render world extracts by didn't reach it.

bench/room3d-repeat/check.sh renders room3d 8 times at frames where the seam ties and wants every run to match the first. The raea before this fails 5 of 7 runs; the raea with it passes. Five full renders (7200 frames each) hash the same. Frame 0 is pixel-identical to the raea before on room3d, bevy-parity many_foxes, bevy/model and bevy-ts morph. bench/live-3d is 13 of 13, and bevy-ts is 92 pass with 1 open (shader-character's body.glb, open before too).

fps, the full room3d render back to back, alternating: 124.3 and 109.7 fps before, 125.7 and 108.1 after. First-frame render, three each alternating: room3d 1.00, 0.66, 0.70 s before and 0.68, 0.68, 0.68 s after; many_foxes 1.26, 0.95, 0.95 s before and 0.96, 0.95, 0.94 s after.
2026-11-08 03:16:35 -08:00
shinyobjectz ffc337b68f FC0a: 3d/transparency_3d passes (0.998646 at frame 10): the 3D under the page is composited as premultiplied
Bevy blends into the 3D's target, so it holds premultiplied colour. raea laid it over black as if it were straight, multiplying each channel by its alpha again. That darkened every pixel where a fragment wrote alpha under 1 into an opaque pass: the AlphaToCoverage cube at frame 10 came out at 0.70x Bevy's colour, which is the 0.69 its resolved samples hold. Over black, a premultiplied picture is its own colour, which is what a Bevy window shows whatever alpha was written. bevy_over_3d (runtime/export bevy_frame.rs) and the fed render's GPU pass (engine/page feed.rs) now both take it that way, integer for integer. All 114 registered ports rerun: 112 pass. many_lights and many_foxes miss only on frame time, as before.
2026-11-08 02:50:25 -08:00
shinyobjectz 3d170ce60d A song map's tempo is the beats' own (part of #49). It was a line fitted through the downbeats against their bar count. Where Beat This! marks downbeats two beats apart in places, that counted each half bar as a whole one: a 99 BPM song read as 112.8 on Symphonia's decode and 116.6 on AVFoundation's, whose 12 ms offset moved three downbeats. Now the line goes through every beat against its count (a missed beat counted by its gap), so both decodes give 99.0. The hits come out 9 vs 6 rather than 62 vs 13, since they followed the tempo. Bars and one section boundary still follow the downbeats the model gives each decode. A unit test with every third bar half reads 99.17 for beats 0.605 s apart (119.26 before) 2026-11-08 02:27:18 -08:00
shinyobjectz 5c7540f91c CI's guard falls back to gitleaks' ghcr.io image when GitHub's release host keeps answering 504: on 11-08 every retry of the download failed for #39's and #45's landings (4219d620f, 0ef223922), before anything was scanned 2026-11-08 02:26:21 -08:00
shinyobjectz 450f8e4a97 FC0a: ui/widgets/standard_widgets under scripted input: the menu opens, its popup placed by Bevy's Popover
The bar can now drive an interactive example. A row of bench/bevy-parity/runs.tsv may name an input script, in the format `raea play --input-script` takes ({"FRAME": ["Pointer:X:Y:down"]}). The example gets it as RAEA_PARITY_INPUT: systems/parity input.rs writes bevy_picking's PointerInput messages on the picture the cameras draw into. The port's pictures then come from `raea play` under the same script; cost still comes from the render.

Gaps found and patched on the way:
- raea play sent its pointer only to useInput, never to page elements, so a composition's onClick never ran. The live step now hit tests the pointer on the page (BevyPage::hit_path) and sends its React handlers the events a browser fires, in a browser's order: over/out, enter/leave, move, down/up, and click on what both the press and the release were over (runtime/live pointer.rs).
- bevy_ui_widgets' Popover: Node takes `popover` ({positions: [{side, align, gap}], window_margin}). raea's Blitz places the popup after layout beside its parent's box (inside its border), at the first placement the window hides least, as position_popover does (vendor/blitz-dom bevy_popover.rs). It's drawn and hit tested there. Node also takes bevy_picking's handlers (onClick, onPointerDown/Up/Over/Out/Enter/Leave/Move; sdk/render ui-pick.ts). The page bridge keeps data-raea-bevy-popover.
- After any state change in play, bevy text was drawn broken at min-content width: raea's bevy_text min-content measure breaks lines at width 0, and a box whose layout taffy kept from its cache never broke them back. A measure now puts back the lines a laid-out box keeps (blitz-dom inline.rs, TextLayout::performed_width).

The port's Button reads "Hover" and "Press" as set_button_style has it; the menu button toggles spawn_menu's popup of four items, each lit while hovered; activating an item closes the menu. Under a click on Menu, then the pointer on the first item: 0.994691, worst tile 17. Without the toggle, the popover, GlobalZIndex or hover, with the side flipped, a 6 px gap, three items or 90% width, the bar fails; a gray border passes it and the probe catches it (7217 px off against 6465). conformance/ui-pick.test.tsx; blitz-dom bevy_popover tests; runtime/live pointer test.
2026-11-08 02:24:37 -08:00
shinyobjectz 3fcd4e56f3 raea song builds and runs off Apple (fixes #43). raea-sys-vision compiled modules that use Core ML and Apple Vision on every platform. depth and object are now Apple-only, and AppleVision with its text_lines moved into apple_vision.rs. The Vision trait and the portable helpers stay in vision.rs, and image becomes a dependency everywhere. raea-sys-layout's motion module (pure Rust) is no longer gated. raea-perceive gates the eyes, vad, track and hands commands to Apple, and read-lines and faces to builds that have a backend. Footage's store and content_hash (beats --store) move out of the Apple-only ingest module into store.rs. Off Apple, song and beats decode in process with the soft backend (Symphonia), since a Windows install has no ffmpeg: on a 163 s mp3 the map matches the ffmpeg backend's (264 beats, the same sections; strengths within 0.003). Models live in raea_io_home::models(): %LOCALAPPDATA%\raea\models on Windows, which has no HOME, and ~/.local/share/raea-models elsewhere as before. raea-perceive is found as raea-perceive.exe on Windows (io/assets perceive_bin, and the CLI's native.ts, whose PATH lookup now splits on the platform's delimiter). raea-perceive checks for Linux and Windows except opus's C build, which the soft backend brings and only a native toolchain compiles. The release doesn't ship raea-perceive for Windows or Linux yet 2026-11-08 02:17:06 -08:00
shinyobjectz 0ef2239226 An inline SVG's fill, stroke and the other paint properties set from a stylesheet are drawn, as Chrome draws them (closes #45). raea draws an inline SVG by serializing it and handing the source to usvg, which reads attributes and the style attribute only. Stylo computed #a path { fill: none; stroke: #13502B }, but nothing carried it into the serialized source, so the path was drawn with usvg's defaults: a black square.
blitz-dom's serializer (svg_css_paint) now writes each SVG element's computed paint properties into its style attribute: fill, stroke and their opacities, fill-rule, stroke-width, -linecap, -linejoin, -miterlimit, -dasharray and -dashoffset where they differ from the parent's computed value (they inherit, so a rule on the <svg> stays on the <svg>), and vector-effect where it isn't none. currentcolor is written as the element's color, as presentation attributes already were. The style attribute beats presentation attributes in usvg as in CSS, so a rule's fill wins over a fill="" attribute, as Chrome has it. vendor/stylo now has vector-effect for Servo too (it was Gecko-only), so a stylesheet's non-scaling-stroke reaches the source and isn't reported as not applied.

bench/svg-css-paint/check.sh draws five squares: a and b from a stylesheet rule on the path (a with vector-effect), c with attributes, d with a fill attribute under a rule on the <svg> (the attribute wins, as it's on the path), and e with a rule on the path over a fill attribute (the rule wins). Chrome 148 draws a, b and c as green outlines, d orange and e green. The raea before this drew a and b as black squares and e orange, and noted vector-effect as not applied; the raea with it passes.

WPT css-transforms, an 11-07 build vs this tree (won/lost lists; the newer build has #39 and other lanes' changes too): 18 svg-document-styles, svg-external-styles and svg-inline-styles tests now pass (their transforms' boxes are drawn with CSS fill). Three tests that passed because the test and its reference were drawn equally wrong now fail on their real gaps: svgbox-stroke-box-003/004 (with non-scaling-stroke, Chrome uses stroke-box as fill-box) and css-masking's clip-path-animation-neutral-keyframe-svg-smil (raea doesn't run SMIL <animate>, so the CSS fill shows where Chrome animates it).

fps, the same 120-frame page back to back, three runs each: 3.7, 3.9, 3.5 ms a frame before, 2.4, 3.3, 3.4 after (about 280 fps both).

Upstream candidate: blitz-dom serialize.rs's svg_css_paint (Blitz), stylo's vector-effect for Servo.
2026-11-08 02:15:24 -08:00
shinyobjectz 4219d620f6 An absolutely positioned box is painted inside the opacity (or other stacking context) between it and its containing block, as Chrome paints it (closes #39). blitz-dom hands an out-of-flow box to its containing block to paint (hoisted_children), and the containing block painted it in its own layer. So in <div style="opacity:0.3"><div style="position:absolute">, where the wrapper isn't positioned and the containing block is further up, the box was drawn at full opacity, outside the group it belongs to. Chrome 148 draws it faded, since a stacking context paints everything inside it, positioned or not.
blitz-dom's paint tree now gives such a box to the nearest stacking context between it and its containing block (paint_owner); that stacking context takes it from its containing block's list (take_out_of_flow), z-sorted with its other children. Its place still comes from its containing block (hoisted_child_position subtracts the stacking context's own chain), so a margin that moves the wrapper doesn't move the box. In blitz-paint, the group's layer reaches over the taken boxes (hoisted_content_bbox), and they are drawn after the stacking context's overflow clip layer, since the containing block that places them is above that clip (draw_from_above). Drawing them inside the clip layer made a mix-blend-mode box in an overflow:scroll stacking context blend with an empty layer (WPT compositing mix-blend-mode-with-transform-and-preserve-3D/fixed, caught and fixed before this commit).

bench/opacity-out-of-flow/check.sh draws four black boxes in groups at opacity 0.3 (an absolute child of an unpositioned wrapper; an in-flow child; an absolute child of a positioned wrapper; the first moved down by its wrapper's margin) and probes each for Chrome's grey 178. The raea before this draws 1 and 4 black (0) and fails; the raea with it passes, as Chrome 148 does.

WPT, raea before and after this and #45 together (won/lost lists, not counts): compositing 12 of 43 both, the same tests; css-masking +2 (clip-path-blending-offset, mask-image-ib-split-2) and one false pass gone (clip-path-animation-neutral-keyframe-svg-smil: CSS fill now reaches the SVG, and raea doesn't run its SMIL <animate>); css-transforms 22 won (18 svg-document/external/inline-styles, #45's; subpixel-transform-changes-001 to 004) and two false passes gone (svgbox-stroke-box-003/004: the test and its reference were both drawn as black rects; with their CSS paint they now differ by raea's stroke-box under non-scaling-stroke, which Chrome uses as fill-box).

fps, the same 120-frame page back to back, three runs each: 3.6, 4.6, 4.8 ms a frame before, 2.4, 4.2, 3.9 after (about 240 fps both).

Upstream candidate (Blitz): blitz-dom paint_tree.rs (paint_owner, take_out_of_flow, hoisted_child_position) and blitz-paint render.rs (from_above, draw_from_above, the layer's bounds).
2026-11-08 02:13:10 -08:00
shinyobjectz 85beee43c6 text-autospace's initial value is no-autospace, as Chrome's and Gecko's are (closes #44). raea's stylo enabled text-autospace for Servo (for parley's layout/autospace.rs) with an initial value of normal, so every page without the property got Chrome's ideograph-alpha/ideograph-numeric spacing anyway: "2026년" at 48px sans-serif drew 6 px wider unstyled than with text-autospace: no-autospace. Chrome 148 draws the unstyled line as no-autospace and only text-autospace: normal wider. The initial value is now NO_AUTOSPACE (vendor/stylo longhands.toml); parley's comments said Chrome's initial was normal and now say what it is.
bench/text-autospace/check.sh draws three "2026년" lines (unstyled, normal, no-autospace) and finds where each line's ink ends. The unstyled line must end where no-autospace's does, and normal's 5-7 px further right. The raea before this ends them at 202/202/196 and fails, the raea with it at 196/202/196 and passes; Chrome 148 ends them at 184/190/184 (a different sans-serif, the same 6 px). WPT css-text --only text-autospace: 13 of 26 pass before and after, the same tests.

fps, the same 120-frame text-autospace page back to back, three runs each: 4.3, 3.3, 3.9 ms a frame before, 3.7, 3.5, 4.3 after (about 260 fps both).

Upstream candidate: stylo's text-autospace is Gecko-only upstream; enabling it for Servo would need this initial value.
2026-11-08 02:07:51 -08:00
shinyobjectz 16b9726fdc url_path is src's file URL without its scheme (part of #40-#42), rather than a second forward of the same shape (dupes stay at 295) 2026-11-08 01:45:53 -08:00
shinyobjectz d45b38ef60 An HTML page's files load on Windows (fixes #40, fixes #41, fixes #42). The HTML runtime was handed the page's folder as Windows wrote it: canonicalized to a verbatim \\?\D:\ path (#40), or as D:/..., which a URL reads as scheme d (#41). The cached Google Fonts face came back from html.read as C:\... (#42). Its backslashes became CSS escapes in url(), and the drive a URL scheme in src. Now the folder is canonicalized without the verbatim prefix (raea_io_home::plain), and the runtime gets every path in URL form: raea_io_home::url_path, /D:/work/page on Windows, which the page's file:/// base joins into file:///D:/work/page. That covers the page folder, the font folder and html.read's answers. What the runtime names back (html.read's urls, a video's file, a sound's src) is read through from_url_path. Nothing changes on Unix, where both are the path itself. io/home's test checks the forms on any system, and joins them to file:/// as Blitz does: the result is a file URL, not scheme d 2026-11-08 01:40:12 -08:00
shinyobjectz ef05474017 CI's guard retries the gitleaks download: two runs on main (2a71a69d9, b36c58f95) failed on a single 504 from GitHub's release host before scanning anything 2026-11-08 01:12:23 -08:00
shinyobjectz 695f54b966 FC0a: camera_pass writes a Camera only when its row changes it
The live route calls camera_pass every frame. Assigning to the Camera through get_mut marked it changed every frame, even with the same values, and that moved two edge pixels in frame 10 of bench/bevy/paint/edit between the live and program routes (#38). It now compares the row's order, clear and viewport with what the Camera holds, and writes only when one differs. paint/edit's frame 10 matches across routes again; two_passes and split_screen pass as before (0 and 673 px off live).
2026-11-08 01:10:41 -08:00
shinyobjectz b36c58f95d A video with 3D makes its 3D live, stepping React once a frame (part of #38, #26)
The last part of #26: a full 3D video stepped React twice per frame, once in runtimes of its own to make the 3D rows beforehand and again for the page. When the page's render meets its first 3D frame, it now starts again with its 3D made live as each frame steps, as a game's render does. Each frame's scene is kept (LIVE_CLIPS) for the clipping check at the end, and --aov works on the live engine too. RAEA_3D=program keeps the old route. The program fallback's two returns are now one (render_bundle_with with scene.is_some()).

This was parked until #38's cases matched (environment, kept mounts, text3d, volumetric glass, world answers, material fields: all landed). Checks with this build:
- 190 compositions, default route vs RAEA_3D=program, 30 frames each: 151 identical. 35 fail on both routes as before (compositions that throw, plugins not compiled in). The three world cases differ on frame 0 only, which is expected (useWorldAnswer). bevy/paint differs on frame 10: two edge pixels by at most 15 levels. That is present without this change too (the previous build shows it on RAEA_3D=live) and is listed on #38.
- #26's scene (bench/at-3d), full 360-frame render, whole run, old default vs new, back to back: 13.2/12.5/13.2 s vs 10.7/10.6/10.4 s, frame hashes identical. Its ms-a-frame line reads 24.0/24.1/25.5 vs 26.3/27.8/27.2, because React's one step is now counted inside the frame.
- bevy-ts: 92 pass, 1 open (shader-character, open before too).
2026-11-08 01:05:25 -08:00
shinyobjectz 2a71a69d95 FC0a: 3d/two_passes and 3d/split_screen, several cameras in one window
<Camera3d> takes Bevy's Camera order, clear_color (ClearColorConfig: Default, None, Custom) and viewport (physical px). Every camera in a scene gets a camera row: the first is "cam", and each one after it is cam1, cam2 and so on (runtime/look camera.rs). Renders and live play spawn them all, and raea-sys-frame's camera_pass puts each row's order, clear and viewport on its Camera. Per-camera UI goes in a <Viewport> inside <UiTargetCamera>.

two_passes: 0.999025, 0 px off in render and live. split_screen: 0.998973, 1142 px off in render, 673 in live play. Mutation tests: a missing viewport, a shifted viewport, a moved camera and a changed justify_content fail the bar. The pixel probe catches the light angle, button width, padding, margin and plane size. Reversing the camera order is equivalent because the viewports don't overlap. In live play, extra cameras keep the place they had on the first frame.
2026-11-08 01:01:17 -08:00
shinyobjectz a800f3cfa5 FC0a: ui/text/font_atlas_debug passes (0.99966): bevy_text's glyph atlas in raea's TSX. raea/ui's FontAtlasSet.atlases(font, font_size, text) is the pages a Text of that text fills, made natively by bevy_text's own code (the fonts.atlases call, raea-sys-fonts atlas.rs: the text shaped in the face as bevy_text shapes it, each glyph its layout meets rasterized by swash and packed by add_glyph_to_atlas, 2 px padding, 512 px pages), each a PNG data: URL an ImageNode shows. The port grows the yellow FiraSans-Bold text every third frame from the example's ChaCha8Rng (rand's random::<u8>() as char: "a6Ò" and a control character by frame 10, drawn as .notdef in both) and shows the page beside it a frame after it's made: the atlas's packing, Ò's base and accent as two glyphs, matches Bevy's. The bar fails 7 of the 10 mutants; of the 3 it passes, the off-pixel probe catches the atlas size (1552 against 680) and its top (1353), and a probe of the text's fully yellow pixels its colour (0 against 1680); the tenth (dropping the repeat check) draws the same three characters by frame 10. runtime/calls tests/fonts.rs (atlases: one page, a glyph met twice packed once). 2026-11-08 00:35:23 -08:00
shinyobjectz d7982d95e5 #38: a mesh's alpha mode follows its opacity each frame, on both routes (part of #38)
What changes for authors: a mesh at opacity 1 draws opaque and writes depth, on every frame where it's at 1, even if it fades on other frames. Below 1 it blends. Before, a render made any mesh with an opacity column (one that faded at any point) a blended surface for its whole life, while live play blended only from the first frame below 1. A mesh whose alpha mode is given (alpha: blend, mask...), or a blended picture (a glyph over its atlas, a textured mesh that fades), keeps its own mode at 1.

bevy/volumetric-glass differed between the routes on frames 20-39, where its pane is at opacity 1 and the fixture says it "must draw as the opaque one" (frame 19). The live route did that. The program route drew the pane blended, so it wrote no depth: the froxel hero shaft was integrated to the wall behind it and then dimmed by the pane's full opacity, and the shaft in front of the pane was lost. systems/material maps.rs now spawns a mesh opaque at opacity 1, and runtime/scene3d sync_meshes and the toon sync switch Opaque and Blend both ways each frame. froxel_glass already drops a surface's fog copy once it stops blending.

Checks:
- volumetric-glass: all 90 frames equal between the routes. The program route's frames 20-39 changed and now equal frame 19; no other frame changed.
- bench/live-3d/check.sh adds it: 13/13 pass. bevy-ts: 92 pass, 1 open (shader-character's body.glb, open before too).
- Old vs new binary, program route, frame hashes: no change in broll (p26), bevy-parity mesh_ray_cast, texture, transparency_3d, bevy-ts alpha-mask, bevy/materials, bevy/studio, conformance layered-clear, react box3d. room3d isn't deterministic (two runs of the old binary differ on 147 frames); its one fade is a Decal, which this doesn't touch.
- The 1 to 0.99 edge (a scratch cube held at 1, then 0.99, 0.98 over a sphere): frame 9 to 10 changes as much as 10 to 11 (about 15 px, at most 4 levels), and the same on both routes, before and after.
- No golden reference fades a mesh.

volumetric-glass, program route, ms a frame before vs after, back to back: 7.3/7.6/7.5 vs 7.5/7.5/7.9.
2026-11-08 00:29:53 -08:00
shinyobjectz bdf9e53397 FC0a: ui/text/system_fonts passes (0.98794): the system's font families in raea's TSX, as Bevy's FontCx lists them. raea/ui's FontCx.family_names() is the native call fonts.families (runtime/calls: a fontique collection of the system's faces alone, sorted, each once; Bevy lists 516 on this Mac, the hidden "." families among them). Gaps found and patched on the way:
- a face parley can't scale (Apple's bitmap-only GB18030 Bitmap has no head table, so its advances are infinite) blacked the whole page: every box after it was NaN. blitz now measures a bevy_ui Text whose lines are no finite size as 0 by 0, as bevy_text's buffer_dimensions does.
- a FontSource::Family face missing a character fell to CSS's serif (Times), then to CoreText's pick for the face, where bevy_text falls to the collection's fallback families (Helvetica for Latin). The SDK now writes such a family as `"Name", "raea-bevy fallback"`: blitz appends no serif to it and parley asks no FallbackHook for it (NO_HOOK_FAMILY).
The bar passes every mutant but two (the count off by one, the rows' blue 0.25 to 0.22); a probe of the count line (473 px off against 556) and of a row's background (srgb 51 51 64 against 56) catches both. All 72 ui ports pass. Open: lines mixing a face with its fallback sit about 0.4 px lower than Bevy's, and their stems are softer (Bevy's atlas is sampled nearest; snapping glyphs to whole pixels didn't bring it closer).
2026-11-08 00:15:34 -08:00
shinyobjectz 485cb7b8aa #38: a glyph faded in on the live route is opaque once its fade is done (part of #38)
In bevy/text3d, "render anything" stayed half see-through on the live route from the frame it typed on. `reveal` fades each glyph through 0, 0.5 and 1. A live frame makes its rows from that frame alone, so a glyph's row has an opacity column only on a frame where it is below 1, and nothing was sent when it reached 1: the glyph kept 0.5. A mesh already gets opacity 1 back on a frame that leaves the column out (a render's keyed column says 1 there); LiveScene::diff now does the same for a glyph. The title's `pop` had the same fault, and caused the small differences from frame 5.

Test: runtime/scene's a_faded_glyph_is_opaque_once_done fails before the fix (no opacity sent) and passes after. bench/live-3d/check.sh adds bevy/text3d: 12/12 pass, all 72 frames equal between the routes (frames 5-71 differed before). The fast path needs no change, since it hands glyph rows to the full path.

bevy/text3d, live route, ms a frame before vs after, back to back: 13.8/12.9/12.8 vs 13.1/12.7/13.2.
2026-11-08 00:10:07 -08:00
shinyobjectz a6d7ab2c6b #38: a live scene's camera multisamples once a frame brings 3D (part of #38)
kept-mount and kept-unmount drew the cube with hard edges on the live route from frame 10, where it mounts: the live camera spawns before any 3D part, so spawn_camera's has_3d check left MSAA off, while the program route's camera sees every frame's rows at load and turns it on. Engine::set_rows now calls raea_sys_post::msaa_for_3d, which turns MSAA on for a 3D camera once its rows have 3D, under spawn_camera's own rule (not with ssao, aa, outline, frame_looks or passes, not in preview).

bench/live-3d/check.sh adds both cases: 11/11 pass, every frame equal between the routes (frames 10-19 differed before, program 158 vs live 216 at the cube's edge).

kept-mount, live route, ms a frame before vs after, back to back: 26.9/23.0/23.7 vs 24.5/21.6/22.6.
2026-11-07 23:53:02 -08:00
shinyobjectz ba97a973c0 Live play cuts from one <Environment> panorama to another, lit and with its sky, as a render does (part of #38). bevy/environment cuts from venice_sunset to museum_of_ethnography at frame 30. A render's camera row lists both panoramas at load (env_srcs) and keys which one each frame shows (env_i), and the engine bakes both lights up front. A live frame's row names only its own panorama, and env_srcs wasn't a column live frames send, so live play kept the first panorama for good: frames 30-59 of the case showed Venice in live play and in the parked live render route.
LiveScene's camera row now lists every panorama shown so far (runtime/look's env_shown: the list last sent, then this frame's if new), with env_i pointing into it, and sends env_srcs when the list grows. Engine::set_rows hands a live frame's rows to raea-sys-environment's live_rows. It makes and bakes a new panorama at the first one's face size (grow, which shares panorama() with the load's environment()), then keeps updating until the new light is filtered, so the frame of the cut isn't lit by empty targets. Those updates draw nothing and step no time: the time strategy is held at zero and put back. A camera that had no panorama gets its whole environment the same way. The code sits in raea-sys-environment and raea-runtime-look because raea-render and raea-runtime-scene are at their 2000-line limit.

bench/live-3d/check.sh adds bevy/environment and material-field-0 (c0fd55f43): 9/9 compositions' per-frame hashes are identical between RAEA_3D=program and RAEA_3D=live with RAEA_LIVE3D_CHECK=1, where the raea before this differs on 30 of environment's frames. bevy-ts check.sh: 92 pass, 1 open (shader-character, open before).

fps, bevy/environment rendered live back to back, three runs each: 19.0, 19.2, 19.7 ms a frame before, 20.6, 18.7, 20.6 after (the second panorama decoded and baked once at the cut, which live play skipped before). The program route doesn't take this path.
2026-11-07 23:41:00 -08:00
shinyobjectz c703bb308c FC0a: UiMaterial, as Bevy's ui/ui_material runs it (docs/control.feature FC2a). raea/ui's MaterialNode draws a node with a fragment shader of the author's, compiled as written: its @group(1) bindings are renumbered into raea's slots (up to 8 uniforms of any type to 256 bytes, 4 textures and their samplers; raea-sys-shader ui_bind.rs) and it reads UiVertexOutput as in Bevy. raea-sys-shader's ui.rs runs Bevy's own UiMaterialPlugin with one material type: each node is drawn by a Camera2d of its own into a texture of its border box (the node's border widths and corner radii as Bevy resolves them), which the page shows in the node's place, on the GPU or read back. ui/ui_material passes with no pixel off at frame 10; its probe caught every mutant (colour, border colour, slider, the border's width and radius, the texture). The rerun of every registered port changes nothing else (107 of 110 pass; the 3 that fail are the known frame-time and transparency_3d ones). 2026-11-07 23:29:58 -08:00
shinyobjectz c0fd55f43d A material: row sets only the fields it gives on the part's own StandardMaterial, the rest as they were (part of #38). patch_material deserialized the given fields as a whole StandardMaterial, every field it wasn't given at its default, and applied all of them. So material-field's patch of emissive_exposure_weight also blacked out the cube's emissive and turned its black base white. On frame 0 the scene sync put the row's colours back. From frame 1 on, a render leaves an unchanged mesh alone (StillSynced), so the program route drew the cube grey (red 49) at a weight of 0.14, in stills too. Live play re-synced every frame, which hid it, and so the two routes differed on 29 of 30 frames. Each given field is now deserialized by its own type and applied to that field alone. An unknown field is refused by name.
material-field-0, red at the cube's centre on frames 0, 1, 5, 10, 20, 29: the program route was 216, 49, 49, 49, 49, 49 and now draws 215, 206, 165, 101, 14, 14, the same as live play. That's the ramp Bevy's emissive * mix(1, exposure, weight) gives the rows' eased track. At frame 20 the cube is the black base's specular (14, 9, 10), not grey. The grey (50, 48, 49) that control.feature FC1c recorded was this bug, and the case comments now say dark. The probes (r>150 at 0, r<80 at 20 and live) pass as before. A unit test (a_material_row_sets_only_its_fields) checks that a patch keeps the emissive and base colour; it fails on the old patch with emissive black and base white. bevy-ts check.sh: 92 pass, 1 open (shader-character: its body.glb has no joint it names, open before this too).

fps, material-field-0 back to back, three runs each: 21.9, 16.9, 23.0 ms a frame before, 22.2, 21.7, 17.4 after.
2026-11-07 23:06:11 -08:00
shinyobjectz 900411c90e FC0a: the five ui/text input examples port: editable_text_filter 1.00000, ime_support 0.99822, multiline_text_input 0.99804, multiple_text_inputs 0.99233 and text_input 0.99909, each at its first frames with the AutoFocus'd input's caret where Bevy draws it (none where the focus lands on no input).
Gaps found and patched. An empty Text is parley's empty line: bevy_text leaves its empty span out, so parley lays out nothing in its default style, 16 px high and 0 wide whatever the Text's font. text_input's empty output box was 16 px short without it (0.959). EditableText takes max_characters, filter (EditableTextFilter) and read_write_mode (TextReadWriteMode; Static draws no caret, as bevy_ui_render's extract skips it). The first two act on typing, so a starting text past them is kept, as Bevy keeps it. multiple_text_inputs: TextEditChange fires as EditableText::new sets the text, so the "value" boxes show each input's text from the start; of the two AutoFocus inputs the later one holds the focus, and update_row_border_colors dims the others (SLATE_300.darker(0.75)).

Mutants: the bar fails a missing caret in multiline (and the probe counts 1618 px off, not 1402), 7 for 8 visible lines, a Left setting, no "value" text, focus on the first section, darker(0.5) borders, visible_width 9, a non-empty output and a 240 px IME box or a serif output. It passes a missing caret in editable_text_filter (SLATE_700 on DARK_SLATE_GRAY is low contrast), but a pixel probe at the caret (x 530 to 535, row 360) matches Bevy's srgb(51, 65, 85) exactly, which the mutant leaves as the background. It also passes 6 px padding (1904 px off, not 0) and an 8 px scrollbar (7361, not 1402). Dropping read_write_mode changes nothing here, as it should: only Static hides a caret, and the Static row has no focus. All 61 ui ports pass. conformance/feathers.test.tsx (EditableText's new props, the empty Text).
2026-11-07 22:57:07 -08:00
shinyobjectz 1af64f2a41 raea/world's answers are read in a component with useWorldAnswer(ticket), which renders that component again the frame the answer arrives, in live play and in a render alike (part of #38). world.answer(ticket) was the only read, a pull with no subscription, so a component that never re-rendered never saw its answer. bevy-ts's world-render, world-host and live-world drew green in a render only because the program route steps React twice: the first pass's Engine answers the calls queued at load, and the second pass reads them at frame 0. Made live (one pass, RAEA_3D=live), all three stayed red on every frame.
The hook is useSyncExternalStore over a small store of answers by ticket (an answer comes once and never changes, so a reader gets the same object each time, and it outlives the Engine's queue of the last few hundred). It subscribes to its Clock's tick (clock.tsx's onClockTick) only until its answer is in, and only the components that read an answer render again. world.answer(ticket) stays the plain read for code outside React, through the same store. The three cases read their answers with the hook. Under RAEA_3D=live they're now green from frame 1 on, and the program route is unchanged (green from frame 0). Frame 0 can't match in one pass: the calls name parts ("cube") that exist only once frame 0 has rendered, so the program's frame-0 answers were the double step's. raea-bevy's limits.md now points agents at the hook.

bevy-ts check.sh: world-render, world-host and live-world pass (default route; live-world in live play). fps, world-render back to back with the case before and after, three runs each: 7.1, 6.7, 6.8 ms a frame before, 7.0, 6.9, 7.5 after.
2026-11-07 22:53:56 -08:00
shinyobjectz 43eb20fbd7 FC0a: ui/styling/box_shadow ports at 0.99880, and bevy_ui's drop shadow is drawn as Bevy draws it. The port is the example's first frame: a 164 px square with a 1 px white border on CSS gray, its BoxShadow black at 0.8, offset 20, spread 15, blur 10, under BoxShadowSamples(6), and the settings pane (examples/helpers' radio and number inputs) over the dark theme with its pane body at 0.9 alpha.
The shadow: a node with a box shadow is marked data-raea-bevy-shadow with its BoxShadowSamples (new, @bevy bevy_ui_render::BoxShadowSamples, 4 unless a <BoxShadowSamples> above sets it). raea's Blitz spreads its outer shadows by bevy_ui's rule (width + spread, height and corners by the same ratio) and paints each from a CPU bitmap of box_shadow.wesl's rounded-box shadow: across, the exact erf integral; down, the Gaussian summed in SAMPLES steps over 3 deviations each side, clamped to the box; on the quad of the shadow's size plus 6 blur radii. Vello's analytic shadow is a different approximation of the blur, so it is no longer used for bevy_ui nodes (CSS box-shadow is unchanged).

The bar is blind to a soft shadow: spread 15 -> 12 or 14, blur 10 -> 8 or 9, samples 6 -> 4, x offset 20 -> 18 and alpha 0.8 -> 0.7 all pass it. A pixel probe over the shadow (crop 260x260+580+280, max difference) tells each from the real port: the real port differs by at most 1 level, the mutants by 2, 4, 1 (samples 4: Bevy's own 4 and 6 differ by about that), 6 and 14; samples 6 -> 1 fails the bar. All 56 ui ports rerun: they pass, overflow_transform (0.99543) and feathers_gallery (0.99561) among them. image_node_resizing's camera index is 430 again: registering this example put one more startup entity in the parity host (454 -> 455), and its comment now says how to tell.

The parity host's build.rs makes an example's #[path] modules absolute and its `use crate::` a `use self::`, since the example is a module of the host (box_shadow takes its helpers that way).
2026-11-07 22:46:26 -08:00
shinyobjectz 0ee51a1c64 Inline text in a scrolled element is scrolled once, as Chrome scrolls it, not twice (closes #46). blitz-paint's render_element drew a scroller's contents scrolled two ways: it subtracted the scroll offset from content_position, and (since #18) pre-translated the transform by it. Inline text and a text input's text are placed by both, so a box with scrollTop 60 showed its text 120 px up: "Three" over "Four" where Chrome 148 shows "Two" over "Three". Block children are drawn through the transform alone, which is why sdk/ui's overflow-scroll case (block rows) never caught it. content_position now stays put and the transform scrolls everything. #37's text mask is unchanged: Chrome masks a scroller's background with its text unscrolled (scrollTop read back 60, and a forced repaint kept the mask at "One" over "Two"), and raea's mask already ignored the scroll. Its doc comment now says so instead of calling the offset a gap.
bench/background-clip-text/check.sh adds scrolled.tsx: a plain scroller and a text-clipped one, each scrolled down a line. Only "Three" reaches past x 112, so a strip at x 112-140 tells the lines apart. The raea before this fails both of the plain scroller's strips, and the raea with it passes all of them.

fps, the same 120-frame scrolled.tsx back to back, three runs each: 4.7, 4.0, 4.5 ms a frame before, 4.5, 4.4, 4.0 after (about 230 fps both; the change removes a subtraction).
2026-11-07 22:41:07 -08:00
shinyobjectz 9fe4c0c307 FC0a: ui/widgets/feathers_gallery ports at 0.99561, with the rest of bevy_feathers: panes, sub-panes and groups; menus, selects, list views and tool buttons; checkboxes, radios, toggle switches, disclosure toggles and the slider; the text input, colour swatch, colour slider, colour plane and colour input; and its icons
The gallery brought four gaps, now patched rather than skipped:
- Okhsla: bevy_color's Okhsla (in f32, as Bevy computes it), and Okhsla gradients sampled from okhsl's mix, which CSS has no space for. An Hsla track keeps its stops' hues, so the hue slider runs the long way back to red as Bevy's does.
- A spreading BoxShadow: bevy_ui widens the shadow by the spread and scales its height and corners by the same ratio. The spread is now sent, and a node marked data-raea-bevy-shadow is spread by that rule in raea's Blitz (vendor/blitz-paint box_shadow.rs, unit tested).
- A translucent border blended over the node's own background. Bevy draws the background inside the border only, so the border blends over what lies under the node. Feathers' disabled switch slide showed it.
- The alpha checkerboard and the colour plane are UiMaterials in Bevy. raea has no UiMaterial yet (FC2), so the checkerboard is a tiled conic gradient centred on the node, and the plane is a bitmap of color_plane.wesl's formulas.

Where Bevy 0.20 itself differs from its intent, the port draws what Bevy draws:
- The list view's scrollbar never finds its scroll area (#inner, passed through the scrollbar's props, resolves to no entity), so Bevy draws its track and no thumb, and keeps the gutter.
- The hex field's InheritableFont { font: MONO } never reaches the input's own text, so it shows in feathers' regular face.

ui/images/image_node_resizing's camera index moves to 429: every example's Bevy run now has one fewer startup entity in the parity host, and this port is the only one that names an absolute index.

Probes caught all 11 gallery mutants, against 4 for the bar alone: the swatch's opaque part, the checker's phase and colours, a mirrored thumb, a lost middle stop, a flat alpha track, swapped plane axes, the plane's fixed channel, the list track, the border blend and the colour input's size. All 55 ui ports pass again.
2026-11-07 21:32:37 -08:00
shinyobjectz 601296ea0e FC0a: ui/widgets/feathers_number_input ports at 0.99748, with feathers' FeathersNumberInput: the value as Rust's Display prints it ("1", not "1.0"), held within its HardLimit and shown through its units (LengthMeters, TimeSeconds, AngleDegrees: PI radians reads 180°), over a hard-stop gradient bar to its place in its SoftLimit, dimmed when disabled, with a sigil strip and an "X" label. NumberInputValue and NumberInputRange in f32, f64, i32 and i64. Blitz drew nothing for a one-sided border on a rounded box: the corner split angle divided by the other side's zero width (NaN); its limit now gives the whole arc to the side with the width (vendor/blitz-paint, with a unit test). The bar passes a moved soft-limit bar, an undimmed disabled field, the wrong sigil colour, radians for degrees and a missing label; pixel and region probes catch all five. borders, gradients and standard_widgets score as before. 98 of 102 ported examples pass 2026-11-07 19:45:22 -08:00
shinyobjectz b269cbc12e FC0a: ui/widgets/feathers_counter ports at 0.99994, with feathers' display: caption (a ThemedText), label, label_dim and label_small (Fira Sans in the theme's text colour, which no propagation overrides), and ThemeBackgroundColor, ThemeBorderColor and ThemeTextColor, which colour the one element inside from the UiTheme. A button's caption takes Fira Sans 14 px; the count, a caption outside any widget, keeps Bevy's default font, as in Bevy. A pane background fails the bar; a plain Text caption (298 pixels off, not 15) and no margin (237) pass it and are caught. 97 of 101 ported examples pass 2026-11-07 19:34:56 -08:00
shinyobjectz 133e637b80 FC0a: ui/widgets/standard_widgets ports at 0.99765: the headless widgets at rest after the style systems' first frame, the RadioGroup with only Snap's mark (update_widget_values checks the radio matching the resource) and the menu Button closed. The bar fails only a centred menu; probes catch Drag checked (its mark 191, not 44), a checked checkbox (191, not 44) and no menu square (38, not 128); rings and marks sit at Bevy's boxes, the rest is glyph edges. 96 of 100 ported examples pass 2026-11-07 19:32:10 -08:00
shinyobjectz e31303c7fd FC0a: ui/widgets/standard_widgets_observers ports at 0.99874: the headless Button, Slider and Checkbox as their observers leave them at rest, the thumb at 50% once update_widget_values inserts the resource's value. The bar fails only the Hover mutant; probes catch the rest (the thumb at 0%: its pixel 13, not 191; a checked mark: 191, not 44; no TextShadow: the button's region 207 pixels off, not 168). 95 of 99 ported examples pass 2026-11-07 19:29:37 -08:00
shinyobjectz c4e528f56a FC0a: ui/widgets/virtual_keyboard ports at 0.99371, on raea/feathers (bevy_feathers) and EditableText. raea/feathers carries feathers' dark theme (its palette, semantic colours, surface-level overrides and 150 token assignments, generated from dark_theme.rs and tokens.rs; with no UiTheme every token is FUCHSIA, as Bevy's empty ThemeProps), FeathersButton, VirtualKeyboard and ThemedText: a widget's font and text colour reach only a ThemedText, as feathers' Propagate is filtered With<ThemedText>, so the keyboard's plain Text keys keep Bevy's default font, as Bevy draws them. Feathers' own Fira Sans (four faces) and Fira Mono Medium are bundled whole in core/fonts, and its fonts name them by family. EditableText measures as TextInputMeasure (visible_lines of line height, rounded up; visible_width in ch, the advance of 0) and draws parley's caret, cursor_width of the font size wide, for the first half of each blink period while it has focus. Oklcha gains lighter, darker and with_alpha. 94 of 98 ported examples pass 2026-11-07 19:27:22 -08:00
shinyobjectz 00327576cc #35's test of an SVG <text>'s attribute names takes its frames from the walk (part of #27). It handed Tree::diff a frame written by hand with $ns already in it, so nothing tested the walk giving it: with elements.rs's page.insert("$ns", "svg") taken out, every test still passed. The test now builds the React tree a composition's commit leaves (a <text> in an <svg>, and a <title> under its <foreignObject>), walks it on each of two frames as BevyPage does, and sends the walk's wants through Tree::diff to ops::apply. It checks that the <text> has $ns and the HTML <title> doesn't, and that the second frame's fontSize and textAnchor keep their SVG names. With the insert taken out, it now fails at "the walk names the <text> SVG's". world.rs's walk (a plain App's page) now also starts from IN_3D 0 and IN_SVG false, as BevyPage's does. 2026-11-07 19:14:20 -08:00
shane ea501764b2 Merge public PR #35 from JimGHTB12: an SVG <text>, <image> and <title> keep their SVG attribute names
Closes #27.
2026-11-07 22:09:40 -05:00
shinyobjectz 0d3d0401de FC0a: ui/widgets/vertical_slider ports at 0.99900, and a bevy_ui page's curves are flattened to 0.02 px, not Vello's 0.25 (vendor/vello_shaders flatten_tol, on config.blend_linear). The chords drew the 12 px round thumb a quarter pixel small, every edge pixel's coverage about 0.12 short of Bevy's distance-field edge; now the thumbs differ by no pixel at 3% (their mean error a quarter of what it was). Text is drawn through the same flattening, and the old inset happened to sit nearer Bevy's glyph rasteriser: the text ports move by up to -0.0009, the shapes by up to +0.0023, all 49 UI ports still pass. 93 of 97 ported examples pass 2026-11-07 19:08:49 -08:00
shinyobjectz 90f65721d9 A 3D scene made live (live play, a game's render) draws what its program draws (part of #26). Each frame's live rows now send what a render keys, the way it keys it. Toward making a full 3D render step React once (#26's leftover): its 3D made live as each frame is stepped, as a game's is, instead of in runtimes of their own beforehand. Rendering 155 3D compositions both ways (RAEA_3D=program and =live, per-frame hashes) found these differences, all bugs in live play too:
- A spot's cone (inner, outer) wasn't sent after its first frame. On 3d/spotlight, live scored SSIM 0.94 against Bevy's own frame 20, the program 0.99.
- A zero scale's rotation came out NaN and was sent again every frame, since NaN never equals itself. It is now the identity, or the frame before's in the program.
- The fast path sent a bulb's place as the World's f32, where the program rounds it to 6 decimals.
- Live frames sent only the camera's place, look, fov, focus and ambient. They now send every column a render keys (cam_keyed: a roll's up_*, the view window, sky and environment, aberration, depth of field, lens, motion blur, paint). Both live paths build the camera row with the program's own camera code (camera_row, camera_diff); the fast path's copy of it is gone.
- Colour columns were rounded to 6 decimals, while a hex colour is its byte over 255, so a part whose colour ever changes drew a hair off on every frame until it did. They are exact now, in the program too.
- The fast path kept glam's sign for a rotation where the full path takes the identity's side. That's the same matrix, but RAEA_LIVE3D_CHECK=1 refused it.

Test: bench/live-3d/check.sh renders seven compositions both ways (live with RAEA_LIVE3D_CHECK=1) and requires identical hashes. It fails five on the build before this and passes all seven after. bench/at-3d/check.sh still passes. The wider run: 144 of 155 identical. The other 11 (the Engine's World cases, material fields, environment, text3d, kept mounts, volumetric glass) are #38, so a full render still makes its rows beforehand and still steps twice.

fps: live play's frame cost is unchanged. #26's 360-frame, 200-mesh scene rendered live, before and after, back to back in three rounds: 20.5/20.5/20.3 vs 20.1/20.5/20.2 ms a frame.
2026-11-07 19:08:07 -08:00
shinyobjectz fb35f5d908 FC0a: ui/widgets/viewport_node ports at 0.99987: a second camera with a Viewport over the node's border box. A camera with a Viewport keeps its own shape: the engine no longer gives it the whole frame's SubCameraView, which sized its projection to 16:9. 92 of 96 ported examples pass 2026-11-07 18:57:04 -08:00
shinyobjectz 9f1152a6f9 FC0a: ui/widgets/tab_navigation ports at 0.9980: four TabGroups of four buttons, none focused. 91 of 95 ported examples pass 2026-11-07 18:45:54 -08:00
shinyobjectz 0652b75313 FC0a: ui/widgets/headless_tabs ports at 0.9930: four tab lists coloured as update_tab_styles leaves them (selected, disabled, the rest). 90 of 94 ported examples pass 2026-11-07 18:43:33 -08:00
shinyobjectz a5663cb511 FC0a: ui/navigation/directional_navigation_overrides ports at 0.9961. A bevy_text box's min-content is its lines broken at no width with their trailing spaces (parley's full_width, as bevy_text measures it), so a wrapped, centred label sits where Bevy puts it; the 44 other UI ports score as before. 89 of 93 ported examples pass 2026-11-07 18:41:15 -08:00
shinyobjectz f546e1d8c5 FC0a: ui/navigation/directional_navigation ports at 0.9981. A bordered bevy_ui Node's background is clipped to its padding box, as bevy_ui draws it (only the area inside the border), so a see-through border shows what's under the node; the other 43 UI ports score as before. 88 of 92 ported examples pass 2026-11-07 18:34:44 -08:00
shinyobjectz 1a23d1f9bb FC0a: ui/ui_drag_and_drop ports at 0.9990. A bevy_ui Outline's colour goes as written, for the page to blend in linear light, instead of mixed into the parent's background: it lies outside the node and over its siblings, so a Color::NONE outline drew 2 px grey seams over every tile. 87 of 91 ported examples pass 2026-11-07 18:29:13 -08:00
shinyobjectz 3892ac4367 background-clip: text clips a background to the element's text, as Chrome does (closes #37). Gradient text, a common headline style, came out as a gradient box with the text invisible. Two gaps: the vendored stylo knew the text value only for Gecko, so in Servo mode the declaration didn't parse (and #34's note didn't list it: stylo doesn't report a drop of a property the block already set, here through its background shorthand), and blitz-paint had no text clip. Now stylo takes text for Servo too, and blitz-paint draws a background with a text clip in a group that the text then masks (Compose::DestIn). The mask is the element's own inline layout plus the text of every element inside it, at its place (draw_text_mask: glyphs opaque, without their shadows). A scroller's offset isn't applied inside the mask.
Test: bench/background-clip-text/check.sh draws "Gradient" three ways: with background-clip, with -webkit-background-clip alone, and through a block inside the clipped one. The G's stem must be the gradient's pink, and the box beside and above each word must be the page's #111, as Chrome 148 gives them. Before: 6 of 10 pixels failed (the gradient box). After: PASS. TSX's backgroundClip and WebkitBackgroundClip, and an inline <span> inside, also match Chrome by eye.

fps, the same 300-frame page with three clipped lines, before (17:54 build) and after, back to back in three rounds: 493/542/533 vs 518/599/489 fps incl. encode, no cost beyond the noise.
2026-11-07 18:28:19 -08:00
shinyobjectz b6053cf8a7 FC0a: ui/render_ui_to_texture ports at 0.99998. UiTexture and targetImage draw bevy_ui into an image a StandardMaterial samples: the UI is laid out as a Screen's picture (painted alone, handed to raea-render by name each frame), and a material texture of raea-screen:name@WxH resolves to that screen's image (raea-sys-screen named_image). 86 of 90 ported examples pass 2026-11-07 18:18:57 -08:00
James DimachkieandClaude Opus 5.5 07908a430d #27: the regression test moves to raea-runtime-page, through the frame diff
raea-sys-page is at its 2000-line limit (tools/size.sh), so the test of an SVG <text>'s attribute names leaves ops.rs.
In raea-runtime-page it takes the path a composition's frames take: the walk's Wants (the <text> with `$ns`), then
Tree::diff, whose second frame sends only the changed fontSize and textAnchor, then ops::apply. It fails without the
ops.rs change: the update adds fontsize and textanchor beside the stale font-size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 18:15:43 -08:00
James DimachkieandClaude Opus 5.5 2e6ff46aea #27: an SVG <text>, <image> and <title> keep their SVG attribute names
The composition walk never said `$ns: "svg"` for the three SVG tags HTML also has, so inside an <svg> they became
HTML elements and their camelCase attributes were lowercased (textAnchor to textanchor, fontSize to fontsize), which
usvg doesn't know. The walk now tracks whether it is inside an <svg> and not back in HTML under a <foreignObject>
(IN_SVG, beside IN_3D), and gives those three `$ns: "svg"` there, as sdk/ui's host does. An update in ops.rs also
treats a node as SVG's when its element is in SVG's namespace, so an animated fontSize keeps `font-size` on every
frame, on sdk/ui's path too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 18:15:42 -08:00
shinyobjectz fd4d06c4e4 raea-sys-page's op wire is a crate of its own, raea-sys-page-ops (systems/page-ops): ops.rs and ops/attrs.rs moved whole, with ALL_DAMAGE, which they mark damage with. raea-sys-page re-exports it as ops (and ALL_DAMAGE), so every raea_sys_page::ops path reads as before. raea-sys-page had reached 2000 lines through the day's landings, so a fix in it (PR #35, #37's next) had no room; it's 1424 now. No code changed: the moved tests pass (cargo test -p raea-sys-page-ops) and raea-sys-page checks with its tests. 2026-11-07 18:12:46 -08:00
shinyobjectz a00a49319e The copies part of #28 added are folded (dupes 297 -> 295): urls.rs takes the writer of a file's URL as a parameter instead of a test-only twin of raea_io_home::src, and the fixed-quantiser tests join io/soft/tests/quality.rs, sharing its frames of rings and its MP4 encode. tools/dupes.max goes down to exact=295 2026-11-07 18:00:09 -08:00
shinyobjectz c7918660d5 The skill says what a render is on each platform (part of #28): H.264 High and AAC on a Mac, Constrained Baseline and Opus from openh264 on Windows and Linux. It said H.264 High for all 2026-11-07 18:00:09 -08:00
shinyobjectz 0c419d8164 openh264 takes the fixed quantiser it's asked for (part of #28). With rate control off it ignored the QP range and wrote QP 26: the optimized copy's QP 16 and a GOP's QP gave the same bytes as any other. fixed_qp now uses its Quality mode with the range pinned. That mode needs a bitrate other than 0 (it moves nothing once the QP is pinned), and it refuses a QP under 14, so a lower one is raised to 14. A frame too detailed for openh264's buffer at QP 16 (some 1.6 MB a 1080p frame, noise rather than footage) fails with Native:3, so the copy is made again at QP 26, as every copy was before. io/soft/tests/qp.rs: QP 16 writes over twice QP 40's bytes for the copy and a GOP, a GOP is the same bytes each time, and QP 4 is QP 14; before, 12 and 40 were identical 2026-11-07 18:00:09 -08:00
shinyobjectz 67114ed2ca A stylesheet's url()s naming the composition's files reach the page as file URLs on Windows (part of #28). An inline <style>'s font URL was written as a raw Windows path, whose backslashes CSS read as escapes and whose C: it read as a URL scheme. One rewriter (runtime/bundle urls.rs) now serves inline <style> text, style props, brand.css and the CSS a bundle imports, writing each file through raea_io_home::src as <img> does. A relative URL starts from the stylesheet's folder (brand/ for brand.css, the edit's folder otherwise), and /media/ from the edit's. Its unit tests check a Windows path on any system: no backslash is left, and the URL is file:///C:/... 2026-11-07 18:00:09 -08:00
shinyobjectz 3e1efbab77 #32: an HTML page renders to PNGs, a folder (-o DIR, one frame-NNNNN.png a frame) or one still (-o OUT.png: frame 0, or the one --at names), and --alpha gives them a transparent canvas, as a TSX composition's do. The direct path wrote only video or hashes, so -o frames wrote an MP4 named frames, failed with "Is a directory" when the folder was there, and --alpha couldn't apply.
How: gpuview's direct render has an RGBA mode (GpuView.rgba): its three-deep readback ring copies the composite itself (RGBA8 premultiplied) instead of making NV12, so a PNG costs no extra pass. runtime/encode writes each frame straight-coloured (straight(), the engine path's un-premultiply, now shared). RenderOpts.alpha (apps/media's --alpha, refused for video) sets the page's canvas row to #00000000; the camera's clear colour was read as RGB with alpha forced to 255, so a clear canvas came out black. runtime/view's camera_bg reads #rrggbbaa, premultiplied, for gpuview and cpuview (one function where each had its own copy). The help and cli.md say OUT.png and --alpha for PAGE.html.

Check: bench/html-png/check.sh (a half-opaque red box sliding over an empty canvas): -o DIR --at 0,29 writes two PNGs, and the box moved between them; -o DIR into a folder that's there works; -o OUT.png --at 29 is byte-identical to the folder's frame 29, and -o OUT.png is frame 0; opaque, the canvas is white and the box pink (255,127,127); with --alpha the canvas is 0,0,0,0 and the box straight red at half alpha (255,0,0,128); --alpha to an MP4 is refused. It fails on the raea before this and passes on this one. bench/html-repeat, bench/frame-panic and bench/dropped-css still pass.

Video is unchanged: bench/html-repeat to .txt gives identical hashes for all 270 frames before and after. fps to MP4, seven alternating rounds on a shared, busy machine (the "before" build is about an hour older, with other lanes' changes): median 181 before vs 170 after, ranges 165-202 and 159-198, no difference beyond the noise (closes #32)
2026-11-07 17:56:27 -08:00
shinyobjectz 30960ed5fa #34: a render says once, when it ends, what its page didn't apply, and its output loses the warnings no one acts on.
Dropped CSS: stylo drops what it can't parse silently unless a ParseErrorReporter is passed, and blitz-dom passed none, so a render printed APPLIED over a picture missing some of its code. vendor/blitz-dom/src/not_applied.rs is that reporter, passed at every author parse (stylesheets and @imports in net.rs, <style> in document.rs, style attributes in node/element.rs, CSSOM in cssom.rs; never the user-agent sheet). It keeps each drop once per property and selector, never its value ("-webkit-text-stroke in .outline", "... in a style attribute"), since a style attribute is parsed again on every frame it changes. FileNet's loads that fail join the list ("the file ... (it didn't load)"). The render prints it once after APPLIED (engine/cli for TSX, apps/media for HTML) as "NOTE  the page didn't apply N things, and is drawn without them:", one per line, at most 20, and --manifest gets it as not_applied. RAEA_NOT_APPLIED=0 parses as before (docs/settings.md), for measuring.

Vendored stylo change, to upstream later: report_one_css_error (properties/declaration_block.rs) returned before reporting any unknown property with a -webkit-, -ms- or -o- prefix, which hid the reporter's main case, -webkit-text-stroke (Gecko-only in stylo, drawn as nothing). It reports them now, and raea's reporter skips the prefixed properties that change nothing in a picture (text-size-adjust, tap-highlight-color, font-smoothing, appearance, user-select and the like), so Tailwind's preflight adds no lines (a Tailwind page with gradients, rings, blur and truncate printed no NOTE). A value error is also named by the property stylo parsed, with the value after it. vendor.toml says both.

Noise: Bevy's bevy_asset::io::web and io::source warnings (printed by every render) and fontdb's skipped faces (system fonts it can't parse, which the reporter saw on Windows; a missing @font-face file, which the NOTE names) are filtered at both LogPlugins (engine/page motion.rs, engine/render open.rs). io/trace's `log` logger, which every third-party `log` record goes through, prints only warnings and errors now, and not fontdb's (Bevy's Ctrl+C handler printed two INFO lines on every render); every record still goes to the trace's events.jsonl.

Check: bench/dropped-css/check.sh renders the reporter's page as TSX (30 frames, its outline moving so its style attribute is parsed each frame) and as HTML. Each must exit 0 and print one NOTE naming -webkit-text-stroke and the missing font once each, with no INFO line and no bevy_asset or fontdb warning, and the TSX render's manifest must list both under not_applied. It fails on the raea before this (no NOTE) and passes on this one.

fps, one build with the reporter on and off (RAEA_NOT_APPLIED), seven alternating rounds on a shared, busy machine: the worst case (bench/dropped-css's page at 600 frames, dropping a declaration on every frame) median 516 on vs 479 off; bench/html-repeat median 202 on vs 172 off. No cost shows above the noise (min to max spans 315 to 620). (closes #34)
2026-11-07 17:46:28 -08:00
shinyobjectz e4bab2a77a FC0a: ui/images/image_node_resizing passes (SSIM 0.9981, worst tile 9). It brings bevy_ui's debug overlay and NodeImageMode's Auto and Stretch.
- GlobalUiDebugOptions, and a node's own ui_debug (UiDebugOptions, which replaces it): Blitz draws each enabled node's outlines after the whole document, above every UI node as bevy_ui_render's extract_debug_overlay keeps them (vendor/blitz-paint render/bevy_debug.rs).
  - An outline is a ring of line_width inside the border, padding or content box, following the corners' radii.
  - It is cut by the ancestors' overflow unless show_clipped.
  - Its colour is Hsla::sequential_dispersed of a debug_color_index, which Bevy takes from the entity's index, unless line_color_override.
- The port's indices are setup's spawn order from the camera's entity, 430, the one base whose colours match all four outlines measured (container, column, group and the 40% image). The text's observer is allocated later, when the commands apply.
- ImageNode's Auto now draws the picture contained in its content box, its aspect kept, as Bevy does; it was filled. Stretch gives the node no picture size and stretches the picture over its content box.
- The other image and UI ports keep their scores.

Probes:
- Every outline pixel along column 900 and rows 156 and 158 matches Bevy's exactly, colour and place (947 along the group's top edge).
- The first Auto icon's anti-aliased disc edges match Bevy's pixel for pixel.

Mutants:
- Base 431 fails the bar (0.9465).
- Stretch as Auto fails it (0.7387).
- The outlines drawn in reverse order fail it (0.9779) and the probe.
- Auto filled instead of contained passes the bar; the icon-edge probe catches it.

Test: conformance/ui-debug.test.tsx (the hues, global and own options, UiScale, refusals) and the ImageNode modes in ui.test.tsx.
2026-11-07 17:41:13 -08:00
shinyobjectz 22074b5ded An HTML page's vendor-prefixed inline styles apply: the page's style object keys one as Chrome's does (webkitTextStroke, webkitLineClamp: the HTML runtime's cssProp), and systems/page's kebab gave a lowercase prefix no leading dash, so it came out webkit-text-stroke, which stylo drops. Every prefixed inline style on an HTML page was lost (-webkit-line-clamp, -webkit-background-clip and -webkit-mask among them); TSX's WebkitX was right. kebab now gives webkitX, mozX and msX their dash as it gave WebkitX and MozX. Found by #34's new note, which listed a style attribute's -webkit-background-clip as webkit-background-clip. Test: ops/attrs.rs a_vendor_prefix_keeps_its_dash_however_it_is_keyed (it failed on webkitLineClamp before). bench/dropped-css/index.html's gradient clip is applied now and no longer listed (part of #34) 2026-11-07 17:36:01 -08:00
shinyobjectz 342bcfc3c0 FC0a: ui/text/font_query passes (SSIM 0.9933, worst tile 19), with TextFont's width: font_width (a share of the normal width, FontWidth's constants) is CSS's font-stretch, which Blitz's parley turns into the variable face's wdth as bevy_text's does. A bevy_ui Text now takes no synthetic italic skew, as bevy_text draws an Italic or Oblique run of a face with no slant upright (MonaSans has none); page text keeps Chrome's. The other text ports keep their scores. Mutants: font_width ignored fails the bar (tile 58), the skew back fails it (tile 33). Test: conformance/ui.test.tsx's font_width. 2026-11-07 17:27:34 -08:00
shinyobjectz f0094cbc3b #28 (3): EncodeOpts' doc says what openh264 does with a quality: it has no constant-quality mode and scales kbps by it (raea_io_soft::quality_kbps, 298d32431); it said kbps was ignored where a quality is set (part of #28) 2026-11-07 17:11:37 -08:00
shinyobjectz f84a89cd52 FC0a: ui/scroll_and_overflow/overflow_debug passes (SSIM 0.9965, worst tile 10): the six clipping cells at the paused animation's t = 0, moved by (-50%, 0), scaled by (1.5, 1) and turned 45 radians, with the instructions' Overflow Debug span. Mutants (no clip, no rotation, no move, no scale, no span) each fail the bar. 2026-11-07 17:10:59 -08:00
shinyobjectz 298d32431b #28 (3): --quality reaches openh264 (Windows' and Linux's encoder). It ignored EncodeOpts.quality, so draft and master wrote byte-identical files. openh264 has no constant-quality mode the crate reaches (a fixed QP with rate control off is dropped, since the crate never sets the layer's QP; Quality mode and a pinned QP range under Bitrate mode fail with Native:3), so the quality now scales the bitrate: io/soft quality_kbps, 2x per 0.1 from high (0.85, the given bitrate unchanged), so master is twice it and draft under a fifth. No --quality keeps the bitrate as before. io/soft/tests/quality.rs encodes three seconds of 640x360 at draft, high and master and needs each a quarter larger than the last (before: one file, three times). Encode speed is openh264's at a different bitrate, nothing added per frame (part of #28) 2026-11-07 17:10:13 -08:00
shinyobjectz ec33f6b871 FC0a: ui/scroll_and_overflow/scrollbars passes (SSIM 0.9945, worst tile 21), with bevy_ui's ScrollPosition and IgnoreScroll, bevy_ui_widgets' Scrollbar and ScrollbarThumb, and UiScale laid out at its scale.
- ScrollPosition (Node's scroll_position): scrolls only a Scroll axis. Blitz keeps it in the scroller's range once layout has its content and floors it to whole physical px, as bevy_ui's layout does (vendor/blitz-dom bevy_scroll.rs, from resolve).
- IgnoreScroll (ignore_scroll): Blitz moves the node back by its parent's scroll on those axes.
- Scrollbar (target by a Node's new `name`, orientation, min_thumb_length) is a Node track. ScrollbarThumb isn't laid out: after layout, Blitz sizes and places it in the track from the target's size, content and asked ScrollPosition, as update_scrollbar_thumb's size_and_pos does.
- The page bridge keeps the new attributes (data-raea-bevy-scroll, -ignore-scroll, -scrollbar, -thumb).
- UiScale is now CSS zoom, not a transform of a logical layout. Bevy lays the UI out and shapes its text in physical px, so a 3 px padding at 1.25 is 4 px; scaled-up text sat about 1 px low. A sliced ImageNode's corner limit and tile stretch take the scale with it (ui_texture_slice_flip_and_tile is pixel-exact).

Tests:
- conformance/ui-scrollbar.test.tsx and the UiScale test.
- blitz-dom's bevy_scroll unit tests: thumb maths and the track attribute.

Mutants:
- No ScrollPosition fails the bar (tile 82).
- Thumbs not placed fails it (tile 44).
- UiScale as a transform fails it (tile 37).
- A thumb that ignores the offset passes the bar. A pixel probe catches it: rows 41-157 against Bevy's 49-165, where the real port matches Bevy exactly (49-165, and 4-240 across).

The other UiScale ports keep their scores.
2026-11-07 17:08:18 -08:00
shinyobjectz 1dca9ace77 #28 (5): ShaderMesh's doc says its uniforms may change from frame to frame and the shader isn't compiled again; it said they were set at load, which agents reading the SDK for types took literally (#26's scene sets one each frame and renders it) 2026-11-07 17:04:14 -08:00
shinyobjectz 6998f9e3e6 #28 (4): the export cache's key takes every file in the edit's folder, not a list of media extensions, so an edited .svg (or .jpeg, or anything a page loads) makes the next render miss; an <img src="/media/logo.svg"> recoloured came back from the cache in its old colour. Dot-files, the output and exports this cache wrote stay out as before. A false miss costs a render, a false hit a stale video. Test: runtime/bundle/tests/cache_inputs.rs (an edited logo.svg and shot.jpeg each change the key; it failed on the .svg before) 2026-11-07 17:02:08 -08:00
shinyobjectz 1eb646f7b9 #33: a panic as a frame draws ends the render with an error naming the frame and the panic, and keeps the frames drawn before it. Each frame loop catches a panic in its drawing (raea_gpu_device::check::frame_caught, or around the pipelined engine's run, which names the newest frame sent) and returns it as an error, "raea panicked drawing frame N: <message>"; the panic hook still prints it and where it was, and the crash log keeps it. On that error, or any other mid-render, the direct path drains the frames in flight to the encoder, the fed path finishes the file without sound, the engine path finishes its encoder, and hashes so far are written, so the file holds every frame before N and the error says how many and where ("no frame was written" when none). Exit 1 now, not a panic's 101. RAEA_PANIC_FAULT=N (docs/settings.md) panics as frame N draws, for the check: bench/frame-panic/check.sh renders an HTML page to .mp4 and .txt, a 2D page to .mp4 and .txt, and a 3D scene to .mp4 and a PNG folder at RAEA_PANIC_FAULT=100, and each exits 1 naming frame 100 with exactly 100 frames kept; without the fault the same renders give all their frames. Speed, two builds of this tree with and without the change, five runs each alternating (the machine was busy: medians), to .mp4: a 2D page 427 fps before, 435 after; #20's HTML page 214 before, 235 after; a 3D scene 71.7 before, 71.5 after (a frame catch costs nothing until something panics).
(closes #33)
2026-11-07 17:00:09 -08:00
shinyobjectz ca41f80d16 #28 (2): a 3D still or --at with --manifest writes the manifest, as a 2D render does. The 3D stills branch (bevy_ui, the page over its 3D) returned without writing it, so none was written and one left from an earlier run stayed, looking current. The three places that write it share write_manifest now (lib.rs); a 3D still's has the frames' boxes and text as drawn, the 3D's clipping from its check, and no sounds. To make room under the crate's 2000-line limit, scene3d.rs (27 lines of wrappers over raea-runtime-scene) is gone: scene.rs keeps items and all_items, and program.rs calls raea-runtime-scene directly. bench/at-3d/check.sh now also needs its --at render's manifest to list the four frames: it fails on the raea before this (no manifest) and passes on this one; a 2D render's manifest is byte-identical before and after. 2026-11-07 16:57:06 -08:00
shinyobjectz 36cbb99227 FC0a: ui/scroll_and_overflow/drag_to_scroll passes (SSIM 0.99999; not a pixel off at 1% fuzz, where hues spread over 260 degrees put 4995 off): 2400 hue tiles at UiScale 0.5 in a scroller at 0 until dragged 2026-11-07 16:42:30 -08:00
shinyobjectz 3675c7a9f9 FC0a: ui/scroll_and_overflow/scroll passes (SSIM 0.9972): a Scroll axis draws no scrollbar (bevy_ui draws none; Blitz's overlay thumb would show once scrolled), Node's scrollbar_width is the gutter taffy keeps beside a scrolling axis (right of a y scroller, below an x one, past the padding), and IgnoreScroll is taken (a page isn't scrolled yet, so it keeps nodes where they are). The parity host has accesskit, a Bevy dev-dependency the example imports. Most of the example lies past the window (the root is as wide as its content, the viewport grid's auto track, in Bevy as here); a 40% list fails 2026-11-07 16:39:59 -08:00
shinyobjectz 9f91e35a8f FC0a: ui/ui_transform passes (SSIM 0.9991): buttons turned by UiTransform about their centres (a Left turned the other way or an unturned Bottom fails) 2026-11-07 16:36:40 -08:00
shinyobjectz abc859cf5d #20: the same page renders to the same frames every time. Vello's fine stage (area antialiasing, what raea-page draws with) summed a tile's coverage in f32 in the order its segments arrived, and path_count hands out their slots with atomicAdd, so the order, and the sum's last bits, changed from run to run: a pixel now and then came out a level apart, so frame hashes and the export cache disagreed between renders. Each contribution is now summed as a fixed-point i32 (2^20 to the pixel), which no order changes, and made a float once. bench/html-repeat/check.sh renders #20's page 8 times to frame hashes and needs every run the same as the first: before, 6 of 7 runs differed (frames 161, 175, 269); after, all 8 match (and 12 of 12 in a longer run). Speed, two builds of this tree with and without the change, five runs each back to back, to frame hashes: the #23 bench page 154-194 fps before, 167-193 after (medians 193.2 and 191.8); #20's page 145-160 before, 154-160 after (medians 155.9 and 157.1). Ten pictures (eight parity cases and bench/rotated-paint's two) are pixel-identical before and after; only frames that fell on that rounding change, by a level.
(closes #20)
2026-11-07 16:36:04 -08:00
shinyobjectz 99428724de FC0a: ui/text/text_debug passes (SSIM 0.984): a TextSpan of size 0 or less is left out, as bevy_text's TextPipeline leaves it, and its Text's other runs laid out without it. The port works out the example's frame-rate figures over the host's 1/60 s steps from a first update at elapsed 0 (66.0 avg fps, 2852.5 deviation at frame 10, as Bevy draws them); a first update one step later fails 2026-11-07 16:34:20 -08:00
shinyobjectz 9027f9d1e5 FC0a: ui/text/text passes (SSIM 0.9909): FontFeatures on a Text or a TextSpan (FontFeatureTag's OpenType tags, as CSS's font-feature-settings, which Blitz gives parley). The parity host has a default_font feature of its own, on, since Bevy's examples ask cfg(feature = "default_font") of the crate they're built in. FPS shows 60.00 (the host steps by 1/60 s); pixel probes of the animated text's colour and the FPS digits tell a doubled clock and 59.99 from the real port 2026-11-07 16:31:57 -08:00
shinyobjectz 6654b93639 #19: children of a preserve-3d parent follow its transform when a script sets it. blitz-dom's resolve_transforms returned an undamaged node's cached place unless it was seen through a perspective, so a node in its parent's 3D rendering context kept the projection from before the parent's new transform (the card under the issue's rig was drawn at its untransformed place, below the frame). A node in a 3D context, or holding a projection (which may have lost its context since), is now placed again on every resolve, as one under a perspective already was. Test: resolve::tests::a_child_follows_its_preserve_3d_parent_set_later (the card's projection with the transform set after the first resolve equals the one with it in the first style; it failed without the fix). The issue's page now renders pixel-identical to the same transform in the stylesheet, and a GSAP rig animating the world shows the card (0 yellow pixels before at t=0.5 and 0.95, 290k and 520k after). Cost, a static preserve-3d world of 300 cards over 300 frames, three runs each back to back, the raea before this against this one: 9.27-9.87 fps before, 9.38-9.63 after (no change past noise).
(closes #19)
2026-11-07 16:28:57 -08:00
shinyobjectz 7ca949df87 FC0a: ui/scroll_and_overflow/overflow_transform passes (SSIM 0.9954): UiTransform (Val2 translation, Rot2 rotation clockwise, scale, about the node's centre after layout) as CSS's transform; BoxShadow as CSS's box-shadow, its blur Bevy's Gaussian deviation so CSS's is twice it (a spread or a percent is refused until Bevy's width-ratio spread is drawn); and bevy_color's Luminance darker and lighter on Srgba and LinearRgba. Each checked by conformance and a mutant; in the port, no shadow, reversed turns and no scale fail, and a pixel probe of the shadow's strip is closest at Bevy's offset and blur 2026-11-07 16:27:48 -08:00
shinyobjectz 1acea1b83e FC0a: ui/layout/size_constraints passes (SSIM 0.9915): its radio buttons are bevy_ui_widgets' headless RadioButton, so they're their Nodes 2026-11-07 16:23:23 -08:00
shinyobjectz 9e3f99ff54 FC0a: ui/ui_scaling (SSIM 0.9999; UiScale holds at 1 until an arrow key) and ui/layout/anchor_layout (0.9974; an absolute label's auto margins leave it at its static position, in Bevy as in CSS) pass 2026-11-07 16:23:23 -08:00
shinyobjectz aef305429a #18: what an element paints at an offset of its own is placed in its own axes, so it turns with a rotated ancestor. blitz-paint added background-position, a background's tiles (image and gradient), box-shadow offsets (outer and inset), text-shadow offsets, the scroll offset, an inline SVG's and a custom widget's content-box origin after the element's transform (then_translate), in the page's axes; they now go before it (pre_translate), as an <img>'s already did. One image split across stacked divs by background-position stopped lining up under a -4deg parent, and an inset shadow's band came out uneven. The inset shadow's offset also takes the page's scale now, as the outer one's does. bench/rotated-paint/check.sh draws the same picture twice under -4deg (three background slices of one image and of one gradient, and a box shadow, against one div each and a box behind): 7,811 pixels differ by more than 10% on the raea before this, 37 after (the slices' antialiased seams); it passes at 200. Eight unrotated parity cases (background-image, background-shorthand, gradient-tiles, shadow, shadow-forms, overflow-scroll, repeating-gradient, conic-gradient) are pixel-identical before and after.
(closes #18)
2026-11-07 16:22:49 -08:00
shinyobjectz c7530ccbdd FC0a: ui/layout/grid passes (SSIM 0.995): a Node's visibility (Inherited, Hidden, Visible) as CSS's, and a wrapped bevy_text box as wide as its widest line with its trailing spaces (parley's full_width, as TextPipeline::compute_size measures it), which centres a justify_items Center paragraph where Bevy does 2026-11-07 16:17:57 -08:00
shinyobjectz 089acda03a #26: a 3D still or --at list steps only its frames and their neighbours, not the whole timeline up to the last. scene_frames takes the wanted frames: when they and the frame either side of each are under half the timeline, each run of them is stepped in the one runtime and every frame between holds the stepped scene before it (never drawn; frames are pure); the clipping check reads the wanted frames alone. #26's 360-frame scene on this Mac, three runs each back to back, the raea on PATH (main before this) against this build: --at 30,150,270,330 steps React in 990-1048 ms before, 54-60 ms after (5.6-6.3 s to 2.2-2.5 s in all); --frame 330 in 912-988 ms before, 28-29 ms after. Pixels are identical to before, and bench/at-3d/check.sh checks them against the same four frames frozen in a 4-frame composition (which steps every frame), failing on the old raea and passing on this one. A full render still steps every frame for the rows and again while it draws; that's left open.
(closes #26)
2026-11-07 16:15:56 -08:00
shinyobjectz bea844ba6c FC0a: ui/text/text_wrap_debug ported (every LineBreak under every JustifyContent, at its default scale) 2026-11-07 16:12:52 -08:00
shinyobjectz 8c96f67da8 FC0a: UiTargetCamera (its roots drawn by their own Camera2d: a layer stacked by the camera's order; the window's main texture cleared by the first camera only, as bevy_render's ViewTarget does); ui/ui_target_camera ported 2026-11-07 16:11:08 -08:00
shinyobjectz 1b023081a6 FC0a: Viewport, the UI camera's viewport (bevy_camera's Viewport: its roots laid out in that region of the window, clipped to it); ui/relative_cursor_position ported 2026-11-07 16:08:12 -08:00
shinyobjectzandJimGHTB12 e94514d243 Page: a <style> removed in the same mutation batch as its text no longer panics the render ("invalid SlotMap key used", on runs whose removals came in that order): Blitz's process_removed_subtree drops a removed node from the style, form and title nodes the batch flushes (vendor/blitz-dom, noted in vendor.toml), and raea's own re-parse of a changed <style> skips one that is gone (closes #24)
Co-authored-by: JimGHTB12 <[email protected]>
2026-11-07 16:06:02 -08:00
shinyobjectz e63a155739 raea-sys-page: draw.rs's premultiply WGSL test reads it from raea-sys-filters, where it moved in 318b1939a (the crate's tests didn't compile) 2026-11-07 16:03:32 -08:00
shinyobjectz be661a5f0b FC0a: bevy_ui's GhostNode (no box: its children its parent's, display: contents; at the top each a root); ui/layout/ghost_nodes ported, the parity host with Bevy's ghost_nodes feature 2026-11-07 16:00:26 -08:00
shinyobjectz c0d5f8306f bevy-ts's check.sh runs in Git's bash on Windows, for a Windows play --offscreen check: a play case's seconds are added with awk instead of bc, and RAEA_PLUGIN_BIN names the raea a build: plugins case runs (default the plugin build here; a release's raea has the plugin catalog). Its 13 play cases still pass on macOS. 2026-11-07 15:55:58 -08:00
shinyobjectz 5af23ab8d4 HTML: a page's canvas is white, as a browser paints it (CSS Backgrounds 3, the canvas background), instead of black, so a page that sets no background shows its default black text; a root's or body's background still covers the canvas (closes #30) 2026-11-07 15:51:44 -08:00
shinyobjectz abd167408a Page: a Vello draw that was skipped (a scene past its bump buffers: Vello's fine stage then writes nothing and reports no error, so a pooled layer showed its last frame's picture, or nothing) is found by a sentinel texel read back without a wait, and the frame read back next and those in flight are drawn again at Vello's own sizes, which stay on; a draw skipped at those too refuses the frame by its number. The check's cost on an ordinary 1080p page, five alternating 300-frame renders each: 257.7 fps without it, 253.3 with it. RAEA_VELLO_BUMP=full and RAEA_PAGE_DRAWN_CHECK=0 in docs/settings.md (closes #23) 2026-11-07 15:42:58 -08:00
shinyobjectz 5ada160314 A render's sweep keeps the work folder of a render that still runs, however long since its folder changed. The two-hour rule now removes only folders whose process isn't known to run (gone, unknown, or no PID in the name): a render running past two hours stops touching its folder's top level well before it ends, and the next render's sweep deleted it. This render's own folders count as running. pid.rs's test sweeps a folder of aged ones as it would run three hours on. (closes #31) 2026-11-07 15:40:18 -08:00
shinyobjectz 03eaef2b66 FC0a: bevy_ui's grid (grid_template_rows and _columns of RepeatedGridTracks, grid_auto_rows/_columns/_flow, grid_row and grid_column GridPlacements, as CSS grid), UiRect.AUTO, and bevy_text's FontSource on a Text (a file, a family by name, a generic family as Bevy's fontique resolves it: raea-sys-fonts registers fontique's own generics as "raea-bevy <generic>" before mapping the page's as Chrome's); ui/text/generic_font_families ported, the parity host with system_font_discovery 2026-11-07 15:37:20 -08:00
shinyobjectz b2d07d1165 A render's sweep of leftover work folders asks the system whether their render still runs (runtime/bundle pid.rs: kill(pid, 0) on Unix, OpenProcess and GetExitCodeProcess on Windows) instead of running the kill found on PATH. Under Git Bash on Windows that kill is MSYS's, which knows no Windows PID, so every live render looked dead and its folder was deleted mid-bundle when renders overlapped. A process the system won't answer for (another user's, a protected one) keeps its folder. pid.rs's tests cover a live and an ended process and the sweep itself. (closes #29) 2026-11-07 15:31:12 -08:00
shinyobjectz 934d9b0a72 HTML and React DOM: path, line, polyline, polygon, circle, ellipse and rect are SVGGeometryElements with getTotalLength and getPointAtLength, measured on the true outline (every path command, arcs included; within 0.03% of Chrome on straight edges and curves, and on circles and rounded corners the exact length, which Chrome flattens about 0.16% short), so a line-draw page's script no longer throws (closes #16) 2026-11-07 15:28:21 -08:00
shinyobjectz 08a4b7df02 openh264's MP4s say they are BT.709: both encoders (io/soft h264_encoder and GopEncoder) write the colour description in the stream's VUI (BT.709 primaries, transfer and matrix, limited range), as frames are converted and as the Mac's encoder tags them. Untagged, ffmpeg and other players read Windows and Linux renders as BT.601 and shifted reds and greens. io/soft's colour test reads the SPS each encoder writes. (closes #25) 2026-11-07 15:24:00 -08:00
shinyobjectz ee771c453c T6c: Rune layers in a Blitz page: what's under data-raea-renderer="rune" (sdk/rune's <RuneLayer>) is drawn by Rune on Bevy's device and shown in its slot
raea-runtime-dom's commits pass through a split (set_split), where raea-rune-layer's Router takes each layer's ops out of the batch in the JS's order, the slot standing for the layer page's root; a page that never makes a slot isn't routed. raea-rune-slots keeps each layer as a raea-rune-page Page in a raea-rune-bevy Tree (its new before_frame hook takes the routed ops), sized each frame to its slot's content box at the page's scale and shown there through ElementImages. Pointer input reaches it through the slot twin's picking events, a held press capturing the pointer as setPointerCapture does; its page's events reach the root's JS (deliver_to). raea-page-host adds it (RAEA_RUNE_LAYERS=0: all Blitz). Said, not dropped: a move between the page and a layer, and that a layer's elements aren't in the layout snapshot. vendor/rune-taffy: Rune and Blitz in one build need taffy's flexbox_balance arms in encode_wrap. Tests (engine/rune/slots/tests/slot.rs, through the page host): the slot's subtree is the layer's and not Blitz's, the layer is the slot's size and shown there, a press reaches the page's JS, and a press released off the layer still ends there; mutants without the split, the deliveries or the capture each fail one. The skill says how to use <RuneLayer> and what it doesn't do yet.
2026-11-07 15:20:38 -08:00
shinyobjectz 461c7491ac HTML: name in el.style is true only for CSS properties (Chrome's list, custom properties and webkit-prefixed names), not any camelCase name, so GSAP's tl.set(el, { textContent }) sets the element's text instead of writing a style (closes #17) 2026-11-07 15:20:08 -08:00
shinyobjectz b7c4052f30 HTML: a page whose script throws before any timeline registers fails to open, so raea render exits non-zero with the script's error and the unregistered composition, instead of writing its first frame held for the whole video; data-no-timeline on the root keeps a still page with a failing script rendering. A script's error message is printed beside its stack, which JavaScriptCore's leaves out (closes #15) 2026-11-07 15:19:17 -08:00
shinyobjectz 4e570ce401 FC0a: bevy_ui's BorderGradient (the bottom layer over the border box, a node's own gradients over it clipped to the padding box; none without a border; a translucent background gradient over one refused); ui/styling/gradients ported 2026-11-07 15:18:13 -08:00
shinyobjectz 1fdc431b72 Gates: taxonomy reads each Bevy crate at the version the lock pins (bevy_app and 20 others are 0.20.1), not a fixed 0.20.0 that only an older cache still holds 2026-11-07 15:14:23 -08:00
shinyobjectz 082aa7489f README: building from source needs CMake, and NASM on Linux; rustup takes the version rust-toolchain.toml pins (closes #14) 2026-11-07 15:10:56 -08:00
shinyobjectz 318b1939ab raea-page's premultiply pass (Premul, its WGSL and straight_target) moved to raea-sys-filters with the page's other fullscreen passes, raea-sys-page back under its 2000 lines 2026-11-07 15:08:26 -08:00
shinyobjectz d03eb9d7c9 FC0a: bevy_ui's gradients (BackgroundGradient: LinearGradient, RadialGradient, ConicGradient, ColorStops with hints, UiPosition, Bevy's radial shapes, Oklab by default) as CSS gradients, and a bevy_ui page blending in linear light as Bevy's UI does: vendor/vello_shaders' fine stage decodes every colour, ramp and texel from sRGB, blends, and encodes once (set_blend_linear, marked by data-raea-blend on each root Node); ui/styling/stacked_gradients ported 2026-11-07 15:05:29 -08:00
shinyobjectz 71a65438d8 FC0a: bevy_ui's stacking: every node a stacking context (ZIndex ranks among siblings above their parent), GlobalZIndex hoisted to the root's stacking context in Blitz, a cleared layered Canvas3D under the whole page; ui/layout/z_index ported (exact) 2026-11-07 14:49:48 -08:00
shinyobjectz 0730b9cd73 FC0a: InlineImage (a tinted picture in a Text's line), a Text's box its own measured block, as wide as its widest line once wrapped (bevy_text's laid-out size), Outline white by default; ui/text/inline_image and ui/window_fallthrough ported 2026-11-07 14:40:52 -08:00
shinyobjectz e3df1da170 FC0a: outline-offset and Bevy's outline corners in Blitz, corners resolved as Bevy's (CornerRadius, BorderRadius.px, clamped to the node), BorderColor per side, ImageNode in its own file; ui/styling/borders ported 2026-11-07 14:30:53 -08:00
shinyobjectz c33faa7e5e CI: only a pull request's runs cancel each other; every push to main runs to the end 2026-11-07 14:30:20 -08:00
shinyobjectz fa46f4ebb6 Gates: taxonomy fetches the locked crates first when Bevy's sources aren't unpacked yet (a fresh checkout), so it sees Bevy's names there too 2026-11-07 14:30:12 -08:00
shinyobjectz b4558ac472 FC0a: TextShadow and LetterSpacing on UI text, a centred or right-justified Text justified within its node's width; ui/widgets/button and ui/text/letter_spacing ported 2026-11-07 14:22:03 -08:00
shinyobjectz c0aec0a804 CI: the gates job installs ripgrep, which sdk-coverage reads the SDK with 2026-11-07 14:16:37 -08:00
shinyobjectz b952bb580b FC0a: a sliced UI picture takes an atlas cell (its rect in the layout, scaled to the sheet as Bevy's atlas UVs are); ui/images/ui_texture_atlas_slice ported 2026-11-07 14:14:59 -08:00
shinyobjectz 3a2b027488 FC0a: sliced and sampled UI pictures, UiScale, OverflowClipMargin, a 2D sampler and uv_transform, Text2d, and five more examples ported
UI. raea's Blitz draws CSS border-image (css-backgrounds-3: slice, width, outset, fill, and stretch, repeat, round or
space per axis), loading border-image-source as a third image layer beside backgrounds and masks. ImageNode's
image_mode { Sliced: TextureSlicer } is that border-image, and data-raea-bevy-slice gives Blitz bevy_ui's own rules: the
corners are the slices times min(the node over the picture, max_corner_scale), and Tile tiles a part from its start
every slice times stretch_value. A flipped sliced picture is mirrored on a layer behind its children. An ImageNode's
image can carry its own sampler ({ path, sampler: { filter } }). UiScale lays its roots out in a window 1/value of the
frame and scales it up. Node takes overflow_clip_margin, which Blitz honours for every clipping overflow as bevy_ui's
resolve_clip_rect does. The page bridge resolves url(..) in a style value (a background, a border-image) as it does
an img's src, which no CSS picture did before.

2D. Shape2D and Mesh2d's ColorMaterial take a texture with its own sampler (raea-sys-sampler) and a uv_transform
(Affine2). Text2d places a Text at its Transform, centred as Bevy's Anchor::CENTER. The shape2d row carries the sampler,
the uv_transform and the vertex colours as JSON in one loop, which keeps raea-runtime-scene under 2,000 lines.

Ported, each with a mutant that fails:
  ui/images/ui_texture_slice_flip_and_tile  1.0000 (stretched instead of tiled 0.7857, unflipped 0.8360)
  ui/images/ui_texture_slice                0.9990 (corner scale halved 0.9800)
  ui/scroll_and_overflow/overflow_clip_margin 0.9968 (without the margin 0.9890, tile 120)
  2d/mesh2d_repeated_texture                0.9912 (no uv_transform 0.9420, no sampler 0.9666, Text2d not centred 0.9789)
  ui/layout/flex_layout                     0.9909 (a Center row as FlexStart 0.9463)
58 of 61 ported pass; many_lights, many_foxes and transparency_3d still fail, as before.
2026-11-07 14:07:55 -08:00
shinyobjectz b78afb5676 Licences: the catalog regenerated against the public lock (five crates the engine no longer reaches move into it), and licenses.sh keeps LICENSES/Apache-2.0.txt, which NOTICE's credits cite 2026-11-07 14:07:24 -08:00
shinyobjectz 86af87a90d CI: the gates job installs sdk/raea's packages (bun, frozen lock) before sdk coverage, since node_modules aren't in git 2026-11-07 14:03:29 -08:00
shinyobjectz 8bd8e2c986 CI: one-version resolves each lock offline first and online when that fails (a fresh checkout has no registry cache), still --locked 2026-11-07 14:01:15 -08:00
shinyobjectz adb442d0f2 CI: the names gate reads its pattern as PCRE, so the Mac sees the same retired names as Linux (macOS git ignored \b and saw none); the 20 files left are recorded in names.allow, and the engine jobs install nasm for rav1d 2026-11-07 13:49:23 -08:00
shinyobjectz adedccddf0 Docs: the face test skips where the footage fixtures are absent (they are private now), and the release notes no longer mention the retired export script 2026-11-07 13:47:50 -08:00
shinyobjectz e2c4056347 Skills: the check works in a public checkout. The retired-word glossary is read only where it is (RAEA_GLOSSARY, else docs/skills.glossary.md), and a section's source may be in the maintainers' checkout (RAEA_LIVE), since both are private now 2026-11-07 13:43:45 -08:00
shinyobjectz 3932de270b Skills: files.md regenerated from the public tree (the private signer's ~/.raea rows are gone) 2026-11-07 13:42:17 -08:00
shinyobjectz 11fd9d763e PF5: public CI on GitHub's hosted runners (guard, L0's repo-wide gates, a fresh clone's cargo check on macOS and Linux)
The cutover's first commit should have carried this file: the split moved it to .github/workflows/ci.yml, then removed
raea-dev's own CI at the same path along with the private paths. Every pull request and push to main now runs the
names-and-secrets guard, the repo-wide gates and cargo check --locked of raea-cli.
2026-11-07 13:40:32 -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
shane cc729f2b25 Merge public PR #11 from JimGHTB12: check: flashing past WCAG 2.3.1 is a P1
Landed in raea through the private development repository with JimGHTB12 as author (a later export). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:07 -08:00
shane e8876bbe32 Merge public PR #10 from JimGHTB12: check: a freeze that runs to the end of the file is found
Landed in raea through the private development repository with JimGHTB12 as author (a later export). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:07 -08:00
shane 89cd67f664 Merge public PR #7 from tobitege: security updates, and the Windows build and raea play fixed
Landed in raea through the private development repository with tobitege as author (a later export). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:07 -08:00
shane b271b3b26c Merge public PR #5 from knowsuchagency: check: a voice ending a sentence isn't a dead stop
Landed in raea through the private development repository with knowsuchagency as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:07 -08:00
shane 29cd01fd1b Merge public PR #3 from kumanday: raea render PAGE.html works from an install, and HTML pages animate
Landed in raea through the private development repository with kumanday as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:06 -08:00
shane 12e7e30e19 Merge public PR #2 from kumanday: render --alpha: transparent PNGs for overlays
Landed in raea through the private development repository with kumanday as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:06 -08:00
shane b6f91baa7f Merge public PR #1 from kumanday: Stills of a 2D composition skip the whole-timeline 3D pass
Landed in raea through the private development repository with kumanday as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
2026-11-07 09:47:06 -08:00
shane d3c399b4d5 raea origin/main 2026-11-07 01:29:24 -08:00
shane bd1ccec7f9 Post releases to the raea Discord 2026-11-06 23:20:31 -08:00
shinyobjectz c6243796a3 raea a6df6e9b3 2026-11-06 21:07:12 -08:00
shinyobjectz 6153823132 raea aa607870a 2026-11-06 21:00:07 -08:00
tobitege c88adb4695 raea play on Windows: plain paths for home() and the bundler's folders, a junction for the work folder's node_modules
Three Windows bugs stopped `raea play` before its first frame:

- raea-io-home: home() canonicalized the tree it came from, which on
  Windows gives a verbatim \\?\C:\ path. The lite entry imports
  bevy-react's bridge.ts by that path, and Rolldown can't resolve it
  ("Could not resolve '\\?\C:\...\bridge.ts'"). home() now drops the
  prefix before a drive path, as src() already did.
- raea-bundle: EditResolve canonicalized its folders the same way, so no
  importer (named without the prefix) was ever under the work folder. A
  live game's own `import "react"` went to the engine's React instead of
  the live runtime its tsconfig paths name: "not a function" at the
  first frame.
- raea-runtime-bundle: the work folder's node_modules link was made on
  Unix only, so lite/parts' ../../node_modules/bevy-react/src/bridge
  resolved nothing on Windows. It is a junction there now (no rights
  needed, as raea-io-npm links packages), removed before the work folder
  so the engine's packages are never touched.

Each has a regression test that fails without its fix.
2026-11-06 05:34:34 +01:00
James DimachkieandClaude Opus 5.5 08c4294a7f check: fix a missed strobe and a false red flash in the flash rule
A patch strobing while its background dimmed could leave the saved extreme stale, because the
window's mean outweighed the patch. Extremes now advance on the pixels that are swinging. And a colour
crossing the saturation line by one level read as a jump from zero; red's value now runs on through
the line, and a change counts when either end of it is saturated. Both found by the Codex review
on this PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 20:30:02 -08:00
James DimachkieandClaude Opus 5.5 94d344e268 check: flashing past WCAG 2.3.1 is a P1
raea check said "nothing to fix" on a render of six full-frame white flashes a second.
Flashing like that can cause seizures, and nothing in the floor looked for it. The new rule
counts pairs of opposing changes in the same pixels, in overlapping windows a third of the
frame wide and high, for general and saturated-red flashes, and fails past three a second.
Every decoded frame counts on its exact timestamp. A file FFmpeg can't decode is refused and
decode errors are a finding, rather than either reading as clean. It's a screen, not a
certification, and it says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 20:04:18 -08:00
James DimachkieandClaude Opus 5.5 16db1fe214 check: measure a trailing freeze on the clock the filter reads
A stream's duration is a length, not an end time. With video starting 2 s after the sound, a 6 s
freeze at the end read as 4 s, which drops it from P1 to P2. FFmpeg's filters count from the file's
first stream, so the picture's end is now its start relative to that plus its length. Found by the
Codex review on this PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 20:03:18 -08:00
tobitege 3e7134bb68 deps: gpu-allocator and gilrs-core on windows 0.62, so wgpu-hal's DX12 backend builds on Windows
gpu-allocator 0.28 accepts windows 0.53 to 0.62 and was resolved to 0.54
(the one cpal and gilrs-core pull in), while wgpu-hal 30 hands it
windows 0.62 types: `cargo build -p raea-cli` on Windows failed in
wgpu-hal's dx12/suballocation.rs with ten "expected ID3D12Device, found a
different ID3D12Device" errors. gilrs-core (windows 0.44 to 0.62) moves
to 0.62 with it; cpal 0.15 keeps 0.54.
2026-11-06 04:55:36 +01:00
James DimachkieandClaude Opus 5.5 a819751fb5 check: a freeze that runs to the end of the file is found
FFmpeg's freezedetect logs freeze_duration when the picture moves again, so a
freeze still running at the last frame has only a freeze_start. The rule counted
a freeze when it saw the duration, so a film frozen to its end passed with "nothing
holds still". Footage that runs out before the composition ends looks like this.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:46:28 -08:00
tobitege c365631a59 deps: security updates for tokio, rustls-webpki, wasmtime, zstd, ruzstd and undici
Lockfile updates within the existing version ranges, found by checking
the lockfiles against RustSec and the GitHub Advisory Database:

- tokio 1.54.1, rustls-webpki 0.103.16, webpki-roots and
  webpki-root-certs 1.0.11, zstd 0.13.4 / zstd-safe 7.4.0
- wasmtime 48.0.8 (root lock and engine/sandbox/wsx), wsx now asks for
  48.0.8 at least
- ruzstd 0.9 in raea-io-assets, with bevy_image 0.20.1 (and the Bevy
  crates it needs at 0.20.1), so one ruzstd builds again; bevy stays
  pinned at =0.20.0
- sdk/shell: undici 7.30.1 through an override (just-bash 3.6.0 pins
  guarded-fetch 0.1.3, which pins undici 7.29.0)
2026-11-06 04:19:27 +01:00
Stephan Fitzpatrick f246af81be check: a voice ending a sentence isn't a dead stop; bands read in dBFS
`raea check` flagged its-a-race at 13.36 s ("the lows: a steady sound at
-0 dB stops dead") on both the Metal and llvmpipe exports. Nothing is cut
there: it's mid-segment, the mix follows race.wav at a constant +11.5 dB
through it, and the speaker ends "AI became a thing." and pauses. Dense
speech's lows held within 2.6 dB (the steadiness limit is 3), fell 12 dB
in one step and stayed down, so the rule took the voice for a cut bed.

- dead_stops: a stop now has to start from the bed's level (within 6 dB
  one or two steps before) and be gone by the next step (DROP under the
  bed). A word's tail comes back up after its first drop; a cut source
  doesn't. This also stops it flagging the last step of a 100 ms fade.
  It only adds conditions, so it finds nothing the old rule didn't.
- levels: the bands were 10*log10(|X|^2/N), about 16.5 dB over dBFS
  (hence "-0 dB" for lows at about -17 dBFS). They now read mean square
  through Parseval and the Hann window's power, so a tone reads the same
  in its band as in the mix. The band floor goes from -65 (old scale,
  about -81.5 dBFS) to -80 dBFS.
- The message says dBFS and names a fade long enough (100 ms) for a bed.
- Tests: the real 10 ms levels of its-a-race at 12-14 s (not flagged, and
  a bed cut under that voice still is), a cut partway through a step,
  a 100 ms fade, and bands in dBFS. The old code fails all three new
  assertions.

Claude-Session: https://claude.ai/code/session_01LJ21XqsPxtVd2swKwbVMa7
2026-11-05 19:38:27 +00:00
Leonardo Gonzalez 30c80d9a1f render --alpha: transparent PNGs for overlays
A frame or a folder of PNGs kept transparent where the composition draws nothing, for an overlay in another
editor's timeline. Three places made every frame opaque: the program's camera cleared to black, composite.k
packed alpha 255, and the PNG writer took the composite as it came. Now --alpha clears to #00000000,
composite.k (and composite_tex.k, both from gen.py) carries coverage through the clips and the overlay and packs
it, and the PNG folder writer makes the premultiplied composite straight. Over an opaque background every new step
keeps alpha at 255, so renders without the flag are the same pixels as before. A video output with --alpha is
refused with the ffmpeg line that makes ProRes 4444 from the folder.
2026-11-05 05:06:18 -05:00
Leonardo Gonzalez 8a365c13be HyperFrames pages: the timeline registry made before their scripts, the size read from the root element
Every HyperFrames page registers its timeline with window.__timelines["main"] = tl. HyperFrames' runtime makes
that object before the page's scripts run; raea's didn't, so each such script threw at that line and the page
never moved. And a page whose <head> styles name [data-composition-id=...] in a selector was sized from that
selector (no data-width there, so 1920 x 1080) instead of its root element.
2026-11-05 05:02:34 -05:00
Leonardo Gonzalez 6e7bbad157 raea render PAGE.html: the HTML runtime from raea's files, bundled in process 2026-11-05 05:02:34 -05:00
Leonardo Gonzalez 2774a34db1 Stills of a 2D piece skip the 3D rows' pass over the whole timeline
A still (--frame, --at, a PNG folder) first stepped React through every frame of the composition to find 3D,
even for a piece with none: 16 s before an 80 s film's single still, against ~2 s for the frame itself. The
frames asked for are now looked at first, each on its own (frames are pure); when none shows 3D their render
needs no rows and the pass is skipped. A still with 3D steps the timeline as before.
2026-11-05 04:23:09 -05:00
1429 changed files with 154843 additions and 5417 deletions

No files matched your search

+1 -1
View File
@@ -6,6 +6,6 @@
"homepage": "https://raea.io",
"repository": "https://github.com/shinyobjectz/raea",
"license": "FSL-1.1-ALv2",
"skills": ["./sdk/skills/"],
"skills": ["./skills/skills/raea"],
"keywords": ["video", "motion-graphics", "game-development", "rendering", "bevy", "react", "agent-skills"]
}
+116
View File
@@ -0,0 +1,116 @@
# raea's public CI (docs/public-first.feature PF5), on GitHub's hosted runners only: it runs code from pull requests,
# so it never touches a self-hosted machine. What needs this Mac's GPU, VideoToolbox or audio (P26, UI parity, the
# sound gates) stays the maintainers' L1/L2 (docs/agents.md); this is the part anyone can read and rerun.
# every pull request and push to main guard (names and secrets), L0's repo-wide gates, cargo check of the engine
name: ci
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
# a pull request's newer push replaces its run; main's pushes each finish (on a busy main, cancelling meant none did)
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: never
CARGO_INCREMENTAL: "0"
jobs:
guard:
# what this change adds names no home folder, agent path or session, and holds no secret (tools/public-guard.sh)
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: gitleaks
# GitHub's release host answered 504 for minutes at a time on 11-08, through every retry; the same version's
# container image on ghcr.io is the fallback
run: |
v=8.30.1
curl -fsSL --retry 3 --retry-all-errors https://github.com/gitleaks/gitleaks/releases/download/v$v/gitleaks_${v}_linux_x64.tar.gz | tar -xz -C /usr/local/bin gitleaks \
|| { c=$(docker create ghcr.io/gitleaks/gitleaks:v$v) && sudo docker cp "$c:/usr/bin/gitleaks" /usr/local/bin/gitleaks && docker rm "$c"; }
gitleaks version
- name: public-guard
run: |
base=${{ github.event.pull_request.base.sha || github.event.before }}
git cat-file -e "$base^{commit}" 2>/dev/null || base=$(git rev-list --max-parents=0 HEAD | tail -1)
bash tools/public-guard.sh range "$base..HEAD"
gates:
# L0's repo-wide steps (tools/agents/check's list, the ones that need no GPU)
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
submodules: true
lfs: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- name: tools
run: |
rustup show active-toolchain
sudo apt-get update && sudo apt-get install -y ripgrep
cargo install --locked cargo-shear cargo-dupes
- name: layers
run: bash tools/layers.sh
- name: names
run: bash tools/names.sh
- name: size
run: bash tools/size.sh
- name: one-version
run: bash tools/one-version.sh
- name: no-void
run: bash tools/no-void.sh
- name: dupes
run: bash tools/dupes.sh
- name: unused dependencies
run: cargo shear --color never --deny-warnings
- name: tasks
run: bash tools/rask.sh check
- name: sdk packages
# sdk-coverage reads csstype and @types/react from them; node_modules aren't in git
run: cd sdk/raea && bun install --frozen-lockfile
- name: sdk coverage
run: bash tools/sdk-coverage --check
- name: sdk props
run: bash tools/sdk-props.sh --check
- name: taxonomy
run: bash tools/taxonomy.sh --check
engine:
# a fresh clone builds as the README says (public #14): the toolchain from rust-toolchain.toml, --locked
strategy:
fail-fast: false
matrix:
os: [macos-15, ubuntu-24.04]
runs-on: ${{ matrix.os }}
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
with:
lfs: false
- name: Linux libraries
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build libasound2-dev libfontconfig1-dev libvulkan-dev libudev-dev nasm
- name: macOS tools
if: runner.os == 'macOS'
run: brew install cmake ninja nasm
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- uses: Swatinem/rust-cache@v2
- name: cargo check
run: cargo check --locked -p raea-cli --tests
- name: unit tests (the crates with no GPU or media device)
run: cargo test --locked -p raea-io-media -p raea-core-fonts -p raea-native
+44
View File
@@ -0,0 +1,44 @@
# Posts every published release to #releases in the raea Discord. Engine releases (v* tags) ping the "release pings"
# role that members pick in onboarding. Other releases, such as the web modules, post without a ping.
# Needs the repository secret DISCORD_RELEASES_WEBHOOK (the #releases webhook) and the variable DISCORD_RELEASE_ROLE
# (that role's id). Without the secret it skips.
name: discord
on:
release:
types: [published]
permissions: {}
jobs:
announce:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Post the release to #releases
env:
WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
ROLE: ${{ vars.DISCORD_RELEASE_ROLE }}
TAG: ${{ github.event.release.tag_name }}
NAME: ${{ github.event.release.name }}
URL: ${{ github.event.release.html_url }}
BODY: ${{ github.event.release.body }}
PRE: ${{ github.event.release.prerelease }}
run: |
[ -n "$WEBHOOK" ] || { echo "no DISCORD_RELEASES_WEBHOOK secret, so nothing to post"; exit 0; }
ping=""
if [[ $TAG == v* && -n $ROLE ]]; then ping="<@&$ROLE> "; fi
kind="release"; [[ $PRE == true ]] && kind="pre-release"
install=""
if [[ $TAG == v* ]]; then install=$'\n\nInstall or update: `curl -fsSL https://raea.io/install | sh` (macOS, Linux), or `irm https://raea.io/install.ps1 | iex` (Windows).'; fi
notes="$BODY"
if (( ${#notes} > 3500 )); then notes="${notes:0:3500}"$'…\n\nThe full notes are on GitHub.'; fi
payload=$(jq -n --arg ping "$ping" --arg tag "$TAG" --arg name "${NAME:-$TAG}" --arg url "$URL" \
--arg notes "$notes$install" --arg kind "$kind" --arg role "$ROLE" '{
content: "\($ping)raea \($tag) is out (\($kind)).",
allowed_mentions: { roles: (if $ping == "" then [] else [$role] end) },
embeds: [{ title: $name, url: $url, description: $notes, color: 16053488,
footer: { text: "github.com/shinyobjectz/raea" } }]
}')
curl -fsS -H "Content-Type: application/json" -d "$payload" "$WEBHOOK?wait=true" -o /dev/null
echo "posted $TAG"
+297
View File
@@ -0,0 +1,297 @@
# A release, built here where anyone can read how (public #6; docs/public-first.feature PF5): for a v* tag, macOS on
# Apple Silicon, Linux on x86_64 and Windows on x86_64 are built from the tag on GitHub's runners, packed by
# tools/release.sh, checked by tools/release-check.sh, attested (anyone can check a download with
# `gh attestation verify raea-VERSION-macos-arm64.tar.gz -R shinyobjectz/raea`) and attached to the tag's release.
# The skills gate reads the feed app, which is private, so it runs in a maintainer's checkout first
# (tools/skills.sh check), and the tag names the commit it passed on; tools/release.sh checks the gate's inputs haven't
# changed since (tools/release/skills-passed.sh):
# git tag -a v0.1.0 -m "raea 0.1.0" -m "skills-passed: <full sha>"
# A tag with a suffix (v0.1.0-rc1, v0.1.0-canary.3) is made a pre-release; a plain version (v0.1.0) is a full release,
# GitHub's latest. The release's notes are set by hand.
name: release
on:
push:
tags: ["v*"]
workflow_dispatch:
inputs:
tag:
description: the tag to build (v0.1.0)
required: true
type: string
skills_passed:
description: the full SHA where tools/skills.sh check passed with the feed app (else the tag's skills-passed line)
default: ""
type: string
permissions:
contents: write
id-token: write
attestations: write
env:
CARGO_TERM_COLOR: never
CARGO_INCREMENTAL: "0"
TAG: ${{ inputs.tag || github.ref_name }}
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: macos-15
lib: libraea_bundle.dylib
extra: raea-perceive
# raea-perceive (`raea song`'s map) builds off Apple since #43
- os: ubuntu-24.04
lib: libraea_bundle.so
extra: raea-perceive
runs-on: ${{ matrix.os }}
# a cold thin-LTO build of raea-cli with the plugin catalog is the long part; GitHub's own limit is 6 hours
timeout-minutes: 340
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.TAG }}
submodules: true
lfs: false
- name: Linux libraries
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build nasm libxkbcommon-dev libxkbcommon-x11-dev libasound2-dev libfontconfig1-dev libvulkan-dev libudev-dev mesa-vulkan-drivers xvfb
- name: macOS tools
if: runner.os == 'macOS'
run: brew install cmake ninja
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- name: The runtime's packages
run: for d in sdk/react/js sdk/react/tw; do (cd "$d" && bun install --frozen-lockfile); done
- name: Models (pinned by URL and sha256 in tools/release/models.tsv)
run: |
while IFS=$'\t' read -r path url sha; do
case $path in ''|'#'*) continue ;; esac
mkdir -p "$HOME/.local/share/raea-models/$(dirname "$path")"
curl -fsSL "$url" -o "$HOME/.local/share/raea-models/$path"
echo "$sha $HOME/.local/share/raea-models/$path" | shasum -a 256 -c -
done < tools/release/models.tsv
- name: Build
run: |
feat=$(bash tools/bevy-plugins.sh features sdk/raea/bench/bevy-plugins)
cargo build --profile dist --locked -p raea-cli --bin raea --no-default-features --features "$feat"
cargo build --profile dist --locked -p raea-rune-host
cargo build --profile dist --locked -p raea-page-host --features window
if [ -n "${{ matrix.extra }}" ]; then cargo build --profile dist --locked -p ${{ matrix.extra }}; fi
mkdir ship
cp target/dist/raea target/dist/${{ matrix.lib }} target/dist/raea-rune-host target/dist/raea-page-host ship/
if [ -n "${{ matrix.extra }}" ]; then cp target/dist/${{ matrix.extra }} ship/; fi
# the packing and its checks need only ship/, and macos-15's disk ran out packing rc1 with target/ kept
- name: Free the build's disk
run: |
df -h . | tail -1
rm -rf target
df -h . | tail -1
- name: Where the skills gate passed
run: bash tools/release/skills-passed.sh "$TAG" "${{ inputs.skills_passed }}"
- name: Pack and check (tools/release.sh)
env:
RAEA_CHECK_DIR: ${{ runner.temp }}/release-check
run: |
v=${TAG#v}
if [ "$RUNNER_OS" = Linux ]; then xvfb-run -a -s "-screen 0 1280x1024x24" bash tools/release.sh "$v" ship HEAD
else bash tools/release.sh "$v" ship HEAD; fi
# a failed check's own files (the app check's frames, every step's log), not the unpacked release
- uses: actions/upload-artifact@v4
if: failure()
with:
name: release-check-${{ runner.os }}
path: |
${{ runner.temp }}/release-check/app
${{ runner.temp }}/release-check/**/*.log
retention-days: 7
if-no-files-found: ignore
- uses: actions/attest-build-provenance@v2
with:
subject-path: dist/raea-*.tar.gz
- name: Attach to the release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release view "$TAG" >/dev/null 2>&1 || gh release create "$TAG" ${{ contains(env.TAG, '-') && '--prerelease' || '' }} --title "raea ${TAG#v}" --notes "Built by .github/workflows/release.yml; notes follow."
gh release upload "$TAG" dist/raea-*.tar.gz dist/raea-*.tar.gz.sha256 --clobber
# Windows in Git's bash on GitHub's runner, with the Visual Studio Build Tools in its image (their image terms; we
# accept no licence and download no Microsoft files). The C runtime is the DLL one (the VC++ redistributable): ort's
# prebuilt ONNX Runtime is built against it, so crt-static doesn't link (LNK2019 on __imp_ symbols, 10-29).
windows:
runs-on: windows-latest
timeout-minutes: 350
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.TAG }}
submodules: true
lfs: false
- name: Toolchain (rust-toolchain.toml's pin)
run: rustup show active-toolchain || rustup toolchain install
# jq for Windows ends -r lines with CRLF, so tools/bevy-plugins.sh read "ahoy\r" and lost its Bevy 0.20 block
# (feature `ahoy` not found, 11-04); -b writes LF
- name: jq that writes LF
run: |
mkdir -p "$RUNNER_TEMP/jq"
printf '#!/bin/bash\nexec "%s" -b "$@"\n' "$(command -v jq)" > "$RUNNER_TEMP/jq/jq"
chmod +x "$RUNNER_TEMP/jq/jq"
echo "$RUNNER_TEMP/jq" >> "$GITHUB_PATH"
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- name: The runtime's packages
run: for d in sdk/react/js sdk/react/tw; do (cd "$d" && bun install --frozen-lockfile); done
# `raea song`'s beat model, which release.sh packs (into Git bash's ~/.local/share/raea-models, as on the others)
- name: Models (pinned by URL and sha256 in tools/release/models.tsv)
run: |
while IFS=$'\t' read -r path url sha; do
case $path in ''|'#'*) continue ;; esac
mkdir -p "$HOME/.local/share/raea-models/$(dirname "$path")"
curl -fsSL "$url" -o "$HOME/.local/share/raea-models/$path"
echo "$sha $HOME/.local/share/raea-models/$path" | sha256sum -c -
done < <(tr -d '\r' < tools/release/models.tsv)
# the app targets' hosts a cargo call each: with raea-cli's crates in one call taffy's features unify and
# rune-taffy doesn't build; raea-perceive (`raea song`'s map, #43) a call of its own too
- name: Build
run: |
feat=$(bash tools/bevy-plugins.sh features sdk/raea/bench/bevy-plugins)
cargo build --profile dist --locked -p raea-cli --bin raea --no-default-features --features "$feat"
cargo build --profile dist --locked -p raea-rune-host
cargo build --profile dist --locked -p raea-page-host --features window
cargo build --profile dist --locked -p raea-perceive
# which DLLs raea needs from the machine (the CRT's come from the VC++ redistributable)
- name: What raea.exe imports
run: |
{ echo '### what raea.exe, raea_bundle.dll and raea-perceive.exe import'; echo '```'
dumpbin=$(ls "/c/Program Files/Microsoft Visual Studio"/*/*/VC/Tools/MSVC/*/bin/HostX64/x64/dumpbin.exe | head -1)
"$dumpbin" -nologo -dependents target/dist/raea.exe target/dist/raea_bundle.dll target/dist/raea-perceive.exe | grep -iE '\.dll$|Dump of' | sed 's/^ *//'
echo '```'; } | tee -a "$GITHUB_STEP_SUMMARY" || true
# release.sh's checks render on Mesa's lavapipe (software Vulkan, MIT; on the runner only, never in the zip): the
# runner has no GPU, and WARP, Windows' own software DX12, crashes compiling one of Bevy's compute shaders there
# (d3d10warp ComputeShaderTransformer::ConstructLoadStoreSets, an access violation; 11-04)
- name: Software Vulkan
run: bash tools/release/lavapipe.sh
- name: Where the skills gate passed
run: bash tools/release/skills-passed.sh "$TAG" "${{ inputs.skills_passed }}"
- name: Pack and check (tools/release.sh)
env:
RAEA_CHECK_DIR: ${{ runner.temp }}/release-check
run: bash tools/release.sh "${TAG#v}" target/dist HEAD
# live play on Windows (PT20 left it unproven): bevy-ts's play cases, `play --offscreen` with an input script and
# a snapshot's pixels probed, run by the raea just built; check.sh reads the pixels with ImageMagick, which the
# image has only sometimes, and choco's PATH change doesn't reach the next step, so its folder goes on GITHUB_PATH
- name: ImageMagick (check.sh reads a snapshot's pixels)
shell: pwsh
run: |
if (-not (Get-Command magick -ErrorAction SilentlyContinue)) { choco install imagemagick -y --no-progress | Out-Null }
$im = Get-ChildItem "C:\Program Files" -Directory -Filter "ImageMagick-*" | Select-Object -First 1
if ($im) { Add-Content $env:GITHUB_PATH $im.FullName }
# without the loader's debug lines (lavapipe.sh sets them for the driver's registration), and a failing case's
# log tail in the job's log, since the runner and its logs go when the job ends
# each case is bounded by check.sh (RAEA_CASE_SECONDS: a fresh runner's first play opens in about 100s, the next in
# seconds); the step's own bound is for the rest
- name: Live play (bevy-ts's play cases)
timeout-minutes: 75
env:
VK_LOADER_DEBUG: ""
RAEA_CASE_SECONDS: "300"
# the zip's raea, unpacked, with RAEA_NO_TREE=1 and the cases copied out of the checkout, as a user's machine has
# them: target/dist's raea has no share/raea beside it, so its home is this checkout, 2 h of build in target/
# included, and there its 3D cases ran past 300 s each (rc1) where the unpacked zip's open in under 70 s
run: |
u="$RUNNER_TEMP/play-zip"; c="$RUNNER_TEMP/play-cases"
mkdir -p "$u" && 7z x -y -o"$u" dist/raea-*.zip > /dev/null && cp -r sdk/raea/bench/bevy-ts/cases "$c"
b="$u/raea/bin/raea.exe"
out="${TMPDIR:-/tmp}/raea-bevy-ts"
s=0; RAEA_NO_TREE=1 RAEA_BIN="$b" RAEA_PLUGIN_BIN="$b" bash sdk/raea/bench/bevy-ts/check.sh $(grep -l '^// play:' "$c"/*.tsx) 2>&1 | tee "$RUNNER_TEMP/play.txt" || s=$?
cat "$RUNNER_TEMP/play.txt" >> "$GITHUB_STEP_SUMMARY"
for n in $(sed -n 's/^\([^ ]*\) (.*): OPEN.*/\1/p' "$RUNNER_TEMP/play.txt"); do echo "--- $n"; { grep -v "known driver" "$out/$n.log" || echo "(its log is empty)"; } | tail -25; done
exit $s
- uses: actions/attest-build-provenance@v2
with:
subject-path: dist/raea-*.zip
# kept even when its check fails, with the check's own files, so a failure can be looked into on a fresh runner
# without a rebuild; only windows-verify attaches it to the release
- uses: actions/upload-artifact@v4
if: always()
with:
name: windows-zip
path: dist/raea-*.zip*
retention-days: 7
compression-level: 0
if-no-files-found: ignore
- uses: actions/upload-artifact@v4
if: failure()
with:
name: release-check-Windows
path: ${{ runner.temp }}/release-check/app
retention-days: 7
if-no-files-found: ignore
# the zip alone, on a runner that never had raea's sources, as a user's machine gets it; it also tests the
# published installer (raea.io/install.ps1), pointed at the zip by RAEA_DOWNLOAD. Only a zip that passes is attached.
windows-verify:
needs: windows
runs-on: windows-latest
timeout-minutes: 20
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.TAG }}
lfs: false
sparse-checkout: |
tools/release-check.sh
tools/release/lavapipe.sh
sparse-checkout-cone-mode: false
path: check
- uses: actions/download-artifact@v4
with:
name: windows-zip
path: ${{ runner.temp }}/zip
- name: Software Vulkan
run: bash check/tools/release/lavapipe.sh
- name: The zip, unpacked and checked
run: |
set -e
v=${TAG#v}
cp check/tools/release-check.sh "$RUNNER_TEMP/"
rm -rf check
cd "$RUNNER_TEMP/zip"
sha256sum -c "raea-$v-windows-x86_64.zip.sha256"
bash "$RUNNER_TEMP/release-check.sh" "$PWD/raea-$v-windows-x86_64.zip" | tee -a "$GITHUB_STEP_SUMMARY"
- name: install.ps1, then a render from PATH
shell: pwsh
run: |
$v = $env:TAG.Substring(1)
$rel = Join-Path $env:RUNNER_TEMP "rel"
New-Item -ItemType Directory -Force -Path (Join-Path $rel "v$v") | Out-Null
Copy-Item (Join-Path $env:RUNNER_TEMP "zip/raea-$v-windows-x86_64.zip*") (Join-Path $rel "v$v")
$env:RAEA_DOWNLOAD = $rel; $env:RAEA_VERSION = $v; $env:RAEA_NO_SKILLS = "1"
& ([scriptblock]::Create((Invoke-RestMethod https://raea.io/install.ps1)))
$p = Join-Path $env:RUNNER_TEMP "user"; New-Item -ItemType Directory -Force -Path $p | Out-Null; Set-Location $p
$env:RAEA_NO_TREE = "1"; $env:RAEA_API = "http://127.0.0.1:9"
raea init
if ($LASTEXITCODE) { throw "raea init failed" }
Set-Content hello.tsx 'import { AbsoluteFill, Composition, registerRoot } from "raea"; registerRoot(() => <Composition id="hello" component={() => <AbsoluteFill style={{ background: "#123", color: "#fff", fontSize: 90, justifyContent: "center", alignItems: "center" }}>raea on Windows</AbsoluteFill>} width={640} height={360} fps={30} durationInFrames={30} />);'
$h = Join-Path $env:RUNNER_TEMP "hello"; New-Item -ItemType Directory -Force -Path $h | Out-Null; Move-Item hello.tsx $h; Set-Location $h
raea render hello.tsx --frame 1 -o hello.png
if ($LASTEXITCODE -or -not (Test-Path hello.png)) { throw "raea render failed" }
Get-Item hello.png | Format-List Name, Length
- name: Attach to the release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release view "$TAG" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1 || gh release create "$TAG" -R "$GITHUB_REPOSITORY" ${{ contains(env.TAG, '-') && '--prerelease' || '' }} --title "raea ${TAG#v}" --notes "Built by .github/workflows/release.yml; notes follow."
gh release upload "$TAG" -R "$GITHUB_REPOSITORY" "$RUNNER_TEMP"/zip/raea-*.zip "$RUNNER_TEMP"/zip/raea-*.zip.sha256 --clobber
+3 -1
View File
@@ -81,7 +81,7 @@ content/**/*.db
content/**/*.bak
content/**/*.physics.json
# local footage catalogues and eval takes (client data on Shane's drives, from the host app's era): never committed; raea
# local footage catalogues and eval takes (client data, kept off git): never committed; raea
# keeps no UGC data (10-24), so they're for moving out of the repo, not into it
engine/media/library/
engine/media/real/
@@ -101,3 +101,5 @@ sdk/raea/.scratch-*/
# the Tripo CLI writes its last task id into the directory it runs in
.tripo/
# tools/bevy-parity links each example folder's assets/ to Bevy's checkout at run time (an absolute, per-machine path)
/sdk/raea/bench/bevy-parity/**/assets
+6
View File
@@ -0,0 +1,6 @@
[submodule "tools/rask"]
path = tools/rask
url = https://github.com/shinyobjectz/rask.git
[submodule "skills"]
path = skills
url = https://github.com/shinyobjectz/raea-skills.git
+16
View File
@@ -0,0 +1,16 @@
# Contributing
raea is a canary release, and it changes a lot from day to day. The best way to help right now is to file an issue.
Every one gets read, and a good bug report usually gets fixed sooner than a pull request can be reviewed against code
that has moved on.
- **Bugs:** say what you ran, what happened, and what you expected. Include the raea version (`raea --version`), your
OS and machine, and the smallest page or composition that shows the problem. Comparing against a reference render,
such as the same page in a browser, and naming the frame where it differs helps a lot.
- **Ideas and questions:** open an issue and describe what you're trying to make.
## Pull requests
Pull requests are taken case by case. Open an issue first and say what you'd like to change, so we can agree on it
before you spend time on code. A contribution that lands keeps you as the author of your commits in this repository's
history.
Generated
+255 -9
View File
@@ -2593,7 +2593,6 @@ dependencies = [
[[package]]
name = "bevy_hanabi"
version = "0.20.0-dev"
source = "git+https://github.com/djeedai/bevy_hanabi?rev=77630ff1eed8b104f34e91d23e9440428dc5ab01#77630ff1eed8b104f34e91d23e9440428dc5ab01"
dependencies = [
"anyhow",
"bevy",
@@ -3603,8 +3602,6 @@ dependencies = [
[[package]]
name = "bevy_solari"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6884816ec199c45499cc33bb5a992a89662b87dffb797e54e627dbd2d9bba618"
dependencies = [
"bevy_anti_alias",
"bevy_app",
@@ -3617,6 +3614,7 @@ dependencies = [
"bevy_ecs",
"bevy_image",
"bevy_light",
"bevy_material",
"bevy_math",
"bevy_mesh",
"bevy_pbr",
@@ -10530,6 +10528,7 @@ dependencies = [
"num-traits",
"once_cell",
"petgraph",
"pp-rs",
"rustc-hash 1.1.0",
"serde",
"spirv",
@@ -13176,6 +13175,15 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
[[package]]
name = "pp-rs"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb458bb7f6e250e6eb79d5026badc10a3ebb8f9a15d1fff0f13d17c71f4d6dee"
dependencies = [
"unicode-xid",
]
[[package]]
name = "ppv-lite86"
version = "0.2.21"
@@ -13615,6 +13623,18 @@ dependencies = [
"winit",
]
[[package]]
name = "raea-app-judge"
version = "0.1.0"
dependencies = [
"base64 0.22.1",
"image",
"raea-io-home",
"raea-runtime-bundle",
"serde_json",
"ureq 2.12.1",
]
[[package]]
name = "raea-app-media"
version = "0.1.0"
@@ -13645,6 +13665,18 @@ dependencies = [
"winit",
]
[[package]]
name = "raea-app-solid"
version = "0.1.0"
dependencies = [
"raea-app-judge",
"raea-core-meshcheck",
"raea-core-shape",
"raea-core-solidinfo",
"raea-runtime-bundle",
"serde_json",
]
[[package]]
name = "raea-app-targets"
version = "0.1.0"
@@ -13737,9 +13769,13 @@ dependencies = [
name = "raea-bevy-parity"
version = "0.1.0"
dependencies = [
"accesskit 0.24.1",
"argh",
"bevy",
"bytemuck",
"chacha20 0.10.2",
"indexmap",
"nonmax",
"raea-sys-parity",
"rand 0.10.3",
]
@@ -13885,8 +13921,10 @@ dependencies = [
"raea-app-check",
"raea-app-ci",
"raea-app-game",
"raea-app-judge",
"raea-app-media",
"raea-app-play",
"raea-app-solid",
"raea-app-targets",
"raea-app-tools",
"raea-app-workspace",
@@ -13956,14 +13994,44 @@ dependencies = [
"wuff",
]
[[package]]
name = "raea-core-grow"
version = "0.1.0"
dependencies = [
"raea-core-sdf",
]
[[package]]
name = "raea-core-k"
version = "0.1.0"
[[package]]
name = "raea-core-meshcheck"
version = "0.1.0"
dependencies = [
"serde_json",
]
[[package]]
name = "raea-core-place"
version = "0.1.0"
dependencies = [
"serde_json",
]
[[package]]
name = "raea-core-program"
version = "0.1.0"
[[package]]
name = "raea-core-review"
version = "0.1.0"
dependencies = [
"bevy",
"raea-core-scene",
"serde_json",
]
[[package]]
name = "raea-core-scene"
version = "0.1.0"
@@ -13973,16 +14041,32 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-core-sdf"
version = "0.1.0"
[[package]]
name = "raea-core-shape"
version = "0.1.0"
dependencies = [
"manifold-rust",
"raea-core-fonts",
"raea-core-grow",
"raea-core-sdf",
"serde_json",
"skrifa 0.44.0",
]
[[package]]
name = "raea-core-solidinfo"
version = "0.1.0"
dependencies = [
"manifold-rust",
"raea-core-place",
"raea-core-shape",
"serde_json",
]
[[package]]
name = "raea-core-wire"
version = "0.1.0"
@@ -14091,6 +14175,7 @@ name = "raea-io-gen"
version = "0.1.0"
dependencies = [
"image",
"raea-core-meshcheck",
"raea-io-gen-comfy",
"raea-io-gen-core",
"raea-io-home",
@@ -14119,6 +14204,7 @@ name = "raea-io-home"
version = "0.1.0"
dependencies = [
"serde_json",
"url",
]
[[package]]
@@ -14303,6 +14389,7 @@ dependencies = [
"raea-page",
"raea-page-stage",
"raea-page-window",
"raea-rune-slots",
"raea-runtime-dom",
"raea-runtime-input",
"raea-runtime-js",
@@ -14395,7 +14482,9 @@ dependencies = [
"raea-sys-meshseq",
"raea-sys-page",
"raea-sys-parity",
"raea-sys-phase",
"raea-sys-post",
"raea-sys-procmat",
"raea-sys-rt",
"raea-sys-sampler",
"raea-sys-screen",
@@ -14403,6 +14492,7 @@ dependencies = [
"raea-sys-splat",
"raea-sys-sprite",
"raea-sys-text3d",
"raea-sys-three-shader",
"raea-sys-volume",
"raea-sys-wear",
"serde_json",
@@ -14420,24 +14510,55 @@ dependencies = [
"wgpu",
]
[[package]]
name = "raea-rune-bevy"
version = "0.1.0"
dependencies = [
"bevy",
"rune",
"wgpu",
]
[[package]]
name = "raea-rune-host"
version = "0.1.0"
dependencies = [
"bevy",
"png 0.18.1",
"raea-core-wire",
"raea-io-net-calls",
"raea-io-os",
"raea-rune-bevy",
"raea-rune-js",
"raea-rune-look",
"raea-rune-media",
"raea-rune-page",
"raea-runtime-bundle-lib",
"raea-runtime-jsengine",
"rune",
"serde",
"serde_json",
]
[[package]]
name = "raea-rune-js"
version = "0.1.0"
dependencies = [
"raea-core-wire",
"raea-io-net-calls",
"raea-io-os",
"raea-rune-page",
"raea-runtime-jsengine",
"serde_json",
]
[[package]]
name = "raea-rune-layer"
version = "0.1.0"
dependencies = [
"raea-core-wire",
"serde_json",
]
[[package]]
name = "raea-rune-look"
version = "0.1.0"
@@ -14471,6 +14592,24 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-rune-slots"
version = "0.1.0"
dependencies = [
"bevy",
"blitz-dom",
"raea-core-wire",
"raea-rune-bevy",
"raea-rune-layer",
"raea-rune-media",
"raea-rune-page",
"raea-runtime-dom",
"raea-runtime-twins",
"raea-sys-page",
"rune",
"serde_json",
]
[[package]]
name = "raea-rune-style"
version = "0.1.0"
@@ -14497,6 +14636,7 @@ version = "0.1.0"
dependencies = [
"dunce",
"junction",
"libc",
"raea-core-scene",
"raea-io-home",
"raea-io-media",
@@ -14504,6 +14644,7 @@ dependencies = [
"raea-runtime-bundle-lib",
"regex",
"serde_json",
"windows-sys 0.61.2",
]
[[package]]
@@ -14511,6 +14652,7 @@ name = "raea-runtime-bundle-lib"
version = "0.1.0"
dependencies = [
"libloading",
"raea-io-home",
"serde_json",
]
@@ -14522,12 +14664,15 @@ dependencies = [
"bevy",
"image",
"manifold-rust",
"parley",
"raea-core-place",
"raea-core-scene",
"raea-core-shape",
"raea-io-media",
"raea-io-net",
"raea-native",
"raea-runtime-plugins",
"raea-sys-fonts",
"raea-sys-mix",
"raea-sys-ml",
"raea-sys-speech",
@@ -14594,10 +14739,12 @@ dependencies = [
"bevy",
"image",
"raea-core-program",
"raea-core-review",
"raea-core-scene",
"raea-gpu-device",
"raea-io-assets",
"raea-io-media",
"raea-io-net",
"raea-page",
"raea-render",
"raea-runtime-bake",
@@ -14605,6 +14752,7 @@ dependencies = [
"raea-runtime-page",
"raea-runtime-react",
"raea-runtime-scene",
"raea-runtime-scene3d",
"raea-runtime-sound",
"raea-runtime-view",
"raea-sys-contact",
@@ -14683,6 +14831,7 @@ dependencies = [
"image",
"raea-core-program",
"raea-gpu-device",
"raea-io-net",
"raea-io-trace",
"raea-render",
"raea-runtime-bake",
@@ -14714,10 +14863,12 @@ dependencies = [
"base64 0.22.1",
"bevy",
"image",
"raea-core-scene",
"raea-core-wire",
"raea-io-assets",
"raea-io-home",
"raea-io-media",
"raea-io-net",
"raea-page",
"raea-render",
"raea-runtime-input",
@@ -14729,6 +14880,7 @@ dependencies = [
"raea-sys-image",
"raea-sys-page",
"raea-sys-screen",
"raea-sys-shader",
"serde_json",
"wgpu",
]
@@ -14743,6 +14895,8 @@ dependencies = [
"raea-core-shape",
"raea-sys-frame",
"raea-sys-material",
"raea-sys-shader",
"raea-sys-three-shader",
"serde",
"serde_json",
]
@@ -14786,12 +14940,25 @@ version = "0.1.0"
dependencies = [
"bevy",
"raea-core-program",
"raea-core-review",
"raea-core-scene",
"raea-runtime-look",
"raea-runtime-scene2d",
"raea-sys-procmat",
"raea-sys-wear",
"serde_json",
]
[[package]]
name = "raea-runtime-scene2d"
version = "0.1.0"
dependencies = [
"raea-core-program",
"raea-core-scene",
"raea-runtime-look",
"serde_json",
]
[[package]]
name = "raea-runtime-scene3d"
version = "0.1.0"
@@ -14963,7 +15130,9 @@ name = "raea-sys-compute"
version = "0.1.0"
dependencies = [
"bevy",
"raea-sys-frame",
"raea-sys-material",
"raea-sys-sampler",
"raea-sys-shader",
"serde_json",
]
@@ -14973,6 +15142,7 @@ name = "raea-sys-contact"
version = "0.1.0"
dependencies = [
"bevy",
"raea-core-meshcheck",
"raea-core-scene",
"raea-core-shape",
"serde_json",
@@ -15034,6 +15204,7 @@ dependencies = [
"parley",
"raea-io-net",
"serde_json",
"swash",
"wuff",
]
@@ -15057,6 +15228,7 @@ version = "0.1.0"
dependencies = [
"bevy",
"raea-core-program",
"raea-core-scene",
"raea-io-media",
"serde_json",
]
@@ -15066,7 +15238,9 @@ name = "raea-sys-framepass"
version = "0.1.0"
dependencies = [
"bevy",
"raea-sys-frame",
"raea-sys-material",
"raea-sys-sampler",
"raea-sys-shader",
"serde_json",
]
@@ -15161,11 +15335,21 @@ dependencies = [
"raea-core-shape",
"raea-io-net",
"raea-sys-frame",
"raea-sys-mesh",
"raea-sys-sampler",
"resvg 0.48.1",
"serde_json",
]
[[package]]
name = "raea-sys-mesh"
version = "0.1.0"
dependencies = [
"bevy",
"raea-core-shape",
"serde_json",
]
[[package]]
name = "raea-sys-meshseq"
version = "0.1.0"
@@ -15214,13 +15398,12 @@ dependencies = [
"parley",
"raea-core-wire",
"raea-gpu-device",
"raea-sys-canvas",
"raea-sys-filters",
"raea-sys-fonts",
"raea-sys-image",
"raea-sys-page-net",
"raea-sys-page-ops",
"serde_json",
"stylo",
"vello",
"wgpu",
]
@@ -15233,12 +15416,25 @@ dependencies = [
"bevy",
"blitz-dom",
"blitz-traits",
"percent-encoding",
"raea-io-net",
"raea-sys-image",
"serde_json",
"url",
]
[[package]]
name = "raea-sys-page-ops"
version = "0.1.0"
dependencies = [
"blitz-dom",
"raea-core-wire",
"raea-sys-canvas",
"serde_json",
"stylo",
"vello",
]
[[package]]
name = "raea-sys-parity"
version = "0.1.0"
@@ -15260,6 +15456,17 @@ dependencies = [
"rten-tensor",
]
[[package]]
name = "raea-sys-phase"
version = "0.1.0"
dependencies = [
"bevy",
"bytemuck",
"indexmap",
"nonmax",
"raea-sys-shader",
]
[[package]]
name = "raea-sys-post"
version = "0.1.0"
@@ -15269,6 +15476,16 @@ dependencies = [
"raea-sys-frame",
]
[[package]]
name = "raea-sys-procmat"
version = "0.1.0"
dependencies = [
"bevy",
"raea-core-program",
"raea-sys-frame",
"serde_json",
]
[[package]]
name = "raea-sys-rt"
version = "0.1.0"
@@ -15294,6 +15511,7 @@ dependencies = [
"image",
"raea-core-program",
"raea-sys-frame",
"raea-sys-material",
"serde_json",
"wgpu",
]
@@ -15303,8 +15521,20 @@ name = "raea-sys-shader"
version = "0.1.0"
dependencies = [
"bevy",
"raea-gpu-device",
"raea-sys-material",
"raea-sys-sampler",
"raea-sys-shader-wgsl",
"serde_json",
"wgpu",
]
[[package]]
name = "raea-sys-shader-wgsl"
version = "0.1.0"
dependencies = [
"bevy",
"raea-sys-material",
"serde_json",
]
@@ -15315,6 +15545,7 @@ dependencies = [
"deep_filter",
"ndarray 0.15.6",
"ort",
"raea-io-home",
"raea-io-media",
"raea-sys-vision",
"serde_json",
@@ -15348,6 +15579,10 @@ dependencies = [
"bevy",
"raea-core-program",
"raea-sys-frame",
"raea-sys-mesh",
"raea-sys-sampler",
"raea-sys-shader",
"serde_json",
]
[[package]]
@@ -15363,6 +15598,18 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-sys-three-shader"
version = "0.1.0"
dependencies = [
"bevy",
"image",
"naga",
"raea-sys-material",
"raea-sys-sampler",
"serde_json",
]
[[package]]
name = "raea-sys-tone"
version = "0.1.0"
@@ -16919,7 +17166,6 @@ dependencies = [
[[package]]
name = "rune-taffy"
version = "0.0.1"
source = "git+https://github.com/anomalyco/rune?rev=7ead7d63fcf6f9dd9669385a8b90e2ae80015d7b#7ead7d63fcf6f9dd9669385a8b90e2ae80015d7b"
dependencies = [
"taffy",
]
@@ -20180,6 +20426,8 @@ dependencies = [
"once_cell",
"rustls",
"rustls-pki-types",
"serde",
"serde_json",
"url",
"webpki-roots 0.26.11",
]
@@ -20428,8 +20676,6 @@ dependencies = [
[[package]]
name = "vello_shaders"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e653222cee49f2571729c3e4b0fa99bc4f826c6bb9487dbb88b825d552b3a27"
dependencies = [
"bytemuck",
"log",
+39
View File
@@ -10,6 +10,12 @@ members = [
"core/program",
"core/scene",
"core/shape",
"core/meshcheck",
"core/sdf",
"core/grow",
"core/solidinfo",
"core/review",
"core/place",
"core/wire",
"io/net",
"io/net/calls",
@@ -17,9 +23,12 @@ members = [
"systems/animate",
"systems/framepass",
"systems/compute",
"systems/phase",
"systems/shader/wgsl",
"systems/sampler",
"systems/parity",
"systems/shader",
"systems/three-shader",
"engine/bevy-calls",
"engine/bevy-adapters",
"engine/bevy-plugins",
@@ -39,6 +48,10 @@ members = [
"engine/rune/media",
"engine/rune/look",
"engine/rune/style",
"engine/rune/bevy",
"engine/rune/js",
"engine/rune/layer",
"engine/rune/slots",
"engine/page/stage",
"engine/page/window",
"io/trace",
@@ -76,8 +89,10 @@ members = [
"systems/tweak",
"systems/filters",
"systems/wear",
"systems/procmat",
"systems/page",
"systems/page-net",
"systems/page-ops",
"systems/frame",
"systems/splat",
"systems/sprite",
@@ -93,6 +108,7 @@ members = [
"systems/look",
"systems/compose",
"systems/material",
"systems/mesh",
"systems/post",
"systems/fog",
"systems/fog-half",
@@ -128,11 +144,14 @@ members = [
"runtime/sound",
"runtime/look",
"runtime/scene",
"runtime/scene2d",
"runtime/shared",
"apps/check",
"apps/workspace",
"apps/ci",
"apps/tools",
"apps/judge",
"apps/solid",
"apps/media",
"apps/targets",
"apps/game",
@@ -250,6 +269,10 @@ bevy_seedling = { path = "vendor/bevy_seedling" }
bevy_text = { path = "vendor/bevy_text" }
# bevy_ui 0.20.0 on Taffy 0.15, Blitz's, so one Taffy builds (changes marked "raea:", docs/bevy-upgrade.md)
bevy_ui = { path = "vendor/bevy_ui" }
# bevy_solari 0.20.0 with alpha-tested and alpha-blended materials traced by their alpha, StandardMaterial's
# uv_transform, and a panorama's sun sampled as a light rather than found by reflection rays alone (changes marked
# "raea:", docs/raytracing.feature RT6). Back to upstream once Solari has these.
bevy_solari = { path = "vendor/bevy_solari" }
# bevy_ui_widgets 0.20.0 on parley 0.12, Blitz's (docs/blitz-bevy.feature B0a)
bevy_ui_widgets = { path = "vendor/bevy_ui_widgets" }
# blitz-paint 0.3.0-beta.4 with angled gradients in tiles laid out around the tile, many-tile gradient layers drawn
@@ -286,9 +309,25 @@ anyrender_svg = { path = "vendor/anyrender_svg" }
# BumpAllocationSizes; changes marked "raea:"): raea-page sizes them for its pages, not Vello's 165 MiB of defaults.
# Back to upstream once #1861 lands.
vello_encoding = { path = "vendor/vello_encoding" }
# vello_shaders 0.11.0 with linear-light blending in the fine stage, switched by vello_encoding's set_blend_linear
# (changes marked "raea:"): raea-page blends a bevy_ui page as Bevy does (bevy_ui on Blitz). No upstream
# equivalent yet (linebender/vello blends the encoded values).
vello_shaders = { path = "vendor/vello_shaders" }
# Firewheel 0.12 on Bevy 0.20: bevy_reflect 0.20 and a glam-33 feature (BillyDM/Firewheel#144; changes marked "raea:")
firewheel = { path = "vendor/firewheel" }
firewheel-core = { path = "vendor/firewheel-core" }
firewheel-graph = { path = "vendor/firewheel-graph" }
firewheel-macros = { path = "vendor/firewheel-macros" }
firewheel-nodes = { path = "vendor/firewheel-nodes" }
[patch."https://github.com/anomalyco/rune"]
# rune-taffy at the rev above with encode_wrap covering taffy's flexbox_balance modes, which Blitz turns on: a crate
# with Rune and Blitz in one build (raea-rune-slots) doesn't compile without it (changes marked "raea:"). Back to
# upstream once Rune has it.
rune-taffy = { path = "vendor/rune-taffy" }
[patch."https://github.com/djeedai/bevy_hanabi"]
# bevy_hanabi at engine/bevy-plugins' rev with frame-pure particles: a new particle seeded by its spawn index, not the
# slot it recycles, and blended effects drawn back to front (changes marked "raea:", raea #52). Only the plugin build
# compiles it. Back to upstream once hanabi has a deterministic mode.
bevy_hanabi = { path = "vendor/bevy_hanabi" }
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+25
View File
@@ -0,0 +1,25 @@
Copyright (c) 2017 Pierre Chifflier
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+25
View File
@@ -0,0 +1,25 @@
Copyright (c) 2017 Pierre Chifflier
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+20
View File
@@ -0,0 +1,20 @@
asn1-rs-impl 0.2.0 ships no licence file of its own. Its Cargo.toml declares MIT/Apache-2.0, by Pierre Chifflier <[email protected]>.
---- Apache-2.0: the text is LICENSES/texts/Apache-2.0.txt ----
---- MIT ----
Copyright (c) Pierre Chifflier <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+1 -1
View File
@@ -199,4 +199,4 @@ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR an agent session OF THIS SOFTWARE.
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+1 -1
View File
@@ -257,7 +257,7 @@ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
an agent session OF THIS SOFTWARE.
PERFORMANCE OF THIS SOFTWARE.
MIT License
-----------
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+25
View File
@@ -0,0 +1,25 @@
Copyright (c) 2017 Pierre Chifflier
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -1,41 +1,4 @@
Copyright (c) 2016 est31 <[email protected]> and contributors
Licensed under MIT or Apache License 2.0,
at your option.
The full list of contributors can be obtained by looking
at the VCS log (originally, this crate was git versioned,
there you can do "git shortlog -sn" for this task).
MIT License
-----------
The MIT License (MIT)
Copyright (c) 2016 est31 <[email protected]> and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Apache License, version 2.0
---------------------------
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@@ -212,3 +175,28 @@ Apache License, version 2.0
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2024 Jacob Pratt et al.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) 2024 Jacob Pratt et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+176
View File
@@ -0,0 +1,176 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
+23
View File
@@ -0,0 +1,23 @@
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+1 -1
View File
@@ -12,5 +12,5 @@ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR an agent session OF
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2020 Andrew Straw
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,25 @@
Copyright (c) 2020 Andrew D. Straw
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2020 Andrew Straw
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,25 @@
Copyright (c) 2020 Andrew D. Straw
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+1 -1
View File
@@ -8,5 +8,5 @@ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR an agent session OF
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
+177
View File
@@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) Jacob Pratt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-36
View File
@@ -1,36 +0,0 @@
NOTE:
The full list of contributors can be obtained by looking
at the VCS log (originally, this crate was git versioned,
there you can do "git shortlog -sn" for this task).
License text
------------
Copyright (c) 2016-2017 est31 <[email protected]> and contributors
Copyright (c) 2002-2015 Xiph.org Foundation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Xiph.org Foundation nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+25
View File
@@ -0,0 +1,25 @@
Copyright (c) 2017 Pierre Chifflier
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Jonathan Creekmore
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+202
View File
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2023 Jacob Pratt et al.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) 2023 Jacob Pratt et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2019-2020 CreepySkeleton <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2026 Anomaly
Copyright (c) 2019-2020 CreepySkeleton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2019-2020 CreepySkeleton <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019-2020 CreepySkeleton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+12
View File
@@ -0,0 +1,12 @@
Copyrights in the Rand project are retained by their contributors. No
copyright assignment is required to contribute to the Rand project.
For full authorship information, see the version control history.
Except as otherwise noted (below and/or in individual files), Rand is
licensed under the Apache License, Version 2.0 <LICENSE-APACHE> or
<http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT> or <http://opensource.org/licenses/MIT>, at your option.
The Rand project includes code from the Rust project
published under these same licenses.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
https://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+26
View File
@@ -0,0 +1,26 @@
Copyright 2018 Developers of the Rand project
Copyright (c) 2014 The Rust Project Developers
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,25 @@
Copyright (c) 2017 Pierre Chifflier
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -11,5 +11,5 @@ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR an agent session OF
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
+1 -1
View File
@@ -11,5 +11,5 @@ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR an agent session OF
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+28
View File
@@ -0,0 +1,28 @@
Copyright (c) 2016-2026 The RustCrypto Project Developers
Copyright (c) 2016 Artyom Pavlov
Copyright (c) 2009-2013 Mozilla Foundation
Copyright (c) 2006-2009 Graydon Hoare
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Mathijs van de Nes
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+23
View File
@@ -0,0 +1,23 @@
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+177
View File
@@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) Jacob Pratt et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+177
View File
@@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) Jacob Pratt et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+177
View File
@@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) Jacob Pratt et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+25
View File
@@ -0,0 +1,25 @@
Copyright (c) 2017 Pierre Chifflier
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
File renamed without changes.
+25
View File
@@ -0,0 +1,25 @@
Copyright (c) 2019-2026 The RustCrypto Project Developers
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+426
View File
@@ -17,3 +17,429 @@ muxide: vendor/muxide, MIT OR Apache-2.0 (its LICENSE-MIT and LICENSE-APACHE).
animato (MIT OR Apache-2.0), usvg and resvg (Apache-2.0 OR MIT), mediabunny (MPL-2.0, used unmodified), manifold-rust
(Apache-2.0), Bevy (MIT OR Apache-2.0) and the other crates and packages in each Cargo.lock and package.json, each under its own licence.
The Windows build (docs/ports.feature PT20) adds: junction 1.4.2 (MIT, node_modules' links in io/npm) and windows-sys
0.61.2 (Microsoft, MIT OR Apache-2.0, in io/trace); every build has dunce 1.0.5 (CC0-1.0 OR MIT-0 OR Apache-2.0, plain
paths for Windows in runtime/bundle). It ships none of Microsoft's C runtime or SDK files: the runtime comes from the
Microsoft Visual C++ Redistributable, installed on the machine.
The native target (engine/rune, docs/targets.feature) builds on Rune (https://github.com/anomalyco/rune, Copyright
2026 Anomaly, MIT; LICENSES/rune-0.0.1/repository-LICENSE): rune, rune-kit and their crates, by a pinned rev.
---- the plugin catalog's crates (tools/licenses.sh; don't edit by hand) ----
The plugin catalog (engine/bevy-plugins, built with tools/bevy-plugins.sh) and the native target's host (engine/rune,
raea-rune-host) bring in these crates beyond raea's own build. Each is under its own licence, its files in
LICENSES/<crate>-<version>/.
accesskit_atspi_common 0.21.1: MIT OR Apache-2.0
accesskit_consumer 0.39.2: MIT OR Apache-2.0
accesskit_macos 0.27.2: MIT OR Apache-2.0
accesskit_unix 0.24.1: MIT OR Apache-2.0
accesskit_windows 0.35.2: MIT OR Apache-2.0
accesskit 0.25.2: MIT OR Apache-2.0
aead 0.5.2: MIT OR Apache-2.0
aeronet_io 0.22.0-rc.1: MIT OR Apache-2.0
aeronet_steam 0.22.0-rc.1: MIT OR Apache-2.0
aeronet_tokio_runtime 0.22.0-rc.1: MIT OR Apache-2.0
aeronet_websocket 0.22.0-rc.1: MIT OR Apache-2.0
aeronet_webtransport 0.22.0-rc.1: MIT OR Apache-2.0
anes 0.1.6: MIT OR Apache-2.0
ansi-parser 0.9.1: MPL-2.0
any_vec 0.15.0: MIT OR Apache-2.0
arbitrary-chunks 0.4.1: Apache-2.0 OR MIT
ariadne 0.6.0: MIT
aseprite-loader 0.4.2: MIT OR Apache-2.0
asn1-rs-derive 0.6.0: MIT OR Apache-2.0
asn1-rs-impl 0.2.0: MIT/Apache-2.0
asn1-rs 0.7.2: MIT OR Apache-2.0
async-process 2.5.0: Apache-2.0 OR MIT
async-recursion 1.2.0: MIT OR Apache-2.0
async-signal 0.2.14: Apache-2.0 OR MIT
atomic-arena 0.1.2: MIT OR Apache-2.0
atomic-polyfill 1.0.3: MIT OR Apache-2.0
atspi-common 0.13.0: Apache-2.0 OR MIT
atspi-proxies 0.13.0: Apache-2.0 OR MIT
atspi 0.29.0: Apache-2.0 OR MIT
atterate 0.0.2: MIT OR Apache-2.0
avian_derive 0.2.3: MIT OR Apache-2.0
avian2d 0.8.0: MIT OR Apache-2.0
avian3d 0.8.0: MIT OR Apache-2.0
aws-lc-rs 1.18.2: ISC AND (Apache-2.0 OR ISC)
aws-lc-sys 0.46.0: ISC AND (Apache-2.0 OR ISC) AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0)
az 1.3.0: MIT/Apache-2.0
basis-universal-sys 0.3.1: MIT OR Apache-2.0
basis-universal 0.3.1: MIT OR Apache-2.0
better-bae-macros 0.1.9: MIT
better-bae 0.1.9: MIT
bevy_aseprite_ultra 0.10.0: MIT
bevy_asset_loader_derive 0.28.1: MIT OR Apache-2.0
bevy_asset_loader 0.28.1: MIT OR Apache-2.0
bevy_common_assets 0.18.0: MIT OR Apache-2.0
bevy_console_derive 0.6.0: MIT
bevy_console 0.19.0: MIT
bevy_easings 0.20.0: MIT OR Apache-2.0
bevy_ecs_ldtk_macros 0.16.0: MIT OR Apache-2.0
bevy_ecs_ldtk 0.16.0: MIT OR Apache-2.0
bevy_ecs_tiled 0.14.0: MIT
bevy_ecs_tilemap 0.20.0: MIT
bevy_egui 0.43.1: MIT
bevy_enhanced_input_macros 0.27.0: MIT OR Apache-2.0
bevy_enhanced_input 0.27.0: MIT OR Apache-2.0
bevy_enoki 0.8.0: MIT
bevy_flair_core_macros 0.9.0: MIT OR Apache-2.0
bevy_flair_core 0.9.0: MIT OR Apache-2.0
bevy_flair_css_parser 0.9.0: MIT OR Apache-2.0
bevy_flair_style 0.9.0: MIT OR Apache-2.0
bevy_flair 0.9.0: MIT OR Apache-2.0
bevy_flipbook 0.1.0: MIT
bevy_ghx_grid 0.10.0: MIT OR Apache-2.0
bevy_ghx_proc_gen 0.10.0: MIT OR Apache-2.0
bevy_heavy 0.6.0: MIT OR Apache-2.0
bevy_http_client 0.12.0: MIT OR Apache-2.0
bevy_hui 0.8.0: MIT OR Apache-2.0
bevy_kira_audio 0.27.1: MIT OR Apache-2.0
bevy_light_2d 0.11.0: MIT
bevy_lookup_curve 0.13.0: MIT OR Apache-2.0
bevy_materialize 0.12.0: MIT OR Apache-2.0
bevy_mod_debugdump 0.17.0: MIT OR Apache-2.0
bevy_northstar 0.8.0: MIT
bevy_obj 0.20.0: MIT OR Apache-2.0
bevy_pancam 0.22.0: MIT OR Apache-2.0
bevy_panorbit_camera 0.36.0: MIT OR Apache-2.0
bevy_prng 0.16.0: MIT OR Apache-2.0
bevy_quinnet 0.22.0: MIT OR Apache-2.0
bevy_rand 0.16.0: MIT OR Apache-2.0
bevy_rapier2d 0.37.0: Apache-2.0
bevy_rapier3d 0.37.0: Apache-2.0
bevy_replicon 0.45.2: MIT OR Apache-2.0
bevy_simple_tilemap 0.21.0: MIT/Apache-2.0
bevy_skein 0.7.0-rc.1: MIT OR Apache-2.0
bevy_smud 0.15.0: MIT OR Apache-2.0
bevy_sprite3d 10.1.0: MIT
bevy_spritesheet_animation 8.0.1: MIT
bevy_time_runner 0.8.0: MIT OR Apache-2.0
bevy_transform_interpolation 0.6.0: MIT OR Apache-2.0
bevy_trauma_shake 0.9.0: MIT OR Apache-2.0
bevy_trenchbroom_macros 0.15.0: MIT OR Apache-2.0
bevy_trenchbroom 0.15.0: MIT OR Apache-2.0
bevy_tween 0.14.1: MIT OR Apache-2.0
bevy_tweening 0.16.0: MIT OR Apache-2.0
bevy_vector_shapes 0.14.0: MIT OR Apache-2.0
bevy_vox_scene 0.23.0: MIT
bevy-inspector-egui-derive 0.38.0: MIT OR Apache-2.0
bevy-inspector-egui 0.38.0: MIT OR Apache-2.0
bevy-settings 0.20.0: MIT OR Apache-2.0
bevy-tnua-avian3d 0.13.0: MIT OR Apache-2.0
bevy-tnua-macros 0.3.0: MIT OR Apache-2.0
bevy-tnua-physics-integration-layer 0.14.0: MIT OR Apache-2.0
bevy-tnua 0.33.0: MIT OR Apache-2.0
bevy-yoleck-macros 0.10.0: MIT OR Apache-2.0
bevy-yoleck 0.34.0: MIT OR Apache-2.0
big_space 0.14.0-rc.0: MIT OR Apache-2.0
bitfield-macros 0.19.5: MIT OR Apache-2.0
bitfield 0.19.5: MIT OR Apache-2.0
block-mesh 0.2.0: MIT OR Apache-2.0
block-pseudorand 0.1.2: Apache-2.0 OR MIT
cast 0.3.0: MIT OR Apache-2.0
chacha20 0.9.1: Apache-2.0 OR MIT
chacha20poly1305 0.10.1: Apache-2.0 OR MIT
chiapos-chacha8 0.1.0: Apache-2.0 OR MIT
ciborium-io 0.2.2: Apache-2.0
ciborium-ll 0.2.2: Apache-2.0
ciborium 0.2.2: Apache-2.0
cipher 0.4.4: MIT OR Apache-2.0
claxon 0.4.3: Apache-2.0
convert_case 0.11.0: MIT
copyless 0.1.5: MIT OR Apache-2.0
criterion-plot 0.5.0: MIT/Apache-2.0
criterion 0.5.1: Apache-2.0 OR MIT
cssparser-color 0.5.0: MPL-2.0
cssparser 0.37.0: MPL-2.0
csv-core 0.1.13: Unlicense/MIT
csv 1.4.0: Unlicense/MIT
ctt-astcenc 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND Apache-2.0
ctt-bc7enc-rdo-prebuilt 0.5.0: (MIT OR Apache-2.0) AND Apache-2.0
ctt-bc7enc-rdo 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND Apache-2.0
ctt-compressonator 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND MIT
ctt-etcpak 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND BSD-3-Clause
ctt-intel-texture-compressor-prebuilt 0.5.0: (MIT OR Apache-2.0) AND MIT
ctt-intel-texture-compressor 0.5.0: (MIT OR Apache-2.0) AND MIT
ctt 0.5.0: MIT OR Apache-2.0 OR Zlib
dashmap 6.2.1: MIT
default-struct-builder 0.5.1: MIT OR Apache-2.0
deluxe-core 0.5.0: MIT
deluxe-macros 0.5.0: MIT
deluxe 0.5.0: MIT
der_derive 0.8.0: Apache-2.0 OR MIT
der-parser 10.0.0: MIT OR Apache-2.0
deranged 0.5.9: MIT OR Apache-2.0
derive-getters 0.5.0: MIT
deterministic-hash 1.0.2: MIT
disjoint-sets 0.4.2: MIT/Apache-2.0
dot_vox 5.2.0: MIT
dyn-clone 1.0.20: MIT OR Apache-2.0
dyn-eq 0.1.3: MPL-2.0
dyn-hash 1.0.0: MIT OR Apache-2.0
earcut 0.4.5: ISC
ecolor 0.36.2: MIT OR Apache-2.0
egui 0.36.2: MIT OR Apache-2.0
ehttp 0.5.0: MIT OR Apache-2.0
emath 0.36.2: MIT OR Apache-2.0
endi 1.1.1: MIT
endian-type 0.1.2: MIT
enumflags2_derive 0.7.12: MIT OR Apache-2.0
enumflags2 0.7.12: MIT OR Apache-2.0
epaint_default_fonts 0.36.2: (MIT OR Apache-2.0) AND OFL-1.1 AND Ubuntu-font-1.0
epaint 0.36.2: MIT OR Apache-2.0
fast_image_resize 6.1.0: MIT OR Apache-2.0
fastbloom 0.17.0: MIT OR Apache-2.0
fastnoise-lite 1.1.1: MIT
fearless_simd 0.4.1: Apache-2.0 OR MIT
fid-rs 0.2.0: MIT OR Apache-2.0
file-id 0.2.3: MIT OR Apache-2.0
fixed 1.31.0: MIT/Apache-2.0
flagset 0.4.7: Apache-2.0
float_next_after 2.0.0: MIT
float-cmp 0.10.0: MIT
float-ord 0.3.2: MIT / Apache-2.0
fs_extra 1.3.0: MIT
fsevent-sys 4.1.0: MIT
futures-timer 3.0.4: MIT/Apache-2.0
fuzzy-matcher 0.3.7: MIT
geo-types 0.7.20: MIT OR Apache-2.0
geo 0.33.1: MIT OR Apache-2.0
geographiclib-rs 0.2.7: MIT
ghx_grid 0.10.0: MIT OR Apache-2.0
ghx_proc_gen 0.10.0: MIT OR Apache-2.0
glam_matrix_extras 0.4.0: MIT OR Apache-2.0
glam 0.19.0: MIT OR Apache-2.0
glifo 0.2.0: Apache-2.0 OR MIT
gloo-timers 0.3.0: MIT OR Apache-2.0
governor 0.10.4: MIT
hash32 0.2.1: MIT OR Apache-2.0
heapless 0.7.17: MIT OR Apache-2.0
heck 0.4.1: MIT OR Apache-2.0
httlib-huffman 0.3.4: MIT
i_float 1.16.0: MIT
i_key_sort 0.10.3: MIT
i_overlay 4.5.2: MIT OR Apache-2.0
i_shape 1.18.0: MIT
i_tree 0.18.0: MIT
iana-time-zone-haiku 0.1.2: MIT OR Apache-2.0
iana-time-zone 0.1.65: MIT OR Apache-2.0
ilattice 0.1.0: MIT OR Apache-2.0
imagesize 0.13.0: MIT
inout 0.1.4: MIT OR Apache-2.0
interpolation 0.3.0: MIT
is-terminal 0.4.17: MIT
ispc-build-utils 0.5.0: MIT OR Apache-2.0 OR Zlib
itertools 0.10.5: MIT/Apache-2.0
iyes_progress 0.18.0: MIT OR Apache-2.0
jzon 0.12.5: MIT/Apache-2.0
kira 0.12.1: MIT OR Apache-2.0
kqueue-sys 1.1.2: MIT
kqueue 1.2.1: MIT
kurbo 0.11.3: Apache-2.0 OR MIT
leafwing_input_manager_macros 0.17.0: MIT OR Apache-2.0
leafwing-input-manager 0.22.0: MIT OR Apache-2.0
lightyear_aeronet 0.31.0: MIT OR Apache-2.0
lightyear_avian2d 0.31.0: MIT OR Apache-2.0
lightyear_avian3d 0.31.0: MIT OR Apache-2.0
lightyear_connection 0.31.0: MIT OR Apache-2.0
lightyear_core 0.31.0: MIT OR Apache-2.0
lightyear_crossbeam 0.31.0: MIT OR Apache-2.0
lightyear_deterministic_replication 0.31.0: MIT OR Apache-2.0
lightyear_frame_interpolation 0.31.0: MIT OR Apache-2.0
lightyear_inputs_bei 0.31.0: MIT OR Apache-2.0
lightyear_inputs_leafwing 0.31.0: MIT OR Apache-2.0
lightyear_inputs_native 0.31.0: MIT OR Apache-2.0
lightyear_inputs 0.31.0: MIT OR Apache-2.0
lightyear_interpolation 0.31.0: MIT OR Apache-2.0
lightyear_link 0.31.0: MIT OR Apache-2.0
lightyear_messages 0.31.0: MIT OR Apache-2.0
lightyear_metrics 0.31.0: MIT OR Apache-2.0
lightyear_netcode 0.31.0: MIT OR Apache-2.0
lightyear_p2p 0.31.0: MIT OR Apache-2.0
lightyear_prediction 0.31.0: MIT OR Apache-2.0
lightyear_raw_connection 0.31.0: MIT OR Apache-2.0
lightyear_replication 0.31.0: MIT OR Apache-2.0
lightyear_serde 0.31.0: MIT OR Apache-2.0
lightyear_steam 0.31.0: MIT OR Apache-2.0
lightyear_sync 0.31.0: MIT OR Apache-2.0
lightyear_tools 0.31.0: MIT OR Apache-2.0
lightyear_transport 0.31.0: MIT OR Apache-2.0
lightyear_udp 0.31.0: MIT OR Apache-2.0
lightyear_utils 0.31.0: MIT OR Apache-2.0
lightyear_web 0.31.0: MIT OR Apache-2.0
lightyear_websocket 0.31.0: MIT OR Apache-2.0
lightyear_webtransport 0.31.0: MIT OR Apache-2.0
lightyear 0.31.0: MIT OR Apache-2.0
linked-hash-map 0.5.6: MIT/Apache-2.0
louds-rs 0.7.0: MIT OR Apache-2.0
lz4_flex 0.13.1: MIT
memoffset 0.9.1: MIT
meshopt 0.6.2: MIT OR Apache-2.0
metis-sys 0.3.2: MIT OR Apache-2.0
metis 0.2.2: MIT OR Apache-2.0
metrics-util 0.20.4: MIT
metrics 0.24.6: MIT
mint 0.5.9: MIT
mock_instant 0.6.1: 0BSD
moonshine-save 0.8.0: MIT
moonshine-util 0.6.0: MIT
nanorand 0.6.1: Zlib
ndarray 0.15.6: MIT OR Apache-2.0
ndcopy 0.3.0: MIT OR Apache-2.0
ndshape 0.3.0: MIT OR Apache-2.0
nibble_vec 0.1.0: MIT
nohash-hasher 0.2.0: Apache-2.0 OR MIT
noise 0.9.0: Apache-2.0/MIT
noisy_bevy 0.15.0: MIT
nonzero_ext 0.3.0: Apache-2.0
notify-debouncer-full 0.7.0: MIT OR Apache-2.0
notify-types 2.1.0: MIT OR Apache-2.0
notify 8.2.0: CC0-1.0
ntapi 0.4.3: Apache-2.0 OR MIT
num-conv 0.2.2: MIT OR Apache-2.0
obvhs 0.4.0: MIT OR Apache-2.0
octets 0.3.7: BSD-2-Clause
oid-registry 0.8.1: MIT OR Apache-2.0
oneshot 0.1.13: MIT OR Apache-2.0
oorandom 11.1.5: MIT
opaque-debug 0.3.1: MIT OR Apache-2.0
opuscule 0.2.2: MPL-2.0
ordered-stream 0.2.0: MIT OR Apache-2.0
owo-colors 4.4.0: MIT
parry2d-f64 0.31.1: Apache-2.0
parry2d 0.31.1: Apache-2.0
parry3d-f64 0.31.1: Apache-2.0
partition 0.1.2: MIT OR Apache-2.0
path-slash 0.2.1: MIT
pem 3.0.6: MIT
pem 4.0.0: MIT
plotters-backend 0.3.7: MIT
plotters-svg 0.3.7: MIT
plotters 0.3.7: MIT
pollster 1.0.1: Apache-2.0/MIT
poly1305 0.8.0: Apache-2.0 OR MIT
polyanya 0.18.0: MIT OR Apache-2.0
postcard-derive 0.2.2: MIT OR Apache-2.0
powerfmt 0.2.1: MIT OR Apache-2.0
proc-macro-crate 1.3.1: MIT OR Apache-2.0
proc-macro-error-attr 1.0.4: MIT OR Apache-2.0
proc-macro-error-attr3 3.1.1: MIT OR Apache-2.0
proc-macro-error 1.0.4: MIT OR Apache-2.0
proc-macro-error3 3.1.1: MIT OR Apache-2.0
quake-map 0.6.1: CC0-1.0 OR MIT OR Apache-2.0
quanta 0.12.6: MIT
quick-xml 0.31.0: MIT
quick-xml 0.38.4: MIT
radix_trie 0.2.1: MIT
rand_chacha 0.3.1: MIT OR Apache-2.0
rand_xorshift 0.3.0: MIT OR Apache-2.0
rand_xoshiro 0.7.0: MIT OR Apache-2.0
rapidhash 4.5.1: MIT OR Apache-2.0
rapier2d 0.36.1: Apache-2.0
rcgen 0.14.10: MIT OR Apache-2.0
rdst 0.20.14: Apache-2.0 OR MIT
rerecast 0.5.0: MIT OR Apache-2.0
resvg 0.45.1: Apache-2.0 OR MIT
ringbuffer 0.16.0: MIT
rmp-serde 1.3.1: MIT
rmp 0.8.15: MIT
rstar 0.12.2: MIT OR Apache-2.0
rtrb 0.3.5: MIT OR Apache-2.0
rune-kit 0.0.1: MIT
rune-motion 0.1.0: MIT
rune-staging 0.0.1: MIT
rune 0.0.1: MIT
rusticata-macros 4.1.0: MIT/Apache-2.0
rustls-native-certs 0.8.5: Apache-2.0 OR ISC OR MIT
rustls-pemfile 2.2.0: Apache-2.0 OR ISC OR MIT
rustls-platform-verifier-android 0.2.0: MIT OR Apache-2.0
rustls-platform-verifier 0.7.1: MIT OR Apache-2.0
seahash 4.1.0: MIT
selectors 0.38.0: MPL-2.0
serde_arrays 0.2.0: MIT OR Apache-2.0
serde_flexitos 0.2.2: Apache-2.0
serde_regex 1.2.0: MIT OR Apache-2.0
serde_repr 0.1.21: MIT OR Apache-2.0
serde_yaml 0.9.34+deprecated: MIT OR Apache-2.0
servo_arc 0.4.3: MIT OR Apache-2.0
sha2 0.11.1: MIT OR Apache-2.0
sif-itree 0.4.1: MIT OR Apache-2.0
sketches-ddsketch 0.3.1: Apache-2.0
smart-default 0.7.1: MIT
spin 0.9.9: MIT
spinning_top 0.3.0: MIT/Apache-2.0
spki 0.8.1: Apache-2.0 OR MIT
steamworks-sys 0.13.0: MIT / Apache-2.0
steamworks 0.13.1: MIT / Apache-2.0
strip-ansi-escapes 0.2.1: Apache-2.0/MIT
strsim 0.10.0: MIT
strum_macros 0.27.2: MIT
strum 0.27.2: MIT
svgtypes 0.15.3: Apache-2.0 OR MIT
symphonia-codec-alac 0.5.5: MPL-2.0
symphonia-format-caf 0.5.5: MPL-2.0
syn 1.0.109: MIT OR Apache-2.0
sysinfo 0.39.6: MIT
tikv-jemalloc-sys 0.5.4+5.3.0-patched: MIT/Apache-2.0
tikv-jemallocator 0.5.4: MIT/Apache-2.0
tiled 0.16.0: MIT
time-core 0.1.9: MIT OR Apache-2.0
time-macros 0.2.32: MIT OR Apache-2.0
time 0.3.55: MIT OR Apache-2.0
tinytemplate 1.2.1: Apache-2.0 OR MIT
tls_codec_derive 0.4.2: Apache-2.0 OR MIT
tls_codec 0.4.2: Apache-2.0 OR MIT
tokio-tungstenite 0.30.0: MIT
toml_datetime 0.6.11: MIT OR Apache-2.0
toml_edit 0.19.15: MIT OR Apache-2.0
trie-rs 0.4.2: MIT OR Apache-2.0
uds_windows 1.2.1: MIT
unicode-general-category 1.1.0: Apache-2.0
universal-hash 0.5.1: MIT OR Apache-2.0
unsafe-libyaml 0.2.11: MIT
urlencoding 2.1.3: MIT
usvg 0.45.1: Apache-2.0 OR MIT
vello_common 0.1.0: Apache-2.0 OR MIT
vello_cpu 0.1.0: Apache-2.0 OR MIT
vleue_navigator 0.17.0: MIT OR Apache-2.0
voracious_radix_sort 1.2.0: MIT
vox_bake 0.1.0: MIT
vte 0.14.1: Apache-2.0 OR MIT
web-sys-async-io 0.6.0: MIT
web-sys-stream-utils 0.2.6: MIT
web-wt-sys 0.3.1: MIT
winnow 0.5.40: MIT
wobj 0.3.1: MIT OR Apache-2.0
wtransport-proto 0.7.2: MIT OR Apache-2.0
wtransport 0.7.2: MIT OR Apache-2.0
wyrand 0.5.0: Apache-2.0 OR MIT
x509-cert 0.3.0: Apache-2.0 OR MIT
x509-parser 0.18.1: MIT OR Apache-2.0
xkbcommon 0.9.0: MIT
xwt-core 0.10.0: MIT
xwt-web 0.22.1: MIT
xwt-wtransport 0.20.1: MIT
xxhash-rust 0.8.19: BSL-1.0
yansi 1.0.1: MIT OR Apache-2.0
yasna 0.6.0: MIT OR Apache-2.0
zbus_macros 5.19.0: MIT
zbus_macros 6.2.1: MIT
zbus_names 4.3.4: MIT
zbus_utils 6.1.0: MIT
zbus_xml 5.2.1: MIT
zbus-lockstep-macros 0.5.2: MIT
zbus-lockstep 0.5.2: MIT
zbus 5.19.0: MIT
zbus 6.2.1: MIT
zcheapstr 1.1.0: MIT
zeroize_derive 1.5.0: Apache-2.0 OR MIT
zruntime 0.2.2: MIT
zstd-safe 7.4.0: BSD-3-Clause
zstd-sys 2.1.2+zstd.1.5.7: BSD-3-Clause
zstd 0.13.4: BSD-3-Clause
zvariant_derive 5.15.0: MIT
zvariant_utils 4.2.0: MIT
zvariant 5.15.0: MIT
---- end of the plugin catalog's crates ----
+8 -4
View File
@@ -94,16 +94,20 @@ floor (`raea check hello.mp4`). `raea init` starts a project, and `raea --help`
## Use it from your agent
- **Agent skills.** [`sdk/skills/raea`](sdk/skills/raea/SKILL.md) teaches an agent to write, render and check raea
compositions; [`sdk/skills/raea-bevy`](sdk/skills/raea-bevy) covers 3D and games. The installer adds both to
`~/.claude/skills`.
- **Agent skills.** They live in [raea-skills](https://github.com/shinyobjectz/raea-skills), pinned here as
[`skills/`](skills): `raea` teaches an agent to write, render and check raea compositions, 3D and games
included. The installer adds it to `~/.claude/skills`, and `raea skills install --agent NAME` to other agents.
- **Claude Code plugin.** `/plugin marketplace add shinyobjectz/raea`, then `/plugin install raea@raea`.
- **Craft guides.** `raea guide` prints the floor every edit is held to and the guides for pitches, explainers, stories,
games, motion, music and layout. `raea context PROJECT` says what to read before working on a project.
## Build from source
Requirements: [Rust](https://rustup.rs) (stable) and [bun](https://bun.sh). On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig and Vulkan libraries.
Requirements: [Rust](https://rustup.rs) (rustup reads the pinned version from rust-toolchain.toml), [bun](https://bun.sh)
and CMake. On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig, udev, xkbcommon (with its X11
part, which the app targets' windows also load at run time) and Vulkan libraries and NASM (Ubuntu: `cmake ninja-build
nasm libasound2-dev libfontconfig1-dev libudev-dev libvulkan-dev libxkbcommon-dev libxkbcommon-x11-dev`), as public CI
installs them.
```sh
git clone https://github.com/shinyobjectz/raea && cd raea
+4
View File
@@ -0,0 +1,4 @@
# Security
Report security problems privately through this repository's Security tab ("Report a vulnerability"), not in public
issues. Fixes go into the latest release and main.
+15
View File
@@ -0,0 +1,15 @@
[package]
name = "raea-app-judge"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea judge: a review's sheets judged by clef-omni on a frozen rubric, the pass decided in code, calibrated against the person's eye before it gates"
[dependencies]
raea-io-home = { path = "../../io/home" }
serde_json = "1"
raea-runtime-bundle = { path = "../../runtime/bundle" }
ureq = { version = "2", features = ["json"] }
base64 = "0.22"
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
+149
View File
@@ -0,0 +1,149 @@
//! A judge that is an agent CLI rather than clef-omni: `raea judge DIR --by kimi|claude` (Shane, 11-06: "use claude or
//! kimi cli as the judge"). Each call is a new session, run in DIR with only the sheets to look at (kimi's media tool;
//! claude with Read alone), given the fresh-context judge prompt (sdk/guides/craft/bevy/prompts.md section 3) and
//! never the code or the builder's notes. It answers JSON: the seven scores 0-10, the blind read and every defect named;
//! the pass, done and stall are still decided in code (rubric::pass, progress). `raea judge eye DIR --by kimi` records
//! its reading as the eye clef is calibrated against.
use std::path::Path;
use serde_json::{Map, Value, json};
use crate::rubric::SCORES;
pub const BY: [&str; 2] = ["kimi", "claude"];
/// The judge prompt: the sheets by name, the brief's words, and the JSON to answer.
pub fn prompt(dir: &Path, brief: &Value, target: Option<&Path>) -> String {
let words = ["look", "logline", "notDoing"].iter().filter_map(|k| brief.get(*k).map(|v| format!("{k}: {}", v.as_str().map(str::to_string).unwrap_or_else(|| v.to_string())))).collect::<Vec<_>>().join("; ");
let target = target.map(|t| format!(" The target picture, what it must read as, is {}.", t.display())).unwrap_or_default();
format!(
"You review a 3D scene from images only, as the person who will use it would. You have never seen how it was built and you never will. \
Judge what is in the pixels; do not guess at intentions. Only look at images; change no file.\n\n\
PART 1, BLIND: open {d}/hero-colour.png first, one frame. In one sentence: what place is this, what time, what era? List five objects you can name. \
Is it a photograph or a render, and which three tells decided it?\n\n\
PART 2, SCORED. The brief: \"{words}\".{target} This round's sheets: {d}/colour.png and {d}/clay.png, each six tiles, left to right, top to bottom: \
hero, front, right, top, iso, low (0.3 m off the floor). Clay is every surface light grey and matte. Open both.\n\n\
Score each 0-10 (5 = a believable draft; 7 = a production base an artist would accept; 9 = indistinguishable from real). Halves are allowed.\n\
- composition: camera, framing, layout, the position and scale of every major object.\n\
- form, judged on CLAY: silhouettes read at a glance; parts have real thickness; nothing blobby, melted or a primitive standing in for a thing; repeated things vary.\n\
- assembly, judged on CLAY first: nothing floats, sinks, pokes through or rests on the wrong thing; joints touch; the low tile shows the feet.\n\
- materials: every surface reads as its real material, with wear where use puts it; nothing a flat default colour.\n\
- light: motivated by the place's own sources; exposure and contrast believable.\n\
- detail: close views hold real geometry or texture, not a smooth stand-in; printed matter reads.\n\
- world: one coherent real place; nothing off-era or invented beyond the brief.\n\n\
Then list the defects, most damaging first: at most 8, each field one short sentence. \"blocking\" means someone using this scene would notice it in the views it will be seen in. \
Name exactly what gives it away (not \"the dryer looks fake\" but \"the dryer door is a flat disc with no rim or glass depth\").\n\n\
End your answer with only this JSON, nothing after it:\n\
{{\"blind\": {{\"place\": \"\", \"objects\": [], \"photo\": \"yes|no\", \"tells\": []}}, \
\"scores\": {{\"composition\": 0, \"form\": 0, \"assembly\": 0, \"materials\": 0, \"light\": 0, \"detail\": 0, \"world\": 0}}, \
\"defects\": [{{\"tile\": \"\", \"where\": \"\", \"wrong\": \"\", \"real\": \"\", \"fix\": \"\", \"level\": \"blocking|detail\"}}], \
\"show_as_is\": \"\"}}",
d = dir.display()
)
}
/// The last JSON object in the text that has scores (an agent may think aloud, or draft the JSON twice).
pub fn last_verdict(text: &str) -> Option<Value> {
let starts: Vec<usize> = text.match_indices('{').map(|(i, _)| i).collect();
for &s in starts.iter().rev() {
let mut de = serde_json::Deserializer::from_str(&text[s..]).into_iter::<Value>();
if let Some(Ok(v)) = de.next()
&& v.get("scores").is_some_and(Value::is_object)
{
return Some(v);
}
}
None
}
/// The verdict read into the judge's own shape: scores (0-10, the seven categories), defects (present, level, named
/// by what is wrong), the blind read's photo (1 a photo, 0 a render) and the agent's own words.
pub fn read(v: &Value) -> (Map<String, Value>, Vec<Value>, Value) {
let mut scores = Map::new();
for (k, _, _) in SCORES {
if let Some(x) = v["scores"][k].as_f64().filter(|x| (0.0..=10.0).contains(x)) {
scores.insert(k.into(), json!(x));
}
}
let defects = v["defects"].as_array().into_iter().flatten().filter(|d| d["wrong"].as_str().is_some_and(|w| !w.trim().is_empty())).map(|d| {
let level = if d["level"].as_str().unwrap_or("").starts_with("block") { "blocking" } else { "detail" };
let wrong = d["wrong"].as_str().unwrap_or("");
json!({"defect": wrong.chars().take(80).collect::<String>(), "present": true, "level": level, "sheet": d["tile"], "asked": wrong,
"where": d["where"], "real": d["real"], "fix": d["fix"]})
}).collect();
let photo = match v["blind"]["photo"].as_str() {
Some(p) if p.starts_with('y') => json!(1.0),
Some(p) if p.starts_with('n') => json!(0.0),
_ => Value::Null,
};
(scores, defects, photo)
}
/// One fresh judging session by `by` over DIR's sheets: its verdict JSON. Its steps stream (kimi's stream-json), each
/// said on stderr as it comes, so a watcher sees it working through a judgement that can take minutes.
pub fn ask(by: &str, dir: &Path, brief: &Value, target: Option<&Path>) -> Result<Value, String> {
use std::io::BufRead as _;
let dir = dir.canonicalize().map_err(|e| format!("judge: {}: {e}", dir.display()))?;
let p = prompt(&dir, brief, target);
let mut cmd = match by {
"kimi" => {
let mut c = std::process::Command::new("kimi");
c.args(["-p", &p, "--output-format", "stream-json"]);
c
}
"claude" => {
let mut c = std::process::Command::new("claude");
c.args(["-p", &p, "--allowedTools", "Read", "--output-format", "stream-json", "--verbose"]);
c
}
o => return Err(format!("judge: --by {o}: the judges are clef (the default), {}", BY.join(", "))),
};
let mut child = cmd.current_dir(&dir).stdout(std::process::Stdio::piped()).stderr(std::process::Stdio::piped()).spawn()
.map_err(|e| format!("judge: couldn't run {by}: {e} (is the {by} CLI installed and signed in?)"))?;
let mut said = Vec::new();
let mut last = String::new();
for line in std::io::BufReader::new(child.stdout.take().ok_or("judge: no output pipe")?).lines().map_while(Result::ok) {
let Ok(v) = serde_json::from_str::<Value>(&line) else { continue };
said.extend(texts(&v));
let step = match (v["role"].as_str(), v["type"].as_str()) {
(Some("tool") | Some("user"), _) => "looked at a picture".to_string(),
(Some("assistant"), _) | (_, Some("assistant")) => texts(&v).last().map_or_else(|| "thinking".into(), |t| t[..t.floor_char_boundary(100)].to_string()),
_ => continue,
};
if step != last {
eprintln!("judge ({by}): {}", step.replace('\n', " "));
last = step;
}
}
let out = child.wait_with_output().map_err(|e| format!("judge: {by}: {e}"))?;
let text = said.join("\n");
if !out.status.success() && last_verdict(&text).is_none() {
return Err(format!("judge: {by} failed: {}", String::from_utf8_lossy(&out.stderr).lines().rev().find(|l| !l.trim().is_empty()).unwrap_or("no output")));
}
last_verdict(&text).ok_or_else(|| format!("judge: {by} answered no verdict JSON: {}", text.trim().chars().rev().take(300).collect::<String>().chars().rev().collect::<String>()))
}
/// The words in one streamed line: kimi's {role: assistant, content: "..."}; claude's {type: assistant, message:
/// {content: [{type: text, text}]}} and its final {type: result, result}.
fn texts(v: &Value) -> Vec<String> {
let mut out = Vec::new();
if v["role"] == "assistant"
&& let Some(s) = v["content"].as_str()
{
out.push(s.to_string());
}
for c in v["message"]["content"].as_array().into_iter().flatten() {
if c["type"] == "text"
&& let Some(s) = c["text"].as_str()
{
out.push(s.to_string());
}
}
if v["type"] == "result"
&& let Some(s) = v["result"].as_str()
{
out.push(s.to_string());
}
out
}
+37
View File
@@ -0,0 +1,37 @@
//! One clef-omni call on Workers AI (as apps/app/host/critique.ts makes it): the state paragraph, the questions by id,
//! the images as data URLs (each made a JPEG at most 1600 px wide first). Keys: CLOUDFLARE_ACCOUNT_ID and
//! CLOUDFLARE_API_TOKEN from raea's settings (the environment, then ~/.raea/env).
use std::path::PathBuf;
use base64::Engine as _;
use serde_json::{Value, json};
fn jpeg(p: &PathBuf) -> Result<String, String> {
let img = image::open(p).map_err(|e| format!("{}: {e}", p.display()))?;
let img = if img.width() > 1600 { img.resize(1600, u32::MAX, image::imageops::FilterType::Triangle) } else { img };
let mut buf = std::io::Cursor::new(Vec::new());
img.to_rgb8().write_to(&mut buf, image::ImageFormat::Jpeg).map_err(|e| e.to_string())?;
Ok(format!("data:image/jpeg;base64,{}", base64::engine::general_purpose::STANDARD.encode(buf.into_inner())))
}
/// The answers by question id, and the call's cost in dollars ($0.15 a million input tokens).
pub fn ask(state: &str, questions: &Value, images: &[PathBuf]) -> Result<(Value, f64), String> {
let (Some(acct), Some(token)) = (raea_io_home::setting("CLOUDFLARE_ACCOUNT_ID"), raea_io_home::setting("CLOUDFLARE_API_TOKEN")) else {
return Err("judge: clef-omni on Workers AI needs CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN (the environment or ~/.raea/env)".into());
};
let imgs: Vec<String> = images.iter().map(jpeg).collect::<Result<_, _>>()?;
let body = json!({"state": state, "questions": questions, "images": imgs});
let url = format!("https://api.cloudflare.com/client/v4/accounts/{acct}/ai/run/@cf/cloudflare/clef-omni");
let res = ureq::post(&url).set("authorization", &format!("Bearer {token}")).timeout(std::time::Duration::from_secs(180)).send_json(body);
let j: Value = match res {
Ok(r) => r.into_json().map_err(|e| format!("clef: {e}"))?,
Err(ureq::Error::Status(code, r)) => return Err(format!("clef: HTTP {code}: {}", r.into_string().unwrap_or_default().chars().take(300).collect::<String>())),
Err(e) => return Err(format!("clef: {e}")),
};
if j["success"] != true {
return Err(format!("clef: {}", j["errors"].to_string().chars().take(300).collect::<String>()));
}
let cost = j["result"]["usage"]["input_tokens"].as_f64().unwrap_or(0.0) * 0.15 / 1e6;
Ok((j["result"]["answers"].clone(), cost))
}
+150
View File
@@ -0,0 +1,150 @@
//! Shane's eye, the judge's calibration. `raea judge eye DIR form=5 light=7 ... [--pass yes|no]` records his scores for a
//! round the judge has already judged (DIR/judge.json), with the judge's raw scores beside them, in
//! ~/.raea/judge/eye.jsonl. `raea judge calibrate` fits, per category, a line from the judge's score to his
//! (least squares), and says how often the mapped judge's pass agrees with his. The judge gates only once it has 10
//! rounds or more, some passed by the eye and some not, and agrees on 8 in 10 or better; until then `gating` is false and its verdict is advice
//! (clef has rated almost everything acceptable: docs/craft-system.md). `raea judge eye DIR --by kimi|claude` records a
//! fresh agent session's reading instead (Shane, 11-06), each row saying whose eye it is.
use std::path::PathBuf;
use serde_json::{Map, Value, json};
use crate::rubric::{SCORES, pass};
fn home() -> PathBuf {
raea_io_home::env_path("RAEA_JUDGE_DIR", ".raea/judge")
}
/// The calibration in force, if one was made.
pub fn calibration() -> Option<Value> {
serde_json::from_str(&std::fs::read_to_string(home().join("calibration.json")).ok()?).ok()
}
/// The judge's scores mapped through the calibration's lines, kept to 0-10.
pub fn apply(c: &Value, scores: &mut Map<String, Value>) {
for (k, v) in scores.iter_mut() {
if let (Some(x), Some(a), Some(b)) = (v.as_f64(), c["maps"][k]["a"].as_f64(), c["maps"][k]["b"].as_f64()) {
*v = json!(((a * x + b).clamp(0.0, 10.0) * 100.0).round() / 100.0);
}
}
}
pub fn record(args: &[String]) -> Result<String, String> {
let dir = args.get(2).map(PathBuf::from).ok_or("raea judge eye DIR CATEGORY=SCORE... [--pass yes|no]")?;
let verdict: Value = serde_json::from_str(&std::fs::read_to_string(dir.join("judge.json")).map_err(|_| format!("judge eye: no {}: judge the round first (raea judge {})", dir.join("judge.json").display(), dir.display()))?).map_err(|e| e.to_string())?;
// an agent's reading as the eye (`--by kimi`): a fresh session's scores, and its pass by the same rule in code
if let Some(by) = args.iter().position(|a| a == "--by").and_then(|i| args.get(i + 1)) {
let v = crate::agent::ask(by, &dir, &json!({}), None)?;
let (eye, defects, _) = crate::agent::read(&v);
if eye.len() < SCORES.len() {
return Err(format!("judge eye: {by} scored only {} of {} categories", eye.len(), SCORES.len()));
}
let eye_pass = pass(&eye, &defects).0;
let row = json!({"dir": verdict["dir"], "by": by, "judge": verdict["raw"], "judge_pass": verdict["pass"], "defects": verdict["defects"], "eye": eye, "eye_pass": eye_pass, "eye_defects": defects});
append(&row)?;
let shown: Vec<String> = eye.iter().map(|(k, v)| format!("{k} {v}")).collect();
return Ok(format!("APPLIED {by}'s eye on {} recorded ({}): {}; raea judge calibrate fits clef to it", dir.display(), if eye_pass { "a pass" } else { "not yet" }, shown.join(", ")));
}
let mut eye = Map::new();
let mut said_pass = None;
let mut i = 3;
while i < args.len() {
if args[i] == "--pass" {
said_pass = Some(matches!(args.get(i + 1).map(String::as_str), Some("yes" | "true" | "y")));
i += 2;
continue;
}
let (k, v) = args[i].split_once('=').ok_or_else(|| format!("judge eye: {:?} isn't CATEGORY=SCORE", args[i]))?;
if !SCORES.iter().any(|s| s.0 == k) {
return Err(format!("judge eye: no category {k}: {}", SCORES.iter().map(|s| s.0).collect::<Vec<_>>().join(", ")));
}
let x: f64 = v.parse().ok().filter(|x| (0.0..=10.0).contains(x)).ok_or_else(|| format!("judge eye: {k} is a score 0-10, got {v:?}"))?;
eye.insert(k.into(), json!(x));
i += 1;
}
if eye.is_empty() {
return Err("judge eye: give your scores, e.g. composition=6 form=5 assembly=7 materials=4 light=6 detail=5 world=6".into());
}
// his pass: as he says it, else the same rule on his scores with the judge's defects
let eye_pass = said_pass.unwrap_or_else(|| pass(&eye, verdict["defects"].as_array().map(Vec::as_slice).unwrap_or(&[])).0);
let row = json!({"dir": verdict["dir"], "by": "shane", "judge": verdict["raw"], "judge_pass": verdict["pass"], "defects": verdict["defects"], "eye": eye, "eye_pass": eye_pass});
append(&row)?;
Ok(format!("APPLIED your eye on {} recorded ({}): raea judge calibrate fits the judge to it", dir.display(), if eye_pass { "a pass" } else { "not yet" }))
}
/// One eye row onto ~/.raea/judge/eye.jsonl; a newer reading of the same round by the same eye replaces the older.
fn append(row: &Value) -> Result<(), String> {
std::fs::create_dir_all(home()).map_err(|e| e.to_string())?;
let path = home().join("eye.jsonl");
let mut rows: Vec<Value> = std::fs::read_to_string(&path).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).filter(|r: &Value| !(r["dir"] == row["dir"] && whose(r) == whose(&row))).collect();
rows.push(row.clone());
std::fs::write(&path, rows.iter().map(Value::to_string).collect::<Vec<_>>().join("\n") + "\n").map_err(|e| e.to_string())
}
/// Least squares y = a x + b; flat x (one value) maps by the mean offset.
fn fit(xy: &[(f64, f64)]) -> (f64, f64) {
let n = xy.len() as f64;
let (mx, my) = (xy.iter().map(|p| p.0).sum::<f64>() / n, xy.iter().map(|p| p.1).sum::<f64>() / n);
let sxx: f64 = xy.iter().map(|p| (p.0 - mx).powi(2)).sum();
if sxx < 1e-9 {
return (1.0, my - mx);
}
let a = xy.iter().map(|p| (p.0 - mx) * (p.1 - my)).sum::<f64>() / sxx;
(a, my - a * mx)
}
/// The fit over rows of {judge, eye, defects, eye_pass}: per-category maps and errors, and the pass agreement.
pub fn fit_rows(rows: &[Value]) -> Value {
let mut maps = Map::new();
for (k, _, _) in SCORES {
let xy: Vec<(f64, f64)> = rows.iter().filter_map(|r| Some((r["judge"][k].as_f64()?, r["eye"][k].as_f64()?))).collect();
if xy.len() < 2 {
continue;
}
let (a, b) = fit(&xy);
let mae = |f: &dyn Fn(f64) -> f64| xy.iter().map(|(x, y)| (f(*x) - y).abs()).sum::<f64>() / xy.len() as f64;
let r2 = |x: f64| (x * 1000.0).round() / 1000.0;
maps.insert(k.into(), json!({"a": r2(a), "b": r2(b), "n": xy.len(), "maeRaw": r2(mae(&|x| x)), "maeMapped": r2(mae(&|x| (a * x + b).clamp(0.0, 10.0)))}));
}
let cal = json!({"maps": maps});
let mut agree = 0;
for r in rows {
let mut s = r["judge"].as_object().cloned().unwrap_or_default();
apply(&cal, &mut s);
let p = pass(&s, r["defects"].as_array().map(Vec::as_slice).unwrap_or(&[])).0;
if Value::Bool(p) == r["eye_pass"] {
agree += 1;
}
}
let n = rows.len();
let agreement = if n == 0 { 0.0 } else { agree as f64 / n as f64 };
// agreement means something only when the eye passed some rounds and failed others: all fails agree trivially
let passes = rows.iter().filter(|r| r["eye_pass"] == true).count();
let both = passes > 0 && passes < n;
json!({"maps": maps, "rounds": n, "eyePasses": passes, "agreement": (agreement * 1000.0).round() / 1000.0, "gate": n >= 10 && agreement >= 0.8 && both})
}
pub fn calibrate(args: &[String]) -> Result<String, String> {
let rows: Vec<Value> = std::fs::read_to_string(home().join("eye.jsonl")).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).collect();
if rows.is_empty() {
return Err("judge calibrate: no rounds with your eye yet (raea judge eye DIR form=5 ...)".into());
}
let mut cal = fit_rows(&rows);
let mut eyes: Vec<String> = rows.iter().map(whose).map(str::to_string).collect();
eyes.sort();
eyes.dedup();
cal["eyes"] = json!(eyes);
std::fs::write(home().join("calibration.json"), serde_json::to_string_pretty(&cal).unwrap_or_default()).map_err(|e| e.to_string())?;
if args.iter().any(|a| a == "--json") {
return Ok(serde_json::to_string_pretty(&cal).unwrap_or_default());
}
let mut t: Vec<String> = cal["maps"].as_object().into_iter().flatten().map(|(k, m)| format!("{k:<12} eye = {} x judge {:+} (off by {} raw, {} mapped, {} rounds)", m["a"], m["b"], m["maeRaw"], m["maeMapped"], m["n"])).collect();
t.push(format!("agreement on the pass: {} over {} rounds (eyes: {}); {}", cal["agreement"], cal["rounds"], eyes.join(", "), if cal["gate"] == true { "the judge gates now".to_string() } else if cal["rounds"].as_u64() >= Some(10) && cal["agreement"].as_f64() >= Some(0.8) { format!("advice only: the eye passed {} of {} rounds, and agreement means something only with passes and fails both (judge a scene that is good)", cal["eyePasses"], cal["rounds"]) } else { "advice only until 10 rounds agree 8 in 10, with passes and fails both".to_string() }));
Ok(t.join("\n"))
}
/// Whose eye a row records: Shane's when it doesn't say.
fn whose(r: &Value) -> &str {
r["by"].as_str().unwrap_or("shane")
}
+171
View File
@@ -0,0 +1,171 @@
//! `raea judge`: a review's sheets (`raea render --review DIR`) judged by clef-omni on the frozen rubric (rubric.rs),
//! fresh every round and blind to the code, with the pass decided here in code. Until it is calibrated against Shane's
//! eye (`raea judge eye`, `raea judge calibrate`, eye.rs) its verdict is advice: `gating` says which.
//!
//! raea judge DIR [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry]
//! raea judge eye DIR composition=6 form=5 ... [--pass yes|no] (or --by kimi: an agent's reading as the eye)
//! raea judge calibrate [--json]
//!
//! DIR/judge.json is the verdict; DIR's parent's judge.log.jsonl holds every round's, so "done" (two passes in a row,
//! each a fresh call) and the stall (the mean up by less than a point over two rounds) are read from it.
mod agent;
mod clef;
mod eye;
pub mod rubric;
pub use agent::BY;
use std::path::{Path, PathBuf};
use raea_runtime_bundle::flag;
use serde_json::{Value, json};
pub const USAGE: &str = "raea judge DIR [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry] | judge eye DIR (CATEGORY=SCORE ... [--pass yes|no] | --by kimi|claude) | judge calibrate [--json] (a --review folder's sheets judged blind: clef-omni on the frozen rubric, or a fresh kimi or claude session on the judge prompt; the pass decided in code; clef advises until calibrated against your eye or an agent's)";
/// The brief's words, from `raea spec brief.ts --as brief` (look, logline, notDoing), or nothing.
fn brief_of(path: Option<&str>) -> Result<Value, String> {
let Some(p) = path else { return Ok(json!({})) };
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let out = std::process::Command::new(exe).args(["spec", p, "--as", "brief"]).output().map_err(|e| e.to_string())?;
let text = String::from_utf8_lossy(&out.stdout);
let start = text.find('{').ok_or_else(|| format!("judge: {p} didn't read as a brief: {}", String::from_utf8_lossy(&out.stderr).lines().last().unwrap_or("")))?;
let v: Value = serde_json::from_str(&text[start..]).map_err(|e| format!("judge: {p}: {e}"))?;
Ok(v.get("brief").cloned().unwrap_or(v))
}
/// The rounds judged so far beside this one (DIR's parent's judge.log.jsonl).
fn log_of(dir: &Path) -> PathBuf {
dir.parent().unwrap_or(dir).join("judge.log.jsonl")
}
/// Done and stall, from the log's rounds (oldest first), in code.
pub fn progress(rounds: &[Value]) -> Value {
let passes = rounds.iter().rev().take_while(|r| r["pass"] == true).count();
let means: Vec<f64> = rounds.iter().filter_map(|r| r["mean"].as_f64()).collect();
let stall = means.len() >= 3 && {
let best_before = means[..means.len() - 2].iter().cloned().fold(f64::MIN, f64::max);
let best_now = means[means.len() - 2..].iter().cloned().fold(f64::MIN, f64::max);
best_now - best_before < 1.0
};
// the same blocking defect present in the last two rounds
let named = |r: &Value| -> Vec<String> { rubric::blocking(r["defects"].as_array().map(Vec::as_slice).unwrap_or_default()).into_iter().map(str::to_string).collect() };
let again: Vec<String> = match rounds {
[.., a, b] => named(a).into_iter().filter(|d| named(b).contains(d)).collect(),
_ => Vec::new(),
};
json!({"rounds": rounds.len(), "passesInARow": passes, "done": passes >= 2, "stall": stall || !again.is_empty(), "again": again})
}
pub fn cli(args: &[String]) -> Result<String, String> {
match args.get(1).map(String::as_str) {
Some("eye") => return eye::record(args),
Some("calibrate") => return eye::calibrate(args),
Some(_) => {}
None => return Err(USAGE.into()),
}
let dir = PathBuf::from(&args[1]);
let (colour, clay, hero) = (dir.join("colour.png"), dir.join("clay.png"), dir.join("hero-colour.png"));
for f in [&colour, &clay] {
if !f.is_file() {
return Err(format!("judge: no {} (make the sheets with raea render EDIT.tsx --review {})", f.display(), dir.display()));
}
}
let brief = brief_of(flag(args, "--brief").as_deref())?;
let target = flag(args, "--target").map(PathBuf::from);
let dry = args.iter().any(|a| a == "--dry");
let by = flag(args, "--by").unwrap_or_else(|| "clef".into());
if by != "clef" {
if dry {
return Ok(agent::prompt(&dir, &brief, target.as_deref()));
}
let v = agent::ask(&by, &dir, &brief, target.as_deref())?;
let (scores, defects, photo) = agent::read(&v);
return finish(args, &dir, scores.clone(), scores, defects, photo, 0.0, &by, false, json!({"blind": v["blind"], "show_as_is": v["show_as_is"]}));
}
let mut calls = Vec::new();
for (sheet, img) in [("colour", &colour), ("clay", &clay)] {
let mut images = vec![img.clone()];
if sheet == "colour" {
images.extend(target.clone());
}
calls.push((sheet, rubric::state(sheet, &brief), rubric::questions(sheet), images));
}
if hero.is_file() {
calls.push(("blind", "One frame. Judge only what is in the pixels.".into(), rubric::blind(), vec![hero.clone()]));
}
if dry {
let shown: Vec<Value> = calls.iter().map(|(s, st, q, im)| json!({"sheet": s, "state": st, "questions": q, "images": im.iter().map(|p| p.display().to_string()).collect::<Vec<_>>()})).collect();
return Ok(serde_json::to_string_pretty(&json!({"would_ask": shown})).unwrap_or_default());
}
let mut scores = serde_json::Map::new();
let mut defects = Vec::new();
let mut photo = Value::Null;
let mut cost = 0.0;
for (sheet, st, q, images) in &calls {
let (answers, c) = clef::ask(st, q, images)?;
cost += c;
if *sheet == "blind" {
photo = json!(answers["photo"]["noul"].as_f64().map(|p| (p * 1000.0).round() / 1000.0));
continue;
}
let (s, d) = rubric::read(&answers);
scores.extend(s);
defects.extend(d.into_iter().map(|mut x| {
x["sheet"] = json!(sheet);
x
}));
}
let raw = scores.clone();
let cal = eye::calibration();
if let Some(c) = &cal {
eye::apply(c, &mut scores);
}
let gating = cal.as_ref().is_some_and(|c| c["gate"] == true);
finish(args, &dir, scores, raw, defects, photo, cost, "clef", !gating, json!({"calibrated": cal.is_some()}))
}
/// The verdict decided in code, written (DIR/judge.json for clef, DIR/judge.BY.json for an agent; every round in the
/// log), and said. `advice` marks a judge not yet trusted to gate (clef before calibration).
#[allow(clippy::too_many_arguments)]
fn finish(args: &[String], dir: &Path, scores: serde_json::Map<String, Value>, raw: serde_json::Map<String, Value>, defects: Vec<Value>, photo: Value, cost: f64, by: &str, advice: bool, extra: Value) -> Result<String, String> {
let (pass, why) = rubric::pass(&scores, &defects);
let vals: Vec<f64> = scores.values().filter_map(Value::as_f64).collect();
let mean = if vals.is_empty() { 0.0 } else { (vals.iter().sum::<f64>() / vals.len() as f64 * 100.0).round() / 100.0 };
let model = if by == "clef" { "@cf/cloudflare/clef-omni".to_string() } else { format!("{by} cli") };
let mut verdict = json!({"dir": dir.display().to_string(), "by": by, "scores": scores, "raw": raw, "mean": mean, "defects": defects, "photo": photo,
"pass": pass, "why": why, "gating": !advice, "cost": cost, "model": model});
if let (Some(v), Some(e)) = (verdict.as_object_mut(), extra.as_object()) {
v.extend(e.clone());
}
let log = log_of(dir);
let mut rounds: Vec<Value> = std::fs::read_to_string(&log).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).filter(|r: &Value| r["dir"] != verdict["dir"]).collect();
rounds.push(verdict.clone());
verdict["progress"] = progress(&rounds);
let file = if by == "clef" { "judge.json".to_string() } else { format!("judge.{by}.json") };
std::fs::write(dir.join(file), serde_json::to_string_pretty(&verdict).unwrap_or_default()).map_err(|e| e.to_string())?;
let lines: Vec<String> = rounds.iter().map(|r| serde_json::to_string(&json!({"dir": r["dir"], "pass": r["pass"], "mean": r["mean"], "defects": r["defects"]})).unwrap_or_default()).collect();
std::fs::write(&log, lines.join("\n") + "\n").map_err(|e| e.to_string())?;
if cost > 0.0 {
let _ = std::process::Command::new("antsy").args(["spend", &format!("{cost:.6}"), "raea judge (clef-omni)"]).output();
}
if args.iter().any(|a| a == "--json") {
return Ok(serde_json::to_string_pretty(&verdict).unwrap_or_default());
}
let who = if by == "clef" { String::new() } else { format!("({by}) ") };
let mut t = vec![format!("{} {who}{}{}", if pass { "PASS" } else { "NOT YET" }, if advice { "(advice: the judge isn't calibrated against your eye yet) " } else { "" }, why.join("; "))];
t.push(format!("scores: {}", scores.iter().map(|(k, v)| format!("{k} {v}")).collect::<Vec<_>>().join(", ")));
for d in verdict["defects"].as_array().into_iter().flatten().filter(|d| d["present"] == true) {
if by == "clef" {
t.push(format!(" {:<8} {} (p {}, {} sheet): {}", d["level"].as_str().unwrap_or(""), d["defect"].as_str().unwrap_or(""), d["p"], d["sheet"].as_str().unwrap_or(""), d["asked"].as_str().unwrap_or("")));
} else {
t.push(format!(" {:<8} {} tile: {} (fix: {})", d["level"].as_str().unwrap_or(""), d["sheet"].as_str().unwrap_or(""), d["asked"].as_str().unwrap_or(""), d["fix"].as_str().unwrap_or("")));
}
}
let p = &verdict["progress"];
t.push(format!("round {}: {} passes in a row{}{}; ${cost:.4}", p["rounds"], p["passesInARow"], if p["done"] == true { ", done" } else { "" }, if p["stall"] == true { ", stalled: change the approach for the part, not the dose" } else { "" }));
Ok(t.join("\n"))
}
#[cfg(test)]
mod tests;
+133
View File
@@ -0,0 +1,133 @@
//! The frozen rubric (the 11-06 prompt pack, section 3, in clef-omni's native question types): a 0-10 score per category
//! as an ordered six-level rubric, and every named defect as a yes/no question, so a defect is a probability rather
//! than prose. clef-omni answers questions, not essays; the defects it can name are the ones asked. Nothing here says
//! where the pass line is (the loop decides, in code: `pass`).
use serde_json::{Value, json};
/// The six levels each category is scored on, lowest first (clef's `score`: the probability-weighted level), read as
/// 0, 2, 4, 6, 8, 10.
fn levels(what: &str) -> Value {
json!([
format!("0: no {what} to speak of; broken or missing"),
format!("2: {what} is crude: primitives and placeholders"),
format!("4: {what} is a rough draft, plainly unfinished"),
format!("6: {what} is a believable draft"),
format!("8: {what} is a production base an artist would accept"),
format!("10: {what} is indistinguishable from the real thing"),
])
}
/// (id, the sheet it is judged on, the question)
pub const SCORES: [(&str, &str, &str); 7] = [
("composition", "colour", "Composition: the camera, framing and layout; every major object's position and scale against the brief's space."),
("form", "clay", "Form, judged on these grey clay tiles: silhouettes read at a glance, parts have real thickness, nothing blobby or melted, no primitive standing in for a thing, repeated things vary."),
("assembly", "clay", "Assembly, judged on these grey clay tiles: nothing floats, sinks, pokes through or rests on the wrong thing; joints touch; the low tile shows the feet resting."),
("materials", "colour", "Materials: every surface reads as its real material with wear where use puts it; nothing a flat default colour; glass is glass."),
("light", "colour", "Light: motivated by the place's own sources; exposure and contrast believable; no surface implausibly dark or bright."),
("detail", "colour", "Detail: close surfaces hold real geometry or texture at that distance, not smooth stand-ins; printed matter reads."),
("world", "colour", "World: one coherent real place matching the brief; nothing off-era, no real brands, nothing invented beyond the brief."),
];
/// (id, sheet, the yes/no question, blocking when yes)
pub const DEFECTS: [(&str, &str, &str, bool); 12] = [
("floating", "clay", "Does any object float above the surface it should rest on, with a visible gap under it?", true),
("intersecting", "clay", "Does any object pass through another object, a wall or the floor?", true),
("blobby", "clay", "Is any object a blobby, melted or lumpy shape where the real thing has crisp form?", true),
("stand_in", "clay", "Is any object just a plain box, ball or cylinder standing in for a more detailed real thing?", true),
("clones", "clay", "Are several copies of one thing identical and evenly spaced in an obviously artificial way?", false),
("flat_colour", "colour", "Is any large surface a flat, uniform default colour with no texture, variation or wear?", true),
("plastic", "colour", "Do the surfaces look like shiny uniform plastic or CG rather than their real materials?", true),
("garbled_text", "colour", "Is any visible text garbled, tiled or unreadable where it should read?", false),
("too_dark", "colour", "Is the scene so dark that important objects are hard to see?", true),
("too_bright", "colour", "Is the scene washed out, with large areas blown to white?", true),
("brands", "colour", "Is a real brand name or logo visible?", true),
("not_doing", "colour", "Does the scene show anything the brief says it must not contain?", true),
];
/// The paragraph clef reads before the sheet: what it is looking at, and the brief's words (no code, no log, no line).
pub fn state(sheet: &str, brief: &Value) -> String {
let look = brief["look"].as_str().unwrap_or("");
let logline = brief["logline"].as_str().unwrap_or("");
let not: Vec<&str> = brief["notDoing"].as_array().into_iter().flatten().filter_map(Value::as_str).collect();
let tiles = "six tiles of one 3D scene, left to right and top to bottom: hero (the shot's own camera), front, right, top, iso, and low (a camera 0.3 m off the floor)";
let what = if sheet == "clay" { format!("The image is {tiles}, rendered in clay: every surface plain grey, so only form and assembly show.") } else { format!("The image is {tiles}, in full colour.") };
let target = if sheet == "colour" { " A second image, when given, is the target picture the scene should read as." } else { "" };
let mut s = format!("{what}{target} Judge only what is in the pixels, as the person who will use the scene would.");
if !logline.is_empty() || !look.is_empty() {
s.push_str(&format!(" The brief: {logline} Look: {look}."));
}
if !not.is_empty() {
s.push_str(&format!(" The scene must not contain: {}.", not.join("; ")));
}
s
}
/// The questions for one sheet, by id.
pub fn questions(sheet: &str) -> Value {
let mut q = serde_json::Map::new();
for (id, on, ask) in SCORES {
if on == sheet {
q.insert(format!("score_{id}"), json!({"type": "score", "instructions": ask, "criteria": levels(id)}));
}
}
for (id, on, ask, _) in DEFECTS {
if on == sheet {
q.insert(format!("defect_{id}"), json!({"type": "noul", "instructions": ask}));
}
}
Value::Object(q)
}
/// The blind read on the hero tile alone: is this a photograph (reported, never gated, until calibrated).
pub fn blind() -> Value {
json!({"photo": {"type": "noul", "instructions": "Is this a photograph of a real place, rather than a computer render?"}})
}
/// clef's answers read into scores (0-10) and defects (probability of yes, blocking ones flagged).
pub fn read(answers: &Value) -> (serde_json::Map<String, Value>, Vec<Value>) {
let mut scores = serde_json::Map::new();
let mut defects = Vec::new();
for (id, _, _) in SCORES {
if let Some(a) = answers.get(format!("score_{id}")) {
let level = a["score"].as_f64().unwrap_or(0.0);
scores.insert(id.into(), json!((level * 2.0 * 100.0).round() / 100.0));
}
}
for (id, _, ask, blocking) in DEFECTS {
if let Some(a) = answers.get(format!("defect_{id}")) {
let p = a["noul"].as_f64().unwrap_or(0.0);
defects.push(json!({"defect": id, "p": (p * 1000.0).round() / 1000.0, "present": p >= 0.5, "level": if blocking { "blocking" } else { "detail" }, "asked": ask}));
}
}
(scores, defects)
}
/// The loop's pass, in code: no blocking defect present, the lowest score 6 or more and the mean 7 or more (raea's
/// 0-10 scale; the prompt pack's line). Scores mapped by a calibration first, when there is one.
pub fn pass(scores: &serde_json::Map<String, Value>, defects: &[Value]) -> (bool, Vec<String>) {
let vals: Vec<f64> = scores.values().filter_map(Value::as_f64).collect();
let mut why = Vec::new();
let blocking = blocking(defects);
if !blocking.is_empty() {
why.push(format!("blocking: {}", blocking.join(", ")));
}
let min = vals.iter().cloned().fold(f64::INFINITY, f64::min);
let mean = if vals.is_empty() { 0.0 } else { vals.iter().sum::<f64>() / vals.len() as f64 };
if vals.len() < SCORES.len() {
why.push(format!("only {} of {} categories scored", vals.len(), SCORES.len()));
}
if min < 6.0 {
let low: Vec<String> = scores.iter().filter(|(_, v)| v.as_f64().is_some_and(|x| x < 6.0)).map(|(k, _)| k.clone()).collect();
why.push(format!("below a draft: {}", low.join(", ")));
}
if mean < 7.0 {
why.push("the whole is under a production base".into());
}
(why.is_empty(), why)
}
/// The blocking defects present, by name.
pub fn blocking(defects: &[Value]) -> Vec<&str> {
defects.iter().filter(|d| d["present"] == true && d["level"] == "blocking").filter_map(|d| d["defect"].as_str()).collect()
}
+72
View File
@@ -0,0 +1,72 @@
use super::*;
use serde_json::json;
fn scores(v: f64) -> serde_json::Map<String, Value> {
rubric::SCORES.iter().map(|s| (s.0.to_string(), json!(v))).collect()
}
#[test]
fn the_pass_is_code_and_a_blocking_defect_holds_it() {
assert!(rubric::pass(&scores(7.5), &[]).0);
assert!(!rubric::pass(&scores(6.5), &[]).0, "mean under 7");
let mut s = scores(8.0);
s.insert("form".into(), json!(5.0));
let (ok, why) = rubric::pass(&s, &[]);
assert!(!ok && why.iter().any(|w| w.contains("form")));
let d = vec![json!({"defect": "floating", "present": true, "level": "blocking"})];
assert!(!rubric::pass(&scores(9.0), &d).0);
// the questions hold no pass line
let q = format!("{}{}", rubric::questions("colour"), rubric::questions("clay"));
assert!(!q.contains("mean") && !q.contains(">= 6"));
}
#[test]
fn answers_are_read_and_rounds_say_done_and_stall() {
let a = json!({"score_form": {"score": 3.5}, "defect_floating": {"noul": 0.8}});
let (s, d) = rubric::read(&a);
assert_eq!(s["form"], 7.0);
assert_eq!(d[0]["present"], true);
let r = |p: bool, m: f64| json!({"pass": p, "mean": m, "defects": []});
assert_eq!(progress(&[r(false, 5.0), r(true, 7.2), r(true, 7.4)])["done"], true);
assert_eq!(progress(&[r(false, 5.0), r(false, 5.3), r(false, 5.6)])["stall"], true);
assert_eq!(progress(&[r(false, 4.0), r(false, 5.3), r(false, 6.1)])["stall"], false);
}
#[test]
fn calibration_maps_a_lenient_judge_onto_the_eye() {
// the judge says 8 to everything the eye gives 5, and 9 to what the eye gives 8
let row = |j: f64, e: f64, p: bool| json!({"judge": scores(j), "eye": scores(e), "eye_pass": p, "defects": []});
let rows: Vec<Value> = (0..12).map(|i| if i % 2 == 0 { row(8.0, 5.0, false) } else { row(9.0, 8.0, true) }).collect();
let cal = eye::fit_rows(&rows);
assert_eq!(cal["agreement"], 1.0);
assert_eq!(cal["gate"], true);
assert!((cal["maps"]["form"]["a"].as_f64().unwrap() - 3.0).abs() < 1e-6);
let few = eye::fit_rows(&rows[..4]);
assert_eq!(few["gate"], false, "too few rounds to gate");
// an eye that failed everything agrees with a judge that fails everything, which proves nothing
let fails: Vec<Value> = (0..12).map(|_| row(3.0, 2.0, false)).collect();
let all_fail = eye::fit_rows(&fails);
assert_eq!(all_fail["agreement"], 1.0);
assert_eq!(all_fail["gate"], false, "no pass among the eye's rounds");
}
#[test]
fn an_agent_verdict_is_read_from_the_end_of_its_thinking() {
// an agent thinks aloud, may draft the JSON twice, and ends with the one it means
let text = r#"• Looking at the sheets... draft: {"scores": {"form": 1}} then the answer:
{"blind": {"place": "office", "objects": [], "photo": "no", "tells": []},
"scores": {"composition": 6, "form": 5.5, "assembly": 7, "materials": 4, "light": 6, "detail": 5, "world": 6, "vibes": 9},
"defects": [{"tile": "iso", "where": "left", "wrong": "the desks are plain boxes", "real": "a desk has legs", "fix": "model legs", "level": "blocking"},
{"tile": "low", "wrong": "", "level": "detail"}],
"show_as_is": "no"}"#;
let v = crate::agent::last_verdict(text).unwrap();
let (scores, defects, photo) = crate::agent::read(&v);
assert_eq!(scores.len(), 7, "only the seven categories, each 0-10");
assert_eq!(scores["form"], serde_json::json!(5.5));
assert_eq!(defects.len(), 1, "a defect with nothing wrong named is dropped");
assert_eq!(defects[0]["level"], "blocking");
assert_eq!(photo, serde_json::json!(0.0));
let (pass, why) = crate::rubric::pass(&scores, &defects);
assert!(!pass && why[0].starts_with("blocking"));
assert!(crate::agent::last_verdict("no json here").is_none());
}
+8 -2
View File
@@ -3,7 +3,7 @@
//!
//! media probe|still|sheet|audio|loudness|motion|cuts|freezes|proxy|trim|concat FILE ... media work, native (media help)
//! ffmpeg ARGS | ffprobe ARGS ffmpeg and ffprobe command lines read as the media verbs (no ffmpeg involved)
//! render PAGE.html -o OUT.mp4|DIR [--at F,F] [--codec apple|soft|av1|ffmpeg] [--kbps K | --quality Q]
//! render PAGE.html -o OUT.mp4|OUT.png|DIR [--at F,F] [--alpha] [--codec apple|soft|av1|ffmpeg] [--kbps K | --quality Q]
//! shots [--size WxH] [--root DIR] plain HTML pages' first frames as PNGs, over white: stdin lines `PAGE\tOUT.png`,
//! one `ok OUT` or `err OUT: why` line each (bench/wpt's reftests)
@@ -53,8 +53,14 @@ fn run(args: Vec<String>) {
"render" => {
let out = PathBuf::from(flag("-o").unwrap_or_else(|| fail("render needs -o OUT.mp4|DIR")));
let frames = flag("--at").map(|at| at.split(',').map(|f| f.trim().parse().unwrap_or_else(|_| fail(format!("bad frame {f}")))).collect());
let opts = raea_runtime_encode::RenderOpts { frames, codec: flag("--codec"), kbps: flag("--kbps").and_then(|k| k.parse().ok()), quality: flag("--quality").map(|q| raea_io_media::parse_quality(&q).unwrap_or_else(|e| fail(e))), ssim: flag_on("--ssim"), sound: None, ten_bit: flag_on("--10bit") };
let opts = raea_runtime_encode::RenderOpts { frames, codec: flag("--codec"), kbps: flag("--kbps").and_then(|k| k.parse().ok()), quality: flag("--quality").map(|q| raea_io_media::parse_quality(&q).unwrap_or_else(|e| fail(e))), ssim: flag_on("--ssim"), sound: None, ten_bit: flag_on("--10bit"), alpha: flag_on("--alpha") };
if opts.alpha && out.extension().is_some_and(|x| x != "png") {
fail("--alpha writes PNGs (OUT.png or a folder): video here is H.264 or HEVC, which hold no alpha");
}
raea_runtime_encode::render_file(&arg(1), &out, &opts).unwrap_or_else(|e| fail(e));
if let Some(note) = raea_page::not_applied::said() {
println!("{note}");
}
}
"shots" => {
let size = flag("--size").map(|s| s.split_once('x').and_then(|(w, h)| Some((w.parse().ok()?, h.parse().ok()?))).unwrap_or_else(|| fail(format!("bad --size {s} (WxH)"))));
+1 -1
View File
@@ -58,5 +58,5 @@ pub fn frames(out: &Path, size: (u32, u32), fps: f64, quality: Option<f32>, audi
None => None,
};
let stats = enc.finish(sound.as_ref())?;
Ok(json!({"wrote": out, "frames": frames, "seconds": round3(secs), "width": w, "height": h, "fps": round3(fps), "bytes": stats.bytes, "sound": sound.is_some(), "credentials": if raea_io_media::SIGNS { "signed" } else { "unsigned" }}))
Ok(json!({"wrote": out, "frames": frames, "seconds": round3(secs), "width": w, "height": h, "fps": round3(fps), "bytes": stats.bytes, "sound": sound.is_some(), "credentials": if raea_io_media::signs() { "signed" } else { "unsigned" }}))
}
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "raea-app-solid"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea solid info and raea solid view: a solid file run, its parts measured (raea-core-solidinfo), and its review sheets in colour and clay"
[dependencies]
raea-core-solidinfo = { path = "../../core/solidinfo" }
serde_json = "1"
# --set's and the CLI's flags, read as the bundler reads them
raea-runtime-bundle = { path = "../../runtime/bundle" }
# `raea judge`, dispatched with `raea solid` (verb())
raea-app-judge = { path = "../judge" }
# `raea solid export`: the solid built, written as .glb and read back (core/shape), named and coloured (core/meshcheck)
raea-core-shape = { path = "../../core/shape" }
raea-core-meshcheck = { path = "../../core/meshcheck" }
+128
View File
@@ -0,0 +1,128 @@
//! `raea solid export FILE.ts -o OUT.glb [--set k=v,...] [--part NAME] [--colour #RRGGBB]` (docs/blender.feature BL1):
//! a solid written as one .glb, metres, y up, so a Blender step can take it (bake.py for real UVs and baked maps, a
//! cloth to fall on). The solid stays the source: the .glb is made again from it whenever it changes. An empty solid,
//! or one solid info finds an error in, is refused with the findings. The file is read back and measured against the
//! solid (volume, pieces, box, within 0.5%), and a licence sidecar is written beside it.
use std::path::Path;
use raea_core_shape::Manifold;
use raea_core_solidinfo::{Measured, measure};
use raea_runtime_bundle::flag;
use serde_json::{Value, json};
/// How far the read-back may differ, as a share of the solid's own value.
const TOLERANCE: f64 = 0.005;
/// `#RRGGBB` as linear RGBA.
fn linear(hex: &str) -> Result<[f64; 4], String> {
let h = hex.trim_start_matches('#');
let c = |i: usize| u8::from_str_radix(h.get(i..i + 2).unwrap_or(""), 16).map_err(|_| format!("--colour takes #RRGGBB, got {hex:?}"));
let lin = |v: u8| {
let s = v as f64 / 255.0;
if s <= 0.04045 { s / 12.92 } else { ((s + 0.055) / 1.055).powf(2.4) }
};
if h.len() != 6 {
return Err(format!("--colour takes #RRGGBB, got {hex:?}"));
}
Ok([lin(c(0)?), lin(c(2)?), lin(c(4)?), 1.0])
}
/// The read-back's differences from the solid, each over the tolerance: none when they match.
pub(crate) fn differences(a: &Measured, b: &Measured) -> Vec<String> {
let mut d = Vec::new();
let off = |x: f64, y: f64, of: f64| (x - y).abs() > TOLERANCE * of.abs().max(1e-9);
if off(a.volume, b.volume, a.volume) {
d.push(format!("volume {} m³ read back as {}", a.volume, b.volume));
}
if a.pieces != b.pieces {
d.push(format!("{} pieces read back as {}", a.pieces, b.pieces));
}
let span = (0..3).map(|k| a.max[k] - a.min[k]).fold(0.0, f64::max);
if (0..3).any(|k| off(a.min[k], b.min[k], span) || off(a.max[k], b.max[k], span)) {
d.push(format!("box {:?}..{:?} read back as {:?}..{:?}", a.min, a.max, b.min, b.max));
}
d
}
/// Solid info's findings at one level, as it prints them: all of them, or one part's alone.
fn said(info: &Value, level: &str, part: Option<&str>) -> Vec<String> {
let mine = |f: &&Value| f["level"] == level && part.is_none_or(|p| f["part"].as_str() == Some(p));
info["found"].as_array().into_iter().flatten().filter(mine).map(|f| format!("{level:<8} {}", f["says"].as_str().unwrap_or(""))).collect()
}
pub fn export(file: &Path, parts: &[(String, String)], info: &Value, args: &[String]) -> Result<String, String> {
let out = flag(args, "-o").filter(|o| o.ends_with(".glb")).ok_or("raea solid export FILE.ts -o OUT.glb: give the .glb to write")?;
let part = flag(args, "--part");
let chosen: Vec<&(String, String)> = parts.iter().filter(|(n, _)| part.as_deref().is_none_or(|p| p == n)).collect();
if chosen.is_empty() {
return Err(format!("solid export: no part {} (the file's parts: {})", part.unwrap_or_default(), parts.iter().map(|p| p.0.as_str()).collect::<Vec<_>>().join(", ")));
}
// refused on solid info's errors: the whole's, or the part's alone when one is asked for
let errors = said(info, "error", part.as_deref());
if !errors.is_empty() {
return Err(format!("solid export: refused, solid info finds errors:\n{}", errors.join("\n")));
}
let solids = chosen.iter().map(|(_, e)| raea_core_shape::solid(e)).collect::<Result<Vec<Manifold>, String>>()?;
let m = solids.into_iter().reduce(|a, b| a.union(&b)).ok_or("solid export: no part to write")?;
let mine = measure(&m);
if mine.empty {
return Err("solid export: refused, the solid is empty".into());
}
if let Some(dir) = Path::new(&out).parent().filter(|d| !d.as_os_str().is_empty()) {
std::fs::create_dir_all(dir).map_err(|e| format!("{}: {e}", dir.display()))?;
}
raea_core_shape::export(&m, &out, "glb")?;
// its name, and a material when a colour is given (bake.py multiplies its AO into it)
let g = raea_core_meshcheck::Glb::read(&out)?;
let mut j = g.json.clone();
let name = part.clone().unwrap_or_else(|| file.file_stem().and_then(|s| s.to_str()).unwrap_or("solid").to_string());
j["nodes"][0]["name"] = json!(name);
j["meshes"][0]["name"] = json!(name);
j["asset"]["generator"] = json!("raea solid export");
if let Some(c) = flag(args, "--colour") {
j["materials"] = json!([{"name": name, "pbrMetallicRoughness": {"baseColorFactor": linear(&c)?, "metallicFactor": 0.0, "roughnessFactor": 0.8}}]);
j["meshes"][0]["primitives"][0]["material"] = json!(0);
}
std::fs::write(&out, g.with_json(&j)?).map_err(|e| format!("{out}: {e}"))?;
// read back: the file a scene and Blender will load, measured against the solid
let (v, t) = raea_core_shape::read_glb(&out)?;
let back = measure(&raea_core_shape::from_mesh(&v, &t)?);
let diff = differences(&mine, &back);
if !diff.is_empty() {
return Err(format!("solid export: {out} doesn't read back as the solid: {}", diff.join("; ")));
}
let side = json!({"source": format!("raea solid export {}{}", file.display(), part.as_ref().map(|p| format!(" --part {p}")).unwrap_or_default()), "license": "built in code for this project", "credit": ""});
std::fs::write(format!("{out}.json"), serde_json::to_string_pretty(&side).unwrap_or_default()).map_err(|e| e.to_string())?;
let r = |x: f64| (x * 1e5).round() / 1e5;
let mut t = vec![format!(
"APPLIED {out}: {} triangles, {} m³, {} x {} x {} m, {} piece(s); read back the same (within {}%); licence in {out}.json",
mine.tris, r(mine.volume), r(mine.max[0] - mine.min[0]), r(mine.max[1] - mine.min[1]), r(mine.max[2] - mine.min[2]), mine.pieces, TOLERANCE * 100.0
)];
t.extend(said(info, "warning", None));
Ok(t.join("\n"))
}
#[cfg(test)]
mod tests {
#[test]
fn a_solid_reads_back_as_itself() {
let m = raea_core_shape::solid("minus(box(0.4, 0.3, 0.2), cylinder(0.05, 0.4))").unwrap();
let dir = std::env::temp_dir().join(format!("raea-solid-export-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let out = dir.join("x.glb");
raea_core_shape::export(&m, out.to_str().unwrap(), "glb").unwrap();
let (v, t) = raea_core_shape::read_glb(out.to_str().unwrap()).unwrap();
let back = raea_core_solidinfo::measure(&raea_core_shape::from_mesh(&v, &t).unwrap());
let mine = raea_core_solidinfo::measure(&m);
assert!(super::differences(&mine, &back).is_empty(), "{:?}", super::differences(&mine, &back));
// a mismatch is named
let mut off = raea_core_solidinfo::measure(&m);
off.volume *= 1.1;
off.pieces = 2;
assert_eq!(super::differences(&off, &back).len(), 2);
let _ = std::fs::remove_dir_all(&dir);
assert_eq!(super::linear("#ffffff").unwrap(), [1.0, 1.0, 1.0, 1.0]);
assert!(super::linear("red").is_err());
}
}
+196
View File
@@ -0,0 +1,196 @@
//! `raea solid info FILE.ts [--json] [--set k=v,...] [--expect E.json] [--walk]`: the file's solid measured
//! (raea-core-solidinfo). FILE.ts exports `default`: a Solid, an object of named Solids (the parts), or a function
//! of the params returning either; and optionally `params`, each a number, a boolean, or `[low, high, default]`. The
//! file is run by `raea run` (a wrapper that prints each part's shape expression), then measured natively. --set
//! builds it at other params and says what moved from the defaults; --walk moves each ranged param alone to each end
//! and says which break it (more pieces, empty) and which reach no geometry. FILE.expect.json beside it is read when
//! --expect isn't given. Errors exit 1, as scene lint. A part's `role` comes from the file's `roles` export ({body:
//! "contain"}), its `at` from the line that names it. `raea solid view` takes its pictures (view.rs); `raea solid export`
//! writes it as a .glb for a Blender step (export.rs). Its `needs` export ({textured: true}) asks for what solids can't
//! give yet: real UVs and baked maps name bake.py (docs/blender.feature BL14).
use std::path::{Path, PathBuf};
use raea_runtime_bundle::flag;
use serde_json::{Map, Value, json};
mod export;
mod view;
pub const USAGE: &str = "raea solid info FILE.ts [--json] [--set k=v,...] [--expect E.json] [--walk] (volume, box, pieces, genus per part; joints; predictions and mutants)\n raea solid view FILE.ts -o DIR [--set k=v,...] [--json] (the solid's parts in colour and clay from fixed cameras)\n raea solid export FILE.ts -o OUT.glb [--set k=v,...] [--part NAME] [--colour #RRGGBB] (the solid as one .glb for a Blender step, read back and checked)";
thread_local! {
/// the last run file's `roles` and `needs` exports
static META: std::cell::RefCell<Value> = const { std::cell::RefCell::new(Value::Null) };
}
/// The file run with these params: (the params it used, its spec, each part's expression).
fn made(file: &Path, set: &Map<String, Value>) -> Result<(Value, Value, Vec<(String, String)>), String> {
let dir = std::env::temp_dir().join(format!("raea-solid-{}", std::process::id()));
std::fs::create_dir_all(&dir).map_err(|e| e.to_string())?;
let w = dir.join("info.ts");
let src = format!(
r#"import {{ print }} from "raea/native";
import * as m from {file:?};
const spec: Record<string, unknown> = (m as any).params ?? {{}};
const set: Record<string, unknown> = {set};
const p: Record<string, unknown> = {{}};
for (const [k, v] of Object.entries(spec)) p[k] = Array.isArray(v) ? v[2] : (v && typeof v === "object" && "default" in (v as any)) ? (v as any).default : v;
for (const [k, v] of Object.entries(set)) {{ if (!(k in spec)) throw new Error(`--set ${{k}}: the file's params are ${{Object.keys(spec).join(", ") || "none"}}`); p[k] = v; }}
const made = typeof (m as any).default === "function" ? (m as any).default(p) : (m as any).default;
if (!made) throw new Error("the file exports no default solid");
const parts = typeof made.expr === "string" ? {{ solid: made }} : made;
const exprs: Record<string, string> = {{}};
for (const [k, v] of Object.entries(parts)) {{ if (typeof (v as any)?.expr !== "string") throw new Error(`part ${{k}} is not a Solid`); exprs[k] = (v as any).expr; }}
print("RAEA_SOLID_INFO " + JSON.stringify({{ params: p, spec, parts: exprs, roles: (m as any).roles ?? {{}}, needs: (m as any).needs ?? {{}} }}));
"#,
file = file.display().to_string(),
set = Value::Object(set.clone()),
);
std::fs::write(&w, src).map_err(|e| e.to_string())?;
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let run = std::process::Command::new(exe).arg("run").arg(&w).current_dir(&dir).output().map_err(|e| e.to_string())?;
let _ = std::fs::remove_dir_all(&dir);
let out = String::from_utf8_lossy(&run.stdout).to_string();
let Some(line) = out.lines().find_map(|l| l.strip_prefix("RAEA_SOLID_INFO ")) else {
let err = format!("{}{out}", String::from_utf8_lossy(&run.stderr));
return Err(format!("solid info: {} didn't run: {}", file.display(), err.lines().rev().find(|l| !l.trim().is_empty()).unwrap_or("no output")));
};
let v: Value = serde_json::from_str(line).map_err(|e| e.to_string())?;
let parts: Vec<(String, String)> = serde_json::from_value::<std::collections::BTreeMap<String, String>>(v["parts"].clone()).unwrap_or_default().into_iter().collect();
META.with(|r| *r.borrow_mut() = json!({"roles": v["roles"], "needs": v["needs"]}));
Ok((v["params"].clone(), v["spec"].clone(), parts))
}
/// Textures asked of a solid: a solid's UVs are box projections, so real UVs and baked maps come from Blender (the
/// solid exported, then bake.py), and the gap is one to build into solids.
fn textured(out: &mut Value, file: &Path) {
let stem = file.file_stem().and_then(|s| s.to_str()).unwrap_or("solid");
let f = raea_core_meshcheck::blender::fix("bake.py", &format!("media/{stem}.glb media/{stem}-baked.glb --into-colour"));
let run = format!("raea solid export {} -o media/{stem}.glb --colour #RRGGBB && {}", file.display(), f["run"].as_str().unwrap_or(""));
let says = format!("its file asks for textures (needs.textured), and a solid's UVs are box projections: export it and bake real UVs and maps; fix: {run}");
if let Some(a) = out["found"].as_array_mut() {
a.push(json!({"check": "textures", "level": "warning", "says": says, "fix": {"blender": "bake.py", "run": run}}));
}
out["warnings"] = json!(out["warnings"].as_u64().unwrap_or(0) + 1);
}
fn parse_set(s: &str) -> Result<Map<String, Value>, String> {
let mut m = Map::new();
for kv in s.split(',').filter(|x| !x.trim().is_empty()) {
let (k, v) = kv.split_once('=').ok_or_else(|| format!("--set takes k=v,..., got {kv:?}"))?;
let v = v.trim();
let val = match v {
"true" => json!(true),
"false" => json!(false),
n => json!(n.parse::<f64>().map_err(|_| format!("--set {k}: a number, true or false, got {n:?}"))?),
};
m.insert(k.trim().to_string(), val);
}
Ok(m)
}
/// `raea solid ...` and `raea judge ...`, the scene loop's verbs (engine/cli hands them over), or None for another verb.
pub fn verb(args: &[String]) -> Option<Result<String, String>> {
match args.first().map(String::as_str) {
Some("solid") => Some(cli(args)),
Some("judge") => Some(raea_app_judge::cli(args)),
_ => None,
}
}
pub fn cli(args: &[String]) -> Result<String, String> {
let (Some(verb @ ("info" | "view" | "export")), Some(file)) = (args.get(1).map(String::as_str), args.get(2)) else { return Err(USAGE.into()) };
let file = PathBuf::from(file).canonicalize().map_err(|e| format!("{file}: {e}"))?;
let json_out = args.iter().any(|a| a == "--json");
let set = flag(args, "--set").map(|s| parse_set(&s)).transpose()?.unwrap_or_default();
let expect_path = flag(args, "--expect").map(PathBuf::from).or_else(|| {
let p = file.with_extension("expect.json");
p.is_file().then_some(p)
});
let expect: Option<Value> = expect_path.as_ref().map(|p| std::fs::read_to_string(p).map_err(|e| format!("{}: {e}", p.display())).and_then(|t| serde_json::from_str(&t).map_err(|e| format!("{}: {e}", p.display())))).transpose()?;
let (params, spec, parts) = made(&file, &set)?;
let mut out = raea_core_solidinfo::info(&parts, expect.as_ref())?;
out["file"] = json!(file.display().to_string());
let src = std::fs::read_to_string(&file).unwrap_or_default();
let meta = META.with(|r| r.borrow().clone());
for p in out["parts"].as_array_mut().into_iter().flatten() {
let name = p["part"].as_str().unwrap_or("").to_string();
if let Some(role) = meta["roles"][&name].as_str() {
p["role"] = json!(role);
}
if let Some(line) = crate::view::at(&src, &name) {
p["at"] = json!({"file": file.display().to_string(), "line": line});
}
}
if meta["needs"]["textured"] == true {
textured(&mut out, &file);
}
if verb == "export" {
return export::export(&file, &parts, &out, args);
}
if verb == "view" {
let dir = crate::view::out_dir(args).ok_or("raea solid view FILE.ts -o DIR: give the folder for the sheets")?;
return crate::view::view(&file, &set, &out, &dir, json_out);
}
out["params"] = params;
if let Some(p) = &expect_path {
out["expect"]["file"] = json!(p.display().to_string());
}
if !set.is_empty() {
out["set"] = Value::Object(set.clone());
let (_, _, base) = made(&file, &Map::new())?;
let was = raea_core_solidinfo::info(&base, None)?;
let from = set.iter().map(|(k, v)| format!("{k}={v}")).collect::<Vec<_>>().join(",");
out["delta"] = raea_core_solidinfo::delta(&from, &was["solid"], &out["solid"]);
}
if args.iter().any(|a| a == "--walk") {
let base = if set.is_empty() { out["solid"].clone() } else { raea_core_solidinfo::info(&made(&file, &Map::new())?.2, None)?["solid"].clone() };
let mut walk = Vec::new();
for (k, v) in spec.as_object().into_iter().flatten() {
let ends: Vec<Value> = match v {
Value::Array(a) if a.len() >= 2 => vec![a[0].clone(), a[1].clone()],
Value::Bool(b) => vec![json!(!b)],
_ => continue,
};
for end in ends {
let mut one = Map::new();
one.insert(k.clone(), end.clone());
let row = match made(&file, &one).and_then(|(_, _, p)| raea_core_solidinfo::info(&p, None)) {
Ok(r) => {
let (verdict, says) = raea_core_solidinfo::walk_verdict(&base, &r["solid"]);
json!({"param": k, "value": end, "verdict": verdict, "says": says, "volume": r["solid"]["volume"], "size": r["solid"]["box"]["size"]})
}
Err(e) => json!({"param": k, "value": end, "verdict": "broken", "says": e}),
};
if row["verdict"] == "broken" {
let says = format!("{k} = {end}: {}", row["says"].as_str().unwrap_or("broken"));
out["found"].as_array_mut().unwrap().push(json!({"check": "walk", "level": "warning", "says": says}));
out["warnings"] = json!(out["warnings"].as_u64().unwrap_or(0) + 1);
}
walk.push(row);
}
}
out["walk"] = json!(walk);
}
let errors = out["errors"].as_u64().unwrap_or(0);
let text = if json_out {
serde_json::to_string_pretty(&out).unwrap_or_default()
} else {
let s = &out["solid"];
let mut t: Vec<String> = out["found"].as_array().into_iter().flatten().filter(|f| !matches!(f["level"].as_str(), Some("ok"))).map(|f| format!("{:<8} {}{}", f["level"].as_str().unwrap_or(""), f["part"].as_str().map(|p| format!("{p}: ")).unwrap_or_default(), f["says"].as_str().unwrap_or(""))).collect();
for p in out["parts"].as_array().into_iter().flatten() {
t.push(format!("part {}: {} m³, size {}, {} pieces, genus {}", p["part"].as_str().unwrap_or(""), p["volume"], p["box"]["size"], p["pieces"], p["genus"]));
}
for w in out["walk"].as_array().into_iter().flatten() {
t.push(format!("walk {} = {}: {}{}", w["param"].as_str().unwrap_or(""), w["value"], w["verdict"].as_str().unwrap_or(""), w["says"].as_str().map(|s| format!(" ({s})")).unwrap_or_default()));
}
t.push(format!("solid: {} m³, size {} m, {} pieces, genus {}, {} triangles; {errors} errors, {} warnings", s["volume"], s["box"]["size"], s["pieces"], s["genus"], s["tris"], out["warnings"]));
t.join("\n")
};
if errors > 0 {
println!("{text}");
std::process::exit(1);
}
Ok(text)
}
+143
View File
@@ -0,0 +1,143 @@
//! `raea solid view FILE.ts -o DIR [--set k=v,...]`: one solid's review sheets (research note agent-tool-surface.md's
//! `solid view`). The file's parts are put in a small scene, each on its own clay-friendly colour, on a slab under
//! a key and fill light, with a hero camera from the front-right corner, and `raea render --review` takes the fixed
//! views of it in colour and clay. It prints a sidecar: the sheets, the solid's box, whether it is in more than one
//! piece, and solid info's findings, so one call gives the numbers and the pictures. The judge reads the sheets only.
use std::path::{Path, PathBuf};
use serde_json::{Map, Value, json};
const COLOURS: [&str; 8] = ["#c9b79c", "#8fa6b8", "#b48a78", "#9cb48a", "#b8a46a", "#a08cb4", "#7fb0a8", "#c4a0a0"];
/// The scene the sheets are taken of: the file's parts (built with `set` over its params), a slab under them, lights
/// and a camera from the box.
fn scene(file: &Path, set: &Map<String, Value>, lo: [f64; 3], hi: [f64; 3]) -> String {
let c = [(lo[0] + hi[0]) / 2.0, (lo[1] + hi[1]) / 2.0, (lo[2] + hi[2]) / 2.0];
let r = (((hi[0] - lo[0]).powi(2) + (hi[1] - lo[1]).powi(2) + (hi[2] - lo[2]).powi(2)).sqrt() / 2.0).max(0.02);
let d = r / (20f64.to_radians().sin()) * 1.1;
let k = 1.0 / 3f64.sqrt();
let eye = [c[0] + d * k, c[1] + d * k * 0.7, c[2] + d * k];
let slab = ((hi[0] - lo[0]).max(hi[2] - lo[2]) * 0.8).max(0.05);
let thick = (r * 0.02).max(0.002);
format!(
r##"import {{ AbsoluteFill, Composition, registerRoot }} from "raea";
import {{ Cuboid }} from "raea/3d";
import {{ StandardMaterial }} from "raea/pbr";
import {{ Mesh3d }} from "raea/mesh";
import {{ AmbientLight, DirectionalLight }} from "raea/light";
import {{ Transform }} from "raea/transform";
import {{ Camera3d }} from "raea/camera";
import * as m from {file:?};
const spec: Record<string, unknown> = (m as any).params ?? {{}};
const p: Record<string, unknown> = {{}};
for (const [k, v] of Object.entries(spec)) p[k] = Array.isArray(v) ? v[2] : (v && typeof v === "object" && "default" in (v as any)) ? (v as any).default : v;
Object.assign(p, {set});
let parts: Record<string, any> | null = null;
const get = () => {{
if (parts) return parts;
const made = typeof (m as any).default === "function" ? (m as any).default(p) : (m as any).default;
return (parts = typeof made?.expr === "string" ? {{ solid: made }} : made);
}};
const COLOURS = {colours:?};
function View() {{
return (
<AbsoluteFill style={{{{ background: "#1c1c1e" }}}}>
<Camera3d transform={{Transform.fromXyz({ex}, {ey}, {ez}).lookingAt([{cx}, {cy}, {cz}])}} projection={{{{ Perspective: {{ fov: (40 * Math.PI) / 180 }} }}}} />
<AmbientLight brightness={{250}} />
<DirectionalLight transform={{Transform.fromXyz({lx}, {ly}, {lz}).lookingAt([{cx}, {cy}, {cz}])}} illuminance={{9000}} shadow_maps_enabled />
<Mesh3d transform={{Transform.fromXyz({cx}, {sy}, {cz})}}><Cuboid half_size={{[{slab}, {thick}, {slab}]}} /><StandardMaterial base_color="#55565a" perceptual_roughness={{0.9}} /></Mesh3d>
{{Object.entries(get()).map(([k, s], i) => (
<Mesh3d key={{k}} shape={{s}}><StandardMaterial base_color={{COLOURS[i % COLOURS.length]}} perceptual_roughness={{0.6}} /></Mesh3d>
))}}
</AbsoluteFill>
);
}}
registerRoot(() => <Composition id="solid" component={{View}} width={{1280}} height={{960}} fps={{30}} durationInFrames={{1}} />);
"##,
// relative, as the scene sits beside it: an absolute import is bundled with its raea imports left external
file = format!("./{}", file.file_stem().and_then(|s| s.to_str()).unwrap_or("solid")),
set = Value::Object(set.clone()),
colours = COLOURS,
ex = eye[0],
ey = eye[1],
ez = eye[2],
cx = c[0],
cy = c[1],
cz = c[2],
lx = c[0] + d * 0.6,
ly = c[1] + d,
lz = c[2] + d * 0.8,
sy = lo[1] - thick,
slab = slab,
thick = thick,
)
}
/// The sheets made and the sidecar said, from the file's solid info (`info`, its JSON).
pub(crate) fn view(file: &Path, set: &Map<String, Value>, info: &Value, out: &Path, json_out: bool) -> Result<String, String> {
let b = &info["solid"]["box"];
let v3 = |k: &str| -> Result<[f64; 3], String> {
let a = b[k].as_array().filter(|a| a.len() == 3).ok_or("solid view: the solid is empty: nothing to look at")?;
Ok([a[0].as_f64().unwrap_or(0.0), a[1].as_f64().unwrap_or(0.0), a[2].as_f64().unwrap_or(0.0)])
};
let (lo, hi) = (v3("min")?, v3("max")?);
std::fs::create_dir_all(out).map_err(|e| format!("{}: {e}", out.display()))?;
// the scene sits beside the file, so its import resolves as the file's own do
let tsx = file.with_file_name(format!(".{}.view.tsx", file.file_stem().and_then(|s| s.to_str()).unwrap_or("solid")));
std::fs::write(&tsx, scene(file, set, lo, hi)).map_err(|e| format!("{}: {e}", tsx.display()))?;
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let run = std::process::Command::new(exe).arg("render").arg(&tsx).arg("--review").arg(out).current_dir(tsx.parent().unwrap_or(Path::new("."))).output().map_err(|e| e.to_string())?;
let said = format!("{}{}", String::from_utf8_lossy(&run.stdout), String::from_utf8_lossy(&run.stderr));
if !run.status.success() || !out.join("colour.png").is_file() {
// the scene is left for a look: what failed is in it or in the file
let why: Vec<&str> = said.lines().filter(|l| l.contains("Error") || l.contains("REFUSED") || l.contains("error")).take(3).collect();
return Err(format!("solid view: the review render of {} failed: {}", tsx.display(), if why.is_empty() { said.lines().rev().find(|l| !l.trim().is_empty()).unwrap_or("no output").to_string() } else { why.join(" | ") }));
}
let _ = std::fs::remove_file(&tsx);
let review: Value = serde_json::from_str(&std::fs::read_to_string(out.join("review.json")).unwrap_or_default()).unwrap_or(Value::Null);
let found: Vec<Value> = info["found"].as_array().into_iter().flatten().filter(|f| f["level"] != "ok").cloned().chain(review["found"].as_array().into_iter().flatten().cloned()).collect();
let side = json!({
"file": file.display().to_string(), "set": set, "sheets": {"colour": out.join("colour.png"), "clay": out.join("clay.png")},
"box": info["solid"]["box"], "disjoint": info["solid"]["pieces"].as_u64().unwrap_or(0) > 1,
"parts": info["parts"].as_array().into_iter().flatten().enumerate().map(|(i, p)| json!({"part": p["part"], "colour": COLOURS[i % COLOURS.len()]})).collect::<Vec<_>>(),
"tiles": review["tiles"], "errors": info["errors"], "found": found,
"caption": format!("{} Each part in its own colour on the colour sheet (parts[].colour).", review["caption"].as_str().unwrap_or("")),
});
std::fs::write(out.join("view.json"), serde_json::to_string_pretty(&side).unwrap_or_default()).map_err(|e| e.to_string())?;
if json_out {
return Ok(serde_json::to_string_pretty(&side).unwrap_or_default());
}
let mut t = vec![format!("APPLIED {} and {} (hero, front, right, top, iso, low), the sidecar in {}", out.join("colour.png").display(), out.join("clay.png").display(), out.join("view.json").display())];
t.push(format!("parts: {}", side["parts"].as_array().into_iter().flatten().map(|p| format!("{} {}", p["part"].as_str().unwrap_or(""), p["colour"].as_str().unwrap_or(""))).collect::<Vec<_>>().join(", ")));
for f in &found {
t.push(format!(" {}: {}", f["level"].as_str().unwrap_or(""), f["says"].as_str().unwrap_or("")));
}
Ok(t.join("\n"))
}
/// Where a part is named in the file: the first line that gives it as a key or a binding (`body:`, `const body =`).
pub(crate) fn at(src: &str, part: &str) -> Option<usize> {
let word = |l: &str, i: usize| i == 0 || !l[..i].ends_with(|c: char| c.is_alphanumeric() || c == '_');
src.lines().position(|l| {
l.match_indices(part).any(|(i, _)| {
let rest = l[i + part.len()..].trim_start();
word(l, i) && (rest.starts_with(':') || (rest.starts_with('=') && !rest.starts_with("==")) || rest.starts_with(','))
})
}).map(|n| n + 1)
}
pub(crate) fn out_dir(args: &[String]) -> Option<PathBuf> {
args.iter().position(|a| a == "-o").and_then(|i| args.get(i + 1)).map(PathBuf::from)
}
#[cfg(test)]
mod tests {
#[test]
fn a_part_is_found_where_it_is_named() {
let src = "import x from 'y';\nconst body = a();\nreturn { body, handle: h, handlebar: 2 };\n";
assert_eq!(super::at(src, "body"), Some(2));
assert_eq!(super::at(src, "handle"), Some(3));
assert_eq!(super::at(src, "spout"), None);
}
}
+1 -1
View File
@@ -71,7 +71,7 @@ pub fn host(args: &[String]) -> Result<String, String> {
// the app's folder (relative media and fonts) and the CSS it imported (its @font-face rules), T3d
let sheet = script.with_extension("css");
std::fs::write(&sheet, css).map_err(|e| format!("{}: {e}", sheet.display()))?;
let dir = p.canonicalize().ok().and_then(|c| c.parent().map(Path::to_path_buf)).unwrap_or_default();
let dir = p.canonicalize().ok().map(raea_io_home::plain).and_then(|c| c.parent().map(Path::to_path_buf)).unwrap_or_default();
extra.extend(["--base".to_string(), dir.display().to_string(), "--css".to_string(), sheet.display().to_string()]);
} else {
handed.push(a.clone());
+1 -1
View File
@@ -22,7 +22,7 @@ pub struct Built {
/// `app` bundled into `dir` (made if missing): app.js and app.css (Tailwind's, for the classes the app's folder uses, after
/// any CSS the app imports)
pub fn build(app: &Path, dir: &Path) -> Result<Built, String> {
let app = app.canonicalize().map_err(|e| format!("{}: {e}", app.display()))?;
let app = raea_io_home::plain(app.canonicalize().map_err(|e| format!("{}: {e}", app.display()))?);
std::fs::create_dir_all(dir).map_err(|e| format!("{}: {e}", dir.display()))?;
let (js, imported) = raea_runtime_bundle::inproc::app::bundle(&app, &raea_io_home::home())?;
let folder = app.parent().unwrap_or(Path::new("."));
-4
View File
@@ -6,10 +6,6 @@ license = "FSL-1.1-ALv2"
publish = false
description = "The `raea` verbs that run raea's model tools: sao, tokensynth, setup-audio, sounds, splat, song and gen"
[features]
# a made sound signed as generated (raea's own API; the public engine goes without)
service = []
[dependencies]
raea-io-assets = { path = "../../io/assets" }
# generation flows: made.app, fal, Replicate, OpenRouter, Modal, ComfyUI (`raea gen`)
+21 -1
View File
@@ -7,7 +7,7 @@ use std::process::Command;
type R<T> = Result<T, String>;
pub const USAGE: &str = "raea setup blender [--check] [--download] (find Blender or download the LTS into ~/.raea/tools/blender, and install its MCP add-on)\n raea blender run SCRIPT.py [ARGS...] (blender --background --python SCRIPT.py -- ARGS, headless)";
pub const USAGE: &str = "raea setup blender [--check] [--download] (find Blender or download the LTS into ~/.raea/tools/blender, and install its MCP add-on)\n raea blender run SCRIPT.py [ARGS...] (blender --background --python SCRIPT.py -- ARGS, headless; blender/X.py missing from the project is copied from the library: convert, decimate, repair, split, bake, rig, cloth)";
/// The LTS series raea downloads; the newest patch in blender.org/release/Blender<LTS>/ is taken. Moved when Blender
/// ships a new LTS (blender.org/download/lts).
@@ -189,6 +189,25 @@ pub fn setup(args: &[String]) -> R<String> {
Ok(format!("{head} {v} ({from})\n {}\n {add}\n headless: raea blender run SCRIPT.py; live: start Blender and the agent's `blender` MCP server connects (raea skills install adds it)", bin.display()))
}
/// The library's scripts (sdk/guides/craft/bevy/blender: convert, decimate, repair, split, bake, rig, cloth): a fix
/// names `blender/X.py`, and the first run copies the library's X.py into the project's blender/ folder, where it is
/// kept with the project and edited for it (docs/blender.feature, Background). A script already there is never replaced.
fn library(script: &str) -> R<()> {
let p = Path::new(script);
let (Some(name), Some(dir)) = (p.file_name(), p.parent()) else { return Ok(()) };
if p.exists() || dir.file_name().is_none_or(|d| d != "blender") {
return Ok(());
}
let from = raea_io_home::home().join("sdk/guides/craft/bevy/blender").join(name);
if !from.is_file() {
return Ok(());
}
std::fs::create_dir_all(dir).map_err(|e| format!("{}: {e}", dir.display()))?;
std::fs::copy(&from, p).map_err(|e| format!("{}: {e}", p.display()))?;
eprintln!("copied the library's {} into {} (it is the project's now: edit it there)", name.to_string_lossy(), dir.display());
Ok(())
}
/// `raea blender run SCRIPT.py [ARGS...]`: the script in a windowless Blender, its args after `--` (sys.argv), its
/// output passed through. Exits as Blender's Python did: --python-exit-code makes an uncaught error fail the run.
pub fn blender(args: &[String]) -> R<String> {
@@ -196,6 +215,7 @@ pub fn blender(args: &[String]) -> R<String> {
return Err(format!("usage: {USAGE}"));
}
let script = args.get(2).ok_or_else(|| format!("which script: {USAGE}"))?;
library(script)?;
if !Path::new(script).is_file() {
return Err(format!("no script {script}"));
}
+2 -2
View File
@@ -59,8 +59,8 @@ pub fn song(args: &[String]) -> R<String> {
return Err("song: the map is made by raea-perceive, which isn't installed beside raea. Update raea (`curl -fsSL https://raea.io/install | sh`: releases ship it in ~/.raea/bin), or from a checkout `cargo build --release -p raea-perceive`, or point RAEA_PERCEIVE at one".into());
}
// its beat model (Beat This!, MIT): an install keeps it in share/raea/models; raea-perceive reads it from
// ~/.local/share/raea-models
let model = PathBuf::from(std::env::var("HOME").unwrap_or_default()).join(".local/share/raea-models/beat-this/beat_this_small0.onnx");
// raea_io_home::models() (~/.local/share/raea-models; %LOCALAPPDATA%\raea\models on Windows)
let model = raea_io_home::models().join("beat-this/beat_this_small0.onnx");
if !model.is_file() {
let shipped = raea_io_home::home().join("models/beat-this/beat_this_small0.onnx");
if !shipped.is_file() || std::fs::create_dir_all(model.parent().unwrap()).and_then(|_| std::fs::copy(&shipped, &model)).is_err() {
+2
View File
@@ -121,6 +121,8 @@ fn deliver(from: &Path, to: &Path) -> R<()> {
std::fs::create_dir_all(d).map_err(|e| format!("{}: {e}", d.display()))?;
}
std::fs::copy(from, to).map_err(|e| format!("{}: {e}", to.display()))?;
// signed as generated, when this program signs (raea_io_media::sign)
raea_io_media::sign::sign_file(to, raea_io_media::sign::Made::Generated);
Ok(())
}
+1 -1
View File
@@ -65,7 +65,7 @@ fn commit(ws: &Path, paths: &[&Path], what: &str, by: &str) -> R<()> {
let mut add = Command::new("git");
add.arg("-C").arg(ws).args(["add", "-A", "--"]).args(paths);
add.status().map_err(|e| format!("git: {e}"))?;
let ok = Command::new("git").arg("-C").arg(ws).args(["-c", &format!("user.name={by}"), "commit", "-q", "-m", &format!("{by}: {what}"), "--"]).args(paths).status().map_err(|e| format!("git: {e}"))?;
let ok = workspace::git_cmd().arg("-C").arg(ws).args(["-c", &format!("user.name={by}"), "commit", "-q", "-m", &format!("{by}: {what}"), "--"]).args(paths).status().map_err(|e| format!("git: {e}"))?;
if ok.success() { Ok(()) } else { Err(format!("couldn't commit {what}")) }
}
+13 -1
View File
@@ -7,8 +7,20 @@ use std::process::Command;
const USAGE: &str = "usage: raea workspace [--json] | raea workspace init [NAME] [--layout monorepo|submodules] | raea workspace adopt DIR [--name NAME] [--layout monorepo|submodules]\n raea project [--json] | raea project new NAME [--storage inline|submodule] | raea project split NAME [--remote URL] | raea project join NAME";
/// git for raea's own commits. A new Mac has no user.email and a hostname git can't make one from, so every commit
/// failed with "Author identity unknown" and the person's first project was never made. git reads $EMAIL only when
/// user.email isn't set, so this gives a fresh Mac an address without overriding anyone's own.
pub(crate) fn git_cmd() -> Command {
let mut c = Command::new("git");
if std::env::var_os("EMAIL").is_none() {
let user = std::env::var("USER").unwrap_or_else(|_| "raea".into());
c.env("EMAIL", format!("{user}@raea.local"));
}
c
}
pub(crate) fn git(dir: &Path, args: &[&str]) -> R<String> {
let out = Command::new("git").arg("-C").arg(dir).args(args).output().map_err(|e| format!("git: {e}"))?;
let out = git_cmd().arg("-C").arg(dir).args(args).output().map_err(|e| format!("git: {e}"))?;
if !out.status.success() {
return Err(format!("git {}: {}", args.join(" "), String::from_utf8_lossy(&out.stderr).trim()));
}
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# A TSX composition drawn with --at 0 (the still a harness or a bench asks for): fill.tsx, one #246 fill, must write
# frame-00000.png at 160 x 160 with every pixel #246, its last row too. The frame tag below the frame is drawn by its
# own camera (raea-sys-frame spawn_tag): when the frame's camera drew it and that camera was given a w x h Viewport,
# the tag was clipped and --at refused every frame ("no two readbacks with its tag agreed"). Exits 1 on a failure.
# bench/at-0/check.sh (RAEA_BIN: the raea to run, default target/release/raea)
cd "$(dirname "$0")/../.." || exit 2
BIN=${RAEA_BIN:-$PWD/target/release/raea}
export RAEA_SIGN=0 RAEA_MARK=0 RAEA_EXPORT_CACHE=0
OUT=$(mktemp -d "${TMPDIR:-/tmp}/raea-at-0.XXXXXX")
trap 'rm -rf "$OUT"' EXIT
"$BIN" render bench/at-0/fill.tsx --at 0 -o "$OUT/at" > "$OUT/at.log" 2>&1 || { echo "FAIL: the --at 0 render failed"; grep -v WARN "$OUT/at.log" | tail -3; exit 1; }
f="$OUT/at/frame-00000.png"
[ -f "$f" ] || { echo "FAIL: no frame-00000.png"; exit 1; }
got=$(magick "$f" -format "%wx%h %k %[pixel:p{0,159}]" info:)
[ "$got" = "160x160 1 srgba(34,68,102,1)" ] || { echo "FAIL: frame 0 is '$got', not 160x160 1 srgba(34,68,102,1) (size, colours, last row)"; exit 1; }
echo "PASS: --at 0 drew frame 0, every pixel #246"
+6
View File
@@ -0,0 +1,6 @@
// bench/at-0: a 160 x 160 composition of one #246 fill, drawn at frame 0 with --at (check.sh).
import { AbsoluteFill, Composition, registerRoot } from "raea";
const Fill = () => <AbsoluteFill style={{ backgroundColor: "#246" }} />;
registerRoot(() => <Composition id="main" component={Fill} durationInFrames={10} fps={30} width={160} height={160} />);
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# #26: a 3D composition's --at frames step only themselves and their neighbours, and draw as the whole timeline stepped
# draws them. scene.tsx (360 frames) is drawn at four frames with --at and must report the sparse stepping ("N of M
# frames stepped"); frozen.tsx draws the same four frames as a 4-frame composition (each the scene under <Freeze>, so
# its rows come from stepping every frame), and each pair must be pixel-identical; its --manifest must list the four
# frames. Exits 1 on a failure.
# bench/at-3d/check.sh (RAEA_BIN: the raea to run, default target/release/raea)
cd "$(dirname "$0")/../.." || exit 2
BIN=${RAEA_BIN:-$PWD/target/release/raea}
# pixel checks: no Content Credentials or TrustMark id in the frames
export RAEA_SIGN=0 RAEA_MARK=0 RAEA_EXPORT_CACHE=0
OUT=$(mktemp -d "${TMPDIR:-/tmp}/raea-at-3d.XXXXXX")
trap 'rm -rf "$OUT"' EXIT
RAEA_STARTUP_TRACE=1 "$BIN" render bench/at-3d/scene.tsx --at 30,150,270,330 -o "$OUT/at" --manifest "$OUT/at.json" > "$OUT/at.log" 2>&1 || { echo "FAIL: the --at render failed"; tail -5 "$OUT/at.log"; exit 1; }
"$BIN" render bench/at-3d/frozen.tsx -o "$OUT/frozen" > "$OUT/frozen.log" 2>&1 || { echo "FAIL: the frozen render failed"; tail -5 "$OUT/frozen.log"; exit 1; }
status=0
stepped=$(grep -o "[0-9]* of [0-9]* frames stepped" "$OUT/at.log")
[ "$stepped" = "12 of 332 frames stepped" ] || { echo "FAIL: the --at render stepped '${stepped:-every frame}', not 12 of 332"; status=1; }
# --manifest: written for 3D frames too, one entry a frame drawn (#28: a 3D still or --at wrote none)
n=$(python3 -c 'import json,sys;print(len(json.load(open(sys.argv[1]))["frames"]))' "$OUT/at.json" 2>/dev/null)
[ "$n" = 4 ] || { echo "FAIL: the --at render's manifest has ${n:-no} frames, not 4"; status=1; }
for k in 0 1 2 3; do
f=$(printf 'frame-%05d.png' $k)
d=$(magick compare -metric AE "$OUT/at/$f" "$OUT/frozen/$f" null: 2>&1 | cut -d' ' -f1)
[ "$d" = 0 ] || { echo "FAIL: $f differs from the frozen render's in ${d:-?} pixels"; status=1; }
done
[ $status = 0 ] && echo "PASS: $stepped, the four frames pixel-identical to the frozen render's"
exit $status
+16
View File
@@ -0,0 +1,16 @@
// The frames bench/at-3d/check.sh draws from scene.tsx with --at, as a 4-frame composition: each frame k is the scene
// frozen at F[k], so its 3D rows come from stepping frames 0..4, the whole composition, not the sparse path
import { AbsoluteFill, Composition, Freeze, registerRoot, useCurrentFrame } from "raea";
import { Scene } from "./scene3d";
const F = [30, 150, 270, 330];
function Frozen() {
const k = useCurrentFrame();
return (
<AbsoluteFill>
<Freeze frame={F[k]}>
<Scene />
</Freeze>
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="frozen" component={Frozen} width={1280} height={720} fps={60} durationInFrames={4} />);
+4
View File
@@ -0,0 +1,4 @@
// #26's composition: scene3d.tsx's scene over 360 frames, which bench/at-3d/check.sh draws four of with --at
import { Composition, registerRoot } from "raea";
import { Scene } from "./scene3d";
registerRoot(() => <Composition id="steps" component={Scene} width={1280} height={720} fps={60} durationInFrames={360} />);
+27
View File
@@ -0,0 +1,27 @@
import { AbsoluteFill, useCurrentFrame } from "raea";
import { Canvas3D, Entity, ShaderMesh, ToneMapping } from "raea/3d";
import { Camera3d } from "raea/camera";
import { Transform } from "raea/transform";
// #26's scene: 200 small spheres orbiting, each with a per-frame uniform (scene.tsx sets a 360-frame timeline)
const W = `fn shade(in: VertexOutput) -> vec4<f32> { return vec4<f32>(u_level(), 0.6, 0.3, 1.0); }`;
const N = 200;
export function Scene() {
const f = useCurrentFrame();
return (
<AbsoluteFill style={{ background: "#000" }}>
<Canvas3D>
<Camera3d transform={Transform.fromXyz(0, 0, 12).lookingAt([0, 0, 0], [0, 1, 0])} />
<ToneMapping mode="none" />
{Array.from({ length: N }, (_, i) => {
const a = (i / N) * Math.PI * 2 + f * 0.01;
const r = 2 + (i % 10) * 0.4;
return (
<Entity key={i} transform={Transform.fromXyz(Math.cos(a) * r, Math.sin(a) * r, 0)}>
<ShaderMesh name={`s${i}`} shape={{ primitive: "Sphere", radius: 0.12 }} wgsl={W} uniforms={{ level: ((f + i) % 60) / 60 }} />
</Entity>
);
})}
</Canvas3D>
</AbsoluteFill>
);
}
+45
View File
@@ -0,0 +1,45 @@
#!/bin/bash
# #37: background-clip: text clips a background to the element's glyphs, as Chrome does. index.html draws "Gradient"
# three times in a pink-to-cyan gradient on #111, clipped by background-clip (first line), -webkit-background-clip
# alone (second), and background-clip on a block holding the word in a block of its own (third). In each line the G's
# stem must be the gradient's pink, and the box beside and above the word the page's #111 (it was the gradient: the
# box was filled and the text was invisible). Chrome 148 gives these same pixels.
# scrolled.tsx scrolls two boxes of "One Two Three Four" down a line. Only "Three" reaches past x 112, so a strip at x
# 112-140 tells the lines apart: the plain box must show "Two" over "Three" as Chrome does (#46: raea scrolled inline
# text twice, "Three" over "Four"), and the text-clipped one "One" over "Two", Chrome's mask being its text unscrolled.
# Exits 1 on a failure.
# bench/background-clip-text/check.sh (RAEA_BIN: the raea to run, default target/release/raea)
cd "$(dirname "$0")/../.." || exit 2
BIN=${RAEA_BIN:-$PWD/target/release/raea}
export RAEA_SIGN=0 RAEA_MARK=0 RAEA_EXPORT_CACHE=0
OUT=$(mktemp -d "${TMPDIR:-/tmp}/raea-bg-clip-text.XXXXXX")
trap 'rm -rf "$OUT"' EXIT
"$BIN" render bench/background-clip-text/index.html -o "$OUT/a.png" > "$OUT/log" 2>&1 || { echo "FAIL render (log below)"; sed 's/^/ /' "$OUT/log"; exit 1; }
px() { magick "$OUT/a.png" -format "%[fx:int(255*p{$1}.r)] %[fx:int(255*p{$1}.g)] %[fx:int(255*p{$1}.b)]" info:; }
near() { # X,Y R G B: each channel within 6
local got; read -ra got <<< "$(px "$1")"
(( ${got[0]} - $2 <= 6 && $2 - ${got[0]} <= 6 && ${got[1]} - $3 <= 6 && $3 - ${got[1]} <= 6 && ${got[2]} - $4 <= 6 && $4 - ${got[2]} <= 6 )) && return
echo "FAIL at $1: ${got[*]}, wanted $2 $3 $4 ($5)"; status=1
}
ink() { # X,Y,W,H: whether the strip has text in it (its brightest pixel well above the page's #111)
[ "$(magick "$OUT/b.png" -crop "$3x$4+$1+$2" +repage -format '%[fx:maxima.r>0.5?1:0]' info:)" = 1 ]
}
strip() { # Y WANT WHAT
local got=empty; ink 112 "$1" 28 40 && got=ink
[ "$got" = "$2" ] || { echo "FAIL at x 112-140, y $1: $got, wanted $2 ($3)"; status=1; }
}
status=0
for y in 60 180 300; do
near 8,$y 251 2 204 "the G's stem, in the gradient"
near 600,$y 17 17 17 "beside the word: the page"
done
near 200,10 17 17 17 "above the first line's glyphs"
near 200,130 17 17 17 "above the second line's glyphs"
near 200,250 17 17 17 "above the third line's glyphs"
"$BIN" render bench/background-clip-text/scrolled.tsx -o "$OUT/b.png" > "$OUT/log" 2>&1 || { echo "FAIL render scrolled.tsx (log below)"; sed 's/^/ /' "$OUT/log"; exit 1; }
strip 10 empty "the plain scroller's first line: Two"
strip 70 ink "the plain scroller's second line: Three"
strip 130 empty "the clipped scroller's first line: One"
strip 190 empty "the clipped scroller's second line: Two"
[ $status = 0 ] && echo "PASS background-clip: text"
exit $status
+10
View File
@@ -0,0 +1,10 @@
<!doctype html><html><body style="margin:0;background:#111">
<!-- #37: gradient text. The first line clips its background to its text with background-clip, the second with
-webkit-background-clip alone (as older Tailwind and most snippets write it), the third through a block inside
the clipped one, whose text is in the clip too. bench/background-clip-text/check.sh -->
<div data-composition-id="main" data-start="0" data-duration="1" data-width="640" data-height="360" style="font:bold 96px sans-serif;line-height:120px;color:transparent">
<div style="background:linear-gradient(90deg,#f0c,#0cf);background-clip:text">Gradient</div>
<div style="background:linear-gradient(90deg,#f0c,#0cf);-webkit-background-clip:text">Gradient</div>
<div style="background:linear-gradient(90deg,#f0c,#0cf);background-clip:text"><div>Gradient</div></div>
</div>
</body></html>
+16
View File
@@ -0,0 +1,16 @@
// bench/background-clip-text/check.sh's scrolled case: two scrollers of "One Two Three Four" (48px, a 60px line, 120px
// tall), each scrolled down a line. The first is plain pink text: Chrome 148 shows "Two" and "Three" (#46: raea showed
// "Three" and "Four", the text scrolled twice). The second clips a gradient to its text: Chrome masks it with the text
// as at scrollTop 0, so it shows "One" and "Two" (#37).
import { Composition, registerRoot } from "raea";
const box = { height: 120, overflow: "hidden" } as const;
const clip = { ...box, background: "linear-gradient(90deg,#f0c,#0cf)", backgroundClip: "text", color: "transparent" } as const;
function Scrolled() {
return (
<div style={{ width: 640, height: 240, background: "#111", font: "bold 48px sans-serif", lineHeight: "60px" }}>
<div style={{ ...box, color: "#f0c" }} scrollTop={60}>One<br />Two<br />Three<br />Four</div>
<div style={clip} scrollTop={60}>One<br />Two<br />Three<br />Four</div>
</div>
);
}
registerRoot(() => <Composition id="scrolled" component={Scrolled} width={640} height={240} fps={30} durationInFrames={1} />);
+12 -2
View File
@@ -10,13 +10,23 @@ description = "Bevy's own examples, built against raea's Bevy with the parity pr
# the feature list engine/render's bevy has (its bevy-all: dfg_lut and bluenoise_texture too, which stock Bevy's defaults
# leave out; without the DFG table rough surfaces at grazing angles take less ambient, many_cubes' box srgb 64 for 88), so the
# examples build against the Bevy raea already compiled, and winit: the examples open a window (raea's renders don't), and bevy_scene: Bevy 0.20's examples write their scenes in BSN
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "default_font", "multi_threaded", "3d_bevy_render", "ui_bevy_render", "png", "jpeg", "tonemapping_luts", "ktx2", "zstd_rust", "smaa_luts", "experimental_pbr_pcss", "area_light_luts", "dfg_lut", "bluenoise_texture", "bevy_gilrs", "bevy_winit", "bevy_scene"] }
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "default_font", "system_font_discovery", "ghost_nodes", "multi_threaded", "3d_bevy_render", "ui_bevy_render", "png", "jpeg", "tonemapping_luts", "ktx2", "zstd_rust", "smaa_luts", "experimental_pbr_pcss", "area_light_luts", "dfg_lut", "bluenoise_texture", "bevy_gilrs", "bevy_winit", "bevy_scene", "bevy_camera_controller", "free_camera", "pan_camera", "pan_orbit_camera", "bevy_gizmos", "bevy_gizmos_render", "bevy_state", "picking", "mesh_picking", "sprite_picking", "ui_picking", "hdr", "exr", "webp", "bevy_dev_tools", "bevy_ui_widgets", "bevy_feathers", "bevy_audio", "vorbis", "wav", "mp3", "morph_animation", "bevy_input_focus", "custom_cursor", "serialize", "reflect_functions", "pbr_multi_layer_material_textures"] }
raea-sys-parity = { path = "../../systems/parity" }
# Bevy's examples' own dependencies (bevy v0.20.0's dev-dependencies)
argh = "0.1.12"
accesskit = "0.24"
rand = "0.10.0"
chacha20 = { version = "0.10.0", default-features = false, features = ["rng"] }
bytemuck = { version = "1", features = ["derive"] }
indexmap = "2"
nonmax = "0.5"
# used by the ported examples, which build.rs copies in through include! where cargo-shear doesn't look
[package.metadata.cargo-shear]
ignored = ["argh", "rand", "chacha20"]
ignored = ["argh", "accesskit", "rand", "chacha20", "bytemuck", "indexmap", "nonmax"]
# Bevy's examples ask cfg(feature = "default_font") of the crate they're built in: in Bevy's repo that's bevy's own
# feature, on by default; here the host's, so it has one, on (ui/text/text builds only its default-font branch)
[features]
default = ["default_font"]
default_font = []
+6
View File
@@ -37,7 +37,13 @@ fn main() {
// include_str!/include_bytes! paths are relative to the example, not to OUT_DIR
.replace("include_str!(\"", &format!("include_str!(\"{}/", file.parent().unwrap().display()))
.replace("include_bytes!(\"", &format!("include_bytes!(\"{}/", file.parent().unwrap().display()))
// and so are its #[path] modules (examples/helpers: radio.rs, number_input_f32.rs, ...)
.replace("#[path = \"", &format!("#[path = \"{}/", file.parent().unwrap().display()))
// the example is a module of the host, so its crate root is that module
.replace("use crate::", "use self::")
.replace("App::new()", "crate::parity_app()")
// DefaultPlugins without a window when headless (crate::plugins)
.replace("DefaultPlugins", "crate::plugins(DefaultPlugins)")
.replace("\nfn main()", "\npub fn main()");
// an example drawing from an unseeded rng draws differently every run (two runs of many_lights: SSIM 0.58), so
// its draws are made a fixed sequence its port computes the same way: the n-th light's hue the golden angle
Loaded 100 of 1429 files, more files were not shown because too many files have changed in this diff. Show more