@cloudflare/think 0.18.0 → 0.19.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-CJ--4uax.d.ts → index-BLkPlEbF.d.ts} +126 -56
- package/dist/messengers/index.d.ts +1 -1
- package/dist/messengers/telegram.d.ts +1 -1
- package/dist/think.d.ts +1 -1
- package/dist/think.js +464 -387
- package/dist/think.js.map +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +3 -3
|
@@ -113,7 +113,6 @@ import {
|
|
|
113
113
|
} from "chat";
|
|
114
114
|
import { ChatSdkStateAdapterOptions, ChatSdkStateAgent } from "agents/chat-sdk";
|
|
115
115
|
import { RpcTarget } from "cloudflare:workers";
|
|
116
|
-
import { LifecycleJobContext, LifecycleJobOutcome } from "agents/lifecycle";
|
|
117
116
|
import { Streams } from "agents/streams";
|
|
118
117
|
|
|
119
118
|
//#region src/session.d.ts
|
|
@@ -870,6 +869,17 @@ type DeleteSubmissionsOptions = {
|
|
|
870
869
|
completedBefore?: Date;
|
|
871
870
|
limit?: number;
|
|
872
871
|
};
|
|
872
|
+
/** Payload of one queued workflow notification. */
|
|
873
|
+
type WorkflowNotificationPayload = {
|
|
874
|
+
workflowName: string;
|
|
875
|
+
workflowId: string;
|
|
876
|
+
event: {
|
|
877
|
+
type: string;
|
|
878
|
+
payload: unknown;
|
|
879
|
+
} /** Failed deliveries so far; drives the retry backoff. */;
|
|
880
|
+
attempts?: number /** Epoch ms of the first failed delivery; bounds the retry window. */;
|
|
881
|
+
firstFailedAt?: number;
|
|
882
|
+
};
|
|
873
883
|
/**
|
|
874
884
|
* A chat turn request. Built automatically by each entry path
|
|
875
885
|
* (WebSocket, chat(), saveMessages, auto-continuation) and passed
|
|
@@ -1753,7 +1763,6 @@ declare class Think<
|
|
|
1753
1763
|
*/
|
|
1754
1764
|
private _runBestEffortOnStartStep;
|
|
1755
1765
|
private _mediaEvictionRunning;
|
|
1756
|
-
private _mediaEvictionScheduled;
|
|
1757
1766
|
/**
|
|
1758
1767
|
* A request that arrived while a pass was running. That pass read its
|
|
1759
1768
|
* candidates before the request's append landed, so the request is kept
|
|
@@ -1785,15 +1794,22 @@ declare class Think<
|
|
|
1785
1794
|
*/
|
|
1786
1795
|
private _agedRowsHiddenFromCache;
|
|
1787
1796
|
/**
|
|
1788
|
-
*
|
|
1797
|
+
* Queue a bounded media-eviction pass (see `mediaEviction`).
|
|
1789
1798
|
*
|
|
1790
|
-
*
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1799
|
+
* The pass is one queue item with a stable id, so repeated requests
|
|
1800
|
+
* coalesce and the pass runs from the alarm loop, never inside the
|
|
1801
|
+
* request or the `blockConcurrencyWhile` cache refresh that asked for it.
|
|
1802
|
+
* A request that lands while a pass is running is re-evaluated once the
|
|
1803
|
+
* pass ends, so media aged by an append during the pass is not left until
|
|
1804
|
+
* the next one. `_evictAgedMediaBestEffort` swallows its own failures, so
|
|
1805
|
+
* a bad pass can never brick the object.
|
|
1795
1806
|
*/
|
|
1796
1807
|
private _scheduleMediaEvictionPass;
|
|
1808
|
+
/**
|
|
1809
|
+
* Run one media-eviction pass.
|
|
1810
|
+
* @internal Queue callback.
|
|
1811
|
+
*/
|
|
1812
|
+
_cfEvictAgedMedia(): Promise<void>;
|
|
1797
1813
|
/**
|
|
1798
1814
|
* Remove aged media from the conversation, leaving a Workspace pointer the
|
|
1799
1815
|
* agent can read back.
|
|
@@ -1947,12 +1963,9 @@ declare class Think<
|
|
|
1947
1963
|
*/
|
|
1948
1964
|
private _agentToolRunsByRequestId;
|
|
1949
1965
|
private _submissionTableEnsured;
|
|
1950
|
-
private _workflowNotificationTableEnsured;
|
|
1951
1966
|
private _declaredScheduledTasksTableEnsured;
|
|
1952
1967
|
private _actionLedgerTableEnsured;
|
|
1953
1968
|
private _actionPendingTableEnsured;
|
|
1954
|
-
private _drainingSubmissions;
|
|
1955
|
-
private _drainingWorkflowNotifications;
|
|
1956
1969
|
private _submissionAbortControllers;
|
|
1957
1970
|
private _programmaticStreamErrors;
|
|
1958
1971
|
protected static submissionRecoveryStaleMs: number;
|
|
@@ -1999,7 +2012,6 @@ declare class Think<
|
|
|
1999
2012
|
* invariant note there).
|
|
2000
2013
|
*/
|
|
2001
2014
|
private _rebindAgentToolChildRunRequestId;
|
|
2002
|
-
alarm(): Promise<void>;
|
|
2003
2015
|
/**
|
|
2004
2016
|
* Persist an arbitrary JSON-serializable configuration object for this
|
|
2005
2017
|
* agent instance. Stored in the Think-private `think_config` table —
|
|
@@ -3214,7 +3226,6 @@ declare class Think<
|
|
|
3214
3226
|
payload: DeclaredScheduledTaskPayload
|
|
3215
3227
|
): Promise<void>;
|
|
3216
3228
|
private _ensureSubmissionTable;
|
|
3217
|
-
private _ensureWorkflowNotificationTable;
|
|
3218
3229
|
private _readSubmission;
|
|
3219
3230
|
private _readSubmissionByIdempotencyKey;
|
|
3220
3231
|
private _normalizeStatusFilter;
|
|
@@ -3230,26 +3241,41 @@ declare class Think<
|
|
|
3230
3241
|
protected onSubmissionStatus(
|
|
3231
3242
|
_submission: ThinkSubmissionInspection
|
|
3232
3243
|
): void | Promise<void>;
|
|
3233
|
-
private _enqueueWorkflowNotification;
|
|
3234
|
-
private _insertWorkflowNotification;
|
|
3235
|
-
private _recoverWorkflowNotifications;
|
|
3236
|
-
private _startWorkflowNotificationDrain;
|
|
3237
|
-
private _hasPendingWorkflowNotifications;
|
|
3238
|
-
private _drainWorkflowNotifications;
|
|
3239
|
-
private _nextWorkflowNotificationAlarm;
|
|
3240
3244
|
/**
|
|
3241
|
-
*
|
|
3242
|
-
*
|
|
3245
|
+
* Queue the workflow event for a submission that just went terminal.
|
|
3246
|
+
*
|
|
3247
|
+
* The item is written synchronously (the Lifecycle has started whenever a
|
|
3248
|
+
* submission transitions), so call this in the same synchronous block as
|
|
3249
|
+
* the terminal status write: the two commit together and no recovery scan
|
|
3250
|
+
* is needed. A repeated push for the same submission and event type
|
|
3251
|
+
* replaces the pending item rather than duplicating it.
|
|
3243
3252
|
*/
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3253
|
+
private _insertWorkflowNotification;
|
|
3254
|
+
/** Queue the workflow event for a row that a caller just made terminal. */
|
|
3255
|
+
private _enqueueTerminalWorkflowNotification;
|
|
3256
|
+
/**
|
|
3257
|
+
* Deliver one workflow notification. Runs from the queue on first
|
|
3258
|
+
* delivery; a failed delivery schedules this same callback again with
|
|
3259
|
+
* exponential backoff (2s doubling, capped at ten minutes) so a
|
|
3260
|
+
* temporarily unreachable workflow still gets its terminal event. Once
|
|
3261
|
+
* the first failure is twelve hours old delivery gives up by throwing:
|
|
3262
|
+
* the dispatching capability reports it through its error event and the
|
|
3263
|
+
* Agent's `onError`.
|
|
3264
|
+
* @internal Queue and schedule callback.
|
|
3265
|
+
*/
|
|
3266
|
+
_cfDeliverWorkflowNotification(
|
|
3267
|
+
payload: WorkflowNotificationPayload
|
|
3268
|
+
): Promise<void>;
|
|
3248
3269
|
/**
|
|
3249
|
-
*
|
|
3250
|
-
*
|
|
3270
|
+
* Move undelivered rows of the retired `cf_think_workflow_notifications`
|
|
3271
|
+
* outbox into the queue and drop the table. Idempotent: a missing table
|
|
3272
|
+
* means a fresh object or a completed migration.
|
|
3273
|
+
*
|
|
3274
|
+
* TEMPORARY: one-shot upgrade path for objects that were mid-delivery when
|
|
3275
|
+
* this release landed. Remove in the next minor release, once every
|
|
3276
|
+
* deployed object has started on this version and migrated.
|
|
3251
3277
|
*/
|
|
3252
|
-
private
|
|
3278
|
+
private _migrateLegacyWorkflowNotifications;
|
|
3253
3279
|
inspectSubmission(
|
|
3254
3280
|
submissionId: string
|
|
3255
3281
|
): Promise<ThinkSubmissionInspection | null>;
|
|
@@ -3265,11 +3291,22 @@ declare class Think<
|
|
|
3265
3291
|
messages: UIMessage[],
|
|
3266
3292
|
options?: SubmitMessagesOptions
|
|
3267
3293
|
): Promise<SubmitMessagesResult>;
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3294
|
+
/**
|
|
3295
|
+
* Queue the run of one pending submission. Idempotent: the stable id
|
|
3296
|
+
* replaces an item already queued for the submission in place, keeping
|
|
3297
|
+
* its FIFO slot, and re-arms the physical alarm so a lost alarm recovers.
|
|
3298
|
+
*/
|
|
3299
|
+
private _queueSubmissionRun;
|
|
3300
|
+
/** Queue a run for every pending submission that has none. */
|
|
3301
|
+
private _queuePendingSubmissionRuns;
|
|
3302
|
+
/**
|
|
3303
|
+
* Run one pending submission. Runs on the Lifecycle alarm loop through the
|
|
3304
|
+
* Queue capability, one item at a time in submission order; a row that is
|
|
3305
|
+
* no longer pending (cancelled, skipped, or claimed by an overlapping
|
|
3306
|
+
* dispatch) is a no-op.
|
|
3307
|
+
* @internal Queue callback.
|
|
3308
|
+
*/
|
|
3309
|
+
_cfRunSubmission(payload: { submissionId: string }): Promise<void>;
|
|
3273
3310
|
private _executeSubmission;
|
|
3274
3311
|
private _getSubmissionFinalStatus;
|
|
3275
3312
|
private _markPendingSubmissionsSkipped;
|
|
@@ -3284,7 +3321,7 @@ declare class Think<
|
|
|
3284
3321
|
private _recoverableChatTurnTaskCreatedAt;
|
|
3285
3322
|
private _hasRecoverableChatTurn;
|
|
3286
3323
|
private _hasFreshRecoverableSubmissionEvidence;
|
|
3287
|
-
private
|
|
3324
|
+
private _hasScheduledChatRecovery;
|
|
3288
3325
|
/**
|
|
3289
3326
|
* Inject messages and trigger a model turn — without a WebSocket request.
|
|
3290
3327
|
*
|
|
@@ -3519,9 +3556,17 @@ declare class Think<
|
|
|
3519
3556
|
* Whether this turn's stream rows can go with its cutover. An agent-tool
|
|
3520
3557
|
* child turn keeps them: the parent tails the stored chunks after the
|
|
3521
3558
|
* child completes (`getAgentToolChunks`), so the rows are reclaimed by
|
|
3522
|
-
* the child's next `start()` instead, as `AIChatAgent` does.
|
|
3523
|
-
|
|
3524
|
-
|
|
3559
|
+
* the child's next `start()` instead, as `AIChatAgent` does. A running
|
|
3560
|
+
* submission needs no stream evidence: its durable outcome stamp commits
|
|
3561
|
+
* in the same transaction as this cutover.
|
|
3562
|
+
*/
|
|
3563
|
+
private _streamCutoverOptions;
|
|
3564
|
+
/** Write only inside the transaction that settles this exact request's stream. */
|
|
3565
|
+
private _recordSubmissionTurnResult;
|
|
3566
|
+
/** Empty/stripped messages have the same atomic outcome cutover as messages. */
|
|
3567
|
+
private _finalizeSubmissionStream;
|
|
3568
|
+
/** Keep overflow chunks for consumers, but never call that segment an answer. */
|
|
3569
|
+
private _completeSubmissionRetryStream;
|
|
3525
3570
|
/**
|
|
3526
3571
|
* Remove parts belonging to Think's internal structured-output final-answer
|
|
3527
3572
|
* tool (`think_final_answer`, or a collision-suffixed variant) from a UI
|
|
@@ -3862,10 +3907,16 @@ declare class Think<
|
|
|
3862
3907
|
*/
|
|
3863
3908
|
private _resolveThinkRecoveryStream;
|
|
3864
3909
|
/**
|
|
3865
|
-
* Classify a recovered turn as `retry` or `continue`. A
|
|
3866
|
-
* partial re-runs its user message (`retryTargetUserId`), unless
|
|
3867
|
-
* already terminal — a terminal stream is never retried (it
|
|
3868
|
-
* its submission is reconciled in dispatch.
|
|
3910
|
+
* Classify a recovered turn as `retry` or `continue`. A turn that left no
|
|
3911
|
+
* persisted partial re-runs its user message (`retryTargetUserId`), unless
|
|
3912
|
+
* the stream is already terminal — a terminal stream is never retried (it
|
|
3913
|
+
* completed), only its submission is reconciled in dispatch.
|
|
3914
|
+
*
|
|
3915
|
+
* The stream row is opened before inference, so an interrupted turn can
|
|
3916
|
+
* have a stream id and still nothing to continue from; what decides retry is
|
|
3917
|
+
* the absence of persisted content and a leaf that is still the turn's user
|
|
3918
|
+
* message. Mirrors `AIChatAgent`'s empty-partial new-turn rule (#1691): a
|
|
3919
|
+
* `continue` here would find no assistant message and skip the turn.
|
|
3869
3920
|
*/
|
|
3870
3921
|
private _classifyRecoveredThinkTurn;
|
|
3871
3922
|
/**
|
|
@@ -4051,7 +4102,7 @@ declare class Think<
|
|
|
4051
4102
|
* down, so it throws too, burns the in-process retry budget inside the
|
|
4052
4103
|
* same reset window, and the row is consumed milliseconds before storage
|
|
4053
4104
|
* recovers. The submission is deliberately left `running` — the deferred
|
|
4054
|
-
* re-run reads it via `
|
|
4105
|
+
* re-run reads it via `_readRunningSubmissionForRecovery`, so marking it
|
|
4055
4106
|
* terminal here would turn the preserved row into a guaranteed
|
|
4056
4107
|
* `submission_not_running` no-op skip (a self-defeating defer).
|
|
4057
4108
|
* - Any OTHER (application) error is terminalized through the give-up path
|
|
@@ -4063,13 +4114,27 @@ declare class Think<
|
|
|
4063
4114
|
* send something new).
|
|
4064
4115
|
*/
|
|
4065
4116
|
private _handleRecoveryCallbackError;
|
|
4117
|
+
/**
|
|
4118
|
+
* Keep the recovery callback as owner until a chat Task or facet fiber is durably
|
|
4119
|
+
* accepted. At acceptance, move the running submission to the successor's
|
|
4120
|
+
* request identity before signaling handoff. If an override never starts a
|
|
4121
|
+
* durable successor, the signal stays inert and the callback owns the work
|
|
4122
|
+
* until the override returns.
|
|
4123
|
+
*/
|
|
4124
|
+
private _runRecoveredTurnAfterAcceptance;
|
|
4066
4125
|
_chatRecoveryRetry(data?: ChatRecoveryRetryData): Promise<void>;
|
|
4067
4126
|
protected _chatRecoveryRetryDetached(
|
|
4068
4127
|
data?: ChatRecoveryRetryData,
|
|
4069
4128
|
onTurnStarted?: () => void
|
|
4070
4129
|
): Promise<void>;
|
|
4071
|
-
|
|
4072
|
-
|
|
4130
|
+
/**
|
|
4131
|
+
* Recovery payloads retain the original submission/root identity while
|
|
4132
|
+
* request_id follows the accepted successor. Match both so released payloads,
|
|
4133
|
+
* redeferred callbacks, and exhaustion can still locate the running row.
|
|
4134
|
+
* Exact submission identity wins even when terminal: a redelivery must not
|
|
4135
|
+
* fall through to another submission whose successor request collides.
|
|
4136
|
+
*/
|
|
4137
|
+
private _readRunningSubmissionForRecovery;
|
|
4073
4138
|
private _markRecoveredSubmissionInterrupted;
|
|
4074
4139
|
private _completeRecoveredSubmission;
|
|
4075
4140
|
protected onChatRecovery(
|
|
@@ -4144,20 +4209,25 @@ declare class Think<
|
|
|
4144
4209
|
private _fireAutoContinuation;
|
|
4145
4210
|
private _activateDeferredContinuation;
|
|
4146
4211
|
/**
|
|
4147
|
-
*
|
|
4212
|
+
* Queue a continuation turn that does NOT require a live client connection.
|
|
4148
4213
|
*
|
|
4149
4214
|
* Used when a durable approval (a paused action or codemode execution) is
|
|
4150
4215
|
* resolved via RPC from a surface with no open chat socket — e.g. an ops
|
|
4151
4216
|
* dashboard, a webhook, or a voice backend approving hours/days later. The
|
|
4152
|
-
*
|
|
4153
|
-
*
|
|
4154
|
-
*
|
|
4155
|
-
*
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4217
|
+
* item is durable, so the turn still runs if the object leaves memory
|
|
4218
|
+
* before the alarm fires; the last request body and client tools it needs
|
|
4219
|
+
* are persisted config, restored on start. Approvals landing while one
|
|
4220
|
+
* continuation is pending or running coalesce onto the single item.
|
|
4221
|
+
*/
|
|
4222
|
+
private _queueConnectionlessContinuation;
|
|
4223
|
+
/**
|
|
4224
|
+
* Run one connection-less continuation turn. Mirrors the connection-bound
|
|
4225
|
+
* auto-continuation turn body but streams via `broadcast` (a no-op when
|
|
4226
|
+
* nobody is attached) and always persists, so a client that reconnects
|
|
4227
|
+
* later resumes the continued turn from history.
|
|
4228
|
+
* @internal Queue callback.
|
|
4159
4229
|
*/
|
|
4160
|
-
|
|
4230
|
+
_cfRunConnectionlessContinuation(): Promise<void>;
|
|
4161
4231
|
/**
|
|
4162
4232
|
* Render a reply attachment ({@link ReplyAttachment}) for delivery to the
|
|
4163
4233
|
* active channel. Returns the text/markdown to post, or `undefined` to skip —
|
|
@@ -4264,7 +4334,7 @@ declare class Think<
|
|
|
4264
4334
|
*/
|
|
4265
4335
|
protected _finishResumableStream(streamId: string): void;
|
|
4266
4336
|
/** Mark a resumable stream errored. */
|
|
4267
|
-
protected _errorResumableStream(streamId: string): void;
|
|
4337
|
+
protected _errorResumableStream(streamId: string, requestId?: string): void;
|
|
4268
4338
|
/**
|
|
4269
4339
|
* @deprecated Streams are reclaimed at cutover and on the next stream
|
|
4270
4340
|
* start; no alarm is armed any more. Kept so a cleanup alarm persisted by
|
|
@@ -4917,4 +4987,4 @@ export {
|
|
|
4917
4987
|
ChannelDeliverySurface as zn,
|
|
4918
4988
|
PrepareStepResult$1 as zt
|
|
4919
4989
|
};
|
|
4920
|
-
//# sourceMappingURL=index-
|
|
4990
|
+
//# sourceMappingURL=index-BLkPlEbF.d.ts.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
I as TextStreamCallback,
|
|
3
3
|
n as ChatSdkMessengerOptions,
|
|
4
4
|
o as MessengerDefinition
|
|
5
|
-
} from "../index-
|
|
5
|
+
} from "../index-BLkPlEbF.js";
|
|
6
6
|
import { TelegramAdapterConfig } from "@chat-adapter/telegram";
|
|
7
7
|
|
|
8
8
|
//#region src/messengers/telegram.d.ts
|
package/dist/think.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as StepConfig, An as Workspace, At as ExtensionConfig, Bn as ChannelIngress, Bt as ReplyAttachment, Cn as TurnConfig, Ct as ChatResponseResult, Dn as TurnResult, Dt as ContextOverflowConfig, E as DeliveryTag, En as TurnInputMessages, Et as ChunkPart, Fn as ChannelCapabilities, Ft as OnStartDegradation, Gn as MediaEvictionConfig, Gt as RunTurnSubmit, Hn as NormalizedChannelDefinition, Ht as RunTurnBase, In as ChannelContext, It as PendingApproval, Jn as SessionContextOptions, Jt as SaveMessagesResult, Kn as CompactAfterOptions, Kt as RunTurnWait, Ln as ChannelDefinition, Lt as PrepareStepContext, Mn as defaultContextOverflowClassifier, Mt as FiberRecoveryContext, Nn as isAction, Nt as ListSubmissionsOptions, On as TypedToolCall, Ot as DeleteSubmissionsOptions, Pn as skills, Pt as MessageConcurrency, Qt as SkillWorkspaceSeedOptions, Rn as ChannelDeliveryPolicy, Rt as PrepareStepFunction, Sn as ToolCallResultContext, St as ChatRecoveryProgressContext, T as DeliveryKind, Tn as TurnInput, Tt as ChunkContext, Un as ThinkChannels, Ut as RunTurnOptions, Vn as ChannelKind, Vt as ResolvedChatRecoveryConfig, Wn as messengerChannel, Wt as RunTurnStream, Xt as SkillRunContext, Yn as ThinkSession, Yt as SessionMessage, Zt as SkillSource, _n as ThinkSubmissionStatus, _t as ChatOptions, an as SubmitMessagesOptions, at as ActionApprovalDescriptor, bn as ToolCallContext, bt as ChatRecoveryExhaustedContext, cn as Think, ct as ActionAuthorizationDecision, dn as ThinkModelId, dt as ActionIdempotencyKey, en as StepContext, fn as ThinkScheduledTask, ft as ActionKind, gn as ThinkSubmissionInspection, gt as ChatErrorContext, hn as ThinkScheduledTasks, ht as ChatErrorClassification, in as StreamableResult, it as Action, jn as action, jt as FiberContext, kn as TypedToolResult, kt as DeliverNoticeOptions, ln as ThinkIntervalSchedule, lt as ActionConfig, mn as ThinkScheduledTaskSchedule, mt as AddMessagesOptions, nn as StopCondition, on as SubmitMessagesResult, ot as ActionApprovalPolicy, pn as ThinkScheduledTaskContext, pt as ActionPermissionSpec, qn as CompactionErrorHandler, qt as SaveMessagesOptions, rn as StreamCallback, sn as TextStreamPart, st as ActionAuthorizationContext, tn as StepResult, un as ThinkModel, ut as ActionContext, vn as ThinkTime, vt as ChatRecoveryConfig, wn as TurnContext, wt as ChatStartEvent, xn as ToolCallDecision, xt as ChatRecoveryOptions, yn as ThinkWallClockSchedule, yt as ChatRecoveryContext, zn as ChannelDeliverySurface, zt as PrepareStepResult } from "./index-
|
|
1
|
+
import { $t as StepConfig, An as Workspace, At as ExtensionConfig, Bn as ChannelIngress, Bt as ReplyAttachment, Cn as TurnConfig, Ct as ChatResponseResult, Dn as TurnResult, Dt as ContextOverflowConfig, E as DeliveryTag, En as TurnInputMessages, Et as ChunkPart, Fn as ChannelCapabilities, Ft as OnStartDegradation, Gn as MediaEvictionConfig, Gt as RunTurnSubmit, Hn as NormalizedChannelDefinition, Ht as RunTurnBase, In as ChannelContext, It as PendingApproval, Jn as SessionContextOptions, Jt as SaveMessagesResult, Kn as CompactAfterOptions, Kt as RunTurnWait, Ln as ChannelDefinition, Lt as PrepareStepContext, Mn as defaultContextOverflowClassifier, Mt as FiberRecoveryContext, Nn as isAction, Nt as ListSubmissionsOptions, On as TypedToolCall, Ot as DeleteSubmissionsOptions, Pn as skills, Pt as MessageConcurrency, Qt as SkillWorkspaceSeedOptions, Rn as ChannelDeliveryPolicy, Rt as PrepareStepFunction, Sn as ToolCallResultContext, St as ChatRecoveryProgressContext, T as DeliveryKind, Tn as TurnInput, Tt as ChunkContext, Un as ThinkChannels, Ut as RunTurnOptions, Vn as ChannelKind, Vt as ResolvedChatRecoveryConfig, Wn as messengerChannel, Wt as RunTurnStream, Xt as SkillRunContext, Yn as ThinkSession, Yt as SessionMessage, Zt as SkillSource, _n as ThinkSubmissionStatus, _t as ChatOptions, an as SubmitMessagesOptions, at as ActionApprovalDescriptor, bn as ToolCallContext, bt as ChatRecoveryExhaustedContext, cn as Think, ct as ActionAuthorizationDecision, dn as ThinkModelId, dt as ActionIdempotencyKey, en as StepContext, fn as ThinkScheduledTask, ft as ActionKind, gn as ThinkSubmissionInspection, gt as ChatErrorContext, hn as ThinkScheduledTasks, ht as ChatErrorClassification, in as StreamableResult, it as Action, jn as action, jt as FiberContext, kn as TypedToolResult, kt as DeliverNoticeOptions, ln as ThinkIntervalSchedule, lt as ActionConfig, mn as ThinkScheduledTaskSchedule, mt as AddMessagesOptions, nn as StopCondition, on as SubmitMessagesResult, ot as ActionApprovalPolicy, pn as ThinkScheduledTaskContext, pt as ActionPermissionSpec, qn as CompactionErrorHandler, qt as SaveMessagesOptions, rn as StreamCallback, sn as TextStreamPart, st as ActionAuthorizationContext, tn as StepResult, un as ThinkModel, ut as ActionContext, vn as ThinkTime, vt as ChatRecoveryConfig, wn as TurnContext, wt as ChatStartEvent, xn as ToolCallDecision, xt as ChatRecoveryOptions, yn as ThinkWallClockSchedule, yt as ChatRecoveryContext, zn as ChannelDeliverySurface, zt as PrepareStepResult } from "./index-BLkPlEbF.js";
|
|
2
2
|
import { h as WorkspaceLike } from "./workspace-CNeXc2vl.js";
|
|
3
3
|
import { a as FetchResponseMode, i as FetchRedirectPolicy, n as FetchBindingTarget, o as FetchResult, r as FetchErrorCode, s as FetchToolEvent, t as CreateFetchToolsOptions } from "./fetch-By3eIQ-a.js";
|
|
4
4
|
export { Action, ActionApprovalDescriptor, ActionApprovalPolicy, ActionAuthorizationContext, ActionAuthorizationDecision, ActionConfig, ActionContext, ActionIdempotencyKey, ActionKind, ActionPermissionSpec, AddMessagesOptions, type ChannelCapabilities, type ChannelContext, type ChannelDefinition, type ChannelDeliveryPolicy, type ChannelDeliverySurface, type ChannelIngress, type ChannelKind, ChatErrorClassification, ChatErrorContext, ChatOptions, type ChatRecoveryConfig, type ChatRecoveryContext, type ChatRecoveryExhaustedContext, type ChatRecoveryOptions, type ChatRecoveryProgressContext, type ChatResponseResult, ChatStartEvent, ChunkContext, ChunkPart, type CompactAfterOptions, type CompactionErrorHandler, ContextOverflowConfig, type CreateFetchToolsOptions, DeleteSubmissionsOptions, DeliverNoticeOptions, type DeliveryKind, type DeliveryTag, ExtensionConfig, type FetchBindingTarget, type FetchErrorCode, type FetchRedirectPolicy, type FetchResponseMode, type FetchResult, type FetchToolEvent, type FiberContext, type FiberRecoveryContext, ListSubmissionsOptions, type MediaEvictionConfig, type MessageConcurrency, type NormalizedChannelDefinition, OnStartDegradation, PendingApproval, PrepareStepContext, type PrepareStepFunction, type PrepareStepResult, ReplyAttachment, type ResolvedChatRecoveryConfig, RunTurnBase, RunTurnOptions, RunTurnStream, RunTurnSubmit, RunTurnWait, type SaveMessagesOptions, type SaveMessagesResult, ThinkSession as Session, ThinkSession, type SessionContextOptions, type SessionMessage, type SkillRunContext, type SkillSource, type SkillWorkspaceSeedOptions, StepConfig, StepContext, type StepResult, type StopCondition, StreamCallback, StreamableResult, SubmitMessagesOptions, SubmitMessagesResult, type TextStreamPart, Think, type ThinkChannels, ThinkIntervalSchedule, ThinkModel, ThinkModelId, ThinkScheduledTask, ThinkScheduledTaskContext, ThinkScheduledTaskSchedule, ThinkScheduledTasks, ThinkSubmissionInspection, ThinkSubmissionStatus, ThinkTime, ThinkWallClockSchedule, ToolCallContext, ToolCallDecision, ToolCallResultContext, TurnConfig, TurnContext, TurnInput, TurnInputMessages, TurnResult, type TypedToolCall, type TypedToolResult, Workspace, type WorkspaceLike, action, defaultContextOverflowClassifier, isAction, messengerChannel, skills };
|