@qawolf/api-contracts 0.47.0 → 0.48.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 +36 -4
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +14 -14
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/runner/evaluateSnippet.d.ts +5 -1
- package/dist/v1/runner/evaluateSnippet.d.ts.map +1 -1
- package/dist/v1/runner/evaluateSnippet.js +5 -2
- package/dist/v1/runner/evaluateSnippet.js.map +1 -1
- package/dist/v1/runner/get.d.ts +5 -1
- package/dist/v1/runner/get.d.ts.map +1 -1
- package/dist/v1/runner/get.js +5 -2
- package/dist/v1/runner/get.js.map +1 -1
- package/dist/v1/runner/highlightSelector.d.ts +5 -1
- package/dist/v1/runner/highlightSelector.d.ts.map +1 -1
- package/dist/v1/runner/highlightSelector.js +5 -2
- package/dist/v1/runner/highlightSelector.js.map +1 -1
- package/dist/v1/runner/identity.d.ts +2 -0
- package/dist/v1/runner/identity.d.ts.map +1 -1
- package/dist/v1/runner/identity.js +2 -0
- package/dist/v1/runner/identity.js.map +1 -1
- package/dist/v1/runner/importPackage.d.ts +5 -1
- package/dist/v1/runner/importPackage.d.ts.map +1 -1
- package/dist/v1/runner/importPackage.js +5 -2
- package/dist/v1/runner/importPackage.js.map +1 -1
- package/dist/v1/runner/index.d.ts +9 -2
- package/dist/v1/runner/index.d.ts.map +1 -1
- package/dist/v1/runner/index.js +9 -3
- package/dist/v1/runner/index.js.map +1 -1
- package/dist/v1/runner/inspect.d.ts +5 -1
- package/dist/v1/runner/inspect.d.ts.map +1 -1
- package/dist/v1/runner/inspect.js +5 -2
- package/dist/v1/runner/inspect.js.map +1 -1
- package/dist/v1/runner/inspectMobile.d.ts +5 -1
- package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
- package/dist/v1/runner/inspectMobile.js +5 -2
- package/dist/v1/runner/inspectMobile.js.map +1 -1
- package/dist/v1/runner/list.d.ts +8 -3
- package/dist/v1/runner/list.d.ts.map +1 -1
- package/dist/v1/runner/list.js +8 -4
- package/dist/v1/runner/list.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +5 -1
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +5 -2
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/promoteSnapshot.d.ts +5 -1
- package/dist/v1/runner/promoteSnapshot.d.ts.map +1 -1
- package/dist/v1/runner/promoteSnapshot.js +5 -2
- package/dist/v1/runner/promoteSnapshot.js.map +1 -1
- package/dist/v1/runner/readJournal.d.ts +5 -1
- package/dist/v1/runner/readJournal.d.ts.map +1 -1
- package/dist/v1/runner/readJournal.js +5 -2
- package/dist/v1/runner/readJournal.js.map +1 -1
- package/dist/v1/runner/runFlow.d.ts +3 -1
- package/dist/v1/runner/runFlow.d.ts.map +1 -1
- package/dist/v1/runner/runFlow.js +4 -1
- package/dist/v1/runner/runFlow.js.map +1 -1
- package/dist/v1/runner/stopRun.d.ts +5 -1
- package/dist/v1/runner/stopRun.d.ts.map +1 -1
- package/dist/v1/runner/stopRun.js +5 -2
- package/dist/v1/runner/stopRun.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +5 -1
- package/dist/v1/runner/takeScreenshot.d.ts.map +1 -1
- package/dist/v1/runner/takeScreenshot.js +5 -2
- package/dist/v1/runner/takeScreenshot.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -1120,6 +1120,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1120
1120
|
filePath: z.ZodOptional<z.ZodString>;
|
|
1121
1121
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1122
1122
|
id: z.ZodString;
|
|
1123
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1123
1124
|
}, z.core.$strip>;
|
|
1124
1125
|
readonly kind: "write";
|
|
1125
1126
|
readonly name: "runner.evaluateSnippet";
|
|
@@ -1143,6 +1144,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1143
1144
|
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.";
|
|
1144
1145
|
readonly input: z.ZodObject<{
|
|
1145
1146
|
id: z.ZodString;
|
|
1147
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1146
1148
|
}, z.core.$strip>;
|
|
1147
1149
|
readonly kind: "read";
|
|
1148
1150
|
readonly name: "runner.get";
|
|
@@ -1157,6 +1159,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1157
1159
|
readonly input: z.ZodObject<{
|
|
1158
1160
|
id: z.ZodString;
|
|
1159
1161
|
selector: z.ZodString;
|
|
1162
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1160
1163
|
}, z.core.$strip>;
|
|
1161
1164
|
readonly kind: "write";
|
|
1162
1165
|
readonly name: "runner.highlightSelector";
|
|
@@ -1185,6 +1188,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1185
1188
|
npmDependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1186
1189
|
packageName: z.ZodString;
|
|
1187
1190
|
packageVersion: z.ZodString;
|
|
1191
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1188
1192
|
}, z.core.$strip>;
|
|
1189
1193
|
readonly kind: "write";
|
|
1190
1194
|
readonly name: "runner.importPackage";
|
|
@@ -1213,6 +1217,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1213
1217
|
variableName: z.ZodString;
|
|
1214
1218
|
what: z.ZodLiteral<"variable">;
|
|
1215
1219
|
}, z.core.$strip>], "what">;
|
|
1220
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1216
1221
|
}, z.core.$strip>;
|
|
1217
1222
|
readonly kind: "read";
|
|
1218
1223
|
readonly name: "runner.inspect";
|
|
@@ -1253,6 +1258,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1253
1258
|
text: z.ZodString;
|
|
1254
1259
|
what: z.ZodLiteral<"elements">;
|
|
1255
1260
|
}, z.core.$strip>], "by">], "what">;
|
|
1261
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1256
1262
|
}, z.core.$strip>;
|
|
1257
1263
|
readonly kind: "read";
|
|
1258
1264
|
readonly name: "runner.inspectMobile";
|
|
@@ -1442,6 +1448,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1442
1448
|
android: "android";
|
|
1443
1449
|
ios: "ios";
|
|
1444
1450
|
}>>;
|
|
1451
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1445
1452
|
}, z.core.$strip>;
|
|
1446
1453
|
readonly kind: "write";
|
|
1447
1454
|
readonly name: "runner.launch";
|
|
@@ -1459,8 +1466,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1459
1466
|
}, z.core.$strip>;
|
|
1460
1467
|
};
|
|
1461
1468
|
list: {
|
|
1462
|
-
readonly description: "List the runners running on the caller's team right now.
|
|
1463
|
-
readonly input: z.ZodObject<{
|
|
1469
|
+
readonly description: "List the runners running on the caller's team right now. A team API key already names the team and sends nothing; a credential bound to no single workspace names one in `workspaceId`. A runner that was terminated, or that terminated on its own after inactivity, is not listed, because the run system keeps no record of a runner once it is gone. 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. It is how to find a runner launched from another machine or in an earlier session, when the id it was launched under is no longer at hand.";
|
|
1470
|
+
readonly input: z.ZodObject<{
|
|
1471
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1472
|
+
}, z.core.$strip>;
|
|
1464
1473
|
readonly kind: "read";
|
|
1465
1474
|
readonly name: "runner.list";
|
|
1466
1475
|
readonly output: z.ZodObject<{
|
|
@@ -1516,6 +1525,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1516
1525
|
type: z.ZodLiteral<"type">;
|
|
1517
1526
|
}, z.core.$strict>], "type">;
|
|
1518
1527
|
id: z.ZodString;
|
|
1528
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1519
1529
|
}, z.core.$strip>;
|
|
1520
1530
|
readonly kind: "write";
|
|
1521
1531
|
readonly name: "runner.performAction";
|
|
@@ -1542,6 +1552,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1542
1552
|
baselinePath: z.ZodString;
|
|
1543
1553
|
id: z.ZodString;
|
|
1544
1554
|
screenshotPath: z.ZodString;
|
|
1555
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1545
1556
|
}, z.core.$strip>;
|
|
1546
1557
|
readonly kind: "write";
|
|
1547
1558
|
readonly name: "runner.promoteSnapshot";
|
|
@@ -1564,6 +1575,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1564
1575
|
tail: z.ZodOptional<z.ZodNumber>;
|
|
1565
1576
|
id: z.ZodString;
|
|
1566
1577
|
stream: z.ZodString;
|
|
1578
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1567
1579
|
}, z.core.$strip>;
|
|
1568
1580
|
readonly kind: "read";
|
|
1569
1581
|
readonly name: "runner.readJournal";
|
|
@@ -1602,6 +1614,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1602
1614
|
startLine: z.ZodInt;
|
|
1603
1615
|
}, z.core.$strip>>;
|
|
1604
1616
|
unchangedFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1617
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1605
1618
|
}, z.core.$strip>;
|
|
1606
1619
|
readonly kind: "write";
|
|
1607
1620
|
readonly name: "runner.runFlow";
|
|
@@ -1637,6 +1650,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1637
1650
|
readonly description: "Stop what a runner is currently executing, leaving the runner up and its browser on whatever page the run reached. Succeeds whether or not anything was running, and `wasRunning` says which. This is the counterpart of `runner.terminate`, which ends the runner itself. The run stops where it is, so the journal's `run-status` settles it as stopped rather than passed or failed. `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 stop may still have landed, but stopping a runner that is already idle does nothing, so retrying is safe.";
|
|
1638
1651
|
readonly input: z.ZodObject<{
|
|
1639
1652
|
id: z.ZodString;
|
|
1653
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1640
1654
|
}, z.core.$strip>;
|
|
1641
1655
|
readonly kind: "write";
|
|
1642
1656
|
readonly name: "runner.stopRun";
|
|
@@ -1654,6 +1668,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1654
1668
|
readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all. On a mobile runner it is the device's own screen, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` 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.";
|
|
1655
1669
|
readonly input: z.ZodObject<{
|
|
1656
1670
|
id: z.ZodString;
|
|
1671
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1657
1672
|
}, z.core.$strip>;
|
|
1658
1673
|
readonly kind: "read";
|
|
1659
1674
|
readonly name: "runner.takeScreenshot";
|
|
@@ -1674,6 +1689,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1674
1689
|
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.";
|
|
1675
1690
|
readonly input: z.ZodObject<{
|
|
1676
1691
|
id: z.ZodString;
|
|
1692
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1677
1693
|
}, z.core.$strip>;
|
|
1678
1694
|
readonly kind: "write";
|
|
1679
1695
|
readonly name: "runner.terminate";
|
|
@@ -2823,6 +2839,7 @@ export declare const publicContractsV1: {
|
|
|
2823
2839
|
filePath: z.ZodOptional<z.ZodString>;
|
|
2824
2840
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2825
2841
|
id: z.ZodString;
|
|
2842
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2826
2843
|
}, z.core.$strip>;
|
|
2827
2844
|
readonly kind: "write";
|
|
2828
2845
|
readonly name: "runner.evaluateSnippet";
|
|
@@ -2846,6 +2863,7 @@ export declare const publicContractsV1: {
|
|
|
2846
2863
|
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.";
|
|
2847
2864
|
readonly input: z.ZodObject<{
|
|
2848
2865
|
id: z.ZodString;
|
|
2866
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2849
2867
|
}, z.core.$strip>;
|
|
2850
2868
|
readonly kind: "read";
|
|
2851
2869
|
readonly name: "runner.get";
|
|
@@ -2860,6 +2878,7 @@ export declare const publicContractsV1: {
|
|
|
2860
2878
|
readonly input: z.ZodObject<{
|
|
2861
2879
|
id: z.ZodString;
|
|
2862
2880
|
selector: z.ZodString;
|
|
2881
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2863
2882
|
}, z.core.$strip>;
|
|
2864
2883
|
readonly kind: "write";
|
|
2865
2884
|
readonly name: "runner.highlightSelector";
|
|
@@ -2888,6 +2907,7 @@ export declare const publicContractsV1: {
|
|
|
2888
2907
|
npmDependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2889
2908
|
packageName: z.ZodString;
|
|
2890
2909
|
packageVersion: z.ZodString;
|
|
2910
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2891
2911
|
}, z.core.$strip>;
|
|
2892
2912
|
readonly kind: "write";
|
|
2893
2913
|
readonly name: "runner.importPackage";
|
|
@@ -2916,6 +2936,7 @@ export declare const publicContractsV1: {
|
|
|
2916
2936
|
variableName: z.ZodString;
|
|
2917
2937
|
what: z.ZodLiteral<"variable">;
|
|
2918
2938
|
}, z.core.$strip>], "what">;
|
|
2939
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2919
2940
|
}, z.core.$strip>;
|
|
2920
2941
|
readonly kind: "read";
|
|
2921
2942
|
readonly name: "runner.inspect";
|
|
@@ -2956,6 +2977,7 @@ export declare const publicContractsV1: {
|
|
|
2956
2977
|
text: z.ZodString;
|
|
2957
2978
|
what: z.ZodLiteral<"elements">;
|
|
2958
2979
|
}, z.core.$strip>], "by">], "what">;
|
|
2980
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2959
2981
|
}, z.core.$strip>;
|
|
2960
2982
|
readonly kind: "read";
|
|
2961
2983
|
readonly name: "runner.inspectMobile";
|
|
@@ -3145,6 +3167,7 @@ export declare const publicContractsV1: {
|
|
|
3145
3167
|
android: "android";
|
|
3146
3168
|
ios: "ios";
|
|
3147
3169
|
}>>;
|
|
3170
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3148
3171
|
}, z.core.$strip>;
|
|
3149
3172
|
readonly kind: "write";
|
|
3150
3173
|
readonly name: "runner.launch";
|
|
@@ -3162,8 +3185,10 @@ export declare const publicContractsV1: {
|
|
|
3162
3185
|
}, z.core.$strip>;
|
|
3163
3186
|
};
|
|
3164
3187
|
list: {
|
|
3165
|
-
readonly description: "List the runners running on the caller's team right now.
|
|
3166
|
-
readonly input: z.ZodObject<{
|
|
3188
|
+
readonly description: "List the runners running on the caller's team right now. A team API key already names the team and sends nothing; a credential bound to no single workspace names one in `workspaceId`. A runner that was terminated, or that terminated on its own after inactivity, is not listed, because the run system keeps no record of a runner once it is gone. 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. It is how to find a runner launched from another machine or in an earlier session, when the id it was launched under is no longer at hand.";
|
|
3189
|
+
readonly input: z.ZodObject<{
|
|
3190
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3191
|
+
}, z.core.$strip>;
|
|
3167
3192
|
readonly kind: "read";
|
|
3168
3193
|
readonly name: "runner.list";
|
|
3169
3194
|
readonly output: z.ZodObject<{
|
|
@@ -3219,6 +3244,7 @@ export declare const publicContractsV1: {
|
|
|
3219
3244
|
type: z.ZodLiteral<"type">;
|
|
3220
3245
|
}, z.core.$strict>], "type">;
|
|
3221
3246
|
id: z.ZodString;
|
|
3247
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3222
3248
|
}, z.core.$strip>;
|
|
3223
3249
|
readonly kind: "write";
|
|
3224
3250
|
readonly name: "runner.performAction";
|
|
@@ -3245,6 +3271,7 @@ export declare const publicContractsV1: {
|
|
|
3245
3271
|
baselinePath: z.ZodString;
|
|
3246
3272
|
id: z.ZodString;
|
|
3247
3273
|
screenshotPath: z.ZodString;
|
|
3274
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3248
3275
|
}, z.core.$strip>;
|
|
3249
3276
|
readonly kind: "write";
|
|
3250
3277
|
readonly name: "runner.promoteSnapshot";
|
|
@@ -3267,6 +3294,7 @@ export declare const publicContractsV1: {
|
|
|
3267
3294
|
tail: z.ZodOptional<z.ZodNumber>;
|
|
3268
3295
|
id: z.ZodString;
|
|
3269
3296
|
stream: z.ZodString;
|
|
3297
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3270
3298
|
}, z.core.$strip>;
|
|
3271
3299
|
readonly kind: "read";
|
|
3272
3300
|
readonly name: "runner.readJournal";
|
|
@@ -3305,6 +3333,7 @@ export declare const publicContractsV1: {
|
|
|
3305
3333
|
startLine: z.ZodInt;
|
|
3306
3334
|
}, z.core.$strip>>;
|
|
3307
3335
|
unchangedFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3336
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3308
3337
|
}, z.core.$strip>;
|
|
3309
3338
|
readonly kind: "write";
|
|
3310
3339
|
readonly name: "runner.runFlow";
|
|
@@ -3340,6 +3369,7 @@ export declare const publicContractsV1: {
|
|
|
3340
3369
|
readonly description: "Stop what a runner is currently executing, leaving the runner up and its browser on whatever page the run reached. Succeeds whether or not anything was running, and `wasRunning` says which. This is the counterpart of `runner.terminate`, which ends the runner itself. The run stops where it is, so the journal's `run-status` settles it as stopped rather than passed or failed. `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 stop may still have landed, but stopping a runner that is already idle does nothing, so retrying is safe.";
|
|
3341
3370
|
readonly input: z.ZodObject<{
|
|
3342
3371
|
id: z.ZodString;
|
|
3372
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3343
3373
|
}, z.core.$strip>;
|
|
3344
3374
|
readonly kind: "write";
|
|
3345
3375
|
readonly name: "runner.stopRun";
|
|
@@ -3357,6 +3387,7 @@ export declare const publicContractsV1: {
|
|
|
3357
3387
|
readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all. On a mobile runner it is the device's own screen, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` 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.";
|
|
3358
3388
|
readonly input: z.ZodObject<{
|
|
3359
3389
|
id: z.ZodString;
|
|
3390
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3360
3391
|
}, z.core.$strip>;
|
|
3361
3392
|
readonly kind: "read";
|
|
3362
3393
|
readonly name: "runner.takeScreenshot";
|
|
@@ -3377,6 +3408,7 @@ export declare const publicContractsV1: {
|
|
|
3377
3408
|
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.";
|
|
3378
3409
|
readonly input: z.ZodObject<{
|
|
3379
3410
|
id: z.ZodString;
|
|
3411
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3380
3412
|
}, z.core.$strip>;
|
|
3381
3413
|
readonly kind: "write";
|
|
3382
3414
|
readonly name: "runner.terminate";
|
package/dist/v1/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|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|
-
evaluateSnippet: makeEvaluateSnippetOnRunnerContract(),
|
|
110
|
-
get: makeGetRunnerContract(),
|
|
111
|
-
highlightSelector: makeHighlightSelectorOnRunnerContract(),
|
|
112
|
-
importPackage: makeImportPackageOnRunnerContract(),
|
|
113
|
-
inspect: makeInspectOnRunnerContract(),
|
|
114
|
-
inspectMobile: makeInspectMobileOnRunnerContract(),
|
|
115
|
-
launch: makeLaunchRunnerContract(),
|
|
116
|
-
list: makeListRunnersContract(),
|
|
117
|
-
performAction: makePerformActionOnRunnerContract(),
|
|
118
|
-
promoteSnapshot: makePromoteSnapshotOnRunnerContract(),
|
|
119
|
-
readJournal: makeReadRunnerJournalContract(),
|
|
109
|
+
evaluateSnippet: makeEvaluateSnippetOnRunnerContract(resolvedIds),
|
|
110
|
+
get: makeGetRunnerContract(resolvedIds),
|
|
111
|
+
highlightSelector: makeHighlightSelectorOnRunnerContract(resolvedIds),
|
|
112
|
+
importPackage: makeImportPackageOnRunnerContract(resolvedIds),
|
|
113
|
+
inspect: makeInspectOnRunnerContract(resolvedIds),
|
|
114
|
+
inspectMobile: makeInspectMobileOnRunnerContract(resolvedIds),
|
|
115
|
+
launch: makeLaunchRunnerContract(resolvedIds),
|
|
116
|
+
list: makeListRunnersContract(resolvedIds),
|
|
117
|
+
performAction: makePerformActionOnRunnerContract(resolvedIds),
|
|
118
|
+
promoteSnapshot: makePromoteSnapshotOnRunnerContract(resolvedIds),
|
|
119
|
+
readJournal: makeReadRunnerJournalContract(resolvedIds),
|
|
120
120
|
runFlow: makeRunFlowOnRunnerContract(resolvedIds),
|
|
121
|
-
stopRun: makeStopRunOnRunnerContract(),
|
|
122
|
-
takeScreenshot: makeTakeScreenshotOnRunnerContract(),
|
|
123
|
-
terminate: makeTerminateRunnerContract(),
|
|
121
|
+
stopRun: makeStopRunOnRunnerContract(resolvedIds),
|
|
122
|
+
takeScreenshot: makeTakeScreenshotOnRunnerContract(resolvedIds),
|
|
123
|
+
terminate: makeTerminateRunnerContract(resolvedIds),
|
|
124
124
|
},
|
|
125
125
|
tag: {
|
|
126
126
|
create: makeCreateTagContract(resolvedIds),
|
package/dist/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM/E,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAyB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,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,gBAAgB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,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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,CAAC;YACjE,WAAW,EAAE,6BAA6B,CAAC,WAAW,CAAC;YACvD,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC;YACjD,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC;YACjD,cAAc,EAAE,kCAAkC,CAAC,WAAW,CAAC;YAC/D,SAAS,EAAE,2BAA2B,CAAC,WAAW,CAAC;SACpD;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"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeEvaluateSnippetOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
|
+
workspace: WorkspaceId;
|
|
5
|
+
}) => {
|
|
3
6
|
readonly 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-cannot-evaluate-snippets` on a runner with nothing attached to serve one — which will never clear, so check that the runner you launched is one that runs a browser or app before retrying. `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. Neither is 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.";
|
|
4
7
|
readonly input: z.ZodObject<{
|
|
5
8
|
code: z.ZodString;
|
|
6
9
|
filePath: z.ZodOptional<z.ZodString>;
|
|
7
10
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
11
|
id: z.ZodString;
|
|
12
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
9
13
|
}, z.core.$strip>;
|
|
10
14
|
readonly kind: "write";
|
|
11
15
|
readonly name: "runner.evaluateSnippet";
|
|
@@ -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;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAehD,eAAO,MAAM,mCAAmC,GAC9C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { runFilePathSchema } from "./files.js";
|
|
3
|
-
import { runnerIdSchema } from "./identity.js";
|
|
3
|
+
import { runnerIdSchema, runnerWorkspaceIdDescription } from "./identity.js";
|
|
4
4
|
import { makeRunnerFailureSchema } from "./outcome.js";
|
|
5
5
|
import { runFilesSchema } from "./payloadSize.js";
|
|
6
6
|
import { runnerUnreachableFailureReason } from "./unreachable.js";
|
|
@@ -10,7 +10,7 @@ import { runnerUnreachableFailureReason } from "./unreachable.js";
|
|
|
10
10
|
* as files, where the travel rule applies.
|
|
11
11
|
*/
|
|
12
12
|
const maxSnippetCodeLength = 64 * 1024;
|
|
13
|
-
export const makeEvaluateSnippetOnRunnerContract = () => {
|
|
13
|
+
export const makeEvaluateSnippetOnRunnerContract = (ids) => {
|
|
14
14
|
const input = z
|
|
15
15
|
.object({
|
|
16
16
|
code: z
|
|
@@ -25,6 +25,9 @@ export const makeEvaluateSnippetOnRunnerContract = () => {
|
|
|
25
25
|
.optional()
|
|
26
26
|
.describe("The file named by `filePath` and everything it imports. A runner holds no copy of your project, so a snippet's scope has to travel with it."),
|
|
27
27
|
id: runnerIdSchema.describe("Id of the runner to evaluate the snippet on."),
|
|
28
|
+
workspaceId: ids.workspace
|
|
29
|
+
.optional()
|
|
30
|
+
.describe(runnerWorkspaceIdDescription),
|
|
28
31
|
})
|
|
29
32
|
.refine((request) => request.filePath === undefined ||
|
|
30
33
|
Object.hasOwn(request.files ?? {}, request.filePath), {
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"evaluateSnippet.js","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,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,CAEjD,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,oBAAoB,CAAC;aACzB,QAAQ,CACP,oGAAoG,CACrG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
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeGetRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
|
+
workspace: WorkspaceId;
|
|
5
|
+
}) => {
|
|
3
6
|
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
7
|
readonly input: z.ZodObject<{
|
|
5
8
|
id: z.ZodString;
|
|
9
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
6
10
|
}, z.core.$strip>;
|
|
7
11
|
readonly kind: "read";
|
|
8
12
|
readonly name: "runner.get";
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,qBAAqB,GAAI,WAAW,SAAS,cAAc,EAAE,KAAK;IAC7E,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;CA+BA,CAAC"}
|
package/dist/v1/runner/get.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { runnerIdSchema } from "./identity.js";
|
|
3
|
-
export const makeGetRunnerContract = () => {
|
|
2
|
+
import { runnerIdSchema, runnerWorkspaceIdDescription } from "./identity.js";
|
|
3
|
+
export const makeGetRunnerContract = (ids) => {
|
|
4
4
|
const input = z.object({
|
|
5
5
|
id: runnerIdSchema.describe("Id of the runner to look up."),
|
|
6
|
+
workspaceId: ids.workspace
|
|
7
|
+
.optional()
|
|
8
|
+
.describe(runnerWorkspaceIdDescription),
|
|
6
9
|
});
|
|
7
10
|
const output = z.object({
|
|
8
11
|
id: runnerIdSchema.describe("Id of the runner the call addressed."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/runner/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/runner/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAqC,GAEzE,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3D,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CAAC,4BAA4B,CAAC;KAC1C,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"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
2
3
|
/** Long enough for a generated Playwright locator, short enough to bound the page work. */
|
|
3
4
|
export declare const maxHighlightSelectorLength = 2000;
|
|
4
|
-
export declare const makeHighlightSelectorOnRunnerContract: (
|
|
5
|
+
export declare const makeHighlightSelectorOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
6
|
+
workspace: WorkspaceId;
|
|
7
|
+
}) => {
|
|
5
8
|
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
9
|
readonly input: z.ZodObject<{
|
|
7
10
|
id: z.ZodString;
|
|
8
11
|
selector: z.ZodString;
|
|
12
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
9
13
|
}, z.core.$strip>;
|
|
10
14
|
readonly kind: "write";
|
|
11
15
|
readonly name: "runner.highlightSelector";
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"highlightSelector.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/highlightSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,2FAA2F;AAC3F,eAAO,MAAM,0BAA0B,OAAQ,CAAC;AAEhD,eAAO,MAAM,qCAAqC,GAChD,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DA,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { runnerIdSchema } from "./identity.js";
|
|
2
|
+
import { runnerIdSchema, runnerWorkspaceIdDescription } from "./identity.js";
|
|
3
3
|
/** Long enough for a generated Playwright locator, short enough to bound the page work. */
|
|
4
4
|
export const maxHighlightSelectorLength = 2_000;
|
|
5
|
-
export const makeHighlightSelectorOnRunnerContract = () => {
|
|
5
|
+
export const makeHighlightSelectorOnRunnerContract = (ids) => {
|
|
6
6
|
const input = z.object({
|
|
7
7
|
id: runnerIdSchema.describe("Id of the runner to highlight on."),
|
|
8
8
|
selector: z
|
|
9
9
|
.string()
|
|
10
10
|
.max(maxHighlightSelectorLength)
|
|
11
11
|
.describe("The selector to highlight. An empty string clears whatever is highlighted."),
|
|
12
|
+
workspaceId: ids.workspace
|
|
13
|
+
.optional()
|
|
14
|
+
.describe(runnerWorkspaceIdDescription),
|
|
12
15
|
});
|
|
13
16
|
const output = z.discriminatedUnion("outcome", [
|
|
14
17
|
z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlightSelector.js","sourceRoot":"","sources":["../../../src/v1/runner/highlightSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"highlightSelector.js","sourceRoot":"","sources":["../../../src/v1/runner/highlightSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7E,2FAA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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"}
|
|
@@ -6,6 +6,8 @@ export declare const runnerNameSchema: z.ZodEnum<{
|
|
|
6
6
|
ios: "ios";
|
|
7
7
|
}>;
|
|
8
8
|
export type RunnerNameForPublicApi = z.infer<typeof runnerNameSchema>;
|
|
9
|
+
export declare const runnerWorkspaceRequirement = "Required when the credential is not bound to a single workspace, such as a user API key or an OAuth connection whose organization owns several.";
|
|
10
|
+
export declare const runnerWorkspaceIdDescription = "The workspace the runner belongs to. Required when the credential is not bound to a single workspace, such as a user API key or an OAuth connection whose organization owns several.";
|
|
9
11
|
export declare const runnerIdSchema: z.ZodString;
|
|
10
12
|
/** The shared interactive runner shape. */
|
|
11
13
|
export declare const makeRunnerSchema: () => z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc,aAOxB,CAAC;AAEJ,2CAA2C;AAC3C,eAAO,MAAM,gBAAgB;;;;;;;;;iBAazB,CAAC"}
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,eAAO,MAAM,0BAA0B,oJAC4G,CAAC;AAEpJ,eAAO,MAAM,4BAA4B,yLAAuE,CAAC;AAEjH,eAAO,MAAM,cAAc,aAOxB,CAAC;AAEJ,2CAA2C;AAC3C,eAAO,MAAM,gBAAgB;;;;;;;;;iBAazB,CAAC"}
|
|
@@ -5,6 +5,8 @@ export const runnerNameSchema = z.enum([
|
|
|
5
5
|
"android",
|
|
6
6
|
"ios",
|
|
7
7
|
]);
|
|
8
|
+
export const runnerWorkspaceRequirement = "Required when the credential is not bound to a single workspace, such as a user API key or an OAuth connection whose organization owns several.";
|
|
9
|
+
export const runnerWorkspaceIdDescription = `The workspace the runner belongs to. ${runnerWorkspaceRequirement}`;
|
|
8
10
|
export const runnerIdSchema = z
|
|
9
11
|
.string()
|
|
10
12
|
.min(1)
|
|
@@ -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,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"}
|
|
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,0BAA0B,GACrC,iJAAiJ,CAAC;AAEpJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,wCAAwC,0BAA0B,EAAE,CAAC;AAEjH,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"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeImportPackageOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
|
+
workspace: WorkspaceId;
|
|
5
|
+
}) => {
|
|
3
6
|
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
7
|
readonly input: z.ZodObject<{
|
|
5
8
|
id: z.ZodString;
|
|
6
9
|
npmDependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7
10
|
packageName: z.ZodString;
|
|
8
11
|
packageVersion: z.ZodString;
|
|
12
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
9
13
|
}, z.core.$strip>;
|
|
10
14
|
readonly kind: "write";
|
|
11
15
|
readonly name: "runner.importPackage";
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"importPackage.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/importPackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAOhD,eAAO,MAAM,iCAAiC,GAC5C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;CAwCA,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { runnerIdSchema } from "./identity.js";
|
|
2
|
+
import { runnerIdSchema, runnerWorkspaceIdDescription } from "./identity.js";
|
|
3
3
|
const maxPackageNameLength = 214;
|
|
4
4
|
const maxPackageVersionLength = 256;
|
|
5
|
-
export const makeImportPackageOnRunnerContract = () => {
|
|
5
|
+
export const makeImportPackageOnRunnerContract = (ids) => {
|
|
6
6
|
const input = z.object({
|
|
7
7
|
id: runnerIdSchema.describe("Id of the runner to install into."),
|
|
8
8
|
npmDependencies: z
|
|
@@ -10,6 +10,9 @@ export const makeImportPackageOnRunnerContract = () => {
|
|
|
10
10
|
.describe("The run's current npm dependencies, so the install resolves against them."),
|
|
11
11
|
packageName: z.string().min(1).max(maxPackageNameLength),
|
|
12
12
|
packageVersion: z.string().min(1).max(maxPackageVersionLength),
|
|
13
|
+
workspaceId: ids.workspace
|
|
14
|
+
.optional()
|
|
15
|
+
.describe(runnerWorkspaceIdDescription),
|
|
13
16
|
});
|
|
14
17
|
const output = z.discriminatedUnion("outcome", [
|
|
15
18
|
z.object({ outcome: z.literal("success") }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importPackage.js","sourceRoot":"","sources":["../../../src/v1/runner/importPackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"importPackage.js","sourceRoot":"","sources":["../../../src/v1/runner/importPackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7E,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAE/C,GAED,EAAE,EAAE;IACH,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,C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