@kitman-sh/sdk 0.7.3 → 0.7.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.
- package/dist/build/index.js +2 -2
- package/dist/{chunk-7hwhxthh.js → chunk-72z6zbfz.js} +1 -1
- package/dist/{chunk-zp7s46pz.js → chunk-8byx9rx2.js} +93 -10
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/agent-environment.d.ts +16 -16
- package/types/packages/core/src/engineering-resources.d.ts +4 -6
- package/types/packages/core/src/index.d.ts +2 -1
- package/types/packages/core/src/kit.d.ts +12 -12
- package/types/packages/core/src/live.d.ts +10 -0
- package/types/packages/core/src/loop.d.ts +418 -22
- package/types/packages/core/src/my-teams.d.ts +175 -10
- package/types/packages/core/src/package-declarations.d.ts +25 -0
- package/types/packages/core/src/run-display.d.ts +12 -0
- package/types/packages/core/src/run-graph.d.ts +67 -0
- package/types/packages/core/src/runner.d.ts +3 -3
- package/types/packages/core/src/sync-kit.d.ts +4 -4
- package/types/packages/live/src/rpc/runner-group.d.ts +260 -260
- package/types/packages/core/src/kit-taxonomy.d.ts +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Question
|
|
2
|
+
import { Question } from './loop';
|
|
3
3
|
declare const MyTeamsTask: Schema.Struct<{
|
|
4
4
|
readonly id: Schema.String;
|
|
5
5
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
@@ -27,6 +27,144 @@ declare const MyTeamsProposal: Schema.Struct<{
|
|
|
27
27
|
readonly taskId: Schema.String;
|
|
28
28
|
readonly title: Schema.String;
|
|
29
29
|
}>;
|
|
30
|
+
declare const MyTeamsRun: Schema.Struct<{
|
|
31
|
+
readonly id: Schema.String;
|
|
32
|
+
readonly workspaceId: Schema.String;
|
|
33
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly loopId: Schema.String;
|
|
37
|
+
readonly packageVersionId: Schema.optionalKey<Schema.String>;
|
|
38
|
+
readonly resourceVersion: Schema.Int;
|
|
39
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "blocked", "completed", "failed", "canceled", "expired"]>;
|
|
40
|
+
readonly trigger: Schema.Struct<{
|
|
41
|
+
readonly event: Schema.String;
|
|
42
|
+
readonly eventId: Schema.String;
|
|
43
|
+
readonly subject: Schema.optionalKey<Schema.Struct<{
|
|
44
|
+
readonly kind: Schema.String;
|
|
45
|
+
readonly id: Schema.String;
|
|
46
|
+
}>>;
|
|
47
|
+
readonly occurredAt: Schema.String;
|
|
48
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
49
|
+
}>;
|
|
50
|
+
readonly state: Schema.Struct<{
|
|
51
|
+
readonly stepStates: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
52
|
+
readonly stepKey: Schema.String;
|
|
53
|
+
readonly sequence: Schema.Int;
|
|
54
|
+
readonly attempts: Schema.Int;
|
|
55
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
56
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
57
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
58
|
+
readonly output: Schema.optionalKey<Schema.Struct<{
|
|
59
|
+
readonly stepKey: Schema.String;
|
|
60
|
+
readonly outputSchemaRef: Schema.Struct<{
|
|
61
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
62
|
+
readonly name: Schema.String;
|
|
63
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
64
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
65
|
+
}>;
|
|
66
|
+
readonly summary: Schema.String;
|
|
67
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
68
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>>;
|
|
69
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
70
|
+
readonly kind: Schema.Literals<readonly ["task", "kit", "memory", "decision", "knowledge_record", "context_pack", "step_attempt", "change_request", "change_request_review", "provider_action", "thread_entry", "run", "artifact"]>;
|
|
71
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
72
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
73
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
74
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>>;
|
|
77
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
78
|
+
readonly updatedAt: Schema.String;
|
|
79
|
+
readonly required: Schema.Literal<true>;
|
|
80
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "canceled"]>;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
readonly stepKey: Schema.String;
|
|
83
|
+
readonly sequence: Schema.Int;
|
|
84
|
+
readonly attempts: Schema.Int;
|
|
85
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
86
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
87
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
88
|
+
readonly output: Schema.optionalKey<Schema.Struct<{
|
|
89
|
+
readonly stepKey: Schema.String;
|
|
90
|
+
readonly outputSchemaRef: Schema.Struct<{
|
|
91
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
92
|
+
readonly name: Schema.String;
|
|
93
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
94
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
95
|
+
}>;
|
|
96
|
+
readonly summary: Schema.String;
|
|
97
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
98
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>>;
|
|
99
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
100
|
+
readonly kind: Schema.Literals<readonly ["task", "kit", "memory", "decision", "knowledge_record", "context_pack", "step_attempt", "change_request", "change_request_review", "provider_action", "thread_entry", "run", "artifact"]>;
|
|
101
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
102
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
103
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
104
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
105
|
+
}>>;
|
|
106
|
+
}>>;
|
|
107
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
108
|
+
readonly updatedAt: Schema.String;
|
|
109
|
+
readonly required: Schema.Literal<false>;
|
|
110
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "skipped", "canceled"]>;
|
|
111
|
+
}>]>>;
|
|
112
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
113
|
+
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
114
|
+
}>;
|
|
115
|
+
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
116
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["project", "workspace", "shipped"]>>;
|
|
117
|
+
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
118
|
+
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
119
|
+
readonly kind: Schema.Literal<"question">;
|
|
120
|
+
readonly name: Schema.String;
|
|
121
|
+
readonly questionId: Schema.String;
|
|
122
|
+
}>, Schema.Struct<{
|
|
123
|
+
readonly kind: Schema.Literal<"clock">;
|
|
124
|
+
readonly name: Schema.String;
|
|
125
|
+
readonly firesAt: Schema.String;
|
|
126
|
+
}>, Schema.Struct<{
|
|
127
|
+
readonly kind: Schema.Literal<"event">;
|
|
128
|
+
readonly name: Schema.String;
|
|
129
|
+
readonly event: Schema.String;
|
|
130
|
+
readonly timesOutAt: Schema.String;
|
|
131
|
+
}>, Schema.Struct<{
|
|
132
|
+
readonly kind: Schema.Literal<"step">;
|
|
133
|
+
readonly name: Schema.String;
|
|
134
|
+
readonly stepAttemptId: Schema.String;
|
|
135
|
+
}>, Schema.Struct<{
|
|
136
|
+
readonly kind: Schema.Literal<"child">;
|
|
137
|
+
readonly name: Schema.String;
|
|
138
|
+
readonly runId: Schema.String;
|
|
139
|
+
}>, Schema.Struct<{
|
|
140
|
+
readonly kind: Schema.Literal<"verification">;
|
|
141
|
+
readonly name: Schema.String;
|
|
142
|
+
readonly verificationId: Schema.String;
|
|
143
|
+
}>]>>>;
|
|
144
|
+
readonly output: Schema.optionalKey<Schema.Unknown>;
|
|
145
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
146
|
+
readonly closure: Schema.optionalKey<Schema.Struct<{
|
|
147
|
+
readonly kind: Schema.Literals<readonly ["complete", "abandoned"]>;
|
|
148
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
149
|
+
readonly closedByUserId: Schema.String;
|
|
150
|
+
readonly closedAt: Schema.String;
|
|
151
|
+
}>>;
|
|
152
|
+
readonly alignment: Schema.optionalKey<Schema.Struct<{
|
|
153
|
+
readonly verdict: Schema.Literals<readonly ["aligned", "not_aligned", "unverified"]>;
|
|
154
|
+
readonly reasons: Schema.$Array<Schema.String>;
|
|
155
|
+
readonly intentVersion: Schema.Int;
|
|
156
|
+
readonly judgedAt: Schema.String;
|
|
157
|
+
}>>;
|
|
158
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
159
|
+
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
160
|
+
readonly createdAt: Schema.String;
|
|
161
|
+
readonly updatedAt: Schema.String;
|
|
162
|
+
readonly display: Schema.Struct<{
|
|
163
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
164
|
+
readonly retried: Schema.Boolean;
|
|
165
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
166
|
+
}>;
|
|
167
|
+
}>;
|
|
30
168
|
export declare const MyTeamsCard: Schema.Struct<{
|
|
31
169
|
/** The Task's id, or `run:<id>` for a Run with no Task. */
|
|
32
170
|
readonly id: Schema.String;
|
|
@@ -179,6 +317,11 @@ export declare const MyTeamsCard: Schema.Struct<{
|
|
|
179
317
|
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
180
318
|
readonly createdAt: Schema.String;
|
|
181
319
|
readonly updatedAt: Schema.String;
|
|
320
|
+
readonly display: Schema.Struct<{
|
|
321
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
322
|
+
readonly retried: Schema.Boolean;
|
|
323
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
324
|
+
}>;
|
|
182
325
|
}>>;
|
|
183
326
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
184
327
|
readonly id: Schema.String;
|
|
@@ -220,7 +363,6 @@ export declare const MyTeamsCard: Schema.Struct<{
|
|
|
220
363
|
readonly taskId: Schema.String;
|
|
221
364
|
readonly title: Schema.String;
|
|
222
365
|
}>>;
|
|
223
|
-
readonly noEligibleRunner: Schema.Boolean;
|
|
224
366
|
readonly updatedAt: Schema.String;
|
|
225
367
|
}>;
|
|
226
368
|
/** The Inbox's My Teams view: what needs a human and what is moving, across a person's Teams. */
|
|
@@ -377,6 +519,11 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
377
519
|
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
378
520
|
readonly createdAt: Schema.String;
|
|
379
521
|
readonly updatedAt: Schema.String;
|
|
522
|
+
readonly display: Schema.Struct<{
|
|
523
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
524
|
+
readonly retried: Schema.Boolean;
|
|
525
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
526
|
+
}>;
|
|
380
527
|
}>>;
|
|
381
528
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
382
529
|
readonly id: Schema.String;
|
|
@@ -418,7 +565,6 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
418
565
|
readonly taskId: Schema.String;
|
|
419
566
|
readonly title: Schema.String;
|
|
420
567
|
}>>;
|
|
421
|
-
readonly noEligibleRunner: Schema.Boolean;
|
|
422
568
|
readonly updatedAt: Schema.String;
|
|
423
569
|
}>>;
|
|
424
570
|
readonly waitingOnYou: Schema.$Array<Schema.Struct<{
|
|
@@ -573,6 +719,11 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
573
719
|
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
574
720
|
readonly createdAt: Schema.String;
|
|
575
721
|
readonly updatedAt: Schema.String;
|
|
722
|
+
readonly display: Schema.Struct<{
|
|
723
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
724
|
+
readonly retried: Schema.Boolean;
|
|
725
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
726
|
+
}>;
|
|
576
727
|
}>>;
|
|
577
728
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
578
729
|
readonly id: Schema.String;
|
|
@@ -614,7 +765,6 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
614
765
|
readonly taskId: Schema.String;
|
|
615
766
|
readonly title: Schema.String;
|
|
616
767
|
}>>;
|
|
617
|
-
readonly noEligibleRunner: Schema.Boolean;
|
|
618
768
|
readonly updatedAt: Schema.String;
|
|
619
769
|
}>>;
|
|
620
770
|
readonly working: Schema.$Array<Schema.Struct<{
|
|
@@ -769,6 +919,11 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
769
919
|
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
770
920
|
readonly createdAt: Schema.String;
|
|
771
921
|
readonly updatedAt: Schema.String;
|
|
922
|
+
readonly display: Schema.Struct<{
|
|
923
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
924
|
+
readonly retried: Schema.Boolean;
|
|
925
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
926
|
+
}>;
|
|
772
927
|
}>>;
|
|
773
928
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
774
929
|
readonly id: Schema.String;
|
|
@@ -810,7 +965,6 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
810
965
|
readonly taskId: Schema.String;
|
|
811
966
|
readonly title: Schema.String;
|
|
812
967
|
}>>;
|
|
813
|
-
readonly noEligibleRunner: Schema.Boolean;
|
|
814
968
|
readonly updatedAt: Schema.String;
|
|
815
969
|
}>>;
|
|
816
970
|
readonly finished: Schema.$Array<Schema.Struct<{
|
|
@@ -965,6 +1119,11 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
965
1119
|
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
966
1120
|
readonly createdAt: Schema.String;
|
|
967
1121
|
readonly updatedAt: Schema.String;
|
|
1122
|
+
readonly display: Schema.Struct<{
|
|
1123
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
1124
|
+
readonly retried: Schema.Boolean;
|
|
1125
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1126
|
+
}>;
|
|
968
1127
|
}>>;
|
|
969
1128
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
970
1129
|
readonly id: Schema.String;
|
|
@@ -1006,7 +1165,6 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
1006
1165
|
readonly taskId: Schema.String;
|
|
1007
1166
|
readonly title: Schema.String;
|
|
1008
1167
|
}>>;
|
|
1009
|
-
readonly noEligibleRunner: Schema.Boolean;
|
|
1010
1168
|
readonly updatedAt: Schema.String;
|
|
1011
1169
|
}>>;
|
|
1012
1170
|
}>;
|
|
@@ -1146,6 +1304,11 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1146
1304
|
readonly createdAt: Schema.String;
|
|
1147
1305
|
readonly updatedAt: Schema.String;
|
|
1148
1306
|
}>;
|
|
1307
|
+
readonly display: Schema.Struct<{
|
|
1308
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
1309
|
+
readonly retried: Schema.Boolean;
|
|
1310
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1311
|
+
}>;
|
|
1149
1312
|
readonly loop: Schema.Struct<{
|
|
1150
1313
|
readonly id: Schema.String;
|
|
1151
1314
|
readonly title: Schema.String;
|
|
@@ -1203,6 +1366,11 @@ export declare const LatestTaskRuns: Schema.Struct<{
|
|
|
1203
1366
|
readonly taskId: Schema.String;
|
|
1204
1367
|
readonly runId: Schema.String;
|
|
1205
1368
|
readonly status: Schema.Literals<readonly ["pending", "running", "blocked", "completed", "failed", "canceled", "expired"]>;
|
|
1369
|
+
readonly display: Schema.Struct<{
|
|
1370
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
1371
|
+
readonly retried: Schema.Boolean;
|
|
1372
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1373
|
+
}>;
|
|
1206
1374
|
}>>;
|
|
1207
1375
|
}>;
|
|
1208
1376
|
export type LatestTaskRuns = (typeof LatestTaskRuns)['Type'];
|
|
@@ -1214,14 +1382,11 @@ export type MyTeamsSnapshot = {
|
|
|
1214
1382
|
readonly finishedWithinMillis?: number;
|
|
1215
1383
|
readonly tasks: readonly (typeof MyTeamsTask)['Type'][];
|
|
1216
1384
|
/** Top-level Runs, with what each waits on. */
|
|
1217
|
-
readonly runs: readonly
|
|
1385
|
+
readonly runs: readonly (typeof MyTeamsRun)['Type'][];
|
|
1218
1386
|
readonly questions: readonly Question[];
|
|
1219
1387
|
readonly changeRequests: readonly (typeof TaskChangeRequest)['Type'][];
|
|
1220
1388
|
/** Proposals still waiting on a decision. */
|
|
1221
1389
|
readonly proposals: readonly (typeof MyTeamsProposal)['Type'][];
|
|
1222
|
-
readonly onlineRunnerProjectIds: readonly string[];
|
|
1223
|
-
/** Whether an online Runner serves Runs in no Project. */
|
|
1224
|
-
readonly projectlessRunnerOnline?: boolean;
|
|
1225
1390
|
/** Top-level Runs with an escalated Drift Report, their own or a Child Run's. */
|
|
1226
1391
|
readonly escalatedRunIds: readonly string[];
|
|
1227
1392
|
};
|
|
@@ -32,6 +32,31 @@ export declare const LoopManifest: Schema.Struct<{
|
|
|
32
32
|
}>, Schema.Literal<"open">]>>;
|
|
33
33
|
}>;
|
|
34
34
|
export type LoopManifest = typeof LoopManifest.Type;
|
|
35
|
+
/** A Loop as it resolves where it was asked about, with the Agent each role uses and what starts it. */
|
|
36
|
+
export declare const LoopDetail: Schema.Struct<{
|
|
37
|
+
readonly id: Schema.String;
|
|
38
|
+
readonly resolved: Schema.optionalKey<Schema.Struct<{
|
|
39
|
+
readonly id: Schema.String;
|
|
40
|
+
readonly title: Schema.String;
|
|
41
|
+
readonly layer: Schema.Literals<readonly ["project", "workspace", "shipped"]>;
|
|
42
|
+
readonly digest: Schema.String;
|
|
43
|
+
readonly outcome: Schema.optionalKey<Schema.String>;
|
|
44
|
+
readonly offers: Schema.$Array<Schema.Struct<{
|
|
45
|
+
readonly id: Schema.String;
|
|
46
|
+
readonly title: Schema.String;
|
|
47
|
+
readonly loop: Schema.String;
|
|
48
|
+
}>>;
|
|
49
|
+
readonly publishedAt: Schema.String;
|
|
50
|
+
readonly package: Schema.String;
|
|
51
|
+
readonly agents: Schema.$Record<Schema.String, Schema.String>;
|
|
52
|
+
readonly when: Schema.$Array<Schema.Struct<{
|
|
53
|
+
readonly event: Schema.String;
|
|
54
|
+
readonly filter: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
55
|
+
readonly input: Schema.$Record<Schema.String, Schema.String>;
|
|
56
|
+
}>>;
|
|
57
|
+
}>>;
|
|
58
|
+
}>;
|
|
59
|
+
export type LoopDetail = (typeof LoopDetail)['Type'];
|
|
35
60
|
/** An Agent as a Package declares it, with its instructions already read from the repository. */
|
|
36
61
|
export declare const AgentDeclaration: Schema.Struct<{
|
|
37
62
|
readonly extends: Schema.optionalKey<Schema.String>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RunDisplay, RunDisplayState, RunShow } from './loop';
|
|
2
|
+
export type RunDisplayInput = Pick<RunShow, 'run' | 'steps' | 'questions' | 'children' | 'waiting'> & {
|
|
3
|
+
/** A Runner has leased one of the Run's orchestration Work Units. */
|
|
4
|
+
readonly claimed: boolean;
|
|
5
|
+
/** An eligible Runner is online for the Run's Project, or for no Project. */
|
|
6
|
+
readonly runnerOnline: boolean;
|
|
7
|
+
/** The `verify` Steps whose verification failed. */
|
|
8
|
+
readonly failedChecks: readonly string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const runDisplayLabels: Record<RunDisplayState, string>;
|
|
11
|
+
/** The one display state every surface shows for a Run (ADR-0072). */
|
|
12
|
+
export declare const runDisplay: (input: RunDisplayInput) => RunDisplay;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Question, Run, RunDisplayState, RunGraph, RunGraphNode, StepAttempt } from './loop';
|
|
2
|
+
type Reached = {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
/** When the journal recorded its launch. */
|
|
6
|
+
readonly startedAt: string;
|
|
7
|
+
/** When the journal recorded its deferred resolved, and whether with success. */
|
|
8
|
+
readonly resolved?: {
|
|
9
|
+
readonly at: string;
|
|
10
|
+
readonly ok: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** What the journal and its records say of one Step a Run reached. */
|
|
14
|
+
export type RunGraphStep = (Reached & {
|
|
15
|
+
readonly kind: 'agent';
|
|
16
|
+
readonly attempts: readonly {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly attempt: number;
|
|
19
|
+
readonly status: StepAttempt['status'];
|
|
20
|
+
/** A Runner holds it. */
|
|
21
|
+
readonly leased: boolean;
|
|
22
|
+
readonly failureSummary?: string;
|
|
23
|
+
}[];
|
|
24
|
+
readonly agent?: RunGraphNode['agent'];
|
|
25
|
+
}) | (Reached & {
|
|
26
|
+
readonly kind: 'check';
|
|
27
|
+
readonly verification?: {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly attempt: number;
|
|
30
|
+
readonly status: 'waiting' | 'completed' | 'failed' | 'canceled';
|
|
31
|
+
readonly leased: boolean;
|
|
32
|
+
readonly failureSummary?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Every check passed or already failed on the default branch. */
|
|
35
|
+
readonly passed?: boolean;
|
|
36
|
+
}) | (Reached & {
|
|
37
|
+
readonly kind: 'question';
|
|
38
|
+
readonly question?: Question['status'];
|
|
39
|
+
}) | (Reached & {
|
|
40
|
+
readonly kind: 'child';
|
|
41
|
+
readonly child?: RunGraphNode['child'];
|
|
42
|
+
}) | (Reached & {
|
|
43
|
+
readonly kind: 'wait';
|
|
44
|
+
}) | {
|
|
45
|
+
readonly kind: 'activity';
|
|
46
|
+
readonly id: string;
|
|
47
|
+
readonly name: string;
|
|
48
|
+
readonly recordedAt: string;
|
|
49
|
+
readonly ok: boolean;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Groups nodes into columns in order of start: a node starts a new column when it starts after every node in the
|
|
53
|
+
* current column has ended, and otherwise joins it.
|
|
54
|
+
*/
|
|
55
|
+
export declare const runGraphColumns: <Node extends {
|
|
56
|
+
readonly startedAt: string;
|
|
57
|
+
readonly endedAt?: string;
|
|
58
|
+
}>(nodes: readonly Node[]) => Node[][];
|
|
59
|
+
export type TaskBlock = {
|
|
60
|
+
readonly blocking: string;
|
|
61
|
+
readonly blocked: string;
|
|
62
|
+
};
|
|
63
|
+
/** The Run graph: every Step the Run reached, in columns, and which Child Runs need which (ADR-0072). */
|
|
64
|
+
export declare const runGraph: (run: Pick<Run, 'status'>, steps: readonly RunGraphStep[], blocks?: readonly TaskBlock[]) => RunGraph;
|
|
65
|
+
/** One status per column, the worst in it, for a Run row's mini graph (ADR-0072). */
|
|
66
|
+
export declare const runMiniGraph: (graph: Pick<RunGraph, 'columns'>) => RunDisplayState[];
|
|
67
|
+
export {};
|
|
@@ -2456,7 +2456,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2456
2456
|
}>, Schema.Struct<{
|
|
2457
2457
|
readonly kind: Schema.Literal<"git">;
|
|
2458
2458
|
readonly url: Schema.String;
|
|
2459
|
-
readonly ref: Schema.String
|
|
2459
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
2460
2460
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
2461
2461
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
2462
2462
|
}>, Schema.Struct<{
|
|
@@ -2549,7 +2549,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2549
2549
|
readonly item: Schema.Struct<{
|
|
2550
2550
|
readonly name: Schema.String;
|
|
2551
2551
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
2552
|
-
readonly
|
|
2552
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2553
2553
|
readonly kind: Schema.Literal<"package">;
|
|
2554
2554
|
readonly packageName: Schema.String;
|
|
2555
2555
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -2564,7 +2564,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2564
2564
|
}>, Schema.Struct<{
|
|
2565
2565
|
readonly kind: Schema.Literal<"local_path">;
|
|
2566
2566
|
readonly path: Schema.String;
|
|
2567
|
-
}>]
|
|
2567
|
+
}>]>>;
|
|
2568
2568
|
}>;
|
|
2569
2569
|
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2570
2570
|
readonly kind: Schema.Literal<"built_in">;
|
|
@@ -61,7 +61,7 @@ export declare const SyncKitActiveKit: Schema.Struct<{
|
|
|
61
61
|
}>, Schema.Struct<{
|
|
62
62
|
readonly kind: Schema.Literal<"git">;
|
|
63
63
|
readonly url: Schema.String;
|
|
64
|
-
readonly ref: Schema.String
|
|
64
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
65
65
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
66
66
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
67
67
|
}>, Schema.Struct<{
|
|
@@ -131,7 +131,7 @@ export declare const SyncKitActiveKit: Schema.Struct<{
|
|
|
131
131
|
}>, Schema.Struct<{
|
|
132
132
|
readonly kind: Schema.Literal<"git">;
|
|
133
133
|
readonly url: Schema.String;
|
|
134
|
-
readonly ref: Schema.String
|
|
134
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
135
135
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
136
136
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
137
137
|
}>, Schema.Struct<{
|
|
@@ -152,7 +152,7 @@ export declare const SyncKitActiveKit: Schema.Struct<{
|
|
|
152
152
|
readonly plugins: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
153
153
|
readonly name: Schema.String;
|
|
154
154
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
155
|
-
readonly
|
|
155
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
156
156
|
readonly kind: Schema.Literal<"package">;
|
|
157
157
|
readonly packageName: Schema.String;
|
|
158
158
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -167,7 +167,7 @@ export declare const SyncKitActiveKit: Schema.Struct<{
|
|
|
167
167
|
}>, Schema.Struct<{
|
|
168
168
|
readonly kind: Schema.Literal<"local_path">;
|
|
169
169
|
readonly path: Schema.String;
|
|
170
|
-
}>]
|
|
170
|
+
}>]>>;
|
|
171
171
|
}>>>;
|
|
172
172
|
readonly mcpServers: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
173
173
|
readonly name: Schema.String;
|