Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
330 changes: 145 additions & 185 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition = "2021"
name = "vorpal-cli"
publish = false
version = "0.2.1"
version = "0.2.2"

[[bin]]
name = "vorpal"
Expand Down
2 changes: 1 addition & 1 deletion config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition = "2021"
name = "vorpal-config"
publish = false
version = "0.2.1"
version = "0.2.2"

[[bin]]
name = "vorpal-config"
Expand Down
2 changes: 1 addition & 1 deletion docs/spec/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ curl -fsSL https://raw.githubusercontent.com/ALT-F4-LLC/vorpal/main/script/insta

**Features:**
- Platform detection (macOS/Linux, x86_64/aarch64)
- Version selection via `VORPAL_VERSION` env var (default: `nightly`)
- Version selection via `VORPAL_VERSION` env var (default: `0.2.2`)
- Downloads pre-built binaries from GitHub Releases
- Upgrade detection (preserves existing installation data)
- Interactive/non-interactive modes (`VORPAL_NONINTERACTIVE=1`, `CI=true`, `-y` flag)
Expand Down
30 changes: 15 additions & 15 deletions script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -euo pipefail
# Environment variables:
# VORPAL_NONINTERACTIVE=1 Enable non-interactive mode
# CI=true Enable non-interactive mode
# VORPAL_VERSION=<ver> Version to install (default: 0.2.1)
# VORPAL_VERSION=<ver> Version to install (default: 0.2.2)
# VORPAL_NO_SERVICE=1 Skip service installation
# VORPAL_SERVICES=<list> Comma-separated services to install (default: agent,registry,worker)
# VORPAL_NO_PATH=1 Skip PATH configuration
Expand All @@ -23,7 +23,7 @@ set -euo pipefail

# -- Constants ----------------------------------------------------------------

VORPAL_VERSION="${VORPAL_VERSION:-0.2.1}"
VORPAL_VERSION="${VORPAL_VERSION:-0.2.2}"
VORPAL_INSTALL_DIR="$HOME/.vorpal"
VORPAL_SYSTEM_DIR="/var/lib/vorpal"
VORPAL_REPO="ALT-F4-LLC/vorpal"
Expand Down Expand Up @@ -361,7 +361,7 @@ Install Vorpal to ~/.vorpal and configure system services.

