@runtypelabs/sdk 10.7.0 → 10.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5743,9 +5743,6 @@ function buildAgentAdmissionHeaders(options) {
5743
5743
  if (options.idempotencyKey) headers["idempotency-key"] = options.idempotencyKey;
5744
5744
  return headers;
5745
5745
  }
5746
- /**
5747
- * Agents endpoint handlers
5748
- */
5749
5746
  var AgentsEndpoint = class AgentsEndpoint {
5750
5747
  constructor(client) {
5751
5748
  this.client = client;
@@ -5792,6 +5789,24 @@ var AgentsEndpoint = class AgentsEndpoint {
5792
5789
  return this.client.get(`/agents/${id}/export-runtime`, selector);
5793
5790
  }
5794
5791
  /**
5792
+ * Export an agent as a vendorable zip: `agent.json`, the prebuilt `runtime/` package, `manifest.json`,
5793
+ * and `LICENSE`. Two exports of the same version are byte-identical; `contentHash` pins them.
5794
+ */
5795
+ async exportRuntimeBundle(id, selector) {
5796
+ const query = new URLSearchParams({ format: "bundle" });
5797
+ if (selector?.versionId !== void 0) query.set("versionId", selector.versionId);
5798
+ if (selector?.alias !== void 0) query.set("alias", selector.alias);
5799
+ const response = await this.client.requestStream(`/agents/${id}/export-runtime?${query}`, { method: "GET" });
5800
+ const disposition = response.headers.get("Content-Disposition") ?? "";
5801
+ return {
5802
+ bytes: new Uint8Array(await response.arrayBuffer()),
5803
+ fileName: /filename="([^"]+)"/.exec(disposition)?.[1] ?? `${id}-runtime-bundle.zip`,
5804
+ contentHash: response.headers.get("X-Runtype-Bundle-Content-Hash"),
5805
+ runtimeVersion: response.headers.get("X-Runtype-Runtime-Version"),
5806
+ runtimeCommit: response.headers.get("X-Runtype-Runtime-Commit")
5807
+ };
5808
+ }
5809
+ /**
5795
5810
  * Roll up the agent's most recent runs: per-version and per-tool counts,
5796
5811
  * average tokens and cost, and which attached tools were never called.
5797
5812
  */
@@ -13483,7 +13498,7 @@ function transformQueryParams(params) {
13483
13498
  }
13484
13499
  //#endregion
13485
13500
  //#region src/version.ts
13486
- const SDK_VERSION = "10.7.0";
13501
+ const SDK_VERSION = "10.8.0";
13487
13502
  /**
13488
13503
  * Canonical client identity the API uses for attribution
13489
13504
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -5270,6 +5270,8 @@ interface paths {
5270
5270
  versionId?: string;
5271
5271
  /** @description Export the version this release alias currently points at. Mutually exclusive with `versionId`. */
5272
5272
  alias?: string;
5273
+ /** @description `json` (the default) returns the exported definition. `bundle` returns a vendorable `application/zip` with `agent.json` (the same definition), `runtime/` (the prebuilt `@runtypelabs/runtime` ESM package for the platform runtime version, installable as `file:./runtime`), `manifest.json`, and `LICENSE` (the runtime ships under FSL-1.1-ALv2). */
5274
+ format?: "json" | "bundle";
5273
5275
  };
5274
5276
  header?: never;
5275
5277
  path: {
@@ -5279,7 +5281,7 @@ interface paths {
5279
5281
  };
5280
5282
  requestBody?: never;
5281
5283
  responses: {
5282
- /** @description Exported agent definition */
5284
+ /** @description Exported agent definition, or with `format=bundle` a zip archive. Two bundle exports of the same version are byte-identical. The bundle `manifest.json` records the runtime version and source commit, the agent `versionId`/alias, the entrypoints, `hostDependencies`, and `contentHash`: sha256 over the `sha256sum` listing (`<sha256> <path>` lines sorted by path) of every file except `manifest.json`. The same hash is sent in the `X-Runtype-Bundle-Content-Hash` header. */
5283
5285
  200: {
5284
5286
  headers: {
5285
5287
  [name: string]: unknown;
@@ -5310,6 +5312,7 @@ interface paths {
5310
5312
  /** @description Skills bound to the agent, snapshotted with the skill version each resolved to. `executeAgent` loads them with no host wiring. Absent when the agent has no bound skills. */
5311
5313
  skills?: components["schemas"]["RuntimeExportedSkill"][];
5312
5314
  };
5315
+ "application/zip": string;
5313
5316
  };
5314
5317
  };
5315
5318
  /** @description Invalid agent ID, or both `versionId` and `alias` were supplied */
@@ -5366,6 +5369,15 @@ interface paths {
5366
5369
  "application/json": components["schemas"]["Error"];
5367
5370
  };
5368
5371
  };
5372
+ /** @description With `format=bundle`: the prebuilt runtime artifact for this platform version is not available (code `RUNTIME_ARTIFACT_UNAVAILABLE`, with a `reason` such as `artifact_missing`) */
5373
+ 503: {
5374
+ headers: {
5375
+ [name: string]: unknown;
5376
+ };
5377
+ content: {
5378
+ "application/json": components["schemas"]["Error"];
5379
+ };
5380
+ };
5369
5381
  };
5370
5382
  };
5371
5383
  put?: never;
@@ -42445,15 +42457,6 @@ interface paths {
42445
42457
  "application/json": components["schemas"]["Error"];
42446
42458
  };
42447
42459
  };
42448
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42449
- 404: {
42450
- headers: {
42451
- [name: string]: unknown;
42452
- };
42453
- content: {
42454
- "application/json": components["schemas"]["Error"];
42455
- };
42456
- };
42457
42460
  /** @description Daily execution limit or rate limit exceeded */
