@qawolf/api-contracts 0.26.0 → 0.29.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/environment/find.d.ts +3 -1
- package/dist/v1/environment/find.d.ts.map +1 -1
- package/dist/v1/environment/find.js +3 -0
- package/dist/v1/environment/find.js.map +1 -1
- package/dist/v1/environment/index.d.ts +1 -1
- package/dist/v1/environment/index.js +2 -2
- package/dist/v1/environment/index.js.map +1 -1
- package/dist/v1/environment/resource.js +1 -1
- package/dist/v1/environment/resource.js.map +1 -1
- package/dist/v1/index.d.ts +328 -126
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +13 -3
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/issue/create.js +1 -1
- package/dist/v1/issue/create.js.map +1 -1
- package/dist/v1/issue/index.js +1 -1
- package/dist/v1/issue/index.js.map +1 -1
- package/dist/v1/run/reattempt.d.ts +21 -0
- package/dist/v1/run/reattempt.d.ts.map +1 -0
- package/dist/v1/run/reattempt.js +34 -0
- package/dist/v1/run/reattempt.js.map +1 -0
- package/dist/v1/runner/environment.d.ts.map +1 -1
- package/dist/v1/runner/environment.js +11 -8
- package/dist/v1/runner/environment.js.map +1 -1
- package/dist/v1/runner/evaluateSnippet.d.ts +5 -2
- package/dist/v1/runner/evaluateSnippet.d.ts.map +1 -1
- package/dist/v1/runner/evaluateSnippet.js +4 -3
- package/dist/v1/runner/evaluateSnippet.js.map +1 -1
- package/dist/v1/runner/identity.d.ts +8 -8
- package/dist/v1/runner/identity.js +5 -5
- package/dist/v1/runner/identity.js.map +1 -1
- package/dist/v1/runner/importPackage.d.ts +23 -0
- package/dist/v1/runner/importPackage.d.ts.map +1 -0
- package/dist/v1/runner/importPackage.js +33 -0
- package/dist/v1/runner/importPackage.js.map +1 -0
- package/dist/v1/runner/index.d.ts +16 -20
- package/dist/v1/runner/index.d.ts.map +1 -1
- package/dist/v1/runner/index.js +14 -12
- package/dist/v1/runner/index.js.map +1 -1
- package/dist/v1/runner/inspect.d.ts +42 -0
- package/dist/v1/runner/inspect.d.ts.map +1 -0
- package/dist/v1/runner/inspect.js +61 -0
- package/dist/v1/runner/inspect.js.map +1 -0
- package/dist/v1/runner/outcome.d.ts +6 -0
- package/dist/v1/runner/outcome.d.ts.map +1 -0
- package/dist/v1/runner/outcome.js +8 -0
- package/dist/v1/runner/outcome.js.map +1 -0
- package/dist/v1/runner/payloadSize.d.ts +6 -0
- package/dist/v1/runner/payloadSize.d.ts.map +1 -1
- package/dist/v1/runner/payloadSize.js +8 -2
- package/dist/v1/runner/payloadSize.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +13 -12
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +17 -10
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/readJournal.d.ts +5 -2
- package/dist/v1/runner/readJournal.d.ts.map +1 -1
- package/dist/v1/runner/readJournal.js +4 -3
- package/dist/v1/runner/readJournal.js.map +1 -1
- package/dist/v1/runner/runFlow.d.ts +28 -15
- package/dist/v1/runner/runFlow.d.ts.map +1 -1
- package/dist/v1/runner/runFlow.js +56 -10
- package/dist/v1/runner/runFlow.js.map +1 -1
- package/dist/v1/runner/runSelection.d.ts +8 -0
- package/dist/v1/runner/runSelection.d.ts.map +1 -0
- package/dist/v1/runner/runSelection.js +19 -0
- package/dist/v1/runner/runSelection.js.map +1 -0
- package/dist/v1/runner/screen.d.ts +2 -11
- package/dist/v1/runner/screen.d.ts.map +1 -1
- package/dist/v1/runner/screen.js +7 -12
- package/dist/v1/runner/screen.js.map +1 -1
- package/dist/v1/runner/stopRun.d.ts +19 -0
- package/dist/v1/runner/stopRun.d.ts.map +1 -0
- package/dist/v1/runner/stopRun.js +26 -0
- package/dist/v1/runner/stopRun.js.map +1 -0
- package/dist/v1/runner/takeScreenshot.d.ts +9 -9
- package/dist/v1/runner/takeScreenshot.d.ts.map +1 -1
- package/dist/v1/runner/takeScreenshot.js +8 -7
- package/dist/v1/runner/takeScreenshot.js.map +1 -1
- package/dist/v1/runner/unreachable.d.ts +4 -7
- package/dist/v1/runner/unreachable.d.ts.map +1 -1
- package/dist/v1/runner/unreachable.js +4 -7
- package/dist/v1/runner/unreachable.js.map +1 -1
- package/dist/v1/tag/index.d.ts +5 -1
- package/dist/v1/tag/index.d.ts.map +1 -1
- package/dist/v1/tag/index.js +4 -1
- package/dist/v1/tag/index.js.map +1 -1
- package/dist/v1/tag/list.d.ts +3 -1
- package/dist/v1/tag/list.d.ts.map +1 -1
- package/dist/v1/tag/list.js +3 -0
- package/dist/v1/tag/list.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EACL,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAK/D,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;
|
|
1
|
+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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
|
package/dist/v1/index.js
CHANGED
|
@@ -12,11 +12,13 @@ export { runEnvironmentSchema } from "./runner/environment.js";
|
|
|
12
12
|
// server and the runner validate with, so they are shared rather than restated.
|
|
13
13
|
export { isShippableRunFilePath, runFilePathSchema, runPackageJsonPath, shippableRunFileExtensions, } from "./runner/files.js";
|
|
14
14
|
export { makeRunnerSchema, runnerIdSchema, runnerNameSchema, } from "./runner/identity.js";
|
|
15
|
+
export { inspectRequestSchema, } from "./runner/inspect.js";
|
|
15
16
|
// A journal read is answered verbatim by the public API, so its wire shapes are
|
|
16
17
|
// published here and the private journal package imports them from here.
|
|
17
18
|
export { journalEntrySchema, journalStreamSchema, knownJournalStreams, maxJournalStreamNameLength, readJournalRequestSchema, readJournalResponseSchema, } from "./runner/journal.js";
|
|
18
19
|
export { maxRunFilesByteLength, maxRunnerRequestEncodedByteLength, runFilesByteLength, runFilesSchema, } from "./runner/payloadSize.js";
|
|
19
20
|
export { maxActionErrorMessageLength } from "./runner/performAction.js";
|
|
21
|
+
export { runSelectionSchema, } from "./runner/runSelection.js";
|
|
20
22
|
import { makeAutomateContract } from "./automate/index.js";
|
|
21
23
|
import { makeDeleteEnvironmentVariableContract } from "./environment/deleteVariable.js";
|
|
22
24
|
import { makeFindEnvironmentsContract } from "./environment/find.js";
|
|
@@ -34,11 +36,15 @@ import { makeUpdateIssueContract } from "./issue/update.js";
|
|
|
34
36
|
import { makeFindRunsContract } from "./run/find.js";
|
|
35
37
|
import { makeGetRunContract } from "./run/get.js";
|
|
36
38
|
import { makeCreateRunContract } from "./run/index.js";
|
|
39
|
+
import { makeReattemptRunContract } from "./run/reattempt.js";
|
|
37
40
|
import { makeEvaluateSnippetOnRunnerContract } from "./runner/evaluateSnippet.js";
|
|
38
|
-
import {
|
|
41
|
+
import { makeImportPackageOnRunnerContract } from "./runner/importPackage.js";
|
|
42
|
+
import { makeLaunchRunnerContract, makeTerminateRunnerContract, } from "./runner/index.js";
|
|
43
|
+
import { makeInspectOnRunnerContract } from "./runner/inspect.js";
|
|
39
44
|
import { makePerformActionOnRunnerContract } from "./runner/performAction.js";
|
|
40
45
|
import { makeReadRunnerJournalContract } from "./runner/readJournal.js";
|
|
41
46
|
import { makeRunFlowOnRunnerContract } from "./runner/runFlow.js";
|
|
47
|
+
import { makeStopRunOnRunnerContract } from "./runner/stopRun.js";
|
|
42
48
|
import { makeTakeScreenshotOnRunnerContract } from "./runner/takeScreenshot.js";
|
|
43
49
|
import { makeCreateTagContract } from "./tag/index.js";
|
|
44
50
|
import { makeListTagsContract } from "./tag/list.js";
|
|
@@ -81,18 +87,22 @@ export const makeContractsV1 = (ids) => {
|
|
|
81
87
|
create: makeCreateRunContract(resolvedIds),
|
|
82
88
|
find: makeFindRunsContract(resolvedIds),
|
|
83
89
|
get: makeGetRunContract(resolvedIds),
|
|
90
|
+
reattempt: makeReattemptRunContract(resolvedIds),
|
|
84
91
|
},
|
|
85
92
|
runner: {
|
|
86
93
|
evaluateSnippet: makeEvaluateSnippetOnRunnerContract(),
|
|
94
|
+
importPackage: makeImportPackageOnRunnerContract(),
|
|
95
|
+
inspect: makeInspectOnRunnerContract(),
|
|
87
96
|
launch: makeLaunchRunnerContract(),
|
|
88
97
|
performAction: makePerformActionOnRunnerContract(),
|
|
89
98
|
readJournal: makeReadRunnerJournalContract(),
|
|
90
99
|
runFlow: makeRunFlowOnRunnerContract(),
|
|
91
|
-
|
|
100
|
+
stopRun: makeStopRunOnRunnerContract(),
|
|
92
101
|
takeScreenshot: makeTakeScreenshotOnRunnerContract(),
|
|
102
|
+
terminate: makeTerminateRunnerContract(),
|
|
93
103
|
},
|
|
94
104
|
tag: {
|
|
95
|
-
create: makeCreateTagContract(),
|
|
105
|
+
create: makeCreateTagContract(resolvedIds),
|
|
96
106
|
list: makeListTagsContract(resolvedIds),
|
|
97
107
|
},
|
|
98
108
|
};
|
package/dist/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAGL,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAEL,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,4EAA4E;AAC5E,+EAA+E;AAC/E,6DAA6D;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KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
|
package/dist/v1/issue/create.js
CHANGED
|
@@ -13,7 +13,7 @@ export const makeCreateIssueContract = (ids) => {
|
|
|
13
13
|
.describe('Defaults to "unprioritized".'),
|
|
14
14
|
workspaceId: ids.workspace
|
|
15
15
|
.optional()
|
|
16
|
-
.describe("The workspace to create the issue in. Required when authenticating with an organization API key."),
|
|
16
|
+
.describe("The workspace to create the issue in. Required when authenticating with an organization or user API key."),
|
|
17
17
|
};
|
|
18
18
|
const input = z.discriminatedUnion("type", [
|
|
19
19
|
z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAMrC,GAMD,EAAE,EAAE;IACH,MAAM,YAAY,GAAG;QACnB,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6FAA6F,CAC9F;QACH,wEAAwE;QACxE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACvC,QAAQ,EAAE,mBAAmB;aAC1B,QAAQ,EAAE;aACV,QAAQ,CAAC,8BAA8B,CAAC;QAC3C,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAA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AC"}
|
package/dist/v1/issue/index.js
CHANGED
|
@@ -51,7 +51,7 @@ export const makeFindIssuesContract = (ids) => {
|
|
|
51
51
|
type: publicIssueTypeSchema.describe("The issue type to include: bug report, maintenance report, or coverage request."),
|
|
52
52
|
workspaceId: ids.workspace
|
|
53
53
|
.optional()
|
|
54
|
-
.describe("The workspace whose issues to list. Required when authenticating with an organization API key."),
|
|
54
|
+
.describe("The workspace whose issues to list. Required when authenticating with an organization or user API key."),
|
|
55
55
|
});
|
|
56
56
|
const output = z.object({
|
|
57
57
|
issues: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/issue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,eAAe;IACf,KAAK;IACL,QAAQ;IACR,MAAM;IACN,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;AAEhF,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,CAAU,CAAC;AAEvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAKrC,GAKD,EAAE,EAAE,CACH,QAAQ,CACN;IACE,cAAc,EAAE,CAAC;SACd,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;S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KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAKlC,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,GAAG,CAAC,KAAK;KACnB,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC;KACpC,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,qBAAqB;QAClC,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,WAAW;QACjB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeReattemptRunContract: <FlowId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
flow: FlowId;
|
|
6
|
+
run: RunId;
|
|
7
|
+
}) => {
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly input: z.ZodObject<{
|
|
10
|
+
flowIds: z.ZodOptional<z.ZodArray<FlowId>>;
|
|
11
|
+
runId: RunId;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
readonly kind: "write";
|
|
14
|
+
readonly name: "run.reattempt";
|
|
15
|
+
readonly output: z.ZodObject<{
|
|
16
|
+
reattemptedFlowIds: z.ZodArray<FlowId>;
|
|
17
|
+
runId: RunId;
|
|
18
|
+
url: z.ZodURL;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=reattempt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reattempt.d.ts","sourceRoot":"","sources":["../../../src/v1/run/reattempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,wBAAwB,GACnC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;CA8CA,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { resource } from "../resource.js";
|
|
3
|
+
export const makeReattemptRunContract = (ids) => {
|
|
4
|
+
const input = z.object({
|
|
5
|
+
flowIds: z
|
|
6
|
+
.array(ids.flow)
|
|
7
|
+
.min(1)
|
|
8
|
+
// Matches the flow.addTag selection cap.
|
|
9
|
+
.max(300)
|
|
10
|
+
.refine((flowIds) => new Set(flowIds).size === flowIds.length, "flowIds must be unique")
|
|
11
|
+
.optional()
|
|
12
|
+
.describe("The flows to reattempt. Every named flow must be eligible or the " +
|
|
13
|
+
"whole request is rejected. Omit to reattempt every eligible flow."),
|
|
14
|
+
runId: ids.run,
|
|
15
|
+
});
|
|
16
|
+
const output = resource({
|
|
17
|
+
reattemptedFlowIds: z
|
|
18
|
+
.array(ids.flow)
|
|
19
|
+
.describe("The flows a new attempt was requested for."),
|
|
20
|
+
runId: ids.run,
|
|
21
|
+
}, { urlFieldDescription: "Absolute URL of the run page." });
|
|
22
|
+
return {
|
|
23
|
+
description: "Request new attempts for a run's flows, in the same run. " +
|
|
24
|
+
"A flow is eligible once its result is failed or canceled and QA Wolf's " +
|
|
25
|
+
"automatic retries have finished. " +
|
|
26
|
+
"A fully investigated run no longer accepts reattempts. " +
|
|
27
|
+
"Attempts run with the latest flow code. Poll run.get for results.",
|
|
28
|
+
input,
|
|
29
|
+
kind: "write",
|
|
30
|
+
name: "run.reattempt",
|
|
31
|
+
output,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=reattempt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reattempt.js","sourceRoot":"","sources":["../../../src/v1/run/reattempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAGtC,GAID,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,GAAG,CAAC,CAAC,CAAC;YACP,yCAAyC;aACxC,GAAG,CAAC,GAAG,CAAC;aACR,MAAM,CACL,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,EACrD,wBAAwB,CACzB;aACA,QAAQ,EAAE;aACV,QAAQ,CACP,mEAAmE;YACjE,mEAAmE,CACtE;QACH,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CACrB;QACE,kBAAkB,EAAE,CAAC;aAClB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,QAAQ,CAAC,4CAA4C,CAAC;QACzD,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,WAAW,EACT,2DAA2D;YAC3D,yEAAyE;YACzE,mCAAmC;YACnC,yDAAyD;YACzD,mEAAmE;QACrE,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,eAAe;QACrB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqCxB,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,uCAmB9B,CAAC"}
|
|
@@ -3,15 +3,18 @@ import { z } from "zod";
|
|
|
3
3
|
* The environment variables a caller may give a run, and the names they may not.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
7
|
-
*
|
|
6
|
+
* The one name a caller may not set. It namespaces the runner's shared
|
|
7
|
+
* `node_modules` cache, is read before any customer code runs, and the caching
|
|
8
|
+
* agent's first-configure-wins lock means whoever sets it first decides for the
|
|
9
|
+
* pod's life. A caller who could set it would restore from, and then overwrite,
|
|
10
|
+
* another team's cached dependencies. The server stamps it from the key the
|
|
11
|
+
* request authenticated with.
|
|
8
12
|
*/
|
|
9
|
-
const
|
|
13
|
+
const reservedRunEnvironmentVariableName = "QAWOLF_TEAM_ID";
|
|
10
14
|
/**
|
|
11
15
|
* A name becomes a name in the run's process environment, so it is held to what
|
|
12
|
-
* a shell accepts
|
|
13
|
-
*
|
|
14
|
-
* record".
|
|
16
|
+
* a shell accepts. A refusal rather than a key schema, whose message would reach
|
|
17
|
+
* the caller as a bare "invalid key in record".
|
|
15
18
|
*/
|
|
16
19
|
function refusalForRunEnvironmentVariableName(name) {
|
|
17
20
|
if (name.length < 1 || name.length > 256)
|
|
@@ -19,8 +22,8 @@ function refusalForRunEnvironmentVariableName(name) {
|
|
|
19
22
|
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(name))
|
|
20
23
|
return "An environment variable name may contain only letters, digits and underscores, and must not start with a digit.";
|
|
21
24
|
// Case-insensitively, so the reservation cannot be worked around by case.
|
|
22
|
-
if (name.toUpperCase()
|
|
23
|
-
return
|
|
25
|
+
if (name.toUpperCase() === reservedRunEnvironmentVariableName)
|
|
26
|
+
return `${reservedRunEnvironmentVariableName} is reserved by QA Wolf and set for you.`;
|
|
24
27
|
return undefined;
|
|
25
28
|
}
|
|
26
29
|
const maxRunEnvironmentVariables = 100;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/v1/runner/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/v1/runner/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH;;;;;;;GAOG;AACH,MAAM,kCAAkC,GAAG,gBAAgB,CAAC;AAE5D;;;;GAIG;AACH,SAAS,oCAAoC,CAC3C,IAAY;IAEZ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG;QACtC,OAAO,oEAAoE,CAAC;IAC9E,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC;QACxC,OAAO,iHAAiH,CAAC;IAC3H,0EAA0E;IAC1E,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,kCAAkC;QAC3D,OAAO,GAAG,kCAAkC,0CAA0C,CAAC;IACzF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,0BAA0B,GAAG,GAAG,CAAC;AACvC,MAAM,4BAA4B,GAAG,CAAC,GAAG,IAAI,CAAC;AAE9C,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;KAChE,WAAW,CAAC,CAAC,WAAW,EAAE,iBAAiB,EAAE,EAAE;IAC9C,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5C,MAAM,OAAO,GAAG,oCAAoC,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,OAAO,KAAK,SAAS;YAAE,SAAS;QACpC,iBAAiB,CAAC,QAAQ,CAAC;YACzB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,CAAC,IAAI,CAAC;SACb,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;KACD,MAAM,CACL,CAAC,WAAW,EAAE,EAAE,CACd,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,0BAA0B,EAC/D;IACE,KAAK,EAAE,WAAW,0BAA0B,yCAAyC;CACtF,CACF,CAAC"}
|
|
@@ -11,14 +11,17 @@ export declare const makeEvaluateSnippetOnRunnerContract: () => {
|
|
|
11
11
|
readonly name: "runner.evaluateSnippet";
|
|
12
12
|
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
13
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
14
|
-
outcome: z.ZodLiteral<"
|
|
14
|
+
outcome: z.ZodLiteral<"success">;
|
|
15
15
|
result: z.ZodEnum<{
|
|
16
16
|
success: "success";
|
|
17
17
|
error: "error";
|
|
18
18
|
stopped: "stopped";
|
|
19
19
|
}>;
|
|
20
20
|
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
|
|
21
|
+
failureReason: z.ZodEnum<{
|
|
22
|
+
"runner-unreachable": "runner-unreachable";
|
|
23
|
+
}>;
|
|
24
|
+
outcome: z.ZodLiteral<"failure">;
|
|
22
25
|
}, z.core.$strip>], "outcome">;
|
|
23
26
|
};
|
|
24
27
|
//# sourceMappingURL=evaluateSnippet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluateSnippet.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"evaluateSnippet.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;CA+D/C,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { runFilePathSchema } from "./files.js";
|
|
3
3
|
import { runnerIdSchema } from "./identity.js";
|
|
4
|
+
import { makeRunnerFailureSchema } from "./outcome.js";
|
|
4
5
|
import { runFilesSchema } from "./payloadSize.js";
|
|
5
|
-
import {
|
|
6
|
+
import { runnerUnreachableFailureReason } from "./unreachable.js";
|
|
6
7
|
/**
|
|
7
8
|
* A snippet is one expression or a handful of statements, not a program: it is
|
|
8
9
|
* bounded so a caller cannot smuggle a whole project through as code instead of
|
|
@@ -36,12 +37,12 @@ export const makeEvaluateSnippetOnRunnerContract = () => {
|
|
|
36
37
|
.string()
|
|
37
38
|
.optional()
|
|
38
39
|
.describe("Present when `result` is `error`."),
|
|
39
|
-
outcome: z.literal("
|
|
40
|
+
outcome: z.literal("success"),
|
|
40
41
|
result: z
|
|
41
42
|
.enum(["success", "stopped", "error"])
|
|
42
43
|
.describe("`success` if the snippet ran to completion, `stopped` if it was interrupted, `error` if it threw. Whether it ran, not what it evaluated to."),
|
|
43
44
|
}),
|
|
44
|
-
|
|
45
|
+
makeRunnerFailureSchema([runnerUnreachableFailureReason]),
|
|
45
46
|
]);
|
|
46
47
|
return {
|
|
47
48
|
description: "Evaluate a snippet against whatever the runner's browser is showing right now. Answers whether the snippet ran, and its error if it threw — not the value it evaluated to, so read anything you want back out of the runner's journal (a snippet's `console.log` lands in the `console` stream). A snippet starts no run and leaves no run-scoped journal entries of its own. `runner-unreachable` if the runner could not be reached or could not evaluate: as well as a runner that is still starting, has terminated after inactivity, or is busy, this covers a runner with no live page to evaluate against — which will never clear, so check that the runner you launched is one that runs a browser before retrying. It is NOT proof the snippet did not run: a snippet that outlives the answer window is still executing when you read this, so do not blindly resubmit one that mutates what the page is looking at.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluateSnippet.js","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"evaluateSnippet.js","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAElE;;;;GAIG;AACH,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvC,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACtD,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,IAAI,EAAE,CAAC;aAC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
2
|
export declare const runnerNameSchema: z.ZodEnum<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
basic: "basic";
|
|
4
|
+
playwright: "playwright";
|
|
5
|
+
android: "android";
|
|
6
|
+
ios: "ios";
|
|
7
7
|
}>;
|
|
8
8
|
export type RunnerNameForPublicApi = z.infer<typeof runnerNameSchema>;
|
|
9
9
|
export declare const runnerIdSchema: z.ZodString;
|
|
@@ -12,10 +12,10 @@ export declare const makeRunnerSchema: () => z.ZodObject<{
|
|
|
12
12
|
gpuAccelerated: z.ZodBoolean;
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
runnerName: z.ZodEnum<{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
basic: "basic";
|
|
16
|
+
playwright: "playwright";
|
|
17
|
+
android: "android";
|
|
18
|
+
ios: "ios";
|
|
19
19
|
}>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const runnerNameSchema = z.enum([
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"basic",
|
|
4
|
+
"playwright",
|
|
5
|
+
"android",
|
|
6
|
+
"ios",
|
|
7
7
|
]);
|
|
8
8
|
export const runnerIdSchema = z
|
|
9
9
|
.string()
|
|
@@ -16,6 +16,6 @@ export const makeRunnerSchema = () => z.object({
|
|
|
16
16
|
.boolean()
|
|
17
17
|
.describe("Whether the runner was placed on GPU hardware. Chosen by QA Wolf from the team's configuration and what the fleet can provide, not requested."),
|
|
18
18
|
id: runnerIdSchema.describe("The runner's id, as supplied when launching it."),
|
|
19
|
-
runnerName: runnerNameSchema.describe("The
|
|
19
|
+
runnerName: runnerNameSchema.describe("The runner family requested when the runner was launched. QA Wolf may place it on faster hardware, reported in gpuAccelerated."),
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=identity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../src/v1/runner/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../src/v1/runner/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,OAAO;IACP,YAAY;IACZ,SAAS;IACT,KAAK;CACN,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,iCAAiC,EACjC,mHAAmH,CACpH,CAAC;AAEJ,2CAA2C;AAC3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CACnC,CAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,CACP,+IAA+I,CAChJ;IACH,EAAE,EAAE,cAAc,CAAC,QAAQ,CACzB,iDAAiD,CAClD;IACD,UAAU,EAAE,gBAAgB,CAAC,QAAQ,CACnC,gIAAgI,CACjI;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const makeImportPackageOnRunnerContract: () => {
|
|
3
|
+
readonly description: "Install a package into an interactive runner's live run and import it, so a snippet or a selection can use it without a full run to reinstall dependencies. An `install-failed` failure carries npm's reason in `errorMessage`. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. The install may still have landed, but installing the same version again does nothing, so retrying is safe.";
|
|
4
|
+
readonly input: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
npmDependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7
|
+
packageName: z.ZodString;
|
|
8
|
+
packageVersion: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
readonly kind: "write";
|
|
11
|
+
readonly name: "runner.importPackage";
|
|
12
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
outcome: z.ZodLiteral<"success">;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
16
|
+
failureReason: z.ZodEnum<{
|
|
17
|
+
"runner-unreachable": "runner-unreachable";
|
|
18
|
+
"install-failed": "install-failed";
|
|
19
|
+
}>;
|
|
20
|
+
outcome: z.ZodLiteral<"failure">;
|
|
21
|
+
}, z.core.$strip>], "outcome">;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=importPackage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importPackage.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/importPackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;CAqC7C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { runnerIdSchema } from "./identity.js";
|
|
3
|
+
const maxPackageNameLength = 214;
|
|
4
|
+
const maxPackageVersionLength = 256;
|
|
5
|
+
export const makeImportPackageOnRunnerContract = () => {
|
|
6
|
+
const input = z.object({
|
|
7
|
+
id: runnerIdSchema.describe("Id of the runner to install into."),
|
|
8
|
+
npmDependencies: z
|
|
9
|
+
.record(z.string(), z.string())
|
|
10
|
+
.describe("The run's current npm dependencies, so the install resolves against them."),
|
|
11
|
+
packageName: z.string().min(1).max(maxPackageNameLength),
|
|
12
|
+
packageVersion: z.string().min(1).max(maxPackageVersionLength),
|
|
13
|
+
});
|
|
14
|
+
const output = z.discriminatedUnion("outcome", [
|
|
15
|
+
z.object({ outcome: z.literal("success") }),
|
|
16
|
+
z.object({
|
|
17
|
+
errorMessage: z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("What npm said, when the failure came from the install."),
|
|
21
|
+
failureReason: z.enum(["install-failed", "runner-unreachable"]),
|
|
22
|
+
outcome: z.literal("failure"),
|
|
23
|
+
}),
|
|
24
|
+
]);
|
|
25
|
+
return {
|
|
26
|
+
description: "Install a package into an interactive runner's live run and import it, so a snippet or a selection can use it without a full run to reinstall dependencies. An `install-failed` failure carries npm's reason in `errorMessage`. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. The install may still have landed, but installing the same version again does nothing, so retrying is safe.",
|
|
27
|
+
input,
|
|
28
|
+
kind: "write",
|
|
29
|
+
name: "runner.importPackage",
|
|
30
|
+
output,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=importPackage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importPackage.js","sourceRoot":"","sources":["../../../src/v1/runner/importPackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,EAAE;IACpD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QAChE,eAAe,EAAE,CAAC;aACf,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;aAC9B,QAAQ,CACP,2EAA2E,CAC5E;QACH,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC;QACxD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,uBAAuB,CAAC;KAC/D,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;QAC3C,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,CAAC;iBACZ,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,wDAAwD,CAAC;YACrE,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;YAC/D,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;SAC9B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,0eAA0e;QAC5e,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const makeLaunchRunnerContract: () => {
|
|
3
|
-
readonly description: "Launch an interactive runner on the caller's team under an id the caller chooses. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner — so read `
|
|
3
|
+
readonly description: "Launch an interactive runner on the caller's team under an id the caller chooses. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner — so read `alreadyRunning` to tell which happened.";
|
|
4
4
|
readonly input: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
runnerName: z.ZodOptional<z.ZodEnum<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
basic: "basic";
|
|
8
|
+
playwright: "playwright";
|
|
9
|
+
android: "android";
|
|
10
|
+
ios: "ios";
|
|
11
11
|
}>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
readonly kind: "write";
|
|
@@ -16,30 +16,26 @@ export declare const makeLaunchRunnerContract: () => {
|
|
|
16
16
|
gpuAccelerated: z.ZodBoolean;
|
|
17
17
|
id: z.ZodString;
|
|
18
18
|
runnerName: z.ZodEnum<{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}>;
|
|
24
|
-
outcome: z.ZodEnum<{
|
|
25
|
-
launched: "launched";
|
|
26
|
-
"already-running": "already-running";
|
|
19
|
+
basic: "basic";
|
|
20
|
+
playwright: "playwright";
|
|
21
|
+
android: "android";
|
|
22
|
+
ios: "ios";
|
|
27
23
|
}>;
|
|
24
|
+
alreadyRunning: z.ZodBoolean;
|
|
25
|
+
outcome: z.ZodLiteral<"success">;
|
|
28
26
|
}, z.core.$strip>;
|
|
29
27
|
};
|
|
30
|
-
export declare const
|
|
31
|
-
readonly description: "
|
|
28
|
+
export declare const makeTerminateRunnerContract: () => {
|
|
29
|
+
readonly description: "End an interactive runner on the caller's team, and the pod it runs on with it. Terminating a runner that is not running succeeds and reports `wasRunning: false`. This ends the runner: use `runner.stopRun` to stop what a runner is currently executing while leaving the runner up.";
|
|
32
30
|
readonly input: z.ZodObject<{
|
|
33
31
|
id: z.ZodString;
|
|
34
32
|
}, z.core.$strip>;
|
|
35
33
|
readonly kind: "write";
|
|
36
|
-
readonly name: "runner.
|
|
34
|
+
readonly name: "runner.terminate";
|
|
37
35
|
readonly output: z.ZodObject<{
|
|
38
36
|
id: z.ZodString;
|
|
39
|
-
outcome: z.
|
|
40
|
-
|
|
41
|
-
"not-running": "not-running";
|
|
42
|
-
}>;
|
|
37
|
+
outcome: z.ZodLiteral<"success">;
|
|
38
|
+
wasRunning: z.ZodBoolean;
|
|
43
39
|
}, z.core.$strip>;
|
|
44
40
|
};
|
|
45
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;CA2BvC,CAAC"}
|
package/dist/v1/runner/index.js
CHANGED
|
@@ -5,36 +5,38 @@ export const makeLaunchRunnerContract = () => {
|
|
|
5
5
|
id: runnerIdSchema.describe("Id to launch the runner under, chosen by the caller. Launching the same id again returns the runner already running under it."),
|
|
6
6
|
runnerName: runnerNameSchema
|
|
7
7
|
.optional()
|
|
8
|
-
.describe("
|
|
8
|
+
.describe("The runner family to launch. Defaults to the standard web family, playwright."),
|
|
9
9
|
});
|
|
10
10
|
const output = makeRunnerSchema().extend({
|
|
11
|
-
|
|
12
|
-
.
|
|
13
|
-
.describe("
|
|
11
|
+
alreadyRunning: z
|
|
12
|
+
.boolean()
|
|
13
|
+
.describe("True when a runner was already running under this id and was returned unchanged, so no second runner was started and nothing new is billed. Not an error either way."),
|
|
14
|
+
outcome: z.literal("success"),
|
|
14
15
|
});
|
|
15
16
|
return {
|
|
16
|
-
description: "Launch an interactive runner on the caller's team under an id the caller chooses. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner — so read `
|
|
17
|
+
description: "Launch an interactive runner on the caller's team under an id the caller chooses. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner — so read `alreadyRunning` to tell which happened.",
|
|
17
18
|
input,
|
|
18
19
|
kind: "write",
|
|
19
20
|
name: "runner.launch",
|
|
20
21
|
output,
|
|
21
22
|
};
|
|
22
23
|
};
|
|
23
|
-
export const
|
|
24
|
+
export const makeTerminateRunnerContract = () => {
|
|
24
25
|
const input = z.object({
|
|
25
|
-
id: runnerIdSchema.describe("Id of the runner to
|
|
26
|
+
id: runnerIdSchema.describe("Id of the runner to terminate."),
|
|
26
27
|
});
|
|
27
28
|
const output = z.object({
|
|
28
29
|
id: runnerIdSchema.describe("Id of the runner the call addressed."),
|
|
29
|
-
outcome: z
|
|
30
|
-
|
|
31
|
-
.
|
|
30
|
+
outcome: z.literal("success"),
|
|
31
|
+
wasRunning: z
|
|
32
|
+
.boolean()
|
|
33
|
+
.describe("False when no running runner had this id: it was already terminated, was never launched, or terminated on its own after inactivity. These are not distinguished, because the run system keeps no record of a runner once it is gone. Not an error, and a retry needs no special handling."),
|
|
32
34
|
});
|
|
33
35
|
return {
|
|
34
|
-
description: "
|
|
36
|
+
description: "End an interactive runner on the caller's team, and the pod it runs on with it. Terminating a runner that is not running succeeds and reports `wasRunning: false`. This ends the runner: use `runner.stopRun` to stop what a runner is currently executing while leaving the runner up.",
|
|
35
37
|
input,
|
|
36
38
|
kind: "write",
|
|
37
|
-
name: "runner.
|
|
39
|
+
name: "runner.terminate",
|
|
38
40
|
output,
|
|
39
41
|
};
|
|
40
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/runner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC3C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CACzB,+HAA+H,CAChI;QACD,UAAU,EAAE,gBAAgB;aACzB,QAAQ,EAAE;aACV,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/runner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC3C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CACzB,+HAA+H,CAChI;QACD,UAAU,EAAE,gBAAgB;aACzB,QAAQ,EAAE;aACV,QAAQ,CACP,+EAA+E,CAChF;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,gBAAgB,EAAE,CAAC,MAAM,CAAC;QACvC,cAAc,EAAE,CAAC;aACd,OAAO,EAAE;aACT,QAAQ,CACP,sKAAsK,CACvK;QACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;KAC9B,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,qbAAqb;QACvb,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,eAAe;QACrB,MAAM;KAMP,CAAC;AACJ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