Commit Graph
97 Commits
Author SHA1 Message Date
chasse20 cd45779684 Auto: Integrate main's RFC-0018 CLI changes
Keep the approved export repairs alongside the new CLI and packaging. Preserve both branches' Cargo dependency declarations and protocol documentation.
2026-11-28 00:30:16 +00:00
FredApps bd03a0411f texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages) (#875)
* 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.
2026-11-28 01:01:49 +01:00
FredApps 6b64c5b9af Merge main into feat/export-pass 2026-11-26 09:05:57 +01:00
aiongg 8180c82fab Merge storytold main (3c026860) into the minimal port 2026-11-26 03:21:25 +00:00
skylar taylor-barrick dc2c80739b Bake on the CPU under coverage so the Sonar shards stop crashing at exit (#840)
Merged under Skylar's explicit override (Nightly 792) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
2026-11-25 20:02:16 -06:00
Rebornim f67270d6ae Export: JPEG 2000 back to greyed; its writer moves to craft-libs
The j2k/jp2 writer is a codec, so it goes to craft-image-codecs first (review on #827); the export wires it in again once craft-libs ships it.
2026-11-25 23:10:25 +00:00
chasse20 47c6ea8f21 Auto: Fix headless export options and reduce export memory use
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.
2026-11-25 21:48:17 +00:00
aiongg 8a83057ac3 Repin craft-libs to storytold next 8fa4db64a9 and egui to b9770908e 2026-11-25 19:15:14 +00:00
aiongg 8af1bf8456 Repin craft-libs to storytold next aa401985d 2026-11-25 15:52:23 +00:00
aiongg 4292f553f5 Repin craft-libs to storytold next d1bdf8e5da 2026-11-25 13:44:23 +00:00
aiongg 02613270e4 Repin egui to storytold b15ffe9bfc (what craft-libs next pins) 2026-11-25 06:32:50 +00:00
aiongg a85b1437aa Repin craft-libs to storytold next 16001e7210 and egui to storytold b15ffe9bfc 2026-11-25 06:31:20 +00:00
Rebornim 7a3b95e798 Export: JPEG 2000 file types, lossless, as a raw codestream (j2k) or a JP2 file (jp2)
Encoded by the j2k crate (MIT OR Apache-2.0, pure Rust; craft-image-codecs only reads JPEG 2000), which needs Rust 1.96, so the README asks for 1.96.
2026-11-25 05:31:29 +00:00
aiongg f86ed91063 Repin craft-libs to 283490a083: a rail popup dragged onto a tab strip docks its panel 2026-11-24 20:15:56 +00:00
aiongg dcbdd00650 Repin craft-libs to 9fd8b0cdaa 2026-11-24 19:12:39 +00:00
aiongg 172d85528d Repin to craft-libs 3ad64a26ea: rail drag hand-over through DockArea::continue_move, Delete and Backspace apart through the keymap, Answer::Saved 2026-11-24 17:07:48 +00:00
aiongg a13e9a74ee Host TextureCraft's egui UI on craft-libs next's runtime
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.
2026-11-24 15:32:09 +00:00
aiongg 3daa39f5ee minimal-port rewrite: 39 edits (dock 11, split rename 11, split 7, dock rename 5, keymap rename 2, deps 2, keymap 1) 2026-11-24 15:17:20 +00:00
aiongg 77d25c6462 Repin: one craft-libs rev serves the USDZ writer, so the second craft-zip pin goes 2026-11-24 15:17:05 +00:00
aiongg 4d682aa961 minimal-port repin: 33 edits (revs 28, features 5) 2026-11-24 15:16:48 +00:00
chasse20 30d7ee51c4 Remove redundant tests and fix unused build warnings 2026-11-23 03:56:43 -05:00
Dylan M. Taylor cf37994744 fix(formats): preserve multiple COLLADA node cameras and optimize glTF material lookup (#715)
* fix(formats): preserve multiple COLLADA node cameras and avoid O(N) glTF material lookup

* perf(formats): index high-poly base colors by material name
2026-11-20 14:31:52 -05:00
Dylan M. Taylor 7bc833ff6a formats: cut over OBJ/GLB mesh export and EXR writing to craft-libs (#697)
* 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
2026-11-19 20:43:02 -05:00
Dylan M. Taylor 549daad3aa formats: cut over USDA/USDC scene read/write to craft-usd (#778) (#696)
* 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
2026-11-19 20:40:23 -05:00
Dylan M. Taylor 75271b3934 formats: share COLLADA (.dae) and Alembic (.abc) import via craft-mesh (#695)
* 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
2026-11-19 20:40:17 -05:00
chasse20 c344ddc2e3 Auto: Integrate main and preserve pending Settings edits
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.
2026-11-19 05:37:26 +00:00
Dylan M. Taylor 51c3f6441d chore: cut over runtime raster image codecs to craft-image-codecs (#668)
* 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
2026-11-18 22:15:08 -05:00
chasse20 4ff9cab867 Auto: Integrate main and fix UI state, bake reporting, and export plans
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.
2026-11-19 01:47:14 +00:00
Chris Hassebrook 68b579f0c8 Cook MCMAT v3 linked materials at the texture set resolution (#644)
* Cook MCMAT v3 linked fills through MaterialCraft

* Install bounded material bakes at the original drop target
2026-11-18 18:57:44 -05:00
Dylan M. Taylor d7739b0645 Use shared strict glTF URI percent decoding 2026-11-18 01:59:37 -05:00
Dylan M. Taylor bee2791eb9 chore(usdz): pin aligned ZIP writer to merged revision 2026-11-17 07:45:44 -05:00
Dylan M. Taylorandbflatastic 9d7077601b Use shared aligned stored ZIP entries for USDZ export
Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-16 23:26:09 -05:00
FredApps 1e3ebf9e5e Merge main into codex/shared-obj-consumer 2026-11-16 10:38:51 +01:00
FredApps 8dabdd37ea Merge main into codex/shared-obj-consumer
craft-mesh stays at 284b0d81 (#1731 head, now an ancestor of craft-libs main;
same ply/stl sources as main's d6ed8c20) with main's PLY feature added; tobj
stays removed.
2026-11-16 09:44:52 +01:00
FredApps 3ec5734fe0 Merge main into codex/shared-fbx-consumer
Repin craft-mesh from integration commit d0abb877 (not on craft-libs main)
to 4f9c7189, the craft-libs main commit with the identical tree
(2ffca004), keeping main's PLY feature and pins.
2026-11-16 09:44:19 +01:00
FredApps 5f9939687b Merge pull request #534 from storytold/refactor/shared-usd-integer-write
Use bounded shared USD integer delta encoding
2026-11-16 09:34:17 +01:00
FredApps 2ae9dc1572 Merge pull request #530 from storytold/refactor/shared-ply-rows
Use shared PLY body decoding while retaining strict import policy
2026-11-16 08:54:10 +01:00
FredApps 87d617b728 Merge main into refactor/shared-usd-integer-write 2026-11-16 08:39:13 +01:00
FredApps 18b3343716 Merge main into refactor/shared-usd-lz4-write 2026-11-16 07:59:30 +01:00
FredApps af78121279 Merge main into refactor/shared-usd-integers 2026-11-16 07:26:28 +01:00
FredApps 55a3dee2ed Merge main into refactor/shared-usd-lz4 2026-11-16 06:47:58 +01:00
FredApps ebb4bc8673 Merge main into refactor/shared-ply-rows 2026-11-16 06:47:44 +01:00
Dylan M. Taylorandbflatastic 8a1baa35ac Use bounded shared USD integer delta encoding
Preserve packed wire values and propagate bounded scratch/output allocation failures through USD export.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 15:35:21 -05:00
Dylan M. Taylorandbflatastic 939b12bfd0 Use fallible shared USD Crate LZ4 writing
Propagate compression errors through USD writer values, sections and finish. Bound worst-case output reservation by the existing 2GiB app ceiling; preserve normal wire bytes and scene policy.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 15:18:23 -05:00
Dylan M. Taylorandbflatastic 8003210b64 Use shared bounded USD integer delta decoding
Keep the existing aggregate decoded byte budget, integer writer and scene mapping. Depends on craft-libs #1742 and TextureCraft #531.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 15:10:14 -05:00
Dylan M. Taylorandbflatastic 646fa2e454 Use shared USD Crate LZ4 decompression
Preserve TextureCraft scene/material policy, integer packing and writing; replace only bounded LZ4 framing reads. Depends on craft-libs #1738.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 14:50:57 -05:00
7f40386c97 Reuse shared PLY body decoding without changing strict import policy
Keep the app header grammar, geometry and colour interpretation while replacing the local scalar and endian reader with craft-mesh Rows.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
Co-authored-by: NetterSilver <133535268+Silvertree2010@users.noreply.github.com>
2026-11-15 14:38:33 -05:00
Dylan M. Taylor e664e65d94 Use shared OBJ reader 2026-11-15 19:16:46 +00:00
Dylan M. Taylor b81a54228f Preserve FBX placement and polygon order 2026-11-15 19:10:16 +00:00
Dylan M. Taylor e2ff5144cd Bound FBX color seam staging 2026-11-15 18:58:03 +00:00