@ranger-testing/ranger-cli 3.0.1-alpha.c0b290b-36 → 3.0.1-alpha.d8f00ab-37

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.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2cafa7,_0x1adc83){const _0x138d7d=_0x4c98,_0xed1b4d=_0x2cafa7();while(!![]){try{const _0x58f7df=parseInt(_0x138d7d(0x164))/0x1+-parseInt(_0x138d7d(0x1a3))/0x2+parseInt(_0x138d7d(0x167))/0x3+parseInt(_0x138d7d(0x1c7))/0x4*(-parseInt(_0x138d7d(0x152))/0x5)+-parseInt(_0x138d7d(0x169))/0x6+parseInt(_0x138d7d(0x16b))/0x7*(parseInt(_0x138d7d(0x1be))/0x8)+-parseInt(_0x138d7d(0x1b5))/0x9;if(_0x58f7df===_0x1adc83)break;else _0xed1b4d['push'](_0xed1b4d['shift']());}catch(_0x5677b5){_0xed1b4d['push'](_0xed1b4d['shift']());}}}(_0x4952,0xaaf21));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(_0x4e2dcd,_0x131733=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x30a026=_0x4c98,_0x1301f4={'LPkkR':function(_0x42685e,_0x51fa44){return _0x42685e>_0x51fa44;},'jqoeO':function(_0x562732,_0x3f9c00){return _0x562732+_0x3f9c00;},'cMcZm':_0x30a026(0x1c6)};return _0x1301f4['LPkkR'](_0x4e2dcd['length'],_0x131733)?_0x1301f4['jqoeO'](_0x4e2dcd['slice'](0x0,_0x131733),_0x1301f4[_0x30a026(0x14c)]):_0x4e2dcd;}function buildCliArtifactPath(_0x2f305a,_0x1bed85){const _0x3d2ed3=_0x4c98,_0x462817={'JbjyV':function(_0x14843e,_0x57a002,_0x37b385){return _0x14843e(_0x57a002,_0x37b385);}};return _0x462817[_0x3d2ed3(0x15a)](join,_0x2f305a,_0x1bed85);}function toStepDisplayName(_0x35e997){const _0x368bfc=_0x4c98,_0x16bca2=basename(_0x35e997)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x368bfc(0x1c0)](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x16bca2,'isKeyStep':/^key_/i['test'](basename(_0x35e997))};}function extractShellValue(_0x20ba99){if(!_0x20ba99)return null;return _0x20ba99[0x1]??_0x20ba99[0x2]??_0x20ba99[0x3]??null;}function extractFilenameOption(_0x213b77){return extractShellValue(_0x213b77['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x2e2c34,_0x33fe1f){const _0x41f3ee=_0x4c98,_0x8abc={'BitDJ':_0x41f3ee(0x154)},_0x193f18=_0x33fe1f[_0x41f3ee(0x1c0)](/[.*+?^${}()|[\]\\]/g,_0x8abc[_0x41f3ee(0x18c)]);return extractShellValue(_0x2e2c34['match'](new RegExp(_0x41f3ee(0x1aa)+_0x193f18+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x45c201){if(!_0x45c201)return'target';if(/^e\d+$/i['test'](_0x45c201))return'ref\x20'+_0x45c201;return JSON['stringify'](truncatePreview(_0x45c201,0x78));}function formatPlaywrightCliLog(_0x567894,_0x282c77){const _0x3a5a3a=_0x4c98,_0x145b52={'iBzuX':'open','TgHMF':_0x3a5a3a(0x181),'ILJcs':_0x3a5a3a(0x177),'vZFuK':_0x3a5a3a(0x17e),'OROey':_0x3a5a3a(0x191),'FKwoJ':_0x3a5a3a(0x1a4),'BXEiu':_0x3a5a3a(0x16f),'vdLbX':_0x3a5a3a(0x162),'Clbdd':function(_0x2be109,_0x1ae38d){return _0x2be109(_0x1ae38d);},'RFRpy':function(_0x38cc3e,_0x159211){return _0x38cc3e(_0x159211);},'SZOMX':'capture\x20screenshot','QNyzJ':function(_0x1b046d,_0x2b15fc){return _0x1b046d(_0x2b15fc);},'YBUWI':function(_0x5c89c2,_0x734f4b){return _0x5c89c2(_0x734f4b);},'FOoOg':function(_0x39bf7b,_0x31715b,_0x1b3243){return _0x39bf7b(_0x31715b,_0x1b3243);},'hBMCT':_0x3a5a3a(0x1a6),'gGIDE':'press','WKwdN':_0x3a5a3a(0x1cd),'BVxjq':_0x3a5a3a(0x196),'AOGef':'tab-select','vRPAp':function(_0x35c40e,_0x270975,_0x342b29){return _0x35c40e(_0x270975,_0x342b29);},'sHDNx':'select\x20tab'};switch(_0x282c77){case _0x145b52[_0x3a5a3a(0x1c3)]:{const _0xae7a94=extractFirstCommandArgument(_0x567894,_0x282c77);return _0xae7a94?_0x3a5a3a(0x183)+_0xae7a94:'open\x20browser';}case _0x145b52[_0x3a5a3a(0x151)]:return _0x145b52[_0x3a5a3a(0x174)];case _0x145b52['vZFuK']:return _0x3a5a3a(0x15f);case _0x3a5a3a(0x19e):return _0x3a5a3a(0x189);case _0x145b52[_0x3a5a3a(0x166)]:return _0x145b52['FKwoJ'];case _0x145b52['BXEiu']:{const _0x455f27=extractFilenameOption(_0x567894);if(!_0x455f27)return _0x145b52[_0x3a5a3a(0x1c4)];const {name:_0x2b82dc}=_0x145b52['Clbdd'](toStepDisplayName,_0x455f27);return'capture\x20snapshot\x20`'+_0x2b82dc+'`';}case'screenshot':{const _0xa45d22=_0x145b52[_0x3a5a3a(0x1b2)](extractFilenameOption,_0x567894);if(!_0xa45d22)return _0x145b52['SZOMX'];const {name:_0x35ce82,isKeyStep:_0x1bed73}=_0x145b52[_0x3a5a3a(0x1bf)](toStepDisplayName,_0xa45d22);return _0x1bed73?'capture\x20key\x20step\x20`'+_0x35ce82+'`':'capture\x20step\x20`'+_0x35ce82+'`';}case _0x3a5a3a(0x19a):return _0x3a5a3a(0x18a)+_0x145b52['YBUWI'](formatCommandTarget,extractFirstCommandArgument(_0x567894,_0x282c77));case _0x3a5a3a(0x184):return'check\x20'+formatCommandTarget(_0x145b52[_0x3a5a3a(0x1cc)](extractFirstCommandArgument,_0x567894,_0x282c77));case _0x145b52['hBMCT']:return'fill\x20'+formatCommandTarget(extractFirstCommandArgument(_0x567894,_0x282c77));case _0x145b52[_0x3a5a3a(0x1cb)]:return'press\x20'+formatCommandTarget(extractFirstCommandArgument(_0x567894,_0x282c77));case _0x145b52['WKwdN']:return _0x145b52[_0x3a5a3a(0x17c)];case'tab-new':{const _0x234a11=extractFirstCommandArgument(_0x567894,_0x282c77);return _0x234a11?_0x3a5a3a(0x15d)+_0x234a11:'open\x20new\x20tab';}case _0x145b52['AOGef']:{const _0x5de5e8=_0x145b52['vRPAp'](extractFirstCommandArgument,_0x567894,_0x282c77);return _0x5de5e8?'select\x20tab\x20'+_0x5de5e8:_0x145b52[_0x3a5a3a(0x190)];}default:return _0x282c77;}}function extractPlaywrightCliToolDescription(_0x10dc22){const _0x54e182=_0x4c98,_0x706645={'BFrsb':function(_0x34f1fb,_0x312c40){return _0x34f1fb!==_0x312c40;},'DuOju':function(_0x147c5c,_0x4b7124){return _0x147c5c>_0x4b7124;}},_0x4c7576=_0x10dc22[_0x54e182(0x1ae)];if(_0x706645[_0x54e182(0x16e)](typeof _0x4c7576,_0x54e182(0x15e)))return null;const _0x6402cc=_0x4c7576[_0x54e182(0x1b8)]()['replace'](/\s+/g,'\x20');return _0x706645['DuOju'](_0x6402cc[_0x54e182(0x194)],0x0)?_0x6402cc:null;}export function formatPlaywrightCliConsoleLogMessage(_0x276e49,_0x5eac0d,_0x5257d4){const _0xcc3ac8=_0x4c98,_0x383fc2={'Wexqk':function(_0x3d6ef3,_0x13945d,_0x424a58){return _0x3d6ef3(_0x13945d,_0x424a58);},'EXaIn':function(_0x52455e,_0x459419){return _0x52455e(_0x459419);}},_0x13cefa=_0x383fc2[_0xcc3ac8(0x156)](formatPlaywrightCliLog,_0x5eac0d,_0x5257d4),_0xc6ad24=_0x383fc2[_0xcc3ac8(0x17a)](extractPlaywrightCliToolDescription,_0x276e49);if(!_0xc6ad24)return _0xcc3ac8(0x186)+_0x13cefa;if(process['env'][_0xcc3ac8(0x1ca)])return _0xcc3ac8(0x1b4)+_0xc6ad24+'\x20('+_0x13cefa+')';return _0xcc3ac8(0x1b4)+_0xc6ad24;}export function buildVerifyFeatureCliDebugPrompt(_0x1c421e,_0x17a038){const _0x1d6a79=_0x4c98,_0x4d0f28={'BcNfd':_0x1d6a79(0x1b3),'qfhlK':function(_0x1b845a,_0x19d9dd,_0x191a86){return _0x1b845a(_0x19d9dd,_0x191a86);},'IZosR':_0x1d6a79(0x163),'mSzlD':function(_0x3b2e85,_0x3928b4,_0x4e0099){return _0x3b2e85(_0x3928b4,_0x4e0099);},'hZNKb':_0x1d6a79(0x19d),'dBSsv':function(_0x5eace3,_0x2c71ff){return _0x5eace3(_0x2c71ff);}},_0x4763fb=buildCliArtifactPath(_0x17a038,_0x4d0f28['BcNfd']),_0x34692e=_0x4d0f28['qfhlK'](buildCliArtifactPath,_0x17a038,'01_mozilla-homepage.png'),_0xd5e84b=buildCliArtifactPath(_0x17a038,_0x4d0f28['IZosR']),_0x9a73a4=_0x4d0f28['mSzlD'](buildCliArtifactPath,_0x17a038,_0x4d0f28['hZNKb']),_0x52862f=_0x4d0f28[_0x1d6a79(0x1b0)](quoteShellArg,_0x4763fb),_0x1f4459=_0x4d0f28[_0x1d6a79(0x1b0)](quoteShellArg,_0x34692e),_0x13c9ae=_0x4d0f28[_0x1d6a79(0x1b0)](quoteShellArg,_0xd5e84b),_0x5f1e4c=quoteShellArg(_0x9a73a4);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x1c421e+_0x1d6a79(0x155)+_0x1c421e+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x1c421e+_0x1d6a79(0x1c9)+_0x1c421e+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x17a038+_0x1d6a79(0x1a5)+_0x1c421e+'\x20snapshot\x20--filename\x20'+_0x52862f+_0x1d6a79(0x1ad)+_0x1c421e+'\x20screenshot\x20--filename\x20'+_0x1f4459+_0x1d6a79(0x180)+_0x1c421e+_0x1d6a79(0x188)+_0x13c9ae+'`\x0a9.\x20Run\x20`'+_0x1c421e+'\x20screenshot\x20--filename\x20'+_0x5f1e4c+_0x1d6a79(0x176);}function _0x4c98(_0x21d52c,_0x4ef56c){_0x21d52c=_0x21d52c-0x14c;const _0x4952bb=_0x4952();let _0x4c989a=_0x4952bb[_0x21d52c];return _0x4c989a;}export function buildVerifyFeatureCliPrompt(_0x10401d){const _0x36a6e5=_0x4c98,_0x353236={'bgYgM':'en-US','OXVAX':_0x36a6e5(0x14f),'CSRRX':function(_0x38ad97,_0x3798e7,_0x5c30a5){return _0x38ad97(_0x3798e7,_0x5c30a5);},'Rtcgr':function(_0x21ad7a,_0x44a887,_0x38f065){return _0x21ad7a(_0x44a887,_0x38f065);},'eKXut':'02_state.yml','koNTA':_0x36a6e5(0x16a),'IZeJt':function(_0xa3463a,_0x509553){return _0xa3463a(_0x509553);},'LADRh':function(_0x847488,_0x187ac0){return _0x847488(_0x187ac0);},'CKWsS':function(_0x4f842f,_0x27e72f){return _0x4f842f(_0x27e72f);},'uqDWV':function(_0x2ad5af,_0x31cfda){return _0x2ad5af>_0x31cfda;},'dHROo':'03_result-visible.png'},{checklistItem:_0x15731b,itemFeedback:_0x4c5c53,taskDescription:_0x4cd0cb,cliCommandPrefix:_0x36303b,cliArtifactDir:_0x172685,isCdpMode:_0xb02bbe,url:_0x499ebe,cdpEndpoint:_0x4ce165,loginInstructions:_0x319d2a}=_0x10401d,_0x5d69ad=_0x353236[_0x36a6e5(0x161)](buildCliArtifactPath,_0x172685,'01_initial.yml'),_0x55f087=_0x353236[_0x36a6e5(0x1c2)](buildCliArtifactPath,_0x172685,_0x353236[_0x36a6e5(0x1a1)]),_0x386190=buildCliArtifactPath(_0x172685,_0x36a6e5(0x1bc)),_0x3a0ce3=buildCliArtifactPath(_0x172685,_0x353236['koNTA']),_0x4edacb=quoteShellArg(_0x5d69ad),_0x2c5639=_0x353236['IZeJt'](quoteShellArg,_0x55f087),_0x201125=_0x353236['LADRh'](quoteShellArg,_0x386190),_0x240033=_0x353236['CKWsS'](quoteShellArg,_0x3a0ce3),_0x5cf561=_0x15731b['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x15731b[_0x36a6e5(0x1cf)]:'';let _0xf76907='';if(_0x4c5c53&&_0x353236[_0x36a6e5(0x1b6)](_0x4c5c53['unaddressedComments']['length'],0x0)){const _0xda7b20=_0x4c5c53[_0x36a6e5(0x185)]['map'](_0x302ec1=>{const _0x328d78=_0x36a6e5,_0x526312=new Date(_0x302ec1[_0x328d78(0x192)])['toLocaleDateString'](_0x353236[_0x328d78(0x165)],{'month':_0x328d78(0x18b),'day':'numeric'}),_0x1d9e95=_0x302ec1[_0x328d78(0x195)]||_0x302ec1['authorEmail']||_0x353236[_0x328d78(0x17d)],_0x3f3e2f=_0x302ec1[_0x328d78(0x19c)]?_0x328d78(0x182)+(_0x302ec1[_0x328d78(0x19c)][_0x328d78(0x1a7)]['split']('\x20>\x20')[_0x328d78(0x1b1)]()?.[_0x328d78(0x19f)](':')[0x0]||_0x328d78(0x1d1))+_0x328d78(0x1a8)+(_0x302ec1['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x328d78(0x17b)+_0x302ec1['id']+_0x328d78(0x1b7)+_0x1d9e95+_0x328d78(0x1a9)+_0x526312+_0x328d78(0x16d)+_0x302ec1['content']+'\x22'+_0x3f3e2f;})[_0x36a6e5(0x1bb)]('\x0a');_0xf76907='\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'+_0xda7b20;}const _0x54d432=_0x4c5c53?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x4c5c53['canonicalFlow']:'',_0x2a29a8=_0xb02bbe?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x4ce165+_0x36a6e5(0x18e):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x499ebe+'\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',_0x9d65ab=_0x499ebe?_0x353236['LADRh'](quoteShellArg,_0x499ebe):'',_0x3c2f84=_0xb02bbe?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x36303b+'\x20open`,\x20then\x20`'+_0x36303b+_0x36a6e5(0x160)+_0x36303b+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x172685+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x36303b+_0x36a6e5(0x188)+_0x4edacb+'`\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`'+_0x36303b+'\x20screenshot\x20--filename\x20'+_0x240033+_0x36a6e5(0x15c)+_0x36303b+'\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':_0x36a6e5(0x1ba)+_0x36303b+_0x36a6e5(0x197)+_0x9d65ab+'`,\x20then\x20`'+_0x36303b+'\x20tracing-start`,\x20then\x20`'+_0x36303b+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x172685+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x36303b+_0x36a6e5(0x188)+_0x4edacb+_0x36a6e5(0x15b)+_0x36303b+'\x20screenshot\x20--filename\x20'+_0x240033+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x36303b+'\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',_0x240875=_0xb02bbe?'\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.':'\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.',_0x55bc25=_0x319d2a?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x319d2a+_0x36a6e5(0x193):'';return _0x36a6e5(0x16c)+_0x15731b[_0x36a6e5(0x1ae)]+_0x5cf561+_0xf76907+_0x54d432+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x4cd0cb+'\x0a\x0a'+_0x2a29a8+_0x55bc25+'\x0a\x0a'+_0x3c2f84+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x36303b+_0x36a6e5(0x1a0)+_0x172685+_0x36a6e5(0x172)+_0x2c5639+'`\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'+_0x201125+_0x36a6e5(0x14e)+_0x172685+'`:\x20\x22'+_0x3a0ce3+_0x36a6e5(0x173)+buildCliArtifactPath(_0x172685,_0x36a6e5(0x1d0))+_0x36a6e5(0x173)+buildCliArtifactPath(_0x172685,_0x353236['dHROo'])+'\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'+_0x353236['Rtcgr'](buildCliArtifactPath,_0x172685,'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'+_0x240875+'\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(_0x15bad4){const _0x879779=_0x4c98,_0x53fd85=[..._0x15bad4[_0x879779(0x179)]()]['sort']();let _0xd1794d=0x0;for(const _0x1bfc38 of _0x15bad4[_0x879779(0x199)]()){_0xd1794d+=_0x1bfc38;}return{'cliCommandCount':_0xd1794d,'cliCommandsSeen':_0x53fd85,'noCliCommandsCalled':_0xd1794d===0x0};}export function createVerifyFeatureCliHooks(_0x4b147e){const _0x335db7=_0x4c98,_0x13e908={'dmXdn':'PostToolUse','mpsAZ':'Bash','riVrf':_0x335db7(0x1b9),'thTCq':function(_0x51cacb,_0xeecd){return _0x51cacb!==_0xeecd;},'tGisu':'PostToolUseFailure','KmTUg':_0x335db7(0x170)},_0x3aeb88=new Map(),_0xc234f3=async _0x480e29=>{const _0x2c3c82=_0x335db7;if(_0x480e29['hook_event_name']!==_0x13e908[_0x2c3c82(0x187)])return{};const _0x1906cb=_0x480e29;if(_0x1906cb['tool_name']!==_0x13e908['mpsAZ'])return{};const _0x19a85a=_0x1906cb['tool_input'],_0x61b224=extractBashCommand(_0x19a85a);if(!_0x61b224)return{};const _0x30ff73=parsePlaywrightCliCommand(_0x61b224);if(!_0x30ff73)return{};return _0x3aeb88['set'](_0x30ff73,(_0x3aeb88['get'](_0x30ff73)||0x0)+0x1),_0x4b147e['trackPhaseStart'](_0x13e908['riVrf'],{'transport':_0x2c3c82(0x178),'toolName':_0x30ff73}),_0x4b147e['trackPhaseEnd'](_0x13e908[_0x2c3c82(0x1c5)],{'transport':_0x2c3c82(0x178),'toolName':_0x30ff73,'bashCommandPreview':truncatePreview(_0x61b224)}),_0x13e908['thTCq'](_0x30ff73,_0x2c3c82(0x16f))&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x19a85a,_0x61b224,_0x30ff73)),{};},_0x2de952=async _0x10b582=>{const _0x5a5989=_0x335db7;if(_0x10b582[_0x5a5989(0x157)]!==_0x13e908[_0x5a5989(0x1d2)])return{};const _0x5ee33a=_0x10b582;if(_0x5ee33a[_0x5a5989(0x14d)]!==_0x5a5989(0x153))return{};return await _0x4b147e['trackPhaseError'](_0x13e908['KmTUg'],_0x5ee33a['error'],{'transport':'playwright-cli','toolName':'Bash'}),{};};return{'postToolUseHook':_0xc234f3,'postToolUseFailureHook':_0x2de952,'commandCounts':_0x3aeb88};}function _0x4952(){const _0x19acdd=['check','unaddressedComments','[playwright-cli]\x20','dmXdn','\x20snapshot\x20--filename\x20','start\x20video\x20recording','click\x20','short','BitDJ','push','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','Frzbd','sHDNx','video-stop','createdAt','\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.','length','authorName','run\x20custom\x20Playwright\x20code','\x20open\x20','name','values','click','--filename=','domRef','03_learn-more.png','video-start','split','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','eKXut','stderr','607498zGHhle','stop\x20video\x20recording','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','fill','selector','>\x20\x22','**\x20(','(?:^|\x5cs)','playwright_cli_tracing_stop','subcommand','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','description','invocation','dBSsv','pop','RFRpy','00_mozilla-homepage.yml','[ranger-verification-agent]\x20','1610937hujGgq','uqDWV',']\x20**','trim','tool_call','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','join','key_03_success-state.png','whLRz','232XdJkee','QNyzJ','replace','trackPhaseError','Rtcgr','iBzuX','vdLbX','riVrf','...','2366888TGWcbJ','TMdxw','\x20tracing-start`\x0a3.\x20Run\x20`','DEBUG','gGIDE','FOoOg','run-code','session-recording.webm','notes','02_button-clicked.png','element','tGisu','cMcZm','tool_name','`\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`','Reviewer','phase','TgHMF','10CGaKqr','Bash','\x5c$&','\x0a\x0a1.\x20Run\x20`','Wexqk','hook_event_name','EnYbq','WJFRb','JbjyV','`\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`','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','open\x20new\x20tab\x20','string','stop\x20tracing','\x20tracing-start`,\x20then\x20`','CSRRX','capture\x20snapshot','02_learn-more.yml','917326pzvZaY','bgYgM','OROey','2157069cDVgth','trace.trace.zip','622842hMxves','01_initial-state.png','201271yfzefO','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','):\x20\x22','BFrsb','snapshot','tool_failure','TFwPI','`\x0a-\x20`snapshot\x20--filename\x20','\x22,\x20\x22','ILJcs','commandArgs','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','start\x20tracing','playwright-cli','keys','EXaIn','-\x20[','BVxjq','OXVAX','tracing-stop','NAvTC','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','tracing-start','\x20(on\x20element:\x20<','open\x20'];_0x4952=function(){return _0x19acdd;};return _0x4952();}async function runPlaywrightCliLifecycleCommand(_0xa98657){const _0x16a7fb=_0x4c98,_0x35f33a={'TFwPI':function(_0x32d839,_0x2197f0){return _0x32d839(_0x2197f0);}},{sessionId:_0x5cbfd3,configPath:_0xc4b8be,commandArgs:_0x38b39b,env:_0x32a0bc,telemetry:_0x3d5eff,phase:_0x5f398c,metadata:_0x2029d9,timeoutMs:_0x5e1796}=_0xa98657;_0x3d5eff['trackPhaseStart'](_0x5f398c,_0x2029d9);try{const _0x280f45=await _0x35f33a[_0x16a7fb(0x171)](runPlaywrightCliCommand,{'sessionId':_0x5cbfd3,'configPath':_0xc4b8be,'commandArgs':_0x38b39b,'cwd':process['cwd'](),'env':_0x32a0bc,'timeoutMs':_0x5e1796??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x3d5eff['trackPhaseEnd'](_0x5f398c,{..._0x2029d9,'subcommand':_0x280f45[_0x16a7fb(0x1af)][_0x16a7fb(0x1ac)],'stdoutPreview':truncatePreview(_0x280f45['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x280f45[_0x16a7fb(0x1a2)],0x7d0)});}catch(_0x1feb9f){await _0x3d5eff[_0x16a7fb(0x1c1)](_0x5f398c,_0x1feb9f,_0x2029d9);throw _0x1feb9f;}}export async function finalizeVerifyFeatureCliSession(_0x3b81cf){const _0x518f0d=_0x4c98,_0x503fe4={'EnYbq':'tracing-stop','whLRz':'playwright_cli_video_stop','Frzbd':function(_0x279d9a,_0x5a010f){return _0x279d9a(_0x5a010f);}},{telemetry:_0x582479,sessionId:_0x5bb7de,configPath:_0x435fa2,cliArtifactDir:_0x486bf7,env:_0x3ae575,transportMetadata:_0x5a54c7}=_0x3b81cf,_0x117fe0=[{'phase':_0x518f0d(0x1ab),'commandArgs':[_0x503fe4[_0x518f0d(0x158)]]},{'phase':_0x503fe4[_0x518f0d(0x1bd)],'commandArgs':[_0x518f0d(0x191),_0x518f0d(0x19b)+buildCliArtifactPath(_0x486bf7,_0x518f0d(0x1ce))]},{'phase':'playwright_cli_close','commandArgs':['close']}];for(const _0x85258a of _0x117fe0){try{await _0x503fe4[_0x518f0d(0x18f)](runPlaywrightCliLifecycleCommand,{'sessionId':_0x5bb7de,'configPath':_0x435fa2,'commandArgs':[..._0x85258a[_0x518f0d(0x175)]],'env':_0x3ae575,'telemetry':_0x582479,'phase':_0x85258a[_0x518f0d(0x150)],'metadata':_0x5a54c7});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x1dad88){const _0x3a3265=_0x4c98,_0x11eddf={'rfrVi':function(_0x208f4c,_0x5d0201,_0x5dfe8e){return _0x208f4c(_0x5d0201,_0x5dfe8e);}},_0x3a2eab=['trace.zip',_0x3a3265(0x168)];for(const _0x5cba11 of _0x3a2eab){const _0x5dd46a=_0x11eddf['rfrVi'](join,_0x1dad88,_0x5cba11);try{return{'buffer':await readFile(_0x5dd46a),'source':_0x5dd46a};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x3d5d26){const _0x406916=_0x4c98,_0x533ef8={'TMdxw':function(_0x239638,_0x29eafd,_0x2bbf5c){return _0x239638(_0x29eafd,_0x2bbf5c);},'NAvTC':function(_0x1bf146,_0x3a34cd,_0x52b9c7){return _0x1bf146(_0x3a34cd,_0x52b9c7);},'WJFRb':function(_0x2e3d48,_0x1e3467){return _0x2e3d48<_0x1e3467;},'fpCXE':function(_0x5803b1,_0x3eecc4){return _0x5803b1+_0x3eecc4;}},{cwd:_0x11dc5b,cliArtifactDir:_0x18ad18,startTime:_0x517cd1}=_0x3d5d26,_0x475e59=[];await mkdir(_0x18ad18,{'recursive':!![]});const _0x20ec19=await _0x533ef8[_0x406916(0x1c8)](readdir,_0x11dc5b,{'withFileTypes':!![]});for(const _0xc12c4c of _0x20ec19){if(!_0xc12c4c['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0xc12c4c[_0x406916(0x198)]))continue;const _0x4eea40=_0x533ef8[_0x406916(0x17f)](join,_0x11dc5b,_0xc12c4c[_0x406916(0x198)]),_0x51c6d3=await stat(_0x4eea40);if(_0x533ef8[_0x406916(0x159)](_0x533ef8['fpCXE'](_0x51c6d3['mtimeMs'],0x7d0),_0x517cd1))continue;const _0x7416c7=buildCliArtifactPath(_0x18ad18,_0xc12c4c[_0x406916(0x198)]);if(_0x4eea40===_0x7416c7)continue;await _0x533ef8['NAvTC'](rename,_0x4eea40,_0x7416c7),_0x475e59[_0x406916(0x18d)](_0xc12c4c[_0x406916(0x198)]);}return _0x475e59['sort']();}
1
+ (function(_0x3f8fc9,_0x3e76af){const _0x56beb4=_0x27d8,_0xcb5d60=_0x3f8fc9();while(!![]){try{const _0x1ff97e=parseInt(_0x56beb4(0x20f))/0x1+parseInt(_0x56beb4(0x247))/0x2+parseInt(_0x56beb4(0x275))/0x3+-parseInt(_0x56beb4(0x227))/0x4+-parseInt(_0x56beb4(0x22a))/0x5*(-parseInt(_0x56beb4(0x269))/0x6)+parseInt(_0x56beb4(0x1ef))/0x7*(-parseInt(_0x56beb4(0x24d))/0x8)+parseInt(_0x56beb4(0x238))/0x9;if(_0x1ff97e===_0x3e76af)break;else _0xcb5d60['push'](_0xcb5d60['shift']());}catch(_0x56b6b7){_0xcb5d60['push'](_0xcb5d60['shift']());}}}(_0x3d19,0x19075));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';function _0x27d8(_0x4a89aa,_0x21b101){_0x4a89aa=_0x4a89aa-0x1eb;const _0x3d1931=_0x3d19();let _0x27d86f=_0x3d1931[_0x4a89aa];return _0x27d86f;}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(_0x17d9ba,_0x353621=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x35f84c=_0x27d8,_0x373789={'UdNpg':function(_0x5a208e,_0x4bfa93){return _0x5a208e>_0x4bfa93;},'bLcyb':function(_0x2a2b3e,_0x970b0b){return _0x2a2b3e+_0x970b0b;},'GPhiO':'...'};return _0x373789['UdNpg'](_0x17d9ba['length'],_0x353621)?_0x373789[_0x35f84c(0x24e)](_0x17d9ba['slice'](0x0,_0x353621),_0x373789['GPhiO']):_0x17d9ba;}function buildCliArtifactPath(_0x25e6a9,_0x21c9b4){return join(_0x25e6a9,_0x21c9b4);}function toStepDisplayName(_0x26f87a){const _0x453ff1=_0x27d8,_0x1f02cb={'ioFGK':function(_0x4345cd,_0xe9750d){return _0x4345cd(_0xe9750d);}},_0x23c377=basename(_0x26f87a)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')[_0x453ff1(0x231)](/-/g,'\x20');return{'name':_0x23c377,'isKeyStep':/^key_/i['test'](_0x1f02cb['ioFGK'](basename,_0x26f87a))};}function extractShellValue(_0x3fb0f8){if(!_0x3fb0f8)return null;return _0x3fb0f8[0x1]??_0x3fb0f8[0x2]??_0x3fb0f8[0x3]??null;}function extractFilenameOption(_0x29696a){const _0x488a4b={'xMQMf':function(_0x917066,_0x6e3e50){return _0x917066(_0x6e3e50);}};return _0x488a4b['xMQMf'](extractShellValue,_0x29696a['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x31944a,_0x25f940){const _0x2cb528=_0x27d8,_0x8a2ff3={'XrRhC':_0x2cb528(0x222)},_0x3e6c37=_0x25f940[_0x2cb528(0x231)](/[.*+?^${}()|[\]\\]/g,_0x8a2ff3[_0x2cb528(0x228)]);return extractShellValue(_0x31944a[_0x2cb528(0x23b)](new RegExp(_0x2cb528(0x273)+_0x3e6c37+_0x2cb528(0x23c))));}function formatCommandTarget(_0x1d18de){const _0x3c7032=_0x27d8,_0x4c997e={'SlQfz':_0x3c7032(0x1f4),'nBoKS':function(_0xe3c2ab,_0x440642,_0x5ab48b){return _0xe3c2ab(_0x440642,_0x5ab48b);}};if(!_0x1d18de)return _0x4c997e[_0x3c7032(0x235)];if(/^e\d+$/i['test'](_0x1d18de))return _0x3c7032(0x20d)+_0x1d18de;return JSON[_0x3c7032(0x1f0)](_0x4c997e[_0x3c7032(0x1f3)](truncatePreview,_0x1d18de,0x78));}function formatPlaywrightCliLog(_0x213c4f,_0x40b932){const _0x2369f7=_0x27d8,_0x192b53={'QzlBK':function(_0x333f2e,_0x5997fd,_0x5e2a1f){return _0x333f2e(_0x5997fd,_0x5e2a1f);},'XYfBd':'tracing-start','Wjsvt':_0x2369f7(0x202),'SSkqq':_0x2369f7(0x23f),'pWrxY':'stop\x20video\x20recording','mypWQ':_0x2369f7(0x257),'mvkeu':function(_0x3e1034,_0x226325){return _0x3e1034(_0x226325);},'uUrPP':function(_0x421efd,_0x382360){return _0x421efd(_0x382360);},'fiLSh':function(_0x3e42ba,_0x53f93d,_0x498e0b){return _0x3e42ba(_0x53f93d,_0x498e0b);},'TsOcl':function(_0x22992b,_0x3f4a2d,_0x57f979){return _0x22992b(_0x3f4a2d,_0x57f979);},'pvcVm':_0x2369f7(0x209),'RaqEx':function(_0x109ce1,_0x7a82f7){return _0x109ce1(_0x7a82f7);},'Dpuht':'press','INGKT':_0x2369f7(0x266),'kJXkz':_0x2369f7(0x26e),'ZljLw':'tab-select','kBocT':'select\x20tab'};switch(_0x40b932){case _0x2369f7(0x21e):{const _0x9b680b=_0x192b53[_0x2369f7(0x244)](extractFirstCommandArgument,_0x213c4f,_0x40b932);return _0x9b680b?_0x2369f7(0x245)+_0x9b680b:'open\x20browser';}case _0x192b53['XYfBd']:return'start\x20tracing';case _0x2369f7(0x278):return _0x192b53['Wjsvt'];case _0x192b53['SSkqq']:return'start\x20video\x20recording';case'video-stop':return _0x192b53['pWrxY'];case'snapshot':{const _0x219020=extractFilenameOption(_0x213c4f);if(!_0x219020)return _0x2369f7(0x267);const {name:_0xa4d8ea}=toStepDisplayName(_0x219020);return'capture\x20snapshot\x20`'+_0xa4d8ea+'`';}case _0x192b53['mypWQ']:{const _0xa3d152=_0x192b53[_0x2369f7(0x24b)](extractFilenameOption,_0x213c4f);if(!_0xa3d152)return _0x2369f7(0x262);const {name:_0x29b58f,isKeyStep:_0x1e9d5a}=_0x192b53[_0x2369f7(0x246)](toStepDisplayName,_0xa3d152);return _0x1e9d5a?_0x2369f7(0x264)+_0x29b58f+'`':'capture\x20step\x20`'+_0x29b58f+'`';}case'click':return _0x2369f7(0x219)+_0x192b53['uUrPP'](formatCommandTarget,_0x192b53['fiLSh'](extractFirstCommandArgument,_0x213c4f,_0x40b932));case _0x2369f7(0x1f6):return _0x2369f7(0x224)+_0x192b53['mvkeu'](formatCommandTarget,_0x192b53['TsOcl'](extractFirstCommandArgument,_0x213c4f,_0x40b932));case _0x192b53[_0x2369f7(0x258)]:return _0x2369f7(0x21d)+_0x192b53['RaqEx'](formatCommandTarget,extractFirstCommandArgument(_0x213c4f,_0x40b932));case _0x192b53['Dpuht']:return'press\x20'+formatCommandTarget(extractFirstCommandArgument(_0x213c4f,_0x40b932));case _0x192b53['INGKT']:return'run\x20custom\x20Playwright\x20code';case _0x2369f7(0x20e):{const _0x2f5c67=extractFirstCommandArgument(_0x213c4f,_0x40b932);return _0x2f5c67?'open\x20new\x20tab\x20'+_0x2f5c67:_0x192b53['kJXkz'];}case _0x192b53[_0x2369f7(0x22f)]:{const _0x1d5db5=extractFirstCommandArgument(_0x213c4f,_0x40b932);return _0x1d5db5?'select\x20tab\x20'+_0x1d5db5:_0x192b53['kBocT'];}default:return _0x40b932;}}function extractPlaywrightCliToolDescription(_0x1ca337){const _0x40d92a=_0x27d8,_0x3df138={'BHxrj':function(_0x4ccc7b,_0x475725){return _0x4ccc7b>_0x475725;}},_0x56b5d4=_0x1ca337[_0x40d92a(0x216)];if(typeof _0x56b5d4!==_0x40d92a(0x212))return null;const _0x5c20ea=_0x56b5d4['trim']()['replace'](/\s+/g,'\x20');return _0x3df138[_0x40d92a(0x214)](_0x5c20ea[_0x40d92a(0x24c)],0x0)?_0x5c20ea:null;}export function formatPlaywrightCliConsoleLogMessage(_0x402047,_0x44eb06,_0x5e3451){const _0x9d9200=_0x27d8,_0x4a9c86=formatPlaywrightCliLog(_0x44eb06,_0x5e3451),_0x1bbb31=extractPlaywrightCliToolDescription(_0x402047);if(!_0x1bbb31)return'[playwright-cli]\x20'+_0x4a9c86;if(process[_0x9d9200(0x21c)][_0x9d9200(0x229)])return'[ranger-verification-agent]\x20'+_0x1bbb31+'\x20('+_0x4a9c86+')';return _0x9d9200(0x232)+_0x1bbb31;}export function buildVerifyFeatureCliDebugPrompt(_0x2ef2b1,_0x529723){const _0x58fe86=_0x27d8,_0x6ba18f={'bcWZf':function(_0x705f6f,_0x4bfbef,_0x542f23){return _0x705f6f(_0x4bfbef,_0x542f23);},'fkfkg':'00_mozilla-homepage.yml','MYSqU':_0x58fe86(0x259),'xtVqG':_0x58fe86(0x21a),'alwrQ':function(_0x4866d5,_0xb98a1a,_0x9ba28c){return _0x4866d5(_0xb98a1a,_0x9ba28c);},'wYatv':'03_learn-more.png','wpLcv':function(_0x50e288,_0x2a711c){return _0x50e288(_0x2a711c);}},_0x479309=_0x6ba18f[_0x58fe86(0x20b)](buildCliArtifactPath,_0x529723,_0x6ba18f['fkfkg']),_0x2215e4=buildCliArtifactPath(_0x529723,_0x6ba18f[_0x58fe86(0x256)]),_0x249e63=buildCliArtifactPath(_0x529723,_0x6ba18f['xtVqG']),_0x40f3f4=_0x6ba18f[_0x58fe86(0x277)](buildCliArtifactPath,_0x529723,_0x6ba18f['wYatv']),_0x5443e1=quoteShellArg(_0x479309),_0x5b798a=_0x6ba18f[_0x58fe86(0x206)](quoteShellArg,_0x2215e4),_0x1c545d=quoteShellArg(_0x249e63),_0x326154=_0x6ba18f['wpLcv'](quoteShellArg,_0x40f3f4);return _0x58fe86(0x1ec)+_0x2ef2b1+'\x0a\x0a1.\x20Run\x20`'+_0x2ef2b1+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x2ef2b1+_0x58fe86(0x265)+_0x2ef2b1+_0x58fe86(0x22d)+_0x529723+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x2ef2b1+'\x20snapshot\x20--filename\x20'+_0x5443e1+_0x58fe86(0x20c)+_0x2ef2b1+_0x58fe86(0x25a)+_0x5b798a+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x2ef2b1+_0x58fe86(0x225)+_0x1c545d+_0x58fe86(0x26d)+_0x2ef2b1+_0x58fe86(0x25a)+_0x326154+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x4adf16){const _0x35d34a=_0x27d8,_0x52d3df={'ROHyL':_0x35d34a(0x26f),'WPrrI':'numeric','ARhRF':'Reviewer','OdoZq':function(_0x4e3d8c,_0x30ce2d,_0x5d9e9c){return _0x4e3d8c(_0x30ce2d,_0x5d9e9c);},'SISwm':_0x35d34a(0x248),'lQOgx':'02_state.yml','lBCBr':_0x35d34a(0x251),'mLqKw':'01_initial-state.png','TKYkD':function(_0x591a8d,_0x29368a){return _0x591a8d(_0x29368a);},'EEJnY':function(_0x6a2315,_0x20b482){return _0x6a2315(_0x20b482);},'IpDJa':function(_0x780efc,_0x151790,_0x1ce3dd){return _0x780efc(_0x151790,_0x1ce3dd);},'eRPAx':function(_0x1b30f8,_0x179acc,_0x5df5e7){return _0x1b30f8(_0x179acc,_0x5df5e7);}},{checklistItem:_0x5a9067,itemFeedback:_0x5bae97,taskDescription:_0x3e0ec1,cliCommandPrefix:_0x364998,cliArtifactDir:_0x20fea3,isCdpMode:_0x456fbf,url:_0x5802d2,cdpEndpoint:_0x1749a1,loginInstructions:_0x4c1206}=_0x4adf16,_0x3b003e=_0x52d3df[_0x35d34a(0x1ed)](buildCliArtifactPath,_0x20fea3,_0x52d3df[_0x35d34a(0x241)]),_0x4794e0=buildCliArtifactPath(_0x20fea3,_0x52d3df['lQOgx']),_0x570d40=buildCliArtifactPath(_0x20fea3,_0x52d3df[_0x35d34a(0x1eb)]),_0x39fcfb=buildCliArtifactPath(_0x20fea3,_0x52d3df[_0x35d34a(0x26c)]),_0x499745=quoteShellArg(_0x3b003e),_0x1295b2=quoteShellArg(_0x4794e0),_0x5c2124=quoteShellArg(_0x570d40),_0x3e34dc=_0x52d3df['TKYkD'](quoteShellArg,_0x39fcfb),_0x3cdd2e=_0x5a9067[_0x35d34a(0x208)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x5a9067[_0x35d34a(0x208)]:'';let _0x5a5446='';if(_0x5bae97&&_0x5bae97['unaddressedComments'][_0x35d34a(0x24c)]>0x0){const _0x1fe407=_0x5bae97[_0x35d34a(0x242)]['map'](_0x128d58=>{const _0x5996f3=_0x35d34a,_0xa387c9=new Date(_0x128d58[_0x5996f3(0x271)])['toLocaleDateString'](_0x52d3df['ROHyL'],{'month':_0x5996f3(0x1f1),'day':_0x52d3df['WPrrI']}),_0x57d398=_0x128d58['authorName']||_0x128d58['authorEmail']||_0x52d3df[_0x5996f3(0x203)],_0x206d5a=_0x128d58['domRef']?_0x5996f3(0x24a)+(_0x128d58['domRef']['selector']['split'](_0x5996f3(0x221))['pop']()?.[_0x5996f3(0x253)](':')[0x0]||'element')+'>\x20\x22'+(_0x128d58[_0x5996f3(0x1ff)][_0x5996f3(0x210)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x128d58['id']+']\x20**'+_0x57d398+_0x5996f3(0x25b)+_0xa387c9+_0x5996f3(0x26a)+_0x128d58[_0x5996f3(0x25f)]+'\x22'+_0x206d5a;})['join']('\x0a');_0x5a5446='\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'+_0x1fe407;}const _0x43a7c8=_0x5bae97?.[_0x35d34a(0x1fe)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x5bae97['canonicalFlow']:'',_0x4b5d3c=_0x456fbf?_0x35d34a(0x250)+_0x1749a1+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':_0x35d34a(0x230)+_0x5802d2+_0x35d34a(0x20a),_0x59228d=_0x5802d2?_0x52d3df[_0x35d34a(0x23a)](quoteShellArg,_0x5802d2):'',_0x5cc18c=_0x456fbf?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x364998+_0x35d34a(0x233)+_0x364998+_0x35d34a(0x270)+_0x364998+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x20fea3+_0x35d34a(0x1ee)+_0x364998+_0x35d34a(0x225)+_0x499745+_0x35d34a(0x23d)+_0x364998+_0x35d34a(0x25a)+_0x3e34dc+_0x35d34a(0x21b)+_0x364998+_0x35d34a(0x243):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x364998+'\x20open\x20'+_0x59228d+'`,\x20then\x20`'+_0x364998+'\x20tracing-start`,\x20then\x20`'+_0x364998+_0x35d34a(0x276)+_0x20fea3+_0x35d34a(0x1ee)+_0x364998+_0x35d34a(0x225)+_0x499745+_0x35d34a(0x205)+_0x364998+_0x35d34a(0x25a)+_0x3e34dc+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x364998+_0x35d34a(0x207),_0x36786b=_0x456fbf?'\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.':'\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.',_0x375d8c=_0x4c1206?_0x35d34a(0x1fa)+_0x4c1206+'\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'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'+_0x5a9067['description']+_0x3cdd2e+_0x5a5446+_0x43a7c8+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x3e0ec1+'\x0a\x0a'+_0x4b5d3c+_0x375d8c+'\x0a\x0a'+_0x5cc18c+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x364998+_0x35d34a(0x255)+_0x20fea3+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x1295b2+_0x35d34a(0x226)+_0x5c2124+'`\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`'+_0x20fea3+_0x35d34a(0x215)+_0x39fcfb+'\x22,\x20\x22'+_0x52d3df[_0x35d34a(0x274)](buildCliArtifactPath,_0x20fea3,_0x35d34a(0x23e))+_0x35d34a(0x1f7)+buildCliArtifactPath(_0x20fea3,'03_result-visible.png')+_0x35d34a(0x254)+_0x52d3df[_0x35d34a(0x1f5)](buildCliArtifactPath,_0x20fea3,'key_04_success-state.png')+_0x35d34a(0x263)+_0x36786b+_0x35d34a(0x204);}export function summarizeVerifyFeatureCliCommandAvailability(_0x20192a){const _0x1ed8c6=_0x27d8,_0x326958=[..._0x20192a['keys']()][_0x1ed8c6(0x25c)]();let _0x1f8d2b=0x0;for(const _0x2e7eab of _0x20192a[_0x1ed8c6(0x237)]()){_0x1f8d2b+=_0x2e7eab;}return{'cliCommandCount':_0x1f8d2b,'cliCommandsSeen':_0x326958,'noCliCommandsCalled':_0x1f8d2b===0x0};}export function createVerifyFeatureCliHooks(_0x4437df){const _0x176f4a=_0x27d8,_0xbaa133={'hrXeW':function(_0x3fb0c0,_0x4d9fd1){return _0x3fb0c0!==_0x4d9fd1;},'DWShU':function(_0x353871,_0x3a9de9){return _0x353871+_0x3a9de9;},'vyPMx':_0x176f4a(0x240),'EdoAX':_0x176f4a(0x25d),'EwUlk':function(_0x187841,_0x49c5d0){return _0x187841(_0x49c5d0);},'QTIcV':'snapshot','AbOsM':function(_0xdfe227,_0x124ee3,_0x12638d,_0x1c762b){return _0xdfe227(_0x124ee3,_0x12638d,_0x1c762b);},'zgTjS':_0x176f4a(0x25e),'PwOGg':_0x176f4a(0x22c),'ECrXI':_0x176f4a(0x22b)},_0x33fb82=new Map(),_0x1b5f8e=async _0xb10d7d=>{const _0x4bee35=_0x176f4a;if(_0xbaa133[_0x4bee35(0x1f8)](_0xb10d7d['hook_event_name'],'PostToolUse'))return{};const _0x2f7c2c=_0xb10d7d;if(_0x2f7c2c[_0x4bee35(0x1fc)]!==_0x4bee35(0x22b))return{};const _0x5a86b4=_0x2f7c2c['tool_input'],_0x4cde40=extractBashCommand(_0x5a86b4);if(!_0x4cde40)return{};const _0x37e6a6=parsePlaywrightCliCommand(_0x4cde40);if(!_0x37e6a6)return{};return _0x33fb82['set'](_0x37e6a6,_0xbaa133['DWShU'](_0x33fb82['get'](_0x37e6a6)||0x0,0x1)),_0x4437df['trackPhaseStart'](_0xbaa133['vyPMx'],{'transport':_0x4bee35(0x25d),'toolName':_0x37e6a6}),_0x4437df[_0x4bee35(0x234)](_0xbaa133['vyPMx'],{'transport':_0xbaa133['EdoAX'],'toolName':_0x37e6a6,'bashCommandPreview':_0xbaa133[_0x4bee35(0x1fb)](truncatePreview,_0x4cde40)}),_0xbaa133['hrXeW'](_0x37e6a6,_0xbaa133['QTIcV'])&&console['log'](_0xbaa133['AbOsM'](formatPlaywrightCliConsoleLogMessage,_0x5a86b4,_0x4cde40,_0x37e6a6)),{};},_0x10bc3a=async _0x1fe777=>{const _0x525ad1=_0x176f4a;if(_0xbaa133[_0x525ad1(0x1f8)](_0x1fe777[_0x525ad1(0x24f)],_0xbaa133[_0x525ad1(0x211)]))return{};const _0x26eea8=_0x1fe777;if(_0x26eea8['tool_name']!==_0x525ad1(0x22b))return{};return await _0x4437df[_0x525ad1(0x220)](_0xbaa133[_0x525ad1(0x223)],_0x26eea8[_0x525ad1(0x26b)],{'transport':_0xbaa133['EdoAX'],'toolName':_0xbaa133[_0x525ad1(0x1fd)]}),{};};return{'postToolUseHook':_0x1b5f8e,'postToolUseFailureHook':_0x10bc3a,'commandCounts':_0x33fb82};}async function runPlaywrightCliLifecycleCommand(_0x1c9093){const _0x5e9c3d=_0x27d8,_0xa804bc={'rBWGy':function(_0x4da336,_0x357ee4){return _0x4da336(_0x357ee4);}},{sessionId:_0x40484c,configPath:_0x32d11f,commandArgs:_0x48d9f4,env:_0x26724a,telemetry:_0x2bd38b,phase:_0x26fb09,metadata:_0x13c61a,timeoutMs:_0xa07946}=_0x1c9093;_0x2bd38b[_0x5e9c3d(0x260)](_0x26fb09,_0x13c61a);try{const _0x375f3a=await _0xa804bc[_0x5e9c3d(0x272)](runPlaywrightCliCommand,{'sessionId':_0x40484c,'configPath':_0x32d11f,'commandArgs':_0x48d9f4,'cwd':process['cwd'](),'env':_0x26724a,'timeoutMs':_0xa07946??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x2bd38b[_0x5e9c3d(0x234)](_0x26fb09,{..._0x13c61a,'subcommand':_0x375f3a['invocation'][_0x5e9c3d(0x249)],'stdoutPreview':truncatePreview(_0x375f3a['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x375f3a[_0x5e9c3d(0x22e)],0x7d0)});}catch(_0x12ea6e){await _0x2bd38b['trackPhaseError'](_0x26fb09,_0x12ea6e,_0x13c61a);throw _0x12ea6e;}}export async function finalizeVerifyFeatureCliSession(_0x35a476){const _0x1bdea4=_0x27d8,_0x550511={'PHLOn':_0x1bdea4(0x278),'maPbS':function(_0x50a874,_0x50273d,_0x2ab0b3){return _0x50a874(_0x50273d,_0x2ab0b3);},'hDjgW':'session-recording.webm','mcKNY':_0x1bdea4(0x252),'BcTpj':function(_0x48f06c,_0x5842c9){return _0x48f06c(_0x5842c9);}},{telemetry:_0x5e9b25,sessionId:_0x1bfc27,configPath:_0x9d1c28,cliArtifactDir:_0x330642,env:_0x51e1d6,transportMetadata:_0x495358}=_0x35a476,_0x1c1b3c=[{'phase':'playwright_cli_tracing_stop','commandArgs':[_0x550511[_0x1bdea4(0x213)]]},{'phase':_0x1bdea4(0x261),'commandArgs':['video-stop','--filename='+_0x550511[_0x1bdea4(0x1f2)](buildCliArtifactPath,_0x330642,_0x550511[_0x1bdea4(0x268)])]},{'phase':_0x550511['mcKNY'],'commandArgs':['close']}];for(const _0x308255 of _0x1c1b3c){try{await _0x550511['BcTpj'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x1bfc27,'configPath':_0x9d1c28,'commandArgs':[..._0x308255['commandArgs']],'env':_0x51e1d6,'telemetry':_0x5e9b25,'phase':_0x308255[_0x1bdea4(0x21f)],'metadata':_0x495358});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x6b4bc7){const _0x24ca96=_0x27d8,_0x1a7249={'sHkJs':'trace.trace.zip'},_0x2ac5f5=['trace.zip',_0x1a7249[_0x24ca96(0x201)]];for(const _0x51f940 of _0x2ac5f5){const _0x2f8002=join(_0x6b4bc7,_0x51f940);try{return{'buffer':await readFile(_0x2f8002),'source':_0x2f8002};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x2f2215){const _0x12cfe9=_0x27d8,_0x2cf0de={'cIUed':function(_0x9abd95,_0x45750b,_0x146393){return _0x9abd95(_0x45750b,_0x146393);},'Flxpd':function(_0x4b7bd7,_0x32be5d,_0x3fc900){return _0x4b7bd7(_0x32be5d,_0x3fc900);},'IsKCA':function(_0x378ebd,_0x79fcdd){return _0x378ebd(_0x79fcdd);},'EwBgv':function(_0xaaca6f,_0x54b937){return _0xaaca6f<_0x54b937;},'WRoKA':function(_0x34c25d,_0x88f0a6,_0x17232e){return _0x34c25d(_0x88f0a6,_0x17232e);}},{cwd:_0x4eaf09,cliArtifactDir:_0x32bccd,startTime:_0x48ef5c}=_0x2f2215,_0x25980d=[];await _0x2cf0de['cIUed'](mkdir,_0x32bccd,{'recursive':!![]});const _0x1ba299=await readdir(_0x4eaf09,{'withFileTypes':!![]});for(const _0x489431 of _0x1ba299){if(!_0x489431[_0x12cfe9(0x200)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x12cfe9(0x239)](_0x489431[_0x12cfe9(0x218)]))continue;const _0x3e8224=_0x2cf0de['Flxpd'](join,_0x4eaf09,_0x489431[_0x12cfe9(0x218)]),_0x56e57c=await _0x2cf0de[_0x12cfe9(0x236)](stat,_0x3e8224);if(_0x2cf0de['EwBgv'](_0x56e57c[_0x12cfe9(0x1f9)]+0x7d0,_0x48ef5c))continue;const _0x10c40d=_0x2cf0de[_0x12cfe9(0x217)](buildCliArtifactPath,_0x32bccd,_0x489431[_0x12cfe9(0x218)]);if(_0x3e8224===_0x10c40d)continue;await rename(_0x3e8224,_0x10c40d),_0x25980d['push'](_0x489431[_0x12cfe9(0x218)]);}return _0x25980d['sort']();}function _0x3d19(){const _0x32744a=['PwOGg','check\x20','\x20snapshot\x20--filename\x20','`\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','700676heeAly','XrRhC','DEBUG','5oJzfEH','Bash','tool_failure','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','stderr','ZljLw','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','replace','[ranger-verification-agent]\x20','\x20open`,\x20then\x20`','trackPhaseEnd','SlQfz','IsKCA','values','1021428RGXsYp','test','EEJnY','match','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','`\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`','02_button-clicked.png','video-start','tool_call','SISwm','unaddressedComments','\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','QzlBK','open\x20','uUrPP','297650Epbajx','01_initial.yml','subcommand','\x20(on\x20element:\x20<','mvkeu','length','8rKrTKa','bLcyb','hook_event_name','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','key_03_success-state.png','playwright_cli_close','split','\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','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','MYSqU','screenshot','pvcVm','01_mozilla-homepage.png','\x20screenshot\x20--filename\x20','**\x20(','sort','playwright-cli','PostToolUseFailure','content','trackPhaseStart','playwright_cli_video_stop','capture\x20screenshot','\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','capture\x20key\x20step\x20`','\x20tracing-start`\x0a3.\x20Run\x20`','run-code','capture\x20snapshot','hDjgW','151392lnyGDb','):\x20\x22','error','mLqKw','`\x0a9.\x20Run\x20`','open\x20new\x20tab','en-US','\x20tracing-start`,\x20then\x20`','createdAt','rBWGy','(?:^|\x5cs)','IpDJa','204822IAGQlm','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','alwrQ','tracing-stop','lBCBr','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','OdoZq','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','1407007seEQNg','stringify','short','maPbS','nBoKS','target','eRPAx','check','\x22,\x20\x22','hrXeW','mtimeMs','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','EwUlk','tool_name','ECrXI','canonicalFlow','domRef','isFile','sHkJs','stop\x20tracing','ARhRF','\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.','`\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`','wpLcv','\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','notes','fill','\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','bcWZf','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','ref\x20','tab-new','122864fdBFlp','textContent','zgTjS','string','PHLOn','BHxrj','`:\x20\x22','description','WRoKA','name','click\x20','02_learn-more.yml','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','env','fill\x20','open','phase','trackPhaseError','\x20>\x20','\x5c$&'];_0x3d19=function(){return _0x32744a;};return _0x3d19();}
@@ -1 +1 @@
1
- const _0x40337=_0x4ea4;(function(_0x17ea48,_0x7e4cd8){const _0x17ba30=_0x4ea4,_0x35223a=_0x17ea48();while(!![]){try{const _0x152e57=parseInt(_0x17ba30(0x1ae))/0x1*(parseInt(_0x17ba30(0x20b))/0x2)+-parseInt(_0x17ba30(0x1d1))/0x3*(-parseInt(_0x17ba30(0x19f))/0x4)+-parseInt(_0x17ba30(0x216))/0x5*(-parseInt(_0x17ba30(0x224))/0x6)+-parseInt(_0x17ba30(0x196))/0x7*(-parseInt(_0x17ba30(0x176))/0x8)+-parseInt(_0x17ba30(0x217))/0x9*(parseInt(_0x17ba30(0x19a))/0xa)+-parseInt(_0x17ba30(0x24f))/0xb+-parseInt(_0x17ba30(0x1f1))/0xc;if(_0x152e57===_0x7e4cd8)break;else _0x35223a['push'](_0x35223a['shift']());}catch(_0x494d53){_0x35223a['push'](_0x35223a['shift']());}}}(_0x1f70,0xa3398));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';function _0x4ea4(_0x396e99,_0x482c6a){_0x396e99=_0x396e99-0x175;const _0x1f7077=_0x1f70();let _0x4ea44c=_0x1f7077[_0x396e99];return _0x4ea44c;}function _0x1f70(){const _0x1e2a3b=['nova_act_final_screenshot','12aVYZrX','goto','BwCTK','UBYqO','push','kUCnV','verify\x20page\x20condition','capture\x20key\x20step\x20`','omdoc','01_initial-state.png','encodeScreencastVideo','length','send','ZIPOo','params','frameCount','authorName','tracing','diqCq','\x20>\x20','elAHf','`\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.','.act_cli','domRef','yuv420p','Page.startScreencast','\x20screenshot\x20--output\x20','qcHaf','now','PpyCG','data','PidHu','execute','padStart','trackPhaseError','captureTraceSample','-\x20[','-qr','readSessionMetadataWithRetry','command','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','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','KaTAS','12425677GmUNgX','nova_act_artifact_recording_stop','Nova\x20command\x20`','RLAOf','>\x20\x22','tracingStarted','body','152tMuCMo','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','\x20snapshot\x20--output\x20','invocation','mQiOK','test','replace','cliArtifactDir','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','nova-act-cli','cvtav','textContent','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','nova_act_command_failure','ms-playwright','**\x20(','phase','stderr','stopped','catch','nova_act_artifact_recording','hook_event_name','filter','screenshot','`.\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`','myPmZ','utf-8','set','\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','BJLvp','-vf','stdout','424858uOiHTh','`\x0a4.\x20Run\x20one\x20batched\x20`','LHEgM','connectOverCDP','10YviZbX','parse','xCypv','startScreencast','flatMap','805076rZqwfc','authorEmail','VLMfI','screencastStarted','nova_act_session_close','getFrameDir','-framerate','TXiYm','close','--output','browser_pid','context','MHsvt','traceSampleInFlight','kcCob','114gjTfTH','OysRn',']\x20**','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','-version','trace.zip','sessionId','eCaPp','`\x0a3.\x20Run\x20`','jpeg','NdEbQ','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','hZovE','traceSampleCount','get','finally','.cache','session','ARhFk','\x20session\x20create\x20','final-state.yaml','VSQos','\x0a\x0a##\x20Additional\x20Notes\x0a','VkuDv','YABRu','key_03_success-state.png','videos','DYmZs','[nova-act-cli]\x20','env','frameSession','KwXtA','createdAt','evaluate','wait-for','15qieVJv','Page.stopScreencast','capture\x20step\x20`','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','allSettled','base64','notes','VoXqj','numeric','-loglevel','ZdGzo','DCFSZ','tool_input','Bash','Page.screencastFrame','oCMma','traceSampleTimer','`\x0a-\x20`','tool_name','transportMetadata','wjVZz','zip','nova_act_session_export','XOKQw','-c:v','canonicalFlow','startTraceSampling','session\x20create','ffmpeg','keys','wait\x20for\x20page\x20condition','mKTwU','27577188QsuVbp','verify','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.','etWfD','split','description','content','stop','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','from','gtyoM','beSyU','sessions','novaOptions','-pix_fmt','nova-artifacts.zip','TdXfU','--format','ask','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','browser','):\x20\x22','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','frame-','iNiRv','startsWith','14418cPPgWR','args','selector','name','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','trackPhaseStart','sort','telemetry','commandArgs','start','nIiUE','2838770OVTLox','185319PwpQcV','PilIL','\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','key_final-state.png','navigate\x20browser','BkjYu','unaddressedComments','LHLQc','pages','snapshot','startAttempted','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'];_0x1f70=function(){return _0x1e2a3b;};return _0x1f70();}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',_0x40337(0x244),_0x40337(0x1f2),'ask',_0x40337(0x225),_0x40337(0x1d0),'snapshot','screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x27fbd0,_0x5ab9f0){return join(_0x27fbd0,_0x5ab9f0);}export class NovaActArtifactRecorder{['params'];[_0x40337(0x205)]=null;[_0x40337(0x1aa)]=null;[_0x40337(0x1cc)]=null;['frameWrites']=[];['frameCount']=0x0;[_0x40337(0x1bb)]=0x0;[_0x40337(0x1e1)]=null;[_0x40337(0x1ac)]=null;[_0x40337(0x254)]=![];['screencastStarted']=![];[_0x40337(0x221)]=![];[_0x40337(0x188)]=![];constructor(_0x5105a2){this['params']=_0x5105a2;}async[_0x40337(0x214)](){const _0x549ad0=_0x40337,_0x10e4fd={'OysRn':function(_0x536728,_0x4ae80b,_0xde2ea5){return _0x536728(_0x4ae80b,_0xde2ea5);},'ARhFk':'nova_act_artifact_recording'};if(this[_0x549ad0(0x221)])return;this[_0x549ad0(0x221)]=!![];const _0x2e9792=await this[_0x549ad0(0x24a)](),_0xae8462=_0x2e9792['cdp_endpoint'];if(!_0xae8462)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x549ad0(0x232)][_0x549ad0(0x1fe)]['sessionId']);await _0x10e4fd[_0x549ad0(0x1af)](mkdir,this[_0x549ad0(0x232)][_0x549ad0(0x17d)],{'recursive':!![]}),this['browser']=await chromium[_0x549ad0(0x199)](_0xae8462,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x549ad0(0x1aa)]=this[_0x549ad0(0x205)]['contexts']()[0x0]??null;if(!this['context'])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this['context'][_0x549ad0(0x235)][_0x549ad0(0x214)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x549ad0(0x254)]=!![],this[_0x549ad0(0x1eb)](),await this['startScreencast'](),this['params'][_0x549ad0(0x212)]['trackPhaseStart'](_0x10e4fd[_0x549ad0(0x1c0)],{...this[_0x549ad0(0x232)]['transportMetadata'],'cdpEndpoint':_0xae8462,'browserPid':_0x2e9792[_0x549ad0(0x1a9)],'sessionState':_0x2e9792['state']}),this['params']['telemetry']['trackPhaseEnd'](_0x10e4fd['ARhFk'],{...this['params'][_0x549ad0(0x1e4)],'tracingStarted':this[_0x549ad0(0x254)],'screencastStarted':this[_0x549ad0(0x1a2)]});}async['stop'](){const _0x4faeba=_0x40337,_0x3e6fa0={'beSyU':'nova_act_artifact_recording_stop'};if(this[_0x4faeba(0x188)])return;this[_0x4faeba(0x188)]=!![];const _0x1ccc71={...this[_0x4faeba(0x232)][_0x4faeba(0x1e4)],'frameCount':this[_0x4faeba(0x233)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this[_0x4faeba(0x254)],'screencastStarted':this[_0x4faeba(0x1a2)]};this['params']['telemetry']['trackPhaseStart'](_0x4faeba(0x250),_0x1ccc71);try{await this['stopTraceSampling'](),await this[_0x4faeba(0x247)](),await this['stopScreencast'](),await Promise[_0x4faeba(0x1d5)](this['frameWrites']);this['context']&&this[_0x4faeba(0x254)]&&await this[_0x4faeba(0x1aa)]['tracing'][_0x4faeba(0x1f8)]({'path':buildCliArtifactPath(this[_0x4faeba(0x232)]['cliArtifactDir'],'trace.zip')});const _0x218849=await this[_0x4faeba(0x22e)]();this['params']['telemetry']['trackPhaseEnd'](_0x4faeba(0x250),{..._0x1ccc71,'videoPath':_0x218849});}catch(_0x30487b){await this['params'][_0x4faeba(0x212)]['trackPhaseError'](_0x3e6fa0[_0x4faeba(0x1fc)],_0x30487b,_0x1ccc71);}finally{await this[_0x4faeba(0x205)]?.[_0x4faeba(0x1a7)]()[_0x4faeba(0x189)](()=>undefined),this['browser']=null,this['context']=null,this[_0x4faeba(0x1cc)]=null;}}async[_0x40337(0x24a)](){const _0x276d80=_0x40337,_0x46a796={'bDNmC':_0x276d80(0x23a),'omdoc':_0x276d80(0x1fd),'ZdGzo':function(_0x5ea86b,_0x95f87b,_0x44c723){return _0x5ea86b(_0x95f87b,_0x44c723);},'jPuDm':_0x276d80(0x190),'nIiUE':function(_0x1b139b,_0x31fa12){return _0x1b139b<_0x31fa12;}},_0x1e19fb=join(homedir(),_0x46a796['bDNmC'],_0x276d80(0x205),_0x46a796[_0x276d80(0x22c)],this['params'][_0x276d80(0x1fe)][_0x276d80(0x1b4)]+'.json'),_0x1cfe43=Date['now']();let _0x173c0b;do{try{const _0x424896=JSON[_0x276d80(0x19b)](await _0x46a796[_0x276d80(0x1db)](readFile,_0x1e19fb,_0x46a796['jPuDm']));if(_0x424896['cdp_endpoint'])return _0x424896;_0x173c0b=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x1e19fb);}catch(_0x429703){_0x173c0b=_0x429703;}await delay(0x64);}while(_0x46a796[_0x276d80(0x215)](Date[_0x276d80(0x240)]()-_0x1cfe43,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x173c0b instanceof Error)throw _0x173c0b;throw new Error(_0x276d80(0x20f)+_0x1e19fb);}async[_0x40337(0x19d)](){const _0x1d1b23=_0x40337,_0x4cf375={'wjVZz':function(_0x8b8275,_0x4a3535,_0x4f2bae){return _0x8b8275(_0x4a3535,_0x4f2bae);},'jliZc':function(_0x251036,_0x48fd80,_0x16aad7){return _0x251036(_0x48fd80,_0x16aad7);},'DBuWm':_0x1d1b23(0x1b7)};if(!this['context'])return;const _0x173cd3=this[_0x1d1b23(0x1aa)][_0x1d1b23(0x21f)]()[0x0];if(!_0x173cd3)return;const _0x5a0502=this[_0x1d1b23(0x1a4)]();await _0x4cf375['jliZc'](mkdir,_0x5a0502,{'recursive':!![]});const _0x5d04dc=await this[_0x1d1b23(0x1aa)]['newCDPSession'](_0x173cd3);this[_0x1d1b23(0x1cc)]=_0x5d04dc,_0x5d04dc['on'](_0x1d1b23(0x1df),_0x10d322=>{const _0x169cca=_0x1d1b23,_0x2eb8d9=++this['frameCount'],_0x27ee03=_0x4cf375['wjVZz'](join,_0x5a0502,_0x169cca(0x208)+String(_0x2eb8d9)[_0x169cca(0x245)](0x6,'0')+'.jpg'),_0x30b45e=_0x4cf375[_0x169cca(0x1e5)](writeFile,_0x27ee03,Buffer[_0x169cca(0x1fa)](_0x10d322[_0x169cca(0x242)],_0x169cca(0x1d6)))[_0x169cca(0x189)](()=>undefined)[_0x169cca(0x1bd)](()=>_0x5d04dc[_0x169cca(0x230)]('Page.screencastFrameAck',{'sessionId':_0x10d322[_0x169cca(0x1b4)]}))['then'](()=>undefined)[_0x169cca(0x189)](()=>undefined);this['frameWrites'][_0x169cca(0x228)](_0x30b45e);}),await _0x5d04dc[_0x1d1b23(0x230)](_0x1d1b23(0x23d),{'format':_0x4cf375['DBuWm'],'quality':0x4b,'everyNthFrame':0x6}),this[_0x1d1b23(0x1a2)]=!![];}async['stopScreencast'](){const _0x12943b=_0x40337;if(!this['frameSession']||!this[_0x12943b(0x1a2)])return;await this[_0x12943b(0x1cc)][_0x12943b(0x230)](_0x12943b(0x1d2))['catch'](()=>undefined);}[_0x40337(0x1eb)](){const _0x4667e1=_0x40337,_0x19fea9={'diqCq':function(_0x408051,_0x356c0d,_0x15f087){return _0x408051(_0x356c0d,_0x15f087);}};this['queueTraceSample'](),this['traceSampleTimer']=_0x19fea9[_0x4667e1(0x236)](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}['queueTraceSample'](){const _0x41ab33=_0x40337;if(this[_0x41ab33(0x1ac)])return;this[_0x41ab33(0x1ac)]=this[_0x41ab33(0x247)]()['finally'](()=>{this['traceSampleInFlight']=null;});}async['stopTraceSampling'](){const _0x139d70=_0x40337;this['traceSampleTimer']&&(clearInterval(this['traceSampleTimer']),this[_0x139d70(0x1e1)]=null),await this[_0x139d70(0x1ac)]?.['catch'](()=>undefined);}async['captureTraceSample'](){const _0x1c849d=_0x40337,_0xe10c26=this['context']?.[_0x1c849d(0x21f)]()[0x0];if(!_0xe10c26)return;try{await _0xe10c26['locator'](_0x1c849d(0x175))[_0x1c849d(0x1cf)](_0x1a93c3=>_0x1a93c3['tagName'],undefined,{'timeout':0x3e8}),this[_0x1c849d(0x1bb)]++;}catch{}}async['encodeScreencastVideo'](){const _0x2aacce=_0x40337,_0x1b1bbd={'cepmQ':function(_0x3dd11c){return _0x3dd11c();},'PTkwA':'-hide_banner','TXiYm':_0x2aacce(0x1da),'MHsvt':'error','BkjYu':'scale=trunc(iw/2)*2:trunc(ih/2)*2','oCMma':_0x2aacce(0x1e9),'EZvAR':'libvpx-vp9','ArYBr':_0x2aacce(0x23c)};if(this['frameCount']<0x2)return null;const _0x473130=await _0x1b1bbd['cepmQ'](resolveFfmpegPath);if(!_0x473130)return null;const _0xe2b34e=join(this['params']['cliArtifactDir'],_0x2aacce(0x1c8));await mkdir(_0xe2b34e,{'recursive':!![]});const _0x374135=join(_0xe2b34e,'session-recording.webm');return await execFileAsync(_0x473130,['-y',_0x1b1bbd['PTkwA'],_0x1b1bbd[_0x2aacce(0x1a6)],_0x1b1bbd[_0x2aacce(0x1ab)],_0x2aacce(0x1a5),'10','-i',join(this[_0x2aacce(0x1a4)](),'frame-%06d.jpg'),_0x2aacce(0x194),_0x1b1bbd[_0x2aacce(0x21c)],_0x1b1bbd[_0x2aacce(0x1e0)],_0x1b1bbd['EZvAR'],_0x2aacce(0x1ff),_0x1b1bbd['ArYBr'],_0x374135]),_0x374135;}['getFrameDir'](){const _0x392601=_0x40337,_0x36ab8a={'VLMfI':'nova-video-frames'};return join(this[_0x392601(0x232)][_0x392601(0x17d)],_0x36ab8a[_0x392601(0x1a1)]);}}async function delay(_0x34041c){await new Promise(_0x54c5f8=>setTimeout(_0x54c5f8,_0x34041c));}async function resolveFfmpegPath(){const _0x3e72f5=_0x40337,_0x120a59={'DYmZs':'ffmpeg','gHFKR':'Caches','DrFYW':function(_0x376afb){return _0x376afb();},'BwCTK':'ms-playwright','VSQos':function(_0x519ef3,_0x21974c){return _0x519ef3(_0x21974c);}};if(await canRunFfmpeg(_0x120a59[_0x3e72f5(0x1c9)]))return _0x3e72f5(0x1ed);const _0x20f2d5=[join(homedir(),'Library',_0x120a59['gHFKR'],_0x3e72f5(0x184)),join(_0x120a59['DrFYW'](homedir),_0x3e72f5(0x1be),_0x120a59[_0x3e72f5(0x226)])];for(const _0x186ecc of _0x20f2d5){try{const _0x1c3529=await _0x120a59[_0x3e72f5(0x1c3)](readdir,_0x186ecc),_0x1a7615=_0x1c3529[_0x3e72f5(0x18c)](_0x25c29e=>_0x25c29e[_0x3e72f5(0x20a)]('ffmpeg-'))['sort']()['reverse']()[_0x3e72f5(0x19e)](_0x286cf5=>[join(_0x186ecc,_0x286cf5,'ffmpeg-mac'),join(_0x186ecc,_0x286cf5,'ffmpeg-linux'),join(_0x186ecc,_0x286cf5,'ffmpeg.exe')]);for(const _0xa741 of _0x1a7615){if(await canRunFfmpeg(_0xa741))return _0xa741;}}catch{}}return null;}async function canRunFfmpeg(_0x173d19){const _0x41a59d=_0x40337,_0x205b26={'qcHaf':_0x41a59d(0x1b2)};try{return await execFileAsync(_0x173d19,[_0x205b26[_0x41a59d(0x23f)]]),!![];}catch{return![];}}function toStepDisplayName(_0xe3bd53){const _0x3d749=_0x40337,_0x2699f6=basename(_0xe3bd53)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x3d749(0x17c)](/^key_/i,'')[_0x3d749(0x17c)](/^\d+_/,'')[_0x3d749(0x17c)](/-/g,'\x20');return{'name':_0x2699f6,'isKeyStep':/^key_/i['test'](basename(_0xe3bd53))};}function extractShellValue(_0x22aff8){if(!_0x22aff8)return null;return _0x22aff8[0x1]??_0x22aff8[0x2]??_0x22aff8[0x3]??null;}function extractOutputOption(_0x46d771){const _0x38c69d={'NpBWJ':function(_0x2c16e0,_0x181c7c){return _0x2c16e0(_0x181c7c);}};return _0x38c69d['NpBWJ'](extractShellValue,_0x46d771['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x412bbd,_0x4d8cb2){const _0x365daa=_0x40337,_0xd425c2={'YrMca':_0x365daa(0x1ec),'cJgKn':'create\x20Nova\x20browser\x20session','MklLO':_0x365daa(0x244),'eCaPp':'execute\x20Nova\x20browser\x20action','tqXak':_0x365daa(0x22a),'SYIqx':_0x365daa(0x203),'TnNVf':'ask\x20page\x20question','mUFkA':_0x365daa(0x225),'kUCnV':'wait-for','FhRcG':_0x365daa(0x1ef),'vHFpn':_0x365daa(0x18d),'YABRu':function(_0xb956aa,_0x2e1f3){return _0xb956aa(_0x2e1f3);},'KaTAS':'session\x20export','xCypv':'export\x20Nova\x20session'};switch(_0x4d8cb2){case _0xd425c2['YrMca']:return _0xd425c2['cJgKn'];case _0xd425c2['MklLO']:return _0xd425c2[_0x365daa(0x1b5)];case'verify':return _0xd425c2['tqXak'];case _0xd425c2['SYIqx']:return _0xd425c2['TnNVf'];case _0xd425c2['mUFkA']:return _0x365daa(0x21b);case _0xd425c2[_0x365daa(0x229)]:return _0xd425c2['FhRcG'];case'snapshot':{const _0x5a0ced=extractOutputOption(_0x412bbd);if(!_0x5a0ced)return'capture\x20snapshot';const {name:_0x55499a}=toStepDisplayName(_0x5a0ced);return'capture\x20snapshot\x20`'+_0x55499a+'`';}case _0xd425c2['vHFpn']:{const _0x452443=_0xd425c2[_0x365daa(0x1c6)](extractOutputOption,_0x412bbd);if(!_0x452443)return'capture\x20screenshot';const {name:_0x40dd68,isKeyStep:_0x4fc2c3}=toStepDisplayName(_0x452443);return _0x4fc2c3?_0x365daa(0x22b)+_0x40dd68+'`':_0x365daa(0x1d3)+_0x40dd68+'`';}case _0xd425c2[_0x365daa(0x24e)]:return _0xd425c2[_0x365daa(0x19c)];default:return _0x4d8cb2;}}function getNovaActCliCommandBlockReason(_0x1ec751){const _0x45be17=_0x40337,_0x40997c={'kcCob':'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','CULru':_0x45be17(0x1f2),'myPmZ':_0x45be17(0x1f3),'FLMcc':'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.'},_0x47c258=parseNovaActCliCommand(_0x1ec751);if(!_0x47c258)return _0x40997c[_0x45be17(0x1ad)];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x47c258))return _0x45be17(0x251)+_0x47c258+_0x45be17(0x177);if(_0x47c258===_0x40997c['CULru']&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x45be17(0x17b)](_0x1ec751))return _0x40997c[_0x45be17(0x18f)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x45be17(0x17b)](_0x1ec751))return _0x40997c['FLMcc'];return null;}function buildFeedbackSection(_0x55061e){const _0x322865=_0x40337,_0x40f277={'WUDYx':'en-US','qojIz':'short','DCFSZ':'Reviewer','ZIPOo':'element'};if(!_0x55061e||_0x55061e[_0x322865(0x21d)][_0x322865(0x22f)]===0x0)return'';const _0x136e3c=_0x55061e[_0x322865(0x21d)]['map'](_0x4d75fd=>{const _0x1a4355=_0x322865,_0x983947=new Date(_0x4d75fd[_0x1a4355(0x1ce)])['toLocaleDateString'](_0x40f277['WUDYx'],{'month':_0x40f277['qojIz'],'day':_0x1a4355(0x1d9)}),_0x4e1859=_0x4d75fd[_0x1a4355(0x234)]||_0x4d75fd[_0x1a4355(0x1a0)]||_0x40f277[_0x1a4355(0x1dc)],_0x547aa7=_0x4d75fd['domRef']?'\x20(on\x20element:\x20<'+(_0x4d75fd['domRef'][_0x1a4355(0x20d)]['split'](_0x1a4355(0x237))['pop']()?.[_0x1a4355(0x1f5)](':')[0x0]||_0x40f277[_0x1a4355(0x231)])+_0x1a4355(0x253)+(_0x4d75fd[_0x1a4355(0x23b)][_0x1a4355(0x181)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x1a4355(0x248)+_0x4d75fd['id']+_0x1a4355(0x1b0)+_0x4e1859+_0x1a4355(0x185)+_0x983947+_0x1a4355(0x206)+_0x4d75fd[_0x1a4355(0x1f7)]+'\x22'+_0x547aa7;})['join']('\x0a');return _0x322865(0x192)+_0x136e3c;}function buildNovaSharedOptionsInstruction(_0x149235){if(!_0x149235['trim']())return'The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.';return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x149235;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x4a1cb2){const _0x489f1e=_0x40337,_0x3ae232={'cvtav':function(_0x4d4f21,_0x20dc8a,_0x25af7e){return _0x4d4f21(_0x20dc8a,_0x25af7e);},'bymMP':_0x489f1e(0x22d),'PpyCG':function(_0x2a61a8,_0xf3dbf3,_0x2271f3){return _0x2a61a8(_0xf3dbf3,_0x2271f3);},'RLAOf':'03_final-state.png','NdEbQ':function(_0x3b6840,_0x2fa7e4){return _0x3b6840(_0x2fa7e4);},'gtyoM':function(_0x3dac4a,_0x57005d){return _0x3dac4a(_0x57005d);}},{novaCommandPrefix:_0x5dcce0,novaSharedOptionsSuffix:_0x50cd26,cliArtifactDir:_0x26a0fa,url:_0x5c18ca}=_0x4a1cb2,_0x238213=buildCliArtifactPath(_0x26a0fa,'00_initial-state.yml'),_0x2acf65=_0x3ae232['cvtav'](buildCliArtifactPath,_0x26a0fa,_0x3ae232['bymMP']),_0x29e12d=_0x3ae232[_0x489f1e(0x180)](buildCliArtifactPath,_0x26a0fa,'02_final-state.yml'),_0x54499a=_0x3ae232[_0x489f1e(0x241)](buildCliArtifactPath,_0x26a0fa,_0x3ae232[_0x489f1e(0x252)]);return _0x489f1e(0x24d)+_0x5dcce0+'\x0a\x0a'+_0x3ae232[_0x489f1e(0x1b8)](buildNovaSharedOptionsInstruction,_0x50cd26)+'\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`'+_0x5dcce0+'\x20session\x20create\x20'+quoteShellArg(_0x5c18ca)+'\x20'+_0x50cd26+'`\x0a2.\x20Run\x20`'+_0x5dcce0+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x238213)+'\x20'+_0x50cd26+_0x489f1e(0x1b6)+_0x5dcce0+'\x20screenshot\x20--output\x20'+_0x3ae232[_0x489f1e(0x1fb)](quoteShellArg,_0x2acf65)+'\x20'+_0x50cd26+_0x489f1e(0x197)+_0x5dcce0+_0x489f1e(0x204)+_0x5dcce0+_0x489f1e(0x178)+_0x3ae232['NdEbQ'](quoteShellArg,_0x29e12d)+'\x20'+_0x50cd26+'`\x0a6.\x20Run\x20`'+_0x5dcce0+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x54499a)+'\x20'+_0x50cd26+_0x489f1e(0x24c)+_0x26a0fa+_0x489f1e(0x207);}export function buildVerifyFeatureNovaCliPrompt(_0x4e4e98){const _0x3c483d=_0x40337,_0x2fe393={'OTEer':function(_0x394787,_0x3ebc4b){return _0x394787(_0x3ebc4b);},'FnUZn':function(_0x43519b,_0x5b2cde,_0x5494e5){return _0x43519b(_0x5b2cde,_0x5494e5);},'PfiYm':'01_initial.yml','KwXtA':_0x3c483d(0x1c7),'etWfD':function(_0x4b8c07,_0x39a33b){return _0x4b8c07(_0x39a33b);}},{checklistItem:_0x56bed5,itemFeedback:_0x3c7b36,taskDescription:_0x5a317a,novaCommandPrefix:_0xb5360b,novaSharedOptionsSuffix:_0x30157c,cliArtifactDir:_0x33d04f,url:_0x121175,loginInstructions:_0x355ada}=_0x4e4e98,_0x1bf660=_0x56bed5['notes']?_0x3c483d(0x1c4)+_0x56bed5[_0x3c483d(0x1d7)]:'',_0x2866fd=_0x2fe393['OTEer'](buildFeedbackSection,_0x3c7b36),_0x543f6e=_0x3c7b36?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x3c7b36[_0x3c483d(0x1ea)]:'',_0x30bbb9=_0x355ada?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x355ada+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x231722=_0x2fe393['FnUZn'](buildCliArtifactPath,_0x33d04f,_0x2fe393['PfiYm']),_0x241e27=buildCliArtifactPath(_0x33d04f,_0x3c483d(0x22d)),_0x3b3900=buildCliArtifactPath(_0x33d04f,_0x2fe393[_0x3c483d(0x1cd)]);return _0x3c483d(0x222)+_0x56bed5[_0x3c483d(0x1f6)]+_0x1bf660+_0x2866fd+_0x543f6e+_0x3c483d(0x17e)+_0x5a317a+_0x3c483d(0x1f9)+_0x121175+_0x3c483d(0x219)+_0x30bbb9+'\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`'+_0xb5360b+_0x3c483d(0x1c1)+quoteShellArg(_0x121175)+'\x20'+_0x30157c+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x33d04f+'`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`'+_0xb5360b+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x231722)+'\x20'+_0x30157c+_0x3c483d(0x1d4)+_0xb5360b+_0x3c483d(0x23e)+quoteShellArg(_0x241e27)+'\x20'+_0x30157c+'`.\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`'+_0x3b3900+_0x3c483d(0x18e)+_0xb5360b+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x30157c['trim']()?'`'+_0x30157c+'`':_0x3c483d(0x1b9))+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x30157c)+'\x0a\x0aExamples:\x0a-\x20`'+_0xb5360b+_0x3c483d(0x182)+_0x30157c+_0x3c483d(0x1e2)+_0xb5360b+_0x3c483d(0x1b1)+_0x30157c+_0x3c483d(0x1e2)+_0xb5360b+_0x3c483d(0x178)+_0x2fe393[_0x3c483d(0x1f4)](quoteShellArg,_0x231722)+'\x20'+_0x30157c+_0x3c483d(0x1e2)+_0xb5360b+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x3b3900)+'\x20'+_0x30157c+_0x3c483d(0x239);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x164225){const _0x1bace5=_0x40337,_0x3aa719={'VkuDv':function(_0x789293,_0x568cbd){return _0x789293===_0x568cbd;}},_0x35e6c0=[..._0x164225[_0x1bace5(0x1ee)]()][_0x1bace5(0x211)]();let _0x2f7ff8=0x0;for(const _0x432ba0 of _0x164225['values']()){_0x2f7ff8+=_0x432ba0;}return{'cliCommandCount':_0x2f7ff8,'cliCommandsSeen':_0x35e6c0,'noCliCommandsCalled':_0x3aa719[_0x1bace5(0x1c5)](_0x2f7ff8,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x3d21bb,_0x319cd5){const _0x63844=_0x40337,_0x555914={'TdXfU':function(_0x33931c,_0x9c5f24){return _0x33931c!==_0x9c5f24;},'mQiOK':function(_0x4539c1,_0x10b73b){return _0x4539c1(_0x10b73b);},'ixQUq':'PostToolUse','PilIL':_0x63844(0x1de),'BJLvp':function(_0x52883b,_0x335b9f,_0x8fb54f){return _0x52883b(_0x335b9f,_0x8fb54f);},'DkCrB':function(_0x55695a,_0x3f6b7d){return _0x55695a===_0x3f6b7d;},'QXKJZ':'session\x20create','YKEfe':_0x63844(0x18a)},_0x15a64b=new Map(),_0x148d49=async _0x36bcd0=>{const _0x3b3746=_0x63844;if(_0x555914[_0x3b3746(0x201)](_0x36bcd0[_0x3b3746(0x18b)],'PreToolUse'))return{};const _0x5440b9=_0x36bcd0;if(_0x5440b9[_0x3b3746(0x1e3)]!=='Bash')return{};const _0x35ef20=_0x5440b9[_0x3b3746(0x1dd)],_0x46de11=extractBashCommand(_0x35ef20);if(!_0x46de11)return{};const _0x343e6d=_0x555914[_0x3b3746(0x17a)](getNovaActCliCommandBlockReason,_0x46de11);if(!_0x343e6d)return{};return{'decision':'block','reason':_0x343e6d};},_0x5c9314=async _0x446f66=>{const _0x274ecc=_0x63844;if(_0x446f66[_0x274ecc(0x18b)]!==_0x555914['ixQUq'])return{};const _0x2041e9=_0x446f66;if(_0x555914['TdXfU'](_0x2041e9[_0x274ecc(0x1e3)],_0x555914[_0x274ecc(0x218)]))return{};const _0x14984b=_0x2041e9['tool_input'],_0x3d80cb=_0x555914[_0x274ecc(0x17a)](extractBashCommand,_0x14984b);if(!_0x3d80cb)return{};const _0x1a9867=parseNovaActCliCommand(_0x3d80cb);if(!_0x1a9867)return{};_0x15a64b[_0x274ecc(0x191)](_0x1a9867,(_0x15a64b[_0x274ecc(0x1bc)](_0x1a9867)||0x0)+0x1),_0x3d21bb[_0x274ecc(0x210)]('nova_act_command',{'subcommand':_0x1a9867}),_0x3d21bb['trackPhaseEnd']('nova_act_command',{'subcommand':_0x1a9867,'commandPreview':previewNovaActCliCommand(_0x3d80cb)}),console['log'](_0x274ecc(0x1ca)+_0x555914[_0x274ecc(0x193)](formatNovaActCliLog,_0x3d80cb,_0x1a9867));if(_0x555914['DkCrB'](_0x1a9867,_0x555914['QXKJZ'])&&_0x319cd5)try{await _0x319cd5[_0x274ecc(0x214)]();}catch(_0x49c795){await _0x3d21bb[_0x274ecc(0x246)](_0x555914['YKEfe'],_0x49c795,{'transport':'nova-act-cli'});}return{};},_0x73bbd7=async _0x5db477=>{const _0x52a0f1=_0x63844;if(_0x555914['TdXfU'](_0x5db477[_0x52a0f1(0x18b)],'PostToolUseFailure'))return{};const _0x5b8f8a=_0x5db477;if(_0x555914['TdXfU'](_0x5b8f8a['tool_name'],'Bash'))return{};return await _0x3d21bb[_0x52a0f1(0x246)](_0x52a0f1(0x183),_0x5b8f8a['error'],{'transport':_0x52a0f1(0x17f),'toolName':_0x52a0f1(0x1de)}),{};};return{'preToolUseHook':_0x148d49,'postToolUseHook':_0x5c9314,'postToolUseFailureHook':_0x73bbd7,'commandCounts':_0x15a64b};}async function runNovaLifecycleCommand(_0x31d93f){const _0x5dda1c=_0x40337,_0x2ec426={'elAHf':function(_0x1080e8,_0x11034d){return _0x1080e8??_0x11034d;},'ziHjP':function(_0x47f198,_0x425e72){return _0x47f198(_0x425e72);},'PidHu':function(_0x4de9fe,_0x282c11){return _0x4de9fe(_0x282c11);},'UBYqO':function(_0x1b54a7,_0x3f7d7d){return _0x1b54a7(_0x3f7d7d);}},{novaOptions:_0x49c1f5,commandArgs:_0xf22baf,telemetry:_0xa95bf3,phase:_0x283ad1,metadata:_0xf8ca63,timeoutMs:_0x2b27dd}=_0x31d93f;_0xa95bf3[_0x5dda1c(0x210)](_0x283ad1,_0xf8ca63);try{const _0x2be034=await runNovaActCliCommand({..._0x49c1f5,'commandArgs':_0xf22baf,'cwd':process['cwd'](),'env':process[_0x5dda1c(0x1cb)],'timeoutMs':_0x2ec426[_0x5dda1c(0x238)](_0x2b27dd,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0xa95bf3['trackPhaseEnd'](_0x283ad1,{..._0xf8ca63,'subcommand':_0x2be034[_0x5dda1c(0x179)]['subcommand'],'commandPreview':_0x2ec426['ziHjP'](previewNovaActCliCommand,_0x2be034[_0x5dda1c(0x179)]['shellCommand']),'stdoutPreview':_0x2ec426['ziHjP'](previewNovaActCliCommand,_0x2be034[_0x5dda1c(0x195)]),'stderrPreview':_0x2ec426[_0x5dda1c(0x243)](previewNovaActCliCommand,_0x2be034[_0x5dda1c(0x187)]),'logDir':_0x2ec426[_0x5dda1c(0x227)](extractNovaActLogDir,_0x2be034[_0x5dda1c(0x195)])});}catch(_0x3452c7){await _0xa95bf3['trackPhaseError'](_0x283ad1,_0x3452c7,_0xf8ca63);throw _0x3452c7;}}export async function finalizeVerifyFeatureNovaCliSession(_0x2960d7){const _0x2fee1b=_0x40337,_0x1aaecf={'hZovE':_0x2fee1b(0x223),'LHLQc':_0x2fee1b(0x202),'XOKQw':'nova-session-export.json','VoXqj':_0x2fee1b(0x1bf),'gwszN':'nova-report','KHfeJ':_0x2fee1b(0x1a7),'xKjKQ':_0x2fee1b(0x1a3),'BOsiN':function(_0x2012a0,_0x36cca2){return _0x2012a0(_0x36cca2);}},{telemetry:_0x4f728d,novaOptions:_0x37354d,cliArtifactDir:_0x33c6f5,transportMetadata:_0xd0d7fb,artifactRecorder:_0x26ed10}=_0x2960d7,_0x280bb7=[{'phase':_0x1aaecf[_0x2fee1b(0x1ba)],'commandArgs':['screenshot',_0x2fee1b(0x1a8),buildCliArtifactPath(_0x33c6f5,_0x2fee1b(0x21a))]},{'phase':'nova_act_final_snapshot','commandArgs':[_0x2fee1b(0x220),_0x2fee1b(0x1a8),buildCliArtifactPath(_0x33c6f5,_0x2fee1b(0x1c2))]},{'phase':_0x2fee1b(0x1e7),'commandArgs':['session','export',_0x1aaecf[_0x2fee1b(0x21e)],'json',_0x2fee1b(0x1a8),buildCliArtifactPath(_0x33c6f5,_0x1aaecf[_0x2fee1b(0x1e8)])]},{'phase':'nova_act_session_report','commandArgs':[_0x1aaecf[_0x2fee1b(0x1d8)],'export','--report','--output-dir',buildCliArtifactPath(_0x33c6f5,_0x1aaecf['gwszN'])]},{'phase':_0x2fee1b(0x1a3),'commandArgs':[_0x2fee1b(0x1bf),_0x1aaecf['KHfeJ']]}];for(const _0x40f456 of _0x280bb7){_0x40f456['phase']===_0x1aaecf['xKjKQ']&&await _0x26ed10?.[_0x2fee1b(0x1f8)]();try{await _0x1aaecf['BOsiN'](runNovaLifecycleCommand,{'novaOptions':_0x37354d,'commandArgs':[..._0x40f456['commandArgs']],'telemetry':_0x4f728d,'phase':_0x40f456[_0x2fee1b(0x186)],'metadata':_0xd0d7fb});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x33f441){const _0x3eb9f4=_0x40337,_0x24f0fe={'LHEgM':function(_0x16c2bc,_0xb24451){return _0x16c2bc===_0xb24451;}},{cwd:_0x57794e,cliArtifactDir:_0x281b61,startTime:_0x13b858}=_0x33f441,_0x175475=[];await mkdir(_0x281b61,{'recursive':!![]});const _0x1bc139=await readdir(_0x57794e,{'withFileTypes':!![]});for(const _0x193de6 of _0x1bc139){if(!_0x193de6['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x3eb9f4(0x17b)](_0x193de6[_0x3eb9f4(0x20e)]))continue;const _0x5b355b=join(_0x57794e,_0x193de6[_0x3eb9f4(0x20e)]),_0x155c84=await stat(_0x5b355b);if(_0x155c84['mtimeMs']+0x7d0<_0x13b858)continue;const _0x1d3261=buildCliArtifactPath(_0x281b61,_0x193de6[_0x3eb9f4(0x20e)]);if(_0x24f0fe[_0x3eb9f4(0x198)](_0x5b355b,_0x1d3261))continue;await rename(_0x5b355b,_0x1d3261),_0x175475['push'](_0x193de6['name']);}return _0x175475['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x24fa2e){const _0xcfa3e0=_0x40337,_0x5c7bdd={'iNiRv':function(_0x4b2aed,_0x134963){return _0x4b2aed(_0x134963);}},_0xf21cd9=join(_0x24fa2e,_0xcfa3e0(0x1b3));try{return{'buffer':await _0x5c7bdd[_0xcfa3e0(0x209)](readFile,_0xf21cd9),'source':_0xf21cd9};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x24fa2e),'source':_0x24fa2e};}}async function zipVerifyFeatureNovaArtifacts(_0x668e4a){const _0x1da37b=_0x40337,_0x227682={'EZTED':function(_0x7c199b,_0x2c50ba,_0x535379,_0x294d75){return _0x7c199b(_0x2c50ba,_0x535379,_0x294d75);},'BwASu':_0x1da37b(0x249)},_0x1794c1=join(_0x668e4a,'..',_0x1da37b(0x200));try{return await _0x227682['EZTED'](execFileAsync,_0x1da37b(0x1e6),[_0x227682['BwASu'],_0x1794c1,'.','-x','nova-user-data/*'],{'cwd':_0x668e4a}),await readFile(_0x1794c1);}finally{await rm(_0x1794c1,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x1de926){const _0x31607c=_0x40337,_0x11b6af={'mKTwU':function(_0x3f28c5,_0x293040){return _0x3f28c5(_0x293040);}},_0x5045b5=buildNovaActCliInvocation(_0x1de926['novaOptions'],_0x1de926[_0x31607c(0x213)]);return{'command':_0x5045b5[_0x31607c(0x24b)],'args':_0x5045b5[_0x31607c(0x20c)],'commandPreview':_0x11b6af[_0x31607c(0x1f0)](previewNovaActCliCommand,_0x5045b5['shellCommand']),'subcommand':_0x5045b5['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x1de926['novaOptions'],_0x1de926[_0x31607c(0x213)])};}
1
+ const _0x24e5f9=_0x39a1;(function(_0x2f769a,_0x3bb3ea){const _0x5e4a3e=_0x39a1,_0x207cea=_0x2f769a();while(!![]){try{const _0x361196=-parseInt(_0x5e4a3e(0x242))/0x1+-parseInt(_0x5e4a3e(0x1aa))/0x2*(-parseInt(_0x5e4a3e(0x1bd))/0x3)+parseInt(_0x5e4a3e(0x221))/0x4*(parseInt(_0x5e4a3e(0x1a6))/0x5)+parseInt(_0x5e4a3e(0x262))/0x6*(parseInt(_0x5e4a3e(0x18f))/0x7)+-parseInt(_0x5e4a3e(0x21e))/0x8+parseInt(_0x5e4a3e(0x1a2))/0x9+parseInt(_0x5e4a3e(0x203))/0xa*(-parseInt(_0x5e4a3e(0x1d7))/0xb);if(_0x361196===_0x3bb3ea)break;else _0x207cea['push'](_0x207cea['shift']());}catch(_0x5914e8){_0x207cea['push'](_0x207cea['shift']());}}}(_0x1a33,0x73110));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([_0x24e5f9(0x235),'execute','verify',_0x24e5f9(0x239),_0x24e5f9(0x217),'wait-for',_0x24e5f9(0x18c),'screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0xc7f938,_0x2d7b02){return join(_0xc7f938,_0x2d7b02);}export class NovaActArtifactRecorder{[_0x24e5f9(0x265)];['browser']=null;[_0x24e5f9(0x1fd)]=null;[_0x24e5f9(0x1fe)]=null;[_0x24e5f9(0x260)]=[];['frameCount']=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;[_0x24e5f9(0x1c7)]=null;[_0x24e5f9(0x1b6)]=![];['screencastStarted']=![];[_0x24e5f9(0x251)]=![];['stopped']=![];constructor(_0x4bf612){this['params']=_0x4bf612;}async[_0x24e5f9(0x269)](){const _0x1a3ca5=_0x24e5f9;if(this['startAttempted'])return;this[_0x1a3ca5(0x251)]=!![];const _0x1fb2f3=await this[_0x1a3ca5(0x231)](),_0x29c333=_0x1fb2f3['cdp_endpoint'];if(!_0x29c333)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this['params']['novaOptions'][_0x1a3ca5(0x1c3)]);await mkdir(this['params'][_0x1a3ca5(0x207)],{'recursive':!![]}),this['browser']=await chromium[_0x1a3ca5(0x1e1)](_0x29c333,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this[_0x1a3ca5(0x23c)]['contexts']()[0x0]??null;if(!this['context'])throw new Error(_0x1a3ca5(0x26c));await this[_0x1a3ca5(0x1fd)]['tracing'][_0x1a3ca5(0x269)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x1a3ca5(0x1b6)]=!![],this[_0x1a3ca5(0x247)](),await this['startScreencast'](),this['params'][_0x1a3ca5(0x1f4)]['trackPhaseStart'](_0x1a3ca5(0x223),{...this[_0x1a3ca5(0x265)][_0x1a3ca5(0x241)],'cdpEndpoint':_0x29c333,'browserPid':_0x1fb2f3[_0x1a3ca5(0x1d2)],'sessionState':_0x1fb2f3[_0x1a3ca5(0x236)]}),this[_0x1a3ca5(0x265)][_0x1a3ca5(0x1f4)]['trackPhaseEnd'](_0x1a3ca5(0x223),{...this[_0x1a3ca5(0x265)]['transportMetadata'],'tracingStarted':this[_0x1a3ca5(0x1b6)],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x2b07e4=_0x24e5f9,_0x138bc0={'LUNQt':'nova_act_artifact_recording_stop'};if(this['stopped'])return;this['stopped']=!![];const _0x4a338f={...this[_0x2b07e4(0x265)][_0x2b07e4(0x241)],'frameCount':this[_0x2b07e4(0x22b)],'traceSampleCount':this[_0x2b07e4(0x24f)],'tracingStarted':this[_0x2b07e4(0x1b6)],'screencastStarted':this[_0x2b07e4(0x227)]};this['params']['telemetry'][_0x2b07e4(0x257)](_0x138bc0['LUNQt'],_0x4a338f);try{await this['stopTraceSampling'](),await this[_0x2b07e4(0x1f6)](),await this[_0x2b07e4(0x190)](),await Promise['allSettled'](this['frameWrites']);this[_0x2b07e4(0x1fd)]&&this[_0x2b07e4(0x1b6)]&&await this['context'][_0x2b07e4(0x195)][_0x2b07e4(0x1ba)]({'path':buildCliArtifactPath(this[_0x2b07e4(0x265)][_0x2b07e4(0x207)],'trace.zip')});const _0x460e40=await this[_0x2b07e4(0x1c9)]();this['params'][_0x2b07e4(0x1f4)][_0x2b07e4(0x193)](_0x2b07e4(0x1fb),{..._0x4a338f,'videoPath':_0x460e40});}catch(_0xb96259){await this['params'][_0x2b07e4(0x1f4)][_0x2b07e4(0x1eb)](_0x138bc0['LUNQt'],_0xb96259,_0x4a338f);}finally{await this['browser']?.['close']()['catch'](()=>undefined),this[_0x2b07e4(0x23c)]=null,this['context']=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0x99b9c7=_0x24e5f9,_0x4aa3e1={'YKLMa':function(_0x49e223,_0x4d7049,_0x42c4c4,_0x963e62,_0x28049f,_0x4fe8c3){return _0x49e223(_0x4d7049,_0x42c4c4,_0x963e62,_0x28049f,_0x4fe8c3);},'ptTfJ':function(_0x5d73ab){return _0x5d73ab();},'oMBpH':'.act_cli','wPcZj':'browser','tcXBl':'sessions','zuVqM':function(_0x5defdd,_0x1aadd4,_0x45bfaa){return _0x5defdd(_0x1aadd4,_0x45bfaa);},'TzPed':'utf-8','cgUlA':function(_0x3483dd,_0xb9d43d){return _0x3483dd<_0xb9d43d;},'pEJfI':function(_0x12a2a4,_0x2b510e){return _0x12a2a4-_0x2b510e;}},_0x4a2e63=_0x4aa3e1['YKLMa'](join,_0x4aa3e1[_0x99b9c7(0x25a)](homedir),_0x4aa3e1[_0x99b9c7(0x1c0)],_0x4aa3e1[_0x99b9c7(0x253)],_0x4aa3e1[_0x99b9c7(0x254)],this[_0x99b9c7(0x265)][_0x99b9c7(0x240)][_0x99b9c7(0x1c3)]+'.json'),_0x34e31d=Date['now']();let _0x5986c9;do{try{const _0x628160=JSON['parse'](await _0x4aa3e1['zuVqM'](readFile,_0x4a2e63,_0x4aa3e1[_0x99b9c7(0x244)]));if(_0x628160[_0x99b9c7(0x1b2)])return _0x628160;_0x5986c9=new Error(_0x99b9c7(0x1f3)+_0x4a2e63);}catch(_0x4a0e24){_0x5986c9=_0x4a0e24;}await delay(0x64);}while(_0x4aa3e1[_0x99b9c7(0x222)](_0x4aa3e1['pEJfI'](Date[_0x99b9c7(0x19a)](),_0x34e31d),NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x5986c9 instanceof Error)throw _0x5986c9;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x4a2e63);}async[_0x24e5f9(0x18b)](){const _0x307332=_0x24e5f9,_0x4b5b76={'BopGJ':function(_0x34a233,_0x5b6ba8){return _0x34a233(_0x5b6ba8);},'ROVUE':_0x307332(0x23d),'roFPf':function(_0x15a309,_0x529cb8,_0x54cec3){return _0x15a309(_0x529cb8,_0x54cec3);},'sZoKJ':_0x307332(0x1e9),'bNMZK':'jpeg'};if(!this[_0x307332(0x1fd)])return;const _0x2716b4=this['context']['pages']()[0x0];if(!_0x2716b4)return;const _0x8a296e=this[_0x307332(0x233)]();await _0x4b5b76[_0x307332(0x1c1)](mkdir,_0x8a296e,{'recursive':!![]});const _0x202f45=await this['context'][_0x307332(0x24a)](_0x2716b4);this[_0x307332(0x1fe)]=_0x202f45,_0x202f45['on'](_0x307332(0x191),_0x4ae62a=>{const _0x86787a=_0x307332,_0x2deb19=++this['frameCount'],_0xbc5e43=join(_0x8a296e,'frame-'+_0x4b5b76[_0x86787a(0x23e)](String,_0x2deb19)[_0x86787a(0x1ac)](0x6,'0')+_0x86787a(0x1e6)),_0x331b3f=writeFile(_0xbc5e43,Buffer['from'](_0x4ae62a['data'],_0x4b5b76[_0x86787a(0x199)]))[_0x86787a(0x214)](()=>undefined)['finally'](()=>_0x202f45[_0x86787a(0x264)](_0x86787a(0x259),{'sessionId':_0x4ae62a['sessionId']}))[_0x86787a(0x1e0)](()=>undefined)[_0x86787a(0x214)](()=>undefined);this[_0x86787a(0x260)][_0x86787a(0x1d8)](_0x331b3f);}),await _0x202f45[_0x307332(0x264)](_0x4b5b76['sZoKJ'],{'format':_0x4b5b76[_0x307332(0x226)],'quality':0x4b,'everyNthFrame':0x6}),this[_0x307332(0x227)]=!![];}async[_0x24e5f9(0x190)](){const _0x3f0958=_0x24e5f9;if(!this['frameSession']||!this[_0x3f0958(0x227)])return;await this['frameSession'][_0x3f0958(0x264)](_0x3f0958(0x270))[_0x3f0958(0x214)](()=>undefined);}['startTraceSampling'](){const _0x23a8ab=_0x24e5f9,_0x11f137={'seEDh':function(_0x102ef0,_0x2eb8b0,_0x5ac3dc){return _0x102ef0(_0x2eb8b0,_0x5ac3dc);}};this[_0x23a8ab(0x25b)](),this[_0x23a8ab(0x1ab)]=_0x11f137[_0x23a8ab(0x255)](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}['queueTraceSample'](){const _0x575f00=_0x24e5f9;if(this['traceSampleInFlight'])return;this['traceSampleInFlight']=this[_0x575f00(0x1f6)]()['finally'](()=>{const _0x596479=_0x575f00;this[_0x596479(0x1c7)]=null;});}async[_0x24e5f9(0x229)](){const _0x3a5807=_0x24e5f9,_0x553c30={'dEWAJ':function(_0x517b3e,_0x37ba65){return _0x517b3e(_0x37ba65);}};this['traceSampleTimer']&&(_0x553c30[_0x3a5807(0x243)](clearInterval,this['traceSampleTimer']),this['traceSampleTimer']=null),await this[_0x3a5807(0x1c7)]?.[_0x3a5807(0x214)](()=>undefined);}async['captureTraceSample'](){const _0x3ed4ea=_0x24e5f9,_0x5400ea={'vtmyQ':'body'},_0xad6461=this['context']?.['pages']()[0x0];if(!_0xad6461)return;try{await _0xad6461['locator'](_0x5400ea[_0x3ed4ea(0x26e)])[_0x3ed4ea(0x1af)](_0x4cb4d5=>_0x4cb4d5[_0x3ed4ea(0x18e)],undefined,{'timeout':0x3e8}),this[_0x3ed4ea(0x24f)]++;}catch{}}async['encodeScreencastVideo'](){const _0x49b60b=_0x24e5f9,_0x431c70={'ppqeT':function(_0x549878){return _0x549878();},'MNDgN':function(_0x24c9d2,_0x218b6d,_0x43f6ae){return _0x24c9d2(_0x218b6d,_0x43f6ae);},'XwUnv':function(_0x547d94,_0x3bc0fe,_0x408295){return _0x547d94(_0x3bc0fe,_0x408295);},'xRXPP':function(_0x1f19e5,_0x48cdac,_0x5c0b29){return _0x1f19e5(_0x48cdac,_0x5c0b29);},'VxvCu':_0x49b60b(0x1b5),'colAU':'error','poXAv':_0x49b60b(0x1b0),'asHYG':'-c:v','iCSEO':'-pix_fmt'};if(this[_0x49b60b(0x22b)]<0x2)return null;const _0x182a97=await _0x431c70[_0x49b60b(0x19e)](resolveFfmpegPath);if(!_0x182a97)return null;const _0x5761be=_0x431c70['MNDgN'](join,this[_0x49b60b(0x265)]['cliArtifactDir'],_0x49b60b(0x198));await _0x431c70[_0x49b60b(0x1bb)](mkdir,_0x5761be,{'recursive':!![]});const _0x4cf4e5=_0x431c70['xRXPP'](join,_0x5761be,'session-recording.webm');return await execFileAsync(_0x182a97,['-y',_0x431c70[_0x49b60b(0x225)],_0x49b60b(0x230),_0x431c70[_0x49b60b(0x24d)],'-framerate','10','-i',join(this['getFrameDir'](),_0x431c70['poXAv']),'-vf','scale=trunc(iw/2)*2:trunc(ih/2)*2',_0x431c70[_0x49b60b(0x1a7)],'libvpx-vp9',_0x431c70['iCSEO'],'yuv420p',_0x4cf4e5]),_0x4cf4e5;}['getFrameDir'](){const _0x5f0adf=_0x24e5f9,_0x1dc179={'VlPaZ':function(_0x116e59,_0x186601,_0xf74246){return _0x116e59(_0x186601,_0xf74246);}};return _0x1dc179['VlPaZ'](join,this[_0x5f0adf(0x265)][_0x5f0adf(0x207)],_0x5f0adf(0x1ad));}}async function delay(_0x42fd0d){await new Promise(_0x358536=>setTimeout(_0x358536,_0x42fd0d));}async function resolveFfmpegPath(){const _0x285c36=_0x24e5f9,_0x3d8e39={'ZLAHa':function(_0x5dd562,_0x1c013b){return _0x5dd562(_0x1c013b);},'OTwzf':_0x285c36(0x24e),'CHWST':'.cache','zHgAA':'ms-playwright'};if(await _0x3d8e39[_0x285c36(0x1ea)](canRunFfmpeg,_0x285c36(0x24e)))return _0x3d8e39['OTwzf'];const _0x10e044=[join(homedir(),_0x285c36(0x1a4),_0x285c36(0x1a3),'ms-playwright'),join(homedir(),_0x3d8e39['CHWST'],_0x3d8e39[_0x285c36(0x1dd)])];for(const _0x19fbc1 of _0x10e044){try{const _0xf71858=await _0x3d8e39[_0x285c36(0x1ea)](readdir,_0x19fbc1),_0x373e85=_0xf71858['filter'](_0x1d58d0=>_0x1d58d0['startsWith']('ffmpeg-'))['sort']()['reverse']()[_0x285c36(0x1e3)](_0x59c9b8=>[join(_0x19fbc1,_0x59c9b8,'ffmpeg-mac'),join(_0x19fbc1,_0x59c9b8,'ffmpeg-linux'),join(_0x19fbc1,_0x59c9b8,'ffmpeg.exe')]);for(const _0x17256a of _0x373e85){if(await canRunFfmpeg(_0x17256a))return _0x17256a;}}catch{}}return null;}function _0x39a1(_0x4167cf,_0x342893){_0x4167cf=_0x4167cf-0x18b;const _0x1a33ea=_0x1a33();let _0x39a116=_0x1a33ea[_0x4167cf];return _0x39a116;}async function canRunFfmpeg(_0x14d421){const _0x402ddd=_0x24e5f9;try{return await execFileAsync(_0x14d421,[_0x402ddd(0x256)]),!![];}catch{return![];}}function toStepDisplayName(_0x5c2bd3){const _0x4a4144=_0x24e5f9,_0x10ee59=basename(_0x5c2bd3)[_0x4a4144(0x219)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x4a4144(0x219)](/^\d+_/,'')[_0x4a4144(0x219)](/-/g,'\x20');return{'name':_0x10ee59,'isKeyStep':/^key_/i['test'](basename(_0x5c2bd3))};}function extractShellValue(_0x5e47db){if(!_0x5e47db)return null;return _0x5e47db[0x1]??_0x5e47db[0x2]??_0x5e47db[0x3]??null;}function extractOutputOption(_0xf76546){const _0xf289e1=_0x24e5f9;return extractShellValue(_0xf76546[_0xf289e1(0x1a8)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x28710d,_0x7d57ca){const _0xd41d7d=_0x24e5f9,_0x8bb149={'gjuNZ':'execute','ZDLOq':'verify','CRcDD':_0xd41d7d(0x1d1),'vcyif':'ask','wpcyQ':'goto','JlgGn':_0xd41d7d(0x246),'KwPzb':'wait-for','jTBeI':'wait\x20for\x20page\x20condition','gfTKC':'snapshot','aPFSa':function(_0x15649e,_0x1257ad){return _0x15649e(_0x1257ad);},'XEBlW':'capture\x20snapshot','ajNZC':'screenshot','vHYcr':_0xd41d7d(0x23a)};switch(_0x7d57ca){case _0xd41d7d(0x235):return'create\x20Nova\x20browser\x20session';case _0x8bb149[_0xd41d7d(0x1ca)]:return'execute\x20Nova\x20browser\x20action';case _0x8bb149['ZDLOq']:return _0x8bb149['CRcDD'];case _0x8bb149[_0xd41d7d(0x1c2)]:return'ask\x20page\x20question';case _0x8bb149['wpcyQ']:return _0x8bb149['JlgGn'];case _0x8bb149[_0xd41d7d(0x1e7)]:return _0x8bb149[_0xd41d7d(0x202)];case _0x8bb149[_0xd41d7d(0x238)]:{const _0x17f4c5=_0x8bb149[_0xd41d7d(0x1c5)](extractOutputOption,_0x28710d);if(!_0x17f4c5)return _0x8bb149['XEBlW'];const {name:_0x4a5489}=_0x8bb149['aPFSa'](toStepDisplayName,_0x17f4c5);return _0xd41d7d(0x250)+_0x4a5489+'`';}case _0x8bb149['ajNZC']:{const _0x155c07=extractOutputOption(_0x28710d);if(!_0x155c07)return _0x8bb149[_0xd41d7d(0x204)];const {name:_0x7701df,isKeyStep:_0x11b441}=toStepDisplayName(_0x155c07);return _0x11b441?_0xd41d7d(0x210)+_0x7701df+'`':'capture\x20step\x20`'+_0x7701df+'`';}case _0xd41d7d(0x1c8):return _0xd41d7d(0x22e);default:return _0x7d57ca;}}function getNovaActCliCommandBlockReason(_0x57f775){const _0x258bc3=_0x24e5f9,_0x1354c5={'VkFbK':function(_0x15b5db,_0x5b17e2){return _0x15b5db(_0x5b17e2);},'HNfOq':function(_0x12acb9,_0x597757){return _0x12acb9===_0x597757;},'VdsjK':'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.','mwNrv':_0x258bc3(0x258)},_0x2b16b7=_0x1354c5[_0x258bc3(0x1e8)](parseNovaActCliCommand,_0x57f775);if(!_0x2b16b7)return'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.';if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x258bc3(0x26d)](_0x2b16b7))return'Nova\x20command\x20`'+_0x2b16b7+_0x258bc3(0x20d);if(_0x1354c5['HNfOq'](_0x2b16b7,_0x258bc3(0x1f1))&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x258bc3(0x25d)](_0x57f775))return _0x1354c5['VdsjK'];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x57f775))return _0x1354c5['mwNrv'];return null;}function buildFeedbackSection(_0x2a083){const _0xb77d8d=_0x24e5f9,_0x19a5c6={'mnobA':'short','jECvt':'numeric','xkmCS':_0xb77d8d(0x1e5)};if(!_0x2a083||_0x2a083['unaddressedComments'][_0xb77d8d(0x1d3)]===0x0)return'';const _0x30db4d=_0x2a083['unaddressedComments'][_0xb77d8d(0x1db)](_0x267155=>{const _0x46108e=_0xb77d8d,_0x4afdc3=new Date(_0x267155['createdAt'])[_0x46108e(0x1ae)]('en-US',{'month':_0x19a5c6['mnobA'],'day':_0x19a5c6['jECvt']}),_0x100de3=_0x267155[_0x46108e(0x1d0)]||_0x267155[_0x46108e(0x25c)]||_0x46108e(0x252),_0x2b2b69=_0x267155['domRef']?_0x46108e(0x213)+(_0x267155['domRef'][_0x46108e(0x18d)]['split'](_0x19a5c6[_0x46108e(0x22c)])['pop']()?.[_0x46108e(0x245)](':')[0x0]||_0x46108e(0x197))+_0x46108e(0x1a9)+(_0x267155[_0x46108e(0x237)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x46108e(0x19b)+_0x267155['id']+']\x20**'+_0x100de3+'**\x20('+_0x4afdc3+'):\x20\x22'+_0x267155['content']+'\x22'+_0x2b2b69;})[_0xb77d8d(0x266)]('\x0a');return _0xb77d8d(0x22d)+_0x30db4d;}function buildNovaSharedOptionsInstruction(_0x8e507c){const _0xf27aa0=_0x24e5f9;if(!_0x8e507c['trim']())return _0xf27aa0(0x232);return _0xf27aa0(0x1bf)+_0x8e507c;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x2e2a03){const _0x1cf265=_0x24e5f9,_0xbe5a44={'gDqqU':function(_0x1af527,_0x29e720,_0x587f69){return _0x1af527(_0x29e720,_0x587f69);},'aVuiR':'00_initial-state.yml','Hzepg':_0x1cf265(0x1f9),'LwZbz':function(_0x18c16d,_0x395c9f,_0x2050fa){return _0x18c16d(_0x395c9f,_0x2050fa);},'EPjJT':function(_0x4606d1,_0x2251ad,_0x360a0a){return _0x4606d1(_0x2251ad,_0x360a0a);},'jhpwF':function(_0x224e0a,_0x41e5e9){return _0x224e0a(_0x41e5e9);}},{novaCommandPrefix:_0x58b79e,novaSharedOptionsSuffix:_0x3022f7,cliArtifactDir:_0x49f5de,url:_0x58b0d6}=_0x2e2a03,_0x2eb78b=_0xbe5a44['gDqqU'](buildCliArtifactPath,_0x49f5de,_0xbe5a44['aVuiR']),_0x313a21=_0xbe5a44[_0x1cf265(0x1e4)](buildCliArtifactPath,_0x49f5de,_0xbe5a44['Hzepg']),_0x56fac8=_0xbe5a44[_0x1cf265(0x1b4)](buildCliArtifactPath,_0x49f5de,_0x1cf265(0x1b9)),_0x5230ca=_0xbe5a44[_0x1cf265(0x228)](buildCliArtifactPath,_0x49f5de,_0x1cf265(0x23b));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'+_0x58b79e+'\x0a\x0a'+_0xbe5a44['jhpwF'](buildNovaSharedOptionsInstruction,_0x3022f7)+'\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`'+_0x58b79e+_0x1cf265(0x208)+quoteShellArg(_0x58b0d6)+'\x20'+_0x3022f7+'`\x0a2.\x20Run\x20`'+_0x58b79e+_0x1cf265(0x1ee)+quoteShellArg(_0x2eb78b)+'\x20'+_0x3022f7+_0x1cf265(0x20b)+_0x58b79e+'\x20screenshot\x20--output\x20'+_0xbe5a44[_0x1cf265(0x215)](quoteShellArg,_0x313a21)+'\x20'+_0x3022f7+_0x1cf265(0x1d5)+_0x58b79e+_0x1cf265(0x21d)+_0x58b79e+_0x1cf265(0x1ee)+_0xbe5a44['jhpwF'](quoteShellArg,_0x56fac8)+'\x20'+_0x3022f7+_0x1cf265(0x263)+_0x58b79e+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x5230ca)+'\x20'+_0x3022f7+_0x1cf265(0x1e2)+_0x49f5de+_0x1cf265(0x20f);}export function buildVerifyFeatureNovaCliPrompt(_0x4f3dfa){const _0x19f865=_0x24e5f9,_0x580227={'mKKMJ':_0x19f865(0x1d9),'qeIOH':_0x19f865(0x1f9),'zDQSA':function(_0x522f5f,_0x37df2a,_0x37ae52){return _0x522f5f(_0x37df2a,_0x37ae52);},'pVATY':_0x19f865(0x1cb),'holbH':function(_0x376fed,_0x52633a){return _0x376fed(_0x52633a);}},{checklistItem:_0x1a5261,itemFeedback:_0x329ccc,taskDescription:_0xd5fb81,novaCommandPrefix:_0x1ab322,novaSharedOptionsSuffix:_0x3390e3,cliArtifactDir:_0x187af7,url:_0x32f97f,loginInstructions:_0x35d6bb}=_0x4f3dfa,_0x29ff8f=_0x1a5261['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x1a5261['notes']:'',_0x3c25c9=buildFeedbackSection(_0x329ccc),_0x2c517f=_0x329ccc?.[_0x19f865(0x1d4)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x329ccc['canonicalFlow']:'',_0xa72556=_0x35d6bb?_0x19f865(0x22a)+_0x35d6bb+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x18fcdf=buildCliArtifactPath(_0x187af7,_0x580227['mKKMJ']),_0x57a8d2=buildCliArtifactPath(_0x187af7,_0x580227[_0x19f865(0x24b)]),_0x17aec6=_0x580227[_0x19f865(0x1ef)](buildCliArtifactPath,_0x187af7,_0x580227['pVATY']);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'+_0x1a5261['description']+_0x29ff8f+_0x3c25c9+_0x2c517f+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0xd5fb81+_0x19f865(0x211)+_0x32f97f+'\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'+_0xa72556+_0x19f865(0x21f)+_0x1ab322+_0x19f865(0x208)+_0x580227['holbH'](quoteShellArg,_0x32f97f)+'\x20'+_0x3390e3+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x187af7+_0x19f865(0x1cd)+_0x1ab322+_0x19f865(0x1ee)+_0x580227['holbH'](quoteShellArg,_0x18fcdf)+'\x20'+_0x3390e3+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x1ab322+'\x20screenshot\x20--output\x20'+_0x580227['holbH'](quoteShellArg,_0x57a8d2)+'\x20'+_0x3390e3+'`.\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`'+_0x17aec6+'`.\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`'+_0x1ab322+_0x19f865(0x1ec)+(_0x3390e3['trim']()?'`'+_0x3390e3+'`':_0x19f865(0x20a))+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x3390e3)+'\x0a\x0aExamples:\x0a-\x20`'+_0x1ab322+_0x19f865(0x1da)+_0x3390e3+_0x19f865(0x1dc)+_0x1ab322+_0x19f865(0x19d)+_0x3390e3+'`\x0a-\x20`'+_0x1ab322+_0x19f865(0x1ee)+quoteShellArg(_0x18fcdf)+'\x20'+_0x3390e3+_0x19f865(0x1dc)+_0x1ab322+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x17aec6)+'\x20'+_0x3390e3+_0x19f865(0x21a);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x27a9a1){const _0x14a262=_0x24e5f9,_0x22b34d=[..._0x27a9a1[_0x14a262(0x196)]()][_0x14a262(0x1ed)]();let _0x52a465=0x0;for(const _0x3bc49f of _0x27a9a1[_0x14a262(0x234)]()){_0x52a465+=_0x3bc49f;}return{'cliCommandCount':_0x52a465,'cliCommandsSeen':_0x22b34d,'noCliCommandsCalled':_0x52a465===0x0};}export function createVerifyFeatureNovaCliHooks(_0x281250,_0x2c11f3){const _0x556857=_0x24e5f9,_0x1ee481={'UInpP':function(_0x5bc135,_0x4a7547){return _0x5bc135!==_0x4a7547;},'WFICw':function(_0x37dc51,_0x1ccb3f){return _0x37dc51!==_0x1ccb3f;},'WhMfe':_0x556857(0x220),'gzVSr':'PostToolUse','qSQhY':function(_0x388481,_0xed941){return _0x388481(_0xed941);},'pZiwn':function(_0x34d108,_0x28f424){return _0x34d108+_0x28f424;},'YEnGH':_0x556857(0x1fa),'ZBDau':function(_0x656871,_0x4da39d,_0xb61b01){return _0x656871(_0x4da39d,_0xb61b01);},'MLkjZ':function(_0x5f1230,_0x5547d8){return _0x5f1230===_0x5547d8;},'jvRIz':'session\x20create','kBLIp':_0x556857(0x223),'pvxeG':_0x556857(0x26f),'WkOUi':function(_0x221371,_0x961f05){return _0x221371!==_0x961f05;},'LwuXo':'PostToolUseFailure','GfZpK':function(_0xd3c788,_0x104cb8){return _0xd3c788!==_0x104cb8;},'JGIVj':'nova_act_command_failure'},_0x31797a=new Map(),_0x1f450a=async _0xf8f523=>{const _0x54cfb0=_0x556857;if(_0x1ee481[_0x54cfb0(0x1a0)](_0xf8f523['hook_event_name'],'PreToolUse'))return{};const _0x5eb8d8=_0xf8f523;if(_0x1ee481[_0x54cfb0(0x1f8)](_0x5eb8d8[_0x54cfb0(0x192)],_0x1ee481['WhMfe']))return{};const _0x5cf7e2=_0x5eb8d8['tool_input'],_0x3913be=extractBashCommand(_0x5cf7e2);if(!_0x3913be)return{};const _0x2eeee7=getNovaActCliCommandBlockReason(_0x3913be);if(!_0x2eeee7)return{};return{'decision':_0x54cfb0(0x218),'reason':_0x2eeee7};},_0x443757=async _0x2ad8a4=>{const _0x3a665a=_0x556857;if(_0x2ad8a4[_0x3a665a(0x22f)]!==_0x1ee481['gzVSr'])return{};const _0x55e063=_0x2ad8a4;if(_0x1ee481['UInpP'](_0x55e063[_0x3a665a(0x192)],_0x3a665a(0x220)))return{};const _0x13d6d0=_0x55e063[_0x3a665a(0x20c)],_0x52c9d9=_0x1ee481[_0x3a665a(0x1f0)](extractBashCommand,_0x13d6d0);if(!_0x52c9d9)return{};const _0x58b9c7=parseNovaActCliCommand(_0x52c9d9);if(!_0x58b9c7)return{};_0x31797a['set'](_0x58b9c7,_0x1ee481['pZiwn'](_0x31797a[_0x3a665a(0x1ce)](_0x58b9c7)||0x0,0x1)),_0x281250[_0x3a665a(0x257)](_0x1ee481[_0x3a665a(0x23f)],{'subcommand':_0x58b9c7}),_0x281250[_0x3a665a(0x193)](_0x1ee481[_0x3a665a(0x23f)],{'subcommand':_0x58b9c7,'commandPreview':previewNovaActCliCommand(_0x52c9d9)}),console[_0x3a665a(0x26a)](_0x3a665a(0x1cc)+_0x1ee481['ZBDau'](formatNovaActCliLog,_0x52c9d9,_0x58b9c7));if(_0x1ee481[_0x3a665a(0x209)](_0x58b9c7,_0x1ee481['jvRIz'])&&_0x2c11f3)try{await _0x2c11f3[_0x3a665a(0x269)]();}catch(_0x3038d5){await _0x281250['trackPhaseError'](_0x1ee481['kBLIp'],_0x3038d5,{'transport':_0x1ee481[_0x3a665a(0x1b7)]});}return{};},_0x32d5de=async _0x56787d=>{const _0x1ddb6f=_0x556857;if(_0x1ee481[_0x1ddb6f(0x1de)](_0x56787d[_0x1ddb6f(0x22f)],_0x1ee481['LwuXo']))return{};const _0x50bd36=_0x56787d;if(_0x1ee481[_0x1ddb6f(0x249)](_0x50bd36[_0x1ddb6f(0x192)],_0x1ddb6f(0x220)))return{};return await _0x281250['trackPhaseError'](_0x1ee481[_0x1ddb6f(0x205)],_0x50bd36[_0x1ddb6f(0x26b)],{'transport':_0x1ee481['pvxeG'],'toolName':_0x1ddb6f(0x220)}),{};};return{'preToolUseHook':_0x1f450a,'postToolUseHook':_0x443757,'postToolUseFailureHook':_0x32d5de,'commandCounts':_0x31797a};}async function runNovaLifecycleCommand(_0x77240b){const _0xbf182d=_0x24e5f9,_0x19cc2a={'hIFAG':function(_0x396a60,_0x15a84a){return _0x396a60??_0x15a84a;},'GvZKZ':function(_0x1a1154,_0x4405a2){return _0x1a1154(_0x4405a2);}},{novaOptions:_0x49daf5,commandArgs:_0x45492b,telemetry:_0x58988b,phase:_0x352e2a,metadata:_0x480484,timeoutMs:_0x223cd0}=_0x77240b;_0x58988b[_0xbf182d(0x257)](_0x352e2a,_0x480484);try{const _0x45b336=await runNovaActCliCommand({..._0x49daf5,'commandArgs':_0x45492b,'cwd':process[_0xbf182d(0x271)](),'env':process['env'],'timeoutMs':_0x19cc2a['hIFAG'](_0x223cd0,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x58988b[_0xbf182d(0x193)](_0x352e2a,{..._0x480484,'subcommand':_0x45b336[_0xbf182d(0x200)][_0xbf182d(0x261)],'commandPreview':_0x19cc2a[_0xbf182d(0x21b)](previewNovaActCliCommand,_0x45b336[_0xbf182d(0x200)][_0xbf182d(0x24c)]),'stdoutPreview':_0x19cc2a[_0xbf182d(0x21b)](previewNovaActCliCommand,_0x45b336[_0xbf182d(0x201)]),'stderrPreview':_0x19cc2a['GvZKZ'](previewNovaActCliCommand,_0x45b336['stderr']),'logDir':extractNovaActLogDir(_0x45b336[_0xbf182d(0x201)])});}catch(_0x15e33b){await _0x58988b[_0xbf182d(0x1eb)](_0x352e2a,_0x15e33b,_0x480484);throw _0x15e33b;}}export async function finalizeVerifyFeatureNovaCliSession(_0x1bb147){const _0x376680=_0x24e5f9,_0x1f0aea={'iWeBv':'nova_act_final_screenshot','yercP':_0x376680(0x1f2),'ceIZd':'nova_act_final_snapshot','oLeDy':function(_0x37c85a,_0x4c3179,_0x465cfd){return _0x37c85a(_0x4c3179,_0x465cfd);},'bIIIM':_0x376680(0x206),'XgzVN':'--format','vKzOP':'nova-session-export.json','poNGj':'export','jMAMO':'nova_act_session_close','XwPbV':_0x376680(0x216),'apWij':'close','xjWUU':function(_0xc7403e,_0x3b8160){return _0xc7403e===_0x3b8160;},'bqMrq':function(_0x495b82,_0x476235){return _0x495b82(_0x476235);}},{telemetry:_0x56eebc,novaOptions:_0x3eb7ec,cliArtifactDir:_0x1be692,transportMetadata:_0x4de52f,artifactRecorder:_0x348acd}=_0x1bb147,_0x2db080=[{'phase':_0x1f0aea[_0x376680(0x1c6)],'commandArgs':[_0x376680(0x248),_0x1f0aea[_0x376680(0x268)],buildCliArtifactPath(_0x1be692,'key_final-state.png')]},{'phase':_0x1f0aea[_0x376680(0x1d6)],'commandArgs':['snapshot',_0x376680(0x1f2),_0x1f0aea[_0x376680(0x212)](buildCliArtifactPath,_0x1be692,_0x376680(0x224))]},{'phase':_0x1f0aea['bIIIM'],'commandArgs':[_0x376680(0x216),_0x376680(0x1b3),_0x1f0aea['XgzVN'],'json',_0x1f0aea[_0x376680(0x268)],buildCliArtifactPath(_0x1be692,_0x1f0aea['vKzOP'])]},{'phase':'nova_act_session_report','commandArgs':[_0x376680(0x216),_0x1f0aea['poNGj'],'--report',_0x376680(0x1c4),_0x1f0aea['oLeDy'](buildCliArtifactPath,_0x1be692,_0x376680(0x1b1))]},{'phase':_0x1f0aea[_0x376680(0x1b8)],'commandArgs':[_0x1f0aea[_0x376680(0x194)],_0x1f0aea[_0x376680(0x1fc)]]}];for(const _0x29b81a of _0x2db080){_0x1f0aea[_0x376680(0x19f)](_0x29b81a['phase'],'nova_act_session_close')&&await _0x348acd?.[_0x376680(0x1ba)]();try{await _0x1f0aea['bqMrq'](runNovaLifecycleCommand,{'novaOptions':_0x3eb7ec,'commandArgs':[..._0x29b81a['commandArgs']],'telemetry':_0x56eebc,'phase':_0x29b81a['phase'],'metadata':_0x4de52f});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x16673b){const _0x3f8f7d=_0x24e5f9,_0x4815ae={'KDowu':function(_0x426881,_0x31c9fa,_0x58d250){return _0x426881(_0x31c9fa,_0x58d250);},'dhabU':function(_0x46a6d1,_0x4f5cd5,_0x12e7a0){return _0x46a6d1(_0x4f5cd5,_0x12e7a0);},'kLzvC':function(_0x478fbc,_0x2bad6f){return _0x478fbc+_0x2bad6f;},'PmAUh':function(_0x5e03ac,_0x3fcbf2,_0x63a2ed){return _0x5e03ac(_0x3fcbf2,_0x63a2ed);},'ELQTX':function(_0x1a81e4,_0x4d83ab){return _0x1a81e4===_0x4d83ab;},'HshNC':function(_0x1ea873,_0x5667f9,_0x46d1ee){return _0x1ea873(_0x5667f9,_0x46d1ee);}},{cwd:_0x36bd6d,cliArtifactDir:_0x2865d4,startTime:_0x1dd7ff}=_0x16673b,_0x35084d=[];await _0x4815ae[_0x3f8f7d(0x25e)](mkdir,_0x2865d4,{'recursive':!![]});const _0x35e924=await _0x4815ae[_0x3f8f7d(0x1bc)](readdir,_0x36bd6d,{'withFileTypes':!![]});for(const _0x1978af of _0x35e924){if(!_0x1978af[_0x3f8f7d(0x1cf)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0x1978af['name']))continue;const _0x786f50=join(_0x36bd6d,_0x1978af[_0x3f8f7d(0x1be)]),_0x3a4438=await stat(_0x786f50);if(_0x4815ae[_0x3f8f7d(0x25f)](_0x3a4438[_0x3f8f7d(0x19c)],0x7d0)<_0x1dd7ff)continue;const _0x5c9f48=_0x4815ae[_0x3f8f7d(0x1f5)](buildCliArtifactPath,_0x2865d4,_0x1978af[_0x3f8f7d(0x1be)]);if(_0x4815ae['ELQTX'](_0x786f50,_0x5c9f48))continue;await _0x4815ae[_0x3f8f7d(0x20e)](rename,_0x786f50,_0x5c9f48),_0x35084d[_0x3f8f7d(0x1d8)](_0x1978af[_0x3f8f7d(0x1be)]);}return _0x35084d[_0x3f8f7d(0x1ed)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x37ac70){const _0x32c041=_0x24e5f9,_0x5f1a5b={'ZcZZU':function(_0x26bb19,_0x56a23e){return _0x26bb19(_0x56a23e);}},_0x2b7620=join(_0x37ac70,_0x32c041(0x1a5));try{return{'buffer':await readFile(_0x2b7620),'source':_0x2b7620};}catch{return{'buffer':await _0x5f1a5b[_0x32c041(0x1a1)](zipVerifyFeatureNovaArtifacts,_0x37ac70),'source':_0x37ac70};}}function _0x1a33(){const _0x524d61=['trackPhaseStart','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','Page.screencastFrameAck','ptTfJ','queueTraceSample','authorEmail','test','KDowu','kLzvC','frameWrites','subcommand','126PbgVWq','`\x0a6.\x20Run\x20`','send','params','join','commandArgs','yercP','start','log','error','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','has','vtmyQ','nova-act-cli','Page.stopScreencast','cwd','startScreencast','snapshot','selector','tagName','62419XXyNbB','stopScreencast','Page.screencastFrame','tool_name','trackPhaseEnd','XwPbV','tracing','keys','element','videos','ROVUE','now','-\x20[','mtimeMs','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','ppqeT','xjWUU','UInpP','ZcZZU','3382020dmivwU','Caches','Library','trace.zip','858580zwRcYk','asHYG','match','>\x20\x22','48dzXaQk','traceSampleTimer','padStart','nova-video-frames','toLocaleDateString','evaluate','frame-%06d.jpg','nova-report','cdp_endpoint','export','LwZbz','-hide_banner','tracingStarted','pvxeG','jMAMO','02_final-state.yml','stop','XwUnv','dhabU','48087nHtwso','name','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','oMBpH','roFPf','vcyif','sessionId','--output-dir','aPFSa','iWeBv','traceSampleInFlight','session\x20export','encodeScreencastVideo','gjuNZ','key_03_success-state.png','[nova-act-cli]\x20','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','get','isFile','authorName','verify\x20page\x20condition','browser_pid','length','canonicalFlow','`\x0a4.\x20Run\x20one\x20batched\x20`','ceIZd','80102oCpWtp','push','01_initial.yml','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','map','`\x0a-\x20`','zHgAA','WkOUi','BEbcU','then','connectOverCDP','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','flatMap','gDqqU','\x20>\x20','.jpg','KwPzb','VkFbK','Page.startScreencast','ZLAHa','trackPhaseError','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','sort','\x20snapshot\x20--output\x20','zDQSA','qSQhY','verify','--output','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','telemetry','PmAUh','captureTraceSample','-qr','WFICw','01_initial-state.png','nova_act_command','nova_act_artifact_recording_stop','apWij','context','frameSession','nova-artifacts.zip','invocation','stdout','jTBeI','970uaHKiQ','vHYcr','JGIVj','nova_act_session_export','cliArtifactDir','\x20session\x20create\x20','MLkjZ','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','`\x0a3.\x20Run\x20`','tool_input','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','HshNC','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','capture\x20key\x20step\x20`','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','oLeDy','\x20(on\x20element:\x20<','catch','jhpwF','session','goto','block','replace','`\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.','GvZKZ','nova-user-data/*','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','1640576wjWJqo','\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`','Bash','12vUCqZZ','cgUlA','nova_act_artifact_recording','final-state.yaml','VxvCu','bNMZK','screencastStarted','EPjJT','stopTraceSampling','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','frameCount','xkmCS','\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','export\x20Nova\x20session','hook_event_name','-loglevel','readSessionMetadataWithRetry','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.','getFrameDir','values','session\x20create','state','domRef','gfTKC','ask','capture\x20screenshot','03_final-state.png','browser','base64','BopGJ','YEnGH','novaOptions','transportMetadata','80143FVmiXm','dEWAJ','TzPed','split','navigate\x20browser','startTraceSampling','screenshot','GfZpK','newCDPSession','qeIOH','shellCommand','colAU','ffmpeg','traceSampleCount','capture\x20snapshot\x20`','startAttempted','Reviewer','wPcZj','tcXBl','seEDh','-version'];_0x1a33=function(){return _0x524d61;};return _0x1a33();}async function zipVerifyFeatureNovaArtifacts(_0x4fa9e8){const _0x17ba1e=_0x24e5f9,_0x4ff88a={'BEbcU':function(_0xd3e2e0,_0x1ae4d1,_0x516241,_0x329423){return _0xd3e2e0(_0x1ae4d1,_0x516241,_0x329423);},'GbSgp':function(_0x3ae05d,_0x2d3a0e){return _0x3ae05d(_0x2d3a0e);}},_0x20df6f=join(_0x4fa9e8,'..',_0x17ba1e(0x1ff));try{return await _0x4ff88a[_0x17ba1e(0x1df)](execFileAsync,'zip',[_0x17ba1e(0x1f7),_0x20df6f,'.','-x',_0x17ba1e(0x21c)],{'cwd':_0x4fa9e8}),await _0x4ff88a['GbSgp'](readFile,_0x20df6f);}finally{await rm(_0x20df6f,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x37c33c){const _0xc589af=_0x24e5f9,_0x3af355={'JUOCo':function(_0x53680d,_0x5da9e9){return _0x53680d(_0x5da9e9);}},_0x32a22d=buildNovaActCliInvocation(_0x37c33c['novaOptions'],_0x37c33c[_0xc589af(0x267)]);return{'command':_0x32a22d['command'],'args':_0x32a22d['args'],'commandPreview':_0x3af355['JUOCo'](previewNovaActCliCommand,_0x32a22d['shellCommand']),'subcommand':_0x32a22d['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x37c33c[_0xc589af(0x240)],_0x37c33c['commandArgs'])};}
@@ -1 +1 @@
1
- (function(_0xe5528c,_0x3a359d){const _0x3aaf6a=_0x5093,_0x462146=_0xe5528c();while(!![]){try{const _0x3120d5=parseInt(_0x3aaf6a(0x1cc))/0x1+-parseInt(_0x3aaf6a(0x1f3))/0x2*(parseInt(_0x3aaf6a(0x1d0))/0x3)+-parseInt(_0x3aaf6a(0x1e3))/0x4+parseInt(_0x3aaf6a(0x1af))/0x5*(-parseInt(_0x3aaf6a(0x1e7))/0x6)+-parseInt(_0x3aaf6a(0x1f4))/0x7*(-parseInt(_0x3aaf6a(0x20b))/0x8)+-parseInt(_0x3aaf6a(0x1d6))/0x9*(parseInt(_0x3aaf6a(0x1c7))/0xa)+parseInt(_0x3aaf6a(0x1ce))/0xb;if(_0x3120d5===_0x3a359d)break;else _0x462146['push'](_0x462146['shift']());}catch(_0x8c3540){_0x462146['push'](_0x462146['shift']());}}}(_0x34f3,0xb9b14));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';function _0x5093(_0x4b18b2,_0x26e630){_0x4b18b2=_0x4b18b2-0x1ac;const _0x34f3e5=_0x34f3();let _0x5093de=_0x34f3e5[_0x4b18b2];return _0x5093de;}import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function _0x34f3(){const _0x4091f1=['element','subcommand','values','ldRis','2296axXEOA','trackPhaseError','open-and-inspect','selector','content','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','3613150gIUHiw','close\x20browser\x20session','GYRIC','click-and-inspect','MNppy','trackPhaseEnd','tool_name','canonicalFlow','`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`','rangerwright_cli_video_stop','stop\x20video\x20recording','log','xTOwr','bwMTA','ref\x20','rHkdz','match','...','PostToolUseFailure','inspect\x20page','get','\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.','WORrO','target','10HLHqLv','ckMPU','\x20inspect\x20--screenshot-path\x20','LZoSl','.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','656663jgCXqi','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','19362915RUkbiV','join','219tMhfUI','textContent','PostToolUse','phase','\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.','MlKqu','5152509sqylLz','iVySH','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','zdPZA','invocation','XRsGk','rangerwright_cli_command_failure','cCXrC','stop\x20tracing','ErOOy','ORuhq','Bash','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','3684764aoaaos','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','>\x20\x22','):\x20\x22','6tWnuov','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','IEMSa','bqoZO','sort','gsMpD','hook_event_name','uGgtH','zGzGr','trackPhaseStart','back-and-inspect','tool_input','14954STHUPs','26971UPpkVR','\x20--screenshot-path\x20','click\x20and\x20inspect\x20','close','gsroN','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','pop','authorName','set','go\x20back\x20and\x20inspect','KTBvP','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','stderr','tracing-stop','domRef','stdout','\x20open-and-inspect\x20','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','commandPrefix'];_0x34f3=function(){return _0x4091f1;};return _0x34f3();}function truncatePreview(_0x541c48,_0x4ad434=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x3b3a87=_0x5093,_0x571850={'CkneN':_0x3b3a87(0x1c0)};return _0x541c48['length']>_0x4ad434?_0x541c48['slice'](0x0,_0x4ad434)+_0x571850['CkneN']:_0x541c48;}function extractShellValue(_0x20fc1d){if(!_0x20fc1d)return null;return _0x20fc1d[0x1]??_0x20fc1d[0x2]??_0x20fc1d[0x3]??null;}function extractFirstCommandArgument(_0x1053f2,_0x325542){const _0x2ae05c=_0x5093,_0x3281e8={'iRquU':'\x5c$&'},_0x295a8d=_0x325542['replace'](/[.*+?^${}()|[\]\\]/g,_0x3281e8['iRquU']);return extractShellValue(_0x1053f2[_0x2ae05c(0x1bf)](new RegExp('(?:^|\x5cs)'+_0x295a8d+_0x2ae05c(0x1d8))));}function formatCommandTarget(_0x3dcc3f){const _0x194e22=_0x5093,_0x411137={'xTOwr':function(_0x2cd2e6,_0x413187,_0x2e78f2){return _0x2cd2e6(_0x413187,_0x2e78f2);}};if(!_0x3dcc3f)return _0x194e22(0x1c6);if(/^e\d+$/i['test'](_0x3dcc3f))return _0x194e22(0x1bd)+_0x3dcc3f;return JSON['stringify'](_0x411137[_0x194e22(0x1bb)](truncatePreview,_0x3dcc3f,0x78));}function formatRangerwrightCliLog(_0x524772,_0x5e58bd){const _0x2f01e=_0x5093,_0x1ffbc6={'gsMpD':_0x2f01e(0x20d),'gsroN':'open\x20and\x20inspect','JhoKy':'fill','vXZMm':function(_0x3f25b9,_0x454256,_0x1ae762){return _0x3f25b9(_0x454256,_0x1ae762);},'vKhxm':_0x2f01e(0x1f1),'WORrO':_0x2f01e(0x1fd),'kyubj':'inspect','GYRIC':_0x2f01e(0x1c2),'ErOOy':'video-stop','XRsGk':_0x2f01e(0x1f7)};switch(_0x5e58bd){case _0x1ffbc6[_0x2f01e(0x1ec)]:{const _0xfde83a=extractFirstCommandArgument(_0x524772,_0x5e58bd);return _0xfde83a?'open\x20and\x20inspect\x20'+_0xfde83a:_0x1ffbc6[_0x2f01e(0x1f8)];}case _0x2f01e(0x1b2):return _0x2f01e(0x1f6)+formatCommandTarget(extractFirstCommandArgument(_0x524772,_0x5e58bd));case _0x1ffbc6['JhoKy']:case'fill-and-inspect':return'fill\x20'+formatCommandTarget(_0x1ffbc6['vXZMm'](extractFirstCommandArgument,_0x524772,_0x5e58bd));case _0x1ffbc6['vKhxm']:return _0x1ffbc6[_0x2f01e(0x1c5)];case _0x1ffbc6['kyubj']:return _0x1ffbc6[_0x2f01e(0x1b1)];case _0x2f01e(0x201):return _0x2f01e(0x1de);case _0x1ffbc6[_0x2f01e(0x1df)]:return _0x2f01e(0x1b9);case _0x1ffbc6[_0x2f01e(0x1db)]:return _0x2f01e(0x1b0);default:return _0x5e58bd;}}function renderScenarioSections(_0x3a285b){const _0x3e03ac=_0x5093,_0x455e38={'zGzGr':'numeric','KTBvP':_0x3e03ac(0x207)},{checklistItem:_0x1301e7,itemFeedback:_0x268159}=_0x3a285b,_0x4a9e6d=_0x1301e7['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x1301e7['notes']:'';let _0x581a9e='';if(_0x268159&&_0x268159['unaddressedComments']['length']>0x0){const _0x1bd293=_0x268159['unaddressedComments']['map'](_0x54490e=>{const _0x457d20=_0x3e03ac,_0x3ac530=new Date(_0x54490e['createdAt'])['toLocaleDateString']('en-US',{'month':'short','day':_0x455e38[_0x457d20(0x1ef)]}),_0x1398b6=_0x54490e[_0x457d20(0x1fb)]||_0x54490e['authorEmail']||'Reviewer',_0x5da831=_0x54490e[_0x457d20(0x202)]?'\x20(on\x20element:\x20<'+(_0x54490e[_0x457d20(0x202)][_0x457d20(0x1ac)]['split']('\x20>\x20')[_0x457d20(0x1fa)]()?.['split'](':')[0x0]||_0x455e38[_0x457d20(0x1fe)])+_0x457d20(0x1e5)+(_0x54490e['domRef'][_0x457d20(0x1d1)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x54490e['id']+']\x20'+_0x1398b6+'\x20('+_0x3ac530+_0x457d20(0x1e6)+_0x54490e[_0x457d20(0x1ad)]+'\x22'+_0x5da831;})[_0x3e03ac(0x1cf)]('\x0a');_0x581a9e='\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'+_0x1bd293;}const _0x486bb3=_0x268159?.[_0x3e03ac(0x1b6)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x268159[_0x3e03ac(0x1b6)]:'';return''+_0x1301e7['description']+_0x4a9e6d+_0x581a9e+_0x486bb3;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x176895){const _0x5e8adc=_0x5093,_0x52771d={'MlKqu':'01_initial-state.png','IEMSa':function(_0xe6e7f7,_0x2cf5fd){return _0xe6e7f7(_0x2cf5fd);},'bqoZO':function(_0x364e94,_0x1492a7){return _0x364e94(_0x1492a7);},'zdPZA':function(_0x49b40c,_0x23b0c6){return _0x49b40c??_0x23b0c6;},'iVySH':'about:blank'},{checklistItem:_0x50fead,itemFeedback:_0x1dbdbb,taskDescription:_0x471b83,commandPrefix:_0x1da2f2,isCdpMode:_0x1347a0,url:_0x251b87,cdpEndpoint:_0x2bdec5,loginInstructions:_0x1bd810}=_0x176895,_0x580760=_0x52771d[_0x5e8adc(0x1d5)],_0x1fbfb4='key_99_final-state.png',_0xaa0af2=_0x1347a0?_0x1da2f2+_0x5e8adc(0x1c9)+_0x52771d[_0x5e8adc(0x1e9)](quoteShellArg,_0x580760):_0x1da2f2+_0x5e8adc(0x204)+_0x52771d[_0x5e8adc(0x1ea)](quoteShellArg,_0x52771d[_0x5e8adc(0x1d9)](_0x251b87,_0x52771d[_0x5e8adc(0x1d7)]))+'\x20--screenshot-path\x20'+quoteShellArg(_0x580760),_0x577a84=_0x1347a0?_0x5e8adc(0x1e8)+_0x2bdec5+_0x5e8adc(0x1cb):_0x5e8adc(0x1f9)+_0x251b87+_0x5e8adc(0x1d4),_0x56087e=_0x1bd810?_0x5e8adc(0x1ff)+_0x1bd810+_0x5e8adc(0x205):'';return _0x5e8adc(0x1e2)+renderScenarioSections({'checklistItem':_0x50fead,'itemFeedback':_0x1dbdbb})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x471b83+'\x0a\x0a'+_0x577a84+_0x56087e+_0x5e8adc(0x1ae)+_0x1da2f2+'\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'+_0xaa0af2+'\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'+_0x1da2f2+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0x1fbfb4)+_0x5e8adc(0x1c4);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x26146e){const _0x38f598=_0x5093,_0x47b125={'ldRis':'key_02_learn-more.png','LZoSl':function(_0x16ea12,_0x57d55b){return _0x16ea12(_0x57d55b);}},_0x10915f='01_mozilla-homepage.png',_0x5f34a5=_0x47b125[_0x38f598(0x20a)];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'+_0x26146e[_0x38f598(0x206)]+'\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`'+_0x26146e['commandPrefix']+_0x38f598(0x204)+quoteShellArg(_0x26146e['url'])+_0x38f598(0x1f5)+quoteShellArg(_0x10915f)+_0x38f598(0x1b7)+_0x26146e['commandPrefix']+_0x38f598(0x1e4)+_0x47b125[_0x38f598(0x1ca)](quoteShellArg,_0x5f34a5)+_0x38f598(0x1cd);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x9fcf2d){const _0x36ed37=_0x5093,_0xfc302e={'GZhmc':function(_0x4efeab,_0x3f602d){return _0x4efeab===_0x3f602d;}},_0x2da8f1=[..._0x9fcf2d['keys']()][_0x36ed37(0x1eb)]();let _0x1673e0=0x0;for(const _0x52ed28 of _0x9fcf2d[_0x36ed37(0x209)]()){_0x1673e0+=_0x52ed28;}return{'cliCommandCount':_0x1673e0,'cliCommandsSeen':_0x2da8f1,'noCliCommandsCalled':_0xfc302e['GZhmc'](_0x1673e0,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x4f7fda){const _0x2e64f1={'bwMTA':function(_0x2b6c9d,_0xa368ef){return _0x2b6c9d!==_0xa368ef;},'cCXrC':function(_0x26ed40,_0x31c14f){return _0x26ed40(_0x31c14f);},'MNppy':function(_0x3835d9,_0x1272a3){return _0x3835d9(_0x1272a3);},'rHkdz':'rangerwright_cli_command','OiNSd':function(_0x3b6de9,_0x3a0de2){return _0x3b6de9(_0x3a0de2);},'ckMPU':function(_0x1044fb,_0x3f864e,_0x5a23a9){return _0x1044fb(_0x3f864e,_0x5a23a9);},'avmPK':function(_0x1a8947,_0x44a332){return _0x1a8947!==_0x44a332;},'WaJAZ':'rangerwright-cli'},_0x4a6f2b=new Map(),_0x290901=async _0x698769=>{const _0xc844c8=_0x5093;if(_0x2e64f1[_0xc844c8(0x1bc)](_0x698769[_0xc844c8(0x1ed)],_0xc844c8(0x1d2)))return{};const _0x3a4f05=_0x698769;if(_0x2e64f1[_0xc844c8(0x1bc)](_0x3a4f05[_0xc844c8(0x1b5)],_0xc844c8(0x1e1)))return{};const _0x5287d3=_0x3a4f05[_0xc844c8(0x1f2)],_0x2f1d42=_0x2e64f1[_0xc844c8(0x1dd)](extractBashCommand,_0x5287d3);if(!_0x2f1d42)return{};const _0x41b6b6=_0x2e64f1[_0xc844c8(0x1b3)](parseRangerwrightCliCommand,_0x2f1d42);if(!_0x41b6b6)return{};return _0x4a6f2b[_0xc844c8(0x1fc)](_0x41b6b6,(_0x4a6f2b[_0xc844c8(0x1c3)](_0x41b6b6)||0x0)+0x1),_0x4f7fda['trackPhaseStart'](_0x2e64f1[_0xc844c8(0x1be)],{'subcommand':_0x41b6b6}),_0x4f7fda[_0xc844c8(0x1b4)](_0x2e64f1[_0xc844c8(0x1be)],{'subcommand':_0x41b6b6,'commandPreview':_0x2e64f1['OiNSd'](truncatePreview,_0x2f1d42)}),console[_0xc844c8(0x1ba)]('[rangerwright-cli]\x20'+_0x2e64f1[_0xc844c8(0x1c8)](formatRangerwrightCliLog,_0x2f1d42,_0x41b6b6)),{};},_0x4fa36b=async _0x234d41=>{const _0x41f593=_0x5093;if(_0x234d41[_0x41f593(0x1ed)]!==_0x41f593(0x1c1))return{};const _0x45cb16=_0x234d41;if(_0x2e64f1['avmPK'](_0x45cb16[_0x41f593(0x1b5)],_0x41f593(0x1e1)))return{};return await _0x4f7fda['trackPhaseError'](_0x41f593(0x1dc),_0x45cb16['error'],{'transport':_0x2e64f1['WaJAZ'],'toolName':_0x41f593(0x1e1)}),{};};return{'postToolUseHook':_0x290901,'postToolUseFailureHook':_0x4fa36b,'commandCounts':_0x4a6f2b};}async function runRangerwrightLifecycleCommand(_0x551421){const _0x24da09=_0x5093,_0x4f8c05={'uGgtH':function(_0x2458e9,_0xf2a50c,_0x4d1c57){return _0x2458e9(_0xf2a50c,_0x4d1c57);}},{options:_0x4b61c9,commandArgs:_0x56618c,env:_0x593bef,telemetry:_0x4c2e89,phase:_0x31c2de,metadata:_0x2b84ab,timeoutMs:_0xa32fe9}=_0x551421;_0x4c2e89[_0x24da09(0x1f0)](_0x31c2de,_0x2b84ab);try{const _0x1f53da=await runRangerwrightCliCommand({..._0x4b61c9,'commandArgs':_0x56618c,'cwd':process['cwd'](),'env':_0x593bef,'timeoutMs':_0xa32fe9??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x4c2e89['trackPhaseEnd'](_0x31c2de,{..._0x2b84ab,'subcommand':_0x1f53da[_0x24da09(0x1da)][_0x24da09(0x208)],'stdoutPreview':truncatePreview(_0x1f53da[_0x24da09(0x203)],0x7d0),'stderrPreview':_0x4f8c05[_0x24da09(0x1ee)](truncatePreview,_0x1f53da[_0x24da09(0x200)],0x7d0)});}catch(_0x718eb1){await _0x4c2e89[_0x24da09(0x20c)](_0x31c2de,_0x718eb1,_0x2b84ab);throw _0x718eb1;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x381c40){const _0x527e8d=_0x5093,_0x384a88={'yLxkt':'tracing-stop','ORuhq':_0x527e8d(0x1b8),'WevaY':'rangerwright_cli_close'},{telemetry:_0xed99ed,rangerwrightOptions:_0x5e9fc8,env:_0x24bcd7,transportMetadata:_0x3e9b1c}=_0x381c40,_0x173f0b=[{'phase':'rangerwright_cli_tracing_stop','commandArgs':[_0x384a88['yLxkt']]},{'phase':_0x384a88[_0x527e8d(0x1e0)],'commandArgs':['video-stop']},{'phase':_0x384a88['WevaY'],'commandArgs':['close']}];for(const _0x55a013 of _0x173f0b){try{await runRangerwrightLifecycleCommand({'options':_0x5e9fc8,'commandArgs':[..._0x55a013['commandArgs']],'env':_0x24bcd7,'telemetry':_0xed99ed,'phase':_0x55a013[_0x527e8d(0x1d3)],'metadata':_0x3e9b1c});}catch{}}}
1
+ (function(_0x59aebe,_0x3aea59){const _0x3768d6=_0x56d7,_0x49848e=_0x59aebe();while(!![]){try{const _0x412aae=-parseInt(_0x3768d6(0x20d))/0x1+-parseInt(_0x3768d6(0x224))/0x2+-parseInt(_0x3768d6(0x216))/0x3*(parseInt(_0x3768d6(0x1f7))/0x4)+-parseInt(_0x3768d6(0x1d6))/0x5*(parseInt(_0x3768d6(0x229))/0x6)+-parseInt(_0x3768d6(0x1fa))/0x7+-parseInt(_0x3768d6(0x233))/0x8*(-parseInt(_0x3768d6(0x225))/0x9)+parseInt(_0x3768d6(0x20e))/0xa;if(_0x412aae===_0x3aea59)break;else _0x49848e['push'](_0x49848e['shift']());}catch(_0x4fe9a7){_0x49848e['push'](_0x49848e['shift']());}}}(_0x4945,0x5c042));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(_0x512c1b,_0x49f26e=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x6b9528=_0x56d7;return _0x512c1b['length']>_0x49f26e?_0x512c1b[_0x6b9528(0x218)](0x0,_0x49f26e)+_0x6b9528(0x203):_0x512c1b;}function extractShellValue(_0x108508){if(!_0x108508)return null;return _0x108508[0x1]??_0x108508[0x2]??_0x108508[0x3]??null;}function extractFirstCommandArgument(_0x312a8d,_0x316fb7){const _0x2a0d60=_0x56d7,_0x2e9c89={'GgcGk':_0x2a0d60(0x1e8),'EwAYg':function(_0x555e84,_0x4383f4){return _0x555e84(_0x4383f4);}},_0x50d783=_0x316fb7[_0x2a0d60(0x1f8)](/[.*+?^${}()|[\]\\]/g,_0x2e9c89['GgcGk']);return _0x2e9c89[_0x2a0d60(0x220)](extractShellValue,_0x312a8d[_0x2a0d60(0x1f2)](new RegExp('(?:^|\x5cs)'+_0x50d783+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x450bc2){const _0x396c3d=_0x56d7,_0x76ef06={'iZFUH':_0x396c3d(0x232),'ellpZ':function(_0x3c6b32,_0x5f2fbf,_0x13d2ba){return _0x3c6b32(_0x5f2fbf,_0x13d2ba);}};if(!_0x450bc2)return _0x76ef06['iZFUH'];if(/^e\d+$/i['test'](_0x450bc2))return'ref\x20'+_0x450bc2;return JSON[_0x396c3d(0x1ed)](_0x76ef06[_0x396c3d(0x1df)](truncatePreview,_0x450bc2,0x78));}function formatRangerwrightCliLog(_0x437256,_0x4cfae2){const _0x6993ee=_0x56d7,_0x47aa3e={'zsQPR':_0x6993ee(0x1ec),'LKDjW':function(_0x492354,_0x106bfe,_0x59c7ab){return _0x492354(_0x106bfe,_0x59c7ab);},'kUkNa':_0x6993ee(0x21a),'UQlYK':function(_0x4bce56,_0x28c6d8,_0xe6ef1a){return _0x4bce56(_0x28c6d8,_0xe6ef1a);},'aveKg':_0x6993ee(0x200),'WyWHK':'fill-and-inspect','oRHnj':function(_0x567179,_0x159416){return _0x567179(_0x159416);},'hwGcA':_0x6993ee(0x231),'aIVaB':'inspect\x20page','XCJRr':'tracing-stop','ZvQoJ':_0x6993ee(0x1fe),'nSMoB':'close','RgqUv':_0x6993ee(0x1e0)};switch(_0x4cfae2){case _0x47aa3e[_0x6993ee(0x214)]:{const _0x1b7e50=_0x47aa3e['LKDjW'](extractFirstCommandArgument,_0x437256,_0x4cfae2);return _0x1b7e50?_0x6993ee(0x21b)+_0x1b7e50:_0x47aa3e['kUkNa'];}case _0x6993ee(0x208):return _0x6993ee(0x1f5)+formatCommandTarget(_0x47aa3e['UQlYK'](extractFirstCommandArgument,_0x437256,_0x4cfae2));case _0x47aa3e['aveKg']:case _0x47aa3e[_0x6993ee(0x209)]:return'fill\x20'+_0x47aa3e['oRHnj'](formatCommandTarget,_0x47aa3e['LKDjW'](extractFirstCommandArgument,_0x437256,_0x4cfae2));case'back-and-inspect':return _0x47aa3e[_0x6993ee(0x1dc)];case'inspect':return _0x47aa3e['aIVaB'];case _0x47aa3e['XCJRr']:return'stop\x20tracing';case _0x6993ee(0x1eb):return _0x47aa3e['ZvQoJ'];case _0x47aa3e[_0x6993ee(0x1f9)]:return _0x47aa3e['RgqUv'];default:return _0x4cfae2;}}function _0x56d7(_0x5df308,_0x572c67){_0x5df308=_0x5df308-0x1d6;const _0x49457d=_0x4945();let _0x56d752=_0x49457d[_0x5df308];return _0x56d752;}function renderScenarioSections(_0xa52039){const _0xabf934=_0x56d7,_0x57f24f={'jXrEk':'en-US','vjrnt':'short','wFpSs':_0xabf934(0x21e),'nWtNU':_0xabf934(0x22a),'sOLNm':function(_0x5e5fbf,_0x2f6c0e){return _0x5e5fbf>_0x2f6c0e;}},{checklistItem:_0x3cbe6e,itemFeedback:_0x5a5fee}=_0xa52039,_0x15948d=_0x3cbe6e['notes']?_0xabf934(0x226)+_0x3cbe6e['notes']:'';let _0xc5142f='';if(_0x5a5fee&&_0x57f24f[_0xabf934(0x22f)](_0x5a5fee['unaddressedComments'][_0xabf934(0x212)],0x0)){const _0x14e726=_0x5a5fee[_0xabf934(0x20c)]['map'](_0x3c1d85=>{const _0x34dc7c=_0xabf934,_0xc68119=new Date(_0x3c1d85[_0x34dc7c(0x1e7)])['toLocaleDateString'](_0x57f24f[_0x34dc7c(0x1fb)],{'month':_0x57f24f[_0x34dc7c(0x20f)],'day':'numeric'}),_0x20f643=_0x3c1d85[_0x34dc7c(0x1e4)]||_0x3c1d85['authorEmail']||'Reviewer',_0x467d5f=_0x3c1d85[_0x34dc7c(0x234)]?_0x34dc7c(0x1f3)+(_0x3c1d85['domRef']['selector'][_0x34dc7c(0x227)](_0x57f24f['wFpSs'])[_0x34dc7c(0x20a)]()?.['split'](':')[0x0]||_0x57f24f[_0x34dc7c(0x22d)])+_0x34dc7c(0x1db)+(_0x3c1d85[_0x34dc7c(0x234)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x3c1d85['id']+']\x20'+_0x20f643+'\x20('+_0xc68119+'):\x20\x22'+_0x3c1d85[_0x34dc7c(0x219)]+'\x22'+_0x467d5f;})['join']('\x0a');_0xc5142f='\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'+_0x14e726;}const _0x3d5016=_0x5a5fee?.[_0xabf934(0x1e6)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x5a5fee['canonicalFlow']:'';return''+_0x3cbe6e['description']+_0x15948d+_0xc5142f+_0x3d5016;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x27c318){const _0x5bb098=_0x56d7,_0x42c490={'TaSdo':_0x5bb098(0x1e2),'aRTrl':function(_0xefbee0,_0x3d6891){return _0xefbee0(_0x3d6891);},'gWGAU':function(_0x1daed2,_0xedaba2){return _0x1daed2??_0xedaba2;},'ZkdLk':function(_0x45624a,_0x4771ba){return _0x45624a(_0x4771ba);}},{checklistItem:_0xce95e2,itemFeedback:_0x39cec7,taskDescription:_0x25dd9b,commandPrefix:_0x35a63e,isCdpMode:_0x247876,url:_0x3fba00,cdpEndpoint:_0x3674b6,loginInstructions:_0x36d7b5}=_0x27c318,_0x3beef9=_0x5bb098(0x1e3),_0x2a931a=_0x42c490['TaSdo'],_0x557006=_0x247876?_0x35a63e+'\x20inspect\x20--screenshot-path\x20'+_0x42c490[_0x5bb098(0x215)](quoteShellArg,_0x3beef9):_0x35a63e+_0x5bb098(0x1f6)+quoteShellArg(_0x42c490['gWGAU'](_0x3fba00,_0x5bb098(0x1fd)))+'\x20--screenshot-path\x20'+_0x42c490[_0x5bb098(0x1e5)](quoteShellArg,_0x3beef9),_0x2c6e0b=_0x247876?_0x5bb098(0x217)+_0x3674b6+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':_0x5bb098(0x1f1)+_0x3fba00+'\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.',_0x59e27f=_0x36d7b5?_0x5bb098(0x204)+_0x36d7b5+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';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'+renderScenarioSections({'checklistItem':_0xce95e2,'itemFeedback':_0x39cec7})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x25dd9b+'\x0a\x0a'+_0x2c6e0b+_0x59e27f+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x35a63e+_0x5bb098(0x228)+_0x557006+_0x5bb098(0x223)+_0x35a63e+_0x5bb098(0x20b)+_0x42c490[_0x5bb098(0x215)](quoteShellArg,_0x2a931a)+'\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(_0x4db382){const _0x5b2a9f=_0x56d7,_0x48a8bf={'rItUi':_0x5b2a9f(0x1f4),'kbocN':_0x5b2a9f(0x210),'pjPyP':function(_0x84dc5c,_0x4ec08c){return _0x84dc5c(_0x4ec08c);}},_0x987f98=_0x48a8bf['rItUi'],_0x5b4816=_0x48a8bf['kbocN'];return _0x5b2a9f(0x21d)+_0x4db382['commandPrefix']+'\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`'+_0x4db382['commandPrefix']+_0x5b2a9f(0x1f6)+quoteShellArg(_0x4db382[_0x5b2a9f(0x235)])+'\x20--screenshot-path\x20'+_0x48a8bf['pjPyP'](quoteShellArg,_0x987f98)+_0x5b2a9f(0x1f0)+_0x4db382[_0x5b2a9f(0x1dd)]+_0x5b2a9f(0x1ef)+quoteShellArg(_0x5b4816)+_0x5b2a9f(0x1ea);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x367022){const _0x4c7d6a=_0x56d7,_0x3618fe=[..._0x367022['keys']()][_0x4c7d6a(0x221)]();let _0x5345d8=0x0;for(const _0x56a63d of _0x367022[_0x4c7d6a(0x1de)]()){_0x5345d8+=_0x56a63d;}return{'cliCommandCount':_0x5345d8,'cliCommandsSeen':_0x3618fe,'noCliCommandsCalled':_0x5345d8===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0x150ebf){const _0x50273b={'zpeui':function(_0x431d42,_0x10ad45){return _0x431d42!==_0x10ad45;},'YWzPm':'PostToolUse','vmdBD':'Bash','gxsbx':function(_0x1a321c,_0x5b250f){return _0x1a321c(_0x5b250f);},'FsVqY':function(_0x4a84e3,_0x473f59){return _0x4a84e3(_0x473f59);},'YGOOJ':'rangerwright_cli_command'},_0x31b469=new Map(),_0x51e231=async _0x5ad6ef=>{const _0x28ccee=_0x56d7;if(_0x50273b[_0x28ccee(0x1e1)](_0x5ad6ef[_0x28ccee(0x1fc)],_0x50273b['YWzPm']))return{};const _0x32f9e8=_0x5ad6ef;if(_0x32f9e8['tool_name']!==_0x50273b[_0x28ccee(0x1d9)])return{};const _0x9250af=_0x32f9e8[_0x28ccee(0x211)],_0x18c792=_0x50273b['gxsbx'](extractBashCommand,_0x9250af);if(!_0x18c792)return{};const _0x3bfd58=_0x50273b['FsVqY'](parseRangerwrightCliCommand,_0x18c792);if(!_0x3bfd58)return{};return _0x31b469['set'](_0x3bfd58,(_0x31b469['get'](_0x3bfd58)||0x0)+0x1),_0x150ebf['trackPhaseStart'](_0x50273b['YGOOJ'],{'subcommand':_0x3bfd58}),_0x150ebf[_0x28ccee(0x21c)](_0x28ccee(0x222),{'subcommand':_0x3bfd58,'commandPreview':_0x50273b[_0x28ccee(0x205)](truncatePreview,_0x18c792)}),console[_0x28ccee(0x1ff)](_0x28ccee(0x201)+formatRangerwrightCliLog(_0x18c792,_0x3bfd58)),{};},_0x2aef8f=async _0x4e9fd5=>{const _0x5603a5=_0x56d7;if(_0x50273b[_0x5603a5(0x1e1)](_0x4e9fd5[_0x5603a5(0x1fc)],'PostToolUseFailure'))return{};const _0xca4bb4=_0x4e9fd5;if(_0x50273b['zpeui'](_0xca4bb4[_0x5603a5(0x1d8)],_0x5603a5(0x1e9)))return{};return await _0x150ebf[_0x5603a5(0x202)]('rangerwright_cli_command_failure',_0xca4bb4['error'],{'transport':_0x5603a5(0x230),'toolName':_0x50273b['vmdBD']}),{};};return{'postToolUseHook':_0x51e231,'postToolUseFailureHook':_0x2aef8f,'commandCounts':_0x31b469};}function _0x4945(){const _0x52bb36=['3330XnpjAP','HMYNq','tool_name','vmdBD','rangerwright_cli_video_stop','>\x20\x22','hwGcA','commandPrefix','values','ellpZ','close\x20browser\x20session','zpeui','key_99_final-state.png','01_initial-state.png','authorName','ZkdLk','canonicalFlow','createdAt','\x5c$&','Bash','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','video-stop','open-and-inspect','stringify','tracing-stop','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','match','\x20(on\x20element:\x20<','01_mozilla-homepage.png','click\x20and\x20inspect\x20','\x20open-and-inspect\x20','8864juwlqc','replace','nSMoB','4070577AjEBAM','jXrEk','hook_event_name','about:blank','stop\x20video\x20recording','log','fill','[rangerwright-cli]\x20','trackPhaseError','...','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','gxsbx','mpGaP','YGLyE','click-and-inspect','WyWHK','pop','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','unaddressedComments','664096WjxnCK','18337180GWUuAe','vjrnt','key_02_learn-more.png','tool_input','length','cwd','zsQPR','aRTrl','387xxwXyD','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','slice','content','open\x20and\x20inspect','open\x20and\x20inspect\x20','trackPhaseEnd','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','\x20>\x20','phase','EwAYg','sort','rangerwright_cli_command','\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','226416nsnXNP','9eVDeAc','\x0a\x0a##\x20Additional\x20Notes\x0a','split','\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','2664QVKdxG','element','VFBTN','stderr','nWtNU','GeEQQ','sOLNm','rangerwright-cli','go\x20back\x20and\x20inspect','target','3868504ANEnuE','domRef','url'];_0x4945=function(){return _0x52bb36;};return _0x4945();}async function runRangerwrightLifecycleCommand(_0x6b5470){const _0x114e85=_0x56d7,_0x16547a={'YGLyE':function(_0x311395,_0x7e2351){return _0x311395??_0x7e2351;},'GeEQQ':function(_0x2b5884,_0x5764b6,_0x1f4663){return _0x2b5884(_0x5764b6,_0x1f4663);}},{options:_0x597957,commandArgs:_0x4c3b7c,env:_0x4e6d41,telemetry:_0x3fa7e2,phase:_0x398076,metadata:_0x8283eb,timeoutMs:_0x1ccf01}=_0x6b5470;_0x3fa7e2['trackPhaseStart'](_0x398076,_0x8283eb);try{const _0x37ecae=await runRangerwrightCliCommand({..._0x597957,'commandArgs':_0x4c3b7c,'cwd':process[_0x114e85(0x213)](),'env':_0x4e6d41,'timeoutMs':_0x16547a[_0x114e85(0x207)](_0x1ccf01,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x3fa7e2[_0x114e85(0x21c)](_0x398076,{..._0x8283eb,'subcommand':_0x37ecae['invocation']['subcommand'],'stdoutPreview':_0x16547a[_0x114e85(0x22e)](truncatePreview,_0x37ecae['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x37ecae[_0x114e85(0x22c)],0x7d0)});}catch(_0x365937){await _0x3fa7e2['trackPhaseError'](_0x398076,_0x365937,_0x8283eb);throw _0x365937;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x3f4b4c){const _0x5201a7=_0x56d7,_0x3e10c3={'gXytF':'rangerwright_cli_tracing_stop','VFBTN':_0x5201a7(0x1ee),'mpGaP':_0x5201a7(0x1da),'HMYNq':'rangerwright_cli_close','kZPbu':'close'},{telemetry:_0x84f890,rangerwrightOptions:_0x23bba1,env:_0x34b34a,transportMetadata:_0x93e549}=_0x3f4b4c,_0xc93f22=[{'phase':_0x3e10c3['gXytF'],'commandArgs':[_0x3e10c3[_0x5201a7(0x22b)]]},{'phase':_0x3e10c3[_0x5201a7(0x206)],'commandArgs':[_0x5201a7(0x1eb)]},{'phase':_0x3e10c3[_0x5201a7(0x1d7)],'commandArgs':[_0x3e10c3['kZPbu']]}];for(const _0x3b4295 of _0xc93f22){try{await runRangerwrightLifecycleCommand({'options':_0x23bba1,'commandArgs':[..._0x3b4295['commandArgs']],'env':_0x34b34a,'telemetry':_0x84f890,'phase':_0x3b4295[_0x5201a7(0x21f)],'metadata':_0x93e549});}catch{}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "3.0.1-alpha.c0b290b-36",
3
+ "version": "3.0.1-alpha.d8f00ab-37",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",