@dotcraft/sdk 0.8.8 → 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.
- package/dist/client.d.ts +7 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -13
- package/dist/client.js.map +1 -1
- package/dist/generated/appserver/client-requests.generated.d.ts +0 -12
- package/dist/generated/appserver/client-requests.generated.d.ts.map +1 -1
- package/dist/generated/appserver/item-payloads.generated.d.ts +2 -1
- package/dist/generated/appserver/item-payloads.generated.d.ts.map +1 -1
- package/dist/generated/appserver/item-payloads.generated.js +1 -0
- package/dist/generated/appserver/item-payloads.generated.js.map +1 -1
- package/dist/generated/appserver/method-groups.generated.d.ts +3 -3
- package/dist/generated/appserver/method-groups.generated.d.ts.map +1 -1
- package/dist/generated/appserver/method-groups.generated.js +2 -4
- package/dist/generated/appserver/method-groups.generated.js.map +1 -1
- package/dist/generated/appserver/models.generated.d.ts +73 -54
- package/dist/generated/appserver/models.generated.d.ts.map +1 -1
- package/dist/generated/appserver/protocol-info.generated.d.ts +2 -2
- package/dist/generated/appserver/protocol-info.generated.js +2 -2
- package/dist/generated/appserver/server-notifications.generated.d.ts +4 -0
- package/dist/generated/appserver/server-notifications.generated.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
898
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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[];
|
|
@@ -2750,6 +2731,7 @@ export interface QueuedTurnInput {
|
|
|
2750
2731
|
triggerKind?: string | null;
|
|
2751
2732
|
triggerLabel?: string | null;
|
|
2752
2733
|
triggerRefId?: string | null;
|
|
2734
|
+
triggerStatus?: string | null;
|
|
2753
2735
|
[key: string]: unknown;
|
|
2754
2736
|
}
|
|
2755
2737
|
export interface RankedMetric {
|
|
@@ -2874,6 +2856,7 @@ export interface RuntimeDynamicToolNamespace {
|
|
|
2874
2856
|
[key: string]: unknown;
|
|
2875
2857
|
}
|
|
2876
2858
|
export interface SenderContext {
|
|
2859
|
+
directTarget?: string | null;
|
|
2877
2860
|
groupId?: string | null;
|
|
2878
2861
|
senderId: string;
|
|
2879
2862
|
senderName: string;
|
|
@@ -3395,18 +3378,12 @@ export interface SubAgentProgressNotification {
|
|
|
3395
3378
|
[key: string]: unknown;
|
|
3396
3379
|
}
|
|
3397
3380
|
export interface SubAgentSettings {
|
|
3398
|
-
defaultWaitTimeoutMs?: number;
|
|
3399
3381
|
externalCliSessionResumeEnabled?: boolean;
|
|
3400
|
-
maxWaitTimeoutMs?: number;
|
|
3401
|
-
minWaitTimeoutMs?: number;
|
|
3402
3382
|
providerPreferences?: Record<string, ModelPreference> | null;
|
|
3403
3383
|
[key: string]: unknown;
|
|
3404
3384
|
}
|
|
3405
3385
|
export interface SubAgentSettingsUpdateParams {
|
|
3406
|
-
defaultWaitTimeoutMs?: number | null;
|
|
3407
3386
|
externalCliSessionResumeEnabled?: boolean | null;
|
|
3408
|
-
maxWaitTimeoutMs?: number | null;
|
|
3409
|
-
minWaitTimeoutMs?: number | null;
|
|
3410
3387
|
providerPreferences?: Record<string, ModelPreference> | null;
|
|
3411
3388
|
[key: string]: unknown;
|
|
3412
3389
|
}
|
|
@@ -3918,6 +3895,7 @@ export interface ThreadRenamedNotification {
|
|
|
3918
3895
|
}
|
|
3919
3896
|
export interface ThreadResumeParams {
|
|
3920
3897
|
additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
|
|
3898
|
+
chat?: ChannelChat | null;
|
|
3921
3899
|
cwd?: string | null;
|
|
3922
3900
|
dynamicTools?: RuntimeDynamicToolDeclaration[] | null;
|
|
3923
3901
|
runtimeWorkspaceRoots?: string[] | null;
|
|
@@ -4003,6 +3981,7 @@ export interface ThreadSpawnEdge {
|
|
|
4003
3981
|
}
|
|
4004
3982
|
export interface ThreadStartParams {
|
|
4005
3983
|
additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
|
|
3984
|
+
chat?: ChannelChat | null;
|
|
4006
3985
|
config?: ThreadConfiguration | null;
|
|
4007
3986
|
cwd?: string | null;
|
|
4008
3987
|
displayName?: string | null;
|
|
@@ -4053,6 +4032,18 @@ export interface ThreadSummary {
|
|
|
4053
4032
|
worktree?: ThreadWorktreeInfo | null;
|
|
4054
4033
|
[key: string]: unknown;
|
|
4055
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
|
+
}
|
|
4056
4047
|
export interface ThreadToolPolicy {
|
|
4057
4048
|
agentControl?: string | null;
|
|
4058
4049
|
allow?: string[] | null;
|
|
@@ -4137,6 +4128,15 @@ export interface ThreadWorktreeStatus {
|
|
|
4137
4128
|
worktree?: ThreadWorktreeInfo;
|
|
4138
4129
|
[key: string]: unknown;
|
|
4139
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
|
+
}
|
|
4140
4140
|
export interface TokenUsageInfo {
|
|
4141
4141
|
cacheHitRate?: number;
|
|
4142
4142
|
cacheWriteInputTokens?: number;
|
|
@@ -4532,7 +4532,6 @@ export interface UserMessagePayload {
|
|
|
4532
4532
|
channelContext?: string | null;
|
|
4533
4533
|
channelName?: string | null;
|
|
4534
4534
|
clientUserMessageId?: string | null;
|
|
4535
|
-
deliveryBindingId?: string | null;
|
|
4536
4535
|
deliveryMode?: string | null;
|
|
4537
4536
|
groupId?: string | null;
|
|
4538
4537
|
images?: UserMessageImage[] | null;
|
|
@@ -4547,6 +4546,7 @@ export interface UserMessagePayload {
|
|
|
4547
4546
|
triggerKind?: string | null;
|
|
4548
4547
|
triggerLabel?: string | null;
|
|
4549
4548
|
triggerRefId?: string | null;
|
|
4549
|
+
triggerStatus?: string | null;
|
|
4550
4550
|
[key: string]: unknown;
|
|
4551
4551
|
}
|
|
4552
4552
|
export interface VisualizationViewCloseParams {
|
|
@@ -4598,6 +4598,25 @@ export interface VisualizationWidgetStateUpdatedNotification {
|
|
|
4598
4598
|
widgetState: VisualizationWidgetState | null;
|
|
4599
4599
|
[key: string]: unknown;
|
|
4600
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
|
+
}
|
|
4601
4620
|
export interface WelcomeSuggestionItem {
|
|
4602
4621
|
prompt?: string;
|
|
4603
4622
|
reason?: string;
|