@qawolf/api-contracts 0.33.0 → 0.35.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/index.d.ts +122 -2
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +7 -1
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/runner/environment.js +1 -1
- package/dist/v1/runner/environment.js.map +1 -1
- package/dist/v1/runner/get.d.ts +15 -0
- package/dist/v1/runner/get.d.ts.map +1 -0
- package/dist/v1/runner/get.js +22 -0
- package/dist/v1/runner/get.js.map +1 -0
- package/dist/v1/runner/highlightSelector.d.ts +30 -0
- package/dist/v1/runner/highlightSelector.d.ts.map +1 -0
- package/dist/v1/runner/highlightSelector.js +51 -0
- package/dist/v1/runner/highlightSelector.js.map +1 -0
- package/dist/v1/runner/inspectMobile.d.ts +1 -1
- package/dist/v1/runner/inspectMobile.js +1 -1
- package/dist/v1/runner/inspectMobile.js.map +1 -1
- package/dist/v1/runner/journal.d.ts.map +1 -1
- package/dist/v1/runner/journal.js.map +1 -1
- package/dist/v1/runner/promoteSnapshot.d.ts +24 -0
- package/dist/v1/runner/promoteSnapshot.d.ts.map +1 -0
- package/dist/v1/runner/promoteSnapshot.js +38 -0
- package/dist/v1/runner/promoteSnapshot.js.map +1 -0
- package/dist/v1/runner/runFlow.d.ts +5 -1
- package/dist/v1/runner/runFlow.d.ts.map +1 -1
- package/dist/v1/runner/runFlow.js +10 -1
- package/dist/v1/runner/runFlow.js.map +1 -1
- package/package.json +2 -2
package/dist/v1/index.d.ts
CHANGED
|
@@ -797,6 +797,45 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
797
797
|
outcome: z.ZodLiteral<"failure">;
|
|
798
798
|
}, z.core.$strip>], "outcome">;
|
|
799
799
|
};
|
|
800
|
+
get: {
|
|
801
|
+
readonly description: "Report whether a runner is running under this id on the caller's team. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. An id that is not running is a success with `running: false` rather than an error, so this is how to check a runner is still there before addressing it.";
|
|
802
|
+
readonly input: z.ZodObject<{
|
|
803
|
+
id: z.ZodString;
|
|
804
|
+
}, z.core.$strip>;
|
|
805
|
+
readonly kind: "read";
|
|
806
|
+
readonly name: "runner.get";
|
|
807
|
+
readonly output: z.ZodObject<{
|
|
808
|
+
id: z.ZodString;
|
|
809
|
+
outcome: z.ZodLiteral<"success">;
|
|
810
|
+
running: z.ZodBoolean;
|
|
811
|
+
}, z.core.$strip>;
|
|
812
|
+
};
|
|
813
|
+
highlightSelector: {
|
|
814
|
+
readonly description: "Highlight the elements a selector matches on an interactive runner's live page, and answer how many it matched. The highlight stays until it is replaced or cleared, so it is visible in the next `runner.takeScreenshot` — which is the point, since a caller cannot see the runner's screen otherwise. Send an empty selector to clear, which answers `cleared`. `status` tells a selector that matched nothing (`empty`) from one the page could not parse (`invalid`), so a caller can tell a bad locator from a locator pointing at nothing. `no-answer` if the page did not answer in time: the highlight runs inside the page, so a page that is gone or mid-navigation does not answer slowly, it does not answer at all. `runner-cannot-highlight-selectors` on a runner with no browser to draw on. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity.";
|
|
815
|
+
readonly input: z.ZodObject<{
|
|
816
|
+
id: z.ZodString;
|
|
817
|
+
selector: z.ZodString;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
readonly kind: "write";
|
|
820
|
+
readonly name: "runner.highlightSelector";
|
|
821
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
822
|
+
matchCount: z.ZodNumber;
|
|
823
|
+
outcome: z.ZodLiteral<"success">;
|
|
824
|
+
selector: z.ZodString;
|
|
825
|
+
status: z.ZodLiteral<"valid" | "invalid" | "empty">;
|
|
826
|
+
targetPage: z.ZodOptional<z.ZodString>;
|
|
827
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
828
|
+
outcome: z.ZodLiteral<"cleared">;
|
|
829
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
830
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
831
|
+
failureReason: z.ZodEnum<{
|
|
832
|
+
"runner-unreachable": "runner-unreachable";
|
|
833
|
+
"no-answer": "no-answer";
|
|
834
|
+
"runner-cannot-highlight-selectors": "runner-cannot-highlight-selectors";
|
|
835
|
+
}>;
|
|
836
|
+
outcome: z.ZodLiteral<"failure">;
|
|
837
|
+
}, z.core.$strip>], "outcome">;
|
|
838
|
+
};
|
|
800
839
|
importPackage: {
|
|
801
840
|
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.";
|
|
802
841
|
readonly input: z.ZodObject<{
|
|
@@ -849,7 +888,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
849
888
|
}, z.core.$strip>], "outcome">;
|
|
850
889
|
};
|
|
851
890
|
inspectMobile: {
|
|
852
|
-
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch
|
|
891
|
+
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android` or `ios` runner instead. `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. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
853
892
|
readonly input: z.ZodObject<{
|
|
854
893
|
id: z.ZodString;
|
|
855
894
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1136,6 +1175,26 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1136
1175
|
outcome: z.ZodLiteral<"failure">;
|
|
1137
1176
|
}, z.core.$strip>], "failureReason">], "outcome">;
|
|
1138
1177
|
};
|
|
1178
|
+
promoteSnapshot: {
|
|
1179
|
+
readonly description: "Accept a run's screenshot as the new baseline for an image diff, on the runner that produced it. The two paths are the ones the diff reported, which reach a caller as an `image-diff-artifact` entry on the runner's `run-events` journal stream. `snapshot-not-found` if the run wrote no screenshot at that path, which usually means the paths were not taken from a diff this run produced; nothing is changed, so correcting the path and repeating is safe. `runner-cannot-promote-snapshots` on a runner that stores no screenshots. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity. A promotion that lands is not undone by promoting again, so a retry after an unreachable answer is safe.";
|
|
1180
|
+
readonly input: z.ZodObject<{
|
|
1181
|
+
baselinePath: z.ZodString;
|
|
1182
|
+
id: z.ZodString;
|
|
1183
|
+
screenshotPath: z.ZodString;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1185
|
+
readonly kind: "write";
|
|
1186
|
+
readonly name: "runner.promoteSnapshot";
|
|
1187
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1188
|
+
outcome: z.ZodLiteral<"success">;
|
|
1189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1190
|
+
failureReason: z.ZodEnum<{
|
|
1191
|
+
"runner-unreachable": "runner-unreachable";
|
|
1192
|
+
"runner-cannot-promote-snapshots": "runner-cannot-promote-snapshots";
|
|
1193
|
+
"snapshot-not-found": "snapshot-not-found";
|
|
1194
|
+
}>;
|
|
1195
|
+
outcome: z.ZodLiteral<"failure">;
|
|
1196
|
+
}, z.core.$strip>], "outcome">;
|
|
1197
|
+
};
|
|
1139
1198
|
readJournal: {
|
|
1140
1199
|
readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. `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. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
1141
1200
|
readonly input: z.ZodObject<{
|
|
@@ -1173,6 +1232,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1173
1232
|
readonly input: z.ZodObject<{
|
|
1174
1233
|
entryPointPath: z.ZodString;
|
|
1175
1234
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1235
|
+
environmentId: z.ZodOptional<PublicIdSchema>;
|
|
1176
1236
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1177
1237
|
id: z.ZodString;
|
|
1178
1238
|
selection: z.ZodOptional<z.ZodObject<{
|
|
@@ -2083,6 +2143,45 @@ export declare const publicContractsV1: {
|
|
|
2083
2143
|
outcome: z.ZodLiteral<"failure">;
|
|
2084
2144
|
}, z.core.$strip>], "outcome">;
|
|
2085
2145
|
};
|
|
2146
|
+
get: {
|
|
2147
|
+
readonly description: "Report whether a runner is running under this id on the caller's team. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. An id that is not running is a success with `running: false` rather than an error, so this is how to check a runner is still there before addressing it.";
|
|
2148
|
+
readonly input: z.ZodObject<{
|
|
2149
|
+
id: z.ZodString;
|
|
2150
|
+
}, z.core.$strip>;
|
|
2151
|
+
readonly kind: "read";
|
|
2152
|
+
readonly name: "runner.get";
|
|
2153
|
+
readonly output: z.ZodObject<{
|
|
2154
|
+
id: z.ZodString;
|
|
2155
|
+
outcome: z.ZodLiteral<"success">;
|
|
2156
|
+
running: z.ZodBoolean;
|
|
2157
|
+
}, z.core.$strip>;
|
|
2158
|
+
};
|
|
2159
|
+
highlightSelector: {
|
|
2160
|
+
readonly description: "Highlight the elements a selector matches on an interactive runner's live page, and answer how many it matched. The highlight stays until it is replaced or cleared, so it is visible in the next `runner.takeScreenshot` — which is the point, since a caller cannot see the runner's screen otherwise. Send an empty selector to clear, which answers `cleared`. `status` tells a selector that matched nothing (`empty`) from one the page could not parse (`invalid`), so a caller can tell a bad locator from a locator pointing at nothing. `no-answer` if the page did not answer in time: the highlight runs inside the page, so a page that is gone or mid-navigation does not answer slowly, it does not answer at all. `runner-cannot-highlight-selectors` on a runner with no browser to draw on. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity.";
|
|
2161
|
+
readonly input: z.ZodObject<{
|
|
2162
|
+
id: z.ZodString;
|
|
2163
|
+
selector: z.ZodString;
|
|
2164
|
+
}, z.core.$strip>;
|
|
2165
|
+
readonly kind: "write";
|
|
2166
|
+
readonly name: "runner.highlightSelector";
|
|
2167
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2168
|
+
matchCount: z.ZodNumber;
|
|
2169
|
+
outcome: z.ZodLiteral<"success">;
|
|
2170
|
+
selector: z.ZodString;
|
|
2171
|
+
status: z.ZodLiteral<"valid" | "invalid" | "empty">;
|
|
2172
|
+
targetPage: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2174
|
+
outcome: z.ZodLiteral<"cleared">;
|
|
2175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2176
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
failureReason: z.ZodEnum<{
|
|
2178
|
+
"runner-unreachable": "runner-unreachable";
|
|
2179
|
+
"no-answer": "no-answer";
|
|
2180
|
+
"runner-cannot-highlight-selectors": "runner-cannot-highlight-selectors";
|
|
2181
|
+
}>;
|
|
2182
|
+
outcome: z.ZodLiteral<"failure">;
|
|
2183
|
+
}, z.core.$strip>], "outcome">;
|
|
2184
|
+
};
|
|
2086
2185
|
importPackage: {
|
|
2087
2186
|
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.";
|
|
2088
2187
|
readonly input: z.ZodObject<{
|
|
@@ -2135,7 +2234,7 @@ export declare const publicContractsV1: {
|
|
|
2135
2234
|
}, z.core.$strip>], "outcome">;
|
|
2136
2235
|
};
|
|
2137
2236
|
inspectMobile: {
|
|
2138
|
-
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch
|
|
2237
|
+
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android` or `ios` runner instead. `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. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
2139
2238
|
readonly input: z.ZodObject<{
|
|
2140
2239
|
id: z.ZodString;
|
|
2141
2240
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2422,6 +2521,26 @@ export declare const publicContractsV1: {
|
|
|
2422
2521
|
outcome: z.ZodLiteral<"failure">;
|
|
2423
2522
|
}, z.core.$strip>], "failureReason">], "outcome">;
|
|
2424
2523
|
};
|
|
2524
|
+
promoteSnapshot: {
|
|
2525
|
+
readonly description: "Accept a run's screenshot as the new baseline for an image diff, on the runner that produced it. The two paths are the ones the diff reported, which reach a caller as an `image-diff-artifact` entry on the runner's `run-events` journal stream. `snapshot-not-found` if the run wrote no screenshot at that path, which usually means the paths were not taken from a diff this run produced; nothing is changed, so correcting the path and repeating is safe. `runner-cannot-promote-snapshots` on a runner that stores no screenshots. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity. A promotion that lands is not undone by promoting again, so a retry after an unreachable answer is safe.";
|
|
2526
|
+
readonly input: z.ZodObject<{
|
|
2527
|
+
baselinePath: z.ZodString;
|
|
2528
|
+
id: z.ZodString;
|
|
2529
|
+
screenshotPath: z.ZodString;
|
|
2530
|
+
}, z.core.$strip>;
|
|
2531
|
+
readonly kind: "write";
|
|
2532
|
+
readonly name: "runner.promoteSnapshot";
|
|
2533
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2534
|
+
outcome: z.ZodLiteral<"success">;
|
|
2535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2536
|
+
failureReason: z.ZodEnum<{
|
|
2537
|
+
"runner-unreachable": "runner-unreachable";
|
|
2538
|
+
"runner-cannot-promote-snapshots": "runner-cannot-promote-snapshots";
|
|
2539
|
+
"snapshot-not-found": "snapshot-not-found";
|
|
2540
|
+
}>;
|
|
2541
|
+
outcome: z.ZodLiteral<"failure">;
|
|
2542
|
+
}, z.core.$strip>], "outcome">;
|
|
2543
|
+
};
|
|
2425
2544
|
readJournal: {
|
|
2426
2545
|
readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. `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. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
2427
2546
|
readonly input: z.ZodObject<{
|
|
@@ -2459,6 +2578,7 @@ export declare const publicContractsV1: {
|
|
|
2459
2578
|
readonly input: z.ZodObject<{
|
|
2460
2579
|
entryPointPath: z.ZodString;
|
|
2461
2580
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2581
|
+
environmentId: z.ZodOptional<PublicIdSchema>;
|
|
2462
2582
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2463
2583
|
id: z.ZodString;
|
|
2464
2584
|
selection: z.ZodOptional<z.ZodObject<{
|
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,cAAc,sBAAsB,CAAC;AAGrC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAc5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEvB,MAAM,UAAU,CAAC;
|
|
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,cAAc,sBAAsB,CAAC;AAGrC,OAAO,KAAK,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
|
package/dist/v1/index.js
CHANGED
|
@@ -21,11 +21,14 @@ import { makeGetRunContract } from "./run/get.js";
|
|
|
21
21
|
import { makeCreateRunContract } from "./run/index.js";
|
|
22
22
|
import { makeReattemptRunContract } from "./run/reattempt.js";
|
|
23
23
|
import { makeEvaluateSnippetOnRunnerContract } from "./runner/evaluateSnippet.js";
|
|
24
|
+
import { makeGetRunnerContract } from "./runner/get.js";
|
|
25
|
+
import { makeHighlightSelectorOnRunnerContract } from "./runner/highlightSelector.js";
|
|
24
26
|
import { makeImportPackageOnRunnerContract } from "./runner/importPackage.js";
|
|
25
27
|
import { makeLaunchRunnerContract, makeTerminateRunnerContract, } from "./runner/index.js";
|
|
26
28
|
import { makeInspectOnRunnerContract } from "./runner/inspect.js";
|
|
27
29
|
import { makeInspectMobileOnRunnerContract } from "./runner/inspectMobile.js";
|
|
28
30
|
import { makePerformActionOnRunnerContract } from "./runner/performAction.js";
|
|
31
|
+
import { makePromoteSnapshotOnRunnerContract } from "./runner/promoteSnapshot.js";
|
|
29
32
|
import { makeReadRunnerJournalContract } from "./runner/readJournal.js";
|
|
30
33
|
import { makeRunFlowOnRunnerContract } from "./runner/runFlow.js";
|
|
31
34
|
import { makeStopRunOnRunnerContract } from "./runner/stopRun.js";
|
|
@@ -75,13 +78,16 @@ export const makeContractsV1 = (ids) => {
|
|
|
75
78
|
},
|
|
76
79
|
runner: {
|
|
77
80
|
evaluateSnippet: makeEvaluateSnippetOnRunnerContract(),
|
|
81
|
+
get: makeGetRunnerContract(),
|
|
82
|
+
highlightSelector: makeHighlightSelectorOnRunnerContract(),
|
|
78
83
|
importPackage: makeImportPackageOnRunnerContract(),
|
|
79
84
|
inspect: makeInspectOnRunnerContract(),
|
|
80
85
|
inspectMobile: makeInspectMobileOnRunnerContract(),
|
|
81
86
|
launch: makeLaunchRunnerContract(),
|
|
82
87
|
performAction: makePerformActionOnRunnerContract(),
|
|
88
|
+
promoteSnapshot: makePromoteSnapshotOnRunnerContract(),
|
|
83
89
|
readJournal: makeReadRunnerJournalContract(),
|
|
84
|
-
runFlow: makeRunFlowOnRunnerContract(),
|
|
90
|
+
runFlow: makeRunFlowOnRunnerContract(resolvedIds),
|
|
85
91
|
stopRun: makeStopRunOnRunnerContract(),
|
|
86
92
|
takeScreenshot: makeTakeScreenshotOnRunnerContract(),
|
|
87
93
|
terminate: makeTerminateRunnerContract(),
|
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,cAAc,sBAAsB,CAAC;AAErC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,qCAAqC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,wCAAwC,EACxC,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE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AG,EAAE,qBAAqB,EAAE;YAC5B,iBAAiB,EAAE,qCAAqC,EAAE;YAC1D,aAAa,EAAE,iCAAiC,EAAE;YAClD,OAAO,EAAE,2BAA2B,EAAE;YACtC,aAAa,EAAE,iCAAiC,EAAE;YAClD,MAAM,EAAE,wBAAwB,EAAE;YAClC,aAAa,EAAE,iCAAiC,EAAE;YAClD,eAAe,EAAE,mCAAmC,EAAE;YACtD,WAAW,EAAE,6BAA6B,EAAE;YAC5C,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC;YACjD,OAAO,EAAE,2BAA2B,EAAE;YACtC,cAAc,EAAE,kCAAkC,EAAE;YACpD,SAAS,EAAE,2BAA2B,EAAE;SACzC;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -27,7 +27,7 @@ function refusalForRunEnvironmentVariableName(name) {
|
|
|
27
27
|
return undefined;
|
|
28
28
|
}
|
|
29
29
|
const maxRunEnvironmentVariables = 200;
|
|
30
|
-
const maxRunEnvironmentValueLength =
|
|
30
|
+
const maxRunEnvironmentValueLength = 16 * 1024;
|
|
31
31
|
/** Bounded on its own, so a large project is never refused for its environment. */
|
|
32
32
|
export const runEnvironmentSchema = z
|
|
33
33
|
.record(z.string(), z.string().max(maxRunEnvironmentValueLength))
|
|
@@ -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;;;;;;;GAOG;AACH,MAAM,kCAAkC,GAAG,gBAAgB,CAAC;AAE5D;;;;GAIG;AACH,SAAS,oCAAoC,CAC3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,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const makeGetRunnerContract: () => {
|
|
3
|
+
readonly description: "Report whether a runner is running under this id on the caller's team. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. An id that is not running is a success with `running: false` rather than an error, so this is how to check a runner is still there before addressing it.";
|
|
4
|
+
readonly input: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
readonly kind: "read";
|
|
8
|
+
readonly name: "runner.get";
|
|
9
|
+
readonly output: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
outcome: z.ZodLiteral<"success">;
|
|
12
|
+
running: z.ZodBoolean;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;CA4BjC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { runnerIdSchema } from "./identity.js";
|
|
3
|
+
export const makeGetRunnerContract = () => {
|
|
4
|
+
const input = z.object({
|
|
5
|
+
id: runnerIdSchema.describe("Id of the runner to look up."),
|
|
6
|
+
});
|
|
7
|
+
const output = z.object({
|
|
8
|
+
id: runnerIdSchema.describe("Id of the runner the call addressed."),
|
|
9
|
+
outcome: z.literal("success"),
|
|
10
|
+
running: z
|
|
11
|
+
.boolean()
|
|
12
|
+
.describe("False when no runner is running under this id: it was never launched, it was terminated, or it terminated on its own after inactivity. These are not distinguished, because the run system keeps no record of a runner once it is gone."),
|
|
13
|
+
});
|
|
14
|
+
return {
|
|
15
|
+
description: "Report whether a runner is running under this id on the caller's team. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. An id that is not running is a success with `running: false` rather than an error, so this is how to check a runner is still there before addressing it.",
|
|
16
|
+
input,
|
|
17
|
+
kind: "read",
|
|
18
|
+
name: "runner.get",
|
|
19
|
+
output,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/runner/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,8BAA8B,CAAC;KAC5D,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACnE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC7B,OAAO,EAAE,CAAC;aACP,OAAO,EAAE;aACT,QAAQ,CACP,yOAAyO,CAC1O;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,iWAAiW;QACnW,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Long enough for a generated Playwright locator, short enough to bound the page work. */
|
|
3
|
+
export declare const maxHighlightSelectorLength = 2000;
|
|
4
|
+
export declare const makeHighlightSelectorOnRunnerContract: () => {
|
|
5
|
+
readonly description: "Highlight the elements a selector matches on an interactive runner's live page, and answer how many it matched. The highlight stays until it is replaced or cleared, so it is visible in the next `runner.takeScreenshot` — which is the point, since a caller cannot see the runner's screen otherwise. Send an empty selector to clear, which answers `cleared`. `status` tells a selector that matched nothing (`empty`) from one the page could not parse (`invalid`), so a caller can tell a bad locator from a locator pointing at nothing. `no-answer` if the page did not answer in time: the highlight runs inside the page, so a page that is gone or mid-navigation does not answer slowly, it does not answer at all. `runner-cannot-highlight-selectors` on a runner with no browser to draw on. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity.";
|
|
6
|
+
readonly input: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
selector: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
readonly kind: "write";
|
|
11
|
+
readonly name: "runner.highlightSelector";
|
|
12
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
matchCount: z.ZodNumber;
|
|
14
|
+
outcome: z.ZodLiteral<"success">;
|
|
15
|
+
selector: z.ZodString;
|
|
16
|
+
status: z.ZodLiteral<"valid" | "invalid" | "empty">;
|
|
17
|
+
targetPage: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
outcome: z.ZodLiteral<"cleared">;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
22
|
+
failureReason: z.ZodEnum<{
|
|
23
|
+
"runner-unreachable": "runner-unreachable";
|
|
24
|
+
"no-answer": "no-answer";
|
|
25
|
+
"runner-cannot-highlight-selectors": "runner-cannot-highlight-selectors";
|
|
26
|
+
}>;
|
|
27
|
+
outcome: z.ZodLiteral<"failure">;
|
|
28
|
+
}, z.core.$strip>], "outcome">;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=highlightSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightSelector.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/highlightSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,2FAA2F;AAC3F,eAAO,MAAM,0BAA0B,OAAQ,CAAC;AAEhD,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;CA2DjD,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { runnerIdSchema } from "./identity.js";
|
|
3
|
+
/** Long enough for a generated Playwright locator, short enough to bound the page work. */
|
|
4
|
+
export const maxHighlightSelectorLength = 2_000;
|
|
5
|
+
export const makeHighlightSelectorOnRunnerContract = () => {
|
|
6
|
+
const input = z.object({
|
|
7
|
+
id: runnerIdSchema.describe("Id of the runner to highlight on."),
|
|
8
|
+
selector: z
|
|
9
|
+
.string()
|
|
10
|
+
.max(maxHighlightSelectorLength)
|
|
11
|
+
.describe("The selector to highlight. An empty string clears whatever is highlighted."),
|
|
12
|
+
});
|
|
13
|
+
const output = z.discriminatedUnion("outcome", [
|
|
14
|
+
z.object({
|
|
15
|
+
matchCount: z
|
|
16
|
+
.number()
|
|
17
|
+
.int()
|
|
18
|
+
.gte(0)
|
|
19
|
+
.describe("How many elements the selector matched."),
|
|
20
|
+
outcome: z.literal("success"),
|
|
21
|
+
selector: z.string().describe("The selector the page matched on."),
|
|
22
|
+
status: z
|
|
23
|
+
.literal(["valid", "invalid", "empty"])
|
|
24
|
+
.describe("`valid` when the selector parsed and matched, `empty` when it parsed and matched nothing, `invalid` when the page could not read it as a selector."),
|
|
25
|
+
targetPage: z
|
|
26
|
+
.string()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe("Present when the match was on a page other than the default one."),
|
|
29
|
+
}),
|
|
30
|
+
z.object({
|
|
31
|
+
outcome: z.literal("cleared"),
|
|
32
|
+
}),
|
|
33
|
+
z.object({
|
|
34
|
+
errorMessage: z.string().optional(),
|
|
35
|
+
failureReason: z.enum([
|
|
36
|
+
"no-answer",
|
|
37
|
+
"runner-cannot-highlight-selectors",
|
|
38
|
+
"runner-unreachable",
|
|
39
|
+
]),
|
|
40
|
+
outcome: z.literal("failure"),
|
|
41
|
+
}),
|
|
42
|
+
]);
|
|
43
|
+
return {
|
|
44
|
+
description: "Highlight the elements a selector matches on an interactive runner's live page, and answer how many it matched. The highlight stays until it is replaced or cleared, so it is visible in the next `runner.takeScreenshot` — which is the point, since a caller cannot see the runner's screen otherwise. Send an empty selector to clear, which answers `cleared`. `status` tells a selector that matched nothing (`empty`) from one the page could not parse (`invalid`), so a caller can tell a bad locator from a locator pointing at nothing. `no-answer` if the page did not answer in time: the highlight runs inside the page, so a page that is gone or mid-navigation does not answer slowly, it does not answer at all. `runner-cannot-highlight-selectors` on a runner with no browser to draw on. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity.",
|
|
45
|
+
input,
|
|
46
|
+
kind: "write",
|
|
47
|
+
name: "runner.highlightSelector",
|
|
48
|
+
output,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=highlightSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightSelector.js","sourceRoot":"","sources":["../../../src/v1/runner/highlightSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,2FAA2F;AAC3F,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAEhD,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,EAAE;IACxD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QAChE,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,0BAA0B,CAAC;aAC/B,QAAQ,CACP,4EAA4E,CAC7E;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC;YACP,UAAU,EAAE,CAAC;iBACV,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,GAAG,CAAC,CAAC,CAAC;iBACN,QAAQ,CAAC,yCAAyC,CAAC;YACtD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;YAClE,MAAM,EAAE,CAAC;iBACN,OAAO,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;iBACtC,QAAQ,CACP,oJAAoJ,CACrJ;YACH,UAAU,EAAE,CAAC;iBACV,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CACP,kEAAkE,CACnE;SACJ,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;SAC9B,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACnC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;gBACpB,WAAW;gBACX,mCAAmC;gBACnC,oBAAoB;aACrB,CAAC;YACF,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;SAC9B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,84BAA84B;QACh5B,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,0BAA0B;QAChC,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -21,7 +21,7 @@ export declare const inspectMobileRequestSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
21
21
|
}, z.core.$strip>], "by">], "what">;
|
|
22
22
|
export type InspectMobileRequest = z.infer<typeof inspectMobileRequestSchema>;
|
|
23
23
|
export declare const makeInspectMobileOnRunnerContract: () => {
|
|
24
|
-
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch
|
|
24
|
+
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android` or `ios` runner instead. `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. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
25
25
|
readonly input: z.ZodObject<{
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -108,7 +108,7 @@ export const makeInspectMobileOnRunnerContract = () => {
|
|
|
108
108
|
]),
|
|
109
109
|
]);
|
|
110
110
|
return {
|
|
111
|
-
description: `Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers \`runner-is-not-mobile\`; call \`runner.inspect\` for a browser's equivalent surface instead. \`what: "session"\` always answers with the session's own status rather than \`screen-needs-a-run\`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same \`screen-needs-a-run\` or \`screen-not-ready\` outcomes \`runner.performAction\` and \`runner.takeScreenshot\` use, instead of reading anything when there is none. \`screen-needs-a-run\` means no Appium session has started on this runner yet — call \`runner.runFlow\` with a flow that opens one, then inspect again. \`screen-not-ready\` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. \`runner-is-not-mobile\` means there is nothing here to inspect, and retrying will never help — launch
|
|
111
|
+
description: `Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point or carrying some text. Mobile only — a browser runner answers \`runner-is-not-mobile\`; call \`runner.inspect\` for a browser's equivalent surface instead. \`what: "session"\` always answers with the session's own status rather than \`screen-needs-a-run\`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same \`screen-needs-a-run\` or \`screen-not-ready\` outcomes \`runner.performAction\` and \`runner.takeScreenshot\` use, instead of reading anything when there is none. \`screen-needs-a-run\` means no Appium session has started on this runner yet — call \`runner.runFlow\` with a flow that opens one, then inspect again. \`screen-not-ready\` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. \`runner-is-not-mobile\` means there is nothing here to inspect, and retrying will never help — launch an \`android\` or \`ios\` runner instead. ${retryableRunnerUnreachableDescription}`,
|
|
112
112
|
input,
|
|
113
113
|
kind: "read",
|
|
114
114
|
name: "runner.inspectMobile",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspectMobile.js","sourceRoot":"","sources":["../../../src/v1/runner/inspectMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,qCAAqC,EACrC,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B;;;;GAIG;AAEH,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACrE,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,SAAS,CAAC;aAClB,QAAQ,CACP,wFAAwF,CACzF;KACJ,CAAC;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BAA8B;SAC/B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,6qCAA6qC,qCAAqC,EAAE;QACjuC,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -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,OAAO,CAAC;IACjB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;
|
|
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,OAAO,CAAC;IACjB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;GAc1B,CAAC;AAEN,eAAO,MAAM,mBAAmB,0EAMtB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC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AAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACxD,MAAM,EAAE,mBAAmB;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAyC,CAAC;AAwB3C,MAAM,CAAC,MAAM,yBAAyB,GAAG,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,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** A path within the run's own screenshot storage, not a filesystem path. */
|
|
3
|
+
export declare const maxSnapshotPathLength = 1024;
|
|
4
|
+
export declare const makePromoteSnapshotOnRunnerContract: () => {
|
|
5
|
+
readonly description: "Accept a run's screenshot as the new baseline for an image diff, on the runner that produced it. The two paths are the ones the diff reported, which reach a caller as an `image-diff-artifact` entry on the runner's `run-events` journal stream. `snapshot-not-found` if the run wrote no screenshot at that path, which usually means the paths were not taken from a diff this run produced; nothing is changed, so correcting the path and repeating is safe. `runner-cannot-promote-snapshots` on a runner that stores no screenshots. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity. A promotion that lands is not undone by promoting again, so a retry after an unreachable answer is safe.";
|
|
6
|
+
readonly input: z.ZodObject<{
|
|
7
|
+
baselinePath: z.ZodString;
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
screenshotPath: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
readonly kind: "write";
|
|
12
|
+
readonly name: "runner.promoteSnapshot";
|
|
13
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
outcome: z.ZodLiteral<"success">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
failureReason: z.ZodEnum<{
|
|
17
|
+
"runner-unreachable": "runner-unreachable";
|
|
18
|
+
"runner-cannot-promote-snapshots": "runner-cannot-promote-snapshots";
|
|
19
|
+
"snapshot-not-found": "snapshot-not-found";
|
|
20
|
+
}>;
|
|
21
|
+
outcome: z.ZodLiteral<"failure">;
|
|
22
|
+
}, z.core.$strip>], "outcome">;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=promoteSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promoteSnapshot.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/promoteSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAE3C,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;CAwC/C,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { runnerIdSchema } from "./identity.js";
|
|
3
|
+
/** A path within the run's own screenshot storage, not a filesystem path. */
|
|
4
|
+
export const maxSnapshotPathLength = 1_024;
|
|
5
|
+
export const makePromoteSnapshotOnRunnerContract = () => {
|
|
6
|
+
const input = z.object({
|
|
7
|
+
baselinePath: z
|
|
8
|
+
.string()
|
|
9
|
+
.min(1)
|
|
10
|
+
.max(maxSnapshotPathLength)
|
|
11
|
+
.describe("The baseline to replace, as named in the image diff."),
|
|
12
|
+
id: runnerIdSchema.describe("Id of the runner holding the screenshot."),
|
|
13
|
+
screenshotPath: z
|
|
14
|
+
.string()
|
|
15
|
+
.min(1)
|
|
16
|
+
.max(maxSnapshotPathLength)
|
|
17
|
+
.describe("The screenshot to promote, as named in the image diff."),
|
|
18
|
+
});
|
|
19
|
+
const output = z.discriminatedUnion("outcome", [
|
|
20
|
+
z.object({ outcome: z.literal("success") }),
|
|
21
|
+
z.object({
|
|
22
|
+
failureReason: z.enum([
|
|
23
|
+
"runner-cannot-promote-snapshots",
|
|
24
|
+
"runner-unreachable",
|
|
25
|
+
"snapshot-not-found",
|
|
26
|
+
]),
|
|
27
|
+
outcome: z.literal("failure"),
|
|
28
|
+
}),
|
|
29
|
+
]);
|
|
30
|
+
return {
|
|
31
|
+
description: "Accept a run's screenshot as the new baseline for an image diff, on the runner that produced it. The two paths are the ones the diff reported, which reach a caller as an `image-diff-artifact` entry on the runner's `run-events` journal stream. `snapshot-not-found` if the run wrote no screenshot at that path, which usually means the paths were not taken from a diff this run produced; nothing is changed, so correcting the path and repeating is safe. `runner-cannot-promote-snapshots` on a runner that stores no screenshots. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity. A promotion that lands is not undone by promoting again, so a retry after an unreachable answer is safe.",
|
|
32
|
+
input,
|
|
33
|
+
kind: "write",
|
|
34
|
+
name: "runner.promoteSnapshot",
|
|
35
|
+
output,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=promoteSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promoteSnapshot.js","sourceRoot":"","sources":["../../../src/v1/runner/promoteSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,6EAA6E;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAE3C,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACtD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,CAAC;aACZ,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,qBAAqB,CAAC;aAC1B,QAAQ,CAAC,sDAAsD,CAAC;QACnE,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QACvE,cAAc,EAAE,CAAC;aACd,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,qBAAqB,CAAC;aAC1B,QAAQ,CAAC,wDAAwD,CAAC;KACtE,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,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;gBACpB,iCAAiC;gBACjC,oBAAoB;gBACpB,oBAAoB;aACrB,CAAC;YACF,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;SAC9B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,svBAAsvB;QACxvB,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,wBAAwB;QAC9B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeRunFlowOnRunnerContract: (ids: {
|
|
4
|
+
environmentRef: PublicIdSchema;
|
|
5
|
+
}) => {
|
|
3
6
|
readonly description: "Run a flow on an interactive runner. When `selection` is given the lines run against the browser as it stands, so nothing is re-navigated and nothing is signed in again; without it the whole entry point runs from a fresh browser. A runner with no live browser starts one before a selection and says so with `bootstrappedRunner`, which means those lines ran against a fresh page rather than the one an earlier run left. A selection produces no `runStarted` event, so follow it by its run id on `run-status` like any other run. Send `unchangedFiles` to ship only what changed since an earlier run on this runner; a `needs-full-sync` failure names the paths it does not hold, and the way to recover is the same run again with every file in `files`. Answers as soon as the run is accepted, with the id to follow it by — nothing waits for the run to finish. Which browser or device the run needs is read from the flow file's own execution target, so it is not supplied here; when it does not match what the runner is, the call fails with `runner-target-mismatch` rather than failing partway through the run. `runner-unreachable` means the answer did not arrive, which is NOT the same as the run not having started: the runner may have accepted it and been too slow to say so, and resubmitting would start a second run that is billed and journalled alongside the first. Read the runner's `run-status` journal stream before resubmitting, and use the newest run id there if one appeared.";
|
|
4
7
|
readonly input: z.ZodObject<{
|
|
5
8
|
entryPointPath: z.ZodString;
|
|
6
9
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
|
+
environmentId: z.ZodOptional<PublicIdSchema>;
|
|
7
11
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
8
12
|
id: z.ZodString;
|
|
9
13
|
selection: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlow.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"runFlow.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA0BhD,eAAO,MAAM,2BAA2B,GAAI,KAAK;IAC/C,cAAc,EAAE,cAAc,CAAC;CAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+HA,CAAC"}
|
|
@@ -17,13 +17,16 @@ const unchangedFilesSchema = z
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
export const makeRunFlowOnRunnerContract = () => {
|
|
20
|
+
export const makeRunFlowOnRunnerContract = (ids) => {
|
|
21
21
|
const input = z
|
|
22
22
|
.object({
|
|
23
23
|
entryPointPath: runFilePathSchema.describe("Path of the flow file to run, as it appears in `files`."),
|
|
24
24
|
env: runEnvironmentSchema
|
|
25
25
|
.optional()
|
|
26
26
|
.describe("Environment variables to make available to the run."),
|
|
27
|
+
environmentId: ids.environmentRef
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("A QA Wolf environment whose variables the run is given, by id or alias. QA Wolf reads and decrypts them itself, so they never travel in the request and the count and length limits on `env` do not apply to them. Send this or `env`, not both."),
|
|
27
30
|
files: runFilesSchema.describe("Every file the run needs keyed by its path — the flow file, everything it imports, package.json and tsconfig.json. A runner holds no copy of your project, so what runs is exactly what is sent here."),
|
|
28
31
|
id: runnerIdSchema.describe("Id of the runner to run the flow on."),
|
|
29
32
|
selection: runSelectionSchema
|
|
@@ -32,6 +35,12 @@ export const makeRunFlowOnRunnerContract = () => {
|
|
|
32
35
|
unchangedFiles: unchangedFilesSchema
|
|
33
36
|
.optional()
|
|
34
37
|
.describe("Files this runner already holds from an earlier run, keyed by path with a hex SHA-256 of the content it should hold. Send this to make `files` only what changed. The runner refuses with `needs-full-sync` if it holds none of a referenced path, so it never runs something other than what was asked for. Omit it to send every file."),
|
|
38
|
+
})
|
|
39
|
+
// Both would need a merge order, and the two surfaces that carry an
|
|
40
|
+
// environment and caller variables today do not agree on one.
|
|
41
|
+
.refine((request) => request.env === undefined || request.environmentId === undefined, {
|
|
42
|
+
error: "Send env or environmentId, not both. An environment's variables are taken as they are stored, so there is no order in which the two would combine.",
|
|
43
|
+
path: ["environmentId"],
|
|
35
44
|
})
|
|
36
45
|
// Stated here rather than discovered when the runner cannot find a module.
|
|
37
46
|
.refine((request) => Object.hasOwn(request.files, request.entryPointPath), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlow.js","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"runFlow.js","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,oBAAoB,GAAG,CAAC;KAC3B,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACrC,WAAW,CAAC,CAAC,MAAM,EAAE,iBAAiB,EAAE,EAAE;IACzC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QACvC,IAAI,sBAAsB,CAAC,IAAI,CAAC;YAAE,SAAS;QAC3C,iBAAiB,CAAC,QAAQ,CAAC;YACzB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;YAC3B,IAAI,EAAE,CAAC,IAAI,CAAC;SACb,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAE3C,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,cAAc,E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H,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC;YACP,kBAAkB,EAAE,CAAC;iBAClB,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,QAAQ,CACP,qTAAqT,CACtT;YACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7B,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,CACP,uJAAuJ,CACxJ;SACJ,CAAC;QACF,OAAO;KACR,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,y8CAAy8C;QAC38C,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qawolf/api-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Versioned contracts for the QA Wolf public API",
|
|
6
6
|
"repository": {
|
|
@@ -47,6 +47,6 @@
|
|
|
47
47
|
"zod": "^4.1.11"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"node": ">=
|
|
50
|
+
"node": ">=24.14.1 <25"
|
|
51
51
|
}
|
|
52
52
|
}
|