@runtypelabs/sdk 5.4.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +89 -3
- package/dist/index.d.cts +63 -5
- package/dist/index.d.ts +63 -5
- package/dist/index.mjs +80 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -97,7 +97,9 @@ __export(index_exports, {
|
|
|
97
97
|
buildLedgerOffloadReference: () => buildLedgerOffloadReference,
|
|
98
98
|
buildPolicyGuidance: () => buildPolicyGuidance,
|
|
99
99
|
buildSendViewOffloadMarker: () => buildSendViewOffloadMarker,
|
|
100
|
+
calledTool: () => calledTool,
|
|
100
101
|
compileWorkflowConfig: () => compileWorkflowConfig,
|
|
102
|
+
completed: () => completed,
|
|
101
103
|
computeAgentContentHash: () => computeAgentContentHash,
|
|
102
104
|
computeEvalContentHash: () => computeEvalContentHash,
|
|
103
105
|
computeFlowContentHash: () => computeFlowContentHash,
|
|
@@ -107,6 +109,7 @@ __export(index_exports, {
|
|
|
107
109
|
computeSurfaceContentHash: () => computeSurfaceContentHash,
|
|
108
110
|
computeToolContentHash: () => computeToolContentHash,
|
|
109
111
|
contains: () => contains,
|
|
112
|
+
cost: () => cost,
|
|
110
113
|
createAgentEventTranslator: () => createAgentEventTranslator,
|
|
111
114
|
createClient: () => createClient,
|
|
112
115
|
createExternalTool: () => createExternalTool,
|
|
@@ -144,6 +147,7 @@ __export(index_exports, {
|
|
|
144
147
|
length: () => length,
|
|
145
148
|
listWorkflowHooks: () => listWorkflowHooks,
|
|
146
149
|
matchesExpected: () => matchesExpected,
|
|
150
|
+
maxToolCalls: () => maxToolCalls,
|
|
147
151
|
noError: () => noError,
|
|
148
152
|
normalizeAgentDefinition: () => normalizeAgentDefinition,
|
|
149
153
|
normalizeCandidatePath: () => normalizeCandidatePath,
|
|
@@ -152,6 +156,7 @@ __export(index_exports, {
|
|
|
152
156
|
normalizeSkillDefinition: () => normalizeSkillDefinition,
|
|
153
157
|
normalizeSurfaceDefinition: () => normalizeSurfaceDefinition,
|
|
154
158
|
normalizeToolDefinition: () => normalizeToolDefinition,
|
|
159
|
+
notCalledTool: () => notCalledTool,
|
|
155
160
|
notContains: () => notContains,
|
|
156
161
|
parseFinalBuffer: () => parseFinalBuffer,
|
|
157
162
|
parseLedgerArtifactRelativePath: () => parseLedgerArtifactRelativePath,
|
|
@@ -160,6 +165,7 @@ __export(index_exports, {
|
|
|
160
165
|
processStream: () => processStream,
|
|
161
166
|
pullEval: () => pullEval,
|
|
162
167
|
pullFpo: () => pullFpo,
|
|
168
|
+
ranStep: () => ranStep,
|
|
163
169
|
regex: () => regex,
|
|
164
170
|
registerWorkflowHook: () => registerWorkflowHook,
|
|
165
171
|
resolveStallStopAfter: () => resolveStallStopAfter,
|
|
@@ -168,8 +174,11 @@ __export(index_exports, {
|
|
|
168
174
|
sanitizeTaskSlug: () => sanitizeTaskSlug,
|
|
169
175
|
shouldInjectEmptySessionNudge: () => shouldInjectEmptySessionNudge,
|
|
170
176
|
shouldRequestModelEscalation: () => shouldRequestModelEscalation,
|
|
177
|
+
stepOrder: () => stepOrder,
|
|
171
178
|
streamEvents: () => streamEvents,
|
|
179
|
+
toolOrder: () => toolOrder,
|
|
172
180
|
unregisterWorkflowHook: () => unregisterWorkflowHook,
|
|
181
|
+
usedNoTools: () => usedNoTools,
|
|
173
182
|
validJson: () => validJson,
|
|
174
183
|
withUnifiedEvents: () => withUnifiedEvents
|
|
175
184
|
});
|
|
@@ -3463,7 +3472,17 @@ var CHECK_GRADER_KINDS = /* @__PURE__ */ new Set([
|
|
|
3463
3472
|
"json_field",
|
|
3464
3473
|
"length",
|
|
3465
3474
|
"latency",
|
|
3466
|
-
"no_error"
|
|
3475
|
+
"no_error",
|
|
3476
|
+
// Trace checks.
|
|
3477
|
+
"called_tool",
|
|
3478
|
+
"not_called_tool",
|
|
3479
|
+
"used_no_tools",
|
|
3480
|
+
"max_tool_calls",
|
|
3481
|
+
"tool_order",
|
|
3482
|
+
"ran_step",
|
|
3483
|
+
"step_order",
|
|
3484
|
+
"completed",
|
|
3485
|
+
"cost"
|
|
3467
3486
|
]);
|
|
3468
3487
|
function contains(value, opts) {
|
|
3469
3488
|
return { kind: "contains", value, ...opts?.caseSensitive ? { caseSensitive: true } : {} };
|
|
@@ -3507,6 +3526,64 @@ function latency(maxMs) {
|
|
|
3507
3526
|
function noError() {
|
|
3508
3527
|
return { kind: "no_error" };
|
|
3509
3528
|
}
|
|
3529
|
+
function calledTool(name, opts) {
|
|
3530
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
3531
|
+
throw new Error("calledTool() requires a non-empty tool name");
|
|
3532
|
+
}
|
|
3533
|
+
if (opts?.times !== void 0 && (!Number.isInteger(opts.times) || opts.times <= 0)) {
|
|
3534
|
+
throw new Error('calledTool() "times" must be a positive integer');
|
|
3535
|
+
}
|
|
3536
|
+
return {
|
|
3537
|
+
kind: "called_tool",
|
|
3538
|
+
name,
|
|
3539
|
+
...opts && "input" in opts && opts.input !== void 0 ? { input: opts.input } : {},
|
|
3540
|
+
...opts && "output" in opts && opts.output !== void 0 ? { output: opts.output } : {},
|
|
3541
|
+
...opts && typeof opts.isError === "boolean" ? { isError: opts.isError } : {},
|
|
3542
|
+
...opts?.times !== void 0 ? { times: opts.times } : {}
|
|
3543
|
+
};
|
|
3544
|
+
}
|
|
3545
|
+
function notCalledTool(name) {
|
|
3546
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
3547
|
+
throw new Error("notCalledTool() requires a non-empty tool name");
|
|
3548
|
+
}
|
|
3549
|
+
return { kind: "not_called_tool", name };
|
|
3550
|
+
}
|
|
3551
|
+
function usedNoTools() {
|
|
3552
|
+
return { kind: "used_no_tools" };
|
|
3553
|
+
}
|
|
3554
|
+
function maxToolCalls(max) {
|
|
3555
|
+
if (!Number.isInteger(max) || max < 0) {
|
|
3556
|
+
throw new Error("maxToolCalls() requires a non-negative integer");
|
|
3557
|
+
}
|
|
3558
|
+
return { kind: "max_tool_calls", max };
|
|
3559
|
+
}
|
|
3560
|
+
function toolOrder(tools) {
|
|
3561
|
+
if (!Array.isArray(tools) || tools.length === 0) {
|
|
3562
|
+
throw new Error("toolOrder() requires a non-empty array of tool names");
|
|
3563
|
+
}
|
|
3564
|
+
return { kind: "tool_order", tools };
|
|
3565
|
+
}
|
|
3566
|
+
function ranStep(name) {
|
|
3567
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
3568
|
+
throw new Error("ranStep() requires a non-empty step name");
|
|
3569
|
+
}
|
|
3570
|
+
return { kind: "ran_step", name };
|
|
3571
|
+
}
|
|
3572
|
+
function stepOrder(steps) {
|
|
3573
|
+
if (!Array.isArray(steps) || steps.length === 0) {
|
|
3574
|
+
throw new Error("stepOrder() requires a non-empty array of step names");
|
|
3575
|
+
}
|
|
3576
|
+
return { kind: "step_order", steps };
|
|
3577
|
+
}
|
|
3578
|
+
function completed() {
|
|
3579
|
+
return { kind: "completed" };
|
|
3580
|
+
}
|
|
3581
|
+
function cost(maxUsd) {
|
|
3582
|
+
if (!Number.isFinite(maxUsd) || maxUsd <= 0) {
|
|
3583
|
+
throw new Error("cost() requires a positive maxUsd");
|
|
3584
|
+
}
|
|
3585
|
+
return { kind: "cost", maxUsd };
|
|
3586
|
+
}
|
|
3510
3587
|
function judge(criteria, opts) {
|
|
3511
3588
|
if (typeof criteria !== "string" || criteria.trim().length === 0) {
|
|
3512
3589
|
throw new Error("judge() requires non-empty criteria");
|
|
@@ -3583,7 +3660,7 @@ function validateGrader(grader, where) {
|
|
|
3583
3660
|
}
|
|
3584
3661
|
if (!CHECK_GRADER_KINDS.has(grader.kind)) {
|
|
3585
3662
|
throw new Error(
|
|
3586
|
-
`defineEval: ${where} has unknown grader kind "${grader.kind}". Known kinds: ${[...CHECK_GRADER_KINDS].join(", ")}, ai
|
|
3663
|
+
`defineEval: ${where} has unknown grader kind "${grader.kind}". Known kinds: ${[...CHECK_GRADER_KINDS].join(", ")}, ai.`
|
|
3587
3664
|
);
|
|
3588
3665
|
}
|
|
3589
3666
|
return grader;
|
|
@@ -6025,7 +6102,7 @@ var Runtype = class {
|
|
|
6025
6102
|
|
|
6026
6103
|
// src/version.ts
|
|
6027
6104
|
var FALLBACK_VERSION = "0.0.0";
|
|
6028
|
-
var SDK_VERSION = "5.
|
|
6105
|
+
var SDK_VERSION = "5.5.0".length > 0 ? "5.5.0" : FALLBACK_VERSION;
|
|
6029
6106
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6030
6107
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6031
6108
|
|
|
@@ -13736,7 +13813,9 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
13736
13813
|
buildLedgerOffloadReference,
|
|
13737
13814
|
buildPolicyGuidance,
|
|
13738
13815
|
buildSendViewOffloadMarker,
|
|
13816
|
+
calledTool,
|
|
13739
13817
|
compileWorkflowConfig,
|
|
13818
|
+
completed,
|
|
13740
13819
|
computeAgentContentHash,
|
|
13741
13820
|
computeEvalContentHash,
|
|
13742
13821
|
computeFlowContentHash,
|
|
@@ -13746,6 +13825,7 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
13746
13825
|
computeSurfaceContentHash,
|
|
13747
13826
|
computeToolContentHash,
|
|
13748
13827
|
contains,
|
|
13828
|
+
cost,
|
|
13749
13829
|
createAgentEventTranslator,
|
|
13750
13830
|
createClient,
|
|
13751
13831
|
createExternalTool,
|
|
@@ -13783,6 +13863,7 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
13783
13863
|
length,
|
|
13784
13864
|
listWorkflowHooks,
|
|
13785
13865
|
matchesExpected,
|
|
13866
|
+
maxToolCalls,
|
|
13786
13867
|
noError,
|
|
13787
13868
|
normalizeAgentDefinition,
|
|
13788
13869
|
normalizeCandidatePath,
|
|
@@ -13791,6 +13872,7 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
13791
13872
|
normalizeSkillDefinition,
|
|
13792
13873
|
normalizeSurfaceDefinition,
|
|
13793
13874
|
normalizeToolDefinition,
|
|
13875
|
+
notCalledTool,
|
|
13794
13876
|
notContains,
|
|
13795
13877
|
parseFinalBuffer,
|
|
13796
13878
|
parseLedgerArtifactRelativePath,
|
|
@@ -13799,6 +13881,7 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
13799
13881
|
processStream,
|
|
13800
13882
|
pullEval,
|
|
13801
13883
|
pullFpo,
|
|
13884
|
+
ranStep,
|
|
13802
13885
|
regex,
|
|
13803
13886
|
registerWorkflowHook,
|
|
13804
13887
|
resolveStallStopAfter,
|
|
@@ -13807,8 +13890,11 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
13807
13890
|
sanitizeTaskSlug,
|
|
13808
13891
|
shouldInjectEmptySessionNudge,
|
|
13809
13892
|
shouldRequestModelEscalation,
|
|
13893
|
+
stepOrder,
|
|
13810
13894
|
streamEvents,
|
|
13895
|
+
toolOrder,
|
|
13811
13896
|
unregisterWorkflowHook,
|
|
13897
|
+
usedNoTools,
|
|
13812
13898
|
validJson,
|
|
13813
13899
|
withUnifiedEvents
|
|
13814
13900
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -40592,10 +40592,11 @@ declare class BatchesNamespace {
|
|
|
40592
40592
|
* shared discriminated union so an eval authored here scores through the existing
|
|
40593
40593
|
* `EvalScoringService` unchanged.
|
|
40594
40594
|
*
|
|
40595
|
-
*
|
|
40596
|
-
*
|
|
40597
|
-
*
|
|
40598
|
-
*
|
|
40595
|
+
* Scope: the output + AI-judge union plus the trace graders (`called_tool` /
|
|
40596
|
+
* `tool_order` / `ran_step` / `completed` / `cost` / …), each scored server-side
|
|
40597
|
+
* by the same pure `runCheck` engine over the run's captured execution trace.
|
|
40598
|
+
* Severity (`.gate()` / `.soft()`) is deliberately NOT emitted here — it lands
|
|
40599
|
+
* with its own grader-engine extension. See
|
|
40599
40600
|
* `docs/features/planning/2026-06-24-code-colocated-evals.md`.
|
|
40600
40601
|
*/
|
|
40601
40602
|
|
|
@@ -40630,6 +40631,35 @@ type CheckGrader = {
|
|
|
40630
40631
|
maxMs: number;
|
|
40631
40632
|
} | {
|
|
40632
40633
|
kind: 'no_error';
|
|
40634
|
+
} | {
|
|
40635
|
+
kind: 'called_tool';
|
|
40636
|
+
name: string;
|
|
40637
|
+
input?: unknown;
|
|
40638
|
+
output?: unknown;
|
|
40639
|
+
isError?: boolean;
|
|
40640
|
+
times?: number;
|
|
40641
|
+
} | {
|
|
40642
|
+
kind: 'not_called_tool';
|
|
40643
|
+
name: string;
|
|
40644
|
+
} | {
|
|
40645
|
+
kind: 'used_no_tools';
|
|
40646
|
+
} | {
|
|
40647
|
+
kind: 'max_tool_calls';
|
|
40648
|
+
max: number;
|
|
40649
|
+
} | {
|
|
40650
|
+
kind: 'tool_order';
|
|
40651
|
+
tools: string[];
|
|
40652
|
+
} | {
|
|
40653
|
+
kind: 'ran_step';
|
|
40654
|
+
name: string;
|
|
40655
|
+
} | {
|
|
40656
|
+
kind: 'step_order';
|
|
40657
|
+
steps: string[];
|
|
40658
|
+
} | {
|
|
40659
|
+
kind: 'completed';
|
|
40660
|
+
} | {
|
|
40661
|
+
kind: 'cost';
|
|
40662
|
+
maxUsd: number;
|
|
40633
40663
|
};
|
|
40634
40664
|
/** Built-in AI-grader preset ids (mirror of `BUILT_IN_GRADER_IDS`). */
|
|
40635
40665
|
type BuiltInGraderId = 'answersQuestion' | 'matchesExpected' | 'followsInstructions' | 'grounded' | 'rightTone' | 'safeToSend';
|
|
@@ -40684,6 +40714,34 @@ declare function length(opts: {
|
|
|
40684
40714
|
declare function latency(maxMs: number): CheckGrader;
|
|
40685
40715
|
/** The case produced output without erroring. */
|
|
40686
40716
|
declare function noError(): CheckGrader;
|
|
40717
|
+
/**
|
|
40718
|
+
* A tool named `name` was called. Optional filters narrow the match: `input` /
|
|
40719
|
+
* `output` deep-equal a call's resolved input / result, `isError` matches a
|
|
40720
|
+
* call's error flag, and `times` asserts the matching count EXACTLY (omit for
|
|
40721
|
+
* "at least once").
|
|
40722
|
+
*/
|
|
40723
|
+
declare function calledTool(name: string, opts?: {
|
|
40724
|
+
input?: unknown;
|
|
40725
|
+
output?: unknown;
|
|
40726
|
+
isError?: boolean;
|
|
40727
|
+
times?: number;
|
|
40728
|
+
}): CheckGrader;
|
|
40729
|
+
/** No tool named `name` was called. */
|
|
40730
|
+
declare function notCalledTool(name: string): CheckGrader;
|
|
40731
|
+
/** The run made no tool calls at all. */
|
|
40732
|
+
declare function usedNoTools(): CheckGrader;
|
|
40733
|
+
/** The run made at most `max` tool calls. */
|
|
40734
|
+
declare function maxToolCalls(max: number): CheckGrader;
|
|
40735
|
+
/** `tools` appears as an ordered subsequence of the tool-call names. */
|
|
40736
|
+
declare function toolOrder(tools: string[]): CheckGrader;
|
|
40737
|
+
/** A step named (or typed) `name` ran. */
|
|
40738
|
+
declare function ranStep(name: string): CheckGrader;
|
|
40739
|
+
/** `steps` appears as an ordered subsequence of the steps that ran. */
|
|
40740
|
+
declare function stepOrder(steps: string[]): CheckGrader;
|
|
40741
|
+
/** The run completed (finished without erroring and was not left paused). */
|
|
40742
|
+
declare function completed(): CheckGrader;
|
|
40743
|
+
/** Total run cost was within `maxUsd` (US dollars). */
|
|
40744
|
+
declare function cost(maxUsd: number): CheckGrader;
|
|
40687
40745
|
/**
|
|
40688
40746
|
* LLM-as-judge over free-form criteria. Soft, model-graded — reach for it only
|
|
40689
40747
|
* when no deterministic check captures what "good" means.
|
|
@@ -47744,4 +47802,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
47744
47802
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
47745
47803
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
47746
47804
|
|
|
47747
|
-
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GraderConfig, type GraderOutcome, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook, validJson, withUnifiedEvents };
|
|
47805
|
+
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GraderConfig, type GraderOutcome, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|
package/dist/index.d.ts
CHANGED
|
@@ -40592,10 +40592,11 @@ declare class BatchesNamespace {
|
|
|
40592
40592
|
* shared discriminated union so an eval authored here scores through the existing
|
|
40593
40593
|
* `EvalScoringService` unchanged.
|
|
40594
40594
|
*
|
|
40595
|
-
*
|
|
40596
|
-
*
|
|
40597
|
-
*
|
|
40598
|
-
*
|
|
40595
|
+
* Scope: the output + AI-judge union plus the trace graders (`called_tool` /
|
|
40596
|
+
* `tool_order` / `ran_step` / `completed` / `cost` / …), each scored server-side
|
|
40597
|
+
* by the same pure `runCheck` engine over the run's captured execution trace.
|
|
40598
|
+
* Severity (`.gate()` / `.soft()`) is deliberately NOT emitted here — it lands
|
|
40599
|
+
* with its own grader-engine extension. See
|
|
40599
40600
|
* `docs/features/planning/2026-06-24-code-colocated-evals.md`.
|
|
40600
40601
|
*/
|
|
40601
40602
|
|
|
@@ -40630,6 +40631,35 @@ type CheckGrader = {
|
|
|
40630
40631
|
maxMs: number;
|
|
40631
40632
|
} | {
|
|
40632
40633
|
kind: 'no_error';
|
|
40634
|
+
} | {
|
|
40635
|
+
kind: 'called_tool';
|
|
40636
|
+
name: string;
|
|
40637
|
+
input?: unknown;
|
|
40638
|
+
output?: unknown;
|
|
40639
|
+
isError?: boolean;
|
|
40640
|
+
times?: number;
|
|
40641
|
+
} | {
|
|
40642
|
+
kind: 'not_called_tool';
|
|
40643
|
+
name: string;
|
|
40644
|
+
} | {
|
|
40645
|
+
kind: 'used_no_tools';
|
|
40646
|
+
} | {
|
|
40647
|
+
kind: 'max_tool_calls';
|
|
40648
|
+
max: number;
|
|
40649
|
+
} | {
|
|
40650
|
+
kind: 'tool_order';
|
|
40651
|
+
tools: string[];
|
|
40652
|
+
} | {
|
|
40653
|
+
kind: 'ran_step';
|
|
40654
|
+
name: string;
|
|
40655
|
+
} | {
|
|
40656
|
+
kind: 'step_order';
|
|
40657
|
+
steps: string[];
|
|
40658
|
+
} | {
|
|
40659
|
+
kind: 'completed';
|
|
40660
|
+
} | {
|
|
40661
|
+
kind: 'cost';
|
|
40662
|
+
maxUsd: number;
|
|
40633
40663
|
};
|
|
40634
40664
|
/** Built-in AI-grader preset ids (mirror of `BUILT_IN_GRADER_IDS`). */
|
|
40635
40665
|
type BuiltInGraderId = 'answersQuestion' | 'matchesExpected' | 'followsInstructions' | 'grounded' | 'rightTone' | 'safeToSend';
|
|
@@ -40684,6 +40714,34 @@ declare function length(opts: {
|
|
|
40684
40714
|
declare function latency(maxMs: number): CheckGrader;
|
|
40685
40715
|
/** The case produced output without erroring. */
|
|
40686
40716
|
declare function noError(): CheckGrader;
|
|
40717
|
+
/**
|
|
40718
|
+
* A tool named `name` was called. Optional filters narrow the match: `input` /
|
|
40719
|
+
* `output` deep-equal a call's resolved input / result, `isError` matches a
|
|
40720
|
+
* call's error flag, and `times` asserts the matching count EXACTLY (omit for
|
|
40721
|
+
* "at least once").
|
|
40722
|
+
*/
|
|
40723
|
+
declare function calledTool(name: string, opts?: {
|
|
40724
|
+
input?: unknown;
|
|
40725
|
+
output?: unknown;
|
|
40726
|
+
isError?: boolean;
|
|
40727
|
+
times?: number;
|
|
40728
|
+
}): CheckGrader;
|
|
40729
|
+
/** No tool named `name` was called. */
|
|
40730
|
+
declare function notCalledTool(name: string): CheckGrader;
|
|
40731
|
+
/** The run made no tool calls at all. */
|
|
40732
|
+
declare function usedNoTools(): CheckGrader;
|
|
40733
|
+
/** The run made at most `max` tool calls. */
|
|
40734
|
+
declare function maxToolCalls(max: number): CheckGrader;
|
|
40735
|
+
/** `tools` appears as an ordered subsequence of the tool-call names. */
|
|
40736
|
+
declare function toolOrder(tools: string[]): CheckGrader;
|
|
40737
|
+
/** A step named (or typed) `name` ran. */
|
|
40738
|
+
declare function ranStep(name: string): CheckGrader;
|
|
40739
|
+
/** `steps` appears as an ordered subsequence of the steps that ran. */
|
|
40740
|
+
declare function stepOrder(steps: string[]): CheckGrader;
|
|
40741
|
+
/** The run completed (finished without erroring and was not left paused). */
|
|
40742
|
+
declare function completed(): CheckGrader;
|
|
40743
|
+
/** Total run cost was within `maxUsd` (US dollars). */
|
|
40744
|
+
declare function cost(maxUsd: number): CheckGrader;
|
|
40687
40745
|
/**
|
|
40688
40746
|
* LLM-as-judge over free-form criteria. Soft, model-graded — reach for it only
|
|
40689
40747
|
* when no deterministic check captures what "good" means.
|
|
@@ -47744,4 +47802,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
47744
47802
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
47745
47803
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
47746
47804
|
|
|
47747
|
-
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GraderConfig, type GraderOutcome, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook, validJson, withUnifiedEvents };
|
|
47805
|
+
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GraderConfig, type GraderOutcome, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|
package/dist/index.mjs
CHANGED
|
@@ -3286,7 +3286,17 @@ var CHECK_GRADER_KINDS = /* @__PURE__ */ new Set([
|
|
|
3286
3286
|
"json_field",
|
|
3287
3287
|
"length",
|
|
3288
3288
|
"latency",
|
|
3289
|
-
"no_error"
|
|
3289
|
+
"no_error",
|
|
3290
|
+
// Trace checks.
|
|
3291
|
+
"called_tool",
|
|
3292
|
+
"not_called_tool",
|
|
3293
|
+
"used_no_tools",
|
|
3294
|
+
"max_tool_calls",
|
|
3295
|
+
"tool_order",
|
|
3296
|
+
"ran_step",
|
|
3297
|
+
"step_order",
|
|
3298
|
+
"completed",
|
|
3299
|
+
"cost"
|
|
3290
3300
|
]);
|
|
3291
3301
|
function contains(value, opts) {
|
|
3292
3302
|
return { kind: "contains", value, ...opts?.caseSensitive ? { caseSensitive: true } : {} };
|
|
@@ -3330,6 +3340,64 @@ function latency(maxMs) {
|
|
|
3330
3340
|
function noError() {
|
|
3331
3341
|
return { kind: "no_error" };
|
|
3332
3342
|
}
|
|
3343
|
+
function calledTool(name, opts) {
|
|
3344
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
3345
|
+
throw new Error("calledTool() requires a non-empty tool name");
|
|
3346
|
+
}
|
|
3347
|
+
if (opts?.times !== void 0 && (!Number.isInteger(opts.times) || opts.times <= 0)) {
|
|
3348
|
+
throw new Error('calledTool() "times" must be a positive integer');
|
|
3349
|
+
}
|
|
3350
|
+
return {
|
|
3351
|
+
kind: "called_tool",
|
|
3352
|
+
name,
|
|
3353
|
+
...opts && "input" in opts && opts.input !== void 0 ? { input: opts.input } : {},
|
|
3354
|
+
...opts && "output" in opts && opts.output !== void 0 ? { output: opts.output } : {},
|
|
3355
|
+
...opts && typeof opts.isError === "boolean" ? { isError: opts.isError } : {},
|
|
3356
|
+
...opts?.times !== void 0 ? { times: opts.times } : {}
|
|
3357
|
+
};
|
|
3358
|
+
}
|
|
3359
|
+
function notCalledTool(name) {
|
|
3360
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
3361
|
+
throw new Error("notCalledTool() requires a non-empty tool name");
|
|
3362
|
+
}
|
|
3363
|
+
return { kind: "not_called_tool", name };
|
|
3364
|
+
}
|
|
3365
|
+
function usedNoTools() {
|
|
3366
|
+
return { kind: "used_no_tools" };
|
|
3367
|
+
}
|
|
3368
|
+
function maxToolCalls(max) {
|
|
3369
|
+
if (!Number.isInteger(max) || max < 0) {
|
|
3370
|
+
throw new Error("maxToolCalls() requires a non-negative integer");
|
|
3371
|
+
}
|
|
3372
|
+
return { kind: "max_tool_calls", max };
|
|
3373
|
+
}
|
|
3374
|
+
function toolOrder(tools) {
|
|
3375
|
+
if (!Array.isArray(tools) || tools.length === 0) {
|
|
3376
|
+
throw new Error("toolOrder() requires a non-empty array of tool names");
|
|
3377
|
+
}
|
|
3378
|
+
return { kind: "tool_order", tools };
|
|
3379
|
+
}
|
|
3380
|
+
function ranStep(name) {
|
|
3381
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
3382
|
+
throw new Error("ranStep() requires a non-empty step name");
|
|
3383
|
+
}
|
|
3384
|
+
return { kind: "ran_step", name };
|
|
3385
|
+
}
|
|
3386
|
+
function stepOrder(steps) {
|
|
3387
|
+
if (!Array.isArray(steps) || steps.length === 0) {
|
|
3388
|
+
throw new Error("stepOrder() requires a non-empty array of step names");
|
|
3389
|
+
}
|
|
3390
|
+
return { kind: "step_order", steps };
|
|
3391
|
+
}
|
|
3392
|
+
function completed() {
|
|
3393
|
+
return { kind: "completed" };
|
|
3394
|
+
}
|
|
3395
|
+
function cost(maxUsd) {
|
|
3396
|
+
if (!Number.isFinite(maxUsd) || maxUsd <= 0) {
|
|
3397
|
+
throw new Error("cost() requires a positive maxUsd");
|
|
3398
|
+
}
|
|
3399
|
+
return { kind: "cost", maxUsd };
|
|
3400
|
+
}
|
|
3333
3401
|
function judge(criteria, opts) {
|
|
3334
3402
|
if (typeof criteria !== "string" || criteria.trim().length === 0) {
|
|
3335
3403
|
throw new Error("judge() requires non-empty criteria");
|
|
@@ -3406,7 +3474,7 @@ function validateGrader(grader, where) {
|
|
|
3406
3474
|
}
|
|
3407
3475
|
if (!CHECK_GRADER_KINDS.has(grader.kind)) {
|
|
3408
3476
|
throw new Error(
|
|
3409
|
-
`defineEval: ${where} has unknown grader kind "${grader.kind}". Known kinds: ${[...CHECK_GRADER_KINDS].join(", ")}, ai
|
|
3477
|
+
`defineEval: ${where} has unknown grader kind "${grader.kind}". Known kinds: ${[...CHECK_GRADER_KINDS].join(", ")}, ai.`
|
|
3410
3478
|
);
|
|
3411
3479
|
}
|
|
3412
3480
|
return grader;
|
|
@@ -5848,7 +5916,7 @@ var Runtype = class {
|
|
|
5848
5916
|
|
|
5849
5917
|
// src/version.ts
|
|
5850
5918
|
var FALLBACK_VERSION = "0.0.0";
|
|
5851
|
-
var SDK_VERSION = "5.
|
|
5919
|
+
var SDK_VERSION = "5.5.0".length > 0 ? "5.5.0" : FALLBACK_VERSION;
|
|
5852
5920
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
5853
5921
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
5854
5922
|
|
|
@@ -13558,7 +13626,9 @@ export {
|
|
|
13558
13626
|
buildLedgerOffloadReference,
|
|
13559
13627
|
buildPolicyGuidance,
|
|
13560
13628
|
buildSendViewOffloadMarker,
|
|
13629
|
+
calledTool,
|
|
13561
13630
|
compileWorkflowConfig,
|
|
13631
|
+
completed,
|
|
13562
13632
|
computeAgentContentHash,
|
|
13563
13633
|
computeEvalContentHash,
|
|
13564
13634
|
computeFlowContentHash,
|
|
@@ -13568,6 +13638,7 @@ export {
|
|
|
13568
13638
|
computeSurfaceContentHash,
|
|
13569
13639
|
computeToolContentHash,
|
|
13570
13640
|
contains,
|
|
13641
|
+
cost,
|
|
13571
13642
|
createAgentEventTranslator,
|
|
13572
13643
|
createClient,
|
|
13573
13644
|
createExternalTool,
|
|
@@ -13605,6 +13676,7 @@ export {
|
|
|
13605
13676
|
length,
|
|
13606
13677
|
listWorkflowHooks,
|
|
13607
13678
|
matchesExpected,
|
|
13679
|
+
maxToolCalls,
|
|
13608
13680
|
noError,
|
|
13609
13681
|
normalizeAgentDefinition,
|
|
13610
13682
|
normalizeCandidatePath,
|
|
@@ -13613,6 +13685,7 @@ export {
|
|
|
13613
13685
|
normalizeSkillDefinition,
|
|
13614
13686
|
normalizeSurfaceDefinition,
|
|
13615
13687
|
normalizeToolDefinition,
|
|
13688
|
+
notCalledTool,
|
|
13616
13689
|
notContains,
|
|
13617
13690
|
parseFinalBuffer,
|
|
13618
13691
|
parseLedgerArtifactRelativePath,
|
|
@@ -13621,6 +13694,7 @@ export {
|
|
|
13621
13694
|
processStream,
|
|
13622
13695
|
pullEval,
|
|
13623
13696
|
pullFpo,
|
|
13697
|
+
ranStep,
|
|
13624
13698
|
regex,
|
|
13625
13699
|
registerWorkflowHook,
|
|
13626
13700
|
resolveStallStopAfter,
|
|
@@ -13629,8 +13703,11 @@ export {
|
|
|
13629
13703
|
sanitizeTaskSlug,
|
|
13630
13704
|
shouldInjectEmptySessionNudge,
|
|
13631
13705
|
shouldRequestModelEscalation,
|
|
13706
|
+
stepOrder,
|
|
13632
13707
|
streamEvents,
|
|
13708
|
+
toolOrder,
|
|
13633
13709
|
unregisterWorkflowHook,
|
|
13710
|
+
usedNoTools,
|
|
13634
13711
|
validJson,
|
|
13635
13712
|
withUnifiedEvents
|
|
13636
13713
|
};
|
package/package.json
CHANGED