Skip to content

Commit 15e333c

Browse files
feat(api): api update
1 parent e722834 commit 15e333c

File tree

7 files changed

+14
-23
lines changed

7 files changed

+14
-23
lines changed

.github/workflows/publish-npm.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
publish:
1313
name: publish
1414
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
1815

1916
steps:
2017
- uses: actions/checkout@v6
@@ -34,3 +31,5 @@ jobs:
3431
- name: Publish to NPM
3532
run: |
3633
bash ./bin/publish-npm
34+
env:
35+
NPM_TOKEN: ${{ secrets.OZ_API_NPM_TOKEN || secrets.NPM_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ jobs:
1717
- name: Check release environment
1818
run: |
1919
bash ./bin/check-release-environment
20+
env:
21+
NPM_TOKEN: ${{ secrets.OZ_API_NPM_TOKEN || secrets.NPM_TOKEN }}
2022

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ dist-deno
99
/*.tgz
1010
.idea/
1111
.eslintcache
12-
oidc
12+

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-8f9c749573846b07a55a3131b66456f0a592838c6bfc986ab30948df66cd6f11.yml
3-
openapi_spec_hash: 59f1ac98ad6cf13b12c59196bcecffd7
4-
config_hash: 60052b2c1c0862014416821aba875574
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-a29592b2ba26cba9d89b95969d66506f49c08e140b76ce4aea4189e5c1dccc06.yml
3+
openapi_spec_hash: 27a5de1f891104d5e47904ad8e4b4bd1
4+
config_hash: 40327fb76b7cce7b97f23de9b8d48efb

bin/check-release-environment

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
errors=()
44

5+
if [ -z "${NPM_TOKEN}" ]; then
6+
errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
7+
fi
8+
59
lenErrors=${#errors[@]}
610

711
if [[ lenErrors -gt 0 ]]; then

bin/publish-npm

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
set -eux
44

5-
if [[ ${NPM_TOKEN:-} ]]; then
6-
npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN"
7-
elif [[ ! ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-} ]]; then
8-
echo "ERROR: NPM_TOKEN must be set if not running in a Github Action with id-token permission"
9-
exit 1
10-
fi
5+
npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN"
116

127
pnpm build
138
cd dist
@@ -62,8 +57,5 @@ else
6257
TAG="latest"
6358
fi
6459

65-
# Install OIDC compatible npm version
66-
npm install --prefix ../oidc/ npm@11.6.2
67-
6860
# Publish with the appropriate tag
69-
pnpm publish --npm-path "$(cd ../ && pwd)/oidc/node_modules/.bin/npm" --no-git-checks --tag "$TAG"
61+
pnpm publish --no-git-checks --tag "$TAG"

src/resources/agent/agent.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -725,12 +725,6 @@ export interface AgentListParams {
725725
}
726726

727727
export interface AgentRunParams {
728-
/**
729-
* Optional agent identity UID to use as the execution principal for the run. This
730-
* is only valid for runs that are team owned.
731-
*/
732-
agent_identity_uid?: string;
733-
734728
/**
735729
* Optional file attachments to include with the prompt (max 5). Attachments are
736730
* uploaded to cloud storage and made available to the agent.

0 commit comments

Comments
 (0)