@ranger-testing/ranger-cli 3.1.3-alpha.e1ca941-42 → 3.1.4-alpha.96fdd81-47

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 (86) 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/scenarioOriginCheck.js +1 -0
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x20b1bb,_0x582769){const _0x296021=_0x16b3,_0x1ed679=_0x20b1bb();while(!![]){try{const _0x1942a7=parseInt(_0x296021(0x190))/0x1+-parseInt(_0x296021(0x119))/0x2*(parseInt(_0x296021(0x142))/0x3)+-parseInt(_0x296021(0x15e))/0x4+parseInt(_0x296021(0x165))/0x5*(-parseInt(_0x296021(0x194))/0x6)+-parseInt(_0x296021(0x178))/0x7+parseInt(_0x296021(0x11e))/0x8+parseInt(_0x296021(0x188))/0x9*(parseInt(_0x296021(0x11a))/0xa);if(_0x1942a7===_0x582769)break;else _0x1ed679['push'](_0x1ed679['shift']());}catch(_0x51df5d){_0x1ed679['push'](_0x1ed679['shift']());}}}(_0x4fef,0x1e1b6));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';function _0x4fef(){const _0x58860c=['cwd','trace.zip',']\x20**','tracing-stop','slice','replace','yNDRN','invocation','trace.trace.zip','\x22,\x20\x22','tool_name','ugcIy','toLocaleDateString','trackPhaseEnd','JcZJv','YPpca','log','video-stop','VXYqN','[playwright-cli]\x20','select\x20tab','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','subcommand','iUYCS','FJYAS','env','oJfuy','Jextf','15546VqAdiR','eCDYS','OnhvR','fill','`\x0a9.\x20Run\x20`','stop\x20tracing','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','domRef','en-US','pPBpJ','playwright_cli_tracing_stop','):\x20\x22','fOlnr','start\x20video\x20recording','snapshot','capture\x20snapshot','error','DEBUG','`\x0a-\x20`snapshot\x20--filename\x20','PostToolUse','target','textContent','\x20open`,\x20then\x20`','open\x20new\x20tab','01_initial.yml','vztnY','CYklo','trackPhaseError','636476XRRcjV','\x20open\x20','trackPhaseStart','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','QcKjV','\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','capture\x20key\x20step\x20`','5110kLxjfK','description','\x20>\x20','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','--filename=','stdout','stop\x20video\x20recording','\x5c$&','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','tab-select','authorName','01_mozilla-homepage.png','\x0a\x0a1.\x20Run\x20`','open\x20new\x20tab\x20','commandArgs','video-start','trim','awSFR','length','350224ruJLSe','>\x20\x22','content','fill\x20','phase','PostToolUseFailure','(?:^|\x5cs)','UVzCZ','stderr','03_result-visible.png','\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.','EJBiy','grcAV','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','ceRUp','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','4185081dIThTm','qtZaE','split','playwright-cli','AJgsr','press\x20','\x20tracing-start`,\x20then\x20`','map','72190Jpbrqk','lmMwR','UNxNZ','tool_failure','84XpdIfZ','\x20screenshot\x20--filename\x20','capture\x20snapshot\x20`','QvUil','playwright_cli_video_stop','\x20snapshot\x20--filename\x20','sort','\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','check\x20','authorEmail','playwright_cli_close','[ranger-verification-agent]\x20','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','hook_event_name','press','-\x20[','76jBRoVC','10oiHSdO','`\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`','name','OvSZc','51952SYeRNS','unaddressedComments','join','capture\x20screenshot','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','gwMNj','values','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'];_0x4fef=function(){return _0x58860c;};return _0x4fef();}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(_0x2f1def,_0x3e1b9e=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x2a847c=_0x16b3,_0xd55d61={'eViby':function(_0x4b1424,_0xc8dfca){return _0x4b1424>_0xc8dfca;},'XdssR':function(_0xaddd8f,_0x1fc01e){return _0xaddd8f+_0x1fc01e;}};return _0xd55d61['eViby'](_0x2f1def[_0x2a847c(0x177)],_0x3e1b9e)?_0xd55d61['XdssR'](_0x2f1def[_0x2a847c(0x12a)](0x0,_0x3e1b9e),'...'):_0x2f1def;}function buildCliArtifactPath(_0x1a6991,_0x4f3e59){return join(_0x1a6991,_0x4f3e59);}function toStepDisplayName(_0x1c7563){const _0x54d53a=_0x16b3,_0x437a03={'EGrIS':function(_0x3737a2,_0x395fcc){return _0x3737a2(_0x395fcc);}},_0x1e2fe5=basename(_0x1c7563)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x54d53a(0x12b)](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x1e2fe5,'isKeyStep':/^key_/i['test'](_0x437a03['EGrIS'](basename,_0x1c7563))};}function extractShellValue(_0x12101d){if(!_0x12101d)return null;return _0x12101d[0x1]??_0x12101d[0x2]??_0x12101d[0x3]??null;}function extractFilenameOption(_0xaf366c){return extractShellValue(_0xaf366c['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x50bdc1,_0x142804){const _0x5dc9a7=_0x16b3,_0x350c1b={'JcZJv':_0x5dc9a7(0x16c)},_0xc06bab=_0x142804[_0x5dc9a7(0x12b)](/[.*+?^${}()|[\]\\]/g,_0x350c1b[_0x5dc9a7(0x134)]);return extractShellValue(_0x50bdc1['match'](new RegExp(_0x5dc9a7(0x17e)+_0xc06bab+_0x5dc9a7(0x168))));}function _0x16b3(_0x3e2f31,_0x4a5b72){_0x3e2f31=_0x3e2f31-0x10c;const _0x4fefd7=_0x4fef();let _0x16b399=_0x4fefd7[_0x3e2f31];return _0x16b399;}function formatCommandTarget(_0x166ce6){const _0x1de7e5=_0x16b3,_0x1c7f84={'OvSZc':function(_0x3c5287,_0x371458,_0x5b31de){return _0x3c5287(_0x371458,_0x5b31de);}};if(!_0x166ce6)return _0x1de7e5(0x156);if(/^e\d+$/i['test'](_0x166ce6))return'ref\x20'+_0x166ce6;return JSON['stringify'](_0x1c7f84[_0x1de7e5(0x11d)](truncatePreview,_0x166ce6,0x78));}function formatPlaywrightCliLog(_0xb038a4,_0x4915ff){const _0x3f498=_0x16b3,_0xefffe={'UVzCZ':function(_0x3fbfa3,_0x268187,_0x1b7819){return _0x3fbfa3(_0x268187,_0x1b7819);},'qtZaE':'tracing-start','lGqFN':'start\x20tracing','bHqbh':_0x3f498(0x129),'fOlnr':_0x3f498(0x147),'iUYCS':function(_0x2b5578,_0x552970){return _0x2b5578(_0x552970);},'CYklo':_0x3f498(0x151),'oJfuy':function(_0x594a85,_0x12101a){return _0x594a85(_0x12101a);},'QcKjV':_0x3f498(0x121),'DWkIT':'check','igVxA':_0x3f498(0x145),'DtODg':_0x3f498(0x117),'iqAGh':'run-code','FJYAS':'run\x20custom\x20Playwright\x20code','eCDYS':'tab-new','XXePu':_0x3f498(0x159),'WusBj':_0x3f498(0x13a)};switch(_0x4915ff){case'open':{const _0x58b2e6=_0xefffe[_0x3f498(0x17f)](extractFirstCommandArgument,_0xb038a4,_0x4915ff);return _0x58b2e6?'open\x20'+_0x58b2e6:'open\x20browser';}case _0xefffe[_0x3f498(0x189)]:return _0xefffe['lGqFN'];case _0xefffe['bHqbh']:return _0xefffe[_0x3f498(0x14e)];case _0x3f498(0x174):return _0x3f498(0x14f);case _0x3f498(0x137):return _0x3f498(0x16b);case _0x3f498(0x150):{const _0x4c4448=_0xefffe[_0x3f498(0x13d)](extractFilenameOption,_0xb038a4);if(!_0x4c4448)return _0xefffe[_0x3f498(0x15c)];const {name:_0x43c136}=toStepDisplayName(_0x4c4448);return _0x3f498(0x196)+_0x43c136+'`';}case'screenshot':{const _0x14ed20=_0xefffe[_0x3f498(0x140)](extractFilenameOption,_0xb038a4);if(!_0x14ed20)return _0xefffe[_0x3f498(0x162)];const {name:_0x4d5ebf,isKeyStep:_0x166957}=_0xefffe['oJfuy'](toStepDisplayName,_0x14ed20);return _0x166957?_0x3f498(0x164)+_0x4d5ebf+'`':'capture\x20step\x20`'+_0x4d5ebf+'`';}case'click':return'click\x20'+_0xefffe[_0x3f498(0x13d)](formatCommandTarget,_0xefffe['UVzCZ'](extractFirstCommandArgument,_0xb038a4,_0x4915ff));case _0xefffe['DWkIT']:return _0x3f498(0x111)+formatCommandTarget(extractFirstCommandArgument(_0xb038a4,_0x4915ff));case _0xefffe['igVxA']:return _0x3f498(0x17b)+formatCommandTarget(_0xefffe[_0x3f498(0x17f)](extractFirstCommandArgument,_0xb038a4,_0x4915ff));case _0xefffe['DtODg']:return _0x3f498(0x18d)+formatCommandTarget(_0xefffe['UVzCZ'](extractFirstCommandArgument,_0xb038a4,_0x4915ff));case _0xefffe['iqAGh']:return _0xefffe[_0x3f498(0x13e)];case _0xefffe[_0x3f498(0x143)]:{const _0x1d9eb3=extractFirstCommandArgument(_0xb038a4,_0x4915ff);return _0x1d9eb3?_0x3f498(0x172)+_0x1d9eb3:_0xefffe['XXePu'];}case _0x3f498(0x16e):{const _0x2db94f=extractFirstCommandArgument(_0xb038a4,_0x4915ff);return _0x2db94f?'select\x20tab\x20'+_0x2db94f:_0xefffe['WusBj'];}default:return _0x4915ff;}}function extractPlaywrightCliToolDescription(_0x56fa00){const _0x2bc206=_0x16b3,_0x5dfce7={'HZxWr':function(_0xc72625,_0x4c16a3){return _0xc72625!==_0x4c16a3;},'ceRUp':function(_0x978902,_0x58d42f){return _0x978902>_0x58d42f;}},_0xa217b8=_0x56fa00[_0x2bc206(0x166)];if(_0x5dfce7['HZxWr'](typeof _0xa217b8,'string'))return null;const _0x565ac8=_0xa217b8[_0x2bc206(0x175)]()[_0x2bc206(0x12b)](/\s+/g,'\x20');return _0x5dfce7[_0x2bc206(0x186)](_0x565ac8['length'],0x0)?_0x565ac8:null;}export function formatPlaywrightCliConsoleLogMessage(_0xe90aa8,_0x4ea7ca,_0x59ee95){const _0x1e42ce=_0x16b3,_0x53ad03={'BZJdS':function(_0x5f6a34,_0xea286d){return _0x5f6a34(_0xea286d);}},_0x480e21=formatPlaywrightCliLog(_0x4ea7ca,_0x59ee95),_0x19af71=_0x53ad03['BZJdS'](extractPlaywrightCliToolDescription,_0xe90aa8);if(!_0x19af71)return _0x1e42ce(0x139)+_0x480e21;if(process[_0x1e42ce(0x13f)][_0x1e42ce(0x153)])return _0x1e42ce(0x114)+_0x19af71+'\x20('+_0x480e21+')';return _0x1e42ce(0x114)+_0x19af71;}export function buildVerifyFeatureCliDebugPrompt(_0x3f17a9,_0x43f673){const _0x34f36f=_0x16b3,_0x1fc712={'Jextf':function(_0x1e35f7,_0x2f75eb,_0x33724d){return _0x1e35f7(_0x2f75eb,_0x33724d);},'sBqSO':'00_mozilla-homepage.yml','ZjxAS':function(_0x31e7fb,_0x3a28b2,_0x280fea){return _0x31e7fb(_0x3a28b2,_0x280fea);},'wsIxO':'03_learn-more.png','soFNI':function(_0x58be11,_0x316abf){return _0x58be11(_0x316abf);},'gWGzj':function(_0x3b4d4b,_0x1b7ab8){return _0x3b4d4b(_0x1b7ab8);}},_0x7d7b20=_0x1fc712[_0x34f36f(0x141)](buildCliArtifactPath,_0x43f673,_0x1fc712['sBqSO']),_0x5e869b=buildCliArtifactPath(_0x43f673,_0x34f36f(0x170)),_0x3cb26f=_0x1fc712[_0x34f36f(0x141)](buildCliArtifactPath,_0x43f673,'02_learn-more.yml'),_0x52032a=_0x1fc712['ZjxAS'](buildCliArtifactPath,_0x43f673,_0x1fc712['wsIxO']),_0x50183d=_0x1fc712['soFNI'](quoteShellArg,_0x7d7b20),_0x5e5fa4=quoteShellArg(_0x5e869b),_0x26936f=quoteShellArg(_0x3cb26f),_0x1be674=_0x1fc712['gWGzj'](quoteShellArg,_0x52032a);return _0x34f36f(0x148)+_0x3f17a9+_0x34f36f(0x171)+_0x3f17a9+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x3f17a9+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x3f17a9+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x43f673+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x3f17a9+'\x20snapshot\x20--filename\x20'+_0x50183d+_0x34f36f(0x125)+_0x3f17a9+_0x34f36f(0x195)+_0x5e5fa4+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x3f17a9+'\x20snapshot\x20--filename\x20'+_0x26936f+_0x34f36f(0x146)+_0x3f17a9+_0x34f36f(0x195)+_0x1be674+_0x34f36f(0x185);}export function buildVerifyFeatureCliPrompt(_0x37da8f){const _0x515791=_0x16b3,_0x5af6b3={'awSFR':'numeric','gdGpY':'Reviewer','AJgsr':_0x515791(0x167),'lmMwR':function(_0x439ce6,_0x26b4e4,_0x588e0f){return _0x439ce6(_0x26b4e4,_0x588e0f);},'gwMNj':_0x515791(0x15a),'ojMhy':function(_0x676208,_0x106929,_0x1328d4){return _0x676208(_0x106929,_0x1328d4);},'jZLrr':function(_0x18f6fe,_0x36a303){return _0x18f6fe(_0x36a303);},'TKhPP':function(_0x589604,_0x1dd0e0){return _0x589604>_0x1dd0e0;},'EJBiy':function(_0x2ea5ed,_0xc7bcf7){return _0x2ea5ed(_0xc7bcf7);},'QvUil':function(_0x57f774,_0x366704,_0x20e6da){return _0x57f774(_0x366704,_0x20e6da);},'ZysaN':'02_button-clicked.png','phSbG':_0x515791(0x181),'ILBsT':'key_04_success-state.png'},{checklistItem:_0x262c4b,itemFeedback:_0x1eef0b,taskDescription:_0xefee81,cliCommandPrefix:_0xbc5fda,cliArtifactDir:_0x30662e,isCdpMode:_0x1583af,url:_0x22fa8e,cdpEndpoint:_0x66ecbe,loginInstructions:_0x21d3c9}=_0x37da8f,_0x3b9c26=_0x5af6b3[_0x515791(0x191)](buildCliArtifactPath,_0x30662e,_0x5af6b3[_0x515791(0x123)]),_0xe5402d=_0x5af6b3['ojMhy'](buildCliArtifactPath,_0x30662e,'02_state.yml'),_0x34fdd4=buildCliArtifactPath(_0x30662e,'key_03_success-state.png'),_0x446f1c=_0x5af6b3[_0x515791(0x191)](buildCliArtifactPath,_0x30662e,'01_initial-state.png'),_0x44fbbe=quoteShellArg(_0x3b9c26),_0x1643df=quoteShellArg(_0xe5402d),_0x412fcf=quoteShellArg(_0x34fdd4),_0x5b04c3=_0x5af6b3['jZLrr'](quoteShellArg,_0x446f1c),_0x3267b7=_0x262c4b['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x262c4b['notes']:'';let _0xd6c337='';if(_0x1eef0b&&_0x5af6b3['TKhPP'](_0x1eef0b['unaddressedComments'][_0x515791(0x177)],0x0)){const _0x563ef6=_0x1eef0b[_0x515791(0x11f)][_0x515791(0x18f)](_0x2bfb66=>{const _0x5ce80c=_0x515791,_0x2d26b9=new Date(_0x2bfb66['createdAt'])[_0x5ce80c(0x132)](_0x5ce80c(0x14a),{'month':'short','day':_0x5af6b3[_0x5ce80c(0x176)]}),_0x3d8464=_0x2bfb66[_0x5ce80c(0x16f)]||_0x2bfb66[_0x5ce80c(0x112)]||_0x5af6b3['gdGpY'],_0x39e5e6=_0x2bfb66[_0x5ce80c(0x149)]?'\x20(on\x20element:\x20<'+(_0x2bfb66[_0x5ce80c(0x149)]['selector'][_0x5ce80c(0x18a)](_0x5af6b3[_0x5ce80c(0x18c)])['pop']()?.['split'](':')[0x0]||'element')+_0x5ce80c(0x179)+(_0x2bfb66[_0x5ce80c(0x149)][_0x5ce80c(0x157)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x5ce80c(0x118)+_0x2bfb66['id']+_0x5ce80c(0x128)+_0x3d8464+'**\x20('+_0x2d26b9+_0x5ce80c(0x14d)+_0x2bfb66[_0x5ce80c(0x17a)]+'\x22'+_0x39e5e6;})[_0x515791(0x120)]('\x0a');_0xd6c337=_0x515791(0x110)+_0x563ef6;}const _0x9f9fad=_0x1eef0b?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x1eef0b['canonicalFlow']:'',_0x40d887=_0x1583af?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x66ecbe+_0x515791(0x122):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x22fa8e+'\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',_0x5c062c=_0x22fa8e?_0x5af6b3[_0x515791(0x183)](quoteShellArg,_0x22fa8e):'',_0x9f9c8d=_0x1583af?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0xbc5fda+_0x515791(0x158)+_0xbc5fda+_0x515791(0x18e)+_0xbc5fda+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x30662e+_0x515791(0x187)+_0xbc5fda+_0x515791(0x10e)+_0x44fbbe+'`\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`'+_0xbc5fda+'\x20screenshot\x20--filename\x20'+_0x5b04c3+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0xbc5fda+_0x515791(0x163):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0xbc5fda+_0x515791(0x15f)+_0x5c062c+'`,\x20then\x20`'+_0xbc5fda+_0x515791(0x18e)+_0xbc5fda+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x30662e+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0xbc5fda+_0x515791(0x10e)+_0x44fbbe+'`\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`'+_0xbc5fda+_0x515791(0x195)+_0x5b04c3+_0x515791(0x161)+_0xbc5fda+'\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',_0x5ba351=_0x1583af?_0x515791(0x182):'\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.',_0x11b383=_0x21d3c9?_0x515791(0x13b)+_0x21d3c9+'\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'+_0x262c4b['description']+_0x3267b7+_0xd6c337+_0x9f9fad+_0x515791(0x16d)+_0xefee81+'\x0a\x0a'+_0x40d887+_0x11b383+'\x0a\x0a'+_0x9f9c8d+_0x515791(0x115)+_0xbc5fda+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x30662e+_0x515791(0x154)+_0x1643df+'`\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'+_0x412fcf+_0x515791(0x11b)+_0x30662e+'`:\x20\x22'+_0x446f1c+'\x22,\x20\x22'+_0x5af6b3[_0x515791(0x10c)](buildCliArtifactPath,_0x30662e,_0x5af6b3['ZysaN'])+_0x515791(0x12f)+_0x5af6b3['lmMwR'](buildCliArtifactPath,_0x30662e,_0x5af6b3['phSbG'])+'\x22\x0a-\x20Number\x20prefixes\x20(01_,\x2002_,\x20etc.)\x20help\x20maintain\x20chronological\x20order\x0a-\x20For\x20KEY\x20MOMENTS\x20that\x20prove\x20the\x20scenario\x20is\x20complete,\x20prefix\x20with\x20\x22key_\x22:\x20\x22'+buildCliArtifactPath(_0x30662e,_0x5af6b3['ILBsT'])+'\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'+_0x5ba351+'\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(_0x39609d){const _0x44b65b=_0x16b3,_0x1f0f02={'bXmKB':function(_0x3030d1,_0x530563){return _0x3030d1===_0x530563;}},_0x49a1ec=[..._0x39609d['keys']()][_0x44b65b(0x10f)]();let _0x27ec37=0x0;for(const _0x2aa1d6 of _0x39609d[_0x44b65b(0x124)]()){_0x27ec37+=_0x2aa1d6;}return{'cliCommandCount':_0x27ec37,'cliCommandsSeen':_0x49a1ec,'noCliCommandsCalled':_0x1f0f02['bXmKB'](_0x27ec37,0x0)};}export function createVerifyFeatureCliHooks(_0x3c1f89){const _0x4d48e7=_0x16b3,_0x3853a6={'vBTCg':function(_0x23680a,_0x49947e){return _0x23680a!==_0x49947e;},'VXYqN':function(_0x8c1d23,_0x527166){return _0x8c1d23(_0x527166);},'tJSSc':function(_0x10ae72,_0x37af1f){return _0x10ae72(_0x37af1f);},'hCVJZ':function(_0x4556b9,_0x233b85,_0x2c13f3,_0x22d29b){return _0x4556b9(_0x233b85,_0x2c13f3,_0x22d29b);},'mJANx':_0x4d48e7(0x193),'yNDRN':'playwright-cli','GXUQx':'Bash'},_0x2b8c2f=new Map(),_0x48d7a7=async _0x1a1d5f=>{const _0x255806=_0x4d48e7;if(_0x1a1d5f['hook_event_name']!==_0x255806(0x155))return{};const _0xf7e588=_0x1a1d5f;if(_0x3853a6['vBTCg'](_0xf7e588['tool_name'],'Bash'))return{};const _0x5ce4d1=_0xf7e588['tool_input'],_0x420073=_0x3853a6[_0x255806(0x138)](extractBashCommand,_0x5ce4d1);if(!_0x420073)return{};const _0x4b3ca0=_0x3853a6['tJSSc'](parsePlaywrightCliCommand,_0x420073);if(!_0x4b3ca0)return{};return _0x2b8c2f['set'](_0x4b3ca0,(_0x2b8c2f['get'](_0x4b3ca0)||0x0)+0x1),_0x3c1f89[_0x255806(0x160)]('tool_call',{'transport':_0x255806(0x18b),'toolName':_0x4b3ca0}),_0x3c1f89[_0x255806(0x133)]('tool_call',{'transport':'playwright-cli','toolName':_0x4b3ca0,'bashCommandPreview':truncatePreview(_0x420073)}),_0x4b3ca0!==_0x255806(0x150)&&console[_0x255806(0x136)](_0x3853a6['hCVJZ'](formatPlaywrightCliConsoleLogMessage,_0x5ce4d1,_0x420073,_0x4b3ca0)),{};},_0x113541=async _0x2210a3=>{const _0x30ba34=_0x4d48e7;if(_0x2210a3[_0x30ba34(0x116)]!==_0x30ba34(0x17d))return{};const _0x3ed385=_0x2210a3;if(_0x3ed385[_0x30ba34(0x130)]!=='Bash')return{};return await _0x3c1f89[_0x30ba34(0x15d)](_0x3853a6['mJANx'],_0x3ed385[_0x30ba34(0x152)],{'transport':_0x3853a6[_0x30ba34(0x12c)],'toolName':_0x3853a6['GXUQx']}),{};};return{'postToolUseHook':_0x48d7a7,'postToolUseFailureHook':_0x113541,'commandCounts':_0x2b8c2f};}async function runPlaywrightCliLifecycleCommand(_0x4623ef){const _0x25ce79=_0x16b3,_0x2e5c75={'grcAV':function(_0x1bbbc4,_0x4b367f){return _0x1bbbc4(_0x4b367f);},'hZMxt':function(_0x3a4186,_0x550083,_0x5e6c21){return _0x3a4186(_0x550083,_0x5e6c21);}},{sessionId:_0xf9aab5,configPath:_0x2a8373,commandArgs:_0x152eb5,env:_0x48eb4d,telemetry:_0x485c59,phase:_0x41f953,metadata:_0x35bbc5,timeoutMs:_0x2e04f7}=_0x4623ef;_0x485c59['trackPhaseStart'](_0x41f953,_0x35bbc5);try{const _0x44881c=await _0x2e5c75[_0x25ce79(0x184)](runPlaywrightCliCommand,{'sessionId':_0xf9aab5,'configPath':_0x2a8373,'commandArgs':_0x152eb5,'cwd':process[_0x25ce79(0x126)](),'env':_0x48eb4d,'timeoutMs':_0x2e04f7??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x485c59['trackPhaseEnd'](_0x41f953,{..._0x35bbc5,'subcommand':_0x44881c[_0x25ce79(0x12d)][_0x25ce79(0x13c)],'stdoutPreview':_0x2e5c75['hZMxt'](truncatePreview,_0x44881c[_0x25ce79(0x16a)],0x7d0),'stderrPreview':truncatePreview(_0x44881c[_0x25ce79(0x180)],0x7d0)});}catch(_0x2c1438){await _0x485c59['trackPhaseError'](_0x41f953,_0x2c1438,_0x35bbc5);throw _0x2c1438;}}export async function finalizeVerifyFeatureCliSession(_0x329629){const _0x49fbea=_0x16b3,_0x3e15db={'OnhvR':_0x49fbea(0x14c),'UNxNZ':'tracing-stop','ugcIy':_0x49fbea(0x113),'YPpca':function(_0x40b0c6,_0x3e273e){return _0x40b0c6(_0x3e273e);}},{telemetry:_0x11f041,sessionId:_0x301ab3,configPath:_0xb7da,cliArtifactDir:_0x299af3,env:_0x17dd44,transportMetadata:_0x180eda}=_0x329629,_0x2114af=[{'phase':_0x3e15db[_0x49fbea(0x144)],'commandArgs':[_0x3e15db[_0x49fbea(0x192)]]},{'phase':_0x49fbea(0x10d),'commandArgs':['video-stop',_0x49fbea(0x169)+buildCliArtifactPath(_0x299af3,'session-recording.webm')]},{'phase':_0x3e15db[_0x49fbea(0x131)],'commandArgs':['close']}];for(const _0xdec5d5 of _0x2114af){try{await _0x3e15db[_0x49fbea(0x135)](runPlaywrightCliLifecycleCommand,{'sessionId':_0x301ab3,'configPath':_0xb7da,'commandArgs':[..._0xdec5d5[_0x49fbea(0x173)]],'env':_0x17dd44,'telemetry':_0x11f041,'phase':_0xdec5d5[_0x49fbea(0x17c)],'metadata':_0x180eda});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x5ba51d){const _0x2e9157=_0x16b3,_0x3d9a53={'bBesu':_0x2e9157(0x12e),'aqVcy':function(_0x3fd262,_0x5a79d2,_0x30b9ba){return _0x3fd262(_0x5a79d2,_0x30b9ba);},'OzSLF':function(_0x4956e3,_0x4274d0){return _0x4956e3(_0x4274d0);}},_0x302aa5=[_0x2e9157(0x127),_0x3d9a53['bBesu']];for(const _0x2c42a6 of _0x302aa5){const _0x573277=_0x3d9a53['aqVcy'](join,_0x5ba51d,_0x2c42a6);try{return{'buffer':await _0x3d9a53['OzSLF'](readFile,_0x573277),'source':_0x573277};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x2c0ed6){const _0x2c3fea=_0x16b3,_0x5a61f7={'pPBpJ':function(_0x1f7f58,_0x56a4d0){return _0x1f7f58(_0x56a4d0);},'cihpg':function(_0x434b10,_0x2df794){return _0x434b10+_0x2df794;},'vztnY':function(_0x5d3052,_0x3a728b,_0x5e353e){return _0x5d3052(_0x3a728b,_0x5e353e);}},{cwd:_0x53e2ee,cliArtifactDir:_0x3ff394,startTime:_0x25be2b}=_0x2c0ed6,_0x131f95=[];await mkdir(_0x3ff394,{'recursive':!![]});const _0x2902c6=await readdir(_0x53e2ee,{'withFileTypes':!![]});for(const _0x5e01cd of _0x2902c6){if(!_0x5e01cd['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x5e01cd['name']))continue;const _0x12660e=join(_0x53e2ee,_0x5e01cd[_0x2c3fea(0x11c)]),_0x896ecc=await _0x5a61f7[_0x2c3fea(0x14b)](stat,_0x12660e);if(_0x5a61f7['cihpg'](_0x896ecc['mtimeMs'],0x7d0)<_0x25be2b)continue;const _0x48997e=buildCliArtifactPath(_0x3ff394,_0x5e01cd[_0x2c3fea(0x11c)]);if(_0x12660e===_0x48997e)continue;await _0x5a61f7[_0x2c3fea(0x15b)](rename,_0x12660e,_0x48997e),_0x131f95['push'](_0x5e01cd[_0x2c3fea(0x11c)]);}return _0x131f95[_0x2c3fea(0x10f)]();}
1
+ (function(_0x573388,_0x22f10a){const _0x39bbf2=_0xb248,_0x25b070=_0x573388();while(!![]){try{const _0x5e0911=-parseInt(_0x39bbf2(0x1be))/0x1*(parseInt(_0x39bbf2(0x225))/0x2)+parseInt(_0x39bbf2(0x1d5))/0x3*(parseInt(_0x39bbf2(0x21b))/0x4)+parseInt(_0x39bbf2(0x1dd))/0x5*(-parseInt(_0x39bbf2(0x1d1))/0x6)+-parseInt(_0x39bbf2(0x1bb))/0x7+-parseInt(_0x39bbf2(0x1b5))/0x8+parseInt(_0x39bbf2(0x1cd))/0x9+parseInt(_0x39bbf2(0x1eb))/0xa*(parseInt(_0x39bbf2(0x1c0))/0xb);if(_0x5e0911===_0x22f10a)break;else _0x25b070['push'](_0x25b070['shift']());}catch(_0x401148){_0x25b070['push'](_0x25b070['shift']());}}}(_0x4c6c,0x50402));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(_0xfdca0d,_0x33c413=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0xedec1=_0xb248,_0xe4a291={'pxFzq':'...'};return _0xfdca0d[_0xedec1(0x1e9)]>_0x33c413?_0xfdca0d['slice'](0x0,_0x33c413)+_0xe4a291['pxFzq']:_0xfdca0d;}function buildCliArtifactPath(_0x5abd1e,_0x38eb18){return join(_0x5abd1e,_0x38eb18);}function toStepDisplayName(_0x44304d){const _0x5ddd18=_0xb248,_0x1c150d={'BXgUt':function(_0x276d44,_0x312944){return _0x276d44(_0x312944);}},_0x596306=_0x1c150d[_0x5ddd18(0x222)](basename,_0x44304d)[_0x5ddd18(0x1f6)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x5ddd18(0x1f6)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x596306,'isKeyStep':/^key_/i['test'](basename(_0x44304d))};}function extractShellValue(_0x1a33c0){if(!_0x1a33c0)return null;return _0x1a33c0[0x1]??_0x1a33c0[0x2]??_0x1a33c0[0x3]??null;}function extractFilenameOption(_0x585ee8){const _0x3e8578=_0xb248;return extractShellValue(_0x585ee8[_0x3e8578(0x1cb)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x5127d7,_0x286cb6){const _0x270583=_0xb248,_0x40f52b={'KqRzR':_0x270583(0x1ba)},_0x3d9cca=_0x286cb6[_0x270583(0x1f6)](/[.*+?^${}()|[\]\\]/g,_0x40f52b['KqRzR']);return extractShellValue(_0x5127d7[_0x270583(0x1cb)](new RegExp('(?:^|\x5cs)'+_0x3d9cca+_0x270583(0x1e4))));}function _0xb248(_0x3fd474,_0x10ad4e){_0x3fd474=_0x3fd474-0x1b0;const _0x4c6cba=_0x4c6c();let _0xb248d7=_0x4c6cba[_0x3fd474];return _0xb248d7;}function formatCommandTarget(_0x46a730){const _0xee6aa3=_0xb248;if(!_0x46a730)return _0xee6aa3(0x1d0);if(/^e\d+$/i['test'](_0x46a730))return'ref\x20'+_0x46a730;return JSON['stringify'](truncatePreview(_0x46a730,0x78));}function formatPlaywrightCliLog(_0xe59502,_0x31cc28){const _0x46ccbf=_0xb248,_0xf28fbb={'vlLOR':_0x46ccbf(0x20f),'isBjl':_0x46ccbf(0x20c),'SIEYB':_0x46ccbf(0x1d6),'VqsmX':_0x46ccbf(0x221),'sNJRK':'video-stop','rKliT':_0x46ccbf(0x1fe),'HPdEh':function(_0x57ec1e,_0x3a0050){return _0x57ec1e(_0x3a0050);},'hYrpP':_0x46ccbf(0x1ee),'vPcMr':_0x46ccbf(0x227),'aPlYL':function(_0x4b6695,_0x4cf1c0){return _0x4b6695(_0x4cf1c0);},'wKDTC':_0x46ccbf(0x1e0),'ZUhxQ':function(_0x2039fe,_0x18b1ed,_0x3ce73f){return _0x2039fe(_0x18b1ed,_0x3ce73f);},'DesNc':'check','AppNr':function(_0x3ca031,_0x537861){return _0x3ca031(_0x537861);},'qJngU':'press','XkSOl':'run-code','dGeIa':_0x46ccbf(0x212),'DzuSj':'select\x20tab'};switch(_0x31cc28){case'open':{const _0x19340c=extractFirstCommandArgument(_0xe59502,_0x31cc28);return _0x19340c?_0x46ccbf(0x1b3)+_0x19340c:_0xf28fbb[_0x46ccbf(0x1da)];}case _0xf28fbb['isBjl']:return'start\x20tracing';case _0xf28fbb['SIEYB']:return'stop\x20tracing';case _0x46ccbf(0x216):return _0xf28fbb['VqsmX'];case _0xf28fbb['sNJRK']:return'stop\x20video\x20recording';case _0xf28fbb[_0x46ccbf(0x1db)]:{const _0x1302f5=_0xf28fbb[_0x46ccbf(0x1c2)](extractFilenameOption,_0xe59502);if(!_0x1302f5)return _0xf28fbb['hYrpP'];const {name:_0x30933f}=_0xf28fbb['HPdEh'](toStepDisplayName,_0x1302f5);return _0x46ccbf(0x218)+_0x30933f+'`';}case _0xf28fbb['vPcMr']:{const _0x4016eb=_0xf28fbb[_0x46ccbf(0x213)](extractFilenameOption,_0xe59502);if(!_0x4016eb)return _0xf28fbb['wKDTC'];const {name:_0x1a2ff1,isKeyStep:_0x274f76}=toStepDisplayName(_0x4016eb);return _0x274f76?'capture\x20key\x20step\x20`'+_0x1a2ff1+'`':'capture\x20step\x20`'+_0x1a2ff1+'`';}case'click':return _0x46ccbf(0x1e3)+formatCommandTarget(_0xf28fbb['ZUhxQ'](extractFirstCommandArgument,_0xe59502,_0x31cc28));case _0xf28fbb['DesNc']:return _0x46ccbf(0x1f0)+formatCommandTarget(extractFirstCommandArgument(_0xe59502,_0x31cc28));case _0x46ccbf(0x20e):return'fill\x20'+_0xf28fbb[_0x46ccbf(0x1e2)](formatCommandTarget,_0xf28fbb[_0x46ccbf(0x1f1)](extractFirstCommandArgument,_0xe59502,_0x31cc28));case _0xf28fbb['qJngU']:return _0x46ccbf(0x210)+formatCommandTarget(extractFirstCommandArgument(_0xe59502,_0x31cc28));case _0xf28fbb['XkSOl']:return _0xf28fbb[_0x46ccbf(0x22b)];case'tab-new':{const _0x2c1cf0=extractFirstCommandArgument(_0xe59502,_0x31cc28);return _0x2c1cf0?_0x46ccbf(0x1f5)+_0x2c1cf0:_0x46ccbf(0x1e7);}case'tab-select':{const _0x579320=extractFirstCommandArgument(_0xe59502,_0x31cc28);return _0x579320?_0x46ccbf(0x1c5)+_0x579320:_0xf28fbb[_0x46ccbf(0x207)];}default:return _0x31cc28;}}function extractPlaywrightCliToolDescription(_0x3b3e88){const _0x947db0=_0xb248,_0x3eebe9={'lhXfn':_0x947db0(0x1fc),'ZmTIU':function(_0x3f1e7f,_0x3f2beb){return _0x3f1e7f>_0x3f2beb;}},_0x59ad7a=_0x3b3e88['description'];if(typeof _0x59ad7a!==_0x3eebe9[_0x947db0(0x21c)])return null;const _0x44d840=_0x59ad7a['trim']()[_0x947db0(0x1f6)](/\s+/g,'\x20');return _0x3eebe9['ZmTIU'](_0x44d840['length'],0x0)?_0x44d840:null;}export function formatPlaywrightCliConsoleLogMessage(_0xaea493,_0x542338,_0x3422a8){const _0x357cce=_0xb248,_0x1abb91={'QTiza':function(_0x2773db,_0x1b1112,_0x35c580){return _0x2773db(_0x1b1112,_0x35c580);}},_0x452eb2=_0x1abb91[_0x357cce(0x1e6)](formatPlaywrightCliLog,_0x542338,_0x3422a8),_0x4ec715=extractPlaywrightCliToolDescription(_0xaea493);if(!_0x4ec715)return'[playwright-cli]\x20'+_0x452eb2;if(process[_0x357cce(0x1b0)]['DEBUG'])return'[ranger-verification-agent]\x20'+_0x4ec715+'\x20('+_0x452eb2+')';return'[ranger-verification-agent]\x20'+_0x4ec715;}export function buildVerifyFeatureCliDebugPrompt(_0x2b1307,_0x50116a){const _0x374cdf=_0xb248,_0x37266b={'HLIXw':_0x374cdf(0x226),'AFUpR':'01_mozilla-homepage.png','XTFSJ':function(_0x223d8d,_0x2f056e){return _0x223d8d(_0x2f056e);}},_0x18d2be=buildCliArtifactPath(_0x50116a,_0x37266b[_0x374cdf(0x21f)]),_0x687cbb=buildCliArtifactPath(_0x50116a,_0x37266b['AFUpR']),_0x27e2e3=buildCliArtifactPath(_0x50116a,'02_learn-more.yml'),_0x354998=buildCliArtifactPath(_0x50116a,'03_learn-more.png'),_0x5253e3=quoteShellArg(_0x18d2be),_0x36e557=quoteShellArg(_0x687cbb),_0x4a02f5=_0x37266b[_0x374cdf(0x20d)](quoteShellArg,_0x27e2e3),_0x2c6f28=quoteShellArg(_0x354998);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x2b1307+'\x0a\x0a1.\x20Run\x20`'+_0x2b1307+_0x374cdf(0x20b)+_0x2b1307+_0x374cdf(0x1d4)+_0x2b1307+_0x374cdf(0x230)+_0x50116a+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x2b1307+_0x374cdf(0x219)+_0x5253e3+_0x374cdf(0x1fd)+_0x2b1307+_0x374cdf(0x1b9)+_0x36e557+_0x374cdf(0x21d)+_0x2b1307+'\x20snapshot\x20--filename\x20'+_0x4a02f5+_0x374cdf(0x1b2)+_0x2b1307+'\x20screenshot\x20--filename\x20'+_0x2c6f28+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x5eb71a){const _0x330d49=_0xb248,_0x2665c3={'pqCSg':'numeric','UPZMR':'element','NbPkI':function(_0x467911,_0x5039b9,_0x5bef40){return _0x467911(_0x5039b9,_0x5bef40);},'eCCcw':function(_0x130723,_0x1e25f4,_0x2b4fa1){return _0x130723(_0x1e25f4,_0x2b4fa1);},'ICQkV':'01_initial-state.png','ThXwX':function(_0x3cfbfe,_0x3faec4){return _0x3cfbfe(_0x3faec4);},'IvAeN':function(_0x253393,_0x489270){return _0x253393(_0x489270);},'DVuFn':function(_0x389240,_0x31c211){return _0x389240(_0x31c211);},'DYLsB':function(_0xc05cca,_0x1efd29){return _0xc05cca(_0x1efd29);},'ednWp':_0x330d49(0x1cc),'hKfha':_0x330d49(0x202),'jOaCA':function(_0x5485b1,_0x323c47,_0x5e2c92){return _0x5485b1(_0x323c47,_0x5e2c92);}},{checklistItem:_0x56ca43,itemFeedback:_0x363fb9,taskDescription:_0x3c07ba,cliCommandPrefix:_0x20ba21,cliArtifactDir:_0x2719a0,isCdpMode:_0x3dc155,url:_0x347ab7,cdpEndpoint:_0x3ce960,loginInstructions:_0x5e10ba}=_0x5eb71a,_0x4dfc2d=_0x2665c3[_0x330d49(0x1e8)](buildCliArtifactPath,_0x2719a0,_0x330d49(0x1ea)),_0x2ceac4=_0x2665c3['eCCcw'](buildCliArtifactPath,_0x2719a0,_0x330d49(0x1f3)),_0x207f87=_0x2665c3['eCCcw'](buildCliArtifactPath,_0x2719a0,'key_03_success-state.png'),_0x43fa74=buildCliArtifactPath(_0x2719a0,_0x2665c3[_0x330d49(0x1b7)]),_0x3dee6d=_0x2665c3['ThXwX'](quoteShellArg,_0x4dfc2d),_0x4f0dba=_0x2665c3['IvAeN'](quoteShellArg,_0x2ceac4),_0x58a4a5=_0x2665c3['DVuFn'](quoteShellArg,_0x207f87),_0x601e7f=quoteShellArg(_0x43fa74),_0xe7cca3=_0x56ca43[_0x330d49(0x1c1)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x56ca43['notes']:'';let _0x30eb0f='';if(_0x363fb9&&_0x363fb9['unaddressedComments']['length']>0x0){const _0x50e2c3=_0x363fb9['unaddressedComments']['map'](_0x3c9341=>{const _0x3e65b8=_0x330d49,_0x40e885=new Date(_0x3c9341['createdAt'])['toLocaleDateString'](_0x3e65b8(0x217),{'month':'short','day':_0x2665c3['pqCSg']}),_0x16eddb=_0x3c9341[_0x3e65b8(0x1ca)]||_0x3c9341[_0x3e65b8(0x20a)]||'Reviewer',_0x17ac2f=_0x3c9341[_0x3e65b8(0x1ed)]?'\x20(on\x20element:\x20<'+(_0x3c9341[_0x3e65b8(0x1ed)]['selector'][_0x3e65b8(0x1cf)]('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x2665c3[_0x3e65b8(0x1bc)])+'>\x20\x22'+(_0x3c9341[_0x3e65b8(0x1ed)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x3e65b8(0x215)+_0x3c9341['id']+']\x20**'+_0x16eddb+'**\x20('+_0x40e885+_0x3e65b8(0x1e5)+_0x3c9341['content']+'\x22'+_0x17ac2f;})['join']('\x0a');_0x30eb0f='\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'+_0x50e2c3;}const _0x2795c8=_0x363fb9?.[_0x330d49(0x1c6)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x363fb9[_0x330d49(0x1c6)]:'',_0x420b16=_0x3dc155?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x3ce960+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':_0x330d49(0x1bd)+_0x347ab7+_0x330d49(0x22e),_0x3f6c85=_0x347ab7?_0x2665c3[_0x330d49(0x204)](quoteShellArg,_0x347ab7):'',_0x2f4226=_0x3dc155?_0x330d49(0x22d)+_0x20ba21+'\x20open`,\x20then\x20`'+_0x20ba21+'\x20tracing-start`,\x20then\x20`'+_0x20ba21+_0x330d49(0x1fa)+_0x2719a0+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x20ba21+_0x330d49(0x219)+_0x3dee6d+'`\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`'+_0x20ba21+'\x20screenshot\x20--filename\x20'+_0x601e7f+_0x330d49(0x1f7)+_0x20ba21+_0x330d49(0x206):_0x330d49(0x22d)+_0x20ba21+'\x20open\x20'+_0x3f6c85+'`,\x20then\x20`'+_0x20ba21+'\x20tracing-start`,\x20then\x20`'+_0x20ba21+_0x330d49(0x1fa)+_0x2719a0+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x20ba21+'\x20snapshot\x20--filename\x20'+_0x3dee6d+'`\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`'+_0x20ba21+_0x330d49(0x1b9)+_0x601e7f+_0x330d49(0x214)+_0x20ba21+_0x330d49(0x22f),_0x3696bc=_0x3dc155?_0x330d49(0x21a):'\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.',_0x55751a=_0x5e10ba?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x5e10ba+_0x330d49(0x224):'';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'+_0x56ca43['description']+_0xe7cca3+_0x30eb0f+_0x2795c8+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x3c07ba+'\x0a\x0a'+_0x420b16+_0x55751a+'\x0a\x0a'+_0x2f4226+_0x330d49(0x220)+_0x20ba21+_0x330d49(0x21e)+_0x2719a0+_0x330d49(0x1b8)+_0x4f0dba+'`\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'+_0x58a4a5+_0x330d49(0x201)+_0x2719a0+_0x330d49(0x22c)+_0x43fa74+'\x22,\x20\x22'+_0x2665c3['NbPkI'](buildCliArtifactPath,_0x2719a0,_0x2665c3[_0x330d49(0x1c4)])+_0x330d49(0x1bf)+_0x2665c3['eCCcw'](buildCliArtifactPath,_0x2719a0,_0x2665c3[_0x330d49(0x1c3)])+'\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'+_0x2665c3['jOaCA'](buildCliArtifactPath,_0x2719a0,'key_04_success-state.png')+_0x330d49(0x22a)+_0x3696bc+'\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(_0x1b825b){const _0x35c13e=_0xb248,_0x5b0d43=[..._0x1b825b[_0x35c13e(0x203)]()][_0x35c13e(0x1b4)]();let _0x37c60f=0x0;for(const _0x449757 of _0x1b825b['values']()){_0x37c60f+=_0x449757;}return{'cliCommandCount':_0x37c60f,'cliCommandsSeen':_0x5b0d43,'noCliCommandsCalled':_0x37c60f===0x0};}export function createVerifyFeatureCliHooks(_0xdac68b){const _0xb442bf=_0xb248,_0xffa36={'jbZfH':function(_0x40e73e,_0x4aa919){return _0x40e73e!==_0x4aa919;},'QCRSH':'PostToolUse','JjYVa':function(_0x59c6a0,_0x37b00d){return _0x59c6a0!==_0x37b00d;},'cvOSl':function(_0x23886c,_0x561a00){return _0x23886c(_0x561a00);},'ZRzEf':'playwright-cli','epTIw':_0xb442bf(0x1df),'VLVtY':function(_0x598a10,_0x3f40c5){return _0x598a10(_0x3f40c5);},'YfPUP':_0xb442bf(0x1c8)},_0x27993b=new Map(),_0x4f3b6c=async _0x517bac=>{const _0x40a11b=_0xb442bf;if(_0xffa36[_0x40a11b(0x229)](_0x517bac['hook_event_name'],_0xffa36[_0x40a11b(0x1b6)]))return{};const _0x269c83=_0x517bac;if(_0xffa36['JjYVa'](_0x269c83[_0x40a11b(0x1dc)],'Bash'))return{};const _0x3bb2e2=_0x269c83[_0x40a11b(0x1f8)],_0xaf62d9=_0xffa36[_0x40a11b(0x223)](extractBashCommand,_0x3bb2e2);if(!_0xaf62d9)return{};const _0x228b9a=parsePlaywrightCliCommand(_0xaf62d9);if(!_0x228b9a)return{};return _0x27993b['set'](_0x228b9a,(_0x27993b['get'](_0x228b9a)||0x0)+0x1),_0xdac68b[_0x40a11b(0x1f9)](_0x40a11b(0x1df),{'transport':_0xffa36['ZRzEf'],'toolName':_0x228b9a}),_0xdac68b[_0x40a11b(0x1d7)](_0xffa36['epTIw'],{'transport':_0xffa36['ZRzEf'],'toolName':_0x228b9a,'bashCommandPreview':_0xffa36[_0x40a11b(0x1fb)](truncatePreview,_0xaf62d9)}),_0x228b9a!=='snapshot'&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x3bb2e2,_0xaf62d9,_0x228b9a)),{};},_0x50d634=async _0x5c3edd=>{const _0x113336=_0xb442bf;if(_0x5c3edd[_0x113336(0x1f4)]!==_0xffa36[_0x113336(0x1f2)])return{};const _0x58b809=_0x5c3edd;if(_0x58b809['tool_name']!==_0x113336(0x1b1))return{};return await _0xdac68b[_0x113336(0x228)](_0x113336(0x205),_0x58b809[_0x113336(0x1ef)],{'transport':'playwright-cli','toolName':'Bash'}),{};};return{'postToolUseHook':_0x4f3b6c,'postToolUseFailureHook':_0x50d634,'commandCounts':_0x27993b};}async function runPlaywrightCliLifecycleCommand(_0x5aef87){const _0x36e33f=_0xb248,_0x251b28={'PWMnK':function(_0x1bf12a,_0x4f92be){return _0x1bf12a(_0x4f92be);},'lYJyU':function(_0x172457,_0x539519){return _0x172457??_0x539519;},'Hsesi':function(_0xb1ffbf,_0x455287,_0x125f4b){return _0xb1ffbf(_0x455287,_0x125f4b);}},{sessionId:_0x8c03f6,configPath:_0x5d87da,commandArgs:_0x4853cc,env:_0x34c41c,telemetry:_0x27c92c,phase:_0x3fd888,metadata:_0x92f5fc,timeoutMs:_0x4ff431}=_0x5aef87;_0x27c92c[_0x36e33f(0x1f9)](_0x3fd888,_0x92f5fc);try{const _0x420a47=await _0x251b28['PWMnK'](runPlaywrightCliCommand,{'sessionId':_0x8c03f6,'configPath':_0x5d87da,'commandArgs':_0x4853cc,'cwd':process[_0x36e33f(0x200)](),'env':_0x34c41c,'timeoutMs':_0x251b28['lYJyU'](_0x4ff431,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x27c92c['trackPhaseEnd'](_0x3fd888,{..._0x92f5fc,'subcommand':_0x420a47['invocation']['subcommand'],'stdoutPreview':_0x251b28['Hsesi'](truncatePreview,_0x420a47['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x420a47['stderr'],0x7d0)});}catch(_0x1d0086){await _0x27c92c['trackPhaseError'](_0x3fd888,_0x1d0086,_0x92f5fc);throw _0x1d0086;}}export async function finalizeVerifyFeatureCliSession(_0x31ac25){const _0x5c6a9c=_0xb248,_0x59792d={'gcBvs':'playwright_cli_tracing_stop','jJFaS':_0x5c6a9c(0x1d6),'iFkbx':'video-stop','ZVLwq':function(_0x4e2e9e,_0x387aad,_0x3cb80d){return _0x4e2e9e(_0x387aad,_0x3cb80d);},'cQbEl':'session-recording.webm','DHuoB':_0x5c6a9c(0x208),'NuNyQ':_0x5c6a9c(0x1c9)},{telemetry:_0x59f3c7,sessionId:_0x33a7cc,configPath:_0x53bbcb,cliArtifactDir:_0x1dbbe0,env:_0x1fc374,transportMetadata:_0x1286ab}=_0x31ac25,_0x57c699=[{'phase':_0x59792d['gcBvs'],'commandArgs':[_0x59792d[_0x5c6a9c(0x1d9)]]},{'phase':'playwright_cli_video_stop','commandArgs':[_0x59792d['iFkbx'],'--filename='+_0x59792d['ZVLwq'](buildCliArtifactPath,_0x1dbbe0,_0x59792d['cQbEl'])]},{'phase':_0x59792d[_0x5c6a9c(0x1e1)],'commandArgs':[_0x59792d['NuNyQ']]}];for(const _0x5e79ec of _0x57c699){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x33a7cc,'configPath':_0x53bbcb,'commandArgs':[..._0x5e79ec[_0x5c6a9c(0x209)]],'env':_0x1fc374,'telemetry':_0x59f3c7,'phase':_0x5e79ec['phase'],'metadata':_0x1286ab});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x187224){const _0xa0f344=_0xb248,_0x6a1c50={'MlsKv':_0xa0f344(0x1d2),'EQtft':'trace.trace.zip','CeDcM':function(_0x5a52d5,_0x1f13ef,_0x3398bc){return _0x5a52d5(_0x1f13ef,_0x3398bc);}},_0x42efc9=[_0x6a1c50['MlsKv'],_0x6a1c50[_0xa0f344(0x1ec)]];for(const _0x2562bc of _0x42efc9){const _0xf17426=_0x6a1c50[_0xa0f344(0x211)](join,_0x187224,_0x2562bc);try{return{'buffer':await readFile(_0xf17426),'source':_0xf17426};}catch{}}return null;}function _0x4c6c(){const _0x967b49=['ZGfKG','cwd','`\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`','03_result-visible.png','keys','DYLsB','tool_failure','\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','DzuSj','playwright_cli_close','commandArgs','authorEmail','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','tracing-start','XTFSJ','fill','open\x20browser','press\x20','CeDcM','run\x20custom\x20Playwright\x20code','aPlYL','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','-\x20[','video-start','en-US','capture\x20snapshot\x20`','\x20snapshot\x20--filename\x20','\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.','4zJUWxe','lhXfn','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','HLIXw','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','start\x20video\x20recording','BXgUt','cvOSl','\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.','7702bRKFue','00_mozilla-homepage.yml','screenshot','trackPhaseError','jbZfH','\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','dGeIa','`:\x20\x22','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x20(same\x20protocol,\x20host,\x20and\x20port)\x0a-\x20For\x20example,\x20if\x20the\x20base\x20URL\x20is\x20\x22http://localhost:3000\x22,\x20you\x20can\x20navigate\x20to\x20\x22http://localhost:3000/home\x22,\x20\x22http://localhost:3000/settings\x22,\x20etc.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port\x20under\x20any\x20circumstances\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists\x20(e.g.,\x20\x22/dashboard\x22),\x20you\x20may\x20navigate\x20to\x20that\x20path\x20ONLY\x20under\x20the\x20base\x20URL\x20above\x0a-\x20The\x20base\x20URL\x20above\x20is\x20the\x20ONLY\x20authorized\x20profile\x20for\x20this\x20verification','\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','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','env','Bash','`\x0a9.\x20Run\x20`','open\x20','sort','821248KqUiMS','QCRSH','ICQkV','`\x0a-\x20`snapshot\x20--filename\x20','\x20screenshot\x20--filename\x20','\x5c$&','2893317tbIKwL','UPZMR','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','57knfSIL','\x22,\x20\x22','5082869aRnZPJ','notes','HPdEh','hKfha','ednWp','select\x20tab\x20','canonicalFlow','mtimeMs','PostToolUseFailure','close','authorName','match','02_button-clicked.png','4121091jmHkzo','test','split','target','72RPmJGm','trace.zip','name','\x20tracing-start`\x0a3.\x20Run\x20`','612033WlqWVb','tracing-stop','trackPhaseEnd','ABelQ','jJFaS','vlLOR','rKliT','tool_name','217445wevtng','iGIYP','tool_call','capture\x20screenshot','DHuoB','AppNr','click\x20','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','):\x20\x22','QTiza','open\x20new\x20tab','NbPkI','length','01_initial.yml','20oXEeMD','EQtft','domRef','capture\x20snapshot','error','check\x20','ZUhxQ','YfPUP','02_state.yml','hook_event_name','open\x20new\x20tab\x20','replace','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','tool_input','trackPhaseStart','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','VLVtY','string','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','snapshot'];_0x4c6c=function(){return _0x967b49;};return _0x4c6c();}export async function rehomeVerifyFeatureCliArtifacts(_0x1a2fd0){const _0x292146=_0xb248,_0x4fd383={'ZGfKG':function(_0x1a2532,_0x33daee,_0x271d0d){return _0x1a2532(_0x33daee,_0x271d0d);},'xMUJB':function(_0x1afe9c,_0x1ea61f){return _0x1afe9c(_0x1ea61f);},'ABelQ':function(_0x20925a,_0x1c9f5a){return _0x20925a+_0x1c9f5a;},'iGIYP':function(_0xa13f1e,_0x45833){return _0xa13f1e===_0x45833;}},{cwd:_0x42c767,cliArtifactDir:_0x35e148,startTime:_0x11a5ea}=_0x1a2fd0,_0x26f1c6=[];await mkdir(_0x35e148,{'recursive':!![]});const _0x265808=await _0x4fd383['ZGfKG'](readdir,_0x42c767,{'withFileTypes':!![]});for(const _0x2b2b47 of _0x265808){if(!_0x2b2b47['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x292146(0x1ce)](_0x2b2b47[_0x292146(0x1d3)]))continue;const _0x5b6776=join(_0x42c767,_0x2b2b47[_0x292146(0x1d3)]),_0x535724=await _0x4fd383['xMUJB'](stat,_0x5b6776);if(_0x4fd383[_0x292146(0x1d8)](_0x535724[_0x292146(0x1c7)],0x7d0)<_0x11a5ea)continue;const _0x14f3e6=_0x4fd383['ZGfKG'](buildCliArtifactPath,_0x35e148,_0x2b2b47['name']);if(_0x4fd383[_0x292146(0x1de)](_0x5b6776,_0x14f3e6))continue;await _0x4fd383[_0x292146(0x1ff)](rename,_0x5b6776,_0x14f3e6),_0x26f1c6['push'](_0x2b2b47[_0x292146(0x1d3)]);}return _0x26f1c6['sort']();}
@@ -1 +1 @@
1
- const _0x25fb66=_0x50de;function _0x50de(_0x3859a7,_0xfbab63){_0x3859a7=_0x3859a7-0xd6;const _0x2436a4=_0x2436();let _0x50de86=_0x2436a4[_0x3859a7];return _0x50de86;}(function(_0x454ae3,_0x39400f){const _0xb9a781=_0x50de,_0x2a57e4=_0x454ae3();while(!![]){try{const _0x5ec47a=-parseInt(_0xb9a781(0x129))/0x1*(-parseInt(_0xb9a781(0x14c))/0x2)+parseInt(_0xb9a781(0x1ab))/0x3+-parseInt(_0xb9a781(0x11f))/0x4*(-parseInt(_0xb9a781(0xd8))/0x5)+parseInt(_0xb9a781(0x1ae))/0x6+-parseInt(_0xb9a781(0x191))/0x7+-parseInt(_0xb9a781(0x106))/0x8+-parseInt(_0xb9a781(0x13a))/0x9*(parseInt(_0xb9a781(0xf8))/0xa);if(_0x5ec47a===_0x39400f)break;else _0x2a57e4['push'](_0x2a57e4['shift']());}catch(_0x52baa9){_0x2a57e4['push'](_0x2a57e4['shift']());}}}(_0x2436,0xbd117));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([_0x25fb66(0x1b0),_0x25fb66(0x162),_0x25fb66(0x18a),'ask','goto','wait-for','snapshot',_0x25fb66(0x101)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x41ed3f,_0x45aa0b){return join(_0x41ed3f,_0x45aa0b);}export class NovaActArtifactRecorder{['params'];['browser']=null;['context']=null;[_0x25fb66(0x167)]=null;[_0x25fb66(0xda)]=[];['frameCount']=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;[_0x25fb66(0x153)]=null;[_0x25fb66(0x17d)]=![];[_0x25fb66(0x120)]=![];[_0x25fb66(0x187)]=![];[_0x25fb66(0x17f)]=![];constructor(_0x55819f){this['params']=_0x55819f;}async[_0x25fb66(0xe6)](){const _0x43f553=_0x25fb66,_0x4f11ce={'oagjf':function(_0x3e5258,_0x1d2bbb,_0x661f08){return _0x3e5258(_0x1d2bbb,_0x661f08);},'RLHyR':'Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context'};if(this[_0x43f553(0x187)])return;this['startAttempted']=!![];const _0x2004f7=await this['readSessionMetadataWithRetry'](),_0x5e2950=_0x2004f7[_0x43f553(0x1b2)];if(!_0x5e2950)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this['params'][_0x43f553(0x139)]['sessionId']);await _0x4f11ce[_0x43f553(0x192)](mkdir,this['params']['cliArtifactDir'],{'recursive':!![]}),this[_0x43f553(0x171)]=await chromium['connectOverCDP'](_0x5e2950,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this[_0x43f553(0x171)]['contexts']()[0x0]??null;if(!this['context'])throw new Error(_0x4f11ce['RLHyR']);await this[_0x43f553(0x124)]['tracing']['start']({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x43f553(0xdc)](),await this[_0x43f553(0x102)](),this[_0x43f553(0x114)][_0x43f553(0x13b)]['trackPhaseStart']('nova_act_artifact_recording',{...this[_0x43f553(0x114)][_0x43f553(0x18e)],'cdpEndpoint':_0x5e2950,'browserPid':_0x2004f7['browser_pid'],'sessionState':_0x2004f7[_0x43f553(0x157)]}),this['params'][_0x43f553(0x13b)][_0x43f553(0x163)](_0x43f553(0x122),{...this[_0x43f553(0x114)]['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x43f553(0x120)]});}async['stop'](){const _0x3690fa=_0x25fb66,_0x2c585c={'ZBpKL':function(_0x3e9cf0,_0x8f3c25,_0x6e4518){return _0x3e9cf0(_0x8f3c25,_0x6e4518);},'ZXfmr':_0x3690fa(0x133),'NGVys':'nova_act_artifact_recording_stop'};if(this[_0x3690fa(0x17f)])return;this['stopped']=!![];const _0x4e3b5d={...this[_0x3690fa(0x114)]['transportMetadata'],'frameCount':this[_0x3690fa(0x13c)],'traceSampleCount':this[_0x3690fa(0x174)],'tracingStarted':this[_0x3690fa(0x17d)],'screencastStarted':this[_0x3690fa(0x120)]};this[_0x3690fa(0x114)][_0x3690fa(0x13b)][_0x3690fa(0xdd)]('nova_act_artifact_recording_stop',_0x4e3b5d);try{await this['stopTraceSampling'](),await this[_0x3690fa(0x138)](),await this[_0x3690fa(0x10f)](),await Promise[_0x3690fa(0x197)](this[_0x3690fa(0xda)]);this[_0x3690fa(0x124)]&&this['tracingStarted']&&await this['context'][_0x3690fa(0x150)][_0x3690fa(0x14a)]({'path':_0x2c585c['ZBpKL'](buildCliArtifactPath,this[_0x3690fa(0x114)][_0x3690fa(0x1a1)],_0x2c585c['ZXfmr'])});const _0x12a480=await this['encodeScreencastVideo']();this['params']['telemetry'][_0x3690fa(0x163)]('nova_act_artifact_recording_stop',{..._0x4e3b5d,'videoPath':_0x12a480});}catch(_0x152a78){await this[_0x3690fa(0x114)][_0x3690fa(0x13b)]['trackPhaseError'](_0x2c585c['NGVys'],_0x152a78,_0x4e3b5d);}finally{await this[_0x3690fa(0x171)]?.['close']()[_0x3690fa(0x166)](()=>undefined),this['browser']=null,this[_0x3690fa(0x124)]=null,this[_0x3690fa(0x167)]=null;}}async[_0x25fb66(0x180)](){const _0x5a3308=_0x25fb66,_0xb1527d={'DGeYn':_0x5a3308(0x144),'cWhgF':function(_0x1f3dd1,_0x4ecfe4){return _0x1f3dd1(_0x4ecfe4);},'Jjavg':function(_0xdba962,_0xd96741){return _0xdba962<_0xd96741;}},_0x40293e=join(homedir(),_0xb1527d['DGeYn'],'browser','sessions',this['params'][_0x5a3308(0x139)][_0x5a3308(0xff)]+'.json'),_0x113bf7=Date['now']();let _0x58d166;do{try{const _0x2e4102=JSON[_0x5a3308(0x151)](await readFile(_0x40293e,_0x5a3308(0x12d)));if(_0x2e4102['cdp_endpoint'])return _0x2e4102;_0x58d166=new Error(_0x5a3308(0xf9)+_0x40293e);}catch(_0x566172){_0x58d166=_0x566172;}await _0xb1527d['cWhgF'](delay,0x64);}while(_0xb1527d['Jjavg'](Date[_0x5a3308(0xf2)]()-_0x113bf7,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x58d166 instanceof Error)throw _0x58d166;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x40293e);}async['startScreencast'](){const _0x2727a8=_0x25fb66,_0x32c603={'KCZxV':function(_0x4d398c,_0x2ab09a,_0x4a3a82){return _0x4d398c(_0x2ab09a,_0x4a3a82);},'mBwut':function(_0x6888d6,_0x3e3a36){return _0x6888d6(_0x3e3a36);},'YuxLC':_0x2727a8(0x136),'vlVjm':'jpeg'};if(!this[_0x2727a8(0x124)])return;const _0xa57d15=this['context'][_0x2727a8(0x10e)]()[0x0];if(!_0xa57d15)return;const _0x4f05bf=this[_0x2727a8(0x1ad)]();await mkdir(_0x4f05bf,{'recursive':!![]});const _0x251cfe=await this['context'][_0x2727a8(0x1a5)](_0xa57d15);this[_0x2727a8(0x167)]=_0x251cfe,_0x251cfe['on']('Page.screencastFrame',_0x31f99e=>{const _0x23e750=_0x2727a8,_0x3c8cee=++this['frameCount'],_0x4b3bf8=_0x32c603[_0x23e750(0xe3)](join,_0x4f05bf,'frame-'+_0x32c603['mBwut'](String,_0x3c8cee)[_0x23e750(0x156)](0x6,'0')+_0x23e750(0x104)),_0x788a45=writeFile(_0x4b3bf8,Buffer[_0x23e750(0xfc)](_0x31f99e['data'],_0x23e750(0x137)))[_0x23e750(0x166)](()=>undefined)[_0x23e750(0xea)](()=>_0x251cfe[_0x23e750(0x1a2)]('Page.screencastFrameAck',{'sessionId':_0x31f99e['sessionId']}))['then'](()=>undefined)[_0x23e750(0x166)](()=>undefined);this['frameWrites'][_0x23e750(0x147)](_0x788a45);}),await _0x251cfe['send'](_0x32c603[_0x2727a8(0x10a)],{'format':_0x32c603['vlVjm'],'quality':0x4b,'everyNthFrame':0x6}),this[_0x2727a8(0x120)]=!![];}async['stopScreencast'](){const _0x1d8f50=_0x25fb66;if(!this['frameSession']||!this[_0x1d8f50(0x120)])return;await this[_0x1d8f50(0x167)][_0x1d8f50(0x1a2)]('Page.stopScreencast')['catch'](()=>undefined);}[_0x25fb66(0xdc)](){const _0x3387ca=_0x25fb66,_0x1658e7={'JKFMY':function(_0x33c3e8,_0x58e56d,_0x43721b){return _0x33c3e8(_0x58e56d,_0x43721b);}};this[_0x3387ca(0xd9)](),this['traceSampleTimer']=_0x1658e7['JKFMY'](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x25fb66(0xd9)](){const _0x18b38d=_0x25fb66;if(this[_0x18b38d(0x153)])return;this['traceSampleInFlight']=this[_0x18b38d(0x138)]()[_0x18b38d(0xea)](()=>{const _0x4ca36d=_0x18b38d;this[_0x4ca36d(0x153)]=null;});}async['stopTraceSampling'](){const _0x4d9fdb=_0x25fb66,_0x59463e={'oaObP':function(_0x5f5da1,_0x2899fe){return _0x5f5da1(_0x2899fe);}};this['traceSampleTimer']&&(_0x59463e['oaObP'](clearInterval,this[_0x4d9fdb(0x13d)]),this[_0x4d9fdb(0x13d)]=null),await this['traceSampleInFlight']?.[_0x4d9fdb(0x166)](()=>undefined);}async[_0x25fb66(0x138)](){const _0x580b93=_0x25fb66,_0x4a56b1=this[_0x580b93(0x124)]?.[_0x580b93(0x10e)]()[0x0];if(!_0x4a56b1)return;try{await _0x4a56b1[_0x580b93(0xfa)](_0x580b93(0xe8))['evaluate'](_0x840ea8=>_0x840ea8['tagName'],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x25fb66(0x112)](){const _0x2395b4=_0x25fb66,_0xaa9ca1={'hYggg':function(_0x1bf171,_0x5a4c61){return _0x1bf171<_0x5a4c61;},'WVRHO':function(_0xa94f27,_0x38581c,_0x39c7d0){return _0xa94f27(_0x38581c,_0x39c7d0);},'hJuJY':'session-recording.webm','IdMOV':'error','dfvMv':_0x2395b4(0x155),'jsItD':function(_0x2545f8,_0x589bf5,_0x1e8f07){return _0x2545f8(_0x589bf5,_0x1e8f07);},'pEnfH':_0x2395b4(0x15d),'JotjE':_0x2395b4(0xf1),'fUwJp':_0x2395b4(0x17a),'quUGB':_0x2395b4(0x19f)};if(_0xaa9ca1['hYggg'](this[_0x2395b4(0x13c)],0x2))return null;const _0xbfb3bc=await resolveFfmpegPath();if(!_0xbfb3bc)return null;const _0x19a7ff=_0xaa9ca1[_0x2395b4(0x12f)](join,this['params']['cliArtifactDir'],_0x2395b4(0x181));await _0xaa9ca1[_0x2395b4(0x12f)](mkdir,_0x19a7ff,{'recursive':!![]});const _0x24938e=join(_0x19a7ff,_0xaa9ca1['hJuJY']);return await _0xaa9ca1['WVRHO'](execFileAsync,_0xbfb3bc,['-y',_0x2395b4(0xd7),_0x2395b4(0x1a9),_0xaa9ca1['IdMOV'],_0xaa9ca1[_0x2395b4(0x121)],'10','-i',_0xaa9ca1['jsItD'](join,this[_0x2395b4(0x1ad)](),'frame-%06d.jpg'),_0xaa9ca1['pEnfH'],'scale=trunc(iw/2)*2:trunc(ih/2)*2',_0xaa9ca1['JotjE'],_0xaa9ca1['fUwJp'],'-pix_fmt',_0xaa9ca1['quUGB'],_0x24938e]),_0x24938e;}[_0x25fb66(0x1ad)](){const _0x510bb9=_0x25fb66;return join(this[_0x510bb9(0x114)][_0x510bb9(0x1a1)],'nova-video-frames');}}async function delay(_0x4a9198){await new Promise(_0x3b4244=>setTimeout(_0x3b4244,_0x4a9198));}async function resolveFfmpegPath(){const _0x5b8c48=_0x25fb66,_0x352ccb={'oLCmo':function(_0x332965,_0x30a5af){return _0x332965(_0x30a5af);},'rGYTg':function(_0x223ef0,_0x2483d4,_0x424931,_0x4a52d6,_0x1e157f){return _0x223ef0(_0x2483d4,_0x424931,_0x4a52d6,_0x1e157f);},'fzoTs':_0x5b8c48(0x16c),'ErPkv':_0x5b8c48(0x189),'ictoy':'ms-playwright'};if(await _0x352ccb[_0x5b8c48(0x10b)](canRunFfmpeg,'ffmpeg'))return _0x5b8c48(0x126);const _0xc99a4=[_0x352ccb['rGYTg'](join,homedir(),_0x352ccb[_0x5b8c48(0x1b1)],'Caches',_0x5b8c48(0x11c)),join(homedir(),_0x352ccb[_0x5b8c48(0x110)],_0x352ccb[_0x5b8c48(0x108)])];for(const _0x520a4b of _0xc99a4){try{const _0x505f32=await _0x352ccb['oLCmo'](readdir,_0x520a4b),_0x40b7c8=_0x505f32['filter'](_0x405908=>_0x405908[_0x5b8c48(0x185)]('ffmpeg-'))[_0x5b8c48(0x186)]()['reverse']()[_0x5b8c48(0x159)](_0x271e3a=>[join(_0x520a4b,_0x271e3a,'ffmpeg-mac'),join(_0x520a4b,_0x271e3a,'ffmpeg-linux'),join(_0x520a4b,_0x271e3a,'ffmpeg.exe')]);for(const _0xfe1d2d of _0x40b7c8){if(await canRunFfmpeg(_0xfe1d2d))return _0xfe1d2d;}}catch{}}return null;}async function canRunFfmpeg(_0x2fb2f6){const _0x1030d9=_0x25fb66,_0x1ede3a={'syFOK':function(_0x11d79b,_0x1eec08,_0xa0adc5){return _0x11d79b(_0x1eec08,_0xa0adc5);},'kDkfS':_0x1030d9(0x1a6)};try{return await _0x1ede3a[_0x1030d9(0xf6)](execFileAsync,_0x2fb2f6,[_0x1ede3a[_0x1030d9(0x16a)]]),!![];}catch{return![];}}function toStepDisplayName(_0x30587b){const _0x23fef7=_0x25fb66,_0x159778={'pdhAU':function(_0x45d8f1,_0x3a47a3){return _0x45d8f1(_0x3a47a3);}},_0x4f7cea=_0x159778['pdhAU'](basename,_0x30587b)[_0x23fef7(0x12a)](/\.(?:png|ya?ml)$/i,'')[_0x23fef7(0x12a)](/^key_/i,'')['replace'](/^\d+_/,'')[_0x23fef7(0x12a)](/-/g,'\x20');return{'name':_0x4f7cea,'isKeyStep':/^key_/i[_0x23fef7(0xdb)](_0x159778['pdhAU'](basename,_0x30587b))};}function extractShellValue(_0x1253c){if(!_0x1253c)return null;return _0x1253c[0x1]??_0x1253c[0x2]??_0x1253c[0x3]??null;}function extractOutputOption(_0x2a6cdc){const _0x3efc09=_0x25fb66;return extractShellValue(_0x2a6cdc[_0x3efc09(0x177)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x292d7c,_0x22628e){const _0x2ed8ec=_0x25fb66,_0x59f25b={'meKGD':_0x2ed8ec(0x1b0),'EdSGi':'execute','zAlkv':'execute\x20Nova\x20browser\x20action','DZUzi':'verify','rrFsa':_0x2ed8ec(0xfb),'CGHio':_0x2ed8ec(0x19a),'ORGIM':_0x2ed8ec(0x14b),'NTWdo':_0x2ed8ec(0x101),'vdrXX':'session\x20export'};switch(_0x22628e){case _0x59f25b['meKGD']:return _0x2ed8ec(0x198);case _0x59f25b['EdSGi']:return _0x59f25b[_0x2ed8ec(0xed)];case _0x59f25b[_0x2ed8ec(0x10c)]:return'verify\x20page\x20condition';case'ask':return _0x59f25b['rrFsa'];case'goto':return _0x2ed8ec(0x13e);case _0x2ed8ec(0x19d):return _0x59f25b[_0x2ed8ec(0xe1)];case _0x2ed8ec(0x143):{const _0x4e50d3=extractOutputOption(_0x292d7c);if(!_0x4e50d3)return _0x59f25b[_0x2ed8ec(0x16d)];const {name:_0x59aad7}=toStepDisplayName(_0x4e50d3);return _0x2ed8ec(0x130)+_0x59aad7+'`';}case _0x59f25b[_0x2ed8ec(0x14e)]:{const _0x106cb7=extractOutputOption(_0x292d7c);if(!_0x106cb7)return _0x2ed8ec(0xeb);const {name:_0x4fa8b6,isKeyStep:_0x411e92}=toStepDisplayName(_0x106cb7);return _0x411e92?_0x2ed8ec(0x1a0)+_0x4fa8b6+'`':'capture\x20step\x20`'+_0x4fa8b6+'`';}case _0x59f25b['vdrXX']:return _0x2ed8ec(0xee);default:return _0x22628e;}}function getNovaActCliCommandBlockReason(_0x4b1413){const _0x4531d2=_0x25fb66,_0x40538b={'vUnAz':'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','IPQGN':function(_0x137924,_0x2d84b4){return _0x137924===_0x2d84b4;},'GjoMX':'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.'},_0x4dcbed=parseNovaActCliCommand(_0x4b1413);if(!_0x4dcbed)return _0x40538b['vUnAz'];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x4531d2(0x14d)](_0x4dcbed))return _0x4531d2(0x117)+_0x4dcbed+_0x4531d2(0xe9);if(_0x40538b[_0x4531d2(0x16e)](_0x4dcbed,_0x4531d2(0x18a))&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x4b1413))return'Evaluate\x20visited-page\x20aggregate\x20requirements\x20from\x20the\x20collected\x20URLs,\x20titles,\x20headings,\x20verify\x20results,\x20and\x20screenshots.\x20Do\x20not\x20run\x20another\x20browser\x20command\x20to\x20re-check\x20pages\x20already\x20visited.';if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x4b1413))return _0x40538b[_0x4531d2(0x17b)];return null;}function buildFeedbackSection(_0x307f47){const _0x37ae0f=_0x25fb66,_0x178b17={'AUGWT':_0x37ae0f(0x1aa),'gMsYr':_0x37ae0f(0x100)};if(!_0x307f47||_0x307f47[_0x37ae0f(0x18f)]['length']===0x0)return'';const _0x1dd085=_0x307f47['unaddressedComments']['map'](_0x1034be=>{const _0x4b4a81=_0x37ae0f,_0x22bfb6=new Date(_0x1034be[_0x4b4a81(0x188)])[_0x4b4a81(0x107)](_0x4b4a81(0x160),{'month':_0x178b17[_0x4b4a81(0x1a3)],'day':'numeric'}),_0x3fe8ab=_0x1034be[_0x4b4a81(0x142)]||_0x1034be[_0x4b4a81(0x170)]||'Reviewer',_0x3f3d82=_0x1034be[_0x4b4a81(0x105)]?'\x20(on\x20element:\x20<'+(_0x1034be[_0x4b4a81(0x105)]['selector']['split'](_0x178b17[_0x4b4a81(0x10d)])['pop']()?.[_0x4b4a81(0x18d)](':')[0x0]||'element')+'>\x20\x22'+(_0x1034be[_0x4b4a81(0x105)]['textContent']||'')[_0x4b4a81(0x190)](0x0,0x32)+'\x22)':'';return _0x4b4a81(0x15b)+_0x1034be['id']+']\x20**'+_0x3fe8ab+'**\x20('+_0x22bfb6+'):\x20\x22'+_0x1034be['content']+'\x22'+_0x3f3d82;})['join']('\x0a');return'\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x1dd085;}function buildNovaSharedOptionsInstruction(_0x353f21){const _0x30e06d=_0x25fb66;if(!_0x353f21['trim']())return _0x30e06d(0x115);return _0x30e06d(0x118)+_0x353f21;}function _0x2436(){const _0x116430=['--output-dir','canonicalFlow','catch','frameSession','nova_act_session_close','QJOsI','kDkfS','euCNo','Library','ORGIM','IPQGN','nfGvW','authorEmail','browser','iQLyY','export','traceSampleCount','block','YGKSu','match','PreToolUse','nova_act_session_report','libvpx-vp9','GjoMX','`\x0a4.\x20Run\x20one\x20batched\x20`','tracingStarted','\x20screenshot\x20--output\x20','stopped','readSessionMetadataWithRetry','videos','\x20snapshot\x20--output\x20','keys','nova-session-export.json','startsWith','sort','startAttempted','createdAt','.cache','verify','cwd','hook_event_name','split','transportMetadata','unaddressedComments','slice','7733523AHvUbQ','oagjf','key_final-state.png','gPZsR','GSRZl','RRFfk','allSettled','create\x20Nova\x20browser\x20session','name','wait\x20for\x20page\x20condition','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','isFile','wait-for','phase','yuv420p','capture\x20key\x20step\x20`','cliArtifactDir','send','AUGWT','close','newCDPSession','-version','subcommand','description','-loglevel','short','310122fgoqXF','args','getFrameDir','4139970gKaXSH','CZsRN','session\x20create','fzoTs','cdp_endpoint','00_initial-state.yml','FOzhf','-hide_banner','6470tHJAWP','queueTraceSample','frameWrites','test','startTraceSampling','trackPhaseStart','BDnZS','koKvN','mtimeMs','CGHio','untqu','KCZxV','JQDgW','jvoez','start','key_03_success-state.png','body','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','finally','capture\x20screenshot','01_initial-state.png','zAlkv','export\x20Nova\x20session','\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`','QARMT','-c:v','now','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','Bash','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','syFOK','mWeJr','10UeLeKe','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','locator','ask\x20page\x20question','from','nova-user-data/*','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','sessionId','\x20>\x20','screenshot','startScreencast','\x20session\x20create\x20','.jpg','domRef','19608IsbXvG','toLocaleDateString','ictoy','\x0a\x0a##\x20Additional\x20Notes\x0a','YuxLC','oLCmo','DZUzi','gMsYr','pages','stopScreencast','ErPkv','WHrcG','encodeScreencastVideo','CFLQc','params','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.','tool_name','Nova\x20command\x20`','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','final-state.yaml','nova-act-cli','zip','ms-playwright','invocation','-qr','2440cQdHqO','screencastStarted','dfvMv','nova_act_artifact_recording','notes','context','command','ffmpeg','`\x0a-\x20`','\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`','197FcIaRD','replace','nova_act_final_screenshot','\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','utf-8','ezSIt','WVRHO','capture\x20snapshot\x20`','PsiFt','nova_act_command','trace.zip','commandArgs','01_initial.yml','Page.startScreencast','base64','captureTraceSample','novaOptions','1623123jkNifR','telemetry','frameCount','traceSampleTimer','navigate\x20browser','--output','fymWS','`\x0a3.\x20Run\x20`','authorName','snapshot','.act_cli','03_final-state.png','--format','push','`.\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`','keCfJ','stop','capture\x20snapshot','4866HkBUij','has','NTWdo','tool_input','tracing','parse','error','traceSampleInFlight','nova_act_session_export','-framerate','padStart','state','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','flatMap','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','-\x20[','nFFfY','-vf','PostToolUse','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','en-US','ThkOR','execute','trackPhaseEnd'];_0x2436=function(){return _0x116430;};return _0x2436();}export function buildVerifyFeatureNovaCliDebugPrompt(_0x49e1cf){const _0x2f8071=_0x25fb66,_0x34dd81={'fymWS':_0x2f8071(0x1b3),'eDnrC':_0x2f8071(0xec),'QJOsI':function(_0x36804c,_0x1e4d02,_0xf17fa0){return _0x36804c(_0x1e4d02,_0xf17fa0);},'ThkOR':function(_0x5dab9a,_0x5960b1){return _0x5dab9a(_0x5960b1);},'DwHdh':function(_0x438c49,_0x1b405b){return _0x438c49(_0x1b405b);}},{novaCommandPrefix:_0x30670a,novaSharedOptionsSuffix:_0x87f613,cliArtifactDir:_0x4b64ed,url:_0x5a6a35}=_0x49e1cf,_0x777609=buildCliArtifactPath(_0x4b64ed,_0x34dd81[_0x2f8071(0x140)]),_0x594e5=buildCliArtifactPath(_0x4b64ed,_0x34dd81['eDnrC']),_0xce9d74=_0x34dd81[_0x2f8071(0x169)](buildCliArtifactPath,_0x4b64ed,'02_final-state.yml'),_0x2de99d=_0x34dd81['QJOsI'](buildCliArtifactPath,_0x4b64ed,_0x2f8071(0x145));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'+_0x30670a+'\x0a\x0a'+_0x34dd81[_0x2f8071(0x161)](buildNovaSharedOptionsInstruction,_0x87f613)+_0x2f8071(0x128)+_0x30670a+'\x20session\x20create\x20'+_0x34dd81['DwHdh'](quoteShellArg,_0x5a6a35)+'\x20'+_0x87f613+'`\x0a2.\x20Run\x20`'+_0x30670a+_0x2f8071(0x182)+quoteShellArg(_0x777609)+'\x20'+_0x87f613+_0x2f8071(0x141)+_0x30670a+_0x2f8071(0x17e)+_0x34dd81['ThkOR'](quoteShellArg,_0x594e5)+'\x20'+_0x87f613+_0x2f8071(0x17c)+_0x30670a+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x30670a+_0x2f8071(0x182)+quoteShellArg(_0xce9d74)+'\x20'+_0x87f613+'`\x0a6.\x20Run\x20`'+_0x30670a+_0x2f8071(0x17e)+quoteShellArg(_0x2de99d)+'\x20'+_0x87f613+_0x2f8071(0x19b)+_0x4b64ed+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x3122c6){const _0x160df9=_0x25fb66,_0x30ec34={'keCfJ':function(_0x3dbcef,_0x5c538a){return _0x3dbcef(_0x5c538a);},'AXtUH':function(_0x4bb650,_0x31ba58,_0x495a23){return _0x4bb650(_0x31ba58,_0x495a23);},'AQUjS':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`'},{checklistItem:_0x39f08c,itemFeedback:_0x625066,taskDescription:_0x2566cf,novaCommandPrefix:_0x40b1f8,novaSharedOptionsSuffix:_0x2a1627,cliArtifactDir:_0x321194,url:_0x4bfb27,loginInstructions:_0xfc2ae4}=_0x3122c6,_0x51a01d=_0x39f08c[_0x160df9(0x123)]?_0x160df9(0x109)+_0x39f08c['notes']:'',_0x4d2575=_0x30ec34[_0x160df9(0x149)](buildFeedbackSection,_0x625066),_0x3ad60c=_0x625066?.[_0x160df9(0x165)]?_0x160df9(0xf3)+_0x625066[_0x160df9(0x165)]:'',_0x309c88=_0xfc2ae4?_0x160df9(0xf5)+_0xfc2ae4+_0x160df9(0x15f):'',_0xab47fd=buildCliArtifactPath(_0x321194,_0x160df9(0x135)),_0x29f808=_0x30ec34['AXtUH'](buildCliArtifactPath,_0x321194,_0x160df9(0xec)),_0x2a0217=buildCliArtifactPath(_0x321194,_0x160df9(0xe7));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'+_0x39f08c[_0x160df9(0x1a8)]+_0x51a01d+_0x4d2575+_0x3ad60c+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x2566cf+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x4bfb27+_0x160df9(0x12c)+_0x309c88+_0x160df9(0xef)+_0x40b1f8+_0x160df9(0x103)+_0x30ec34['keCfJ'](quoteShellArg,_0x4bfb27)+'\x20'+_0x2a1627+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x321194+'`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`'+_0x40b1f8+_0x160df9(0x182)+quoteShellArg(_0xab47fd)+'\x20'+_0x2a1627+_0x160df9(0xfe)+_0x40b1f8+_0x160df9(0x17e)+quoteShellArg(_0x29f808)+'\x20'+_0x2a1627+'`.\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`'+_0x2a0217+_0x160df9(0x148)+_0x40b1f8+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x2a1627['trim']()?'`'+_0x2a1627+'`':_0x30ec34['AQUjS'])+'\x0a\x0a'+_0x30ec34['keCfJ'](buildNovaSharedOptionsInstruction,_0x2a1627)+'\x0a\x0aExamples:\x0a-\x20`'+_0x40b1f8+_0x160df9(0x15a)+_0x2a1627+_0x160df9(0x127)+_0x40b1f8+_0x160df9(0x158)+_0x2a1627+_0x160df9(0x127)+_0x40b1f8+'\x20snapshot\x20--output\x20'+_0x30ec34[_0x160df9(0x149)](quoteShellArg,_0xab47fd)+'\x20'+_0x2a1627+'`\x0a-\x20`'+_0x40b1f8+_0x160df9(0x17e)+quoteShellArg(_0x2a0217)+'\x20'+_0x2a1627+'`\x0a\x0a##\x20Screenshot\x20Guidelines\x0aTake\x20screenshots\x20at\x20scenario\x20milestones\x20so\x20a\x20human\x20can\x20review\x20each\x20completed\x20step\x20and\x20the\x20final\x20state.\x20Use\x20numbered\x20filenames\x20and\x20prefix\x201-2\x20key\x20proof\x20screenshots\x20with\x20`key_`.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page\x20when\x20an\x20existing\x20verifier\x20screenshot\x20or\x20host\x20final\x20screenshot\x20is\x20accessible.\x0a\x0a##\x20Snapshot\x20Guidelines\x0aYou\x20must\x20take\x20the\x20initial\x20snapshot\x20listed\x20above.\x20After\x20that,\x20prefer\x20screenshots\x20plus\x20the\x20page\x20summaries\x20returned\x20by\x20`execute`\x20and\x20`verify`.\x20Only\x20call\x20`snapshot`\x20again\x20if\x20you\x20cannot\x20determine\x20the\x20next\x20action\x20or\x20evaluation\x20from\x20those\x20outputs.\x0a\x0a##\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20initial\x20snapshot\x20and\x20screenshot,\x20check\x20for\x20blocking\x20HTTP\x20errors,\x20framework\x20error\x20pages,\x20blank\x20pages,\x20and\x20authentication\x20failures.\x20If\x20any\x20blocking\x20issue\x20is\x20present,\x20stop\x20and\x20return\x20evaluation\x20\x22blocked\x22\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Failed\x20Assertions\x0aIf\x20`verify`\x20returns\x20`ASSERTION_FAILED`,\x20use\x20its\x20`actual`\x20and\x20`evidence`\x20fields\x20as\x20proof\x20for\x20the\x20final\x20evaluation.\x20Continue\x20only\x20to\x20finish\x20other\x20already-named\x20scenario\x20milestones.\x20Do\x20not\x20retry,\x20ask\x20about,\x20or\x20search\x20around\x20the\x20failed\x20condition.\x0a\x0a##\x20Final\x20Page\x20Stop\x0aWhen\x20the\x20scenario\x20names\x20a\x20final\x20page\x20or\x20final\x20navigation\x20target,\x20that\x20page\x20is\x20the\x20last\x20browser\x20milestone.\x20Once\x20it\x20is\x20loaded\x20and\x20screenshotted,\x20make\x20the\x20final\x20evaluation\x20from\x20the\x20collected\x20evidence.\x20Do\x20not\x20navigate,\x20search,\x20ask,\x20or\x20verify\x20beyond\x20that\x20final\x20page\x20unless\x20the\x20scenario\x20explicitly\x20names\x20another\x20page.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x5d12c9){const _0x5df7f4=_0x25fb66,_0x4c4d01=[..._0x5d12c9[_0x5df7f4(0x183)]()]['sort']();let _0x3f23bf=0x0;for(const _0x44fa67 of _0x5d12c9['values']()){_0x3f23bf+=_0x44fa67;}return{'cliCommandCount':_0x3f23bf,'cliCommandsSeen':_0x4c4d01,'noCliCommandsCalled':_0x3f23bf===0x0};}export function createVerifyFeatureNovaCliHooks(_0x302887,_0x98d06c){const _0x2d1330=_0x25fb66,_0x4c79fe={'STFLA':_0x2d1330(0x178),'gPZsR':_0x2d1330(0xf4),'nFFfY':_0x2d1330(0x175),'HlbBG':function(_0x4ede54,_0x12b725){return _0x4ede54!==_0x12b725;},'zvgnT':function(_0x59e728,_0xd21be3){return _0x59e728(_0xd21be3);},'OaKnh':_0x2d1330(0x1b0),'YGKSu':_0x2d1330(0x122),'rlHUF':_0x2d1330(0x11a),'untqu':function(_0x44ff11,_0x2b2496){return _0x44ff11!==_0x2b2496;},'KeVRc':'PostToolUseFailure'},_0x3da86e=new Map(),_0x10db1b=async _0x540175=>{const _0x16ede7=_0x2d1330;if(_0x540175['hook_event_name']!==_0x4c79fe['STFLA'])return{};const _0xbb35aa=_0x540175;if(_0xbb35aa[_0x16ede7(0x116)]!==_0x4c79fe['gPZsR'])return{};const _0x3f057a=_0xbb35aa['tool_input'],_0x75e8e=extractBashCommand(_0x3f057a);if(!_0x75e8e)return{};const _0x58b0ea=getNovaActCliCommandBlockReason(_0x75e8e);if(!_0x58b0ea)return{};return{'decision':_0x4c79fe[_0x16ede7(0x15c)],'reason':_0x58b0ea};},_0x52145d=async _0x46ea5d=>{const _0x13faad=_0x2d1330;if(_0x4c79fe['HlbBG'](_0x46ea5d[_0x13faad(0x18c)],_0x13faad(0x15e)))return{};const _0x20bfac=_0x46ea5d;if(_0x20bfac[_0x13faad(0x116)]!==_0x13faad(0xf4))return{};const _0x353aae=_0x20bfac[_0x13faad(0x14f)],_0x35cbe9=extractBashCommand(_0x353aae);if(!_0x35cbe9)return{};const _0x574d70=_0x4c79fe['zvgnT'](parseNovaActCliCommand,_0x35cbe9);if(!_0x574d70)return{};_0x3da86e['set'](_0x574d70,(_0x3da86e['get'](_0x574d70)||0x0)+0x1),_0x302887[_0x13faad(0xdd)](_0x13faad(0x132),{'subcommand':_0x574d70}),_0x302887['trackPhaseEnd'](_0x13faad(0x132),{'subcommand':_0x574d70,'commandPreview':previewNovaActCliCommand(_0x35cbe9)}),console['log']('[nova-act-cli]\x20'+formatNovaActCliLog(_0x35cbe9,_0x574d70));if(_0x574d70===_0x4c79fe['OaKnh']&&_0x98d06c)try{await _0x98d06c[_0x13faad(0xe6)]();}catch(_0x5e54f5){await _0x302887['trackPhaseError'](_0x4c79fe[_0x13faad(0x176)],_0x5e54f5,{'transport':_0x4c79fe['rlHUF']});}return{};},_0x48923a=async _0x5841c3=>{const _0x17df3b=_0x2d1330;if(_0x4c79fe[_0x17df3b(0xe2)](_0x5841c3[_0x17df3b(0x18c)],_0x4c79fe['KeVRc']))return{};const _0x3d465f=_0x5841c3;if(_0x3d465f[_0x17df3b(0x116)]!==_0x17df3b(0xf4))return{};return await _0x302887['trackPhaseError']('nova_act_command_failure',_0x3d465f[_0x17df3b(0x152)],{'transport':_0x4c79fe['rlHUF'],'toolName':_0x4c79fe[_0x17df3b(0x194)]}),{};};return{'preToolUseHook':_0x10db1b,'postToolUseHook':_0x52145d,'postToolUseFailureHook':_0x48923a,'commandCounts':_0x3da86e};}async function runNovaLifecycleCommand(_0x15a4ff){const _0x5aecb4=_0x25fb66,_0x8272e2={'jvoez':function(_0xec479,_0x1c8b2b){return _0xec479(_0x1c8b2b);},'CesAx':function(_0x3759b7,_0x19a1cf){return _0x3759b7(_0x19a1cf);}},{novaOptions:_0x4532f6,commandArgs:_0x28ff4b,telemetry:_0x397192,phase:_0x12aa00,metadata:_0x268a3a,timeoutMs:_0x1fd457}=_0x15a4ff;_0x397192['trackPhaseStart'](_0x12aa00,_0x268a3a);try{const _0x56af06=await _0x8272e2[_0x5aecb4(0xe5)](runNovaActCliCommand,{..._0x4532f6,'commandArgs':_0x28ff4b,'cwd':process[_0x5aecb4(0x18b)](),'env':process['env'],'timeoutMs':_0x1fd457??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x397192['trackPhaseEnd'](_0x12aa00,{..._0x268a3a,'subcommand':_0x56af06['invocation'][_0x5aecb4(0x1a7)],'commandPreview':previewNovaActCliCommand(_0x56af06[_0x5aecb4(0x11d)]['shellCommand']),'stdoutPreview':_0x8272e2['CesAx'](previewNovaActCliCommand,_0x56af06['stdout']),'stderrPreview':previewNovaActCliCommand(_0x56af06['stderr']),'logDir':extractNovaActLogDir(_0x56af06['stdout'])});}catch(_0x145a6c){await _0x397192['trackPhaseError'](_0x12aa00,_0x145a6c,_0x268a3a);throw _0x145a6c;}}export async function finalizeVerifyFeatureNovaCliSession(_0x2d2e44){const _0x493a02=_0x25fb66,_0x3f7161={'ZOEaL':_0x493a02(0x12b),'euCNo':_0x493a02(0x101),'QARMT':function(_0x296007,_0x35f750,_0xb1192f){return _0x296007(_0x35f750,_0xb1192f);},'XUtPx':'nova_act_final_snapshot','FOzhf':'--output','BDnZS':_0x493a02(0x154),'Dmurf':'session','iQLyY':_0x493a02(0x173),'lEdhk':_0x493a02(0x184),'GSRZl':_0x493a02(0x164),'PsiFt':function(_0x4687a7,_0x4312e7){return _0x4687a7===_0x4312e7;},'mWeJr':function(_0x312fb0,_0x268a46){return _0x312fb0(_0x268a46);}},{telemetry:_0x2f2e41,novaOptions:_0x370d04,cliArtifactDir:_0x596505,transportMetadata:_0x45b937,artifactRecorder:_0x5ba8ea}=_0x2d2e44,_0x48e5e4=[{'phase':_0x3f7161['ZOEaL'],'commandArgs':[_0x3f7161[_0x493a02(0x16b)],_0x493a02(0x13f),_0x3f7161['QARMT'](buildCliArtifactPath,_0x596505,_0x493a02(0x193))]},{'phase':_0x3f7161['XUtPx'],'commandArgs':[_0x493a02(0x143),_0x3f7161[_0x493a02(0xd6)],_0x3f7161[_0x493a02(0xf0)](buildCliArtifactPath,_0x596505,_0x493a02(0x119))]},{'phase':_0x3f7161[_0x493a02(0xde)],'commandArgs':[_0x3f7161['Dmurf'],_0x3f7161[_0x493a02(0x172)],_0x493a02(0x146),'json',_0x3f7161['FOzhf'],buildCliArtifactPath(_0x596505,_0x3f7161['lEdhk'])]},{'phase':_0x493a02(0x179),'commandArgs':[_0x3f7161['Dmurf'],'export','--report',_0x3f7161[_0x493a02(0x195)],buildCliArtifactPath(_0x596505,'nova-report')]},{'phase':_0x493a02(0x168),'commandArgs':[_0x3f7161['Dmurf'],_0x493a02(0x1a4)]}];for(const _0x4f7a5e of _0x48e5e4){_0x3f7161[_0x493a02(0x131)](_0x4f7a5e['phase'],_0x493a02(0x168))&&await _0x5ba8ea?.[_0x493a02(0x14a)]();try{await _0x3f7161[_0x493a02(0xf7)](runNovaLifecycleCommand,{'novaOptions':_0x370d04,'commandArgs':[..._0x4f7a5e['commandArgs']],'telemetry':_0x2f2e41,'phase':_0x4f7a5e[_0x493a02(0x19e)],'metadata':_0x45b937});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x21d6ec){const _0x97ed8c=_0x25fb66,_0xe7ddd1={'CZsRN':function(_0x278b9a,_0x4a55c9){return _0x278b9a(_0x4a55c9);},'koKvN':function(_0x2e76da,_0x446ec1){return _0x2e76da<_0x446ec1;},'CEUTZ':function(_0x1dd4c8,_0x4746ff){return _0x1dd4c8+_0x4746ff;},'ezSIt':function(_0x416608,_0xfbd710,_0x21ec20){return _0x416608(_0xfbd710,_0x21ec20);},'KyzJh':function(_0x123d5b,_0xfee62a){return _0x123d5b===_0xfee62a;}},{cwd:_0x296ce4,cliArtifactDir:_0x5c7cda,startTime:_0x598961}=_0x21d6ec,_0x3219a9=[];await mkdir(_0x5c7cda,{'recursive':!![]});const _0x3df977=await readdir(_0x296ce4,{'withFileTypes':!![]});for(const _0x54cedf of _0x3df977){if(!_0x54cedf[_0x97ed8c(0x19c)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0x54cedf['name']))continue;const _0x52695e=join(_0x296ce4,_0x54cedf['name']),_0x1e43e9=await _0xe7ddd1[_0x97ed8c(0x1af)](stat,_0x52695e);if(_0xe7ddd1[_0x97ed8c(0xdf)](_0xe7ddd1['CEUTZ'](_0x1e43e9[_0x97ed8c(0xe0)],0x7d0),_0x598961))continue;const _0x17e42a=_0xe7ddd1[_0x97ed8c(0x12e)](buildCliArtifactPath,_0x5c7cda,_0x54cedf[_0x97ed8c(0x199)]);if(_0xe7ddd1['KyzJh'](_0x52695e,_0x17e42a))continue;await rename(_0x52695e,_0x17e42a),_0x3219a9['push'](_0x54cedf[_0x97ed8c(0x199)]);}return _0x3219a9['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x2aae70){const _0x175b04=_0x25fb66,_0x2cd4d6={'CFLQc':function(_0x217741,_0x3859f3,_0x87a0e0){return _0x217741(_0x3859f3,_0x87a0e0);},'mlyso':'trace.zip','RRFfk':function(_0x995435,_0x119e0a){return _0x995435(_0x119e0a);}},_0x3f5718=_0x2cd4d6[_0x175b04(0x113)](join,_0x2aae70,_0x2cd4d6['mlyso']);try{return{'buffer':await _0x2cd4d6[_0x175b04(0x196)](readFile,_0x3f5718),'source':_0x3f5718};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x2aae70),'source':_0x2aae70};}}async function zipVerifyFeatureNovaArtifacts(_0x2ecfbf){const _0x398ebe=_0x25fb66,_0x5ea751={'nfGvW':function(_0x350e17,_0x5daf5c,_0x3c0331,_0x5eacb4){return _0x350e17(_0x5daf5c,_0x3c0331,_0x5eacb4);},'JQDgW':'nova-artifacts.zip','nwzXp':_0x398ebe(0x11e)},_0x5380e4=_0x5ea751[_0x398ebe(0x16f)](join,_0x2ecfbf,'..',_0x5ea751[_0x398ebe(0xe4)]);try{return await execFileAsync(_0x398ebe(0x11b),[_0x5ea751['nwzXp'],_0x5380e4,'.','-x',_0x398ebe(0xfd)],{'cwd':_0x2ecfbf}),await readFile(_0x5380e4);}finally{await rm(_0x5380e4,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x5adff6){const _0x4fef5b=_0x25fb66,_0x4a9f93={'WHrcG':function(_0x28e2df,_0x20f1fa,_0xef4ed7){return _0x28e2df(_0x20f1fa,_0xef4ed7);},'CCNZV':function(_0x147800,_0x5cf363){return _0x147800(_0x5cf363);}},_0x331626=_0x4a9f93['WHrcG'](buildNovaActCliInvocation,_0x5adff6[_0x4fef5b(0x139)],_0x5adff6[_0x4fef5b(0x134)]);return{'command':_0x331626[_0x4fef5b(0x125)],'args':_0x331626[_0x4fef5b(0x1ac)],'commandPreview':_0x4a9f93['CCNZV'](previewNovaActCliCommand,_0x331626['shellCommand']),'subcommand':_0x331626[_0x4fef5b(0x1a7)],'sharedOptionsSuffix':_0x4a9f93[_0x4fef5b(0x111)](buildNovaActCliSharedOptionsSuffix,_0x5adff6[_0x4fef5b(0x139)],_0x5adff6[_0x4fef5b(0x134)])};}
1
+ const _0x1e4e5d=_0xe1ab;(function(_0xc3b1a3,_0x21085c){const _0x529051=_0xe1ab,_0x5244fc=_0xc3b1a3();while(!![]){try{const _0x250767=-parseInt(_0x529051(0x234))/0x1*(parseInt(_0x529051(0x1d8))/0x2)+parseInt(_0x529051(0x242))/0x3+parseInt(_0x529051(0x249))/0x4*(-parseInt(_0x529051(0x1e7))/0x5)+parseInt(_0x529051(0x1ea))/0x6*(-parseInt(_0x529051(0x1cc))/0x7)+-parseInt(_0x529051(0x224))/0x8*(parseInt(_0x529051(0x24b))/0x9)+-parseInt(_0x529051(0x216))/0xa+parseInt(_0x529051(0x203))/0xb;if(_0x250767===_0x21085c)break;else _0x5244fc['push'](_0x5244fc['shift']());}catch(_0x42658d){_0x5244fc['push'](_0x5244fc['shift']());}}}(_0x2e6d,0x9466c));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';import{homedir}from'os';function _0xe1ab(_0x5f2dbf,_0x408fda){_0x5f2dbf=_0x5f2dbf-0x1cb;const _0x2e6dff=_0x2e6d();let _0xe1abfa=_0x2e6dff[_0x5f2dbf];return _0xe1abfa;}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',_0x1e4e5d(0x20d),_0x1e4e5d(0x288),_0x1e4e5d(0x206),_0x1e4e5d(0x28e),'wait-for','snapshot',_0x1e4e5d(0x1fc)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x4a81c4,_0x55fb89){return join(_0x4a81c4,_0x55fb89);}function _0x2e6d(){const _0x53baf7=['command','capture\x20snapshot','nova_act_artifact_recording_stop','WRQrn','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','bVVbV','stopped','shellCommand','navigate\x20browser','Page.stopScreencast','utf-8','ZeEwN','oScon','590wFDfcb','key_final-state.png','canonicalFlow','552834LoxLdI','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.','yuv420p','AtIxT','nova-artifacts.zip','authorName','push','captureTraceSample','createdAt','QaOmB','nova-user-data/*','block','snapshot','cdp_endpoint','then','pop','WGFMw','export','screenshot','tool_name','rCzbX','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','koPCA','wait-for','session\x20create','49363072ukSqcb','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','ask','get','nova_act_final_snapshot','stop','stdout','FukhL','BSltC','execute','screencastStarted','\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`','startsWith','QotYe','xlBVY','frameCount','ILekS','>\x20\x22','7572110FfrzcH','KTEPy','nova_act_command_failure','authorEmail','session','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','catch','ULONJ','capture\x20snapshot\x20`','trackPhaseStart','browser','keys','oAvhD','session\x20export','56xNqVyB','traceSampleCount','PostToolUse','trace.zip','start','Otdoj','trackPhaseError','-pix_fmt','hook_event_name','DDWFO','send','verify\x20page\x20condition','02_final-state.yml','HSAZA','`\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.','novaOptions','240607cbrwaM','name','startScreencast','gDizm','`\x0a-\x20`','\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`','Reviewer','zip','01_initial-state.png','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','\x20screenshot\x20--output\x20','flatMap','ffmpeg','LmPQC','625548vjjQYm','padStart','nova_act_artifact_recording','invocation','args','params','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','35180obhcwj','context','1191087BMjGZp','finally','capture\x20screenshot','ms-playwright','CWDhQ','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','commandArgs','frameSession','01_initial.yml','GxRlE','queueTraceSample','EbOPM','telemetry','dtQgW','XoLeX','lXeXJ','mUZgL','-hide_banner','Page.startScreencast','nova_act_session_close','`\x0a2.\x20Run\x20`','ppkZv','libvpx-vp9','tool_input','bCuwA','map','--output','tracingStarted','startTraceSampling','-vf','Bash','DRbxg','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','):\x20\x22','nova_act_session_export','startAttempted','Caches','filter','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','getFrameDir','test','replace','BTQAT','ohHoH','.json','error','`\x0a6.\x20Run\x20`','traceSampleTimer','en-US','phase','tagName','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','transportMetadata','--report','traceSampleInFlight','stopScreencast','sYPvf','contexts','subcommand','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','zUIKB','verify','nova-report','sessionId','set','\x20snapshot\x20--output\x20','json','goto','encodeScreencastVideo','frameWrites','trim','scale=trunc(iw/2)*2:trunc(ih/2)*2','has','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','evaluate','UBKXF','readSessionMetadataWithRetry','\x20session\x20create\x20','ffmpeg-mac','APeff','cwd','newCDPSession','49rcaGWH','xBGrI','cfBVe','toLocaleDateString','**\x20(','-qr','--format','element','CulzS','xXWej','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','stopTraceSampling','6YgnwWB','NjRwT'];_0x2e6d=function(){return _0x53baf7;};return _0x2e6d();}export class NovaActArtifactRecorder{['params'];['browser']=null;[_0x1e4e5d(0x24a)]=null;[_0x1e4e5d(0x252)]=null;['frameWrites']=[];['frameCount']=0x0;[_0x1e4e5d(0x225)]=0x0;[_0x1e4e5d(0x27a)]=null;[_0x1e4e5d(0x281)]=null;['tracingStarted']=![];['screencastStarted']=![];['startAttempted']=![];[_0x1e4e5d(0x1e0)]=![];constructor(_0x2e6e65){this['params']=_0x2e6e65;}async[_0x1e4e5d(0x228)](){const _0x324d10=_0x1e4e5d;if(this[_0x324d10(0x26e)])return;this[_0x324d10(0x26e)]=!![];const _0x179f2e=await this[_0x324d10(0x297)](),_0x2749dc=_0x179f2e['cdp_endpoint'];if(!_0x2749dc)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this['params']['novaOptions']['sessionId']);await mkdir(this[_0x324d10(0x247)]['cliArtifactDir'],{'recursive':!![]}),this['browser']=await chromium['connectOverCDP'](_0x2749dc,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this['browser'][_0x324d10(0x284)]()[0x0]??null;if(!this[_0x324d10(0x24a)])throw new Error(_0x324d10(0x1de));await this[_0x324d10(0x24a)]['tracing'][_0x324d10(0x228)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x324d10(0x267)](),await this[_0x324d10(0x236)](),this[_0x324d10(0x247)][_0x324d10(0x257)]['trackPhaseStart']('nova_act_artifact_recording',{...this['params']['transportMetadata'],'cdpEndpoint':_0x2749dc,'browserPid':_0x179f2e['browser_pid'],'sessionState':_0x179f2e['state']}),this[_0x324d10(0x247)][_0x324d10(0x257)]['trackPhaseEnd'](_0x324d10(0x244),{...this[_0x324d10(0x247)][_0x324d10(0x27f)],'tracingStarted':this[_0x324d10(0x266)],'screencastStarted':this[_0x324d10(0x20e)]});}async[_0x1e4e5d(0x209)](){const _0x36a99c=_0x1e4e5d,_0x436bdf={'UBKXF':function(_0x1008e1,_0x30940e,_0x30dca7){return _0x1008e1(_0x30940e,_0x30dca7);},'ffryt':_0x36a99c(0x1dc)};if(this['stopped'])return;this['stopped']=!![];const _0xef767={...this['params']['transportMetadata'],'frameCount':this[_0x36a99c(0x213)],'traceSampleCount':this[_0x36a99c(0x225)],'tracingStarted':this[_0x36a99c(0x266)],'screencastStarted':this[_0x36a99c(0x20e)]};this[_0x36a99c(0x247)]['telemetry'][_0x36a99c(0x21f)]('nova_act_artifact_recording_stop',_0xef767);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this[_0x36a99c(0x282)](),await Promise['allSettled'](this[_0x36a99c(0x290)]);this[_0x36a99c(0x24a)]&&this[_0x36a99c(0x266)]&&await this['context']['tracing'][_0x36a99c(0x209)]({'path':_0x436bdf[_0x36a99c(0x296)](buildCliArtifactPath,this['params']['cliArtifactDir'],_0x36a99c(0x227))});const _0x32fb9e=await this[_0x36a99c(0x28f)]();this[_0x36a99c(0x247)][_0x36a99c(0x257)]['trackPhaseEnd'](_0x436bdf['ffryt'],{..._0xef767,'videoPath':_0x32fb9e});}catch(_0x2abaa9){await this['params']['telemetry']['trackPhaseError'](_0x36a99c(0x1dc),_0x2abaa9,_0xef767);}finally{await this[_0x36a99c(0x220)]?.['close']()['catch'](()=>undefined),this['browser']=null,this['context']=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0xd28d65=_0x1e4e5d,_0x20cceb={'xBGrI':function(_0x52549d,_0x43cdeb){return _0x52549d-_0x43cdeb;},'xDStG':function(_0x287c2c,_0x20af52){return _0x287c2c instanceof _0x20af52;}},_0x4c5647=join(homedir(),'.act_cli','browser','sessions',this[_0xd28d65(0x247)]['novaOptions'][_0xd28d65(0x28a)]+_0xd28d65(0x277)),_0x502a14=Date['now']();let _0x88b7b9;do{try{const _0x5a2d34=JSON['parse'](await readFile(_0x4c5647,_0xd28d65(0x1e4)));if(_0x5a2d34[_0xd28d65(0x1f7)])return _0x5a2d34;_0x88b7b9=new Error(_0xd28d65(0x1ff)+_0x4c5647);}catch(_0x496e00){_0x88b7b9=_0x496e00;}await delay(0x64);}while(_0x20cceb[_0xd28d65(0x1cd)](Date['now'](),_0x502a14)<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x20cceb['xDStG'](_0x88b7b9,Error))throw _0x88b7b9;throw new Error(_0xd28d65(0x286)+_0x4c5647);}async[_0x1e4e5d(0x236)](){const _0x2591a3=_0x1e4e5d,_0x7b1dd7={'NDWfZ':function(_0x249f8a,_0x6fc60a){return _0x249f8a(_0x6fc60a);},'uxoMo':function(_0xeb448a,_0x7099b5,_0x1847b5){return _0xeb448a(_0x7099b5,_0x1847b5);},'JaWGL':'base64','ujvdZ':function(_0x4a8885,_0x1c320b,_0x49b211){return _0x4a8885(_0x1c320b,_0x49b211);},'oaHEk':'Page.screencastFrame'};if(!this['context'])return;const _0x291ece=this['context']['pages']()[0x0];if(!_0x291ece)return;const _0x45e5fd=this[_0x2591a3(0x272)]();await _0x7b1dd7['ujvdZ'](mkdir,_0x45e5fd,{'recursive':!![]});const _0x1bf3ab=await this[_0x2591a3(0x24a)][_0x2591a3(0x1cb)](_0x291ece);this[_0x2591a3(0x252)]=_0x1bf3ab,_0x1bf3ab['on'](_0x7b1dd7['oaHEk'],_0x5257d4=>{const _0x1c104b=_0x2591a3,_0x4c269e=++this[_0x1c104b(0x213)],_0x4d4dff=join(_0x45e5fd,'frame-'+_0x7b1dd7['NDWfZ'](String,_0x4c269e)[_0x1c104b(0x243)](0x6,'0')+'.jpg'),_0x1a7b25=_0x7b1dd7['uxoMo'](writeFile,_0x4d4dff,Buffer['from'](_0x5257d4['data'],_0x7b1dd7['JaWGL']))['catch'](()=>undefined)['finally'](()=>_0x1bf3ab[_0x1c104b(0x22e)]('Page.screencastFrameAck',{'sessionId':_0x5257d4['sessionId']}))[_0x1c104b(0x1f8)](()=>undefined)[_0x1c104b(0x21c)](()=>undefined);this['frameWrites']['push'](_0x1a7b25);}),await _0x1bf3ab[_0x2591a3(0x22e)](_0x2591a3(0x25d),{'format':'jpeg','quality':0x4b,'everyNthFrame':0x6}),this[_0x2591a3(0x20e)]=!![];}async[_0x1e4e5d(0x282)](){const _0x189729=_0x1e4e5d,_0x1e7a70={'QXLVW':_0x189729(0x1e3)};if(!this[_0x189729(0x252)]||!this[_0x189729(0x20e)])return;await this['frameSession']['send'](_0x1e7a70['QXLVW'])['catch'](()=>undefined);}['startTraceSampling'](){const _0x5ed430=_0x1e4e5d;this['queueTraceSample'](),this[_0x5ed430(0x27a)]=setInterval(()=>this[_0x5ed430(0x255)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x1e4e5d(0x255)](){const _0x1a6710=_0x1e4e5d;if(this['traceSampleInFlight'])return;this[_0x1a6710(0x281)]=this[_0x1a6710(0x1f1)]()[_0x1a6710(0x24c)](()=>{this['traceSampleInFlight']=null;});}async[_0x1e4e5d(0x1d7)](){const _0x2cca37=_0x1e4e5d;this['traceSampleTimer']&&(clearInterval(this['traceSampleTimer']),this['traceSampleTimer']=null),await this[_0x2cca37(0x281)]?.['catch'](()=>undefined);}async[_0x1e4e5d(0x1f1)](){const _0x1d93d6=_0x1e4e5d,_0x1982ff=this[_0x1d93d6(0x24a)]?.['pages']()[0x0];if(!_0x1982ff)return;try{await _0x1982ff['locator']('body')[_0x1d93d6(0x295)](_0x34c1c8=>_0x34c1c8[_0x1d93d6(0x27d)],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async['encodeScreencastVideo'](){const _0x310cb0=_0x1e4e5d,_0x1a29e9={'DRbxg':function(_0x1434b4,_0x1020a4){return _0x1434b4<_0x1020a4;},'jdDwV':function(_0x401ae3){return _0x401ae3();},'FgfQS':function(_0x2f53db,_0x315064,_0x167e42){return _0x2f53db(_0x315064,_0x167e42);},'BTQAT':'videos','ohHoH':function(_0x953ef9,_0x3e11ca,_0x4cce18){return _0x953ef9(_0x3e11ca,_0x4cce18);},'KTEPy':_0x310cb0(0x25c),'TYrEo':'-loglevel','NbJml':_0x310cb0(0x278),'nZuhY':'-framerate','vHldE':function(_0x43ccef,_0x494009,_0x2e9607){return _0x43ccef(_0x494009,_0x2e9607);},'gDZGw':'frame-%06d.jpg','BSltC':_0x310cb0(0x268),'PzriO':'-c:v','LmPQC':_0x310cb0(0x261)};if(_0x1a29e9[_0x310cb0(0x26a)](this['frameCount'],0x2))return null;const _0x1dcbfb=await _0x1a29e9['jdDwV'](resolveFfmpegPath);if(!_0x1dcbfb)return null;const _0x28c336=_0x1a29e9['FgfQS'](join,this[_0x310cb0(0x247)]['cliArtifactDir'],_0x1a29e9[_0x310cb0(0x275)]);await _0x1a29e9['ohHoH'](mkdir,_0x28c336,{'recursive':!![]});const _0x2854ed=join(_0x28c336,'session-recording.webm');return await _0x1a29e9[_0x310cb0(0x276)](execFileAsync,_0x1dcbfb,['-y',_0x1a29e9[_0x310cb0(0x217)],_0x1a29e9['TYrEo'],_0x1a29e9['NbJml'],_0x1a29e9['nZuhY'],'10','-i',_0x1a29e9['vHldE'](join,this['getFrameDir'](),_0x1a29e9['gDZGw']),_0x1a29e9[_0x310cb0(0x20c)],_0x310cb0(0x292),_0x1a29e9['PzriO'],_0x1a29e9[_0x310cb0(0x241)],_0x310cb0(0x22b),_0x310cb0(0x1ec),_0x2854ed]),_0x2854ed;}['getFrameDir'](){const _0x241e6a=_0x1e4e5d,_0x16f624={'CuiHR':function(_0x12b621,_0x3c12a5,_0x2d5fcd){return _0x12b621(_0x3c12a5,_0x2d5fcd);}};return _0x16f624['CuiHR'](join,this[_0x241e6a(0x247)]['cliArtifactDir'],'nova-video-frames');}}async function delay(_0x1e3551){await new Promise(_0x5725ed=>setTimeout(_0x5725ed,_0x1e3551));}async function resolveFfmpegPath(){const _0xf558f4=_0x1e4e5d,_0x29c68f={'NjRwT':_0xf558f4(0x240),'ULONJ':function(_0xf35d31,_0x4111b9,_0x3cb4a8,_0x518598,_0x2e6814){return _0xf35d31(_0x4111b9,_0x3cb4a8,_0x518598,_0x2e6814);},'WRQrn':'Library','FukhL':_0xf558f4(0x24e),'ZeEwN':function(_0x280e9d,_0x22452b,_0x39713c,_0x42900){return _0x280e9d(_0x22452b,_0x39713c,_0x42900);},'OtfOt':'.cache','KrTGM':function(_0x361962,_0x265568){return _0x361962(_0x265568);}};if(await canRunFfmpeg(_0x29c68f[_0xf558f4(0x1d9)]))return _0x29c68f['NjRwT'];const _0x24289d=[_0x29c68f[_0xf558f4(0x21d)](join,homedir(),_0x29c68f[_0xf558f4(0x1dd)],_0xf558f4(0x26f),_0x29c68f[_0xf558f4(0x20b)]),_0x29c68f[_0xf558f4(0x1e5)](join,homedir(),_0x29c68f['OtfOt'],_0xf558f4(0x24e))];for(const _0x4b708a of _0x24289d){try{const _0x40c8d1=await _0x29c68f['KrTGM'](readdir,_0x4b708a),_0x1d4a5b=_0x40c8d1[_0xf558f4(0x270)](_0x1826f3=>_0x1826f3[_0xf558f4(0x210)]('ffmpeg-'))['sort']()['reverse']()[_0xf558f4(0x23f)](_0x866ea6=>[join(_0x4b708a,_0x866ea6,_0xf558f4(0x299)),join(_0x4b708a,_0x866ea6,'ffmpeg-linux'),join(_0x4b708a,_0x866ea6,'ffmpeg.exe')]);for(const _0x551a82 of _0x1d4a5b){if(await canRunFfmpeg(_0x551a82))return _0x551a82;}}catch{}}return null;}async function canRunFfmpeg(_0x59a9ff){const _0x3cd693={'RcPtJ':function(_0x1c969,_0x1d5979,_0x4ffd84){return _0x1c969(_0x1d5979,_0x4ffd84);}};try{return await _0x3cd693['RcPtJ'](execFileAsync,_0x59a9ff,['-version']),!![];}catch{return![];}}function toStepDisplayName(_0x332bd6){const _0xed59e7=_0x1e4e5d,_0x19a4bb=basename(_0x332bd6)['replace'](/\.(?:png|ya?ml)$/i,'')[_0xed59e7(0x274)](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x19a4bb,'isKeyStep':/^key_/i[_0xed59e7(0x273)](basename(_0x332bd6))};}function extractShellValue(_0x3c869b){if(!_0x3c869b)return null;return _0x3c869b[0x1]??_0x3c869b[0x2]??_0x3c869b[0x3]??null;}function extractOutputOption(_0x15a3b3){return extractShellValue(_0x15a3b3['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x4a9f9d,_0x5a8217){const _0x869bd=_0x1e4e5d,_0x44ae5b={'BJjda':'create\x20Nova\x20browser\x20session','MjnkW':'execute','FwMEB':_0x869bd(0x22f),'QaOmB':_0x869bd(0x28e),'xlBVY':_0x869bd(0x1e2),'bVVbV':'wait\x20for\x20page\x20condition','uYSUZ':function(_0x180b66,_0x5c2411){return _0x180b66(_0x5c2411);},'emhnO':_0x869bd(0x1db),'CWDhQ':'screenshot','YVjak':function(_0x118218,_0x463f2b){return _0x118218(_0x463f2b);},'Wrusr':'export\x20Nova\x20session'};switch(_0x5a8217){case _0x869bd(0x202):return _0x44ae5b['BJjda'];case _0x44ae5b['MjnkW']:return'execute\x20Nova\x20browser\x20action';case _0x869bd(0x288):return _0x44ae5b['FwMEB'];case'ask':return'ask\x20page\x20question';case _0x44ae5b[_0x869bd(0x1f3)]:return _0x44ae5b[_0x869bd(0x212)];case _0x869bd(0x201):return _0x44ae5b[_0x869bd(0x1df)];case'snapshot':{const _0x49fa82=_0x44ae5b['uYSUZ'](extractOutputOption,_0x4a9f9d);if(!_0x49fa82)return _0x44ae5b['emhnO'];const {name:_0x234232}=toStepDisplayName(_0x49fa82);return _0x869bd(0x21e)+_0x234232+'`';}case _0x44ae5b[_0x869bd(0x24f)]:{const _0x441894=extractOutputOption(_0x4a9f9d);if(!_0x441894)return _0x869bd(0x24d);const {name:_0xea1896,isKeyStep:_0x202745}=_0x44ae5b['YVjak'](toStepDisplayName,_0x441894);return _0x202745?'capture\x20key\x20step\x20`'+_0xea1896+'`':'capture\x20step\x20`'+_0xea1896+'`';}case _0x869bd(0x223):return _0x44ae5b['Wrusr'];default:return _0x5a8217;}}function getNovaActCliCommandBlockReason(_0x99f299){const _0x1a8d0f=_0x1e4e5d,_0x4b7782={'gDizm':function(_0x5ccffe,_0x4de92d){return _0x5ccffe===_0x4de92d;},'JmEkY':'verify'},_0x3ef28e=parseNovaActCliCommand(_0x99f299);if(!_0x3ef28e)return _0x1a8d0f(0x1d6);if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x1a8d0f(0x293)](_0x3ef28e))return'Nova\x20command\x20`'+_0x3ef28e+_0x1a8d0f(0x26b);if(_0x4b7782[_0x1a8d0f(0x237)](_0x3ef28e,_0x4b7782['JmEkY'])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x99f299))return _0x1a8d0f(0x1eb);if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x99f299))return'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.';return null;}function buildFeedbackSection(_0x3735ec){const _0x56456a=_0x1e4e5d,_0x4b6d2a={'ZBpOM':_0x56456a(0x27b),'gKduA':'numeric','pjLjJ':function(_0x588b44,_0x278645){return _0x588b44===_0x278645;}};if(!_0x3735ec||_0x4b6d2a['pjLjJ'](_0x3735ec['unaddressedComments']['length'],0x0))return'';const _0x4171e3=_0x3735ec['unaddressedComments'][_0x56456a(0x264)](_0x2ca558=>{const _0x5e638c=_0x56456a,_0x3a0b5c=new Date(_0x2ca558[_0x5e638c(0x1f2)])[_0x5e638c(0x1cf)](_0x4b6d2a['ZBpOM'],{'month':'short','day':_0x4b6d2a['gKduA']}),_0x15fe2e=_0x2ca558[_0x5e638c(0x1ef)]||_0x2ca558[_0x5e638c(0x219)]||_0x5e638c(0x23a),_0x785143=_0x2ca558['domRef']?'\x20(on\x20element:\x20<'+(_0x2ca558['domRef']['selector']['split']('\x20>\x20')[_0x5e638c(0x1f9)]()?.['split'](':')[0x0]||_0x5e638c(0x1d3))+_0x5e638c(0x215)+(_0x2ca558['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x2ca558['id']+']\x20**'+_0x15fe2e+_0x5e638c(0x1d0)+_0x3a0b5c+_0x5e638c(0x26c)+_0x2ca558['content']+'\x22'+_0x785143;})['join']('\x0a');return'\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x4171e3;}function buildNovaSharedOptionsInstruction(_0x1f174d){const _0x3b5bfd=_0x1e4e5d;if(!_0x1f174d[_0x3b5bfd(0x291)]())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 _0x3b5bfd(0x248)+_0x1f174d;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x4a1c86){const _0x8cc4e4=_0x1e4e5d,_0x13d3d1={'AtIxT':function(_0x4616dd,_0x4238db,_0x59254d){return _0x4616dd(_0x4238db,_0x59254d);},'koPCA':_0x8cc4e4(0x23c),'huAXf':'03_final-state.png','bCuwA':function(_0x2b4743,_0x24355c){return _0x2b4743(_0x24355c);},'GxRlE':function(_0x59a02d,_0x4dba55){return _0x59a02d(_0x4dba55);}},{novaCommandPrefix:_0x46e8f7,novaSharedOptionsSuffix:_0x51c974,cliArtifactDir:_0x28b275,url:_0x4c7990}=_0x4a1c86,_0x8b8017=_0x13d3d1[_0x8cc4e4(0x1ed)](buildCliArtifactPath,_0x28b275,'00_initial-state.yml'),_0x4fb043=buildCliArtifactPath(_0x28b275,_0x13d3d1[_0x8cc4e4(0x200)]),_0x29437d=_0x13d3d1[_0x8cc4e4(0x1ed)](buildCliArtifactPath,_0x28b275,_0x8cc4e4(0x230)),_0x4fb580=buildCliArtifactPath(_0x28b275,_0x13d3d1['huAXf']);return _0x8cc4e4(0x27e)+_0x46e8f7+'\x0a\x0a'+_0x13d3d1['bCuwA'](buildNovaSharedOptionsInstruction,_0x51c974)+_0x8cc4e4(0x239)+_0x46e8f7+_0x8cc4e4(0x298)+quoteShellArg(_0x4c7990)+'\x20'+_0x51c974+_0x8cc4e4(0x25f)+_0x46e8f7+'\x20snapshot\x20--output\x20'+_0x13d3d1[_0x8cc4e4(0x263)](quoteShellArg,_0x8b8017)+'\x20'+_0x51c974+'`\x0a3.\x20Run\x20`'+_0x46e8f7+_0x8cc4e4(0x23e)+_0x13d3d1[_0x8cc4e4(0x254)](quoteShellArg,_0x4fb043)+'\x20'+_0x51c974+'`\x0a4.\x20Run\x20one\x20batched\x20`'+_0x46e8f7+_0x8cc4e4(0x23d)+_0x46e8f7+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x29437d)+'\x20'+_0x51c974+_0x8cc4e4(0x279)+_0x46e8f7+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x4fb580)+'\x20'+_0x51c974+'`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`'+_0x28b275+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x54390e){const _0x156e8c=_0x1e4e5d,_0x4088d5={'hZQmo':function(_0x31bab4,_0x31bfaf){return _0x31bab4(_0x31bfaf);},'ILekS':function(_0x4e75b0,_0x4ca504,_0x830da5){return _0x4e75b0(_0x4ca504,_0x830da5);},'ppkZv':_0x156e8c(0x23c),'wwrEU':'key_03_success-state.png','FoHmB':function(_0x38dfcb,_0xc981fb){return _0x38dfcb(_0xc981fb);}},{checklistItem:_0x5856c9,itemFeedback:_0x4791a9,taskDescription:_0x23fac3,novaCommandPrefix:_0x5480f7,novaSharedOptionsSuffix:_0x53087d,cliArtifactDir:_0x4600bd,url:_0x5bee48,loginInstructions:_0x391536}=_0x54390e,_0x57bb85=_0x5856c9['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x5856c9['notes']:'',_0x307fa9=_0x4088d5['hZQmo'](buildFeedbackSection,_0x4791a9),_0x14be1=_0x4791a9?.[_0x156e8c(0x1e9)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x4791a9['canonicalFlow']:'',_0x1926a7=_0x391536?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x391536+_0x156e8c(0x204):'',_0x494a80=_0x4088d5[_0x156e8c(0x214)](buildCliArtifactPath,_0x4600bd,_0x156e8c(0x253)),_0x3fba18=_0x4088d5['ILekS'](buildCliArtifactPath,_0x4600bd,_0x4088d5[_0x156e8c(0x260)]),_0x3a4090=_0x4088d5[_0x156e8c(0x214)](buildCliArtifactPath,_0x4600bd,_0x4088d5['wwrEU']);return _0x156e8c(0x21b)+_0x5856c9['description']+_0x57bb85+_0x307fa9+_0x14be1+_0x156e8c(0x250)+_0x23fac3+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x5bee48+'\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'+_0x1926a7+_0x156e8c(0x20f)+_0x5480f7+'\x20session\x20create\x20'+_0x4088d5['hZQmo'](quoteShellArg,_0x5bee48)+'\x20'+_0x53087d+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4600bd+_0x156e8c(0x294)+_0x5480f7+'\x20snapshot\x20--output\x20'+_0x4088d5['FoHmB'](quoteShellArg,_0x494a80)+'\x20'+_0x53087d+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x5480f7+_0x156e8c(0x23e)+quoteShellArg(_0x3fba18)+'\x20'+_0x53087d+'`.\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`'+_0x3a4090+'`.\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`'+_0x5480f7+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x53087d[_0x156e8c(0x291)]()?'`'+_0x53087d+'`':_0x156e8c(0x205))+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x53087d)+'\x0a\x0aExamples:\x0a-\x20`'+_0x5480f7+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x53087d+'`\x0a-\x20`'+_0x5480f7+_0x156e8c(0x271)+_0x53087d+_0x156e8c(0x238)+_0x5480f7+_0x156e8c(0x28c)+quoteShellArg(_0x494a80)+'\x20'+_0x53087d+_0x156e8c(0x238)+_0x5480f7+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x3a4090)+'\x20'+_0x53087d+_0x156e8c(0x232);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x5c70b6){const _0x3c3c85=_0x1e4e5d,_0x192670=[..._0x5c70b6[_0x3c3c85(0x221)]()]['sort']();let _0x338132=0x0;for(const _0xf56fb0 of _0x5c70b6['values']()){_0x338132+=_0xf56fb0;}return{'cliCommandCount':_0x338132,'cliCommandsSeen':_0x192670,'noCliCommandsCalled':_0x338132===0x0};}export function createVerifyFeatureNovaCliHooks(_0x3a63de,_0x7f5313){const _0xc91509=_0x1e4e5d,_0x3a9f27={'gGMJy':function(_0x42583b,_0x1b6e5d){return _0x42583b!==_0x1b6e5d;},'FpwUP':function(_0x12a0f7,_0x56d47d){return _0x12a0f7!==_0x56d47d;},'CulzS':'Bash','QotYe':function(_0x8a5bb3,_0x387f68){return _0x8a5bb3(_0x387f68);},'WGFMw':_0xc91509(0x226),'UBRgU':function(_0x3b1e2c,_0x8d4493){return _0x3b1e2c!==_0x8d4493;},'oScon':function(_0x4078ee,_0x4c91cb){return _0x4078ee(_0x4c91cb);},'oAvhD':function(_0x331dce,_0x361cd8){return _0x331dce===_0x361cd8;},'GkNsX':'session\x20create','rCzbX':'nova_act_artifact_recording','Otdoj':'PostToolUseFailure','XoLeX':_0xc91509(0x218),'wzoFX':'nova-act-cli'},_0x541434=new Map(),_0x5cfc4a=async _0x48d964=>{const _0x36302b=_0xc91509;if(_0x3a9f27['gGMJy'](_0x48d964['hook_event_name'],'PreToolUse'))return{};const _0x3d3e6b=_0x48d964;if(_0x3a9f27['FpwUP'](_0x3d3e6b[_0x36302b(0x1fd)],_0x3a9f27['CulzS']))return{};const _0x2d077e=_0x3d3e6b['tool_input'],_0x495c2d=_0x3a9f27[_0x36302b(0x211)](extractBashCommand,_0x2d077e);if(!_0x495c2d)return{};const _0x144c92=getNovaActCliCommandBlockReason(_0x495c2d);if(!_0x144c92)return{};return{'decision':_0x36302b(0x1f5),'reason':_0x144c92};},_0x545eb8=async _0x50edd8=>{const _0x490890=_0xc91509;if(_0x50edd8[_0x490890(0x22c)]!==_0x3a9f27[_0x490890(0x1fa)])return{};const _0x389776=_0x50edd8;if(_0x3a9f27['UBRgU'](_0x389776[_0x490890(0x1fd)],_0x3a9f27[_0x490890(0x1d4)]))return{};const _0x53285b=_0x389776[_0x490890(0x262)],_0x18f591=extractBashCommand(_0x53285b);if(!_0x18f591)return{};const _0x2a9910=parseNovaActCliCommand(_0x18f591);if(!_0x2a9910)return{};_0x541434[_0x490890(0x28b)](_0x2a9910,(_0x541434[_0x490890(0x207)](_0x2a9910)||0x0)+0x1),_0x3a63de['trackPhaseStart']('nova_act_command',{'subcommand':_0x2a9910}),_0x3a63de['trackPhaseEnd']('nova_act_command',{'subcommand':_0x2a9910,'commandPreview':_0x3a9f27[_0x490890(0x1e6)](previewNovaActCliCommand,_0x18f591)}),console['log']('[nova-act-cli]\x20'+formatNovaActCliLog(_0x18f591,_0x2a9910));if(_0x3a9f27[_0x490890(0x222)](_0x2a9910,_0x3a9f27['GkNsX'])&&_0x7f5313)try{await _0x7f5313[_0x490890(0x228)]();}catch(_0x3ad0f1){await _0x3a63de['trackPhaseError'](_0x3a9f27[_0x490890(0x1fe)],_0x3ad0f1,{'transport':'nova-act-cli'});}return{};},_0x3289d5=async _0x3d157b=>{const _0x43eb2f=_0xc91509;if(_0x3a9f27['UBRgU'](_0x3d157b['hook_event_name'],_0x3a9f27[_0x43eb2f(0x229)]))return{};const _0x294c7f=_0x3d157b;if(_0x294c7f['tool_name']!==_0x43eb2f(0x269))return{};return await _0x3a63de['trackPhaseError'](_0x3a9f27[_0x43eb2f(0x259)],_0x294c7f['error'],{'transport':_0x3a9f27['wzoFX'],'toolName':'Bash'}),{};};return{'preToolUseHook':_0x5cfc4a,'postToolUseHook':_0x545eb8,'postToolUseFailureHook':_0x3289d5,'commandCounts':_0x541434};}async function runNovaLifecycleCommand(_0x61c5eb){const _0x20e4c0=_0x1e4e5d,_0x1cd693={'EbOPM':function(_0x5d3305,_0x34b9ee){return _0x5d3305(_0x34b9ee);}},{novaOptions:_0x10f29f,commandArgs:_0x19affe,telemetry:_0x4bc8c5,phase:_0x266750,metadata:_0x11eb5b,timeoutMs:_0x563d31}=_0x61c5eb;_0x4bc8c5[_0x20e4c0(0x21f)](_0x266750,_0x11eb5b);try{const _0x2496d1=await runNovaActCliCommand({..._0x10f29f,'commandArgs':_0x19affe,'cwd':process[_0x20e4c0(0x29b)](),'env':process['env'],'timeoutMs':_0x563d31??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x4bc8c5['trackPhaseEnd'](_0x266750,{..._0x11eb5b,'subcommand':_0x2496d1[_0x20e4c0(0x245)][_0x20e4c0(0x285)],'commandPreview':previewNovaActCliCommand(_0x2496d1[_0x20e4c0(0x245)][_0x20e4c0(0x1e1)]),'stdoutPreview':_0x1cd693[_0x20e4c0(0x256)](previewNovaActCliCommand,_0x2496d1['stdout']),'stderrPreview':previewNovaActCliCommand(_0x2496d1['stderr']),'logDir':_0x1cd693[_0x20e4c0(0x256)](extractNovaActLogDir,_0x2496d1[_0x20e4c0(0x20a)])});}catch(_0x506df7){await _0x4bc8c5[_0x20e4c0(0x22a)](_0x266750,_0x506df7,_0x11eb5b);throw _0x506df7;}}export async function finalizeVerifyFeatureNovaCliSession(_0x3d325d){const _0x5dcd7d=_0x1e4e5d,_0x4d713c={'nGduZ':_0x5dcd7d(0x1fc),'XcvEb':_0x5dcd7d(0x1e8),'HSAZA':_0x5dcd7d(0x208),'saLzJ':'--output','eLsqn':'final-state.yaml','OPpEP':_0x5dcd7d(0x26d),'lcktY':'session','DDWFO':_0x5dcd7d(0x1fb),'APeff':_0x5dcd7d(0x280),'CUgLW':function(_0x54c79d,_0xef9170,_0x51abfb){return _0x54c79d(_0xef9170,_0x51abfb);},'sYPvf':_0x5dcd7d(0x289),'TvfHI':'close'},{telemetry:_0xada6b5,novaOptions:_0x25b298,cliArtifactDir:_0x2071c3,transportMetadata:_0x3c4198,artifactRecorder:_0x19bc74}=_0x3d325d,_0x51410c=[{'phase':'nova_act_final_screenshot','commandArgs':[_0x4d713c['nGduZ'],'--output',buildCliArtifactPath(_0x2071c3,_0x4d713c['XcvEb'])]},{'phase':_0x4d713c[_0x5dcd7d(0x231)],'commandArgs':[_0x5dcd7d(0x1f6),_0x4d713c['saLzJ'],buildCliArtifactPath(_0x2071c3,_0x4d713c['eLsqn'])]},{'phase':_0x4d713c['OPpEP'],'commandArgs':[_0x4d713c['lcktY'],_0x5dcd7d(0x1fb),_0x5dcd7d(0x1d2),_0x5dcd7d(0x28d),_0x5dcd7d(0x265),buildCliArtifactPath(_0x2071c3,'nova-session-export.json')]},{'phase':'nova_act_session_report','commandArgs':[_0x4d713c['lcktY'],_0x4d713c[_0x5dcd7d(0x22d)],_0x4d713c[_0x5dcd7d(0x29a)],'--output-dir',_0x4d713c['CUgLW'](buildCliArtifactPath,_0x2071c3,_0x4d713c[_0x5dcd7d(0x283)])]},{'phase':'nova_act_session_close','commandArgs':[_0x5dcd7d(0x21a),_0x4d713c['TvfHI']]}];for(const _0x58e9b8 of _0x51410c){_0x58e9b8[_0x5dcd7d(0x27c)]===_0x5dcd7d(0x25e)&&await _0x19bc74?.['stop']();try{await runNovaLifecycleCommand({'novaOptions':_0x25b298,'commandArgs':[..._0x58e9b8[_0x5dcd7d(0x251)]],'telemetry':_0xada6b5,'phase':_0x58e9b8[_0x5dcd7d(0x27c)],'metadata':_0x3c4198});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x4a9de3){const _0x25489e=_0x1e4e5d,_0x293fcb={'FyYTf':function(_0x1bbdff,_0x2b39f6,_0x509bb4){return _0x1bbdff(_0x2b39f6,_0x509bb4);},'zUIKB':function(_0x138ffd,_0xa38043){return _0x138ffd(_0xa38043);},'dtQgW':function(_0x111f08,_0x22ce76){return _0x111f08===_0x22ce76;},'xXWej':function(_0x2d3cd3,_0x30b93c,_0x413b79){return _0x2d3cd3(_0x30b93c,_0x413b79);}},{cwd:_0x2a4e05,cliArtifactDir:_0x4d4a02,startTime:_0x10ef28}=_0x4a9de3,_0x2f9597=[];await mkdir(_0x4d4a02,{'recursive':!![]});const _0x527052=await _0x293fcb['FyYTf'](readdir,_0x2a4e05,{'withFileTypes':!![]});for(const _0x3ef246 of _0x527052){if(!_0x3ef246['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x25489e(0x273)](_0x3ef246[_0x25489e(0x235)]))continue;const _0x1f7edb=join(_0x2a4e05,_0x3ef246['name']),_0x4636a4=await _0x293fcb[_0x25489e(0x287)](stat,_0x1f7edb);if(_0x4636a4['mtimeMs']+0x7d0<_0x10ef28)continue;const _0x56ee64=_0x293fcb['FyYTf'](buildCliArtifactPath,_0x4d4a02,_0x3ef246['name']);if(_0x293fcb[_0x25489e(0x258)](_0x1f7edb,_0x56ee64))continue;await _0x293fcb[_0x25489e(0x1d5)](rename,_0x1f7edb,_0x56ee64),_0x2f9597[_0x25489e(0x1f0)](_0x3ef246['name']);}return _0x2f9597['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x234cf4){const _0x53674a=_0x1e4e5d,_0x1bd56e={'ANRfq':_0x53674a(0x227),'JJmzp':function(_0x331ecb,_0xfdab02){return _0x331ecb(_0xfdab02);},'mUZgL':function(_0x30829a,_0x3f6a4a){return _0x30829a(_0x3f6a4a);}},_0x4a736e=join(_0x234cf4,_0x1bd56e['ANRfq']);try{return{'buffer':await _0x1bd56e['JJmzp'](readFile,_0x4a736e),'source':_0x4a736e};}catch{return{'buffer':await _0x1bd56e[_0x53674a(0x25b)](zipVerifyFeatureNovaArtifacts,_0x234cf4),'source':_0x234cf4};}}async function zipVerifyFeatureNovaArtifacts(_0x1846a1){const _0x432adc=_0x1e4e5d,_0xb38307={'lXeXJ':_0x432adc(0x1f4),'cfBVe':function(_0x1b1ef3,_0x6b406f){return _0x1b1ef3(_0x6b406f);}},_0x2a3976=join(_0x1846a1,'..',_0x432adc(0x1ee));try{return await execFileAsync(_0x432adc(0x23b),[_0x432adc(0x1d1),_0x2a3976,'.','-x',_0xb38307[_0x432adc(0x25a)]],{'cwd':_0x1846a1}),await _0xb38307[_0x432adc(0x1ce)](readFile,_0x2a3976);}finally{await rm(_0x2a3976,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x365520){const _0x66a2fd=_0x1e4e5d,_0xc83da={'HZDFB':function(_0x55b848,_0x576e69,_0x4cad7f){return _0x55b848(_0x576e69,_0x4cad7f);},'wLckW':function(_0x62240d,_0x30c3bd){return _0x62240d(_0x30c3bd);}},_0x3ba1f1=_0xc83da['HZDFB'](buildNovaActCliInvocation,_0x365520[_0x66a2fd(0x233)],_0x365520['commandArgs']);return{'command':_0x3ba1f1[_0x66a2fd(0x1da)],'args':_0x3ba1f1[_0x66a2fd(0x246)],'commandPreview':_0xc83da['wLckW'](previewNovaActCliCommand,_0x3ba1f1['shellCommand']),'subcommand':_0x3ba1f1[_0x66a2fd(0x285)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x365520['novaOptions'],_0x365520['commandArgs'])};}
@@ -1 +1 @@
1
- (function(_0x1baa53,_0x1dee75){const _0x3fd5d=_0x3c53,_0x35053b=_0x1baa53();while(!![]){try{const _0x58a581=parseInt(_0x3fd5d(0x1eb))/0x1*(-parseInt(_0x3fd5d(0x20a))/0x2)+-parseInt(_0x3fd5d(0x1db))/0x3*(parseInt(_0x3fd5d(0x211))/0x4)+-parseInt(_0x3fd5d(0x1b9))/0x5+parseInt(_0x3fd5d(0x202))/0x6*(-parseInt(_0x3fd5d(0x1fd))/0x7)+-parseInt(_0x3fd5d(0x200))/0x8*(parseInt(_0x3fd5d(0x212))/0x9)+-parseInt(_0x3fd5d(0x20f))/0xa*(parseInt(_0x3fd5d(0x1ff))/0xb)+-parseInt(_0x3fd5d(0x1bd))/0xc*(-parseInt(_0x3fd5d(0x203))/0xd);if(_0x58a581===_0x1dee75)break;else _0x35053b['push'](_0x35053b['shift']());}catch(_0x4a0495){_0x35053b['push'](_0x35053b['shift']());}}}(_0x23ed,0xeb768));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(_0x411ce6,_0x5ddc60=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x4938de=_0x3c53,_0x493654={'seVxm':function(_0x438972,_0x55e7c3){return _0x438972>_0x55e7c3;},'SGUWg':'...'};return _0x493654['seVxm'](_0x411ce6[_0x4938de(0x1f3)],_0x5ddc60)?_0x411ce6['slice'](0x0,_0x5ddc60)+_0x493654[_0x4938de(0x1e8)]:_0x411ce6;}function extractShellValue(_0x423cbc){if(!_0x423cbc)return null;return _0x423cbc[0x1]??_0x423cbc[0x2]??_0x423cbc[0x3]??null;}function extractFirstCommandArgument(_0x185971,_0x1e3e5c){const _0x53fd32=_0x3c53,_0x57ae15={'VWSpY':_0x53fd32(0x20c),'sDril':function(_0xfc00bb,_0x56e6e6){return _0xfc00bb(_0x56e6e6);}},_0x556b9a=_0x1e3e5c[_0x53fd32(0x213)](/[.*+?^${}()|[\]\\]/g,_0x57ae15['VWSpY']);return _0x57ae15['sDril'](extractShellValue,_0x185971[_0x53fd32(0x1ba)](new RegExp('(?:^|\x5cs)'+_0x556b9a+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x1bee5b){const _0x320568=_0x3c53,_0x5602e7={'aZUvS':function(_0x26e317,_0x4fba58,_0x55986f){return _0x26e317(_0x4fba58,_0x55986f);}};if(!_0x1bee5b)return'target';if(/^e\d+$/i['test'](_0x1bee5b))return _0x320568(0x1ef)+_0x1bee5b;return JSON[_0x320568(0x1d7)](_0x5602e7['aZUvS'](truncatePreview,_0x1bee5b,0x78));}function _0x23ed(){const _0x411d43=['toLocaleDateString','38854gzovVz','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','\x5c$&','invocation','pop','10wINZOf','unaddressedComments','2587484zTEZMY','51147ZmFXUJ','replace','\x20--screenshot-path\x20','error','ybZNw','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','\x20>\x20','open\x20and\x20inspect','5812975GdoNzF','match','HRZgm','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','3384QVgbYO','about:blank','cwd','rangerwright_cli_tracing_stop','key_02_learn-more.png','SNlRZ','inspect\x20page','XKJHO','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','\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','open-and-inspect','trackPhaseError','fill\x20','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','close','-\x20[','stop\x20tracing','01_mozilla-homepage.png','\x0a\x0a##\x20Additional\x20Notes\x0a','):\x20\x22','01_initial-state.png','selector','inspect','authorName','>\x20\x22','FVPYD','stringify','asPCV','tracing-stop','[rangerwright-cli]\x20','3iDqJhK','hook_event_name','FAOBo','element','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','trackPhaseEnd','stop\x20video\x20recording','content','click-and-inspect','PkOzz','values','fill-and-inspect','SGUWg','rangerwright_cli_close','vXlAh','36VNYrNU','trackPhaseStart','url','tool_input','ref\x20','PsnDk','\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.','PostToolUse','length','MNZCL','notes','get','CtGDU','FHjKN','\x20(on\x20element:\x20<','set','\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`','tool_name','470708GURjsr','rangerwright_cli_command_failure','5908397HrgYyn','2648QwjobZ','rangerwright_cli_command','42giLQsZ','293293jcaSXH','mNGDA','authorEmail','map','wEvBh','video-stop'];_0x23ed=function(){return _0x411d43;};return _0x23ed();}function formatRangerwrightCliLog(_0x4385c6,_0xafc7e1){const _0x414646=_0x3c53,_0x9bed68={'VFNqK':_0x414646(0x1c7),'tfWZR':function(_0x30c96a,_0x2b9e3d,_0x10fc15){return _0x30c96a(_0x2b9e3d,_0x10fc15);},'ybZNw':function(_0x5dacdc,_0x4224eb){return _0x5dacdc(_0x4224eb);},'HRZgm':'fill','VIUCD':_0x414646(0x1e7),'CtGDU':function(_0x4d0def,_0x338515){return _0x4d0def(_0x338515);},'SNlRZ':'back-and-inspect','qVCjj':'go\x20back\x20and\x20inspect','PkOzz':_0x414646(0x1d3),'vXlAh':_0x414646(0x1c3),'xnTyu':'tracing-stop','CHvxt':_0x414646(0x1cd),'XKJHO':_0x414646(0x208),'OoJtN':'close\x20browser\x20session'};switch(_0xafc7e1){case _0x9bed68['VFNqK']:{const _0x54ef5d=_0x9bed68['tfWZR'](extractFirstCommandArgument,_0x4385c6,_0xafc7e1);return _0x54ef5d?'open\x20and\x20inspect\x20'+_0x54ef5d:_0x414646(0x1b8);}case _0x414646(0x1e4):return'click\x20and\x20inspect\x20'+_0x9bed68[_0x414646(0x216)](formatCommandTarget,extractFirstCommandArgument(_0x4385c6,_0xafc7e1));case _0x9bed68[_0x414646(0x1bb)]:case _0x9bed68['VIUCD']:return _0x414646(0x1c9)+_0x9bed68[_0x414646(0x1f7)](formatCommandTarget,extractFirstCommandArgument(_0x4385c6,_0xafc7e1));case _0x9bed68[_0x414646(0x1c2)]:return _0x9bed68['qVCjj'];case _0x9bed68[_0x414646(0x1e5)]:return _0x9bed68[_0x414646(0x1ea)];case _0x9bed68['xnTyu']:return _0x9bed68['CHvxt'];case _0x9bed68[_0x414646(0x1c4)]:return _0x414646(0x1e2);case'close':return _0x9bed68['OoJtN'];default:return _0xafc7e1;}}function renderScenarioSections(_0x3b1f82){const _0x5d909a=_0x3c53,_0x3ac393={'PsnDk':function(_0x7909a,_0x4ba10f){return _0x7909a>_0x4ba10f;}},{checklistItem:_0x358fab,itemFeedback:_0x228b12}=_0x3b1f82,_0x11766f=_0x358fab[_0x5d909a(0x1f5)]?_0x5d909a(0x1cf)+_0x358fab[_0x5d909a(0x1f5)]:'';let _0x567171='';if(_0x228b12&&_0x3ac393[_0x5d909a(0x1f0)](_0x228b12[_0x5d909a(0x210)]['length'],0x0)){const _0x2efdb3=_0x228b12[_0x5d909a(0x210)][_0x5d909a(0x206)](_0x13396b=>{const _0x6c34c8=_0x5d909a,_0x16fd1a=new Date(_0x13396b['createdAt'])[_0x6c34c8(0x209)]('en-US',{'month':'short','day':'numeric'}),_0x494b3d=_0x13396b[_0x6c34c8(0x1d4)]||_0x13396b[_0x6c34c8(0x205)]||'Reviewer',_0x125c9e=_0x13396b['domRef']?_0x6c34c8(0x1f9)+(_0x13396b['domRef'][_0x6c34c8(0x1d2)][_0x6c34c8(0x1df)](_0x6c34c8(0x1b7))[_0x6c34c8(0x20e)]()?.[_0x6c34c8(0x1df)](':')[0x0]||_0x6c34c8(0x1de))+_0x6c34c8(0x1d5)+(_0x13396b['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x6c34c8(0x1cc)+_0x13396b['id']+']\x20'+_0x494b3d+'\x20('+_0x16fd1a+_0x6c34c8(0x1d0)+_0x13396b[_0x6c34c8(0x1e3)]+'\x22'+_0x125c9e;})['join']('\x0a');_0x567171='\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'+_0x2efdb3;}const _0x3bd122=_0x228b12?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x228b12['canonicalFlow']:'';return''+_0x358fab['description']+_0x11766f+_0x567171+_0x3bd122;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x29146b){const _0x5554e8=_0x3c53,_0x4f1454={'FAOBo':'key_99_final-state.png','mNGDA':function(_0x2e7053,_0x4c073d){return _0x2e7053(_0x4c073d);},'YtPtr':function(_0x1b5574,_0x1196a1){return _0x1b5574(_0x1196a1);},'FVPYD':function(_0x5bfc8b,_0x20d8b2){return _0x5bfc8b(_0x20d8b2);}},{checklistItem:_0x1d681a,itemFeedback:_0x3befe0,taskDescription:_0x4d2266,commandPrefix:_0x480987,isCdpMode:_0x3a372,url:_0xae514a,cdpEndpoint:_0x27eda1,loginInstructions:_0x325766}=_0x29146b,_0x1fc3fe=_0x5554e8(0x1d1),_0x40093f=_0x4f1454[_0x5554e8(0x1dd)],_0x6b276f=_0x3a372?_0x480987+'\x20inspect\x20--screenshot-path\x20'+_0x4f1454[_0x5554e8(0x204)](quoteShellArg,_0x1fc3fe):_0x480987+'\x20open-and-inspect\x20'+quoteShellArg(_0xae514a??_0x5554e8(0x1be))+_0x5554e8(0x214)+_0x4f1454['mNGDA'](quoteShellArg,_0x1fc3fe),_0x2c0667=_0x3a372?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0x27eda1+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0xae514a+_0x5554e8(0x1f1),_0x43aa47=_0x325766?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x325766+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return _0x5554e8(0x1bc)+_0x4f1454['YtPtr'](renderScenarioSections,{'checklistItem':_0x1d681a,'itemFeedback':_0x3befe0})+_0x5554e8(0x1ca)+_0x4d2266+'\x0a\x0a'+_0x2c0667+_0x43aa47+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x480987+_0x5554e8(0x1e0)+_0x6b276f+_0x5554e8(0x1c6)+_0x480987+_0x5554e8(0x1b6)+_0x4f1454[_0x5554e8(0x1d6)](quoteShellArg,_0x40093f)+'\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(_0x285640){const _0x44941e=_0x3c53,_0x3a3d3c={'SUVZO':_0x44941e(0x1ce)},_0x56f973=_0x3a3d3c['SUVZO'],_0x284fcf=_0x44941e(0x1c1);return _0x44941e(0x1c5)+_0x285640['commandPrefix']+_0x44941e(0x1fb)+_0x285640['commandPrefix']+'\x20open-and-inspect\x20'+quoteShellArg(_0x285640[_0x44941e(0x1ed)])+'\x20--screenshot-path\x20'+quoteShellArg(_0x56f973)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x285640['commandPrefix']+_0x44941e(0x20b)+quoteShellArg(_0x284fcf)+'`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}function _0x3c53(_0x404d7b,_0x3ae62f){_0x404d7b=_0x404d7b-0x1b6;const _0x23edec=_0x23ed();let _0x3c5355=_0x23edec[_0x404d7b];return _0x3c5355;}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x218ac9){const _0x35bb33=_0x3c53,_0x4eb57a={'XNdOm':function(_0x35fb7a,_0x44cb1f){return _0x35fb7a===_0x44cb1f;}},_0x4c8ec0=[..._0x218ac9['keys']()]['sort']();let _0x526190=0x0;for(const _0xff2bb4 of _0x218ac9[_0x35bb33(0x1e6)]()){_0x526190+=_0xff2bb4;}return{'cliCommandCount':_0x526190,'cliCommandsSeen':_0x4c8ec0,'noCliCommandsCalled':_0x4eb57a['XNdOm'](_0x526190,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x3c1992){const _0x16307d=_0x3c53,_0x443e96={'HIndv':function(_0x5aace2,_0x1bc76c){return _0x5aace2!==_0x1bc76c;},'FHjKN':function(_0x33ec22,_0x3b05d8){return _0x33ec22(_0x3b05d8);},'tqUwa':'PostToolUseFailure','wEvBh':'Bash','UyODv':_0x16307d(0x1fe)},_0x27233f=new Map(),_0x14c008=async _0x460628=>{const _0x563768=_0x16307d;if(_0x443e96['HIndv'](_0x460628[_0x563768(0x1dc)],_0x563768(0x1f2)))return{};const _0x3b6d4d=_0x460628;if(_0x3b6d4d[_0x563768(0x1fc)]!=='Bash')return{};const _0x2bbd12=_0x3b6d4d[_0x563768(0x1ee)],_0x16c1bb=_0x443e96[_0x563768(0x1f8)](extractBashCommand,_0x2bbd12);if(!_0x16c1bb)return{};const _0x2e41e9=_0x443e96[_0x563768(0x1f8)](parseRangerwrightCliCommand,_0x16c1bb);if(!_0x2e41e9)return{};return _0x27233f[_0x563768(0x1fa)](_0x2e41e9,(_0x27233f[_0x563768(0x1f6)](_0x2e41e9)||0x0)+0x1),_0x3c1992[_0x563768(0x1ec)]('rangerwright_cli_command',{'subcommand':_0x2e41e9}),_0x3c1992[_0x563768(0x1e1)](_0x563768(0x201),{'subcommand':_0x2e41e9,'commandPreview':truncatePreview(_0x16c1bb)}),console['log'](_0x563768(0x1da)+formatRangerwrightCliLog(_0x16c1bb,_0x2e41e9)),{};},_0x4ba72e=async _0x42bc16=>{const _0x54143e=_0x16307d;if(_0x443e96['HIndv'](_0x42bc16['hook_event_name'],_0x443e96['tqUwa']))return{};const _0x283c1c=_0x42bc16;if(_0x443e96['HIndv'](_0x283c1c['tool_name'],_0x443e96[_0x54143e(0x207)]))return{};return await _0x3c1992[_0x54143e(0x1c8)](_0x443e96['UyODv'],_0x283c1c[_0x54143e(0x215)],{'transport':'rangerwright-cli','toolName':_0x443e96[_0x54143e(0x207)]}),{};};return{'postToolUseHook':_0x14c008,'postToolUseFailureHook':_0x4ba72e,'commandCounts':_0x27233f};}async function runRangerwrightLifecycleCommand(_0x1b9824){const _0x285dc0=_0x3c53,_0x46b8ed={'asPCV':function(_0x5a7ae1,_0x2b4bf,_0x169047){return _0x5a7ae1(_0x2b4bf,_0x169047);}},{options:_0xe420ab,commandArgs:_0x2ced93,env:_0x46c5c0,telemetry:_0x332b2e,phase:_0x2aa453,metadata:_0x26736c,timeoutMs:_0x12837f}=_0x1b9824;_0x332b2e['trackPhaseStart'](_0x2aa453,_0x26736c);try{const _0x267257=await runRangerwrightCliCommand({..._0xe420ab,'commandArgs':_0x2ced93,'cwd':process[_0x285dc0(0x1bf)](),'env':_0x46c5c0,'timeoutMs':_0x12837f??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x332b2e[_0x285dc0(0x1e1)](_0x2aa453,{..._0x26736c,'subcommand':_0x267257[_0x285dc0(0x20d)]['subcommand'],'stdoutPreview':_0x46b8ed[_0x285dc0(0x1d8)](truncatePreview,_0x267257['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x267257['stderr'],0x7d0)});}catch(_0x468d5f){await _0x332b2e[_0x285dc0(0x1c8)](_0x2aa453,_0x468d5f,_0x26736c);throw _0x468d5f;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x12522e){const _0x1806da=_0x3c53,_0x2095a1={'BlmGi':_0x1806da(0x208),'ZyzZe':_0x1806da(0x1e9),'MNZCL':_0x1806da(0x1cb)},{telemetry:_0x5036c4,rangerwrightOptions:_0x2ec788,env:_0x2422af,transportMetadata:_0x301b2a}=_0x12522e,_0x36f500=[{'phase':_0x1806da(0x1c0),'commandArgs':[_0x1806da(0x1d9)]},{'phase':'rangerwright_cli_video_stop','commandArgs':[_0x2095a1['BlmGi']]},{'phase':_0x2095a1['ZyzZe'],'commandArgs':[_0x2095a1[_0x1806da(0x1f4)]]}];for(const _0x2c72b5 of _0x36f500){try{await runRangerwrightLifecycleCommand({'options':_0x2ec788,'commandArgs':[..._0x2c72b5['commandArgs']],'env':_0x2422af,'telemetry':_0x5036c4,'phase':_0x2c72b5['phase'],'metadata':_0x301b2a});}catch{}}}
1
+ (function(_0x1ee9bc,_0x74a174){const _0x58b8e3=_0x8790,_0x5cda0e=_0x1ee9bc();while(!![]){try{const _0x35299c=-parseInt(_0x58b8e3(0xc4))/0x1+-parseInt(_0x58b8e3(0xe2))/0x2*(-parseInt(_0x58b8e3(0xd9))/0x3)+parseInt(_0x58b8e3(0xa9))/0x4*(-parseInt(_0x58b8e3(0xb8))/0x5)+-parseInt(_0x58b8e3(0x9f))/0x6*(parseInt(_0x58b8e3(0xb9))/0x7)+parseInt(_0x58b8e3(0xf1))/0x8+-parseInt(_0x58b8e3(0xe5))/0x9*(parseInt(_0x58b8e3(0xbf))/0xa)+parseInt(_0x58b8e3(0xec))/0xb;if(_0x35299c===_0x74a174)break;else _0x5cda0e['push'](_0x5cda0e['shift']());}catch(_0x55e4e7){_0x5cda0e['push'](_0x5cda0e['shift']());}}}(_0x5eb3,0xee18f));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(_0x4b7a02,_0xedc35c=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x3226a2=_0x8790,_0x5101c3={'CtQtO':function(_0x2b6b0e,_0x6577dd){return _0x2b6b0e>_0x6577dd;},'UiCks':function(_0x1344ba,_0x3f9d0d){return _0x1344ba+_0x3f9d0d;}};return _0x5101c3['CtQtO'](_0x4b7a02['length'],_0xedc35c)?_0x5101c3[_0x3226a2(0x9e)](_0x4b7a02['slice'](0x0,_0xedc35c),_0x3226a2(0xa2)):_0x4b7a02;}function _0x5eb3(){const _0x139e2d=['10KFwKdw','12724327IPIsec','01_mozilla-homepage.png','tool_input','\x5c$&','hwBzB','\x20(on\x20element:\x20<','20FMxsdP','textContent','split','ydmfj','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','1203030qwcMYW','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','trackPhaseEnd','url','\x20open-and-inspect\x20','gLvVh','(?:^|\x5cs)','\x20inspect\x20--screenshot-path\x20','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','short','YfEyF','join','\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.','Reviewer','\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','invocation','BoLYN','MZUQZ','ref\x20','>\x20\x22','OwrkX','5522466yjKcJA','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','unaddressedComments','click-and-inspect','JkCcu','go\x20back\x20and\x20inspect','inspect\x20page','stderr','AqWvC','2mdJnUx','aLGRj','log','2245653FqhKgY','createdAt','pop','rangerwright_cli_video_stop','open\x20and\x20inspect','canonicalFlow','replace','17066071HmZGvh','domRef','rangerwright_cli_close','hook_event_name','commandPrefix','12026008uGUAUA','close\x20browser\x20session','BgJJO','click\x20and\x20inspect\x20','Bash','tracing-stop','selector','notes','fill-and-inspect','trackPhaseStart','rangerwright_cli_tracing_stop','UiCks','6ezefvr','set','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','...','tool_name','stop\x20tracing','element','mwSxF','authorEmail','Fktjl','800924oGljAk','video-stop','.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','):\x20\x22','target','authorName','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','about:blank','rangerwright_cli_command','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','rangerwright-cli','toLocaleDateString','oCCGh','inspect','msXai'];_0x5eb3=function(){return _0x139e2d;};return _0x5eb3();}function extractShellValue(_0x239e7c){if(!_0x239e7c)return null;return _0x239e7c[0x1]??_0x239e7c[0x2]??_0x239e7c[0x3]??null;}function extractFirstCommandArgument(_0x2bad8c,_0x2ef6e3){const _0x2948f7=_0x8790,_0x489506={'hwBzB':_0x2948f7(0xbc),'ydmfj':function(_0xbab589,_0x3c9ec7){return _0xbab589(_0x3c9ec7);}},_0x1a65c2=_0x2ef6e3[_0x2948f7(0xeb)](/[.*+?^${}()|[\]\\]/g,_0x489506[_0x2948f7(0xbd)]);return _0x489506[_0x2948f7(0xc2)](extractShellValue,_0x2bad8c['match'](new RegExp(_0x2948f7(0xca)+_0x1a65c2+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x257f9c){const _0x48ba9b=_0x8790;if(!_0x257f9c)return _0x48ba9b(0xad);if(/^e\d+$/i['test'](_0x257f9c))return _0x48ba9b(0xd6)+_0x257f9c;return JSON['stringify'](truncatePreview(_0x257f9c,0x78));}function formatRangerwrightCliLog(_0x4fb9bf,_0x42d2d1){const _0x126274=_0x8790,_0x25d181={'PbftZ':'open-and-inspect','JkCcu':_0x126274(0xdc),'Nicnk':_0x126274(0x9b),'Qcsai':function(_0x293295,_0x10b89a,_0xf96f15){return _0x293295(_0x10b89a,_0xf96f15);},'msXai':_0x126274(0xde),'BgJJO':_0x126274(0xb6),'aLGRj':_0x126274(0xdf),'GVJIF':_0x126274(0xf6),'Fktjl':'video-stop','mwSxF':'close','tWZLK':_0x126274(0xf2)};switch(_0x42d2d1){case _0x25d181['PbftZ']:{const _0x230dd=extractFirstCommandArgument(_0x4fb9bf,_0x42d2d1);return _0x230dd?'open\x20and\x20inspect\x20'+_0x230dd:_0x126274(0xe9);}case _0x25d181[_0x126274(0xdd)]:return _0x126274(0xf4)+formatCommandTarget(extractFirstCommandArgument(_0x4fb9bf,_0x42d2d1));case'fill':case _0x25d181['Nicnk']:return'fill\x20'+formatCommandTarget(_0x25d181['Qcsai'](extractFirstCommandArgument,_0x4fb9bf,_0x42d2d1));case'back-and-inspect':return _0x25d181[_0x126274(0xb7)];case _0x25d181[_0x126274(0xf3)]:return _0x25d181[_0x126274(0xe3)];case _0x25d181['GVJIF']:return _0x126274(0xa4);case _0x25d181[_0x126274(0xa8)]:return'stop\x20video\x20recording';case _0x25d181[_0x126274(0xa6)]:return _0x25d181['tWZLK'];default:return _0x42d2d1;}}function renderScenarioSections(_0x3a8d1f){const _0x55f738=_0x8790,_0x1ef902={'nZmSk':_0x55f738(0xcd),'dfVhY':_0x55f738(0xa5),'OwrkX':function(_0x15b1ad,_0x1824dd){return _0x15b1ad>_0x1824dd;}},{checklistItem:_0x426ee9,itemFeedback:_0x1cf1b1}=_0x3a8d1f,_0x1a47f6=_0x426ee9['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x426ee9[_0x55f738(0xf8)]:'';let _0x20208f='';if(_0x1cf1b1&&_0x1ef902[_0x55f738(0xd8)](_0x1cf1b1[_0x55f738(0xdb)]['length'],0x0)){const _0x2cbd02=_0x1cf1b1[_0x55f738(0xdb)]['map'](_0x5ab33b=>{const _0x1116b4=_0x55f738,_0x28ef15=new Date(_0x5ab33b[_0x1116b4(0xe6)])[_0x1116b4(0xb4)]('en-US',{'month':_0x1ef902['nZmSk'],'day':'numeric'}),_0x1debdb=_0x5ab33b[_0x1116b4(0xae)]||_0x5ab33b[_0x1116b4(0xa7)]||_0x1116b4(0xd1),_0x49b1e3=_0x5ab33b[_0x1116b4(0xed)]?_0x1116b4(0xbe)+(_0x5ab33b['domRef'][_0x1116b4(0xf7)][_0x1116b4(0xc1)]('\x20>\x20')[_0x1116b4(0xe7)]()?.['split'](':')[0x0]||_0x1ef902['dfVhY'])+_0x1116b4(0xd7)+(_0x5ab33b[_0x1116b4(0xed)][_0x1116b4(0xc0)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x5ab33b['id']+']\x20'+_0x1debdb+'\x20('+_0x28ef15+_0x1116b4(0xac)+_0x5ab33b['content']+'\x22'+_0x49b1e3;})[_0x55f738(0xcf)]('\x0a');_0x20208f='\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'+_0x2cbd02;}const _0x481f0b=_0x1cf1b1?.['canonicalFlow']?_0x55f738(0xb2)+_0x1cf1b1[_0x55f738(0xea)]:'';return''+_0x426ee9['description']+_0x1a47f6+_0x20208f+_0x481f0b;}function _0x8790(_0x7f97c9,_0x4ecf9b){_0x7f97c9=_0x7f97c9-0x9b;const _0x5eb3bd=_0x5eb3();let _0x879096=_0x5eb3bd[_0x7f97c9];return _0x879096;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x1aea0c){const _0x2539ae=_0x8790,_0x20c95d={'AqWvC':'key_99_final-state.png','kDYqU':function(_0xfbd824,_0x496f3a){return _0xfbd824(_0x496f3a);},'gLvVh':function(_0x1cbfd1,_0x3eb5d0){return _0x1cbfd1(_0x3eb5d0);}},{checklistItem:_0x44e053,itemFeedback:_0x397315,taskDescription:_0x3fde32,commandPrefix:_0x2b814d,isCdpMode:_0x4443d1,url:_0x2792a8,cdpEndpoint:_0x5d6dea,loginInstructions:_0x4b1b3d}=_0x1aea0c,_0x2a6509='01_initial-state.png',_0x4bd7de=_0x20c95d[_0x2539ae(0xe1)],_0x41ccda=_0x4443d1?_0x2b814d+_0x2539ae(0xcb)+_0x20c95d['kDYqU'](quoteShellArg,_0x2a6509):_0x2b814d+'\x20open-and-inspect\x20'+_0x20c95d['kDYqU'](quoteShellArg,_0x2792a8??_0x2539ae(0xb0))+'\x20--screenshot-path\x20'+quoteShellArg(_0x2a6509),_0xa96cf2=_0x4443d1?_0x2539ae(0xaf)+_0x5d6dea+_0x2539ae(0xab):_0x2539ae(0xc3)+_0x2792a8+_0x2539ae(0xd0),_0xe3afdb=_0x4b1b3d?_0x2539ae(0xc5)+_0x4b1b3d+_0x2539ae(0xa1):'';return _0x2539ae(0xcc)+renderScenarioSections({'checklistItem':_0x44e053,'itemFeedback':_0x397315})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x3fde32+'\x0a\x0a'+_0xa96cf2+_0xe3afdb+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x2b814d+_0x2539ae(0xd2)+_0x41ccda+'\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'+_0x2b814d+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+_0x20c95d[_0x2539ae(0xc9)](quoteShellArg,_0x4bd7de)+'\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(_0x3d0deb){const _0x313a48=_0x8790,_0x305bbc={'tPgnY':function(_0x19a4fb,_0x24d48a){return _0x19a4fb(_0x24d48a);}},_0x11c8eb=_0x313a48(0xba),_0xb0cbe3='key_02_learn-more.png';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'+_0x3d0deb[_0x313a48(0xf0)]+'\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`'+_0x3d0deb['commandPrefix']+_0x313a48(0xc8)+quoteShellArg(_0x3d0deb[_0x313a48(0xc7)])+'\x20--screenshot-path\x20'+quoteShellArg(_0x11c8eb)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x3d0deb[_0x313a48(0xf0)]+_0x313a48(0xda)+_0x305bbc['tPgnY'](quoteShellArg,_0xb0cbe3)+'`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x43bca0){const _0x1e590d=[..._0x43bca0['keys']()]['sort']();let _0x2f8fe7=0x0;for(const _0x35e7a4 of _0x43bca0['values']()){_0x2f8fe7+=_0x35e7a4;}return{'cliCommandCount':_0x2f8fe7,'cliCommandsSeen':_0x1e590d,'noCliCommandsCalled':_0x2f8fe7===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0x416e1d){const _0x2a7ed6=_0x8790,_0x3637f6={'PpTLx':'PostToolUse','oCCGh':function(_0xa22027,_0x40ca6b){return _0xa22027(_0x40ca6b);},'ycftg':function(_0x152f43,_0x259f68){return _0x152f43+_0x259f68;},'MZUQZ':function(_0x1c21b0,_0x386b93){return _0x1c21b0(_0x386b93);},'BoLYN':function(_0x4ac0e2,_0x490022,_0x530ff5){return _0x4ac0e2(_0x490022,_0x530ff5);},'MCUbt':'rangerwright_cli_command_failure','guaKA':_0x2a7ed6(0xb3),'YfEyF':_0x2a7ed6(0xf5)},_0x4ffcc8=new Map(),_0x5b3027=async _0x4cd95e=>{const _0x1aef73=_0x2a7ed6;if(_0x4cd95e['hook_event_name']!==_0x3637f6['PpTLx'])return{};const _0x49aa52=_0x4cd95e;if(_0x49aa52['tool_name']!=='Bash')return{};const _0x536971=_0x49aa52[_0x1aef73(0xbb)],_0x37d6f9=_0x3637f6[_0x1aef73(0xb5)](extractBashCommand,_0x536971);if(!_0x37d6f9)return{};const _0x2dcacf=parseRangerwrightCliCommand(_0x37d6f9);if(!_0x2dcacf)return{};return _0x4ffcc8[_0x1aef73(0xa0)](_0x2dcacf,_0x3637f6['ycftg'](_0x4ffcc8['get'](_0x2dcacf)||0x0,0x1)),_0x416e1d[_0x1aef73(0x9c)](_0x1aef73(0xb1),{'subcommand':_0x2dcacf}),_0x416e1d[_0x1aef73(0xc6)]('rangerwright_cli_command',{'subcommand':_0x2dcacf,'commandPreview':_0x3637f6[_0x1aef73(0xd5)](truncatePreview,_0x37d6f9)}),console[_0x1aef73(0xe4)]('[rangerwright-cli]\x20'+_0x3637f6[_0x1aef73(0xd4)](formatRangerwrightCliLog,_0x37d6f9,_0x2dcacf)),{};},_0x10eff9=async _0x1a805e=>{const _0x3aab27=_0x2a7ed6;if(_0x1a805e[_0x3aab27(0xef)]!=='PostToolUseFailure')return{};const _0x4cf16d=_0x1a805e;if(_0x4cf16d[_0x3aab27(0xa3)]!==_0x3aab27(0xf5))return{};return await _0x416e1d['trackPhaseError'](_0x3637f6['MCUbt'],_0x4cf16d['error'],{'transport':_0x3637f6['guaKA'],'toolName':_0x3637f6[_0x3aab27(0xce)]}),{};};return{'postToolUseHook':_0x5b3027,'postToolUseFailureHook':_0x10eff9,'commandCounts':_0x4ffcc8};}async function runRangerwrightLifecycleCommand(_0x5d4165){const _0x188ec5=_0x8790,_0x125a5e={'mvFrR':function(_0x190d48,_0x5ec439){return _0x190d48??_0x5ec439;},'yJpKx':function(_0xf0e538,_0x274db9,_0x4463d2){return _0xf0e538(_0x274db9,_0x4463d2);}},{options:_0x2562fe,commandArgs:_0x1c0af0,env:_0x50e762,telemetry:_0x2267b2,phase:_0x43348e,metadata:_0x3adeee,timeoutMs:_0x4bb3f8}=_0x5d4165;_0x2267b2[_0x188ec5(0x9c)](_0x43348e,_0x3adeee);try{const _0x1f41b8=await runRangerwrightCliCommand({..._0x2562fe,'commandArgs':_0x1c0af0,'cwd':process['cwd'](),'env':_0x50e762,'timeoutMs':_0x125a5e['mvFrR'](_0x4bb3f8,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x2267b2['trackPhaseEnd'](_0x43348e,{..._0x3adeee,'subcommand':_0x1f41b8[_0x188ec5(0xd3)]['subcommand'],'stdoutPreview':_0x125a5e['yJpKx'](truncatePreview,_0x1f41b8['stdout'],0x7d0),'stderrPreview':_0x125a5e['yJpKx'](truncatePreview,_0x1f41b8[_0x188ec5(0xe0)],0x7d0)});}catch(_0x167428){await _0x2267b2['trackPhaseError'](_0x43348e,_0x167428,_0x3adeee);throw _0x167428;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x172040){const _0x531f7b=_0x8790,_0x4e1c83={'CGIbV':_0x531f7b(0xaa),'DREMc':_0x531f7b(0xee),'aYCaX':'close'},{telemetry:_0x1a1d00,rangerwrightOptions:_0x41c38b,env:_0x271279,transportMetadata:_0x3c27ac}=_0x172040,_0x25163d=[{'phase':_0x531f7b(0x9d),'commandArgs':['tracing-stop']},{'phase':_0x531f7b(0xe8),'commandArgs':[_0x4e1c83['CGIbV']]},{'phase':_0x4e1c83['DREMc'],'commandArgs':[_0x4e1c83['aYCaX']]}];for(const _0x273d0d of _0x25163d){try{await runRangerwrightLifecycleCommand({'options':_0x41c38b,'commandArgs':[..._0x273d0d['commandArgs']],'env':_0x271279,'telemetry':_0x1a1d00,'phase':_0x273d0d['phase'],'metadata':_0x3c27ac});}catch{}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "3.1.3-alpha.e1ca941-42",
3
+ "version": "3.1.4-alpha.96fdd81-47",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",
@@ -25,7 +25,7 @@
25
25
  "@ranger-testing/rangerwright": "^0.0.27",
26
26
  "dotenv": "^16.4.5",
27
27
  "inquirer": "^9.2.12",
28
- "playwright": "^1.57.0",
28
+ "playwright": "1.57.0",
29
29
  "ws": "^8.20.1",
30
30
  "yargs": "^17.7.2",
31
31
  "zod": "^3.23.8"
@@ -43,6 +43,7 @@
43
43
  "typescript": "^5.0.0"
44
44
  },
45
45
  "overrides": {
46
+ "esbuild": "^0.28.1",
46
47
  "minimatch": "^10.2.3",
47
48
  "brace-expansion": "^5.0.6",
48
49
  "fast-uri": "3.1.2"