@unotest/protocol 0.17.0 → 0.18.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 +47 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.18.0] - 2026-08-23
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 44f5d6c: Editor typings for scenarios — `.js` files stop looking like broken
|
|
8
|
+
JavaScript in VS Code / WebStorm: autocomplete, hover docs, signature
|
|
9
|
+
help and locator-chain resolution, without turning on a second
|
|
10
|
+
type-checker (`checkJs` stays off; diagnostics remain the DSL
|
|
11
|
+
validator's job).
|
|
12
|
+
|
|
13
|
+
- New shipped file `types/unotest-dsl.d.ts` — ambient declarations for
|
|
14
|
+
every DSL function, generated from the same contracts the validator
|
|
15
|
+
uses (`buildDslVocab()`), so it can never drift from the installed
|
|
16
|
+
version.
|
|
17
|
+
- New CLI command `unotest-web types` — creates `unotest/jsconfig.json`
|
|
18
|
+
if missing and regenerates the `.unotest/types/env.d.ts` cache
|
|
19
|
+
(variable NAMES from `unotest/.env` / `.secrets`; values never leave
|
|
20
|
+
those files).
|
|
21
|
+
- `init` scaffolds the jsconfig + env cache; `scaffoldWorkspace()` now
|
|
22
|
+
includes the jsconfig too.
|
|
23
|
+
- Upgrade path is automatic: `lint` and `e2e` create a missing
|
|
24
|
+
`unotest/jsconfig.json` on the fly (one announcement line) and
|
|
25
|
+
silently refresh the env cache. Skipped under CI. No action needed
|
|
26
|
+
after upgrading — run any test or `unotest-web lint` once and the
|
|
27
|
+
editor comes alive. If you keep a custom `unotest/jsconfig.json`, it
|
|
28
|
+
is never overwritten (re-run `init --force` to reset it).
|
|
29
|
+
- `@unotest/protocol`: additive optional fields on the DSL vocab —
|
|
30
|
+
`DslVocabArg.enumValues` (literal members behind `kind: "enum"`) and
|
|
31
|
+
`DslVocabEntry.variadic`.
|
|
32
|
+
|
|
33
|
+
- 9726552: Go-to-definition for project helpers in the viewer's editor: Ctrl/⌘-click
|
|
34
|
+
(or F12) on a `flow_*` call opens the `_helpers/` file in its tab with
|
|
35
|
+
the declaration line highlighted and scrolled into view. Ctrl-hover shows
|
|
36
|
+
a preview of the helper body. Platform functions (`click`, `goto`) have
|
|
37
|
+
no jump target and produce no console errors. `@unotest/protocol`:
|
|
38
|
+
additive optional `DslVocabEntry.source` (project-relative path + 1-based
|
|
39
|
+
line/column of the declaration).
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- 5ab7bd5: `screenshot()` appears in the DSL vocab (completion, hover, signature
|
|
44
|
+
help, generated editor typings). It always had a validator contract, but
|
|
45
|
+
its diagnostics contract group was missing from the vocab builder, so
|
|
46
|
+
every vocab consumer silently lacked it. A parity test now pins the vocab
|
|
47
|
+
to the contract registry, so a future contract group cannot be forgotten
|
|
48
|
+
again. `@unotest/protocol`: new `DslVocabCategory` value `"diagnostic"`.
|
|
49
|
+
|
|
3
50
|
## [0.17.0] - 2026-08-20
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -658,7 +658,7 @@ interface DslDiagnostic {
|
|
|
658
658
|
* ordering. `keyword` covers DSL control-flow / block words (`step`,
|
|
659
659
|
* `if`, `for`, …); `helper` covers project-defined `flow_*` / mock
|
|
660
660
|
* helpers surfaced from the workspace. */
|
|
661
|
-
type DslVocabCategory = "action" | "assertion" | "selector" | "chain" | "navigation" | "read" | "wait" | "state" | "storage" | "multi-context" | "sandbox" | "escape-hatch" | "keyword" | "helper";
|
|
661
|
+
type DslVocabCategory = "action" | "assertion" | "selector" | "chain" | "navigation" | "read" | "wait" | "state" | "storage" | "multi-context" | "sandbox" | "diagnostic" | "escape-hatch" | "keyword" | "helper";
|
|
662
662
|
/** One declared argument of a vocab entry — feeds signature help and
|
|
663
663
|
* the snippet placeholders in `insertText`. `kind` is the validator's
|
|
664
664
|
* arg-kind string (`"locatorLike"`, `"stringLike"`, `"number"`,
|
|
@@ -667,6 +667,10 @@ interface DslVocabArg {
|
|
|
667
667
|
label: string;
|
|
668
668
|
kind: string;
|
|
669
669
|
required: boolean;
|
|
670
|
+
/** Literal members when `kind` is `"enum"` — the label alone loses
|
|
671
|
+
* them, and consumers (typings generator, completion) need the
|
|
672
|
+
* actual values. */
|
|
673
|
+
enumValues?: readonly string[];
|
|
670
674
|
}
|
|
671
675
|
/** A single autocomplete-able item: a vocab function, a DSL keyword, or
|
|
672
676
|
* a project helper. Serializable — crosses the REST boundary verbatim
|
|
@@ -675,6 +679,9 @@ interface DslVocabEntry {
|
|
|
675
679
|
name: string;
|
|
676
680
|
category: DslVocabCategory;
|
|
677
681
|
args: DslVocabArg[];
|
|
682
|
+
/** True when the signature accepts extra positional args after the
|
|
683
|
+
* declared ones (`shell(cmd, ...args)`, `dbQuery(sql, ...params)`). */
|
|
684
|
+
variadic?: boolean;
|
|
678
685
|
/** Return-kind string (`"void"`, `"string"`, `"locator"`, …). */
|
|
679
686
|
returns: string;
|
|
680
687
|
/** Snippet body with `${n:label}` placeholders, e.g.
|
|
@@ -692,6 +699,15 @@ interface DslVocabEntry {
|
|
|
692
699
|
* other than `"none"` produces a locator (so it fits a `locator`
|
|
693
700
|
* argument slot). Absent for keywords / helpers that have no contract. */
|
|
694
701
|
locatorCapability?: "none" | "locator" | "chainableLocator";
|
|
702
|
+
/** Where the entry is defined in the USER's project — set for project
|
|
703
|
+
* helpers (`flow_*` in `_helpers/`), absent for platform functions,
|
|
704
|
+
* which have no source on disk there. Feeds go-to-definition.
|
|
705
|
+
* `path` is project-relative posix; `line`/`column` are 1-based. */
|
|
706
|
+
source?: {
|
|
707
|
+
path: string;
|
|
708
|
+
line: number;
|
|
709
|
+
column: number;
|
|
710
|
+
};
|
|
695
711
|
}
|
|
696
712
|
/** Per-request file context for {@link IDslLanguageService.validate}.
|
|
697
713
|
* The viewer owns workspace discovery, so it supplies the things the
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x383287=_0x14ba;(function(_0x5d0d82,_0x3aa51c){const _0x45fbea={_0x3f763f:0x251,_0x918390:0x249,_0x3c8bcc:0x205,_0x360e6b:0x1f5,_0x582b88:0x238,_0x39504d:0x1fe},_0x502d0b=_0x14ba,_0x41a57a=_0x5d0d82();while(!![]){try{const _0xd7fba2=-parseInt(_0x502d0b(_0x45fbea._0x3f763f))/0x1*(parseInt(_0x502d0b(0x22c))/0x2)+-parseInt(_0x502d0b(0x244))/0x3+-parseInt(_0x502d0b(_0x45fbea._0x918390))/0x4*(-parseInt(_0x502d0b(0x246))/0x5)+-parseInt(_0x502d0b(_0x45fbea._0x3c8bcc))/0x6+-parseInt(_0x502d0b(_0x45fbea._0x360e6b))/0x7+-parseInt(_0x502d0b(_0x45fbea._0x582b88))/0x8*(-parseInt(_0x502d0b(0x24a))/0x9)+parseInt(_0x502d0b(_0x45fbea._0x39504d))/0xa*(parseInt(_0x502d0b(0x21f))/0xb);if(_0xd7fba2===_0x3aa51c)break;else _0x41a57a['push'](_0x41a57a['shift']());}catch(_0x2ed674){_0x41a57a['push'](_0x41a57a['shift']());}}}(_0x59ec,0x93d85));var __defProp=Object[_0x383287(0x222)],__name=(_0x58f05a,_0x34f51d)=>__defProp(_0x58f05a,_0x383287(0x25f),{'value':_0x34f51d,'configurable':!![]});function parseAppServerEvent(_0x4747d3){const _0xdf055d={_0x2a64f7:0x248,_0x5d5b5e:0x21d,_0x523eb2:0x237},_0x1f740d=_0x383287,_0x3a543d=_0x4747d3['trim']();if(!_0x3a543d[_0x1f740d(_0xdf055d._0x2a64f7)]('{'))return null;try{const _0x33bb49=JSON[_0x1f740d(_0xdf055d._0x5d5b5e)](_0x3a543d);if(_0x33bb49[_0x1f740d(_0xdf055d._0x523eb2)]==='app-server:ready'||_0x33bb49['kind']===_0x1f740d(0x23a)||_0x33bb49[_0x1f740d(_0xdf055d._0x523eb2)]===_0x1f740d(0x241))return _0x33bb49;return null;}catch{return null;}}__name(parseAppServerEvent,'parseAppServerEvent');var UNOTEST_DIR=_0x383287(0x264),E2E_SUBDIR=_0x383287(0x255),HELPERS_SUBDIR=_0x383287(0x23f),COLLECTIONS_SUBDIR=_0x383287(0x1f2),RUNS_SUBDIR=_0x383287(0x24e),SNAPSHOTS_SUBDIR='.snapshots';function testDirFor(_0x426aa3){return''+E2E_SUBDIR+_0x426aa3;}__name(testDirFor,'testDirFor');function runsDirFor(_0x3ade32){return''+RUNS_SUBDIR+_0x3ade32;}function _0x14ba(_0x2e5ece,_0x3f29ff){_0x2e5ece=_0x2e5ece-0x1ed;const _0x59eca9=_0x59ec();let _0x14ba7b=_0x59eca9[_0x2e5ece];if(_0x14ba['UnEmqW']===undefined){var _0x1af797=function(_0x441bf7){const _0x12128a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58f05a='',_0x34f51d='';for(let _0x4747d3=0x0,_0x3a543d,_0x33bb49,_0x426aa3=0x0;_0x33bb49=_0x441bf7['charAt'](_0x426aa3++);~_0x33bb49&&(_0x3a543d=_0x4747d3%0x4?_0x3a543d*0x40+_0x33bb49:_0x33bb49,_0x4747d3++%0x4)?_0x58f05a+=String['fromCharCode'](0xff&_0x3a543d>>(-0x2*_0x4747d3&0x6)):0x0){_0x33bb49=_0x12128a['indexOf'](_0x33bb49);}for(let _0x3ade32=0x0,_0xc6d4ef=_0x58f05a['length'];_0x3ade32<_0xc6d4ef;_0x3ade32++){_0x34f51d+='%'+('00'+_0x58f05a['charCodeAt'](_0x3ade32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34f51d);};_0x14ba['UOsenW']=_0x1af797,_0x14ba['uArgNJ']={},_0x14ba['UnEmqW']=!![];}const _0x3ed941=_0x59eca9[0x0],_0x4abc64=_0x2e5ece+_0x3ed941,_0x4f01b8=_0x14ba['uArgNJ'][_0x4abc64];return!_0x4f01b8?(_0x14ba7b=_0x14ba['UOsenW'](_0x14ba7b),_0x14ba['uArgNJ'][_0x4abc64]=_0x14ba7b):_0x14ba7b=_0x4f01b8,_0x14ba7b;}__name(runsDirFor,_0x383287(0x201));function debugDirFor(_0xc6d4ef){const _0x4a3f62=_0x383287;return _0x4a3f62(0x25a)+_0xc6d4ef;}__name(debugDirFor,'debugDirFor');function debuggerFileFor(_0xdc4250){const _0x7799={_0x3c8835:0x24c},_0x41736b=_0x383287;return UNOTEST_DIR+_0x41736b(0x22f)+_0xdc4250+_0x41736b(_0x7799._0x3c8835);}__name(debuggerFileFor,_0x383287(0x202));var LOCK_FILE=_0x383287(0x221),LOG_FILE='.viewer.log',STEPS_FILE=_0x383287(0x258),HEARTBEAT_FILE=_0x383287(0x21a),STDOUT_FILE=_0x383287(0x235),STDERR_FILE=_0x383287(0x260),COMMANDS_FILE='commands.jsonl',RUNTIME_FILE='runtime.json',PICKER_SNAPSHOT_FILE=_0x383287(0x20e),ENV_FILE='unotest/.env',SECRETS_FILE='unotest/.secrets';function envFileFor(_0x23b42e,_0x5e30eb){return''+ENV_FILE+_0x23b42e+(_0x5e30eb?'.'+_0x5e30eb:'');}__name(envFileFor,_0x383287(0x212));function secretsFileFor(_0x8083d0,_0x554f44){return''+SECRETS_FILE+_0x8083d0+(_0x554f44?'.'+_0x554f44:'');}__name(secretsFileFor,'secretsFileFor');function envLayerFilesFor(_0x346f65,_0x19f528){return layersFor(ENV_FILE,_0x346f65,_0x19f528);}__name(envLayerFilesFor,_0x383287(0x1f8));function secretsLayerFilesFor(_0x14c634,_0x1c64d7){return layersFor(SECRETS_FILE,_0x14c634,_0x1c64d7);}__name(secretsLayerFilesFor,'secretsLayerFilesFor');function layersFor(_0x20586d,_0x5e9957,_0x2e1b7c){const _0x33dd0c={_0x41856e:0x23c},_0x27a449=_0x383287,_0x36466b=[_0x20586d];if(_0x5e9957)_0x36466b[_0x27a449(0x23c)](''+_0x20586d+_0x5e9957);if(_0x2e1b7c){_0x36466b[_0x27a449(_0x33dd0c._0x41856e)](_0x20586d+'.'+_0x2e1b7c);if(_0x5e9957)_0x36466b['push'](''+_0x20586d+_0x5e9957+'.'+_0x2e1b7c);}return _0x36466b;}__name(layersFor,'layersFor');function activeEnvName(_0x2edb20){const _0x266d2a={_0xc23268:0x224},_0x346144=_0x383287,_0x7c7c4c=_0x2edb20[_0x346144(_0x266d2a._0xc23268)]?.['trim']();return _0x7c7c4c?_0x7c7c4c:void 0x0;}__name(activeEnvName,'activeEnvName');function isRegexLiteral(_0x5f3500){const _0x342463={_0x5430cb:0x26c},_0x42023e=_0x383287;return typeof _0x5f3500==='object'&&_0x5f3500!==null&&_0x5f3500[_0x42023e(0x237)]===_0x42023e(0x245)&&typeof _0x5f3500[_0x42023e(0x1f0)]===_0x42023e(_0x342463._0x5430cb)&&typeof _0x5f3500[_0x42023e(0x268)]===_0x42023e(0x26c);}__name(isRegexLiteral,_0x383287(0x22b));function regexLiteral(_0x164cec,_0x1f44d9=''){const _0x500c1a=_0x383287;return{'kind':_0x500c1a(0x245),'source':_0x164cec,'flags':_0x1f44d9};}__name(regexLiteral,'regexLiteral');var RAND_BYTES=0x6;function makeRunId(_0x4fc62e){const _0xe76a22={_0x1ed7f1:0x24b,_0xb1c1b9:0x23d,_0x46d384:0x20f,_0x42be88:0x1f1,_0x3ca187:0x1fc},_0x1ca907=_0x383287,_0x13f114=sanitizeRunIdSegment(_0x4fc62e),_0x32467a=Date[_0x1ca907(_0xe76a22._0x1ed7f1)]()[_0x1ca907(_0xe76a22._0xb1c1b9)](0x24),_0x3a52a4=new Uint8Array(RAND_BYTES);globalThis[_0x1ca907(0x207)][_0x1ca907(_0xe76a22._0x46d384)](_0x3a52a4);let _0x14cff8='';for(let _0x3dd441=0x0;_0x3dd441<_0x3a52a4[_0x1ca907(_0xe76a22._0x42be88)];_0x3dd441++){_0x14cff8+=_0x3a52a4[_0x3dd441]['toString'](0x10)[_0x1ca907(_0xe76a22._0x3ca187)](0x2,'0');}return _0x13f114+'-'+_0x32467a+'-'+_0x14cff8;}__name(makeRunId,_0x383287(0x1f3));function sanitizeRunIdSegment(_0x4cd4c6){const _0x2640e5={_0xf3dea3:0x215,_0x236832:0x1f1},_0x5e0d5f=_0x383287,_0x2d3647=_0x4cd4c6[_0x5e0d5f(0x215)](/[^a-zA-Z0-9_-]+/g,'-')[_0x5e0d5f(_0x2640e5._0xf3dea3)](/-+/g,'-')['replace'](/^-|-$/g,'');return _0x2d3647[_0x5e0d5f(_0x2640e5._0x236832)]>0x0?_0x2d3647:_0x5e0d5f(0x233);}__name(sanitizeRunIdSegment,_0x383287(0x250));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x5aef49,_0x10216c){const _0x35a5ac={_0x1fda81:0x211,_0x1ed236:0x1f1,_0x22274e:0x25c,_0x50c26c:0x208,_0xb96869:0x248,_0x2faf5d:0x254,_0xf72d0f:0x1fa,_0x36acbe:0x200},_0x52b949=_0x383287;if(typeof _0x5aef49!=='string')return'must\x20be\x20a\x20string';const _0x12e2dc=_0x5aef49[_0x52b949(_0x35a5ac._0x1fda81)]();if(_0x12e2dc[_0x52b949(_0x35a5ac._0x1ed236)]===0x0)return _0x52b949(0x1ff);if(_0x12e2dc==='.'||_0x12e2dc==='..')return _0x52b949(0x204);if(_0x12e2dc['startsWith']('.'))return _0x52b949(_0x35a5ac._0x22274e);if(_0x10216c?.[_0x52b949(_0x35a5ac._0x50c26c)]&&_0x12e2dc[_0x52b949(_0x35a5ac._0xb96869)]('_'))return _0x52b949(_0x35a5ac._0x2faf5d);if(FS_UNSAFE_NAME_RE[_0x52b949(_0x35a5ac._0xf72d0f)](_0x12e2dc))return _0x52b949(_0x35a5ac._0x36acbe);return null;}__name(validateFsSafeName,_0x383287(0x230));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x27e833){return validateFsSafeName(_0x27e833);}__name(validateCollectionName,_0x383287(0x25e));var RUN_MANIFEST_FILE=_0x383287(0x252),RUN_SOURCES_FILE=_0x383287(0x23b),UnsupportedRunKindError=class extends Error{static{__name(this,_0x383287(0x25b));}constructor(_0x5f1625,_0x1c5249){const _0x222edb=_0x383287;super('runner\x20\x22'+_0x1c5249+'\x22\x20does\x20not\x20support\x20run\x20kind\x20\x22'+_0x5f1625+'\x22'),this[_0x222edb(0x25f)]=_0x222edb(0x25b);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0x383287(0x261));}constructor(_0x3e6aae,_0x4ef228){const _0x149811=_0x383287;super(_0x149811(0x1ef)+_0x3e6aae+'\x22.\x20'+_0x4ef228),this[_0x149811(0x25f)]=_0x149811(0x261);}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0x383287(0x229));}constructor(_0x1becff){const _0x14cdb5={_0x1a6b81:0x25f},_0x118268=_0x383287;super(_0x1becff),this[_0x118268(_0x14cdb5._0x1a6b81)]=_0x118268(0x229);}},SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x9b897c){return validateFsSafeName(_0x9b897c,{'reservedUnderscore':!![]});}__name(validateSegmentName,_0x383287(0x227));var TERMINAL_WS_EVENT='terminal',RUNNER_CONFIG_KEYS=new Set([_0x383287(0x259),_0x383287(0x22a),_0x383287(0x21c),_0x383287(0x26a),_0x383287(0x225),_0x383287(0x242),_0x383287(0x24d),_0x383287(0x243),_0x383287(0x20b),'UNOTEST_DEBUG',_0x383287(0x22d),_0x383287(0x223),_0x383287(0x1f9),_0x383287(0x20d),_0x383287(0x256),_0x383287(0x210),_0x383287(0x269),_0x383287(0x1f6),_0x383287(0x1f7),'FORCE_COLOR',_0x383287(0x214)]);function isRunnerConfigKey(_0x44fd05){const _0x59aa0d={_0x4fcc1d:0x24f},_0x4e70b5=_0x383287;return RUNNER_CONFIG_KEYS[_0x4e70b5(_0x59aa0d._0x4fcc1d)](_0x44fd05);}__name(isRunnerConfigKey,'isRunnerConfigKey');function categorizeVariable(_0x582f6c){const _0xabfb1e={_0x3966cd:0x231,_0x320f28:0x25f},_0x284325=_0x383287;if(_0x582f6c['source']===_0x284325(_0xabfb1e._0x3966cd))return'secret';return isRunnerConfigKey(_0x582f6c[_0x284325(_0xabfb1e._0x320f28)])?'runner':_0x284325(0x25d);}__name(categorizeVariable,_0x383287(0x263));function isExternalVarName(_0x5367ce){const _0x31ea27={_0xf745a:0x1fa},_0x497883=_0x383287;return/^[A-Z][A-Z0-9_]*$/[_0x497883(_0x31ea27._0xf745a)](_0x5367ce);}__name(isExternalVarName,'isExternalVarName');var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function _0x59ec(){const _0x286393=['Dw5VDgvZDc8UC2vJCMv0CW','refuqujbu0vFvvjm','CMvWBgfJzq','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','C2XPy2u','zw52s2v5CW','ywrK','AgvHCNrIzwf0','Aw52ywXPzc1Uyw1L','vu5pvevtvf9tte9xx01p','CgfYC2u','igfSCMvHzhKGzxHPC3rZigLUia','mtiXC1LkAw9f','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','lNzPzxDLCI5SB2nR','zgvMAw5LuhjVCgvYDhK','vu5pvevtvf9erujvr19nqvHFqLLurvm','vu5pvevtvf9ftLy','vu5pvevtvf9eruzbvuXux05bvKLhqvrjt05FveLnru9vvf9nuW','zMfPBgvK','DMfSAwrHDgvtzwDTzw50tMfTzq','uNvUBMvY','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','vu5pvevtvf9iruferuq','AxnszwDLEeXPDgvYywW','mZCWndzUz3rMA0q','vu5pvevtvf9erujvr19esvi','AM9PBG','lY5Kzwj1z2DLCG','DMfSAwrHDgvgC1nHzMvoyw1L','C2vJCMv0CW','AM9PBKXPBMvZ','CNvU','Aw5KzxHpzG','C3rKB3v0lMXVzW','ywjVCNrLza','A2LUza','mJK0nJy0mhzyt1DJrG','qxbW','yxbWlxnLCNzLCJPYzxvZzwq','C291CMnLCY5QC29U','ChvZAa','Dg9tDhjPBMC','zw52q29UDgvUDa','x2HLBhbLCNm','Dg9mB3DLCKnHC2u','yxbWlxnLCNzLCJPLCNjVCG','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','vu5pvevtvf9usu1fwK9orq','ntK5mJK4tMHTvNbJ','CMvNzxG','mtbyrxztDeq','ic0Tlq','C3rHCNrZv2L0Aa','mtG5odu4ngzdvwL3yq','mJD0A1v3r2C','BM93','lMPZB24','vu5pvevtvf9mt0nbteu','lNj1BNm','AgfZ','C2fUAxrPEMvsDw5jzfnLz21LBNq','ndr3uffMywm','BwfUAwzLC3qUANnVBG','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','ztjL','vu5pvevtvf9erujvr19lruvqx0nbteXt','C3bSAxq','C3rLChmUANnVBMW','vu5pvevtvf9cuK9xu0vs','lMrLyNvN','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','yxbW','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','BMfTzq','C3rKzxjYlMXVzW','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','C2vJCMv0C0nVBNrLBNq','y2f0zwDVCML6zvzHCMLHyMXL','Dw5VDgvZDa','C2vYAwfSAxPLrw52vMfSDwu','zMLSDgvY','Axntzwn0Aw9UrgL2AwrLCG','zMXHz3m','vu5pvevtvf9dt05tt0Xf','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','zhvWBgLJyxrL','C3rYAw5N','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','zMLUzeLUzgv4','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','C291CMnL','BgvUz3rO','x2nVBgXLy3rPB25Z','BwfRzvj1BKLK','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','ode5mde0n0Pyu3HrCq','vu5pvevtvf9dqunirv9esvi','tK9Fq09mt1i','zw52tgf5zxjgAwXLC0zVCG','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','DgvZDa','AxnbC3nPz25Tzw50tgLUzq','CgfKu3rHCNq','zw52','nJK1otmWten6z1DS','BxvZDcbUB3qGyMuGzw1WDhK','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','CNvUC0rPCKzVCG','zgvIDwDNzxjgAwXLrM9Y','C2vJCMv0','BxvZDcbUB3qGyMuGiI4Iig9YiciUlIi','mtC2ntK4AuDJuMvX','C3bSAwnL','y3j5ChrV','CMvZzxj2zwrvBMrLCNnJB3jL','CMvTB3zLrw52vMfY','Aw5Zzxj0rw52vMfY','vu5pvevtvf9mt0DFtevwruW','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','CgLJA2vYlxnUyxbZAg90lNr4Da','z2v0uMfUzg9TvMfSDwvZ','vu5pvevtvf9orvrxt1jl','DhjPBq','zw52rMLSzuzVCG'];_0x59ec=function(){return _0x286393;};return _0x59ec();}function*assignmentEntries(_0x2000bd){const _0x2956d7={_0xc34ada:0x248,_0x56f5d5:0x211,_0x569d60:0x211},_0x5d0dac=_0x383287;for(const _0x14a81a of _0x2000bd[_0x5d0dac(0x257)](/\r?\n/)){const _0x1e64d7=_0x14a81a['trim']();if(_0x1e64d7===''||_0x1e64d7[_0x5d0dac(_0x2956d7._0xc34ada)]('#'))continue;const _0x13a08a=_0x1e64d7[_0x5d0dac(0x234)]('=');if(_0x13a08a<=0x0)continue;const _0x15961e=_0x1e64d7[_0x5d0dac(0x217)](0x0,_0x13a08a)[_0x5d0dac(_0x2956d7._0x56f5d5)]();if(!ENV_KEY_RE['test'](_0x15961e))continue;yield[_0x15961e,_0x1e64d7[_0x5d0dac(0x217)](_0x13a08a+0x1)[_0x5d0dac(_0x2956d7._0x569d60)]()];}}__name(assignmentEntries,'assignmentEntries');function parseEnvContent(_0x470e08){const _0x4b1e14={_0x64c14e:0x217},_0x36362e=_0x383287,_0x38ee93={};for(const [_0x5b7231,_0x360035]of assignmentEntries(_0x470e08)){let _0x581298=_0x360035;if(_0x581298['length']>=0x2){const _0x18c126=_0x581298[0x0],_0x3bf178=_0x581298[_0x581298['length']-0x1];(_0x18c126==='\x22'||_0x18c126==='\x27')&&_0x18c126===_0x3bf178&&(_0x581298=_0x581298[_0x36362e(_0x4b1e14._0x64c14e)](0x1,-0x1));}_0x38ee93[_0x5b7231]=_0x581298;}return _0x38ee93;}__name(parseEnvContent,'parseEnvContent');function serializeEnvValue(_0x2e4a12){const _0x10d4ec={_0x2e552d:0x215},_0x5ebfbd=_0x383287;if(_0x2e4a12==='')return'';if(/[\s#"'=\\]|^[`]/['test'](_0x2e4a12)||/[\n\r]/['test'](_0x2e4a12)){const _0x8a500c=_0x2e4a12['replace'](/\\/g,'\x5c\x5c')[_0x5ebfbd(0x215)](/"/g,'\x5c\x22')[_0x5ebfbd(_0x10d4ec._0x2e552d)](/\n/g,'\x5cn')[_0x5ebfbd(0x215)](/\r/g,'\x5cr');return'\x22'+_0x8a500c+'\x22';}return _0x2e4a12;}__name(serializeEnvValue,_0x383287(0x265));function envKeys(_0x3d4afb){const _0x307902={_0x54e1c8:0x219},_0x865cf1=_0x383287,_0x90b1a1=new Set();for(const [_0x288236]of assignmentEntries(_0x3d4afb))_0x90b1a1[_0x865cf1(_0x307902._0x54e1c8)](_0x288236);return _0x90b1a1;}__name(envKeys,_0x383287(0x218));function isSectionDivider(_0x160ffd){const _0xdd4231={_0x37aa8a:0x248},_0x7b53fa=_0x383287,_0x2511e6=_0x160ffd['trim']();return _0x2511e6[_0x7b53fa(_0xdd4231._0x37aa8a)]('#')&&/---/['test'](_0x2511e6);}__name(isSectionDivider,_0x383287(0x267));function isAssignmentLine(_0x2bd9a0){const _0xa85bc6={_0x4a7339:0x248,_0x3f2ced:0x1fa,_0x321085:0x211},_0x42e35c=_0x383287,_0x1fbcca=_0x2bd9a0[_0x42e35c(0x211)]();if(_0x1fbcca===''||_0x1fbcca[_0x42e35c(_0xa85bc6._0x4a7339)]('#'))return![];const _0x43daf1=_0x1fbcca['indexOf']('=');return _0x43daf1>0x0&&ENV_KEY_RE[_0x42e35c(_0xa85bc6._0x3f2ced)](_0x1fbcca['slice'](0x0,_0x43daf1)[_0x42e35c(_0xa85bc6._0x321085)]());}__name(isAssignmentLine,_0x383287(0x1fb));function isAssignmentOf(_0x7feb67,_0x143478){const _0x22e3be={_0x4475c0:0x248},_0x2d4856=_0x383287,_0x3c7dca=_0x7feb67['trim']();if(_0x3c7dca===''||_0x3c7dca[_0x2d4856(_0x22e3be._0x4475c0)]('#'))return![];const _0x362e27=_0x3c7dca['indexOf']('=');if(_0x362e27<=0x0)return![];return _0x3c7dca[_0x2d4856(0x217)](0x0,_0x362e27)['trim']()===_0x143478;}__name(isAssignmentOf,'isAssignmentOf');function splitLines(_0xce527){const _0x27c0a8={_0x30d3f4:0x217},_0x5c6055=_0x383287,_0x3fbd63=_0xce527['endsWith']('\x0a'),_0x5ad814=_0x3fbd63?_0xce527[_0x5c6055(_0x27c0a8._0x30d3f4)](0x0,-0x1):_0xce527;return{'lines':_0x5ad814===''?[]:_0x5ad814[_0x5c6055(0x257)]('\x0a'),'trailingNewline':_0x3fbd63};}__name(splitLines,'splitLines');function joinLines(_0x5c6724,_0x492c47){const _0x5a5532=_0x383287,_0x354bf0=_0x5c6724[_0x5a5532(0x22e)]('\x0a');return _0x492c47||_0x354bf0===''?_0x354bf0+'\x0a':_0x354bf0;}__name(joinLines,_0x383287(0x232));function insertEnvVar(_0x52be87,_0xea1764,_0x5df079,_0x36fdd7){const _0x487a84={_0x33ed9a:0x240,_0x5356a6:0x1ee,_0x1f4372:0x1f1,_0x492db3:0x1f1,_0x92068:0x23c,_0x274fcc:0x247},_0x2a8ada=_0x383287,_0x2ab963=_0xea1764+'='+serializeEnvValue(_0x5df079),{lines:_0x175158,trailingNewline:_0xd29021}=splitLines(_0x52be87);if(_0x36fdd7){const _0x936e7f=new RegExp('\x5cb'+_0x36fdd7[_0x2a8ada(_0x487a84._0x33ed9a)]()+'\x5cb'),_0x51fd3d=_0x175158[_0x2a8ada(_0x487a84._0x5356a6)](_0x570c99=>isSectionDivider(_0x570c99)&&_0x936e7f[_0x2a8ada(0x1fa)](_0x570c99[_0x2a8ada(0x240)]()));if(_0x51fd3d!==-0x1){let _0x5491f1=_0x175158[_0x2a8ada(_0x487a84._0x1f4372)];for(let _0x223ad8=_0x51fd3d+0x1;_0x223ad8<_0x175158[_0x2a8ada(_0x487a84._0x1f4372)];_0x223ad8++){if(isSectionDivider(_0x175158[_0x223ad8])){_0x5491f1=_0x223ad8;break;}}let _0x478e86=-0x1,_0x3c638a=-0x1;for(let _0x12ae10=_0x51fd3d+0x1;_0x12ae10<_0x5491f1;_0x12ae10++){if(_0x175158[_0x12ae10]['trim']()!=='')_0x3c638a=_0x12ae10;if(isAssignmentLine(_0x175158[_0x12ae10]))_0x478e86=_0x12ae10;}const _0x59d387=_0x478e86>=0x0?_0x478e86:_0x3c638a,_0x37eced=_0x59d387>=0x0?_0x59d387+0x1:_0x51fd3d+0x1;return _0x175158[_0x2a8ada(0x206)](_0x37eced,0x0,_0x2ab963),joinLines(_0x175158,_0xd29021||_0x175158[_0x2a8ada(0x1f1)]>0x0);}if(_0x175158[_0x2a8ada(_0x487a84._0x492db3)]>0x0)_0x175158[_0x2a8ada(0x23c)]('');return _0x175158[_0x2a8ada(_0x487a84._0x92068)]('#\x20---\x20'+_0x36fdd7+_0x2a8ada(_0x487a84._0x274fcc),_0x2ab963),joinLines(_0x175158,!![]);}return _0x175158[_0x2a8ada(_0x487a84._0x92068)](_0x2ab963),joinLines(_0x175158,!![]);}__name(insertEnvVar,_0x383287(0x20a));function removeEnvVar(_0x1bbd6e,_0xd647a8){const _0x51affd={_0x1d76cb:0x266},_0x2991e8=_0x383287,{lines:_0x1f0516,trailingNewline:_0x7030bf}=splitLines(_0x1bbd6e),_0x4d842d=_0x1f0516[_0x2991e8(_0x51affd._0x1d76cb)](_0x593795=>!isAssignmentOf(_0x593795,_0xd647a8)),_0x4a9021=_0x4d842d[_0x2991e8(0x1f1)]!==_0x1f0516[_0x2991e8(0x1f1)];return{'content':joinLines(_0x4d842d,_0x7030bf),'removed':_0x4a9021};}__name(removeEnvVar,_0x383287(0x209));var SECTION_BY_KIND={'app':_0x383287(0x239),'runner':_0x383287(0x228),'secret':void 0x0};function planAddVariable(_0x36b64c){const _0x2f110d={_0x67b148:0x1f4,_0xfd8da8:0x24f,_0xa247c6:0x203,_0x4fb77e:0x231,_0x51675a:0x1fd,_0x44a68e:0x213,_0x587757:0x26b,_0x1757f3:0x20c,_0x56b21f:0x1ed,_0x202ffe:0x23c,_0x5dad22:0x220},_0x3b8f12=_0x383287,{name:_0x44f5bc,kind:_0x1d4323}=_0x36b64c;if(_0x1d4323==='runner'){if(!isRunnerConfigKey(_0x44f5bc))return{'ok':![],'code':'unknown-runner-key','message':_0x44f5bc+'\x20is\x20not\x20a\x20known\x20runner\x20setting\x20—\x20choose\x20one\x20from\x20the\x20runner-config\x20list.'};}else{if(!isExternalVarName(_0x44f5bc))return{'ok':![],'code':_0x3b8f12(0x21b),'message':_0x44f5bc+_0x3b8f12(_0x2f110d._0x67b148)};}const _0x18c851=envKeys(_0x36b64c[_0x3b8f12(0x23e)])[_0x3b8f12(_0x2f110d._0xfd8da8)](_0x44f5bc),_0x47902d=envKeys(_0x36b64c[_0x3b8f12(0x262)])[_0x3b8f12(_0x2f110d._0xfd8da8)](_0x44f5bc),_0x5d7b48=_0x1d4323===_0x3b8f12(_0x2f110d._0xa247c6)?_0x3b8f12(_0x2f110d._0x4fb77e):_0x3b8f12(_0x2f110d._0x51675a),_0x3c7849=_0x5d7b48==='secrets'?_0x47902d:_0x18c851,_0x57595d=_0x5d7b48==='secrets'?_0x3b8f12(_0x2f110d._0x44a68e):'unotest/.env';if(_0x3c7849)return{'ok':![],'code':_0x3b8f12(_0x2f110d._0x587757),'message':_0x44f5bc+_0x3b8f12(0x21e)+_0x57595d+_0x3b8f12(_0x2f110d._0x1757f3)};const _0x2acfe0=[];return _0x1d4323==='secret'&&_0x18c851&&_0x2acfe0[_0x3b8f12(0x23c)](_0x44f5bc+_0x3b8f12(_0x2f110d._0x56b21f)),_0x1d4323!=='secret'&&_0x47902d&&_0x2acfe0[_0x3b8f12(_0x2f110d._0x202ffe)](_0x44f5bc+_0x3b8f12(_0x2f110d._0x5dad22)),{'ok':!![],'target':_0x5d7b48,'sectionLabel':SECTION_BY_KIND[_0x1d4323],'warnings':_0x2acfe0};}__name(planAddVariable,'planAddVariable');function deleteShadowWarning(_0x1bf09b,_0x30a7aa,_0x396e53){const _0x5e001a=_0x383287;if(_0x396e53!==void 0x0&&_0x396e53!==_0x30a7aa)return[_0x1bf09b+_0x5e001a(0x253)];return[];}__name(deleteShadowWarning,'deleteShadowWarning');var TERMINAL_RUNTIME_STATES=['completed',_0x383287(0x226),_0x383287(0x236)];function isTerminalRuntimeState(_0x158eb3){return TERMINAL_RUNTIME_STATES['includes'](_0x158eb3);}__name(isTerminalRuntimeState,_0x383287(0x216));export{COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,E2E_SUBDIR,ENV_FILE,HEARTBEAT_FILE,HELPERS_SUBDIR,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,RUNNER_CONFIG_KEYS,RUNS_SUBDIR,RUNTIME_FILE,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnsupportedRunKindError,activeEnvName,categorizeVariable,debugDirFor,debuggerFileFor,deleteShadowWarning,envFileFor,envKeys,envLayerFilesFor,insertEnvVar,isExternalVarName,isRegexLiteral,isRunnerConfigKey,isTerminalRuntimeState,makeRunId,parseAppServerEvent,parseEnvContent,planAddVariable,regexLiteral,removeEnvVar,runsDirFor,sanitizeRunIdSegment,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,testDirFor,validateCollectionName,validateSegmentName};
|
|
1
|
+
const _0x2c9187=_0xb60b;(function(_0x45788c,_0x969b90){const _0x17e439={_0x13c835:0x25f,_0x17f6f3:0x1f9,_0xaa5df9:0x1f8,_0x447ac1:0x216,_0x104bd5:0x203},_0xba33d6=_0xb60b,_0x1ab49f=_0x45788c();while(!![]){try{const _0x106db2=parseInt(_0xba33d6(_0x17e439._0x13c835))/0x1*(-parseInt(_0xba33d6(0x232))/0x2)+-parseInt(_0xba33d6(_0x17e439._0x17f6f3))/0x3*(-parseInt(_0xba33d6(0x23d))/0x4)+-parseInt(_0xba33d6(_0x17e439._0xaa5df9))/0x5+-parseInt(_0xba33d6(_0x17e439._0x447ac1))/0x6*(-parseInt(_0xba33d6(_0x17e439._0x104bd5))/0x7)+parseInt(_0xba33d6(0x206))/0x8+-parseInt(_0xba33d6(0x20b))/0x9+parseInt(_0xba33d6(0x208))/0xa;if(_0x106db2===_0x969b90)break;else _0x1ab49f['push'](_0x1ab49f['shift']());}catch(_0x3fd416){_0x1ab49f['push'](_0x1ab49f['shift']());}}}(_0x4eea,0xe84e9));var __defProp=Object[_0x2c9187(0x215)],__name=(_0x7e944b,_0x2c4df2)=>__defProp(_0x7e944b,'name',{'value':_0x2c4df2,'configurable':!![]});function parseAppServerEvent(_0x3551c4){const _0x495f53={_0x5d7637:0x25d,_0x51f484:0x24a,_0x290c47:0x200},_0x473240=_0x2c9187,_0x1b086b=_0x3551c4[_0x473240(0x25c)]();if(!_0x1b086b['startsWith']('{'))return null;try{const _0x484271=JSON[_0x473240(_0x495f53._0x5d7637)](_0x1b086b);if(_0x484271[_0x473240(_0x495f53._0x51f484)]==='app-server:ready'||_0x484271[_0x473240(_0x495f53._0x51f484)]===_0x473240(_0x495f53._0x290c47)||_0x484271[_0x473240(_0x495f53._0x51f484)]===_0x473240(0x246))return _0x484271;return null;}catch{return null;}}__name(parseAppServerEvent,_0x2c9187(0x24e));var UNOTEST_DIR='unotest',E2E_SUBDIR=_0x2c9187(0x201),HELPERS_SUBDIR=_0x2c9187(0x205),COLLECTIONS_SUBDIR=_0x2c9187(0x1df),RUNS_SUBDIR='.runs',SNAPSHOTS_SUBDIR=_0x2c9187(0x253);function testDirFor(_0x2831e7){return''+E2E_SUBDIR+_0x2831e7;}__name(testDirFor,'testDirFor');function runsDirFor(_0x2e667a){return''+RUNS_SUBDIR+_0x2e667a;}__name(runsDirFor,_0x2c9187(0x235));function debugDirFor(_0x162f9f){const _0x28aa15={_0x32f737:0x254},_0x1ee580=_0x2c9187;return _0x1ee580(_0x28aa15._0x32f737)+_0x162f9f;}__name(debugDirFor,_0x2c9187(0x202));function debuggerFileFor(_0x21db78){const _0xe4e8f2=_0x2c9187;return UNOTEST_DIR+_0xe4e8f2(0x23e)+_0x21db78+_0xe4e8f2(0x24d);}__name(debuggerFileFor,_0x2c9187(0x22c));var LOCK_FILE=_0x2c9187(0x248),LOG_FILE='.viewer.log',STEPS_FILE='steps.jsonl',HEARTBEAT_FILE=_0x2c9187(0x25b),STDOUT_FILE=_0x2c9187(0x25a),STDERR_FILE=_0x2c9187(0x204),COMMANDS_FILE=_0x2c9187(0x1f1),RUNTIME_FILE=_0x2c9187(0x24c),PICKER_SNAPSHOT_FILE='picker-snapshot.txt',ENV_FILE=_0x2c9187(0x220),SECRETS_FILE=_0x2c9187(0x23a);function envFileFor(_0x46e0b8,_0x59681e){return''+ENV_FILE+_0x46e0b8+(_0x59681e?'.'+_0x59681e:'');}__name(envFileFor,_0x2c9187(0x1e4));function secretsFileFor(_0x29268a,_0x525f34){return''+SECRETS_FILE+_0x29268a+(_0x525f34?'.'+_0x525f34:'');}__name(secretsFileFor,_0x2c9187(0x210));function envLayerFilesFor(_0x57b3dc,_0x6ab19c){return layersFor(ENV_FILE,_0x57b3dc,_0x6ab19c);}function _0xb60b(_0x3fa7cc,_0x56dcbd){_0x3fa7cc=_0x3fa7cc-0x1df;const _0x4eea1c=_0x4eea();let _0xb60b52=_0x4eea1c[_0x3fa7cc];if(_0xb60b['UJYHyy']===undefined){var _0x145265=function(_0x1c481d){const _0x1c8818='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7e944b='',_0x2c4df2='';for(let _0x3551c4=0x0,_0x1b086b,_0x484271,_0x2831e7=0x0;_0x484271=_0x1c481d['charAt'](_0x2831e7++);~_0x484271&&(_0x1b086b=_0x3551c4%0x4?_0x1b086b*0x40+_0x484271:_0x484271,_0x3551c4++%0x4)?_0x7e944b+=String['fromCharCode'](0xff&_0x1b086b>>(-0x2*_0x3551c4&0x6)):0x0){_0x484271=_0x1c8818['indexOf'](_0x484271);}for(let _0x2e667a=0x0,_0x162f9f=_0x7e944b['length'];_0x2e667a<_0x162f9f;_0x2e667a++){_0x2c4df2+='%'+('00'+_0x7e944b['charCodeAt'](_0x2e667a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c4df2);};_0xb60b['uxUNUt']=_0x145265,_0xb60b['KIFTTb']={},_0xb60b['UJYHyy']=!![];}const _0x530720=_0x4eea1c[0x0],_0x5303dd=_0x3fa7cc+_0x530720,_0x29d621=_0xb60b['KIFTTb'][_0x5303dd];return!_0x29d621?(_0xb60b52=_0xb60b['uxUNUt'](_0xb60b52),_0xb60b['KIFTTb'][_0x5303dd]=_0xb60b52):_0xb60b52=_0x29d621,_0xb60b52;}__name(envLayerFilesFor,_0x2c9187(0x1ef));function secretsLayerFilesFor(_0x7f5d37,_0x5223b2){return layersFor(SECRETS_FILE,_0x7f5d37,_0x5223b2);}__name(secretsLayerFilesFor,'secretsLayerFilesFor');function layersFor(_0x27b855,_0x3271fe,_0x1b58f0){const _0x120892={_0x3ca1b8:0x250,_0x40cb86:0x250},_0x4e0b0d=_0x2c9187,_0xcb11e6=[_0x27b855];if(_0x3271fe)_0xcb11e6['push'](''+_0x27b855+_0x3271fe);if(_0x1b58f0){_0xcb11e6[_0x4e0b0d(_0x120892._0x3ca1b8)](_0x27b855+'.'+_0x1b58f0);if(_0x3271fe)_0xcb11e6[_0x4e0b0d(_0x120892._0x40cb86)](''+_0x27b855+_0x3271fe+'.'+_0x1b58f0);}return _0xcb11e6;}__name(layersFor,_0x2c9187(0x23f));function activeEnvName(_0x2d33b4){const _0x3b31bb={_0x56036a:0x1fb},_0x5e8e79=_0x2c9187,_0x21cd2a=_0x2d33b4[_0x5e8e79(_0x3b31bb._0x56036a)]?.[_0x5e8e79(0x25c)]();return _0x21cd2a?_0x21cd2a:void 0x0;}__name(activeEnvName,_0x2c9187(0x20e));function isRegexLiteral(_0x1c8323){const _0x1168bc={_0x86240:0x240,_0x4de7b5:0x24a,_0x5f4c44:0x207},_0xc5d474=_0x2c9187;return typeof _0x1c8323===_0xc5d474(_0x1168bc._0x86240)&&_0x1c8323!==null&&_0x1c8323[_0xc5d474(_0x1168bc._0x4de7b5)]===_0xc5d474(0x225)&&typeof _0x1c8323['source']===_0xc5d474(_0x1168bc._0x5f4c44)&&typeof _0x1c8323[_0xc5d474(0x1e0)]===_0xc5d474(_0x1168bc._0x5f4c44);}__name(isRegexLiteral,'isRegexLiteral');function regexLiteral(_0x366c0f,_0x5f9a2=''){return{'kind':'regex','source':_0x366c0f,'flags':_0x5f9a2};}__name(regexLiteral,_0x2c9187(0x221));var RAND_BYTES=0x6;function makeRunId(_0x1a11d2){const _0x383f38={_0x49517f:0x20d,_0x33d003:0x1e2,_0x1a842d:0x1e8},_0x2ea645=_0x2c9187,_0x5407e=sanitizeRunIdSegment(_0x1a11d2),_0xd2da88=Date[_0x2ea645(_0x383f38._0x49517f)]()['toString'](0x24),_0x2c36b0=new Uint8Array(RAND_BYTES);globalThis[_0x2ea645(_0x383f38._0x33d003)][_0x2ea645(_0x383f38._0x1a842d)](_0x2c36b0);let _0x1a18bf='';for(let _0x59a3b8=0x0;_0x59a3b8<_0x2c36b0['length'];_0x59a3b8++){_0x1a18bf+=_0x2c36b0[_0x59a3b8]['toString'](0x10)[_0x2ea645(0x217)](0x2,'0');}return _0x5407e+'-'+_0xd2da88+'-'+_0x1a18bf;}__name(makeRunId,_0x2c9187(0x22f));function sanitizeRunIdSegment(_0x598614){const _0x930a67={_0x10e7d1:0x260,_0xcf5b0f:0x1f6},_0x331364=_0x2c9187,_0xf5b206=_0x598614[_0x331364(_0x930a67._0x10e7d1)](/[^a-zA-Z0-9_-]+/g,'-')[_0x331364(0x260)](/-+/g,'-')[_0x331364(_0x930a67._0x10e7d1)](/^-|-$/g,'');return _0xf5b206[_0x331364(_0x930a67._0xcf5b0f)]>0x0?_0xf5b206:_0x331364(0x1fa);}__name(sanitizeRunIdSegment,_0x2c9187(0x1e3));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x32aa53,_0x3a099e){const _0x43e2f0={_0x36bf03:0x207,_0x1cc1fe:0x209,_0x6999e:0x25c,_0x5e0a41:0x1ed,_0x473288:0x21c,_0x41e237:0x236,_0x111ebd:0x219},_0x45a3e2=_0x2c9187;if(typeof _0x32aa53!==_0x45a3e2(_0x43e2f0._0x36bf03))return _0x45a3e2(_0x43e2f0._0x1cc1fe);const _0x235950=_0x32aa53[_0x45a3e2(_0x43e2f0._0x6999e)]();if(_0x235950[_0x45a3e2(0x1f6)]===0x0)return _0x45a3e2(_0x43e2f0._0x5e0a41);if(_0x235950==='.'||_0x235950==='..')return'must\x20not\x20be\x20\x22.\x22\x20or\x20\x22..\x22';if(_0x235950['startsWith']('.'))return'must\x20not\x20start\x20with\x20\x27.\x27';if(_0x3a099e?.[_0x45a3e2(_0x43e2f0._0x473288)]&&_0x235950[_0x45a3e2(0x258)]('_'))return _0x45a3e2(0x1e7);if(FS_UNSAFE_NAME_RE[_0x45a3e2(_0x43e2f0._0x41e237)](_0x235950))return _0x45a3e2(_0x43e2f0._0x111ebd);return null;}__name(validateFsSafeName,_0x2c9187(0x251));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x2c7074){return validateFsSafeName(_0x2c7074);}function _0x4eea(){const _0x30f3f6=['mJq2otiXEgPQreDW','CNvU','vu5pvevtvf9ftLy','zw52','AxnbC3nPz25Tzw50tgLUzq','vu5pvevtvf9erujvr19lruvqx0nbteXt','BMfTzq','yxbWlxnLCNzLCJPYzxvZzwq','ztjL','zgvIDwDeAxjgB3i','mtm0mZa5t1LPrMru','C3rKzxjYlMXVzW','x2HLBhbLCNm','mZa4ntq3mLj4r1rPBG','C3rYAw5N','mty5mJaYndbYuLHVvwC','BxvZDcbIzsbHihn0CMLUzW','rK9sq0vFq09mt1i','otKXote4ofLZzMj5DW','CNvUBMvYici','BM93','ywn0AxzLrw52tMfTzq','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','C2vJCMv0C0zPBgvgB3i','zw52q29UDgvUDa','Aw5KzxHpzG','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','vu5pvevtvf9mt0DFtevwruW','zgvMAw5LuhjVCgvYDhK','mZeYuevfzvbK','CgfKu3rHCNq','Dw5RBM93BI1YDw5UzxiTA2v5','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','CMvTB3zLrw52vMfY','CMvZzxj2zwrvBMrLCNnJB3jL','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','C291CMnL','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','Dw5VDgvZDc8Uzw52','CMvNzxHmAxrLCMfS','AxnsDw5UzxjdB25MAwDlzxK','y2f0zwDVCML6zvzHCMLHyMXL','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','CMvNzxG','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','zgvSzxrLu2HHzg93v2fYBMLUzW','C2vJCMv0C0nVBNrLBNq','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','iI4G','zgvIDwDNzxjgAwXLrM9Y','Aw5Zzxj0rw52vMfY','zhvWBgLJyxrL','BwfRzvj1BKLK','BwfUAwzLC3qUANnVBG','zMfPBgvK','mtrTCfbVBvq','C3bSAxrmAw5LCW','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','CNvUC0rPCKzVCG','DgvZDa','zw52s2v5CW','CNvUBMvY','qxbW','Dw5VDgvZDc8UC2vJCMv0CW','vu5pvevtvf9dt05tt0Xf','C3bSAwnL','nfLsq1fZEG','lY5Kzwj1z2DLCG','Bgf5zxjZrM9Y','B2jQzwn0','vu5pvevtvf9iruferuq','Aw52ywXPzc1Uyw1L','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','zw5KC1DPDgG','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','yxbWlxnLCNzLCJPLCNjVCG','C3bSAxq','lNzPzxDLCI5SB2nR','igfSCMvHzhKGzxHPC3rZigLUia','A2LUza','AgfZ','CNvUDgLTzs5QC29U','lMPZB24','CgfYC2vbChbtzxj2zxjfDMvUDa','C2vJCMv0CW','ChvZAa','DMfSAwrHDgvgC1nHzMvoyw1L','Aw5JBhvKzxm','lNnUyxbZAg90CW','lMrLyNvN','vu5pvevtvf9tte9xx01p','uNvUBMvY','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','C3rHCNrZv2L0Aa','C2vJCMv0','C3rKB3v0lMXVzW','AgvHCNrIzwf0','DhjPBq','CgfYC2u','AM9PBKXPBMvZ','ote1otbgsgvHt1O','CMvWBgfJzq','x2nVBgXLy3rPB25Z','zMXHz3m','C291CMnLCY5QC29U','y3j5ChrV','C2fUAxrPEMvsDw5jzfnLz21LBNq','zw52rMLSzuzVCG','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','Dg9mB3DLCKnHC2u','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','z2v0uMfUzg9TvMfSDwvZ','DgvYBwLUywW','vu5pvevtvf9mt0nbteu','ic0Tlq','yxbW','BxvZDcbUB3qGyMuGzw1WDhK','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','zw52tgf5zxjgAwXLC0zVCG','y29TCgXLDgvK','y29TBwfUzhmUANnVBMW','vu5pvevtvf9erujvr19esvi','C2XPy2u','vu5pvevtvf9erujvrW','AM9PBG','BgvUz3rO','refuqujbu0vFvvjm','mJmXndC0meXjD2H4vG'];_0x4eea=function(){return _0x30f3f6;};return _0x4eea();}__name(validateCollectionName,_0x2c9187(0x20f));var RUN_MANIFEST_FILE=_0x2c9187(0x230),RUN_SOURCES_FILE=_0x2c9187(0x1e1),UnsupportedRunKindError=class extends Error{static{__name(this,'UnsupportedRunKindError');}constructor(_0x383af4,_0x1a65dc){const _0x960974={_0x1356a7:0x1ff},_0x49ccbf=_0x2c9187;super(_0x49ccbf(0x20c)+_0x1a65dc+_0x49ccbf(0x224)+_0x383af4+'\x22'),this[_0x49ccbf(_0x960974._0x1356a7)]=_0x49ccbf(0x227);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0x2c9187(0x243));}constructor(_0x293d4c,_0xe5748a){const _0x10e5b4={_0x3ac4b5:0x213,_0x6e5242:0x22b},_0x35cd7e=_0x2c9187;super(_0x35cd7e(_0x10e5b4._0x3ac4b5)+_0x293d4c+_0x35cd7e(_0x10e5b4._0x6e5242)+_0xe5748a),this[_0x35cd7e(0x1ff)]=_0x35cd7e(0x243);}},RunnerNotConfiguredError=class extends Error{static{__name(this,'RunnerNotConfiguredError');}constructor(_0x2c1764){const _0x32c907=_0x2c9187;super(_0x2c1764),this['name']=_0x32c907(0x257);}},SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0xf54f9c){return validateFsSafeName(_0xf54f9c,{'reservedUnderscore':!![]});}__name(validateSegmentName,'validateSegmentName');var TERMINAL_WS_EVENT=_0x2c9187(0x1e9),RUNNER_CONFIG_KEYS=new Set(['UNOTEST_BROWSER',_0x2c9187(0x241),_0x2c9187(0x255),_0x2c9187(0x1e5),'UNOTEST_DEFAULT_NAVIGATION_TIMEOUT_MS',_0x2c9187(0x21a),_0x2c9187(0x1ea),'UNOTEST_TIMEZONE',_0x2c9187(0x214),_0x2c9187(0x1f4),_0x2c9187(0x1f2),'UNOTEST_DEBUG_MAX_BYTES','UNOTEST_DEBUG_PREVIEW_BYTES',_0x2c9187(0x22a),_0x2c9187(0x1fe),'UNOTEST_NETWORK',_0x2c9187(0x23b),'UNOTEST_CACHE_DIR','NO_COLOR',_0x2c9187(0x20a),_0x2c9187(0x1f7)]);function isRunnerConfigKey(_0xf1f044){const _0x210f4a={_0x33898b:0x24b},_0x25fef4=_0x2c9187;return RUNNER_CONFIG_KEYS[_0x25fef4(_0x210f4a._0x33898b)](_0xf1f044);}__name(isRunnerConfigKey,_0x2c9187(0x222));function categorizeVariable(_0xc2ae14){const _0x3e9b50={_0x11a77e:0x21e,_0x50983d:0x259,_0x3327a0:0x238,_0x786ef3:0x1ec},_0x3ef31b=_0x2c9187;if(_0xc2ae14[_0x3ef31b(_0x3e9b50._0x11a77e)]==='secrets')return _0x3ef31b(_0x3e9b50._0x50983d);return isRunnerConfigKey(_0xc2ae14[_0x3ef31b(0x1ff)])?_0x3ef31b(_0x3e9b50._0x3327a0):_0x3ef31b(_0x3e9b50._0x786ef3);}__name(categorizeVariable,_0x2c9187(0x223));function isExternalVarName(_0x1d8f15){const _0x431000={_0x87da0a:0x236},_0x32b30e=_0x2c9187;return/^[A-Z][A-Z0-9_]*$/[_0x32b30e(_0x431000._0x87da0a)](_0x1d8f15);}__name(isExternalVarName,'isExternalVarName');var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function*assignmentEntries(_0x29cedf){const _0x19d719={_0x59a102:0x258,_0x106095:0x1f3,_0x376304:0x236,_0x191e32:0x1f3},_0x3874f1=_0x2c9187;for(const _0x508d86 of _0x29cedf['split'](/\r?\n/)){const _0x28835d=_0x508d86['trim']();if(_0x28835d===''||_0x28835d[_0x3874f1(_0x19d719._0x59a102)]('#'))continue;const _0x48f11d=_0x28835d['indexOf']('=');if(_0x48f11d<=0x0)continue;const _0x12c741=_0x28835d[_0x3874f1(_0x19d719._0x106095)](0x0,_0x48f11d)[_0x3874f1(0x25c)]();if(!ENV_KEY_RE[_0x3874f1(_0x19d719._0x376304)](_0x12c741))continue;yield[_0x12c741,_0x28835d[_0x3874f1(_0x19d719._0x191e32)](_0x48f11d+0x1)[_0x3874f1(0x25c)]()];}}__name(assignmentEntries,'assignmentEntries');function parseEnvContent(_0x49db91){const _0x5c911b={_0x11b55b:0x1f3},_0x3a4827=_0x2c9187,_0x583594={};for(const [_0x2b55fc,_0x587015]of assignmentEntries(_0x49db91)){let _0x50e647=_0x587015;if(_0x50e647[_0x3a4827(0x1f6)]>=0x2){const _0x53e761=_0x50e647[0x0],_0x3e18cb=_0x50e647[_0x50e647['length']-0x1];(_0x53e761==='\x22'||_0x53e761==='\x27')&&_0x53e761===_0x3e18cb&&(_0x50e647=_0x50e647[_0x3a4827(_0x5c911b._0x11b55b)](0x1,-0x1));}_0x583594[_0x2b55fc]=_0x50e647;}return _0x583594;}__name(parseEnvContent,'parseEnvContent');function serializeEnvValue(_0x3f0d95){const _0x501550={_0x556038:0x260,_0x3c445e:0x260},_0x4d93cd=_0x2c9187;if(_0x3f0d95==='')return'';if(/[\s#"'=\\]|^[`]/[_0x4d93cd(0x236)](_0x3f0d95)||/[\n\r]/[_0x4d93cd(0x236)](_0x3f0d95)){const _0x3d5fc7=_0x3f0d95[_0x4d93cd(_0x501550._0x556038)](/\\/g,'\x5c\x5c')[_0x4d93cd(0x260)](/"/g,'\x5c\x22')[_0x4d93cd(0x260)](/\n/g,'\x5cn')[_0x4d93cd(_0x501550._0x3c445e)](/\r/g,'\x5cr');return'\x22'+_0x3d5fc7+'\x22';}return _0x3f0d95;}__name(serializeEnvValue,'serializeEnvValue');function envKeys(_0x11c035){const _0x3b5d6e=new Set();for(const [_0x41b38d]of assignmentEntries(_0x11c035))_0x3b5d6e['add'](_0x41b38d);return _0x3b5d6e;}__name(envKeys,_0x2c9187(0x237));function isSectionDivider(_0x25c248){const _0x560743={_0x9489c8:0x25c,_0x138b20:0x258,_0x3cbbdd:0x236},_0x12737b=_0x2c9187,_0x2ddcb3=_0x25c248[_0x12737b(_0x560743._0x9489c8)]();return _0x2ddcb3[_0x12737b(_0x560743._0x138b20)]('#')&&/---/[_0x12737b(_0x560743._0x3cbbdd)](_0x2ddcb3);}__name(isSectionDivider,'isSectionDivider');function isAssignmentLine(_0x575538){const _0x307ed5={_0x59ba93:0x25c,_0x452ff3:0x258},_0x217f87=_0x2c9187,_0x1bfe12=_0x575538[_0x217f87(_0x307ed5._0x59ba93)]();if(_0x1bfe12===''||_0x1bfe12[_0x217f87(_0x307ed5._0x452ff3)]('#'))return![];const _0x5edafe=_0x1bfe12[_0x217f87(0x212)]('=');return _0x5edafe>0x0&&ENV_KEY_RE[_0x217f87(0x236)](_0x1bfe12['slice'](0x0,_0x5edafe)[_0x217f87(0x25c)]());}__name(isAssignmentLine,_0x2c9187(0x1fd));function isAssignmentOf(_0x58e959,_0x35c0d3){const _0x46ed07={_0x25cde7:0x25c},_0x2ae507=_0x2c9187,_0x4a783d=_0x58e959[_0x2ae507(0x25c)]();if(_0x4a783d===''||_0x4a783d['startsWith']('#'))return![];const _0x546c65=_0x4a783d[_0x2ae507(0x212)]('=');if(_0x546c65<=0x0)return![];return _0x4a783d['slice'](0x0,_0x546c65)[_0x2ae507(_0x46ed07._0x25cde7)]()===_0x35c0d3;}__name(isAssignmentOf,'isAssignmentOf');function splitLines(_0x36ee43){const _0xda5b58={_0x4c2d72:0x244},_0x176bde=_0x2c9187,_0x12375c=_0x36ee43[_0x176bde(_0xda5b58._0x4c2d72)]('\x0a'),_0x1a37af=_0x12375c?_0x36ee43['slice'](0x0,-0x1):_0x36ee43;return{'lines':_0x1a37af===''?[]:_0x1a37af[_0x176bde(0x247)]('\x0a'),'trailingNewline':_0x12375c};}__name(splitLines,_0x2c9187(0x233));function joinLines(_0x8bc3f,_0x131fb6){const _0x4af43e=_0x2c9187,_0x517956=_0x8bc3f[_0x4af43e(0x1f5)]('\x0a');return _0x131fb6||_0x517956===''?_0x517956+'\x0a':_0x517956;}__name(joinLines,_0x2c9187(0x25e));function insertEnvVar(_0x240ebe,_0x1c9ad0,_0x5aee52,_0x30002c){const _0x6ab622={_0x45c110:0x1f6,_0x1fa639:0x25c,_0x4a7784:0x23c,_0x588726:0x250,_0x5baf15:0x1eb,_0x1849ad:0x250},_0xa3609c=_0x2c9187,_0x523dff=_0x1c9ad0+'='+serializeEnvValue(_0x5aee52),{lines:_0x4cdf95,trailingNewline:_0xaa45c0}=splitLines(_0x240ebe);if(_0x30002c){const _0x2c50a6=new RegExp('\x5cb'+_0x30002c[_0xa3609c(0x1e6)]()+'\x5cb'),_0x5b884a=_0x4cdf95['findIndex'](_0xc527c1=>isSectionDivider(_0xc527c1)&&_0x2c50a6['test'](_0xc527c1[_0xa3609c(0x1e6)]()));if(_0x5b884a!==-0x1){let _0x149282=_0x4cdf95[_0xa3609c(0x1f6)];for(let _0xb26406=_0x5b884a+0x1;_0xb26406<_0x4cdf95[_0xa3609c(_0x6ab622._0x45c110)];_0xb26406++){if(isSectionDivider(_0x4cdf95[_0xb26406])){_0x149282=_0xb26406;break;}}let _0x71ca9b=-0x1,_0x4ad93d=-0x1;for(let _0x1b6da1=_0x5b884a+0x1;_0x1b6da1<_0x149282;_0x1b6da1++){if(_0x4cdf95[_0x1b6da1][_0xa3609c(_0x6ab622._0x1fa639)]()!=='')_0x4ad93d=_0x1b6da1;if(isAssignmentLine(_0x4cdf95[_0x1b6da1]))_0x71ca9b=_0x1b6da1;}const _0x38f3a8=_0x71ca9b>=0x0?_0x71ca9b:_0x4ad93d,_0x296021=_0x38f3a8>=0x0?_0x38f3a8+0x1:_0x5b884a+0x1;return _0x4cdf95[_0xa3609c(_0x6ab622._0x4a7784)](_0x296021,0x0,_0x523dff),joinLines(_0x4cdf95,_0xaa45c0||_0x4cdf95[_0xa3609c(0x1f6)]>0x0);}if(_0x4cdf95[_0xa3609c(0x1f6)]>0x0)_0x4cdf95[_0xa3609c(0x250)]('');return _0x4cdf95[_0xa3609c(_0x6ab622._0x588726)]('#\x20---\x20'+_0x30002c+_0xa3609c(_0x6ab622._0x5baf15),_0x523dff),joinLines(_0x4cdf95,!![]);}return _0x4cdf95[_0xa3609c(_0x6ab622._0x1849ad)](_0x523dff),joinLines(_0x4cdf95,!![]);}__name(insertEnvVar,_0x2c9187(0x22d));function removeEnvVar(_0x5c7b26,_0x1a657c){const _0x502ffa=_0x2c9187,{lines:_0x3dd9b5,trailingNewline:_0x3b4279}=splitLines(_0x5c7b26),_0x50e7c9=_0x3dd9b5['filter'](_0x4075e0=>!isAssignmentOf(_0x4075e0,_0x1a657c)),_0x54c8b3=_0x50e7c9[_0x502ffa(0x1f6)]!==_0x3dd9b5[_0x502ffa(0x1f6)];return{'content':joinLines(_0x50e7c9,_0x3b4279),'removed':_0x54c8b3};}__name(removeEnvVar,_0x2c9187(0x21b));var SECTION_BY_KIND={'app':_0x2c9187(0x239),'runner':_0x2c9187(0x256),'secret':void 0x0};function planAddVariable(_0x3903b4){const _0x4c3ac9={_0xee258f:0x21f,_0x3eb570:0x242,_0x1c4439:0x1ee,_0x522172:0x211,_0x36f8fa:0x1fc,_0x3cc94d:0x24f,_0x59bac0:0x22e,_0x57efe5:0x249,_0x47bbe1:0x21d,_0x112f79:0x250,_0x417fc2:0x226},_0x3f13fe=_0x2c9187,{name:_0x419d02,kind:_0x1974ec}=_0x3903b4;if(_0x1974ec===_0x3f13fe(0x238)){if(!isRunnerConfigKey(_0x419d02))return{'ok':![],'code':_0x3f13fe(0x218),'message':_0x419d02+_0x3f13fe(_0x4c3ac9._0xee258f)};}else{if(!isExternalVarName(_0x419d02))return{'ok':![],'code':_0x3f13fe(_0x4c3ac9._0x3eb570),'message':_0x419d02+_0x3f13fe(_0x4c3ac9._0x1c4439)};}const _0x39a048=envKeys(_0x3903b4[_0x3f13fe(_0x4c3ac9._0x522172)])[_0x3f13fe(0x24b)](_0x419d02),_0x476b4d=envKeys(_0x3903b4[_0x3f13fe(0x229)])['has'](_0x419d02),_0x5f3cfd=_0x1974ec==='secret'?'secrets':_0x3f13fe(_0x4c3ac9._0x36f8fa),_0x2bcc26=_0x5f3cfd===_0x3f13fe(_0x4c3ac9._0x3cc94d)?_0x476b4d:_0x39a048,_0x191fa9=_0x5f3cfd===_0x3f13fe(0x24f)?_0x3f13fe(0x23a):_0x3f13fe(0x220);if(_0x2bcc26)return{'ok':![],'code':_0x3f13fe(_0x4c3ac9._0x59bac0),'message':_0x419d02+_0x3f13fe(_0x4c3ac9._0x57efe5)+_0x191fa9+_0x3f13fe(_0x4c3ac9._0x47bbe1)};const _0x11d43e=[];return _0x1974ec===_0x3f13fe(0x259)&&_0x39a048&&_0x11d43e[_0x3f13fe(_0x4c3ac9._0x112f79)](_0x419d02+'\x20is\x20also\x20set\x20in\x20unotest/.env\x20—\x20the\x20secret\x20value\x20now\x20shadows\x20it.'),_0x1974ec!==_0x3f13fe(0x259)&&_0x476b4d&&_0x11d43e[_0x3f13fe(_0x4c3ac9._0x112f79)](_0x419d02+_0x3f13fe(_0x4c3ac9._0x417fc2)),{'ok':!![],'target':_0x5f3cfd,'sectionLabel':SECTION_BY_KIND[_0x1974ec],'warnings':_0x11d43e};}__name(planAddVariable,'planAddVariable');function deleteShadowWarning(_0x10b79e,_0x32a03e,_0x591010){const _0x401ec4={_0x36d7b7:0x234},_0x1721e4=_0x2c9187;if(_0x591010!==void 0x0&&_0x591010!==_0x32a03e)return[_0x10b79e+_0x1721e4(_0x401ec4._0x36d7b7)];return[];}__name(deleteShadowWarning,_0x2c9187(0x228));var TERMINAL_RUNTIME_STATES=[_0x2c9187(0x1f0),_0x2c9187(0x231),'aborted'];function isTerminalRuntimeState(_0x489e8f){const _0x268f1d=_0x2c9187;return TERMINAL_RUNTIME_STATES[_0x268f1d(0x252)](_0x489e8f);}__name(isTerminalRuntimeState,_0x2c9187(0x245));export{COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,E2E_SUBDIR,ENV_FILE,HEARTBEAT_FILE,HELPERS_SUBDIR,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,RUNNER_CONFIG_KEYS,RUNS_SUBDIR,RUNTIME_FILE,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnsupportedRunKindError,activeEnvName,categorizeVariable,debugDirFor,debuggerFileFor,deleteShadowWarning,envFileFor,envKeys,envLayerFilesFor,insertEnvVar,isExternalVarName,isRegexLiteral,isRunnerConfigKey,isTerminalRuntimeState,makeRunId,parseAppServerEvent,parseEnvContent,planAddVariable,regexLiteral,removeEnvVar,runsDirFor,sanitizeRunIdSegment,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,testDirFor,validateCollectionName,validateSegmentName};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unotest/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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": {
|