@qawolf/api-contracts 0.130.0 → 0.132.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.
- package/dist/v1/activity/wait.d.ts +2 -2
- package/dist/v1/agent/get.d.ts +1 -1
- package/dist/v1/agent/send.d.ts +1 -1
- package/dist/v1/agent/status.d.ts +1 -1
- package/dist/v1/attempt/get.d.ts +14 -14
- package/dist/v1/deployment/verdict.d.ts +7 -7
- package/dist/v1/deployment/verdictParts.d.ts +2 -2
- package/dist/v1/environment/find.d.ts +2 -0
- package/dist/v1/environment/find.d.ts.map +1 -1
- package/dist/v1/environment/find.js +14 -1
- package/dist/v1/environment/find.js.map +1 -1
- package/dist/v1/environment/promote.d.ts +45 -0
- package/dist/v1/environment/promote.d.ts.map +1 -1
- package/dist/v1/flow/getHistory.d.ts +1 -1
- package/dist/v1/ids.d.ts +2 -0
- package/dist/v1/ids.d.ts.map +1 -1
- package/dist/v1/ids.js +4 -0
- package/dist/v1/ids.js.map +1 -1
- package/dist/v1/index.d.ts +1199 -248
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +3 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/investigation/get.d.ts +1 -1
- package/dist/v1/investigation/index.d.ts +1 -1
- package/dist/v1/issue/contracts.d.ts +0 -74
- package/dist/v1/issue/contracts.d.ts.map +1 -1
- package/dist/v1/issue/contracts.js +0 -2
- package/dist/v1/issue/contracts.js.map +1 -1
- package/dist/v1/narratedRecording/get.d.ts +1 -1
- package/dist/v1/promotion/decision.d.ts +51 -0
- package/dist/v1/promotion/decision.d.ts.map +1 -0
- package/dist/v1/promotion/decision.js +32 -0
- package/dist/v1/promotion/decision.js.map +1 -0
- package/dist/v1/promotion/find.d.ts +45 -0
- package/dist/v1/promotion/find.d.ts.map +1 -1
- package/dist/v1/promotion/get.d.ts +45 -0
- package/dist/v1/promotion/get.d.ts.map +1 -1
- package/dist/v1/promotion/index.d.ts +270 -0
- package/dist/v1/promotion/index.d.ts.map +1 -1
- package/dist/v1/promotion/index.js +3 -0
- package/dist/v1/promotion/index.js.map +1 -1
- package/dist/v1/promotion/needsPerson.d.ts +25 -0
- package/dist/v1/promotion/needsPerson.d.ts.map +1 -0
- package/dist/v1/promotion/needsPerson.js +20 -0
- package/dist/v1/promotion/needsPerson.js.map +1 -0
- package/dist/v1/promotion/reportDecision.d.ts +142 -0
- package/dist/v1/promotion/reportDecision.d.ts.map +1 -0
- package/dist/v1/promotion/reportDecision.js +72 -0
- package/dist/v1/promotion/reportDecision.js.map +1 -0
- package/dist/v1/promotion/resolve.d.ts +45 -0
- package/dist/v1/promotion/resolve.d.ts.map +1 -1
- package/dist/v1/promotion/resource.d.ts +45 -0
- package/dist/v1/promotion/resource.d.ts.map +1 -1
- package/dist/v1/promotion/resource.js +9 -0
- package/dist/v1/promotion/resource.js.map +1 -1
- package/dist/v1/promotion/validationRun.d.ts +2 -0
- package/dist/v1/promotion/validationRun.d.ts.map +1 -1
- package/dist/v1/promotion/validationRun.js +2 -2
- package/dist/v1/promotion/validationRun.js.map +1 -1
- package/dist/v1/run/find.d.ts +1 -1
- package/dist/v1/run/get.d.ts +3 -3
- package/dist/v1/run/index.d.ts +1 -0
- package/dist/v1/run/index.d.ts.map +1 -1
- package/dist/v1/run/index.js +1 -1
- package/dist/v1/run/index.js.map +1 -1
- package/dist/v1/run/summary.d.ts +1 -1
- package/dist/v1/runEventsWebhook/index.d.ts +10 -10
- package/dist/v1/runner/journal.d.ts +1 -1
- package/dist/v1/runner/journal.d.ts.map +1 -1
- package/dist/v1/runner/journal.js +1 -0
- package/dist/v1/runner/journal.js.map +1 -1
- package/dist/v1/suggestion/decide.d.ts +90 -0
- package/dist/v1/suggestion/decide.d.ts.map +1 -0
- package/dist/v1/suggestion/decide.js +35 -0
- package/dist/v1/suggestion/decide.js.map +1 -0
- package/dist/v1/suggestion/find.d.ts +87 -0
- package/dist/v1/suggestion/find.d.ts.map +1 -0
- package/dist/v1/suggestion/find.js +40 -0
- package/dist/v1/suggestion/find.js.map +1 -0
- package/dist/v1/suggestion/get.d.ts +78 -0
- package/dist/v1/suggestion/get.d.ts.map +1 -0
- package/dist/v1/suggestion/get.js +27 -0
- package/dist/v1/suggestion/get.js.map +1 -0
- package/dist/v1/suggestion/index.d.ts +240 -0
- package/dist/v1/suggestion/index.d.ts.map +1 -0
- package/dist/v1/suggestion/index.js +9 -0
- package/dist/v1/suggestion/index.js.map +1 -0
- package/dist/v1/suggestion/resource.d.ts +70 -0
- package/dist/v1/suggestion/resource.d.ts.map +1 -0
- package/dist/v1/suggestion/resource.js +63 -0
- package/dist/v1/suggestion/resource.js.map +1 -0
- package/package.json +1 -1
- package/dist/v1/issue/decideSuggestion.d.ts +0 -82
- package/dist/v1/issue/decideSuggestion.d.ts.map +0 -1
- package/dist/v1/issue/decideSuggestion.js +0 -40
- package/dist/v1/issue/decideSuggestion.js.map +0 -1
|
@@ -40,8 +40,52 @@ export declare const makeResolvePromotionContract: <AiTaskId extends PublicIdSch
|
|
|
40
40
|
targetCommitHash: z.ZodString;
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
42
|
createdAt: z.ZodISODateTime;
|
|
43
|
+
decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
candidateRuns: z.ZodArray<z.ZodObject<{
|
|
45
|
+
candidate: z.ZodEnum<{
|
|
46
|
+
combined: "combined";
|
|
47
|
+
head: "head";
|
|
48
|
+
base: "base";
|
|
49
|
+
}>;
|
|
50
|
+
outcome: z.ZodEnum<{
|
|
51
|
+
passed: "passed";
|
|
52
|
+
failed: "failed";
|
|
53
|
+
inconclusive: "inconclusive";
|
|
54
|
+
}>;
|
|
55
|
+
runId: RunId;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
kept: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
combined: "combined";
|
|
59
|
+
head: "head";
|
|
60
|
+
base: "base";
|
|
61
|
+
}>>;
|
|
62
|
+
path: z.ZodString;
|
|
63
|
+
reason: z.ZodString;
|
|
64
|
+
sourceCommitHash: z.ZodString;
|
|
65
|
+
targetCommitHash: z.ZodString;
|
|
66
|
+
type: z.ZodEnum<{
|
|
67
|
+
"picked-by-run": "picked-by-run";
|
|
68
|
+
combined: "combined";
|
|
69
|
+
"kept-more-checks": "kept-more-checks";
|
|
70
|
+
"needs-person": "needs-person";
|
|
71
|
+
}>;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
43
73
|
headEnvironmentId: EnvironmentId;
|
|
44
74
|
id: PromotionId;
|
|
75
|
+
needsPerson: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
+
path: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
reason: z.ZodEnum<{
|
|
80
|
+
"undecided-paths": "undecided-paths";
|
|
81
|
+
"run-limit-reached": "run-limit-reached";
|
|
82
|
+
"flows-undetermined": "flows-undetermined";
|
|
83
|
+
"agent-stopped": "agent-stopped";
|
|
84
|
+
"agent-failed": "agent-failed";
|
|
85
|
+
"agent-not-started": "agent-not-started";
|
|
86
|
+
"agent-resolution-off": "agent-resolution-off";
|
|
87
|
+
}>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
45
89
|
promotedCommitHash: z.ZodOptional<z.ZodString>;
|
|
46
90
|
settledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
47
91
|
status: z.ZodEnum<{
|
|
@@ -57,6 +101,7 @@ export declare const makeResolvePromotionContract: <AiTaskId extends PublicIdSch
|
|
|
57
101
|
runId: RunId;
|
|
58
102
|
runMode: z.ZodEnum<{
|
|
59
103
|
"confirm-after": "confirm-after";
|
|
104
|
+
"choose-version": "choose-version";
|
|
60
105
|
}>;
|
|
61
106
|
sourceCommitHash: z.ZodString;
|
|
62
107
|
targetCommitHash: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UAAY,CAAC;AAe9C,eAAO,MAAM,4BAA4B,GACvC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC;CACZ
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UAAY,CAAC;AAe9C,eAAO,MAAM,4BAA4B,GACvC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DA,CAAC"}
|
|
@@ -23,8 +23,52 @@ export declare const makePromotionResourceSchema: <AiTaskId extends PublicIdSche
|
|
|
23
23
|
targetCommitHash: z.ZodString;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
createdAt: z.ZodISODateTime;
|
|
26
|
+
decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
candidateRuns: z.ZodArray<z.ZodObject<{
|
|
28
|
+
candidate: z.ZodEnum<{
|
|
29
|
+
combined: "combined";
|
|
30
|
+
head: "head";
|
|
31
|
+
base: "base";
|
|
32
|
+
}>;
|
|
33
|
+
outcome: z.ZodEnum<{
|
|
34
|
+
passed: "passed";
|
|
35
|
+
failed: "failed";
|
|
36
|
+
inconclusive: "inconclusive";
|
|
37
|
+
}>;
|
|
38
|
+
runId: RunId;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
kept: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
combined: "combined";
|
|
42
|
+
head: "head";
|
|
43
|
+
base: "base";
|
|
44
|
+
}>>;
|
|
45
|
+
path: z.ZodString;
|
|
46
|
+
reason: z.ZodString;
|
|
47
|
+
sourceCommitHash: z.ZodString;
|
|
48
|
+
targetCommitHash: z.ZodString;
|
|
49
|
+
type: z.ZodEnum<{
|
|
50
|
+
"picked-by-run": "picked-by-run";
|
|
51
|
+
combined: "combined";
|
|
52
|
+
"kept-more-checks": "kept-more-checks";
|
|
53
|
+
"needs-person": "needs-person";
|
|
54
|
+
}>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
26
56
|
headEnvironmentId: EnvironmentId;
|
|
27
57
|
id: PromotionId;
|
|
58
|
+
needsPerson: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
path: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>>;
|
|
62
|
+
reason: z.ZodEnum<{
|
|
63
|
+
"undecided-paths": "undecided-paths";
|
|
64
|
+
"run-limit-reached": "run-limit-reached";
|
|
65
|
+
"flows-undetermined": "flows-undetermined";
|
|
66
|
+
"agent-stopped": "agent-stopped";
|
|
67
|
+
"agent-failed": "agent-failed";
|
|
68
|
+
"agent-not-started": "agent-not-started";
|
|
69
|
+
"agent-resolution-off": "agent-resolution-off";
|
|
70
|
+
}>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
28
72
|
promotedCommitHash: z.ZodOptional<z.ZodString>;
|
|
29
73
|
settledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
30
74
|
status: z.ZodEnum<{
|
|
@@ -40,6 +84,7 @@ export declare const makePromotionResourceSchema: <AiTaskId extends PublicIdSche
|
|
|
40
84
|
runId: RunId;
|
|
41
85
|
runMode: z.ZodEnum<{
|
|
42
86
|
"confirm-after": "confirm-after";
|
|
87
|
+
"choose-version": "choose-version";
|
|
43
88
|
}>;
|
|
44
89
|
sourceCommitHash: z.ZodString;
|
|
45
90
|
targetCommitHash: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAOhD,eAAO,MAAM,qBAAqB;;;;;;;EAW/B,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAoBpE,eAAO,MAAM,2BAA2B,GACtC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoDE,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { resource } from "../resource.js";
|
|
3
|
+
import { makePromotionDecisionSchema } from "./decision.js";
|
|
4
|
+
import { promotionNeedsPersonSchema } from "./needsPerson.js";
|
|
3
5
|
import { makePromotionValidationRunSchema } from "./validationRun.js";
|
|
4
6
|
export const promotionStatusSchema = z
|
|
5
7
|
.enum([
|
|
@@ -31,8 +33,15 @@ export const makePromotionResourceSchema = (ids) => resource({
|
|
|
31
33
|
.optional()
|
|
32
34
|
.describe("The conflict awaiting resolution. Present while status is conflicted or resolving. A resolution must name both commit hashes and cover exactly these paths; if either branch moves, the conflict is recomputed and this changes."),
|
|
33
35
|
createdAt: z.iso.datetime().describe("When the promotion was requested."),
|
|
36
|
+
decisions: z
|
|
37
|
+
.array(makePromotionDecisionSchema(ids))
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("How the resolution agent settled each conflicting path it decided by running the versions, or why it left one for a person. Absent when it reported none."),
|
|
34
40
|
headEnvironmentId: ids.environment.describe("The environment whose flow changes are promoted."),
|
|
35
41
|
id: ids.promotion,
|
|
42
|
+
needsPerson: promotionNeedsPersonSchema
|
|
43
|
+
.optional()
|
|
44
|
+
.describe("Present while the current conflict waits on a person, with why. Absent once a resolution is submitted, the conflict is recomputed, or the promotion settles."),
|
|
36
45
|
promotedCommitHash: z
|
|
37
46
|
.string()
|
|
38
47
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../../src/v1/promotion/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,g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ACV,QAAQ,CACP,+LAA+L,CAChM;IACH,iBAAiB,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CACzC,gDAAgD,CACjD;IACD,QAAQ,EAAE,cAAc;SACrB,QAAQ,EAAE;SACV,QAAQ,CACP,kOAAkO,CACnO;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACzE,SAAS,EAAE,CAAC;SACT,KAAK,CAAC,2BAA2B,CAAC,GAAG,CAAC,CAAC;SACvC,QAAQ,EAAE;SACV,QAAQ,CACP,2JAA2J,CAC5J;IACH,iBAAiB,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CACzC,kDAAkD,CACnD;IACD,EAAE,EAAE,GAAG,CAAC,SAAS;IACjB,WAAW,EAAE,0BAA0B;SACpC,QAAQ,EAAE;SACV,QAAQ,CACP,8JAA8J,CAC/J;IACH,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,8GAA8G,CAC/G;IACH,SAAS,EAAE,CAAC,CAAC,GAAG;SACb,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,wFAAwF,CACzF;IACH,MAAM,EAAE,qBAAqB;IAC7B,cAAc,EAAE,CAAC;SACd,KAAK,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC;SAC5C,QAAQ,CACP,iMAAiM,CAClM;CACJ,EACD,EAAE,mBAAmB,EAAE,8CAA8C,EAAE,CACxE,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import type { PublicIdSchema } from "../ids.js";
|
|
3
3
|
export declare const resolutionRunModeSchema: z.ZodEnum<{
|
|
4
4
|
"confirm-after": "confirm-after";
|
|
5
|
+
"choose-version": "choose-version";
|
|
5
6
|
}>;
|
|
6
7
|
export declare const makePromotionValidationRunSchema: <AiTaskId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
7
8
|
aiTask: AiTaskId;
|
|
@@ -11,6 +12,7 @@ export declare const makePromotionValidationRunSchema: <AiTaskId extends PublicI
|
|
|
11
12
|
runId: RunId;
|
|
12
13
|
runMode: z.ZodEnum<{
|
|
13
14
|
"confirm-after": "confirm-after";
|
|
15
|
+
"choose-version": "choose-version";
|
|
14
16
|
}>;
|
|
15
17
|
sourceCommitHash: z.ZodString;
|
|
16
18
|
targetCommitHash: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationRun.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/validationRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"validationRun.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/validationRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,eAAO,MAAM,uBAAuB;;;EAIjC,CAAC;AAEJ,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,SAAS,cAAc,EAC/B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;iBAWG,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const resolutionRunModeSchema = z
|
|
3
|
-
.enum(["confirm-after"])
|
|
4
|
-
.describe("Why a promotion conflict resolution task runs flows. confirm-after confirms a finished resolution before it is submitted.");
|
|
3
|
+
.enum(["confirm-after", "choose-version"])
|
|
4
|
+
.describe("Why a promotion conflict resolution task runs flows. confirm-after confirms a finished resolution before it is submitted; choose-version runs one version of an undecided path to choose between them.");
|
|
5
5
|
export const makePromotionValidationRunSchema = (ids) => z.object({
|
|
6
6
|
aiTaskId: ids.aiTask.describe("The resolution task that started the run."),
|
|
7
7
|
runId: ids.run,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationRun.js","sourceRoot":"","sources":["../../../src/v1/promotion/validationRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"validationRun.js","sourceRoot":"","sources":["../../../src/v1/promotion/validationRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,IAAI,CAAC,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;KACzC,QAAQ,CACP,wMAAwM,CACzM,CAAC;AAEJ,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAG9C,GAGD,EAAE,EAAE,CACH,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IAC1E,KAAK,EAAE,GAAG,CAAC,GAAG;IACd,OAAO,EAAE,uBAAuB;IAChC,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,CAAC,0DAA0D,CAAC;IACvE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,CAAC,0DAA0D,CAAC;CACxE,CAAC,CAAC"}
|
package/dist/v1/run/find.d.ts
CHANGED
|
@@ -43,10 +43,10 @@ export declare const makeFindRunsContract: <RunId extends PublicIdSchema, Worksp
|
|
|
43
43
|
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
44
44
|
runId: RunId;
|
|
45
45
|
status: z.ZodEnum<{
|
|
46
|
+
passed: "passed";
|
|
46
47
|
failed: "failed";
|
|
47
48
|
queued: "queued";
|
|
48
49
|
running: "running";
|
|
49
|
-
passed: "passed";
|
|
50
50
|
canceled: "canceled";
|
|
51
51
|
superseded: "superseded";
|
|
52
52
|
}>;
|
package/dist/v1/run/get.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
|
|
|
21
21
|
readonly description: "Get a run's status, per-flow results, links, and how many of its bugs are blocking. Call it without waitSeconds for an immediate answer. To wait on a run that is still queued or running, pass waitSeconds up to 45: the server holds the check open and answers the moment the status changes. A held check also waits while the run is still being created. After a held check returns, call again only while status is queued or running. Stop when status is passed, failed, canceled, or superseded.";
|
|
22
22
|
readonly input: z.ZodObject<{
|
|
23
23
|
flowStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
24
|
+
passed: "passed";
|
|
24
25
|
failed: "failed";
|
|
25
26
|
queued: "queued";
|
|
26
27
|
running: "running";
|
|
27
|
-
passed: "passed";
|
|
28
28
|
canceled: "canceled";
|
|
29
29
|
}>>>;
|
|
30
30
|
runId: RunId;
|
|
@@ -174,9 +174,9 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
|
|
|
174
174
|
flowId: FlowId;
|
|
175
175
|
name: z.ZodString;
|
|
176
176
|
status: z.ZodEnum<{
|
|
177
|
+
passed: "passed";
|
|
177
178
|
queued: "queued";
|
|
178
179
|
running: "running";
|
|
179
|
-
passed: "passed";
|
|
180
180
|
canceled: "canceled";
|
|
181
181
|
}>;
|
|
182
182
|
}, z.core.$strip>], "status">>;
|
|
@@ -209,10 +209,10 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
|
|
|
209
209
|
}, z.core.$strip>;
|
|
210
210
|
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
211
211
|
status: z.ZodEnum<{
|
|
212
|
+
passed: "passed";
|
|
212
213
|
failed: "failed";
|
|
213
214
|
queued: "queued";
|
|
214
215
|
running: "running";
|
|
215
|
-
passed: "passed";
|
|
216
216
|
canceled: "canceled";
|
|
217
217
|
superseded: "superseded";
|
|
218
218
|
}>;
|
package/dist/v1/run/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const makeCreateRunContract: <AiTaskId extends PublicIdSchema, Ch
|
|
|
33
33
|
repository: z.ZodOptional<z.ZodString>;
|
|
34
34
|
resolutionRunMode: z.ZodOptional<z.ZodEnum<{
|
|
35
35
|
"confirm-after": "confirm-after";
|
|
36
|
+
"choose-version": "choose-version";
|
|
36
37
|
}>>;
|
|
37
38
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
38
39
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,cAAc,EAA8B,MAAM,WAAW,CAAC;AAI5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,eAAO,MAAM,qBAAqB,GAChC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,cAAc,EAA8B,MAAM,WAAW,CAAC;AAI5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,eAAO,MAAM,qBAAqB,GAChC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HA,CAAC"}
|
package/dist/v1/run/index.js
CHANGED
|
@@ -54,7 +54,7 @@ export const makeCreateRunContract = (ids) => {
|
|
|
54
54
|
.optional(),
|
|
55
55
|
resolutionRunMode: resolutionRunModeSchema
|
|
56
56
|
.optional()
|
|
57
|
-
.describe('Required when aiTaskId names a promotion conflict resolution task: why it runs flows. "confirm-after" confirms a finished resolution before it is submitted.'),
|
|
57
|
+
.describe('Required when aiTaskId names a promotion conflict resolution task: why it runs flows. "confirm-after" confirms a finished resolution before it is submitted; "choose-version" runs one version of an undecided path to choose between them.'),
|
|
58
58
|
workspaceId: workspaceForEnvironmentRef(ids.workspace),
|
|
59
59
|
})
|
|
60
60
|
.and(makeFlowSelectionSchema(ids))
|
package/dist/v1/run/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAA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,CAAC,CAAC,MAAM,CAAC;YACP,MAAM,EAAE,GAAG,CAAC,IAAI;YAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;YAClD,MAAM,EAAE,CAAC;iBACN,IAAI,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;iBAClC,QAAQ,CACP,mJAAmJ,CACpJ;SACJ,CAAC,CACH;aACA,QAAQ,CACP,oIAAoI,CACrI;QACH,KAAK,EAAE,GAAG,CAAC,GAAG;QACd,QAAQ,EAAE,CAAC;aACR,IAAI,CAAC,CAAC,YAAY,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;aAC/C,QAAQ,CACP,gRAAgR,CACjR;KACJ,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,qDAAqD;YACtE,aAAa,EACX,kGAAkG;YACpG,YAAY,EAAE,yDAAyD;SACxE;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,oEAAoE;QACtE,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,YAAY;QAClB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/v1/run/summary.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ export declare const makeRunSummaryFields: <RunId extends PublicIdSchema>(ids: {
|
|
|
23
23
|
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
runId: RunId;
|
|
25
25
|
status: z.ZodEnum<{
|
|
26
|
+
passed: "passed";
|
|
26
27
|
failed: "failed";
|
|
27
28
|
queued: "queued";
|
|
28
29
|
running: "running";
|
|
29
|
-
passed: "passed";
|
|
30
30
|
canceled: "canceled";
|
|
31
31
|
superseded: "superseded";
|
|
32
32
|
}>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const publicFlowExecutionStatusSchema: z.ZodEnum<{
|
|
3
|
+
passed: "passed";
|
|
3
4
|
failed: "failed";
|
|
4
5
|
queued: "queued";
|
|
5
6
|
running: "running";
|
|
6
|
-
passed: "passed";
|
|
7
7
|
canceled: "canceled";
|
|
8
8
|
}>;
|
|
9
9
|
export type PublicFlowExecutionStatus = z.infer<typeof publicFlowExecutionStatusSchema>;
|
|
10
10
|
export declare const publicRunExecutionStatusSchema: z.ZodEnum<{
|
|
11
|
+
passed: "passed";
|
|
11
12
|
failed: "failed";
|
|
12
13
|
queued: "queued";
|
|
13
14
|
running: "running";
|
|
14
|
-
passed: "passed";
|
|
15
15
|
canceled: "canceled";
|
|
16
16
|
superseded: "superseded";
|
|
17
17
|
}>;
|
|
18
18
|
export type PublicRunExecutionStatus = z.infer<typeof publicRunExecutionStatusSchema>;
|
|
19
19
|
declare const publicFlowStatusEntrySchema: z.ZodObject<{
|
|
20
20
|
status: z.ZodEnum<{
|
|
21
|
+
passed: "passed";
|
|
21
22
|
failed: "failed";
|
|
22
23
|
queued: "queued";
|
|
23
24
|
running: "running";
|
|
24
|
-
passed: "passed";
|
|
25
25
|
canceled: "canceled";
|
|
26
26
|
}>;
|
|
27
27
|
timestamp: z.ZodISODateTime;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
declare const publicRunStatusEntrySchema: z.ZodObject<{
|
|
30
30
|
status: z.ZodEnum<{
|
|
31
|
+
passed: "passed";
|
|
31
32
|
failed: "failed";
|
|
32
33
|
queued: "queued";
|
|
33
34
|
running: "running";
|
|
34
|
-
passed: "passed";
|
|
35
35
|
canceled: "canceled";
|
|
36
36
|
superseded: "superseded";
|
|
37
37
|
}>;
|
|
@@ -52,10 +52,10 @@ declare const publicRunStatusChangedEventSchema: z.ZodObject<{
|
|
|
52
52
|
runId: z.ZodString;
|
|
53
53
|
statuses: z.ZodArray<z.ZodObject<{
|
|
54
54
|
status: z.ZodEnum<{
|
|
55
|
+
passed: "passed";
|
|
55
56
|
failed: "failed";
|
|
56
57
|
queued: "queued";
|
|
57
58
|
running: "running";
|
|
58
|
-
passed: "passed";
|
|
59
59
|
canceled: "canceled";
|
|
60
60
|
superseded: "superseded";
|
|
61
61
|
}>;
|
|
@@ -83,10 +83,10 @@ declare const publicFlowStatusChangedEventSchema: z.ZodObject<{
|
|
|
83
83
|
runId: z.ZodString;
|
|
84
84
|
statuses: z.ZodArray<z.ZodObject<{
|
|
85
85
|
status: z.ZodEnum<{
|
|
86
|
+
passed: "passed";
|
|
86
87
|
failed: "failed";
|
|
87
88
|
queued: "queued";
|
|
88
89
|
running: "running";
|
|
89
|
-
passed: "passed";
|
|
90
90
|
canceled: "canceled";
|
|
91
91
|
}>;
|
|
92
92
|
timestamp: z.ZodISODateTime;
|
|
@@ -111,10 +111,10 @@ export declare const publicRunEventsWebhookEventSchema: z.ZodDiscriminatedUnion<
|
|
|
111
111
|
runId: z.ZodString;
|
|
112
112
|
statuses: z.ZodArray<z.ZodObject<{
|
|
113
113
|
status: z.ZodEnum<{
|
|
114
|
+
passed: "passed";
|
|
114
115
|
failed: "failed";
|
|
115
116
|
queued: "queued";
|
|
116
117
|
running: "running";
|
|
117
|
-
passed: "passed";
|
|
118
118
|
canceled: "canceled";
|
|
119
119
|
superseded: "superseded";
|
|
120
120
|
}>;
|
|
@@ -141,10 +141,10 @@ export declare const publicRunEventsWebhookEventSchema: z.ZodDiscriminatedUnion<
|
|
|
141
141
|
runId: z.ZodString;
|
|
142
142
|
statuses: z.ZodArray<z.ZodObject<{
|
|
143
143
|
status: z.ZodEnum<{
|
|
144
|
+
passed: "passed";
|
|
144
145
|
failed: "failed";
|
|
145
146
|
queued: "queued";
|
|
146
147
|
running: "running";
|
|
147
|
-
passed: "passed";
|
|
148
148
|
canceled: "canceled";
|
|
149
149
|
}>;
|
|
150
150
|
timestamp: z.ZodISODateTime;
|
|
@@ -170,10 +170,10 @@ export declare const publicRunEventsWebhookRequestSchema: z.ZodObject<{
|
|
|
170
170
|
runId: z.ZodString;
|
|
171
171
|
statuses: z.ZodArray<z.ZodObject<{
|
|
172
172
|
status: z.ZodEnum<{
|
|
173
|
+
passed: "passed";
|
|
173
174
|
failed: "failed";
|
|
174
175
|
queued: "queued";
|
|
175
176
|
running: "running";
|
|
176
|
-
passed: "passed";
|
|
177
177
|
canceled: "canceled";
|
|
178
178
|
superseded: "superseded";
|
|
179
179
|
}>;
|
|
@@ -200,10 +200,10 @@ export declare const publicRunEventsWebhookRequestSchema: z.ZodObject<{
|
|
|
200
200
|
runId: z.ZodString;
|
|
201
201
|
statuses: z.ZodArray<z.ZodObject<{
|
|
202
202
|
status: z.ZodEnum<{
|
|
203
|
+
passed: "passed";
|
|
203
204
|
failed: "failed";
|
|
204
205
|
queued: "queued";
|
|
205
206
|
running: "running";
|
|
206
|
-
passed: "passed";
|
|
207
207
|
canceled: "canceled";
|
|
208
208
|
}>;
|
|
209
209
|
timestamp: z.ZodISODateTime;
|
|
@@ -26,7 +26,7 @@ export declare const journalEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
26
26
|
recordedAt: string;
|
|
27
27
|
sequence: number;
|
|
28
28
|
}>>;
|
|
29
|
-
export declare const knownJournalStreams: readonly ["console", "recorder", "run-events", "run-logs", "run-status"];
|
|
29
|
+
export declare const knownJournalStreams: readonly ["console", "network", "recorder", "run-events", "run-logs", "run-status"];
|
|
30
30
|
export type KnownJournalStream = (typeof knownJournalStreams)[number];
|
|
31
31
|
/**
|
|
32
32
|
* An open set, so a later change can add a stream without breaking consumers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH,qDAAqD;AACrD,MAAM,MAAM,YAAY,CAAC,OAAO,IAAI;IAClC,OAAO,EAAE,OAA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AAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACpC,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC5C,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACxD,CAA0C,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeDecideSuggestionContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema>(ids: {
|
|
4
|
+
environment: EnvironmentId;
|
|
5
|
+
flow: FlowId;
|
|
6
|
+
issue: IssueId;
|
|
7
|
+
suggestion: PublicIdSchema;
|
|
8
|
+
}) => {
|
|
9
|
+
readonly annotationJustifications: {
|
|
10
|
+
readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
|
|
11
|
+
readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
|
|
12
|
+
readonly readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.";
|
|
13
|
+
};
|
|
14
|
+
readonly annotations: {
|
|
15
|
+
readonly destructiveHint: false;
|
|
16
|
+
readonly openWorldHint: true;
|
|
17
|
+
readonly readOnlyHint: false;
|
|
18
|
+
};
|
|
19
|
+
readonly description: string;
|
|
20
|
+
readonly input: z.ZodObject<{
|
|
21
|
+
decision: z.ZodEnum<{
|
|
22
|
+
add: "add";
|
|
23
|
+
report: "report";
|
|
24
|
+
skip: "skip";
|
|
25
|
+
undo: "undo";
|
|
26
|
+
activate: "activate";
|
|
27
|
+
}>;
|
|
28
|
+
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
"not-worth-testing": "not-worth-testing";
|
|
30
|
+
"already-covered": "already-covered";
|
|
31
|
+
"feature-removed": "feature-removed";
|
|
32
|
+
}>>;
|
|
33
|
+
suggestionId: PublicIdSchema;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
readonly kind: "write";
|
|
36
|
+
readonly name: "suggestion.decide";
|
|
37
|
+
readonly output: z.ZodObject<{
|
|
38
|
+
suggestion: z.ZodObject<{
|
|
39
|
+
decidedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
40
|
+
decisions: z.ZodArray<z.ZodEnum<{
|
|
41
|
+
add: "add";
|
|
42
|
+
report: "report";
|
|
43
|
+
skip: "skip";
|
|
44
|
+
undo: "undo";
|
|
45
|
+
activate: "activate";
|
|
46
|
+
}>>;
|
|
47
|
+
environmentId: EnvironmentId;
|
|
48
|
+
environmentName: z.ZodString;
|
|
49
|
+
flow: z.ZodObject<{
|
|
50
|
+
flowId: z.ZodOptional<FlowId>;
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
holdReason: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
"path-taken": "path-taken";
|
|
55
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
56
|
+
"merge-conflicted": "merge-conflicted";
|
|
57
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
58
|
+
}>>;
|
|
59
|
+
issue: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
issueId: IssueId;
|
|
61
|
+
type: z.ZodEnum<{
|
|
62
|
+
bug: "bug";
|
|
63
|
+
coverageRequest: "coverageRequest";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
kind: z.ZodEnum<{
|
|
67
|
+
"new-flow": "new-flow";
|
|
68
|
+
"potential-bug": "potential-bug";
|
|
69
|
+
}>;
|
|
70
|
+
location: z.ZodString;
|
|
71
|
+
reason: z.ZodString;
|
|
72
|
+
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
"not-worth-testing": "not-worth-testing";
|
|
74
|
+
"already-covered": "already-covered";
|
|
75
|
+
"feature-removed": "feature-removed";
|
|
76
|
+
}>>;
|
|
77
|
+
state: z.ZodEnum<{
|
|
78
|
+
skipped: "skipped";
|
|
79
|
+
accepted: "accepted";
|
|
80
|
+
waiting: "waiting";
|
|
81
|
+
expired: "expired";
|
|
82
|
+
}>;
|
|
83
|
+
suggestedAt: z.ZodISODateTime;
|
|
84
|
+
suggestionId: PublicIdSchema;
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
url: z.ZodURL;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=decide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decide.d.ts","sourceRoot":"","sources":["../../../src/v1/suggestion/decide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;CAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CA,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { makeSuggestionResourceSchema, suggestionDecisionSchema, suggestionSkipReasonSchema, } from "./resource.js";
|
|
3
|
+
export const makeDecideSuggestionContract = (ids) => {
|
|
4
|
+
const input = z
|
|
5
|
+
.object({
|
|
6
|
+
decision: suggestionDecisionSchema,
|
|
7
|
+
skipReason: suggestionSkipReasonSchema
|
|
8
|
+
.optional()
|
|
9
|
+
.describe("Why the suggestion is skipped. Required for skip."),
|
|
10
|
+
suggestionId: ids.suggestion.describe("The id of the coverage suggestion, from suggestion.find or a new suggestions notification."),
|
|
11
|
+
})
|
|
12
|
+
.refine(({ decision, skipReason }) => decision !== "skip" || skipReason !== undefined, { message: "skipReason is required when the decision is skip." });
|
|
13
|
+
const output = z.object({ suggestion: makeSuggestionResourceSchema(ids) });
|
|
14
|
+
return {
|
|
15
|
+
annotationJustifications: {
|
|
16
|
+
destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.",
|
|
17
|
+
openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.",
|
|
18
|
+
readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.",
|
|
19
|
+
},
|
|
20
|
+
annotations: {
|
|
21
|
+
destructiveHint: false,
|
|
22
|
+
openWorldHint: true,
|
|
23
|
+
readOnlyHint: false,
|
|
24
|
+
},
|
|
25
|
+
description: "Decide a coverage suggestion QA Wolf made while exploring an environment, as the signed-in person. " +
|
|
26
|
+
"Add turns on the suggested flow in the environment. Report files the potential bug. Skip declines the suggestion and needs a skipReason. " +
|
|
27
|
+
"Undo takes back a decision. Activate retries a held suggestion. Only the decisions suggestion.get lists take effect. " +
|
|
28
|
+
"Use this, not issue.update, to accept or skip a suggestion.",
|
|
29
|
+
input,
|
|
30
|
+
kind: "write",
|
|
31
|
+
name: "suggestion.decide",
|
|
32
|
+
output,
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=decide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decide.js","sourceRoot":"","sources":["../../../src/v1/suggestion/decide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAI1C,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,QAAQ,EAAE,wBAAwB;QAClC,UAAU,EAAE,0BAA0B;aACnC,QAAQ,EAAE;aACV,QAAQ,CAAC,mDAAmD,CAAC;QAChE,YAAY,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ,CACnC,4FAA4F,CAC7F;KACF,CAAC;SACD,MAAM,CACL,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAC3B,QAAQ,KAAK,MAAM,IAAI,UAAU,KAAK,SAAS,EACjD,EAAE,OAAO,EAAE,mDAAmD,EAAE,CACjE,CAAC;IACJ,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,4BAA4B,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAE3E,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,4EAA4E;YAC9E,aAAa,EACX,gFAAgF;YAClF,YAAY,EACV,2EAA2E;SAC9E;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,qGAAqG;YACrG,2IAA2I;YAC3I,uHAAuH;YACvH,6DAA6D;QAC/D,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,mBAAmB;QACzB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|