@ranger-testing/ranger-cli 3.1.3-alpha.546c9e8-43 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x4b6a6e,_0x12463f){const _0x18ca2a=_0x3c5b,_0x1253c4=_0x4b6a6e();while(!![]){try{const _0x162478=-parseInt(_0x18ca2a(0x19a))/0x1*(parseInt(_0x18ca2a(0x199))/0x2)+-parseInt(_0x18ca2a(0x161))/0x3+parseInt(_0x18ca2a(0x1a5))/0x4*(parseInt(_0x18ca2a(0x169))/0x5)+-parseInt(_0x18ca2a(0x1cc))/0x6*(parseInt(_0x18ca2a(0x197))/0x7)+-parseInt(_0x18ca2a(0x1a3))/0x8*(-parseInt(_0x18ca2a(0x1a8))/0x9)+-parseInt(_0x18ca2a(0x17a))/0xa*(parseInt(_0x18ca2a(0x172))/0xb)+parseInt(_0x18ca2a(0x186))/0xc;if(_0x162478===_0x12463f)break;else _0x1253c4['push'](_0x1253c4['shift']());}catch(_0x409f5c){_0x1253c4['push'](_0x1253c4['shift']());}}}(_0x687f,0x4fde6));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(_0x544be7,_0x2182d1=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x39e747=_0x3c5b;return _0x544be7[_0x39e747(0x174)]>_0x2182d1?_0x544be7[_0x39e747(0x1ca)](0x0,_0x2182d1)+_0x39e747(0x187):_0x544be7;}function buildCliArtifactPath(_0xaab71f,_0x5c05f6){return join(_0xaab71f,_0x5c05f6);}function _0x687f(){const _0xf8c9a6=['\x22,\x20\x22','vhCYd','playwright_cli_close','numeric','tracing-start','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','01_initial.yml','playwright_cli_video_stop','open','eUgti','[ranger-verification-agent]\x20','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','split','cwd','trace.trace.zip','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','selector','VBxWj','stop\x20tracing','kNLvB','notes','subcommand','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','authorName','328209UwSTxA','\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.','trackPhaseError','click','):\x20\x22','string','open\x20new\x20tab','join','886200skmjEM','description','FrDaw','[playwright-cli]\x20','domRef','env','session-recording.webm','XacAj','ufjbM','19206YPdUeo','\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','length','tool_name','\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','playwright-cli','\x20snapshot\x20--filename\x20','keys','2250zTruVu','tab-new','03_result-visible.png','hook_event_name','QRBdE','element','XGfdv','content','jxjdj','set','PostToolUseFailure','Bash','14050116gPyhyx','...','start\x20video\x20recording','WEsNK','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','commandArgs','fill','`\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','SxJIY','NyHOr','stop\x20video\x20recording','capture\x20snapshot\x20`','JdIxo','\x20screenshot\x20--filename\x20','`:\x20\x22','`\x0a-\x20`snapshot\x20--filename\x20','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','16583iWtqMr','trim','1267064UtHOEU','1CErLdI','isFile','qiBiL','open\x20browser','EKrho','capture\x20snapshot','snapshot','03_learn-more.png','canonicalFlow','181176pvkMIW','video-stop','4sZmpQD','01_mozilla-homepage.png','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','72TrFuxW','tool_failure','Fxdey','LBdFv','\x5c$&','push','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','(?:^|\x5cs)','\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.','press','unaddressedComments','DBUpb','vybch','replace','gSDBa','kcCGu','BKHVd','**\x20(','Pmkha','pop','MsVbt','trace.zip','capture\x20screenshot','sFWmi','textContent','DEBUG','PostToolUse','tool_call','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','tab-select','press\x20','\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','tDMwB','\x20open`,\x20then\x20`','slice','\x20tracing-start`,\x20then\x20`','168mRwRYb','name','sort','test','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','`\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`','click\x20','\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'];_0x687f=function(){return _0xf8c9a6;};return _0x687f();}function toStepDisplayName(_0x13664e){const _0x3425a0=_0x3c5b,_0x54853c={'tDMwB':function(_0x18d4d9,_0x2a37e0){return _0x18d4d9(_0x2a37e0);}},_0x22d4e2=basename(_0x13664e)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x3425a0(0x1b5)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x22d4e2,'isKeyStep':/^key_/i['test'](_0x54853c[_0x3425a0(0x1c8)](basename,_0x13664e))};}function extractShellValue(_0x57bec9){if(!_0x57bec9)return null;return _0x57bec9[0x1]??_0x57bec9[0x2]??_0x57bec9[0x3]??null;}function _0x3c5b(_0x51c60b,_0x5e9f9d){_0x51c60b=_0x51c60b-0x151;const _0x687f5a=_0x687f();let _0x3c5b60=_0x687f5a[_0x51c60b];return _0x3c5b60;}function extractFilenameOption(_0x57bae5){return extractShellValue(_0x57bae5['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0xc91364,_0x3513f3){const _0x204334=_0x3c5b,_0x53c609=_0x3513f3[_0x204334(0x1b5)](/[.*+?^${}()|[\]\\]/g,_0x204334(0x1ac));return extractShellValue(_0xc91364['match'](new RegExp(_0x204334(0x1af)+_0x53c609+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x19c028){const _0x343eab=_0x3c5b,_0x108dc7={'qbgOH':'target'};if(!_0x19c028)return _0x108dc7['qbgOH'];if(/^e\d+$/i[_0x343eab(0x1cf)](_0x19c028))return'ref\x20'+_0x19c028;return JSON['stringify'](truncatePreview(_0x19c028,0x78));}function formatPlaywrightCliLog(_0x483f3a,_0x55b868){const _0x5eeb97=_0x3c5b,_0x387462={'Fxdey':function(_0x37aa22,_0x4a4532,_0x5c5351){return _0x37aa22(_0x4a4532,_0x5c5351);},'vhUBa':'start\x20tracing','rdVpF':'tracing-stop','cfORW':_0x5eeb97(0x188),'yTqye':'video-stop','Anzbn':'snapshot','LBdFv':function(_0x283711,_0x150898){return _0x283711(_0x150898);},'DBUpb':_0x5eeb97(0x19f),'FDKxG':function(_0x153337,_0x1dac90){return _0x153337(_0x1dac90);},'Pmkha':'screenshot','VBxWj':_0x5eeb97(0x164),'XacAj':function(_0x4ec237,_0x58be70,_0x36df89){return _0x4ec237(_0x58be70,_0x36df89);},'BKHVd':_0x5eeb97(0x18c),'vKFxc':'run\x20custom\x20Playwright\x20code','CXTND':_0x5eeb97(0x167),'gEVPh':'select\x20tab'};switch(_0x55b868){case _0x5eeb97(0x151):{const _0x51232a=_0x387462['Fxdey'](extractFirstCommandArgument,_0x483f3a,_0x55b868);return _0x51232a?'open\x20'+_0x51232a:_0x5eeb97(0x19d);}case _0x5eeb97(0x1d8):return _0x387462['vhUBa'];case _0x387462['rdVpF']:return _0x5eeb97(0x15b);case'video-start':return _0x387462['cfORW'];case _0x387462['yTqye']:return _0x5eeb97(0x190);case _0x387462['Anzbn']:{const _0x1bb37b=_0x387462[_0x5eeb97(0x1ab)](extractFilenameOption,_0x483f3a);if(!_0x1bb37b)return _0x387462[_0x5eeb97(0x1b3)];const {name:_0x1f2182}=_0x387462['FDKxG'](toStepDisplayName,_0x1bb37b);return _0x5eeb97(0x191)+_0x1f2182+'`';}case _0x387462[_0x5eeb97(0x1ba)]:{const _0x5ca917=extractFilenameOption(_0x483f3a);if(!_0x5ca917)return _0x5eeb97(0x1be);const {name:_0x585721,isKeyStep:_0x5326ac}=toStepDisplayName(_0x5ca917);return _0x5326ac?'capture\x20key\x20step\x20`'+_0x585721+'`':'capture\x20step\x20`'+_0x585721+'`';}case _0x387462[_0x5eeb97(0x15a)]:return _0x5eeb97(0x1d2)+_0x387462['LBdFv'](formatCommandTarget,_0x387462[_0x5eeb97(0x170)](extractFirstCommandArgument,_0x483f3a,_0x55b868));case'check':return'check\x20'+_0x387462['FDKxG'](formatCommandTarget,_0x387462['XacAj'](extractFirstCommandArgument,_0x483f3a,_0x55b868));case _0x387462[_0x5eeb97(0x1b8)]:return'fill\x20'+formatCommandTarget(extractFirstCommandArgument(_0x483f3a,_0x55b868));case _0x5eeb97(0x1b1):return _0x5eeb97(0x1c6)+formatCommandTarget(extractFirstCommandArgument(_0x483f3a,_0x55b868));case'run-code':return _0x387462['vKFxc'];case _0x5eeb97(0x17b):{const _0x1b7e5c=extractFirstCommandArgument(_0x483f3a,_0x55b868);return _0x1b7e5c?'open\x20new\x20tab\x20'+_0x1b7e5c:_0x387462['CXTND'];}case _0x5eeb97(0x1c5):{const _0x23d97a=_0x387462[_0x5eeb97(0x1aa)](extractFirstCommandArgument,_0x483f3a,_0x55b868);return _0x23d97a?'select\x20tab\x20'+_0x23d97a:_0x387462['gEVPh'];}default:return _0x55b868;}}function extractPlaywrightCliToolDescription(_0x22dbc4){const _0x781a2f=_0x3c5b,_0x29b4a4={'XVGeH':_0x781a2f(0x166)},_0x4d8c86=_0x22dbc4[_0x781a2f(0x16a)];if(typeof _0x4d8c86!==_0x29b4a4['XVGeH'])return null;const _0x1b3277=_0x4d8c86[_0x781a2f(0x198)]()[_0x781a2f(0x1b5)](/\s+/g,'\x20');return _0x1b3277[_0x781a2f(0x174)]>0x0?_0x1b3277:null;}export function formatPlaywrightCliConsoleLogMessage(_0x54c92f,_0x13112d,_0x31d130){const _0x360ee1=_0x3c5b,_0x47abde={'NyHOr':function(_0x4d1e09,_0x2223be,_0x4368cd){return _0x4d1e09(_0x2223be,_0x4368cd);},'kcCGu':function(_0x233fcb,_0x32d51e){return _0x233fcb(_0x32d51e);}},_0x49bef9=_0x47abde[_0x360ee1(0x18f)](formatPlaywrightCliLog,_0x13112d,_0x31d130),_0x8126b2=_0x47abde[_0x360ee1(0x1b7)](extractPlaywrightCliToolDescription,_0x54c92f);if(!_0x8126b2)return _0x360ee1(0x16c)+_0x49bef9;if(process[_0x360ee1(0x16e)][_0x360ee1(0x1c1)])return _0x360ee1(0x153)+_0x8126b2+'\x20('+_0x49bef9+')';return _0x360ee1(0x153)+_0x8126b2;}export function buildVerifyFeatureCliDebugPrompt(_0x18d29f,_0x36162c){const _0x11dc36=_0x3c5b,_0x37c4c0={'MsVbt':function(_0x311c40,_0x350240,_0x12c985){return _0x311c40(_0x350240,_0x12c985);},'qiBiL':_0x11dc36(0x1a6),'ypZwb':'02_learn-more.yml','EKrho':function(_0x21fb0d,_0x249c83){return _0x21fb0d(_0x249c83);},'sFWmi':function(_0x2bc79a,_0x1e5911){return _0x2bc79a(_0x1e5911);}},_0x44d682=buildCliArtifactPath(_0x36162c,'00_mozilla-homepage.yml'),_0x4142fd=_0x37c4c0[_0x11dc36(0x1bc)](buildCliArtifactPath,_0x36162c,_0x37c4c0[_0x11dc36(0x19c)]),_0x2fbc14=buildCliArtifactPath(_0x36162c,_0x37c4c0['ypZwb']),_0x531cac=_0x37c4c0[_0x11dc36(0x1bc)](buildCliArtifactPath,_0x36162c,_0x11dc36(0x1a1)),_0x1fa6b2=_0x37c4c0[_0x11dc36(0x19e)](quoteShellArg,_0x44d682),_0x1489ea=_0x37c4c0['EKrho'](quoteShellArg,_0x4142fd),_0x383f66=quoteShellArg(_0x2fbc14),_0x2bc8c4=_0x37c4c0[_0x11dc36(0x1bf)](quoteShellArg,_0x531cac);return _0x11dc36(0x18a)+_0x18d29f+'\x0a\x0a1.\x20Run\x20`'+_0x18d29f+_0x11dc36(0x158)+_0x18d29f+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x18d29f+_0x11dc36(0x15f)+_0x36162c+_0x11dc36(0x154)+_0x18d29f+_0x11dc36(0x178)+_0x1fa6b2+_0x11dc36(0x1c4)+_0x18d29f+'\x20screenshot\x20--filename\x20'+_0x1489ea+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x18d29f+_0x11dc36(0x178)+_0x383f66+'`\x0a9.\x20Run\x20`'+_0x18d29f+'\x20screenshot\x20--filename\x20'+_0x2bc8c4+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x1624a6){const _0xd2f47d=_0x3c5b,_0x438f18={'RuiCM':'short','WEsNK':function(_0x167710,_0x1f744e,_0x1707a1){return _0x167710(_0x1f744e,_0x1707a1);},'wtfFI':'02_state.yml','HGNLd':function(_0x33d173,_0x371efc,_0x1020cf){return _0x33d173(_0x371efc,_0x1020cf);},'DaRUJ':function(_0x119fe2,_0xbe2c46,_0x3a1116){return _0x119fe2(_0xbe2c46,_0x3a1116);},'SxGAz':'01_initial-state.png','rdpjr':function(_0x246f73,_0x47cd11){return _0x246f73(_0x47cd11);},'XCAZF':function(_0x1ad07d,_0x50b90f){return _0x1ad07d(_0x50b90f);},'hxoEZ':function(_0x5e7d8d,_0x21b3d1,_0x1bc737){return _0x5e7d8d(_0x21b3d1,_0x1bc737);},'wvOgf':'02_button-clicked.png','zsQqH':_0xd2f47d(0x17c),'EvLUc':'key_04_success-state.png'},{checklistItem:_0xf6e6a7,itemFeedback:_0x2a37e7,taskDescription:_0x42452c,cliCommandPrefix:_0x51cafc,cliArtifactDir:_0x398f19,isCdpMode:_0x2999c6,url:_0x57e5fd,cdpEndpoint:_0x2ad2ce,loginInstructions:_0x1c71fd}=_0x1624a6,_0x2ee181=_0x438f18[_0xd2f47d(0x189)](buildCliArtifactPath,_0x398f19,_0xd2f47d(0x1da)),_0x2af543=_0x438f18[_0xd2f47d(0x189)](buildCliArtifactPath,_0x398f19,_0x438f18['wtfFI']),_0x333b66=_0x438f18['HGNLd'](buildCliArtifactPath,_0x398f19,'key_03_success-state.png'),_0x3fd953=_0x438f18['DaRUJ'](buildCliArtifactPath,_0x398f19,_0x438f18['SxGAz']),_0x24264f=_0x438f18['rdpjr'](quoteShellArg,_0x2ee181),_0x5cb850=_0x438f18['rdpjr'](quoteShellArg,_0x2af543),_0x17db7e=quoteShellArg(_0x333b66),_0x2f50ba=quoteShellArg(_0x3fd953),_0x4c462d=_0xf6e6a7[_0xd2f47d(0x15d)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0xf6e6a7['notes']:'';let _0x33a829='';if(_0x2a37e7&&_0x2a37e7[_0xd2f47d(0x1b2)]['length']>0x0){const _0x864a6b=_0x2a37e7[_0xd2f47d(0x1b2)]['map'](_0xe81c13=>{const _0x2eac12=_0xd2f47d,_0xdcde0e=new Date(_0xe81c13['createdAt'])['toLocaleDateString']('en-US',{'month':_0x438f18['RuiCM'],'day':_0x2eac12(0x1d7)}),_0x35377f=_0xe81c13[_0x2eac12(0x160)]||_0xe81c13['authorEmail']||'Reviewer',_0x3e4dd4=_0xe81c13[_0x2eac12(0x16d)]?'\x20(on\x20element:\x20<'+(_0xe81c13['domRef'][_0x2eac12(0x159)][_0x2eac12(0x155)]('\x20>\x20')[_0x2eac12(0x1bb)]()?.[_0x2eac12(0x155)](':')[0x0]||_0x2eac12(0x17f))+'>\x20\x22'+(_0xe81c13['domRef'][_0x2eac12(0x1c0)]||'')[_0x2eac12(0x1ca)](0x0,0x32)+'\x22)':'';return'-\x20['+_0xe81c13['id']+']\x20**'+_0x35377f+_0x2eac12(0x1b9)+_0xdcde0e+_0x2eac12(0x165)+_0xe81c13[_0x2eac12(0x181)]+'\x22'+_0x3e4dd4;})[_0xd2f47d(0x168)]('\x0a');_0x33a829=_0xd2f47d(0x1d3)+_0x864a6b;}const _0x2e7bc6=_0x2a37e7?.[_0xd2f47d(0x1a2)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x2a37e7[_0xd2f47d(0x1a2)]:'',_0x3b1a5e=_0x2999c6?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x2ad2ce+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':_0xd2f47d(0x196)+_0x57e5fd+'\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',_0x1f54a6=_0x57e5fd?_0x438f18['XCAZF'](quoteShellArg,_0x57e5fd):'',_0x4aa082=_0x2999c6?_0xd2f47d(0x1d0)+_0x51cafc+_0xd2f47d(0x1c9)+_0x51cafc+'\x20tracing-start`,\x20then\x20`'+_0x51cafc+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x398f19+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x51cafc+'\x20snapshot\x20--filename\x20'+_0x24264f+'`\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`'+_0x51cafc+'\x20screenshot\x20--filename\x20'+_0x2f50ba+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x51cafc+_0xd2f47d(0x176):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x51cafc+'\x20open\x20'+_0x1f54a6+'`,\x20then\x20`'+_0x51cafc+_0xd2f47d(0x1cb)+_0x51cafc+_0xd2f47d(0x1a7)+_0x398f19+_0xd2f47d(0x1ae)+_0x51cafc+'\x20snapshot\x20--filename\x20'+_0x24264f+'`\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`'+_0x51cafc+_0xd2f47d(0x193)+_0x2f50ba+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x51cafc+'\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',_0x50a421=_0x2999c6?_0xd2f47d(0x1b0):_0xd2f47d(0x162),_0x49d114=_0x1c71fd?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x1c71fd+'\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'+_0xf6e6a7['description']+_0x4c462d+_0x33a829+_0x2e7bc6+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x42452c+'\x0a\x0a'+_0x3b1a5e+_0x49d114+'\x0a\x0a'+_0x4aa082+_0xd2f47d(0x1d9)+_0x51cafc+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x398f19+_0xd2f47d(0x195)+_0x5cb850+_0xd2f47d(0x18d)+_0x17db7e+_0xd2f47d(0x1d1)+_0x398f19+_0xd2f47d(0x194)+_0x3fd953+_0xd2f47d(0x1d4)+_0x438f18['hxoEZ'](buildCliArtifactPath,_0x398f19,_0x438f18['wvOgf'])+_0xd2f47d(0x1d4)+buildCliArtifactPath(_0x398f19,_0x438f18['zsQqH'])+_0xd2f47d(0x1c7)+buildCliArtifactPath(_0x398f19,_0x438f18['EvLUc'])+_0xd2f47d(0x173)+_0x50a421+'\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(_0x5120ff){const _0x181d0d=_0x3c5b,_0x5c0b2a=[..._0x5120ff[_0x181d0d(0x179)]()]['sort']();let _0x28861a=0x0;for(const _0x42d826 of _0x5120ff['values']()){_0x28861a+=_0x42d826;}return{'cliCommandCount':_0x28861a,'cliCommandsSeen':_0x5c0b2a,'noCliCommandsCalled':_0x28861a===0x0};}export function createVerifyFeatureCliHooks(_0x433b2d){const _0x2e9954=_0x3c5b,_0x1b2eee={'gSDBa':function(_0x1c9fb3,_0x22415a){return _0x1c9fb3!==_0x22415a;},'BHntM':function(_0x2b2008,_0x541968){return _0x2b2008!==_0x541968;},'VsdFK':function(_0x538fae,_0x3b99bf){return _0x538fae(_0x3b99bf);},'DfeGw':_0x2e9954(0x1c3),'kNLvB':_0x2e9954(0x177),'oswRM':_0x2e9954(0x1a0),'JdIxo':function(_0x44900e,_0x206c5b){return _0x44900e!==_0x206c5b;},'eUgti':_0x2e9954(0x185)},_0x528798=new Map(),_0x1ecdd3=async _0xe3eabb=>{const _0x53629=_0x2e9954;if(_0x1b2eee[_0x53629(0x1b6)](_0xe3eabb[_0x53629(0x17d)],_0x53629(0x1c2)))return{};const _0x1b6430=_0xe3eabb;if(_0x1b2eee['BHntM'](_0x1b6430['tool_name'],'Bash'))return{};const _0x32166d=_0x1b6430['tool_input'],_0x338f73=extractBashCommand(_0x32166d);if(!_0x338f73)return{};const _0x5f375b=_0x1b2eee['VsdFK'](parsePlaywrightCliCommand,_0x338f73);if(!_0x5f375b)return{};return _0x528798[_0x53629(0x183)](_0x5f375b,(_0x528798['get'](_0x5f375b)||0x0)+0x1),_0x433b2d['trackPhaseStart'](_0x1b2eee['DfeGw'],{'transport':_0x1b2eee[_0x53629(0x15c)],'toolName':_0x5f375b}),_0x433b2d['trackPhaseEnd'](_0x1b2eee['DfeGw'],{'transport':_0x53629(0x177),'toolName':_0x5f375b,'bashCommandPreview':_0x1b2eee['VsdFK'](truncatePreview,_0x338f73)}),_0x1b2eee['gSDBa'](_0x5f375b,_0x1b2eee['oswRM'])&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x32166d,_0x338f73,_0x5f375b)),{};},_0x13fcf9=async _0x2a19c2=>{const _0xb002f2=_0x2e9954;if(_0x1b2eee[_0xb002f2(0x192)](_0x2a19c2['hook_event_name'],_0xb002f2(0x184)))return{};const _0xdbdbc3=_0x2a19c2;if(_0x1b2eee['JdIxo'](_0xdbdbc3[_0xb002f2(0x175)],_0x1b2eee[_0xb002f2(0x152)]))return{};return await _0x433b2d[_0xb002f2(0x163)](_0xb002f2(0x1a9),_0xdbdbc3['error'],{'transport':'playwright-cli','toolName':_0x1b2eee[_0xb002f2(0x152)]}),{};};return{'postToolUseHook':_0x1ecdd3,'postToolUseFailureHook':_0x13fcf9,'commandCounts':_0x528798};}async function runPlaywrightCliLifecycleCommand(_0x4e8d1d){const _0x114fab=_0x3c5b,_0x14634f={'JhShF':function(_0x122be6,_0x14b2cc){return _0x122be6(_0x14b2cc);},'QRBdE':function(_0x287da4,_0x2de86f,_0x1f212e){return _0x287da4(_0x2de86f,_0x1f212e);}},{sessionId:_0x55eb8c,configPath:_0x5091ed,commandArgs:_0x9677d0,env:_0x1fa632,telemetry:_0x556f6c,phase:_0x4d4b82,metadata:_0x2935d7,timeoutMs:_0x518736}=_0x4e8d1d;_0x556f6c['trackPhaseStart'](_0x4d4b82,_0x2935d7);try{const _0x3b4f94=await _0x14634f['JhShF'](runPlaywrightCliCommand,{'sessionId':_0x55eb8c,'configPath':_0x5091ed,'commandArgs':_0x9677d0,'cwd':process[_0x114fab(0x156)](),'env':_0x1fa632,'timeoutMs':_0x518736??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x556f6c['trackPhaseEnd'](_0x4d4b82,{..._0x2935d7,'subcommand':_0x3b4f94['invocation'][_0x114fab(0x15e)],'stdoutPreview':_0x14634f[_0x114fab(0x17e)](truncatePreview,_0x3b4f94['stdout'],0x7d0),'stderrPreview':_0x14634f[_0x114fab(0x17e)](truncatePreview,_0x3b4f94['stderr'],0x7d0)});}catch(_0x491d3f){await _0x556f6c[_0x114fab(0x163)](_0x4d4b82,_0x491d3f,_0x2935d7);throw _0x491d3f;}}export async function finalizeVerifyFeatureCliSession(_0x1951f4){const _0x429f48=_0x3c5b,_0x488ce8={'jxjdj':'playwright_cli_tracing_stop','vybch':'tracing-stop','vhCYd':_0x429f48(0x1a4),'gmvOK':function(_0x324895,_0x59c861){return _0x324895(_0x59c861);}},{telemetry:_0x3dd284,sessionId:_0x56a85a,configPath:_0x381022,cliArtifactDir:_0x3276d5,env:_0x5be886,transportMetadata:_0x522ba1}=_0x1951f4,_0xc3243a=[{'phase':_0x488ce8[_0x429f48(0x182)],'commandArgs':[_0x488ce8[_0x429f48(0x1b4)]]},{'phase':_0x429f48(0x1db),'commandArgs':[_0x488ce8[_0x429f48(0x1d5)],'--filename='+buildCliArtifactPath(_0x3276d5,_0x429f48(0x16f))]},{'phase':_0x429f48(0x1d6),'commandArgs':['close']}];for(const _0x269da6 of _0xc3243a){try{await _0x488ce8['gmvOK'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x56a85a,'configPath':_0x381022,'commandArgs':[..._0x269da6[_0x429f48(0x18b)]],'env':_0x5be886,'telemetry':_0x3dd284,'phase':_0x269da6['phase'],'metadata':_0x522ba1});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0xef6d22){const _0x236d16=_0x3c5b,_0x3141fd={'jxDwK':_0x236d16(0x157),'ylTdb':function(_0x3ad887,_0x33014d,_0x27c11b){return _0x3ad887(_0x33014d,_0x27c11b);},'XGfdv':function(_0x759bc4,_0x3726bb){return _0x759bc4(_0x3726bb);}},_0x50a75e=[_0x236d16(0x1bd),_0x3141fd['jxDwK']];for(const _0x325f77 of _0x50a75e){const _0x1ddc47=_0x3141fd['ylTdb'](join,_0xef6d22,_0x325f77);try{return{'buffer':await _0x3141fd[_0x236d16(0x180)](readFile,_0x1ddc47),'source':_0x1ddc47};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x1ec1a5){const _0x346e99=_0x3c5b,_0x25d17={'FooaT':function(_0x5c44f3,_0xaef102,_0x206e59){return _0x5c44f3(_0xaef102,_0x206e59);},'ufjbM':function(_0x46b9c3,_0x5dec11){return _0x46b9c3<_0x5dec11;},'SxJIY':function(_0x221cea,_0x2349fd,_0x40d903){return _0x221cea(_0x2349fd,_0x40d903);},'FrDaw':function(_0x4a4957,_0xa7e021,_0x33c0f2){return _0x4a4957(_0xa7e021,_0x33c0f2);}},{cwd:_0x4cf4f1,cliArtifactDir:_0x125e9b,startTime:_0x256ab4}=_0x1ec1a5,_0x6a8e5=[];await mkdir(_0x125e9b,{'recursive':!![]});const _0x25b5e4=await _0x25d17['FooaT'](readdir,_0x4cf4f1,{'withFileTypes':!![]});for(const _0x292ab1 of _0x25b5e4){if(!_0x292ab1[_0x346e99(0x19b)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x292ab1['name']))continue;const _0x54d0c9=join(_0x4cf4f1,_0x292ab1['name']),_0x1eecd7=await stat(_0x54d0c9);if(_0x25d17[_0x346e99(0x171)](_0x1eecd7['mtimeMs']+0x7d0,_0x256ab4))continue;const _0x11cf3a=_0x25d17[_0x346e99(0x18e)](buildCliArtifactPath,_0x125e9b,_0x292ab1[_0x346e99(0x1cd)]);if(_0x54d0c9===_0x11cf3a)continue;await _0x25d17[_0x346e99(0x16b)](rename,_0x54d0c9,_0x11cf3a),_0x6a8e5[_0x346e99(0x1ad)](_0x292ab1[_0x346e99(0x1cd)]);}return _0x6a8e5[_0x346e99(0x1ce)]();}
1
+ (function(_0xe1d038,_0x49fdde){const _0x3ce8e3=_0x4b8d,_0x526063=_0xe1d038();while(!![]){try{const _0x3c83d0=-parseInt(_0x3ce8e3(0x1e5))/0x1*(parseInt(_0x3ce8e3(0x1d5))/0x2)+-parseInt(_0x3ce8e3(0x1a8))/0x3*(parseInt(_0x3ce8e3(0x1d3))/0x4)+parseInt(_0x3ce8e3(0x20d))/0x5+parseInt(_0x3ce8e3(0x1da))/0x6+parseInt(_0x3ce8e3(0x1ab))/0x7+parseInt(_0x3ce8e3(0x1fe))/0x8+-parseInt(_0x3ce8e3(0x1bf))/0x9*(parseInt(_0x3ce8e3(0x1bc))/0xa);if(_0x3c83d0===_0x49fdde)break;else _0x526063['push'](_0x526063['shift']());}catch(_0xad45be){_0x526063['push'](_0x526063['shift']());}}}(_0x53b7,0xadaae));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(_0x3b80ce,_0x4e7897=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x41ba7b=_0x4b8d,_0x52566c={'TAfmD':function(_0x58b5a3,_0x3697c5){return _0x58b5a3>_0x3697c5;},'DXmNw':_0x41ba7b(0x19f)};return _0x52566c['TAfmD'](_0x3b80ce[_0x41ba7b(0x1e8)],_0x4e7897)?_0x3b80ce['slice'](0x0,_0x4e7897)+_0x52566c[_0x41ba7b(0x210)]:_0x3b80ce;}function buildCliArtifactPath(_0x4d970b,_0x2290e0){const _0x4b7c53={'slQmp':function(_0x2f1269,_0x32b24d,_0x24e2a7){return _0x2f1269(_0x32b24d,_0x24e2a7);}};return _0x4b7c53['slQmp'](join,_0x4d970b,_0x2290e0);}function toStepDisplayName(_0x4308aa){const _0x7192e3=_0x4b8d,_0x3f587e=basename(_0x4308aa)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x7192e3(0x1eb)](/^key_/i,'')[_0x7192e3(0x1eb)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x3f587e,'isKeyStep':/^key_/i['test'](basename(_0x4308aa))};}function extractShellValue(_0x5eba1f){if(!_0x5eba1f)return null;return _0x5eba1f[0x1]??_0x5eba1f[0x2]??_0x5eba1f[0x3]??null;}function extractFilenameOption(_0x1c7e4f){return extractShellValue(_0x1c7e4f['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x50004c,_0x897b0){const _0x6d646f=_0x4b8d,_0x3ed8a2={'sTzXS':'\x5c$&'},_0x33d713=_0x897b0[_0x6d646f(0x1eb)](/[.*+?^${}()|[\]\\]/g,_0x3ed8a2['sTzXS']);return extractShellValue(_0x50004c[_0x6d646f(0x1b8)](new RegExp('(?:^|\x5cs)'+_0x33d713+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function _0x53b7(){const _0x47fad7=['tool_call','select\x20tab\x20','click','21JIKxTr','press','FEECH','4279464BLHbJH','start\x20tracing','open\x20browser','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','kBIrC','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','eqJJh','\x20snapshot\x20--filename\x20','tool_name','02_learn-more.yml','open\x20new\x20tab','fill','error','match','EYpvn','string','\x20tracing-start`\x0a3.\x20Run\x20`','728040ncvjaR','textContent','test','153ONcDoU','tab-new','keys','toLocaleDateString','en-US','\x0a\x0a##\x20Additional\x20Notes\x0a','capture\x20key\x20step\x20`','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','authorEmail','haPUK','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','ShOhL','capture\x20snapshot','xzkha','video-start','\x22,\x20\x22','lzGlt','DxxOR','capture\x20snapshot\x20`','trace.trace.zip','87436ieDupY','element','304006eNFiTB','trackPhaseError','sZJLM','02_button-clicked.png','sort','4317468CbtIIf','authorName','subcommand','\x20tracing-start`,\x20then\x20`','gFmIv','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','yAwCJ','EKwnM','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','trace.zip','\x20(on\x20element:\x20<','8MfpwfA','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','\x20>\x20','length','00_mozilla-homepage.yml','playwright_cli_close','replace','content','baoqK','`\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','target','values','trim','check\x20','PTuQQ','tracing-stop','YjacU','key_03_success-state.png','FHCiD','zbtNi','stderr','session-recording.webm','playwright_cli_video_stop','push','short','10322488Gmwqia','RECCz','playwright-cli','-\x20[','GIKaL','SBvYM','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','>\x20\x22','createdAt','key_04_success-state.png','VHAHr','description','):\x20\x22','ref\x20','phase','3484030CFYFaK','trackPhaseStart','click\x20','DXmNw','jdNLN','selector','ajkvI','domRef','tool_input','pCCnW','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','BDmVw','gRNrj','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','fill\x20','trackPhaseEnd','open\x20new\x20tab\x20','[playwright-cli]\x20','numeric','name','start\x20video\x20recording','\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.','...','03_result-visible.png','Bash','capture\x20step\x20`','hYLNI','log'];_0x53b7=function(){return _0x47fad7;};return _0x53b7();}function formatCommandTarget(_0x102bb8){const _0x386131=_0x4b8d,_0x1eeffb={'FSwOB':function(_0x3e3b65,_0x3353b6,_0x4a3937){return _0x3e3b65(_0x3353b6,_0x4a3937);}};if(!_0x102bb8)return _0x386131(0x1ef);if(/^e\d+$/i[_0x386131(0x1be)](_0x102bb8))return _0x386131(0x20b)+_0x102bb8;return JSON['stringify'](_0x1eeffb['FSwOB'](truncatePreview,_0x102bb8,0x78));}function formatPlaywrightCliLog(_0x117661,_0x3146f8){const _0x1104a2=_0x4b8d,_0x3ff8fd={'eqJJh':'open','Gmujj':'stop\x20tracing','bXprQ':_0x1104a2(0x1cd),'kKByj':_0x1104a2(0x19d),'PHlEe':'stop\x20video\x20recording','VHAHr':function(_0x2b9f1a,_0x52068c){return _0x2b9f1a(_0x52068c);},'kvBRJ':'capture\x20screenshot','GIKaL':function(_0x1a8fe3,_0x455983){return _0x1a8fe3(_0x455983);},'FHCiD':function(_0x4ebcec,_0x371a72,_0x26180f){return _0x4ebcec(_0x371a72,_0x26180f);},'DxxOR':'check','EYpvn':function(_0x4bed07,_0x221a75,_0xb17089){return _0x4bed07(_0x221a75,_0xb17089);},'PTgKW':_0x1104a2(0x1b6),'EKwnM':_0x1104a2(0x1a9),'sZJLM':function(_0xfa61e8,_0x27ddfe,_0x5a2809){return _0xfa61e8(_0x27ddfe,_0x5a2809);},'BWewN':'run-code','zbtNi':'run\x20custom\x20Playwright\x20code','Phvxt':_0x1104a2(0x1b5),'gdvAZ':'select\x20tab'};switch(_0x3146f8){case _0x3ff8fd[_0x1104a2(0x1b1)]:{const _0x21a4f3=extractFirstCommandArgument(_0x117661,_0x3146f8);return _0x21a4f3?'open\x20'+_0x21a4f3:_0x1104a2(0x1ad);}case'tracing-start':return _0x1104a2(0x1ac);case'tracing-stop':return _0x3ff8fd['Gmujj'];case _0x3ff8fd['bXprQ']:return _0x3ff8fd['kKByj'];case'video-stop':return _0x3ff8fd['PHlEe'];case'snapshot':{const _0x4d0d1b=_0x3ff8fd['VHAHr'](extractFilenameOption,_0x117661);if(!_0x4d0d1b)return _0x1104a2(0x1cb);const {name:_0x52b29f}=toStepDisplayName(_0x4d0d1b);return _0x1104a2(0x1d1)+_0x52b29f+'`';}case'screenshot':{const _0x409eb7=extractFilenameOption(_0x117661);if(!_0x409eb7)return _0x3ff8fd['kvBRJ'];const {name:_0xce9829,isKeyStep:_0x4193a9}=_0x3ff8fd[_0x1104a2(0x202)](toStepDisplayName,_0x409eb7);return _0x4193a9?_0x1104a2(0x1c5)+_0xce9829+'`':_0x1104a2(0x1a2)+_0xce9829+'`';}case _0x1104a2(0x1a7):return _0x1104a2(0x20f)+formatCommandTarget(_0x3ff8fd[_0x1104a2(0x1f7)](extractFirstCommandArgument,_0x117661,_0x3146f8));case _0x3ff8fd[_0x1104a2(0x1d0)]:return _0x1104a2(0x1f2)+formatCommandTarget(_0x3ff8fd[_0x1104a2(0x1b9)](extractFirstCommandArgument,_0x117661,_0x3146f8));case _0x3ff8fd['PTgKW']:return _0x1104a2(0x197)+_0x3ff8fd['VHAHr'](formatCommandTarget,extractFirstCommandArgument(_0x117661,_0x3146f8));case _0x3ff8fd[_0x1104a2(0x1e1)]:return'press\x20'+_0x3ff8fd[_0x1104a2(0x208)](formatCommandTarget,_0x3ff8fd[_0x1104a2(0x1d7)](extractFirstCommandArgument,_0x117661,_0x3146f8));case _0x3ff8fd['BWewN']:return _0x3ff8fd[_0x1104a2(0x1f8)];case _0x1104a2(0x1c0):{const _0xb53141=extractFirstCommandArgument(_0x117661,_0x3146f8);return _0xb53141?_0x1104a2(0x199)+_0xb53141:_0x3ff8fd['Phvxt'];}case'tab-select':{const _0x2b76d0=_0x3ff8fd['FHCiD'](extractFirstCommandArgument,_0x117661,_0x3146f8);return _0x2b76d0?_0x1104a2(0x1a6)+_0x2b76d0:_0x3ff8fd['gdvAZ'];}default:return _0x3146f8;}}function extractPlaywrightCliToolDescription(_0x35f158){const _0x665ad2=_0x4b8d,_0x5be716={'RECCz':function(_0x16201a,_0x5dc5c3){return _0x16201a!==_0x5dc5c3;},'baoqK':function(_0x178c14,_0x3cb215){return _0x178c14>_0x3cb215;}},_0x2e8fae=_0x35f158['description'];if(_0x5be716[_0x665ad2(0x1ff)](typeof _0x2e8fae,_0x665ad2(0x1ba)))return null;const _0x1a28dc=_0x2e8fae[_0x665ad2(0x1f1)]()[_0x665ad2(0x1eb)](/\s+/g,'\x20');return _0x5be716[_0x665ad2(0x1ed)](_0x1a28dc[_0x665ad2(0x1e8)],0x0)?_0x1a28dc:null;}export function formatPlaywrightCliConsoleLogMessage(_0x3a3965,_0x423470,_0x2525e3){const _0x3b5dc5=_0x4b8d,_0x4ea422={'oLUbh':function(_0x58b3fc,_0x7c7c87,_0x1a6753){return _0x58b3fc(_0x7c7c87,_0x1a6753);}},_0x2155df=_0x4ea422['oLUbh'](formatPlaywrightCliLog,_0x423470,_0x2525e3),_0x2c6536=extractPlaywrightCliToolDescription(_0x3a3965);if(!_0x2c6536)return _0x3b5dc5(0x19a)+_0x2155df;if(process['env']['DEBUG'])return'[ranger-verification-agent]\x20'+_0x2c6536+'\x20('+_0x2155df+')';return'[ranger-verification-agent]\x20'+_0x2c6536;}export function buildVerifyFeatureCliDebugPrompt(_0x3f7dcd,_0x86775a){const _0xf8ffb7=_0x4b8d,_0x407c1c={'BXXfq':function(_0x3be1dd,_0x19c4d6,_0x15ea6a){return _0x3be1dd(_0x19c4d6,_0x15ea6a);},'yAwCJ':_0xf8ffb7(0x1b4),'kdNIy':function(_0x3528d8,_0xf984c3,_0xf40542){return _0x3528d8(_0xf984c3,_0xf40542);},'haPUK':'03_learn-more.png','gRNrj':function(_0x4fbda1,_0x6ed09e){return _0x4fbda1(_0x6ed09e);},'njQOG':function(_0x24b19e,_0x1bd092){return _0x24b19e(_0x1bd092);}},_0x370d55=buildCliArtifactPath(_0x86775a,_0xf8ffb7(0x1e9)),_0x4848e9=_0x407c1c['BXXfq'](buildCliArtifactPath,_0x86775a,'01_mozilla-homepage.png'),_0x3771e7=buildCliArtifactPath(_0x86775a,_0x407c1c[_0xf8ffb7(0x1e0)]),_0x1b968e=_0x407c1c['kdNIy'](buildCliArtifactPath,_0x86775a,_0x407c1c[_0xf8ffb7(0x1c8)]),_0x1e6d4a=quoteShellArg(_0x370d55),_0xfe5401=_0x407c1c[_0xf8ffb7(0x194)](quoteShellArg,_0x4848e9),_0x8f36bf=_0x407c1c['njQOG'](quoteShellArg,_0x3771e7),_0x52f63e=quoteShellArg(_0x1b968e);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x3f7dcd+'\x0a\x0a1.\x20Run\x20`'+_0x3f7dcd+_0xf8ffb7(0x195)+_0x3f7dcd+_0xf8ffb7(0x1bb)+_0x3f7dcd+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x86775a+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x3f7dcd+_0xf8ffb7(0x1b2)+_0x1e6d4a+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x3f7dcd+'\x20screenshot\x20--filename\x20'+_0xfe5401+_0xf8ffb7(0x1df)+_0x3f7dcd+'\x20snapshot\x20--filename\x20'+_0x8f36bf+'`\x0a9.\x20Run\x20`'+_0x3f7dcd+'\x20screenshot\x20--filename\x20'+_0x52f63e+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x908b84){const _0xe70df1=_0x4b8d,_0x2999aa={'FtVDm':_0xe70df1(0x1c3),'xzkha':'01_initial.yml','xQbRV':_0xe70df1(0x1f6),'YTQIU':function(_0x422f05,_0x46281e){return _0x422f05(_0x46281e);},'SBvYM':function(_0x59ba21,_0x3926f4){return _0x59ba21>_0x3926f4;},'PzfJH':function(_0x7261cd,_0xfea592,_0x25cc8e){return _0x7261cd(_0xfea592,_0x25cc8e);},'AFcqz':_0xe70df1(0x1a0),'YjacU':_0xe70df1(0x207)},{checklistItem:_0x2e4aa5,itemFeedback:_0x393442,taskDescription:_0x2c45a6,cliCommandPrefix:_0x5a0770,cliArtifactDir:_0x2e6fec,isCdpMode:_0xbaa477,url:_0x233172,cdpEndpoint:_0x4024b2,loginInstructions:_0x2e250b}=_0x908b84,_0x48cfe6=buildCliArtifactPath(_0x2e6fec,_0x2999aa[_0xe70df1(0x1cc)]),_0x2b74f9=buildCliArtifactPath(_0x2e6fec,'02_state.yml'),_0x487b21=buildCliArtifactPath(_0x2e6fec,_0x2999aa['xQbRV']),_0x117089=buildCliArtifactPath(_0x2e6fec,'01_initial-state.png'),_0x2d4ddf=quoteShellArg(_0x48cfe6),_0x1dab3f=quoteShellArg(_0x2b74f9),_0x36655e=_0x2999aa['YTQIU'](quoteShellArg,_0x487b21),_0x443d61=quoteShellArg(_0x117089),_0x183248=_0x2e4aa5['notes']?_0xe70df1(0x1c4)+_0x2e4aa5['notes']:'';let _0x139d31='';if(_0x393442&&_0x2999aa[_0xe70df1(0x203)](_0x393442['unaddressedComments']['length'],0x0)){const _0x5310b6=_0x393442['unaddressedComments']['map'](_0x32a2f8=>{const _0x329062=_0xe70df1,_0x3d87bc=new Date(_0x32a2f8[_0x329062(0x206)])[_0x329062(0x1c2)](_0x2999aa['FtVDm'],{'month':_0x329062(0x1fd),'day':_0x329062(0x19b)}),_0x46f579=_0x32a2f8[_0x329062(0x1db)]||_0x32a2f8[_0x329062(0x1c7)]||'Reviewer',_0x8a01cb=_0x32a2f8[_0x329062(0x214)]?_0x329062(0x1e4)+(_0x32a2f8[_0x329062(0x214)][_0x329062(0x212)]['split'](_0x329062(0x1e7))['pop']()?.['split'](':')[0x0]||_0x329062(0x1d4))+_0x329062(0x205)+(_0x32a2f8[_0x329062(0x214)][_0x329062(0x1bd)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x329062(0x201)+_0x32a2f8['id']+']\x20**'+_0x46f579+'**\x20('+_0x3d87bc+_0x329062(0x20a)+_0x32a2f8[_0x329062(0x1ec)]+'\x22'+_0x8a01cb;})['join']('\x0a');_0x139d31='\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'+_0x5310b6;}const _0x6a5f4f=_0x393442?.['canonicalFlow']?_0xe70df1(0x1e6)+_0x393442['canonicalFlow']:'',_0x593413=_0xbaa477?_0xe70df1(0x1c6)+_0x4024b2+_0xe70df1(0x1ae):_0xe70df1(0x1b0)+_0x233172+'\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',_0x2cd044=_0x233172?_0x2999aa['YTQIU'](quoteShellArg,_0x233172):'',_0x9599eb=_0xbaa477?_0xe70df1(0x1c9)+_0x5a0770+'\x20open`,\x20then\x20`'+_0x5a0770+'\x20tracing-start`,\x20then\x20`'+_0x5a0770+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2e6fec+_0xe70df1(0x1e2)+_0x5a0770+'\x20snapshot\x20--filename\x20'+_0x2d4ddf+'`\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`'+_0x5a0770+'\x20screenshot\x20--filename\x20'+_0x443d61+_0xe70df1(0x192)+_0x5a0770+'\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a7.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a8.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario':'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x5a0770+'\x20open\x20'+_0x2cd044+'`,\x20then\x20`'+_0x5a0770+_0xe70df1(0x1dd)+_0x5a0770+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2e6fec+_0xe70df1(0x1e2)+_0x5a0770+_0xe70df1(0x1b2)+_0x2d4ddf+'`\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`'+_0x5a0770+'\x20screenshot\x20--filename\x20'+_0x443d61+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x5a0770+'\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',_0x361f95=_0xbaa477?'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20taking\x20the\x20initial\x20snapshot,\x20IMMEDIATELY\x20check\x20for\x20blocking\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20Crash\x20or\x20error\x20dialogs\x20(\x22An\x20error\x20occurred\x22,\x20\x22Something\x20went\x20wrong\x22,\x20unhandled\x20exception\x20messages)\x0a-\x20Blank\x20or\x20empty\x20window\x20with\x20no\x20rendered\x20content\x0a-\x20Framework\x20error\x20boundaries\x20(React\x20error\x20page,\x20Electron\x20crash\x20reporter)\x0a-\x20Unresponsive\x20or\x20frozen\x20UI\x20(no\x20interactive\x20elements\x20in\x20snapshot)\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22App\x20crashed\x20—\x20error\x20dialog\x20visible\x20on\x20launch\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20type:\x20\x22APP_ERROR\x22\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.':'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.',_0x1737ec=_0x2e250b?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x2e250b+_0xe70df1(0x19e):'';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'+_0x2e4aa5[_0xe70df1(0x209)]+_0x183248+_0x139d31+_0x6a5f4f+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x2c45a6+'\x0a\x0a'+_0x593413+_0x1737ec+'\x0a\x0a'+_0x9599eb+_0xe70df1(0x204)+_0x5a0770+_0xe70df1(0x196)+_0x2e6fec+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x1dab3f+_0xe70df1(0x1ee)+_0x36655e+'`\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`'+_0x2e6fec+'`:\x20\x22'+_0x117089+'\x22,\x20\x22'+_0x2999aa['PzfJH'](buildCliArtifactPath,_0x2e6fec,_0xe70df1(0x1d8))+_0xe70df1(0x1ce)+buildCliArtifactPath(_0x2e6fec,_0x2999aa['AFcqz'])+'\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(_0x2e6fec,_0x2999aa[_0xe70df1(0x1f5)])+'\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'+_0x361f95+'\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(_0x4d9798){const _0x4b3987=_0x4b8d,_0x2f7615={'pCCnW':function(_0x20b1c4,_0x5bac7a){return _0x20b1c4===_0x5bac7a;}},_0x1bb438=[..._0x4d9798[_0x4b3987(0x1c1)]()][_0x4b3987(0x1d9)]();let _0x2a9261=0x0;for(const _0x50976a of _0x4d9798[_0x4b3987(0x1f0)]()){_0x2a9261+=_0x50976a;}return{'cliCommandCount':_0x2a9261,'cliCommandsSeen':_0x1bb438,'noCliCommandsCalled':_0x2f7615[_0x4b3987(0x191)](_0x2a9261,0x0)};}function _0x4b8d(_0x804fbd,_0x34bb82){_0x804fbd=_0x804fbd-0x190;const _0x53b709=_0x53b7();let _0x4b8d72=_0x53b709[_0x804fbd];return _0x4b8d72;}export function createVerifyFeatureCliHooks(_0x4542b2){const _0x5c475b=_0x4b8d,_0x2e8591={'PTuQQ':function(_0x12bcfd,_0x4a2844){return _0x12bcfd!==_0x4a2844;},'ShOhL':function(_0x2126a4,_0x37bd67){return _0x2126a4(_0x37bd67);},'gFmIv':function(_0x524b76,_0x2c7b6d){return _0x524b76+_0x2c7b6d;},'jdNLN':_0x5c475b(0x1a5),'kBIrC':'snapshot','ajkvI':'PostToolUseFailure','nminu':_0x5c475b(0x1a1),'FEECH':'tool_failure','hYLNI':_0x5c475b(0x200)},_0x2477bc=new Map(),_0x5d5a51=async _0x549b1b=>{const _0x2498a1=_0x5c475b;if(_0x2e8591[_0x2498a1(0x1f3)](_0x549b1b['hook_event_name'],'PostToolUse'))return{};const _0x287c17=_0x549b1b;if(_0x287c17[_0x2498a1(0x1b3)]!=='Bash')return{};const _0x356924=_0x287c17[_0x2498a1(0x190)],_0x5c2170=_0x2e8591[_0x2498a1(0x1ca)](extractBashCommand,_0x356924);if(!_0x5c2170)return{};const _0x237990=parsePlaywrightCliCommand(_0x5c2170);if(!_0x237990)return{};return _0x2477bc['set'](_0x237990,_0x2e8591[_0x2498a1(0x1de)](_0x2477bc['get'](_0x237990)||0x0,0x1)),_0x4542b2[_0x2498a1(0x20e)](_0x2498a1(0x1a5),{'transport':'playwright-cli','toolName':_0x237990}),_0x4542b2['trackPhaseEnd'](_0x2e8591[_0x2498a1(0x211)],{'transport':_0x2498a1(0x200),'toolName':_0x237990,'bashCommandPreview':truncatePreview(_0x5c2170)}),_0x2e8591[_0x2498a1(0x1f3)](_0x237990,_0x2e8591[_0x2498a1(0x1af)])&&console[_0x2498a1(0x1a4)](formatPlaywrightCliConsoleLogMessage(_0x356924,_0x5c2170,_0x237990)),{};},_0x378dc7=async _0xa21d2e=>{const _0x40496f=_0x5c475b;if(_0xa21d2e['hook_event_name']!==_0x2e8591[_0x40496f(0x213)])return{};const _0x1e74f7=_0xa21d2e;if(_0x2e8591['PTuQQ'](_0x1e74f7[_0x40496f(0x1b3)],_0x2e8591['nminu']))return{};return await _0x4542b2[_0x40496f(0x1d6)](_0x2e8591[_0x40496f(0x1aa)],_0x1e74f7[_0x40496f(0x1b7)],{'transport':_0x2e8591[_0x40496f(0x1a3)],'toolName':_0x40496f(0x1a1)}),{};};return{'postToolUseHook':_0x5d5a51,'postToolUseFailureHook':_0x378dc7,'commandCounts':_0x2477bc};}async function runPlaywrightCliLifecycleCommand(_0x44eeff){const _0x50b208=_0x4b8d,{sessionId:_0x3945f4,configPath:_0x3e3fe4,commandArgs:_0x5de05f,env:_0x5929d3,telemetry:_0x40e74d,phase:_0x1e88d1,metadata:_0x37521a,timeoutMs:_0x7a69d1}=_0x44eeff;_0x40e74d['trackPhaseStart'](_0x1e88d1,_0x37521a);try{const _0x4fe407=await runPlaywrightCliCommand({'sessionId':_0x3945f4,'configPath':_0x3e3fe4,'commandArgs':_0x5de05f,'cwd':process['cwd'](),'env':_0x5929d3,'timeoutMs':_0x7a69d1??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x40e74d[_0x50b208(0x198)](_0x1e88d1,{..._0x37521a,'subcommand':_0x4fe407['invocation'][_0x50b208(0x1dc)],'stdoutPreview':truncatePreview(_0x4fe407['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x4fe407[_0x50b208(0x1f9)],0x7d0)});}catch(_0x34d1bc){await _0x40e74d['trackPhaseError'](_0x1e88d1,_0x34d1bc,_0x37521a);throw _0x34d1bc;}}export async function finalizeVerifyFeatureCliSession(_0x5497fc){const _0x223219=_0x4b8d,_0x152217={'KpejX':_0x223219(0x1fa),'abuoN':'close'},{telemetry:_0x3e85e9,sessionId:_0x54c230,configPath:_0x871463,cliArtifactDir:_0xd42765,env:_0xb64554,transportMetadata:_0x3a5757}=_0x5497fc,_0x423d48=[{'phase':'playwright_cli_tracing_stop','commandArgs':[_0x223219(0x1f4)]},{'phase':_0x223219(0x1fb),'commandArgs':['video-stop','--filename='+buildCliArtifactPath(_0xd42765,_0x152217['KpejX'])]},{'phase':_0x223219(0x1ea),'commandArgs':[_0x152217['abuoN']]}];for(const _0x5607d2 of _0x423d48){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x54c230,'configPath':_0x871463,'commandArgs':[..._0x5607d2['commandArgs']],'env':_0xb64554,'telemetry':_0x3e85e9,'phase':_0x5607d2[_0x223219(0x20c)],'metadata':_0x3a5757});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x1f50d4){const _0x1a89fe=_0x4b8d,_0x15bc9f={'quDaH':_0x1a89fe(0x1d2)},_0x22ff5d=[_0x1a89fe(0x1e3),_0x15bc9f['quDaH']];for(const _0x2e6fbf of _0x22ff5d){const _0x93b904=join(_0x1f50d4,_0x2e6fbf);try{return{'buffer':await readFile(_0x93b904),'source':_0x93b904};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x33a573){const _0x544946=_0x4b8d,_0x41d7ca={'BDmVw':function(_0x3fc671,_0x4cc099,_0x3c1ac7){return _0x3fc671(_0x4cc099,_0x3c1ac7);},'lzGlt':function(_0x1559fd,_0x50fa75){return _0x1559fd(_0x50fa75);},'qlgtD':function(_0x26728c,_0x557ecd){return _0x26728c+_0x557ecd;}},{cwd:_0x5f458f,cliArtifactDir:_0x9ad536,startTime:_0x134a4c}=_0x33a573,_0x3ebb9f=[];await mkdir(_0x9ad536,{'recursive':!![]});const _0x2931b9=await _0x41d7ca[_0x544946(0x193)](readdir,_0x5f458f,{'withFileTypes':!![]});for(const _0xed71e of _0x2931b9){if(!_0xed71e['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x544946(0x1be)](_0xed71e['name']))continue;const _0x18c351=_0x41d7ca['BDmVw'](join,_0x5f458f,_0xed71e[_0x544946(0x19c)]),_0x3fefca=await _0x41d7ca[_0x544946(0x1cf)](stat,_0x18c351);if(_0x41d7ca['qlgtD'](_0x3fefca['mtimeMs'],0x7d0)<_0x134a4c)continue;const _0x5e7486=buildCliArtifactPath(_0x9ad536,_0xed71e['name']);if(_0x18c351===_0x5e7486)continue;await _0x41d7ca['BDmVw'](rename,_0x18c351,_0x5e7486),_0x3ebb9f[_0x544946(0x1fc)](_0xed71e['name']);}return _0x3ebb9f[_0x544946(0x1d9)]();}
@@ -1 +1 @@
1
- const _0x5af6d8=_0x1fb7;(function(_0x19ba73,_0x69de84){const _0x58ddf4=_0x1fb7,_0x41d0e3=_0x19ba73();while(!![]){try{const _0x53b8ad=-parseInt(_0x58ddf4(0x157))/0x1*(parseInt(_0x58ddf4(0x1ad))/0x2)+parseInt(_0x58ddf4(0x156))/0x3*(-parseInt(_0x58ddf4(0x17f))/0x4)+parseInt(_0x58ddf4(0x140))/0x5+parseInt(_0x58ddf4(0x195))/0x6+parseInt(_0x58ddf4(0x16c))/0x7+-parseInt(_0x58ddf4(0x179))/0x8+parseInt(_0x58ddf4(0x1de))/0x9;if(_0x53b8ad===_0x69de84)break;else _0x41d0e3['push'](_0x41d0e3['shift']());}catch(_0x19603c){_0x41d0e3['push'](_0x41d0e3['shift']());}}}(_0x5803,0xcd0d6));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([_0x5af6d8(0x13e),'execute','verify','ask','goto',_0x5af6d8(0x14a),_0x5af6d8(0x1e1),'screenshot']),execFileAsync=promisify(execFile);function _0x1fb7(_0x307070,_0x7c34e8){_0x307070=_0x307070-0x120;const _0x58036d=_0x5803();let _0x1fb786=_0x58036d[_0x307070];return _0x1fb786;}function buildCliArtifactPath(_0xfc0f88,_0x51846a){const _0x29b09d=_0x5af6d8,_0x12fac1={'aLHPq':function(_0x5ed98f,_0x244171,_0x376248){return _0x5ed98f(_0x244171,_0x376248);}};return _0x12fac1[_0x29b09d(0x19a)](join,_0xfc0f88,_0x51846a);}export class NovaActArtifactRecorder{[_0x5af6d8(0x1be)];['browser']=null;['context']=null;['frameSession']=null;['frameWrites']=[];[_0x5af6d8(0x189)]=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;['traceSampleInFlight']=null;[_0x5af6d8(0x1b4)]=![];[_0x5af6d8(0x138)]=![];[_0x5af6d8(0x1c1)]=![];['stopped']=![];constructor(_0x656617){const _0x56e288=_0x5af6d8;this[_0x56e288(0x1be)]=_0x656617;}async[_0x5af6d8(0x1bf)](){const _0x2e8b17=_0x5af6d8,_0x348992={'FEzTe':_0x2e8b17(0x1b9)};if(this['startAttempted'])return;this[_0x2e8b17(0x1c1)]=!![];const _0x39fc6b=await this[_0x2e8b17(0x12b)](),_0x5cde2a=_0x39fc6b[_0x2e8b17(0x192)];if(!_0x5cde2a)throw new Error(_0x2e8b17(0x1d5)+this['params']['novaOptions'][_0x2e8b17(0x1a5)]);await mkdir(this['params'][_0x2e8b17(0x13f)],{'recursive':!![]}),this[_0x2e8b17(0x177)]=await chromium[_0x2e8b17(0x19c)](_0x5cde2a,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this[_0x2e8b17(0x177)]['contexts']()[0x0]??null;if(!this['context'])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this[_0x2e8b17(0x15f)][_0x2e8b17(0x17a)]['start']({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this['startTraceSampling'](),await this[_0x2e8b17(0x129)](),this[_0x2e8b17(0x1be)][_0x2e8b17(0x1e5)]['trackPhaseStart'](_0x348992[_0x2e8b17(0x1e9)],{...this['params']['transportMetadata'],'cdpEndpoint':_0x5cde2a,'browserPid':_0x39fc6b['browser_pid'],'sessionState':_0x39fc6b['state']}),this[_0x2e8b17(0x1be)][_0x2e8b17(0x1e5)][_0x2e8b17(0x147)](_0x348992[_0x2e8b17(0x1e9)],{...this['params']['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x35e4a6=_0x5af6d8,_0x41ceb9={'Xkkay':'nova_act_artifact_recording_stop','MGdLa':function(_0x383cbb,_0x25c50f,_0xd03016){return _0x383cbb(_0x25c50f,_0xd03016);}};if(this[_0x35e4a6(0x136)])return;this[_0x35e4a6(0x136)]=!![];const _0x4b3ad6={...this[_0x35e4a6(0x1be)][_0x35e4a6(0x1dc)],'frameCount':this['frameCount'],'traceSampleCount':this[_0x35e4a6(0x19b)],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']};this['params']['telemetry']['trackPhaseStart'](_0x41ceb9['Xkkay'],_0x4b3ad6);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this['stopScreencast'](),await Promise[_0x35e4a6(0x188)](this[_0x35e4a6(0x191)]);this['context']&&this[_0x35e4a6(0x1b4)]&&await this['context']['tracing'][_0x35e4a6(0x161)]({'path':_0x41ceb9['MGdLa'](buildCliArtifactPath,this[_0x35e4a6(0x1be)][_0x35e4a6(0x13f)],_0x35e4a6(0x1dd))});const _0x166590=await this['encodeScreencastVideo']();this['params'][_0x35e4a6(0x1e5)]['trackPhaseEnd'](_0x41ceb9[_0x35e4a6(0x17c)],{..._0x4b3ad6,'videoPath':_0x166590});}catch(_0x2e1da6){await this['params'][_0x35e4a6(0x1e5)]['trackPhaseError'](_0x35e4a6(0x1a4),_0x2e1da6,_0x4b3ad6);}finally{await this['browser']?.['close']()['catch'](()=>undefined),this['browser']=null,this[_0x35e4a6(0x15f)]=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0x5f46b0=_0x5af6d8,_0x432412={'SVsgB':function(_0x23b17c,_0x2ec946,_0x5c0a24,_0x44f2db,_0x2c28b7,_0x35a5c5){return _0x23b17c(_0x2ec946,_0x5c0a24,_0x44f2db,_0x2c28b7,_0x35a5c5);},'KaGBT':_0x5f46b0(0x150),'JSHqZ':function(_0x319f6e,_0x5ef3c5){return _0x319f6e(_0x5ef3c5);}},_0x3160f9=_0x432412[_0x5f46b0(0x121)](join,homedir(),'.act_cli',_0x5f46b0(0x177),_0x432412['KaGBT'],this[_0x5f46b0(0x1be)][_0x5f46b0(0x14e)]['sessionId']+_0x5f46b0(0x1ba)),_0x27af06=Date[_0x5f46b0(0x13d)]();let _0x5827e5;do{try{const _0x5240d2=JSON['parse'](await readFile(_0x3160f9,'utf-8'));if(_0x5240d2['cdp_endpoint'])return _0x5240d2;_0x5827e5=new Error(_0x5f46b0(0x15d)+_0x3160f9);}catch(_0x1a598b){_0x5827e5=_0x1a598b;}await _0x432412[_0x5f46b0(0x170)](delay,0x64);}while(Date['now']()-_0x27af06<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x5827e5 instanceof Error)throw _0x5827e5;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x3160f9);}async[_0x5af6d8(0x129)](){const _0x29a1bb=_0x5af6d8,_0x3ead21={'rmxtO':function(_0x2ef348,_0x51457f,_0x41c647){return _0x2ef348(_0x51457f,_0x41c647);},'HUGAs':_0x29a1bb(0x163)};if(!this['context'])return;const _0x1a4ebe=this[_0x29a1bb(0x15f)][_0x29a1bb(0x1a7)]()[0x0];if(!_0x1a4ebe)return;const _0x228f3b=this['getFrameDir']();await mkdir(_0x228f3b,{'recursive':!![]});const _0x24898c=await this[_0x29a1bb(0x15f)][_0x29a1bb(0x1bb)](_0x1a4ebe);this[_0x29a1bb(0x187)]=_0x24898c,_0x24898c['on'](_0x3ead21['HUGAs'],_0x348647=>{const _0x14fe03=_0x29a1bb,_0x2b3385=++this[_0x14fe03(0x189)],_0x291987=_0x3ead21['rmxtO'](join,_0x228f3b,'frame-'+String(_0x2b3385)[_0x14fe03(0x1c5)](0x6,'0')+'.jpg'),_0x4352b3=writeFile(_0x291987,Buffer['from'](_0x348647['data'],'base64'))['catch'](()=>undefined)['finally'](()=>_0x24898c['send']('Page.screencastFrameAck',{'sessionId':_0x348647[_0x14fe03(0x1a5)]}))['then'](()=>undefined)['catch'](()=>undefined);this['frameWrites']['push'](_0x4352b3);}),await _0x24898c[_0x29a1bb(0x1ca)](_0x29a1bb(0x1a6),{'format':'jpeg','quality':0x4b,'everyNthFrame':0x6}),this[_0x29a1bb(0x138)]=!![];}async[_0x5af6d8(0x1ac)](){const _0xabac39=_0x5af6d8;if(!this[_0xabac39(0x187)]||!this[_0xabac39(0x138)])return;await this['frameSession'][_0xabac39(0x1ca)](_0xabac39(0x18b))[_0xabac39(0x1d8)](()=>undefined);}[_0x5af6d8(0x15e)](){this['queueTraceSample'](),this['traceSampleTimer']=setInterval(()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}['queueTraceSample'](){const _0x287256=_0x5af6d8;if(this[_0x287256(0x141)])return;this['traceSampleInFlight']=this[_0x287256(0x158)]()[_0x287256(0x1da)](()=>{const _0x384c10=_0x287256;this[_0x384c10(0x141)]=null;});}async[_0x5af6d8(0x142)](){const _0x5db4a9=_0x5af6d8;this[_0x5db4a9(0x1d4)]&&(clearInterval(this[_0x5db4a9(0x1d4)]),this[_0x5db4a9(0x1d4)]=null),await this[_0x5db4a9(0x141)]?.['catch'](()=>undefined);}async[_0x5af6d8(0x158)](){const _0x5946df=_0x5af6d8,_0x13a17d=this[_0x5946df(0x15f)]?.[_0x5946df(0x1a7)]()[0x0];if(!_0x13a17d)return;try{await _0x13a17d['locator']('body')[_0x5946df(0x17d)](_0x233901=>_0x233901[_0x5946df(0x1e7)],undefined,{'timeout':0x3e8}),this[_0x5946df(0x19b)]++;}catch{}}async['encodeScreencastVideo'](){const _0x13fc3a=_0x5af6d8,_0xc43397={'DStEj':function(_0x13c8dd){return _0x13c8dd();},'yhitB':'-hide_banner','pgxtT':_0x13fc3a(0x18f),'XzCJk':_0x13fc3a(0x1e2),'eTvDJ':_0x13fc3a(0x125),'tkiDD':_0x13fc3a(0x1c7)};if(this[_0x13fc3a(0x189)]<0x2)return null;const _0x468453=await _0xc43397[_0x13fc3a(0x1d9)](resolveFfmpegPath);if(!_0x468453)return null;const _0x2dceb3=join(this[_0x13fc3a(0x1be)][_0x13fc3a(0x13f)],'videos');await mkdir(_0x2dceb3,{'recursive':!![]});const _0x31e6fd=join(_0x2dceb3,'session-recording.webm');return await execFileAsync(_0x468453,['-y',_0xc43397['yhitB'],_0xc43397['pgxtT'],_0x13fc3a(0x19f),'-framerate','10','-i',join(this[_0x13fc3a(0x176)](),_0xc43397[_0x13fc3a(0x181)]),_0x13fc3a(0x14d),_0x13fc3a(0x18e),'-c:v',_0xc43397[_0x13fc3a(0x1db)],'-pix_fmt',_0xc43397[_0x13fc3a(0x16f)],_0x31e6fd]),_0x31e6fd;}[_0x5af6d8(0x176)](){const _0x4e6f39=_0x5af6d8,_0x6db019={'Huwws':'nova-video-frames'};return join(this['params'][_0x4e6f39(0x13f)],_0x6db019[_0x4e6f39(0x166)]);}}async function delay(_0x19f052){await new Promise(_0x54134d=>setTimeout(_0x54134d,_0x19f052));}async function resolveFfmpegPath(){const _0xfed7b=_0x5af6d8,_0xe2f3af={'iOwoo':'Caches','kSAjr':function(_0x4ade30,_0x4e1edf,_0x2b19d0,_0x5aeda6){return _0x4ade30(_0x4e1edf,_0x2b19d0,_0x5aeda6);},'loplq':function(_0x1c942b){return _0x1c942b();},'MBpnv':function(_0xa59df2,_0x225559){return _0xa59df2(_0x225559);}};if(await canRunFfmpeg('ffmpeg'))return'ffmpeg';const _0x365d19=[join(homedir(),'Library',_0xe2f3af['iOwoo'],'ms-playwright'),_0xe2f3af[_0xfed7b(0x1a8)](join,_0xe2f3af[_0xfed7b(0x1cb)](homedir),_0xfed7b(0x194),'ms-playwright')];for(const _0x4accba of _0x365d19){try{const _0x9d8543=await readdir(_0x4accba),_0x13e6e9=_0x9d8543[_0xfed7b(0x13c)](_0x6ad324=>_0x6ad324[_0xfed7b(0x171)](_0xfed7b(0x153)))['sort']()[_0xfed7b(0x1a3)]()[_0xfed7b(0x1cd)](_0x270e41=>[join(_0x4accba,_0x270e41,'ffmpeg-mac'),join(_0x4accba,_0x270e41,'ffmpeg-linux'),join(_0x4accba,_0x270e41,_0xfed7b(0x180))]);for(const _0x11af91 of _0x13e6e9){if(await _0xe2f3af[_0xfed7b(0x18a)](canRunFfmpeg,_0x11af91))return _0x11af91;}}catch{}}return null;}async function canRunFfmpeg(_0x58ef0f){const _0xea2e1d=_0x5af6d8,_0x13877b={'qHzyb':function(_0x470d9c,_0x317ce8,_0x2f6dd2){return _0x470d9c(_0x317ce8,_0x2f6dd2);},'qhbCT':'-version'};try{return await _0x13877b['qHzyb'](execFileAsync,_0x58ef0f,[_0x13877b[_0xea2e1d(0x135)]]),!![];}catch{return![];}}function toStepDisplayName(_0x38f4e8){const _0x251435=_0x5af6d8,_0x121e64={'FLFcx':function(_0x3c3dda,_0x1cc95e){return _0x3c3dda(_0x1cc95e);}},_0x54f609=_0x121e64[_0x251435(0x183)](basename,_0x38f4e8)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x251435(0x1ea)](/^key_/i,'')[_0x251435(0x1ea)](/^\d+_/,'')[_0x251435(0x1ea)](/-/g,'\x20');return{'name':_0x54f609,'isKeyStep':/^key_/i[_0x251435(0x16e)](basename(_0x38f4e8))};}function extractShellValue(_0xd958ad){if(!_0xd958ad)return null;return _0xd958ad[0x1]??_0xd958ad[0x2]??_0xd958ad[0x3]??null;}function extractOutputOption(_0x180fb8){const _0x228e77=_0x5af6d8;return extractShellValue(_0x180fb8[_0x228e77(0x1b0)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x4a444c,_0x500f89){const _0x32ddec=_0x5af6d8,_0x2ebd88={'OzyDP':'session\x20create','iKmLg':'execute','NcmOq':'execute\x20Nova\x20browser\x20action','Buzaq':_0x32ddec(0x12e),'fxZDZ':_0x32ddec(0x1d2),'LaUsJ':'screenshot','rdgRj':function(_0x405d66,_0x33e0b8){return _0x405d66(_0x33e0b8);}};switch(_0x500f89){case _0x2ebd88[_0x32ddec(0x19e)]:return'create\x20Nova\x20browser\x20session';case _0x2ebd88['iKmLg']:return _0x2ebd88['NcmOq'];case'verify':return _0x32ddec(0x1a9);case'ask':return'ask\x20page\x20question';case _0x32ddec(0x1c8):return _0x32ddec(0x143);case'wait-for':return _0x2ebd88['Buzaq'];case'snapshot':{const _0x599aaf=extractOutputOption(_0x4a444c);if(!_0x599aaf)return _0x2ebd88['fxZDZ'];const {name:_0x543d94}=toStepDisplayName(_0x599aaf);return _0x32ddec(0x120)+_0x543d94+'`';}case _0x2ebd88[_0x32ddec(0x155)]:{const _0x33aa8c=_0x2ebd88['rdgRj'](extractOutputOption,_0x4a444c);if(!_0x33aa8c)return'capture\x20screenshot';const {name:_0x41d27c,isKeyStep:_0x218743}=_0x2ebd88[_0x32ddec(0x196)](toStepDisplayName,_0x33aa8c);return _0x218743?_0x32ddec(0x198)+_0x41d27c+'`':'capture\x20step\x20`'+_0x41d27c+'`';}case'session\x20export':return'export\x20Nova\x20session';default:return _0x500f89;}}function getNovaActCliCommandBlockReason(_0x513f78){const _0x24bafa=_0x5af6d8,_0x30f2ad={'Ravwi':_0x24bafa(0x15b),'DhIQP':function(_0x2ed9ae,_0xde8723){return _0x2ed9ae===_0xde8723;},'ZdzKk':_0x24bafa(0x13b)},_0x1b3b1a=parseNovaActCliCommand(_0x513f78);if(!_0x1b3b1a)return _0x30f2ad['Ravwi'];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x1b3b1a))return'Nova\x20command\x20`'+_0x1b3b1a+_0x24bafa(0x128);if(_0x30f2ad['DhIQP'](_0x1b3b1a,_0x30f2ad[_0x24bafa(0x1b5)])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x513f78))return _0x24bafa(0x1b7);if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x513f78))return _0x24bafa(0x12d);return null;}function buildFeedbackSection(_0x317d0d){const _0x552f5b=_0x5af6d8,_0x2c699e={'NhAWT':'en-US','OyCUn':_0x552f5b(0x1ce),'XWSYH':'element'};if(!_0x317d0d||_0x317d0d['unaddressedComments'][_0x552f5b(0x1f0)]===0x0)return'';const _0x5671bf=_0x317d0d[_0x552f5b(0x134)]['map'](_0x4e3850=>{const _0x49c66c=_0x552f5b,_0x293220=new Date(_0x4e3850[_0x49c66c(0x139)])['toLocaleDateString'](_0x2c699e[_0x49c66c(0x127)],{'month':_0x49c66c(0x178),'day':_0x49c66c(0x199)}),_0x2f8df0=_0x4e3850[_0x49c66c(0x186)]||_0x4e3850['authorEmail']||_0x2c699e[_0x49c66c(0x124)],_0x3eeabc=_0x4e3850['domRef']?'\x20(on\x20element:\x20<'+(_0x4e3850[_0x49c66c(0x133)]['selector']['split']('\x20>\x20')['pop']()?.[_0x49c66c(0x167)](':')[0x0]||_0x2c699e['XWSYH'])+'>\x20\x22'+(_0x4e3850['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x49c66c(0x1e6)+_0x4e3850['id']+_0x49c66c(0x151)+_0x2f8df0+_0x49c66c(0x184)+_0x293220+_0x49c66c(0x164)+_0x4e3850['content']+'\x22'+_0x3eeabc;})[_0x552f5b(0x190)]('\x0a');return _0x552f5b(0x1aa)+_0x5671bf;}function buildNovaSharedOptionsInstruction(_0x43cf39){const _0x309bd6=_0x5af6d8;if(!_0x43cf39[_0x309bd6(0x123)]())return'The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.';return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x43cf39;}function _0x5803(){const _0x1b2949=['traceSampleCount','connectOverCDP','nova-artifacts.zip','OzyDP','error','commandArgs','subcommand','`\x0a4.\x20Run\x20one\x20batched\x20`','reverse','nova_act_artifact_recording_stop','sessionId','Page.startScreencast','pages','kSAjr','verify\x20page\x20condition','\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','SZbwy','stopScreencast','1985646rZZTTF','iMMGA','\x20session\x20create\x20','match','bcSLq','hook_event_name','nova_act_command','tracingStarted','ZdzKk','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','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.','stdout','nova_act_artifact_recording','.json','newCDPSession','01_initial-state.png','--output-dir','params','start','invocation','startAttempted','nova_act_session_report','\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','EJyVA','padStart','notes','yuv420p','goto','qEaFu','send','loplq','02_final-state.yml','flatMap','Reviewer','canonicalFlow','rwRng','kiwoz','capture\x20snapshot','`\x0a-\x20`','traceSampleTimer','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','IMVVe','`\x0a3.\x20Run\x20`','catch','DStEj','finally','eTvDJ','transportMetadata','trace.zip','2741562xjmTgQ','mtimeMs','\x20snapshot\x20--output\x20','snapshot','frame-%06d.jpg','`.\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`','jeRXN','telemetry','-\x20[','tagName','GPejf','FEzTe','replace','export','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','-qr','tool_name','00_initial-state.yml','length','capture\x20snapshot\x20`','SVsgB','\x0a\x0aExamples:\x0a-\x20`','trim','OyCUn','libvpx-vp9','session','NhAWT','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','startScreencast','zip','readSessionMetadataWithRetry','\x0a\x0a##\x20Additional\x20Notes\x0a','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','wait\x20for\x20page\x20condition','mwvMg','description','Bash','PostToolUse','domRef','unaddressedComments','qhbCT','stopped','\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`','screencastStarted','createdAt','close','verify','filter','now','session\x20create','cliArtifactDir','7557215EfHDFn','traceSampleInFlight','stopTraceSampling','navigate\x20browser','set','nova-session-export.json','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','trackPhaseEnd','BrQJD','tIepl','wait-for','SMBdq','UiOTM','-vf','novaOptions','nova-act-cli','sessions',']\x20**','trackPhaseStart','ffmpeg-','`\x0a6.\x20Run\x20`','LaUsJ','3zUrVQo','1QhvRBu','captureTraceSample','nova_act_session_close','ftwZd','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','phase','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','startTraceSampling','context','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','stop','QsAIp','Page.screencastFrame','):\x20\x22','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','Huwws','split','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','env','sort','--output','2477398bSuGHo','`\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.','test','tkiDD','JSHqZ','startsWith','tVLLL','jbwXd','args','lyblm','getFrameDir','browser','short','3343120woYRSI','tracing','rlEaA','Xkkay','evaluate','wHvqO','495884AACAge','ffmpeg.exe','XzCJk','ppPrw','FLFcx','**\x20(','json','authorName','frameSession','allSettled','frameCount','MBpnv','Page.stopScreencast','NqOyT','03_final-state.png','scale=trunc(iw/2)*2:trunc(ih/2)*2','-loglevel','join','frameWrites','cdp_endpoint','get','.cache','1227618OViJgl','rdgRj','cLYTz','capture\x20key\x20step\x20`','numeric','aLHPq'];_0x5803=function(){return _0x1b2949;};return _0x5803();}export function buildVerifyFeatureNovaCliDebugPrompt(_0x9e60e2){const _0x3dd26d=_0x5af6d8,_0xa928a0={'wHvqO':function(_0x270796,_0x53a434,_0x58e36e){return _0x270796(_0x53a434,_0x58e36e);},'iMMGA':_0x3dd26d(0x1ef),'tVLLL':'01_initial-state.png','Xbmjv':_0x3dd26d(0x1cc),'QsAIp':_0x3dd26d(0x18d),'HZiYk':function(_0x524a3c,_0x46e73a){return _0x524a3c(_0x46e73a);}},{novaCommandPrefix:_0x265b43,novaSharedOptionsSuffix:_0x2e4b14,cliArtifactDir:_0x23f3e0,url:_0x15eb69}=_0x9e60e2,_0x36ef97=_0xa928a0[_0x3dd26d(0x17e)](buildCliArtifactPath,_0x23f3e0,_0xa928a0[_0x3dd26d(0x1ae)]),_0x450d54=buildCliArtifactPath(_0x23f3e0,_0xa928a0[_0x3dd26d(0x172)]),_0x29b218=buildCliArtifactPath(_0x23f3e0,_0xa928a0['Xbmjv']),_0x315467=buildCliArtifactPath(_0x23f3e0,_0xa928a0[_0x3dd26d(0x162)]);return _0x3dd26d(0x160)+_0x265b43+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x2e4b14)+_0x3dd26d(0x137)+_0x265b43+_0x3dd26d(0x1af)+quoteShellArg(_0x15eb69)+'\x20'+_0x2e4b14+'`\x0a2.\x20Run\x20`'+_0x265b43+_0x3dd26d(0x1e0)+_0xa928a0['HZiYk'](quoteShellArg,_0x36ef97)+'\x20'+_0x2e4b14+_0x3dd26d(0x1d7)+_0x265b43+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x450d54)+'\x20'+_0x2e4b14+_0x3dd26d(0x1a2)+_0x265b43+_0x3dd26d(0x168)+_0x265b43+_0x3dd26d(0x1e0)+_0xa928a0['HZiYk'](quoteShellArg,_0x29b218)+'\x20'+_0x2e4b14+_0x3dd26d(0x154)+_0x265b43+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x315467)+'\x20'+_0x2e4b14+_0x3dd26d(0x146)+_0x23f3e0+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x5cf930){const _0x4acc40=_0x5af6d8,_0xdfda83={'tIepl':function(_0x559eb8,_0x4e2559,_0x3b08d2){return _0x559eb8(_0x4e2559,_0x3b08d2);},'qEaFu':_0x4acc40(0x1bc),'BrQJD':function(_0x307e6d,_0x475b88){return _0x307e6d(_0x475b88);},'WtciU':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','JXPOB':function(_0x4b9fe9,_0x1297e9){return _0x4b9fe9(_0x1297e9);}},{checklistItem:_0x1d5b04,itemFeedback:_0x363cd8,taskDescription:_0x1e03f4,novaCommandPrefix:_0x1bc99e,novaSharedOptionsSuffix:_0x5c2af1,cliArtifactDir:_0x274685,url:_0x5d258e,loginInstructions:_0x5c149a}=_0x5cf930,_0x52cfe4=_0x1d5b04[_0x4acc40(0x1c6)]?_0x4acc40(0x12c)+_0x1d5b04[_0x4acc40(0x1c6)]:'',_0x22f683=buildFeedbackSection(_0x363cd8),_0x24ed76=_0x363cd8?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x363cd8[_0x4acc40(0x1cf)]:'',_0x5ea25c=_0x5c149a?_0x4acc40(0x1b6)+_0x5c149a+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x3a0253=_0xdfda83['tIepl'](buildCliArtifactPath,_0x274685,'01_initial.yml'),_0x2160e1=_0xdfda83['tIepl'](buildCliArtifactPath,_0x274685,_0xdfda83[_0x4acc40(0x1c9)]),_0x4192e1=_0xdfda83[_0x4acc40(0x149)](buildCliArtifactPath,_0x274685,'key_03_success-state.png');return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x1d5b04[_0x4acc40(0x130)]+_0x52cfe4+_0x22f683+_0x24ed76+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x1e03f4+_0x4acc40(0x165)+_0x5d258e+_0x4acc40(0x1c3)+_0x5ea25c+'\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`'+_0x1bc99e+_0x4acc40(0x1af)+_0xdfda83[_0x4acc40(0x148)](quoteShellArg,_0x5d258e)+'\x20'+_0x5c2af1+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x274685+'`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`'+_0x1bc99e+_0x4acc40(0x1e0)+quoteShellArg(_0x3a0253)+'\x20'+_0x5c2af1+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x1bc99e+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x2160e1)+'\x20'+_0x5c2af1+_0x4acc40(0x1e3)+_0x4192e1+'`.\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`'+_0x1bc99e+_0x4acc40(0x1ec)+(_0x5c2af1['trim']()?'`'+_0x5c2af1+'`':_0xdfda83['WtciU'])+'\x0a\x0a'+_0xdfda83['JXPOB'](buildNovaSharedOptionsInstruction,_0x5c2af1)+_0x4acc40(0x122)+_0x1bc99e+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x5c2af1+'`\x0a-\x20`'+_0x1bc99e+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x5c2af1+_0x4acc40(0x1d3)+_0x1bc99e+_0x4acc40(0x1e0)+quoteShellArg(_0x3a0253)+'\x20'+_0x5c2af1+_0x4acc40(0x1d3)+_0x1bc99e+'\x20screenshot\x20--output\x20'+_0xdfda83[_0x4acc40(0x148)](quoteShellArg,_0x4192e1)+'\x20'+_0x5c2af1+_0x4acc40(0x16d);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x2e3c65){const _0x3439ef=_0x5af6d8,_0x53d763={'CHOay':function(_0x90af3f,_0x4223d7){return _0x90af3f===_0x4223d7;}},_0x5d14a8=[..._0x2e3c65['keys']()][_0x3439ef(0x16a)]();let _0x1863de=0x0;for(const _0x32cd2d of _0x2e3c65['values']()){_0x1863de+=_0x32cd2d;}return{'cliCommandCount':_0x1863de,'cliCommandsSeen':_0x5d14a8,'noCliCommandsCalled':_0x53d763['CHOay'](_0x1863de,0x0)};}export function createVerifyFeatureNovaCliHooks(_0xb9bf11,_0x3b1f98){const _0x570e02=_0x5af6d8,_0x5a73d2={'SMBdq':function(_0x1af394,_0x39c563){return _0x1af394(_0x39c563);},'rlEaA':function(_0x4e3b16,_0x31bd00){return _0x4e3b16!==_0x31bd00;},'sAtKa':function(_0x2832c8,_0x193643){return _0x2832c8+_0x193643;},'SMDoT':_0x570e02(0x1b3),'inPEg':function(_0x19663c,_0x4c1259,_0x15d30e){return _0x19663c(_0x4c1259,_0x15d30e);},'mwvMg':function(_0x50bf24,_0x178144){return _0x50bf24===_0x178144;},'GPejf':'session\x20create','tezxd':_0x570e02(0x14f),'vlesP':'PostToolUseFailure','cLYTz':'nova_act_command_failure','VYStk':'Bash'},_0x1ddf8d=new Map(),_0x39f890=async _0x3408a6=>{const _0xacc790=_0x570e02;if(_0x3408a6[_0xacc790(0x1b2)]!=='PreToolUse')return{};const _0x52e042=_0x3408a6;if(_0x52e042['tool_name']!=='Bash')return{};const _0x195430=_0x52e042['tool_input'],_0x31127c=_0x5a73d2[_0xacc790(0x14b)](extractBashCommand,_0x195430);if(!_0x31127c)return{};const _0x788d8a=getNovaActCliCommandBlockReason(_0x31127c);if(!_0x788d8a)return{};return{'decision':'block','reason':_0x788d8a};},_0x528f1d=async _0x3859b7=>{const _0x51ce29=_0x570e02;if(_0x5a73d2[_0x51ce29(0x17b)](_0x3859b7[_0x51ce29(0x1b2)],_0x51ce29(0x132)))return{};const _0x3ff2e8=_0x3859b7;if(_0x3ff2e8[_0x51ce29(0x1ee)]!==_0x51ce29(0x131))return{};const _0x3645a4=_0x3ff2e8['tool_input'],_0x2244f2=_0x5a73d2[_0x51ce29(0x14b)](extractBashCommand,_0x3645a4);if(!_0x2244f2)return{};const _0x7734b7=parseNovaActCliCommand(_0x2244f2);if(!_0x7734b7)return{};_0x1ddf8d[_0x51ce29(0x144)](_0x7734b7,_0x5a73d2['sAtKa'](_0x1ddf8d[_0x51ce29(0x193)](_0x7734b7)||0x0,0x1)),_0xb9bf11['trackPhaseStart'](_0x5a73d2['SMDoT'],{'subcommand':_0x7734b7}),_0xb9bf11[_0x51ce29(0x147)](_0x51ce29(0x1b3),{'subcommand':_0x7734b7,'commandPreview':_0x5a73d2[_0x51ce29(0x14b)](previewNovaActCliCommand,_0x2244f2)}),console['log']('[nova-act-cli]\x20'+_0x5a73d2['inPEg'](formatNovaActCliLog,_0x2244f2,_0x7734b7));if(_0x5a73d2[_0x51ce29(0x12f)](_0x7734b7,_0x5a73d2[_0x51ce29(0x1e8)])&&_0x3b1f98)try{await _0x3b1f98['start']();}catch(_0x390d1e){await _0xb9bf11['trackPhaseError'](_0x51ce29(0x1b9),_0x390d1e,{'transport':_0x5a73d2['tezxd']});}return{};},_0x3cd0b5=async _0x32c3cc=>{const _0x510023=_0x570e02;if(_0x32c3cc['hook_event_name']!==_0x5a73d2['vlesP'])return{};const _0x4f0e96=_0x32c3cc;if(_0x5a73d2['rlEaA'](_0x4f0e96['tool_name'],_0x510023(0x131)))return{};return await _0xb9bf11['trackPhaseError'](_0x5a73d2[_0x510023(0x197)],_0x4f0e96[_0x510023(0x19f)],{'transport':'nova-act-cli','toolName':_0x5a73d2['VYStk']}),{};};return{'preToolUseHook':_0x39f890,'postToolUseHook':_0x528f1d,'postToolUseFailureHook':_0x3cd0b5,'commandCounts':_0x1ddf8d};}async function runNovaLifecycleCommand(_0x4484ca){const _0x2b9fef=_0x5af6d8,_0x23296d={'jeRXN':function(_0x1fd3e2,_0x914890){return _0x1fd3e2(_0x914890);},'SZbwy':function(_0x3801fc,_0x40ebed){return _0x3801fc(_0x40ebed);},'xcZId':function(_0x29e633,_0x196d89){return _0x29e633(_0x196d89);}},{novaOptions:_0x537fdd,commandArgs:_0x5914a8,telemetry:_0x4aac9e,phase:_0x494460,metadata:_0x4fad0c,timeoutMs:_0x43651c}=_0x4484ca;_0x4aac9e[_0x2b9fef(0x152)](_0x494460,_0x4fad0c);try{const _0x2d4e60=await _0x23296d[_0x2b9fef(0x1e4)](runNovaActCliCommand,{..._0x537fdd,'commandArgs':_0x5914a8,'cwd':process['cwd'](),'env':process[_0x2b9fef(0x169)],'timeoutMs':_0x43651c??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x4aac9e[_0x2b9fef(0x147)](_0x494460,{..._0x4fad0c,'subcommand':_0x2d4e60[_0x2b9fef(0x1c0)]['subcommand'],'commandPreview':previewNovaActCliCommand(_0x2d4e60['invocation']['shellCommand']),'stdoutPreview':_0x23296d[_0x2b9fef(0x1ab)](previewNovaActCliCommand,_0x2d4e60[_0x2b9fef(0x1b8)]),'stderrPreview':_0x23296d['xcZId'](previewNovaActCliCommand,_0x2d4e60['stderr']),'logDir':extractNovaActLogDir(_0x2d4e60['stdout'])});}catch(_0x14874f){await _0x4aac9e['trackPhaseError'](_0x494460,_0x14874f,_0x4fad0c);throw _0x14874f;}}export async function finalizeVerifyFeatureNovaCliSession(_0x18ddd9){const _0x221a0e=_0x5af6d8,_0x4ac87e={'NqOyT':'nova_act_final_screenshot','jKpdb':'screenshot','tQfZe':'key_final-state.png','rwRng':'snapshot','bcSLq':'nova_act_session_export','aMUIt':'export','lyblm':'--format','nhAHe':_0x221a0e(0x185),'IMVVe':_0x221a0e(0x145),'CDtSv':_0x221a0e(0x126),'EJyVA':_0x221a0e(0x1bd),'fZaNz':function(_0x36a7ac,_0xf8089b,_0x508714){return _0x36a7ac(_0xf8089b,_0x508714);},'UiOTM':_0x221a0e(0x13a),'kiwoz':'nova_act_session_close','ppPrw':function(_0x4bfd95,_0x476047){return _0x4bfd95(_0x476047);}},{telemetry:_0xe86fba,novaOptions:_0x116562,cliArtifactDir:_0x29fb7d,transportMetadata:_0x44e604,artifactRecorder:_0xd71ec8}=_0x18ddd9,_0x339c75=[{'phase':_0x4ac87e[_0x221a0e(0x18c)],'commandArgs':[_0x4ac87e['jKpdb'],_0x221a0e(0x16b),buildCliArtifactPath(_0x29fb7d,_0x4ac87e['tQfZe'])]},{'phase':'nova_act_final_snapshot','commandArgs':[_0x4ac87e[_0x221a0e(0x1d0)],_0x221a0e(0x16b),buildCliArtifactPath(_0x29fb7d,'final-state.yaml')]},{'phase':_0x4ac87e[_0x221a0e(0x1b1)],'commandArgs':['session',_0x4ac87e['aMUIt'],_0x4ac87e[_0x221a0e(0x175)],_0x4ac87e['nhAHe'],_0x221a0e(0x16b),buildCliArtifactPath(_0x29fb7d,_0x4ac87e[_0x221a0e(0x1d6)])]},{'phase':_0x221a0e(0x1c2),'commandArgs':[_0x4ac87e['CDtSv'],_0x221a0e(0x1eb),'--report',_0x4ac87e[_0x221a0e(0x1c4)],_0x4ac87e['fZaNz'](buildCliArtifactPath,_0x29fb7d,'nova-report')]},{'phase':_0x221a0e(0x159),'commandArgs':[_0x221a0e(0x126),_0x4ac87e[_0x221a0e(0x14c)]]}];for(const _0x39ad42 of _0x339c75){_0x39ad42[_0x221a0e(0x15c)]===_0x4ac87e[_0x221a0e(0x1d1)]&&await _0xd71ec8?.['stop']();try{await _0x4ac87e[_0x221a0e(0x182)](runNovaLifecycleCommand,{'novaOptions':_0x116562,'commandArgs':[..._0x39ad42[_0x221a0e(0x1a0)]],'telemetry':_0xe86fba,'phase':_0x39ad42[_0x221a0e(0x15c)],'metadata':_0x44e604});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x48a28a){const _0x2f2e89=_0x5af6d8,_0x168777={'iWCJy':function(_0x126322,_0x573b0a,_0x23b25d){return _0x126322(_0x573b0a,_0x23b25d);},'jbwXd':function(_0x568873,_0x35e8bf){return _0x568873(_0x35e8bf);},'JZScV':function(_0x2bf7fa,_0x46060b){return _0x2bf7fa<_0x46060b;},'wAhBD':function(_0x50f09b,_0x5cacb3){return _0x50f09b===_0x5cacb3;}},{cwd:_0x5d5dd1,cliArtifactDir:_0x174ed5,startTime:_0x30264b}=_0x48a28a,_0x231130=[];await _0x168777['iWCJy'](mkdir,_0x174ed5,{'recursive':!![]});const _0x755e52=await _0x168777['iWCJy'](readdir,_0x5d5dd1,{'withFileTypes':!![]});for(const _0x519790 of _0x755e52){if(!_0x519790['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x2f2e89(0x16e)](_0x519790['name']))continue;const _0x45216e=join(_0x5d5dd1,_0x519790['name']),_0x1559c0=await _0x168777[_0x2f2e89(0x173)](stat,_0x45216e);if(_0x168777['JZScV'](_0x1559c0[_0x2f2e89(0x1df)]+0x7d0,_0x30264b))continue;const _0x4b7c84=_0x168777['iWCJy'](buildCliArtifactPath,_0x174ed5,_0x519790['name']);if(_0x168777['wAhBD'](_0x45216e,_0x4b7c84))continue;await rename(_0x45216e,_0x4b7c84),_0x231130['push'](_0x519790['name']);}return _0x231130['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x58a55e){const _0x3fe36c=_0x5af6d8,_0x41f60e={'LBgPk':function(_0x578648,_0x2012e2,_0x1dbd4c){return _0x578648(_0x2012e2,_0x1dbd4c);}},_0x469647=_0x41f60e['LBgPk'](join,_0x58a55e,_0x3fe36c(0x1dd));try{return{'buffer':await readFile(_0x469647),'source':_0x469647};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x58a55e),'source':_0x58a55e};}}async function zipVerifyFeatureNovaArtifacts(_0xdc8436){const _0x7f8966=_0x5af6d8,_0x4136b8={'ftwZd':function(_0x19ef42,_0x3a9aa7,_0x454b2e,_0x49b6b7){return _0x19ef42(_0x3a9aa7,_0x454b2e,_0x49b6b7);},'DUNSW':function(_0x48ee33,_0x2345da,_0x3fabbc){return _0x48ee33(_0x2345da,_0x3fabbc);}},_0x1684c3=_0x4136b8[_0x7f8966(0x15a)](join,_0xdc8436,'..',_0x7f8966(0x19d));try{return await _0x4136b8[_0x7f8966(0x15a)](execFileAsync,_0x7f8966(0x12a),[_0x7f8966(0x1ed),_0x1684c3,'.','-x','nova-user-data/*'],{'cwd':_0xdc8436}),await readFile(_0x1684c3);}finally{await _0x4136b8['DUNSW'](rm,_0x1684c3,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x3ee49e){const _0x397852=_0x5af6d8,_0x2da510={'ynOLs':function(_0x24e93e,_0x3059d2){return _0x24e93e(_0x3059d2);}},_0x1b486c=buildNovaActCliInvocation(_0x3ee49e[_0x397852(0x14e)],_0x3ee49e['commandArgs']);return{'command':_0x1b486c['command'],'args':_0x1b486c[_0x397852(0x174)],'commandPreview':_0x2da510['ynOLs'](previewNovaActCliCommand,_0x1b486c['shellCommand']),'subcommand':_0x1b486c[_0x397852(0x1a1)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x3ee49e[_0x397852(0x14e)],_0x3ee49e['commandArgs'])};}
1
+ const _0x182169=_0x1475;(function(_0x4f9b3d,_0x6d79bc){const _0x2e0756=_0x1475,_0x361257=_0x4f9b3d();while(!![]){try{const _0x480da4=-parseInt(_0x2e0756(0x140))/0x1+-parseInt(_0x2e0756(0x1ab))/0x2*(-parseInt(_0x2e0756(0x14c))/0x3)+parseInt(_0x2e0756(0x14e))/0x4*(parseInt(_0x2e0756(0x16b))/0x5)+parseInt(_0x2e0756(0x1cc))/0x6*(parseInt(_0x2e0756(0x169))/0x7)+parseInt(_0x2e0756(0x1b7))/0x8+-parseInt(_0x2e0756(0x142))/0x9*(-parseInt(_0x2e0756(0x12f))/0xa)+parseInt(_0x2e0756(0x13f))/0xb*(-parseInt(_0x2e0756(0x16a))/0xc);if(_0x480da4===_0x6d79bc)break;else _0x361257['push'](_0x361257['shift']());}catch(_0xa4232a){_0x361257['push'](_0x361257['shift']());}}}(_0x2452,0x50907));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';import{homedir}from'os';function _0x2452(){const _0x51246b=['has','\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`','qYCkv','Nova\x20command\x20`','tracingStarted','FWBXl','cdp_endpoint','values','`\x0a3.\x20Run\x20`','\x20screenshot\x20--output\x20','Bash','body','oUJFd','RjdaU','telemetry','tool_input','RgZdf','encodeScreencastVideo','oOZmM','.jpg','toLocaleDateString','6RvELjj','sngdL','nova_act_artifact_recording_stop','content','LhRrZ','frameCount','now','browser_pid','session-recording.webm','McLqk','\x20>\x20','utf-8','5275480RINLEt','join','jkwjr','GxjgZ','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','svILU','navigate\x20browser','context','params','liZrY','stopped','description','captureTraceSample','set','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','JLKAV','phase','get','gwFMO','`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','snapshot','87348eTOQeE','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','invocation','\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','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.','tWyEE','padStart','PPYvy','traceSampleTimer','vLJaX','screenshot','dcmiz','allSettled','nova_act_session_export','frameWrites','\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`','json','\x20session\x20create\x20','ffmpeg','data','capture\x20step\x20`','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','KQMEq','ffmpeg.exe','-vf','notes','sort','-hide_banner','--output','catch','jpeg','OpgqM','GlRAJ','ask\x20page\x20question','subcommand','send','trim','tagName','RDNqg','qkvIY','commandArgs','videos','vLygB','-pix_fmt','mGtCU','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','textContent','novaOptions','CXyYg','readSessionMetadataWithRetry','tracing','KFjhU','trackPhaseEnd','yEbip','JTSuw','yvUJy','\x20snapshot\x20--output\x20','env','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','>\x20\x22','nova-artifacts.zip','**\x20(','unaddressedComments','stderr','wait\x20for\x20page\x20condition','cpLhC','--output-dir','NqXTG','oEUhm','XPQWO','JcnMC','nova_act_artifact_recording','state','esoHW','key_03_success-state.png','4010fEunnk','traceSampleInFlight','session\x20create','trackPhaseError','01_initial-state.png','goto','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','sessions','yPLIn','01_initial.yml','split','Page.screencastFrame','rZKKJ','traceSampleCount','XMHQC','FuvQG','13132284HgPKKg','347448rPPVDt','create\x20Nova\x20browser\x20session','2034UhLWVo','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','startScreencast','fzVmE','nova-user-data/*','tool_name','execute','00_initial-state.yml','parse','hook_event_name','496953rcchUC','PreToolUse','308gjyWNd','dmbmz','name','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','03_final-state.png','transportMetadata','oyIjW','HYTNm','startTraceSampling','canonicalFlow','log','`\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.','fJktE','WvrCn','XFGjW','nova_act_final_screenshot','command','`\x0a-\x20`','trace.zip','length','nova_act_session_close','from','trackPhaseStart','replace','sgDzN','`\x0a2.\x20Run\x20`','stopScreencast','42vIrkuc','12YtMyFs','34865Hplvsu','block','test','Tawhi','element','cliArtifactDir','wait-for','isFile','Ggieu','start','browser','nova-session-export.json','startsWith','`.\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`','mtimeMs','[nova-act-cli]\x20','queueTraceSample','final-state.yaml','Caches','screencastStarted','MuKdw','ffmpeg-linux','frameSession','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','export','LKNCe','capture\x20key\x20step\x20`','wfroz','ftOev','yjGoa','ZlGDa','numeric','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','`\x0a6.\x20Run\x20`','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','ms-playwright','SOkCh','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','connectOverCDP','ZSoOS','UCeWw','close','sessionId'];_0x2452=function(){return _0x51246b;};return _0x2452();}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([_0x182169(0x131),_0x182169(0x148),'verify','ask',_0x182169(0x134),_0x182169(0x171),_0x182169(0x1cb),'screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x3975e1,_0x23e2b8){const _0xf8d8f8=_0x182169,_0x39ca4a={'tWyEE':function(_0x56b97c,_0x3a5b0f,_0x20b7db){return _0x56b97c(_0x3a5b0f,_0x20b7db);}};return _0x39ca4a[_0xf8d8f8(0x1d1)](join,_0x3975e1,_0x23e2b8);}export class NovaActArtifactRecorder{[_0x182169(0x1bf)];[_0x182169(0x175)]=null;['context']=null;[_0x182169(0x181)]=null;[_0x182169(0x1da)]=[];['frameCount']=0x0;[_0x182169(0x13c)]=0x0;[_0x182169(0x1d4)]=null;[_0x182169(0x130)]=null;[_0x182169(0x19a)]=![];[_0x182169(0x17e)]=![];['startAttempted']=![];[_0x182169(0x1c1)]=![];constructor(_0x5972ac){this['params']=_0x5972ac;}async['start'](){const _0x2db69b=_0x182169,_0x22bb80={'pynvH':_0x2db69b(0x12b)};if(this['startAttempted'])return;this['startAttempted']=!![];const _0x1c6a2a=await this[_0x2db69b(0x1fd)](),_0xd2ce8a=_0x1c6a2a['cdp_endpoint'];if(!_0xd2ce8a)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x2db69b(0x1bf)][_0x2db69b(0x1fb)]['sessionId']);await mkdir(this[_0x2db69b(0x1bf)][_0x2db69b(0x170)],{'recursive':!![]}),this[_0x2db69b(0x175)]=await chromium[_0x2db69b(0x191)](_0xd2ce8a,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this[_0x2db69b(0x175)]['contexts']()[0x0]??null;if(!this[_0x2db69b(0x1be)])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this['context'][_0x2db69b(0x1fe)]['start']({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x2db69b(0x19a)]=!![],this['startTraceSampling'](),await this[_0x2db69b(0x144)](),this['params']['telemetry'][_0x2db69b(0x164)](_0x22bb80['pynvH'],{...this[_0x2db69b(0x1bf)][_0x2db69b(0x153)],'cdpEndpoint':_0xd2ce8a,'browserPid':_0x1c6a2a[_0x2db69b(0x1b2)],'sessionState':_0x1c6a2a[_0x2db69b(0x12c)]}),this[_0x2db69b(0x1bf)]['telemetry'][_0x2db69b(0x200)](_0x22bb80['pynvH'],{...this[_0x2db69b(0x1bf)]['transportMetadata'],'tracingStarted':this[_0x2db69b(0x19a)],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x484358=_0x182169,_0x417bbb={'rZKKJ':_0x484358(0x1ad)};if(this[_0x484358(0x1c1)])return;this[_0x484358(0x1c1)]=!![];const _0x54e4cc={...this[_0x484358(0x1bf)]['transportMetadata'],'frameCount':this['frameCount'],'traceSampleCount':this[_0x484358(0x13c)],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']};this['params']['telemetry']['trackPhaseStart'](_0x417bbb[_0x484358(0x13b)],_0x54e4cc);try{await this['stopTraceSampling'](),await this[_0x484358(0x1c3)](),await this[_0x484358(0x168)](),await Promise[_0x484358(0x1d8)](this[_0x484358(0x1da)]);this[_0x484358(0x1be)]&&this['tracingStarted']&&await this['context'][_0x484358(0x1fe)]['stop']({'path':buildCliArtifactPath(this[_0x484358(0x1bf)]['cliArtifactDir'],'trace.zip')});const _0x2b897d=await this['encodeScreencastVideo']();this[_0x484358(0x1bf)][_0x484358(0x1a4)]['trackPhaseEnd']('nova_act_artifact_recording_stop',{..._0x54e4cc,'videoPath':_0x2b897d});}catch(_0x5ee803){await this['params']['telemetry']['trackPhaseError']('nova_act_artifact_recording_stop',_0x5ee803,_0x54e4cc);}finally{await this['browser']?.[_0x484358(0x194)]()['catch'](()=>undefined),this[_0x484358(0x175)]=null,this[_0x484358(0x1be)]=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0x3abcdb=_0x182169,_0xfacf5b={'GlRAJ':function(_0x574a29,_0x18b75d,_0x13ac97,_0x1024db,_0xb5731a,_0x5a8ef5){return _0x574a29(_0x18b75d,_0x13ac97,_0x1024db,_0xb5731a,_0x5a8ef5);},'LmcWB':function(_0x2ec1c2){return _0x2ec1c2();},'LKNCe':_0x3abcdb(0x175),'HYTNm':function(_0x126efd,_0x54c689,_0xb56052){return _0x126efd(_0x54c689,_0xb56052);},'CXyYg':function(_0x4cf2cc,_0x24cbf4){return _0x4cf2cc(_0x24cbf4);},'SOkCh':function(_0x1e5a1c,_0x2b8948){return _0x1e5a1c<_0x2b8948;},'GRnXB':function(_0x540ac8,_0xce5a63){return _0x540ac8-_0xce5a63;},'OgIDN':function(_0x2bb6fd,_0x313edb){return _0x2bb6fd instanceof _0x313edb;}},_0x340d61=_0xfacf5b[_0x3abcdb(0x1ec)](join,_0xfacf5b['LmcWB'](homedir),'.act_cli',_0xfacf5b[_0x3abcdb(0x184)],_0x3abcdb(0x136),this[_0x3abcdb(0x1bf)][_0x3abcdb(0x1fb)][_0x3abcdb(0x195)]+'.json'),_0xfe3801=Date[_0x3abcdb(0x1b1)]();let _0x1e9960;do{try{const _0x478b15=JSON[_0x3abcdb(0x14a)](await _0xfacf5b[_0x3abcdb(0x155)](readFile,_0x340d61,_0x3abcdb(0x1b6)));if(_0x478b15[_0x3abcdb(0x19c)])return _0x478b15;_0x1e9960=new Error(_0x3abcdb(0x1bb)+_0x340d61);}catch(_0x5dc250){_0x1e9960=_0x5dc250;}await _0xfacf5b[_0x3abcdb(0x1fc)](delay,0x64);}while(_0xfacf5b[_0x3abcdb(0x18f)](_0xfacf5b['GRnXB'](Date['now'](),_0xfe3801),NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0xfacf5b['OgIDN'](_0x1e9960,Error))throw _0x1e9960;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x340d61);}async['startScreencast'](){const _0xe8786b=_0x182169,_0x483bf0={'NqXTG':function(_0x530b88,_0x3cd944,_0x49e7c8){return _0x530b88(_0x3cd944,_0x49e7c8);},'oEUhm':_0xe8786b(0x13a),'ftOev':'Page.startScreencast'};if(!this['context'])return;const _0x22c2ed=this['context']['pages']()[0x0];if(!_0x22c2ed)return;const _0x22d79f=this['getFrameDir']();await _0x483bf0['NqXTG'](mkdir,_0x22d79f,{'recursive':!![]});const _0x17df50=await this[_0xe8786b(0x1be)]['newCDPSession'](_0x22c2ed);this[_0xe8786b(0x181)]=_0x17df50,_0x17df50['on'](_0x483bf0[_0xe8786b(0x210)],_0x228809=>{const _0x335724=_0xe8786b,_0x19f9da=++this[_0x335724(0x1b0)],_0x1d14f2=join(_0x22d79f,'frame-'+String(_0x19f9da)[_0x335724(0x1d2)](0x6,'0')+_0x335724(0x1a9)),_0x3fb611=_0x483bf0[_0x335724(0x20f)](writeFile,_0x1d14f2,Buffer[_0x335724(0x163)](_0x228809[_0x335724(0x1df)],'base64'))['catch'](()=>undefined)['finally'](()=>_0x17df50[_0x335724(0x1ef)]('Page.screencastFrameAck',{'sessionId':_0x228809[_0x335724(0x195)]}))['then'](()=>undefined)['catch'](()=>undefined);this['frameWrites']['push'](_0x3fb611);}),await _0x17df50['send'](_0x483bf0[_0xe8786b(0x187)],{'format':_0xe8786b(0x1ea),'quality':0x4b,'everyNthFrame':0x6}),this[_0xe8786b(0x17e)]=!![];}async[_0x182169(0x168)](){const _0x291b46=_0x182169;if(!this[_0x291b46(0x181)]||!this['screencastStarted'])return;await this[_0x291b46(0x181)][_0x291b46(0x1ef)]('Page.stopScreencast')[_0x291b46(0x1e9)](()=>undefined);}[_0x182169(0x156)](){const _0x3266e0=_0x182169,_0x5032a8={'MuKdw':function(_0xd3e1fd,_0x103826,_0x159833){return _0xd3e1fd(_0x103826,_0x159833);}};this['queueTraceSample'](),this['traceSampleTimer']=_0x5032a8[_0x3266e0(0x17f)](setInterval,()=>this[_0x3266e0(0x17b)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x182169(0x17b)](){const _0x5dc93f=_0x182169;if(this[_0x5dc93f(0x130)])return;this[_0x5dc93f(0x130)]=this['captureTraceSample']()['finally'](()=>{const _0x43ccd6=_0x5dc93f;this[_0x43ccd6(0x130)]=null;});}async['stopTraceSampling'](){const _0x44d2ea=_0x182169,_0x2dfdb5={'XPQWO':function(_0x339331,_0x207256){return _0x339331(_0x207256);}};this['traceSampleTimer']&&(_0x2dfdb5[_0x44d2ea(0x211)](clearInterval,this[_0x44d2ea(0x1d4)]),this[_0x44d2ea(0x1d4)]=null),await this[_0x44d2ea(0x130)]?.['catch'](()=>undefined);}async[_0x182169(0x1c3)](){const _0x1c4fd4=_0x182169,_0x46f9f8=this['context']?.['pages']()[0x0];if(!_0x46f9f8)return;try{await _0x46f9f8['locator'](_0x1c4fd4(0x1a1))['evaluate'](_0x20607b=>_0x20607b[_0x1c4fd4(0x1f1)],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x182169(0x1a7)](){const _0x2adaaf=_0x182169,_0x127996={'pDEPF':function(_0x497157){return _0x497157();},'MpHYq':function(_0x218c01,_0x1cf432,_0xc05852){return _0x218c01(_0x1cf432,_0xc05852);},'PPYvy':function(_0x8f37f2,_0x53d577,_0xd1c34b){return _0x8f37f2(_0x53d577,_0xd1c34b);},'wfroz':_0x2adaaf(0x1b3),'Tawhi':function(_0x5f326c,_0x5903ee,_0x5c9d71){return _0x5f326c(_0x5903ee,_0x5c9d71);},'YZtUI':'-loglevel','OhJaN':'error','vLygB':'-framerate','gQMPy':'frame-%06d.jpg','tskAj':'scale=trunc(iw/2)*2:trunc(ih/2)*2','jkwjr':'-c:v','svILU':'libvpx-vp9'};if(this['frameCount']<0x2)return null;const _0x573eaf=await _0x127996['pDEPF'](resolveFfmpegPath);if(!_0x573eaf)return null;const _0x326f72=_0x127996['MpHYq'](join,this[_0x2adaaf(0x1bf)]['cliArtifactDir'],_0x2adaaf(0x1f5));await _0x127996[_0x2adaaf(0x1d3)](mkdir,_0x326f72,{'recursive':!![]});const _0x307cf3=join(_0x326f72,_0x127996[_0x2adaaf(0x186)]);return await _0x127996[_0x2adaaf(0x16e)](execFileAsync,_0x573eaf,['-y',_0x2adaaf(0x1e7),_0x127996['YZtUI'],_0x127996['OhJaN'],_0x127996[_0x2adaaf(0x1f6)],'10','-i',_0x127996[_0x2adaaf(0x1d3)](join,this['getFrameDir'](),_0x127996['gQMPy']),_0x2adaaf(0x1e4),_0x127996['tskAj'],_0x127996[_0x2adaaf(0x1b9)],_0x127996[_0x2adaaf(0x1bc)],_0x2adaaf(0x1f7),'yuv420p',_0x307cf3]),_0x307cf3;}['getFrameDir'](){const _0x274d40=_0x182169,_0x4b297b={'IghPF':function(_0x3bdeba,_0x1930ea,_0x475ee0){return _0x3bdeba(_0x1930ea,_0x475ee0);}};return _0x4b297b['IghPF'](join,this['params'][_0x274d40(0x170)],'nova-video-frames');}}async function delay(_0x2e8459){await new Promise(_0x124193=>setTimeout(_0x124193,_0x2e8459));}async function resolveFfmpegPath(){const _0x5e374b=_0x182169,_0x91b09e={'hvssK':function(_0x51f4cc,_0x430b72){return _0x51f4cc(_0x430b72);},'FuvQG':_0x5e374b(0x1de),'cYaEj':function(_0x47dbd2,_0x5e3c89,_0x288d9b,_0x2381a9,_0x2b8f3d){return _0x47dbd2(_0x5e3c89,_0x288d9b,_0x2381a9,_0x2b8f3d);},'ZSoOS':_0x5e374b(0x17d),'ZrSNB':function(_0xa918bb){return _0xa918bb();},'TdLND':_0x5e374b(0x18e),'UxNjK':function(_0x54d2fa,_0x5a55fd){return _0x54d2fa(_0x5a55fd);}};if(await _0x91b09e['hvssK'](canRunFfmpeg,_0x91b09e[_0x5e374b(0x13e)]))return _0x5e374b(0x1de);const _0x28354e=[_0x91b09e['cYaEj'](join,homedir(),'Library',_0x91b09e[_0x5e374b(0x192)],_0x5e374b(0x18e)),join(_0x91b09e['ZrSNB'](homedir),'.cache',_0x91b09e['TdLND'])];for(const _0x41f50f of _0x28354e){try{const _0x27cc6b=await _0x91b09e['hvssK'](readdir,_0x41f50f),_0x3e9a5e=_0x27cc6b['filter'](_0x1d3859=>_0x1d3859[_0x5e374b(0x177)]('ffmpeg-'))['sort']()['reverse']()['flatMap'](_0x4be4d8=>[join(_0x41f50f,_0x4be4d8,'ffmpeg-mac'),join(_0x41f50f,_0x4be4d8,_0x5e374b(0x180)),join(_0x41f50f,_0x4be4d8,_0x5e374b(0x1e3))]);for(const _0x6e643f of _0x3e9a5e){if(await _0x91b09e['UxNjK'](canRunFfmpeg,_0x6e643f))return _0x6e643f;}}catch{}}return null;}async function canRunFfmpeg(_0x53378c){const _0x270631={'tzLhl':function(_0x3c60c6,_0x578569,_0x42a37b){return _0x3c60c6(_0x578569,_0x42a37b);},'abHJI':'-version'};try{return await _0x270631['tzLhl'](execFileAsync,_0x53378c,[_0x270631['abHJI']]),!![];}catch{return![];}}function toStepDisplayName(_0x3ae5f3){const _0x219d98=_0x182169,_0xa46972=basename(_0x3ae5f3)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x219d98(0x165)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0xa46972,'isKeyStep':/^key_/i[_0x219d98(0x16d)](basename(_0x3ae5f3))};}function extractShellValue(_0xd23d46){if(!_0xd23d46)return null;return _0xd23d46[0x1]??_0xd23d46[0x2]??_0xd23d46[0x3]??null;}function extractOutputOption(_0x4c1e70){return extractShellValue(_0x4c1e70['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x3333f1,_0x54f2cb){const _0x2c6937=_0x182169,_0x26ed80={'liZrY':'session\x20create','CcLug':_0x2c6937(0x148),'yjGoa':'verify\x20page\x20condition','JLKAV':'ask','OpgqM':_0x2c6937(0x1ed),'fJktE':'wait-for','RgZdf':function(_0x4c461b,_0x593c28){return _0x4c461b(_0x593c28);},'sngdL':_0x2c6937(0x1d6),'sgDzN':function(_0x24e821,_0x2c8ce9){return _0x24e821(_0x2c8ce9);},'sRXOa':'capture\x20screenshot'};switch(_0x54f2cb){case _0x26ed80[_0x2c6937(0x1c0)]:return _0x2c6937(0x141);case _0x26ed80['CcLug']:return'execute\x20Nova\x20browser\x20action';case'verify':return _0x26ed80[_0x2c6937(0x188)];case _0x26ed80[_0x2c6937(0x1c6)]:return _0x26ed80[_0x2c6937(0x1eb)];case _0x2c6937(0x134):return _0x2c6937(0x1bd);case _0x26ed80[_0x2c6937(0x15a)]:return _0x2c6937(0x20c);case'snapshot':{const _0x52749c=_0x26ed80[_0x2c6937(0x1a6)](extractOutputOption,_0x3333f1);if(!_0x52749c)return'capture\x20snapshot';const {name:_0x2f06ee}=_0x26ed80[_0x2c6937(0x1a6)](toStepDisplayName,_0x52749c);return'capture\x20snapshot\x20`'+_0x2f06ee+'`';}case _0x26ed80[_0x2c6937(0x1ac)]:{const _0x1cc416=_0x26ed80[_0x2c6937(0x166)](extractOutputOption,_0x3333f1);if(!_0x1cc416)return _0x26ed80['sRXOa'];const {name:_0x1edb87,isKeyStep:_0x570ddc}=toStepDisplayName(_0x1cc416);return _0x570ddc?_0x2c6937(0x185)+_0x1edb87+'`':_0x2c6937(0x1e0)+_0x1edb87+'`';}case'session\x20export':return'export\x20Nova\x20session';default:return _0x54f2cb;}}function getNovaActCliCommandBlockReason(_0x5d2007){const _0x1ad9bd=_0x182169,_0x41af7e={'yPLIn':function(_0x192b39,_0x5c0ef5){return _0x192b39(_0x5c0ef5);},'hjBIf':_0x1ad9bd(0x18d),'PJXwp':function(_0x240caa,_0x421474){return _0x240caa===_0x421474;},'dcmiz':'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.'},_0x552863=_0x41af7e[_0x1ad9bd(0x137)](parseNovaActCliCommand,_0x5d2007);if(!_0x552863)return _0x41af7e['hjBIf'];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x1ad9bd(0x196)](_0x552863))return _0x1ad9bd(0x199)+_0x552863+_0x1ad9bd(0x182);if(_0x41af7e['PJXwp'](_0x552863,'verify')&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x1ad9bd(0x16d)](_0x5d2007))return _0x1ad9bd(0x1d0);if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x1ad9bd(0x16d)](_0x5d2007))return _0x41af7e[_0x1ad9bd(0x1d7)];return null;}function buildFeedbackSection(_0x13f8ef){const _0x5cd120=_0x182169,_0x3b6ce8={'qkvIY':'short','GxjgZ':function(_0x269aa0,_0x5796b0){return _0x269aa0===_0x5796b0;}};if(!_0x13f8ef||_0x3b6ce8[_0x5cd120(0x1ba)](_0x13f8ef[_0x5cd120(0x20a)][_0x5cd120(0x161)],0x0))return'';const _0x192823=_0x13f8ef[_0x5cd120(0x20a)]['map'](_0x41c19c=>{const _0x5725c5=_0x5cd120,_0x11dac4=new Date(_0x41c19c['createdAt'])[_0x5725c5(0x1aa)]('en-US',{'month':_0x3b6ce8[_0x5725c5(0x1f3)],'day':_0x5725c5(0x18a)}),_0x25c6b5=_0x41c19c['authorName']||_0x41c19c['authorEmail']||'Reviewer',_0x401f39=_0x41c19c['domRef']?'\x20(on\x20element:\x20<'+(_0x41c19c['domRef']['selector'][_0x5725c5(0x139)](_0x5725c5(0x1b5))['pop']()?.['split'](':')[0x0]||_0x5725c5(0x16f))+_0x5725c5(0x207)+(_0x41c19c['domRef'][_0x5725c5(0x1fa)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x41c19c['id']+']\x20**'+_0x25c6b5+_0x5725c5(0x209)+_0x11dac4+'):\x20\x22'+_0x41c19c[_0x5725c5(0x1ae)]+'\x22'+_0x401f39;})[_0x5cd120(0x1b8)]('\x0a');return _0x5cd120(0x1cf)+_0x192823;}function buildNovaSharedOptionsInstruction(_0x2708b3){const _0x3c2d82=_0x182169;if(!_0x2708b3[_0x3c2d82(0x1f0)]())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 _0x3c2d82(0x18b)+_0x2708b3;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x6af697){const _0x4f8ba3=_0x182169,_0x494434={'zOqNJ':function(_0x3d21f5,_0x2b9617,_0x379a87){return _0x3d21f5(_0x2b9617,_0x379a87);},'vLJaX':_0x4f8ba3(0x149),'uKrla':'01_initial-state.png','TPsbz':function(_0x545a09,_0x32407d,_0x548527){return _0x545a09(_0x32407d,_0x548527);},'XMHQC':'02_final-state.yml','KQMEq':function(_0x45b2b3,_0x32a4ad){return _0x45b2b3(_0x32a4ad);}},{novaCommandPrefix:_0x5bdf28,novaSharedOptionsSuffix:_0xdfd110,cliArtifactDir:_0x57024b,url:_0x636cbd}=_0x6af697,_0x327df0=_0x494434['zOqNJ'](buildCliArtifactPath,_0x57024b,_0x494434[_0x4f8ba3(0x1d5)]),_0x5174f0=buildCliArtifactPath(_0x57024b,_0x494434['uKrla']),_0x2b003=_0x494434['TPsbz'](buildCliArtifactPath,_0x57024b,_0x494434[_0x4f8ba3(0x13d)]),_0xb4865f=buildCliArtifactPath(_0x57024b,_0x4f8ba3(0x152));return _0x4f8ba3(0x151)+_0x5bdf28+'\x0a\x0a'+_0x494434[_0x4f8ba3(0x1e2)](buildNovaSharedOptionsInstruction,_0xdfd110)+_0x4f8ba3(0x197)+_0x5bdf28+_0x4f8ba3(0x1dd)+quoteShellArg(_0x636cbd)+'\x20'+_0xdfd110+_0x4f8ba3(0x167)+_0x5bdf28+_0x4f8ba3(0x204)+quoteShellArg(_0x327df0)+'\x20'+_0xdfd110+_0x4f8ba3(0x19e)+_0x5bdf28+_0x4f8ba3(0x19f)+_0x494434['KQMEq'](quoteShellArg,_0x5174f0)+'\x20'+_0xdfd110+'`\x0a4.\x20Run\x20one\x20batched\x20`'+_0x5bdf28+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x5bdf28+_0x4f8ba3(0x204)+quoteShellArg(_0x2b003)+'\x20'+_0xdfd110+_0x4f8ba3(0x18c)+_0x5bdf28+'\x20screenshot\x20--output\x20'+quoteShellArg(_0xb4865f)+'\x20'+_0xdfd110+_0x4f8ba3(0x1c5)+_0x57024b+_0x4f8ba3(0x1f9);}export function buildVerifyFeatureNovaCliPrompt(_0x411681){const _0x4e3bc2=_0x182169,_0x351e61={'DfNrQ':function(_0x5d508a,_0x2cce94,_0x523ebf){return _0x5d508a(_0x2cce94,_0x523ebf);},'esoHW':_0x4e3bc2(0x138),'XFGjW':function(_0x2248a8,_0x5a74d9,_0x382e4b){return _0x2248a8(_0x5a74d9,_0x382e4b);},'dmbmz':function(_0x398db6,_0x1a63ad){return _0x398db6(_0x1a63ad);},'oUJFd':_0x4e3bc2(0x206)},{checklistItem:_0x114b08,itemFeedback:_0x2d5221,taskDescription:_0x4a1324,novaCommandPrefix:_0x582624,novaSharedOptionsSuffix:_0x27e882,cliArtifactDir:_0x40fc35,url:_0x53ad01,loginInstructions:_0x2baa41}=_0x411681,_0x932330=_0x114b08[_0x4e3bc2(0x1e5)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x114b08['notes']:'',_0x2990d0=buildFeedbackSection(_0x2d5221),_0x4cb161=_0x2d5221?.[_0x4e3bc2(0x157)]?_0x4e3bc2(0x1e1)+_0x2d5221[_0x4e3bc2(0x157)]:'',_0x3d3116=_0x2baa41?_0x4e3bc2(0x190)+_0x2baa41+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x4e6f5a=_0x351e61['DfNrQ'](buildCliArtifactPath,_0x40fc35,_0x351e61[_0x4e3bc2(0x12d)]),_0x377212=buildCliArtifactPath(_0x40fc35,_0x4e3bc2(0x133)),_0x3ef8a5=_0x351e61[_0x4e3bc2(0x15c)](buildCliArtifactPath,_0x40fc35,_0x4e3bc2(0x12e));return _0x4e3bc2(0x1cd)+_0x114b08[_0x4e3bc2(0x1c2)]+_0x932330+_0x2990d0+_0x4cb161+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x4a1324+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x53ad01+'\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'+_0x3d3116+_0x4e3bc2(0x1db)+_0x582624+'\x20session\x20create\x20'+quoteShellArg(_0x53ad01)+'\x20'+_0x27e882+_0x4e3bc2(0x1ca)+_0x40fc35+_0x4e3bc2(0x143)+_0x582624+_0x4e3bc2(0x204)+_0x351e61['dmbmz'](quoteShellArg,_0x4e6f5a)+'\x20'+_0x27e882+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x582624+'\x20screenshot\x20--output\x20'+_0x351e61[_0x4e3bc2(0x14f)](quoteShellArg,_0x377212)+'\x20'+_0x27e882+_0x4e3bc2(0x178)+_0x3ef8a5+'`.\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`'+_0x582624+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x27e882['trim']()?'`'+_0x27e882+'`':_0x351e61[_0x4e3bc2(0x1a2)])+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x27e882)+'\x0a\x0aExamples:\x0a-\x20`'+_0x582624+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x27e882+_0x4e3bc2(0x15f)+_0x582624+_0x4e3bc2(0x135)+_0x27e882+_0x4e3bc2(0x15f)+_0x582624+_0x4e3bc2(0x204)+_0x351e61['dmbmz'](quoteShellArg,_0x4e6f5a)+'\x20'+_0x27e882+'`\x0a-\x20`'+_0x582624+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x3ef8a5)+'\x20'+_0x27e882+_0x4e3bc2(0x159);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0xa9a5dc){const _0x3aa00a=_0x182169,_0x1debe6={'JTSuw':function(_0x1fd9c7,_0x4ca33a){return _0x1fd9c7===_0x4ca33a;}},_0x2b8b14=[..._0xa9a5dc['keys']()]['sort']();let _0x438361=0x0;for(const _0x183293 of _0xa9a5dc[_0x3aa00a(0x19d)]()){_0x438361+=_0x183293;}return{'cliCommandCount':_0x438361,'cliCommandsSeen':_0x2b8b14,'noCliCommandsCalled':_0x1debe6[_0x3aa00a(0x202)](_0x438361,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x12f22b,_0x6652ce){const _0x23028f=_0x182169,_0x5c31f2={'tCOGg':function(_0x4459f3,_0x3a9f8e){return _0x4459f3!==_0x3a9f8e;},'RjdaU':function(_0x3ce796,_0x5c0d3c){return _0x3ce796!==_0x5c0d3c;},'gwFMO':'Bash','FIzit':function(_0x3e7931,_0xf8ad5c){return _0x3e7931(_0xf8ad5c);},'XmDOB':_0x23028f(0x16c),'JcnMC':'PostToolUse','fzVmE':'nova_act_command','QlOfU':function(_0x4e8b42,_0x2888b8,_0x368d77){return _0x4e8b42(_0x2888b8,_0x368d77);},'ocTWr':function(_0xd12719,_0x3912b8){return _0xd12719===_0x3912b8;},'yEbip':_0x23028f(0x131),'oOZmM':'nova-act-cli','ZTeiO':'PostToolUseFailure','fSSix':'nova_act_command_failure'},_0x125de0=new Map(),_0x390cf8=async _0x942f3c=>{const _0x3dc78e=_0x23028f;if(_0x5c31f2['tCOGg'](_0x942f3c[_0x3dc78e(0x14b)],_0x3dc78e(0x14d)))return{};const _0x3ef560=_0x942f3c;if(_0x5c31f2[_0x3dc78e(0x1a3)](_0x3ef560[_0x3dc78e(0x147)],_0x5c31f2[_0x3dc78e(0x1c9)]))return{};const _0x10cba1=_0x3ef560['tool_input'],_0x1cfca4=_0x5c31f2['FIzit'](extractBashCommand,_0x10cba1);if(!_0x1cfca4)return{};const _0x279673=getNovaActCliCommandBlockReason(_0x1cfca4);if(!_0x279673)return{};return{'decision':_0x5c31f2['XmDOB'],'reason':_0x279673};},_0x2c8715=async _0x59c15f=>{const _0x1a5f44=_0x23028f;if(_0x5c31f2['RjdaU'](_0x59c15f[_0x1a5f44(0x14b)],_0x5c31f2[_0x1a5f44(0x212)]))return{};const _0x5ba9f4=_0x59c15f;if(_0x5c31f2['tCOGg'](_0x5ba9f4[_0x1a5f44(0x147)],_0x5c31f2[_0x1a5f44(0x1c9)]))return{};const _0x5dabc2=_0x5ba9f4[_0x1a5f44(0x1a5)],_0x3865fd=_0x5c31f2['FIzit'](extractBashCommand,_0x5dabc2);if(!_0x3865fd)return{};const _0x3ce6fa=parseNovaActCliCommand(_0x3865fd);if(!_0x3ce6fa)return{};_0x125de0[_0x1a5f44(0x1c4)](_0x3ce6fa,(_0x125de0[_0x1a5f44(0x1c8)](_0x3ce6fa)||0x0)+0x1),_0x12f22b['trackPhaseStart'](_0x5c31f2['fzVmE'],{'subcommand':_0x3ce6fa}),_0x12f22b[_0x1a5f44(0x200)](_0x5c31f2[_0x1a5f44(0x145)],{'subcommand':_0x3ce6fa,'commandPreview':previewNovaActCliCommand(_0x3865fd)}),console[_0x1a5f44(0x158)](_0x1a5f44(0x17a)+_0x5c31f2['QlOfU'](formatNovaActCliLog,_0x3865fd,_0x3ce6fa));if(_0x5c31f2['ocTWr'](_0x3ce6fa,_0x5c31f2[_0x1a5f44(0x201)])&&_0x6652ce)try{await _0x6652ce[_0x1a5f44(0x174)]();}catch(_0x353cda){await _0x12f22b['trackPhaseError']('nova_act_artifact_recording',_0x353cda,{'transport':_0x5c31f2[_0x1a5f44(0x1a8)]});}return{};},_0x49a018=async _0x1951b1=>{const _0x561119=_0x23028f;if(_0x1951b1['hook_event_name']!==_0x5c31f2['ZTeiO'])return{};const _0x1dc106=_0x1951b1;if(_0x5c31f2['RjdaU'](_0x1dc106[_0x561119(0x147)],_0x561119(0x1a0)))return{};return await _0x12f22b[_0x561119(0x132)](_0x5c31f2['fSSix'],_0x1dc106['error'],{'transport':_0x5c31f2['oOZmM'],'toolName':'Bash'}),{};};return{'preToolUseHook':_0x390cf8,'postToolUseHook':_0x2c8715,'postToolUseFailureHook':_0x49a018,'commandCounts':_0x125de0};}function _0x1475(_0x53cd7c,_0x5805cd){_0x53cd7c=_0x53cd7c-0x12b;const _0x2452e1=_0x2452();let _0x147507=_0x2452e1[_0x53cd7c];return _0x147507;}async function runNovaLifecycleCommand(_0x5d4978){const _0x31be0c=_0x182169,_0x468752={'McLqk':function(_0x2ef0f6,_0x3b1ec3){return _0x2ef0f6??_0x3b1ec3;}},{novaOptions:_0x497fd0,commandArgs:_0x582d4d,telemetry:_0x13b14a,phase:_0x49c86d,metadata:_0x597cde,timeoutMs:_0x3d4558}=_0x5d4978;_0x13b14a['trackPhaseStart'](_0x49c86d,_0x597cde);try{const _0x2adcef=await runNovaActCliCommand({..._0x497fd0,'commandArgs':_0x582d4d,'cwd':process['cwd'](),'env':process[_0x31be0c(0x205)],'timeoutMs':_0x468752[_0x31be0c(0x1b4)](_0x3d4558,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x13b14a[_0x31be0c(0x200)](_0x49c86d,{..._0x597cde,'subcommand':_0x2adcef[_0x31be0c(0x1ce)]['subcommand'],'commandPreview':previewNovaActCliCommand(_0x2adcef['invocation']['shellCommand']),'stdoutPreview':previewNovaActCliCommand(_0x2adcef['stdout']),'stderrPreview':previewNovaActCliCommand(_0x2adcef[_0x31be0c(0x20b)]),'logDir':extractNovaActLogDir(_0x2adcef['stdout'])});}catch(_0x48bafa){await _0x13b14a['trackPhaseError'](_0x49c86d,_0x48bafa,_0x597cde);throw _0x48bafa;}}export async function finalizeVerifyFeatureNovaCliSession(_0x12917b){const _0x44889e=_0x182169,_0x9bf26e={'yvUJy':_0x44889e(0x15d),'oyIjW':'key_final-state.png','UCeWw':'nova_act_final_snapshot','FWBXl':_0x44889e(0x1cb),'POjcb':function(_0x20b90d,_0x5039e2,_0x234925){return _0x20b90d(_0x5039e2,_0x234925);},'Ggieu':_0x44889e(0x17c),'LhRrZ':'session','WvrCn':'--format','qYCkv':_0x44889e(0x1dc),'hGciF':_0x44889e(0x1e8),'spHnE':'nova_act_session_report','wpLuO':function(_0x47e472,_0x3c0eba,_0x2afd9f){return _0x47e472(_0x3c0eba,_0x2afd9f);}},{telemetry:_0x32426a,novaOptions:_0x177d62,cliArtifactDir:_0x509576,transportMetadata:_0x4e5cd0,artifactRecorder:_0xa052dd}=_0x12917b,_0x180e92=[{'phase':_0x9bf26e[_0x44889e(0x203)],'commandArgs':['screenshot','--output',buildCliArtifactPath(_0x509576,_0x9bf26e[_0x44889e(0x154)])]},{'phase':_0x9bf26e[_0x44889e(0x193)],'commandArgs':[_0x9bf26e[_0x44889e(0x19b)],'--output',_0x9bf26e['POjcb'](buildCliArtifactPath,_0x509576,_0x9bf26e[_0x44889e(0x173)])]},{'phase':_0x44889e(0x1d9),'commandArgs':[_0x9bf26e['LhRrZ'],_0x44889e(0x183),_0x9bf26e[_0x44889e(0x15b)],_0x9bf26e[_0x44889e(0x198)],_0x9bf26e['hGciF'],buildCliArtifactPath(_0x509576,_0x44889e(0x176))]},{'phase':_0x9bf26e['spHnE'],'commandArgs':[_0x9bf26e['LhRrZ'],'export','--report',_0x44889e(0x20e),_0x9bf26e['wpLuO'](buildCliArtifactPath,_0x509576,'nova-report')]},{'phase':_0x44889e(0x162),'commandArgs':[_0x9bf26e[_0x44889e(0x1af)],_0x44889e(0x194)]}];for(const _0x1b5257 of _0x180e92){_0x1b5257['phase']==='nova_act_session_close'&&await _0xa052dd?.['stop']();try{await runNovaLifecycleCommand({'novaOptions':_0x177d62,'commandArgs':[..._0x1b5257['commandArgs']],'telemetry':_0x32426a,'phase':_0x1b5257[_0x44889e(0x1c7)],'metadata':_0x4e5cd0});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x48727f){const _0x473260=_0x182169,_0x123415={'cvbfO':function(_0x563362,_0x21fad9){return _0x563362(_0x21fad9);},'mBrQa':function(_0x4f3ed9,_0x5cd83e){return _0x4f3ed9<_0x5cd83e;},'ZlGDa':function(_0x34c42e,_0x3227e8){return _0x34c42e+_0x3227e8;}},{cwd:_0x5163d3,cliArtifactDir:_0x358107,startTime:_0x4c8c28}=_0x48727f,_0x4df7bf=[];await mkdir(_0x358107,{'recursive':!![]});const _0x571a34=await readdir(_0x5163d3,{'withFileTypes':!![]});for(const _0xc25e11 of _0x571a34){if(!_0xc25e11[_0x473260(0x172)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0xc25e11[_0x473260(0x150)]))continue;const _0x2abfd7=join(_0x5163d3,_0xc25e11['name']),_0x25feae=await _0x123415['cvbfO'](stat,_0x2abfd7);if(_0x123415['mBrQa'](_0x123415[_0x473260(0x189)](_0x25feae[_0x473260(0x179)],0x7d0),_0x4c8c28))continue;const _0x4e9f39=buildCliArtifactPath(_0x358107,_0xc25e11[_0x473260(0x150)]);if(_0x2abfd7===_0x4e9f39)continue;await rename(_0x2abfd7,_0x4e9f39),_0x4df7bf['push'](_0xc25e11[_0x473260(0x150)]);}return _0x4df7bf[_0x473260(0x1e6)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x9a1dfc){const _0x506fbc=_0x182169,_0x8e47cd={'mGtCU':_0x506fbc(0x160),'KFjhU':function(_0x3d9ca6,_0x27e6d4){return _0x3d9ca6(_0x27e6d4);}},_0x2d2ad7=join(_0x9a1dfc,_0x8e47cd[_0x506fbc(0x1f8)]);try{return{'buffer':await _0x8e47cd['KFjhU'](readFile,_0x2d2ad7),'source':_0x2d2ad7};}catch{return{'buffer':await _0x8e47cd[_0x506fbc(0x1ff)](zipVerifyFeatureNovaArtifacts,_0x9a1dfc),'source':_0x9a1dfc};}}async function zipVerifyFeatureNovaArtifacts(_0x38c387){const _0x20d691=_0x182169,_0x5884e6={'cpLhC':_0x20d691(0x208),'xkZhW':function(_0x27dfdc,_0xe6e813,_0x5802a7,_0x58fc8c){return _0x27dfdc(_0xe6e813,_0x5802a7,_0x58fc8c);},'ybgHx':'-qr'},_0x2c374b=join(_0x38c387,'..',_0x5884e6[_0x20d691(0x20d)]);try{return await _0x5884e6['xkZhW'](execFileAsync,'zip',[_0x5884e6['ybgHx'],_0x2c374b,'.','-x',_0x20d691(0x146)],{'cwd':_0x38c387}),await readFile(_0x2c374b);}finally{await rm(_0x2c374b,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x3983bb){const _0x91c749=_0x182169,_0x161749={'RDNqg':function(_0x51efcc,_0x5bb632,_0xeac4b7){return _0x51efcc(_0x5bb632,_0xeac4b7);}},_0x576766=_0x161749[_0x91c749(0x1f2)](buildNovaActCliInvocation,_0x3983bb['novaOptions'],_0x3983bb[_0x91c749(0x1f4)]);return{'command':_0x576766[_0x91c749(0x15e)],'args':_0x576766['args'],'commandPreview':previewNovaActCliCommand(_0x576766['shellCommand']),'subcommand':_0x576766[_0x91c749(0x1ee)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x3983bb[_0x91c749(0x1fb)],_0x3983bb[_0x91c749(0x1f4)])};}
@@ -1 +1 @@
1
- (function(_0x1db0e1,_0x5d127f){const _0x5f59a5=_0x4780,_0x3dd25b=_0x1db0e1();while(!![]){try{const _0x537fc6=-parseInt(_0x5f59a5(0x125))/0x1*(-parseInt(_0x5f59a5(0x13c))/0x2)+-parseInt(_0x5f59a5(0x122))/0x3+parseInt(_0x5f59a5(0x143))/0x4*(parseInt(_0x5f59a5(0x112))/0x5)+parseInt(_0x5f59a5(0x152))/0x6+parseInt(_0x5f59a5(0x11a))/0x7*(parseInt(_0x5f59a5(0x106))/0x8)+-parseInt(_0x5f59a5(0x114))/0x9*(-parseInt(_0x5f59a5(0x158))/0xa)+-parseInt(_0x5f59a5(0x110))/0xb;if(_0x537fc6===_0x5d127f)break;else _0x3dd25b['push'](_0x3dd25b['shift']());}catch(_0x36a5b9){_0x3dd25b['push'](_0x3dd25b['shift']());}}}(_0x5bb9,0xcfd5a));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(_0x55f945,_0x1b3977=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x1c043b=_0x4780,_0x236b63={'rxODq':function(_0x3085b1,_0x1a9b5a){return _0x3085b1>_0x1a9b5a;},'REsMR':_0x1c043b(0x135)};return _0x236b63[_0x1c043b(0x11b)](_0x55f945['length'],_0x1b3977)?_0x55f945[_0x1c043b(0x123)](0x0,_0x1b3977)+_0x236b63[_0x1c043b(0x10e)]:_0x55f945;}function _0x5bb9(){const _0x3ac4f6=['canonicalFlow','8404962NKCINo','rangerwright_cli_command','rRcaT','PPCfw','Reviewer','zKAcm','618360LygDyb','open\x20and\x20inspect','open\x20and\x20inspect\x20','):\x20\x22','rangerwright_cli_close','\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','1100744isPJrF','domRef','ref\x20','sAPaE','short','\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`','go\x20back\x20and\x20inspect','open-and-inspect','REsMR','toLocaleDateString','43628717evilYR','01_initial-state.png','95chmQFr','close','45FkSUAA','(?:^|\x5cs)','fill-and-inspect','set','notes','rangerwright-cli','28IfIViN','rxODq','replace','unaddressedComments','length','split','hook_event_name','click\x20and\x20inspect\x20','152925lvUDyg','slice','WILGF','51411YbNRyi','\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','CKEkw','TzspI','textContent','\x5c$&','phase','MJuxd','Bash','\x20--screenshot-path\x20','GCkrM','numeric','key_02_learn-more.png','video-stop','nYDir','iohlh','...','RoRnG','cwd','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','content','key_99_final-state.png','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','36RrXhFG','commandArgs','createdAt','test','commandPrefix','>\x20\x22','stop\x20video\x20recording','354260CHFpEi','tool_name','xfalv','QVKYx','qlPUH','inspect\x20page','IlPho','close\x20browser\x20session','click-and-inspect','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','url','fill\x20','\x20open-and-inspect\x20','rangerwright_cli_video_stop'];_0x5bb9=function(){return _0x3ac4f6;};return _0x5bb9();}function extractShellValue(_0x2ff417){if(!_0x2ff417)return null;return _0x2ff417[0x1]??_0x2ff417[0x2]??_0x2ff417[0x3]??null;}function extractFirstCommandArgument(_0x45b907,_0x31bdef){const _0x4900be=_0x4780,_0x24bccf={'zKAcm':function(_0xa6ca21,_0x5cfe1c){return _0xa6ca21(_0x5cfe1c);}},_0x80ff02=_0x31bdef[_0x4900be(0x11c)](/[.*+?^${}()|[\]\\]/g,_0x4900be(0x12a));return _0x24bccf[_0x4900be(0x157)](extractShellValue,_0x45b907['match'](new RegExp(_0x4900be(0x115)+_0x80ff02+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x53748d){const _0x784e8b=_0x4780,_0x5e5311={'IlPho':function(_0x53e4d8,_0xdc3cdc,_0x205823){return _0x53e4d8(_0xdc3cdc,_0x205823);}};if(!_0x53748d)return'target';if(/^e\d+$/i[_0x784e8b(0x13f)](_0x53748d))return _0x784e8b(0x108)+_0x53748d;return JSON['stringify'](_0x5e5311[_0x784e8b(0x149)](truncatePreview,_0x53748d,0x78));}function formatRangerwrightCliLog(_0x380537,_0x237a36){const _0x1068ac=_0x4780,_0x395352={'XhLYR':function(_0x849b2c,_0x3b6b86,_0x40df7d){return _0x849b2c(_0x3b6b86,_0x40df7d);},'AiaTj':function(_0x5de632,_0x2653de){return _0x5de632(_0x2653de);},'WILGF':_0x1068ac(0x116),'GCkrM':'back-and-inspect','AsCAp':'inspect','xfalv':'tracing-stop','PkEuw':_0x1068ac(0x132),'tslHn':_0x1068ac(0x113)};switch(_0x237a36){case _0x1068ac(0x10d):{const _0x30a7b1=_0x395352['XhLYR'](extractFirstCommandArgument,_0x380537,_0x237a36);return _0x30a7b1?_0x1068ac(0x15a)+_0x30a7b1:_0x1068ac(0x159);}case _0x1068ac(0x14b):return _0x1068ac(0x121)+_0x395352['AiaTj'](formatCommandTarget,extractFirstCommandArgument(_0x380537,_0x237a36));case'fill':case _0x395352[_0x1068ac(0x124)]:return _0x1068ac(0x14e)+formatCommandTarget(_0x395352['XhLYR'](extractFirstCommandArgument,_0x380537,_0x237a36));case _0x395352[_0x1068ac(0x12f)]:return _0x1068ac(0x10c);case _0x395352['AsCAp']:return _0x1068ac(0x148);case _0x395352[_0x1068ac(0x145)]:return'stop\x20tracing';case _0x395352['PkEuw']:return _0x1068ac(0x142);case _0x395352['tslHn']:return _0x1068ac(0x14a);default:return _0x237a36;}}function renderScenarioSections(_0x7024c4){const _0x1b2d69=_0x4780,_0x1dc914={'MJuxd':_0x1b2d69(0x10a),'leOBa':_0x1b2d69(0x156),'UQrEi':function(_0x4d88f7,_0x106bd8){return _0x4d88f7>_0x106bd8;}},{checklistItem:_0x220e80,itemFeedback:_0x654310}=_0x7024c4,_0xde83fd=_0x220e80[_0x1b2d69(0x118)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x220e80['notes']:'';let _0x5ba889='';if(_0x654310&&_0x1dc914['UQrEi'](_0x654310[_0x1b2d69(0x11d)][_0x1b2d69(0x11e)],0x0)){const _0x1e1282=_0x654310[_0x1b2d69(0x11d)]['map'](_0x22c409=>{const _0x786076=_0x1b2d69,_0x379a5d=new Date(_0x22c409[_0x786076(0x13e)])[_0x786076(0x10f)]('en-US',{'month':_0x1dc914[_0x786076(0x12c)],'day':_0x786076(0x130)}),_0x460535=_0x22c409['authorName']||_0x22c409['authorEmail']||_0x1dc914['leOBa'],_0x3c1fff=_0x22c409[_0x786076(0x107)]?'\x20(on\x20element:\x20<'+(_0x22c409[_0x786076(0x107)]['selector'][_0x786076(0x11f)]('\x20>\x20')['pop']()?.['split'](':')[0x0]||'element')+_0x786076(0x141)+(_0x22c409[_0x786076(0x107)][_0x786076(0x129)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x22c409['id']+']\x20'+_0x460535+'\x20('+_0x379a5d+_0x786076(0x15b)+_0x22c409[_0x786076(0x139)]+'\x22'+_0x3c1fff;})['join']('\x0a');_0x5ba889=_0x1b2d69(0x126)+_0x1e1282;}const _0x20b6be=_0x654310?.[_0x1b2d69(0x151)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x654310['canonicalFlow']:'';return''+_0x220e80['description']+_0xde83fd+_0x5ba889+_0x20b6be;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x309086){const _0x521a14=_0x4780,_0xd1ea3={'kwovU':_0x521a14(0x111),'OgDtJ':function(_0xe36aee,_0x95296){return _0xe36aee(_0x95296);},'qlPUH':function(_0xaacdd3,_0x186501){return _0xaacdd3??_0x186501;},'cLrlZ':'about:blank'},{checklistItem:_0x30fe5e,itemFeedback:_0x327136,taskDescription:_0x536880,commandPrefix:_0x2d6ea8,isCdpMode:_0x3721bd,url:_0x11fc5a,cdpEndpoint:_0xa9b8cd,loginInstructions:_0x1020da}=_0x309086,_0x7719bd=_0xd1ea3['kwovU'],_0x53afe5=_0x521a14(0x13a),_0x3d37c7=_0x3721bd?_0x2d6ea8+'\x20inspect\x20--screenshot-path\x20'+_0xd1ea3['OgDtJ'](quoteShellArg,_0x7719bd):_0x2d6ea8+_0x521a14(0x14f)+_0xd1ea3['OgDtJ'](quoteShellArg,_0xd1ea3[_0x521a14(0x147)](_0x11fc5a,_0xd1ea3['cLrlZ']))+'\x20--screenshot-path\x20'+quoteShellArg(_0x7719bd),_0x330086=_0x3721bd?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0xa9b8cd+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x11fc5a+_0x521a14(0x15d),_0x581127=_0x1020da?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x1020da+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return _0x521a14(0x14c)+_0xd1ea3['OgDtJ'](renderScenarioSections,{'checklistItem':_0x30fe5e,'itemFeedback':_0x327136})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x536880+'\x0a\x0a'+_0x330086+_0x581127+_0x521a14(0x13b)+_0x2d6ea8+'\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'+_0x3d37c7+'\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'+_0x2d6ea8+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0x53afe5)+'\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.';}function _0x4780(_0x21b4c6,_0x5911f8){_0x21b4c6=_0x21b4c6-0x106;const _0x5bb90d=_0x5bb9();let _0x47805d=_0x5bb90d[_0x21b4c6];return _0x47805d;}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x1254aa){const _0x4fb26=_0x4780,_0x3efa85={'aQEjE':'01_mozilla-homepage.png','wFaiQ':function(_0xd748c2,_0x45cd94){return _0xd748c2(_0x45cd94);},'NLPtG':function(_0x277050,_0x1b254f){return _0x277050(_0x1b254f);}},_0x26d05b=_0x3efa85['aQEjE'],_0x48702c=_0x4fb26(0x131);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'+_0x1254aa[_0x4fb26(0x140)]+_0x4fb26(0x10b)+_0x1254aa['commandPrefix']+'\x20open-and-inspect\x20'+_0x3efa85['wFaiQ'](quoteShellArg,_0x1254aa[_0x4fb26(0x14d)])+_0x4fb26(0x12e)+_0x3efa85['NLPtG'](quoteShellArg,_0x26d05b)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x1254aa[_0x4fb26(0x140)]+'\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20'+_0x3efa85['NLPtG'](quoteShellArg,_0x48702c)+_0x4fb26(0x138);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x5300f1){const _0x236fa9=_0x4780,_0x356e82={'TzspI':function(_0x232c00,_0x332858){return _0x232c00===_0x332858;}},_0x648cb0=[..._0x5300f1['keys']()]['sort']();let _0x482394=0x0;for(const _0x2c20b6 of _0x5300f1['values']()){_0x482394+=_0x2c20b6;}return{'cliCommandCount':_0x482394,'cliCommandsSeen':_0x648cb0,'noCliCommandsCalled':_0x356e82[_0x236fa9(0x128)](_0x482394,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0xa1f88){const _0x53c1ce=_0x4780,_0x4f4cd9={'nYDir':function(_0x312ce1,_0x42e9b9){return _0x312ce1!==_0x42e9b9;},'CKEkw':function(_0x189636,_0x422b5e){return _0x189636+_0x422b5e;},'TxWul':_0x53c1ce(0x153),'ndbMb':function(_0x460c67,_0x44463){return _0x460c67(_0x44463);},'rRcaT':'PostToolUseFailure','CypZG':_0x53c1ce(0x12d),'VfaWr':'rangerwright_cli_command_failure','PfMHB':_0x53c1ce(0x119)},_0x3a8f85=new Map(),_0x3c78c3=async _0x113769=>{const _0x2c2521=_0x53c1ce;if(_0x4f4cd9['nYDir'](_0x113769[_0x2c2521(0x120)],_0x2c2521(0x15e)))return{};const _0x3fe3c5=_0x113769;if(_0x4f4cd9['nYDir'](_0x3fe3c5['tool_name'],_0x2c2521(0x12d)))return{};const _0x485c11=_0x3fe3c5['tool_input'],_0xf4f9fc=extractBashCommand(_0x485c11);if(!_0xf4f9fc)return{};const _0x22171c=parseRangerwrightCliCommand(_0xf4f9fc);if(!_0x22171c)return{};return _0x3a8f85[_0x2c2521(0x117)](_0x22171c,_0x4f4cd9[_0x2c2521(0x127)](_0x3a8f85['get'](_0x22171c)||0x0,0x1)),_0xa1f88['trackPhaseStart'](_0x2c2521(0x153),{'subcommand':_0x22171c}),_0xa1f88['trackPhaseEnd'](_0x4f4cd9['TxWul'],{'subcommand':_0x22171c,'commandPreview':_0x4f4cd9['ndbMb'](truncatePreview,_0xf4f9fc)}),console['log']('[rangerwright-cli]\x20'+formatRangerwrightCliLog(_0xf4f9fc,_0x22171c)),{};},_0x2c35d9=async _0x26b6c2=>{const _0x32d260=_0x53c1ce;if(_0x4f4cd9[_0x32d260(0x133)](_0x26b6c2[_0x32d260(0x120)],_0x4f4cd9[_0x32d260(0x154)]))return{};const _0x5d0286=_0x26b6c2;if(_0x5d0286[_0x32d260(0x144)]!==_0x4f4cd9['CypZG'])return{};return await _0xa1f88['trackPhaseError'](_0x4f4cd9['VfaWr'],_0x5d0286['error'],{'transport':_0x4f4cd9['PfMHB'],'toolName':_0x4f4cd9['CypZG']}),{};};return{'postToolUseHook':_0x3c78c3,'postToolUseFailureHook':_0x2c35d9,'commandCounts':_0x3a8f85};}async function runRangerwrightLifecycleCommand(_0x5a64f9){const _0x510a27=_0x4780,_0x37619a={'iohlh':function(_0x19c77f,_0x10f430){return _0x19c77f(_0x10f430);},'PPCfw':function(_0x453366,_0x4aa7d2){return _0x453366??_0x4aa7d2;}},{options:_0x21b17d,commandArgs:_0x183a68,env:_0x2d19ef,telemetry:_0x2c4d23,phase:_0x52e156,metadata:_0x238bd1,timeoutMs:_0x5430b1}=_0x5a64f9;_0x2c4d23['trackPhaseStart'](_0x52e156,_0x238bd1);try{const _0x11f488=await _0x37619a[_0x510a27(0x134)](runRangerwrightCliCommand,{..._0x21b17d,'commandArgs':_0x183a68,'cwd':process[_0x510a27(0x137)](),'env':_0x2d19ef,'timeoutMs':_0x37619a[_0x510a27(0x155)](_0x5430b1,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x2c4d23['trackPhaseEnd'](_0x52e156,{..._0x238bd1,'subcommand':_0x11f488['invocation']['subcommand'],'stdoutPreview':truncatePreview(_0x11f488['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x11f488['stderr'],0x7d0)});}catch(_0x480d67){await _0x2c4d23['trackPhaseError'](_0x52e156,_0x480d67,_0x238bd1);throw _0x480d67;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x467f8f){const _0x247b77=_0x4780,_0x8bdb8e={'sAPaE':_0x247b77(0x150),'AjWfu':_0x247b77(0x15c),'QVKYx':_0x247b77(0x113),'RoRnG':function(_0x4447a5,_0x4fee64){return _0x4447a5(_0x4fee64);}},{telemetry:_0x4b2129,rangerwrightOptions:_0x55d542,env:_0x5ab350,transportMetadata:_0x158239}=_0x467f8f,_0xab4f4c=[{'phase':'rangerwright_cli_tracing_stop','commandArgs':['tracing-stop']},{'phase':_0x8bdb8e[_0x247b77(0x109)],'commandArgs':[_0x247b77(0x132)]},{'phase':_0x8bdb8e['AjWfu'],'commandArgs':[_0x8bdb8e[_0x247b77(0x146)]]}];for(const _0xfe19f1 of _0xab4f4c){try{await _0x8bdb8e[_0x247b77(0x136)](runRangerwrightLifecycleCommand,{'options':_0x55d542,'commandArgs':[..._0xfe19f1[_0x247b77(0x13d)]],'env':_0x5ab350,'telemetry':_0x4b2129,'phase':_0xfe19f1[_0x247b77(0x12b)],'metadata':_0x158239});}catch{}}}
1
+ (function(_0x421ef2,_0x248f13){const _0x1ead23=_0x19b4,_0x44ecbd=_0x421ef2();while(!![]){try{const _0x22794b=-parseInt(_0x1ead23(0xb8))/0x1+parseInt(_0x1ead23(0x89))/0x2*(parseInt(_0x1ead23(0x7f))/0x3)+-parseInt(_0x1ead23(0x9f))/0x4*(parseInt(_0x1ead23(0x8b))/0x5)+parseInt(_0x1ead23(0x8e))/0x6*(-parseInt(_0x1ead23(0x82))/0x7)+-parseInt(_0x1ead23(0xc0))/0x8*(-parseInt(_0x1ead23(0xbd))/0x9)+-parseInt(_0x1ead23(0xa7))/0xa+parseInt(_0x1ead23(0xb2))/0xb*(parseInt(_0x1ead23(0x88))/0xc);if(_0x22794b===_0x248f13)break;else _0x44ecbd['push'](_0x44ecbd['shift']());}catch(_0x2974da){_0x44ecbd['push'](_0x44ecbd['shift']());}}}(_0x46fb,0x9bdf1));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(_0x550455,_0xd33b09=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x4d81e8=_0x19b4,_0x4ba363={'NwIkH':function(_0x28853e,_0x51fdbd){return _0x28853e>_0x51fdbd;},'kgore':function(_0x2dece2,_0x10e647){return _0x2dece2+_0x10e647;}};return _0x4ba363['NwIkH'](_0x550455['length'],_0xd33b09)?_0x4ba363[_0x4d81e8(0x94)](_0x550455[_0x4d81e8(0xb0)](0x0,_0xd33b09),_0x4d81e8(0xc3)):_0x550455;}function extractShellValue(_0x5c64ec){if(!_0x5c64ec)return null;return _0x5c64ec[0x1]??_0x5c64ec[0x2]??_0x5c64ec[0x3]??null;}function extractFirstCommandArgument(_0x3f9b3a,_0x2389f4){const _0x1922a8=_0x19b4,_0x2a545e=_0x2389f4[_0x1922a8(0xb4)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x3f9b3a['match'](new RegExp(_0x1922a8(0xb3)+_0x2a545e+_0x1922a8(0x75))));}function formatCommandTarget(_0x3bf6a1){const _0x4c794a=_0x19b4,_0x30ff0d={'DsBvV':function(_0x4985cf,_0x5886b3,_0x20cf6c){return _0x4985cf(_0x5886b3,_0x20cf6c);}};if(!_0x3bf6a1)return _0x4c794a(0x8d);if(/^e\d+$/i['test'](_0x3bf6a1))return'ref\x20'+_0x3bf6a1;return JSON[_0x4c794a(0x71)](_0x30ff0d['DsBvV'](truncatePreview,_0x3bf6a1,0x78));}function formatRangerwrightCliLog(_0x53a6e3,_0xda3d68){const _0x55dba3=_0x19b4,_0x22208d={'eZIIH':function(_0x21c2e2,_0x33c2ff,_0x2b6572){return _0x21c2e2(_0x33c2ff,_0x2b6572);},'rmNWa':function(_0x59be1b,_0xa990e2){return _0x59be1b(_0xa990e2);},'Gkwwj':function(_0x5c6554,_0x36c085,_0xfa066c){return _0x5c6554(_0x36c085,_0xfa066c);},'FxPSx':_0x55dba3(0xbf),'AGvyg':function(_0x46445c,_0x11dab7,_0x14f9a1){return _0x46445c(_0x11dab7,_0x14f9a1);},'femJc':_0x55dba3(0xad),'hvpgz':'inspect','rEGTa':_0x55dba3(0x84),'LGgnP':_0x55dba3(0xcc),'kuHkV':_0x55dba3(0x70),'janIw':'close','ehydv':_0x55dba3(0xa3)};switch(_0xda3d68){case'open-and-inspect':{const _0x2a1e39=_0x22208d[_0x55dba3(0xbe)](extractFirstCommandArgument,_0x53a6e3,_0xda3d68);return _0x2a1e39?'open\x20and\x20inspect\x20'+_0x2a1e39:'open\x20and\x20inspect';}case'click-and-inspect':return _0x55dba3(0x9a)+_0x22208d['rmNWa'](formatCommandTarget,_0x22208d[_0x55dba3(0x7c)](extractFirstCommandArgument,_0x53a6e3,_0xda3d68));case _0x22208d['FxPSx']:case'fill-and-inspect':return'fill\x20'+_0x22208d[_0x55dba3(0xb5)](formatCommandTarget,_0x22208d[_0x55dba3(0x98)](extractFirstCommandArgument,_0x53a6e3,_0xda3d68));case _0x22208d['femJc']:return _0x55dba3(0xba);case _0x22208d['hvpgz']:return _0x22208d['rEGTa'];case _0x55dba3(0xbc):return _0x22208d['LGgnP'];case'video-stop':return _0x22208d[_0x55dba3(0xa6)];case _0x22208d[_0x55dba3(0xa1)]:return _0x22208d[_0x55dba3(0x96)];default:return _0xda3d68;}}function _0x19b4(_0x326ca0,_0x4d4c93){_0x326ca0=_0x326ca0-0x6f;const _0x46fb7b=_0x46fb();let _0x19b45c=_0x46fb7b[_0x326ca0];return _0x19b45c;}function renderScenarioSections(_0x4c8632){const _0x248b5b=_0x19b4,_0x143989={'YOtuP':_0x248b5b(0x6f),'PEnbj':'short','BPRsZ':'numeric','PtnLc':_0x248b5b(0x81)},{checklistItem:_0x9bad63,itemFeedback:_0x19b1d8}=_0x4c8632,_0x515dd5=_0x9bad63[_0x248b5b(0x80)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x9bad63[_0x248b5b(0x80)]:'';let _0x5440e3='';if(_0x19b1d8&&_0x19b1d8[_0x248b5b(0xc4)]['length']>0x0){const _0x38dd41=_0x19b1d8[_0x248b5b(0xc4)]['map'](_0x3910a4=>{const _0x28bad8=_0x248b5b,_0x1ca34c=new Date(_0x3910a4['createdAt'])[_0x28bad8(0xa9)](_0x143989[_0x28bad8(0x79)],{'month':_0x143989['PEnbj'],'day':_0x143989[_0x28bad8(0x7d)]}),_0x216137=_0x3910a4['authorName']||_0x3910a4['authorEmail']||_0x143989['PtnLc'],_0xbb2414=_0x3910a4['domRef']?'\x20(on\x20element:\x20<'+(_0x3910a4['domRef']['selector']['split']('\x20>\x20')[_0x28bad8(0x8a)]()?.[_0x28bad8(0x99)](':')[0x0]||_0x28bad8(0xca))+_0x28bad8(0x85)+(_0x3910a4['domRef'][_0x28bad8(0x91)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x28bad8(0xb7)+_0x3910a4['id']+']\x20'+_0x216137+'\x20('+_0x1ca34c+_0x28bad8(0x77)+_0x3910a4[_0x28bad8(0x78)]+'\x22'+_0xbb2414;})['join']('\x0a');_0x5440e3=_0x248b5b(0x9b)+_0x38dd41;}const _0x5a6607=_0x19b1d8?.['canonicalFlow']?_0x248b5b(0xa2)+_0x19b1d8[_0x248b5b(0xb1)]:'';return''+_0x9bad63[_0x248b5b(0x92)]+_0x515dd5+_0x5440e3+_0x5a6607;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x7a5536){const _0x5f3891=_0x19b4,_0x2751bb={'uZcZa':'01_initial-state.png','Wmdfc':function(_0x27d588,_0x49a13f){return _0x27d588(_0x49a13f);},'TqQkH':function(_0x1f0a32,_0x21575d){return _0x1f0a32??_0x21575d;},'diuHW':function(_0x4d80aa,_0x368555){return _0x4d80aa(_0x368555);}},{checklistItem:_0x141b4e,itemFeedback:_0x5ed484,taskDescription:_0x39f9bb,commandPrefix:_0x348aab,isCdpMode:_0x495470,url:_0x5e9be6,cdpEndpoint:_0x3ef35b,loginInstructions:_0x155bec}=_0x7a5536,_0x392c20=_0x2751bb['uZcZa'],_0x4345f6=_0x5f3891(0xaa),_0x319072=_0x495470?_0x348aab+_0x5f3891(0x83)+_0x2751bb['Wmdfc'](quoteShellArg,_0x392c20):_0x348aab+_0x5f3891(0xa5)+quoteShellArg(_0x2751bb[_0x5f3891(0x90)](_0x5e9be6,_0x5f3891(0x8c)))+_0x5f3891(0x9c)+_0x2751bb['Wmdfc'](quoteShellArg,_0x392c20),_0x435968=_0x495470?_0x5f3891(0x97)+_0x3ef35b+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x5e9be6+_0x5f3891(0xc2),_0x357a9d=_0x155bec?_0x5f3891(0xc7)+_0x155bec+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x2751bb[_0x5f3891(0xae)](renderScenarioSections,{'checklistItem':_0x141b4e,'itemFeedback':_0x5ed484})+_0x5f3891(0xc1)+_0x39f9bb+'\x0a\x0a'+_0x435968+_0x357a9d+_0x5f3891(0x7e)+_0x348aab+'\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'+_0x319072+'\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'+_0x348aab+_0x5f3891(0x9e)+quoteShellArg(_0x4345f6)+'\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(_0x4f4e96){const _0x29dcac=_0x19b4,_0x237048={'kisqu':_0x29dcac(0x73),'rcWWH':function(_0x3bb702,_0x3832b9){return _0x3bb702(_0x3832b9);}},_0x383b70='01_mozilla-homepage.png',_0x4e9e7e=_0x237048[_0x29dcac(0x9d)];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'+_0x4f4e96[_0x29dcac(0x7b)]+_0x29dcac(0xc9)+_0x4f4e96[_0x29dcac(0x7b)]+'\x20open-and-inspect\x20'+quoteShellArg(_0x4f4e96[_0x29dcac(0x8f)])+'\x20--screenshot-path\x20'+_0x237048['rcWWH'](quoteShellArg,_0x383b70)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x4f4e96['commandPrefix']+'\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20'+quoteShellArg(_0x4e9e7e)+_0x29dcac(0x93);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x429703){const _0x4203ff=_0x19b4,_0x2afb34={'GJzlh':function(_0x262020,_0x558b3c){return _0x262020===_0x558b3c;}},_0x33b0b1=[..._0x429703[_0x4203ff(0x87)]()]['sort']();let _0x329c9e=0x0;for(const _0x9e4e0c of _0x429703[_0x4203ff(0xa0)]()){_0x329c9e+=_0x9e4e0c;}return{'cliCommandCount':_0x329c9e,'cliCommandsSeen':_0x33b0b1,'noCliCommandsCalled':_0x2afb34['GJzlh'](_0x329c9e,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0xc1b088){const _0x2bca6d=_0x19b4,_0x55899f={'KigYI':function(_0x121748,_0x1716c3){return _0x121748!==_0x1716c3;},'Jfbsd':function(_0x1a2179,_0x1eebaa){return _0x1a2179(_0x1eebaa);},'VpSTt':_0x2bca6d(0xbb),'aMbTz':function(_0x52d7c5,_0x275deb,_0x2b5c68){return _0x52d7c5(_0x275deb,_0x2b5c68);},'yLyOc':function(_0x22391d,_0x1f6ef0){return _0x22391d!==_0x1f6ef0;},'DdZPI':_0x2bca6d(0xc6)},_0x33d201=new Map(),_0x24bfb0=async _0x2ce1b9=>{const _0x4b26a9=_0x2bca6d;if(_0x55899f['KigYI'](_0x2ce1b9['hook_event_name'],'PostToolUse'))return{};const _0x13c182=_0x2ce1b9;if(_0x13c182['tool_name']!==_0x4b26a9(0x72))return{};const _0x50f179=_0x13c182['tool_input'],_0x1a6087=extractBashCommand(_0x50f179);if(!_0x1a6087)return{};const _0x56748a=_0x55899f['Jfbsd'](parseRangerwrightCliCommand,_0x1a6087);if(!_0x56748a)return{};return _0x33d201['set'](_0x56748a,(_0x33d201['get'](_0x56748a)||0x0)+0x1),_0xc1b088['trackPhaseStart']('rangerwright_cli_command',{'subcommand':_0x56748a}),_0xc1b088['trackPhaseEnd'](_0x55899f['VpSTt'],{'subcommand':_0x56748a,'commandPreview':_0x55899f['Jfbsd'](truncatePreview,_0x1a6087)}),console['log'](_0x4b26a9(0x7a)+_0x55899f['aMbTz'](formatRangerwrightCliLog,_0x1a6087,_0x56748a)),{};},_0x41d3ff=async _0x36fb4e=>{const _0x493e9c=_0x2bca6d;if(_0x55899f[_0x493e9c(0x86)](_0x36fb4e['hook_event_name'],_0x55899f[_0x493e9c(0x76)]))return{};const _0x31254b=_0x36fb4e;if(_0x31254b[_0x493e9c(0xcb)]!==_0x493e9c(0x72))return{};return await _0xc1b088[_0x493e9c(0xab)](_0x493e9c(0xac),_0x31254b['error'],{'transport':'rangerwright-cli','toolName':_0x493e9c(0x72)}),{};};return{'postToolUseHook':_0x24bfb0,'postToolUseFailureHook':_0x41d3ff,'commandCounts':_0x33d201};}function _0x46fb(){const _0x5178a7=['tool_name','stop\x20tracing','en-US','stop\x20video\x20recording','stringify','Bash','key_02_learn-more.png','cwd','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','DdZPI','):\x20\x22','content','YOtuP','[rangerwright-cli]\x20','commandPrefix','Gkwwj','BPRsZ','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','79359NxYzaL','notes','Reviewer','511qmTXba','\x20inspect\x20--screenshot-path\x20','inspect\x20page','>\x20\x22','yLyOc','keys','204LtLyZF','56gnFpzF','pop','10gWgYlc','about:blank','target','43854OnQaBc','url','TqQkH','textContent','description','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','kgore','subcommand','ehydv','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','AGvyg','split','click\x20and\x20inspect\x20','\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','\x20--screenshot-path\x20','kisqu','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','1410680oyEBjK','values','janIw','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','close\x20browser\x20session','commandArgs','\x20open-and-inspect\x20','kuHkV','9115520GnFdrV','invocation','toLocaleDateString','key_99_final-state.png','trackPhaseError','rangerwright_cli_command_failure','back-and-inspect','diuHW','close','slice','canonicalFlow','1345619Amwwbu','(?:^|\x5cs)','replace','rmNWa','stdout','-\x20[','1035516cHAdzZ','GNRxA','go\x20back\x20and\x20inspect','rangerwright_cli_command','tracing-stop','9037233pSgVlk','eZIIH','fill','8vOgVYW','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','\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.','...','unaddressedComments','XKMLZ','PostToolUseFailure','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','rangerwright_cli_tracing_stop','\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`','element'];_0x46fb=function(){return _0x5178a7;};return _0x46fb();}async function runRangerwrightLifecycleCommand(_0x2af991){const _0x3ffa3c=_0x19b4,_0x42fd77={'XKMLZ':function(_0x10ae73,_0x189589,_0x329ed5){return _0x10ae73(_0x189589,_0x329ed5);}},{options:_0x366b70,commandArgs:_0x85d946,env:_0x573b37,telemetry:_0x69743e,phase:_0x4199d6,metadata:_0x1ff907,timeoutMs:_0x1b9144}=_0x2af991;_0x69743e['trackPhaseStart'](_0x4199d6,_0x1ff907);try{const _0x2da1e1=await runRangerwrightCliCommand({..._0x366b70,'commandArgs':_0x85d946,'cwd':process[_0x3ffa3c(0x74)](),'env':_0x573b37,'timeoutMs':_0x1b9144??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x69743e['trackPhaseEnd'](_0x4199d6,{..._0x1ff907,'subcommand':_0x2da1e1[_0x3ffa3c(0xa8)][_0x3ffa3c(0x95)],'stdoutPreview':_0x42fd77[_0x3ffa3c(0xc5)](truncatePreview,_0x2da1e1[_0x3ffa3c(0xb6)],0x7d0),'stderrPreview':truncatePreview(_0x2da1e1['stderr'],0x7d0)});}catch(_0x57b021){await _0x69743e['trackPhaseError'](_0x4199d6,_0x57b021,_0x1ff907);throw _0x57b021;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x55f684){const _0x1c54c0=_0x19b4,_0x5b274b={'GOXAj':'tracing-stop','wqMUr':'rangerwright_cli_video_stop','GNRxA':'video-stop','WZaAQ':'rangerwright_cli_close'},{telemetry:_0x286b29,rangerwrightOptions:_0x4b6253,env:_0x4b7f7f,transportMetadata:_0x571dfc}=_0x55f684,_0x2f7bb2=[{'phase':_0x1c54c0(0xc8),'commandArgs':[_0x5b274b['GOXAj']]},{'phase':_0x5b274b['wqMUr'],'commandArgs':[_0x5b274b[_0x1c54c0(0xb9)]]},{'phase':_0x5b274b['WZaAQ'],'commandArgs':[_0x1c54c0(0xaf)]}];for(const _0x1ae03a of _0x2f7bb2){try{await runRangerwrightLifecycleCommand({'options':_0x4b6253,'commandArgs':[..._0x1ae03a[_0x1c54c0(0xa4)]],'env':_0x4b7f7f,'telemetry':_0x286b29,'phase':_0x1ae03a['phase'],'metadata':_0x571dfc});}catch{}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "3.1.3-alpha.546c9e8-43",
3
+ "version": "3.1.3",
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"