## Summary
Add support for `<app>-nightly` packages across the APT (`/apt`), RPM
(`/rpm`), and Arch (`/arch`) Linux repositories in
`artcraft-website-next`, always pointing at the newest published nightly
GitHub prerelease per repository regardless of its release tag.
## Changes
- **`crafting-app-releases.ts`**: Add `CraftNightlyRelease` and
`CRAFT_NIGHTLY_RELEASES` (initially `{}`).
- **`linux-repos.ts`**:
- Resolve `<pkg>-nightly-<version>-linux-<arch>.{deb,rpm,pkg.tar.zst}`
(and `.sig`/`.asc` signatures) against `CRAFT_NIGHTLY_RELEASES` using
each entry's exact GitHub release `tag`.
- Support `tagOverride` in `getShaSums`, `fetchValidatedSha256`,
`computePackageMetadata`, `durablePackageMetadata`,
`getLinuxPackageMetadata`, and `build{Deb,Rpm,Arch}Assets`.
- Emit `<app>-nightly` packages in `getLinuxRepoApps` (with
`ai.artcraft.app-nightly` / `ai.storyteller.<app>-nightly` for Pacman so
they install alongside stable).
- **`update-craft-release-versions.yml`**: Add a `latestNightlyRelease`
pass that scans each repo's published `prerelease: true` GitHub releases
(newest first, regardless of tag format) for `SHA256SUMS.txt` and
`<slug>-nightly-...` Linux packages, and updates
`CRAFT_NIGHTLY_RELEASES`.
- **`tests/linux-repos.spec.ts`**: Add unit test coverage for resolving
`-nightly` Linux package and signature URLs regardless of GitHub release
tag.
## Verification
- `next typegen && npm run typecheck` passed.
- `npx playwright test tests/linux-repos.spec.ts`: 28/29 passed (the 1
browser-based mobile tab test failed locally due to missing
`/opt/google/chrome/chrome` in this environment).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Nightly Linux packages are available for ArtCraft Studio, Craft
Launcher, and supported Crafting Apps when a matching release is
published.
* Packages are offered in Debian, RPM, and Arch formats where available,
with release-specific versions and checksums. Supported package
architectures include x86_64 and aarch64, with riscv64 also supported
for Debian and RPM packages.
* The catalog reflects the newest published nightly release with
compatible package assets; products without a matching release are not
listed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
API docs — storyteller-docs.artcraft.team
Swagger UI for the storyteller-web HTTP API. Production:
https://storyteller-docs.artcraft.team.
This is a static-assets Cloudflare Worker with no server-side code:
| Path | What |
|---|---|
public/index.html |
Swagger UI page; loads api.json from its own directory |
public/api.json |
OpenAPI 3.1 document generated from the Rust sources |
wrangler.jsonc |
Worker storyteller-docs, custom domain storyteller-docs.artcraft.team |
Why the spec is committed
public/api.json is produced by cargo run --bin docs-cli
(crates/service/web/storyteller_web/src/api_doc_cli.rs), which builds the whole
workspace. Cloudflare Workers Builds has no Rust toolchain and that build would be
far too slow for a deploy, so the generated document is committed and the Worker
has no build step of its own: the build command validates the artifacts and the
deploy command uploads them.
Refresh it whenever the HTTP API changes:
bash script/build_api_docs.sh
Then commit public/api.json alongside the endpoint change, so the diff shows the
API surface that moved.
Deploying
npm run build:docs # validates the artifacts
npm run deploy:docs # npx wrangler deploy --config frontend/api_docs/wrangler.jsonc
Workers Builds runs both from the repository root. storyteller-docs.artcraft.team is a
custom_domain route, so Cloudflare creates the DNS record and certificate; the
artcraft.team zone must be on the same account as the Worker (the setup
dashboard.artcraft.team already uses).
These docs previously lived at storyteller-docs.netlify.app. That Netlify site is
no longer maintained, and the Worker deliberately reuses its name.