Commit Graph
28 Commits
Author SHA1 Message Date
Tanish Manku 3f214d7ccd fix(control): close a refused connection gracefully so the client reads the reply (M8)
Closing a socket with unread input resets the connection, and on macOS the reset can discard
the refusal before the client reads it (the oversized-line test failed on the macOS gate). The
port now stops writing, drains what the client is still sending (bounded: 8 MiB, 2 s), then
closes.
2026-11-17 17:52:50 -07:00
Tanish Manku ef3fc8b2e0 chore: merge main (outside core batch) into the outside features batch (M8) 2026-11-17 17:11:07 -07:00
Tanish Manku 2fb798f12c fix(control): leave the control port and its getrandom out of wasm32 builds (M8) 2026-11-17 13:59:24 -07:00
Tanish Manku 34d94154a0 fix(control): free the port with the window, drop silent connections, exclusive token file, portable installs (M8) 2026-11-17 13:46:04 -07:00
Tanish Manku 1331de2caa fix(cli): derive subcommand help from the usage text; bounds-checked lexer slice; credits (M8)
Fix-ups on the outside PRs merged in this batch:
* #217: subcommand_usage reads the entries out of USAGE instead of keeping a
  second copy, so export, formats and guide search are covered and the two
  cannot drift apart.
* #143: the surrogate-pair lookahead slices with get(), not an index.
* #145 (declined, the reader is craft-xml now): pin that signed numeric
  character references stay text.
