Commit Graph
209 Commits
Author SHA1 Message Date
BFlat 3cd13b93d5 Merge pull request #2715 from brytoncooper/fix/lan-tls-1131
M9: encrypt LAN-hosted sessions with ephemeral pinned TLS (#1131)
2026-11-29 08:02:40 +07:00
FredApps 8fe016b2aa Web size: pack the string catalogs with Brotli instead of zlib (#2720)
Brotli's best setting packs the 27 catalogs about 0.2 MB smaller; the decoder
(brotli-decompressor 6) is the one craft-metadata already builds.
2026-11-28 23:28:04 +01:00
FredApps e8507bfc8c Web size: bake the UI string catalogs compressed and unpack a language when it is first read (#2720) 2026-11-28 22:31:06 +01:00
Bryton CooperandClaude Opus 5.5 37ff872305 collab-net: serve pinned TLS for app sessions hosted on the network (#1131)
An app hosting a live session for other machines sent the session token
in the clear over plain ws://. Such a host now serves TLS with an
ephemeral self-signed Ed25519 certificate (DER written by hand with ring,
no new crates), and its invite links pin the certificate's SHA-256
(`cert=`, URL-safe base64): figcraft://join?server=wss://…&cert=… and
wss://…/?cert=…

- tls: the shared session is a rustls::Connection (client or server),
  keeping the split reader/writer locking; `accept` answers a server
  handshake by the hello deadline; `handshake_pinned` uses a verifier
  that compares the end-entity certificate's SHA-256 in constant time
  and still checks the TLS 1.2/1.3 handshake signature, refusing any
  other certificate before the Hello with a clear reason.
- invite: Endpoint::cert (None for Endpoint::plain), Endpoint::pinned;
  a malformed pin, one on ws://, or two that disagree is an error that
  never echoes the link. The pin stays out of the WebSocket request URL.
  An automation allowlist entry allows only its own pin.
- host/hub: HostConfig::tls, Host::cert_sha256, Host::endpoint; the hub
  carries the server config to each connection. Hosting::serve (the
  server) is unchanged.
- link: NetLink::host serves TLS for non-loopback binds without a join
  code. Join-code (short) shares stay plain ws://: a 20-symbol code has
  no room for the pin, and its joiners share the token with the link.
- web: the browser refuses a pinned link with a clear reason.

Tests: pinned join and edit sync both ways, a plain client against a
TLS host, a host presenting another certificate (refused, not admitted),
the request carrying neither token nor pin, link round trips and
malformed cert= values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:43:29 -07:00
BFlat bd36be5042 Merge pull request #2701 from storytold/fix/2342-system-trust-store
M9: wss:// connections also trust the operating system's certificate store (#2342)
2026-11-28 19:01:57 +07:00
bflatastic 0b97d09211 M9: wss:// connections also trust the operating system's certificate store (#2342)
The desktop app and figcraft-cli trusted only the compiled-in public
roots and FIGCRAFT_CA_FILE, so a server behind a proxy with a private
authority needed that variable on every computer. They now also add the
authorities in the operating system's certificate store, unless
FIGCRAFT_NO_SYSTEM_ROOTS is set. Certificates are still always
verified.
2026-11-28 18:21:11 +07:00
bflatastic 2cd906ddd8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/format/Cargo.toml
2026-11-28 17:32:22 +07:00
BFlat dbe9eeb1bd Merge pull request #2607 from Utakata/feat/open-camera-raw
format: open camera raw files as their developed picture
2026-11-28 15:06:51 +07:00
FredApps f278b428cb Merge branch 'main' into feat/automation-allow-server-join
main moved figcraft-cli to RFC-0018 (#2645): main.rs is a thin wrapper and the
dispatch lives in lib.rs, so mcp_roots, the --automation-allow-server handling
and its test move there; headless mcp is checked before the fonts are scanned.
2026-11-28 08:01:38 +01:00
FredApps b6469cd439 Merge branch 'main' into formats/penpot-craft-zip-9-8-2 2026-11-28 07:46:25 +01:00
FredApps 4561b31166 Merge branch 'main' into feat/open-camera-raw
main's craft-libs pin (8fa4db64) already contains 249a41bd, so the pins stay at
main's and the camera raw crates are added at that same rev.
2026-11-28 07:46:25 +01:00
BFlat 92cd037d81 Merge pull request #2560 from Ridzzz0Alam/fix/2394-boolean-hang
M4: a near degenerate boolean no longer hangs Save (#2394)
2026-11-27 13:45:23 +07:00
aiongg 28508386a7 Repin craft-libs to storytold next 8fa4db64a9 and egui to b9770908e 2026-11-25 19:15:34 +00:00
aiongg d85ac773a2 Repin craft-libs to storytold next aa401985d 2026-11-25 15:50:38 +00:00
aiongg e1b9366831 Repin craft-libs to storytold next d1bdf8e5da 2026-11-25 13:53:48 +00:00
aiongg 12c46db6e9 Repin egui to storytold b15ffe9bfc (what craft-libs next pins) 2026-11-25 06:32:43 +00:00
aiongg 45856da3b9 Repin craft-libs to storytold next 16001e7210 and egui to storytold b15ffe9bfc 2026-11-25 06:31:16 +00:00
aiongg 77a4c9480a Repin craft-libs; IME click test reads the runtime's reset request; whole-point number label wrap 2026-11-24 21:05:39 +00:00
UtakataandClaude Opus 5.5 90d2d92430 format: open camera raw files as their developed picture
RW2, CR2, CR3, NEF, ARW, RAF, ORF, DNG and the other containers craft-raw
decodes now open, import, place and fill shapes. add_image develops a raw
once with craft-develop's stages (AHD demosaic, highlight rebuild, as-shot
white balance and colour matrices, neutral tone curve, sRGB, orientation)
and the document keeps the picture as a quality 95 JPEG, so every way an
image comes in takes raws. file.open and the Open, Import, Place and image
fill dialogs know the raw extensions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 04:34:49 +09:00
UtakataandClaude Opus 5.5 4e48e6f9f2 Dependencies: align craft-libs at merged sensor develop stage 249a41bd
Every craft-libs crate moves to storytold/craft-libs@249a41bd, after
craft-develop gained its sensor stage (storytold/craft-libs#3021), which
camera raw support needs. craft-image-codecs leaves its own rev and joins
the others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 04:34:05 +09:00
aiongg a396aa6fc6 Cargo.lock for the next-host-input pin; drop an unused test import 2026-11-24 18:46:14 +00:00
Dylan M. Taylor 47f1e70d67 Use ZIP 9.8.2 for FigCraft test fixtures
Covers the dependency bump from #1602 using current fixture APIs and adds a normal CP437 ancillary-member regression.
2026-11-23 20:24:33 -05:00
Anderson 4f2ade852e MCP: allow confined sessions to join an approved server 2026-11-23 02:34:21 +01:00
Terra854 9e802f2c21 format: read Sketch previews through shared ZIP (#2552)
* format: read Sketch previews through shared ZIP

* Credits: add Terra854 to About
2026-11-21 23:48:46 -05:00
Ridzzz0Alam 3a374ba85c M4: a near-degenerate boolean no longer hangs Save (#2394)
Saving a large imported icon library froze until the system ran out of
memory. The crash dump's stack (v0.18.1) runs Save, the thumbnail render,
a boolean group and then linesweeper 0.4.0's sweep, which loops and keeps
allocating on near-touching curves. The input is small, so the sweep caps
don't stop it.

linesweeper 0.5 fixes that loop. VectorCraft's pathops already uses 0.5,
so the lockfile drops the second copy.

Test: two shapes reduced from linesweeper's own regression input; the
boolean runs on a thread and must finish within 10 s. It times out on
0.4.0 and finishes in milliseconds on 0.5.
2026-11-21 22:34:46 +01:00
Dylan M. Taylor 5c2a378494 format: share PNG pHYs reader via craft-image-codecs (craft-libs#785) (#2547) 2026-11-21 13:28:27 -05:00
Dylan M. Taylor 8320b6699e render,format: finish craft-image-codecs cutover and ICC/GIF/bounds parity tests (#2526) 2026-11-20 13:02:48 -05:00
FredApps 5c50561fcd Dependencies: align craft-libs at merged SVG writer ea9407b3 (#2514) 2026-11-20 06:39:35 +07:00
Dylan M. Taylor 4e35fb9cea render: use shared raster decoding and export (#2501)
* render: use shared raster decoding and export

* render: fix Cow<Image> ownership and run cargo fmt
2026-11-19 14:00:49 -05:00
Dylan M. Taylor b45255bb6f chore(pdf): cut over figcraft-pdf to craft-pdf (#2469) 2026-11-18 20:59:55 -05:00
Dylan M. Taylor 9b04f4c99e cutover: use craft_jpeg::finer_than_first (#2478) 2026-11-18 19:10:44 -05:00
Dylan M. Taylor 5c69112684 svg: cut over SVG import parsing to craft-svg (#2468) 2026-11-18 17:21:52 -05:00
.CooCoo 260fd4d8ef Dependencies: take craft-libs main at 453b0da782 (#2412)
* Dependencies: take craft-libs main at 3af2280ee3

Every craft-libs crate in the workspace now comes from one commit,
3af2280ee3434a2c860012df2f440652621c2c81. They were on five revisions:
e11f9d9a, d13ac58a, 976eb51c, e9829954 (craft-update) and fd5e2fef
(craft-web-api and craft-web-host). Cargo.lock now holds one craft-zip
instead of two.

No FigCraft code changes. The new craft-font-store adds cap-primitives
and its dependencies to Cargo.lock.

* Dependencies: drop pin comments the craft-libs move made untrue

craft-update now uses the same craft-libs rev as the other crates, and
craft-window comes from craft-libs main. Remove the comment that says
craft-update is pinned separately and the comment that says craft-window
is pinned to an unmerged branch.

* Tests: look up craft-fig with cargo metadata filtered to the host

The i18n key test finds the craft-fig sources with `cargo metadata
--offline`. Since craft-font-store depends on cap-primitives, the graph
holds winx, which only Windows uses. Without a platform filter, cargo
metadata needs every platform's sources and failed on Linux CI with
"failed to download `winx v0.36.4`". The query now passes
`--filter-platform` with the host triple from `rustc -vV`.

* Dependencies: take craft-libs main at 453b0da782

Every craft-libs crate in the workspace moves from 3af2280ee3 to
craft-libs main at 453b0da782, and craft-sketch moves from ff142b3ad5
to the same commit. Cargo.lock now holds one craft-figma-rest and one
craft-zip instead of two of each; no other package changes.

* Dependencies: drop the design-file pin comment that no longer holds

craft-penpot, listed above the design-file crates, uses the same
craft-zip as craft-fig and craft-figcraft-format, and every craft-libs
crate is now on one rev, so the comment's reason for a separate rev is
removed.
2026-11-18 15:22:39 -05:00
FredApps 12506f9df5 Merge branch 'main' into codex/fix-1902-default-arabic-fallback
Resolve ROADMAP.md and docs/localization-parity.md by keeping main's
newer log entries and the #1902 Noto Sans Arabic default-web-font notes.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-18 16:33:05 +07:00
Dylan M. Taylor 9e6a1ba314 Pin VectorDrawable writer to merged shared depth support 2026-11-17 17:44:09 -05:00
Dylan M. Taylor 4b853f455a M6: serialize Android drawables through craft-vectordrawable 2026-11-17 15:49:46 -05:00
Dylan M. Taylor 4aae3f2733 chore(penpot): pin merged writer and canonicalize lock order 2026-11-16 23:11:07 -05:00
Dylan M. Taylor caf6ff5108 Merge main retaining shared Sketch and Penpot dependencies 2026-11-16 22:06:49 -05:00
Dylan M. Taylor 6963e0d5ce Use shared Sketch container while retaining Fig document projection (#2418) 2026-11-16 21:58:13 -05:00
Dylan M. Taylor 26fa159c0c deps: pin documented Penpot writer error contract 2026-11-16 21:24:19 -05:00
Dylan M. Taylor 87e43cccf0 format: write Penpot containers through shared incremental writer 2026-11-16 21:22:16 -05:00
Dylan M. Taylor 0a94b092eb refactor(svg): share XML escaping and character validation 2026-11-16 10:08:47 -05:00
Dylan M. Taylor 5455139d54 Reuse shared Android drawable wire primitives 2026-11-15 13:27:48 -05:00
Dylan M. Taylor 6081e41a70 Use shared FigCraft preview reader 2026-11-13 16:07:45 +00:00
Dylan M. Taylor 3dddb58f4c Merge branch 'switch/craft-fig-rebased' of https://github.com/storytold/figcraft into codex/figcraft-native-consumer 2026-11-13 14:17:07 +00:00
Dylan M. Taylor c607ec686a Pin FigCraft format to merged shared codec 2026-11-13 13:56:22 +00:00
Dylan M. Taylor e4cfbb9798 Merge current main into FigCraft .fig migration 2026-11-13 12:37:02 +00:00
Dylan M. Taylor 6ad04aa4d2 Finish FigCraft native shared format cutover 2026-11-13 11:54:50 +00:00
Dylan M. Taylor 821f9a8631 Use shared FigCraft history index codec 2026-11-13 11:05:37 +00:00
Dylan M. Taylor aa460b6f33 Move native library resources into shared format 2026-11-13 10:53:52 +00:00