mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-25 10:56:48 -06:00
- Browser client (step 4): the web build joins sessions a desktop app hosts
through the browser's WebSocket API (web-sys, binary frames, the same
message encoding). Its connection logic is a target-independent state
machine (collab-net driver.rs): hello on open, changes and presence held
until the welcome, throttled presence, keep-alive pings, a silent host
counted as dropped, reconnect with backoff, final refusals. Tested natively
against a scripted socket and a real host over loopback. Hosting stays
desktop-only (LiveLink::can_host; collab.peers canHost). https pages are
told up front that they can only reach ws:// sessions on this computer.
- Shared join logic (join.rs: GuestConfig, outcomes, taking in host messages)
and transport limits (limits.rs) used by the native guest and the browser.
- Invite links: `figcraft figcraft://join?...` joins on start (a bad link
opens the Join dialog with it); file:// arguments are paths. Windows
registers a per-user figcraft:// opener (HKCU\Software\Classes\figcraft)
behind a Registry trait (tests use a fake): collab.registerLinks {on?} and a
Preferences checkbox, default on for installed builds, never for builds
from source. macOS Info.plist declares CFBundleURLTypes; the Linux desktop
entry declares x-scheme-handler/figcraft and passes %U.
- Join dialog: Escape closes it and no longer reaches the canvas (selection
kept); its field has the keyboard when it opens.
- Docs: collab-protocol (browser client, links, mixed content), mcp,
control-protocol, README, web hosting notes, collaboration wording in the
progress docs (numbers unchanged).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
127 lines
4.0 KiB
XML
127 lines
4.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<!-- Template: packaging/macos/package.sh substitutes @VERSION@ (full, e.g. 0.2.0-rc.1),
|
|
@SHORT_VERSION@ (numeric X.Y.Z) and @BUILD_SHA@. -->
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleDisplayName</key>
|
|
<string>FigCraft</string>
|
|
<key>CFBundleName</key>
|
|
<string>FigCraft</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>FigCraft</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>ai.storyteller.figcraft</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>APPL</string>
|
|
<key>CFBundleSignature</key>
|
|
<string>????</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>@SHORT_VERSION@</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>@SHORT_VERSION@</string>
|
|
<key>FigCraftVersion</key>
|
|
<string>@VERSION@</string>
|
|
<key>FigCraftBuildCommit</key>
|
|
<string>@BUILD_SHA@</string>
|
|
<key>CFBundleIconFile</key>
|
|
<string>FigCraft</string>
|
|
<key>LSApplicationCategoryType</key>
|
|
<string>public.app-category.graphics-design</string>
|
|
<!-- Must match MACOSX_DEPLOYMENT_TARGET in package.sh. Big Sur is the first release on
|
|
Apple silicon and has the Metal feature set wgpu targets. -->
|
|
<key>LSMinimumSystemVersion</key>
|
|
<string>11.0</string>
|
|
<key>NSHighResolutionCapable</key>
|
|
<true/>
|
|
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
|
<true/>
|
|
<key>NSRequiresAquaSystemAppearance</key>
|
|
<false/>
|
|
<key>NSHumanReadableCopyright</key>
|
|
<string>Copyright © the FigCraft authors. MIT OR Apache-2.0.</string>
|
|
|
|
<!-- FigCraft's own format. -->
|
|
<key>UTExportedTypeDeclarations</key>
|
|
<array>
|
|
<dict>
|
|
<key>UTTypeIdentifier</key>
|
|
<string>ai.storyteller.figcraft.document</string>
|
|
<key>UTTypeDescription</key>
|
|
<string>FigCraft Document</string>
|
|
<key>UTTypeConformsTo</key>
|
|
<array>
|
|
<string>public.data</string>
|
|
<string>public.content</string>
|
|
</array>
|
|
<key>UTTypeIconFile</key>
|
|
<string>FigCraft</string>
|
|
<key>UTTypeTagSpecification</key>
|
|
<dict>
|
|
<key>public.filename-extension</key>
|
|
<array><string>figcraft</string></array>
|
|
<key>public.mime-type</key>
|
|
<array><string>application/x-figcraft</string></array>
|
|
</dict>
|
|
</dict>
|
|
</array>
|
|
|
|
<!-- figcraft://join?... live session invite links open FigCraft. -->
|
|
<key>CFBundleURLTypes</key>
|
|
<array>
|
|
<dict>
|
|
<key>CFBundleURLName</key>
|
|
<string>ai.storyteller.figcraft.invite</string>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Editor</string>
|
|
<key>CFBundleURLSchemes</key>
|
|
<array><string>figcraft</string></array>
|
|
</dict>
|
|
</array>
|
|
|
|
<key>CFBundleDocumentTypes</key>
|
|
<array>
|
|
<dict>
|
|
<key>CFBundleTypeName</key>
|
|
<string>FigCraft Document</string>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Editor</string>
|
|
<key>LSHandlerRank</key>
|
|
<string>Owner</string>
|
|
<key>CFBundleTypeIconFile</key>
|
|
<string>FigCraft</string>
|
|
<key>LSItemContentTypes</key>
|
|
<array><string>ai.storyteller.figcraft.document</string></array>
|
|
</dict>
|
|
<!-- Offered under "Open With", never forced as the default. -->
|
|
<dict>
|
|
<key>CFBundleTypeName</key>
|
|
<string>SVG Image</string>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Editor</string>
|
|
<key>LSHandlerRank</key>
|
|
<string>Alternate</string>
|
|
<key>LSItemContentTypes</key>
|
|
<array><string>public.svg-image</string></array>
|
|
</dict>
|
|
<dict>
|
|
<key>CFBundleTypeName</key>
|
|
<string>Image</string>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Viewer</string>
|
|
<key>LSHandlerRank</key>
|
|
<string>Alternate</string>
|
|
<key>LSItemContentTypes</key>
|
|
<array>
|
|
<string>public.png</string>
|
|
<string>public.jpeg</string>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</plist>
|