@unotest/web 0.52.1 → 0.54.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 +205 -4
- package/README.md +28 -13
- package/dist/config/schema.d.ts +15 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +7 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +333 -92
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +11 -3
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +13 -5
- package/dist/inspection/page-inject.js +14 -2
- package/dist/{interfaces-BSGmF_Tv.d.ts → interfaces-BU-PQbt4.d.ts} +48 -2
- package/dist/{linter-CYRlmOLy.d.ts → linter-BpaIstU3.d.ts} +11 -1
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +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 +1 -1
- package/guides/dsl-reference.md +485 -40
- package/llms.txt +14 -9
- package/package.json +13 -8
- package/src/mcp/prompts/agent-test-author.md +3 -1
- package/types/unotest-dsl.d.ts +52 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b6239=_0x37fe;(function(_0xbcc914,_0x434e04){const _0x5b3ff4={_0x3f7aa1:0x7a,_0x3c4c68:0x8d,_0x4a81a5:0x72},_0x371115=_0x37fe,_0xd19474=_0xbcc914();while(!![]){try{const _0x42ae15=-parseInt(_0x371115(0x9b))/0x1+parseInt(_0x371115(_0x5b3ff4._0x3f7aa1))/0x2*(-parseInt(_0x371115(0x6f))/0x3)+-parseInt(_0x371115(0x7f))/0x4*(parseInt(_0x371115(0x6e))/0x5)+parseInt(_0x371115(_0x5b3ff4._0x3c4c68))/0x6+-parseInt(_0x371115(_0x5b3ff4._0x4a81a5))/0x7+-parseInt(_0x371115(0x92))/0x8+parseInt(_0x371115(0x8b))/0x9;if(_0x42ae15===_0x434e04)break;else _0xd19474['push'](_0xd19474['shift']());}catch(_0xaec138){_0xd19474['push'](_0xd19474['shift']());}}}(_0x2324,0x62daf));function _0x2324(){const _0x59e784=['mtu4whjkyuX3','BwLJCM9ZB2z0lwvKz2uTC3rHyMXL','Dw5KzwzPBMvK','zw52','D2HPy2HpzG','mJuWodmWofLnyMvjCa','l0fWCgXPy2f0Aw9UCY9hB29NBguGq2HYB21LlMfWCc9dB250zw50CY9nywnpuY9hB29NBguGq2HYB21L','z29Vz2XLlwnOCM9Tzq','uhjVz3jHBuzPBgvZkhG4nIK','xeDVB2DSzvXdAhjVBwvCqxbWBgLJyxrPB25Cy2HYB21LlMv4zq','uhjVz3jHBuzPBgvZ','l3vZCI9IAw4Vz29Vz2XLlwnOCM9Tzs1IzxrH','l3vZCI9IAw4Vz29Vz2XLlwnOCM9Tzs1ZDgfIBgu','BxnLzgDL','l3vZCI9IAw4Vz29Vz2XLlwnOCM9Tzq','xeDVB2DSzvXdAhjVBwuGqMv0yvXbChbSAwnHDgLVBLXJAhjVBwuUzxHL','y2HYB21PDw0','mJe0nti1nZf1txDbquW','l0fWCgXPy2f0Aw9UCY9hB29NBguGq2HYB21LiejLDgeUyxbWl0nVBNrLBNrZl01Hy09tl0DVB2DSzsbdAhjVBwuGqMv0yq','mJK1nZK1ohnyDxfrqq','CgXHDgzVCM0','zgfYD2LU','DhjPBq','te9dquXbufbeqvrb','mJm1nZy1nNH4A3LiAG','y2HYB21LlwjLDge','l3vZCI9IAw4Vy2HYB21PDw0TyNjVD3nLCG','BMfTzq','ChjVyMvdAhjVBwu','ChjVyMvdAhjVBwvczxrH','r29Vz2XLienOCM9TzsbczxrH','D2LUmZi','z29Vz2XLlwnOCM9Tzs1ZDgfIBgu','ndu4ntC5A0fPywrr','nwn4DwTKrW','mtm2odz2DeXYEhy','y2HHBM5LBa','l3nUyxaVyMLUl2DVB2DSzs1JAhjVBwu','nteXnJu4mgTgze1SDG','l3vZCI9IAw4Vy2HYB21PDw0','l3vZCI9IAw4VBwLJCM9ZB2z0lwvKz2u','ChjVyMvfzgDL','y2HYB21PDw0TyNjVD3nLCG','y2HYB21L','BwLJCM9ZB2z0lwvKz2u','DxrMoa'];_0x2324=function(){return _0x59e784;};return _0x2324();}var __defProp=Object['defineProperty'],__name=(_0x381d89,_0x5a3db4)=>__defProp(_0x381d89,_0x1b6239(0x95),{'value':_0x5a3db4,'configurable':!![]});import{execFileSync}from'child_process';function _0x37fe(_0x120be5,_0x54821a){_0x120be5=_0x120be5-0x6e;const _0x2324e9=_0x2324();let _0x37fe7d=_0x2324e9[_0x120be5];if(_0x37fe['eqFSVI']===undefined){var _0x2b8134=function(_0x908632){const _0x44c08f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x381d89='',_0x5a3db4='';for(let _0x2f6be8=0x0,_0xf5d5e0,_0x2cbdb7,_0xb9e28a=0x0;_0x2cbdb7=_0x908632['charAt'](_0xb9e28a++);~_0x2cbdb7&&(_0xf5d5e0=_0x2f6be8%0x4?_0xf5d5e0*0x40+_0x2cbdb7:_0x2cbdb7,_0x2f6be8++%0x4)?_0x381d89+=String['fromCharCode'](0xff&_0xf5d5e0>>(-0x2*_0x2f6be8&0x6)):0x0){_0x2cbdb7=_0x44c08f['indexOf'](_0x2cbdb7);}for(let _0x6dfd43=0x0,_0x327aa5=_0x381d89['length'];_0x6dfd43<_0x327aa5;_0x6dfd43++){_0x5a3db4+='%'+('00'+_0x381d89['charCodeAt'](_0x6dfd43)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a3db4);};_0x37fe['phbdcW']=_0x2b8134,_0x37fe['oUlOTU']={},_0x37fe['eqFSVI']=!![];}const _0x52f92b=_0x2324e9[0x0],_0x315a22=_0x120be5+_0x52f92b,_0x177886=_0x37fe['oUlOTU'][_0x315a22];return!_0x177886?(_0x37fe7d=_0x37fe['phbdcW'](_0x37fe7d),_0x37fe['oUlOTU'][_0x315a22]=_0x37fe7d):_0x37fe7d=_0x177886,_0x37fe7d;}import{existsSync}from'fs';function probeSystemBrowser(){const _0x57754f=_0x1b6239;for(const _0x2f6be8 of[probeChrome,probeEdge,probeChromeBeta]){const _0xf5d5e0=_0x2f6be8();if(_0xf5d5e0[_0x57754f(0x70)]!==null)return _0xf5d5e0;}return{'channel':null};}__name(probeSystemBrowser,'probeSystemBrowser');function probeChrome(){const _0x459c39=_0x1b6239,_0x2cbdb7=firstExistingPath(CHROME_PATHS)??whichOf(CHROME_BIN_NAMES);if(_0x2cbdb7)return{'channel':_0x459c39(0x77),'path':_0x2cbdb7,'label':'Google\x20Chrome'};return{'channel':null};}__name(probeChrome,_0x1b6239(0x96));function probeEdge(){const _0x3ad22c={_0x3bb9ac:0x87},_0x41e2c7=_0x1b6239,_0xb9e28a=firstExistingPath(EDGE_PATHS)??whichOf(EDGE_BIN_NAMES);if(_0xb9e28a)return{'channel':_0x41e2c7(_0x3ad22c._0x3bb9ac),'path':_0xb9e28a,'label':'Microsoft\x20Edge'};return{'channel':null};}__name(probeEdge,_0x1b6239(0x75));function probeChromeBeta(){const _0x5b975c=_0x1b6239,_0x6dfd43=firstExistingPath(CHROME_BETA_PATHS);if(_0x6dfd43)return{'channel':_0x5b975c(0x93),'path':_0x6dfd43,'label':_0x5b975c(0x98)};return{'channel':null};}__name(probeChromeBeta,_0x1b6239(0x97));var CHROME_PATHS=((()=>{const _0x4f9985={_0x13a39a:0x8e,_0x3eb652:0x80,_0x2afbcf:0x84,_0x4c39fe:0x83,_0x5acd24:0x7d,_0xcedd4:0x82,_0x2b58a1:0x83,_0x52881d:0x83,_0x2e0996:0x88,_0x477bdd:0x86,_0x405723:0x71,_0x516863:0x73,_0x1bfd86:0x94},_0x17775d=_0x1b6239;switch(process[_0x17775d(_0x4f9985._0x13a39a)]){case'darwin':return[_0x17775d(_0x4f9985._0x3eb652)];case _0x17775d(0x99):return[process[_0x17775d(0x7d)][_0x17775d(_0x4f9985._0x2afbcf)]+_0x17775d(_0x4f9985._0x4c39fe),process[_0x17775d(_0x4f9985._0x5acd24)][_0x17775d(_0x4f9985._0xcedd4)]+_0x17775d(_0x4f9985._0x2b58a1),process[_0x17775d(0x7d)][_0x17775d(0x91)]+_0x17775d(_0x4f9985._0x52881d)];default:return[_0x17775d(_0x4f9985._0x2e0996),_0x17775d(_0x4f9985._0x477bdd),_0x17775d(_0x4f9985._0x405723),_0x17775d(_0x4f9985._0x516863),_0x17775d(_0x4f9985._0x1bfd86)];}})()),CHROME_BIN_NAMES=[_0x1b6239(0x81),_0x1b6239(0x9a),_0x1b6239(0x8a),_0x1b6239(0x76)],EDGE_PATHS=((()=>{const _0x4a3b41={_0x118e98:0x99,_0x5ba2e1:0x7d},_0x12b0af=_0x1b6239;switch(process[_0x12b0af(0x8e)]){case _0x12b0af(0x8f):return['/Applications/Microsoft\x20Edge.app/Contents/MacOS/Microsoft\x20Edge'];case _0x12b0af(_0x4a3b41._0x118e98):return[process[_0x12b0af(0x7d)][_0x12b0af(0x84)]+'\x5cMicrosoft\x5cEdge\x5cApplication\x5cmsedge.exe',process[_0x12b0af(_0x4a3b41._0x5ba2e1)]['ProgramFiles(x86)']+'\x5cMicrosoft\x5cEdge\x5cApplication\x5cmsedge.exe'];default:return[_0x12b0af(0x74),'/usr/bin/microsoft-edge-stable'];}})()),EDGE_BIN_NAMES=[_0x1b6239(0x78),_0x1b6239(0x7b)],CHROME_BETA_PATHS=((()=>{const _0x3db7e2={_0xb3f318:0x8c,_0x599cc1:0x7d},_0x212f51=_0x1b6239;switch(process[_0x212f51(0x8e)]){case _0x212f51(0x8f):return[_0x212f51(_0x3db7e2._0xb3f318)];case _0x212f51(0x99):return[process[_0x212f51(_0x3db7e2._0x599cc1)][_0x212f51(0x84)]+_0x212f51(0x89)];default:return[_0x212f51(0x85)];}})());function firstExistingPath(_0x327aa5){const _0x3fbfc7={_0x1f4844:0x7c},_0x401f41=_0x1b6239;for(const _0x54a624 of _0x327aa5){if(!_0x54a624||_0x54a624['startsWith'](_0x401f41(_0x3fbfc7._0x1f4844)))continue;if(existsSync(_0x54a624))return _0x54a624;}return null;}__name(firstExistingPath,'firstExistingPath');function whichOf(_0x31f16f){const _0x46e382={_0x171881:0x8e,_0x31c733:0x90},_0x569f49=_0x1b6239;if(process[_0x569f49(_0x46e382._0x171881)]==='win32')return void 0x0;for(const _0x1899ff of _0x31f16f){try{const _0x4ecf1d=execFileSync('which',[_0x1899ff],{'encoding':_0x569f49(0x79)})[_0x569f49(_0x46e382._0x31c733)]();if(_0x4ecf1d['length']>0x0&&existsSync(_0x4ecf1d))return _0x4ecf1d;}catch{}}return void 0x0;}__name(whichOf,_0x1b6239(0x7e));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";
|