@open-qa/qa 0.0.0-stage → 0.1.0-alpha.4
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/LICENSE +204 -0
- package/NOTICE +7 -0
- package/THIRD_PARTY.md +12 -0
- package/THIRD_PARTY_NOTICES.md +11 -0
- package/drizzle/0000_qa_core.sql +158 -0
- package/drizzle/0001_run_health.sql +3 -0
- package/drizzle/0002_bounded_cleanup.sql +5 -0
- package/drizzle/0003_step_replay_cache.sql +9 -0
- package/drizzle/0004_credential_expiry.sql +1 -0
- package/drizzle/0005_server_api.sql +19 -0
- package/drizzle/0006_submission_created.sql +3 -0
- package/drizzle/0007_findings.sql +19 -0
- package/drizzle/0008_classification_labels.sql +14 -0
- package/drizzle/0009_job_queue.sql +20 -0
- package/drizzle/0010_result_notifications.sql +13 -0
- package/drizzle/0011_result_notification_retries.sql +5 -0
- package/drizzle/0012_result_notification_flows.sql +44 -0
- package/drizzle/0013_flow_quarantine.sql +35 -0
- package/drizzle/0014_run_budgets.sql +2 -0
- package/drizzle/0015_flow_lifecycle.sql +9 -0
- package/drizzle/0016_open_qa_classification.sql +28 -0
- package/drizzle/meta/0000_snapshot.json +1002 -0
- package/drizzle/meta/0001_snapshot.json +1021 -0
- package/drizzle/meta/0002_snapshot.json +1027 -0
- package/drizzle/meta/0003_snapshot.json +1081 -0
- package/drizzle/meta/0004_snapshot.json +1087 -0
- package/drizzle/meta/0005_snapshot.json +1210 -0
- package/drizzle/meta/0006_snapshot.json +1244 -0
- package/drizzle/meta/0007_snapshot.json +1353 -0
- package/drizzle/meta/0008_snapshot.json +1435 -0
- package/drizzle/meta/0009_snapshot.json +1587 -0
- package/drizzle/meta/0010_snapshot.json +1675 -0
- package/drizzle/meta/0011_snapshot.json +1692 -0
- package/drizzle/meta/0012_snapshot.json +1818 -0
- package/drizzle/meta/0013_snapshot.json +2016 -0
- package/drizzle/meta/0014_snapshot.json +2028 -0
- package/drizzle/meta/0015_snapshot.json +2064 -0
- package/drizzle/meta/0016_snapshot.json +2076 -0
- package/drizzle/meta/_journal.json +125 -0
- package/package.json +118 -4
- package/problem-matcher.json +32 -0
- package/src/adapters/db-lease-pool.d.ts +25 -0
- package/src/adapters/db-lease-pool.js +293 -0
- package/src/adapters/dir-artifact-store.d.ts +9 -0
- package/src/adapters/dir-artifact-store.js +64 -0
- package/src/adapters/e2b-agent.d.ts +7 -0
- package/src/adapters/e2b-agent.js +94 -0
- package/src/adapters/e2b-artifacts.d.ts +3 -0
- package/src/adapters/e2b-artifacts.js +66 -0
- package/src/adapters/e2b-bounded.d.ts +1 -0
- package/src/adapters/e2b-bounded.js +19 -0
- package/src/adapters/e2b-client.d.ts +33 -0
- package/src/adapters/e2b-client.js +114 -0
- package/src/adapters/e2b-executor.d.ts +26 -0
- package/src/adapters/e2b-executor.js +194 -0
- package/src/adapters/e2b-lifetime.d.ts +20 -0
- package/src/adapters/e2b-lifetime.js +73 -0
- package/src/adapters/e2b-prune.d.ts +13 -0
- package/src/adapters/e2b-prune.js +42 -0
- package/src/adapters/file-replay-cache.d.ts +14 -0
- package/src/adapters/file-replay-cache.js +120 -0
- package/src/adapters/file-run-store.d.ts +175 -0
- package/src/adapters/file-run-store.js +280 -0
- package/src/adapters/fixed-lease-pool.d.ts +10 -0
- package/src/adapters/fixed-lease-pool.js +237 -0
- package/src/adapters/gcs/artifact-store.d.ts +49 -0
- package/src/adapters/gcs/artifact-store.js +247 -0
- package/src/adapters/gcs/client.d.ts +22 -0
- package/src/adapters/gcs/client.js +106 -0
- package/src/adapters/gcs/download.d.ts +9 -0
- package/src/adapters/gcs/download.js +43 -0
- package/src/adapters/gcs/index.d.ts +8 -0
- package/src/adapters/gcs/index.js +23 -0
- package/src/adapters/gcs/periodic-flush.d.ts +5 -0
- package/src/adapters/gcs/periodic-flush.js +16 -0
- package/src/adapters/gcs/pg-catalog.d.ts +16 -0
- package/src/adapters/gcs/pg-catalog.js +149 -0
- package/src/adapters/gcs/replay-completeness.d.ts +1 -0
- package/src/adapters/gcs/replay-completeness.js +65 -0
- package/src/adapters/gcs/scan-upload.d.ts +10 -0
- package/src/adapters/gcs/scan-upload.js +26 -0
- package/src/adapters/index.d.ts +5 -0
- package/src/adapters/index.js +12 -0
- package/src/adapters/lease-transaction.d.ts +2 -0
- package/src/adapters/lease-transaction.js +61 -0
- package/src/adapters/local-credential-resolver.d.ts +5 -0
- package/src/adapters/local-credential-resolver.js +15 -0
- package/src/adapters/local-env.d.ts +1 -0
- package/src/adapters/local-env.js +37 -0
- package/src/adapters/local-files.d.ts +17 -0
- package/src/adapters/local-files.js +150 -0
- package/src/adapters/pg-classification-store.d.ts +58 -0
- package/src/adapters/pg-classification-store.js +112 -0
- package/src/adapters/pg-replay-cache.d.ts +16 -0
- package/src/adapters/pg-replay-cache.js +111 -0
- package/src/adapters/pg-run-store.d.ts +58 -0
- package/src/adapters/pg-run-store.js +399 -0
- package/src/adapters/resource-pools.d.ts +2 -0
- package/src/adapters/resource-pools.js +28 -0
- package/src/adapters/secret-manager-credential-resolver.d.ts +44 -0
- package/src/adapters/secret-manager-credential-resolver.js +102 -0
- package/src/artifact-scan.d.ts +21 -0
- package/src/artifact-scan.js +139 -0
- package/src/budget-confirmation.d.ts +23 -0
- package/src/budget-confirmation.js +43 -0
- package/src/cache-command.d.ts +7 -0
- package/src/cache-command.js +107 -0
- package/src/classification-command.d.ts +14 -0
- package/src/classification-command.js +72 -0
- package/src/classification-diff.d.ts +10 -0
- package/src/classification-diff.js +47 -0
- package/src/classification-model.d.ts +17 -0
- package/src/classification-model.js +51 -0
- package/src/classification-notifier.d.ts +21 -0
- package/src/classification-notifier.js +34 -0
- package/src/classify-runs.d.ts +31 -0
- package/src/classify-runs.js +138 -0
- package/src/cli-program.d.ts +9 -0
- package/src/cli-program.js +172 -0
- package/src/cli.d.ts +2 -0
- package/src/cli.js +12 -0
- package/src/commands.d.ts +7 -0
- package/src/commands.js +17 -0
- package/src/credential-references.d.ts +24 -0
- package/src/credential-references.js +33 -0
- package/src/db/commands.d.ts +1 -0
- package/src/db/commands.js +34 -0
- package/src/db/credentials.d.ts +16 -0
- package/src/db/credentials.js +73 -0
- package/src/db/database.d.ts +12 -0
- package/src/db/database.js +135 -0
- package/src/db/event-chunks.d.ts +405 -0
- package/src/db/event-chunks.js +74 -0
- package/src/db/fencing.d.ts +8 -0
- package/src/db/fencing.js +16 -0
- package/src/db/flow-status.d.ts +41 -0
- package/src/db/flow-status.js +208 -0
- package/src/db/index.d.ts +12 -0
- package/src/db/index.js +24 -0
- package/src/db/queries.d.ts +73 -0
- package/src/db/queries.js +122 -0
- package/src/db/resources.d.ts +14 -0
- package/src/db/resources.js +61 -0
- package/src/db/schema.d.ts +3532 -0
- package/src/db/schema.js +501 -0
- package/src/demo-command.d.ts +1 -0
- package/src/demo-command.js +50 -0
- package/src/doctor-command.d.ts +15 -0
- package/src/doctor-command.js +275 -0
- package/src/doctor-summary.d.ts +2 -0
- package/src/doctor-summary.js +31 -0
- package/src/draft-api.d.ts +460 -0
- package/src/draft-api.js +333 -0
- package/src/draft-command.d.ts +10 -0
- package/src/draft-command.js +73 -0
- package/src/draft-hooks.d.ts +3 -0
- package/src/draft-hooks.js +33 -0
- package/src/draft-pages.d.ts +11 -0
- package/src/draft-pages.js +82 -0
- package/src/engine.d.ts +105 -0
- package/src/engine.js +323 -0
- package/src/execution-snapshot.d.ts +21 -0
- package/src/execution-snapshot.js +141 -0
- package/src/flow-check.d.ts +9 -0
- package/src/flow-check.js +68 -0
- package/src/flow-lifecycle.d.ts +6 -0
- package/src/flow-lifecycle.js +61 -0
- package/src/flow-lint.d.ts +8 -0
- package/src/flow-lint.js +73 -0
- package/src/flow-loader.d.ts +219 -0
- package/src/flow-loader.js +236 -0
- package/src/flow-source.d.ts +2 -0
- package/src/flow-source.js +6 -0
- package/src/flows-api.d.ts +1 -0
- package/src/flows-api.js +12 -0
- package/src/heal-notification.d.ts +16 -0
- package/src/heal-notification.js +62 -0
- package/src/hooks/api.d.ts +29 -0
- package/src/hooks/api.js +15 -0
- package/src/hooks/consumer.d.ts +18 -0
- package/src/hooks/consumer.js +98 -0
- package/src/hooks/loader.d.ts +6 -0
- package/src/hooks/loader.js +28 -0
- package/src/hooks/registry.d.ts +22 -0
- package/src/hooks/registry.js +23 -0
- package/src/hooks/runner.d.ts +19 -0
- package/src/hooks/runner.js +279 -0
- package/src/hooks/session-cache.d.ts +16 -0
- package/src/hooks/session-cache.js +42 -0
- package/src/hooks/session-store.d.ts +20 -0
- package/src/hooks/session-store.js +95 -0
- package/src/hooks/worker.d.ts +1 -0
- package/src/hooks/worker.js +84 -0
- package/src/http-stage-client.d.ts +367 -0
- package/src/http-stage-client.js +190 -0
- package/src/independent-model.d.ts +22 -0
- package/src/independent-model.js +215 -0
- package/src/lifecycle-command.d.ts +15 -0
- package/src/lifecycle-command.js +190 -0
- package/src/local-command.d.ts +3 -0
- package/src/local-command.js +27 -0
- package/src/local-host-executor.d.ts +38 -0
- package/src/local-host-executor.js +196 -0
- package/src/open-command.d.ts +7 -0
- package/src/open-command.js +39 -0
- package/src/operations-api.d.ts +2 -0
- package/src/operations-api.js +6 -0
- package/src/personas.d.ts +2 -0
- package/src/personas.js +61 -0
- package/src/program-runner.d.ts +3 -0
- package/src/program-runner.js +263 -0
- package/src/program-sandbox.py +75 -0
- package/src/program-scratch.d.ts +2 -0
- package/src/program-scratch.js +48 -0
- package/src/program-worker.mjs +101 -0
- package/src/public-id.d.ts +2 -0
- package/src/public-id.js +5 -0
- package/src/public-report-url.d.ts +1 -0
- package/src/public-report-url.js +18 -0
- package/src/publication-check.d.ts +1 -0
- package/src/publication-check.js +31 -0
- package/src/quarantine-command.d.ts +9 -0
- package/src/quarantine-command.js +69 -0
- package/src/remote-command.d.ts +30 -0
- package/src/remote-command.js +156 -0
- package/src/replay-image.d.ts +1 -0
- package/src/replay-image.js +35 -0
- package/src/report/assets.d.ts +1 -0
- package/src/report/assets.js +5 -0
- package/src/report/browser.css +414 -0
- package/src/report/browser.d.ts +1 -0
- package/src/report/browser.js +219 -0
- package/src/report/data.d.ts +1 -0
- package/src/report/data.js +4 -0
- package/src/report/generate.d.ts +1 -0
- package/src/report/generate.js +54 -0
- package/src/report/load.d.ts +870 -0
- package/src/report/load.js +139 -0
- package/src/report/resource-table.d.ts +2 -0
- package/src/report/resource-table.js +4 -0
- package/src/report/status-icon.d.ts +2 -0
- package/src/report/status-icon.js +20 -0
- package/src/report/style.css +413 -0
- package/src/result-notifier.d.ts +121 -0
- package/src/result-notifier.js +230 -0
- package/src/result-transports.d.ts +12 -0
- package/src/result-transports.js +150 -0
- package/src/run-command.d.ts +32 -0
- package/src/run-command.js +493 -0
- package/src/run-setup-error.d.ts +11 -0
- package/src/run-setup-error.js +18 -0
- package/src/sandboxes-command.d.ts +9 -0
- package/src/sandboxes-command.js +29 -0
- package/src/screen-proxy.d.ts +5 -0
- package/src/screen-proxy.js +79 -0
- package/src/screen-url.d.ts +18 -0
- package/src/screen-url.js +54 -0
- package/src/server/app.d.ts +29 -0
- package/src/server/app.js +350 -0
- package/src/server/auth.d.ts +33 -0
- package/src/server/auth.js +113 -0
- package/src/server/credentials.d.ts +30 -0
- package/src/server/credentials.js +77 -0
- package/src/server/errors.d.ts +9 -0
- package/src/server/errors.js +26 -0
- package/src/server/index.d.ts +35 -0
- package/src/server/index.js +96 -0
- package/src/server/maintenance.d.ts +13 -0
- package/src/server/maintenance.js +54 -0
- package/src/server/repository.d.ts +534 -0
- package/src/server/repository.js +219 -0
- package/src/setup-command.d.ts +10 -0
- package/src/setup-command.js +52 -0
- package/src/stage-environment.d.ts +1 -0
- package/src/stage-environment.js +35 -0
- package/src/stage-supervisor.mjs +95 -0
- package/src/studio-command.d.ts +7 -0
- package/src/studio-command.js +47 -0
- package/src/studio-control.d.ts +5 -0
- package/src/studio-control.js +207 -0
- package/src/studio-review.d.ts +24 -0
- package/src/studio-review.js +64 -0
- package/src/studio-worker.d.ts +1 -0
- package/src/studio-worker.js +48 -0
- package/src/system-config.d.ts +7 -0
- package/src/system-config.js +70 -0
- package/src/terminal-reporter.d.ts +13 -0
- package/src/terminal-reporter.js +93 -0
- package/src/vendor/gmail.d.ts +45 -0
- package/src/vendor/gmail.js +193 -0
- package/src/watch-command.d.ts +16 -0
- package/src/watch-command.js +93 -0
- package/src/watch-state.d.ts +4 -0
- package/src/watch-state.js +53 -0
- package/src/worker/execution-error.d.ts +5 -0
- package/src/worker/execution-error.js +10 -0
- package/src/worker/execution.d.ts +24 -0
- package/src/worker/execution.js +190 -0
- package/src/worker/index.d.ts +8 -0
- package/src/worker/index.js +40 -0
- package/src/worker/prune.d.ts +3 -0
- package/src/worker/prune.js +22 -0
- package/src/worker/quarantine-notifications.d.ts +8 -0
- package/src/worker/quarantine-notifications.js +89 -0
- package/src/worker/queue.d.ts +65 -0
- package/src/worker/queue.js +438 -0
- package/src/worker/result-notifications.d.ts +28 -0
- package/src/worker/result-notifications.js +347 -0
- package/src/worker/store.d.ts +4 -0
- package/src/worker/store.js +46 -0
- package/src/worker/worker.d.ts +21 -0
- package/src/worker/worker.js +140 -0
- package/README.md +0 -3
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { type AgentImage, type AgentRuntime, type CredentialResolver, type DraftInput, type DraftIssue, type QaConfig } from "@open-qa/qa-engine";
|
|
2
|
+
import type { Usage } from "@open-qa/qa-engine/protocol";
|
|
3
|
+
export interface DraftRequest {
|
|
4
|
+
root: string;
|
|
5
|
+
issue: number;
|
|
6
|
+
/** Existing suite directory relative to root. */
|
|
7
|
+
suite?: string;
|
|
8
|
+
repo?: string;
|
|
9
|
+
model: string;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
/** Input/model deadline (default 10 minutes); publication gets a separate 30 seconds. */
|
|
12
|
+
timeoutMs?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface DraftScreenshot {
|
|
15
|
+
url: string;
|
|
16
|
+
image: AgentImage;
|
|
17
|
+
}
|
|
18
|
+
export interface DraftDependencies {
|
|
19
|
+
onUsage?: (usage: Usage) => void;
|
|
20
|
+
runtime: AgentRuntime;
|
|
21
|
+
credentials: CredentialResolver;
|
|
22
|
+
readIssue?: typeof readGithubIssue;
|
|
23
|
+
capture?: (input: DraftInput, config: QaConfig, signal: AbortSignal) => Promise<DraftScreenshot[]>;
|
|
24
|
+
}
|
|
25
|
+
export declare function readGithubIssue(number: number, repo?: string, signal?: AbortSignal, run?: (args: string[], signal?: AbortSignal) => Promise<string>): Promise<DraftIssue>;
|
|
26
|
+
/** Programmatic API. The host supplies runtime and team credential policy; no model provider is constructed here. */
|
|
27
|
+
export declare function draftIssue(request: DraftRequest, dependencies: DraftDependencies): Promise<{
|
|
28
|
+
flow: {
|
|
29
|
+
status: "draft";
|
|
30
|
+
prod: "never";
|
|
31
|
+
key: string;
|
|
32
|
+
name: string;
|
|
33
|
+
story: string;
|
|
34
|
+
version: number;
|
|
35
|
+
actors: Record<string, {
|
|
36
|
+
role?: string | undefined;
|
|
37
|
+
kind?: "system" | "user" | undefined;
|
|
38
|
+
lease?: string | undefined;
|
|
39
|
+
views?: string[] | undefined;
|
|
40
|
+
persona?: string | undefined;
|
|
41
|
+
count?: number | undefined;
|
|
42
|
+
tools?: ("db" | "logs" | "github" | "http")[] | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
views: Record<string, {
|
|
45
|
+
surface: string;
|
|
46
|
+
start?: string | undefined;
|
|
47
|
+
chat?: string | undefined;
|
|
48
|
+
owner?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
steps: {
|
|
51
|
+
id?: string | undefined;
|
|
52
|
+
actor?: string | string[] | undefined;
|
|
53
|
+
do?: string | Record<string, string> | undefined;
|
|
54
|
+
run?: string | undefined;
|
|
55
|
+
expect?: ({
|
|
56
|
+
"web.url": {
|
|
57
|
+
matches: string;
|
|
58
|
+
view?: string | undefined;
|
|
59
|
+
within?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
} | {
|
|
62
|
+
"web.visible": {
|
|
63
|
+
text?: string | undefined;
|
|
64
|
+
role?: string | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
view?: string | undefined;
|
|
67
|
+
within?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
} | {
|
|
70
|
+
"web.images_loaded": {
|
|
71
|
+
view?: string | undefined;
|
|
72
|
+
within?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
"web.no_console_errors": {
|
|
76
|
+
ignore?: string[] | undefined;
|
|
77
|
+
view?: string | undefined;
|
|
78
|
+
within?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
} | {
|
|
81
|
+
"telegram.message": {
|
|
82
|
+
from?: string | undefined;
|
|
83
|
+
contains?: string | undefined;
|
|
84
|
+
reply_to?: string | undefined;
|
|
85
|
+
count?: number | undefined;
|
|
86
|
+
view?: string | undefined;
|
|
87
|
+
within?: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
} | {
|
|
90
|
+
"telegram.no_message": {
|
|
91
|
+
for: string;
|
|
92
|
+
from?: string | undefined;
|
|
93
|
+
contains?: string | undefined;
|
|
94
|
+
reply_to?: string | undefined;
|
|
95
|
+
count?: number | undefined;
|
|
96
|
+
view?: string | undefined;
|
|
97
|
+
within?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
} | {
|
|
100
|
+
"discord.message": {
|
|
101
|
+
channel?: string | undefined;
|
|
102
|
+
has_button?: string | undefined;
|
|
103
|
+
embed_title?: string | undefined;
|
|
104
|
+
from?: string | undefined;
|
|
105
|
+
contains?: string | undefined;
|
|
106
|
+
reply_to?: string | undefined;
|
|
107
|
+
count?: number | undefined;
|
|
108
|
+
view?: string | undefined;
|
|
109
|
+
within?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
"email.received": {
|
|
113
|
+
to: string;
|
|
114
|
+
subject?: string | undefined;
|
|
115
|
+
subject_contains?: string | undefined;
|
|
116
|
+
contains?: string | undefined;
|
|
117
|
+
view?: string | undefined;
|
|
118
|
+
within?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
} | {
|
|
121
|
+
"http.status": {
|
|
122
|
+
url: string;
|
|
123
|
+
equals: number;
|
|
124
|
+
view?: string | undefined;
|
|
125
|
+
within?: string | undefined;
|
|
126
|
+
};
|
|
127
|
+
} | {
|
|
128
|
+
"http.json": {
|
|
129
|
+
url: string;
|
|
130
|
+
equals: import("zod").JSONType;
|
|
131
|
+
view?: string | undefined;
|
|
132
|
+
within?: string | undefined;
|
|
133
|
+
};
|
|
134
|
+
} | {
|
|
135
|
+
"db.count": {
|
|
136
|
+
sql: string;
|
|
137
|
+
equals: number;
|
|
138
|
+
view?: string | undefined;
|
|
139
|
+
within?: string | undefined;
|
|
140
|
+
};
|
|
141
|
+
} | {
|
|
142
|
+
"db.row": {
|
|
143
|
+
sql: string;
|
|
144
|
+
equals: number | Record<string, import("zod").JSONType>;
|
|
145
|
+
view?: string | undefined;
|
|
146
|
+
within?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
} | {
|
|
149
|
+
"logs.entry": {
|
|
150
|
+
filter: string;
|
|
151
|
+
contains?: string | undefined;
|
|
152
|
+
view?: string | undefined;
|
|
153
|
+
within?: string | undefined;
|
|
154
|
+
};
|
|
155
|
+
} | {
|
|
156
|
+
"github.pr": {
|
|
157
|
+
repo: string;
|
|
158
|
+
title_contains?: string | undefined;
|
|
159
|
+
state?: "closed" | "open" | "merged" | undefined;
|
|
160
|
+
view?: string | undefined;
|
|
161
|
+
within?: string | undefined;
|
|
162
|
+
};
|
|
163
|
+
} | {
|
|
164
|
+
"logs.contains": {
|
|
165
|
+
filter: string;
|
|
166
|
+
view?: string | undefined;
|
|
167
|
+
within?: string | undefined;
|
|
168
|
+
};
|
|
169
|
+
})[] | undefined;
|
|
170
|
+
judge?: string | undefined;
|
|
171
|
+
save?: Record<string, string> | undefined;
|
|
172
|
+
level?: "semantic" | "pixel" | "hybrid" | undefined;
|
|
173
|
+
after?: string | string[] | undefined;
|
|
174
|
+
wait_for?: string | {
|
|
175
|
+
"web.url": {
|
|
176
|
+
matches: string;
|
|
177
|
+
view?: string | undefined;
|
|
178
|
+
within?: string | undefined;
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
"web.visible": {
|
|
182
|
+
text?: string | undefined;
|
|
183
|
+
role?: string | undefined;
|
|
184
|
+
name?: string | undefined;
|
|
185
|
+
view?: string | undefined;
|
|
186
|
+
within?: string | undefined;
|
|
187
|
+
};
|
|
188
|
+
} | {
|
|
189
|
+
"web.images_loaded": {
|
|
190
|
+
view?: string | undefined;
|
|
191
|
+
within?: string | undefined;
|
|
192
|
+
};
|
|
193
|
+
} | {
|
|
194
|
+
"web.no_console_errors": {
|
|
195
|
+
ignore?: string[] | undefined;
|
|
196
|
+
view?: string | undefined;
|
|
197
|
+
within?: string | undefined;
|
|
198
|
+
};
|
|
199
|
+
} | {
|
|
200
|
+
"telegram.message": {
|
|
201
|
+
from?: string | undefined;
|
|
202
|
+
contains?: string | undefined;
|
|
203
|
+
reply_to?: string | undefined;
|
|
204
|
+
count?: number | undefined;
|
|
205
|
+
view?: string | undefined;
|
|
206
|
+
within?: string | undefined;
|
|
207
|
+
};
|
|
208
|
+
} | {
|
|
209
|
+
"telegram.no_message": {
|
|
210
|
+
for: string;
|
|
211
|
+
from?: string | undefined;
|
|
212
|
+
contains?: string | undefined;
|
|
213
|
+
reply_to?: string | undefined;
|
|
214
|
+
count?: number | undefined;
|
|
215
|
+
view?: string | undefined;
|
|
216
|
+
within?: string | undefined;
|
|
217
|
+
};
|
|
218
|
+
} | {
|
|
219
|
+
"discord.message": {
|
|
220
|
+
channel?: string | undefined;
|
|
221
|
+
has_button?: string | undefined;
|
|
222
|
+
embed_title?: string | undefined;
|
|
223
|
+
from?: string | undefined;
|
|
224
|
+
contains?: string | undefined;
|
|
225
|
+
reply_to?: string | undefined;
|
|
226
|
+
count?: number | undefined;
|
|
227
|
+
view?: string | undefined;
|
|
228
|
+
within?: string | undefined;
|
|
229
|
+
};
|
|
230
|
+
} | {
|
|
231
|
+
"email.received": {
|
|
232
|
+
to: string;
|
|
233
|
+
subject?: string | undefined;
|
|
234
|
+
subject_contains?: string | undefined;
|
|
235
|
+
contains?: string | undefined;
|
|
236
|
+
view?: string | undefined;
|
|
237
|
+
within?: string | undefined;
|
|
238
|
+
};
|
|
239
|
+
} | {
|
|
240
|
+
"http.status": {
|
|
241
|
+
url: string;
|
|
242
|
+
equals: number;
|
|
243
|
+
view?: string | undefined;
|
|
244
|
+
within?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
} | {
|
|
247
|
+
"http.json": {
|
|
248
|
+
url: string;
|
|
249
|
+
equals: import("zod").JSONType;
|
|
250
|
+
view?: string | undefined;
|
|
251
|
+
within?: string | undefined;
|
|
252
|
+
};
|
|
253
|
+
} | {
|
|
254
|
+
"db.count": {
|
|
255
|
+
sql: string;
|
|
256
|
+
equals: number;
|
|
257
|
+
view?: string | undefined;
|
|
258
|
+
within?: string | undefined;
|
|
259
|
+
};
|
|
260
|
+
} | {
|
|
261
|
+
"db.row": {
|
|
262
|
+
sql: string;
|
|
263
|
+
equals: number | Record<string, import("zod").JSONType>;
|
|
264
|
+
view?: string | undefined;
|
|
265
|
+
within?: string | undefined;
|
|
266
|
+
};
|
|
267
|
+
} | {
|
|
268
|
+
"logs.entry": {
|
|
269
|
+
filter: string;
|
|
270
|
+
contains?: string | undefined;
|
|
271
|
+
view?: string | undefined;
|
|
272
|
+
within?: string | undefined;
|
|
273
|
+
};
|
|
274
|
+
} | {
|
|
275
|
+
"github.pr": {
|
|
276
|
+
repo: string;
|
|
277
|
+
title_contains?: string | undefined;
|
|
278
|
+
state?: "closed" | "open" | "merged" | undefined;
|
|
279
|
+
view?: string | undefined;
|
|
280
|
+
within?: string | undefined;
|
|
281
|
+
};
|
|
282
|
+
} | {
|
|
283
|
+
"logs.contains": {
|
|
284
|
+
filter: string;
|
|
285
|
+
view?: string | undefined;
|
|
286
|
+
within?: string | undefined;
|
|
287
|
+
};
|
|
288
|
+
} | undefined;
|
|
289
|
+
together?: string[] | undefined;
|
|
290
|
+
within?: string | undefined;
|
|
291
|
+
}[];
|
|
292
|
+
run?: import("@open-qa/qa-engine").ProgramRun | undefined;
|
|
293
|
+
lease?: string | undefined;
|
|
294
|
+
heal?: "auto" | "review" | "off" | undefined;
|
|
295
|
+
tier?: "T1" | "T2" | "T3" | "T4" | undefined;
|
|
296
|
+
tags?: string[] | undefined;
|
|
297
|
+
budget?: {
|
|
298
|
+
actions?: number | undefined;
|
|
299
|
+
minutes?: number | undefined;
|
|
300
|
+
usd?: number | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
record?: "rrweb"[] | undefined;
|
|
303
|
+
setup?: {
|
|
304
|
+
hook: string;
|
|
305
|
+
params?: Record<string, import("zod").JSONType> | undefined;
|
|
306
|
+
}[] | undefined;
|
|
307
|
+
teardown?: {
|
|
308
|
+
hook: string;
|
|
309
|
+
params?: Record<string, import("zod").JSONType> | undefined;
|
|
310
|
+
}[] | undefined;
|
|
311
|
+
expect_always?: ({
|
|
312
|
+
"web.url": {
|
|
313
|
+
matches: string;
|
|
314
|
+
view?: string | undefined;
|
|
315
|
+
within?: string | undefined;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
"web.visible": {
|
|
319
|
+
text?: string | undefined;
|
|
320
|
+
role?: string | undefined;
|
|
321
|
+
name?: string | undefined;
|
|
322
|
+
view?: string | undefined;
|
|
323
|
+
within?: string | undefined;
|
|
324
|
+
};
|
|
325
|
+
} | {
|
|
326
|
+
"web.images_loaded": {
|
|
327
|
+
view?: string | undefined;
|
|
328
|
+
within?: string | undefined;
|
|
329
|
+
};
|
|
330
|
+
} | {
|
|
331
|
+
"web.no_console_errors": {
|
|
332
|
+
ignore?: string[] | undefined;
|
|
333
|
+
view?: string | undefined;
|
|
334
|
+
within?: string | undefined;
|
|
335
|
+
};
|
|
336
|
+
} | {
|
|
337
|
+
"telegram.message": {
|
|
338
|
+
from?: string | undefined;
|
|
339
|
+
contains?: string | undefined;
|
|
340
|
+
reply_to?: string | undefined;
|
|
341
|
+
count?: number | undefined;
|
|
342
|
+
view?: string | undefined;
|
|
343
|
+
within?: string | undefined;
|
|
344
|
+
};
|
|
345
|
+
} | {
|
|
346
|
+
"telegram.no_message": {
|
|
347
|
+
for: string;
|
|
348
|
+
from?: string | undefined;
|
|
349
|
+
contains?: string | undefined;
|
|
350
|
+
reply_to?: string | undefined;
|
|
351
|
+
count?: number | undefined;
|
|
352
|
+
view?: string | undefined;
|
|
353
|
+
within?: string | undefined;
|
|
354
|
+
};
|
|
355
|
+
} | {
|
|
356
|
+
"discord.message": {
|
|
357
|
+
channel?: string | undefined;
|
|
358
|
+
has_button?: string | undefined;
|
|
359
|
+
embed_title?: string | undefined;
|
|
360
|
+
from?: string | undefined;
|
|
361
|
+
contains?: string | undefined;
|
|
362
|
+
reply_to?: string | undefined;
|
|
363
|
+
count?: number | undefined;
|
|
364
|
+
view?: string | undefined;
|
|
365
|
+
within?: string | undefined;
|
|
366
|
+
};
|
|
367
|
+
} | {
|
|
368
|
+
"email.received": {
|
|
369
|
+
to: string;
|
|
370
|
+
subject?: string | undefined;
|
|
371
|
+
subject_contains?: string | undefined;
|
|
372
|
+
contains?: string | undefined;
|
|
373
|
+
view?: string | undefined;
|
|
374
|
+
within?: string | undefined;
|
|
375
|
+
};
|
|
376
|
+
} | {
|
|
377
|
+
"http.status": {
|
|
378
|
+
url: string;
|
|
379
|
+
equals: number;
|
|
380
|
+
view?: string | undefined;
|
|
381
|
+
within?: string | undefined;
|
|
382
|
+
};
|
|
383
|
+
} | {
|
|
384
|
+
"http.json": {
|
|
385
|
+
url: string;
|
|
386
|
+
equals: import("zod").JSONType;
|
|
387
|
+
view?: string | undefined;
|
|
388
|
+
within?: string | undefined;
|
|
389
|
+
};
|
|
390
|
+
} | {
|
|
391
|
+
"db.count": {
|
|
392
|
+
sql: string;
|
|
393
|
+
equals: number;
|
|
394
|
+
view?: string | undefined;
|
|
395
|
+
within?: string | undefined;
|
|
396
|
+
};
|
|
397
|
+
} | {
|
|
398
|
+
"db.row": {
|
|
399
|
+
sql: string;
|
|
400
|
+
equals: number | Record<string, import("zod").JSONType>;
|
|
401
|
+
view?: string | undefined;
|
|
402
|
+
within?: string | undefined;
|
|
403
|
+
};
|
|
404
|
+
} | {
|
|
405
|
+
"logs.entry": {
|
|
406
|
+
filter: string;
|
|
407
|
+
contains?: string | undefined;
|
|
408
|
+
view?: string | undefined;
|
|
409
|
+
within?: string | undefined;
|
|
410
|
+
};
|
|
411
|
+
} | {
|
|
412
|
+
"github.pr": {
|
|
413
|
+
repo: string;
|
|
414
|
+
title_contains?: string | undefined;
|
|
415
|
+
state?: "closed" | "open" | "merged" | undefined;
|
|
416
|
+
view?: string | undefined;
|
|
417
|
+
within?: string | undefined;
|
|
418
|
+
};
|
|
419
|
+
} | {
|
|
420
|
+
"logs.contains": {
|
|
421
|
+
filter: string;
|
|
422
|
+
view?: string | undefined;
|
|
423
|
+
within?: string | undefined;
|
|
424
|
+
};
|
|
425
|
+
})[] | undefined;
|
|
426
|
+
};
|
|
427
|
+
yaml: string;
|
|
428
|
+
plannerAttempts: number;
|
|
429
|
+
plan: {
|
|
430
|
+
journeys: {
|
|
431
|
+
actor: string;
|
|
432
|
+
goal: string;
|
|
433
|
+
success: string;
|
|
434
|
+
ac: string[];
|
|
435
|
+
}[];
|
|
436
|
+
};
|
|
437
|
+
coverage: {
|
|
438
|
+
ac: string;
|
|
439
|
+
checks: {
|
|
440
|
+
step: string;
|
|
441
|
+
kind: "judge" | "expect";
|
|
442
|
+
index?: number | undefined;
|
|
443
|
+
}[];
|
|
444
|
+
reason?: string | undefined;
|
|
445
|
+
}[];
|
|
446
|
+
attempts: number;
|
|
447
|
+
usage: {
|
|
448
|
+
inputTokens: number;
|
|
449
|
+
outputTokens: number;
|
|
450
|
+
cacheReadTokens?: number | undefined;
|
|
451
|
+
cacheWriteTokens?: number | undefined;
|
|
452
|
+
costUsd?: number | undefined;
|
|
453
|
+
costUnknown?: true | undefined;
|
|
454
|
+
};
|
|
455
|
+
key: string;
|
|
456
|
+
status: "draft";
|
|
457
|
+
source: string;
|
|
458
|
+
bundle: string;
|
|
459
|
+
review: string;
|
|
460
|
+
}>;
|