@unotest/web 0.53.0 → 0.55.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 +94 -4
- package/README.md +42 -12
- package/dist/config/schema.d.ts +6 -3
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +2 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +19 -2
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +9 -4
- package/dist/inspection/page-inject.js +3 -2
- package/dist/{interfaces-BU-PQbt4.d.ts → interfaces-CNvyInrY.d.ts} +10 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.d.ts +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +17 -3
- package/guides/dsl-reference.md +81 -6
- package/llms.txt +2 -1
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +9 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x7b2548=_0x46e9;(function(_0x45e5ce,_0x3cde82){const _0xa3493d={_0xd807da:0xb6,_0x4485e8:0xad,_0x20f242:0xac,_0x4fabd0:0xb9,_0x20eef3:0xc9},_0x37fe05=_0x46e9,_0x4f8780=_0x45e5ce();while(!![]){try{const _0x1907cb=parseInt(_0x37fe05(0xab))/0x1+parseInt(_0x37fe05(_0xa3493d._0xd807da))/0x2+parseInt(_0x37fe05(_0xa3493d._0x4485e8))/0x3*(-parseInt(_0x37fe05(_0xa3493d._0x20f242))/0x4)+-parseInt(_0x37fe05(_0xa3493d._0x4fabd0))/0x5+-parseInt(_0x37fe05(_0xa3493d._0x20eef3))/0x6+parseInt(_0x37fe05(0xa3))/0x7*(-parseInt(_0x37fe05(0xc7))/0x8)+parseInt(_0x37fe05(0xc0))/0x9;if(_0x1907cb===_0x3cde82)break;else _0x4f8780['push'](_0x4f8780['shift']());}catch(_0x5e0c68){_0x4f8780['push'](_0x4f8780['shift']());}}}(_0xdfeb,0x8756a));var __defProp=Object['defineProperty'],__name=(_0x41fe60,_0x39519d)=>__defProp(_0x41fe60,_0x7b2548(0xca),{'value':_0x39519d,'configurable':!![]});import{execFileSync}from'child_process';import{existsSync}from'fs';function probeSystemBrowser(){for(const _0x44e482 of[probeChrome,probeEdge,probeChromeBeta]){const _0x7032b7=_0x44e482();if(_0x7032b7['channel']!==null)return _0x7032b7;}return{'channel':null};}__name(probeSystemBrowser,_0x7b2548(0xc5));function probeChrome(){const _0x2eb162={_0x4ce230:0xae},_0x1767b0=_0x7b2548,_0x59cc86=firstExistingPath(CHROME_PATHS)??whichOf(CHROME_BIN_NAMES);if(_0x59cc86)return{'channel':_0x1767b0(0xa5),'path':_0x59cc86,'label':_0x1767b0(_0x2eb162._0x4ce230)};return{'channel':null};}__name(probeChrome,'probeChrome');function probeEdge(){const _0x26a423={_0x5592cc:0xbf},_0x582457=_0x7b2548,_0x280b1a=firstExistingPath(EDGE_PATHS)??whichOf(EDGE_BIN_NAMES);if(_0x280b1a)return{'channel':_0x582457(0xcb),'path':_0x280b1a,'label':_0x582457(_0x26a423._0x5592cc)};return{'channel':null};}__name(probeEdge,_0x7b2548(0xb3));function probeChromeBeta(){const _0x451b58=_0x7b2548,_0x5a331a=firstExistingPath(CHROME_BETA_PATHS);if(_0x5a331a)return{'channel':_0x451b58(0xa4),'path':_0x5a331a,'label':_0x451b58(0xb0)};return{'channel':null};}__name(probeChromeBeta,'probeChromeBeta');function _0x46e9(_0x167156,_0x52b9b1){_0x167156=_0x167156-0xa2;const _0xdfeb93=_0xdfeb();let _0x46e915=_0xdfeb93[_0x167156];if(_0x46e9['iltRbi']===undefined){var _0x2cc38b=function(_0x58d7ff){const _0x15d287='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41fe60='',_0x39519d='';for(let _0x44e482=0x0,_0x7032b7,_0x59cc86,_0x280b1a=0x0;_0x59cc86=_0x58d7ff['charAt'](_0x280b1a++);~_0x59cc86&&(_0x7032b7=_0x44e482%0x4?_0x7032b7*0x40+_0x59cc86:_0x59cc86,_0x44e482++%0x4)?_0x41fe60+=String['fromCharCode'](0xff&_0x7032b7>>(-0x2*_0x44e482&0x6)):0x0){_0x59cc86=_0x15d287['indexOf'](_0x59cc86);}for(let _0x5a331a=0x0,_0x38f67e=_0x41fe60['length'];_0x5a331a<_0x38f67e;_0x5a331a++){_0x39519d+='%'+('00'+_0x41fe60['charCodeAt'](_0x5a331a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39519d);};_0x46e9['mAcubm']=_0x2cc38b,_0x46e9['KqLtxI']={},_0x46e9['iltRbi']=!![];}const _0x285e22=_0xdfeb93[0x0],_0x2d0075=_0x167156+_0x285e22,_0x40eb11=_0x46e9['KqLtxI'][_0x2d0075];return!_0x40eb11?(_0x46e915=_0x46e9['mAcubm'](_0x46e915),_0x46e9['KqLtxI'][_0x2d0075]=_0x46e915):_0x46e915=_0x40eb11,_0x46e915;}function _0xdfeb(){const _0x32560b=['nJu5mJjZDejxzfG','r29Vz2XLienOCM9Tzq','D2HPy2G','r29Vz2XLienOCM9TzsbczxrH','uhjVz3jHBuzPBgvZkhG4nIK','xeDVB2DSzvXdAhjVBwvCqxbWBgLJyxrPB25Cy2HYB21LlMv4zq','ChjVyMvfzgDL','te9dquXbufbeqvrb','D2HPy2HpzG','mtqWmZq3ofPhBxn4qW','l3vZCI9IAw4Vy2HYB21PDw0','l0fWCgXPy2f0Aw9UCY9hB29NBguGq2HYB21LlMfWCc9dB250zw50CY9nywnpuY9hB29NBguGq2HYB21L','ndm0otaXmhDkCezfuW','xe1Py3jVC29MDfXfzgDLxefWCgXPy2f0Aw9Uxg1ZzwrNzs5LEgu','l3vZCI9IAw4Vz29Vz2XLlwnOCM9Tzs1ZDgfIBgu','z29Vz2XLlwnOCM9Tzs1ZDgfIBgu','l3vZCI9IAw4Vz29Vz2XLlwnOCM9Tzq','BgvUz3rO','twLJCM9ZB2z0ievKz2u','mJmXmJi2nZrIzffNy08','zw52','l0fWCgXPy2f0Aw9UCY9nAwnYB3nVzNqGrwrNzs5HChaVq29UDgvUDhmVtwfJt1mVtwLJCM9ZB2z0ievKz2u','l3nUyxaVyMLUl2DVB2DSzs1JAhjVBwu','Dw5KzwzPBMvK','ChjVyMvtExn0zw1cCM93C2vY','D2LUmZi','mJuZodC3nKj2Bgjnzq','uhjVz3jHBuzPBgvZ','nty4ody4nfbJuwz4Cq','BMfTzq','BxnLzgDL','zMLYC3rfEgLZDgLUz1bHDgG','l3vZCI9IAw4Vy2HYB21PDw0TyNjVD3nLCG','n1fur0ncEG','y2HYB21LlwjLDge','y2HYB21L','CgXHDgzVCM0','l3vZCI9IAw4VBwLJCM9ZB2z0lwvKz2u','DhjPBq','zgfYD2LU','xeDVB2DSzvXdAhjVBwuGqMv0yvXbChbSAwnHDgLVBLXJAhjVBwuUzxHL','mZG1ntqWuxLuzwHK','mtC2yw5WANLq'];_0xdfeb=function(){return _0x32560b;};return _0xdfeb();}var CHROME_PATHS=((()=>{const _0x525d33={_0x4db2e6:0xa6,_0x5eda0e:0xa9,_0x189409:0xb8,_0x446436:0xc1,_0x5e8e07:0xc8,_0x4e6d6f:0xc1,_0x2aeabb:0xc3},_0x55e457=_0x7b2548;switch(process[_0x55e457(_0x525d33._0x4db2e6)]){case _0x55e457(_0x525d33._0x5eda0e):return[_0x55e457(_0x525d33._0x189409)];case'win32':return[process[_0x55e457(_0x525d33._0x446436)][_0x55e457(_0x525d33._0x5e8e07)]+_0x55e457(0xb2),process[_0x55e457(_0x525d33._0x446436)]['ProgramFiles(x86)']+'\x5cGoogle\x5cChrome\x5cApplication\x5cchrome.exe',process[_0x55e457(_0x525d33._0x4e6d6f)][_0x55e457(0xb4)]+'\x5cGoogle\x5cChrome\x5cApplication\x5cchrome.exe'];default:return[_0x55e457(0xbd),_0x55e457(0xbb),_0x55e457(_0x525d33._0x2aeabb),_0x55e457(0xb7),_0x55e457(0xa2)];}})()),CHROME_BIN_NAMES=['google-chrome',_0x7b2548(0xbc),'chromium','chromium-browser'],EDGE_PATHS=((()=>{const _0x5c56e0={_0x57c876:0xc6,_0x16c232:0xc1,_0x2ca329:0xba},_0x10efcf=_0x7b2548;switch(process[_0x10efcf(0xa6)]){case'darwin':return[_0x10efcf(0xc2)];case _0x10efcf(_0x5c56e0._0x57c876):return[process['env'][_0x10efcf(0xc8)]+_0x10efcf(0xba),process[_0x10efcf(_0x5c56e0._0x16c232)][_0x10efcf(0xb1)]+_0x10efcf(_0x5c56e0._0x2ca329)];default:return[_0x10efcf(0xa7),'/usr/bin/microsoft-edge-stable'];}})()),EDGE_BIN_NAMES=['microsoft-edge','microsoft-edge-stable'],CHROME_BETA_PATHS=((()=>{const _0x52f849={_0x3e7676:0xa9,_0x4515df:0xaa},_0x32ac06=_0x7b2548;switch(process['platform']){case _0x32ac06(_0x52f849._0x3e7676):return['/Applications/Google\x20Chrome\x20Beta.app/Contents/MacOS/Google\x20Chrome\x20Beta'];case _0x32ac06(0xc6):return[process['env'][_0x32ac06(0xc8)]+_0x32ac06(_0x52f849._0x4515df)];default:return['/usr/bin/google-chrome-beta'];}})());function firstExistingPath(_0x38f67e){const _0x37858a=_0x7b2548;for(const _0x56210d of _0x38f67e){if(!_0x56210d||_0x56210d['startsWith'](_0x37858a(0xc4)))continue;if(existsSync(_0x56210d))return _0x56210d;}return null;}__name(firstExistingPath,_0x7b2548(0xcc));function whichOf(_0x270096){const _0x5cac4d={_0x5ad59a:0xc6},_0x217ff6=_0x7b2548;if(process[_0x217ff6(0xa6)]===_0x217ff6(_0x5cac4d._0x5ad59a))return void 0x0;for(const _0x14f12f of _0x270096){try{const _0x45c8f4=execFileSync(_0x217ff6(0xaf),[_0x14f12f],{'encoding':'utf8'})[_0x217ff6(0xa8)]();if(_0x45c8f4[_0x217ff6(0xbe)]>0x0&&existsSync(_0x45c8f4))return _0x45c8f4;}catch{}}return void 0x0;}__name(whichOf,_0x7b2548(0xb5));export{probeSystemBrowser};
|
package/dist/runner/init.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const templates: {
|
|
|
43
43
|
* keeps its own. */
|
|
44
44
|
declare const GENERATED_GITIGNORE_LINE = "unotest/generated/";
|
|
45
45
|
|
|
46
|
-
declare const INIT_USAGE = "Usage: unotest-web init [target] [options]\n\nBootstrap the unotest/ layout in a project: scenarios, config, .env\ntemplates, .mcp.json, the agent guides, .gitignore lines.\n\n [target] project directory (default: the current one)\n --force, -f overwrite files that already exist, keeping a\n .bak copy of each next to it\n --browser system|bundled|none\n answer the browser question without a prompt\n --help, -h print this and do nothing else\n\nExisting files are left alone: a re-run reports them as `already present`\nand changes nothing. Exit 2 on an option this command does not know.\n";
|
|
46
|
+
declare const INIT_USAGE = "Usage: unotest-web init [target] [options]\n\nBootstrap the unotest/ layout in a project: scenarios, config, .env\ntemplates, .mcp.json, the agent guides, .gitignore lines.\n\n [target] project directory (default: the current one)\n --force, -f overwrite files that already exist, keeping a\n .bak copy of each next to it; unotest/package.json\n is only completed from the template \u2014 its\n dependencies and pins stay as they are\n --browser system|bundled|none\n answer the browser question without a prompt\n --ci github also write .github/workflows/unotest.yml at the\n repository root: on every push it pushes the\n suite to your box and runs it\n --help, -h print this and do nothing else\n\nExisting files are left alone: a re-run reports them as `already present`\nand changes nothing. Exit 2 on an option this command does not know.\n";
|
|
47
47
|
/** Backup written next to a file `--force` is about to replace. Named
|
|
48
48
|
* so the pair sorts together and the original is one `mv` away. */
|
|
49
49
|
declare const BACKUP_SUFFIX = ".bak";
|