Keep the approved export repairs alongside the new CLI and packaging. Preserve both branches' Cargo dependency declarations and protocol documentation.
* texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages)
Closes#866. Part of storytold/craft-contrib#95.
* fix(cli): enable clap env, and close replacement and token gaps
- Enable clap's `env` feature so TEXTURECRAFT_CONTROL_TOKEN compiles in a
standalone `-p texturecraft-cli` release build (the FreeBSD package job).
- An inherited token no longer implies --bridge; only a command-line
--token does.
- Compare run/bake/new outputs to the path Headless::save actually writes
(it appends .tcraft when the extension is missing).
- Apply the same replacement rule to batch (save vs open), with --in-place.
- Build man-and-completions for the host when CARGO_BUILD_TARGET is set.
- Don't panic in the blank-token test when the environment already has a
token.
* fix(cli): require both roots for headless mcp
AGENTS.md rule 18 says an agent entry point must refuse to start without
--automation-read-root and --automation-write-root (the --read-root /
--write-root aliases here). Headless mcp now exits 2 unless both are
set; --bridge is unchanged. The missing-CLI_DOCS diagnostic also names
the host-example env -u CARGO_BUILD_TARGET prefix already used to build it.
Keep native Wayland when the local X server rejects setup or lacks the requested screen. Cover rejected and accepted replies, document pointer support and Flatpak access, and retain the PhotoCraft copyright and license notices.
Focused Linux desktop, titlebar and framework tests passed, along with Clippy, formatting, layers and wasm checks.
A DISPLAY left over from another session could force X11 with no X server to connect to, and
winit can't fall back to Wayland then. The title bar decision and the UI runtime read the
backend from the environment and saw Wayland while the window opened on Xwayland.
Stage bundled samples and install them without replacing a file that
appears during the copy. Record the Material Ball’s provenance and
clarify the desktop picker fallback and browser behavior.
Validated with Linux UI tests, focused release tests, formatting,
Clippy, layer checks, and WebAssembly compilation.
Integrate main and honor per-map sizes and shader sidecars through MCP. Preserve texture writes when an optional sidecar fails, and cover both outcomes through the tool transport.
Bound layered PSD working memory, preserve set and UDIM names, and report effective dithering. Match previews to stored channels and identify linear grayscale JP2 samples correctly.
Reuse sample buffers, cache unchanged template plans, and share identical grayscale preview textures. Remove the obsolete direct XML dependency. Apply the maintainer’s preset attribution decision and retain the ICC credit and codec notices.
Round-trips cover project save and reopen, older projects and templates without the
field, and template save and apply. The F0 export is checked against the CPU tracer's
Metallic/Roughness F0 at IOR 1.8 in both modes; the GPU tracer is compared with the
CPU tracer and the viewport with and without the setting. Specular/Glossiness export
and shading stay identical with the setting on.
Conflicts: apps/texturecraft/src/main.rs (kept the port's Decision/frame_guard/framework::install and main's exit hook, Nightly banner and os_window identity; dropped macOS movable), crates/ui-egui/src/lib.rs (kept both mods), crates/ui-egui/src/titlebar.rs (kept PREFIX and NIGHTLY_ICONS). Added install_headless to main's two new test harnesses.
The runtime is installed from TextureCraft's own eframe App (framework.rs): the close question
decides in the runtime's close path, the window's Escape runs TextureCraft's Escape handlers and
the shortcut recorder, the viewport is the window's document canvas (Tab stays Hide UI), and
Ctrl+Q and F6 stay TextureCraft's. The dock is next's DockArea over the saved workspace, with the
viewport as its canvas group; the update dialogs run on a DialogHost; the strip is next's
TitleBar where the app draws the frame. The removed helpers (icon-button painter, pane split,
widget palette, shortcut dispatcher) are app-local. Every app harness installs the runtime.
Integrate origin/main at 2037b6b8 while preserving the menu and dialog changes. Resolve the color-selection rewrite, toolbar imports, app state, and upstream test cleanup conflicts.
Validation: cargo +1.100.0 check -p texturecraft -p texturecraft-ui-egui --all-targets --locked passed. Tests and screenshots were not run.
* fix(formats): preserve multiple COLLADA node cameras and avoid O(N) glTF material lookup
* perf(formats): index high-poly base colors by material name
Match menu labels, defaults, checkmarks, toolbar visibility and Help links. Add recent-project limits, per-mode layouts and session log actions. Make dialogs movable and resizable with consistent titles and scrollbar clearance.
Validation: release app build succeeded and preview opened. Full tests and screenshots were not rerun at the user's request.
* formats: cut over OBJ/GLB mesh export and EXR writing to craft-libs (#778)
* fix(export): use Format::OpenExr for craft-image-codecs
* fix(export): import std::io::Cursor in tests
* test(engine): handle OBJ output without leading header before o
* chore: repin craft-mesh and craft-image-codecs to craft-libs main
* formats: cut over USDA/USDC scene read/write to craft-usd (storytold/craft-libs#778)
* chore: update Cargo.lock for craft-usd
* chore: update craft-usd pin to 5161fcc (storytold/craft-libs#778)
* chore: repin craft-usd to craft-libs main
* formats: cut over COLLADA (.dae) and Alembic (.abc) import to craft-mesh
* chore: bump craft-mesh to 809a72e
* chore: bump craft-mesh pin to 5415dfe
* chore: repin craft-mesh to craft-libs main
Keep desktop previews and UDIM sizing aligned with writes. Preserve map overrides across template edits, prevent cross-set MaterialX references, validate map options and forward them through MCP. Use the shared PGM and PSD writers and enforce the PSD dimension limit.
Reuse diffusion storage, borrow float TIFF samples, skip padding for empty plans and release ZIP inputs as they are packed. Release browser download URLs and callback references on success and failure. Give export messages original wording and organize new types by file.
Validated with release tests, Clippy, layering, WebAssembly, offscreen UI checks and paired allocation probes.
Integrate main’s shared raster codecs for desktop icons, screenshot PNGs, and mesh base-color textures. Preserve the approved Settings draft reconciliation and its regression tests.
* chore: cut over runtime raster image codecs to craft-image-codecs
* fix(formats): move inline mesh_import test into tests.rs
* fix(engine): simplify nonminimal_bool in user_brushes.rs
* fix(ui-egui): simplify nonminimal_bool in link_import.rs
* fix(formats): use as_chunks::<4>() in mesh_import for clippy
* fix: preserve mesh texture orientation and resize precision
Preserve main's procedural patterns and linked-material changes. Keep camera navigation, pending dialogs, Settings drafts, shortcut capture, and shelf contents consistent across project and UI state changes.
Mark persisted panel edits as modified. Accept existing bake settings in presets, count newly baked maps, and open failed bakes on the General log channel. Record log times and severity when each event occurs.
Reuse selected export plans, move completed JSON results into place, and avoid copying cached shelf paths or building unused preset catalogs. Add regression coverage and update the control protocol examples.
Preserve main UI and translation changes. Bound archive indexing, directory scans and native reads; fix resolution-token overflow, unique-name replies and dialog behavior.
Avoid generated-map re-decoding and input-buffer clones, release packed sources after their final use, and borrow dialog candidates. Keep generated pixels identical to PNG reloads. Organize new types and preserve the public classifier module.
Validated with 973 release tests, focused UI and allocation probes, panic hunt, clippy, layering, wasm, formatting and diff checks.