@runtypelabs/sdk 11.3.0 → 11.3.1

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
@@ -14610,7 +14610,7 @@ function transformQueryParams(params) {
14610
14610
  }
14611
14611
  //#endregion
14612
14612
  //#region src/version.ts
14613
- const SDK_VERSION = "11.3.0";
14613
+ const SDK_VERSION = "11.3.1";
14614
14614
  /**
14615
14615
  * Canonical client identity the API uses for attribution
14616
14616
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -1122,6 +1122,8 @@ interface paths {
1122
1122
  timeoutMs?: number;
1123
1123
  toolPool: string[];
1124
1124
  };
1125
+ /** @enum {string} */
1126
+ intent?: "mandatory" | "best-effort";
1125
1127
  maxToolCalls?: number;
1126
1128
  mcpServers?: {
1127
1129
  allowedTools?: string[];
@@ -1675,6 +1677,8 @@ interface paths {
1675
1677
  timeoutMs?: number;
1676
1678
  toolPool: string[];
1677
1679
  };
1680
+ /** @enum {string} */
1681
+ intent?: "mandatory" | "best-effort";
1678
1682
  maxToolCalls?: number;
1679
1683
  mcpServers?: {
1680
1684
  allowedTools?: string[];
@@ -2518,6 +2522,8 @@ interface paths {
2518
2522
  timeoutMs?: number;
2519
2523
  toolPool: string[];
2520
2524
  } | null;
2525
+ /** @enum {string|null} */
2526
+ intent?: "mandatory" | "best-effort" | null;
2521
2527
  maxToolCalls?: number;
2522
2528
  mcpServers?: {
2523
2529
  allowedTools?: string[];
@@ -14158,6 +14164,8 @@ interface paths {
14158
14164
  args?: unknown;
14159
14165
  at: string;
14160
14166
  callId: string;
14167
+ /** @enum {boolean} */
14168
+ scriptRead?: true;
14161
14169
  seq: number;
14162
14170
  tool: string;
14163
14171
  /** @enum {string} */
@@ -14174,6 +14182,8 @@ interface paths {
14174
14182
  name?: string;
14175
14183
  };
14176
14184
  ok: boolean;
14185
+ /** @enum {boolean} */
14186
+ scriptRead?: true;
14177
14187
  seq: number;
14178
14188
  summary: string;
14179
14189
  tool: string;
@@ -14479,7 +14489,7 @@ interface paths {
14479
14489
  };
14480
14490
  /**
14481
14491
  * Stream a delegate task
14482
- * @description Unified execution Server-Sent Events, replayed then tailed until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>` or Last-Event-ID. Stream cursors differ from JSON journal cursors.
14492
+ * @description Unified execution Server-Sent Events, replayed then tailed until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>` or Last-Event-ID. Stream cursors differ from JSON journal cursors. Reads a Code Mode script makes are not streamed; the JSON journal keeps them as events marked `scriptRead: true`.
14483
14493
  */
14484
14494
  get: {
14485
14495
  parameters: {
@@ -15472,6 +15482,8 @@ interface paths {
15472
15482
  timeoutMs?: number;
15473
15483
  toolPool: string[];
15474
15484
  };
15485
+ /** @enum {string} */
15486
+ intent?: "mandatory" | "best-effort";
15475
15487
  maxToolCalls?: number;
15476
15488
  mcpServers?: unknown[];
15477
15489
  perToolLimits?: {
@@ -15943,6 +15955,8 @@ interface paths {
15943
15955
  timeoutMs?: number;
15944
15956
  toolPool: string[];
15945
15957
  };
15958
+ /** @enum {string} */
15959
+ intent?: "mandatory" | "best-effort";
15946
15960
  maxToolCalls?: number;
15947
15961
  mcpServers?: unknown[];
15948
15962
  perToolLimits?: {
@@ -21076,6 +21090,8 @@ interface paths {
21076
21090
  suggestion?: string;
21077
21091
  }[];
21078
21092
  error: string;
21093
+ /** @description On `insufficient_scope`: every API key scope this request needs. */
21094
+ requiredScopes?: string[];
21079
21095
  };
21080
21096
  };
21081
21097
  };
@@ -58305,6 +58321,8 @@ interface components {
58305
58321
  timeoutMs?: number;
58306
58322
  toolPool: string[];
58307
58323
  };
58324
+ /** @enum {string} */
58325
+ intent?: "mandatory" | "best-effort";
58308
58326
  maxToolCalls?: number;
58309
58327
  mcpServers?: {
58310
58328
  allowedTools?: string[];
@@ -59139,6 +59157,8 @@ interface components {
59139
59157
  timeoutMs?: number;
59140
59158
  toolPool: string[];
59141
59159
  } | null;
59160
+ /** @enum {string|null} */
59161
+ intent?: "mandatory" | "best-effort" | null;
59142
59162
  maxToolCalls?: number;
59143
59163
  mcpServers?: {
59144
59164
  allowedTools?: string[];
@@ -59612,6 +59632,8 @@ interface components {
59612
59632
  notes?: string;
59613
59633
  };
59614
59634
  Error: {
59635
+ /** @description Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs. */
59636
+ code?: string;
59615
59637
  details?: {
59616
59638
  /** @description Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM). */
59617
59639
  code?: string;
@@ -59622,6 +59644,8 @@ interface components {
59622
59644
  suggestion?: string;
59623
59645
  }[];
59624
59646
  error: string;
59647
+ /** @description On `insufficient_scope`: every API key scope this request needs. */
59648
+ requiredScopes?: string[];
59625
59649
  };
59626
59650
  /** @description Version selector for an Agent-target suite. Supply at most one of alias or versionId; omit it to run the saved configuration. */
59627
59651
  EvalAgentSelector: {
@@ -73120,6 +73144,8 @@ interface AgentDefinitionConfig {
73120
73144
  threshold?: number;
73121
73145
  alwaysLoaded?: string[];
73122
73146
  };
73147
+ /** `mandatory`: a non-idempotent tool runs only after its intent is recorded (default `best-effort`). */
73148
+ intent?: 'mandatory' | 'best-effort';
73123
73149
  };
73124
73150
  artifacts?: {
73125
73151
  enabled: true;
package/dist/index.d.ts CHANGED
@@ -1122,6 +1122,8 @@ interface paths {
1122
1122
  timeoutMs?: number;
1123
1123
  toolPool: string[];
1124
1124
  };
1125
+ /** @enum {string} */
1126
+ intent?: "mandatory" | "best-effort";
1125
1127
  maxToolCalls?: number;
1126
1128
  mcpServers?: {
1127
1129
  allowedTools?: string[];
@@ -1675,6 +1677,8 @@ interface paths {
1675
1677
  timeoutMs?: number;
1676
1678
  toolPool: string[];
1677
1679
  };
1680
+ /** @enum {string} */
1681
+ intent?: "mandatory" | "best-effort";
1678
1682
  maxToolCalls?: number;
1679
1683
  mcpServers?: {
1680
1684
  allowedTools?: string[];
@@ -2518,6 +2522,8 @@ interface paths {
2518
2522
  timeoutMs?: number;
2519
2523
  toolPool: string[];
2520
2524
  } | null;
2525
+ /** @enum {string|null} */
2526
+ intent?: "mandatory" | "best-effort" | null;
2521
2527
  maxToolCalls?: number;
2522
2528
  mcpServers?: {
2523
2529
  allowedTools?: string[];
@@ -14158,6 +14164,8 @@ interface paths {
14158
14164
  args?: unknown;
14159
14165
  at: string;
14160
14166
  callId: string;
14167
+ /** @enum {boolean} */
14168
+ scriptRead?: true;
14161
14169
  seq: number;
14162
14170
  tool: string;
14163
14171
  /** @enum {string} */
@@ -14174,6 +14182,8 @@ interface paths {
14174
14182
  name?: string;
14175
14183
  };
14176
14184
  ok: boolean;
14185
+ /** @enum {boolean} */
14186
+ scriptRead?: true;
14177
14187
  seq: number;
14178
14188
  summary: string;
14179
14189
  tool: string;
@@ -14479,7 +14489,7 @@ interface paths {
14479
14489
  };
14480
14490
  /**
14481
14491
  * Stream a delegate task
14482
- * @description Unified execution Server-Sent Events, replayed then tailed until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>` or Last-Event-ID. Stream cursors differ from JSON journal cursors.
14492
+ * @description Unified execution Server-Sent Events, replayed then tailed until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>` or Last-Event-ID. Stream cursors differ from JSON journal cursors. Reads a Code Mode script makes are not streamed; the JSON journal keeps them as events marked `scriptRead: true`.
14483
14493
  */
14484
14494
  get: {
14485
14495
  parameters: {
@@ -15472,6 +15482,8 @@ interface paths {
15472
15482
  timeoutMs?: number;
15473
15483
  toolPool: string[];
15474
15484
  };
15485
+ /** @enum {string} */
15486
+ intent?: "mandatory" | "best-effort";
15475
15487
  maxToolCalls?: number;
15476
15488
  mcpServers?: unknown[];
15477
15489
  perToolLimits?: {
@@ -15943,6 +15955,8 @@ interface paths {
15943
15955
  timeoutMs?: number;
15944
15956
  toolPool: string[];
15945
15957
  };
15958
+ /** @enum {string} */
15959
+ intent?: "mandatory" | "best-effort";
15946
15960
  maxToolCalls?: number;
15947
15961
  mcpServers?: unknown[];
15948
15962
  perToolLimits?: {
@@ -21076,6 +21090,8 @@ interface paths {
21076
21090
  suggestion?: string;
21077
21091
  }[];
21078
21092
  error: string;
21093
+ /** @description On `insufficient_scope`: every API key scope this request needs. */
21094
+ requiredScopes?: string[];
21079
21095
  };
21080
21096
  };
21081
21097
  };
@@ -58305,6 +58321,8 @@ interface components {
58305
58321
  timeoutMs?: number;
58306
58322
  toolPool: string[];
58307
58323
  };
58324
+ /** @enum {string} */
58325
+ intent?: "mandatory" | "best-effort";
58308
58326
  maxToolCalls?: number;
58309
58327
  mcpServers?: {
58310
58328
  allowedTools?: string[];
@@ -59139,6 +59157,8 @@ interface components {
59139
59157
  timeoutMs?: number;
59140
59158
  toolPool: string[];
59141
59159
  } | null;
59160
+ /** @enum {string|null} */
59161
+ intent?: "mandatory" | "best-effort" | null;
59142
59162
  maxToolCalls?: number;
59143
59163
  mcpServers?: {
59144
59164
  allowedTools?: string[];
@@ -59612,6 +59632,8 @@ interface components {
59612
59632
  notes?: string;
59613
59633
  };
59614
59634
  Error: {
59635
+ /** @description Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs. */
59636
+ code?: string;
59615
59637
  details?: {
59616
59638
  /** @description Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM). */
59617
59639
  code?: string;
@@ -59622,6 +59644,8 @@ interface components {
59622
59644
  suggestion?: string;
59623
59645
  }[];
59624
59646
  error: string;
59647
+ /** @description On `insufficient_scope`: every API key scope this request needs. */
59648
+ requiredScopes?: string[];
59625
59649
  };
59626
59650
  /** @description Version selector for an Agent-target suite. Supply at most one of alias or versionId; omit it to run the saved configuration. */
59627
59651
  EvalAgentSelector: {
@@ -73120,6 +73144,8 @@ interface AgentDefinitionConfig {
73120
73144
  threshold?: number;
73121
73145
  alwaysLoaded?: string[];
73122
73146
  };
73147
+ /** `mandatory`: a non-idempotent tool runs only after its intent is recorded (default `best-effort`). */
73148
+ intent?: 'mandatory' | 'best-effort';
73123
73149
  };
73124
73150
  artifacts?: {
73125
73151
  enabled: true;
package/dist/index.mjs CHANGED
@@ -14609,7 +14609,7 @@ function transformQueryParams(params) {
14609
14609
  }
14610
14610
  //#endregion
14611
14611
  //#region src/version.ts
14612
- const SDK_VERSION = "11.3.0";
14612
+ const SDK_VERSION = "11.3.1";
14613
14613
  /**
14614
14614
  * Canonical client identity the API uses for attribution
14615
14615
  * (`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.3.0",
3
+ "version": "11.3.1",
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.89.0",
27
+ "@runtypelabs/shared": "3.90.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.0",
30
30
  "typescript": "^6.0.3",