diff --git a/build_artifacts/v2/v2.7/v2.7.4/aws-cli-public-key.asc b/build_artifacts/v2/v2.7/v2.7.4/aws-cli-public-key.asc new file mode 100644 index 000000000..b415d17d9 --- /dev/null +++ b/build_artifacts/v2/v2.7/v2.7.4/aws-cli-public-key.asc @@ -0,0 +1,29 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBF2Cr7UBEADJZHcgusOJl7ENSyumXh85z0TRV0xJorM2B/JL0kHOyigQluUG +ZMLhENaG0bYatdrKP+3H91lvK050pXwnO/R7fB/FSTouki4ciIx5OuLlnJZIxSzx +PqGl0mkxImLNbGWoi6Lto0LYxqHN2iQtzlwTVmq9733zd3XfcXrZ3+LblHAgEt5G +TfNxEKJ8soPLyWmwDH6HWCnjZ/aIQRBTIQ05uVeEoYxSh6wOai7ss/KveoSNBbYz +gbdzoqI2Y8cgH2nbfgp3DSasaLZEdCSsIsK1u05CinE7k2qZ7KgKAUIcT/cR/grk +C6VwsnDU0OUCideXcQ8WeHutqvgZH1JgKDbznoIzeQHJD238GEu+eKhRHcz8/jeG +94zkcgJOz3KbZGYMiTh277Fvj9zzvZsbMBCedV1BTg3TqgvdX4bdkhf5cH+7NtWO +lrFj6UwAsGukBTAOxC0l/dnSmZhJ7Z1KmEWilro/gOrjtOxqRQutlIqG22TaqoPG +fYVN+en3Zwbt97kcgZDwqbuykNt64oZWc4XKCa3mprEGC3IbJTBFqglXmZ7l9ywG +EEUJYOlb2XrSuPWml39beWdKM8kzr1OjnlOm6+lpTRCBfo0wa9F8YZRhHPAkwKkX +XDeOGpWRj4ohOx0d2GWkyV5xyN14p2tQOCdOODmz80yUTgRpPVQUtOEhXQARAQAB +tCFBV1MgQ0xJIFRlYW0gPGF3cy1jbGlAYW1hem9uLmNvbT6JAlQEEwEIAD4CGwMF +CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQT7Xbd/1cEYuAURraimMQrMRnJHXAUC +ZqFYbwUJCv/cOgAKCRCmMQrMRnJHXKYuEAC+wtZ611qQtOl0t5spM9SWZuszbcyA +0xBAJq2pncnp6wdCOkuAPu4/R3UCIoD2C49MkLj9Y0Yvue8CCF6OIJ8L+fKBv2DI +yWZGmHL0p9wa/X8NCKQrKxK1gq5PuCzi3f3SqwfbZuZGeK/ubnmtttWXpUtuU/Iz +VR0u/0sAy3j4uTGKh2cX7XnZbSqgJhUk9H324mIJiSwzvw1Ker6xtH/LwdBeJCck +bVBdh3LZis4zuD4IZeBO1vRvjot3Oq4xadUv5RSPATg7T1kivrtLCnwvqc6L4LnF +0OkNysk94L3LQSHyQW2kQS1cVwr+yGUSiSp+VvMbAobAapmMJWP6e/dKyAUGIX6+ +2waLdbBs2U7MXznx/2ayCLPH7qCY9cenbdj5JhG9ibVvFWqqhSo22B/URQE/CMrG ++3xXwtHEBoMyWEATr1tWwn2yyQGbkUGANneSDFiTFeoQvKNyyCFTFO1F2XKCcuDs +19nj34PE2TJilTG2QRlMr4D0NgwLLAMg2Los1CK6nXWnImYHKuaKS9LVaCoC8vu7 +IRBik1NX6SjrQnftk0M9dY+s0ZbAN1gbdjZ8H3qlbl/4TxMdr87m8LP4FZIIo261 +Eycv34pVkCePZiP+dgamEiQJ7IL4ZArio9mv6HbDGV6mLY45+l6/0EzCwkI5IyIf +BfWC9s/USgxchg== +=ptgS +-----END PGP PUBLIC KEY BLOCK----- \ No newline at end of file diff --git a/build_artifacts/v2/v2.7/v2.7.4/cpu.env.in b/build_artifacts/v2/v2.7/v2.7.4/cpu.env.in new file mode 100644 index 000000000..f9947d21c --- /dev/null +++ b/build_artifacts/v2/v2.7/v2.7.4/cpu.env.in @@ -0,0 +1,2 @@ +# This file is auto-generated. + diff --git a/build_artifacts/v2/v2.7/v2.7.4/download_amazon_q_agentic_chat_artifacts.sh b/build_artifacts/v2/v2.7/v2.7.4/download_amazon_q_agentic_chat_artifacts.sh new file mode 100755 index 000000000..6b5300e47 --- /dev/null +++ b/build_artifacts/v2/v2.7/v2.7.4/download_amazon_q_agentic_chat_artifacts.sh @@ -0,0 +1,63 @@ +#!/bin/bash +set -e + +# Download Amazon Q artifacts for IDE integration +# Usage: download_amazon_q_artifacts.sh +# Example: download_amazon_q_artifacts.sh 1.25.0 /etc/amazon-q/artifacts/agentic-chat jupyterlab + +VERSION=${1:-$FLARE_SERVER_VERSION_JL} +TARGET_DIR=${2:-"/etc/amazon-q-agentic-chat/artifacts/jupyterlab"} +IDE_TYPE=${3:-"jupyterlab"} + +if [ -z "$VERSION" ]; then + echo "Error: Version not specified and FLARE_SERVER_VERSION_JL not set" + exit 1 +fi + +echo "Downloading Amazon Q artifacts for $IDE_TYPE (version: $VERSION)" + +# Create target directories +sudo mkdir -p "$TARGET_DIR" + +# Download manifest and extract artifact URLs +MANIFEST_URL="https://aws-toolkit-language-servers.amazonaws.com/qAgenticChatServer/0/manifest.json" +curl -L --retry 3 --retry-delay 5 --fail "$MANIFEST_URL" -o "/tmp/manifest.json" || { + echo "Failed to download manifest" + exit 1 +} + +# Extract artifact URLs +ARTIFACT_URLS=$(python3 /tmp/extract_amazon_q_agentic_chat_urls.py /tmp/manifest.json "$VERSION") +if [ $? -ne 0 ] || [ -z "$ARTIFACT_URLS" ]; then + echo "Failed to extract Amazon Q artifact URLs" + exit 1 +fi + +eval "$ARTIFACT_URLS" + +# Download and extract servers.zip +echo "Downloading servers.zip..." +curl -L --retry 3 --retry-delay 5 --fail "$SERVERS_URL" -o "/tmp/servers.zip" || { + echo "Failed to download servers.zip" + exit 1 +} +sudo unzip "/tmp/servers.zip" -d "$TARGET_DIR/servers" || { + echo "Failed to extract servers.zip" + exit 1 +} + +# Download and extract clients.zip +echo "Downloading clients.zip..." +curl -L --retry 3 --retry-delay 5 --fail "$CLIENTS_URL" -o "/tmp/clients.zip" || { + echo "Failed to download clients.zip" + exit 1 +} +sudo unzip "/tmp/clients.zip" -d "$TARGET_DIR/clients" || { + echo "Failed to extract clients.zip" + exit 1 +} + +# Clean up temporary files +rm -f /tmp/manifest.json /tmp/servers.zip /tmp/clients.zip + +echo "Amazon Q artifacts downloaded successfully to $TARGET_DIR" \ No newline at end of file diff --git a/build_artifacts/v2/v2.7/v2.7.4/extract_amazon_q_agentic_chat_urls.py b/build_artifacts/v2/v2.7/v2.7.4/extract_amazon_q_agentic_chat_urls.py new file mode 100644 index 000000000..e90031949 --- /dev/null +++ b/build_artifacts/v2/v2.7/v2.7.4/extract_amazon_q_agentic_chat_urls.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python3 +"""Extract Amazon Q artifact URLs from manifest for Linux x64 platform.""" + +import json +import sys + + +def extract_urls(manifest_file, version, platform="linux", arch="x64"): + """Extract servers.zip and clients.zip URLs for specified platform/arch.""" + try: + with open(manifest_file) as f: + manifest = json.load(f) + except FileNotFoundError: + raise FileNotFoundError(f"Manifest file not found: {manifest_file}") + except json.JSONDecodeError as e: + raise ValueError(f"Invalid JSON in manifest file {manifest_file}: {str(e)}") + + for ver in manifest["versions"]: + if ver["serverVersion"] == version: + for target in ver["targets"]: + if target["platform"] == platform and target.get("arch") == arch: + servers_url = None + clients_url = None + + for content in target["contents"]: + if content["filename"] == "servers.zip": + servers_url = content["url"] + elif content["filename"] == "clients.zip": + clients_url = content["url"] + + if servers_url is None or clients_url is None: + raise ValueError( + f"Required files (servers.zip/clients.zip) not found for version {version} {platform} {arch}" + ) + + return servers_url, clients_url + + raise ValueError(f"Version {version} not found for {platform} {arch}") + + +if __name__ == "__main__": + if len(sys.argv) != 3: + print("Usage: extract_amazon_q_agentic_chat_urls.py ") + sys.exit(1) + + manifest_file, version = sys.argv[1], sys.argv[2] + servers_url, clients_url = extract_urls(manifest_file, version) + + print(f"SERVERS_URL={servers_url}") + print(f"CLIENTS_URL={clients_url}") diff --git a/build_artifacts/v2/v2.7/v2.7.4/gpu.env.in b/build_artifacts/v2/v2.7/v2.7.4/gpu.env.in new file mode 100644 index 000000000..f9947d21c --- /dev/null +++ b/build_artifacts/v2/v2.7/v2.7.4/gpu.env.in @@ -0,0 +1,2 @@ +# This file is auto-generated. + diff --git a/build_artifacts/v2/v2.7/v2.7.4/source-version.txt b/build_artifacts/v2/v2.7/v2.7.4/source-version.txt new file mode 100644 index 000000000..e2bdf6e45 --- /dev/null +++ b/build_artifacts/v2/v2.7/v2.7.4/source-version.txt @@ -0,0 +1 @@ +2.7.3 \ No newline at end of file