@cloudflare/think 0.22.0 → 0.23.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i as ExtensionManifest,
3
3
  t as ExtensionManager
4
- } from "./manager-dOcdCX4u.js";
4
+ } from "./manager-rze95KCk.js";
5
5
  import {
6
6
  l as ThinkWorkspace,
7
7
  t as CreateFetchToolsOptions
@@ -30,15 +30,65 @@ import {
30
30
  UIMessage,
31
31
  streamText
32
32
  } from "ai";
33
- import * as skills from "agents/skills";
34
33
  import {
34
+ DEFAULT_WORKSPACE_SKILLS_ROOT,
35
+ InvalidSkill,
36
+ InvalidSkillResourcePathError,
37
+ ListedSkill,
38
+ LoadSkillCatalogOptions,
39
+ ParseSkillOptions,
40
+ R2SkillSourceOptions,
41
+ Skill,
42
+ Skill as Skill$1,
43
+ SkillCatalog,
44
+ SkillCatalog as SkillCatalog$1,
45
+ SkillCatalogEntry,
46
+ SkillCatalogResource,
47
+ SkillDiagnostic,
48
+ SkillListing,
49
+ SkillManifest,
50
+ SkillManifestEntry,
51
+ SkillManifestResource,
52
+ SkillName,
53
+ SkillParseError,
54
+ SkillParseErrorCode,
55
+ SkillParseResult,
56
+ SkillResource,
57
+ SkillResourceError,
58
+ SkillResourceInfo,
59
+ SkillResourceKind,
60
+ SkillResourceNotFoundError,
61
+ SkillResourcePath,
62
+ SkillResult,
35
63
  SkillRunContext,
64
+ SkillRunContext as SkillRunContext$1,
65
+ SkillScriptContext,
66
+ SkillScriptFile,
67
+ SkillScriptRequest,
36
68
  SkillScriptRunner,
69
+ SkillScriptRunner as SkillScriptRunner$1,
70
+ SkillScriptWorkspace,
37
71
  SkillSource,
38
72
  SkillSource as SkillSource$1,
39
- SkillWorkspaceSeedOptions,
40
- SkillWorkspaceSeedOptions as SkillWorkspaceSeedOptions$1
73
+ SkillSource as SkillSource$2,
74
+ SkillSourceError,
75
+ SkillWorkspace,
76
+ UnknownSkillError,
77
+ WorkspaceSkillSourceOptions,
78
+ formatSkill,
79
+ formatSkillDiagnostic as formatSkillDiagnostic$1,
80
+ fromManifest,
81
+ isModelInvocable,
82
+ loadSkillCatalog as loadSkillCatalog$1,
83
+ manifest,
84
+ parseSkill,
85
+ parseSkillName,
86
+ parseSkillResourcePath,
87
+ r2,
88
+ renderSkillResource,
89
+ workspace
41
90
  } from "agents/skills";
91
+ import { WorkerSkillScriptRunnerOptions, runner } from "agents/skills/runner";
42
92
  import {
43
93
  Agent,
44
94
  AgentToolLifecycleResult,
@@ -118,6 +168,64 @@ import { ChatSdkStateAdapterOptions, ChatSdkStateAgent } from "agents/chat-sdk";
118
168
  import { RpcTarget } from "cloudflare:workers";
119
169
  import { Streams } from "agents/streams";
120
170
 
171
+ //#region src/skills.d.ts
172
+ declare namespace skills_d_exports {
173
+ export {
174
+ DEFAULT_WORKSPACE_SKILLS_ROOT,
175
+ InvalidSkill,
176
+ InvalidSkillResourcePathError,
177
+ ListedSkill,
178
+ LoadSkillCatalogOptions,
179
+ ParseSkillOptions,
180
+ R2SkillSourceOptions,
181
+ Skill$1 as Skill,
182
+ SkillCatalog$1 as SkillCatalog,
183
+ SkillCatalogEntry,
184
+ SkillCatalogResource,
185
+ SkillDiagnostic,
186
+ SkillListing,
187
+ SkillManifest,
188
+ SkillManifestEntry,
189
+ SkillManifestResource,
190
+ SkillName,
191
+ SkillParseError,
192
+ SkillParseErrorCode,
193
+ SkillParseResult,
194
+ SkillResource,
195
+ SkillResourceError,
196
+ SkillResourceInfo,
197
+ SkillResourceKind,
198
+ SkillResourceNotFoundError,
199
+ SkillResourcePath,
200
+ SkillResult,
201
+ SkillRunContext$1 as SkillRunContext,
202
+ SkillScriptContext,
203
+ SkillScriptFile,
204
+ SkillScriptRequest,
205
+ SkillScriptRunner$1 as SkillScriptRunner,
206
+ SkillScriptWorkspace,
207
+ SkillSource$2 as SkillSource,
208
+ SkillSourceError,
209
+ SkillWorkspace,
210
+ UnknownSkillError,
211
+ WorkerSkillScriptRunnerOptions,
212
+ WorkspaceSkillSourceOptions,
213
+ formatSkill,
214
+ formatSkillDiagnostic$1 as formatSkillDiagnostic,
215
+ fromManifest,
216
+ isModelInvocable,
217
+ loadSkillCatalog$1 as loadSkillCatalog,
218
+ manifest,
219
+ parseSkill,
220
+ parseSkillName,
221
+ parseSkillResourcePath,
222
+ r2,
223
+ renderSkillResource,
224
+ runner,
225
+ workspace
226
+ };
227
+ }
228
+ //#endregion
121
229
  //#region src/session.d.ts
122
230
  /** Options for a block declared through `withContext()` / `addContext()`. */
123
231
  type SessionContextOptions = Omit<ContextConfig, "label">;
@@ -1005,7 +1113,7 @@ interface TurnInput {
1005
1113
  * Contains everything Think assembled — the hook can inspect and override.
1006
1114
  */
1007
1115
  interface TurnContext {
1008
- /** Assembled system prompt (from context blocks or getSystemPrompt fallback). */
1116
+ /** Assembled system prompt: an overridden `getSystemPrompt()`, then context blocks. */
1009
1117
  system: string;
1010
1118
  /**
1011
1119
  * Assembled model messages (truncated, pruned). When a `whenChanged:
@@ -1630,15 +1738,8 @@ declare class Think<
1630
1738
  storeMessages: boolean;
1631
1739
  /** Store tool input/output on `execute_tool` spans. */
1632
1740
  storeTools: boolean;
1633
- /**
1634
- * Project `getSkills()` into the active workspace so the agent can read
1635
- * and edit skills as files under `/workspace/.agents/skills`.
1636
- * Existing edits are preserved. Off by default: skills load from their
1637
- * sources and nothing is written to the Workspace, as before. Set `{}` to
1638
- * project with the defaults.
1639
- */
1640
- skillWorkspace: false | SkillWorkspaceSeedOptions;
1641
- private _skillRegistry;
1741
+ private _skillSources;
1742
+ private _skillCatalog;
1642
1743
  private _loggedSkillWarnings;
1643
1744
  private _loggedProtocolWarnings;
1644
1745
  /**
@@ -2330,11 +2431,21 @@ declare class Think<
2330
2431
  */
2331
2432
  resolveModel(model?: ThinkModel): LanguageModel;
2332
2433
  /**
2333
- * Return the fallback system prompt for the assistant.
2334
- * Ignored when context blocks are configured. Use `configureContext()` for
2335
- * always-on instructions that should coexist with context blocks or skills.
2434
+ * Return the instructions at the top of the system prompt.
2435
+ *
2436
+ * An override always comes first, followed by the context blocks from
2437
+ * `configureContext()`, skills, and extensions. Think's default text is
2438
+ * used only when the agent overrides nothing and has no context blocks.
2336
2439
  */
2337
2440
  getSystemPrompt(): string;
2441
+ /**
2442
+ * The base system prompt for a turn: an overridden `getSystemPrompt()`,
2443
+ * then the frozen context blocks. Think's default `getSystemPrompt()` is
2444
+ * only a fallback for an agent with no context blocks.
2445
+ *
2446
+ * @internal Exposed to subclasses for tests.
2447
+ */
2448
+ protected _buildBaseSystemPrompt(): Promise<string>;
2338
2449
  /** Return the tools available to the assistant. */
2339
2450
  getTools(): ToolSet;
2340
2451
  /** Return action descriptors compiled into tools for the assistant. */
@@ -2751,36 +2862,40 @@ declare class Think<
2751
2862
  /**
2752
2863
  * Return Agent Skills sources for this Think agent.
2753
2864
  *
2754
- * Bundled skills are typically imported with the Agents Vite plugin:
2865
+ * A skill is a directory with a `SKILL.md` file, as defined by
2866
+ * https://agentskills.io. Keep skills as files in the agent's Workspace
2867
+ * and they become available as soon as they are written:
2755
2868
  *
2756
2869
  * ```typescript
2757
- * import productSkills from "agents:skills"; // -> ./skills next to this file
2870
+ * getSkills() {
2871
+ * return [skills.workspace(this.workspace)]; // /workspace/.agents/skills
2872
+ * }
2758
2873
  * ```
2759
2874
  *
2760
- * Sources are applied in order; the first source to register a skill name
2761
- * wins, and later collisions are skipped with a logged warning.
2875
+ * `skills.r2()` reads skills from an R2 bucket and `skills.manifest()`
2876
+ * defines them in code. Sources are applied in order; the first source to
2877
+ * provide a skill name wins, and later collisions are skipped with a
2878
+ * logged warning. Sources are listed again before every turn.
2762
2879
  */
2763
2880
  getSkills(): SkillSource[] | Promise<SkillSource[]>;
2764
2881
  private _initializeSkills;
2765
- private _configureSkillWorkspace;
2882
+ /** Load the catalog from every source and log new diagnostics. */
2883
+ private _loadSkillCatalog;
2766
2884
  /**
2767
- * Log registry diagnostics (duplicate names, sources that failed to list),
2768
- * deduped by message so a new collision after a deploy still surfaces while
2769
- * the same warning is not repeated on every turn.
2885
+ * Log a skills warning once per object lifetime, so a new problem after a
2886
+ * deploy still surfaces while the same warning is not repeated every turn.
2770
2887
  */
2771
- private _logSkillWarnings;
2888
+ private _warnSkillsOnce;
2772
2889
  /**
2773
2890
  * Return an optional runner that enables the `run_skill_script` tool.
2774
2891
  *
2892
+ * Prefer keeping skills in the Workspace and letting the agent run their
2893
+ * scripts with its shell tools.
2894
+ *
2775
2895
  * @experimental Skill script execution is experimental and may change
2776
2896
  * before stabilizing.
2777
2897
  */
2778
2898
  getSkillScriptRunner(): SkillScriptRunner | null;
2779
- /**
2780
- * The persisted skills fingerprint, read from `think_config` once per
2781
- * object lifetime; `null` once read and absent. Saves the per-turn probe.
2782
- */
2783
- private _skillsFingerprint;
2784
2899
  private _refreshSkillsIfChanged;
2785
2900
  /**
2786
2901
  * Return sandboxed extension configurations. Defines load order,
@@ -5566,31 +5681,31 @@ export {
5566
5681
  MediaEvictionConfig as $n,
5567
5682
  RunTurnWait as $t,
5568
5683
  ERROR_MESSENGER_RESPONSE as A,
5569
- TurnConfig as An,
5684
+ ToolCallResultContext as An,
5570
5685
  ChunkContext as At,
5571
5686
  defaultDeliveryTag as B,
5572
- defaultContextOverflowClassifier as Bn,
5687
+ action as Bn,
5573
5688
  MessageMetadataCallback as Bt,
5574
5689
  toMessengerAuthor as C,
5575
- ThinkSubmissionInspection as Cn,
5690
+ ThinkScheduledTasks as Cn,
5576
5691
  ChatRecoveryConfig$1 as Ct,
5577
5692
  DeliveryKind as D,
5578
- ToolCallContext as Dn,
5693
+ ThinkWallClockSchedule as Dn,
5579
5694
  ChatRecoveryProgressContext as Dt,
5580
5695
  DeliverMessengerReplyOptions as E,
5581
- ThinkWallClockSchedule as En,
5696
+ ThinkTime as En,
5582
5697
  ChatRecoveryOptions$1 as Et,
5583
5698
  MessengerDeliveryTarget as F,
5584
- TurnTrigger as Fn,
5699
+ TurnResult as Fn,
5585
5700
  ExtensionConfig as Ft,
5586
5701
  parseMessengerReplySnapshot as G,
5587
5702
  ChannelDefinition as Gn,
5588
5703
  PrepareStepResult$1 as Gt,
5589
5704
  messengerReplyFailureMode as H,
5590
- skills as Hn,
5705
+ isAction as Hn,
5591
5706
  PendingApproval as Ht,
5592
5707
  MessengerReplySnapshot as I,
5593
- TypedToolCall$1 as In,
5708
+ TurnTrigger as In,
5594
5709
  FiberContext$1 as It,
5595
5710
  MessengerAttachment as J,
5596
5711
  ChannelIngress as Jn,
@@ -5599,37 +5714,37 @@ export {
5599
5714
  ChannelDeliveryPolicy as Kn,
5600
5715
  RejectExecutionOptions as Kt,
5601
5716
  MessengerReplyStage as L,
5602
- TypedToolResult as Ln,
5717
+ TypedToolCall$1 as Ln,
5603
5718
  FiberRecoveryContext$1 as Lt,
5604
5719
  MESSENGER_REPLY_FIBER_NAME as M,
5605
- TurnInput as Mn,
5720
+ TurnContext as Mn,
5606
5721
  ContextOverflowConfig as Mt,
5607
5722
  MessengerDeliveryPolicy as N,
5608
- TurnInputMessages as Nn,
5723
+ TurnInput as Nn,
5609
5724
  DeleteSubmissionsOptions as Nt,
5610
5725
  DeliveryTag as O,
5611
- ToolCallDecision as On,
5726
+ ToolCallContext as On,
5612
5727
  ChatResponseResult$1 as Ot,
5613
5728
  MessengerDeliverySurface as P,
5614
- TurnResult as Pn,
5729
+ TurnInputMessages as Pn,
5615
5730
  DeliverNoticeOptions as Pt,
5616
5731
  MessengerEvent as Q,
5617
5732
  messengerChannel as Qn,
5618
5733
  RunTurnSubmit as Qt,
5619
5734
  TextStreamCallback as R,
5620
- WaitForSubmissionOptions as Rn,
5735
+ TypedToolResult as Rn,
5621
5736
  ListSubmissionsOptions as Rt,
5622
5737
  toMessengerAttachment as S,
5623
- ThinkScheduledTasks as Sn,
5738
+ ThinkScheduledTaskSchedule as Sn,
5624
5739
  ChatOptions as St,
5625
5740
  toMessengerThread as T,
5626
- ThinkTime as Tn,
5741
+ ThinkSubmissionStatus as Tn,
5627
5742
  ChatRecoveryExhaustedContext as Tt,
5628
5743
  messengerReplyRecoveryMode as U,
5629
5744
  ChannelCapabilities as Un,
5630
5745
  PrepareStepContext as Ut,
5631
5746
  deliverMessengerReply as V,
5632
- isAction as Vn,
5747
+ defaultContextOverflowClassifier as Vn,
5633
5748
  OnStartDegradation as Vt,
5634
5749
  messengerReplySnapshot as W,
5635
5750
  ChannelContext as Wn,
@@ -5644,88 +5759,89 @@ export {
5644
5759
  ThinkChannels as Zn,
5645
5760
  RunTurnStream as Zt,
5646
5761
  defaultChatSdkEvent as _,
5647
- ThinkModel as _n,
5762
+ ThinkIntervalSchedule as _n,
5648
5763
  AddMessagesOptions as _t,
5649
5764
  MessengerConversationMode as a,
5650
- SkillWorkspaceSeedOptions$1 as an,
5765
+ SkillRunContext as an,
5651
5766
  toMessengerUserMessage as at,
5652
5767
  normalizeMessengers as b,
5653
- ThinkScheduledTaskContext as bn,
5768
+ ThinkScheduledTask as bn,
5654
5769
  ChatErrorContext as bt,
5655
5770
  MessengerDefinition as c,
5656
- StepResult as cn,
5771
+ StepContext as cn,
5657
5772
  ActionApprovalPolicy as ct,
5658
5773
  MessengerThinkTarget as d,
5659
- StreamableResult as dn,
5774
+ StreamCallback as dn,
5660
5775
  ActionConfig as dt,
5661
5776
  SaveMessagesOptions$1 as en,
5662
5777
  CompactAfterOptions as er,
5663
5778
  MessengerMessage as et,
5664
5779
  NormalizedMessengerDefinition as f,
5665
- SubmitMessagesOptions as fn,
5780
+ StreamableResult as fn,
5666
5781
  ActionContext as ft,
5667
5782
  chatSdkMessenger as g,
5668
- ThinkIntervalSchedule as gn,
5783
+ Think as gn,
5669
5784
  ActiveTurn as gt,
5670
5785
  ThinkMessengers as h,
5671
- Think as hn,
5786
+ TextStreamPart$1 as hn,
5672
5787
  ActionPermissionSpec as ht,
5673
5788
  MessengerConcurrency as i,
5674
- SkillSource$1 as in,
5789
+ SkillCatalog as in,
5790
+ skills_d_exports as ir,
5675
5791
  serializableMessengerEvent as it,
5676
5792
  INTERRUPTED_MESSENGER_RESPONSE as j,
5677
- TurnContext as jn,
5793
+ TurnConfig as jn,
5678
5794
  ChunkPart as jt,
5679
5795
  EMPTY_MESSENGER_RESPONSE as k,
5680
- ToolCallResultContext as kn,
5796
+ ToolCallDecision as kn,
5681
5797
  ChatStartEvent as kt,
5682
5798
  MessengerRespondTo as l,
5683
- StopCondition$1 as ln,
5799
+ StepResult as ln,
5684
5800
  ActionAuthorizationContext as lt,
5685
5801
  ThinkMessengerStateAgent as m,
5686
- TextStreamPart$1 as mn,
5802
+ SubmitMessagesResult as mn,
5687
5803
  ActionKind as mt,
5688
5804
  ChatSdkMessengerOptions as n,
5689
5805
  SessionMessage$1 as nn,
5690
5806
  SessionContextOptions as nr,
5691
5807
  messengerContextFromEvent as nt,
5692
5808
  MessengerConversationResolver as o,
5693
- StepConfig as on,
5809
+ SkillSource$1 as on,
5694
5810
  Action as ot,
5695
5811
  ThinkMessengerRuntime as p,
5696
- SubmitMessagesResult as pn,
5812
+ SubmitMessagesOptions as pn,
5697
5813
  ActionIdempotencyKey as pt,
5698
5814
  MessengerAction as q,
5699
5815
  ChannelDeliverySurface as qn,
5700
5816
  ReplyAttachment as qt,
5701
5817
  DEFAULT_MESSENGER_CONCURRENCY as r,
5702
- SkillRunContext as rn,
5818
+ Skill as rn,
5703
5819
  ThinkSession as rr,
5704
5820
  resolveChannelSpeakerLabel as rt,
5705
5821
  MessengerConversationTarget as s,
5706
- StepContext as sn,
5822
+ StepConfig as sn,
5707
5823
  ActionApprovalDescriptor as st,
5708
5824
  ChatSdkMessengerEventInput as t,
5709
5825
  SaveMessagesResult$1 as tn,
5710
5826
  CompactionErrorHandler as tr,
5711
5827
  MessengerThread as tt,
5712
5828
  MessengerThinkHost as u,
5713
- StreamCallback as un,
5829
+ StopCondition$1 as un,
5714
5830
  ActionAuthorizationDecision as ut,
5715
5831
  defaultConversationName as v,
5716
- ThinkModelId as vn,
5832
+ ThinkModel as vn,
5717
5833
  CancelSubmissionResult as vt,
5718
5834
  toMessengerMessage as w,
5719
- ThinkSubmissionStatus as wn,
5835
+ ThinkSubmissionInspection as wn,
5720
5836
  ChatRecoveryContext$1 as wt,
5721
5837
  resolveSelfMention as x,
5722
- ThinkScheduledTaskSchedule as xn,
5838
+ ThinkScheduledTaskContext as xn,
5723
5839
  ChatInterruptedInfo as xt,
5724
5840
  idempotencyKeyForEvent as y,
5725
- ThinkScheduledTask as yn,
5841
+ ThinkModelId as yn,
5726
5842
  ChatErrorClassification as yt,
5727
5843
  TextStreamCallbackOptions as z,
5728
- action as zn,
5844
+ WaitForSubmissionOptions as zn,
5729
5845
  MessageConcurrency$1 as zt
5730
5846
  };
5731
- //# sourceMappingURL=index-BFK9bpzz.d.ts.map
5847
+ //# sourceMappingURL=index-DDnny6kt.d.ts.map
@@ -36,7 +36,6 @@ interface ExtensionManifest {
36
36
  type:
37
37
  | "readonly"
38
38
  | "writable"
39
- | "skill"
40
39
  | "searchable" /** Maximum token budget for this block. */;
41
40
  maxTokens?: number;
42
41
  }>;
@@ -233,4 +232,4 @@ export {
233
232
  ExtensionInfo as r,
234
233
  ExtensionManager as t
235
234
  };
236
- //# sourceMappingURL=manager-dOcdCX4u.d.ts.map
235
+ //# sourceMappingURL=manager-rze95KCk.d.ts.map
@@ -58,7 +58,7 @@ import {
58
58
  x as resolveSelfMention,
59
59
  y as idempotencyKeyForEvent,
60
60
  z as TextStreamCallbackOptions
61
- } from "../index-BFK9bpzz.js";
61
+ } from "../index-DDnny6kt.js";
62
62
  export {
63
63
  type ChannelSpeakerLabel,
64
64
  type ChatSdkMessengerEventInput,
@@ -2,7 +2,7 @@ import {
2
2
  R as TextStreamCallback,
3
3
  c as MessengerDefinition,
4
4
  n as ChatSdkMessengerOptions
5
- } from "../index-BFK9bpzz.js";
5
+ } from "../index-DDnny6kt.js";
6
6
  import { TelegramAdapterConfig } from "@chat-adapter/telegram";
7
7
 
8
8
  //#region src/messengers/telegram.d.ts
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll as t };
package/dist/think.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $n as MediaEvictionConfig, $t as RunTurnWait, An as TurnConfig, At as ChunkContext, Bn as defaultContextOverflowClassifier, Bt as MessageMetadataCallback, Cn as ThinkSubmissionInspection, Ct as ChatRecoveryConfig, D as DeliveryKind, Dn as ToolCallContext, Dt as ChatRecoveryProgressContext, En as ThinkWallClockSchedule, Et as ChatRecoveryOptions, Fn as TurnTrigger, Ft as ExtensionConfig, Gn as ChannelDefinition, Gt as PrepareStepResult, Hn as skills, Ht as PendingApproval, In as TypedToolCall, It as FiberContext, Jn as ChannelIngress, Jt as ResolvedChatRecoveryConfig, Kn as ChannelDeliveryPolicy, Kt as RejectExecutionOptions, Ln as TypedToolResult, Lt as FiberRecoveryContext, Mn as TurnInput, Mt as ContextOverflowConfig, Nn as TurnInputMessages, Nt as DeleteSubmissionsOptions, O as DeliveryTag, On as ToolCallDecision, Ot as ChatResponseResult, Pn as TurnResult, Pt as DeliverNoticeOptions, Qn as messengerChannel, Qt as RunTurnSubmit, Rn as WaitForSubmissionOptions, Rt as ListSubmissionsOptions, Sn as ThinkScheduledTasks, St as ChatOptions, Tn as ThinkTime, Tt as ChatRecoveryExhaustedContext, Un as ChannelCapabilities, Ut as PrepareStepContext, Vn as isAction, Vt as OnStartDegradation, Wn as ChannelContext, Wt as PrepareStepFunction, Xn as NormalizedChannelDefinition, Xt as RunTurnOptions, Yn as ChannelKind, Yt as RunTurnBase, Zn as ThinkChannels, Zt as RunTurnStream, _n as ThinkModel, _t as AddMessagesOptions, an as SkillWorkspaceSeedOptions, bn as ThinkScheduledTaskContext, bt as ChatErrorContext, cn as StepResult, ct as ActionApprovalPolicy, dn as StreamableResult, dt as ActionConfig, en as SaveMessagesOptions, er as CompactAfterOptions, fn as SubmitMessagesOptions, ft as ActionContext, gn as ThinkIntervalSchedule, gt as ActiveTurn, hn as Think, ht as ActionPermissionSpec, in as SkillSource, jn as TurnContext, jt as ChunkPart, kn as ToolCallResultContext, kt as ChatStartEvent, ln as StopCondition, lt as ActionAuthorizationContext, mn as TextStreamPart, mt as ActionKind, nn as SessionMessage, nr as SessionContextOptions, on as StepConfig, ot as Action, pn as SubmitMessagesResult, pt as ActionIdempotencyKey, qn as ChannelDeliverySurface, qt as ReplyAttachment, rn as SkillRunContext, rr as ThinkSession, sn as StepContext, st as ActionApprovalDescriptor, tn as SaveMessagesResult, tr as CompactionErrorHandler, un as StreamCallback, ut as ActionAuthorizationDecision, vn as ThinkModelId, vt as CancelSubmissionResult, wn as ThinkSubmissionStatus, wt as ChatRecoveryContext, xn as ThinkScheduledTaskSchedule, xt as ChatInterruptedInfo, yn as ThinkScheduledTask, yt as ChatErrorClassification, zn as action, zt as MessageConcurrency } from "./index-BFK9bpzz.js";
1
+ import { $n as MediaEvictionConfig, $t as RunTurnWait, An as ToolCallResultContext, At as ChunkContext, Bn as action, Bt as MessageMetadataCallback, Cn as ThinkScheduledTasks, Ct as ChatRecoveryConfig, D as DeliveryKind, Dn as ThinkWallClockSchedule, Dt as ChatRecoveryProgressContext, En as ThinkTime, Et as ChatRecoveryOptions, Fn as TurnResult, Ft as ExtensionConfig, Gn as ChannelDefinition, Gt as PrepareStepResult, Hn as isAction, Ht as PendingApproval, In as TurnTrigger, It as FiberContext, Jn as ChannelIngress, Jt as ResolvedChatRecoveryConfig, Kn as ChannelDeliveryPolicy, Kt as RejectExecutionOptions, Ln as TypedToolCall, Lt as FiberRecoveryContext, Mn as TurnContext, Mt as ContextOverflowConfig, Nn as TurnInput, Nt as DeleteSubmissionsOptions, O as DeliveryTag, On as ToolCallContext, Ot as ChatResponseResult, Pn as TurnInputMessages, Pt as DeliverNoticeOptions, Qn as messengerChannel, Qt as RunTurnSubmit, Rn as TypedToolResult, Rt as ListSubmissionsOptions, Sn as ThinkScheduledTaskSchedule, St as ChatOptions, Tn as ThinkSubmissionStatus, Tt as ChatRecoveryExhaustedContext, Un as ChannelCapabilities, Ut as PrepareStepContext, Vn as defaultContextOverflowClassifier, Vt as OnStartDegradation, Wn as ChannelContext, Wt as PrepareStepFunction, Xn as NormalizedChannelDefinition, Xt as RunTurnOptions, Yn as ChannelKind, Yt as RunTurnBase, Zn as ThinkChannels, Zt as RunTurnStream, _n as ThinkIntervalSchedule, _t as AddMessagesOptions, an as SkillRunContext, bn as ThinkScheduledTask, bt as ChatErrorContext, cn as StepContext, ct as ActionApprovalPolicy, dn as StreamCallback, dt as ActionConfig, en as SaveMessagesOptions, er as CompactAfterOptions, fn as StreamableResult, ft as ActionContext, gn as Think, gt as ActiveTurn, hn as TextStreamPart, ht as ActionPermissionSpec, in as SkillCatalog, ir as skills_d_exports, jn as TurnConfig, jt as ChunkPart, kn as ToolCallDecision, kt as ChatStartEvent, ln as StepResult, lt as ActionAuthorizationContext, mn as SubmitMessagesResult, mt as ActionKind, nn as SessionMessage, nr as SessionContextOptions, on as SkillSource, ot as Action, pn as SubmitMessagesOptions, pt as ActionIdempotencyKey, qn as ChannelDeliverySurface, qt as ReplyAttachment, rn as Skill, rr as ThinkSession, sn as StepConfig, st as ActionApprovalDescriptor, tn as SaveMessagesResult, tr as CompactionErrorHandler, un as StopCondition, ut as ActionAuthorizationDecision, vn as ThinkModel, vt as CancelSubmissionResult, wn as ThinkSubmissionInspection, wt as ChatRecoveryContext, xn as ThinkScheduledTaskContext, xt as ChatInterruptedInfo, yn as ThinkModelId, yt as ChatErrorClassification, zn as WaitForSubmissionOptions, zt as MessageConcurrency } from "./index-DDnny6kt.js";
2
2
  import { a as FetchResponseMode, i as FetchRedirectPolicy, l as ThinkWorkspace, n as FetchBindingTarget, o as FetchResult, r as FetchErrorCode, s as FetchToolEvent, t as CreateFetchToolsOptions, u as ThinkWorkspaceFilesystem } from "./fetch-CU2fC7O6.js";
