Commit Graph
622 Commits
Author SHA1 Message Date
dependabot[bot] 29933ea687 ci(deps): bump storytold/craft-common-actions/.github/workflows/windows-arm64.yml
Bumps the actions group with 1 update in the / directory: [storytold/craft-common-actions/.github/workflows/windows-arm64.yml](https://github.com/storytold/craft-common-actions).


Updates `storytold/craft-common-actions/.github/workflows/windows-arm64.yml` from 8bb4e5ab95443171104ad88113fe1ef9b0e5ce3f to 59d1ecc4ea15ab59f8d60d38b147d5016c1f1385
- [Commits](https://github.com/storytold/craft-common-actions/compare/8bb4e5ab95443171104ad88113fe1ef9b0e5ce3f...59d1ecc4ea15ab59f8d60d38b147d5016c1f1385)

---
updated-dependencies:
- dependency-name: storytold/craft-common-actions/.github/workflows/windows-arm64.yml
  dependency-version: fa5ef18780cf5e7d5d3b8de068de56cffc83cac5
  dependency-type: direct:production
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-16 11:14:11 +00:00
Dylan M. Taylor cbe639c592 Merge pull request #1491 from storytold/fix/uk-missing-agent-download-labels
fix(i18n): complete Ukrainian agent and download labels
2026-11-15 16:53:48 -05:00
Dylan M. Taylor 64879e3a98 fix(i18n): complete Ukrainian agent and download labels 2026-11-15 16:47:16 -05:00
Dylan M. Taylor b107cb93a7 Merge pull request #1089 from AxylumRust/refactor/core-clippy-pedantic
refactor(core): satisfy Clippy pedantic lints
2026-11-15 16:37:58 -05:00
Igor Bronovskyi 9c522c2c74 i18n: add a professional Ukrainian (uk) translation (#640)
* i18n: add a professional Ukrainian (uk) UI translation

Add crates/ui-egui/src/i18n/uk.tsv, a complete catalog (240 plain strings,
5 plural rows, 13 app taglines, 12 month names and the backend @msg/@id rows),
translated clean-room from the English source. Register it in LANGUAGES as
code "uk" with the East Slavic plural rule, cover it with i18n unit tests,
a Ukrainian UI integration test and the README language list.

* i18n(uk): call the portable package «Портативна версія»

* i18n(uk): document the functions this change touches

Add doc comments to every function the diff touches in the Ukrainian UI test,
the i18n catalog tests and the language registry, so the docstring-coverage
check sees a documented diff.

* i18n(uk): add missing strings and clean up "ще раз" to "знову"

Sync the catalog with upstream/main (add the new update-dialog prompt and
the reworded AppImage note for custom install folders), replace the
Russianism "ще раз" with the idiomatic Ukrainian "знову", and rephrase
the AppImage sentence to avoid calques.

* Revert "i18n(uk): add missing strings and clean up "ще раз" to "знову""

This reverts commit ebd0ce55f3.

* Revert "Fix saved filters hiding all apps on startup (#678) (#684)"

* i18n(uk): translate the strings upstream added

Cover the pin and reorder menu items, the Retry update button, and
MaterialCraft's tagline and details.

* i18n(uk): translate the strings upstream added

Cover the split Open button and its installability notes, launch options
and the flag quoting errors, and the Save button.

* i18n(uk): translate the strings upstream added

Cover the AniCraft and MailCraft taglines and the AniCraft details the
catalogs carry, the batch-update permission setting, and the download-size
label on a card.

* i18n(uk): build Installed with the fields main added

`Installed` gained `externally_managed`, `origin` and `installation`, so the
Ukrainian UI test failed to compile with E0063. Mirror russian.rs.

* i18n(uk): drop the unrelated process-pipe fix

The pipe-deadline wording and the inherited-pipe retry change belong in their
own PR, not in a translation branch.
2026-11-15 22:12:53 +01:00
Igor Bronovskyi 7c613b4ccf fix(native): name the pipe deadline when the child has exited (#1389)
Split out of #640 at review request: a translation PR is the wrong place for a process-handling change.

## What

When the direct child exits while a captured reader is still unfinished — a descendant holding a pipe, or output still being drained — `run_command_with_output` waits for the readers under the same deadline. On timeout the error said `<program> didn't finish within N seconds`, although the child had finished. It now says `<program> exited, but its output was still being captured at the N second deadline`, which names the shared deadline and does not claim the pipe is still open (`20026ee`).

In `inherited_pipe_tests`, an attempt whose direct child hit its own deadline before the holder filled both pipes proves nothing about inherited pipes, so the test retries it with a longer deadline, as it already did for an attempt that never reached the marker. The retry ceiling is a named `MAX_DEADLINE`.

## Testing

Run locally on Linux x86_64: `cargo test -p artcraft-launcher-native inherited_pipe_tests` passes (1 passed, 2 ignored fixtures), `cargo clippy -p artcraft-launcher-native --all-targets --locked -- -D warnings` is clean, and `cargo fmt --all -- --check` is clean. The wasm check was not run because this crate is not part of the web build. Hosted CI is left to run.
2026-11-15 17:30:01 +01:00
Mergen AGAYEV 1421092b93 Every title-bar drag and edge resize attempt counts, not every second one (#1363)
Fixes #1358

## What went wrong

On Linux and the BSDs the window system never reports the button release that ends a window
move or resize (rust-windowing/winit#2999, emilk/egui#7959): egui keeps the button pressed and
its drag bookkeeping (`InteractionState.dragged`, unreachable from the app) never ends, so the
next press is no press — every second drag attempt does nothing, and hover on the title bar
dies while the stuck "press" lasts. The same applies to edge resizes. The pinned egui fork
carries the same behaviour as v0.17.0, so current releases are affected.

## The fix (`crates/ui-egui/src/widgets.rs`)

- **Title bar drag** — a button held from an earlier frame that now moves over the bar is taken
  as the next attempt's start. It is sent at most once per press, and never on the press frame
  itself: a press that arrives already moving is a click (the window buttons sit in this bar),
  not a move.
- **Move and resize** — right after `StartDrag`/`BeginResize`, egui's pointer is let go
  (`PointerState::default()`), as though the undelivered release had arrived. That makes the
  next press a fresh one, which is the whole fix for the resize path (its trigger is a press
  transition) and re-arms the title bar's once-per-press marker.

Windows, macOS and the web deliver the real release; there the pointer is left alone.

## Tests

- `every_title_bar_drag_attempt_starts_a_window_move` and `every_edge_resize_attempt_starts_a_resize`
  drive two press-then-move attempts with **no release in between** — the compositor's exact
  behaviour — and require each attempt to send its command. Both fail on the previous code.
- The existing edge-press integration tests (`a_press_on_the_window_edge_only_resizes` among
  them) keep passing, pinning that a moving press is still a click.
- `cargo xtask ci` — all four steps green.

Honest limit: the compositor-level swallow itself is winit/upstream territory; this is the
launcher-side workaround until egui#7959 is fixed there.
2026-11-15 17:28:52 +01:00
Rishikeshan 26f1f0c767 fix(catalog): link MaterialCraft Website to its ArtCraft page (#1267)
## Summary

Fixes the MaterialCraft **Website** action opening the GitHub repository instead of the published ArtCraft page.

- Updates MaterialCraft’s catalog `site` URL to `https://getartcraft.com/apps/materialcraft`
- Updates the catalog regression test to cover the official Website URL

Fixes #1264

## Validation

- `cargo fmt --check`
- `git diff --check`
2026-11-15 17:27:21 +01:00
b24238a7d6 Download one app at a time, in the order they're shown (#403)
* feat(install): download one app at a time, in screen order

Downloads running side by side split the connection and each one crawls.
Apps now take turns: a download asked for while another is running waits
(shown as "Waiting for another download…", cancellable), and waiting
downloads start in the order the apps are listed on screen, following the
current sort. A download already finished on an earlier try skips the line,
and the next download starts as soon as the previous one is verified, while
that app installs.

- native: new `downloads::Downloads` queue (`install::DOWNLOADS`)
- protocol: `JobPhase::Queued`, `Command::DownloadOrder`
- ui: sends the sorted app order when it changes; new string in every catalog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(install): queue apps hidden by a filter or search in suite order

Only the apps on screen are sent as the download order; the queue puts any
other waiting app after them, in suite order, instead of by its place in the
current sort. Tests cover a hidden app, a search, and the queue's fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(install): let users choose how many downloads run at once

A "Simultaneous downloads" setting (1 to 4, default 1) in Settings > Updates,
sent in BackendOptions next to prereleases. The download queue counts running
downloads against it instead of allowing one: raising it starts waiting
downloads at once, lowering it lets running ones finish. Settings saved before
it existed allow one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(install): take a place in the download line when a job starts

Jobs joined the line only on reaching their download, so with nothing
downloading the first to get there started, even below others on screen: an
Update all batch started in suite order. start_job now takes the job's place
(Downloads::join) before its thread runs, and places not yet at their download
count when choosing who goes next. A place dropped before its turn (the job
failed, was stopped or found its file already downloaded) leaves the line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(install): document the functions the download queue touches

CodeRabbit's docstring coverage check was at 38% of the functions in the diff.
Doc comments on the queue, its tests, and the backend and UI functions that
changed. No code changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(install): give the platform-gated test jobs a place in line

Two Job literals in tests that only build on Linux and Windows
(a_downgrade_refuses_anything_but_an_msi_over_an_msi_install and
a_mac_downgrade_goes_ahead_without_a_package_to_put_back) were missing the new
place field, so the native tests didn't compile there.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(install): give the Windows MSI test a place in line, align the queued wording

The Windows-only integration test built a Job without the new place
field. The compact launcher-update row said "Waiting for other installs…"
for a queued download; it now matches the detail row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(install): let users turn the download limit off

"No limit" in Settings → Updates lets every download run at once, as the
launcher did before. The default stays at one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(install): keep the download queue building after the rebase onto main

Main grew new Job fields, two more UI catalogs (zh-TW, ka) and a settings
test that picked the nearest combo box. The test Job literal and both
catalogs get what the queue added, and the test now finds the install-format
chooser by its label, since the downloads dropdown sits closer to it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MS5Qb6riBMzoujge5GuGZF

* fix(install): join the whole batch to the download line before any worker starts

An "Update all" started each worker right after joining the line, so the
first worker could take a free slot before a row above it had joined.
install_all now prepares every job first and starts the workers after.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MS5Qb6riBMzoujge5GuGZF

* test(install): check the batch path itself takes every place before a worker starts

The test called prepare_job directly, so putting install_all back to
starting each job as it is prepared would still have passed. The backend
now runs workers through a spawn function a test can replace; the test
holds the workers and checks, at each start, that all apps are in line.
Reverting install_all makes it fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MS5Qb6riBMzoujge5GuGZF

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: launcher-403-review <review@local>
2026-11-14 23:03:07 -06:00
Dylan M. Taylor 13b200c536 native: require local-mirror for loopback feed overrides (#1473) 2026-11-14 16:07:19 -05:00
Dylan M. Taylor 148a0869a7 native: do not follow redirects on token-bearing API requests (#1472) 2026-11-14 16:04:56 -05:00
FredAppsandFredApps c0735b65ac Linux: detect versions of renamed AppImages (#471) (#499)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-14 21:53:12 +01:00
FredApps ba56c4587f Merge pull request #1432 from davidmann4/agents-gateway
feat(settings): AI agents reach every Craft app through one MCP entry, with the gateway shipped
2026-11-14 11:36:06 +01:00
FredApps 76727879f3 fix(agents): preserve customized MCP client entries 2026-11-14 11:11:22 +01:00
FredApps 94734ae37e Merge pull request #1377 from FredApps/fix/launch-bare-name-location
fix(launch): a bare app name is never a launchable location
2026-11-13 21:09:38 +01:00
David MannandClaude Opus 5.5 5bccf77b78 build: pin craft-ai-mcp and craft-ai-agents to the merge of craft-ai-integrations#197
Moves both pins from 94a3fb5 (the PR head at the time) to 0d76ea0, the
merge. That brings in the last two review fixes: an app briefly in use is
stopped when agents go off, and an apps.json that can't be read counts as
agents off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:56:41 +01:00
FredApps ceb0853fb0 which: return an absolute path for a relative PATH entry, so a detected binary stays launchable 2026-11-13 20:44:24 +01:00
FredApps 38300fa7d6 Merge branch 'main' into fix/launch-bare-name-location 2026-11-13 20:43:44 +01:00
David MannandClaude Opus 5.5 02926e1e9f fix(agents): keep an ArtCraft MCP entry the launcher did not write
The launcher treated any `mcpServers.ArtCraft` key as its own: Add replaced
it, and Remove or turning agents off deleted it from every client. Now an
entry is ours only when it starts craft-ai-mcp with exactly `--stdio` and no
environment. Any other ArtCraft entry is never replaced (Add reports it) or
removed, and Settings no longer shows it as added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:44:03 +01:00
FredApps 6a6f6dcb3a Merge pull request #1353 from dotCooCoo/fix/msi-session-publisher
Windows: the elevated batch session installs only packages from the launcher's publisher
2026-11-13 10:34:09 +01:00
FredApps 9648d78006 Merge pull request #1354 from dotCooCoo/fix/msi-session-queue-while-running
Windows: the installer queue stays taken while a batch session can't be watched
2026-11-13 10:32:20 +01:00
FredApps f0e2370734 Merge pull request #1385 from dotCooCoo/fix/loose-macos-launcher-update
fix(native): offer the launcher's download when its release has no file for this copy
2026-11-13 10:25:17 +01:00
David MannandClaude Opus 5.5 c173526886 build: pin craft-ai-mcp and craft-ai-agents to craft-ai-integrations#197 at 94a3fb5
The gateway now holds only an app's connection during a call (listing,
searching and describing answer at once) and asks the switch again once a
queued call has its app, so it never starts after agents are turned off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 00:19:57 +01:00
David MannandClaude Opus 5.5 31c3573274 The app list goes through craft-ai-agents; every app gets plain mcp
- The launcher writes, reads and removes ArtCraft/mcp/apps.json through
  `craft-ai-agents` (storytold/craft-ai-integrations#197), the same crate the
  gateway reads it with and every Craft app checks the switch with, instead
  of its own copy of the format.
- Every app is started as plain `<app>-cli mcp`: by the suite's rule that
  command works in the open window when the app runs and accepts agents, and
  headless otherwise. The per-app argument table (`--live` for PhotoCraft,
  `--headless` for VectorCraft) and reading each CLI's `--help` to see
  whether it takes them are gone.
- Gateway and craft-ai-agents pinned to the head of #197 (35e0352).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:57:45 +01:00
David MannandClaude Opus 5.5 acbf667f49 fix: gateway copy keeps its execute bit; packaging test ships a gateway fixture
- install_gateway returned an identical copy before setting its mode, so a
  copy that had lost its execute bit was reused and clients couldn't start
  it. The mode is now checked on both paths (Unix). Test extended: a 0644
  copy with the right bytes comes back executable (fails without the fix;
  run in Linux).
- packaging/linux/test-package-metadata.sh builds packages from a fake
  release folder; it now has a craft-ai-mcp fixture too, since the packages
  install the gateway beside the launcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:12:09 +01:00
David MannandClaude Opus 5.5 afaaa8f872 MCP entry is named ArtCraft; offer to restart Claude Desktop after adding
- The entry in a client's configuration (and in the copied JSON, VS Code and
  Codex formats) is `ArtCraft`, which clients show as the integration's
  name, instead of `craft-apps`.
- Right after Add, a client the launcher can restart (Claude Desktop on
  Windows and macOS) gets a note on why it must restart (it loads MCP
  servers only when it starts; restarting closes it, including a reply in
  progress) and a Restart button (`Command::McpRestartClient`). On Windows
  only Claude Desktop's processes are stopped, picked by install folder
  (Store package or classic install), never `claude.exe` by name, which is
  also Claude Code's CLI; it is started again through its Start menu entry.
  On macOS it quits through AppleScript and `open -a Claude` starts it.
- Three strings in all twelve catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:58:10 +01:00
David MannandClaude Opus 5.5 0477241be9 AI agents box: the switch enables MCP, quick install, copy for other clients
- The note says what the switch does: while it is on, MCP clients reach every
  installed Craft app through one entry; while it is off, no agent reaches
  them and the entries added here are removed.
- Quick install: Add / Remove per client found here, with a note to restart
  the client.
- Other clients: copy the configuration as JSON (`mcpServers`: Claude
  Desktop, Cursor, LM Studio, Windsurf and most others), for VS Code
  (`servers`, `type: stdio`) or for Codex (TOML `[mcp_servers.craft-apps]`),
  naming the gateway copy clients start (`McpAgents::gateway`). The formats
  live in `artcraft_launcher_core::mcp_config`, with `SERVER_KEY`.
- Nine strings, translated in all twelve catalogs; the old note is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:25:14 +01:00
David MannandClaude Opus 5.5 5d18e3e20c build: pin craft-ai-mcp to craft-ai-integrations#197 at 08a639a
The gateway now asks the launcher's app list before every call: with the
switch off it refuses every tool and stops the app servers it started, and
it no longer falls back to CLIs on PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:18:33 +01:00
David MannandClaude Opus 5.5 8739008472 Claude Desktop's settings in Claude-Data are found
Current Windows versions of Claude Desktop keep their data in
%LOCALAPPDATA%\Claude-Data\<install> and leave a .user-data-left.* marker in
the Store package folder they moved out of. The launcher wrote its entry into
that abandoned config, so Claude never saw it. Claude-Data now comes first,
then %APPDATA%\Claude, then a package folder without the marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:17:22 +01:00
David MannandClaude Opus 5.5 a68aa2c829 Claude Desktop from the Store is found; flags only from flags.toml
- Windows redirects a packaged app's %APPDATA% into its package, so the
  Microsoft Store install of Claude Desktop reads
  %LOCALAPPDATA%\Packages\Claude_<id>\LocalCache\Roaming\Claude and never
  sees %APPDATA%\Claude: Settings showed it as not installed. The launcher
  now uses the package's folder when only the Store install is there.
- Settings no longer has an Experimental features box: AI-MCP and
  AI-MODELS are turned on in ArtCraft/flags.toml or with CRAFT_FLAGS, not by
  a switch. SetFlag, Event::Flags and FlagState go, with the box's strings
  in every catalog. The AI agents box still shows only while AI-MCP is on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:07:21 +01:00
David MannandClaude Opus 5.5 b2ddff1f0a Apps get the MCP arguments agents should use
The app list gave every app plain `mcp`, so the gateway reached PhotoCraft
only headless. PhotoCraft now gets `mcp --live` (the open window, through
the connection it publishes, storytold/photocraft#13396) and VectorCraft
`mcp --headless` (its plain `mcp` attaches to a control port with no token
yet). Each is used only when that install's `mcp --help` names the
argument, so an older release still gets plain `mcp` instead of a usage
error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:22:36 +01:00
David Mann e61b229c3a refactor(settings): drop Local services; AI agents is the one MCP setting
The Local services box from #1296 managed one LM Studio/Bionic entry per app
and an HTTP bridge on port 12345 that craft-ai-mcp no longer serves. Both are
replaced by the gateway: one craft-ai-mcp entry per MCP client.

Removed: local_mcp.rs, the McpSetService/McpSetBridge commands, the
McpService/McpBridge state, the Local services box and its strings. Kept, in
agents.rs: detecting the installed apps and their CLIs (InstalledApp) and
finding craft-ai-mcp beside the launcher (ARTCRAFT_LAUNCHER_GATEWAY_PATH for
development). Event::Mcp carries the AI agents state only.
2026-11-12 19:11:15 +01:00
David Mann 439249d1b8 feat(packaging): ship the craft-ai-mcp gateway beside the launcher
apps/craft-ai-mcp builds the gateway from storytold/craft-ai-integrations
(crates/ai-mcp, craft_ai_mcp::cli) as craft-ai-mcp, and every package puts it
beside the launcher, where Settings › AI agents finds it:

- Windows: built with the launcher, PE-checked as a console program, signed,
  in the MSI (the launcher's component) and the portable zip; listed in the
  install policy's payloads
- macOS: lipo'd and placed in Contents/MacOS, signed with the hardened runtime
  before the main executable
- Linux: /usr/bin in the deb and rpm (nfpm), the tarball and the AppImage;
  /app/bin in both Flatpak manifests
- FreeBSD: bin/, checked like the launcher

The gateway needs only serde, serde_json and dirs. It is pinned to the head
of storytold/craft-ai-integrations#197 until that merges.
2026-11-12 18:58:42 +01:00
dotCooCoo de87cce300 test(native): check installs_from against the format self-update downloads
update reports the format it looked for when a release has no file for
the copy. The new test calls it with an empty release for every kind of
copy and checks that the format matches the one installs_from looks for,
so a change to craft-update's choice of format fails the test.
2026-11-12 09:03:49 -08:00
David Mann d631c5be97 fix(agents): second round of review findings
- the gateway copy is compared byte for byte when the sizes match; a shipped
  build with an older timestamp still replaces it
- MCP commands and every publication of the MCP state share one lock, so a
  state read before a command can't arrive after it
- turning AI-MCP off cleans up first and writes the flag only then; a failed
  cleanup leaves the flag on and the controls to retry
- ng-mcp.json: an entry added since the load is kept (only ids named as
  removed go), a `servers` that is not a list is never replaced, and entries of
  apps that are no longer installed are listed so they can be switched off
- the bridge switch and port are disabled until the saved state is known, so
  a click can't overwrite a saved port with the default
2026-11-12 16:55:21 +01:00
David Mann 9bb5338e3b build: pin craft-flags to its merge in craft-libs (86d6e8c5) 2026-11-12 16:14:11 +01:00
David Mann 1cb228e87d feat(settings): AI agents behind the AI-MCP feature flag
Settings gets an Experimental features box with a switch per feature flag
from craft-flags (storytold/craft-libs#1118): AI-MCP and AI-MODELS, off by
default, shared with every Craft app through ArtCraft/flags.toml. A flag set
by CRAFT_FLAGS shows as such and can't be switched.

The AI agents box shows only while AI-MCP is on; the backend refuses to turn
agents on or add a client without it, and turning AI-MCP off turns agents off
and removes the client entries.

craft-flags is pinned to the head of storytold/craft-libs#1119 until it merges.
2026-11-12 15:48:26 +01:00
David Mann f94bce3ca8 fix(agents): the review findings on the AI agents box
- Changes to the app list and the gateway copy run under one lock, and a
  refresh checks again that agents are on, so detection can't bring the list
  back after it was turned off.
- Clients get a copy of craft-ai-mcp in ArtCraft/mcp/bin, refreshed when the
  shipped one changes, never a path inside an AppImage mount, a Flatpak sandbox
  or a folder an update replaces.
- MCP commands run on a worker thread, one at a time, with one detection per
  command: detection can run flatpak queries for seconds on Linux.
- Saving ng-mcp.json keeps entries it can't read where they were, and fields
  of managed entries it doesn't know; only entries removed on purpose go.
- Without the gateway, agents that are on can still be turned off and their
  entries removed; only turning on and Add need it.
2026-11-12 14:12:55 +01:00
David Mann d8a424e30f feat(settings): AI agents reach every Craft app through one MCP entry
Settings gets an "AI agents" box. "Let AI agents use Craft apps" writes the
installed apps and their CLIs into ArtCraft/mcp/apps.json, the list the
craft-ai-mcp gateway reads (storytold/craft-ai-integrations#197). Each MCP
client found on this machine (Claude Desktop, Claude Code, Cursor, LM Studio)
gets an Add / Remove button for one entry, `craft-apps` -> `craft-ai-mcp
--stdio`, through which the agent reaches every app.

Turning the switch off removes the list and every entry the launcher added.
A client configuration that does not parse is never overwritten, and other
servers and keys in it are kept. While agents are on, the app list is
refreshed whenever Settings asks for the MCP state, so a newly installed app
is reachable too. Without craft-ai-mcp beside the launcher, the box says so
and offers no switch.

Refs storytold/craft-ai-integrations#195
2026-11-12 13:48:45 +01:00
David Mann a5ce794a0a fix(local-mcp): clear the clippy findings (collapsible ifs, slices, is_some_and, doc list) 2026-11-12 13:48:45 +01:00
David Mann a30ec64b7c Merge main into agents-gateway
# Conflicts:
#	crates/ui-egui/src/app.rs
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-BR.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/zh-CN.tsv
#	crates/ui-egui/src/i18n/zh-TW.tsv
2026-11-12 13:35:06 +01:00
Dylan M. Taylor 66beafa52e Allow going back to an older version over the launcher's own Flatpak; bump to 0.19.2 (#1416)
* Allow going back to an older version over the launcher's own Flatpak

* Bump to 0.19.2
2026-11-11 20:28:56 -05:00
Dylan M. Taylor eb6f1fb35a Show pinned version padlocks with confirmed unlocking; bump to 0.19.1 (#1406)
* Show pinned version locks and confirm before unlocking

* chore: bump version to 0.19.1
2026-11-11 15:26:01 -05:00
Dylan M. Taylor cca7905631 Merge pull request #1399 from storytold/chore/craft-update-6e03f65
Updates: take craft-update from craft-libs main at 6e03f65bf
2026-11-11 13:08:14 -05:00
Dylan M. Taylor 53b1127dfb Updates: take craft-update from craft-libs main at 6e03f65bf 2026-11-11 13:08:09 -05:00
Dylan M. Taylor 73bd9762f9 ci: run Harden-Runner on every job (#1397)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:09:58 -05:00
Dylan M. Taylor f6409da7f7 Load signed hosted launcher catalog with offline fallback (#1115)
* Load and verify the signed website catalog with bundled fallback

* Preserve signed fixture bytes across platforms and fix web lint

* Document the opt-in live catalog integration check
2026-11-11 06:45:32 -05:00
Dylan M. Taylor 5b19f76540 fix: swap SoundCraft and WordCraft display order (#1392) 2026-11-11 06:23:15 -05:00
dotCooCoo fff959ff43 fix(native): offer the launcher's download when its release has no file for this copy
The launcher's self-update downloads the release file of the format the
running copy was installed from, and stops when the release has none. A
copy run outside the macOS app bundle updates from a .tar.gz, and the
launcher's macOS releases (v0.17.0 to v0.19.0) ship only the .dmg. Such a
copy was still offered "Update and restart", which then failed.

self_update::installs_from looks for that file with craft-update's own
pick_asset, as the update does. The backend reports self-update as
available, and starts one, only when the release has the file; otherwise
the update dialog and banner offer the download. The doc comment on
Capabilities::self_update states the new condition.
2026-11-10 22:53:17 -08:00
skylar taylor-barrick c636281786 Merge pull request #1205 from FractalEncrypt/fix/windows-startup-backend-fallback
fix(windows): start on OpenGL when Direct3D 12 fails, and say why when nothing can (#1081)
2026-11-10 20:48:18 +01:00