@runtypelabs/sdk 11.8.1 → 11.9.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 +57 -113
- package/dist/index.d.cts +223 -136
- package/dist/index.d.ts +223 -136
- package/dist/index.mjs +57 -113
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/generated/openapi-types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* This file was auto-generated by openapi-typescript.
|
|
4
3
|
* Do not make direct changes to the file.
|
|
@@ -13825,6 +13824,8 @@ interface paths {
|
|
|
13825
13824
|
lastEventSeq: number;
|
|
13826
13825
|
modelRoundCount: number;
|
|
13827
13826
|
organizationId: string;
|
|
13827
|
+
/** @enum {string} */
|
|
13828
|
+
priority?: "standard" | "fast";
|
|
13828
13829
|
question: string | null;
|
|
13829
13830
|
result: {
|
|
13830
13831
|
links: {
|
|
@@ -13933,6 +13934,11 @@ interface paths {
|
|
|
13933
13934
|
context?: unknown;
|
|
13934
13935
|
instruction: string;
|
|
13935
13936
|
maxToolCalls?: number;
|
|
13937
|
+
/**
|
|
13938
|
+
* @description Execution priority. Defaults to standard; fast uses DeepSeek V4.1 Flash Fast through Vercel. Applies when creating a task.
|
|
13939
|
+
* @enum {string}
|
|
13940
|
+
*/
|
|
13941
|
+
priority?: "standard" | "fast";
|
|
13936
13942
|
waitSeconds?: number;
|
|
13937
13943
|
};
|
|
13938
13944
|
};
|
|
@@ -13959,6 +13965,8 @@ interface paths {
|
|
|
13959
13965
|
lastEventSeq: number;
|
|
13960
13966
|
modelRoundCount: number;
|
|
13961
13967
|
organizationId: string;
|
|
13968
|
+
/** @enum {string} */
|
|
13969
|
+
priority?: "standard" | "fast";
|
|
13962
13970
|
question: string | null;
|
|
13963
13971
|
result: {
|
|
13964
13972
|
links: {
|
|
@@ -14018,6 +14026,8 @@ interface paths {
|
|
|
14018
14026
|
lastEventSeq: number;
|
|
14019
14027
|
modelRoundCount: number;
|
|
14020
14028
|
organizationId: string;
|
|
14029
|
+
/** @enum {string} */
|
|
14030
|
+
priority?: "standard" | "fast";
|
|
14021
14031
|
question: string | null;
|
|
14022
14032
|
result: {
|
|
14023
14033
|
links: {
|
|
@@ -14262,6 +14272,8 @@ interface paths {
|
|
|
14262
14272
|
lastEventSeq: number;
|
|
14263
14273
|
modelRoundCount: number;
|
|
14264
14274
|
organizationId: string;
|
|
14275
|
+
/** @enum {string} */
|
|
14276
|
+
priority?: "standard" | "fast";
|
|
14265
14277
|
question: string | null;
|
|
14266
14278
|
result: {
|
|
14267
14279
|
links: {
|
|
@@ -14394,6 +14406,8 @@ interface paths {
|
|
|
14394
14406
|
lastEventSeq: number;
|
|
14395
14407
|
modelRoundCount: number;
|
|
14396
14408
|
organizationId: string;
|
|
14409
|
+
/** @enum {string} */
|
|
14410
|
+
priority?: "standard" | "fast";
|
|
14397
14411
|
question: string | null;
|
|
14398
14412
|
result: {
|
|
14399
14413
|
links: {
|
|
@@ -14632,6 +14646,8 @@ interface paths {
|
|
|
14632
14646
|
lastEventSeq: number;
|
|
14633
14647
|
modelRoundCount: number;
|
|
14634
14648
|
organizationId: string;
|
|
14649
|
+
/** @enum {string} */
|
|
14650
|
+
priority?: "standard" | "fast";
|
|
14635
14651
|
question: string | null;
|
|
14636
14652
|
result: {
|
|
14637
14653
|
links: {
|
|
@@ -18449,6 +18465,88 @@ interface paths {
|
|
|
18449
18465
|
patch?: never;
|
|
18450
18466
|
trace?: never;
|
|
18451
18467
|
};
|
|
18468
|
+
"/v1/eval/proposals": {
|
|
18469
|
+
parameters: {
|
|
18470
|
+
query?: never;
|
|
18471
|
+
header?: never;
|
|
18472
|
+
path?: never;
|
|
18473
|
+
cookie?: never;
|
|
18474
|
+
};
|
|
18475
|
+
/**
|
|
18476
|
+
* List eval case proposals for several suites
|
|
18477
|
+
* @description The review queue of several suites in one read: for each named suite the caller owns, its newest proposals and its total, the page `GET /suites/{id}/proposals` answers at offset 0. A suite the caller does not own, or that does not exist, is left out.
|
|
18478
|
+
*/
|
|
18479
|
+
get: {
|
|
18480
|
+
parameters: {
|
|
18481
|
+
query: {
|
|
18482
|
+
/** @description Comma-separated eval suite ids, at most 50. */
|
|
18483
|
+
suiteIds: string;
|
|
18484
|
+
/** @description Filter by status. Omit for all; the queue UI uses "proposed". */
|
|
18485
|
+
status?: "proposed" | "accepted" | "edited_accepted" | "rejected";
|
|
18486
|
+
/** @description Proposals per suite (default 20, max 50) */
|
|
18487
|
+
limit?: string;
|
|
18488
|
+
};
|
|
18489
|
+
header?: never;
|
|
18490
|
+
path?: never;
|
|
18491
|
+
cookie?: never;
|
|
18492
|
+
};
|
|
18493
|
+
requestBody?: never;
|
|
18494
|
+
responses: {
|
|
18495
|
+
/** @description Proposals returned, one entry per owned suite in the order named */
|
|
18496
|
+
200: {
|
|
18497
|
+
headers: {
|
|
18498
|
+
[name: string]: unknown;
|
|
18499
|
+
};
|
|
18500
|
+
content: {
|
|
18501
|
+
"application/json": components["schemas"]["SuiteEvalCaseProposalsList"];
|
|
18502
|
+
};
|
|
18503
|
+
};
|
|
18504
|
+
/** @description Invalid request */
|
|
18505
|
+
400: {
|
|
18506
|
+
headers: {
|
|
18507
|
+
[name: string]: unknown;
|
|
18508
|
+
};
|
|
18509
|
+
content: {
|
|
18510
|
+
"application/json": components["schemas"]["Error"];
|
|
18511
|
+
};
|
|
18512
|
+
};
|
|
18513
|
+
/** @description Unauthorized */
|
|
18514
|
+
401: {
|
|
18515
|
+
headers: {
|
|
18516
|
+
[name: string]: unknown;
|
|
18517
|
+
};
|
|
18518
|
+
content: {
|
|
18519
|
+
"application/json": components["schemas"]["Error"];
|
|
18520
|
+
};
|
|
18521
|
+
};
|
|
18522
|
+
/** @description Forbidden */
|
|
18523
|
+
403: {
|
|
18524
|
+
headers: {
|
|
18525
|
+
[name: string]: unknown;
|
|
18526
|
+
};
|
|
18527
|
+
content: {
|
|
18528
|
+
"application/json": components["schemas"]["Error"];
|
|
18529
|
+
};
|
|
18530
|
+
};
|
|
18531
|
+
/** @description Internal server error */
|
|
18532
|
+
500: {
|
|
18533
|
+
headers: {
|
|
18534
|
+
[name: string]: unknown;
|
|
18535
|
+
};
|
|
18536
|
+
content: {
|
|
18537
|
+
"application/json": components["schemas"]["Error"];
|
|
18538
|
+
};
|
|
18539
|
+
};
|
|
18540
|
+
};
|
|
18541
|
+
};
|
|
18542
|
+
put?: never;
|
|
18543
|
+
post?: never;
|
|
18544
|
+
delete?: never;
|
|
18545
|
+
options?: never;
|
|
18546
|
+
head?: never;
|
|
18547
|
+
patch?: never;
|
|
18548
|
+
trace?: never;
|
|
18549
|
+
};
|
|
18452
18550
|
"/v1/eval/pull": {
|
|
18453
18551
|
parameters: {
|
|
18454
18552
|
query?: never;
|
|
@@ -45881,6 +45979,108 @@ interface paths {
|
|
|
45881
45979
|
patch?: never;
|
|
45882
45980
|
trace?: never;
|
|
45883
45981
|
};
|
|
45982
|
+
"/v1/runs/stats/products": {
|
|
45983
|
+
parameters: {
|
|
45984
|
+
query?: never;
|
|
45985
|
+
header?: never;
|
|
45986
|
+
path?: never;
|
|
45987
|
+
cookie?: never;
|
|
45988
|
+
};
|
|
45989
|
+
/**
|
|
45990
|
+
* Count runs per product
|
|
45991
|
+
* @description Total and failed runs for several products in one read, over the same window and `traffic` filter as `GET /v1/runs/stats`. A product counts its agent capabilities' runs by `agentId` and its other capabilities' runs by `flowId`, each family read the way `/v1/runs/stats` reads it, and the two summed. Name at most 100 products; one the caller does not own is left out, as is one that does not exist. An API key needs PRODUCTS:READ, plus AGENTS:READ or FLOWS:READ for each family the named products run.
|
|
45992
|
+
*/
|
|
45993
|
+
get: {
|
|
45994
|
+
parameters: {
|
|
45995
|
+
query: {
|
|
45996
|
+
/** @description live keeps runs real users and integrations started; test keeps runs started from the dashboard (Test, step tests, Ask); eval keeps eval-batch runs; sim keeps simulation turns; all, or omitted, keeps every run. A simulation turn is sim even when a schedule started it, a schedule run is live, and an eval batch run is eval whoever started it. */
|
|
45997
|
+
traffic?: "live" | "test" | "eval" | "sim" | "all";
|
|
45998
|
+
/** @description Window start (ISO 8601). Defaults to 24 hours ago. */
|
|
45999
|
+
from?: string;
|
|
46000
|
+
/** @description Window end (ISO 8601). Defaults to now. */
|
|
46001
|
+
to?: string;
|
|
46002
|
+
/** @description Comma-separated product ids, at most 100. A product the caller does not own is left out of the answer. */
|
|
46003
|
+
productIds: string;
|
|
46004
|
+
};
|
|
46005
|
+
header?: never;
|
|
46006
|
+
path?: never;
|
|
46007
|
+
cookie?: never;
|
|
46008
|
+
};
|
|
46009
|
+
requestBody?: never;
|
|
46010
|
+
responses: {
|
|
46011
|
+
/** @description Run counts per product returned */
|
|
46012
|
+
200: {
|
|
46013
|
+
headers: {
|
|
46014
|
+
[name: string]: unknown;
|
|
46015
|
+
};
|
|
46016
|
+
content: {
|
|
46017
|
+
"application/json": {
|
|
46018
|
+
data: components["schemas"]["RunProductStats"];
|
|
46019
|
+
/** @description The started_at window the query resolved to, after defaults. */
|
|
46020
|
+
window: {
|
|
46021
|
+
from: string;
|
|
46022
|
+
to: string;
|
|
46023
|
+
};
|
|
46024
|
+
};
|
|
46025
|
+
};
|
|
46026
|
+
};
|
|
46027
|
+
/** @description Invalid request, including a filter whose value could not be read */
|
|
46028
|
+
400: {
|
|
46029
|
+
headers: {
|
|
46030
|
+
[name: string]: unknown;
|
|
46031
|
+
};
|
|
46032
|
+
content: {
|
|
46033
|
+
"application/json": components["schemas"]["Error"];
|
|
46034
|
+
};
|
|
46035
|
+
};
|
|
46036
|
+
/** @description Unauthorized */
|
|
46037
|
+
401: {
|
|
46038
|
+
headers: {
|
|
46039
|
+
[name: string]: unknown;
|
|
46040
|
+
};
|
|
46041
|
+
content: {
|
|
46042
|
+
"application/json": components["schemas"]["Error"];
|
|
46043
|
+
};
|
|
46044
|
+
};
|
|
46045
|
+
/** @description Insufficient API key permissions */
|
|
46046
|
+
403: {
|
|
46047
|
+
headers: {
|
|
46048
|
+
[name: string]: unknown;
|
|
46049
|
+
};
|
|
46050
|
+
content: {
|
|
46051
|
+
"application/json": components["schemas"]["Error"];
|
|
46052
|
+
};
|
|
46053
|
+
};
|
|
46054
|
+
/** @description Internal server error */
|
|
46055
|
+
500: {
|
|
46056
|
+
headers: {
|
|
46057
|
+
[name: string]: unknown;
|
|
46058
|
+
};
|
|
46059
|
+
content: {
|
|
46060
|
+
"application/json": components["schemas"]["Error"];
|
|
46061
|
+
};
|
|
46062
|
+
};
|
|
46063
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
46064
|
+
503: {
|
|
46065
|
+
headers: {
|
|
46066
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
46067
|
+
"Retry-After": string;
|
|
46068
|
+
[name: string]: unknown;
|
|
46069
|
+
};
|
|
46070
|
+
content: {
|
|
46071
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
46072
|
+
};
|
|
46073
|
+
};
|
|
46074
|
+
};
|
|
46075
|
+
};
|
|
46076
|
+
put?: never;
|
|
46077
|
+
post?: never;
|
|
46078
|
+
delete?: never;
|
|
46079
|
+
options?: never;
|
|
46080
|
+
head?: never;
|
|
46081
|
+
patch?: never;
|
|
46082
|
+
trace?: never;
|
|
46083
|
+
};
|
|
45884
46084
|
"/v1/runs/{executionId}": {
|
|
45885
46085
|
parameters: {
|
|
45886
46086
|
query?: never;
|
|
@@ -63135,6 +63335,17 @@ interface components {
|
|
|
63135
63335
|
label: string | null;
|
|
63136
63336
|
} | null;
|
|
63137
63337
|
};
|
|
63338
|
+
RunProductStats: {
|
|
63339
|
+
/** @description One entry per named product the caller owns, a product with no flow or agent reading zero. Each sums `/v1/runs/stats` for its flows and for its agents, read one family at a time. */
|
|
63340
|
+
byProductId: {
|
|
63341
|
+
[key: string]: {
|
|
63342
|
+
/** @description Of those, the runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
63343
|
+
failed: number;
|
|
63344
|
+
/** @description Runs of the product's flows plus runs of its agents. */
|
|
63345
|
+
total: number;
|
|
63346
|
+
};
|
|
63347
|
+
};
|
|
63348
|
+
};
|
|
63138
63349
|
RunStats: {
|
|
63139
63350
|
/** @description Runs grouped by agent id. */
|
|
63140
63351
|
byAgentId: {
|
|
@@ -63844,6 +64055,17 @@ interface components {
|
|
|
63844
64055
|
updatedAt: string | null;
|
|
63845
64056
|
versionId: string | null;
|
|
63846
64057
|
};
|
|
64058
|
+
SuiteEvalCaseProposals: {
|
|
64059
|
+
/** @description The newest matching proposals, at most `limit`. */
|
|
64060
|
+
proposals: components["schemas"]["EvalCaseProposal"][];
|
|
64061
|
+
suiteId: string;
|
|
64062
|
+
/** @description Total proposals on this suite matching the filter. */
|
|
64063
|
+
total: number;
|
|
64064
|
+
};
|
|
64065
|
+
SuiteEvalCaseProposalsList: {
|
|
64066
|
+
limit: number;
|
|
64067
|
+
suites: components["schemas"]["SuiteEvalCaseProposals"][];
|
|
64068
|
+
};
|
|
63847
64069
|
SurfaceEnsureConflict: {
|
|
63848
64070
|
/** @enum {string} */
|
|
63849
64071
|
code: "external_modification" | "remote_changed";
|
|
@@ -64471,8 +64693,6 @@ interface operations {
|
|
|
64471
64693
|
};
|
|
64472
64694
|
};
|
|
64473
64695
|
}
|
|
64474
|
-
//#endregion
|
|
64475
|
-
//#region src/sandbox-deployment-types.d.ts
|
|
64476
64696
|
type DeploymentWriteBody = NonNullable<paths['/v1/sandbox-deployments']['post']['requestBody']>['content']['application/json'];
|
|
64477
64697
|
type ConfigWrite = Extract<DeploymentWriteBody, {
|
|
64478
64698
|
config: unknown;
|
|
@@ -64498,8 +64718,6 @@ type ManagedDeploymentSleepPolicy = NonNullable<ManagedDeploymentConfig['sleepPo
|
|
|
64498
64718
|
type ManagedDeploymentHealth = NonNullable<ManagedDeploymentConfig['health']>;
|
|
64499
64719
|
type ManagedDeploymentCapability = ManagedDeploymentDesiredSpec['capabilities'][number];
|
|
64500
64720
|
type ManagedDeploymentProfileIdentity = ManagedDeploymentDesiredSpec['profile'];
|
|
64501
|
-
//#endregion
|
|
64502
|
-
//#region src/detached-reconnect.d.ts
|
|
64503
64721
|
/**
|
|
64504
64722
|
* Transparent reconnect for a DETACHED agent stream (ADR 0020 point 6;
|
|
64505
64723
|
* blueprint `2026-08-25-durable-by-default-agent-turns.md` §4).
|
|
@@ -64590,8 +64808,6 @@ type DetachedReattach = (args: {
|
|
|
64590
64808
|
* to follow, and swallowing it here would hide the error from the caller.
|
|
64591
64809
|
*/
|
|
64592
64810
|
export declare function withDetachedReconnect(response: Response, reattach: DetachedReattach, options?: DetachedReconnectOptions): Response;
|
|
64593
|
-
//#endregion
|
|
64594
|
-
//#region src/generated/aliases.d.ts
|
|
64595
64811
|
/**
|
|
64596
64812
|
* The single SSE event union — the wire format for every execution stream
|
|
64597
64813
|
* (dispatch, agents, client chat, eval). This is the canonical stream type.
|
|
@@ -64759,8 +64975,6 @@ type AgentDeploymentList = paths['/v1/agents/{id}/deployments']['get']['response
|
|
|
64759
64975
|
type AgentDeploymentPromotion = NonNullable<NonNullable<paths['/v1/agents/{id}/aliases/{alias}']['put']['requestBody']>['content']['application/json']['promotion']>;
|
|
64760
64976
|
/** What an ensure converge reports about the pointer it aimed. */
|
|
64761
64977
|
type AgentEnsureDeployment = components['schemas']['AgentEnsureDeployment'];
|
|
64762
|
-
//#endregion
|
|
64763
|
-
//#region src/agent-aliases-namespace.d.ts
|
|
64764
64978
|
/**
|
|
64765
64979
|
* The HTTP verbs the alias plane needs. Both SDK client classes satisfy it, so
|
|
64766
64980
|
* one implementation serves `Runtype.agents.aliases` and `client.agents.aliases`.
|
|
@@ -64955,8 +65169,6 @@ export declare class AgentDeploymentsNamespace {
|
|
|
64955
65169
|
/** Receipts newest first, cursor-paginated; filter to one pointer with `alias`. */
|
|
64956
65170
|
list(agentId: string, options?: ListAgentDeploymentsOptions): Promise<AgentDeploymentList>;
|
|
64957
65171
|
}
|
|
64958
|
-
//#endregion
|
|
64959
|
-
//#region src/collections-ensure.d.ts
|
|
64960
65172
|
type RecordCollectionValidationMode = 'off' | 'warn' | 'enforce';
|
|
64961
65173
|
/** A repo-declared record collection. `slug` is identity; omitted fields converge to create defaults. */
|
|
64962
65174
|
interface RecordCollectionDefinition {
|
|
@@ -65042,8 +65254,6 @@ export declare class CollectionDriftError extends Error {
|
|
|
65042
65254
|
readonly plan: EnsureCollectionPlan;
|
|
65043
65255
|
constructor(slug: string, plan: EnsureCollectionPlan);
|
|
65044
65256
|
}
|
|
65045
|
-
//#endregion
|
|
65046
|
-
//#region src/error-handling-types.d.ts
|
|
65047
65257
|
/**
|
|
65048
65258
|
* Error Handling Types
|
|
65049
65259
|
*
|
|
@@ -65155,8 +65365,6 @@ interface ContextErrorHandling {
|
|
|
65155
65365
|
onError: ErrorHandlingMode;
|
|
65156
65366
|
fallbacks?: ContextFallback[];
|
|
65157
65367
|
}
|
|
65158
|
-
//#endregion
|
|
65159
|
-
//#region src/stream-utils.d.ts
|
|
65160
65368
|
/**
|
|
65161
65369
|
* Options for the flow stream consumers.
|
|
65162
65370
|
*
|
|
@@ -65217,8 +65425,6 @@ export declare function processStream(response: Response, callbacks?: StreamCall
|
|
|
65217
65425
|
* ```
|
|
65218
65426
|
*/
|
|
65219
65427
|
export declare function streamEvents(response: Response, _options?: StreamConsumeOptions): AsyncGenerator<StreamEvent>;
|
|
65220
|
-
//#endregion
|
|
65221
|
-
//#region src/flow-result.d.ts
|
|
65222
65428
|
/**
|
|
65223
65429
|
* Result wrapper for flow execution
|
|
65224
65430
|
*
|
|
@@ -65332,8 +65538,6 @@ export declare class FlowResult {
|
|
|
65332
65538
|
*/
|
|
65333
65539
|
private ensureNotConsumed;
|
|
65334
65540
|
}
|
|
65335
|
-
//#endregion
|
|
65336
|
-
//#region src/flow-builder.d.ts
|
|
65337
65541
|
interface PromptStepConfig {
|
|
65338
65542
|
name: string;
|
|
65339
65543
|
model: string;
|
|
@@ -66427,8 +66631,6 @@ export declare function createExternalTool(config: {
|
|
|
66427
66631
|
body?: string;
|
|
66428
66632
|
idempotent?: boolean;
|
|
66429
66633
|
}): RuntimeTool;
|
|
66430
|
-
//#endregion
|
|
66431
|
-
//#region src/types.d.ts
|
|
66432
66634
|
export type JsonPrimitive = string | number | boolean | null;
|
|
66433
66635
|
export type JsonArray = JsonValue[];
|
|
66434
66636
|
export type JsonObject = {
|
|
@@ -68078,8 +68280,6 @@ export interface ProductionHealthResponse {
|
|
|
68078
68280
|
insights: HealthInsight[];
|
|
68079
68281
|
generatedAt: string;
|
|
68080
68282
|
}
|
|
68081
|
-
//#endregion
|
|
68082
|
-
//#region src/api-key-request-types.d.ts
|
|
68083
68283
|
/**
|
|
68084
68284
|
* Agent API key request types.
|
|
68085
68285
|
*
|
|
@@ -68261,8 +68461,6 @@ interface ApiKeyRequestListParams {
|
|
|
68261
68461
|
limit?: number;
|
|
68262
68462
|
cursor?: string;
|
|
68263
68463
|
}
|
|
68264
|
-
//#endregion
|
|
68265
|
-
//#region src/client-token-types.d.ts
|
|
68266
68464
|
/**
|
|
68267
68465
|
* Client Token Types
|
|
68268
68466
|
*
|
|
@@ -68433,8 +68631,6 @@ interface ListConversationsResponse {
|
|
|
68433
68631
|
hasMore: boolean;
|
|
68434
68632
|
};
|
|
68435
68633
|
}
|
|
68436
|
-
//#endregion
|
|
68437
|
-
//#region src/generated-tool-gate.d.ts
|
|
68438
68634
|
declare const CUSTOM_TOOL_SANDBOX_PROVIDERS: readonly ["quickjs", "daytona", "cloudflare-worker", "runtype-sandbox"];
|
|
68439
68635
|
type GateSandboxProvider = (typeof CUSTOM_TOOL_SANDBOX_PROVIDERS)[number] | 'cloudflare-sandbox';
|
|
68440
68636
|
interface GeneratedRuntimeToolGateOptions {
|
|
@@ -68519,8 +68715,6 @@ export declare function attachRuntimeToolsToDispatchRequest(request: DispatchReq
|
|
|
68519
68715
|
* a redispatch request in one call.
|
|
68520
68716
|
*/
|
|
68521
68717
|
export declare function applyGeneratedRuntimeToolProposalToDispatchRequest(request: DispatchRequest, proposal: unknown, options?: ApplyGeneratedProposalOptions): ApplyGeneratedProposalResult;
|
|
68522
|
-
//#endregion
|
|
68523
|
-
//#region src/schedules-ensure.d.ts
|
|
68524
68718
|
/** Exactly one key: a flow or agent by id, or by name (portable across environments). */
|
|
68525
68719
|
export type ScheduleTarget = {
|
|
68526
68720
|
flowId: string;
|
|
@@ -68664,8 +68858,6 @@ interface ScheduleEnsureTransport {
|
|
|
68664
68858
|
export declare function ensureSchedule(client: ScheduleEnsureTransport, definition: ScheduleDefinition, options?: EnsureScheduleOptions): Promise<EnsureScheduleResult>;
|
|
68665
68859
|
/** Pull the canonical definition + provenance for a schedule by name and target. */
|
|
68666
68860
|
export declare function pullSchedule(client: ScheduleEnsureTransport, name: string, target: ScheduleTarget): Promise<SchedulePullResult>;
|
|
68667
|
-
//#endregion
|
|
68668
|
-
//#region src/typed-records.d.ts
|
|
68669
68861
|
/**
|
|
68670
68862
|
* Customer-augmented map of collection slug → metadata shape. Empty by default;
|
|
68671
68863
|
* populated via declaration merging (see the module docstring). Because it is
|
|
@@ -68694,8 +68886,6 @@ export type TypedRecordWriteResponse<S extends string> = Omit<RecordWriteRespons
|
|
|
68694
68886
|
export type TypedCreateRecordRequest<S extends string> = Omit<CreateRecordRequest, 'type' | 'metadata'> & {
|
|
68695
68887
|
metadata?: CollectionMeta<S>;
|
|
68696
68888
|
};
|
|
68697
|
-
//#endregion
|
|
68698
|
-
//#region src/workflow-types.d.ts
|
|
68699
68889
|
export interface RunTaskStateSlice {
|
|
68700
68890
|
agentId: string;
|
|
68701
68891
|
taskName: string;
|
|
@@ -68836,8 +69026,6 @@ export interface WorkflowDefinition {
|
|
|
68836
69026
|
/** Build the "Best Candidate" block for session messages */
|
|
68837
69027
|
buildCandidateBlock?: (state: RunTaskStateSlice) => string;
|
|
68838
69028
|
}
|
|
68839
|
-
//#endregion
|
|
68840
|
-
//#region src/endpoints.d.ts
|
|
68841
69029
|
export interface ApiClient {
|
|
68842
69030
|
get<T>(path: string, params?: {
|
|
68843
69031
|
[key: string]: any;
|
|
@@ -71851,8 +72039,6 @@ export declare class ToolApprovalGrantsEndpoint {
|
|
|
71851
72039
|
revoked: boolean;
|
|
71852
72040
|
}>;
|
|
71853
72041
|
}
|
|
71854
|
-
//#endregion
|
|
71855
|
-
//#region src/sandbox-deployments-namespace.d.ts
|
|
71856
72042
|
interface ManagedDeploymentWriteOptions {
|
|
71857
72043
|
idempotencyKey: string;
|
|
71858
72044
|
}
|
|
@@ -71873,8 +72059,6 @@ export declare class SandboxDeploymentsNamespace {
|
|
|
71873
72059
|
/** Replace the complete config or spec without renewing retention. */
|
|
71874
72060
|
update(id: string, data: ManagedDeploymentWriteRequest, options: ManagedDeploymentUpdateOptions): Promise<ManagedDeploymentAccepted>;
|
|
71875
72061
|
}
|
|
71876
|
-
//#endregion
|
|
71877
|
-
//#region src/judge-diagnostics.d.ts
|
|
71878
72062
|
/** The platform judge's response classification, without response text or schema error values. */
|
|
71879
72063
|
type JudgeParseError = 'empty_completion' | 'invalid_json' | 'invalid_contract' | 'missing_access_assessment' | 'invalid_access_assessment' | 'output_truncated';
|
|
71880
72064
|
/** Metadata from one platform judge attempt. Mirrors the shared contract without a runtime dependency. */
|
|
@@ -71901,8 +72085,6 @@ interface JudgeDiagnostics {
|
|
|
71901
72085
|
attempts: JudgeAttemptDiagnostic[];
|
|
71902
72086
|
flowFailure?: 'deadline_exhausted' | 'execution_failed' | 'invalid_response';
|
|
71903
72087
|
}
|
|
71904
|
-
//#endregion
|
|
71905
|
-
//#region src/evals-ensure.d.ts
|
|
71906
72088
|
/**
|
|
71907
72089
|
* Per-grader severity (mirror of `@runtypelabs/shared`'s `GraderSeverity`). A
|
|
71908
72090
|
* `gate` miss always fails the case; a `soft` miss is tracked-but-not-failing
|
|
@@ -72576,8 +72758,6 @@ export declare function pullEval(client: RuntypeClient$1, name: string): Promise
|
|
|
72576
72758
|
* supported here: `claude_managed` agents and inline/virtual agent targets.
|
|
72577
72759
|
*/
|
|
72578
72760
|
export declare function runEvalSuite(client: RuntypeClient$1, input: RunEvalInput): Promise<RunEvalResult>;
|
|
72579
|
-
//#endregion
|
|
72580
|
-
//#region src/flows-ensure.d.ts
|
|
72581
72761
|
/** SHA-256 (hex) over the canonical normalized step list (steps only). */
|
|
72582
72762
|
export declare function computeFlowContentHash(steps: unknown[]): Promise<string>;
|
|
72583
72763
|
/**
|
|
@@ -72740,8 +72920,6 @@ export declare class FlowDriftError extends Error {
|
|
|
72740
72920
|
readonly plan: EnsureFlowPlan;
|
|
72741
72921
|
constructor(plan: EnsureFlowPlan);
|
|
72742
72922
|
}
|
|
72743
|
-
//#endregion
|
|
72744
|
-
//#region src/flows-namespace.d.ts
|
|
72745
72923
|
interface LocalToolsOptions {
|
|
72746
72924
|
localTools?: Record<string, (args: unknown) => Promise<unknown>>;
|
|
72747
72925
|
}
|
|
@@ -73119,8 +73297,6 @@ export declare class RuntypeFlowBuilder {
|
|
|
73119
73297
|
private addRawStep;
|
|
73120
73298
|
private addStep;
|
|
73121
73299
|
}
|
|
73122
|
-
//#endregion
|
|
73123
|
-
//#region src/batches-namespace.d.ts
|
|
73124
73300
|
interface BatchScheduleConfig {
|
|
73125
73301
|
/** Flow ID to execute for each record */
|
|
73126
73302
|
flowId: string;
|
|
@@ -73245,8 +73421,6 @@ export declare class BatchesNamespace {
|
|
|
73245
73421
|
total: number;
|
|
73246
73422
|
}>;
|
|
73247
73423
|
}
|
|
73248
|
-
//#endregion
|
|
73249
|
-
//#region src/evals-suites.d.ts
|
|
73250
73424
|
/** The most recent run of a suite, with its score once graded. */
|
|
73251
73425
|
interface EvalSuiteLatestRun {
|
|
73252
73426
|
runId: string;
|
|
@@ -73662,8 +73836,6 @@ export declare class EvalSuitesNamespace {
|
|
|
73662
73836
|
*/
|
|
73663
73837
|
getCoverage(suiteId: string): Promise<EvalSuiteCoverage>;
|
|
73664
73838
|
}
|
|
73665
|
-
//#endregion
|
|
73666
|
-
//#region src/evals-namespace.d.ts
|
|
73667
73839
|
interface ModelOverride$1 {
|
|
73668
73840
|
/** Name of the step to override */
|
|
73669
73841
|
stepName: string;
|
|
@@ -73988,8 +74160,6 @@ export declare class EvalsNamespace {
|
|
|
73988
74160
|
total: number;
|
|
73989
74161
|
}>;
|
|
73990
74162
|
}
|
|
73991
|
-
//#endregion
|
|
73992
|
-
//#region src/prompts-namespace.d.ts
|
|
73993
74163
|
interface CreatePromptData {
|
|
73994
74164
|
/** Prompt name */
|
|
73995
74165
|
name: string;
|
|
@@ -74150,8 +74320,6 @@ export declare class PromptsNamespace {
|
|
|
74150
74320
|
*/
|
|
74151
74321
|
delete(promptId: string): Promise<void>;
|
|
74152
74322
|
}
|
|
74153
|
-
//#endregion
|
|
74154
|
-
//#region src/skills-ensure.d.ts
|
|
74155
74323
|
interface SkillContentInput {
|
|
74156
74324
|
/** Identity — excluded from the hash. */
|
|
74157
74325
|
name: string;
|
|
@@ -74262,8 +74430,6 @@ export declare class SkillDriftError extends Error {
|
|
|
74262
74430
|
readonly plan: EnsureSkillPlan;
|
|
74263
74431
|
constructor(plan: EnsureSkillPlan);
|
|
74264
74432
|
}
|
|
74265
|
-
//#endregion
|
|
74266
|
-
//#region src/skills-namespace.d.ts
|
|
74267
74433
|
/** Lifecycle status of a skill. */
|
|
74268
74434
|
type SkillStatus = 'draft' | 'active' | 'archived';
|
|
74269
74435
|
/** Trust level recorded on a skill (governs UI warnings). */
|
|
@@ -74697,8 +74863,6 @@ export declare class SkillsNamespace {
|
|
|
74697
74863
|
*/
|
|
74698
74864
|
pull(name: string): Promise<SkillPullResult>;
|
|
74699
74865
|
}
|
|
74700
|
-
//#endregion
|
|
74701
|
-
//#region src/agents-namespace.d.ts
|
|
74702
74866
|
/**
|
|
74703
74867
|
* The refusal a client-side `release` + `deploy` mix answers with. Byte-identical
|
|
74704
74868
|
* to the server's, so both spellings of the mistake read the same.
|
|
@@ -75084,16 +75248,12 @@ export declare class AgentsNamespace {
|
|
|
75084
75248
|
private memoize;
|
|
75085
75249
|
private request;
|
|
75086
75250
|
}
|
|
75087
|
-
//#endregion
|
|
75088
|
-
//#region src/executions-namespace.d.ts
|
|
75089
75251
|
/** Read-only namespace for durable asynchronous execution handles. */
|
|
75090
75252
|
export declare class ExecutionsNamespace {
|
|
75091
75253
|
private readonly getClient;
|
|
75092
75254
|
constructor(getClient: () => RuntypeClient$1);
|
|
75093
75255
|
getStatus(executionId: string): Promise<AsyncExecutionStatus>;
|
|
75094
75256
|
}
|
|
75095
|
-
//#endregion
|
|
75096
|
-
//#region src/runs-namespace.d.ts
|
|
75097
75257
|
/**
|
|
75098
75258
|
* One run, as `GET /v1/runs` returns it. A local copy of `RunListRow` from
|
|
75099
75259
|
* `@runtypelabs/shared`: this package is published to npm and its source runs
|
|
@@ -75288,8 +75448,6 @@ export declare class RunsNamespace {
|
|
|
75288
75448
|
list(params?: RunListParams): Promise<RunListResponse>;
|
|
75289
75449
|
get(executionId: string, params?: Pick<RunListParams, 'view' | 'overlay'>): Promise<RunListRow>;
|
|
75290
75450
|
}
|
|
75291
|
-
//#endregion
|
|
75292
|
-
//#region src/tools-ensure.d.ts
|
|
75293
75451
|
/** Canonical normalized form of a tool definition (name excluded — identity). */
|
|
75294
75452
|
export declare function normalizeToolDefinition(definition: ToolContentInput): {
|
|
75295
75453
|
toolType: string;
|
|
@@ -75402,8 +75560,6 @@ export declare class ToolDriftError extends Error {
|
|
|
75402
75560
|
readonly plan: EnsureToolPlan;
|
|
75403
75561
|
constructor(plan: EnsureToolPlan);
|
|
75404
75562
|
}
|
|
75405
|
-
//#endregion
|
|
75406
|
-
//#region src/tools-namespace.d.ts
|
|
75407
75563
|
export declare class ToolsNamespace {
|
|
75408
75564
|
private getClient;
|
|
75409
75565
|
constructor(getClient: () => RuntypeClient$1);
|
|
@@ -75436,8 +75592,6 @@ export declare class ToolsNamespace {
|
|
|
75436
75592
|
*/
|
|
75437
75593
|
pull(name: string): Promise<ToolPullResult>;
|
|
75438
75594
|
}
|
|
75439
|
-
//#endregion
|
|
75440
|
-
//#region src/question-sets-ensure.d.ts
|
|
75441
75595
|
/** A question set declared in code. `slug` is its identity within the organization. */
|
|
75442
75596
|
interface QuestionSetDefinition {
|
|
75443
75597
|
slug: string;
|
|
@@ -75524,8 +75678,6 @@ export declare class QuestionSetDriftError extends Error {
|
|
|
75524
75678
|
readonly plan: EnsureQuestionSetPlan;
|
|
75525
75679
|
constructor(slug: string, plan: EnsureQuestionSetPlan);
|
|
75526
75680
|
}
|
|
75527
|
-
//#endregion
|
|
75528
|
-
//#region src/question-sets-namespace.d.ts
|
|
75529
75681
|
/** Question set config-as-code: `ensure` and `pull`. */
|
|
75530
75682
|
export declare class QuestionSetsNamespace {
|
|
75531
75683
|
private getClient;
|
|
@@ -75545,8 +75697,6 @@ export declare class QuestionSetsNamespace {
|
|
|
75545
75697
|
/** Pull the live definition and provenance for a slug, to absorb a dashboard edit. */
|
|
75546
75698
|
pull(slug: string): Promise<QuestionSetPullResult>;
|
|
75547
75699
|
}
|
|
75548
|
-
//#endregion
|
|
75549
|
-
//#region src/signals-namespace.d.ts
|
|
75550
75700
|
/** A signal set version's definition, as the API validates it. */
|
|
75551
75701
|
interface SignalSetDefinitionInput {
|
|
75552
75702
|
unit?: 'turn';
|
|
@@ -75778,8 +75928,6 @@ export declare class SignalsNamespace {
|
|
|
75778
75928
|
};
|
|
75779
75929
|
}>;
|
|
75780
75930
|
}
|
|
75781
|
-
//#endregion
|
|
75782
|
-
//#region src/products-ensure.d.ts
|
|
75783
75931
|
/** Canonical normalized form of a product definition (name + canvas excluded). */
|
|
75784
75932
|
export declare function normalizeProductDefinition(definition: ProductContentInput): {
|
|
75785
75933
|
description?: string;
|
|
@@ -75880,8 +76028,6 @@ export declare class ProductDriftError extends Error {
|
|
|
75880
76028
|
readonly plan: EnsureProductPlan;
|
|
75881
76029
|
constructor(plan: EnsureProductPlan);
|
|
75882
76030
|
}
|
|
75883
|
-
//#endregion
|
|
75884
|
-
//#region src/products-ensure-fpo.d.ts
|
|
75885
76031
|
/** An FPO for hashing/sending. Permissive — the server validates the rich contract. */
|
|
75886
76032
|
type FpoInput = Record<string, unknown>;
|
|
75887
76033
|
/**
|
|
@@ -75991,8 +76137,6 @@ export declare function ensureFpo(client: RuntypeClient$1, fpo: FpoInput, option
|
|
|
75991
76137
|
* `tool:<name>`); inspect `warnings` for per-pull caveats.
|
|
75992
76138
|
*/
|
|
75993
76139
|
export declare function pullFpo(client: RuntypeClient$1, name: string): Promise<PullFpoResult>;
|
|
75994
|
-
//#endregion
|
|
75995
|
-
//#region src/products-namespace.d.ts
|
|
75996
76140
|
/** Merged first page of every activity source a product has. */
|
|
75997
76141
|
type ProductActivityResponse = paths['/v1/products/{id}/activity']['get']['responses'][200]['content']['application/json'];
|
|
75998
76142
|
interface ProductActivityOptions {
|
|
@@ -76078,8 +76222,6 @@ export declare class ProductsNamespace {
|
|
|
76078
76222
|
*/
|
|
76079
76223
|
activity(productId: string, options?: ProductActivityOptions): Promise<ProductActivityResponse>;
|
|
76080
76224
|
}
|
|
76081
|
-
//#endregion
|
|
76082
|
-
//#region src/surfaces-ensure.d.ts
|
|
76083
76225
|
/**
|
|
76084
76226
|
* Canonical normalized form of a surface definition (name excluded — identity).
|
|
76085
76227
|
* `inbound` / `outbound` are EXCLUDED — they carry sealed secrets that hash
|
|
@@ -76200,8 +76342,6 @@ export declare class SurfaceDriftError extends Error {
|
|
|
76200
76342
|
readonly plan: EnsureSurfacePlan;
|
|
76201
76343
|
constructor(plan: EnsureSurfacePlan);
|
|
76202
76344
|
}
|
|
76203
|
-
//#endregion
|
|
76204
|
-
//#region src/surfaces-namespace.d.ts
|
|
76205
76345
|
export declare class SurfacesNamespace {
|
|
76206
76346
|
private getClient;
|
|
76207
76347
|
constructor(getClient: () => RuntypeClient$1);
|
|
@@ -76233,8 +76373,6 @@ export declare class SurfacesNamespace {
|
|
|
76233
76373
|
*/
|
|
76234
76374
|
pull(productId: string, name: string): Promise<SurfacePullResult>;
|
|
76235
76375
|
}
|
|
76236
|
-
//#endregion
|
|
76237
|
-
//#region src/client-tokens-namespace.d.ts
|
|
76238
76376
|
/**
|
|
76239
76377
|
* The desired state of a client token, keyed by `name`. Capabilities, origins,
|
|
76240
76378
|
* and target always converge; limits and `config` converge only when set.
|
|
@@ -76332,8 +76470,6 @@ export declare class ClientTokensNamespace {
|
|
|
76332
76470
|
*/
|
|
76333
76471
|
ensure(definition: ClientTokenDefinition, options?: EnsureClientTokenOptions): Promise<EnsureClientTokenResult>;
|
|
76334
76472
|
}
|
|
76335
|
-
//#endregion
|
|
76336
|
-
//#region src/runtype.d.ts
|
|
76337
76473
|
interface RuntypeConfig {
|
|
76338
76474
|
/** API key for authentication */
|
|
76339
76475
|
apiKey?: string;
|
|
@@ -76789,8 +76925,6 @@ export declare class Runtype {
|
|
|
76789
76925
|
*/
|
|
76790
76926
|
static get clientTokens(): ClientTokensNamespace;
|
|
76791
76927
|
}
|
|
76792
|
-
//#endregion
|
|
76793
|
-
//#region src/a2a-handler.d.ts
|
|
76794
76928
|
/** The text-only A2A 0.3 message delivered to a framework callback. */
|
|
76795
76929
|
interface A2ATextMessage {
|
|
76796
76930
|
role: 'user' | 'agent';
|
|
@@ -76825,8 +76959,6 @@ interface A2AHandlerOptions {
|
|
|
76825
76959
|
* The callback owns history, authorization of context IDs, and model cancellation.
|
|
76826
76960
|
*/
|
|
76827
76961
|
export declare function createA2AHandler(options: A2AHandlerOptions): (request: Request) => Promise<Response>;
|
|
76828
|
-
//#endregion
|
|
76829
|
-
//#region src/agent-promotion.d.ts
|
|
76830
76962
|
/**
|
|
76831
76963
|
* The HTTP surface a promotion leg needs from one organization's credentials.
|
|
76832
76964
|
* Both SDK client classes satisfy it, and a promotion always holds two of
|
|
@@ -76948,9 +77080,6 @@ interface PromoteAgentResult {
|
|
|
76948
77080
|
* caller's to run and report; nothing here is gated on it.
|
|
76949
77081
|
*/
|
|
76950
77082
|
export declare function promoteAgent(input: PromoteAgentInput): Promise<PromoteAgentResult>;
|
|
76951
|
-
//#endregion
|
|
76952
|
-
//#region ../shared/dist/models-BFb-uNHy.d.ts
|
|
76953
|
-
//#region src/generated-evaluation-models.d.ts
|
|
76954
77083
|
/**
|
|
76955
77084
|
* Per-token USD exactly as the gateway listed it, plus the per-million figures
|
|
76956
77085
|
* derived from those strings. The verbatim strings are what metering multiplies
|
|
@@ -76991,8 +77120,6 @@ type DecisionModelDescriptor = DecisionModelDetails & ({
|
|
|
76991
77120
|
readonly provider: 'cloudflare';
|
|
76992
77121
|
readonly route: 'cloudflare-workers-ai';
|
|
76993
77122
|
});
|
|
76994
|
-
//#endregion
|
|
76995
|
-
//#region src/decision-models.d.ts
|
|
76996
77123
|
/** Supported model capabilities, not the calling organization's credential or spending readiness. */
|
|
76997
77124
|
type DecisionModelCatalogEntry = DecisionModelDescriptor & {
|
|
76998
77125
|
credentialRequirements: {
|
|
@@ -77004,9 +77131,6 @@ type DecisionModelCatalogEntry = DecisionModelDescriptor & {
|
|
|
77004
77131
|
interface DecisionModelCatalog {
|
|
77005
77132
|
models: DecisionModelCatalogEntry[];
|
|
77006
77133
|
}
|
|
77007
|
-
//#endregion
|
|
77008
|
-
//#region ../shared/dist/index-BEIJ_QMH.d.ts
|
|
77009
|
-
//#region src/extraction/models.d.ts
|
|
77010
77134
|
type ExtractionModelProvider = 'cloudflare';
|
|
77011
77135
|
type ExtractionModelRoute = 'cloudflare-workers-ai';
|
|
77012
77136
|
interface ExtractionModelPricing {
|
|
@@ -77033,8 +77157,6 @@ interface ExtractionModelDescriptor {
|
|
|
77033
77157
|
readonly platformFunding: boolean;
|
|
77034
77158
|
readonly docsUrl: string;
|
|
77035
77159
|
}
|
|
77036
|
-
//#endregion
|
|
77037
|
-
//#region src/extraction-models.d.ts
|
|
77038
77160
|
/** Supported model capabilities, not the calling organization's spending readiness. */
|
|
77039
77161
|
type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
77040
77162
|
credentialRequirements: {
|
|
@@ -77046,8 +77168,6 @@ type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
|
77046
77168
|
interface ExtractionModelCatalog {
|
|
77047
77169
|
models: ExtractionModelCatalogEntry[];
|
|
77048
77170
|
}
|
|
77049
|
-
//#endregion
|
|
77050
|
-
//#region src/simulation-tool-memory-types.d.ts
|
|
77051
77171
|
/** How one tool call was answered: the rung of the response ladder that served it. */
|
|
77052
77172
|
type SimulationServedBy = 'live' | 'recorded' | 'transformed' | 'composite' | 'synthesized' | 'stub' | 'rejected' | 'fault';
|
|
77053
77173
|
/** One recorded `tools/call` of a target; `arguments` and `result` are null on a shape-only row. */
|
|
@@ -77218,8 +77338,6 @@ interface SimulationDesignBrief {
|
|
|
77218
77338
|
live: boolean;
|
|
77219
77339
|
}>;
|
|
77220
77340
|
}
|
|
77221
|
-
//#endregion
|
|
77222
|
-
//#region src/simulation-episode-types.d.ts
|
|
77223
77341
|
type SimulationEpisodeStatus = 'queued' | 'running' | 'completed' | 'failed' | 'skipped' | 'cancelled';
|
|
77224
77342
|
/** Why an episode ended. */
|
|
77225
77343
|
type SimulationTermination = 'goal_met' | 'gave_up' | 'max_turns' | 'agent_error' | 'simulator_error' | 'stalled' | 'deadline' | 'target_unavailable' | 'client_limit' | 'recording_miss' | 'spend_cap' | 'engine_error';
|
|
@@ -77443,8 +77561,6 @@ interface GetSimulationEpisodeResponse {
|
|
|
77443
77561
|
/** Each synthesized answer's review by its exchange id; null when unreviewed. */
|
|
77444
77562
|
synthesisReviews?: Record<string, boolean | null>;
|
|
77445
77563
|
}
|
|
77446
|
-
//#endregion
|
|
77447
|
-
//#region src/simulations-namespace.d.ts
|
|
77448
77564
|
/**
|
|
77449
77565
|
* Simulations tool memory and future designs (`/v1/simulations`): recorded exchanges, tool profiles,
|
|
77450
77566
|
* design previews, synthesis review, design briefs and run episodes. Pre-GA: the API answers 404 `SIMULATIONS_DISABLED`
|
|
@@ -77497,8 +77613,6 @@ export declare class SimulationsEndpoint {
|
|
|
77497
77613
|
/** One episode with its transcript, grader scores and per-turn layer facts: why it failed or surprised. */
|
|
77498
77614
|
getEpisode(runId: string, episodeId: string): Promise<GetSimulationEpisodeResponse>;
|
|
77499
77615
|
}
|
|
77500
|
-
//#endregion
|
|
77501
|
-
//#region src/client.d.ts
|
|
77502
77616
|
type LocalToolHandler = (args: unknown) => Promise<unknown>;
|
|
77503
77617
|
/**
|
|
77504
77618
|
* Richer local tool entry that pairs a handler with the wire schema the
|
|
@@ -77728,8 +77842,6 @@ export declare class RuntypeApiError extends Error {
|
|
|
77728
77842
|
* Convenience function to create a new RuntypeClient instance
|
|
77729
77843
|
*/
|
|
77730
77844
|
export declare function createClient(config?: ClientConfig): RuntypeClient;
|
|
77731
|
-
//#endregion
|
|
77732
|
-
//#region src/version.d.ts
|
|
77733
77845
|
export declare const SDK_VERSION: string;
|
|
77734
77846
|
/**
|
|
77735
77847
|
* Canonical client identity the API uses for attribution
|
|
@@ -77746,8 +77858,6 @@ export declare const RUNTYPE_CLIENT_KIND = "sdk";
|
|
|
77746
77858
|
* is the reliable cross-environment signal; this UA carries the version + language.
|
|
77747
77859
|
*/
|
|
77748
77860
|
export declare const SDK_USER_AGENT: string;
|
|
77749
|
-
//#endregion
|
|
77750
|
-
//#region src/offload-markers.d.ts
|
|
77751
77861
|
export declare const LEDGER_ARTIFACT_LINE_PREFIX = "Ledger artifact: ";
|
|
77752
77862
|
/** SDK hot-tail send-view marker: large tool result replaced by a file pointer. */
|
|
77753
77863
|
export declare function buildSendViewOffloadMarker(details: {
|
|
@@ -77776,8 +77886,6 @@ export declare function extractDeclaredToolResultChars(value: unknown): number |
|
|
|
77776
77886
|
export declare function parseOffloadedOutputId(value: string): string | undefined;
|
|
77777
77887
|
/** Parse the tree-log-relative artifact path out of a ledger offload reference. */
|
|
77778
77888
|
export declare function parseLedgerArtifactRelativePath(value: string): string | undefined;
|
|
77779
|
-
//#endregion
|
|
77780
|
-
//#region src/unified-stream-adapter.d.ts
|
|
77781
77889
|
type Json = Record<string, unknown>;
|
|
77782
77890
|
/**
|
|
77783
77891
|
* @deprecated Unified events are now the only public execution-stream format.
|
|
@@ -77809,8 +77917,6 @@ export declare function createFlowEventTranslator(): (event: unknown) => Compati
|
|
|
77809
77917
|
* Returns 0+ callback events per unified event. Construct one per stream.
|
|
77810
77918
|
*/
|
|
77811
77919
|
export declare function createAgentEventTranslator(): (event: unknown) => CompatibilityEvent[];
|
|
77812
|
-
//#endregion
|
|
77813
|
-
//#region src/batch-builder.d.ts
|
|
77814
77920
|
/**
|
|
77815
77921
|
* BatchBuilder - Fluent builder for batch operations
|
|
77816
77922
|
*
|
|
@@ -77923,8 +78029,6 @@ export declare class ClientBatchBuilder extends BatchBuilder {
|
|
|
77923
78029
|
*/
|
|
77924
78030
|
run(): Promise<BatchResult>;
|
|
77925
78031
|
}
|
|
77926
|
-
//#endregion
|
|
77927
|
-
//#region src/eval-builder.d.ts
|
|
77928
78032
|
interface ModelOverride {
|
|
77929
78033
|
/** Name of the step to override */
|
|
77930
78034
|
stepName: string;
|
|
@@ -78115,8 +78219,6 @@ export declare class ClientEvalBuilder extends EvalBuilder {
|
|
|
78115
78219
|
*/
|
|
78116
78220
|
run(): Promise<EvalResult>;
|
|
78117
78221
|
}
|
|
78118
|
-
//#endregion
|
|
78119
|
-
//#region src/codegen-metadata.d.ts
|
|
78120
78222
|
/** How to serialize a field value into TypeScript source code. */
|
|
78121
78223
|
type FieldFormat = 'json' | 'template' | 'raw' | 'value';
|
|
78122
78224
|
/** Describes one field in a step config for code emission. */
|
|
@@ -78836,8 +78938,6 @@ export declare const STEP_TYPE_TO_METHOD: {
|
|
|
78836
78938
|
readonly 'memory-summary': 'memorySummary';
|
|
78837
78939
|
readonly extract: 'extract';
|
|
78838
78940
|
};
|
|
78839
|
-
//#endregion
|
|
78840
|
-
//#region src/workflows/hook-registry.d.ts
|
|
78841
78941
|
interface WorkflowHookSignatures {
|
|
78842
78942
|
/** WorkflowPhase.buildInstructions — used verbatim (no header is added) */
|
|
78843
78943
|
instructions: (state: RunTaskStateSlice) => string;
|
|
@@ -78890,8 +78990,6 @@ export declare function listWorkflowHooks(): Array<{
|
|
|
78890
78990
|
}>;
|
|
78891
78991
|
/** Test seam: remove a custom hook (builtin entries cannot be removed). */
|
|
78892
78992
|
export declare function unregisterWorkflowHook(name: string): boolean;
|
|
78893
|
-
//#endregion
|
|
78894
|
-
//#region src/workflows/workflow-config.d.ts
|
|
78895
78993
|
export declare const DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS = 2;
|
|
78896
78994
|
/** A `"<namespace>:<id>"` reference into the workflow hook registry. */
|
|
78897
78995
|
type WorkflowHookRef = string;
|
|
@@ -79035,8 +79133,6 @@ export declare function buildPolicyGuidance(policy?: WorkflowPolicyConfig): stri
|
|
|
79035
79133
|
* reference fails here — at load time — with an actionable error.
|
|
79036
79134
|
*/
|
|
79037
79135
|
export declare function compileWorkflowConfig(config: WorkflowConfig, deps?: WorkflowCompileDeps): WorkflowDefinition;
|
|
79038
|
-
//#endregion
|
|
79039
|
-
//#region src/workflows/default-workflow.d.ts
|
|
79040
79136
|
/**
|
|
79041
79137
|
* Register the default workflow's behaviors as `builtin:*` hooks. Idempotent.
|
|
79042
79138
|
* Importing this module (or anything that pulls in `defaultWorkflow`) calls it
|
|
@@ -79055,14 +79151,8 @@ export declare function ensureDefaultWorkflowHooks(): void;
|
|
|
79055
79151
|
*/
|
|
79056
79152
|
export declare const defaultWorkflowConfig: WorkflowConfig;
|
|
79057
79153
|
export declare const defaultWorkflow: WorkflowDefinition;
|
|
79058
|
-
//#endregion
|
|
79059
|
-
//#region src/workflows/deploy-workflow.d.ts
|
|
79060
79154
|
export declare const deployWorkflow: WorkflowDefinition;
|
|
79061
|
-
//#endregion
|
|
79062
|
-
//#region src/workflows/game-workflow.d.ts
|
|
79063
79155
|
export declare const gameWorkflow: WorkflowDefinition;
|
|
79064
|
-
//#endregion
|
|
79065
|
-
//#region src/workflows/stall-policy.d.ts
|
|
79066
79156
|
export declare const DEFAULT_STALL_STOP_AFTER = 3;
|
|
79067
79157
|
/** Resolve how many consecutive empty sessions end the run as 'stalled'. */
|
|
79068
79158
|
export declare function resolveStallStopAfter(policy?: WorkflowStallPolicy): number;
|
|
@@ -79081,8 +79171,6 @@ export declare function shouldInjectEmptySessionNudge(policy: WorkflowStallPolic
|
|
|
79081
79171
|
* failure mode directly.
|
|
79082
79172
|
*/
|
|
79083
79173
|
export declare function buildEmptySessionNudge(consecutiveEmptySessions: number): string;
|
|
79084
|
-
//#endregion
|
|
79085
|
-
//#region src/workflow-utils.d.ts
|
|
79086
79174
|
/**
|
|
79087
79175
|
* Utility functions shared between workflow phase handlers and AgentsEndpoint.
|
|
79088
79176
|
*
|
|
@@ -79099,6 +79187,5 @@ export declare function isPreservationSensitiveTask(state: Pick<{
|
|
|
79099
79187
|
export declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | undefined, candidatePaths: string[] | undefined): string[];
|
|
79100
79188
|
export declare function getDefaultPlanPath(taskName: string): string;
|
|
79101
79189
|
export declare function sanitizeTaskSlug(taskName: string): string;
|
|
79102
|
-
//#endregion
|
|
79103
79190
|
export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSignalSetInput, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, CreateSignalSetInput, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, ExtractionModelCatalog, ExtractionModelCatalogEntry, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SignalBinding, SignalPreviewReport, SignalSet, SignalSetDefinitionInput, SignalSetPreset, SignalSetVersion, SignalStatRow, SignalStatsParams, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TransformDataStepConfig$1 as TransformDataStepConfig, UnauthenticatedClaimApiKeyRequestInput, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
|
|
79104
79191
|
export {}
|