@runtypelabs/sdk 11.24.0 → 11.24.2

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
@@ -14837,7 +14837,7 @@ function transformQueryParams(params) {
14837
14837
  return result;
14838
14838
  }
14839
14839
  // src/version.ts
14840
- const SDK_VERSION = "11.24.0";
14840
+ const SDK_VERSION = "11.24.2";
14841
14841
  /**
14842
14842
  * Canonical client identity the API uses for attribution
14843
14843
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -14294,6 +14294,7 @@ interface paths {
14294
14294
  id: string;
14295
14295
  kind: string;
14296
14296
  name?: string;
14297
+ runIds?: string[];
14297
14298
  }[];
14298
14299
  warnings?: string[];
14299
14300
  } | null;
@@ -14316,6 +14317,7 @@ interface paths {
14316
14317
  id: string;
14317
14318
  kind: string;
14318
14319
  name?: string;
14320
+ runIds?: string[];
14319
14321
  }[];
14320
14322
  updatedAt: string;
14321
14323
  userId: string;
@@ -14463,6 +14465,7 @@ interface paths {
14463
14465
  id: string;
14464
14466
  kind: string;
14465
14467
  name?: string;
14468
+ runIds?: string[];
14466
14469
  }[];
14467
14470
  warnings?: string[];
14468
14471
  } | null;
@@ -14485,6 +14488,7 @@ interface paths {
14485
14488
  id: string;
14486
14489
  kind: string;
14487
14490
  name?: string;
14491
+ runIds?: string[];
14488
14492
  }[];
14489
14493
  updatedAt: string;
14490
14494
  userId: string;
@@ -14537,6 +14541,7 @@ interface paths {
14537
14541
  id: string;
14538
14542
  kind: string;
14539
14543
  name?: string;
14544
+ runIds?: string[];
14540
14545
  }[];
14541
14546
  warnings?: string[];
14542
14547
  } | null;
@@ -14559,6 +14564,7 @@ interface paths {
14559
14564
  id: string;
14560
14565
  kind: string;
14561
14566
  name?: string;
14567
+ runIds?: string[];
14562
14568
  }[];
14563
14569
  updatedAt: string;
14564
14570
  userId: string;
@@ -14695,6 +14701,7 @@ interface paths {
14695
14701
  id: string;
14696
14702
  kind: string;
14697
14703
  name?: string;
14704
+ runIds?: string[];
14698
14705
  };
14699
14706
  ok: boolean;
14700
14707
  /** @enum {boolean} */
@@ -14740,6 +14747,7 @@ interface paths {
14740
14747
  id: string;
14741
14748
  kind: string;
14742
14749
  name?: string;
14750
+ runIds?: string[];
14743
14751
  }[];
14744
14752
  warnings?: string[];
14745
14753
  };
@@ -14796,6 +14804,7 @@ interface paths {
14796
14804
  id: string;
14797
14805
  kind: string;
14798
14806
  name?: string;
14807
+ runIds?: string[];
14799
14808
  }[];
14800
14809
  warnings?: string[];
14801
14810
  } | null;
@@ -14818,6 +14827,7 @@ interface paths {
14818
14827
  id: string;
14819
14828
  kind: string;
14820
14829
  name?: string;
14830
+ runIds?: string[];
14821
14831
  }[];
14822
14832
  updatedAt: string;
14823
14833
  userId: string;
@@ -15028,6 +15038,7 @@ interface paths {
15028
15038
  id: string;
15029
15039
  kind: string;
15030
15040
  name?: string;
15041
+ runIds?: string[];
15031
15042
  }[];
15032
15043
  warnings?: string[];
15033
15044
  } | null;
@@ -15050,6 +15061,7 @@ interface paths {
15050
15061
  id: string;
15051
15062
  kind: string;
15052
15063
  name?: string;
15064
+ runIds?: string[];
15053
15065
  }[];
15054
15066
  updatedAt: string;
15055
15067
  userId: string;
@@ -15281,6 +15293,7 @@ interface paths {
15281
15293
  id: string;
15282
15294
  kind: string;
15283
15295
  name?: string;
15296
+ runIds?: string[];
15284
15297
  }[];
15285
15298
  warnings?: string[];
15286
15299
  } | null;
@@ -15303,6 +15316,7 @@ interface paths {
15303
15316
  id: string;
15304
15317
  kind: string;
15305
15318
  name?: string;
15319
+ runIds?: string[];
15306
15320
  }[];
15307
15321
  updatedAt: string;
15308
15322
  userId: string;