42458
42461
  429: {
42459
42462
  headers: {
@@ -42631,15 +42634,6 @@ interface paths {
42631
42634
  "application/json": components["schemas"]["RuntimeEmailAdmissionError"];
42632
42635
  };
42633
42636
  };
42634
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42635
- 404: {
42636
- headers: {
42637
- [name: string]: unknown;
42638
- };
42639
- content: {
42640
- "application/json": components["schemas"]["Error"];
42641
- };
42642
- };
42643
42637
  /** @description Daily execution limit or rate limit exceeded */
42644
42638
  429: {
42645
42639
  headers: {
@@ -42790,15 +42784,6 @@ interface paths {
42790
42784
  "application/json": components["schemas"]["Error"];
42791
42785
  };
42792
42786
  };
42793
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42794
- 404: {
42795
- headers: {
42796
- [name: string]: unknown;
42797
- };
42798
- content: {
42799
- "application/json": components["schemas"]["Error"];
42800
- };
42801
- };
42802
42787
  /** @description Daily execution limit or rate limit exceeded */
42803
42788
  429: {
42804
42789
  headers: {
@@ -42932,15 +42917,6 @@ interface paths {
42932
42917
  "application/json": components["schemas"]["Error"];
42933
42918
  };
42934
42919
  };
42935
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42936
- 404: {
42937
- headers: {
42938
- [name: string]: unknown;
42939
- };
42940
- content: {
42941
- "application/json": components["schemas"]["Error"];
42942
- };
42943
- };
42944
42920
  /** @description Daily execution limit or rate limit exceeded */
42945
42921
  429: {
42946
42922
  headers: {
@@ -43066,15 +43042,6 @@ interface paths {
43066
43042
  "application/json": components["schemas"]["Error"];
43067
43043
  };
43068
43044
  };
43069
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43070
- 404: {
43071
- headers: {
43072
- [name: string]: unknown;
43073
- };
43074
- content: {
43075
- "application/json": components["schemas"]["Error"];
43076
- };
43077
- };
43078
43045
  /** @description Daily execution limit or rate limit exceeded */
43079
43046
  429: {
43080
43047
  headers: {
@@ -43224,15 +43191,6 @@ interface paths {
43224
43191
  "application/json": components["schemas"]["Error"];
43225
43192
  };
43226
43193
  };
43227
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43228
- 404: {
43229
- headers: {
43230
- [name: string]: unknown;
43231
- };
43232
- content: {
43233
- "application/json": components["schemas"]["Error"];
43234
- };
43235
- };
43236
43194
  /** @description Daily execution limit or rate limit exceeded */
43237
43195
  429: {
43238
43196
  headers: {
@@ -43391,15 +43349,6 @@ interface paths {
43391
43349
  "application/json": components["schemas"]["Error"];
43392
43350
  };
43393
43351
  };
43394
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43395
- 404: {
43396
- headers: {
43397
- [name: string]: unknown;
43398
- };
43399
- content: {
43400
- "application/json": components["schemas"]["Error"];
43401
- };
43402
- };
43403
43352
  /** @description Daily execution limit or rate limit exceeded */
43404
43353
  429: {
43405
43354
  headers: {
@@ -43538,15 +43487,6 @@ interface paths {
43538
43487
  "application/json": components["schemas"]["Error"];
43539
43488
  };
43540
43489
  };
43541
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43542
- 404: {
43543
- headers: {
43544
- [name: string]: unknown;
43545
- };
43546
- content: {
43547
- "application/json": components["schemas"]["Error"];
43548
- };
43549
- };
43550
43490
  /** @description Daily execution limit or rate limit exceeded */
43551
43491
  429: {
43552
43492
  headers: {
@@ -43687,15 +43627,6 @@ interface paths {
43687
43627
  "application/json": components["schemas"]["Error"];
43688
43628
  };
43689
43629
  };
43690
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43691
- 404: {
43692
- headers: {
43693
- [name: string]: unknown;
43694
- };
43695
- content: {
43696
- "application/json": components["schemas"]["Error"];
43697
- };
43698
- };
43699
43630
  /** @description Daily execution limit or rate limit exceeded */
43700
43631
  429: {
43701
43632
  headers: {
@@ -43845,15 +43776,6 @@ interface paths {
43845
43776
  "application/json": components["schemas"]["Error"];
43846
43777
  };
43847
43778
  };
43848
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43849
- 404: {
43850
- headers: {
43851
- [name: string]: unknown;
43852
- };
43853
- content: {
43854
- "application/json": components["schemas"]["Error"];
43855
- };
43856
- };
43857
43779
  /** @description Daily execution limit or rate limit exceeded */
43858
43780
  429: {
43859
43781
  headers: {
@@ -65160,6 +65082,14 @@ export interface AgentRunInsightsResponse {
65160
65082
  /**
65161
65083
  * Agents endpoint handlers
65162
65084
  */
65085
+ /** A `format=bundle` agent runtime export: the zip bytes plus the identity headers the API sends with it. */
65086
+ export interface AgentRuntimeBundle {
65087
+ bytes: Uint8Array;
65088
+ fileName: string;
65089
+ contentHash: string | null;
65090
+ runtimeVersion: string | null;
65091
+ runtimeCommit: string | null;
65092
+ }
65163
65093
  export declare class AgentsEndpoint {
65164
65094
  private client;
65165
65095
  private static readonly AUTO_COMPACT_SUMMARY_PREFIX;
@@ -65199,6 +65129,14 @@ export declare class AgentsEndpoint {
65199
65129
  versionId?: string;
65200
65130
  alias?: string;
65201
65131
  }): Promise<any>;
65132
+ /**
65133
+ * Export an agent as a vendorable zip: `agent.json`, the prebuilt `runtime/` package, `manifest.json`,
65134
+ * and `LICENSE`. Two exports of the same version are byte-identical; `contentHash` pins them.
65135
+ */
65136
+ exportRuntimeBundle(id: string, selector?: {
65137
+ versionId?: string;
65138
+ alias?: string;
65139
+ }): Promise<AgentRuntimeBundle>;
65202
65140
  /**
65203
65141
  * Roll up the agent's most recent runs: per-version and per-tool counts,
65204
65142
  * average tokens and cost, and which attached tools were never called.
package/dist/index.d.ts CHANGED
@@ -5270,6 +5270,8 @@ interface paths {
5270
5270
  versionId?: string;
5271
5271
  /** @description Export the version this release alias currently points at. Mutually exclusive with `versionId`. */
5272
5272
  alias?: string;
5273
+ /** @description `json` (the default) returns the exported definition. `bundle` returns a vendorable `application/zip` with `agent.json` (the same definition), `runtime/` (the prebuilt `@runtypelabs/runtime` ESM package for the platform runtime version, installable as `file:./runtime`), `manifest.json`, and `LICENSE` (the runtime ships under FSL-1.1-ALv2). */
5274
+ format?: "json" | "bundle";
5273
5275
  };
5274
5276
  header?: never;
5275
5277
  path: {
@@ -5279,7 +5281,7 @@ interface paths {
5279
5281
  };
5280
5282
  requestBody?: never;
5281
5283
  responses: {
5282
- /** @description Exported agent definition */
5284
+ /** @description Exported agent definition, or with `format=bundle` a zip archive. Two bundle exports of the same version are byte-identical. The bundle `manifest.json` records the runtime version and source commit, the agent `versionId`/alias, the entrypoints, `hostDependencies`, and `contentHash`: sha256 over the `sha256sum` listing (`<sha256> <path>` lines sorted by path) of every file except `manifest.json`. The same hash is sent in the `X-Runtype-Bundle-Content-Hash` header. */
5283
5285
  200: {
5284
5286
  headers: {
5285
5287
  [name: string]: unknown;
@@ -5310,6 +5312,7 @@ interface paths {
5310
5312
  /** @description Skills bound to the agent, snapshotted with the skill version each resolved to. `executeAgent` loads them with no host wiring. Absent when the agent has no bound skills. */
5311
5313
  skills?: components["schemas"]["RuntimeExportedSkill"][];
5312
5314
  };
5315
+ "application/zip": string;
5313
5316
  };
5314
5317
  };
5315
5318
  /** @description Invalid agent ID, or both `versionId` and `alias` were supplied */
@@ -5366,6 +5369,15 @@ interface paths {
5366
5369
  "application/json": components["schemas"]["Error"];
5367
5370
  };
5368
5371
  };
5372
+ /** @description With `format=bundle`: the prebuilt runtime artifact for this platform version is not available (code `RUNTIME_ARTIFACT_UNAVAILABLE`, with a `reason` such as `artifact_missing`) */
5373
+ 503: {
5374
+ headers: {
5375
+ [name: string]: unknown;
5376
+ };
5377
+ content: {
5378
+ "application/json": components["schemas"]["Error"];
5379
+ };
5380
+ };
5369
5381
  };
5370
5382
  };
5371
5383
  put?: never;
@@ -42445,15 +42457,6 @@ interface paths {
42445
42457
  "application/json": components["schemas"]["Error"];
42446
42458
  };
42447
42459
  };
42448
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42449
- 404: {
42450
- headers: {
42451
- [name: string]: unknown;
42452
- };
42453
- content: {
42454
- "application/json": components["schemas"]["Error"];
42455
- };
42456
- };
42457
42460
  /** @description Daily execution limit or rate limit exceeded */
42458
42461
  429: {
42459
42462
  headers: {
@@ -42631,15 +42634,6 @@ interface paths {
42631
42634
  "application/json": components["schemas"]["RuntimeEmailAdmissionError"];
42632
42635
  };
42633
42636
  };
42634
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42635
- 404: {
42636
- headers: {
42637
- [name: string]: unknown;
42638
- };
42639
- content: {
42640
- "application/json": components["schemas"]["Error"];
42641
- };
42642
- };
42643
42637
  /** @description Daily execution limit or rate limit exceeded */
42644
42638
  429: {
42645
42639
  headers: {
@@ -42790,15 +42784,6 @@ interface paths {
42790
42784
  "application/json": components["schemas"]["Error"];
42791
42785
  };
42792
42786
  };
42793
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42794
- 404: {
42795
- headers: {
42796
- [name: string]: unknown;
42797
- };
42798
- content: {
42799
- "application/json": components["schemas"]["Error"];
42800
- };
42801
- };
42802
42787
  /** @description Daily execution limit or rate limit exceeded */
42803
42788
  429: {
42804
42789
  headers: {
@@ -42932,15 +42917,6 @@ interface paths {
42932
42917
  "application/json": components["schemas"]["Error"];
42933
42918
  };
42934
42919
  };
42935
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
42936
- 404: {
42937
- headers: {
42938
- [name: string]: unknown;
42939
- };
42940
- content: {
42941
- "application/json": components["schemas"]["Error"];
42942
- };
42943
- };
42944
42920
  /** @description Daily execution limit or rate limit exceeded */
42945
42921
  429: {
42946
42922
  headers: {
@@ -43066,15 +43042,6 @@ interface paths {
43066
43042
  "application/json": components["schemas"]["Error"];
43067
43043
  };
43068
43044
  };
43069
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43070
- 404: {
43071
- headers: {
43072
- [name: string]: unknown;
43073
- };
43074
- content: {
43075
- "application/json": components["schemas"]["Error"];
43076
- };
43077
- };
43078
43045
  /** @description Daily execution limit or rate limit exceeded */
43079
43046
  429: {
43080
43047
  headers: {
@@ -43224,15 +43191,6 @@ interface paths {
43224
43191
  "application/json": components["schemas"]["Error"];
43225
43192
  };
43226
43193
  };
43227
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43228
- 404: {
43229
- headers: {
43230
- [name: string]: unknown;
43231
- };
43232
- content: {
43233
- "application/json": components["schemas"]["Error"];
43234
- };
43235
- };
43236
43194
  /** @description Daily execution limit or rate limit exceeded */
43237
43195
  429: {
43238
43196
  headers: {
@@ -43391,15 +43349,6 @@ interface paths {
43391
43349
  "application/json": components["schemas"]["Error"];
43392
43350
  };
43393
43351
  };
43394
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43395
- 404: {
43396
- headers: {
43397
- [name: string]: unknown;
43398
- };
43399
- content: {
43400
- "application/json": components["schemas"]["Error"];
43401
- };
43402
- };
43403
43352
  /** @description Daily execution limit or rate limit exceeded */
43404
43353
  429: {
43405
43354
  headers: {
@@ -43538,15 +43487,6 @@ interface paths {
43538
43487
  "application/json": components["schemas"]["Error"];
43539
43488
  };
43540
43489
  };
43541
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43542
- 404: {
43543
- headers: {
43544
- [name: string]: unknown;
43545
- };
43546
- content: {
43547
- "application/json": components["schemas"]["Error"];
43548
- };
43549
- };
43550
43490
  /** @description Daily execution limit or rate limit exceeded */
43551
43491
  429: {
43552
43492
  headers: {
@@ -43687,15 +43627,6 @@ interface paths {
43687
43627
  "application/json": components["schemas"]["Error"];
43688
43628
  };
43689
43629
  };
43690
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43691
- 404: {
43692
- headers: {
43693
- [name: string]: unknown;
43694
- };
43695
- content: {
43696
- "application/json": components["schemas"]["Error"];
43697
- };
43698
- };
43699
43630
  /** @description Daily execution limit or rate limit exceeded */
43700
43631
  429: {
43701
43632
  headers: {
@@ -43845,15 +43776,6 @@ interface paths {
43845
43776
  "application/json": components["schemas"]["Error"];
43846
43777
  };
43847
43778
  };
43848
- /** @description Endpoint not yet available in this environment (the hosted runtime endpoint family is dark-launched and returns 404 until general availability) */
43849
- 404: {
43850
- headers: {
43851
- [name: string]: unknown;
43852
- };
43853
- content: {
43854
- "application/json": components["schemas"]["Error"];
43855
- };
43856
- };
43857
43779
  /** @description Daily execution limit or rate limit exceeded */
43858
43780
  429: {
43859
43781
  headers: {
@@ -65160,6 +65082,14 @@ export interface AgentRunInsightsResponse {
65160
65082
  /**
65161
65083
  * Agents endpoint handlers
65162
65084
  */
65085
+ /** A `format=bundle` agent runtime export: the zip bytes plus the identity headers the API sends with it. */
65086
+ export interface AgentRuntimeBundle {
65087
+ bytes: Uint8Array;
65088
+ fileName: string;
65089
+ contentHash: string | null;
65090
+ runtimeVersion: string | null;
65091
+ runtimeCommit: string | null;
65092
+ }
65163
65093
  export declare class AgentsEndpoint {
65164
65094
  private client;
65165
65095
  private static readonly AUTO_COMPACT_SUMMARY_PREFIX;
@@ -65199,6 +65129,14 @@ export declare class AgentsEndpoint {
65199
65129
  versionId?: string;
65200
65130
  alias?: string;
65201
65131
  }): Promise<any>;
65132
+ /**
65133
+ * Export an agent as a vendorable zip: `agent.json`, the prebuilt `runtime/` package, `manifest.json`,
65134
+ * and `LICENSE`. Two exports of the same version are byte-identical; `contentHash` pins them.
65135
+ */
65136
+ exportRuntimeBundle(id: string, selector?: {
65137
+ versionId?: string;
65138
+ alias?: string;
65139
+ }): Promise<AgentRuntimeBundle>;
65202
65140
  /**
65203
65141
  * Roll up the agent's most recent runs: per-version and per-tool counts,
65204
65142
  * average tokens and cost, and which attached tools were never called.
package/dist/index.mjs CHANGED
@@ -5742,9 +5742,6 @@ function buildAgentAdmissionHeaders(options) {
5742
5742
  if (options.idempotencyKey) headers["idempotency-key"] = options.idempotencyKey;
5743
5743
  return headers;
5744
5744
  }
5745
- /**
5746
- * Agents endpoint handlers
5747
- */
5748
5745
  var AgentsEndpoint = class AgentsEndpoint {
5749
5746
  constructor(client) {
5750
5747
  this.client = client;
@@ -5791,6 +5788,24 @@ var AgentsEndpoint = class AgentsEndpoint {
5791
5788
  return this.client.get(`/agents/${id}/export-runtime`, selector);
5792
5789
  }
5793
5790
  /**
5791
+ * Export an agent as a vendorable zip: `agent.json`, the prebuilt `runtime/` package, `manifest.json`,
5792
+ * and `LICENSE`. Two exports of the same version are byte-identical; `contentHash` pins them.
5793
+ */
5794
+ async exportRuntimeBundle(id, selector) {
5795
+ const query = new URLSearchParams({ format: "bundle" });
5796
+ if (selector?.versionId !== void 0) query.set("versionId", selector.versionId);
5797
+ if (selector?.alias !== void 0) query.set("alias", selector.alias);
5798
+ const response = await this.client.requestStream(`/agents/${id}/export-runtime?${query}`, { method: "GET" });
5799
+ const disposition = response.headers.get("Content-Disposition") ?? "";
5800
+ return {
5801
+ bytes: new Uint8Array(await response.arrayBuffer()),
5802
+ fileName: /filename="([^"]+)"/.exec(disposition)?.[1] ?? `${id}-runtime-bundle.zip`,
5803
+ contentHash: response.headers.get("X-Runtype-Bundle-Content-Hash"),
5804
+ runtimeVersion: response.headers.get("X-Runtype-Runtime-Version"),
5805
+ runtimeCommit: response.headers.get("X-Runtype-Runtime-Commit")
5806
+ };
5807
+ }
5808
+ /**
5794
5809
  * Roll up the agent's most recent runs: per-version and per-tool counts,
5795
5810
  * average tokens and cost, and which attached tools were never called.
5796
5811
  */
@@ -13482,7 +13497,7 @@ function transformQueryParams(params) {
13482
13497
  }
13483
13498
  //#endregion
13484
13499
  //#region src/version.ts
13485
- const SDK_VERSION = "10.7.0";
13500
+ const SDK_VERSION = "10.8.0";
13486
13501
  /**
13487
13502
  * Canonical client identity the API uses for attribution
13488
13503
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "10.7.0",
3
+ "version": "10.8.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.68.0",
27
+ "@runtypelabs/shared": "3.68.1",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.0",
30
30
  "typescript": "^6.0.3",