@runtypelabs/sdk 4.0.3 → 4.1.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.d.ts CHANGED
@@ -694,6 +694,11 @@ interface paths {
694
694
  maxTurns?: number;
695
695
  reflectionInterval?: number;
696
696
  };
697
+ memory?: {
698
+ enabled: boolean;
699
+ injectSummary?: boolean;
700
+ profileTemplate?: string;
701
+ };
697
702
  model?: string;
698
703
  presencePenalty?: number;
699
704
  reasoning?: boolean | {
@@ -709,6 +714,12 @@ interface paths {
709
714
  seed?: number;
710
715
  systemPrompt?: string;
711
716
  temperature?: number;
717
+ temporal?: {
718
+ elapsedThresholdSeconds?: number;
719
+ groundNow?: boolean;
720
+ injectElapsed?: boolean;
721
+ timezone?: string;
722
+ };
712
723
  tools?: {
713
724
  approval?: {
714
725
  require: string[] | boolean;
@@ -1339,6 +1350,11 @@ interface paths {
1339
1350
  maxTurns?: number;
1340
1351
  reflectionInterval?: number;
1341
1352
  };
1353
+ memory?: {
1354
+ enabled: boolean;
1355
+ injectSummary?: boolean;
1356
+ profileTemplate?: string;
1357
+ };
1342
1358
  model?: string;
1343
1359
  presencePenalty?: number;
1344
1360
  reasoning?: boolean | {
@@ -1354,6 +1370,12 @@ interface paths {
1354
1370
  seed?: number;
1355
1371
  systemPrompt?: string;
1356
1372
  temperature?: number;
1373
+ temporal?: {
1374
+ elapsedThresholdSeconds?: number;
1375
+ groundNow?: boolean;
1376
+ injectElapsed?: boolean;
1377
+ timezone?: string;
1378
+ };
1357
1379
  tools?: {
1358
1380
  approval?: {
1359
1381
  require: string[] | boolean;
@@ -8747,7 +8769,7 @@ interface paths {
8747
8769
  name: string;
8748
8770
  order?: number;
8749
8771
  /** @enum {string} */
8750
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8772
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8751
8773
  when?: string;
8752
8774
  }[];
8753
8775
  name: string;
@@ -8759,7 +8781,7 @@ interface paths {
8759
8781
  name: string;
8760
8782
  order?: number;
8761
8783
  /** @enum {string} */
8762
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8784
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8763
8785
  when?: string;
8764
8786
  }[];
8765
8787
  };
@@ -8958,7 +8980,7 @@ interface paths {
8958
8980
  name: string;
8959
8981
  order?: number;
8960
8982
  /** @enum {string} */
8961
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8983
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8962
8984
  when?: string;
8963
8985
  }[];
8964
8986
  name?: string;
@@ -13655,6 +13677,7 @@ interface paths {
13655
13677
  status: string;
13656
13678
  subject: string | null;
13657
13679
  surfaceId: string;
13680
+ timezone: string | null;
13658
13681
  updatedAt: string;
13659
13682
  } & {
13660
13683
  [key: string]: unknown;
@@ -13735,6 +13758,7 @@ interface paths {
13735
13758
  status?: "open" | "closed" | "archived";
13736
13759
  subject?: string;
13737
13760
  surfaceId: string;
13761
+ timezone?: string | null;
13738
13762
  };
13739
13763
  };
13740
13764
  };
@@ -13768,6 +13792,7 @@ interface paths {
13768
13792
  type: string | null;
13769
13793
  };
13770
13794
  surfaceId: string;
13795
+ timezone: string | null;
13771
13796
  updatedAt: string;
13772
13797
  } & {
13773
13798
  [key: string]: unknown;
@@ -13869,6 +13894,7 @@ interface paths {
13869
13894
  type: string | null;
13870
13895
  };
13871
13896
  surfaceId: string;
13897
+ timezone: string | null;
13872
13898
  updatedAt: string;
13873
13899
  } & {
13874
13900
  [key: string]: unknown;
@@ -13945,6 +13971,7 @@ interface paths {
13945
13971
  /** @enum {string} */
13946
13972
  status?: "open" | "closed" | "archived";
13947
13973
  subject?: string;
13974
+ timezone?: string | null;
13948
13975
  };
13949
13976
  };
13950
13977
  };
@@ -13978,6 +14005,7 @@ interface paths {
13978
14005
  type: string | null;
13979
14006
  };
13980
14007
  surfaceId: string;
14008
+ timezone: string | null;
13981
14009
  updatedAt: string;
13982
14010
  } & {
13983
14011
  [key: string]: unknown;
@@ -33001,7 +33029,7 @@ interface TransformDataStepConfig$1 {
33001
33029
  interface SetVariableStepConfig$1 {
33002
33030
  name: string;
33003
33031
  variableName: string;
33004
- value: string | number | boolean | object;
33032
+ value: string | number | boolean | null | object;
33005
33033
  enabled?: boolean;
33006
33034
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
33007
33035
  when?: string;
@@ -33314,6 +33342,27 @@ interface FlowSummary {
33314
33342
  /** Whether the flow completed successfully */
33315
33343
  success: boolean;
33316
33344
  }
33345
+ /**
33346
+ * A single validation finding (error / warning / recommendation). Spec-derived
33347
+ * from the `POST /v1/public/flows/validate` response so it cannot drift from the
33348
+ * API contract (the shared `FlowValidationIssue` source of truth).
33349
+ */
33350
+ type FlowValidationIssue = components['schemas']['FlowValidationIssue'];
33351
+ /**
33352
+ * The result envelope returned by {@link FlowBuilder.validate}. Spec-derived
33353
+ * from the `POST /v1/public/flows/validate` response (`FlowValidationResult`):
33354
+ * `valid` plus the tri-level `errors` / `warnings` / `recommendations` arrays and
33355
+ * a `context` block describing whether account-scoped checks ran.
33356
+ */
33357
+ type FlowValidationResult = components['schemas']['FlowValidationResult'];
33358
+ /**
33359
+ * Minimal client capability {@link FlowBuilder.validate} needs: a JSON `POST`.
33360
+ * `RuntypeClient` (and any client exposing `post<T>(path, data)`) satisfies it,
33361
+ * so `validate()` stays zero-dependency and reuses the existing HTTP transport.
33362
+ */
33363
+ interface FlowValidationClient {
33364
+ post<T>(path: string, data?: unknown): Promise<T>;
33365
+ }
33317
33366
  declare class FlowBuilder {
33318
33367
  private flowConfig;
33319
33368
  private steps;
@@ -33513,6 +33562,37 @@ declare class FlowBuilder {
33513
33562
  * Build the final dispatch request configuration
33514
33563
  */
33515
33564
  build(): DispatchRequest;
33565
+ /**
33566
+ * Validate this prospective flow against the public validation endpoint
33567
+ * (`POST /v1/public/flows/validate`) WITHOUT creating it. Returns the same
33568
+ * `errors` / `warnings` / `recommendations` envelope the API, dashboard, and
33569
+ * MCP `validate_flow` tool use, so structural issues, the upsert-record JSON
33570
+ * foot-gun, undeclared-variable warnings, and sub-optimal model selections
33571
+ * surface at author time rather than at dispatch time.
33572
+ *
33573
+ * Authentication is optional. Passing an authenticated client additionally
33574
+ * runs account-scoped checks (referenced tools / flows / agents must exist and
33575
+ * be owned by the account); `result.context` reports whether those ran.
33576
+ *
33577
+ * Validates the inline-defined steps. A builder targeting a SAVED flow by id
33578
+ * (`useExistingFlow(...)`) has no inline steps to validate, so this throws —
33579
+ * the validation endpoint validates a prospective `{ name, steps }` payload,
33580
+ * not a saved flow by id (which was already validated at create time).
33581
+ *
33582
+ * @param client - Any client exposing `post<T>(path, data)` (e.g. `RuntypeClient`).
33583
+ * @example
33584
+ * ```typescript
33585
+ * const result = await new FlowBuilder()
33586
+ * .createFlow({ name: 'My Flow' })
33587
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: 'Analyze: {{data}}' })
33588
+ * .validate(apiClient)
33589
+ *
33590
+ * if (!result.valid) {
33591
+ * for (const issue of result.errors) console.error(issue.code, issue.message)
33592
+ * }
33593
+ * ```
33594
+ */
33595
+ validate(client: FlowValidationClient): Promise<FlowValidationResult>;
33516
33596
  /**
33517
33597
  * Build and execute the flow with the provided client
33518
33598
  *
@@ -33613,7 +33693,25 @@ interface DispatchClient {
33613
33693
  */
33614
33694
  declare class ClientFlowBuilder extends FlowBuilder {
33615
33695
  private boundClient;
33616
- constructor(client: DispatchClient, name: string);
33696
+ constructor(client: DispatchClient & Partial<FlowValidationClient>, name: string);
33697
+ /**
33698
+ * Validate the flow using the bound client (no client argument needed).
33699
+ * Same contract as {@link FlowBuilder.validate}.
33700
+ *
33701
+ * Throws if the bound client does not expose a `post` transport (e.g. a
33702
+ * dispatch-only client). Construct the builder via `runtype.flow(name)` — or
33703
+ * use the unbound `new FlowBuilder()…validate(client)` form — to get a
33704
+ * validation-capable client.
33705
+ *
33706
+ * @example
33707
+ * ```typescript
33708
+ * const result = await runtype
33709
+ * .flow('My Flow')
33710
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
33711
+ * .validate()
33712
+ * ```
33713
+ */
33714
+ validate(): Promise<FlowValidationResult>;
33617
33715
  /**
33618
33716
  * Build and execute the flow using the bound client
33619
33717
  *
@@ -33799,7 +33897,14 @@ interface CreateFlowRequest {
33799
33897
  * valid. When omitted, the server mints one on first save.
33800
33898
  */
33801
33899
  id?: string;
33802
- type: 'prompt' | 'context' | 'condition' | 'output' | 'email';
33900
+ /**
33901
+ * Spec-derived flow step type discriminant (see {@link FlowStepType}). Kept
33902
+ * in sync with the API's canonical `FLOW_STEP_TYPES` via the generated
33903
+ * OpenAPI types — a removed step type breaks this build. Previously a stale
33904
+ * hand-written 5-value literal (`'prompt' | 'context' | 'condition' |
33905
+ * 'output' | 'email'`), four values of which were never real step types.
33906
+ */
33907
+ type: FlowStepType;
33803
33908
  name: string;
33804
33909
  order?: number;
33805
33910
  enabled?: boolean;
@@ -33939,6 +34044,33 @@ interface ClientToolDefinition {
33939
34044
  origin?: 'webmcp' | 'sdk';
33940
34045
  pageOrigin?: string;
33941
34046
  }
34047
+ type CreateFlowRequestBody = NonNullable<paths['/v1/flows']['post']['requestBody']>['content']['application/json'];
34048
+ /**
34049
+ * The canonical set of flow step types (e.g. `'prompt'`, `'transform-data'`,
34050
+ * `'conditional'`). Spec-derived from `FLOW_STEP_TYPES` in `@runtypelabs/shared`
34051
+ * (surfaced through the POST /v1/flows request body), so it cannot drift from
34052
+ * the API: `pnpm generate:types` refreshes the underlying generated types and
34053
+ * `generate:types:check` fails CI on drift.
34054
+ */
34055
+ type FlowStepType = NonNullable<CreateFlowRequestBody['flowSteps']>[number]['type'];
34056
+ /**
34057
+ * A single flow step definition for inline ("virtual") flow dispatch and flow
34058
+ * authoring. This replaces the former `Array<any>` on
34059
+ * {@link DispatchRequest.flow}`.steps`, so a malformed step — an unknown
34060
+ * `type`, or a non-object element — is now a compile error.
34061
+ *
34062
+ * Derived from the spec's create-flow request step, with two deliberate
34063
+ * adjustments:
34064
+ * - `name` is optional here: dispatch does not require step names (create-flow
34065
+ * does).
34066
+ * - `config` stays `unknown`. The API keeps step `config` loose at the schema
34067
+ * layer and validates it imperatively to produce rich, field-level agent
34068
+ * feedback. Compile-time per-type `config` typing (the recursive step-config
34069
+ * union) is the remaining follow-up — see end-to-end-type-safety plan #12(a).
34070
+ */
34071
+ type FlowStepDefinition = Omit<NonNullable<CreateFlowRequestBody['flowSteps']>[number], 'name'> & {
34072
+ name?: string;
34073
+ };
33942
34074
  interface DispatchRequest {
33943
34075
  record?: {
33944
34076
  id?: number | string;
@@ -33952,7 +34084,7 @@ interface DispatchRequest {
33952
34084
  id?: string;
33953
34085
  name?: string;
33954
34086
  contentHash?: string;
33955
- steps?: Array<any>;
34087
+ steps?: FlowStepDefinition[];
33956
34088
  };
33957
34089
  messages?: Array<{
33958
34090
  role: 'system' | 'user' | 'assistant';
@@ -34781,6 +34913,33 @@ declare class RuntypeFlowBuilder {
34781
34913
  */
34782
34914
  runWithLocalTools(localTools: Record<string, (args: unknown) => Promise<unknown>>, callbacks?: StreamCallbacks): Promise<FlowResult>;
34783
34915
  build(): DispatchRequest;
34916
+ /**
34917
+ * Validate this prospective flow against the public validation endpoint
34918
+ * (`POST /v1/public/flows/validate`) WITHOUT creating it, using the bound
34919
+ * client. Returns the same `errors` / `warnings` / `recommendations` envelope
34920
+ * the API, dashboard, and MCP `validate_flow` tool use, so structural issues,
34921
+ * the upsert-record JSON foot-gun, undeclared-variable warnings, and
34922
+ * sub-optimal model selections surface at author time. The bound client
34923
+ * carries authentication; an authenticated client additionally runs
34924
+ * account-scoped checks (`result.context` reports whether they ran). Mirrors
34925
+ * {@link FlowBuilder.validate}.
34926
+ *
34927
+ * Only valid for prospective flows (`Runtype.flows.virtual(...)` /
34928
+ * `Runtype.flows.upsert(...)`). An existing-flow builder
34929
+ * (`Runtype.flows.use(id)`) has no inline steps to validate, so this throws —
34930
+ * the validation endpoint validates a `{ name, steps }` payload, not a saved
34931
+ * flow by id (which was already validated at create time).
34932
+ *
34933
+ * @example
34934
+ * ```typescript
34935
+ * const result = await Runtype.flows.virtual({ name: 'Temp Flow' })
34936
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
34937
+ * .validate()
34938
+ *
34939
+ * if (!result.valid) console.error(result.errors)
34940
+ * ```
34941
+ */
34942
+ validate(): Promise<FlowValidationResult>;
34784
34943
  /**
34785
34944
  * Persisted flow protocol (APQ-style): send hash-only first, retry with
34786
34945
  * full definition on FLOW_DEFINITION_REQUIRED. For non-upsert modes,
@@ -39047,4 +39206,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
39047
39206
  declare function getDefaultPlanPath(taskName: string): string;
39048
39207
  declare function sanitizeTaskSlug(taskName: string): string;
39049
39208
 
39050
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, 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, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, 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 BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, 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 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, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, 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 FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, 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 Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, 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 SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, 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 SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, 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 StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, 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 WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
39209
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, 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, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, 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 BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, 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 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, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, 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 FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, 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 Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, 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 SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, 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 SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, 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 StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, 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 WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };