diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 48afbd2..e911be3 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -12,6 +12,9 @@ jobs: publish: name: publish runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v6 @@ -31,5 +34,3 @@ jobs: - name: Publish to NPM run: | bash ./bin/publish-npm - env: - NPM_TOKEN: ${{ secrets.OZ_API_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index c6b3691..e88a07b 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,6 +17,4 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment - env: - NPM_TOKEN: ${{ secrets.OZ_API_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index c85fe68..9487e48 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ dist-deno /*.tgz .idea/ .eslintcache - +oidc diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e1bea71..7ecdd7a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.0-alpha.0" + ".": "1.1.0-alpha.1" } diff --git a/.stats.yml b/.stats.yml index 65c00aa..d4039ac 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-7283a1794d3c59ddc27241892d1b962ee01c1bc5c0d9a456ff716c3d5e2420a7.yml -openapi_spec_hash: b8754eda5e237d0938d6b808fe33bf9b -config_hash: 1888db8b2f33dc16874aea51a90e78f7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-e281c64ee44d0db13ba9ce62d3a61e8b17fcd1fad9bffb5c3b0e3dfb2b5e66e1.yml +openapi_spec_hash: 6bd667f546147c5fac3bffe34522ba2f +config_hash: 13082483d6856f6f89d1cf72b9ddff49 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c54ccf..3aff488 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 1.1.0-alpha.1 (2026-04-02) + +Full Changelog: [v1.1.0-alpha.0...v1.1.0-alpha.1](https://github.com/warpdotdev/oz-sdk-typescript/compare/v1.1.0-alpha.0...v1.1.0-alpha.1) + +### Features + +* **api:** api update ([2a72eed](https://github.com/warpdotdev/oz-sdk-typescript/commit/2a72eed3e37028822c08d95c62284f7ad2031a10)) + + +### Chores + +* update SDK settings ([5fb3398](https://github.com/warpdotdev/oz-sdk-typescript/commit/5fb3398dc8a3cc0ef1502eaba66ff163f002639d)) +* update SDK settings ([1ebeed5](https://github.com/warpdotdev/oz-sdk-typescript/commit/1ebeed5341749a0e508853beedf9e0a4955a5c93)) +* update SDK settings ([ca7e29f](https://github.com/warpdotdev/oz-sdk-typescript/commit/ca7e29f68a7d7d2dca4258eab6591f5ce8fa7961)) + ## 1.1.0-alpha.0 (2026-04-02) Full Changelog: [v1.0.2...v1.1.0-alpha.0](https://github.com/warpdotdev/oz-sdk-typescript/compare/v1.0.2...v1.1.0-alpha.0) diff --git a/bin/check-release-environment b/bin/check-release-environment index e4b6d58..6b43775 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,10 +2,6 @@ errors=() -if [ -z "${NPM_TOKEN}" ]; then - errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets") -fi - lenErrors=${#errors[@]} if [[ lenErrors -gt 0 ]]; then diff --git a/bin/publish-npm b/bin/publish-npm index a609989..4e094d7 100644 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -2,7 +2,12 @@ set -eux -npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" +if [[ ${NPM_TOKEN:-} ]]; then + npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" +elif [[ ! ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-} ]]; then + echo "ERROR: NPM_TOKEN must be set if not running in a Github Action with id-token permission" + exit 1 +fi pnpm build cd dist @@ -57,5 +62,8 @@ else TAG="latest" fi +# Install OIDC compatible npm version +npm install --prefix ../oidc/ npm@11.6.2 + # Publish with the appropriate tag -pnpm publish --no-git-checks --tag "$TAG" +pnpm publish --npm-path "$(cd ../ && pwd)/oidc/node_modules/.bin/npm" --no-git-checks --tag "$TAG" diff --git a/package.json b/package.json index 605fd85..2022063 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oz-agent-sdk", - "version": "1.1.0-alpha.0", + "version": "1.1.0-alpha.1", "description": "The official TypeScript library for the Oz API API", "author": "Oz API <>", "types": "dist/index.d.ts", diff --git a/src/resources/agent/agent.ts b/src/resources/agent/agent.ts index 9c23de5..57700f2 100644 --- a/src/resources/agent/agent.ts +++ b/src/resources/agent/agent.ts @@ -186,7 +186,7 @@ export interface AmbientAgentConfig { /** * Specifies which execution harness to use for the agent run. Default (nil/empty) - * uses Warp's built-in harness. + * uses Warp's built-in Oz harness. */ harness?: AmbientAgentConfig.Harness; @@ -233,16 +233,13 @@ export interface AmbientAgentConfig { export namespace AmbientAgentConfig { /** * Specifies which execution harness to use for the agent run. Default (nil/empty) - * uses Warp's built-in harness. + * uses Warp's built-in Oz harness. */ export interface Harness { /** - * The harness type identifier. - * - * - oz: Warp's built-in harness (default) - * - claude: Claude Code harness + * The harness type identifier (e.g. "claude"). */ - type?: 'oz' | 'claude'; + type?: string; } } diff --git a/src/version.ts b/src/version.ts index 87adcc5..ae154d2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.1.0-alpha.0'; // x-release-please-version +export const VERSION = '1.1.0-alpha.1'; // x-release-please-version diff --git a/tests/api-resources/agent/schedules.test.ts b/tests/api-resources/agent/schedules.test.ts index 8b4f534..5ca2b55 100644 --- a/tests/api-resources/agent/schedules.test.ts +++ b/tests/api-resources/agent/schedules.test.ts @@ -32,7 +32,7 @@ describe('resource schedules', () => { base_prompt: 'base_prompt', computer_use_enabled: true, environment_id: 'environment_id', - harness: { type: 'oz' }, + harness: { type: 'type' }, idle_timeout_minutes: 1, mcp_servers: { foo: { @@ -93,7 +93,7 @@ describe('resource schedules', () => { base_prompt: 'base_prompt', computer_use_enabled: true, environment_id: 'environment_id', - harness: { type: 'oz' }, + harness: { type: 'type' }, idle_timeout_minutes: 1, mcp_servers: { foo: {