mirror of
https://github.com/storytold/AniCraft.git
synced 2026-12-01 10:34:28 +01:00
chore: merge main into fix/backlog-web-build
This commit is contained in:
commit
9fbe4a9f79
40 files changed
+1563
-166
No files matched your search
@@ -0,0 +1,86 @@
|
||||
# ADR 0138: Fills of one merged drawing join without a seam
|
||||
|
||||
* Status: accepted (2026-11-27), built
|
||||
* Relates to: ADR 0031 (merge drawing), ADR 0002 (the render pipeline), ADR 0019 and ADR 0029
|
||||
(the GPU stage draws what the oracle prepares), ADR 0070 (soft masks), ADR 0122 (a moved raw
|
||||
selection floats), ADR 0125 (the roadmap as a guideline; backlog item P-013), issue #182
|
||||
|
||||
## Context
|
||||
|
||||
Merge drawing leaves one element per fill region. Two regions that meet share an edge exactly:
|
||||
the same Bézier pieces, one traced each way. Each fill was drawn on its own, anti-aliased, one
|
||||
over the other. In a pixel the shared edge crosses, the first fill covers a part `a` and the
|
||||
second the rest, `1 − a`, and drawing one over the other lets `a · (1 − a)` of what is below
|
||||
through: up to a quarter of the stage's colour, as a hairline along every shared edge
|
||||
(issue #182, a red fill cut by a curve on a white stage). The outlines are right; the mistake
|
||||
is in treating two coverages of one pixel as if they were independent, when the two fills lie
|
||||
side by side. It is the same on the CPU oracle and the GPU stage, which composites the way the
|
||||
oracle does, and in masks, where two such fills united as `a + b − ab`.
|
||||
|
||||
## Decision
|
||||
|
||||
1. **The display list says which fills are side by side.** `DisplayItem::joins` is set by
|
||||
`evaluate` on a shape of a merged drawing that follows another shape of the same drawing:
|
||||
the raw shapes of one keyframe on one layer (a group's, or a symbol's layer's, are drawings
|
||||
of their own). It is a fact about the document, so every renderer gets it and `evaluate`
|
||||
stays pure.
|
||||
|
||||
2. **A run of joined fills is added up, then composited once.** The renderer makes a run of
|
||||
consecutive joined fills that are drawn as fills in the same layer, clip and group, with
|
||||
nothing between them (a fill's own stroke ends the run: it is drawn before the next fill).
|
||||
Per pixel a run starts transparent, with nothing covered. Each fill, of coverage `k` and
|
||||
colour `s`, with `c` covered so far:
|
||||
* hides what it must overlap, `o = max(0, c + k − 1)`: the run's colour times
|
||||
`1 − o / c · s.a`;
|
||||
* adds `s · k`, and `c` becomes `min(1, c + k)`.
|
||||
|
||||
When the run ends its colour goes src-over onto what is below, times its clip's coverage.
|
||||
For two fills that share an edge `c + k = 1`: nothing overlaps, the colours add up to full
|
||||
cover and nothing below shows. Half-transparent fills side by side stay half-transparent
|
||||
along the edge, where one over the other made the edge denser.
|
||||
|
||||
3. **Side by side as far as the pixel has room, one over the other past that.** The rule
|
||||
takes two partial coverages of a pixel to overlap as little as they can. Where either fill
|
||||
covers the pixel whole it is exactly src-over, so fills that do lie over each other (a
|
||||
shape moved onto the drawing and still floating, ADR 0122; a file written by hand) are
|
||||
drawn as before everywhere except in pixels both their edges cross, and there the
|
||||
difference is a fraction of a pixel's coverage. We chose this over trusting the flag
|
||||
blindly (adding without the overlap term), which would brighten or darken overlapping
|
||||
fills over their whole area.
|
||||
|
||||
4. **Masks join the same way.** A coverage mask unites a run's coverage as one fill's; a soft
|
||||
mask composites the run's colour. A mask drawn as two fills no longer leaks or hides along
|
||||
their edge.
|
||||
|
||||
5. **The oracle defines it, the GPU follows.** `Fill::run` numbers the runs in a prepared
|
||||
scene. The fine shader keeps the run's colour and coverage per pixel and ends the run at
|
||||
the first entry that isn't of it; the number rides in the op header's flags. The parity
|
||||
tests compare both on joined fills in the open, in masks, in a soft mask and in a fading
|
||||
group.
|
||||
|
||||
6. **What it costs.** A pixel a fill covers whole, where the run has nothing yet, is drawn at
|
||||
once, so only the pixels along edges go through the run's buffers, which each render thread
|
||||
keeps. A 1280 × 720 frame of 1,000 joined fills takes the oracle 2.4 ms, and 2.5 ms drawn
|
||||
one over the other (the same within noise; with buffers made anew for every band it was
|
||||
5.8 ms).
|
||||
|
||||
## Consequences
|
||||
|
||||
* The hairline of #182 is gone from the stage (CPU and GPU), Test Movie and every raster export,
|
||||
for drawings made here and raw shapes opened from Animate files alike.
|
||||
* Pixels along the shared edges of merged fills change; nothing else does. One golden picture
|
||||
had such an edge and was made anew (`crates/xfl/tests/corpus/filters`, one row of 160
|
||||
pixels between a dark and a light fill): each pixel is now the even mix of the two fills it
|
||||
lies half in, (96, 111, 106), where it had the white stage in it, (148, 151, 132). The other
|
||||
31 corpus frames are within their tolerance and were left as they were.
|
||||
* Edges that are shared but flattened differently (two shapes that only happen to touch, not
|
||||
cut by the merge) add up to within the flattening tolerance, a tenth of a pixel, instead of
|
||||
exactly.
|
||||
* *Not covered:* the vector exports (SVG, HTML canvas, Lottie) write each fill as its own path,
|
||||
and a viewer that anti-aliases them one over the other shows the same hairline there; fills
|
||||
of one drawing separated in the stacking order by a line (the merge keeps a drawing's fills
|
||||
under its lines, so this is rare); a fill meeting a drawing object or another layer.
|
||||
* *Rejected:* growing each fill under its neighbours (wrong for transparent fills, and it
|
||||
needs to know which edges are shared); drawing a merged drawing through one coverage pass
|
||||
with a paint per region (a second rasterizer for both renderers); supersampling (it thins the
|
||||
hairline, never removes it).
|
||||
@@ -34,18 +34,20 @@ Animator and Designer, plus your own saved workspaces and Reset.
|
||||
| Find and Replace | **Edit › Find and Replace** (**Ctrl+F**). |
|
||||
| Publish Settings | **File › Publish Settings…** (**Ctrl+Shift+F12**). |
|
||||
|
||||
Not in AniCraft yet: Components, Code Snippets, the Assets panel, and moving the Tools panel.
|
||||
The Tools panel moves like the others: drag the dotted grip at its top. Not in AniCraft yet:
|
||||
Components, Code Snippets and the Assets panel.
|
||||
See [The workspace](workspace.md) for a tour.
|
||||
|
||||
## Tools and their keys
|
||||
|
||||
Each tool has the key you already know.
|
||||
Most tools have the key you already know.
|
||||
|
||||
| Tool | Key | Notes |
|
||||
|---|---|---|
|
||||
| Selection | **V** | Selects raw strokes and fills with the dot pattern; drag an edge to bend it. |
|
||||
| Subselection | **A** | Points and handles, on raw drawings and drawing objects. |
|
||||
| Free Transform | **Q** | Scale, skew (drag the line between two handles), rotate and move; Shift and Alt as you'd expect. Drag the white circle to move the transformation point, double-click it to centre it; a rotated instance's box turns with it. |
|
||||
| Asset Warp | **Shift+Q** | Pins that bend a shape or a bitmap. |
|
||||
| Gradient Transform | **F** | Its own button (no flyouts yet). Gradient and bitmap fills, with Lock Fill. |
|
||||
| Width | **U** | Variable-width strokes, with profiles in Properties. |
|
||||
| Bone | **M** | Joins symbol instances into an armature, or draws bones inside a shape. |
|
||||
@@ -54,6 +56,7 @@ Each tool has the key you already know.
|
||||
| Text | **T** | Static, dynamic and input text. |
|
||||
| Pencil | **Shift+Y** | Smooth, Straighten and Ink modes. |
|
||||
| Brush | **B** | Like Animate's Classic Brush: paints filled shapes, with pen pressure. |
|
||||
| Paint Brush | **Y** | Draws a line in the stroke colour; its width follows pen pressure. |
|
||||
| Eraser | **E** | Five erase modes and the Faucet. |
|
||||
| Rectangle | **R** | With corner radius. |
|
||||
| Oval | **O** | |
|
||||
@@ -67,9 +70,9 @@ Each tool has the key you already know.
|
||||
| Zoom | **Z** | |
|
||||
| Object Drawing | **J** | Toggles between merge drawing and drawing objects. |
|
||||
|
||||
Not in AniCraft yet: the Lasso, Polygon and Magic Wand tools, the 3D tools,
|
||||
Asset Warp, the Paint Brush and Fluid Brush, Deco and the Spray Brush. More on the tools in
|
||||
[Drawing](drawing.md).
|
||||
Not in AniCraft yet: the Lasso, Polygon and Magic Wand tools, the 3D tools, the Fluid Brush,
|
||||
Deco and the Spray Brush. More on the tools in [Drawing](drawing.md); Asset Warp is in
|
||||
[Masks, guides, camera and bones](masks-guides-camera-bones.md#asset-warp).
|
||||
|
||||
## Keys that work as in Animate
|
||||
|
||||
@@ -81,6 +84,7 @@ Asset Warp, the Paint Brush and Fluid Brush, Deco and the Spray Brush. More on t
|
||||
| Clear keyframe | **Shift+F6** | Insert › Timeline › Clear Keyframe |
|
||||
| Insert blank keyframe | **F7** | Insert › Timeline › Blank Keyframe |
|
||||
| Convert to symbol | **F8** | Modify › Convert to Symbol… |
|
||||
| Document Settings | **Ctrl+J** | Modify › Document Settings |
|
||||
| Actions panel | **F9** | Window › Actions |
|
||||
| Play and stop | **Enter** | Control › Play |
|
||||
| Previous and next frame | **,** and **.** | Control |
|
||||
@@ -104,6 +108,8 @@ Asset Warp, the Paint Brush and Fluid Brush, Deco and the Spray Brush. More on t
|
||||
| Add shape hint | **Ctrl+Shift+H** | Modify › Shape › Add Shape Hint |
|
||||
| Find and Replace, Find Next | **Ctrl+F**, **F3** | Edit › Find and Replace |
|
||||
| Movie Explorer | **Alt+F3** | Window › Movie Explorer |
|
||||
| Library, Timeline, Tools and Properties panels | **Ctrl+L**, **Ctrl+Alt+T**, **Ctrl+F2**, **Ctrl+F3** | Window |
|
||||
| Hide and show panels | **F4** | Window › Hide Panels |
|
||||
| Snap to objects | **Ctrl+Shift+/** | View › Snapping › Snap to Objects |
|
||||
| Zoom in and out | **Ctrl+=**, **Ctrl+-** | View |
|
||||
| Preferences (Windows and Linux) | **Ctrl+U** | Edit › Preferences… |
|
||||
@@ -115,14 +121,12 @@ frame, and **Shift+PageUp** and **Shift+PageDown** for the previous and next sce
|
||||
|
||||
### Keys that differ
|
||||
|
||||
* **Ctrl+K** opens AniCraft's command palette, which finds any command by name. Align is always on
|
||||
the right, and on **Ctrl+Alt+1** to **6**.
|
||||
* **Ctrl+K** opens AniCraft's command palette, which finds any command by name. The Align panel
|
||||
has no key by default; aligning is on **Ctrl+Alt+1** to **6**.
|
||||
* **Ctrl+G** and **Ctrl+Shift+G** group and ungroup, as in Animate. A drawing object that
|
||||
mixes colours, such as the result of a Union, is a group in AniCraft: double-click it to edit
|
||||
inside.
|
||||
* **Ctrl+F8** (New Symbol): not there yet. Draw something and convert it with **F8**.
|
||||
* **Ctrl+J** (Document Settings): it is **Modify › Document Settings**, with no key by default.
|
||||
* Panel toggles such as **Ctrl+L** for the Library have no key yet; use the **Window** menu.
|
||||
* **Ctrl+0** fits the stage in the window and **Ctrl+1** shows it at 100 %.
|
||||
|
||||
Any key can be changed in **Help › Keyboard Shortcuts** (**Ctrl+Alt+Shift+K**, as in Animate), so you can bring back a habit
|
||||
@@ -143,8 +147,8 @@ Press **J** for Object Drawing to draw shapes that stay separate. Scripts and th
|
||||
draw objects unless told otherwise.
|
||||
|
||||
This behaviour was rebuilt to match Animate closely, and the remaining differences are tracked in
|
||||
issue 42 on [GitHub issues](https://github.com/storytold/AniCraft/issues). One known gap:
|
||||
variable-width strokes don't take part in merging yet.
|
||||
issue 42 on [GitHub issues](https://github.com/storytold/AniCraft/issues). Variable-width
|
||||
strokes merge too: a piece cut from one keeps the widths it had there.
|
||||
|
||||
### Classic, motion and shape tweens
|
||||
|
||||
@@ -192,16 +196,24 @@ ActionScript 1.0 and 2.0, and scripts placed on instances. See [Interactivity](i
|
||||
formats you choose at once. See [Exporting and publishing](exporting-and-publish.md).
|
||||
* **Test Movie** (**Ctrl+Enter**) opens in its own window with an Output panel; **Esc** closes it.
|
||||
|
||||
## More that works as in Animate
|
||||
|
||||
| In Animate | In AniCraft |
|
||||
|---|---|
|
||||
| Several documents in tabs | A tab for each open document, below the menu bar. See [Document tabs](workspace.md#document-tabs). |
|
||||
| Saved workspaces | **Window › Workspace › Save Workspace…** and **Manage Workspaces…**. See [Workspaces](workspace.md#workspaces). |
|
||||
| Envelope | **Modify › Transform › Envelope**. The bent artwork is plain shapes afterwards, so there is no Delete Envelope. See [Envelope](drawing.md#envelope). |
|
||||
| Brush modes, pressure and brush presets | The Brush's options in Properties: five paint modes, with Paint Selection and Paint Inside, and a pressure curve. **Window › Brush Library** keeps the built-in brushes and your own. See [The Brush](drawing.md#the-brush). |
|
||||
| Bone springs and joint translation | **Properties › Bone**. One armature can mix symbol instances and shapes. See [Bone properties](masks-guides-camera-bones.md#bone-properties). |
|
||||
| Styles on single characters | Select characters with the Text tool and style them. See [Styling words and characters](text.md#styling-words-and-characters). |
|
||||
| Text on a path | **Modify › Text › Attach Text to Path**. See [Text on a path](text.md#text-on-a-path). |
|
||||
|
||||
## Not in AniCraft yet
|
||||
|
||||
Besides the tools and keys above, these are still to come:
|
||||
|
||||
* saved workspaces and several open documents at once;
|
||||
* Envelope and Delete Envelope, and editing a multi-colour drawing object without opening it;
|
||||
* editing a multi-colour drawing object without opening it;
|
||||
* motion tweens and bones from Animate documents;
|
||||
* spring and joint translation for bones, and armatures mixing symbols and shapes;
|
||||
* the Brush's Paint Selection and Paint Inside modes, pressure curves and a brush library;
|
||||
* per-character text styles and text on a path;
|
||||
* full screen and zoom in Test Movie;
|
||||
* shared libraries;
|
||||
* SWF, AIR and other runtime targets.
|
||||
|
||||
+25
-4
@@ -19,13 +19,16 @@ your hand.
|
||||
| Selection | **V** | Select, move and bend artwork |
|
||||
| Subselection | **A** | Edit points and curve handles |
|
||||
| Free Transform | **Q** | Scale, skew, rotate and move |
|
||||
| Asset Warp | **Shift+Q** | Bend a shape or a bitmap with pins |
|
||||
| Gradient Transform | **F** | Move, turn and stretch a gradient or bitmap fill |
|
||||
| Width | **U** | Vary a line's thickness along it |
|
||||
| Bone | **M** | Join symbol instances into a poseable armature |
|
||||
| Bind | **Shift+M** | Choose which points of a shape follow which bone |
|
||||
| Pen | **P** | Draw precise curves point by point |
|
||||
| Text | **T** | Type text on the stage |
|
||||
| Pencil | **Shift+Y** | Draw freehand lines |
|
||||
| Brush | **B** | Paint filled shapes |
|
||||
| Paint Brush | **Y** | Draw lines whose width follows pen pressure |
|
||||
| Eraser | **E** | Rub out lines and fills |
|
||||
| Rectangle | **R** | Draw rectangles and squares |
|
||||
| Oval | **O** | Draw ovals and circles |
|
||||
@@ -42,7 +45,7 @@ While a drawing tool is in your hand, its options appear at the top of **Propert
|
||||
and stroke, line style, and the tool's own settings. You can change any of these keys in the
|
||||
shortcut editor (**Ctrl+Alt+Shift+K**).
|
||||
|
||||
The Bone and Camera tools are covered in
|
||||
The Bone, Bind, Asset Warp and Camera tools are covered in
|
||||
[Masks, guides, camera and bones](masks-guides-camera-bones.md), and the Text tool in
|
||||
[Text](text.md).
|
||||
|
||||
@@ -66,8 +69,8 @@ you don't want, and fill the spaces.
|
||||
that never cut or merge, and they're easy to move, stack and edit one at a time.
|
||||
|
||||
To switch between them, press **J**, or tick **Object drawing** in the tool's options in
|
||||
Properties. The setting applies to the Rectangle, Oval, PolyStar, Line, Pen, Pencil and Brush
|
||||
tools.
|
||||
Properties. The setting applies to the Rectangle, Oval, PolyStar, Line, Pen, Pencil, Brush and
|
||||
Paint Brush tools.
|
||||
|
||||
The Eraser only erases merged drawing. Drawing objects, symbols and text are left alone by
|
||||
it. To turn a drawing object back into merged drawing, select it and choose **Modify › Break
|
||||
@@ -94,7 +97,9 @@ With the **Selection** tool (**V**) on merged drawing:
|
||||
* **Drag a marquee** to select the parts of fills and lines under it, cut at the marquee's
|
||||
edges, plus any objects it touches (symbol instances, groups, drawing objects, text and
|
||||
bitmaps are taken whole). **Shift** adds more. If you click away without
|
||||
changing anything, the drawing is whole again.
|
||||
changing anything, the drawing is whole again. To take only the objects that are wholly
|
||||
inside the marquee, turn off **The marquee takes objects it touches** in
|
||||
[Preferences](preferences-shortcuts-accessibility.md#stage).
|
||||
* **Drag an unselected line** or the edge of a fill to **bend** it into a curve through the
|
||||
pointer. Its ends stay put, and a straight edge bends into one even arc wherever you grab it.
|
||||
* **Ctrl-drag** (**⌘-drag** on a Mac) a line or the edge of a fill to add a **corner point**
|
||||
@@ -176,6 +181,22 @@ the tip sweeps. A click paints a single dab. The options set the **Size** (or pr
|
||||
The last three never cover lines. With
|
||||
a pen tablet, pressure sets the width, from 10 % to the full size.
|
||||
|
||||
**Pressure.** Under **Pressure**, tick **Size**, **Opacity** or both to choose what the pen's
|
||||
pressure changes. **Curve** shapes the response: pick one of the presets beside it, or drag
|
||||
the points of the curve (drag elsewhere on it to add a point, double-click a point to remove
|
||||
it). Without a pen, **Speed as pressure** makes a faster stroke thinner.
|
||||
|
||||
**Brushes.** The **Brush** menu in the options picks a ready-made brush, such as Ink Pen,
|
||||
Marker or Chalk. **Library…** beside it, or **Window › Brush Library**, shows every brush with
|
||||
a preview. To keep a brush of your own, set it up in Properties, type a name in the Brush
|
||||
Library and click **Save Brush**. Right-click a brush of yours to rename or delete it;
|
||||
**Import…** and **Export…** move your brushes between computers as a brush set file.
|
||||
|
||||
**The Paint Brush** (**Y**) draws a line in the stroke colour instead of a filled shape. Its
|
||||
width follows the pen's pressure and the brush's tapers, and you can reshape it afterwards
|
||||
with the Width tool (see [Variable-width lines](#variable-width-lines)). It uses the same
|
||||
brushes and pressure settings, and **[** and **]** change its size.
|
||||
|
||||
**Texture and scatter.** **Texture** lets a paper grain show through the paint, like charcoal
|
||||
on rough paper; the grain stays put on the stage, so strokes laid over each other share it.
|
||||
**Scatter** throws dabs either side of the stroke and varies their size, for spatter and
|
||||
|
||||
@@ -437,7 +437,9 @@ Lottie animations carry no sound. See [Exporting and Publish](exporting-and-publ
|
||||
|
||||
## Not yet
|
||||
|
||||
* Picking a colour from a bitmap's pixels with the Eyedropper.
|
||||
* Picking a colour from a bitmap's pixels with the Eyedropper tool (it picks up whole fills).
|
||||
The eyedropper of an open colour picker does take the colour of a pixel: see
|
||||
[Choosing colours](drawing.md#choosing-colours).
|
||||
* Panning beyond what the envelope does.
|
||||
* Convert Audio to Keyframes on the camera or an armature layer, a filter's values, or with a
|
||||
classic tween between the keys; the sound's own effect (a fade) isn't counted in its
|
||||
|
||||
@@ -202,7 +202,8 @@ function onTick(e:Event):void {
|
||||
* Event bubbling, mouse listeners on the stage, and event fields such as `stageX` and
|
||||
`charCode`.
|
||||
* `getChildByName`, stage properties, sound and timers from scripts.
|
||||
* `Event.CHANGE` and other text field events, `htmlText` and text formatting from scripts.
|
||||
* Text field events other than `Event.CHANGE`, and text formatting from scripts other than
|
||||
`htmlText`.
|
||||
* ActionScript 1.0 and 2.0, and scripts attached to instances in older documents.
|
||||
* `navigateToURL` and other calls that reach outside the movie are ignored and noted in Output.
|
||||
|
||||
|
||||
@@ -126,6 +126,11 @@ portable copy, `data/themes` beside the app). To check a file without opening An
|
||||
Both settings are also in **View › Stage Rendering**, so you can switch without opening
|
||||
Preferences.
|
||||
|
||||
* **Selection**: **The marquee takes objects it touches** is on to begin with: a box dragged
|
||||
with the Selection tool selects every symbol instance, group, drawing object, text and bitmap
|
||||
it reaches. Turn it off to select only the objects that are wholly inside the box. Shapes
|
||||
drawn without Object Drawing are cut at the box's edges either way.
|
||||
|
||||
* **Window graphics**: how the whole window is drawn. **Automatic** (the default) tries the best
|
||||
way for your computer first and the next one if it doesn't work. If the window flickers or
|
||||
goes black, choose another way: **DirectX 12**, **Vulkan** or **OpenGL** on Windows, **Metal**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Command reference
|
||||
|
||||
Everything you can do in AniCraft is a command: the menus, the shortcuts, the command palette (**Ctrl+K**, macOS **⌘K**), `anicraft-cli` and AI assistants over MCP all run the same 406 commands, listed here by menu. The id is what scripts and [working headless](../working-headless.md) use; the parameters are what a command takes as JSON. Commands that change the document are one undo step each. Your own shortcuts (**Help › Keyboard Shortcuts**) replace the defaults shown here; see the [shortcut reference](shortcuts.md).
|
||||
Everything you can do in AniCraft is a command: the menus, the shortcuts, the command palette (**Ctrl+K**, macOS **⌘K**), `anicraft-cli` and AI assistants over MCP all run the same 407 commands, listed here by menu. The id is what scripts and [working headless](../working-headless.md) use; the parameters are what a command takes as JSON. Commands that change the document are one undo step each. Your own shortcuts (**Help › Keyboard Shortcuts**) replace the defaults shown here; see the [shortcut reference](shortcuts.md).
|
||||
|
||||
This page is generated from the command registry, so it always matches the version of AniCraft it came with.
|
||||
|
||||
@@ -581,8 +581,10 @@ These commands have no menu item: the panels, the stage and the timeline use the
|
||||
Parameters: ``{index, at} moves this scene's guide `index` (as view.aids lists them) to `at`; refused while guides are locked``
|
||||
- **Delete Guide** `view.guide_delete` · changes the document
|
||||
Parameters: ``{index} removes this scene's guide `index`; refused while guides are locked``
|
||||
- **Marquee Takes Touched Objects** `view.select_touching`
|
||||
Parameters: `{on?: bool} (default: toggle) the marquee takes the objects it only touches (on, as AniCraft starts) or only the objects wholly inside it; kept with the preferences`
|
||||
- **Rulers, Grid and Guides** `view.aids`
|
||||
Parameters: `{} whether the rulers, grid and guides show and snap, whether selection edges are hidden, the grid's and guides' settings, and this scene's guides [{axis, at}, ..]`
|
||||
Parameters: `{} whether the rulers, grid and guides show and snap, whether selection edges are hidden, whether the marquee takes objects it only touches (select_touching), the grid's and guides' settings, and this scene's guides [{axis, at}, ..]`
|
||||
- **Combine Objects** `modify.combine` · changes the document
|
||||
Parameters: `{op: union|intersect|punch|crop} combines the selected shapes on the active layer, bottom to top as they are stacked (ADR 0073). union: one drawing object of everything (a group of the merged pieces when they have more than one colour or keep lines); intersect: the area every one covers, in the topmost's fill and stroke; punch: the topmost's area cut out of each of the others; crop: each of the others cut to the topmost's area. Punch and crop remove the topmost. A result of one fill (or one line) is a drawing object, one of several is a group of raw shapes → {op, created}`
|
||||
- **List Library** `library.items`
|
||||
@@ -636,7 +638,7 @@ These commands have no menu item: the panels, the stage and the timeline use the
|
||||
- **Move Point** `raw.move_point` · changes the document
|
||||
Parameters: ``{x, y, to_x, to_y, with?: [[x, y], ..], points?: [[id, cmd], ..], snap?, slop?, merge?: bool} moves the corner or end at (x, y), with every raw shape that shares it, to (to_x, to_y), snapped within `snap` to points, lines and fill edges (while Snap to Objects is on); the anchors at `with` move by as much; returns the points to pass on while a drag goes on``
|
||||
- **Select Parts** `raw.select_rect` · changes the document
|
||||
Parameters: `{x0, y0, x1, y1, add?: bool} the marquee, on every visible, unlocked layer: the parts of raw fills and strokes under the rectangle (cut at its edges, per layer) and the objects it touches`
|
||||
Parameters: ``{x0, y0, x1, y1, add?: bool, touch?: bool} the marquee, on every visible, unlocked layer: the parts of raw fills and strokes under the rectangle (cut at its edges, per layer) and the objects it touches, or with `touch` false only the objects wholly inside it (default: as view.select_touching is set)``
|
||||
- **Merge Shapes** `raw.merge` · changes the document
|
||||
Parameters: `{ids?: [..]} the raw shapes (default: the selection) merge again with the raw shapes they touch, in place`
|
||||
- **Selection Tool Target** `raw.hit`
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Windows, Linux and macOS release-ref nightly: supervised manual go-live
|
||||
|
||||
**Enabled for supervised manual runs, not yet qualified.** The producer (`nightly.yml`, main) and the
|
||||
signer (`nightly-sign.yml`, release) keep only their exact context guards and run when one of the reviewed
|
||||
manual actors dispatches them. There is no schedule yet. The installed policy
|
||||
[`.github/nightly-signing-policy.json`](../.github/nightly-signing-policy.json) is the v3
|
||||
policy for `storytold/anicraft`. Once `nightly.yml` lands on `main`, populate `producer_workflow_id`
|
||||
before promoting the policy to `release`, read with:
|
||||
signer (`nightly-sign.yml`, on the dedicated `nightly-signer` branch) keep only their exact context
|
||||
guards and run when one of the reviewed manual actors dispatches them. There is no schedule yet. The
|
||||
installed policy [`.github/nightly-signing-policy.json`](../.github/nightly-signing-policy.json) is the
|
||||
v3 policy for `storytold/anicraft`. Its `producer_workflow_id` is `nightly.yml`'s registration on
|
||||
`main`, read with:
|
||||
|
||||
```bash
|
||||
gh api repos/storytold/anicraft/actions/workflows/nightly.yml --jq .id
|
||||
@@ -14,27 +14,39 @@ gh api repos/storytold/anicraft/actions/workflows/nightly.yml --jq .id
|
||||
The callers pass no platform secrets. The unsigned reusable caller's maximum OIDC/attestation
|
||||
permissions are for its isolated attester; its compiler narrows to contents and Actions read
|
||||
only, with no OIDC, attestation write, release environment or platform signing secrets.
|
||||
Shared tooling is pinned to `605d58766e8f536564da8fc81d3676ac86816dea`, the craft-common-actions
|
||||
main commit that merged [#339](https://github.com/storytold/craft-common-actions/pull/339) (bounded
|
||||
lineage compares and an issue reread at the end of candidate admission) on top of
|
||||
[#342](https://github.com/storytold/craft-common-actions/pull/342) (policy v3, the `platforms` input
|
||||
and the Linux and macOS legs). Both callers name it in `uses` and `tooling-revision`. A pin is reviewed
|
||||
source availability, not provider, queue, native signing or crypto qualification.
|
||||
Shared tooling is pinned to `be00e5ccd18b68e950c8a08532f2230e7c3d0cba`, the craft-common-actions
|
||||
main commit that merged [#371](https://github.com/storytold/craft-common-actions/pull/371) (the
|
||||
candidate is admitted on the built commit's own Sonar analysis, not main's latest) after
|
||||
[#370](https://github.com/storytold/craft-common-actions/pull/370) (the Windows and macOS nightly
|
||||
registry rows for the 14 apps) and
|
||||
[#369](https://github.com/storytold/craft-common-actions/pull/369) (shared helper checkouts kept out
|
||||
of the app's clean-source check, and macOS on `macos-15`), following
|
||||
[#364](https://github.com/storytold/craft-common-actions/pull/364) (the signer may run on the
|
||||
policy's signer branch) and [#363](https://github.com/storytold/craft-common-actions/pull/363) (the
|
||||
multi-app pipeline, which makes the signer's `app-name` input required and admits any reviewed
|
||||
registry app), with #342 (`a4f6fd51`, policy v3 and the `platforms` input) and #339 (`605d5876`)
|
||||
earlier. Both callers name it in `uses` and `tooling-revision`. A pin is reviewed source
|
||||
availability, not provider, queue, native signing or crypto qualification.
|
||||
Existing stable workflows are unchanged.
|
||||
|
||||
**The shared-workflow port is a prerequisite.** At this pin both reusable workflows admit only
|
||||
PhotoCraft: `nightly-unsigned.yml` requires `inputs.app-name == 'photocraft'` and
|
||||
`github.repository == 'storytold/photocraft'` on its build jobs, and `nightly-release.yml` requires the
|
||||
same repository in `validate` and every signing job (its concurrency group is
|
||||
`craft-release-ref-signer-photocraft`). A AniCraft dispatch therefore builds and signs nothing until
|
||||
`storytold/craft-common-actions` admits `storytold/anicraft`. No dispatch can produce a release before
|
||||
that port, and both callers' `uses`, `tooling-revision` and the policy pins must move to the same
|
||||
reviewed revision together. The port is craft-common-actions #363 ("run the shared nightly pipeline for
|
||||
any reviewed registry app"); until it merges these callers are inert.
|
||||
|
||||
**First runs.** The first runs are manual dispatches in this order: `nightly.yml` on `main` (only a
|
||||
listed manual actor passes the producer's plan step), then `nightly-sign.yml` on `release` with that
|
||||
producer run ID and attempt, by a listed manual actor.
|
||||
listed manual actor passes the producer's plan step), then `nightly-sign.yml` on `nightly-signer`
|
||||
with that producer run ID and attempt, by a listed manual actor.
|
||||
|
||||
**Signer branch.** The signer runs on `refs/heads/nightly-signer`, not on the stable `release`
|
||||
branch, so nightly signer files never need a stable release sync. The policy's `release_branch`
|
||||
names it and the signer's guard requires it; this app has no automatic dispatch transport, so
|
||||
nothing else targets the branch. The branch only fast-forwards to reviewed main commits, through the
|
||||
settings script's `advance` (no queued signer run, a trust-closure scan, then the full diff of
|
||||
`.github/` and `packaging/`), and the existing `release` environment must admit `nightly-signer`
|
||||
alongside `release` before the first dispatch (a repository settings change, not a workflow one).
|
||||
Its trust closure is all of `.github/` and `packaging/`, including `packaging/env.sh`, which
|
||||
`import-cert.sh` sources with the Apple keys. On that branch only the pinned `nightly-sign.yml`
|
||||
caller may reach an environment: no app workflow binds one, and the only caller of the shared stable
|
||||
`release.yml` is `release.yml`, whose callee must carry the stable-only environment guard. The
|
||||
contract tests check the in-repo part on every main PR; the settings scan also resolves the callee.
|
||||
Stable releases still come only from `refs/heads/release`. History does not carry over a switch
|
||||
between `release` and `nightly-signer`, so the switch happens before the first publication.
|
||||
|
||||
**Manual actors.** `bflatastic`, `dylanmtaylor`, `echelon`, `FredApps` and `skylartaylor`, in the
|
||||
producer's `manual-actors` and the policy's `manual_actors`. The list mirrors the release-managers
|
||||
@@ -54,15 +66,14 @@ the signer caller has no platform input.
|
||||
|
||||
## Installed policy values and their sources
|
||||
|
||||
Read on 2026-11-24; re-read anything that may have moved (and populate `producer_workflow_id` once
|
||||
`nightly.yml` is registered on `main`, plus any Sonar `debt` if needed) before the policy is promoted
|
||||
to `release`.
|
||||
Read on 2026-11-24, with `producer_workflow_id` filled on 2026-11-25; re-read anything that may have
|
||||
moved (plus any Sonar `debt` if needed) before `nightly-signer` is advanced to it.
|
||||
|
||||
| Field | Value | Source |
|
||||
|---|---|---|
|
||||
| `repository_id` | `1419518094` | `gh api repos/storytold/anicraft --jq .id` |
|
||||
| `producer_workflow_id` | `null` (pending `nightly.yml` on `main`) | `gh api repos/storytold/anicraft/actions/workflows/nightly.yml --jq .id` after `nightly.yml` reaches `main` |
|
||||
| `producer_tooling_revision`, `signer_tooling_revision`, `producer_workflow_ref` | `605d5876…` (craft-common-actions #339) | The callers' pin |
|
||||
| `producer_workflow_id` | `429745835` | `gh api repos/storytold/anicraft/actions/workflows/nightly.yml --jq .id` on `main` |
|
||||
| `producer_tooling_revision`, `signer_tooling_revision`, `producer_workflow_ref` | `be00e5cc…` (the exact-analysis admission, #371 after #370 and #369, following #364 on #363) | The callers' pin |
|
||||
| `manual_actors` / `automatic_signer_actors` | the five release managers / `[]` | release-managers team (id 19837241) members who can push; equals the producer caller's `manual-actors` |
|
||||
| `max_age_seconds`, `max_artifact_bytes` | `86400`, `2147483648` | Go-live checklist |
|
||||
| `platforms` | three rows | Storytold stable signing identities (`Learning Machines Inc`, Linux OpenPGP fingerprint `2B76741B414AAD6CD33E631213A005C0B9D7C3ED`, Apple Team ID `DJ6XS33FX8`) |
|
||||
@@ -74,8 +85,8 @@ to `release`.
|
||||
- `.github/workflows/nightly.yml`: default-main registration of the unsigned producer, named
|
||||
`AniCraft unsigned nightly`, enabled for manual dispatch by `manual-actors`; no signing secrets
|
||||
may be passed or inherited.
|
||||
- `.github/workflows/nightly-sign.yml`: top-level release registration, enabled for manual dispatch,
|
||||
and identical on `main` and `release` after reviewed promotion. It rejects wrong repository/event/actual
|
||||
- `.github/workflows/nightly-sign.yml`: top-level signer registration, enabled for manual dispatch on
|
||||
`nightly-signer`, which carries a reviewed main commit. It rejects wrong repository/event/actual
|
||||
branch, including same-name tags. Its constant whole-run concurrency is distinct from stable,
|
||||
cancellation is off and `queue: max` must be hosted-qualified. The caller itself passes no
|
||||
credentials; only the shared callee's sign jobs bind the `release` environment.
|
||||
@@ -83,11 +94,11 @@ to `release`.
|
||||
`storytold/craft-common-actions`. Both must resolve to a **real reviewed public immutable
|
||||
commit**; the defining workflow SHA and tooling input must match.
|
||||
- `.github/nightly-linux-signing-key.asc` must be committed with the stable Linux public key
|
||||
(`2B76741B414AAD6CD33E631213A005C0B9D7C3ED`) before Linux signing runs on `release`.
|
||||
(`2B76741B414AAD6CD33E631213A005C0B9D7C3ED`) before Linux signing runs on `nightly-signer`.
|
||||
|
||||
## Local regression checks
|
||||
|
||||
`python3 packaging/nightly-release-tests.py` verifies the nightly workflow contracts, exact context
|
||||
guards, manual actor lists, signer serialization (`anicraft-nightly-release`, `queue: max`,
|
||||
guards, manual actor lists, signer serialization (`anicraft-nightly-release`,
|
||||
`cancel-in-progress: false`), no-cache/no-platform-secret boundaries, shared tooling pin consistency,
|
||||
and `.github/nightly-signing-policy.json` schema and field invariants.
|
||||
+2
-2
@@ -103,7 +103,7 @@ The **Headless** column at the end of each table says whether `anicraft-cli` and
|
||||
|
||||
| Feature | Status | Notes | Headless |
|
||||
|---|---|---|---|
|
||||
| Selection | **partial** | Raw shapes, objects, marquee, bend an edge, move a corner ([ADR 0041](adr/0041-selection-tool-on-raw-drawings.md), [ADR 0044](adr/0044-selection-across-layers.md)). A marquee takes the instances and objects it touches, and View › Hide Edges hides the selection's marks ([ADR 0134](adr/0134-outside-parity-batch-zoom-outlines-and-egui-0-37.md)). Missing: a preference for the marquee to take only what it surrounds; the first-use hint about fills and outlines (P-017). |
|
||||
| Selection | **partial** | Raw shapes, objects, marquee, bend an edge, move a corner ([ADR 0041](adr/0041-selection-tool-on-raw-drawings.md), [ADR 0044](adr/0044-selection-across-layers.md)). A marquee takes the instances and objects it touches, and View › Hide Edges hides the selection's marks ([ADR 0134](adr/0134-outside-parity-batch-zoom-outlines-and-egui-0-37.md)). A preference says whether the marquee takes objects it only touches or only those wholly inside it (Preferences › Stage, `view.select_touching`). Missing: the first-use hint about fills and outlines (P-017). |
|
||||
| Subselection | **done** | [ADR 0042](adr/0042-subselection-and-merging-everywhere.md), [ADR 0045](adr/0045-raw-points-and-raw-shapes-inside-symbols.md). |
|
||||
| Free Transform | **partial** | Scale, skew, rotate, the transformation point, a box that turns with the object ([ADR 0111](adr/0111-the-transformation-point-a-turning-box-and-layer-opacity.md)), Envelope ([ADR 0080](adr/0080-drawing-parity-leftovers.md)). Missing: Distort. Open bug: rotation on Windows and FreeBSD ([#479](https://github.com/storytold/anicraft/issues/479)), not reproduced on Windows 10 (P-005). |
|
||||
| Gradient Transform | **done** | Gradient and bitmap fills, Lock Fill. |
|
||||
@@ -142,7 +142,7 @@ The **Headless** column at the end of each table says whether `anicraft-cli` and
|
||||
|
||||
| Feature | Status | Notes | Headless |
|
||||
|---|---|---|---|
|
||||
| Merge drawing: raw strokes and fills that cut and join | **done** | [ADR 0031](adr/0031-merge-drawing.md), [ADR 0041](adr/0041-selection-tool-on-raw-drawings.md), [ADR 0042](adr/0042-subselection-and-merging-everywhere.md), [ADR 0045](adr/0045-raw-points-and-raw-shapes-inside-symbols.md); [drawing](guide/drawing.md). Open bug: a hairline between merged curved fills ([#182](https://github.com/storytold/anicraft/issues/182), P-013). |
|
||||
| Merge drawing: raw strokes and fills that cut and join | **done** | [ADR 0031](adr/0031-merge-drawing.md), [ADR 0041](adr/0041-selection-tool-on-raw-drawings.md), [ADR 0042](adr/0042-subselection-and-merging-everywhere.md), [ADR 0045](adr/0045-raw-points-and-raw-shapes-inside-symbols.md); [drawing](guide/drawing.md). Fills that share an edge are drawn without a line of the stage between them ([ADR 0138](adr/0138-fills-of-one-merged-drawing-join-without-a-seam.md), [#182](https://github.com/storytold/anicraft/issues/182)). |
|
||||
| Object drawing | **done** | Edit inside by double-click. Editing without opening is missing ([#181](https://github.com/storytold/anicraft/issues/181)). |
|
||||
| Groups, nested, edited in place | **done** | [ADR 0073](adr/0073-groups-combine-objects-and-selection-modifiers.md). |
|
||||
| Break Apart | **done** | |
|
||||
|
||||
+6
-4
@@ -55,10 +55,9 @@ the changelog.
|
||||
| P-011 | Shape tweens morph a raw shape's outline with its fill (outside PR [#238](https://github.com/storytold/anicraft/issues/238)) | Tweens | S | | doc |
|
||||
| P-012 | Small hardening fixes from outside, in batches as they come (the second, of 2026-11-24, is in the changelog): overflow in `Vec2::length` ([#142](https://github.com/storytold/anicraft/issues/142)), alpha kept by `Rgba::to_hex` ([#233](https://github.com/storytold/anicraft/issues/233)), a test for path numbers past `f32` ([#130](https://github.com/storytold/anicraft/issues/130)), private-use language tags ([#486](https://github.com/storytold/anicraft/issues/486)), a test of SVG link sanitising ([#500](https://github.com/storytold/anicraft/issues/500)) | (robustness) | S each | | several |
|
||||
| P-009 | Timeline bugs: a click on the playhead acts on every layer ([#195](https://github.com/storytold/anicraft/issues/195), outside PR [#222](https://github.com/storytold/anicraft/issues/222)), several layers selected with Ctrl and Shift ([#512](https://github.com/storytold/anicraft/issues/512)), the layer count over the header icons ([#523](https://github.com/storytold/anicraft/issues/523)), the mask edge drawn in the layer colour ([#429](https://github.com/storytold/anicraft/issues/429)) | Timeline, layers | S each | | timeline |
|
||||
| P-013 | No hairline between merged curved fills ([#182](https://github.com/storytold/anicraft/issues/182)) | Drawing model | M | | geom |
|
||||
| P-014 | Pen pressure on every desktop: Linux Wayland (outside PR [#320](https://github.com/storytold/anicraft/issues/320)), reports from tablets ([#290](https://github.com/storytold/anicraft/issues/290)) | Tools | M | a tablet to test with | platform |
|
||||
| P-015 | Verified by hand on real machines: the Mac checklist of [ADR 0062](adr/0062-test-movie-window-and-macos-document-opening.md), a hybrid-GPU laptop, passes with Narrator, VoiceOver and Orca ([ADR 0064](adr/0064-accessibility-second-pass.md)), launcher icons on Fedora ([#348](https://github.com/storytold/anicraft/issues/348)) | Accessibility, platforms | M | the machines; the person | platform |
|
||||
| P-016 | The guide tells the truth: "Coming from Animate" still lists shipped features as missing; close the issues the appendix marks delivered (the lead does that) | (docs) | S | | docs |
|
||||
| P-016 | The guide tells the truth, what is left: every chapter's "not yet" list was checked against the code on 2026-11-27 and "Coming from Animate" no longer lists shipped features as missing; left is closing the issues the appendix marks delivered (the lead does that) | (docs) | S | | docs |
|
||||
|
||||
### Next: the parity gaps artists meet every day
|
||||
|
||||
@@ -141,6 +140,9 @@ As of 2026-11-24 (46 open):
|
||||
|
||||
| PR | What | Id | State | What it still needs, or what happened |
|
||||
|---|---|---|---|---|
|
||||
| [#669](https://github.com/storytold/anicraft/issues/669) | No stale pasteboard fragments while stage tiles are replaced | P-004 | **merged** | Merged as it is. |
|
||||
| [#664](https://github.com/storytold/anicraft/issues/664) | The GPU counts the scratch memory of filtered work still in flight | P-004 | **merged, changed** | Merged as it is; changed afterwards in the P-013 pull request: it refused every filtered tile in the browser, where a submission can't be waited for, so there the allowance isn't kept and filtered layers draw on the GPU as before. |
|
||||
| [#633](https://github.com/storytold/anicraft/issues/633) | Stage coordinates at tiny zooms, and the fitted zoom kept when the zoom field loses focus | P-012 | **merged** | Merged as it is. |
|
||||
| [#13](https://github.com/storytold/anicraft/issues/13) | Bound the work of evaluating nested symbols | (done) | **superseded by** | The P-002 change ([ADR 0128](adr/0128-one-work-allowance-and-frames-that-say-what-they-left-out.md)), which took its ideas into the allowance `main` already had: layers, symbol lookups and outline sizes count as work, and a frame that ran out says so. Its commits were not merged: they rewrite what [#497](https://github.com/storytold/anicraft/issues/497) rewrote, and its charge of one unit per library entry would cut honest documents with large libraries. Credited in `AUTHORS.md`. |
|
||||
| [#39](https://github.com/storytold/anicraft/issues/39) | Text that mixes directions | (P-008, done) | **superseded by** | Its commits are merged in the P-008 pull request, which rebuilds it on the styled-text layout ([ADR 0130](adr/0130-mixed-directions-and-fallback-faces.md)): lines found in reading order and never inside a cluster, and its tests, are kept; levels and reordering come from `craft-text`. Nothing in it is left out. |
|
||||
| [#40](https://github.com/storytold/anicraft/issues/40) | Letters from a fallback face | (P-008, done) | **superseded by** | Merged and rebuilt with [#39](https://github.com/storytold/anicraft/issues/39) ([ADR 0130](adr/0130-mixed-directions-and-fallback-faces.md)): its family list, the cluster that moves whole with its marks, invisible characters that are never missing and the note about boxes are kept; installed faces outside the list, which it left for later, are searched too. |
|
||||
@@ -195,7 +197,7 @@ As of 2026-11-24 (46 open):
|
||||
| [#583](https://github.com/storytold/anicraft/issues/583) | Next and Previous Frame stop at the ends ([#561](https://github.com/storytold/anicraft/issues/561)) | (done) | **superseded by** | Merged with its commit. |
|
||||
| [#582](https://github.com/storytold/anicraft/issues/582) | A press selects at once and the playhead follows a drag ([#561](https://github.com/storytold/anicraft/issues/561)) | (done) | **superseded by** | Merged with its commit. Left from [#561](https://github.com/storytold/anicraft/issues/561): whether the playhead may stand on an empty cell. |
|
||||
| [#581](https://github.com/storytold/anicraft/issues/581) | PNG frames and sequences can export transparent ([#536](https://github.com/storytold/anicraft/issues/536)) | (done) | **superseded by** | Merged with its commits, joined with the left-out note of [ADR 0128](adr/0128-one-work-allowance-and-frames-that-say-what-they-left-out.md). Left from [#536](https://github.com/storytold/anicraft/issues/536): a transparent GIF. |
|
||||
| [#580](https://github.com/storytold/anicraft/issues/580) | The marquee takes the objects it touches ([#522](https://github.com/storytold/anicraft/issues/522)) | (done) | **superseded by** | Merged with its commit. The reference app has a preference for this; ours is always on. |
|
||||
| [#580](https://github.com/storytold/anicraft/issues/580) | The marquee takes the objects it touches ([#522](https://github.com/storytold/anicraft/issues/522)) | (done) | **superseded by** | Merged with its commit. The reference app has a preference for this; ours came after (Preferences › Stage, `view.select_touching`), on to begin with. |
|
||||
| [#579](https://github.com/storytold/anicraft/issues/579) | Distribute to Layers ([#517](https://github.com/storytold/anicraft/issues/517)) | (done) | **superseded by** | Merged with its commits. Left in P-021: raw shapes, and Distribute to Keyframes. |
|
||||
| [#578](https://github.com/storytold/anicraft/issues/578) | Match Size and Space Evenly in Align ([#566](https://github.com/storytold/anicraft/issues/566)) | (done) | **superseded by** | Merged with its commits; it measures outlines as align does, and the Align panel's default height shows the new row. |
|
||||
| [#577](https://github.com/storytold/anicraft/issues/577) | Each filter in Properties is a card that folds ([#533](https://github.com/storytold/anicraft/issues/533), [#534](https://github.com/storytold/anicraft/issues/534)) | (done) | **superseded by** | Merged with its commit. |
|
||||
@@ -279,7 +281,7 @@ This integration depends on craft-libs #1962 and still requires hosted parity va
|
||||
| Architecture | M0 skeleton in place: geom → doc → render → engine → cli → shell, layering enforced by `cargo test` (`src/architecture_tests.rs`: lower layers only, no UI crates below the shell, and the AGENTS.md map must match). |
|
||||
| Rendering | CPU oracle with analytic AA, non-zero/even-odd, solid + linear/radial gradients (with reflect/repeat, focal points, elliptical radials and linear RGB, ADR 0074), round-join strokes. **A stroke is covered as one outline** (ADR 0110): the stroker builds each run of segments as an outline and unites the loops, so pixels where its pieces used to overlap (round joins and caps, the joints of wide curves, dashes that run together, a line crossing itself) are no longer up to half a pixel too dark, on the CPU and the GPU stage alike; a line with corners, flat or square ends is drawn pixel for pixel as its Convert Lines to Fills fill, a curved or round one within the 0.1 px flattening (not yet: one geometry for both on curves, a per-stroke outline cache, dashes measured along the curve). **Mask clipping**: the display list carries nested clips; a clip is the anti-aliased union of its mask fills (strokes and opacity ignored), intersected with any enclosing clip, computed once per render band; an empty mask hides everything under it. **Soft masks** (ADR 0070): a mask layer's mask type is Shape (coverage), Alpha (its artwork's opacity as drawn: gradients, faded shapes, strokes, bitmaps) or Luminance (brightness × opacity, SVG's coefficients), in the CPU oracle (analytic tests), the GPU stage (parity: mean 0.00006, worst 1 step of 255), SVG export (`<mask>` with `mask-type`), Lottie (alpha and luma track mattes) and the HTML canvas; Layer Properties › Mask type. **Group alpha**: a symbol instance below full opacity is a group in the display list; each render band composites the group's run of ops into its own buffer (nested groups stack) and blends it once at the group's alpha, so overlaps don't show through; SVG export writes `<g opacity>`. **Blend modes** (Animate's 14, on movie clip and button instances): an instance with one is an isolated group that blends at its close with the W3C separable formulas on premultiplied colour (Alpha and Erase keep or clear the backdrop); SVG gets CSS `mix-blend-mode`, Lottie the layer `bm`. **Bitmaps**: `Paint::Bitmap` fills (once or tiled) with bilinear sampling in premultiplied space, colour effects per sample; PNG/JPEG import to stage (a rectangle of the image's size); stored in the document as PNG (base64 in `.anicraft`), decoded once on first use; SVG export embeds each image once as a pattern. **Filters**: a filtered group is drawn on its own (by the same renderer, recursively, so nested filters work) into a buffer over its artwork grown by the filters' reach, filtered (box-blur passes; shadow and glow from the blurred, offset opacity; **bevel and gradient bevel** from the difference of the blurred opacity offset towards and away from the light, **gradient glow** from the glow's intensity, both through a colour ramp whose rest stop is pinned transparent, inner/outer/full and knockout, ADR 0025; colour matrix), and composited back as one image in its group, so alpha and blend apply; clips from inside the symbol apply before filtering and the instance's own clip after. Filters apply in list order and may be switched off (ADR 0091): `evaluate` leaves switched-off ones out, so every renderer and export draws them as absent. **GPU stage, first slice** (M3, ADR 0019; `--features gpu-stage`, off by default): Preferences › Stage › Renderer *GPU (preview)* draws the stage with wgpu compute from the oracle's own prepared fills (tile binning with per-row backdrops on the CPU, exact area coverage and src-over per pixel on the GPU): solid and gradient fills and strokes, non-zero and even-odd; masks, group opacity, blend modes, filters and bitmaps fall back to the CPU per tile, and the status bar says so. Parity with the oracle: max 1/255, mean < 0.0001/255 on the sample, stress and analytic scenes (tests skip without an adapter). 4K with 1,000 shapes: 8.8–9.0 ms vs the CPU's 17.4–17.8 ms. **Second slice** (ADR 0029): on the window's wgpu device the stage tiles are drawn straight into textures egui shows (no readback; a headless device with readback when the window is on OpenGL); **masks** (nested, united artwork), **group opacity** and **all 14 blend modes** on the GPU, same parity (max 1/255, mean ≤ 0.0011/255); 4K: 1,000 shapes in 2.1–2.4 ms, 10k shapes in 10.2 ms as stage tiles, masked scenes 7× the CPU. **Third slice** (ADR 0032): **bitmap fills** (textures uploaded once per image and cached under a 256 MB budget, sampled with the oracle's own bilinear filter, colour effect and repeat rules: byte-identical) and **all seven filters** (each filtered symbol drawn into a layer of its own and filtered by compute passes that run the oracle's resolved steps: max 1/255, mean ≤ 0.007/255) on the GPU; the shaders now build with Direct3D's FXC, so DX12 windows get the GPU stage too (parity suite green on Vulkan and DX12); software adapters are refused (the CPU is faster), the start-up self-test compares with the oracle. **The GPU is the default stage renderer**: theLine truncated
|
||||
| Timeline | **Frame selection**: click, Shift-click or drag across frames and layers; F5/Shift+F5, F6/F7 and Shift+F6 (keys, icon buttons and right-click menu) act on the whole selection; with no frame selection F5 extends every layer with frames at or after the playhead, and F5/F6/F7 move the playhead on as in Animate (F6/F7 on a keyframe key the next frame; `all_layers`/`advance` headless); drag selected keyframes left or right to move them, and up or down onto other layers (the source keeps empty frames) (with a drop outline; one undo step; keys they land on are replaced, and spans fill the frames left behind); removing or clearing selected frames that hold artwork asks first. **Cut/Copy/Paste Frames** (Ctrl+Alt+X/C/V, and plain Ctrl+X/C/V after clicking the timeline): own clipboard, copies cut exactly at the selection edges (mid-tween state kept), paste inserts like Animate, several layers paste onto the layers below (missing ones are created), fresh element ids, symbols travel with them. **Span length by dragging its end** (resize cursor, live outline with the length in frames and seconds; later frames move with it; a motion tween's keys stretch in proportion, ADR 0083). Side dock tab strips never run under the panel menu (names shrink with an ellipsis, then the strip scrolls). Headless: `layers`/`count` on the frame commands, `timeline.move_keyframes`, `timeline.cut_frames/copy_frames/paste_frames`. Layers (show/lock/outline), **timeline polish** (ADR 0061): a per-layer **onion skin toggle** column (Alt-click solos; left-out layers aren't onion-skinned; Edit Multiple Frames unaffected), the colour square toggles **View as Outlines** in the layer colour **on the stage only** (exports, Test Movie and the player draw the artwork as it is), the **colour chip** opens the layer colour (swatches, hex, More…), **onion frames of the parent timeline** dimmed around a symbol edited in place, **Layer Height** 100/200/300 %, **Layer Properties** (double-click the layer icon; name, show/lock, type, outline colour, outlines, onion, height; one undo step), **Frame View** (Tiny/Small/Normal/Medium/Large, Short rows) with the frame zoom in the timeline's bottom bar (the header fits at the default window size, tested); headless `layer.set_onion/set_color/set_height/set_properties/properties`; XFL `heightMultiplier`. Not yet: folder onion toggles, onion of deeper parent timelines, multi-layer Layer Properties and layer transparency, frame thumbnails (Preview). **Layers by drag and all at once** (M8, from the issue tracker): drag a layer by its name to reorder it or drop it on a folder (a line shows where it lands; folders, masks and guides move whole; one undo step; `layer.move {before | after | into}`), the eye, padlock and outline square above the layer names act on every layer (`all` on the three toggles), and the line between the layer names and the frames drags (150–600 pt, kept in the preferences). Not yet: several selected layers dragged together, dragging a layer onto another scene. Keyframes, blank keyframes, insert/remove frames, classic tweens with **ease presets and custom eases** (ADR 0081: Classic Ease with a strength and Quad, Cubic, Quart, Quint, Sine, Back, Circ, Bounce and Elastic In/Out/In Out; custom eases of up to 64 Bézier points in the Custom Ease window, x kept monotonic, overshoot allowed, keyboard operable, **shape tweens** (morph between any two shapes: segments made cubic, subpaths paired by size and grown from or shrunk to a point when counts differ, segment counts equalized by subdivision, windings matched and start points aligned; amber spans; classic ⇄ shape keeps the easing; **shape hints** (ADR 0023): Modify › Shape › Add Shape Hint (Ctrl+Shift+H) adds lettered markers `a`–`z` that the artist drags onto an edge on the first and last keyframe (rose until placed, amber placed on the first, mint on the last; right-click removes), the morph cuts both outlines at the hinted points and matches the pieces in order by length; `tween.add_hint/move_hint/remove_hint/clear_hints/hints`; not yet: View › Show Shape Hints, hints inside symbols edited in place), auto-key when editing inside a tween, frame labels, symbol nesting: graphics keep step with their timeline (loop, play once, single frame, first frame; set in Properties), movie clips loop their own timeline from when the instance appears (continuous across keyframes holding the same instance), buttons show their Up frame, looping playback. **Onion skin and Edit Multiple Frames** (ADR 0047): onion markers on the frame ruler (drag the start and end brackets; Always Show Markers, Anchor Markers, Onion 2 / Onion 5 / Onion All, also on a right-click on the ruler), frames before and after the playhead tinted in their own colours (theme blue and green, changeable in the onion menu, Reset) and fading with distance, Outlines, Keyframes Only, locked layers left out as in Animate, each layer's onion frames under its own artwork and over tLine truncated
|
||||
| Drawing | Selection (click, shift-add, marquee, drag-move, arrow nudge; **across layers**, ADR 0044: a selection holds artwork on several visible, unlocked layers, the timeline marks them, Properties shows mixed values), **Free Transform (Q)**: scale from corner/edge handles (Shift proportional, Alt from centre), **skew** by dragging the line between two handles (the opposite edge stays, Alt about the centre; outside PR #176), rotate outside corners (Shift snaps 15°), move; one undo step per drag. Rectangle (corner radius), oval, PolyStar, line (45° snap), hand, zoom. **Pen (P)**: click for corners, drag for smooth handles (Alt breaks them), close on the first point, Enter/Esc/last-point click finishes, Backspace takes back a point; one undo step per path. **Pencil (Shift+Y)**: Smooth (Schneider curve fitting with corner detection), Straighten and Ink modes, smoothing relative to the screen. **Subselection (A)**: anchors and handles on selected shapes, drag points/handles (anchors bring their handles; one undo step per drag), point marquee, double-click an edge to add a point, Delete removes points, right-click Make Smooth/Corner; closed shapes' start point and closing edge edit like any other. **Cut/Copy/Paste in Center/Paste in Place** (the clipboard carries symbols across documents; pasted raw shapes float, selected, until they are deselected, and Paste takes a picture copied in another app as a bitmap, ADR 0108; not yet: vectors copied in other apps). Free Transform: not yet a transformation point you can move (it is the box's centre) or a box that turns with a rotated object. **Rotate 90° CW/CCW, Flip H/V. Align** left/centre/right/top/middle/bottom (Ctrl+Alt+1…6; a single element aligns to the stage) and distribute. Convert to symbol / break apart; arrange; duplicate. Headless: `draw.path`, `draw.freehand`, `path.move_points/add_point/delete_points/convert_point`. **Paint Bucket (K)**: click a fill to recolour it, or inside an outline (one shape or several) to fill the enclosed area; gap size None/Small/Medium/Large closes openings; the fill is traced and curve-fitted into a new shape placed under its lines; open areas say so instead of flooding. **Ink Bottle (S)**: gives the clicked shape the current stroke. Headless: `paint.bucket`, `paint.ink`. Tool options show first in Properties while a drawing tool is active. **Text (T)** (ADR 0012): click to type on the stage, click or double-click text to edit it; font (installed families, plus the embedded Inter), size, colour, under or over the artwork, snap accuracy up to Always); Snap to Pixels; one snap engine for every drawing tool, the Selection tool's moves and Free Transform's handles (point › guide › line › grid › pixel, guides and grid per axis); stage only, never exported, on the CPU and GPU stage. Headless: `view.rulers`, `view.grid_show/grid_snap/grid_set`, `view.guides_show/guides_lock/guides_snap/guides_set`, `view.guide_add/guide_move/guide_delete/guides_clear`, `view.snap_pixels`, `view.aids`, `moving` on `draw.snap`. *Not yet:* units other than px, a movable ruler origin, a symbol's own guides, guides and grid from Animate files, Snap Align and Edit Snapping, snapping while rotating. bold, italic, alignment, letter/line spacing, wrap width; the last style is kept for new text; laid out by `anicraft-text` (`fontdb` discovery, `harfrust` shaping, `skrifa` outlines) and stored as outlines with the source, so rendering never needs the font; Break Apart makes a shape. **Variable-width strokes** (ADR 0018): a stroke's width varies along it through width points (position by arc length, a width on each side as a factor of the stroke width, smooth monotone interpolation); built-in profiles (Uniform, Taper both ends, Taper start, Taper end, Bulge, Pinch) in Properties › Width with a picture of each, and in the drawing tools' options for new strokes; the **Width tool (U)**: hover a stroke to see its width points, drag a handle to widen or narrow (Alt: one side), drag the dot to slide a point, drag anywhere on the stroke to add one, Delete removes; one undo step per drag; rendered by the oracle as trapezoids with outer round joins and cross-section caps, written by SVG and Lottie export as the same filled outlines; shape tweens blend profiles; `.anicraft` keeps them (older files open as uniform). Headless: `stroke.set_profile`, `stroke.set_width_point`, `stroke.delete_width_point`, `stroke.width_at`, `profile` on `element.set_stroke`, the drawing commands and `paint.ink`. Not yet: width data from or to Animate files, saved custom profiles, pressure. **Stroke styles** (ADR 0046): Properties › Style (Solid, Dashed with dash and gap, Dotted with spacing), Cap (None, Round, Square), Join (Miter, Round, Bevel) and Miter limit, also in the drawing tools' options for new strokes; drawn exactly by the oracle (butt and square caps, miters bevelled past the limit, dashes by arc length restarting per subpath, round dots, dashes keeping a widthLine truncated
|
||||
| Drawing | Selection (click, shift-add, marquee, drag-move, arrow nudge; **across layers**, ADR 0044: a selection holds artwork on several visible, unlocked layers, the timeline marks them, Properties shows mixed values), **Free Transform (Q)**: scale from corner/edge handles (Shift proportional, Alt from centre), **skew** by dragging the line between two handles (the opposite edge stays, Alt about the centre; outside PR #176), rotate outside corners (Shift snaps 15°), move; one undo step per drag. Rectangle (corner radius), oval, PolyStar, line (45° snap), hand, zoom. **Pen (P)**: click for corners, drag for smooth handles (Alt breaks them), close on the first point, Enter/Esc/last-point click finishes, Backspace takes back a point; one undo step per path. **Pencil (Shift+Y)**: Smooth (Schneider curve fitting with corner detection), Straighten and Ink modes, smoothing relative to the screen. **Subselection (A)**: anchors and handles on selected shapes, drag points/handles (anchors bring their handles; one undo step per drag), point marquee, double-click an edge to add a point, Delete removes points, right-click Make Smooth/Corner; closed shapes' start point and closing edge edit like any other. **Cut/Copy/Paste in Center/Paste in Place** (the clipboard carries symbols across documents; pasted raw shapes float, selected, until they are deselected, and Paste takes a picture copied in another app as a bitmap, ADR 0108; not yet: vectors copied in other apps). Free Transform: not yet a transformation point you can move (it is the box's centre) or a box that turns with a rotated object. **Rotate 90° CW/CCW, Flip H/V. Align** left/centre/right/top/middle/bottom (Ctrl+Alt+1…6; a single element aligns to the stage) and distribute. Convert to symbol / break apart; arrange; duplicate. Headless: `draw.path`, `draw.freehand`, `path.move_points/add_point/delete_points/convert_point`. **Paint Bucket (K)**: click a fill to recolour it, or inside an outline (one shape or several) to fill the enclosed area; gap size None/Small/Medium/Large closes openings; the fill is traced and curve-fitted into a new shape placed under its lines; open areas say so instead of flooding. **Ink Bottle (S)**: gives the clicked shape the current stroke. Headless: `paint.bucket`, `paint.ink`. Tool options show first in Properties while a drawing tool is active. **Text (T)** (ADR 0012): click to type on the stage, click or double-click text to edit it; font (installed families, plus the embedded Inter), size, colour, under or over the artwork, snap accuracy up to Always); Snap to Pixels; one snap engine for every drawing tool, the Selection tool's moves and Free Transform's handles (point › guide › line › grid › pixel, guides and grid per axis); stage only, never exported, on the CPU and GPU stage. Headless: `view.rulers`, `view.grid_show/grid_snap/grid_set`, `view.guides_show/guides_lock/guides_snap/guides_set`, `view.guide_add/guide_move/guide_delete/guides_clear`, `view.snap_pixels`, `view.aids`, `moving` on `draw.snap`. *Not yet:* units other than px, a movable ruler origin, a symbol's own guides, guides and grid from Animate files, Snap Align and Edit Snapping, snapping while rotating. bold, italic, alignment, letter/line spacing, wrap width; the last style is kept for new text; laid out by `anicraft-text` (`fontdb` discovery, `harfrust` shaping, `skrifa` outlines) and stored as outlines with the source, so rendering never needs the font; Break Apart makes a shape. **Variable-width strokes** (ADR 0018): a stroke's width varies along it through width points (position by arc length, a width on each side as a factor of the stroke width, smooth monotone interpolation); built-in profiles (Uniform, Taper both ends, Taper start, Taper end, Bulge, Pinch) in Properties › Width with a picture of each, and in the drawing tools' options for new strokes; the **Width tool (U)**: hover a stroke to see its width points, drag a handle to widen or narrow (Alt: one side), drag the dot to slide a point, drag anywhere on the stroke to add one, Delete removes; one undo step per drag; rendered by the oracle as trapezoids with outer round joins and cross-section caps, written by SVG and Lottie export as the same filled outlines; shape tweens blend profiles; `.anicraft` keeps them (older files open as uniform). Headless: `stroke.set_profile`, `stroke.set_width_point`, `stroke.delete_width_point`, `stroke.width_at`, `profile` on `element.set_stroke`, the drawing commands and `paint.ink`. Not yet: width data from or to Animate files, saved custom profiles, pressure. **Stroke styles** (ADR 0046): Properties › Style (Solid, Dashed with dash and gap, Dotted with spacing), Cap (None, Round, Square), Join (Miter, Round, Bevel) and Miter limit, also in the drawing tools' options for new strokes; drawn exactly by the oracle (butt and square caps, miters bevelled past the limit, dashes by arc length restarting per subpath, round dots, dashes keeping a widthLine truncated
|
||||
| Plug-ins | **WebAssembly plug-ins** (ADR 0017, `docs/plugins.md`): sandboxed modules run by `wasmi` with no imports but the AniCraft ABI (`anicraft.call`/`anicraft.response`: JSON requests that run registry commands, read a compact document view or the active layer's elements, and log); fuel (10⁹ instructions), memory (256 MiB), wall-clock (5 s), request, size and log limits, a fresh instance per run; file, plug-in, undo and clipboard commands refused. `plugin.install/list/run/remove/reload`; a run is atomic and one undo step named after the plug-in. App: **Commands** menu (Plug-ins, Install, Manage, Reload), palette entries, a dialog generated from the manifest's parameters with a live preview; plug-ins load from `<settings>/plugins` or `ANICRAFT_PLUGINS`; CLI `--plugins`. Samples in Rust (Star Field, Jitter Selection, guest SDK) in `examples/plugins`. Frame scripts: see Interactivity. **Exporter and ease plug-ins** (ADR 0088): `kind: "exporter"` declares a format (name, extension, options) and gets evaluated frames (`movie`, `frame`: the flattened display list, never the document), returning the file's bytes from `ac_export` (64 MiB cap, 5·10¹⁰ instructions, 10 min); File › Export lists it with an Export window (options, frames, file, progress bar and Cancel on a worker thread); `file.export_plugin`, `file.export_formats`, `anicraft-cli export --format <id>` and `formats`. `kind: "ease"` declares named eases, `ac_ease(i, t)` sampled into 257 values at load (NaN, unbounded or end-missing eases refused); `Easing::Sampled` keeps the table in the document, so it plays the same without the plug-in; the ease menus list them under Plug-in eases; `{plugin, ease}` easing params. Samples: Plain Text Frames and Stepped Eases, built and run in CI. Not yet: plug-in formats in Publish, bitmaps' pixels and sounds for exporters, ease plug-ins with parameters, background runs of command plug-ins, a binary document view. |
|
||||
| Interactivity | **Frame actions, frame scripts and Test Movie, first slice** (ADR 0024): a typed timeline action IR (`anicraft-actions`: stop, play, go to a frame or label in a scene, next/previous frame and scene, trace, set x/y/alpha/visible/rotation/scale, instance-name target paths) on keyframes and on button and movie clip instances (click, press, release, over, out); a pure, deterministic, budgeted player in `anicraft-doc` (`step(doc, &state, &events)`; movie clip playheads, button Up/Over/Down states with Hit-frame hit tests, script-set properties) drawn by `evaluate_player`, while `evaluate` and exports stay script-free. **Actions panel** (F9: structured lists, targets/labels/scenes picked from the document; movie clip timelines too), instance name and events in Properties, an "a" on keyframes with actions. **Frame scripts** on the plug-in host (`kind: "frame-script"`, entry points, `player`/`action` ops, 20 M instructions per frame shared, no document access). **Test Movie** (Control › Test Movie, Ctrl+Enter): the player at the document frame rate in its own window with the pointer, restart/pause/step and an Output panel. **A window of its own on the desktop** (ADR 0062): sized to the stage at 100 % (smaller to fit the screen), titled with the document, back where it was last (not on Wayland, where the desktop places windows), with the keyboard when it opens; Esc or Ctrl+W (⌘W) closes it, Ctrl+Enter restarts it in place, and the editor's Ctrl/Alt shortcuts work from it; floating inside the editor in the web build, where the system can't open windows (it says so), or by choice in Preferences › Test Movie. Not yet: full screen, zoom in the movie window, remembering its size. Headless: `actions.set/clear/list`, `instance.set_name`, `control.test_movie` (timed pointer events, returns output and state). **HTML canvas export** (ADR 0028, `file.export_html`, File › Export › Export HTML Canvas…): one self-contained page (data, player and drawing code inline; images and sounds embedded) that plays in any browser with canvas 2D; every used timeline baked frame by frame (tweens of every kind exact, identical paths, paints and frames stored once), movie clips, buttons with Hit areas and every action run by `player.js`, a port of the Rust player checked against it step by step in Boa (state, output and display list); masks and fading/blending groups on offscreen layers; **filters and Subtract/Invert in the page** (ADR 0072: `filters.js`, a port of the renderer's filters run over the group's pixels on a layer that reaches past the canvas by the filters' reach, Subtract and Invert composited per pixel, results kept while the group is unchanged; equal to the oracle's pixels within 9.3e-4 in Boa; 3.4 ms a frame for the demo's filters at 1080p while they change); Web Audio for Event/Start/Stop/Stream sounds; bitmap tints, 9-slice scaling and plug-in frame scripts reported. Not yet: 9-slice in the page, keeping a moving filtered group's pixels, filters off the main thread. **Kept frame scripts** (ADR 0013 tier 1): scripts written in another language (an Animate document's ActionScript) kept verbatim on keyframes with their language, symbol linkage classes and the document class; the Actions panel's **Script** view (monospace editor with line numbers, language, live and undoable), the same "a" marker, Class rows in Properties; `script.set/clear/list/set_class`; **ActionScript timeline subset runs** (ADR 0013 tier 2): a hand-written, bounded lexer and parser (`anicraft_actions::as3`) lower stop/play/go to/next and previous frame and scene on instance-name paths, mouse listeners (click, down, up, roll over and out; named or inline functions, `currentTarget`), `trace` and property settings to the action IR, compiled once per script; anything else is reported with line and column and the script doesn't run (never half-run), `navigateToURL` and the like are ignored and noted; the player keeps listeners per instance, Test Movie's Output says which scripts run and which don't and why, the Script view lists problems in place, the XFL report and `script.list/check` say what runs, and the HTML page runs the same steps (`player.js` checked against the Rust player). **ActionScript small logic** (ADR 0052): scripts compile to a small typed script IR evaluated by the player with fuel (100,000 per script or listener call, 1,000,000 per step; an endless loop or a run-time error stops its script with an Output line and the movie plays on): typed variables (Number, int, uint, Boolean, String, untyped) kept per timeline instance across its frame scripts, expressions as ECMA-262 has them, `if`/`else`, `for`/`while`/`do`, functions with parameters, results and recursion, called from any frame of the same timeline (a timeline-level link step; names that aren't there keep the script from running, said in place), property reads of instances and timelines (`x`, `y`, `alpha`, `visible`, `rotation`, `scaleX/Y`, `currentFrame`, `tLine truncated
|
||||
| Headless | CLI: info, render, render-seq, **gif**, **apng**, **webp**, commands, exec, run, serve (JSON-lines). **MCP server** (`anicraft-cli mcp`, `docs/mcp.md`): stdio JSON-RPC, protocol 2025-06-18 (and 2025-03-26, 2024-11-05); five tools over the command registry (list, run, run a script, describe the document, render a frame as a PNG picture); confirmation tiers and undo apply as in the app. **Live control** (ADR 0104, `docs/control-protocol.md`): `anicraft --control <port>` and `anicraft-cli mcp --bridge <port>` run the same tools on the open window, on this computer only, with a per-run token in `control.json`. **Automation roots** (ADR 0124, AGENTS.md rule 18): `mcp` refuses to start without `--automation-read-root` and `--automation-write-root`; an assistant's commands read inside the read roots and write inside the write root only, checked in the engine (`engine::access`: given paths before the command runs, every `vfs` call, ffmpeg, XFL folders and the plug-in registry) on the resolved path (`..`, links, junctions, letter case), with errors that name the root; the bridge carries the roots and the window applies them per call (control protocol 2); `serve` takes them optionally (not yet: roots saved in the app's preferences as a cap on any bridge, a shared craft-libs helper, environment variables, file handles held open against a swapped link). |
|
||||
|
||||
Reference in new issue
Block a user