@unotest/protocol 0.17.0 → 0.19.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 +102 -0
- package/dist/index.d.ts +1107 -951
- package/dist/index.js +1 -1
- package/package.json +1 -1
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 _0x55dbd9=_0x56d7;(function(_0x474380,_0x28e0e0){const _0x561be6={_0x91014b:0xbc,_0x22ed73:0x9c,_0x46e3f8:0xba,_0x519ab2:0xda,_0x1dec2b:0xab},_0x2fe5e=_0x56d7,_0x8b1947=_0x474380();while(!![]){try{const _0x2206cd=parseInt(_0x2fe5e(0xc1))/0x1*(-parseInt(_0x2fe5e(_0x561be6._0x91014b))/0x2)+parseInt(_0x2fe5e(0xd1))/0x3*(-parseInt(_0x2fe5e(_0x561be6._0x22ed73))/0x4)+-parseInt(_0x2fe5e(_0x561be6._0x46e3f8))/0x5+-parseInt(_0x2fe5e(0xdb))/0x6+-parseInt(_0x2fe5e(0xb3))/0x7+parseInt(_0x2fe5e(_0x561be6._0x519ab2))/0x8+-parseInt(_0x2fe5e(_0x561be6._0x1dec2b))/0x9*(-parseInt(_0x2fe5e(0xf1))/0xa);if(_0x2206cd===_0x28e0e0)break;else _0x8b1947['push'](_0x8b1947['shift']());}catch(_0x28b1de){_0x8b1947['push'](_0x8b1947['shift']());}}}(_0x1172,0xad63e));var __defProp=Object[_0x55dbd9(0xdc)],__name=(_0x18b725,_0xf9d37b)=>__defProp(_0x18b725,_0x55dbd9(0xe5),{'value':_0xf9d37b,'configurable':!![]});function parseAppServerEvent(_0x5a02d5){const _0x428109={_0x4bd19e:0xe4,_0x597ccc:0x10d,_0x298a5f:0xee},_0xc31960=_0x55dbd9,_0xcdb79a=_0x5a02d5[_0xc31960(_0x428109._0x4bd19e)]();if(!_0xcdb79a['startsWith']('{'))return null;try{const _0x9c6880=JSON[_0xc31960(_0x428109._0x597ccc)](_0xcdb79a);if(_0x9c6880[_0xc31960(_0x428109._0x298a5f)]===_0xc31960(0xd4)||_0x9c6880[_0xc31960(0xee)]===_0xc31960(0xed)||_0x9c6880[_0xc31960(_0x428109._0x298a5f)]==='app-server:error')return _0x9c6880;return null;}catch{return null;}}__name(parseAppServerEvent,_0x55dbd9(0x121));var UNOTEST_DIR=_0x55dbd9(0xa9),E2E_SUBDIR=_0x55dbd9(0xfe),HELPERS_SUBDIR=_0x55dbd9(0xf7),COLLECTIONS_SUBDIR='_collections',RUNS_SUBDIR=_0x55dbd9(0xde),SNAPSHOTS_SUBDIR='.snapshots';function testDirFor(_0x53897b){return''+E2E_SUBDIR+_0x53897b;}__name(testDirFor,_0x55dbd9(0xb4));function runsDirFor(_0x2fefd8){return''+RUNS_SUBDIR+_0x2fefd8;}__name(runsDirFor,_0x55dbd9(0xd9));function debugDirFor(_0x37ad7a){const _0x189a2e={_0x23be89:0xb5},_0x44e82b=_0x55dbd9;return _0x44e82b(_0x189a2e._0x23be89)+_0x37ad7a;}__name(debugDirFor,_0x55dbd9(0x123));function debuggerFileFor(_0x19eeb8){const _0x2aba79={_0x3a4713:0xbe},_0x9b3a61=_0x55dbd9;return UNOTEST_DIR+_0x9b3a61(_0x2aba79._0x3a4713)+_0x19eeb8+_0x9b3a61(0xc0);}__name(debuggerFileFor,_0x55dbd9(0xcf));var LOCK_FILE=_0x55dbd9(0xc4),LOG_FILE='.viewer.log',STEPS_FILE=_0x55dbd9(0x9d),HEARTBEAT_FILE=_0x55dbd9(0x9a),DAY_INDEX_FILE=_0x55dbd9(0x117),SCENARIOS_INDEX_DIR=_0x55dbd9(0xb7),SCENARIOS_LATEST_FILE='_latest.json',STDOUT_FILE=_0x55dbd9(0xfa),STDERR_FILE='stderr.log',COMMANDS_FILE=_0x55dbd9(0xa6),RUNTIME_FILE=_0x55dbd9(0xd8),PICKER_SNAPSHOT_FILE=_0x55dbd9(0x11d),ENV_FILE=_0x55dbd9(0xcd),SECRETS_FILE=_0x55dbd9(0x101);function envFileFor(_0x16c70e,_0x518a4f){return''+ENV_FILE+_0x16c70e+(_0x518a4f?'.'+_0x518a4f:'');}__name(envFileFor,_0x55dbd9(0xf0));function secretsFileFor(_0x396655,_0x457bc9){return''+SECRETS_FILE+_0x396655+(_0x457bc9?'.'+_0x457bc9:'');}__name(secretsFileFor,_0x55dbd9(0x116));function envLayerFilesFor(_0xc196f7,_0x38954b){return layersFor(ENV_FILE,_0xc196f7,_0x38954b);}__name(envLayerFilesFor,'envLayerFilesFor');function secretsLayerFilesFor(_0x425561,_0x341176){return layersFor(SECRETS_FILE,_0x425561,_0x341176);}__name(secretsLayerFilesFor,_0x55dbd9(0xc9));function layersFor(_0x404762,_0x1cb01f,_0x2031d4){const _0x83d815={_0x380996:0x11e},_0x2ad1aa=_0x55dbd9,_0x3b0b75=[_0x404762];if(_0x1cb01f)_0x3b0b75['push'](''+_0x404762+_0x1cb01f);if(_0x2031d4){_0x3b0b75[_0x2ad1aa(_0x83d815._0x380996)](_0x404762+'.'+_0x2031d4);if(_0x1cb01f)_0x3b0b75[_0x2ad1aa(0x11e)](''+_0x404762+_0x1cb01f+'.'+_0x2031d4);}return _0x3b0b75;}__name(layersFor,_0x55dbd9(0xac));function activeEnvName(_0x2ac644){const _0x15d5c1=_0x55dbd9,_0x530e3=_0x2ac644['UNOTEST_ENV']?.[_0x15d5c1(0xe4)]();return _0x530e3?_0x530e3:void 0x0;}__name(activeEnvName,_0x55dbd9(0xae));function isRegexLiteral(_0x1c80a9){const _0x35877f={_0x52ac06:0xd2,_0x10252d:0xee,_0x485b54:0x96,_0x122b40:0x95,_0xd433f:0x127},_0x2ff2e4=_0x55dbd9;return typeof _0x1c80a9===_0x2ff2e4(_0x35877f._0x52ac06)&&_0x1c80a9!==null&&_0x1c80a9[_0x2ff2e4(_0x35877f._0x10252d)]==='regex'&&typeof _0x1c80a9[_0x2ff2e4(_0x35877f._0x485b54)]===_0x2ff2e4(_0x35877f._0x122b40)&&typeof _0x1c80a9[_0x2ff2e4(_0x35877f._0xd433f)]===_0x2ff2e4(0x95);}__name(isRegexLiteral,_0x55dbd9(0x92));function regexLiteral(_0x3eddb5,_0x2ae071=''){const _0x51f84d={_0x59a29e:0x8d},_0x5b8118=_0x55dbd9;return{'kind':_0x5b8118(_0x51f84d._0x59a29e),'source':_0x3eddb5,'flags':_0x2ae071};}__name(regexLiteral,'regexLiteral');var RAND_BYTES=0x6;function makeRunId(_0x3e5ac4){const _0x1f75d1=_0x55dbd9,_0x301109=sanitizeRunIdSegment(_0x3e5ac4),_0x1e7563=Date[_0x1f75d1(0xb6)]()[_0x1f75d1(0xff)](0x24),_0x1edb8a=new Uint8Array(RAND_BYTES);globalThis[_0x1f75d1(0xaa)]['getRandomValues'](_0x1edb8a);let _0x4c93f1='';for(let _0x23f78=0x0;_0x23f78<_0x1edb8a[_0x1f75d1(0x9b)];_0x23f78++){_0x4c93f1+=_0x1edb8a[_0x23f78][_0x1f75d1(0xff)](0x10)[_0x1f75d1(0x11c)](0x2,'0');}return _0x301109+'-'+_0x1e7563+'-'+_0x4c93f1;}function _0x56d7(_0x3f339c,_0x5e47f5){_0x3f339c=_0x3f339c-0x8c;const _0x11721e=_0x1172();let _0x56d7f3=_0x11721e[_0x3f339c];if(_0x56d7['bZwYBc']===undefined){var _0x4b4f4b=function(_0x6c7179){const _0x45d0ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18b725='',_0xf9d37b='';for(let _0x5a02d5=0x0,_0xcdb79a,_0x9c6880,_0x53897b=0x0;_0x9c6880=_0x6c7179['charAt'](_0x53897b++);~_0x9c6880&&(_0xcdb79a=_0x5a02d5%0x4?_0xcdb79a*0x40+_0x9c6880:_0x9c6880,_0x5a02d5++%0x4)?_0x18b725+=String['fromCharCode'](0xff&_0xcdb79a>>(-0x2*_0x5a02d5&0x6)):0x0){_0x9c6880=_0x45d0ca['indexOf'](_0x9c6880);}for(let _0x2fefd8=0x0,_0x37ad7a=_0x18b725['length'];_0x2fefd8<_0x37ad7a;_0x2fefd8++){_0xf9d37b+='%'+('00'+_0x18b725['charCodeAt'](_0x2fefd8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf9d37b);};_0x56d7['lNFvly']=_0x4b4f4b,_0x56d7['rdoynN']={},_0x56d7['bZwYBc']=!![];}const _0x31a493=_0x11721e[0x0],_0x2a0560=_0x3f339c+_0x31a493,_0x5153ef=_0x56d7['rdoynN'][_0x2a0560];return!_0x5153ef?(_0x56d7f3=_0x56d7['lNFvly'](_0x56d7f3),_0x56d7['rdoynN'][_0x2a0560]=_0x56d7f3):_0x56d7f3=_0x5153ef,_0x56d7f3;}__name(makeRunId,_0x55dbd9(0xce));function sanitizeRunIdSegment(_0x16d215){const _0x9c437d={_0x5ee68e:0x100},_0x500e2a=_0x55dbd9,_0x4cb1d6=_0x16d215[_0x500e2a(0x100)](/[^a-zA-Z0-9_-]+/g,'-')[_0x500e2a(0x100)](/-+/g,'-')[_0x500e2a(_0x9c437d._0x5ee68e)](/^-|-$/g,'');return _0x4cb1d6[_0x500e2a(0x9b)]>0x0?_0x4cb1d6:_0x500e2a(0xef);}__name(sanitizeRunIdSegment,_0x55dbd9(0xc6));var RANDOM_SUFFIX_RE=/^[0-9a-f]{6,}$/,MIN_PLAUSIBLE_MS=Date[_0x55dbd9(0xc8)](0x7e4,0x0,0x1),MAX_PLAUSIBLE_MS=Date[_0x55dbd9(0xc8)](0x834,0x0,0x1);function runIdStartedAt(_0x10b1b5){const _0x1717d1={_0x2e834a:0x9b,_0x1eb978:0x91},_0x51db59=_0x55dbd9,_0x3cfab1=_0x10b1b5[_0x51db59(0xd6)]('-');if(_0x3cfab1[_0x51db59(0x9b)]<0x3)return null;const _0xf70617=_0x3cfab1[_0x3cfab1[_0x51db59(_0x1717d1._0x2e834a)]-0x1];if(!RANDOM_SUFFIX_RE[_0x51db59(0x91)](_0xf70617))return null;const _0x34a3e0=_0x3cfab1[_0x3cfab1[_0x51db59(0x9b)]-0x2];if(!/^[0-9a-z]+$/[_0x51db59(_0x1717d1._0x1eb978)](_0x34a3e0))return null;const _0x180414=parseInt(_0x34a3e0,0x24);if(!Number['isFinite'](_0x180414))return null;if(_0x180414<MIN_PLAUSIBLE_MS||_0x180414>=MAX_PLAUSIBLE_MS)return null;return _0x180414;}__name(runIdStartedAt,_0x55dbd9(0xe8));function shardPathForTimestamp(_0x4893b4){const _0x170557={_0x4a14b6:0x11c},_0x2463fb=_0x55dbd9,_0x47f6a5=new Date(_0x4893b4),_0x4acd1b=String(_0x47f6a5['getUTCFullYear']())[_0x2463fb(_0x170557._0x4a14b6)](0x4,'0'),_0x4a8085=String(_0x47f6a5[_0x2463fb(0x115)]()+0x1)['padStart'](0x2,'0'),_0x3ac2b6=String(_0x47f6a5[_0x2463fb(0x110)]())[_0x2463fb(0x11c)](0x2,'0');return _0x4acd1b+'/'+_0x4a8085+'/'+_0x3ac2b6;}__name(shardPathForTimestamp,_0x55dbd9(0x10a));function shardPathForRunId(_0x41970a){const _0x5a932e=runIdStartedAt(_0x41970a);return _0x5a932e===null?null:shardPathForTimestamp(_0x5a932e);}__name(shardPathForRunId,_0x55dbd9(0xec));function runDirFor(_0x2f6587,_0x4b882b){const _0x264ce1=shardPathForRunId(_0x4b882b);return _0x264ce1===null?null:_0x2f6587+'/'+_0x264ce1+'/'+_0x4b882b;}__name(runDirFor,_0x55dbd9(0xe9));var UnplaceableRunIdError=class extends Error{static{__name(this,'UnplaceableRunIdError');}constructor(_0x2e071d){const _0x50d998={_0x20ad3c:0xe5,_0x439e2f:0x10c},_0x523b6f=_0x55dbd9;super('runId\x20carries\x20no\x20timestamp,\x20cannot\x20place\x20it\x20in\x20a\x20shard:\x20'+_0x2e071d),this[_0x523b6f(_0x50d998._0x20ad3c)]=_0x523b6f(_0x50d998._0x439e2f);}};function requireRunDirFor(_0x34e9a9,_0x43f555){const _0x4f4afb=runDirFor(_0x34e9a9,_0x43f555);if(_0x4f4afb===null)throw new UnplaceableRunIdError(_0x43f555);return _0x4f4afb;}__name(requireRunDirFor,_0x55dbd9(0x128));function projectRunsRoot(_0x10ad64=''){return UNOTEST_DIR+'/'+runsDirFor(_0x10ad64);}__name(projectRunsRoot,_0x55dbd9(0x102));function projectRunDirFor(_0x3224c4,_0x1dc1b4=''){return requireRunDirFor(projectRunsRoot(_0x1dc1b4),_0x3224c4);}__name(projectRunDirFor,_0x55dbd9(0xad));function shardDirFor(_0x79da13,_0x5860f9){return _0x79da13+'/'+shardPathForTimestamp(_0x5860f9);}__name(shardDirFor,_0x55dbd9(0xe2));function*shardDaysDescending(_0x72f4c5,_0x12084a,_0x3ce67a){const _0x31e307={_0x15ff35:0xa1},_0x5b2cd1=_0x55dbd9,_0x561bf0=0x5265c00;let _0x2fb737=Math[_0x5b2cd1(_0x31e307._0x15ff35)](_0x12084a/_0x561bf0)*_0x561bf0;for(let _0x48f683=0x0;_0x48f683<_0x3ce67a;_0x48f683++){yield shardDirFor(_0x72f4c5,_0x2fb737),_0x2fb737-=_0x561bf0;}}__name(shardDaysDescending,_0x55dbd9(0xeb));var RUN_INDEX_SCHEMA_VERSION=0x2,SCENARIO_RECENT_WINDOW=0xc;function isFailingStatus(_0x3353e2){return _0x3353e2==='failed'||_0x3353e2==='interrupted';}__name(isFailingStatus,'isFailingStatus');function foldScenarioRun(_0x33ff12,_0x2eb00f){const _0x5b7917={_0xc83263:0x11a,_0x318ec0:0xca,_0x254eac:0xb2},_0x3a4876=_0x55dbd9,_0x1fa5c3={'lastRunId':_0x2eb00f['runId'],'lastStatus':_0x2eb00f[_0x3a4876(0x118)],'lastAt':_0x2eb00f[_0x3a4876(0xb2)],'lastDurationMs':_0x2eb00f[_0x3a4876(0xf5)],'recent':[..._0x33ff12?.[_0x3a4876(_0x5b7917._0xc83263)]??[],_0x2eb00f[_0x3a4876(0x118)]][_0x3a4876(_0x5b7917._0x318ec0)](-SCENARIO_RECENT_WINDOW)};if(!isFailingStatus(_0x2eb00f['status']))return{..._0x1fa5c3,'failStreak':0x0,'failingSince':null};const _0x310545=(_0x33ff12?.['failStreak']??0x0)+0x1;return{..._0x1fa5c3,'failStreak':_0x310545,'failingSince':_0x310545===0x1?_0x2eb00f[_0x3a4876(_0x5b7917._0x254eac)]:_0x33ff12?.[_0x3a4876(0xea)]??_0x2eb00f[_0x3a4876(_0x5b7917._0x254eac)]};}__name(foldScenarioRun,_0x55dbd9(0x9e));function scenarioIndexFileName(_0x59aefd){const _0x4d483a=_0x55dbd9;return encodeURIComponent(_0x59aefd)+_0x4d483a(0x114);}__name(scenarioIndexFileName,'scenarioIndexFileName');function scenarioRefFromFileName(_0x431542){const _0x12364a={_0x42e9b2:0x114},_0x292349=_0x55dbd9;if(!_0x431542[_0x292349(0xa8)]('.jsonl'))return null;try{return decodeURIComponent(_0x431542['slice'](0x0,-_0x292349(_0x12364a._0x42e9b2)['length']));}catch{return null;}}__name(scenarioRefFromFileName,_0x55dbd9(0x98));var BLOBS_DIR=_0x55dbd9(0xb9),GENERATION_SEP='~',HASH_RE=/^[0-9a-f]{8,}$/,InvalidBlobHashError=class extends Error{static{__name(this,_0x55dbd9(0x10b));}constructor(_0x213362){const _0x47e6c4={_0xfde91f:0xe5},_0x52eab2=_0x55dbd9;super(_0x52eab2(0xfd)+_0x213362),this[_0x52eab2(_0x47e6c4._0xfde91f)]='InvalidBlobHashError';}};function blobPathFor(_0x1503c0,_0x3c4df1,_0x3d5ae4,_0xee2a32=0x0){return _0x1503c0+'/'+blobRelPathFor(_0x3c4df1,_0x3d5ae4,_0xee2a32);}__name(blobPathFor,_0x55dbd9(0xbd));function blobRelSegmentsFor(_0x2f6364,_0x4bc9ac,_0x37685e=0x0){const _0x47536a={_0x274b82:0xca},_0xa10f51=_0x55dbd9;if(!HASH_RE[_0xa10f51(0x91)](_0x2f6364))throw new InvalidBlobHashError(_0x2f6364);const _0x553568=_0x37685e>0x0?''+GENERATION_SEP+_0x37685e:'';return[BLOBS_DIR,_0x2f6364[_0xa10f51(0xca)](0x0,0x2),_0x2f6364[_0xa10f51(_0x47536a._0x274b82)](0x2,0x4),''+_0x2f6364+_0x553568+'.'+_0x4bc9ac];}__name(blobRelSegmentsFor,_0x55dbd9(0x129));function blobRelPathFor(_0x4a4670,_0x5f41d8,_0x7eb0f8=0x0){return blobRelSegmentsFor(_0x4a4670,_0x5f41d8,_0x7eb0f8)['join']('/');}__name(blobRelPathFor,'blobRelPathFor');function blobsRootFor(_0x458c2a){return _0x458c2a+'/'+BLOBS_DIR;}__name(blobsRootFor,_0x55dbd9(0x112));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x3d3171,_0x3be28a){const _0x18e1c5={_0x3fdf0a:0x94,_0x37e545:0xe4,_0xca4452:0x9b,_0x5e98d2:0x90},_0x4b1130=_0x55dbd9;if(typeof _0x3d3171!==_0x4b1130(0x95))return _0x4b1130(_0x18e1c5._0x3fdf0a);const _0x3cc7fb=_0x3d3171[_0x4b1130(_0x18e1c5._0x37e545)]();if(_0x3cc7fb[_0x4b1130(_0x18e1c5._0xca4452)]===0x0)return _0x4b1130(0xe3);if(_0x3cc7fb==='.'||_0x3cc7fb==='..')return'must\x20not\x20be\x20\x22.\x22\x20or\x20\x22..\x22';if(_0x3cc7fb[_0x4b1130(_0x18e1c5._0x5e98d2)]('.'))return'must\x20not\x20start\x20with\x20\x27.\x27';if(_0x3be28a?.['reservedUnderscore']&&_0x3cc7fb[_0x4b1130(0x90)]('_'))return'must\x20not\x20start\x20with\x20\x27_\x27\x20(reserved)';if(FS_UNSAFE_NAME_RE['test'](_0x3cc7fb))return'must\x20not\x20contain\x20\x5c\x20/\x20:\x20*\x20?\x20\x22\x20<\x20>\x20|\x20or\x20control\x20characters';return null;}__name(validateFsSafeName,_0x55dbd9(0x106));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x376832){return validateFsSafeName(_0x376832);}__name(validateCollectionName,_0x55dbd9(0xd0));var RUN_MANIFEST_FILE=_0x55dbd9(0xa3),RUN_SOURCES_FILE=_0x55dbd9(0xa2),UnsupportedRunKindError=class extends Error{static{__name(this,_0x55dbd9(0xf4));}constructor(_0xc9554f,_0x3f9102){super('runner\x20\x22'+_0x3f9102+'\x22\x20does\x20not\x20support\x20run\x20kind\x20\x22'+_0xc9554f+'\x22'),this['name']='UnsupportedRunKindError';}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0x55dbd9(0xd7));}constructor(_0x2816aa,_0x5be907){const _0x52c42e=_0x55dbd9;super('cannot\x20load\x20runner\x20adapter\x20\x22'+_0x2816aa+_0x52c42e(0xa4)+_0x5be907),this[_0x52c42e(0xe5)]=_0x52c42e(0xd7);}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0x55dbd9(0x108));}constructor(_0xfee877){const _0x34abb2=_0x55dbd9;super(_0xfee877),this[_0x34abb2(0xe5)]='RunnerNotConfiguredError';}},SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x30ae07){return validateFsSafeName(_0x30ae07,{'reservedUnderscore':!![]});}__name(validateSegmentName,_0x55dbd9(0xf2));var TERMINAL_WS_EVENT=_0x55dbd9(0x119),RUNNER_CONFIG_KEYS=new Set([_0x55dbd9(0xe6),_0x55dbd9(0xb8),_0x55dbd9(0xdd),_0x55dbd9(0xa7),'UNOTEST_DEFAULT_NAVIGATION_TIMEOUT_MS',_0x55dbd9(0xe1),'UNOTEST_LOCALE',_0x55dbd9(0x10f),_0x55dbd9(0x124),_0x55dbd9(0xa0),_0x55dbd9(0x105),_0x55dbd9(0x8f),'UNOTEST_DEBUG_PREVIEW_BYTES','UNOTEST_DEBUG_HTML_MAX_BYTES',_0x55dbd9(0xd5),_0x55dbd9(0xcb),_0x55dbd9(0xf9),_0x55dbd9(0x9f),_0x55dbd9(0x113),'FORCE_COLOR','DATABASE_URL']);function isRunnerConfigKey(_0x6204a0){const _0xc0c24c=_0x55dbd9;return RUNNER_CONFIG_KEYS[_0xc0c24c(0xd3)](_0x6204a0);}__name(isRunnerConfigKey,'isRunnerConfigKey');function categorizeVariable(_0x5a9adc){const _0x6eebe9={_0x206e1f:0x96,_0x128abd:0x10e,_0x3c70d1:0xe5},_0x51efe5=_0x55dbd9;if(_0x5a9adc[_0x51efe5(_0x6eebe9._0x206e1f)]==='secrets')return _0x51efe5(_0x6eebe9._0x128abd);return isRunnerConfigKey(_0x5a9adc[_0x51efe5(_0x6eebe9._0x3c70d1)])?_0x51efe5(0x93):'app';}__name(categorizeVariable,_0x55dbd9(0x126));function isExternalVarName(_0x1094af){const _0x4ad769=_0x55dbd9;return/^[A-Z][A-Z0-9_]*$/[_0x4ad769(0x91)](_0x1094af);}__name(isExternalVarName,_0x55dbd9(0xc3));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/;function*assignmentEntries(_0x3c5279){const _0x54ebf3={_0x2b46e0:0x103,_0x2db8e9:0xca,_0x59b402:0xe4},_0x413b00=_0x55dbd9;for(const _0x55ec85 of _0x3c5279[_0x413b00(0xd6)](/\r?\n/)){const _0x23b22a=_0x55ec85[_0x413b00(0xe4)]();if(_0x23b22a===''||_0x23b22a[_0x413b00(0x90)]('#'))continue;const _0x456341=_0x23b22a[_0x413b00(_0x54ebf3._0x2b46e0)]('=');if(_0x456341<=0x0)continue;const _0x173a01=_0x23b22a[_0x413b00(_0x54ebf3._0x2db8e9)](0x0,_0x456341)['trim']();if(!ENV_KEY_RE['test'](_0x173a01))continue;yield[_0x173a01,_0x23b22a[_0x413b00(_0x54ebf3._0x2db8e9)](_0x456341+0x1)[_0x413b00(_0x54ebf3._0x59b402)]()];}}__name(assignmentEntries,_0x55dbd9(0xfb));function parseEnvContent(_0x24c862){const _0x2c4b35={_0x5a2542:0x9b,_0x16b2c8:0xca},_0x52c8f1=_0x55dbd9,_0x13586a={};for(const [_0x3303e2,_0x308fe5]of assignmentEntries(_0x24c862)){let _0x225f74=_0x308fe5;if(_0x225f74[_0x52c8f1(_0x2c4b35._0x5a2542)]>=0x2){const _0x2f907a=_0x225f74[0x0],_0x5b7a0b=_0x225f74[_0x225f74['length']-0x1];(_0x2f907a==='\x22'||_0x2f907a==='\x27')&&_0x2f907a===_0x5b7a0b&&(_0x225f74=_0x225f74[_0x52c8f1(_0x2c4b35._0x16b2c8)](0x1,-0x1));}_0x13586a[_0x3303e2]=_0x225f74;}return _0x13586a;}__name(parseEnvContent,_0x55dbd9(0x111));function serializeEnvValue(_0x3b8f3e){const _0x4d0b71={_0x371817:0x91,_0x637b23:0x100},_0x5d8247=_0x55dbd9;if(_0x3b8f3e==='')return'';if(/[\s#"'=\\]|^[`]/[_0x5d8247(_0x4d0b71._0x371817)](_0x3b8f3e)||/[\n\r]/['test'](_0x3b8f3e)){const _0x17a0ac=_0x3b8f3e[_0x5d8247(0x100)](/\\/g,'\x5c\x5c')[_0x5d8247(0x100)](/"/g,'\x5c\x22')[_0x5d8247(_0x4d0b71._0x637b23)](/\n/g,'\x5cn')[_0x5d8247(0x100)](/\r/g,'\x5cr');return'\x22'+_0x17a0ac+'\x22';}return _0x3b8f3e;}__name(serializeEnvValue,'serializeEnvValue');function envKeys(_0x5ac57c){const _0x1ac3fa={_0x98c127:0xf3},_0x2cbcbe=_0x55dbd9,_0x4a15d6=new Set();for(const [_0x594175]of assignmentEntries(_0x5ac57c))_0x4a15d6[_0x2cbcbe(_0x1ac3fa._0x98c127)](_0x594175);return _0x4a15d6;}__name(envKeys,'envKeys');function isSectionDivider(_0x30db12){const _0x23cd01={_0x430abf:0xe4},_0x6676ee=_0x55dbd9,_0x2fe0fe=_0x30db12[_0x6676ee(_0x23cd01._0x430abf)]();return _0x2fe0fe['startsWith']('#')&&/---/[_0x6676ee(0x91)](_0x2fe0fe);}__name(isSectionDivider,_0x55dbd9(0xf8));function isAssignmentLine(_0x1dd9e1){const _0xf1369e={_0x31db1a:0x90,_0xf031fd:0x91},_0x2bc3ec=_0x55dbd9,_0x3034b5=_0x1dd9e1['trim']();if(_0x3034b5===''||_0x3034b5[_0x2bc3ec(_0xf1369e._0x31db1a)]('#'))return![];const _0x4490cb=_0x3034b5[_0x2bc3ec(0x103)]('=');return _0x4490cb>0x0&&ENV_KEY_RE[_0x2bc3ec(_0xf1369e._0xf031fd)](_0x3034b5[_0x2bc3ec(0xca)](0x0,_0x4490cb)['trim']());}__name(isAssignmentLine,_0x55dbd9(0xc7));function isAssignmentOf(_0x47f13c,_0x57695f){const _0x3bb042={_0x2b58df:0x103,_0x237bb3:0xe4},_0x3e1b25=_0x55dbd9,_0x140a2c=_0x47f13c[_0x3e1b25(0xe4)]();if(_0x140a2c===''||_0x140a2c['startsWith']('#'))return![];const _0x4d219f=_0x140a2c[_0x3e1b25(_0x3bb042._0x2b58df)]('=');if(_0x4d219f<=0x0)return![];return _0x140a2c[_0x3e1b25(0xca)](0x0,_0x4d219f)[_0x3e1b25(_0x3bb042._0x237bb3)]()===_0x57695f;}__name(isAssignmentOf,'isAssignmentOf');function splitLines(_0x33b3f2){const _0x2d343d={_0x231ab7:0xd6},_0xb9be53=_0x55dbd9,_0xdcef18=_0x33b3f2['endsWith']('\x0a'),_0x50523f=_0xdcef18?_0x33b3f2['slice'](0x0,-0x1):_0x33b3f2;return{'lines':_0x50523f===''?[]:_0x50523f[_0xb9be53(_0x2d343d._0x231ab7)]('\x0a'),'trailingNewline':_0xdcef18};}__name(splitLines,_0x55dbd9(0x125));function joinLines(_0x1a752f,_0x1ed786){const _0xac8e05={_0x559c77:0xfc},_0x20cfc3=_0x55dbd9,_0x3ae247=_0x1a752f[_0x20cfc3(_0xac8e05._0x559c77)]('\x0a');return _0x1ed786||_0x3ae247===''?_0x3ae247+'\x0a':_0x3ae247;}__name(joinLines,'joinLines');function insertEnvVar(_0x664ff8,_0x38ff09,_0x379ccf,_0x4510eb){const _0x2e6247={_0x51ec9a:0x9b,_0x28a038:0xe4,_0x1037f7:0xcc,_0x382c06:0x11e},_0x4cb59d=_0x55dbd9,_0x48fb66=_0x38ff09+'='+serializeEnvValue(_0x379ccf),{lines:_0xee65f0,trailingNewline:_0x36c5bc}=splitLines(_0x664ff8);if(_0x4510eb){const _0x323e82=new RegExp('\x5cb'+_0x4510eb[_0x4cb59d(0x8e)]()+'\x5cb'),_0x21f405=_0xee65f0[_0x4cb59d(0x97)](_0x37b8a4=>isSectionDivider(_0x37b8a4)&&_0x323e82['test'](_0x37b8a4[_0x4cb59d(0x8e)]()));if(_0x21f405!==-0x1){let _0x148c22=_0xee65f0[_0x4cb59d(_0x2e6247._0x51ec9a)];for(let _0x5219ec=_0x21f405+0x1;_0x5219ec<_0xee65f0[_0x4cb59d(0x9b)];_0x5219ec++){if(isSectionDivider(_0xee65f0[_0x5219ec])){_0x148c22=_0x5219ec;break;}}let _0x1e4514=-0x1,_0x25b5ca=-0x1;for(let _0x3fba46=_0x21f405+0x1;_0x3fba46<_0x148c22;_0x3fba46++){if(_0xee65f0[_0x3fba46][_0x4cb59d(_0x2e6247._0x28a038)]()!=='')_0x25b5ca=_0x3fba46;if(isAssignmentLine(_0xee65f0[_0x3fba46]))_0x1e4514=_0x3fba46;}const _0x3a6370=_0x1e4514>=0x0?_0x1e4514:_0x25b5ca,_0x1a5dd4=_0x3a6370>=0x0?_0x3a6370+0x1:_0x21f405+0x1;return _0xee65f0[_0x4cb59d(_0x2e6247._0x1037f7)](_0x1a5dd4,0x0,_0x48fb66),joinLines(_0xee65f0,_0x36c5bc||_0xee65f0[_0x4cb59d(0x9b)]>0x0);}if(_0xee65f0[_0x4cb59d(0x9b)]>0x0)_0xee65f0['push']('');return _0xee65f0[_0x4cb59d(0x11e)]('#\x20---\x20'+_0x4510eb+_0x4cb59d(0xe0),_0x48fb66),joinLines(_0xee65f0,!![]);}return _0xee65f0[_0x4cb59d(_0x2e6247._0x382c06)](_0x48fb66),joinLines(_0xee65f0,!![]);}__name(insertEnvVar,_0x55dbd9(0xa5));function _0x1172(){const _0x360585=['igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','C2fUAxrPEMvsDw5jzfnLz21LBNq','AxnbC3nPz25Tzw50tgLUzq','vvrd','C2vJCMv0C0XHEwvYrMLSzxngB3i','C2XPy2u','vu5pvevtvf9orvrxt1jl','C3bSAwnL','Dw5VDgvZDc8Uzw52','BwfRzvj1BKLK','zgvIDwDNzxjgAwXLrM9Y','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','ouvnwfrsta','B2jQzwn0','AgfZ','yxbWlxnLCNzLCJPYzwfKEq','vu5pvevtvf9erujvr19lruvqx0nbteXt','C3bSAxq','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','CNvUDgLTzs5QC29U','CNvUC0rPCKzVCG','nty5mtaWme1Lt1jIzW','nZeZmtuWne9ss1ngqW','zgvMAw5LuhjVCgvYDhK','vu5pvevtvf9tte9xx01p','lNj1BNm','Dw5RBM93BI1YDw5UzxiTA2v5','ic0Tlq','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','C2HHCMreAxjgB3i','BxvZDcbUB3qGyMuGzw1WDhK','DhjPBq','BMfTzq','vu5pvevtvf9cuK9xu0vs','ywjVCNrLza','CNvUswrtDgfYDgvKqxq','CNvUrgLYrM9Y','zMfPBgLUz1nPBMnL','C2HHCMreyxLZrgvZy2vUzgLUzW','C2HHCMrqyxrOrM9YuNvUswq','yxbWlxnLCNzLCJPYzxvZzwq','A2LUza','CNvU','zw52rMLSzuzVCG','mtbnzMTowei','DMfSAwrHDgvtzwDTzw50tMfTzq','ywrK','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','zhvYyxrPB25nCW','qxbW','x2HLBhbLCNm','Axntzwn0Aw9UrgL2AwrLCG','vu5pvevtvf9dt05tt0Xf','C3rKB3v0lMXVzW','yxnZAwDUBwvUDevUDhjPzxm','AM9PBG','yMXVyIbOyxnOig11C3qGyMuGBg93zxjJyxnLigHLEcWGz290oIa','ztjL','Dg9tDhjPBMC','CMvWBgfJzq','Dw5VDgvZDc8UC2vJCMv0CW','ChjVAMvJDfj1BNnsB290','Aw5KzxHpzG','zMfPBgvK','vu5pvevtvf9erujvr19esvi','DMfSAwrHDgvgC1nHzMvoyw1L','zw52q29UDgvUDa','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','uNvUBMvY','C2HHCMrqyxrOrM9YvgLTzxn0yw1W','sw52ywXPzejSB2jiyxnOrxjYB3i','vw5WBgfJzwfIBgvsDw5jzevYCM9Y','CgfYC2u','C2vJCMv0','vu5pvevtvf9usu1fwK9orq','z2v0vvrdrgf0zq','CgfYC2vfBNzdB250zw50','yMXVyNnsB290rM9Y','tK9Fq09mt1i','lMPZB25S','z2v0vvrdtw9UDgG','C2vJCMv0C0zPBgvgB3i','x2rHEs5QC29UBa','C3rHDhvZ','DgvYBwLUywW','CMvJzw50','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','CgfKu3rHCNq','CgLJA2vYlxnUyxbZAg90lNr4Da','ChvZAa','C2vJCMv0CW','Aw5JBhvKzxm','CgfYC2vbChbtzxj2zxjfDMvUDa','zw52','zgvIDwDeAxjgB3i','vu5pvevtvf9mt0DFtevwruW','C3bSAxrmAw5LCW','y2f0zwDVCML6zvzHCMLHyMXL','zMXHz3m','CMvXDwLYzvj1BKrPCKzVCG','yMXVyLjLBfnLz21LBNrZrM9Y','CMvTB3zLrw52vMfY','CMvNzxG','Dg9mB3DLCKnHC2u','vu5pvevtvf9erujvr19nqvHFqLLurvm','C3rHCNrZv2L0Aa','DgvZDa','AxnszwDLEeXPDgvYywW','CNvUBMvY','BxvZDcbIzsbHihn0CMLUzW','C3rYAw5N','C291CMnL','zMLUzeLUzgv4','C2nLBMfYAw9szwzgCM9TrMLSzu5HBwu','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','AgvHCNrIzwf0','BgvUz3rO','mZuYnZi0zM5jBu5q','C3rLChmUANnVBMW','zM9SzfnJzw5HCMLVuNvU','vu5pvevtvf9dqunirv9esvi','vu5pvevtvf9erujvrW','zMXVB3i','C291CMnLCY5QC29U','BwfUAwzLC3qUANnVBG','iI4G','Aw5Zzxj0rw52vMfY','y29TBwfUzhmUANnVBMW','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','zw5KC1DPDgG','Dw5VDgvZDa','y3j5ChrV','mJKXotC3nJriC3rJAwC','Bgf5zxjZrM9Y','ChjVAMvJDfj1BKrPCKzVCG','ywn0AxzLrw52tMfTzq','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','C2vJCMv0C0nVBNrLBNq','zgvSzxrLu2HHzg93v2fYBMLUzW','C3rHCNrLzef0','mJe5otC5owvUtMXNCq','DgvZDerPCKzVCG','lMrLyNvN','BM93','x3nJzw5HCMLVCW','vu5pvevtvf9iruferuq','x2jSB2jZ','ndK0nJuYnwvcCxDVqG','Aw52ywXPzc1Uyw1L','mZi1nZG0CfLLsKHc','yMXVyLbHDgHgB3i','lY5Kzwj1z2DLCG','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','lMPZB24','m25Nquf3AG','zhvWBgLJyxrL','AxnfEhrLCM5HBfzHCK5HBwu','lNzPzxDLCI5SB2nR'];_0x1172=function(){return _0x360585;};return _0x1172();}function removeEnvVar(_0x29f495,_0xecaf29){const _0x5456ec={_0x464160:0x9b},_0x1d3f66=_0x55dbd9,{lines:_0x5c8964,trailingNewline:_0x13e124}=splitLines(_0x29f495),_0x593102=_0x5c8964['filter'](_0x374952=>!isAssignmentOf(_0x374952,_0xecaf29)),_0x1432aa=_0x593102[_0x1d3f66(_0x5456ec._0x464160)]!==_0x5c8964[_0x1d3f66(0x9b)];return{'content':joinLines(_0x593102,_0x13e124),'removed':_0x1432aa};}__name(removeEnvVar,_0x55dbd9(0x8c));var SECTION_BY_KIND={'app':_0x55dbd9(0xf6),'runner':_0x55dbd9(0x109),'secret':void 0x0};function planAddVariable(_0x43a723){const _0x3cf3be={_0x1dc411:0xdf,_0xd42df2:0xc5,_0x44e7c4:0xbb,_0x3d6854:0xd3,_0x298587:0x10e,_0x3ed972:0x11f,_0x5484f2:0x122,_0x5460c1:0xcd},_0x37af5f=_0x55dbd9,{name:_0x243182,kind:_0x564006}=_0x43a723;if(_0x564006==='runner'){if(!isRunnerConfigKey(_0x243182))return{'ok':![],'code':_0x37af5f(_0x3cf3be._0x1dc411),'message':_0x243182+_0x37af5f(_0x3cf3be._0xd42df2)};}else{if(!isExternalVarName(_0x243182))return{'ok':![],'code':_0x37af5f(_0x3cf3be._0x44e7c4),'message':_0x243182+'\x20must\x20be\x20UPPER_SNAKE\x20(e.g.\x20APP_BASE_URL)\x20so\x20a\x20scenario\x20can\x20reference\x20it\x20by\x20name.'};}const _0x31b839=envKeys(_0x43a723[_0x37af5f(0x107)])[_0x37af5f(_0x3cf3be._0x3d6854)](_0x243182),_0x1ecdee=envKeys(_0x43a723[_0x37af5f(0xb0)])['has'](_0x243182),_0x2e6f34=_0x564006===_0x37af5f(_0x3cf3be._0x298587)?_0x37af5f(_0x3cf3be._0x3ed972):_0x37af5f(_0x3cf3be._0x5484f2),_0x2b299b=_0x2e6f34===_0x37af5f(0x11f)?_0x1ecdee:_0x31b839,_0x13e9be=_0x2e6f34===_0x37af5f(0x11f)?'unotest/.secrets':_0x37af5f(_0x3cf3be._0x5460c1);if(_0x2b299b)return{'ok':![],'code':_0x37af5f(0xc2),'message':_0x243182+'\x20already\x20exists\x20in\x20'+_0x13e9be+'\x20—\x20pick\x20a\x20different\x20name\x20or\x20edit\x20the\x20existing\x20value.'};const _0x3e2286=[];return _0x564006===_0x37af5f(_0x3cf3be._0x298587)&&_0x31b839&&_0x3e2286['push'](_0x243182+_0x37af5f(0x99)),_0x564006!==_0x37af5f(0x10e)&&_0x1ecdee&&_0x3e2286[_0x37af5f(0x11e)](_0x243182+_0x37af5f(0xaf)),{'ok':!![],'target':_0x2e6f34,'sectionLabel':SECTION_BY_KIND[_0x564006],'warnings':_0x3e2286};}__name(planAddVariable,'planAddVariable');function deleteShadowWarning(_0x284a42,_0x10e8dd,_0x1b7c40){const _0x15ce3e=_0x55dbd9;if(_0x1b7c40!==void 0x0&&_0x1b7c40!==_0x10e8dd)return[_0x284a42+_0x15ce3e(0x11b)];return[];}__name(deleteShadowWarning,_0x55dbd9(0xb1));var TERMINAL_RUNTIME_STATES=['completed',_0x55dbd9(0x104),_0x55dbd9(0xe7)];function isTerminalRuntimeState(_0x290602){const _0x311ad8=_0x55dbd9;return TERMINAL_RUNTIME_STATES[_0x311ad8(0x120)](_0x290602);}__name(isTerminalRuntimeState,_0x55dbd9(0xbf));export{BLOBS_DIR,COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,DAY_INDEX_FILE,E2E_SUBDIR,ENV_FILE,HEARTBEAT_FILE,HELPERS_SUBDIR,InvalidBlobHashError,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,RUNNER_CONFIG_KEYS,RUNS_SUBDIR,RUNTIME_FILE,RUN_INDEX_SCHEMA_VERSION,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SCENARIOS_INDEX_DIR,SCENARIOS_LATEST_FILE,SCENARIO_RECENT_WINDOW,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnplaceableRunIdError,UnsupportedRunKindError,activeEnvName,blobPathFor,blobRelPathFor,blobRelSegmentsFor,blobsRootFor,categorizeVariable,debugDirFor,debuggerFileFor,deleteShadowWarning,envFileFor,envKeys,envLayerFilesFor,foldScenarioRun,insertEnvVar,isExternalVarName,isFailingStatus,isRegexLiteral,isRunnerConfigKey,isTerminalRuntimeState,makeRunId,parseAppServerEvent,parseEnvContent,planAddVariable,projectRunDirFor,projectRunsRoot,regexLiteral,removeEnvVar,requireRunDirFor,runDirFor,runIdStartedAt,runsDirFor,sanitizeRunIdSegment,scenarioIndexFileName,scenarioRefFromFileName,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,shardDaysDescending,shardDirFor,shardPathForRunId,shardPathForTimestamp,testDirFor,validateCollectionName,validateSegmentName};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unotest/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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": {
|