diff --git a/.env.example b/.env.example index 978db08e..41f84771 100644 --- a/.env.example +++ b/.env.example @@ -52,7 +52,9 @@ GOOGLE_CLIENT_SECRET= # (the calendar callback is shared with Google — one shared handler routes by # provider). MICROSOFT_TENANT defaults to "common" so both work/school and # personal Microsoft accounts can connect; only change it to restrict sign-in -# to a single organisation's tenant. +# to a single organisation's tenant. Calnode requests the openid, profile, and +# email scopes so it can tell connected accounts apart — no Entra token-configuration +# changes needed to connect several Microsoft 365 accounts side by side (#99). MICROSOFT_CLIENT_ID= MICROSOFT_CLIENT_SECRET= MICROSOFT_TENANT=common @@ -60,6 +62,8 @@ MICROSOFT_TENANT=common # SMTP (optional — emails are skipped if not set) EMAIL_SMTP_HOST= EMAIL_SMTP_PORT=587 +EMAIL_SMTP_CONNECT_HOST= +EMAIL_SMTP_CONNECT_PORT= EMAIL_SMTP_USER= EMAIL_SMTP_PASS= EMAIL_FROM_ADDRESS=bookings@localhost diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..1a1c1db6 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,26 @@ +version: 2 + +updates: + # Go modules (go.mod / go.sum at the repository root). + - package-ecosystem: gomod + directory: / + schedule: + interval: monthly + + # The SvelteKit admin app. pnpm is handled by the npm ecosystem. + - package-ecosystem: npm + directory: /frontend + schedule: + interval: monthly + + # Actions pinned in .github/workflows/. + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + + # Base images in the root Dockerfile. + - package-ecosystem: docker + directory: / + schedule: + interval: monthly diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 8fd2ab0b..623c2daf 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -8,37 +8,53 @@ name: Audit on: push: branches: [main] + # Also on pull requests. Without this the Go stdlib CVE that broke the + # clean-security-scan claim sat undetected until it was already on main, + # because this workflow only ran on push, weekly, and manually. The scan is + # cheap and catches that class before merge instead of after. + pull_request: schedule: - cron: '20 6 * * 1' # weekly, Monday — catches newly-disclosed CVEs even with no code changes workflow_dispatch: -permissions: read-all +# Read the repository and nothing else. The SBOM and claims-guard jobs only +# check out code and upload a workflow artifact; the Scorecard job sets its +# own grants below. +permissions: + contents: read jobs: scorecard: name: OpenSSF Scorecard + # Scorecard refuses any ref but the default branch ("Only the default branch + # main is supported"), so running it on a PR or a workflow_dispatch against a + # feature branch produced a red run that meant nothing and buried the real + # result from the claims guard. Schedule and push-to-main still cover it. + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: security-events: write id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 — floating v2 tag no longer resolves upstream; pinned to commit per Scorecard's own pinned-deps recommendation + # The floating v2 tag no longer resolves upstream, so this is pinned to a + # commit, per Scorecard's own pinned-deps recommendation. + - uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 with: results_file: results.sarif results_format: sarif publish_results: true - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: scorecard-sarif path: results.sarif retention-days: 30 - - uses: github/codeql-action/upload-sarif@v3 + - uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 with: sarif_file: results.sarif @@ -46,9 +62,9 @@ jobs: name: SBOM (syft) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: anchore/sbom-action@v0 + - uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 with: path: . format: cyclonedx-json @@ -59,17 +75,17 @@ jobs: name: Deterministic claims guard runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # gitleaks needs full history - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 with: version: 10.32.1 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 22 + node-version: 26 cache: pnpm cache-dependency-path: frontend/pnpm-lock.yaml @@ -81,7 +97,7 @@ jobs: working-directory: frontend run: pnpm build - - uses: actions/setup-go@v5 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: true @@ -100,14 +116,20 @@ jobs: exit 1 fi + # The three scanners below are installed at fixed versions rather than + # @latest, so a run is reproducible and a new release cannot change the + # gate unannounced. Dependabot does not see `go install` lines, so these + # are bumped by hand. govulncheck reads the live vulnerability database + # on every run whatever its own version, so pinning it does not freeze + # what it knows about. - name: govulncheck (clean-security-scan claim) run: | - go install golang.org/x/vuln/cmd/govulncheck@latest + go install golang.org/x/vuln/cmd/govulncheck@v1.9.0 govulncheck ./... - name: gosec (clean-security-scan claim — AUDIT.md says every finding is annotated) run: | - go install github.com/securego/gosec/v2/cmd/gosec@latest + go install github.com/securego/gosec/v2/cmd/gosec@v2.30.0 gosec ./... - name: gitleaks (clean-security-scan claim) @@ -117,5 +139,5 @@ jobs: # same way govulncheck/gosec above do, and the same invocation AUDIT.md # documents for a local run. run: | - go install github.com/zricethezav/gitleaks/v8@latest + go install github.com/zricethezav/gitleaks/v8@v8.30.1 gitleaks detect --source . --no-banner -v diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa6a5dd2..d08bbd87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,11 @@ on: branches: [main] pull_request: +# Read-only token. The job checks out the repository and fetches the base +# branch, and writes nothing back to GitHub. +permissions: + contents: read + concurrency: group: ci-${{ github.ref }} cancel-in-progress: true @@ -17,15 +22,66 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + # Full history, because the CLA check below needs the fork point of the pull + # request, not just the tip of the base branch. The repository is small. + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + + # The CLA signature ledger may only grow. Signatures live in + # signatures/version1/cla.json, committed to main, and the contributor-assistant action + # only ever appends to it. This step makes that invariant enforced rather than assumed: + # no pull request may drop a contributor who had already signed. It matters because + # cla.yml no longer locks merged PRs (see the comment there), so the ledger is the + # guarantee rather than the locked conversation. + - name: CLA ledger is append-only + if: github.event_name == 'pull_request' + run: | + set -euo pipefail + ledger=signatures/version1/cla.json + base="origin/${{ github.base_ref }}" + git fetch --no-tags origin "${{ github.base_ref }}" + # Compare against the FORK POINT, not the tip of the base branch. Signatures + # are committed to main by the CLA bot, so any signature added after a pull + # request was opened is absent from its head by construction. Comparing with + # today's main tip calls that "removed" and fails every older PR; comparing + # with the merge base only sees entries the PR's own branch had. + merge_base=$(git merge-base HEAD "$base" 2>/dev/null || true) + if [ -z "$merge_base" ]; then + echo "::warning::no merge base with $base (shallow clone?); skipping the append-only check" + exit 0 + fi + # Bootstrap case: if the fork point has no ledger yet, there is nothing to protect. + if ! git cat-file -e "${merge_base}:${ledger}" 2>/dev/null; then + echo "No CLA ledger at the fork point; nothing to protect yet." + exit 0 + fi + git show "${merge_base}:${ledger}" > /tmp/cla-base.json + python3 - <<'PY' + import json, sys + + def load(path): + with open(path, encoding="utf-8") as handle: + return json.load(handle)["signedContributors"] + + base = load("/tmp/cla-base.json") + head = load("signatures/version1/cla.json") + # id is stable across a login rename; name is only for the message. + base_by_id = {entry["id"]: entry.get("name", "?") for entry in base} + head_ids = {entry["id"] for entry in head} + removed = [f"{name} (id {sid})" for sid, name in base_by_id.items() if sid not in head_ids] + if removed: + sys.exit("CLA signatures may not be revoked, but these were removed: " + ", ".join(removed)) + print(f"CLA ledger append-only: {len(base_by_id)} signed at base, {len(head_ids)} now, none removed") + PY - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 with: version: 10.32.1 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 22 + node-version: 26 cache: pnpm cache-dependency-path: frontend/pnpm-lock.yaml @@ -37,11 +93,31 @@ jobs: working-directory: frontend run: pnpm check + # Data-level catalogue tests cannot see the 1,500-odd call sites that use the keys, + # or how the strings are rendered. This checks both: every literal $t/tr/trp key + # exists in en.json, and no catalogue value is rendered with {@html}. + - name: i18n catalogue guard (call sites, no {@html}) + working-directory: frontend + run: pnpm check:i18n + - name: Build frontend (required by the Go embed) working-directory: frontend run: pnpm build - - uses: actions/setup-go@v5 + # The unit tests above the browser do not exist: this suite mounts components in + # a real Chromium and asserts COMPUTED STYLES, which is the only thing that + # catches a bits-ui data-state that lost its @custom-variant remap. Logic stays + # green while the component renders unstyled, so a type check and a build cannot + # see it. It needs the browser binary, which is not in the pnpm store. + - name: Install the browser for visual tests + working-directory: frontend + run: pnpm exec playwright install --with-deps chromium + + - name: Visual smoke tests (computed styles in a real browser) + working-directory: frontend + run: pnpm test:visual + + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: true @@ -64,3 +140,9 @@ jobs: - name: go test run: go test ./... + + # Informational, never fails: the tests in internal/i18n are the gate. This prints + # per-language coverage so a translation PR shows up in the log with its progress, + # and so a language falling under the floor is visible before a user meets it. + - name: Translation coverage + run: go run ./cmd/i18n-coverage diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index db8096a2..17848f82 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -20,19 +20,30 @@ on: pull_request_target: types: [opened, closed, synchronize] +# Nothing at the top level beyond reading the repository. The grants the +# CLA job needs are on the job itself, below. permissions: - actions: write - contents: write - pull-requests: write - statuses: write + contents: read jobs: cla: runs-on: ubuntu-latest + # What contributor-assistant/github-action does with the workflow token: + # contents: write commits each new signature to + # signatures/version1/cla.json on main + # pull-requests: write posts and updates the CLA comment on the pull request + # actions: write re-runs the pull request's failed CLA run once + # everyone has signed + # It never calls the commit statuses API, so `statuses: write` is not + # granted; the CLA result is the job's own pass or fail. + permissions: + actions: write + contents: write + pull-requests: write steps: - name: CLA Assistant if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.6.1 + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} @@ -45,3 +56,16 @@ jobs: custom-allsigned-prcomment: 'All contributors have signed the CLA. ✅' # TODO: replace with your maintainers' GitHub usernames. allowlist: 'shockalotti,dependabot[bot]' + # The action's default is 'true', which locks every merged PR's conversation. That + # silently blocks all post-merge activity: a bot cannot post a review, and a mention + # on a merged PR can never be answered. It caused a green pullfrog run that produced + # nothing, which reads as a broken integration rather than a lock. + # + # Disabling it does NOT let contributors revoke their CLA, which is what the lock + # exists for. The record is not the signing comment: signatures are appended to + # signatures/version1/cla.json, committed to main, and the action only ever appends + # (src/persistence/persistence.ts does push(), never a removal). An outside + # contributor has no write access to this repository and cannot alter that ledger or + # rewrite main's history. The "CLA ledger is append-only" step in ci.yml enforces + # that no pull request ever removes a recorded signature. + lock-pullrequest-aftermerge: 'false' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..1a9e490b --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,79 @@ +name: CodeQL + +# Static analysis (SAST) of the Go backend and of the JavaScript/TypeScript: +# the SvelteKit admin app, and the vanilla JS of the booking pages, the embed +# widget and the video room. Findings land in the repository's Security tab +# under Code scanning, and on pull requests as annotations. +# +# Runs on pushes to main, on pull requests, and weekly, so a newly added query +# can flag existing code even when nothing has changed. +on: + push: + branches: [main] + pull_request: + schedule: + - cron: '20 5 * * 1' # weekly, Monday + workflow_dispatch: + +# Read-only by default; the analyze job adds the one grant it needs. +permissions: + contents: read + +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: read # check out the code + security-events: write # upload the results to code scanning + strategy: + fail-fast: false + matrix: + include: + # Go needs a build for CodeQL to trace. See the build step below. + - language: go + build-mode: manual + # JavaScript/TypeScript is extracted from source, with no build. + - language: javascript-typescript + build-mode: none + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + # Same toolchain as ci.yml, from go.mod. Set up before CodeQL so its + # tracer sees the Go that does the build. + - if: matrix.language == 'go' + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version-file: go.mod + cache: true + + - uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # The vendored LiveKit client SDK is third-party, minified code. + config: | + paths-ignore: + - internal/handler/assets/livekit-client.umd.min.js + + # frontend/embed.go has `//go:embed all:build`, so `go build` fails while + # frontend/build is missing. The embedded files are data and CodeQL does + # not analyse them, so a placeholder stands in for `pnpm build` here and + # this job needs no Node toolchain. The real build is covered by ci.yml. + - name: Build (Go) + if: matrix.language == 'go' + run: | + mkdir -p frontend/build + touch frontend/build/.codeql-placeholder + go build ./... + + - uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 + with: + category: /language:${{ matrix.language }} diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 629f3dab..428ede1e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -8,7 +8,8 @@ name: Docker publish # Deliberately does NOT move `:edge` or `:latest`. # * push to main → push `:edge` + `:sha-` (bleeding edge). # * push a `vX.Y.Z` tag → push `:X.Y.Z`, `:X.Y`, and `:latest`, then cut a GitHub -# Release. So `:latest` always tracks the newest *release*, +# Release with standalone binaries and checksums. +# So `:latest` always tracks the newest *release*, # never raw main. # # Pin a deployment to `:sha-`, never to `:dev` or `:edge` — those move under @@ -18,33 +19,70 @@ on: branches: [main, dev] tags: ['v*.*.*'] pull_request: + # A rehearsal: build everything and run the release job's packaging and download + # steps, then stop before publishing a GitHub Release. It exists so the release + # path can be executed without cutting a tag, which is otherwise the only way to + # find out whether it still works. + workflow_dispatch: + inputs: + dry_run: + description: 'Exercise the release job without creating a GitHub Release' + type: boolean + default: true concurrency: group: docker-publish-${{ github.ref }} cancel-in-progress: true +# There is deliberately NO workflow-level `permissions:` block here. +# +# One was added in #231 for least privilege. It broke every run from a fork +# pull request: the run failed during workflow expansion, so it was created with +# ZERO jobs and produced no log and no annotation. Removing it restored them. +# +# The combination is what matters, not either half. The build job below asks for +# `packages: write` to push to GHCR, and a fork pull request can never be granted +# a write token. On its own that is harmless, because GitHub downgrades it and +# the job runs. Underneath a workflow-level cap, the same request was observed to +# make GitHub reject the run before any job existed. Evidence, the full A/B and +# the counterexample that narrows this are in the PR that removed it. +# +# Least privilege is not weakened by leaving this out: every job below declares +# its own permissions, and the repository default is already `read`. Do not +# re-add this as a tidy-up; that is exactly how the fork runs were lost. env: REGISTRY: ghcr.io # Hardcoded lowercase — GHCR tags reject the repo's actual "Calnode/calnode" # casing (${{ github.repository }} would break the push). IMAGE_NAME: calnode/calnode + BUILD_PLATFORMS: linux/amd64,linux/arm64 jobs: build: runs-on: ubuntu-latest + outputs: + # Digest of the multi-arch index this job pushed. The arm64 smoke test + # pulls exactly this image, so it cannot test a stale tag and cannot race + # the publish: it runs after this job, against the bytes just published. + digest: ${{ steps.build.outputs.digest }} + # Without this the job inherits GitHub's 360-minute default, so a hung + # multi-arch build sits for six hours before being cancelled (observed on + # one branch, cancelled at exactly 6h0m44s). Normal duration is 11-13 + # minutes, so an hour is a generous ceiling that fails visibly instead. + timeout-minutes: 60 permissions: contents: read packages: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0 - - uses: docker/setup-buildx-action@v3 + - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Log in to GHCR - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 + if: github.event_name == 'push' + uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -59,7 +97,7 @@ jobs: # pre-release deploy can be pinned to an immutable tag that names its commit. - name: Docker metadata id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -70,26 +108,216 @@ jobs: type=semver,pattern={{major}}.{{minor}} - name: Build (push on branch pushes and on tags) - uses: docker/build-push-action@v6 + id: build + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: . - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} + platforms: ${{ env.BUILD_PLATFORMS }} + push: ${{ github.event_name == 'push' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | VERSION=${{ steps.meta.outputs.version }} COMMIT=${{ github.sha }} + - name: Export standalone binaries + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 + with: + context: . + target: standalone + platforms: ${{ env.BUILD_PLATFORMS }} + outputs: type=local,dest=dist/binaries,platform-split=true + build-args: | + VERSION=${{ steps.meta.outputs.version }} + COMMIT=${{ github.sha }} + + - name: Package standalone binaries + env: + VERSION: ${{ steps.meta.outputs.version }} + run: | + mkdir -p dist/release + for platform_dir in dist/binaries/linux_*; do + platform="${platform_dir##*/}" + tar -czf "dist/release/calnode_${VERSION#v}_${platform}.tar.gz" \ + -C "$platform_dir" calnode LICENSE + done + cd dist/release + sha256sum ./*.tar.gz > checksums.txt + + # Only upload when a release job will consume the artifact. Exporting and + # packaging above stay ungated on purpose: they prove the `standalone` stage + # still builds on every PR, so a break is caught there rather than during a + # release. This step is the one that costs storage for nothing on PRs and + # branch pushes. + # + # The condition must match the `release` job exactly, including the + # workflow_dispatch dry run, or the rehearsal finds no artifact to download. + - name: Upload standalone binaries + if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.dry_run) + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: standalone-binaries + path: dist/release/ + if-no-files-found: error + + arm64-smoke: + # Proves the arm64 half of the multi-arch image actually runs on an ARM CPU, + # not under QEMU. The build job cross-builds both arches under emulation, + # which cannot demonstrate native execution. + # + # Two paths, because the image is not always in the registry: + # push (main/dev/tag) -> pull the exact digest the build job just pushed + # pull request -> build the image natively here, so a PR is checked + # too and this job is proven BEFORE it reaches main + # The pull-request path matters as much as the assertion itself: a gate that + # cannot run until it is merged has not been tested at all. + # + # Free and unmetered: standard arm64 runners cost nothing on public repos. + needs: build + runs-on: ubuntu-24.04-arm + timeout-minutes: 30 + permissions: + contents: read + packages: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Prove this runner is genuinely arm64 + run: | + set -euo pipefail + echo "uname -m: $(uname -m)" + echo "nproc: $(nproc)" + test "$(uname -m)" = "aarch64" + + - name: Pull the image this build just published + if: github.event_name == 'push' + env: + IMAGE_REF: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.build.outputs.digest }}" + run: | + set -euo pipefail + if [ -z "${{ needs.build.outputs.digest }}" ]; then + echo "::error::build produced no digest, so there is nothing to verify" + exit 1 + fi + docker pull "$IMAGE_REF" + + - name: Build for arm64 natively (anything that did not publish an image) + if: github.event_name != 'push' + run: docker build --platform linux/arm64 -t calnode-pr:arm64 . + + - name: Resolve the image under test + id: img + run: | + set -euo pipefail + # A push published an image, so verify that exact digest. Anything else + # (pull request, dry-run dispatch) built locally and is verified as-is. + if [ "${{ github.event_name }}" = "push" ]; then + echo "ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.build.outputs.digest }}" >> "$GITHUB_OUTPUT" + else + echo "ref=calnode-pr:arm64" >> "$GITHUB_OUTPUT" + fi + + - name: Confirm the image is arm64 + env: + IMAGE_REF: ${{ steps.img.outputs.ref }} + run: | + docker image inspect "$IMAGE_REF" --format 'image arch: {{.Architecture}} / {{.Os}}' + + - name: Run it natively, as a deployment would + env: + IMAGE_REF: ${{ steps.img.outputs.ref }} + run: | + set -euo pipefail + docker run -d --name calnode \ + -p 127.0.0.1:3000:3000 \ + -e PORT=3000 \ + -e DATABASE_URL=sqlite:///data/calnode.db \ + -e BASE_URL=http://127.0.0.1:3000 \ + -v calnode-data:/data \ + "$IMAGE_REF" + echo "container arch: $(docker exec calnode uname -m)" + + - name: Wait for HTTP and assert the app serves + run: | + set -euo pipefail + for i in $(seq 1 60); do + code=$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3000/ || true) + if [ "$code" = "200" ] || [ "$code" = "302" ] || [ "$code" = "307" ]; then + echo "app answered on native arm64 (attempt $i, HTTP $code)" + exit 0 + fi + sleep 2 + done + echo "::error::app did not answer within 120s on arm64" + exit 1 + + - name: Assert the admin UI loads + run: | + set -euo pipefail + code=$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3000/admin/) + echo "/admin/ -> HTTP $code" + test "$code" = "200" + + - name: Assert the encryption key was persisted, not ephemeral + # Regression guard for the quick-start trap: a first start with no + # CALNODE_ENCRYPTION_KEY must write a key beside the database, so stored + # credentials survive a restart instead of becoming unreadable. + # The helper image is pinned by digest (the multi-arch alpine:3 index). + # Dependabot does not read `docker run` lines, so bump it by hand. + run: | + set -euo pipefail + docker run --rm -v calnode-data:/data alpine:3@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a sh -c 'test -s /data/calnode.key' \ + && echo "key persisted beside the database" + + - name: Assert a restart still finds the key + run: | + set -euo pipefail + docker restart calnode + for i in $(seq 1 60); do + code=$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3000/ || true) + if [ "$code" = "200" ] || [ "$code" = "302" ] || [ "$code" = "307" ]; then + echo "still serving after restart (HTTP $code)" + # Read the logs into a file before searching them. `docker logs | grep -q` + # fails under `set -o pipefail` as soon as grep matches: grep exits, docker + # logs takes SIGPIPE, and the pipeline returns non-zero even though the line + # was found. It is timing dependent, which is why this assertion failed + # intermittently while the log dump below clearly contained the line. + # The retry also covers Docker's log flush lagging the first HTTP response. + for attempt in $(seq 1 20); do + docker logs calnode > /tmp/restart.log 2>&1 || true + if grep -q "DEK unwrapped from keystore" /tmp/restart.log; then + echo "restart reused the persisted key" + exit 0 + fi + sleep 1 + done + echo "::error::restart did not reuse the persisted key" + tail -20 /tmp/restart.log + exit 1 + fi + sleep 2 + done + echo "::error::app did not come back after restart" + exit 1 + + - name: Show app logs + if: always() + run: docker logs calnode 2>&1 | tail -30 + release: - # Only on a version tag, and only once the image built + pushed. - if: startsWith(github.ref, 'refs/tags/v') + # On a version tag, and on a dry-run dispatch, where it stops before publishing. + if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.dry_run) needs: build runs-on: ubuntu-latest permissions: contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: standalone-binaries + path: dist/release # Pull the matching version's section out of CHANGELOG.md for the release body, # so the GitHub Release and the CHANGELOG stay identical. Index-based (not a `\[` @@ -114,13 +342,14 @@ jobs: # Preinstalled gh CLI + GITHUB_TOKEN (no third-party action — keeps the # supply-chain surface small). - name: Create GitHub Release + if: startsWith(github.ref, 'refs/tags/v') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | if [ "${{ steps.notes.outputs.have_notes }}" = "true" ]; then gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" \ - --notes-file release-notes.md --verify-tag + --notes-file release-notes.md --verify-tag dist/release/* else gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" \ - --generate-notes --verify-tag + --generate-notes --verify-tag dist/release/* fi diff --git a/.github/workflows/ns8-module.yml b/.github/workflows/ns8-module.yml new file mode 100644 index 00000000..202f8162 --- /dev/null +++ b/.github/workflows/ns8-module.yml @@ -0,0 +1,304 @@ +name: NS8 module publish + +# Builds the ns8-calnode module image from packaging/ns8. The module is a thin +# wrapper: this image carries configuration scripts and the settings UI, while +# the Calnode app itself is pulled from its own registry at install time. +# * PR → validate + build only. Nothing is pushed. +# * push to dev → push `:dev`, running app `:dev`. +# * push to main → push `:edge`, running app `:edge` (`:latest` stays +# pinned to releases, mirroring docker-publish.yml). +# * push a `vX.Y.Z` tag → push `:X.Y.Z`, `:X.Y` and `:latest`, running app +# `:X.Y.Z`. Module and app tags move together, so a +# module release can never point at the wrong app. +on: + push: + branches: [main, dev] + tags: ['v*.*.*'] + pull_request: + +concurrency: + # Deliberately NOT keyed on github.ref. build-images.sh pushes each architecture + # to a fixed staging tag (:build-amd64 / :build-arm64) and push-manifest.sh + # assembles the multi-arch index from whatever is on those tags. Two runs on + # different refs therefore share that staging state: a push to main and a + # release tag start seconds apart (the tag is cut right after the release + # commit lands) and are different groups when the ref is in the key, so they + # ran concurrently and overwrote each other's staging images. The result was a + # published manifest whose architectures came from different releases — + # observed on v0.11.2, where :edge carried amd64 from the tag (app 0.11.2) and + # arm64 from main (app edge). One group for all module publishes serialises + # them and removes the shared-state race. + # + # cancel-in-progress stays false: a release build must never be cancelled + # because an unrelated push to main arrived. Module publishes take ~1-2 + # minutes, so queueing is cheap. + group: ns8-module-publish + cancel-in-progress: false + +# There is deliberately NO workflow-level `permissions:` block here. +# +# One was added in #231 for least privilege. It broke every run from a fork +# pull request: the run failed during workflow expansion, so it was created with +# ZERO jobs and produced no log and no annotation. Removing it restored them. +# The symptom is worth knowing, because it does not look like a permissions +# problem: the `validate` job below only needs `contents: read`, and it never ran +# either, because nothing runs when the whole run is rejected. +# +# The combination is what matters, not either half. The build job asks for +# `packages: write` to push the module image to GHCR, and a fork pull request can +# never be granted a write token. On its own that is harmless, because GitHub +# downgrades it and the job runs. Underneath a workflow-level cap, the same +# request was observed to make GitHub reject the run before any job existed. +# +# Least privilege is not weakened by leaving this out: every job below declares +# its own permissions, and the repository default is already `read`. Do not +# re-add this as a tidy-up; that is exactly how the fork runs were lost. +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Validate action scripts and schemas + working-directory: packaging/ns8 + run: | + python3 -m py_compile imageroot/actions/configure-module/20configure imageroot/actions/get-configuration/20read imageroot/actions/clone-module/20unclaimhostname + python3 -m py_compile assert-multiarc.py + python3 -m py_compile test_assert_multiarc.py test_clone_module.py + # Offline tests, so a broken invariant fails on every push rather than + # waiting for a release to notice. The registry round-trip tests in the + # same file are opt-in and skipped unless NS8_REGISTRY_TESTS=1. + python3 -m unittest discover -s . -p 'test_*.py' + python3 -c "import json, glob; [json.load(open(f)) for f in glob.glob('imageroot/actions/*/*.json') + glob.glob('ui/public/*.json') + ['ui/public/i18n/en/translation.json']]" + bash -n imageroot/actions/configure-module/80start_services + bash -n build-images.sh + bash -n push-manifest.sh + # Every buildah subcommand the scripts invoke must be a real one. + # A typo like "buildah image exists" (there is no singular form) + # only surfaces after a full two-arch build, minutes into a publish. + # This runner has buildah preinstalled, so check it here instead. + for sub in $(grep -ohE 'buildah [a-z]+' build-images.sh push-manifest.sh | awk '{print $2}' | sort -u); do + if ! buildah "$sub" --help >/dev/null 2>&1; then + echo "::error::buildah has no subcommand '$sub' used by the build scripts" + exit 1 + fi + done + # No build-time placeholders may remain: the unit and configure read + # the app ref from ${CALNODE_IMAGE} at install time. + ! grep -rn '__CALNODE_APP_IMAGE__' imageroot/ + # Action scripts must be committed executable: the agent silently + # skips non-executable files, and fileMode=false checkouts do not + # record chmod, so assert the indexed modes, not just the worktree. + # The non-empty assertion matters: the awk below exits 0 on empty + # input, so a pathspec that stops matching would pass vacuously. + scripts=$(git ls-files -s -- imageroot/actions | grep -v 'validate-.*\.json$') + if [ -z "$scripts" ]; then + echo "::error::no action scripts matched, the exec-bit check below would pass vacuously" + exit 1 + fi + echo "$scripts" | awk '$1!="100755" {print "not executable in index:", $4; bad=1} END{exit bad}' + + # state-include.conf is handed to restic as --files-from, so restic + # backs up ONLY the paths listed in it. Dropping a line is a silent + # data-loss failure: the backup job still reports success while + # quietly omitting that data. Neither line is discoverable from the + # image, so assert the file instead of trusting it to stay correct. + # volumes/calnode-data the SQLite database, the whole app state + # state/calnode.env holds CALNODE_ENCRYPTION_KEY; without it a + # restored database cannot be decrypted and + # the app refuses to start with + # "keyvault: failed to unwrap DEK" + inc=imageroot/etc/state-include.conf + test -f "$inc" || { echo "::error::$inc is missing"; exit 1; } + for required in volumes/calnode-data state/calnode.env; do + if ! grep -qx "$required" "$inc"; then + echo "::error::$inc no longer lists '$required'. restic receives this file as --files-from, so omitting a path silently drops that data from every backup while still reporting success." + cat "$inc" + exit 1 + fi + done + echo "state-include.conf lists both the volume and the encryption key" + + # Run the real push-manifest.sh end to end against a scratch storage and + # an oci: destination, so no registry and no credentials are needed. PR + # builds push nothing, which means the manifest step is skipped on PRs and + # a green run says nothing about it. Both earlier publish failures (a bad + # subcommand, then a bad argument count) lived in that step and only + # surfaced on a release push, so exercise it here instead. + # push-manifest.sh refuses to publish a list that is missing an arch, so a + # clean exit is the assertion. + - name: Selftest the multi-arch manifest assembly (hermetic) + run: | + set -euo pipefail + tmp=$(mktemp -d) + buildah from --name ocr-selftest-amd64 --arch amd64 scratch >/dev/null + buildah commit ocr-selftest-amd64 ocr-selftest/ns8-calnode:build-amd64 >/dev/null + buildah from --name ocr-selftest-arm64 --arch arm64 scratch >/dev/null + buildah commit ocr-selftest-arm64 ocr-selftest/ns8-calnode:build-arm64 >/dev/null + # SOURCE_PREFIX is empty so this reads from local containers-storage, + # which is the only way to exercise the script with no registry. + REPOBASE=ocr-selftest SOURCE_PREFIX="" TARGETARCHES="amd64 arm64" \ + IMAGETAGS=selftest PUSH_DESTINATION="oci:${tmp}/out" \ + bash packaging/ns8/push-manifest.sh + echo "hermetic manifest selftest OK" + + # The hermetic test above reads local storage, so it cannot catch the + # failure that actually broke the v0.11.0 release: buildah running with + # two graph roots merged into one store, where the local image record + # existed but its manifest blob did not, and + # buildah manifest add + # failed with "reading manifest for instance ...: file does not exist". + # + # A release now reads each architecture from the registry instead, so this + # test does too: it assembles from the real published :build- tags + # and pushes the result to a local oci: path, so it needs no credentials + # and publishes nothing. If these tags are missing, that is itself the + # signal worth failing on. + - name: Selftest the manifest assembly against the registry + run: | + set -euo pipefail + tmp=$(mktemp -d) + REPOBASE=ghcr.io/calnode TARGETARCHES="amd64 arm64" \ + IMAGETAGS=selftest-registry PUSH_DESTINATION="oci:${tmp}/out" \ + bash packaging/ns8/push-manifest.sh + # Prove the assembled list really carries both arches rather than + # trusting the exit code alone. buildah writes a plain OCI layout, + # but it stores the assembled list as a single entry in index.json + # whose own mediaType is an image index, with the per-arch manifests + # inside that referenced blob. So look there when the top level holds + # no platform entries of its own. + count=$(jq '[.manifests[]? + | select(.platform.architecture != null + and .platform.architecture != "unknown")] + | length' "${tmp}/out/index.json") + if [ "$count" -eq 0 ]; then + top=$(jq -r '.manifests[0].digest' "${tmp}/out/index.json") + inner="${tmp}/out/blobs/sha256/${top#sha256:}" + if [ ! -f "$inner" ]; then + echo "::error::no index entry with platforms and no referenced blob at $inner" + cat "${tmp}/out/index.json" + exit 1 + fi + count=$(jq '[.manifests[]? + | select(.platform.architecture != null + and .platform.architecture != "unknown")] + | length' "$inner") + fi + if [ "$count" -ne 2 ]; then + echo "::error::assembled index holds ${count} arches, expected 2" + cat "${tmp}/out/index.json" + exit 1 + fi + echo "registry-backed manifest selftest OK (${count} arches)" + + build: + needs: validate + runs-on: ubuntu-latest + timeout-minutes: 45 + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + # Required to build the arm64 variant of the module image on an amd64 + # runner. Without it the module image would be amd64-only and podman + # could not run it on an arm64 NS8 node. + - uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0 + with: + platforms: all + + # The UI build is the slow part; cache the dependency tree the way the + # upstream NS8 publish workflow does, so branch and PR runs do not + # re-download the whole Vue/Carbon tree every time. + - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: packaging/ns8/ui/node_modules + key: "yarn-${{ hashFiles('packaging/ns8/ui/yarn.lock') }}" + + # Mirror the app tagging in docker-publish.yml: release tags pin both + # images to the same version, branches track the moving app tags. + - name: Resolve tags + id: tags + env: + REF: ${{ github.ref }} + REF_NAME: ${{ github.ref_name }} + run: | + if [[ "${REF}" == refs/tags/v* ]]; then + version="${REF_NAME#v}" + echo "module_tags=${version} ${version%.*} latest" >> "$GITHUB_OUTPUT" + echo "app_image=ghcr.io/calnode/calnode:${version}" >> "$GITHUB_OUTPUT" + elif [[ "${REF}" == refs/heads/main ]]; then + echo "module_tags=edge" >> "$GITHUB_OUTPUT" + echo "app_image=ghcr.io/calnode/calnode:edge" >> "$GITHUB_OUTPUT" + elif [[ "${REF}" == refs/heads/dev ]]; then + echo "module_tags=dev" >> "$GITHUB_OUTPUT" + echo "app_image=ghcr.io/calnode/calnode:dev" >> "$GITHUB_OUTPUT" + else + echo "module_tags=build" >> "$GITHUB_OUTPUT" + echo "app_image=ghcr.io/calnode/calnode:edge" >> "$GITHUB_OUTPUT" + fi + + - name: Log in to GHCR + if: github.event_name != 'pull_request' + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + # buildah is preinstalled on the ubuntu runners, same as the upstream + # NS8 publish workflow assumes. + - name: Build each architecture + working-directory: packaging/ns8 + env: + EVENT_NAME: ${{ github.event_name }} + ACTOR: ${{ github.actor }} + GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOBASE: ghcr.io/${{ github.repository_owner }} + APP_IMAGE: ${{ steps.tags.outputs.app_image }} + IMAGETAGS: ${{ steps.tags.outputs.module_tags }} + run: | + push=0 + if [ "$EVENT_NAME" != "pull_request" ]; then + push=1 + buildah login -u "$ACTOR" --password-stdin ghcr.io <<<"$GHCR_TOKEN" + fi + # PUSH=1 publishes only the per-arch :build- tags. The public + # tags are assembled from them by the manifest step below. + for arch in amd64 arm64; do + PUSH="$push" TARGETARCH="$arch" bash build-images.sh + done + + - name: Assemble and push the multi-arch manifest + if: github.event_name != 'pull_request' + working-directory: packaging/ns8 + env: + REPOBASE: ghcr.io/${{ github.repository_owner }} + TARGETARCHES: "amd64 arm64" + IMAGETAGS: ${{ steps.tags.outputs.module_tags }} + run: bash push-manifest.sh + + # The gate that would have caught the amd64-only :latest. It inspects what + # actually landed in the registry rather than local storage, so a broken + # publish cannot pass by looking healthy from the runner. Needs no extra + # secrets: the module repository is public and the token is anonymous. + # Runs for branch pushes too, because :edge and :dev are published tags + # and deserve exactly the same guarantee as a version tag. + # + # Deliberately module-only: it does NOT resolve the app image named by + # org.nethserver.images. This workflow and docker-publish.yml are triggered + # by the same tag push and run concurrently, so on a fresh release the app + # image is often not published yet and resolving it here races the app + # publish. That check lives in release-verify.yml, which runs once both + # publish workflows have completed. + - name: Assert the published tags are multi-arch + if: github.event_name != 'pull_request' + working-directory: packaging/ns8 + env: + MODULE_REPO: ghcr.io/${{ github.repository_owner }}/ns8-calnode + IMAGETAGS: ${{ steps.tags.outputs.module_tags }} + run: python3 assert-multiarc.py "$MODULE_REPO" $IMAGETAGS diff --git a/.github/workflows/pullfrog.yml b/.github/workflows/pullfrog.yml index 92aac378..852408a5 100644 --- a/.github/workflows/pullfrog.yml +++ b/.github/workflows/pullfrog.yml @@ -22,13 +22,14 @@ jobs: contents: read steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 - name: Run agent - uses: pullfrog/pullfrog@v0 + uses: pullfrog/pullfrog@8302038bc7ab13f579cfef4bad72941b87f8c1c5 # v0.1.107 with: prompt: ${{ inputs.prompt }} + model: opencode-go/deepseek-v4.1-flash env: # add at least one provider API key ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} diff --git a/.github/workflows/release-verify.yml b/.github/workflows/release-verify.yml new file mode 100644 index 00000000..d1e145ad --- /dev/null +++ b/.github/workflows/release-verify.yml @@ -0,0 +1,188 @@ +name: Verify module release + +# The paired check that a module release cannot live without. +# +# ns8-module.yml and docker-publish.yml are both triggered by the same tag push +# and run CONCURRENTLY. That means the module workflow cannot verify that the app +# image exists: on a fresh release the app image is frequently not published yet, +# and checking there races the app publish. It is not a timing bug that a longer +# retry can fix. An app build can lag by however long it takes, and that grows, +# so a longer retry drifts toward never failing a genuinely absent app image, +# while a short one fails releases whose app image was merely slow. +# +# So the pair check lives here instead. This workflow is triggered by the +# COMPLETION of both publish workflows, and the job runs only when both of them +# concluded successfully for the same commit. There is no sleep, no retry budget +# and no polling loop deciding whether to wait: the two completion events are the +# dependency. Whichever workflow finishes last triggers the run that does the +# work, so a slow app publish simply means the job runs later, not that it fails. +# +# Consequence worth knowing: once both have succeeded, an app tag that is still +# absent is genuinely wrong rather than late, so assert-multiarc.py --pair fails +# on it promptly instead of waiting. + +on: + workflow_run: + workflows: ['NS8 module publish', 'Docker publish'] + types: [completed] + +permissions: + actions: read # read the sibling workflow's conclusion for this commit + contents: read # resolve which tag, if any, points at this commit + +concurrency: + group: verify-release-${{ github.event.workflow_run.head_sha }} + cancel-in-progress: false + +jobs: + verify: + name: Verify module and app tags agree + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + # Live evidence that the sibling lookup actually works against the real API. + # This runs unconditionally and does not depend on the gate's decision, + # because the previous version of this workflow looked correct in every + # local test and had never once issued the call. A lookup bug must be + # visible in a run log, not inferred from a stubbed unit test. + - name: Probe both publish workflows + env: + GH_TOKEN: ${{ github.token }} + SHA: ${{ github.event.workflow_run.head_sha }} + run: | + set -euo pipefail + rc=0 + for entry in 'NS8 module publish|ns8-module.yml' 'Docker publish|docker-publish.yml'; do + display="${entry%%|*}" + file="${entry##*|}" + url="repos/${{ github.repository }}/actions/workflows/$file/runs?per_page=100" + if runs=$(gh api "$url" 2>&1); then + echo "$file -> 200, $(printf '%s' "$runs" | jq '.total_count') run(s) on record" + match=$(printf '%s' "$runs" | jq -r --arg sha "$SHA" \ + '[.workflow_runs[] | select(.head_sha == $sha)] | first | + "\(.status // "none") \(.conclusion // "none") \(.name // "?")"') + echo "$file run for $SHA: ${match:-none}" + else + echo "::error::lookup failed for '$display' ($file): $runs" + rc=1 + fi + done + exit $rc + + - name: Wait for both publish workflows to finish + id: gate + env: + GH_TOKEN: ${{ github.token }} + SHA: ${{ github.event.workflow_run.head_sha }} + TRIGGERING: ${{ github.event.workflow_run.name }} + # Both publish workflows must have concluded for this commit. The one + # that triggered this run has already reported; the other may still be + # running, in which case its own completion will trigger us again. + SIBLING: ${{ github.event.workflow_run.name == 'NS8 module publish' && 'Docker publish' || 'NS8 module publish' }} + run: | + set -euo pipefail + echo "triggering workflow: $TRIGGERING (conclusion ${{ github.event.workflow_run.conclusion }})" + echo "waiting for sibling: $SIBLING" + + if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then + echo "::notice::the triggering workflow did not succeed; nothing to verify." + echo "ready=false" >> "$GITHUB_OUTPUT" + echo "outcome=not-verified" >> "$GITHUB_OUTPUT" + exit 0 + fi + + # The REST path wants the workflow FILE name or the numeric id. It does + # NOT accept the display name, and answers 404 for one. Measured: + # .../actions/workflows/NS8 module publish/runs -> 404 + # .../actions/workflows/ns8-module.yml/runs -> 200 + # Under `set -e` that 404 kills the step, so every run of this workflow + # failed at this line and the gate could never verify anything. + # + # Note the display name is still what the workflow_run TRIGGER matches on + # and what github.event.workflow_run.name returns. Only the API path needs + # the file name, so this mapping is deliberately confined to that one call. + case "$SIBLING" in + 'NS8 module publish') sibling_file='ns8-module.yml' ;; + 'Docker publish') sibling_file='docker-publish.yml' ;; + *) + # Loud, not silent. A renamed workflow must not look like a healthy + # no-op, which is exactly how the previous version of this bug hid. + echo "::error::no file name is mapped for sibling workflow '$SIBLING'." + echo "::error::Add it to the case statement above. The display names live in .github/workflows/ns8-module.yml and docker-publish.yml." + exit 1 + ;; + esac + echo "sibling display name: $SIBLING" + echo "sibling workflow file: $sibling_file" + + runs=$(gh api "repos/${{ github.repository }}/actions/workflows/$sibling_file/runs?per_page=100") + total=$(printf '%s' "$runs" | jq '.total_count') + echo "sibling workflow run count: $total" + + read -r status conclusion < <( + printf '%s' "$runs" \ + | jq -r --arg sha "$SHA" \ + '([.workflow_runs[] | select(.head_sha == $sha)] | first) // {} | + "\(.status // "absent") \(.conclusion // "absent")"' + ) + + echo "sibling status=$status conclusion=$conclusion" + if [ "$status" != "completed" ]; then + echo "::notice::$SIBLING has not finished for this commit (status=$status)." \ + "Its completion will trigger this workflow again. Not a failure." + echo "ready=false" >> "$GITHUB_OUTPUT" + echo "outcome=waiting-for-sibling" >> "$GITHUB_OUTPUT" + elif [ "$conclusion" != "success" ]; then + echo "::error::$SIBLING concluded '$conclusion' for this commit, so this is not a clean release." + echo "ready=false" >> "$GITHUB_OUTPUT" + echo "outcome=blocked" >> "$GITHUB_OUTPUT" + else + echo "ready=true" >> "$GITHUB_OUTPUT" + echo "outcome=verify" >> "$GITHUB_OUTPUT" + fi + + - name: Resolve the released tag + if: steps.gate.outputs.ready == 'true' + id: tag + env: + GH_TOKEN: ${{ github.token }} + SHA: ${{ github.event.workflow_run.head_sha }} + run: | + set -euo pipefail + # workflow_run does not carry the ref, so find the tag that points at + # this commit. A plain branch push has no such tag and skips, which is + # how this stays out of the way of ordinary commits. + tag=$(gh api "repos/${{ github.repository }}/tags" --paginate \ + --jq "map(select(.commit.sha == \"$SHA\")) | map(.name) | map(select(test(\"^v[0-9]+\\\\.[0-9]+\\\\.[0-9]+$\"))) | first // empty" \ + | head -1 | tr -d '\r') + if [ -z "$tag" ]; then + echo "::notice::no release tag points at $SHA; not a tag release, skipping." + echo "found=false" >> "$GITHUB_OUTPUT" + else + echo "found=true" >> "$GITHUB_OUTPUT" + echo "name=$tag" >> "$GITHUB_OUTPUT" + echo "version=${tag#v}" >> "$GITHUB_OUTPUT" + fi + + - name: Assert the module and app tags form a matched multi-arch pair + if: steps.gate.outputs.ready == 'true' && steps.tag.outputs.found == 'true' + working-directory: packaging/ns8 + env: + MODULE_REPO: ghcr.io/${{ github.repository_owner }}/ns8-calnode + run: | + # Same version tag plus its major.minor alias, plus :latest. The module + # publishes exactly these three, so all three must resolve to the same + # release and carry the same app reference. + # + # No app repository is passed: the app image is taken from each + # module's org.nethserver.images label, which is the only authoritative + # source for what a module actually runs. + version="${{ steps.tag.outputs.version }}" + major_minor="${version%.*}" + python3 assert-multiarc.py \ + --pair \ + --expect-app-tag "$version" \ + "$MODULE_REPO" \ + "$version" "$major_minor" latest \ No newline at end of file diff --git a/.github/workflows/test-module.yml b/.github/workflows/test-module.yml new file mode 100644 index 00000000..a25f6a48 --- /dev/null +++ b/.github/workflows/test-module.yml @@ -0,0 +1,96 @@ +name: Test module (robot) + +# Robot Framework integration tests for the NS8 module. The suite in +# packaging/ns8/tests installs the module on a real NS8 cluster, configures it, +# checks the route, screenshots the UI and removes it again. +# +# WHY THIS DOES NOT USE THE STOCK NS8 WORKFLOW +# +# NethServer/ns8-github-actions provides test-module.yml@v1, the one-line +# entry point every NS8 module uses. It cannot be used here. It derives the +# image under test from the repository name: +# +# name = basename(repository), with any leading "ns8-" stripped +# owner = lowercased repo owner +# tag = head branch, with "main" forced to "latest" +# image = ghcr.io//: +# +# For this repository that yields ghcr.io/calnode/calnode:latest, which is two +# wrong answers at once: +# * the module image is ghcr.io/calnode/ns8-calnode, not ghcr.io/calnode/calnode +# (the latter is the Calnode application image, which has no NS8 module +# manifest, so add-module would fail); +# * this repo deliberately never publishes a :latest module tag. :latest stays +# pinned to releases, and main publishes :edge, exactly as docker-publish.yml +# does for the app image. +# +# So this workflow calls test-on-digitalocean-infra.yml@v1 directly, which is +# the reusable workflow test-module.yml delegates to anyway, and supplies the +# image URL itself via the `args` input. Everything else (DigitalOcean +# provisioning, NS8 install, create-cluster, the test runner, artifact upload, +# tmate debugging) is still theirs and unmodified. +# +# NOT RUNNING AUTOMATICALLY YET +# +# It needs a `do_token` repository secret (DigitalOcean API token) for the +# cluster provisioning, and this repo does not have one. Declaring the workflow +# with a workflow_run trigger now would just fail red on every publish, so it is +# manual-only until that is sorted out. +on: + workflow_dispatch: + inputs: + image: + description: 'Module image under test' + required: false + type: string + default: 'ghcr.io/calnode/ns8-calnode:edge' + run_ui_tests: + description: 'Run the [ui] tests (slower, needs the Playwright image)' + required: false + type: boolean + default: false + debug_shell: + description: 'Hand out a tmate debug shell on failure' + required: false + type: boolean + default: false +# To run this on every successful publish instead of by hand, add: +# workflow_run: +# workflows: ['NS8 module publish'] +# types: [completed] +# ...after setting the do_token secret. + +# Read-only by default; the job below grants what the reusable workflow uses. +permissions: + contents: read + +jobs: + test: + name: Run tests + # The called workflow checks out code (contents: read), sets a commit + # status for the run (statuses: write) and comments UI screenshots on the + # pull request (pull-requests: write). + permissions: + contents: read + pull-requests: write + statuses: write + # Pinned to a commit on NethServer's `v1` branch (a branch, not a tag). + # It is the last commit that still has this workflow: the branch has since + # removed test-on-digitalocean-infra.yml in favour of test-module-qemu.yml, + # so `@v1` no longer resolves to it. Moving this pin to the branch head + # would break the workflow, so check that the file exists before bumping. + uses: NethServer/ns8-github-actions/.github/workflows/test-on-digitalocean-infra.yml@3dc3a490752846c4cb0ea86921f8ae3790d7d78c + with: + # packaging/ns8 holds both the module definition and tests/, so this is the + # module root for the purposes of the runner. + path: packaging/ns8 + # `args` is the second positional argument to run-ns8-tests, i.e. the + # IMAGE_URL that the suite passes to add-module. See the header note. + args: ${{ inputs.image }} + # One leader node. The default is "dn1 rl1" (two droplets); the suite is + # single-node, so a second one only doubles the cost. + leader_nodes: rl1 + run_ui_tests: ${{ inputs.run_ui_tests }} + debug_shell: ${{ inputs.debug_shell }} + secrets: + do_token: ${{ secrets.do_token }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 79fbf573..fb8b6478 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ dist/ /graphify-out/ # Data (local dev DB) +calnode-data/ data/ data-demo/ *.db @@ -62,3 +63,7 @@ pnpm-debug.log* # Vitest browser-mode artifacts (failure screenshots / attachments) __screenshots__/ .vitest-attachments/ + +# NS8 Robot Framework test output (output.xml, log.html, report.html, screenshots) +packaging/ns8/tests/outputs/ +__pycache__/ diff --git a/AUDIT.md b/AUDIT.md index 62885da9..62207e20 100644 --- a/AUDIT.md +++ b/AUDIT.md @@ -1,6 +1,6 @@ # Auditing Calnode — a 10-minute self-serve security & quality check -Calnode's backend is ~24,000 lines of Go across ~105 files (~840KB, excluding +Calnode's backend is ~30,800 lines of Go across 128 files (~1.1MB, excluding tests). That's small enough to fit entirely in one LLM context window — which most scheduling software (cal.com included) can't do. This page is our attempt to turn "auditable" from a slogan into something you actually run, yourself, before you @@ -82,7 +82,7 @@ semgrep scan --config p/security-audit --config p/secrets \ ``` Our own latest run of this exact block: **govulncheck 0 · gosec 0 unresolved (all -findings annotated) · gitleaks 0 across 337 commits · semgrep 0**. Yours should +findings annotated) · gitleaks 0 across 560 commits · semgrep 0**. Yours should match — if it doesn't, that's either drift since our last run or something we need to know about. (`govulncheck` and `gosec` are also re-run on every push to `main` via `.github/workflows/audit.yml`, so an unannotated gosec finding or a new CVE diff --git a/CHANGELOG.md b/CHANGELOG.md index f45a54ce..6eec3898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,595 @@ exact tag (`ghcr.io/calnode/calnode:0.1.0`) if you need stability between upgrad ## [Unreleased] +### Upgrading + +- **Back up the database before upgrading.** This release includes a migration (`00072`) + that renames two columns on `bookings` and adds one. Migrations run automatically at + boot, so the upgrade is the moment to want a restore point that predates it. + + - **Docker or Railway.** Take the backup deliberately rather than assuming a replica + exists somewhere, and prove it restores while the app is still on the old version: the + non-destructive drill in `DEPLOY.md` §6 restores to a scratch path without touching the + live database. If you run without `CALNODE_ENCRYPTION_KEY`, also copy + `/data/calnode.key`. The replica holds the database, not the key, and a restore without + it will not start. + - **NS8 module.** Run a module backup before pulling the new image. It captures + `volumes/calnode-data` and `state/calnode.env`, which is where the encryption key lives. + + The migration has a down path that restores both column names and keeps the data, but a + backup is the only safety net for anything that goes wrong between the migration running + and your first check that existing bookings still look right. + +### Added + +- **German without du or Sie (`de-x-neutral`).** An opt-in wording variant of the German + booker catalogue that addresses nobody: "Tag auswählen" rather than "Wählen Sie einen + Tag". It is for operators whose own site is informal, where the formal widget stands out + and an informal one would be wrong for everyone else. `de` is unchanged and stays formal. + The variant is never offered in the language switcher or matched from `Accept-Language`; + select it with `?lang=de-x-neutral` or ``. + +### Fixed + +- **Buttons and inputs in the booking UI now use the surrounding font.** Form controls + take their font family from the browser stylesheet, so day cells, time slots and the + confirm button rendered in the system font beside text in the page font. An embedder who + set `calnode-booking { font-family: … }` got the brand font everywhere except on the + controls. Sizes, weights and control heights are unchanged. +- **The embed widget's `lang` attribute accepts hyphenated locales.** The widget trimmed + the attribute to its primary subtag before sending it, so `lang="fr-CA"` loaded France + French. The attribute is now sent whole and the server falls back to the primary + language when there is no exact match, so `lang="de-DE"` still selects German. + +## [0.14.0] - 2026-11-08 + +### Added +- **French for the admin interface.** The SvelteKit admin (`frontend/`) now has a + lightweight i18n layer (`frontend/src/lib/i18n/`) with English as the source of truth + and a complete French catalogue. The language is chosen in Settings → Profile (remembered + in the browser) and falls back to the browser language, then to English. Dates and times in + the admin follow that locale. Public booking pages and emails still use the existing + booker catalogues; the LiveKit room stays English. The wording reads as native French + rather than machine translation, but it has not had a separate review, so treat it like + every other non-English locale here until a speaker confirms it. +- **Polish.** The booker-facing surfaces now ship a `pl` locale: booking page, manage and + reschedule page, embed widget, the confirmation and reminder emails, and the calendar invite + text. It is selected from `Accept-Language`, a `?lang=pl` override, or the operator's + fallback setting, and the switcher lists it automatically. Like every non-English locale + here it is a contribution rather than a reviewed translation, so the wording is worth a + native check before it is advertised. + +### Changed + +- **Partial locale catalogues are allowed, so a language can be translated in stages.** A + locale file no longer has to contain every English key before it can merge: a missing key + falls back to English at lookup time (`Locale.T`). This was previously blocked by + `TestAllLocalesHaveTheSameKeys`, which asserted exact set equality in both directions, so a + half-finished locale was unmergeable and a volunteer had to produce all 169 strings before + contributing anything. That is the practical reason community translations stall. + A locale is now offered to visitors - language switcher, `Accept-Language` matching and the + public API payload - only at or above `MinCoverage` (80% of the English keys), so nobody is + served a mostly-English booking page by accident. Below the floor `?lang=` still + resolves, so whoever is translating it can check their work, and startup logs which locales + are withheld and why. The unknown-key check survives as `TestLocalesHaveNoUnknownKeys`, + since a key English does not have is always a typo, and the floor is pinned by + `TestOfferedLocalesMeetCoverageFloor`. No shipped locale changes: all 11 are complete and + remain offered. +- **The admin is usable on a phone.** Below the `md` breakpoint the sidebar becomes a drawer + with a compact header. Focus moves into the drawer on open and back to the trigger on close, + Escape and any navigation close it, `
` is inert while it is open, and content scrolls + instead of clipping. On 0.13.0 the fixed 224px sidebar left almost nothing of a 390px + screen and the wrapper clipped rather than scrolled, so every admin page was unusable at + that width. +- **Documentation for translators.** `docs/i18n-glossary.md` fixes one term per concept per + language, including the places where the booker and admin catalogues currently disagree. + `CONTRIBUTING.md` explains how to add or extend a language, what the coverage floor means, + and what passing tests does not prove. `make i18n-coverage` prints per-language coverage for + both catalogues, and CI prints the same table. + +### Fixed +- **Catalogue text is no longer rendered as HTML.** The report-issue dialog used `{@html}` on + a catalogue string, which contradicted the catalogue's own rule and left a path where a + future locale file could put markup, and therefore script, into an operator's admin session. + It now renders the plain string. A new CI check fails if any call site renders catalogue text + as HTML, or passes a key that does not exist in the English catalogue, which previously + printed the dotted key on screen with every test still green. +- **SvelteKit 2.70.4**, the 2.x security release. + +There are no database migrations in this release. + +## [0.13.0] - 2026-11-03 + +### Added +- **Greek.** The public surfaces now ship an `el` locale: the booking and manage pages, the + embed widget, the booking emails and calendar invite text. Locale resolution is unchanged, + so it is chosen from `Accept-Language`, a `?lang=el` override, or the operator's fallback + setting, and the switcher lists it automatically. Like every non-English locale here it is + a contribution rather than a reviewed translation, so the wording is worth a native check + before it is advertised. + +### Changed +- **Dependency maintenance.** Go 1.27.3 build image, `modernc.org/sqlite` 1.61.0, + `goose` 3.29.0, `x/crypto` 0.58.0, `x/text`, `x/image`, Svelte 5.57.3, Lucide, + shadcn-svelte, Playwright and vitest-browser-svelte, plus the GitHub Actions majors + (`setup-go` 7, `cache` 6, `codeql-action` 4, `upload`/`download-artifact` 7/8). No + application behaviour changed, and there are no database migrations in this release. +- **The visual smoke tests run in CI.** They mount components in a real browser and assert + computed styles, which is what catches a shadcn `data-state` that lost its variant remap. + They were previously a manual step and had been skipped for these dependency bumps. +- **The release job can be rehearsed without a tag.** A `workflow_dispatch` with + `dry_run=true` builds and runs the release steps, then stops before publishing, so a change + to the release path is no longer first exercised by a real release. + +## [0.12.0] - 2026-10-30 + +### Fixed +- **Microsoft calendars stop treating free and cancelled entries as busy.** Outlook's calendar + view lists entries that leave the owner available: reminders, all-day holidays from + subscribed calendars, cancelled meetings still on the calendar, and invitations that were + declined. Calnode counted all of them, so a single all-day "free" entry could block a + collective's whole day. None of those block now; tentative, busy, out-of-office and + working-elsewhere still do, which matches Outlook's own scheduling assistant. +- **The notetaker enqueues jobs again.** Migration 00065 replaced the jobs table's full unique + index with a partial one over live jobs, and SQLite only accepts a partial index as an + upsert target when the `ON CONFLICT` clause repeats its predicate. The bare target matched + no constraint, so every transcribe and summarize enqueue failed. A pending duplicate is + still pulled forward to run now, a running job is left alone rather than run twice, and a + finished one starts a fresh run. +- **Slots align to the host's wall clock, not the UTC epoch.** In a timezone offset by half an + hour or 45 minutes, hourly slots started at :30 or :45 local, so a 09:00-17:00 day never + offered 09:00; intervals that do not divide a day also drifted from day to day. Alignment + now counts from local midnight on the lead host's clock, on one shared clock because + collective and round-robin routing joins hosts on identical instants, and wall-clock + arithmetic keeps the grid stable across DST changes. +- **A slow mail server no longer drops other hosts' calendar events or the webhook.** + Post-booking work shared a single 30-second deadline, so a stalled SMTP server could spend + it before the remaining hosts were handled. Reminders are queued first because they are + durable and need no calendar, the calendar phase has its own budget, the webhook is + enqueued after it on an uncancelled context so it still carries the minted link, and email + runs under a separate budget. +- **Booking checks host calendars concurrently.** Hosts were read in sequence, so the budget + covered one provider round trip per host and a multi-host event could fail with a calendar + availability error. Checks now run concurrently and remain all-or-nothing, because a + partial union would read an unchecked provider's meetings as free time. +- **Reassigning a booking moves the primary seat atomically.** The new host could end up with + two seats on the same booking. The seat now moves in the same transaction as `host_id`, a + legacy booking without a seat gets one, and reassigning onto an existing co-host returns + 409 instead of creating a duplicate. +- **Mail sent over SMTP carries `Date` and `Message-ID`.** Messages went out with only + `From`, `To` and `Subject`. RFC 5322 requires an origination date on every message and + expects a message identifier; some relays add what is missing, but not all do, and + receiving servers and spam filters score mail without them as suspicious — so + confirmations and reminders could land in spam. The identifier's domain comes from the + configured sender address, falling back to the SMTP host when that address is unset or + unusable. The Resend transport was unaffected; it sets both headers itself. +- **A plain `docker run` no longer loses stored credentials on restart.** The documented + first install starts Calnode with no `CALNODE_ENCRYPTION_KEY`. With `BASE_URL` on + `http://`, the vault treated that as development mode and generated an ephemeral data key, + so every credential stored in the database — the SMTP password, Stripe keys, Zoom and + LiveKit secrets, OAuth client secrets — became unreadable at the next restart, while the + volume made the data look persisted. The only signal was the `BASE_URL` scheme, so a + production deployment behind a TLS-terminating proxy (`BASE_URL http`, TLS at the edge) + took the same silent path. A secret is now resolved before the vault opens: an explicit + `CALNODE_ENCRYPTION_KEY` still wins and writes nothing, an existing key file beside the + database is reused, and only a genuinely fresh install generates one, written `0600` with + `O_EXCL` so two starts cannot overwrite each other. An empty key file is now an error + rather than a cue to generate a replacement. +- **A restore that is missing the encryption key now fails instead of starting fresh over an + encrypted database.** If the database already holds a wrapped data key but no key file is + present, Calnode generates one and then refuses to start, because it cannot unwrap the + existing data key — it never re-keys the data. The generated file is useless: replace it + with the real key, or set `CALNODE_ENCRYPTION_KEY`, before retrying the restore. +- **An NS8 module release can no longer mix architectures.** The module build pushes each + architecture to a fixed staging tag (`:build-amd64`, `:build-arm64`) and then assembles the + multi-arch index from them. The workflow's concurrency group included the git ref, so a + push to `main` and a release tag — which are cut seconds apart — ran concurrently and + overwrote each other's staging images, publishing a manifest whose amd64 and arm64 came + from different releases. This is exactly what happened while cutting 0.11.2: `:edge` + carried amd64 from the tag (app `0.11.2`) and arm64 from `main` (app `edge`). The release + tags themselves were coherent; `:edge` was rebuilt. All module publishes now share one + concurrency group and serialise, with `cancel-in-progress` off so a release build cannot be + cancelled by an unrelated push. The post-publish architecture assertion is what caught it + and remains in place. + +### Changed +- **The encryption key is persisted beside the database, and must be backed up with it.** + When Calnode generates the platform secret itself it writes `calnode.key` next to the + database (`/data/calnode.key` in the container). Litestream replicates the database, not + that file, so the two must be kept together: restoring the database alone will not start. + Deployments that set `CALNODE_ENCRYPTION_KEY` in the environment are unchanged and write + no key file. + +### Added +- **Admins can manage every event type, not just their own.** Until now only an event + type's owner could edit or delete it; admins and the instance owner got the same + read-only view as an assigned host. A shared round-robin event type owned by a shared + account could only be changed by signing in as that account. Admins now get an + *All event types* view (`GET /v1/event-types?scope=all`, ignored for members, like + bookings' `scope=all`) with an Owner column, and can edit, duplicate and delete any + event type, including its hosts and questions. The event type stays its owner's: the + owner does not change, a copy belongs to the same owner, and a Zoom/Teams/Meet location + without a link is still checked against the owner's connected accounts, not the + admin's. Members and hosts see exactly what they did before. Event types in API + responses gain `can_edit` and `owner_id`; `owned` keeps its meaning (the caller is the + owner). Changes an admin makes to someone else's event type are logged. +- **The published arm64 image is now exercised on native hardware on every PR and every + publish.** A new `arm64-smoke` job runs on an ARM runner, asserts the image and the + container really are `aarch64`, checks the app serves over HTTP, and — the part that + matters for this release — verifies the key file is persisted and that a restart unwraps + the existing data key rather than generating a new one. On a publish it pulls the exact + digest the build job produced, so it cannot pass against a stale tag. +- **Calendar invites can be left to your own system.** *Calendar invite → Sent by* gains a + third choice, *Your own system*. Hosts still get the meeting, with its Meet/Teams link, on their + own calendar, but the booker is not a guest there, so their calendar provider sends no + invite, and Calnode attaches none to its emails. For setups that send their own + confirmation and invite. It needs no email setup; if email is set up, the booker's + confirmation, reschedule and cancellation emails still go out, without an invite. + Existing bookings keep the way they were invited. +- **Bookings say how their invite was sent.** The booking JSON (`GET /v1/bookings`, + `GET /v1/bookings/{id}` and the MCP tools) now includes `invite_delivery` (`calendar`, + `calnode` or `none`), and webhooks can add it as a payload field. It is not in the + default field set, so existing webhooks are unchanged. + +### Upgrade notes +- **Back up before upgrading.** This release adds migration `00071`, which rebuilds the + `invite_delivery` column on `bookings` and `event_types` because SQLite cannot alter a + `CHECK` constraint in place. It is a table rewrite: milliseconds at ordinary data sizes + (18ms against a small production database), but take a restore point first. The down + migration maps `none` to `calnode`, so lowering the version after using the new mode is + lossy for that value. + +## [0.11.2] - 2026-10-28 + +### Added +- **Calnode now ships as a standalone Linux binary, not only a container image.** Every + tagged release also publishes `calnode__linux_amd64.tar.gz` and + `calnode__linux_arm64.tar.gz`, with `checksums.txt` and the licence, on the same + GitHub release as the images. Each archive is the exact executable that is inside the + corresponding image: statically linked, with the admin UI and the IANA timezone database + compiled in, so it needs no Go, Node or Docker on the host. It is the same build, so the + binary and the image cannot drift apart. Two things to know before using it: the archive + does **not** include Litestream, so setting `LITESTREAM_REPLICA_URL` alone starts neither + backups nor restore — arrange backups separately or use the container — and the host needs + a CA certificate store for outbound HTTPS. + +### Fixed +- **Reminder emails show the workspace logo and banner again** (#168). Confirmations, + cancellations and reschedules had always displayed them, but reminders did not: the worker + built the email from `server_settings` directly and skipped the relative-to-absolute step + the handler performs, leaving ``. Mail clients cannot resolve + a relative path, so the logo disappeared and the banner never loaded at all. The cause was + structural — the branding helpers were methods on the HTTP handler, which a separate + package cannot call — so the brand identity now lives in `internal/branding` and both + senders use it. +- **The booking page no longer pushes host avatars into the calendar** (#169). With several + hosts the info panel drew every face, and six hosts overflowed the 240px panel border into + the calendar column. At most three faces are drawn now, matching the "Wynne, Bob, Cara & + 3 others" wording that already named only three, with a `+N` chip for the rest. Applied to + both surfaces that draw faces, the booking page and the embed widget. +- **ChatGPT and other MCP clients that require protocol `2026-07-28` can discover the + server** (#171). `/mcp` answered `server/discover` with supported versions ending at + `2025-11-25`; a client that asks for the newer version and does not fall back stopped at + action discovery. The cause was transport mode rather than the SDK, which already knew the + version but only offers it on a stateless transport. Calnode holds no MCP session state — + every request is authenticated independently — so the transport is now stateless. Clients + that negotiate down were never affected. + +### Changed +- **Container images build roughly five times faster, with no emulation** (#165). The + multi-arch build compiled both the frontend and the Go binary under QEMU for arm64, which + took 11-13 minutes and occasionally hung until the job's six-hour timeout. Neither stage + needed emulation: the frontend output is architecture-independent and CGO is disabled, so + both now build on the build platform and Go cross-compiles to the target. A release build + fell from about 700-800s to about 160s, and the job now has a 60-minute ceiling so a hang + fails visibly instead of holding for six hours. +- **Security scanning runs on pull requests, not only after merge** (#164). `govulncheck`, + `gosec` and `gitleaks` ran only on push to `main`, weekly, and manually, so the Go standard + library advisory that broke the clean-scan claim was already on `main` before anything + reported it. They now run on every pull request. The OpenSSF Scorecard job is gated to + `main`, since it refuses any other ref and was producing a red result that meant nothing. +- **Merged pull requests are no longer locked** (#161). The CLA action's default locks every + merged PR, which silently blocks any later comment or bot action and made a healthy review + run look broken. The signature record is the committed `cla.json` ledger, which the action + only ever appends to, so the lock was protecting a duplicate; a new CI check now fails any + pull request that removes an already-signed contributor. +- **The Go toolchain is 1.26.10** (#163), closing GO-2026-6809 in `crypto/x509`. The + vulnerability was reachable through the SMTP transport's TLS dial. + +### Fixed (NS8) +- **A cloned NS8 instance releases the source's hostname** (#157). The core clone copies the + volumes and `state/`, which meant a clone arrived holding the original hostname but with no + route of its own — the route belongs to the source instance — and configuring it with that + hostname was refused because the source still answered for it. The clone now comes up + unconfigured, exactly like a freshly added instance, and keeps its encryption key: dropping + that would have left it with a database it cannot decrypt. +- **The NS8 install guidance no longer claims `:latest` is amd64-only** (#156). Since 0.11.1 + it is a genuine multi-arch index, so pinning a version is recommended for reproducibility + rather than because `:latest` fails on a Pi. + +## [0.11.1] - 2026-10-16 + +### Fixed +- **Deleting an event type with bookings in its history explains itself.** Calnode + refuses to delete an event type that has bookings, including cancelled ones, so the + booking history stays intact — but it answered with a generic "internal error" instead + of saying so. SQLite reports a constraint declared `ON DELETE RESTRICT` under a + different code than the default, and Calnode only recognised the default, so every + delete that hit this guard fell through to a server error. You now get the actionable + message, and "deactivate it instead" is what it says to do. +- **Round-robin booking no longer picks a host who is unavailable** (#146). A rotation + booking could assign a host who cannot take the slot; such a host is now skipped. +- **The dashboard stops advertising events you have switched off.** "Your booking links" + listed archived and deactivated event types. They still answer their booking URL, so the + list read as live and invited bookings for meetings you had turned off. +- **NS8 module images publish for both architectures.** The release step assembled the + multi-arch manifest from the runner's local container storage, which on the release + runner did not contain the images it had just built, so no module release has ever + published a correct multi-arch image. Arches are now read from the registry, where the + build already put them. Releases are additionally gated on what actually reached the + registry — architecture, the `org.nethserver.images` label, and that the app image the + label names is itself multi-arch — so an amd64-only publish fails the build instead of + shipping quietly. + +### Changed +- **NS8 install docs state what `:latest` really is.** The NethServer module's `:latest`, + `:0.10` and `:0.10.1` are one amd64-only build: fine on amd64 nodes, and it fails on + arm64 (a Pi 5, for example). That release predates multi-arch publishing, so each + architecture was pushed straight onto the public tags. `:edge` is correct on both. The + docs also say plainly that arm64 has only been exercised under CPU emulation, not on + real hardware. + +## [0.11.0] - 2026-10-15 + +### Added +- **Directory pages can list event types in a deliberate order.** Set *Directory order* on + an event type and public person and team pages sort by it, so the meeting you want booked + first is the one a visitor sees first. Lower numbers come first, equal numbers sort by + name, and an event with no order set keeps its existing position. +- **Public pages and emails can carry your business branding.** Set once under Settings → + Branding: a business name, a logo, a banner, and your Privacy and Terms URLs. Both images + have an opacity control, and the logo's height is set for email (public pages scale it + up). Applied to the directory, booking and manage pages, and to emails. +- **Calendar invites can come from Calnode instead of the host's calendar.** A new + per-event-type setting, *Calendar invite → Sent by*. The default is unchanged: the host's + connected calendar invites the booker, from the host's own address. Choose *Calnode* and + the booker's invite comes from your workspace's email sender (Settings → Email) instead, + so no host's personal address reaches them, and a team can book under one name. Hosts + still get the meeting, with its Meet/Teams link, on their own calendar. Needs email set + up. Existing bookings keep the way they were invited. +- **RSVP tracking for invites Calnode sends.** With Resend receiving set up (Settings → + Email → RSVP tracking), a booker's Yes / No / Maybe is read from their calendar reply, + shown on the booking, and sent as a new `booking.rsvp` webhook event. Calnode sets up the + Resend webhook itself (manual steps as a fallback) and needs a full-access Resend API + key. Each invite gets a private reply address, and an answer only counts when Resend + verified it came from that booking's booker. + +### Security +- **Go toolchain 1.26.9, and the Docker image builds with Go 1.27.2.** Both close 12 + published Go standard-library vulnerabilities that `govulncheck` reports as reachable + from Calnode: GO-2026-6599 and GO-2026-6600 (`html/template`); GO-2026-6603, + GO-2026-6610, GO-2026-6611, GO-2026-6612 and GO-2026-6617 (HTTP/2 in `net/http`); + GO-2026-6605, GO-2026-6609 and GO-2026-6613 (`net/http`); GO-2026-6607 (`crypto/tls`); + and GO-2026-6608 (`net/textproto`). `go.mod` moves from `toolchain go1.26.6` and the + builder image from `golang:1.27.1-alpine`. No code or dependency change. + +## [0.10.1] - 2026-09-29 + +### Added +- **NethServer 8 module (`packaging/ns8`).** Calnode ships as a one-click NS8 + app: host-based Traefik route with cluster TLS, SQLite on a persistent + volume, generated encryption key preserved across reconfigures, and release + tags that pin module and app to the same version. Preview-grade: installed + and configured paths are covered by robot tests but no live node has run + one end to end yet — see `packaging/ns8/README.md`. + +### Fixed +- **Public booking lookup is now rate-limited.** `GET /v1/bookings/{id}` needs no + auth by design (it carries no PII), but it was the one public route outside + any rate limiter — an enumeration free-for-all. It shares the manage-token + bucket now. +- **CalDAV connect failures no longer distinguish error classes.** Refused vs + timeout vs TLS vs auth failures were surfaced verbatim to the member form, a + usable LAN-scan oracle. The form returns one generic message and logs the + detail server-side; timing side-channels are accepted as residual. +- **CalDAV no longer sends Basic credentials on cross-origin redirects.** A + redirect to another origin now drops the Authorization header instead of + forwarding the app password to a server the user never configured. +- **A short `GOOGLE_CLIENT_ID` no longer panics at boot.** The startup log + sliced the first 20 characters unconditionally; unset-or-short values + crashed the process instead of logging the usual "not configured" warning. +- **Video room explains host takeover instead of silently dropping controls.** + Sharing the host link lets anyone take over as host, and the demoted side + just lost its controls with no explanation. Host-link holders are now warned + pre-join not to share it, and a demotion names who took over with a reclaim + hint for owners. + +## [0.10.0] - 2026-09-27 + +### Security +- **Moving or cancelling a CalDAV booking no longer sends another account's app password + to the server holding the event.** A host can connect several CalDAV accounts, and + rescheduling or cancelling authenticated as whichever account was the destination at + the time, not the one the event was written to. After a host moved their destination + from an account on one server to an account on another, every reschedule or cancel of + an older booking sent the new account's username and app password to the old account's + server. A server that refused them left the calendar unchanged and the reconciler + retried, sending them again every sweep for a cancelled booking and until the end time + for a moved one. A server that answered 404 instead was taken at its word: the event + counted as already gone and stayed where it was. + + Update and cancel now authenticate as the account that holds the event, found from what + the booking stored: the calendar recorded at creation, or failing that the connected + calendar whose URL contains the event's URL (same scheme, host and port). If no single + account can be established, nothing is sent, and the reconciler logs one warning and stops + retrying that event rather than refusing it again every sweep; the event stays where it + is. Hosts who moved a + CalDAV destination between accounts on different servers should consider rotating the + app password of the account they moved to. +- **A booker's email address is validated where it enters, and is never written into an + email header unparsed.** The `To:` header was the one header field assembled from + caller-supplied input with no encoder in front of it: `buildRaw` parsed each recipient + with `net/mail` and, when that failed, appended the raw string anyway, so a CR/LF inside + an address would have ended the `To:` line and started a header of the sender's + choosing. Subject and the `From` display name already go through `mime.QEncoding` + (which renders CR/LF as `=0D`/`=0A`) and attachment filenames through `%q`. + + Not exploitable as shipped: `Send` issues `c.Rcpt(to)` before `DATA`, and `net/smtp` + runs `validateLine` inside `Rcpt`, refusing any CR or LF - so a CRLF-bearing address + aborted the exchange at `RCPT TO` and never reached the body. That protection is + incidental, lives one call away in the standard library, and covers only this + transport. `buildRaw` now refuses an unparsed address (and an empty recipient list) + outright, returning `mailer.ErrInvalidRecipient` before anything is dialed; the + rejected value is kept out of the error, which is logged. + + The public booking paths validate at intake rather than relying on the mailer: the REST + handler (`POST /v1/bookings`) answers 400 "email must be a valid email address", and + the shared core behind the conversational assistant's `book` tool and the MCP + `create_booking` tool checks the address before it persists anything. Both store the + parsed bare address, so a pasted `Bob ` is recorded as + `bob@example.com` - a small deliberate behaviour change, matching what the hourly + throttle, the per-invitee cap and the `To:` header already assume they hold. +### Added +- **Sign out everywhere.** `POST /v1/auth/sessions/revoke-all` ends every session you + have except the one you asked from, so losing a laptop no longer means waiting out a + 30-day cookie. Pass `{"user_id": "..."}` and an admin can do the same for someone + else: an admin may revoke a member, only the owner may revoke another admin, and the + owner's own sessions can only be ended by the owner. + + It also revokes that person's MCP OAuth tokens, which is the part that makes it an + offboarding tool rather than a convenience. A connected agent authenticates with a + bearer token and not the session cookie, so ending the sessions alone would have left + it holding exactly the access that was just withdrawn. +- **Canadian French (`fr-CA`) on the booker-facing surfaces.** A visitor whose browser asks + for `fr-CA` now gets Canadian French rather than the France copy; `fr` and `fr-FR` are + unaffected. It is the first regional locale, and a separate file rather than a fallback + because the differences are real: `courriel` rather than `e-mail`, `reporter`/`report` + rather than `reprogrammer`, `renseignements personnels` (the Quebec statutory term) rather + than `données personnelles`, no space before `!` `?` `;` where France puts one, and CLDR + itself spells July `juill.` here against `juil.` in France. + + ⚠️ **The wording is an unreviewed draft**, like every non-English locale in this + repository: the structure is verified by the same three guards (same keys, printf-verb + parity, date tables cross-checked against CLDR), but no native Canadian French speaker has + read the copy. Corrections are welcome and easy to merge — see CONTRIBUTING. + +- **`FRAME_ANCESTORS`: embed the admin UI in your own console.** Space-separated origins + (`https://console.example.com 'self'`); when set, `/admin/` sends + `Content-Security-Policy: frame-ancestors `. The public booking pages are + untouched and still deny framing outright — this is about the console, not the pages + that take card details. + + Two deliberate refusals. An entry that is not `https://host[:port]` or `'self'` stops + the app booting rather than being ignored, because a browser drops a source list it + cannot parse, which would leave the admin UI *more* embeddable than the setting being + unset. And no `X-Frame-Options` is sent beside it: that header has no allow-list form, + so the only value it could carry is `SAMEORIGIN`, which browsers honour instead of the + CSP and would break the embedding this exists for. + +- **Per-person and team booking pages.** A handle set in profile settings buys + `/u/{handle}`: every public, active event type the person owns or hosts, with + duration, location and price per type. Teams get `/team/{slug}` with their types + plus a member roster linking to each member's page. Archived users 404, and handles + are slugified, unique, and cleared by blanking the field. Answers + [#94](https://github.com/Calnode/calnode/issues/94). +- **Custom-hours date overrides take several blocks.** A date override used to hold a + single window while weekly rules take as many as you like, so a split day (open + morning and afternoon around a mid-day appointment) had no honest expression. Dates + now hold any number of custom blocks; a blocking override replaces the customs on + its date, an exact duplicate still 409s, and the list flags blocks that overlap + and merge. Answers + [#95](https://github.com/Calnode/calnode/issues/95). +- **SMTP through a separate relay address.** Some providers require the SMTP session + to open against a relay host distinct from the mail domain: the relay address is + now configured explicitly instead of derived. Thanks + [@marijnbent](https://github.com/marijnbent) ([#65](https://github.com/Calnode/calnode/pull/65)). + +### Fixed +- **SMTP email works with servers that offer AUTH LOGIN but not AUTH PLAIN.** + Calnode previously used PLAIN for every authenticated SMTP connection, which + failed against servers such as Microsoft 365 that advertise `LOGIN XOAUTH2` + after STARTTLS. It now prefers PLAIN when offered and uses LOGIN otherwise. + LOGIN requires TLS, and servers offering neither supported method return a + clear error. +- **Rescheduling on the manage page works again.** Its slot list called an `esc()` + helper that only ever existed on the booking page, so any day with availability + threw before rendering and could not be rescheduled. The helper is now defined + on both surfaces. +- **Removing a member no longer 500s on booking history, and no longer leaves + their MCP tokens valid.** `booking_hosts.user_id` had no `ON DELETE` action; + both it and the token tables now cascade. The upcoming-booking guard covers + group seats too, and primary-host history (past or present) blocks with a 409 + naming reassignment instead of failing in SQL. +- **Cancelling a paid booking cannot double-refund.** The refund row is claimed + with a conditional update before Stripe is called, the call carries an + idempotency key, and a Stripe failure reverts the claim so a later cancel + retries instead of silently keeping the money. +- **A lost confirmation email is retried once and then flagged, not just logged.** + Confirmation sends get one retry; a final failure sets `confirm_failed` on the + booking, surfaced on the booking JSON for follow-up. +- **The slots response says when its busy data is incomplete.** A provider outage + used to read as free time while booking stayed fail-closed, offering slots that + could not be sold. Slots now carry `degraded: true`, and all three booking + surfaces show a warning. +- **Rescheduling or cancelling after a destination change acts on the provider that + holds the event.** The booking stored which calendar its event was written to but + not which provider wrote it, so a destination move handed old event ids to a + provider that never issued them: silent orphans one way, endless reconciler + retries the other. Each host event now stamps its provider at creation; updates + and cancels prefer the stamp, then id recognition (CalDAV URLs), then the current + destination for pre-stamp rows. Answers + [#58](https://github.com/Calnode/calnode/issues/58). +- **The calendar picker no longer drops calendars past the first page.** Microsoft + requested `$top=100` calendars once and Google `maxResults=250` once, so anything + beyond silently vanished: unreachable for conflict checks and unchoosable as the + destination. Both listings now follow `@odata.nextLink` / `nextPageToken` to the + end. Answers [#59](https://github.com/Calnode/calnode/issues/59). +- **The Zoom setup text no longer promises that an unpublished app works for "your own + team".** Zoom only lets users inside the Zoom account that owns an unpublished app + authorize it, so a member with their own Zoom account was refused on a Zoom error page + that Calnode never sees. Settings → Zoom now says so, and `DEPLOY.md` gains a Zoom + section with Zoom's three ways around it (same account, beta sharing, publishing) and + the link-only fallback that needs no Zoom app. Answers + [#35](https://github.com/Calnode/calnode/issues/35). + +- **A CalDAV event is moved or deleted even after the destination moves to Google or + Microsoft.** The event was handed to the new destination's provider, which could not + find an id it never issued, so the event stayed on the CalDAV calendar at its old time, + or after its booking was cancelled. A CalDAV event id is the event's URL, which is now + enough to route it back to the CalDAV provider whatever the destination is. +- **Microsoft calendars can be chosen as the one bookings are written into.** Since 0.5.0 + the calendar picker marked every Microsoft calendar "(read-only)" and disabled its Book + option. The calendar list read Graph's `canEdit` but left it out of `$select`, so Graph + never returned it and every calendar decoded as not writable. It is now requested, and a + test fails if that request omits any property the response decodes. +- **Cancellations name who cancelled.** The bookings page sent a hardcoded "cancelled by + admin" reason that the server stored verbatim, so a member cancelling their own booking + emailed as an admin cancel. The server now composes "Cancelled by {name}" from the + authenticated caller and ignores the client string; booker manage-link and system + cancels keep their own reasons. Answers + [#90](https://github.com/Calnode/calnode/issues/90). +- **The dashboard lists every booking link instead of crowning one.** With several event + types it showed a single "Your booking link" pointing at whichever came first. One + event type keeps the single-link box; several render a per-type list with names, copy + buttons, and the profile page link once a handle is set. Answers + [#93](https://github.com/Calnode/calnode/issues/93). +- **A rescheduled LiveKit meeting gets fresh join links.** Room names are stable but the + signed URLs expire past the meeting end, so rescheduling past the original date left + every stored link dead. Reschedule now re-mints both links on the same room with an + expiry past the new end before the emails go out. Answers + [#98](https://github.com/Calnode/calnode/issues/98). +- **A second Microsoft account no longer replaces the first.** Entra tenants omit the + `preferred_username`/`email` claims by default, so the account identifier came back + empty and saving the new connection deleted the old one. Calnode now requests the + `profile` and `email` scopes, falls back to the stable `tid:oid` pair, and refuses the + connection with an actionable error rather than storing an empty dedup key. Answers + [#99](https://github.com/Calnode/calnode/issues/99). +- **External calendars are rechecked before a booking is created.** Availability was + computed, then the booking was written without re-reading the providers, so an event + landing in the gap double-booked. Creation now rechecks and fails closed with + provider failures distinguished. Thanks + [@marijnbent](https://github.com/marijnbent) ([#66](https://github.com/Calnode/calnode/pull/66)). + ## [0.9.0] - 2026-09-10 ### Added diff --git a/CLAUDE.md b/CLAUDE.md index 234d4ad1..e1c17453 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -134,13 +134,15 @@ client SDK**, not Svelte. ## Languages (i18n) - data-driven, adding one touches no code Public surfaces (book.html, manage.html, embed.js, the four emails, calendar invite -title/description) are translated. **NOT translated: the admin SPA, the LiveKit room** -(`livekit-room.html`/`.js`, ~45 hardcoded strings - it has its own asset pipeline and shares -no string plumbing with the Go templates), and admin-authored content (event names, -descriptions, questions, custom email copy). Locale is resolved per request from +title/description) are translated. The **admin SPA has its own separate catalog** +(`frontend/src/lib/i18n/`, client-side, `en` + `fr`, English fallback per key) — a +different system from the booker locales here; see ARCHITECTURE §23. **NOT translated: +the LiveKit room** (`livekit-room.html`/`.js`, ~45 hardcoded strings - it has its own +asset pipeline and shares no string plumbing with the Go templates), and admin-authored +content (event names, descriptions, questions, custom email copy). Locale is resolved per request from `Accept-Language` + a `?lang=` override + the operator's fallback setting (`internal/handler/i18n.go`), and the booker's locale is stored on the booking so later -reminders match. Ships `en es fr de it pt nl sv`. Full detail: ARCHITECTURE §23. +reminders match. Ships `en es fr fr-CA de el it nl pl pt sv`. Full detail: ARCHITECTURE §23. **Adding a locale = adding `internal/i18n/locales/.json`.** Nothing else. `init()` globs the directory; the switcher, the fallback dropdown and the public API payload all read @@ -237,3 +239,15 @@ at an unconditional `"zoom"`. - `pnpm` (not npm). Use `pnpm exec ` for local binaries. - Verify changes against the real app, not just builds — this codebase has been bitten by CSS that compiles fine but renders wrong. + +## Distribution packaging (packaging/) + +- One channel per directory: `packaging/ns8/` is the NethServer 8 module + (imageroot actions, systemd unit, Vue settings UI, robot tests). Future + channels (Umbrel, Coolify, TrueNAS, etc.) get siblings, never a mega-PR. +- The NS8 module is a thin wrapper around the published app image, built by + `.github/workflows/ns8-module.yml` with the same tag scheme as + `docker-publish.yml`. Release tags pin module and app to the same version. +- The app image ref lives in the `org.nethserver.images` label; at install + the cluster exposes it as `${CALNODE_IMAGE}` and the unit + configure read + it from there. Never hardcode an app tag in `packaging/ns8/`. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 148c9d24..e50973bf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -74,33 +74,68 @@ prefer additive, nullable/defaulted columns. ## Translations -Calnode ships 8 locales (`en es fr de it pt nl sv`) across the booker-facing surfaces: +Calnode ships 11 locales (`en es fr fr-CA de el it nl pl pt sv`) on the booker-facing surfaces: booking page, manage/reschedule page, embed widget, the four emails, and the calendar -invite. The admin UI and the built-in video room are English-only. +invite. The admin SPA is translated separately (`en` + `fr` today). The built-in video +room is still English-only. **Translation PRs are very welcome** - both new languages and corrections to existing -ones. **Every non-English locale is currently a machine draft with no native review**, so -if you speak one of them, fixes are genuinely valuable and will be merged readily. Small, -single-language PRs are easier to review than sweeping ones. - -**Adding a language is adding one file:** `internal/i18n/locales/.json`. No Go, -template, or frontend change is needed - `init()` globs the directory, and the language -switcher, the fallback-language setting and the public API payload all read -`SupportedLocales()`. - -1. Copy `internal/i18n/locales/en.json` and translate the values. Keep every key, keep - the key order (it keeps diffs readable), and keep printf verbs (`%s`, `%d`, `%q`) - intact - reordering them is fine with indexed verbs (`%[2]s`), dropping them is not. -2. Name the file **BCP-47 canonical**: `pt-BR.json`, never `pt-br.json`. -3. `dow_short_*`, `month_short_*`, `date_format` and `clock_format` are data, not code - +ones. **Most non-English locales are machine drafts with no native review, and none has +had a full native read** (Polish was contributed and grammar-checked by a native +speaker), so if you speak one of them, fixes are genuinely valuable and will be merged +readily. Small, single-language PRs are easier to review than sweeping ones. The admin +French catalog was written by a native speaker. + +**Adding a booker-facing language is adding one file, and it does not have to be complete:** +`internal/i18n/locales/.json`. No Go, template, or frontend change is needed - +`init()` globs the directory. The language switcher, the fallback-language setting and the +public API payload all read `SupportedLocales()`, which only lists locales at or above the +coverage floor (see below). + +1. Copy `internal/i18n/locales/en.json` to `internal/i18n/locales/.json` and translate + the values. Delete the keys you have not got to yet if that helps; a missing key falls + back to English at lookup time, so a partial file is mergeable and useful. +2. Keep the keys spelled exactly as English has them. A key that is not in `en.json` fails + the build (`TestLocalesHaveNoUnknownKeys`), because it is always a typo and renders for + nobody. +3. Keep printf verbs intact: `%s`, `%d`, `%q`. Reordering is fine with indexed verbs + (`%[2]s`); dropping one is not. In the admin catalogue the placeholders are `{name}`. +4. Name the file **BCP-47 canonical**: `pt-BR.json`, never `pt-br.json`. +5. `dow_short_*`, `month_short_*`, `date_format` and `clock_format` are data, not code - Go has no locale date tables. Match CLDR; the test below checks you against `Intl`. -4. Run `go test ./internal/i18n/`. Three guards will tell you exactly what is wrong: - key parity, printf-verb parity (with `fmt` as the oracle), and a CLDR cross-check of - the date tables (needs `node` on PATH; skipped if absent). -5. Eyeball the result: `go run ./cmd/calnode`, then +6. Run `go test ./internal/i18n/` and `make i18n-coverage` to see where you stand. +7. Eyeball the result: `go run ./cmd/calnode`, then `http://localhost:3000/book/?lang=` and the manage page. Long words overflowing buttons is the usual surprise; check mobile width too. +**When a language is offered.** A language appears in the switcher, and is matched from +`Accept-Language`, only at or above 80% of the English keys (`i18n.MinCoverage`). Below the +floor it still resolves with `?lang=`, so you can check your work in place, and +startup logs which languages are withheld. The floor exists because a mostly-English +booking page is worse for a booker than English is. + +**What passing tests does not prove.** They check structure, not wording. Before a language +is advertised, a speaker should read the booking page, the manage page and the four emails +end to end. The usual misses are literal calques, agreement when two translated sentences +are spliced together, and plurals written as flat strings. + +Terminology is agreed in [`docs/i18n-glossary.md`](docs/i18n-glossary.md). Add your +language's column there rather than inventing a second word for something that already has +one. + +**Adding an admin-UI language** is a small frontend change (the catalogs are not globbed): + +1. Copy `frontend/src/lib/i18n/en.json` to `.json` and translate the values. Keep + every key and any `{placeholders}` (including `{console}` / `{email}`-style link + slots rendered by `LinkedText` — do not turn catalog values into HTML). English is + the source of truth; missing keys fall back to English at runtime. +2. Register the new file in `frontend/src/lib/i18n/catalog.ts` (`catalogs` + `ADMIN_LOCALES`). +3. Name the code the same way as booker locales: BCP-47 primary tag (`fr`, `de`). +4. The operator picks the language in Settings → Profile → Preferences (stored in + `localStorage`, with `navigator.languages` as the first-visit fallback). +5. Run the catalog tests (`node --experimental-strip-types --test src/lib/i18n/catalog.test.ts` + from `frontend/`). `pnpm test:visual` also runs the same assertions via Vitest. + Background and the full list of limitations (2-form plurals, no RTL) are in [ARCHITECTURE.md §23](docs/ARCHITECTURE.md). diff --git a/DEPLOY.md b/DEPLOY.md index 3ad7cbb2..35cfa98d 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -14,13 +14,53 @@ small Alpine runtime) and published to GHCR: Or build it yourself with `docker build -t calnode .`. -This guide covers a generic Docker deploy and a step-by-step **Railway** deploy +This guide covers a standalone binary, a generic Docker deploy and a step-by-step **Railway** deploy (the current reference host). +## Standalone binary + +Download `calnode__linux_amd64.tar.gz` (x86-64) or +`calnode__linux_arm64.tar.gz` (ARM64), plus `checksums.txt`, from the same +[GitHub release](https://github.com/Calnode/calnode/releases). Each archive contains +the same static executable as the corresponding container image, with the admin +UI and timezone database embedded, and the Apache-2.0 license. No Go, Node or Docker +installation is needed to run it. + +For example, after downloading the amd64 archive and checksums for your chosen release: + +```bash +version=X.Y.Z # replace with the downloaded release version, without the v prefix +sha256sum --check --ignore-missing checksums.txt +tar -xzf "calnode_${version}_linux_amd64.tar.gz" +mkdir -p data +export CALNODE_ENCRYPTION_KEY="$(openssl rand -hex 32)" +export CALNODE_RECOVERY_SECRET="$(openssl rand -hex 32)" +BASE_URL=http://localhost:3000 DATABASE_URL=sqlite://./data/calnode.db ./calnode +``` + +Save both generated secrets before restarting; reuse them on subsequent starts and +keep the recovery secret separately. For production, set `BASE_URL` to your HTTPS +address, use a persistent data directory, and place the process behind a +TLS-terminating proxy that preserves `Host`. The Linux host needs a CA certificate +store for outbound HTTPS. Run the process under a service manager for automatic restarts. + +The archive does **not** include Litestream or the container entrypoint. Setting +`LITESTREAM_REPLICA_URL` alone will not start backups or restore a database when running +the binary directly; configure Litestream separately or use another SQLite-aware +backup method. The email, calendar and other integration settings below still apply. + --- ## 1. Configuration (environment variables) +> **Settings saved in the UI win over environment variables.** Email (SMTP/Resend) and +> Google OAuth credentials are stored in the database. Environment variables are read only +> when nothing is stored: on first boot they *seed* the database, and from then on the +> stored values take precedence. Changing an env var after that has no effect until you +> clear the matching setting in Settings → Email / Settings → Google. Calnode logs a +> warning at startup naming every variable it is ignoring, so this is visible rather than +> silent. + | Variable | Required | Default | Notes | |---|---|---|---| | `CALNODE_ENCRYPTION_KEY` | **prod: yes** | — | KEK input (Argon2id). **Required when `BASE_URL` is https** — the app refuses to start without it. Use a long random string: `openssl rand -hex 32`. **Losing it makes encrypted data unrecoverable** unless you set the recovery secret below. | @@ -29,13 +69,15 @@ This guide covers a generic Docker deploy and a step-by-step **Railway** deploy | `PUBLIC_BASE_URL` | no | = `BASE_URL` | Booker-facing host for booking links/emails, if different from the identity host. | | `DATABASE_URL` | no | `sqlite://./data/calnode.db` | Point at the persistent volume, e.g. `sqlite:///data/calnode.db`. | | `PORT` | no | `3000` | The app listens on `$PORT`. Many platforms inject their own (Railway injects `8080`) — let them. | -| `EMAIL_SMTP_HOST` / `_PORT` / `_USER` / `_PASS` | no¹ | — / `587` | SMTP. Can also be set later in Settings → Email (DB-stored, encrypted). | +| `EMAIL_SMTP_HOST` / `_PORT` / `_USER` / `_PASS` | no¹ | — / `587` | SMTP. Seeds Settings → Email on first boot; once stored there, the database value wins (see the precedence note above). | +| `EMAIL_SMTP_CONNECT_HOST` / `EMAIL_SMTP_CONNECT_PORT` | no | SMTP host / port | TCP relay address, loaded at startup. Applies to environment and database SMTP settings; TLS and authentication still use the SMTP host. | | `EMAIL_SMTP_TLS` / `_STARTTLS` | no | `false` | `STARTTLS` for 587, implicit `TLS` for 465. | | `EMAIL_FROM_ADDRESS` / `EMAIL_FROM_NAME` | no | `bookings@localhost` / `Calnode` | The From identity. | -| `GOOGLE_CLIENT_ID` / `GOOGLE_CLIENT_SECRET` | no | — | Google sign-in + calendar. Can also be set in Settings → Google OAuth. | +| `GOOGLE_CLIENT_ID` / `GOOGLE_CLIENT_SECRET` | no | — | Google sign-in + calendar. Seeds Settings → Google OAuth on first boot; once stored there, the database value wins (see the precedence note above). | | `LITESTREAM_REPLICA_URL` | recommended | — | Enables continuous SQLite backup (see §6). | | `COOKIE_SECURE` | no | https→true | Override cookie Secure flag; defaults from `BASE_URL` scheme. | | `TRUSTED_PROXY_CIDRS` | no | — | Comma-separated CIDRs (a bare address = one host) whose `X-Forwarded-For` is believed when keying per-IP rate limits, e.g. `10.0.0.0/8`. Include a fronting CDN's own ranges so the walk steps over its edge and lands on the visitor. Unset ⇒ the header is ignored and the limit keys on the TCP peer, so behind a CDN every visitor shares one bucket. **Only list networks you control**: anything in the list can name any client IP it likes. Single-value vendor headers (`CF-Connecting-IP`, `X-Real-IP`) are never read, from any peer. | +| `FRAME_ANCESTORS` | no | — | **Space**-separated origins allowed to embed the **admin UI** in a frame, e.g. `https://console.example.com 'self'`. Each entry must be `https://host[:port]` or `'self'` — anything else and **the app refuses to start**, because browsers drop a policy they cannot parse. Does not affect the public booking pages, which always deny framing. ⛔ **Same-site only in practice**: `calnode_session` is `SameSite=Lax`, so a cross-site parent can frame `/admin/` and still never be sent the cookie — it gets the login screen inside the frame. Use `'self'` or a host sharing `BASE_URL`'s registrable domain. | | `LOG_LEVEL` | no | `info` | `debug`/`info`/`warn`/`error`. | ¹ Email is optional to boot, but bookings won't send confirmations until SMTP is configured (env **or** the admin UI). Precedence is **env var > DB setting > default**. @@ -125,6 +167,32 @@ API key takes precedence over the SMTP fields; clearing it ("Remove key") switch > Email settings are stored **per instance** in that instance's DB — staging/prod/local each need their own. +### RSVP tracking (optional, Resend only) + +For event types whose calendar invite is **sent by Calnode** (event type → Calendar invite), +Calnode can record whether the booker accepted, declined or said maybe. The answer shows on +the booking and fires a `booking.rsvp` webhook. + +It needs a **Full access** Resend API key (Settings → Email): Calnode uses it to set up the +webhook and to read the replies. A sending-only key can do neither. + +1. In Resend → Domains, enable **receiving** on a subdomain, e.g. `reply.yourdomain` (one MX + record). Use a subdomain: the MX record would take over your main domain's mail. +2. Settings → Email → RSVP tracking: enter an address on that subdomain (e.g. + `rsvp@reply.yourdomain`) and save. +3. Calnode then creates the `email.received` webhook in your Resend account and stores its + signing secret (or reuses the webhook if one already points at this instance). It needs + the instance to be reachable at a public `https://` `BASE_URL`. + +If automatic setup fails, the page says why and shows the manual steps: in Resend → Webhooks, +add `https:///v1/email/inbound/resend` for `email.received`, then paste its +signing secret (`whsec_…`) into the RSVP tracking section. + +Each invite is organized by its own private variant of that address, so no mailbox has to +exist. An answer only counts when Resend verified the sender (DKIM or DMARC pass) and the +sender is that booking's booker. Bookings made before you switch it on keep the organizer +they were invited with. + --- ## 5. Google OAuth (sign-in + calendar) @@ -248,6 +316,22 @@ latest replica from object storage before starting the app. To **prove the round-trip without touching the live DB**, restore to a scratch path (never `/data/calnode.db`) and confirm it's a valid SQLite file. +> **The replica holds the database, not the encryption key.** If you deployed +> without setting `CALNODE_ENCRYPTION_KEY`, the app generated a key at first start +> and wrote it to `calnode.key` next to the database (`/data/calnode.key` in the +> container). Litestream does not replicate that file, so restoring the database +> from the replica on its own will not start: the restored rows are sealed under a +> key that is gone, and the app exits rather than re-keying your data. Back that +> file up separately, and restore it beside the database. +> +> If a restore does fail this way, delete the `calnode.key` that the failed start +> generated before restoring the real one — the process writes a new key on first +> start, and that file will not unlock the restored database. +> +> Deployments that set `CALNODE_ENCRYPTION_KEY` in the environment (the recommended +> production path, and what the NS8 module does) are unaffected: the key comes from +> the environment, survives a volume loss with it, and no key file is written. + **Non-destructive drill, in the container (zero setup — litestream + creds + config are already there):** ```bash railway ssh --service calnode sh -lc ' @@ -297,7 +381,41 @@ Full setup guide, including recording consent, the AI notetaker, and host contro --- -## 8. First run +## 8. Zoom meeting links + +Optional. With a Zoom app configured in **Settings → Zoom**, each host connects their own +Zoom account (Calendar page) and a Zoom-located booking gets a meeting minted under the +assigned host's account. The settings page shows the exact **Redirect URL** to register +(`https:///v1/zoom/callback`). + +**Who can connect depends on how the Zoom app is distributed, and that is Zoom's rule, +not Calnode's.** A Zoom **General app** that is not published to the Zoom App Marketplace +can only be authorized by users inside the Zoom account that created it. A member who signs +in with their own, separate Zoom account is refused by Zoom before the request ever reaches +Calnode (they land on a Marketplace "Something went wrong" page). Zoom offers three ways +around that, none of them a Calnode setting: + +- **Bring the hosts into your Zoom account.** Members of the app's own Zoom account can + connect an unpublished app. Joining puts their Zoom user under your account's + administration and licensing, so this suits a team that already shares one Zoom + account, not independent people. +- **Beta sharing.** On request, Zoom's review team can approve an authorization URL for + users outside your account: up to 100 of them for a user-level app, valid for 4 weeks + with two further 4-week extensions. It is a test channel, not a permanent one. +- **Publish the app** to the Zoom App Marketplace, which requires passing Zoom's app + review. + +Details: Zoom's [App distribution](https://developers.zoom.us/docs/distribute/) and +[Sharing private and beta apps](https://developers.zoom.us/docs/distribute/sharing-private-and-beta-apps/). + +If none of those fits, a Zoom-located event type still works without any Zoom app: set a +**Zoom link** on the event type and every booking carries that link (one link per event +type, so it suits a personal meeting room rather than a rotation of hosts). The built-in +video rooms (§7) need no per-host account at all. + +--- + +## 9. First run Open `https:///` → it redirects to `/admin/`. On a fresh database you'll be guided through **first-run setup** (create the owner account). Then: @@ -306,7 +424,7 @@ first event type + availability. --- -## 9. Troubleshooting +## 10. Troubleshooting | Symptom | Likely cause | |---|---| @@ -315,6 +433,11 @@ first event type + availability. | `ERR_CERT_COMMON_NAME_INVALID` on a new domain | Cert not issued yet — wait; ensure the DNS record is **DNS-only**, not proxied. | | 403 on admin actions behind a proxy | Proxy not forwarding the original `Host` header (CSRF same-origin check). | | OAuth `redirect_uri_mismatch` | Registered URI doesn't match `BASE_URL` + `/v1/...callback` exactly. | +| Connecting Zoom works for you but a member lands on Zoom's "Something went wrong" page | The Zoom app is unpublished and the member's Zoom account is not in the account that owns it (§8). | | Email `550 domain not verified` | From address domain isn't verified with your email provider. | | Logo broken in email when testing locally | Gmail's image proxy can't reach `localhost` — only loads from a public URL. | | Litestream `InvalidAccessKeyId` / 403, log shows `endpoint=""` | `LITESTREAM_ENDPOINT` unset (or the running build predates the endpoint/region config) → Litestream defaults to AWS. Set the **account** endpoint (no bucket) + `region=auto` for R2, and redeploy so the config is live. | + +### SMTP through a TCP relay + +Set `EMAIL_SMTP_CONNECT_HOST` and `EMAIL_SMTP_CONNECT_PORT` to dial a TCP relay instead of the configured SMTP address. Each unset value falls back to the SMTP host or port. The original SMTP host remains the TLS server name and authentication identity; certificate verification stays enabled. These overrides are loaded at startup and apply to both environment and database SMTP settings, including settings reloads and test emails. Restart after changing the relay environment variables. An active relay is logged when the SMTP mailer is configured. The relay must forward the SMTP connection without terminating TLS. diff --git a/Dockerfile b/Dockerfile index e2fece93..e314791b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,23 @@ # syntax=docker/dockerfile:1 +# Base images are pinned by digest (the multi-arch index, so every platform +# resolves). The tag stays beside it for readers and for Dependabot, whose +# docker entry bumps the digest when the tag moves. + # ── Frontend build stage ─────────────────────────────────────────────────────── -FROM node:22-alpine AS frontend-builder +# Built for the BUILD platform, not the target: the output is static JS/CSS that is +# identical for every architecture. Without this pin a multi-arch build (buildx: +# linux/amd64,linux/arm64) runs pnpm install and pnpm build a second time under QEMU +# for arm64, which is slow and occasionally hangs for hours. +FROM --platform=$BUILDPLATFORM node:26-alpine@sha256:8996bb5821d62a8fd9bb27c1cb07462f3fdce6e47d640c6a881ead0b064ce216 AS frontend-builder # Pin pnpm to the version in package.json's `packageManager` field (not @latest) # so CI builds are reproducible and match the committed lockfile. -RUN corepack enable && corepack prepare pnpm@10.32.1 --activate +# +# Installed with npm, not corepack: Node 25+ no longer bundles corepack, so +# `corepack enable` fails on node:26-alpine with "corepack: not found". Installing +# the pinned version directly keeps the same guarantee without that dependency. +RUN npm install -g pnpm@10.32.1 WORKDIR /app @@ -16,7 +28,11 @@ COPY frontend/ . RUN pnpm build # ── Go build stage ───────────────────────────────────────────────────────────── -FROM golang:1.26.6-alpine AS builder +# Also the BUILD platform. CGO is disabled, so Go cross-compiles natively to the +# target arch; there is no reason for this stage to run under QEMU. Running it +# emulated is what made a multi-arch build stall: the arm64 leg spent its time +# interpreting the compiler instead of compiling. +FROM --platform=$BUILDPLATFORM golang:1.27.3-alpine@sha256:d200d2dd76b03a99b52651fd1325aff7dcd35422c35c01bac56571b0507f3deb AS builder RUN apk add --no-cache ca-certificates wget @@ -28,10 +44,10 @@ RUN go mod download COPY . . COPY --from=frontend-builder /app/build ./frontend/build -# Build natively for whatever architecture this stage is running on -# (TARGETARCH is auto-populated by Docker buildx; falls back correctly -# on ARM hosts where the original hardcoded amd64 would produce a -# binary that can't execute at all). +# Build for the TARGET architecture from this (build-platform) stage. buildx +# populates TARGETARCH; with no CGO this is a native cross-compile, not emulation. +# A plain `docker build` on an arm64 host still works: TARGETARCH then matches the +# host, so the binary executes there as before. ARG TARGETARCH # VERSION is passed by docker-publish.yml from the resolved image tag (semver on a # release, "edge"/branch on a plain main push); defaults to "dev" for local builds @@ -53,11 +69,17 @@ RUN wget -qO- \ "https://github.com/benbjohnson/litestream/releases/download/v${LITESTREAM_VERSION}/litestream-v${LITESTREAM_VERSION}-linux-${TARGETARCH}.tar.gz" \ | tar -xz -C /usr/local/bin litestream +# Export the same executable as the container, including its embedded frontend. +FROM scratch AS standalone +COPY --from=builder /build/calnode /calnode +COPY LICENSE /LICENSE + # ── Runtime stage ───────────────────────────────────────────────────────────── # alpine (not scratch) — needed for the shell entrypoint and Litestream. -# No --platform pin here: inherits the build host's native architecture, -# matching whatever TARGETARCH the binary above was actually compiled for. -FROM alpine:3.21 +# No --platform pin: under buildx this defaults to the TARGET platform, which is +# what we want (an arm64 final image for arm64 consumers). Only the two builder +# stages above are pinned to BUILDPLATFORM. +FROM alpine:3.24@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a RUN apk add --no-cache ca-certificates tzdata diff --git a/Makefile b/Makefile index b2975719..63930971 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: frontend backend build +.PHONY: frontend backend build i18n-coverage frontend: cd frontend && pnpm install && pnpm build @@ -7,3 +7,8 @@ backend: frontend go build -o calnode ./cmd/calnode build: backend + +# Per-language translation coverage, for both catalogues. Informational; the tests in +# internal/i18n are the gate. +i18n-coverage: + go run ./cmd/i18n-coverage diff --git a/README.md b/README.md index 7af16c7f..4ce56269 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,13 @@ docker run -p 3000:3000 -v ./data:/data ghcr.io/calnode/calnode:latest ``` The whole app — booking pages, admin UI, SQLite — in one container, with data in -`./data`. With no encryption key set it runs on an ephemeral one (fine for a look; -stored credentials won't survive a restart). **Deploying for real** — HTTPS, a -persistent encryption key, backups — see **[Deploy for real](#deploy-for-real)** below, -or the full **[DEPLOY.md](DEPLOY.md)**. +`./data`. The first start generates an encryption key and writes it to +`./data/calnode.key`, so stored credentials survive a restart. **Back that file up +with the database**: it is the only thing that can decrypt them, and Litestream +replicates the database, not the key. + +**Deploying for real** — HTTPS, backups, and managing the key yourself — see +**[Deploy for real](#deploy-for-real)** below, or the full **[DEPLOY.md](DEPLOY.md)**. --- @@ -147,6 +150,12 @@ bookings they host. (The stdio subcommand is the local operator → full access. ## Deploy for real +**Without Docker:** [GitHub releases](https://github.com/Calnode/calnode/releases) +include standalone Linux amd64 and arm64 archives, each containing the static +`calnode` binary and its license, alongside SHA-256 checksums. See +[running the standalone binary](DEPLOY.md#standalone-binary) for setup and backup +differences from the container. + ```bash docker run -d -p 3000:3000 \ -e BASE_URL=https://booking.example.com \ @@ -183,6 +192,7 @@ domains, Resend email, Google & Microsoft OAuth, Litestream backups, troubleshoo - **CalDAV calendars** — iCloud / Fastmail / Nextcloud via app-password (free/busy + event write-back) - Public booking + self-serve **reschedule/cancel** via signed manage links - HTML branded email (logo, banner, business name, size/opacity) with add-to-calendar links +- Per-event-type **calendar invite sender**: the host's calendar, Calnode from your workspace address, or no one (your own system sends it) - REST API (88 endpoints) + API keys; **HMAC webhooks** with per-webhook payloads + delivery log - **Native MCP server** (10 tools incl. meeting notes + transcript; stdio via `calnode mcp` + Streamable HTTP at `/mcp`) - **Conversational booking** ("Book by chat" on the booking page + embed widget; BYO-LLM, off by default) @@ -190,13 +200,14 @@ domains, Resend email, Google & Microsoft OAuth, Litestream backups, troubleshoo - **Zoom** — per-host OAuth; a Zoom-located booking mints a meeting under the assigned host's account - **Built-in video meetings (LiveKit)** — in-browser rooms as a booking location (no app or account for guests); host controls (end-for-all, hand-off **and reclaim** host, attendee screen-share toggle), **meeting recording** straight to your own **Litestream backup bucket** (the same one you already use for DB backup — no extra storage to provision) with in-app downloads, **recording consent** (notice + consent-or-leave), and an **AI notetaker** (Deepgram transcript → LLM notes). Headless-consumable: MCP `get_meeting_notes`/`get_transcript` + `recording.completed`/`transcript.ready`/`notes.ready` webhooks. BYO LiveKit endpoint (Cloud or self-hosted); configured in Settings → Video — see [docs/VIDEO.md](docs/VIDEO.md) -- **8 languages** on every booker-facing surface - booking page, manage/reschedule page, +- **11 languages** on every booker-facing surface - booking page, manage/reschedule page, embed widget, all four emails, and the calendar invite: **English · Spanish · French · - German · Italian · Portuguese · Dutch · Swedish**. Picked from `Accept-Language` with a - footer switcher and an operator-set fallback language; the booker's choice is stored on - the booking, so reminders arrive in the language they booked in. Adding a language is - adding one JSON file - no code change. *(The admin UI and the built-in video room are - English-only. Non-English translations are machine drafts without native review - + Canadian French · German · Greek · Italian · Dutch · Polish · Portuguese · Swedish**. Picked from + `Accept-Language` with a footer switcher and an operator-set fallback language; the + booker's choice is stored on the booking, so reminders arrive in the language they + booked in. Adding a language is adding one JSON file - no code change. *(The admin UI and the built-in video room are + English-only. Most non-English translations are machine drafts and none has had a full + native review; Polish was contributed and grammar-checked by a native speaker - corrections by PR are very welcome.)* - Embeddable booking widget (Shadow-DOM web component; inline + popup) - Members, roles (owner/admin/member), email-token invitations diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..e3b7badf --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,51 @@ +# Security policy + +## Supported versions + +Calnode is pre-1.0, and fixes go onto the latest release line only. There are no +backports to earlier `0.x` minors. + +| Version | Supported | +| ------- | --------- | +| 0.9.x | Yes | +| < 0.9 | No | + +If you are running an older tag, the fix for a reported issue will be an upgrade. + +## Reporting a vulnerability + +Please report privately, through GitHub's private vulnerability reporting: open the +repository's **Security** tab and use **Report a vulnerability**. That opens a private +thread visible only to you and the maintainers. + +Please do not open a public issue, a pull request, or a discussion for a security +report. A public issue is a disclosure, and it is one made before there is anything for +people to upgrade to. + +## What to include + +Enough to reproduce it. Usually that is: + +- what the problem is, and what an attacker gets out of it; +- the version, tag, or commit you tested; +- how you are running it (Docker image, `go build`, behind which proxy) and anything + non-default in your configuration; +- the steps, request, or proof-of-concept that triggers it; +- what you expected to happen instead. + +If you are not sure whether something is a vulnerability, report it anyway and say so. +An unclear report is easier to deal with than one that never arrives. + +## What to expect + +- **An acknowledgement within a few days.** If you have not heard anything after a week, + please post a follow-up on the same private thread in case it was missed. +- **Then either a fix or an explanation.** If we agree it is a vulnerability, we will + tell you roughly when a fix will land and let you know when it ships. If we do not + think it is one, we will say why rather than leaving the report open. +- **A public advisory when the fix is released**, through GitHub Security Advisories, so + people running Calnode know what they are upgrading for. +- **Credit, if you want it.** Tell us the name or handle to use, or tell us you would + rather stay anonymous. Either is fine. + +Please give us a reasonable chance to ship a fix before publishing the details. diff --git a/audit/claims.yaml b/audit/claims.yaml index 79aea672..eb819e32 100644 --- a/audit/claims.yaml +++ b/audit/claims.yaml @@ -263,6 +263,12 @@ claims: - "grep -rn 'requireAdmin' internal/handler — every admin-only handler grants workspace-wide access; there is no per-resource permission matrix to misconfigure or drift out of sync." + - "internal/handler/event_type_hosts.go's canManageEventType — owner or + IsAdmin, the one rule behind every event-type edit route except transfer + (resolved through eventTypeForEditor, or called directly by PatchEventType and + SendTestEmail), so admins manage every event type the same way they see every + booking. TransferEventType has its own check: requireAdmin plus + expected_owner_id equal to the caller, so it moves only the caller's own." status: verified caveat: > Recorded here because a prior Layer 2 audit pass flagged REST's admin-only @@ -339,4 +345,10 @@ claims: the instance. Explicitly decided (2026-07-02) to keep this self-service rather than add admin approval — the friction of gating a personal calendar connection behind admin sign-off was judged worse than the bounded, already-authenticated- - user SSRF exposure it would close. + user SSRF exposure it would close. A second Layer 2 pass (#104) found the + connect form also distinguished failure classes (refused vs timeout vs TLS vs + auth), which is a usable scan oracle regardless of gating — so since 0.10.1 the + form returns one generic "could not connect" message and logs the detail + server-side. Timing side-channels (how fast different failures return) are + accepted as residual: closing those would mean fixed-delay responses on a + user-facing connect form. diff --git a/cmd/calnode/main.go b/cmd/calnode/main.go index 29a38aae..defd7f91 100644 --- a/cmd/calnode/main.go +++ b/cmd/calnode/main.go @@ -53,8 +53,15 @@ func main() { bi := buildinfo.Get() logger.Info("starting calnode", "version", bi.Version, "commit", bi.Commit, "build_time", bi.BuildTime, "dirty", bi.Dirty) + // Config whose wrong value is worse than its absence is checked here rather than + // tolerated at request time — see (*config.Config).Validate. + if err := cfg.Validate(); err != nil { + logger.Error("invalid configuration", "error", err) + os.Exit(1) + } + if cfg.GoogleClientID != "" { - slog.Info("Google OAuth configured", "client_id_prefix", cfg.GoogleClientID[:20]) + slog.Info("Google OAuth configured", "client_id_prefix", cfg.GoogleClientID[:min(20, len(cfg.GoogleClientID))]) } else { slog.Warn("Google OAuth NOT configured — GOOGLE_CLIENT_ID is empty") } @@ -72,11 +79,31 @@ func main() { } logger.Info("database migrations applied") - // Open the key vault. devMode allows an ephemeral DEK when no secret is set - // (handy for local development); production deployments must set - // CALNODE_ENCRYPTION_KEY or the vault will refuse to start. + // Resolve the platform secret BEFORE opening the vault. A missing + // CALNODE_ENCRYPTION_KEY no longer falls back to an ephemeral key chosen by + // guessing from the BASE_URL scheme: a secret is generated once and persisted + // beside the database, so a plain `docker run` survives a restart and a + // deployment behind a TLS-terminating proxy does not silently take the + // "development" path. An explicit CALNODE_ENCRYPTION_KEY still wins. + platformSecret, secretSource, secretPath, err := keyvault.ResolvePlatformSecret( + cfg.EncryptionKey, db.FilePath(cfg.DatabaseURL)) + if err != nil { + logger.Error("keyvault: cannot determine the platform secret", "error", err) + os.Exit(1) + } + switch secretSource { + case keyvault.SecretFromGenerated: + logger.Warn("keyvault: CALNODE_ENCRYPTION_KEY is not set; generated a platform secret and persisted it", + "path", secretPath, + "note", "back it up together with the database: without it the encrypted columns cannot be read") + case keyvault.SecretFromFile: + logger.Info("keyvault: platform secret loaded from file", "path", secretPath) + } + + // devMode still governs non-secret behaviour elsewhere; the vault no longer + // uses it to invent a key. devMode := !strings.HasPrefix(cfg.BaseURL, "https://") - vault, err := keyvault.Open(database, cfg.EncryptionKey, cfg.RecoverySecret, devMode) + vault, err := keyvault.Open(database, platformSecret, cfg.RecoverySecret, devMode) if err != nil { logger.Error("keyvault: failed to open", "error", err) os.Exit(1) @@ -130,6 +157,14 @@ func main() { os.Exit(1) } - <-workerDone // wait for current poll cycle to complete before db.Close() + // Bound the worker drain: Poll uses context.Background internally, so an + // in-flight cycle (up to 10 jobs × 30 s SMTP bounds) could otherwise linger + // for minutes on SIGTERM and stall deploys. Jobs are idempotent across + // restarts (claimed rows, retried payloads), so abandoning the drain is safe. + select { + case <-workerDone: // wait for current poll cycle to complete before db.Close() + case <-time.After(60 * time.Second): + logger.Error("worker drain timed out; exiting with jobs to retry on restart") + } logger.Info("server stopped") } diff --git a/cmd/calnode/mcp.go b/cmd/calnode/mcp.go index aa6984d2..b0444be5 100644 --- a/cmd/calnode/mcp.go +++ b/cmd/calnode/mcp.go @@ -42,10 +42,23 @@ func runMCPStdio(_ []string) { os.Exit(1) } + // Resolve the platform secret the same way the server does, so `calnode mcp` + // and `calnode serve` always agree on which key unlocks the vault. Diverging + // here would let one process read what the other wrote only by accident. + platformSecret, secretSource, secretPath, err := keyvault.ResolvePlatformSecret( + cfg.EncryptionKey, db.FilePath(cfg.DatabaseURL)) + if err != nil { + logger.Error("mcp: cannot determine the platform secret", "error", err) + os.Exit(1) + } + if secretSource == keyvault.SecretFromGenerated { + logger.Warn("mcp: generated and persisted a platform secret", "path", secretPath) + } + // Open the key vault (same dev-mode rule as the server) and swap the real DEK into // cfg so calendar/webhook token crypto works. devMode := !strings.HasPrefix(cfg.BaseURL, "https://") - vault, err := keyvault.Open(database, cfg.EncryptionKey, cfg.RecoverySecret, devMode) + vault, err := keyvault.Open(database, platformSecret, cfg.RecoverySecret, devMode) if err != nil { logger.Error("mcp: keyvault failed to open", "error", err) os.Exit(1) diff --git a/cmd/i18n-coverage/main.go b/cmd/i18n-coverage/main.go new file mode 100644 index 00000000..da1247fd --- /dev/null +++ b/cmd/i18n-coverage/main.go @@ -0,0 +1,160 @@ +// Command i18n-coverage prints how much of each catalogue every shipped language +// carries. +// +// It is a progress report, not a gate: the tests in internal/i18n are what fail a +// build. This exists because a translator needs to see 512/1324 rather than guess, and +// a reviewer needs to see whether a language is close enough to offer before reading it. +// +// Run it from the repository root: +// +// go run ./cmd/i18n-coverage +// make i18n-coverage +package main + +import ( + "encoding/json" + "flag" + "fmt" + "os" + "path/filepath" + "sort" + "strings" + + "github.com/calnode/calnode/internal/i18n" +) + +type catalogue struct { + name string + dir string + // floor is the coverage below which the language is not offered to visitors. + // Zero means "no floor for this catalogue yet". + floor float64 +} + +const sourceCode = "en" + +func main() { + root := flag.String("root", ".", "repository root") + flag.Parse() + + catalogues := []catalogue{ + {name: "booker (public surfaces)", dir: "internal/i18n/locales", floor: i18n.MinCoverage}, + {name: "admin (SPA)", dir: "frontend/src/lib/i18n", floor: 0}, + } + + for _, c := range catalogues { + if err := report(*root, c); err != nil { + fmt.Fprintf(os.Stderr, "i18n-coverage: %s: %v\n", c.dir, err) + os.Exit(1) + } + } +} + +func report(root string, c catalogue) error { + dir := filepath.Join(root, c.dir) + entries, err := os.ReadDir(dir) + if os.IsNotExist(err) { + fmt.Printf("%s\n %s does not exist yet, skipped\n\n", c.name, c.dir) + return nil + } + if err != nil { + return err + } + + source, err := load(filepath.Join(dir, sourceCode+".json")) + if err != nil { + return err + } + if len(source) == 0 { + return fmt.Errorf("%s has no strings", filepath.Join(dir, sourceCode+".json")) + } + + type row struct { + code string + keys int + cover float64 + unknown int + } + var rows []row + for _, e := range entries { + if e.IsDir() || !strings.HasSuffix(e.Name(), ".json") { + continue + } + code := strings.TrimSuffix(e.Name(), ".json") + strings_, err := load(filepath.Join(dir, e.Name())) + if err != nil { + return err + } + r := row{code: code, keys: len(strings_)} + for k := range strings_ { + if _, ok := source[k]; ok { + r.cover++ + } else { + r.unknown++ + } + } + r.cover = float64(r.cover) / float64(len(source)) + rows = append(rows, r) + } + sort.Slice(rows, func(i, j int) bool { return rows[i].code < rows[j].code }) + + fmt.Printf("%s\n %s (source %s.json, %d keys)\n\n", c.name, c.dir, sourceCode, len(source)) + fmt.Printf(" %-12s %6s %8s %10s %8s\n", "code", "keys", "coverage", "status", "unknown") + for _, r := range rows { + status := "source" + switch { + case r.code == sourceCode: + case r.unknown > 0: + status = "has unknown keys" + case c.floor > 0 && r.cover < c.floor: + status = "withheld" + case i18n.IsOptInVariant(r.code): + // Complete, but a wording variant: reachable by code only, never offered. + status = "opt-in" + default: + status = "offered" + } + fmt.Printf(" %-12s %6d %7.0f%% %10s %8d\n", r.code, r.keys, r.cover*100, status, r.unknown) + } + if c.floor > 0 { + fmt.Printf("\n floor: %.0f%% (below it a language is not offered; ?lang= still works)\n", c.floor*100) + } + fmt.Println() + return nil +} + +// load reads one catalogue file and returns its flattened key set. Nested objects are +// joined with dots, so the admin catalogue's plural members count individually +// ("common.save", "teams.memberCount.one", ...). Arrays are not used in either +// catalogue and are skipped rather than guessed at. +func load(path string) (map[string]struct{}, error) { + // #nosec G304 -- path is the repository root this developer tool was invoked from + // plus a fixed catalogue name; there is no untrusted input, and this binary is never + // served. It reports on files a contributor is already editing. + b, err := os.ReadFile(path) + if err != nil { + return nil, err + } + var raw map[string]any + if err := json.Unmarshal(b, &raw); err != nil { + return nil, fmt.Errorf("%s: %w", path, err) + } + out := map[string]struct{}{} + flatten("", raw, out) + return out, nil +} + +func flatten(prefix string, v any, out map[string]struct{}) { + switch t := v.(type) { + case map[string]any: + for k, child := range t { + key := k + if prefix != "" { + key = prefix + "." + k + } + flatten(key, child, out) + } + case string: + out[prefix] = struct{}{} + } +} diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index e91d5db6..0856972d 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -69,6 +69,14 @@ app you must `pnpm build` in `frontend/` **and** rebuild/restart the Go binary ## 4. Persistence (SQLite) — and the single-connection rule +Public person (`/u/{handle}`) and team (`/team/{slug}`) directories list public, +active event types by `display_order` ascending, then name and unique slug for +deterministic ties. The integer defaults to 0, preserving alphabetical order for +existing types. Owners can set it through event-type create/PATCH or the event +editor's Directory order field; negative values put an event ahead of the default +group. It applies wherever the event is listed and is retained on duplication. +It does not affect the admin event-type list or team member roster ordering. + - `internal/db`: opens SQLite with **`SetMaxOpenConns(1)`** + `SetMaxIdleConns(1)`, **WAL** journal mode, `busy_timeout=5000`. One writer connection by design. - Migrations: **goose** SQL files in `internal/db/migrations/` (00001→00029). Run @@ -184,11 +192,33 @@ the platform/recovery secret doesn't expose secrets. requests are untouched. API-key auth isn't CSRF-able (custom header). - **Roles:** Member / Admin / Owner. `is_owner` is additive over `is_admin`. Owner-gated actions: grant/revoke admin, transfer ownership. Admins can cancel - any booking, see all bookings, manage teams/members. Safe-removal + archive - guards prevent orphaning. + any booking, see all bookings, manage teams/members, and edit, duplicate or delete + any event type (§14). Safe-removal + archive guards prevent orphaning. +- **Sign out everywhere** (`POST /v1/auth/sessions/revoke-all`, `session.go`). With no + body it drops all of the caller's sessions **except the one that made the request** — + "sign out my other devices", as distinct from `POST /v1/auth/logout`, which ends the + current one. (An API-key caller has no current session, so for them every session + goes.) With `{"user_id": "..."}` it is an offboarding tool, gated on the same tiers as + `roles.go`: an admin may revoke a member, only the owner may revoke another admin, and + the owner's sessions are reachable only by the owner. The actor's tier is checked + *before* the target is loaded, so the 404 cannot be used to enumerate user ids. + ⛔ It also deletes the target's rows in **`oauth_access_tokens`**, cutting off any MCP + connector (§19) — those authenticate with a bearer token, not the session cookie, so + revoking sessions alone would leave an agent holding the authority just withdrawn. + Both deletes run in one transaction, so "revoked" is never half-true. + This endpoint signs someone out; it does not offboard them. Offboarding is archive + (next bullet), which ends MCP access on its own: the OAuth bearer check and the + refresh grant both refuse an archived member. API keys + (`cno_`) are deliberately left alone here, which is safe only because an archived + member's keys are already refused (the key path in `auth.go`), so an offboarded + member's keys stop working through archive, not through this endpoint. - **Offboarding = archive** (`users.archived_at`), never hard-delete — preserves bookings, event-type ownership, team links. Archived ⇒ no login, hidden from lists, skipped in routing/slots, event types deactivated. Reversible (restore). + "No login" holds on every auth path: sessions, API keys, and MCP OAuth bearers + all filter on `archived_at`, and refresh grants are refused for archived users + too — so archiving ends a member's agent access and leaves no usable + credential material behind. Archiving is blocked while the member has upcoming (primary-host) bookings; a resolve-meetings flow makes the admin reassign/cancel each first. @@ -196,6 +226,8 @@ the platform/recovery secret doesn't expose secrets. ## 7. Routing — the host-roles model +An administrator who owns an event can transfer it to an active required host with `POST /v1/event-types/{slug}/transfer`. The request supplies `expected_owner_id` and `new_owner_id`. Upcoming bookings prevent transfer. The event ID, slug, and historical booking hosts are preserved. Event-specific availability rules move to the new owner; global availability and calendar connections do not. + An event type owns a **host list** (`event_type_hosts`): each row = (user, role, priority), role ∈ **required | rotation | optional**. The editor authors these roles through **two plain questions** rather than a mode picker — *who can host?* @@ -239,6 +271,8 @@ members. ## 8. Slot generation +Booking and rescheduling pages and the embed widget group the displayed starts into morning (before 12:00), afternoon (12:00–16:59), and evening (17:00 onward), in the selected timezone. Only groups with slots are shown. The time grid has no nested scrolling region. Taken slots remain disabled when the event opts to display them. + - Engine: `internal/slots/generate.go`. Input: `[]HostAvailability` (rules, overrides, busy intervals, **Role**), `EventConfig` (duration, interval, buffers, min-notice, max-future, `RoutingMode`), date range, booker tz, injectable `Now`. @@ -373,6 +407,10 @@ them - the most common "why can't I see those times". ## 9. Booking lifecycle +New public and assistant bookings recheck selected external calendars before committing. This uses the same buffer orientation and own-event subtraction as the slots page and checks each required host; round-robin routing filters busy candidates and busy optional guests are omitted. A failed provider check rejects the request with HTTP 503 and a retry message; a busy slot returns HTTP 409. Assistant and MCP bookings keep the same distinction. The external check and database write cannot share a transaction. Rescheduling still uses the existing validation path. + +Google Meet and Teams event types can opt into `allow_phone_call`. Their booking page and widget then accept an optional `phone` value. A valid number selects a telephone appointment; leaving it empty preserves video. The booking stores its own location type so management pages, calendar retries, and paid confirmation do not generate a video link for a telephone appointment. Event duplication preserves the setting. + `internal/booking/service.go` (transactions) + `internal/handler/booking_handler.go` (HTTP + async side effects). @@ -445,6 +483,10 @@ committed booking) — which is why the reconciler (§11) exists. ## 10. Calendar integration (provider abstraction) +The connected-provider lookup prefers the destination connection. A conflict-only connection must not select the provider used when deciding how to generate a meeting link. +Availability checks return an error if any selected conflict calendar cannot be checked. Partial provider responses and unreadable busy periods are not treated as free time. An unavailable calendar can therefore temporarily prevent booking; reconnect it or deselect it from conflict checks to restore availability. +Bookings also check pending local bookings owned by other accounts that use the same selected conflict calendar. This check runs inside the booking transaction, before asynchronous calendar creation can finish. Calendar identity currently includes the provider, account email, and calendar ID. + Calnode talks to calendars through a **provider abstraction**, not a single vendor: - **`internal/calendar`** defines the `Provider` interface (Name, InvitesGuests, @@ -512,6 +554,55 @@ CalDAV without iTIP scheduling (RFC 6638) does **not** auto-invite, so a future provider would want the `.ics` — the rule is "no destination whose provider auto-delivers invites," not "no Google." +**Who sends the invite: `invite_delivery` (migration 00068).** Per event type, copied onto +each booking at creation. `calendar` (default) is everything above: the booker is a guest +on each host's event and the provider invites them, from the host's own address. +`calnode` writes the hosts' events **without guests** (`calendarInvitee` returns "", which +every provider reads as "no attendee", so nobody is emailed from a host's account) and +always attaches Calnode's `.ics` to the booker's emails, with `ORGANIZER` set to the +instance sender from Settings → Email (`applyInviteDelivery`, `BookingData.HideHostInInvite`). +No sender address means no `ORGANIZER` line, never a fallback to the host. Host copies keep +the host as organizer and, for a `calnode` booking, leave the booker out entirely and go out as +`METHOD:PUBLISH` (`applyHostInvite`, `ICSWithoutAttendee`), so no host calendar holds them as +a guest it could re-invite. `none` (migration 00071) is for integrations that deliver the +invite themselves: the hosts' events are written guestless exactly as for `calnode` +(`hostEventsGuestless`) and host copies behave the same, but no Calnode email to the booker +carries an `.ics`, whatever the host's calendar (`applyInviteDelivery`). The booker's emails +themselves still go out when email is set up; whether Calnode emails at all stays with the +mailer and the notification settings. Reschedule, cancel, reassign and the reconciler read +the mode from the **booking**, not the event type, so a booking is always updated through +the channel its invite went out on. Switching an event type to `calnode` requires email to +be set up (validated on change); `none` does not. The booking JSON carries the mode as +`invite_delivery`, and webhooks can select it as a payload field (not in the default set), +so an integration can tell per booking whether the booker already holds an invite. + +00071 widened the 00068 `CHECK` without a table rebuild: SQLite cannot alter a `CHECK`, and +rebuilding `bookings` would mean carrying its foreign-key children and the double-booking +index through a `NO TRANSACTION` migration (compare 00042, which rebuilt only +`event_types`). Because the `CHECK` belongs to the `invite_delivery` column alone, the +migration adds a widened copy, fills it, drops the old column and renames the copy, inside +goose's normal transaction. The column now sits last in both tables. + +**RSVPs to Calnode-sent invites (migration 00069, `rsvp_inbound.go`).** A booker's +Yes/No/Maybe is an iTIP `REPLY` their mail client emails to the invite's `ORGANIZER`. Each +booking's organizer address is fixed at its first send (`bookings.invite_organizer`, +`bookingInviteOrganizer`), because clients match later updates by UID *and* organizer. With +RSVP tracking set up (Settings → Email: an address on a Resend receiving domain, the +webhook signing secret, and a **full-access** Resend API key) that address is private per +booking, `rsvp+<128-bit token>@domain`. `POST /v1/settings/email/rsvp-webhook` +(`mailer.EnsureResendInboundWebhook`) creates or reuses the Resend webhook and stores its +secret; the page falls back to manual steps when it cannot. Resend posts `email.received` +to `POST /v1/email/inbound/resend`; the handler verifies the Svix signature +(`mailer.VerifyResendWebhook`), routes by recipient to a confirmed, upcoming booking, +fetches the message with Resend's own SPF/DKIM/DMARC verdicts (`mailer.FetchReceived`), +and records the answer on `booking_attendees.rsvp_status` only if Resend verified the From +domain (DKIM or DMARC pass), the From is the booker, the UID is the booking's, and the +`REPLY` answers for the booker. The body is sender-written, so its `ATTENDEE` line is never +trusted on its own. A changed answer fires `booking.rsvp`. It answers 200 to anything it +will not act on and 5xx only when the fetch failed, so Resend retries exactly what a retry +can fix. Hosts' calendar events are not updated with the answer: no provider has an "edit +event" write op yet. + **Adding another provider (Apple/iCloud, CalDAV):** implement `calendar.Provider`, register it in `internal/server`, set `InvitesGuests()` correctly (drives the `.ics` gate above), and extend `providerMintsPlatform`/`CanAutoGenerate` if it offers a @@ -543,8 +634,25 @@ from the current destination. otherwise changing the destination orphans every existing booking: the provider 404s, the booking cancels in Calnode, and the meeting stays on the host's calendar with nothing surfaced. Empty means "resolve the old way", correct for bookings that predate the column. -Known limit: this rescues a change of calendar *within* an account, not a move to a -different account, which would need the account recorded too. +Known limit (Google, Microsoft): this rescues a change of calendar *within* an account, not +a move to a different account, which would need the account recorded too. + +CalDAV does not have that limit, because its event id is the event's absolute URL and so +already names the server. `Service.UpdateEvent`/`CancelEvent` route an id the CalDAV +provider recognizes (`calendar.EventRecognizer`) to it whatever the destination is now, and +it authenticates as the connected account that holds the event (`caldav.eventConn`), never +as the destination: the account whose bound or saved calendar is the recorded calendar id, +else whose calendar URL contains the event URL (same scheme, host and port, path under it; +most specific wins). No match, or a tie, sends nothing and returns an error. This is a +credential boundary, not a routing nicety: accounts can live on different servers, and the +destination's app password sent to an older event's URL goes to someone else's server. + +That refusal matches `calendar.ErrEventUnreachable`, and the reconciler treats it as final: +it logs one warning, clears `needs_sync` (reschedule) or the event id (cancel, logged +redacted since it is the only record), and does not retry. Retrying cannot help, because it +re-reads the same connections and refuses the same way, and the cancellation sweep has no +date bound, so it would repeat forever. Any other error, such as a server that is down or +refuses the stored password, stays retryable. --- @@ -594,6 +702,13 @@ as the desired state: genuinely broken SMTP config. Explicit credentials state intent. `GET /v1/settings/email` returns the live `transport`, and the admin UI badges it, so filled-in SMTP fields are never mistaken for SMTP delivery. +- **SMTP authentication:** after the configured TLS handshake, if any, `smtp.go` + reads the server's advertised AUTH mechanisms. It uses PLAIN when + available, otherwise LOGIN if offered (as with some Microsoft 365 servers). + LOGIN refuses to send credentials without TLS; if neither mechanism is offered, + sending fails with an unsupported-authentication error. Authentication failures + omit the server's full response from logs to avoid exposing credential details. +- **TCP relay:** `EMAIL_SMTP_CONNECT_HOST` / `EMAIL_SMTP_CONNECT_PORT` are loaded by `internal/config` and passed through `SMTPConfig` / `BuildMailer` at boot and settings reload. They change only the dial address; TLS and authentication keep the original SMTP host. Active overrides are logged. - **The dial must stay bounded.** `defaultSMTPTimeout` once applied only via `conn.SetDeadline`, which runs *after* the dial returns, leaving the dial itself bounded by the OS SYN-retry limit (~2 min). Against a packet-dropping host that stalls the job @@ -643,7 +758,11 @@ as the desired state: - **Branding (`branding_settings.go`, migrations 00029/00050):** instance-wide `business_name` + `logo_url` + `banner_url` on the singleton row. Business name is the wordmark fallback (defaults to "Calnode") + public-page header; the logo is the email - header image + public-page header. `GET/PATCH /v1/settings/branding` (name + opacity + header image + public-page header. Booking, manage, person (`/u/{handle}`) and team + (`/team/{slug}`) directories share the `businessHeader` partial, using the configured + logo height (scaled by `pageLogoHeight`) and opacity, or the business name when no + logo is set. Directory avatars remain inside the person/team card. + `GET/PATCH /v1/settings/branding` (name + opacity settings only); the logo and banner are each an **upload** (`POST/DELETE /v1/settings/branding/logo` and `.../banner`, public serve at `GET /branding/logo` / `GET /branding/banner`) reusing the avatar pipeline: @@ -689,7 +808,8 @@ as the desired state: - **Per-webhook payload fields:** each webhook chooses which fields land in the `data` object (`webhooks.fields` JSON, migration 00027) — incl. attendee PII + intake answers. NULL ⇒ the original default set (so existing webhooks are unchanged and - never start leaking PII). The payload is enriched (`enrich`) + filtered per-webhook + never start leaking PII; fields added later that every booking carries, such as + `invite_delivery`, stay out of that set for the same reason). The payload is enriched (`enrich`) + filtered per-webhook (`buildData`) at enqueue time, so each subscriber gets its own `data`. New webhooks default to all fields ticked (self-hoster unticks what they don't want); a delivery-log view (status/HTTP/attempts) is in the admin webhooks page. @@ -704,11 +824,42 @@ as the desired state: - Owners/admins can request the whole workspace: `GET /v1/bookings?scope=all` (gated on `IsAdmin`; ignored for non-admins so it can't escalate). The bookings page has a "My / All" toggle for admins with a Host column. +- **Event types** follow the same model. A member lists what they own or host + (`GET /v1/event-types`); a host sees an event type read-only and only its owner may + change it. Admins (and so the instance owner) may manage **every** event type: + `GET /v1/event-types?scope=all` lists all of them (same `IsAdmin` gate, silently + ignored for members), and GET/PATCH/DELETE, `/hosts`, `/questions`, `/duplicate` and + `/test-email` accept any slug from an admin. One rule decides it, + `canManageEventType` (owner or admin), mostly resolved by `eventTypeForEditor` + (PATCH and test-email call it directly), which returns 404 rather than 403 so a + member cannot probe slugs. Slugs are unique per instance, so + the slug-addressed routes stay unambiguous. + The JSON carries `owned` (caller is the owner), `can_edit` (owner or admin; false = + read-only host) and `owner_id`; on GET and the list, `owner_name`/`owner_email` + whenever the caller is not the owner (PATCH and duplicate responses omit them). The admin UI gates read-only on `can_edit`, not `owned`. + ⛔ An admin edit never changes **whose** event type it is. Everything per-owner keeps + resolving to `event_types.user_id`: `validateLocation` checks the owner's calendar + and Zoom connections (the same rule as an owner's own edit), the editor's "Just me" + host is the owner, a duplicate belongs to the source's owner, and the test email + names the owner as host (it is still sent to the admin who asked). + Known limitation, unchanged by admin editing: Meet, Teams and Zoom links are minted + at booking time by the **primary host's** account (§10): the fixed event type's host or the assigned + round-robin/collective host, neither of whom has to be the owner (the host list + need not include them). A + location saved without a manual link can therefore validate against the owner and + still fall back to no link for a host who has no matching connection, and the test + email names the owner where a real booking names the primary host. + There is no audit table; admin changes to someone else's event type are logged as + `event type changed by admin` with action, owner and actor, next to the transfer log + line. Transfer itself (§7) is unchanged: it still moves only the caller's own event + type. --- ## 15. Frontend toolchain & conventions +Each account can set `booking_accent` in its profile. The default preserves the dark booking controls. Booking pages, management pages, and the embed widget use the event owner's color, with a contrasting text color chosen by luminance. The profile API accepts only six-digit hex colors. + - Svelte 5, SvelteKit 2 (adapter-static SPA), Vite 8 (Rolldown), Tailwind v4 (`@tailwindcss/vite`), shadcn-svelte (nova style) + bits-ui, tailwind-variants 3, **tailwind-merge v3** (must match Tailwind v4 — v2 mis-merges v4 classes; memory @@ -782,7 +933,37 @@ as the desired state: 8. **Public-page CSP is dynamic** — `publicCSP()` (tracking_settings.go) returns the strict default and relaxes only when head code-injection is configured (broad `https:` or the operator's `tracking_csp_allow`). Don't re-hardcode the CSP on the - `book`/`manage` handlers — route it through `publicCSP`. + `book`/`manage`/directory handlers — route it through `publicCSP`. Person and + team directories render the admin-configured head HTML once, after the shared + tracking partial, matching booking/manage pages. Native GA4/GTM tags use the + same consent banner on directories, including restoring stored consent. +9. **`FRAME_ANCESTORS` is the admin SPA's only, and it must stay that way.** Set it + (space-separated `https://host[:port]` / `'self'`) and the handler under `/admin/` + sends `Content-Security-Policy: frame-ancestors ` so an operator can embed the + console in their own tooling. `internal/server`'s `FrameAncestors` middleware wraps + `frontend.Handler()` and nothing else: the public booking pages keep + `frame-ancestors 'none'` + `X-Frame-Options: DENY` unconditionally, because they are + unauthenticated pages collecting names, emails and card details and clickjacking one + is worth more than framing a console nobody reaches without a session. + ⚠️ **Unset sends no frame header at all, which is what `/admin/` has always sent** — + the SPA is framable by default. This setting deliberately does *not* add a default + deny, since an opt-in flag must not smuggle in a behaviour change; + `TestAdminSPA_sendsNoFrameHeadersWhenUnset` pins the current answer so changing it is + a decision. No `X-Frame-Options` is sent beside the CSP either: that header has no + allow-list form (`ALLOW-FROM` is dead), so the only value it could carry is + `SAMEORIGIN`, which browsers apply *instead of* the CSP and would break the embedding. + An entry that isn't `https://host[:port]` or `'self'` fails `config.Validate()` and the + process **refuses to start** — a browser drops a source list it cannot parse, so a + typo would otherwise leave `/admin/` more embeddable than with the setting unset. + ⛔ **The CSP is only half of what an embed needs, and the other half is not + configurable.** `calnode_session` is `SameSite=Lax` (`session.go`), so a browser does + not send it on a subresource request from a **cross-site** parent. A console on an + unrelated eTLD+1 may therefore frame `/admin/` after this setting and still get the + login screen inside the frame, forever — the header permits the embed and the cookie + declines to authenticate it. Working embeds are same-site: `'self'`, or a parent + sharing `BASE_URL`'s registrable domain. Relaxing that means `SameSite=None; Secure` + on the session cookie, which removes the CSRF protection the `Lax` default provides + for every other route, so it is deliberately not offered as a setting. --- @@ -797,20 +978,25 @@ as the desired state: - **Teams on personal Microsoft accounts** — `teamsForBusiness` is work/school only, so a personal Microsoft account can't auto-mint Teams links; the organizer must supply a manual link (validated, and surfaced in the editor hint). -- **The admin SPA does not lay out below ~600px.** On the settings pages the nav and the - content sit in one flex row with no stacking breakpoint, so the content column is - squeezed to near-zero width and text wraps into a tall vertical sliver. Measured on - Settings → Profile at a 535px viewport: the `mx-auto max-w-4xl px-8` shell reported a - 151px client width and the form column 0. Affects every settings page, not one - component, so the fix is a breakpoint in the settings shell rather than per-page - patching. The **public** booking surfaces are unaffected and are verified on mobile; - this is admin-only. Deferred 2026-08-22, not a regression. +- **The admin SPA does not fully lay out below ~600px.** *Phase 1 landed (#226/#227): the + outer shell now stacks below `md` — the sidebar is an off-canvas drawer, a compact + header carries the menu button, and content scrolls instead of clipping.* Still future + work: the settings sub-nav (`frontend/src/routes/settings/+layout.svelte`, `flex gap-8` + with a `w-44 shrink-0` nav) does not stack, so settings pages still squeeze their form + column; and list/table views and multi-column forms need the phase 2/3 treatments. + Measured before phase 1 on Settings → Profile at 535px: the shell reported a 151px + client width and the form column 0. Affects every settings page, so that half is a + breakpoint in the settings shell rather than per-page patching. The **public** booking + surfaces are unaffected and are verified on mobile; this is admin-only. - **LiveKit room is not translated** - the booking surfaces, emails and calendar invites - ship in 8 languages (§23), but the in-browser meeting UI is ~45 hardcoded English + ship in 11 languages (§23), but the in-browser meeting UI is ~45 hardcoded English strings. It has its own vanilla-JS asset pipeline and shares no string plumbing with the Go templates, so it needs a small runtime `t()` of its own. Separate work, not hard. -- **Plural rules are 2-form only** (§23) - shipping Polish, Russian or Arabic correctly - needs a real CLDR plural-category selector first. +- **Plural rules are 2-form only** (§23) - every plural-bearing key splits on `n == 1` and + nothing else. Polish ships despite that because its keys dodge the missing categories: + durations use invariant abbreviations (`godz.`, `min`), and `hostsLabel`'s + `other`/`others` pair (`inny`/`innych`) is correct for every count. Russian or Arabic + genuinely do need a CLDR plural-category selector first. - **OAuth app verification** — the Google and Microsoft apps should go through publisher verification before wide public use to avoid "unverified app" warnings. @@ -1048,11 +1234,23 @@ LLM summary) — the next build; consent-gated (§8.11/§15 of the PRD). ## 23. Languages (i18n) -Calnode ships **8 locales**: `en` (source) · `es` · `fr` · `de` · `it` · `pt` · `nl` · `sv`. +Calnode ships **11 locales**: `en` (source) · `es` · `fr` · `fr-CA` · `de` · `el` · `it` · `nl` · `pl` · `pt` · `sv`. + +`fr-CA` is the first **regional** locale, and it is a separate file rather than a fallback +because the differences are real: `courriel` not `e-mail`, `reporter`/`report` not +`reprogrammer`/`reprogrammation`, `renseignements personnels` never `données personnelles` +(the Quebec statutory term), no space before `!` `?` `;` where France puts one, and CLDR +itself disagrees on one abbreviation — `month_short_jul` is `juill.` in fr-CA and `juil.` in +fr, which is exactly what `TestDateTablesMatchCLDR` exists to catch. Both keep the 24-hour +clock and the day-month `date_format`. Currency and percent take a non-breaking space before +`$` and `%` in Canadian French; no key carries either today, so the rule is recorded here +rather than applied. A visitor sending `fr-FR` or plain `fr` is unaffected — the matcher +picks the exact tag first (pinned in `TestResolve`). ### What is translated, and what is not -Translation covers the surfaces a **booker** sees. It deliberately stops there. +Translation covers the surfaces a **booker** sees, and the admin SPA through its own +catalog. It deliberately stops at the LiveKit room and at content the operator wrote. | Surface | Translated? | |---|---| @@ -1062,12 +1260,22 @@ Translation covers the surfaces a **booker** sees. It deliberately stops there. | The four emails (confirm / cancel / reschedule / reminder) | yes | | Calendar invite title + description | yes | | Conversational booking assistant | yes (replies in the visitor's language) | -| **Admin SPA** (`frontend/`) | **no** - English only, by design | +| **Admin SPA** (`frontend/`) | **yes** - `en` + `fr` (`frontend/src/lib/i18n/`); English is source of truth | | **LiveKit room** (`livekit-room.html` + `livekit-room.js`) | **no** - see below | | **Admin-authored content** (event names, descriptions, intake questions, custom email copy) | **no** - stored as the operator typed it | | IANA timezone identifiers | no - shown as `Europe/Berlin`, not localized | -**The LiveKit room is the one real hole.** ~45 strings in the in-browser meeting UI +The admin SPA is a separate catalog from the booker locales. `frontend/src/lib/i18n/` +ships nested JSON (`en.json` source of truth, `fr.json` a native-speaker translation). +`t` / `tr` look up a dotted key, interpolate `{placeholders}`, and fall back to English +then to the key itself. Locale resolution is client-side: a stored preference +(`localStorage` key `calnode-admin-locale`, set from Settings → Profile → Preferences) +wins, then `navigator.languages` (`fr-CA` → `fr`), then English. Dates and times in the +admin use `Intl` with that tag; the operator's existing `date_format` / `time_format` / +`week_start` prefs still apply. Adding an admin locale is copy-the-JSON plus two +registrations in `catalog.ts` — see CONTRIBUTING.md. + +**The LiveKit room is the remaining hole.** ~45 strings in the in-browser meeting UI (join/leave, mute, screen share, recording banner, consent prompts, chat) are hardcoded English. It was excluded because the room is vanilla JS with its own asset pipeline (`go:embed`-ed in the handler package, not the SPA build) and shares no template or string @@ -1113,9 +1321,28 @@ you is a key in the JSON instead (`internal/i18n/datetime.go`): `date_format`, ` `dow_short_*`, `month_short_*`. That also makes per-language date shape expressible - German carries its own `date_format` for the ordinal period ("Mo, 22. Jun 2026"). +A locale does **not** have to be complete to merge. Partial catalogues are supported: any +key a locale lacks falls back to English at lookup time (`Locale.T`), so a translation can +land in stages instead of in one block. The practical reason is that nobody translates 169 +strings in one sitting, and requiring completeness made an in-progress language +unmergeable - which is how community translations quietly die. + +The other half of that bargain is `MinCoverage` (80% of the English keys). A locale at or +above it is offered to visitors: the language switcher, `Accept-Language` matching and the +public API payload all read `SupportedLocales()`, which filters on it. A locale below the +floor still exists and `?lang=` still resolves, so whoever is translating it can +check their work in situ, but no visitor is served a mostly-English booking page by +accident. The floor is set with headroom because the English catalogue grows: adding +strings can push a locale under it, and that is the signal to chase the translators. +Startup logs a line for every locale it withholds and why. + Three guards police a new file (`go test ./internal/i18n/`): -- `TestAllLocalesHaveTheSameKeys` - no missing or unknown keys. +- `TestLocalesHaveNoUnknownKeys` - no key that English does not have. A missing key is + fine now (that is the fallback), but an unknown one is always a typo or a renamed key + and would render for nobody. This replaced `TestAllLocalesHaveTheSameKeys`, which + asserted set equality in both directions and therefore rejected the in-progress locales + the floor exists to support. - `TestAllLocalesHaveMatchingFormatVerbs` - uses `fmt` **itself** as the oracle, so a locale that drops or reorders a `%s`/`%d` fails the test instead of emitting `%!(EXTRA…)` to a booker. An earlier hand-rolled parser for this was unsound (it missed indexed verbs like @@ -1125,6 +1352,9 @@ Three guards police a new file (`go test ./internal/i18n/`): only check that can tell `dim.` from `dim`, or catch a 12h/24h call that is wrong for the language. It caught a real drift on first run (`es` had `sep` where CLDR says `sept`). +`TestOfferedLocalesMeetCoverageFloor` pins the invariant the three guards do not: nothing +below `MinCoverage` is ever in `supported`. + Two traps: - **Filenames must be BCP-47 canonical.** `pt-br.json` is wrong - `language.Make("pt-br")` @@ -1137,8 +1367,11 @@ Two traps: ### Translation quality -**Every non-English locale is an LLM draft with no native review.** The structure is -verified by the guards above; the *wording* is not. Register was chosen per language rather +**Most non-English locales are LLM drafts with no native review, and none has had a full +native read.** The structure is +verified by the guards above; the *wording* is not. `pl` is the partial exception: it was +contributed and grammar-checked by a native speaker in #216/#220, though two developer +edits (the CLDR date forms and `innych`) went in on top of his text. Register was chosen per language rather than uniformly (`fr`/`de`/`it`/`pt` formal, `es`/`nl`/`sv` informal), matching what business booking pages do in each market, but that too is unreviewed. Corrections via PR are welcome and are the expected path to improving them. Do not describe a language as production-quality @@ -1163,6 +1396,13 @@ emails end to end. This doc tracks the code; when you change behaviour in an area above, update the matching section in the same PR. Notable rounds: +- **2026-11-02 — Admin SPA i18n (`en` + `fr`).** The SvelteKit admin (`frontend/`) is no + longer English-only. A small client-side catalog in `frontend/src/lib/i18n/` drives + chrome, list pages, the event-type editor, settings, and auth screens. Locale comes + from Settings → Profile (stored in `localStorage`) with a browser-language fallback; + missing keys fall back to English. Booker-facing locales (`internal/i18n/locales`) + are unchanged. The LiveKit room stays English (§18). + - **2026-08-20 — Multi-language public surfaces (8 locales).** Booking page, manage page, embed widget, the four emails, the calendar invite and the booking assistant now render in `en es fr de it pt nl sv` (new §23). Locale is negotiated from `Accept-Language` with a @@ -1170,7 +1410,8 @@ matching section in the same PR. Notable rounds: (migration 00051) so reminders match the language the booker used. Adding a language is adding one JSON file - proven by adding six at once with no code change. Go has no locale date data, so the date tables are keys in the JSON, cross-checked against `Intl`/CLDR by a - node-backed test. **Not translated: the admin SPA and the LiveKit room** (§18). + node-backed test. **Not translated at the time: the admin SPA and the LiveKit room** + (§18). The admin SPA gained `en`/`fr` in 2026-11; the room is still English. - **2026-06-30 — Cookie consent + legal links + shared book/manage partials.** Native GA4/GTM (Settings → Tracking) is now consent-gated on book.html **and** manage.html: diff --git a/docs/ZOOM.md b/docs/ZOOM.md new file mode 100644 index 00000000..deea5df0 --- /dev/null +++ b/docs/ZOOM.md @@ -0,0 +1,41 @@ +# Zoom integration + +One Zoom OAuth app per Calnode instance (entered in **Settings → Zoom**), then each +host connects their **own** Zoom account through that app from the **Calendar** page. +Bookings with a Zoom location get a real meeting link minted under the assigned host's +account. The settings page shows the exact Redirect URL and required scope +(`meeting:write`); the app can stay unpublished for a single-account team. + +## Multi-member teams: read this before inviting people + +Zoom — not Calnode — decides who may authorize your app. An **unpublished** app can +only be authorized by users on the **same Zoom account** as the app owner. A member on +a different Zoom account clicks Connect and Zoom itself refuses; no callback, token, +or error ever reaches Calnode, so there is nothing to retry or work around in settings. + +Your options, ranked honestly: + +1. **Use the video already in the box.** Built-in LiveKit needs no per-user OAuth, no + Zoom app, and no publication — see [VIDEO.md](VIDEO.md). For most teams hitting this + wall, this is the answer: it converts "Zoom won't let us" into "we don't need Zoom". +2. **Work within Zoom's distribution rules.** Same-account joining, beta sharing, or + publishing — with their real costs, spelled out in [DEPLOY.md](../DEPLOY.md) under + "Zoom meeting links". That section is the reference for the Zoom-side mechanics; + this file's recommendation is step 1 above. + +What does **not** work: re-entering credentials, reinstalling, different hosting +(Docker vs Railway vs Render all behave identically), or having the member confirm +they own an active Zoom account. The refusal happens on Zoom's consent page under all +of them. + +## Note for contributors + +Per-member BYO Zoom apps (each host registers their own app) would technically work — +a member always authorizes their own app — and a PR doing it would be welcome if built +within these bounds: the instance app stays the default and fallback; per-user +credentials live entirely inside `internal/zoom` (storage + client routing) with no +changes to booking or meeting-mint flows; secrets use the existing envelope encryption. +That said, it is explicitly **not on the maintainers' roadmap**: it is a big chunk of +work that asks the least technical users to do the most technical thing (register a +Zoom Marketplace app each), while LiveKit already covers the need with zero +configuration. If you build it, build it within the bounds above. diff --git a/docs/i18n-glossary.md b/docs/i18n-glossary.md new file mode 100644 index 00000000..e3fb0cef --- /dev/null +++ b/docs/i18n-glossary.md @@ -0,0 +1,70 @@ +# Translation glossary + +One concept, one word, per language. The point is that a booking does not become a +"rendez-vous" on one screen and a "réservation" on the next, and that a new translator does +not have to invent terminology that is already decided. + +**How to use it** + +- Before translating a term, look it up here. If it is missing, add it with its key. +- The values below were read from the shipped catalogues, not invented. If a catalogue + disagrees with this table, the table is wrong and should be fixed in the same PR. +- **Adding a language means adding a column.** Do not introduce a second word for a concept + that already has one. +- Two catalogues exist: the **booker** surfaces (`internal/i18n/locales`) and the **admin** + SPA (`frontend/src/lib/i18n`). They are separate systems with separate registers, and they + currently disagree in places. Those rows are marked **divergent** and are decisions, not + accidents. + +## Core terms + +| Concept | English | French (booker) | French (admin) | Notes | +|---|---|---|---|---| +| booking (the object) | booking | réservation | réservation | Never "rendez-vous" for the object. | +| to book (verb) | book | réserver | réserver | | +| event type | event type | - | type de rendez-vous | **divergent**: the booker has no public name for it. | +| host | host | - | hôte | The booker addresses the booker, not the host. | +| attendee / booker | attendee | - | participant | Use "participant" in admin; the booker is "vous". | +| team | team | équipe | équipe | | +| team member | team member | membre de l'équipe | membre | | +| availability | availability | disponibilités | disponibilités | Plural in French. | +| slot / time slot | slot | créneau | créneau | | +| timezone | timezone | fuseau horaire | fuseau horaire | | +| reschedule | reschedule | reprogrammer | reprogrammer | Noun: "reprogrammation". | +| cancel | cancel | annuler | annuler | Noun: "annulation". | +| round robin | round robin | - | tourniquet | French admin uses "tourniquet"; do not calque "tourner entre eux". | +| reminder | reminder | rappel | rappel | | +| directory | directory | - | annuaire | Only the person and team pages. | + +## Register + +| Surface | Register | Reason | +|---|---|---| +| Booker | Formal, second person plural (`vous`) | A customer booking a call from a business page. | +| Admin | Formal (`vous`), terse | An operator working in the tool all day. | + +The existing booker locales are deliberately split by market: `fr`/`de`/`it`/`pt` formal, +`es`/`nl`/`sv` informal. Match the language, not the English. + +`de-x-neutral` is the one exception, and it is a third option rather than a change of side: +German with no address at all (infinitive and nominal style, "Tag auswählen"), for +operators whose own site does not say *Sie*. It is opt-in and never offered to visitors, so +`de` remains the formal default. When a string changes in `de.json`, change it in +`de-x-neutral.json` too, without the pronoun. + +## Things that are not translated + +Brand names, URLs, protocol tokens (`STARTTLS`, `RSVP`, `PII`), third-party console labels +("APIs & Services", "Authorised redirect URIs"), and code identifiers. Translating those is +almost always a mistake; leave them byte-identical. + +## Placeholders + +Never translate a placeholder. `%s`, `%d`, `%q` (booker) and `{name}` (admin) must survive +verbatim, and a missing one is a runtime bug rather than a stylistic choice. The tests check +this, but a test cannot see that you moved a word into the wrong place. + +## Cross-references + +- `CONTRIBUTING.md` - how to add or extend a language +- `docs/ARCHITECTURE.md` §23 - how the catalogue system works and its limitations diff --git a/frontend/package.json b/frontend/package.json index 8753ea1d..715e485a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,11 +7,15 @@ "pnpm": { "onlyBuiltDependencies": [ "msw" - ] + ], + "overrides": { + "cookie@^0.6.0": "^0.7.2" + } }, "scripts": { "dev": "vite dev", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:i18n": "node scripts/check-i18n.mjs", "build": "vite build", "preview": "vite preview", "test:visual": "vitest run" @@ -22,27 +26,27 @@ "tailwind-merge": "^3.6.0" }, "devDependencies": { - "@internationalized/date": "^3.12.2", - "@lucide/svelte": "^1.20.0", + "@internationalized/date": "^3.12.4", + "@lucide/svelte": "^1.64.0", "@sveltejs/adapter-static": "^3.0.10", - "@sveltejs/kit": "^2.65.1", + "@sveltejs/kit": "^2.70.2", "@sveltejs/vite-plugin-svelte": "^7.1.2", "@tailwindcss/vite": "^4.3.1", - "@types/node": "^26.0.1", - "@vitest/browser": "^4.1.9", - "@vitest/browser-playwright": "^4.1.9", - "bits-ui": "^2.18.1", - "playwright": "^1.61.0", - "shadcn-svelte": "1.3.0", - "svelte": "^5.0.0", + "@types/node": "^26.6.5", + "@vitest/browser": "^4.1.10", + "@vitest/browser-playwright": "^4.1.10", + "bits-ui": "^2.19.5", + "playwright": "^1.64.1", + "shadcn-svelte": "1.7.2", + "svelte": "^5.57.3", "svelte-check": "^4.7.1", "svelte-sonner": "^1.1.1", "tailwind-variants": "^3.2.2", - "tailwindcss": "^4.0.0", + "tailwindcss": "^4.3.3", "tw-animate-css": "^1.4.0", "typescript": "^5.7.3", - "vite": "^8.0.16", - "vitest": "^4.1.9", - "vitest-browser-svelte": "^2.1.1" + "vite": "^8.3.0", + "vitest": "^4.1.10", + "vitest-browser-svelte": "^3.1.0" } } diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index a0674ad4..cbde953e 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + cookie@^0.6.0: ^0.7.2 + importers: .: @@ -13,62 +16,62 @@ importers: version: 2.1.1 cropperjs: specifier: ^1.6.2 - version: 1.6.2 + version: 1.7.0 tailwind-merge: specifier: ^3.6.0 - version: 3.6.0 + version: 3.7.0 devDependencies: '@internationalized/date': - specifier: ^3.12.2 - version: 3.12.2 + specifier: ^3.12.4 + version: 3.12.4 '@lucide/svelte': - specifier: ^1.20.0 - version: 1.20.0(svelte@5.56.3) + specifier: ^1.64.0 + version: 1.70.0(svelte@5.57.3) '@sveltejs/adapter-static': specifier: ^3.0.10 - version: 3.0.10(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))) + version: 3.0.11(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))) '@sveltejs/kit': - specifier: ^2.65.1 - version: 2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + specifier: ^2.70.2 + version: 2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) '@sveltejs/vite-plugin-svelte': specifier: ^7.1.2 - version: 7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + version: 7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) '@tailwindcss/vite': specifier: ^4.3.1 - version: 4.3.1(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + version: 4.3.5(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) '@types/node': - specifier: ^26.0.1 - version: 26.0.1 + specifier: ^26.6.5 + version: 26.6.6 '@vitest/browser': - specifier: ^4.1.9 - version: 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))(vitest@4.1.9) + specifier: ^4.1.10 + version: 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))(vitest@4.1.12) '@vitest/browser-playwright': - specifier: ^4.1.9 - version: 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(playwright@1.61.0)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))(vitest@4.1.9) + specifier: ^4.1.10 + version: 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(playwright@1.65.0)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))(vitest@4.1.12) bits-ui: - specifier: ^2.18.1 - version: 2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3) + specifier: ^2.19.5 + version: 2.20.6(@internationalized/date@3.12.4)(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3) playwright: - specifier: ^1.61.0 - version: 1.61.0 + specifier: ^1.64.1 + version: 1.65.0 shadcn-svelte: - specifier: 1.3.0 - version: 1.3.0(svelte@5.56.3) + specifier: 1.7.2 + version: 1.7.2(svelte@5.57.3) svelte: - specifier: ^5.0.0 - version: 5.56.3 + specifier: ^5.57.3 + version: 5.57.3 svelte-check: specifier: ^4.7.1 - version: 4.7.1(picomatch@4.0.4)(svelte@5.56.3)(typescript@5.9.3) + version: 4.7.8(picomatch@4.0.7)(svelte@5.57.3)(typescript@5.9.3) svelte-sonner: specifier: ^1.1.1 - version: 1.1.1(svelte@5.56.3) + version: 1.2.3(svelte@5.57.3) tailwind-variants: specifier: ^3.2.2 - version: 3.2.2(tailwind-merge@3.6.0)(tailwindcss@4.3.1) + version: 3.3.1(tailwind-merge@3.7.0)(tailwindcss@4.3.5) tailwindcss: - specifier: ^4.0.0 - version: 4.3.1 + specifier: ^4.3.3 + version: 4.3.5 tw-animate-css: specifier: ^1.4.0 version: 1.4.0 @@ -76,44 +79,35 @@ importers: specifier: ^5.7.3 version: 5.9.3 vite: - specifier: ^8.0.16 - version: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) + specifier: ^8.3.0 + version: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) vitest: - specifier: ^4.1.9 - version: 4.1.9(@types/node@26.0.1)(@vitest/browser-playwright@4.1.9)(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + specifier: ^4.1.10 + version: 4.1.12(@types/node@26.6.6)(@vitest/browser-playwright@4.1.12)(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) vitest-browser-svelte: - specifier: ^2.1.1 - version: 2.1.1(svelte@5.56.3)(vitest@4.1.9) + specifier: ^3.1.0 + version: 3.1.0(svelte@5.57.3)(vitest@4.1.12) packages: '@blazediff/core@1.9.1': resolution: {integrity: sha512-ehg3jIkYKulZh+8om/O25vkvSsXXwC+skXmyA87FFx6A/45eqOkZsBltMw/TVteb0mloiGT8oGRTcjRAz66zaA==} - '@emnapi/core@1.10.0': - resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} - - '@emnapi/runtime@1.10.0': - resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} - - '@emnapi/wasi-threads@1.2.1': - resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} - - '@floating-ui/core@1.7.5': - resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==} + '@floating-ui/core@1.8.0': + resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} - '@floating-ui/dom@1.7.6': - resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==} + '@floating-ui/dom@1.8.0': + resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==} - '@floating-ui/utils@0.2.11': - resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==} + '@floating-ui/utils@0.2.12': + resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} - '@inquirer/ansi@2.0.7': - resolution: {integrity: sha512-3eTuUO1vH2cZm2ZKHeQxnOqlTi9EfZDGgIe3BL3I4u+rJHocr9Fz86M4fjYABPvFnQG/gGK551HqDiIcETwU6Q==} + '@inquirer/ansi@2.0.10': + resolution: {integrity: sha512-dwrc+1aqVZpHNkNDswXGtn1typ+Pxpo5FHZRyBw1le7onEJUkPUkYOY1FIFC1LvFMYUqqLuWBwElhAmencL7MQ==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - '@inquirer/confirm@6.1.1': - resolution: {integrity: sha512-eb8DBZcz/2qHWQda4rk2JiQk5h9QV/cVHi1yjt0f69WFZMRFn0sJTye3EAP8icut8UDMjQPsaH5KbcOogefrFQ==} + '@inquirer/confirm@6.3.5': + resolution: {integrity: sha512-BJ59BOyURiZiAxdr9AuRu38/k+rV+DcTIM2fUF/c/BXrab6H8zMZTTOl3LgkSJH96Xob2vOJxDiBkHiz32Xx2w==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -121,8 +115,8 @@ packages: '@types/node': optional: true - '@inquirer/core@11.2.1': - resolution: {integrity: sha512-Qd6GJT1yVyrZZCfN8W2qKF5ApmqryXRhRKCuip8h01x2w/esJQ2XIYc6f9abMIHgKQdBfFTSOdbHRLAhuM09UA==} + '@inquirer/core@12.0.6': + resolution: {integrity: sha512-5yxn2LsJ8Tu4ei2a+yNkmFRhM/cb+JMEsEs/AW6CCOnBnpMy4IjYiPMFyHtYq8weOmlTyqqCx40y0DsD7OsEPw==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -130,12 +124,12 @@ packages: '@types/node': optional: true - '@inquirer/figures@2.0.7': - resolution: {integrity: sha512-aJ8TBPOGB6f/2qziPfElISTCEd5XOYTFckA2SGjhNmiKzfK/u4ot3v0DUzGVdUnKjN10EqnnEPck36BkyfLnJw==} + '@inquirer/figures@2.0.10': + resolution: {integrity: sha512-51elrUJV3jZpvD0ygz8+U10Kc6+Lzqln+/tYmnbhy6jo5oXpE6hMCcv+OTBC0enwJXsb3JIuT3VtEinRNCSK2A==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - '@inquirer/type@4.0.7': - resolution: {integrity: sha512-t28inv14nMQ1PhKpsJPY+kEs/c00qzeCOS2gTNRyTjG5d6qsVA2fItxW4hkvGZ5lvanGLdtCzVIx5dwdRpN1+g==} + '@inquirer/type@4.2.1': + resolution: {integrity: sha512-lDkPsnv5M5CcYB2T1qTc3dobNTPkVr4DU3Ic2Q6SW8/qVRHgvzdRdmVZ6YqG9Ag1aJTeMsLU0s0WPRh3CZWDQQ==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -143,8 +137,8 @@ packages: '@types/node': optional: true - '@internationalized/date@3.12.2': - resolution: {integrity: sha512-FY1Y+H64NDs+HAF6omlnWxm3mEpfgaCSWtL5l551ZZfImA+kGjPFgrnJrGjH6lfmLL0g8Z/mBu1R3kufeCp6Jw==} + '@internationalized/date@3.12.4': + resolution: {integrity: sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==} '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -156,14 +150,14 @@ packages: resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.5.5': - resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@lucide/svelte@1.20.0': - resolution: {integrity: sha512-s7TKCHEtFEfflOUDPRC0WBZEjoNJHtj/aUmuWxopFe3AKecEoKvMmCaO0sBDkflok8nR0BCFsm44QF+S6/gc+w==} + '@lucide/svelte@1.70.0': + resolution: {integrity: sha512-zvx7K/WLxo82c4ZYqbsfcYUPDVFrq4561xH0NHfSHJJbajj0AONTQ14EO095/WnfI4XUEl1tyS/nbjQNNiNxdQ==} peerDependencies: svelte: ^5 @@ -171,12 +165,6 @@ packages: resolution: {integrity: sha512-VVPPgHyQ6ShqnrmDWuxjmUIsO9gWyOZFmuOfLd9LfBGQJwZfy0gvv9pbHSJuoFNIYC7ZDX9aoFwowjcdSC4E8w==} engines: {node: '>=18'} - '@napi-rs/wasm-runtime@1.1.5': - resolution: {integrity: sha512-AWPoBRJ9tsnVhor4sjO7rkni+7p+2IAEFj6cx06UgP10jkQHqay/36uRV/bFkgrh18D9vb4cr8Q0Pthskgzy+Q==} - peerDependencies: - '@emnapi/core': ^1.7.1 - '@emnapi/runtime': ^1.7.1 - '@open-draft/deferred-promise@2.2.0': resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==} @@ -189,125 +177,126 @@ packages: '@open-draft/until@2.1.0': resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} - '@oxc-project/types@0.133.0': - resolution: {integrity: sha512-KzkdCd6Uxqnf6l3HOw1xfatAlUURA0g14cvBYFyJ5SaNOQbOUvBr9PKArcPcrNIeRsBdgcUzOGrhKveVpvOIGA==} + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} - '@rolldown/binding-android-arm64@1.0.3': - resolution: {integrity: sha512-454rs7jHngixp/NMxd5srYD57OnzSlZ/eFTETjORQHLwJG1lRtmNOJcBerZlfu4GjKqeq8aCCIQrMdHyhI51Hw==} + '@rolldown/binding-android-arm-eabi@1.2.18': + resolution: {integrity: sha512-ubTG+4KlidvioxjOFdsdEa2F6JVGZb8m2ByJUqQ7fYzUeT1cEn194POcsQ10PKH4p//q0YQn4SB3YpSuzcA1Yg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.2.18': + resolution: {integrity: sha512-2Xa1t/JeFGTZn5TbzgPppcCftF8sCVnTNvrIvoSdcZhoFzAuVy1L3xxQUQ4sfWDtwVzg1u6Yi1R3SlJugRNV2Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.0.3': - resolution: {integrity: sha512-PcAhP+ynjURNyy8SKGl5DQP94aGuB/7JrXJb/t7P+hanXvQVMWzUvRRhBAcg/lNRadBhoUPqSoP4xw5tR/KBEA==} + '@rolldown/binding-darwin-arm64@1.2.18': + resolution: {integrity: sha512-iUzw9HshVvrWci9gVXjxWS7/M/IcLvNo67vu2c/w9zKBz4hIvPRixdUpIW/iCfhldLaq9ER2hecsI9UY5z0/yA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.0.3': - resolution: {integrity: sha512-9YpfeUvSE2RS7wysJ81uOZkXJz7f7Q55H2Gvp3VEw/EsahqDtrphrZ0EwDLK5vvKOzaCrBsjF8JmnMLcUt78Gg==} + '@rolldown/binding-darwin-x64@1.2.18': + resolution: {integrity: sha512-XuDHFzbFEtZl0QGJi92+fmG67tfnp1iZ9VOeDkwasGyTq2VG3/5PnJnvAr+MTzFh/rNScJ3VhN+XpZyyGsN7Jw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.0.3': - resolution: {integrity: sha512-yB1IlAsSNHncV6SCTL27/MVGR5htvQsoGxIv5KMGXALp+Ll1wYsn+x98M9MW7qa+NdSbvrrY7ANI4wLJ0n1e6g==} + '@rolldown/binding-freebsd-x64@1.2.18': + resolution: {integrity: sha512-MM8opLfsLK15oEXDz6iBc0t3ahu+ew9jsAmha+ovZ33hSwYgqo7YmpRITqFTfW7xA71BLEQ3jJdTsaCmhB1c9w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.0.3': - resolution: {integrity: sha512-Yi30IVAAfLUCy2MseFjbB1jAMDl1VMCAas5StnYp8da9+CKvMd2H2cbEjWcw5NPaPqzvYkVIaF1nNUG+b7u/sw==} + '@rolldown/binding-linux-arm-gnueabihf@1.2.18': + resolution: {integrity: sha512-J6EoCWiy5RnFQzHrKyHXXevZ9lukQfGpnchX/zG/k/WC2nc9O9XyS1JgA8kI9VxMFggMbCPjpv7LcikriXfehw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.0.3': - resolution: {integrity: sha512-jsO7R8To+AdlYgUmN5sHSCZbfhtMBkO0WUx8iORQnPcMMdgr7qM2DQmMwgabs3GhNztdmoKkMKQFHD6DTMCIQw==} + '@rolldown/binding-linux-arm64-gnu@1.2.18': + resolution: {integrity: sha512-HIkFuLF7CdDeki+1aCZLLbLq0hk/PHntb+z4/YCTo47JbksTD6jJEELIz92tYROmDmvMrNqUMqBi71BkJLDR+A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-musl@1.0.3': - resolution: {integrity: sha512-VWkUHwWriDciit80wleYwKILoR/KMvxh/IdwS/paX+ZgpuRpCrKLUdadJbc0NpBEiyhpYawsJ73j9aCvOH+f7Q==} + '@rolldown/binding-linux-arm64-musl@1.2.18': + resolution: {integrity: sha512-4oqWItLLYt7IceOnElCct8T2ek5p7PmD7LN04TRJRXGo5f3HtKTgGH6PhYRFK4C2ICkq/LMUU0BVPvvlAKhm8g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-ppc64-gnu@1.0.3': - resolution: {integrity: sha512-5f1laC0SlIR0yDbFCd8acUhvJIag6N3zC5P7oUPN6wX0aOma+uKJ0wBDH5aq7I1PVI2ttTlhJwzwRIBnLiSGEg==} + '@rolldown/binding-linux-ppc64-gnu@1.2.18': + resolution: {integrity: sha512-+AkRly5SrCEgnPhGRfub7pucASYEC2fTsxZg7VCcnozpA2+Wn/gCYy1t7LuJS67/xyJu/7noYBJncDUkbwgw2A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.0.3': - resolution: {integrity: sha512-Iq4ko0r4XsgbrF/LunNgHtAGLRRVE2kXonAXQ/MV0mC6jQpMOhW1SvtZja2EhC/kd05++bP78dsqBeIQyYJ6Yg==} + '@rolldown/binding-linux-s390x-gnu@1.2.18': + resolution: {integrity: sha512-Ttg1r9vVykMnQrE/GwYO9icKtXiuiMfRe/w74xJkeoVuvhRG+WtT6LEMOf58Yl63yd77lhHzO8Y55R8CC3XALA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.0.3': - resolution: {integrity: sha512-B8m6tD5+/N5FeNQFbKlLA/2yVq9ycQP1SeedyEYYKWBNR3ZQbkvIUcNnDNM03lO1l5F2roiiFJGgvoLLyZXtSg==} + '@rolldown/binding-linux-x64-gnu@1.2.18': + resolution: {integrity: sha512-xX1Tt4o5jUMma0vJsXp5eRZA9nOuyigb2dKJMMzZRmzMxLYGE9PaKKSqHPzPvSQgM8ZOEacSTQwDQcwWfh0xmQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-musl@1.0.3': - resolution: {integrity: sha512-pSdpdUJHkuCxun9LE7jvgUB9qsRgaiyNNCX7m/AvHTcq67AiT/Yhoxvw5zPfhrM8k/BfP8ce/hMOpthKDpEUow==} + '@rolldown/binding-linux-x64-musl@1.2.18': + resolution: {integrity: sha512-4VVlGI5K2kociZlW3lSN8VjG3TW5yQIlAcfCdBXMgGjJxZll15Fa4ocRHXHvIVVnwlibCw/NQajJrNDiqqpiiw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-openharmony-arm64@1.0.3': - resolution: {integrity: sha512-OXXS3RKJgX2uLwM+gYyuH5omcH8fL1LJs96pZGgtetVCahON57+d4SJHzTgZiOjxgGkSnpXpOsWuPDGAKAigEg==} + '@rolldown/binding-openharmony-arm64@1.2.18': + resolution: {integrity: sha512-PApTsgH1jLYuyy3tSCz9De82Gq5qXwi7vImVZhEzTgX1C4150Cp5M2ZfL3pLvbCvbEHL0oJeC6pd6podtv8Y5w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-wasm32-wasi@1.0.3': - resolution: {integrity: sha512-JTtb8BWFynicNSoPrehsCzBtOKjZ6jhMiPFEmOiuXg1Fl8dn2KHQob+GuPSGR0dryQa1PQJbzjF3dqO/whhjLg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [wasm32] - - '@rolldown/binding-win32-arm64-msvc@1.0.3': - resolution: {integrity: sha512-gEdFFEN70A/jxb2svrWsN3aDL7OUtmvlOy+6fa2jxG8K0wQ1ZbdeLGnidov6Yu5/733dI5ySfzFlQ/cb0bSz1g==} + '@rolldown/binding-win32-arm64-msvc@1.2.18': + resolution: {integrity: sha512-J2XjWjx/SP+4x0H4r6dz3Vzb5WVkg7re40Do9K7HJ3sK2/xcmZrWwakXlSwaMvOkvruLJCD4CL/3wqsIR/thgg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.0.3': - resolution: {integrity: sha512-eXB7CHuaQdqmJcc3koCNtNPmT/bj2gc999kUFgBxG8Ac0NdgXc4rkCHhqrgrhN3zddvvvrgzj1e90SuSfmyIXA==} + '@rolldown/binding-win32-x64-msvc@1.2.18': + resolution: {integrity: sha512-XwRJxRQvkuEtS0hIIt29QrqPJ+JzMJSNYHJw4ae/mc6uEarfRG1ceyg4HmmWiBdL/YCb6g7N5BLbSvmRJRYZHw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@rolldown/pluginutils@1.0.1': - resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@sveltejs/acorn-typescript@1.0.10': - resolution: {integrity: sha512-4WfKk68eTih+MiJD4fSbxN7E8kVBmTMPWHUPYjvl2N0rMs53YLTT8/YjKU5Dtnz5LqDjl7LEw4U7lXR2W3J5WA==} + '@sveltejs/acorn-typescript@1.0.13': + resolution: {integrity: sha512-wgKggnhZVL9Bfx1OaKKTrYY9BFRk6C8UAkQNUcIv1+llzYrIqy+RZm5HPKzn0NpEBvTVhTqB4kQyllZywsRBRQ==} peerDependencies: acorn: ^8.9.0 - '@sveltejs/adapter-static@3.0.10': - resolution: {integrity: sha512-7D9lYFWJmB7zxZyTE/qxjksvMqzMuYrrsyh1f4AlZqeZeACPRySjbC3aFiY55wb1tWUaKOQG9PVbm74JcN2Iew==} + '@sveltejs/adapter-static@3.0.11': + resolution: {integrity: sha512-DyX1bWx9uiPxzq7Mr+jnxqY+w3UhE3pYy5D1LcfdS++2KZTHSZBD60BoP44LjVgtGILfeOQCF8ESqzmLVrz4Ng==} peerDependencies: '@sveltejs/kit': ^2.0.0 - '@sveltejs/kit@2.65.1': - resolution: {integrity: sha512-Sa1rFYYqBB+zv3rIxAg/CsFskR/x4aj5BY/hvLxBd9r/mqbipxM945As1K3PqsDicJAyekPR0BlWoVIiw2OHYg==} + '@sveltejs/kit@2.70.4': + resolution: {integrity: sha512-IDfRnmSXgtlmv5Q+KyvP1HGr2XUvZooo0yBwzTnJA7CBbczy+sSMHXubfbcI9gz4EKksRSyYx44y/eCcf/B+rg==} engines: {node: '>=18.13'} hasBin: true peerDependencies: @@ -322,85 +311,84 @@ packages: typescript: optional: true - '@sveltejs/load-config@0.2.0': - resolution: {integrity: sha512-1LgZ/qUqSoq+QorD83lk2hka79Px0wXNW2q5V1nZlxGhQgw1jrsIbVz5YiCeucVLo4XvFLjXukUaQjIiqowkcg==} + '@sveltejs/load-config@0.2.3': + resolution: {integrity: sha512-VT3qmUb8pRV2QrZjd8iAmtg8lf4W0TIjZbvXtz5MKei/q96teWZgGJyyidJzOjzZzvdq616eSRVeMYIQChUTAQ==} engines: {node: '>= 18.0.0'} - '@sveltejs/vite-plugin-svelte@7.1.2': - resolution: {integrity: sha512-DrUBA2UXRfDmUX/ZTiEopd3X40yavsJF1FX2RygcuIScHL7o5YX1fMvoYnDhjeJQC4weCOklirpNWlcb2NiSeA==} + '@sveltejs/vite-plugin-svelte@7.3.1': + resolution: {integrity: sha512-ZPsLN8B1e/En+Ak5s4V7srFDT532oS0qieLsQwu63NGKsS+iAjoO2Js1BochlHlglcU+Pt7WAO3C5Ee+4f6gVA==} engines: {node: ^20.19 || ^22.12 || >=24} peerDependencies: svelte: ^5.46.4 vite: ^8.0.0-beta.7 || ^8.0.0 - '@swc/helpers@0.5.23': - resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==} + '@swc/helpers@0.5.24': + resolution: {integrity: sha512-6tcXo4kA8HgGO7AVmawB57RYi/piBPYVHVcO6dXjX+SZw8GoHmi262sp4v2Ha2kNP9Cx84qei27yT+fjS1lxgg==} - '@tailwindcss/node@4.3.1': - resolution: {integrity: sha512-6NDaqRoAMSXD1mr/RXu0HBvNE9a2n5tHPsxu9XHLws8o4Twes5rBM2205SUUiJ9goAtadrN6xTGX0UDEwp/N4A==} + '@tailwindcss/node@4.3.5': + resolution: {integrity: sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==} - '@tailwindcss/oxide-android-arm64@4.3.1': - resolution: {integrity: sha512-SVlyf61g374l5cHyg8x9kf5xmLcOaxvOTsbsqDnSsDJaKOEFZ7GCvi84VAVGpxojYOs1+3K6M0UjXfqPU8vmOQ==} + '@tailwindcss/oxide-android-arm64@4.3.5': + resolution: {integrity: sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==} engines: {node: '>= 20'} cpu: [arm64] os: [android] - '@tailwindcss/oxide-darwin-arm64@4.3.1': - resolution: {integrity: sha512-hVnWLwv+e/l7c4WKyVtHVrIPvYdqWHjRB3MDIqARynzFtnQg85kmQEFCbV9Ja0VVx4xXTIiDWY60Y7iz/iNoDA==} + '@tailwindcss/oxide-darwin-arm64@4.3.5': + resolution: {integrity: sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==} engines: {node: '>= 20'} cpu: [arm64] os: [darwin] - '@tailwindcss/oxide-darwin-x64@4.3.1': - resolution: {integrity: sha512-Cf7abu0WVgbhU7ANgPUnSAvm7nCvMweusHb8FnaHlLfv/Caq4GYaEZg7ZImzzmjx4lIAfuS8q+eLIS7A7IzxIg==} + '@tailwindcss/oxide-darwin-x64@4.3.5': + resolution: {integrity: sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==} engines: {node: '>= 20'} cpu: [x64] os: [darwin] - '@tailwindcss/oxide-freebsd-x64@4.3.1': - resolution: {integrity: sha512-ZZqzX2Y+GXtXXfqSfpJhDm60OoZfvLHLCgm+J7NVqgHHJjG/m9ugZI77RwTsVd4fnBJuCFP6Ae6kTJb71UdS8g==} + '@tailwindcss/oxide-freebsd-x64@4.3.5': + resolution: {integrity: sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==} engines: {node: '>= 20'} cpu: [x64] os: [freebsd] - '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.1': - resolution: {integrity: sha512-/Ah/xik0LaMYfv9DZ0S/t4pBlBNYOcqtRwusjgovHkvT8ixueWCLyJjsaF5kQIckjb4IT8Q6K6p/iPmZMixYgg==} + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': + resolution: {integrity: sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==} engines: {node: '>= 20'} cpu: [arm] os: [linux] - '@tailwindcss/oxide-linux-arm64-gnu@4.3.1': - resolution: {integrity: sha512-gqdFoVJlw444GvpnheZLHmvTzSxI/cOUUh2KSNejQjTcYkW062SVD+En0rUgD+QV91bz1XGIGtt1HJd48xUGbQ==} + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': + resolution: {integrity: sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==} engines: {node: '>= 20'} cpu: [arm64] os: [linux] libc: [glibc] - '@tailwindcss/oxide-linux-arm64-musl@4.3.1': - resolution: {integrity: sha512-Bwv9KwOvE0VKa86xPFif9b9c3Y1NxOV1P0gLti/IYaWEsQYZXDlxfGEtA8mdDZ7SG3wyNXAWYT5SIn3giL57oA==} + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': + resolution: {integrity: sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==} engines: {node: '>= 20'} cpu: [arm64] os: [linux] libc: [musl] - '@tailwindcss/oxide-linux-x64-gnu@4.3.1': - resolution: {integrity: sha512-Ymi8O8T15HYQdOUWUtTI6ldN0neHP85FC+Qz32xTcZ7iJXtem/x8ITev0o1e9e5rkqj4lONZfTRLvkmin1+tKg==} + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': + resolution: {integrity: sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==} engines: {node: '>= 20'} cpu: [x64] os: [linux] libc: [glibc] - '@tailwindcss/oxide-linux-x64-musl@4.3.1': - resolution: {integrity: sha512-M+P/91qJ6uILLw4k2G93GMDRAXj61SMvFQYt39AqvUqYgExXpLL5aepfns7sj4HiAQeolirQF9E0lzRvdf4zPQ==} + '@tailwindcss/oxide-linux-x64-musl@4.3.5': + resolution: {integrity: sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==} engines: {node: '>= 20'} cpu: [x64] os: [linux] libc: [musl] - '@tailwindcss/oxide-wasm32-wasi@4.3.1': - resolution: {integrity: sha512-zsM8uOeqvVGHsAXsJxsT28ttosFahLJKCLOTUBqRAtKnVgGSRitds9T432QiT8b77Yga7JIBkulIRRlJPtYhRA==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] + '@tailwindcss/oxide-wasm32-wasi@4.3.5': + resolution: {integrity: sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} bundledDependencies: - '@napi-rs/wasm-runtime' - '@emnapi/core' @@ -409,36 +397,33 @@ packages: - '@emnapi/wasi-threads' - tslib - '@tailwindcss/oxide-win32-arm64-msvc@4.3.1': - resolution: {integrity: sha512-aiNvSq9BsVk8V513lDKlrCFAgf8qBMPZTpgEhInL+NwQqs97mYmupVMrPrgBBSL8Pv/0zXu9MrMF9rMun1ZeNg==} + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': + resolution: {integrity: sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==} engines: {node: '>= 20'} cpu: [arm64] os: [win32] - '@tailwindcss/oxide-win32-x64-msvc@4.3.1': - resolution: {integrity: sha512-xDEyu1rg290472FEGaKHnzyDyh5QH+AlWvsU5hMoMtPpzmKlRI0jaYKCgSHDYtaQWZOYbMaduSyCwFwY4n1HmA==} + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': + resolution: {integrity: sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==} engines: {node: '>= 20'} cpu: [x64] os: [win32] - '@tailwindcss/oxide@4.3.1': - resolution: {integrity: sha512-yVPyo8RNkabVr3O2EhHEE0Rewu7YKzc1DhIqfL46LKveFrmu9XbDazNOJY7/GRuvw1h6u3utWnR29H/p5JPlgA==} + '@tailwindcss/oxide@4.3.5': + resolution: {integrity: sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==} engines: {node: '>= 20'} - '@tailwindcss/vite@4.3.1': - resolution: {integrity: sha512-hItDHuIIlEV61R+faXu66s1K36aTurO/Qw0e45Vskz57gXl9pWOT6eg3zmcEui6CZXddbN7zd41bwmvag4JGwQ==} + '@tailwindcss/vite@4.3.5': + resolution: {integrity: sha512-BCNiY0a1ZjdOHVqw7kyb7U72BwfMF3dfUuN+tQsLWky/J5JOI/r7abibglXfygrZhVO/3u3V+E25kkKTeMkXaQ==} peerDependencies: vite: ^5.2.0 || ^6 || ^7 || ^8 - '@testing-library/svelte-core@1.0.0': - resolution: {integrity: sha512-VkUePoLV6oOYwSUvX6ShA8KLnJqZiYMIbP2JW2t0GLWLkJxKGvuH5qrrZBV/X7cXFnLGuFQEC7RheYiZOW68KQ==} + '@testing-library/svelte-core@1.1.3': + resolution: {integrity: sha512-KkMAvXeWorxN2Yn0kdC1lfoAItxpoj4uOWzxK5leDrNxonLvS5nwBFvztrroyTszQ0Wf/EU6iLT8JhY5qcn22g==} engines: {node: '>=16'} peerDependencies: svelte: ^3 || ^4 || ^5 || ^5.0.0-next.0 - '@tybys/wasm-util@0.10.2': - resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==} - '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} @@ -448,14 +433,11 @@ packages: '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + '@types/estree@1.0.10': + resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} - '@types/node@25.9.3': - resolution: {integrity: sha512-603BddQMv3pUcr4U2dhujk83N2tTDVr/34wII2B6bJy6g+8WD6yUb11jszNs0gdi4PesVWl7ABt8nYMVpnLUcg==} - - '@types/node@26.0.1': - resolution: {integrity: sha512-fc3KiUoBt6kie0N9bIW3E47vZsuaMf0PM2AaUpLCLT0s/LvX1nxAim6Fc049cNxODPpGm6qRAuUOB86SkRuPQw==} + '@types/node@26.6.6': + resolution: {integrity: sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==} '@types/set-cookie-parser@2.4.10': resolution: {integrity: sha512-GGmQVGpQWUe5qglJozEjZV/5dyxbOOZ0LHe/lqyWssB88Y4svNfst0uqBVscdDeIKl5Jy5+aPSvy7mI9tYRguw==} @@ -463,25 +445,22 @@ packages: '@types/statuses@2.0.6': resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==} - '@types/trusted-types@2.0.7': - resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} - - '@vitest/browser-playwright@4.1.9': - resolution: {integrity: sha512-Bq1rOGf9waevzG3EOkO/dene6bvKTUsZMVg8S1i+WH3JcMjuXEjiahP9rAqZRELUqjBySOJsvvSWqK/B3wjKQw==} + '@vitest/browser-playwright@4.1.12': + resolution: {integrity: sha512-bU/TcyiBwFUijaIltxKXxgpQmLu9njO/t6G9wiD2LjSFX6SfmyUOf+pOJ8N26KsvhFOHWfVdzNS6P62ab/ONlA==} peerDependencies: playwright: '*' - vitest: 4.1.9 + vitest: 4.1.12 - '@vitest/browser@4.1.9': - resolution: {integrity: sha512-j1BKtWmPcqpMhmx/L9EPLgAJpCb0zKfwoWLmqBbxaogCXHjOwHFSEoHCBfnGtx93xKQwilZ26m+UOsHqHMkRNg==} + '@vitest/browser@4.1.12': + resolution: {integrity: sha512-Yl/6JIxJrcMlWMqKPoRkMhZy9sDpaAXdSJ+90hMVEJVE94tVysjp34SXTwCXJSIXjAtW2ha33qEjMeGG0G/Z0Q==} peerDependencies: - vitest: 4.1.9 + vitest: 4.1.12 - '@vitest/expect@4.1.9': - resolution: {integrity: sha512-vl/rYsUKcBr3SnQn166+XR5ZQcgMx3DQhFWdfli/cWpLnLUmbxZvyrJZotLFUryib+LtArYMSTJ5RbQ57ZqrlA==} + '@vitest/expect@4.1.12': + resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==} - '@vitest/mocker@4.1.9': - resolution: {integrity: sha512-EVkXzBjrPGM+cK8/ANWgBrkUCfJfb38/EfTSO8h7pWvKkyPkpWxvR7BkD2MyItMF62C97zAEoqdpUixwR/e+Rw==} + '@vitest/mocker@4.1.12': + resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==} peerDependencies: msw: ^2.4.9 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -491,23 +470,23 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.9': - resolution: {integrity: sha512-s0iufns3iIFitdgm+YR7g1whCAaGtXz459VS9/PqyKDEEFgYIhsHOQmXgIgDuYCt7DeQmiZT0Qe2OA2p4ZPu5A==} + '@vitest/pretty-format@4.1.12': + resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} - '@vitest/runner@4.1.9': - resolution: {integrity: sha512-KXLMDtc7oe70+3mJfGrPUWPesswH+3sTxAMAMl8DG7I8IUQT4XW718dY5ID3vPUcmlu27CcKfY4P3h3I29SLJg==} + '@vitest/runner@4.1.12': + resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==} - '@vitest/snapshot@4.1.9': - resolution: {integrity: sha512-Jc7RKGNBo8Z28WYIm0Niej4xdSPByRf6mU58VpHQkd6Zh05rlnA+twjbK5HyeIGHxrzsc3mJgS43uM0CZKzaIA==} + '@vitest/snapshot@4.1.12': + resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} - '@vitest/spy@4.1.9': - resolution: {integrity: sha512-fHpsS6mIi+PiEW+vcRVOMkX1oSaPKne3VOclSFICPcGOmfKgXPU5iAah+wcNcj2xPrCCmfq99IDGf+EojhhvhA==} + '@vitest/spy@4.1.12': + resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==} - '@vitest/utils@4.1.9': - resolution: {integrity: sha512-A51o8ymO5PpqlWNnBP9ZHPXDIpuMtTLlGSjN7la4US+LJzoUMyhwjA5QXlm39JexgwHKW4Xjs8Z2d3dLCXOeuA==} + '@vitest/utils@4.1.12': + resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} - acorn@8.17.0: - resolution: {integrity: sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==} + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} engines: {node: '>=0.4.0'} hasBin: true @@ -531,15 +510,15 @@ packages: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} - bits-ui@2.18.1: - resolution: {integrity: sha512-KkemzKFH4T3gt3H+P86JcnAWExjByv/6vlwjm/BoCwTPHu03yiCdxbghdJLvFReQTe0acCAiRcKfmixxD6XvlA==} + bits-ui@2.20.6: + resolution: {integrity: sha512-V4fgaFAtw+d8xS+3SBuLqouDsAo06991oJnW3hdEx0O1O/sl+BGLKKdZ0i4ZI1mgqT0JXJJ+6avI750OkvgZrA==} engines: {node: '>=20'} peerDependencies: '@internationalized/date': ^3.8.1 svelte: ^5.33.0 - chai@6.2.2: - resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} chokidar@4.0.3: @@ -558,6 +537,11 @@ packages: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} + cn@0.3.3: + resolution: {integrity: sha512-OEiyJkSpYm2kOuNOKQ+c2wmzZRG8orrb9fnObtHTbCGNx/E9KLnGcmcocItOzREKk5KzQN5I2e3BUCj563KEpw==} + engines: {node: '>=20'} + hasBin: true + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -572,16 +556,16 @@ packages: convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - cookie@0.6.0: - resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} cookie@1.1.1: resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} engines: {node: '>=18'} - cropperjs@1.6.2: - resolution: {integrity: sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==} + cropperjs@1.7.0: + resolution: {integrity: sha512-AkGnZxr7xAJBa63ObXq5ZKLkh9c8wisC+Ym8VzIDn3KZ+6qRTbBnOl2w2dFOTMzLP5IcfOpEK9PICDywNXhncg==} deepmerge@4.3.1: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} @@ -595,18 +579,18 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} - devalue@5.8.1: - resolution: {integrity: sha512-4CXDYRBGqN+57wVJkuXBYmpAVUSg3L6JAQa/DFqm238G73E1wuyc/JhGQJzN7vUf/CMphYau2zXbfWzDR5aTEw==} + devalue@5.9.4: + resolution: {integrity: sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg==} emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - enhanced-resolve@5.21.6: - resolution: {integrity: sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==} + enhanced-resolve@5.26.1: + resolution: {integrity: sha512-PPnnSJq3azKOIewXR/uppBV/6h98dprBJ/WaQ9Qgj10xX1lJLNfg+XShpbsrSqcDSy2yYYyhfXM1wWhftqgyzw==} engines: {node: '>=10.13.0'} - es-module-lexer@2.1.0: - resolution: {integrity: sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==} + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} @@ -615,8 +599,8 @@ packages: esm-env@1.2.2: resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==} - esrap@2.2.11: - resolution: {integrity: sha512-gPdx+I+BjYEinNMQaBXFjbaJVyoPMU4ZODg5mE+M4DqVG9VusAVHHjcBX+zqyITlI0DIARwDMMzZwAWj36dRoQ==} + esrap@2.4.0: + resolution: {integrity: sha512-CQPcneEHw/czj32uwQC52nYnax8H4SXt25FCM+LIwGZ49cMIxpOj3bP8wmzcI+Z0HIy5KkClaPhRLfCySzwHPA==} peerDependencies: '@typescript-eslint/types': ^8.2.0 peerDependenciesMeta: @@ -626,8 +610,8 @@ packages: estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - expect-type@1.3.0: - resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} fast-string-truncated-width@3.0.3: @@ -648,11 +632,6 @@ packages: picomatch: optional: true - fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -665,8 +644,8 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - graphql@16.14.2: - resolution: {integrity: sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==} + graphql@16.15.0: + resolution: {integrity: sha512-32kz9FecohDiC/tgcViwnRXM7HFBVTPiW7pHO+DikKOI5KjhU/jNULOReXsrFqt2WAYbE9xFXsTffJw6iTO8qw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} headers-polyfill@5.0.1: @@ -693,78 +672,78 @@ packages: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} engines: {node: '>=6'} - lightningcss-android-arm64@1.32.0: - resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [android] - lightningcss-darwin-arm64@1.32.0: - resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==} + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [darwin] - lightningcss-darwin-x64@1.32.0: - resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==} + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [darwin] - lightningcss-freebsd-x64@1.32.0: - resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==} + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [freebsd] - lightningcss-linux-arm-gnueabihf@1.32.0: - resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==} + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} engines: {node: '>= 12.0.0'} cpu: [arm] os: [linux] - lightningcss-linux-arm64-gnu@1.32.0: - resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==} + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] libc: [glibc] - lightningcss-linux-arm64-musl@1.32.0: - resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==} + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] libc: [musl] - lightningcss-linux-x64-gnu@1.32.0: - resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==} + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] libc: [glibc] - lightningcss-linux-x64-musl@1.32.0: - resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==} + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] libc: [musl] - lightningcss-win32-arm64-msvc@1.32.0: - resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==} + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [win32] - lightningcss-win32-x64-msvc@1.32.0: - resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==} + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [win32] - lightningcss@1.32.0: - resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==} + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} locate-character@3.0.0: @@ -777,6 +756,9 @@ packages: magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} + mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} @@ -799,16 +781,16 @@ packages: resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==} engines: {node: ^20.17.0 || >=22.9.0} - nanoid@3.3.12: - resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==} + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true node-fetch-native@1.6.7: resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==} - obug@2.1.3: - resolution: {integrity: sha512-9miFgM2OFba7hB+pRgvtV84pYTBaoTHohvmIgiRt6dRIzbwEOIaNaP+dIlGs2fNFoB0SeISs0Jz5WFVRid6Xyg==} + obug@2.2.1: + resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} engines: {node: '>=12.20.0'} outvariant@1.4.3: @@ -823,26 +805,26 @@ packages: picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - picomatch@4.0.4: - resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} - playwright-core@1.61.0: - resolution: {integrity: sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA==} - engines: {node: '>=18'} + playwright-core@1.65.0: + resolution: {integrity: sha512-vNSKgH6YqtN7cdT/L334zo0a+YwkrpicyrHJlWWPIm/Q+Nn2SWInil01oT0mbu96U4GgoRtCYQD9CzJQgju+lA==} + engines: {node: '>=20'} hasBin: true - playwright@1.61.0: - resolution: {integrity: sha512-Z+7BeeqQPRRzklHsVFP4KTGIyMxKUmfeRA4WisM6G3/XW6nwGeX6fX9qYaDa+CiUqpOkb2f6X3nar05R3kSuJQ==} - engines: {node: '>=18'} + playwright@1.65.0: + resolution: {integrity: sha512-F3AMWcR44qMBt4kq+6Kb6mX7bjGXshktKFOPULd7reED6ZJWevjbNRqysP7q+AATE9kdPEZBibex1BYsvpVoeA==} + engines: {node: '>=20'} hasBin: true pngjs@7.0.0: resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==} engines: {node: '>=14.19.0'} - postcss@8.5.15: - resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==} + postcss@8.5.32: + resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} engines: {node: ^10 || ^12 || >=14} readdirp@4.1.2: @@ -853,19 +835,14 @@ packages: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - rettime@0.11.11: - resolution: {integrity: sha512-ILJRqVWBCTlg9r42fFgwVZx1gnFAcQF8mRoMkbgQfIrjEDf9nbBFDFx00oloOa+Q869FUtaYDXZvEfnecQSCoQ==} + rettime@0.11.12: + resolution: {integrity: sha512-5ExtR1ppiDBQkVoPw5NAqdbfH4Iq2VOmQKHMtUoaFxA9bo2krzFYBtyq6K40xxbYp+2w/YOr6D+1ToF6tTN53A==} - rolldown@1.0.3: - resolution: {integrity: sha512-i00lAJ2ks1BYr7rjNjKC7BcqAS7nVfiT3QX1SI5aY+AFHblCmaUf9OE9dbdzDvW6dJxbi2ZCZiy9v3CcwOiX3g==} + rolldown@1.2.18: + resolution: {integrity: sha512-C1uuT3UR60SShuCaPQFAAZyefJCWZlAKB02BV3BuPE2Rs4fevRQltEKoFO2tV5W9/eJhU5RieV6vJj3euulfNQ==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - runed@0.28.0: - resolution: {integrity: sha512-k2xx7RuO9hWcdd9f+8JoBeqWtYrm5CALfgpkg2YDB80ds/QE4w0qqu34A7fqiAwiBBSBQOid7TLxwxVC27ymWQ==} - peerDependencies: - svelte: ^5.7.0 - runed@0.35.1: resolution: {integrity: sha512-2F4Q/FZzbeJTFdIS/PuOoPRSm92sA2LhzTnv6FXhCoENb3huf5+fDuNOg1LNvGOouy3u/225qxmuJvcV3IZK5Q==} peerDependencies: @@ -879,11 +856,11 @@ packages: resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} engines: {node: '>=6'} - set-cookie-parser@3.1.0: - resolution: {integrity: sha512-kjnC1DXBHcxaOaOXBHBeRtltsDG2nUiUni+jP92M9gYdW12rsmx92UsfpH7o5tDRs7I1ZZPSQJQGv3UaRfCiuw==} + set-cookie-parser@3.2.2: + resolution: {integrity: sha512-df017qMeYuXo4emL09nlyMpi2i2MtEIKS/6jtXH3vmjFgIRsOi852/5RmhJ4EkvN3ZF8jXadM/EkTPXgc8yPIw==} - shadcn-svelte@1.3.0: - resolution: {integrity: sha512-Pd4ICWTkTks/b2YU4c9vF2XsX1x5HFPRl5bKszS1LcnWS83x+7T4WiIvbWz8Qh9knkcGZ+SCz1+Dmhdq+AYooA==} + shadcn-svelte@1.7.2: + resolution: {integrity: sha512-VcFgfCupRK58kVuNrobWz+Smv0wryxW1bNZYvrMqYbm7gOfTEIb/Jy7C6y0N8Ry3/d0oAzvTRPzFu2V8u0nhMA==} hasBin: true peerDependencies: svelte: ^5.0.0 @@ -899,8 +876,8 @@ packages: resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==} engines: {node: '>=18'} - source-map-js@1.2.1: - resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'} stackback@0.0.2: @@ -910,8 +887,8 @@ packages: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} - std-env@4.1.0: - resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==} + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} strict-event-emitter@0.5.1: resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==} @@ -927,51 +904,53 @@ packages: style-to-object@1.0.14: resolution: {integrity: sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==} - svelte-check@4.7.1: - resolution: {integrity: sha512-FGUOmAqxXdN/H9Zm8slrqO7SLtFisXRB7rfOsHNJ3MLTD2po/+Stg8XyErkpumPHbuUiYTcqrEIzxpVWKTLqtg==} + svelte-check@4.7.8: + resolution: {integrity: sha512-laZ49GFHZ3b0z2PWinJWL0syehc/PTR8aHaUaTiBkWJ+4Y38nhxjmXsSz7CbGa3VdKopViVbrBH3bGNqIAI0bQ==} engines: {node: '>= 18.0.0'} hasBin: true peerDependencies: svelte: ^4.0.0 || ^5.0.0-next.0 - typescript: '>=5.0.0' + typescript: ^5.0.0 || ^6.0.0 - svelte-sonner@1.1.1: - resolution: {integrity: sha512-5cd3p7wa4cq0NsqslMwdlPb7x1JglEZ/GKrLePWNr5bCxR1nagAVrY01FRFrXfUGs41miLt3C327+8XJo5BzZw==} + svelte-sonner@1.2.3: + resolution: {integrity: sha512-SjQaDI/k6L/ordD2w84XOkGv3kaZwyGRsJzR+lHW097/aJCaydvp63VblMTFsrakm58BxRjUSySK/BWH9jdY1Q==} peerDependencies: svelte: ^5.0.0 - svelte-toolbelt@0.10.6: - resolution: {integrity: sha512-YWuX+RE+CnWYx09yseAe4ZVMM7e7GRFZM6OYWpBKOb++s+SQ8RBIMMe+Bs/CznBMc0QPLjr+vDBxTAkozXsFXQ==} + svelte-toolbelt@0.10.7: + resolution: {integrity: sha512-gjuUVEEpo38UJCeI1ssE3NxG31tYENczPTcTGTXf4338qAQNdR9I1oAEbQY0KQFmbdUojNIhHuRNix7ThwFNxQ==} engines: {node: '>=18', pnpm: '>=8.7.0'} peerDependencies: svelte: ^5.30.2 - svelte@5.56.3: - resolution: {integrity: sha512-w7JvrM5IFl5cmfbY0TLik9o7mjRUJmRMhOR51tBPu708Gr/MjbGs7VnJnr/B0CaXeI4vtnOh7RKxDr0cwhMdDA==} + svelte@5.57.3: + resolution: {integrity: sha512-5mAftM3SoDV9X0zdF386F9p2pv8iKOwi/KfBS1XnBAkVCKFzVOLHUoa8iGWAt4buoicLmyWVRpuuD5wplXOQsg==} engines: {node: '>=18'} - tabbable@6.4.0: - resolution: {integrity: sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==} + tabbable@6.5.1: + resolution: {integrity: sha512-dMCuwDUY6Noz3zVKLefBC4wq+aJV20yc7vWmM7uTNGwtQSFF5kX7OUIUsxuVajz/bdt5Xqdah3/0NLjth+cM5A==} tagged-tag@1.0.0: resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==} engines: {node: '>=20'} - tailwind-merge@3.6.0: - resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==} + tailwind-merge@3.7.0: + resolution: {integrity: sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==} - tailwind-variants@3.2.2: - resolution: {integrity: sha512-Mi4kHeMTLvKlM98XPnK+7HoBPmf4gygdFmqQPaDivc3DpYS6aIY6KiG/PgThrGvii5YZJqRsPz0aPyhoFzmZgg==} - engines: {node: '>=16.x', pnpm: '>=7.x'} + tailwind-variants@3.3.1: + resolution: {integrity: sha512-4pAvwUtM4HKBiRZftncAbpn6V9Hhwoa5Fl7O2u5zbp7Z5Cvu+/o/6+176WY3WCEES209543quG8zFIcXCsc5Jw==} + engines: {node: '>=16.9.x', pnpm: '>=7.x'} peerDependencies: tailwind-merge: '>=3.0.0' tailwindcss: '*' peerDependenciesMeta: tailwind-merge: optional: true + tailwindcss: + optional: true - tailwindcss@4.3.1: - resolution: {integrity: sha512-hk+TB1m+K8CYNrP6rjQaq/Y+4Zylwpa87mLYBKCunwnnQ9p+fHb7kmSfGqyEJoxF/O6CDyABWVFEafNSYKll+Q==} + tailwindcss@4.3.5: + resolution: {integrity: sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==} tapable@2.3.3: resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} @@ -980,41 +959,38 @@ packages: tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@1.2.4: - resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} + tinyexec@1.3.1: + resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} engines: {node: '>=18'} tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} - tinyrainbow@3.1.0: - resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} engines: {node: '>=14.0.0'} - tldts-core@7.4.3: - resolution: {integrity: sha512-27ep5H9PzdBrNd5OFM/j3WCU8F3kPwM9D0BOaOf7uYfxMJfyr0K5Tjj69Gri+sZlh2WXd5buIm47NuPF29CDiw==} + tldts-core@7.4.20: + resolution: {integrity: sha512-C630TWXZCZmLq0F2bW4QqwnaaxCQ/svpAqvJwnC4JvgEM5ohhBnGsEzTLSOXcN+xjz+kEaHS5uoWIw2klnqd0A==} - tldts@7.4.3: - resolution: {integrity: sha512-A3BDQBeeukYPzB4QdQ1DtdlUmp4x2OCH8n5UVhEWbyANxNep8GavottKzd1xYKFJKjUgMyPT7EzOfnBO55s8Sg==} + tldts@7.4.19: + resolution: {integrity: sha512-48dH6aSpQnpbzDUc4vIQZ1VjB8tkK+e8c1yx05/SZK+rkssgjEOlxDd/yU8/a4vGYQ9vRgJr9dwMq9TJ0b3X2Q==} hasBin: true totalist@3.0.1: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} engines: {node: '>=6'} - tough-cookie@6.0.1: - resolution: {integrity: sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==} + tough-cookie@6.1.0: + resolution: {integrity: sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==} engines: {node: '>=16'} - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - tw-animate-css@1.4.0: resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} - type-fest@5.7.0: - resolution: {integrity: sha512-1URUxUqfHFM1c+zfSPsa3gnkO7Aq21qyH75SIduNYz4SzY964rn1X2vCMQaHSHhktiw+0kPa2iyb6PUpXqB6Vg==} + type-fest@5.10.0: + resolution: {integrity: sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA==} engines: {node: '>=20'} typescript@5.9.3: @@ -1022,22 +998,19 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.24.6: - resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} - - undici-types@8.3.0: - resolution: {integrity: sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==} + undici-types@8.9.0: + resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==} until-async@3.0.2: resolution: {integrity: sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw==} - vite@8.0.16: - resolution: {integrity: sha512-h9bXPmJichP5fLmVQo3PyaGSDE2n3aPuomeAlVRm0JLmt4rY6zmPKd59HYI4LNW8oTK7tlTsuC7l/m7awx9Jcw==} + vite@8.3.7: + resolution: {integrity: sha512-oxh0dMxrayBr33ScJvvBJ2HBQ2jc1TBrXKR2NyL/MJ9WPuX19mN2DXWUmywKdyw5RFVQBo8hmtb2FMC0LHrnng==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.1.18 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 esbuild: ^0.27.0 || ^0.28.0 jiti: '>=1.21.0' less: ^4.0.0 @@ -1082,26 +1055,26 @@ packages: vite: optional: true - vitest-browser-svelte@2.1.1: - resolution: {integrity: sha512-qbunYRSm+N92r9bfTkdDTpBZESLmp4QFz2SluV3n/x8U7ysosfeXYJZ4vXbJ0Y0LzoqqDnV5LHprmFgn4Eo+Ug==} + vitest-browser-svelte@3.1.0: + resolution: {integrity: sha512-+EBXSed6NArmzOC2DY4v9sI5n9TMIyfkMnewbXNQ7sR5IckQTCx7g1BbLdkH7kzm/tkgG/eEbRYlMWSbVfBtWA==} peerDependencies: svelte: ^3 || ^4 || ^5 || ^5.0.0-next.0 - vitest: ^4.0.0 + vitest: ^4.0.0 || ^5.0.0 - vitest@4.1.9: - resolution: {integrity: sha512-nE3/LEyc0z87uHYLZebqCUOaJr2hdtuPp7BQ4BosVFnfltxgAvMG08NyrSGlPpOUWvR27c5flSmYFTNr78L9GQ==} + vitest@4.1.12: + resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==} engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.9 - '@vitest/browser-preview': 4.1.9 - '@vitest/browser-webdriverio': 4.1.9 - '@vitest/coverage-istanbul': 4.1.9 - '@vitest/coverage-v8': 4.1.9 - '@vitest/ui': 4.1.9 + '@vitest/browser-playwright': 4.1.12 + '@vitest/browser-preview': 4.1.12 + '@vitest/browser-webdriverio': ^4.1.11 + '@vitest/coverage-istanbul': 4.1.12 + '@vitest/coverage-v8': 4.1.12 + '@vitest/ui': 4.1.12 happy-dom: '*' jsdom: '*' vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1138,8 +1111,8 @@ packages: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} - ws@8.21.0: - resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} + ws@8.22.2: + resolution: {integrity: sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -1158,83 +1131,67 @@ packages: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} - yargs@17.7.2: - resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + yargs@17.7.3: + resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==} engines: {node: '>=12'} - zimmerframe@1.1.4: - resolution: {integrity: sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==} + zimmerframe@1.1.5: + resolution: {integrity: sha512-msJxIvYDYcoNL+PJsu+7qmpDWsYmAxTY+2TNYXXF0hzBzBk0BMecOqDOG/EckUoKCuKwObfbugIl8QpqHDXeFA==} snapshots: '@blazediff/core@1.9.1': {} - '@emnapi/core@1.10.0': + '@floating-ui/core@1.8.0': dependencies: - '@emnapi/wasi-threads': 1.2.1 - tslib: 2.8.1 - optional: true + '@floating-ui/utils': 0.2.12 - '@emnapi/runtime@1.10.0': + '@floating-ui/dom@1.8.0': dependencies: - tslib: 2.8.1 - optional: true + '@floating-ui/core': 1.8.0 + '@floating-ui/utils': 0.2.12 - '@emnapi/wasi-threads@1.2.1': - dependencies: - tslib: 2.8.1 - optional: true - - '@floating-ui/core@1.7.5': - dependencies: - '@floating-ui/utils': 0.2.11 - - '@floating-ui/dom@1.7.6': - dependencies: - '@floating-ui/core': 1.7.5 - '@floating-ui/utils': 0.2.11 + '@floating-ui/utils@0.2.12': {} - '@floating-ui/utils@0.2.11': {} - - '@inquirer/ansi@2.0.7': + '@inquirer/ansi@2.0.10': optional: true - '@inquirer/confirm@6.1.1(@types/node@26.0.1)': + '@inquirer/confirm@6.3.5(@types/node@26.6.6)': dependencies: - '@inquirer/core': 11.2.1(@types/node@26.0.1) - '@inquirer/type': 4.0.7(@types/node@26.0.1) + '@inquirer/core': 12.0.6(@types/node@26.6.6) + '@inquirer/type': 4.2.1(@types/node@26.6.6) optionalDependencies: - '@types/node': 26.0.1 + '@types/node': 26.6.6 optional: true - '@inquirer/core@11.2.1(@types/node@26.0.1)': + '@inquirer/core@12.0.6(@types/node@26.6.6)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@26.0.1) + '@inquirer/ansi': 2.0.10 + '@inquirer/figures': 2.0.10 + '@inquirer/type': 4.2.1(@types/node@26.6.6) cli-width: 4.1.0 fast-wrap-ansi: 0.2.2 mute-stream: 3.0.0 signal-exit: 4.1.0 optionalDependencies: - '@types/node': 26.0.1 + '@types/node': 26.6.6 optional: true - '@inquirer/figures@2.0.7': + '@inquirer/figures@2.0.10': optional: true - '@inquirer/type@4.0.7(@types/node@26.0.1)': + '@inquirer/type@4.2.1(@types/node@26.6.6)': optionalDependencies: - '@types/node': 26.0.1 + '@types/node': 26.6.6 optional: true - '@internationalized/date@3.12.2': + '@internationalized/date@3.12.4': dependencies: - '@swc/helpers': 0.5.23 + '@swc/helpers': 0.5.24 '@jridgewell/gen-mapping@0.3.13': dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 '@jridgewell/trace-mapping': 0.3.31 '@jridgewell/remapping@2.3.5': @@ -1244,16 +1201,16 @@ snapshots: '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/sourcemap-codec@1.5.5': {} + '@jridgewell/sourcemap-codec@1.6.0': {} '@jridgewell/trace-mapping@0.3.31': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 - '@lucide/svelte@1.20.0(svelte@5.56.3)': + '@lucide/svelte@1.70.0(svelte@5.57.3)': dependencies: - svelte: 5.56.3 + svelte: 5.57.3 '@mswjs/interceptors@0.41.9': dependencies: @@ -1265,13 +1222,6 @@ snapshots: strict-event-emitter: 0.5.1 optional: true - '@napi-rs/wasm-runtime@1.1.5(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@tybys/wasm-util': 0.10.2 - optional: true - '@open-draft/deferred-promise@2.2.0': optional: true @@ -1287,182 +1237,171 @@ snapshots: '@open-draft/until@2.1.0': optional: true - '@oxc-project/types@0.133.0': {} + '@oxc-project/types@0.156.0': {} '@polka/url@1.0.0-next.29': {} - '@rolldown/binding-android-arm64@1.0.3': + '@rolldown/binding-android-arm-eabi@1.2.18': optional: true - '@rolldown/binding-darwin-arm64@1.0.3': + '@rolldown/binding-android-arm64@1.2.18': optional: true - '@rolldown/binding-darwin-x64@1.0.3': + '@rolldown/binding-darwin-arm64@1.2.18': optional: true - '@rolldown/binding-freebsd-x64@1.0.3': + '@rolldown/binding-darwin-x64@1.2.18': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.0.3': + '@rolldown/binding-freebsd-x64@1.2.18': optional: true - '@rolldown/binding-linux-arm64-gnu@1.0.3': + '@rolldown/binding-linux-arm-gnueabihf@1.2.18': optional: true - '@rolldown/binding-linux-arm64-musl@1.0.3': + '@rolldown/binding-linux-arm64-gnu@1.2.18': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.0.3': + '@rolldown/binding-linux-arm64-musl@1.2.18': optional: true - '@rolldown/binding-linux-s390x-gnu@1.0.3': + '@rolldown/binding-linux-ppc64-gnu@1.2.18': optional: true - '@rolldown/binding-linux-x64-gnu@1.0.3': + '@rolldown/binding-linux-s390x-gnu@1.2.18': optional: true - '@rolldown/binding-linux-x64-musl@1.0.3': + '@rolldown/binding-linux-x64-gnu@1.2.18': optional: true - '@rolldown/binding-openharmony-arm64@1.0.3': + '@rolldown/binding-linux-x64-musl@1.2.18': optional: true - '@rolldown/binding-wasm32-wasi@1.0.3': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@napi-rs/wasm-runtime': 1.1.5(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) + '@rolldown/binding-openharmony-arm64@1.2.18': optional: true - '@rolldown/binding-win32-arm64-msvc@1.0.3': + '@rolldown/binding-win32-arm64-msvc@1.2.18': optional: true - '@rolldown/binding-win32-x64-msvc@1.0.3': + '@rolldown/binding-win32-x64-msvc@1.2.18': optional: true - '@rolldown/pluginutils@1.0.1': {} + '@rolldown/pluginutils@1.1.0': {} '@standard-schema/spec@1.1.0': {} - '@sveltejs/acorn-typescript@1.0.10(acorn@8.17.0)': + '@sveltejs/acorn-typescript@1.0.13(acorn@8.19.0)': dependencies: - acorn: 8.17.0 + acorn: 8.19.0 - '@sveltejs/adapter-static@3.0.10(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))': + '@sveltejs/adapter-static@3.0.11(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))': dependencies: - '@sveltejs/kit': 2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + '@sveltejs/kit': 2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) - '@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))': + '@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))': dependencies: '@standard-schema/spec': 1.1.0 - '@sveltejs/acorn-typescript': 1.0.10(acorn@8.17.0) - '@sveltejs/vite-plugin-svelte': 7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + '@sveltejs/acorn-typescript': 1.0.13(acorn@8.19.0) + '@sveltejs/vite-plugin-svelte': 7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) '@types/cookie': 0.6.0 - acorn: 8.17.0 - cookie: 0.6.0 - devalue: 5.8.1 + acorn: 8.19.0 + cookie: 0.7.2 + devalue: 5.9.4 esm-env: 1.2.2 kleur: 4.1.5 magic-string: 0.30.21 mrmime: 2.0.1 - set-cookie-parser: 3.1.0 + set-cookie-parser: 3.2.2 sirv: 3.0.2 - svelte: 5.56.3 - vite: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) + svelte: 5.57.3 + vite: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) optionalDependencies: typescript: 5.9.3 - '@sveltejs/load-config@0.2.0': {} + '@sveltejs/load-config@0.2.3': {} - '@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))': + '@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))': dependencies: deepmerge: 4.3.1 - magic-string: 0.30.21 - obug: 2.1.3 - svelte: 5.56.3 - vite: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) - vitefu: 1.1.3(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + magic-string: 1.4.5 + obug: 2.2.1 + svelte: 5.57.3 + vite: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) + vitefu: 1.1.3(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) - '@swc/helpers@0.5.23': - dependencies: - tslib: 2.8.1 + '@swc/helpers@0.5.24': {} - '@tailwindcss/node@4.3.1': + '@tailwindcss/node@4.3.5': dependencies: '@jridgewell/remapping': 2.3.5 - enhanced-resolve: 5.21.6 + enhanced-resolve: 5.26.1 jiti: 2.7.0 - lightningcss: 1.32.0 - magic-string: 0.30.21 - source-map-js: 1.2.1 - tailwindcss: 4.3.1 + lightningcss: 1.33.0 + magic-string: 1.4.5 + source-map-js: 1.2.2 + tailwindcss: 4.3.5 - '@tailwindcss/oxide-android-arm64@4.3.1': + '@tailwindcss/oxide-android-arm64@4.3.5': optional: true - '@tailwindcss/oxide-darwin-arm64@4.3.1': + '@tailwindcss/oxide-darwin-arm64@4.3.5': optional: true - '@tailwindcss/oxide-darwin-x64@4.3.1': + '@tailwindcss/oxide-darwin-x64@4.3.5': optional: true - '@tailwindcss/oxide-freebsd-x64@4.3.1': + '@tailwindcss/oxide-freebsd-x64@4.3.5': optional: true - '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.1': + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': optional: true - '@tailwindcss/oxide-linux-arm64-gnu@4.3.1': + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': optional: true - '@tailwindcss/oxide-linux-arm64-musl@4.3.1': + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': optional: true - '@tailwindcss/oxide-linux-x64-gnu@4.3.1': + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': optional: true - '@tailwindcss/oxide-linux-x64-musl@4.3.1': + '@tailwindcss/oxide-linux-x64-musl@4.3.5': optional: true - '@tailwindcss/oxide-wasm32-wasi@4.3.1': + '@tailwindcss/oxide-wasm32-wasi@4.3.5': optional: true - '@tailwindcss/oxide-win32-arm64-msvc@4.3.1': + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': optional: true - '@tailwindcss/oxide-win32-x64-msvc@4.3.1': + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': optional: true - '@tailwindcss/oxide@4.3.1': + '@tailwindcss/oxide@4.3.5': optionalDependencies: - '@tailwindcss/oxide-android-arm64': 4.3.1 - '@tailwindcss/oxide-darwin-arm64': 4.3.1 - '@tailwindcss/oxide-darwin-x64': 4.3.1 - '@tailwindcss/oxide-freebsd-x64': 4.3.1 - '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.1 - '@tailwindcss/oxide-linux-arm64-gnu': 4.3.1 - '@tailwindcss/oxide-linux-arm64-musl': 4.3.1 - '@tailwindcss/oxide-linux-x64-gnu': 4.3.1 - '@tailwindcss/oxide-linux-x64-musl': 4.3.1 - '@tailwindcss/oxide-wasm32-wasi': 4.3.1 - '@tailwindcss/oxide-win32-arm64-msvc': 4.3.1 - '@tailwindcss/oxide-win32-x64-msvc': 4.3.1 - - '@tailwindcss/vite@4.3.1(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))': - dependencies: - '@tailwindcss/node': 4.3.1 - '@tailwindcss/oxide': 4.3.1 - tailwindcss: 4.3.1 - vite: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) - - '@testing-library/svelte-core@1.0.0(svelte@5.56.3)': - dependencies: - svelte: 5.56.3 - - '@tybys/wasm-util@0.10.2': - dependencies: - tslib: 2.8.1 - optional: true + '@tailwindcss/oxide-android-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-x64': 4.3.5 + '@tailwindcss/oxide-freebsd-x64': 4.3.5 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.5 + '@tailwindcss/oxide-linux-arm64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-arm64-musl': 4.3.5 + '@tailwindcss/oxide-linux-x64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-x64-musl': 4.3.5 + '@tailwindcss/oxide-wasm32-wasi': 4.3.5 + '@tailwindcss/oxide-win32-arm64-msvc': 4.3.5 + '@tailwindcss/oxide-win32-x64-msvc': 4.3.5 + + '@tailwindcss/vite@4.3.5(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))': + dependencies: + '@tailwindcss/node': 4.3.5 + '@tailwindcss/oxide': 4.3.5 + tailwindcss: 4.3.5 + vite: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) + + '@testing-library/svelte-core@1.1.3(svelte@5.57.3)': + dependencies: + svelte: 5.57.3 '@types/chai@5.2.3': dependencies: @@ -1473,100 +1412,93 @@ snapshots: '@types/deep-eql@4.0.2': {} - '@types/estree@1.0.9': {} + '@types/estree@1.0.10': {} - '@types/node@25.9.3': + '@types/node@26.6.6': dependencies: - undici-types: 7.24.6 - optional: true - - '@types/node@26.0.1': - dependencies: - undici-types: 8.3.0 + undici-types: 8.9.0 '@types/set-cookie-parser@2.4.10': dependencies: - '@types/node': 25.9.3 + '@types/node': 26.6.6 optional: true '@types/statuses@2.0.6': optional: true - '@types/trusted-types@2.0.7': {} - - '@vitest/browser-playwright@4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(playwright@1.61.0)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))(vitest@4.1.9)': + '@vitest/browser-playwright@4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(playwright@1.65.0)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))(vitest@4.1.12)': dependencies: - '@vitest/browser': 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))(vitest@4.1.9) - '@vitest/mocker': 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) - playwright: 1.61.0 - tinyrainbow: 3.1.0 - vitest: 4.1.9(@types/node@26.0.1)(@vitest/browser-playwright@4.1.9)(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + '@vitest/browser': 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))(vitest@4.1.12) + '@vitest/mocker': 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) + playwright: 1.65.0 + tinyrainbow: 3.2.0 + vitest: 4.1.12(@types/node@26.6.6)(@vitest/browser-playwright@4.1.12)(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) transitivePeerDependencies: - bufferutil - msw - utf-8-validate - vite - '@vitest/browser@4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))(vitest@4.1.9)': + '@vitest/browser@4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))(vitest@4.1.12)': dependencies: '@blazediff/core': 1.9.1 - '@vitest/mocker': 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) - '@vitest/utils': 4.1.9 + '@vitest/mocker': 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) + '@vitest/utils': 4.1.12 magic-string: 0.30.21 pngjs: 7.0.0 sirv: 3.0.2 - tinyrainbow: 3.1.0 - vitest: 4.1.9(@types/node@26.0.1)(@vitest/browser-playwright@4.1.9)(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) - ws: 8.21.0 + tinyrainbow: 3.2.0 + vitest: 4.1.12(@types/node@26.6.6)(@vitest/browser-playwright@4.1.12)(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) + ws: 8.22.2 transitivePeerDependencies: - bufferutil - msw - utf-8-validate - vite - '@vitest/expect@4.1.9': + '@vitest/expect@4.1.12': dependencies: '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.3 - '@vitest/spy': 4.1.9 - '@vitest/utils': 4.1.9 - chai: 6.2.2 - tinyrainbow: 3.1.0 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + chai: 6.3.0 + tinyrainbow: 3.2.0 - '@vitest/mocker@4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))': + '@vitest/mocker@4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))': dependencies: - '@vitest/spy': 4.1.9 + '@vitest/spy': 4.1.12 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - msw: 2.14.6(@types/node@26.0.1)(typescript@5.9.3) - vite: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) + msw: 2.14.6(@types/node@26.6.6)(typescript@5.9.3) + vite: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) - '@vitest/pretty-format@4.1.9': + '@vitest/pretty-format@4.1.12': dependencies: - tinyrainbow: 3.1.0 + tinyrainbow: 3.2.0 - '@vitest/runner@4.1.9': + '@vitest/runner@4.1.12': dependencies: - '@vitest/utils': 4.1.9 + '@vitest/utils': 4.1.12 pathe: 2.0.3 - '@vitest/snapshot@4.1.9': + '@vitest/snapshot@4.1.12': dependencies: - '@vitest/pretty-format': 4.1.9 - '@vitest/utils': 4.1.9 + '@vitest/pretty-format': 4.1.12 + '@vitest/utils': 4.1.12 magic-string: 0.30.21 pathe: 2.0.3 - '@vitest/spy@4.1.9': {} + '@vitest/spy@4.1.12': {} - '@vitest/utils@4.1.9': + '@vitest/utils@4.1.12': dependencies: - '@vitest/pretty-format': 4.1.9 + '@vitest/pretty-format': 4.1.12 convert-source-map: 2.0.0 - tinyrainbow: 3.1.0 + tinyrainbow: 3.2.0 - acorn@8.17.0: {} + acorn@8.19.0: {} ansi-regex@5.0.1: optional: true @@ -1582,20 +1514,20 @@ snapshots: axobject-query@4.1.0: {} - bits-ui@2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3): + bits-ui@2.20.6(@internationalized/date@3.12.4)(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3): dependencies: - '@floating-ui/core': 1.7.5 - '@floating-ui/dom': 1.7.6 - '@internationalized/date': 3.12.2 + '@floating-ui/core': 1.8.0 + '@floating-ui/dom': 1.8.0 + '@internationalized/date': 3.12.4 esm-env: 1.2.2 - runed: 0.35.1(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3) - svelte: 5.56.3 - svelte-toolbelt: 0.10.6(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3) - tabbable: 6.4.0 + runed: 0.35.1(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3) + svelte: 5.57.3 + svelte-toolbelt: 0.10.7(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3) + tabbable: 6.5.1 transitivePeerDependencies: - '@sveltejs/kit' - chai@6.2.2: {} + chai@6.3.0: {} chokidar@4.0.3: dependencies: @@ -1613,6 +1545,8 @@ snapshots: clsx@2.1.1: {} + cn@0.3.3: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -1625,12 +1559,12 @@ snapshots: convert-source-map@2.0.0: {} - cookie@0.6.0: {} + cookie@0.7.2: {} cookie@1.1.1: optional: true - cropperjs@1.6.2: {} + cropperjs@1.7.0: {} deepmerge@4.3.1: {} @@ -1638,32 +1572,32 @@ snapshots: detect-libc@2.1.2: {} - devalue@5.8.1: {} + devalue@5.9.4: {} emoji-regex@8.0.0: optional: true - enhanced-resolve@5.21.6: + enhanced-resolve@5.26.1: dependencies: graceful-fs: 4.2.11 tapable: 2.3.3 - es-module-lexer@2.1.0: {} + es-module-lexer@2.3.2: {} escalade@3.2.0: optional: true esm-env@1.2.2: {} - esrap@2.2.11: + esrap@2.4.0: dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 estree-walker@3.0.3: dependencies: - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 - expect-type@1.3.0: {} + expect-type@1.4.0: {} fast-string-truncated-width@3.0.3: optional: true @@ -1678,12 +1612,9 @@ snapshots: fast-string-width: 3.0.2 optional: true - fdir@6.5.0(picomatch@4.0.4): + fdir@6.5.0(picomatch@4.0.7): optionalDependencies: - picomatch: 4.0.4 - - fsevents@2.3.2: - optional: true + picomatch: 4.0.7 fsevents@2.3.3: optional: true @@ -1693,13 +1624,13 @@ snapshots: graceful-fs@4.2.11: {} - graphql@16.14.2: + graphql@16.15.0: optional: true headers-polyfill@5.0.1: dependencies: '@types/set-cookie-parser': 2.4.10 - set-cookie-parser: 3.1.0 + set-cookie-parser: 3.2.2 optional: true inline-style-parser@0.2.7: {} @@ -1712,60 +1643,60 @@ snapshots: is-reference@3.0.3: dependencies: - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 jiti@2.7.0: {} kleur@4.1.5: {} - lightningcss-android-arm64@1.32.0: + lightningcss-android-arm64@1.33.0: optional: true - lightningcss-darwin-arm64@1.32.0: + lightningcss-darwin-arm64@1.33.0: optional: true - lightningcss-darwin-x64@1.32.0: + lightningcss-darwin-x64@1.33.0: optional: true - lightningcss-freebsd-x64@1.32.0: + lightningcss-freebsd-x64@1.33.0: optional: true - lightningcss-linux-arm-gnueabihf@1.32.0: + lightningcss-linux-arm-gnueabihf@1.33.0: optional: true - lightningcss-linux-arm64-gnu@1.32.0: + lightningcss-linux-arm64-gnu@1.33.0: optional: true - lightningcss-linux-arm64-musl@1.32.0: + lightningcss-linux-arm64-musl@1.33.0: optional: true - lightningcss-linux-x64-gnu@1.32.0: + lightningcss-linux-x64-gnu@1.33.0: optional: true - lightningcss-linux-x64-musl@1.32.0: + lightningcss-linux-x64-musl@1.33.0: optional: true - lightningcss-win32-arm64-msvc@1.32.0: + lightningcss-win32-arm64-msvc@1.33.0: optional: true - lightningcss-win32-x64-msvc@1.32.0: + lightningcss-win32-x64-msvc@1.33.0: optional: true - lightningcss@1.32.0: + lightningcss@1.33.0: dependencies: detect-libc: 2.1.2 optionalDependencies: - lightningcss-android-arm64: 1.32.0 - lightningcss-darwin-arm64: 1.32.0 - lightningcss-darwin-x64: 1.32.0 - lightningcss-freebsd-x64: 1.32.0 - lightningcss-linux-arm-gnueabihf: 1.32.0 - lightningcss-linux-arm64-gnu: 1.32.0 - lightningcss-linux-arm64-musl: 1.32.0 - lightningcss-linux-x64-gnu: 1.32.0 - lightningcss-linux-x64-musl: 1.32.0 - lightningcss-win32-arm64-msvc: 1.32.0 - lightningcss-win32-x64-msvc: 1.32.0 + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 locate-character@3.0.0: {} @@ -1773,32 +1704,36 @@ snapshots: magic-string@0.30.21: dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 + + magic-string@1.4.5: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 mri@1.2.0: {} mrmime@2.0.1: {} - msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3): + msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3): dependencies: - '@inquirer/confirm': 6.1.1(@types/node@26.0.1) + '@inquirer/confirm': 6.3.5(@types/node@26.6.6) '@mswjs/interceptors': 0.41.9 '@open-draft/deferred-promise': 3.0.0 '@types/statuses': 2.0.6 cookie: 1.1.1 - graphql: 16.14.2 + graphql: 16.15.0 headers-polyfill: 5.0.1 is-node-process: 1.2.0 outvariant: 1.4.3 path-to-regexp: 6.3.0 picocolors: 1.1.1 - rettime: 0.11.11 + rettime: 0.11.12 statuses: 2.0.2 strict-event-emitter: 0.5.1 - tough-cookie: 6.0.1 - type-fest: 5.7.0 + tough-cookie: 6.1.0 + type-fest: 5.10.0 until-async: 3.0.2 - yargs: 17.7.2 + yargs: 17.7.3 optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -1808,11 +1743,11 @@ snapshots: mute-stream@3.0.0: optional: true - nanoid@3.3.12: {} + nanoid@3.3.20: {} node-fetch-native@1.6.7: {} - obug@2.1.3: {} + obug@2.2.1: {} outvariant@1.4.3: optional: true @@ -1824,80 +1759,73 @@ snapshots: picocolors@1.1.1: {} - picomatch@4.0.4: {} + picomatch@4.0.7: {} - playwright-core@1.61.0: {} + playwright-core@1.65.0: {} - playwright@1.61.0: + playwright@1.65.0: dependencies: - playwright-core: 1.61.0 - optionalDependencies: - fsevents: 2.3.2 + playwright-core: 1.65.0 pngjs@7.0.0: {} - postcss@8.5.15: + postcss@8.5.32: dependencies: - nanoid: 3.3.12 + nanoid: 3.3.20 picocolors: 1.1.1 - source-map-js: 1.2.1 + source-map-js: 1.2.2 readdirp@4.1.2: {} require-directory@2.1.1: optional: true - rettime@0.11.11: + rettime@0.11.12: optional: true - rolldown@1.0.3: + rolldown@1.2.18: dependencies: - '@oxc-project/types': 0.133.0 - '@rolldown/pluginutils': 1.0.1 + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.1.0 optionalDependencies: - '@rolldown/binding-android-arm64': 1.0.3 - '@rolldown/binding-darwin-arm64': 1.0.3 - '@rolldown/binding-darwin-x64': 1.0.3 - '@rolldown/binding-freebsd-x64': 1.0.3 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.3 - '@rolldown/binding-linux-arm64-gnu': 1.0.3 - '@rolldown/binding-linux-arm64-musl': 1.0.3 - '@rolldown/binding-linux-ppc64-gnu': 1.0.3 - '@rolldown/binding-linux-s390x-gnu': 1.0.3 - '@rolldown/binding-linux-x64-gnu': 1.0.3 - '@rolldown/binding-linux-x64-musl': 1.0.3 - '@rolldown/binding-openharmony-arm64': 1.0.3 - '@rolldown/binding-wasm32-wasi': 1.0.3 - '@rolldown/binding-win32-arm64-msvc': 1.0.3 - '@rolldown/binding-win32-x64-msvc': 1.0.3 - - runed@0.28.0(svelte@5.56.3): - dependencies: - esm-env: 1.2.2 - svelte: 5.56.3 - - runed@0.35.1(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3): + '@rolldown/binding-android-arm-eabi': 1.2.18 + '@rolldown/binding-android-arm64': 1.2.18 + '@rolldown/binding-darwin-arm64': 1.2.18 + '@rolldown/binding-darwin-x64': 1.2.18 + '@rolldown/binding-freebsd-x64': 1.2.18 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.18 + '@rolldown/binding-linux-arm64-gnu': 1.2.18 + '@rolldown/binding-linux-arm64-musl': 1.2.18 + '@rolldown/binding-linux-ppc64-gnu': 1.2.18 + '@rolldown/binding-linux-s390x-gnu': 1.2.18 + '@rolldown/binding-linux-x64-gnu': 1.2.18 + '@rolldown/binding-linux-x64-musl': 1.2.18 + '@rolldown/binding-openharmony-arm64': 1.2.18 + '@rolldown/binding-win32-arm64-msvc': 1.2.18 + '@rolldown/binding-win32-x64-msvc': 1.2.18 + + runed@0.35.1(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3): dependencies: dequal: 2.0.3 esm-env: 1.2.2 lz-string: 1.5.0 - svelte: 5.56.3 + svelte: 5.57.3 optionalDependencies: - '@sveltejs/kit': 2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + '@sveltejs/kit': 2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) sade@1.8.1: dependencies: mri: 1.2.0 - set-cookie-parser@3.1.0: {} + set-cookie-parser@3.2.2: {} - shadcn-svelte@1.3.0(svelte@5.56.3): + shadcn-svelte@1.7.2(svelte@5.57.3): dependencies: + cn: 0.3.3 commander: 14.0.3 node-fetch-native: 1.6.7 - postcss: 8.5.15 - svelte: 5.56.3 - tailwind-merge: 3.6.0 + postcss: 8.5.32 + svelte: 5.57.3 siginfo@2.0.0: {} @@ -1910,14 +1838,14 @@ snapshots: mrmime: 2.0.1 totalist: 3.0.1 - source-map-js@1.2.1: {} + source-map-js@1.2.2: {} stackback@0.0.2: {} statuses@2.0.2: optional: true - std-env@4.1.0: {} + std-env@4.3.0: {} strict-event-emitter@0.5.1: optional: true @@ -1938,163 +1866,155 @@ snapshots: dependencies: inline-style-parser: 0.2.7 - svelte-check@4.7.1(picomatch@4.0.4)(svelte@5.56.3)(typescript@5.9.3): + svelte-check@4.7.8(picomatch@4.0.7)(svelte@5.57.3)(typescript@5.9.3): dependencies: '@jridgewell/trace-mapping': 0.3.31 - '@sveltejs/load-config': 0.2.0 + '@sveltejs/load-config': 0.2.3 chokidar: 4.0.3 - fdir: 6.5.0(picomatch@4.0.4) + fdir: 6.5.0(picomatch@4.0.7) picocolors: 1.1.1 sade: 1.8.1 - svelte: 5.56.3 + svelte: 5.57.3 typescript: 5.9.3 transitivePeerDependencies: - picomatch - svelte-sonner@1.1.1(svelte@5.56.3): + svelte-sonner@1.2.3(svelte@5.57.3): dependencies: - runed: 0.28.0(svelte@5.56.3) - svelte: 5.56.3 + svelte: 5.57.3 - svelte-toolbelt@0.10.6(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3): + svelte-toolbelt@0.10.7(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3): dependencies: clsx: 2.1.1 - runed: 0.35.1(@sveltejs/kit@2.65.1(@sveltejs/vite-plugin-svelte@7.1.2(svelte@5.56.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3)(typescript@5.9.3)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)))(svelte@5.56.3) + runed: 0.35.1(@sveltejs/kit@2.70.4(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3)(typescript@5.9.3)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)))(svelte@5.57.3) style-to-object: 1.0.14 - svelte: 5.56.3 + svelte: 5.57.3 transitivePeerDependencies: - '@sveltejs/kit' - svelte@5.56.3: + svelte@5.57.3: dependencies: '@jridgewell/remapping': 2.3.5 - '@jridgewell/sourcemap-codec': 1.5.5 - '@sveltejs/acorn-typescript': 1.0.10(acorn@8.17.0) - '@types/estree': 1.0.9 - '@types/trusted-types': 2.0.7 - acorn: 8.17.0 + '@jridgewell/sourcemap-codec': 1.6.0 + '@sveltejs/acorn-typescript': 1.0.13(acorn@8.19.0) + '@types/estree': 1.0.10 + acorn: 8.19.0 aria-query: 5.3.1 axobject-query: 4.1.0 clsx: 2.1.1 - devalue: 5.8.1 + devalue: 5.9.4 esm-env: 1.2.2 - esrap: 2.2.11 + esrap: 2.4.0 is-reference: 3.0.3 locate-character: 3.0.0 magic-string: 0.30.21 - zimmerframe: 1.1.4 + zimmerframe: 1.1.5 transitivePeerDependencies: - '@typescript-eslint/types' - tabbable@6.4.0: {} + tabbable@6.5.1: {} tagged-tag@1.0.0: optional: true - tailwind-merge@3.6.0: {} + tailwind-merge@3.7.0: {} - tailwind-variants@3.2.2(tailwind-merge@3.6.0)(tailwindcss@4.3.1): - dependencies: - tailwindcss: 4.3.1 + tailwind-variants@3.3.1(tailwind-merge@3.7.0)(tailwindcss@4.3.5): optionalDependencies: - tailwind-merge: 3.6.0 + tailwind-merge: 3.7.0 + tailwindcss: 4.3.5 - tailwindcss@4.3.1: {} + tailwindcss@4.3.5: {} tapable@2.3.3: {} tinybench@2.9.0: {} - tinyexec@1.2.4: {} + tinyexec@1.3.1: {} tinyglobby@0.2.17: dependencies: - fdir: 6.5.0(picomatch@4.0.4) - picomatch: 4.0.4 + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 - tinyrainbow@3.1.0: {} + tinyrainbow@3.2.0: {} - tldts-core@7.4.3: + tldts-core@7.4.20: optional: true - tldts@7.4.3: + tldts@7.4.19: dependencies: - tldts-core: 7.4.3 + tldts-core: 7.4.20 optional: true totalist@3.0.1: {} - tough-cookie@6.0.1: + tough-cookie@6.1.0: dependencies: - tldts: 7.4.3 + tldts: 7.4.19 optional: true - tslib@2.8.1: {} - tw-animate-css@1.4.0: {} - type-fest@5.7.0: + type-fest@5.10.0: dependencies: tagged-tag: 1.0.0 optional: true typescript@5.9.3: {} - undici-types@7.24.6: - optional: true - - undici-types@8.3.0: {} + undici-types@8.9.0: {} until-async@3.0.2: optional: true - vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0): + vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0): dependencies: - lightningcss: 1.32.0 - picomatch: 4.0.4 - postcss: 8.5.15 - rolldown: 1.0.3 + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.32 + rolldown: 1.2.18 tinyglobby: 0.2.17 optionalDependencies: - '@types/node': 26.0.1 + '@types/node': 26.6.6 fsevents: 2.3.3 jiti: 2.7.0 - vitefu@1.1.3(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)): + vitefu@1.1.3(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)): optionalDependencies: - vite: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) + vite: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) - vitest-browser-svelte@2.1.1(svelte@5.56.3)(vitest@4.1.9): + vitest-browser-svelte@3.1.0(svelte@5.57.3)(vitest@4.1.12): dependencies: - '@testing-library/svelte-core': 1.0.0(svelte@5.56.3) - svelte: 5.56.3 - vitest: 4.1.9(@types/node@26.0.1)(@vitest/browser-playwright@4.1.9)(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) + '@testing-library/svelte-core': 1.1.3(svelte@5.57.3) + svelte: 5.57.3 + vitest: 4.1.12(@types/node@26.6.6)(@vitest/browser-playwright@4.1.12)(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) - vitest@4.1.9(@types/node@26.0.1)(@vitest/browser-playwright@4.1.9)(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)): + vitest@4.1.12(@types/node@26.6.6)(@vitest/browser-playwright@4.1.12)(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)): dependencies: - '@vitest/expect': 4.1.9 - '@vitest/mocker': 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0)) - '@vitest/pretty-format': 4.1.9 - '@vitest/runner': 4.1.9 - '@vitest/snapshot': 4.1.9 - '@vitest/spy': 4.1.9 - '@vitest/utils': 4.1.9 - es-module-lexer: 2.1.0 - expect-type: 1.3.0 + '@vitest/expect': 4.1.12 + '@vitest/mocker': 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0)) + '@vitest/pretty-format': 4.1.12 + '@vitest/runner': 4.1.12 + '@vitest/snapshot': 4.1.12 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 magic-string: 0.30.21 - obug: 2.1.3 + obug: 2.2.1 pathe: 2.0.3 - picomatch: 4.0.4 - std-env: 4.1.0 + picomatch: 4.0.7 + std-env: 4.3.0 tinybench: 2.9.0 - tinyexec: 1.2.4 + tinyexec: 1.3.1 tinyglobby: 0.2.17 - tinyrainbow: 3.1.0 - vite: 8.0.16(@types/node@26.0.1)(jiti@2.7.0) + tinyrainbow: 3.2.0 + vite: 8.3.7(@types/node@26.6.6)(jiti@2.7.0) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 26.0.1 - '@vitest/browser-playwright': 4.1.9(msw@2.14.6(@types/node@26.0.1)(typescript@5.9.3))(playwright@1.61.0)(vite@8.0.16(@types/node@26.0.1)(jiti@2.7.0))(vitest@4.1.9) + '@types/node': 26.6.6 + '@vitest/browser-playwright': 4.1.12(msw@2.14.6(@types/node@26.6.6)(typescript@5.9.3))(playwright@1.65.0)(vite@8.3.7(@types/node@26.6.6)(jiti@2.7.0))(vitest@4.1.12) transitivePeerDependencies: - msw @@ -2110,7 +2030,7 @@ snapshots: strip-ansi: 6.0.1 optional: true - ws@8.21.0: {} + ws@8.22.2: {} y18n@5.0.8: optional: true @@ -2118,7 +2038,7 @@ snapshots: yargs-parser@21.1.1: optional: true - yargs@17.7.2: + yargs@17.7.3: dependencies: cliui: 8.0.1 escalade: 3.2.0 @@ -2129,4 +2049,4 @@ snapshots: yargs-parser: 21.1.1 optional: true - zimmerframe@1.1.4: {} + zimmerframe@1.1.5: {} diff --git a/frontend/scripts/check-i18n.mjs b/frontend/scripts/check-i18n.mjs new file mode 100644 index 00000000..5e3dec8d --- /dev/null +++ b/frontend/scripts/check-i18n.mjs @@ -0,0 +1,108 @@ +#!/usr/bin/env node +// Source-level guards for the admin catalogue. +// +// The catalogue tests (src/lib/i18n/i18n.test.ts) prove things about the data: keys line +// up, placeholders match, no baked plurals. They cannot see the 1,270-odd call sites that +// use that data, and they cannot see how it is rendered. That gap is what this checks: +// +// 1. Every literal key passed to $t/tr/trp/trp2 exists in en.json. A typo currently +// renders the dotted key on screen and every test stays green. +// 2. No catalogue string is rendered with {@html}. Catalogue text is plain text by +// contract (see catalog.ts); community locale PRs are a real input, so HTML in a +// catalogue is an injection surface, not a styling convenience. +// +// Runs from the frontend directory: `pnpm check:i18n`, and in CI. +// +// Dynamic keys (template literals, ternaries) are skipped rather than guessed at. They +// are listed at the end so a reviewer can see what is not covered. + +import { readFileSync, readdirSync, statSync } from 'node:fs'; +import { join, relative, extname } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const frontendDir = fileURLToPath(new URL('..', import.meta.url)); +const srcDir = join(frontendDir, 'src'); +const cataloguePath = join(srcDir, 'lib/i18n/en.json'); + +// The catalogue's own module and tests define the helpers; they are not call sites. +const SKIP_DIRS = [join(srcDir, 'lib/i18n')]; + +function flatten(value, prefix = '', leaves = new Map(), groups = new Set()) { + if (value && typeof value === 'object' && !Array.isArray(value)) { + // An object is a real key too: trp/trp2 append `.one`/`.other` themselves, so a + // plural call passes the group path, not a leaf. + if (prefix) groups.add(prefix); + for (const [k, v] of Object.entries(value)) flatten(v, prefix ? `${prefix}.${k}` : k, leaves, groups); + } else { + leaves.set(prefix, value); + } + return { leaves, groups }; +} + +function* walk(dir) { + for (const entry of readdirSync(dir)) { + const full = join(dir, entry); + if (SKIP_DIRS.some((skip) => full === skip || full.startsWith(skip + '/'))) continue; + const st = statSync(full); + if (st.isDirectory()) yield* walk(full); + else if (['.svelte', '.ts'].includes(extname(full))) yield full; + } +} + +const { leaves: keys, groups } = flatten(JSON.parse(readFileSync(cataloguePath, 'utf8'))); + +// `$t('key')`, `tr('key')`, `trp('key', n)`, `trp2('key', a, b)`. The key must be the +// first argument and a plain quoted string; anything else is dynamic and is counted, not +// checked. +const CALL = /(?:\$t\(|\b(?:tr|trp|trp2)\()\s*(['"])((?:(?!\1).)+)\1/g; +const ANY_CALL = /(?:\$t\(|\b(?:tr|trp|trp2)\()/g; +const RENDERED_AS_HTML = /\{@html[^}]*?(?:\$t\(|\b(?:tr|trp|trp2)\()/; + +const missing = []; +const asHtml = []; +let checked = 0; +let dynamic = 0; + +for (const file of walk(srcDir)) { + const rel = relative(frontendDir, file); + const source = readFileSync(file, 'utf8'); + source.split('\n').forEach((line, i) => { + if (RENDERED_AS_HTML.test(line)) asHtml.push(`${rel}:${i + 1}: ${line.trim()}`); + const literalKeys = new Set(); + for (const m of line.matchAll(CALL)) { + checked++; + literalKeys.add(m[2]); + if (!keys.has(m[2]) && !groups.has(m[2])) missing.push(`${rel}:${i + 1}: ${m[2]}`); + } + // Calls on this line with no literal key are dynamic. + const total = [...line.matchAll(ANY_CALL)].length; + dynamic += Math.max(0, total - literalKeys.size); + }); +} + +let failed = false; + +if (missing.length > 0) { + failed = true; + console.error(`\n${missing.length} call site(s) use a key that is not in en.json:\n`); + for (const m of missing) console.error(` ${m}`); + console.error('\nA missing key renders as the dotted key on screen. Check the spelling, or add it to en.json first.\n'); +} + +if (asHtml.length > 0) { + failed = true; + console.error(`\n${asHtml.length} call site(s) render catalogue text with {@html}:\n`); + for (const h of asHtml) console.error(` ${h}`); + console.error( + '\nCatalogue values are plain text and community locale PRs are a real input, so this is an injection surface.\n' + + 'Render the markup in the component and use a key per fragment, or use LinkedText for operator links.\n' + ); +} + +console.log( + `i18n guard: ${checked} literal call site(s) checked against ${keys.size} keys ` + + `(+${groups.size} plural groups), ` + + `${dynamic} dynamic call site(s) skipped (template/ternary keys).` +); + +if (failed) process.exit(1); diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 89b63a16..cd6c8723 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -1,4 +1,6 @@ export type User = { + booking_accent: string; + handle?: string; id: string; email: string; name: string; @@ -20,6 +22,9 @@ export type User = { }; export type EventType = { + /** Lower first on public person/team pages; ties sort by name, then slug. */ + display_order: number; + allow_phone_call: boolean; id: string; slug: string; name: string; @@ -34,6 +39,14 @@ export type EventType = { * them. Off by default: the slots endpoint is public, so this makes the host's * booked hours visible to anyone with the link. */ show_taken_slots: boolean; + /** Who sends the booker's calendar invite. 'calendar': each host's connected calendar, + * from the host's own address. 'calnode': Calnode's own invite, from the email sender + * in Settings → Email, so no host's personal address reaches the booker. 'none': no + * invite from either; the hosts' events are guestless, for integrations that send their own. */ + invite_delivery: 'calendar' | 'calnode' | 'none'; + /** Whether Calnode can currently send invites (a sender and working email). Only + * returned on the single event type GET. */ + invite_sender_ready?: boolean; location_type: string; location_value?: string; buffer_before_minutes: number; @@ -59,9 +72,13 @@ export type EventType = { rr_strategy: 'even' | 'soonest' | 'priority'; /** True when archived — hidden from the default list, is_active forced off. Reversible. */ archived?: boolean; - /** True if the current user owns this event type; false if they only host it (read-only). */ + /** True if the current user owns this event type; false if they host it, or are an admin viewing someone else's. */ owned?: boolean; - /** Owner identity, returned only when the viewer is a read-only host. */ + /** True if the current user may edit it (the owner, or any admin); false = read-only host. */ + can_edit?: boolean; + /** The user the event type belongs to; its availability and calendar/Zoom connections are theirs. */ + owner_id?: string; + /** Owner identity, returned when the viewer is not the owner. */ owner_name?: string; owner_email?: string; }; @@ -100,6 +117,10 @@ export type Booking = { payment_status?: 'pending' | 'paid' | 'refunded'; amount_paid_cents?: number; amount_paid_currency?: string; + /** The booker's RSVP to a Calnode-sent invite; absent until an answer arrives. */ + rsvp_status?: 'accepted' | 'declined' | 'tentative'; + /** Who sent the booker's calendar invite, fixed when the booking was made. */ + invite_delivery?: 'calendar' | 'calnode' | 'none'; }; export type APIKey = { @@ -178,6 +199,14 @@ export type EmailSettings = { // being delivered over SMTP" can differ, so the server reports the live answer. transport: 'none' | 'smtp' | 'resend_api'; enabled: boolean; + /** RSVP tracking for invites Calnode sends: the Resend inbound address RSVPs are routed + * through (e.g. rsvp@reply.example.com). */ + rsvp_address: string; + resend_webhook_secret_set: boolean; // never returned directly + /** True when address, webhook secret and Resend API key are all present. */ + rsvp_tracking: boolean; + /** Where Resend must deliver email.received: this instance's BASE_URL + the inbound path. */ + rsvp_webhook_url: string; }; export type GoogleSettings = { @@ -228,6 +257,7 @@ export type TeamMember = { id: string; email: string; name: string; + handle?: string; timezone: string; is_admin: boolean; is_owner: boolean; diff --git a/frontend/src/lib/components/demo-banner.svelte b/frontend/src/lib/components/demo-banner.svelte index 8ee0fb3b..2a95b5d3 100644 --- a/frontend/src/lib/components/demo-banner.svelte +++ b/frontend/src/lib/components/demo-banner.svelte @@ -4,6 +4,7 @@ import { authStatus } from '$lib/stores'; import { Button } from '$lib/components/ui/button'; import { ConfirmDialog } from '$lib/components/ui/confirm-dialog'; + import { t, tr } from '$lib/i18n'; let resetOpen = $state(false); let resetting = $state(false); @@ -12,10 +13,10 @@ resetting = true; try { await api.post('/v1/demo/reset'); - toast.success('Demo reset — reloading…'); + toast.success(tr('demo.toast.resetSuccess')); window.location.href = '/admin/'; } catch (e: any) { - toast.error(e.message ?? 'Reset failed'); + toast.error(e.message ?? tr('demo.toast.resetFailed')); } finally { resetting = false; } @@ -24,23 +25,22 @@

