@dotcraft/sdk 0.13.2 → 0.14.1

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.
@@ -886,6 +886,17 @@ export interface ChannelChat {
886
886
  membership: string;
887
887
  [key: string]: unknown;
888
888
  }
889
+ export interface ChannelConfigOptionAvailabilityParams {
890
+ key: string;
891
+ name: string;
892
+ [key: string]: unknown;
893
+ }
894
+ export interface ChannelConfigOptionAvailabilityResult {
895
+ available: string[] | null;
896
+ key: string;
897
+ name: string;
898
+ [key: string]: unknown;
899
+ }
889
900
  export interface ChannelDeliveryCapabilities {
890
901
  history?: ChannelHistoryCapability | null;
891
902
  media?: ChannelMediaCapabilitySet | null;
@@ -915,6 +926,16 @@ export interface ChannelListResult {
915
926
  channels?: ChannelInfo[];
916
927
  [key: string]: unknown;
917
928
  }
929
+ export interface ChannelLogsParams {
930
+ name: string;
931
+ tail?: number | null;
932
+ [key: string]: unknown;
933
+ }
934
+ export interface ChannelLogsResult {
935
+ lines: string[];
936
+ name: string;
937
+ [key: string]: unknown;
938
+ }
918
939
  export interface ChannelMediaCapabilitySet {
919
940
  audio?: ChannelMediaConstraints | null;
920
941
  file?: ChannelMediaConstraints | null;
@@ -949,11 +970,33 @@ export interface ChannelOutboundMessage {
949
970
  text?: string | null;
950
971
  [key: string]: unknown;
951
972
  }
973
+ export interface ChannelSetEnabledParams {
974
+ enabled: boolean;
975
+ name: string;
976
+ pluginId: string;
977
+ select?: boolean;
978
+ [key: string]: unknown;
979
+ }
980
+ export interface ChannelSetupArtifact {
981
+ data: string;
982
+ mimeType: string;
983
+ revision: string;
984
+ [key: string]: unknown;
985
+ }
986
+ export interface ChannelSetupReadParams {
987
+ pluginId: string;
988
+ [key: string]: unknown;
989
+ }
990
+ export interface ChannelSetupReadResult {
991
+ artifact: ChannelSetupArtifact | null;
992
+ [key: string]: unknown;
993
+ }
952
994
  export interface ChannelStatusInfo {
953
995
  category?: string;
954
996
  enabled?: boolean;
955
997
  failureCode?: string;
956
998
  name?: string;
999
+ pluginId?: string | null;
957
1000
  running?: boolean;
958
1001
  runtimeState?: string;
959
1002
  [key: string]: unknown;
@@ -1197,6 +1240,11 @@ export interface ConfigWriteResult {
1197
1240
  version: string;
1198
1241
  [key: string]: unknown;
1199
1242
  }
1243
+ export interface ContextHandoffEndpoint {
1244
+ model: string;
1245
+ providerId: string;
1246
+ [key: string]: unknown;
1247
+ }
1200
1248
  export interface ContextImage {
1201
1249
  fileName: string;
1202
1250
  mimeType: string;
@@ -1460,66 +1508,6 @@ export interface ExtChannelToolContentItem {
1460
1508
  url?: string | null;
1461
1509
  [key: string]: unknown;
1462
1510
  }
1463
- export interface ExternalChannelConfig {
1464
- args?: string[] | null;
1465
- builtinModule?: string | null;
1466
- command?: string | null;
1467
- enabled?: boolean;
1468
- env?: Record<string, string> | null;
1469
- name?: string;
1470
- transport?: string;
1471
- workingDirectory?: string | null;
1472
- [key: string]: unknown;
1473
- }
1474
- export interface ExternalChannelConfigOptionAvailabilityParams {
1475
- key?: string;
1476
- name?: string;
1477
- [key: string]: unknown;
1478
- }
1479
- export interface ExternalChannelConfigOptionAvailabilityResult {
1480
- available: string[] | null;
1481
- key: string;
1482
- name: string;
1483
- [key: string]: unknown;
1484
- }
1485
- export interface ExternalChannelGetParams {
1486
- name?: string;
1487
- [key: string]: unknown;
1488
- }
1489
- export interface ExternalChannelGetResult {
1490
- channel?: ExternalChannelConfig;
1491
- [key: string]: unknown;
1492
- }
1493
- export interface ExternalChannelListResult {
1494
- channels?: ExternalChannelConfig[];
1495
- [key: string]: unknown;
1496
- }
1497
- export interface ExternalChannelLogsParams {
1498
- name?: string;
1499
- tail?: number | null;
1500
- [key: string]: unknown;
1501
- }
1502
- export interface ExternalChannelLogsResult {
1503
- lines?: string[];
1504
- name?: string;
1505
- [key: string]: unknown;
1506
- }
1507
- export interface ExternalChannelRemoveParams {
1508
- name?: string;
1509
- [key: string]: unknown;
1510
- }
1511
- export interface ExternalChannelRemoveResult {
1512
- removed?: boolean;
1513
- [key: string]: unknown;
1514
- }
1515
- export interface ExternalChannelUpsertParams {
1516
- channel?: ExternalChannelConfig;
1517
- [key: string]: unknown;
1518
- }
1519
- export interface ExternalChannelUpsertResult {
1520
- channel?: ExternalChannelConfig;
1521
- [key: string]: unknown;
1522
- }
1523
1511
  export interface FsChangedNotification {
1524
1512
  changedPaths: string[];
1525
1513
  watchId: string;
@@ -2439,6 +2427,31 @@ export interface PluginAppNativeApplication {
2439
2427
  protocol?: string;
2440
2428
  [key: string]: unknown;
2441
2429
  }
2430
+ export interface PluginChannelCapabilitySummary {
2431
+ capabilitySetMayVaryByEnvironment: boolean;
2432
+ hasChannelTools: boolean;
2433
+ requiresInteractiveSetup: boolean;
2434
+ [key: string]: unknown;
2435
+ }
2436
+ export interface PluginChannelInfo {
2437
+ capabilitySummary: PluginChannelCapabilitySummary;
2438
+ channelContractVersion: string;
2439
+ channelName: string;
2440
+ compatibilityError?: string | null;
2441
+ configDescriptors: JsonValue[];
2442
+ configGroups: JsonValue[];
2443
+ displayName: string;
2444
+ interface?: JsonValue;
2445
+ localizedDisplayName?: Record<string, string> | null;
2446
+ minHostVersion: string;
2447
+ moduleId: string;
2448
+ packageName: string;
2449
+ requiresInteractiveSetup: boolean;
2450
+ supportedChannelProtocolVersions: string[];
2451
+ supportedTransports: string[];
2452
+ variant: string;
2453
+ [key: string]: unknown;
2454
+ }
2442
2455
  export interface PluginConfigField {
2443
2456
  defaultValue?: JsonValue;
2444
2457
  description?: string;
@@ -2471,6 +2484,7 @@ export interface PluginConfigSchema {
2471
2484
  [key: string]: unknown;
2472
2485
  }
2473
2486
  export interface PluginConfigSnapshot {
2487
+ configuredSecrets?: string[] | null;
2474
2488
  personal: JsonValue;
2475
2489
  schema: PluginConfigSchema;
2476
2490
  value: JsonValue;
@@ -2525,6 +2539,7 @@ export interface PluginHookInfo {
2525
2539
  }
2526
2540
  export interface PluginInfo {
2527
2541
  apps?: PluginAppInfo[];
2542
+ channel?: PluginChannelInfo | null;
2528
2543
  dependencies?: PluginDependencyInfo[];
2529
2544
  description?: string | null;
2530
2545
  desktop?: PluginDesktopInfo | null;
@@ -2826,8 +2841,10 @@ export interface ProviderAuthenticationMethodInfo {
2826
2841
  export interface ProviderBackendInfo {
2827
2842
  authenticationMethods: ProviderAuthenticationMethodInfo[];
2828
2843
  defaultProtocol: string;
2844
+ description?: string | null;
2829
2845
  displayName: string;
2830
2846
  id: string;
2847
+ pluginId?: string | null;
2831
2848
  protocols: string[];
2832
2849
  [key: string]: unknown;
2833
2850
  }
@@ -2863,6 +2880,7 @@ export interface ProviderInfo {
2863
2880
  managedBy?: string;
2864
2881
  maxOutputTokens?: number | null;
2865
2882
  networkTimeoutSeconds?: number | null;
2883
+ pluginId?: string;
2866
2884
  protocol?: string;
2867
2885
  streamIdleTimeoutMs?: number | null;
2868
2886
  streamMaxRetries?: number | null;
@@ -3069,6 +3087,7 @@ export interface ServerCapabilities {
3069
3087
  approvalFlow?: boolean;
3070
3088
  automations?: boolean;
3071
3089
  backgroundTerminals?: boolean;
3090
+ channelManagement?: boolean;
3072
3091
  channelStatus?: boolean;
3073
3092
  commandExec?: boolean;
3074
3093
  commandManagement?: boolean;
@@ -3077,7 +3096,6 @@ export interface ServerCapabilities {
3077
3096
  dreams?: boolean;
3078
3097
  dynamicToolRebind?: boolean;
3079
3098
  extensions?: ServerCapabilityExtensions | null;
3080
- externalChannelManagement?: boolean;
3081
3099
  fileSystem?: boolean;
3082
3100
  generativeUi?: boolean;
3083
3101
  gitWorktrees?: boolean;
@@ -3102,7 +3120,6 @@ export interface ServerCapabilities {
3102
3120
  sideChat?: boolean;
3103
3121
  skillsManagement?: boolean;
3104
3122
  sourceControlManagement?: boolean;
3105
- subAgentManagement?: boolean;
3106
3123
  subAgentSessions?: boolean;
3107
3124
  threadFork?: boolean;
3108
3125
  threadGoals?: boolean;
@@ -3503,12 +3520,7 @@ export interface SubAgentControlResult {
3503
3520
  agentPath?: string | null;
3504
3521
  agentRole?: string | null;
3505
3522
  message?: string | null;
3506
- profileName?: string | null;
3507
- runtimeType?: string | null;
3508
3523
  status?: string;
3509
- supportsClose?: boolean;
3510
- supportsFollowupTask?: boolean;
3511
- supportsSendMessage?: boolean;
3512
3524
  taskName?: string | null;
3513
3525
  [key: string]: unknown;
3514
3526
  }
@@ -3517,97 +3529,6 @@ export interface SubAgentGraphChangedNotification {
3517
3529
  parentThreadId?: string;
3518
3530
  [key: string]: unknown;
3519
3531
  }
3520
- export interface SubAgentModelPreference {
3521
- model?: string;
3522
- providerId?: string | null;
3523
- reasoning?: ReasoningConfig;
3524
- speed?: string;
3525
- [key: string]: unknown;
3526
- }
3527
- export interface SubAgentProfileDiagnostic {
3528
- binaryResolved?: boolean;
3529
- enabled?: boolean;
3530
- hiddenFromPrompt?: boolean;
3531
- hiddenReason?: string | null;
3532
- warnings?: string[];
3533
- [key: string]: unknown;
3534
- }
3535
- export interface SubAgentProfileEntry {
3536
- builtInDefaults?: SubAgentProfileWrite | null;
3537
- definition?: SubAgentProfileWrite;
3538
- diagnostic?: SubAgentProfileDiagnostic;
3539
- enabled?: boolean;
3540
- hasWorkspaceOverride?: boolean;
3541
- isBuiltIn?: boolean;
3542
- isDefault?: boolean;
3543
- isTemplate?: boolean;
3544
- name?: string;
3545
- [key: string]: unknown;
3546
- }
3547
- export interface SubAgentProfileListResult {
3548
- defaultName?: string;
3549
- profiles?: SubAgentProfileEntry[];
3550
- settings?: SubAgentSettings;
3551
- [key: string]: unknown;
3552
- }
3553
- export interface SubAgentProfileRemoveParams {
3554
- name?: string;
3555
- [key: string]: unknown;
3556
- }
3557
- export interface SubAgentProfileRemoveResult {
3558
- removed?: boolean;
3559
- [key: string]: unknown;
3560
- }
3561
- export interface SubAgentProfileSetEnabledParams {
3562
- enabled?: boolean;
3563
- name?: string;
3564
- [key: string]: unknown;
3565
- }
3566
- export interface SubAgentProfileSetEnabledResult {
3567
- profile?: SubAgentProfileEntry;
3568
- [key: string]: unknown;
3569
- }
3570
- export interface SubAgentProfileUpsertParams {
3571
- definition?: SubAgentProfileWrite;
3572
- name?: string;
3573
- [key: string]: unknown;
3574
- }
3575
- export interface SubAgentProfileUpsertResult {
3576
- profile?: SubAgentProfileEntry;
3577
- [key: string]: unknown;
3578
- }
3579
- export interface SubAgentProfileWrite {
3580
- args?: string[] | null;
3581
- bin?: string | null;
3582
- deleteOutputFileAfterRead?: boolean | null;
3583
- env?: Record<string, string> | null;
3584
- envPassthrough?: string[] | null;
3585
- inputArgTemplate?: string | null;
3586
- inputEnvKey?: string | null;
3587
- inputFormat?: string | null;
3588
- inputMode?: string | null;
3589
- maxOutputBytes?: number | null;
3590
- outputFileArgTemplate?: string | null;
3591
- outputFormat?: string | null;
3592
- outputInputTokensJsonPath?: string | null;
3593
- outputJsonPath?: string | null;
3594
- outputOutputTokensJsonPath?: string | null;
3595
- outputTotalTokensJsonPath?: string | null;
3596
- permissionModeMapping?: Record<string, string> | null;
3597
- readOutputFile?: boolean | null;
3598
- resumeArgTemplate?: string | null;
3599
- resumeSessionIdJsonPath?: string | null;
3600
- resumeSessionIdRegex?: string | null;
3601
- runtime?: string;
3602
- sanitizationRules?: JsonValue;
3603
- supportsModelSelection?: boolean | null;
3604
- supportsResume?: boolean | null;
3605
- supportsStreaming?: boolean | null;
3606
- timeout?: number | null;
3607
- trustLevel?: string | null;
3608
- workingDirectoryMode?: string;
3609
- [key: string]: unknown;
3610
- }
3611
3532
  export interface SubAgentProgressEntry {
3612
3533
  cacheWriteInputTokens?: number;
3613
3534
  cachedInputTokens?: number;
@@ -3627,20 +3548,6 @@ export interface SubAgentProgressNotification {
3627
3548
  turnId?: string | null;
3628
3549
  [key: string]: unknown;
3629
3550
  }
3630
- export interface SubAgentSettings {
3631
- externalCliSessionResumeEnabled?: boolean;
3632
- providerPreferences?: Record<string, SubAgentModelPreference> | null;
3633
- [key: string]: unknown;
3634
- }
3635
- export interface SubAgentSettingsUpdateParams {
3636
- externalCliSessionResumeEnabled?: boolean | null;
3637
- providerPreferences?: Record<string, SubAgentModelPreference> | null;
3638
- [key: string]: unknown;
3639
- }
3640
- export interface SubAgentSettingsUpdateResult {
3641
- settings?: SubAgentSettings;
3642
- [key: string]: unknown;
3643
- }
3644
3551
  export interface SubAgentTargetMessageParams {
3645
3552
  deliveryMode?: string;
3646
3553
  message?: string;
@@ -3660,15 +3567,8 @@ export interface SubAgentThreadSource {
3660
3567
  depth: number;
3661
3568
  parentThreadId: string;
3662
3569
  parentTurnId?: string | null;
3663
- profileName?: string | null;
3664
3570
  rootThreadId: string;
3665
- runtimeType?: string | null;
3666
3571
  spawnCallId?: string | null;
3667
- supportsClose: boolean;
3668
- supportsFollowupTask: boolean;
3669
- supportsResume: boolean;
3670
- supportsSendInput: boolean;
3671
- supportsSendMessage: boolean;
3672
3572
  taskName?: string | null;
3673
3573
  [key: string]: unknown;
3674
3574
  }
@@ -3704,6 +3604,8 @@ export interface SystemJobTokenUsage {
3704
3604
  export interface SystemNoticePayload {
3705
3605
  channelName?: string | null;
3706
3606
  clearedToolResults: number;
3607
+ fallbackText?: string | null;
3608
+ from?: ContextHandoffEndpoint | null;
3707
3609
  hostId?: string | null;
3708
3610
  hostName?: string | null;
3709
3611
  initiator?: string | null;
@@ -3713,6 +3615,7 @@ export interface SystemNoticePayload {
3713
3615
  reason?: string | null;
3714
3616
  sourceThreadId?: string | null;
3715
3617
  targetName?: string | null;
3618
+ to?: ContextHandoffEndpoint | null;
3716
3619
  tokensAfter: number;
3717
3620
  tokensBefore: number;
3718
3621
  trigger: string;
@@ -4343,14 +4246,7 @@ export interface ThreadSpawnEdge {
4343
4246
  depth?: number;
4344
4247
  parentThreadId?: string;
4345
4248
  parentTurnId?: string | null;
4346
- profileName?: string | null;
4347
- runtimeType?: string | null;
4348
4249
  status?: string;
4349
- supportsClose?: boolean;
4350
- supportsFollowupTask?: boolean;
4351
- supportsResume?: boolean;
4352
- supportsSendInput?: boolean;
4353
- supportsSendMessage?: boolean;
4354
4250
  taskName?: string | null;
4355
4251
  updatedAt?: string;
4356
4252
  [key: string]: unknown;
@@ -4753,6 +4649,7 @@ export interface TurnQueueUpdateResult {
4753
4649
  }
4754
4650
  export interface TurnStartOrEnqueueParams {
4755
4651
  input: InputPart[];
4652
+ kickoff?: boolean | null;
4756
4653
  model?: string | null;
4757
4654
  reasoning?: ReasoningConfig | null;
4758
4655
  threadId: string;