Files
skills/plugins/library-navigator/skills/sp-javy-cli-linux-arm64/SKILL.md
2026-05-29 08:20:56 +01:00

1.9 KiB

name, description
name description
sp-javy-cli-linux-arm64 Platform wrapper for Javy v8.1.1 CLI on linux-arm64 — downloads, verifies SHA-256, exposes getJavyBinary() path. Consumed by wasm-compiler-javy via optionalDependencies.

sp-javy-cli-linux-arm64

Symbol Kind Responsibility
getJavyBinary Function Returns the absolute filesystem path to the bundled Javy binary under bin/javy
JAVY_PLATFORM Constant Platform triple: "linux-arm64"
JAVY_VERSION Constant Pinned upstream version: "v8.1.1"

File Structure: packages/devtools/tooling/javy-cli-linux-arm64/src/index.ts

Sibling packages:

  • @suaveplan/javy-cli-darwin-arm64 — macOS ARM64 variant
  • @suaveplan/javy-cli-darwin-x64 — macOS x64 variant
  • @suaveplan/javy-cli-linux-x64 — Linux x64 variant
  • @suaveplan/javy-cli-win32-x64 — Windows x64 variant
  • @suaveplan/wasm-compiler-javy — consumer that spawns the binary

Patterns:

Quick Start:

import { getJavyBinary } from "@suaveplan/javy-cli-linux-arm64";
const binaryPath = getJavyBinary(); // absolute path to bin/javy

Constraints:

  • os: ["linux"], cpu: ["arm64"] — npm/bun skip installation on mismatched platforms
  • postinstall script downloads the binary from GitHub releases and verifies SHA-256 (c160127f4f41000216790e24bcfda860c51b0c5cc12808eb3691a0de88faa53a)
  • Set JAVY_SKIP_DOWNLOAD=1 to skip download for offline CI; you MUST manually seed bin/javy
  • Throws if binary is missing (postinstall failed or skipped without seed)
  • Consumed exclusively through optionalDependencies by @suaveplan/wasm-compiler-javy

Checklist:

  • getJavyBinary() returns an absolute path that exists after postinstall
  • JAVY_VERSION matches the upstream release pinned in postinstall
  • Setting JAVY_SKIP_DOWNLOAD=1 without seeding causes a clear runtime error