3
- export { Action, ActionApprovalDescriptor, ActionApprovalPolicy, ActionAuthorizationContext, ActionAuthorizationDecision, ActionConfig, ActionContext, ActionIdempotencyKey, ActionKind, ActionPermissionSpec, ActiveTurn, AddMessagesOptions, CancelSubmissionResult, type ChannelCapabilities, type ChannelContext, type ChannelDefinition, type ChannelDeliveryPolicy, type ChannelDeliverySurface, type ChannelIngress, type ChannelKind, ChatErrorClassification, ChatErrorContext, ChatInterruptedInfo, 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, MessageMetadataCallback, type NormalizedChannelDefinition, OnStartDegradation, PendingApproval, PrepareStepContext, type PrepareStepFunction, type PrepareStepResult, RejectExecutionOptions, 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, type ThinkWorkspace, type ThinkWorkspaceFilesystem, ToolCallContext, ToolCallDecision, ToolCallResultContext, TurnConfig, TurnContext, TurnInput, TurnInputMessages, TurnResult, TurnTrigger, type TypedToolCall, type TypedToolResult, WaitForSubmissionOptions, action, defaultContextOverflowClassifier, isAction, messengerChannel, skills };
3
+ export { Action, ActionApprovalDescriptor, ActionApprovalPolicy, ActionAuthorizationContext, ActionAuthorizationDecision, ActionConfig, ActionContext, ActionIdempotencyKey, ActionKind, ActionPermissionSpec, ActiveTurn, AddMessagesOptions, CancelSubmissionResult, type ChannelCapabilities, type ChannelContext, type ChannelDefinition, type ChannelDeliveryPolicy, type ChannelDeliverySurface, type ChannelIngress, type ChannelKind, ChatErrorClassification, ChatErrorContext, ChatInterruptedInfo, 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, MessageMetadataCallback, type NormalizedChannelDefinition, OnStartDegradation, PendingApproval, PrepareStepContext, type PrepareStepFunction, type PrepareStepResult, RejectExecutionOptions, ReplyAttachment, type ResolvedChatRecoveryConfig, RunTurnBase, RunTurnOptions, RunTurnStream, RunTurnSubmit, RunTurnWait, type SaveMessagesOptions, type SaveMessagesResult, ThinkSession as Session, ThinkSession, type SessionContextOptions, type SessionMessage, type Skill, type SkillCatalog, type SkillRunContext, type SkillSource, 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, type ThinkWorkspace, type ThinkWorkspaceFilesystem, ToolCallContext, ToolCallDecision, ToolCallResultContext, TurnConfig, TurnContext, TurnInput, TurnInputMessages, TurnResult, TurnTrigger, type TypedToolCall, type TypedToolResult, WaitForSubmissionOptions, action, defaultContextOverflowClassifier, isAction, messengerChannel, skills_d_exports as skills };