From 37681d563026144900c1d9cfd71234e4cd43b7c2 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Mon, 23 Nov 2026 16:18:11 -0800 Subject: [PATCH 1/2] fix(e2e): take the image registry from core's compose file Core moved its released images from ghcr.io/nvidia/openshell to quay.io/ai-openshell, starting with v0.1.10-pre.5. start-gateway.sh still waited for the gateway on ghcr, so E2E on the pre.5 and pre.6 bump PRs timed out after 15 minutes, and the v0.1.10 bump would fail the same way. Download core's deploy/docker files first and read the gateway image from the compose file at the tag, so the wait and the supervisor and sandbox pins follow whichever registry core used for that version. Check the manifest with docker manifest inspect, which handles each registry's anonymous auth. Bump PR bodies now name the Quay image. Signed-off-by: Piotr Mlocek --- scripts/core-sync/open-bump-pr.sh | 2 +- scripts/e2e/start-gateway.sh | 38 +++++++++++++++++-------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/scripts/core-sync/open-bump-pr.sh b/scripts/core-sync/open-bump-pr.sh index 4bf4456..7777bd6 100755 --- a/scripts/core-sync/open-bump-pr.sh +++ b/scripts/core-sync/open-bump-pr.sh @@ -25,7 +25,7 @@ set -euo pipefail core_repo=${CORE_REPO:-NVIDIA/OpenShell} sdk_repo=${SDK_REPO:-ai-openshell/sdk-typescript} -image=ghcr.io/nvidia/openshell/gateway +image=quay.io/ai-openshell/gateway diff_cap=400 tag= diff --git a/scripts/e2e/start-gateway.sh b/scripts/e2e/start-gateway.sh index 0118e34..b837453 100755 --- a/scripts/e2e/start-gateway.sh +++ b/scripts/e2e/start-gateway.sh @@ -13,8 +13,10 @@ # the same version instead of :latest. --default-image replaces the image that # sandboxes run when they don't name one (core's default is plain Ubuntu); the # gateway pulls it only when it isn't present locally. Then registers the -# gateway as "e2e" for the SDK in $XDG_CONFIG_HOME/openshell. Waits up to 15 -# minutes for the gateway image of a fresh tag to be published. +# gateway as "e2e" for the SDK in $XDG_CONFIG_HOME/openshell. Takes the image +# registry from core's compose file at the tag (core moved its images from +# ghcr.io/nvidia/openshell to quay.io/ai-openshell in v0.1.10-pre.5). Waits up +# to 15 minutes for the gateway image of a fresh tag to be published. # # Needs docker with the compose plugin and a host path /var/lib/openshell # (core's compose file bind-mounts it at the same path). Meant for throwaway @@ -24,7 +26,6 @@ set -euo pipefail core_repo=${CORE_REPO:-NVIDIA/OpenShell} -registry=ghcr.io/nvidia/openshell name=e2e port=8080 health_port=8081 @@ -48,28 +49,31 @@ semver=${tag#v} mkdir -p "$state" echo "$tag" >"$state/core-version" -# Core pushes images after tagging; a proposal can be faster than that. -manifest_exists() { - local token - token=$(curl -fsS "https://ghcr.io/token?scope=repository:nvidia/openshell/gateway:pull" | jq -r .token) || return 1 - curl -fsS -o /dev/null -H "Authorization: Bearer $token" \ - -H 'Accept: application/vnd.oci.image.index.v1+json,application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.oci.image.manifest.v1+json' \ - "https://ghcr.io/v2/nvidia/openshell/gateway/manifests/$semver" +# Core's deployment files at the tag. +base="https://raw.githubusercontent.com/$core_repo/$tag/deploy/docker" +curl -fsSL "$base/docker-compose.yml" -o "$state/docker-compose.yml" +curl -fsSL "$base/gateway.toml" -o "$state/gateway.toml" + +# The registry core publishes this version's images to, from the gateway +# service's image (for example quay.io/ai-openshell/gateway:${IMAGE_TAG:-latest}). +gateway_image=$(sed -nE 's#^ *image: *&gateway-image +([^ :]+/gateway):.*#\1#p' "$state/docker-compose.yml") +[ -n "$gateway_image" ] || { + echo "ERROR: could not find the gateway image in core's docker-compose.yml at $tag" >&2 + exit 1 } +registry=${gateway_image%/gateway} + +# Core pushes images after tagging; a proposal can be faster than that. for i in $(seq 1 15); do - manifest_exists && break + docker manifest inspect "$gateway_image:$semver" >/dev/null 2>&1 && break if [ "$i" -eq 15 ]; then - echo "ERROR: gateway image for $semver not published yet, re-run later" >&2 + echo "ERROR: $gateway_image:$semver not published yet, re-run later" >&2 exit 1 fi - echo "Waiting for $registry/gateway:$semver ($i/15) ..." + echo "Waiting for $gateway_image:$semver ($i/15) ..." sleep 60 done -# Core's deployment files at the tag. -base="https://raw.githubusercontent.com/$core_repo/$tag/deploy/docker" -curl -fsSL "$base/docker-compose.yml" -o "$state/docker-compose.yml" -curl -fsSL "$base/gateway.toml" -o "$state/gateway.toml" sed -i.bak \ -e "s#\"$registry/supervisor:latest\"#\"$registry/supervisor:$semver\"#" \ -e "s#\"$registry/sandbox:latest\"#\"$registry/sandbox:$semver\"#" \ From 9a83b6802d19f6cc3440904ab38ee70dc886e9b3 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Mon, 23 Nov 2026 16:49:09 -0800 Subject: [PATCH 2/2] chore(core): follow core to ai-openshell/openshell Core moved from NVIDIA/OpenShell to ai-openshell/openshell. Point the proto and fixture fetches, the release-tag watcher, drift check, bump PRs and the E2E gateway setup at the new location, and send gateway, CLI and sandbox problems there from the issue templates, README and SECURITY.md. The README paragraphs on the move out of core describe history and keep the old name. Signed-off-by: Piotr Mlocek --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 4 ++-- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- README.md | 10 +++++----- SECURITY.md | 6 +++--- mise.toml | 2 +- scripts/README.md | 2 +- scripts/core-sync/core-tags.sh | 4 ++-- scripts/core-sync/drift-check.sh | 2 +- scripts/core-sync/open-bump-pr.sh | 2 +- scripts/e2e/start-gateway.sh | 2 +- scripts/fetch-core.sh | 4 ++-- scripts/vendored-core-files.txt | 2 +- 13 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index f234239..83f3707 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -11,7 +11,7 @@ body: Describe who encountered the bug, the problem it creates, why it matters, and the observable criteria for a fix. Please check the latest `@ai-openshell/sdk` release on npm and search existing issues for possible duplicates before filing. - Problems with the gateway, CLI, or sandboxes belong in [NVIDIA/OpenShell](https://github.com/NVIDIA/OpenShell/issues). Do not report security vulnerabilities here; follow [SECURITY.md](https://github.com/ai-openshell/sdk-typescript/blob/main/SECURITY.md) instead. + Problems with the gateway, CLI, or sandboxes belong in [ai-openshell/openshell](https://github.com/ai-openshell/openshell/issues). Do not report security vulnerabilities here; follow [SECURITY.md](https://github.com/ai-openshell/sdk-typescript/blob/main/SECURITY.md) instead. - type: textarea id: user-story diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index a14b697..263d6dd 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -3,10 +3,10 @@ blank_issues_enabled: false contact_links: - name: Gateway, CLI, or sandbox problem? - url: https://github.com/NVIDIA/OpenShell/issues/new/choose + url: https://github.com/ai-openshell/openshell/issues/new/choose about: > This repository is the TypeScript SDK only. Report problems with the - OpenShell gateway, CLI, sandboxes, or the gRPC API in NVIDIA/OpenShell. + OpenShell gateway, CLI, sandboxes, or the gRPC API in ai-openshell/openshell. - name: Security vulnerability? url: https://github.com/ai-openshell/sdk-typescript/blob/main/SECURITY.md about: > diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 4c0f3eb..de7d68a 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -11,7 +11,7 @@ body: Describe who needs the feature, the problem it solves, why the current gap matters, the API you would like to use, and the observable criteria for success. Leave implementation choices to the people building the feature. - The SDK wraps the OpenShell gateway's API. A feature that needs a new gateway capability starts in [NVIDIA/OpenShell](https://github.com/NVIDIA/OpenShell/issues); link that issue here. + The SDK wraps the OpenShell gateway's API. A feature that needs a new gateway capability starts in [ai-openshell/openshell](https://github.com/ai-openshell/openshell/issues); link that issue here. - type: textarea id: user-story diff --git a/README.md b/README.md index 34dfe92..580cc55 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ - - - OpenShell + + + OpenShell # TypeScript SDK for OpenShell @@ -10,12 +10,12 @@ [![npm](https://img.shields.io/npm/v/@ai-openshell/sdk?logo=npm)](https://www.npmjs.com/package/@ai-openshell/sdk) [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen)](https://docs.nvidia.com/openshell/latest/sdk/typescript) -Use the TypeScript SDK to manage [OpenShell](https://github.com/NVIDIA/OpenShell) sandboxes from Node.js applications and automation. Create sandboxes, run and stream commands, forward ports, and manage templates, policy, and provider credentials through the gateway. +Use the TypeScript SDK to manage [OpenShell](https://github.com/ai-openshell/openshell) sandboxes from Node.js applications and automation. Create sandboxes, run and stream commands, forward ports, and manage templates, policy, and provider credentials through the gateway. > [!WARNING] > **Do not run `npm install @ai-openshell/sdk` yet.** The first release of this package will be published on > Tuesday, November 24, 2026, so the install command fails until then. Until the release, consume the SDK from -> the [OpenShell core repository](https://github.com/NVIDIA/OpenShell/tree/main/sdk/typescript). +> the [OpenShell core repository](https://github.com/ai-openshell/openshell/tree/main/sdk/typescript). See the [TypeScript SDK documentation](https://docs.nvidia.com/openshell/latest/sdk/typescript) for connection options, authentication, and the raw client. diff --git a/SECURITY.md b/SECURITY.md index d5f2a6a..2088c15 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -3,13 +3,13 @@ ## Reporting a vulnerability Report vulnerabilities in the OpenShell TypeScript SDK privately through -[NVIDIA/OpenShell's private reporting -form](https://github.com/NVIDIA/OpenShell/security/advisories/new) and name +[ai-openshell/openshell's private reporting +form](https://github.com/ai-openshell/openshell/security/advisories/new) and name `ai-openshell/sdk-typescript` as the affected component. Do not disclose vulnerabilities in public issues, discussions, or pull requests. The OpenShell security policy applies to this repository: the [report template, review process, and coordinated -disclosure](https://github.com/NVIDIA/OpenShell/blob/main/SECURITY.md) are the +disclosure](https://github.com/ai-openshell/openshell/blob/main/SECURITY.md) are the same. Private reporting directly on this repository will be enabled once its process is set up; until then, use the form above. diff --git a/mise.toml b/mise.toml index 857cb00..4c504c8 100644 --- a/mise.toml +++ b/mise.toml @@ -123,7 +123,7 @@ run = """ #!/usr/bin/env bash set -euo pipefail rm -rf proto -npx --no-install buf export "https://github.com/NVIDIA/OpenShell.git#ref=${OPENSHELL_CORE_REF},depth=1,subdir=proto" \ +npx --no-install buf export "https://github.com/ai-openshell/openshell.git#ref=${OPENSHELL_CORE_REF},depth=1,subdir=proto" \ --path openshell.proto --path sandbox.proto --path datamodel.proto --path options.proto \ --output proto """ diff --git a/scripts/README.md b/scripts/README.md index dabc612..0c608ce 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -10,7 +10,7 @@ The workflows use a GitHub App token from the `sdk-bot` environment (secrets `SD | File | mise task | Purpose | |------|-----------|---------| -| `core-tags.sh [--all]` | `core:tags` | List NVIDIA/OpenShell release tags newer than the pin: every stable tag, plus the newest pre-release when it is newer than all of them. | +| `core-tags.sh [--all]` | `core:tags` | List ai-openshell/openshell release tags newer than the pin: every stable tag, plus the newest pre-release when it is newer than all of them. | | `open-bump-pr.sh [--dry-run]` | `core:bump` | Open the update proposal for one core tag: branch `core/`, pin change, regenerated bindings in `src/gen`, refreshed copies of core files, proto diff in the body, labels `core-bump` plus `stable` or `prerelease`. Closes older pre-release proposals. | | `bump-pr-body.md` | | PR body template for `open-bump-pr.sh`. | | `drift-check.sh --out ` | `core:drift` | Compare core `main` with the pin: `buf breaking`, regenerate, then run `check` and the unit tests, list the RPCs the curated SDK doesn't call. Writes the markdown report. | diff --git a/scripts/core-sync/core-tags.sh b/scripts/core-sync/core-tags.sh index 8bb4de4..0344d3c 100755 --- a/scripts/core-sync/core-tags.sh +++ b/scripts/core-sync/core-tags.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # SPDX-License-Identifier: Apache-2.0 -# core-tags.sh: print NVIDIA/OpenShell release tags newer than the pin, +# core-tags.sh: print ai-openshell/openshell release tags newer than the pin, # oldest first. # # Usage: core-tags.sh [--all] [--pin ] @@ -14,7 +14,7 @@ # must be a release tag; a commit SHA fails. set -euo pipefail -repo=${CORE_REPO:-NVIDIA/OpenShell} +repo=${CORE_REPO:-ai-openshell/openshell} all=0 pin= diff --git a/scripts/core-sync/drift-check.sh b/scripts/core-sync/drift-check.sh index 98f1840..6d361af 100755 --- a/scripts/core-sync/drift-check.sh +++ b/scripts/core-sync/drift-check.sh @@ -20,7 +20,7 @@ # check. Exits 0 when checks 1 and 2 pass, 1 otherwise. set -euo pipefail -core_url=${CORE_URL:-https://github.com/NVIDIA/OpenShell.git} +core_url=${CORE_URL:-https://github.com/ai-openshell/openshell.git} out= while [ $# -gt 0 ]; do case $1 in diff --git a/scripts/core-sync/open-bump-pr.sh b/scripts/core-sync/open-bump-pr.sh index 7777bd6..40c29aa 100755 --- a/scripts/core-sync/open-bump-pr.sh +++ b/scripts/core-sync/open-bump-pr.sh @@ -23,7 +23,7 @@ # Git identity and GH_TOKEN come from the environment (the App in CI). set -euo pipefail -core_repo=${CORE_REPO:-NVIDIA/OpenShell} +core_repo=${CORE_REPO:-ai-openshell/openshell} sdk_repo=${SDK_REPO:-ai-openshell/sdk-typescript} image=quay.io/ai-openshell/gateway diff_cap=400 diff --git a/scripts/e2e/start-gateway.sh b/scripts/e2e/start-gateway.sh index b837453..068dd80 100755 --- a/scripts/e2e/start-gateway.sh +++ b/scripts/e2e/start-gateway.sh @@ -25,7 +25,7 @@ # including sandboxes of another local gateway that uses the same namespace. set -euo pipefail -core_repo=${CORE_REPO:-NVIDIA/OpenShell} +core_repo=${CORE_REPO:-ai-openshell/openshell} name=e2e port=8080 health_port=8081 diff --git a/scripts/fetch-core.sh b/scripts/fetch-core.sh index 46dd554..ca6bdc9 100755 --- a/scripts/fetch-core.sh +++ b/scripts/fetch-core.sh @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# fetch-core.sh: copy files from NVIDIA/OpenShell at a pinned ref. +# fetch-core.sh: copy files from ai-openshell/openshell at a pinned ref. # # The protos come from `buf export` (mise run proto:fetch); this script fetches # the other core files the repository checks against, such as the vendored @@ -23,7 +23,7 @@ fi ref=$1 out=$2 shift 2 -remote=${OPENSHELL_CORE_REMOTE:-https://github.com/NVIDIA/OpenShell.git} +remote=${OPENSHELL_CORE_REMOTE:-https://github.com/ai-openshell/openshell.git} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT diff --git a/scripts/vendored-core-files.txt b/scripts/vendored-core-files.txt index 65eed62..062d4e0 100644 --- a/scripts/vendored-core-files.txt +++ b/scripts/vendored-core-files.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # -# Files copied from NVIDIA/OpenShell at the pinned ref, one per line: +# Files copied from ai-openshell/openshell at the pinned ref, one per line: # . `mise run vendored:check` fails when a copy # differs from core. sdk/conformance/oauth-client-credentials.json test/fixtures/oauth-client-credentials.json