* AUTHORS.md and CHANGELOG.md credit the contributors.
2026-11-17 13:36:47 -07:00
Tanish Manku 6f1adc4ea2 Merge outside PR #216: feat(control): live control port and MCP bridge (ADR 0104) (M8)
# Conflicts:
#	CHANGELOG.md
#	docs/roadmap.md
#	src/main.rs
2026-11-17 13:34:18 -07:00
Tanish Manku 5f37023bcc Merge outside PR #217: fix(cli): subcommand --help prints that subcommand's usage
# Conflicts:
#	crates/cli/src/lib.rs
2026-11-17 13:34:12 -07:00
Tanish Manku a6d85424b4 Merge outside PR #221: docs(cli): say which frame numbers are 1-based and which are 0-based
# Conflicts:
#	crates/cli/src/lib.rs
2026-11-17 13:33:49 -07:00
Tanish Manku 780c08d342 Merge outside PR #337: fix(mcp): correct render caption dimension separator 2026-11-17 13:32:40 -07:00
Tanish Manku 4a25817937 chore: merge main (guide search and context help) into saved commands (M6)
Context help gains the macro namespace and the Save As Command and Manage Saved Commands
windows; the guide's chapter list numbers both new chapters.
2026-11-16 18:26:04 -07:00
Tanish Manku 8bf45991ac perf(engine): registry lookups built once; macro.history checks steps without copying them (M6)
find_command rebuilt the whole registry (~360 specs) on every call, and
macro.history cloned every recorded command's params to list a step.
panic_hunt_every_command (which runs macro.history about 600 times per
session over up to 10,000 steps): over 40 min before, 144 s after (debug,
Windows, this machine). The CLI test's failing file now selects first.
2026-11-14 04:13:02 -07:00
Tanish Manku f167ebe3da feat(engine): command macros: history records each step's commands, macro.* commands (M6)
Every undo step keeps the commands it ran; Save As Command rewrites ids of
this document to act on the selection or active layer, or names the step it
can't keep. macro.run is one transactional undo step; macros call only what
a plug-in may, and plug-ins can't call macro.*. anicraft-cli run reads saved
command files. ADR 0097.
2026-11-14 04:13:01 -07:00
macallantheroot c454446677 fix(mcp): correct render caption dimension separator 2026-11-14 12:43:05 +03:00
Tanish Manku 3ae20fe24f feat(guide): search in the bundled guide (prebuilt index, offline search page, same ranking in anicraft-cli guide search) (M8) 2026-11-13 23:44:33 -07:00
Tanish Manku e92cdf98b6 feat(engine): exporter plug-ins (file.export_plugin, file.export_formats) and plug-in eases; anicraft-cli export and formats (M6) 2026-11-13 17:35:49 -07:00
Tanish Manku c1b5941f12 fix(xfl): one damaged part no longer refuses a .fla, white default stage, the CLI opens Animate files (M8)
Since 0.1 the importer reads bitmaps, sounds and the publish settings from the
package with `?`, so one entry failing its checksum or the archive's limits
refused the whole document (#226). Optional parts are now left out and
reported; damage to DOMDocument.xml still refuses the file. Animate omits the
default white backgroundColor, which imported as black (#163). anicraft-cli
info/render/exports open .fla/.xfl through file.open.

Tests: damaged bitmap/symbol parts (fail before the fix), white stage,
every entry point (file.open, upper-case .FLA, Open Recent, drop routing,
browser vfs) over the corpus, CLI subcommands.
2026-11-12 12:59:10 -07:00
jayzed80 2cc96ba8f0 docs(cli): say which frame numbers are 1-based and which are 0-based (#152)
The usage text said only that frames on the command line are 1-based.
It now also says that frame numbers inside JSON params, scripts and
command results are 0-based, as docs/mcp.md already does.
2026-11-12 10:39:11 +00:00
jayzed80 a3c1a7d8ec fix(cli): subcommand --help prints that subcommand's usage (#153)
`anicraft-cli <subcommand> --help` (and `-h`) was parsed as a flag missing its
value and failed with "flag --help needs a value". It now prints the usage lines
of that subcommand, as does `anicraft-cli help <subcommand>`. An unknown
subcommand still reports an error with the full usage.
2026-11-12 09:12:27 +00:00
lienatanael1-beepandClaude Opus 5.5 882668b88c feat(control): live control port and MCP bridge
`anicraft --control <port>` opens a JSON-lines control port on 127.0.0.1;
`anicraft-cli mcp --bridge <port>` serves the same five MCP tools against
the open window. The app runs the CLI's own `mcp::call_tool` (now generic
over a `Host`), so live and headless share one dispatcher. A per-run token
is written to control.json in the settings folder and removed on exit.
Edits wait while the person drags, so undo steps never merge.

ADR 0070, docs/control-protocol.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 15:08:24 +07:00
Tanish Manku c5b016532a feat(guide): the user guide, generated command and shortcut references, Help › User Guide (M8) 2026-11-11 23:27:29 -07:00
Tanish Manku a20a488fb6 feat(export): animated PNG and animated WebP export (M4) 2026-11-11 18:03:14 -07:00
Tanish Manku 7fbad142b6 feat(cli): anicraft-cli --version, window app id ai.storyteller.anicraft (M8)
The release packaging smoke-tests every build with anicraft-cli --version. The window's
Wayland app_id / X11 class becomes the reverse-DNS id the desktop entry, AppStream, Flatpak
and macOS bundle use (platform::APP_ID), so docks match the window to its launcher.
build.rs fails instead of warning when ANICRAFT_REQUIRE_WINRES=1 and the icon can't be
embedded (set by the Windows packaging).
2026-11-09 12:29:14 -07:00
Tanish Manku f99d34c2db feat(plugins): sample Star Field and Jitter Selection plug-ins in Rust with a guest SDK; anicraft-cli --plugins (M6) 2026-11-09 03:31:44 -07:00
Tanish Manku ade67dcc9a feat(app): background autosave with Restore / Discard / Later on start (M8)
The shell schedules recovery copies (every minute or 25 changes, set in
Preferences > Files > Autosave, with an off switch) on the engine's
Autosaver, waking itself when the interval runs out; the recovery folder
comes from platform::recovery_dir. A non-blocking window offers work left
by crashed sessions; File > Recover Autosaved Documents brings it back.
Clean exits and saves remove the copy. Preferences scroll when taller
than the window. bench measures one autosave.
2026-11-09 02:19:34 -07:00
Tanish Manku ada6505bcd perf: enforce machine-independent budgets in tests; bench --check for timing budgets 2026-11-06 22:10:34 -07:00
Tanish Manku 244d7e02f6 feat(cli): MCP server (anicraft-cli mcp) for AI assistants over the command registry 2026-11-06 21:57:09 -07:00
Tanish Manku 99ef1c3a9a feat(model): scenes: Document.scenes with per-session scene, movie vs scene evaluation, scene commands and menu, XFL imports every scene, format v3 (ADR 0011) 2026-11-06 19:24:28 -07:00
Tanish Manku e3913afa36 Initial commit v0.1.0 early alpha
AniCraft 0.1.0 (early alpha): milestones M0 and M1. Contributors are credited in AUTHORS.md.
2026-11-05 23:58:25 -07:00