@ranger-testing/ranger-cli 3.1.7-alpha.387730d-58 → 3.1.7-alpha.44736ee-66
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/actors.js +1 -0
- 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/scenarioOriginCheck.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/build/skills/ranger/SKILL.md +8 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x51cd(_0x9e9bc8,_0x47157d){_0x9e9bc8=_0x9e9bc8-0xc8;const _0x304ca4=_0x304c();let _0x51cdd0=_0x304ca4[_0x9e9bc8];return _0x51cdd0;}(function(_0x27c50b,_0x3d86fa){const _0x38d49e=_0x51cd,_0x1ad347=_0x27c50b();while(!![]){try{const _0xb3d450=parseInt(_0x38d49e(0xcc))/0x1*(parseInt(_0x38d49e(0x126))/0x2)+parseInt(_0x38d49e(0x11f))/0x3*(parseInt(_0x38d49e(0x137))/0x4)+-parseInt(_0x38d49e(0x132))/0x5+parseInt(_0x38d49e(0x13d))/0x6+parseInt(_0x38d49e(0x133))/0x7*(parseInt(_0x38d49e(0x14a))/0x8)+-parseInt(_0x38d49e(0xf4))/0x9+-parseInt(_0x38d49e(0xe5))/0xa;if(_0xb3d450===_0x3d86fa)break;else _0x1ad347['push'](_0x1ad347['shift']());}catch(_0x27c410){_0x1ad347['push'](_0x1ad347['shift']());}}}(_0x304c,0x6bb5d));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(_0x34c9f5,_0x363c60=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x4b82fa=_0x51cd,_0x52ef50={'FrfPN':function(_0x4ff47a,_0x3a6a23){return _0x4ff47a+_0x3a6a23;},'ctdkt':_0x4b82fa(0x148)};return _0x34c9f5[_0x4b82fa(0x116)]>_0x363c60?_0x52ef50[_0x4b82fa(0x128)](_0x34c9f5[_0x4b82fa(0x117)](0x0,_0x363c60),_0x52ef50['ctdkt']):_0x34c9f5;}function buildCliArtifactPath(_0x47e191,_0x3a2a21){return join(_0x47e191,_0x3a2a21);}function toStepDisplayName(_0x26dbb2){const _0x317dfb=_0x51cd,_0xb78084=basename(_0x26dbb2)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x317dfb(0x100)](/^key_/i,'')[_0x317dfb(0x100)](/^\d+_/,'')[_0x317dfb(0x100)](/-/g,'\x20');return{'name':_0xb78084,'isKeyStep':/^key_/i['test'](basename(_0x26dbb2))};}function extractShellValue(_0xbadf59){if(!_0xbadf59)return null;return _0xbadf59[0x1]??_0xbadf59[0x2]??_0xbadf59[0x3]??null;}function extractFilenameOption(_0xef4704){return extractShellValue(_0xef4704['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x542a4f,_0x2605dd){const _0x650046=_0x51cd,_0x112cbf={'ZPpGS':'\x5c$&','usuPo':function(_0x43457d,_0x5af699){return _0x43457d(_0x5af699);}},_0x1a0df7=_0x2605dd['replace'](/[.*+?^${}()|[\]\\]/g,_0x112cbf['ZPpGS']);return _0x112cbf[_0x650046(0x11d)](extractShellValue,_0x542a4f[_0x650046(0xff)](new RegExp(_0x650046(0x106)+_0x1a0df7+_0x650046(0xd7))));}function formatCommandTarget(_0x17b18){const _0x1d8dd9=_0x51cd;if(!_0x17b18)return _0x1d8dd9(0x140);if(/^e\d+$/i['test'](_0x17b18))return _0x1d8dd9(0xd9)+_0x17b18;return JSON[_0x1d8dd9(0xf0)](truncatePreview(_0x17b18,0x78));}function formatPlaywrightCliLog(_0xdc7d1e,_0x3f4f8c){const _0x4e4d22=_0x51cd,_0x2231b1={'Jhcrq':'open\x20browser','UhReB':'tracing-start','ulnQe':'video-start','chTQt':_0x4e4d22(0x120),'QBKxJ':'snapshot','mSHGe':'capture\x20snapshot','qQCHm':function(_0x19d03f,_0x329381){return _0x19d03f(_0x329381);},'GdkWx':function(_0x32b4b4,_0x590ac6){return _0x32b4b4(_0x590ac6);},'dQOcG':'capture\x20screenshot','tZIUt':function(_0x44601e,_0x1dfa33,_0x548cfa){return _0x44601e(_0x1dfa33,_0x548cfa);},'LdSvs':'fill','AEOlJ':_0x4e4d22(0xf5),'qDeGo':function(_0x39acc7,_0x547951){return _0x39acc7(_0x547951);},'cCrVJ':'run\x20custom\x20Playwright\x20code','SAVsC':'select\x20tab'};switch(_0x3f4f8c){case'open':{const _0x498cd9=extractFirstCommandArgument(_0xdc7d1e,_0x3f4f8c);return _0x498cd9?_0x4e4d22(0xe7)+_0x498cd9:_0x2231b1['Jhcrq'];}case _0x2231b1['UhReB']:return _0x4e4d22(0xef);case'tracing-stop':return'stop\x20tracing';case _0x2231b1['ulnQe']:return _0x4e4d22(0xcd);case _0x4e4d22(0x134):return _0x2231b1['chTQt'];case _0x2231b1['QBKxJ']:{const _0x583791=extractFilenameOption(_0xdc7d1e);if(!_0x583791)return _0x2231b1['mSHGe'];const {name:_0x2632c3}=_0x2231b1['qQCHm'](toStepDisplayName,_0x583791);return'capture\x20snapshot\x20`'+_0x2632c3+'`';}case _0x4e4d22(0xdf):{const _0x36d2c9=_0x2231b1['GdkWx'](extractFilenameOption,_0xdc7d1e);if(!_0x36d2c9)return _0x2231b1['dQOcG'];const {name:_0x900e1f,isKeyStep:_0x53d4c3}=toStepDisplayName(_0x36d2c9);return _0x53d4c3?_0x4e4d22(0x105)+_0x900e1f+'`':_0x4e4d22(0xe9)+_0x900e1f+'`';}case'click':return'click\x20'+formatCommandTarget(extractFirstCommandArgument(_0xdc7d1e,_0x3f4f8c));case _0x4e4d22(0xd5):return _0x4e4d22(0x12b)+formatCommandTarget(_0x2231b1[_0x4e4d22(0x119)](extractFirstCommandArgument,_0xdc7d1e,_0x3f4f8c));case _0x2231b1[_0x4e4d22(0x123)]:return _0x4e4d22(0xdb)+_0x2231b1[_0x4e4d22(0xe6)](formatCommandTarget,_0x2231b1[_0x4e4d22(0x119)](extractFirstCommandArgument,_0xdc7d1e,_0x3f4f8c));case _0x2231b1[_0x4e4d22(0xd8)]:return'press\x20'+_0x2231b1['qDeGo'](formatCommandTarget,_0x2231b1['tZIUt'](extractFirstCommandArgument,_0xdc7d1e,_0x3f4f8c));case _0x4e4d22(0xfe):return _0x2231b1[_0x4e4d22(0xe2)];case _0x4e4d22(0xfd):{const _0x441575=extractFirstCommandArgument(_0xdc7d1e,_0x3f4f8c);return _0x441575?'open\x20new\x20tab\x20'+_0x441575:_0x4e4d22(0x101);}case'tab-select':{const _0x1d75dd=extractFirstCommandArgument(_0xdc7d1e,_0x3f4f8c);return _0x1d75dd?'select\x20tab\x20'+_0x1d75dd:_0x2231b1['SAVsC'];}default:return _0x3f4f8c;}}function extractPlaywrightCliToolDescription(_0x16b088){const _0x41378c=_0x51cd,_0x153bcb={'YHVHU':function(_0x4a741f,_0x4022f9){return _0x4a741f>_0x4022f9;}},_0x4a1d6d=_0x16b088['description'];if(typeof _0x4a1d6d!==_0x41378c(0x12f))return null;const _0x2638be=_0x4a1d6d['trim']()[_0x41378c(0x100)](/\s+/g,'\x20');return _0x153bcb[_0x41378c(0xcb)](_0x2638be['length'],0x0)?_0x2638be:null;}export function formatPlaywrightCliConsoleLogMessage(_0x5f38ec,_0x5879bd,_0x4ae023){const _0x461428=_0x51cd,_0x5bb077={'iDfGH':function(_0x120570,_0x191a22,_0x2c1868){return _0x120570(_0x191a22,_0x2c1868);},'TYsXF':function(_0xc60aba,_0x5708d0){return _0xc60aba(_0x5708d0);}},_0x206cfb=_0x5bb077[_0x461428(0xe3)](formatPlaywrightCliLog,_0x5879bd,_0x4ae023),_0x19975a=_0x5bb077['TYsXF'](extractPlaywrightCliToolDescription,_0x5f38ec);if(!_0x19975a)return _0x461428(0x103)+_0x206cfb;if(process['env']['DEBUG'])return _0x461428(0x138)+_0x19975a+'\x20('+_0x206cfb+')';return'[ranger-verification-agent]\x20'+_0x19975a;}export function buildVerifyFeatureCliDebugPrompt(_0x12d0cf,_0xfd347e){const _0x244e42=_0x51cd,_0x25a2ae={'YjfII':_0x244e42(0x14c),'OKJmW':function(_0x2956e7,_0x103a62){return _0x2956e7(_0x103a62);}},_0x4de8c6=buildCliArtifactPath(_0xfd347e,'00_mozilla-homepage.yml'),_0x58d25b=buildCliArtifactPath(_0xfd347e,_0x25a2ae[_0x244e42(0x127)]),_0x363595=buildCliArtifactPath(_0xfd347e,_0x244e42(0xf9)),_0xd777b8=buildCliArtifactPath(_0xfd347e,_0x244e42(0x142)),_0x232fd6=quoteShellArg(_0x4de8c6),_0x20a9e=quoteShellArg(_0x58d25b),_0x3ad026=_0x25a2ae['OKJmW'](quoteShellArg,_0x363595),_0x3bf560=quoteShellArg(_0xd777b8);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x12d0cf+_0x244e42(0x146)+_0x12d0cf+_0x244e42(0x11e)+_0x12d0cf+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x12d0cf+_0x244e42(0x10d)+_0xfd347e+_0x244e42(0xf1)+_0x12d0cf+'\x20snapshot\x20--filename\x20'+_0x232fd6+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x12d0cf+_0x244e42(0x13f)+_0x20a9e+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x12d0cf+'\x20snapshot\x20--filename\x20'+_0x3ad026+_0x244e42(0xf8)+_0x12d0cf+'\x20screenshot\x20--filename\x20'+_0x3bf560+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x3db509){const _0x3653a9=_0x51cd,_0x2d6ad9={'RBwoN':_0x3653a9(0x14b),'bqepN':'numeric','YWCUD':_0x3653a9(0x108),'SLKZy':_0x3653a9(0x12a),'tZVhS':'01_initial.yml','qfZtV':function(_0x189796,_0x36cd7f,_0x2a2b24){return _0x189796(_0x36cd7f,_0x2a2b24);},'lcYbd':function(_0x49dd9b,_0x537ee7,_0x546661){return _0x49dd9b(_0x537ee7,_0x546661);},'DToYi':_0x3653a9(0x111),'aMRIr':function(_0x1e8dbb,_0x41f7c2){return _0x1e8dbb(_0x41f7c2);},'jApFH':function(_0x541054,_0x401e06){return _0x541054>_0x401e06;},'CBoYh':function(_0x45d82f,_0x43afd1,_0x45026a){return _0x45d82f(_0x43afd1,_0x45026a);},'CnNRT':function(_0x191173,_0x1e2b3f,_0x348763){return _0x191173(_0x1e2b3f,_0x348763);},'UROar':'03_result-visible.png'},{checklistItem:_0x154361,itemFeedback:_0x479a6b,taskDescription:_0x1fd58d,cliCommandPrefix:_0x4ac20b,cliArtifactDir:_0x4d794a,isCdpMode:_0x1f40f9,url:_0x5270fe,cdpEndpoint:_0x59adfe,loginInstructions:_0x352697}=_0x3db509,_0x481938=buildCliArtifactPath(_0x4d794a,_0x2d6ad9[_0x3653a9(0xed)]),_0x13dccf=_0x2d6ad9['qfZtV'](buildCliArtifactPath,_0x4d794a,'02_state.yml'),_0x46f122=buildCliArtifactPath(_0x4d794a,_0x3653a9(0x13e)),_0x167060=_0x2d6ad9[_0x3653a9(0x10b)](buildCliArtifactPath,_0x4d794a,_0x2d6ad9[_0x3653a9(0xc9)]),_0x3f66cf=quoteShellArg(_0x481938),_0x509319=_0x2d6ad9['aMRIr'](quoteShellArg,_0x13dccf),_0x13a126=quoteShellArg(_0x46f122),_0x996eae=_0x2d6ad9['aMRIr'](quoteShellArg,_0x167060),_0x41c4d4=_0x154361['notes']?_0x3653a9(0x135)+_0x154361['notes']:'';let _0x3d51be='';if(_0x479a6b&&_0x2d6ad9[_0x3653a9(0xdd)](_0x479a6b['unaddressedComments']['length'],0x0)){const _0x4d18ee=_0x479a6b[_0x3653a9(0xdc)]['map'](_0x13ffb7=>{const _0x520479=_0x3653a9,_0x453ab2=new Date(_0x13ffb7['createdAt'])[_0x520479(0xe4)](_0x2d6ad9['RBwoN'],{'month':'short','day':_0x2d6ad9[_0x520479(0xd3)]}),_0x191049=_0x13ffb7['authorName']||_0x13ffb7['authorEmail']||_0x2d6ad9['YWCUD'],_0x4d7f55=_0x13ffb7['domRef']?'\x20(on\x20element:\x20<'+(_0x13ffb7[_0x520479(0xde)]['selector']['split'](_0x2d6ad9['SLKZy'])[_0x520479(0xeb)]()?.[_0x520479(0xda)](':')[0x0]||'element')+_0x520479(0xfb)+(_0x13ffb7[_0x520479(0xde)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x13ffb7['id']+']\x20**'+_0x191049+_0x520479(0x145)+_0x453ab2+'):\x20\x22'+_0x13ffb7[_0x520479(0xd6)]+'\x22'+_0x4d7f55;})['join']('\x0a');_0x3d51be=_0x3653a9(0xca)+_0x4d18ee;}const _0x7b7d65=_0x479a6b?.[_0x3653a9(0xc8)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x479a6b['canonicalFlow']:'',_0x5bde57=_0x1f40f9?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x59adfe+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x5270fe+_0x3653a9(0x104),_0x218a17=_0x5270fe?_0x2d6ad9['aMRIr'](quoteShellArg,_0x5270fe):'',_0x1c9c4b=_0x1f40f9?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x4ac20b+'\x20open`,\x20then\x20`'+_0x4ac20b+_0x3653a9(0x10f)+_0x4ac20b+_0x3653a9(0x12c)+_0x4d794a+_0x3653a9(0x124)+_0x4ac20b+'\x20snapshot\x20--filename\x20'+_0x3f66cf+'`\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`'+_0x4ac20b+'\x20screenshot\x20--filename\x20'+_0x996eae+_0x3653a9(0x115)+_0x4ac20b+_0x3653a9(0xf6):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x4ac20b+'\x20open\x20'+_0x218a17+'`,\x20then\x20`'+_0x4ac20b+'\x20tracing-start`,\x20then\x20`'+_0x4ac20b+_0x3653a9(0x12c)+_0x4d794a+_0x3653a9(0x124)+_0x4ac20b+_0x3653a9(0x11a)+_0x3f66cf+'`\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`'+_0x4ac20b+_0x3653a9(0x13f)+_0x996eae+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x4ac20b+'\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',_0x21634c=_0x1f40f9?_0x3653a9(0xee):_0x3653a9(0x141),_0x353b44=_0x352697?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x352697+'\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.':'';return _0x3653a9(0x114)+_0x154361['description']+_0x41c4d4+_0x3d51be+_0x7b7d65+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x1fd58d+'\x0a\x0a'+_0x5bde57+_0x353b44+'\x0a\x0a'+_0x1c9c4b+_0x3653a9(0xce)+_0x4ac20b+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x4d794a+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x509319+'`\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'+_0x13a126+'`\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`'+_0x4d794a+_0x3653a9(0x109)+_0x167060+'\x22,\x20\x22'+_0x2d6ad9[_0x3653a9(0x12e)](buildCliArtifactPath,_0x4d794a,_0x3653a9(0xfc))+'\x22,\x20\x22'+_0x2d6ad9['CnNRT'](buildCliArtifactPath,_0x4d794a,_0x2d6ad9['UROar'])+_0x3653a9(0xec)+buildCliArtifactPath(_0x4d794a,'key_04_success-state.png')+'\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'+_0x21634c+'\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(_0x3da793){const _0x713b36=_0x51cd,_0x71cd26={'rnApi':function(_0x56a245,_0x496091){return _0x56a245===_0x496091;}},_0x103752=[..._0x3da793[_0x713b36(0xf7)]()][_0x713b36(0x13b)]();let _0x33a5d6=0x0;for(const _0x571c8e of _0x3da793['values']()){_0x33a5d6+=_0x571c8e;}return{'cliCommandCount':_0x33a5d6,'cliCommandsSeen':_0x103752,'noCliCommandsCalled':_0x71cd26[_0x713b36(0x136)](_0x33a5d6,0x0)};}export function createVerifyFeatureCliHooks(_0x21558e){const _0x1d0654=_0x51cd,_0x50ea8c={'VjIre':function(_0x5e9d43,_0x3eba93){return _0x5e9d43!==_0x3eba93;},'ZsJQw':function(_0x4f5107,_0x4e57e3){return _0x4f5107(_0x4e57e3);},'qPHpD':_0x1d0654(0xf2),'Utuxf':_0x1d0654(0xd4),'OosNn':function(_0x42be25,_0x2ad142){return _0x42be25!==_0x2ad142;},'NGICr':_0x1d0654(0x125),'WDkvC':function(_0x2ac823,_0x27d422,_0x226068,_0xd3dd83){return _0x2ac823(_0x27d422,_0x226068,_0xd3dd83);},'grJHd':_0x1d0654(0x13c),'wZLzq':function(_0x482048,_0x4d1367){return _0x482048!==_0x4d1367;},'rRvUF':_0x1d0654(0x11b),'nYIvL':'tool_failure'},_0x13827f=new Map(),_0x53a11d=async _0x3aa09d=>{const _0x3c87da=_0x1d0654;if(_0x50ea8c[_0x3c87da(0xe0)](_0x3aa09d[_0x3c87da(0x147)],'PostToolUse'))return{};const _0xeca8d6=_0x3aa09d;if(_0xeca8d6[_0x3c87da(0x143)]!=='Bash')return{};const _0x34000d=_0xeca8d6[_0x3c87da(0x139)],_0x53c072=extractBashCommand(_0x34000d);if(!_0x53c072)return{};const _0x1a091a=_0x50ea8c[_0x3c87da(0xd2)](parsePlaywrightCliCommand,_0x53c072);if(!_0x1a091a)return{};return _0x13827f[_0x3c87da(0x131)](_0x1a091a,(_0x13827f[_0x3c87da(0xea)](_0x1a091a)||0x0)+0x1),_0x21558e['trackPhaseStart'](_0x50ea8c['qPHpD'],{'transport':_0x3c87da(0xd4),'toolName':_0x1a091a}),_0x21558e[_0x3c87da(0x149)](_0x3c87da(0xf2),{'transport':_0x50ea8c['Utuxf'],'toolName':_0x1a091a,'bashCommandPreview':_0x50ea8c[_0x3c87da(0xd2)](truncatePreview,_0x53c072)}),_0x50ea8c[_0x3c87da(0xe8)](_0x1a091a,_0x50ea8c['NGICr'])&&console[_0x3c87da(0x113)](_0x50ea8c['WDkvC'](formatPlaywrightCliConsoleLogMessage,_0x34000d,_0x53c072,_0x1a091a)),{};},_0x3c5a46=async _0x56c1c2=>{const _0x4a4237=_0x1d0654;if(_0x50ea8c[_0x4a4237(0xe8)](_0x56c1c2[_0x4a4237(0x147)],_0x50ea8c[_0x4a4237(0x144)]))return{};const _0x5d47da=_0x56c1c2;if(_0x50ea8c[_0x4a4237(0x110)](_0x5d47da['tool_name'],_0x50ea8c[_0x4a4237(0xf3)]))return{};return await _0x21558e[_0x4a4237(0x130)](_0x50ea8c['nYIvL'],_0x5d47da[_0x4a4237(0x118)],{'transport':_0x4a4237(0xd4),'toolName':'Bash'}),{};};return{'postToolUseHook':_0x53a11d,'postToolUseFailureHook':_0x3c5a46,'commandCounts':_0x13827f};}async function runPlaywrightCliLifecycleCommand(_0x3d1110){const _0x1cc7a9=_0x51cd,_0x4d4b56={'CRcaI':function(_0x3b8186,_0x3d334d){return _0x3b8186(_0x3d334d);},'skWyi':function(_0x58ee58,_0x681b78){return _0x58ee58??_0x681b78;}},{sessionId:_0x18f733,configPath:_0xf688ef,commandArgs:_0x480119,env:_0x2f74f8,telemetry:_0x107545,phase:_0x20e713,metadata:_0x5121bb,timeoutMs:_0x309774}=_0x3d1110;_0x107545['trackPhaseStart'](_0x20e713,_0x5121bb);try{const _0x1d3083=await _0x4d4b56['CRcaI'](runPlaywrightCliCommand,{'sessionId':_0x18f733,'configPath':_0xf688ef,'commandArgs':_0x480119,'cwd':process[_0x1cc7a9(0xfa)](),'env':_0x2f74f8,'timeoutMs':_0x4d4b56[_0x1cc7a9(0xd1)](_0x309774,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x107545[_0x1cc7a9(0x149)](_0x20e713,{..._0x5121bb,'subcommand':_0x1d3083[_0x1cc7a9(0x10c)][_0x1cc7a9(0x107)],'stdoutPreview':truncatePreview(_0x1d3083[_0x1cc7a9(0x11c)],0x7d0),'stderrPreview':truncatePreview(_0x1d3083['stderr'],0x7d0)});}catch(_0x136544){await _0x107545['trackPhaseError'](_0x20e713,_0x136544,_0x5121bb);throw _0x136544;}}export async function finalizeVerifyFeatureCliSession(_0x1c7fd5){const _0x18f3a5=_0x51cd,_0x2223c0={'xwBVV':'playwright_cli_tracing_stop','lenNE':_0x18f3a5(0xe1),'BSoSf':function(_0x28672f,_0x547c0f){return _0x28672f(_0x547c0f);}},{telemetry:_0x3e09ba,sessionId:_0x4498a4,configPath:_0x57931d,cliArtifactDir:_0x4e1c4e,env:_0x457613,transportMetadata:_0x4505b7}=_0x1c7fd5,_0x1a78be=[{'phase':_0x2223c0['xwBVV'],'commandArgs':[_0x2223c0[_0x18f3a5(0xd0)]]},{'phase':_0x18f3a5(0x10e),'commandArgs':['video-stop','--filename='+buildCliArtifactPath(_0x4e1c4e,'session-recording.webm')]},{'phase':_0x18f3a5(0x129),'commandArgs':['close']}];for(const _0x559ae9 of _0x1a78be){try{await _0x2223c0['BSoSf'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x4498a4,'configPath':_0x57931d,'commandArgs':[..._0x559ae9['commandArgs']],'env':_0x457613,'telemetry':_0x3e09ba,'phase':_0x559ae9[_0x18f3a5(0x102)],'metadata':_0x4505b7});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x421c90){const _0x3d5e43=_0x51cd,_0x3666f1={'CunWP':'trace.trace.zip','ORJiw':function(_0x357dc9,_0x482041,_0x556fe6){return _0x357dc9(_0x482041,_0x556fe6);}},_0x121b11=[_0x3d5e43(0x13a),_0x3666f1['CunWP']];for(const _0x1383f6 of _0x121b11){const _0x39beb6=_0x3666f1[_0x3d5e43(0xcf)](join,_0x421c90,_0x1383f6);try{return{'buffer':await readFile(_0x39beb6),'source':_0x39beb6};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x5e7de0){const _0x152155=_0x51cd,_0x419ad6={'ArwjP':function(_0x56da90,_0x2dab24,_0x3c8519){return _0x56da90(_0x2dab24,_0x3c8519);},'Dcwcg':function(_0x266878,_0x6666d9,_0x5ed845){return _0x266878(_0x6666d9,_0x5ed845);},'XWRCW':function(_0x4fb1af,_0x3f9c0){return _0x4fb1af+_0x3f9c0;},'eXVcl':function(_0x24beb7,_0x4c0de5){return _0x24beb7===_0x4c0de5;},'QgfOA':function(_0x5937a4,_0x430921,_0x1fefa2){return _0x5937a4(_0x430921,_0x1fefa2);}},{cwd:_0x4f6c19,cliArtifactDir:_0x543d73,startTime:_0x5979d9}=_0x5e7de0,_0x1bd3f6=[];await mkdir(_0x543d73,{'recursive':!![]});const _0x53c473=await _0x419ad6['ArwjP'](readdir,_0x4f6c19,{'withFileTypes':!![]});for(const _0x435017 of _0x53c473){if(!_0x435017['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x152155(0x112)](_0x435017[_0x152155(0x121)]))continue;const _0xeb0ae8=_0x419ad6['Dcwcg'](join,_0x4f6c19,_0x435017[_0x152155(0x121)]),_0x1a3b47=await stat(_0xeb0ae8);if(_0x419ad6[_0x152155(0x12d)](_0x1a3b47['mtimeMs'],0x7d0)<_0x5979d9)continue;const _0x1312b5=buildCliArtifactPath(_0x543d73,_0x435017[_0x152155(0x121)]);if(_0x419ad6['eXVcl'](_0xeb0ae8,_0x1312b5))continue;await _0x419ad6[_0x152155(0x122)](rename,_0xeb0ae8,_0x1312b5),_0x1bd3f6[_0x152155(0x10a)](_0x435017['name']);}return _0x1bd3f6[_0x152155(0x13b)]();}function _0x304c(){const _0x81cb64=['phase','[playwright-cli]\x20','\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','capture\x20key\x20step\x20`','(?:^|\x5cs)','subcommand','Reviewer','`:\x20\x22','push','lcYbd','invocation','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','playwright_cli_video_stop','\x20tracing-start`,\x20then\x20`','wZLzq','01_initial-state.png','test','log','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','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','length','slice','error','tZIUt','\x20snapshot\x20--filename\x20','Bash','stdout','usuPo','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','93BfJikp','stop\x20video\x20recording','name','QgfOA','LdSvs','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','snapshot','1284404EbvlDk','YjfII','FrfPN','playwright_cli_close','\x20>\x20','check\x20','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','XWRCW','CBoYh','string','trackPhaseError','set','3081290guFelS','7lUDevE','video-stop','\x0a\x0a##\x20Additional\x20Notes\x0a','rnApi','29512SMYYtI','[ranger-verification-agent]\x20','tool_input','trace.zip','sort','PostToolUseFailure','4638660spTQCC','key_03_success-state.png','\x20screenshot\x20--filename\x20','target','\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.','03_learn-more.png','tool_name','grJHd','**\x20(','\x0a\x0a1.\x20Run\x20`','hook_event_name','...','trackPhaseEnd','2328744hXpDEZ','en-US','01_mozilla-homepage.png','canonicalFlow','DToYi','\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','YHVHU','1ctRvrQ','start\x20video\x20recording','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','ORJiw','lenNE','skWyi','ZsJQw','bqepN','playwright-cli','check','content','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','AEOlJ','ref\x20','split','fill\x20','unaddressedComments','jApFH','domRef','screenshot','VjIre','tracing-stop','cCrVJ','iDfGH','toLocaleDateString','8499880fXbapq','qQCHm','open\x20','OosNn','capture\x20step\x20`','get','pop','\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','tZVhS','\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.','start\x20tracing','stringify','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','tool_call','rRvUF','249264QrdiGG','press','\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','keys','`\x0a9.\x20Run\x20`','02_learn-more.yml','cwd','>\x20\x22','02_button-clicked.png','tab-new','run-code','match','replace','open\x20new\x20tab'];_0x304c=function(){return _0x81cb64;};return _0x304c();}
|
|
1
|
+
(function(_0x5a4b6d,_0x47e3f3){const _0x2c4d40=_0xacff,_0x478bcb=_0x5a4b6d();while(!![]){try{const _0x13e068=parseInt(_0x2c4d40(0x1d2))/0x1*(-parseInt(_0x2c4d40(0x217))/0x2)+parseInt(_0x2c4d40(0x21f))/0x3+parseInt(_0x2c4d40(0x1de))/0x4*(-parseInt(_0x2c4d40(0x1e5))/0x5)+-parseInt(_0x2c4d40(0x1cb))/0x6+parseInt(_0x2c4d40(0x196))/0x7*(-parseInt(_0x2c4d40(0x1fc))/0x8)+-parseInt(_0x2c4d40(0x1e9))/0x9+parseInt(_0x2c4d40(0x1bd))/0xa;if(_0x13e068===_0x47e3f3)break;else _0x478bcb['push'](_0x478bcb['shift']());}catch(_0x596350){_0x478bcb['push'](_0x478bcb['shift']());}}}(_0x136c,0x7115a));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(_0x4651ff,_0x37014d=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0xdf42c0=_0xacff,_0x3a125a={'iFXyT':function(_0x4a8ff1,_0x22cd2d){return _0x4a8ff1>_0x22cd2d;},'HDhrP':_0xdf42c0(0x1ae)};return _0x3a125a[_0xdf42c0(0x20c)](_0x4651ff[_0xdf42c0(0x1cd)],_0x37014d)?_0x4651ff['slice'](0x0,_0x37014d)+_0x3a125a['HDhrP']:_0x4651ff;}function buildCliArtifactPath(_0x22506f,_0x2b1df2){const _0x4235f6={'AYAOS':function(_0x1b6988,_0x1f95db,_0x4ea742){return _0x1b6988(_0x1f95db,_0x4ea742);}};return _0x4235f6['AYAOS'](join,_0x22506f,_0x2b1df2);}function _0x136c(){const _0x5cc2a0=['\x0a\x0a-\x20Each\x20actor\x20has\x20its\x20OWN\x20artifact\x20directory\x20—\x20save\x20each\x20actor\x27s\x20screenshots\x20under\x20that\x20actor\x27s\x20directory\x20shown\x20above;\x20do\x20NOT\x20write\x20one\x20actor\x27s\x20screenshots\x20into\x20another\x20actor\x27s\x20directory.\x0a-\x20Switch\x20actors\x20as\x20the\x20scenario\x20dictates\x20(','zPZDF','push','createdAt','00_mozilla-homepage.yml','\x0a\x0a##\x20Multiple\x20Actors\x20—\x20one\x20live\x20browser\x20session\x20each\x0aRun\x20every\x20browser\x20command\x20with\x20the\x20prefix\x20for\x20the\x20actor\x20named\x20in\x20the\x20step.\x20Each\x20actor\x20is\x20a\x20separate,\x20independent\x20browser\x20session\x20(its\x20own\x20login,\x20cookies,\x20and\x20storage)\x20—\x20the\x20same\x20prefix\x20always\x20drives\x20the\x20same\x20actor\x27s\x20session.\x0a\x0a','\x20open\x20','string','119OKPIGf','check\x20','OnCLX','ZWtfP','trackPhaseStart','cwd','\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.','\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','run-code','\x22,\x20\x22','mPoNe','keys','FCDxy','xYoWH','authorName','start\x20video\x20recording','-\x20As\x20','aeCio','\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','cNcOa','>\x20\x22','snapshot','domRef',',\x20…\x20\x20→\x20\x20`','...','toLocaleDateString','--filename=','notes','`,\x20then\x20`','CDuWg','subcommand','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','\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','03_learn-more.png',']\x20**','[ranger-verification-agent]\x20','fuAyL','short','):\x20\x22','30082620ScdNCL','canonicalFlow','`\x20(e.g.\x20`','stdout','trackPhaseEnd','):\x20pick\x20the\x20prefix\x20whose\x20label\x20matches\x20the\x20step\x27s\x20actor.\x0a-\x20The\x20prefix\x20shown\x20in\x20\x22Browser\x20Command\x20Reference\x22\x20above\x20drives\x20','label','check','invocation','rgUST','TueIL','tool_input','VVbfy','select\x20tab\x20','4612620jaODUI','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','length','ExGrd','aLftU','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','01_initial-state.png','461473wXTkqZ','Bash','\x20>\x20','cgvfR','get','log','PostToolUse','HlycG','env','tool_call','join','DOFCd','60276MpClYM','pfwHm','sGAlf','select\x20tab','capture\x20screenshot','\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.','actorPrefixes','300casJoj','slice','capture\x20snapshot\x20`','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','3384990xhZghU','OKCtY','lOLRw','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','hfdlR','kAmbU','trace.zip','the\x20primary\x20actor','start\x20tracing','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','video-start','tool_failure','hMpQl','bjtlb','playwright-cli','\x20(on\x20element:\x20<','NGTSB','click','sort','188120vkzJjw','values','match','map','tool_name','\x20screenshot\x20--filename\x20','isFile','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','ref\x20','\x5c$&','JoSMC','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','run\x20custom\x20Playwright\x20code','`\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`','description','artifactDir','iFXyT','hook_event_name','open\x20new\x20tab\x20','MdSiJ','`\x20<subcommand>\x20…\x20\x20and\x20save\x20this\x20actor\x27s\x20screenshots/snapshots\x20UNDER\x20`','(?:^|\x5cs)','open','\x20snapshot\x20--filename\x20','MFAWE','\x22As\x20','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','4ZozGLU','kPHJl','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','DEBUG','element','stringify','`\x0a9.\x20Run\x20`','selector','2479959XuoxUu','ZwqDc','MDJXw',',\x20…\x22','RGAHo','playwright_cli_video_stop','split','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','test','yijHB','playwright_cli_close','MGGSk','capture\x20key\x20step\x20`','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','ePwBP','\x20open`,\x20then\x20`','open\x20new\x20tab','replace'];_0x136c=function(){return _0x5cc2a0;};return _0x136c();}function toStepDisplayName(_0x5bd25b){const _0x3ffa3f=_0xacff,_0x5cf1cd={'HlycG':function(_0x2263b9,_0x19c81f){return _0x2263b9(_0x19c81f);}},_0x25671d=basename(_0x5bd25b)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x25671d,'isKeyStep':/^key_/i[_0x3ffa3f(0x227)](_0x5cf1cd[_0x3ffa3f(0x1d9)](basename,_0x5bd25b))};}function _0xacff(_0x4c6dec,_0x514f57){_0x4c6dec=_0x4c6dec-0x187;const _0x136ca8=_0x136c();let _0xacffbd=_0x136ca8[_0x4c6dec];return _0xacffbd;}function extractShellValue(_0x326450){if(!_0x326450)return null;return _0x326450[0x1]??_0x326450[0x2]??_0x326450[0x3]??null;}function extractFilenameOption(_0x3e7e38){const _0x1a1099=_0xacff,_0xdc56f0={'kPHJl':function(_0x403c05,_0xbb70a5){return _0x403c05(_0xbb70a5);}};return _0xdc56f0[_0x1a1099(0x218)](extractShellValue,_0x3e7e38[_0x1a1099(0x1fe)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x1a9dc6,_0x46ecf6){const _0x2d9554=_0xacff,_0x3e9634=_0x46ecf6['replace'](/[.*+?^${}()|[\]\\]/g,_0x2d9554(0x205));return extractShellValue(_0x1a9dc6['match'](new RegExp(_0x2d9554(0x211)+_0x3e9634+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x224071){const _0x24e07c=_0xacff,_0xa76cdd={'CxeoD':function(_0x2756c3,_0x4b1572,_0x2d34a6){return _0x2756c3(_0x4b1572,_0x2d34a6);}};if(!_0x224071)return'target';if(/^e\d+$/i[_0x24e07c(0x227)](_0x224071))return _0x24e07c(0x204)+_0x224071;return JSON[_0x24e07c(0x21c)](_0xa76cdd['CxeoD'](truncatePreview,_0x224071,0x78));}function formatPlaywrightCliLog(_0x476186,_0x1b24a7){const _0x5172d5=_0xacff,_0x28ed11={'hfdlR':_0x5172d5(0x212),'NGTSB':'open\x20browser','KuyVW':'tracing-start','fuAyL':'tracing-stop','NSMsx':'video-stop','cgvfR':'stop\x20video\x20recording','FCDxy':_0x5172d5(0x1ab),'MDJXw':function(_0x4070de,_0x1e126c){return _0x4070de(_0x1e126c);},'pfwHm':function(_0x132698,_0x522e15){return _0x132698(_0x522e15);},'hMpQl':_0x5172d5(0x1fa),'yTIPt':function(_0x1faa56,_0x482926,_0x3779d7){return _0x1faa56(_0x482926,_0x3779d7);},'VVbfy':function(_0x59517d,_0xcdb24c,_0x3cf161){return _0x59517d(_0xcdb24c,_0x3cf161);},'TueIL':'press','JoSMC':function(_0xf2e743,_0x3adeab){return _0xf2e743(_0x3adeab);},'tyVEZ':_0x5172d5(0x19e),'MGGSk':_0x5172d5(0x208),'khRbI':'tab-new','GvNgo':function(_0x2aaa7e,_0x110bf3,_0x58717e){return _0x2aaa7e(_0x110bf3,_0x58717e);},'ePwBP':_0x5172d5(0x18c),'OnCLX':'tab-select'};switch(_0x1b24a7){case _0x28ed11[_0x5172d5(0x1ed)]:{const _0x59014b=extractFirstCommandArgument(_0x476186,_0x1b24a7);return _0x59014b?'open\x20'+_0x59014b:_0x28ed11[_0x5172d5(0x1f9)];}case _0x28ed11['KuyVW']:return _0x5172d5(0x1f1);case _0x28ed11[_0x5172d5(0x1ba)]:return'stop\x20tracing';case _0x5172d5(0x1f3):return _0x5172d5(0x1a5);case _0x28ed11['NSMsx']:return _0x28ed11[_0x5172d5(0x1d5)];case _0x28ed11[_0x5172d5(0x1a2)]:{const _0x372d5a=_0x28ed11[_0x5172d5(0x221)](extractFilenameOption,_0x476186);if(!_0x372d5a)return'capture\x20snapshot';const {name:_0xd9b2e3}=_0x28ed11['pfwHm'](toStepDisplayName,_0x372d5a);return _0x5172d5(0x1e7)+_0xd9b2e3+'`';}case'screenshot':{const _0x35d7e7=extractFilenameOption(_0x476186);if(!_0x35d7e7)return _0x5172d5(0x1e2);const {name:_0x1d077e,isKeyStep:_0x34dfd}=_0x28ed11['MDJXw'](toStepDisplayName,_0x35d7e7);return _0x34dfd?_0x5172d5(0x188)+_0x1d077e+'`':'capture\x20step\x20`'+_0x1d077e+'`';}case _0x28ed11[_0x5172d5(0x1f5)]:return'click\x20'+formatCommandTarget(_0x28ed11['yTIPt'](extractFirstCommandArgument,_0x476186,_0x1b24a7));case _0x5172d5(0x1c4):return _0x5172d5(0x197)+formatCommandTarget(_0x28ed11[_0x5172d5(0x1c9)](extractFirstCommandArgument,_0x476186,_0x1b24a7));case'fill':return'fill\x20'+_0x28ed11[_0x5172d5(0x1df)](formatCommandTarget,extractFirstCommandArgument(_0x476186,_0x1b24a7));case _0x28ed11[_0x5172d5(0x1c7)]:return'press\x20'+_0x28ed11[_0x5172d5(0x206)](formatCommandTarget,_0x28ed11['yTIPt'](extractFirstCommandArgument,_0x476186,_0x1b24a7));case _0x28ed11['tyVEZ']:return _0x28ed11[_0x5172d5(0x187)];case _0x28ed11['khRbI']:{const _0xdd47f6=_0x28ed11['GvNgo'](extractFirstCommandArgument,_0x476186,_0x1b24a7);return _0xdd47f6?_0x5172d5(0x20e)+_0xdd47f6:_0x28ed11[_0x5172d5(0x18a)];}case _0x28ed11[_0x5172d5(0x198)]:{const _0x408a6b=extractFirstCommandArgument(_0x476186,_0x1b24a7);return _0x408a6b?_0x5172d5(0x1ca)+_0x408a6b:_0x5172d5(0x1e1);}default:return _0x1b24a7;}}function extractPlaywrightCliToolDescription(_0x5a51e4){const _0x3f8323=_0xacff,_0x2fc9f4={'DOFCd':function(_0x235b63,_0x576e2d){return _0x235b63!==_0x576e2d;},'cNcOa':_0x3f8323(0x195)},_0x1d9aa5=_0x5a51e4[_0x3f8323(0x20a)];if(_0x2fc9f4[_0x3f8323(0x1dd)](typeof _0x1d9aa5,_0x2fc9f4[_0x3f8323(0x1a9)]))return null;const _0x872168=_0x1d9aa5['trim']()[_0x3f8323(0x18d)](/\s+/g,'\x20');return _0x872168['length']>0x0?_0x872168:null;}export function formatPlaywrightCliConsoleLogMessage(_0x257483,_0xb8c7b6,_0xd622bd){const _0x2ce058=_0xacff,_0x2fb60f={'rgUST':function(_0x2584cc,_0x1aa058,_0x497097){return _0x2584cc(_0x1aa058,_0x497097);}},_0xed6474=_0x2fb60f[_0x2ce058(0x1c6)](formatPlaywrightCliLog,_0xb8c7b6,_0xd622bd),_0x12aa9c=extractPlaywrightCliToolDescription(_0x257483);if(!_0x12aa9c)return'[playwright-cli]\x20'+_0xed6474;if(process[_0x2ce058(0x1da)][_0x2ce058(0x21a)])return'[ranger-verification-agent]\x20'+_0x12aa9c+'\x20('+_0xed6474+')';return _0x2ce058(0x1b9)+_0x12aa9c;}export function buildVerifyFeatureCliDebugPrompt(_0x260c89,_0x4e128e){const _0x2682aa=_0xacff,_0x432b95={'EPxeh':function(_0x32f129,_0x2e2a1b,_0x5af714){return _0x32f129(_0x2e2a1b,_0x5af714);},'XuNQT':'01_mozilla-homepage.png','MFAWE':function(_0xe9b82f,_0xf00a7b){return _0xe9b82f(_0xf00a7b);},'hMgNl':function(_0x349386,_0x256aa9){return _0x349386(_0x256aa9);},'rlMxc':function(_0x3a7220,_0x5b5a78){return _0x3a7220(_0x5b5a78);}},_0x19a0bd=_0x432b95['EPxeh'](buildCliArtifactPath,_0x4e128e,_0x2682aa(0x192)),_0xc283f8=buildCliArtifactPath(_0x4e128e,_0x432b95['XuNQT']),_0x121d9c=buildCliArtifactPath(_0x4e128e,'02_learn-more.yml'),_0x3e9e39=buildCliArtifactPath(_0x4e128e,_0x2682aa(0x1b7)),_0x2cc289=_0x432b95[_0x2682aa(0x214)](quoteShellArg,_0x19a0bd),_0x28e607=_0x432b95['hMgNl'](quoteShellArg,_0xc283f8),_0xf5071a=quoteShellArg(_0x121d9c),_0x35ca48=_0x432b95['rlMxc'](quoteShellArg,_0x3e9e39);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x260c89+'\x0a\x0a1.\x20Run\x20`'+_0x260c89+_0x2682aa(0x1cc)+_0x260c89+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x260c89+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4e128e+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x260c89+'\x20snapshot\x20--filename\x20'+_0x2cc289+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x260c89+'\x20screenshot\x20--filename\x20'+_0x28e607+_0x2682aa(0x226)+_0x260c89+'\x20snapshot\x20--filename\x20'+_0xf5071a+_0x2682aa(0x21d)+_0x260c89+_0x2682aa(0x201)+_0x35ca48+_0x2682aa(0x1e8);}export function buildVerifyFeatureCliPrompt(_0x290d6b){const _0x4b9295=_0xacff,_0x43d18f={'uxRZu':_0x4b9295(0x1bb),'LNmCl':_0x4b9295(0x1d4),'RiblY':_0x4b9295(0x21b),'qBTgH':'01_initial.yml','CDuWg':function(_0x119e80,_0x3aa074,_0x3b0d47){return _0x119e80(_0x3aa074,_0x3b0d47);},'sGAlf':_0x4b9295(0x1d1),'mPoNe':function(_0x19fc1c,_0x4495b7){return _0x19fc1c(_0x4495b7);},'OKCtY':function(_0x5c7e01,_0x36f7db){return _0x5c7e01(_0x36f7db);},'uMSce':_0x4b9295(0x1f0),'ZwqDc':'key_04_success-state.png'},{checklistItem:_0x53b8d7,itemFeedback:_0x193194,taskDescription:_0x2ef701,cliCommandPrefix:_0x4e6398,cliArtifactDir:_0x2c7074,isCdpMode:_0x3f89a9,url:_0x341646,cdpEndpoint:_0x5b7319,loginInstructions:_0x1b665b}=_0x290d6b,_0x5a9064=buildCliArtifactPath(_0x2c7074,_0x43d18f['qBTgH']),_0x3c606d=buildCliArtifactPath(_0x2c7074,'02_state.yml'),_0x234bfa=_0x43d18f[_0x4b9295(0x1b3)](buildCliArtifactPath,_0x2c7074,'key_03_success-state.png'),_0x152b5d=_0x43d18f[_0x4b9295(0x1b3)](buildCliArtifactPath,_0x2c7074,_0x43d18f[_0x4b9295(0x1e0)]),_0x281dc4=_0x43d18f[_0x4b9295(0x1a0)](quoteShellArg,_0x5a9064),_0x10d66e=quoteShellArg(_0x3c606d),_0x11407b=_0x43d18f[_0x4b9295(0x1ea)](quoteShellArg,_0x234bfa),_0x35585a=quoteShellArg(_0x152b5d),_0x187502=_0x53b8d7[_0x4b9295(0x1b1)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x53b8d7[_0x4b9295(0x1b1)]:'';let _0x1a1748='';if(_0x193194&&_0x193194['unaddressedComments'][_0x4b9295(0x1cd)]>0x0){const _0x4fd8eb=_0x193194['unaddressedComments']['map'](_0x202d03=>{const _0x381754=_0x4b9295,_0x5c52fe=new Date(_0x202d03[_0x381754(0x191)])[_0x381754(0x1af)]('en-US',{'month':_0x43d18f['uxRZu'],'day':'numeric'}),_0x5ae363=_0x202d03[_0x381754(0x1a4)]||_0x202d03['authorEmail']||'Reviewer',_0x54f682=_0x202d03['domRef']?_0x381754(0x1f8)+(_0x202d03[_0x381754(0x1ac)][_0x381754(0x21e)]['split'](_0x43d18f['LNmCl'])['pop']()?.[_0x381754(0x225)](':')[0x0]||_0x43d18f['RiblY'])+_0x381754(0x1aa)+(_0x202d03['domRef']['textContent']||'')[_0x381754(0x1e6)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x202d03['id']+_0x381754(0x1b8)+_0x5ae363+'**\x20('+_0x5c52fe+_0x381754(0x1bc)+_0x202d03['content']+'\x22'+_0x54f682;})[_0x4b9295(0x1dc)]('\x0a');_0x1a1748='\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'+_0x4fd8eb;}const _0x215436=_0x193194?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x193194[_0x4b9295(0x1be)]:'',_0x1a173c=_0x3f89a9?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x5b7319+_0x4b9295(0x189):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x341646+_0x4b9295(0x1b6),_0xd83179=_0x341646?quoteShellArg(_0x341646):'',_0x495307=_0x3f89a9?_0x4b9295(0x219)+_0x4e6398+_0x4b9295(0x18b)+_0x4e6398+'\x20tracing-start`,\x20then\x20`'+_0x4e6398+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2c7074+_0x4b9295(0x1b5)+_0x4e6398+_0x4b9295(0x213)+_0x281dc4+'`\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`'+_0x4e6398+_0x4b9295(0x201)+_0x35585a+_0x4b9295(0x203)+_0x4e6398+_0x4b9295(0x1a8):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x4e6398+_0x4b9295(0x194)+_0xd83179+_0x4b9295(0x1b2)+_0x4e6398+'\x20tracing-start`,\x20then\x20`'+_0x4e6398+_0x4b9295(0x207)+_0x2c7074+_0x4b9295(0x1b5)+_0x4e6398+_0x4b9295(0x213)+_0x281dc4+_0x4b9295(0x209)+_0x4e6398+_0x4b9295(0x201)+_0x35585a+_0x4b9295(0x1ec)+_0x4e6398+'\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',_0x2baf69=_0x3f89a9?_0x4b9295(0x19c):'\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.',_0x799ebf=_0x1b665b?_0x4b9295(0x216)+_0x1b665b+'\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.':'',_0x18a3a1=_0x290d6b['actorPrefixes']&&_0x290d6b[_0x4b9295(0x1e4)][_0x4b9295(0x1cd)]>=0x2?_0x4b9295(0x193)+_0x290d6b['actorPrefixes']['map'](_0x2c242e=>_0x4b9295(0x1a6)+_0x2c242e['label']+_0x4b9295(0x1ad)+_0x2c242e['prefix']+_0x4b9295(0x210)+_0x2c242e['artifactDir']+_0x4b9295(0x1bf)+_0x2c242e['prefix']+_0x4b9295(0x201)+_0x2c242e[_0x4b9295(0x20b)]+'/01_state.png`).')['join']('\x0a')+_0x4b9295(0x18e)+_0x290d6b['actorPrefixes'][_0x4b9295(0x1ff)](_0x455201=>_0x4b9295(0x215)+_0x455201['label']+_0x4b9295(0x222))[_0x4b9295(0x1dc)]('\x20/\x20')+_0x4b9295(0x1c2)+(_0x290d6b[_0x4b9295(0x1e4)][0x0]?.[_0x4b9295(0x1c3)]??_0x43d18f['uMSce'])+'\x20(the\x20primary\x20actor).\x0a-\x20You\x20may\x20still\x20run\x20`tracing-start`\x20/\x20`video-start`\x20once\x20per\x20actor\x20session,\x20exactly\x20as\x20you\x20do\x20for\x20the\x20single\x20prefix.\x0a-\x20Do\x20NOT\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`\x20for\x20any\x20actor;\x20the\x20host\x20finalizes\x20every\x20actor\x27s\x20session\x20and\x20artifacts.':'';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'+_0x53b8d7[_0x4b9295(0x20a)]+_0x187502+_0x1a1748+_0x215436+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x2ef701+'\x0a\x0a'+_0x1a173c+_0x799ebf+'\x0a\x0a'+_0x495307+_0x4b9295(0x1f2)+_0x4e6398+_0x4b9295(0x1d0)+_0x2c7074+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x10d66e+'`\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'+_0x11407b+'`\x0a-\x20`run-code\x20\x22await\x20page.waitForTimeout(1000)\x22`\x20for\x20waits\x20or\x20small\x20custom\x20checks'+_0x18a3a1+'\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`'+_0x2c7074+'`:\x20\x22'+_0x152b5d+_0x4b9295(0x19f)+_0x43d18f[_0x4b9295(0x1b3)](buildCliArtifactPath,_0x2c7074,'02_button-clicked.png')+'\x22,\x20\x22'+buildCliArtifactPath(_0x2c7074,'03_result-visible.png')+'\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'+buildCliArtifactPath(_0x2c7074,_0x43d18f[_0x4b9295(0x220)])+_0x4b9295(0x19d)+_0x2baf69+_0x4b9295(0x1e3);}export function summarizeVerifyFeatureCliCommandAvailability(_0x5df14b){const _0x2307fa=_0xacff,_0x342d4a={'aLftU':function(_0x1ec086,_0x57ca0c){return _0x1ec086===_0x57ca0c;}},_0x58486a=[..._0x5df14b[_0x2307fa(0x1a1)]()][_0x2307fa(0x1fb)]();let _0x4d21b9=0x0;for(const _0x2de6fb of _0x5df14b[_0x2307fa(0x1fd)]()){_0x4d21b9+=_0x2de6fb;}return{'cliCommandCount':_0x4d21b9,'cliCommandsSeen':_0x58486a,'noCliCommandsCalled':_0x342d4a[_0x2307fa(0x1cf)](_0x4d21b9,0x0)};}export function createVerifyFeatureCliHooks(_0x4f205c){const _0x7f12b4=_0xacff,_0x133343={'xYoWH':function(_0x3d3bd1,_0x20f81e){return _0x3d3bd1!==_0x20f81e;},'bjtlb':function(_0x2edaa2,_0x46e193){return _0x2edaa2!==_0x46e193;},'lOLRw':_0x7f12b4(0x1d3),'QvVOb':function(_0x17663f,_0x50875d){return _0x17663f(_0x50875d);},'ccULG':function(_0x19b9ad,_0x127789){return _0x19b9ad+_0x127789;},'BziOj':_0x7f12b4(0x1db),'aeCio':'playwright-cli','MdSiJ':function(_0x1fd33b,_0x5e00c1){return _0x1fd33b(_0x5e00c1);},'reEkM':_0x7f12b4(0x1ab),'kAmbU':_0x7f12b4(0x1f4)},_0x2b4e09=new Map(),_0x5d5814=async _0x295648=>{const _0x5e1621=_0x7f12b4;if(_0x133343[_0x5e1621(0x1a3)](_0x295648['hook_event_name'],_0x5e1621(0x1d8)))return{};const _0x1145c8=_0x295648;if(_0x133343['bjtlb'](_0x1145c8[_0x5e1621(0x200)],_0x133343['lOLRw']))return{};const _0x4c6e82=_0x1145c8[_0x5e1621(0x1c8)],_0x37db4d=extractBashCommand(_0x4c6e82);if(!_0x37db4d)return{};const _0x4bd4bf=_0x133343['QvVOb'](parsePlaywrightCliCommand,_0x37db4d);if(!_0x4bd4bf)return{};return _0x2b4e09['set'](_0x4bd4bf,_0x133343['ccULG'](_0x2b4e09[_0x5e1621(0x1d6)](_0x4bd4bf)||0x0,0x1)),_0x4f205c[_0x5e1621(0x19a)](_0x133343['BziOj'],{'transport':_0x133343['aeCio'],'toolName':_0x4bd4bf}),_0x4f205c[_0x5e1621(0x1c1)](_0x133343['BziOj'],{'transport':_0x5e1621(0x1f7),'toolName':_0x4bd4bf,'bashCommandPreview':_0x133343[_0x5e1621(0x20f)](truncatePreview,_0x37db4d)}),_0x4bd4bf!==_0x133343['reEkM']&&console[_0x5e1621(0x1d7)](formatPlaywrightCliConsoleLogMessage(_0x4c6e82,_0x37db4d,_0x4bd4bf)),{};},_0x4b3061=async _0xd96a81=>{const _0x4b6881=_0x7f12b4;if(_0xd96a81[_0x4b6881(0x20d)]!=='PostToolUseFailure')return{};const _0x5eb4b6=_0xd96a81;if(_0x133343[_0x4b6881(0x1f6)](_0x5eb4b6[_0x4b6881(0x200)],_0x133343[_0x4b6881(0x1eb)]))return{};return await _0x4f205c['trackPhaseError'](_0x133343[_0x4b6881(0x1ee)],_0x5eb4b6['error'],{'transport':_0x133343[_0x4b6881(0x1a7)],'toolName':_0x133343['lOLRw']}),{};};return{'postToolUseHook':_0x5d5814,'postToolUseFailureHook':_0x4b3061,'commandCounts':_0x2b4e09};}async function runPlaywrightCliLifecycleCommand(_0xad03a6){const _0xeae6a3=_0xacff,_0x4a92f1={'cqMGZ':function(_0x32e5cd,_0x3d28ff){return _0x32e5cd(_0x3d28ff);},'YufIH':function(_0x30f94a,_0xd0d266){return _0x30f94a??_0xd0d266;},'yijHB':function(_0x36bb5a,_0x2b25e8,_0x43df23){return _0x36bb5a(_0x2b25e8,_0x43df23);}},{sessionId:_0x1c87f6,configPath:_0x574e0f,commandArgs:_0x4e64a9,env:_0x3980f2,telemetry:_0x16689e,phase:_0x14acf6,metadata:_0x34d85a,timeoutMs:_0x4ac429}=_0xad03a6;_0x16689e[_0xeae6a3(0x19a)](_0x14acf6,_0x34d85a);try{const _0x4a33e7=await _0x4a92f1['cqMGZ'](runPlaywrightCliCommand,{'sessionId':_0x1c87f6,'configPath':_0x574e0f,'commandArgs':_0x4e64a9,'cwd':process[_0xeae6a3(0x19b)](),'env':_0x3980f2,'timeoutMs':_0x4a92f1['YufIH'](_0x4ac429,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x16689e[_0xeae6a3(0x1c1)](_0x14acf6,{..._0x34d85a,'subcommand':_0x4a33e7[_0xeae6a3(0x1c5)][_0xeae6a3(0x1b4)],'stdoutPreview':_0x4a92f1[_0xeae6a3(0x228)](truncatePreview,_0x4a33e7[_0xeae6a3(0x1c0)],0x7d0),'stderrPreview':_0x4a92f1['yijHB'](truncatePreview,_0x4a33e7['stderr'],0x7d0)});}catch(_0x53a617){await _0x16689e['trackPhaseError'](_0x14acf6,_0x53a617,_0x34d85a);throw _0x53a617;}}export async function finalizeVerifyFeatureCliSession(_0x488f45){const _0x138aff=_0xacff,_0x19abef={'NPnPX':'playwright_cli_tracing_stop','RGAHo':function(_0x56542c,_0x3b1ea8,_0x3aa4e3){return _0x56542c(_0x3b1ea8,_0x3aa4e3);},'DSvxC':'session-recording.webm','OTApX':_0x138aff(0x229),'WdhFj':'close','ZWtfP':function(_0x4f003a,_0x443363){return _0x4f003a(_0x443363);}},{telemetry:_0x5c53fe,sessionId:_0x2a883e,configPath:_0x48b573,cliArtifactDir:_0x42ef97,env:_0x1d290c,transportMetadata:_0x2caf06}=_0x488f45,_0x5d7946=[{'phase':_0x19abef['NPnPX'],'commandArgs':['tracing-stop']},{'phase':_0x138aff(0x224),'commandArgs':['video-stop',_0x138aff(0x1b0)+_0x19abef[_0x138aff(0x223)](buildCliArtifactPath,_0x42ef97,_0x19abef['DSvxC'])]},{'phase':_0x19abef['OTApX'],'commandArgs':[_0x19abef['WdhFj']]}];for(const _0x2ec2c1 of _0x5d7946){try{await _0x19abef[_0x138aff(0x199)](runPlaywrightCliLifecycleCommand,{'sessionId':_0x2a883e,'configPath':_0x48b573,'commandArgs':[..._0x2ec2c1['commandArgs']],'env':_0x1d290c,'telemetry':_0x5c53fe,'phase':_0x2ec2c1['phase'],'metadata':_0x2caf06});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x5ae01f){const _0x2b174c=_0xacff,_0xaede8c={'fWfNp':_0x2b174c(0x1ef),'qFpec':'trace.trace.zip','zPZDF':function(_0x5f56e8,_0x4a5357){return _0x5f56e8(_0x4a5357);}},_0x1cba24=[_0xaede8c['fWfNp'],_0xaede8c['qFpec']];for(const _0x199970 of _0x1cba24){const _0x4c2540=join(_0x5ae01f,_0x199970);try{return{'buffer':await _0xaede8c[_0x2b174c(0x18f)](readFile,_0x4c2540),'source':_0x4c2540};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x58f55f){const _0x25cb21=_0xacff,_0x312ccb={'bZqGa':function(_0x84d4e9,_0x18040a,_0x2d6405){return _0x84d4e9(_0x18040a,_0x2d6405);},'IzZsH':function(_0x1bc518,_0x23f2f8){return _0x1bc518(_0x23f2f8);},'ExGrd':function(_0xd88f06,_0x3d1b2c){return _0xd88f06===_0x3d1b2c;}},{cwd:_0x9ed7bc,cliArtifactDir:_0x319d30,startTime:_0xf00f6}=_0x58f55f,_0xe4bb1=[];await mkdir(_0x319d30,{'recursive':!![]});const _0x3b23c1=await _0x312ccb['bZqGa'](readdir,_0x9ed7bc,{'withFileTypes':!![]});for(const _0x1e531b of _0x3b23c1){if(!_0x1e531b[_0x25cb21(0x202)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x1e531b['name']))continue;const _0x1b9a23=join(_0x9ed7bc,_0x1e531b['name']),_0x132891=await _0x312ccb['IzZsH'](stat,_0x1b9a23);if(_0x132891['mtimeMs']+0x7d0<_0xf00f6)continue;const _0x5de240=buildCliArtifactPath(_0x319d30,_0x1e531b['name']);if(_0x312ccb[_0x25cb21(0x1ce)](_0x1b9a23,_0x5de240))continue;await _0x312ccb['bZqGa'](rename,_0x1b9a23,_0x5de240),_0xe4bb1[_0x25cb21(0x190)](_0x1e531b['name']);}return _0xe4bb1[_0x25cb21(0x1fb)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x18b8b5=_0x14aa;(function(_0x3ce429,_0x281136){const _0x151edf=_0x14aa,_0x4660c3=_0x3ce429();while(!![]){try{const _0x23f213=-parseInt(_0x151edf(0x140))/0x1+-parseInt(_0x151edf(0x145))/0x2+parseInt(_0x151edf(0x187))/0x3*(-parseInt(_0x151edf(0x18f))/0x4)+parseInt(_0x151edf(0x197))/0x5+parseInt(_0x151edf(0x165))/0x6*(parseInt(_0x151edf(0x1af))/0x7)+-parseInt(_0x151edf(0x1fd))/0x8*(parseInt(_0x151edf(0x155))/0x9)+parseInt(_0x151edf(0x205))/0xa*(parseInt(_0x151edf(0x1f7))/0xb);if(_0x23f213===_0x281136)break;else _0x4660c3['push'](_0x4660c3['shift']());}catch(_0x1657c7){_0x4660c3['push'](_0x4660c3['shift']());}}}(_0x1840,0x435f5));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','verify','ask',_0x18b8b5(0x1bd),_0x18b8b5(0x154),'snapshot',_0x18b8b5(0x217)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x1280be,_0x28068f){return join(_0x1280be,_0x28068f);}export class NovaActArtifactRecorder{['params'];['browser']=null;[_0x18b8b5(0x1f0)]=null;[_0x18b8b5(0x168)]=null;[_0x18b8b5(0x185)]=[];[_0x18b8b5(0x150)]=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;[_0x18b8b5(0x1a4)]=null;[_0x18b8b5(0x13e)]=![];['screencastStarted']=![];['startAttempted']=![];[_0x18b8b5(0x147)]=![];constructor(_0x498ec2){this['params']=_0x498ec2;}async['start'](){const _0x34599c=_0x18b8b5,_0x13da9f={'CBYaa':_0x34599c(0x152),'jaYhK':'nova_act_artifact_recording'};if(this[_0x34599c(0x1c1)])return;this[_0x34599c(0x1c1)]=!![];const _0x2e31a9=await this[_0x34599c(0x1a3)](),_0x563453=_0x2e31a9['cdp_endpoint'];if(!_0x563453)throw new Error(_0x34599c(0x1b6)+this['params'][_0x34599c(0x171)][_0x34599c(0x21a)]);await mkdir(this[_0x34599c(0x1cb)]['cliArtifactDir'],{'recursive':!![]}),this['browser']=await chromium[_0x34599c(0x1ac)](_0x563453,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x34599c(0x1f0)]=this[_0x34599c(0x192)][_0x34599c(0x143)]()[0x0]??null;if(!this['context'])throw new Error(_0x13da9f['CBYaa']);await this['context'][_0x34599c(0x18a)][_0x34599c(0x1fe)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this['startTraceSampling'](),await this['startScreencast'](),this[_0x34599c(0x1cb)][_0x34599c(0x1f9)][_0x34599c(0x200)](_0x34599c(0x1b4),{...this[_0x34599c(0x1cb)][_0x34599c(0x1a0)],'cdpEndpoint':_0x563453,'browserPid':_0x2e31a9['browser_pid'],'sessionState':_0x2e31a9[_0x34599c(0x1b0)]}),this['params']['telemetry'][_0x34599c(0x158)](_0x13da9f['jaYhK'],{...this['params'][_0x34599c(0x1a0)],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']});}async[_0x18b8b5(0x1bc)](){const _0x59ddb8=_0x18b8b5,_0x2b5648={'rzhtk':function(_0x2e819f,_0x4f8b9a,_0x175bd1){return _0x2e819f(_0x4f8b9a,_0x175bd1);},'hFhSy':'trace.zip'};if(this[_0x59ddb8(0x147)])return;this['stopped']=!![];const _0x5d9793={...this[_0x59ddb8(0x1cb)][_0x59ddb8(0x1a0)],'frameCount':this[_0x59ddb8(0x150)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this[_0x59ddb8(0x13e)],'screencastStarted':this[_0x59ddb8(0x20f)]};this[_0x59ddb8(0x1cb)][_0x59ddb8(0x1f9)][_0x59ddb8(0x200)](_0x59ddb8(0x1e0),_0x5d9793);try{await this[_0x59ddb8(0x1dc)](),await this['captureTraceSample'](),await this['stopScreencast'](),await Promise[_0x59ddb8(0x19a)](this[_0x59ddb8(0x185)]);this['context']&&this[_0x59ddb8(0x13e)]&&await this[_0x59ddb8(0x1f0)][_0x59ddb8(0x18a)][_0x59ddb8(0x1bc)]({'path':_0x2b5648[_0x59ddb8(0x1c4)](buildCliArtifactPath,this['params']['cliArtifactDir'],_0x2b5648['hFhSy'])});const _0x229ae7=await this['encodeScreencastVideo']();this[_0x59ddb8(0x1cb)]['telemetry']['trackPhaseEnd']('nova_act_artifact_recording_stop',{..._0x5d9793,'videoPath':_0x229ae7});}catch(_0x33c6d8){await this['params']['telemetry']['trackPhaseError'](_0x59ddb8(0x1e0),_0x33c6d8,_0x5d9793);}finally{await this['browser']?.['close']()['catch'](()=>undefined),this['browser']=null,this[_0x59ddb8(0x1f0)]=null,this['frameSession']=null;}}async[_0x18b8b5(0x1a3)](){const _0x83fdb8=_0x18b8b5,_0x322a1b={'giQbm':function(_0x368b4a){return _0x368b4a();},'MuRiZ':'.act_cli','gvPgM':_0x83fdb8(0x191),'ObKHD':function(_0x4bcf52,_0x3625a0){return _0x4bcf52-_0x3625a0;}},_0x563b46=join(_0x322a1b['giQbm'](homedir),_0x322a1b['MuRiZ'],'browser',_0x322a1b['gvPgM'],this[_0x83fdb8(0x1cb)]['novaOptions']['sessionId']+_0x83fdb8(0x1ae)),_0x14444e=Date['now']();let _0x558527;do{try{const _0x5d7771=JSON[_0x83fdb8(0x156)](await readFile(_0x563b46,'utf-8'));if(_0x5d7771['cdp_endpoint'])return _0x5d7771;_0x558527=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x563b46);}catch(_0x1adafd){_0x558527=_0x1adafd;}await delay(0x64);}while(_0x322a1b[_0x83fdb8(0x1b9)](Date[_0x83fdb8(0x144)](),_0x14444e)<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x558527 instanceof Error)throw _0x558527;throw new Error(_0x83fdb8(0x19b)+_0x563b46);}async['startScreencast'](){const _0x21aafc=_0x18b8b5,_0x541cd7={'FIDbU':function(_0xfb74c4,_0x50ff84){return _0xfb74c4(_0x50ff84);},'pTkSC':_0x21aafc(0x15a),'opKTX':_0x21aafc(0x180)};if(!this['context'])return;const _0x226ccc=this['context']['pages']()[0x0];if(!_0x226ccc)return;const _0x1dc677=this['getFrameDir']();await mkdir(_0x1dc677,{'recursive':!![]});const _0x14446d=await this[_0x21aafc(0x1f0)][_0x21aafc(0x20a)](_0x226ccc);this[_0x21aafc(0x168)]=_0x14446d,_0x14446d['on'](_0x21aafc(0x207),_0x585c18=>{const _0x2f8433=_0x21aafc,_0x13cc9c=++this[_0x2f8433(0x150)],_0x198604=join(_0x1dc677,'frame-'+_0x541cd7['FIDbU'](String,_0x13cc9c)['padStart'](0x6,'0')+_0x2f8433(0x15d)),_0x36c313=writeFile(_0x198604,Buffer['from'](_0x585c18['data'],_0x541cd7['pTkSC']))[_0x2f8433(0x210)](()=>undefined)['finally'](()=>_0x14446d[_0x2f8433(0x184)](_0x2f8433(0x1c5),{'sessionId':_0x585c18['sessionId']}))[_0x2f8433(0x151)](()=>undefined)[_0x2f8433(0x210)](()=>undefined);this[_0x2f8433(0x185)][_0x2f8433(0x179)](_0x36c313);}),await _0x14446d['send']('Page.startScreencast',{'format':_0x541cd7[_0x21aafc(0x1ca)],'quality':0x4b,'everyNthFrame':0x6}),this[_0x21aafc(0x20f)]=!![];}async['stopScreencast'](){const _0x3f1cc8=_0x18b8b5,_0x39f05b={'qwMnw':_0x3f1cc8(0x186)};if(!this[_0x3f1cc8(0x168)]||!this['screencastStarted'])return;await this['frameSession'][_0x3f1cc8(0x184)](_0x39f05b['qwMnw'])['catch'](()=>undefined);}['startTraceSampling'](){const _0x1892c0=_0x18b8b5,_0x85cc31={'XzwwO':function(_0x5ae10f,_0x2bb81b,_0x35c2cc){return _0x5ae10f(_0x2bb81b,_0x35c2cc);}};this['queueTraceSample'](),this['traceSampleTimer']=_0x85cc31[_0x1892c0(0x176)](setInterval,()=>this[_0x1892c0(0x1f2)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}['queueTraceSample'](){const _0x13d790=_0x18b8b5;if(this['traceSampleInFlight'])return;this[_0x13d790(0x1a4)]=this[_0x13d790(0x167)]()['finally'](()=>{const _0x1082b4=_0x13d790;this[_0x1082b4(0x1a4)]=null;});}async[_0x18b8b5(0x1dc)](){const _0x5b507d=_0x18b8b5,_0x14969b={'TFIbP':function(_0x506398,_0x372727){return _0x506398(_0x372727);}};this['traceSampleTimer']&&(_0x14969b[_0x5b507d(0x1fa)](clearInterval,this[_0x5b507d(0x1b3)]),this[_0x5b507d(0x1b3)]=null),await this['traceSampleInFlight']?.['catch'](()=>undefined);}async[_0x18b8b5(0x167)](){const _0xf74203=_0x18b8b5,_0x58c45e=this[_0xf74203(0x1f0)]?.['pages']()[0x0];if(!_0x58c45e)return;try{await _0x58c45e['locator']('body')[_0xf74203(0x1a8)](_0x47edfe=>_0x47edfe[_0xf74203(0x1da)],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async['encodeScreencastVideo'](){const _0x205c78=_0x18b8b5,_0x48719b={'YpPFc':function(_0x2e92d9){return _0x2e92d9();},'ZNeKh':function(_0x24f1c3,_0x3b915a,_0x4e9d2c){return _0x24f1c3(_0x3b915a,_0x4e9d2c);},'Yemog':function(_0x3f361d,_0x47ecaa,_0x11c828){return _0x3f361d(_0x47ecaa,_0x11c828);},'SJukB':function(_0x2b0955,_0x10bcd8,_0x419db8){return _0x2b0955(_0x10bcd8,_0x419db8);},'hntwr':_0x205c78(0x15c),'iHnOV':'error','MjhDH':'-vf','RnrZF':_0x205c78(0x204),'gaMmp':_0x205c78(0x1dd),'lArPq':'yuv420p'};if(this[_0x205c78(0x150)]<0x2)return null;const _0x597543=await _0x48719b['YpPFc'](resolveFfmpegPath);if(!_0x597543)return null;const _0x100898=_0x48719b['ZNeKh'](join,this[_0x205c78(0x1cb)]['cliArtifactDir'],_0x205c78(0x182));await _0x48719b['Yemog'](mkdir,_0x100898,{'recursive':!![]});const _0x206131=_0x48719b['SJukB'](join,_0x100898,'session-recording.webm');return await execFileAsync(_0x597543,['-y',_0x205c78(0x206),_0x48719b[_0x205c78(0x164)],_0x48719b['iHnOV'],'-framerate','10','-i',join(this[_0x205c78(0x1fb)](),'frame-%06d.jpg'),_0x48719b['MjhDH'],'scale=trunc(iw/2)*2:trunc(ih/2)*2',_0x48719b['RnrZF'],_0x205c78(0x1d8),_0x48719b[_0x205c78(0x1e5)],_0x48719b['lArPq'],_0x206131]),_0x206131;}[_0x18b8b5(0x1fb)](){const _0x13cdc3=_0x18b8b5;return join(this[_0x13cdc3(0x1cb)][_0x13cdc3(0x1e3)],_0x13cdc3(0x1d1));}}async function delay(_0x3ae062){await new Promise(_0x5b112b=>setTimeout(_0x5b112b,_0x3ae062));}async function resolveFfmpegPath(){const _0x586282=_0x18b8b5,_0x2275ac={'rLzaZ':function(_0x37a324,_0x56c5ed){return _0x37a324(_0x56c5ed);},'WPxiw':'ffmpeg','hNaEC':'Caches','KdgDv':function(_0xb021e,_0x453779,_0xb82d44,_0x559478){return _0xb021e(_0x453779,_0xb82d44,_0x559478);},'hPtow':function(_0x31bea9){return _0x31bea9();},'WJAqS':_0x586282(0x146),'HMBsK':'ms-playwright','TDotC':function(_0x282c38,_0x5e7485){return _0x282c38(_0x5e7485);},'LxAVf':function(_0x4f50de,_0x366544){return _0x4f50de(_0x366544);}};if(await _0x2275ac['rLzaZ'](canRunFfmpeg,_0x2275ac['WPxiw']))return _0x2275ac[_0x586282(0x1e8)];const _0x17672d=[join(homedir(),'Library',_0x2275ac['hNaEC'],_0x586282(0x16b)),_0x2275ac[_0x586282(0x1ab)](join,_0x2275ac[_0x586282(0x208)](homedir),_0x2275ac[_0x586282(0x1e1)],_0x2275ac['HMBsK'])];for(const _0x33b806 of _0x17672d){try{const _0x23ac64=await _0x2275ac[_0x586282(0x219)](readdir,_0x33b806),_0x469e36=_0x23ac64['filter'](_0x35e511=>_0x35e511[_0x586282(0x1f4)](_0x586282(0x16a)))['sort']()[_0x586282(0x14b)]()['flatMap'](_0x369114=>[join(_0x33b806,_0x369114,'ffmpeg-mac'),join(_0x33b806,_0x369114,_0x586282(0x20b)),join(_0x33b806,_0x369114,'ffmpeg.exe')]);for(const _0x1c0831 of _0x469e36){if(await _0x2275ac[_0x586282(0x20c)](canRunFfmpeg,_0x1c0831))return _0x1c0831;}}catch{}}return null;}async function canRunFfmpeg(_0xc8b915){const _0x181729={'mpGMv':function(_0x32ee88,_0xcace5,_0x1a0f28){return _0x32ee88(_0xcace5,_0x1a0f28);}};try{return await _0x181729['mpGMv'](execFileAsync,_0xc8b915,['-version']),!![];}catch{return![];}}function toStepDisplayName(_0xc6bedc){const _0x3303dd=_0x18b8b5,_0x25c4a6={'GuTtn':function(_0xe27d50,_0x2f0674){return _0xe27d50(_0x2f0674);}},_0x1264d5=basename(_0xc6bedc)[_0x3303dd(0x1ec)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x1264d5,'isKeyStep':/^key_/i['test'](_0x25c4a6[_0x3303dd(0x18b)](basename,_0xc6bedc))};}function extractShellValue(_0x2b53a0){if(!_0x2b53a0)return null;return _0x2b53a0[0x1]??_0x2b53a0[0x2]??_0x2b53a0[0x3]??null;}function extractOutputOption(_0x3ffa17){return extractShellValue(_0x3ffa17['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x2d8b95,_0x2bc8cf){const _0x4b92bc=_0x18b8b5,_0x5b5d8b={'DchlS':'session\x20create','ztmZi':'create\x20Nova\x20browser\x20session','mgsMZ':'execute','hbcXd':'verify','VVeKu':'ask','vxXiT':'wait-for','xLUlU':function(_0x162378,_0x2a372b){return _0x162378(_0x2a372b);},'NWrLm':'screenshot'};switch(_0x2bc8cf){case _0x5b5d8b[_0x4b92bc(0x141)]:return _0x5b5d8b[_0x4b92bc(0x1d7)];case _0x5b5d8b[_0x4b92bc(0x1e7)]:return _0x4b92bc(0x1f8);case _0x5b5d8b[_0x4b92bc(0x1cc)]:return _0x4b92bc(0x1d9);case _0x5b5d8b[_0x4b92bc(0x1e6)]:return'ask\x20page\x20question';case'goto':return _0x4b92bc(0x1ed);case _0x5b5d8b[_0x4b92bc(0x177)]:return _0x4b92bc(0x160);case'snapshot':{const _0x3a9bb5=_0x5b5d8b[_0x4b92bc(0x196)](extractOutputOption,_0x2d8b95);if(!_0x3a9bb5)return'capture\x20snapshot';const {name:_0x3754e4}=toStepDisplayName(_0x3a9bb5);return'capture\x20snapshot\x20`'+_0x3754e4+'`';}case _0x5b5d8b['NWrLm']:{const _0x10a945=_0x5b5d8b[_0x4b92bc(0x196)](extractOutputOption,_0x2d8b95);if(!_0x10a945)return'capture\x20screenshot';const {name:_0x28039e,isKeyStep:_0x4bbb01}=_0x5b5d8b['xLUlU'](toStepDisplayName,_0x10a945);return _0x4bbb01?_0x4b92bc(0x17b)+_0x28039e+'`':'capture\x20step\x20`'+_0x28039e+'`';}case'session\x20export':return'export\x20Nova\x20session';default:return _0x2bc8cf;}}function getNovaActCliCommandBlockReason(_0x40f778){const _0x29bd26=_0x18b8b5,_0x2f6ead={'MpmQQ':function(_0x5deb19,_0x3008cc){return _0x5deb19===_0x3008cc;},'TCpiI':_0x29bd26(0x1b5),'DfpRi':_0x29bd26(0x17a)},_0x452d5b=parseNovaActCliCommand(_0x40f778);if(!_0x452d5b)return _0x29bd26(0x173);if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x29bd26(0x183)](_0x452d5b))return'Nova\x20command\x20`'+_0x452d5b+_0x29bd26(0x1d2);if(_0x2f6ead[_0x29bd26(0x1ee)](_0x452d5b,_0x2f6ead[_0x29bd26(0x1aa)])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x40f778))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'](_0x40f778))return _0x2f6ead[_0x29bd26(0x1e9)];return null;}function buildFeedbackSection(_0xc8bca5){const _0x4178a4=_0x18b8b5,_0x199033={'ZSNsT':'numeric','CwTjH':_0x4178a4(0x174),'wYZrn':'element','cOEIu':function(_0x403fcd,_0x125e6d){return _0x403fcd===_0x125e6d;}};if(!_0xc8bca5||_0x199033[_0x4178a4(0x1eb)](_0xc8bca5[_0x4178a4(0x1e4)]['length'],0x0))return'';const _0x45f2d6=_0xc8bca5[_0x4178a4(0x1e4)][_0x4178a4(0x215)](_0x3e223a=>{const _0x2cb56b=_0x4178a4,_0x5a409f=new Date(_0x3e223a['createdAt'])['toLocaleDateString']('en-US',{'month':'short','day':_0x199033[_0x2cb56b(0x1d5)]}),_0x54d6f4=_0x3e223a[_0x2cb56b(0x211)]||_0x3e223a['authorEmail']||_0x199033[_0x2cb56b(0x193)],_0x139c02=_0x3e223a[_0x2cb56b(0x1a7)]?'\x20(on\x20element:\x20<'+(_0x3e223a[_0x2cb56b(0x1a7)][_0x2cb56b(0x178)]['split'](_0x2cb56b(0x16d))[_0x2cb56b(0x1ff)]()?.[_0x2cb56b(0x202)](':')[0x0]||_0x199033[_0x2cb56b(0x166)])+_0x2cb56b(0x203)+(_0x3e223a['domRef'][_0x2cb56b(0x189)]||'')[_0x2cb56b(0x1d4)](0x0,0x32)+'\x22)':'';return _0x2cb56b(0x172)+_0x3e223a['id']+']\x20**'+_0x54d6f4+_0x2cb56b(0x1ce)+_0x5a409f+_0x2cb56b(0x17e)+_0x3e223a['content']+'\x22'+_0x139c02;})[_0x4178a4(0x1b8)]('\x0a');return _0x4178a4(0x1c2)+_0x45f2d6;}function buildNovaSharedOptionsInstruction(_0x186a31){const _0x1259e3=_0x18b8b5;if(!_0x186a31['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 _0x1259e3(0x1a6)+_0x186a31;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x1d7604){const _0x560d01=_0x18b8b5,_0x51a1c4={'BJHfX':function(_0x100fa3,_0x3af789,_0x16ed06){return _0x100fa3(_0x3af789,_0x16ed06);},'UPMNX':_0x560d01(0x170),'zUMyR':_0x560d01(0x194),'PeQMt':'02_final-state.yml','mYbOP':function(_0x20783a,_0x3f070d,_0x222caf){return _0x20783a(_0x3f070d,_0x222caf);},'Ulteg':_0x560d01(0x1bf),'EQIWK':function(_0x52c9ff,_0x5393a8){return _0x52c9ff(_0x5393a8);},'krTHX':function(_0x82dfb7,_0x17b9b2){return _0x82dfb7(_0x17b9b2);},'fRKsf':function(_0xfa0183,_0x32c93f){return _0xfa0183(_0x32c93f);}},{novaCommandPrefix:_0x38b882,novaSharedOptionsSuffix:_0x3529a6,cliArtifactDir:_0x18aa59,url:_0x2e2032}=_0x1d7604,_0x334edb=_0x51a1c4[_0x560d01(0x162)](buildCliArtifactPath,_0x18aa59,_0x51a1c4['UPMNX']),_0x4738ac=_0x51a1c4['BJHfX'](buildCliArtifactPath,_0x18aa59,_0x51a1c4[_0x560d01(0x1c0)]),_0x38731b=_0x51a1c4[_0x560d01(0x162)](buildCliArtifactPath,_0x18aa59,_0x51a1c4['PeQMt']),_0x19b3ad=_0x51a1c4[_0x560d01(0x1d6)](buildCliArtifactPath,_0x18aa59,_0x51a1c4[_0x560d01(0x19e)]);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'+_0x38b882+'\x0a\x0a'+_0x51a1c4['EQIWK'](buildNovaSharedOptionsInstruction,_0x3529a6)+'\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`'+_0x38b882+_0x560d01(0x1f5)+quoteShellArg(_0x2e2032)+'\x20'+_0x3529a6+_0x560d01(0x1b7)+_0x38b882+'\x20snapshot\x20--output\x20'+_0x51a1c4[_0x560d01(0x20d)](quoteShellArg,_0x334edb)+'\x20'+_0x3529a6+'`\x0a3.\x20Run\x20`'+_0x38b882+_0x560d01(0x1a5)+_0x51a1c4[_0x560d01(0x16f)](quoteShellArg,_0x4738ac)+'\x20'+_0x3529a6+'`\x0a4.\x20Run\x20one\x20batched\x20`'+_0x38b882+_0x560d01(0x1c3)+_0x38b882+_0x560d01(0x175)+quoteShellArg(_0x38731b)+'\x20'+_0x3529a6+'`\x0a6.\x20Run\x20`'+_0x38b882+_0x560d01(0x1a5)+_0x51a1c4['EQIWK'](quoteShellArg,_0x19b3ad)+'\x20'+_0x3529a6+_0x560d01(0x1b1)+_0x18aa59+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x4362af){const _0x530070=_0x18b8b5,_0x1c721a={'QlTsQ':_0x530070(0x169),'sDHWI':function(_0x3d479c,_0x102c17,_0x5d1ccf){return _0x3d479c(_0x102c17,_0x5d1ccf);},'kYPji':function(_0x147c6b,_0x4c16cb){return _0x147c6b(_0x4c16cb);},'rNDIr':_0x530070(0x157),'DTBRm':function(_0x28f76e,_0x3c9b46){return _0x28f76e(_0x3c9b46);},'wAUPv':function(_0x5de774,_0x2f46bc){return _0x5de774(_0x2f46bc);}},{checklistItem:_0x4deab9,itemFeedback:_0x5c9580,taskDescription:_0x47ad61,novaCommandPrefix:_0x2926cb,novaSharedOptionsSuffix:_0x5a612e,cliArtifactDir:_0x55da4e,url:_0x3c00e5,loginInstructions:_0x567f3d}=_0x4362af,_0x1eead4=_0x4deab9['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x4deab9['notes']:'',_0x40d92a=buildFeedbackSection(_0x5c9580),_0x8bee12=_0x5c9580?.[_0x530070(0x1e2)]?_0x530070(0x216)+_0x5c9580[_0x530070(0x1e2)]:'',_0x4f5683=_0x567f3d?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x567f3d+_0x530070(0x1c7):'',_0x5d7b76=buildCliArtifactPath(_0x55da4e,_0x1c721a[_0x530070(0x201)]),_0x29a604=buildCliArtifactPath(_0x55da4e,'01_initial-state.png'),_0xc0d992=_0x1c721a['sDHWI'](buildCliArtifactPath,_0x55da4e,_0x530070(0x1a2));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'+_0x4deab9['description']+_0x1eead4+_0x40d92a+_0x8bee12+_0x530070(0x1be)+_0x47ad61+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x3c00e5+'\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'+_0x4f5683+_0x530070(0x142)+_0x2926cb+_0x530070(0x1f5)+_0x1c721a[_0x530070(0x1c9)](quoteShellArg,_0x3c00e5)+'\x20'+_0x5a612e+_0x530070(0x1db)+_0x55da4e+_0x530070(0x20e)+_0x2926cb+'\x20snapshot\x20--output\x20'+_0x1c721a['kYPji'](quoteShellArg,_0x5d7b76)+'\x20'+_0x5a612e+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x2926cb+_0x530070(0x1a5)+quoteShellArg(_0x29a604)+'\x20'+_0x5a612e+_0x530070(0x1d3)+_0xc0d992+'`.\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`'+_0x2926cb+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x5a612e[_0x530070(0x1cd)]()?'`'+_0x5a612e+'`':_0x1c721a['rNDIr'])+'\x0a\x0a'+_0x1c721a['kYPji'](buildNovaSharedOptionsInstruction,_0x5a612e)+'\x0a\x0aExamples:\x0a-\x20`'+_0x2926cb+_0x530070(0x15e)+_0x5a612e+_0x530070(0x17c)+_0x2926cb+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x5a612e+'`\x0a-\x20`'+_0x2926cb+_0x530070(0x175)+_0x1c721a['DTBRm'](quoteShellArg,_0x5d7b76)+'\x20'+_0x5a612e+_0x530070(0x17c)+_0x2926cb+_0x530070(0x1a5)+_0x1c721a['wAUPv'](quoteShellArg,_0xc0d992)+'\x20'+_0x5a612e+'`\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(_0x4372c6){const _0x4f6504=_0x18b8b5,_0x4b1deb=[..._0x4372c6['keys']()][_0x4f6504(0x1ef)]();let _0x35331e=0x0;for(const _0xdeb09f of _0x4372c6['values']()){_0x35331e+=_0xdeb09f;}return{'cliCommandCount':_0x35331e,'cliCommandsSeen':_0x4b1deb,'noCliCommandsCalled':_0x35331e===0x0};}function _0x1840(){const _0x4c3c7f=['tracingStarted','FBkVE','534417mzJmEB','DchlS','\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`','contexts','now','130650kzzkAz','.cache','stopped','LGjwp','stdout','PostToolUse','reverse','sbSjh','OhiAp','rBdof','mtimeMs','frameCount','then','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','key_final-state.png','wait-for','963cKuGkg','parse','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','trackPhaseEnd','FQJGf','base64','LXKRM','-loglevel','.jpg','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','final-state.yaml','wait\x20for\x20page\x20condition','FVIKt','BJHfX','test','hntwr','120YMvESw','wYZrn','captureTraceSample','frameSession','01_initial.yml','ffmpeg-','ms-playwright','wLwIS','\x20>\x20','isFile','fRKsf','00_initial-state.yml','novaOptions','-\x20[','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','Reviewer','\x20snapshot\x20--output\x20','XzwwO','vxXiT','selector','push','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','capture\x20key\x20step\x20`','`\x0a-\x20`','trace.zip','):\x20\x22','fWIph','jpeg','snapshot','videos','has','send','frameWrites','Page.stopScreencast','54paSZWp','session\x20create','textContent','tracing','GuTtn','hook_event_name','--report','Bash','78288IfZDDn','nova-act-cli','sessions','browser','CwTjH','01_initial-state.png','nova_act_final_snapshot','xLUlU','472365fGXpQu','log','kwxIe','allSettled','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','nova_act_final_screenshot','-qr','Ulteg','ehtGj','transportMetadata','EIUry','key_03_success-state.png','readSessionMetadataWithRetry','traceSampleInFlight','\x20screenshot\x20--output\x20','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','domRef','evaluate','iOmHE','TCpiI','KdgDv','connectOverCDP','commandArgs','.json','31367bBnNqW','state','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','nova_act_session_report','traceSampleTimer','nova_act_artifact_recording','verify','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','`\x0a2.\x20Run\x20`','join','ObKHD','uolfn','nova_act_session_close','stop','goto','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','03_final-state.png','zUMyR','startAttempted','\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\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','rzhtk','Page.screencastFrameAck','block','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','nova_act_command','kYPji','opKTX','params','hbcXd','trim','**\x20(','phase','set','nova-video-frames','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','`.\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`','slice','ZSNsT','mYbOP','ztmZi','libvpx-vp9','verify\x20page\x20condition','tagName','`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','stopTraceSampling','-pix_fmt','json','GxHFb','nova_act_artifact_recording_stop','WJAqS','canonicalFlow','cliArtifactDir','unaddressedComments','gaMmp','VVeKu','mgsMZ','WPxiw','DfpRi','FVVnB','cOEIu','replace','navigate\x20browser','MpmQQ','sort','context','nChng','queueTraceSample','env','startsWith','\x20session\x20create\x20','trackPhaseError','1408WOGVNf','execute\x20Nova\x20browser\x20action','telemetry','TFIbP','getFrameDir','PostToolUseFailure','40496cWtbOs','start','pop','trackPhaseStart','QlTsQ','split','>\x20\x22','-c:v','123870hUdeki','-hide_banner','Page.screencastFrame','hPtow','name','newCDPSession','ffmpeg-linux','LxAVf','krTHX','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','screencastStarted','catch','authorName','abvyS','fbveN','tool_input','map','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','screenshot','--format','TDotC','sessionId','nova_act_session_export'];_0x1840=function(){return _0x4c3c7f;};return _0x1840();}export function createVerifyFeatureNovaCliHooks(_0x2758cf,_0x1c7c90){const _0x3d645b=_0x18b8b5,_0x3ee496={'LXKRM':function(_0x179dd0,_0x4c2ab){return _0x179dd0(_0x4c2ab);},'ISaGq':_0x3d645b(0x1c6),'dYCoM':function(_0x149a2d,_0x5b6678){return _0x149a2d!==_0x5b6678;},'xVqYi':function(_0x2b0b41,_0x442c26){return _0x2b0b41+_0x442c26;},'fWIph':function(_0x5a6adc,_0x366dfc,_0x36f5a3){return _0x5a6adc(_0x366dfc,_0x36f5a3);},'SBPDz':'nova_act_artifact_recording','tobqP':function(_0x217c5d,_0x362af7){return _0x217c5d!==_0x362af7;},'OBDFR':'nova_act_command_failure','nChng':'nova-act-cli','XOKxf':_0x3d645b(0x18e)},_0x3bbf60=new Map(),_0xf76967=async _0xe31ca9=>{const _0x4d5e04=_0x3d645b;if(_0xe31ca9['hook_event_name']!=='PreToolUse')return{};const _0x1cf258=_0xe31ca9;if(_0x1cf258['tool_name']!=='Bash')return{};const _0x5f1fc5=_0x1cf258[_0x4d5e04(0x214)],_0x40309d=_0x3ee496['LXKRM'](extractBashCommand,_0x5f1fc5);if(!_0x40309d)return{};const _0x5dbe0e=_0x3ee496[_0x4d5e04(0x15b)](getNovaActCliCommandBlockReason,_0x40309d);if(!_0x5dbe0e)return{};return{'decision':_0x3ee496['ISaGq'],'reason':_0x5dbe0e};},_0x15784a=async _0x171eb6=>{const _0x44c184=_0x3d645b;if(_0x3ee496['dYCoM'](_0x171eb6[_0x44c184(0x18c)],_0x44c184(0x14a)))return{};const _0x1bb28f=_0x171eb6;if(_0x3ee496['dYCoM'](_0x1bb28f['tool_name'],'Bash'))return{};const _0x50ab81=_0x1bb28f[_0x44c184(0x214)],_0x1e543b=extractBashCommand(_0x50ab81);if(!_0x1e543b)return{};const _0x256829=_0x3ee496[_0x44c184(0x15b)](parseNovaActCliCommand,_0x1e543b);if(!_0x256829)return{};_0x3bbf60[_0x44c184(0x1d0)](_0x256829,_0x3ee496['xVqYi'](_0x3bbf60['get'](_0x256829)||0x0,0x1)),_0x2758cf['trackPhaseStart'](_0x44c184(0x1c8),{'subcommand':_0x256829}),_0x2758cf[_0x44c184(0x158)](_0x44c184(0x1c8),{'subcommand':_0x256829,'commandPreview':_0x3ee496['LXKRM'](previewNovaActCliCommand,_0x1e543b)}),console[_0x44c184(0x198)]('[nova-act-cli]\x20'+_0x3ee496[_0x44c184(0x17f)](formatNovaActCliLog,_0x1e543b,_0x256829));if(_0x256829===_0x44c184(0x188)&&_0x1c7c90)try{await _0x1c7c90[_0x44c184(0x1fe)]();}catch(_0x351ac2){await _0x2758cf[_0x44c184(0x1f6)](_0x3ee496['SBPDz'],_0x351ac2,{'transport':_0x44c184(0x190)});}return{};},_0x5d87f2=async _0x5a35d0=>{const _0x5ee328=_0x3d645b;if(_0x3ee496['tobqP'](_0x5a35d0['hook_event_name'],_0x5ee328(0x1fc)))return{};const _0x2cb115=_0x5a35d0;if(_0x3ee496['dYCoM'](_0x2cb115['tool_name'],_0x5ee328(0x18e)))return{};return await _0x2758cf[_0x5ee328(0x1f6)](_0x3ee496['OBDFR'],_0x2cb115['error'],{'transport':_0x3ee496[_0x5ee328(0x1f1)],'toolName':_0x3ee496['XOKxf']}),{};};return{'preToolUseHook':_0xf76967,'postToolUseHook':_0x15784a,'postToolUseFailureHook':_0x5d87f2,'commandCounts':_0x3bbf60};}function _0x14aa(_0x29998c,_0x5302be){_0x29998c=_0x29998c-0x13e;const _0x184042=_0x1840();let _0x14aa8f=_0x184042[_0x29998c];return _0x14aa8f;}async function runNovaLifecycleCommand(_0x685415){const _0x5f5a93=_0x18b8b5,_0x45c475={'oYGGh':function(_0x4747aa,_0x514075){return _0x4747aa(_0x514075);},'FVVnB':function(_0x39cdae,_0x288c42){return _0x39cdae(_0x288c42);},'ehtGj':function(_0x3eae0a,_0x3022c3){return _0x3eae0a(_0x3022c3);}},{novaOptions:_0x5a166d,commandArgs:_0x568271,telemetry:_0xa9159d,phase:_0x2d5465,metadata:_0x202c06,timeoutMs:_0x36f00c}=_0x685415;_0xa9159d[_0x5f5a93(0x200)](_0x2d5465,_0x202c06);try{const _0x412aa5=await runNovaActCliCommand({..._0x5a166d,'commandArgs':_0x568271,'cwd':process['cwd'](),'env':process[_0x5f5a93(0x1f3)],'timeoutMs':_0x36f00c??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0xa9159d['trackPhaseEnd'](_0x2d5465,{..._0x202c06,'subcommand':_0x412aa5['invocation']['subcommand'],'commandPreview':_0x45c475['oYGGh'](previewNovaActCliCommand,_0x412aa5['invocation']['shellCommand']),'stdoutPreview':_0x45c475[_0x5f5a93(0x1ea)](previewNovaActCliCommand,_0x412aa5[_0x5f5a93(0x149)]),'stderrPreview':_0x45c475[_0x5f5a93(0x19f)](previewNovaActCliCommand,_0x412aa5['stderr']),'logDir':_0x45c475[_0x5f5a93(0x19f)](extractNovaActLogDir,_0x412aa5['stdout'])});}catch(_0xbf0355){await _0xa9159d['trackPhaseError'](_0x2d5465,_0xbf0355,_0x202c06);throw _0xbf0355;}}export async function finalizeVerifyFeatureNovaCliSession(_0x540e0b){const _0x141c14=_0x18b8b5,_0x2f3854={'EIUry':'--output','abvyS':function(_0x5a459e,_0x457a01,_0x21e58e){return _0x5a459e(_0x457a01,_0x21e58e);},'FVIKt':_0x141c14(0x181),'oXmLr':_0x141c14(0x15f),'kwxIe':'session','FQJGf':'nova-session-export.json','sbSjh':_0x141c14(0x1b2),'wxHwz':'export','FBkVE':'nova-report','GxHFb':'close','vLmPO':_0x141c14(0x1bb),'uolfn':function(_0x1233f5,_0x228a60){return _0x1233f5(_0x228a60);}},{telemetry:_0x4276d5,novaOptions:_0x4daf1b,cliArtifactDir:_0x42b39c,transportMetadata:_0x1fd0fd,artifactRecorder:_0x4246c0}=_0x540e0b,_0x2e416b=[{'phase':_0x141c14(0x19c),'commandArgs':[_0x141c14(0x217),_0x2f3854['EIUry'],_0x2f3854[_0x141c14(0x212)](buildCliArtifactPath,_0x42b39c,_0x141c14(0x153))]},{'phase':_0x141c14(0x195),'commandArgs':[_0x2f3854[_0x141c14(0x161)],_0x2f3854[_0x141c14(0x1a1)],_0x2f3854['abvyS'](buildCliArtifactPath,_0x42b39c,_0x2f3854['oXmLr'])]},{'phase':_0x141c14(0x21b),'commandArgs':[_0x2f3854[_0x141c14(0x199)],'export',_0x141c14(0x218),_0x141c14(0x1de),_0x2f3854['EIUry'],buildCliArtifactPath(_0x42b39c,_0x2f3854[_0x141c14(0x159)])]},{'phase':_0x2f3854[_0x141c14(0x14c)],'commandArgs':[_0x2f3854[_0x141c14(0x199)],_0x2f3854['wxHwz'],_0x141c14(0x18d),'--output-dir',buildCliArtifactPath(_0x42b39c,_0x2f3854[_0x141c14(0x13f)])]},{'phase':_0x141c14(0x1bb),'commandArgs':[_0x2f3854['kwxIe'],_0x2f3854[_0x141c14(0x1df)]]}];for(const _0x55222b of _0x2e416b){_0x55222b['phase']===_0x2f3854['vLmPO']&&await _0x4246c0?.['stop']();try{await _0x2f3854[_0x141c14(0x1ba)](runNovaLifecycleCommand,{'novaOptions':_0x4daf1b,'commandArgs':[..._0x55222b[_0x141c14(0x1ad)]],'telemetry':_0x4276d5,'phase':_0x55222b[_0x141c14(0x1cf)],'metadata':_0x1fd0fd});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x405c03){const _0x2993f4=_0x18b8b5,_0xd40bcb={'rBdof':function(_0x44cfd9,_0x456427,_0x31da4f){return _0x44cfd9(_0x456427,_0x31da4f);},'wLwIS':function(_0x1d506d,_0x485309){return _0x1d506d(_0x485309);},'xlCiO':function(_0x4620c7,_0x2883a3){return _0x4620c7<_0x2883a3;},'wwheK':function(_0x511b7e,_0x3aca1c){return _0x511b7e+_0x3aca1c;}},{cwd:_0x398ef1,cliArtifactDir:_0x1208ce,startTime:_0x3e0ee0}=_0x405c03,_0x434c19=[];await mkdir(_0x1208ce,{'recursive':!![]});const _0xf8bdc1=await _0xd40bcb[_0x2993f4(0x14e)](readdir,_0x398ef1,{'withFileTypes':!![]});for(const _0x437ca3 of _0xf8bdc1){if(!_0x437ca3[_0x2993f4(0x16e)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x2993f4(0x163)](_0x437ca3['name']))continue;const _0x7d076b=_0xd40bcb['rBdof'](join,_0x398ef1,_0x437ca3[_0x2993f4(0x209)]),_0x31d769=await _0xd40bcb[_0x2993f4(0x16c)](stat,_0x7d076b);if(_0xd40bcb['xlCiO'](_0xd40bcb['wwheK'](_0x31d769[_0x2993f4(0x14f)],0x7d0),_0x3e0ee0))continue;const _0x277521=buildCliArtifactPath(_0x1208ce,_0x437ca3[_0x2993f4(0x209)]);if(_0x7d076b===_0x277521)continue;await rename(_0x7d076b,_0x277521),_0x434c19['push'](_0x437ca3[_0x2993f4(0x209)]);}return _0x434c19['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x5e6fb1){const _0x1ac097=_0x18b8b5,_0x427a66=join(_0x5e6fb1,_0x1ac097(0x17d));try{return{'buffer':await readFile(_0x427a66),'source':_0x427a66};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x5e6fb1),'source':_0x5e6fb1};}}async function zipVerifyFeatureNovaArtifacts(_0xae64fb){const _0x332637=_0x18b8b5,_0x67aba0={'fbveN':function(_0x57770e,_0x28deae,_0xbb0501,_0x1042ef){return _0x57770e(_0x28deae,_0xbb0501,_0x1042ef);},'iOmHE':'nova-artifacts.zip','IeysC':function(_0x1ca6b6,_0x1f64b8,_0x384605,_0x2a6467){return _0x1ca6b6(_0x1f64b8,_0x384605,_0x2a6467);},'LGjwp':'zip','fWpCl':_0x332637(0x19d),'uesPT':'nova-user-data/*','vLLda':function(_0x3f2326,_0x4b56c8){return _0x3f2326(_0x4b56c8);},'OhiAp':function(_0x24281e,_0x51d17d,_0x1de05c){return _0x24281e(_0x51d17d,_0x1de05c);}},_0x1c2304=_0x67aba0[_0x332637(0x213)](join,_0xae64fb,'..',_0x67aba0[_0x332637(0x1a9)]);try{return await _0x67aba0['IeysC'](execFileAsync,_0x67aba0[_0x332637(0x148)],[_0x67aba0['fWpCl'],_0x1c2304,'.','-x',_0x67aba0['uesPT']],{'cwd':_0xae64fb}),await _0x67aba0['vLLda'](readFile,_0x1c2304);}finally{await _0x67aba0[_0x332637(0x14d)](rm,_0x1c2304,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x345d73){const _0x44aaa3=_0x18b8b5,_0x2048dd={'utAur':function(_0x18df37,_0x5d4fe1,_0x14380e){return _0x18df37(_0x5d4fe1,_0x14380e);}},_0x3c9d85=buildNovaActCliInvocation(_0x345d73[_0x44aaa3(0x171)],_0x345d73['commandArgs']);return{'command':_0x3c9d85['command'],'args':_0x3c9d85['args'],'commandPreview':previewNovaActCliCommand(_0x3c9d85['shellCommand']),'subcommand':_0x3c9d85['subcommand'],'sharedOptionsSuffix':_0x2048dd['utAur'](buildNovaActCliSharedOptionsSuffix,_0x345d73[_0x44aaa3(0x171)],_0x345d73['commandArgs'])};}
|
|
1
|
+
const _0x253bb1=_0x4cc5;(function(_0x11932e,_0x21801f){const _0x585aa1=_0x4cc5,_0x52736a=_0x11932e();while(!![]){try{const _0x5b8607=-parseInt(_0x585aa1(0x1b4))/0x1*(-parseInt(_0x585aa1(0x226))/0x2)+parseInt(_0x585aa1(0x21b))/0x3*(-parseInt(_0x585aa1(0x258))/0x4)+parseInt(_0x585aa1(0x25e))/0x5+-parseInt(_0x585aa1(0x278))/0x6+-parseInt(_0x585aa1(0x1eb))/0x7*(-parseInt(_0x585aa1(0x240))/0x8)+parseInt(_0x585aa1(0x23e))/0x9+parseInt(_0x585aa1(0x23d))/0xa;if(_0x5b8607===_0x21801f)break;else _0x52736a['push'](_0x52736a['shift']());}catch(_0x1129b9){_0x52736a['push'](_0x52736a['shift']());}}}(_0x2885,0x946dd));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([_0x253bb1(0x1d6),_0x253bb1(0x1cd),_0x253bb1(0x20b),_0x253bb1(0x20c),_0x253bb1(0x25d),'wait-for','snapshot','screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x4c7f7f,_0xc3e214){const _0x5cb17e=_0x253bb1,_0x47cd3f={'CTyJr':function(_0x5f1974,_0x434acb,_0x1e192d){return _0x5f1974(_0x434acb,_0x1e192d);}};return _0x47cd3f[_0x5cb17e(0x243)](join,_0x4c7f7f,_0xc3e214);}export class NovaActArtifactRecorder{['params'];[_0x253bb1(0x26b)]=null;['context']=null;['frameSession']=null;['frameWrites']=[];[_0x253bb1(0x1e0)]=0x0;[_0x253bb1(0x245)]=0x0;['traceSampleTimer']=null;['traceSampleInFlight']=null;['tracingStarted']=![];[_0x253bb1(0x25a)]=![];[_0x253bb1(0x223)]=![];[_0x253bb1(0x1bd)]=![];constructor(_0x3daccb){this['params']=_0x3daccb;}async['start'](){const _0x329760=_0x253bb1,_0x491380={'zsxlW':_0x329760(0x1c1),'foIRh':'nova_act_artifact_recording'};if(this['startAttempted'])return;this[_0x329760(0x223)]=!![];const _0x368c01=await this['readSessionMetadataWithRetry'](),_0xb1af0f=_0x368c01[_0x329760(0x249)];if(!_0xb1af0f)throw new Error(_0x329760(0x252)+this['params'][_0x329760(0x1b9)][_0x329760(0x255)]);await mkdir(this[_0x329760(0x1f3)][_0x329760(0x22d)],{'recursive':!![]}),this[_0x329760(0x26b)]=await chromium[_0x329760(0x286)](_0xb1af0f,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this[_0x329760(0x26b)]['contexts']()[0x0]??null;if(!this[_0x329760(0x26d)])throw new Error(_0x491380['zsxlW']);await this['context'][_0x329760(0x1cf)]['start']({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x329760(0x1e3)]=!![],this[_0x329760(0x1e4)](),await this['startScreencast'](),this[_0x329760(0x1f3)]['telemetry'][_0x329760(0x225)](_0x491380['foIRh'],{...this[_0x329760(0x1f3)][_0x329760(0x220)],'cdpEndpoint':_0xb1af0f,'browserPid':_0x368c01['browser_pid'],'sessionState':_0x368c01[_0x329760(0x1dc)]}),this['params']['telemetry']['trackPhaseEnd'](_0x329760(0x210),{...this[_0x329760(0x1f3)]['transportMetadata'],'tracingStarted':this[_0x329760(0x1e3)],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0xafa23e=_0x253bb1,_0x3caa38={'qZXbg':_0xafa23e(0x1d7),'LbCrL':function(_0x613b2b,_0x2a91ec,_0x4426fe){return _0x613b2b(_0x2a91ec,_0x4426fe);}};if(this[_0xafa23e(0x1bd)])return;this[_0xafa23e(0x1bd)]=!![];const _0x3a8878={...this[_0xafa23e(0x1f3)][_0xafa23e(0x220)],'frameCount':this['frameCount'],'traceSampleCount':this[_0xafa23e(0x245)],'tracingStarted':this[_0xafa23e(0x1e3)],'screencastStarted':this['screencastStarted']};this['params'][_0xafa23e(0x224)]['trackPhaseStart'](_0x3caa38['qZXbg'],_0x3a8878);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this['stopScreencast'](),await Promise['allSettled'](this['frameWrites']);this['context']&&this['tracingStarted']&&await this[_0xafa23e(0x26d)]['tracing']['stop']({'path':_0x3caa38['LbCrL'](buildCliArtifactPath,this['params'][_0xafa23e(0x22d)],_0xafa23e(0x285))});const _0x172b45=await this['encodeScreencastVideo']();this[_0xafa23e(0x1f3)][_0xafa23e(0x224)]['trackPhaseEnd'](_0xafa23e(0x1d7),{..._0x3a8878,'videoPath':_0x172b45});}catch(_0x262ae6){await this[_0xafa23e(0x1f3)]['telemetry'][_0xafa23e(0x237)](_0x3caa38[_0xafa23e(0x1bc)],_0x262ae6,_0x3a8878);}finally{await this[_0xafa23e(0x26b)]?.['close']()[_0xafa23e(0x22c)](()=>undefined),this['browser']=null,this['context']=null,this[_0xafa23e(0x263)]=null;}}async[_0x253bb1(0x1d1)](){const _0x1c3411=_0x253bb1,_0x183067={'kOeNe':function(_0x4abfd7,_0xa9fc4e,_0x4a41f5,_0x3484a9,_0x5d36a2,_0x1d86ae){return _0x4abfd7(_0xa9fc4e,_0x4a41f5,_0x3484a9,_0x5d36a2,_0x1d86ae);},'kqAlT':function(_0x480c21,_0x4cb1b8){return _0x480c21<_0x4cb1b8;},'mYBfX':function(_0x18c800,_0x569f37){return _0x18c800 instanceof _0x569f37;}},_0x3662c5=_0x183067[_0x1c3411(0x256)](join,homedir(),_0x1c3411(0x1ef),_0x1c3411(0x26b),'sessions',this[_0x1c3411(0x1f3)][_0x1c3411(0x1b9)][_0x1c3411(0x255)]+'.json'),_0x560c72=Date['now']();let _0x41db99;do{try{const _0xff8325=JSON['parse'](await readFile(_0x3662c5,_0x1c3411(0x1bf)));if(_0xff8325['cdp_endpoint'])return _0xff8325;_0x41db99=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x3662c5);}catch(_0x221558){_0x41db99=_0x221558;}await delay(0x64);}while(_0x183067['kqAlT'](Date['now']()-_0x560c72,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x183067['mYBfX'](_0x41db99,Error))throw _0x41db99;throw new Error(_0x1c3411(0x236)+_0x3662c5);}async['startScreencast'](){const _0x16c8ce=_0x253bb1,_0x3c5e56={'VDiai':function(_0x1198e7,_0x5dcb95,_0x537732){return _0x1198e7(_0x5dcb95,_0x537732);},'cyTTZ':'jpeg'};if(!this[_0x16c8ce(0x26d)])return;const _0x5583f7=this['context']['pages']()[0x0];if(!_0x5583f7)return;const _0x4fd47f=this['getFrameDir']();await _0x3c5e56['VDiai'](mkdir,_0x4fd47f,{'recursive':!![]});const _0x3acb89=await this[_0x16c8ce(0x26d)][_0x16c8ce(0x1fa)](_0x5583f7);this[_0x16c8ce(0x263)]=_0x3acb89,_0x3acb89['on'](_0x16c8ce(0x277),_0x4dfa76=>{const _0x5a0df9=_0x16c8ce,_0x1e029f=++this['frameCount'],_0x32c415=join(_0x4fd47f,'frame-'+String(_0x1e029f)['padStart'](0x6,'0')+'.jpg'),_0x59a9d0=writeFile(_0x32c415,Buffer[_0x5a0df9(0x253)](_0x4dfa76[_0x5a0df9(0x283)],'base64'))[_0x5a0df9(0x22c)](()=>undefined)[_0x5a0df9(0x1b8)](()=>_0x3acb89['send'](_0x5a0df9(0x1ec),{'sessionId':_0x4dfa76['sessionId']}))['then'](()=>undefined)[_0x5a0df9(0x22c)](()=>undefined);this[_0x5a0df9(0x1d0)]['push'](_0x59a9d0);}),await _0x3acb89['send'](_0x16c8ce(0x266),{'format':_0x3c5e56[_0x16c8ce(0x254)],'quality':0x4b,'everyNthFrame':0x6}),this['screencastStarted']=!![];}async[_0x253bb1(0x26c)](){const _0x395213=_0x253bb1;if(!this['frameSession']||!this[_0x395213(0x25a)])return;await this['frameSession'][_0x395213(0x1dd)]('Page.stopScreencast')[_0x395213(0x22c)](()=>undefined);}[_0x253bb1(0x1e4)](){const _0x2ba820=_0x253bb1,_0x478b16={'JYqWQ':function(_0x587756,_0x4456ba,_0x2d5d7f){return _0x587756(_0x4456ba,_0x2d5d7f);}};this['queueTraceSample'](),this['traceSampleTimer']=_0x478b16['JYqWQ'](setInterval,()=>this[_0x2ba820(0x1f6)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x253bb1(0x1f6)](){const _0x3f85d7=_0x253bb1;if(this[_0x3f85d7(0x213)])return;this[_0x3f85d7(0x213)]=this['captureTraceSample']()['finally'](()=>{const _0x1c2cf8=_0x3f85d7;this[_0x1c2cf8(0x213)]=null;});}async['stopTraceSampling'](){const _0xa63981=_0x253bb1,_0x38c9a5={'DUfoa':function(_0x4db67d,_0x31a925){return _0x4db67d(_0x31a925);}};this['traceSampleTimer']&&(_0x38c9a5['DUfoa'](clearInterval,this[_0xa63981(0x25b)]),this[_0xa63981(0x25b)]=null),await this[_0xa63981(0x213)]?.[_0xa63981(0x22c)](()=>undefined);}async[_0x253bb1(0x270)](){const _0x33820d=_0x253bb1,_0x3cf3fd={'MQrlQ':_0x33820d(0x27e)},_0x17cef4=this['context']?.['pages']()[0x0];if(!_0x17cef4)return;try{await _0x17cef4[_0x33820d(0x231)](_0x3cf3fd[_0x33820d(0x27f)])[_0x33820d(0x261)](_0x385ce3=>_0x385ce3['tagName'],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x253bb1(0x1de)](){const _0x3b0446=_0x253bb1,_0x7fe880={'NxOCC':function(_0x3eb670,_0x188ed3){return _0x3eb670<_0x188ed3;},'HycMZ':function(_0x1dfc04){return _0x1dfc04();},'XGtCW':function(_0x43c7cc,_0x6aecba,_0x174c4f){return _0x43c7cc(_0x6aecba,_0x174c4f);},'WFiBh':_0x3b0446(0x241),'ZXxec':function(_0xdc25b,_0x2b2e96,_0x1b382c){return _0xdc25b(_0x2b2e96,_0x1b382c);},'vxKMt':_0x3b0446(0x23a),'lxwyC':'-loglevel','zQyzR':_0x3b0446(0x1cb),'npfvm':'-framerate','Pugcx':_0x3b0446(0x20f),'OlLIh':_0x3b0446(0x21e),'tNHXp':'-pix_fmt','gFrwv':_0x3b0446(0x21a)};if(_0x7fe880[_0x3b0446(0x1e6)](this['frameCount'],0x2))return null;const _0x5cd3d3=await _0x7fe880[_0x3b0446(0x222)](resolveFfmpegPath);if(!_0x5cd3d3)return null;const _0x2c8735=_0x7fe880[_0x3b0446(0x1f7)](join,this['params']['cliArtifactDir'],_0x7fe880['WFiBh']);await _0x7fe880[_0x3b0446(0x202)](mkdir,_0x2c8735,{'recursive':!![]});const _0x5e362f=join(_0x2c8735,_0x7fe880[_0x3b0446(0x1ca)]);return await _0x7fe880[_0x3b0446(0x1f7)](execFileAsync,_0x5cd3d3,['-y',_0x3b0446(0x284),_0x7fe880[_0x3b0446(0x22a)],_0x7fe880['zQyzR'],_0x7fe880['npfvm'],'10','-i',join(this['getFrameDir'](),'frame-%06d.jpg'),_0x7fe880[_0x3b0446(0x268)],'scale=trunc(iw/2)*2:trunc(ih/2)*2',_0x3b0446(0x211),_0x7fe880[_0x3b0446(0x233)],_0x7fe880[_0x3b0446(0x28d)],_0x7fe880[_0x3b0446(0x246)],_0x5e362f]),_0x5e362f;}['getFrameDir'](){const _0x4c8692=_0x253bb1,_0x11822e={'txzIZ':_0x4c8692(0x26f)};return join(this['params'][_0x4c8692(0x22d)],_0x11822e['txzIZ']);}}async function delay(_0x36af1c){await new Promise(_0x1805d7=>setTimeout(_0x1805d7,_0x36af1c));}async function resolveFfmpegPath(){const _0x1128f6=_0x253bb1,_0x29a46d={'QPXGX':function(_0x1d9614,_0x475fb8,_0x4b55da,_0x538ea4,_0x5c79cb){return _0x1d9614(_0x475fb8,_0x4b55da,_0x538ea4,_0x5c79cb);},'rRddi':'Library','HUIjc':_0x1128f6(0x26e),'YkCED':'ms-playwright','cQGne':function(_0x2e754e,_0x3a5104){return _0x2e754e(_0x3a5104);},'lyhgF':function(_0x5f5062,_0x2584e1){return _0x5f5062(_0x2584e1);}};if(await canRunFfmpeg(_0x1128f6(0x1c7)))return _0x1128f6(0x1c7);const _0x12f615=[_0x29a46d['QPXGX'](join,homedir(),_0x29a46d['rRddi'],_0x29a46d[_0x1128f6(0x1ed)],_0x1128f6(0x20d)),join(homedir(),_0x1128f6(0x230),_0x29a46d[_0x1128f6(0x22b)])];for(const _0x19841c of _0x12f615){try{const _0x5d157a=await _0x29a46d[_0x1128f6(0x212)](readdir,_0x19841c),_0x5e267e=_0x5d157a[_0x1128f6(0x235)](_0xc0a54b=>_0xc0a54b['startsWith'](_0x1128f6(0x229)))['sort']()[_0x1128f6(0x1be)]()[_0x1128f6(0x1f4)](_0x2c52ef=>[join(_0x19841c,_0x2c52ef,'ffmpeg-mac'),join(_0x19841c,_0x2c52ef,'ffmpeg-linux'),join(_0x19841c,_0x2c52ef,'ffmpeg.exe')]);for(const _0x3e0e87 of _0x5e267e){if(await _0x29a46d[_0x1128f6(0x209)](canRunFfmpeg,_0x3e0e87))return _0x3e0e87;}}catch{}}return null;}async function canRunFfmpeg(_0x599567){const _0x47daca=_0x253bb1,_0xe394bc={'uXENT':'-version'};try{return await execFileAsync(_0x599567,[_0xe394bc[_0x47daca(0x208)]]),!![];}catch{return![];}}function toStepDisplayName(_0x3728c5){const _0x6d4980=_0x253bb1,_0x2f37ee={'luVnw':function(_0x4ebcaf,_0x2dae75){return _0x4ebcaf(_0x2dae75);}},_0x5d44af=_0x2f37ee['luVnw'](basename,_0x3728c5)[_0x6d4980(0x22e)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x6d4980(0x22e)](/^\d+_/,'')[_0x6d4980(0x22e)](/-/g,'\x20');return{'name':_0x5d44af,'isKeyStep':/^key_/i[_0x6d4980(0x1e5)](basename(_0x3728c5))};}function extractShellValue(_0x1cfaef){if(!_0x1cfaef)return null;return _0x1cfaef[0x1]??_0x1cfaef[0x2]??_0x1cfaef[0x3]??null;}function extractOutputOption(_0x1aa15d){const _0xddd489={'BsBcy':function(_0x180b51,_0x4c8941){return _0x180b51(_0x4c8941);}};return _0xddd489['BsBcy'](extractShellValue,_0x1aa15d['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x3b2991,_0x1708dc){const _0x45d965=_0x253bb1,_0x5bbed6={'lQpaA':'execute\x20Nova\x20browser\x20action','rzAgw':_0x45d965(0x20b),'TpOzE':'verify\x20page\x20condition','PuMvp':_0x45d965(0x20c),'afyNz':_0x45d965(0x25d),'ZhNAW':'screenshot','wEVzR':function(_0x2a404b,_0x33a203){return _0x2a404b(_0x33a203);},'FLkeM':_0x45d965(0x206),'hNlrf':'session\x20export','AYtsV':_0x45d965(0x250)};switch(_0x1708dc){case _0x45d965(0x1d6):return _0x45d965(0x21d);case _0x45d965(0x1cd):return _0x5bbed6['lQpaA'];case _0x5bbed6[_0x45d965(0x264)]:return _0x5bbed6['TpOzE'];case _0x5bbed6['PuMvp']:return _0x45d965(0x22f);case _0x5bbed6[_0x45d965(0x1cc)]:return _0x45d965(0x242);case'wait-for':return _0x45d965(0x216);case _0x45d965(0x1ba):{const _0x17d6ca=extractOutputOption(_0x3b2991);if(!_0x17d6ca)return _0x45d965(0x1d8);const {name:_0x444781}=toStepDisplayName(_0x17d6ca);return _0x45d965(0x282)+_0x444781+'`';}case _0x5bbed6[_0x45d965(0x1c6)]:{const _0x41b142=_0x5bbed6['wEVzR'](extractOutputOption,_0x3b2991);if(!_0x41b142)return _0x5bbed6[_0x45d965(0x288)];const {name:_0x36b0bf,isKeyStep:_0x43ca79}=toStepDisplayName(_0x41b142);return _0x43ca79?'capture\x20key\x20step\x20`'+_0x36b0bf+'`':_0x45d965(0x28b)+_0x36b0bf+'`';}case _0x5bbed6['hNlrf']:return _0x5bbed6['AYtsV'];default:return _0x1708dc;}}function getNovaActCliCommandBlockReason(_0x2e11e7){const _0x16028e=_0x253bb1,_0x1d7191={'qKTDh':'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.'},_0x149b8a=parseNovaActCliCommand(_0x2e11e7);if(!_0x149b8a)return _0x16028e(0x1c0);if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x149b8a))return'Nova\x20command\x20`'+_0x149b8a+_0x16028e(0x275);if(_0x149b8a==='verify'&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x16028e(0x1e5)](_0x2e11e7))return _0x1d7191[_0x16028e(0x1d2)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x2e11e7))return _0x16028e(0x289);return null;}function buildFeedbackSection(_0x45e44d){const _0xb60c85=_0x253bb1,_0x36cea1={'THaVf':'en-US','oBMid':'numeric','KEVqg':_0xb60c85(0x201),'PhKNv':'\x20>\x20','zrgvN':_0xb60c85(0x265)};if(!_0x45e44d||_0x45e44d[_0xb60c85(0x24f)][_0xb60c85(0x228)]===0x0)return'';const _0x3a328d=_0x45e44d[_0xb60c85(0x24f)]['map'](_0x17aa1e=>{const _0x1ed548=_0xb60c85,_0x578715=new Date(_0x17aa1e['createdAt'])['toLocaleDateString'](_0x36cea1[_0x1ed548(0x1f5)],{'month':'short','day':_0x36cea1['oBMid']}),_0x5a8990=_0x17aa1e['authorName']||_0x17aa1e['authorEmail']||_0x36cea1[_0x1ed548(0x257)],_0x52a759=_0x17aa1e['domRef']?'\x20(on\x20element:\x20<'+(_0x17aa1e['domRef']['selector'][_0x1ed548(0x1ea)](_0x36cea1[_0x1ed548(0x1c3)])['pop']()?.['split'](':')[0x0]||_0x36cea1[_0x1ed548(0x1e9)])+_0x1ed548(0x27a)+(_0x17aa1e['domRef'][_0x1ed548(0x27d)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x17aa1e['id']+_0x1ed548(0x248)+_0x5a8990+'**\x20('+_0x578715+'):\x20\x22'+_0x17aa1e[_0x1ed548(0x1d4)]+'\x22'+_0x52a759;})['join']('\x0a');return _0xb60c85(0x26a)+_0x3a328d;}function buildNovaSharedOptionsInstruction(_0x4c58fe){const _0x13db93=_0x253bb1;if(!_0x4c58fe[_0x13db93(0x279)]())return _0x13db93(0x267);return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x4c58fe;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x2abf4f){const _0x1f066a=_0x253bb1,_0x570be0={'uRZVa':function(_0x304e3c,_0x353ae7,_0x560159){return _0x304e3c(_0x353ae7,_0x560159);},'fwAJu':function(_0x596c5e,_0x2874b9){return _0x596c5e(_0x2874b9);},'cakoQ':function(_0x1e0961,_0xdd753){return _0x1e0961(_0xdd753);},'yWRuF':function(_0x4fb2f3,_0x325947){return _0x4fb2f3(_0x325947);}},{novaCommandPrefix:_0x28fe8d,novaSharedOptionsSuffix:_0x5cdd1c,cliArtifactDir:_0x47723a,url:_0x3595aa}=_0x2abf4f,_0x1cd1c6=buildCliArtifactPath(_0x47723a,'00_initial-state.yml'),_0x4f8ea4=buildCliArtifactPath(_0x47723a,_0x1f066a(0x1fd)),_0x3aece4=buildCliArtifactPath(_0x47723a,'02_final-state.yml'),_0x21b51d=_0x570be0[_0x1f066a(0x217)](buildCliArtifactPath,_0x47723a,'03_final-state.png');return _0x1f066a(0x21c)+_0x28fe8d+'\x0a\x0a'+_0x570be0[_0x1f066a(0x1fc)](buildNovaSharedOptionsInstruction,_0x5cdd1c)+_0x1f066a(0x23b)+_0x28fe8d+_0x1f066a(0x27c)+_0x570be0[_0x1f066a(0x24b)](quoteShellArg,_0x3595aa)+'\x20'+_0x5cdd1c+_0x1f066a(0x24e)+_0x28fe8d+_0x1f066a(0x1c2)+_0x570be0[_0x1f066a(0x1fc)](quoteShellArg,_0x1cd1c6)+'\x20'+_0x5cdd1c+'`\x0a3.\x20Run\x20`'+_0x28fe8d+'\x20screenshot\x20--output\x20'+_0x570be0[_0x1f066a(0x24b)](quoteShellArg,_0x4f8ea4)+'\x20'+_0x5cdd1c+_0x1f066a(0x1d5)+_0x28fe8d+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x28fe8d+_0x1f066a(0x1c2)+quoteShellArg(_0x3aece4)+'\x20'+_0x5cdd1c+'`\x0a6.\x20Run\x20`'+_0x28fe8d+'\x20screenshot\x20--output\x20'+_0x570be0[_0x1f066a(0x239)](quoteShellArg,_0x21b51d)+'\x20'+_0x5cdd1c+_0x1f066a(0x1d3)+_0x47723a+_0x1f066a(0x21f);}export function buildVerifyFeatureNovaCliPrompt(_0x7ec535){const _0xdfb798=_0x253bb1,_0x1f7413={'ghigb':function(_0xa3ab34,_0x31ca47){return _0xa3ab34(_0x31ca47);},'tLKZu':function(_0x70fb9a,_0x550a56,_0x308b86){return _0x70fb9a(_0x550a56,_0x308b86);},'hGCGX':_0xdfb798(0x1fd),'mzaXB':function(_0x52065d,_0x1c7774){return _0x52065d(_0x1c7774);}},{checklistItem:_0x2e3a3f,itemFeedback:_0x87665e,taskDescription:_0x166ffb,novaCommandPrefix:_0x49bb37,novaSharedOptionsSuffix:_0x2d0c27,cliArtifactDir:_0x4e119d,url:_0x67df78,loginInstructions:_0x17595b}=_0x7ec535,_0x5da318=_0x2e3a3f['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x2e3a3f[_0xdfb798(0x1e7)]:'',_0x3b30ec=_0x1f7413[_0xdfb798(0x280)](buildFeedbackSection,_0x87665e),_0x55d35d=_0x87665e?.[_0xdfb798(0x1ee)]?_0xdfb798(0x27b)+_0x87665e[_0xdfb798(0x1ee)]:'',_0x1fbe55=_0x17595b?_0xdfb798(0x219)+_0x17595b+_0xdfb798(0x218):'',_0x5ba57e=_0x1f7413['tLKZu'](buildCliArtifactPath,_0x4e119d,'01_initial.yml'),_0x541ba5=_0x1f7413[_0xdfb798(0x20a)](buildCliArtifactPath,_0x4e119d,_0x1f7413[_0xdfb798(0x1e1)]),_0x4d0904=buildCliArtifactPath(_0x4e119d,'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'+_0x2e3a3f['description']+_0x5da318+_0x3b30ec+_0x55d35d+_0xdfb798(0x232)+_0x166ffb+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x67df78+_0xdfb798(0x1fe)+_0x1fbe55+_0xdfb798(0x244)+_0x49bb37+_0xdfb798(0x27c)+_0x1f7413['ghigb'](quoteShellArg,_0x67df78)+'\x20'+_0x2d0c27+_0xdfb798(0x205)+_0x4e119d+_0xdfb798(0x24a)+_0x49bb37+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x5ba57e)+'\x20'+_0x2d0c27+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x49bb37+'\x20screenshot\x20--output\x20'+_0x1f7413[_0xdfb798(0x1f0)](quoteShellArg,_0x541ba5)+'\x20'+_0x2d0c27+'`.\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`'+_0x4d0904+'`.\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`'+_0x49bb37+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x2d0c27['trim']()?'`'+_0x2d0c27+'`':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`')+'\x0a\x0a'+_0x1f7413[_0xdfb798(0x280)](buildNovaSharedOptionsInstruction,_0x2d0c27)+_0xdfb798(0x28f)+_0x49bb37+_0xdfb798(0x251)+_0x2d0c27+'`\x0a-\x20`'+_0x49bb37+_0xdfb798(0x260)+_0x2d0c27+'`\x0a-\x20`'+_0x49bb37+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x5ba57e)+'\x20'+_0x2d0c27+'`\x0a-\x20`'+_0x49bb37+_0xdfb798(0x276)+_0x1f7413['mzaXB'](quoteShellArg,_0x4d0904)+'\x20'+_0x2d0c27+_0xdfb798(0x272);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x463c73){const _0x53392d=_0x253bb1,_0x15aa33={'dqHxY':function(_0x313c19,_0x2e0b48){return _0x313c19===_0x2e0b48;}},_0x563f94=[..._0x463c73['keys']()][_0x53392d(0x1c5)]();let _0x25da6e=0x0;for(const _0x2843f8 of _0x463c73['values']()){_0x25da6e+=_0x2843f8;}return{'cliCommandCount':_0x25da6e,'cliCommandsSeen':_0x563f94,'noCliCommandsCalled':_0x15aa33['dqHxY'](_0x25da6e,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x56802c,_0x36c279){const _0x25117a=_0x253bb1,_0x47191b={'BFcJf':function(_0x1fc1b8,_0x29ef65){return _0x1fc1b8!==_0x29ef65;},'fixzF':function(_0x5694b2,_0x3b767b){return _0x5694b2(_0x3b767b);},'RQkGv':function(_0x178f01,_0x311536){return _0x178f01!==_0x311536;},'HqtLn':'Bash','XzWMc':_0x25117a(0x1bb),'PxRYu':function(_0x440556,_0xa5dbaa,_0x2910b6){return _0x440556(_0xa5dbaa,_0x2910b6);}},_0x1cd65d=new Map(),_0x3a3c44=async _0x544af0=>{const _0x153c3f=_0x25117a;if(_0x544af0[_0x153c3f(0x1b6)]!=='PreToolUse')return{};const _0x5df96b=_0x544af0;if(_0x47191b['BFcJf'](_0x5df96b[_0x153c3f(0x271)],_0x153c3f(0x203)))return{};const _0x20831b=_0x5df96b[_0x153c3f(0x1c9)],_0x4bf265=_0x47191b['fixzF'](extractBashCommand,_0x20831b);if(!_0x4bf265)return{};const _0x51932f=_0x47191b[_0x153c3f(0x20e)](getNovaActCliCommandBlockReason,_0x4bf265);if(!_0x51932f)return{};return{'decision':'block','reason':_0x51932f};},_0x52bf78=async _0x2c1e57=>{const _0x5857c6=_0x25117a;if(_0x2c1e57['hook_event_name']!==_0x5857c6(0x238))return{};const _0x2dcfa6=_0x2c1e57;if(_0x47191b['RQkGv'](_0x2dcfa6[_0x5857c6(0x271)],_0x47191b['HqtLn']))return{};const _0x3900a4=_0x2dcfa6['tool_input'],_0x24b290=_0x47191b[_0x5857c6(0x20e)](extractBashCommand,_0x3900a4);if(!_0x24b290)return{};const _0x528796=parseNovaActCliCommand(_0x24b290);if(!_0x528796)return{};_0x1cd65d['set'](_0x528796,(_0x1cd65d['get'](_0x528796)||0x0)+0x1),_0x56802c[_0x5857c6(0x225)](_0x47191b[_0x5857c6(0x287)],{'subcommand':_0x528796}),_0x56802c[_0x5857c6(0x291)](_0x5857c6(0x1bb),{'subcommand':_0x528796,'commandPreview':_0x47191b['fixzF'](previewNovaActCliCommand,_0x24b290)}),console['log'](_0x5857c6(0x215)+_0x47191b['PxRYu'](formatNovaActCliLog,_0x24b290,_0x528796));if(_0x528796==='session\x20create'&&_0x36c279)try{await _0x36c279['start']();}catch(_0x458664){await _0x56802c[_0x5857c6(0x237)]('nova_act_artifact_recording',_0x458664,{'transport':'nova-act-cli'});}return{};},_0x5e1a59=async _0x4cd8b4=>{const _0x276487=_0x25117a;if(_0x47191b[_0x276487(0x1c8)](_0x4cd8b4[_0x276487(0x1b6)],_0x276487(0x1da)))return{};const _0x15b78b=_0x4cd8b4;if(_0x15b78b['tool_name']!==_0x47191b[_0x276487(0x1ce)])return{};return await _0x56802c[_0x276487(0x237)](_0x276487(0x204),_0x15b78b[_0x276487(0x1cb)],{'transport':'nova-act-cli','toolName':_0x276487(0x203)}),{};};return{'preToolUseHook':_0x3a3c44,'postToolUseHook':_0x52bf78,'postToolUseFailureHook':_0x5e1a59,'commandCounts':_0x1cd65d};}async function runNovaLifecycleCommand(_0x31c3c9){const _0xea671c=_0x253bb1,_0x4bc195={'nXxWc':function(_0x35d658,_0x1948d2){return _0x35d658(_0x1948d2);},'llarV':function(_0x1aacda,_0x93797d){return _0x1aacda??_0x93797d;},'GlvrP':function(_0x49197f,_0x179a85){return _0x49197f(_0x179a85);},'fouAI':function(_0x311a73,_0x68db2){return _0x311a73(_0x68db2);}},{novaOptions:_0x48fba6,commandArgs:_0x581979,telemetry:_0x2d50da,phase:_0x63477d,metadata:_0x34c5a7,timeoutMs:_0x2050cf}=_0x31c3c9;_0x2d50da['trackPhaseStart'](_0x63477d,_0x34c5a7);try{const _0x4e9711=await _0x4bc195[_0xea671c(0x1db)](runNovaActCliCommand,{..._0x48fba6,'commandArgs':_0x581979,'cwd':process[_0xea671c(0x1df)](),'env':process[_0xea671c(0x24c)],'timeoutMs':_0x4bc195['llarV'](_0x2050cf,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x2d50da['trackPhaseEnd'](_0x63477d,{..._0x34c5a7,'subcommand':_0x4e9711['invocation']['subcommand'],'commandPreview':previewNovaActCliCommand(_0x4e9711['invocation']['shellCommand']),'stdoutPreview':_0x4bc195[_0xea671c(0x1c4)](previewNovaActCliCommand,_0x4e9711['stdout']),'stderrPreview':_0x4bc195[_0xea671c(0x1db)](previewNovaActCliCommand,_0x4e9711[_0xea671c(0x28c)]),'logDir':_0x4bc195[_0xea671c(0x24d)](extractNovaActLogDir,_0x4e9711[_0xea671c(0x247)])});}catch(_0x18ed7a){await _0x2d50da[_0xea671c(0x237)](_0x63477d,_0x18ed7a,_0x34c5a7);throw _0x18ed7a;}}export async function finalizeVerifyFeatureNovaCliSession(_0x37b8d5){const _0x47364f=_0x253bb1,_0x3edb21={'qmCuF':'key_final-state.png','Nzpfh':'nova_act_final_snapshot','tCiEl':_0x47364f(0x1ba),'UDXua':'final-state.yaml','btcvv':_0x47364f(0x274),'PuQfJ':function(_0x11c666,_0x2f2207,_0x781141){return _0x11c666(_0x2f2207,_0x781141);},'bwMax':_0x47364f(0x281),'zuyWF':'export','EOpVR':'--report','telDF':function(_0x3b343,_0xa6ed1d,_0x24a704){return _0x3b343(_0xa6ed1d,_0x24a704);},'HyAJN':'session','LVvQy':_0x47364f(0x1f1),'ZkdGq':function(_0x471c9a,_0x350d41){return _0x471c9a(_0x350d41);}},{telemetry:_0x2f55c7,novaOptions:_0x394649,cliArtifactDir:_0x56b45e,transportMetadata:_0x22426e,artifactRecorder:_0x39bff7}=_0x37b8d5,_0x1cdf78=[{'phase':_0x47364f(0x269),'commandArgs':['screenshot',_0x47364f(0x274),buildCliArtifactPath(_0x56b45e,_0x3edb21['qmCuF'])]},{'phase':_0x3edb21['Nzpfh'],'commandArgs':[_0x3edb21[_0x47364f(0x200)],'--output',buildCliArtifactPath(_0x56b45e,_0x3edb21[_0x47364f(0x23c)])]},{'phase':_0x47364f(0x221),'commandArgs':[_0x47364f(0x1ff),_0x47364f(0x234),_0x47364f(0x1b7),_0x47364f(0x262),_0x3edb21['btcvv'],_0x3edb21['PuQfJ'](buildCliArtifactPath,_0x56b45e,'nova-session-export.json')]},{'phase':_0x3edb21['bwMax'],'commandArgs':['session',_0x3edb21[_0x47364f(0x1d9)],_0x3edb21['EOpVR'],_0x47364f(0x259),_0x3edb21[_0x47364f(0x28e)](buildCliArtifactPath,_0x56b45e,'nova-report')]},{'phase':'nova_act_session_close','commandArgs':[_0x3edb21[_0x47364f(0x214)],_0x3edb21['LVvQy']]}];for(const _0x2b0704 of _0x1cdf78){_0x2b0704['phase']===_0x47364f(0x1f8)&&await _0x39bff7?.[_0x47364f(0x23f)]();try{await _0x3edb21['ZkdGq'](runNovaLifecycleCommand,{'novaOptions':_0x394649,'commandArgs':[..._0x2b0704['commandArgs']],'telemetry':_0x2f55c7,'phase':_0x2b0704[_0x47364f(0x25f)],'metadata':_0x22426e});}catch{}}}function _0x2885(){const _0x274119=['flatMap','THaVf','queueTraceSample','XGtCW','nova_act_session_close','command','newCDPSession','shellCommand','fwAJu','01_initial-state.png','\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','session','tCiEl','Reviewer','ZXxec','Bash','nova_act_command_failure','`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','capture\x20screenshot','TZIcM','uXENT','lyhgF','tLKZu','verify','ask','ms-playwright','fixzF','-vf','nova_act_artifact_recording','-c:v','cQGne','traceSampleInFlight','HyAJN','[nova-act-cli]\x20','wait\x20for\x20page\x20condition','uRZVa','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','yuv420p','328065LoIXdz','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','create\x20Nova\x20browser\x20session','libvpx-vp9','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','transportMetadata','nova_act_session_export','HycMZ','startAttempted','telemetry','trackPhaseStart','619874NgxDQO','yKyIw','length','ffmpeg-','lxwyC','YkCED','catch','cliArtifactDir','replace','ask\x20page\x20question','.cache','locator','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','OlLIh','export','filter','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','trackPhaseError','PostToolUse','yWRuF','session-recording.webm','\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`','UDXua','7464340wRcrqS','6233760lPgQBl','stop','145744PpDTbz','videos','navigate\x20browser','CTyJr','\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`','traceSampleCount','gFrwv','stdout',']\x20**','cdp_endpoint','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','cakoQ','env','fouAI','`\x0a2.\x20Run\x20`','unaddressedComments','export\x20Nova\x20session','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','from','cyTTZ','sessionId','kOeNe','KEVqg','40wjfdmx','--output-dir','screencastStarted','traceSampleTimer','name','goto','485590mLhEjb','phase','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','evaluate','json','frameSession','rzAgw','element','Page.startScreencast','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.','Pugcx','nova_act_final_screenshot','\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','browser','stopScreencast','context','Caches','nova-video-frames','captureTraceSample','tool_name','`\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.','push','--output','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','\x20screenshot\x20--output\x20','Page.screencastFrame','4804158bvoFbF','trim','>\x20\x22','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','\x20session\x20create\x20','textContent','body','MQrlQ','ghigb','nova_act_session_report','capture\x20snapshot\x20`','data','-hide_banner','trace.zip','connectOverCDP','XzWMc','FLkeM','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','OwjBe','capture\x20step\x20`','stderr','tNHXp','telDF','\x0a\x0aExamples:\x0a-\x20`','zip','trackPhaseEnd','2jJKZjW','args','hook_event_name','--format','finally','novaOptions','snapshot','nova_act_command','qZXbg','stopped','reverse','utf-8','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','\x20snapshot\x20--output\x20','PhKNv','GlvrP','sort','ZhNAW','ffmpeg','BFcJf','tool_input','vxKMt','error','afyNz','execute','HqtLn','tracing','frameWrites','readSessionMetadataWithRetry','qKTDh','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','content','`\x0a4.\x20Run\x20one\x20batched\x20`','session\x20create','nova_act_artifact_recording_stop','capture\x20snapshot','zuyWF','PostToolUseFailure','nXxWc','state','send','encodeScreencastVideo','cwd','frameCount','hGCGX','uIZDi','tracingStarted','startTraceSampling','test','NxOCC','notes','nova-artifacts.zip','zrgvN','split','133IwRmer','Page.screencastFrameAck','HUIjc','canonicalFlow','.act_cli','mzaXB','close','-qr','params'];_0x2885=function(){return _0x274119;};return _0x2885();}export async function harvestVerifyFeatureNovaCliArtifacts(_0x75290d){const _0x34c417=_0x253bb1,_0x3de71b={'uIZDi':function(_0x1166fa,_0x4130e3,_0x19f70c){return _0x1166fa(_0x4130e3,_0x19f70c);},'EZXOX':function(_0x1fa7f0,_0x4dd6c7){return _0x1fa7f0(_0x4dd6c7);}},{cwd:_0x333489,cliArtifactDir:_0x969b44,startTime:_0xf78194}=_0x75290d,_0x370c61=[];await _0x3de71b[_0x34c417(0x1e2)](mkdir,_0x969b44,{'recursive':!![]});const _0x5d2233=await _0x3de71b['uIZDi'](readdir,_0x333489,{'withFileTypes':!![]});for(const _0xf13993 of _0x5d2233){if(!_0xf13993['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x34c417(0x1e5)](_0xf13993['name']))continue;const _0x5fe4b5=_0x3de71b[_0x34c417(0x1e2)](join,_0x333489,_0xf13993['name']),_0x1c0d94=await _0x3de71b['EZXOX'](stat,_0x5fe4b5);if(_0x1c0d94['mtimeMs']+0x7d0<_0xf78194)continue;const _0x5cb15b=buildCliArtifactPath(_0x969b44,_0xf13993['name']);if(_0x5fe4b5===_0x5cb15b)continue;await rename(_0x5fe4b5,_0x5cb15b),_0x370c61[_0x34c417(0x273)](_0xf13993[_0x34c417(0x25c)]);}return _0x370c61[_0x34c417(0x1c5)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x426702){const _0xc237fe={'EsKWd':function(_0x277129,_0x832e5e){return _0x277129(_0x832e5e);}},_0x524c9d=join(_0x426702,'trace.zip');try{return{'buffer':await _0xc237fe['EsKWd'](readFile,_0x524c9d),'source':_0x524c9d};}catch{return{'buffer':await _0xc237fe['EsKWd'](zipVerifyFeatureNovaArtifacts,_0x426702),'source':_0x426702};}}async function zipVerifyFeatureNovaArtifacts(_0x3e5e90){const _0x13f2fd=_0x253bb1,_0x26093e={'yKyIw':function(_0x3334b9,_0x437e6c,_0x463e9f,_0x2fe6f3){return _0x3334b9(_0x437e6c,_0x463e9f,_0x2fe6f3);},'OwjBe':_0x13f2fd(0x1e8),'TZIcM':_0x13f2fd(0x1f2),'eHAuA':'nova-user-data/*'},_0x3b3620=_0x26093e[_0x13f2fd(0x227)](join,_0x3e5e90,'..',_0x26093e[_0x13f2fd(0x28a)]);try{return await _0x26093e[_0x13f2fd(0x227)](execFileAsync,_0x13f2fd(0x290),[_0x26093e[_0x13f2fd(0x207)],_0x3b3620,'.','-x',_0x26093e['eHAuA']],{'cwd':_0x3e5e90}),await readFile(_0x3b3620);}finally{await rm(_0x3b3620,{'force':!![]});}}function _0x4cc5(_0x76c50a,_0x130249){_0x76c50a=_0x76c50a-0x1b4;const _0x28859c=_0x2885();let _0x4cc57a=_0x28859c[_0x76c50a];return _0x4cc57a;}export function buildNovaActCliDiagnostics(_0x262aa4){const _0xc43620=_0x253bb1,_0x228501=buildNovaActCliInvocation(_0x262aa4[_0xc43620(0x1b9)],_0x262aa4['commandArgs']);return{'command':_0x228501[_0xc43620(0x1f9)],'args':_0x228501[_0xc43620(0x1b5)],'commandPreview':previewNovaActCliCommand(_0x228501[_0xc43620(0x1fb)]),'subcommand':_0x228501['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x262aa4[_0xc43620(0x1b9)],_0x262aa4['commandArgs'])};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x16ca94,_0x2c81e7){const _0x2f7027=_0x1eb2,_0x5e068c=_0x16ca94();while(!![]){try{const _0x59931a=-parseInt(_0x2f7027(0x1d1))/0x1+-parseInt(_0x2f7027(0x1ab))/0x2+parseInt(_0x2f7027(0x194))/0x3*(parseInt(_0x2f7027(0x1ac))/0x4)+-parseInt(_0x2f7027(0x1a5))/0x5*(-parseInt(_0x2f7027(0x1b2))/0x6)+-parseInt(_0x2f7027(0x1ea))/0x7+-parseInt(_0x2f7027(0x1e5))/0x8*(-parseInt(_0x2f7027(0x1e2))/0x9)+-parseInt(_0x2f7027(0x1d9))/0xa;if(_0x59931a===_0x2c81e7)break;else _0x5e068c['push'](_0x5e068c['shift']());}catch(_0x26e8a6){_0x5e068c['push'](_0x5e068c['shift']());}}}(_0x5c77,0x21ccc));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';function _0x1eb2(_0x4a0130,_0x1682d2){_0x4a0130=_0x4a0130-0x193;const _0x5c77c2=_0x5c77();let _0x1eb295=_0x5c77c2[_0x4a0130];return _0x1eb295;}const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x136ba8,_0x5b18f6=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x291c41=_0x1eb2,_0x1b4e03={'jQAQH':function(_0x6b877b,_0x398383){return _0x6b877b>_0x398383;}};return _0x1b4e03[_0x291c41(0x1a6)](_0x136ba8['length'],_0x5b18f6)?_0x136ba8[_0x291c41(0x1d4)](0x0,_0x5b18f6)+_0x291c41(0x1db):_0x136ba8;}function extractShellValue(_0x7002a6){if(!_0x7002a6)return null;return _0x7002a6[0x1]??_0x7002a6[0x2]??_0x7002a6[0x3]??null;}function extractFirstCommandArgument(_0xa25042,_0x32f965){const _0x4d1b1c=_0x1eb2,_0x575888={'CsFYG':_0x4d1b1c(0x1de)},_0x44a6fe=_0x32f965[_0x4d1b1c(0x1c6)](/[.*+?^${}()|[\]\\]/g,_0x575888['CsFYG']);return extractShellValue(_0xa25042[_0x4d1b1c(0x198)](new RegExp('(?:^|\x5cs)'+_0x44a6fe+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x33bb1c){const _0x2720db=_0x1eb2,_0x1bf1f9={'DGShQ':'target','iaIpT':function(_0x2935ae,_0x4c430a,_0xda271e){return _0x2935ae(_0x4c430a,_0xda271e);}};if(!_0x33bb1c)return _0x1bf1f9['DGShQ'];if(/^e\d+$/i['test'](_0x33bb1c))return'ref\x20'+_0x33bb1c;return JSON[_0x2720db(0x19a)](_0x1bf1f9[_0x2720db(0x1ad)](truncatePreview,_0x33bb1c,0x78));}function formatRangerwrightCliLog(_0x35b420,_0x397e69){const _0x329ea9=_0x1eb2,_0x1e29e1={'zdghs':function(_0x38b195,_0x10b493,_0x2a1002){return _0x38b195(_0x10b493,_0x2a1002);},'OaNJa':_0x329ea9(0x1a1),'MLFqp':function(_0x58555e,_0x27ab2b){return _0x58555e(_0x27ab2b);},'bWnLR':'fill-and-inspect','AAtqr':_0x329ea9(0x1bd),'iklQi':'close\x20browser\x20session'};switch(_0x397e69){case'open-and-inspect':{const _0x2e2391=_0x1e29e1['zdghs'](extractFirstCommandArgument,_0x35b420,_0x397e69);return _0x2e2391?'open\x20and\x20inspect\x20'+_0x2e2391:_0x329ea9(0x1df);}case _0x1e29e1['OaNJa']:return'click\x20and\x20inspect\x20'+_0x1e29e1['MLFqp'](formatCommandTarget,extractFirstCommandArgument(_0x35b420,_0x397e69));case _0x329ea9(0x1c0):case _0x1e29e1['bWnLR']:return'fill\x20'+formatCommandTarget(_0x1e29e1['zdghs'](extractFirstCommandArgument,_0x35b420,_0x397e69));case _0x329ea9(0x1e7):return _0x329ea9(0x1e1);case'inspect':return'inspect\x20page';case _0x329ea9(0x1cc):return _0x329ea9(0x1e0);case _0x1e29e1[_0x329ea9(0x1a8)]:return _0x329ea9(0x1b3);case _0x329ea9(0x1e9):return _0x1e29e1['iklQi'];default:return _0x397e69;}}function renderScenarioSections(_0x4daf58){const _0x257088=_0x1eb2,_0x44a63a={'JbQTu':'element'},{checklistItem:_0x38fc46,itemFeedback:_0x18a21a}=_0x4daf58,_0x2d7eb6=_0x38fc46[_0x257088(0x1c3)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x38fc46[_0x257088(0x1c3)]:'';let _0x2d1c65='';if(_0x18a21a&&_0x18a21a['unaddressedComments']['length']>0x0){const _0x45bdc0=_0x18a21a[_0x257088(0x1d2)][_0x257088(0x1b8)](_0x26b029=>{const _0x1cf144=_0x257088,_0xd0af3b=new Date(_0x26b029['createdAt'])[_0x1cf144(0x1d0)]('en-US',{'month':_0x1cf144(0x193),'day':'numeric'}),_0x4b5db7=_0x26b029['authorName']||_0x26b029[_0x1cf144(0x1cb)]||_0x1cf144(0x1b1),_0xa04dae=_0x26b029['domRef']?_0x1cf144(0x1da)+(_0x26b029['domRef']['selector']['split']('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x44a63a[_0x1cf144(0x1b9)])+'>\x20\x22'+(_0x26b029['domRef'][_0x1cf144(0x19b)]||'')[_0x1cf144(0x1d4)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x26b029['id']+']\x20'+_0x4b5db7+'\x20('+_0xd0af3b+'):\x20\x22'+_0x26b029[_0x1cf144(0x1d6)]+'\x22'+_0xa04dae;})[_0x257088(0x1a4)]('\x0a');_0x2d1c65=_0x257088(0x1e3)+_0x45bdc0;}const _0x14b041=_0x18a21a?.[_0x257088(0x1a3)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x18a21a['canonicalFlow']:'';return''+_0x38fc46[_0x257088(0x1c8)]+_0x2d7eb6+_0x2d1c65+_0x14b041;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x28f807){const _0x5bdc2f=_0x1eb2,_0x17e287={'mokld':_0x5bdc2f(0x1e6),'xBoUP':function(_0x45243e,_0x3e552c){return _0x45243e(_0x3e552c);}},{checklistItem:_0x20fed9,itemFeedback:_0x1b7e32,taskDescription:_0x4f8b81,commandPrefix:_0xa66994,isCdpMode:_0x3ff0a9,url:_0x533679,cdpEndpoint:_0x1eff07,loginInstructions:_0xea9ab6}=_0x28f807,_0x31bdec=_0x17e287[_0x5bdc2f(0x1af)],_0x26029b='key_99_final-state.png',_0x552238=_0x3ff0a9?_0xa66994+_0x5bdc2f(0x1be)+_0x17e287['xBoUP'](quoteShellArg,_0x31bdec):_0xa66994+_0x5bdc2f(0x19d)+_0x17e287[_0x5bdc2f(0x1bf)](quoteShellArg,_0x533679??_0x5bdc2f(0x1b5))+_0x5bdc2f(0x1ba)+quoteShellArg(_0x31bdec),_0x37267f=_0x3ff0a9?_0x5bdc2f(0x1c9)+_0x1eff07+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':_0x5bdc2f(0x1c2)+_0x533679+'\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.',_0x4276e7=_0xea9ab6?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0xea9ab6+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return _0x5bdc2f(0x19c)+renderScenarioSections({'checklistItem':_0x20fed9,'itemFeedback':_0x1b7e32})+_0x5bdc2f(0x1b4)+_0x4f8b81+'\x0a\x0a'+_0x37267f+_0x4276e7+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0xa66994+'\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'+_0x552238+_0x5bdc2f(0x195)+_0xa66994+_0x5bdc2f(0x196)+quoteShellArg(_0x26029b)+_0x5bdc2f(0x1bb);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x1384c2){const _0x17dc77=_0x1eb2,_0x23b5e9={'cxTFv':'01_mozilla-homepage.png','Tiwsj':'key_02_learn-more.png','RlwZF':function(_0x1f8914,_0x2f011a){return _0x1f8914(_0x2f011a);}},_0x256611=_0x23b5e9['cxTFv'],_0x20d03b=_0x23b5e9[_0x17dc77(0x1d8)];return'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'+_0x1384c2[_0x17dc77(0x1ca)]+'\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`'+_0x1384c2['commandPrefix']+_0x17dc77(0x19d)+quoteShellArg(_0x1384c2[_0x17dc77(0x19e)])+'\x20--screenshot-path\x20'+_0x23b5e9[_0x17dc77(0x1a2)](quoteShellArg,_0x256611)+_0x17dc77(0x1a0)+_0x1384c2['commandPrefix']+'\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20'+_0x23b5e9['RlwZF'](quoteShellArg,_0x20d03b)+_0x17dc77(0x1d7);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x34c7a3){const _0x5c1cf7=_0x1eb2,_0x277122=[..._0x34c7a3[_0x5c1cf7(0x1c1)]()][_0x5c1cf7(0x1dd)]();let _0x1cb2b0=0x0;for(const _0x39a4f7 of _0x34c7a3['values']()){_0x1cb2b0+=_0x39a4f7;}return{'cliCommandCount':_0x1cb2b0,'cliCommandsSeen':_0x277122,'noCliCommandsCalled':_0x1cb2b0===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0x5d9cb9){const _0x59c99f=_0x1eb2,_0x47dbf1={'lFtaf':function(_0x514260,_0x2a332a){return _0x514260!==_0x2a332a;},'rjMGI':function(_0x1b0675,_0x3780c4){return _0x1b0675!==_0x3780c4;},'uYDEN':function(_0x3b3169,_0x29b27a){return _0x3b3169(_0x29b27a);},'ITsQc':function(_0x2c13bc,_0x2e0cb4){return _0x2c13bc!==_0x2e0cb4;},'UXUwY':_0x59c99f(0x1dc),'JqZcY':'Bash','RMXnY':'rangerwright-cli'},_0x3e7016=new Map(),_0x5a2783=async _0x2b4537=>{const _0x129807=_0x59c99f;if(_0x47dbf1['lFtaf'](_0x2b4537['hook_event_name'],'PostToolUse'))return{};const _0x58a84f=_0x2b4537;if(_0x47dbf1['rjMGI'](_0x58a84f['tool_name'],_0x129807(0x1aa)))return{};const _0x2339c8=_0x58a84f[_0x129807(0x1e4)],_0x388f48=extractBashCommand(_0x2339c8);if(!_0x388f48)return{};const _0x50fa3e=parseRangerwrightCliCommand(_0x388f48);if(!_0x50fa3e)return{};return _0x3e7016['set'](_0x50fa3e,(_0x3e7016[_0x129807(0x1b6)](_0x50fa3e)||0x0)+0x1),_0x5d9cb9[_0x129807(0x1a7)](_0x129807(0x1c4),{'subcommand':_0x50fa3e}),_0x5d9cb9['trackPhaseEnd'](_0x129807(0x1c4),{'subcommand':_0x50fa3e,'commandPreview':_0x47dbf1[_0x129807(0x1d3)](truncatePreview,_0x388f48)}),console[_0x129807(0x1cf)](_0x129807(0x1ce)+formatRangerwrightCliLog(_0x388f48,_0x50fa3e)),{};},_0x1d561d=async _0x2e6887=>{const _0x4af54e=_0x59c99f;if(_0x47dbf1[_0x4af54e(0x19f)](_0x2e6887[_0x4af54e(0x1e8)],_0x47dbf1[_0x4af54e(0x1c7)]))return{};const _0x520f41=_0x2e6887;if(_0x520f41['tool_name']!==_0x47dbf1['JqZcY'])return{};return await _0x5d9cb9[_0x4af54e(0x1b7)](_0x4af54e(0x1bc),_0x520f41['error'],{'transport':_0x47dbf1[_0x4af54e(0x1c5)],'toolName':_0x4af54e(0x1aa)}),{};};return{'postToolUseHook':_0x5a2783,'postToolUseFailureHook':_0x1d561d,'commandCounts':_0x3e7016};}async function runRangerwrightLifecycleCommand(_0x5a1241){const _0x3abd80=_0x1eb2,_0x6370c0={'FUWrU':function(_0x18b6c0,_0x401b89){return _0x18b6c0??_0x401b89;}},{options:_0x479ceb,commandArgs:_0x506549,env:_0x56e7f0,telemetry:_0x15ac86,phase:_0x3404b4,metadata:_0x9519b1,timeoutMs:_0x2b2902}=_0x5a1241;_0x15ac86['trackPhaseStart'](_0x3404b4,_0x9519b1);try{const _0x1a9954=await runRangerwrightCliCommand({..._0x479ceb,'commandArgs':_0x506549,'cwd':process['cwd'](),'env':_0x56e7f0,'timeoutMs':_0x6370c0[_0x3abd80(0x199)](_0x2b2902,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x15ac86[_0x3abd80(0x1b0)](_0x3404b4,{..._0x9519b1,'subcommand':_0x1a9954['invocation']['subcommand'],'stdoutPreview':truncatePreview(_0x1a9954['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x1a9954[_0x3abd80(0x1d5)],0x7d0)});}catch(_0x251cec){await _0x15ac86[_0x3abd80(0x1b7)](_0x3404b4,_0x251cec,_0x9519b1);throw _0x251cec;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x37f299){const _0x50225b=_0x1eb2,_0x4c9aa2={'QcmFW':'rangerwright_cli_tracing_stop','bdiuC':'rangerwright_cli_video_stop','osCAF':_0x50225b(0x1cd),'ATTFa':function(_0x45e7c9,_0x3f013b){return _0x45e7c9(_0x3f013b);}},{telemetry:_0x822e2,rangerwrightOptions:_0x14bfce,env:_0x33db4e,transportMetadata:_0x27ce2f}=_0x37f299,_0x505721=[{'phase':_0x4c9aa2['QcmFW'],'commandArgs':['tracing-stop']},{'phase':_0x4c9aa2['bdiuC'],'commandArgs':[_0x50225b(0x1bd)]},{'phase':_0x4c9aa2[_0x50225b(0x1a9)],'commandArgs':[_0x50225b(0x1e9)]}];for(const _0x35363a of _0x505721){try{await _0x4c9aa2['ATTFa'](runRangerwrightLifecycleCommand,{'options':_0x14bfce,'commandArgs':[..._0x35363a[_0x50225b(0x1ae)]],'env':_0x33db4e,'telemetry':_0x822e2,'phase':_0x35363a[_0x50225b(0x197)],'metadata':_0x27ce2f});}catch{}}}function _0x5c77(){const _0x393abb=['Bash','206618ztNeDT','4XIpkFr','iaIpT','commandArgs','mokld','trackPhaseEnd','Reviewer','6yxCUkv','stop\x20video\x20recording','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','about:blank','get','trackPhaseError','map','JbQTu','\x20--screenshot-path\x20','\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_command_failure','video-stop','\x20inspect\x20--screenshot-path\x20','xBoUP','fill','keys','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','notes','rangerwright_cli_command','RMXnY','replace','UXUwY','description','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','commandPrefix','authorEmail','tracing-stop','rangerwright_cli_close','[rangerwright-cli]\x20','log','toLocaleDateString','96670ntXtYA','unaddressedComments','uYDEN','slice','stderr','content','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','Tiwsj','851070aKWIRi','\x20(on\x20element:\x20<','...','PostToolUseFailure','sort','\x5c$&','open\x20and\x20inspect','stop\x20tracing','go\x20back\x20and\x20inspect','72zLMSMD','\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','tool_input','256456jCBwNZ','01_initial-state.png','back-and-inspect','hook_event_name','close','804181ooNYhZ','short','181509JbEyFr','\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','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','phase','match','FUWrU','stringify','textContent','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','\x20open-and-inspect\x20','url','ITsQc','`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`','click-and-inspect','RlwZF','canonicalFlow','join','1107270dtgtaz','jQAQH','trackPhaseStart','AAtqr','osCAF'];_0x5c77=function(){return _0x393abb;};return _0x5c77();}
|
|
1
|
+
(function(_0x278b89,_0x1132f0){const _0x3929d4=_0x1e8a,_0x1e16e6=_0x278b89();while(!![]){try{const _0x2ac0ac=-parseInt(_0x3929d4(0x160))/0x1+parseInt(_0x3929d4(0x169))/0x2+-parseInt(_0x3929d4(0x180))/0x3*(parseInt(_0x3929d4(0x1ad))/0x4)+parseInt(_0x3929d4(0x155))/0x5*(-parseInt(_0x3929d4(0x193))/0x6)+parseInt(_0x3929d4(0x16f))/0x7*(parseInt(_0x3929d4(0x182))/0x8)+-parseInt(_0x3929d4(0x179))/0x9*(parseInt(_0x3929d4(0x18d))/0xa)+parseInt(_0x3929d4(0x1a7))/0xb;if(_0x2ac0ac===_0x1132f0)break;else _0x1e16e6['push'](_0x1e16e6['shift']());}catch(_0x53b487){_0x1e16e6['push'](_0x1e16e6['shift']());}}}(_0x32ba,0x60f71));function _0x1e8a(_0x549854,_0x564eba){_0x549854=_0x549854-0x154;const _0x32ba5f=_0x32ba();let _0x1e8a53=_0x32ba5f[_0x549854];return _0x1e8a53;}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(_0xa39c5,_0x1c55d5=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x52779e=_0x1e8a,_0x47024e={'ToVzk':function(_0xaf32d,_0x3a5347){return _0xaf32d+_0x3a5347;}};return _0xa39c5['length']>_0x1c55d5?_0x47024e[_0x52779e(0x16e)](_0xa39c5[_0x52779e(0x18f)](0x0,_0x1c55d5),'...'):_0xa39c5;}function extractShellValue(_0x2c90b3){if(!_0x2c90b3)return null;return _0x2c90b3[0x1]??_0x2c90b3[0x2]??_0x2c90b3[0x3]??null;}function extractFirstCommandArgument(_0xcbe042,_0x17ced4){const _0x3af12f=_0x1e8a,_0x4e07f8={'hjPFO':'\x5c$&'},_0x115a66=_0x17ced4[_0x3af12f(0x18a)](/[.*+?^${}()|[\]\\]/g,_0x4e07f8['hjPFO']);return extractShellValue(_0xcbe042['match'](new RegExp('(?:^|\x5cs)'+_0x115a66+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x13e6dc){const _0x591a3f=_0x1e8a,_0x2dd890={'PvOfM':function(_0x2125fd,_0x548cbd,_0x948d7){return _0x2125fd(_0x548cbd,_0x948d7);}};if(!_0x13e6dc)return _0x591a3f(0x189);if(/^e\d+$/i[_0x591a3f(0x16a)](_0x13e6dc))return _0x591a3f(0x166)+_0x13e6dc;return JSON[_0x591a3f(0x184)](_0x2dd890['PvOfM'](truncatePreview,_0x13e6dc,0x78));}function formatRangerwrightCliLog(_0x1c4172,_0x2c5fcb){const _0x26874b=_0x1e8a,_0x517bb3={'gmsuB':_0x26874b(0x192),'yafjt':'open\x20and\x20inspect','KgcrC':function(_0x3b8993,_0xa89a1f,_0x28bbda){return _0x3b8993(_0xa89a1f,_0x28bbda);},'uhcNm':_0x26874b(0x1a4),'vwIZQ':'fill-and-inspect','naRIT':function(_0x173896,_0x23b000){return _0x173896(_0x23b000);},'LoAZO':function(_0x25ba25,_0x5288aa,_0xccf5ce){return _0x25ba25(_0x5288aa,_0xccf5ce);},'Xyske':_0x26874b(0x19c),'Harvt':_0x26874b(0x167),'nyhSw':_0x26874b(0x1ae),'GTihV':_0x26874b(0x15d),'hvild':'close','iWzLI':_0x26874b(0x1ac)};switch(_0x2c5fcb){case _0x517bb3['gmsuB']:{const _0x11da22=extractFirstCommandArgument(_0x1c4172,_0x2c5fcb);return _0x11da22?_0x26874b(0x1a9)+_0x11da22:_0x517bb3[_0x26874b(0x19f)];}case'click-and-inspect':return'click\x20and\x20inspect\x20'+formatCommandTarget(_0x517bb3[_0x26874b(0x15e)](extractFirstCommandArgument,_0x1c4172,_0x2c5fcb));case _0x517bb3[_0x26874b(0x185)]:case _0x517bb3['vwIZQ']:return'fill\x20'+_0x517bb3['naRIT'](formatCommandTarget,_0x517bb3['LoAZO'](extractFirstCommandArgument,_0x1c4172,_0x2c5fcb));case _0x517bb3[_0x26874b(0x173)]:return _0x26874b(0x15f);case _0x517bb3['Harvt']:return _0x26874b(0x164);case _0x517bb3['nyhSw']:return'stop\x20tracing';case _0x26874b(0x17f):return _0x517bb3[_0x26874b(0x1a3)];case _0x517bb3[_0x26874b(0x17e)]:return _0x517bb3['iWzLI'];default:return _0x2c5fcb;}}function renderScenarioSections(_0x5191e0){const _0x4fee6b=_0x1e8a,_0x5cbc8e={'swrSn':'en-US','CXgYx':'numeric','HupCu':'\x20>\x20'},{checklistItem:_0x5a1b46,itemFeedback:_0x28fa8f}=_0x5191e0,_0x1dfc16=_0x5a1b46[_0x4fee6b(0x197)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x5a1b46['notes']:'';let _0x7d2c2b='';if(_0x28fa8f&&_0x28fa8f['unaddressedComments'][_0x4fee6b(0x1a8)]>0x0){const _0x2bdbb0=_0x28fa8f[_0x4fee6b(0x188)][_0x4fee6b(0x196)](_0x49ebdd=>{const _0x3f8ef5=_0x4fee6b,_0x25fdd5=new Date(_0x49ebdd['createdAt'])[_0x3f8ef5(0x181)](_0x5cbc8e['swrSn'],{'month':_0x3f8ef5(0x17d),'day':_0x5cbc8e['CXgYx']}),_0x33217a=_0x49ebdd[_0x3f8ef5(0x1a6)]||_0x49ebdd['authorEmail']||'Reviewer',_0x1578db=_0x49ebdd['domRef']?'\x20(on\x20element:\x20<'+(_0x49ebdd['domRef']['selector']['split'](_0x5cbc8e['HupCu'])['pop']()?.['split'](':')[0x0]||_0x3f8ef5(0x1a0))+'>\x20\x22'+(_0x49ebdd['domRef'][_0x3f8ef5(0x1a1)]||'')[_0x3f8ef5(0x18f)](0x0,0x32)+'\x22)':'';return _0x3f8ef5(0x17b)+_0x49ebdd['id']+']\x20'+_0x33217a+'\x20('+_0x25fdd5+_0x3f8ef5(0x19b)+_0x49ebdd[_0x3f8ef5(0x15c)]+'\x22'+_0x1578db;})['join']('\x0a');_0x7d2c2b='\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'+_0x2bdbb0;}const _0x10847e=_0x28fa8f?.['canonicalFlow']?_0x4fee6b(0x190)+_0x28fa8f['canonicalFlow']:'';return''+_0x5a1b46[_0x4fee6b(0x162)]+_0x1dfc16+_0x7d2c2b+_0x10847e;}function _0x32ba(){const _0x10ae51=['\x0a\x0a##\x20Task\x20to\x20Execute\x0a','):\x20\x22','back-and-inspect','split','.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','yafjt','element','textContent','\x20open-and-inspect\x20','GTihV','fill','startsWith','authorName','11822723jpoqOT','length','open\x20and\x20inspect\x20','log','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','close\x20browser\x20session','8vSonwn','tracing-stop','nDGrK','515wUjFcA','\x20--screenshot-path\x20','tool_input','\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`','GAAgR','tool_name','rangerwright_cli_command_failure','content','stop\x20video\x20recording','KgcrC','go\x20back\x20and\x20inspect','244180LxdQRc','Bash','description','trackPhaseError','inspect\x20page','some','ref\x20','inspect','commandPrefix','319136nYvoFF','test','\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','phase','key_02_learn-more.png','ToVzk','1043ThSeUJ','stdout','rangerwright_cli_command','eYDut','Xyske','trackPhaseStart','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','ucngl','hook_event_name','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','27rdSujt','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','-\x20[','push','short','hvild','video-stop','661209IuGMJp','toLocaleDateString','19224ZMJyrI','about:blank','stringify','uhcNm','PostToolUseFailure','key_99_final-state.png','unaddressedComments','target','replace','subcommand','\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.','25720cUbfFS','commandArgs','slice','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','trackPhaseEnd','open-and-inspect','29274YLyNSs','IqCGe','PostToolUse','map','notes','XwlCH','set'];_0x32ba=function(){return _0x10ae51;};return _0x32ba();}export function buildVerifyFeatureRangerwrightCliPrompt(_0x448945){const _0x4226bd=_0x1e8a,_0x5627c5={'iuGxB':'01_initial-state.png','nDGrK':function(_0x23385d,_0x4ac61d){return _0x23385d(_0x4ac61d);},'GAAgR':function(_0x3505f2,_0x3f5d93){return _0x3505f2??_0x3f5d93;},'FJIQO':_0x4226bd(0x183),'CnVxw':function(_0x40f70d,_0x813e24){return _0x40f70d(_0x813e24);}},{checklistItem:_0x10c727,itemFeedback:_0x18d2c1,taskDescription:_0x4a1ee6,commandPrefix:_0x5684fb,isCdpMode:_0x4e8108,url:_0x55a6f9,cdpEndpoint:_0x1d2c69,loginInstructions:_0x3a02a5}=_0x448945,_0x30f907=_0x5627c5['iuGxB'],_0x4c7691=_0x4226bd(0x187),_0x4ea8e0=_0x4e8108?_0x5684fb+'\x20inspect\x20--screenshot-path\x20'+quoteShellArg(_0x30f907):_0x5684fb+_0x4226bd(0x1a2)+_0x5627c5[_0x4226bd(0x154)](quoteShellArg,_0x5627c5[_0x4226bd(0x159)](_0x55a6f9,_0x5627c5['FJIQO']))+_0x4226bd(0x156)+_0x5627c5['CnVxw'](quoteShellArg,_0x30f907),_0x4ab97f=_0x4e8108?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0x1d2c69+_0x4226bd(0x19e):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x55a6f9+_0x4226bd(0x18c),_0x3d67d3=_0x3a02a5?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x3a02a5+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return _0x4226bd(0x1ab)+_0x5627c5['nDGrK'](renderScenarioSections,{'checklistItem':_0x10c727,'itemFeedback':_0x18d2c1})+_0x4226bd(0x19a)+_0x4a1ee6+'\x0a\x0a'+_0x4ab97f+_0x3d67d3+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x5684fb+_0x4226bd(0x16b)+_0x4ea8e0+'\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'+_0x5684fb+_0x4226bd(0x175)+quoteShellArg(_0x4c7691)+'\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(_0x4abc29){const _0x28872e=_0x1e8a,_0x360b04={'hHSJe':function(_0x40cebe,_0xe8ee6){return _0x40cebe(_0xe8ee6);},'aHVkQ':function(_0x32dd20,_0x53393d){return _0x32dd20(_0x53393d);},'Pcfla':function(_0x57c4b1,_0x4e93f3){return _0x57c4b1(_0x4e93f3);}},_0xc34014='01_mozilla-homepage.png',_0x20e83f=_0x28872e(0x16d);return'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'+_0x4abc29['commandPrefix']+_0x28872e(0x158)+_0x4abc29['commandPrefix']+_0x28872e(0x1a2)+_0x360b04['hHSJe'](quoteShellArg,_0x4abc29['url'])+_0x28872e(0x156)+_0x360b04['aHVkQ'](quoteShellArg,_0xc34014)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x4abc29[_0x28872e(0x168)]+_0x28872e(0x178)+_0x360b04['Pcfla'](quoteShellArg,_0x20e83f)+_0x28872e(0x17a);}export function extractRangerwrightScreenshotPaths(_0x45f33b){const _0x80cae2=_0x1e8a;if(!parseRangerwrightCliCommand(_0x45f33b))return[];const _0x25d93e=[],_0x511dd5=/--screenshot-path(?:=|\s+)(?:"([^"]*)"|'([^']*)'|(\S+))/g;for(const _0x122681 of _0x45f33b['matchAll'](_0x511dd5)){const _0xe3234e=_0x122681[0x1]??_0x122681[0x2]??_0x122681[0x3]??'',_0xe182c4=_0xe3234e[_0x80cae2(0x1a5)]('./')?_0xe3234e['slice'](0x2):_0xe3234e;if(!_0xe182c4||_0xe182c4['startsWith']('/'))continue;if(_0xe182c4[_0x80cae2(0x19d)]('/')[_0x80cae2(0x165)](_0x211963=>_0x211963==='..'))continue;_0x25d93e[_0x80cae2(0x17c)](_0xe182c4);}return _0x25d93e;}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x5c61e6){const _0x51f3e6=[..._0x5c61e6['keys']()]['sort']();let _0x3c9779=0x0;for(const _0x108590 of _0x5c61e6['values']()){_0x3c9779+=_0x108590;}return{'cliCommandCount':_0x3c9779,'cliCommandsSeen':_0x51f3e6,'noCliCommandsCalled':_0x3c9779===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0x2d85ac){const _0x43a48e=_0x1e8a,_0x216948={'XwlCH':function(_0x233524,_0x2b1b45){return _0x233524!==_0x2b1b45;},'eYDut':_0x43a48e(0x171),'atYnP':function(_0x55ef9b,_0xd48e5d){return _0x55ef9b(_0xd48e5d);},'IqCGe':_0x43a48e(0x186),'CLhVJ':'rangerwright-cli','tceZC':_0x43a48e(0x161)},_0x2d635e=new Map(),_0x516289=async _0x4d02b4=>{const _0x5f09e2=_0x43a48e;if(_0x4d02b4['hook_event_name']!==_0x5f09e2(0x195))return{};const _0x3d380c=_0x4d02b4;if(_0x216948['XwlCH'](_0x3d380c[_0x5f09e2(0x15a)],'Bash'))return{};const _0x504fd6=_0x3d380c[_0x5f09e2(0x157)],_0x37115a=extractBashCommand(_0x504fd6);if(!_0x37115a)return{};const _0x3a4c5f=parseRangerwrightCliCommand(_0x37115a);if(!_0x3a4c5f)return{};return _0x2d635e[_0x5f09e2(0x199)](_0x3a4c5f,(_0x2d635e['get'](_0x3a4c5f)||0x0)+0x1),_0x2d85ac['trackPhaseStart'](_0x216948[_0x5f09e2(0x172)],{'subcommand':_0x3a4c5f}),_0x2d85ac[_0x5f09e2(0x191)](_0x216948['eYDut'],{'subcommand':_0x3a4c5f,'commandPreview':_0x216948['atYnP'](truncatePreview,_0x37115a)}),console[_0x5f09e2(0x1aa)]('[rangerwright-cli]\x20'+formatRangerwrightCliLog(_0x37115a,_0x3a4c5f)),{};},_0x1e4c8e=async _0x16079d=>{const _0xe6f24e=_0x43a48e;if(_0x16079d[_0xe6f24e(0x177)]!==_0x216948[_0xe6f24e(0x194)])return{};const _0x410aed=_0x16079d;if(_0x216948[_0xe6f24e(0x198)](_0x410aed[_0xe6f24e(0x15a)],'Bash'))return{};return await _0x2d85ac[_0xe6f24e(0x163)](_0xe6f24e(0x15b),_0x410aed['error'],{'transport':_0x216948['CLhVJ'],'toolName':_0x216948['tceZC']}),{};};return{'postToolUseHook':_0x516289,'postToolUseFailureHook':_0x1e4c8e,'commandCounts':_0x2d635e};}async function runRangerwrightLifecycleCommand(_0x355004){const _0x3c07b1=_0x1e8a,_0x53c6a5={'ucngl':function(_0x2bb5ef,_0x43a184){return _0x2bb5ef(_0x43a184);},'jIAqu':function(_0x3327d3,_0x22fbf5,_0x465ff0){return _0x3327d3(_0x22fbf5,_0x465ff0);}},{options:_0xb31b8b,commandArgs:_0x2e1d5b,env:_0x7e02f8,telemetry:_0x2fb39c,phase:_0x13e1cf,metadata:_0xab6656,timeoutMs:_0x4517b6}=_0x355004;_0x2fb39c[_0x3c07b1(0x174)](_0x13e1cf,_0xab6656);try{const _0x2e9372=await _0x53c6a5[_0x3c07b1(0x176)](runRangerwrightCliCommand,{..._0xb31b8b,'commandArgs':_0x2e1d5b,'cwd':process['cwd'](),'env':_0x7e02f8,'timeoutMs':_0x4517b6??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x2fb39c['trackPhaseEnd'](_0x13e1cf,{..._0xab6656,'subcommand':_0x2e9372['invocation'][_0x3c07b1(0x18b)],'stdoutPreview':_0x53c6a5['jIAqu'](truncatePreview,_0x2e9372[_0x3c07b1(0x170)],0x7d0),'stderrPreview':truncatePreview(_0x2e9372['stderr'],0x7d0)});}catch(_0x4b321d){await _0x2fb39c['trackPhaseError'](_0x13e1cf,_0x4b321d,_0xab6656);throw _0x4b321d;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x3cf36b){const _0x50b4e2=_0x1e8a,_0x431e40={'tTclD':'rangerwright_cli_video_stop','srkZj':_0x50b4e2(0x17f),'ujyoQ':'rangerwright_cli_close'},{telemetry:_0x4dfc65,rangerwrightOptions:_0x39bf5a,env:_0x484507,transportMetadata:_0x2c6e9e}=_0x3cf36b,_0x34c941=[{'phase':'rangerwright_cli_tracing_stop','commandArgs':['tracing-stop']},{'phase':_0x431e40['tTclD'],'commandArgs':[_0x431e40['srkZj']]},{'phase':_0x431e40['ujyoQ'],'commandArgs':['close']}];for(const _0x337907 of _0x34c941){try{await runRangerwrightLifecycleCommand({'options':_0x39bf5a,'commandArgs':[..._0x337907[_0x50b4e2(0x18e)]],'env':_0x484507,'telemetry':_0x4dfc65,'phase':_0x337907[_0x50b4e2(0x16c)],'metadata':_0x2c6e9e});}catch{}}}
|
|
@@ -230,6 +230,14 @@ When completing your work or ending the session, your final message to the user
|
|
|
230
230
|
|
|
231
231
|
---
|
|
232
232
|
|
|
233
|
+
# Graduating a feature review into a durable test
|
|
234
|
+
|
|
235
|
+
Feature reviews are your inner loop: they verify a change against the app you're running locally, for you, right now. They are not permanent tests, and they do not run for the rest of the team.
|
|
236
|
+
|
|
237
|
+
When a change is shipping and you want it protected going forward — a test that runs continuously across the team against your deployed environment — that's a Ranger **test** (testgen), created through the Ranger MCP, not the CLI. Testgen runs in Ranger's cloud against a deployed, reachable environment, so offer it **once the change is deployed**, not while it's only on localhost. If the testgen tools are available in this session, offer to set that up after the feature review is verified; otherwise point the user to them.
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
233
241
|
# Quick Reference
|
|
234
242
|
|
|
235
243
|
| Command | Purpose |
|