@dotcraft/sdk 0.6.4 → 0.6.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.
Files changed (31) hide show
  1. package/dist/dotcraft.test.js +1 -3
  2. package/dist/dotcraft.test.js.map +1 -1
  3. package/dist/generated/appserver/client-requests.generated.d.ts +27 -47
  4. package/dist/generated/appserver/client-requests.generated.d.ts.map +1 -1
  5. package/dist/generated/appserver/method-groups.generated.d.ts +3 -3
  6. package/dist/generated/appserver/method-groups.generated.d.ts.map +1 -1
  7. package/dist/generated/appserver/method-groups.generated.js +13 -17
  8. package/dist/generated/appserver/method-groups.generated.js.map +1 -1
  9. package/dist/generated/appserver/models.generated.d.ts +111 -196
  10. package/dist/generated/appserver/models.generated.d.ts.map +1 -1
  11. package/dist/generated/appserver/protocol-info.generated.d.ts +2 -2
  12. package/dist/generated/appserver/protocol-info.generated.js +2 -2
  13. package/dist/generated/appserver/server-notifications.generated.d.ts +8 -4
  14. package/dist/generated/appserver/server-notifications.generated.d.ts.map +1 -1
  15. package/dist/hubClient.d.ts +0 -1
  16. package/dist/hubClient.d.ts.map +1 -1
  17. package/dist/hubClient.js +0 -1
  18. package/dist/hubClient.js.map +1 -1
  19. package/dist/hubClient.test.js +1 -2
  20. package/dist/hubClient.test.js.map +1 -1
  21. package/dist/models.d.ts +0 -1
  22. package/dist/models.d.ts.map +1 -1
  23. package/dist/models.js +0 -1
  24. package/dist/models.js.map +1 -1
  25. package/dist/publicApi.test.js +0 -5
  26. package/dist/publicApi.test.js.map +1 -1
  27. package/dist/wire.d.ts +1 -1
  28. package/dist/wire.d.ts.map +1 -1
  29. package/dist/wire.js +1 -1
  30. package/dist/wire.js.map +1 -1
  31. package/package.json +1 -1
@@ -612,171 +612,137 @@ export interface AuthOpenAiUsageWindow {
612
612
  windowSeconds?: number;
613
613
  [key: string]: unknown;
614
614
  }
