@dotcraft/sdk 0.8.2 → 0.8.4

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.
@@ -67,16 +67,110 @@ export interface AcpTerminalWaitForExitParams {
67
67
  timeout?: number | null;
68
68
  [key: string]: unknown;
69
69
  }
70
+ export interface AgentExportPackage {
71
+ bytes: number;
72
+ displayName: string;
73
+ dotnet: boolean;
74
+ kind: string;
75
+ marketplaceName?: string | null;
76
+ name: string;
77
+ reasons: string[];
78
+ version?: string | null;
79
+ [key: string]: unknown;
80
+ }
81
+ export interface AgentExportPlanParams {
82
+ id: string;
83
+ source: string;
84
+ [key: string]: unknown;
85
+ }
86
+ export interface AgentExportPlanResult {
87
+ fileName: string;
88
+ maximumBytes: number;
89
+ packages: AgentExportPackage[];
90
+ [key: string]: unknown;
91
+ }
92
+ export interface AgentExportReadParams {
93
+ id: string;
94
+ offset: number;
95
+ packages: AgentPackageRef[];
96
+ source: string;
97
+ [key: string]: unknown;
98
+ }
99
+ export interface AgentExportReadResult {
100
+ dataBase64: string;
101
+ totalBytes: number;
102
+ [key: string]: unknown;
103
+ }
70
104
  export interface AgentImportCapabilities {
71
105
  sources: string[];
72
106
  version: number;
73
107
  [key: string]: unknown;
74
108
  }
109
+ export interface AgentImportCommitParams {
110
+ description?: string | null;
111
+ importId: string;
112
+ name: string;
113
+ packages: AgentPackageRef[];
114
+ source: string;
115
+ [key: string]: unknown;
116
+ }
117
+ export interface AgentImportDiscardParams {
118
+ importId: string;
119
+ [key: string]: unknown;
120
+ }
121
+ export interface AgentImportPackage {
122
+ displayName: string;
123
+ dotnet: boolean;
124
+ installedVersion?: string | null;
125
+ kind: string;
126
+ marketplaceName?: string | null;
127
+ name: string;
128
+ reason?: string | null;
129
+ state: string;
130
+ version?: string | null;
131
+ [key: string]: unknown;
132
+ }
133
+ export interface AgentImportPreview {
134
+ description?: string | null;
135
+ importId: string;
136
+ kind: string;
137
+ name: string;
138
+ nameTaken: boolean;
139
+ packages: AgentImportPackage[];
140
+ problems: string[];
141
+ unresolved: AgentImportUnresolved;
142
+ [key: string]: unknown;
143
+ }
144
+ export interface AgentImportUnresolved {
145
+ mcpServers: string[];
146
+ plugins: string[];
147
+ skills: string[];
148
+ [key: string]: unknown;
149
+ }
150
+ export interface AgentImportUploadParams {
151
+ dataBase64: string;
152
+ fileName: string;
153
+ importId?: string | null;
154
+ offset: number;
155
+ totalBytes: number;
156
+ [key: string]: unknown;
157
+ }
158
+ export interface AgentImportUploadResult {
159
+ importId: string;
160
+ preview?: AgentImportPreview | null;
161
+ receivedBytes: number;
162
+ [key: string]: unknown;
163
+ }
75
164
  export interface AgentMessagePayload {
76
165
  deliveryMode?: string | null;
77
166
  text: string;
78
167
  [key: string]: unknown;
79
168
  }