Options:
-y, --yes Run in non-interactive mode (skip prompts)
-v, --version <ver> Version to install (default: 0.2.1)
-v, --version <ver> Version to install (default: 0.2.2)
--services <list> Comma-separated services to install (default: agent,registry,worker)
--no-service Skip service installation
--no-path Skip PATH configuration
Expand All @@ -376,7 +376,7 @@ Options:
Environment variables:
VORPAL_NONINTERACTIVE=1 Enable non-interactive mode
CI=true Enable non-interactive mode
VORPAL_VERSION=<ver> Version to install (default: 0.2.1)
VORPAL_VERSION=<ver> Version to install (default: 0.2.2)
VORPAL_NO_SERVICE=1 Skip service installation
VORPAL_SERVICES=<list> Comma-separated services (default: agent,registry,worker)
VORPAL_NO_PATH=1 Skip PATH configuration
Expand All @@ -400,7 +400,7 @@ parse_args() {
if [[ $# -lt 2 ]]; then
print_error "Missing value for $1" \
"The $1 flag requires a version argument." \
"Example: install.sh $1 0.2.1"
"Example: install.sh $1 0.2.2"
exit 1
fi
VORPAL_VERSION="$2"
Expand Down Expand Up @@ -725,8 +725,8 @@ resolve_version() {
http_code="$(curl -sS -o /dev/null -w "%{http_code}" "$api_url" 2>/dev/null)" || true

if [[ "$http_code" = "403" ]]; then
print_warning "GitHub API rate limit reached. Falling back to 0.2.1."
version="0.2.1"
print_warning "GitHub API rate limit reached. Falling back to 0.2.2."
version="0.2.2"
elif [[ "$http_code" = "200" ]]; then
api_response="$(curl -fsSL "$api_url" 2>/dev/null)" || true
if [[ -n "$api_response" ]]; then
Expand All @@ -736,16 +736,16 @@ resolve_version() {
if [[ -n "$tag" ]]; then
version="$tag"
else
print_warning "Could not parse latest version from GitHub API. Falling back to 0.2.1."
version="0.2.1"
print_warning "Could not parse latest version from GitHub API. Falling back to 0.2.2."
version="0.2.2"
fi
else
print_warning "Could not fetch latest version from GitHub API. Falling back to 0.2.1."
version="0.2.1"
print_warning "Could not fetch latest version from GitHub API. Falling back to 0.2.2."
version="0.2.2"
fi
else
print_warning "GitHub API returned HTTP ${http_code}. Falling back to 0.2.1."
version="0.2.1"
print_warning "GitHub API returned HTTP ${http_code}. Falling back to 0.2.2."
version="0.2.2"
fi
fi

Expand All @@ -760,9 +760,9 @@ resolve_version() {
print_error \
"Version \"${VORPAL_VERSION}\" not found." \
"Available channels:
${_sym_bullet} nightly -- latest development build (updated daily)
${_sym_bullet} 0.2.2 -- latest stable release
${_sym_bullet} latest -- most recent stable release" \
"Or specify an exact tag: --version v0.2.1
"Or specify an exact tag: --version v0.2.2
See all releases: ${VORPAL_GITHUB_URL}/releases"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion sdk/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition = "2021"
name = "vorpal-sdk-codegen"
publish = false
version = "0.2.1"
version = "0.2.2"

[dependencies]
proc-macro2 = "1"
Expand Down
4 changes: 3 additions & 1 deletion sdk/go/pkg/artifact/pnpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ func Pnpm(context *config.ConfigContext) (*string, error) {
source := NewArtifactSource(name, sourcePath).Build()

stepScript := fmt.Sprintf(`mkdir -p "$VORPAL_OUTPUT/bin"
echo "[pnpm-debug] target=%s expected=./source/%s/pnpm-%s"
ls -la "./source/%s/" || true
cp -p "./source/%s/pnpm-%s" "$VORPAL_OUTPUT/bin/pnpm"
chmod +x "$VORPAL_OUTPUT/bin/pnpm"`, name, sourceTarget)
chmod +x "$VORPAL_OUTPUT/bin/pnpm"`, sourceTarget, name, sourceTarget, name, name, sourceTarget)

step, err := Shell(context, []*string{}, []string{}, stepScript, nil)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "vorpal-sdk"
repository = "https://github.com/ALT-F4-LLC/vorpal"
version = "0.2.1"
version = "0.2.2"

[dependencies]
anyhow = { version = "1.0.100" }
Expand Down
2 changes: 2 additions & 0 deletions sdk/rust/src/artifact/pnpm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ impl Pnpm {

let step_script = formatdoc! {"
mkdir -p \"$VORPAL_OUTPUT/bin\"
echo \"[pnpm-debug] target={source_target} expected=./source/{name}/pnpm-{source_target}\"
ls -la \"./source/{name}/\" || true
cp -p \"./source/{name}/pnpm-{source_target}\" \"$VORPAL_OUTPUT/bin/pnpm\"
chmod +x \"$VORPAL_OUTPUT/bin/pnpm\""
};
Expand Down
2 changes: 1 addition & 1 deletion sdk/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altf4llc/vorpal-sdk",
"version": "0.2.1",
"version": "0.2.2",
"description": "TypeScript SDK for building Vorpal artifacts.",
"license": "Apache-2.0",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions sdk/typescript/src/artifact/pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export class Pnpm {
const source = new ArtifactSource(name, sourcePath).build();

const stepScript = `mkdir -p "$VORPAL_OUTPUT/bin"
echo "[pnpm-debug] target=${sourceTarget} expected=./source/${name}/pnpm-${sourceTarget}"
ls -la "./source/${name}/" || true
cp -p "./source/${name}/pnpm-${sourceTarget}" "$VORPAL_OUTPUT/bin/pnpm"
chmod +x "$VORPAL_OUTPUT/bin/pnpm"`;

Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "website",
"type": "module",
"version": "0.2.1",
"version": "0.2.2",
"scripts": {
"dev": "bun x astro dev",
"start": "bun x astro dev",
Expand Down
6 changes: 3 additions & 3 deletions website/src/content/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The installer accepts the following flags. When piping through `curl`, pass flag
| Flag | Description |
|------|-------------|
| `-y`, `--yes` | Run in non-interactive mode (skip prompts) |
| `-v`, `--version <ver>` | Version to install (default: `nightly`) |
| `-v`, `--version <ver>` | Version to install (default: `0.2.2`) |
| `--services <list>` | Comma-separated services to install (default: `agent,registry,worker`) |
| `--no-service` | Skip service installation |
| `--no-path` | Skip PATH configuration |
Expand All @@ -58,7 +58,7 @@ curl -fsSL https://raw.githubusercontent.com/ALT-F4-LLC/vorpal/main/script/insta
To install a specific version without starting any services:

```bash
curl -fsSL https://raw.githubusercontent.com/ALT-F4-LLC/vorpal/main/script/install.sh | bash -s -- --version v0.2.1 --no-service
curl -fsSL https://raw.githubusercontent.com/ALT-F4-LLC/vorpal/main/script/install.sh | bash -s -- --version v0.2.2 --no-service
```

#### Environment variables
Expand All @@ -69,7 +69,7 @@ As an alternative, the installer also accepts environment variables. These are u
|----------|--------|
| `VORPAL_NONINTERACTIVE=1` | Enable non-interactive mode |
| `CI=true` | Enable non-interactive mode |
| `VORPAL_VERSION=<ver>` | Version to install (default: `0.2.1`) |
| `VORPAL_VERSION=<ver>` | Version to install (default: `0.2.2`) |
| `VORPAL_SERVICES=<list>` | Comma-separated services to install (default: `agent,registry,worker`) |
| `VORPAL_NO_SERVICE=1` | Skip service installation |
| `VORPAL_NO_PATH=1` | Skip PATH configuration |
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/guides/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ name = "vorpal"
path = "src/vorpal.rs"

[dependencies]
vorpal-sdk = { version = "0.2.1" }
vorpal-sdk = { version = "0.2.2" }
anyhow = "1"
tokio = { features = ["rt-multi-thread"], version = "1" }
```
Expand Down
Loading