unfazed 0.2.0 → 0.4.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.
@@ -57,6 +57,28 @@ export type CreateDeploymentInput = {
57
57
  spaMode?: boolean | null | undefined;
58
58
  workspaceID: string | number;
59
59
  };
60
+ export type CreateRunInput = {
61
+ /** "human" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */
62
+ approval?: string | null | undefined;
63
+ command?: string | null | undefined;
64
+ harness?: string | null | undefined;
65
+ includeFiles?: boolean | null | undefined;
66
+ maxSeconds?: number | null | undefined;
67
+ memoryMiB?: number | null | undefined;
68
+ metadata?: unknown;
69
+ /** "plan" asks the harness to write a plan without acting; empty does the task. */
70
+ mode?: string | null | undefined;
71
+ /** The run this one continues; usually set through followUpRun. */
72
+ parentRunID?: string | number | null | undefined;
73
+ prompt?: string | null | undefined;
74
+ /** Shell commands run in /work before the harness; the first failure fails the run. */
75
+ setup?: Array<string> | null | undefined;
76
+ /** Skills fetched into .claude/skills before the harness, as owner/repo:path. */
77
+ skills?: Array<string> | null | undefined;
78
+ /** Shell commands run after the harness exited 0 (tests, a build, a file check); the first failure FAILS the run. Skipped in plan mode. */
79
+ verify?: Array<string> | null | undefined;
80
+ workspaceID: string | number;
81
+ };
60
82
  export type CurrentActorKind =
61
83
  /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */
62
84
  'AGENT'
@@ -79,6 +101,14 @@ export type DeploymentKind =
79
101
  /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */
80
102
  'BOX' | 'SERVICE' | 'STATIC';
81
103
  export type DeploymentStatus = 'BUILDING' | 'FAILED' | 'READY';