- Public demo — data here is visible to everyone and resets - automatically. Don't enter anything private. + {$t('demo.banner.title')} — {$t('demo.banner.body')} - View source + {$t('demo.banner.viewSource')}

diff --git a/frontend/src/lib/components/event-types/EmbedPanel.svelte b/frontend/src/lib/components/event-types/EmbedPanel.svelte index a19312f2..0bb161c5 100644 --- a/frontend/src/lib/components/event-types/EmbedPanel.svelte +++ b/frontend/src/lib/components/event-types/EmbedPanel.svelte @@ -2,6 +2,7 @@ import { page } from '$app/stores'; import { Button } from '$lib/components/ui/button'; import { toast } from 'svelte-sonner'; + import { t, tr } from '$lib/i18n'; let { slug }: { slug: string } = $props(); @@ -12,23 +13,28 @@ `
-

Embed

-

Drop this booking widget on your website — it renders inline, no iframe. Paste before </body>.

+

{$t('eventTypeEditor.embed.title')}

+

{$t('eventTypeEditor.embed.subtitle')}

- {#each [{ key: 'inline', label: 'Inline', hint: 'Embeds the booking calendar directly in the page.', code: inlineSnippet }, { key: 'popup', label: 'Popup button', hint: 'A button that opens the booking widget in a modal.', code: popupSnippet }] as snip} + {#each snippets as snip}
@@ -36,12 +42,12 @@ {snip.hint}
{snip.code}
{/each} -

The widget calls this instance's public booking API. To restrict which sites may embed it, set EMBED_ALLOWED_ORIGINS.

+

{$t('eventTypeEditor.embed.footer')}

diff --git a/frontend/src/lib/components/event-types/QuestionsPanel.svelte b/frontend/src/lib/components/event-types/QuestionsPanel.svelte index 910016ac..8036ff9b 100644 --- a/frontend/src/lib/components/event-types/QuestionsPanel.svelte +++ b/frontend/src/lib/components/event-types/QuestionsPanel.svelte @@ -10,14 +10,15 @@ import * as Select from '$lib/components/ui/select'; import * as Tooltip from '$lib/components/ui/tooltip'; import { toast } from 'svelte-sonner'; + import { t, tr } from '$lib/i18n'; let { slug }: { slug: string } = $props(); - const QUESTION_TYPES = [ - { value: 'text', label: 'Text' }, - { value: 'checkbox', label: 'Checkbox (yes/no)' }, - { value: 'select', label: 'Dropdown' }, - ]; + const QUESTION_TYPES = $derived([ + { value: 'text', label: $t('eventTypeEditor.questions.types.text') }, + { value: 'checkbox', label: $t('eventTypeEditor.questions.types.checkbox') }, + { value: 'select', label: $t('eventTypeEditor.questions.types.select') }, + ]); let questions: Question[] = $state([]); let qLoading = $state(true); @@ -36,7 +37,7 @@ const res = await api.get<{ items: Question[] }>(`/v1/event-types/${slug}/questions/admin`); questions = (res.items ?? []).sort((a, b) => a.position - b.position); } catch (e: any) { - toast.error(e.message || 'Could not load questions'); + toast.error(e.message || tr('eventTypeEditor.questions.error.load')); } finally { qLoading = false; } @@ -55,9 +56,9 @@ } async function addQuestion() { - if (!qForm.label.trim()) { toast.error('Label is required.'); return; } + if (!qForm.label.trim()) { toast.error(tr('eventTypeEditor.questions.validation.label')); return; } if (qForm.type === 'select' && optionsArray(qForm.options).length === 0) { - toast.error('At least one option is required for dropdown questions.'); return; + toast.error(tr('eventTypeEditor.questions.validation.options')); return; } qAdding = true; try { @@ -70,7 +71,7 @@ qForm = { label: '', type: 'text', options: '', required: false }; await loadQuestions(); } catch (e: any) { - toast.error(e.message || 'Could not add question'); + toast.error(e.message || tr('eventTypeEditor.questions.error.add')); } finally { qAdding = false; } @@ -84,9 +85,9 @@ function cancelEditQ() { editingQId = null; } async function saveQuestion(q: Question) { - if (!editQForm.label.trim()) { toast.error('Label is required.'); return; } + if (!editQForm.label.trim()) { toast.error(tr('eventTypeEditor.questions.validation.label')); return; } if (editQForm.type === 'select' && optionsArray(editQForm.options).length === 0) { - toast.error('At least one option is required.'); return; + toast.error(tr('eventTypeEditor.questions.validation.optionsShort')); return; } qSaving = true; try { @@ -99,7 +100,7 @@ editingQId = null; await loadQuestions(); } catch (e: any) { - toast.error(e.message || 'Could not save question'); + toast.error(e.message || tr('eventTypeEditor.questions.error.save')); } finally { qSaving = false; } @@ -116,36 +117,40 @@ await api.del(`/v1/event-types/${slug}/questions/${pendingQ.id}`); await loadQuestions(); } catch (e: any) { - toast.error(e.message || 'Could not delete question'); + toast.error(e.message || tr('eventTypeEditor.questions.error.delete')); } } + + function typeLabel(value: string): string { + return QUESTION_TYPES.find((t) => t.value === value)?.label ?? value; + }
-

Intake Questions

-

Collect information from attendees when they book.

+

{$t('eventTypeEditor.questions.title')}

+

{$t('eventTypeEditor.questions.subtitle')}

{#if qLoading} -

Loading…

+

{$t('common.loading')}

{:else if questions.length > 0} - - - - + + + + @@ -157,40 +162,40 @@
#QuestionTypeRequired{$t('eventTypeEditor.questions.table.number')}{$t('eventTypeEditor.questions.table.question')}{$t('eventTypeEditor.questions.table.type')}{$t('eventTypeEditor.questions.table.required')}
- +
- + { if (v) editQForm.type = v as 'text'|'select'|'checkbox'; }}> - {QUESTION_TYPES.find((t) => t.value === editQForm.type)?.label ?? 'Select…'} + {QUESTION_TYPES.find((t) => t.value === editQForm.type)?.label ?? $t('common.select')} - {#each QUESTION_TYPES as t} - {t.label} + {#each QUESTION_TYPES as qt} + {qt.label} {/each}
{#if editQForm.type === 'select'}
- +