@ranger-testing/ranger-cli 3.1.2-alpha.b450a14-41 → 3.1.3-alpha.2c5eb8e-44
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/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x46b255,_0x5a6228){const _0xe723e1=_0xbddf,_0x3d55b1=_0x46b255();while(!![]){try{const _0x3ebc02=parseInt(_0xe723e1(0x169))/0x1*(-parseInt(_0xe723e1(0x135))/0x2)+parseInt(_0xe723e1(0x10e))/0x3+parseInt(_0xe723e1(0x16b))/0x4*(parseInt(_0xe723e1(0x10f))/0x5)+parseInt(_0xe723e1(0x178))/0x6*(parseInt(_0xe723e1(0x16e))/0x7)+parseInt(_0xe723e1(0xfb))/0x8*(-parseInt(_0xe723e1(0x159))/0x9)+parseInt(_0xe723e1(0x158))/0xa+parseInt(_0xe723e1(0x118))/0xb*(-parseInt(_0xe723e1(0xfd))/0xc);if(_0x3ebc02===_0x5a6228)break;else _0x3d55b1['push'](_0x3d55b1['shift']());}catch(_0x378df1){_0x3d55b1['push'](_0x3d55b1['shift']());}}}(_0x4f29,0x526dc));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';function _0x4f29(){const _0x215d1f=['xHaMF',']\x20**','RtILG','string','test','OoKRK','length','set','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','xpPgf','split','BuGOE','dkWGu','run-code','\x5c$&','wqLPM','SSEXw','QnYRc','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','ysQJv','XFhFm','playwright-cli','open','jMFjR','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','fill\x20','3325160fczSlD','287361pBRpon','WUpvl','description','`:\x20\x22','gvfUy','(?:^|\x5cs)','\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20(bug,\x20error,\x20missing\x20feature)\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.','commandArgs','tab-select','03_result-visible.png','mtimeMs','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','cijxe','log','WLxWy','cwd','37531lpikED','stringify','128OqxPLR','\x20snapshot\x20--filename\x20','capture\x20snapshot','801920OhaTFY','\x20>\x20','tool_failure','authorEmail','IOVAK','open\x20browser','sort','select\x20tab\x20','authorName','01_mozilla-homepage.png','18SnjZAv','select\x20tab','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','...','unaddressedComments','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','short','GMykR','snapshot','OoKVA','ysrPU','\x0a\x0a##\x20Additional\x20Notes\x0a','hOcLl','content','start\x20video\x20recording','Bash','check','HmfzG','152KwvLFc','\x22\x0a-\x20Number\x20prefixes\x20(01_,\x2002_,\x20etc.)\x20help\x20maintain\x20chronological\x20order\x0a-\x20For\x20KEY\x20MOMENTS\x20that\x20prove\x20the\x20scenario\x20is\x20complete,\x20prefix\x20with\x20\x22key_\x22:\x20\x22','42828jaJhbj','iwqJZ','trace.trace.zip','\x20open\x20','):\x20\x22','tool_name','error','\x22\x0a-\x20The\x20\x22key_\x22\x20prefix\x20marks\x20screenshots\x20as\x20high-priority\x20evidence\x20for\x20human\x20reviewers\x0a\x0a**Aim\x20for\x203-6\x20screenshots\x20per\x20verification**\x20to\x20document\x20the\x20complete\x20flow.\x20Mark\x201-2\x20of\x20the\x20most\x20important\x20ones\x20with\x20the\x20\x22key_\x22\x20prefix.\x0a','en-US','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','dwriH','pop','tab-new','rrFwp','KZIgG','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','trackPhaseStart','1033743gAlaBg','104345bZOKne','click','Orsrh','name','01_initial.yml','cllyT','FRlqG','playwright_cli_video_stop','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20immediately\x20with\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','1947inYjAM','map','AAXNv','playwright_cli_tracing_stop','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','push','oTIYI','vLvfZ','\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a9.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a10.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario','env','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','tracing-start','stdout','trace.zip','trackPhaseError','element','domRef','run\x20custom\x20Playwright\x20code','DStjK','trim','open\x20new\x20tab','`\x20writes\x20a\x20YAML\x20snapshot\x20you\x20can\x20read\x20for\x20element\x20refs\x0a-\x20`click\x20<ref>`,\x20`fill\x20<ref>\x20\x22text\x22`,\x20`check\x20<ref>`,\x20`press\x20Enter`\x0a-\x20`tab-list`,\x20`tab-select\x20<index>`,\x20`tab-new\x20<url>`\x0a-\x20`screenshot\x20--filename\x20','uUymZ','target','gsgBN','**\x20(','hook_event_name','LPIpr','stop\x20tracing','6LRqhcW','trackPhaseEnd','video-stop','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','Qranb','join','\x20open`,\x20then\x20`','\x20screenshot\x20--filename\x20','click\x20'];_0x4f29=function(){return _0x215d1f;};return _0x4f29();}import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';const PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,PLAYWRIGHT_CLI_PREVIEW_LIMIT=0xf0,VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|session-recording(?:-\d+)?\.webm|trace(?:\.trace)?(?:-\d+)?\.zip|current_snap\.ya?ml)$/i;function truncatePreview(_0x466cba,_0x182113=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x2025c4=_0xbddf,_0x22c015={'IEjoe':function(_0x334c83,_0x4fad30){return _0x334c83+_0x4fad30;}};return _0x466cba[_0x2025c4(0x144)]>_0x182113?_0x22c015['IEjoe'](_0x466cba['slice'](0x0,_0x182113),_0x2025c4(0x17b)):_0x466cba;}function buildCliArtifactPath(_0x47cf7c,_0x1251d1){const _0x40c344=_0xbddf,_0x4d5fdb={'OoKRK':function(_0x424645,_0x3e90a0,_0x35f9ea){return _0x424645(_0x3e90a0,_0x35f9ea);}};return _0x4d5fdb[_0x40c344(0x143)](join,_0x47cf7c,_0x1251d1);}function toStepDisplayName(_0x407878){const _0x4aad41=_0xbddf,_0x621c0e={'cllyT':function(_0x492365,_0x5736fe){return _0x492365(_0x5736fe);},'LKXjg':function(_0x59b848,_0x42abd8){return _0x59b848(_0x42abd8);}},_0x32836a=_0x621c0e[_0x4aad41(0x114)](basename,_0x407878)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x32836a,'isKeyStep':/^key_/i['test'](_0x621c0e['LKXjg'](basename,_0x407878))};}function extractShellValue(_0x2ceea8){if(!_0x2ceea8)return null;return _0x2ceea8[0x1]??_0x2ceea8[0x2]??_0x2ceea8[0x3]??null;}function extractFilenameOption(_0x8ec00b){const _0x48fa74={'ANSDV':function(_0x4f4f70,_0x5ddd11){return _0x4f4f70(_0x5ddd11);}};return _0x48fa74['ANSDV'](extractShellValue,_0x8ec00b['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function _0xbddf(_0x561b0e,_0x26d289){_0x561b0e=_0x561b0e-0xee;const _0x4f293a=_0x4f29();let _0xbddfb8=_0x4f293a[_0x561b0e];return _0xbddfb8;}function extractFirstCommandArgument(_0x20b39e,_0x2fe477){const _0x4b596f=_0xbddf,_0x381c1e={'gvfUy':_0x4b596f(0x14c)},_0x3a434d=_0x2fe477['replace'](/[.*+?^${}()|[\]\\]/g,_0x381c1e[_0x4b596f(0x15d)]);return extractShellValue(_0x20b39e['match'](new RegExp(_0x4b596f(0x15e)+_0x3a434d+_0x4b596f(0x11c))));}function formatCommandTarget(_0x40f000){const _0x1af5d1=_0xbddf,_0x20d512={'qBCiJ':function(_0x4046e7,_0x44c8dd,_0x203d91){return _0x4046e7(_0x44c8dd,_0x203d91);}};if(!_0x40f000)return _0x1af5d1(0x12f);if(/^e\d+$/i[_0x1af5d1(0x142)](_0x40f000))return'ref\x20'+_0x40f000;return JSON[_0x1af5d1(0x16a)](_0x20d512['qBCiJ'](truncatePreview,_0x40f000,0x78));}function formatPlaywrightCliLog(_0x5f2a50,_0xb4fa68){const _0x100652=_0xbddf,_0x5d4c5d={'FRlqG':function(_0x26dced,_0x133c6a,_0x5f2d9e){return _0x26dced(_0x133c6a,_0x5f2d9e);},'LayYt':'start\x20tracing','KZIgG':'tracing-stop','jMFjR':_0x100652(0x137),'tOuqe':'stop\x20video\x20recording','OoKVA':function(_0x10f9b2,_0x48ac5d){return _0x10f9b2(_0x48ac5d);},'dOiyE':function(_0x244263,_0x269671){return _0x244263(_0x269671);},'GMykR':_0x100652(0x110),'RtILG':_0x100652(0xf9),'iwqJZ':'fill','zNJcB':function(_0x3bfa84,_0x3e6b44,_0x2377e8){return _0x3bfa84(_0x3e6b44,_0x2377e8);},'SSEXw':_0x100652(0x14b),'xpPgf':_0x100652(0x129),'vVboH':_0x100652(0x109),'xHaMF':_0x100652(0x12c),'oTIYI':_0x100652(0x161)};switch(_0xb4fa68){case _0x100652(0x154):{const _0x21152f=_0x5d4c5d[_0x100652(0x115)](extractFirstCommandArgument,_0x5f2a50,_0xb4fa68);return _0x21152f?'open\x20'+_0x21152f:_0x100652(0x173);}case _0x100652(0x123):return _0x5d4c5d['LayYt'];case _0x5d4c5d[_0x100652(0x10b)]:return _0x100652(0x134);case'video-start':return _0x100652(0xf7);case _0x5d4c5d[_0x100652(0x155)]:return _0x5d4c5d['tOuqe'];case _0x100652(0xf1):{const _0x2857dc=extractFilenameOption(_0x5f2a50);if(!_0x2857dc)return _0x100652(0x16d);const {name:_0x2f666d}=_0x5d4c5d[_0x100652(0xf2)](toStepDisplayName,_0x2857dc);return'capture\x20snapshot\x20`'+_0x2f666d+'`';}case'screenshot':{const _0x2e6dc3=_0x5d4c5d['dOiyE'](extractFilenameOption,_0x5f2a50);if(!_0x2e6dc3)return'capture\x20screenshot';const {name:_0x113f56,isKeyStep:_0x37fdae}=toStepDisplayName(_0x2e6dc3);return _0x37fdae?'capture\x20key\x20step\x20`'+_0x113f56+'`':'capture\x20step\x20`'+_0x113f56+'`';}case _0x5d4c5d[_0x100652(0xf0)]:return _0x100652(0x13d)+formatCommandTarget(_0x5d4c5d['FRlqG'](extractFirstCommandArgument,_0x5f2a50,_0xb4fa68));case _0x5d4c5d[_0x100652(0x140)]:return'check\x20'+formatCommandTarget(extractFirstCommandArgument(_0x5f2a50,_0xb4fa68));case _0x5d4c5d[_0x100652(0xfe)]:return _0x100652(0x157)+formatCommandTarget(_0x5d4c5d['zNJcB'](extractFirstCommandArgument,_0x5f2a50,_0xb4fa68));case'press':return'press\x20'+formatCommandTarget(extractFirstCommandArgument(_0x5f2a50,_0xb4fa68));case _0x5d4c5d[_0x100652(0x14e)]:return _0x5d4c5d[_0x100652(0x147)];case _0x5d4c5d['vVboH']:{const _0x4c96e5=_0x5d4c5d['FRlqG'](extractFirstCommandArgument,_0x5f2a50,_0xb4fa68);return _0x4c96e5?'open\x20new\x20tab\x20'+_0x4c96e5:_0x5d4c5d[_0x100652(0x13e)];}case _0x5d4c5d[_0x100652(0x11e)]:{const _0x5b9cd2=extractFirstCommandArgument(_0x5f2a50,_0xb4fa68);return _0x5b9cd2?_0x100652(0x175)+_0x5b9cd2:_0x100652(0x179);}default:return _0xb4fa68;}}function extractPlaywrightCliToolDescription(_0x32ec62){const _0x431ff8=_0xbddf,_0x14f79e=_0x32ec62[_0x431ff8(0x15b)];if(typeof _0x14f79e!==_0x431ff8(0x141))return null;const _0x4363dc=_0x14f79e[_0x431ff8(0x12b)]()['replace'](/\s+/g,'\x20');return _0x4363dc['length']>0x0?_0x4363dc:null;}export function formatPlaywrightCliConsoleLogMessage(_0x480a3e,_0x4d4cc5,_0x5bf953){const _0x263d5b=_0xbddf,_0x3377c3={'rrFwp':function(_0x20f911,_0x2ee831,_0x588fd9){return _0x20f911(_0x2ee831,_0x588fd9);},'dkWGu':function(_0x38516f,_0x37138f){return _0x38516f(_0x37138f);}},_0x149556=_0x3377c3[_0x263d5b(0x10a)](formatPlaywrightCliLog,_0x4d4cc5,_0x5bf953),_0x356049=_0x3377c3[_0x263d5b(0x14a)](extractPlaywrightCliToolDescription,_0x480a3e);if(!_0x356049)return'[playwright-cli]\x20'+_0x149556;if(process[_0x263d5b(0x121)]['DEBUG'])return'[ranger-verification-agent]\x20'+_0x356049+'\x20('+_0x149556+')';return'[ranger-verification-agent]\x20'+_0x356049;}export function buildVerifyFeatureCliDebugPrompt(_0x2618f6,_0x2cb5ae){const _0x239bfc=_0xbddf,_0x466ed6={'AAXNv':function(_0xb8a5fd,_0x5c849c,_0x4a34cc){return _0xb8a5fd(_0x5c849c,_0x4a34cc);},'gsgBN':_0x239bfc(0x177),'ysrPU':function(_0x22da72,_0x463172,_0x45bc0e){return _0x22da72(_0x463172,_0x45bc0e);},'sLErw':'03_learn-more.png','dwriH':function(_0x5e5b64,_0x4b19ce){return _0x5e5b64(_0x4b19ce);}},_0x3ac59c=_0x466ed6['AAXNv'](buildCliArtifactPath,_0x2cb5ae,'00_mozilla-homepage.yml'),_0x121547=_0x466ed6[_0x239bfc(0x11a)](buildCliArtifactPath,_0x2cb5ae,_0x466ed6[_0x239bfc(0x130)]),_0x3fcf62=buildCliArtifactPath(_0x2cb5ae,'02_learn-more.yml'),_0x41bbc7=_0x466ed6[_0x239bfc(0xf3)](buildCliArtifactPath,_0x2cb5ae,_0x466ed6['sLErw']),_0x49be62=quoteShellArg(_0x3ac59c),_0x5038ea=_0x466ed6[_0x239bfc(0x107)](quoteShellArg,_0x121547),_0x4c877d=_0x466ed6['dwriH'](quoteShellArg,_0x3fcf62),_0x2545f5=quoteShellArg(_0x41bbc7);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x2618f6+'\x0a\x0a1.\x20Run\x20`'+_0x2618f6+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x2618f6+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x2618f6+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2cb5ae+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x2618f6+_0x239bfc(0x16c)+_0x49be62+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x2618f6+_0x239bfc(0x13c)+_0x5038ea+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x2618f6+_0x239bfc(0x16c)+_0x4c877d+'`\x0a9.\x20Run\x20`'+_0x2618f6+'\x20screenshot\x20--filename\x20'+_0x2545f5+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x4d9dde){const _0x47a0dd=_0xbddf,_0x232039={'nnPkB':'numeric','QQNjm':'Reviewer','DStjK':_0x47a0dd(0x16f),'BuGOE':_0x47a0dd(0x113),'XFhFm':'02_state.yml','uUymZ':function(_0x1127ea,_0x1a211e,_0x3974f0){return _0x1127ea(_0x1a211e,_0x3974f0);},'yykWA':'01_initial-state.png','LPIpr':function(_0x1a98b0,_0x3989ea){return _0x1a98b0(_0x3989ea);},'ysQJv':'02_button-clicked.png','oKcwe':'key_04_success-state.png'},{checklistItem:_0x15849b,itemFeedback:_0x21ad24,taskDescription:_0x59a2b2,cliCommandPrefix:_0x2e5584,cliArtifactDir:_0x544cf8,isCdpMode:_0x5c8a29,url:_0x397b50,cdpEndpoint:_0x57cf6b,loginInstructions:_0xae1b9f}=_0x4d9dde,_0x3b58c7=buildCliArtifactPath(_0x544cf8,_0x232039[_0x47a0dd(0x149)]),_0x4fae4a=buildCliArtifactPath(_0x544cf8,_0x232039[_0x47a0dd(0x152)]),_0x18bde4=_0x232039['uUymZ'](buildCliArtifactPath,_0x544cf8,'key_03_success-state.png'),_0x4132b0=buildCliArtifactPath(_0x544cf8,_0x232039['yykWA']),_0x18ebe3=quoteShellArg(_0x3b58c7),_0x1676d2=_0x232039['LPIpr'](quoteShellArg,_0x4fae4a),_0x202645=quoteShellArg(_0x18bde4),_0x4973e0=_0x232039[_0x47a0dd(0x133)](quoteShellArg,_0x4132b0),_0x138aef=_0x15849b['notes']?_0x47a0dd(0xf4)+_0x15849b['notes']:'';let _0x5dde25='';if(_0x21ad24&&_0x21ad24['unaddressedComments'][_0x47a0dd(0x144)]>0x0){const _0x5b35ed=_0x21ad24[_0x47a0dd(0x17c)][_0x47a0dd(0x119)](_0x18673f=>{const _0x16e866=_0x47a0dd,_0x45c54d=new Date(_0x18673f['createdAt'])['toLocaleDateString'](_0x16e866(0x105),{'month':_0x16e866(0xef),'day':_0x232039['nnPkB']}),_0x4198f9=_0x18673f[_0x16e866(0x176)]||_0x18673f[_0x16e866(0x171)]||_0x232039['QQNjm'],_0x46e68c=_0x18673f['domRef']?'\x20(on\x20element:\x20<'+(_0x18673f[_0x16e866(0x128)]['selector'][_0x16e866(0x148)](_0x232039[_0x16e866(0x12a)])[_0x16e866(0x108)]()?.[_0x16e866(0x148)](':')[0x0]||_0x16e866(0x127))+'>\x20\x22'+(_0x18673f[_0x16e866(0x128)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x18673f['id']+_0x16e866(0x13f)+_0x4198f9+_0x16e866(0x131)+_0x45c54d+_0x16e866(0x101)+_0x18673f[_0x16e866(0xf6)]+'\x22'+_0x46e68c;})[_0x47a0dd(0x13a)]('\x0a');_0x5dde25='\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20(the\x20bracketed\x20value)\x20in\x20the\x20addressedCommentIds\x20array\x20in\x20your\x20output.\x0a\x0a'+_0x5b35ed;}const _0x5bb9c5=_0x21ad24?.['canonicalFlow']?_0x47a0dd(0x122)+_0x21ad24['canonicalFlow']:'',_0x3ff62b=_0x5c8a29?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x57cf6b+_0x47a0dd(0x150):_0x47a0dd(0x106)+_0x397b50+'\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x20(same\x20protocol,\x20host,\x20and\x20port)\x0a-\x20For\x20example,\x20if\x20the\x20base\x20URL\x20is\x20\x22http://localhost:3000\x22,\x20you\x20can\x20navigate\x20to\x20\x22http://localhost:3000/home\x22,\x20\x22http://localhost:3000/settings\x22,\x20etc.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port\x20under\x20any\x20circumstances\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists\x20(e.g.,\x20\x22/dashboard\x22),\x20you\x20may\x20navigate\x20to\x20that\x20path\x20ONLY\x20under\x20the\x20base\x20URL\x20above\x0a-\x20The\x20base\x20URL\x20above\x20is\x20the\x20ONLY\x20authorized\x20profile\x20for\x20this\x20verification',_0x367e29=_0x397b50?quoteShellArg(_0x397b50):'',_0x555c03=_0x5c8a29?_0x47a0dd(0x10c)+_0x2e5584+_0x47a0dd(0x13b)+_0x2e5584+'\x20tracing-start`,\x20then\x20`'+_0x2e5584+_0x47a0dd(0x146)+_0x544cf8+_0x47a0dd(0x164)+_0x2e5584+'\x20snapshot\x20--filename\x20'+_0x18ebe3+'`\x20to\x20inspect\x20the\x20current\x20app\x20state.\x0a5.\x20Read\x20snapshot\x20YAML\x20files\x20to\x20find\x20element\x20references\x20like\x20`e12`,\x20then\x20use\x20them\x20with\x20`click`,\x20`fill`,\x20`check`,\x20or\x20`select`.\x0a6.\x20Use\x20`'+_0x2e5584+_0x47a0dd(0x13c)+_0x4973e0+_0x47a0dd(0x138)+_0x2e5584+'\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a7.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a8.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario':'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x2e5584+_0x47a0dd(0x100)+_0x367e29+'`,\x20then\x20`'+_0x2e5584+'\x20tracing-start`,\x20then\x20`'+_0x2e5584+_0x47a0dd(0x146)+_0x544cf8+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x2e5584+'\x20snapshot\x20--filename\x20'+_0x18ebe3+'`\x20and\x20read\x20the\x20snapshot\x20file\x20to\x20inspect\x20the\x20page.\x0a5.\x20**IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors\x20before\x20proceeding.**\x0a6.\x20Execute\x20the\x20task\x20step-by-step\x20with\x20Playwright\x20CLI\x20commands.\x0a7.\x20Use\x20`'+_0x2e5584+_0x47a0dd(0x13c)+_0x4973e0+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x2e5584+_0x47a0dd(0x120),_0x47633d=_0x5c8a29?'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20taking\x20the\x20initial\x20snapshot,\x20IMMEDIATELY\x20check\x20for\x20blocking\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20Crash\x20or\x20error\x20dialogs\x20(\x22An\x20error\x20occurred\x22,\x20\x22Something\x20went\x20wrong\x22,\x20unhandled\x20exception\x20messages)\x0a-\x20Blank\x20or\x20empty\x20window\x20with\x20no\x20rendered\x20content\x0a-\x20Framework\x20error\x20boundaries\x20(React\x20error\x20page,\x20Electron\x20crash\x20reporter)\x0a-\x20Unresponsive\x20or\x20frozen\x20UI\x20(no\x20interactive\x20elements\x20in\x20snapshot)\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22App\x20crashed\x20—\x20error\x20dialog\x20visible\x20on\x20launch\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20type:\x20\x22APP_ERROR\x22\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.':_0x47a0dd(0x17a),_0x3be83e=_0xae1b9f?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0xae1b9f+_0x47a0dd(0x117):'';return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x15849b['description']+_0x138aef+_0x5dde25+_0x5bb9c5+_0x47a0dd(0xee)+_0x59a2b2+'\x0a\x0a'+_0x3ff62b+_0x3be83e+'\x0a\x0a'+_0x555c03+_0x47a0dd(0x156)+_0x2e5584+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x544cf8+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x1676d2+_0x47a0dd(0x12d)+_0x202645+'`\x0a-\x20`run-code\x20\x22await\x20page.waitForTimeout(1000)\x22`\x20for\x20waits\x20or\x20small\x20custom\x20checks\x0a\x0a##\x20Screenshot\x20Guidelines\x20-\x20IMPORTANT\x0aTake\x20screenshots\x20throughout\x20the\x20verification\x20flow\x20so\x20a\x20human\x20can\x20review\x20it\x20for\x20completeness.\x20Screenshots\x20are\x20your\x20evidence\x20trail.\x0a\x0a**When\x20to\x20take\x20screenshots\x20(use\x20Playwright\x20CLI\x20screenshot):**\x0a-\x20After\x20the\x20initial\x20snapshot\x20(capture\x20starting\x20state)\x0a-\x20Before\x20and\x20after\x20clicking\x20buttons\x20or\x20submitting\x20forms\x0a-\x20When\x20important\x20UI\x20elements\x20appear\x20(modals,\x20notifications,\x20loading\x20states)\x0a-\x20After\x20navigating\x20to\x20different\x20views\x20or\x20pages\x0a-\x20When\x20verifying\x20specific\x20elements\x20exist\x0a-\x20At\x20the\x20final\x20state\x20showing\x20the\x20completed\x20action\x0a\x0a**Screenshot\x20naming:**\x0a-\x20Use\x20descriptive\x20filenames\x20under\x20`'+_0x544cf8+_0x47a0dd(0x15c)+_0x4132b0+'\x22,\x20\x22'+_0x232039[_0x47a0dd(0x12e)](buildCliArtifactPath,_0x544cf8,_0x232039[_0x47a0dd(0x151)])+'\x22,\x20\x22'+_0x232039[_0x47a0dd(0x12e)](buildCliArtifactPath,_0x544cf8,_0x47a0dd(0x162))+_0x47a0dd(0xfc)+buildCliArtifactPath(_0x544cf8,_0x232039['oKcwe'])+_0x47a0dd(0x104)+_0x47633d+_0x47a0dd(0x15f);}export function summarizeVerifyFeatureCliCommandAvailability(_0x2dcaeb){const _0x563288=_0xbddf,_0x2423de=[..._0x2dcaeb['keys']()][_0x563288(0x174)]();let _0x2e4957=0x0;for(const _0x107b2e of _0x2dcaeb['values']()){_0x2e4957+=_0x107b2e;}return{'cliCommandCount':_0x2e4957,'cliCommandsSeen':_0x2423de,'noCliCommandsCalled':_0x2e4957===0x0};}export function createVerifyFeatureCliHooks(_0x1039f6){const _0x41bccf=_0xbddf,_0x22ab3e={'QnYRc':function(_0x20972f,_0x49a1c1){return _0x20972f!==_0x49a1c1;},'bAlSi':_0x41bccf(0xf8),'zmRzV':function(_0x3530a1,_0x1ea625){return _0x3530a1+_0x1ea625;},'nstNo':'tool_call','wqLPM':function(_0x4c0ed2,_0x441de7){return _0x4c0ed2(_0x441de7);},'xXbEJ':'snapshot','vLvfZ':_0x41bccf(0x170),'IOVAK':_0x41bccf(0x153)},_0x580fa4=new Map(),_0x5a2e1a=async _0x5b14f9=>{const _0x5f31d3=_0x41bccf;if(_0x22ab3e['QnYRc'](_0x5b14f9['hook_event_name'],'PostToolUse'))return{};const _0x1238bf=_0x5b14f9;if(_0x22ab3e[_0x5f31d3(0x14f)](_0x1238bf[_0x5f31d3(0x102)],_0x22ab3e['bAlSi']))return{};const _0x20d49b=_0x1238bf['tool_input'],_0x5255e4=extractBashCommand(_0x20d49b);if(!_0x5255e4)return{};const _0x9f71b0=parsePlaywrightCliCommand(_0x5255e4);if(!_0x9f71b0)return{};return _0x580fa4[_0x5f31d3(0x145)](_0x9f71b0,_0x22ab3e['zmRzV'](_0x580fa4['get'](_0x9f71b0)||0x0,0x1)),_0x1039f6[_0x5f31d3(0x10d)](_0x22ab3e['nstNo'],{'transport':'playwright-cli','toolName':_0x9f71b0}),_0x1039f6[_0x5f31d3(0x136)](_0x22ab3e['nstNo'],{'transport':_0x5f31d3(0x153),'toolName':_0x9f71b0,'bashCommandPreview':_0x22ab3e[_0x5f31d3(0x14d)](truncatePreview,_0x5255e4)}),_0x22ab3e[_0x5f31d3(0x14f)](_0x9f71b0,_0x22ab3e['xXbEJ'])&&console[_0x5f31d3(0x166)](formatPlaywrightCliConsoleLogMessage(_0x20d49b,_0x5255e4,_0x9f71b0)),{};},_0x30452b=async _0x54ef72=>{const _0xde336a=_0x41bccf;if(_0x54ef72[_0xde336a(0x132)]!=='PostToolUseFailure')return{};const _0xf4bd77=_0x54ef72;if(_0xf4bd77[_0xde336a(0x102)]!==_0xde336a(0xf8))return{};return await _0x1039f6[_0xde336a(0x126)](_0x22ab3e[_0xde336a(0x11f)],_0xf4bd77[_0xde336a(0x103)],{'transport':_0x22ab3e[_0xde336a(0x172)],'toolName':_0xde336a(0xf8)}),{};};return{'postToolUseHook':_0x5a2e1a,'postToolUseFailureHook':_0x30452b,'commandCounts':_0x580fa4};}async function runPlaywrightCliLifecycleCommand(_0x5c1df2){const _0x1e287a=_0xbddf,_0x461e51={'WLxWy':function(_0x2ad4b9,_0x1a9b44){return _0x2ad4b9??_0x1a9b44;},'WUpvl':function(_0x2d34e2,_0x21e92b,_0x24224c){return _0x2d34e2(_0x21e92b,_0x24224c);}},{sessionId:_0x285332,configPath:_0x120311,commandArgs:_0x3f948a,env:_0xb64b86,telemetry:_0x5bad0c,phase:_0x5ea4bc,metadata:_0x1c2052,timeoutMs:_0x2692cc}=_0x5c1df2;_0x5bad0c[_0x1e287a(0x10d)](_0x5ea4bc,_0x1c2052);try{const _0x149dc6=await runPlaywrightCliCommand({'sessionId':_0x285332,'configPath':_0x120311,'commandArgs':_0x3f948a,'cwd':process[_0x1e287a(0x168)](),'env':_0xb64b86,'timeoutMs':_0x461e51[_0x1e287a(0x167)](_0x2692cc,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x5bad0c['trackPhaseEnd'](_0x5ea4bc,{..._0x1c2052,'subcommand':_0x149dc6['invocation']['subcommand'],'stdoutPreview':_0x461e51['WUpvl'](truncatePreview,_0x149dc6[_0x1e287a(0x124)],0x7d0),'stderrPreview':_0x461e51[_0x1e287a(0x15a)](truncatePreview,_0x149dc6['stderr'],0x7d0)});}catch(_0x2ffe35){await _0x5bad0c['trackPhaseError'](_0x5ea4bc,_0x2ffe35,_0x1c2052);throw _0x2ffe35;}}export async function finalizeVerifyFeatureCliSession(_0x4c7f99){const _0x10b2f1=_0xbddf,_0x4e3e8e={'cijxe':_0x10b2f1(0x11b),'HmfzG':'tracing-stop','Orsrh':_0x10b2f1(0x116),'RVfFK':'playwright_cli_close','hOcLl':'close','eNOuk':function(_0x627909,_0x3e2a21){return _0x627909(_0x3e2a21);}},{telemetry:_0x2d8035,sessionId:_0x38bd35,configPath:_0x5e0bd6,cliArtifactDir:_0x203309,env:_0x43bdd8,transportMetadata:_0x2780ed}=_0x4c7f99,_0x201070=[{'phase':_0x4e3e8e[_0x10b2f1(0x165)],'commandArgs':[_0x4e3e8e[_0x10b2f1(0xfa)]]},{'phase':_0x4e3e8e[_0x10b2f1(0x111)],'commandArgs':['video-stop','--filename='+buildCliArtifactPath(_0x203309,'session-recording.webm')]},{'phase':_0x4e3e8e['RVfFK'],'commandArgs':[_0x4e3e8e[_0x10b2f1(0xf5)]]}];for(const _0x445f36 of _0x201070){try{await _0x4e3e8e['eNOuk'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x38bd35,'configPath':_0x5e0bd6,'commandArgs':[..._0x445f36[_0x10b2f1(0x160)]],'env':_0x43bdd8,'telemetry':_0x2d8035,'phase':_0x445f36['phase'],'metadata':_0x2780ed});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x420c33){const _0xb63ee=_0xbddf,_0xd4fdca=[_0xb63ee(0x125),_0xb63ee(0xff)];for(const _0x452ef7 of _0xd4fdca){const _0x5a48ad=join(_0x420c33,_0x452ef7);try{return{'buffer':await readFile(_0x5a48ad),'source':_0x5a48ad};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x17785e){const _0x2ad3bd=_0xbddf,_0x2c330a={'Qranb':function(_0x3684b4,_0x42201c){return _0x3684b4<_0x42201c;},'zNiff':function(_0x4f3b2f,_0x407da4,_0x22da14){return _0x4f3b2f(_0x407da4,_0x22da14);}},{cwd:_0x33c0f6,cliArtifactDir:_0x3182f9,startTime:_0x251d93}=_0x17785e,_0x3a7cb5=[];await mkdir(_0x3182f9,{'recursive':!![]});const _0x38a0b6=await readdir(_0x33c0f6,{'withFileTypes':!![]});for(const _0x11bbcc of _0x38a0b6){if(!_0x11bbcc['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x2ad3bd(0x142)](_0x11bbcc[_0x2ad3bd(0x112)]))continue;const _0x2c34ea=join(_0x33c0f6,_0x11bbcc['name']),_0x235ee8=await stat(_0x2c34ea);if(_0x2c330a[_0x2ad3bd(0x139)](_0x235ee8[_0x2ad3bd(0x163)]+0x7d0,_0x251d93))continue;const _0x48fd9b=_0x2c330a['zNiff'](buildCliArtifactPath,_0x3182f9,_0x11bbcc['name']);if(_0x2c34ea===_0x48fd9b)continue;await rename(_0x2c34ea,_0x48fd9b),_0x3a7cb5[_0x2ad3bd(0x11d)](_0x11bbcc[_0x2ad3bd(0x112)]);}return _0x3a7cb5[_0x2ad3bd(0x174)]();}
|
|
1
|
+
function _0x10f3(_0x490165,_0x18639f){_0x490165=_0x490165-0x14d;const _0x203c15=_0x203c();let _0x10f3b7=_0x203c15[_0x490165];return _0x10f3b7;}(function(_0x423a5c,_0x4416f2){const _0x710b92=_0x10f3,_0x216af7=_0x423a5c();while(!![]){try{const _0x4eced1=-parseInt(_0x710b92(0x1d2))/0x1*(-parseInt(_0x710b92(0x150))/0x2)+parseInt(_0x710b92(0x170))/0x3+parseInt(_0x710b92(0x1dc))/0x4*(-parseInt(_0x710b92(0x173))/0x5)+parseInt(_0x710b92(0x19a))/0x6*(parseInt(_0x710b92(0x1a9))/0x7)+parseInt(_0x710b92(0x188))/0x8*(-parseInt(_0x710b92(0x18f))/0x9)+-parseInt(_0x710b92(0x178))/0xa*(-parseInt(_0x710b92(0x195))/0xb)+parseInt(_0x710b92(0x186))/0xc*(-parseInt(_0x710b92(0x19b))/0xd);if(_0x4eced1===_0x4416f2)break;else _0x216af7['push'](_0x216af7['shift']());}catch(_0x3b28ec){_0x216af7['push'](_0x216af7['shift']());}}}(_0x203c,0x33c14));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';const PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,PLAYWRIGHT_CLI_PREVIEW_LIMIT=0xf0,VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|session-recording(?:-\d+)?\.webm|trace(?:\.trace)?(?:-\d+)?\.zip|current_snap\.ya?ml)$/i;function truncatePreview(_0x27cf7f,_0x2d429a=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x20326e=_0x10f3,_0x16e8bd={'ecIZK':function(_0x51545a,_0x984e1){return _0x51545a+_0x984e1;}};return _0x27cf7f[_0x20326e(0x1be)]>_0x2d429a?_0x16e8bd[_0x20326e(0x192)](_0x27cf7f[_0x20326e(0x15e)](0x0,_0x2d429a),_0x20326e(0x189)):_0x27cf7f;}function buildCliArtifactPath(_0x54f576,_0xeddd0c){const _0xef63e=_0x10f3,_0x150a38={'ongkF':function(_0x133965,_0x1b878d,_0x46b57f){return _0x133965(_0x1b878d,_0x46b57f);}};return _0x150a38[_0xef63e(0x16f)](join,_0x54f576,_0xeddd0c);}function _0x203c(){const _0x4a9b1c=['eAWUT','playwright_cli_close','):\x20\x22','UmuZb','`\x0a-\x20`snapshot\x20--filename\x20','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','lKjSY','OlhNO','ifRqE','fill\x20','**\x20(','get','cwd','01_initial.yml','ongkF','1050528GLsypR','hook_event_name','jpNip','25yUNGWa','You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a','\x20tracing-start`,\x20then\x20`','jPgnT','`\x20and\x20read\x20the\x20snapshot\x20file\x20to\x20inspect\x20the\x20page.\x0a5.\x20**IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors\x20before\x20proceeding.**\x0a6.\x20Execute\x20the\x20task\x20step-by-step\x20with\x20Playwright\x20CLI\x20commands.\x0a7.\x20Use\x20`','10cBMMVZ','selector','press\x20','snapshot','FCUJq','\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x20(same\x20protocol,\x20host,\x20and\x20port)\x0a-\x20For\x20example,\x20if\x20the\x20base\x20URL\x20is\x20\x22http://localhost:3000\x22,\x20you\x20can\x20navigate\x20to\x20\x22http://localhost:3000/home\x22,\x20\x22http://localhost:3000/settings\x22,\x20etc.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port\x20under\x20any\x20circumstances\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists\x20(e.g.,\x20\x22/dashboard\x22),\x20you\x20may\x20navigate\x20to\x20that\x20path\x20ONLY\x20under\x20the\x20base\x20URL\x20above\x0a-\x20The\x20base\x20URL\x20above\x20is\x20the\x20ONLY\x20authorized\x20profile\x20for\x20this\x20verification','`\x20writes\x20a\x20YAML\x20snapshot\x20you\x20can\x20read\x20for\x20element\x20refs\x0a-\x20`click\x20<ref>`,\x20`fill\x20<ref>\x20\x22text\x22`,\x20`check\x20<ref>`,\x20`press\x20Enter`\x0a-\x20`tab-list`,\x20`tab-select\x20<index>`,\x20`tab-new\x20<url>`\x0a-\x20`screenshot\x20--filename\x20','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','twGWt','capture\x20step\x20`','01_mozilla-homepage.png','env','en-US','fNXJH','324OwqHna','WJMty','56GfAGuo','...','key_03_success-state.png','02_button-clicked.png','session-recording.webm','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','462195pTzOtb','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','isFile','ecIZK','pop','trackPhaseStart','1164229CNgSIT','tracing-stop','trace.zip','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20immediately\x20with\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','335010ltYTeU','74581ecVgYK','sort','match','video-start','split','playwright-cli','subcommand','capture\x20screenshot','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','03_learn-more.png','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','\x20>\x20','\x20open`,\x20then\x20`','28GogSgv','stderr','trackPhaseEnd','LOvtu','open\x20','FXHlU','[ranger-verification-agent]\x20','video-stop','trackPhaseError','start\x20tracing','YmuSz','Reviewer','\x20snapshot\x20--filename\x20','fill','canonicalFlow','rwUBl','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','capture\x20snapshot\x20`','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','Bash','uaxfu','length','qdtwZ','test','unaddressedComments','PostToolUseFailure','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','01_initial-state.png','hoaPL','stdout','select\x20tab','BkasX','click','QXPRP','click\x20','FBdzS','sbQRO','notes','capture\x20snapshot','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','\x22\x0a-\x20The\x20\x22key_\x22\x20prefix\x20marks\x20screenshots\x20as\x20high-priority\x20evidence\x20for\x20human\x20reviewers\x0a\x0a**Aim\x20for\x203-6\x20screenshots\x20per\x20verification**\x20to\x20document\x20the\x20complete\x20flow.\x20Mark\x201-2\x20of\x20the\x20most\x20important\x20ones\x20with\x20the\x20\x22key_\x22\x20prefix.\x0a','272022aJvRjZ','replace','invocation','\x20open\x20','capture\x20key\x20step\x20`','PostToolUse','>\x20\x22','\x20screenshot\x20--filename\x20','\x20(on\x20element:\x20<','open','180004nhqKLK','join','\x0a\x0a##\x20Additional\x20Notes\x0a','pvClr','VbYdj','eLrvn','\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a9.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a10.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario','2iHDBmO','keZHE','`\x20to\x20inspect\x20the\x20current\x20app\x20state.\x0a5.\x20Read\x20snapshot\x20YAML\x20files\x20to\x20find\x20element\x20references\x20like\x20`e12`,\x20then\x20use\x20them\x20with\x20`click`,\x20`fill`,\x20`check`,\x20or\x20`select`.\x0a6.\x20Use\x20`','element','kpcJW','00_mozilla-homepage.yml','check\x20','tab-new','fpqoT','tool_name','LSVVZ','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','nUwTm','pAaGG','slice','check','authorEmail'];_0x203c=function(){return _0x4a9b1c;};return _0x203c();}function toStepDisplayName(_0x927f0d){const _0x19407d=_0x10f3,_0xd4cd69={'XyJbh':function(_0x3fd786,_0x69d87b){return _0x3fd786(_0x69d87b);}},_0x348cfe=_0xd4cd69['XyJbh'](basename,_0x927f0d)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x19407d(0x1d3)](/^key_/i,'')[_0x19407d(0x1d3)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x348cfe,'isKeyStep':/^key_/i[_0x19407d(0x1c0)](basename(_0x927f0d))};}function extractShellValue(_0x35e6e0){if(!_0x35e6e0)return null;return _0x35e6e0[0x1]??_0x35e6e0[0x2]??_0x35e6e0[0x3]??null;}function extractFilenameOption(_0x2b659d){const _0x3deda3=_0x10f3;return extractShellValue(_0x2b659d[_0x3deda3(0x19d)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x35799f,_0x3ca757){const _0x55657b=_0x10f3,_0x24db19=_0x3ca757[_0x55657b(0x1d3)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x35799f[_0x55657b(0x19d)](new RegExp('(?:^|\x5cs)'+_0x24db19+_0x55657b(0x15b))));}function formatCommandTarget(_0xaa812){const _0x771c72={'fIeqc':function(_0x5ed0cb,_0x8ec383,_0xceb1d4){return _0x5ed0cb(_0x8ec383,_0xceb1d4);}};if(!_0xaa812)return'target';if(/^e\d+$/i['test'](_0xaa812))return'ref\x20'+_0xaa812;return JSON['stringify'](_0x771c72['fIeqc'](truncatePreview,_0xaa812,0x78));}function formatPlaywrightCliLog(_0x37fd7f,_0x422565){const _0x3eea02=_0x10f3,_0x32c44e={'jpNip':_0x3eea02(0x1db),'fpqoT':function(_0x95215b,_0x2f042d,_0x379b7c){return _0x95215b(_0x2f042d,_0x379b7c);},'DaglP':'open\x20browser','XmsOR':'tracing-start','hoaPL':'stop\x20tracing','FXHlU':_0x3eea02(0x1cf),'OlhNO':function(_0x2b7037,_0x23522f){return _0x2b7037(_0x23522f);},'nUwTm':'screenshot','GLFLb':_0x3eea02(0x1c9),'fNXJH':function(_0x19f805,_0x297296){return _0x19f805(_0x297296);},'oBXTR':_0x3eea02(0x15f),'jPgnT':'run\x20custom\x20Playwright\x20code','FCUJq':_0x3eea02(0x157),'SleIX':'tab-select','rzLdl':function(_0x513576,_0x4177ee,_0x560693){return _0x513576(_0x4177ee,_0x560693);}};switch(_0x422565){case _0x32c44e[_0x3eea02(0x172)]:{const _0x46d227=_0x32c44e[_0x3eea02(0x158)](extractFirstCommandArgument,_0x37fd7f,_0x422565);return _0x46d227?_0x3eea02(0x1ad)+_0x46d227:_0x32c44e['DaglP'];}case _0x32c44e['XmsOR']:return _0x3eea02(0x1b2);case'tracing-stop':return _0x32c44e[_0x3eea02(0x1c5)];case _0x3eea02(0x19e):return'start\x20video\x20recording';case _0x3eea02(0x1b0):return'stop\x20video\x20recording';case'snapshot':{const _0x4828a0=extractFilenameOption(_0x37fd7f);if(!_0x4828a0)return _0x32c44e[_0x3eea02(0x1ae)];const {name:_0x843813}=_0x32c44e[_0x3eea02(0x168)](toStepDisplayName,_0x4828a0);return _0x3eea02(0x1ba)+_0x843813+'`';}case _0x32c44e[_0x3eea02(0x15c)]:{const _0x1f2f7d=extractFilenameOption(_0x37fd7f);if(!_0x1f2f7d)return _0x3eea02(0x1a2);const {name:_0x264cdc,isKeyStep:_0x27409b}=_0x32c44e[_0x3eea02(0x168)](toStepDisplayName,_0x1f2f7d);return _0x27409b?_0x3eea02(0x1d6)+_0x264cdc+'`':_0x3eea02(0x181)+_0x264cdc+'`';}case _0x32c44e['GLFLb']:return _0x3eea02(0x1cb)+_0x32c44e[_0x3eea02(0x185)](formatCommandTarget,_0x32c44e['fpqoT'](extractFirstCommandArgument,_0x37fd7f,_0x422565));case _0x32c44e['oBXTR']:return _0x3eea02(0x156)+formatCommandTarget(extractFirstCommandArgument(_0x37fd7f,_0x422565));case _0x3eea02(0x1b6):return _0x3eea02(0x16a)+_0x32c44e[_0x3eea02(0x185)](formatCommandTarget,extractFirstCommandArgument(_0x37fd7f,_0x422565));case'press':return _0x3eea02(0x17a)+formatCommandTarget(extractFirstCommandArgument(_0x37fd7f,_0x422565));case'run-code':return _0x32c44e[_0x3eea02(0x176)];case _0x32c44e[_0x3eea02(0x17c)]:{const _0x5e8912=extractFirstCommandArgument(_0x37fd7f,_0x422565);return _0x5e8912?'open\x20new\x20tab\x20'+_0x5e8912:'open\x20new\x20tab';}case _0x32c44e['SleIX']:{const _0x78055c=_0x32c44e['rzLdl'](extractFirstCommandArgument,_0x37fd7f,_0x422565);return _0x78055c?'select\x20tab\x20'+_0x78055c:_0x3eea02(0x1c7);}default:return _0x422565;}}function extractPlaywrightCliToolDescription(_0x3977e3){const _0x518f97=_0x10f3,_0x3ca864=_0x3977e3['description'];if(typeof _0x3ca864!=='string')return null;const _0x437cc3=_0x3ca864['trim']()['replace'](/\s+/g,'\x20');return _0x437cc3[_0x518f97(0x1be)]>0x0?_0x437cc3:null;}export function formatPlaywrightCliConsoleLogMessage(_0x4bac5a,_0x1f8c53,_0x4f31da){const _0x50308d=_0x10f3,_0x3c0844=formatPlaywrightCliLog(_0x1f8c53,_0x4f31da),_0x112d3d=extractPlaywrightCliToolDescription(_0x4bac5a);if(!_0x112d3d)return'[playwright-cli]\x20'+_0x3c0844;if(process[_0x50308d(0x183)]['DEBUG'])return _0x50308d(0x1af)+_0x112d3d+'\x20('+_0x3c0844+')';return _0x50308d(0x1af)+_0x112d3d;}export function buildVerifyFeatureCliDebugPrompt(_0xbc1851,_0x4dea21){const _0x20a51c=_0x10f3,_0x4d42dd={'ZtlWM':function(_0x6df53f,_0x3b9878,_0x4cec3e){return _0x6df53f(_0x3b9878,_0x4cec3e);},'QXPRP':_0x20a51c(0x155),'pOfrr':_0x20a51c(0x182),'OTkME':'02_learn-more.yml','keZHE':function(_0x56797d,_0x37e3e3){return _0x56797d(_0x37e3e3);}},_0xa61aa5=_0x4d42dd['ZtlWM'](buildCliArtifactPath,_0x4dea21,_0x4d42dd[_0x20a51c(0x1ca)]),_0x2324b6=buildCliArtifactPath(_0x4dea21,_0x4d42dd['pOfrr']),_0xef20f0=_0x4d42dd['ZtlWM'](buildCliArtifactPath,_0x4dea21,_0x4d42dd['OTkME']),_0x2e2d36=_0x4d42dd['ZtlWM'](buildCliArtifactPath,_0x4dea21,_0x20a51c(0x1a5)),_0x550893=quoteShellArg(_0xa61aa5),_0x5e1472=_0x4d42dd['keZHE'](quoteShellArg,_0x2324b6),_0x2f2588=_0x4d42dd[_0x20a51c(0x151)](quoteShellArg,_0xef20f0),_0x2738e6=quoteShellArg(_0x2e2d36);return _0x20a51c(0x190)+_0xbc1851+'\x0a\x0a1.\x20Run\x20`'+_0xbc1851+_0x20a51c(0x17f)+_0xbc1851+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0xbc1851+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4dea21+_0x20a51c(0x1c3)+_0xbc1851+_0x20a51c(0x1b5)+_0x550893+_0x20a51c(0x198)+_0xbc1851+_0x20a51c(0x1d9)+_0x5e1472+_0x20a51c(0x1bb)+_0xbc1851+_0x20a51c(0x1b5)+_0x2f2588+'`\x0a9.\x20Run\x20`'+_0xbc1851+_0x20a51c(0x1d9)+_0x2738e6+_0x20a51c(0x18e);}export function buildVerifyFeatureCliPrompt(_0x1668b7){const _0x13c6c9=_0x10f3,_0x1c1b9e={'YmuSz':_0x13c6c9(0x184),'twGWt':_0x13c6c9(0x1a7),'XKRtW':_0x13c6c9(0x153),'NrASz':'02_state.yml','lKjSY':function(_0x32e899,_0x4072a1,_0x22ed71){return _0x32e899(_0x4072a1,_0x22ed71);},'FurnE':_0x13c6c9(0x18a),'FBdzS':function(_0x594c70,_0x45ab4d){return _0x594c70(_0x45ab4d);},'ifRqE':function(_0xd658d2,_0x3745ac){return _0xd658d2(_0x3745ac);},'rwUBl':function(_0x3fe2ff,_0x4d4e3a){return _0x3fe2ff(_0x4d4e3a);},'pyUqF':function(_0x5dbec5,_0x3bbc4){return _0x5dbec5(_0x3bbc4);},'zwtuX':function(_0x2aa2e3,_0x31081e){return _0x2aa2e3>_0x31081e;},'wBtek':_0x13c6c9(0x18b),'UKKAv':'03_result-visible.png','pvClr':function(_0x3d87db,_0x1f5b6b,_0x168a92){return _0x3d87db(_0x1f5b6b,_0x168a92);},'SsTfL':'key_04_success-state.png'},{checklistItem:_0x5acef2,itemFeedback:_0x5efa7f,taskDescription:_0x5e6cb6,cliCommandPrefix:_0x39bf7f,cliArtifactDir:_0x4c41ed,isCdpMode:_0x29712f,url:_0xdb3117,cdpEndpoint:_0x4e4ecb,loginInstructions:_0x1ab7ca}=_0x1668b7,_0x4ecdf4=buildCliArtifactPath(_0x4c41ed,_0x13c6c9(0x16e)),_0x12ac7b=buildCliArtifactPath(_0x4c41ed,_0x1c1b9e['NrASz']),_0x557aad=_0x1c1b9e[_0x13c6c9(0x167)](buildCliArtifactPath,_0x4c41ed,_0x1c1b9e['FurnE']),_0x1215c1=buildCliArtifactPath(_0x4c41ed,_0x13c6c9(0x1c4)),_0x3935c9=_0x1c1b9e[_0x13c6c9(0x1cc)](quoteShellArg,_0x4ecdf4),_0x5db7b1=_0x1c1b9e[_0x13c6c9(0x169)](quoteShellArg,_0x12ac7b),_0xcddecb=_0x1c1b9e[_0x13c6c9(0x1b8)](quoteShellArg,_0x557aad),_0x345710=_0x1c1b9e['pyUqF'](quoteShellArg,_0x1215c1),_0x16d8cb=_0x5acef2[_0x13c6c9(0x1ce)]?_0x13c6c9(0x1de)+_0x5acef2['notes']:'';let _0x51eb09='';if(_0x5efa7f&&_0x1c1b9e['zwtuX'](_0x5efa7f['unaddressedComments']['length'],0x0)){const _0x3648cd=_0x5efa7f[_0x13c6c9(0x1c1)]['map'](_0x1b9298=>{const _0x5d14f4=_0x13c6c9,_0x5789ad=new Date(_0x1b9298['createdAt'])['toLocaleDateString'](_0x1c1b9e[_0x5d14f4(0x1b3)],{'month':'short','day':'numeric'}),_0xa4c726=_0x1b9298['authorName']||_0x1b9298[_0x5d14f4(0x160)]||_0x5d14f4(0x1b4),_0x568711=_0x1b9298['domRef']?_0x5d14f4(0x1da)+(_0x1b9298['domRef'][_0x5d14f4(0x179)][_0x5d14f4(0x19f)](_0x1c1b9e[_0x5d14f4(0x180)])[_0x5d14f4(0x193)]()?.[_0x5d14f4(0x19f)](':')[0x0]||_0x1c1b9e['XKRtW'])+_0x5d14f4(0x1d8)+(_0x1b9298['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x1b9298['id']+']\x20**'+_0xa4c726+_0x5d14f4(0x16b)+_0x5789ad+_0x5d14f4(0x163)+_0x1b9298['content']+'\x22'+_0x568711;})[_0x13c6c9(0x1dd)]('\x0a');_0x51eb09='\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20(the\x20bracketed\x20value)\x20in\x20the\x20addressedCommentIds\x20array\x20in\x20your\x20output.\x0a\x0a'+_0x3648cd;}const _0x5655a1=_0x5efa7f?.[_0x13c6c9(0x1b7)]?_0x13c6c9(0x1d0)+_0x5efa7f['canonicalFlow']:'',_0x2b4191=_0x29712f?_0x13c6c9(0x166)+_0x4e4ecb+_0x13c6c9(0x1a3):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0xdb3117+_0x13c6c9(0x17d),_0x250bb7=_0xdb3117?_0x1c1b9e['ifRqE'](quoteShellArg,_0xdb3117):'',_0x14adb6=_0x29712f?_0x13c6c9(0x1a6)+_0x39bf7f+_0x13c6c9(0x1a8)+_0x39bf7f+'\x20tracing-start`,\x20then\x20`'+_0x39bf7f+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4c41ed+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x39bf7f+'\x20snapshot\x20--filename\x20'+_0x3935c9+_0x13c6c9(0x152)+_0x39bf7f+_0x13c6c9(0x1d9)+_0x345710+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x39bf7f+'\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a7.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a8.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario':'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x39bf7f+_0x13c6c9(0x1d5)+_0x250bb7+'`,\x20then\x20`'+_0x39bf7f+_0x13c6c9(0x175)+_0x39bf7f+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4c41ed+_0x13c6c9(0x18d)+_0x39bf7f+_0x13c6c9(0x1b5)+_0x3935c9+_0x13c6c9(0x177)+_0x39bf7f+'\x20screenshot\x20--filename\x20'+_0x345710+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x39bf7f+_0x13c6c9(0x14f),_0x5ada4f=_0x29712f?'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20taking\x20the\x20initial\x20snapshot,\x20IMMEDIATELY\x20check\x20for\x20blocking\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20Crash\x20or\x20error\x20dialogs\x20(\x22An\x20error\x20occurred\x22,\x20\x22Something\x20went\x20wrong\x22,\x20unhandled\x20exception\x20messages)\x0a-\x20Blank\x20or\x20empty\x20window\x20with\x20no\x20rendered\x20content\x0a-\x20Framework\x20error\x20boundaries\x20(React\x20error\x20page,\x20Electron\x20crash\x20reporter)\x0a-\x20Unresponsive\x20or\x20frozen\x20UI\x20(no\x20interactive\x20elements\x20in\x20snapshot)\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22App\x20crashed\x20—\x20error\x20dialog\x20visible\x20on\x20launch\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20type:\x20\x22APP_ERROR\x22\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.':_0x13c6c9(0x1b9),_0x244820=_0x1ab7ca?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x1ab7ca+_0x13c6c9(0x199):'';return _0x13c6c9(0x174)+_0x5acef2['description']+_0x16d8cb+_0x51eb09+_0x5655a1+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x5e6cb6+'\x0a\x0a'+_0x2b4191+_0x244820+'\x0a\x0a'+_0x14adb6+_0x13c6c9(0x1a4)+_0x39bf7f+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x4c41ed+_0x13c6c9(0x165)+_0x5db7b1+_0x13c6c9(0x17e)+_0xcddecb+'`\x0a-\x20`run-code\x20\x22await\x20page.waitForTimeout(1000)\x22`\x20for\x20waits\x20or\x20small\x20custom\x20checks\x0a\x0a##\x20Screenshot\x20Guidelines\x20-\x20IMPORTANT\x0aTake\x20screenshots\x20throughout\x20the\x20verification\x20flow\x20so\x20a\x20human\x20can\x20review\x20it\x20for\x20completeness.\x20Screenshots\x20are\x20your\x20evidence\x20trail.\x0a\x0a**When\x20to\x20take\x20screenshots\x20(use\x20Playwright\x20CLI\x20screenshot):**\x0a-\x20After\x20the\x20initial\x20snapshot\x20(capture\x20starting\x20state)\x0a-\x20Before\x20and\x20after\x20clicking\x20buttons\x20or\x20submitting\x20forms\x0a-\x20When\x20important\x20UI\x20elements\x20appear\x20(modals,\x20notifications,\x20loading\x20states)\x0a-\x20After\x20navigating\x20to\x20different\x20views\x20or\x20pages\x0a-\x20When\x20verifying\x20specific\x20elements\x20exist\x0a-\x20At\x20the\x20final\x20state\x20showing\x20the\x20completed\x20action\x0a\x0a**Screenshot\x20naming:**\x0a-\x20Use\x20descriptive\x20filenames\x20under\x20`'+_0x4c41ed+'`:\x20\x22'+_0x1215c1+'\x22,\x20\x22'+_0x1c1b9e[_0x13c6c9(0x167)](buildCliArtifactPath,_0x4c41ed,_0x1c1b9e['wBtek'])+'\x22,\x20\x22'+_0x1c1b9e['lKjSY'](buildCliArtifactPath,_0x4c41ed,_0x1c1b9e['UKKAv'])+'\x22\x0a-\x20Number\x20prefixes\x20(01_,\x2002_,\x20etc.)\x20help\x20maintain\x20chronological\x20order\x0a-\x20For\x20KEY\x20MOMENTS\x20that\x20prove\x20the\x20scenario\x20is\x20complete,\x20prefix\x20with\x20\x22key_\x22:\x20\x22'+_0x1c1b9e[_0x13c6c9(0x1df)](buildCliArtifactPath,_0x4c41ed,_0x1c1b9e['SsTfL'])+_0x13c6c9(0x1d1)+_0x5ada4f+'\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20(bug,\x20error,\x20missing\x20feature)\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureCliCommandAvailability(_0x31dd21){const _0x453e92=_0x10f3,_0x3f48ef=[..._0x31dd21['keys']()][_0x453e92(0x19c)]();let _0x3f93d5=0x0;for(const _0x38d5da of _0x31dd21['values']()){_0x3f93d5+=_0x38d5da;}return{'cliCommandCount':_0x3f93d5,'cliCommandsSeen':_0x3f48ef,'noCliCommandsCalled':_0x3f93d5===0x0};}export function createVerifyFeatureCliHooks(_0x3dea28){const _0x5bf892=_0x10f3,_0x407999={'UmuZb':function(_0x50b381,_0x2bf80f){return _0x50b381!==_0x2bf80f;},'LSVVZ':'Bash','uaxfu':function(_0x53bfda,_0x2c606e){return _0x53bfda+_0x2c606e;},'WJMty':_0x5bf892(0x1a0),'akywh':'tool_call','sbQRO':function(_0x126426,_0x517318){return _0x126426!==_0x517318;}},_0x38a463=new Map(),_0x1bcede=async _0x50db19=>{const _0xab9277=_0x5bf892;if(_0x50db19[_0xab9277(0x171)]!==_0xab9277(0x1d7))return{};const _0x1c4b9e=_0x50db19;if(_0x407999['UmuZb'](_0x1c4b9e[_0xab9277(0x159)],_0x407999[_0xab9277(0x15a)]))return{};const _0x214d7f=_0x1c4b9e['tool_input'],_0x1f6145=extractBashCommand(_0x214d7f);if(!_0x1f6145)return{};const _0x62169b=parsePlaywrightCliCommand(_0x1f6145);if(!_0x62169b)return{};return _0x38a463['set'](_0x62169b,_0x407999[_0xab9277(0x1bd)](_0x38a463[_0xab9277(0x16c)](_0x62169b)||0x0,0x1)),_0x3dea28['trackPhaseStart']('tool_call',{'transport':_0x407999[_0xab9277(0x187)],'toolName':_0x62169b}),_0x3dea28[_0xab9277(0x1ab)](_0x407999['akywh'],{'transport':'playwright-cli','toolName':_0x62169b,'bashCommandPreview':truncatePreview(_0x1f6145)}),_0x62169b!==_0xab9277(0x17b)&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x214d7f,_0x1f6145,_0x62169b)),{};},_0x17df52=async _0x5f5228=>{const _0x5c4a44=_0x5bf892;if(_0x407999[_0x5c4a44(0x164)](_0x5f5228['hook_event_name'],_0x5c4a44(0x1c2)))return{};const _0x570d7a=_0x5f5228;if(_0x407999[_0x5c4a44(0x1cd)](_0x570d7a['tool_name'],_0x5c4a44(0x1bc)))return{};return await _0x3dea28['trackPhaseError']('tool_failure',_0x570d7a['error'],{'transport':_0x407999['WJMty'],'toolName':_0x5c4a44(0x1bc)}),{};};return{'postToolUseHook':_0x1bcede,'postToolUseFailureHook':_0x17df52,'commandCounts':_0x38a463};}async function runPlaywrightCliLifecycleCommand(_0x20823e){const _0x36dfc0=_0x10f3,_0x363cf8={'pAaGG':function(_0x215b64,_0x2acefb){return _0x215b64(_0x2acefb);},'eAWUT':function(_0x3e370f,_0x117d50){return _0x3e370f??_0x117d50;},'eLrvn':function(_0x59065e,_0x5e03d4,_0x4b48dc){return _0x59065e(_0x5e03d4,_0x4b48dc);}},{sessionId:_0x2e96a9,configPath:_0x4bb7e0,commandArgs:_0x59c210,env:_0x2506a0,telemetry:_0x159d3d,phase:_0x7dd889,metadata:_0x1b7683,timeoutMs:_0x446f78}=_0x20823e;_0x159d3d[_0x36dfc0(0x194)](_0x7dd889,_0x1b7683);try{const _0x16203a=await _0x363cf8[_0x36dfc0(0x15d)](runPlaywrightCliCommand,{'sessionId':_0x2e96a9,'configPath':_0x4bb7e0,'commandArgs':_0x59c210,'cwd':process[_0x36dfc0(0x16d)](),'env':_0x2506a0,'timeoutMs':_0x363cf8[_0x36dfc0(0x161)](_0x446f78,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x159d3d[_0x36dfc0(0x1ab)](_0x7dd889,{..._0x1b7683,'subcommand':_0x16203a[_0x36dfc0(0x1d4)][_0x36dfc0(0x1a1)],'stdoutPreview':truncatePreview(_0x16203a[_0x36dfc0(0x1c6)],0x7d0),'stderrPreview':_0x363cf8[_0x36dfc0(0x14e)](truncatePreview,_0x16203a[_0x36dfc0(0x1aa)],0x7d0)});}catch(_0x337eb8){await _0x159d3d[_0x36dfc0(0x1b1)](_0x7dd889,_0x337eb8,_0x1b7683);throw _0x337eb8;}}export async function finalizeVerifyFeatureCliSession(_0x13f3e1){const _0xcf0068=_0x10f3,_0x158adf={'kpcJW':function(_0x5877f1,_0x587b55,_0x456704){return _0x5877f1(_0x587b55,_0x456704);},'LOvtu':'close','BigvX':function(_0x5e5174,_0x1112d5){return _0x5e5174(_0x1112d5);}},{telemetry:_0x365cf2,sessionId:_0x3f01ae,configPath:_0x124cb5,cliArtifactDir:_0x2fa831,env:_0x27adca,transportMetadata:_0x168b00}=_0x13f3e1,_0x51df9e=[{'phase':'playwright_cli_tracing_stop','commandArgs':[_0xcf0068(0x196)]},{'phase':'playwright_cli_video_stop','commandArgs':[_0xcf0068(0x1b0),'--filename='+_0x158adf[_0xcf0068(0x154)](buildCliArtifactPath,_0x2fa831,_0xcf0068(0x18c))]},{'phase':_0xcf0068(0x162),'commandArgs':[_0x158adf[_0xcf0068(0x1ac)]]}];for(const _0x5da3c9 of _0x51df9e){try{await _0x158adf['BigvX'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x3f01ae,'configPath':_0x124cb5,'commandArgs':[..._0x5da3c9['commandArgs']],'env':_0x27adca,'telemetry':_0x365cf2,'phase':_0x5da3c9['phase'],'metadata':_0x168b00});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x27ea31){const _0x4f560f=_0x10f3,_0x273c1a={'JPUPz':'trace.trace.zip','iZYVF':function(_0x50895a,_0x14b689,_0x15a2e5){return _0x50895a(_0x14b689,_0x15a2e5);},'VbYdj':function(_0x42c1b0,_0x5acf9e){return _0x42c1b0(_0x5acf9e);}},_0x1db11b=[_0x4f560f(0x197),_0x273c1a['JPUPz']];for(const _0x5b9b69 of _0x1db11b){const _0x25ab1c=_0x273c1a['iZYVF'](join,_0x27ea31,_0x5b9b69);try{return{'buffer':await _0x273c1a[_0x4f560f(0x14d)](readFile,_0x25ab1c),'source':_0x25ab1c};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x31ba29){const _0x348e65=_0x10f3,_0x5a6d16={'BkasX':function(_0x423773,_0x1dc813,_0x477ce4){return _0x423773(_0x1dc813,_0x477ce4);},'uEtpb':function(_0x5cedd0,_0x3a542b,_0x52cef9){return _0x5cedd0(_0x3a542b,_0x52cef9);},'qdtwZ':function(_0x49e275,_0x1b86f5){return _0x49e275+_0x1b86f5;}},{cwd:_0x13f682,cliArtifactDir:_0x5933e2,startTime:_0x2d2495}=_0x31ba29,_0x6d5504=[];await _0x5a6d16[_0x348e65(0x1c8)](mkdir,_0x5933e2,{'recursive':!![]});const _0x31eaff=await _0x5a6d16['uEtpb'](readdir,_0x13f682,{'withFileTypes':!![]});for(const _0x1f1ac7 of _0x31eaff){if(!_0x1f1ac7[_0x348e65(0x191)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x1f1ac7['name']))continue;const _0x4eae93=join(_0x13f682,_0x1f1ac7['name']),_0x1adcb5=await stat(_0x4eae93);if(_0x5a6d16[_0x348e65(0x1bf)](_0x1adcb5['mtimeMs'],0x7d0)<_0x2d2495)continue;const _0x396bda=buildCliArtifactPath(_0x5933e2,_0x1f1ac7['name']);if(_0x4eae93===_0x396bda)continue;await rename(_0x4eae93,_0x396bda),_0x6d5504['push'](_0x1f1ac7['name']);}return _0x6d5504[_0x348e65(0x19c)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x262ef1=_0x45ee;(function(_0x5ec739,_0x5224ec){const _0x5407e3=_0x45ee,_0x48b37c=_0x5ec739();while(!![]){try{const _0x5561db=-parseInt(_0x5407e3(0x123))/0x1*(-parseInt(_0x5407e3(0x10b))/0x2)+-parseInt(_0x5407e3(0x112))/0x3+-parseInt(_0x5407e3(0x110))/0x4*(parseInt(_0x5407e3(0x11b))/0x5)+parseInt(_0x5407e3(0x12b))/0x6+parseInt(_0x5407e3(0x10f))/0x7+parseInt(_0x5407e3(0x162))/0x8*(parseInt(_0x5407e3(0x177))/0x9)+-parseInt(_0x5407e3(0x182))/0xa;if(_0x5561db===_0x5224ec)break;else _0x48b37c['push'](_0x48b37c['shift']());}catch(_0x1ce57b){_0x48b37c['push'](_0x48b37c['shift']());}}}(_0x15d6,0xebfe7));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';import{homedir}from'os';import{basename,join}from'path';import{promisify}from'util';import{chromium}from'playwright';import{buildNovaActCliInvocation,buildNovaActCliSharedOptionsSuffix,extractNovaActLogDir,parseNovaActCliCommand,previewNovaActCliCommand,runNovaActCliCommand}from'./utils/novaActCli.js';import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';const NOVA_ACT_CLI_COMMAND_TIMEOUT_MS=0x1d4c0,NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS=0x3a98,NOVA_ARTIFACT_METADATA_WAIT_MS=0x1388,NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS=0x1388,VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|final-state\.ya?ml|nova-session-export\.json)$/i,NOVA_ACT_ALLOWED_AGENT_COMMANDS=new Set(['session\x20create','execute',_0x262ef1(0x1ce),'ask','goto','wait-for',_0x262ef1(0x1bf),_0x262ef1(0x1ba)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x1a979d,_0x4ae73b){const _0x531d36=_0x262ef1,_0x646eb0={'lZZVR':function(_0x2592d8,_0xccb64b,_0x283a73){return _0x2592d8(_0xccb64b,_0x283a73);}};return _0x646eb0[_0x531d36(0x1a4)](join,_0x1a979d,_0x4ae73b);}export class NovaActArtifactRecorder{['params'];[_0x262ef1(0x195)]=null;['context']=null;[_0x262ef1(0x150)]=null;[_0x262ef1(0x13c)]=[];['frameCount']=0x0;[_0x262ef1(0x163)]=0x0;['traceSampleTimer']=null;[_0x262ef1(0x143)]=null;[_0x262ef1(0x1b7)]=![];[_0x262ef1(0x132)]=![];[_0x262ef1(0x1d1)]=![];['stopped']=![];constructor(_0x4ce186){this['params']=_0x4ce186;}async[_0x262ef1(0x13a)](){const _0x4f7a6d=_0x262ef1,_0x5f1b13={'oeQxq':_0x4f7a6d(0x12e)};if(this['startAttempted'])return;this['startAttempted']=!![];const _0x190996=await this[_0x4f7a6d(0x1ae)](),_0x35fd94=_0x190996[_0x4f7a6d(0x1b1)];if(!_0x35fd94)throw new Error(_0x4f7a6d(0x1a0)+this[_0x4f7a6d(0x107)]['novaOptions'][_0x4f7a6d(0x185)]);await mkdir(this['params']['cliArtifactDir'],{'recursive':!![]}),this['browser']=await chromium['connectOverCDP'](_0x35fd94,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this['browser'][_0x4f7a6d(0x15c)]()[0x0]??null;if(!this['context'])throw new Error(_0x4f7a6d(0x139));await this[_0x4f7a6d(0x14c)]['tracing'][_0x4f7a6d(0x13a)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x4f7a6d(0x1b7)]=!![],this[_0x4f7a6d(0x158)](),await this['startScreencast'](),this['params'][_0x4f7a6d(0x12a)]['trackPhaseStart'](_0x5f1b13[_0x4f7a6d(0x178)],{...this[_0x4f7a6d(0x107)]['transportMetadata'],'cdpEndpoint':_0x35fd94,'browserPid':_0x190996['browser_pid'],'sessionState':_0x190996[_0x4f7a6d(0x154)]}),this['params']['telemetry'][_0x4f7a6d(0x1ab)](_0x4f7a6d(0x12e),{...this[_0x4f7a6d(0x107)]['transportMetadata'],'tracingStarted':this[_0x4f7a6d(0x1b7)],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x1889c6=_0x262ef1,_0x114b93={'GakiI':_0x1889c6(0x10a),'lggQv':function(_0x4b39e6,_0x437c71,_0x35ce6a){return _0x4b39e6(_0x437c71,_0x35ce6a);}};if(this['stopped'])return;this[_0x1889c6(0x173)]=!![];const _0x3d6736={...this[_0x1889c6(0x107)]['transportMetadata'],'frameCount':this[_0x1889c6(0x151)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x1889c6(0x132)]};this['params']['telemetry']['trackPhaseStart'](_0x114b93['GakiI'],_0x3d6736);try{await this[_0x1889c6(0x1a7)](),await this[_0x1889c6(0xfa)](),await this['stopScreencast'](),await Promise['allSettled'](this['frameWrites']);this['context']&&this['tracingStarted']&&await this[_0x1889c6(0x14c)][_0x1889c6(0x1b8)]['stop']({'path':_0x114b93[_0x1889c6(0x12d)](buildCliArtifactPath,this['params']['cliArtifactDir'],_0x1889c6(0x122))});const _0x55a8ed=await this[_0x1889c6(0x11e)]();this['params'][_0x1889c6(0x12a)]['trackPhaseEnd'](_0x114b93[_0x1889c6(0x109)],{..._0x3d6736,'videoPath':_0x55a8ed});}catch(_0x13dbd6){await this['params']['telemetry']['trackPhaseError']('nova_act_artifact_recording_stop',_0x13dbd6,_0x3d6736);}finally{await this['browser']?.['close']()['catch'](()=>undefined),this[_0x1889c6(0x195)]=null,this['context']=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0x5aa5ce=_0x262ef1,_0x810ee4={'rGPsi':function(_0x11a704,_0x2d121a,_0x398277,_0x1a4af6,_0x57e613,_0x1cc233){return _0x11a704(_0x2d121a,_0x398277,_0x1a4af6,_0x57e613,_0x1cc233);},'OhTNR':'browser','FkqeT':function(_0x34d271,_0x236c97,_0xd86c4d){return _0x34d271(_0x236c97,_0xd86c4d);},'dCdQp':function(_0x55946e,_0x41d950){return _0x55946e(_0x41d950);},'hkghp':function(_0x1e5d6d,_0x3f6f63){return _0x1e5d6d instanceof _0x3f6f63;}},_0x241f81=_0x810ee4[_0x5aa5ce(0x14d)](join,homedir(),'.act_cli',_0x810ee4[_0x5aa5ce(0x1cc)],'sessions',this[_0x5aa5ce(0x107)][_0x5aa5ce(0x116)]['sessionId']+_0x5aa5ce(0x1d0)),_0x19d82b=Date[_0x5aa5ce(0x13f)]();let _0x54a7b2;do{try{const _0x457318=JSON['parse'](await _0x810ee4[_0x5aa5ce(0x1c2)](readFile,_0x241f81,_0x5aa5ce(0x1a3)));if(_0x457318['cdp_endpoint'])return _0x457318;_0x54a7b2=new Error(_0x5aa5ce(0x147)+_0x241f81);}catch(_0x404016){_0x54a7b2=_0x404016;}await _0x810ee4[_0x5aa5ce(0x1aa)](delay,0x64);}while(Date[_0x5aa5ce(0x13f)]()-_0x19d82b<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x810ee4['hkghp'](_0x54a7b2,Error))throw _0x54a7b2;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x241f81);}async['startScreencast'](){const _0x50b5ac=_0x262ef1,_0xf38fc9={'jsZji':function(_0x1a765c,_0xe9f764){return _0x1a765c(_0xe9f764);},'pDGdU':_0x50b5ac(0x1b6),'VBXaV':function(_0x439fb8,_0xd5313e,_0x1430a7){return _0x439fb8(_0xd5313e,_0x1430a7);},'CjMml':_0x50b5ac(0x17f),'tjuSr':_0x50b5ac(0x13b),'LuOIl':'jpeg'};if(!this['context'])return;const _0x1a1f72=this['context'][_0x50b5ac(0x1ad)]()[0x0];if(!_0x1a1f72)return;const _0x412f52=this['getFrameDir']();await _0xf38fc9[_0x50b5ac(0x1c1)](mkdir,_0x412f52,{'recursive':!![]});const _0x4a9a3f=await this[_0x50b5ac(0x14c)][_0x50b5ac(0x14e)](_0x1a1f72);this['frameSession']=_0x4a9a3f,_0x4a9a3f['on'](_0xf38fc9[_0x50b5ac(0x19b)],_0x147296=>{const _0x14023d=_0x50b5ac,_0x288c48=++this['frameCount'],_0x5ff13e=join(_0x412f52,'frame-'+_0xf38fc9[_0x14023d(0x12c)](String,_0x288c48)[_0x14023d(0x135)](0x6,'0')+'.jpg'),_0x5bac02=writeFile(_0x5ff13e,Buffer['from'](_0x147296['data'],_0xf38fc9[_0x14023d(0x129)]))['catch'](()=>undefined)['finally'](()=>_0x4a9a3f['send']('Page.screencastFrameAck',{'sessionId':_0x147296['sessionId']}))[_0x14023d(0x175)](()=>undefined)['catch'](()=>undefined);this[_0x14023d(0x13c)][_0x14023d(0x172)](_0x5bac02);}),await _0x4a9a3f[_0x50b5ac(0x18c)](_0xf38fc9['tjuSr'],{'format':_0xf38fc9[_0x50b5ac(0x194)],'quality':0x4b,'everyNthFrame':0x6}),this[_0x50b5ac(0x132)]=!![];}async['stopScreencast'](){const _0x48a1a1=_0x262ef1;if(!this[_0x48a1a1(0x150)]||!this[_0x48a1a1(0x132)])return;await this['frameSession']['send'](_0x48a1a1(0x189))['catch'](()=>undefined);}['startTraceSampling'](){const _0x5a58af=_0x262ef1,_0x1180df={'WdEXJ':function(_0x262f5d,_0x345b5b,_0x760195){return _0x262f5d(_0x345b5b,_0x760195);}};this[_0x5a58af(0x11c)](),this[_0x5a58af(0x197)]=_0x1180df['WdEXJ'](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x262ef1(0x11c)](){if(this['traceSampleInFlight'])return;this['traceSampleInFlight']=this['captureTraceSample']()['finally'](()=>{this['traceSampleInFlight']=null;});}async[_0x262ef1(0x1a7)](){const _0x25963a=_0x262ef1;this[_0x25963a(0x197)]&&(clearInterval(this['traceSampleTimer']),this['traceSampleTimer']=null),await this['traceSampleInFlight']?.['catch'](()=>undefined);}async[_0x262ef1(0xfa)](){const _0x29973c=_0x262ef1,_0x3f6106=this['context']?.[_0x29973c(0x1ad)]()[0x0];if(!_0x3f6106)return;try{await _0x3f6106[_0x29973c(0x146)](_0x29973c(0x1c9))[_0x29973c(0x1af)](_0x36fc07=>_0x36fc07['tagName'],undefined,{'timeout':0x3e8}),this[_0x29973c(0x163)]++;}catch{}}async['encodeScreencastVideo'](){const _0xa60600=_0x262ef1,_0xb46aec={'QfUSX':function(_0x1c240b,_0x46a3ea){return _0x1c240b<_0x46a3ea;},'WfoRd':function(_0x3ba413,_0x3d3bee,_0x4d050f){return _0x3ba413(_0x3d3bee,_0x4d050f);},'OTbhM':'videos','TirPr':_0xa60600(0x1a6),'KVcov':_0xa60600(0x16e),'AwsDw':'-c:v','ARhrR':'libvpx-vp9','cFhpr':_0xa60600(0x196)};if(_0xb46aec[_0xa60600(0x160)](this[_0xa60600(0x151)],0x2))return null;const _0x12dd4e=await resolveFfmpegPath();if(!_0x12dd4e)return null;const _0x495afa=_0xb46aec['WfoRd'](join,this['params'][_0xa60600(0x18d)],_0xb46aec[_0xa60600(0xfc)]);await _0xb46aec['WfoRd'](mkdir,_0x495afa,{'recursive':!![]});const _0x1884d1=join(_0x495afa,'session-recording.webm');return await _0xb46aec[_0xa60600(0x133)](execFileAsync,_0x12dd4e,['-y','-hide_banner','-loglevel','error',_0xa60600(0x152),'10','-i',_0xb46aec[_0xa60600(0x133)](join,this['getFrameDir'](),_0xa60600(0xfb)),_0xb46aec['TirPr'],_0xb46aec[_0xa60600(0x184)],_0xb46aec[_0xa60600(0x191)],_0xb46aec[_0xa60600(0x15b)],_0xb46aec[_0xa60600(0x114)],'yuv420p',_0x1884d1]),_0x1884d1;}[_0x262ef1(0xf3)](){const _0x3a4aa2=_0x262ef1;return join(this['params'][_0x3a4aa2(0x18d)],_0x3a4aa2(0x1bc));}}async function delay(_0x176a87){await new Promise(_0x4d8773=>setTimeout(_0x4d8773,_0x176a87));}async function resolveFfmpegPath(){const _0x65a582=_0x262ef1,_0x4178e2={'vuKkn':function(_0x5ae3ca,_0x2c5962){return _0x5ae3ca(_0x2c5962);},'NRCXk':'ffmpeg','yGDbQ':function(_0x495886,_0x45d4c3,_0x202970,_0x2f9b22,_0x27c188){return _0x495886(_0x45d4c3,_0x202970,_0x2f9b22,_0x27c188);},'WUJmw':_0x65a582(0x1ca),'nKKJp':function(_0x512622,_0x53e5fe,_0x1b2fc7,_0x330655){return _0x512622(_0x53e5fe,_0x1b2fc7,_0x330655);},'ijEdi':function(_0x30d040,_0x416807){return _0x30d040(_0x416807);}};if(await _0x4178e2[_0x65a582(0x187)](canRunFfmpeg,_0x4178e2['NRCXk']))return'ffmpeg';const _0x34de06=[_0x4178e2[_0x65a582(0xfe)](join,homedir(),'Library',_0x65a582(0x18b),_0x4178e2['WUJmw']),_0x4178e2['nKKJp'](join,homedir(),_0x65a582(0x1a8),_0x65a582(0x1ca))];for(const _0x27d66f of _0x34de06){try{const _0xf0a303=await readdir(_0x27d66f),_0x19499d=_0xf0a303[_0x65a582(0x1cf)](_0x5d9967=>_0x5d9967['startsWith'](_0x65a582(0x159)))[_0x65a582(0x106)]()[_0x65a582(0x111)]()['flatMap'](_0x4bfa8a=>[join(_0x27d66f,_0x4bfa8a,'ffmpeg-mac'),join(_0x27d66f,_0x4bfa8a,'ffmpeg-linux'),join(_0x27d66f,_0x4bfa8a,'ffmpeg.exe')]);for(const _0xcf42a2 of _0x19499d){if(await _0x4178e2[_0x65a582(0x119)](canRunFfmpeg,_0xcf42a2))return _0xcf42a2;}}catch{}}return null;}async function canRunFfmpeg(_0x39817e){const _0x2a1df0={'naONL':function(_0x22c5bf,_0x737c5c,_0x10180b){return _0x22c5bf(_0x737c5c,_0x10180b);},'xIyfI':'-version'};try{return await _0x2a1df0['naONL'](execFileAsync,_0x39817e,[_0x2a1df0['xIyfI']]),!![];}catch{return![];}}function toStepDisplayName(_0x14b0fa){const _0x16e400=_0x262ef1,_0xfb7104={'zuGaH':function(_0x46e2f9,_0x2186c1){return _0x46e2f9(_0x2186c1);}},_0x46f2a1=basename(_0x14b0fa)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x16e400(0x190)](/^key_/i,'')[_0x16e400(0x190)](/^\d+_/,'')[_0x16e400(0x190)](/-/g,'\x20');return{'name':_0x46f2a1,'isKeyStep':/^key_/i[_0x16e400(0xff)](_0xfb7104[_0x16e400(0x170)](basename,_0x14b0fa))};}function extractShellValue(_0x222b68){if(!_0x222b68)return null;return _0x222b68[0x1]??_0x222b68[0x2]??_0x222b68[0x3]??null;}function extractOutputOption(_0x5d33a2){return extractShellValue(_0x5d33a2['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x2b4609,_0x4b4017){const _0x2f0f52=_0x262ef1,_0x22281f={'DQOcn':'ask\x20page\x20question','uoQfx':_0x2f0f52(0x13d),'atdfj':_0x2f0f52(0x13e),'GkMGm':'snapshot','QRMGE':_0x2f0f52(0x100),'jsDFh':function(_0xcc7781,_0x25c859){return _0xcc7781(_0x25c859);},'JyxJa':_0x2f0f52(0x14a)};switch(_0x4b4017){case _0x2f0f52(0x176):return _0x2f0f52(0x16c);case _0x2f0f52(0x15d):return _0x2f0f52(0x121);case _0x2f0f52(0x1ce):return'verify\x20page\x20condition';case _0x2f0f52(0x131):return _0x22281f['DQOcn'];case _0x22281f[_0x2f0f52(0xf5)]:return _0x22281f[_0x2f0f52(0x1bd)];case _0x2f0f52(0xfd):return _0x2f0f52(0x183);case _0x22281f['GkMGm']:{const _0x24461c=extractOutputOption(_0x2b4609);if(!_0x24461c)return _0x22281f[_0x2f0f52(0x179)];const {name:_0x8f0a6}=_0x22281f['jsDFh'](toStepDisplayName,_0x24461c);return'capture\x20snapshot\x20`'+_0x8f0a6+'`';}case'screenshot':{const _0x4a7afa=extractOutputOption(_0x2b4609);if(!_0x4a7afa)return _0x2f0f52(0x161);const {name:_0x198083,isKeyStep:_0x52f270}=_0x22281f['jsDFh'](toStepDisplayName,_0x4a7afa);return _0x52f270?'capture\x20key\x20step\x20`'+_0x198083+'`':'capture\x20step\x20`'+_0x198083+'`';}case _0x22281f['JyxJa']:return'export\x20Nova\x20session';default:return _0x4b4017;}}function getNovaActCliCommandBlockReason(_0x5049ed){const _0x36b510=_0x262ef1,_0x3b2cfb={'xApFO':'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','eHgYN':function(_0x1ba24f,_0xa7b0b1){return _0x1ba24f===_0xa7b0b1;},'eYwHE':_0x36b510(0x1ce)},_0x51356d=parseNovaActCliCommand(_0x5049ed);if(!_0x51356d)return _0x3b2cfb['xApFO'];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x36b510(0x145)](_0x51356d))return'Nova\x20command\x20`'+_0x51356d+_0x36b510(0x156);if(_0x3b2cfb['eHgYN'](_0x51356d,_0x3b2cfb['eYwHE'])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x36b510(0xff)](_0x5049ed))return'Evaluate\x20visited-page\x20aggregate\x20requirements\x20from\x20the\x20collected\x20URLs,\x20titles,\x20headings,\x20verify\x20results,\x20and\x20screenshots.\x20Do\x20not\x20run\x20another\x20browser\x20command\x20to\x20re-check\x20pages\x20already\x20visited.';if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x5049ed))return'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.';return null;}function _0x45ee(_0x275a36,_0x4e628b){_0x275a36=_0x275a36-0xf2;const _0x15d66d=_0x15d6();let _0x45ee45=_0x15d66d[_0x275a36];return _0x45ee45;}function buildFeedbackSection(_0x3ceb39){const _0x7255a0=_0x262ef1,_0x55992d={'pmTrJ':'en-US','xfwOI':_0x7255a0(0x19e),'xTWcD':_0x7255a0(0x118),'hqbEh':_0x7255a0(0x17d),'utiKo':'element','PizZu':function(_0x4d2e2a,_0xd5e3f0){return _0x4d2e2a===_0xd5e3f0;}};if(!_0x3ceb39||_0x55992d[_0x7255a0(0x19d)](_0x3ceb39['unaddressedComments'][_0x7255a0(0x144)],0x0))return'';const _0x3fb1b1=_0x3ceb39[_0x7255a0(0x1c5)][_0x7255a0(0x126)](_0xf3f1ce=>{const _0x303023=_0x7255a0,_0x49deb4=new Date(_0xf3f1ce[_0x303023(0x137)])['toLocaleDateString'](_0x55992d[_0x303023(0x1a2)],{'month':_0x55992d['xfwOI'],'day':_0x303023(0x1a9)}),_0x4a333b=_0xf3f1ce['authorName']||_0xf3f1ce['authorEmail']||_0x55992d[_0x303023(0x16a)],_0x3ff229=_0xf3f1ce['domRef']?'\x20(on\x20element:\x20<'+(_0xf3f1ce[_0x303023(0x193)]['selector']['split'](_0x55992d['hqbEh'])['pop']()?.[_0x303023(0x1bb)](':')[0x0]||_0x55992d['utiKo'])+_0x303023(0x188)+(_0xf3f1ce[_0x303023(0x193)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0xf3f1ce['id']+']\x20**'+_0x4a333b+'**\x20('+_0x49deb4+_0x303023(0x18a)+_0xf3f1ce['content']+'\x22'+_0x3ff229;})['join']('\x0a');return'\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x3fb1b1;}function buildNovaSharedOptionsInstruction(_0x7eb88d){if(!_0x7eb88d['trim']())return'The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.';return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x7eb88d;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x4dfeb5){const _0x44d06a=_0x262ef1,_0x3e3620={'vhDaz':function(_0x9e3684,_0xf253c8,_0x4c3fb0){return _0x9e3684(_0xf253c8,_0x4c3fb0);},'bGtwu':'01_initial-state.png','McDgC':_0x44d06a(0x167),'GQuXP':function(_0x12c7ee,_0x8056cd){return _0x12c7ee(_0x8056cd);}},{novaCommandPrefix:_0x3c25c1,novaSharedOptionsSuffix:_0x2035ec,cliArtifactDir:_0xdface0,url:_0x5a9acc}=_0x4dfeb5,_0x410e11=_0x3e3620[_0x44d06a(0x164)](buildCliArtifactPath,_0xdface0,'00_initial-state.yml'),_0x42f743=_0x3e3620[_0x44d06a(0x164)](buildCliArtifactPath,_0xdface0,_0x3e3620['bGtwu']),_0x292773=buildCliArtifactPath(_0xdface0,_0x3e3620['McDgC']),_0xa38a04=buildCliArtifactPath(_0xdface0,_0x44d06a(0xf9));return'You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x3c25c1+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x2035ec)+_0x44d06a(0x12f)+_0x3c25c1+'\x20session\x20create\x20'+quoteShellArg(_0x5a9acc)+'\x20'+_0x2035ec+'`\x0a2.\x20Run\x20`'+_0x3c25c1+'\x20snapshot\x20--output\x20'+_0x3e3620[_0x44d06a(0x1c3)](quoteShellArg,_0x410e11)+'\x20'+_0x2035ec+_0x44d06a(0x120)+_0x3c25c1+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x42f743)+'\x20'+_0x2035ec+_0x44d06a(0x11f)+_0x3c25c1+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x3c25c1+_0x44d06a(0x127)+_0x3e3620[_0x44d06a(0x1c3)](quoteShellArg,_0x292773)+'\x20'+_0x2035ec+'`\x0a6.\x20Run\x20`'+_0x3c25c1+_0x44d06a(0x186)+_0x3e3620['GQuXP'](quoteShellArg,_0xa38a04)+'\x20'+_0x2035ec+'`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`'+_0xdface0+_0x44d06a(0x1ac);}export function buildVerifyFeatureNovaCliPrompt(_0xff9797){const _0x19539e=_0x262ef1,_0x2732dd={'JLoUX':function(_0xa751a6,_0x1a926d,_0x1e5332){return _0xa751a6(_0x1a926d,_0x1e5332);},'fnoDC':_0x19539e(0x19a),'sumhA':function(_0x2bef16,_0xab4c78){return _0x2bef16(_0xab4c78);},'GuDOa':function(_0x247105,_0x31ce9d){return _0x247105(_0x31ce9d);}},{checklistItem:_0x428cd2,itemFeedback:_0x52e3b0,taskDescription:_0x32bb15,novaCommandPrefix:_0x58de1a,novaSharedOptionsSuffix:_0x5cf7cf,cliArtifactDir:_0x439ec9,url:_0x279858,loginInstructions:_0x5ed2b9}=_0xff9797,_0x1d415f=_0x428cd2[_0x19539e(0x1c4)]?_0x19539e(0x1cb)+_0x428cd2['notes']:'',_0x2cc632=buildFeedbackSection(_0x52e3b0),_0x441e7e=_0x52e3b0?.['canonicalFlow']?_0x19539e(0x136)+_0x52e3b0[_0x19539e(0x102)]:'',_0x4e5a5f=_0x5ed2b9?_0x19539e(0x166)+_0x5ed2b9+_0x19539e(0x198):'',_0x28ccb3=_0x2732dd[_0x19539e(0x11d)](buildCliArtifactPath,_0x439ec9,'01_initial.yml'),_0x3dc4ad=_0x2732dd[_0x19539e(0x11d)](buildCliArtifactPath,_0x439ec9,_0x2732dd[_0x19539e(0x1c6)]),_0x1ad0ab=buildCliArtifactPath(_0x439ec9,'key_03_success-state.png');return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x428cd2[_0x19539e(0x153)]+_0x1d415f+_0x2cc632+_0x441e7e+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x32bb15+_0x19539e(0x10c)+_0x279858+_0x19539e(0x142)+_0x4e5a5f+_0x19539e(0x169)+_0x58de1a+_0x19539e(0x1c8)+_0x2732dd['sumhA'](quoteShellArg,_0x279858)+'\x20'+_0x5cf7cf+_0x19539e(0x17b)+_0x439ec9+_0x19539e(0x181)+_0x58de1a+'\x20snapshot\x20--output\x20'+_0x2732dd[_0x19539e(0x17a)](quoteShellArg,_0x28ccb3)+'\x20'+_0x5cf7cf+_0x19539e(0x105)+_0x58de1a+_0x19539e(0x186)+_0x2732dd['sumhA'](quoteShellArg,_0x3dc4ad)+'\x20'+_0x5cf7cf+_0x19539e(0x15e)+_0x1ad0ab+_0x19539e(0x1d2)+_0x58de1a+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x5cf7cf[_0x19539e(0x1be)]()?'`'+_0x5cf7cf+'`':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`')+'\x0a\x0a'+_0x2732dd[_0x19539e(0x16f)](buildNovaSharedOptionsInstruction,_0x5cf7cf)+_0x19539e(0x19f)+_0x58de1a+_0x19539e(0x155)+_0x5cf7cf+_0x19539e(0x1c0)+_0x58de1a+_0x19539e(0xf6)+_0x5cf7cf+'`\x0a-\x20`'+_0x58de1a+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x28ccb3)+'\x20'+_0x5cf7cf+_0x19539e(0x1c0)+_0x58de1a+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x1ad0ab)+'\x20'+_0x5cf7cf+'`\x0a\x0a##\x20Screenshot\x20Guidelines\x0aTake\x20screenshots\x20at\x20scenario\x20milestones\x20so\x20a\x20human\x20can\x20review\x20each\x20completed\x20step\x20and\x20the\x20final\x20state.\x20Use\x20numbered\x20filenames\x20and\x20prefix\x201-2\x20key\x20proof\x20screenshots\x20with\x20`key_`.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page\x20when\x20an\x20existing\x20verifier\x20screenshot\x20or\x20host\x20final\x20screenshot\x20is\x20accessible.\x0a\x0a##\x20Snapshot\x20Guidelines\x0aYou\x20must\x20take\x20the\x20initial\x20snapshot\x20listed\x20above.\x20After\x20that,\x20prefer\x20screenshots\x20plus\x20the\x20page\x20summaries\x20returned\x20by\x20`execute`\x20and\x20`verify`.\x20Only\x20call\x20`snapshot`\x20again\x20if\x20you\x20cannot\x20determine\x20the\x20next\x20action\x20or\x20evaluation\x20from\x20those\x20outputs.\x0a\x0a##\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20initial\x20snapshot\x20and\x20screenshot,\x20check\x20for\x20blocking\x20HTTP\x20errors,\x20framework\x20error\x20pages,\x20blank\x20pages,\x20and\x20authentication\x20failures.\x20If\x20any\x20blocking\x20issue\x20is\x20present,\x20stop\x20and\x20return\x20evaluation\x20\x22blocked\x22\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Failed\x20Assertions\x0aIf\x20`verify`\x20returns\x20`ASSERTION_FAILED`,\x20use\x20its\x20`actual`\x20and\x20`evidence`\x20fields\x20as\x20proof\x20for\x20the\x20final\x20evaluation.\x20Continue\x20only\x20to\x20finish\x20other\x20already-named\x20scenario\x20milestones.\x20Do\x20not\x20retry,\x20ask\x20about,\x20or\x20search\x20around\x20the\x20failed\x20condition.\x0a\x0a##\x20Final\x20Page\x20Stop\x0aWhen\x20the\x20scenario\x20names\x20a\x20final\x20page\x20or\x20final\x20navigation\x20target,\x20that\x20page\x20is\x20the\x20last\x20browser\x20milestone.\x20Once\x20it\x20is\x20loaded\x20and\x20screenshotted,\x20make\x20the\x20final\x20evaluation\x20from\x20the\x20collected\x20evidence.\x20Do\x20not\x20navigate,\x20search,\x20ask,\x20or\x20verify\x20beyond\x20that\x20final\x20page\x20unless\x20the\x20scenario\x20explicitly\x20names\x20another\x20page.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x161ed1){const _0x4bc764=_0x262ef1,_0x42fd11={'jcIWZ':function(_0x55c6b1,_0x25a1e9){return _0x55c6b1===_0x25a1e9;}},_0x5b2d8d=[..._0x161ed1['keys']()][_0x4bc764(0x106)]();let _0x5baa28=0x0;for(const _0x477cde of _0x161ed1[_0x4bc764(0x16d)]()){_0x5baa28+=_0x477cde;}return{'cliCommandCount':_0x5baa28,'cliCommandsSeen':_0x5b2d8d,'noCliCommandsCalled':_0x42fd11[_0x4bc764(0x14b)](_0x5baa28,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x277748,_0x366258){const _0x50bdd9=_0x262ef1,_0x25e31b={'wxXgg':function(_0x3d1dce,_0x34bd02){return _0x3d1dce!==_0x34bd02;},'WZGON':_0x50bdd9(0x134),'dpUaL':function(_0x197c16,_0x1878fe){return _0x197c16(_0x1878fe);},'JxBEi':function(_0x57bf8e,_0x22ba5f){return _0x57bf8e(_0x22ba5f);},'lUjvK':_0x50bdd9(0x17e),'LXcAp':_0x50bdd9(0x141),'yWwkc':function(_0x5ca2f9,_0x5dcc28){return _0x5ca2f9+_0x5dcc28;},'jLNIq':'nova_act_command','gKyme':function(_0x95795f,_0x2a9129,_0x5a1695){return _0x95795f(_0x2a9129,_0x5a1695);},'wHIPR':'nova_act_artifact_recording','aXJBy':function(_0x1c177b,_0x377af4){return _0x1c177b!==_0x377af4;},'dLKzM':_0x50bdd9(0x199),'vggEp':_0x50bdd9(0x117),'sOjvc':'nova-act-cli'},_0x48f86d=new Map(),_0x32726b=async _0x36e04b=>{const _0x3a9527=_0x50bdd9;if(_0x25e31b['wxXgg'](_0x36e04b[_0x3a9527(0x1b0)],_0x3a9527(0x149)))return{};const _0x49b59c=_0x36e04b;if(_0x25e31b['wxXgg'](_0x49b59c[_0x3a9527(0x180)],_0x25e31b[_0x3a9527(0x18e)]))return{};const _0x5eef94=_0x49b59c[_0x3a9527(0x113)],_0x5a9065=_0x25e31b['dpUaL'](extractBashCommand,_0x5eef94);if(!_0x5a9065)return{};const _0x23e539=_0x25e31b[_0x3a9527(0x19c)](getNovaActCliCommandBlockReason,_0x5a9065);if(!_0x23e539)return{};return{'decision':_0x25e31b['lUjvK'],'reason':_0x23e539};},_0x2da34a=async _0x2d5f26=>{const _0x10feef=_0x50bdd9;if(_0x25e31b[_0x10feef(0x171)](_0x2d5f26[_0x10feef(0x1b0)],_0x25e31b['LXcAp']))return{};const _0x30a52c=_0x2d5f26;if(_0x30a52c['tool_name']!==_0x10feef(0x134))return{};const _0x4c5336=_0x30a52c[_0x10feef(0x113)],_0xf249af=extractBashCommand(_0x4c5336);if(!_0xf249af)return{};const _0x17eaad=parseNovaActCliCommand(_0xf249af);if(!_0x17eaad)return{};_0x48f86d['set'](_0x17eaad,_0x25e31b['yWwkc'](_0x48f86d['get'](_0x17eaad)||0x0,0x1)),_0x277748[_0x10feef(0x1a5)](_0x25e31b[_0x10feef(0x17c)],{'subcommand':_0x17eaad}),_0x277748[_0x10feef(0x1ab)](_0x10feef(0x1cd),{'subcommand':_0x17eaad,'commandPreview':previewNovaActCliCommand(_0xf249af)}),console['log'](_0x10feef(0x1b4)+_0x25e31b[_0x10feef(0x101)](formatNovaActCliLog,_0xf249af,_0x17eaad));if(_0x17eaad===_0x10feef(0x176)&&_0x366258)try{await _0x366258['start']();}catch(_0x3fb55f){await _0x277748[_0x10feef(0x115)](_0x25e31b['wHIPR'],_0x3fb55f,{'transport':_0x10feef(0x14f)});}return{};},_0x5321c3=async _0x1bc9d7=>{const _0x54ee03=_0x50bdd9;if(_0x25e31b[_0x54ee03(0x104)](_0x1bc9d7['hook_event_name'],_0x25e31b['dLKzM']))return{};const _0x3ca70b=_0x1bc9d7;if(_0x25e31b[_0x54ee03(0x171)](_0x3ca70b['tool_name'],_0x25e31b['WZGON']))return{};return await _0x277748['trackPhaseError'](_0x25e31b['vggEp'],_0x3ca70b['error'],{'transport':_0x25e31b[_0x54ee03(0x125)],'toolName':'Bash'}),{};};return{'preToolUseHook':_0x32726b,'postToolUseHook':_0x2da34a,'postToolUseFailureHook':_0x5321c3,'commandCounts':_0x48f86d};}async function runNovaLifecycleCommand(_0x31d0f7){const _0x4c9770=_0x262ef1,_0x200061={'xmXsh':function(_0x579d2a,_0x34dfc5){return _0x579d2a??_0x34dfc5;},'VBZsw':function(_0x2cab4c,_0x15d589){return _0x2cab4c(_0x15d589);},'XFyNT':function(_0x3a6495,_0x433673){return _0x3a6495(_0x433673);}},{novaOptions:_0x2d980e,commandArgs:_0x543b9e,telemetry:_0x342196,phase:_0x5e9d5e,metadata:_0x322cb3,timeoutMs:_0x5ef9cc}=_0x31d0f7;_0x342196['trackPhaseStart'](_0x5e9d5e,_0x322cb3);try{const _0x2c1847=await runNovaActCliCommand({..._0x2d980e,'commandArgs':_0x543b9e,'cwd':process['cwd'](),'env':process['env'],'timeoutMs':_0x200061['xmXsh'](_0x5ef9cc,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x342196[_0x4c9770(0x1ab)](_0x5e9d5e,{..._0x322cb3,'subcommand':_0x2c1847[_0x4c9770(0x1b2)][_0x4c9770(0x10d)],'commandPreview':previewNovaActCliCommand(_0x2c1847[_0x4c9770(0x1b2)]['shellCommand']),'stdoutPreview':_0x200061[_0x4c9770(0x128)](previewNovaActCliCommand,_0x2c1847['stdout']),'stderrPreview':_0x200061[_0x4c9770(0x1b5)](previewNovaActCliCommand,_0x2c1847[_0x4c9770(0x138)]),'logDir':extractNovaActLogDir(_0x2c1847['stdout'])});}catch(_0xd832c8){await _0x342196[_0x4c9770(0x115)](_0x5e9d5e,_0xd832c8,_0x322cb3);throw _0xd832c8;}}export async function finalizeVerifyFeatureNovaCliSession(_0x1ea590){const _0xb3c4e0=_0x262ef1,_0xdc1a61={'ekIuI':'nova_act_final_screenshot','uQPlY':_0xb3c4e0(0x10e),'jGISw':_0xb3c4e0(0x1bf),'xmEuC':_0xb3c4e0(0x192),'ZZjph':'--output','SLKqT':'export','JssoP':'close','lBDUr':function(_0x4cad35,_0x8ea4f){return _0x4cad35(_0x8ea4f);}},{telemetry:_0x3dd20e,novaOptions:_0x940869,cliArtifactDir:_0x4caec6,transportMetadata:_0x478901,artifactRecorder:_0x24fcb7}=_0x1ea590,_0x5e6666=[{'phase':_0xdc1a61[_0xb3c4e0(0xf4)],'commandArgs':[_0xb3c4e0(0x1ba),'--output',buildCliArtifactPath(_0x4caec6,_0xb3c4e0(0x130))]},{'phase':_0xdc1a61['uQPlY'],'commandArgs':[_0xdc1a61['jGISw'],_0xb3c4e0(0x16b),buildCliArtifactPath(_0x4caec6,'final-state.yaml')]},{'phase':'nova_act_session_export','commandArgs':[_0xdc1a61[_0xb3c4e0(0x174)],_0xb3c4e0(0x1b3),'--format',_0xb3c4e0(0x1d3),_0xdc1a61['ZZjph'],buildCliArtifactPath(_0x4caec6,_0xb3c4e0(0x168))]},{'phase':'nova_act_session_report','commandArgs':[_0xb3c4e0(0x192),_0xdc1a61[_0xb3c4e0(0x124)],_0xb3c4e0(0x108),'--output-dir',buildCliArtifactPath(_0x4caec6,'nova-report')]},{'phase':'nova_act_session_close','commandArgs':[_0xdc1a61['xmEuC'],_0xdc1a61['JssoP']]}];for(const _0x26b530 of _0x5e6666){_0x26b530[_0xb3c4e0(0x140)]===_0xb3c4e0(0xf8)&&await _0x24fcb7?.['stop']();try{await _0xdc1a61[_0xb3c4e0(0xf2)](runNovaLifecycleCommand,{'novaOptions':_0x940869,'commandArgs':[..._0x26b530[_0xb3c4e0(0x11a)]],'telemetry':_0x3dd20e,'phase':_0x26b530['phase'],'metadata':_0x478901});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x7acc88){const _0x4c7bf4=_0x262ef1,_0x4c48c5={'KUpvy':function(_0x277347,_0x5785d4,_0x3f5b60){return _0x277347(_0x5785d4,_0x3f5b60);},'tOlGC':function(_0x5e885e,_0x1f67e0,_0x77a4ac){return _0x5e885e(_0x1f67e0,_0x77a4ac);},'DFNwG':function(_0x30c18f,_0x45f15a){return _0x30c18f(_0x45f15a);},'ABgue':function(_0x5c6dca,_0xecb32c){return _0x5c6dca===_0xecb32c;}},{cwd:_0x3e51fe,cliArtifactDir:_0x4944a1,startTime:_0xcdfb94}=_0x7acc88,_0x212e86=[];await _0x4c48c5[_0x4c7bf4(0x18f)](mkdir,_0x4944a1,{'recursive':!![]});const _0x4570aa=await _0x4c48c5[_0x4c7bf4(0x157)](readdir,_0x3e51fe,{'withFileTypes':!![]});for(const _0x2336ea of _0x4570aa){if(!_0x2336ea[_0x4c7bf4(0x103)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x4c7bf4(0xff)](_0x2336ea['name']))continue;const _0x461b09=_0x4c48c5[_0x4c7bf4(0x157)](join,_0x3e51fe,_0x2336ea['name']),_0x2dfd64=await _0x4c48c5['DFNwG'](stat,_0x461b09);if(_0x2dfd64['mtimeMs']+0x7d0<_0xcdfb94)continue;const _0x22ed32=buildCliArtifactPath(_0x4944a1,_0x2336ea['name']);if(_0x4c48c5[_0x4c7bf4(0x15f)](_0x461b09,_0x22ed32))continue;await rename(_0x461b09,_0x22ed32),_0x212e86[_0x4c7bf4(0x172)](_0x2336ea['name']);}return _0x212e86['sort']();}function _0x15d6(){const _0x58ec1d=['encodeScreencastVideo','`\x0a4.\x20Run\x20one\x20batched\x20`','`\x0a3.\x20Run\x20`','execute\x20Nova\x20browser\x20action','trace.zip','1177237vuawAD','SLKqT','sOjvc','map','\x20snapshot\x20--output\x20','VBZsw','pDGdU','telemetry','1518708nOSvlL','jsZji','lggQv','nova_act_artifact_recording','\x0a\x0aThe\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20on\x20PATH.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20or\x20run\x20setup.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20the\x20session\x20create\x20command\x20below.\x0a\x0a1.\x20Run\x20`','key_final-state.png','ask','screencastStarted','WfoRd','Bash','padStart','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','createdAt','stderr','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','start','Page.startScreencast','frameWrites','goto','navigate\x20browser','now','phase','PostToolUse','\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x27s\x20origin.\x0a-\x20Do\x20not\x20navigate\x20to\x20any\x20different\x20protocol,\x20host,\x20or\x20port.\x0a-\x20If\x20the\x20browser\x20leaves\x20this\x20origin,\x20navigate\x20back\x20once.\x20If\x20you\x20cannot\x20recover,\x20return\x20evaluation\x20\x22blocked\x22.\x0a','traceSampleInFlight','length','has','locator','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','shellCommand','PreToolUse','session\x20export','jcIWZ','context','rGPsi','newCDPSession','nova-act-cli','frameSession','frameCount','-framerate','description','state','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','tOlGC','startTraceSampling','ffmpeg-','NNFkE','ARhrR','contexts','execute','`.\x0a7.\x20Optimize\x20for\x20few\x20browser\x20round\x20trips.\x20Each\x20Nova\x20CLI\x20call\x20has\x20high\x20latency.\x0a8.\x20Use\x203-5\x20high-level\x20`execute`\x20commands\x20total.\x20Each\x20`execute`\x20should\x20contain\x202-5\x20concrete\x20browser\x20steps\x20and\x20should\x20drive\x20to\x20the\x20next\x20milestone\x20page.\x0a9.\x20Do\x20not\x20split\x20a\x20simple\x20navigation\x20into\x20separate\x20commands\x20like\x20\x22open\x20menu\x22,\x20then\x20\x22click\x20link\x22,\x20then\x20\x22screenshot\x22.\x20Batch\x20those\x20into\x20one\x20`execute`\x20when\x20the\x20target\x20is\x20clear.\x0a10.\x20Do\x20not\x20use\x20`ask`\x20unless\x20you\x20are\x20genuinely\x20stuck\x20or\x20need\x20to\x20disambiguate\x20visible\x20page\x20content.\x20Prefer\x20reading\x20the\x20output\x20from\x20`execute`,\x20`snapshot`,\x20and\x20`verify`.\x0a11.\x20Use\x20`verify`\x20only\x20at\x20milestone\x20pages\x20that\x20map\x20directly\x20to\x20scenario\x20requirements.\x20Do\x20not\x20verify\x20after\x20every\x20click.\x0a12.\x20Take\x20screenshots\x20for\x20each\x20scenario\x20milestone\x20so\x20every\x20verified\x20step\x20has\x20reviewable\x20image\x20evidence,\x20including\x20the\x20final\x20state.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page.\x0a13.\x20After\x20the\x20required\x20initial\x20snapshot,\x20do\x20not\x20take\x20separate\x20milestone\x20snapshots\x20unless\x20you\x20cannot\x20understand\x20the\x20page\x20from\x20the\x20`execute`,\x20`verify`,\x20and\x20screenshot\x20outputs.\x0a14.\x20Mark\x20the\x20most\x20important\x20proof\x20screenshot\x20with\x20`key_`,\x20for\x20example\x20`','ABgue','QfUSX','capture\x20screenshot','3353312jxNqYg','traceSampleCount','vhDaz','-qr','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','02_final-state.yml','nova-session-export.json','\x0a\x0a##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Nova\x20Act\x20CLI\x20only.\x20Do\x20not\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20The\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20through\x20the\x20browser\x20command\x20prefix\x20below.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20check\x20AWS/auth\x20status,\x20read\x20env\x20files,\x20run\x20setup,\x20or\x20call\x20raw\x20`act\x20browser`.\x0a3.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20`','xTWcD','--output','create\x20Nova\x20browser\x20session','values','scale=trunc(iw/2)*2:trunc(ih/2)*2','GuDOa','zuGaH','wxXgg','push','stopped','xmEuC','then','session\x20create','36wqFDiG','oeQxq','QRMGE','sumhA','`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','jLNIq','\x20>\x20','block','Page.screencastFrame','tool_name','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','9065900HmKkKh','wait\x20for\x20page\x20condition','KVcov','sessionId','\x20screenshot\x20--output\x20','vuKkn','>\x20\x22','Page.stopScreencast','):\x20\x22','Caches','send','cliArtifactDir','WZGON','KUpvy','replace','AwsDw','session','domRef','LuOIl','browser','-pix_fmt','traceSampleTimer','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','PostToolUseFailure','01_initial-state.png','CjMml','JxBEi','PizZu','short','\x0a\x0aExamples:\x0a-\x20`','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','zip','pmTrJ','utf-8','lZZVR','trackPhaseStart','-vf','stopTraceSampling','.cache','numeric','dCdQp','trackPhaseEnd','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','pages','readSessionMetadataWithRetry','evaluate','hook_event_name','cdp_endpoint','invocation','export','[nova-act-cli]\x20','XFyNT','base64','tracingStarted','tracing','nova-user-data/*','screenshot','split','nova-video-frames','atdfj','trim','snapshot','`\x0a-\x20`','VBXaV','FkqeT','GQuXP','notes','unaddressedComments','fnoDC','cuImE','\x20session\x20create\x20','body','ms-playwright','\x0a\x0a##\x20Additional\x20Notes\x0a','OhTNR','nova_act_command','verify','filter','.json','startAttempted','`.\x0a15.\x20As\x20soon\x20as\x20all\x20scenario\x20requirements\x20are\x20satisfied,\x20return\x20structured\x20output\x20immediately.\x20Do\x20not\x20keep\x20exploring,\x20asking,\x20or\x20taking\x20extra\x20screenshots.\x0a16.\x20Treat\x20a\x20Nova\x20`verify`\x20result\x20with\x20`ASSERTION_FAILED`\x20as\x20useful\x20evidence,\x20not\x20as\x20a\x20tool\x20crash.\x20Do\x20not\x20retry\x20the\x20same\x20assertion\x20or\x20search\x20for\x20alternatives\x20unless\x20the\x20scenario\x20explicitly\x20asks\x20you\x20to\x20find\x20any\x20matching\x20page.\x0a17.\x20Stay\x20within\x20the\x20pages\x20and\x20flow\x20named\x20by\x20the\x20scenario.\x20If\x20a\x20required\x20condition\x20is\x20absent\x20after\x20checking\x20the\x20relevant\x20named\x20page\x20once,\x20stop\x20and\x20return\x20\x22partial\x22\x20or\x20\x22failed\x22\x20with\x20the\x20missing\x20requirement.\x20Do\x20not\x20expand\x20into\x20unrelated\x20pages\x20or\x20broad\x20site\x20searches.\x0a18.\x20After\x20you\x20reach\x20and\x20screenshot\x20the\x20final\x20named\x20scenario\x20page,\x20do\x20not\x20execute\x20more\x20browser\x20commands.\x20Evaluate\x20any\x20\x22at\x20least\x20one\x20visited\x20page\x22\x20requirement\x20from\x20the\x20pages\x20already\x20visited\x20and\x20the\x20evidence\x20already\x20collected.\x0a19.\x20Do\x20not\x20run\x20`session\x20close`,\x20`session\x20list`,\x20`session\x20export`,\x20`script`,\x20`doctor`,\x20`--help`,\x20`aws`,\x20`find`,\x20`grep`,\x20`env`,\x20`printenv`,\x20package\x20managers,\x20or\x20setup\x20commands.\x20The\x20host\x20owns\x20setup,\x20auth,\x20session\x20cleanup,\x20and\x20artifact\x20export.\x0a20.\x20The\x20host\x20also\x20captures\x20final\x20screenshots,\x20snapshots,\x20and\x20exports\x20after\x20you\x20finish,\x20but\x20every\x20scenario\x20milestone\x20still\x20needs\x20an\x20accessible\x20screenshot.\x20If\x20the\x20last\x20milestone\x20is\x20the\x20final\x20browser\x20state\x20and\x20you\x20have\x20already\x20captured\x20it,\x20you\x20do\x20not\x20need\x20a\x20duplicate\x20final\x20screenshot.\x0a21.\x20Do\x20not\x20close\x20the\x20Nova\x20session.\x20The\x20host\x20exports\x20artifacts\x20after\x20you\x20finish.\x0a22.\x20The\x20structured\x20output\x20is\x20your\x20final\x20response.\x20After\x20returning\x20it,\x20do\x20not\x20write\x20a\x20separate\x20markdown\x20summary\x20or\x20repeat\x20the\x20findings.\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Nova\x20Act\x20CLI\x20commands\x20with\x20this\x20prefix:\x0a`','json','lBDUr','getFrameDir','ekIuI','uoQfx','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','nova-artifacts.zip','nova_act_session_close','03_final-state.png','captureTraceSample','frame-%06d.jpg','OTbhM','wait-for','yGDbQ','test','capture\x20snapshot','gKyme','canonicalFlow','isFile','aXJBy','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','sort','params','--report','GakiI','nova_act_artifact_recording_stop','2vjgPqA','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','subcommand','nova_act_final_snapshot','1508178NcPUxY','209884UipXgG','reverse','727233heMYrp','tool_input','cFhpr','trackPhaseError','novaOptions','nova_act_command_failure','Reviewer','ijEdi','commandArgs','115LjhhCy','queueTraceSample','JLoUX'];_0x15d6=function(){return _0x58ec1d;};return _0x15d6();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x5dc237){const _0x4c2669=_0x262ef1,_0x10443f={'NNFkE':function(_0xdf07a4,_0x4508cf,_0x313ca5){return _0xdf07a4(_0x4508cf,_0x313ca5);}},_0x7dbc4b=_0x10443f[_0x4c2669(0x15a)](join,_0x5dc237,'trace.zip');try{return{'buffer':await readFile(_0x7dbc4b),'source':_0x7dbc4b};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x5dc237),'source':_0x5dc237};}}async function zipVerifyFeatureNovaArtifacts(_0x457a83){const _0x2f5032=_0x262ef1,_0x6f59e6={'tglnD':function(_0x1cffd6,_0x3bafbf,_0x40200b,_0x3b779e){return _0x1cffd6(_0x3bafbf,_0x40200b,_0x3b779e);},'cuImE':_0x2f5032(0x1a1),'oqnDA':function(_0x14f1c7,_0x3a946d,_0x283c7e){return _0x14f1c7(_0x3a946d,_0x283c7e);}},_0x3f0690=_0x6f59e6['tglnD'](join,_0x457a83,'..',_0x2f5032(0xf7));try{return await execFileAsync(_0x6f59e6[_0x2f5032(0x1c7)],[_0x2f5032(0x165),_0x3f0690,'.','-x',_0x2f5032(0x1b9)],{'cwd':_0x457a83}),await readFile(_0x3f0690);}finally{await _0x6f59e6['oqnDA'](rm,_0x3f0690,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x31af22){const _0x2c2ffa=_0x262ef1,_0x5b43a5={'STTyN':function(_0x4ade04,_0x3d83e){return _0x4ade04(_0x3d83e);}},_0x12211b=buildNovaActCliInvocation(_0x31af22['novaOptions'],_0x31af22[_0x2c2ffa(0x11a)]);return{'command':_0x12211b['command'],'args':_0x12211b['args'],'commandPreview':_0x5b43a5['STTyN'](previewNovaActCliCommand,_0x12211b[_0x2c2ffa(0x148)]),'subcommand':_0x12211b['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x31af22['novaOptions'],_0x31af22[_0x2c2ffa(0x11a)])};}
|
|
1
|
+
const _0x1fe561=_0x1c67;function _0x1c67(_0x579e66,_0x3c99b2){_0x579e66=_0x579e66-0x146;const _0x3ceb6f=_0x3ceb();let _0x1c67bf=_0x3ceb6f[_0x579e66];return _0x1c67bf;}(function(_0x1b426f,_0x203b65){const _0x9580ba=_0x1c67,_0x1af855=_0x1b426f();while(!![]){try{const _0x58f86d=-parseInt(_0x9580ba(0x223))/0x1*(parseInt(_0x9580ba(0x1a9))/0x2)+-parseInt(_0x9580ba(0x1ce))/0x3*(parseInt(_0x9580ba(0x1fe))/0x4)+-parseInt(_0x9580ba(0x1a7))/0x5+-parseInt(_0x9580ba(0x147))/0x6+-parseInt(_0x9580ba(0x191))/0x7+parseInt(_0x9580ba(0x1d4))/0x8*(-parseInt(_0x9580ba(0x220))/0x9)+parseInt(_0x9580ba(0x1ec))/0xa*(parseInt(_0x9580ba(0x1a0))/0xb);if(_0x58f86d===_0x203b65)break;else _0x1af855['push'](_0x1af855['shift']());}catch(_0x3e0633){_0x1af855['push'](_0x1af855['shift']());}}}(_0x3ceb,0x483f9));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';import{homedir}from'os';import{basename,join}from'path';import{promisify}from'util';function _0x3ceb(){const _0x2a9a23=['-c:v','FToyn','transportMetadata','frameWrites','join','KsqYT','ms-playwright','flatMap','session','yuv420p','locator','ZgrKA','createdAt','gJpLV','parse','screencastStarted','xPKKt','log','vmZAT','stopScreencast','start','captureTraceSample','Page.screencastFrameAck','command','yXrjf','key_final-state.png','ffmpeg','startTraceSampling','tracingStarted','capture\x20snapshot\x20`','replace','data','qBWAo','LoYuE','Page.startScreencast','nXQtB','ask','verify\x20page\x20condition','gnbmS','novaOptions','queueTraceSample','jStzE','export\x20Nova\x20session','YSNov','stopTraceSampling','\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x27s\x20origin.\x0a-\x20Do\x20not\x20navigate\x20to\x20any\x20different\x20protocol,\x20host,\x20or\x20port.\x0a-\x20If\x20the\x20browser\x20leaves\x20this\x20origin,\x20navigate\x20back\x20once.\x20If\x20you\x20cannot\x20recover,\x20return\x20evaluation\x20\x22blocked\x22.\x0a','The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.','browser','invocation','2064377zxctna','session\x20export','traceSampleCount','dJykd','ffmpeg-','mtimeMs','Yqdnc','commandArgs','OtDyE','Bash','isFile','short','trackPhaseStart','ITHCO','cyKXy','16946831EioocU','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','telemetry','keys','Caches','-\x20[','goto','1045310RqngiU','Nova\x20command\x20`','381592qGPMIF','HyLSE','bBouK','`\x0a-\x20`','params','DqTby','nova_act_session_export','shellCommand','dkDKs','screenshot','whxZC','UgvCa','PostToolUseFailure','`\x0a4.\x20Run\x20one\x20batched\x20`','IlXrk','sessions','UJbtC','\x0a\x0aExamples:\x0a-\x20`','session-recording.webm','NKJzQ','\x20(on\x20element:\x20<','dsQir','eLcwg','navigate\x20browser','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','ZcHXs','-vf','wyqud','bBssf','nova_act_artifact_recording_stop','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','\x20session\x20create\x20','finally','cliArtifactDir','test','Qjwqj','MLolI','33594IcSTDf','context','now','split','capture\x20step\x20`','`\x0a6.\x20Run\x20`','8gmcEoN','YMznU','verify','iyVCy','unaddressedComments','zpIwe','\x20>\x20','ZEpjo','apkau','reverse','`.\x0a15.\x20As\x20soon\x20as\x20all\x20scenario\x20requirements\x20are\x20satisfied,\x20return\x20structured\x20output\x20immediately.\x20Do\x20not\x20keep\x20exploring,\x20asking,\x20or\x20taking\x20extra\x20screenshots.\x0a16.\x20Treat\x20a\x20Nova\x20`verify`\x20result\x20with\x20`ASSERTION_FAILED`\x20as\x20useful\x20evidence,\x20not\x20as\x20a\x20tool\x20crash.\x20Do\x20not\x20retry\x20the\x20same\x20assertion\x20or\x20search\x20for\x20alternatives\x20unless\x20the\x20scenario\x20explicitly\x20asks\x20you\x20to\x20find\x20any\x20matching\x20page.\x0a17.\x20Stay\x20within\x20the\x20pages\x20and\x20flow\x20named\x20by\x20the\x20scenario.\x20If\x20a\x20required\x20condition\x20is\x20absent\x20after\x20checking\x20the\x20relevant\x20named\x20page\x20once,\x20stop\x20and\x20return\x20\x22partial\x22\x20or\x20\x22failed\x22\x20with\x20the\x20missing\x20requirement.\x20Do\x20not\x20expand\x20into\x20unrelated\x20pages\x20or\x20broad\x20site\x20searches.\x0a18.\x20After\x20you\x20reach\x20and\x20screenshot\x20the\x20final\x20named\x20scenario\x20page,\x20do\x20not\x20execute\x20more\x20browser\x20commands.\x20Evaluate\x20any\x20\x22at\x20least\x20one\x20visited\x20page\x22\x20requirement\x20from\x20the\x20pages\x20already\x20visited\x20and\x20the\x20evidence\x20already\x20collected.\x0a19.\x20Do\x20not\x20run\x20`session\x20close`,\x20`session\x20list`,\x20`session\x20export`,\x20`script`,\x20`doctor`,\x20`--help`,\x20`aws`,\x20`find`,\x20`grep`,\x20`env`,\x20`printenv`,\x20package\x20managers,\x20or\x20setup\x20commands.\x20The\x20host\x20owns\x20setup,\x20auth,\x20session\x20cleanup,\x20and\x20artifact\x20export.\x0a20.\x20The\x20host\x20also\x20captures\x20final\x20screenshots,\x20snapshots,\x20and\x20exports\x20after\x20you\x20finish,\x20but\x20every\x20scenario\x20milestone\x20still\x20needs\x20an\x20accessible\x20screenshot.\x20If\x20the\x20last\x20milestone\x20is\x20the\x20final\x20browser\x20state\x20and\x20you\x20have\x20already\x20captured\x20it,\x20you\x20do\x20not\x20need\x20a\x20duplicate\x20final\x20screenshot.\x0a21.\x20Do\x20not\x20close\x20the\x20Nova\x20session.\x20The\x20host\x20exports\x20artifacts\x20after\x20you\x20finish.\x0a22.\x20The\x20structured\x20output\x20is\x20your\x20final\x20response.\x20After\x20returning\x20it,\x20do\x20not\x20write\x20a\x20separate\x20markdown\x20summary\x20or\x20repeat\x20the\x20findings.\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Nova\x20Act\x20CLI\x20commands\x20with\x20this\x20prefix:\x0a`','tool_name','readSessionMetadataWithRetry','\x20snapshot\x20--output\x20','stderr','IamFy','`\x0a3.\x20Run\x20`','Page.screencastFrame','Ynxdb','paWfE','filter','create\x20Nova\x20browser\x20session','has','nova_act_artifact_recording','10PXNAxp','ask\x20page\x20question','vhtyx','match','iTTNq','wait-for','stop','close','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','name','DYxLY','--report','nova-user-data/*','catch','traceSampleInFlight','EaNle','KruFy','snapshot','124MxoLGt','trim','nova-report','[nova-act-cli]\x20','send','session\x20create','03_final-state.png','wait\x20for\x20page\x20condition','nova_act_command','sessionId','selector','cxlvH','jsinB','frameCount','UBQwU','HQJeE','tracing','01_initial-state.png','export','nova_act_final_snapshot','utf-8','block','`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','cdp_endpoint','CStXy','traceSampleTimer','nova_act_session_close','IfKCi','toLocaleDateString','cwd','trackPhaseError','from','ffmpeg-linux','\x20screenshot\x20--output\x20','1131489DjXlUc','stopped','Wdvsi','1FGNqij','map','\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','ffmpeg.exe','error','462384BemTSt','nova_act_final_screenshot','stdout','frame-%06d.jpg','PreToolUse','subcommand','WjDAM','EoYCo','Evaluate\x20visited-page\x20aggregate\x20requirements\x20from\x20the\x20collected\x20URLs,\x20titles,\x20headings,\x20verify\x20results,\x20and\x20screenshots.\x20Do\x20not\x20run\x20another\x20browser\x20command\x20to\x20re-check\x20pages\x20already\x20visited.','UBvvk','sort','**\x20(','encodeScreencastVideo','capture\x20screenshot','getFrameDir','startScreencast','frame-','`.\x0a7.\x20Optimize\x20for\x20few\x20browser\x20round\x20trips.\x20Each\x20Nova\x20CLI\x20call\x20has\x20high\x20latency.\x0a8.\x20Use\x203-5\x20high-level\x20`execute`\x20commands\x20total.\x20Each\x20`execute`\x20should\x20contain\x202-5\x20concrete\x20browser\x20steps\x20and\x20should\x20drive\x20to\x20the\x20next\x20milestone\x20page.\x0a9.\x20Do\x20not\x20split\x20a\x20simple\x20navigation\x20into\x20separate\x20commands\x20like\x20\x22open\x20menu\x22,\x20then\x20\x22click\x20link\x22,\x20then\x20\x22screenshot\x22.\x20Batch\x20those\x20into\x20one\x20`execute`\x20when\x20the\x20target\x20is\x20clear.\x0a10.\x20Do\x20not\x20use\x20`ask`\x20unless\x20you\x20are\x20genuinely\x20stuck\x20or\x20need\x20to\x20disambiguate\x20visible\x20page\x20content.\x20Prefer\x20reading\x20the\x20output\x20from\x20`execute`,\x20`snapshot`,\x20and\x20`verify`.\x0a11.\x20Use\x20`verify`\x20only\x20at\x20milestone\x20pages\x20that\x20map\x20directly\x20to\x20scenario\x20requirements.\x20Do\x20not\x20verify\x20after\x20every\x20click.\x0a12.\x20Take\x20screenshots\x20for\x20each\x20scenario\x20milestone\x20so\x20every\x20verified\x20step\x20has\x20reviewable\x20image\x20evidence,\x20including\x20the\x20final\x20state.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page.\x0a13.\x20After\x20the\x20required\x20initial\x20snapshot,\x20do\x20not\x20take\x20separate\x20milestone\x20snapshots\x20unless\x20you\x20cannot\x20understand\x20the\x20page\x20from\x20the\x20`execute`,\x20`verify`,\x20and\x20screenshot\x20outputs.\x0a14.\x20Mark\x20the\x20most\x20important\x20proof\x20screenshot\x20with\x20`key_`,\x20for\x20example\x20`','frameSession','You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','ApsRU','pages'];_0x3ceb=function(){return _0x2a9a23;};return _0x3ceb();}import{chromium}from'playwright';import{buildNovaActCliInvocation,buildNovaActCliSharedOptionsSuffix,extractNovaActLogDir,parseNovaActCliCommand,previewNovaActCliCommand,runNovaActCliCommand}from'./utils/novaActCli.js';import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';const NOVA_ACT_CLI_COMMAND_TIMEOUT_MS=0x1d4c0,NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS=0x3a98,NOVA_ARTIFACT_METADATA_WAIT_MS=0x1388,NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS=0x1388,VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|final-state\.ya?ml|nova-session-export\.json)$/i,NOVA_ACT_ALLOWED_AGENT_COMMANDS=new Set(['session\x20create','execute',_0x1fe561(0x1d6),_0x1fe561(0x184),_0x1fe561(0x1a6),'wait-for',_0x1fe561(0x1fd),_0x1fe561(0x1b2)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x4d7def,_0x3d92d3){const _0x16b6c7={'JWwTp':function(_0x22526f,_0x8e6055,_0x583531){return _0x22526f(_0x8e6055,_0x583531);}};return _0x16b6c7['JWwTp'](join,_0x4d7def,_0x3d92d3);}export class NovaActArtifactRecorder{['params'];[_0x1fe561(0x18f)]=null;['context']=null;[_0x1fe561(0x159)]=null;['frameWrites']=[];[_0x1fe561(0x20b)]=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;[_0x1fe561(0x1fa)]=null;[_0x1fe561(0x17c)]=![];['screencastStarted']=![];['startAttempted']=![];[_0x1fe561(0x221)]=![];constructor(_0x365078){this['params']=_0x365078;}async['start'](){const _0x490b16=_0x1fe561;if(this['startAttempted'])return;this['startAttempted']=!![];const _0x4bd7c4=await this['readSessionMetadataWithRetry'](),_0x89ba83=_0x4bd7c4[_0x490b16(0x215)];if(!_0x89ba83)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x490b16(0x1ad)]['novaOptions'][_0x490b16(0x207)]);await mkdir(this[_0x490b16(0x1ad)][_0x490b16(0x1ca)],{'recursive':!![]}),this['browser']=await chromium['connectOverCDP'](_0x89ba83,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this['browser']['contexts']()[0x0]??null;if(!this[_0x490b16(0x1cf)])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this['context'][_0x490b16(0x20e)][_0x490b16(0x174)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x490b16(0x17b)](),await this['startScreencast'](),this[_0x490b16(0x1ad)]['telemetry']['trackPhaseStart'](_0x490b16(0x1eb),{...this['params'][_0x490b16(0x162)],'cdpEndpoint':_0x89ba83,'browserPid':_0x4bd7c4['browser_pid'],'sessionState':_0x4bd7c4['state']}),this[_0x490b16(0x1ad)]['telemetry']['trackPhaseEnd'](_0x490b16(0x1eb),{...this[_0x490b16(0x1ad)][_0x490b16(0x162)],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x490b16(0x16f)]});}async[_0x1fe561(0x1f2)](){const _0x38941c=_0x1fe561,_0xef51c5={'EaNle':'trace.zip','UJbtC':_0x38941c(0x1c6)};if(this[_0x38941c(0x221)])return;this[_0x38941c(0x221)]=!![];const _0x3485f3={...this['params'][_0x38941c(0x162)],'frameCount':this['frameCount'],'traceSampleCount':this[_0x38941c(0x193)],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x38941c(0x16f)]};this[_0x38941c(0x1ad)][_0x38941c(0x1a2)]['trackPhaseStart']('nova_act_artifact_recording_stop',_0x3485f3);try{await this[_0x38941c(0x18c)](),await this['captureTraceSample'](),await this[_0x38941c(0x173)](),await Promise['allSettled'](this[_0x38941c(0x163)]);this['context']&&this['tracingStarted']&&await this[_0x38941c(0x1cf)]['tracing']['stop']({'path':buildCliArtifactPath(this['params']['cliArtifactDir'],_0xef51c5[_0x38941c(0x1fb)])});const _0x15f752=await this[_0x38941c(0x153)]();this[_0x38941c(0x1ad)]['telemetry']['trackPhaseEnd'](_0x38941c(0x1c6),{..._0x3485f3,'videoPath':_0x15f752});}catch(_0x516577){await this['params']['telemetry'][_0x38941c(0x21c)](_0xef51c5[_0x38941c(0x1b9)],_0x516577,_0x3485f3);}finally{await this['browser']?.[_0x38941c(0x1f3)]()['catch'](()=>undefined),this[_0x38941c(0x18f)]=null,this['context']=null,this[_0x38941c(0x159)]=null;}}async[_0x1fe561(0x1e0)](){const _0x3804ff=_0x1fe561,_0x1fae13={'bBssf':function(_0x36269a){return _0x36269a();},'fvVKU':'.act_cli','hdnmV':function(_0x1c894a,_0x2553d5){return _0x1c894a-_0x2553d5;},'ApsRU':function(_0x38bfb6,_0x46fc03){return _0x38bfb6 instanceof _0x46fc03;}},_0x2e7426=join(_0x1fae13[_0x3804ff(0x1c5)](homedir),_0x1fae13['fvVKU'],'browser',_0x3804ff(0x1b8),this['params'][_0x3804ff(0x187)][_0x3804ff(0x207)]+'.json'),_0x9d64f3=Date[_0x3804ff(0x1d0)]();let _0x417c68;do{try{const _0x2d6d6d=JSON[_0x3804ff(0x16e)](await readFile(_0x2e7426,_0x3804ff(0x212)));if(_0x2d6d6d[_0x3804ff(0x215)])return _0x2d6d6d;_0x417c68=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x2e7426);}catch(_0x31f618){_0x417c68=_0x31f618;}await delay(0x64);}while(_0x1fae13['hdnmV'](Date['now'](),_0x9d64f3)<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x1fae13[_0x3804ff(0x15e)](_0x417c68,Error))throw _0x417c68;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x2e7426);}async[_0x1fe561(0x156)](){const _0x2ac9d8=_0x1fe561,_0x40cb33={'dJykd':function(_0x4da824,_0x15a081){return _0x4da824(_0x15a081);},'iTTNq':'base64','IamFy':_0x2ac9d8(0x182),'ZEpjo':'jpeg'};if(!this['context'])return;const _0x252cf7=this['context']['pages']()[0x0];if(!_0x252cf7)return;const _0x43cea9=this['getFrameDir']();await mkdir(_0x43cea9,{'recursive':!![]});const _0x56c9ff=await this[_0x2ac9d8(0x1cf)]['newCDPSession'](_0x252cf7);this[_0x2ac9d8(0x159)]=_0x56c9ff,_0x56c9ff['on'](_0x2ac9d8(0x1e5),_0x1e57c0=>{const _0x3defac=_0x2ac9d8,_0x42f976=++this[_0x3defac(0x20b)],_0x1c7bad=join(_0x43cea9,_0x3defac(0x157)+_0x40cb33[_0x3defac(0x194)](String,_0x42f976)['padStart'](0x6,'0')+'.jpg'),_0x580178=writeFile(_0x1c7bad,Buffer[_0x3defac(0x21d)](_0x1e57c0[_0x3defac(0x17f)],_0x40cb33[_0x3defac(0x1f0)]))['catch'](()=>undefined)[_0x3defac(0x1c9)](()=>_0x56c9ff[_0x3defac(0x202)](_0x3defac(0x176),{'sessionId':_0x1e57c0['sessionId']}))['then'](()=>undefined)[_0x3defac(0x1f9)](()=>undefined);this[_0x3defac(0x163)]['push'](_0x580178);}),await _0x56c9ff['send'](_0x40cb33[_0x2ac9d8(0x1e3)],{'format':_0x40cb33[_0x2ac9d8(0x1db)],'quality':0x4b,'everyNthFrame':0x6}),this[_0x2ac9d8(0x16f)]=!![];}async[_0x1fe561(0x173)](){const _0x3477ad=_0x1fe561,_0x114c0c={'IlXrk':'Page.stopScreencast'};if(!this['frameSession']||!this['screencastStarted'])return;await this[_0x3477ad(0x159)][_0x3477ad(0x202)](_0x114c0c[_0x3477ad(0x1b7)])[_0x3477ad(0x1f9)](()=>undefined);}['startTraceSampling'](){const _0x31281f=_0x1fe561;this[_0x31281f(0x188)](),this[_0x31281f(0x217)]=setInterval(()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}['queueTraceSample'](){const _0x6b6f6c=_0x1fe561;if(this[_0x6b6f6c(0x1fa)])return;this[_0x6b6f6c(0x1fa)]=this[_0x6b6f6c(0x175)]()['finally'](()=>{const _0x579fb2=_0x6b6f6c;this[_0x579fb2(0x1fa)]=null;});}async['stopTraceSampling'](){const _0x12d507=_0x1fe561,_0x21fe71={'MEZvb':function(_0x2a38fc,_0x8c35d){return _0x2a38fc(_0x8c35d);}};this['traceSampleTimer']&&(_0x21fe71['MEZvb'](clearInterval,this['traceSampleTimer']),this[_0x12d507(0x217)]=null),await this[_0x12d507(0x1fa)]?.[_0x12d507(0x1f9)](()=>undefined);}async[_0x1fe561(0x175)](){const _0x2f699e=_0x1fe561,_0x1a9db3={'eIVLm':'body'},_0x3663e5=this[_0x2f699e(0x1cf)]?.[_0x2f699e(0x15f)]()[0x0];if(!_0x3663e5)return;try{await _0x3663e5[_0x2f699e(0x16a)](_0x1a9db3['eIVLm'])['evaluate'](_0x1b722a=>_0x1b722a['tagName'],undefined,{'timeout':0x3e8}),this[_0x2f699e(0x193)]++;}catch{}}async['encodeScreencastVideo'](){const _0x3299ad=_0x1fe561,_0x1e74b7={'UBvvk':function(_0x3b9a7e,_0x235888,_0x142741){return _0x3b9a7e(_0x235888,_0x142741);},'yXrjf':function(_0xa8ca25,_0x291320,_0xfcda87){return _0xa8ca25(_0x291320,_0xfcda87);},'KsqYT':function(_0x343623,_0x2a3ac5,_0x1dcf95){return _0x343623(_0x2a3ac5,_0x1dcf95);},'KruFy':function(_0x49f2cb,_0x11f339,_0x5a8f2b){return _0x49f2cb(_0x11f339,_0x5a8f2b);},'gnbmS':_0x3299ad(0x1c3),'DMRqE':'scale=trunc(iw/2)*2:trunc(ih/2)*2','ITHCO':_0x3299ad(0x160),'ZwsZf':'libvpx-vp9','rNlrs':_0x3299ad(0x169)};if(this['frameCount']<0x2)return null;const _0x336678=await resolveFfmpegPath();if(!_0x336678)return null;const _0x2f44cc=_0x1e74b7[_0x3299ad(0x150)](join,this['params']['cliArtifactDir'],'videos');await mkdir(_0x2f44cc,{'recursive':!![]});const _0x210773=_0x1e74b7[_0x3299ad(0x178)](join,_0x2f44cc,_0x3299ad(0x1bb));return await _0x1e74b7[_0x3299ad(0x165)](execFileAsync,_0x336678,['-y','-hide_banner','-loglevel',_0x3299ad(0x146),'-framerate','10','-i',_0x1e74b7[_0x3299ad(0x1fc)](join,this['getFrameDir'](),_0x3299ad(0x14a)),_0x1e74b7[_0x3299ad(0x186)],_0x1e74b7['DMRqE'],_0x1e74b7[_0x3299ad(0x19e)],_0x1e74b7['ZwsZf'],'-pix_fmt',_0x1e74b7['rNlrs'],_0x210773]),_0x210773;}[_0x1fe561(0x155)](){const _0x506372=_0x1fe561,_0xb4e75={'dsQir':function(_0x55d202,_0x98866f,_0x240fac){return _0x55d202(_0x98866f,_0x240fac);}};return _0xb4e75[_0x506372(0x1be)](join,this['params']['cliArtifactDir'],'nova-video-frames');}}async function delay(_0xa77016){await new Promise(_0x5171c7=>setTimeout(_0x5171c7,_0xa77016));}async function resolveFfmpegPath(){const _0x47d8b5=_0x1fe561,_0x240abf={'jsinB':function(_0x585d49,_0x23856f){return _0x585d49(_0x23856f);},'cxlvH':_0x47d8b5(0x17a),'iyVCy':function(_0x343829,_0x912542,_0x306f06,_0x1ef2ea,_0x5f51f6){return _0x343829(_0x912542,_0x306f06,_0x1ef2ea,_0x5f51f6);},'MhXxa':'ms-playwright','LKtBw':function(_0x73e267,_0x3a2daa,_0x32f5b1,_0xc4fc76){return _0x73e267(_0x3a2daa,_0x32f5b1,_0xc4fc76);},'gszQt':function(_0x54438a){return _0x54438a();},'lfFQa':'.cache'};if(await _0x240abf['jsinB'](canRunFfmpeg,'ffmpeg'))return _0x240abf[_0x47d8b5(0x209)];const _0x13bb88=[_0x240abf[_0x47d8b5(0x1d7)](join,homedir(),'Library',_0x47d8b5(0x1a4),_0x240abf['MhXxa']),_0x240abf['LKtBw'](join,_0x240abf['gszQt'](homedir),_0x240abf['lfFQa'],_0x47d8b5(0x166))];for(const _0x348ade of _0x13bb88){try{const _0x3ba555=await _0x240abf[_0x47d8b5(0x20a)](readdir,_0x348ade),_0x4a0264=_0x3ba555[_0x47d8b5(0x1e8)](_0x4f72e8=>_0x4f72e8['startsWith'](_0x47d8b5(0x195)))[_0x47d8b5(0x151)]()[_0x47d8b5(0x1dd)]()[_0x47d8b5(0x167)](_0x194798=>[join(_0x348ade,_0x194798,'ffmpeg-mac'),join(_0x348ade,_0x194798,_0x47d8b5(0x21e)),join(_0x348ade,_0x194798,_0x47d8b5(0x227))]);for(const _0x37cc8a of _0x4a0264){if(await canRunFfmpeg(_0x37cc8a))return _0x37cc8a;}}catch{}}return null;}async function canRunFfmpeg(_0x89d2d){const _0x333767=_0x1fe561,_0x13a312={'nXQtB':'-version'};try{return await execFileAsync(_0x89d2d,[_0x13a312[_0x333767(0x183)]]),!![];}catch{return![];}}function toStepDisplayName(_0x4b5996){const _0xf25dd=_0x1fe561,_0x590efe=basename(_0x4b5996)[_0xf25dd(0x17e)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')[_0xf25dd(0x17e)](/-/g,'\x20');return{'name':_0x590efe,'isKeyStep':/^key_/i[_0xf25dd(0x1cb)](basename(_0x4b5996))};}function extractShellValue(_0xa2601f){if(!_0xa2601f)return null;return _0xa2601f[0x1]??_0xa2601f[0x2]??_0xa2601f[0x3]??null;}function extractOutputOption(_0x16575c){const _0x10bbab=_0x1fe561;return extractShellValue(_0x16575c[_0x10bbab(0x1ef)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x2be5ec,_0x123364){const _0x1c4f0d=_0x1fe561,_0x2319ee={'gxCSB':'execute\x20Nova\x20browser\x20action','LoYuE':_0x1c4f0d(0x185),'aLNqy':'ask','HbXVe':_0x1c4f0d(0x1ed),'UBQwU':'goto','yaejD':'snapshot','bzKHU':function(_0x182fdd,_0x194d84){return _0x182fdd(_0x194d84);},'qKBkn':'capture\x20snapshot','UKAwE':_0x1c4f0d(0x1b2),'CStXy':_0x1c4f0d(0x18a)};switch(_0x123364){case'session\x20create':return _0x1c4f0d(0x1e9);case'execute':return _0x2319ee['gxCSB'];case _0x1c4f0d(0x1d6):return _0x2319ee[_0x1c4f0d(0x181)];case _0x2319ee['aLNqy']:return _0x2319ee['HbXVe'];case _0x2319ee[_0x1c4f0d(0x20c)]:return _0x1c4f0d(0x1c0);case _0x1c4f0d(0x1f1):return _0x1c4f0d(0x205);case _0x2319ee['yaejD']:{const _0x17ac30=_0x2319ee['bzKHU'](extractOutputOption,_0x2be5ec);if(!_0x17ac30)return _0x2319ee['qKBkn'];const {name:_0x2fdb73}=toStepDisplayName(_0x17ac30);return _0x1c4f0d(0x17d)+_0x2fdb73+'`';}case _0x2319ee['UKAwE']:{const _0x1d9c7b=extractOutputOption(_0x2be5ec);if(!_0x1d9c7b)return _0x1c4f0d(0x154);const {name:_0x498cf9,isKeyStep:_0xd97ee}=toStepDisplayName(_0x1d9c7b);return _0xd97ee?'capture\x20key\x20step\x20`'+_0x498cf9+'`':_0x1c4f0d(0x1d2)+_0x498cf9+'`';}case _0x1c4f0d(0x192):return _0x2319ee[_0x1c4f0d(0x216)];default:return _0x123364;}}function getNovaActCliCommandBlockReason(_0x7aa608){const _0x59574c=_0x1fe561,_0x1c5d80={'AOCph':function(_0x145ab7,_0x463607){return _0x145ab7(_0x463607);},'YMznU':_0x59574c(0x14f)},_0x19cf5d=_0x1c5d80['AOCph'](parseNovaActCliCommand,_0x7aa608);if(!_0x19cf5d)return'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.';if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x59574c(0x1ea)](_0x19cf5d))return _0x59574c(0x1a8)+_0x19cf5d+'`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.';if(_0x19cf5d==='verify'&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x59574c(0x1cb)](_0x7aa608))return _0x1c5d80[_0x59574c(0x1d5)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x59574c(0x1cb)](_0x7aa608))return _0x59574c(0x15c);return null;}function buildFeedbackSection(_0x432317){const _0x4574db=_0x1fe561,_0x5b6155={'EoYCo':_0x4574db(0x19c),'qBWAo':'numeric','Wdvsi':'Reviewer','lvjsB':'element'};if(!_0x432317||_0x432317[_0x4574db(0x1d8)]['length']===0x0)return'';const _0x189e20=_0x432317['unaddressedComments'][_0x4574db(0x224)](_0x5ef3c4=>{const _0x3f9a4e=_0x4574db,_0x15f141=new Date(_0x5ef3c4[_0x3f9a4e(0x16c)])[_0x3f9a4e(0x21a)]('en-US',{'month':_0x5b6155[_0x3f9a4e(0x14e)],'day':_0x5b6155[_0x3f9a4e(0x180)]}),_0x3eaee2=_0x5ef3c4['authorName']||_0x5ef3c4['authorEmail']||_0x5b6155[_0x3f9a4e(0x222)],_0x1bf9ff=_0x5ef3c4['domRef']?_0x3f9a4e(0x1bd)+(_0x5ef3c4['domRef'][_0x3f9a4e(0x208)][_0x3f9a4e(0x1d1)](_0x3f9a4e(0x1da))['pop']()?.['split'](':')[0x0]||_0x5b6155['lvjsB'])+'>\x20\x22'+(_0x5ef3c4['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x3f9a4e(0x1a5)+_0x5ef3c4['id']+']\x20**'+_0x3eaee2+_0x3f9a4e(0x152)+_0x15f141+'):\x20\x22'+_0x5ef3c4['content']+'\x22'+_0x1bf9ff;})[_0x4574db(0x164)]('\x0a');return _0x4574db(0x225)+_0x189e20;}function buildNovaSharedOptionsInstruction(_0x2fefac){const _0x1956df=_0x1fe561;if(!_0x2fefac[_0x1956df(0x1ff)]())return _0x1956df(0x18e);return _0x1956df(0x1c1)+_0x2fefac;}export function buildVerifyFeatureNovaCliDebugPrompt(_0xa741f9){const _0x176700=_0x1fe561,_0xcd758e={'xPKKt':function(_0x3bf2ce,_0x3bef27,_0x4e2016){return _0x3bf2ce(_0x3bef27,_0x4e2016);},'IbrhE':'00_initial-state.yml','vhtyx':_0x176700(0x20f),'wyqud':function(_0x22ed17,_0x4ef971){return _0x22ed17(_0x4ef971);},'YSNov':function(_0x367664,_0xa5119e){return _0x367664(_0xa5119e);}},{novaCommandPrefix:_0x2bfb86,novaSharedOptionsSuffix:_0x6d59a7,cliArtifactDir:_0x5732a6,url:_0x56c7b7}=_0xa741f9,_0x26cd68=_0xcd758e['xPKKt'](buildCliArtifactPath,_0x5732a6,_0xcd758e['IbrhE']),_0x4492cf=buildCliArtifactPath(_0x5732a6,_0xcd758e[_0x176700(0x1ee)]),_0x4386f2=_0xcd758e['xPKKt'](buildCliArtifactPath,_0x5732a6,'02_final-state.yml'),_0x4f44d1=_0xcd758e[_0x176700(0x170)](buildCliArtifactPath,_0x5732a6,_0x176700(0x204));return'You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x2bfb86+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x6d59a7)+'\x0a\x0aThe\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20on\x20PATH.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20or\x20run\x20setup.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20the\x20session\x20create\x20command\x20below.\x0a\x0a1.\x20Run\x20`'+_0x2bfb86+_0x176700(0x1c8)+_0xcd758e[_0x176700(0x1c4)](quoteShellArg,_0x56c7b7)+'\x20'+_0x6d59a7+'`\x0a2.\x20Run\x20`'+_0x2bfb86+_0x176700(0x1e1)+quoteShellArg(_0x26cd68)+'\x20'+_0x6d59a7+_0x176700(0x1e4)+_0x2bfb86+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x4492cf)+'\x20'+_0x6d59a7+_0x176700(0x1b6)+_0x2bfb86+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x2bfb86+'\x20snapshot\x20--output\x20'+_0xcd758e['wyqud'](quoteShellArg,_0x4386f2)+'\x20'+_0x6d59a7+_0x176700(0x1d3)+_0x2bfb86+_0x176700(0x21f)+_0xcd758e[_0x176700(0x18b)](quoteShellArg,_0x4f44d1)+'\x20'+_0x6d59a7+'`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`'+_0x5732a6+_0x176700(0x15b);}export function buildVerifyFeatureNovaCliPrompt(_0x194297){const _0x2f7e20=_0x1fe561,_0xefb47e={'xZebF':function(_0x3318ee,_0x26878f,_0x267c21){return _0x3318ee(_0x26878f,_0x267c21);},'IfKCi':'01_initial.yml','TgZtm':'01_initial-state.png','Yqdnc':'key_03_success-state.png','NKJzQ':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','vusUM':function(_0x4fa610,_0x4d1120){return _0x4fa610(_0x4d1120);}},{checklistItem:_0x51339f,itemFeedback:_0x366f44,taskDescription:_0x14fe1a,novaCommandPrefix:_0x34de48,novaSharedOptionsSuffix:_0xa4bd83,cliArtifactDir:_0x50cd3a,url:_0x3d3178,loginInstructions:_0x345b58}=_0x194297,_0x225ee1=_0x51339f['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x51339f['notes']:'',_0x235317=buildFeedbackSection(_0x366f44),_0x4dbcd9=_0x366f44?.['canonicalFlow']?_0x2f7e20(0x1c7)+_0x366f44['canonicalFlow']:'',_0x48c7c4=_0x345b58?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x345b58+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x66b180=_0xefb47e['xZebF'](buildCliArtifactPath,_0x50cd3a,_0xefb47e[_0x2f7e20(0x219)]),_0x23bb51=_0xefb47e['xZebF'](buildCliArtifactPath,_0x50cd3a,_0xefb47e['TgZtm']),_0x4ce8f9=buildCliArtifactPath(_0x50cd3a,_0xefb47e[_0x2f7e20(0x197)]);return _0x2f7e20(0x15a)+_0x51339f['description']+_0x225ee1+_0x235317+_0x4dbcd9+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x14fe1a+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x3d3178+_0x2f7e20(0x18d)+_0x48c7c4+'\x0a\x0a##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Nova\x20Act\x20CLI\x20only.\x20Do\x20not\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20The\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20through\x20the\x20browser\x20command\x20prefix\x20below.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20check\x20AWS/auth\x20status,\x20read\x20env\x20files,\x20run\x20setup,\x20or\x20call\x20raw\x20`act\x20browser`.\x0a3.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20`'+_0x34de48+'\x20session\x20create\x20'+quoteShellArg(_0x3d3178)+'\x20'+_0xa4bd83+_0x2f7e20(0x214)+_0x50cd3a+_0x2f7e20(0x15d)+_0x34de48+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x66b180)+'\x20'+_0xa4bd83+_0x2f7e20(0x1f4)+_0x34de48+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x23bb51)+'\x20'+_0xa4bd83+_0x2f7e20(0x158)+_0x4ce8f9+_0x2f7e20(0x1de)+_0x34de48+_0x2f7e20(0x1a1)+(_0xa4bd83[_0x2f7e20(0x1ff)]()?'`'+_0xa4bd83+'`':_0xefb47e[_0x2f7e20(0x1bc)])+'\x0a\x0a'+_0xefb47e['vusUM'](buildNovaSharedOptionsInstruction,_0xa4bd83)+_0x2f7e20(0x1ba)+_0x34de48+_0x2f7e20(0x226)+_0xa4bd83+_0x2f7e20(0x1ac)+_0x34de48+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0xa4bd83+'`\x0a-\x20`'+_0x34de48+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x66b180)+'\x20'+_0xa4bd83+_0x2f7e20(0x1ac)+_0x34de48+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x4ce8f9)+'\x20'+_0xa4bd83+'`\x0a\x0a##\x20Screenshot\x20Guidelines\x0aTake\x20screenshots\x20at\x20scenario\x20milestones\x20so\x20a\x20human\x20can\x20review\x20each\x20completed\x20step\x20and\x20the\x20final\x20state.\x20Use\x20numbered\x20filenames\x20and\x20prefix\x201-2\x20key\x20proof\x20screenshots\x20with\x20`key_`.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page\x20when\x20an\x20existing\x20verifier\x20screenshot\x20or\x20host\x20final\x20screenshot\x20is\x20accessible.\x0a\x0a##\x20Snapshot\x20Guidelines\x0aYou\x20must\x20take\x20the\x20initial\x20snapshot\x20listed\x20above.\x20After\x20that,\x20prefer\x20screenshots\x20plus\x20the\x20page\x20summaries\x20returned\x20by\x20`execute`\x20and\x20`verify`.\x20Only\x20call\x20`snapshot`\x20again\x20if\x20you\x20cannot\x20determine\x20the\x20next\x20action\x20or\x20evaluation\x20from\x20those\x20outputs.\x0a\x0a##\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20initial\x20snapshot\x20and\x20screenshot,\x20check\x20for\x20blocking\x20HTTP\x20errors,\x20framework\x20error\x20pages,\x20blank\x20pages,\x20and\x20authentication\x20failures.\x20If\x20any\x20blocking\x20issue\x20is\x20present,\x20stop\x20and\x20return\x20evaluation\x20\x22blocked\x22\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Failed\x20Assertions\x0aIf\x20`verify`\x20returns\x20`ASSERTION_FAILED`,\x20use\x20its\x20`actual`\x20and\x20`evidence`\x20fields\x20as\x20proof\x20for\x20the\x20final\x20evaluation.\x20Continue\x20only\x20to\x20finish\x20other\x20already-named\x20scenario\x20milestones.\x20Do\x20not\x20retry,\x20ask\x20about,\x20or\x20search\x20around\x20the\x20failed\x20condition.\x0a\x0a##\x20Final\x20Page\x20Stop\x0aWhen\x20the\x20scenario\x20names\x20a\x20final\x20page\x20or\x20final\x20navigation\x20target,\x20that\x20page\x20is\x20the\x20last\x20browser\x20milestone.\x20Once\x20it\x20is\x20loaded\x20and\x20screenshotted,\x20make\x20the\x20final\x20evaluation\x20from\x20the\x20collected\x20evidence.\x20Do\x20not\x20navigate,\x20search,\x20ask,\x20or\x20verify\x20beyond\x20that\x20final\x20page\x20unless\x20the\x20scenario\x20explicitly\x20names\x20another\x20page.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x30cdb4){const _0x2c9e54=_0x1fe561,_0x58b0ea={'DYxLY':function(_0x370fc5,_0x23da4f){return _0x370fc5===_0x23da4f;}},_0x256c45=[..._0x30cdb4[_0x2c9e54(0x1a3)]()][_0x2c9e54(0x151)]();let _0x4a8ae1=0x0;for(const _0x3dcc68 of _0x30cdb4['values']()){_0x4a8ae1+=_0x3dcc68;}return{'cliCommandCount':_0x4a8ae1,'cliCommandsSeen':_0x256c45,'noCliCommandsCalled':_0x58b0ea[_0x2c9e54(0x1f6)](_0x4a8ae1,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x5085a8,_0x169327){const _0xea7e07=_0x1fe561,_0x26afc1={'ZcHXs':function(_0x90e9b,_0x1a8e1f){return _0x90e9b!==_0x1a8e1f;},'vmZAT':function(_0x2fea49,_0x204e99){return _0x2fea49(_0x204e99);},'zpIwe':_0xea7e07(0x213),'UgvCa':function(_0x132fd5,_0x16e7c0){return _0x132fd5(_0x16e7c0);},'LhiJh':_0xea7e07(0x206),'iOPFh':function(_0x5264aa,_0x13bc4f,_0x9e5b51){return _0x5264aa(_0x13bc4f,_0x9e5b51);},'mabov':'nova-act-cli','NAdZR':function(_0x13ec9f,_0x3952f9){return _0x13ec9f!==_0x3952f9;},'whxZC':_0xea7e07(0x1b5),'gJpLV':'Bash'},_0x304b21=new Map(),_0x4e019f=async _0x5cf079=>{const _0x5000e9=_0xea7e07;if(_0x26afc1[_0x5000e9(0x1c2)](_0x5cf079['hook_event_name'],_0x5000e9(0x14b)))return{};const _0x5cc0bf=_0x5cf079;if(_0x5cc0bf['tool_name']!=='Bash')return{};const _0x1facf7=_0x5cc0bf['tool_input'],_0x584d9b=_0x26afc1[_0x5000e9(0x172)](extractBashCommand,_0x1facf7);if(!_0x584d9b)return{};const _0x170a6e=getNovaActCliCommandBlockReason(_0x584d9b);if(!_0x170a6e)return{};return{'decision':_0x26afc1[_0x5000e9(0x1d9)],'reason':_0x170a6e};},_0x51f84d=async _0x59c3cb=>{const _0x1eedc2=_0xea7e07;if(_0x26afc1['ZcHXs'](_0x59c3cb['hook_event_name'],'PostToolUse'))return{};const _0x3ef395=_0x59c3cb;if(_0x3ef395[_0x1eedc2(0x1df)]!=='Bash')return{};const _0x609260=_0x3ef395['tool_input'],_0x4364bd=_0x26afc1[_0x1eedc2(0x1b4)](extractBashCommand,_0x609260);if(!_0x4364bd)return{};const _0x5ea3e8=_0x26afc1['vmZAT'](parseNovaActCliCommand,_0x4364bd);if(!_0x5ea3e8)return{};_0x304b21['set'](_0x5ea3e8,(_0x304b21['get'](_0x5ea3e8)||0x0)+0x1),_0x5085a8[_0x1eedc2(0x19d)](_0x26afc1['LhiJh'],{'subcommand':_0x5ea3e8}),_0x5085a8['trackPhaseEnd'](_0x26afc1['LhiJh'],{'subcommand':_0x5ea3e8,'commandPreview':previewNovaActCliCommand(_0x4364bd)}),console[_0x1eedc2(0x171)](_0x1eedc2(0x201)+_0x26afc1['iOPFh'](formatNovaActCliLog,_0x4364bd,_0x5ea3e8));if(_0x5ea3e8===_0x1eedc2(0x203)&&_0x169327)try{await _0x169327['start']();}catch(_0x3d2828){await _0x5085a8[_0x1eedc2(0x21c)](_0x1eedc2(0x1eb),_0x3d2828,{'transport':_0x26afc1['mabov']});}return{};},_0x34bf2b=async _0x2bea16=>{const _0x500a35=_0xea7e07;if(_0x26afc1['NAdZR'](_0x2bea16['hook_event_name'],_0x26afc1[_0x500a35(0x1b3)]))return{};const _0x36a99b=_0x2bea16;if(_0x36a99b['tool_name']!==_0x26afc1[_0x500a35(0x16d)])return{};return await _0x5085a8['trackPhaseError']('nova_act_command_failure',_0x36a99b[_0x500a35(0x146)],{'transport':'nova-act-cli','toolName':_0x500a35(0x19a)}),{};};return{'preToolUseHook':_0x4e019f,'postToolUseHook':_0x51f84d,'postToolUseFailureHook':_0x34bf2b,'commandCounts':_0x304b21};}async function runNovaLifecycleCommand(_0x5177c1){const _0x5f4aac=_0x1fe561,_0x3bfd46={'fOceh':function(_0x414879,_0x41543c){return _0x414879(_0x41543c);},'HyLSE':function(_0xe62bdf,_0x55f158){return _0xe62bdf??_0x55f158;}},{novaOptions:_0x59603e,commandArgs:_0xd68fe9,telemetry:_0x3191eb,phase:_0x55e280,metadata:_0x181694,timeoutMs:_0x3d90ae}=_0x5177c1;_0x3191eb['trackPhaseStart'](_0x55e280,_0x181694);try{const _0x10f993=await _0x3bfd46['fOceh'](runNovaActCliCommand,{..._0x59603e,'commandArgs':_0xd68fe9,'cwd':process[_0x5f4aac(0x21b)](),'env':process['env'],'timeoutMs':_0x3bfd46[_0x5f4aac(0x1aa)](_0x3d90ae,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x3191eb['trackPhaseEnd'](_0x55e280,{..._0x181694,'subcommand':_0x10f993[_0x5f4aac(0x190)][_0x5f4aac(0x14c)],'commandPreview':previewNovaActCliCommand(_0x10f993['invocation'][_0x5f4aac(0x1b0)]),'stdoutPreview':_0x3bfd46['fOceh'](previewNovaActCliCommand,_0x10f993[_0x5f4aac(0x149)]),'stderrPreview':previewNovaActCliCommand(_0x10f993[_0x5f4aac(0x1e2)]),'logDir':extractNovaActLogDir(_0x10f993[_0x5f4aac(0x149)])});}catch(_0x32f88d){await _0x3191eb[_0x5f4aac(0x21c)](_0x55e280,_0x32f88d,_0x181694);throw _0x32f88d;}}export async function finalizeVerifyFeatureNovaCliSession(_0x3677db){const _0x27c48f=_0x1fe561,_0x5dec4d={'jZqjx':_0x27c48f(0x148),'FToyn':'--output','OtDyE':function(_0x503f6b,_0x1b2fd7,_0x3c39f){return _0x503f6b(_0x1b2fd7,_0x3c39f);},'Qjwqj':_0x27c48f(0x211),'DqTby':'snapshot','ZgrKA':'final-state.yaml','ILNFT':_0x27c48f(0x168),'HQJeE':'json','MLolI':function(_0x4ad4d3,_0x3628c4,_0xca5944){return _0x4ad4d3(_0x3628c4,_0xca5944);},'dkDKs':'nova_act_session_report','Ynxdb':'--output-dir','paWfE':_0x27c48f(0x218),'eLcwg':function(_0x1e6e7f,_0x1abd6e){return _0x1e6e7f(_0x1abd6e);}},{telemetry:_0x11c7a8,novaOptions:_0xf86650,cliArtifactDir:_0x5a6215,transportMetadata:_0x21d3ca,artifactRecorder:_0xa440d2}=_0x3677db,_0x3e6a65=[{'phase':_0x5dec4d['jZqjx'],'commandArgs':['screenshot',_0x5dec4d[_0x27c48f(0x161)],_0x5dec4d[_0x27c48f(0x199)](buildCliArtifactPath,_0x5a6215,_0x27c48f(0x179))]},{'phase':_0x5dec4d[_0x27c48f(0x1cc)],'commandArgs':[_0x5dec4d[_0x27c48f(0x1ae)],_0x5dec4d['FToyn'],buildCliArtifactPath(_0x5a6215,_0x5dec4d[_0x27c48f(0x16b)])]},{'phase':_0x27c48f(0x1af),'commandArgs':[_0x5dec4d['ILNFT'],_0x27c48f(0x210),'--format',_0x5dec4d[_0x27c48f(0x20d)],_0x5dec4d['FToyn'],_0x5dec4d[_0x27c48f(0x1cd)](buildCliArtifactPath,_0x5a6215,'nova-session-export.json')]},{'phase':_0x5dec4d[_0x27c48f(0x1b1)],'commandArgs':['session',_0x27c48f(0x210),_0x27c48f(0x1f7),_0x5dec4d[_0x27c48f(0x1e6)],_0x5dec4d[_0x27c48f(0x1cd)](buildCliArtifactPath,_0x5a6215,_0x27c48f(0x200))]},{'phase':_0x5dec4d[_0x27c48f(0x1e7)],'commandArgs':[_0x5dec4d['ILNFT'],_0x27c48f(0x1f3)]}];for(const _0x5f4680 of _0x3e6a65){_0x5f4680['phase']===_0x27c48f(0x218)&&await _0xa440d2?.[_0x27c48f(0x1f2)]();try{await _0x5dec4d[_0x27c48f(0x1bf)](runNovaLifecycleCommand,{'novaOptions':_0xf86650,'commandArgs':[..._0x5f4680[_0x27c48f(0x198)]],'telemetry':_0x11c7a8,'phase':_0x5f4680['phase'],'metadata':_0x21d3ca});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x1f749a){const _0x22f630=_0x1fe561,_0x48c9af={'pdHID':function(_0x439aa7,_0x2718e5,_0x22fd1d){return _0x439aa7(_0x2718e5,_0x22fd1d);},'bBouK':function(_0x5728ec,_0x5c931f,_0xeb3630){return _0x5728ec(_0x5c931f,_0xeb3630);},'aMPrG':function(_0x14322c,_0x58c6a2){return _0x14322c<_0x58c6a2;},'cyKXy':function(_0x378562,_0x2e8300){return _0x378562+_0x2e8300;},'WjDAM':function(_0x79b24,_0x49cfbf,_0x3d5e05){return _0x79b24(_0x49cfbf,_0x3d5e05);}},{cwd:_0xa4f2e5,cliArtifactDir:_0x10bd8d,startTime:_0x2d6a9e}=_0x1f749a,_0x5aada0=[];await _0x48c9af['pdHID'](mkdir,_0x10bd8d,{'recursive':!![]});const _0x31d0c7=await _0x48c9af[_0x22f630(0x1ab)](readdir,_0xa4f2e5,{'withFileTypes':!![]});for(const _0x2500f4 of _0x31d0c7){if(!_0x2500f4[_0x22f630(0x19b)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0x2500f4[_0x22f630(0x1f5)]))continue;const _0x1741fa=join(_0xa4f2e5,_0x2500f4['name']),_0x358a47=await stat(_0x1741fa);if(_0x48c9af['aMPrG'](_0x48c9af[_0x22f630(0x19f)](_0x358a47[_0x22f630(0x196)],0x7d0),_0x2d6a9e))continue;const _0x4c3e88=_0x48c9af[_0x22f630(0x14d)](buildCliArtifactPath,_0x10bd8d,_0x2500f4[_0x22f630(0x1f5)]);if(_0x1741fa===_0x4c3e88)continue;await rename(_0x1741fa,_0x4c3e88),_0x5aada0['push'](_0x2500f4['name']);}return _0x5aada0[_0x22f630(0x151)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x2d6180){const _0x45bfac=join(_0x2d6180,'trace.zip');try{return{'buffer':await readFile(_0x45bfac),'source':_0x45bfac};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x2d6180),'source':_0x2d6180};}}async function zipVerifyFeatureNovaArtifacts(_0x26f154){const _0x952e7c=_0x1fe561,_0xff40da={'vUvQf':'nova-artifacts.zip','UEGqT':function(_0x4a23d5,_0x906cd6,_0x1e9d2c,_0x2087af){return _0x4a23d5(_0x906cd6,_0x1e9d2c,_0x2087af);},'jStzE':_0x952e7c(0x1f8),'SBfMZ':function(_0x562268,_0x1e4253){return _0x562268(_0x1e4253);},'PaECc':function(_0x14275e,_0x350260,_0xcd95ce){return _0x14275e(_0x350260,_0xcd95ce);}},_0x184692=join(_0x26f154,'..',_0xff40da['vUvQf']);try{return await _0xff40da['UEGqT'](execFileAsync,'zip',['-qr',_0x184692,'.','-x',_0xff40da[_0x952e7c(0x189)]],{'cwd':_0x26f154}),await _0xff40da['SBfMZ'](readFile,_0x184692);}finally{await _0xff40da['PaECc'](rm,_0x184692,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x1ad4aa){const _0x199150=_0x1fe561,_0x5b91e4={'apkau':function(_0x3ae451,_0x4b65da,_0x1d7eb5){return _0x3ae451(_0x4b65da,_0x1d7eb5);}},_0x332c15=_0x5b91e4[_0x199150(0x1dc)](buildNovaActCliInvocation,_0x1ad4aa[_0x199150(0x187)],_0x1ad4aa[_0x199150(0x198)]);return{'command':_0x332c15[_0x199150(0x177)],'args':_0x332c15['args'],'commandPreview':previewNovaActCliCommand(_0x332c15['shellCommand']),'subcommand':_0x332c15['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x1ad4aa[_0x199150(0x187)],_0x1ad4aa['commandArgs'])};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5a95e0,_0x489eee){const _0x278f49=_0xec39,_0x53e998=_0x5a95e0();while(!![]){try{const _0x20ca27=parseInt(_0x278f49(0xf0))/0x1+parseInt(_0x278f49(0x100))/0x2*(-parseInt(_0x278f49(0xfa))/0x3)+parseInt(_0x278f49(0xd9))/0x4+-parseInt(_0x278f49(0xff))/0x5+-parseInt(_0x278f49(0x10e))/0x6+parseInt(_0x278f49(0xc6))/0x7*(parseInt(_0x278f49(0x10a))/0x8)+-parseInt(_0x278f49(0xd4))/0x9*(-parseInt(_0x278f49(0xea))/0xa);if(_0x20ca27===_0x489eee)break;else _0x53e998['push'](_0x53e998['shift']());}catch(_0x43a626){_0x53e998['push'](_0x53e998['shift']());}}}(_0x1d1d,0xb3cda));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x3942df,_0x575f94=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x9694e6=_0xec39;return _0x3942df['length']>_0x575f94?_0x3942df[_0x9694e6(0xef)](0x0,_0x575f94)+_0x9694e6(0xc8):_0x3942df;}function extractShellValue(_0x2c6e21){if(!_0x2c6e21)return null;return _0x2c6e21[0x1]??_0x2c6e21[0x2]??_0x2c6e21[0x3]??null;}function extractFirstCommandArgument(_0x4147d2,_0x37c32c){const _0x363b40=_0xec39,_0x12c0ec={'ngSQp':'\x5c$&','DRlSG':function(_0x27db37,_0x443a20){return _0x27db37(_0x443a20);}},_0x4e4186=_0x37c32c[_0x363b40(0xd8)](/[.*+?^${}()|[\]\\]/g,_0x12c0ec['ngSQp']);return _0x12c0ec['DRlSG'](extractShellValue,_0x4147d2[_0x363b40(0x112)](new RegExp('(?:^|\x5cs)'+_0x4e4186+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x1a3cca){const _0xd0ef7b=_0xec39,_0x328304={'oTeiH':function(_0xcccdf5,_0x232ceb,_0x1dfe71){return _0xcccdf5(_0x232ceb,_0x1dfe71);}};if(!_0x1a3cca)return'target';if(/^e\d+$/i[_0xd0ef7b(0x10c)](_0x1a3cca))return'ref\x20'+_0x1a3cca;return JSON['stringify'](_0x328304['oTeiH'](truncatePreview,_0x1a3cca,0x78));}function _0xec39(_0x5cf5bf,_0x3e5982){_0x5cf5bf=_0x5cf5bf-0xbc;const _0x1d1dc8=_0x1d1d();let _0xec3960=_0x1d1dc8[_0x5cf5bf];return _0xec3960;}function formatRangerwrightCliLog(_0x5755d9,_0x462525){const _0x211f36=_0xec39,_0x4d6b50={'TpBLa':function(_0x30a805,_0x15d5c4,_0x5f772f){return _0x30a805(_0x15d5c4,_0x5f772f);},'YXCrE':'click-and-inspect','uCsTP':_0x211f36(0xcd),'ptsoq':_0x211f36(0xc9),'rfZoT':_0x211f36(0x10b),'Jhhft':'stop\x20tracing'};switch(_0x462525){case _0x211f36(0xda):{const _0x224d84=_0x4d6b50['TpBLa'](extractFirstCommandArgument,_0x5755d9,_0x462525);return _0x224d84?_0x211f36(0xbf)+_0x224d84:_0x211f36(0xfe);}case _0x4d6b50[_0x211f36(0xc7)]:return _0x211f36(0x103)+formatCommandTarget(_0x4d6b50[_0x211f36(0xf3)](extractFirstCommandArgument,_0x5755d9,_0x462525));case'fill':case _0x4d6b50['uCsTP']:return'fill\x20'+formatCommandTarget(_0x4d6b50['TpBLa'](extractFirstCommandArgument,_0x5755d9,_0x462525));case _0x211f36(0x10f):return'go\x20back\x20and\x20inspect';case _0x4d6b50[_0x211f36(0xe6)]:return _0x211f36(0x108);case _0x4d6b50[_0x211f36(0xe3)]:return _0x4d6b50['Jhhft'];case'video-stop':return'stop\x20video\x20recording';case _0x211f36(0xe4):return _0x211f36(0xf2);default:return _0x462525;}}function renderScenarioSections(_0x35c261){const _0x55d886=_0xec39,_0x3392ce={'KAQzu':_0x55d886(0xf6),'LOEQZ':_0x55d886(0x10d),'EfGoG':function(_0x498951,_0x391e0a){return _0x498951>_0x391e0a;}},{checklistItem:_0x2bb448,itemFeedback:_0x2fd15}=_0x35c261,_0x1fe66a=_0x2bb448['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x2bb448['notes']:'';let _0x8d9910='';if(_0x2fd15&&_0x3392ce['EfGoG'](_0x2fd15['unaddressedComments']['length'],0x0)){const _0x2f4bc0=_0x2fd15['unaddressedComments'][_0x55d886(0xbc)](_0x821fc2=>{const _0x42e51b=_0x55d886,_0x94b649=new Date(_0x821fc2[_0x42e51b(0xe1)])[_0x42e51b(0xc1)](_0x3392ce[_0x42e51b(0xd1)],{'month':_0x42e51b(0xce),'day':_0x42e51b(0xca)}),_0x42db36=_0x821fc2[_0x42e51b(0x101)]||_0x821fc2['authorEmail']||_0x42e51b(0xc0),_0x1308dc=_0x821fc2[_0x42e51b(0xf4)]?'\x20(on\x20element:\x20<'+(_0x821fc2['domRef']['selector']['split'](_0x3392ce[_0x42e51b(0x106)])[_0x42e51b(0xe2)]()?.['split'](':')[0x0]||_0x42e51b(0xfc))+'>\x20\x22'+(_0x821fc2[_0x42e51b(0xf4)][_0x42e51b(0xeb)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x821fc2['id']+']\x20'+_0x42db36+'\x20('+_0x94b649+'):\x20\x22'+_0x821fc2[_0x42e51b(0xcc)]+'\x22'+_0x1308dc;})[_0x55d886(0xdb)]('\x0a');_0x8d9910='\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x2f4bc0;}const _0x2068b5=_0x2fd15?.[_0x55d886(0x107)]?_0x55d886(0x105)+_0x2fd15['canonicalFlow']:'';return''+_0x2bb448[_0x55d886(0xdd)]+_0x1fe66a+_0x8d9910+_0x2068b5;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x5da51f){const _0x46b923=_0xec39,_0x24cc85={'fTiFT':function(_0x295594,_0xfbcdb7){return _0x295594(_0xfbcdb7);},'owYJw':function(_0x4e9541,_0x2fe314){return _0x4e9541??_0x2fe314;},'LPgfv':'about:blank','jWGmU':function(_0x36738a,_0x3f4df4){return _0x36738a(_0x3f4df4);}},{checklistItem:_0x9bee36,itemFeedback:_0x345bb8,taskDescription:_0x34e0b8,commandPrefix:_0x526f21,isCdpMode:_0x3f8835,url:_0x43db9e,cdpEndpoint:_0x56e139,loginInstructions:_0x30408b}=_0x5da51f,_0x1d80ff='01_initial-state.png',_0xcb0271='key_99_final-state.png',_0x42ce4f=_0x3f8835?_0x526f21+_0x46b923(0xd3)+_0x24cc85[_0x46b923(0xde)](quoteShellArg,_0x1d80ff):_0x526f21+'\x20open-and-inspect\x20'+_0x24cc85[_0x46b923(0xde)](quoteShellArg,_0x24cc85[_0x46b923(0x110)](_0x43db9e,_0x24cc85[_0x46b923(0xf5)]))+_0x46b923(0xfd)+_0x24cc85['jWGmU'](quoteShellArg,_0x1d80ff),_0x4322f7=_0x3f8835?_0x46b923(0xbe)+_0x56e139+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':_0x46b923(0x114)+_0x43db9e+_0x46b923(0xee),_0x458aa6=_0x30408b?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x30408b+_0x46b923(0xd0):'';return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x24cc85['fTiFT'](renderScenarioSections,{'checklistItem':_0x9bee36,'itemFeedback':_0x345bb8})+_0x46b923(0xc3)+_0x34e0b8+'\x0a\x0a'+_0x4322f7+_0x458aa6+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x526f21+'\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x20Browser\x20Trek\x20only\x20counts\x20literal\x20Rangerwright\x20command\x20invocations.\x0a\x0aTreat\x20the\x20command\x20prefix\x20as\x20immutable.\x20Copy\x20it\x20exactly,\x20then\x20append\x20one\x20supported\x20Rangerwright\x20subcommand\x20and\x20its\x20arguments.\x20If\x20a\x20browser\x20command\x20fails\x20because\x20the\x20binary\x20path\x20is\x20missing\x20or\x20the\x20command\x20syntax\x20is\x20malformed,\x20retry\x20once\x20with\x20the\x20exact\x20prefix\x20from\x20this\x20prompt\x20before\x20deciding\x20the\x20task\x20is\x20blocked.\x0a\x0aFirst\x20command:\x0a\x0a'+_0x42ce4f+'\x0a\x0aPrefer\x20open-and-inspect\x20and\x20click-and-inspect\x20when\x20you\x20need\x20a\x20fresh\x20snapshot\x20plus\x20evidence.\x0a\x0aUse\x20back-and-inspect\x20to\x20return\x20to\x20the\x20previous\x20page\x20after\x20checking\x20a\x20detail\x20page.\x20Refresh\x20refs\x20after\x20going\x20back.\x0a\x0aEach\x20command\x20returns\x20JSON\x20with\x20success,\x20data,\x20and\x20error\x20fields.\x0a\x0aUse\x20data.title,\x20data.headings,\x20data.pageText,\x20and\x20data.snapshotText\x20together.\x20snapshotText\x20is\x20best\x20for\x20refs\x20and\x20controls;\x20pageText\x20is\x20valid\x20visible\x20evidence\x20for\x20page\x20content.\x0a\x0aDo\x20not\x20verify\x20from\x20a\x20broad\x20landing,\x20index,\x20category,\x20search,\x20or\x20navigation\x20page\x20when\x20the\x20task\x20asks\x20for\x20a\x20specific\x20page,\x20topic,\x20item,\x20or\x20action.\x20Click\x20and\x20inspect\x20the\x20most\x20specific\x20visible\x20target\x20first;\x20if\x20no\x20specific\x20target\x20exists,\x20report\x20the\x20missing\x20target.\x0a\x0aSave\x20screenshots\x20by\x20using\x20--screenshot-path\x20on\x20inspect\x20commands.\x20Relative\x20screenshot\x20paths\x20are\x20saved\x20under\x20the\x20run\x20artifact\x20directory.\x20Do\x20not\x20call\x20screenshot\x20--path.\x0a\x0aExample:\x0a\x0a'+_0x526f21+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0xcb0271)+_0x46b923(0xf8);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x56280c){const _0x465c98=_0xec39,_0x2a08e6={'FGRRh':_0x465c98(0xc4),'nfbDZ':function(_0x544822,_0x56e27e){return _0x544822(_0x56e27e);}},_0xff69cc='01_mozilla-homepage.png',_0x31a027=_0x2a08e6[_0x465c98(0xf1)];return _0x465c98(0xd2)+_0x56280c['commandPrefix']+_0x465c98(0xe7)+_0x56280c['commandPrefix']+_0x465c98(0xdf)+_0x2a08e6['nfbDZ'](quoteShellArg,_0x56280c['url'])+_0x465c98(0xfd)+quoteShellArg(_0xff69cc)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x56280c['commandPrefix']+_0x465c98(0xd7)+_0x2a08e6['nfbDZ'](quoteShellArg,_0x31a027)+_0x465c98(0xc2);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x159c46){const _0x1cfcf9=_0xec39,_0x23d497={'BlkRq':function(_0x1c99fa,_0x487da1){return _0x1c99fa===_0x487da1;}},_0x370081=[..._0x159c46[_0x1cfcf9(0xbd)]()]['sort']();let _0x1dd153=0x0;for(const _0x15acc5 of _0x159c46['values']()){_0x1dd153+=_0x15acc5;}return{'cliCommandCount':_0x1dd153,'cliCommandsSeen':_0x370081,'noCliCommandsCalled':_0x23d497[_0x1cfcf9(0xcf)](_0x1dd153,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x15cff0){const _0x19e69a=_0xec39,_0x53bf0c={'IDgrl':function(_0x55bb65,_0x13c462){return _0x55bb65(_0x13c462);},'RmAMR':'rangerwright_cli_command','OMKaA':function(_0x41dc56,_0x3f41ef){return _0x41dc56!==_0x3f41ef;},'JFbOE':'Bash','ZaowG':_0x19e69a(0xed)},_0x48b081=new Map(),_0x756afa=async _0x16ebc9=>{const _0x5ee011=_0x19e69a;if(_0x16ebc9[_0x5ee011(0xf7)]!=='PostToolUse')return{};const _0x593d9d=_0x16ebc9;if(_0x593d9d[_0x5ee011(0xe0)]!=='Bash')return{};const _0x99b227=_0x593d9d['tool_input'],_0x203318=extractBashCommand(_0x99b227);if(!_0x203318)return{};const _0x345f25=_0x53bf0c['IDgrl'](parseRangerwrightCliCommand,_0x203318);if(!_0x345f25)return{};return _0x48b081['set'](_0x345f25,(_0x48b081[_0x5ee011(0xd6)](_0x345f25)||0x0)+0x1),_0x15cff0[_0x5ee011(0x104)](_0x53bf0c[_0x5ee011(0xfb)],{'subcommand':_0x345f25}),_0x15cff0[_0x5ee011(0xcb)]('rangerwright_cli_command',{'subcommand':_0x345f25,'commandPreview':truncatePreview(_0x203318)}),console[_0x5ee011(0xd5)](_0x5ee011(0xf9)+formatRangerwrightCliLog(_0x203318,_0x345f25)),{};},_0x2ab417=async _0xaf8607=>{const _0x43cdb4=_0x19e69a;if(_0x53bf0c[_0x43cdb4(0x111)](_0xaf8607['hook_event_name'],'PostToolUseFailure'))return{};const _0x114287=_0xaf8607;if(_0x114287[_0x43cdb4(0xe0)]!==_0x53bf0c['JFbOE'])return{};return await _0x15cff0['trackPhaseError']('rangerwright_cli_command_failure',_0x114287['error'],{'transport':_0x53bf0c['ZaowG'],'toolName':_0x53bf0c[_0x43cdb4(0xdc)]}),{};};return{'postToolUseHook':_0x756afa,'postToolUseFailureHook':_0x2ab417,'commandCounts':_0x48b081};}function _0x1d1d(){const _0x39fc50=['trackPhaseError','8aJlvJi','tracing-stop','test','\x20>\x20','5272266ThCIqz','back-and-inspect','owYJw','OMKaA','match','phase','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','map','keys','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','open\x20and\x20inspect\x20','Reviewer','toLocaleDateString','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','key_02_learn-more.png','rangerwright_cli_tracing_stop','10275237pCdmAO','YXCrE','...','inspect','numeric','trackPhaseEnd','content','fill-and-inspect','short','BlkRq','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','KAQzu','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x20Every\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','\x20inspect\x20--screenshot-path\x20','155889Pbvhet','log','get','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','replace','2126504qqJlva','open-and-inspect','join','JFbOE','description','fTiFT','\x20open-and-inspect\x20','tool_name','createdAt','pop','rfZoT','close','xRjbL','ptsoq','\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x0a\x0a1.\x20Run\x20`','stderr','mmZmo','90KojNSD','textContent','video-stop','rangerwright-cli','\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port.\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists,\x20navigate\x20to\x20it\x20only\x20under\x20this\x20base\x20URL.','slice','65603kVzqqk','FGRRh','close\x20browser\x20session','TpBLa','domRef','LPgfv','en-US','hook_event_name','\x0a\x0aRefs\x20like\x20e37\x20are\x20only\x20valid\x20for\x20the\x20snapshot\x20that\x20produced\x20them.\x20Refresh\x20refs\x20after\x20navigation.\x0a\x0aUse\x20short\x20concrete\x20checkpoints\x20internally:\x20what\x20target\x20is\x20visible,\x20what\x20command\x20changes\x20state,\x20and\x20what\x20evidence\x20is\x20still\x20missing.\x20Issue\x20one\x20browser\x20command\x20at\x20a\x20time.\x20After\x20navigation,\x20validation,\x20or\x20a\x20changed\x20page,\x20inspect\x20before\x20deciding\x20the\x20next\x20action.\x0a\x0aBefore\x20reporting\x20success,\x20compare\x20each\x20required\x20CTA,\x20page\x20purpose,\x20and\x20topic\x20against\x20visible\x20page\x20evidence.\x20A\x20related\x20page\x20does\x20not\x20satisfy\x20a\x20different\x20required\x20topic\x20unless\x20the\x20page\x20text\x20directly\x20supports\x20that\x20topic\x20or\x20an\x20obvious\x20synonym.\x20If\x20required\x20evidence\x20is\x20missing,\x20mismatched,\x20or\x20only\x20inferred\x20from\x20adjacent\x20content,\x20report\x20that\x20plainly\x20and\x20do\x20not\x20mark\x20the\x20task\x20verified.\x0a\x0aFor\x20goals\x20with\x20more\x20than\x20one\x20required\x20condition,\x20use\x20an\x20internal\x20checklist\x20built\x20from\x20the\x20user\x27s\x20exact\x20requested\x20conditions.\x20Verify\x20each\x20checklist\x20item\x20against\x20visible\x20evidence\x20from\x20the\x20latest\x20browser\x20result.\x20If\x20any\x20item\x20lacks\x20direct\x20evidence,\x20report\x20the\x20task\x20as\x20not\x20verified\x20and\x20name\x20the\x20missing\x20item.\x0a\x0aOn\x20forms,\x20fill\x20only\x20visible\x20task-relevant\x20editable\x20fields\x20in\x20the\x20current\x20step\x20before\x20submitting\x20or\x20advancing.\x20Use\x20labels,\x20placeholders,\x20and\x20current\x20page\x20text\x20to\x20decide\x20which\x20fields\x20are\x20required.\x20Do\x20not\x20fill\x20fields\x20that\x20are\x20not\x20visible\x20in\x20the\x20latest\x20snapshot.\x0a\x0aUse\x20one\x20fill\x20command\x20per\x20field.\x20Do\x20not\x20combine\x20multiple\x20fields\x20into\x20one\x20fill\x20command\x20with\x20semicolons.\x0a\x0aIf\x20an\x20inspect-action\x20click\x20returns\x20the\x20same\x20page\x20or\x20shows\x20validation,\x20inspect\x20the\x20current\x20page\x20and\x20fill\x20blank\x20required\x20fields\x20before\x20retrying.\x20Do\x20not\x20repeat\x20the\x20same\x20blocked\x20click\x20unchanged.\x0a\x0aIf\x20a\x20click-and-inspect\x20result\x20keeps\x20the\x20same\x20URL\x20and\x20does\x20not\x20show\x20the\x20intended\x20target,\x20treat\x20it\x20as\x20a\x20no-op.\x20Refresh\x20refs\x20and\x20choose\x20a\x20different\x20visible\x20link,\x20or\x20use\x20back-and-inspect\x20if\x20you\x20need\x20the\x20prior\x20page.\x0a\x0aA\x20page\x20with\x20visible\x20required\x20fields\x20and\x20a\x20next,\x20submit,\x20continue,\x20or\x20confirm\x20control\x20is\x20still\x20actionable.\x20Fill\x20the\x20required\x20fields\x20with\x20values\x20from\x20the\x20task\x20before\x20reporting\x20incomplete\x20or\x20blocked.\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20first\x20inspect\x20result,\x20check\x20for\x20blocking\x20errors:\x0a-\x20HTTP\x20404,\x20500,\x20400,\x20\x22Not\x20Found\x22,\x20\x22Server\x20Error\x22,\x20or\x20\x22Bad\x20Request\x22\x0a-\x20Framework\x20error\x20pages\x0a-\x20Blank\x20pages\x20with\x20no\x20content\x0a-\x20App\x20crash\x20or\x20error\x20dialogs\x0a\x0aIf\x20any\x20blocking\x20error\x20is\x20visible,\x20return\x20evaluation\x20\x22blocked\x22\x20immediately\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.','[rangerwright-cli]\x20','491901maXboC','RmAMR','element','\x20--screenshot-path\x20','open\x20and\x20inspect','2209285aEoOaN','2iamRYZ','authorName','commandArgs','click\x20and\x20inspect\x20','trackPhaseStart','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','LOEQZ','canonicalFlow','inspect\x20page'];_0x1d1d=function(){return _0x39fc50;};return _0x1d1d();}async function runRangerwrightLifecycleCommand(_0x1d52ca){const _0x4040aa=_0xec39,_0xa5ff95={'Ytyha':function(_0x1fcf49,_0x3e656a){return _0x1fcf49(_0x3e656a);},'xRjbL':function(_0x3e361c,_0x266e79){return _0x3e361c??_0x266e79;},'FrqNm':function(_0x43bdd1,_0x2ded97,_0x54b06f){return _0x43bdd1(_0x2ded97,_0x54b06f);},'teQjN':function(_0x1984ab,_0x34a95d,_0xe2f639){return _0x1984ab(_0x34a95d,_0xe2f639);}},{options:_0x1ce5b2,commandArgs:_0x3709a8,env:_0x1e7b8f,telemetry:_0x3ff871,phase:_0x3792d5,metadata:_0x47d7c2,timeoutMs:_0x512a4e}=_0x1d52ca;_0x3ff871[_0x4040aa(0x104)](_0x3792d5,_0x47d7c2);try{const _0x40301b=await _0xa5ff95['Ytyha'](runRangerwrightCliCommand,{..._0x1ce5b2,'commandArgs':_0x3709a8,'cwd':process['cwd'](),'env':_0x1e7b8f,'timeoutMs':_0xa5ff95[_0x4040aa(0xe5)](_0x512a4e,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x3ff871[_0x4040aa(0xcb)](_0x3792d5,{..._0x47d7c2,'subcommand':_0x40301b['invocation']['subcommand'],'stdoutPreview':_0xa5ff95['FrqNm'](truncatePreview,_0x40301b['stdout'],0x7d0),'stderrPreview':_0xa5ff95['teQjN'](truncatePreview,_0x40301b[_0x4040aa(0xe8)],0x7d0)});}catch(_0x1d161c){await _0x3ff871[_0x4040aa(0x109)](_0x3792d5,_0x1d161c,_0x47d7c2);throw _0x1d161c;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x5b733b){const _0xa2d5be=_0xec39,_0x45dec0={'mmZmo':'tracing-stop','jtLnt':_0xa2d5be(0xe4)},{telemetry:_0x3628da,rangerwrightOptions:_0x1ae0e8,env:_0x1dcfe9,transportMetadata:_0x5d13ad}=_0x5b733b,_0x3922bb=[{'phase':_0xa2d5be(0xc5),'commandArgs':[_0x45dec0[_0xa2d5be(0xe9)]]},{'phase':'rangerwright_cli_video_stop','commandArgs':[_0xa2d5be(0xec)]},{'phase':'rangerwright_cli_close','commandArgs':[_0x45dec0['jtLnt']]}];for(const _0x6d88b9 of _0x3922bb){try{await runRangerwrightLifecycleCommand({'options':_0x1ae0e8,'commandArgs':[..._0x6d88b9[_0xa2d5be(0x102)]],'env':_0x1dcfe9,'telemetry':_0x3628da,'phase':_0x6d88b9[_0xa2d5be(0x113)],'metadata':_0x5d13ad});}catch{}}}
|
|
1
|
+
(function(_0x221b7b,_0x106110){const _0x519c79=_0x1f92,_0x2f9159=_0x221b7b();while(!![]){try{const _0x260669=parseInt(_0x519c79(0xe0))/0x1*(-parseInt(_0x519c79(0xf8))/0x2)+-parseInt(_0x519c79(0x125))/0x3*(parseInt(_0x519c79(0xe3))/0x4)+parseInt(_0x519c79(0x123))/0x5+parseInt(_0x519c79(0x10c))/0x6*(-parseInt(_0x519c79(0x10a))/0x7)+parseInt(_0x519c79(0xea))/0x8+parseInt(_0x519c79(0x11b))/0x9*(-parseInt(_0x519c79(0xd7))/0xa)+parseInt(_0x519c79(0xd2))/0xb*(parseInt(_0x519c79(0x116))/0xc);if(_0x260669===_0x106110)break;else _0x2f9159['push'](_0x2f9159['shift']());}catch(_0x511d43){_0x2f9159['push'](_0x2f9159['shift']());}}}(_0x5b86,0x5a95c));function _0x1f92(_0x4e4b1e,_0x4a9df6){_0x4e4b1e=_0x4e4b1e-0xcc;const _0x5b8692=_0x5b86();let _0x1f925=_0x5b8692[_0x4e4b1e];return _0x1f925;}import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x12c855,_0x18d891=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x48846d=_0x1f92,_0x221a2e={'evFgz':'...'};return _0x12c855['length']>_0x18d891?_0x12c855[_0x48846d(0xce)](0x0,_0x18d891)+_0x221a2e[_0x48846d(0xe2)]:_0x12c855;}function extractShellValue(_0x488b4d){if(!_0x488b4d)return null;return _0x488b4d[0x1]??_0x488b4d[0x2]??_0x488b4d[0x3]??null;}function _0x5b86(){const _0xbbc4ad=['short','dlwXA','FoBVs','2459233pRsrzO','sipBX','6xbczXj','Reviewer','commandPrefix','toLocaleDateString','rangerwright-cli','Bash','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','ref\x20','tracing-stop','2325540JavyRv','close','rangerwright_cli_command_failure','unaddressedComments','PKrFj','3321OTwdOr','video-stop','invocation','qwiQI','`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`','trackPhaseStart','Kjxmj','rangerwright_cli_command','3687195RjOaVI','click-and-inspect','51guCLPp','PostToolUse','tPhVy','slice','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','stop\x20video\x20recording','\x20--screenshot-path\x20','22ibMwYq','match','canonicalFlow','xlUew','split','13070MdezoV','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x20Every\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','length','keys','\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x20Browser\x20Trek\x20only\x20counts\x20literal\x20Rangerwright\x20command\x20invocations.\x0a\x0aTreat\x20the\x20command\x20prefix\x20as\x20immutable.\x20Copy\x20it\x20exactly,\x20then\x20append\x20one\x20supported\x20Rangerwright\x20subcommand\x20and\x20its\x20arguments.\x20If\x20a\x20browser\x20command\x20fails\x20because\x20the\x20binary\x20path\x20is\x20missing\x20or\x20the\x20command\x20syntax\x20is\x20malformed,\x20retry\x20once\x20with\x20the\x20exact\x20prefix\x20from\x20this\x20prompt\x20before\x20deciding\x20the\x20task\x20is\x20blocked.\x0a\x0aFirst\x20command:\x0a\x0a','01_initial-state.png','close\x20browser\x20session','\x5c$&','01_mozilla-homepage.png','192889tCgLrx','url','evFgz','47584LqnrDr','description','numeric','tool_name','stringify','hqLGw','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','3797840eNzBRH','trackPhaseEnd','hzKNy','stdout','JAPRX','en-US','hook_event_name','[rangerwright-cli]\x20','NEmHn','domRef','\x20>\x20','trackPhaseError','yJhxW','GRBiw','2XETPNe','jpwWC','sort','yDjJl','stop\x20tracing','\x20open-and-inspect\x20','bEdFc','inspect','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','>\x20\x22','rangerwright_cli_video_stop','PEsRL','rangerwright_cli_close','values'];_0x5b86=function(){return _0xbbc4ad;};return _0x5b86();}function extractFirstCommandArgument(_0x4b4631,_0x231565){const _0x1894e3=_0x1f92,_0x48899c={'cFxEK':function(_0x67be3c,_0x3e94c0){return _0x67be3c(_0x3e94c0);}},_0x4ee0e7=_0x231565['replace'](/[.*+?^${}()|[\]\\]/g,_0x1894e3(0xde));return _0x48899c['cFxEK'](extractShellValue,_0x4b4631[_0x1894e3(0xd3)](new RegExp('(?:^|\x5cs)'+_0x4ee0e7+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x3c6328){const _0x205be7=_0x1f92,_0x40a95a={'GRBiw':'target'};if(!_0x3c6328)return _0x40a95a[_0x205be7(0xf7)];if(/^e\d+$/i['test'](_0x3c6328))return _0x205be7(0x114)+_0x3c6328;return JSON[_0x205be7(0xe7)](truncatePreview(_0x3c6328,0x78));}function formatRangerwrightCliLog(_0x35652b,_0x3df1c7){const _0x107dcd=_0x1f92,_0x45435c={'yJhxW':function(_0xd29f5f,_0x7a58f5,_0x413f10){return _0xd29f5f(_0x7a58f5,_0x413f10);},'EAyON':'open\x20and\x20inspect','PEsRL':_0x107dcd(0x124),'xlUew':function(_0x3e878f,_0x15a1d9){return _0x3e878f(_0x15a1d9);},'CplMY':'fill-and-inspect','yDjJl':function(_0x4d4229,_0x654085){return _0x4d4229(_0x654085);},'dlwXA':_0x107dcd(0x115),'YfjgQ':_0x107dcd(0xfc),'qwiQI':_0x107dcd(0x11c),'JPJAD':_0x107dcd(0xd0),'OAbkO':_0x107dcd(0xdd)};switch(_0x3df1c7){case'open-and-inspect':{const _0x8bc5f0=_0x45435c[_0x107dcd(0xf6)](extractFirstCommandArgument,_0x35652b,_0x3df1c7);return _0x8bc5f0?'open\x20and\x20inspect\x20'+_0x8bc5f0:_0x45435c['EAyON'];}case _0x45435c[_0x107dcd(0x104)]:return'click\x20and\x20inspect\x20'+_0x45435c[_0x107dcd(0xd5)](formatCommandTarget,extractFirstCommandArgument(_0x35652b,_0x3df1c7));case'fill':case _0x45435c['CplMY']:return'fill\x20'+_0x45435c[_0x107dcd(0xfb)](formatCommandTarget,_0x45435c[_0x107dcd(0xf6)](extractFirstCommandArgument,_0x35652b,_0x3df1c7));case'back-and-inspect':return'go\x20back\x20and\x20inspect';case _0x107dcd(0xff):return'inspect\x20page';case _0x45435c[_0x107dcd(0x108)]:return _0x45435c['YfjgQ'];case _0x45435c[_0x107dcd(0x11e)]:return _0x45435c['JPJAD'];case'close':return _0x45435c['OAbkO'];default:return _0x3df1c7;}}function renderScenarioSections(_0x334ea7){const _0x3d23f1=_0x1f92,_0xfedfa={'bEdFc':_0x3d23f1(0xe5),'sipBX':_0x3d23f1(0xf4)},{checklistItem:_0x328a8c,itemFeedback:_0x110a9b}=_0x334ea7,_0x4bb4cb=_0x328a8c['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x328a8c['notes']:'';let _0x129b87='';if(_0x110a9b&&_0x110a9b['unaddressedComments'][_0x3d23f1(0xd9)]>0x0){const _0x121f36=_0x110a9b[_0x3d23f1(0x119)]['map'](_0x352639=>{const _0x45dbe0=_0x3d23f1,_0x581269=new Date(_0x352639['createdAt'])[_0x45dbe0(0x10f)](_0x45dbe0(0xef),{'month':_0x45dbe0(0x107),'day':_0xfedfa[_0x45dbe0(0xfe)]}),_0x5f4dde=_0x352639['authorName']||_0x352639['authorEmail']||_0x45dbe0(0x10d),_0xf42c03=_0x352639['domRef']?'\x20(on\x20element:\x20<'+(_0x352639[_0x45dbe0(0xf3)]['selector'][_0x45dbe0(0xd6)](_0xfedfa[_0x45dbe0(0x10b)])['pop']()?.[_0x45dbe0(0xd6)](':')[0x0]||'element')+_0x45dbe0(0x102)+(_0x352639['domRef']['textContent']||'')[_0x45dbe0(0xce)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x352639['id']+']\x20'+_0x5f4dde+'\x20('+_0x581269+'):\x20\x22'+_0x352639['content']+'\x22'+_0xf42c03;})['join']('\x0a');_0x129b87='\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x121f36;}const _0x1658ea=_0x110a9b?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x110a9b[_0x3d23f1(0xd4)]:'';return''+_0x328a8c[_0x3d23f1(0xe4)]+_0x4bb4cb+_0x129b87+_0x1658ea;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x9d82a5){const _0x14bea3=_0x1f92,_0x395c10={'MxYyb':_0x14bea3(0xdc),'FANiU':'key_99_final-state.png','hzKNy':function(_0x37938f,_0x50840e){return _0x37938f(_0x50840e);},'FjubS':'about:blank','BtlHN':function(_0x57fc69,_0x33371c){return _0x57fc69(_0x33371c);}},{checklistItem:_0x2500b3,itemFeedback:_0x3719fb,taskDescription:_0x4d21c5,commandPrefix:_0x6def47,isCdpMode:_0xce5f42,url:_0x582e9f,cdpEndpoint:_0x54ccf6,loginInstructions:_0x1f6136}=_0x9d82a5,_0x2fb8d8=_0x395c10['MxYyb'],_0x3ad9ed=_0x395c10['FANiU'],_0x32b9af=_0xce5f42?_0x6def47+'\x20inspect\x20--screenshot-path\x20'+quoteShellArg(_0x2fb8d8):_0x6def47+_0x14bea3(0xfd)+_0x395c10[_0x14bea3(0xec)](quoteShellArg,_0x582e9f??_0x395c10['FjubS'])+_0x14bea3(0xd1)+quoteShellArg(_0x2fb8d8),_0x4254b6=_0xce5f42?_0x14bea3(0x101)+_0x54ccf6+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x582e9f+'\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port.\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists,\x20navigate\x20to\x20it\x20only\x20under\x20this\x20base\x20URL.',_0x7701a1=_0x1f6136?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x1f6136+_0x14bea3(0xcf):'';return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x395c10['BtlHN'](renderScenarioSections,{'checklistItem':_0x2500b3,'itemFeedback':_0x3719fb})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x4d21c5+'\x0a\x0a'+_0x4254b6+_0x7701a1+_0x14bea3(0x100)+_0x6def47+_0x14bea3(0xdb)+_0x32b9af+'\x0a\x0aPrefer\x20open-and-inspect\x20and\x20click-and-inspect\x20when\x20you\x20need\x20a\x20fresh\x20snapshot\x20plus\x20evidence.\x0a\x0aUse\x20back-and-inspect\x20to\x20return\x20to\x20the\x20previous\x20page\x20after\x20checking\x20a\x20detail\x20page.\x20Refresh\x20refs\x20after\x20going\x20back.\x0a\x0aEach\x20command\x20returns\x20JSON\x20with\x20success,\x20data,\x20and\x20error\x20fields.\x0a\x0aUse\x20data.title,\x20data.headings,\x20data.pageText,\x20and\x20data.snapshotText\x20together.\x20snapshotText\x20is\x20best\x20for\x20refs\x20and\x20controls;\x20pageText\x20is\x20valid\x20visible\x20evidence\x20for\x20page\x20content.\x0a\x0aDo\x20not\x20verify\x20from\x20a\x20broad\x20landing,\x20index,\x20category,\x20search,\x20or\x20navigation\x20page\x20when\x20the\x20task\x20asks\x20for\x20a\x20specific\x20page,\x20topic,\x20item,\x20or\x20action.\x20Click\x20and\x20inspect\x20the\x20most\x20specific\x20visible\x20target\x20first;\x20if\x20no\x20specific\x20target\x20exists,\x20report\x20the\x20missing\x20target.\x0a\x0aSave\x20screenshots\x20by\x20using\x20--screenshot-path\x20on\x20inspect\x20commands.\x20Relative\x20screenshot\x20paths\x20are\x20saved\x20under\x20the\x20run\x20artifact\x20directory.\x20Do\x20not\x20call\x20screenshot\x20--path.\x0a\x0aExample:\x0a\x0a'+_0x6def47+_0x14bea3(0x113)+quoteShellArg(_0x3ad9ed)+'\x0a\x0aRefs\x20like\x20e37\x20are\x20only\x20valid\x20for\x20the\x20snapshot\x20that\x20produced\x20them.\x20Refresh\x20refs\x20after\x20navigation.\x0a\x0aUse\x20short\x20concrete\x20checkpoints\x20internally:\x20what\x20target\x20is\x20visible,\x20what\x20command\x20changes\x20state,\x20and\x20what\x20evidence\x20is\x20still\x20missing.\x20Issue\x20one\x20browser\x20command\x20at\x20a\x20time.\x20After\x20navigation,\x20validation,\x20or\x20a\x20changed\x20page,\x20inspect\x20before\x20deciding\x20the\x20next\x20action.\x0a\x0aBefore\x20reporting\x20success,\x20compare\x20each\x20required\x20CTA,\x20page\x20purpose,\x20and\x20topic\x20against\x20visible\x20page\x20evidence.\x20A\x20related\x20page\x20does\x20not\x20satisfy\x20a\x20different\x20required\x20topic\x20unless\x20the\x20page\x20text\x20directly\x20supports\x20that\x20topic\x20or\x20an\x20obvious\x20synonym.\x20If\x20required\x20evidence\x20is\x20missing,\x20mismatched,\x20or\x20only\x20inferred\x20from\x20adjacent\x20content,\x20report\x20that\x20plainly\x20and\x20do\x20not\x20mark\x20the\x20task\x20verified.\x0a\x0aFor\x20goals\x20with\x20more\x20than\x20one\x20required\x20condition,\x20use\x20an\x20internal\x20checklist\x20built\x20from\x20the\x20user\x27s\x20exact\x20requested\x20conditions.\x20Verify\x20each\x20checklist\x20item\x20against\x20visible\x20evidence\x20from\x20the\x20latest\x20browser\x20result.\x20If\x20any\x20item\x20lacks\x20direct\x20evidence,\x20report\x20the\x20task\x20as\x20not\x20verified\x20and\x20name\x20the\x20missing\x20item.\x0a\x0aOn\x20forms,\x20fill\x20only\x20visible\x20task-relevant\x20editable\x20fields\x20in\x20the\x20current\x20step\x20before\x20submitting\x20or\x20advancing.\x20Use\x20labels,\x20placeholders,\x20and\x20current\x20page\x20text\x20to\x20decide\x20which\x20fields\x20are\x20required.\x20Do\x20not\x20fill\x20fields\x20that\x20are\x20not\x20visible\x20in\x20the\x20latest\x20snapshot.\x0a\x0aUse\x20one\x20fill\x20command\x20per\x20field.\x20Do\x20not\x20combine\x20multiple\x20fields\x20into\x20one\x20fill\x20command\x20with\x20semicolons.\x0a\x0aIf\x20an\x20inspect-action\x20click\x20returns\x20the\x20same\x20page\x20or\x20shows\x20validation,\x20inspect\x20the\x20current\x20page\x20and\x20fill\x20blank\x20required\x20fields\x20before\x20retrying.\x20Do\x20not\x20repeat\x20the\x20same\x20blocked\x20click\x20unchanged.\x0a\x0aIf\x20a\x20click-and-inspect\x20result\x20keeps\x20the\x20same\x20URL\x20and\x20does\x20not\x20show\x20the\x20intended\x20target,\x20treat\x20it\x20as\x20a\x20no-op.\x20Refresh\x20refs\x20and\x20choose\x20a\x20different\x20visible\x20link,\x20or\x20use\x20back-and-inspect\x20if\x20you\x20need\x20the\x20prior\x20page.\x0a\x0aA\x20page\x20with\x20visible\x20required\x20fields\x20and\x20a\x20next,\x20submit,\x20continue,\x20or\x20confirm\x20control\x20is\x20still\x20actionable.\x20Fill\x20the\x20required\x20fields\x20with\x20values\x20from\x20the\x20task\x20before\x20reporting\x20incomplete\x20or\x20blocked.\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20first\x20inspect\x20result,\x20check\x20for\x20blocking\x20errors:\x0a-\x20HTTP\x20404,\x20500,\x20400,\x20\x22Not\x20Found\x22,\x20\x22Server\x20Error\x22,\x20or\x20\x22Bad\x20Request\x22\x0a-\x20Framework\x20error\x20pages\x0a-\x20Blank\x20pages\x20with\x20no\x20content\x0a-\x20App\x20crash\x20or\x20error\x20dialogs\x0a\x0aIf\x20any\x20blocking\x20error\x20is\x20visible,\x20return\x20evaluation\x20\x22blocked\x22\x20immediately\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x4305be){const _0x521a71=_0x1f92,_0x324e77={'HnoNY':_0x521a71(0xdf),'hqLGw':'key_02_learn-more.png','YBoAI':function(_0x52b3e3,_0x3f87e8){return _0x52b3e3(_0x3f87e8);},'PKrFj':function(_0x5591c2,_0x19f1ee){return _0x5591c2(_0x19f1ee);}},_0x3959f1=_0x324e77['HnoNY'],_0x1adfd7=_0x324e77[_0x521a71(0xe8)];return _0x521a71(0xd8)+_0x4305be[_0x521a71(0x10e)]+'\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x0a\x0a1.\x20Run\x20`'+_0x4305be['commandPrefix']+_0x521a71(0xfd)+_0x324e77['YBoAI'](quoteShellArg,_0x4305be[_0x521a71(0xe1)])+_0x521a71(0xd1)+_0x324e77[_0x521a71(0x11a)](quoteShellArg,_0x3959f1)+_0x521a71(0x11f)+_0x4305be[_0x521a71(0x10e)]+_0x521a71(0xe9)+quoteShellArg(_0x1adfd7)+_0x521a71(0x112);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x5c16bb){const _0x28843d=_0x1f92,_0x35146d={'RbexX':function(_0xeb44f3,_0x6e62f3){return _0xeb44f3===_0x6e62f3;}},_0x28e799=[..._0x5c16bb[_0x28843d(0xda)]()][_0x28843d(0xfa)]();let _0x52fb5d=0x0;for(const _0x508e11 of _0x5c16bb[_0x28843d(0x106)]()){_0x52fb5d+=_0x508e11;}return{'cliCommandCount':_0x52fb5d,'cliCommandsSeen':_0x28e799,'noCliCommandsCalled':_0x35146d['RbexX'](_0x52fb5d,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x1d7a35){const _0x55721c=_0x1f92,_0x488d21={'Kjxmj':function(_0x548335,_0x1c78a4){return _0x548335!==_0x1c78a4;},'JAPRX':_0x55721c(0xcc),'PVCzD':_0x55721c(0x111),'tPhVy':function(_0x17175a,_0x2d9283){return _0x17175a(_0x2d9283);},'GGGds':function(_0x17b5ed,_0x4acecb){return _0x17b5ed!==_0x4acecb;},'FnNTp':_0x55721c(0x118)},_0x4c7742=new Map(),_0x593067=async _0x2af660=>{const _0x26922c=_0x55721c;if(_0x488d21[_0x26922c(0x121)](_0x2af660[_0x26922c(0xf0)],_0x488d21[_0x26922c(0xee)]))return{};const _0x52b41d=_0x2af660;if(_0x52b41d[_0x26922c(0xe6)]!==_0x488d21['PVCzD'])return{};const _0x6b7c16=_0x52b41d['tool_input'],_0xef01a1=extractBashCommand(_0x6b7c16);if(!_0xef01a1)return{};const _0x5b3ad8=_0x488d21[_0x26922c(0xcd)](parseRangerwrightCliCommand,_0xef01a1);if(!_0x5b3ad8)return{};return _0x4c7742['set'](_0x5b3ad8,(_0x4c7742['get'](_0x5b3ad8)||0x0)+0x1),_0x1d7a35[_0x26922c(0x120)](_0x26922c(0x122),{'subcommand':_0x5b3ad8}),_0x1d7a35['trackPhaseEnd']('rangerwright_cli_command',{'subcommand':_0x5b3ad8,'commandPreview':_0x488d21[_0x26922c(0xcd)](truncatePreview,_0xef01a1)}),console['log'](_0x26922c(0xf1)+formatRangerwrightCliLog(_0xef01a1,_0x5b3ad8)),{};},_0x53695c=async _0x557ebe=>{const _0x40cfdb=_0x55721c;if(_0x488d21['GGGds'](_0x557ebe[_0x40cfdb(0xf0)],'PostToolUseFailure'))return{};const _0x128110=_0x557ebe;if(_0x488d21['GGGds'](_0x128110['tool_name'],'Bash'))return{};return await _0x1d7a35[_0x40cfdb(0xf5)](_0x488d21['FnNTp'],_0x128110['error'],{'transport':_0x40cfdb(0x110),'toolName':_0x40cfdb(0x111)}),{};};return{'postToolUseHook':_0x593067,'postToolUseFailureHook':_0x53695c,'commandCounts':_0x4c7742};}async function runRangerwrightLifecycleCommand(_0x5dd457){const _0x5ae1ad=_0x1f92,_0x1761a9={'dBckk':function(_0x364440,_0x3fb551){return _0x364440(_0x3fb551);},'jpwWC':function(_0x1e9676,_0x37c175){return _0x1e9676??_0x37c175;},'FoBVs':function(_0x11ef98,_0x205fb8,_0x143e8a){return _0x11ef98(_0x205fb8,_0x143e8a);}},{options:_0x1a6aab,commandArgs:_0x10b5b8,env:_0x42c184,telemetry:_0x1776ba,phase:_0x586973,metadata:_0x532160,timeoutMs:_0x299f69}=_0x5dd457;_0x1776ba['trackPhaseStart'](_0x586973,_0x532160);try{const _0x4ba9cf=await _0x1761a9['dBckk'](runRangerwrightCliCommand,{..._0x1a6aab,'commandArgs':_0x10b5b8,'cwd':process['cwd'](),'env':_0x42c184,'timeoutMs':_0x1761a9[_0x5ae1ad(0xf9)](_0x299f69,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x1776ba[_0x5ae1ad(0xeb)](_0x586973,{..._0x532160,'subcommand':_0x4ba9cf[_0x5ae1ad(0x11d)]['subcommand'],'stdoutPreview':truncatePreview(_0x4ba9cf[_0x5ae1ad(0xed)],0x7d0),'stderrPreview':_0x1761a9[_0x5ae1ad(0x109)](truncatePreview,_0x4ba9cf['stderr'],0x7d0)});}catch(_0x2437b4){await _0x1776ba['trackPhaseError'](_0x586973,_0x2437b4,_0x532160);throw _0x2437b4;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0xa636d6){const _0x91a9f0=_0x1f92,_0x272d54={'NEmHn':_0x91a9f0(0x105)},{telemetry:_0x25c046,rangerwrightOptions:_0x193b45,env:_0x50cd15,transportMetadata:_0x2fa392}=_0xa636d6,_0x207bfa=[{'phase':'rangerwright_cli_tracing_stop','commandArgs':[_0x91a9f0(0x115)]},{'phase':_0x91a9f0(0x103),'commandArgs':[_0x91a9f0(0x11c)]},{'phase':_0x272d54[_0x91a9f0(0xf2)],'commandArgs':[_0x91a9f0(0x117)]}];for(const _0x4085f0 of _0x207bfa){try{await runRangerwrightLifecycleCommand({'options':_0x193b45,'commandArgs':[..._0x4085f0['commandArgs']],'env':_0x50cd15,'telemetry':_0x25c046,'phase':_0x4085f0['phase'],'metadata':_0x2fa392});}catch{}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ranger-testing/ranger-cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3-alpha.2c5eb8e-44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ranger": "./build/cli.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@ranger-testing/rangerwright": "^0.0.27",
|
|
26
26
|
"dotenv": "^16.4.5",
|
|
27
27
|
"inquirer": "^9.2.12",
|
|
28
|
-
"playwright": "
|
|
28
|
+
"playwright": "1.57.0",
|
|
29
29
|
"ws": "^8.20.1",
|
|
30
30
|
"yargs": "^17.7.2",
|
|
31
31
|
"zod": "^3.23.8"
|