From fd533fdb6d39ad3c5ddf1d38faf2d8705efb99fb Mon Sep 17 00:00:00 2001 From: bflatastic Date: Wed, 7 Oct 2026 11:53:50 +0700 Subject: [PATCH 1/3] Docs: releasing.md, the release procedure release.yml points to (#136) How a release is cut (version bump, the gate, pushing main to release, the draft, publishing), test runs, what gets built where, the Linux glibc baseline behind the ubuntu-22.04 runners, and the optional signing secrets. release.yml's two pointers now resolve. Co-Authored-By: Claude Opus 5.5 --- docs/releasing.md | 84 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 docs/releasing.md diff --git a/docs/releasing.md b/docs/releasing.md new file mode 100644 index 00000000..e8e26cbc --- /dev/null +++ b/docs/releasing.md @@ -0,0 +1,84 @@ +# Releasing EffectCraft + +Every push to the `release` branch runs [`.github/workflows/release.yml`](../.github/workflows/release.yml). +It builds signed installers for macOS, Windows, Linux and the web, then creates or updates a +**draft** GitHub Release named `EffectCraft v`. Nobody sees a draft until a maintainer +publishes it. + +User-facing names say **EffectCraft**. Files, binaries and ids stay lowercase +(`effectcraft---.`). + +## Cutting a release + +1. **Bump the version** on `main`. It lives in one place, `[workspace.package] version` in the + root `Cargo.toml`: + + ```sh + cargo xtask version # prints the current version, e.g. 0.3.1 + cargo xtask version set 0.4.0 # or 0.4.0-rc.1; updates Cargo.toml and Cargo.lock + ``` + + Open a PR titled `Release: EffectCraft v0.4.0` with that change (`Cargo.toml` and our crates + in `Cargo.lock` only) and merge it. +2. **Check the gate.** Run `cargo xtask ci` on `main` (it runs clippy and the tests in release + mode, as CI does), and check that `main`'s CI is green on every platform. +3. **Push `main` to `release`** (a fast-forward): `git push origin main:release`. The `release` + branch is protected; only maintainers can push to it. The workflow starts by itself. +4. **Wait for the draft.** When every job is green (macOS notarization is the slow part), the + Releases page has a draft `EffectCraft v0.4.0`, tagged `v0.4.0` on the pushed commit, with + every artifact and `SHA256SUMS.txt`. Its notes are generated from the merged PRs. +5. **Check it.** Download an installer or two, check them against `SHA256SUMS.txt`, and run + `effectcraft --version` / `effectcraft-cli --version`. Read the job summaries: a `::warning::` + means a signing secret was missing and that artifact is unsigned. +6. **Publish** the draft in the GitHub UI (or `gh release edit v0.4.0 --draft=false --latest`), + with a short *Highlights* section above the generated notes. Publishing creates the `v0.4.0` + tag. Versions with a pre-release suffix (`-rc.1`) are marked as pre-releases. + +Pushing to `release` again before you publish rebuilds the same draft and replaces its assets. +Once the draft is published, the workflow refuses to touch that version again +(`Release v is already published. Bump the version (cargo xtask version set) before +pushing to release.`), so bump it first. + +**Test runs:** *Actions › Release › Run workflow* runs the whole pipeline by hand. The optional +`version` input (such as `0.4.0-rc.1`) overrides `Cargo.toml` for that run only: the jobs apply it +with `cargo xtask version set` before building, so the binaries report it too. The run still +needs the `release` environment, which only the `release` branch can use, so pick that branch in +the dialog. + +## What gets built + +| Platform | Artifacts | Built on | +|---|---|---| +| macOS 11+ (universal: Apple silicon and Intel) | `effectcraft--macos-universal.dmg`, `effectcraft-cli--macos-universal.zip` | `macos-15` | +| Windows 10+ x64 | `effectcraft--windows-x64.msi`, `effectcraft--windows-x64-portable.zip` | `windows-latest` | +| Windows 10+ x86 (32-bit) | `effectcraft--windows-x86.msi`, `effectcraft--windows-x86-portable.zip` | `windows-latest` | +| Windows 11 ARM64 | `effectcraft--windows-arm64.msi`, `effectcraft--windows-arm64-portable.zip` | cross-compiled on `windows-latest` | +| Linux x86_64 | `effectcraft--linux-x86_64.{AppImage,deb,rpm,tar.gz}` | `ubuntu-22.04` | +| Linux aarch64 | `effectcraft--linux-aarch64.{AppImage,deb,rpm,tar.gz}` | `ubuntu-22.04-arm` | +| Web | `effectcraft-web-.zip` (a static site; see [web.md](web.md)) | `ubuntu-latest` | + +The ARM64 MSI is installed and run on ARM64 hardware by +[`windows-arm64.yml`](../.github/workflows/windows-arm64.yml). + +Every binary reports its version: `effectcraft --version`, `effectcraft-cli --version` and +*Help › About EffectCraft*. + +### Linux: the glibc baseline + +Linux binaries link against the glibc of the machine that builds them and need at least that +version wherever they run. The release builds on the oldest GitHub-hosted image, +**Ubuntu 22.04 (glibc 2.35)**, so the packages run on Ubuntu 22.04+, Debian 12+, Fedora 36+ and +RHEL 10. Building on a newer image would silently raise that floor. `packaging/linux/package.sh` +builds the AppImage, `.deb`, `.rpm` and tarball; the workflow then runs the AppImage's +`--version` as a smoke test. + +## Signing + +Every job runs in the `release` environment, which only the `release` branch can use and which +holds the signing secrets. Every secret is optional: a missing one produces an unsigned artifact +and a warning in the job summary, never a failed build. + +| Platform | Secrets | +|---|---| +| macOS (Developer ID signing and notarization) | `APPLE_CERTIFICATE`, `APPLE_CERTIFICATE_PASSWORD`, `KEYCHAIN_PASSWORD`, `APPLE_ID`, `APPLE_PASSWORD`, `APPLE_TEAM_ID` | +| Windows (a certificate, or Azure Trusted Signing) | `WINDOWS_CERTIFICATE`, `WINDOWS_CERTIFICATE_PASSWORD`, or `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_SIGNING_ENDPOINT`, `AZURE_SIGNING_ACCOUNT`, `AZURE_CERT_PROFILE` | From eb5e72cdfa6a9c9cbf51b266648b769a91d7875a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Wed, 7 Oct 2026 12:00:47 +0700 Subject: [PATCH 2/3] Docs: agents.md lists every MCP tool and argument, checked by a test (#137) The Tools table gains history and script_ui, get_layer's depth, add_keyframe's comp and the bridge screenshot's max_side and path. agents_doc_tools_table_is_current (effectcraft-automation) fails when a tool or an argument of its input schema is missing from the table, as effects_doc_is_current guards docs/effects.md. Co-Authored-By: Claude Opus 5.5 --- crates/automation/src/tests.rs | 38 ++++++++++++++++++++++++++++++++++ docs/agents.md | 8 ++++--- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/crates/automation/src/tests.rs b/crates/automation/src/tests.rs index 11ba83d3..dc2a6f1e 100644 --- a/crates/automation/src/tests.rs +++ b/crates/automation/src/tests.rs @@ -421,3 +421,41 @@ fn trained_models_over_mcp() { assert!(err && c[0]["text"].as_str().unwrap().contains("unknown model"), "{c:?}"); } } + +/// docs/agents.md's Tools table lists every tool, and an entry that lists arguments lists every +/// argument the tool's input schema accepts (#137). +#[test] +fn agents_doc_tools_table_is_current() { + // (Checkouts may have CRLF line endings.) + let doc = include_str!("../../../docs/agents.md").replace("\r\n", "\n"); + let table: String = doc + .split("### Tools") + .nth(1) + .and_then(|t| t.split("\n\n").nth(1)) + .unwrap_or_default() + .to_string(); + assert!(table.starts_with("| Tool |"), "no Tools table"); + let mut missing = vec![]; + for t in crate::tools::catalogue() { + // `name` (no arguments) or `name {a, b?, …}`. + let Some(at) = table.find(&format!("`{}", t.name)).filter(|i| { + let rest = &table[i + 1 + t.name.len()..]; + rest.starts_with('`') || rest.starts_with(" {") + }) else { + missing.push(format!("{}: no entry", t.name)); + continue; + }; + let rest = &table[at + 1 + t.name.len()..]; + if !rest.starts_with(" {") { + continue; + } + let args = rest.split("}`").next().unwrap_or_default(); + let schema = t.input_schema(); + for prop in schema["properties"].as_object().into_iter().flat_map(|p| p.keys()) { + if !args.split(|c: char| !(c.is_alphanumeric() || c == '_')).any(|w| w == prop) { + missing.push(format!("{}: argument `{prop}`", t.name)); + } + } + } + assert!(missing.is_empty(), "docs/agents.md's Tools table is missing: {missing:#?}"); +} diff --git a/docs/agents.md b/docs/agents.md index 78a47121..eb9ebbba 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -53,18 +53,20 @@ The server speaks JSON-RPC 2.0 over stdio, one message per line, and supports MC | `get_state` | Editor state (active comp, time, selections, tool) plus `app`: version, command and effect counts, export formats, parity summary. | | `run_script {code, name?}` | Run JavaScript with the After Effects-style scripting object model (`app.project`, `comp.layers.addText(…)`, `layer.property("ADBE Transform Group").property("ADBE Position").setValueAtTime(…)`…). Returns `{ok, result, output, error: {message, line, column}}`; edits are undoable. | | `get_project` / `get_comp {comp?}` | Project items, comp settings and layers. | -| `get_layer {layer, comp?, time?, flat?}` | A layer's property tree. Every node has a `path`. | +| `get_layer {layer, comp?, time?, depth?, flat?}` | A layer's property tree (`depth` limits how many group levels expand). Every node has a `path`. | | `get_property {layer, path, comp?, time?}` | Value at a time, keyframes and expression. | | `set_property {layer, path, value?, time?, expression?, comp?}` | Sets a static value. With `time` it sets a keyframe; with `expression` it sets an expression. | -| `add_keyframe {layer, path, time+value \| keys:[...], interpolation?}` | Adds keys, then optionally applies linear/bezier/hold/easyEase. | +| `add_keyframe {layer, path, time+value \| keys:[...], interpolation?, comp?}` | Adds keys, then optionally applies linear/bezier/hold/easyEase. | | `list_effects {filter?}` | Effect ids, names, categories, GPU / 32-bpc support and parameters. | | `list_fonts {query?, rescan?}` | Font families text layers can use, bundled and installed, with their styles, origin and own-language name; `rescan` picks up fonts installed since launch. | | `add_effect {layer, effect, values?, comp?}` | Apply an effect and set its parameters in one call; returns the instance path (`effects/#n`) and its parameter paths. | | `render_frame {comp?, time?, max_side?, path?, inline?, transparent?}` | Returns a PNG image of a frame; `transparent: true` keeps the alpha (as an RGB + Alpha render writes it) instead of compositing over the comp background. | | `open_project {path \| demo \| new}` / `save_project {path?}` | Open and save files. | | `undo {steps?}` / `redo {steps?}` | History. | +| `history {goto?}` | The branching undo history (History panel): every state with its index, id, label, branch depth and whether it's current; `goto` (an index or id) jumps to any state, on any branch, without losing the others. | +| `script_ui {action?, window?, widget?, value?, result?}` | Drive ScriptUI windows that scripts opened: `list` (default) the open windows, `get` a window's control tree, `click` a button / checkbox / radio button, `set` text, a slider or a list item, `close` a window (`result`: what a dialog's `show()` returns, default 2 = Cancel). | | `batch {steps: [{command, params}], label?, atomic?}` | Several commands in one call and one undo step (`engine.batch`); `"$N.key"` in a param is step N's result (`"$1.layer"`). A failing step rolls the batch back and names the step. | -| *(bridge)* `screenshot {panel?, id?}`, `ui_inspect`, `ui_elements {prefix?}`, `ui_click`, `ui_drag`, `ui_key`, `ui_type`, `ui_set`, `control {method, params}` | Look at and operate the live window. | +| *(bridge)* `screenshot {panel?, id?, max_side?, path?}`, `ui_inspect`, `ui_elements {prefix?}`, `ui_click`, `ui_drag`, `ui_key`, `ui_type`, `ui_set`, `control {method, params}` | Look at and operate the live window. | Layers are referenced by id (from `get_comp`), `"#n"` (1-based index from the top) or name. Comps are referenced by id or name, and default to the active comp. Property paths come from `get_layer`, for From f9b6edb4e81aa04df6bad77b27c81f74ed1b98ee Mon Sep 17 00:00:00 2001 From: bflatastic Date: Wed, 7 Oct 2026 12:01:30 +0700 Subject: [PATCH 3/3] Tests: list_fonts checks the query's contract, not a count of one (#149) With installed families whose names contain the query (JetBrainsMono Nerd Font and its variants) the test expected exactly one match and failed. It now checks that every match contains the query, the count agrees, the query filters, and the bundled JetBrains Mono is there with its Regular style. Co-Authored-By: Claude Opus 5.5 --- crates/automation/src/tests.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/automation/src/tests.rs b/crates/automation/src/tests.rs index dc2a6f1e..dd236dad 100644 --- a/crates/automation/src/tests.rs +++ b/crates/automation/src/tests.rs @@ -400,10 +400,15 @@ fn list_fonts_lists_families_with_styles() { let all = call_json(&mut s, "list_fonts", json!({})); let fams = all["families"].as_array().unwrap(); assert!(fams.iter().any(|f| f["family"] == "Inter" && f["origin"] == "bundled"), "{all}"); + // The query filters by substring: the bundled JetBrains Mono, and any installed family whose + // name contains it (JetBrainsMono Nerd Font…) (#149). let one = call_json(&mut s, "list_fonts", json!({"query": "jetbrains"})); - assert_eq!(one["count"], 1, "{one}"); - assert_eq!(one["families"][0]["family"], "JetBrains Mono"); - assert!(one["families"][0]["styles"].as_array().unwrap().contains(&json!("Regular")), "{one}"); + let matched = one["families"].as_array().unwrap(); + assert_eq!(one["count"].as_u64(), Some(matched.len() as u64), "{one}"); + assert!(matched.iter().all(|f| f["family"].as_str().unwrap().to_lowercase().contains("jetbrains")), "{one}"); + assert!(matched.len() < fams.len(), "the query filters: {one}"); + let mono = matched.iter().find(|f| f["family"] == "JetBrains Mono").unwrap_or_else(|| panic!("{one}")); + assert!(mono["styles"].as_array().unwrap().contains(&json!("Regular")), "{one}"); } /// Trained models over MCP (Roto Brush and face tracking): listed with their authors and @@ -428,12 +433,7 @@ fn trained_models_over_mcp() { fn agents_doc_tools_table_is_current() { // (Checkouts may have CRLF line endings.) let doc = include_str!("../../../docs/agents.md").replace("\r\n", "\n"); - let table: String = doc - .split("### Tools") - .nth(1) - .and_then(|t| t.split("\n\n").nth(1)) - .unwrap_or_default() - .to_string(); + let table: String = doc.split("### Tools").nth(1).and_then(|t| t.split("\n\n").nth(1)).unwrap_or_default().to_string(); assert!(table.starts_with("| Tool |"), "no Tools table"); let mut missing = vec![]; for t in crate::tools::catalogue() {