@runtypelabs/sdk 11.8.0 → 11.8.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 +57 -113
- package/dist/index.d.cts +211 -137
- package/dist/index.d.ts +211 -137
- 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.
|
|
@@ -14601,6 +14600,8 @@ interface paths {
|
|
|
14601
14600
|
requestBody?: {
|
|
14602
14601
|
content: {
|
|
14603
14602
|
"application/json": {
|
|
14603
|
+
/** @description Deliver the message only while the task still waits on the question journaled at this seq (the `seq` of its `question` event). Otherwise the call answers 409 `DELEGATE_TASK_QUESTION_ANSWERED` and delivers nothing, so an answer is safe to retry. */
|
|
14604
|
+
answersQuestionSeq?: number;
|
|
14604
14605
|
message: string;
|
|
14605
14606
|
};
|
|
14606
14607
|
};
|
|
@@ -14615,6 +14616,8 @@ interface paths {
|
|
|
14615
14616
|
"application/json": {
|
|
14616
14617
|
/** @enum {boolean} */
|
|
14617
14618
|
accepted: true;
|
|
14619
|
+
/** @description Journal seq of the `message_received` event this message became. */
|
|
14620
|
+
messageSeq?: number;
|
|
14618
14621
|
task: {
|
|
14619
14622
|
apiKeyId: string | null;
|
|
14620
14623
|
clientName: string | null;
|
|
@@ -14694,7 +14697,7 @@ interface paths {
|
|
|
14694
14697
|
"application/json": components["schemas"]["Error"];
|
|
14695
14698
|
};
|
|
14696
14699
|
};
|
|
14697
|
-
/** @description The task has already settled */
|
|
14700
|
+
/** @description The task has already settled (`DELEGATE_TASK_SETTLED`), or no longer waits on the question named by `answersQuestionSeq` (`DELEGATE_TASK_QUESTION_ANSWERED`) */
|
|
14698
14701
|
409: {
|
|
14699
14702
|
headers: {
|
|
14700
14703
|
[name: string]: unknown;
|
|
@@ -18445,6 +18448,88 @@ interface paths {
|
|
|
18445
18448
|
patch?: never;
|
|
18446
18449
|
trace?: never;
|
|
18447
18450
|
};
|
|
18451
|
+
"/v1/eval/proposals": {
|
|
18452
|
+
parameters: {
|
|
18453
|
+
query?: never;
|
|
18454
|
+
header?: never;
|
|
18455
|
+
path?: never;
|
|
18456
|
+
cookie?: never;
|
|
18457
|
+
};
|
|
18458
|
+
/**
|
|
18459
|
+
* List eval case proposals for several suites
|
|
18460
|
+
* @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.
|
|
18461
|
+
*/
|
|
18462
|
+
get: {
|
|
18463
|
+
parameters: {
|
|
18464
|
+
query: {
|
|
18465
|
+
/** @description Comma-separated eval suite ids, at most 50. */
|
|
18466
|
+
suiteIds: string;
|
|
18467
|
+
/** @description Filter by status. Omit for all; the queue UI uses "proposed". */
|
|
18468
|
+
status?: "proposed" | "accepted" | "edited_accepted" | "rejected";
|
|
18469
|
+
/** @description Proposals per suite (default 20, max 50) */
|
|
18470
|
+
limit?: string;
|
|
18471
|
+
};
|
|
18472
|
+
header?: never;
|
|
18473
|
+
path?: never;
|
|
18474
|
+
cookie?: never;
|
|
18475
|
+
};
|
|
18476
|
+
requestBody?: never;
|
|
18477
|
+
responses: {
|
|
18478
|
+
/** @description Proposals returned, one entry per owned suite in the order named */
|
|
18479
|
+
200: {
|
|
18480
|
+
headers: {
|
|
18481
|
+
[name: string]: unknown;
|
|
18482
|
+
};
|
|
18483
|
+
content: {
|
|
18484
|
+
"application/json": components["schemas"]["SuiteEvalCaseProposalsList"];
|
|
18485
|
+
};
|
|
18486
|
+
};
|
|
18487
|
+
/** @description Invalid request */
|
|
18488
|
+
400: {
|
|
18489
|
+
headers: {
|
|
18490
|
+
[name: string]: unknown;
|
|
18491
|
+
};
|
|
18492
|
+
content: {
|
|
18493
|
+
"application/json": components["schemas"]["Error"];
|
|
18494
|
+
};
|
|
18495
|
+
};
|
|
18496
|
+
/** @description Unauthorized */
|
|
18497
|
+
401: {
|
|
18498
|
+
headers: {
|
|
18499
|
+
[name: string]: unknown;
|
|
18500
|
+
};
|
|
18501
|
+
content: {
|
|
18502
|
+
"application/json": components["schemas"]["Error"];
|
|
18503
|
+
};
|
|
18504
|
+
};
|
|
18505
|
+
/** @description Forbidden */
|
|
18506
|
+
403: {
|
|
18507
|
+
headers: {
|
|
18508
|
+
[name: string]: unknown;
|
|
18509
|
+
};
|
|
18510
|
+
content: {
|
|
18511
|
+
"application/json": components["schemas"]["Error"];
|
|
18512
|
+
};
|
|
18513
|
+
};
|
|
18514
|
+
/** @description Internal server error */
|
|
18515
|
+
500: {
|
|
18516
|
+
headers: {
|
|
18517
|
+
[name: string]: unknown;
|
|
18518
|
+
};
|
|
18519
|
+
content: {
|
|
18520
|
+
"application/json": components["schemas"]["Error"];
|
|
18521
|
+
};
|
|
18522
|
+
};
|
|
18523
|
+
};
|
|
18524
|
+
};
|
|
18525
|
+
put?: never;
|
|
18526
|
+
post?: never;
|
|
18527
|
+
delete?: never;
|
|
18528
|
+
options?: never;
|
|
18529
|
+
head?: never;
|
|
18530
|
+
patch?: never;
|
|
18531
|
+
trace?: never;
|
|
18532
|
+
};
|
|
18448
18533
|
"/v1/eval/pull": {
|
|
18449
18534
|
parameters: {
|
|
18450
18535
|
query?: never;
|
|
@@ -45877,6 +45962,108 @@ interface paths {
|
|
|
45877
45962
|
patch?: never;
|
|
45878
45963
|
trace?: never;
|
|
45879
45964
|
};
|
|
45965
|
+
"/v1/runs/stats/products": {
|
|
45966
|
+
parameters: {
|
|
45967
|
+
query?: never;
|
|
45968
|
+
header?: never;
|
|
45969
|
+
path?: never;
|
|
45970
|
+
cookie?: never;
|
|
45971
|
+
};
|
|
45972
|
+
/**
|
|
45973
|
+
* Count runs per product
|
|
45974
|
+
* @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.
|
|
45975
|
+
*/
|
|
45976
|
+
get: {
|
|
45977
|
+
parameters: {
|
|
45978
|
+
query: {
|
|
45979
|
+
/** @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. */
|
|
45980
|
+
traffic?: "live" | "test" | "eval" | "sim" | "all";
|
|
45981
|
+
/** @description Window start (ISO 8601). Defaults to 24 hours ago. */
|
|
45982
|
+
from?: string;
|
|
45983
|
+
/** @description Window end (ISO 8601). Defaults to now. */
|
|
45984
|
+
to?: string;
|
|
45985
|
+
/** @description Comma-separated product ids, at most 100. A product the caller does not own is left out of the answer. */
|
|
45986
|
+
productIds: string;
|
|
45987
|
+
};
|
|
45988
|
+
header?: never;
|
|
45989
|
+
path?: never;
|
|
45990
|
+
cookie?: never;
|
|
45991
|
+
};
|
|
45992
|
+
requestBody?: never;
|
|
45993
|
+
responses: {
|
|
45994
|
+
/** @description Run counts per product returned */
|
|
45995
|
+
200: {
|
|
45996
|
+
headers: {
|
|
45997
|
+
[name: string]: unknown;
|
|
45998
|
+
};
|
|
45999
|
+
content: {
|
|
46000
|
+
"application/json": {
|
|
46001
|
+
data: components["schemas"]["RunProductStats"];
|
|
46002
|
+
/** @description The started_at window the query resolved to, after defaults. */
|
|
46003
|
+
window: {
|
|
46004
|
+
from: string;
|
|
46005
|
+
to: string;
|
|
46006
|
+
};
|
|
46007
|
+
};
|
|
46008
|
+
};
|
|
46009
|
+
};
|
|
46010
|
+
/** @description Invalid request, including a filter whose value could not be read */
|
|
46011
|
+
400: {
|
|
46012
|
+
headers: {
|
|
46013
|
+
[name: string]: unknown;
|
|
46014
|
+
};
|
|
46015
|
+
content: {
|
|
46016
|
+
"application/json": components["schemas"]["Error"];
|
|
46017
|
+
};
|
|
46018
|
+
};
|
|
46019
|
+
/** @description Unauthorized */
|
|
46020
|
+
401: {
|
|
46021
|
+
headers: {
|
|
46022
|
+
[name: string]: unknown;
|
|
46023
|
+
};
|
|
46024
|
+
content: {
|
|
46025
|
+
"application/json": components["schemas"]["Error"];
|
|
46026
|
+
};
|
|
46027
|
+
};
|
|
46028
|
+
/** @description Insufficient API key permissions */
|
|
46029
|
+
403: {
|
|
46030
|
+
headers: {
|
|
46031
|
+
[name: string]: unknown;
|
|
46032
|
+
};
|
|
46033
|
+
content: {
|
|
46034
|
+
"application/json": components["schemas"]["Error"];
|
|
46035
|
+
};
|
|
46036
|
+
};
|
|
46037
|
+
/** @description Internal server error */
|
|
46038
|
+
500: {
|
|
46039
|
+
headers: {
|
|
46040
|
+
[name: string]: unknown;
|
|
46041
|
+
};
|
|
46042
|
+
content: {
|
|
46043
|
+
"application/json": components["schemas"]["Error"];
|
|
46044
|
+
};
|
|
46045
|
+
};
|
|
46046
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
46047
|
+
503: {
|
|
46048
|
+
headers: {
|
|
46049
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
46050
|
+
"Retry-After": string;
|
|
46051
|
+
[name: string]: unknown;
|
|
46052
|
+
};
|
|
46053
|
+
content: {
|
|
46054
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
46055
|
+
};
|
|
46056
|
+
};
|
|
46057
|
+
};
|
|
46058
|
+
};
|
|
46059
|
+
put?: never;
|
|
46060
|
+
post?: never;
|
|
46061
|
+
delete?: never;
|
|
46062
|
+
options?: never;
|
|
46063
|
+
head?: never;
|
|
46064
|
+
patch?: never;
|
|
46065
|
+
trace?: never;
|
|
46066
|
+
};
|
|
45880
46067
|
"/v1/runs/{executionId}": {
|
|
45881
46068
|
parameters: {
|
|
45882
46069
|
query?: never;
|
|
@@ -63131,6 +63318,17 @@ interface components {
|
|
|
63131
63318
|
label: string | null;
|
|
63132
63319
|
} | null;
|
|
63133
63320
|
};
|
|
63321
|
+
RunProductStats: {
|
|
63322
|
+
/** @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. */
|
|
63323
|
+
byProductId: {
|
|
63324
|
+
[key: string]: {
|
|
63325
|
+
/** @description Of those, the runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
63326
|
+
failed: number;
|
|
63327
|
+
/** @description Runs of the product's flows plus runs of its agents. */
|
|
63328
|
+
total: number;
|
|
63329
|
+
};
|
|
63330
|
+
};
|
|
63331
|
+
};
|
|
63134
63332
|
RunStats: {
|
|
63135
63333
|
/** @description Runs grouped by agent id. */
|
|
63136
63334
|
byAgentId: {
|
|
@@ -63840,6 +64038,17 @@ interface components {
|
|
|
63840
64038
|
updatedAt: string | null;
|
|
63841
64039
|
versionId: string | null;
|
|
63842
64040
|
};
|
|
64041
|
+
SuiteEvalCaseProposals: {
|
|
64042
|
+
/** @description The newest matching proposals, at most `limit`. */
|
|
64043
|
+
proposals: components["schemas"]["EvalCaseProposal"][];
|
|
64044
|
+
suiteId: string;
|
|
64045
|
+
/** @description Total proposals on this suite matching the filter. */
|
|
64046
|
+
total: number;
|
|
64047
|
+
};
|
|
64048
|
+
SuiteEvalCaseProposalsList: {
|
|
64049
|
+
limit: number;
|
|
64050
|
+
suites: components["schemas"]["SuiteEvalCaseProposals"][];
|
|
64051
|
+
};
|
|
63843
64052
|
SurfaceEnsureConflict: {
|
|
63844
64053
|
/** @enum {string} */
|
|
63845
64054
|
code: "external_modification" | "remote_changed";
|
|
@@ -64467,8 +64676,6 @@ interface operations {
|
|
|
64467
64676
|
};
|
|
64468
64677
|
};
|
|
64469
64678
|
}
|
|
64470
|
-
//#endregion
|
|
64471
|
-
//#region src/sandbox-deployment-types.d.ts
|
|
64472
64679
|
type DeploymentWriteBody = NonNullable<paths['/v1/sandbox-deployments']['post']['requestBody']>['content']['application/json'];
|
|
64473
64680
|
type ConfigWrite = Extract<DeploymentWriteBody, {
|
|
64474
64681
|
config: unknown;
|
|
@@ -64494,8 +64701,6 @@ type ManagedDeploymentSleepPolicy = NonNullable<ManagedDeploymentConfig['sleepPo
|
|
|
64494
64701
|
type ManagedDeploymentHealth = NonNullable<ManagedDeploymentConfig['health']>;
|
|
64495
64702
|
type ManagedDeploymentCapability = ManagedDeploymentDesiredSpec['capabilities'][number];
|
|
64496
64703
|
type ManagedDeploymentProfileIdentity = ManagedDeploymentDesiredSpec['profile'];
|
|
64497
|
-
//#endregion
|
|
64498
|
-
//#region src/detached-reconnect.d.ts
|
|
64499
64704
|
/**
|
|
64500
64705
|
* Transparent reconnect for a DETACHED agent stream (ADR 0020 point 6;
|
|
64501
64706
|
* blueprint `2026-08-25-durable-by-default-agent-turns.md` §4).
|
|
@@ -64586,8 +64791,6 @@ type DetachedReattach = (args: {
|
|
|
64586
64791
|
* to follow, and swallowing it here would hide the error from the caller.
|
|
64587
64792
|
*/
|
|
64588
64793
|
export declare function withDetachedReconnect(response: Response, reattach: DetachedReattach, options?: DetachedReconnectOptions): Response;
|
|
64589
|
-
//#endregion
|
|
64590
|
-
//#region src/generated/aliases.d.ts
|
|
64591
64794
|
/**
|
|
64592
64795
|
* The single SSE event union — the wire format for every execution stream
|
|
64593
64796
|
* (dispatch, agents, client chat, eval). This is the canonical stream type.
|
|
@@ -64755,8 +64958,6 @@ type AgentDeploymentList = paths['/v1/agents/{id}/deployments']['get']['response
|
|
|
64755
64958
|
type AgentDeploymentPromotion = NonNullable<NonNullable<paths['/v1/agents/{id}/aliases/{alias}']['put']['requestBody']>['content']['application/json']['promotion']>;
|
|
64756
64959
|
/** What an ensure converge reports about the pointer it aimed. */
|
|
64757
64960
|
type AgentEnsureDeployment = components['schemas']['AgentEnsureDeployment'];
|
|
64758
|
-
//#endregion
|
|
64759
|
-
//#region src/agent-aliases-namespace.d.ts
|
|
64760
64961
|
/**
|
|
64761
64962
|
* The HTTP verbs the alias plane needs. Both SDK client classes satisfy it, so
|
|
64762
64963
|
* one implementation serves `Runtype.agents.aliases` and `client.agents.aliases`.
|
|
@@ -64951,8 +65152,6 @@ export declare class AgentDeploymentsNamespace {
|
|
|
64951
65152
|
/** Receipts newest first, cursor-paginated; filter to one pointer with `alias`. */
|
|
64952
65153
|
list(agentId: string, options?: ListAgentDeploymentsOptions): Promise<AgentDeploymentList>;
|
|
64953
65154
|
}
|
|
64954
|
-
//#endregion
|
|
64955
|
-
//#region src/collections-ensure.d.ts
|
|
64956
65155
|
type RecordCollectionValidationMode = 'off' | 'warn' | 'enforce';
|
|
64957
65156
|
/** A repo-declared record collection. `slug` is identity; omitted fields converge to create defaults. */
|
|
64958
65157
|
interface RecordCollectionDefinition {
|
|
@@ -65038,8 +65237,6 @@ export declare class CollectionDriftError extends Error {
|
|
|
65038
65237
|
readonly plan: EnsureCollectionPlan;
|
|
65039
65238
|
constructor(slug: string, plan: EnsureCollectionPlan);
|
|
65040
65239
|
}
|
|
65041
|
-
//#endregion
|
|
65042
|
-
//#region src/error-handling-types.d.ts
|
|
65043
65240
|
/**
|
|
65044
65241
|
* Error Handling Types
|
|
65045
65242
|
*
|
|
@@ -65151,8 +65348,6 @@ interface ContextErrorHandling {
|
|
|
65151
65348
|
onError: ErrorHandlingMode;
|
|
65152
65349
|
fallbacks?: ContextFallback[];
|
|
65153
65350
|
}
|
|
65154
|
-
//#endregion
|
|
65155
|
-
//#region src/stream-utils.d.ts
|
|
65156
65351
|
/**
|
|
65157
65352
|
* Options for the flow stream consumers.
|
|
65158
65353
|
*
|
|
@@ -65213,8 +65408,6 @@ export declare function processStream(response: Response, callbacks?: StreamCall
|
|
|
65213
65408
|
* ```
|
|
65214
65409
|
*/
|
|
65215
65410
|
export declare function streamEvents(response: Response, _options?: StreamConsumeOptions): AsyncGenerator<StreamEvent>;
|
|
65216
|
-
//#endregion
|
|
65217
|
-
//#region src/flow-result.d.ts
|
|
65218
65411
|
/**
|
|
65219
65412
|
* Result wrapper for flow execution
|
|
65220
65413
|
*
|
|
@@ -65328,8 +65521,6 @@ export declare class FlowResult {
|
|
|
65328
65521
|
*/
|
|
65329
65522
|
private ensureNotConsumed;
|
|
65330
65523
|
}
|
|
65331
|
-
//#endregion
|
|
65332
|
-
//#region src/flow-builder.d.ts
|
|
65333
65524
|
interface PromptStepConfig {
|
|
65334
65525
|
name: string;
|
|
65335
65526
|
model: string;
|
|
@@ -66423,8 +66614,6 @@ export declare function createExternalTool(config: {
|
|
|
66423
66614
|
body?: string;
|
|
66424
66615
|
idempotent?: boolean;
|
|
66425
66616
|
}): RuntimeTool;
|
|
66426
|
-
//#endregion
|
|
66427
|
-
//#region src/types.d.ts
|
|
66428
66617
|
export type JsonPrimitive = string | number | boolean | null;
|
|
66429
66618
|
export type JsonArray = JsonValue[];
|
|
66430
66619
|
export type JsonObject = {
|
|
@@ -68074,8 +68263,6 @@ export interface ProductionHealthResponse {
|
|
|
68074
68263
|
insights: HealthInsight[];
|
|
68075
68264
|
generatedAt: string;
|
|
68076
68265
|
}
|
|
68077
|
-
//#endregion
|
|
68078
|
-
//#region src/api-key-request-types.d.ts
|
|
68079
68266
|
/**
|
|
68080
68267
|
* Agent API key request types.
|
|
68081
68268
|
*
|
|
@@ -68257,8 +68444,6 @@ interface ApiKeyRequestListParams {
|
|
|
68257
68444
|
limit?: number;
|
|
68258
68445
|
cursor?: string;
|
|
68259
68446
|
}
|
|
68260
|
-
//#endregion
|
|
68261
|
-
//#region src/client-token-types.d.ts
|
|
68262
68447
|
/**
|
|
68263
68448
|
* Client Token Types
|
|
68264
68449
|
*
|
|
@@ -68429,8 +68614,6 @@ interface ListConversationsResponse {
|
|
|
68429
68614
|
hasMore: boolean;
|
|
68430
68615
|
};
|
|
68431
68616
|
}
|
|
68432
|
-
//#endregion
|
|
68433
|
-
//#region src/generated-tool-gate.d.ts
|
|
68434
68617
|
declare const CUSTOM_TOOL_SANDBOX_PROVIDERS: readonly ["quickjs", "daytona", "cloudflare-worker", "runtype-sandbox"];
|
|
68435
68618
|
type GateSandboxProvider = (typeof CUSTOM_TOOL_SANDBOX_PROVIDERS)[number] | 'cloudflare-sandbox';
|
|
68436
68619
|
interface GeneratedRuntimeToolGateOptions {
|
|
@@ -68515,8 +68698,6 @@ export declare function attachRuntimeToolsToDispatchRequest(request: DispatchReq
|
|
|
68515
68698
|
* a redispatch request in one call.
|
|
68516
68699
|
*/
|
|
68517
68700
|
export declare function applyGeneratedRuntimeToolProposalToDispatchRequest(request: DispatchRequest, proposal: unknown, options?: ApplyGeneratedProposalOptions): ApplyGeneratedProposalResult;
|
|
68518
|
-
//#endregion
|
|
68519
|
-
//#region src/schedules-ensure.d.ts
|
|
68520
68701
|
/** Exactly one key: a flow or agent by id, or by name (portable across environments). */
|
|
68521
68702
|
export type ScheduleTarget = {
|
|
68522
68703
|
flowId: string;
|
|
@@ -68660,8 +68841,6 @@ interface ScheduleEnsureTransport {
|
|
|
68660
68841
|
export declare function ensureSchedule(client: ScheduleEnsureTransport, definition: ScheduleDefinition, options?: EnsureScheduleOptions): Promise<EnsureScheduleResult>;
|
|
68661
68842
|
/** Pull the canonical definition + provenance for a schedule by name and target. */
|
|
68662
68843
|
export declare function pullSchedule(client: ScheduleEnsureTransport, name: string, target: ScheduleTarget): Promise<SchedulePullResult>;
|
|
68663
|
-
//#endregion
|
|
68664
|
-
//#region src/typed-records.d.ts
|
|
68665
68844
|
/**
|
|
68666
68845
|
* Customer-augmented map of collection slug → metadata shape. Empty by default;
|
|
68667
68846
|
* populated via declaration merging (see the module docstring). Because it is
|
|
@@ -68690,8 +68869,6 @@ export type TypedRecordWriteResponse<S extends string> = Omit<RecordWriteRespons
|
|
|
68690
68869
|
export type TypedCreateRecordRequest<S extends string> = Omit<CreateRecordRequest, 'type' | 'metadata'> & {
|
|
68691
68870
|
metadata?: CollectionMeta<S>;
|
|
68692
68871
|
};
|
|
68693
|
-
//#endregion
|
|
68694
|
-
//#region src/workflow-types.d.ts
|
|
68695
68872
|
export interface RunTaskStateSlice {
|
|
68696
68873
|
agentId: string;
|
|
68697
68874
|
taskName: string;
|
|
@@ -68832,8 +69009,6 @@ export interface WorkflowDefinition {
|
|
|
68832
69009
|
/** Build the "Best Candidate" block for session messages */
|
|
68833
69010
|
buildCandidateBlock?: (state: RunTaskStateSlice) => string;
|
|
68834
69011
|
}
|
|
68835
|
-
//#endregion
|
|
68836
|
-
//#region src/endpoints.d.ts
|
|
68837
69012
|
export interface ApiClient {
|
|
68838
69013
|
get<T>(path: string, params?: {
|
|
68839
69014
|
[key: string]: any;
|
|
@@ -71847,8 +72022,6 @@ export declare class ToolApprovalGrantsEndpoint {
|
|
|
71847
72022
|
revoked: boolean;
|
|
71848
72023
|
}>;
|
|
71849
72024
|
}
|
|
71850
|
-
//#endregion
|
|
71851
|
-
//#region src/sandbox-deployments-namespace.d.ts
|
|
71852
72025
|
interface ManagedDeploymentWriteOptions {
|
|
71853
72026
|
idempotencyKey: string;
|
|
71854
72027
|
}
|
|
@@ -71869,8 +72042,6 @@ export declare class SandboxDeploymentsNamespace {
|
|
|
71869
72042
|
/** Replace the complete config or spec without renewing retention. */
|
|
71870
72043
|
update(id: string, data: ManagedDeploymentWriteRequest, options: ManagedDeploymentUpdateOptions): Promise<ManagedDeploymentAccepted>;
|
|
71871
72044
|
}
|
|
71872
|
-
//#endregion
|
|
71873
|
-
//#region src/judge-diagnostics.d.ts
|
|
71874
72045
|
/** The platform judge's response classification, without response text or schema error values. */
|
|
71875
72046
|
type JudgeParseError = 'empty_completion' | 'invalid_json' | 'invalid_contract' | 'missing_access_assessment' | 'invalid_access_assessment' | 'output_truncated';
|
|
71876
72047
|
/** Metadata from one platform judge attempt. Mirrors the shared contract without a runtime dependency. */
|
|
@@ -71897,8 +72068,6 @@ interface JudgeDiagnostics {
|
|
|
71897
72068
|
attempts: JudgeAttemptDiagnostic[];
|
|
71898
72069
|
flowFailure?: 'deadline_exhausted' | 'execution_failed' | 'invalid_response';
|
|
71899
72070
|
}
|
|
71900
|
-
//#endregion
|
|
71901
|
-
//#region src/evals-ensure.d.ts
|
|
71902
72071
|
/**
|
|
71903
72072
|
* Per-grader severity (mirror of `@runtypelabs/shared`'s `GraderSeverity`). A
|
|
71904
72073
|
* `gate` miss always fails the case; a `soft` miss is tracked-but-not-failing
|
|
@@ -72572,8 +72741,6 @@ export declare function pullEval(client: RuntypeClient$1, name: string): Promise
|
|
|
72572
72741
|
* supported here: `claude_managed` agents and inline/virtual agent targets.
|
|
72573
72742
|
*/
|
|
72574
72743
|
export declare function runEvalSuite(client: RuntypeClient$1, input: RunEvalInput): Promise<RunEvalResult>;
|
|
72575
|
-
//#endregion
|
|
72576
|
-
//#region src/flows-ensure.d.ts
|
|
72577
72744
|
/** SHA-256 (hex) over the canonical normalized step list (steps only). */
|
|
72578
72745
|
export declare function computeFlowContentHash(steps: unknown[]): Promise<string>;
|
|
72579
72746
|
/**
|
|
@@ -72736,8 +72903,6 @@ export declare class FlowDriftError extends Error {
|
|
|
72736
72903
|
readonly plan: EnsureFlowPlan;
|
|
72737
72904
|
constructor(plan: EnsureFlowPlan);
|
|
72738
72905
|
}
|
|
72739
|
-
//#endregion
|
|
72740
|
-
//#region src/flows-namespace.d.ts
|
|
72741
72906
|
interface LocalToolsOptions {
|
|
72742
72907
|
localTools?: Record<string, (args: unknown) => Promise<unknown>>;
|
|
72743
72908
|
}
|
|
@@ -73115,8 +73280,6 @@ export declare class RuntypeFlowBuilder {
|
|
|
73115
73280
|
private addRawStep;
|
|
73116
73281
|
private addStep;
|
|
73117
73282
|
}
|
|
73118
|
-
//#endregion
|
|
73119
|
-
//#region src/batches-namespace.d.ts
|
|
73120
73283
|
interface BatchScheduleConfig {
|
|
73121
73284
|
/** Flow ID to execute for each record */
|
|
73122
73285
|
flowId: string;
|
|
@@ -73241,8 +73404,6 @@ export declare class BatchesNamespace {
|
|
|
73241
73404
|
total: number;
|
|
73242
73405
|
}>;
|
|
73243
73406
|
}
|
|
73244
|
-
//#endregion
|
|
73245
|
-
//#region src/evals-suites.d.ts
|
|
73246
73407
|
/** The most recent run of a suite, with its score once graded. */
|
|
73247
73408
|
interface EvalSuiteLatestRun {
|
|
73248
73409
|
runId: string;
|
|
@@ -73658,8 +73819,6 @@ export declare class EvalSuitesNamespace {
|
|
|
73658
73819
|
*/
|
|
73659
73820
|
getCoverage(suiteId: string): Promise<EvalSuiteCoverage>;
|
|
73660
73821
|
}
|
|
73661
|
-
//#endregion
|
|
73662
|
-
//#region src/evals-namespace.d.ts
|
|
73663
73822
|
interface ModelOverride$1 {
|
|
73664
73823
|
/** Name of the step to override */
|
|
73665
73824
|
stepName: string;
|
|
@@ -73984,8 +74143,6 @@ export declare class EvalsNamespace {
|
|
|
73984
74143
|
total: number;
|
|
73985
74144
|
}>;
|
|
73986
74145
|
}
|
|
73987
|
-
//#endregion
|
|
73988
|
-
//#region src/prompts-namespace.d.ts
|
|
73989
74146
|
interface CreatePromptData {
|
|
73990
74147
|
/** Prompt name */
|
|
73991
74148
|
name: string;
|
|
@@ -74146,8 +74303,6 @@ export declare class PromptsNamespace {
|
|
|
74146
74303
|
*/
|
|
74147
74304
|
delete(promptId: string): Promise<void>;
|
|
74148
74305
|
}
|
|
74149
|
-
//#endregion
|
|
74150
|
-
//#region src/skills-ensure.d.ts
|
|
74151
74306
|
interface SkillContentInput {
|
|
74152
74307
|
/** Identity — excluded from the hash. */
|
|
74153
74308
|
name: string;
|
|
@@ -74258,8 +74413,6 @@ export declare class SkillDriftError extends Error {
|
|
|
74258
74413
|
readonly plan: EnsureSkillPlan;
|
|
74259
74414
|
constructor(plan: EnsureSkillPlan);
|
|
74260
74415
|
}
|
|
74261
|
-
//#endregion
|
|
74262
|
-
//#region src/skills-namespace.d.ts
|
|
74263
74416
|
/** Lifecycle status of a skill. */
|
|
74264
74417
|
type SkillStatus = 'draft' | 'active' | 'archived';
|
|
74265
74418
|
/** Trust level recorded on a skill (governs UI warnings). */
|
|
@@ -74693,8 +74846,6 @@ export declare class SkillsNamespace {
|
|
|
74693
74846
|
*/
|
|
74694
74847
|
pull(name: string): Promise<SkillPullResult>;
|
|
74695
74848
|
}
|
|
74696
|
-
//#endregion
|
|
74697
|
-
//#region src/agents-namespace.d.ts
|
|
74698
74849
|
/**
|
|
74699
74850
|
* The refusal a client-side `release` + `deploy` mix answers with. Byte-identical
|
|
74700
74851
|
* to the server's, so both spellings of the mistake read the same.
|
|
@@ -75080,16 +75231,12 @@ export declare class AgentsNamespace {
|
|
|
75080
75231
|
private memoize;
|
|
75081
75232
|
private request;
|
|
75082
75233
|
}
|
|
75083
|
-
//#endregion
|
|
75084
|
-
//#region src/executions-namespace.d.ts
|
|
75085
75234
|
/** Read-only namespace for durable asynchronous execution handles. */
|
|
75086
75235
|
export declare class ExecutionsNamespace {
|
|
75087
75236
|
private readonly getClient;
|
|
75088
75237
|
constructor(getClient: () => RuntypeClient$1);
|
|
75089
75238
|
getStatus(executionId: string): Promise<AsyncExecutionStatus>;
|
|
75090
75239
|
}
|
|
75091
|
-
//#endregion
|
|
75092
|
-
//#region src/runs-namespace.d.ts
|
|
75093
75240
|
/**
|
|
75094
75241
|
* One run, as `GET /v1/runs` returns it. A local copy of `RunListRow` from
|
|
75095
75242
|
* `@runtypelabs/shared`: this package is published to npm and its source runs
|
|
@@ -75284,8 +75431,6 @@ export declare class RunsNamespace {
|
|
|
75284
75431
|
list(params?: RunListParams): Promise<RunListResponse>;
|
|
75285
75432
|
get(executionId: string, params?: Pick<RunListParams, 'view' | 'overlay'>): Promise<RunListRow>;
|
|
75286
75433
|
}
|
|
75287
|
-
//#endregion
|
|
75288
|
-
//#region src/tools-ensure.d.ts
|
|
75289
75434
|
/** Canonical normalized form of a tool definition (name excluded — identity). */
|
|
75290
75435
|
export declare function normalizeToolDefinition(definition: ToolContentInput): {
|
|
75291
75436
|
toolType: string;
|
|
@@ -75398,8 +75543,6 @@ export declare class ToolDriftError extends Error {
|
|
|
75398
75543
|
readonly plan: EnsureToolPlan;
|
|
75399
75544
|
constructor(plan: EnsureToolPlan);
|
|
75400
75545
|
}
|
|
75401
|
-
//#endregion
|
|
75402
|
-
//#region src/tools-namespace.d.ts
|
|
75403
75546
|
export declare class ToolsNamespace {
|
|
75404
75547
|
private getClient;
|
|
75405
75548
|
constructor(getClient: () => RuntypeClient$1);
|
|
@@ -75432,8 +75575,6 @@ export declare class ToolsNamespace {
|
|
|
75432
75575
|
*/
|
|
75433
75576
|
pull(name: string): Promise<ToolPullResult>;
|
|
75434
75577
|
}
|
|
75435
|
-
//#endregion
|
|
75436
|
-
//#region src/question-sets-ensure.d.ts
|
|
75437
75578
|
/** A question set declared in code. `slug` is its identity within the organization. */
|
|
75438
75579
|
interface QuestionSetDefinition {
|
|
75439
75580
|
slug: string;
|
|
@@ -75520,8 +75661,6 @@ export declare class QuestionSetDriftError extends Error {
|
|
|
75520
75661
|
readonly plan: EnsureQuestionSetPlan;
|
|
75521
75662
|
constructor(slug: string, plan: EnsureQuestionSetPlan);
|
|
75522
75663
|
}
|
|
75523
|
-
//#endregion
|
|
75524
|
-
//#region src/question-sets-namespace.d.ts
|
|
75525
75664
|
/** Question set config-as-code: `ensure` and `pull`. */
|
|
75526
75665
|
export declare class QuestionSetsNamespace {
|
|
75527
75666
|
private getClient;
|
|
@@ -75541,8 +75680,6 @@ export declare class QuestionSetsNamespace {
|
|
|
75541
75680
|
/** Pull the live definition and provenance for a slug, to absorb a dashboard edit. */
|
|
75542
75681
|
pull(slug: string): Promise<QuestionSetPullResult>;
|
|
75543
75682
|
}
|
|
75544
|
-
//#endregion
|
|
75545
|
-
//#region src/signals-namespace.d.ts
|
|
75546
75683
|
/** A signal set version's definition, as the API validates it. */
|
|
75547
75684
|
interface SignalSetDefinitionInput {
|
|
75548
75685
|
unit?: 'turn';
|
|
@@ -75774,8 +75911,6 @@ export declare class SignalsNamespace {
|
|
|
75774
75911
|
};
|
|
75775
75912
|
}>;
|
|
75776
75913
|
}
|
|
75777
|
-
//#endregion
|
|
75778
|
-
//#region src/products-ensure.d.ts
|
|
75779
75914
|
/** Canonical normalized form of a product definition (name + canvas excluded). */
|
|
75780
75915
|
export declare function normalizeProductDefinition(definition: ProductContentInput): {
|
|
75781
75916
|
description?: string;
|
|
@@ -75876,8 +76011,6 @@ export declare class ProductDriftError extends Error {
|
|
|
75876
76011
|
readonly plan: EnsureProductPlan;
|
|
75877
76012
|
constructor(plan: EnsureProductPlan);
|
|
75878
76013
|
}
|
|
75879
|
-
//#endregion
|
|
75880
|
-
//#region src/products-ensure-fpo.d.ts
|
|
75881
76014
|
/** An FPO for hashing/sending. Permissive — the server validates the rich contract. */
|
|
75882
76015
|
type FpoInput = Record<string, unknown>;
|
|
75883
76016
|
/**
|
|
@@ -75987,8 +76120,6 @@ export declare function ensureFpo(client: RuntypeClient$1, fpo: FpoInput, option
|
|
|
75987
76120
|
* `tool:<name>`); inspect `warnings` for per-pull caveats.
|
|
75988
76121
|
*/
|
|
75989
76122
|
export declare function pullFpo(client: RuntypeClient$1, name: string): Promise<PullFpoResult>;
|
|
75990
|
-
//#endregion
|
|
75991
|
-
//#region src/products-namespace.d.ts
|
|
75992
76123
|
/** Merged first page of every activity source a product has. */
|
|
75993
76124
|
type ProductActivityResponse = paths['/v1/products/{id}/activity']['get']['responses'][200]['content']['application/json'];
|
|
75994
76125
|
interface ProductActivityOptions {
|
|
@@ -76074,8 +76205,6 @@ export declare class ProductsNamespace {
|
|
|
76074
76205
|
*/
|
|
76075
76206
|
activity(productId: string, options?: ProductActivityOptions): Promise<ProductActivityResponse>;
|
|
76076
76207
|
}
|
|
76077
|
-
//#endregion
|
|
76078
|
-
//#region src/surfaces-ensure.d.ts
|
|
76079
76208
|
/**
|
|
76080
76209
|
* Canonical normalized form of a surface definition (name excluded — identity).
|
|
76081
76210
|
* `inbound` / `outbound` are EXCLUDED — they carry sealed secrets that hash
|
|
@@ -76196,8 +76325,6 @@ export declare class SurfaceDriftError extends Error {
|
|
|
76196
76325
|
readonly plan: EnsureSurfacePlan;
|
|
76197
76326
|
constructor(plan: EnsureSurfacePlan);
|
|
76198
76327
|
}
|
|
76199
|
-
//#endregion
|
|
76200
|
-
//#region src/surfaces-namespace.d.ts
|
|
76201
76328
|
export declare class SurfacesNamespace {
|
|
76202
76329
|
private getClient;
|
|
76203
76330
|
constructor(getClient: () => RuntypeClient$1);
|
|
@@ -76229,8 +76356,6 @@ export declare class SurfacesNamespace {
|
|
|
76229
76356
|
*/
|
|
76230
76357
|
pull(productId: string, name: string): Promise<SurfacePullResult>;
|
|
76231
76358
|
}
|
|
76232
|
-
//#endregion
|
|
76233
|
-
//#region src/client-tokens-namespace.d.ts
|
|
76234
76359
|
/**
|
|
76235
76360
|
* The desired state of a client token, keyed by `name`. Capabilities, origins,
|
|
76236
76361
|
* and target always converge; limits and `config` converge only when set.
|
|
@@ -76328,8 +76453,6 @@ export declare class ClientTokensNamespace {
|
|
|
76328
76453
|
*/
|
|
76329
76454
|
ensure(definition: ClientTokenDefinition, options?: EnsureClientTokenOptions): Promise<EnsureClientTokenResult>;
|
|
76330
76455
|
}
|
|
76331
|
-
//#endregion
|
|
76332
|
-
//#region src/runtype.d.ts
|
|
76333
76456
|
interface RuntypeConfig {
|
|
76334
76457
|
/** API key for authentication */
|
|
76335
76458
|
apiKey?: string;
|
|
@@ -76785,8 +76908,6 @@ export declare class Runtype {
|
|
|
76785
76908
|
*/
|
|
76786
76909
|
static get clientTokens(): ClientTokensNamespace;
|
|
76787
76910
|
}
|
|
76788
|
-
//#endregion
|
|
76789
|
-
//#region src/a2a-handler.d.ts
|
|
76790
76911
|
/** The text-only A2A 0.3 message delivered to a framework callback. */
|
|
76791
76912
|
interface A2ATextMessage {
|
|
76792
76913
|
role: 'user' | 'agent';
|
|
@@ -76821,8 +76942,6 @@ interface A2AHandlerOptions {
|
|
|
76821
76942
|
* The callback owns history, authorization of context IDs, and model cancellation.
|
|
76822
76943
|
*/
|
|
76823
76944
|
export declare function createA2AHandler(options: A2AHandlerOptions): (request: Request) => Promise<Response>;
|
|
76824
|
-
//#endregion
|
|
76825
|
-
//#region src/agent-promotion.d.ts
|
|
76826
76945
|
/**
|
|
76827
76946
|
* The HTTP surface a promotion leg needs from one organization's credentials.
|
|
76828
76947
|
* Both SDK client classes satisfy it, and a promotion always holds two of
|
|
@@ -76944,9 +77063,6 @@ interface PromoteAgentResult {
|
|
|
76944
77063
|
* caller's to run and report; nothing here is gated on it.
|
|
76945
77064
|
*/
|
|
76946
77065
|
export declare function promoteAgent(input: PromoteAgentInput): Promise<PromoteAgentResult>;
|
|
76947
|
-
//#endregion
|
|
76948
|
-
//#region ../shared/dist/models-BFb-uNHy.d.ts
|
|
76949
|
-
//#region src/generated-evaluation-models.d.ts
|
|
76950
77066
|
/**
|
|
76951
77067
|
* Per-token USD exactly as the gateway listed it, plus the per-million figures
|
|
76952
77068
|
* derived from those strings. The verbatim strings are what metering multiplies
|
|
@@ -76987,8 +77103,6 @@ type DecisionModelDescriptor = DecisionModelDetails & ({
|
|
|
76987
77103
|
readonly provider: 'cloudflare';
|
|
76988
77104
|
readonly route: 'cloudflare-workers-ai';
|
|
76989
77105
|
});
|
|
76990
|
-
//#endregion
|
|
76991
|
-
//#region src/decision-models.d.ts
|
|
76992
77106
|
/** Supported model capabilities, not the calling organization's credential or spending readiness. */
|
|
76993
77107
|
type DecisionModelCatalogEntry = DecisionModelDescriptor & {
|
|
76994
77108
|
credentialRequirements: {
|
|
@@ -77000,9 +77114,6 @@ type DecisionModelCatalogEntry = DecisionModelDescriptor & {
|
|
|
77000
77114
|
interface DecisionModelCatalog {
|
|
77001
77115
|
models: DecisionModelCatalogEntry[];
|
|
77002
77116
|
}
|
|
77003
|
-
//#endregion
|
|
77004
|
-
//#region ../shared/dist/index-BEIJ_QMH.d.ts
|
|
77005
|
-
//#region src/extraction/models.d.ts
|
|
77006
77117
|
type ExtractionModelProvider = 'cloudflare';
|
|
77007
77118
|
type ExtractionModelRoute = 'cloudflare-workers-ai';
|
|
77008
77119
|
interface ExtractionModelPricing {
|
|
@@ -77029,8 +77140,6 @@ interface ExtractionModelDescriptor {
|
|
|
77029
77140
|
readonly platformFunding: boolean;
|
|
77030
77141
|
readonly docsUrl: string;
|
|
77031
77142
|
}
|
|
77032
|
-
//#endregion
|
|
77033
|
-
//#region src/extraction-models.d.ts
|
|
77034
77143
|
/** Supported model capabilities, not the calling organization's spending readiness. */
|
|
77035
77144
|
type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
77036
77145
|
credentialRequirements: {
|
|
@@ -77042,8 +77151,6 @@ type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
|
77042
77151
|
interface ExtractionModelCatalog {
|
|
77043
77152
|
models: ExtractionModelCatalogEntry[];
|
|
77044
77153
|
}
|
|
77045
|
-
//#endregion
|
|
77046
|
-
//#region src/simulation-tool-memory-types.d.ts
|
|
77047
77154
|
/** How one tool call was answered: the rung of the response ladder that served it. */
|
|
77048
77155
|
type SimulationServedBy = 'live' | 'recorded' | 'transformed' | 'composite' | 'synthesized' | 'stub' | 'rejected' | 'fault';
|
|
77049
77156
|
/** One recorded `tools/call` of a target; `arguments` and `result` are null on a shape-only row. */
|
|
@@ -77214,8 +77321,6 @@ interface SimulationDesignBrief {
|
|
|
77214
77321
|
live: boolean;
|
|
77215
77322
|
}>;
|
|
77216
77323
|
}
|
|
77217
|
-
//#endregion
|
|
77218
|
-
//#region src/simulation-episode-types.d.ts
|
|
77219
77324
|
type SimulationEpisodeStatus = 'queued' | 'running' | 'completed' | 'failed' | 'skipped' | 'cancelled';
|
|
77220
77325
|
/** Why an episode ended. */
|
|
77221
77326
|
type SimulationTermination = 'goal_met' | 'gave_up' | 'max_turns' | 'agent_error' | 'simulator_error' | 'stalled' | 'deadline' | 'target_unavailable' | 'client_limit' | 'recording_miss' | 'spend_cap' | 'engine_error';
|
|
@@ -77439,8 +77544,6 @@ interface GetSimulationEpisodeResponse {
|
|
|
77439
77544
|
/** Each synthesized answer's review by its exchange id; null when unreviewed. */
|
|
77440
77545
|
synthesisReviews?: Record<string, boolean | null>;
|
|
77441
77546
|
}
|
|
77442
|
-
//#endregion
|
|
77443
|
-
//#region src/simulations-namespace.d.ts
|
|
77444
77547
|
/**
|
|
77445
77548
|
* Simulations tool memory and future designs (`/v1/simulations`): recorded exchanges, tool profiles,
|
|
77446
77549
|
* design previews, synthesis review, design briefs and run episodes. Pre-GA: the API answers 404 `SIMULATIONS_DISABLED`
|
|
@@ -77493,8 +77596,6 @@ export declare class SimulationsEndpoint {
|
|
|
77493
77596
|
/** One episode with its transcript, grader scores and per-turn layer facts: why it failed or surprised. */
|
|
77494
77597
|
getEpisode(runId: string, episodeId: string): Promise<GetSimulationEpisodeResponse>;
|
|
77495
77598
|
}
|
|
77496
|
-
//#endregion
|
|
77497
|
-
//#region src/client.d.ts
|
|
77498
77599
|
type LocalToolHandler = (args: unknown) => Promise<unknown>;
|
|
77499
77600
|
/**
|
|
77500
77601
|
* Richer local tool entry that pairs a handler with the wire schema the
|
|
@@ -77724,8 +77825,6 @@ export declare class RuntypeApiError extends Error {
|
|
|
77724
77825
|
* Convenience function to create a new RuntypeClient instance
|
|
77725
77826
|
*/
|
|
77726
77827
|
export declare function createClient(config?: ClientConfig): RuntypeClient;
|
|
77727
|
-
//#endregion
|
|
77728
|
-
//#region src/version.d.ts
|
|
77729
77828
|
export declare const SDK_VERSION: string;
|
|
77730
77829
|
/**
|
|
77731
77830
|
* Canonical client identity the API uses for attribution
|
|
@@ -77742,8 +77841,6 @@ export declare const RUNTYPE_CLIENT_KIND = "sdk";
|
|
|
77742
77841
|
* is the reliable cross-environment signal; this UA carries the version + language.
|
|
77743
77842
|
*/
|
|
77744
77843
|
export declare const SDK_USER_AGENT: string;
|
|
77745
|
-
//#endregion
|
|
77746
|
-
//#region src/offload-markers.d.ts
|
|
77747
77844
|
export declare const LEDGER_ARTIFACT_LINE_PREFIX = "Ledger artifact: ";
|
|
77748
77845
|
/** SDK hot-tail send-view marker: large tool result replaced by a file pointer. */
|
|
77749
77846
|
export declare function buildSendViewOffloadMarker(details: {
|
|
@@ -77772,8 +77869,6 @@ export declare function extractDeclaredToolResultChars(value: unknown): number |
|
|
|
77772
77869
|
export declare function parseOffloadedOutputId(value: string): string | undefined;
|
|
77773
77870
|
/** Parse the tree-log-relative artifact path out of a ledger offload reference. */
|
|
77774
77871
|
export declare function parseLedgerArtifactRelativePath(value: string): string | undefined;
|
|
77775
|
-
//#endregion
|
|
77776
|
-
//#region src/unified-stream-adapter.d.ts
|
|
77777
77872
|
type Json = Record<string, unknown>;
|
|
77778
77873
|
/**
|
|
77779
77874
|
* @deprecated Unified events are now the only public execution-stream format.
|
|
@@ -77805,8 +77900,6 @@ export declare function createFlowEventTranslator(): (event: unknown) => Compati
|
|
|
77805
77900
|
* Returns 0+ callback events per unified event. Construct one per stream.
|
|
77806
77901
|
*/
|
|
77807
77902
|
export declare function createAgentEventTranslator(): (event: unknown) => CompatibilityEvent[];
|
|
77808
|
-
//#endregion
|
|
77809
|
-
//#region src/batch-builder.d.ts
|
|
77810
77903
|
/**
|
|
77811
77904
|
* BatchBuilder - Fluent builder for batch operations
|
|
77812
77905
|
*
|
|
@@ -77919,8 +78012,6 @@ export declare class ClientBatchBuilder extends BatchBuilder {
|
|
|
77919
78012
|
*/
|
|
77920
78013
|
run(): Promise<BatchResult>;
|
|
77921
78014
|
}
|
|
77922
|
-
//#endregion
|
|
77923
|
-
//#region src/eval-builder.d.ts
|
|
77924
78015
|
interface ModelOverride {
|
|
77925
78016
|
/** Name of the step to override */
|
|
77926
78017
|
stepName: string;
|
|
@@ -78111,8 +78202,6 @@ export declare class ClientEvalBuilder extends EvalBuilder {
|
|
|
78111
78202
|
*/
|
|
78112
78203
|
run(): Promise<EvalResult>;
|
|
78113
78204
|
}
|
|
78114
|
-
//#endregion
|
|
78115
|
-
//#region src/codegen-metadata.d.ts
|
|
78116
78205
|
/** How to serialize a field value into TypeScript source code. */
|
|
78117
78206
|
type FieldFormat = 'json' | 'template' | 'raw' | 'value';
|
|
78118
78207
|
/** Describes one field in a step config for code emission. */
|
|
@@ -78832,8 +78921,6 @@ export declare const STEP_TYPE_TO_METHOD: {
|
|
|
78832
78921
|
readonly 'memory-summary': 'memorySummary';
|
|
78833
78922
|
readonly extract: 'extract';
|
|
78834
78923
|
};
|
|
78835
|
-
//#endregion
|
|
78836
|
-
//#region src/workflows/hook-registry.d.ts
|
|
78837
78924
|
interface WorkflowHookSignatures {
|
|
78838
78925
|
/** WorkflowPhase.buildInstructions — used verbatim (no header is added) */
|
|
78839
78926
|
instructions: (state: RunTaskStateSlice) => string;
|
|
@@ -78886,8 +78973,6 @@ export declare function listWorkflowHooks(): Array<{
|
|
|
78886
78973
|
}>;
|
|
78887
78974
|
/** Test seam: remove a custom hook (builtin entries cannot be removed). */
|
|
78888
78975
|
export declare function unregisterWorkflowHook(name: string): boolean;
|
|
78889
|
-
//#endregion
|
|
78890
|
-
//#region src/workflows/workflow-config.d.ts
|
|
78891
78976
|
export declare const DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS = 2;
|
|
78892
78977
|
/** A `"<namespace>:<id>"` reference into the workflow hook registry. */
|
|
78893
78978
|
type WorkflowHookRef = string;
|
|
@@ -79031,8 +79116,6 @@ export declare function buildPolicyGuidance(policy?: WorkflowPolicyConfig): stri
|
|
|
79031
79116
|
* reference fails here — at load time — with an actionable error.
|
|
79032
79117
|
*/
|
|
79033
79118
|
export declare function compileWorkflowConfig(config: WorkflowConfig, deps?: WorkflowCompileDeps): WorkflowDefinition;
|
|
79034
|
-
//#endregion
|
|
79035
|
-
//#region src/workflows/default-workflow.d.ts
|
|
79036
79119
|
/**
|
|
79037
79120
|
* Register the default workflow's behaviors as `builtin:*` hooks. Idempotent.
|
|
79038
79121
|
* Importing this module (or anything that pulls in `defaultWorkflow`) calls it
|
|
@@ -79051,14 +79134,8 @@ export declare function ensureDefaultWorkflowHooks(): void;
|
|
|
79051
79134
|
*/
|
|
79052
79135
|
export declare const defaultWorkflowConfig: WorkflowConfig;
|
|
79053
79136
|
export declare const defaultWorkflow: WorkflowDefinition;
|
|
79054
|
-
//#endregion
|
|
79055
|
-
//#region src/workflows/deploy-workflow.d.ts
|
|
79056
79137
|
export declare const deployWorkflow: WorkflowDefinition;
|
|
79057
|
-
//#endregion
|
|
79058
|
-
//#region src/workflows/game-workflow.d.ts
|
|
79059
79138
|
export declare const gameWorkflow: WorkflowDefinition;
|
|
79060
|
-
//#endregion
|
|
79061
|
-
//#region src/workflows/stall-policy.d.ts
|
|
79062
79139
|
export declare const DEFAULT_STALL_STOP_AFTER = 3;
|
|
79063
79140
|
/** Resolve how many consecutive empty sessions end the run as 'stalled'. */
|
|
79064
79141
|
export declare function resolveStallStopAfter(policy?: WorkflowStallPolicy): number;
|
|
@@ -79077,8 +79154,6 @@ export declare function shouldInjectEmptySessionNudge(policy: WorkflowStallPolic
|
|
|
79077
79154
|
* failure mode directly.
|
|
79078
79155
|
*/
|
|
79079
79156
|
export declare function buildEmptySessionNudge(consecutiveEmptySessions: number): string;
|
|
79080
|
-
//#endregion
|
|
79081
|
-
//#region src/workflow-utils.d.ts
|
|
79082
79157
|
/**
|
|
79083
79158
|
* Utility functions shared between workflow phase handlers and AgentsEndpoint.
|
|
79084
79159
|
*
|
|
@@ -79095,6 +79170,5 @@ export declare function isPreservationSensitiveTask(state: Pick<{
|
|
|
79095
79170
|
export declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | undefined, candidatePaths: string[] | undefined): string[];
|
|
79096
79171
|
export declare function getDefaultPlanPath(taskName: string): string;
|
|
79097
79172
|
export declare function sanitizeTaskSlug(taskName: string): string;
|
|
79098
|
-
//#endregion
|
|
79099
79173
|
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 };
|
|
79100
79174
|
export {}
|