From ea54ef53e610cfc0c635a12cc3cc09352e91354b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 02:02:42 +0000 Subject: [PATCH 1/2] feat(devbox): unify api for devbox mounts --- .stats.yml | 4 ++-- src/resources/devboxes/devboxes.ts | 2 +- src/resources/shared.ts | 20 ++++++++++++++++++- tests/api-resources/blueprints.test.ts | 2 ++ tests/api-resources/devboxes/devboxes.test.ts | 1 + 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 33e553ff2..bc705b998 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 97 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-5f33221208c1febba343daf570f73a5086f150a9b128df045ebddc3fe2c86607.yml -openapi_spec_hash: 0aea07130ddbe43a665a13a68231e2ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-0dd27c6877ed117c50fe0af95cee4d54c646d2484368e131b8e3315eba3fffcc.yml +openapi_spec_hash: 68f663172747aef8e66f2b23289efc7b config_hash: 2363f563f42501d2b1587a4f64bdccaf diff --git a/src/resources/devboxes/devboxes.ts b/src/resources/devboxes/devboxes.ts index 9efe48751..eb486e086 100644 --- a/src/resources/devboxes/devboxes.ts +++ b/src/resources/devboxes/devboxes.ts @@ -929,7 +929,7 @@ export interface DevboxCreateParams { metadata?: { [key: string]: string } | null; /** - * A list of file system mounts to be included in the Devbox. + * A list of mounts to be included in the Devbox. */ mounts?: Array | null; diff --git a/src/resources/shared.ts b/src/resources/shared.ts index aa9529894..3eee1e4a8 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -167,6 +167,8 @@ export interface CodeMountParameters { */ repo_owner: string; + type: 'code_mount'; + /** * The authentication token necessary to pull repo. */ @@ -274,7 +276,23 @@ export namespace LaunchParameters { } } -export type Mount = ObjectMountParameters | AgentMountParameters; +export type Mount = + | ObjectMountParameters + | AgentMountParameters + | CodeMountParameters + | Mount.FileMountParameters; + +export namespace Mount { + export interface FileMountParameters { + /** + * Map of file paths to file contents to be written before setup. Keys are absolute + * paths where files should be created, values are the file contents. + */ + files: { [key: string]: string }; + + type: 'file_mount'; + } +} export interface ObjectMountParameters { /** diff --git a/tests/api-resources/blueprints.test.ts b/tests/api-resources/blueprints.test.ts index 545cd4903..5f8049667 100644 --- a/tests/api-resources/blueprints.test.ts +++ b/tests/api-resources/blueprints.test.ts @@ -31,6 +31,7 @@ describe('resource blueprints', () => { { repo_name: 'repo_name', repo_owner: 'repo_owner', + type: 'code_mount', token: 'token', install_command: 'install_command', }, @@ -261,6 +262,7 @@ describe('resource blueprints', () => { { repo_name: 'repo_name', repo_owner: 'repo_owner', + type: 'code_mount', token: 'token', install_command: 'install_command', }, diff --git a/tests/api-resources/devboxes/devboxes.test.ts b/tests/api-resources/devboxes/devboxes.test.ts index 30eb681b6..cba3193d9 100644 --- a/tests/api-resources/devboxes/devboxes.test.ts +++ b/tests/api-resources/devboxes/devboxes.test.ts @@ -39,6 +39,7 @@ describe('resource devboxes', () => { { repo_name: 'repo_name', repo_owner: 'repo_owner', + type: 'code_mount', token: 'token', install_command: 'install_command', }, From 3e60c87db4685f9dab666b93a6f0f8529d324264 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 01:05:06 +0000 Subject: [PATCH 2/2] release: 0.69.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e5a17c222..93e2be7fb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.68.0" + ".": "0.69.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index aa33efe7f..5bb273461 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.69.0 (2025-11-25) + +Full Changelog: [v0.68.0...v0.69.0](https://github.com/runloopai/api-client-ts/compare/v0.68.0...v0.69.0) + +### Features + +* **devbox:** unify api for devbox mounts ([ea54ef5](https://github.com/runloopai/api-client-ts/commit/ea54ef53e610cfc0c635a12cc3cc09352e91354b)) +* **storage-objects:** Adds a helper method to create an Object from a local directory ([#656](https://github.com/runloopai/api-client-ts/issues/656)) ([b87ac39](https://github.com/runloopai/api-client-ts/commit/b87ac396696b02ef99bdf700b2abff2c7de68c9d)) + + +### Bug Fixes + +* **sdk:** Fix exports of the SDK not getting clobbered ([#662](https://github.com/runloopai/api-client-ts/issues/662)) ([b9ca9a1](https://github.com/runloopai/api-client-ts/commit/b9ca9a162dd4c305aeb58f4a4bf7ec339e6eabc9)) + ## 0.68.0 (2025-11-19) Full Changelog: [v0.67.1...v0.68.0](https://github.com/runloopai/api-client-ts/compare/v0.67.1...v0.68.0) diff --git a/package.json b/package.json index da07b0059..90908fad7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@runloop/api-client", - "version": "0.68.0", + "version": "0.69.0", "description": "The official TypeScript library for the Runloop API", "author": "Runloop ", "types": "dist/sdk.d.ts", diff --git a/src/version.ts b/src/version.ts index 71e734033..f88b6d2e2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.68.0'; // x-release-please-version +export const VERSION = '0.69.0'; // x-release-please-version