615
- export interface AutomationSchedule {
616
- atMs?: number | null;
617
- dailyHour?: number | null;
618
- dailyMinute?: number | null;
619
- everyMs?: number | null;
620
- expr?: string | null;
621
- initialDelayMs?: number | null;
622
- kind?: string;
623
- tz?: string | null;
615
+ export interface AutomationCreateParams {
616
+ automation: AutomationInput;
624
617
  [key: string]: unknown;
625
618
  }
626
- export interface AutomationTask {
619
+ export interface AutomationDefinition {
627
620
  agentProfileId?: string | null;
628
- agentSummary?: string | null;
629
- approvalPolicy?: string | null;
630
- createdAt?: string | null;
631
- description?: string | null;
632
- id?: string;
621
+ approvalPolicy: string;
622
+ createdAt: string;
623
+ executionMode: string;
624
+ id: string;
625
+ name: string;
633
626
  nextRunAt?: string | null;
634
- schedule?: AutomationSchedule | null;
635
- status?: string;
636
- threadBinding?: AutomationThreadBinding | null;
637
- threadId?: string | null;
638
- title?: string;
639
- updatedAt?: string | null;
640
- workspaceMode?: string;
641
- worktree?: AutomationTaskWorktree | null;
642
- [key: string]: unknown;
643
- }
644
- export interface AutomationTaskCreateParams {
645
- agentProfileId?: string | null;
646
- approvalPolicy?: string | null;
647
- description?: string | null;
648
- schedule?: AutomationSchedule | null;
649
- templateId?: string | null;
650
- threadBinding?: AutomationThreadBinding | null;
651
- title?: string;
652
- workflowTemplate?: string | null;
653
- workspaceMode?: string | null;
654
- workspacePath?: string;
655
- [key: string]: unknown;
656
- }
657
- export interface AutomationTaskCreateResult {
658
- taskDirectory?: string;
659
- taskId?: string;
660
- [key: string]: unknown;
661
- }
662
- export interface AutomationTaskDeleteParams {
663
- taskId?: string;
664
- workspacePath?: string;
665
- [key: string]: unknown;
666
- }
667
- export interface AutomationTaskDeleteResult {
668
- ok?: boolean;
669
- [key: string]: unknown;
670
- }
671
- export interface AutomationTaskDiscardWorktreeParams {
672
- taskId?: string;
673
- workspacePath?: string;
674
- [key: string]: unknown;
675
- }
676
- export interface AutomationTaskDiscardWorktreeResult {
677
- task?: AutomationTask;
627
+ notificationPolicy: string;
628
+ origin?: AutomationOrigin | null;
629
+ prompt: string;
630
+ schedule: AutomationSchedule;
631
+ status: string;
632
+ targetThreadId?: string | null;
633
+ updatedAt: string;
634
+ version: number;
635
+ workspaceMode: string;
678
636
  [key: string]: unknown;
679
637
  }
680
- export interface AutomationTaskListParams {
681
- workspacePath?: string | null;
638
+ export interface AutomationDeleteResult {
639
+ ok: boolean;
682
640
  [key: string]: unknown;
683
641
  }
684
- export interface AutomationTaskListResult {
685
- tasks?: AutomationTask[];
642
+ export interface AutomationIdParams {
643
+ automationId: string;
686
644
  [key: string]: unknown;
687
645
  }
688
- export interface AutomationTaskReadParams {
689
- taskId?: string;
690
- workspacePath?: string;
646
+ export interface AutomationInput {
647
+ agentProfileId?: string | null;
648
+ approvalPolicy: string;
649
+ executionMode: string;
650
+ name: string;
651
+ notificationPolicy?: string | null;
652
+ prompt: string;
653
+ schedule: AutomationSchedule;
654
+ status: string;
655
+ targetThreadId?: string | null;
656
+ workspaceMode?: string | null;
691
657
  [key: string]: unknown;
692
658
  }
693
- export interface AutomationTaskRunParams {
694
- taskId?: string;
695
- workspacePath?: string;
659
+ export interface AutomationListResult {
660
+ automations: AutomationDefinition[];
696
661
  [key: string]: unknown;
697
662
  }
698
- export interface AutomationTaskRunResult {
699
- task?: AutomationTask;
663
+ export interface AutomationOrigin {
664
+ channel: string;
665
+ deliveryTarget?: string | null;
666
+ groupId?: string | null;
667
+ userId: string;
700
668
  [key: string]: unknown;
701
669
  }
702
- export interface AutomationTaskUpdateBindingParams {
703
- taskId?: string;
704
- threadBinding?: AutomationThreadBinding | null;
705
- workspacePath?: string;
670
+ export interface AutomationPreset {
671
+ id: string;
672
+ name: string;
673
+ prompt: string;
674
+ schedule?: AutomationSchedule | null;
706
675
  [key: string]: unknown;
707
676
  }
708
- export interface AutomationTaskUpdateBindingResult {
709
- task?: AutomationTask;
677
+ export interface AutomationPresetsParams {
678
+ locale?: string | null;
710
679
  [key: string]: unknown;
711
680
  }
712
- export interface AutomationTaskUpdatedNotification {
713
- task?: AutomationTask;
714
- workspacePath?: string;
681
+ export interface AutomationPresetsResult {
682
+ presets: AutomationPreset[];
715
683
  [key: string]: unknown;
716
684
  }
717
- export interface AutomationTaskWorktree {
718
- branchName?: string;
719
- path?: string;
685
+ export interface AutomationReadResult {
686
+ automation: AutomationDefinition;
720
687
  [key: string]: unknown;
721
688
  }
722
- export interface AutomationTemplate {
723
- category?: string | null;
724
- createdAt?: string | null;
725
- defaultAgentProfileId?: string | null;
726
- defaultApprovalPolicy?: string | null;
727
- defaultDescription?: string | null;
728
- defaultSchedule?: AutomationSchedule | null;
729
- defaultTitle?: string | null;
730
- defaultWorkspaceMode?: string | null;
731
- description?: string | null;
732
- icon?: string | null;
733
- id?: string;
734
- isUser?: boolean;
735
- needsThreadBinding?: boolean | null;
736
- title?: string;
737
- updatedAt?: string | null;
738
- workflowMarkdown?: string;
689
+ export interface AutomationRun {
690
+ automationId: string;
691
+ completedAt?: string | null;
692
+ createdAt: string;
693
+ definitionVersion: number;
694
+ deliveryError?: string | null;
695
+ deliveryStatus: string;
696
+ error?: string | null;
697
+ id: string;
698
+ readAt?: string | null;
699
+ scheduledAt?: string | null;
700
+ startedAt?: string | null;
701
+ status: string;
702
+ summary?: string | null;
703
+ threadId?: string | null;
704
+ turnId?: string | null;
705
+ worktree?: ThreadWorktreeInfo | null;
739
706
  [key: string]: unknown;
740
707
  }
741
- export interface AutomationTemplateDeleteParams {
742
- id?: string;
708
+ export interface AutomationRunReadParams {
709
+ automationId: string;
710
+ read: boolean;
711
+ runIds: string[];
743
712
  [key: string]: unknown;
744
713
  }
745
- export interface AutomationTemplateDeleteResult {
746
- ok?: boolean;
714
+ export interface AutomationRunResult {
715
+ run: AutomationRun;
747
716
  [key: string]: unknown;
748
717
  }
749
- export interface AutomationTemplateListParams {
750
- locale?: string | null;
718
+ export interface AutomationRunUpdatedNotification {
719
+ run: AutomationRun;
751
720
  [key: string]: unknown;
752
721
  }
753
- export interface AutomationTemplateListResult {
754
- templates?: AutomationTemplate[];
722
+ export interface AutomationRunsResult {
723
+ runs: AutomationRun[];
755
724
  [key: string]: unknown;
756
725
  }
757
- export interface AutomationTemplateSaveParams {
758
- category?: string | null;
759
- defaultAgentProfileId?: string | null;
760
- defaultApprovalPolicy?: string | null;
761
- defaultDescription?: string | null;
762
- defaultSchedule?: AutomationSchedule | null;
763
- defaultTitle?: string | null;
764
- defaultWorkspaceMode?: string | null;
765
- description?: string | null;
766
- icon?: string | null;
767
- id?: string | null;
768
- needsThreadBinding?: boolean;
769
- title?: string;
770
- workflowMarkdown?: string;
726
+ export interface AutomationSchedule {
727
+ at?: string | null;
728
+ days?: number[] | null;
729
+ everyMs?: number | null;
730
+ hour?: number | null;
731
+ kind: string;
732
+ minute?: number | null;
733
+ timeZone?: string | null;
771
734
  [key: string]: unknown;
772
735
  }
773
- export interface AutomationTemplateSaveResult {
774
- template?: AutomationTemplate;
736
+ export interface AutomationUpdateParams {
737
+ automation: AutomationInput;
738
+ automationId: string;
739
+ expectedVersion: number;
775
740
  [key: string]: unknown;
776
741
  }
777
- export interface AutomationThreadBinding {
778
- mode?: string | null;
779
- threadId?: string;
742
+ export interface AutomationUpdatedNotification {
743
+ automation?: AutomationDefinition | null;
744
+ automationId: string;
745
+ removed: boolean;
780
746
  [key: string]: unknown;
781
747
  }
782
748
  export interface BackgroundTerminalSnapshot {
@@ -1019,74 +985,6 @@ export interface ContextUsageSnapshot {
1019
985
  warningThreshold?: number;
1020
986
  [key: string]: unknown;
1021
987
  }
1022
- export interface CronEnableParams {
1023
- enabled?: boolean;
1024
- jobId?: string;
1025
- [key: string]: unknown;
1026
- }
1027
- export interface CronEnableResult {
1028
- job?: CronJobWireInfo;
1029
- [key: string]: unknown;
1030
- }
1031
- export interface CronJobStateWireInfo {
1032
- lastError?: string | null;
1033
- lastResult?: string | null;
1034
- lastRunAtMs?: number | null;
1035
- lastStatus?: string | null;
1036
- lastThreadId?: string | null;
1037
- nextRunAtMs?: number | null;
1038
- [key: string]: unknown;
1039
- }
1040
- export interface CronJobWireInfo {
1041
- createdAtMs?: number;
1042
- deleteAfterRun?: boolean;
1043
- enabled?: boolean;
1044
- id?: string;
1045
- name?: string;
1046
- schedule?: CronScheduleWireInfo;
1047
- state?: CronJobStateWireInfo;
1048
- [key: string]: unknown;
1049
- }
1050
- export interface CronListParams {
1051
- includeDisabled?: boolean;
1052
- [key: string]: unknown;
1053
- }
1054
- export interface CronListResult {
1055
- jobs?: CronJobWireInfo[];
1056
- [key: string]: unknown;
1057
- }
1058
- export interface CronRemoveParams {
1059
- jobId?: string;
1060
- [key: string]: unknown;
1061
- }
1062
- export interface CronRemoveResult {
1063
- removed?: boolean;
1064
- [key: string]: unknown;
1065
- }
1066
- export interface CronRunParams {
1067
- jobId?: string;
1068
- [key: string]: unknown;
1069
- }
1070
- export interface CronRunResult {
1071
- job?: CronJobWireInfo | null;
1072
- queued?: boolean;
1073
- [key: string]: unknown;
1074
- }
1075
- export interface CronScheduleWireInfo {
1076
- atMs?: number | null;
1077
- dailyHour?: number | null;
1078
- dailyMinute?: number | null;
1079
- everyMs?: number | null;
1080
- initialDelayMs?: number | null;
1081
- kind?: string;
1082
- tz?: string | null;
1083
- [key: string]: unknown;
1084
- }
1085
- export interface CronStateChangedNotification {
1086
- job?: CronJobWireInfo;
1087
- removed?: boolean;
1088
- [key: string]: unknown;
1089
- }
1090
988
  export interface DreamsCreateParams {
1091
989
  instructions?: string | null;
1092
990
  model?: string | null;
@@ -2071,6 +1969,8 @@ export interface PluginDiagnostic {
2071
1969
  [key: string]: unknown;
2072
1970
  }
2073
1971
  export interface PluginDotnetInfo {
1972
+ description?: string;
1973
+ displayName?: string;
2074
1974
  entryAssembly?: string;
2075
1975
  entryType?: string;
2076
1976
  exportedApiAssemblies?: string[];
@@ -2434,6 +2334,7 @@ export interface RemoteToolHostListResult {
2434
2334
  [key: string]: unknown;
2435
2335
  }
2436
2336
  export interface RemoteToolHostRouteChangedNotification {
2337
+ initiator?: string;
2437
2338
  reason: string;
2438
2339
  route?: RemoteToolRouteInfo | null;
2439
2340
  threadId: string;
@@ -2510,7 +2411,6 @@ export interface ServerCapabilities {
2510
2411
  channelStatus?: boolean;
2511
2412
  commandManagement?: boolean;
2512
2413
  configOverride?: boolean;
2513
- cronManagement?: boolean;
2514
2414
  dreams?: boolean;
2515
2415
  dynamicToolRebind?: boolean;
2516
2416
  extensions?: ServerCapabilityExtensions | null;
@@ -3131,13 +3031,19 @@ export interface SystemJobTokenUsage {
3131
3031
  }
3132
3032
  export interface SystemNoticePayload {
3133
3033
  clearedToolResults: number;
3034
+ hostId?: string | null;
3035
+ hostName?: string | null;
3036
+ initiator?: string | null;
3134
3037
  kind: string;
3135
3038
  mode: string;
3136
3039
  percentLeftAfter: number;
3040
+ reason?: string | null;
3137
3041
  sourceThreadId?: string | null;
3138
3042
  tokensAfter: number;
3139
3043
  tokensBefore: number;
3140
3044
  trigger: string;
3045
+ workspaceId?: string | null;
3046
+ workspaceName?: string | null;
3141
3047
  [key: string]: unknown;
3142
3048
  }
3143
3049
  export interface TerminalCleanParams {
@@ -3816,6 +3722,15 @@ export interface ToolExecutionPayload {
3816
3722
  toolName: string;
3817
3723
  [key: string]: unknown;
3818
3724
  }
3725
+ export interface ToolExecutionProgressNotification {
3726
+ callId: string;
3727
+ itemId: string;
3728
+ progress: JsonValue;
3729
+ threadId: string;
3730
+ toolName: string;
3731
+ turnId: string;
3732
+ [key: string]: unknown;
3733
+ }
3819
3734
  export interface ToolInfo {
3820
3735
  description?: string;
3821
3736
  icon?: string;