Skip to content
Merged
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
2 changes: 1 addition & 1 deletion plugin/bin/agentlinux-install
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# §Pattern 1, §Pitfall 6, §Example 1; 02-CONTEXT.md "Installer UX & Logging".
set -euo pipefail

readonly AGENTLINUX_VERSION="0.3.0"
readonly AGENTLINUX_VERSION="0.3.2"
readonly LOG_FILE="${AGENTLINUX_LOG:-/var/log/agentlinux-install.log}"
# Resolve script-relative directories. Split `declare`/`assign` per SC2155 so
# a cmdsub failure surfaces as a non-zero return instead of being masked by
Expand Down
2 changes: 1 addition & 1 deletion plugin/catalog/catalog.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.0",
"version": "0.3.2",
"agents": [
{
"id": "claude-code",
Expand Down
2 changes: 1 addition & 1 deletion plugin/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agentlinux/cli",
"version": "0.3.0",
"version": "0.3.2",
"private": true,
"description": "AgentLinux registry CLI — install, upgrade, remove catalog agents",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion plugin/cli/src/catalog/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { Catalog } from "../types.js";
import { formatErrors, getValidator } from "./schema.js";

function defaultCatalogDir(): string {
const ver = process.env.AGENTLINUX_VERSION ?? "0.3.0";
const ver = process.env.AGENTLINUX_VERSION ?? "0.3.2";
return `/opt/agentlinux/catalog/${ver}`;
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/cli/src/catalog/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function resolveSchemaPath(): Promise<string> {
const candidates: string[] = [];
if (envDir) candidates.push(join(envDir, "schema.json"));
// Production default — matches loader.ts's defaultCatalogDir().
const ver = process.env.AGENTLINUX_VERSION ?? "0.3.0";
const ver = process.env.AGENTLINUX_VERSION ?? "0.3.2";
candidates.push(`/opt/agentlinux/catalog/${ver}/schema.json`);
// Walk up 6 levels; covers dist/ dist-test/src/ src/ and a couple spare
// for dev/test layouts.
Expand Down
2 changes: 1 addition & 1 deletion plugin/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const program = new Command();
program
.name("agentlinux")
.description("AgentLinux registry CLI — install, upgrade, remove catalog agents")
.version("0.3.0", "-V, --version");
.version("0.3.2", "-V, --version");

// Commander's `.enablePositionalOptions()` is REQUIRED so the install
// subcommand's `--version <semver>` override (CLI-03) can shadow the
Expand Down
2 changes: 1 addition & 1 deletion tests/bats/10-installer.bats
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ INSTALLER=/opt/agentlinux-src/plugin/bin/agentlinux-install
# - readlink target: a string, byte-stable by construction.
# - first line of dist/index.js: the #!/usr/bin/env node shebang — stable
# regardless of any internal tsc reordering of the generated body.
local version=${AGENTLINUX_VERSION:-0.3.0}
local version=${AGENTLINUX_VERSION:-0.3.2}
find \
/etc/profile.d/agentlinux.sh \
/etc/agentlinux.env \
Expand Down
12 changes: 6 additions & 6 deletions tests/bats/40-registry-cli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,18 @@ setup() {
done
}

# CLI-01: --version prints 0.3.0 across invocation modes — proves the symlink
# CLI-01: --version prints 0.3.2 across invocation modes — proves the symlink
# + Node shebang + dist/index.js + package.json "type":"module" chain all fire
# regardless of which shell wrapper the caller uses.
@test "CLI-01: agentlinux --version prints 0.3.0 from every invocation mode" {
@test "CLI-01: agentlinux --version prints 0.3.2 from every invocation mode" {
local mode
for mode in "${INVOKE_MODES[@]}"; do
invoke_mode "$mode" 'agentlinux --version'
if [[ "${output:-}" == *SKIP_SYSTEMD_UNAVAILABLE* ]]; then
skip "CLI-01 (${mode}): systemd PID 1 not running"
fi
assert_exit_zero "CLI-01 (${mode})"
assert_path_has "CLI-01 (${mode})" "0.3.0"
assert_path_has "CLI-01 (${mode})" "0.3.2"
done
}

Expand Down Expand Up @@ -244,7 +244,7 @@ setup() {
@test "CLI-05: running agentlinux as agent user succeeds without sudo" {
run sudo -u agent -H bash --login -c 'agentlinux --version'
assert_exit_zero "CLI-05"
assert_path_has "CLI-05" "0.3.0"
assert_path_has "CLI-05" "0.3.2"
}

# ---------- CLI-06: upgrade detects divergence; report-only without bulk flag ----------
Expand Down Expand Up @@ -396,11 +396,11 @@ setup() {
# the same AGENTLINUX_CATALOG_DIR env var — schema.ts §resolveSchemaPath).
# Copy the production schema verbatim so the fixture catalog validates
# against the SAME rules production does.
cp /opt/agentlinux/catalog/0.3.0/schema.json "$tmp/schema.json"
cp /opt/agentlinux/catalog/0.3.2/schema.json "$tmp/schema.json"

cat >"$tmp/catalog.json" <<'JSON'
{
"version": "0.3.0",
"version": "0.3.2",
"agents": [
{
"id": "fake-42",
Expand Down
4 changes: 2 additions & 2 deletions tests/bats/50-agents.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# - failures emit __fail four-line TST-04 diagnostics
# - setup_file installs all three agents ONCE for the whole file; teardown_file
# removes them. Serial installs keep sentinel writes unambiguous.
# - version pins are read from /opt/agentlinux/catalog/0.3.0/catalog.json via
# - version pins are read from /opt/agentlinux/catalog/0.3.2/catalog.json via
# jq — NEVER hardcoded in @test bodies (so a catalog version bump does not
# require editing this file).
#
Expand All @@ -27,7 +27,7 @@ load 'helpers/invoke_modes'
load 'helpers/assertions'

LOG=/var/log/agentlinux-install.log
CATALOG=/opt/agentlinux/catalog/0.3.0/catalog.json
CATALOG=/opt/agentlinux/catalog/0.3.2/catalog.json

setup_file() {
# 40-registry-cli.bats's INST-04 --purge @tests run earlier in filename sort
Expand Down
2 changes: 1 addition & 1 deletion tests/bats/51-agt02-release-gate.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
load 'helpers/invoke_modes'
load 'helpers/assertions'

CATALOG=/opt/agentlinux/catalog/0.3.0/catalog.json
CATALOG=/opt/agentlinux/catalog/0.3.2/catalog.json

setup_file() {
# 40-registry-cli.bats's INST-04 @tests run --purge at the end of that file
Expand Down
Loading