169
+ export interface AgentPackageRef {
170
+ kind: string;
171
+ name: string;
172
+ [key: string]: unknown;
173
+ }
80
174
  export interface AgentProfileAudit {
81
175
  code?: string;
82
176
  event?: string;
@@ -936,7 +1030,7 @@ export interface ClientCapabilities {
936
1030
  computerUse?: ComputerUseCapability | null;
937
1031
  configChange?: boolean | null;
938
1032
  extensions?: Record<string, JsonValue> | null;
939
- inlineVisualizations?: boolean | null;
1033
+ generativeUi?: boolean | null;
940
1034
  interactiveToolUi?: boolean | null;
941
1035
  mcpApps?: boolean | null;
942
1036
  mcpElicitation?: boolean | null;
@@ -945,6 +1039,7 @@ export interface ClientCapabilities {
945
1039
  requestUserInputSupport?: boolean | null;
946
1040
  streamingSupport?: boolean | null;
947
1041
  toolExecutionLifecycle?: boolean | null;
1042
+ visualizations?: boolean | null;
948
1043
  [key: string]: unknown;
949
1044
  }
950
1045
  export interface ClientInfo {
@@ -953,6 +1048,20 @@ export interface ClientInfo {
953
1048
  version: string;
954
1049
  [key: string]: unknown;
955
1050
  }
1051
+ export interface CommandExecParams {
1052
+ command: string[];
1053
+ cwd?: string;
1054
+ env?: Record<string, string | null>;
1055
+ outputBytesCap?: number;
1056
+ timeoutMs?: number;
1057
+ [key: string]: unknown;
1058
+ }
1059
+ export interface CommandExecResult {
1060
+ exitCode: number;
1061
+ stderr: string;
1062
+ stdout: string;
1063
+ [key: string]: unknown;
1064
+ }
956
1065
  export interface CommandExecuteParams {
957
1066
  arguments?: string[] | null;
958
1067
  command?: string;
@@ -1010,6 +1119,56 @@ export interface ComputerUseCapability {
1010
1119
  backend: string;
1011
1120
  [key: string]: unknown;
1012
1121
  }
1122
+ export interface ConfigBatchWriteParams {
1123
+ edits: ConfigEdit[];
1124
+ expectedVersion?: string | null;
1125
+ filePath?: string | null;
1126
+ [key: string]: unknown;
1127
+ }
1128
+ export interface ConfigChangedParams {
1129
+ changedAt?: string;
1130
+ regions?: string[];
1131
+ source?: string;
1132
+ [key: string]: unknown;
1133
+ }
1134
+ export interface ConfigEdit {
1135
+ keyPath: string;
1136
+ mergeStrategy: string;
1137
+ value: JsonValue;
1138
+ [key: string]: unknown;
1139
+ }
1140
+ export interface ConfigLayer {
1141
+ config: JsonValue;
1142
+ name: ConfigLayerName;
1143
+ version: string;
1144
+ [key: string]: unknown;
1145
+ }
1146
+ export interface ConfigLayerMetadata {
1147
+ name: ConfigLayerName;
1148
+ version: string;
1149
+ [key: string]: unknown;
1150
+ }
1151
+ export interface ConfigLayerName {
1152
+ file: string;
1153
+ type: string;
1154
+ [key: string]: unknown;
1155
+ }
1156
+ export interface ConfigOverriddenMetadata {
1157
+ effectiveValue: JsonValue;
1158
+ message: string;
1159
+ overridingLayer: ConfigLayerMetadata;
1160
+ [key: string]: unknown;
1161
+ }
1162
+ export interface ConfigReadParams {
1163
+ includeLayers?: boolean;
1164
+ [key: string]: unknown;
1165
+ }
1166
+ export interface ConfigReadResult {
1167
+ config: JsonValue;
1168
+ layers?: ConfigLayer[];
1169
+ origins: Record<string, ConfigLayerMetadata>;
1170
+ [key: string]: unknown;
1171
+ }
1013
1172
  export interface ConfigSchemaField {
1014
1173
  defaultValue?: JsonValue;
1015
1174
  displayName?: string | null;
@@ -1024,6 +1183,13 @@ export interface ConfigSchemaField {
1024
1183
  type: string;
1025
1184
  [key: string]: unknown;
1026
1185
  }
1186
+ export interface ConfigSchemaParams {
1187
+ [key: string]: unknown;
1188
+ }
1189
+ export interface ConfigSchemaResult {
1190
+ sections?: ConfigSchemaSection[];
1191
+ [key: string]: unknown;
1192
+ }
1027
1193
  export interface ConfigSchemaSection {
1028
1194
  fields: ConfigSchemaField[];
1029
1195
  itemFields?: ConfigSchemaField[] | null;
@@ -1033,6 +1199,21 @@ export interface ConfigSchemaSection {
1033
1199
  section: string;
1034
1200
  [key: string]: unknown;
1035
1201
  }
1202
+ export interface ConfigValueWriteParams {
1203
+ expectedVersion?: string | null;
1204
+ filePath?: string | null;
1205
+ keyPath: string;
1206
+ mergeStrategy: string;
1207
+ value: JsonValue;
1208
+ [key: string]: unknown;
1209
+ }
1210
+ export interface ConfigWriteResult {
1211
+ filePath: string;
1212
+ overriddenMetadata?: ConfigOverriddenMetadata | null;
1213
+ status: string;
1214
+ version: string;
1215
+ [key: string]: unknown;
1216
+ }
1036
1217
  export interface ContextImage {
1037
1218
  fileName: string;
1038
1219
  mimeType: string;
@@ -1286,11 +1467,48 @@ export interface ExternalChannelUpsertResult {
1286
1467
  channel?: ExternalChannelConfig;
1287
1468
  [key: string]: unknown;
1288
1469
  }
1470
+ export interface FsChangedNotification {
1471
+ changedPaths: string[];
1472
+ watchId: string;
1473
+ [key: string]: unknown;
1474
+ }
1475
+ export interface FsCopyParams {
1476
+ destinationPath: string;
1477
+ recursive?: boolean;
1478
+ sourcePath: string;
1479
+ [key: string]: unknown;
1480
+ }
1289
1481
  export interface FsCreateDirectoryParams {
1290
1482
  path: string;
1291
1483
  recursive?: boolean;
1292
1484
  [key: string]: unknown;
1293
1485
  }
1486
+ export interface FsGetMetadataParams {
1487
+ path: string;
1488
+ [key: string]: unknown;
1489
+ }
1490
+ export interface FsGetMetadataResult {
1491
+ createdAtMs: number;
1492
+ isDirectory: boolean;
1493
+ isFile: boolean;
1494
+ isSymlink: boolean;
1495
+ modifiedAtMs: number;
1496
+ [key: string]: unknown;
1497
+ }
1498
+ export interface FsReadDirectoryEntry {
1499
+ fileName: string;
1500
+ isDirectory: boolean;
1501
+ isFile: boolean;
1502
+ [key: string]: unknown;
1503
+ }
1504
+ export interface FsReadDirectoryParams {
1505
+ path: string;
1506
+ [key: string]: unknown;
1507
+ }
1508
+ export interface FsReadDirectoryResult {
1509
+ entries: FsReadDirectoryEntry[];
1510
+ [key: string]: unknown;
1511
+ }
1294
1512
  export interface FsReadFileParams {
1295
1513
  path: string;
1296
1514
  [key: string]: unknown;
@@ -1299,11 +1517,61 @@ export interface FsReadFileResult {
1299
1517
  dataBase64: string;
1300
1518
  [key: string]: unknown;
1301
1519
  }
1520
+ export interface FsRemoveParams {
1521
+ force?: boolean;
1522
+ path: string;
1523
+ recursive?: boolean;
1524
+ [key: string]: unknown;
1525
+ }
1526
+ export interface FsUnwatchParams {
1527
+ watchId: string;
1528
+ [key: string]: unknown;
1529
+ }
1530
+ export interface FsWatchParams {
1531
+ path: string;
1532
+ watchId: string;
1533
+ [key: string]: unknown;
1534
+ }
1535
+ export interface FsWatchResult {
1536
+ path: string;
1537
+ [key: string]: unknown;
1538
+ }
1302
1539
  export interface FsWriteFileParams {
1303
1540
  dataBase64: string;
1304
1541
  path: string;
1305
1542
  [key: string]: unknown;
1306
1543
  }
1544
+ export interface GenerativeUiBlockState {
1545
+ blockIndex: number;
1546
+ itemId: string;
1547
+ state: JsonValue;
1548
+ turnId: string;
1549
+ [key: string]: unknown;
1550
+ }
1551
+ export interface GenerativeUiStateReadParams {
1552
+ threadId: string;
1553
+ [key: string]: unknown;
1554
+ }
1555
+ export interface GenerativeUiStateReadResult {
1556
+ states: GenerativeUiBlockState[];
1557
+ [key: string]: unknown;
1558
+ }
1559
+ export interface GenerativeUiStateUpdateParams {
1560
+ blockIndex: number;
1561
+ itemId: string;
1562
+ state?: JsonValue;
1563
+ threadId: string;
1564
+ turnId: string;
1565
+ [key: string]: unknown;
1566
+ }
1567
+ export interface GenerativeUiStateUpdatedNotification {
1568
+ blockIndex: number;
1569
+ itemId: string;
1570
+ state: JsonValue;
1571
+ threadId: string;
1572
+ turnId: string;
1573
+ [key: string]: unknown;
1574
+ }
1307
1575
  export interface HookErrorInfo {
1308
1576
  message?: string;
1309
1577
  path?: string;
@@ -1502,36 +1770,6 @@ export interface InitializeResult {
1502
1770
  serverInfo: ServerInfo;
1503
1771
  [key: string]: unknown;
1504
1772
  }
1505
- export interface InlineVisualizationViewCloseParams {
1506
- viewHandle?: string;
1507
- [key: string]: unknown;
1508
- }
1509
- export interface InlineVisualizationViewCloseResult {
1510
- closed?: boolean;
1511
- [key: string]: unknown;
1512
- }
1513
- export interface InlineVisualizationViewMessageParams {
1514
- prompt?: string;
1515
- viewHandle?: string;
1516
- [key: string]: unknown;
1517
- }
1518
- export interface InlineVisualizationViewMessageResult {
1519
- queuedInputId?: string;
1520
- [key: string]: unknown;
1521
- }
1522
- export interface InlineVisualizationViewOpenParams {
1523
- file?: string;
1524
- itemId?: string;
1525
- threadId?: string;
1526
- turnId?: string;
1527
- [key: string]: unknown;
1528
- }
1529
- export interface InlineVisualizationViewOpenResult {
1530
- fragment?: string;
1531
- mimeType?: string;
1532
- viewHandle?: string;
1533
- [key: string]: unknown;
1534
- }
1535
1773
  export interface InputContext {
1536
1774
  characterCount?: number | null;
1537
1775
  comment?: string | null;
@@ -1584,16 +1822,6 @@ export interface ItemNotification {
1584
1822
  turnId?: string | null;
1585
1823
  [key: string]: unknown;
1586
1824
  }
1587
- export interface ItemWidgetStateSetParams {
1588
- callId?: string;
1589
- threadId?: string;
1590
- widgetState?: JsonValue;
1591
- [key: string]: unknown;
1592
- }
1593
- export interface ItemWidgetStateSetResult {
1594
- cleared?: boolean;
1595
- [key: string]: unknown;
1596
- }
1597
1825
  export interface MarketplaceAddParams {
1598
1826
  marketplacePath?: string | null;
1599
1827
  ref?: string | null;
@@ -2256,7 +2484,6 @@ export interface PluginInfo {
2256
2484
  }
2257
2485
  export interface PluginInstallLocalParams {
2258
2486
  path?: string;
2259
- scope: string;
2260
2487
  [key: string]: unknown;
2261
2488
  }
2262
2489
  export interface PluginInstallParams {
@@ -2658,6 +2885,7 @@ export interface ServerCapabilities {
2658
2885
  automations?: boolean;
2659
2886
  backgroundTerminals?: boolean;
2660
2887
  channelStatus?: boolean;
2888
+ commandExec?: boolean;
2661
2889
  commandManagement?: boolean;
2662
2890
  configOverride?: boolean;
2663
2891
  desktopPluginArtifacts?: boolean;
@@ -2666,9 +2894,9 @@ export interface ServerCapabilities {
2666
2894
  extensions?: ServerCapabilityExtensions | null;
2667
2895
  externalChannelManagement?: boolean;
2668
2896
  fileSystem?: boolean;
2897
+ generativeUi?: boolean;
2669
2898
  gitWorktrees?: boolean;
2670
2899
  hooksManagement?: boolean;
2671
- inlineVisualizations?: boolean;
2672
2900
  manualCompaction?: boolean;
2673
2901
  mcpApps?: boolean;
2674
2902
  mcpElicitation?: boolean;
@@ -2698,6 +2926,7 @@ export interface ServerCapabilities {
2698
2926
  threadSubscriptions: boolean;
2699
2927
  toolCatalog?: boolean;
2700
2928
  usageTelemetry?: boolean;
2929
+ visualizations?: boolean;
2701
2930
  workspaceConfigManagement?: boolean;
2702
2931
  [key: string]: unknown;
2703
2932
  }
@@ -3377,6 +3606,10 @@ export interface ThreadArchiveParams {
3377
3606
  threadId?: string;
3378
3607
  [key: string]: unknown;
3379
3608
  }
3609
+ export interface ThreadArchivedNotification {
3610
+ threadId: string;
3611
+ [key: string]: unknown;
3612
+ }
3380
3613
  export interface ThreadChannelBindingRequestCreateParams {
3381
3614
  channelName?: string;
3382
3615
  threadId?: string;
@@ -3617,10 +3850,6 @@ export interface ThreadOriginPresentation {
3617
3850
  subjectKind?: string | null;
3618
3851
  [key: string]: unknown;
3619
3852
  }
3620
- export interface ThreadPauseParams {
3621
- threadId?: string;
3622
- [key: string]: unknown;
3623
- }
3624
3853
  export interface ThreadPluginPolicy {
3625
3854
  allow?: string[] | null;
3626
3855
  deny?: string[] | null;
@@ -3693,11 +3922,6 @@ export interface ThreadRollbackResponse {
3693
3922
  thread?: SessionThread;
3694
3923
  [key: string]: unknown;
3695
3924
  }
3696
- export interface ThreadRuntimeChangedParams {
3697
- runtime?: ThreadRuntimeState;
3698
- threadId?: string;
3699
- [key: string]: unknown;
3700
- }
3701
3925
  export interface ThreadRuntimeState {
3702
3926
  activeTurnId?: string | null;
3703
3927
  activeTurnStartedAt?: string | null;
@@ -3768,6 +3992,7 @@ export interface ThreadStartParams {
3768
3992
  cwd?: string | null;
3769
3993
  displayName?: string | null;
3770
3994
  dynamicTools?: RuntimeDynamicToolDeclaration[] | null;
3995
+ ephemeral?: boolean | null;
3771
3996
  historyMode?: string | null;
3772
3997
  identity: SessionIdentity;
3773
3998
  runtimeWorkspaceRoots?: string[] | null;
@@ -3780,8 +4005,7 @@ export interface ThreadStartResult {
3780
4005
  [key: string]: unknown;
3781
4006
  }
3782
4007
  export interface ThreadStatusChangedNotification {
3783
- newStatus?: string | null;
3784
- previousStatus?: string | null;
4008
+ runtime?: ThreadRuntimeState;
3785
4009
  threadId?: string;
3786
4010
  [key: string]: unknown;
3787
4011
  }
@@ -3838,6 +4062,10 @@ export interface ThreadUnarchiveParams {
3838
4062
  threadId?: string;
3839
4063
  [key: string]: unknown;
3840
4064
  }
4065
+ export interface ThreadUnarchivedNotification {
4066
+ threadId: string;
4067
+ [key: string]: unknown;
4068
+ }
3841
4069
  export interface ThreadUnsubscribeParams {
3842
4070
  threadId?: string;
3843
4071
  [key: string]: unknown;
@@ -4307,6 +4535,55 @@ export interface UserMessagePayload {
4307
4535
  triggerRefId?: string | null;
4308
4536
  [key: string]: unknown;
4309
4537
  }
4538
+ export interface VisualizationViewCloseParams {
4539
+ viewHandle?: string;
4540
+ [key: string]: unknown;
4541
+ }
4542
+ export interface VisualizationViewCloseResult {
4543
+ closed?: boolean;
4544
+ [key: string]: unknown;
4545
+ }
4546
+ export interface VisualizationViewMessageParams {
4547
+ context?: JsonValue;
4548
+ prompt?: string;
4549
+ viewHandle?: string;
4550
+ [key: string]: unknown;
4551
+ }
4552
+ export interface VisualizationViewMessageResult {
4553
+ queuedInputId?: string;
4554
+ [key: string]: unknown;
4555
+ }
4556
+ export interface VisualizationViewOpenParams {
4557
+ itemId?: string;
4558
+ path?: string;
4559
+ threadId?: string;
4560
+ turnId?: string;
4561
+ [key: string]: unknown;
4562
+ }
4563
+ export interface VisualizationViewOpenResult {
4564
+ fragment?: string;
4565
+ mimeType?: string;
4566
+ viewHandle?: string;
4567
+ widgetState?: VisualizationWidgetState | null;
4568
+ [key: string]: unknown;
4569
+ }
4570
+ export interface VisualizationViewWidgetStateUpdateParams {
4571
+ modelContent?: JsonValue;
4572
+ privateContent?: JsonValue;
4573
+ viewHandle?: string;
4574
+ [key: string]: unknown;
4575
+ }
4576
+ export interface VisualizationWidgetState {
4577
+ modelContent?: JsonValue;
4578
+ privateContent?: JsonValue;
4579
+ [key: string]: unknown;
4580
+ }
4581
+ export interface VisualizationWidgetStateUpdatedNotification {
4582
+ path: string;
4583
+ threadId: string;
4584
+ widgetState: VisualizationWidgetState | null;
4585
+ [key: string]: unknown;
4586
+ }
4310
4587
  export interface WelcomeSuggestionItem {
4311
4588
  prompt?: string;
4312
4589
  reason?: string;
@@ -4446,57 +4723,6 @@ export interface WorkspaceCommitMessageSuggestResult {
4446
4723
  message?: string;
4447
4724
  [key: string]: unknown;
4448
4725
  }
4449
- export interface WorkspaceConfigChangedParams {
4450
- changedAt?: string;
4451
- regions?: string[];
4452
- source?: string;
4453
- [key: string]: unknown;
4454
- }
4455
- export interface WorkspaceConfigSchemaParams {
4456
- [key: string]: unknown;
4457
- }
4458
- export interface WorkspaceConfigSchemaResult {
4459
- sections?: ConfigSchemaSection[];
4460
- [key: string]: unknown;
4461
- }
4462
- export interface WorkspaceConfigUpdateParams {
4463
- defaultApprovalPolicy?: string | null;
4464
- dreamsAutoApply?: boolean | null;
4465
- dreamsEnabled?: boolean | null;
4466
- dreamsInterval?: string | null;
4467
- dreamsThreadLookbackCount?: number | null;
4468
- memoryEnabled?: boolean | null;
4469
- promptSuggestionsEnabled?: boolean | null;
4470
- providerId?: string | null;
4471
- providerPreferences?: Record<string, ModelPreference> | null;
4472
- skillsIncludeSharedSkills?: boolean | null;
4473
- skillsSelfLearningEnabled?: boolean | null;
4474
- toolsCodeModeMode?: string | null;
4475
- toolsImageGenerationEnabled?: boolean | null;
4476
- toolsImageGenerationProvider?: string | null;
4477
- toolsLspEnabled?: boolean | null;
4478
- welcomeSuggestionsEnabled?: boolean | null;
4479
- [key: string]: unknown;
4480
- }
4481
- export interface WorkspaceConfigUpdateResult {
4482
- defaultApprovalPolicy?: string | null;
4483
- dreamsAutoApply?: boolean | null;
4484
- dreamsEnabled?: boolean | null;
4485
- dreamsInterval?: string | null;
4486
- dreamsThreadLookbackCount?: number | null;
4487
- memoryEnabled?: boolean | null;
4488
- promptSuggestionsEnabled?: boolean | null;
4489
- providerId?: string | null;
4490
- providerPreferences?: Record<string, ModelPreference> | null;
4491
- skillsIncludeSharedSkills?: boolean | null;
4492
- skillsSelfLearningEnabled?: boolean | null;
4493
- toolsCodeModeMode?: string | null;
4494
- toolsImageGenerationEnabled?: boolean | null;
4495
- toolsImageGenerationProvider?: string | null;
4496
- toolsLspEnabled?: boolean | null;
4497
- welcomeSuggestionsEnabled?: boolean | null;
4498
- [key: string]: unknown;
4499
- }
4500
4726
  export interface WorktreeCreateAndForkParams {
4501
4727
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
4502
4728
  baseRef?: string | null;