@qawolf/api-contracts 0.35.0 → 0.37.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/automate/index.d.ts +2 -1
- package/dist/v1/automate/index.d.ts.map +1 -1
- package/dist/v1/automate/index.js +4 -1
- package/dist/v1/automate/index.js.map +1 -1
- package/dist/v1/flow/index.d.ts +4 -2
- package/dist/v1/flow/index.d.ts.map +1 -1
- package/dist/v1/flow/index.js +4 -1
- package/dist/v1/flow/index.js.map +1 -1
- package/dist/v1/index.d.ts +10 -4
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/run/get.js +4 -4
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/runner/evaluateSnippet.d.ts +2 -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/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicIdSchema, PublicIdSchemasOf } from "../ids.js";
|
|
3
|
-
export declare const makeAutomateContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, AutomationId extends PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId, AutomationId>) => {
|
|
3
|
+
export declare const makeAutomateContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, AutomationId extends PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId, AutomationId, PublicIdSchema, PublicIdSchema, AiTaskId>) => {
|
|
4
4
|
readonly description: "Request automation for draft flows. First create a named local .flow.ts draft for every requested journey that does not already have a matching draft; never reuse a generic starter or placeholder. Each new draft must start with a JSDoc Goal: description, import flow from @qawolf/flows/web, and use export default flow(...); a comment-only file or direct test(...) call is not a valid draft. Commit and push all changes with Git to publish them, then list remote drafts to resolve every selected ID. Do not use patch to create or rename a selected flow. Finally make one automation request containing all requested flow IDs.";
|
|
5
5
|
readonly input: z.ZodObject<{
|
|
6
|
+
aiTaskId: z.ZodOptional<AiTaskId>;
|
|
6
7
|
environmentId: PublicIdSchema;
|
|
7
8
|
flowIds: z.ZodArray<FlowId>;
|
|
8
9
|
patch: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/automate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnE,eAAO,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/automate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnE,eAAO,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,EACnC,QAAQ,SAAS,cAAc,GAAG,cAAc,EAEhD,KAAK,iBAAiB,CACpB,aAAa,EACb,MAAM,EACN,KAAK,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,QAAQ,CACT;;;;;;;;;;;;;;CAgDF,CAAC"}
|
|
@@ -2,6 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
import { resource } from "../resource.js";
|
|
3
3
|
export const makeAutomateContract = (ids) => {
|
|
4
4
|
const input = z.object({
|
|
5
|
+
aiTaskId: ids.aiTask
|
|
6
|
+
.describe("The AI task to build the automation on: drafts are read from and the automation branches off the task's branch instead of the environment's.")
|
|
7
|
+
.optional(),
|
|
5
8
|
environmentId: ids.environmentRef,
|
|
6
9
|
flowIds: z
|
|
7
10
|
.array(ids.flow)
|
|
@@ -9,7 +12,7 @@ export const makeAutomateContract = (ids) => {
|
|
|
9
12
|
// Matches the server's maxJobsPerAiJobGroup cap.
|
|
10
13
|
.max(300)
|
|
11
14
|
.refine((flowIds) => new Set(flowIds).size === flowIds.length, "flowIds must be unique")
|
|
12
|
-
.describe("IDs of every requested draft flow the automation builds. Reuse an existing draft only when its name matches the requested journey; a generic starter or placeholder is not a match. After publishing, resolve the IDs with `qawolf --json flows list --remote --env <environment-id-or-alias> --include-drafts
|
|
15
|
+
.describe("IDs of every requested draft flow the automation builds. Reuse an existing draft only when its name matches the requested journey; a generic starter or placeholder is not a match. After publishing, resolve the IDs with `qawolf --json flows list --remote --env <environment-id-or-alias> --include-drafts`, adding `--ai-task-id` when the drafts live on an AI task's branch."),
|
|
13
16
|
patch: z
|
|
14
17
|
.string()
|
|
15
18
|
.min(1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/automate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/automate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAOlC,GAQC,EACD,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,GAAG,CAAC,MAAM;aACjB,QAAQ,CACP,8IAA8I,CAC/I;aACA,QAAQ,EAAE;QACb,aAAa,EAAE,GAAG,CAAC,cAAc;QACjC,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,GAAG,CAAC,CAAC,CAAC;YACP,iDAAiD;aAChD,GAAG,CAAC,GAAG,CAAC;aACR,MAAM,CACL,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,EACrD,wBAAwB,CACzB;aACA,QAAQ,CACP,qXAAqX,CACtX;QACH,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,SAAS,CAAC;aACd,QAAQ,EAAE;aACV,QAAQ,CACP,4JAA4J,CAC7J;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,QAAQ,CACrB,EAAE,YAAY,EAAE,GAAG,CAAC,UAAU,EAAE,EAChC,EAAE,mBAAmB,EAAE,6CAA6C,EAAE,CACvE,CAAC;IAEF,OAAO;QACL,WAAW,EACT,knBAAknB;QACpnB,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,UAAU;QAChB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/v1/flow/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
-
export declare const makeListFlowsContract: <FlowId extends PublicIdSchema>(ids: {
|
|
3
|
+
export declare const makeListFlowsContract: <FlowId extends PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema>(ids: {
|
|
4
|
+
aiTask: AiTaskId;
|
|
4
5
|
environmentRef: PublicIdSchema;
|
|
5
6
|
flow: FlowId;
|
|
6
7
|
}) => {
|
|
7
|
-
readonly description: "List the flows of an environment at its latest reconciled commit.";
|
|
8
|
+
readonly description: "List the flows of an environment at its latest reconciled commit, or, when an AI task is given, the flows on that task's branch.";
|
|
8
9
|
readonly input: z.ZodObject<{
|
|
10
|
+
aiTaskId: z.ZodOptional<AiTaskId>;
|
|
9
11
|
environmentId: PublicIdSchema;
|
|
10
12
|
includeDrafts: z.ZodDefault<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/flow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/flow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,qBAAqB,GAChC,MAAM,SAAS,cAAc,EAC7B,QAAQ,SAAS,cAAc,GAAG,cAAc,EAChD,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;;;;;;;;;;;;;;;;;;;;;;;CAoDA,CAAC"}
|
package/dist/v1/flow/index.js
CHANGED
|
@@ -3,6 +3,9 @@ import { resource } from "../resource.js";
|
|
|
3
3
|
import { flowReadinessSchema } from "./readiness.js";
|
|
4
4
|
export const makeListFlowsContract = (ids) => {
|
|
5
5
|
const input = z.object({
|
|
6
|
+
aiTaskId: ids.aiTask
|
|
7
|
+
.describe("List the flows on this AI task's branch, including drafts, instead of the ones in the environment. The task must belong to the environment.")
|
|
8
|
+
.optional(),
|
|
6
9
|
environmentId: ids.environmentRef,
|
|
7
10
|
includeDrafts: z
|
|
8
11
|
.boolean()
|
|
@@ -27,7 +30,7 @@ export const makeListFlowsContract = (ids) => {
|
|
|
27
30
|
})),
|
|
28
31
|
});
|
|
29
32
|
return {
|
|
30
|
-
description: "List the flows of an environment at its latest reconciled commit.",
|
|
33
|
+
description: "List the flows of an environment at its latest reconciled commit, or, when an AI task is given, the flows on that task's branch.",
|
|
31
34
|
input,
|
|
32
35
|
kind: "read",
|
|
33
36
|
name: "flow.list",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/flow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/flow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAGnC,GAID,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,GAAG,CAAC,MAAM;aACjB,QAAQ,CACP,6IAA6I,CAC9I;aACA,QAAQ,EAAE;QACb,aAAa,EAAE,GAAG,CAAC,cAAc;QACjC,aAAa,EAAE,CAAC;aACb,OAAO,EAAE;aACT,OAAO,CAAC,KAAK,CAAC;aACd,QAAQ,CAAC,qCAAqC,CAAC;KACnD,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,CAAC;SACtB,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SAC7D,QAAQ,CAAC,8DAA8D,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,CAAC,CAAC,KAAK,CACZ,QAAQ,CACN;YACE,eAAe;YACf,MAAM,EAAE,GAAG,CAAC,IAAI;YAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;YAChB,IAAI,EAAE,CAAC;iBACJ,MAAM,EAAE;iBACR,QAAQ,CAAC,2CAA2C,CAAC;YACxD,SAAS,EAAE,mBAAmB,CAAC,QAAQ,CACrC,uDAAuD,CACxD;YACD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SAC1B,EACD;YACE,mBAAmB,EACjB,mDAAmD;SACtD,CACF,CACF;KACF,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,kIAAkI;QACpI,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,WAAW;QACjB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
19
19
|
automate: {
|
|
20
20
|
readonly description: "Request automation for draft flows. First create a named local .flow.ts draft for every requested journey that does not already have a matching draft; never reuse a generic starter or placeholder. Each new draft must start with a JSDoc Goal: description, import flow from @qawolf/flows/web, and use export default flow(...); a comment-only file or direct test(...) call is not a valid draft. Commit and push all changes with Git to publish them, then list remote drafts to resolve every selected ID. Do not use patch to create or rename a selected flow. Finally make one automation request containing all requested flow IDs.";
|
|
21
21
|
readonly input: z.ZodObject<{
|
|
22
|
+
aiTaskId: z.ZodOptional<AiTaskId>;
|
|
22
23
|
environmentId: PublicIdSchema;
|
|
23
24
|
flowIds: z.ZodArray<FlowId>;
|
|
24
25
|
patch: z.ZodOptional<z.ZodString>;
|
|
@@ -254,8 +255,9 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
254
255
|
}, z.core.$strip>;
|
|
255
256
|
};
|
|
256
257
|
list: {
|
|
257
|
-
readonly description: "List the flows of an environment at its latest reconciled commit.";
|
|
258
|
+
readonly description: "List the flows of an environment at its latest reconciled commit, or, when an AI task is given, the flows on that task's branch.";
|
|
258
259
|
readonly input: z.ZodObject<{
|
|
260
|
+
aiTaskId: z.ZodOptional<AiTaskId>;
|
|
259
261
|
environmentId: PublicIdSchema;
|
|
260
262
|
includeDrafts: z.ZodDefault<z.ZodBoolean>;
|
|
261
263
|
}, z.core.$strip>;
|
|
@@ -773,7 +775,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
773
775
|
};
|
|
774
776
|
runner: {
|
|
775
777
|
evaluateSnippet: {
|
|
776
|
-
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-
|
|
778
|
+
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.";
|
|
777
779
|
readonly input: z.ZodObject<{
|
|
778
780
|
code: z.ZodString;
|
|
779
781
|
filePath: z.ZodOptional<z.ZodString>;
|
|
@@ -793,6 +795,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
793
795
|
}, z.core.$strip>, z.ZodObject<{
|
|
794
796
|
failureReason: z.ZodEnum<{
|
|
795
797
|
"runner-unreachable": "runner-unreachable";
|
|
798
|
+
"runner-cannot-evaluate-snippets": "runner-cannot-evaluate-snippets";
|
|
796
799
|
}>;
|
|
797
800
|
outcome: z.ZodLiteral<"failure">;
|
|
798
801
|
}, z.core.$strip>], "outcome">;
|
|
@@ -1365,6 +1368,7 @@ export declare const publicContractsV1: {
|
|
|
1365
1368
|
automate: {
|
|
1366
1369
|
readonly description: "Request automation for draft flows. First create a named local .flow.ts draft for every requested journey that does not already have a matching draft; never reuse a generic starter or placeholder. Each new draft must start with a JSDoc Goal: description, import flow from @qawolf/flows/web, and use export default flow(...); a comment-only file or direct test(...) call is not a valid draft. Commit and push all changes with Git to publish them, then list remote drafts to resolve every selected ID. Do not use patch to create or rename a selected flow. Finally make one automation request containing all requested flow IDs.";
|
|
1367
1370
|
readonly input: z.ZodObject<{
|
|
1371
|
+
aiTaskId: z.ZodOptional<PublicIdSchema>;
|
|
1368
1372
|
environmentId: PublicIdSchema;
|
|
1369
1373
|
flowIds: z.ZodArray<PublicIdSchema>;
|
|
1370
1374
|
patch: z.ZodOptional<z.ZodString>;
|
|
@@ -1600,8 +1604,9 @@ export declare const publicContractsV1: {
|
|
|
1600
1604
|
}, z.core.$strip>;
|
|
1601
1605
|
};
|
|
1602
1606
|
list: {
|
|
1603
|
-
readonly description: "List the flows of an environment at its latest reconciled commit.";
|
|
1607
|
+
readonly description: "List the flows of an environment at its latest reconciled commit, or, when an AI task is given, the flows on that task's branch.";
|
|
1604
1608
|
readonly input: z.ZodObject<{
|
|
1609
|
+
aiTaskId: z.ZodOptional<PublicIdSchema>;
|
|
1605
1610
|
environmentId: PublicIdSchema;
|
|
1606
1611
|
includeDrafts: z.ZodDefault<z.ZodBoolean>;
|
|
1607
1612
|
}, z.core.$strip>;
|
|
@@ -2119,7 +2124,7 @@ export declare const publicContractsV1: {
|
|
|
2119
2124
|
};
|
|
2120
2125
|
runner: {
|
|
2121
2126
|
evaluateSnippet: {
|
|
2122
|
-
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-
|
|
2127
|
+
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.";
|
|
2123
2128
|
readonly input: z.ZodObject<{
|
|
2124
2129
|
code: z.ZodString;
|
|
2125
2130
|
filePath: z.ZodOptional<z.ZodString>;
|
|
@@ -2139,6 +2144,7 @@ export declare const publicContractsV1: {
|
|
|
2139
2144
|
}, z.core.$strip>, z.ZodObject<{
|
|
2140
2145
|
failureReason: z.ZodEnum<{
|
|
2141
2146
|
"runner-unreachable": "runner-unreachable";
|
|
2147
|
+
"runner-cannot-evaluate-snippets": "runner-cannot-evaluate-snippets";
|
|
2142
2148
|
}>;
|
|
2143
2149
|
outcome: z.ZodLiteral<"failure">;
|
|
2144
2150
|
}, z.core.$strip>], "outcome">;
|
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;AA4BlB,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACpE,GAAG,CAAC,OAAO,CAAC,CACb,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACrE,GAAG,CAAC,QAAQ,CAAC,CACd,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,GAAG,cAAc,EACpD,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,QAAQ,SAAS,cAAc,GAAG,cAAc,EAEhD,KAAK,iBAAiB,CACpB,aAAa,EACb,MAAM,EACN,KAAK,EACL,YAAY,EACZ,OAAO,EACP,WAAW,EACX,QAAQ,CACT
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
|
package/dist/v1/run/get.js
CHANGED
|
@@ -105,10 +105,10 @@ export const makeGetRunContract = (ids) => {
|
|
|
105
105
|
attempts,
|
|
106
106
|
failure: z.object({
|
|
107
107
|
diagnosis,
|
|
108
|
-
// The raw error from the run itself, available the moment the flow
|
|
109
|
-
// Chosen over QA Wolf's analyzed error
|
|
110
|
-
//
|
|
111
|
-
//
|
|
108
|
+
// The raw error from the run itself, available the moment the flow
|
|
109
|
+
// fails. Chosen over QA Wolf's analyzed error: the analysis is produced
|
|
110
|
+
// only after investigation and is usually absent while an agent is
|
|
111
|
+
// still polling, whereas this is immediate. Analysis fields
|
|
112
112
|
// (categorization, a parsed line number) can be added here later as
|
|
113
113
|
// optional additions without another contract bump.
|
|
114
114
|
error: z.string(),
|
package/dist/v1/run/get.js.map
CHANGED
|
@@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
|
2
2
|
export declare const makeEvaluateSnippetOnRunnerContract: () => {
|
|
3
|
-
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-
|
|
3
|
+
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
4
|
readonly input: z.ZodObject<{
|
|
5
5
|
code: z.ZodString;
|
|
6
6
|
filePath: z.ZodOptional<z.ZodString>;
|
|
@@ -20,6 +20,7 @@ export declare const makeEvaluateSnippetOnRunnerContract: () => {
|
|
|
20
20
|
}, z.core.$strip>, z.ZodObject<{
|
|
21
21
|
failureReason: z.ZodEnum<{
|
|
22
22
|
"runner-unreachable": "runner-unreachable";
|
|
23
|
+
"runner-cannot-evaluate-snippets": "runner-cannot-evaluate-snippets";
|
|
23
24
|
}>;
|
|
24
25
|
outcome: z.ZodLiteral<"failure">;
|
|
25
26
|
}, z.core.$strip>], "outcome">;
|
|
@@ -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;AAiBxB,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"evaluateSnippet.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;CAkE/C,CAAC"}
|
|
@@ -42,10 +42,13 @@ export const makeEvaluateSnippetOnRunnerContract = () => {
|
|
|
42
42
|
.enum(["success", "stopped", "error"])
|
|
43
43
|
.describe("`success` if the snippet ran to completion, `stopped` if it was interrupted, `error` if it threw. Whether it ran, not what it evaluated to."),
|
|
44
44
|
}),
|
|
45
|
-
makeRunnerFailureSchema([
|
|
45
|
+
makeRunnerFailureSchema([
|
|
46
|
+
"runner-cannot-evaluate-snippets",
|
|
47
|
+
runnerUnreachableFailureReason,
|
|
48
|
+
]),
|
|
46
49
|
]);
|
|
47
50
|
return {
|
|
48
|
-
description: "Evaluate a snippet against whatever the runner's browser is showing right now. Answers whether the snippet ran, and its error if it threw — not the value it evaluated to, so read anything you want back out of the runner's journal (a snippet's `console.log` lands in the `console` stream). A snippet starts no run and leaves no run-scoped journal entries of its own. `runner-
|
|
51
|
+
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.",
|
|
49
52
|
input,
|
|
50
53
|
kind: "write",
|
|
51
54
|
name: "runner.evaluateSnippet",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluateSnippet.js","sourceRoot":"","sources":["../../../src/v1/runner/evaluateSnippet.ts"],"names":[],"mappings":"AAAA,OA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