@dotcraft/sdk 0.8.9 → 0.9.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.
@@ -774,6 +774,8 @@ export interface AutomationListResult {
774
774
  }
775
775
  export interface AutomationOrigin {
776
776
  channel: string;
777
+ chatKind?: string | null;
778
+ chatLabel?: string | null;
777
779
  deliveryTarget?: string | null;
778
780
  groupId?: string | null;
779
781
  userId: string;
@@ -894,8 +896,8 @@ export interface BrowserUseCapability {
894
896
  export interface ChannelAdapterCapability {
895
897
  channelName: string;
896
898
  channelTools?: ChannelToolDescriptor[] | null;
897
- deliveryCapabilities?: ChannelDeliveryCapabilities | null;
898
- deliverySupport?: boolean | null;
899
+ deliveryCapabilities: ChannelDeliveryCapabilities;
900
+ displayName: string;
899
901
  [key: string]: unknown;
900
902
  }
901
903
  export interface ChannelBindingAcceptParams {
@@ -924,9 +926,16 @@ export interface ChannelBoundBy {
924
926
  platformUserId?: string;
925
927
  [key: string]: unknown;
926
928
  }
929
+ export interface ChannelChat {
930
+ kind: string;
931
+ label?: string | null;
932
+ membership: string;
933
+ [key: string]: unknown;
934
+ }
927
935
  export interface ChannelDeliveryCapabilities {
928
936
  media?: ChannelMediaCapabilitySet | null;
929
- structuredDelivery?: boolean | null;
937
+ targets: ChannelTargetCapability;
938
+ text: ChannelTextCapability;
930
939
  [key: string]: unknown;
931
940
  }
932
941
  export interface ChannelInfo {
@@ -995,6 +1004,15 @@ export interface ChannelTarget {
995
1004
  displayName?: string | null;
996
1005
  [key: string]: unknown;
997
1006
  }
1007
+ export interface ChannelTargetCapability {
1008
+ direct: string;
1009
+ group: boolean;
1010
+ [key: string]: unknown;
1011
+ }
1012
+ export interface ChannelTextCapability {
1013
+ format: string;
1014
+ [key: string]: unknown;
1015
+ }
998
1016
  export interface ChannelToolApprovalDescriptor {
999
1017
  kind: string;
1000
1018
  operation?: string | null;
@@ -1041,6 +1059,11 @@ export interface ClientInfo {
1041
1059
  version: string;
1042
1060
  [key: string]: unknown;
1043
1061
  }
1062
+ export interface CommandChoice {
1063
+ command?: string;
1064
+ label?: string;
1065
+ [key: string]: unknown;
1066
+ }
1044
1067
  export interface CommandExecParams {
1045
1068
  command: string[];
1046
1069
  cwd?: string;
@@ -1063,13 +1086,11 @@ export interface CommandExecuteParams {
1063
1086
  [key: string]: unknown;
1064
1087
  }
1065
1088
  export interface CommandExecuteResult {
1066
- archivedThreadIds?: string[] | null;
1067
- createdLazily?: boolean | null;
1089
+ choices?: CommandChoice[] | null;
1068
1090
  expandedPrompt?: string | null;
1069
1091
  handled?: boolean;
1070
1092
  isMarkdown?: boolean;
1071
1093
  message?: string | null;
1072
- sessionReset?: boolean;
1073
1094
  thread?: SessionThread | null;
1074
1095
  [key: string]: unknown;
1075
1096
  }
@@ -1368,6 +1389,7 @@ export interface ErrorPayload {
1368
1389
  [key: string]: unknown;
1369
1390
  }
1370
1391
  export interface ExtChannelSendParams {
1392
+ deliveryId?: string;
1371
1393
  message?: ChannelOutboundMessage;
1372
1394
  metadata?: JsonValue;
1373
1395
  target?: string;
@@ -2646,28 +2668,6 @@ export interface ProviderCapabilities {
2646
2668
  toolChoiceControls?: boolean;
2647
2669
  [key: string]: unknown;
2648
2670
  }
2649
- export interface ProviderCreateParams {
2650
- apiKey?: string;
2651
- authMethod?: string | null;
2652
- displayName?: string;
2653
- endPoint?: string;
2654
- id?: string;
2655
- maxOutputTokens?: number | null;
2656
- networkTimeoutSeconds?: number | null;
2657
- protocol?: string;
2658
- streamIdleTimeoutMs?: number | null;
2659
- streamMaxRetries?: number | null;
2660
- supportsImageGeneration?: boolean | null;
2661
- [key: string]: unknown;
2662
- }
2663
- export interface ProviderDeleteParams {
2664
- id?: string;
2665
- [key: string]: unknown;
2666
- }
2667
- export interface ProviderDeleteResult {
2668
- deleted?: boolean;
2669
- [key: string]: unknown;
2670
- }
2671
2671
  export interface ProviderInfo {
2672
2672
  apiKey?: string | null;
2673
2673
  authMethod?: string;
@@ -2696,10 +2696,6 @@ export interface ProviderListResult {
2696
2696
  providers?: ProviderInfo[];
2697
2697
  [key: string]: unknown;
2698
2698
  }
2699
- export interface ProviderMutationResult {
2700
- provider?: ProviderInfo;
2701
- [key: string]: unknown;
2702
- }
2703
2699
  export interface ProviderTestParams {
2704
2700
  apiKey?: string | null;
2705
2701
  endPoint?: string | null;
@@ -2720,24 +2716,9 @@ export interface ProviderTestResult {
2720
2716
  success?: boolean;
2721
2717
  [key: string]: unknown;
2722
2718
  }
2723
- export interface ProviderUpdateParams {
2724
- apiKey?: string | null;
2725
- authMethod?: string | null;
2726
- displayName?: string | null;
2727
- endPoint?: string | null;
2728
- id?: string;
2729
- maxOutputTokens?: number | null;
2730
- networkTimeoutSeconds?: number | null;
2731
- protocol?: string | null;
2732
- streamIdleTimeoutMs?: number | null;
2733
- streamMaxRetries?: number | null;
2734
- supportsImageGeneration?: boolean | null;
2735
- [key: string]: unknown;
2736
- }
2737
2719
  export interface QueuedTurnInput {
2738
2720
  clientUserMessageId?: string | null;
2739
2721
  createdAt: string;
2740
- deliveryBindingId?: string | null;
2741
2722
  displayText: string;
2742
2723
  id: string;
2743
2724
  materializedInputParts: InputPart[];
@@ -2875,6 +2856,7 @@ export interface RuntimeDynamicToolNamespace {
2875
2856
  [key: string]: unknown;
2876
2857
  }
2877
2858
  export interface SenderContext {
2859
+ directTarget?: string | null;
2878
2860
  groupId?: string | null;
2879
2861
  senderId: string;
2880
2862
  senderName: string;
@@ -3396,18 +3378,12 @@ export interface SubAgentProgressNotification {
3396
3378
  [key: string]: unknown;
3397
3379
  }
3398
3380
  export interface SubAgentSettings {
3399
- defaultWaitTimeoutMs?: number;
3400
3381
  externalCliSessionResumeEnabled?: boolean;
3401
- maxWaitTimeoutMs?: number;
3402
- minWaitTimeoutMs?: number;
3403
3382
  providerPreferences?: Record<string, ModelPreference> | null;
3404
3383
  [key: string]: unknown;
3405
3384
  }
3406
3385
  export interface SubAgentSettingsUpdateParams {
3407
- defaultWaitTimeoutMs?: number | null;
3408
3386
  externalCliSessionResumeEnabled?: boolean | null;
3409
- maxWaitTimeoutMs?: number | null;
3410
- minWaitTimeoutMs?: number | null;
3411
3387
  providerPreferences?: Record<string, ModelPreference> | null;
3412
3388
  [key: string]: unknown;
3413
3389
  }
@@ -3919,6 +3895,7 @@ export interface ThreadRenamedNotification {
3919
3895
  }
3920
3896
  export interface ThreadResumeParams {
3921
3897
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
3898
+ chat?: ChannelChat | null;
3922
3899
  cwd?: string | null;
3923
3900
  dynamicTools?: RuntimeDynamicToolDeclaration[] | null;
3924
3901
  runtimeWorkspaceRoots?: string[] | null;
@@ -4004,6 +3981,7 @@ export interface ThreadSpawnEdge {
4004
3981
  }
4005
3982
  export interface ThreadStartParams {
4006
3983
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
3984
+ chat?: ChannelChat | null;
4007
3985
  config?: ThreadConfiguration | null;
4008
3986
  cwd?: string | null;
4009
3987
  displayName?: string | null;
@@ -4054,6 +4032,18 @@ export interface ThreadSummary {
4054
4032
  worktree?: ThreadWorktreeInfo | null;
4055
4033
  [key: string]: unknown;
4056
4034
  }
4035
+ export interface ThreadTokenUsage {
4036
+ last?: TokenUsageBreakdown;
4037
+ modelContextWindow?: number | null;
4038
+ total?: TokenUsageBreakdown;
4039
+ [key: string]: unknown;
4040
+ }
4041
+ export interface ThreadTokenUsageUpdatedNotification {
4042
+ threadId?: string;
4043
+ tokenUsage?: ThreadTokenUsage;
4044
+ turnId?: string;
4045
+ [key: string]: unknown;
4046
+ }
4057
4047
  export interface ThreadToolPolicy {
4058
4048
  agentControl?: string | null;
4059
4049
  allow?: string[] | null;
@@ -4138,6 +4128,15 @@ export interface ThreadWorktreeStatus {
4138
4128
  worktree?: ThreadWorktreeInfo;
4139
4129
  [key: string]: unknown;
4140
4130
  }
4131
+ export interface TokenUsageBreakdown {
4132
+ cacheWriteInputTokens?: number;
4133
+ cachedInputTokens?: number;
4134
+ inputTokens?: number;
4135
+ outputTokens?: number;
4136
+ reasoningOutputTokens?: number;
4137
+ totalTokens?: number;
4138
+ [key: string]: unknown;
4139
+ }
4141
4140
  export interface TokenUsageInfo {
4142
4141
  cacheHitRate?: number;
4143
4142
  cacheWriteInputTokens?: number;
@@ -4533,7 +4532,6 @@ export interface UserMessagePayload {
4533
4532
  channelContext?: string | null;
4534
4533
  channelName?: string | null;
4535
4534
  clientUserMessageId?: string | null;
4536
- deliveryBindingId?: string | null;
4537
4535
  deliveryMode?: string | null;
4538
4536
  groupId?: string | null;
4539
4537
  images?: UserMessageImage[] | null;
@@ -4600,6 +4598,25 @@ export interface VisualizationWidgetStateUpdatedNotification {
4600
4598
  widgetState: VisualizationWidgetState | null;
4601
4599
  [key: string]: unknown;
4602
4600
  }
4601
+ export interface WebSearchAction {
4602
+ pattern?: string | null;
4603
+ queries?: string[] | null;
4604
+ query?: string | null;
4605
+ type: string;
4606
+ url?: string | null;
4607
+ [key: string]: unknown;
4608
+ }
4609
+ export interface WebSearchPayload {
4610
+ action: WebSearchAction | null;
4611
+ arguments?: JsonValue;
4612
+ callId: string;
4613
+ errorMessage?: string | null;
4614
+ output?: string | null;
4615
+ query: string;
4616
+ results: JsonValue[] | null;
4617
+ status: string;
4618
+ [key: string]: unknown;
4619
+ }
4603
4620
  export interface WelcomeSuggestionItem {
4604
4621
  prompt?: string;
4605
4622
  reason?: string;