@qawolf/cli 1.41.0 → 1.42.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/cli.js +297 -142
- package/dist/runner-sdk.js +295 -140
- package/package.json +2 -2
- package/skills/qawolf-cli/SKILL.md +7 -4
package/dist/cli.js
CHANGED
|
@@ -16604,6 +16604,146 @@ async function downloadBundle(signedUrl, deps) {
|
|
|
16604
16604
|
return { ok: true, value: { tmpArchive } };
|
|
16605
16605
|
}
|
|
16606
16606
|
|
|
16607
|
+
// node_modules/@qawolf/api-contracts/dist/v1/pagination.js
|
|
16608
|
+
var makePaginationInputFields = (limits) => ({
|
|
16609
|
+
cursor: string2().min(1).optional().describe("Opaque cursor copied from the previous response's nextCursor. Omit to fetch the first page."),
|
|
16610
|
+
limit: number2().int().min(1).max(limits.maxLimit).default(limits.defaultLimit).describe(`Maximum rows per page. Defaults to ${limits.defaultLimit}, capped at ${limits.maxLimit}.`)
|
|
16611
|
+
});
|
|
16612
|
+
var nextCursorSchema = string2().min(1).optional().describe("Repeat the request with this value as cursor to fetch the next page. Absent when there are no further results.");
|
|
16613
|
+
|
|
16614
|
+
// node_modules/@qawolf/api-contracts/dist/v1/resource.js
|
|
16615
|
+
function resource(fields, { urlFieldDescription = "Absolute URL." } = {}) {
|
|
16616
|
+
return object({
|
|
16617
|
+
...fields,
|
|
16618
|
+
url: url().describe(urlFieldDescription)
|
|
16619
|
+
});
|
|
16620
|
+
}
|
|
16621
|
+
|
|
16622
|
+
// node_modules/@qawolf/api-contracts/dist/v1/promotion/resource.js
|
|
16623
|
+
var promotionStatusSchema = _enum([
|
|
16624
|
+
"pending",
|
|
16625
|
+
"conflicted",
|
|
16626
|
+
"resolving",
|
|
16627
|
+
"promoted",
|
|
16628
|
+
"no-changes",
|
|
16629
|
+
"abandoned"
|
|
16630
|
+
]).describe("pending (requested, the merge has not run yet), conflicted (the head's flow changes clash with the base and await a resolution), resolving (a submitted resolution is being applied), promoted (merged into the base and the head environment terminated), no-changes (the head had nothing to promote and was terminated), abandoned (the head environment was terminated before the promotion settled).");
|
|
16631
|
+
var conflictSchema = object({
|
|
16632
|
+
paths: array(string2()).describe("Every path that conflicts between the head and the base. A resolution must cover exactly these paths."),
|
|
16633
|
+
sourceCommitHash: string2().describe("The head environment's flow code commit the conflict was computed against."),
|
|
16634
|
+
targetCommitHash: string2().describe("The base environment's flow code commit the conflict was computed against.")
|
|
16635
|
+
});
|
|
16636
|
+
var makePromotionResourceSchema = (ids) => resource({
|
|
16637
|
+
aiTaskId: ids.aiTask.optional().describe("The AI task dispatched to resolve this promotion's conflicts. Absent until the agent is dispatched. A promotion that stays conflicted after this is set means the agent could not resolve it."),
|
|
16638
|
+
baseEnvironmentId: ids.environment.describe("The environment the flow changes promote into."),
|
|
16639
|
+
conflict: conflictSchema.optional().describe("The conflict awaiting resolution. Present while status is conflicted or resolving. A resolution must name both commit hashes and cover exactly these paths; if either branch moves, the conflict is recomputed and this changes."),
|
|
16640
|
+
createdAt: exports_iso.datetime().describe("When the promotion was requested."),
|
|
16641
|
+
headEnvironmentId: ids.environment.describe("The environment whose flow changes are promoted."),
|
|
16642
|
+
id: ids.promotion,
|
|
16643
|
+
promotedCommitHash: string2().optional().describe("The commit the promotion landed on the base environment's flow code branch. Present when status is promoted."),
|
|
16644
|
+
settledAt: exports_iso.datetime().optional().describe("When the promotion reached promoted, no-changes or abandoned. Absent while it is open."),
|
|
16645
|
+
status: promotionStatusSchema
|
|
16646
|
+
}, { urlFieldDescription: "Absolute URL of the head environment's page." });
|
|
16647
|
+
|
|
16648
|
+
// node_modules/@qawolf/api-contracts/dist/v1/promotion/find.js
|
|
16649
|
+
var makeFindPromotionsContract = (ids) => {
|
|
16650
|
+
const input = object({
|
|
16651
|
+
environmentId: ids.environmentRef.optional().describe("Only list promotions out of this head environment, by id or alias. Omit to list the whole workspace's promotions."),
|
|
16652
|
+
status: promotionStatusSchema.optional().describe("Only list promotions in this status. Use conflicted to see the promotions that need attention."),
|
|
16653
|
+
workspaceId: ids.workspace.optional().describe("The workspace to list promotions from, which an environment alias resolves in. Required when authenticating with an organization or user API key."),
|
|
16654
|
+
...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 })
|
|
16655
|
+
});
|
|
16656
|
+
const output = object({
|
|
16657
|
+
nextCursor: nextCursorSchema,
|
|
16658
|
+
promotions: array(makePromotionResourceSchema(ids)).describe("The workspace's promotions, newest first.")
|
|
16659
|
+
});
|
|
16660
|
+
return {
|
|
16661
|
+
annotationJustifications: {
|
|
16662
|
+
destructiveHint: "Does not change promotions, environments or flow code branches.",
|
|
16663
|
+
openWorldHint: "Reads private QA Wolf promotion records without changing external systems.",
|
|
16664
|
+
readOnlyHint: "Lists promotions in the authorized workspace without changing them."
|
|
16665
|
+
},
|
|
16666
|
+
annotations: {
|
|
16667
|
+
destructiveHint: false,
|
|
16668
|
+
openWorldHint: false,
|
|
16669
|
+
readOnlyHint: true
|
|
16670
|
+
},
|
|
16671
|
+
description: "List environment promotions, newest first. A promotion moves the flow changes made in a head environment into its base environment. Filter by status conflicted to find the promotions whose conflicts still need a resolution.",
|
|
16672
|
+
input,
|
|
16673
|
+
kind: "read",
|
|
16674
|
+
name: "promotion.find",
|
|
16675
|
+
output
|
|
16676
|
+
};
|
|
16677
|
+
};
|
|
16678
|
+
|
|
16679
|
+
// node_modules/@qawolf/api-contracts/dist/v1/promotion/get.js
|
|
16680
|
+
var makeGetPromotionContract = (ids) => {
|
|
16681
|
+
const input = object({ promotionId: ids.promotion });
|
|
16682
|
+
const output = makePromotionResourceSchema(ids);
|
|
16683
|
+
return {
|
|
16684
|
+
annotationJustifications: {
|
|
16685
|
+
destructiveHint: "Does not change the promotion, its environments or flow code branches.",
|
|
16686
|
+
openWorldHint: "Reads a private QA Wolf promotion record without changing external systems.",
|
|
16687
|
+
readOnlyHint: "Retrieves one authorized promotion's status and conflict without changing it."
|
|
16688
|
+
},
|
|
16689
|
+
annotations: {
|
|
16690
|
+
destructiveHint: false,
|
|
16691
|
+
openWorldHint: false,
|
|
16692
|
+
readOnlyHint: true
|
|
16693
|
+
},
|
|
16694
|
+
description: "Read one environment promotion: its status, the conflicting paths and commit hashes while it is conflicted or resolving, the commit it landed when promoted, and the AI task resolving it. Poll it after environment.promote to learn how the promotion settled. It does not serve file contents; a resolver reads both branches from the flow code repository.",
|
|
16695
|
+
input,
|
|
16696
|
+
kind: "read",
|
|
16697
|
+
name: "promotion.get",
|
|
16698
|
+
output
|
|
16699
|
+
};
|
|
16700
|
+
};
|
|
16701
|
+
|
|
16702
|
+
// node_modules/@qawolf/api-contracts/dist/v1/promotion/resolve.js
|
|
16703
|
+
var maxResolvedFileBytes = 1e6;
|
|
16704
|
+
var utf8ByteLength = (content) => new TextEncoder().encode(content).byteLength;
|
|
16705
|
+
var keptFileSizeIssues = (writes) => Object.entries(writes).map(([path, content]) => ({ bytes: utf8ByteLength(content), path })).filter(({ bytes }) => bytes >= maxResolvedFileBytes).map(({ bytes, path }) => ({
|
|
16706
|
+
code: "custom",
|
|
16707
|
+
message: `Each kept file must be under ${maxResolvedFileBytes} bytes of UTF-8; ${path} is ${bytes} bytes.`,
|
|
16708
|
+
path: [path]
|
|
16709
|
+
}));
|
|
16710
|
+
var makeResolvePromotionContract = (ids) => {
|
|
16711
|
+
const input = object({
|
|
16712
|
+
deletes: array(string2().min(1)).optional().describe("Conflicting paths to remove from the base environment. Repeat the flag once per path."),
|
|
16713
|
+
expectedSourceCommitHash: string2().min(1).describe("The head environment's commit the conflict was computed against: conflict.sourceCommitHash from promotion.get. A different current commit means the branch moved and the call is refused."),
|
|
16714
|
+
expectedTargetCommitHash: string2().min(1).describe("The base environment's commit the conflict was computed against: conflict.targetCommitHash from promotion.get. A different current commit means the branch moved and the call is refused."),
|
|
16715
|
+
promotionId: ids.promotion,
|
|
16716
|
+
writes: record(string2().min(1), string2()).superRefine((writes, refinement) => {
|
|
16717
|
+
keptFileSizeIssues(writes).forEach((issue) => refinement.addIssue(issue));
|
|
16718
|
+
}).optional().describe("The resolved full contents of each conflicting path to keep, keyed by path. Repeat the flag once per path as PATH=CONTENT. Each file must be under 1 MB of UTF-8.")
|
|
16719
|
+
});
|
|
16720
|
+
const output = makePromotionResourceSchema(ids);
|
|
16721
|
+
return {
|
|
16722
|
+
annotationJustifications: {
|
|
16723
|
+
destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.",
|
|
16724
|
+
openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.",
|
|
16725
|
+
readOnlyHint: "Records a resolution that a background executor applies to the base branch."
|
|
16726
|
+
},
|
|
16727
|
+
annotations: {
|
|
16728
|
+
destructiveHint: true,
|
|
16729
|
+
openWorldHint: false,
|
|
16730
|
+
readOnlyHint: false
|
|
16731
|
+
},
|
|
16732
|
+
description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.",
|
|
16733
|
+
input,
|
|
16734
|
+
kind: "write",
|
|
16735
|
+
name: "promotion.resolve",
|
|
16736
|
+
output
|
|
16737
|
+
};
|
|
16738
|
+
};
|
|
16739
|
+
|
|
16740
|
+
// node_modules/@qawolf/api-contracts/dist/v1/promotion/index.js
|
|
16741
|
+
var makePromotionContracts = (ids) => ({
|
|
16742
|
+
find: makeFindPromotionsContract(ids),
|
|
16743
|
+
get: makeGetPromotionContract(ids),
|
|
16744
|
+
resolve: makeResolvePromotionContract(ids)
|
|
16745
|
+
});
|
|
16746
|
+
|
|
16607
16747
|
// node_modules/@qawolf/api-contracts/dist/v1/agent/status.js
|
|
16608
16748
|
var agentSessionStatuses = [
|
|
16609
16749
|
"working",
|
|
@@ -16700,14 +16840,6 @@ var didNotRunReasonSchema = _enum([
|
|
|
16700
16840
|
].join(`
|
|
16701
16841
|
`));
|
|
16702
16842
|
|
|
16703
|
-
// node_modules/@qawolf/api-contracts/dist/v1/resource.js
|
|
16704
|
-
function resource(fields, { urlFieldDescription = "Absolute URL." } = {}) {
|
|
16705
|
-
return object({
|
|
16706
|
-
...fields,
|
|
16707
|
-
url: url().describe(urlFieldDescription)
|
|
16708
|
-
});
|
|
16709
|
-
}
|
|
16710
|
-
|
|
16711
16843
|
// node_modules/@qawolf/api-contracts/dist/v1/email/resource.js
|
|
16712
16844
|
var emailDirectionSchema = _enum(["inbound", "outbound"]);
|
|
16713
16845
|
var namedAddressSchema = object({
|
|
@@ -17409,9 +17541,9 @@ var readJournalResponseSchema = object({
|
|
|
17409
17541
|
var maxRunFilesByteLength = 30 * 1024 * 1024;
|
|
17410
17542
|
var maxRunnerRequestEncodedByteLength = 30 * 1024 * 1024;
|
|
17411
17543
|
function runFilesByteLength(files) {
|
|
17412
|
-
return Object.entries(files).reduce((total, [path, content]) => total +
|
|
17544
|
+
return Object.entries(files).reduce((total, [path, content]) => total + utf8ByteLength2(content) + utf8ByteLength2(path), 0);
|
|
17413
17545
|
}
|
|
17414
|
-
function
|
|
17546
|
+
function utf8ByteLength2(text) {
|
|
17415
17547
|
return Buffer.byteLength(text, "utf8");
|
|
17416
17548
|
}
|
|
17417
17549
|
var runFilesSchema = record(string2(), string2()).superRefine((files, refinementContext) => {
|
|
@@ -17828,7 +17960,7 @@ var makeTriggerScheduleFields = (ids) => ({
|
|
|
17828
17960
|
var makeTriggerDeploymentFields = (ids) => ({
|
|
17829
17961
|
action: makeTriggerActionSchema(ids),
|
|
17830
17962
|
branchPattern: string2().min(1).optional().describe("Only fire for deployments of a branch matching this pattern."),
|
|
17831
|
-
deployTargetPattern: string2().min(1).optional().describe("Only fire for deployments whose deploy target matches this pattern. A deploy target is the URL
|
|
17963
|
+
deployTargetPattern: string2().min(1).optional().describe("Only fire for deployments whose deploy target matches this pattern. A deploy target is the URL the deploy reported, which many deployments do not carry."),
|
|
17832
17964
|
environmentIds: array(ids.environment).default([]).describe("Only fire for deployments to these environments. Mutually exclusive with environmentPattern."),
|
|
17833
17965
|
environmentPattern: string2().min(1).optional().describe("Only fire for deployments to environments matching this pattern. Mutually exclusive with environmentIds."),
|
|
17834
17966
|
servicePattern: string2().min(1).optional().describe("Only fire for deployments whose service matches this pattern. A deployment that names no service never matches it.")
|
|
@@ -18179,7 +18311,7 @@ var makeAgentGetContract = (ids) => {
|
|
|
18179
18311
|
const input = object({
|
|
18180
18312
|
cursor: string2().min(1).optional().describe("Opaque cursor copied from this same session's previous nextCursor. Omit to read from its first reply."),
|
|
18181
18313
|
sessionId: ids.chatSession.describe("The id agent.send answered with."),
|
|
18182
|
-
waitSeconds: number2().int().min(0).optional().describe(`How long the server may hold this check open, in seconds.
|
|
18314
|
+
waitSeconds: number2().int().min(0).optional().describe(`How long the server may hold this check open, in seconds. Defaults to ${maxAgentWaitSeconds}, the longest hold, and a larger value clamps to it. Pass 0 to answer at once. Check again as soon as a held check returns.`)
|
|
18183
18315
|
});
|
|
18184
18316
|
const output = resource({
|
|
18185
18317
|
nextCursor: string2().min(1).describe("Send back as cursor on the next check to read only what follows. Always present, even with no replies. Belongs to this session alone."),
|
|
@@ -18371,13 +18503,6 @@ var makeFindCodeHostIntegrationsContract = (ids) => {
|
|
|
18371
18503
|
};
|
|
18372
18504
|
};
|
|
18373
18505
|
|
|
18374
|
-
// node_modules/@qawolf/api-contracts/dist/v1/pagination.js
|
|
18375
|
-
var makePaginationInputFields = (limits) => ({
|
|
18376
|
-
cursor: string2().min(1).optional().describe("Opaque cursor copied from the previous response's nextCursor. Omit to fetch the first page."),
|
|
18377
|
-
limit: number2().int().min(1).max(limits.maxLimit).default(limits.defaultLimit).describe(`Maximum rows per page. Defaults to ${limits.defaultLimit}, capped at ${limits.maxLimit}.`)
|
|
18378
|
-
});
|
|
18379
|
-
var nextCursorSchema = string2().min(1).optional().describe("Repeat the request with this value as cursor to fetch the next page. Absent when there are no further results.");
|
|
18380
|
-
|
|
18381
18506
|
// node_modules/@qawolf/api-contracts/dist/v1/codeHostIntegration/listRepositories.js
|
|
18382
18507
|
var makeListCodeHostRepositoriesContract = (ids) => {
|
|
18383
18508
|
const input = object({
|
|
@@ -18416,11 +18541,12 @@ var makeDeploymentResourceSchema = (ids) => resource({
|
|
|
18416
18541
|
commitSha: string2().optional().describe("The sha of the deployed commit."),
|
|
18417
18542
|
commitUrl: string2().optional().describe("A link to the deployed commit, as declared by the deployment report."),
|
|
18418
18543
|
deployedAt: exports_iso.datetime().describe("When QA Wolf first received the deployment."),
|
|
18419
|
-
deployTarget: string2().optional().describe("
|
|
18544
|
+
deployTarget: string2().optional().describe("The URL the deployment serves. A trigger's deployTargetPattern matches against it."),
|
|
18420
18545
|
environmentId: ids.environment.describe("The QA Wolf environment the deployment reported into."),
|
|
18421
18546
|
environmentName: string2().optional().describe("The environment's name. Absent when the environment has since been deleted."),
|
|
18422
18547
|
id: ids.deployment,
|
|
18423
18548
|
provider: _enum(["github", "gitlab", "api"]).optional().describe("How QA Wolf received the deployment: a GitHub webhook, a GitLab webhook, or the deployment.reportStatus API."),
|
|
18549
|
+
repository: string2().optional().describe('The repository the deployment came from, as "owner/name". Absent when neither the code host nor the deployment report named one.'),
|
|
18424
18550
|
service: string2().optional().describe("Which application was deployed, as the deployer named it. Absent when the deployer named none."),
|
|
18425
18551
|
status: _enum(["pending", "success", "failure", "inactive"]).optional().describe("The deployment's lifecycle status, in the vocabulary deployment.reportStatus accepts. Absent when no status was ever reported.")
|
|
18426
18552
|
}, {
|
|
@@ -18570,7 +18696,7 @@ var makeReportDeploymentStatusContract = (ids) => {
|
|
|
18570
18696
|
error: "Send environment as either { id } or { name }, with optional ephemeral and baseEphemeralEnvironment."
|
|
18571
18697
|
});
|
|
18572
18698
|
const input = strictObject({
|
|
18573
|
-
deployTarget: httpUrl().max(2048).describe("The URL the deployment serves, e.g. a preview URL.").optional(),
|
|
18699
|
+
deployTarget: httpUrl().max(2048).describe("The URL the deployment serves, e.g. a preview URL. A mobile pipeline leaves it unset and reports a service instead.").optional(),
|
|
18574
18700
|
environment: environment.describe("Selects the environment the deployment reports into.").optional(),
|
|
18575
18701
|
environmentVariables: record(string2(), string2()).describe("Environment variable overrides for the runs this deployment requests. A report that omits this field keeps the stored values. A report that sends it replaces them.").optional(),
|
|
18576
18702
|
metadata: deploymentReportMetadata.describe("Details the deployer declares about the deployed revision; a code host integration's own record of the same commit is shown in preference to the message and author declared here.").optional(),
|
|
@@ -18818,6 +18944,7 @@ var makeSendEmailContract = (ids) => {
|
|
|
18818
18944
|
// node_modules/@qawolf/api-contracts/dist/v1/environment/resource.js
|
|
18819
18945
|
var makeEnvironmentResourceSchema = (ids) => resource({
|
|
18820
18946
|
alias: string2().optional().describe("The environment's alias: a team-unique slug that team API keys can use in place of the id. Terminated environments have none."),
|
|
18947
|
+
baseEnvironmentId: ids.environment.optional().describe("The environment this one promotes its flow changes into, if it has a base."),
|
|
18821
18948
|
flowCodeBranch: discriminatedUnion("syncStatus", [
|
|
18822
18949
|
object({
|
|
18823
18950
|
lastSyncedCommitHash: string2().describe("Hash of the latest reconciled commit."),
|
|
@@ -18831,6 +18958,7 @@ var makeEnvironmentResourceSchema = (ids) => resource({
|
|
|
18831
18958
|
]).optional().describe("The environment's flow code branch and its git reconciliation state, if it has one."),
|
|
18832
18959
|
id: ids.environment,
|
|
18833
18960
|
isDefault: boolean2().describe("Whether this is the workspace's default environment."),
|
|
18961
|
+
isDefaultBase: boolean2().describe("Whether this is the workspace's default base environment."),
|
|
18834
18962
|
kind: _enum(["static", "preview"]).describe("Whether the environment is static or a preview."),
|
|
18835
18963
|
name: string2(),
|
|
18836
18964
|
runConcurrencyLimit: string2().describe('Maximum number of concurrent runs: a whole number, "unlimited", or a concurrency expression.'),
|
|
@@ -18894,32 +19022,6 @@ var makeDeleteEnvironmentVariableContract = (ids) => {
|
|
|
18894
19022
|
};
|
|
18895
19023
|
};
|
|
18896
19024
|
|
|
18897
|
-
// node_modules/@qawolf/api-contracts/dist/v1/environment/discard.js
|
|
18898
|
-
var makeDiscardEnvironmentContract = (ids) => {
|
|
18899
|
-
const input = object({
|
|
18900
|
-
environmentId: ids.environmentRef,
|
|
18901
|
-
workspaceId: workspaceForEnvironmentRef(ids.workspace)
|
|
18902
|
-
});
|
|
18903
|
-
const output = makeEnvironmentResourceSchema(ids);
|
|
18904
|
-
return {
|
|
18905
|
-
annotationJustifications: {
|
|
18906
|
-
destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.",
|
|
18907
|
-
openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.",
|
|
18908
|
-
readOnlyHint: "Terminates an environment and returns it terminated."
|
|
18909
|
-
},
|
|
18910
|
-
annotations: {
|
|
18911
|
-
destructiveHint: true,
|
|
18912
|
-
openWorldHint: false,
|
|
18913
|
-
readOnlyHint: false
|
|
18914
|
-
},
|
|
18915
|
-
description: "Declare a preview environment's work discarded, typically when its pull request closes without merging: the environment is terminated and its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be discarded again. Use environment.promote instead when the work is accepted.",
|
|
18916
|
-
input,
|
|
18917
|
-
kind: "write",
|
|
18918
|
-
name: "environment.discard",
|
|
18919
|
-
output
|
|
18920
|
-
};
|
|
18921
|
-
};
|
|
18922
|
-
|
|
18923
19025
|
// node_modules/@qawolf/api-contracts/dist/v1/environment/find.js
|
|
18924
19026
|
var makeFindEnvironmentsContract = (ids) => {
|
|
18925
19027
|
const input = object({
|
|
@@ -19065,32 +19167,6 @@ var makeSetEnvironmentVariableContract = (ids) => {
|
|
|
19065
19167
|
};
|
|
19066
19168
|
};
|
|
19067
19169
|
|
|
19068
|
-
// node_modules/@qawolf/api-contracts/dist/v1/promotion/resource.js
|
|
19069
|
-
var promotionStatusSchema = _enum([
|
|
19070
|
-
"pending",
|
|
19071
|
-
"conflicted",
|
|
19072
|
-
"resolving",
|
|
19073
|
-
"promoted",
|
|
19074
|
-
"no-changes",
|
|
19075
|
-
"abandoned"
|
|
19076
|
-
]).describe("pending (requested, the merge has not run yet), conflicted (the head's flow changes clash with the base and await a resolution), resolving (a submitted resolution is being applied), promoted (merged into the base and the head environment terminated), no-changes (the head had nothing to promote and was terminated), abandoned (the head environment was discarded or terminated before the promotion settled).");
|
|
19077
|
-
var conflictSchema = object({
|
|
19078
|
-
paths: array(string2()).describe("Every path that conflicts between the head and the base. A resolution must cover exactly these paths."),
|
|
19079
|
-
sourceCommitHash: string2().describe("The head environment's flow code commit the conflict was computed against."),
|
|
19080
|
-
targetCommitHash: string2().describe("The base environment's flow code commit the conflict was computed against.")
|
|
19081
|
-
});
|
|
19082
|
-
var makePromotionResourceSchema = (ids) => resource({
|
|
19083
|
-
aiTaskId: ids.aiTask.optional().describe("The AI task dispatched to resolve this promotion's conflicts. Absent until the agent is dispatched. A promotion that stays conflicted after this is set means the agent could not resolve it."),
|
|
19084
|
-
baseEnvironmentId: ids.environment.describe("The environment the flow changes promote into."),
|
|
19085
|
-
conflict: conflictSchema.optional().describe("The conflict awaiting resolution. Present while status is conflicted or resolving. A resolution must name both commit hashes and cover exactly these paths; if either branch moves, the conflict is recomputed and this changes."),
|
|
19086
|
-
createdAt: exports_iso.datetime().describe("When the promotion was requested."),
|
|
19087
|
-
headEnvironmentId: ids.environment.describe("The environment whose flow changes are promoted."),
|
|
19088
|
-
id: ids.promotion,
|
|
19089
|
-
promotedCommitHash: string2().optional().describe("The commit the promotion landed on the base environment's flow code branch. Present when status is promoted."),
|
|
19090
|
-
settledAt: exports_iso.datetime().optional().describe("When the promotion reached promoted, no-changes or abandoned. Absent while it is open."),
|
|
19091
|
-
status: promotionStatusSchema
|
|
19092
|
-
}, { urlFieldDescription: "Absolute URL of the head environment's page." });
|
|
19093
|
-
|
|
19094
19170
|
// node_modules/@qawolf/api-contracts/dist/v1/environment/promote.js
|
|
19095
19171
|
var makePromoteEnvironmentContract = (ids) => {
|
|
19096
19172
|
const input = object({
|
|
@@ -19109,7 +19185,7 @@ var makePromoteEnvironmentContract = (ids) => {
|
|
|
19109
19185
|
openWorldHint: false,
|
|
19110
19186
|
readOnlyHint: false
|
|
19111
19187
|
},
|
|
19112
|
-
description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.
|
|
19188
|
+
description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.terminate instead when the work is abandoned.",
|
|
19113
19189
|
input,
|
|
19114
19190
|
kind: "write",
|
|
19115
19191
|
name: "environment.promote",
|
|
@@ -19117,6 +19193,32 @@ var makePromoteEnvironmentContract = (ids) => {
|
|
|
19117
19193
|
};
|
|
19118
19194
|
};
|
|
19119
19195
|
|
|
19196
|
+
// node_modules/@qawolf/api-contracts/dist/v1/environment/terminate.js
|
|
19197
|
+
var makeTerminateEnvironmentContract = (ids) => {
|
|
19198
|
+
const input = object({
|
|
19199
|
+
environmentId: ids.environmentRef,
|
|
19200
|
+
workspaceId: workspaceForEnvironmentRef(ids.workspace)
|
|
19201
|
+
});
|
|
19202
|
+
const output = makeEnvironmentResourceSchema(ids);
|
|
19203
|
+
return {
|
|
19204
|
+
annotationJustifications: {
|
|
19205
|
+
destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.",
|
|
19206
|
+
openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.",
|
|
19207
|
+
readOnlyHint: "Terminates an environment and returns it terminated."
|
|
19208
|
+
},
|
|
19209
|
+
annotations: {
|
|
19210
|
+
destructiveHint: true,
|
|
19211
|
+
openWorldHint: false,
|
|
19212
|
+
readOnlyHint: false
|
|
19213
|
+
},
|
|
19214
|
+
description: "Terminate a preview environment, typically when its pull request closes without merging: its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be terminated again. Use environment.promote instead when the work is accepted.",
|
|
19215
|
+
input,
|
|
19216
|
+
kind: "write",
|
|
19217
|
+
name: "environment.terminate",
|
|
19218
|
+
output
|
|
19219
|
+
};
|
|
19220
|
+
};
|
|
19221
|
+
|
|
19120
19222
|
// node_modules/@qawolf/api-contracts/dist/v1/environment/update.js
|
|
19121
19223
|
var makeUpdateEnvironmentContract = (ids) => {
|
|
19122
19224
|
const nameSchema = string2().trim().min(1).max(255).describe("New display name. Must be unique within the team.");
|
|
@@ -19219,6 +19321,52 @@ var makeAddTagToFlowsContract = (ids) => {
|
|
|
19219
19321
|
};
|
|
19220
19322
|
};
|
|
19221
19323
|
|
|
19324
|
+
// node_modules/@qawolf/api-contracts/dist/v1/flow/getHistory.js
|
|
19325
|
+
var makeGetFlowHistoryContract = (ids) => {
|
|
19326
|
+
const input = object({
|
|
19327
|
+
createdAfter: exports_iso.datetime({ offset: true }).optional().describe("Only include results of runs created strictly after this instant."),
|
|
19328
|
+
createdBefore: exports_iso.datetime({ offset: true }).optional().describe("Only include results of runs created strictly before this instant."),
|
|
19329
|
+
...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 }),
|
|
19330
|
+
environmentId: ids.environmentRef,
|
|
19331
|
+
flowId: ids.flow.describe("The flow whose results to list. It must belong to the environment's workspace."),
|
|
19332
|
+
workspaceId: workspaceForEnvironmentRef(ids.workspace)
|
|
19333
|
+
});
|
|
19334
|
+
const result = resource({
|
|
19335
|
+
attemptCount: number2().int().nonnegative().describe("How many automated attempts the flow made in this run."),
|
|
19336
|
+
completedAt: exports_iso.datetime().optional().describe("When the flow finished. Absent until it does."),
|
|
19337
|
+
createdAt: exports_iso.datetime(),
|
|
19338
|
+
diagnosis: object({
|
|
19339
|
+
issueId: ids.issue,
|
|
19340
|
+
type: _enum(["bug", "maintenance"])
|
|
19341
|
+
}).optional().describe("QA Wolf's investigation verdict for a failed result: `bug` means the application is broken, `maintenance` means the test needed an update. Absent until the investigation reaches a verdict, and for results that did not fail."),
|
|
19342
|
+
durationMs: number2().int().nonnegative().optional().describe("Milliseconds from the flow's start to its completion. Absent when either is unknown."),
|
|
19343
|
+
passedAfterRetry: boolean2().describe("The flow passed, but only after at least one earlier attempt in the same run. A signal of flakiness."),
|
|
19344
|
+
runId: ids.run.describe("The run this result belongs to."),
|
|
19345
|
+
status: _enum(publicRunStatusValues)
|
|
19346
|
+
}, { urlFieldDescription: "Absolute URL of the run page." });
|
|
19347
|
+
const output = object({
|
|
19348
|
+
nextCursor: nextCursorSchema,
|
|
19349
|
+
results: array(result).describe("The flow's results in the environment, newest first.")
|
|
19350
|
+
});
|
|
19351
|
+
return {
|
|
19352
|
+
annotationJustifications: {
|
|
19353
|
+
destructiveHint: "Does not rerun, edit or remove the flow or its runs.",
|
|
19354
|
+
openWorldHint: "Reads recorded QA Wolf results without changing the application under test.",
|
|
19355
|
+
readOnlyHint: "Lists one flow's past results across runs."
|
|
19356
|
+
},
|
|
19357
|
+
annotations: {
|
|
19358
|
+
destructiveHint: false,
|
|
19359
|
+
openWorldHint: false,
|
|
19360
|
+
readOnlyHint: true
|
|
19361
|
+
},
|
|
19362
|
+
description: "List one flow's results across runs in an environment, newest first, with status, attempts, duration, and diagnosis. Use it to spot flakiness, failure streaks, and duration trends.",
|
|
19363
|
+
input,
|
|
19364
|
+
kind: "read",
|
|
19365
|
+
name: "flow.getHistory",
|
|
19366
|
+
output
|
|
19367
|
+
};
|
|
19368
|
+
};
|
|
19369
|
+
|
|
19222
19370
|
// node_modules/@qawolf/api-contracts/dist/v1/flow/readiness.js
|
|
19223
19371
|
var flowReadinessSchema = _enum(["draft", "active"]);
|
|
19224
19372
|
|
|
@@ -19455,6 +19603,7 @@ var makeInvestigationFindingSchema = (ids) => object({
|
|
|
19455
19603
|
type: literal("commit")
|
|
19456
19604
|
}),
|
|
19457
19605
|
object({
|
|
19606
|
+
applyOn: string2().optional().describe(`When the new baseline applies. Known values: "now" (once a person applies the proposal) and "merge" (when the run's pull request merges, because every environment of the workspace shares baselines). Absent means "now". New values can appear.`),
|
|
19458
19607
|
baselineChangeId: string2().optional().describe('The baseline change that made the new screenshot the baseline, on a "fixed" finding. `run restoreScreenshotBaseline` undoes it.'),
|
|
19459
19608
|
comparisonId: string2().describe("The failed screenshot comparison whose new screenshot becomes the baseline, as `run listScreenshotComparisons` names it."),
|
|
19460
19609
|
type: literal("baseline")
|
|
@@ -19466,6 +19615,12 @@ var makeInvestigationFindingSchema = (ids) => object({
|
|
|
19466
19615
|
kind: string2().describe('What the failure is. Known values: "maintenance", "bug", "flake" and "unknown". New values can appear.'),
|
|
19467
19616
|
matchReason: string2().optional(),
|
|
19468
19617
|
priority: issuePrioritySchema.optional(),
|
|
19618
|
+
pullRequest: object({
|
|
19619
|
+
file: string2().optional().describe("The changed file that explains the verdict."),
|
|
19620
|
+
line: number2().int().optional().describe("The line in `file` that explains the verdict."),
|
|
19621
|
+
reason: string2().describe("Why the investigation reached the verdict."),
|
|
19622
|
+
verdict: string2().describe('Whether the pull request caused the failure. Known values: "caused", "not-caused" and "unclear". New values can appear.')
|
|
19623
|
+
}).optional().describe("Whether the pull request the run tested caused this finding. Absent on a run that didn't test a pull request, and when the investigation didn't say."),
|
|
19469
19624
|
question: object({
|
|
19470
19625
|
answers: array(object({
|
|
19471
19626
|
description: string2().optional(),
|
|
@@ -19497,7 +19652,7 @@ var makeGetInvestigationContract = (ids) => {
|
|
|
19497
19652
|
findings: array(makeInvestigationFindingSchema(ids)),
|
|
19498
19653
|
runId: ids.run,
|
|
19499
19654
|
sessionId: ids.chatSession.optional().describe("The investigation session. Absent when the run has none."),
|
|
19500
|
-
status: _enum(["investigating", "finished", "not-investigated"]).describe('Whether the lead or any child investigator is still working. "not-investigated" when the run has no investigation.'),
|
|
19655
|
+
status: _enum(["investigating", "finished", "not-investigated", "not-enabled"]).describe('Whether the lead or any child investigator is still working. "not-investigated" when the run has no investigation. ' + '"not-enabled" when automatic investigation does not cover this run, because its workspace has it off or investigates only pull request runs: read its failures with run.get and attempt.get instead.'),
|
|
19501
19656
|
subSessions: array(object({
|
|
19502
19657
|
sessionId: ids.chatSession,
|
|
19503
19658
|
status: agentSessionStatusSchema
|
|
@@ -19514,7 +19669,7 @@ var makeGetInvestigationContract = (ids) => {
|
|
|
19514
19669
|
openWorldHint: false,
|
|
19515
19670
|
readOnlyHint: true
|
|
19516
19671
|
},
|
|
19517
|
-
description: "Read what the QA Wolf AI investigating a run has concluded: one finding per cause of its failures, " + "with the question waiting for a person and any answer or dispute the investigation hasn't acted on yet.",
|
|
19672
|
+
description: "Read what the QA Wolf AI investigating a run has concluded: one finding per cause of its failures, " + "with the question waiting for a person and any answer or dispute the investigation hasn't acted on yet. " + 'A run that automatic investigation does not cover answers status "not-enabled".',
|
|
19518
19673
|
input,
|
|
19519
19674
|
kind: "read",
|
|
19520
19675
|
name: "investigation.get",
|
|
@@ -19603,6 +19758,60 @@ var makeCreateIssueContract = (ids) => {
|
|
|
19603
19758
|
};
|
|
19604
19759
|
};
|
|
19605
19760
|
|
|
19761
|
+
// node_modules/@qawolf/api-contracts/dist/v1/issue/listActivity.js
|
|
19762
|
+
var issueActivityTypeSchema = _enum([
|
|
19763
|
+
"created",
|
|
19764
|
+
"status-changed",
|
|
19765
|
+
"priority-changed",
|
|
19766
|
+
"resolved",
|
|
19767
|
+
"auto-resolved",
|
|
19768
|
+
"reopened",
|
|
19769
|
+
"flow-started-reproducing",
|
|
19770
|
+
"flow-stopped-reproducing",
|
|
19771
|
+
"flow-removed",
|
|
19772
|
+
"maintenance-reason-changed",
|
|
19773
|
+
"due-date-changed",
|
|
19774
|
+
"other"
|
|
19775
|
+
]).describe("What happened. resolved is a person resolving the issue, auto-resolved is QA Wolf resolving it once no flow reproduces it. flow-stopped-reproducing means a run of the flow passed. flow-removed means the flow was detached from the issue, deleted, or its environment ended. other covers edits such as the name or description.");
|
|
19776
|
+
var issueActivityActorKindSchema = _enum(["qa-wolf", "user", "api-key"]).optional().describe("Who caused the event: QA Wolf automation, a person, or an API key. Absent on older events.");
|
|
19777
|
+
var makeListIssueActivityContract = (ids) => {
|
|
19778
|
+
const input = object({
|
|
19779
|
+
issueId: ids.issue,
|
|
19780
|
+
...makePaginationInputFields({ defaultLimit: 50, maxLimit: 200 })
|
|
19781
|
+
});
|
|
19782
|
+
const output = object({
|
|
19783
|
+
events: array(object({
|
|
19784
|
+
actorKind: issueActivityActorKindSchema,
|
|
19785
|
+
environmentId: ids.environment.optional(),
|
|
19786
|
+
flowId: ids.flow.optional(),
|
|
19787
|
+
fromPriority: issuePrioritySchema.optional(),
|
|
19788
|
+
occurredAt: exports_iso.datetime(),
|
|
19789
|
+
runId: ids.run.optional().describe("The run whose result caused the event."),
|
|
19790
|
+
toPriority: issuePrioritySchema.optional(),
|
|
19791
|
+
toStatus: issueStatusSchema.optional().describe("The issue status after the event."),
|
|
19792
|
+
type: issueActivityTypeSchema
|
|
19793
|
+
})).describe("The issue's activity, oldest first."),
|
|
19794
|
+
nextCursor: nextCursorSchema
|
|
19795
|
+
});
|
|
19796
|
+
return {
|
|
19797
|
+
annotationJustifications: {
|
|
19798
|
+
destructiveHint: "Does not edit the issue or its activity.",
|
|
19799
|
+
openWorldHint: "Reads QA Wolf issue history without publishing updates to linked trackers.",
|
|
19800
|
+
readOnlyHint: "Lists the recorded activity of one issue."
|
|
19801
|
+
},
|
|
19802
|
+
annotations: {
|
|
19803
|
+
destructiveHint: false,
|
|
19804
|
+
openWorldHint: false,
|
|
19805
|
+
readOnlyHint: true
|
|
19806
|
+
},
|
|
19807
|
+
description: "List an issue's activity, oldest first: creation, status and priority changes, and the flows that started or stopped reproducing it. Use it to measure time to fix or to find issues that came back.",
|
|
19808
|
+
input,
|
|
19809
|
+
kind: "read",
|
|
19810
|
+
name: "issue.listActivity",
|
|
19811
|
+
output
|
|
19812
|
+
};
|
|
19813
|
+
};
|
|
19814
|
+
|
|
19606
19815
|
// node_modules/@qawolf/api-contracts/dist/v1/issue/removeFlows.js
|
|
19607
19816
|
var makeRemoveFlowsFromIssueContract = (ids) => {
|
|
19608
19817
|
const input = object({
|
|
@@ -19804,66 +20013,6 @@ var makeLegacyTriggerContracts = (ids) => ({
|
|
|
19804
20013
|
resume: makeResumeLegacyTriggerContract(ids)
|
|
19805
20014
|
});
|
|
19806
20015
|
|
|
19807
|
-
// node_modules/@qawolf/api-contracts/dist/v1/promotion/find.js
|
|
19808
|
-
var makeFindPromotionsContract = (ids) => {
|
|
19809
|
-
const input = object({
|
|
19810
|
-
environmentId: ids.environmentRef.optional().describe("Only list promotions out of this head environment, by id or alias. Omit to list the whole workspace's promotions."),
|
|
19811
|
-
status: promotionStatusSchema.optional().describe("Only list promotions in this status. Use conflicted to see the promotions that need attention."),
|
|
19812
|
-
workspaceId: ids.workspace.optional().describe("The workspace to list promotions from, which an environment alias resolves in. Required when authenticating with an organization or user API key."),
|
|
19813
|
-
...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 })
|
|
19814
|
-
});
|
|
19815
|
-
const output = object({
|
|
19816
|
-
nextCursor: nextCursorSchema,
|
|
19817
|
-
promotions: array(makePromotionResourceSchema(ids)).describe("The workspace's promotions, newest first.")
|
|
19818
|
-
});
|
|
19819
|
-
return {
|
|
19820
|
-
annotationJustifications: {
|
|
19821
|
-
destructiveHint: "Does not change promotions, environments or flow code branches.",
|
|
19822
|
-
openWorldHint: "Reads private QA Wolf promotion records without changing external systems.",
|
|
19823
|
-
readOnlyHint: "Lists promotions in the authorized workspace without changing them."
|
|
19824
|
-
},
|
|
19825
|
-
annotations: {
|
|
19826
|
-
destructiveHint: false,
|
|
19827
|
-
openWorldHint: false,
|
|
19828
|
-
readOnlyHint: true
|
|
19829
|
-
},
|
|
19830
|
-
description: "List environment promotions, newest first. A promotion moves the flow changes made in a head environment into its base environment. Filter by status conflicted to find the promotions whose conflicts still need a resolution.",
|
|
19831
|
-
input,
|
|
19832
|
-
kind: "read",
|
|
19833
|
-
name: "promotion.find",
|
|
19834
|
-
output
|
|
19835
|
-
};
|
|
19836
|
-
};
|
|
19837
|
-
|
|
19838
|
-
// node_modules/@qawolf/api-contracts/dist/v1/promotion/get.js
|
|
19839
|
-
var makeGetPromotionContract = (ids) => {
|
|
19840
|
-
const input = object({ promotionId: ids.promotion });
|
|
19841
|
-
const output = makePromotionResourceSchema(ids);
|
|
19842
|
-
return {
|
|
19843
|
-
annotationJustifications: {
|
|
19844
|
-
destructiveHint: "Does not change the promotion, its environments or flow code branches.",
|
|
19845
|
-
openWorldHint: "Reads a private QA Wolf promotion record without changing external systems.",
|
|
19846
|
-
readOnlyHint: "Retrieves one authorized promotion's status and conflict without changing it."
|
|
19847
|
-
},
|
|
19848
|
-
annotations: {
|
|
19849
|
-
destructiveHint: false,
|
|
19850
|
-
openWorldHint: false,
|
|
19851
|
-
readOnlyHint: true
|
|
19852
|
-
},
|
|
19853
|
-
description: "Read one environment promotion: its status, the conflicting paths and commit hashes while it is conflicted or resolving, the commit it landed when promoted, and the AI task resolving it. Poll it after environment.promote to learn how the promotion settled. It does not serve file contents; a resolver reads both branches from the flow code repository.",
|
|
19854
|
-
input,
|
|
19855
|
-
kind: "read",
|
|
19856
|
-
name: "promotion.get",
|
|
19857
|
-
output
|
|
19858
|
-
};
|
|
19859
|
-
};
|
|
19860
|
-
|
|
19861
|
-
// node_modules/@qawolf/api-contracts/dist/v1/promotion/index.js
|
|
19862
|
-
var makePromotionContracts = (ids) => ({
|
|
19863
|
-
find: makeFindPromotionsContract(ids),
|
|
19864
|
-
get: makeGetPromotionContract(ids)
|
|
19865
|
-
});
|
|
19866
|
-
|
|
19867
20016
|
// node_modules/@qawolf/api-contracts/dist/v1/run/investigationSessionId.js
|
|
19868
20017
|
var investigationSessionId = string2().trim().min(1).max(100).optional();
|
|
19869
20018
|
|
|
@@ -19889,6 +20038,9 @@ var makeAcceptScreenshotBaselineContract = (ids) => {
|
|
|
19889
20038
|
object({
|
|
19890
20039
|
outcome: literal("not-investigation-session").describe("An API key that is not a person's can change a baseline only as the investigation of the run, and chatSessionId is missing or is not the session that investigates the run. Nothing changed.")
|
|
19891
20040
|
}),
|
|
20041
|
+
object({
|
|
20042
|
+
outcome: literal("waits-for-merge").describe("The investigation proposed this baseline to apply when the run's pull request merges, and it hasn't merged. Nothing changed. QA Wolf applies the approved baseline on merge.")
|
|
20043
|
+
}),
|
|
19892
20044
|
object({
|
|
19893
20045
|
outcome: literal("nothing-to-accept").describe("The comparison did not fail, or has no new screenshot to accept. Nothing changed.")
|
|
19894
20046
|
})
|
|
@@ -20116,6 +20268,7 @@ var makeReattemptRunContract = (ids) => {
|
|
|
20116
20268
|
});
|
|
20117
20269
|
const output = resource({
|
|
20118
20270
|
reattemptedFlowIds: array(ids.flow).describe("The flows a new attempt was requested for."),
|
|
20271
|
+
reattemptedInRunIds: array(ids.run).describe("The runs the new attempts were added to, which is where to poll " + "for their results. It is this run alone unless a flow had kept " + "failing in later runs, because the attempt then goes to the " + "latest of them."),
|
|
20119
20272
|
runId: ids.run
|
|
20120
20273
|
}, { urlFieldDescription: "Absolute URL of the run page." });
|
|
20121
20274
|
return {
|
|
@@ -20129,7 +20282,7 @@ var makeReattemptRunContract = (ids) => {
|
|
|
20129
20282
|
openWorldHint: true,
|
|
20130
20283
|
readOnlyHint: false
|
|
20131
20284
|
},
|
|
20132
|
-
description: "Request new attempts for a run's flows
|
|
20285
|
+
description: "Request new attempts for a run's flows. " + "A flow is eligible once its result is failed or canceled and QA Wolf's " + "automatic retries have finished. " + "A flow that kept failing in later runs is attempted in the latest of " + "them, because that is the run carrying the failure, so read " + "reattemptedInRunIds for where each attempt landed. " + "A fully investigated run no longer accepts reattempts. " + "Attempts run with the latest flow code. Poll run.get for results.",
|
|
20133
20286
|
input,
|
|
20134
20287
|
kind: "write",
|
|
20135
20288
|
name: "run.reattempt",
|
|
@@ -20549,7 +20702,7 @@ var makeRunFlowOnRunnerContract = (ids) => {
|
|
|
20549
20702
|
const input = object({
|
|
20550
20703
|
entryPointPath: runFilePathSchema.describe("Path of the flow file to run, as it appears in `files`."),
|
|
20551
20704
|
env: runEnvironmentSchema.optional().describe("Environment variables to make available to the run."),
|
|
20552
|
-
environmentId: ids.environmentRef.optional().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."),
|
|
20705
|
+
environmentId: ids.environmentRef.optional().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. The run also gets `QAWOLF_ENVIRONMENT_ID`, `QAWOLF_ENVIRONMENT_NAME` and `QAWOLF_TEAM_API_KEY`, as a cloud run on that environment does, so a flow can save environment variables with `@qawolf/testkit`. Send this or `env`, not both."),
|
|
20553
20706
|
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."),
|
|
20554
20707
|
flowId: ids.flow.optional().describe("The QA Wolf flow this run is for. The run then sees it as `QAWOLF_WORKFLOW_ID`, the same value a platform run of that flow sees, so fixtures named and cleaned up by it match across both. Omitted, the flow whose file is at `entryPointPath` on the named environment's flow-code branch stands in; a file not in QA Wolf yet, or a run given no environment, leaves the run with no `QAWOLF_WORKFLOW_ID`."),
|
|
20555
20708
|
id: runnerIdSchema.describe("Id of the runner to run the flow on."),
|
|
@@ -20826,18 +20979,19 @@ var makeContractsV1 = (ids) => {
|
|
|
20826
20979
|
environment: {
|
|
20827
20980
|
create: makeCreateEnvironmentContract(resolvedIds),
|
|
20828
20981
|
deleteVariable: makeDeleteEnvironmentVariableContract(resolvedIds),
|
|
20829
|
-
discard: makeDiscardEnvironmentContract(resolvedIds),
|
|
20830
20982
|
find: makeFindEnvironmentsContract(resolvedIds),
|
|
20831
20983
|
get: makeGetEnvironmentContract(resolvedIds),
|
|
20832
20984
|
getVariable: makeGetEnvironmentVariableContract(resolvedIds),
|
|
20833
20985
|
listVariableNames: makeListEnvironmentVariableNamesContract(resolvedIds),
|
|
20834
20986
|
promote: makePromoteEnvironmentContract(resolvedIds),
|
|
20835
20987
|
setVariable: makeSetEnvironmentVariableContract(resolvedIds),
|
|
20988
|
+
terminate: makeTerminateEnvironmentContract(resolvedIds),
|
|
20836
20989
|
update: makeUpdateEnvironmentContract(resolvedIds)
|
|
20837
20990
|
},
|
|
20838
20991
|
file: makeFileContracts(resolvedIds),
|
|
20839
20992
|
flow: {
|
|
20840
20993
|
addTag: makeAddTagToFlowsContract(resolvedIds),
|
|
20994
|
+
getHistory: makeGetFlowHistoryContract(resolvedIds),
|
|
20841
20995
|
list: makeListFlowsContract(resolvedIds),
|
|
20842
20996
|
removeTag: makeRemoveTagFromFlowsContract(resolvedIds),
|
|
20843
20997
|
update: makeUpdateFlowContract(resolvedIds)
|
|
@@ -20848,6 +21002,7 @@ var makeContractsV1 = (ids) => {
|
|
|
20848
21002
|
create: makeCreateIssueContract(resolvedIds),
|
|
20849
21003
|
find: makeFindIssuesContract(resolvedIds),
|
|
20850
21004
|
get: makeGetIssueContract(resolvedIds),
|
|
21005
|
+
listActivity: makeListIssueActivityContract(resolvedIds),
|
|
20851
21006
|
removeFlows: makeRemoveFlowsFromIssueContract(resolvedIds),
|
|
20852
21007
|
update: makeUpdateIssueContract(resolvedIds)
|
|
20853
21008
|
},
|
|
@@ -23379,7 +23534,7 @@ function startUpdateCheck(deps) {
|
|
|
23379
23534
|
// package.json
|
|
23380
23535
|
var package_default = {
|
|
23381
23536
|
name: "@qawolf/cli",
|
|
23382
|
-
version: "1.
|
|
23537
|
+
version: "1.42.0",
|
|
23383
23538
|
description: "Run and manage QA Wolf flows from the terminal, CI, or an AI agent",
|
|
23384
23539
|
keywords: [
|
|
23385
23540
|
"automation",
|
|
@@ -23451,7 +23606,7 @@ var package_default = {
|
|
|
23451
23606
|
"@clack/prompts": "1.5.1",
|
|
23452
23607
|
"@napi-rs/keyring": "1.3.0",
|
|
23453
23608
|
"@oxc-node/core": "0.1.0",
|
|
23454
|
-
"@qawolf/api-contracts": "0.
|
|
23609
|
+
"@qawolf/api-contracts": "0.91.0",
|
|
23455
23610
|
"@qawolf/emails": "1.1.1",
|
|
23456
23611
|
"@qawolf/flow-targets": "1.0.0",
|
|
23457
23612
|
"@qawolf/flows": "0.1.4",
|
|
@@ -40521,4 +40676,4 @@ createProgram({ signals }).parseAsync().catch(() => {
|
|
|
40521
40676
|
process.exitCode = 1;
|
|
40522
40677
|
}).finally(() => exitWhenIdle(typeof process.exitCode === "number" ? process.exitCode : 0));
|
|
40523
40678
|
|
|
40524
|
-
//# debugId=
|
|
40679
|
+
//# debugId=19B86D665A1B773064756E2164756E21
|