104
+ export type FollowUpRunInput = {
105
+ approval?: string | null | undefined;
106
+ maxSeconds?: number | null | undefined;
107
+ metadata?: unknown;
108
+ mode?: string | null | undefined;
109
+ prompt: string;
110
+ runID: string | number;
111
+ };
82
112
  export type ListDeploymentsInput = {
83
113
  alias?: string | null | undefined;
84
114
  kind?: DeploymentKind | null | undefined;
@@ -87,6 +117,12 @@ export type ListDeploymentsInput = {
87
117
  order?: string | null | undefined;
88
118
  workspaceID?: string | number | null | undefined;
89
119
  };
120
+ export type ListRunsInput = {
121
+ limit?: number | null | undefined;
122
+ offset?: number | null | undefined;
123
+ status?: RunStatus | null | undefined;
124
+ workspaceID?: string | number | null | undefined;
125
+ };
90
126
  export type ListWorkspaceFilesInput = {
91
127
  limit?: number | null | undefined;
92
128
  offset?: number | null | undefined;
@@ -99,6 +135,9 @@ export type ReadWorkspaceFileInput = {
99
135
  path: string;
100
136
  workspaceID: string | number;
101
137
  };
138
+ export type RunStatus =
139
+ /** Waiting for a human's answer (see Run.question); the VM stays up and the wall clock keeps running. */
140
+ 'BLOCKED' | 'CANCELLED' | 'FAILED' | 'QUEUED' | 'RUNNING' | 'SUCCEEDED';
102
141
  export type ServiceMode =
103
142
  /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */
104
143
  'ALWAYS_ON'
@@ -732,6 +771,402 @@ export type SdkListAppEnvQuery = {
732
771
  updatedAt: string;
733
772
  }>;
734
773
  };
774
+ export type RunFieldsFragment = {
775
+ id: string;
776
+ workspaceID: string;
777
+ ownerId: string;
778
+ status: RunStatus;
779
+ rawStatus: string;
780
+ command: string | null;
781
+ harness: string | null;
782
+ prompt: string | null;
783
+ setup: Array<string>;
784
+ skills: Array<string>;
785
+ verify: Array<string>;
786
+ approval: string;
787
+ mode: string;
788
+ parentRunID: string | null;
789
+ depth: number;
790
+ memoryMiB: number;
791
+ maxSeconds: number;
792
+ metadata: unknown;
793
+ error: string | null;
794
+ exitCode: number | null;
795
+ verifyExitCode: number | null;
796
+ vmID: string | null;
797
+ transcriptAvailable: boolean;
798
+ createdAt: string;
799
+ startedAt: string | null;
800
+ settledAt: string | null;
801
+ question: {
802
+ id: string;
803
+ text: string;
804
+ options: Array<string>;
805
+ askedAt: string;
806
+ } | null;
807
+ result: {
808
+ status: string;
809
+ detail: string | null;
810
+ text: string | null;
811
+ } | null;
812
+ usage: {
813
+ vmSeconds: number;
814
+ memoryMiB: number;
815
+ mibSeconds: number;
816
+ };
817
+ };
818
+ export type SdkCreateRunMutationVariables = Exact<{
819
+ input: CreateRunInput;
820
+ }>;
821
+ export type SdkCreateRunMutation = {
822
+ createRun: {
823
+ id: string;
824
+ workspaceID: string;
825
+ ownerId: string;
826
+ status: RunStatus;
827
+ rawStatus: string;
828
+ command: string | null;
829
+ harness: string | null;
830
+ prompt: string | null;
831
+ setup: Array<string>;
832
+ skills: Array<string>;
833
+ verify: Array<string>;
834
+ approval: string;
835
+ mode: string;
836
+ parentRunID: string | null;
837
+ depth: number;
838
+ memoryMiB: number;
839
+ maxSeconds: number;
840
+ metadata: unknown;
841
+ error: string | null;
842
+ exitCode: number | null;
843
+ verifyExitCode: number | null;
844
+ vmID: string | null;
845
+ transcriptAvailable: boolean;
846
+ createdAt: string;
847
+ startedAt: string | null;
848
+ settledAt: string | null;
849
+ question: {
850
+ id: string;
851
+ text: string;
852
+ options: Array<string>;
853
+ askedAt: string;
854
+ } | null;
855
+ result: {
856
+ status: string;
857
+ detail: string | null;
858
+ text: string | null;
859
+ } | null;
860
+ usage: {
861
+ vmSeconds: number;
862
+ memoryMiB: number;
863
+ mibSeconds: number;
864
+ };
865
+ };
866
+ };
867
+ export type SdkGetRunQueryVariables = Exact<{
868
+ id: string | number;
869
+ }>;
870
+ export type SdkGetRunQuery = {
871
+ run: {
872
+ id: string;
873
+ workspaceID: string;
874
+ ownerId: string;
875
+ status: RunStatus;
876
+ rawStatus: string;
877
+ command: string | null;
878
+ harness: string | null;
879
+ prompt: string | null;
880
+ setup: Array<string>;
881
+ skills: Array<string>;
882
+ verify: Array<string>;
883
+ approval: string;
884
+ mode: string;
885
+ parentRunID: string | null;
886
+ depth: number;
887
+ memoryMiB: number;
888
+ maxSeconds: number;
889
+ metadata: unknown;
890
+ error: string | null;
891
+ exitCode: number | null;
892
+ verifyExitCode: number | null;
893
+ vmID: string | null;
894
+ transcriptAvailable: boolean;
895
+ createdAt: string;
896
+ startedAt: string | null;
897
+ settledAt: string | null;
898
+ question: {
899
+ id: string;
900
+ text: string;
901
+ options: Array<string>;
902
+ askedAt: string;
903
+ } | null;
904
+ result: {
905
+ status: string;
906
+ detail: string | null;
907
+ text: string | null;
908
+ } | null;
909
+ usage: {
910
+ vmSeconds: number;
911
+ memoryMiB: number;
912
+ mibSeconds: number;
913
+ };
914
+ };
915
+ };
916
+ export type SdkPollRunQueryVariables = Exact<{
917
+ id: string | number;
918
+ }>;
919
+ export type SdkPollRunQuery = {
920
+ run: {
921
+ id: string;
922
+ status: RunStatus;
923
+ error: string | null;
924
+ exitCode: number | null;
925
+ };
926
+ };
927
+ export type SdkListRunsQueryVariables = Exact<{
928
+ input?: ListRunsInput | null | undefined;
929
+ }>;
930
+ export type SdkListRunsQuery = {
931
+ runs: {
932
+ total: number;
933
+ limit: number;
934
+ offset: number;
935
+ hasMore: boolean;
936
+ nextOffset: number | null;
937
+ items: Array<{
938
+ id: string;
939
+ workspaceID: string;
940
+ ownerId: string;
941
+ status: RunStatus;
942
+ rawStatus: string;
943
+ command: string | null;
944
+ harness: string | null;
945
+ prompt: string | null;
946
+ setup: Array<string>;
947
+ skills: Array<string>;
948
+ verify: Array<string>;
949
+ approval: string;
950
+ mode: string;
951
+ parentRunID: string | null;
952
+ depth: number;
953
+ memoryMiB: number;
954
+ maxSeconds: number;
955
+ metadata: unknown;
956
+ error: string | null;
957
+ exitCode: number | null;
958
+ verifyExitCode: number | null;
959
+ vmID: string | null;
960
+ transcriptAvailable: boolean;
961
+ createdAt: string;
962
+ startedAt: string | null;
963
+ settledAt: string | null;
964
+ question: {
965
+ id: string;
966
+ text: string;
967
+ options: Array<string>;
968
+ askedAt: string;
969
+ } | null;
970
+ result: {
971
+ status: string;
972
+ detail: string | null;
973
+ text: string | null;
974
+ } | null;
975
+ usage: {
976
+ vmSeconds: number;
977
+ memoryMiB: number;
978
+ mibSeconds: number;
979
+ };
980
+ }>;
981
+ };
982
+ };
983
+ export type SdkCancelRunMutationVariables = Exact<{
984
+ id: string | number;
985
+ }>;
986
+ export type SdkCancelRunMutation = {
987
+ cancelRun: {
988
+ id: string;
989
+ workspaceID: string;
990
+ ownerId: string;
991
+ status: RunStatus;
992
+ rawStatus: string;
993
+ command: string | null;
994
+ harness: string | null;
995
+ prompt: string | null;
996
+ setup: Array<string>;
997
+ skills: Array<string>;
998
+ verify: Array<string>;
999
+ approval: string;
1000
+ mode: string;
1001
+ parentRunID: string | null;
1002
+ depth: number;
1003
+ memoryMiB: number;
1004
+ maxSeconds: number;
1005
+ metadata: unknown;
1006
+ error: string | null;
1007
+ exitCode: number | null;
1008
+ verifyExitCode: number | null;
1009
+ vmID: string | null;
1010
+ transcriptAvailable: boolean;
1011
+ createdAt: string;
1012
+ startedAt: string | null;
1013
+ settledAt: string | null;
1014
+ question: {
1015
+ id: string;
1016
+ text: string;
1017
+ options: Array<string>;
1018
+ askedAt: string;
1019
+ } | null;
1020
+ result: {
1021
+ status: string;
1022
+ detail: string | null;
1023
+ text: string | null;
1024
+ } | null;
1025
+ usage: {
1026
+ vmSeconds: number;
1027
+ memoryMiB: number;
1028
+ mibSeconds: number;
1029
+ };
1030
+ };
1031
+ };
1032
+ export type SdkRunEventsQueryVariables = Exact<{
1033
+ runID: string | number;
1034
+ limit?: number | null | undefined;
1035
+ }>;
1036
+ export type SdkRunEventsQuery = {
1037
+ runEvents: Array<{
1038
+ id: string;
1039
+ runID: string;
1040
+ type: string;
1041
+ severity: DeploymentEventSeverity;
1042
+ message: string;
1043
+ metadata: unknown;
1044
+ createdAt: string;
1045
+ }>;
1046
+ };
1047
+ export type SdkRunConsoleQueryVariables = Exact<{
1048
+ id: string | number;
1049
+ tailBytes?: number | null | undefined;
1050
+ }>;
1051
+ export type SdkRunConsoleQuery = {
1052
+ runConsole: {
1053
+ runID: string;
1054
+ running: boolean;
1055
+ text: string;
1056
+ };
1057
+ };
1058
+ export type SdkRunTranscriptQueryVariables = Exact<{
1059
+ id: string | number;
1060
+ tailBytes?: number | null | undefined;
1061
+ }>;
1062
+ export type SdkRunTranscriptQuery = {
1063
+ runTranscript: {
1064
+ runID: string;
1065
+ available: boolean;
1066
+ text: string;
1067
+ totalBytes: number;
1068
+ truncated: boolean;
1069
+ };
1070
+ };
1071
+ export type SdkAnswerRunMutationVariables = Exact<{
1072
+ id: string | number;
1073
+ answer: string;
1074
+ }>;
1075
+ export type SdkAnswerRunMutation = {
1076
+ answerRun: {
1077
+ id: string;
1078
+ workspaceID: string;
1079
+ ownerId: string;
1080
+ status: RunStatus;
1081
+ rawStatus: string;
1082
+ command: string | null;
1083
+ harness: string | null;
1084
+ prompt: string | null;
1085
+ setup: Array<string>;
1086
+ skills: Array<string>;
1087
+ verify: Array<string>;
1088
+ approval: string;
1089
+ mode: string;
1090
+ parentRunID: string | null;
1091
+ depth: number;
1092
+ memoryMiB: number;
1093
+ maxSeconds: number;
1094
+ metadata: unknown;
1095
+ error: string | null;
1096
+ exitCode: number | null;
1097
+ verifyExitCode: number | null;
1098
+ vmID: string | null;
1099
+ transcriptAvailable: boolean;
1100
+ createdAt: string;
1101
+ startedAt: string | null;
1102
+ settledAt: string | null;
1103
+ question: {
1104
+ id: string;
1105
+ text: string;
1106
+ options: Array<string>;
1107
+ askedAt: string;
1108
+ } | null;
1109
+ result: {
1110
+ status: string;
1111
+ detail: string | null;
1112
+ text: string | null;
1113
+ } | null;
1114
+ usage: {
1115
+ vmSeconds: number;
1116
+ memoryMiB: number;
1117
+ mibSeconds: number;
1118
+ };
1119
+ };
1120
+ };
1121
+ export type SdkFollowUpRunMutationVariables = Exact<{
1122
+ input: FollowUpRunInput;
1123
+ }>;
1124
+ export type SdkFollowUpRunMutation = {
1125
+ followUpRun: {
1126
+ id: string;
1127
+ workspaceID: string;
1128
+ ownerId: string;
1129
+ status: RunStatus;
1130
+ rawStatus: string;
1131
+ command: string | null;
1132
+ harness: string | null;
1133
+ prompt: string | null;
1134
+ setup: Array<string>;
1135
+ skills: Array<string>;
1136
+ verify: Array<string>;
1137
+ approval: string;
1138
+ mode: string;
1139
+ parentRunID: string | null;
1140
+ depth: number;
1141
+ memoryMiB: number;
1142
+ maxSeconds: number;
1143
+ metadata: unknown;
1144
+ error: string | null;
1145
+ exitCode: number | null;
1146
+ verifyExitCode: number | null;
1147
+ vmID: string | null;
1148
+ transcriptAvailable: boolean;
1149
+ createdAt: string;
1150
+ startedAt: string | null;
1151
+ settledAt: string | null;
1152
+ question: {
1153
+ id: string;
1154
+ text: string;
1155
+ options: Array<string>;
1156
+ askedAt: string;
1157
+ } | null;
1158
+ result: {
1159
+ status: string;
1160
+ detail: string | null;
1161
+ text: string | null;
1162
+ } | null;
1163
+ usage: {
1164
+ vmSeconds: number;
1165
+ memoryMiB: number;
1166
+ mibSeconds: number;
1167
+ };
1168
+ };
1169
+ };
735
1170
  export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
736
1171
  __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;
737
1172
  private value;
@@ -740,6 +1175,7 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
740
1175
  toString(): string & DocumentTypeDecoration<TResult, TVariables>;
741
1176
  }
