@dotcraft/sdk 0.8.3 → 0.8.5

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.
@@ -1030,7 +1030,7 @@ export interface ClientCapabilities {
1030
1030
  computerUse?: ComputerUseCapability | null;
1031
1031
  configChange?: boolean | null;
1032
1032
  extensions?: Record<string, JsonValue> | null;
1033
- inlineVisualizations?: boolean | null;
1033
+ generativeUi?: boolean | null;
1034
1034
  interactiveToolUi?: boolean | null;
1035
1035
  mcpApps?: boolean | null;
1036
1036
  mcpElicitation?: boolean | null;
@@ -1039,6 +1039,7 @@ export interface ClientCapabilities {
1039
1039
  requestUserInputSupport?: boolean | null;
1040
1040
  streamingSupport?: boolean | null;
1041
1041
  toolExecutionLifecycle?: boolean | null;
1042
+ visualizations?: boolean | null;
1042
1043
  [key: string]: unknown;
1043
1044
  }
1044
1045
  export interface ClientInfo {
@@ -1047,6 +1048,20 @@ export interface ClientInfo {
1047
1048
  version: string;
1048
1049
  [key: string]: unknown;
1049
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
+ }
1050
1065
  export interface CommandExecuteParams {
1051
1066
  arguments?: string[] | null;
1052
1067
  command?: string;
@@ -1452,11 +1467,48 @@ export interface ExternalChannelUpsertResult {
1452
1467
  channel?: ExternalChannelConfig;
1453
1468
  [key: string]: unknown;
1454
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
+ }
1455
1481
  export interface FsCreateDirectoryParams {
1456
1482
  path: string;
1457
1483
  recursive?: boolean;
1458
1484
  [key: string]: unknown;
1459
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
+ }
1460
1512
  export interface FsReadFileParams {
1461
1513
  path: string;
1462
1514
  [key: string]: unknown;
@@ -1465,11 +1517,61 @@ export interface FsReadFileResult {
1465
1517
  dataBase64: string;
1466
1518
  [key: string]: unknown;
1467
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
+ }
1468
1539
  export interface FsWriteFileParams {
1469
1540
  dataBase64: string;
1470
1541
  path: string;
1471
1542
  [key: string]: unknown;
1472
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
+ }
1473
1575
  export interface HookErrorInfo {
1474
1576
  message?: string;
1475
1577
  path?: string;
@@ -1668,36 +1770,6 @@ export interface InitializeResult {
1668
1770
  serverInfo: ServerInfo;
1669
1771
  [key: string]: unknown;
1670
1772
  }
1671
- export interface InlineVisualizationViewCloseParams {
1672
- viewHandle?: string;
1673
- [key: string]: unknown;
1674
- }
1675
- export interface InlineVisualizationViewCloseResult {
1676
- closed?: boolean;
1677
- [key: string]: unknown;
1678
- }
1679
- export interface InlineVisualizationViewMessageParams {
1680
- prompt?: string;
1681
- viewHandle?: string;
1682
- [key: string]: unknown;
1683
- }
1684
- export interface InlineVisualizationViewMessageResult {
1685
- queuedInputId?: string;
1686
- [key: string]: unknown;
1687
- }
1688
- export interface InlineVisualizationViewOpenParams {
1689
- file?: string;
1690
- itemId?: string;
1691
- threadId?: string;
1692
- turnId?: string;
1693
- [key: string]: unknown;
1694
- }
1695
- export interface InlineVisualizationViewOpenResult {
1696
- fragment?: string;
1697
- mimeType?: string;
1698
- viewHandle?: string;
1699
- [key: string]: unknown;
1700
- }
1701
1773
  export interface InputContext {
1702
1774
  characterCount?: number | null;
1703
1775
  comment?: string | null;
@@ -1750,16 +1822,6 @@ export interface ItemNotification {
1750
1822
  turnId?: string | null;
1751
1823
  [key: string]: unknown;
1752
1824
  }
1753
- export interface ItemWidgetStateSetParams {
1754
- callId?: string;
1755
- threadId?: string;
1756
- widgetState?: JsonValue;
1757
- [key: string]: unknown;
1758
- }
1759
- export interface ItemWidgetStateSetResult {
1760
- cleared?: boolean;
1761
- [key: string]: unknown;
1762
- }
1763
1825
  export interface MarketplaceAddParams {
1764
1826
  marketplacePath?: string | null;
1765
1827
  ref?: string | null;
@@ -2823,6 +2885,7 @@ export interface ServerCapabilities {
2823
2885
  automations?: boolean;
2824
2886
  backgroundTerminals?: boolean;
2825
2887
  channelStatus?: boolean;
2888
+ commandExec?: boolean;
2826
2889
  commandManagement?: boolean;
2827
2890
  configOverride?: boolean;
2828
2891
  desktopPluginArtifacts?: boolean;
@@ -2831,9 +2894,9 @@ export interface ServerCapabilities {
2831
2894
  extensions?: ServerCapabilityExtensions | null;
2832
2895
  externalChannelManagement?: boolean;
2833
2896
  fileSystem?: boolean;
2897
+ generativeUi?: boolean;
2834
2898
  gitWorktrees?: boolean;
2835
2899
  hooksManagement?: boolean;
2836
- inlineVisualizations?: boolean;
2837
2900
  manualCompaction?: boolean;
2838
2901
  mcpApps?: boolean;
2839
2902
  mcpElicitation?: boolean;
@@ -2863,6 +2926,7 @@ export interface ServerCapabilities {
2863
2926
  threadSubscriptions: boolean;
2864
2927
  toolCatalog?: boolean;
2865
2928
  usageTelemetry?: boolean;
2929
+ visualizations?: boolean;
2866
2930
  workspaceConfigManagement?: boolean;
2867
2931
  [key: string]: unknown;
2868
2932
  }
@@ -3928,6 +3992,7 @@ export interface ThreadStartParams {
3928
3992
  cwd?: string | null;
3929
3993
  displayName?: string | null;
3930
3994
  dynamicTools?: RuntimeDynamicToolDeclaration[] | null;
3995
+ ephemeral?: boolean | null;
3931
3996
  historyMode?: string | null;
3932
3997
  identity: SessionIdentity;
3933
3998
  runtimeWorkspaceRoots?: string[] | null;
@@ -4470,6 +4535,55 @@ export interface UserMessagePayload {
4470
4535
  triggerRefId?: string | null;
4471
4536
  [key: string]: unknown;
4472
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
+ }
4473
4587
  export interface WelcomeSuggestionItem {
4474
4588
  prompt?: string;
4475
4589
  reason?: string;