Skip to content

feat(craft-anything): add Craft Anything creative workbench (ai.storyteller.craft-anything) - #939

Merged
jing2uo merged 2 commits into
flatpark:mainfrom
dylanmtaylor:add/ai.storyteller.craft-anything
Nov 2, 2026
Merged

jing2uo merged 2 commits into
flatpark:mainfrom
dylanmtaylor:add/ai.storyteller.craft-anything

Conversation

@dylanmtaylor

Copy link
Copy Markdown
Contributor

Adds Craft Anything (https://github.com/storytold/craft-anything) v0.2.0, the ArtCraft suite's software exploration, binary analysis and creative workbench.

  • extra-data: official craft-anything-0.2.0-linux-{x86_64,aarch64}.tar.gz, staged by apply_extra with --no-same-owner, following the exact same pattern as the other ArtCraft apps.
  • Manifest: App ID, runtime (org.freedesktop.Platform 26.08), and finish-args follow upstream's own packaging/linux/flatpak manifest: Wayland + fallback-x11, ipc, dri, --filesystem=home:ro (so files and executables passed by path or recent projects can be inspected read-only), and network access (for AI backends and model engines).
  • Desktop & Icons: Desktop file and 512x512 icon from upstream. StartupWMClass=ai.storyteller.craft-anything.
  • CLI & MCP: Headless CLI and MCP server exposed via --command=craft-anything-cli.
  • Collections: Added to the artcraft collection under "Developer tools".
  • Verification:
    • read-descriptor.mjs and audit-descriptor.mjs pass with 0 warnings/errors.
    • check-apply-extra.sh OK as root with no capabilities.
    • publish.sh --verify built, signed, and installed from a temporary local repo cleanly.
    • Tested craft-anything-cli --version inside the sandbox: returns craft-anything-cli 0.2.0.
    • resolve-update.sh tested and outputs valid release metadata for both x86_64 and aarch64.

@dylanmtaylor
dylanmtaylor force-pushed the add/ai.storyteller.craft-anything branch from c11e174 to 736d34c Compare November 2, 2026 01:02

@jing2uo jing2uo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good overall. One permission declaration to add, plus two small nits (inline).

Verified against upstream v0.2.0

  • extra-data: sha256 and size of both linux-{x86_64,aarch64}.tar.gz match the release asset digests; v0.2.0 is a non-prerelease.
  • finish-args are identical to upstream's packaging/linux/flatpak/ai.storyteller.craft-anything.yml (wayland, fallback-x11, ipc, dri, home:ro, network), so following the developer's choice is fine per permissions.md.
  • Tarball has a single top dir craft-anything-0.2.0-linux-x86_64/ with bin/craft-anything and bin/craft-anything-cli; apply_extra.sh, the wrappers and resolve-update.sh mirror the PdfCraft package.
  • Both binaries only need libc, libm, libgcc_s and ld-linux, so the 26.08 runtime is enough.
  • The desktop file matches upstream's packaging/linux/ one byte for byte; the metainfo follows upstream plus the community-package and permissions notes; the 512px icon is identical to upstream's assets/app-icon.
  • MIT OR Apache-2.0 matches Cargo.toml (GitHub only shows Apache-2.0).
  • collections.yml: the new "Developer tools" group under artcraft is well-formed.

To address

  • --filesystem=home:ro should be declared in policy.dangerous_permissions (inline comment). On "0 warnings": audit-descriptor.mjs only matches --filesystem=home exactly, so home:ro is never checked; the clean audit doesn't cover this grant.

Maintainer side note (not for this PR): the audit's WATCH/ESCAPE lists match exact strings, so home:ro, home:rw, host:ro and host-os aren't flagged. Prefix matching would catch them.

- Declare --filesystem=home:ro in policy.dangerous_permissions: read access
  to the whole home is high-risk per docs/packagers/permissions.md. Kept
  because upstream's own manifest grants it.
- List craft-anything-cli under <provides>, like the other ArtCraft apps.
- Match the CLI wrapper comment to PdfCraft's.

@jing2uo jing2uo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed f0324c1 on top with the review fixes: --filesystem=home:ro is now declared in policy.dangerous_permissions with its reason, craft-anything-cli is listed under <provides>, and the CLI wrapper comment matches PdfCraft's. audit-descriptor.mjs and read-descriptor.mjs pass, and the metainfo parses. All review points are addressed; this is ready to merge.

@jing2uo jing2uo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: Craft Anything 0.2.0 (ai.storyteller.craft-anything)

The review points are fixed in f0324c1, pushed to this branch. This is ready to merge.

Checklist

Area Result Notes
Upstream release ✅ storytold/craft-anything v0.2.0, a non-prerelease published 2026-11-01
extra-data x86_64 ✅ sha256 aa670c16…cb21 and size 66357097 match the release asset digest
extra-data aarch64 ✅ sha256 4f8ac295…a9c5 and size 63580579 match the release asset digest
Tarball layout ✅ One top dir, craft-anything-<ver>-linux-<arch>/, with bin/craft-anything and bin/craft-anything-cli, so the apply_extra.sh glob matches exactly one directory
apply_extra.sh ✅ Same as PdfCraft; uses --no-same-owner, checks both binaries and removes the archive
Runtime fit ✅ Both binaries need only libc, libm, libgcc_s and ld-linux, all in org.freedesktop.Platform 26.08
finish-args ✅ Identical to upstream's packaging/linux/flatpak/ai.storyteller.craft-anything.yml; the developer's choice is followed per permissions.md
High-risk declaration ✅ (fixed) --filesystem=home:ro is now declared in policy.dangerous_permissions with its reason
Desktop file ✅ Byte-identical to upstream packaging/linux/ai.storyteller.craft-anything.desktop; StartupWMClass is set
Metainfo ✅ (fixed) Follows upstream plus the community-package and permissions notes; craft-anything-cli is now listed under <provides>
Icon ✅ 512×512, identical to upstream assets/app-icon/hicolor/512x512
License ✅ MIT OR Apache-2.0 matches Cargo.toml; LICENSE-MIT and LICENSE-APACHE are in the repo
resolve-update.sh ✅ Same as PdfCraft; the exact asset-name match excludes the .AppImage/.deb/.rpm/.flatpak builds
CLI wrapper ✅ (fixed) Comment now matches PdfCraft's and shows the flatpak run --command= usage
collections.yml ✅ New "Developer tools / 开发者工具" group under artcraft; well-formed
Descriptor checks ✅ audit-descriptor.mjs and read-descriptor.mjs pass on f0324c1, and the metainfo parses

Changes in f0324c1

  • flatpark.yml: declared --filesystem=home:ro. Read access to the whole home, together with --share=network, counts as high-risk under docs/packagers/permissions.md. The grant is kept because upstream's own manifest grants it, and an analysis tool opens binaries by path.
  • metainfo: added <binary>craft-anything-cli</binary>.
  • craft-anything-cli-wrapper: changed the comment to match the PdfCraft wrapper.

Not verified here

  • I didn't run apply_extra.sh or the binaries locally; that row is checked by reading the script and the tarball listing. The PR description reports check-apply-extra.sh, publish.sh --verify and an in-sandbox craft-anything-cli --version.
  • No CI checks ran on this branch.

Maintainer follow-up (not for this PR)

audit-descriptor.mjs matches its WATCH and ESCAPE lists by exact string, so --filesystem=home:ro, home:rw, host:ro and host-os aren't flagged. That's how the "0 warnings" result missed this grant. Matching by prefix would catch them.

@jing2uo
jing2uo merged commit f22378e into flatpark:main Nov 2, 2026
jing2uo added a commit that referenced this pull request Nov 2, 2026
…Craft and Craft Anything to ArtCraft (#941)

* fix(audit): check --filesystem grants regardless of :ro/:rw/:create

The WATCH and ESCAPE lists matched finish-args by exact string, so
--filesystem=home:ro (and host:ro and the like) passed with no warning
even though read access to the whole home is high-risk per
docs/packagers/permissions.md. Strip the mode before comparing, on both
the finish-args and the declared policy.dangerous_permissions.

Blueshell is the only package newly flagged: declare its home:ro, using
the reason already given in its manifest.

* feat(collections): add TextureCraft and Craft Anything to ArtCraft

TextureCraft (#938) joins Graphics and design. Craft Anything gets a new
Developer tools group; #939 was meant to add it, but the change was lost
in the squash merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants