arcana-ai 0.2.8 → 0.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/arcana.js +5 -5
  2. package/package.json +1 -1
package/bin/arcana.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // SPDX-License-Identifier: MIT OR LicenseRef-arcana-Commercial
3
3
  // Copyright (c) 2026 arcana contributors
4
- // arcana launcher — downloads the binary from GitHub releases if needed, then runs it.
4
+ // arcana launcher — downloads the binary from R2 if needed, then runs it.
5
5
  // Entrypoint for: npx arcana-ai
6
6
  const { spawnSync, execSync } = require("child_process")
7
7
  const { existsSync, mkdirSync, chmodSync, writeFileSync, unlinkSync } = require("fs")
@@ -9,8 +9,8 @@ const path = require("path")
9
9
  const crypto = require("crypto")
10
10
  const os = require("os")
11
11
 
12
- const REPO = "Lento47/arcana"
13
- const VERSION = "v0.2.7"
12
+ const RELEASES_URL = "https://releases.otnelhq.com/arcana"
13
+ const VERSION = "v0.2.25"
14
14
 
15
15
  const PLATFORM_MAP = {
16
16
  "win32-x64": { asset: "arcana-windows-x64.zip", binary: "arcana.exe" },
@@ -26,7 +26,7 @@ const entry = PLATFORM_MAP[platform]
26
26
 
27
27
  if (!entry) {
28
28
  console.error(`arcana: unsupported platform ${platform}`)
29
- console.error(`arcana: try installing from source: https://github.com/Lento47/arcana`)
29
+ console.error(`arcana: supported platforms: ${Object.keys(PLATFORM_MAP).join(", ")}`)
30
30
  process.exit(1)
31
31
  }
32
32
 
@@ -38,7 +38,7 @@ async function downloadAndExtract() {
38
38
  // Clean up any stale temp file from previous failed attempts
39
39
  try { unlinkSync(path.join(CACHE_DIR, entry.asset)) } catch {}
40
40
 
41
- const url = `https://github.com/${REPO}/releases/download/${VERSION}/${entry.asset}`
41
+ const url = `${RELEASES_URL}/${VERSION}/${entry.asset}`
42
42
  console.error(`arcana: ${VERSION} — downloading ${entry.asset}...`)
43
43
 
44
44
  mkdirSync(CACHE_DIR, { recursive: true })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcana-ai",
3
- "version": "0.2.8",
3
+ "version": "0.2.25",
4
4
  "description": "Self-improving AI agent CLI — opencode TUI + skills. Installs the arcana binary.",
5
5
  "bin": {
6
6
  "arcana": "./bin/arcana.js"