@runtypelabs/sdk 11.8.1 → 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 +206 -136
- package/dist/index.d.ts +206 -136
- package/dist/index.mjs +57 -113
- package/package.json +4 -4
package/dist/index.d.cts
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.
|
|
@@ -18449,6 +18448,88 @@ interface paths {
|
|
|
18449
18448
|
patch?: never;
|
|
18450
18449
|
trace?: never;
|
|
18451
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
|
+
};
|
|
18452
18533
|
"/v1/eval/pull": {
|
|
18453
18534
|
parameters: {
|
|
18454
18535
|
query?: never;
|
|
@@ -45881,6 +45962,108 @@ interface paths {
|
|
|
45881
45962
|
patch?: never;
|
|
45882
45963
|
trace?: never;
|
|
45883
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
|
+
};
|
|
45884
46067
|
"/v1/runs/{executionId}": {
|
|
45885
46068
|
parameters: {
|
|
45886
46069
|
query?: never;
|
|
@@ -63135,6 +63318,17 @@ interface components {
|
|
|
63135
63318
|
label: string | null;
|
|
63136
63319
|
} | null;
|
|
63137
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
|
+
};
|
|
63138
63332
|
RunStats: {
|
|
63139
63333
|
/** @description Runs grouped by agent id. */
|
|
63140
63334
|
byAgentId: {
|
|
@@ -63844,6 +64038,17 @@ interface components {
|
|
|
63844
64038
|
updatedAt: string | null;
|
|
63845
64039
|
versionId: string | null;
|
|
63846
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
|
+
};
|
|
63847
64052
|
SurfaceEnsureConflict: {
|
|
63848
64053
|
/** @enum {string} */
|
|
63849
64054
|
code: "external_modification" | "remote_changed";
|
|
@@ -64471,8 +64676,6 @@ interface operations {
|
|
|
64471
64676
|
};
|
|
64472
64677
|
};
|
|
64473
64678
|
}
|
|
64474
|
-
//#endregion
|
|
64475
|
-
//#region src/sandbox-deployment-types.d.ts
|
|
64476
64679
|
type DeploymentWriteBody = NonNullable<paths['/v1/sandbox-deployments']['post']['requestBody']>['content']['application/json'];
|
|
64477
64680
|
type ConfigWrite = Extract<DeploymentWriteBody, {
|
|
64478
64681
|
config: unknown;
|
|
@@ -64498,8 +64701,6 @@ type ManagedDeploymentSleepPolicy = NonNullable<ManagedDeploymentConfig['sleepPo
|
|
|
64498
64701
|
type ManagedDeploymentHealth = NonNullable<ManagedDeploymentConfig['health']>;
|
|
64499
64702
|
type ManagedDeploymentCapability = ManagedDeploymentDesiredSpec['capabilities'][number];
|
|
64500
64703
|
type ManagedDeploymentProfileIdentity = ManagedDeploymentDesiredSpec['profile'];
|
|
64501
|
-
//#endregion
|
|
64502
|
-
//#region src/detached-reconnect.d.ts
|
|
64503
64704
|
/**
|
|
64504
64705
|
* Transparent reconnect for a DETACHED agent stream (ADR 0020 point 6;
|
|
64505
64706
|
* blueprint `2026-08-25-durable-by-default-agent-turns.md` §4).
|
|
@@ -64590,8 +64791,6 @@ type DetachedReattach = (args: {
|
|
|
64590
64791
|
* to follow, and swallowing it here would hide the error from the caller.
|
|
64591
64792
|
*/
|
|
64592
64793
|
export declare function withDetachedReconnect(response: Response, reattach: DetachedReattach, options?: DetachedReconnectOptions): Response;
|
|
64593
|
-
//#endregion
|
|
64594
|
-
//#region src/generated/aliases.d.ts
|
|
64595
64794
|
/**
|
|
64596
64795
|
* The single SSE event union — the wire format for every execution stream
|
|
64597
64796
|
* (dispatch, agents, client chat, eval). This is the canonical stream type.
|
|
@@ -64759,8 +64958,6 @@ type AgentDeploymentList = paths['/v1/agents/{id}/deployments']['get']['response
|
|
|
64759
64958
|
type AgentDeploymentPromotion = NonNullable<NonNullable<paths['/v1/agents/{id}/aliases/{alias}']['put']['requestBody']>['content']['application/json']['promotion']>;
|
|
64760
64959
|
/** What an ensure converge reports about the pointer it aimed. */
|
|
64761
64960
|
type AgentEnsureDeployment = components['schemas']['AgentEnsureDeployment'];
|
|
64762
|
-
//#endregion
|
|
64763
|
-
//#region src/agent-aliases-namespace.d.ts
|
|
64764
64961
|
/**
|
|
64765
64962
|
* The HTTP verbs the alias plane needs. Both SDK client classes satisfy it, so
|
|
64766
64963
|
* one implementation serves `Runtype.agents.aliases` and `client.agents.aliases`.
|
|
@@ -64955,8 +65152,6 @@ export declare class AgentDeploymentsNamespace {
|
|
|
64955
65152
|
/** Receipts newest first, cursor-paginated; filter to one pointer with `alias`. */
|
|
64956
65153
|
list(agentId: string, options?: ListAgentDeploymentsOptions): Promise<AgentDeploymentList>;
|
|
64957
65154
|
}
|
|
64958
|
-
//#endregion
|
|
64959
|
-
//#region src/collections-ensure.d.ts
|
|
64960
65155
|
type RecordCollectionValidationMode = 'off' | 'warn' | 'enforce';
|
|
64961
65156
|
/** A repo-declared record collection. `slug` is identity; omitted fields converge to create defaults. */
|
|
64962
65157
|
interface RecordCollectionDefinition {
|
|
@@ -65042,8 +65237,6 @@ export declare class CollectionDriftError extends Error {
|
|
|
65042
65237
|
readonly plan: EnsureCollectionPlan;
|
|
65043
65238
|
constructor(slug: string, plan: EnsureCollectionPlan);
|
|
65044
65239
|
}
|
|
65045
|
-
//#endregion
|
|
65046
|
-
//#region src/error-handling-types.d.ts
|
|
65047
65240
|
/**
|
|
65048
65241
|
* Error Handling Types
|
|
65049
65242
|
*
|
|
@@ -65155,8 +65348,6 @@ interface ContextErrorHandling {
|
|
|
65155
65348
|
onError: ErrorHandlingMode;
|
|
65156
65349
|
fallbacks?: ContextFallback[];
|
|
65157
65350
|
}
|
|
65158
|
-
//#endregion
|
|
65159
|
-
//#region src/stream-utils.d.ts
|
|
65160
65351
|
/**
|
|
65161
65352
|
* Options for the flow stream consumers.
|
|
65162
65353
|
*
|
|
@@ -65217,8 +65408,6 @@ export declare function processStream(response: Response, callbacks?: StreamCall
|
|
|
65217
65408
|
* ```
|
|
65218
65409
|
*/
|
|
65219
65410
|
export declare function streamEvents(response: Response, _options?: StreamConsumeOptions): AsyncGenerator<StreamEvent>;
|
|
65220
|
-
//#endregion
|
|
65221
|
-
//#region src/flow-result.d.ts
|
|
65222
65411
|
/**
|
|
65223
65412
|
* Result wrapper for flow execution
|
|
65224
65413
|
*
|
|
@@ -65332,8 +65521,6 @@ export declare class FlowResult {
|
|
|
65332
65521
|
*/
|
|
65333
65522
|
private ensureNotConsumed;
|
|
65334
65523
|
}
|
|
65335
|
-
//#endregion
|
|
65336
|
-
//#region src/flow-builder.d.ts
|
|
65337
65524
|
interface PromptStepConfig {
|
|
65338
65525
|
name: string;
|
|
65339
65526
|
model: string;
|
|
@@ -66427,8 +66614,6 @@ export declare function createExternalTool(config: {
|
|
|
66427
66614
|
body?: string;
|
|
66428
66615
|
idempotent?: boolean;
|
|
66429
66616
|
}): RuntimeTool;
|
|
66430
|
-
//#endregion
|
|
66431
|
-
//#region src/types.d.ts
|
|
66432
66617
|
export type JsonPrimitive = string | number | boolean | null;
|
|
66433
66618
|
export type JsonArray = JsonValue[];
|
|
66434
66619
|
export type JsonObject = {
|
|
@@ -68078,8 +68263,6 @@ export interface ProductionHealthResponse {
|
|
|
68078
68263
|
insights: HealthInsight[];
|
|
68079
68264
|
generatedAt: string;
|
|
68080
68265
|
}
|
|
68081
|
-
//#endregion
|
|
68082
|
-
//#region src/api-key-request-types.d.ts
|
|
68083
68266
|
/**
|
|
68084
68267
|
* Agent API key request types.
|
|
68085
68268
|
*
|
|
@@ -68261,8 +68444,6 @@ interface ApiKeyRequestListParams {
|
|
|
68261
68444
|
limit?: number;
|
|
68262
68445
|
cursor?: string;
|
|
68263
68446
|
}
|
|
68264
|
-
//#endregion
|
|
68265
|
-
//#region src/client-token-types.d.ts
|
|
68266
68447
|
/**
|
|
68267
68448
|
* Client Token Types
|
|
68268
68449
|
*
|
|
@@ -68433,8 +68614,6 @@ interface ListConversationsResponse {
|
|
|
68433
68614
|
hasMore: boolean;
|
|
68434
68615
|
};
|
|
68435
68616
|
}
|
|
68436
|
-
//#endregion
|
|
68437
|
-
//#region src/generated-tool-gate.d.ts
|
|
68438
68617
|
declare const CUSTOM_TOOL_SANDBOX_PROVIDERS: readonly ["quickjs", "daytona", "cloudflare-worker", "runtype-sandbox"];
|
|
68439
68618
|
type GateSandboxProvider = (typeof CUSTOM_TOOL_SANDBOX_PROVIDERS)[number] | 'cloudflare-sandbox';
|
|
68440
68619
|
interface GeneratedRuntimeToolGateOptions {
|
|
@@ -68519,8 +68698,6 @@ export declare function attachRuntimeToolsToDispatchRequest(request: DispatchReq
|
|
|
68519
68698
|
* a redispatch request in one call.
|
|
68520
68699
|
*/
|
|
68521
68700
|
export declare function applyGeneratedRuntimeToolProposalToDispatchRequest(request: DispatchRequest, proposal: unknown, options?: ApplyGeneratedProposalOptions): ApplyGeneratedProposalResult;
|
|
68522
|
-
//#endregion
|
|
68523
|
-
//#region src/schedules-ensure.d.ts
|
|
68524
68701
|
/** Exactly one key: a flow or agent by id, or by name (portable across environments). */
|
|
68525
68702
|
export type ScheduleTarget = {
|
|
68526
68703
|
flowId: string;
|
|
@@ -68664,8 +68841,6 @@ interface ScheduleEnsureTransport {
|
|
|
68664
68841
|
export declare function ensureSchedule(client: ScheduleEnsureTransport, definition: ScheduleDefinition, options?: EnsureScheduleOptions): Promise<EnsureScheduleResult>;
|
|
68665
68842
|
/** Pull the canonical definition + provenance for a schedule by name and target. */
|
|
68666
68843
|
export declare function pullSchedule(client: ScheduleEnsureTransport, name: string, target: ScheduleTarget): Promise<SchedulePullResult>;
|
|
68667
|
-
//#endregion
|
|
68668
|
-
//#region src/typed-records.d.ts
|
|
68669
68844
|
/**
|
|
68670
68845
|
* Customer-augmented map of collection slug → metadata shape. Empty by default;
|
|
68671
68846
|
* populated via declaration merging (see the module docstring). Because it is
|
|
@@ -68694,8 +68869,6 @@ export type TypedRecordWriteResponse<S extends string> = Omit<RecordWriteRespons
|
|
|
68694
68869
|
export type TypedCreateRecordRequest<S extends string> = Omit<CreateRecordRequest, 'type' | 'metadata'> & {
|
|
68695
68870
|
metadata?: CollectionMeta<S>;
|
|
68696
68871
|
};
|
|
68697
|
-
//#endregion
|
|
68698
|
-
//#region src/workflow-types.d.ts
|
|
68699
68872
|
export interface RunTaskStateSlice {
|
|
68700
68873
|
agentId: string;
|
|
68701
68874
|
taskName: string;
|
|
@@ -68836,8 +69009,6 @@ export interface WorkflowDefinition {
|
|
|
68836
69009
|
/** Build the "Best Candidate" block for session messages */
|
|
68837
69010
|
buildCandidateBlock?: (state: RunTaskStateSlice) => string;
|
|
68838
69011
|
}
|
|
68839
|
-
//#endregion
|
|
68840
|
-
//#region src/endpoints.d.ts
|
|
68841
69012
|
export interface ApiClient {
|
|
68842
69013
|
get<T>(path: string, params?: {
|
|
68843
69014
|
[key: string]: any;
|
|
@@ -71851,8 +72022,6 @@ export declare class ToolApprovalGrantsEndpoint {
|
|
|
71851
72022
|
revoked: boolean;
|
|
71852
72023
|
}>;
|
|
71853
72024
|
}
|
|
71854
|
-
//#endregion
|
|
71855
|
-
//#region src/sandbox-deployments-namespace.d.ts
|
|
71856
72025
|
interface ManagedDeploymentWriteOptions {
|
|
71857
72026
|
idempotencyKey: string;
|
|
71858
72027
|
}
|
|
@@ -71873,8 +72042,6 @@ export declare class SandboxDeploymentsNamespace {
|
|
|
71873
72042
|
/** Replace the complete config or spec without renewing retention. */
|
|
71874
72043
|
update(id: string, data: ManagedDeploymentWriteRequest, options: ManagedDeploymentUpdateOptions): Promise<ManagedDeploymentAccepted>;
|
|
71875
72044
|
}
|
|
71876
|
-
//#endregion
|
|
71877
|
-
//#region src/judge-diagnostics.d.ts
|
|
71878
72045
|
/** The platform judge's response classification, without response text or schema error values. */
|
|
71879
72046
|
type JudgeParseError = 'empty_completion' | 'invalid_json' | 'invalid_contract' | 'missing_access_assessment' | 'invalid_access_assessment' | 'output_truncated';
|
|
71880
72047
|
/** Metadata from one platform judge attempt. Mirrors the shared contract without a runtime dependency. */
|
|
@@ -71901,8 +72068,6 @@ interface JudgeDiagnostics {
|
|
|
71901
72068
|
attempts: JudgeAttemptDiagnostic[];
|
|
71902
72069
|
flowFailure?: 'deadline_exhausted' | 'execution_failed' | 'invalid_response';
|
|
71903
72070
|
}
|
|
71904
|
-
//#endregion
|
|
71905
|
-
//#region src/evals-ensure.d.ts
|
|
71906
72071
|
/**
|
|
71907
72072
|
* Per-grader severity (mirror of `@runtypelabs/shared`'s `GraderSeverity`). A
|
|
71908
72073
|
* `gate` miss always fails the case; a `soft` miss is tracked-but-not-failing
|
|
@@ -72576,8 +72741,6 @@ export declare function pullEval(client: RuntypeClient$1, name: string): Promise
|
|
|
72576
72741
|
* supported here: `claude_managed` agents and inline/virtual agent targets.
|
|
72577
72742
|
*/
|
|
72578
72743
|
export declare function runEvalSuite(client: RuntypeClient$1, input: RunEvalInput): Promise<RunEvalResult>;
|
|
72579
|
-
//#endregion
|
|
72580
|
-
//#region src/flows-ensure.d.ts
|
|
72581
72744
|
/** SHA-256 (hex) over the canonical normalized step list (steps only). */
|
|
72582
72745
|
export declare function computeFlowContentHash(steps: unknown[]): Promise<string>;
|
|
72583
72746
|
/**
|
|
@@ -72740,8 +72903,6 @@ export declare class FlowDriftError extends Error {
|
|
|
72740
72903
|
readonly plan: EnsureFlowPlan;
|
|
72741
72904
|
constructor(plan: EnsureFlowPlan);
|
|
72742
72905
|
}
|
|
72743
|
-
//#endregion
|
|
72744
|
-
//#region src/flows-namespace.d.ts
|
|
72745
72906
|
interface LocalToolsOptions {
|
|
72746
72907
|
localTools?: Record<string, (args: unknown) => Promise<unknown>>;
|
|
72747
72908
|
}
|
|
@@ -73119,8 +73280,6 @@ export declare class RuntypeFlowBuilder {
|
|
|
73119
73280
|
private addRawStep;
|
|
73120
73281
|
private addStep;
|
|
73121
73282
|
}
|
|
73122
|
-
//#endregion
|
|
73123
|
-
//#region src/batches-namespace.d.ts
|
|
73124
73283
|
interface BatchScheduleConfig {
|
|
73125
73284
|
/** Flow ID to execute for each record */
|
|
73126
73285
|
flowId: string;
|
|
@@ -73245,8 +73404,6 @@ export declare class BatchesNamespace {
|
|
|
73245
73404
|
total: number;
|
|
73246
73405
|
}>;
|
|
73247
73406
|
}
|
|
73248
|
-
//#endregion
|
|
73249
|
-
//#region src/evals-suites.d.ts
|
|
73250
73407
|
/** The most recent run of a suite, with its score once graded. */
|
|
73251
73408
|
interface EvalSuiteLatestRun {
|
|
73252
73409
|
runId: string;
|
|
@@ -73662,8 +73819,6 @@ export declare class EvalSuitesNamespace {
|
|
|
73662
73819
|
*/
|
|
73663
73820
|
getCoverage(suiteId: string): Promise<EvalSuiteCoverage>;
|
|
73664
73821
|
}
|
|
73665
|
-
//#endregion
|
|
73666
|
-
//#region src/evals-namespace.d.ts
|
|
73667
73822
|
interface ModelOverride$1 {
|
|
73668
73823
|
/** Name of the step to override */
|
|
73669
73824
|
stepName: string;
|
|
@@ -73988,8 +74143,6 @@ export declare class EvalsNamespace {
|
|
|
73988
74143
|
total: number;
|
|
73989
74144
|
}>;
|
|
73990
74145
|
}
|
|
73991
|
-
//#endregion
|
|
73992
|
-
//#region src/prompts-namespace.d.ts
|
|
73993
74146
|
interface CreatePromptData {
|
|
73994
74147
|
/** Prompt name */
|
|
73995
74148
|
name: string;
|
|
@@ -74150,8 +74303,6 @@ export declare class PromptsNamespace {
|
|
|
74150
74303
|
*/
|
|
74151
74304
|
delete(promptId: string): Promise<void>;
|
|
74152
74305
|
}
|
|
74153
|
-
//#endregion
|
|
74154
|
-
//#region src/skills-ensure.d.ts
|
|
74155
74306
|
interface SkillContentInput {
|
|
74156
74307
|
/** Identity — excluded from the hash. */
|
|
74157
74308
|
name: string;
|
|
@@ -74262,8 +74413,6 @@ export declare class SkillDriftError extends Error {
|
|
|
74262
74413
|
readonly plan: EnsureSkillPlan;
|
|
74263
74414
|
constructor(plan: EnsureSkillPlan);
|
|
74264
74415
|
}
|
|
74265
|
-
//#endregion
|
|
74266
|
-
//#region src/skills-namespace.d.ts
|
|
74267
74416
|
/** Lifecycle status of a skill. */
|
|
74268
74417
|
type SkillStatus = 'draft' | 'active' | 'archived';
|
|
74269
74418
|
/** Trust level recorded on a skill (governs UI warnings). */
|
|
@@ -74697,8 +74846,6 @@ export declare class SkillsNamespace {
|
|
|
74697
74846
|
*/
|
|
74698
74847
|
pull(name: string): Promise<SkillPullResult>;
|
|
74699
74848
|
}
|
|
74700
|
-
//#endregion
|
|
74701
|
-
//#region src/agents-namespace.d.ts
|
|
74702
74849
|
/**
|
|
74703
74850
|
* The refusal a client-side `release` + `deploy` mix answers with. Byte-identical
|
|
74704
74851
|
* to the server's, so both spellings of the mistake read the same.
|
|
@@ -75084,16 +75231,12 @@ export declare class AgentsNamespace {
|
|
|
75084
75231
|
private memoize;
|
|
75085
75232
|
private request;
|
|
75086
75233
|
}
|
|
75087
|
-
//#endregion
|
|
75088
|
-
//#region src/executions-namespace.d.ts
|
|
75089
75234
|
/** Read-only namespace for durable asynchronous execution handles. */
|
|
75090
75235
|
export declare class ExecutionsNamespace {
|
|
75091
75236
|
private readonly getClient;
|
|
75092
75237
|
constructor(getClient: () => RuntypeClient$1);
|
|
75093
75238
|
getStatus(executionId: string): Promise<AsyncExecutionStatus>;
|
|
75094
75239
|
}
|
|
75095
|
-
//#endregion
|
|
75096
|
-
//#region src/runs-namespace.d.ts
|
|
75097
75240
|
/**
|
|
75098
75241
|
* One run, as `GET /v1/runs` returns it. A local copy of `RunListRow` from
|
|
75099
75242
|
* `@runtypelabs/shared`: this package is published to npm and its source runs
|
|
@@ -75288,8 +75431,6 @@ export declare class RunsNamespace {
|
|
|
75288
75431
|
list(params?: RunListParams): Promise<RunListResponse>;
|
|
75289
75432
|
get(executionId: string, params?: Pick<RunListParams, 'view' | 'overlay'>): Promise<RunListRow>;
|
|
75290
75433
|
}
|
|
75291
|
-
//#endregion
|
|
75292
|
-
//#region src/tools-ensure.d.ts
|
|
75293
75434
|
/** Canonical normalized form of a tool definition (name excluded — identity). */
|
|
75294
75435
|
export declare function normalizeToolDefinition(definition: ToolContentInput): {
|
|
75295
75436
|
toolType: string;
|
|
@@ -75402,8 +75543,6 @@ export declare class ToolDriftError extends Error {
|
|
|
75402
75543
|
readonly plan: EnsureToolPlan;
|
|
75403
75544
|
constructor(plan: EnsureToolPlan);
|
|
75404
75545
|
}
|
|
75405
|
-
//#endregion
|
|
75406
|
-
//#region src/tools-namespace.d.ts
|
|
75407
75546
|
export declare class ToolsNamespace {
|
|
75408
75547
|
private getClient;
|
|
75409
75548
|
constructor(getClient: () => RuntypeClient$1);
|
|
@@ -75436,8 +75575,6 @@ export declare class ToolsNamespace {
|
|
|
75436
75575
|
*/
|
|
75437
75576
|
pull(name: string): Promise<ToolPullResult>;
|
|
75438
75577
|
}
|
|
75439
|
-
//#endregion
|
|
75440
|
-
//#region src/question-sets-ensure.d.ts
|
|
75441
75578
|
/** A question set declared in code. `slug` is its identity within the organization. */
|
|
75442
75579
|
interface QuestionSetDefinition {
|
|
75443
75580
|
slug: string;
|
|
@@ -75524,8 +75661,6 @@ export declare class QuestionSetDriftError extends Error {
|
|
|
75524
75661
|
readonly plan: EnsureQuestionSetPlan;
|
|
75525
75662
|
constructor(slug: string, plan: EnsureQuestionSetPlan);
|
|
75526
75663
|
}
|
|
75527
|
-
//#endregion
|
|
75528
|
-
//#region src/question-sets-namespace.d.ts
|
|
75529
75664
|
/** Question set config-as-code: `ensure` and `pull`. */
|
|
75530
75665
|
export declare class QuestionSetsNamespace {
|
|
75531
75666
|
private getClient;
|
|
@@ -75545,8 +75680,6 @@ export declare class QuestionSetsNamespace {
|
|
|
75545
75680
|
/** Pull the live definition and provenance for a slug, to absorb a dashboard edit. */
|
|
75546
75681
|
pull(slug: string): Promise<QuestionSetPullResult>;
|
|
75547
75682
|
}
|
|
75548
|
-
//#endregion
|
|
75549
|
-
//#region src/signals-namespace.d.ts
|
|
75550
75683
|
/** A signal set version's definition, as the API validates it. */
|
|
75551
75684
|
interface SignalSetDefinitionInput {
|
|
75552
75685
|
unit?: 'turn';
|
|
@@ -75778,8 +75911,6 @@ export declare class SignalsNamespace {
|
|
|
75778
75911
|
};
|
|
75779
75912
|
}>;
|
|
75780
75913
|
}
|
|
75781
|
-
//#endregion
|
|
75782
|
-
//#region src/products-ensure.d.ts
|
|
75783
75914
|
/** Canonical normalized form of a product definition (name + canvas excluded). */
|
|
75784
75915
|
export declare function normalizeProductDefinition(definition: ProductContentInput): {
|
|
75785
75916
|
description?: string;
|
|
@@ -75880,8 +76011,6 @@ export declare class ProductDriftError extends Error {
|
|
|
75880
76011
|
readonly plan: EnsureProductPlan;
|
|
75881
76012
|
constructor(plan: EnsureProductPlan);
|
|
75882
76013
|
}
|
|
75883
|
-
//#endregion
|
|
75884
|
-
//#region src/products-ensure-fpo.d.ts
|
|
75885
76014
|
/** An FPO for hashing/sending. Permissive — the server validates the rich contract. */
|
|
75886
76015
|
type FpoInput = Record<string, unknown>;
|
|
75887
76016
|
/**
|
|
@@ -75991,8 +76120,6 @@ export declare function ensureFpo(client: RuntypeClient$1, fpo: FpoInput, option
|
|
|
75991
76120
|
* `tool:<name>`); inspect `warnings` for per-pull caveats.
|
|
75992
76121
|
*/
|
|
75993
76122
|
export declare function pullFpo(client: RuntypeClient$1, name: string): Promise<PullFpoResult>;
|
|
75994
|
-
//#endregion
|
|
75995
|
-
//#region src/products-namespace.d.ts
|
|
75996
76123
|
/** Merged first page of every activity source a product has. */
|
|
75997
76124
|
type ProductActivityResponse = paths['/v1/products/{id}/activity']['get']['responses'][200]['content']['application/json'];
|
|
75998
76125
|
interface ProductActivityOptions {
|
|
@@ -76078,8 +76205,6 @@ export declare class ProductsNamespace {
|
|
|
76078
76205
|
*/
|
|
76079
76206
|
activity(productId: string, options?: ProductActivityOptions): Promise<ProductActivityResponse>;
|
|
76080
76207
|
}
|
|
76081
|
-
//#endregion
|
|
76082
|
-
//#region src/surfaces-ensure.d.ts
|
|
76083
76208
|
/**
|
|
76084
76209
|
* Canonical normalized form of a surface definition (name excluded — identity).
|
|
76085
76210
|
* `inbound` / `outbound` are EXCLUDED — they carry sealed secrets that hash
|
|
@@ -76200,8 +76325,6 @@ export declare class SurfaceDriftError extends Error {
|
|
|
76200
76325
|
readonly plan: EnsureSurfacePlan;
|
|
76201
76326
|
constructor(plan: EnsureSurfacePlan);
|
|
76202
76327
|
}
|
|
76203
|
-
//#endregion
|
|
76204
|
-
//#region src/surfaces-namespace.d.ts
|
|
76205
76328
|
export declare class SurfacesNamespace {
|
|
76206
76329
|
private getClient;
|
|
76207
76330
|
constructor(getClient: () => RuntypeClient$1);
|
|
@@ -76233,8 +76356,6 @@ export declare class SurfacesNamespace {
|
|
|
76233
76356
|
*/
|
|
76234
76357
|
pull(productId: string, name: string): Promise<SurfacePullResult>;
|
|
76235
76358
|
}
|
|
76236
|
-
//#endregion
|
|
76237
|
-
//#region src/client-tokens-namespace.d.ts
|
|
76238
76359
|
/**
|
|
76239
76360
|
* The desired state of a client token, keyed by `name`. Capabilities, origins,
|
|
76240
76361
|
* and target always converge; limits and `config` converge only when set.
|
|
@@ -76332,8 +76453,6 @@ export declare class ClientTokensNamespace {
|
|
|
76332
76453
|
*/
|
|
76333
76454
|
ensure(definition: ClientTokenDefinition, options?: EnsureClientTokenOptions): Promise<EnsureClientTokenResult>;
|
|
76334
76455
|
}
|
|
76335
|
-
//#endregion
|
|
76336
|
-
//#region src/runtype.d.ts
|
|
76337
76456
|
interface RuntypeConfig {
|
|
76338
76457
|
/** API key for authentication */
|
|
76339
76458
|
apiKey?: string;
|
|
@@ -76789,8 +76908,6 @@ export declare class Runtype {
|
|
|
76789
76908
|
*/
|
|
76790
76909
|
static get clientTokens(): ClientTokensNamespace;
|
|
76791
76910
|
}
|
|
76792
|
-
//#endregion
|
|
76793
|
-
//#region src/a2a-handler.d.ts
|
|
76794
76911
|
/** The text-only A2A 0.3 message delivered to a framework callback. */
|
|
76795
76912
|
interface A2ATextMessage {
|
|
76796
76913
|
role: 'user' | 'agent';
|
|
@@ -76825,8 +76942,6 @@ interface A2AHandlerOptions {
|
|
|
76825
76942
|
* The callback owns history, authorization of context IDs, and model cancellation.
|
|
76826
76943
|
*/
|
|
76827
76944
|
export declare function createA2AHandler(options: A2AHandlerOptions): (request: Request) => Promise<Response>;
|
|
76828
|
-
//#endregion
|
|
76829
|
-
//#region src/agent-promotion.d.ts
|
|
76830
76945
|
/**
|
|
76831
76946
|
* The HTTP surface a promotion leg needs from one organization's credentials.
|
|
76832
76947
|
* Both SDK client classes satisfy it, and a promotion always holds two of
|
|
@@ -76948,9 +77063,6 @@ interface PromoteAgentResult {
|
|
|
76948
77063
|
* caller's to run and report; nothing here is gated on it.
|
|
76949
77064
|
*/
|
|
76950
77065
|
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
77066
|
/**
|
|
76955
77067
|
* Per-token USD exactly as the gateway listed it, plus the per-million figures
|
|
76956
77068
|
* derived from those strings. The verbatim strings are what metering multiplies
|
|
@@ -76991,8 +77103,6 @@ type DecisionModelDescriptor = DecisionModelDetails & ({
|
|
|
76991
77103
|
readonly provider: 'cloudflare';
|
|
76992
77104
|
readonly route: 'cloudflare-workers-ai';
|
|
76993
77105
|
});
|
|
76994
|
-
//#endregion
|
|
76995
|
-
//#region src/decision-models.d.ts
|
|
76996
77106
|
/** Supported model capabilities, not the calling organization's credential or spending readiness. */
|
|
76997
77107
|
type DecisionModelCatalogEntry = DecisionModelDescriptor & {
|
|
76998
77108
|
credentialRequirements: {
|
|
@@ -77004,9 +77114,6 @@ type DecisionModelCatalogEntry = DecisionModelDescriptor & {
|
|
|
77004
77114
|
interface DecisionModelCatalog {
|
|
77005
77115
|
models: DecisionModelCatalogEntry[];
|
|
77006
77116
|
}
|
|
77007
|
-
//#endregion
|
|
77008
|
-
//#region ../shared/dist/index-BEIJ_QMH.d.ts
|
|
77009
|
-
//#region src/extraction/models.d.ts
|
|
77010
77117
|
type ExtractionModelProvider = 'cloudflare';
|
|
77011
77118
|
type ExtractionModelRoute = 'cloudflare-workers-ai';
|
|
77012
77119
|
interface ExtractionModelPricing {
|
|
@@ -77033,8 +77140,6 @@ interface ExtractionModelDescriptor {
|
|
|
77033
77140
|
readonly platformFunding: boolean;
|
|
77034
77141
|
readonly docsUrl: string;
|
|
77035
77142
|
}
|
|
77036
|
-
//#endregion
|
|
77037
|
-
//#region src/extraction-models.d.ts
|
|
77038
77143
|
/** Supported model capabilities, not the calling organization's spending readiness. */
|
|
77039
77144
|
type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
77040
77145
|
credentialRequirements: {
|
|
@@ -77046,8 +77151,6 @@ type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
|
77046
77151
|
interface ExtractionModelCatalog {
|
|
77047
77152
|
models: ExtractionModelCatalogEntry[];
|
|
77048
77153
|
}
|
|
77049
|
-
//#endregion
|
|
77050
|
-
//#region src/simulation-tool-memory-types.d.ts
|
|
77051
77154
|
/** How one tool call was answered: the rung of the response ladder that served it. */
|
|
77052
77155
|
type SimulationServedBy = 'live' | 'recorded' | 'transformed' | 'composite' | 'synthesized' | 'stub' | 'rejected' | 'fault';
|
|
77053
77156
|
/** One recorded `tools/call` of a target; `arguments` and `result` are null on a shape-only row. */
|
|
@@ -77218,8 +77321,6 @@ interface SimulationDesignBrief {
|
|
|
77218
77321
|
live: boolean;
|
|
77219
77322
|
}>;
|
|
77220
77323
|
}
|
|
77221
|
-
//#endregion
|
|
77222
|
-
//#region src/simulation-episode-types.d.ts
|
|
77223
77324
|
type SimulationEpisodeStatus = 'queued' | 'running' | 'completed' | 'failed' | 'skipped' | 'cancelled';
|
|
77224
77325
|
/** Why an episode ended. */
|
|
77225
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';
|
|
@@ -77443,8 +77544,6 @@ interface GetSimulationEpisodeResponse {
|
|
|
77443
77544
|
/** Each synthesized answer's review by its exchange id; null when unreviewed. */
|
|
77444
77545
|
synthesisReviews?: Record<string, boolean | null>;
|
|
77445
77546
|
}
|
|
77446
|
-
//#endregion
|
|
77447
|
-
//#region src/simulations-namespace.d.ts
|
|
77448
77547
|
/**
|
|
77449
77548
|
* Simulations tool memory and future designs (`/v1/simulations`): recorded exchanges, tool profiles,
|
|
77450
77549
|
* design previews, synthesis review, design briefs and run episodes. Pre-GA: the API answers 404 `SIMULATIONS_DISABLED`
|
|
@@ -77497,8 +77596,6 @@ export declare class SimulationsEndpoint {
|
|
|
77497
77596
|
/** One episode with its transcript, grader scores and per-turn layer facts: why it failed or surprised. */
|
|
77498
77597
|
getEpisode(runId: string, episodeId: string): Promise<GetSimulationEpisodeResponse>;
|
|
77499
77598
|
}
|
|
77500
|
-
//#endregion
|
|
77501
|
-
//#region src/client.d.ts
|
|
77502
77599
|
type LocalToolHandler = (args: unknown) => Promise<unknown>;
|
|
77503
77600
|
/**
|
|
77504
77601
|
* Richer local tool entry that pairs a handler with the wire schema the
|
|
@@ -77728,8 +77825,6 @@ export declare class RuntypeApiError extends Error {
|
|
|
77728
77825
|
* Convenience function to create a new RuntypeClient instance
|
|
77729
77826
|
*/
|
|
77730
77827
|
export declare function createClient(config?: ClientConfig): RuntypeClient;
|
|
77731
|
-
//#endregion
|
|
77732
|
-
//#region src/version.d.ts
|
|
77733
77828
|
export declare const SDK_VERSION: string;
|
|
77734
77829
|
/**
|
|
77735
77830
|
* Canonical client identity the API uses for attribution
|
|
@@ -77746,8 +77841,6 @@ export declare const RUNTYPE_CLIENT_KIND = "sdk";
|
|
|
77746
77841
|
* is the reliable cross-environment signal; this UA carries the version + language.
|
|
77747
77842
|
*/
|
|
77748
77843
|
export declare const SDK_USER_AGENT: string;
|
|
77749
|
-
//#endregion
|
|
77750
|
-
//#region src/offload-markers.d.ts
|
|
77751
77844
|
export declare const LEDGER_ARTIFACT_LINE_PREFIX = "Ledger artifact: ";
|
|
77752
77845
|
/** SDK hot-tail send-view marker: large tool result replaced by a file pointer. */
|
|
77753
77846
|
export declare function buildSendViewOffloadMarker(details: {
|
|
@@ -77776,8 +77869,6 @@ export declare function extractDeclaredToolResultChars(value: unknown): number |
|
|
|
77776
77869
|
export declare function parseOffloadedOutputId(value: string): string | undefined;
|
|
77777
77870
|
/** Parse the tree-log-relative artifact path out of a ledger offload reference. */
|
|
77778
77871
|
export declare function parseLedgerArtifactRelativePath(value: string): string | undefined;
|
|
77779
|
-
//#endregion
|
|
77780
|
-
//#region src/unified-stream-adapter.d.ts
|
|
77781
77872
|
type Json = Record<string, unknown>;
|
|
77782
77873
|
/**
|
|
77783
77874
|
* @deprecated Unified events are now the only public execution-stream format.
|
|
@@ -77809,8 +77900,6 @@ export declare function createFlowEventTranslator(): (event: unknown) => Compati
|
|
|
77809
77900
|
* Returns 0+ callback events per unified event. Construct one per stream.
|
|
77810
77901
|
*/
|
|
77811
77902
|
export declare function createAgentEventTranslator(): (event: unknown) => CompatibilityEvent[];
|
|
77812
|
-
//#endregion
|
|
77813
|
-
//#region src/batch-builder.d.ts
|
|
77814
77903
|
/**
|
|
77815
77904
|
* BatchBuilder - Fluent builder for batch operations
|
|
77816
77905
|
*
|
|
@@ -77923,8 +78012,6 @@ export declare class ClientBatchBuilder extends BatchBuilder {
|
|
|
77923
78012
|
*/
|
|
77924
78013
|
run(): Promise<BatchResult>;
|
|
77925
78014
|
}
|
|
77926
|
-
//#endregion
|
|
77927
|
-
//#region src/eval-builder.d.ts
|
|
77928
78015
|
interface ModelOverride {
|
|
77929
78016
|
/** Name of the step to override */
|
|
77930
78017
|
stepName: string;
|
|
@@ -78115,8 +78202,6 @@ export declare class ClientEvalBuilder extends EvalBuilder {
|
|
|
78115
78202
|
*/
|
|
78116
78203
|
run(): Promise<EvalResult>;
|
|
78117
78204
|
}
|
|
78118
|
-
//#endregion
|
|
78119
|
-
//#region src/codegen-metadata.d.ts
|
|
78120
78205
|
/** How to serialize a field value into TypeScript source code. */
|
|
78121
78206
|
type FieldFormat = 'json' | 'template' | 'raw' | 'value';
|
|
78122
78207
|
/** Describes one field in a step config for code emission. */
|
|
@@ -78836,8 +78921,6 @@ export declare const STEP_TYPE_TO_METHOD: {
|
|
|
78836
78921
|
readonly 'memory-summary': 'memorySummary';
|
|
78837
78922
|
readonly extract: 'extract';
|
|
78838
78923
|
};
|
|
78839
|
-
//#endregion
|
|
78840
|
-
//#region src/workflows/hook-registry.d.ts
|
|
78841
78924
|
interface WorkflowHookSignatures {
|
|
78842
78925
|
/** WorkflowPhase.buildInstructions — used verbatim (no header is added) */
|
|
78843
78926
|
instructions: (state: RunTaskStateSlice) => string;
|
|
@@ -78890,8 +78973,6 @@ export declare function listWorkflowHooks(): Array<{
|
|
|
78890
78973
|
}>;
|
|
78891
78974
|
/** Test seam: remove a custom hook (builtin entries cannot be removed). */
|
|
78892
78975
|
export declare function unregisterWorkflowHook(name: string): boolean;
|
|
78893
|
-
//#endregion
|
|
78894
|
-
//#region src/workflows/workflow-config.d.ts
|
|
78895
78976
|
export declare const DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS = 2;
|
|
78896
78977
|
/** A `"<namespace>:<id>"` reference into the workflow hook registry. */
|
|
78897
78978
|
type WorkflowHookRef = string;
|
|
@@ -79035,8 +79116,6 @@ export declare function buildPolicyGuidance(policy?: WorkflowPolicyConfig): stri
|
|
|
79035
79116
|
* reference fails here — at load time — with an actionable error.
|
|
79036
79117
|
*/
|
|
79037
79118
|
export declare function compileWorkflowConfig(config: WorkflowConfig, deps?: WorkflowCompileDeps): WorkflowDefinition;
|
|
79038
|
-
//#endregion
|
|
79039
|
-
//#region src/workflows/default-workflow.d.ts
|
|
79040
79119
|
/**
|
|
79041
79120
|
* Register the default workflow's behaviors as `builtin:*` hooks. Idempotent.
|
|
79042
79121
|
* Importing this module (or anything that pulls in `defaultWorkflow`) calls it
|
|
@@ -79055,14 +79134,8 @@ export declare function ensureDefaultWorkflowHooks(): void;
|
|
|
79055
79134
|
*/
|
|
79056
79135
|
export declare const defaultWorkflowConfig: WorkflowConfig;
|
|
79057
79136
|
export declare const defaultWorkflow: WorkflowDefinition;
|
|
79058
|
-
//#endregion
|
|
79059
|
-
//#region src/workflows/deploy-workflow.d.ts
|
|
79060
79137
|
export declare const deployWorkflow: WorkflowDefinition;
|
|
79061
|
-
//#endregion
|
|
79062
|
-
//#region src/workflows/game-workflow.d.ts
|
|
79063
79138
|
export declare const gameWorkflow: WorkflowDefinition;
|
|
79064
|
-
//#endregion
|
|
79065
|
-
//#region src/workflows/stall-policy.d.ts
|
|
79066
79139
|
export declare const DEFAULT_STALL_STOP_AFTER = 3;
|
|
79067
79140
|
/** Resolve how many consecutive empty sessions end the run as 'stalled'. */
|
|
79068
79141
|
export declare function resolveStallStopAfter(policy?: WorkflowStallPolicy): number;
|
|
@@ -79081,8 +79154,6 @@ export declare function shouldInjectEmptySessionNudge(policy: WorkflowStallPolic
|
|
|
79081
79154
|
* failure mode directly.
|
|
79082
79155
|
*/
|
|
79083
79156
|
export declare function buildEmptySessionNudge(consecutiveEmptySessions: number): string;
|
|
79084
|
-
//#endregion
|
|
79085
|
-
//#region src/workflow-utils.d.ts
|
|
79086
79157
|
/**
|
|
79087
79158
|
* Utility functions shared between workflow phase handlers and AgentsEndpoint.
|
|
79088
79159
|
*
|
|
@@ -79099,6 +79170,5 @@ export declare function isPreservationSensitiveTask(state: Pick<{
|
|
|
79099
79170
|
export declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | undefined, candidatePaths: string[] | undefined): string[];
|
|
79100
79171
|
export declare function getDefaultPlanPath(taskName: string): string;
|
|
79101
79172
|
export declare function sanitizeTaskSlug(taskName: string): string;
|
|
79102
|
-
//#endregion
|
|
79103
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 };
|
|
79104
79174
|
export {}
|