Skip to content

Commit c441312

Browse files
authored
Merge pull request #42 from isaacus-dev/release-please--branches--main--changes--next--components--isaacus
release: 0.5.1
2 parents bb779d9 + e9f9ce7 commit c441312

29 files changed

+226
-99
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
16-
1715
steps:
1816
- uses: actions/checkout@v4
1917

@@ -31,8 +29,9 @@ jobs:
3129
build:
3230
name: build
3331
runs-on: ubuntu-latest
34-
35-
32+
permissions:
33+
contents: read
34+
id-token: write
3635
steps:
3736
- uses: actions/checkout@v4
3837

@@ -46,10 +45,24 @@ jobs:
4645

4746
- name: Check build
4847
run: ./scripts/build
48+
49+
- name: Get GitHub OIDC Token
50+
if: github.repository == 'stainless-sdks/isaacus-typescript'
51+
id: github-oidc
52+
uses: actions/github-script@v6
53+
with:
54+
script: core.setOutput('github_token', await core.getIDToken());
55+
56+
- name: Upload tarball
57+
if: github.repository == 'stainless-sdks/isaacus-typescript'
58+
env:
59+
URL: https://pkg.stainless.com/s
60+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
61+
SHA: ${{ github.sha }}
62+
run: ./scripts/utils/upload-artifact.sh
4963
test:
5064
name: test
5165
runs-on: ubuntu-latest
52-
5366
steps:
5467
- uses: actions/checkout@v4
5568

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.0"
2+
".": "0.5.1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-861e8a85f0fb73cf4b7fc6c2b27722072ff33109459e90c17be24af15dfcbd0c.yml
3-
openapi_spec_hash: 644a0383600633ee604bb1e5b9ca025d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-d58ccd91625a3b12fd8d1ceece128b604010bd840096000287c927cb5dcf79eb.yml
3+
openapi_spec_hash: 22c8c973d55f26649e9df96c89ea537f
44
config_hash: 1d603d50b7183a492ad6df5f728a1863

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 0.5.1 (2025-04-16)
4+
5+
Full Changelog: [v0.5.0...v0.5.1](https://github.com/isaacus-dev/isaacus-typescript/compare/v0.5.0...v0.5.1)
6+
7+
### Bug Fixes
8+
9+
* **client:** send all configured auth headers ([50c37d7](https://github.com/isaacus-dev/isaacus-typescript/commit/50c37d755bb3c3380556ace406b56eab876afeb8))
10+
* **internal:** fix file uploads in node 18 jest ([c7b7e21](https://github.com/isaacus-dev/isaacus-typescript/commit/c7b7e216e58d1543021380438e1d30e15c396117))
11+
* **mcp:** fix readEnv type error ([8b4b190](https://github.com/isaacus-dev/isaacus-typescript/commit/8b4b19063b1a17a8a6c421428c6a6a82a9bd519c))
12+
* **mcp:** include all necessary env vars in client instantiation ([19a3c7b](https://github.com/isaacus-dev/isaacus-typescript/commit/19a3c7b4b100a1ca6613e1fb7013191b606a1902))
13+
14+
15+
### Chores
16+
17+
* **client:** minor internal fixes ([1d498c9](https://github.com/isaacus-dev/isaacus-typescript/commit/1d498c94b272c1a7f7b18257a9c88f812d34b393))
18+
* **internal:** codegen related update ([2e3d74a](https://github.com/isaacus-dev/isaacus-typescript/commit/2e3d74a28bc40cf99a1398b1a4060584e0766504))
19+
* **internal:** improve node 18 shims ([fb9eac1](https://github.com/isaacus-dev/isaacus-typescript/commit/fb9eac171311ab834c0391fe9f516fc5c94d0128))
20+
* **internal:** reduce CI branch coverage ([08a7c8d](https://github.com/isaacus-dev/isaacus-typescript/commit/08a7c8ddddce2bb2c06f2aea2ec5c9eff99609b9))
21+
* **internal:** upload builds and expand CI branch coverage ([4f0428c](https://github.com/isaacus-dev/isaacus-typescript/commit/4f0428c3546e7520ff828319d49f7539907265f6))
22+
23+
24+
### Documentation
25+
26+
* **api:** removed description of certain objects due to Mintlify bug ([17a6ea9](https://github.com/isaacus-dev/isaacus-typescript/commit/17a6ea975aeb53ffe496e7eea3ed7c1ac802a171))
27+
328
## 0.5.0 (2025-04-05)
429

530
Full Changelog: [v0.4.0...v0.5.0](https://github.com/isaacus-dev/isaacus-typescript/compare/v0.4.0...v0.5.0)

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isaacus",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "The official TypeScript library for the Isaacus API",
55
"author": "Isaacus <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -49,6 +49,10 @@
4949
"resolutions": {
5050
"synckit": "0.8.8"
5151
},
52+
"browser": {
53+
"./internal/shims/getBuiltinModule.mjs": "./internal/shims/nullGetBuiltinModule.mjs",
54+
"./internal/shims/getBuiltinModule.js": "./internal/shims/nullGetBuiltinModule.js"
55+
},
5256
"imports": {
5357
"isaacus": ".",
5458
"isaacus/*": "./src/*"

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isaacus-mcp",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "The official MCP Server for the Isaacus API",
55
"author": "Isaacus <[email protected]>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export { endpoints } from './tools';
1111
export const server = new McpServer(
1212
{
1313
name: 'isaacus_api',
14-
version: '0.5.0',
14+
version: '0.5.1',
1515
},
1616
{
1717
capabilities: {
@@ -75,13 +75,17 @@ export async function executeHandler(
7575
};
7676
}
7777

78-
export const readEnv = (env: string): string => {
79-
let envValue = undefined;
78+
export const readEnv = (env: string): string | undefined => {
8079
if (typeof (globalThis as any).process !== 'undefined') {
81-
envValue = (globalThis as any).process.env?.[env]?.trim();
80+
return (globalThis as any).process.env?.[env]?.trim();
8281
} else if (typeof (globalThis as any).Deno !== 'undefined') {
83-
envValue = (globalThis as any).Deno.env?.get?.(env)?.trim();
82+
return (globalThis as any).Deno.env?.get?.(env)?.trim();
8483
}
84+
return;
85+
};
86+
87+
export const readEnvOrError = (env: string): string => {
88+
let envValue = readEnv(env);
8589
if (envValue === undefined) {
8690
throw new Error(`Environment variable ${env} is not set`);
8791
}

packages/mcp-server/src/tools/rerankings/create-rerankings.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export const tool: Tool = {
3333
items: {
3434
type: 'string',
3535
title: 'Non-blank string',
36-
description: 'A string with at least one non-whitespace character.',
3736
},
3837
},
3938
chunking_options: {

scripts/build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ node scripts/utils/fix-index-exports.cjs
3535
cp tsconfig.dist-src.json dist/src/tsconfig.json
3636
cp src/internal/shim-types.d.ts dist/internal/shim-types.d.ts
3737
cp src/internal/shim-types.d.ts dist/internal/shim-types.d.mts
38-
mkdir -p dist/internal/shims
39-
cp src/internal/shims/*.{mjs,js,d.ts,d.mts} dist/internal/shims
4038

4139
node scripts/utils/postprocess-files.cjs
4240

scripts/utils/upload-artifact.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
set -exuo pipefail
3+
4+
RESPONSE=$(curl -X POST "$URL" \
5+
-H "Authorization: Bearer $AUTH" \
6+
-H "Content-Type: application/json")
7+
8+
SIGNED_URL=$(echo "$RESPONSE" | jq -r '.url')
9+
10+
if [[ "$SIGNED_URL" == "null" ]]; then
11+
echo -e "\033[31mFailed to get signed URL.\033[0m"
12+
exit 1
13+
fi
14+
15+
UPLOAD_RESPONSE=$(tar -cz dist | curl -v -X PUT \
16+
-H "Content-Type: application/gzip" \
17+
--data-binary @- "$SIGNED_URL" 2>&1)
18+
19+
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
20+
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
21+
echo -e "\033[32mInstallation: npm install 'https://pkg.stainless.com/s/isaacus-typescript/$SHA'\033[0m"
22+
else
23+
echo -e "\033[31mFailed to upload artifact.\033[0m"
24+
exit 1
25+
fi

0 commit comments

Comments
 (0)