From ffea682f25e0d77d5094cdd24b39c8dd8c8a67e9 Mon Sep 17 00:00:00 2001 From: Vinh Nguyen Date: Sat, 31 Jan 2026 23:53:40 +0700 Subject: [PATCH 1/3] Add VT Code agent to ACP Registry --- vtcode/agent.json | 23 +++++++++++++++++++++++ vtcode/icon.svg | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 vtcode/agent.json create mode 100644 vtcode/icon.svg diff --git a/vtcode/agent.json b/vtcode/agent.json new file mode 100644 index 0000000..ed79da8 --- /dev/null +++ b/vtcode/agent.json @@ -0,0 +1,23 @@ +{ + "id": "vtcode", + "name": "VT Code", + "version": "0.74.2", + "description": "Rust-based terminal coding agent with Tree-sitter semantic intelligence and multi-LLM support", + "repository": "https://github.com/vinhnx/vtcode", + "authors": ["Vinh Nguyen "], + "license": "MIT", + "distribution": { + "binary": { + "darwin-aarch64": { + "archive": "https://github.com/vinhnx/vtcode/releases/download/v0.74.2/vtcode-v0.74.2-aarch64-apple-darwin.tar.gz", + "cmd": "./vtcode", + "args": ["--acp"] + }, + "darwin-x86_64": { + "archive": "https://github.com/vinhnx/vtcode/releases/download/v0.74.2/vtcode-v0.74.2-x86_64-apple-darwin.tar.gz", + "cmd": "./vtcode", + "args": ["--acp"] + } + } + } +} diff --git a/vtcode/icon.svg b/vtcode/icon.svg new file mode 100644 index 0000000..5ae6164 --- /dev/null +++ b/vtcode/icon.svg @@ -0,0 +1,4 @@ + + + VT + From 377899bbe5e9bfd40cf41ab340d93d1162c4f69c Mon Sep 17 00:00:00 2001 From: Vinh Nguyen Date: Sun, 1 Feb 2026 09:47:14 +0700 Subject: [PATCH 2/3] automation: add script to update registry with vtcode binaries --- update-vtcode-binaries.sh | 133 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100755 update-vtcode-binaries.sh diff --git a/update-vtcode-binaries.sh b/update-vtcode-binaries.sh new file mode 100755 index 0000000..92e6e65 --- /dev/null +++ b/update-vtcode-binaries.sh @@ -0,0 +1,133 @@ +#!/usr/bin/env bash + +# Update VT Code agent.json with all platform binaries from GitHub Release +# Usage: ./update-vtcode-binaries.sh v0.74.3 + +set -euo pipefail + +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' + +print_info() { + printf '%b\n' "${BLUE}INFO:${NC} $1" +} + +print_success() { + printf '%b\n' "${GREEN}SUCCESS:${NC} $1" +} + +print_error() { + printf '%b\n' "${RED}ERROR:${NC} $1" +} + +if [[ $# -ne 1 ]]; then + print_error "Usage: $0 " + print_info "Example: $0 v0.74.3" + exit 1 +fi + +VERSION="$1" +AGENT_JSON="./vtcode/agent.json" + +# Validate version format +if ! [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + print_error "Invalid version format: $VERSION (expected v0.74.3)" + exit 1 +fi + +# Extract version number without 'v' +VERSION_NUM="${VERSION#v}" + +print_info "Updating agent.json for version $VERSION" + +# Define all platforms and their URLs +declare -A PLATFORMS=( + ["darwin-aarch64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-aarch64-apple-darwin.tar.gz" + ["darwin-x86_64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-x86_64-apple-darwin.tar.gz" + ["linux-x86_64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-x86_64-unknown-linux-gnu.tar.gz" + ["linux-aarch64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-aarch64-unknown-linux-gnu.tar.gz" + ["windows-x86_64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-x86_64-pc-windows-msvc.tar.gz" + ["windows-aarch64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-aarch64-pc-windows-msvc.tar.gz" +) + +# Verify binaries exist +print_info "Verifying binaries exist on GitHub Release..." +for platform in "${!PLATFORMS[@]}"; do + url="${PLATFORMS[$platform]}" + if curl -s -I "$url" | grep -q "200\|302"; then + print_success "✓ $platform" + else + print_error "✗ $platform not found: $url" + exit 1 + fi +done + +# Build new agent.json with updated version and all platforms +print_info "Generating new agent.json..." + +cat > "$AGENT_JSON" << 'EOF' +{ + "id": "vtcode", + "name": "VT Code", + "version": "VERSION_PLACEHOLDER", + "description": "Rust-based terminal coding agent with Tree-sitter semantic intelligence and multi-LLM support", + "repository": "https://github.com/vinhnx/vtcode", + "authors": ["Vinh Nguyen "], + "license": "MIT", + "distribution": { + "binary": { + "darwin-aarch64": { + "archive": "DARWIN_AARCH64_PLACEHOLDER", + "cmd": "./vtcode", + "args": ["--acp"] + }, + "darwin-x86_64": { + "archive": "DARWIN_X86_64_PLACEHOLDER", + "cmd": "./vtcode", + "args": ["--acp"] + }, + "linux-x86_64": { + "archive": "LINUX_X86_64_PLACEHOLDER", + "cmd": "./vtcode", + "args": ["--acp"] + }, + "linux-aarch64": { + "archive": "LINUX_AARCH64_PLACEHOLDER", + "cmd": "./vtcode", + "args": ["--acp"] + }, + "windows-x86_64": { + "archive": "WINDOWS_X86_64_PLACEHOLDER", + "cmd": ".\\vtcode.exe", + "args": ["--acp"] + }, + "windows-aarch64": { + "archive": "WINDOWS_AARCH64_PLACEHOLDER", + "cmd": ".\\vtcode.exe", + "args": ["--acp"] + } + } + } +} +EOF + +# Replace placeholders +sed -i.bak "s|VERSION_PLACEHOLDER|$VERSION_NUM|g" "$AGENT_JSON" +sed -i.bak "s|DARWIN_AARCH64_PLACEHOLDER|${PLATFORMS[darwin-aarch64]}|g" "$AGENT_JSON" +sed -i.bak "s|DARWIN_X86_64_PLACEHOLDER|${PLATFORMS[darwin-x86_64]}|g" "$AGENT_JSON" +sed -i.bak "s|LINUX_X86_64_PLACEHOLDER|${PLATFORMS[linux-x86_64]}|g" "$AGENT_JSON" +sed -i.bak "s|LINUX_AARCH64_PLACEHOLDER|${PLATFORMS[linux-aarch64]}|g" "$AGENT_JSON" +sed -i.bak "s|WINDOWS_X86_64_PLACEHOLDER|${PLATFORMS[windows-x86_64]}|g" "$AGENT_JSON" +sed -i.bak "s|WINDOWS_AARCH64_PLACEHOLDER|${PLATFORMS[windows-aarch64]}|g" "$AGENT_JSON" + +# Clean up backup +rm -f "$AGENT_JSON.bak" + +print_success "Updated $AGENT_JSON with all 6 platform binaries" +print_info "Next steps:" +print_info "1. Validate registry: uv run --with jsonschema .github/workflows/build_registry.py" +print_info "2. Commit changes: git add vtcode/ && git commit -m 'chore: update vtcode binaries to $VERSION'" +print_info "3. Push changes: git push origin main" From 8bf35cf1d12b812ff7383f114a2e7b0c1eeee972 Mon Sep 17 00:00:00 2001 From: Vinh Nguyen <1097578+vinhnx@users.noreply.github.com> Date: Mon, 2 Feb 2026 09:51:38 +0700 Subject: [PATCH 3/3] Delete update-vtcode-binaries.sh --- update-vtcode-binaries.sh | 133 -------------------------------------- 1 file changed, 133 deletions(-) delete mode 100755 update-vtcode-binaries.sh diff --git a/update-vtcode-binaries.sh b/update-vtcode-binaries.sh deleted file mode 100755 index 92e6e65..0000000 --- a/update-vtcode-binaries.sh +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/env bash - -# Update VT Code agent.json with all platform binaries from GitHub Release -# Usage: ./update-vtcode-binaries.sh v0.74.3 - -set -euo pipefail - -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -print_info() { - printf '%b\n' "${BLUE}INFO:${NC} $1" -} - -print_success() { - printf '%b\n' "${GREEN}SUCCESS:${NC} $1" -} - -print_error() { - printf '%b\n' "${RED}ERROR:${NC} $1" -} - -if [[ $# -ne 1 ]]; then - print_error "Usage: $0 " - print_info "Example: $0 v0.74.3" - exit 1 -fi - -VERSION="$1" -AGENT_JSON="./vtcode/agent.json" - -# Validate version format -if ! [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - print_error "Invalid version format: $VERSION (expected v0.74.3)" - exit 1 -fi - -# Extract version number without 'v' -VERSION_NUM="${VERSION#v}" - -print_info "Updating agent.json for version $VERSION" - -# Define all platforms and their URLs -declare -A PLATFORMS=( - ["darwin-aarch64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-aarch64-apple-darwin.tar.gz" - ["darwin-x86_64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-x86_64-apple-darwin.tar.gz" - ["linux-x86_64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-x86_64-unknown-linux-gnu.tar.gz" - ["linux-aarch64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-aarch64-unknown-linux-gnu.tar.gz" - ["windows-x86_64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-x86_64-pc-windows-msvc.tar.gz" - ["windows-aarch64"]="https://github.com/vinhnx/vtcode/releases/download/$VERSION/vtcode-$VERSION-aarch64-pc-windows-msvc.tar.gz" -) - -# Verify binaries exist -print_info "Verifying binaries exist on GitHub Release..." -for platform in "${!PLATFORMS[@]}"; do - url="${PLATFORMS[$platform]}" - if curl -s -I "$url" | grep -q "200\|302"; then - print_success "✓ $platform" - else - print_error "✗ $platform not found: $url" - exit 1 - fi -done - -# Build new agent.json with updated version and all platforms -print_info "Generating new agent.json..." - -cat > "$AGENT_JSON" << 'EOF' -{ - "id": "vtcode", - "name": "VT Code", - "version": "VERSION_PLACEHOLDER", - "description": "Rust-based terminal coding agent with Tree-sitter semantic intelligence and multi-LLM support", - "repository": "https://github.com/vinhnx/vtcode", - "authors": ["Vinh Nguyen "], - "license": "MIT", - "distribution": { - "binary": { - "darwin-aarch64": { - "archive": "DARWIN_AARCH64_PLACEHOLDER", - "cmd": "./vtcode", - "args": ["--acp"] - }, - "darwin-x86_64": { - "archive": "DARWIN_X86_64_PLACEHOLDER", - "cmd": "./vtcode", - "args": ["--acp"] - }, - "linux-x86_64": { - "archive": "LINUX_X86_64_PLACEHOLDER", - "cmd": "./vtcode", - "args": ["--acp"] - }, - "linux-aarch64": { - "archive": "LINUX_AARCH64_PLACEHOLDER", - "cmd": "./vtcode", - "args": ["--acp"] - }, - "windows-x86_64": { - "archive": "WINDOWS_X86_64_PLACEHOLDER", - "cmd": ".\\vtcode.exe", - "args": ["--acp"] - }, - "windows-aarch64": { - "archive": "WINDOWS_AARCH64_PLACEHOLDER", - "cmd": ".\\vtcode.exe", - "args": ["--acp"] - } - } - } -} -EOF - -# Replace placeholders -sed -i.bak "s|VERSION_PLACEHOLDER|$VERSION_NUM|g" "$AGENT_JSON" -sed -i.bak "s|DARWIN_AARCH64_PLACEHOLDER|${PLATFORMS[darwin-aarch64]}|g" "$AGENT_JSON" -sed -i.bak "s|DARWIN_X86_64_PLACEHOLDER|${PLATFORMS[darwin-x86_64]}|g" "$AGENT_JSON" -sed -i.bak "s|LINUX_X86_64_PLACEHOLDER|${PLATFORMS[linux-x86_64]}|g" "$AGENT_JSON" -sed -i.bak "s|LINUX_AARCH64_PLACEHOLDER|${PLATFORMS[linux-aarch64]}|g" "$AGENT_JSON" -sed -i.bak "s|WINDOWS_X86_64_PLACEHOLDER|${PLATFORMS[windows-x86_64]}|g" "$AGENT_JSON" -sed -i.bak "s|WINDOWS_AARCH64_PLACEHOLDER|${PLATFORMS[windows-aarch64]}|g" "$AGENT_JSON" - -# Clean up backup -rm -f "$AGENT_JSON.bak" - -print_success "Updated $AGENT_JSON with all 6 platform binaries" -print_info "Next steps:" -print_info "1. Validate registry: uv run --with jsonschema .github/workflows/build_registry.py" -print_info "2. Commit changes: git add vtcode/ && git commit -m 'chore: update vtcode binaries to $VERSION'" -print_info "3. Push changes: git push origin main"