@unotest/protocol 0.10.0 → 0.11.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 +18 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1 -1
- package/package.json +1 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@unotest/protocol` are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.11.0] - 2026-08-13
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- a195713: Failure artifacts are always on, and steps can carry screenshots.
|
|
10
|
+
|
|
11
|
+
- On any scenario failure the runner writes `screenshot.png` +
|
|
12
|
+
`page.html` (runtime DOM, open shadow roots included, secrets
|
|
13
|
+
redacted) to `unotest/.runs/<runId>/failure/` — no `UNOTEST_DEBUG`
|
|
14
|
+
needed. The `.unotest/failures/` bundle gains the same `page.html`;
|
|
15
|
+
its screenshot keeps honouring `failureBundle.tier2`.
|
|
16
|
+
- New env flag `UNOTEST_STEP_SCREENSHOTS=1` captures a PNG after every
|
|
17
|
+
executed step into `unotest/.runs/<runId>/screenshot/`.
|
|
18
|
+
- Protocol: `screenshot` events may carry the step's `file`/`line`/`col`.
|
|
19
|
+
- Viewer: a step row with a captured screenshot shows a camera icon and
|
|
20
|
+
toggles an inline preview on click (both `screenshot()` DSL captures
|
|
21
|
+
and per-step ones).
|
|
22
|
+
|
|
5
23
|
## [0.10.0] - 2026-08-06
|
|
6
24
|
|
|
7
25
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -952,7 +952,9 @@ interface StepStartedEvent extends RunArtifactBase {
|
|
|
952
952
|
file: string;
|
|
953
953
|
/** Line number of the DSL call in the source file (1-indexed). */
|
|
954
954
|
line: number;
|
|
955
|
-
/** Column number (
|
|
955
|
+
/** Column number (1-indexed since 0.11 — the DSL lexer's token
|
|
956
|
+
* columns; earlier releases emitted 0-indexed columns for
|
|
957
|
+
* word-initial statements). */
|
|
956
958
|
col: number;
|
|
957
959
|
}
|
|
958
960
|
interface StepOkEvent extends RunArtifactBase {
|
|
@@ -976,6 +978,14 @@ interface ScreenshotEvent extends RunArtifactBase {
|
|
|
976
978
|
kind: "screenshot";
|
|
977
979
|
/** Project-relative path to the PNG (under `unotest/.runs/<runId>/screenshot/`). */
|
|
978
980
|
path: string;
|
|
981
|
+
/** Step identity for captures bound to a specific step (per-step
|
|
982
|
+
* screenshots under `UNOTEST_STEP_SCREENSHOTS`). Same semantics as
|
|
983
|
+
* `StepStartedEvent` — the viewer joins on `line:col`. Absent for
|
|
984
|
+
* unbound captures (`screenshot()` DSL calls); consumers may fall
|
|
985
|
+
* back to attributing those to the step in flight at emit time. */
|
|
986
|
+
file?: string;
|
|
987
|
+
line?: number;
|
|
988
|
+
col?: number;
|
|
979
989
|
}
|
|
980
990
|
/** Emitted ONCE after a failing run when the runner has finished writing
|
|
981
991
|
* the D-16 failure bundle to disk. Viewer's inspector reads
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3af863=_0x3001;(function(_0x292c0f,_0x1cb400){const _0x3f0318={_0x1a15e1:0x114,_0x55f148:0x15f,_0xc55da1:0xeb,_0x20d246:0xf4},_0x5aab49=_0x3001,_0x34759c=_0x292c0f();while(!![]){try{const _0xee06d1=parseInt(_0x5aab49(0x112))/0x1*(parseInt(_0x5aab49(0x12b))/0x2)+-parseInt(_0x5aab49(_0x3f0318._0x1a15e1))/0x3+parseInt(_0x5aab49(_0x3f0318._0x55f148))/0x4+-parseInt(_0x5aab49(0x116))/0x5+parseInt(_0x5aab49(0x13c))/0x6*(parseInt(_0x5aab49(_0x3f0318._0xc55da1))/0x7)+parseInt(_0x5aab49(_0x3f0318._0x20d246))/0x8*(-parseInt(_0x5aab49(0xf7))/0x9)+parseInt(_0x5aab49(0x147))/0xa;if(_0xee06d1===_0x1cb400)break;else _0x34759c['push'](_0x34759c['shift']());}catch(_0x3d0c6d){_0x34759c['push'](_0x34759c['shift']());}}}(_0xabb2,0xc17ca));var __defProp=Object[_0x3af863(0x12d)],__name=(_0x2c4d73,_0x5af5cf)=>__defProp(_0x2c4d73,_0x3af863(0x103),{'value':_0x5af5cf,'configurable':!![]});function parseAppServerEvent(_0x4fefd4){const _0x24da1e={_0x3b852c:0xfe},_0x25bb0f=_0x3af863,_0x64da04=_0x4fefd4[_0x25bb0f(0x10d)]();if(!_0x64da04[_0x25bb0f(_0x24da1e._0x3b852c)]('{'))return null;try{const _0x38a665=JSON[_0x25bb0f(0x10c)](_0x64da04);if(_0x38a665['kind']===_0x25bb0f(0x106)||_0x38a665[_0x25bb0f(0x14a)]==='app-server:reused'||_0x38a665['kind']===_0x25bb0f(0x151))return _0x38a665;return null;}catch{return null;}}__name(parseAppServerEvent,'parseAppServerEvent');function _0xabb2(){const _0x580d4d=['qxbW','nde4oda3oeDczvHOyG','vu5pvevtvf9dt05tt0Xf','zw52','zgvIDwDeAxjgB3i','C3rKB3v0lMXVzW','CMvTB3zLrw52vMfY','C3rKzxjYlMXVzW','C3rHCNrZv2L0Aa','C2vJCMv0C0XHEwvYrMLSzxngB3i','Dg9tDhjPBMC','C2vJCMv0CW','C3rLChmUANnVBMW','BMfTzq','ywjVCNrLza','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','yxbWlxnLCNzLCJPYzwfKEq','AxnszwDLEeXPDgvYywW','ztjL','C291CMnLCY5QC29U','x2HLBhbLCNm','zMLUzeLUzgv4','CgfYC2u','DhjPBq','zw52tgf5zxjgAwXLC0zVCG','lNzPzxDLCI5SB2C','y29TBwfUzhmUANnVBMW','CgLJA2vYlxnUyxbZAg90lNr4Da','mta3ody2nK1nt3Dtsa','lMPZB24','mJG0mda4og1yveDkwq','lNj1BNm','nJiZote1mgrODezita','BxvZDcbIzsbHihn0CMLUzW','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','zw52rMLSzuzVCG','Aw52ywXPzc1Uyw1L','BwfRzvj1BKLK','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','vu5pvevtvf9erujvr19esvi','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','Dw5VDgvZDc8UC2vJCMv0CW','CMvNzxHmAxrLCMfS','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','y2f0zwDVCML6zvzHCMLHyMXL','vu5pvevtvf9cuK9xu0vs','vu5pvevtvf9mt0DFtevwruW','refuqujbu0vFvvjm','AM9PBKXPBMvZ','vu5pvevtvf9erujvrW','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','ic0Tlq','vu5pvevtvf9erujvr19nqvHFqLLurvm','mNLmzgfxuG','ywrK','zgvMAw5LuhjVCgvYDhK','Aw5KzxHpzG','rK9sq0vFq09mt1i','Dg9mB3DLCKnHC2u','C3bSAwnL','igfSCMvHzhKGzxHPC3rZigLUia','C2XPy2u','CgXHBKfKzfzHCMLHyMXL','C291CMnL','Dw5VDgvZDa','zw52s2v5CW','DMfSAwrHDgvtzwDTzw50tMfTzq','BxvZDcbUB3qGyMuGiI4Iig9YiciUlIi','vu5pvevtvf9erujvr19lruvqx0nbteXt','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','mZyWAuDlDfjZ','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','ChvZAa','Aw5JBhvKzxm','CgfKu3rHCNq','DgvZDa','zw52q29UDgvUDa','C2vJCMv0','zMXHz3m','vu5pvevtvf9iruferuq','Dw5VDgvZDc8Uzw52','mty0odC1ndbdv1fLvge','C3bSAxrmAw5LCW','AxnfEhrLCM5HBfzHCK5HBwu','A2LUza','BM93','CMvWBgfJzq','zhvWBgLJyxrL','C3bSAxq','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','CgfYC2vfBNzdB250zw50','yxbWlxnLCNzLCJPLCNjVCG','vu5pvevtvf9mt0nbteu','x2nVBgXLy3rPB25Z','C3rYAw5N','vu5pvevtvf9orvrxt1jl','Aw5Zzxj0rw52vMfY','AgfZ','CMvZzxj2zwrvBMrLCNnJB3jL','C2vYAwfSAxPLrw52vMfSDwu','AxnsDw5UzxjdB25MAwDlzxK','BwfUAwzLC3qUANnVBG','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','AxnbC3nPz25Tzw50tgLUzq','CNvUDgLTzs5QC29U','mtKZnJKYoePuuLnjuG','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','lY5Kzwj1z2DLCG','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','BgvUz3rO','zw5KC1DPDgG','CNvUBMvY','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','y29TCgXLDgvK','lMrLyNvN','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','ywn0AxzLrw52tMfTzq','DMfSAwrHDgvgC1nHzMvoyw1L','Axntzwn0Aw9UrgL2AwrLCG','Dw5RBM93BI1YDw5UzxiTA2v5','vu5pvevtvf9ftLy','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','odiZnZzNwwrcAge','tK9Fq09mt1i','yxnZAwDUBwvUDevUDhjPzxm','zMLSDgvY','CMvNzxG','CNvUBMvYici','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','AxnbC3nPz25Tzw50t2y','zgvIDwDNzxjgAwXLrM9Y','mtzQBNn4vvq','zMfPBgvK'];_0xabb2=function(){return _0x580d4d;};return _0xabb2();}var UNOTEST_DIR=_0x3af863(0x136),E2E_SUBDIR=_0x3af863(0x108),HELPERS_SUBDIR=_0x3af863(0x10a),COLLECTIONS_SUBDIR=_0x3af863(0x153),RUNS_SUBDIR=_0x3af863(0x115),SNAPSHOTS_SUBDIR='.snapshots';function testDirFor(_0x4d26ba){return''+E2E_SUBDIR+_0x4d26ba;}__name(testDirFor,'testDirFor');function runsDirFor(_0x2ac07f){return''+RUNS_SUBDIR+_0x2ac07f;}__name(runsDirFor,'runsDirFor');function debugDirFor(_0x44e744){const _0x3020e9={_0x110531:0xe3},_0x6c4398=_0x3af863;return _0x6c4398(_0x3020e9._0x110531)+_0x44e744;}__name(debugDirFor,_0x3af863(0xfa));function debuggerFileFor(_0x4ecb5e){const _0x2a110d={_0x42f0c0:0x161},_0x29375f=_0x3af863;return UNOTEST_DIR+_0x29375f(_0x2a110d._0x42f0c0)+_0x4ecb5e+_0x29375f(0x113);}__name(debuggerFileFor,_0x3af863(0xf3));var LOCK_FILE='.viewer.lock',LOG_FILE=_0x3af863(0x10f),STEPS_FILE=_0x3af863(0x102),HEARTBEAT_FILE='heartbeat',STDOUT_FILE=_0x3af863(0xfb),STDERR_FILE=_0x3af863(0xfd),COMMANDS_FILE=_0x3af863(0x110),RUNTIME_FILE=_0x3af863(0x15e),PICKER_SNAPSHOT_FILE=_0x3af863(0x111),ENV_FILE=_0x3af863(0x146),SECRETS_FILE='unotest/.secrets';function envFileFor(_0x27c935,_0x1741bc){return''+ENV_FILE+_0x27c935+(_0x1741bc?'.'+_0x1741bc:'');}function _0x3001(_0x13b6df,_0x243c07){_0x13b6df=_0x13b6df-0xe2;const _0xabb211=_0xabb2();let _0x3001bb=_0xabb211[_0x13b6df];if(_0x3001['CzUEeS']===undefined){var _0x24748c=function(_0x37454a){const _0x430c98='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c4d73='',_0x5af5cf='';for(let _0x4fefd4=0x0,_0x64da04,_0x38a665,_0x4d26ba=0x0;_0x38a665=_0x37454a['charAt'](_0x4d26ba++);~_0x38a665&&(_0x64da04=_0x4fefd4%0x4?_0x64da04*0x40+_0x38a665:_0x38a665,_0x4fefd4++%0x4)?_0x2c4d73+=String['fromCharCode'](0xff&_0x64da04>>(-0x2*_0x4fefd4&0x6)):0x0){_0x38a665=_0x430c98['indexOf'](_0x38a665);}for(let _0x2ac07f=0x0,_0x44e744=_0x2c4d73['length'];_0x2ac07f<_0x44e744;_0x2ac07f++){_0x5af5cf+='%'+('00'+_0x2c4d73['charCodeAt'](_0x2ac07f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5af5cf);};_0x3001['CmqAQY']=_0x24748c,_0x3001['lHTyFU']={},_0x3001['CzUEeS']=!![];}const _0x29ca53=_0xabb211[0x0],_0x17469a=_0x13b6df+_0x29ca53,_0x466431=_0x3001['lHTyFU'][_0x17469a];return!_0x466431?(_0x3001bb=_0x3001['CmqAQY'](_0x3001bb),_0x3001['lHTyFU'][_0x17469a]=_0x3001bb):_0x3001bb=_0x466431,_0x3001bb;}__name(envFileFor,_0x3af863(0x119));function secretsFileFor(_0x36d758,_0x9eb2f8){return''+SECRETS_FILE+_0x36d758+(_0x9eb2f8?'.'+_0x9eb2f8:'');}__name(secretsFileFor,'secretsFileFor');function envLayerFilesFor(_0x2250b7,_0x13c50a){return layersFor(ENV_FILE,_0x2250b7,_0x13c50a);}__name(envLayerFilesFor,_0x3af863(0x10e));function secretsLayerFilesFor(_0x1a17b5,_0x3b488c){return layersFor(SECRETS_FILE,_0x1a17b5,_0x3b488c);}__name(secretsLayerFilesFor,_0x3af863(0xff));function layersFor(_0x3b2663,_0x5e81a9,_0x397f33){const _0x2db625={_0x5af82c:0x13e,_0x3d32ed:0x13e},_0x242d68=_0x3af863,_0x1ae05e=[_0x3b2663];if(_0x5e81a9)_0x1ae05e[_0x242d68(_0x2db625._0x5af82c)](''+_0x3b2663+_0x5e81a9);if(_0x397f33){_0x1ae05e[_0x242d68(_0x2db625._0x5af82c)](_0x3b2663+'.'+_0x397f33);if(_0x5e81a9)_0x1ae05e[_0x242d68(_0x2db625._0x3d32ed)](''+_0x3b2663+_0x5e81a9+'.'+_0x397f33);}return _0x1ae05e;}__name(layersFor,'layersFor');function activeEnvName(_0x172638){const _0x51d8d6=_0x3af863,_0x980f8c=_0x172638[_0x51d8d6(0xe9)]?.[_0x51d8d6(0x10d)]();return _0x980f8c?_0x980f8c:void 0x0;}__name(activeEnvName,_0x3af863(0xe5));function isRegexLiteral(_0x1f82ed){const _0x37d5c4={_0x3fe3f7:0x144},_0x88c922=_0x3af863;return typeof _0x1f82ed==='object'&&_0x1f82ed!==null&&_0x1f82ed[_0x88c922(0x14a)]===_0x88c922(0xef)&&typeof _0x1f82ed['source']==='string'&&typeof _0x1f82ed[_0x88c922(_0x37d5c4._0x3fe3f7)]===_0x88c922(0x154);}__name(isRegexLiteral,_0x3af863(0x107));function regexLiteral(_0x55afca,_0xc973fc=''){const _0x391974={_0x21dcdb:0xef},_0x227a3b=_0x3af863;return{'kind':_0x227a3b(_0x391974._0x21dcdb),'source':_0x55afca,'flags':_0xc973fc};}__name(regexLiteral,_0x3af863(0x120));var RAND_BYTES=0x3;function makeRunId(_0x7701cd){const _0x14824b={_0x31b74d:0x14b},_0x35e4a6=_0x3af863,_0x4be992=sanitizeRunIdSegment(_0x7701cd),_0xcbb46f=Date[_0x35e4a6(_0x14824b._0x31b74d)]()[_0x35e4a6(0x100)](0x24),_0x4edba0=new Uint8Array(RAND_BYTES);globalThis['crypto']['getRandomValues'](_0x4edba0);let _0x30e854='';for(let _0xc9b405=0x0;_0xc9b405<_0x4edba0[_0x35e4a6(0x163)];_0xc9b405++){_0x30e854+=_0x4edba0[_0xc9b405]['toString'](0x10)[_0x35e4a6(0x140)](0x2,'0');}return _0x4be992+'-'+_0xcbb46f+'-'+_0x30e854;}__name(makeRunId,_0x3af863(0x11b));function sanitizeRunIdSegment(_0x276ce5){const _0x27600d={_0x20bf6a:0x14c,_0x4a7a8b:0x163},_0x353692=_0x3af863,_0x272c16=_0x276ce5[_0x353692(_0x27600d._0x20bf6a)](/[^a-zA-Z0-9_-]+/g,'-')[_0x353692(0x14c)](/-+/g,'-')['replace'](/^-|-$/g,'');return _0x272c16[_0x353692(_0x27600d._0x4a7a8b)]>0x0?_0x272c16:'run';}__name(sanitizeRunIdSegment,'sanitizeRunIdSegment');var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x3aad8a,_0x277e72){const _0x3fce5a={_0x34cc92:0x154,_0xf883ed:0x117,_0x203054:0x10d,_0x3241e2:0x163,_0x209483:0xfe,_0x4290b3:0x14f,_0x4b4b67:0x11e},_0x478dbf=_0x3af863;if(typeof _0x3aad8a!==_0x478dbf(_0x3fce5a._0x34cc92))return _0x478dbf(_0x3fce5a._0xf883ed);const _0x55d298=_0x3aad8a[_0x478dbf(_0x3fce5a._0x203054)]();if(_0x55d298[_0x478dbf(_0x3fce5a._0x3241e2)]===0x0)return'must\x20not\x20be\x20empty';if(_0x55d298==='.'||_0x55d298==='..')return _0x478dbf(0x139);if(_0x55d298[_0x478dbf(0xfe)]('.'))return _0x478dbf(0x15c);if(_0x277e72?.[_0x478dbf(0x158)]&&_0x55d298[_0x478dbf(_0x3fce5a._0x209483)]('_'))return _0x478dbf(_0x3fce5a._0x4290b3);if(FS_UNSAFE_NAME_RE[_0x478dbf(0x141)](_0x55d298))return _0x478dbf(_0x3fce5a._0x4b4b67);return null;}__name(validateFsSafeName,_0x3af863(0xe6));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x581992){return validateFsSafeName(_0x581992);}__name(validateCollectionName,_0x3af863(0x105));var RUN_MANIFEST_FILE=_0x3af863(0x15b),RUN_SOURCES_FILE=_0x3af863(0x109),UnsupportedRunKindError=class extends Error{static{__name(this,'UnsupportedRunKindError');}constructor(_0x35456e,_0x2e04b0){const _0x4a534e={_0x57ab1e:0x162},_0x38ac22=_0x3af863;super(_0x38ac22(0xf0)+_0x2e04b0+_0x38ac22(0xea)+_0x35456e+'\x22'),this['name']=_0x38ac22(_0x4a534e._0x57ab1e);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,'RunnerAdapterNotFoundError');}constructor(_0x2485a6,_0x1904f6){const _0x499b90={_0x244775:0x121},_0x36f05f=_0x3af863;super(_0x36f05f(_0x499b90._0x244775)+_0x2485a6+'\x22.\x20'+_0x1904f6),this['name']='RunnerAdapterNotFoundError';}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0x3af863(0x118));}constructor(_0x41836b){const _0x2bf1c2={_0x2ee599:0x103},_0x4567e7=_0x3af863;super(_0x41836b),this[_0x4567e7(_0x2bf1c2._0x2ee599)]=_0x4567e7(0x118);}},SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x1d6eb8){return validateFsSafeName(_0x1d6eb8,{'reservedUnderscore':!![]});}__name(validateSegmentName,_0x3af863(0x138));var TERMINAL_WS_EVENT='terminal',RUNNER_CONFIG_KEYS=new Set([_0x3af863(0x123),_0x3af863(0x145),'UNOTEST_SLOW_MO',_0x3af863(0x11c),'UNOTEST_DEFAULT_NAVIGATION_TIMEOUT_MS',_0x3af863(0xe4),_0x3af863(0x152),'UNOTEST_TIMEZONE',_0x3af863(0x124),_0x3af863(0x127),_0x3af863(0x11d),_0x3af863(0x12a),_0x3af863(0x13b),_0x3af863(0x13d),_0x3af863(0x13a),_0x3af863(0x155),_0x3af863(0xf8),'UNOTEST_CACHE_DIR',_0x3af863(0xec),_0x3af863(0x12f),_0x3af863(0x125)]);function isRunnerConfigKey(_0x31ff90){const _0x18a9bf=_0x3af863;return RUNNER_CONFIG_KEYS[_0x18a9bf(0x157)](_0x31ff90);}__name(isRunnerConfigKey,_0x3af863(0x15a));function categorizeVariable(_0x9d1ef8){const _0x108d3d={_0x5e2a2f:0x135,_0x5f544b:0x101,_0x18d8d9:0x165},_0x34c7a3=_0x3af863;if(_0x9d1ef8[_0x34c7a3(_0x108d3d._0x5e2a2f)]===_0x34c7a3(_0x108d3d._0x5f544b))return _0x34c7a3(0x143);return isRunnerConfigKey(_0x9d1ef8['name'])?_0x34c7a3(_0x108d3d._0x18d8d9):'app';}__name(categorizeVariable,_0x3af863(0x122));function isExternalVarName(_0x4ba162){return/^[A-Z][A-Z0-9_]*$/['test'](_0x4ba162);}__name(isExternalVarName,_0x3af863(0x149));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function*assignmentEntries(_0x305042){const _0x5cd4cd={_0x11cd8d:0x14e,_0x857492:0x10d,_0x2373a0:0x12e,_0xc79da8:0x133,_0x1b5281:0x10d},_0x25e555=_0x3af863;for(const _0x2e7218 of _0x305042[_0x25e555(_0x5cd4cd._0x11cd8d)](/\r?\n/)){const _0x2ad880=_0x2e7218[_0x25e555(_0x5cd4cd._0x857492)]();if(_0x2ad880===''||_0x2ad880['startsWith']('#'))continue;const _0x2b9d3b=_0x2ad880[_0x25e555(_0x5cd4cd._0x2373a0)]('=');if(_0x2b9d3b<=0x0)continue;const _0x39cc4e=_0x2ad880[_0x25e555(_0x5cd4cd._0xc79da8)](0x0,_0x2b9d3b)[_0x25e555(0x10d)]();if(!ENV_KEY_RE['test'](_0x39cc4e))continue;yield[_0x39cc4e,_0x2ad880[_0x25e555(0x133)](_0x2b9d3b+0x1)[_0x25e555(_0x5cd4cd._0x1b5281)]()];}}__name(assignmentEntries,_0x3af863(0xed));function parseEnvContent(_0x1953f0){const _0x2cc9ab={_0x57a554:0x163,_0x5a360a:0x133},_0x179b07=_0x3af863,_0xd02196={};for(const [_0x361bf0,_0x1035fb]of assignmentEntries(_0x1953f0)){let _0x19480e=_0x1035fb;if(_0x19480e[_0x179b07(_0x2cc9ab._0x57a554)]>=0x2){const _0x3bb840=_0x19480e[0x0],_0x180ba8=_0x19480e[_0x19480e['length']-0x1];(_0x3bb840==='\x22'||_0x3bb840==='\x27')&&_0x3bb840===_0x180ba8&&(_0x19480e=_0x19480e[_0x179b07(_0x2cc9ab._0x5a360a)](0x1,-0x1));}_0xd02196[_0x361bf0]=_0x19480e;}return _0xd02196;}__name(parseEnvContent,_0x3af863(0x150));function serializeEnvValue(_0x49261d){const _0x40a8de={_0x2fc71f:0x141,_0x480b77:0x14c},_0x566c11=_0x3af863;if(_0x49261d==='')return'';if(/[\s#"'=\\]|^[`]/[_0x566c11(_0x40a8de._0x2fc71f)](_0x49261d)||/[\n\r]/[_0x566c11(_0x40a8de._0x2fc71f)](_0x49261d)){const _0x3b13fa=_0x49261d[_0x566c11(0x14c)](/\\/g,'\x5c\x5c')['replace'](/"/g,'\x5c\x22')[_0x566c11(0x14c)](/\n/g,'\x5cn')[_0x566c11(_0x40a8de._0x480b77)](/\r/g,'\x5cr');return'\x22'+_0x3b13fa+'\x22';}return _0x49261d;}__name(serializeEnvValue,_0x3af863(0x159));function envKeys(_0x7592e2){const _0xec33c5={_0x3000c4:0x12c},_0x5756a2=_0x3af863,_0x102d9b=new Set();for(const [_0x255e6c]of assignmentEntries(_0x7592e2))_0x102d9b[_0x5756a2(_0xec33c5._0x3000c4)](_0x255e6c);return _0x102d9b;}__name(envKeys,_0x3af863(0x137));function isSectionDivider(_0x1ece30){const _0x30e501={_0x5b2c10:0x141},_0xfa7e13=_0x3af863,_0xb63b3c=_0x1ece30['trim']();return _0xb63b3c['startsWith']('#')&&/---/[_0xfa7e13(_0x30e501._0x5b2c10)](_0xb63b3c);}__name(isSectionDivider,_0x3af863(0xe7));function isAssignmentLine(_0x42f45b){const _0x3494c5={_0x54fa5f:0x10d},_0x47e9db=_0x3af863,_0x783a7=_0x42f45b[_0x47e9db(0x10d)]();if(_0x783a7===''||_0x783a7[_0x47e9db(0xfe)]('#'))return![];const _0x3ec538=_0x783a7[_0x47e9db(0x12e)]('=');return _0x3ec538>0x0&&ENV_KEY_RE[_0x47e9db(0x141)](_0x783a7[_0x47e9db(0x133)](0x0,_0x3ec538)[_0x47e9db(_0x3494c5._0x54fa5f)]());}__name(isAssignmentLine,_0x3af863(0x15d));function isAssignmentOf(_0x13573,_0x2e2e12){const _0x3b0e3d={_0x4575df:0x10d},_0x3e529c=_0x3af863,_0x4ff7fa=_0x13573['trim']();if(_0x4ff7fa===''||_0x4ff7fa[_0x3e529c(0xfe)]('#'))return![];const _0x2be79a=_0x4ff7fa[_0x3e529c(0x12e)]('=');if(_0x2be79a<=0x0)return![];return _0x4ff7fa['slice'](0x0,_0x2be79a)[_0x3e529c(_0x3b0e3d._0x4575df)]()===_0x2e2e12;}__name(isAssignmentOf,_0x3af863(0xf2));function splitLines(_0x4ea897){const _0x4d7f7d={_0x3ad332:0x164},_0x18e2fc=_0x3af863,_0x279d9=_0x4ea897[_0x18e2fc(_0x4d7f7d._0x3ad332)]('\x0a'),_0x4d557f=_0x279d9?_0x4ea897['slice'](0x0,-0x1):_0x4ea897;return{'lines':_0x4d557f===''?[]:_0x4d557f['split']('\x0a'),'trailingNewline':_0x279d9};}__name(splitLines,_0x3af863(0x148));function joinLines(_0x48d273,_0x2c51ec){const _0x1baf2e=_0x48d273['join']('\x0a');return _0x2c51ec||_0x1baf2e===''?_0x1baf2e+'\x0a':_0x1baf2e;}__name(joinLines,_0x3af863(0x126));function insertEnvVar(_0x2ce0d7,_0x1305da,_0x1d4a84,_0x592885){const _0x5404a1={_0x1a310f:0x10b,_0x388478:0x163,_0xf1d692:0x13e,_0x4d5dab:0x129},_0x4159ad=_0x3af863,_0x4e75f8=_0x1305da+'='+serializeEnvValue(_0x1d4a84),{lines:_0x53d799,trailingNewline:_0x44d980}=splitLines(_0x2ce0d7);if(_0x592885){const _0x21f75e=new RegExp('\x5cb'+_0x592885['toLowerCase']()+'\x5cb'),_0x101836=_0x53d799[_0x4159ad(_0x5404a1._0x1a310f)](_0x485c72=>isSectionDivider(_0x485c72)&&_0x21f75e['test'](_0x485c72[_0x4159ad(0x130)]()));if(_0x101836!==-0x1){let _0x175bc2=_0x53d799['length'];for(let _0x5b060e=_0x101836+0x1;_0x5b060e<_0x53d799[_0x4159ad(_0x5404a1._0x388478)];_0x5b060e++){if(isSectionDivider(_0x53d799[_0x5b060e])){_0x175bc2=_0x5b060e;break;}}let _0x2c54c0=-0x1,_0x143a0b=-0x1;for(let _0x19e9bb=_0x101836+0x1;_0x19e9bb<_0x175bc2;_0x19e9bb++){if(_0x53d799[_0x19e9bb]['trim']()!=='')_0x143a0b=_0x19e9bb;if(isAssignmentLine(_0x53d799[_0x19e9bb]))_0x2c54c0=_0x19e9bb;}const _0x46726a=_0x2c54c0>=0x0?_0x2c54c0:_0x143a0b,_0x2beb12=_0x46726a>=0x0?_0x46726a+0x1:_0x101836+0x1;return _0x53d799[_0x4159ad(0x131)](_0x2beb12,0x0,_0x4e75f8),joinLines(_0x53d799,_0x44d980||_0x53d799[_0x4159ad(0x163)]>0x0);}if(_0x53d799[_0x4159ad(_0x5404a1._0x388478)]>0x0)_0x53d799['push']('');return _0x53d799[_0x4159ad(_0x5404a1._0xf1d692)]('#\x20---\x20'+_0x592885+_0x4159ad(_0x5404a1._0x4d5dab),_0x4e75f8),joinLines(_0x53d799,!![]);}return _0x53d799['push'](_0x4e75f8),joinLines(_0x53d799,!![]);}__name(insertEnvVar,_0x3af863(0x156));function removeEnvVar(_0x5cfe9b,_0x296461){const _0x1c0857={_0x1bb897:0xee},_0x42c45d=_0x3af863,{lines:_0x18b79b,trailingNewline:_0x26bcb4}=splitLines(_0x5cfe9b),_0x554dce=_0x18b79b[_0x42c45d(_0x1c0857._0x1bb897)](_0x155987=>!isAssignmentOf(_0x155987,_0x296461)),_0x4bdab9=_0x554dce[_0x42c45d(0x163)]!==_0x18b79b[_0x42c45d(0x163)];return{'content':joinLines(_0x554dce,_0x26bcb4),'removed':_0x4bdab9};}__name(removeEnvVar,_0x3af863(0xfc));var SECTION_BY_KIND={'app':_0x3af863(0xf6),'runner':'Runner','secret':void 0x0};function planAddVariable(_0x3c88ae){const _0x1495a3={_0xa3396c:0x165,_0x22397c:0x11a,_0x5851cd:0x128,_0x290788:0x142,_0x15118d:0x157,_0x1c0a63:0x11f,_0xa26f2e:0x143,_0x2eecfc:0x143},_0x14176e=_0x3af863,{name:_0x5a8edd,kind:_0x568275}=_0x3c88ae;if(_0x568275===_0x14176e(_0x1495a3._0xa3396c)){if(!isRunnerConfigKey(_0x5a8edd))return{'ok':![],'code':_0x14176e(0xe8),'message':_0x5a8edd+'\x20is\x20not\x20a\x20known\x20runner\x20setting\x20—\x20choose\x20one\x20from\x20the\x20runner-config\x20list.'};}else{if(!isExternalVarName(_0x5a8edd))return{'ok':![],'code':_0x14176e(_0x1495a3._0x22397c),'message':_0x5a8edd+_0x14176e(_0x1495a3._0x5851cd)};}const _0x3f7dee=envKeys(_0x3c88ae[_0x14176e(_0x1495a3._0x290788)])[_0x14176e(_0x1495a3._0x15118d)](_0x5a8edd),_0x37f47e=envKeys(_0x3c88ae['secretsContent'])['has'](_0x5a8edd),_0x107c4b=_0x568275==='secret'?_0x14176e(0x101):_0x14176e(0xf9),_0x38302b=_0x107c4b===_0x14176e(0x101)?_0x37f47e:_0x3f7dee,_0x291f59=_0x107c4b===_0x14176e(0x101)?_0x14176e(_0x1495a3._0x1c0a63):_0x14176e(0x146);if(_0x38302b)return{'ok':![],'code':_0x14176e(0x14d),'message':_0x5a8edd+_0x14176e(0x132)+_0x291f59+'\x20—\x20pick\x20a\x20different\x20name\x20or\x20edit\x20the\x20existing\x20value.'};const _0x603722=[];return _0x568275===_0x14176e(_0x1495a3._0xa26f2e)&&_0x3f7dee&&_0x603722['push'](_0x5a8edd+'\x20is\x20also\x20set\x20in\x20unotest/.env\x20—\x20the\x20secret\x20value\x20now\x20shadows\x20it.'),_0x568275!==_0x14176e(_0x1495a3._0x2eecfc)&&_0x37f47e&&_0x603722[_0x14176e(0x13e)](_0x5a8edd+_0x14176e(0xf1)),{'ok':!![],'target':_0x107c4b,'sectionLabel':SECTION_BY_KIND[_0x568275],'warnings':_0x603722};}__name(planAddVariable,_0x3af863(0x134));function deleteShadowWarning(_0x3d5690,_0x4a7604,_0x1bf08b){const _0x434fd0={_0x24ebc7:0x166},_0x535c8e=_0x3af863;if(_0x1bf08b!==void 0x0&&_0x1bf08b!==_0x4a7604)return[_0x3d5690+_0x535c8e(_0x434fd0._0x24ebc7)];return[];}__name(deleteShadowWarning,'deleteShadowWarning');var TERMINAL_RUNTIME_STATES=[_0x3af863(0xe2),_0x3af863(0xf5),_0x3af863(0x104)];function isTerminalRuntimeState(_0x292e8b){const _0x54fe09={_0x1e6c18:0x13f},_0x12d066=_0x3af863;return TERMINAL_RUNTIME_STATES[_0x12d066(_0x54fe09._0x1e6c18)](_0x292e8b);}__name(isTerminalRuntimeState,_0x3af863(0x160));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 _0x1ce8ec=_0x377d;(function(_0x315439,_0x34e267){const _0x836400={_0x5860bd:0x130,_0x28d9ca:0x14d,_0x4d6561:0x135,_0x52bab0:0x10d,_0x2179ad:0x151,_0x46dd0e:0x10b,_0xfe8d3d:0x142},_0x1f08e4=_0x377d,_0x3bb102=_0x315439();while(!![]){try{const _0x8ab748=parseInt(_0x1f08e4(_0x836400._0x5860bd))/0x1*(-parseInt(_0x1f08e4(_0x836400._0x28d9ca))/0x2)+-parseInt(_0x1f08e4(_0x836400._0x4d6561))/0x3*(parseInt(_0x1f08e4(0xff))/0x4)+-parseInt(_0x1f08e4(0xf8))/0x5+parseInt(_0x1f08e4(_0x836400._0x52bab0))/0x6+parseInt(_0x1f08e4(_0x836400._0x2179ad))/0x7*(parseInt(_0x1f08e4(_0x836400._0x46dd0e))/0x8)+-parseInt(_0x1f08e4(0x113))/0x9+parseInt(_0x1f08e4(_0x836400._0xfe8d3d))/0xa;if(_0x8ab748===_0x34e267)break;else _0x3bb102['push'](_0x3bb102['shift']());}catch(_0x14b1d7){_0x3bb102['push'](_0x3bb102['shift']());}}}(_0x3b73,0x282dd));var __defProp=Object[_0x1ce8ec(0x10a)],__name=(_0x374b8f,_0x2abc90)=>__defProp(_0x374b8f,_0x1ce8ec(0x105),{'value':_0x2abc90,'configurable':!![]});function parseAppServerEvent(_0x113da5){const _0x48d967=_0x1ce8ec,_0x2f307f=_0x113da5[_0x48d967(0x153)]();if(!_0x2f307f[_0x48d967(0x14e)]('{'))return null;try{const _0x1abb50=JSON['parse'](_0x2f307f);if(_0x1abb50['kind']==='app-server:ready'||_0x1abb50[_0x48d967(0xf3)]==='app-server:reused'||_0x1abb50[_0x48d967(0xf3)]===_0x48d967(0x140))return _0x1abb50;return null;}catch{return null;}}__name(parseAppServerEvent,_0x1ce8ec(0x100));var UNOTEST_DIR=_0x1ce8ec(0x14c),E2E_SUBDIR=_0x1ce8ec(0x11e),HELPERS_SUBDIR=_0x1ce8ec(0x144),COLLECTIONS_SUBDIR='_collections',RUNS_SUBDIR='.runs',SNAPSHOTS_SUBDIR=_0x1ce8ec(0x123);function testDirFor(_0x2b5e14){return''+E2E_SUBDIR+_0x2b5e14;}__name(testDirFor,'testDirFor');function runsDirFor(_0x2fb857){return''+RUNS_SUBDIR+_0x2fb857;}__name(runsDirFor,'runsDirFor');function debugDirFor(_0x485102){const _0x4c41b2={_0x3c4b54:0x110},_0x498e41=_0x1ce8ec;return _0x498e41(_0x4c41b2._0x3c4b54)+_0x485102;}__name(debugDirFor,_0x1ce8ec(0x152));function debuggerFileFor(_0x806c94){const _0x45215c=_0x1ce8ec;return UNOTEST_DIR+'/.debugger'+_0x806c94+_0x45215c(0x14a);}__name(debuggerFileFor,_0x1ce8ec(0xdd));var LOCK_FILE=_0x1ce8ec(0xf9),LOG_FILE=_0x1ce8ec(0x12d),STEPS_FILE=_0x1ce8ec(0x121),HEARTBEAT_FILE=_0x1ce8ec(0x104),STDOUT_FILE=_0x1ce8ec(0x13a),STDERR_FILE=_0x1ce8ec(0x111),COMMANDS_FILE=_0x1ce8ec(0xd3),RUNTIME_FILE='runtime.json',PICKER_SNAPSHOT_FILE=_0x1ce8ec(0xdb),ENV_FILE=_0x1ce8ec(0x146),SECRETS_FILE=_0x1ce8ec(0x11a);function envFileFor(_0x55d332,_0xe10ca4){return''+ENV_FILE+_0x55d332+(_0xe10ca4?'.'+_0xe10ca4:'');}__name(envFileFor,_0x1ce8ec(0x10f));function secretsFileFor(_0x12bfb0,_0x5d5ce3){return''+SECRETS_FILE+_0x12bfb0+(_0x5d5ce3?'.'+_0x5d5ce3:'');}__name(secretsFileFor,_0x1ce8ec(0xe5));function envLayerFilesFor(_0x47f1d3,_0x2e1746){return layersFor(ENV_FILE,_0x47f1d3,_0x2e1746);}__name(envLayerFilesFor,_0x1ce8ec(0x103));function secretsLayerFilesFor(_0x17fc82,_0x54caf1){return layersFor(SECRETS_FILE,_0x17fc82,_0x54caf1);}__name(secretsLayerFilesFor,_0x1ce8ec(0xd9));function layersFor(_0x228a1d,_0x2a2855,_0x545bff){const _0x6b57c2={_0x65b596:0x126},_0x2d65ca=_0x1ce8ec,_0x95eefd=[_0x228a1d];if(_0x2a2855)_0x95eefd[_0x2d65ca(0x126)](''+_0x228a1d+_0x2a2855);if(_0x545bff){_0x95eefd[_0x2d65ca(_0x6b57c2._0x65b596)](_0x228a1d+'.'+_0x545bff);if(_0x2a2855)_0x95eefd['push'](''+_0x228a1d+_0x2a2855+'.'+_0x545bff);}return _0x95eefd;}__name(layersFor,_0x1ce8ec(0x10e));function activeEnvName(_0x1399da){const _0x11be44=_0x1ce8ec,_0x26bf14=_0x1399da[_0x11be44(0x120)]?.[_0x11be44(0x153)]();return _0x26bf14?_0x26bf14:void 0x0;}__name(activeEnvName,_0x1ce8ec(0x116));function isRegexLiteral(_0x30eae2){const _0x3596dd={_0x5b36c9:0x108,_0x43e9e8:0xd6},_0x292ed7=_0x1ce8ec;return typeof _0x30eae2===_0x292ed7(0x133)&&_0x30eae2!==null&&_0x30eae2['kind']===_0x292ed7(_0x3596dd._0x5b36c9)&&typeof _0x30eae2[_0x292ed7(0x13f)]===_0x292ed7(_0x3596dd._0x43e9e8)&&typeof _0x30eae2['flags']==='string';}__name(isRegexLiteral,_0x1ce8ec(0xea));function regexLiteral(_0x1a594e,_0x5629c2=''){const _0x430065={_0x2de524:0x108},_0x598f84=_0x1ce8ec;return{'kind':_0x598f84(_0x430065._0x2de524),'source':_0x1a594e,'flags':_0x5629c2};}__name(regexLiteral,_0x1ce8ec(0xe1));var RAND_BYTES=0x3;function makeRunId(_0x36f812){const _0xc5f616={_0x30fed6:0x125,_0x458dfd:0x136,_0xaef60d:0x13c},_0x84d78d=_0x1ce8ec,_0x14cf40=sanitizeRunIdSegment(_0x36f812),_0x2fe532=Date[_0x84d78d(_0xc5f616._0x30fed6)]()[_0x84d78d(_0xc5f616._0x458dfd)](0x24),_0x11ce3e=new Uint8Array(RAND_BYTES);globalThis['crypto'][_0x84d78d(_0xc5f616._0xaef60d)](_0x11ce3e);let _0x72bd3b='';for(let _0x3445fb=0x0;_0x3445fb<_0x11ce3e['length'];_0x3445fb++){_0x72bd3b+=_0x11ce3e[_0x3445fb]['toString'](0x10)[_0x84d78d(0xda)](0x2,'0');}return _0x14cf40+'-'+_0x2fe532+'-'+_0x72bd3b;}__name(makeRunId,_0x1ce8ec(0xec));function sanitizeRunIdSegment(_0x8fc35c){const _0x3144f1={_0xf794f7:0xe8,_0x43b713:0x107,_0x5ea7aa:0xfd},_0x396233=_0x1ce8ec,_0x37119e=_0x8fc35c['replace'](/[^a-zA-Z0-9_-]+/g,'-')[_0x396233(0xe8)](/-+/g,'-')[_0x396233(_0x3144f1._0xf794f7)](/^-|-$/g,'');return _0x37119e[_0x396233(_0x3144f1._0x43b713)]>0x0?_0x37119e:_0x396233(_0x3144f1._0x5ea7aa);}__name(sanitizeRunIdSegment,_0x1ce8ec(0x114));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x1e1d33,_0x10c119){const _0x15cbb5={_0x413ec4:0x119,_0x353464:0x101,_0x11473b:0x14e,_0x4d8a8e:0x11f,_0x1a083b:0x143},_0x384c13=_0x1ce8ec;if(typeof _0x1e1d33!==_0x384c13(0xd6))return _0x384c13(0xef);const _0x34eddd=_0x1e1d33[_0x384c13(0x153)]();if(_0x34eddd['length']===0x0)return'must\x20not\x20be\x20empty';if(_0x34eddd==='.'||_0x34eddd==='..')return'must\x20not\x20be\x20\x22.\x22\x20or\x20\x22..\x22';if(_0x34eddd[_0x384c13(0x14e)]('.'))return _0x384c13(_0x15cbb5._0x413ec4);if(_0x10c119?.[_0x384c13(_0x15cbb5._0x353464)]&&_0x34eddd[_0x384c13(_0x15cbb5._0x11473b)]('_'))return _0x384c13(_0x15cbb5._0x4d8a8e);if(FS_UNSAFE_NAME_RE[_0x384c13(_0x15cbb5._0x1a083b)](_0x34eddd))return _0x384c13(0xe0);return null;}__name(validateFsSafeName,_0x1ce8ec(0xf7));function _0x3b73(){const _0x6ade71=['Aw5KzxHpzG','ywn0AxzLrw52tMfTzq','vu5pvevtvf9iruferuq','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','Dw5VDgvZDc8UC2vJCMv0CW','CMvTB3zLrw52vMfY','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','vu5pvevtvf9eruzbvuXux05bvKLhqvrjt05FveLnru9vvf9nuW','ztjL','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','vu5pvevtvf9ftLy','C3rLChmUANnVBMW','AxnfEhrLCM5HBfzHCK5HBwu','lNnUyxbZAg90CW','y2f0zwDVCML6zvzHCMLHyMXL','BM93','ChvZAa','vu5pvevtvf9erujvr19lruvqx0nbteXt','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','vu5pvevtvf9mt0DFtevwruW','rK9sq0vFq09mt1i','C2vJCMv0C0nVBNrLBNq','vu5pvevtvf9usu1fwK9orq','lNzPzxDLCI5SB2C','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','zw52s2v5CW','mKfQq01UsW','CgfYC2vfBNzdB250zw50','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','B2jQzwn0','zMLSDgvY','oxbNswvWEq','Dg9tDhjPBMC','AxnsDw5UzxjdB25MAwDlzxK','Dg9mB3DLCKnHC2u','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','C3rKB3v0lMXVzW','vu5pvevtvf9orvrxt1jl','z2v0uMfUzg9TvMfSDwvZ','C2XPy2u','BwfUAwzLC3qUANnVBG','C291CMnL','yxbWlxnLCNzLCJPLCNjVCG','vu5pvevtvf9cuK9xu0vs','nZeZmtG2mhbrt2rWra','DgvZDa','x2HLBhbLCNm','Axntzwn0Aw9UrgL2AwrLCG','Dw5VDgvZDc8Uzw52','AM9PBKXPBMvZ','tK9Fq09mt1i','zw52','lMPZB24','Dw5RBM93BI1YDw5UzxiTA2v5','Dw5VDgvZDa','ntyYmZzUzer3qw0','C3rHCNrZv2L0Aa','AgfZ','AM9PBG','ntq1m2TSEeHXBq','zgvIDwDeAxjgB3i','DhjPBq','DMfSAwrHDgvtzwDTzw50tMfTzq','CgXHBKfKzfzHCMLHyMXL','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','y29TBwfUzhmUANnVBMW','yxbW','qxbW','C3rYAw5N','Aw52ywXPzc1Uyw1L','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','C2vJCMv0C0XHEwvYrMLSzxngB3i','CgfKu3rHCNq','CgLJA2vYlxnUyxbZAg90lNr4Da','CNvUBMvYici','zgvIDwDNzxjgAwXLrM9Y','DgvYBwLUywW','vu5pvevtvf9tte9xx01p','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','CMvNzxHmAxrLCMfS','y29TCgXLDgvK','zMfPBgvK','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','C2vJCMv0C0zPBgvgB3i','C2vYAwfSAxPLrw52vMfSDwu','zw52q29UDgvUDa','CMvWBgfJzq','vu5pvevtvf9dqunirv9esvi','AxnszwDLEeXPDgvYywW','C3bSAxq','BwfRzvj1BKLK','C2vJCMv0','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','BxvZDcbIzsbHihn0CMLUzW','C3bSAwnL','AxnbC3nPz25Tzw50tgLUzq','CNvUBMvY','A2LUza','ywrK','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','yxnZAwDUBwvUDevUDhjPzxm','DMfSAwrHDgvgC1nHzMvoyw1L','mti5odyZnvzQzhDkBW','lNzPzxDLCI5SB2nR','vu5pvevtvf9erujvr19nqvHFqLLurvm','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','CNvU','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','mtCXnJC2u2LPv2jd','CgfYC2vbChbtzxj2zxjfDMvUDa','CMvZzxj2zwrvBMrLCNnJB3jL','zw5KC1DPDgG','zw52tgf5zxjgAwXLC0zVCG','AgvHCNrIzwf0','BMfTzq','zhvWBgLJyxrL','BgvUz3rO','CMvNzxG','C2vJCMv0CW','zgvMAw5LuhjVCgvYDhK','mJrVuLfOENG','vu5pvevtvf9dt05tt0Xf','mti0ntGWne1MEvHLvq','Bgf5zxjZrM9Y','zw52rMLSzuzVCG','lMrLyNvN','C3rKzxjYlMXVzW','iYaTls0G','mJGYndC3nKfIC0T5Ba','C2fUAxrPEMvsDw5jzfnLz21LBNq'];_0x3b73=function(){return _0x6ade71;};return _0x3b73();}var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x28a0c0){return validateFsSafeName(_0x28a0c0);}__name(validateCollectionName,_0x1ce8ec(0x118));var RUN_MANIFEST_FILE=_0x1ce8ec(0x13e),RUN_SOURCES_FILE='sources.json',UnsupportedRunKindError=class extends Error{static{__name(this,_0x1ce8ec(0x132));}constructor(_0x37e802,_0xa8bb9c){const _0x1de39c={_0x12dfaf:0xdc},_0x11c5d5=_0x1ce8ec;super(_0x11c5d5(_0x1de39c._0x12dfaf)+_0xa8bb9c+_0x11c5d5(0xee)+_0x37e802+'\x22'),this[_0x11c5d5(0x105)]='UnsupportedRunKindError';}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,'RunnerAdapterNotFoundError');}constructor(_0x3ebde0,_0x3284e5){const _0x2d0579={_0xb7b46:0x105},_0x36a58d=_0x1ce8ec;super(_0x36a58d(0xd8)+_0x3ebde0+'\x22.\x20'+_0x3284e5),this[_0x36a58d(_0x2d0579._0xb7b46)]='RunnerAdapterNotFoundError';}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0x1ce8ec(0xfe));}constructor(_0x4af31a){const _0x5af9de=_0x1ce8ec;super(_0x4af31a),this[_0x5af9de(0x105)]=_0x5af9de(0xfe);}},SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x1fe39b){return validateFsSafeName(_0x1fe39b,{'reservedUnderscore':!![]});}__name(validateSegmentName,_0x1ce8ec(0x154));var TERMINAL_WS_EVENT=_0x1ce8ec(0xde),RUNNER_CONFIG_KEYS=new Set([_0x1ce8ec(0x141),_0x1ce8ec(0x117),_0x1ce8ec(0xdf),_0x1ce8ec(0x128),_0x1ce8ec(0x11d),_0x1ce8ec(0x12e),'UNOTEST_LOCALE',_0x1ce8ec(0x12c),_0x1ce8ec(0x129),'UNOTEST_DEBUG','UNOTEST_DEBUG_DIR',_0x1ce8ec(0xfa),'UNOTEST_DEBUG_PREVIEW_BYTES',_0x1ce8ec(0x11c),_0x1ce8ec(0x127),_0x1ce8ec(0x13b),_0x1ce8ec(0x10c),_0x1ce8ec(0xe9),_0x1ce8ec(0x148),_0x1ce8ec(0x12a),'DATABASE_URL']);function isRunnerConfigKey(_0x4b7503){const _0x1c5a36=_0x1ce8ec;return RUNNER_CONFIG_KEYS[_0x1c5a36(0x14f)](_0x4b7503);}__name(isRunnerConfigKey,_0x1ce8ec(0x137));function categorizeVariable(_0x96b4e9){const _0x24d7ed={_0x1ff7f2:0x13f,_0x241690:0x109,_0x3cb6fa:0xed,_0x3c688f:0x105,_0x3972f3:0xd4},_0x1082a1=_0x1ce8ec;if(_0x96b4e9[_0x1082a1(_0x24d7ed._0x1ff7f2)]===_0x1082a1(_0x24d7ed._0x241690))return _0x1082a1(_0x24d7ed._0x3cb6fa);return isRunnerConfigKey(_0x96b4e9[_0x1082a1(_0x24d7ed._0x3c688f)])?_0x1082a1(0xf2):_0x1082a1(_0x24d7ed._0x3972f3);}__name(categorizeVariable,_0x1ce8ec(0x124));function isExternalVarName(_0xc65ba9){const _0x2394ca=_0x1ce8ec;return/^[A-Z][A-Z0-9_]*$/[_0x2394ca(0x143)](_0xc65ba9);}__name(isExternalVarName,_0x1ce8ec(0x122));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function*assignmentEntries(_0x411289){const _0x4612cd={_0x684c07:0x153,_0x2cde91:0x115,_0x3b5075:0x153,_0x12cc8d:0x13d},_0x2e02c4=_0x1ce8ec;for(const _0x1ab606 of _0x411289[_0x2e02c4(0xeb)](/\r?\n/)){const _0x3636a0=_0x1ab606[_0x2e02c4(_0x4612cd._0x684c07)]();if(_0x3636a0===''||_0x3636a0[_0x2e02c4(0x14e)]('#'))continue;const _0x49efb4=_0x3636a0[_0x2e02c4(_0x4612cd._0x2cde91)]('=');if(_0x49efb4<=0x0)continue;const _0x2c0b2c=_0x3636a0['slice'](0x0,_0x49efb4)[_0x2e02c4(_0x4612cd._0x3b5075)]();if(!ENV_KEY_RE[_0x2e02c4(0x143)](_0x2c0b2c))continue;yield[_0x2c0b2c,_0x3636a0[_0x2e02c4(_0x4612cd._0x12cc8d)](_0x49efb4+0x1)[_0x2e02c4(_0x4612cd._0x3b5075)]()];}}__name(assignmentEntries,_0x1ce8ec(0xf6));function parseEnvContent(_0x5e1feb){const _0x156939={_0x3a2f66:0x107},_0x3f6135=_0x1ce8ec,_0x357e9e={};for(const [_0x4f6469,_0x940385]of assignmentEntries(_0x5e1feb)){let _0x35d584=_0x940385;if(_0x35d584[_0x3f6135(0x107)]>=0x2){const _0x26d2fc=_0x35d584[0x0],_0x4d5655=_0x35d584[_0x35d584[_0x3f6135(_0x156939._0x3a2f66)]-0x1];(_0x26d2fc==='\x22'||_0x26d2fc==='\x27')&&_0x26d2fc===_0x4d5655&&(_0x35d584=_0x35d584[_0x3f6135(0x13d)](0x1,-0x1));}_0x357e9e[_0x4f6469]=_0x35d584;}return _0x357e9e;}__name(parseEnvContent,_0x1ce8ec(0x131));function serializeEnvValue(_0x2097bb){const _0xffac58={_0xe28798:0x143,_0x444522:0xe8},_0x954ff0=_0x1ce8ec;if(_0x2097bb==='')return'';if(/[\s#"'=\\]|^[`]/[_0x954ff0(0x143)](_0x2097bb)||/[\n\r]/[_0x954ff0(_0xffac58._0xe28798)](_0x2097bb)){const _0x3cc2ca=_0x2097bb[_0x954ff0(0xe8)](/\\/g,'\x5c\x5c')['replace'](/"/g,'\x5c\x22')[_0x954ff0(0xe8)](/\n/g,'\x5cn')[_0x954ff0(_0xffac58._0x444522)](/\r/g,'\x5cr');return'\x22'+_0x3cc2ca+'\x22';}return _0x2097bb;}__name(serializeEnvValue,_0x1ce8ec(0xe6));function envKeys(_0x1e4382){const _0xa0616f={_0x3188ac:0xf4},_0x8b15f8=_0x1ce8ec,_0x20a6a4=new Set();for(const [_0x113e8c]of assignmentEntries(_0x1e4382))_0x20a6a4[_0x8b15f8(_0xa0616f._0x3188ac)](_0x113e8c);return _0x20a6a4;}__name(envKeys,_0x1ce8ec(0x12f));function isSectionDivider(_0xec10eb){const _0x137f1f={_0x56701f:0x153,_0x21e913:0x14e,_0x30e939:0x143},_0x5ba7f8=_0x1ce8ec,_0x5831e7=_0xec10eb[_0x5ba7f8(_0x137f1f._0x56701f)]();return _0x5831e7[_0x5ba7f8(_0x137f1f._0x21e913)]('#')&&/---/[_0x5ba7f8(_0x137f1f._0x30e939)](_0x5831e7);}__name(isSectionDivider,_0x1ce8ec(0x145));function isAssignmentLine(_0x4de313){const _0x28e8a2={_0x1a4214:0x14e},_0x403588=_0x1ce8ec,_0x2f7893=_0x4de313[_0x403588(0x153)]();if(_0x2f7893===''||_0x2f7893[_0x403588(_0x28e8a2._0x1a4214)]('#'))return![];const _0x34b5f6=_0x2f7893['indexOf']('=');return _0x34b5f6>0x0&&ENV_KEY_RE['test'](_0x2f7893[_0x403588(0x13d)](0x0,_0x34b5f6)[_0x403588(0x153)]());}__name(isAssignmentLine,_0x1ce8ec(0xf1));function isAssignmentOf(_0x5dbb21,_0x5d83c8){const _0x2e9c64={_0x451a2e:0x153,_0x536016:0x14e,_0x4013ac:0x13d},_0x4ffde1=_0x1ce8ec,_0x1990b2=_0x5dbb21[_0x4ffde1(_0x2e9c64._0x451a2e)]();if(_0x1990b2===''||_0x1990b2[_0x4ffde1(_0x2e9c64._0x536016)]('#'))return![];const _0x5fabfb=_0x1990b2[_0x4ffde1(0x115)]('=');if(_0x5fabfb<=0x0)return![];return _0x1990b2[_0x4ffde1(_0x2e9c64._0x4013ac)](0x0,_0x5fabfb)[_0x4ffde1(_0x2e9c64._0x451a2e)]()===_0x5d83c8;}__name(isAssignmentOf,'isAssignmentOf');function splitLines(_0x3f8436){const _0x171010={_0x13fd67:0x102,_0x2bf6b3:0x13d},_0x2a1995=_0x1ce8ec,_0x980ae0=_0x3f8436[_0x2a1995(_0x171010._0x13fd67)]('\x0a'),_0x47a6fe=_0x980ae0?_0x3f8436[_0x2a1995(_0x171010._0x2bf6b3)](0x0,-0x1):_0x3f8436;return{'lines':_0x47a6fe===''?[]:_0x47a6fe[_0x2a1995(0xeb)]('\x0a'),'trailingNewline':_0x980ae0};}__name(splitLines,'splitLines');function joinLines(_0x2f733d,_0x4b4a0d){const _0x213b71=_0x1ce8ec,_0x2116e6=_0x2f733d[_0x213b71(0x150)]('\x0a');return _0x4b4a0d||_0x2116e6===''?_0x2116e6+'\x0a':_0x2116e6;}__name(joinLines,_0x1ce8ec(0x147));function insertEnvVar(_0x27c5e7,_0x106eb7,_0x358684,_0x210a0f){const _0x4fcc59={_0x17c31e:0x138,_0x22d1b4:0xf0,_0x425f3b:0x126},_0x495d11=_0x1ce8ec,_0x5b1d3a=_0x106eb7+'='+serializeEnvValue(_0x358684),{lines:_0x37af7e,trailingNewline:_0xb8b6b8}=splitLines(_0x27c5e7);if(_0x210a0f){const _0x38449a=new RegExp('\x5cb'+_0x210a0f[_0x495d11(_0x4fcc59._0x17c31e)]()+'\x5cb'),_0x493d5d=_0x37af7e['findIndex'](_0x2d1477=>isSectionDivider(_0x2d1477)&&_0x38449a[_0x495d11(0x143)](_0x2d1477['toLowerCase']()));if(_0x493d5d!==-0x1){let _0x44bd44=_0x37af7e['length'];for(let _0x312454=_0x493d5d+0x1;_0x312454<_0x37af7e['length'];_0x312454++){if(isSectionDivider(_0x37af7e[_0x312454])){_0x44bd44=_0x312454;break;}}let _0x2ab6f2=-0x1,_0x28ad9c=-0x1;for(let _0x1b0d55=_0x493d5d+0x1;_0x1b0d55<_0x44bd44;_0x1b0d55++){if(_0x37af7e[_0x1b0d55][_0x495d11(0x153)]()!=='')_0x28ad9c=_0x1b0d55;if(isAssignmentLine(_0x37af7e[_0x1b0d55]))_0x2ab6f2=_0x1b0d55;}const _0x4145a3=_0x2ab6f2>=0x0?_0x2ab6f2:_0x28ad9c,_0x2b8fca=_0x4145a3>=0x0?_0x4145a3+0x1:_0x493d5d+0x1;return _0x37af7e[_0x495d11(_0x4fcc59._0x22d1b4)](_0x2b8fca,0x0,_0x5b1d3a),joinLines(_0x37af7e,_0xb8b6b8||_0x37af7e[_0x495d11(0x107)]>0x0);}if(_0x37af7e['length']>0x0)_0x37af7e[_0x495d11(_0x4fcc59._0x425f3b)]('');return _0x37af7e['push'](_0x495d11(0x112)+_0x210a0f+'\x20---',_0x5b1d3a),joinLines(_0x37af7e,!![]);}return _0x37af7e['push'](_0x5b1d3a),joinLines(_0x37af7e,!![]);}__name(insertEnvVar,'insertEnvVar');function removeEnvVar(_0x301dc2,_0x40133a){const _0x300b08={_0x5147c2:0x134},_0x1af161=_0x1ce8ec,{lines:_0x4bf75d,trailingNewline:_0x5edb20}=splitLines(_0x301dc2),_0x3a414d=_0x4bf75d[_0x1af161(_0x300b08._0x5147c2)](_0x10cb85=>!isAssignmentOf(_0x10cb85,_0x40133a)),_0x1e6cb9=_0x3a414d[_0x1af161(0x107)]!==_0x4bf75d['length'];return{'content':joinLines(_0x3a414d,_0x5edb20),'removed':_0x1e6cb9};}__name(removeEnvVar,_0x1ce8ec(0x11b));var SECTION_BY_KIND={'app':_0x1ce8ec(0xd5),'runner':'Runner','secret':void 0x0};function planAddVariable(_0x1be783){const _0x410e49={_0x12bc89:0xd7,_0x1d7c4c:0xe7,_0x2d2cc1:0x12b,_0x5f24c1:0x109,_0x129215:0x11a,_0x4a1883:0x146,_0x137d13:0x106,_0x597a58:0xfb,_0x1a83ea:0xed,_0x192990:0xed,_0x4ee979:0x126,_0x457d0a:0xf5},_0x47f1f7=_0x1ce8ec,{name:_0x2ea878,kind:_0x4a318a}=_0x1be783;if(_0x4a318a==='runner'){if(!isRunnerConfigKey(_0x2ea878))return{'ok':![],'code':_0x47f1f7(0x14b),'message':_0x2ea878+_0x47f1f7(0xfc)};}else{if(!isExternalVarName(_0x2ea878))return{'ok':![],'code':_0x47f1f7(_0x410e49._0x12bc89),'message':_0x2ea878+'\x20must\x20be\x20UPPER_SNAKE\x20(e.g.\x20APP_BASE_URL)\x20so\x20a\x20scenario\x20can\x20reference\x20it\x20by\x20name.'};}const _0x22880f=envKeys(_0x1be783[_0x47f1f7(_0x410e49._0x1d7c4c)])['has'](_0x2ea878),_0x12c2e5=envKeys(_0x1be783[_0x47f1f7(_0x410e49._0x2d2cc1)])[_0x47f1f7(0x14f)](_0x2ea878),_0x13c7ad=_0x4a318a==='secret'?_0x47f1f7(_0x410e49._0x5f24c1):_0x47f1f7(0x149),_0xe670c7=_0x13c7ad==='secrets'?_0x12c2e5:_0x22880f,_0x1d4020=_0x13c7ad===_0x47f1f7(0x109)?_0x47f1f7(_0x410e49._0x129215):_0x47f1f7(_0x410e49._0x4a1883);if(_0xe670c7)return{'ok':![],'code':_0x47f1f7(_0x410e49._0x137d13),'message':_0x2ea878+'\x20already\x20exists\x20in\x20'+_0x1d4020+_0x47f1f7(_0x410e49._0x597a58)};const _0x5520f1=[];return _0x4a318a===_0x47f1f7(_0x410e49._0x1a83ea)&&_0x22880f&&_0x5520f1['push'](_0x2ea878+_0x47f1f7(0x139)),_0x4a318a!==_0x47f1f7(_0x410e49._0x192990)&&_0x12c2e5&&_0x5520f1[_0x47f1f7(_0x410e49._0x4ee979)](_0x2ea878+_0x47f1f7(_0x410e49._0x457d0a)),{'ok':!![],'target':_0x13c7ad,'sectionLabel':SECTION_BY_KIND[_0x4a318a],'warnings':_0x5520f1};}__name(planAddVariable,_0x1ce8ec(0x155));function deleteShadowWarning(_0x3b966b,_0x4848e5,_0x548029){const _0x423c84=_0x1ce8ec;if(_0x548029!==void 0x0&&_0x548029!==_0x4848e5)return[_0x3b966b+_0x423c84(0xe4)];return[];}__name(deleteShadowWarning,'deleteShadowWarning');var TERMINAL_RUNTIME_STATES=[_0x1ce8ec(0xe2),_0x1ce8ec(0xe3),'aborted'];function isTerminalRuntimeState(_0x4ff4f1){return TERMINAL_RUNTIME_STATES['includes'](_0x4ff4f1);}function _0x377d(_0x2774e3,_0x3f0677){_0x2774e3=_0x2774e3-0xd3;const _0x3b7345=_0x3b73();let _0x377d19=_0x3b7345[_0x2774e3];if(_0x377d['DcKjIi']===undefined){var _0x3da3f5=function(_0x5623d0){const _0x4a4b38='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x374b8f='',_0x2abc90='';for(let _0x113da5=0x0,_0x2f307f,_0x1abb50,_0x2b5e14=0x0;_0x1abb50=_0x5623d0['charAt'](_0x2b5e14++);~_0x1abb50&&(_0x2f307f=_0x113da5%0x4?_0x2f307f*0x40+_0x1abb50:_0x1abb50,_0x113da5++%0x4)?_0x374b8f+=String['fromCharCode'](0xff&_0x2f307f>>(-0x2*_0x113da5&0x6)):0x0){_0x1abb50=_0x4a4b38['indexOf'](_0x1abb50);}for(let _0x2fb857=0x0,_0x485102=_0x374b8f['length'];_0x2fb857<_0x485102;_0x2fb857++){_0x2abc90+='%'+('00'+_0x374b8f['charCodeAt'](_0x2fb857)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2abc90);};_0x377d['fWJnrK']=_0x3da3f5,_0x377d['oIBNQu']={},_0x377d['DcKjIi']=!![];}const _0x5b3c77=_0x3b7345[0x0],_0x594fdb=_0x2774e3+_0x5b3c77,_0x29d489=_0x377d['oIBNQu'][_0x594fdb];return!_0x29d489?(_0x377d19=_0x377d['fWJnrK'](_0x377d19),_0x377d['oIBNQu'][_0x594fdb]=_0x377d19):_0x377d19=_0x29d489,_0x377d19;}__name(isTerminalRuntimeState,_0x1ce8ec(0x156));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.11.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": {
|
|
@@ -32,18 +32,5 @@
|
|
|
32
32
|
"tsup": "^8.5.1",
|
|
33
33
|
"tsx": "^4.19.2",
|
|
34
34
|
"typescript": "^5.7.2"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"typecheck": "tsc --noEmit",
|
|
38
|
-
"test": "node --import tsx --test --test-reporter=spec 'src/**/*.test.ts'",
|
|
39
|
-
"compile": "tsup",
|
|
40
|
-
"verify": "pnpm typecheck && pnpm test",
|
|
41
|
-
"obfuscate": "node scripts/obfuscate.mjs",
|
|
42
|
-
"build": "pnpm verify && pnpm compile && pnpm obfuscate && pnpm check:tarball",
|
|
43
|
-
"check:no-cyrillic": "node scripts/check-no-cyrillic.mjs",
|
|
44
|
-
"check:no-internal-refs": "node scripts/check-no-internal-refs.mjs",
|
|
45
|
-
"check:surface": "pnpm check:no-cyrillic && pnpm check:no-internal-refs",
|
|
46
|
-
"check:tarball": "node scripts/check-tarball.mjs",
|
|
47
|
-
"prepublish:check": "node scripts/prepublish-check.mjs"
|
|
48
35
|
}
|
|
49
36
|
}
|