Repository navigation
feat(craft-anything): add Craft Anything creative workbench (ai.storyteller.craft-anything) - #939
Conversation
…teller.craft-anything)
c11e174 to
736d34c
Compare
jing2uo
left a comment
There was a problem hiding this comment.
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.gzmatch 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/withbin/craft-anythingandbin/craft-anything-cli;apply_extra.sh, the wrappers andresolve-update.shmirror 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'sassets/app-icon. MIT OR Apache-2.0matchesCargo.toml(GitHub only shows Apache-2.0).- collections.yml: the new "Developer tools" group under artcraft is well-formed.
To address
--filesystem=home:roshould be declared inpolicy.dangerous_permissions(inline comment). On "0 warnings":audit-descriptor.mjsonly matches--filesystem=homeexactly, sohome:rois 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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.shor the binaries locally; that row is checked by reading the script and the tarball listing. The PR description reportscheck-apply-extra.sh,publish.sh --verifyand an in-sandboxcraft-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.
…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.
Adds Craft Anything (https://github.com/storytold/craft-anything) v0.2.0, the ArtCraft suite's software exploration, binary analysis and creative workbench.
craft-anything-0.2.0-linux-{x86_64,aarch64}.tar.gz, staged byapply_extrawith--no-same-owner, following the exact same pattern as the other ArtCraft apps.org.freedesktop.Platform 26.08), and finish-args follow upstream's ownpackaging/linux/flatpakmanifest: 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).StartupWMClass=ai.storyteller.craft-anything.--command=craft-anything-cli.artcraftcollection under "Developer tools".read-descriptor.mjsandaudit-descriptor.mjspass with 0 warnings/errors.check-apply-extra.shOK as root with no capabilities.publish.sh --verifybuilt, signed, and installed from a temporary local repo cleanly.craft-anything-cli --versioninside the sandbox: returnscraft-anything-cli 0.2.0.resolve-update.shtested and outputs valid release metadata for both x86_64 and aarch64.