@unotest/protocol 0.23.0 → 0.25.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/CHANGELOG.md +180 -0
- package/dist/index.d.ts +71 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,185 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.25.0] - 2026-08-29
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 70f2e11: Judge: provider edge cases, a startup preflight, and logs.
|
|
8
|
+
|
|
9
|
+
**Vertex `GOOGLE_CLOUD_LOCATION=global` could not work.** The endpoint was
|
|
10
|
+
built as `https://<location>-aiplatform.googleapis.com`, so `global` asked
|
|
11
|
+
`global-aiplatform.googleapis.com` — not a Vertex host. Google's edge
|
|
12
|
+
answered 404 with an HTML page, which arrived as "model not found". The
|
|
13
|
+
global endpoint has no region prefix; it is now special-cased. `global` is
|
|
14
|
+
the default in Google's own docs, so this was the first thing a Vertex user
|
|
15
|
+
hit. A model id containing a slash
|
|
16
|
+
(`publishers/anthropic/models/claude-haiku-4-5`) is now passed through
|
|
17
|
+
instead of being forced under `publishers/google`, and a pasted
|
|
18
|
+
`models/gemini-2.5-flash` no longer doubles the prefix on the Gemini API.
|
|
19
|
+
|
|
20
|
+
**Backend replies are classified instead of lumped together.**
|
|
21
|
+
|
|
22
|
+
- `401`/`403` → `config` with the variable to fix (`OPENAI_API_KEY`, ADC,
|
|
23
|
+
an expired `UNOTEST_JUDGE_ACCESS_TOKEN`), no longer indistinguishable
|
|
24
|
+
from a model fault.
|
|
25
|
+
- `429` and `5xx` → retried transparently with a short backoff that
|
|
26
|
+
honours `Retry-After`. A single rate limit used to kill a whole scenario.
|
|
27
|
+
The retry policy is a decorator over `JudgeProvider`, not a loop inside
|
|
28
|
+
the HTTP helper, so it covers every provider — `claude` spawns a process
|
|
29
|
+
and therefore had no re-send at all. A `claude` usage limit is
|
|
30
|
+
deliberately still reported rather than retried: the window is seconds,
|
|
31
|
+
the limit is not.
|
|
32
|
+
- A non-JSON error body says the endpoint is wrong rather than quoting an
|
|
33
|
+
HTML page back as the backend's opinion of the model. The body is kept
|
|
34
|
+
for `debug` logging.
|
|
35
|
+
- OpenAI `finish_reason: length` and Anthropic `stop_reason: max_tokens`
|
|
36
|
+
are named as token-limit truncation instead of surfacing as "did not
|
|
37
|
+
reply with the requested JSON verdict".
|
|
38
|
+
- The verdict parser accepts `"PASS"` and a JSON object embedded in prose —
|
|
39
|
+
providers without a JSON mode do both.
|
|
40
|
+
|
|
41
|
+
**`UNOTEST_JUDGE_VOTE=N` no longer fails on one bad ballot.** The N calls
|
|
42
|
+
ran under `Promise.all`, so voting — the reliability feature — tripled the
|
|
43
|
+
chance that one transient error killed the request. Errored ballots are now
|
|
44
|
+
dropped as long as a majority of the N calls still voted; a tie among the
|
|
45
|
+
survivors re-raises the failure rather than picking a side.
|
|
46
|
+
|
|
47
|
+
**The service checks its credentials before it says "listening".** Each
|
|
48
|
+
provider exposes a free probe (an ADC token exchange, `GET /models`,
|
|
49
|
+
`claude --version`) — no model call, no cost. A failing probe prints the
|
|
50
|
+
reason and exits non-zero (`UNOTEST_JUDGE_SKIP_PREFLIGHT=1` waives it), and
|
|
51
|
+
`npx @unotest/judge --check` runs just the probe for start scripts.
|
|
52
|
+
`GET /health` reports the same thing instead of an unconditional
|
|
53
|
+
`{"ok":true}`: `503` + `{"ok":false,"code":"config","error":"..."}`, cached
|
|
54
|
+
for a few seconds. The waiver covers the startup gate only — a service
|
|
55
|
+
started under it still answers `/health` from a real probe, and `--check`
|
|
56
|
+
still answers honestly, because the operator who reaches for the flag is
|
|
57
|
+
precisely the one whose credentials are dead. A static
|
|
58
|
+
`UNOTEST_JUDGE_ACCESS_TOKEN` is validated too, against Google's free
|
|
59
|
+
`tokeninfo`: those tokens live about an hour and refresh themselves never,
|
|
60
|
+
so "valid at startup" is a different question from "valid now".
|
|
61
|
+
|
|
62
|
+
ADC that expires on a daily reauth policy is a normal morning state, not a
|
|
63
|
+
one-off misconfiguration — it should not cost a five-minute run to
|
|
64
|
+
discover.
|
|
65
|
+
|
|
66
|
+
**New: `UNOTEST_JUDGE_LOG_LEVEL`** (falls back to the `UNOTEST_LOG_LEVEL`
|
|
67
|
+
`@unotest/web` already reads). At the default `info`, one line per judged
|
|
68
|
+
request — verdict, attempts, model, latency — with errors on stderr; a run
|
|
69
|
+
of 21 assertions with `VOTE=3` is 63 billed model calls that previously
|
|
70
|
+
left no trace. At `debug`, per call: the effective prompt (rubric
|
|
71
|
+
**including** any `UNOTEST_JUDGE_PREAMBLE`), each ballot with its
|
|
72
|
+
reasoning, and the raw provider reply. **The judged text is application
|
|
73
|
+
content** — debug writes it to stdout verbatim, which is why it is opt-in
|
|
74
|
+
and never the default.
|
|
75
|
+
|
|
76
|
+
An oversized request body now returns `413` with a reason; the socket used
|
|
77
|
+
to be destroyed while the client was still writing, so the client saw
|
|
78
|
+
`socket hang up`.
|
|
79
|
+
|
|
80
|
+
**`@unotest/web`:** the `judge:verdict` run artifact records `preamble`
|
|
81
|
+
beside `rubric` when one is set. The model saw the concatenation, but only
|
|
82
|
+
the split says which half came from the scenario and which from the
|
|
83
|
+
environment — without it, "a red step is explainable without a re-run" held
|
|
84
|
+
only for whoever also knew the env file. A judge request that outlives
|
|
85
|
+
`UNOTEST_JUDGE_TIMEOUT_MS` now says so, and names the service-side
|
|
86
|
+
`UNOTEST_JUDGE_CALL_TIMEOUT_MS` it may be racing.
|
|
87
|
+
|
|
88
|
+
The Claude CLI provider also stopped leaking a timer: the per-call budget
|
|
89
|
+
is now our own timer, cleared on every exit path. `child_process.spawn`'s
|
|
90
|
+
`timeout` option does not clear itself when the spawn fails, so a missing
|
|
91
|
+
binary held the event loop for the whole budget — 15s for a `--version`
|
|
92
|
+
probe, 120s for a verdict.
|
|
93
|
+
|
|
94
|
+
**Breaking (0.x minor):** `@unotest/judge` no longer exports `ExecFileFn` /
|
|
95
|
+
`ExecFileResult`; the Claude CLI provider takes `runImpl: RunProcess`
|
|
96
|
+
instead of `execImpl`, because the prompt moved from `argv` to stdin — a
|
|
97
|
+
long judged text used to overflow `ARG_MAX` and fail as a bare `E2BIG`.
|
|
98
|
+
|
|
99
|
+
- adb9d72: Viewer: a pinned Home tab, a multi-row tab strip, and live tiles on the
|
|
100
|
+
overview field.
|
|
101
|
+
|
|
102
|
+
- **Home tab.** The project-health overview used to render only when no
|
|
103
|
+
tab was open, so it disappeared exactly while you were working. It is
|
|
104
|
+
now a pinned first tab: always present, never closable, and what
|
|
105
|
+
"Close All" leaves you on.
|
|
106
|
+
- **Multi-row tabs.** The strip wraps instead of scrolling sideways —
|
|
107
|
+
every open tab is visible at once, up to three rows, then it scrolls.
|
|
108
|
+
Tabs are pills now: the active one is filled like a selected tree row,
|
|
109
|
+
inactive ones are plain text until hovered. Middle-click closes a tab,
|
|
110
|
+
the `⋮` button opens the same actions as a right-click, and the strip
|
|
111
|
+
is a proper `tablist` for screen readers.
|
|
112
|
+
- **Live tiles.** A scenario that is running right now breathes on the
|
|
113
|
+
overview field — the tile fades in and out under a warm ring (a still
|
|
114
|
+
ring when paused, since nothing is moving). Status colour, tile order
|
|
115
|
+
and the counters/filters stay exactly as they were until the run
|
|
116
|
+
finishes.
|
|
117
|
+
|
|
118
|
+
`@unotest/protocol` gains the `overview` tab kind in the `TabKind` union.
|
|
119
|
+
|
|
120
|
+
## [0.24.0] - 2026-08-26
|
|
121
|
+
|
|
122
|
+
### Minor Changes
|
|
123
|
+
|
|
124
|
+
- Judge: rendered text, one env namespace, preamble and majority vote.
|
|
125
|
+
|
|
126
|
+
**Breaking (judge env, no aliases).** Every `JUDGE_*` variable of the
|
|
127
|
+
`@unotest/judge` service is now `UNOTEST_JUDGE_*`, matching the client-side
|
|
128
|
+
names `@unotest/web` already used. `@unotest/judge` shipped a day before
|
|
129
|
+
this change with no known installs outside the monorepo, so the rename lands
|
|
130
|
+
without a deprecation window — the window would never be cheaper. Migration:
|
|
131
|
+
|
|
132
|
+
| Old | New |
|
|
133
|
+
| --------------------------- | ------------------------------------------- |
|
|
134
|
+
| `JUDGE_PROVIDER` | `UNOTEST_JUDGE_PROVIDER` |
|
|
135
|
+
| `JUDGE_MODEL` | `UNOTEST_JUDGE_MODEL` |
|
|
136
|
+
| `JUDGE_RETRIES` | `UNOTEST_JUDGE_RETRIES` |
|
|
137
|
+
| `JUDGE_TIMEOUT_MS` | `UNOTEST_JUDGE_CALL_TIMEOUT_MS` |
|
|
138
|
+
| `JUDGE_ACCESS_TOKEN` | `UNOTEST_JUDGE_ACCESS_TOKEN` |
|
|
139
|
+
| `JUDGE_CLAUDE_BIN` | `UNOTEST_JUDGE_CLAUDE_BIN` |
|
|
140
|
+
| `JUDGE_HOST` / `JUDGE_PORT` | `UNOTEST_JUDGE_HOST` / `UNOTEST_JUDGE_PORT` |
|
|
141
|
+
| `JUDGE_TOKEN` | `UNOTEST_JUDGE_TOKEN` |
|
|
142
|
+
|
|
143
|
+
Two names were deliberately not a straight prefixing. The service's per-call
|
|
144
|
+
budget became `UNOTEST_JUDGE_CALL_TIMEOUT_MS` because `UNOTEST_JUDGE_TIMEOUT_MS`
|
|
145
|
+
was already taken by the client's whole-request budget — same family, different
|
|
146
|
+
question. And the service's bearer token merged into the client's
|
|
147
|
+
`UNOTEST_JUDGE_TOKEN`: it is one secret, and in a shared overlay the two ends
|
|
148
|
+
have to carry the same value anyway.
|
|
149
|
+
|
|
150
|
+
**Behavioral fix: rendered text.** `assertJudge` and the DSL query
|
|
151
|
+
`getInnerText(loc)` now read `innerText`, not `textContent`. Both promised
|
|
152
|
+
rendered text and delivered the raw source-order concatenation: line breaks
|
|
153
|
+
gone, `display:none` subtrees and `<script>` contents folded in. A rubric
|
|
154
|
+
about structure ("the answer is three bullets") was unjudgeable, and
|
|
155
|
+
`getInnerText` returned text no user can see. Scenarios that relied on
|
|
156
|
+
hidden text reaching these two functions will now see it excluded.
|
|
157
|
+
|
|
158
|
+
**Vertex fixes.** `google-auth-library` moved from optional peer to a regular
|
|
159
|
+
dependency: as a peer it did not resolve under `npx @unotest/judge` at all,
|
|
160
|
+
which broke the advertised keyless path for anyone who never installs the
|
|
161
|
+
package locally. It is still loaded lazily, so non-vertex runs pay nothing.
|
|
162
|
+
Expired Application Default Credentials now produce
|
|
163
|
+
"run `gcloud auth application-default login`" instead of a raw Google OAuth
|
|
164
|
+
blob, read off the structured response body rather than message text.
|
|
165
|
+
|
|
166
|
+
**New: `UNOTEST_JUDGE_PREAMBLE`** (web side) — text prepended to every rubric
|
|
167
|
+
in the project, for standing context ("the app under test is a support bot,
|
|
168
|
+
Russian UI") that would otherwise be copy-pasted into each rubric. It applies
|
|
169
|
+
in both local and remote mode; a remote judge stays project-agnostic.
|
|
170
|
+
|
|
171
|
+
**New: `UNOTEST_JUDGE_VOTE=N`** (service side, odd N, default 1 = off) — N
|
|
172
|
+
independent calls decided by majority. It replaces `UNOTEST_JUDGE_RETRIES`
|
|
173
|
+
rather than stacking with it: re-asking is a deliberate bias toward `pass`,
|
|
174
|
+
a vote is deliberately symmetric, and running both would quietly restore the
|
|
175
|
+
bias the vote was chosen to remove. Ballots run concurrently, so a vote costs
|
|
176
|
+
N provider calls but roughly one call of wall-clock.
|
|
177
|
+
|
|
178
|
+
**Wire protocol.** New error code `config` on the judge's error responses:
|
|
179
|
+
the service's own setup is broken (bad env, expired credentials) and the
|
|
180
|
+
message carries the fix. `@unotest/web` surfaces it as a `ConfigError`
|
|
181
|
+
instead of burying it as a generic "judge unavailable" fault.
|
|
182
|
+
|
|
3
183
|
## [0.23.0] - 2026-08-26
|
|
4
184
|
|
|
5
185
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -426,7 +426,15 @@ interface ScreenshotEvent extends RunArtifactBase {
|
|
|
426
426
|
* at emit time, like unbound `screenshot` events. */
|
|
427
427
|
interface JudgeVerdictEvent extends RunArtifactBase {
|
|
428
428
|
kind: "judge:verdict";
|
|
429
|
+
/** The scenario's own rubric, as written in the test. */
|
|
429
430
|
rubric: string;
|
|
431
|
+
/** Project-wide judging context prepended to every rubric
|
|
432
|
+
* (UNOTEST_JUDGE_PREAMBLE), when one is set. Recorded next to the rubric
|
|
433
|
+
* rather than glued to it: what the model saw is the concatenation, but
|
|
434
|
+
* only this split says which half came from the scenario and which from
|
|
435
|
+
* the environment. Absent on runs with no preamble (and on runs recorded
|
|
436
|
+
* before 0.25.0). */
|
|
437
|
+
preamble?: string;
|
|
430
438
|
/** The judged text (the resolved element's rendered text). */
|
|
431
439
|
text: string;
|
|
432
440
|
verdict: "pass" | "fail";
|
|
@@ -1469,6 +1477,12 @@ type WsMessage = FsScenariosChangedMessage | FsHelpersChangedMessage | FsCollect
|
|
|
1469
1477
|
* registries (`Record<WsMessageKind, Handler>`). */
|
|
1470
1478
|
type WsMessageKind = WsMessage["kind"];
|
|
1471
1479
|
|
|
1480
|
+
/** The pinned Overview ("Home") tab — project health, always open and
|
|
1481
|
+
* never closable. Carries no target: there is exactly one of it, so the
|
|
1482
|
+
* `kind` alone is its identity. */
|
|
1483
|
+
interface OverviewTab {
|
|
1484
|
+
kind: "overview";
|
|
1485
|
+
}
|
|
1472
1486
|
/** Open scenario source (read-only view). Keyed by project-relative path. */
|
|
1473
1487
|
interface ScenarioTab {
|
|
1474
1488
|
kind: "scenario";
|
|
@@ -1503,7 +1517,7 @@ interface SnapshotTab {
|
|
|
1503
1517
|
snapshotId: string;
|
|
1504
1518
|
}
|
|
1505
1519
|
/** Discriminated union of every open-tab shape the frontend supports. */
|
|
1506
|
-
type TabKind = ScenarioTab | HelperTab | CollectionTab | ScenarioRunTab | CollectionRunTab | SnapshotTab;
|
|
1520
|
+
type TabKind = OverviewTab | ScenarioTab | HelperTab | CollectionTab | ScenarioRunTab | CollectionRunTab | SnapshotTab;
|
|
1507
1521
|
/** All tab `kind` literals — useful for switch-completeness checks. */
|
|
1508
1522
|
type TabKindName = TabKind["kind"];
|
|
1509
1523
|
|
|
@@ -1630,12 +1644,65 @@ interface JudgeVerdict {
|
|
|
1630
1644
|
}
|
|
1631
1645
|
interface JudgeErrorResponse {
|
|
1632
1646
|
error: string;
|
|
1633
|
-
/** Machine code for control flow on the client side.
|
|
1634
|
-
|
|
1647
|
+
/** Machine code for control flow on the client side. `config` = the
|
|
1648
|
+
* operator must fix the service's setup (bad env, expired credentials);
|
|
1649
|
+
* the message says what to run. */
|
|
1650
|
+
code?: "unauthorized" | "bad-request" | "provider-error" | "config" | "internal";
|
|
1651
|
+
}
|
|
1652
|
+
/** `GET /health` — whether the service can actually judge, not merely
|
|
1653
|
+
* whether it is listening. A judge whose credentials are dead answers
|
|
1654
|
+
* `ok: false` with the same message (and `code`) a verdict call would
|
|
1655
|
+
* fail with, so a runner can preflight it instead of spending a scenario
|
|
1656
|
+
* to find out. */
|
|
1657
|
+
interface JudgeHealthResponse {
|
|
1658
|
+
ok: boolean;
|
|
1659
|
+
/** Present when `ok` is false — same taxonomy as JudgeErrorResponse. */
|
|
1660
|
+
code?: JudgeErrorResponse["code"];
|
|
1661
|
+
error?: string;
|
|
1635
1662
|
}
|
|
1636
1663
|
declare const JUDGE_ROUTES: {
|
|
1637
1664
|
readonly judge: "/judge";
|
|
1638
1665
|
readonly health: "/health";
|
|
1639
1666
|
};
|
|
1640
1667
|
|
|
1641
|
-
|
|
1668
|
+
declare const JUDGE_ENV: {
|
|
1669
|
+
/** web: off | local | remote. */
|
|
1670
|
+
readonly mode: "UNOTEST_JUDGE_MODE";
|
|
1671
|
+
/** web: base URL of the service (remote mode). */
|
|
1672
|
+
readonly url: "UNOTEST_JUDGE_URL";
|
|
1673
|
+
/** Bearer token — the service requires it, web sends it. One secret,
|
|
1674
|
+
* one name: in a shared overlay the two ends must match anyway. */
|
|
1675
|
+
readonly token: "UNOTEST_JUDGE_TOKEN";
|
|
1676
|
+
/** web: budget for the whole web→judge request, ms. */
|
|
1677
|
+
readonly requestTimeoutMs: "UNOTEST_JUDGE_TIMEOUT_MS";
|
|
1678
|
+
/** web: text prepended to every rubric (project-wide judging context). */
|
|
1679
|
+
readonly preamble: "UNOTEST_JUDGE_PREAMBLE";
|
|
1680
|
+
/** judge: provider kind. Read by web too — it forwards the value when
|
|
1681
|
+
* running the engine in-process (local mode). */
|
|
1682
|
+
readonly provider: "UNOTEST_JUDGE_PROVIDER";
|
|
1683
|
+
/** judge: model id. */
|
|
1684
|
+
readonly model: "UNOTEST_JUDGE_MODEL";
|
|
1685
|
+
/** judge: budget for ONE provider call, ms. */
|
|
1686
|
+
readonly callTimeoutMs: "UNOTEST_JUDGE_CALL_TIMEOUT_MS";
|
|
1687
|
+
/** judge: extra provider calls on `fail`. */
|
|
1688
|
+
readonly retries: "UNOTEST_JUDGE_RETRIES";
|
|
1689
|
+
/** judge: N-call majority vote (opt-in). */
|
|
1690
|
+
readonly vote: "UNOTEST_JUDGE_VOTE";
|
|
1691
|
+
/** judge: vertex static bearer override (skips ADC). */
|
|
1692
|
+
readonly accessToken: "UNOTEST_JUDGE_ACCESS_TOKEN";
|
|
1693
|
+
/** judge: Claude Code binary override. */
|
|
1694
|
+
readonly claudeBin: "UNOTEST_JUDGE_CLAUDE_BIN";
|
|
1695
|
+
/** judge: bind address. */
|
|
1696
|
+
readonly host: "UNOTEST_JUDGE_HOST";
|
|
1697
|
+
readonly port: "UNOTEST_JUDGE_PORT";
|
|
1698
|
+
/** judge: silent | error | warn | info | debug. Falls back to the
|
|
1699
|
+
* UNOTEST_LOG_LEVEL @unotest/web already reads, so one variable can
|
|
1700
|
+
* cover both halves of a run. */
|
|
1701
|
+
readonly logLevel: "UNOTEST_JUDGE_LOG_LEVEL";
|
|
1702
|
+
/** judge: skip the startup credential probe. Escape hatch for a closed
|
|
1703
|
+
* network where the free probe endpoint is unreachable but the model
|
|
1704
|
+
* endpoint is not. */
|
|
1705
|
+
readonly skipPreflight: "UNOTEST_JUDGE_SKIP_PREFLIGHT";
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
export { type AddVariablePlan, type AddVariablePlanInput, type AppPathPickerSpec, type AppServerEvent, type AuthoringRunRequest, BLOBS_DIR, type BreakpointEntry, type BreakpointsFile, COLLECTIONS_SUBDIR, COLLECTION_NAME_FORBIDDEN_RE, COMMANDS_FILE, type CheckSeverity, type CollectionMeta, type CollectionRunArtifact, type CollectionRunFinishedEvent, type CollectionRunRequest, type CollectionRunStartedEvent, type CollectionRunTab, type CollectionScenarioFinishedEvent, type CollectionScenarioStartedEvent, type CollectionTab, DAY_INDEX_FILE, type DbgCommand, type DbgCommandAbort, type DbgCommandClearBp, type DbgCommandContinue, type DbgCommandKind, type DbgCommandPause, type DbgCommandPickerStart, type DbgCommandPickerStop, type DbgCommandProbe, type DbgCommandRecord, type DbgCommandSetBp, type DbgCommandSnapshot, type DbgCommandStep, type DbgCommandWheel, type DebugCapabilities, type DoctorCheck, type DoctorContext, type DslDiagnostic, type DslValidateContext, type DslVocabArg, type DslVocabCategory, type DslVocabEntry, E2E_SUBDIR, ENV_FILE, EXPECT_FAIL_ANNOTATION, type EnvChangedMessage, type EnvFile, type EnvUpdate, type EnvVar, type ErrorMessage, type FailureBundleWrittenEvent, type FsBreakpointsChangedMessage, type FsCollectionRunStepMessage, type FsCollectionsChangedMessage, type FsHelpersChangedMessage, type FsRunFinishedMessage, type FsRunStartedMessage, type FsRunStepMessage, type FsScenariosChangedMessage, HEARTBEAT_FILE, HELPERS_SUBDIR, type HelperMeta, type HelperTab, type HostRequirement, type IDslLanguageService, type ILaunchedProcess, type IProcessLauncher, type IRunnerAdapter, InvalidBlobHashError, JUDGE_ENV, JUDGE_ROUTES, type JudgeErrorResponse, type JudgeHealthResponse, type JudgeRequest, type JudgeVerdict, type JudgeVerdictEvent, LOCK_FILE, LOG_FILE, type LaunchSpec, type LocatorPickedEvent, type LockFile, type LogLineMessage, type Matcher, type OverviewTab, PICKER_SNAPSHOT_FILE, type PausedEvent, type PickerMode, type ProbeMatch, type ProbePinned, type ProbeResult, type ProbeResultEvent, RUNNER_CONFIG_KEYS, RUNS_SUBDIR, RUNTIME_FILE, RUN_INDEX_SCHEMA_VERSION, RUN_MANIFEST_FILE, RUN_SOURCES_FILE, type RecordedActionKind, type RegexLiteral, type ResumedEvent, type RunArtifact, type RunFinishedEvent, type RunId, type RunIndexEntry, type RunIndexHeader, type RunKind, type RunManifest, type RunMeta, type RunOutcome, type RunRequest, type RunSources, type RunStartedEvent, type RunStatus, RunnerAdapterNotFoundError, RunnerNotConfiguredError, type RuntimeState, type RuntimeStateFile, SCENARIOS_INDEX_DIR, SCENARIOS_LATEST_FILE, SCENARIO_RECENT_WINDOW, SECRETS_FILE, SEGMENT_NAME_FORBIDDEN_RE, SNAPSHOTS_SUBDIR, STDERR_FILE, STDOUT_FILE, STEPS_FILE, type ScenarioAnnotations, type ScenarioLatestEntry, type ScenarioMeta, type ScenarioRunRequest, type ScenarioRunTab, type ScenarioTab, type ScenariosLatest, type ScenariosPayload, type ScreenshotEvent, type SnapshotTab, type StepFailEvent, type StepOkEvent, type StepStartedEvent, TERMINAL_RUNTIME_STATES, TERMINAL_WS_EVENT, type TabKind, type TabKindName, type TerminalClientMessage, type TerminalCloseMessage, type TerminalDataMessage, type TerminalErrorMessage, type TerminalExitMessage, type TerminalKind, type TerminalOutputMessage, type TerminalResizeMessage, type TerminalServerMessage, type TerminalSpawnMessage, type ToolCallEvent, type ToolResultEvent, UNOTEST_DIR, UnplaceableRunIdError, UnsupportedRunKindError, type VariableCategory, type VariableKind, type VariablePlanError, type WheelChangedEvent, type WsMessage, type WsMessageKind, activeEnvName, blobPathFor, blobRelPathFor, blobRelSegmentsFor, blobsRootFor, categorizeVariable, debugDirFor, debuggerFileFor, deleteShadowWarning, envFileFor, envKeys, envLayerFilesFor, envNamesFromDirListing, foldScenarioRun, insertEnvVar, isAnnotationLine, isExternalVarName, isFailingStatus, isRegexLiteral, isRunnerConfigKey, isRunsDirName, isTerminalRuntimeState, makeRunId, parseAppServerEvent, parseEnvContent, parseScenarioAnnotations, planAddVariable, projectRunDirFor, projectRunsRoot, regexLiteral, removeEnvVar, requireRunDirFor, runDirFor, runIdStartedAt, runsDirFor, sanitizeRunIdSegment, scenarioIndexFileName, scenarioRefFromFileName, secretsFileFor, secretsLayerFilesFor, serializeEnvValue, shardDaysDescending, shardDirFor, shardPathForRunId, shardPathForTimestamp, testDirFor, validateCollectionName, validateSegmentName };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x445962=_0x464d;(function(_0x245776,_0x3142d1){const _0x471db5={_0x5ee85c:0x229,_0x144b9e:0x231,_0x3e9737:0x230,_0x460565:0x1e2,_0x4c7597:0x22a,_0x482917:0x22d,_0x15f094:0x1ce},_0x1f4bb1=_0x464d,_0x576142=_0x245776();while(!![]){try{const _0x480820=-parseInt(_0x1f4bb1(0x1f8))/0x1+-parseInt(_0x1f4bb1(0x1f4))/0x2+-parseInt(_0x1f4bb1(_0x471db5._0x5ee85c))/0x3*(parseInt(_0x1f4bb1(0x23b))/0x4)+-parseInt(_0x1f4bb1(_0x471db5._0x144b9e))/0x5*(-parseInt(_0x1f4bb1(_0x471db5._0x3e9737))/0x6)+-parseInt(_0x1f4bb1(_0x471db5._0x460565))/0x7*(-parseInt(_0x1f4bb1(0x1db))/0x8)+parseInt(_0x1f4bb1(_0x471db5._0x4c7597))/0x9+parseInt(_0x1f4bb1(_0x471db5._0x482917))/0xa*(parseInt(_0x1f4bb1(_0x471db5._0x15f094))/0xb);if(_0x480820===_0x3142d1)break;else _0x576142['push'](_0x576142['shift']());}catch(_0x13969b){_0x576142['push'](_0x576142['shift']());}}}(_0x145c,0xe4aa3));var __defProp=Object[_0x445962(0x253)],__name=(_0x53742a,_0x1395e9)=>__defProp(_0x53742a,_0x445962(0x23e),{'value':_0x1395e9,'configurable':!![]});function parseAppServerEvent(_0x318ca5){const _0x25b0c9={_0x24a26c:0x22f,_0x5d47ca:0x1d7,_0x445fd2:0x226},_0x311575=_0x445962,_0x18d94a=_0x318ca5['trim']();if(!_0x18d94a[_0x311575(_0x25b0c9._0x24a26c)]('{'))return null;try{const _0x20d5aa=JSON[_0x311575(0x252)](_0x18d94a);if(_0x20d5aa['kind']===_0x311575(_0x25b0c9._0x5d47ca)||_0x20d5aa['kind']===_0x311575(0x261)||_0x20d5aa['kind']===_0x311575(_0x25b0c9._0x445fd2))return _0x20d5aa;return null;}catch{return null;}}__name(parseAppServerEvent,_0x445962(0x254));var UNOTEST_DIR=_0x445962(0x1e1),E2E_SUBDIR='e2e',HELPERS_SUBDIR=_0x445962(0x1d6),COLLECTIONS_SUBDIR=_0x445962(0x25c),RUNS_SUBDIR=_0x445962(0x20d),SNAPSHOTS_SUBDIR=_0x445962(0x1cb);function testDirFor(_0x3df7fa){return''+E2E_SUBDIR+_0x3df7fa;}__name(testDirFor,_0x445962(0x1e8));function runsDirFor(_0x3ce2e1,_0x52c22c){return''+RUNS_SUBDIR+_0x3ce2e1+(_0x52c22c?'.'+_0x52c22c:'');}__name(runsDirFor,_0x445962(0x246));function isRunsDirName(_0x951aee){const _0x3e8908={_0x56ff70:0x22f},_0x463e43=_0x445962;return _0x951aee===RUNS_SUBDIR||_0x951aee[_0x463e43(0x22f)](RUNS_SUBDIR+'-')||_0x951aee[_0x463e43(_0x3e8908._0x56ff70)](RUNS_SUBDIR+'.');}__name(isRunsDirName,'isRunsDirName');function debugDirFor(_0x13f823){return'.debug'+_0x13f823;}__name(debugDirFor,_0x445962(0x24d));function debuggerFileFor(_0x94b1c4){const _0x11fb41={_0x50b88a:0x26b},_0x235af8=_0x445962;return UNOTEST_DIR+_0x235af8(_0x11fb41._0x50b88a)+_0x94b1c4+'.json';}__name(debuggerFileFor,_0x445962(0x250));var LOCK_FILE='.viewer.lock',LOG_FILE=_0x445962(0x1fc),STEPS_FILE=_0x445962(0x21f),HEARTBEAT_FILE=_0x445962(0x203),DAY_INDEX_FILE=_0x445962(0x223),SCENARIOS_INDEX_DIR=_0x445962(0x20c),SCENARIOS_LATEST_FILE='_latest.json',STDOUT_FILE='stdout.log',STDERR_FILE=_0x445962(0x212),COMMANDS_FILE=_0x445962(0x25a),RUNTIME_FILE=_0x445962(0x26e),PICKER_SNAPSHOT_FILE='picker-snapshot.txt',ENV_FILE=_0x445962(0x1e4),SECRETS_FILE='unotest/.secrets';function envFileFor(_0xfe7a4,_0x3e2e10){return''+ENV_FILE+_0xfe7a4+(_0x3e2e10?'.'+_0x3e2e10:'');}__name(envFileFor,_0x445962(0x1c7));function secretsFileFor(_0x46b512,_0x3c41f6){return''+SECRETS_FILE+_0x46b512+(_0x3c41f6?'.'+_0x3c41f6:'');}__name(secretsFileFor,'secretsFileFor');function envLayerFilesFor(_0x167699,_0x5e6f21){return layersFor(ENV_FILE,_0x167699,_0x5e6f21);}__name(envLayerFilesFor,'envLayerFilesFor');function secretsLayerFilesFor(_0x2753a3,_0x195ef4){return layersFor(SECRETS_FILE,_0x2753a3,_0x195ef4);}__name(secretsLayerFilesFor,_0x445962(0x1eb));function layersFor(_0x271994,_0xd351a3,_0x801cd1){const _0x4816c0={_0x456560:0x1cc},_0x5a2c90=_0x445962,_0x268d36=[_0x271994];if(_0xd351a3)_0x268d36[_0x5a2c90(_0x4816c0._0x456560)](''+_0x271994+_0xd351a3);if(_0x801cd1){_0x268d36['push'](_0x271994+'.'+_0x801cd1);if(_0xd351a3)_0x268d36[_0x5a2c90(_0x4816c0._0x456560)](''+_0x271994+_0xd351a3+'.'+_0x801cd1);}return _0x268d36;}__name(layersFor,'layersFor');function activeEnvName(_0x5d16da){const _0x914f08={_0x30ae7a:0x214,_0x242e0f:0x206},_0x278d3d=_0x445962,_0x2f3e3c=_0x5d16da[_0x278d3d(_0x914f08._0x30ae7a)]?.[_0x278d3d(_0x914f08._0x242e0f)]();return _0x2f3e3c?_0x2f3e3c:void 0x0;}__name(activeEnvName,'activeEnvName');var RESERVED_ENV_NAMES=new Set([_0x445962(0x267),_0x445962(0x22e),_0x445962(0x241)]);function envNamesFromDirListing(_0x42b069,_0x51ba4e){const _0x115833={_0x1dfead:0x23f,_0x46c85f:0x24a,_0x5718c4:0x216,_0x4aac60:0x265},_0x107b1d=_0x445962,_0x4dbe64=[_0x107b1d(_0x115833._0x1dfead),'.secrets'][_0x107b1d(_0x115833._0x46c85f)](_0x26057a=>_0x51ba4e?[_0x26057a,''+_0x26057a+_0x51ba4e]:[_0x26057a]),_0x42dfa1=new Set();for(const _0x10819 of _0x42b069){for(const _0x47da75 of _0x4dbe64){const _0x3ee6f3=_0x47da75+'.';if(!_0x10819[_0x107b1d(0x22f)](_0x3ee6f3))continue;const _0x48b640=_0x10819['slice'](_0x3ee6f3[_0x107b1d(_0x115833._0x5718c4)]);if(!_0x48b640||_0x48b640[_0x107b1d(_0x115833._0x4aac60)]('/'))continue;if(RESERVED_ENV_NAMES['has'](_0x48b640))continue;_0x42dfa1[_0x107b1d(0x1e3)](_0x48b640);}}return[..._0x42dfa1]['sort']();}__name(envNamesFromDirListing,_0x445962(0x269));function isRegexLiteral(_0x56a771){const _0x5a5312={_0x1423da:0x248,_0x5775dc:0x217,_0x17d3c5:0x217},_0x4990c5=_0x445962;return typeof _0x56a771===_0x4990c5(_0x5a5312._0x1423da)&&_0x56a771!==null&&_0x56a771['kind']===_0x4990c5(0x262)&&typeof _0x56a771[_0x4990c5(0x22c)]===_0x4990c5(_0x5a5312._0x5775dc)&&typeof _0x56a771[_0x4990c5(0x215)]===_0x4990c5(_0x5a5312._0x17d3c5);}__name(isRegexLiteral,_0x445962(0x1d3));function regexLiteral(_0x2b7ad9,_0x4aa789=''){const _0xaff51c=_0x445962;return{'kind':_0xaff51c(0x262),'source':_0x2b7ad9,'flags':_0x4aa789};}__name(regexLiteral,_0x445962(0x204));var RAND_BYTES=0x6;function makeRunId(_0x6ad339){const _0x9ba913={_0x28c0f2:0x1fd,_0x12c9c7:0x1f9},_0x150fa0=_0x445962,_0x58e79c=sanitizeRunIdSegment(_0x6ad339),_0x435410=Date['now']()[_0x150fa0(_0x9ba913._0x28c0f2)](0x24),_0x2b8d18=new Uint8Array(RAND_BYTES);globalThis[_0x150fa0(0x1f1)][_0x150fa0(0x21a)](_0x2b8d18);let _0x245c36='';for(let _0x1f384e=0x0;_0x1f384e<_0x2b8d18[_0x150fa0(0x216)];_0x1f384e++){_0x245c36+=_0x2b8d18[_0x1f384e][_0x150fa0(_0x9ba913._0x28c0f2)](0x10)[_0x150fa0(_0x9ba913._0x12c9c7)](0x2,'0');}return _0x58e79c+'-'+_0x435410+'-'+_0x245c36;}__name(makeRunId,_0x445962(0x240));function sanitizeRunIdSegment(_0x4ef46c){const _0x2fb02d={_0x5a522d:0x216},_0x465f21=_0x445962,_0x52172e=_0x4ef46c[_0x465f21(0x1d5)](/[^a-zA-Z0-9_-]+/g,'-')[_0x465f21(0x1d5)](/-+/g,'-')['replace'](/^-|-$/g,'');return _0x52172e[_0x465f21(_0x2fb02d._0x5a522d)]>0x0?_0x52172e:'run';}__name(sanitizeRunIdSegment,_0x445962(0x224));var RANDOM_SUFFIX_RE=/^[0-9a-f]{6,}$/,MIN_PLAUSIBLE_MS=Date[_0x445962(0x207)](0x7e4,0x0,0x1),MAX_PLAUSIBLE_MS=Date[_0x445962(0x207)](0x834,0x0,0x1);function runIdStartedAt(_0x4fab88){const _0x1c9d89={_0x3f7beb:0x216,_0x10aca7:0x216,_0x272f73:0x220},_0x4ca1ad=_0x445962,_0x192126=_0x4fab88[_0x4ca1ad(0x249)]('-');if(_0x192126[_0x4ca1ad(_0x1c9d89._0x3f7beb)]<0x3)return null;const _0x35c450=_0x192126[_0x192126[_0x4ca1ad(_0x1c9d89._0x10aca7)]-0x1];if(!RANDOM_SUFFIX_RE[_0x4ca1ad(_0x1c9d89._0x272f73)](_0x35c450))return null;const _0x50a5ae=_0x192126[_0x192126[_0x4ca1ad(0x216)]-0x2];if(!/^[0-9a-z]+$/[_0x4ca1ad(0x220)](_0x50a5ae))return null;const _0x3a5c15=parseInt(_0x50a5ae,0x24);if(!Number[_0x4ca1ad(0x1cd)](_0x3a5c15))return null;if(_0x3a5c15<MIN_PLAUSIBLE_MS||_0x3a5c15>=MAX_PLAUSIBLE_MS)return null;return _0x3a5c15;}__name(runIdStartedAt,_0x445962(0x1fb));function shardPathForTimestamp(_0xc22bcd){const _0x448c94={_0x257eb5:0x1d9},_0xbec3ac=_0x445962,_0x1d69be=new Date(_0xc22bcd),_0x41ab71=String(_0x1d69be[_0xbec3ac(0x225)]())['padStart'](0x4,'0'),_0xce8e06=String(_0x1d69be[_0xbec3ac(_0x448c94._0x257eb5)]()+0x1)['padStart'](0x2,'0'),_0x8ba227=String(_0x1d69be['getUTCDate']())['padStart'](0x2,'0');return _0x41ab71+'/'+_0xce8e06+'/'+_0x8ba227;}__name(shardPathForTimestamp,_0x445962(0x24f));function shardPathForRunId(_0x1e2eb1){const _0x19092c=runIdStartedAt(_0x1e2eb1);return _0x19092c===null?null:shardPathForTimestamp(_0x19092c);}function _0x145c(){const _0xd5ec0f=['vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','lY5Kzwj1z2DLCG','vu5pvevtvf9mt0nbteu','zhvYyxrPB25nCW','CNvUDgLTzs5QC29U','zw52rMLSzuzVCG','AxngywLSAw5Nu3rHDhvZ','vu5pvevtvf9orvrxt1jl','l2P1zgDL','lNnUyxbZAg90CW','ChvZAa','AxngAw5PDgu','mZe5BvbRwKnV','zw5KC1DPDgG','Dw5RBM93BI1YDw5UzxiTA2v5','zMfPBgLUz1nPBMnL','CgfYC2vfBNzdB250zw50','AxnszwDLEeXPDgvYywW','C2nLBMfYAw9szwzgCM9TrMLSzu5HBwu','CMvWBgfJzq','x2HLBhbLCNm','yxbWlxnLCNzLCJPYzwfKEq','C2vJCMv0C0nVBNrLBNq','z2v0vvrdtw9UDgG','C2vJCMv0','ndC4nJu3nLvJCvPLqG','yMXVyNnsB290rM9Y','qxbW','igfSCMvHzhKGzxHPC3rZigLUia','C3rHCNrLzef0','CNvUBMvYici','Dw5VDgvZDa','n1L6r3nSrq','ywrK','Dw5VDgvZDc8Uzw52','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','vu5pvevtvf9cuK9xu0vs','DgvZDerPCKzVCG','AgfZ','BwfUAwzLC3qUANnVBG','C2vJCMv0C0XHEwvYrMLSzxngB3i','vu5pvevtvf9iruferuq','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','CgXHBKfKzfzHCMLHyMXL','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','vu5pvevtvf9tte9xx01p','y3j5ChrV','yxnZAwDUBwvUDevUDhjPzxm','yMXVyLjLBfnLz21LBNrZrM9Y','mZaWotq2v2X1ENjc','C2HHCMreAxjgB3i','CNvUBMvY','yMXVyIbOyxnOig11C3qGyMuGBg93zxjJyxnLigHLEcWGz290oIa','mZuXnJKXwfHgvu5u','CgfKu3rHCNq','y2f0zwDVCML6zvzHCMLHyMXL','CNvUswrtDgfYDgvKqxq','lNzPzxDLCI5SB2C','Dg9tDhjPBMC','vu5pvevtvf9dqunirv9esvi','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','zMXVB3i','C2nLBMfYAw9jBMrLEezPBgvoyw1L','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','AgvHCNrIzwf0','CMvNzxHmAxrLCMfS','Aw50zxjYDxb0zwq','DhjPBq','vvrd','C2vJCMv0CW','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','Axntzwn0Aw9UrgL2AwrLCG','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','x3nJzw5HCMLVCW','lNj1BNm','iYaTls0G','zMLSDgvY','lMPZB25S','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','C3rKzxjYlMXVzW','ywjVCNrLza','vu5pvevtvf9ftLy','zMXHz3m','BgvUz3rO','C3rYAw5N','iI4G','vu5pvevtvf9erujvr19nqvHFqLLurvm','z2v0uMfUzg9TvMfSDwvZ','Bwf0y2G','ic0Tlq','C291CMnLCY5QC29U','zM9SzfnJzw5HCMLVuNvU','C3rLChmUANnVBMW','DgvZDa','C3bSAwnL','AxnfEhrLCM5HBfzHCK5HBwu','x2rHEs5QC29UBa','C2fUAxrPEMvsDw5jzfnLz21LBNq','z2v0vvrdrNvSBfLLyxi','yxbWlxnLCNzLCJPLCNjVCG','rK9sq0vFq09mt1i','AM9PBG','m3bXEwzivW','mtqXmZmZm01uC1jusG','y29TCgXLDgvK','C291CMnL','mJG1otb5A21UwKi','C2fTCgXL','C3rHCNrZv2L0Aa','ndGXmZHMrNPVze8','mZK1Bwrvv0XR','C3bSAxrmAw5LCW','zMfPBgvK','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','refuqujbu0vFvvjm','C2vYAwfSAxPLrw52vMfSDwu','AxnsDw5UzxjdB25MAwDlzxK','vu5pvevtvf9erujvr19lruvqx0nbteXt','ChjVAMvJDfj1BKrPCKzVCG','mtmZmJq4CwDKAwPV','zhvWBgLJyxrL','AxnbC3nPz25Tzw50t2y','BMfTzq','lMvUDG','BwfRzvj1BKLK','DgvTCgXHDgu','vu5pvevtvf9usu1fwK9orq','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','C2HHCMreyxLZrgvZy2vUzgLUzW','C2HHCMrqyxrOrM9YuNvUswq','CNvUC0rPCKzVCG','C2XPy2u','B2jQzwn0','C3bSAxq','zMXHDe1HCa','C3rHDhvZ','CNvUswq','zgvIDwDeAxjgB3i','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','C2HHCMrqyxrOrM9YvgLTzxn0yw1W','zgvIDwDNzxjgAwXLrM9Y','vw5WBgfJzwfIBgvsDw5jzevYCM9Y','CgfYC2u','zgvMAw5LuhjVCgvYDhK','CgfYC2vbChbtzxj2zxjfDMvUDa','yxbW','yMXVyLbHDgHgB3i','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','AxnbC3nPz25Tzw50tgLUzq','zw52q29UDgvUDa','y29TBwfUzhmUANnVBMW','BxvZDcbUB3qGyMuGiI4Iig9YiciUlIi','x2nVBgXLy3rPB25Z','BxvZDcbIzsbHihn0CMLUzW','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','DMfSAwrHDgvgC1nHzMvoyw1L','Dg9mB3DLCKnHC2u','yxbWlxnLCNzLCJPYzxvZzwq','CMvNzxG','CgfYC2vty2vUyxjPB0fUBM90yxrPB25Z','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','Aw5JBhvKzxm','CMvZzxj2zwrvBMrLCNnJB3jL','zxHHBxbSzq','zw52','zw52tMfTzxngCM9TrgLYtgLZDgLUzW'];_0x145c=function(){return _0xd5ec0f;};return _0x145c();}__name(shardPathForRunId,_0x445962(0x245));function runDirFor(_0x21af98,_0x3185e5){const _0x1116fc=shardPathForRunId(_0x3185e5);return _0x1116fc===null?null:_0x21af98+'/'+_0x1116fc+'/'+_0x3185e5;}__name(runDirFor,'runDirFor');var UnplaceableRunIdError=class extends Error{static{__name(this,_0x445962(0x251));}constructor(_0x101f4a){const _0x2f3375=_0x445962;super('runId\x20carries\x20no\x20timestamp,\x20cannot\x20place\x20it\x20in\x20a\x20shard:\x20'+_0x101f4a),this[_0x2f3375(0x23e)]=_0x2f3375(0x251);}};function requireRunDirFor(_0x170620,_0x48841b){const _0x259a66=runDirFor(_0x170620,_0x48841b);if(_0x259a66===null)throw new UnplaceableRunIdError(_0x48841b);return _0x259a66;}__name(requireRunDirFor,'requireRunDirFor');function projectRunsRoot(_0x3b0cc0='',_0xa17001){return UNOTEST_DIR+'/'+runsDirFor(_0x3b0cc0,_0xa17001);}__name(projectRunsRoot,'projectRunsRoot');function projectRunDirFor(_0x3c5af5,_0x247791='',_0x2ca999){return requireRunDirFor(projectRunsRoot(_0x247791,_0x2ca999),_0x3c5af5);}__name(projectRunDirFor,_0x445962(0x23a));function shardDirFor(_0x358c5e,_0x5dae54){return _0x358c5e+'/'+shardPathForTimestamp(_0x5dae54);}__name(shardDirFor,_0x445962(0x1f5));function*shardDaysDescending(_0x43882e,_0x2564bb,_0x545946){const _0x410ad1=_0x445962,_0x5578cc=0x5265c00;let _0x4f8237=Math[_0x410ad1(0x200)](_0x2564bb/_0x5578cc)*_0x5578cc;for(let _0x1323a8=0x0;_0x1323a8<_0x545946;_0x1323a8++){yield shardDirFor(_0x43882e,_0x4f8237),_0x4f8237-=_0x5578cc;}}__name(shardDaysDescending,_0x445962(0x244));var RUN_INDEX_SCHEMA_VERSION=0x2,SCENARIO_RECENT_WINDOW=0xc;function isFailingStatus(_0x5bb357){const _0x2da2cb={_0x1ef271:0x205},_0x26da8f=_0x445962;return _0x5bb357==='failed'||_0x5bb357===_0x26da8f(_0x2da2cb._0x1ef271);}__name(isFailingStatus,_0x445962(0x1c8));function foldScenarioRun(_0x3bdeac,_0xdcdad4){const _0x1ad344={_0x4320dd:0x24c,_0x1e1b66:0x24b,_0x3b89d8:0x1df,_0xe77f58:0x24b,_0x22d2cc:0x1d1},_0x26b258=_0x445962,_0x2bef50={'lastRunId':_0xdcdad4[_0x26b258(_0x1ad344._0x4320dd)],'lastStatus':_0xdcdad4[_0x26b258(_0x1ad344._0x1e1b66)],'lastAt':_0xdcdad4[_0x26b258(_0x1ad344._0x3b89d8)],'lastDurationMs':_0xdcdad4[_0x26b258(0x26d)],'recent':[..._0x3bdeac?.['recent']??[],_0xdcdad4[_0x26b258(0x24b)]]['slice'](-SCENARIO_RECENT_WINDOW)};if(!isFailingStatus(_0xdcdad4[_0x26b258(_0x1ad344._0xe77f58)]))return{..._0x2bef50,'failStreak':0x0,'failingSince':null};const _0x36dee6=(_0x3bdeac?.['failStreak']??0x0)+0x1;return{..._0x2bef50,'failStreak':_0x36dee6,'failingSince':_0x36dee6===0x1?_0xdcdad4['startedAt']:_0x3bdeac?.[_0x26b258(_0x1ad344._0x22d2cc)]??_0xdcdad4[_0x26b258(_0x1ad344._0x3b89d8)]};}__name(foldScenarioRun,_0x445962(0x21e));function scenarioIndexFileName(_0x5b2938){const _0x450f32={_0xbd7d6e:0x210},_0x17d3cd=_0x445962;return encodeURIComponent(_0x5b2938)+_0x17d3cd(_0x450f32._0xbd7d6e);}__name(scenarioIndexFileName,_0x445962(0x201));function scenarioRefFromFileName(_0x168205){const _0x4c201a={_0x36ebb7:0x210},_0x349f2a=_0x445962;if(!_0x168205[_0x349f2a(0x1cf)](_0x349f2a(_0x4c201a._0x36ebb7)))return null;try{return decodeURIComponent(_0x168205[_0x349f2a(0x247)](0x0,-'.jsonl'['length']));}catch{return null;}}__name(scenarioRefFromFileName,_0x445962(0x1d4));var BLOBS_DIR='_blobs',GENERATION_SEP='~',HASH_RE=/^[0-9a-f]{8,}$/,InvalidBlobHashError=class extends Error{static{__name(this,'InvalidBlobHashError');}constructor(_0x5e9009){const _0x5cbc7f={_0x12717b:0x1f7},_0x14b720=_0x445962;super(_0x14b720(_0x5cbc7f._0x12717b)+_0x5e9009),this['name']='InvalidBlobHashError';}};function blobPathFor(_0x95fc64,_0x46edd4,_0x311fb8,_0x379664=0x0){return _0x95fc64+'/'+blobRelPathFor(_0x46edd4,_0x311fb8,_0x379664);}__name(blobPathFor,_0x445962(0x256));function blobRelSegmentsFor(_0x812d52,_0x1ce514,_0x4b995c=0x0){const _0x59236e={_0x549d24:0x220,_0x365aa7:0x247},_0x5c7f3d=_0x445962;if(!HASH_RE[_0x5c7f3d(_0x59236e._0x549d24)](_0x812d52))throw new InvalidBlobHashError(_0x812d52);const _0x1647b0=_0x4b995c>0x0?''+GENERATION_SEP+_0x4b995c:'';return[BLOBS_DIR,_0x812d52[_0x5c7f3d(_0x59236e._0x365aa7)](0x0,0x2),_0x812d52[_0x5c7f3d(0x247)](0x2,0x4),''+_0x812d52+_0x1647b0+'.'+_0x1ce514];}__name(blobRelSegmentsFor,_0x445962(0x1f3));function blobRelPathFor(_0x3dcb46,_0x46e3d6,_0x4c060d=0x0){const _0x8b4924=_0x445962;return blobRelSegmentsFor(_0x3dcb46,_0x46e3d6,_0x4c060d)[_0x8b4924(0x228)]('/');}__name(blobRelPathFor,'blobRelPathFor');function blobsRootFor(_0x8254dc){return _0x8254dc+'/'+BLOBS_DIR;}__name(blobsRootFor,_0x445962(0x1dc));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0xad0e0f,_0x216fae){const _0x52f338={_0x294b5f:0x217,_0x5cc179:0x206,_0x50bf0f:0x25b,_0x512550:0x257},_0x44232c=_0x445962;if(typeof _0xad0e0f!==_0x44232c(_0x52f338._0x294b5f))return _0x44232c(0x25d);const _0x12232a=_0xad0e0f[_0x44232c(_0x52f338._0x5cc179)]();if(_0x12232a[_0x44232c(0x216)]===0x0)return'must\x20not\x20be\x20empty';if(_0x12232a==='.'||_0x12232a==='..')return _0x44232c(_0x52f338._0x50bf0f);if(_0x12232a['startsWith']('.'))return _0x44232c(_0x52f338._0x512550);if(_0x216fae?.[_0x44232c(0x266)]&&_0x12232a[_0x44232c(0x22f)]('_'))return _0x44232c(0x202);if(FS_UNSAFE_NAME_RE[_0x44232c(0x220)](_0x12232a))return _0x44232c(0x264);return null;}__name(validateFsSafeName,_0x445962(0x25f));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x28602f){return validateFsSafeName(_0x28602f);}__name(validateCollectionName,_0x445962(0x1e5));var RUN_MANIFEST_FILE=_0x445962(0x1ea),RUN_SOURCES_FILE=_0x445962(0x21d),UnsupportedRunKindError=class extends Error{static{__name(this,_0x445962(0x26a));}constructor(_0x148d0d,_0x8a63d2){const _0x4eb53b={_0x3888dd:0x26a},_0xec14cf=_0x445962;super(_0xec14cf(0x1e0)+_0x8a63d2+_0xec14cf(0x24e)+_0x148d0d+'\x22'),this[_0xec14cf(0x23e)]=_0xec14cf(_0x4eb53b._0x3888dd);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0x445962(0x1ff));}constructor(_0x5d06ee,_0x49c7ee){const _0x20380a={_0x5ea212:0x25e},_0x34af83=_0x445962;super(_0x34af83(_0x20380a._0x5ea212)+_0x5d06ee+_0x34af83(0x218)+_0x49c7ee),this['name']=_0x34af83(0x1ff);}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0x445962(0x20b));}constructor(_0x21c19b){const _0x49fefb={_0x2592c7:0x20b},_0x376d66=_0x445962;super(_0x21c19b),this[_0x376d66(0x23e)]=_0x376d66(_0x49fefb._0x2592c7);}},EXPECT_FAIL_ANNOTATION='expect-fail',ANNOTATION_RE=/^\s*\/\/\s*@([a-z0-9-]+)\s*$/;function isAnnotationLine(_0x58eb9c){return ANNOTATION_RE['test'](_0x58eb9c);}__name(isAnnotationLine,'isAnnotationLine');function parseScenarioAnnotations(_0x6626d0){const _0x281f5e={_0x3f84e6:0x206,_0x3bafc3:0x21b,_0x332ec7:0x1e9},_0x51ebc9=_0x445962,_0x501cd9=new Set();for(const _0x1af030 of _0x6626d0['split'](/\r?\n/)){const _0xa06105=_0x1af030[_0x51ebc9(_0x281f5e._0x3f84e6)]();if(_0xa06105==='')continue;if(!_0xa06105[_0x51ebc9(0x22f)]('//'))break;const _0x7b0853=_0xa06105[_0x51ebc9(_0x281f5e._0x3bafc3)](ANNOTATION_RE);if(_0x7b0853)_0x501cd9['add'](_0x7b0853[0x1]);}return{'expectFail':_0x501cd9[_0x51ebc9(_0x281f5e._0x332ec7)](EXPECT_FAIL_ANNOTATION)};}__name(parseScenarioAnnotations,_0x445962(0x263));var SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x40f342){return validateFsSafeName(_0x40f342,{'reservedUnderscore':!![]});}__name(validateSegmentName,'validateSegmentName');var TERMINAL_WS_EVENT='terminal',RUNNER_CONFIG_KEYS=new Set([_0x445962(0x1e7),_0x445962(0x1ec),_0x445962(0x1f0),_0x445962(0x1e6),'UNOTEST_DEFAULT_NAVIGATION_TIMEOUT_MS','UNOTEST_POPUP_GRACE_MS',_0x445962(0x26c),_0x445962(0x242),'UNOTEST_LOG_LEVEL','UNOTEST_DEBUG','UNOTEST_DEBUG_DIR',_0x445962(0x219),_0x445962(0x211),_0x445962(0x1ef),_0x445962(0x239),_0x445962(0x1c9),'UNOTEST_CONSOLE',_0x445962(0x1fe),'NO_COLOR',_0x445962(0x227),_0x445962(0x236)]);function isRunnerConfigKey(_0x2922d7){const _0x55935a={_0x56f370:0x1e9},_0x4e82cf=_0x445962;return RUNNER_CONFIG_KEYS[_0x4e82cf(_0x55935a._0x56f370)](_0x2922d7);}__name(isRunnerConfigKey,_0x445962(0x238));function categorizeVariable(_0x1247c6){const _0x325368={_0x2f57df:0x1f6,_0x4d19d3:0x255},_0x32d2b1=_0x445962;if(_0x1247c6['source']==='secrets')return'secret';return isRunnerConfigKey(_0x1247c6[_0x32d2b1(0x23e)])?_0x32d2b1(_0x325368._0x2f57df):_0x32d2b1(_0x325368._0x4d19d3);}__name(categorizeVariable,_0x445962(0x1fa));function isExternalVarName(_0x3a40ca){return/^[A-Z][A-Z0-9_]*$/['test'](_0x3a40ca);}__name(isExternalVarName,_0x445962(0x222));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function*assignmentEntries(_0x3b84ec){const _0x1cbc22={_0x487fd2:0x206,_0x1eeed6:0x247,_0xacf1cf:0x220,_0xdcbdf9:0x247,_0xb1d4c4:0x206},_0x17b4b8=_0x445962;for(const _0x8e22e1 of _0x3b84ec[_0x17b4b8(0x249)](/\r?\n/)){const _0x4e651c=_0x8e22e1[_0x17b4b8(_0x1cbc22._0x487fd2)]();if(_0x4e651c===''||_0x4e651c['startsWith']('#'))continue;const _0x6d6cc3=_0x4e651c['indexOf']('=');if(_0x6d6cc3<=0x0)continue;const _0x33bd10=_0x4e651c[_0x17b4b8(_0x1cbc22._0x1eeed6)](0x0,_0x6d6cc3)['trim']();if(!ENV_KEY_RE[_0x17b4b8(_0x1cbc22._0xacf1cf)](_0x33bd10))continue;yield[_0x33bd10,_0x4e651c[_0x17b4b8(_0x1cbc22._0xdcbdf9)](_0x6d6cc3+0x1)[_0x17b4b8(_0x1cbc22._0xb1d4c4)]()];}}__name(assignmentEntries,_0x445962(0x1f2));function parseEnvContent(_0x3145cd){const _0x336c96=_0x445962,_0x29c2ed={};for(const [_0x1d2db3,_0xc05e2a]of assignmentEntries(_0x3145cd)){let _0x515ed9=_0xc05e2a;if(_0x515ed9[_0x336c96(0x216)]>=0x2){const _0x40670e=_0x515ed9[0x0],_0x14ce84=_0x515ed9[_0x515ed9['length']-0x1];(_0x40670e==='\x22'||_0x40670e==='\x27')&&_0x40670e===_0x14ce84&&(_0x515ed9=_0x515ed9[_0x336c96(0x247)](0x1,-0x1));}_0x29c2ed[_0x1d2db3]=_0x515ed9;}return _0x29c2ed;}__name(parseEnvContent,_0x445962(0x1d2));function serializeEnvValue(_0x4de119){const _0x42303a={_0xf03a41:0x1d5},_0x4e0a16=_0x445962;if(_0x4de119==='')return'';if(/[\s#"'=\\]|^[`]/[_0x4e0a16(0x220)](_0x4de119)||/[\n\r]/['test'](_0x4de119)){const _0x525045=_0x4de119[_0x4e0a16(0x1d5)](/\\/g,'\x5c\x5c')[_0x4e0a16(0x1d5)](/"/g,'\x5c\x22')[_0x4e0a16(_0x42303a._0xf03a41)](/\n/g,'\x5cn')[_0x4e0a16(0x1d5)](/\r/g,'\x5cr');return'\x22'+_0x525045+'\x22';}return _0x4de119;}__name(serializeEnvValue,_0x445962(0x237));function envKeys(_0x1b7c3d){const _0x21bb7d=new Set();for(const [_0x5bd69f]of assignmentEntries(_0x1b7c3d))_0x21bb7d['add'](_0x5bd69f);return _0x21bb7d;}__name(envKeys,'envKeys');function isSectionDivider(_0x23d843){const _0x3a6ac0={_0xce235d:0x22f,_0x213fd1:0x220},_0x4790ad=_0x445962,_0x2fa8dc=_0x23d843['trim']();return _0x2fa8dc[_0x4790ad(_0x3a6ac0._0xce235d)]('#')&&/---/[_0x4790ad(_0x3a6ac0._0x213fd1)](_0x2fa8dc);}__name(isSectionDivider,_0x445962(0x20a));function isAssignmentLine(_0x3d76e0){const _0xf87c4a={_0x5e1d25:0x206},_0x16a776=_0x445962,_0x1ab36d=_0x3d76e0[_0x16a776(_0xf87c4a._0x5e1d25)]();if(_0x1ab36d===''||_0x1ab36d['startsWith']('#'))return![];const _0x2000cb=_0x1ab36d['indexOf']('=');return _0x2000cb>0x0&&ENV_KEY_RE['test'](_0x1ab36d['slice'](0x0,_0x2000cb)['trim']());}__name(isAssignmentLine,_0x445962(0x258));function isAssignmentOf(_0xc53711,_0x3f8ee6){const _0x194ba4={_0x10e4cd:0x247},_0x1d4385=_0x445962,_0x3e66f2=_0xc53711[_0x1d4385(0x206)]();if(_0x3e66f2===''||_0x3e66f2[_0x1d4385(0x22f)]('#'))return![];const _0x197dcc=_0x3e66f2['indexOf']('=');if(_0x197dcc<=0x0)return![];return _0x3e66f2[_0x1d4385(_0x194ba4._0x10e4cd)](0x0,_0x197dcc)['trim']()===_0x3f8ee6;}__name(isAssignmentOf,_0x445962(0x23d));function splitLines(_0x8cb141){const _0x23dccf={_0x5de150:0x247},_0x5137f6=_0x445962,_0x534c21=_0x8cb141[_0x5137f6(0x1cf)]('\x0a'),_0x477412=_0x534c21?_0x8cb141[_0x5137f6(_0x23dccf._0x5de150)](0x0,-0x1):_0x8cb141;return{'lines':_0x477412===''?[]:_0x477412['split']('\x0a'),'trailingNewline':_0x534c21};}__name(splitLines,_0x445962(0x232));function joinLines(_0x9ab873,_0xb30aa5){const _0x5dbf70=_0x445962,_0x3cbf8f=_0x9ab873[_0x5dbf70(0x228)]('\x0a');return _0xb30aa5||_0x3cbf8f===''?_0x3cbf8f+'\x0a':_0x3cbf8f;}__name(joinLines,'joinLines');function insertEnvVar(_0x537a54,_0x1cbca8,_0x51931b,_0x18588b){const _0x4730ba={_0x1b3041:0x216,_0x1488d8:0x206,_0x32b940:0x221,_0x3a7852:0x1cc,_0x43bd09:0x21c,_0x374ea1:0x1cc},_0x422f59=_0x445962,_0x216bf6=_0x1cbca8+'='+serializeEnvValue(_0x51931b),{lines:_0x39536c,trailingNewline:_0x4167a4}=splitLines(_0x537a54);if(_0x18588b){const _0x47c567=new RegExp('\x5cb'+_0x18588b['toLowerCase']()+'\x5cb'),_0x323702=_0x39536c['findIndex'](_0x210902=>isSectionDivider(_0x210902)&&_0x47c567[_0x422f59(0x220)](_0x210902[_0x422f59(0x260)]()));if(_0x323702!==-0x1){let _0x141dd8=_0x39536c[_0x422f59(0x216)];for(let _0x1bf99a=_0x323702+0x1;_0x1bf99a<_0x39536c[_0x422f59(_0x4730ba._0x1b3041)];_0x1bf99a++){if(isSectionDivider(_0x39536c[_0x1bf99a])){_0x141dd8=_0x1bf99a;break;}}let _0x49f83f=-0x1,_0x47ef1b=-0x1;for(let _0x3b7116=_0x323702+0x1;_0x3b7116<_0x141dd8;_0x3b7116++){if(_0x39536c[_0x3b7116][_0x422f59(_0x4730ba._0x1488d8)]()!=='')_0x47ef1b=_0x3b7116;if(isAssignmentLine(_0x39536c[_0x3b7116]))_0x49f83f=_0x3b7116;}const _0x3cfda4=_0x49f83f>=0x0?_0x49f83f:_0x47ef1b,_0x139844=_0x3cfda4>=0x0?_0x3cfda4+0x1:_0x323702+0x1;return _0x39536c[_0x422f59(_0x4730ba._0x32b940)](_0x139844,0x0,_0x216bf6),joinLines(_0x39536c,_0x4167a4||_0x39536c[_0x422f59(0x216)]>0x0);}if(_0x39536c[_0x422f59(0x216)]>0x0)_0x39536c[_0x422f59(0x1cc)]('');return _0x39536c[_0x422f59(_0x4730ba._0x3a7852)](_0x422f59(0x20e)+_0x18588b+_0x422f59(_0x4730ba._0x43bd09),_0x216bf6),joinLines(_0x39536c,!![]);}return _0x39536c[_0x422f59(_0x4730ba._0x374ea1)](_0x216bf6),joinLines(_0x39536c,!![]);}__name(insertEnvVar,'insertEnvVar');function removeEnvVar(_0x10c5c9,_0x148e50){const _0x1a83c9={_0x29b12d:0x216},_0x5cc928=_0x445962,{lines:_0x30663a,trailingNewline:_0x37ce0d}=splitLines(_0x10c5c9),_0x3b8849=_0x30663a[_0x5cc928(0x20f)](_0x25a42a=>!isAssignmentOf(_0x25a42a,_0x148e50)),_0x4c5049=_0x3b8849[_0x5cc928(_0x1a83c9._0x29b12d)]!==_0x30663a[_0x5cc928(0x216)];return{'content':joinLines(_0x3b8849,_0x37ce0d),'removed':_0x4c5049};}__name(removeEnvVar,'removeEnvVar');var SECTION_BY_KIND={'app':_0x445962(0x1dd),'runner':'Runner','secret':void 0x0};function planAddVariable(_0x4ec7cd){const _0x5c065c={_0x4e0c0:0x234,_0x5e621f:0x259,_0x4f7bb5:0x1d8,_0x4e20b1:0x1da,_0x223a9e:0x208,_0x2891d1:0x208,_0x54c5ad:0x208,_0x352e11:0x23c,_0x7d7dae:0x1ed},_0x1b2914=_0x445962,{name:_0x161dd4,kind:_0x24bee0}=_0x4ec7cd;if(_0x24bee0===_0x1b2914(0x1f6)){if(!isRunnerConfigKey(_0x161dd4))return{'ok':![],'code':_0x1b2914(0x1d0),'message':_0x161dd4+_0x1b2914(_0x5c065c._0x4e0c0)};}else{if(!isExternalVarName(_0x161dd4))return{'ok':![],'code':'invalid-name','message':_0x161dd4+_0x1b2914(0x209)};}const _0x18ddbd=envKeys(_0x4ec7cd[_0x1b2914(_0x5c065c._0x5e621f)])['has'](_0x161dd4),_0xaf6ee7=envKeys(_0x4ec7cd[_0x1b2914(_0x5c065c._0x4f7bb5)])[_0x1b2914(0x1e9)](_0x161dd4),_0x4e29a2=_0x24bee0===_0x1b2914(_0x5c065c._0x4e20b1)?_0x1b2914(_0x5c065c._0x223a9e):_0x1b2914(0x268),_0x4e58e6=_0x4e29a2===_0x1b2914(_0x5c065c._0x2891d1)?_0xaf6ee7:_0x18ddbd,_0x4e6edb=_0x4e29a2===_0x1b2914(_0x5c065c._0x54c5ad)?'unotest/.secrets':_0x1b2914(0x1e4);if(_0x4e58e6)return{'ok':![],'code':_0x1b2914(_0x5c065c._0x352e11),'message':_0x161dd4+_0x1b2914(0x1de)+_0x4e6edb+_0x1b2914(_0x5c065c._0x7d7dae)};const _0x6673f1=[];return _0x24bee0===_0x1b2914(0x1da)&&_0x18ddbd&&_0x6673f1[_0x1b2914(0x1cc)](_0x161dd4+'\x20is\x20also\x20set\x20in\x20unotest/.env\x20—\x20the\x20secret\x20value\x20now\x20shadows\x20it.'),_0x24bee0!==_0x1b2914(0x1da)&&_0xaf6ee7&&_0x6673f1['push'](_0x161dd4+'\x20is\x20also\x20set\x20in\x20unotest/.secrets\x20—\x20the\x20secret\x20value\x20shadows\x20this\x20one.'),{'ok':!![],'target':_0x4e29a2,'sectionLabel':SECTION_BY_KIND[_0x24bee0],'warnings':_0x6673f1};}__name(planAddVariable,_0x445962(0x1ee));function deleteShadowWarning(_0x17748a,_0x17d782,_0x47f074){const _0x23af18={_0x23b9e1:0x243},_0x49ec32=_0x445962;if(_0x47f074!==void 0x0&&_0x47f074!==_0x17d782)return[_0x17748a+_0x49ec32(_0x23af18._0x23b9e1)];return[];}function _0x464d(_0x2be70b,_0x5c32e9){_0x2be70b=_0x2be70b-0x1c7;const _0x145ca3=_0x145c();let _0x464d67=_0x145ca3[_0x2be70b];if(_0x464d['dqjBvX']===undefined){var _0x4e4ef8=function(_0x11d32b){const _0x407fcd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53742a='',_0x1395e9='';for(let _0x318ca5=0x0,_0x18d94a,_0x20d5aa,_0x3df7fa=0x0;_0x20d5aa=_0x11d32b['charAt'](_0x3df7fa++);~_0x20d5aa&&(_0x18d94a=_0x318ca5%0x4?_0x18d94a*0x40+_0x20d5aa:_0x20d5aa,_0x318ca5++%0x4)?_0x53742a+=String['fromCharCode'](0xff&_0x18d94a>>(-0x2*_0x318ca5&0x6)):0x0){_0x20d5aa=_0x407fcd['indexOf'](_0x20d5aa);}for(let _0x3ce2e1=0x0,_0x52c22c=_0x53742a['length'];_0x3ce2e1<_0x52c22c;_0x3ce2e1++){_0x1395e9+='%'+('00'+_0x53742a['charCodeAt'](_0x3ce2e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1395e9);};_0x464d['Hluuuy']=_0x4e4ef8,_0x464d['vGFUVr']={},_0x464d['dqjBvX']=!![];}const _0x279ba9=_0x145ca3[0x0],_0x305b1f=_0x2be70b+_0x279ba9,_0x3e34b7=_0x464d['vGFUVr'][_0x305b1f];return!_0x3e34b7?(_0x464d67=_0x464d['Hluuuy'](_0x464d67),_0x464d['vGFUVr'][_0x305b1f]=_0x464d67):_0x464d67=_0x3e34b7,_0x464d67;}__name(deleteShadowWarning,'deleteShadowWarning');var TERMINAL_RUNTIME_STATES=[_0x445962(0x22b),_0x445962(0x233),_0x445962(0x213)];function isTerminalRuntimeState(_0x441658){return TERMINAL_RUNTIME_STATES['includes'](_0x441658);}__name(isTerminalRuntimeState,_0x445962(0x235));var JUDGE_ROUTES={'judge':_0x445962(0x1ca),'health':'/health'};export{BLOBS_DIR,COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,DAY_INDEX_FILE,E2E_SUBDIR,ENV_FILE,EXPECT_FAIL_ANNOTATION,HEARTBEAT_FILE,HELPERS_SUBDIR,InvalidBlobHashError,JUDGE_ROUTES,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,RUNNER_CONFIG_KEYS,RUNS_SUBDIR,RUNTIME_FILE,RUN_INDEX_SCHEMA_VERSION,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SCENARIOS_INDEX_DIR,SCENARIOS_LATEST_FILE,SCENARIO_RECENT_WINDOW,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnplaceableRunIdError,UnsupportedRunKindError,activeEnvName,blobPathFor,blobRelPathFor,blobRelSegmentsFor,blobsRootFor,categorizeVariable,debugDirFor,debuggerFileFor,deleteShadowWarning,envFileFor,envKeys,envLayerFilesFor,envNamesFromDirListing,foldScenarioRun,insertEnvVar,isAnnotationLine,isExternalVarName,isFailingStatus,isRegexLiteral,isRunnerConfigKey,isRunsDirName,isTerminalRuntimeState,makeRunId,parseAppServerEvent,parseEnvContent,parseScenarioAnnotations,planAddVariable,projectRunDirFor,projectRunsRoot,regexLiteral,removeEnvVar,requireRunDirFor,runDirFor,runIdStartedAt,runsDirFor,sanitizeRunIdSegment,scenarioIndexFileName,scenarioRefFromFileName,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,shardDaysDescending,shardDirFor,shardPathForRunId,shardPathForTimestamp,testDirFor,validateCollectionName,validateSegmentName};
|
|
1
|
+
const _0x48998b=_0x3a78;(function(_0x4b5ee6,_0x37527c){const _0x1b2dee={_0x311c97:0x1eb,_0x16342b:0x229,_0x36f585:0x1ce,_0x5c7055:0x1f2,_0x3b7b07:0x206,_0x26d02d:0x18e,_0x56072a:0x1c8},_0x502c5a=_0x3a78,_0x2129ad=_0x4b5ee6();while(!![]){try{const _0x3a2d30=parseInt(_0x502c5a(0x1f4))/0x1*(parseInt(_0x502c5a(0x1da))/0x2)+parseInt(_0x502c5a(_0x1b2dee._0x311c97))/0x3*(-parseInt(_0x502c5a(_0x1b2dee._0x16342b))/0x4)+-parseInt(_0x502c5a(_0x1b2dee._0x36f585))/0x5*(-parseInt(_0x502c5a(0x1d8))/0x6)+-parseInt(_0x502c5a(0x190))/0x7*(-parseInt(_0x502c5a(_0x1b2dee._0x5c7055))/0x8)+parseInt(_0x502c5a(0x175))/0x9*(parseInt(_0x502c5a(_0x1b2dee._0x3b7b07))/0xa)+parseInt(_0x502c5a(_0x1b2dee._0x26d02d))/0xb*(parseInt(_0x502c5a(_0x1b2dee._0x56072a))/0xc)+-parseInt(_0x502c5a(0x1e7))/0xd*(parseInt(_0x502c5a(0x1a5))/0xe);if(_0x3a2d30===_0x37527c)break;else _0x2129ad['push'](_0x2129ad['shift']());}catch(_0x4b2b18){_0x2129ad['push'](_0x2129ad['shift']());}}}(_0x5be3,0xd6fe4));var __defProp=Object['defineProperty'],__name=(_0x5d24f8,_0x221ed9)=>__defProp(_0x5d24f8,_0x48998b(0x18b),{'value':_0x221ed9,'configurable':!![]});function parseAppServerEvent(_0x2dbd71){const _0x2ef7ed={_0xde2658:0x216,_0x15d8e4:0x17a,_0x3bfc85:0x204,_0x4fc71a:0x1fb,_0x2d34e7:0x17a,_0x144e1a:0x1c9},_0x2d504b=_0x48998b,_0x1dc19f=_0x2dbd71[_0x2d504b(0x17b)]();if(!_0x1dc19f[_0x2d504b(_0x2ef7ed._0xde2658)]('{'))return null;try{const _0x4a816d=JSON[_0x2d504b(0x20d)](_0x1dc19f);if(_0x4a816d[_0x2d504b(_0x2ef7ed._0x15d8e4)]===_0x2d504b(_0x2ef7ed._0x3bfc85)||_0x4a816d[_0x2d504b(_0x2ef7ed._0x15d8e4)]===_0x2d504b(_0x2ef7ed._0x4fc71a)||_0x4a816d[_0x2d504b(_0x2ef7ed._0x2d34e7)]===_0x2d504b(_0x2ef7ed._0x144e1a))return _0x4a816d;return null;}catch{return null;}}__name(parseAppServerEvent,'parseAppServerEvent');var UNOTEST_DIR=_0x48998b(0x186),E2E_SUBDIR=_0x48998b(0x1d4),HELPERS_SUBDIR=_0x48998b(0x210),COLLECTIONS_SUBDIR=_0x48998b(0x208),RUNS_SUBDIR=_0x48998b(0x18d),SNAPSHOTS_SUBDIR=_0x48998b(0x222);function testDirFor(_0x23a893){return''+E2E_SUBDIR+_0x23a893;}__name(testDirFor,_0x48998b(0x19b));function runsDirFor(_0x3d5309,_0x509b74){return''+RUNS_SUBDIR+_0x3d5309+(_0x509b74?'.'+_0x509b74:'');}__name(runsDirFor,_0x48998b(0x22d));function isRunsDirName(_0x50beb5){const _0x171f6d={_0x5a38e5:0x216},_0x5cb8ce=_0x48998b;return _0x50beb5===RUNS_SUBDIR||_0x50beb5[_0x5cb8ce(_0x171f6d._0x5a38e5)](RUNS_SUBDIR+'-')||_0x50beb5[_0x5cb8ce(0x216)](RUNS_SUBDIR+'.');}__name(isRunsDirName,'isRunsDirName');function debugDirFor(_0x391af7){return'.debug'+_0x391af7;}__name(debugDirFor,_0x48998b(0x1b6));function debuggerFileFor(_0x561a83){const _0x4a9d3b={_0x1970d6:0x213,_0x596d4b:0x1d9},_0x123268=_0x48998b;return UNOTEST_DIR+_0x123268(_0x4a9d3b._0x1970d6)+_0x561a83+_0x123268(_0x4a9d3b._0x596d4b);}__name(debuggerFileFor,'debuggerFileFor');var LOCK_FILE=_0x48998b(0x16d),LOG_FILE=_0x48998b(0x1b3),STEPS_FILE=_0x48998b(0x1ed),HEARTBEAT_FILE=_0x48998b(0x18a),DAY_INDEX_FILE=_0x48998b(0x1e6),SCENARIOS_INDEX_DIR=_0x48998b(0x1ea),SCENARIOS_LATEST_FILE=_0x48998b(0x1cf),STDOUT_FILE=_0x48998b(0x227),STDERR_FILE=_0x48998b(0x1bb),COMMANDS_FILE='commands.jsonl',RUNTIME_FILE=_0x48998b(0x1b8),PICKER_SNAPSHOT_FILE=_0x48998b(0x1cd),ENV_FILE='unotest/.env',SECRETS_FILE=_0x48998b(0x197);function envFileFor(_0xec4686,_0x4becbf){return''+ENV_FILE+_0xec4686+(_0x4becbf?'.'+_0x4becbf:'');}__name(envFileFor,_0x48998b(0x1e1));function secretsFileFor(_0x9da832,_0x48a63d){return''+SECRETS_FILE+_0x9da832+(_0x48a63d?'.'+_0x48a63d:'');}__name(secretsFileFor,_0x48998b(0x1b7));function envLayerFilesFor(_0x2d190c,_0x4e5b6e){return layersFor(ENV_FILE,_0x2d190c,_0x4e5b6e);}__name(envLayerFilesFor,_0x48998b(0x202));function secretsLayerFilesFor(_0x2d4093,_0x12f057){return layersFor(SECRETS_FILE,_0x2d4093,_0x12f057);}__name(secretsLayerFilesFor,_0x48998b(0x182));function layersFor(_0x356632,_0x405347,_0x40bc27){const _0x4befc0={_0x175955:0x1a6},_0x592b79=_0x48998b,_0xed3bad=[_0x356632];if(_0x405347)_0xed3bad['push'](''+_0x356632+_0x405347);if(_0x40bc27){_0xed3bad[_0x592b79(_0x4befc0._0x175955)](_0x356632+'.'+_0x40bc27);if(_0x405347)_0xed3bad[_0x592b79(_0x4befc0._0x175955)](''+_0x356632+_0x405347+'.'+_0x40bc27);}return _0xed3bad;}__name(layersFor,_0x48998b(0x1e2));function activeEnvName(_0x19273d){const _0x8e051e={_0x296c69:0x1d7},_0x32b468=_0x48998b,_0x114829=_0x19273d[_0x32b468(_0x8e051e._0x296c69)]?.[_0x32b468(0x17b)]();return _0x114829?_0x114829:void 0x0;}__name(activeEnvName,'activeEnvName');var RESERVED_ENV_NAMES=new Set(['example',_0x48998b(0x1b9),_0x48998b(0x1a7)]);function _0x3a78(_0x12d6b1,_0x6c5c09){_0x12d6b1=_0x12d6b1-0x16c;const _0x5be382=_0x5be3();let _0x3a7895=_0x5be382[_0x12d6b1];if(_0x3a78['kddBaa']===undefined){var _0x7d973a=function(_0x290a77){const _0x3a773f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d24f8='',_0x221ed9='';for(let _0x2dbd71=0x0,_0x1dc19f,_0x4a816d,_0x23a893=0x0;_0x4a816d=_0x290a77['charAt'](_0x23a893++);~_0x4a816d&&(_0x1dc19f=_0x2dbd71%0x4?_0x1dc19f*0x40+_0x4a816d:_0x4a816d,_0x2dbd71++%0x4)?_0x5d24f8+=String['fromCharCode'](0xff&_0x1dc19f>>(-0x2*_0x2dbd71&0x6)):0x0){_0x4a816d=_0x3a773f['indexOf'](_0x4a816d);}for(let _0x3d5309=0x0,_0x509b74=_0x5d24f8['length'];_0x3d5309<_0x509b74;_0x3d5309++){_0x221ed9+='%'+('00'+_0x5d24f8['charCodeAt'](_0x3d5309)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x221ed9);};_0x3a78['RJrkXx']=_0x7d973a,_0x3a78['UfDpOr']={},_0x3a78['kddBaa']=!![];}const _0xbcc5ed=_0x5be382[0x0],_0x30c822=_0x12d6b1+_0xbcc5ed,_0x1f43de=_0x3a78['UfDpOr'][_0x30c822];return!_0x1f43de?(_0x3a7895=_0x3a78['RJrkXx'](_0x3a7895),_0x3a78['UfDpOr'][_0x30c822]=_0x3a7895):_0x3a7895=_0x1f43de,_0x3a7895;}function envNamesFromDirListing(_0x57b8e9,_0x5eb081){const _0xd6861a={_0x4926e1:0x177,_0x4f3fa5:0x170,_0x3948f9:0x228},_0x27dfec=_0x48998b,_0x165561=[_0x27dfec(0x212),_0x27dfec(0x1f8)][_0x27dfec(_0xd6861a._0x4926e1)](_0xbfe117=>_0x5eb081?[_0xbfe117,''+_0xbfe117+_0x5eb081]:[_0xbfe117]),_0x135a3d=new Set();for(const _0x386cfa of _0x57b8e9){for(const _0x4cc7df of _0x165561){const _0x609b39=_0x4cc7df+'.';if(!_0x386cfa[_0x27dfec(0x216)](_0x609b39))continue;const _0x5336a1=_0x386cfa[_0x27dfec(0x1cc)](_0x609b39['length']);if(!_0x5336a1||_0x5336a1['includes']('/'))continue;if(RESERVED_ENV_NAMES[_0x27dfec(_0xd6861a._0x4f3fa5)](_0x5336a1))continue;_0x135a3d['add'](_0x5336a1);}}return[..._0x135a3d][_0x27dfec(_0xd6861a._0x3948f9)]();}__name(envNamesFromDirListing,_0x48998b(0x16c));function isRegexLiteral(_0x332ef8){const _0x205561={_0x1990d5:0x17a,_0x526a56:0x1c1},_0x498fa6=_0x48998b;return typeof _0x332ef8===_0x498fa6(0x1a8)&&_0x332ef8!==null&&_0x332ef8[_0x498fa6(_0x205561._0x1990d5)]===_0x498fa6(0x22b)&&typeof _0x332ef8[_0x498fa6(0x1de)]===_0x498fa6(_0x205561._0x526a56)&&typeof _0x332ef8[_0x498fa6(0x218)]===_0x498fa6(_0x205561._0x526a56);}__name(isRegexLiteral,_0x48998b(0x224));function regexLiteral(_0x3d04b8,_0x43a3c0=''){return{'kind':'regex','source':_0x3d04b8,'flags':_0x43a3c0};}__name(regexLiteral,'regexLiteral');var RAND_BYTES=0x6;function makeRunId(_0x184f45){const _0x5a90a9={_0x1b8b66:0x1fd,_0x20af26:0x1ac,_0x50d376:0x1c3,_0x589fd8:0x214},_0x4e571a=_0x48998b,_0x5d9cd1=sanitizeRunIdSegment(_0x184f45),_0x5a0497=Date[_0x4e571a(_0x5a90a9._0x1b8b66)]()['toString'](0x24),_0x32f0d3=new Uint8Array(RAND_BYTES);globalThis[_0x4e571a(_0x5a90a9._0x20af26)][_0x4e571a(0x1b1)](_0x32f0d3);let _0x152bf3='';for(let _0x20eab5=0x0;_0x20eab5<_0x32f0d3[_0x4e571a(_0x5a90a9._0x50d376)];_0x20eab5++){_0x152bf3+=_0x32f0d3[_0x20eab5][_0x4e571a(_0x5a90a9._0x589fd8)](0x10)['padStart'](0x2,'0');}return _0x5d9cd1+'-'+_0x5a0497+'-'+_0x152bf3;}__name(makeRunId,_0x48998b(0x16e));function sanitizeRunIdSegment(_0x291701){const _0x34c6d3={_0x5367f6:0x19c},_0x343271=_0x48998b,_0x336689=_0x291701[_0x343271(_0x34c6d3._0x5367f6)](/[^a-zA-Z0-9_-]+/g,'-')['replace'](/-+/g,'-')[_0x343271(0x19c)](/^-|-$/g,'');return _0x336689[_0x343271(0x1c3)]>0x0?_0x336689:'run';}__name(sanitizeRunIdSegment,'sanitizeRunIdSegment');var RANDOM_SUFFIX_RE=/^[0-9a-f]{6,}$/,MIN_PLAUSIBLE_MS=Date[_0x48998b(0x1d0)](0x7e4,0x0,0x1),MAX_PLAUSIBLE_MS=Date[_0x48998b(0x1d0)](0x834,0x0,0x1);function runIdStartedAt(_0x1c4630){const _0x1db9b4={_0x19c9af:0x1c3,_0x212115:0x22e,_0x5947e9:0x1b0},_0x4dbb5f=_0x48998b,_0x5be9c7=_0x1c4630[_0x4dbb5f(0x223)]('-');if(_0x5be9c7[_0x4dbb5f(_0x1db9b4._0x19c9af)]<0x3)return null;const _0x39b0d0=_0x5be9c7[_0x5be9c7['length']-0x1];if(!RANDOM_SUFFIX_RE[_0x4dbb5f(_0x1db9b4._0x212115)](_0x39b0d0))return null;const _0x4009f9=_0x5be9c7[_0x5be9c7[_0x4dbb5f(0x1c3)]-0x2];if(!/^[0-9a-z]+$/[_0x4dbb5f(0x22e)](_0x4009f9))return null;const _0xd3d50a=parseInt(_0x4009f9,0x24);if(!Number[_0x4dbb5f(_0x1db9b4._0x5947e9)](_0xd3d50a))return null;if(_0xd3d50a<MIN_PLAUSIBLE_MS||_0xd3d50a>=MAX_PLAUSIBLE_MS)return null;return _0xd3d50a;}__name(runIdStartedAt,_0x48998b(0x187));function shardPathForTimestamp(_0x29a8ed){const _0x77dc14={_0x25ad13:0x22a,_0x140a12:0x174,_0x14d255:0x1f7,_0x5c1a7f:0x1f0},_0x1ef35d=_0x48998b,_0x392594=new Date(_0x29a8ed),_0x1d747b=String(_0x392594[_0x1ef35d(_0x77dc14._0x25ad13)]())[_0x1ef35d(0x1f0)](0x4,'0'),_0x27a25e=String(_0x392594[_0x1ef35d(_0x77dc14._0x140a12)]()+0x1)[_0x1ef35d(0x1f0)](0x2,'0'),_0x29ee7d=String(_0x392594[_0x1ef35d(_0x77dc14._0x14d255)]())[_0x1ef35d(_0x77dc14._0x5c1a7f)](0x2,'0');return _0x1d747b+'/'+_0x27a25e+'/'+_0x29ee7d;}__name(shardPathForTimestamp,'shardPathForTimestamp');function shardPathForRunId(_0x2403b5){const _0x46f7ac=runIdStartedAt(_0x2403b5);return _0x46f7ac===null?null:shardPathForTimestamp(_0x46f7ac);}__name(shardPathForRunId,_0x48998b(0x196));function runDirFor(_0x5a50ef,_0x57212a){const _0x2ce433=shardPathForRunId(_0x57212a);return _0x2ce433===null?null:_0x5a50ef+'/'+_0x2ce433+'/'+_0x57212a;}__name(runDirFor,_0x48998b(0x21d));var UnplaceableRunIdError=class extends Error{static{__name(this,_0x48998b(0x1af));}constructor(_0x37fae5){const _0x362ca7={_0x28e644:0x18b,_0xb989:0x1af},_0xebcc3f=_0x48998b;super(_0xebcc3f(0x1db)+_0x37fae5),this[_0xebcc3f(_0x362ca7._0x28e644)]=_0xebcc3f(_0x362ca7._0xb989);}};function requireRunDirFor(_0x42d11b,_0x49430a){const _0x25b51a=runDirFor(_0x42d11b,_0x49430a);if(_0x25b51a===null)throw new UnplaceableRunIdError(_0x49430a);return _0x25b51a;}__name(requireRunDirFor,_0x48998b(0x1d1));function projectRunsRoot(_0x22dfd0='',_0x214647){return UNOTEST_DIR+'/'+runsDirFor(_0x22dfd0,_0x214647);}__name(projectRunsRoot,_0x48998b(0x19e));function projectRunDirFor(_0x3bd41d,_0x13bb5c='',_0x374eed){return requireRunDirFor(projectRunsRoot(_0x13bb5c,_0x374eed),_0x3bd41d);}__name(projectRunDirFor,_0x48998b(0x1c7));function shardDirFor(_0x58f14c,_0x24ec5e){return _0x58f14c+'/'+shardPathForTimestamp(_0x24ec5e);}__name(shardDirFor,_0x48998b(0x215));function*shardDaysDescending(_0x160072,_0x11fde2,_0x52091d){const _0x177bc0={_0x2442d4:0x173},_0x1037de=_0x48998b,_0x402e96=0x5265c00;let _0x1943fa=Math[_0x1037de(_0x177bc0._0x2442d4)](_0x11fde2/_0x402e96)*_0x402e96;for(let _0xe58fe9=0x0;_0xe58fe9<_0x52091d;_0xe58fe9++){yield shardDirFor(_0x160072,_0x1943fa),_0x1943fa-=_0x402e96;}}__name(shardDaysDescending,_0x48998b(0x1ab));var RUN_INDEX_SCHEMA_VERSION=0x2,SCENARIO_RECENT_WINDOW=0xc;function isFailingStatus(_0x2e4c1f){const _0x41308f={_0x38a319:0x205},_0x38820f=_0x48998b;return _0x2e4c1f===_0x38820f(_0x41308f._0x38a319)||_0x2e4c1f==='interrupted';}__name(isFailingStatus,'isFailingStatus');function foldScenarioRun(_0x5ecc3c,_0x26919c){const _0x5256a2={_0x31516d:0x1cc,_0x19b4f2:0x17c,_0x2bec71:0x181},_0x150cc8=_0x48998b,_0x161e3a={'lastRunId':_0x26919c['runId'],'lastStatus':_0x26919c['status'],'lastAt':_0x26919c[_0x150cc8(0x181)],'lastDurationMs':_0x26919c[_0x150cc8(0x1d5)],'recent':[..._0x5ecc3c?.['recent']??[],_0x26919c[_0x150cc8(0x17c)]][_0x150cc8(_0x5256a2._0x31516d)](-SCENARIO_RECENT_WINDOW)};if(!isFailingStatus(_0x26919c[_0x150cc8(_0x5256a2._0x19b4f2)]))return{..._0x161e3a,'failStreak':0x0,'failingSince':null};const _0x507a51=(_0x5ecc3c?.[_0x150cc8(0x1dc)]??0x0)+0x1;return{..._0x161e3a,'failStreak':_0x507a51,'failingSince':_0x507a51===0x1?_0x26919c[_0x150cc8(_0x5256a2._0x2bec71)]:_0x5ecc3c?.['failingSince']??_0x26919c[_0x150cc8(0x181)]};}__name(foldScenarioRun,_0x48998b(0x1c5));function scenarioIndexFileName(_0x4f8c67){const _0x779deb={_0x53d457:0x19d},_0xe27d43=_0x48998b;return encodeURIComponent(_0x4f8c67)+_0xe27d43(_0x779deb._0x53d457);}__name(scenarioIndexFileName,_0x48998b(0x176));function scenarioRefFromFileName(_0x33343b){const _0x1a6ea4={_0x52c910:0x1cc,_0x4ee519:0x1c3},_0x28abf1=_0x48998b;if(!_0x33343b[_0x28abf1(0x1ae)](_0x28abf1(0x19d)))return null;try{return decodeURIComponent(_0x33343b[_0x28abf1(_0x1a6ea4._0x52c910)](0x0,-_0x28abf1(0x19d)[_0x28abf1(_0x1a6ea4._0x4ee519)]));}catch{return null;}}__name(scenarioRefFromFileName,'scenarioRefFromFileName');var BLOBS_DIR=_0x48998b(0x20b),GENERATION_SEP='~',HASH_RE=/^[0-9a-f]{8,}$/,InvalidBlobHashError=class extends Error{static{__name(this,'InvalidBlobHashError');}constructor(_0x9b1eb){const _0x4fb744={_0x33353e:0x1f6,_0x44e71c:0x18b},_0x18e272=_0x48998b;super(_0x18e272(_0x4fb744._0x33353e)+_0x9b1eb),this[_0x18e272(_0x4fb744._0x44e71c)]=_0x18e272(0x207);}};function blobPathFor(_0x2d5181,_0x3e4b18,_0x1baf9e,_0x34ae66=0x0){return _0x2d5181+'/'+blobRelPathFor(_0x3e4b18,_0x1baf9e,_0x34ae66);}__name(blobPathFor,_0x48998b(0x1f5));function blobRelSegmentsFor(_0x4f036b,_0x3330ab,_0x206dbd=0x0){const _0x58e8fe={_0x27739e:0x1cc},_0x44af99=_0x48998b;if(!HASH_RE[_0x44af99(0x22e)](_0x4f036b))throw new InvalidBlobHashError(_0x4f036b);const _0x94eb4d=_0x206dbd>0x0?''+GENERATION_SEP+_0x206dbd:'';return[BLOBS_DIR,_0x4f036b[_0x44af99(_0x58e8fe._0x27739e)](0x0,0x2),_0x4f036b['slice'](0x2,0x4),''+_0x4f036b+_0x94eb4d+'.'+_0x3330ab];}__name(blobRelSegmentsFor,_0x48998b(0x1ff));function blobRelPathFor(_0x2eceb6,_0x511947,_0x34c151=0x0){const _0x1bb93b=_0x48998b;return blobRelSegmentsFor(_0x2eceb6,_0x511947,_0x34c151)[_0x1bb93b(0x1cb)]('/');}__name(blobRelPathFor,_0x48998b(0x183));function _0x5be3(){const _0x2c9c6a=['BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','C291CMnLCY5QC29U','AxnbBM5VDgf0Aw9UtgLUzq','DMfSAwrHDgvgC1nHzMvoyw1L','CNvUrgLYrM9Y','Dw5VDgvZDc8Uzw52','CgXHBKfKzfzHCMLHyMXL','vu5pvevtvf9erujvr19lruvqx0nbteXt','zMLUzeLUzgv4','lNnUyxbZAg90CW','C3bSAxq','AxnszwDLEeXPDgvYywW','C2vJCMv0','vu5pvevtvf9kvurhrv9mt0DFtevwruW','C3rKB3v0lMXVzW','C29YDa','mteYnhzxu1rmuW','z2v0vvrdrNvSBfLLyxi','CMvNzxG','iI4G','CNvUC0rPCKzVCG','DgvZDa','Dw5RBM93BI1YDw5UzxiTA2v5','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','zw52s2v5CW','yMXVyNnsB290rM9Y','zw52tMfTzxngCM9TrgLYtgLZDgLUzW','lNzPzxDLCI5SB2nR','BwfRzvj1BKLK','zw52','AgfZ','vu5pvevtvf9kvurhrv9bq0nfu1nFve9lru4','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','zMXVB3i','z2v0vvrdtw9UDgG','ntqYmda3CNvQsgDY','C2nLBMfYAw9jBMrLEezPBgvoyw1L','zMXHDe1HCa','zhvWBgLJyxrL','vu5pvevtvf9kvurhrv9nt0rfta','A2LUza','DhjPBq','C3rHDhvZ','tK9Fq09mt1i','rK9sq0vFq09mt1i','ywrK','AxnfEhrLCM5HBfzHCK5HBwu','C3rHCNrLzef0','C2vJCMv0C0XHEwvYrMLSzxngB3i','yMXVyLjLBfbHDgHgB3i','vu5pvevtvf9erujvr19nqvHFqLLurvm','vu5pvevtvf9kvurhrv9wt1rf','Dw5VDgvZDa','CNvUswrtDgfYDgvKqxq','AxnbC3nPz25Tzw50t2y','qxbW','AgvHCNrIzwf0','BMfTzq','CgfYC2vty2vUyxjPB0fUBM90yxrPB25Z','lNj1BNm','ntm0mZKXz2ffwfvQ','yxbW','n3r4BfzgvG','BxvZDcbIzsbHihn0CMLUzW','zMLSDgvY','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','vu5pvevtvf9kvurhrv9qt1ju','C2HHCMrqyxrOrM9YuNvUswq','Dw5VDgvZDc8UC2vJCMv0CW','vu5pvevtvf9kvurhrv9it1nu','Dg9mB3DLCKnHC2u','AxnbC3nPz25Tzw50tgLUzq','DgvZDerPCKzVCG','CMvWBgfJzq','lMPZB25S','ChjVAMvJDfj1BNnsB290','CgfYC2vfBNzdB250zw50','C3bSAwnL','vu5pvevtvf9iruferuq','Aw5KzxHpzG','C2vJCMv0C0nVBNrLBNq','vu5pvevtvf9cuK9xu0vs','ntC0EgfeCwrk','ChvZAa','DgvTCgXHDgu','B2jQzwn0','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','C2vYAwfSAxPLrw52vMfSDwu','C2HHCMreyxLZrgvZy2vUzgLUzW','y3j5ChrV','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','zw5KC1DPDgG','vw5WBgfJzwfIBgvsDw5jzevYCM9Y','AxngAw5PDgu','z2v0uMfUzg9TvMfSDwvZ','AM9PBKXPBMvZ','lNzPzxDLCI5SB2C','C3bSAxrmAw5LCW','vu5pvevtvf9kvurhrv9usu1ft1vux01t','zgvIDwDeAxjgB3i','C2vJCMv0C0zPBgvgB3i','CNvUDgLTzs5QC29U','C2fTCgXL','vu5pvevtvf9usu1fwK9orq','C3rKzxjYlMXVzW','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','Axntzwn0Aw9UrgL2AwrLCG','Aw5JBhvKzxm','vu5pvevtvf9erujvr19esvi','vu5pvevtvf9mt0DFtevwruW','C3rYAw5N','CMvTB3zLrw52vMfY','BgvUz3rO','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','zM9SzfnJzw5HCMLVuNvU','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','ChjVAMvJDfj1BKrPCKzVCG','mJa0rKvts0f0','yxbWlxnLCNzLCJPLCNjVCG','vu5pvevtvf9kvurhrv9quK9wsurfuG','AM9PBG','C2XPy2u','CgLJA2vYlxnUyxbZAg90lNr4Da','nJvVu0LvB3O','x2XHDgvZDc5QC29U','vvrd','CMvXDwLYzvj1BKrPCKzVCG','CNvUBMvYici','CNvUBMvY','ztjL','zhvYyxrPB25nCW','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','vu5pvevtvf9ftLy','mJaXnta0DK9KsM9s','lMPZB24','mtuWmdbfs1bMAvq','CNvUswqGy2fYCMLLCYbUBYb0Aw1LC3rHBxaSignHBM5VDcbWBgfJzsbPDcbPBIbHihnOyxjKoIa','zMfPBfn0CMvHAW','vu5pvevtvf9dt05tt0Xf','C291CMnL','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','igfSCMvHzhKGzxHPC3rZigLUia','zw52rMLSzuzVCG','Bgf5zxjZrM9Y','ic0Tlq','BxvZDcbUB3qGyMuGiI4Iig9YiciUlIi','iYaTls0G','x2rHEs5QC29UBa','mti3nde2oxDVEg95Ca','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','yxnZAwDUBwvUDevUDhjPzxm','x3nJzw5HCMLVCW','ntK5n0TczgfKAq','vu5pvevtvf9mt0nbteu','C3rLChmUANnVBMW','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','refuqujbu0vFvvjm','CgfKu3rHCNq','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','mta5mJa3nZzHAxztr3m','vu5pvevtvf9kvurhrv9vuKW','mty5z3vszw5w','yMXVyLbHDgHgB3i','yMXVyIbOyxnOig11C3qGyMuGBg93zxjJyxnLigHLEcWGz290oIa','z2v0vvrdrgf0zq','lNnLy3jLDhm','vu5pvevtvf9kvurhrv9ut0TftG','AxnsDw5UzxjdB25MAwDlzxK','yxbWlxnLCNzLCJPYzxvZzwq','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','BM93','vu5pvevtvf9kvurhrv9nt0rf','yMXVyLjLBfnLz21LBNrZrM9Y','Bwf0y2G','vu5pvevtvf9kvurhrv9dtefvrevFqKLo','zw52tgf5zxjgAwXLC0zVCG','uNvUBMvY','yxbWlxnLCNzLCJPYzwfKEq','zMfPBgvK','mJyWtfPLEKfJ','sw52ywXPzejSB2jiyxnOrxjYB3i','x2nVBgXLy3rPB25Z','vu5pvevtvf9kvurhrv9srvrssuvt','DgvYBwLUywW','x2jSB2jZ','zxHWzwn0lwzHAwW','CgfYC2u','y29TCgXLDgvK','vu5pvevtvf9eruzbvuXux05bvKLhqvrjt05FveLnru9vvf9nuW','x2HLBhbLCNm','C2vJCMv0CW','lMvUDG','lY5Kzwj1z2DLCG','Dg9tDhjPBMC','C2HHCMreAxjgB3i','C3rHCNrZv2L0Aa','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','zMXHz3m'];_0x5be3=function(){return _0x2c9c6a;};return _0x5be3();}function blobsRootFor(_0x2a5901){return _0x2a5901+'/'+BLOBS_DIR;}__name(blobsRootFor,_0x48998b(0x232));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x26bec8,_0x4f51aa){const _0x2f6bca={_0x3f18b6:0x191,_0x52b455:0x1e4,_0x89d5e0:0x216,_0x149651:0x1c4,_0x3630d2:0x219},_0x55763a=_0x48998b;if(typeof _0x26bec8!=='string')return _0x55763a(_0x2f6bca._0x3f18b6);const _0x39bbec=_0x26bec8['trim']();if(_0x39bbec['length']===0x0)return'must\x20not\x20be\x20empty';if(_0x39bbec==='.'||_0x39bbec==='..')return _0x55763a(_0x2f6bca._0x52b455);if(_0x39bbec[_0x55763a(_0x2f6bca._0x89d5e0)]('.'))return'must\x20not\x20start\x20with\x20\x27.\x27';if(_0x4f51aa?.['reservedUnderscore']&&_0x39bbec[_0x55763a(0x216)]('_'))return _0x55763a(_0x2f6bca._0x149651);if(FS_UNSAFE_NAME_RE[_0x55763a(0x22e)](_0x39bbec))return _0x55763a(_0x2f6bca._0x3630d2);return null;}__name(validateFsSafeName,_0x48998b(0x21c));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x23ec74){return validateFsSafeName(_0x23ec74);}__name(validateCollectionName,_0x48998b(0x217));var RUN_MANIFEST_FILE='manifest.json',RUN_SOURCES_FILE=_0x48998b(0x21a),UnsupportedRunKindError=class extends Error{static{__name(this,_0x48998b(0x1bc));}constructor(_0x459af8,_0x33a823){const _0x4549a6=_0x48998b;super(_0x4549a6(0x1d2)+_0x33a823+'\x22\x20does\x20not\x20support\x20run\x20kind\x20\x22'+_0x459af8+'\x22'),this[_0x4549a6(0x18b)]=_0x4549a6(0x1bc);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,'RunnerAdapterNotFoundError');}constructor(_0x4d8af1,_0xe37a08){const _0x5290c9={_0x4f97a4:0x193,_0x2fe449:0x22c},_0x340af7=_0x48998b;super(_0x340af7(_0x5290c9._0x4f97a4)+_0x4d8af1+_0x340af7(_0x5290c9._0x2fe449)+_0xe37a08),this['name']=_0x340af7(0x194);}},RunnerNotConfiguredError=class extends Error{static{__name(this,'RunnerNotConfiguredError');}constructor(_0x3e2d3b){const _0x4b1b68={_0x117666:0x1ee},_0x5c9ad2=_0x48998b;super(_0x3e2d3b),this['name']=_0x5c9ad2(_0x4b1b68._0x117666);}},EXPECT_FAIL_ANNOTATION=_0x48998b(0x20c),ANNOTATION_RE=/^\s*\/\/\s*@([a-z0-9-]+)\s*$/;function isAnnotationLine(_0x3cd65f){return ANNOTATION_RE['test'](_0x3cd65f);}__name(isAnnotationLine,_0x48998b(0x21b));function parseScenarioAnnotations(_0x4877ce){const _0xa0fd42={_0x28377c:0x223,_0x5b6627:0x17b},_0x4aad92=_0x48998b,_0x42850d=new Set();for(const _0x1f37f4 of _0x4877ce[_0x4aad92(_0xa0fd42._0x28377c)](/\r?\n/)){const _0x54ae13=_0x1f37f4[_0x4aad92(_0xa0fd42._0x5b6627)]();if(_0x54ae13==='')continue;if(!_0x54ae13[_0x4aad92(0x216)]('//'))break;const _0x232015=_0x54ae13[_0x4aad92(0x200)](ANNOTATION_RE);if(_0x232015)_0x42850d['add'](_0x232015[0x1]);}return{'expectFail':_0x42850d[_0x4aad92(0x170)](EXPECT_FAIL_ANNOTATION)};}__name(parseScenarioAnnotations,_0x48998b(0x18c));var SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0xbf877f){return validateFsSafeName(_0xbf877f,{'reservedUnderscore':!![]});}__name(validateSegmentName,'validateSegmentName');var TERMINAL_WS_EVENT=_0x48998b(0x20a),RUNNER_CONFIG_KEYS=new Set([_0x48998b(0x1a4),_0x48998b(0x1a1),'UNOTEST_SLOW_MO',_0x48998b(0x172),_0x48998b(0x20f),_0x48998b(0x1c6),_0x48998b(0x1ec),_0x48998b(0x1ba),_0x48998b(0x1c0),'UNOTEST_DEBUG',_0x48998b(0x1bf),_0x48998b(0x184),_0x48998b(0x1ad),_0x48998b(0x1a9),_0x48998b(0x220),'UNOTEST_NETWORK',_0x48998b(0x1dd),'UNOTEST_CACHE_DIR',_0x48998b(0x17d),_0x48998b(0x17e),_0x48998b(0x1ef)]);function isRunnerConfigKey(_0x1c76e3){return RUNNER_CONFIG_KEYS['has'](_0x1c76e3);}__name(isRunnerConfigKey,_0x48998b(0x1fa));function categorizeVariable(_0xe5443f){const _0x92daf5={_0x40704c:0x211,_0x13b1f6:0x1d3},_0x1cb9f8=_0x48998b;if(_0xe5443f[_0x1cb9f8(0x1de)]===_0x1cb9f8(_0x92daf5._0x40704c))return _0x1cb9f8(0x225);return isRunnerConfigKey(_0xe5443f['name'])?_0x1cb9f8(_0x92daf5._0x13b1f6):_0x1cb9f8(0x18f);}__name(categorizeVariable,'categorizeVariable');function isExternalVarName(_0x40262e){const _0x587f6c=_0x48998b;return/^[A-Z][A-Z0-9_]*$/[_0x587f6c(0x22e)](_0x40262e);}__name(isExternalVarName,_0x48998b(0x180));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function*assignmentEntries(_0x2a291c){const _0x58398b={_0x46f85a:0x223,_0x1c2523:0x1cc,_0x5cc1b1:0x17b},_0x102ac3=_0x48998b;for(const _0x255370 of _0x2a291c[_0x102ac3(_0x58398b._0x46f85a)](/\r?\n/)){const _0x3b499f=_0x255370[_0x102ac3(0x17b)]();if(_0x3b499f===''||_0x3b499f['startsWith']('#'))continue;const _0x3c5fe6=_0x3b499f[_0x102ac3(0x1a2)]('=');if(_0x3c5fe6<=0x0)continue;const _0x23aec0=_0x3b499f[_0x102ac3(_0x58398b._0x1c2523)](0x0,_0x3c5fe6)[_0x102ac3(_0x58398b._0x5cc1b1)]();if(!ENV_KEY_RE['test'](_0x23aec0))continue;yield[_0x23aec0,_0x3b499f[_0x102ac3(0x1cc)](_0x3c5fe6+0x1)['trim']()];}}__name(assignmentEntries,_0x48998b(0x1e9));function parseEnvContent(_0x69d830){const _0x323330={_0x36f340:0x1cc},_0x13dc4a=_0x48998b,_0x3f8351={};for(const [_0x1dcedc,_0x4a11b5]of assignmentEntries(_0x69d830)){let _0x3e57ec=_0x4a11b5;if(_0x3e57ec[_0x13dc4a(0x1c3)]>=0x2){const _0x4dca11=_0x3e57ec[0x0],_0x592c85=_0x3e57ec[_0x3e57ec[_0x13dc4a(0x1c3)]-0x1];(_0x4dca11==='\x22'||_0x4dca11==='\x27')&&_0x4dca11===_0x592c85&&(_0x3e57ec=_0x3e57ec[_0x13dc4a(_0x323330._0x36f340)](0x1,-0x1));}_0x3f8351[_0x1dcedc]=_0x3e57ec;}return _0x3f8351;}__name(parseEnvContent,_0x48998b(0x19f));function serializeEnvValue(_0x54fe01){const _0x5446c9={_0x1b90ec:0x22e},_0x10aaa6=_0x48998b;if(_0x54fe01==='')return'';if(/[\s#"'=\\]|^[`]/['test'](_0x54fe01)||/[\n\r]/[_0x10aaa6(_0x5446c9._0x1b90ec)](_0x54fe01)){const _0x1bdae0=_0x54fe01[_0x10aaa6(0x19c)](/\\/g,'\x5c\x5c')[_0x10aaa6(0x19c)](/"/g,'\x5c\x22')['replace'](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr');return'\x22'+_0x1bdae0+'\x22';}return _0x54fe01;}__name(serializeEnvValue,_0x48998b(0x1aa));function envKeys(_0x32db9a){const _0x59b0f0=_0x48998b,_0x187981=new Set();for(const [_0x5845fb]of assignmentEntries(_0x32db9a))_0x187981[_0x59b0f0(0x17f)](_0x5845fb);return _0x187981;}__name(envKeys,_0x48998b(0x231));function isSectionDivider(_0x4b9f9d){const _0x533ac3={_0x40c158:0x216},_0x1e26ac=_0x48998b,_0x5478cf=_0x4b9f9d[_0x1e26ac(0x17b)]();return _0x5478cf[_0x1e26ac(_0x533ac3._0x40c158)]('#')&&/---/['test'](_0x5478cf);}__name(isSectionDivider,_0x48998b(0x1bd));function isAssignmentLine(_0xdd1532){const _0x1d18a3={_0x20d083:0x17b,_0x58abc7:0x216,_0x451c30:0x1cc},_0x57e01b=_0x48998b,_0x3a3d62=_0xdd1532[_0x57e01b(_0x1d18a3._0x20d083)]();if(_0x3a3d62===''||_0x3a3d62[_0x57e01b(_0x1d18a3._0x58abc7)]('#'))return![];const _0x51c0e5=_0x3a3d62[_0x57e01b(0x1a2)]('=');return _0x51c0e5>0x0&&ENV_KEY_RE[_0x57e01b(0x22e)](_0x3a3d62[_0x57e01b(_0x1d18a3._0x451c30)](0x0,_0x51c0e5)[_0x57e01b(0x17b)]());}__name(isAssignmentLine,_0x48998b(0x19a));function isAssignmentOf(_0x563c9c,_0x2ff3a5){const _0x44fe68={_0x460ee5:0x17b,_0x1a5dc0:0x1a2,_0x47157a:0x1cc,_0x3c99c4:0x17b},_0x130216=_0x48998b,_0x41f6b6=_0x563c9c[_0x130216(_0x44fe68._0x460ee5)]();if(_0x41f6b6===''||_0x41f6b6['startsWith']('#'))return![];const _0x2d3c4a=_0x41f6b6[_0x130216(_0x44fe68._0x1a5dc0)]('=');if(_0x2d3c4a<=0x0)return![];return _0x41f6b6[_0x130216(_0x44fe68._0x47157a)](0x0,_0x2d3c4a)[_0x130216(_0x44fe68._0x3c99c4)]()===_0x2ff3a5;}__name(isAssignmentOf,_0x48998b(0x188));function splitLines(_0xcceac5){const _0x399916={_0x120b51:0x1ae},_0x2444ff=_0x48998b,_0x2b666d=_0xcceac5[_0x2444ff(_0x399916._0x120b51)]('\x0a'),_0x2b3cf9=_0x2b666d?_0xcceac5['slice'](0x0,-0x1):_0xcceac5;return{'lines':_0x2b3cf9===''?[]:_0x2b3cf9['split']('\x0a'),'trailingNewline':_0x2b666d};}__name(splitLines,_0x48998b(0x1b4));function joinLines(_0x20e25e,_0x10dacf){const _0x13b04b=_0x48998b,_0x8e431=_0x20e25e[_0x13b04b(0x1cb)]('\x0a');return _0x10dacf||_0x8e431===''?_0x8e431+'\x0a':_0x8e431;}__name(joinLines,_0x48998b(0x1b2));function insertEnvVar(_0x21dc23,_0x1fc789,_0x5b263d,_0x49b030){const _0x5c741a={_0x26b56d:0x199,_0x5358da:0x1c3,_0x193dfb:0x1a0,_0x2dac5f:0x1c3,_0x1c21b2:0x1a6,_0x49dc0b:0x1e5},_0x1e6b1b=_0x48998b,_0xb6be74=_0x1fc789+'='+serializeEnvValue(_0x5b263d),{lines:_0x36fd0c,trailingNewline:_0x4ddae2}=splitLines(_0x21dc23);if(_0x49b030){const _0x5f20b8=new RegExp('\x5cb'+_0x49b030[_0x1e6b1b(_0x5c741a._0x26b56d)]()+'\x5cb'),_0x251360=_0x36fd0c[_0x1e6b1b(0x221)](_0x17e153=>isSectionDivider(_0x17e153)&&_0x5f20b8[_0x1e6b1b(0x22e)](_0x17e153['toLowerCase']()));if(_0x251360!==-0x1){let _0x24be3a=_0x36fd0c[_0x1e6b1b(0x1c3)];for(let _0x230aef=_0x251360+0x1;_0x230aef<_0x36fd0c[_0x1e6b1b(_0x5c741a._0x5358da)];_0x230aef++){if(isSectionDivider(_0x36fd0c[_0x230aef])){_0x24be3a=_0x230aef;break;}}let _0x40b6b0=-0x1,_0x327fbd=-0x1;for(let _0x41a7a9=_0x251360+0x1;_0x41a7a9<_0x24be3a;_0x41a7a9++){if(_0x36fd0c[_0x41a7a9][_0x1e6b1b(0x17b)]()!=='')_0x327fbd=_0x41a7a9;if(isAssignmentLine(_0x36fd0c[_0x41a7a9]))_0x40b6b0=_0x41a7a9;}const _0x151a75=_0x40b6b0>=0x0?_0x40b6b0:_0x327fbd,_0x39262c=_0x151a75>=0x0?_0x151a75+0x1:_0x251360+0x1;return _0x36fd0c[_0x1e6b1b(_0x5c741a._0x193dfb)](_0x39262c,0x0,_0xb6be74),joinLines(_0x36fd0c,_0x4ddae2||_0x36fd0c['length']>0x0);}if(_0x36fd0c[_0x1e6b1b(_0x5c741a._0x2dac5f)]>0x0)_0x36fd0c[_0x1e6b1b(_0x5c741a._0x1c21b2)]('');return _0x36fd0c[_0x1e6b1b(0x1a6)](_0x1e6b1b(_0x5c741a._0x49dc0b)+_0x49b030+_0x1e6b1b(0x1e3),_0xb6be74),joinLines(_0x36fd0c,!![]);}return _0x36fd0c[_0x1e6b1b(_0x5c741a._0x1c21b2)](_0xb6be74),joinLines(_0x36fd0c,!![]);}__name(insertEnvVar,'insertEnvVar');function removeEnvVar(_0x23efb1,_0x98046a){const _0x43a7be={_0x2966ea:0x192,_0x5632ca:0x1c3},_0x202b33=_0x48998b,{lines:_0x206580,trailingNewline:_0x29c312}=splitLines(_0x23efb1),_0x3bf3c0=_0x206580[_0x202b33(_0x43a7be._0x2966ea)](_0x27d7ef=>!isAssignmentOf(_0x27d7ef,_0x98046a)),_0x1a09e6=_0x3bf3c0['length']!==_0x206580[_0x202b33(_0x43a7be._0x5632ca)];return{'content':joinLines(_0x3bf3c0,_0x29c312),'removed':_0x1a09e6};}__name(removeEnvVar,_0x48998b(0x1c2));var SECTION_BY_KIND={'app':_0x48998b(0x189),'runner':_0x48998b(0x203),'secret':void 0x0};function planAddVariable(_0x352b98){const _0x28bcac={_0xbf4246:0x170,_0x1ea2ac:0x211,_0x1211fb:0x211,_0x85737:0x197,_0x50dea5:0x21e,_0x2bc27f:0x1e0,_0x5d66b4:0x1a6},_0xe307d2=_0x48998b,{name:_0x360179,kind:_0x38dc99}=_0x352b98;if(_0x38dc99==='runner'){if(!isRunnerConfigKey(_0x360179))return{'ok':![],'code':_0xe307d2(0x22f),'message':_0x360179+_0xe307d2(0x1f1)};}else{if(!isExternalVarName(_0x360179))return{'ok':![],'code':'invalid-name','message':_0x360179+_0xe307d2(0x1d6)};}const _0x277d58=envKeys(_0x352b98['envContent'])['has'](_0x360179),_0x3b050e=envKeys(_0x352b98[_0xe307d2(0x1a3)])[_0xe307d2(_0x28bcac._0xbf4246)](_0x360179),_0x417950=_0x38dc99==='secret'?_0xe307d2(_0x28bcac._0x1ea2ac):_0xe307d2(0x16f),_0xa4582=_0x417950==='secrets'?_0x3b050e:_0x277d58,_0x465e50=_0x417950===_0xe307d2(_0x28bcac._0x1211fb)?_0xe307d2(_0x28bcac._0x85737):_0xe307d2(_0x28bcac._0x50dea5);if(_0xa4582)return{'ok':![],'code':_0xe307d2(0x178),'message':_0x360179+_0xe307d2(_0x28bcac._0x2bc27f)+_0x465e50+_0xe307d2(0x230)};const _0x2bb8cc=[];return _0x38dc99===_0xe307d2(0x225)&&_0x277d58&&_0x2bb8cc[_0xe307d2(_0x28bcac._0x5d66b4)](_0x360179+_0xe307d2(0x1df)),_0x38dc99!=='secret'&&_0x3b050e&&_0x2bb8cc[_0xe307d2(0x1a6)](_0x360179+_0xe307d2(0x1e8)),{'ok':!![],'target':_0x417950,'sectionLabel':SECTION_BY_KIND[_0x38dc99],'warnings':_0x2bb8cc};}__name(planAddVariable,_0x48998b(0x21f));function deleteShadowWarning(_0x4b8711,_0x2b0369,_0x3f639a){const _0x53aa5a={_0x41fa91:0x1fc},_0x507e61=_0x48998b;if(_0x3f639a!==void 0x0&&_0x3f639a!==_0x2b0369)return[_0x4b8711+_0x507e61(_0x53aa5a._0x41fa91)];return[];}__name(deleteShadowWarning,'deleteShadowWarning');var TERMINAL_RUNTIME_STATES=[_0x48998b(0x20e),_0x48998b(0x205),'aborted'];function isTerminalRuntimeState(_0x37ac1b){const _0x15d641=_0x48998b;return TERMINAL_RUNTIME_STATES[_0x15d641(0x1be)](_0x37ac1b);}__name(isTerminalRuntimeState,'isTerminalRuntimeState');var JUDGE_ROUTES={'judge':'/judge','health':'/health'},JUDGE_ENV={'mode':_0x48998b(0x1fe),'url':_0x48998b(0x1f3),'token':_0x48998b(0x1f9),'requestTimeoutMs':_0x48998b(0x1b5),'preamble':'UNOTEST_JUDGE_PREAMBLE','provider':_0x48998b(0x1ca),'model':_0x48998b(0x179),'callTimeoutMs':'UNOTEST_JUDGE_CALL_TIMEOUT_MS','retries':_0x48998b(0x209),'vote':_0x48998b(0x185),'accessToken':_0x48998b(0x171),'claudeBin':_0x48998b(0x201),'host':_0x48998b(0x198),'port':_0x48998b(0x195),'logLevel':_0x48998b(0x226),'skipPreflight':'UNOTEST_JUDGE_SKIP_PREFLIGHT'};export{BLOBS_DIR,COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,DAY_INDEX_FILE,E2E_SUBDIR,ENV_FILE,EXPECT_FAIL_ANNOTATION,HEARTBEAT_FILE,HELPERS_SUBDIR,InvalidBlobHashError,JUDGE_ENV,JUDGE_ROUTES,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,RUNNER_CONFIG_KEYS,RUNS_SUBDIR,RUNTIME_FILE,RUN_INDEX_SCHEMA_VERSION,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SCENARIOS_INDEX_DIR,SCENARIOS_LATEST_FILE,SCENARIO_RECENT_WINDOW,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnplaceableRunIdError,UnsupportedRunKindError,activeEnvName,blobPathFor,blobRelPathFor,blobRelSegmentsFor,blobsRootFor,categorizeVariable,debugDirFor,debuggerFileFor,deleteShadowWarning,envFileFor,envKeys,envLayerFilesFor,envNamesFromDirListing,foldScenarioRun,insertEnvVar,isAnnotationLine,isExternalVarName,isFailingStatus,isRegexLiteral,isRunnerConfigKey,isRunsDirName,isTerminalRuntimeState,makeRunId,parseAppServerEvent,parseEnvContent,parseScenarioAnnotations,planAddVariable,projectRunDirFor,projectRunsRoot,regexLiteral,removeEnvVar,requireRunDirFor,runDirFor,runIdStartedAt,runsDirFor,sanitizeRunIdSegment,scenarioIndexFileName,scenarioRefFromFileName,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,shardDaysDescending,shardDirFor,shardPathForRunId,shardPathForTimestamp,testDirFor,validateCollectionName,validateSegmentName};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unotest/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Cross-runner protocol for the @unotest ecosystem: shared TypeScript types, path constants, the IRunnerAdapter contract that lets @unotest/viewer drive @unotest/web, @unotest/mobile (and future runners) through the same surface. Pure types + pure functions only — zero runtime deps, browser-safe.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|