@dotcraft/sdk 0.14.4 → 0.16.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.
Files changed (30) hide show
  1. package/dist/client.d.ts.map +1 -1
  2. package/dist/client.js +0 -1
  3. package/dist/client.js.map +1 -1
  4. package/dist/dotcraft.d.ts +1 -102
  5. package/dist/dotcraft.d.ts.map +1 -1
  6. package/dist/dotcraft.js +0 -191
  7. package/dist/dotcraft.js.map +1 -1
  8. package/dist/dotcraft.test.js +1 -82
  9. package/dist/dotcraft.test.js.map +1 -1
  10. package/dist/generated/appserver/client-requests.generated.d.ts +0 -104
  11. package/dist/generated/appserver/client-requests.generated.d.ts.map +1 -1
  12. package/dist/generated/appserver/method-groups.generated.d.ts +4 -4
  13. package/dist/generated/appserver/method-groups.generated.d.ts.map +1 -1
  14. package/dist/generated/appserver/method-groups.generated.js +5 -38
  15. package/dist/generated/appserver/method-groups.generated.js.map +1 -1
  16. package/dist/generated/appserver/models.generated.d.ts +48 -550
  17. package/dist/generated/appserver/models.generated.d.ts.map +1 -1
  18. package/dist/generated/appserver/protocol-info.generated.d.ts +2 -2
  19. package/dist/generated/appserver/protocol-info.generated.js +2 -2
  20. package/dist/generated/appserver/server-notifications.generated.d.ts +0 -20
  21. package/dist/generated/appserver/server-notifications.generated.d.ts.map +1 -1
  22. package/dist/generated/appserver/server-requests.generated.d.ts +9 -17
  23. package/dist/generated/appserver/server-requests.generated.d.ts.map +1 -1
  24. package/dist/publicApi.test.js +2 -3
  25. package/dist/publicApi.test.js.map +1 -1
  26. package/package.json +1 -5
  27. package/dist/app-binding.d.ts +0 -4
  28. package/dist/app-binding.d.ts.map +0 -1
  29. package/dist/app-binding.js +0 -2
  30. package/dist/app-binding.js.map +0 -1
@@ -2,6 +2,11 @@ export type JsonPrimitive = null | boolean | number | string;
2
2
  export type JsonValue = JsonPrimitive | JsonValue[] | {
3
3
  [key: string]: JsonValue;
4
4
  };
