1622 Commits
Author SHA1 Message Date
Dylan M. Taylor 846553d13d ci: pin storytold/craft-common-actions to @main universally (#901) 2026-11-28 16:07:28 -05:00
Dylan M. Taylor ded20a74bd ci(sonar): exclude diagnostic wasm_size_report.py CLI script from taint analysis (#900) v0.6.1-nightly.20261128.46182144970.1.gded20a74bdd9 2026-11-28 14:37:04 -05:00
Dylan M. Taylor 4336c9accd fix(web): inline realpath prefix check in wasm_size_report.py for SonarCloud (#899) 2026-11-28 13:24:25 -05:00
Dylan M. Taylor c80f93efd3 ci(nightly): pin shared signing workflows, move macOS notices to Resources/docs, and fix profile reopen (#896)
* ci(nightly): pin shared signing workflows, move macOS notices to Resources/docs, and fix profile reopen

* style(profile_root): format with rustfmt
2026-11-28 11:51:05 -05:00
FredApps 6339b30cbc Merge pull request #894 from storytold/fix/wasm-size-profile
web: get the wasm under the 24 MiB gate (size profile, deflated embedded data, size report)
2026-11-28 15:41:43 +01:00
FredApps 7001cac3eb ui-egui: name each generated font file after its full craft-fonts path
Faces that share a file name in different folders no longer overwrite
each other under OUT_DIR.
2026-11-28 15:53:44 +07:00
FredApps 2332602c4e web: embed fonts, catalogs, the icon font and the studio HDR deflated
The web build is under a 24 MiB download budget. Its embedded data is
now stored deflated and inflated once at startup: the craft-fonts faces,
the translation catalogs, the Phosphor icon font and the studio
environment HDR. egui's default faces come from craft-ui's deflated
copies instead of egui's default_fonts feature, and the engine's
built-in text fonts (Ubuntu Light, Hack) come from the same copies
through text_cmds::provide_built_in_fonts. Desktop builds are unchanged.
2026-11-28 15:37:56 +07:00
FredApps e70e4cbf84 Merge remote-tracking branch 'origin/main' into fix/wasm-size-profile 2026-11-28 09:16:22 +01:00
FredApps bf379a3937 web: only read .wasm files under the repo or CARGO_TARGET_DIR in the size report 2026-11-28 09:16:22 +01:00
Chris Hassebrook 5e8ccdb9d3 Merge pull request #864 from MorionTutoriales/fix/857-rename-project
Make the project renamable (#857)
2026-11-28 03:09:53 -05:00
Chris Hassebrook a7180a23ba Merge pull request #879 from MorionTutoriales/fix/851-recovered-copy
Autosave: open a copy as an unsaved project
2026-11-28 02:41:51 -05:00
chasse20 b955de0e4d Auto: Fix MaterialX filename collision test
Use a real duplicate texture path in the fixture so literal token substitution remains intact. Validate the engine integration suite with the updated main.
2026-11-28 07:31:51 +00:00
FredApps c1a395f3fa web: size-optimize the wasm profile and report the biggest contributors
The web build's wasm has been over the 24 MiB gate in packaging/web/package.sh
since the nightly Release dry run of 23 Nov. This change brings it down by about
4.2 MB; it does not bring it under the gate on its own.

- Cargo.toml: the wasm-release profile uses opt-level "z" instead of "s". The
  crates that rely on inlining (fearless_simd, vello_cpu, vello_common,
  craft-image-codecs, texturecraft-core) stay at "s", because they come out
  larger at "z". The per-pixel crates stay at opt-level 3.
- packaging/web/wasm_size_report.py: lists the wasm's sections and its largest
  crates and functions.
- packaging/web/package.sh: when the size gate fails, it prints that report.
2026-11-28 08:23:58 +01:00
Chris Hassebrook 7f16522d87 Merge pull request #889 from Rebornim/fix/images-used-material-effects
Assets: Remove unused keeps the package and maps of a material linked in a content effect
2026-11-28 01:41:44 -05:00
chasse20 4c1d486fc4 Auto: Integrate main and fix rename validation and export naming
Preserve both branches’ engine tests. Validate the project name before applying other dialog settings, clear discarded text undo history, and keep an unsaved project’s autosave filename stable across renames.

Expand export tokens once, preserve literal text in names, and sanitize flat stems directly. Reuse the dialog’s name buffer and update the command documentation and generated headless parity report.
2026-11-28 06:39:00 +00:00
chasse20 7b06725641 Auto: Fix recovery aliases and control replies after integrating main
Recognize alternate spellings of the same autosave without detaching an independent file. Return the recovered session's actual path and modified state from desktop file.open, borrow command parameters, and move the inspection result into its reply.

Extend the disk regression to verify both the recovered autosave and an explicit Save As after the original project autosaves again. Record the conditional file-identity dependency and its attribution.
2026-11-28 06:38:55 +00:00
Chris Hassebrook 7c8dd1ae4e Merge pull request #255 from SteamSmith/fix/mesh-folder-symlinks
Files a mesh references must stay inside its folder once links are followed
2026-11-27 22:55:58 -05:00
Chris Hassebrook d41cf01f7f Merge pull request #827 from Rebornim/feat/export-pass
Export pass: layered PSD, per-map size, shader settings, Esc, hover preview, look and spec-backed templates
2026-11-27 22:55:22 -05:00
Chris Hassebrook 216b199c5d Merge pull request #844 from Rebornim/feat/assets-pass-2
Assets panel pass 2: a right-click menu on every asset, favorites, a drag ghost that says where it can drop, automatic updates and a second Assets panel
2026-11-27 22:54:04 -05:00
Rebornim 31bf2a58ca Assets: Remove unused keeps the package and maps of a material linked in a content effect
images_used counted a linked material's package and cooked maps only on a fill layer, so
Remove unused dropped them (and a smart material left them out) when the link sat in a
content fill effect.
2026-11-28 02:33:59 +00:00
FredApps 95d90ee453 Parity: RFC-0052 headless column in the parity report (#888)
docs/parity.md gets a headless column computed from the engine registry that texturecraft-cli and the MCP server load: 21 yes, 40 no (window 33, os 5, engine-gap 2), 3 partial, 0 unknown of 64 items, per RFC-0052.
2026-11-28 02:21:37 +01:00
ff18396f78 Keep the web build under its size gate by subsetting CJK fonts (#803)
* web: cut the CJK interface face to the catalogs' characters

The scheduled Release dry run's Web (wasm) job has failed since 23 Nov 2026:
the wasm is 27,128,780 bytes against the 25,165,824-byte gate in
packaging/web/package.sh, and against Cloudflare's 25 MiB per-file cap.

Parsing the last green artifact puts 7.4 MB of the 24.8 MB module in embedded
fonts, of which the whole Japanese face is 4.67 MB. WordCraft already cuts its
web interface faces to the embedded catalogs (craft-libs' craft-fonts-build
`Embed::subset_to`, with `Embed::for_ui`); this app still embedded the whole
face.

A web build now subsets every face whose manifest script is Hans/Hant/Jpan/Kore
to the characters of the embedded catalogs, plus ASCII, Latin-1 and general
punctuation, and keeps the CJK punctuation block (U+3000-303F) and the kana
blocks (U+3040-30FF) whatever the catalogs say, so Japanese a user types in a
layer or file name still draws. That is craft-libs' precedent minus the
katakana phonetic extensions and the full-width forms, which cost a further
5 KB and are not in the cut. The subsetter is the skera/skrifa pair the Inter
cut already uses. The cut Japanese face is 650,268 bytes instead of 4,669,688,
so the wasm comes back to about 23.1 MB, under the gate with about 2.0 MB to
spare. The desktop build is unchanged and keeps its CJK faces whole.

Trade-off, as in WordCraft: CJK characters outside the catalogs and those
ranges (kanji, full-width forms) fall back to the interface font in the
browser build only.

* ui: drop the catalog builder's unused source-only entry point

cargo xtask ci's clippy leg (--all-targets -- -D warnings) fails the
ui-egui build script on `i18n_build::generate`: since the web font cut,
the build script only calls `embed`, so the wrapper is dead code in that
compilation unit and `-D dead-code` rejects it.

The integration test was its only caller, and it drives `collect`
directly elsewhere, so the tests keep a local `generate` wrapper over
`i18n_build::collect` and the production module stops carrying a function
nothing builds.

* docs: state the web CJK subset's coverage accurately

Han ideographs that are not in the shipped catalogs are omitted from the
web face and render as missing glyphs. Desktop still embeds the full faces.

* style: let cargo fmt order the skera import

The earlier rustfmt pass put the function before the types; cargo fmt
(with this repo's rustfmt.toml) wants Plan and SubsetFlags first.

---------

Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-28 01:57:32 +01:00
Rebornim 7e0bd1e6a2 Assets: the refresh popup's tests move a rewritten file's time on
Main's Resources Updater counts an equal-size file whose modification
time didn't move as unchanged, so a rewrite in the same millisecond as
the import read as up to date and the test failed on the gate.
2026-11-28 00:33:49 +00:00
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
chasse20 091869033a Auto: Preflight export paths and label tiled atlas previews
Reject selections that use one output path as both a file and a folder before rendering or starting a desktop export. Expose tile metadata in export.plan and use it to label atlas previews, including ambiguous filenames.

Write quantized 8-bit PSD rows directly into the merged-image buffer. Cover path conflicts in both orders, partial desktop writes, and visible atlas captions with regression tests.
2026-11-28 00:21:21 +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
Rebornim 97bc67f943 Merge upstream main into feat/assets-pass-2
Main's Resources Updater replaces the shelf's own resource.update and
resource.reload: the shelf menu's Reload and the refresh popup's
updates now run main's resource.status and resource.update, and Show in
reads the project's saved source path. A renamed image keeps its source
record, so it still follows its file.
2026-11-28 00:01:03 +00:00
Rebornim 145a4db4ec Assets: renaming an image also moves a generator's texture, grunge, micro details and Grayscale Conversion image 2026-11-27 23:08:28 +00:00
RebornimandClaude Opus 5.5 088a217d7b Merge main into feat/export-pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:00:30 +00:00
Chris Hassebrook 4e8cdd6f97 Merge pull request #843 from Rebornim/feat/bake-pass-3
Bake pass 3: the Baking Log, out-of-date mesh maps and Auto-rebake
2026-11-27 17:33:15 -05:00
dependabot[bot]andFredApps edb8456d62 ci(deps): bump the actions group across 1 directory with 6 updates (#831)
* ci(deps): bump the actions group across 1 directory with 6 updates

Bumps the actions group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [step-security/harden-runner](https://github.com/step-security/harden-runner) | `2.22.4` | `2.23.0` |
| [storytold/craft-common-actions/actions/checkout-craft-fonts](https://github.com/storytold/craft-common-actions) | `605d58766e8f536564da8fc81d3676ac86816dea` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/actions/checkout-craft-i18n](https://github.com/storytold/craft-common-actions) | `605d58766e8f536564da8fc81d3676ac86816dea` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/actions/rust-channel](https://github.com/storytold/craft-common-actions) | `605d58766e8f536564da8fc81d3676ac86816dea` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/.github/workflows/nightly-release.yml](https://github.com/storytold/craft-common-actions) | `be00e5ccd18b68e950c8a08532f2230e7c3d0cba` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml](https://github.com/storytold/craft-common-actions) | `be00e5ccd18b68e950c8a08532f2230e7c3d0cba` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |



Updates `step-security/harden-runner` from 2.22.4 to 2.23.0
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](https://github.com/step-security/harden-runner/compare/1d88384fd173af6ecb012dfd0264a306b711241a...aebdcf6156ab6691adf63218240e476564a1ed4c)

Updates `storytold/craft-common-actions/actions/checkout-craft-fonts` from 605d58766e8f536564da8fc81d3676ac86816dea to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/605d58766e8f536564da8fc81d3676ac86816dea...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/actions/checkout-craft-i18n` from 605d58766e8f536564da8fc81d3676ac86816dea to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/605d58766e8f536564da8fc81d3676ac86816dea...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/actions/rust-channel` from 605d58766e8f536564da8fc81d3676ac86816dea to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/605d58766e8f536564da8fc81d3676ac86816dea...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/.github/workflows/nightly-release.yml` from be00e5ccd18b68e950c8a08532f2230e7c3d0cba to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/be00e5ccd18b68e950c8a08532f2230e7c3d0cba...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml` from be00e5ccd18b68e950c8a08532f2230e7c3d0cba to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/be00e5ccd18b68e950c8a08532f2230e7c3d0cba...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/.github/workflows/nightly-release.yml
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/actions/checkout-craft-fonts
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/actions/checkout-craft-i18n
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/actions/rust-channel
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: keep nightly tooling-revision and signing policy in lockstep

Dependabot bumped the nightly-unsigned and nightly-release uses pins to
f94a438 but left tooling-revision and the installed signing policy on
be00e5c. The packaging checks require those pins to match.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-27 22:55:20 +01:00
chasse20 0d8f00ce30 Auto: Fix bake cancellation and integrate upstream desktop changes
Keep eligible maps from an interrupted bake in one undo step and preserve completed texture sets. Add resource status, update, and relink commands and the desktop Resources Updater.

Integrate Xwayland pointer support for Linux pens, Russian language selection and packaging metadata, private staging for MaterialCraft handoffs, and release-change notifications. Update tests and documentation for the affected behavior.
2026-11-27 21:47:23 +00:00
chasse20 b93c1a285d Merge validated target into TextureCraft bake review 2026-11-27 21:36:52 +00:00
Chris Hassebrook ffb2ecf390 Merge pull request #836 from vangel76/feat/wayland-tablet-816
Linux: open the window through Xwayland when a pen is attached on Wayland, so the pen works
2026-11-27 16:01:12 -05:00
chasse20 e274358a56 Auto: Integrate main and fix bake freshness and cancellation
Preserve Resources Updater links and bake provenance when replacing or clearing mesh maps. Keep unrelated maps on unchanged UV atlases, discard partial results from failed workers, and reject overflowing texture-set indices.

Track vertex colors, part assignments, tangent frames and the packed file used by material-color bakes. Share the common source fingerprint across each task's selected maps. Add reimport, cancellation and atlas regressions, update the control protocol, and clarify the affected code.
2026-11-27 21:00:57 +00:00
SteamSmith ae054df0e2 Merge pull request #759 from supersfera-online/i18n/ru
Add Russian translation (ru) for the Linux packaging metadata.

- Russian strings in the .desktop entry, the AppStream metainfo (summary, description, feature details, search keywords) and the MIME type descriptions, so Russian-language software centres and file managers show localized text.
- Metainfo strings are stated as CC0-1.0, as AppStream requires; per-file translation notices removed.
- Registering ru in the app's language list is left to #691.

Contributed by SuperSfera LLC (MIT OR Apache-2.0). Packaging files only (3 files); no code changes.
2026-11-27 15:03:29 -05:00
SteamSmith c53813e6ac Merge pull request #691 from JaffarSk24/i18n-offer-russian
i18n: offer Russian in the language picker.

- ru (Русский) is added to LANGUAGES. A Russian system (ru-RU, ru-SK, ru_RU.UTF-8) now starts in Russian once the catalog (storytold/craft-i18n#334) is embedded; the locale test covers those tags.
- Cyrillic no longer counts as a script needing a fallback font: the bundled UI fonts already carry every Russian letter, including Ё/ё and «».
- Docs (ROADMAP, features, localization-parity) now list eleven languages.

Without the catalog the picker entry falls back to English, as for other languages. Tests pin the UI harnesses to English where needed.
2026-11-27 15:02:57 -05:00
chasse20 59270b4a52 Auto: Validate Xwayland setup before selecting X11 and integrate main
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.
2026-11-27 19:58:00 +00:00
Chris Hassebrook 06a4758caa Merge pull request #880 from SteamSmith/fix/open-in-materialcraft-private-folder
Open in MaterialCraft stages its package in a private folder
2026-11-27 13:50:17 -05:00
Chris Hassebrook a3ad3c6138 Merge pull request #829 from vangel76/feat/resources-updater-817
Resources Updater: update or relink resources whose files changed on disk
2026-11-27 13:36:00 -05:00
Dylan M. TaylorandFredApps c8fbe38ed7 ci: notify artcraft-services on release state changes (#881)
* ci: notify artcraft-services on release state changes

* ci: pass only the dispatch token to the notify-services workflow

secrets: inherit hands the called workflow every repository secret, including
the signing credentials. The reusable workflow only reads
ARTCRAFT_SERVICES_DISPATCH_TOKEN, so map just that one.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-27 09:19:38 -05:00
Rebornim ba1d3aebc3 Keep the Baking Log tabs clear of the issues filter on a narrow dock, scrolling them when they don't fit, and cut Matching by Name's part names short to their column, in full on hover 2026-11-27 09:13:54 +00:00
Rebornim 57ffd56a03 Start an auto-rebake canceled in one project again in the next project opened, and wait while a press is held in a floating panel's window 2026-11-27 09:13:54 +00:00
Rebornim fe0208f5d3 Count no high part as unused while a set matching "Always" bakes from it, note the occlusion Rust Runoff reads, and keep the maps still queued when a bake is canceled 2026-11-27 09:13:54 +00:00
Kirill M b4e9c17575 docs: the CJK and Arabic picks need a font for their script
The language picker greys out a language whose script no available font covers, so a web build with catalogs but without craft-fonts cannot pick Japanese, Chinese, Korean or Arabic.
2026-11-27 07:16:23 +01:00
Rebornim 8d8993aae4 Forget the press records of earlier presses, so editors dragged once no longer stay in memory 2026-11-27 06:13:17 +00:00
Rebornim 1ab2f15349 Read each auto-rebake map's bake source once per poll and compare it with its record directly 2026-11-27 06:13:17 +00:00
Rebornim 6399d00822 Take a set's shared bake fingerprints once for all its maps, once per Mesh Map Bakers frame 2026-11-27 06:13:17 +00:00
Rebornim 67c8ec6470 Mask and restore a region bake's texels row by row instead of dividing per sample 2026-11-27 06:13:17 +00:00
Rebornim e3c299963b List the Baking Log, out-of-date mesh maps and Auto-rebake in the features 2026-11-27 06:13:17 +00:00