742
1177
  export declare const DeploymentFieldsFragmentDoc: TypedDocumentString<DeploymentFieldsFragment, unknown>;
1178
+ export declare const RunFieldsFragmentDoc: TypedDocumentString<RunFieldsFragment, unknown>;
743
1179
  export declare const SdkWhoamiDocument: TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;
744
1180
  export declare const SdkCreateWorkspaceDocument: TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;
745
1181
  export declare const SdkListWorkspacesDocument: TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;
@@ -772,4 +1208,14 @@ export declare const SdkSetAppSecretDocument: TypedDocumentString<SdkSetAppSecre
772
1208
  export declare const SdkRemoveAppEnvDocument: TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;
773
1209
  export declare const SdkInheritAppEnvDocument: TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;
774
1210
  export declare const SdkListAppEnvDocument: TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;
1211
+ export declare const SdkCreateRunDocument: TypedDocumentString<SdkCreateRunMutation, SdkCreateRunMutationVariables>;
1212
+ export declare const SdkGetRunDocument: TypedDocumentString<SdkGetRunQuery, SdkGetRunQueryVariables>;
1213
+ export declare const SdkPollRunDocument: TypedDocumentString<SdkPollRunQuery, SdkPollRunQueryVariables>;
1214
+ export declare const SdkListRunsDocument: TypedDocumentString<SdkListRunsQuery, SdkListRunsQueryVariables>;
1215
+ export declare const SdkCancelRunDocument: TypedDocumentString<SdkCancelRunMutation, SdkCancelRunMutationVariables>;
1216
+ export declare const SdkRunEventsDocument: TypedDocumentString<SdkRunEventsQuery, SdkRunEventsQueryVariables>;
1217
+ export declare const SdkRunConsoleDocument: TypedDocumentString<SdkRunConsoleQuery, SdkRunConsoleQueryVariables>;
1218
+ export declare const SdkRunTranscriptDocument: TypedDocumentString<SdkRunTranscriptQuery, SdkRunTranscriptQueryVariables>;
1219
+ export declare const SdkAnswerRunDocument: TypedDocumentString<SdkAnswerRunMutation, SdkAnswerRunMutationVariables>;
1220
+ export declare const SdkFollowUpRunDocument: TypedDocumentString<SdkFollowUpRunMutation, SdkFollowUpRunMutationVariables>;
775
1221
  export {};