Skip to content

feat(sdk): replace the TypeScript SDK in core with an @ai-openshell/sdk stub - #5685

Merged
pimlock merged 6 commits into
mainfrom
5684-freeze-typescript-sdk/pimlock
Nov 20, 2026
Merged

pimlock merged 6 commits into
mainfrom
5684-freeze-typescript-sdk/pimlock

Conversation

@pimlock

@pimlock pimlock commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The TypeScript SDK moved to ai-openshell/sdk-typescript and is published to npmjs.org as @ai-openshell/sdk. This PR freezes sdk/typescript/ in core and replaces it with a stub @nvidia/openshell-sdk that re-exports @ai-openshell/sdk. The v0.1.10 release publishes that stub, so existing users get the SDK from the new repository without code changes. Core removes the stub after v0.1.10.

Related Issue

Closes #5684. Part of #5480.

#4956 changed sdk/typescript/ after the v0.1.9 import. This PR deletes that change here; ai-openshell/sdk-typescript#19 imports it there, and lands once a core prerelease includes #4956.

Changes

  • Replace sdk/typescript/ with the stub: . and ./raw re-export @ai-openshell/sdk, and the README explains how to switch.
  • sdk-typescript-publish.yml publishes the stub with a ^X.Y.0 dependency and fails if npmjs.org has no matching @ai-openshell/sdk. It is manual dispatch only: sdk-typescript releases @ai-openshell/sdk@X.Y.Z after core tags vX.Y.Z, so the core Release workflow no longer publishes the stub. Run it for v0.1.10 after @ai-openshell/sdk@0.1.10 is on npmjs.org.
  • Replace the TypeScript SDK CI job with a TypeScript SDK Freeze check that rejects SDK changes other than deletions and edits to the stub's own files.
  • Remove the SDK tasks from core, and run proto:lint with core's own Buf.
  • Point docs, contributor guidance and skills at @ai-openshell/sdk.

Release Notes

The TypeScript SDK moved to ai-openshell/sdk-typescript and is now published as @ai-openshell/sdk on npmjs.org. @nvidia/openshell-sdk@0.1.10 is the last release of the old package. It re-exports @ai-openshell/sdk and depends on ^0.1.0, so existing code keeps working and keeps receiving 0.1.x releases. We recommend switching to the new package; see the @nvidia/openshell-sdk package page for migration notes.

Testing

  • mise run pre-commit passes.
  • The packed stub exposes the same exports and types as @ai-openshell/sdk in a consumer project.
  • The freeze check accepts core-only and deletion-only changes and rejects SDK edits.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture table and contributor guidance updated

@copy-pr-bot

copy-pr-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 18, 2026
@github-actions

Copy link
Copy Markdown