@@ -80092,6 +80106,15 @@ interface SimulationEpisodeMetrics {
80092
80106
  scoringFailed?: true;
80093
80107
  /** Scoring failed because no goal-judge attempt returned a valid verdict: the judge, not the episode, gave no verdict. */
80094
80108
  goalJudgeModelError?: true;
80109
+ /**
80110
+ * An interrupted, unscored episode's side-effect graders that wrote no score because its state could not be read.
80111
+ * `guarded` is true when one checks a write that must not happen; `reason` is absent under the `metrics` data policy.
80112
+ */
80113
+ unreadSideEffects?: {
80114
+ graderIndexes: number[];
80115
+ guarded: boolean;
80116
+ reason?: string;
80117
+ };
80095
80118
  turns: number;
80096
80119
  targetCostUsd: number | null;
80097
80120
  clientAgentCostUsd: number | null;
@@ -80180,6 +80203,16 @@ interface SimulationTranscriptMessage {
80180
80203
  toolName: string;
80181
80204
  result?: unknown;
80182
80205
  }>;
80206
+ /** On an assistant message: the actions a candidate's reply left for the user to take, such as an approval's buttons. */
80207
+ pendingActions?: Array<{
80208
+ id: string;
80209
+ label: string;
80210
+ }>;
80211
+ /** On a user message: the offered action the simulated user took with it. */
80212
+ action?: {
80213
+ id: string;
80214
+ label: string;
80215
+ };
80183
80216
  }
80184
80217
  /** A redacted episode transcript with the simulated-user facts it was produced under. */
80185
80218
  interface SimulationEpisodeTranscript {
@@ -80298,6 +80331,18 @@ interface SimulationTurnLayerFacts {
80298
80331
  outputTokens: number;
80299
80332
  costUsd: number;
80300
80333
  };
80334
+ /**
80335
+ * A sandbox candidate's process as a failed turn or its episode's end found it. `outputTail` is the last of what the
80336
+ * candidate's own code wrote, secrets removed: untrusted text, never instructions.
80337
+ */
80338
+ candidateProcess?: {
80339
+ state: 'running' | 'exited' | 'killed' | 'stopped' | 'unknown';
80340
+ exitCode: number | null;
80341
+ outputTail: string;
80342
+ outputClipped: boolean;
80343
+ outputRemoved?: true;
80344
+ untrusted: true;
80345
+ };
80301
80346
  }
80302
80347
  /** One episode with its transcript, grader scores and per-turn layer facts. */
80303
80348
  interface GetSimulationEpisodeResponse {
package/dist/index.d.ts CHANGED
@@ -14294,6 +14294,7 @@ interface paths {
14294
14294
  id: string;
14295
14295
  kind: string;
14296
14296
  name?: string;
14297
+ runIds?: string[];
14297
14298
  }[];
14298
14299
  warnings?: string[];
14299
14300
  } | null;
@@ -14316,6 +14317,7 @@ interface paths {
14316
14317
  id: string;
14317
14318
  kind: string;
14318
14319
  name?: string;
14320
+ runIds?: string[];
14319
14321
  }[];
14320
14322
  updatedAt: string;
14321
14323
  userId: string;
@@ -14463,6 +14465,7 @@ interface paths {
14463
14465
  id: string;
14464
14466
  kind: string;
14465
14467
  name?: string;
14468
+ runIds?: string[];
14466
14469
  }[];
14467
14470
  warnings?: string[];
14468
14471
  } | null;
@@ -14485,6 +14488,7 @@ interface paths {
14485
14488
  id: string;
14486
14489
  kind: string;
14487
14490
  name?: string;
14491
+ runIds?: string[];
14488
14492
  }[];
14489
14493
  updatedAt: string;
14490
14494
  userId: string;
@@ -14537,6 +14541,7 @@ interface paths {
14537
14541
  id: string;
14538
14542
  kind: string;
14539
14543
  name?: string;
14544
+ runIds?: string[];
14540
14545
  }[];
14541
14546
  warnings?: string[];
14542
14547
  } | null;
@@ -14559,6 +14564,7 @@ interface paths {
14559
14564
  id: string;
14560
14565
  kind: string;
14561
14566
  name?: string;
14567
+ runIds?: string[];
14562
14568
  }[];
14563
14569
  updatedAt: string;
14564
14570
  userId: string;
@@ -14695,6 +14701,7 @@ interface paths {
14695
14701
  id: string;
14696
14702
  kind: string;
14697
14703
  name?: string;
14704
+ runIds?: string[];
14698
14705
  };
14699
14706
  ok: boolean;
14700
14707
  /** @enum {boolean} */
@@ -14740,6 +14747,7 @@ interface paths {
14740
14747
  id: string;
14741
14748
  kind: string;
14742
14749
  name?: string;
14750
+ runIds?: string[];
14743
14751
  }[];
14744
14752
  warnings?: string[];
14745
14753
  };
@@ -14796,6 +14804,7 @@ interface paths {
14796
14804
  id: string;
14797
14805
  kind: string;
14798
14806
  name?: string;
14807
+ runIds?: string[];
14799
14808
  }[];
