Skip to content

Modern Docker Management, Designed for Everyone

refactor: move all repo scripts to `just` over pnpm (#1630)

Kyle Mendell3746a82372e8
diff --git a/backend/.golangci.yml b/.github/.golangci.yml
similarity index 100%
rename from backend/.golangci.yml
rename to .github/.golangci.yml
diff --git a/.github/workflows/build-next-images.yml b/.github/workflows/build-next-images.yml
index 566e2ab72..19628cb19 100644
--- a/.github/workflows/build-next-images.yml
+++ b/.github/workflows/build-next-images.yml
@@ -32,6 +32,9 @@ jobs:
with:
run_install: false
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
- name: Setup Node.js
uses: actions/setup-node@v6
with:
diff --git a/.github/workflows/build-pr-images.yml b/.github/workflows/build-pr-images.yml
index e69d45e58..45ee295e5 100644
--- a/.github/workflows/build-pr-images.yml
+++ b/.github/workflows/build-pr-images.yml
@@ -34,6 +34,9 @@ jobs:
- name: Set up Depot CLI
uses: depot/setup-action@v1
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -115,7 +118,7 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "getarcaneappbot"
- body-includes: Docker images for this PR have been built successfully!
+ body-includes: Container images for this PR have been built successfully!
- name: Comment PR Images
uses: peter-evans/create-or-update-comment@v5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 803b23860..b4dc1724a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -36,13 +36,13 @@ jobs:
timeout: 10
gcc: false
cgo_enabled: "1"
- defaults:
- run:
- working-directory: ${{ matrix.module.path }}
steps:
- name: Checkout
uses: actions/checkout@v6
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
- name: Set up Depot CLI
if: matrix.module.gcc
uses: depot/setup-action@v1
@@ -61,17 +61,12 @@ jobs:
sudo apt-get install -y gcc
- name: Download modules
- run: go mod download
+ run: just deps install go
- name: Run unit tests
env:
CGO_ENABLED: ${{ matrix.module.cgo_enabled }}
- run: |
- if [ "${{ matrix.module.name }}" = "backend" ]; then
- go test -tags=exclude_frontend ./... -race -coverprofile=coverage.txt -covermode=atomic -v
- else
- go test ./... -race -coverprofile=coverage.txt -covermode=atomic -v
- fi
+ run: just test ${{ matrix.module.name }}
- name: Upload coverage artifact
if: always()
@@ -88,14 +83,11 @@ jobs:
matrix:
module:
- name: backend
- path: backend
- args: --build-tags=exclude_frontend --config=.golangci.yml
+ args: --build-tags=exclude_frontend --config=../.github/.golangci.yml
- name: cli
- path: cli
- args: --config=../backend/.golangci.yml
+ args: --config=../.github/.golangci.yml
- name: types
- path: types
- args: --config=../backend/.golangci.yml
+ args: --config=../.github/.golangci.yml
steps:
- name: Checkout code
uses: actions/checkout@v6
@@ -103,16 +95,16 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
- go-version-file: ${{ matrix.module.path }}/go.mod
- cache-dependency-path: ${{ matrix.module.path }}/go.sum
+ go-version-file: ${{ matrix.module.name }}/go.mod
+ cache-dependency-path: ${{ matrix.module.name }}/go.sum
- name: Run Golangci-lint
uses: golangci/golangci-lint-action@v9
with:
- version: v2.7.2
+ version: latest
args: ${{ matrix.module.args }}
- working-directory: ${{ matrix.module.path }}
- only-new-issues: true
+ working-directory: ${{ matrix.module.name }}
+ only-new-issues: false
deadcode:
name: Go Deadcode Analysis
@@ -156,7 +148,19 @@ jobs:
comment-author: "github-actions[bot]"
body-includes: "## 🔍 Deadcode Analysis"
+ - name: Delete comment if no deadcode found
+ if: steps.deadcode.outputs.count == '0' && steps.fc.outputs.comment-id != ''
+ uses: actions/github-script@v7
+ with:
+ script: |
+ github.rest.issues.deleteComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ comment_id: ${{ steps.fc.outputs.comment-id }}
+ })
+
- name: Comment deadcode results
+ if: steps.deadcode.outputs.count != '0'
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
@@ -173,7 +177,7 @@ jobs:
${{ steps.deadcode.outputs.output }}
```
- Only remove deadcode that you know is 100% no longer used.
+ Only remove deadcode that you know is 100% no longer used.
</details>
@@ -196,17 +200,20 @@ jobs:
node-version: 25
cache: pnpm
- - name: Install dependencies
- run: pnpm --filter arcane-frontend install --frozen-lockfile
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
+ - name: Install Fontend Dependencies
+ run: just deps install frontend
- name: Add svelte-check problem matcher
run: echo "::add-matcher::.github/matchers/svelte-check-matcher.json"
- name: Build frontend
- run: pnpm --filter arcane-frontend build
+ run: just build single frontend
- name: Run svelte-check
- run: pnpm --filter arcane-frontend check:ci
+ run: just lint frontend
e2e-tests:
name: E2E Tests (${{ matrix.database.name }})
@@ -230,13 +237,17 @@ jobs:
compose_file: setup/compose-proxy.yaml
port: 3002
steps:
- - uses: actions/checkout@v6
+ - name: Checkout code
+ uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
- name: Setup Node.js
uses: actions/setup-node@v6
with:
@@ -264,15 +275,11 @@ jobs:
docker pull ghcr.io/linuxserver/radarr:nightly
docker save ghcr.io/linuxserver/nginx:latest ghcr.io/linuxserver/radarr:nightly > /tmp/test-images.tar
- - name: Install test dependencies
- run: pnpm --filter arcane-tests install
-
- - name: Install Playwright Browsers
- working-directory: ./tests
- run: pnpm exec playwright install --with-deps chromium
+ - name: Setup and Install Playwright Dependencies
+ run: just deps install tests
- name: Run Playwright E2E tests
- run: pnpm --filter arcane-tests test
+ run: just test e2e
env:
COMPOSE_FILE: ${{ matrix.database.compose_file }}
BASE_URL: http://localhost:${{ matrix.database.port }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2e484e2e9..185127810 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,4 +1,4 @@
-name: Release
+name: Release New Arcane Version
on:
push:
@@ -25,6 +25,9 @@ jobs:
with:
fetch-depth: 0
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
@@ -36,11 +39,21 @@ jobs:
node-version: 25
cache: pnpm
- - name: Install frontend deps
- run: pnpm -C frontend install --frozen-lockfile
+ - name: Set up Depot CLI
+ uses: depot/setup-action@v1
+
+ - name: Login to GHCR
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Install Frontend Dependencies
+ run: just deps install frontend
- - name: Build frontend
- run: pnpm -C frontend build
+ - name: Build Arcane Frontend
+ run: just build single frontend
- name: Setup Go
uses: actions/setup-go@v6
@@ -51,28 +64,6 @@ jobs:
backend/go.sum
cli/go.sum
- - name: Run GoReleaser
- uses: goreleaser/goreleaser-action@v6
- with:
- distribution: goreleaser-pro
- version: "~> v2"
- args: release --clean --skip=validate
- env:
- GITHUB_TOKEN: ${{ secrets.ARCANE_BOT_TOKEN }}
- GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
- DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
-
- - name: Set up Depot CLI
- uses: depot/setup-action@v1
-
- - name: Login to GHCR
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ secrets.GITHUB_TOKEN }}
-
- name: Manager image metadata
id: manager-meta
uses: docker/metadata-action@v5
@@ -163,6 +154,18 @@ jobs:
subject-digest: ${{ steps.agent-build.outputs.digest }}
push-to-registry: true
+ - name: Run GoReleaser
+ uses: goreleaser/goreleaser-action@v6
+ with:
+ distribution: goreleaser-pro
+ version: "~> v2"
+ args: release --clean --skip=validate
+ env:
+ GITHUB_TOKEN: ${{ secrets.ARCANE_BOT_TOKEN }}
+ GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
+ DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
+ DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
+
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 5d9f86345..f1270f05f 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -7,10 +7,8 @@ project_name: arcane
before:
hooks:
- - go mod tidy -C backend
- - go mod tidy -C cli
- - pnpm install --frozen-lockfile
- - pnpm build
+ - just deps install all
+ - just build single frontend
builds:
- id: arcane
diff --git a/AGENTS.md b/AGENTS.md
index 5e2480765..325d81864 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -108,10 +108,10 @@ Register handlers in [backend/internal/huma/handlers/](backend/internal/huma/han
cd backend && go test ./...
# E2E tests (Playwright)
-pnpm test # from project root
+just test e2e
# Frontend type checking
-pnpm -C frontend check:ci
+just lint frontend
```
Backend tests use in-memory SQLite and testify. See [auth_service_test.go](backend/internal/services/auth_service_test.go) for patterns.
@@ -385,13 +385,13 @@ Before submitting any AI-assisted contribution, ensure:
./scripts/development/dev.sh start
# 2. Backend tests (if you changed Go code)
-cd backend && go test ./...
+just test backend
# 3. Frontend type checking (if you changed frontend code)
-pnpm -C frontend check:ci
+just lint frontend
# 4. E2E tests
-pnpm test
+just test e2e
# 5. Verify hot reload works
# - Frontend: http://localhost:3000
@@ -416,7 +416,7 @@ Fixes #[issue number]
## Testing
- [ ] Dev environment starts successfully
- [ ] Backend tests pass: `cd backend && go test ./...`
-- [ ] Frontend type checks pass: `pnpm -C frontend check:ci`
+- [ ] Frontend type checks pass: `just lint frontend`
- [ ] Manually tested: [describe how]
## AI Tool Used
diff --git a/AI_POLICY.md b/AI_POLICY.md
index 68a203972..35011f8a6 100644
--- a/AI_POLICY.md
+++ b/AI_POLICY.md
@@ -27,6 +27,8 @@ Before submitting any AI-assisted contribution, you must:
5. Ensure no linting errors exist
6. Verify hot reload works for both frontend and backend
+If you prefer `just`, the `Justfile` includes equivalent shortcuts such as `just dev docker`, `just lint frontend`, and `just test backend`.
+
## There are Humans Here
Please remember that Arcane is maintained by humans.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4ce2e6008..75c05cfb6 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -120,6 +120,24 @@ Press `Ctrl/Cmd+Shift+B` to run the default build task (Start Environment).
**Note**: All commands should be run from the project root directory (`arcane/`).
+### Justfile Shortcuts
+
+We provide a `Justfile` for common workflows. Run `just --list` to see everything.
+
+```bash
+# Dev environment
+just dev docker
+
+# Tests
+just test all
+
+# Linting
+just lint frontend
+
+# Formatting
+just format frontend
+```
+
### Environment Management
```bash
diff --git a/Justfile b/Justfile
new file mode 100644
index 000000000..d1c83bb6b
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,973 @@
+set working-directory := './'
+
+_default:
+ @just --list
+
+# Run frontend dev server on port 3000
+[group('dev')]
+_dev-frontend:
+ pnpm -C frontend dev
+
+# Run backend with hot reload on port 3552
+[group('dev')]
+_dev-backend:
+ cd backend && air
+
+[group('dev')]
+_dev-all:
+ #!/usr/bin/env bash
+ trap 'kill 0' EXIT
+ (cd backend && air) &
+ pnpm -C frontend dev
+
+# Rebuild Docker dev environment
+[group('dev')]
+_dev-docker:
+ ./scripts/development/dev.sh rebuild
+
+# View Docker dev environment logs
+[group('dev')]
+_dev-logs:
+ ./scripts/development/dev.sh logs
+
+# Run development servers. Valid targets: "frontend", "backend", "all", "docker", "logs".
+[group('dev')]
+dev target="docker":
+ @just "_dev-{{ target }}"
+
+# Add a new i18n locale. Example:
+# just i18n-add es "Español"
+[group('i18n')]
+i18n-add locale native_name settings="frontend/project.inlang/settings.json" picker="frontend/src/lib/components/locale-picker.svelte" messages_dir="frontend/messages" base_locale="en":
+ #!/usr/bin/env bash
+ set -euo pipefail
+
+ if [ -z "{{ locale }}" ] || [ -z "{{ native_name }}" ]; then
+ echo "Usage: just i18n-add <locale> <native_name> [settings] [picker] [messages_dir] [base_locale]"
+ exit 1
+ fi
+
+ settings_path="{{ settings }}"
+ picker_path="{{ picker }}"
+ messages_dir="{{ messages_dir }}"
+ base_locale="{{ base_locale }}"
+ base_file="${messages_dir}/${base_locale}.json"
+ target_file="${messages_dir}/{{ locale }}.json"
+
+ if [ ! -f "$settings_path" ]; then
+ echo "Settings file not found: $settings_path"
+ exit 1
+ fi
+
+ if [ ! -f "$picker_path" ]; then
+ echo "Locale picker file not found: $picker_path"
+ exit 1
+ fi
+
+ if [ ! -f "$base_file" ]; then
+ echo "Base messages file not found: $base_file"
+ exit 1
+ fi
+
+ if ! command -v jq >/dev/null 2>&1; then
+ echo "jq is required to update $settings_path"
+ exit 1
+ fi
+
+ jq_tab="--tab"
+ if ! jq --tab -n '{}' >/dev/null 2>&1; then
+ jq_tab=""
+ fi
+
+ settings_tmp="$(mktemp)"
+ jq $jq_tab --arg locale "{{ locale }}" \
+ '.locales |= ( . + [$locale] | unique | sort_by(ascii_downcase) )' \
+ "$settings_path" > "$settings_tmp"
+ mv "$settings_tmp" "$settings_path"
+
+ if ! command -v rg >/dev/null 2>&1; then
+ echo "rg (ripgrep) is required to update $picker_path"
+ exit 1
+ fi
+
+ start_line="$(rg -n -F "const locales: Record<string, string> = {" "$picker_path" | head -n1 | cut -d: -f1)"
+ if [ -z "$start_line" ]; then
+ echo "Unable to find locales map in $picker_path"
+ exit 1
+ fi
+
+ end_line="$(awk -v s="$start_line" 'NR>=s && $0 ~ /^[[:space:]]*};/ { print NR; exit }' "$picker_path")"
+ if [ -z "$end_line" ]; then
+ echo "Unable to find end of locales map in $picker_path"
+ exit 1
+ fi
+
+ const_indent="$(sed -n "${start_line}p" "$picker_path" | sed -E 's/^([[:space:]]*).*/\1/')"
+ entry_indent="$(sed -n "$((start_line+1)),$((end_line-1))p" "$picker_path" | awk 'NF { match($0, /^[[:space:]]*/); print substr($0, RSTART, RLENGTH); exit }')"
+ if [ -z "$entry_indent" ]; then
+ entry_indent="${const_indent}\t"
+ fi
+
+ entries_tmp="$(mktemp)"
+ while IFS= read -r line; do
+ if [[ $line =~ ^[[:space:]]*\'?([^\'\":]+)\'?[[:space:]]*:[[:space:]]*\'(.*)\'[[:space:]]*,[[:space:]]*$ ]]; then
+ key="${BASH_REMATCH[1]}"
+ value="${BASH_REMATCH[2]}"
+ if [ "$key" != "{{ locale }}" ]; then
+ printf '%s\t%s\n' "$key" "$value" >> "$entries_tmp"
+ fi
+ fi
+ done < <(sed -n "$((start_line+1)),$((end_line-1))p" "$picker_path")
+
+ printf '%s\t%s\n' "{{ locale }}" "{{ native_name }}" >> "$entries_tmp"
+
+ new_block="${const_indent}const locales: Record<string, string> = {"
+ new_block+=$'\n'
+ while IFS=$'\t' read -r key value; do
+ [ -z "$key" ] && continue
+ if [[ $key =~ ^[A-Za-z_$][A-Za-z0-9_$]*$ ]]; then
+ out_key="$key"
+ else
+ esc_key="${key//\\/\\\\}"
+ esc_key="${esc_key//\'/\\\'}"
+ out_key="'${esc_key}'"
+ fi
+ esc_value="${value//\\/\\\\}"
+ esc_value="${esc_value//\'/\\\'}"
+ new_block+="${entry_indent}${out_key}: '${esc_value}',"
+ new_block+=$'\n'
+ done < <(LC_ALL=C sort -f -t $'\t' -k1,1 "$entries_tmp")
+ new_block+="${const_indent}};"
+ rm -f "$entries_tmp"
+
+ block_tmp="$(mktemp)"
+ printf '%s\n' "$new_block" > "$block_tmp"
+
+ picker_tmp="$(mktemp)"
+ sed -n "1,$((start_line-1))p" "$picker_path" > "$picker_tmp"
+ cat "$block_tmp" >> "$picker_tmp"
+ tail -n "+$((end_line+1))" "$picker_path" >> "$picker_tmp"
+ mv "$picker_tmp" "$picker_path"
+ rm -f "$block_tmp"
+
+ if [ -f "$target_file" ]; then
+ echo "Messages file already exists, not overwriting: $target_file"
+ else
+ cp "$base_file" "$target_file"
+ echo "Created messages file: $target_file"
+ fi
+
+# --- Utils ---
+
+[group('utils')]
+_utils-list-fixes:
+ #!/usr/bin/env bash
+ set -euo pipefail
+
+ TEST=false
+ VERBOSE=false
+ for arg in "$@"; do
+ case "$arg" in
+ --test)
+ TEST=true
+ ;;
+ --verbose)
+ VERBOSE=true
+ ;;
+ *)
+ ;;
+ esac
+ done
+
+ if [ "$VERBOSE" == true ]; then
+ set -x
+ fi
+
+ # Colors for output
+ GREEN='\033[0;32m'
+ YELLOW='\033[1;33m'
+ BLUE='\033[0;34m'
+ NC='\033[0m' # No Color
+
+ # Get the latest release tag
+ LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
+
+ if [ -z "$LATEST_TAG" ]; then
+ echo -e "${YELLOW}No previous release tag found. Showing all fix commits:${NC}"
+ RANGE="HEAD"
+ else
+ echo -e "${GREEN}Latest release: ${LATEST_TAG}${NC}"
+ RANGE="${LATEST_TAG}..HEAD"
+ fi
+
+ echo ""
+ echo -e "${BLUE}=== Fix commits on main branch since ${LATEST_TAG:-beginning} ===${NC}"
+ echo ""
+
+ # List all fix commits
+ FIX_COMMITS=$(git log "$RANGE" \
+ --oneline \
+ --no-merges \
+ --grep="^fix:" \
+ --grep="^hotfix:" \
+ --regexp-ignore-case \
+ --pretty=format:"%C(yellow)%h%Creset %C(green)%ai%Creset %s %C(dim)(%an)%Creset" || echo "")
+
+ if [ -z "$FIX_COMMITS" ]; then
+ echo "No fix commits found."
+ else
+ echo "$FIX_COMMITS"
+ fi
+
+ echo ""
+ echo ""
+ echo -e "${BLUE}=== How to create a hotfix release ===${NC}"
+ echo ""
+ echo "1. Start the hotfix release process:"
+ echo -e " ${GREEN}just utils hotfix${NC}"
+ echo ""
+ echo "2. Cherry-pick the fixes you want:"
+ echo -e " ${GREEN}git cherry-pick <commit-hash>${NC}"
+ echo ""
+ echo "3. Finalize the release:"
+ echo -e " ${GREEN}just utils hotfix${NC}"
+ echo ""
+
+ if [ "$TEST" == true ]; then
+ echo "Test mode: no changes were made."
+ fi
+
+[group('utils')]
+_utils-hotfix:
+ #!/usr/bin/env bash
+ set -euo pipefail
+
+ TEST=false
+ VERBOSE=false
+ for arg in "$@"; do
+ case "$arg" in
+ --test)
+ TEST=true
+ ;;
+ --verbose)
+ VERBOSE=true
+ ;;
+ *)
+ ;;
+ esac
+ done
+
+ CLIFF_VERBOSE=""
+ if [ "$VERBOSE" == true ]; then
+ set -x
+ CLIFF_VERBOSE="-vv"
+ fi
+
+ # Colors for output
+ RED='\033[0;31m'
+ GREEN='\033[0;32m'
+ YELLOW='\033[1;33m'
+ BLUE='\033[0;34m'
+ NC='\033[0m' # No Color
+
+ # Check if the script is being run from the root of the project
+ if [ ! -f .arcane.json ] || [ ! -f frontend/package.json ] || [ ! -f CHANGELOG.md ]; then
+ echo -e "${RED}Error: This command must be run from the root of the project.${NC}"
+ exit 1
+ fi
+
+ CLIFF_CMD=""
+ if command -v git-cliff &>/dev/null; then
+ CLIFF_CMD="git-cliff"
+ elif git cliff --version &>/dev/null; then
+ CLIFF_CMD="git cliff"
+ else
+ echo "Error: git cliff is not installed. Please install it from https://git-cliff.org/docs/installation."
+ exit 1
+ fi
+
+ # Check if GitHub CLI is installed
+ if ! command -v gh &>/dev/null; then
+ echo -e "${RED}Error: GitHub CLI (gh) is not installed. Please install it and authenticate using 'gh auth login'.${NC}"
+ exit 1
+ fi
+
+ # Ensure local tags are up to date
+ git fetch --tags --quiet || true
+
+ # Get the latest repo-wide release tag (ignore module tags like cli/v* or types/v*)
+ get_latest_repo_tag() {
+ local ref="${1:-HEAD}"
+ git tag -l 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname --merged "$ref" | head -n1
+ }
+
+ LATEST_TAG=$(get_latest_repo_tag "main")
+ if [ -z "$LATEST_TAG" ]; then
+ LATEST_TAG=$(get_latest_repo_tag "HEAD")
+ fi
+ if [ -z "$LATEST_TAG" ]; then
+ echo -e "${RED}Error: No previous release tag found.${NC}"
+ exit 1
+ fi
+
+ echo -e "${GREEN}Latest release tag: ${LATEST_TAG}${NC}"
+
+ # Extract version components from tag (format: v1.2.3)
+ VERSION=${LATEST_TAG#v}
+ IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
+
+ # Increment patch version for hotfix
+ NEW_PATCH=$((PATCH + 1))
+ NEW_VERSION="${MAJOR}.${MINOR}.${NEW_PATCH}"
+ NEW_TAG="v${NEW_VERSION}"
+
+ echo -e "${YELLOW}Proposed hotfix version: ${NEW_TAG}${NC}"
+
+ # Create release branch name
+ RELEASE_BRANCH="release/v${MAJOR}.${MINOR}"
+
+ echo ""
+ echo -e "${YELLOW}=== Available fix commits since ${LATEST_TAG} ===${NC}"
+ echo ""
+
+ # List all fix commits since the last tag
+ FIX_COMMITS=$(git log "${LATEST_TAG}..main" \
+ --oneline \
+ --no-merges \
+ --grep="^fix:" \
+ --grep="^hotfix:" \
+ --regexp-ignore-case \
+ --pretty=format:"%C(yellow)%h%Creset %s %C(dim)(%an)%Creset" || echo "")
+
+ if [ -z "$FIX_COMMITS" ]; then
+ echo -e "${RED}No fix commits found since ${LATEST_TAG}${NC}"
+ else
+ echo "$FIX_COMMITS"
+ fi
+
+ if [ "$TEST" == true ]; then
+ echo ""
+ echo "Test mode enabled: no changes will be made."
+ echo "Would create or reuse release branch: ${RELEASE_BRANCH}"
+ echo "Would cherry-pick selected commits from main."
+ echo "Would generate changelog for ${NEW_TAG} and tag release."
+ echo "Would update main to version ${NEW_VERSION} after release."
+ exit 0
+ fi
+
+ # Check if release branch already exists
+ if git show-ref --verify --quiet "refs/heads/${RELEASE_BRANCH}"; then
+ echo -e "${YELLOW}Release branch ${RELEASE_BRANCH} already exists.${NC}"
+ read -p "Do you want to use the existing branch? (y/n) " USE_EXISTING
+ if [[ "$USE_EXISTING" != "y" ]]; then
+ echo -e "${RED}Aborting.${NC}"
+ exit 1
+ fi
+ git checkout "${RELEASE_BRANCH}"
+ else
+ echo -e "${BLUE}Creating new release branch from ${LATEST_TAG}...${NC}"
+ git checkout -b "${RELEASE_BRANCH}" "${LATEST_TAG}"
+ fi
+
+ if [ -z "$FIX_COMMITS" ]; then
+ echo ""
+ read -p "Do you want to continue anyway? (y/n) " CONTINUE
+ if [[ "$CONTINUE" != "y" ]]; then
+ git checkout main
+ git branch -D "${RELEASE_BRANCH}" 2>/dev/null || true
+ exit 0
+ fi
+ else
+ echo ""
+ fi
+
+ echo -e "${BLUE}=== Cherry-pick Instructions ===${NC}"
+ echo ""
+ echo "You can now cherry-pick the commits you want to include in this hotfix."
+ echo ""
+ echo "Example:"
+ echo -e " ${GREEN}git cherry-pick abc123 def456${NC}"
+ echo ""
+ echo "Or pick them one at a time and continue when done."
+ echo ""
+
+ # Interactive cherry-pick loop
+ while true; do
+ echo ""
+ read -p "Enter commit hash to cherry-pick (or 'done' to finish, 'list' to see commits again, 'quit' to abort): " INPUT
+
+ case "$INPUT" in
+ done)
+ break
+ ;;
+ quit)
+ echo -e "${YELLOW}Aborting hotfix release...${NC}"
+ git checkout main
+ read -p "Delete release branch ${RELEASE_BRANCH}? (y/n) " DELETE_BRANCH
+ if [[ "$DELETE_BRANCH" == "y" ]]; then
+ git branch -D "${RELEASE_BRANCH}" 2>/dev/null || true
+ fi
+ exit 0
+ ;;
+ list)
+ echo ""
+ echo -e "${YELLOW}=== Available fix commits ===${NC}"
+ echo "$FIX_COMMITS"
+ continue
+ ;;
+ "")
+ continue
+ ;;
+ *)
+ # Try to cherry-pick the commit(s)
+ if git cherry-pick $INPUT; then
+ echo -e "${GREEN}✓ Successfully cherry-picked: $INPUT${NC}"
+ else
+ echo -e "${RED}✗ Cherry-pick failed. Resolve conflicts and run:${NC}"
+ echo -e " ${YELLOW}git add <resolved-files>${NC}"
+ echo -e " ${YELLOW}git cherry-pick --continue${NC}"
+ echo ""
+ read -p "Press Enter when resolved (or 'abort' to skip this commit): " RESOLVE
+ if [[ "$RESOLVE" == "abort" ]]; then
+ git cherry-pick --abort
+ echo -e "${YELLOW}Cherry-pick aborted${NC}"
+ fi
+ fi
+ ;;
+ esac
+ done
+
+ # Check if any commits were added
+ BASE_TAG=$(get_latest_repo_tag "HEAD")
+ if [ -z "$BASE_TAG" ]; then
+ BASE_TAG="$LATEST_TAG"
+ fi
+ COMMITS_ADDED=$(git rev-list "${BASE_TAG}..HEAD" --count)
+
+ if [ "$COMMITS_ADDED" -eq 0 ]; then
+ echo -e "${RED}No commits were cherry-picked. Aborting hotfix release.${NC}"
+ git checkout main
+ git branch -D "${RELEASE_BRANCH}" 2>/dev/null || true
+ exit 0
+ fi
+
+ echo ""
+ echo -e "${YELLOW}=== Commits in this hotfix release ===${NC}"
+ git log "${BASE_TAG}..HEAD" --oneline --no-merges
+ echo ""
+
+ # Confirm release
+ read -p "Create hotfix release ${NEW_TAG}? (y/n) " CONFIRM
+ if [[ "$CONFIRM" != "y" ]]; then
+ echo -e "${RED}Release canceled.${NC}"
+ echo ""
+ echo "You are still on branch ${RELEASE_BRANCH}."
+ echo "To continue later, run this command again or finalize manually."
+ exit 1
+ fi
+
+ echo ""
+ echo -e "${BLUE}Finalizing hotfix release ${NEW_TAG}...${NC}"
+
+ # Update .arcane.json file with the new version and revision
+ LATEST_REVISION=$(git rev-parse HEAD)
+ jq --arg version "$NEW_VERSION" --arg revision "$LATEST_REVISION" \
+ '.version = $version | .revision = $revision' .arcane.json > .arcane_tmp.json && mv .arcane_tmp.json .arcane.json
+ git add .arcane.json
+
+ # Update version in frontend/package.json
+ jq --arg new_version "$NEW_VERSION" '.version = $new_version' frontend/package.json > frontend/package_tmp.json && mv frontend/package_tmp.json frontend/package.json
+ git add frontend/package.json
+
+ # Generate changelog for ONLY the fixes in this release branch
+ echo -e "${BLUE}Generating changelog for hotfix...${NC}"
+
+ $CLIFF_CMD $CLIFF_VERBOSE \
+ --github-token=$(gh auth token) \
+ --prepend CHANGELOG.md \
+ --tag "$NEW_TAG" \
+ --unreleased
+
+ git add CHANGELOG.md
+
+ # Commit the version bump and changelog
+ git commit \
+ -m "release: ${NEW_VERSION} (hotfix)" \
+ -m "Hotfix release containing critical bug fixes." \
+ -m "Base version: ${BASE_TAG}" \
+ -m "See CHANGELOG.md for details."
+
+ # Create annotated tag
+ git tag -a "$NEW_TAG" \
+ -m "Release ${NEW_TAG} (Hotfix)" \
+ -m "Hotfix release based on ${BASE_TAG}" \
+ -m "See CHANGELOG.md for details."
+
+ git tag "cli/${NEW_TAG}"
+ git tag "types/${NEW_TAG}"
+
+ echo ""
+ echo -e "${GREEN}✅ Hotfix release ${NEW_TAG} created successfully!${NC}"
+ echo ""
+
+ # Push the commit and the tag to the repository
+ git push
+ git push --tags
+
+ # Extract the changelog content for the latest release
+ echo "Extracting changelog content for version $NEW_TAG..."
+ CHANGELOG=$(awk '/^## v[0-9]/ { if (found) exit; found=1; next } found' CHANGELOG.md)
+
+ if [ -z "$CHANGELOG" ]; then
+ echo -e "${RED}Error: Could not extract changelog for version $NEW_TAG.${NC}"
+ exit 1
+ fi
+
+ # Create the draft release on GitHub
+ echo "Creating GitHub draft release..."
+ gh release create "$NEW_TAG" --title "${NEW_TAG} (Hotfix)" --notes "$CHANGELOG" --draft
+
+ if [ $? -eq 0 ]; then
+ echo "GitHub draft release created successfully."
+ else
+ echo -e "${RED}Error: Failed to create GitHub release.${NC}"
+ exit 1
+ fi
+
+ echo "Release process complete. New version: $NEW_TAG"
+ echo ""
+ echo -e "${YELLOW}Note: Hotfix release created from ${BASE_TAG} on ${RELEASE_BRANCH}${NC}"
+ echo "The fix commits are already on main, this release just tags them without unreleased features."
+ echo ""
+ echo "Review the draft at: https://github.com/ofkm/arcane/releases"
+ echo ""
+
+ # Update main branch with the new version files
+ echo -e "${BLUE}Updating main branch with version ${NEW_VERSION}...${NC}"
+ git checkout main
+ git pull origin main --quiet
+
+ # Update .arcane.json file with the new version and revision
+ jq --arg version "$NEW_VERSION" --arg revision "$LATEST_REVISION" \
+ '.version = $version | .revision = $revision' .arcane.json > .arcane_tmp.json && mv .arcane_tmp.json .arcane.json
+
+ # Update version in frontend/package.json
+ jq --arg new_version "$NEW_VERSION" '.version = $new_version' frontend/package.json > frontend/package_tmp.json && mv frontend/package_tmp.json frontend/package.json
+
+ # Copy the updated CHANGELOG.md from the release branch
+ git checkout "${RELEASE_BRANCH}" -- CHANGELOG.md
+
+ # Commit the version updates to main
+ git add .arcane.json frontend/package.json CHANGELOG.md
+ git commit -m "chore: bump version to ${NEW_VERSION} after hotfix release"
+ git push origin main
+
+ echo -e "${GREEN}✅ Main branch updated with version ${NEW_VERSION}${NC}"
+ echo ""
+
+# Utils targets. Valid: "list-fixes", "hotfix".
+[group('utils')]
+utils target *args:
+ @just "_utils-{{ target }}" {{ args }}
+
+# Build the frontend
+[group('build')]
+_build-frontend:
+ pnpm -C frontend build
+
+# Build the backend
+[group('build')]
+_build-backend:
+ cd backend && go build ./...
+
+# Build manager container image
+[group('build')]
+_build-image-manager tag="arcane:latest" flag='':
+ docker buildx build {{ if flag == "--push" { "--push" } else { "" } }} --platform linux/arm64,linux/amd64 -f 'docker/Dockerfile' -t "{{ tag }}" .
+
+# Build agent container image
+[group('build')]
+_build-image-agent tag="arcane-agent:latest" flag='':
+ docker buildx build {{ if flag == "--push" { "--push" } else { "" } }} --platform linux/arm64,linux/amd64 -f 'docker/Dockerfile-agent' -t "{{ tag }}" .
+
+# Build both frontend and backend
+[group('build')]
+_build-all:
+ @just _build-frontend
+ @just _build-backend
+
+# Build targets. Valid: "single frontend", "single backend", "single all", "image manager [tag] [--push]", "image agent [tag] [--push]"
+[group('build')]
+build buildtype type tag="" flag="":
+ @if [ "{{ buildtype }}" = "single" ]; then just _build-{{ type }}; elif [ "{{ buildtype }}" = "image" ]; then just _build-image-{{ type }} "{{ if tag != "" { tag } else if type == "manager" { "arcane:latest" } else { "arcane-agent:latest" } }}" "{{ flag }}"; fi
+
+# --- Release ---
+
+# Create a new release (use --test to dry-run without writing anything)
+[group('release')]
+release *args:
+ #!/usr/bin/env bash
+ set -euo pipefail
+
+ TEST=false
+ FORCE_MAJOR=false
+ VERBOSE=false
+ args=({{ args }})
+ for arg in "${args[@]}"; do
+ case "$arg" in
+ --test)
+ TEST=true
+ ;;
+ --major)
+ FORCE_MAJOR=true
+ ;;
+ --verbose)
+ VERBOSE=true
+ ;;
+ *)
+ ;;
+ esac
+ done
+
+ CLIFF_VERBOSE=""
+ if [ "$VERBOSE" == true ]; then
+ CLIFF_VERBOSE="-vv"
+ fi
+
+ # Check if the script is being run from the root of the project
+ if [ ! -f .arcane.json ] || [ ! -f frontend/package.json ] || [ ! -f CHANGELOG.md ]; then
+ echo "Error: This command must be run from the root of the project."
+ exit 1
+ fi
+
+ # Check if git cliff is installed
+ if ! command -v git cliff &>/dev/null; then
+ echo "Error: git cliff is not installed. Please install it from https://git-cliff.org/docs/installation."
+ exit 1
+ fi
+
+ # Check if GitHub CLI is installed
+ if ! command -v gh &>/dev/null; then
+ echo "Error: GitHub CLI (gh) is not installed. Please install it and authenticate using 'gh auth login'."
+ exit 1
+ fi
+
+ # Ensure local tags are up to date (don't fail if no remote)
+ git fetch --tags --quiet || true
+
+ # Check if we're on the main branch (skip in test mode)
+ if [ "$TEST" == false ] && [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
+ echo "Error: This command must be run on the main branch."
+ exit 1
+ fi
+
+ # Read the current version from .arcane.json
+ VERSION=$(jq -r '.version' .arcane.json)
+
+ # Function to increment the version
+ increment_version() {
+ local version=$1
+ local part=$2
+
+ IFS='.' read -r -a parts <<<"$version"
+ if [ "$part" == "major" ]; then
+ parts[0]=$((parts[0] + 1))
+ parts[1]=0
+ parts[2]=0
+ elif [ "$part" == "minor" ]; then
+ parts[1]=$((parts[1] + 1))
+ parts[2]=0
+ elif [ "$part" == "patch" ]; then
+ parts[2]=$((parts[2] + 1))
+ fi
+ echo "${parts[0]}.${parts[1]}.${parts[2]}"
+ }
+
+ # Determine the release type
+ if [ "$FORCE_MAJOR" == true ]; then
+ RELEASE_TYPE="major"
+ else
+ # Get the latest version tag (v*), ignoring non-version tags like 'next'
+ LATEST_TAG=$(git tag -l 'v*' --sort=-v:refname | head -n1 || echo "")
+ if [ -z "$LATEST_TAG" ]; then
+ RELEASE_TYPE="minor"
+ else
+ # Look only at commit subjects since the last tag (exclude merges)
+ SUBJECTS=$(git log --no-merges --format=%s "${LATEST_TAG}..HEAD")
+
+ if echo "$SUBJECTS" | grep -Eiq '^feat(\([^)]+\))?: '; then
+ RELEASE_TYPE="minor"
+ elif echo "$SUBJECTS" | grep -Eiq '^fix(\([^)]+\))?: '; then
+ RELEASE_TYPE="patch"
+ else
+ echo "No 'fix' or 'feat' commits found since the latest release (${LATEST_TAG}). No new release will be created."
+ echo "Commits since ${LATEST_TAG}:"
+ git log --oneline --no-merges "${LATEST_TAG}..HEAD" || true
+ exit 0
+ fi
+ fi
+ fi
+
+ # Increment the version based on the release type
+ if [ "$RELEASE_TYPE" == "major" ]; then
+ echo "Performing major release..."
+ NEW_VERSION=$(increment_version "$VERSION" major)
+ elif [ "$RELEASE_TYPE" == "minor" ]; then
+ echo "Performing minor release..."
+ NEW_VERSION=$(increment_version "$VERSION" minor)
+ elif [ "$RELEASE_TYPE" == "patch" ]; then
+ echo "Performing patch release..."
+ NEW_VERSION=$(increment_version "$VERSION" patch)
+ else
+ echo "Invalid release type. Please enter either 'major', 'minor', or 'patch'."
+ exit 1
+ fi
+
+ if [ "$TEST" == true ]; then
+ echo "Test mode enabled: no files will be modified, no commits/tags/pushes/releases will be created."
+ else
+ # Confirm release creation
+ read -p "This will create a new $RELEASE_TYPE release with version $NEW_VERSION. Do you want to proceed? (y/n) " CONFIRM
+ if [[ "$CONFIRM" != "y" ]]; then
+ echo "Release process canceled."
+ exit 1
+ fi
+ fi
+
+ LATEST_REVISION=$(git rev-parse HEAD)
+
+ if [ "$TEST" == false ]; then
+ # Update .arcane.json file with the new version and revision
+ echo "Updating .arcane.json file..."
+ jq --arg version "$NEW_VERSION" --arg revision "$LATEST_REVISION" \
+ '.version = $version | .revision = $revision' .arcane.json > .arcane_tmp.json && mv .arcane_tmp.json .arcane.json
+ git add .arcane.json
+
+ # Update version in frontend/package.json
+ jq --arg new_version "$NEW_VERSION" '.version = $new_version' frontend/package.json > frontend/package_tmp.json && mv frontend/package_tmp.json frontend/package.json
+ git add frontend/package.json
+
+ # Generate changelog
+ echo "Generating changelog..."
+ git cliff $CLIFF_VERBOSE --github-token=$(gh auth token) --prepend CHANGELOG.md --tag "v$NEW_VERSION" --unreleased
+ git add CHANGELOG.md
+
+ # Commit the changes with the new version
+ git commit -m "release: $NEW_VERSION"
+
+ # Create Git tags with the new version
+ git tag "v$NEW_VERSION"
+ git tag "cli/v$NEW_VERSION"
+ git tag "types/v$NEW_VERSION"
+
+ # Push the commit and the tags to the repository
+ git push
+ git push origin "v$NEW_VERSION" "cli/v$NEW_VERSION" "types/v$NEW_VERSION"
+
+ # Extract the changelog content for the latest release
+ echo "Extracting changelog content for version $NEW_VERSION..."
+ CHANGELOG=$(awk '/^## v[0-9]/ { if (found) exit; found=1; next } found' CHANGELOG.md)
+
+ if [ -z "$CHANGELOG" ]; then
+ echo "Error: Could not extract changelog for version $NEW_VERSION."
+ exit 1
+ fi
+
+ # Create the draft release on GitHub
+ echo "Creating GitHub draft release..."
+ gh release create "v$NEW_VERSION" --title "v$NEW_VERSION" --notes "$CHANGELOG" --draft
+
+ if [ $? -eq 0 ]; then
+ echo "GitHub draft release created successfully."
+ else
+ echo "Error: Failed to create GitHub release."
+ exit 1
+ fi
+
+ echo "Release process complete. New version: $NEW_VERSION"
+ else
+ echo "Test mode: skipping confirmation prompt and all write operations."
+ echo "Would update .arcane.json to version $NEW_VERSION and revision $LATEST_REVISION"
+ echo "Would update frontend/package.json to version $NEW_VERSION"
+ echo "Generating changelog preview (no file write)..."
+ CHANGELOG=$(git cliff $CLIFF_VERBOSE --github-token=$(gh auth token) --tag "v$NEW_VERSION" --unreleased)
+
+ if [ -z "$CHANGELOG" ]; then
+ echo "Error: Could not generate changelog preview for version $NEW_VERSION."
+ exit 1
+ fi
+
+ echo "----- BEGIN CHANGELOG PREVIEW -----"
+ echo "$CHANGELOG"
+ echo "----- END CHANGELOG PREVIEW -----"
+ echo "Would commit: release: $NEW_VERSION"
+ echo "Would tag: v$NEW_VERSION, cli/v$NEW_VERSION, types/v$NEW_VERSION"
+ echo "Would push commit and tags"
+ echo "Would create GitHub draft release v$NEW_VERSION"
+ echo "Test mode complete. No changes were written."
+ fi
+
+# --- Testing ---
+
+# Run Playwright E2E tests
+[group('tests')]
+_test-e2e:
+ pnpm -C tests test
+
+# Run backend Go tests
+[group('tests')]
+_test-backend:
+ cd backend && go test -tags=exclude_frontend ./... -race -coverprofile=coverage.txt -covermode=atomic -v
+
+# Run CLI tests
+[group('tests')]
+_test-cli:
+ cd cli && go test ./... -race -coverprofile=coverage.txt -covermode=atomic -v
+
+[group('tests')]
+_test-all:
+ @just _test-e2e
+ @just _test-backend
+ @just _test-cli
+
+# Run tests. Valid targets: "e2e", "backend", "cli", "all".
+[group('tests')]
+test target="all":
+ @just "_test-{{ target }}"
+
+# --- Dependency Management ---
+
+# Update frontend dependencies
+[group('deps')]
+_deps-update-frontend:
+ pnpm update
+
+# Update backend Go dependencies
+[group('deps')]
+_deps-update-backend:
+ cd backend && go get -u ./... && go mod tidy
+
+# Update pnpm version via corepack
+[group('deps')]
+_deps-update-pnpm:
+ npx corepack up
+
+[group('deps')]
+_deps-update-all: _deps-update-frontend _deps-update-backend _deps-update-pnpm
+
+# Install frontend dependencies
+[group('deps')]
+_deps-install-frontend:
+ pnpm install
+
+# Install tests dependencies
+[group('deps')]
+_deps-install-tests:
+ pnpm -C tests install
+ pnpm exec playwright install --with-deps chromium
+
+# Install backend Go dependencies
+[group('deps')]
+_deps-install-backend:
+ cd backend && go mod download
+ go work sync
+
+# Install CLI Go dependencies
+[group('deps')]
+_deps-install-cli:
+ cd cli && go mod download
+ go work sync
+
+# Install types Go dependencies
+[group('deps')]
+_deps-install-types:
+ cd types && go mod download
+ go work sync
+
+# Install all Go dependencies
+[group('deps')]
+_deps-install-go: _deps-install-backend _deps-install-cli _deps-install-types
+
+# Install all Node.js dependencies
+[group('deps')]
+_deps-install-node: _deps-install-frontend _deps-install-tests
+
+# Install all dependencies
+[group('deps')]
+_deps-install-all: _deps-install-node _deps-install-go
+
+# Deps targets. Valid: "install [frontend|tests|backend|cli|types|go|node|all]", "update [frontend|backend|pnpm|all]"
+[group('deps')]
+deps action="update" target="all":
+ @just "_deps-{{ action }}-{{ target }}"
+
+# Type check/Lint frontend
+[group('lint')]
+_lint-frontend:
+ pnpm -C frontend check
+
+[group('lint')]
+_lint-all:
+ @just _lint-frontend
+ @just _lint-go
+
+# Lint Go backend
+[group('lint')]
+_lint-backend:
+ cd backend && golangci-lint run ./...
+
+# Lint Go CLI
+[group('lint')]
+_lint-cli:
+ cd cli && golangci-lint run ./...
+
+# Lint Types
+[group('lint')]
+_lint-types:
+ cd types && golangci-lint run ./...
+
+# Lint all Go code
+[group('lint')]
+_lint-go: _lint-backend _lint-cli _lint-types
+
+# Lint targets. Valid: "backend", "frontend", "cli", "types" "all".
+[group('lint')]
+lint target="all":
+ @just "_lint-{{ target }}"
+
+# Format frontend (Prettier) and Go modules (gofmt)
+[group('format')]
+_format-frontend:
+ pnpm -C frontend format
+
+[group('format')]
+_format-go:
+ cd backend && gofmt -s -w .
+ cd cli && gofmt -s -w .
+ cd types && gofmt -s -w .
+
+[group('format')]
+_format-just:
+ just --fmt --unstable
+
+[group('format')]
+_format-all:
+ @just _format-frontend
+ @just _format-go
+ @just _format-just
+
+# Format targets. Valid: "frontend", "go", "just", "all".
+[group('format')]
+format target="all":
+ @just "_format-{{ target }}"
+
+# Clean build artifacts
+[group('repo')]
+_repo-clean:
+ rm -rf frontend/.svelte-kit frontend/build backend/.bin
+ find . -type d -name node_modules -prune -exec rm -rf {} \;
+
+# Repo targets. Valid: "clean".
+[group('repo')]
+repo target="clean":
+ @just "_repo-{{ target }}"
diff --git a/cli/README.md b/cli/README.md
index 0d631e4f6..b89c8bce6 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -17,6 +17,12 @@ This module lives inside the main Arcane repo. To build the CLI locally:
- `go install github.com/getarcaneapp/arcane/cli@latest`
+## Versions
+
+CLI versions are tagged as `cli/vX.Y.Z` in the main repo. Use module tags to pin a specific release:
+
+- `go install github.com/getarcaneapp/arcane/cli@cli/vX.Y.Z`
+
## Configure
The CLI stores config in `~/.config/arcanecli.yml`.
diff --git a/email-templates/package.json b/email-templates/package.json
index af81fdb11..244f600c6 100644
--- a/email-templates/package.json
+++ b/email-templates/package.json
@@ -1,10 +1,6 @@
{
"name": "arcane-email-templates",
"version": "1.0.0",
- "packageManager": "[email protected]+sha512.7d7dbbca9e99447b7c3bf7a73286afaaf6be99251eb9498baefa7d406892f67b879adb3a1d7e687fc4ccc1a388c7175fbaae567a26ab44d1067b54fcb0d6a316",
- "engines": {
- "node": ">=25"
- },
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "tsx build.ts",
@@ -14,7 +10,7 @@
},
"dependencies": {
"@react-email/components": "1.0.6",
- "react": "^19.2.3",
+ "react": "^19.2.4",
"react-dom": "^19.2.4",
"tailwind-merge": "^3.4.0"
},
diff --git a/frontend/package.json b/frontend/package.json
index 72de80c30..d0fcbb110 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -3,17 +3,12 @@
"private": true,
"version": "1.14.1",
"type": "module",
- "packageManager": "[email protected]+sha512.7d7dbbca9e99447b7c3bf7a73286afaaf6be99251eb9498baefa7d406892f67b879adb3a1d7e687fc4ccc1a388c7175fbaae567a26ab44d1067b54fcb0d6a316",
- "engines": {
- "node": ">=25"
- },
"scripts": {
"dev": "vite dev --port 3000 --host",
"build": "vite build",
"preview": "vite preview --port 3000",
"prepare": "svelte-kit sync || echo ''",
- "check": "svelte-fast-check --incremental --config ./svelte-fast-check.config.ts",
- "check:ci": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"format": "prettier --write ./src",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"knip": "knip",
@@ -60,7 +55,6 @@
"paneforge": "^1.0.2",
"runed": "^0.37.0",
"svelte-check": "^4.3.5",
- "svelte-fast-check": "^0.4.3",
"svelte-sonner": "^1.0.7",
"svelte-toolbelt": "^0.10.6",
"sveltekit-superforms": "^2.29.1",
diff --git a/frontend/svelte-fast-check.config.ts b/frontend/svelte-fast-check.config.ts
deleted file mode 100644
index b54ed0930..000000000
--- a/frontend/svelte-fast-check.config.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import type { FastCheckConfig } from 'svelte-fast-check';
-
-export default {
- rootDir: './',
- srcDir: './src',
- exclude: ['./src/lib/paraglide/**/*']
-} satisfies FastCheckConfig;
diff --git a/package.json b/package.json
index 8ba40186b..c87c35cd4 100644
--- a/package.json
+++ b/package.json
@@ -11,13 +11,6 @@
"email-templates"
],
"scripts": {
- "preinstall": "npx only-allow pnpm",
- "dev": "pnpm --filter arcane-frontend dev",
- "build": "pnpm --filter arcane-frontend build",
- "test": "pnpm --filter arcane-tests test",
- "format": "pnpm --filter arcane-frontend format && gofmt -w -s .",
- "check": "pnpm --filter arcane-frontend check",
- "check:ci": "pnpm --filter arcane-frontend check:ci",
- "knip": "pnpm --filter arcane-frontend knip"
+ "preinstall": "npx only-allow pnpm"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index eacff91bd..f356bca42 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -20,20 +20,20 @@ importers:
dependencies:
'@react-email/components':
specifier: 1.0.6
react:
- specifier: ^19.2.3
- version: 19.2.3
+ specifier: ^19.2.4
+ version: 19.2.4
react-dom:
specifier: ^19.2.4
- version: 19.2.4([email protected])
+ version: 19.2.4([email protected])
tailwind-merge:
specifier: ^3.4.0
version: 3.4.0
devDependencies:
'@react-email/preview-server':
specifier: 5.1.0
'@types/node':
specifier: ^25.0.10
version: 25.0.10
@@ -161,9 +161,6 @@ importers:
svelte-check:
specifier: ^4.3.5
- svelte-fast-check:
- specifier: ^0.4.3
svelte-sonner:
specifier: ^1.0.7
version: 1.0.7([email protected])
@@ -1737,45 +1734,6 @@ packages:
'@types/json-schema':
optional: true
- '@typescript/[email protected]':
- resolution: {integrity: sha512-rEY7JFH9JhIQ7SCjD+cpwPhIBLzNOgA7IVkfIcOpbWTmtOufx0sTZejR5B2b81x2fLCJDPZGpUv71wD1LP45iA==}
- cpu: [arm64]
- os: [darwin]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-zBrxf4LYMhLGimvEZHJjtpYnpSqV4Q0rOkXEi8I5durn9NaGIBTOebBYXwF8/na6Pufdqd+vI1KQYxkm2G02pw==}
- cpu: [x64]
- os: [darwin]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-WeDI+wrA1GqBFwFzj9i/zXlOuUaJdKidg6Jgry1P1TNpsHYW5YiKoNcpFirm1Fq3Dnav5cAa66z6VK5lvz7tgQ==}
- cpu: [arm64]
- os: [linux]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-J8kHoVttxNeMq1wdT12HPe6i/524svbdw1RsMBgb+kbqTfFFElSK7rbeZFuTfzpEA0/c6y2MY96qLP07Fq4zEw==}
- cpu: [arm]
- os: [linux]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-D0nuBsJTIfc1JD2HyoMKqc2Wpe0tMAP92hgwap6E3iTlKFMW9ayd7KLUjLz6EFxxw9LRw2sjECT1VvjCjAJ4GQ==}
- cpu: [x64]
- os: [linux]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-nv365W1TiJEAAJ/NiBaKE9hSvG7U7ipuAoaSdr6HzdyMVouArq2DxxLo06mzDMOjNdc6U7vAIkLB52CcK3Y8ZQ==}
- cpu: [arm64]
- os: [win32]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-da44CbC8ktr741ISLvCQlz3Gv2UqO2M+rB585xCFNjcz+0IyOKkBGr9eR++f6uy46/QKFK4w44x0cK71PVqk9g==}
- cpu: [x64]
- os: [win32]
-
- '@typescript/[email protected]':
- resolution: {integrity: sha512-27XQhOQWcGp7/nOS1NbEoC4vA2dZOmG5X+OP4e5KX2uAUc2cjE1Scn1Nnv9D7wU2ZBA+/wrqqvJqidCPFRlq+A==}
- hasBin: true
-
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
@@ -1935,9 +1893,6 @@ packages:
resolution: {integrity: sha512-rXXekcjofVN1LTOSw+u4u9WXVEUvNBVjORW154q/IdmYWy1nMbOU9aNtZB0t8m+FJQ9q91jlr2f9CwwUFdFMRA==}
- resolution: {integrity: sha512-eZzJGlG3N6+IsKV+297HIRS2fyRsLMOrx62hGUmmcyOtP/I+L7JVeSKZH49WZUdVB8NoaZOUvq01363I/PHJiA==}
-
resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
engines: {node: '>=18'}
@@ -2060,9 +2015,6 @@ packages:
resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
- resolution: {integrity: sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ==}
-
resolution: {integrity: sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==}
peerDependencies:
@@ -2943,8 +2895,8 @@ packages:
engines: {node: '>=20.0.0'}
hasBin: true
- resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==}
+ resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==}
engines: {node: '>=0.10.0'}
@@ -3035,9 +2987,6 @@ packages:
resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
- resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==}
-
resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}
@@ -3181,14 +3130,6 @@ packages:
svelte: ^4.0.0 || ^5.0.0-next.0
typescript: '>=5.0.0'
- resolution: {integrity: sha512-EVj+KMpJ+kS0WNYpVpgTb0Ft5RIt0GnPHEqCn207VpRJGYoxG+s5m10R/Sz0xTjxPeE/9A22aTe1sEAdPXSk9w==}
- engines: {node: '>=22'}
- hasBin: true
- peerDependencies:
- svelte: '>=5.0.0'
- typescript: '>=5.0.0'
-
resolution: {integrity: sha512-7RrdRz9iVP55B9HT/C0hYW3pyrKlF61kAby/AkDtOAP0uHFQDrfd0qQetDC81cEsK9b40jt+jfcqSAXcA7LPEw==}
peerDependencies:
@@ -3223,12 +3164,6 @@ packages:
peerDependencies:
svelte: ^5.30.2
- resolution: {integrity: sha512-S++Vw3w47a8rBuhbz4JK0fcGea8tOoX1boT53Aib8+oUO2EKeOG+geXprJVTDfBlvR+IJdf3jIpR2RGwT6paQA==}
- peerDependencies:
- svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0
- typescript: ^4.9.4 || ^5.0.0
-
resolution: {integrity: sha512-VJwdXrmv9L8L7ZasJeWcCjoIuMRVbhuxbss0fpVnR8yorMmjNDwcjIH08vS6wmSzzzgAG5CADQ1JuXPS2nwt9w==}
engines: {node: '>=18'}
@@ -3269,9 +3204,6 @@ packages:
resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-6IByuUjyNZJXUtwDNm+OIe62zgwwaRbH+WMNTcx05O2G5V9WhvluAAHJY8OvUdwmzMPpqAD/7EUpGdI6ae1aiQ==}
-
resolution: {integrity: sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==}
engines: {node: '>=10'}
@@ -3354,9 +3286,6 @@ packages:
resolution: {integrity: sha512-xygQcmneDyzsEuKZrFbRMne5HDqMs++aFzefrJTgEIKjQ3rekM+RPfFCVq2Gp1VIDqddoYeppCj4Pcb+RZW0GQ==}
engines: {node: '>=20'}
- resolution: {integrity: sha512-YA09cL07U7hSV+/doSfKl+RkIZ2olCnevZsVgAuyBUG3h2ROf9Oh2vmbq5Rf26aA9/qu9RtStuc7ap5PC6k/vw==}
-
resolution: {integrity: sha512-U6quDhQMzQRzBX8jvlE5mZlUnlMRTaZrG/QMAhOYVJ0D0rhq1iOXBQVSzBX0JgAh55jXQ7fWIv24i+lVimXcDw==}
@@ -4288,93 +4217,93 @@ snapshots:
'@poppinss/[email protected]':
optional: true
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
prismjs: 1.30.0
- react: 19.2.3
-
- dependencies:
- react: 19.2.3
-
- dependencies:
- react: 19.2.3
-
- dependencies:
- '@react-email/body': 0.2.1([email protected])
- '@react-email/button': 0.2.1([email protected])
- '@react-email/code-block': 0.2.1([email protected])
- '@react-email/code-inline': 0.0.6([email protected])
- '@react-email/column': 0.0.14([email protected])
- '@react-email/container': 0.0.16([email protected])
- '@react-email/font': 0.0.10([email protected])
- '@react-email/head': 0.0.13([email protected])
- '@react-email/heading': 0.0.16([email protected])
- '@react-email/hr': 0.0.12([email protected])
- '@react-email/html': 0.0.12([email protected])
- '@react-email/img': 0.0.12([email protected])
- '@react-email/link': 0.0.13([email protected])
- '@react-email/markdown': 0.0.18([email protected])
- '@react-email/preview': 0.0.14([email protected])
- '@react-email/render': 2.0.4([email protected]([email protected]))([email protected])
- '@react-email/row': 0.0.13([email protected])
- '@react-email/section': 0.0.17([email protected])
- '@react-email/text': 0.1.6([email protected])
- react: 19.2.3
+ react: 19.2.4
+
+ dependencies:
+ react: 19.2.4
+
+ dependencies:
+ react: 19.2.4
+
+ dependencies:
+ '@react-email/body': 0.2.1([email protected])
+ '@react-email/button': 0.2.1([email protected])
+ '@react-email/code-block': 0.2.1([email protected])
+ '@react-email/code-inline': 0.0.6([email protected])
+ '@react-email/column': 0.0.14([email protected])
+ '@react-email/container': 0.0.16([email protected])
+ '@react-email/font': 0.0.10([email protected])
+ '@react-email/head': 0.0.13([email protected])
+ '@react-email/heading': 0.0.16([email protected])
+ '@react-email/hr': 0.0.12([email protected])
+ '@react-email/html': 0.0.12([email protected])
+ '@react-email/img': 0.0.12([email protected])
+ '@react-email/link': 0.0.13([email protected])
+ '@react-email/markdown': 0.0.18([email protected])
+ '@react-email/preview': 0.0.14([email protected])
+ '@react-email/render': 2.0.4([email protected]([email protected]))([email protected])
+ '@react-email/row': 0.0.13([email protected])
+ '@react-email/section': 0.0.17([email protected])
+ '@react-email/text': 0.1.6([email protected])
+ react: 19.2.4
transitivePeerDependencies:
- react-dom
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
marked: 15.0.12
- react: 19.2.3
+ react: 19.2.4
dependencies:
transitivePeerDependencies:
- '@babel/core'
- '@opentelemetry/api'
@@ -4385,45 +4314,45 @@ snapshots:
- react-dom
- sass
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
html-to-text: 9.0.5
prettier: 3.8.1
- react: 19.2.3
- react-dom: 19.2.4([email protected])
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- react: 19.2.3
+ react: 19.2.4
dependencies:
- '@react-email/text': 0.1.6([email protected])
- react: 19.2.3
+ '@react-email/text': 0.1.6([email protected])
+ react: 19.2.4
tailwindcss: 4.1.18
optionalDependencies:
- '@react-email/body': 0.2.1([email protected])
- '@react-email/button': 0.2.1([email protected])
- '@react-email/code-block': 0.2.1([email protected])
- '@react-email/code-inline': 0.0.6([email protected])
- '@react-email/container': 0.0.16([email protected])
- '@react-email/heading': 0.0.16([email protected])
- '@react-email/hr': 0.0.12([email protected])
- '@react-email/img': 0.0.12([email protected])
- '@react-email/link': 0.0.13([email protected])
- '@react-email/preview': 0.0.14([email protected])
+ '@react-email/body': 0.2.1([email protected])
+ '@react-email/button': 0.2.1([email protected])
+ '@react-email/code-block': 0.2.1([email protected])
+ '@react-email/code-inline': 0.0.6([email protected])
+ '@react-email/container': 0.0.16([email protected])
+ '@react-email/heading': 0.0.16([email protected])
+ '@react-email/hr': 0.0.12([email protected])
+ '@react-email/img': 0.0.12([email protected])
+ '@react-email/link': 0.0.13([email protected])
+ '@react-email/preview': 0.0.14([email protected])
dependencies:
- react: 19.2.3
+ react: 19.2.4
'@rollup/[email protected]':
optional: true
@@ -4756,37 +4685,6 @@ snapshots:
'@types/json-schema': 7.0.15
optional: true
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optional: true
-
- '@typescript/[email protected]':
- optionalDependencies:
- '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260109.1
- '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260109.1
- '@typescript/native-preview-linux-arm': 7.0.0-dev.20260109.1
- '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260109.1
- '@typescript/native-preview-linux-x64': 7.0.0-dev.20260109.1
- '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260109.1
- '@typescript/native-preview-win32-x64': 7.0.0-dev.20260109.1
-
'@ungap/[email protected]': {}
@@ -4945,11 +4843,6 @@ snapshots:
validator: 13.15.23
optional: true
- dependencies:
- terminal-columns: 2.0.0
- type-flag: 4.0.3
-
dependencies:
restore-cursor: 5.1.0
@@ -5058,8 +4951,6 @@ snapshots:
-
@@ -5763,16 +5654,16 @@ snapshots:
dependencies:
'@next/env': 16.1.6
'@swc/helpers': 0.5.15
baseline-browser-mapping: 2.9.11
caniuse-lite: 1.0.30001761
postcss: 8.4.31
- react: 19.2.3
- react-dom: 19.2.4([email protected])
- styled-jsx: 5.1.6([email protected])
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
+ styled-jsx: 5.1.6([email protected])
optionalDependencies:
'@next/swc-darwin-arm64': 16.1.6
'@next/swc-darwin-x64': 16.1.6
@@ -5967,9 +5858,9 @@ snapshots:
dependencies:
- react: 19.2.3
+ react: 19.2.4
scheduler: 0.27.0
@@ -5996,7 +5887,7 @@ snapshots:
- supports-color
- utf-8-validate
@@ -6105,8 +5996,6 @@ snapshots:
-
dependencies:
parseley: 0.12.1
@@ -6276,10 +6165,10 @@ snapshots:
hey-listen: 1.0.8
tslib: 2.4.0
dependencies:
client-only: 0.0.1
- react: 19.2.3
+ react: 19.2.4
optional: true
@@ -6296,15 +6185,6 @@ snapshots:
transitivePeerDependencies:
- picomatch
- dependencies:
- '@jridgewell/trace-mapping': 0.3.31
- '@typescript/native-preview': 7.0.0-dev.20260109.1
- cleye: 2.2.1
- svelte: 5.46.4
- svelte2tsx: 0.7.46([email protected])([email protected])
- typescript: 5.9.3
-
dependencies:
'@types/react': 18.3.27
@@ -6348,13 +6228,6 @@ snapshots:
style-to-object: 1.0.11
svelte: 5.46.4
- dependencies:
- dedent-js: 1.0.1
- scule: 1.3.0
- svelte: 5.46.4
- typescript: 5.9.3
-
dependencies:
'@jridgewell/remapping': 2.3.5
@@ -6418,8 +6291,6 @@ snapshots:
-
dependencies:
'@jridgewell/source-map': 0.3.11
@@ -6498,8 +6369,6 @@ snapshots:
dependencies:
tagged-tag: 1.0.0
-
optional: true
diff --git a/scripts/build-docker.sh b/scripts/build-docker.sh
deleted file mode 100755
index 9a73f2728..000000000
--- a/scripts/build-docker.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-# Read version and revision from .arcane.json file
-if [ -f .arcane.json ]; then
- VERSION=$(jq -r '.version // "dev"' .arcane.json)
- REVISION=$(jq -r '.revision // empty' .arcane.json)
-fi
-VERSION=${VERSION:-"dev"}
-REVISION=${REVISION:-$(git rev-parse HEAD 2>/dev/null || "unknown")}
-
-# Parse optional arguments
-TAG="${1:-arcane:latest}"
-PULL="${2:---pull}"
-
-# Split PULL into array to allow multiple flags while preventing globbing
-PULL_ARGS=()
-if [ -n "$PULL" ]; then
- IFS=' ' read -r -a PULL_ARGS <<< "$PULL"
-fi
-
-echo "Building Docker image: ${TAG}"
-echo " VERSION: ${VERSION}"
-echo " REVISION: ${REVISION}"
-echo ""
-
-depot build "${PULL_ARGS[@]}" --rm \
- -f 'docker/Dockerfile' \
- --build-arg VERSION="${VERSION}" \
- --build-arg REVISION="${REVISION}" \
- -t "${TAG}" \
- .
-
-echo ""
-echo "✓ Build complete: ${TAG}"
diff --git a/scripts/github/build-binaries.sh b/scripts/github/build-binaries.sh
deleted file mode 100755
index ebf9011c4..000000000
--- a/scripts/github/build-binaries.sh
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-cd backend
-mkdir -p .bin
-
-HOST_OS="$(go env GOHOSTOS)"
-
-# Read version and revision from .arcane.json
-if [ -f ../.arcane.json ]; then
- VERSION=${VERSION:-$(jq -r '.version' ../.arcane.json)}
- REVISION=${REVISION:-$(jq -r '.revision // empty' ../.arcane.json)}
-fi
-VERSION=${VERSION:-"dev"}
-REVISION=${REVISION:-$(git rev-parse HEAD 2>/dev/null || echo "unknown")}
-BUILD_TIME=$(date -u '+%Y-%m-%dT%H:%M:%SZ')
-
-LDFLAGS="-w -s -buildid=${VERSION} \
- -X github.com/getarcaneapp/arcane/backend/internal/config.Version=${VERSION} \
- -X github.com/getarcaneapp/arcane/backend/internal/config.Revision=${REVISION} \
- -X github.com/getarcaneapp/arcane/backend/internal/config.BuildTime=${BUILD_TIME}"
-
-DOCKER_ONLY=false
-AGENT_BUILD=false
-NEXT_BUILDS=false
-
-for arg in "${@:-}"; do
- case "$arg" in
- --docker) DOCKER_ONLY=true ;;
- --agent) AGENT_BUILD=true ;;
- --next-builds) NEXT_BUILDS=true ;;
- *) ;;
- esac
-done
-
-BINARY_BASENAME="arcane"
-BUILD_TAGS=""
-if [ "$AGENT_BUILD" = true ]; then
- BINARY_BASENAME="arcane-agent"
- BUILD_TAGS="exclude_frontend"
-fi
-
-build_platform() {
- local target="$1" os="$2" arch="$3" arm_version="${4:-}"
-
- # skip macOS builds on non-mac hosts (prevents clang -arch failure)
- if [ "$os" = "darwin" ] && [ "$HOST_OS" != "darwin" ]; then
- echo "Skipping $os/$arch (host=$HOST_OS, no macOS toolchain)"
- return 0
- fi
-
- local output_path=".bin/${BINARY_BASENAME}-${target}"
-
- local cgo_enabled=0
- if [ "$os" = "darwin" ] && [ "$HOST_OS" = "darwin" ]; then
- cgo_enabled="${CGO_ENABLED_DARWIN_OVERRIDE:-1}"
- fi
-
- if [ -n "$arm_version" ]; then
- printf "Building %s (GOOS=%s GOARCH=%s GOARM=%s CGO_ENABLED=%s)%s ... " \
- "$output_path" "$os" "$arch" "$arm_version" "$cgo_enabled" "${BUILD_TAGS:+ tags=$BUILD_TAGS}"
- else
- printf "Building %s (GOOS=%s GOARCH=%s CGO_ENABLED=%s)%s ... " \
- "$output_path" "$os" "$arch" "$cgo_enabled" "${BUILD_TAGS:+ tags=$BUILD_TAGS}"
- fi
-
- if [ -n "$BUILD_TAGS" ]; then
- if [ -n "$arm_version" ]; then
- GOARM="$arm_version" CGO_ENABLED="$cgo_enabled" GOOS="$os" GOARCH="$arch" \
- go build -tags "$BUILD_TAGS" -ldflags="$LDFLAGS" -trimpath -o "$output_path" ./cmd/main.go
- else
- CGO_ENABLED="$cgo_enabled" GOOS="$os" GOARCH="$arch" \
- go build -tags "$BUILD_TAGS" -ldflags="$LDFLAGS" -trimpath -o "$output_path" ./cmd/main.go
- fi
- else
- if [ -n "$arm_version" ]; then
- GOARM="$arm_version" CGO_ENABLED="$cgo_enabled" GOOS="$os" GOARCH="$arch" \
- go build -ldflags="$LDFLAGS" -trimpath -o "$output_path" ./cmd/main.go
- else
- CGO_ENABLED="$cgo_enabled" GOOS="$os" GOARCH="$arch" \
- go build -ldflags="$LDFLAGS" -trimpath -o "$output_path" ./cmd/main.go
- fi
- fi
- echo "Done"
-}
-
-echo "Version: ${VERSION}"
-if [ "$NEXT_BUILDS" = true ]; then
- echo "Building next images binaries (manager + agent for linux targets)..."
- # Build manager binaries
- BINARY_BASENAME="arcane"
- BUILD_TAGS=""
- build_platform "linux-amd64" "linux" "amd64"
- build_platform "linux-arm64" "linux" "arm64"
- build_platform "linux-armv7" "linux" "arm" "7"
- # Build agent binaries
- BINARY_BASENAME="arcane-agent"
- BUILD_TAGS="exclude_frontend"
- build_platform "linux-amd64" "linux" "amd64"
- build_platform "linux-arm64" "linux" "arm64"
- build_platform "linux-armv7" "linux" "arm" "7"
-elif [ "$DOCKER_ONLY" = true ]; then
- if [ "$AGENT_BUILD" = true ]; then
- echo "Building agent binaries (docker-only linux targets)..."
- else
- echo "Building binaries (docker-only linux targets)..."
- fi
- build_platform "linux-amd64" "linux" "amd64"
- build_platform "linux-arm64" "linux" "arm64"
-else
- if [ "$AGENT_BUILD" = true ]; then
- echo "Building agent binaries for all platforms..."
- else
- echo "Building binaries for all platforms..."
- fi
- build_platform "linux-amd64" "linux" "amd64"
- build_platform "linux-386" "linux" "386"
- build_platform "linux-arm64" "linux" "arm64"
- build_platform "linux-armv7" "linux" "arm" "7"
- build_platform "macos-x64" "darwin" "amd64"
- build_platform "macos-arm64" "darwin" "arm64"
-fi
-
-echo "Compilation done"
diff --git a/scripts/github/build-cli-binaries.sh b/scripts/github/build-cli-binaries.sh
deleted file mode 100644
index 9a7f32e17..000000000
--- a/scripts/github/build-cli-binaries.sh
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-cd cli
-mkdir -p .bin
-
-# Prefer VERSION/REVISION from the environment (e.g., CI tag builds).
-# Fall back to .arcane.json if available and jq is installed.
-if [ -f ../.arcane.json ] && [ -z "${VERSION:-}" ]; then
- if command -v jq >/dev/null 2>&1; then
- VERSION=$(jq -r '.version' ../.arcane.json)
- REVISION=${REVISION:-$(jq -r '.revision // empty' ../.arcane.json)}
- else
- echo "Warning: jq not found; skipping version read from .arcane.json" >&2
- fi
-fi
-
-VERSION=${VERSION:-"dev"}
-# Tags are typically like v1.2.3; the CLI version string expects 1.2.3.
-VERSION=${VERSION#v}
-REVISION=${REVISION:-$(git rev-parse HEAD 2>/dev/null || echo "unknown")}
-
-LDFLAGS="-w -s -buildid=${VERSION} \
- -X github.com/getarcaneapp/arcane/cli/internal/config.Version=${VERSION} \
- -X github.com/getarcaneapp/arcane/cli/internal/config.Revision=${REVISION}"
-
-BINARY_BASENAME="arcane-cli"
-
-build_platform() {
- local target="$1" os="$2" arch="$3" arm_version="${4:-}"
-
- local ext=""
- if [ "$os" = "windows" ]; then
- ext=".exe"
- fi
-
- local output_path=".bin/${BINARY_BASENAME}-${target}${ext}"
-
- local cgo_enabled=0
-
- if [ -n "$arm_version" ]; then
- printf "Building %s (GOOS=%s GOARCH=%s GOARM=%s CGO_ENABLED=%s) ... " \
- "$output_path" "$os" "$arch" "$arm_version" "$cgo_enabled"
-
- GOARM="$arm_version" CGO_ENABLED="$cgo_enabled" GOOS="$os" GOARCH="$arch" \
- go build -ldflags="$LDFLAGS" -trimpath -o "$output_path" ./main.go
- else
- printf "Building %s (GOOS=%s GOARCH=%s CGO_ENABLED=%s) ... " \
- "$output_path" "$os" "$arch" "$cgo_enabled"
-
- CGO_ENABLED="$cgo_enabled" GOOS="$os" GOARCH="$arch" \
- go build -ldflags="$LDFLAGS" -trimpath -o "$output_path" ./main.go
- fi
-
- echo "Done"
-}
-
-echo "Version: ${VERSION}"
-echo "Building Arcane CLI binaries for all platforms..."
-
-# Linux
-build_platform "linux-amd64" "linux" "amd64"
-build_platform "linux-386" "linux" "386"
-build_platform "linux-arm64" "linux" "arm64"
-build_platform "linux-armv7" "linux" "arm" "7"
-
-# macOS (cross-compiled, CGO disabled)
-build_platform "macos-x64" "darwin" "amd64"
-build_platform "macos-arm64" "darwin" "arm64"
-
-# Windows
-build_platform "windows-x64" "windows" "amd64"
-build_platform "windows-386" "windows" "386"
-build_platform "windows-arm64" "windows" "arm64"
-
-echo "Compilation done"
diff --git a/scripts/github/create-release.sh b/scripts/github/create-release.sh
deleted file mode 100755
index b56e9d5c0..000000000
--- a/scripts/github/create-release.sh
+++ /dev/null
@@ -1,159 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-# Check if the script is being run from the root of the project
-if [ ! -f .arcane.json ] || [ ! -f frontend/package.json ] || [ ! -f CHANGELOG.md ]; then
- echo "Error: This script must be run from the root of the project."
- exit 1
-fi
-
-# Check if git cliff is installed
-if ! command -v git cliff &>/dev/null; then
- echo "Error: git cliff is not installed. Please install it from https://git-cliff.org/docs/installation."
- exit 1
-fi
-
-# Check if GitHub CLI is installed
-if ! command -v gh &>/dev/null; then
- echo "Error: GitHub CLI (gh) is not installed. Please install it and authenticate using 'gh auth login'."
- exit 1
-fi
-
-# Ensure local tags are up to date (don't fail if no remote)
-git fetch --tags --quiet || true
-
-# Check if we're on the main branch
-if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
- echo "Error: This script must be run on the main branch."
- exit 1
-fi
-
-# Read the current version from .arcane.json
-VERSION=$(jq -r '.version' .arcane.json)
-
-# Function to increment the version
-increment_version() {
- local version=$1
- local part=$2
-
- IFS='.' read -r -a parts <<<"$version"
- if [ "$part" == "major" ]; then
- parts[0]=$((parts[0] + 1))
- parts[1]=0
- parts[2]=0
- elif [ "$part" == "minor" ]; then
- parts[1]=$((parts[1] + 1))
- parts[2]=0
- elif [ "$part" == "patch" ]; then
- parts[2]=$((parts[2] + 1))
- fi
- echo "${parts[0]}.${parts[1]}.${parts[2]}"
-}
-
-# Parse command line arguments
-FORCE_MAJOR=false
-for arg in "$@"; do
- case $arg in
- --major)
- FORCE_MAJOR=true
- shift
- ;;
- *)
- ;;
- esac
-done
-
-# Determine the release type
-if [ "$FORCE_MAJOR" == true ]; then
- RELEASE_TYPE="major"
-else
- # Get the latest version tag (v*), ignoring non-version tags like 'next'
- LATEST_TAG=$(git tag -l 'v*' --sort=-v:refname | head -n1 || echo "")
- if [ -z "$LATEST_TAG" ]; then
- RELEASE_TYPE="minor"
- else
- # Look only at commit subjects since the last tag (exclude merges)
- SUBJECTS=$(git log --no-merges --format=%s "${LATEST_TAG}..HEAD")
-
- if echo "$SUBJECTS" | grep -Eiq '^feat(\([^)]+\))?: '; then
- RELEASE_TYPE="minor"
- elif echo "$SUBJECTS" | grep -Eiq '^fix(\([^)]+\))?: '; then
- RELEASE_TYPE="patch"
- else
- echo "No 'fix' or 'feat' commits found since the latest release (${LATEST_TAG}). No new release will be created."
- echo "Commits since ${LATEST_TAG}:"
- git log --oneline --no-merges "${LATEST_TAG}..HEAD" || true
- exit 0
- fi
- fi
-fi
-
-# Increment the version based on the release type
-if [ "$RELEASE_TYPE" == "major" ]; then
- echo "Performing major release..."
- NEW_VERSION=$(increment_version "$VERSION" major)
-elif [ "$RELEASE_TYPE" == "minor" ]; then
- echo "Performing minor release..."
- NEW_VERSION=$(increment_version "$VERSION" minor)
-elif [ "$RELEASE_TYPE" == "patch" ]; then
- echo "Performing patch release..."
- NEW_VERSION=$(increment_version "$VERSION" patch)
-else
- echo "Invalid release type. Please enter either 'major', 'minor', or 'patch'."
- exit 1
-fi
-
-# Confirm release creation
-read -p "This will create a new $RELEASE_TYPE release with version $NEW_VERSION. Do you want to proceed? (y/n) " CONFIRM
-if [[ "$CONFIRM" != "y" ]]; then
- echo "Release process canceled."
- exit 1
-fi
-
-# Update .arcane.json file with the new version and revision
-echo "Updating .arcane.json file..."
-LATEST_REVISION=$(git rev-parse HEAD)
-jq --arg version "$NEW_VERSION" --arg revision "$LATEST_REVISION" \
- '.version = $version | .revision = $revision' .arcane.json > .arcane_tmp.json && mv .arcane_tmp.json .arcane.json
-git add .arcane.json
-
-# Update version in frontend/package.json
-jq --arg new_version "$NEW_VERSION" '.version = $new_version' frontend/package.json > frontend/package_tmp.json && mv frontend/package_tmp.json frontend/package.json
-git add frontend/package.json
-
-# Generate changelog
-echo "Generating changelog..."
-git cliff --github-token=$(gh auth token) --prepend CHANGELOG.md --tag "v$NEW_VERSION" --unreleased
-git add CHANGELOG.md
-
-# Commit the changes with the new version
-git commit -m "release: $NEW_VERSION"
-
-# Create a Git tag with the new version
-git tag "v$NEW_VERSION"
-
-# Push the commit and the tag to the repository
-git push
-git push origin "v$NEW_VERSION"
-
-# Extract the changelog content for the latest release
-echo "Extracting changelog content for version $NEW_VERSION..."
-CHANGELOG=$(awk '/^## v[0-9]/ { if (found) exit; found=1; next } found' CHANGELOG.md)
-
-if [ -z "$CHANGELOG" ]; then
- echo "Error: Could not extract changelog for version $NEW_VERSION."
- exit 1
-fi
-
-# Create the draft release on GitHub
-echo "Creating GitHub draft release..."
-gh release create "v$NEW_VERSION" --title "v$NEW_VERSION" --notes "$CHANGELOG" --draft
-
-if [ $? -eq 0 ]; then
- echo "GitHub draft release created successfully."
-else
- echo "Error: Failed to create GitHub release."
- exit 1
-fi
-
-echo "Release process complete. New version: $NEW_VERSION"
diff --git a/scripts/github/get-upvoted-issues.sh b/scripts/github/get-upvoted-issues.sh
deleted file mode 100755
index 1106860c3..000000000
--- a/scripts/github/get-upvoted-issues.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-
-# Get token from GitHub CLI if available
-if command -v gh &> /dev/null; then
- TOKEN=$(gh auth token 2>/dev/null)
- if [ -z "$TOKEN" ]; then
- echo "Warning: gh CLI found but not authenticated. Run 'gh auth login'"
- TOKEN=""
- else
- echo "Using token from gh CLI"
- fi
-else
- echo "Warning: gh CLI not found. Install from https://cli.github.com/"
- TOKEN=""
-fi
-
-if ! command -v jq &> /dev/null; then
- echo "Error: jq is required. Install it and try again."
- exit 1
-fi
-
-echo "Fetching open issues with most upvotes (label: needs more upvotes)..."
-echo ""
-
-# Create temporary file for sorting
-temp=$(mktemp)
-
-# Get all OPEN issues with the label and process them (paginate)
-page=1
-while :; do
- response=$(curl -s ${TOKEN:+-H "Authorization: token $TOKEN"} \
- -H "Accept: application/vnd.github.squirrel-girl-preview+json" \
- "https://api.github.com/repos/getarcaneapp/arcane/issues?labels=needs+more+upvotes&state=open&per_page=100&page=$page")
-
- if ! echo "$response" | jq -e 'type == "array"' > /dev/null 2>&1; then
- message=$(echo "$response" | jq -r '.message // "Unknown error"')
- echo "Error: GitHub API response was not an array: $message" >&2
- break
- fi
-
- count=$(echo "$response" | jq 'length')
- if [ "$count" -eq 0 ]; then
- break
- fi
-
- echo "$response" \
- | jq -r '.[] | "\(.reactions["+1"] // 0)|\(.number)|\(.state)|\(.title)"' \
- >> "$temp"
-
- page=$((page + 1))
-done
-
-if [ ! -s "$temp" ]; then
- echo "No matching issues found (label: needs more upvotes)."
- rm "$temp"
- exit 0
-fi
-
-# Sort and display
-sort -t'|' -k1 -rn "$temp" | while IFS='|' read -r likes num state title; do
- printf "%3d 👍 - #%-4s [%s] %s\n" "$likes" "$num" "$state" "$title"
- echo " https://github.com/getarcaneapp/arcane/issues/$num"
- echo ""
-done
-
-rm "$temp"
diff --git a/scripts/github/hotfix-release.sh b/scripts/github/hotfix-release.sh
deleted file mode 100755
index dfbe2c715..000000000
--- a/scripts/github/hotfix-release.sh
+++ /dev/null
@@ -1,275 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-# Colors for output
-RED='\033[0;31m'
-GREEN='\033[0;32m'
-YELLOW='\033[1;33m'
-BLUE='\033[0;34m'
-NC='\033[0m' # No Color
-
-# Check if the script is being run from the root of the project
-if [ ! -f .arcane.json ] || [ ! -f frontend/package.json ] || [ ! -f CHANGELOG.md ]; then
- echo -e "${RED}Error: This script must be run from the root of the project.${NC}"
- exit 1
-fi
-
-# Check if git cliff is installed
-if ! command -v git cliff &>/dev/null; then
- echo "Error: git cliff is not installed. Please install it from https://git-cliff.org/docs/installation."
- exit 1
-fi
-
-# Check if GitHub CLI is installed
-if ! command -v gh &>/dev/null; then
- echo -e "${RED}Error: GitHub CLI (gh) is not installed. Please install it and authenticate using 'gh auth login'.${NC}"
- exit 1
-fi
-
-# Ensure local tags are up to date
-git fetch --tags --quiet || true
-
-# Get the latest release tag
-LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
-if [ -z "$LATEST_TAG" ]; then
- echo -e "${RED}Error: No previous release tag found.${NC}"
- exit 1
-fi
-
-echo -e "${GREEN}Latest release tag: ${LATEST_TAG}${NC}"
-
-# Extract version components from tag (format: v1.2.3)
-VERSION=${LATEST_TAG#v}
-IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
-
-# Increment patch version for hotfix
-NEW_PATCH=$((PATCH + 1))
-NEW_VERSION="${MAJOR}.${MINOR}.${NEW_PATCH}"
-NEW_TAG="v${NEW_VERSION}"
-
-echo -e "${YELLOW}Proposed hotfix version: ${NEW_TAG}${NC}"
-
-# Create release branch name
-RELEASE_BRANCH="release/v${MAJOR}.${MINOR}"
-
-# Check if release branch already exists
-if git show-ref --verify --quiet "refs/heads/${RELEASE_BRANCH}"; then
- echo -e "${YELLOW}Release branch ${RELEASE_BRANCH} already exists.${NC}"
- read -p "Do you want to use the existing branch? (y/n) " USE_EXISTING
- if [[ "$USE_EXISTING" != "y" ]]; then
- echo -e "${RED}Aborting.${NC}"
- exit 1
- fi
- git checkout "${RELEASE_BRANCH}"
-else
- echo -e "${BLUE}Creating new release branch from ${LATEST_TAG}...${NC}"
- git checkout -b "${RELEASE_BRANCH}" "${LATEST_TAG}"
-fi
-
-echo ""
-echo -e "${YELLOW}=== Available fix commits since ${LATEST_TAG} ===${NC}"
-echo ""
-
-# List all fix commits since the last tag
-FIX_COMMITS=$(git log "${LATEST_TAG}..main" \
- --oneline \
- --no-merges \
- --grep="^fix:" \
- --grep="^hotfix:" \
- --regexp-ignore-case \
- --pretty=format:"%C(yellow)%h%Creset %s %C(dim)(%an)%Creset" || echo "")
-
-if [ -z "$FIX_COMMITS" ]; then
- echo -e "${RED}No fix commits found since ${LATEST_TAG}${NC}"
- echo ""
- read -p "Do you want to continue anyway? (y/n) " CONTINUE
- if [[ "$CONTINUE" != "y" ]]; then
- git checkout main
- git branch -D "${RELEASE_BRANCH}" 2>/dev/null || true
- exit 0
- fi
-else
- echo "$FIX_COMMITS"
- echo ""
-fi
-
-echo -e "${BLUE}=== Cherry-pick Instructions ===${NC}"
-echo ""
-echo "You can now cherry-pick the commits you want to include in this hotfix."
-echo ""
-echo "Example:"
-echo -e " ${GREEN}git cherry-pick abc123 def456${NC}"
-echo ""
-echo "Or pick them one at a time and continue when done."
-echo ""
-
-# Interactive cherry-pick loop
-while true; do
- echo ""
- read -p "Enter commit hash to cherry-pick (or 'done' to finish, 'list' to see commits again, 'quit' to abort): " INPUT
-
- case "$INPUT" in
- done)
- break
- ;;
- quit)
- echo -e "${YELLOW}Aborting hotfix release...${NC}"
- git checkout main
- read -p "Delete release branch ${RELEASE_BRANCH}? (y/n) " DELETE_BRANCH
- if [[ "$DELETE_BRANCH" == "y" ]]; then
- git branch -D "${RELEASE_BRANCH}" 2>/dev/null || true
- fi
- exit 0
- ;;
- list)
- echo ""
- echo -e "${YELLOW}=== Available fix commits ===${NC}"
- echo "$FIX_COMMITS"
- continue
- ;;
- "")
- continue
- ;;
- *)
- # Try to cherry-pick the commit(s)
- if git cherry-pick $INPUT; then
- echo -e "${GREEN}✓ Successfully cherry-picked: $INPUT${NC}"
- else
- echo -e "${RED}✗ Cherry-pick failed. Resolve conflicts and run:${NC}"
- echo -e " ${YELLOW}git add <resolved-files>${NC}"
- echo -e " ${YELLOW}git cherry-pick --continue${NC}"
- echo ""
- read -p "Press Enter when resolved (or 'abort' to skip this commit): " RESOLVE
- if [[ "$RESOLVE" == "abort" ]]; then
- git cherry-pick --abort
- echo -e "${YELLOW}Cherry-pick aborted${NC}"
- fi
- fi
- ;;
- esac
-done
-
-# Check if any commits were added
-BASE_TAG=$(git describe --tags --abbrev=0 "${RELEASE_BRANCH}^" 2>/dev/null || git describe --tags --abbrev=0 2>/dev/null)
-COMMITS_ADDED=$(git rev-list "${BASE_TAG}..HEAD" --count)
-
-if [ "$COMMITS_ADDED" -eq 0 ]; then
- echo -e "${RED}No commits were cherry-picked. Aborting hotfix release.${NC}"
- git checkout main
- git branch -D "${RELEASE_BRANCH}" 2>/dev/null || true
- exit 0
-fi
-
-echo ""
-echo -e "${YELLOW}=== Commits in this hotfix release ===${NC}"
-git log "${BASE_TAG}..HEAD" --oneline --no-merges
-echo ""
-
-# Confirm release
-read -p "Create hotfix release ${NEW_TAG}? (y/n) " CONFIRM
-if [[ "$CONFIRM" != "y" ]]; then
- echo -e "${RED}Release canceled.${NC}"
- echo ""
- echo "You are still on branch ${RELEASE_BRANCH}."
- echo "To continue later, run this script again or finalize manually with:"
- echo -e " ${GREEN}./scripts/github/finalize-hotfix-release.sh ${NEW_TAG}${NC}"
- exit 1
-fi
-
-echo ""
-echo -e "${BLUE}Finalizing hotfix release ${NEW_TAG}...${NC}"
-
-# Update .arcane.json file with the new version and revision
-LATEST_REVISION=$(git rev-parse HEAD)
-jq --arg version "$NEW_VERSION" --arg revision "$LATEST_REVISION" \
- '.version = $version | .revision = $revision' .arcane.json > .arcane_tmp.json && mv .arcane_tmp.json .arcane.json
-git add .arcane.json
-
-# Update version in frontend/package.json
-jq --arg new_version "$NEW_VERSION" '.version = $new_version' frontend/package.json > frontend/package_tmp.json && mv frontend/package_tmp.json frontend/package.json
-git add frontend/package.json
-
-# Generate changelog for ONLY the fixes in this release branch
-echo -e "${BLUE}Generating changelog for hotfix...${NC}"
-
-git-cliff \
- --github-token=$(gh auth token) \
- --prepend CHANGELOG.md \
- --tag "$NEW_TAG" \
- --unreleased
-
-git add CHANGELOG.md
-
-# Commit the version bump and changelog
-git commit -m "release: ${NEW_VERSION} (hotfix)
-
-Hotfix release containing critical bug fixes.
-Base version: ${BASE_TAG}
-
-See CHANGELOG.md for details."
-
-# Create annotated tag
-git tag -a "$NEW_TAG" -m "Release ${NEW_TAG} (Hotfix)
-
-Hotfix release based on ${BASE_TAG}
-
-See CHANGELOG.md for details."
-
-echo ""
-echo -e "${GREEN}✅ Hotfix release ${NEW_TAG} created successfully!${NC}"
-echo ""
-
-# Push the commit and the tag to the repository
-git push
-git push --tags
-
-# Extract the changelog content for the latest release
-echo "Extracting changelog content for version $NEW_TAG..."
-CHANGELOG=$(awk '/^## v[0-9]/ { if (found) exit; found=1; next } found' CHANGELOG.md)
-
-if [ -z "$CHANGELOG" ]; then
- echo -e "${RED}Error: Could not extract changelog for version $NEW_TAG.${NC}"
- exit 1
-fi
-
-# Create the draft release on GitHub
-echo "Creating GitHub draft release..."
-gh release create "$NEW_TAG" --title "${NEW_TAG} (Hotfix)" --notes "$CHANGELOG" --draft
-
-if [ $? -eq 0 ]; then
- echo "GitHub draft release created successfully."
-else
- echo -e "${RED}Error: Failed to create GitHub release.${NC}"
- exit 1
-fi
-
-echo "Release process complete. New version: $NEW_TAG"
-echo ""
-echo -e "${YELLOW}Note: Hotfix release created from ${BASE_TAG} on ${RELEASE_BRANCH}${NC}"
-echo "The fix commits are already on main, this release just tags them without unreleased features."
-echo ""
-echo "Review the draft at: https://github.com/ofkm/arcane/releases"
-echo ""
-
-# Update main branch with the new version files
-echo -e "${BLUE}Updating main branch with version ${NEW_VERSION}...${NC}"
-git checkout main
-git pull origin main --quiet
-
-# Update .arcane.json file with the new version and revision
-jq --arg version "$NEW_VERSION" --arg revision "$LATEST_REVISION" \
- '.version = $version | .revision = $revision' .arcane.json > .arcane_tmp.json && mv .arcane_tmp.json .arcane.json
-
-# Update version in frontend/package.json
-jq --arg new_version "$NEW_VERSION" '.version = $new_version' frontend/package.json > frontend/package_tmp.json && mv frontend/package_tmp.json frontend/package.json
-
-# Copy the updated CHANGELOG.md from the release branch
-git checkout "${RELEASE_BRANCH}" -- CHANGELOG.md
-
-# Commit the version updates to main
-git add .arcane.json frontend/package.json CHANGELOG.md
-git commit -m "chore: bump version to ${NEW_VERSION} after hotfix release"
-git push origin main
-
-echo -e "${GREEN}✅ Main branch updated with version ${NEW_VERSION}${NC}"
-echo ""
diff --git a/scripts/github/list-fixes.sh b/scripts/github/list-fixes.sh
deleted file mode 100755
index 13a99409d..000000000
--- a/scripts/github/list-fixes.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-# Colors for output
-GREEN='\033[0;32m'
-YELLOW='\033[1;33m'
-BLUE='\033[0;34m'
-NC='\033[0m' # No Color
-
-# Get the latest release tag
-LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
-
-if [ -z "$LATEST_TAG" ]; then
- echo -e "${YELLOW}No previous release tag found. Showing all fix commits:${NC}"
- RANGE="HEAD"
-else
- echo -e "${GREEN}Latest release: ${LATEST_TAG}${NC}"
- RANGE="${LATEST_TAG}..HEAD"
-fi
-
-echo ""
-echo -e "${BLUE}=== Fix commits on main branch since ${LATEST_TAG:-beginning} ===${NC}"
-echo ""
-
-# List all fix commits
-FIX_COMMITS=$(git log "$RANGE" \
- --oneline \
- --no-merges \
- --grep="^fix:" \
- --grep="^hotfix:" \
- --regexp-ignore-case \
- --pretty=format:"%C(yellow)%h%Creset %C(green)%ai%Creset %s %C(dim)(%an)%Creset" || echo "")
-
-if [ -z "$FIX_COMMITS" ]; then
- echo "No fix commits found."
-else
- echo "$FIX_COMMITS"
-fi
-
-echo ""
-echo ""
-echo -e "${BLUE}=== How to create a hotfix release ===${NC}"
-echo ""
-echo "1. Start the hotfix release process:"
-echo -e " ${GREEN}./scripts/github/create-hotfix-release.sh${NC}"
-echo ""
-echo "2. Cherry-pick the fixes you want:"
-echo -e " ${GREEN}git cherry-pick <commit-hash>${NC}"
-echo ""
-echo "3. Finalize the release:"
-echo -e " ${GREEN}./scripts/github/finalize-hotfix-release.sh <tag>${NC}"
-echo ""
diff --git a/tests/package.json b/tests/package.json
index 3b26a65eb..3bf4c9b80 100644
--- a/tests/package.json
+++ b/tests/package.json
@@ -1,10 +1,6 @@
{
"type": "module",
"name": "arcane-tests",
- "packageManager": "[email protected]+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a",
- "engines": {
- "node": ">=25"
- },
"scripts": {
"preinstall": "npx only-allow pnpm",
"test": "playwright test"