@pimlock pimlock changed the title ci(sdk): freeze TypeScript SDK changes in core feat(sdk): replace the TypeScript SDK in core with an @ai-openshell/sdk stub Nov 20, 2026
pimlock added a commit to ai-openshell/sdk-typescript that referenced this pull request Nov 20, 2026
Core replaces its TypeScript SDK with @nvidia/openshell-sdk@0.1.10, a stub
that depends on @ai-openshell/sdk@^0.1.0 and re-exports . and ./raw
(ai-openshell/openshell#5685). Record what that means here: keep both entry
points and keep breaking changes out of 0.1.x, since users of the old
name receive every 0.1.x release. Tell README readers that the old name
keeps working through 0.1.x.

Core's agent instructions also explained which protos the SDK compiles.
Here the list lives in two places, proto:fetch and buf.gen.yaml, so say
that a new core proto file goes in both.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock force-pushed the 5684-freeze-typescript-sdk/pimlock branch from f6f4ff8 to db3ac9e Compare November 20, 2026 00:25
@pimlock
pimlock marked this pull request as ready for review November 20, 2026 00:49
@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. typescript-sdk — No explicit risk acceptance found

@nvidia/openshell-sdk and /raw now re-export @ai-openshell/sdk@^0.1.0 instead of shipping the baseline implementation, leaving preservation of its APIs unverified.

  • Impact: Existing callers may lose baseline SandboxRef.applicationServiceUrls, SandboxRef.gatewayServiceUrls, or matching generated types because the replacement source is absent and the PR describes the corresponding SDK port as pending.
  • Action: Before qualifying v0.1.10, verify a published replacement preserves the baseline root/raw APIs and runtime behavior, and require at least that compatible version.
  • PR: feat(sdk): replace the TypeScript SDK in core with an @ai-openshell/sdk stub #5685
Review details
  • Execution: incomplete
  • Candidate: PR #5685 (aa0793230890e1705793adaae29f48081b780323)
  • Baseline: c24fcd232f84c132d1e9c163b0375e5c6c8e0614 (c24fcd232f84c132d1e9c163b0375e5c6c8e0614)
  • Reviewed: rust-sdk, python-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
The TypeScript SDK now lives in ai-openshell/sdk-typescript and publishes
@ai-openshell/sdk to npmjs.org. Replace sdk/typescript with a stub package
that keeps the @nvidia/openshell-sdk name, depends on @ai-openshell/sdk,
and re-exports its root and /raw entry points. Existing users on a 0.1.x
range move to the new code without changing imports, and the README
gives migration steps.

The release publisher stamps the dependency to the release's minor line
(^X.Y.0) and fails when npmjs.org has no matching @ai-openshell/sdk, so a
stub is never published that npm cannot install. Rerun it with
workflow_dispatch after the SDK release.

The freeze check allows the stub's files. Remove the SDK sources,
tooling, mise tasks, Windows helpers, CodeQL paths, and license
sidecars, and point the docs at @ai-openshell/sdk.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
ai-openshell/sdk-typescript documents the SDK, and CONTRIBUTING and CI.md cover the core stub and its freeze check.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
CI.md and CONTRIBUTING state the move in one sentence, and the release canary skill no longer mentions the SDK.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock force-pushed the 5684-freeze-typescript-sdk/pimlock branch from db3ac9e to 6d8b101 Compare November 20, 2026 15:46
@pimlock
pimlock requested a review from a team as a code owner November 20, 2026 15:46
The stub depends on @ai-openshell/sdk from the same minor line, and
sdk-typescript only releases that after core tags the matching version.
Publishing the stub from the core Release workflow would always fail on
its only run, so make sdk-typescript-publish.yml manual dispatch only
and drop it from Check Publication.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock

pimlock commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Re: the compatibility review finding on typescript-sdk.

No released API is lost. SandboxRef.applicationServiceUrls, SandboxRef.gatewayServiceUrls, and the matching generated types come from #4956, which is in v0.1.10-pre.3 but not in v0.1.9. The stub publish only runs for stable releases, so no released @nvidia/openshell-sdk ever shipped these fields. The review compared against main, not the last release.

v0.1.10 gets them through the SDK release order:

Before v0.1.10 ships, we'll confirm that @ai-openshell/sdk@0.1.10 exports these fields from both the root and /raw entry points.

The TypeScript SDK implementation moved to ai-openshell/sdk-typescript,
so the review could not inspect it and marked the surface unreviewed on
every run. Remove typescript-sdk from the required surfaces in the
review prompt and the report validator, as done for go-sdk.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit b20c144 Nov 20, 2026
89 checks passed
@pimlock
pimlock deleted the 5684-freeze-typescript-sdk/pimlock branch November 20, 2026 19:06
cv added a commit to NVIDIA/NemoClaw that referenced this pull request Nov 24, 2026
)

Moves NemoClaw's OpenShell pins from v0.1.9 to v0.1.10, whose project
moved to `ai-openshell/openshell` and publishes its images and chart on
Quay, upgrades the bundle's OpenTofu to 1.13.10, and updates Rust crates
within the workspace's constraints. A managed `kubernetes` or
`openshift` gateway now reports no sandbox service URLs, because the
v0.1.10 chart turns off gateway service routing.

## Problem

NemoClaw pins OpenShell v0.1.9 (`ce58cf8`). v0.1.10 (`152c59d`) is the
latest release, and it changes what NemoClaw pins and how a Kubernetes
gateway behaves:

- The repository moved from `NVIDIA/OpenShell` to
`ai-openshell/openshell`. The gateway, supervisor and sandbox images and
the chart publish to `quay.io/ai-openshell`, the chart is renamed
`oci://quay.io/ai-openshell/charts/openshell`, and GHCR has no 0.1.10
tags.
- The chart sets `enable_gateway_service_routing: false`
(ai-openshell/openshell#5672), so a Helm gateway publishes no
gateway-routed service URLs.
- `openshell-policy`'s `PolicyViolation` gained five Cedar and
endpoint-settings variants, so NemoClaw's exhaustive description of
OpenShell's violations no longer compiles.
- OpenShell now refreshes an expired policy DNS mapping before
connecting (ai-openshell/openshell#5650), which removes the limit that
an OpenClaw agent's model request failed after a DNS answer's TTL.

OpenTofu 1.13.10 is a patch release built with Go 1.27.4 for
GO-2026-6859.

## Change

- **Pins:** the Cargo source and revision of `openshell-core`,
`openshell-sdk` and `openshell-policy`, and of the vendored SDK's
`openshell-core` and `openshell-crypto`; in `versions.json`, the
version, revision, Linux CLI archives, the Quay gateway, supervisor and
sandbox images, and the renamed chart; the managed-gateway reference, a
contract test and the gateway contract module, which carry the image
digests. The CLI checksums come from the release's
`openshell-checksums-sha256.txt`, and the image and chart digests from
Quay's `0.1.10` tags; GHCR's `0.1.9` tags match the previous pins. The
OpenTofu checksums come from its GPG-signed `SHA256SUMS`.
- **Vendored SDK:** upstream changed `src/client.rs`, `src/types.rs`
(the new `application_service_urls` and `gateway_service_urls`) and
`tests/client_mock.rs`, copied unchanged. The SDK manifest still enables
`openshell-core`'s default features, including telemetry, so the
manifest patch stays; `NOTICE.md` records the new source and revision.
The SDK integration limits in `internal-docs/design/architecture.md`
still hold at v0.1.10 and cite that revision.
- **Policy violations:** NemoClaw describes the five new violations.
NemoClaw writes no Cedar policy or `endpoint_settings`, so none of them
arises from a NemoClaw document.
- **Service URLs on Kubernetes:** NemoClaw leaves the chart's default.
The Kubernetes guide says a managed gateway reports no service URLs and
how to turn routing on with `enable_gateway_service_routing: true` in
`spec.gateway.config`, which passes through to the chart; the
external-ingress guidance and the limit for #14316 say the same. The
fake gateway in the test fixtures reports each URL as gateway-routed, as
a Docker gateway does.
- **Limits:** the DNS TTL limit is removed.
- **Docs:** OpenShell links move to `ai-openshell/openshell` at v0.1.10;
each path and anchor exists there, and the three configuration line
ranges in the sandbox network guide move to the same text.
- **Rust crates:** `cargo update`. `url` 2.5.9 now percent-encodes `^`
in a path, as WHATWG's URL standard does, so an MCP endpoint whose path
holds `^` passed NemoClaw's check; the existing
`mcp_endpoints_reject_paths_openshell_rewrites_before_matching` test
failed, and NemoClaw now checks the URL as written.
- **Release notes:** the v0.1.10 changes users see, and the service URL
change as a breaking change.

## OpenShell 0.1.10 Changes Checked

| Change | Decision |
|---|---|
| Registry and chart move, repository transfer
(ai-openshell/openshell#5822, ai-openshell/openshell#5823,
ai-openshell/openshell#5833) | Followed in every pin and link. |
| Helm service routing off by default (ai-openshell/openshell#5672) |
Kept OpenShell's default and documented the setting; NemoClaw doesn't
override chart defaults it doesn't own. |
| Application origins, `domain` → `base_url`
(ai-openshell/openshell#4956) | No change: NemoClaw sets no app
listener, and apply reports OpenShell's preferred `url`, which stays the
gateway URL when no origin is configured. |
| TypeScript SDK move (ai-openshell/openshell#5685) | No change:
NemoClaw uses the Rust SDK. |
| Kubernetes 1.33 minimum tested (ai-openshell/openshell#5646) | No
change: CI's kind node runs 1.37, and OpenShell still tests Agent
Sandbox 1.0.3. |
| Policy DNS TTL refresh (ai-openshell/openshell#5650) | Removed the
limit; NemoClaw had no workaround. |
| Sandbox restart `ContainerExited`, same-name recreate on Kubernetes,
multi-replica fixes, IPv6, process limits and signals, idle-connection
and 502 fixes | No NemoClaw code works around them; listed in the
release notes. |
| Docker persistent `/sandbox` and image updates of a stopped sandbox
(ai-openshell/openshell#5617) | Not adopted here: it needs
`enable_sandbox_updates` and `persist_workspace`, applies only to new
workspaces, and requires a numeric `USER` in the image, so it is a
feature change of its own. |
| Workspace secrets, GitHub App tokens, SPIFFE broker, OAuth
`client_secret_basic` and `resource`, `/**` path templates, OTLP
metrics, audit records, IPv6 listeners, supervisor pool sizing | Gateway
or provider settings that `spec.gateway.config` or operator-managed
providers can set; NemoClaw adds no wrapper. |
| `openshell policy lint` (ai-openshell/openshell#5358) | No change:
NemoClaw validates policies in-process with `openshell-policy`. |
| Cedar policies | Development builds only; no change. |
| OpenShift UID and `fsGroup` (ai-openshell/openshell#5483) | Still
open, so the `openshift` target keeps nulling the chart's IDs. |
| Gateway restart leaves sandboxes in `Error`
(ai-openshell/openshell#4910) | Still open; the limit stays. |

## Other Pins

- NeMo Fabric is already at its latest release, v0.7.0, and its OpenClaw
adapter supports only OpenClaw 2026.9.34 and its Hermes adapter Hermes
v0.22.7, so the harness images stay; Fabric owns the harness versions
its adapters support.
- The Docker and Helm providers, kind, nextest, Protocol Buffers, Rust
and vLLM are at their latest releases.
- Container base images, Bun, uv and Ollama move in a stacked pull
request, which needs image builds of its own.
- llama.cpp's server image and the NIM image stay: each update needs its
own notices and a GPU run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(sdk/ts): freeze core SDK changes at v0.1.9

2 participants