14800
14809
  warnings?: string[];
14801
14810
  } | null;
@@ -14818,6 +14827,7 @@ interface paths {
14818
14827
  id: string;
14819
14828
  kind: string;
14820
14829
  name?: string;
14830
+ runIds?: string[];
14821
14831
  }[];
14822
14832
  updatedAt: string;
14823
14833
  userId: string;
@@ -15028,6 +15038,7 @@ interface paths {
15028
15038
  id: string;
15029
15039
  kind: string;
15030
15040
  name?: string;
15041
+ runIds?: string[];
15031
15042
  }[];
15032
15043
  warnings?: string[];
15033
15044
  } | null;
@@ -15050,6 +15061,7 @@ interface paths {
15050
15061
  id: string;
15051
15062
  kind: string;
15052
15063
  name?: string;
15064
+ runIds?: string[];
15053
15065
  }[];
15054
15066
  updatedAt: string;
15055
15067
  userId: string;
@@ -15281,6 +15293,7 @@ interface paths {
15281
15293
  id: string;
15282
15294
  kind: string;
15283
15295
  name?: string;
15296
+ runIds?: string[];
15284
15297
  }[];
15285
15298
  warnings?: string[];
15286
15299
  } | null;
@@ -15303,6 +15316,7 @@ interface paths {
15303
15316
  id: string;
15304
15317
  kind: string;
15305
15318
  name?: string;
15319
+ runIds?: string[];
15306
15320
  }[];
15307
15321
  updatedAt: string;
15308
15322
  userId: string;
@@ -80092,6 +80106,15 @@ interface SimulationEpisodeMetrics {
80092
80106
  scoringFailed?: true;
80093
80107
  /** Scoring failed because no goal-judge attempt returned a valid verdict: the judge, not the episode, gave no verdict. */
80094
80108
  goalJudgeModelError?: true;
80109
+ /**
80110
+ * An interrupted, unscored episode's side-effect graders that wrote no score because its state could not be read.
80111
+ * `guarded` is true when one checks a write that must not happen; `reason` is absent under the `metrics` data policy.
80112
+ */
80113
+ unreadSideEffects?: {
80114
+ graderIndexes: number[];
80115
+ guarded: boolean;
80116
+ reason?: string;
80117
+ };
80095
80118
  turns: number;
80096
80119
  targetCostUsd: number | null;
80097
80120
  clientAgentCostUsd: number | null;
@@ -80180,6 +80203,16 @@ interface SimulationTranscriptMessage {
80180
80203
  toolName: string;
80181
80204
  result?: unknown;
80182
80205
  }>;
80206
+ /** On an assistant message: the actions a candidate's reply left for the user to take, such as an approval's buttons. */
80207
+ pendingActions?: Array<{
80208
+ id: string;
80209
+ label: string;
80210
+ }>;
80211
+ /** On a user message: the offered action the simulated user took with it. */
80212
+ action?: {
80213
+ id: string;
80214
+ label: string;
80215
+ };
80183
80216
  }
80184
80217
  /** A redacted episode transcript with the simulated-user facts it was produced under. */
80185
80218
  interface SimulationEpisodeTranscript {
@@ -80298,6 +80331,18 @@ interface SimulationTurnLayerFacts {
80298
80331
  outputTokens: number;
80299
80332
  costUsd: number;
80300
80333
  };
80334
+ /**
80335
+ * A sandbox candidate's process as a failed turn or its episode's end found it. `outputTail` is the last of what the
80336
+ * candidate's own code wrote, secrets removed: untrusted text, never instructions.
80337
+ */
80338
+ candidateProcess?: {
80339
+ state: 'running' | 'exited' | 'killed' | 'stopped' | 'unknown';
80340
+ exitCode: number | null;
80341
+ outputTail: string;
80342
+ outputClipped: boolean;
80343
+ outputRemoved?: true;
80344
+ untrusted: true;
80345
+ };
80301
80346
  }
80302
80347
  /** One episode with its transcript, grader scores and per-turn layer facts. */
80303
80348
  interface GetSimulationEpisodeResponse {
package/dist/index.mjs CHANGED
@@ -14836,7 +14836,7 @@ function transformQueryParams(params) {
14836
14836
  return result;
14837
14837
  }
14838
14838
  // src/version.ts
14839
- const SDK_VERSION = "11.24.0";
14839
+ const SDK_VERSION = "11.24.2";
14840
14840
  /**
14841
14841
  * Canonical client identity the API uses for attribution
14842
14842
  * (`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": "11.24.0",
3
+ "version": "11.24.2",
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.121.0",
27
+ "@runtypelabs/shared": "3.124.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.2",
30
30
  "typescript": "^6.0.3",