5
+ export interface AcpEnvVariable {
6
+ name?: string;
7
+ value?: string;
8
+ [key: string]: unknown;
9
+ }
5
10
  export interface AcpExtensionCapability {
6
11
  extensions?: string[] | null;
7
12
  fsReadTextFile?: boolean | null;
@@ -11,7 +16,7 @@ export interface AcpExtensionCapability {
11
16
  }
12
17
  export interface AcpFsReadTextFileParams {
13
18
  limit?: number | null;
14
- offset?: number | null;
19
+ line?: number | null;
15
20
  path?: string;
16
21
  threadId?: string;
17
22
  [key: string]: unknown;
@@ -26,14 +31,12 @@ export interface AcpFsWriteTextFileParams {
26
31
  threadId?: string;
27
32
  [key: string]: unknown;
28
33
  }
29
- export interface AcpFsWriteTextFileResult {
30
- success?: boolean;
31
- [key: string]: unknown;
32
- }
33
34
  export interface AcpTerminalCreateParams {
35
+ args?: string[] | null;
34
36
  command?: string;
35
37
  cwd?: string | null;
36
- env?: Record<string, string> | null;
38
+ env?: AcpEnvVariable[] | null;
39
+ outputByteLimit?: number | null;
37
40
  threadId?: string;
38
41
  [key: string]: unknown;
39
42
  }
@@ -41,19 +44,25 @@ export interface AcpTerminalCreateResult {
41
44
  terminalId?: string | null;
42
45
  [key: string]: unknown;
43
46
  }
44
- export interface AcpTerminalGetOutputParams {
47
+ export interface AcpTerminalExitStatus {
48
+ exitCode?: number | null;
49
+ signal?: string | null;
50
+ [key: string]: unknown;
51
+ }
52
+ export interface AcpTerminalKillParams {
45
53
  terminalId?: string;
46
54
  threadId?: string;
47
55
  [key: string]: unknown;
48
56
  }
49
- export interface AcpTerminalKillParams {
57
+ export interface AcpTerminalOutputParams {
50
58
  terminalId?: string;
51
59
  threadId?: string;
52
60
  [key: string]: unknown;
53
61
  }
54
62
  export interface AcpTerminalOutputResult {
55
- exitCode?: number | null;
63
+ exitStatus?: AcpTerminalExitStatus | null;
56
64
  output?: string | null;
65
+ truncated?: boolean;
57
66
  [key: string]: unknown;
58
67
  }
59
68
  export interface AcpTerminalReleaseParams {
@@ -64,7 +73,11 @@ export interface AcpTerminalReleaseParams {
64
73
  export interface AcpTerminalWaitForExitParams {
65
74
  terminalId?: string;
66
75
  threadId?: string;
67
- timeout?: number | null;
76
+ [key: string]: unknown;
77
+ }
78
+ export interface AcpTerminalWaitForExitResult {
79
+ exitCode?: number | null;
80
+ signal?: string | null;
68
81
  [key: string]: unknown;
69
82
  }
70
83
  export interface AgentExportPackage {
@@ -164,6 +177,7 @@ export interface AgentImportUploadResult {
164
177
  export interface AgentMessagePayload {
165
178
  deliveryMode?: string | null;
166
179
  phase?: string | null;
180
+ questions?: AsyncUserInputQuestion[] | null;
167
181
  text: string;
168
182
  [key: string]: unknown;
169
183
  }
@@ -313,328 +327,6 @@ export interface AgentProfileValidateResult {
313
327
  valid?: boolean;
314
328
  [key: string]: unknown;
315
329
  }
316
- export interface AppBinding {
317
- appId?: string;
318
- approvedCapabilityRevision?: number;
319
- approvedTools?: AppBindingToolCapability[];
320
- authorityRevision?: number;
321
- bindingId?: string;
322
- candidateCapabilityRevision?: number | null;
323
- channelTarget?: ChannelTarget | null;
324
- failureReason?: string | null;
325
- pendingChanges?: AppBindingCapabilityChange[];
326
- state?: string;
327
- threadId?: string;
328
- updatedAt?: string;
329
- [key: string]: unknown;
330
- }
331
- export interface AppBindingActivateParams {
332
- bearer?: string;
333
- bearerExpiresAt?: string | null;
334
- bindingRequestId?: string;
335
- endpoint?: string;
336
- [key: string]: unknown;
337
- }
338
- export interface AppBindingCapabilityChange {
339
- detail?: string;
340
- kind?: string;
341
- tool?: string;
342
- [key: string]: unknown;
343
- }
344
- export interface AppBindingRebindParams {
345
- authorityRevision?: number;
346
- bearer?: string;
347
- bearerExpiresAt?: string | null;
348
- bindingId?: string;
349
- endpoint?: string;
350
- [key: string]: unknown;
351
- }
352
- export interface AppBindingRequest {
353
- appId?: string;
354
- bindingId?: string;
355
- bindingRequestId?: string;
356
- expiresAt?: string;
357
- state?: string;
358
- threadId?: string;
359
- [key: string]: unknown;
360
- }
361
- export interface AppBindingRequestGetParams {
362
- bindingRequestId?: string;
363
- requestToken?: string | null;
364
- [key: string]: unknown;
365
- }
366
- export interface AppBindingRequestGetResult {
367
- appId?: string;
368
- bindingId?: string;
369
- bindingKind?: string | null;
370
- bindingRequestId?: string;
371
- channelIntent?: ChannelBindingIntent | null;
372
- developerName?: string;
373
- displayName?: string;
374
- dynamicToolCatalog?: AppDynamicToolCatalogDescriptor;
375
- expiresAt?: string;
376
- reason?: string | null;
377
- requestedScopes?: string[];
378
- requestedTools?: string[];
379
- scopeCatalog?: AppScopeDescriptor[];
380
- source?: string;
381
- state?: string;
382
- threadId?: string;
383
- threadTitle?: string | null;
384
- toolCatalog?: AppToolCatalogEntry[];
385
- [key: string]: unknown;
386
- }
387
- export interface AppBindingRequestedNotification {
388
- appId?: string | null;
389
- bindingId?: string;
390
- bindingRequestId?: string;
391
- channelName?: string | null;
392
- code?: string | null;
393
- expiresAt?: string | null;
394
- threadId?: string | null;
395
- [key: string]: unknown;
396
- }
397
- export interface AppBindingToolCapability {
398
- annotations?: JsonValue;
399
- description?: string;
400
- inputSchema?: JsonValue;
401
- namespaceDescription?: string | null;
402
- outputSchema?: JsonValue;
403
- sourceToolName?: string;
404
- ui?: AppBindingUiCapability | null;
405
- visibility?: string[];
406
- [key: string]: unknown;
407
- }
408
- export interface AppBindingUiCapability {
409
- connectDomains?: string[];
410
- permissions?: string[];
411
- resourceDomains?: string[];
412
- resourceUri?: string;
413
- securityHash?: string;
414
- [key: string]: unknown;
415
- }
416
- export interface AppBindingsListResult {
417
- bindings?: AppBinding[];
418
- [key: string]: unknown;
419
- }
420
- export interface AppChannelBindingResolveParams {
421
- accountId?: string | null;
422
- channelName?: string;
423
- conversationId?: string;
424
- conversationKind?: string;
425
- [key: string]: unknown;
426
- }
427
- export interface AppChannelBindingResolveResult {
428
- binding?: AppBinding | null;
429
- [key: string]: unknown;
430
- }
431
- export interface AppConnectionAuthenticateParams {
432
- appId?: string;
433
- credential?: string;
434
- [key: string]: unknown;
435
- }
436
- export interface AppConnectionAuthenticateResult {
437
- principal?: AppPrincipal;
438
- [key: string]: unknown;
439
- }
440
- export interface AppConnectionChangedNotification {
441
- appId?: string | null;
442
- state?: string;
443
- [key: string]: unknown;
444
- }
445
- export interface AppConnectionConnectParams {
446
- accountLabel?: string | null;
447
- connectionRequestId?: string;
448
- requestToken?: string;
449
- [key: string]: unknown;
450
- }
451
- export interface AppConnectionConnectResult {
452
- credential?: string;
453
- principal?: AppPrincipal;
454
- [key: string]: unknown;
455
- }
456
- export interface AppConnectionRefreshResult {
457
- credential?: string;
458
- principal?: AppPrincipal;
459
- [key: string]: unknown;
460
- }
461
- export interface AppConnectionRequestGetParams {
462
- connectionRequestId?: string;
463
- requestToken?: string;
464
- [key: string]: unknown;
465
- }
466
- export interface AppConnectionRequestGetResult {
467
- appId?: string;
468
- connectionRequestId?: string;
469
- developerName?: string;
470
- displayName?: string;
471
- expiresAt?: string;
472
- userId?: string;
473
- [key: string]: unknown;
474
- }
475
- export interface AppConnectionRevokeParams {
476
- appId?: string;
477
- reason?: string | null;
478
- [key: string]: unknown;
479
- }
480
- export interface AppConnectionRevokeResult {
481
- state?: string;
482
- [key: string]: unknown;
483
- }
484
- export interface AppConnectionStartParams {
485
- appId?: string;
486
- [key: string]: unknown;
487
- }
488
- export interface AppConnectionStartResult {
489
- connectionRequestId?: string;
490
- expiresAt?: string;
491
- handoff?: AppHandoff | null;
492
- requestToken?: string;
493
- [key: string]: unknown;
494
- }
495
- export interface AppConnectionStatusParams {
496
- appId?: string;
497
- [key: string]: unknown;
498
- }
499
- export interface AppConnectionStatusResult {
500
- appId?: string;
501
- principal?: AppPrincipal | null;
502
- state?: string;
503
- [key: string]: unknown;
504
- }
505
- export interface AppDynamicToolCatalogDescriptor {
506
- description?: string | null;
507
- enabled?: boolean;
508
- [key: string]: unknown;
509
- }
510
- export interface AppHandoff {
511
- bindCode?: string | null;
512
- instructions?: string | null;
513
- mode?: string;
514
- uri?: string | null;
515
- [key: string]: unknown;
516
- }
517
- export interface AppHandoffModeDescriptor {
518
- mode?: string;
519
- serviceId?: string | null;
520
- uriTemplate?: string | null;
521
- [key: string]: unknown;
522
- }
523
- export interface AppInfo {
524
- accountLabel?: string | null;
525
- appId?: string;
526
- bindingSummary?: ThreadAppBindingSummary | null;
527
- catalogVisible?: boolean;
528
- category?: string | null;
529
- connectionState?: string;
530
- description?: string;
531
- developerName?: string;
532
- diagnostics?: PluginDiagnostic[];
533
- displayName?: string;
534
- downloadUrl?: string | null;
535
- enabled?: boolean;
536
- handoffModes?: AppHandoffModeDescriptor[];
537
- icon?: string | null;
538
- installed?: boolean;
539
- managed?: boolean;
540
- nativeApp?: AppNativeApplication;
541
- originChannel?: string | null;
542
- pluginId?: string;
543
- releasePage?: string | null;
544
- requiresExternalConnection?: boolean;
545
- [key: string]: unknown;
546
- }
547
- export interface AppListParams {
548
- forceRefresh?: boolean | null;
549
- includeCatalog?: boolean | null;
550
- includeDisabled?: boolean | null;
551
- surface?: string | null;
552
- threadId?: string | null;
553
- [key: string]: unknown;
554
- }
555
- export interface AppListResult {
556
- apps?: AppInfo[];
557
- [key: string]: unknown;
558
- }
559
- export interface AppListUpdatedNotification {
560
- appIds?: string[];
561
- pluginId?: string;
562
- reason?: string;
563
- [key: string]: unknown;
564
- }
565
- export interface AppNativeApplication {
566
- displayName?: string;
567
- installUrl?: string | null;
568
- protocol?: string;
569
- status?: string;
570
- [key: string]: unknown;
571
- }
572
- export interface AppPrincipal {
573
- appId?: string;
574
- expiresAt?: string;
575
- principalId?: string;
576
- userId?: string;
577
- [key: string]: unknown;
578
- }
579
- export interface AppScopeDescriptor {
580
- defaultSelected?: boolean | null;
581
- description?: string;
582
- displayName?: string;
583
- id?: string;
584
- risk?: string;
585
- [key: string]: unknown;
586
- }
587
- export interface AppSurface {
588
- appId?: string;
589
- bearer?: string;
590
- endpoint?: string;
591
- expiresAt?: string;
592
- surfaceId?: string;
593
- [key: string]: unknown;
594
- }
595
- export interface AppSurfacePublishParams {
596
- bearer?: string;
597
- endpoint?: string;
598
- surfaceId?: string;
599
- [key: string]: unknown;
600
- }
601
- export interface AppSurfaceResolveParams {
602
- appId?: string;
603
- surfaceId?: string;
604
- [key: string]: unknown;
605
- }
606
- export interface AppThreadInputEnqueueParams {
607
- bindingId?: string;
608
- displayText?: string | null;
609
- input?: InputPart[];
610
- sender?: SenderContext | null;
611
- startPolicy?: string | null;
612
- triggerLabel?: string | null;
613
- triggerRefId?: string | null;
614
- [key: string]: unknown;
615
- }
616
- export interface AppThreadInputEnqueueResult {
617
- queuedInput?: QueuedTurnInput;
618
- queuedInputs?: QueuedTurnInput[];
619
- [key: string]: unknown;
620
- }
621
- export interface AppToolCatalogEntry {
622
- defaultExposure?: string;
623
- description?: string | null;
624
- name?: string;
625
- risk?: string;
626
- scope?: string;
627
- [key: string]: unknown;
628
- }
629
- export interface AppViewParams {
630
- appId?: string;
631
- threadId?: string | null;
632
- [key: string]: unknown;
633
- }
634
- export interface AppViewResult {
635
- app?: AppInfo;
636
- [key: string]: unknown;
637
- }
638
330
  export interface ApprovalRequestParams {
639
331
  approvalType: string;
640
332
  callId?: string | null;
@@ -678,6 +370,11 @@ export interface ApprovalShellDetails {
678
370
  remembersExactCommand: boolean;
679
371
  [key: string]: unknown;
680
372
  }
373
+ export interface AsyncUserInputQuestion {
374
+ options?: string[] | null;
375
+ title: string;
376
+ [key: string]: unknown;
377
+ }
681
378
  export interface AutomationCreateParams {
682
379
  automation: AutomationInput;
683
380
  [key: string]: unknown;
@@ -834,20 +531,6 @@ export interface BackgroundTerminalSnapshot {
834
531
  workingDirectory?: string;
835
532
  [key: string]: unknown;
836
533
  }
837
- export interface BrowserUseCapability {
838
- backend: string;
839
- backends?: string[] | null;
840
- browserSessionProtocolVersion?: number | null;
841
- defaultCommandTimeoutMs?: number | null;
842
- maxBrowserResultBytes?: number | null;
843
- maxCommandTimeoutMs?: number | null;
844
- protocolVersion?: number | null;
845
- supportsCancel?: boolean | null;
846
- supportsChromeDiagnostics?: boolean | null;
847
- supportsCommandCancel?: boolean | null;
848
- supportsTypedFinalize?: boolean | null;
849
- [key: string]: unknown;
850
- }
851
534
  export interface ChannelAdapterCapability {
852
535
  channelName: string;
853
536
  channelTools?: ChannelToolDescriptor[] | null;
@@ -855,32 +538,6 @@ export interface ChannelAdapterCapability {
855
538
  displayName: string;
856
539
  [key: string]: unknown;
857
540
  }
858
- export interface ChannelBindingAcceptParams {
859
- code?: string;
860
- target?: ChannelTarget;
861
- [key: string]: unknown;
862
- }
863
- export interface ChannelBindingIntent {
864
- channelName?: string;
865
- displayHint?: string | null;
866
- targetSelection?: string;
867
- [key: string]: unknown;
868
- }
869
- export interface ChannelBindingRebindParams {
870
- authorityRevision?: number;
871
- bindingId?: string;
872
- target?: ChannelTarget;
873
- [key: string]: unknown;
874
- }
875
- export interface ChannelBindingRequestGetParams {
876
- code?: string;
877
- [key: string]: unknown;
878
- }
879
- export interface ChannelBoundBy {
880
- displayName?: string | null;
881
- platformUserId?: string;
882
- [key: string]: unknown;
883
- }
884
541
  export interface ChannelChat {
885
542
  kind: string;
886
543
  label?: string | null;
@@ -1006,16 +663,6 @@ export interface ChannelStatusResult {
1006
663
  channels?: ChannelStatusInfo[];
1007
664
  [key: string]: unknown;
1008
665
  }
1009
- export interface ChannelTarget {
1010
- accountId?: string | null;
1011
- boundBy?: ChannelBoundBy | null;
1012
- channelName?: string;
1013
- conversationId?: string;
1014
- conversationKind?: string;
1015
- deliveryTarget?: string;
1016
- displayName?: string | null;
1017
- [key: string]: unknown;
1018
- }
1019
666
  export interface ChannelTargetCapability {
1020
667
  direct: string;
1021
668
  group: boolean;
@@ -1044,20 +691,16 @@ export interface ChannelToolDescriptor {
1044
691
  }
1045
692
  export interface ClientCapabilities {
1046
693
  acpExtensions?: AcpExtensionCapability | null;
1047
- appBindingVersion?: number | null;
1048
694
  approvalSupport?: boolean | null;
1049
695
  backgroundTerminals?: boolean | null;
1050
- browserUse?: BrowserUseCapability | null;
1051
696
  channelAdapter?: ChannelAdapterCapability | null;
1052
697
  commandExecutionStreaming?: boolean | null;
1053
- computerUse?: ComputerUseCapability | null;
1054
698
  configChange?: boolean | null;
1055
699
  extensions?: Record<string, JsonValue> | null;
1056
700
  generativeUi?: boolean | null;
1057
701
  interactiveToolUi?: boolean | null;
1058
702
  mcpApps?: boolean | null;
1059
703
  mcpElicitation?: boolean | null;
1060
- nodeRepl?: NodeReplCapability | null;
1061
704
  optOutNotificationMethods?: string[] | null;
1062
705
  remoteHost?: boolean | null;
1063
706
  requestUserInputSupport?: boolean | null;
@@ -1142,10 +785,6 @@ export interface CommandListResult {
1142
785
  commands?: CommandInfo[];
1143
786
  [key: string]: unknown;
1144
787
  }
1145
- export interface ComputerUseCapability {
1146
- backend: string;
1147
- [key: string]: unknown;
1148
- }
1149
788
  export interface ConfigBatchWriteParams {
1150
789
  edits: ConfigEdit[];
1151
790
  expectedVersion?: string | null;
@@ -1632,11 +1271,14 @@ export interface HookMetadata {
1632
1271
  isManaged?: boolean;
1633
1272
  key?: string;
1634
1273
  matcher?: string | null;
1274
+ mcpServer?: string | null;
1275
+ mcpTool?: string | null;
1635
1276
  once?: boolean;
1636
1277
  pluginId?: string | null;
1637
1278
  rewakeMessage?: string | null;
1638
1279
  rewakeSummary?: string | null;
1639
1280
  shell?: string | null;
1281
+ skipIfDormant?: boolean;
1640
1282
  source?: string;
1641
1283
  sourcePath?: string;
1642
1284
  statusMessage?: string | null;
@@ -2049,6 +1691,7 @@ export interface McpOAuthConfig {
2049
1691
  clientSecret?: string | null;
2050
1692
  clientSecretEnvVar?: string | null;
2051
1693
  hasClientSecret?: boolean;
1694
+ scopes?: string[] | null;
2052
1695
  [key: string]: unknown;
2053
1696
  }
2054
1697
  export interface McpRemoveParams {
@@ -2073,7 +1716,9 @@ export interface McpServerConfig {
2073
1716
  builtinModule?: string | null;
2074
1717
  command?: string | null;
2075
1718
  cwd?: string | null;
1719
+ disabledTools?: string[] | null;
2076
1720
  enabled?: boolean;
1721
+ enabledTools?: string[] | null;
2077
1722
  env?: Record<string, string> | null;
2078
1723
  envHttpHeaders?: Record<string, string> | null;
2079
1724
  envVars?: string[] | null;
@@ -2083,13 +1728,15 @@ export interface McpServerConfig {
2083
1728
  origin?: McpServerOrigin | null;
2084
1729
  readOnly?: boolean;
2085
1730
  startupTimeoutSec?: number | null;
2086
- toolApprovalMode?: string;
1731
+ toolApprovalMode?: string | null;
2087
1732
  toolTimeoutSec?: number | null;
1733
+ tools?: Record<string, McpToolConfig> | null;
2088
1734
  transport?: string;
2089
1735
  url?: string | null;
2090
1736
  [key: string]: unknown;
2091
1737
  }
2092
1738
  export interface McpServerElicitationRequestParams {
1739
+ _meta?: JsonValue;
2093
1740
  elicitationId?: string | null;
2094
1741
  message?: string | null;
2095
1742
  mode?: string;
@@ -2101,6 +1748,7 @@ export interface McpServerElicitationRequestParams {
2101
1748
  [key: string]: unknown;
2102
1749
  }
2103
1750
  export interface McpServerElicitationResponse {
1751
+ _meta?: JsonValue;
2104
1752
  action?: string;
2105
1753
  content?: Record<string, JsonValue> | null;
2106
1754
  [key: string]: unknown;
@@ -2245,6 +1893,10 @@ export interface McpToolCallPayload {
2245
1893
  toolName: string;
2246
1894
  [key: string]: unknown;
2247
1895
  }
1896
+ export interface McpToolConfig {
1897
+ approvalMode?: string | null;
1898
+ [key: string]: unknown;
1899
+ }
2248
1900
  export interface McpUpsertParams {
2249
1901
  scope: string;
2250
1902
  server?: McpServerConfig;
@@ -2330,67 +1982,6 @@ export interface ModelSpeedCapability {
2330
1982
  supportedModes?: string[];
2331
1983
  [key: string]: unknown;
2332
1984
  }
2333
- export interface NodeReplBrowserSessionParams {
2334
- evaluationId?: string;
2335
- isSubagent?: boolean;
2336
- protocolVersion?: number;
2337
- sessionId?: string;
2338
- threadId?: string;
2339
- turnId?: string | null;
2340
- [key: string]: unknown;
2341
- }
2342
- export interface NodeReplCancelParams {
2343
- evaluationId?: string;
2344
- threadId?: string;
2345
- [key: string]: unknown;
2346
- }
2347
- export interface NodeReplCapability {
2348
- backend: string;
2349
- [key: string]: unknown;
2350
- }
2351
- export interface NodeReplEvaluateParams {
2352
- browserSession?: NodeReplBrowserSessionParams;
2353
- code?: string;
2354
- evaluationId?: string;
2355
- threadId?: string;
2356
- timeoutMs?: number;
2357
- turnId?: string | null;
2358
- [key: string]: unknown;
2359
- }
2360
- export interface NodeReplEvaluateResult {
2361
- error?: string | null;
2362
- images?: NodeReplImageResult[];
2363
- logs?: string[];
2364
- resultText?: string | null;
2365
- surface?: string | null;
2366
- text?: string | null;
2367
- [key: string]: unknown;
2368
- }
2369
- export interface NodeReplImageResult {
2370
- dataBase64?: string;
2371
- mediaType?: string;
2372
- [key: string]: unknown;
2373
- }
2374
- export interface NodeReplRequestApprovalParams {
2375
- approvalType?: string;
2376
- evaluationId?: string;
2377
- operation?: string;
2378
- target?: string;
2379
- targetLabel?: string | null;
2380
- threadId?: string;
2381
- [key: string]: unknown;
2382
- }
2383
- export interface NodeReplRequestApprovalResult {
2384
- approved: boolean;
2385
- [key: string]: unknown;
2386
- }
2387
- export interface NodeReplTurnEndedParams {
2388
- disposeSession?: boolean;
2389
- isSubagent?: boolean;
2390
- threadId: string | null;
2391
- turnId?: string | null;
2392
- [key: string]: unknown;
2393
- }
2394
1985
  export interface PerforceConnection {
2395
1986
  autoOffline?: boolean;
2396
1987
  charset?: string;
@@ -2419,23 +2010,6 @@ export interface PlanUpdatedNotification {
2419
2010
  todos?: PlanTodo[];
2420
2011
  [key: string]: unknown;
2421
2012
  }
2422
- export interface PluginAppInfo {
2423
- appId?: string;
2424
- category?: string | null;
2425
- description?: string;
2426
- developerName?: string;
2427
- displayName?: string;
2428
- icon?: string | null;
2429
- nativeApplication?: PluginAppNativeApplication | null;
2430
- releasePage?: string | null;
2431
- [key: string]: unknown;
2432
- }
2433
- export interface PluginAppNativeApplication {
2434
- displayName?: string;
2435
- installUrl?: string | null;
2436
- protocol?: string;
2437
- [key: string]: unknown;
2438
- }
2439
2013
  export interface PluginChannelCapabilitySummary {
2440
2014
  capabilitySetMayVaryByEnvironment: boolean;
2441
2015
  hasChannelTools: boolean;
@@ -2547,7 +2121,6 @@ export interface PluginHookInfo {
2547
2121
  [key: string]: unknown;
2548
2122
  }
2549
2123
  export interface PluginInfo {
2550
- apps?: PluginAppInfo[];
2551
2124
  channel?: PluginChannelInfo | null;
2552
2125
  dependencies?: PluginDependencyInfo[];
2553
2126
  description?: string | null;
@@ -3091,8 +2664,6 @@ export interface SenderContext {
3091
2664
  }
3092
2665
  export interface ServerCapabilities {
3093
2666
  agentProfileManagement?: boolean;
3094
- appBindingVersion?: number;
3095
- appThreadInputEnqueue?: boolean;
3096
2667
  approvalFlow?: boolean;
3097
2668
  automations?: boolean;
3098
2669
  backgroundTerminals?: boolean;
@@ -3688,71 +3259,6 @@ export interface TerminalWriteResult {
3688
3259
  terminal?: BackgroundTerminalSnapshot;
3689
3260
  [key: string]: unknown;
3690
3261
  }
3691
- export interface ThreadAppBindingConfirmCapabilitiesParams {
3692
- bindingId?: string;
3693
- candidateRevision?: number;
3694
- decision?: string;
3695
- threadId?: string;
3696
- [key: string]: unknown;
3697
- }
3698
- export interface ThreadAppBindingEnableParams {
3699
- appId?: string;
3700
- threadId?: string;
3701
- [key: string]: unknown;
3702
- }
3703
- export interface ThreadAppBindingEnableResult {
3704
- bindingId?: string;
3705
- bindingRequestId?: string;
3706
- expiresAt?: string;
3707
- handoff?: AppHandoff | null;
3708
- state?: string;
3709
- [key: string]: unknown;
3710
- }
3711
- export interface ThreadAppBindingRevokeParams {
3712
- bindingId?: string;
3713
- reason?: string | null;
3714
- threadId?: string;
3715
- [key: string]: unknown;
3716
- }
3717
- export interface ThreadAppBindingSummary {
3718
- appId?: string;
3719
- approvedCapabilityRevision?: number;
3720
- approvedTools?: AppBindingToolCapability[];
3721
- authorityRevision?: number;
3722
- bindingId?: string;
3723
- bindingRequestId?: string | null;
3724
- candidateCapabilityRevision?: number | null;
3725
- channelTarget?: ChannelTarget | null;
3726
- displayName?: string | null;
3727
- failureReason?: string | null;
3728
- icon?: string | null;
3729
- managed?: boolean;
3730
- pendingChanges?: AppBindingCapabilityChange[];
3731
- requiresExternalConnection?: boolean;
3732
- state?: string;
3733
- threadId?: string;
3734
- [key: string]: unknown;
3735
- }
3736
- export interface ThreadAppBindingsChangedNotification {
3737
- appId?: string | null;
3738
- authorityRevision?: number | null;
3739
- bindingId?: string | null;
3740
- changeKind?: string | null;
3741
- failureReason?: string | null;
3742
- previousState?: string | null;
3743
- state?: string;
3744
- threadId?: string;
3745
- [key: string]: unknown;
3746
- }
3747
- export interface ThreadAppBindingsListParams {
3748
- includeRevoked?: boolean | null;
3749
- threadId?: string;
3750
- [key: string]: unknown;
3751
- }
3752
- export interface ThreadAppBindingsListResult {
3753
- bindings?: AppBinding[];
3754
- [key: string]: unknown;
3755
- }
3756
3262
  export interface ThreadArchiveParams {
3757
3263
  threadId?: string;
3758
3264
  [key: string]: unknown;
@@ -3761,19 +3267,6 @@ export interface ThreadArchivedNotification {
3761
3267
  threadId: string;
3762
3268
  [key: string]: unknown;
3763
3269
  }
3764
- export interface ThreadChannelBindingRequestCreateParams {
3765
- channelName?: string;
3766
- threadId?: string;
3767
- [key: string]: unknown;
3768
- }
3769
- export interface ThreadChannelBindingRequestCreateResult {
3770
- bindingId?: string;
3771
- bindingRequestId?: string;
3772
- channelName?: string;
3773
- code?: string;
3774
- expiresAt?: string;
3775
- [key: string]: unknown;
3776
- }
3777
3270
  export interface ThreadCompactStartParams {
3778
3271
  threadId?: string;
3779
3272
  [key: string]: unknown;
@@ -3855,6 +3348,7 @@ export interface ThreadFirstUnreadTurn {
3855
3348
  }
3856
3349
  export interface ThreadForkParams {
3857
3350
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
3351
+ additionalMcpServers?: ThreadMcpServerConfig[] | null;
3858
3352
  config?: ThreadConfiguration | null;
3859
3353
  cwd?: string | null;
3860
3354
  displayName?: string | null;
@@ -4134,6 +3628,7 @@ export interface ThreadResumeInitialTurnsPageParams {
4134
3628
  }
4135
3629
  export interface ThreadResumeParams {
4136
3630
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
3631
+ additionalMcpServers?: ThreadMcpServerConfig[] | null;
4137
3632
  chat?: ChannelChat | null;
4138
3633
  cwd?: string | null;
4139
3634
  dynamicTools?: RuntimeDynamicToolDeclaration[] | null;
@@ -4253,6 +3748,7 @@ export interface ThreadSpawnEdge {
4253
3748
  }
4254
3749
  export interface ThreadStartParams {
4255
3750
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
3751
+ additionalMcpServers?: ThreadMcpServerConfig[] | null;
4256
3752
  chat?: ChannelChat | null;
4257
3753
  config?: ThreadConfiguration | null;
4258
3754
  cwd?: string | null;
@@ -5114,6 +4610,7 @@ export interface WorktreeCancelCreateParams {
5114
4610
  }
5115
4611
  export interface WorktreeCreateAndForkParams {
5116
4612
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
4613
+ additionalMcpServers?: ThreadMcpServerConfig[] | null;
5117
4614
  baseRef?: string | null;
5118
4615
  branchName?: string | null;
5119
4616
  config?: ThreadConfiguration | null;
@@ -5136,6 +4633,7 @@ export interface WorktreeCreateAndForkResult {
5136
4633
  }
5137
4634
  export interface WorktreeCreateAndStartParams {
5138
4635
  additionalContext?: Record<string, RuntimeAdditionalContextEntry> | null;
4636
+ additionalMcpServers?: ThreadMcpServerConfig[] | null;
5139
4637
  baseRef?: string | null;
5140
4638
  branchName?: string | null;
5141
4639
  config?: ThreadConfiguration | null;