@ranger-testing/ranger-cli 3.0.1-alpha.d9f4572-27 → 3.0.1-alpha.ebe0997-35

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 (84) 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 -0
  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 -0
  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/userApi.js +1 -1
  79. package/build/commands/utils/version.js +1 -1
  80. package/build/commands/verifyFeature.js +1 -1
  81. package/build/commands/verifyFeatureCli.js +1 -1
  82. package/build/commands/verifyFeatureNovaCli.js +1 -1
  83. package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
  84. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x1c7a88,_0x347501){const _0xcdd52d=_0x3c19,_0x148084=_0x1c7a88();while(!![]){try{const _0x3337f2=-parseInt(_0xcdd52d(0x1ab))/0x1*(parseInt(_0xcdd52d(0x1e6))/0x2)+-parseInt(_0xcdd52d(0x1e1))/0x3*(-parseInt(_0xcdd52d(0x196))/0x4)+parseInt(_0xcdd52d(0x1d5))/0x5*(parseInt(_0xcdd52d(0x1d4))/0x6)+-parseInt(_0xcdd52d(0x177))/0x7*(parseInt(_0xcdd52d(0x1d9))/0x8)+parseInt(_0xcdd52d(0x1a3))/0x9+parseInt(_0xcdd52d(0x1f4))/0xa+parseInt(_0xcdd52d(0x1de))/0xb;if(_0x3337f2===_0x347501)break;else _0x148084['push'](_0x148084['shift']());}catch(_0x43a87e){_0x148084['push'](_0x148084['shift']());}}}(_0x182a,0xc37ae));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';function _0x182a(){const _0x281124=['ATSux','**\x20(','PostToolUse','keys','length','capture\x20snapshot','CAwBT','screenshot','jiIbb','key_04_success-state.png','stop\x20video\x20recording','domRef','hsbOk','selector','qUIiQ','open\x20browser','01_initial.yml','01_mozilla-homepage.png','trackPhaseStart','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','video-stop','zgPzO','check\x20','BegzU','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','stop\x20tracing','725442FbioLo','10cvTsRs','LrEwA','`,\x20then\x20`','ZXJbs','4272FNEXRd','stderr','values','\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.','start\x20video\x20recording','18964286nhaMZs','02_button-clicked.png','trackPhaseEnd','10386PDIuKQ','TBfrE','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','\x22,\x20\x22','PostToolUseFailure','253196zjnbLn','video-start','lHiSZ','phase','join','close','slice','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','NQKwK','\x20open\x20','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','iUMop','FfxWx','playwright_cli_video_stop','1440UUwwyB','02_state.yml','WMrsV','tracing-stop',']\x20**','isFile','split','trackPhaseError','7826QduUef','GvFwP','...','--filename=','\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-\x20Write\x20all\x20artifacts\x20under\x20`','canonicalFlow','tool_name','HHrAD','rDXab','\x20(on\x20element:\x20<','tracing-start','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','element','\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','\x20screenshot\x20--filename\x20','jdjcC','BXjco','\x0a\x0a##\x20Additional\x20Notes\x0a','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','DEBUG','Bash','\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\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.','`\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`','>\x20\x22','fill','numeric','playwright-cli','textContent','replace','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','324EfLWmE','capture\x20key\x20step\x20`','hAOmJ','match','trace.trace.zip','hook_event_name','subcommand','\x20snapshot\x20--filename\x20','invocation','press\x20','push','playwright_cli_close','trim','3755448dbyKyC','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','`\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`','toLocaleDateString','test','[ranger-verification-agent]\x20','ZwHNV','run-code','10DRgqEA','viqZJ','notes','UyVBg','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','\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','unaddressedComments','VXCIP','name','FUosW','capture\x20step\x20`','playwright_cli_tracing_stop','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','press','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'];_0x182a=function(){return _0x281124;};return _0x182a();}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(_0x7aa1a6,_0xa7a565=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x38ceb3=_0x3c19,_0xab9455={'zgPzO':function(_0x530e31,_0x57408e){return _0x530e31+_0x57408e;}};return _0x7aa1a6[_0x38ceb3(0x1be)]>_0xa7a565?_0xab9455[_0x38ceb3(0x1cf)](_0x7aa1a6['slice'](0x0,_0xa7a565),_0x38ceb3(0x179)):_0x7aa1a6;}function buildCliArtifactPath(_0x3846d7,_0x5c31f2){return join(_0x3846d7,_0x5c31f2);}function toStepDisplayName(_0x522a96){const _0x49b437=_0x3c19,_0x49ff61=basename(_0x522a96)[_0x49b437(0x194)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x49ff61,'isKeyStep':/^key_/i['test'](basename(_0x522a96))};}function extractShellValue(_0x4fabd1){if(!_0x4fabd1)return null;return _0x4fabd1[0x1]??_0x4fabd1[0x2]??_0x4fabd1[0x3]??null;}function extractFilenameOption(_0x4faad2){const _0x536a66=_0x3c19;return extractShellValue(_0x4faad2[_0x536a66(0x199)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x4a6901,_0x2fec16){const _0x11b441=_0x3c19,_0x53967f=_0x2fec16[_0x11b441(0x194)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x4a6901['match'](new RegExp('(?:^|\x5cs)'+_0x53967f+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x51a181){const _0xd5e5d3=_0x3c19,_0x59d06b={'qUIiQ':function(_0x5ada7d,_0xbccea4,_0x143239){return _0x5ada7d(_0xbccea4,_0x143239);}};if(!_0x51a181)return'target';if(/^e\d+$/i[_0xd5e5d3(0x1a7)](_0x51a181))return'ref\x20'+_0x51a181;return JSON['stringify'](_0x59d06b[_0xd5e5d3(0x1c8)](truncatePreview,_0x51a181,0x78));}function formatPlaywrightCliLog(_0x42cf0d,_0x44dabe){const _0x12c5e4=_0x3c19,_0x12f49f={'nOPGE':'open','UyVBg':function(_0x372c96,_0x1d51bd,_0x302a05){return _0x372c96(_0x1d51bd,_0x302a05);},'pvBeh':_0x12c5e4(0x1c9),'ATSux':'start\x20tracing','hwXbX':_0x12c5e4(0x1d3),'hsbOk':_0x12c5e4(0x1dd),'nWkJj':'video-stop','BXjco':_0x12c5e4(0x1c4),'FUosW':_0x12c5e4(0x1c1),'rDXab':function(_0x45ff22,_0x2501bc){return _0x45ff22(_0x2501bc);},'GZTTD':'check','OunuL':_0x12c5e4(0x1b8),'lHiSZ':_0x12c5e4(0x1aa),'JECuE':'run\x20custom\x20Playwright\x20code','HAyKm':'tab-new','MdEkE':'select\x20tab'};switch(_0x44dabe){case _0x12f49f['nOPGE']:{const _0x24d3d0=_0x12f49f[_0x12c5e4(0x1ae)](extractFirstCommandArgument,_0x42cf0d,_0x44dabe);return _0x24d3d0?'open\x20'+_0x24d3d0:_0x12f49f['pvBeh'];}case _0x12c5e4(0x182):return _0x12f49f[_0x12c5e4(0x1ba)];case _0x12c5e4(0x1f7):return _0x12f49f['hwXbX'];case _0x12c5e4(0x1e7):return _0x12f49f[_0x12c5e4(0x1c6)];case _0x12f49f['nWkJj']:return _0x12f49f[_0x12c5e4(0x188)];case'snapshot':{const _0x8e5c27=extractFilenameOption(_0x42cf0d);if(!_0x8e5c27)return _0x12c5e4(0x1bf);const {name:_0x2fab14}=toStepDisplayName(_0x8e5c27);return'capture\x20snapshot\x20`'+_0x2fab14+'`';}case _0x12f49f[_0x12c5e4(0x1b4)]:{const _0x21a32f=extractFilenameOption(_0x42cf0d);if(!_0x21a32f)return'capture\x20screenshot';const {name:_0x6761e1,isKeyStep:_0x255356}=toStepDisplayName(_0x21a32f);return _0x255356?_0x12c5e4(0x197)+_0x6761e1+'`':_0x12c5e4(0x1b5)+_0x6761e1+'`';}case'click':return'click\x20'+_0x12f49f['rDXab'](formatCommandTarget,extractFirstCommandArgument(_0x42cf0d,_0x44dabe));case _0x12f49f['GZTTD']:return _0x12c5e4(0x1d0)+_0x12f49f['rDXab'](formatCommandTarget,extractFirstCommandArgument(_0x42cf0d,_0x44dabe));case _0x12c5e4(0x190):return'fill\x20'+_0x12f49f[_0x12c5e4(0x180)](formatCommandTarget,extractFirstCommandArgument(_0x42cf0d,_0x44dabe));case _0x12f49f['OunuL']:return _0x12c5e4(0x19f)+formatCommandTarget(extractFirstCommandArgument(_0x42cf0d,_0x44dabe));case _0x12f49f[_0x12c5e4(0x1e8)]:return _0x12f49f['JECuE'];case _0x12f49f['HAyKm']:{const _0x179c7a=_0x12f49f['UyVBg'](extractFirstCommandArgument,_0x42cf0d,_0x44dabe);return _0x179c7a?'open\x20new\x20tab\x20'+_0x179c7a:'open\x20new\x20tab';}case'tab-select':{const _0x118db1=_0x12f49f['UyVBg'](extractFirstCommandArgument,_0x42cf0d,_0x44dabe);return _0x118db1?'select\x20tab\x20'+_0x118db1:_0x12f49f['MdEkE'];}default:return _0x44dabe;}}function extractPlaywrightCliToolDescription(_0x3f5241){const _0x35e478=_0x3c19,_0x58a1de={'CYJpP':'string','MLdNJ':function(_0xff9acf,_0x408462){return _0xff9acf>_0x408462;}},_0x27ced1=_0x3f5241['description'];if(typeof _0x27ced1!==_0x58a1de['CYJpP'])return null;const _0x47d8bf=_0x27ced1[_0x35e478(0x1a2)]()['replace'](/\s+/g,'\x20');return _0x58a1de['MLdNJ'](_0x47d8bf[_0x35e478(0x1be)],0x0)?_0x47d8bf:null;}export function formatPlaywrightCliConsoleLogMessage(_0xc865b4,_0x5d9f54,_0x5040b0){const _0x1bcad7=_0x3c19,_0x2023ac={'jdjcC':function(_0xe4eab0,_0x56936c,_0x37a6e5){return _0xe4eab0(_0x56936c,_0x37a6e5);}},_0x4424bc=_0x2023ac[_0x1bcad7(0x187)](formatPlaywrightCliLog,_0x5d9f54,_0x5040b0),_0x500325=extractPlaywrightCliToolDescription(_0xc865b4);if(!_0x500325)return'[playwright-cli]\x20'+_0x4424bc;if(process['env'][_0x1bcad7(0x18b)])return _0x1bcad7(0x1a8)+_0x500325+'\x20('+_0x4424bc+')';return'[ranger-verification-agent]\x20'+_0x500325;}export function buildVerifyFeatureCliDebugPrompt(_0x252876,_0x2216e0){const _0x4ad64a=_0x3c19,_0x3cc94e={'iUMop':function(_0x2ecdfc,_0x1de482,_0x32c06a){return _0x2ecdfc(_0x1de482,_0x32c06a);},'lNjyl':'00_mozilla-homepage.yml','ksXrf':function(_0x37a6c0,_0x2ecdec){return _0x37a6c0(_0x2ecdec);},'VXCIP':function(_0x51ac0e,_0xcf56d2){return _0x51ac0e(_0xcf56d2);}},_0x31eb90=_0x3cc94e[_0x4ad64a(0x1f1)](buildCliArtifactPath,_0x2216e0,_0x3cc94e['lNjyl']),_0xa92cbf=_0x3cc94e['iUMop'](buildCliArtifactPath,_0x2216e0,_0x4ad64a(0x1cb)),_0x5f21e3=_0x3cc94e[_0x4ad64a(0x1f1)](buildCliArtifactPath,_0x2216e0,'02_learn-more.yml'),_0x18ca81=buildCliArtifactPath(_0x2216e0,'03_learn-more.png'),_0x38c6c4=quoteShellArg(_0x31eb90),_0x4625a4=_0x3cc94e['ksXrf'](quoteShellArg,_0xa92cbf),_0x19f7d7=_0x3cc94e[_0x4ad64a(0x1b2)](quoteShellArg,_0x5f21e3),_0x102f9d=quoteShellArg(_0x18ca81);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x252876+'\x0a\x0a1.\x20Run\x20`'+_0x252876+_0x4ad64a(0x183)+_0x252876+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x252876+_0x4ad64a(0x1cd)+_0x2216e0+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x252876+'\x20snapshot\x20--filename\x20'+_0x38c6c4+_0x4ad64a(0x1af)+_0x252876+'\x20screenshot\x20--filename\x20'+_0x4625a4+_0x4ad64a(0x1a4)+_0x252876+'\x20snapshot\x20--filename\x20'+_0x19f7d7+'`\x0a9.\x20Run\x20`'+_0x252876+'\x20screenshot\x20--filename\x20'+_0x102f9d+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x46ccca){const _0x3ea1bb=_0x3c19,_0x6b3613={'Jgfoy':'short','BegzU':'Reviewer','LrEwA':_0x3ea1bb(0x1ca),'FfxWx':function(_0x33624f,_0x29ed02,_0x407aa0){return _0x33624f(_0x29ed02,_0x407aa0);},'eekLv':function(_0x406c16,_0xea4798){return _0x406c16(_0xea4798);},'WMrsV':function(_0x1bf5e7,_0x209dff){return _0x1bf5e7>_0x209dff;},'WDlEz':function(_0x1019b7,_0x10185b){return _0x1019b7(_0x10185b);},'GvFwP':_0x3ea1bb(0x1df),'HgkAg':'03_result-visible.png'},{checklistItem:_0x579046,itemFeedback:_0x50a4f8,taskDescription:_0x11019b,cliCommandPrefix:_0x448c3b,cliArtifactDir:_0x4f5f59,isCdpMode:_0x4c5074,url:_0x5e16d7,cdpEndpoint:_0x2dde04,loginInstructions:_0xc6888c}=_0x46ccca,_0x45e5bb=buildCliArtifactPath(_0x4f5f59,_0x6b3613[_0x3ea1bb(0x1d6)]),_0x1eb39f=buildCliArtifactPath(_0x4f5f59,_0x3ea1bb(0x1f5)),_0x511d37=_0x6b3613[_0x3ea1bb(0x1f2)](buildCliArtifactPath,_0x4f5f59,'key_03_success-state.png'),_0x41cd45=_0x6b3613[_0x3ea1bb(0x1f2)](buildCliArtifactPath,_0x4f5f59,'01_initial-state.png'),_0x3a62fd=quoteShellArg(_0x45e5bb),_0x3d5a55=quoteShellArg(_0x1eb39f),_0x45f325=_0x6b3613['eekLv'](quoteShellArg,_0x511d37),_0x410431=quoteShellArg(_0x41cd45),_0x4df4b8=_0x579046['notes']?_0x3ea1bb(0x189)+_0x579046[_0x3ea1bb(0x1ad)]:'';let _0x274c81='';if(_0x50a4f8&&_0x6b3613[_0x3ea1bb(0x1f6)](_0x50a4f8[_0x3ea1bb(0x1b1)]['length'],0x0)){const _0x6aa7cd=_0x50a4f8[_0x3ea1bb(0x1b1)]['map'](_0x43e7fe=>{const _0x1a7da5=_0x3ea1bb,_0x4402f1=new Date(_0x43e7fe['createdAt'])[_0x1a7da5(0x1a6)]('en-US',{'month':_0x6b3613['Jgfoy'],'day':_0x1a7da5(0x191)}),_0x445879=_0x43e7fe['authorName']||_0x43e7fe['authorEmail']||_0x6b3613[_0x1a7da5(0x1d1)],_0x1f7360=_0x43e7fe[_0x1a7da5(0x1c5)]?_0x1a7da5(0x181)+(_0x43e7fe['domRef'][_0x1a7da5(0x1c7)][_0x1a7da5(0x1fa)]('\x20>\x20')['pop']()?.[_0x1a7da5(0x1fa)](':')[0x0]||_0x1a7da5(0x184))+_0x1a7da5(0x18f)+(_0x43e7fe[_0x1a7da5(0x1c5)][_0x1a7da5(0x193)]||'')[_0x1a7da5(0x1ec)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x43e7fe['id']+_0x1a7da5(0x1f8)+_0x445879+_0x1a7da5(0x1bb)+_0x4402f1+'):\x20\x22'+_0x43e7fe['content']+'\x22'+_0x1f7360;})[_0x3ea1bb(0x1ea)]('\x0a');_0x274c81='\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'+_0x6aa7cd;}const _0x14a582=_0x50a4f8?.[_0x3ea1bb(0x17d)]?_0x3ea1bb(0x195)+_0x50a4f8['canonicalFlow']:'',_0x15a3fb=_0x4c5074?_0x3ea1bb(0x1ed)+_0x2dde04+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x5e16d7+_0x3ea1bb(0x185),_0x47b68a=_0x5e16d7?_0x6b3613['WDlEz'](quoteShellArg,_0x5e16d7):'',_0x394fca=_0x4c5074?_0x3ea1bb(0x1e3)+_0x448c3b+'\x20open`,\x20then\x20`'+_0x448c3b+'\x20tracing-start`,\x20then\x20`'+_0x448c3b+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4f5f59+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x448c3b+_0x3ea1bb(0x19d)+_0x3a62fd+_0x3ea1bb(0x1a5)+_0x448c3b+_0x3ea1bb(0x186)+_0x410431+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x448c3b+_0x3ea1bb(0x1b0):_0x3ea1bb(0x1e3)+_0x448c3b+_0x3ea1bb(0x1ef)+_0x47b68a+_0x3ea1bb(0x1d7)+_0x448c3b+'\x20tracing-start`,\x20then\x20`'+_0x448c3b+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x4f5f59+_0x3ea1bb(0x18a)+_0x448c3b+'\x20snapshot\x20--filename\x20'+_0x3a62fd+_0x3ea1bb(0x18e)+_0x448c3b+'\x20screenshot\x20--filename\x20'+_0x410431+_0x3ea1bb(0x1f0)+_0x448c3b+'\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',_0x210f8a=_0x4c5074?_0x3ea1bb(0x17b):_0x3ea1bb(0x18d),_0x5adffd=_0xc6888c?_0x3ea1bb(0x1d2)+_0xc6888c+_0x3ea1bb(0x1dc):'';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'+_0x579046['description']+_0x4df4b8+_0x274c81+_0x14a582+_0x3ea1bb(0x1b7)+_0x11019b+'\x0a\x0a'+_0x15a3fb+_0x5adffd+'\x0a\x0a'+_0x394fca+_0x3ea1bb(0x1b9)+_0x448c3b+_0x3ea1bb(0x17c)+_0x4f5f59+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x3d5a55+'`\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'+_0x45f325+'`\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`'+_0x4f5f59+'`:\x20\x22'+_0x41cd45+_0x3ea1bb(0x1e4)+_0x6b3613['FfxWx'](buildCliArtifactPath,_0x4f5f59,_0x6b3613[_0x3ea1bb(0x178)])+'\x22,\x20\x22'+_0x6b3613[_0x3ea1bb(0x1f2)](buildCliArtifactPath,_0x4f5f59,_0x6b3613['HgkAg'])+'\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(_0x4f5f59,_0x3ea1bb(0x1c3))+'\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'+_0x210f8a+'\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.';}function _0x3c19(_0x57809f,_0x1cc7bf){_0x57809f=_0x57809f-0x176;const _0x182ac7=_0x182a();let _0x3c1932=_0x182ac7[_0x57809f];return _0x3c1932;}export function summarizeVerifyFeatureCliCommandAvailability(_0x54f818){const _0x393ec6=_0x3c19,_0x2665c9={'jiIbb':function(_0x59a7e7,_0x5363b6){return _0x59a7e7===_0x5363b6;}},_0xcb65b8=[..._0x54f818[_0x393ec6(0x1bd)]()]['sort']();let _0x18358a=0x0;for(const _0xe421c2 of _0x54f818[_0x393ec6(0x1db)]()){_0x18358a+=_0xe421c2;}return{'cliCommandCount':_0x18358a,'cliCommandsSeen':_0xcb65b8,'noCliCommandsCalled':_0x2665c9[_0x393ec6(0x1c2)](_0x18358a,0x0)};}export function createVerifyFeatureCliHooks(_0x4c93f3){const _0x1db705=_0x3c19,_0x53e546={'ZXJbs':function(_0x2beb93,_0x59461e){return _0x2beb93!==_0x59461e;},'NQKwK':function(_0x487de8,_0x404b03){return _0x487de8(_0x404b03);},'CAwBT':'tool_call','rCFNX':_0x1db705(0x192),'HHrAD':_0x1db705(0x1e5),'ZwHNV':function(_0x46f427,_0x4eb3ba){return _0x46f427!==_0x4eb3ba;},'wJsLj':'Bash'},_0x6e3876=new Map(),_0x1d84cf=async _0x3965e3=>{const _0x541bb9=_0x1db705;if(_0x3965e3['hook_event_name']!==_0x541bb9(0x1bc))return{};const _0x5ea594=_0x3965e3;if(_0x53e546['ZXJbs'](_0x5ea594['tool_name'],_0x541bb9(0x18c)))return{};const _0x4660d7=_0x5ea594['tool_input'],_0x356d1c=_0x53e546[_0x541bb9(0x1ee)](extractBashCommand,_0x4660d7);if(!_0x356d1c)return{};const _0x736a57=parsePlaywrightCliCommand(_0x356d1c);if(!_0x736a57)return{};return _0x6e3876['set'](_0x736a57,(_0x6e3876['get'](_0x736a57)||0x0)+0x1),_0x4c93f3['trackPhaseStart'](_0x53e546[_0x541bb9(0x1c0)],{'transport':_0x53e546['rCFNX'],'toolName':_0x736a57}),_0x4c93f3[_0x541bb9(0x1e0)](_0x53e546[_0x541bb9(0x1c0)],{'transport':_0x541bb9(0x192),'toolName':_0x736a57,'bashCommandPreview':truncatePreview(_0x356d1c)}),_0x736a57!=='snapshot'&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x4660d7,_0x356d1c,_0x736a57)),{};},_0x17f07e=async _0x520dfb=>{const _0x544493=_0x1db705;if(_0x53e546[_0x544493(0x1d8)](_0x520dfb[_0x544493(0x19b)],_0x53e546[_0x544493(0x17f)]))return{};const _0x21b24f=_0x520dfb;if(_0x53e546[_0x544493(0x1a9)](_0x21b24f[_0x544493(0x17e)],_0x53e546['wJsLj']))return{};return await _0x4c93f3[_0x544493(0x176)]('tool_failure',_0x21b24f['error'],{'transport':_0x544493(0x192),'toolName':_0x544493(0x18c)}),{};};return{'postToolUseHook':_0x1d84cf,'postToolUseFailureHook':_0x17f07e,'commandCounts':_0x6e3876};}async function runPlaywrightCliLifecycleCommand(_0x1b8b71){const _0x13b0d0=_0x3c19,_0x82f3e4={'oybru':function(_0x3ff6e1,_0x379dc8,_0x2202d5){return _0x3ff6e1(_0x379dc8,_0x2202d5);}},{sessionId:_0x5d56a9,configPath:_0x38af11,commandArgs:_0x4be89d,env:_0x41dcb9,telemetry:_0x58d942,phase:_0x367b27,metadata:_0x41aac4,timeoutMs:_0x6a1e65}=_0x1b8b71;_0x58d942[_0x13b0d0(0x1cc)](_0x367b27,_0x41aac4);try{const _0x5db522=await runPlaywrightCliCommand({'sessionId':_0x5d56a9,'configPath':_0x38af11,'commandArgs':_0x4be89d,'cwd':process['cwd'](),'env':_0x41dcb9,'timeoutMs':_0x6a1e65??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x58d942[_0x13b0d0(0x1e0)](_0x367b27,{..._0x41aac4,'subcommand':_0x5db522[_0x13b0d0(0x19e)][_0x13b0d0(0x19c)],'stdoutPreview':truncatePreview(_0x5db522['stdout'],0x7d0),'stderrPreview':_0x82f3e4['oybru'](truncatePreview,_0x5db522[_0x13b0d0(0x1da)],0x7d0)});}catch(_0x5e5da1){await _0x58d942['trackPhaseError'](_0x367b27,_0x5e5da1,_0x41aac4);throw _0x5e5da1;}}export async function finalizeVerifyFeatureCliSession(_0x552e86){const _0x436dbd=_0x3c19,_0x270209={'viqZJ':_0x436dbd(0x1f7),'YKTmw':function(_0x4db40b,_0x5679ee,_0x59eab6){return _0x4db40b(_0x5679ee,_0x59eab6);},'nysWD':'session-recording.webm'},{telemetry:_0x2f20c8,sessionId:_0x4d1354,configPath:_0x4418b5,cliArtifactDir:_0x218511,env:_0xb70930,transportMetadata:_0x334b40}=_0x552e86,_0x17a209=[{'phase':_0x436dbd(0x1b6),'commandArgs':[_0x270209[_0x436dbd(0x1ac)]]},{'phase':_0x436dbd(0x1f3),'commandArgs':[_0x436dbd(0x1ce),_0x436dbd(0x17a)+_0x270209['YKTmw'](buildCliArtifactPath,_0x218511,_0x270209['nysWD'])]},{'phase':_0x436dbd(0x1a1),'commandArgs':[_0x436dbd(0x1eb)]}];for(const _0x3c3fa2 of _0x17a209){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x4d1354,'configPath':_0x4418b5,'commandArgs':[..._0x3c3fa2['commandArgs']],'env':_0xb70930,'telemetry':_0x2f20c8,'phase':_0x3c3fa2[_0x436dbd(0x1e9)],'metadata':_0x334b40});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x41ce23){const _0x45edb4=_0x3c19,_0x52156d={'hAOmJ':function(_0x4aa695,_0x527f13,_0x430ed4){return _0x4aa695(_0x527f13,_0x430ed4);}},_0x1162c7=['trace.zip',_0x45edb4(0x19a)];for(const _0x3a4518 of _0x1162c7){const _0x3b8847=_0x52156d[_0x45edb4(0x198)](join,_0x41ce23,_0x3a4518);try{return{'buffer':await readFile(_0x3b8847),'source':_0x3b8847};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x457a4f){const _0x4e9415=_0x3c19,_0x939e76={'hJLFu':function(_0xe3d3b4,_0x3903f9,_0x456f7f){return _0xe3d3b4(_0x3903f9,_0x456f7f);},'vOVXW':function(_0x3cf6ec,_0x174f69){return _0x3cf6ec(_0x174f69);},'TBfrE':function(_0x333ac6,_0x43644b){return _0x333ac6+_0x43644b;}},{cwd:_0x59c9fd,cliArtifactDir:_0x1edc62,startTime:_0x47af42}=_0x457a4f,_0x365e3f=[];await mkdir(_0x1edc62,{'recursive':!![]});const _0xd9cccf=await readdir(_0x59c9fd,{'withFileTypes':!![]});for(const _0x5bd4df of _0xd9cccf){if(!_0x5bd4df[_0x4e9415(0x1f9)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x4e9415(0x1a7)](_0x5bd4df[_0x4e9415(0x1b3)]))continue;const _0x180238=_0x939e76['hJLFu'](join,_0x59c9fd,_0x5bd4df['name']),_0x149d2d=await _0x939e76['vOVXW'](stat,_0x180238);if(_0x939e76[_0x4e9415(0x1e2)](_0x149d2d['mtimeMs'],0x7d0)<_0x47af42)continue;const _0x5c695f=buildCliArtifactPath(_0x1edc62,_0x5bd4df[_0x4e9415(0x1b3)]);if(_0x180238===_0x5c695f)continue;await rename(_0x180238,_0x5c695f),_0x365e3f[_0x4e9415(0x1a0)](_0x5bd4df[_0x4e9415(0x1b3)]);}return _0x365e3f['sort']();}
1
+ (function(_0x34cd3a,_0x13ff22){const _0x1bb155=_0x5dfd,_0xd98209=_0x34cd3a();while(!![]){try{const _0x92201c=-parseInt(_0x1bb155(0xd0))/0x1+-parseInt(_0x1bb155(0xba))/0x2+-parseInt(_0x1bb155(0x86))/0x3*(parseInt(_0x1bb155(0xa1))/0x4)+parseInt(_0x1bb155(0xf3))/0x5*(parseInt(_0x1bb155(0xdd))/0x6)+-parseInt(_0x1bb155(0xad))/0x7+-parseInt(_0x1bb155(0x8a))/0x8*(parseInt(_0x1bb155(0xc8))/0x9)+-parseInt(_0x1bb155(0xf2))/0xa*(-parseInt(_0x1bb155(0xdc))/0xb);if(_0x92201c===_0x13ff22)break;else _0xd98209['push'](_0xd98209['shift']());}catch(_0x51ad86){_0xd98209['push'](_0xd98209['shift']());}}}(_0xa6e1,0xe0b04));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';function _0xa6e1(){const _0x3234f0=['click','MNriN','length','cwd','split','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','replace','VQxIM','dNQzP','`\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`','target','11920TrOUxL','2780605CYLreT','check','\x20snapshot\x20--filename\x20','fRZCH','\x5c$&','match','...','open\x20new\x20tab\x20','commandArgs','(?:^|\x5cs)','slice','stop\x20video\x20recording','pop','snQxp','WBuTf','tool_input','`\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','string','MaODL','EsJfT','tracing-stop','Bash','WAxtp','short','jfzyQ','CbhKt','open\x20new\x20tab','open\x20browser','PostToolUseFailure','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','3YErduY','02_learn-more.yml','playwright-cli','numeric','8YLJlAr','KGmJQ','press\x20','\x20screenshot\x20--filename\x20','tool_name','toLocaleDateString','njxeu','rwQuH','ZzzMm','LwYxC','open\x20','bbaxw','hmaRE','cSwtA','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\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','GAgWg','\x20(on\x20element:\x20<','screenshot','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','wESkS','trackPhaseEnd','\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\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.','3780884MswvBP','set','FRGYL','unaddressedComments','`\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`','select\x20tab','run\x20custom\x20Playwright\x20code','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','TGGUk','stringify','notes','hook_event_name','7917168QRAsnV','`\x0a-\x20`snapshot\x20--filename\x20','qhStw','textContent','PostToolUse','RJSbm','close','EkMPx','hNSxz','join','authorName','judHA','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','2685428vCxqZo','snapshot','log','SPSYb','\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','domRef','values','selector','VGOgm','trackPhaseError','`\x0a9.\x20Run\x20`','vhtvK','02_button-clicked.png','test','14120226mDoyta','01_initial-state.png','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20taking\x20the\x20initial\x20snapshot,\x20IMMEDIATELY\x20check\x20for\x20blocking\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20Crash\x20or\x20error\x20dialogs\x20(\x22An\x20error\x20occurred\x22,\x20\x22Something\x20went\x20wrong\x22,\x20unhandled\x20exception\x20messages)\x0a-\x20Blank\x20or\x20empty\x20window\x20with\x20no\x20rendered\x20content\x0a-\x20Framework\x20error\x20boundaries\x20(React\x20error\x20page,\x20Electron\x20crash\x20reporter)\x0a-\x20Unresponsive\x20or\x20frozen\x20UI\x20(no\x20interactive\x20elements\x20in\x20snapshot)\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22App\x20crashed\x20—\x20error\x20dialog\x20visible\x20on\x20launch\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20type:\x20\x22APP_ERROR\x22\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','yYtoS','capture\x20key\x20step\x20`','RNLuN','\x22,\x20\x22','1048421wpWHTB','video-stop','fill\x20','fill','03_result-visible.png','playwright_cli_tracing_stop','ZPqNe','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','>\x20\x22','tab-select','tool_call','capture\x20step\x20`','53933XqiMul','12JPIQKX','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','stdout','description','sort','\x20tracing-start`\x0a3.\x20Run\x20`','name','ref\x20','arrfW','\x20tracing-start`,\x20then\x20`'];_0xa6e1=function(){return _0x3234f0;};return _0xa6e1();}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(_0x113380,_0x3739c9=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x297aab=_0x5dfd,_0x4c7e9d={'yomIu':function(_0x2f99e0,_0x33809d){return _0x2f99e0+_0x33809d;},'VQxIM':_0x297aab(0xf9)};return _0x113380[_0x297aab(0xe9)]>_0x3739c9?_0x4c7e9d['yomIu'](_0x113380[_0x297aab(0x72)](0x0,_0x3739c9),_0x4c7e9d[_0x297aab(0xee)]):_0x113380;}function _0x5dfd(_0x3588f6,_0x541d75){_0x3588f6=_0x3588f6-0x6f;const _0xa6e171=_0xa6e1();let _0x5dfdae=_0xa6e171[_0x3588f6];return _0x5dfdae;}function buildCliArtifactPath(_0x324f9f,_0x1e832b){const _0x312c77={'ZegnF':function(_0x564df6,_0x38a6fe,_0x524e1c){return _0x564df6(_0x38a6fe,_0x524e1c);}};return _0x312c77['ZegnF'](join,_0x324f9f,_0x1e832b);}function toStepDisplayName(_0x11d412){const _0x251e62=_0x5dfd,_0x11c7a0=basename(_0x11d412)[_0x251e62(0xed)](/\.(?:png|ya?ml)$/i,'')[_0x251e62(0xed)](/^key_/i,'')[_0x251e62(0xed)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x11c7a0,'isKeyStep':/^key_/i[_0x251e62(0xc7)](basename(_0x11d412))};}function extractShellValue(_0x112a79){if(!_0x112a79)return null;return _0x112a79[0x1]??_0x112a79[0x2]??_0x112a79[0x3]??null;}function extractFilenameOption(_0x14b245){const _0x1b2908=_0x5dfd,_0x4a7e42={'RHLtC':function(_0x1d20b6,_0x5982f4){return _0x1d20b6(_0x5982f4);}};return _0x4a7e42['RHLtC'](extractShellValue,_0x14b245[_0x1b2908(0xf8)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0xfcde8f,_0xb895a1){const _0x4cd4fe=_0x5dfd,_0x3dbef5={'AgXqE':_0x4cd4fe(0xf7)},_0x1f03e5=_0xb895a1['replace'](/[.*+?^${}()|[\]\\]/g,_0x3dbef5['AgXqE']);return extractShellValue(_0xfcde8f[_0x4cd4fe(0xf8)](new RegExp(_0x4cd4fe(0x71)+_0x1f03e5+_0x4cd4fe(0xec))));}function formatCommandTarget(_0x4cf2f8){const _0x154e1e=_0x5dfd;if(!_0x4cf2f8)return _0x154e1e(0xf1);if(/^e\d+$/i['test'](_0x4cf2f8))return _0x154e1e(0xe4)+_0x4cf2f8;return JSON[_0x154e1e(0xaa)](truncatePreview(_0x4cf2f8,0x78));}function formatPlaywrightCliLog(_0x398722,_0x2ce1e2){const _0x224c9f=_0x5dfd,_0x4ee871={'wMnuc':'open','WAxtp':function(_0x3e25a1,_0x5e748e,_0x392613){return _0x3e25a1(_0x5e748e,_0x392613);},'vhtvK':'video-start','RNLuN':_0x224c9f(0xd1),'SPSYb':function(_0x54c8f8,_0x1a9f07){return _0x54c8f8(_0x1a9f07);},'IOxum':'capture\x20snapshot','RjjiT':_0x224c9f(0x9c),'judHA':'capture\x20screenshot','CpccZ':_0x224c9f(0xf4),'WBuTf':function(_0x33c349,_0x4c6e5c,_0x36aa61){return _0x33c349(_0x4c6e5c,_0x36aa61);},'DoDpR':_0x224c9f(0xd3),'EnFMG':function(_0x12ebdc,_0x34b204){return _0x12ebdc(_0x34b204);},'jfzyQ':function(_0x3dab80,_0x569bbf,_0x423d18){return _0x3dab80(_0x569bbf,_0x423d18);},'EJwje':'run-code','lSCER':_0x224c9f(0xa7),'EkMPx':'tab-new','OMWtV':function(_0x2aa850,_0x58c3f7,_0x57f060){return _0x2aa850(_0x58c3f7,_0x57f060);},'lbvCu':_0x224c9f(0x82)};switch(_0x2ce1e2){case _0x4ee871['wMnuc']:{const _0xd0ea6b=_0x4ee871[_0x224c9f(0x7e)](extractFirstCommandArgument,_0x398722,_0x2ce1e2);return _0xd0ea6b?_0x224c9f(0x94)+_0xd0ea6b:_0x224c9f(0x83);}case'tracing-start':return'start\x20tracing';case _0x224c9f(0x7c):return'stop\x20tracing';case _0x4ee871[_0x224c9f(0xc5)]:return'start\x20video\x20recording';case _0x4ee871[_0x224c9f(0xce)]:return _0x224c9f(0x73);case'snapshot':{const _0xc1802f=_0x4ee871[_0x224c9f(0xbd)](extractFilenameOption,_0x398722);if(!_0xc1802f)return _0x4ee871['IOxum'];const {name:_0x2c89f1}=toStepDisplayName(_0xc1802f);return'capture\x20snapshot\x20`'+_0x2c89f1+'`';}case _0x4ee871['RjjiT']:{const _0x1c0f9c=extractFilenameOption(_0x398722);if(!_0x1c0f9c)return _0x4ee871[_0x224c9f(0xb8)];const {name:_0x5b1ef0,isKeyStep:_0x3fdec5}=toStepDisplayName(_0x1c0f9c);return _0x3fdec5?_0x224c9f(0xcd)+_0x5b1ef0+'`':_0x224c9f(0xdb)+_0x5b1ef0+'`';}case _0x224c9f(0xe7):return'click\x20'+formatCommandTarget(extractFirstCommandArgument(_0x398722,_0x2ce1e2));case _0x4ee871['CpccZ']:return'check\x20'+formatCommandTarget(_0x4ee871[_0x224c9f(0x76)](extractFirstCommandArgument,_0x398722,_0x2ce1e2));case _0x4ee871['DoDpR']:return _0x224c9f(0xd2)+_0x4ee871[_0x224c9f(0xbd)](formatCommandTarget,extractFirstCommandArgument(_0x398722,_0x2ce1e2));case'press':return _0x224c9f(0x8c)+_0x4ee871['EnFMG'](formatCommandTarget,_0x4ee871[_0x224c9f(0x80)](extractFirstCommandArgument,_0x398722,_0x2ce1e2));case _0x4ee871['EJwje']:return _0x4ee871['lSCER'];case _0x4ee871[_0x224c9f(0xb4)]:{const _0x1054a1=_0x4ee871['OMWtV'](extractFirstCommandArgument,_0x398722,_0x2ce1e2);return _0x1054a1?_0x224c9f(0x6f)+_0x1054a1:_0x4ee871['lbvCu'];}case _0x224c9f(0xd9):{const _0x31619a=_0x4ee871['WBuTf'](extractFirstCommandArgument,_0x398722,_0x2ce1e2);return _0x31619a?'select\x20tab\x20'+_0x31619a:_0x224c9f(0xa6);}default:return _0x2ce1e2;}}function extractPlaywrightCliToolDescription(_0x132f33){const _0x3b1eff=_0x5dfd,_0x16b8b8={'eZlRq':function(_0x1446b8,_0x365738){return _0x1446b8>_0x365738;}},_0x7e518d=_0x132f33[_0x3b1eff(0xe0)];if(typeof _0x7e518d!==_0x3b1eff(0x79))return null;const _0x3ae385=_0x7e518d['trim']()['replace'](/\s+/g,'\x20');return _0x16b8b8['eZlRq'](_0x3ae385[_0x3b1eff(0xe9)],0x0)?_0x3ae385:null;}export function formatPlaywrightCliConsoleLogMessage(_0x39f4a3,_0x507bf6,_0x9b6f60){const _0x3f413b=formatPlaywrightCliLog(_0x507bf6,_0x9b6f60),_0xa2b083=extractPlaywrightCliToolDescription(_0x39f4a3);if(!_0xa2b083)return'[playwright-cli]\x20'+_0x3f413b;if(process['env']['DEBUG'])return'[ranger-verification-agent]\x20'+_0xa2b083+'\x20('+_0x3f413b+')';return'[ranger-verification-agent]\x20'+_0xa2b083;}export function buildVerifyFeatureCliDebugPrompt(_0x5725d8,_0xb56983){const _0x16b603=_0x5dfd,_0x3ba1d4={'hkQCa':function(_0x6ff850,_0x54ba84,_0x2eeaa5){return _0x6ff850(_0x54ba84,_0x2eeaa5);},'arrfW':'00_mozilla-homepage.yml','FtHvM':function(_0x3bd3a2,_0x5ab828,_0x467c62){return _0x3bd3a2(_0x5ab828,_0x467c62);},'ZzzMm':'01_mozilla-homepage.png','RJSbm':function(_0x26fefe,_0x1a561f,_0x20ee05){return _0x26fefe(_0x1a561f,_0x20ee05);},'dNQzP':_0x16b603(0x87),'njxeu':'03_learn-more.png'},_0x26b4ad=_0x3ba1d4['hkQCa'](buildCliArtifactPath,_0xb56983,_0x3ba1d4[_0x16b603(0xe5)]),_0x133647=_0x3ba1d4['FtHvM'](buildCliArtifactPath,_0xb56983,_0x3ba1d4[_0x16b603(0x92)]),_0x12ac45=_0x3ba1d4[_0x16b603(0xb2)](buildCliArtifactPath,_0xb56983,_0x3ba1d4[_0x16b603(0xef)]),_0x1ead6b=buildCliArtifactPath(_0xb56983,_0x3ba1d4[_0x16b603(0x90)]),_0x3122f6=quoteShellArg(_0x26b4ad),_0x52e3b6=quoteShellArg(_0x133647),_0x36e7e1=quoteShellArg(_0x12ac45),_0x3fdfb2=quoteShellArg(_0x1ead6b);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x5725d8+'\x0a\x0a1.\x20Run\x20`'+_0x5725d8+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x5725d8+_0x16b603(0xe2)+_0x5725d8+_0x16b603(0xa8)+_0xb56983+_0x16b603(0xd7)+_0x5725d8+_0x16b603(0xf5)+_0x3122f6+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x5725d8+_0x16b603(0x8d)+_0x52e3b6+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x5725d8+'\x20snapshot\x20--filename\x20'+_0x36e7e1+_0x16b603(0xc4)+_0x5725d8+_0x16b603(0x8d)+_0x3fdfb2+_0x16b603(0xb9);}export function buildVerifyFeatureCliPrompt(_0x46e0d2){const _0x63f710=_0x5dfd,_0xa0ca1={'LwYxC':_0x63f710(0x7f),'XlgGL':'Reviewer','knlVR':'\x20>\x20','VGOgm':'element','xoycC':'01_initial.yml','MaODL':'02_state.yml','CbhKt':function(_0x4f61dc,_0xde40c9,_0xcdf510){return _0x4f61dc(_0xde40c9,_0xcdf510);},'hmaRE':_0x63f710(0xc9),'TGGUk':function(_0x2627c9,_0x5af7e8){return _0x2627c9(_0x5af7e8);},'mTFHT':function(_0x143354,_0x9d113b,_0xb68fd4){return _0x143354(_0x9d113b,_0xb68fd4);},'ILVup':function(_0x59be00,_0x1de383,_0x1861ac){return _0x59be00(_0x1de383,_0x1861ac);},'GuaRb':'key_04_success-state.png'},{checklistItem:_0x33dd3e,itemFeedback:_0x40d478,taskDescription:_0x3a95c5,cliCommandPrefix:_0x19d0aa,cliArtifactDir:_0x2bd847,isCdpMode:_0x37d055,url:_0x399df2,cdpEndpoint:_0xb80222,loginInstructions:_0x5b43ad}=_0x46e0d2,_0x7d8990=buildCliArtifactPath(_0x2bd847,_0xa0ca1['xoycC']),_0x3491fc=buildCliArtifactPath(_0x2bd847,_0xa0ca1[_0x63f710(0x7a)]),_0x493958=_0xa0ca1[_0x63f710(0x81)](buildCliArtifactPath,_0x2bd847,'key_03_success-state.png'),_0x4320fa=buildCliArtifactPath(_0x2bd847,_0xa0ca1[_0x63f710(0x96)]),_0xa9347=quoteShellArg(_0x7d8990),_0x762f9b=_0xa0ca1[_0x63f710(0xa9)](quoteShellArg,_0x3491fc),_0x3a4c51=quoteShellArg(_0x493958),_0x19f985=quoteShellArg(_0x4320fa),_0x13c581=_0x33dd3e[_0x63f710(0xab)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x33dd3e['notes']:'';let _0x321c37='';if(_0x40d478&&_0x40d478['unaddressedComments']['length']>0x0){const _0x2cf1a9=_0x40d478[_0x63f710(0xa4)]['map'](_0x504ed7=>{const _0x595345=_0x63f710,_0x416324=new Date(_0x504ed7['createdAt'])[_0x595345(0x8f)]('en-US',{'month':_0xa0ca1[_0x595345(0x93)],'day':_0x595345(0x89)}),_0x20cfaf=_0x504ed7[_0x595345(0xb7)]||_0x504ed7['authorEmail']||_0xa0ca1['XlgGL'],_0x53ac79=_0x504ed7[_0x595345(0xbf)]?_0x595345(0x9b)+(_0x504ed7[_0x595345(0xbf)][_0x595345(0xc1)][_0x595345(0xeb)](_0xa0ca1['knlVR'])[_0x595345(0x74)]()?.['split'](':')[0x0]||_0xa0ca1[_0x595345(0xc2)])+_0x595345(0xd8)+(_0x504ed7[_0x595345(0xbf)][_0x595345(0xb0)]||'')[_0x595345(0x72)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x504ed7['id']+']\x20**'+_0x20cfaf+'**\x20('+_0x416324+'):\x20\x22'+_0x504ed7['content']+'\x22'+_0x53ac79;})[_0x63f710(0xb6)]('\x0a');_0x321c37='\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'+_0x2cf1a9;}const _0x1205fe=_0x40d478?.['canonicalFlow']?_0x63f710(0x85)+_0x40d478['canonicalFlow']:'',_0x188d89=_0x37d055?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0xb80222+_0x63f710(0x9d):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x399df2+'\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',_0x22c834=_0x399df2?quoteShellArg(_0x399df2):'',_0x50ca4e=_0x37d055?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x19d0aa+'\x20open`,\x20then\x20`'+_0x19d0aa+_0x63f710(0xe6)+_0x19d0aa+_0x63f710(0x98)+_0x2bd847+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x19d0aa+_0x63f710(0xf5)+_0xa9347+'`\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`'+_0x19d0aa+_0x63f710(0x8d)+_0x19f985+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x19d0aa+_0x63f710(0xbe):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x19d0aa+'\x20open\x20'+_0x22c834+'`,\x20then\x20`'+_0x19d0aa+'\x20tracing-start`,\x20then\x20`'+_0x19d0aa+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2bd847+_0x63f710(0xcb)+_0x19d0aa+'\x20snapshot\x20--filename\x20'+_0xa9347+_0x63f710(0xa5)+_0x19d0aa+_0x63f710(0x8d)+_0x19f985+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x19d0aa+'\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',_0x4a8b9d=_0x37d055?_0x63f710(0xca):_0x63f710(0xa0),_0x125295=_0x5b43ad?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x5b43ad+'\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'+_0x33dd3e[_0x63f710(0xe0)]+_0x13c581+_0x321c37+_0x1205fe+_0x63f710(0xde)+_0x3a95c5+'\x0a\x0a'+_0x188d89+_0x125295+'\x0a\x0a'+_0x50ca4e+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x19d0aa+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x2bd847+_0x63f710(0xae)+_0x762f9b+_0x63f710(0x78)+_0x3a4c51+_0x63f710(0xf0)+_0x2bd847+'`:\x20\x22'+_0x4320fa+_0x63f710(0xcf)+_0xa0ca1['mTFHT'](buildCliArtifactPath,_0x2bd847,_0x63f710(0xc6))+'\x22,\x20\x22'+_0xa0ca1['ILVup'](buildCliArtifactPath,_0x2bd847,_0x63f710(0xd4))+_0x63f710(0x99)+buildCliArtifactPath(_0x2bd847,_0xa0ca1['GuaRb'])+'\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'+_0x4a8b9d+'\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(_0x2fde49){const _0x5df881=_0x5dfd,_0x4caefe={'wESkS':function(_0x2b319a,_0x172d9b){return _0x2b319a===_0x172d9b;}},_0x411056=[..._0x2fde49['keys']()][_0x5df881(0xe1)]();let _0x449d89=0x0;for(const _0x5c7006 of _0x2fde49[_0x5df881(0xc0)]()){_0x449d89+=_0x5c7006;}return{'cliCommandCount':_0x449d89,'cliCommandsSeen':_0x411056,'noCliCommandsCalled':_0x4caefe[_0x5df881(0x9e)](_0x449d89,0x0)};}export function createVerifyFeatureCliHooks(_0x20b507){const _0x45a0aa=_0x5dfd,_0x4d635a={'bbaxw':function(_0x2bd623,_0x53f8c6){return _0x2bd623!==_0x53f8c6;},'FRGYL':_0x45a0aa(0x7d),'snQxp':function(_0x2905b4,_0x2fb177){return _0x2905b4(_0x2fb177);},'jNcTG':function(_0x3fc3d8,_0x22df33){return _0x3fc3d8+_0x22df33;},'GAgWg':_0x45a0aa(0xda),'yYtoS':_0x45a0aa(0x88),'nmYaQ':function(_0x5c5cb1,_0x55627d){return _0x5c5cb1(_0x55627d);},'fRZCH':function(_0x16e821,_0x250948){return _0x16e821!==_0x250948;},'XdOtM':_0x45a0aa(0xbb),'hwNKD':function(_0x275d4e,_0x2c77d5,_0x2daaac,_0x580456){return _0x275d4e(_0x2c77d5,_0x2daaac,_0x580456);},'SjUNc':'tool_failure'},_0x2de71b=new Map(),_0x165e1b=async _0x650ea7=>{const _0x50be66=_0x45a0aa;if(_0x4d635a[_0x50be66(0x95)](_0x650ea7['hook_event_name'],_0x50be66(0xb1)))return{};const _0x1f7739=_0x650ea7;if(_0x1f7739[_0x50be66(0x8e)]!==_0x4d635a[_0x50be66(0xa3)])return{};const _0xa50a3f=_0x1f7739[_0x50be66(0x77)],_0x226a3d=extractBashCommand(_0xa50a3f);if(!_0x226a3d)return{};const _0xddf0fa=_0x4d635a[_0x50be66(0x75)](parsePlaywrightCliCommand,_0x226a3d);if(!_0xddf0fa)return{};return _0x2de71b[_0x50be66(0xa2)](_0xddf0fa,_0x4d635a['jNcTG'](_0x2de71b['get'](_0xddf0fa)||0x0,0x1)),_0x20b507['trackPhaseStart'](_0x4d635a[_0x50be66(0x9a)],{'transport':_0x4d635a[_0x50be66(0xcc)],'toolName':_0xddf0fa}),_0x20b507[_0x50be66(0x9f)](_0x4d635a[_0x50be66(0x9a)],{'transport':_0x4d635a['yYtoS'],'toolName':_0xddf0fa,'bashCommandPreview':_0x4d635a['nmYaQ'](truncatePreview,_0x226a3d)}),_0x4d635a[_0x50be66(0xf6)](_0xddf0fa,_0x4d635a['XdOtM'])&&console[_0x50be66(0xbc)](_0x4d635a['hwNKD'](formatPlaywrightCliConsoleLogMessage,_0xa50a3f,_0x226a3d,_0xddf0fa)),{};},_0x7a9ec7=async _0x5bd90c=>{const _0x2ff959=_0x45a0aa;if(_0x4d635a['fRZCH'](_0x5bd90c[_0x2ff959(0xac)],_0x2ff959(0x84)))return{};const _0x448562=_0x5bd90c;if(_0x448562['tool_name']!=='Bash')return{};return await _0x20b507[_0x2ff959(0xc3)](_0x4d635a['SjUNc'],_0x448562['error'],{'transport':_0x2ff959(0x88),'toolName':_0x4d635a[_0x2ff959(0xa3)]}),{};};return{'postToolUseHook':_0x165e1b,'postToolUseFailureHook':_0x7a9ec7,'commandCounts':_0x2de71b};}async function runPlaywrightCliLifecycleCommand(_0x49eda6){const _0x22894f=_0x5dfd,_0x8edfdc={'MNriN':function(_0x26603b,_0x15ec49){return _0x26603b(_0x15ec49);},'zwdfP':function(_0x413b5c,_0x2b978d){return _0x413b5c??_0x2b978d;},'EsJfT':function(_0x209473,_0x534726,_0x12dc22){return _0x209473(_0x534726,_0x12dc22);}},{sessionId:_0x350d61,configPath:_0x4ff859,commandArgs:_0x173115,env:_0x19ac2c,telemetry:_0x6926e6,phase:_0x16bd9c,metadata:_0x4a6f0c,timeoutMs:_0x4aab8d}=_0x49eda6;_0x6926e6['trackPhaseStart'](_0x16bd9c,_0x4a6f0c);try{const _0x5f5b83=await _0x8edfdc[_0x22894f(0xe8)](runPlaywrightCliCommand,{'sessionId':_0x350d61,'configPath':_0x4ff859,'commandArgs':_0x173115,'cwd':process[_0x22894f(0xea)](),'env':_0x19ac2c,'timeoutMs':_0x8edfdc['zwdfP'](_0x4aab8d,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x6926e6[_0x22894f(0x9f)](_0x16bd9c,{..._0x4a6f0c,'subcommand':_0x5f5b83['invocation']['subcommand'],'stdoutPreview':_0x8edfdc[_0x22894f(0x7b)](truncatePreview,_0x5f5b83[_0x22894f(0xdf)],0x7d0),'stderrPreview':truncatePreview(_0x5f5b83['stderr'],0x7d0)});}catch(_0x569c92){await _0x6926e6['trackPhaseError'](_0x16bd9c,_0x569c92,_0x4a6f0c);throw _0x569c92;}}export async function finalizeVerifyFeatureCliSession(_0x3e8ffa){const _0x2acdc1=_0x5dfd,_0x2604c8={'qhStw':_0x2acdc1(0xd5),'euRux':'playwright_cli_video_stop','jFNNr':_0x2acdc1(0xd1),'BGUcU':'session-recording.webm','ZPqNe':'playwright_cli_close','nadwe':function(_0x3e7b66,_0x4214d1){return _0x3e7b66(_0x4214d1);}},{telemetry:_0x114a34,sessionId:_0x369adf,configPath:_0x295de0,cliArtifactDir:_0x1c16e8,env:_0x5cbc1e,transportMetadata:_0x190ffc}=_0x3e8ffa,_0x3340ed=[{'phase':_0x2604c8[_0x2acdc1(0xaf)],'commandArgs':[_0x2acdc1(0x7c)]},{'phase':_0x2604c8['euRux'],'commandArgs':[_0x2604c8['jFNNr'],'--filename='+buildCliArtifactPath(_0x1c16e8,_0x2604c8['BGUcU'])]},{'phase':_0x2604c8[_0x2acdc1(0xd6)],'commandArgs':[_0x2acdc1(0xb3)]}];for(const _0x5d57b9 of _0x3340ed){try{await _0x2604c8['nadwe'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x369adf,'configPath':_0x295de0,'commandArgs':[..._0x5d57b9[_0x2acdc1(0x70)]],'env':_0x5cbc1e,'telemetry':_0x114a34,'phase':_0x5d57b9['phase'],'metadata':_0x190ffc});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0xfe28c7){const _0x35494b=_0x5dfd,_0x1c175b={'cSwtA':'trace.zip','hNSxz':function(_0x14cc35,_0x5a11bd,_0x53ce29){return _0x14cc35(_0x5a11bd,_0x53ce29);}},_0x1a3e7a=[_0x1c175b[_0x35494b(0x97)],'trace.trace.zip'];for(const _0x39a80e of _0x1a3e7a){const _0x94ceb0=_0x1c175b[_0x35494b(0xb5)](join,_0xfe28c7,_0x39a80e);try{return{'buffer':await readFile(_0x94ceb0),'source':_0x94ceb0};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x5a16b6){const _0x2c80c3=_0x5dfd,_0x5d102c={'KGmJQ':function(_0x23550f,_0x149fc0,_0x1e4192){return _0x23550f(_0x149fc0,_0x1e4192);},'uTlec':function(_0x560574,_0x5f4b28){return _0x560574(_0x5f4b28);},'rwQuH':function(_0x5abca3,_0x4a39bc){return _0x5abca3+_0x4a39bc;}},{cwd:_0x522f75,cliArtifactDir:_0x108d10,startTime:_0x40643f}=_0x5a16b6,_0x6ae494=[];await mkdir(_0x108d10,{'recursive':!![]});const _0x2e14b2=await _0x5d102c[_0x2c80c3(0x8b)](readdir,_0x522f75,{'withFileTypes':!![]});for(const _0x3f23b0 of _0x2e14b2){if(!_0x3f23b0['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x3f23b0[_0x2c80c3(0xe3)]))continue;const _0x12fd44=_0x5d102c[_0x2c80c3(0x8b)](join,_0x522f75,_0x3f23b0[_0x2c80c3(0xe3)]),_0x264b0d=await _0x5d102c['uTlec'](stat,_0x12fd44);if(_0x5d102c[_0x2c80c3(0x91)](_0x264b0d['mtimeMs'],0x7d0)<_0x40643f)continue;const _0x35db9c=buildCliArtifactPath(_0x108d10,_0x3f23b0['name']);if(_0x12fd44===_0x35db9c)continue;await _0x5d102c['KGmJQ'](rename,_0x12fd44,_0x35db9c),_0x6ae494['push'](_0x3f23b0[_0x2c80c3(0xe3)]);}return _0x6ae494['sort']();}
@@ -1 +1 @@
1
- const _0x17106c=_0x3486;(function(_0x52beed,_0x3ef8f5){const _0x33c191=_0x3486,_0x4f743a=_0x52beed();while(!![]){try{const _0x2f347f=-parseInt(_0x33c191(0x1bf))/0x1+-parseInt(_0x33c191(0x222))/0x2+parseInt(_0x33c191(0x275))/0x3+parseInt(_0x33c191(0x245))/0x4*(parseInt(_0x33c191(0x230))/0x5)+parseInt(_0x33c191(0x244))/0x6+-parseInt(_0x33c191(0x25f))/0x7+-parseInt(_0x33c191(0x1f0))/0x8*(-parseInt(_0x33c191(0x25b))/0x9);if(_0x2f347f===_0x3ef8f5)break;else _0x4f743a['push'](_0x4f743a['shift']());}catch(_0x177fff){_0x4f743a['push'](_0x4f743a['shift']());}}}(_0x121c,0x2f060));function _0x3486(_0x2e2194,_0x4f403d){_0x2e2194=_0x2e2194-0x19f;const _0x121cf1=_0x121c();let _0x348615=_0x121cf1[_0x2e2194];return _0x348615;}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([_0x17106c(0x274),_0x17106c(0x22f),'verify','ask',_0x17106c(0x247),'wait-for','snapshot','screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x2736d2,_0x49a4c3){return join(_0x2736d2,_0x49a4c3);}export class NovaActArtifactRecorder{[_0x17106c(0x263)];[_0x17106c(0x232)]=null;['context']=null;[_0x17106c(0x1ad)]=null;['frameWrites']=[];[_0x17106c(0x1b5)]=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;['traceSampleInFlight']=null;[_0x17106c(0x1b9)]=![];['screencastStarted']=![];['startAttempted']=![];['stopped']=![];constructor(_0x38c3a1){this['params']=_0x38c3a1;}async['start'](){const _0x2eb8f0=_0x17106c,_0x4dcfd8={'gCJbY':function(_0x362191,_0x30ff5e,_0x39302d){return _0x362191(_0x30ff5e,_0x39302d);},'Gffll':'Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','NHYLO':_0x2eb8f0(0x270)};if(this['startAttempted'])return;this[_0x2eb8f0(0x1f5)]=!![];const _0x32198d=await this['readSessionMetadataWithRetry'](),_0x30ea3a=_0x32198d[_0x2eb8f0(0x1a1)];if(!_0x30ea3a)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this['params'][_0x2eb8f0(0x1e9)][_0x2eb8f0(0x26b)]);await _0x4dcfd8['gCJbY'](mkdir,this['params'][_0x2eb8f0(0x1d3)],{'recursive':!![]}),this['browser']=await chromium['connectOverCDP'](_0x30ea3a,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x2eb8f0(0x1e3)]=this['browser'][_0x2eb8f0(0x20a)]()[0x0]??null;if(!this['context'])throw new Error(_0x4dcfd8['Gffll']);await this[_0x2eb8f0(0x1e3)]['tracing'][_0x2eb8f0(0x205)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this['startTraceSampling'](),await this[_0x2eb8f0(0x23c)](),this[_0x2eb8f0(0x263)][_0x2eb8f0(0x25c)]['trackPhaseStart'](_0x4dcfd8['NHYLO'],{...this[_0x2eb8f0(0x263)][_0x2eb8f0(0x268)],'cdpEndpoint':_0x30ea3a,'browserPid':_0x32198d[_0x2eb8f0(0x1ac)],'sessionState':_0x32198d['state']}),this['params']['telemetry'][_0x2eb8f0(0x24d)]('nova_act_artifact_recording',{...this['params']['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x1d06fb=_0x17106c,_0x2cd91f={'zwOFh':_0x1d06fb(0x21a),'JHgRX':function(_0x3e6235,_0x154948,_0x2fa367){return _0x3e6235(_0x154948,_0x2fa367);}};if(this[_0x1d06fb(0x1e2)])return;this[_0x1d06fb(0x1e2)]=!![];const _0x4f618c={...this['params']['transportMetadata'],'frameCount':this[_0x1d06fb(0x1b5)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this[_0x1d06fb(0x1b9)],'screencastStarted':this[_0x1d06fb(0x22d)]};this['params'][_0x1d06fb(0x25c)]['trackPhaseStart'](_0x2cd91f['zwOFh'],_0x4f618c);try{await this[_0x1d06fb(0x238)](),await this[_0x1d06fb(0x24a)](),await this['stopScreencast'](),await Promise[_0x1d06fb(0x220)](this[_0x1d06fb(0x25a)]);this[_0x1d06fb(0x1e3)]&&this[_0x1d06fb(0x1b9)]&&await this['context']['tracing'][_0x1d06fb(0x1c5)]({'path':_0x2cd91f[_0x1d06fb(0x1eb)](buildCliArtifactPath,this['params'][_0x1d06fb(0x1d3)],_0x1d06fb(0x252))});const _0x408490=await this[_0x1d06fb(0x20b)]();this[_0x1d06fb(0x263)]['telemetry']['trackPhaseEnd'](_0x2cd91f[_0x1d06fb(0x1b8)],{..._0x4f618c,'videoPath':_0x408490});}catch(_0x195f6f){await this['params'][_0x1d06fb(0x25c)][_0x1d06fb(0x21b)](_0x2cd91f[_0x1d06fb(0x1b8)],_0x195f6f,_0x4f618c);}finally{await this['browser']?.[_0x1d06fb(0x23b)]()[_0x1d06fb(0x227)](()=>undefined),this[_0x1d06fb(0x232)]=null,this['context']=null,this[_0x1d06fb(0x1ad)]=null;}}async['readSessionMetadataWithRetry'](){const _0x5716a6=_0x17106c,_0x307552={'bwMrQ':function(_0x393d77,_0x3a8645,_0x208178,_0x224edc,_0x5a1938,_0x5ae08c){return _0x393d77(_0x3a8645,_0x208178,_0x224edc,_0x5a1938,_0x5ae08c);},'luRMR':'browser','ASBPa':_0x5716a6(0x1a7),'MbzBL':function(_0x46d278,_0x452ac4,_0x56e46c){return _0x46d278(_0x452ac4,_0x56e46c);},'fjbAo':function(_0x4eac38,_0x5e4809){return _0x4eac38(_0x5e4809);},'hyIhG':function(_0x4e3f08,_0x23f1de){return _0x4e3f08<_0x23f1de;},'eZmMT':function(_0x26e299,_0x38da81){return _0x26e299 instanceof _0x38da81;}},_0x24921e=_0x307552['bwMrQ'](join,homedir(),_0x5716a6(0x1cc),_0x307552[_0x5716a6(0x240)],_0x307552[_0x5716a6(0x1fd)],this[_0x5716a6(0x263)]['novaOptions']['sessionId']+_0x5716a6(0x273)),_0x3fce5e=Date[_0x5716a6(0x1bd)]();let _0x30f190;do{try{const _0x4c6ec6=JSON[_0x5716a6(0x1fc)](await _0x307552[_0x5716a6(0x25e)](readFile,_0x24921e,_0x5716a6(0x1c3)));if(_0x4c6ec6['cdp_endpoint'])return _0x4c6ec6;_0x30f190=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x24921e);}catch(_0x230a3a){_0x30f190=_0x230a3a;}await _0x307552[_0x5716a6(0x1d2)](delay,0x64);}while(_0x307552['hyIhG'](Date['now']()-_0x3fce5e,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x307552[_0x5716a6(0x23d)](_0x30f190,Error))throw _0x30f190;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x24921e);}async['startScreencast'](){const _0x914176=_0x17106c,_0x43ddee={'yuQVc':function(_0x1e4ae2,_0x501488,_0x335bd7){return _0x1e4ae2(_0x501488,_0x335bd7);},'ZIUhd':'Page.screencastFrame','sCwpf':_0x914176(0x260)};if(!this['context'])return;const _0x52f154=this['context']['pages']()[0x0];if(!_0x52f154)return;const _0x27c934=this['getFrameDir']();await mkdir(_0x27c934,{'recursive':!![]});const _0x1825cd=await this['context'][_0x914176(0x1c2)](_0x52f154);this[_0x914176(0x1ad)]=_0x1825cd,_0x1825cd['on'](_0x43ddee[_0x914176(0x221)],_0x11932e=>{const _0x4b4fe3=_0x914176,_0xe482cb=++this['frameCount'],_0x24672b=_0x43ddee[_0x4b4fe3(0x242)](join,_0x27c934,_0x4b4fe3(0x225)+String(_0xe482cb)[_0x4b4fe3(0x1ea)](0x6,'0')+'.jpg'),_0x3cd56f=writeFile(_0x24672b,Buffer[_0x4b4fe3(0x1ce)](_0x11932e['data'],_0x4b4fe3(0x213)))[_0x4b4fe3(0x227)](()=>undefined)[_0x4b4fe3(0x22e)](()=>_0x1825cd['send']('Page.screencastFrameAck',{'sessionId':_0x11932e[_0x4b4fe3(0x26b)]}))[_0x4b4fe3(0x21f)](()=>undefined)['catch'](()=>undefined);this[_0x4b4fe3(0x25a)][_0x4b4fe3(0x1b6)](_0x3cd56f);}),await _0x1825cd['send'](_0x43ddee['sCwpf'],{'format':_0x914176(0x22c),'quality':0x4b,'everyNthFrame':0x6}),this[_0x914176(0x22d)]=!![];}async['stopScreencast'](){const _0x31891b=_0x17106c;if(!this['frameSession']||!this[_0x31891b(0x22d)])return;await this['frameSession']['send'](_0x31891b(0x209))['catch'](()=>undefined);}['startTraceSampling'](){const _0x304578=_0x17106c,_0x1dedd4={'bMjSo':function(_0x2ce1b1,_0x12e9a1,_0x2b3fe0){return _0x2ce1b1(_0x12e9a1,_0x2b3fe0);}};this['queueTraceSample'](),this['traceSampleTimer']=_0x1dedd4['bMjSo'](setInterval,()=>this[_0x304578(0x21d)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x17106c(0x21d)](){const _0x5b8978=_0x17106c;if(this[_0x5b8978(0x231)])return;this['traceSampleInFlight']=this[_0x5b8978(0x24a)]()['finally'](()=>{this['traceSampleInFlight']=null;});}async['stopTraceSampling'](){const _0x326b18=_0x17106c,_0x5f3589={'kDdcA':function(_0x321daa,_0x3d085b){return _0x321daa(_0x3d085b);}};this['traceSampleTimer']&&(_0x5f3589[_0x326b18(0x20e)](clearInterval,this['traceSampleTimer']),this[_0x326b18(0x24b)]=null),await this['traceSampleInFlight']?.['catch'](()=>undefined);}async[_0x17106c(0x24a)](){const _0x57bddd=_0x17106c,_0x24fe36={'cgyHi':_0x57bddd(0x1f6)},_0x4890bf=this['context']?.['pages']()[0x0];if(!_0x4890bf)return;try{await _0x4890bf[_0x57bddd(0x1dc)](_0x24fe36['cgyHi'])[_0x57bddd(0x25d)](_0x3d311a=>_0x3d311a[_0x57bddd(0x1f4)],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x17106c(0x20b)](){const _0x498474=_0x17106c,_0x3d1fb3={'JiQoN':function(_0x2b7e39,_0x2a1aec){return _0x2b7e39<_0x2a1aec;},'OttUs':function(_0x2c552a,_0x35b940,_0x449854){return _0x2c552a(_0x35b940,_0x449854);},'Nbpvi':_0x498474(0x233),'ytpfg':function(_0x2038d7,_0x378197,_0x30b12e){return _0x2038d7(_0x378197,_0x30b12e);},'FDdvx':'error','kDTLG':'-vf','hXJmt':_0x498474(0x250)};if(_0x3d1fb3['JiQoN'](this[_0x498474(0x1b5)],0x2))return null;const _0x49fb63=await resolveFfmpegPath();if(!_0x49fb63)return null;const _0x2caa6f=_0x3d1fb3[_0x498474(0x1df)](join,this[_0x498474(0x263)]['cliArtifactDir'],_0x3d1fb3['Nbpvi']);await mkdir(_0x2caa6f,{'recursive':!![]});const _0x3a9da4=_0x3d1fb3[_0x498474(0x206)](join,_0x2caa6f,_0x498474(0x269));return await execFileAsync(_0x49fb63,['-y',_0x498474(0x23e),_0x498474(0x1a3),_0x3d1fb3[_0x498474(0x259)],'-framerate','10','-i',_0x3d1fb3['OttUs'](join,this['getFrameDir'](),'frame-%06d.jpg'),_0x3d1fb3['kDTLG'],_0x498474(0x1c7),_0x3d1fb3['hXJmt'],'libvpx-vp9','-pix_fmt','yuv420p',_0x3a9da4]),_0x3a9da4;}['getFrameDir'](){const _0x5bc89f={'ARQFc':'nova-video-frames'};return join(this['params']['cliArtifactDir'],_0x5bc89f['ARQFc']);}}async function delay(_0x43db24){await new Promise(_0x25c999=>setTimeout(_0x25c999,_0x43db24));}async function resolveFfmpegPath(){const _0x4dbd76=_0x17106c,_0x238cef={'EqJvF':function(_0x223a9f,_0x533bfe){return _0x223a9f(_0x533bfe);},'NnOKm':'ffmpeg','hqBst':function(_0x10fcca){return _0x10fcca();},'aIOCm':'Library','kPwwz':_0x4dbd76(0x1fa),'arrXH':_0x4dbd76(0x1c1),'UxmYa':'ms-playwright','vqOGq':function(_0x198bcb,_0x3827f7){return _0x198bcb(_0x3827f7);}};if(await _0x238cef[_0x4dbd76(0x1f2)](canRunFfmpeg,_0x238cef['NnOKm']))return _0x238cef['NnOKm'];const _0x520953=[join(_0x238cef[_0x4dbd76(0x257)](homedir),_0x238cef['aIOCm'],_0x238cef['kPwwz'],_0x4dbd76(0x1bc)),join(_0x238cef[_0x4dbd76(0x257)](homedir),_0x238cef[_0x4dbd76(0x237)],_0x238cef[_0x4dbd76(0x1dd)])];for(const _0x1355b1 of _0x520953){try{const _0x280e68=await _0x238cef['vqOGq'](readdir,_0x1355b1),_0xb05c31=_0x280e68[_0x4dbd76(0x1ba)](_0x18de54=>_0x18de54[_0x4dbd76(0x261)](_0x4dbd76(0x24e)))[_0x4dbd76(0x20d)]()['reverse']()['flatMap'](_0x5e9658=>[join(_0x1355b1,_0x5e9658,_0x4dbd76(0x26d)),join(_0x1355b1,_0x5e9658,_0x4dbd76(0x1fe)),join(_0x1355b1,_0x5e9658,_0x4dbd76(0x253))]);for(const _0x5643a4 of _0xb05c31){if(await _0x238cef[_0x4dbd76(0x1f2)](canRunFfmpeg,_0x5643a4))return _0x5643a4;}}catch{}}return null;}async function canRunFfmpeg(_0x2a03b0){const _0x1247ca=_0x17106c,_0x2b860f={'VhzSI':function(_0x1c6038,_0x34f09c,_0x44e73b){return _0x1c6038(_0x34f09c,_0x44e73b);},'ZlKpl':'-version'};try{return await _0x2b860f[_0x1247ca(0x1ec)](execFileAsync,_0x2a03b0,[_0x2b860f['ZlKpl']]),!![];}catch{return![];}}function toStepDisplayName(_0x36152b){const _0x21e779=_0x17106c,_0x3fe698={'atrPa':function(_0x2d4756,_0x588e7d){return _0x2d4756(_0x588e7d);},'mCstV':function(_0x1478ea,_0x4c0ad1){return _0x1478ea(_0x4c0ad1);}},_0x1b45d6=_0x3fe698[_0x21e779(0x248)](basename,_0x36152b)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x1b45d6,'isKeyStep':/^key_/i['test'](_0x3fe698[_0x21e779(0x212)](basename,_0x36152b))};}function extractShellValue(_0x2d101a){if(!_0x2d101a)return null;return _0x2d101a[0x1]??_0x2d101a[0x2]??_0x2d101a[0x3]??null;}function extractOutputOption(_0x27d08b){const _0x3c4f04=_0x17106c;return extractShellValue(_0x27d08b[_0x3c4f04(0x1e0)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x1dc40f,_0x27e65f){const _0x2dd961=_0x17106c,_0x16c559={'zmMjj':_0x2dd961(0x22f),'dtrwX':'goto','uQUgz':_0x2dd961(0x26a),'UUkrT':_0x2dd961(0x1d6),'iQyHG':'wait\x20for\x20page\x20condition','cTqPB':'snapshot','dUEki':function(_0x4e245b,_0x522013){return _0x4e245b(_0x522013);},'OGBNs':'capture\x20snapshot','CxINK':_0x2dd961(0x1f7),'tOPJY':_0x2dd961(0x1b7)};switch(_0x27e65f){case _0x2dd961(0x274):return _0x2dd961(0x241);case _0x16c559[_0x2dd961(0x1f3)]:return _0x2dd961(0x1e6);case'verify':return'verify\x20page\x20condition';case'ask':return'ask\x20page\x20question';case _0x16c559['dtrwX']:return _0x16c559[_0x2dd961(0x1c0)];case _0x16c559[_0x2dd961(0x203)]:return _0x16c559['iQyHG'];case _0x16c559[_0x2dd961(0x228)]:{const _0x28a21a=_0x16c559[_0x2dd961(0x214)](extractOutputOption,_0x1dc40f);if(!_0x28a21a)return _0x16c559[_0x2dd961(0x207)];const {name:_0x5c62da}=toStepDisplayName(_0x28a21a);return'capture\x20snapshot\x20`'+_0x5c62da+'`';}case _0x16c559['CxINK']:{const _0x531bb3=extractOutputOption(_0x1dc40f);if(!_0x531bb3)return'capture\x20screenshot';const {name:_0x5159e3,isKeyStep:_0xa3e023}=_0x16c559[_0x2dd961(0x214)](toStepDisplayName,_0x531bb3);return _0xa3e023?_0x2dd961(0x264)+_0x5159e3+'`':_0x2dd961(0x1a8)+_0x5159e3+'`';}case _0x16c559[_0x2dd961(0x218)]:return'export\x20Nova\x20session';default:return _0x27e65f;}}function getNovaActCliCommandBlockReason(_0x4eb2a0){const _0x51e39c=_0x17106c,_0xa2ec77={'XxmNm':function(_0x57a7aa,_0x35e091){return _0x57a7aa===_0x35e091;},'RjtSQ':_0x51e39c(0x210),'uuOAp':'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.','OMVBm':_0x51e39c(0x1cd)},_0x3f972c=parseNovaActCliCommand(_0x4eb2a0);if(!_0x3f972c)return _0x51e39c(0x249);if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x51e39c(0x1d1)](_0x3f972c))return'Nova\x20command\x20`'+_0x3f972c+'`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.';if(_0xa2ec77[_0x51e39c(0x1ae)](_0x3f972c,_0xa2ec77[_0x51e39c(0x1f8)])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x51e39c(0x1fb)](_0x4eb2a0))return _0xa2ec77[_0x51e39c(0x258)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x51e39c(0x1fb)](_0x4eb2a0))return _0xa2ec77[_0x51e39c(0x1ef)];return null;}function buildFeedbackSection(_0x3cf4b4){const _0x554a16=_0x17106c,_0x4c0da0={'yOTwD':'en-US','kKEvT':'numeric','XpmCi':'Reviewer','plNTO':'\x20>\x20','sMHzR':'element'};if(!_0x3cf4b4||_0x3cf4b4['unaddressedComments'][_0x554a16(0x256)]===0x0)return'';const _0x2d97da=_0x3cf4b4['unaddressedComments']['map'](_0x3dfbeb=>{const _0x19ebd7=_0x554a16,_0x178804=new Date(_0x3dfbeb['createdAt'])['toLocaleDateString'](_0x4c0da0[_0x19ebd7(0x1c4)],{'month':_0x19ebd7(0x1c9),'day':_0x4c0da0[_0x19ebd7(0x254)]}),_0x2421e7=_0x3dfbeb[_0x19ebd7(0x201)]||_0x3dfbeb[_0x19ebd7(0x1b1)]||_0x4c0da0[_0x19ebd7(0x24f)],_0x2e0577=_0x3dfbeb['domRef']?'\x20(on\x20element:\x20<'+(_0x3dfbeb['domRef'][_0x19ebd7(0x1e4)][_0x19ebd7(0x235)](_0x4c0da0['plNTO'])['pop']()?.[_0x19ebd7(0x235)](':')[0x0]||_0x4c0da0[_0x19ebd7(0x1b0)])+'>\x20\x22'+(_0x3dfbeb['domRef'][_0x19ebd7(0x276)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x3dfbeb['id']+_0x19ebd7(0x267)+_0x2421e7+_0x19ebd7(0x1ed)+_0x178804+_0x19ebd7(0x1a6)+_0x3dfbeb['content']+'\x22'+_0x2e0577;})[_0x554a16(0x1f1)]('\x0a');return'\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x2d97da;}function buildNovaSharedOptionsInstruction(_0x8cb3ce){const _0x2f85e9=_0x17106c;if(!_0x8cb3ce[_0x2f85e9(0x1de)]())return _0x2f85e9(0x217);return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x8cb3ce;}export function buildVerifyFeatureNovaCliDebugPrompt(_0xcfaec5){const _0x6ab77b=_0x17106c,_0x4dcafa={'UUpnt':'00_initial-state.yml','Nvwdm':'01_initial-state.png','GBkcX':'02_final-state.yml','BHdHY':function(_0x2a151b,_0x36900d,_0x3e003e){return _0x2a151b(_0x36900d,_0x3e003e);},'RbsKt':function(_0x24d0c7,_0x1160a2){return _0x24d0c7(_0x1160a2);},'SASVn':function(_0x3766ae,_0x502e45){return _0x3766ae(_0x502e45);}},{novaCommandPrefix:_0x2b9395,novaSharedOptionsSuffix:_0x22be2c,cliArtifactDir:_0x160608,url:_0x153f1f}=_0xcfaec5,_0x439d52=buildCliArtifactPath(_0x160608,_0x4dcafa[_0x6ab77b(0x1ca)]),_0x3f4693=buildCliArtifactPath(_0x160608,_0x4dcafa[_0x6ab77b(0x236)]),_0x3ed3e6=buildCliArtifactPath(_0x160608,_0x4dcafa['GBkcX']),_0x22d966=_0x4dcafa[_0x6ab77b(0x1cb)](buildCliArtifactPath,_0x160608,'03_final-state.png');return _0x6ab77b(0x1cf)+_0x2b9395+'\x0a\x0a'+_0x4dcafa[_0x6ab77b(0x262)](buildNovaSharedOptionsInstruction,_0x22be2c)+'\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`'+_0x2b9395+_0x6ab77b(0x1a2)+_0x4dcafa['SASVn'](quoteShellArg,_0x153f1f)+'\x20'+_0x22be2c+'`\x0a2.\x20Run\x20`'+_0x2b9395+'\x20snapshot\x20--output\x20'+_0x4dcafa[_0x6ab77b(0x26e)](quoteShellArg,_0x439d52)+'\x20'+_0x22be2c+_0x6ab77b(0x265)+_0x2b9395+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x3f4693)+'\x20'+_0x22be2c+_0x6ab77b(0x1e5)+_0x2b9395+_0x6ab77b(0x1ff)+_0x2b9395+'\x20snapshot\x20--output\x20'+_0x4dcafa[_0x6ab77b(0x26e)](quoteShellArg,_0x3ed3e6)+'\x20'+_0x22be2c+'`\x0a6.\x20Run\x20`'+_0x2b9395+_0x6ab77b(0x1f9)+quoteShellArg(_0x22d966)+'\x20'+_0x22be2c+'`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`'+_0x160608+_0x6ab77b(0x20f);}export function buildVerifyFeatureNovaCliPrompt(_0x38853b){const _0x26d8b7=_0x17106c,_0x1a6d8c={'SZPom':function(_0xcef70b,_0x1eeb29,_0x12c00c){return _0xcef70b(_0x1eeb29,_0x12c00c);},'cYlxP':'01_initial-state.png','cZrYv':_0x26d8b7(0x1be),'KirbC':function(_0x18f9ca,_0x4ae233){return _0x18f9ca(_0x4ae233);},'Radjh':function(_0x1265a0,_0x79b213){return _0x1265a0(_0x79b213);}},{checklistItem:_0x3edbfd,itemFeedback:_0x3eea29,taskDescription:_0x4951f8,novaCommandPrefix:_0x31dee4,novaSharedOptionsSuffix:_0x33ea8b,cliArtifactDir:_0x59fbb0,url:_0x322ab2,loginInstructions:_0x4ff9ae}=_0x38853b,_0x13bb6c=_0x3edbfd['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x3edbfd['notes']:'',_0x526e20=buildFeedbackSection(_0x3eea29),_0x55bfa9=_0x3eea29?.[_0x26d8b7(0x1e8)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x3eea29['canonicalFlow']:'',_0x526529=_0x4ff9ae?_0x26d8b7(0x208)+_0x4ff9ae+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x1576b5=_0x1a6d8c['SZPom'](buildCliArtifactPath,_0x59fbb0,_0x26d8b7(0x1c8)),_0xb8cca9=buildCliArtifactPath(_0x59fbb0,_0x1a6d8c[_0x26d8b7(0x255)]),_0x5a1e95=buildCliArtifactPath(_0x59fbb0,_0x1a6d8c[_0x26d8b7(0x239)]);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'+_0x3edbfd[_0x26d8b7(0x224)]+_0x13bb6c+_0x526e20+_0x55bfa9+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x4951f8+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x322ab2+_0x26d8b7(0x1a9)+_0x526529+'\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`'+_0x31dee4+'\x20session\x20create\x20'+quoteShellArg(_0x322ab2)+'\x20'+_0x33ea8b+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x59fbb0+_0x26d8b7(0x23a)+_0x31dee4+_0x26d8b7(0x243)+_0x1a6d8c[_0x26d8b7(0x226)](quoteShellArg,_0x1576b5)+'\x20'+_0x33ea8b+_0x26d8b7(0x23f)+_0x31dee4+'\x20screenshot\x20--output\x20'+_0x1a6d8c[_0x26d8b7(0x226)](quoteShellArg,_0xb8cca9)+'\x20'+_0x33ea8b+'`.\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`'+_0x5a1e95+'`.\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`'+_0x31dee4+_0x26d8b7(0x1d7)+(_0x33ea8b['trim']()?'`'+_0x33ea8b+'`':_0x26d8b7(0x204))+'\x0a\x0a'+_0x1a6d8c['Radjh'](buildNovaSharedOptionsInstruction,_0x33ea8b)+'\x0a\x0aExamples:\x0a-\x20`'+_0x31dee4+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x33ea8b+_0x26d8b7(0x24c)+_0x31dee4+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x33ea8b+'`\x0a-\x20`'+_0x31dee4+'\x20snapshot\x20--output\x20'+_0x1a6d8c[_0x26d8b7(0x266)](quoteShellArg,_0x1576b5)+'\x20'+_0x33ea8b+_0x26d8b7(0x24c)+_0x31dee4+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x5a1e95)+'\x20'+_0x33ea8b+_0x26d8b7(0x1a5);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x4f29a5){const _0x181ed5=_0x17106c,_0x5ce2cf={'YTSZO':function(_0x457a6d,_0x4cff02){return _0x457a6d===_0x4cff02;}},_0x24fb35=[..._0x4f29a5['keys']()][_0x181ed5(0x20d)]();let _0x735cf9=0x0;for(const _0x1d197e of _0x4f29a5['values']()){_0x735cf9+=_0x1d197e;}return{'cliCommandCount':_0x735cf9,'cliCommandsSeen':_0x24fb35,'noCliCommandsCalled':_0x5ce2cf[_0x181ed5(0x234)](_0x735cf9,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x4f169a,_0x51f6ad){const _0x4e9182=_0x17106c,_0x53bbc4={'ACVem':function(_0x2e66fe,_0x35ac4a){return _0x2e66fe!==_0x35ac4a;},'WXPMZ':'Bash','PugAK':function(_0xa7b0ac,_0x2e39c8){return _0xa7b0ac(_0x2e39c8);},'mHFhn':function(_0x307107,_0x501d88){return _0x307107(_0x501d88);},'PguDv':'block','GxLZn':'PostToolUse','ZWxkB':'nova_act_command','mUOzk':'session\x20create','LPeUm':_0x4e9182(0x270),'DAYby':'nova-act-cli','ZREPU':'nova_act_command_failure'},_0x9b4ca3=new Map(),_0x304854=async _0x31fc69=>{const _0x429946=_0x4e9182;if(_0x31fc69['hook_event_name']!=='PreToolUse')return{};const _0x63a758=_0x31fc69;if(_0x53bbc4['ACVem'](_0x63a758['tool_name'],_0x53bbc4['WXPMZ']))return{};const _0x20986d=_0x63a758[_0x429946(0x22a)],_0x1d481c=_0x53bbc4['PugAK'](extractBashCommand,_0x20986d);if(!_0x1d481c)return{};const _0x14a212=_0x53bbc4[_0x429946(0x20c)](getNovaActCliCommandBlockReason,_0x1d481c);if(!_0x14a212)return{};return{'decision':_0x53bbc4[_0x429946(0x1aa)],'reason':_0x14a212};},_0x2e9fb4=async _0x3a9e8b=>{const _0x34a197=_0x4e9182;if(_0x3a9e8b[_0x34a197(0x26c)]!==_0x53bbc4[_0x34a197(0x211)])return{};const _0x18d2c5=_0x3a9e8b;if(_0x18d2c5['tool_name']!==_0x53bbc4[_0x34a197(0x1ee)])return{};const _0x36fb0a=_0x18d2c5['tool_input'],_0x6b3ee2=_0x53bbc4['mHFhn'](extractBashCommand,_0x36fb0a);if(!_0x6b3ee2)return{};const _0x1a8dcc=_0x53bbc4[_0x34a197(0x20c)](parseNovaActCliCommand,_0x6b3ee2);if(!_0x1a8dcc)return{};_0x9b4ca3[_0x34a197(0x1af)](_0x1a8dcc,(_0x9b4ca3[_0x34a197(0x1a4)](_0x1a8dcc)||0x0)+0x1),_0x4f169a[_0x34a197(0x1da)]('nova_act_command',{'subcommand':_0x1a8dcc}),_0x4f169a['trackPhaseEnd'](_0x53bbc4[_0x34a197(0x1d0)],{'subcommand':_0x1a8dcc,'commandPreview':previewNovaActCliCommand(_0x6b3ee2)}),console[_0x34a197(0x246)](_0x34a197(0x19f)+formatNovaActCliLog(_0x6b3ee2,_0x1a8dcc));if(_0x1a8dcc===_0x53bbc4['mUOzk']&&_0x51f6ad)try{await _0x51f6ad['start']();}catch(_0x449460){await _0x4f169a['trackPhaseError'](_0x53bbc4['LPeUm'],_0x449460,{'transport':_0x53bbc4['DAYby']});}return{};},_0x50a102=async _0x59b3c4=>{const _0x47ef4b=_0x4e9182;if(_0x59b3c4['hook_event_name']!=='PostToolUseFailure')return{};const _0x581d1e=_0x59b3c4;if(_0x581d1e['tool_name']!==_0x47ef4b(0x1d9))return{};return await _0x4f169a['trackPhaseError'](_0x53bbc4[_0x47ef4b(0x1d4)],_0x581d1e[_0x47ef4b(0x272)],{'transport':_0x47ef4b(0x202),'toolName':_0x47ef4b(0x1d9)}),{};};return{'preToolUseHook':_0x304854,'postToolUseHook':_0x2e9fb4,'postToolUseFailureHook':_0x50a102,'commandCounts':_0x9b4ca3};}async function runNovaLifecycleCommand(_0x18188e){const _0x14e5b8=_0x17106c,_0x39ddb2={'fQzGi':function(_0x7fc9b,_0x19463f){return _0x7fc9b(_0x19463f);}},{novaOptions:_0x528d25,commandArgs:_0x4439e7,telemetry:_0x10738e,phase:_0x398c20,metadata:_0x48e0a0,timeoutMs:_0x1986c3}=_0x18188e;_0x10738e['trackPhaseStart'](_0x398c20,_0x48e0a0);try{const _0x39d1ae=await runNovaActCliCommand({..._0x528d25,'commandArgs':_0x4439e7,'cwd':process['cwd'](),'env':process['env'],'timeoutMs':_0x1986c3??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x10738e[_0x14e5b8(0x24d)](_0x398c20,{..._0x48e0a0,'subcommand':_0x39d1ae[_0x14e5b8(0x200)]['subcommand'],'commandPreview':_0x39ddb2['fQzGi'](previewNovaActCliCommand,_0x39d1ae['invocation']['shellCommand']),'stdoutPreview':previewNovaActCliCommand(_0x39d1ae['stdout']),'stderrPreview':previewNovaActCliCommand(_0x39d1ae[_0x14e5b8(0x215)]),'logDir':extractNovaActLogDir(_0x39d1ae['stdout'])});}catch(_0x4762bf){await _0x10738e['trackPhaseError'](_0x398c20,_0x4762bf,_0x48e0a0);throw _0x4762bf;}}export async function finalizeVerifyFeatureNovaCliSession(_0x4b762c){const _0x4daa46=_0x17106c,_0x25278e={'GEmEh':'nova_act_final_screenshot','dFSlm':function(_0x4b1bb5,_0x203ba9,_0x3ece87){return _0x4b1bb5(_0x203ba9,_0x3ece87);},'MVrDr':'key_final-state.png','REeRy':'snapshot','tmoCp':_0x4daa46(0x21c),'JOMZo':'session','UKjth':'export','OutwP':'--format','yapvi':function(_0x568b3d,_0x2e3c6e,_0x3fd322){return _0x568b3d(_0x2e3c6e,_0x3fd322);},'IHbWQ':_0x4daa46(0x21e),'lbZvE':'--output-dir','ELSYR':_0x4daa46(0x277),'SIViV':function(_0x542876,_0x4c0d67){return _0x542876===_0x4c0d67;},'yggst':function(_0x166e1b,_0x341aec){return _0x166e1b(_0x341aec);}},{telemetry:_0x3c0641,novaOptions:_0x2a5987,cliArtifactDir:_0x1da8ef,transportMetadata:_0x21fc16,artifactRecorder:_0xd67f33}=_0x4b762c,_0x42476b=[{'phase':_0x25278e[_0x4daa46(0x251)],'commandArgs':['screenshot',_0x4daa46(0x1e7),_0x25278e[_0x4daa46(0x22b)](buildCliArtifactPath,_0x1da8ef,_0x25278e['MVrDr'])]},{'phase':'nova_act_final_snapshot','commandArgs':[_0x25278e[_0x4daa46(0x216)],'--output',_0x25278e[_0x4daa46(0x22b)](buildCliArtifactPath,_0x1da8ef,'final-state.yaml')]},{'phase':_0x25278e['tmoCp'],'commandArgs':[_0x25278e[_0x4daa46(0x1b3)],_0x25278e['UKjth'],_0x25278e[_0x4daa46(0x1db)],'json',_0x4daa46(0x1e7),_0x25278e['yapvi'](buildCliArtifactPath,_0x1da8ef,'nova-session-export.json')]},{'phase':_0x25278e[_0x4daa46(0x1e1)],'commandArgs':[_0x25278e['JOMZo'],_0x4daa46(0x1b4),_0x4daa46(0x223),_0x25278e['lbZvE'],_0x25278e[_0x4daa46(0x1d5)](buildCliArtifactPath,_0x1da8ef,'nova-report')]},{'phase':_0x25278e['ELSYR'],'commandArgs':[_0x25278e['JOMZo'],_0x4daa46(0x23b)]}];for(const _0x3448fb of _0x42476b){_0x25278e['SIViV'](_0x3448fb[_0x4daa46(0x1ab)],_0x25278e[_0x4daa46(0x1c6)])&&await _0xd67f33?.['stop']();try{await _0x25278e['yggst'](runNovaLifecycleCommand,{'novaOptions':_0x2a5987,'commandArgs':[..._0x3448fb['commandArgs']],'telemetry':_0x3c0641,'phase':_0x3448fb['phase'],'metadata':_0x21fc16});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x1f3c0b){const _0x20e15d=_0x17106c,_0x556af2={'DdKKr':function(_0x3d4d3a,_0x40dc57,_0x3e7396){return _0x3d4d3a(_0x40dc57,_0x3e7396);},'VJgWE':function(_0x42b461,_0x587267){return _0x42b461+_0x587267;}},{cwd:_0x534f7e,cliArtifactDir:_0x3076a0,startTime:_0xca01fc}=_0x1f3c0b,_0x4dc2b0=[];await mkdir(_0x3076a0,{'recursive':!![]});const _0x2968df=await _0x556af2[_0x20e15d(0x219)](readdir,_0x534f7e,{'withFileTypes':!![]});for(const _0x6e73f9 of _0x2968df){if(!_0x6e73f9['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x20e15d(0x1fb)](_0x6e73f9[_0x20e15d(0x26f)]))continue;const _0x40f9d2=_0x556af2['DdKKr'](join,_0x534f7e,_0x6e73f9['name']),_0x10cea9=await stat(_0x40f9d2);if(_0x556af2['VJgWE'](_0x10cea9[_0x20e15d(0x1b2)],0x7d0)<_0xca01fc)continue;const _0x236ad0=buildCliArtifactPath(_0x3076a0,_0x6e73f9[_0x20e15d(0x26f)]);if(_0x40f9d2===_0x236ad0)continue;await rename(_0x40f9d2,_0x236ad0),_0x4dc2b0[_0x20e15d(0x1b6)](_0x6e73f9['name']);}return _0x4dc2b0['sort']();}function _0x121c(){const _0x16e132=['contexts','encodeScreencastVideo','mHFhn','sort','kDdcA','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','verify','GxLZn','mCstV','base64','dUEki','stderr','REeRy','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.','tOPJY','DdKKr','nova_act_artifact_recording_stop','trackPhaseError','nova_act_session_export','queueTraceSample','nova_act_session_report','then','allSettled','ZIUhd','502210hJpgKQ','--report','description','frame-','KirbC','catch','cTqPB','IzWdV','tool_input','dFSlm','jpeg','screencastStarted','finally','execute','3395dMHOHG','traceSampleInFlight','browser','videos','YTSZO','split','Nvwdm','arrXH','stopTraceSampling','cZrYv','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','close','startScreencast','eZmMT','-hide_banner','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','luRMR','create\x20Nova\x20browser\x20session','yuQVc','\x20snapshot\x20--output\x20','1179996yIsDqR','1004VMDJTJ','log','goto','atrPa','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','captureTraceSample','traceSampleTimer','`\x0a-\x20`','trackPhaseEnd','ffmpeg-','XpmCi','-c:v','GEmEh','trace.zip','ffmpeg.exe','kKEvT','cYlxP','length','hqBst','uuOAp','FDdvx','frameWrites','207ygOKPE','telemetry','evaluate','MbzBL','309190jMXPZf','Page.startScreencast','startsWith','RbsKt','params','capture\x20key\x20step\x20`','`\x0a3.\x20Run\x20`','Radjh',']\x20**','transportMetadata','session-recording.webm','navigate\x20browser','sessionId','hook_event_name','ffmpeg-mac','SASVn','name','nova_act_artifact_recording','zip','error','.json','session\x20create','55005BRlIJv','textContent','nova_act_session_close','[nova-act-cli]\x20','commandArgs','cdp_endpoint','\x20session\x20create\x20','-loglevel','get','`\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.','):\x20\x22','sessions','capture\x20step\x20`','\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','PguDv','phase','browser_pid','frameSession','XxmNm','set','sMHzR','authorEmail','mtimeMs','JOMZo','export','frameCount','push','session\x20export','zwOFh','tracingStarted','filter','subcommand','ms-playwright','now','key_03_success-state.png','160000pbBFyF','uQUgz','.cache','newCDPSession','utf-8','yOTwD','stop','ELSYR','scale=trunc(iw/2)*2:trunc(ih/2)*2','01_initial.yml','short','UUpnt','BHdHY','.act_cli','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','from','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','ZWxkB','has','fjbAo','cliArtifactDir','ZREPU','yapvi','wait-for','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','INynH','Bash','trackPhaseStart','OutwP','locator','UxmYa','trim','OttUs','match','IHbWQ','stopped','context','selector','`\x0a4.\x20Run\x20one\x20batched\x20`','execute\x20Nova\x20browser\x20action','--output','canonicalFlow','novaOptions','padStart','JHgRX','VhzSI','**\x20(','WXPMZ','OMVBm','91288hdtGOE','join','EqJvF','zmMjj','tagName','startAttempted','body','screenshot','RjtSQ','\x20screenshot\x20--output\x20','Caches','test','parse','ASBPa','ffmpeg-linux','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','invocation','authorName','nova-act-cli','UUkrT','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','start','ytpfg','OGBNs','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','Page.stopScreencast'];_0x121c=function(){return _0x16e132;};return _0x121c();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x35d490){const _0x19d46b=_0x17106c,_0x433aaa={'CRZss':function(_0xc3df06,_0x2b1f0c,_0x40869b){return _0xc3df06(_0x2b1f0c,_0x40869b);},'UoyJP':_0x19d46b(0x252)},_0x219098=_0x433aaa['CRZss'](join,_0x35d490,_0x433aaa['UoyJP']);try{return{'buffer':await readFile(_0x219098),'source':_0x219098};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x35d490),'source':_0x35d490};}}async function zipVerifyFeatureNovaArtifacts(_0x56d0d5){const _0x2293a8=_0x17106c,_0x3c802b={'wlTfL':function(_0x27969f,_0x44fd0f,_0x2aea31,_0xbb5e24){return _0x27969f(_0x44fd0f,_0x2aea31,_0xbb5e24);},'pDmzc':'nova-artifacts.zip','IzWdV':function(_0x2ff8f1,_0x5286e5){return _0x2ff8f1(_0x5286e5);},'INynH':function(_0x572b1e,_0x2b4748,_0x30980c){return _0x572b1e(_0x2b4748,_0x30980c);}},_0x4185af=_0x3c802b['wlTfL'](join,_0x56d0d5,'..',_0x3c802b['pDmzc']);try{return await execFileAsync(_0x2293a8(0x271),['-qr',_0x4185af,'.','-x','nova-user-data/*'],{'cwd':_0x56d0d5}),await _0x3c802b[_0x2293a8(0x229)](readFile,_0x4185af);}finally{await _0x3c802b[_0x2293a8(0x1d8)](rm,_0x4185af,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x19d254){const _0x20285e=_0x17106c,_0x54f377=buildNovaActCliInvocation(_0x19d254[_0x20285e(0x1e9)],_0x19d254['commandArgs']);return{'command':_0x54f377['command'],'args':_0x54f377['args'],'commandPreview':previewNovaActCliCommand(_0x54f377['shellCommand']),'subcommand':_0x54f377[_0x20285e(0x1bb)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x19d254['novaOptions'],_0x19d254[_0x20285e(0x1a0)])};}
1
+ const _0x372294=_0x4aaf;(function(_0x349d1b,_0x2137ec){const _0x11568c=_0x4aaf,_0x1c53f9=_0x349d1b();while(!![]){try{const _0xe1eed7=-parseInt(_0x11568c(0xc9))/0x1+parseInt(_0x11568c(0x151))/0x2+-parseInt(_0x11568c(0x159))/0x3+parseInt(_0x11568c(0xf0))/0x4*(-parseInt(_0x11568c(0x111))/0x5)+-parseInt(_0x11568c(0x18a))/0x6+parseInt(_0x11568c(0x157))/0x7*(parseInt(_0x11568c(0x105))/0x8)+-parseInt(_0x11568c(0x155))/0x9*(-parseInt(_0x11568c(0x156))/0xa);if(_0xe1eed7===_0x2137ec)break;else _0x1c53f9['push'](_0x1c53f9['shift']());}catch(_0x44f7f3){_0x1c53f9['push'](_0x1c53f9['shift']());}}}(_0x4889,0x5fab0));function _0x4aaf(_0x282984,_0x249f4c){_0x282984=_0x282984-0xad;const _0x488993=_0x4889();let _0x4aaf94=_0x488993[_0x282984];return _0x4aaf94;}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([_0x372294(0x10f),_0x372294(0x17f),_0x372294(0x123),_0x372294(0x11c),_0x372294(0x13e),_0x372294(0xc2),'snapshot','screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0xc6da5c,_0xe43c93){const _0x2b6916=_0x372294,_0x205ce={'xwhwh':function(_0x33ff1f,_0x5c63c0,_0xb750f2){return _0x33ff1f(_0x5c63c0,_0xb750f2);}};return _0x205ce[_0x2b6916(0x13b)](join,_0xc6da5c,_0xe43c93);}export class NovaActArtifactRecorder{['params'];[_0x372294(0xef)]=null;['context']=null;[_0x372294(0x148)]=null;['frameWrites']=[];[_0x372294(0x103)]=0x0;[_0x372294(0x17e)]=0x0;[_0x372294(0xb0)]=null;['traceSampleInFlight']=null;['tracingStarted']=![];[_0x372294(0x138)]=![];['startAttempted']=![];['stopped']=![];constructor(_0x4cb32b){this['params']=_0x4cb32b;}async[_0x372294(0xb3)](){const _0x54e24a=_0x372294,_0x5e6ca8={'eEiZT':function(_0x4d2df6,_0x3fd14c,_0x202690){return _0x4d2df6(_0x3fd14c,_0x202690);},'lrriq':_0x54e24a(0xf6),'DCVmm':'nova_act_artifact_recording'};if(this['startAttempted'])return;this[_0x54e24a(0x17c)]=!![];const _0x1b11e3=await this[_0x54e24a(0x181)](),_0xa86be7=_0x1b11e3['cdp_endpoint'];if(!_0xa86be7)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x54e24a(0x102)][_0x54e24a(0x133)]['sessionId']);await _0x5e6ca8[_0x54e24a(0xe8)](mkdir,this[_0x54e24a(0x102)]['cliArtifactDir'],{'recursive':!![]}),this[_0x54e24a(0xef)]=await chromium['connectOverCDP'](_0xa86be7,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x54e24a(0x180)]=this[_0x54e24a(0xef)][_0x54e24a(0xd2)]()[0x0]??null;if(!this[_0x54e24a(0x180)])throw new Error(_0x5e6ca8['lrriq']);await this[_0x54e24a(0x180)][_0x54e24a(0xd7)][_0x54e24a(0xb3)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x54e24a(0x15b)](),await this['startScreencast'](),this['params'][_0x54e24a(0x134)][_0x54e24a(0x149)]('nova_act_artifact_recording',{...this['params'][_0x54e24a(0x161)],'cdpEndpoint':_0xa86be7,'browserPid':_0x1b11e3[_0x54e24a(0x188)],'sessionState':_0x1b11e3[_0x54e24a(0xca)]}),this['params']['telemetry']['trackPhaseEnd'](_0x5e6ca8[_0x54e24a(0x17a)],{...this['params'][_0x54e24a(0x161)],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x54e24a(0x138)]});}async['stop'](){const _0x3e8c0d=_0x372294,_0x3a39b2={'bCZHb':function(_0x2e2f88,_0x19b6b7,_0x231d76){return _0x2e2f88(_0x19b6b7,_0x231d76);},'FFTIE':'trace.zip','sRZTB':'nova_act_artifact_recording_stop'};if(this['stopped'])return;this[_0x3e8c0d(0xbd)]=!![];const _0x597c69={...this[_0x3e8c0d(0x102)][_0x3e8c0d(0x161)],'frameCount':this['frameCount'],'traceSampleCount':this[_0x3e8c0d(0x17e)],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x3e8c0d(0x138)]};this[_0x3e8c0d(0x102)][_0x3e8c0d(0x134)][_0x3e8c0d(0x149)](_0x3e8c0d(0xed),_0x597c69);try{await this[_0x3e8c0d(0xfb)](),await this['captureTraceSample'](),await this[_0x3e8c0d(0x174)](),await Promise['allSettled'](this['frameWrites']);this[_0x3e8c0d(0x180)]&&this['tracingStarted']&&await this['context']['tracing'][_0x3e8c0d(0xba)]({'path':_0x3a39b2['bCZHb'](buildCliArtifactPath,this['params']['cliArtifactDir'],_0x3a39b2['FFTIE'])});const _0xfd4a17=await this['encodeScreencastVideo']();this[_0x3e8c0d(0x102)]['telemetry'][_0x3e8c0d(0x169)](_0x3a39b2['sRZTB'],{..._0x597c69,'videoPath':_0xfd4a17});}catch(_0x3f26fe){await this[_0x3e8c0d(0x102)]['telemetry'][_0x3e8c0d(0x140)](_0x3a39b2[_0x3e8c0d(0x16e)],_0x3f26fe,_0x597c69);}finally{await this['browser']?.[_0x3e8c0d(0xf9)]()[_0x3e8c0d(0xf4)](()=>undefined),this[_0x3e8c0d(0xef)]=null,this['context']=null,this['frameSession']=null;}}async[_0x372294(0x181)](){const _0x3b9af4=_0x372294,_0x5b8711={'ZYAyy':function(_0x1e6530,_0x231379,_0x3eaffb,_0x19060d,_0x5d242b,_0x1d2c5f){return _0x1e6530(_0x231379,_0x3eaffb,_0x19060d,_0x5d242b,_0x1d2c5f);},'OuCZy':'utf-8','CSjGc':function(_0xd6e7c8,_0x317283){return _0xd6e7c8(_0x317283);},'gBrjS':function(_0x439824,_0x4d19f1){return _0x439824-_0x4d19f1;}},_0x3454d8=_0x5b8711['ZYAyy'](join,homedir(),_0x3b9af4(0x11b),'browser',_0x3b9af4(0xf3),this['params'][_0x3b9af4(0x133)]['sessionId']+_0x3b9af4(0x132)),_0x425372=Date[_0x3b9af4(0xeb)]();let _0x39c182;do{try{const _0x5bbc67=JSON[_0x3b9af4(0xb1)](await readFile(_0x3454d8,_0x5b8711['OuCZy']));if(_0x5bbc67['cdp_endpoint'])return _0x5bbc67;_0x39c182=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x3454d8);}catch(_0x29936e){_0x39c182=_0x29936e;}await _0x5b8711['CSjGc'](delay,0x64);}while(_0x5b8711['gBrjS'](Date['now'](),_0x425372)<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x39c182 instanceof Error)throw _0x39c182;throw new Error(_0x3b9af4(0x152)+_0x3454d8);}async['startScreencast'](){const _0x2d7f8e=_0x372294,_0x147dfc={'wIMQT':_0x2d7f8e(0x128),'MkfEx':'Page.startScreencast'};if(!this['context'])return;const _0x28d79d=this['context'][_0x2d7f8e(0xc0)]()[0x0];if(!_0x28d79d)return;const _0x2e927f=this['getFrameDir']();await mkdir(_0x2e927f,{'recursive':!![]});const _0x22c59=await this[_0x2d7f8e(0x180)][_0x2d7f8e(0x16d)](_0x28d79d);this['frameSession']=_0x22c59,_0x22c59['on'](_0x2d7f8e(0x16f),_0x18a0d6=>{const _0x29fd7e=_0x2d7f8e,_0x22fc65=++this['frameCount'],_0x55c291=join(_0x2e927f,'frame-'+String(_0x22fc65)[_0x29fd7e(0xc4)](0x6,'0')+'.jpg'),_0x23a872=writeFile(_0x55c291,Buffer[_0x29fd7e(0x121)](_0x18a0d6[_0x29fd7e(0x15d)],_0x147dfc[_0x29fd7e(0xf2)]))[_0x29fd7e(0xf4)](()=>undefined)['finally'](()=>_0x22c59[_0x29fd7e(0x142)]('Page.screencastFrameAck',{'sessionId':_0x18a0d6[_0x29fd7e(0xad)]}))['then'](()=>undefined)[_0x29fd7e(0xf4)](()=>undefined);this[_0x29fd7e(0xee)][_0x29fd7e(0xb6)](_0x23a872);}),await _0x22c59['send'](_0x147dfc['MkfEx'],{'format':_0x2d7f8e(0x101),'quality':0x4b,'everyNthFrame':0x6}),this[_0x2d7f8e(0x138)]=!![];}async['stopScreencast'](){const _0x4d5788=_0x372294;if(!this[_0x4d5788(0x148)]||!this[_0x4d5788(0x138)])return;await this['frameSession']['send'](_0x4d5788(0x104))[_0x4d5788(0xf4)](()=>undefined);}['startTraceSampling'](){const _0x6f5d09=_0x372294,_0x3f20be={'zEWYo':function(_0x273c0e,_0x5c10a4,_0x5462aa){return _0x273c0e(_0x5c10a4,_0x5462aa);}};this['queueTraceSample'](),this[_0x6f5d09(0xb0)]=_0x3f20be['zEWYo'](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x372294(0x179)](){const _0x59f269=_0x372294;if(this['traceSampleInFlight'])return;this['traceSampleInFlight']=this['captureTraceSample']()[_0x59f269(0xc5)](()=>{this['traceSampleInFlight']=null;});}async['stopTraceSampling'](){const _0x1622a7=_0x372294;this[_0x1622a7(0xb0)]&&(clearInterval(this['traceSampleTimer']),this[_0x1622a7(0xb0)]=null),await this['traceSampleInFlight']?.[_0x1622a7(0xf4)](()=>undefined);}async[_0x372294(0x112)](){const _0x573ec8=_0x372294,_0x270d2c=this[_0x573ec8(0x180)]?.[_0x573ec8(0xc0)]()[0x0];if(!_0x270d2c)return;try{await _0x270d2c[_0x573ec8(0x12b)]('body')['evaluate'](_0x8d08b0=>_0x8d08b0['tagName'],undefined,{'timeout':0x3e8}),this[_0x573ec8(0x17e)]++;}catch{}}async['encodeScreencastVideo'](){const _0xf7b7b2=_0x372294,_0x45176c={'lcFhK':function(_0x3be985,_0x3ef861){return _0x3be985<_0x3ef861;},'tzpBo':function(_0x4185ed,_0x5420b7,_0x275ad6){return _0x4185ed(_0x5420b7,_0x275ad6);},'fFIYG':_0xf7b7b2(0x115),'DoHaX':_0xf7b7b2(0x12e),'SPpPq':function(_0xf3a1cf,_0x3fd349,_0x2cc00c){return _0xf3a1cf(_0x3fd349,_0x2cc00c);},'GNefn':'error','JmNsI':_0xf7b7b2(0xb2),'utJZZ':'frame-%06d.jpg','ilefm':'-vf','XkgvV':'libvpx-vp9'};if(_0x45176c['lcFhK'](this[_0xf7b7b2(0x103)],0x2))return null;const _0x5e3b77=await resolveFfmpegPath();if(!_0x5e3b77)return null;const _0x4fb7c3=_0x45176c['tzpBo'](join,this['params']['cliArtifactDir'],_0x45176c[_0xf7b7b2(0xc1)]);await mkdir(_0x4fb7c3,{'recursive':!![]});const _0xb0d504=_0x45176c[_0xf7b7b2(0x10d)](join,_0x4fb7c3,_0x45176c[_0xf7b7b2(0x147)]);return await _0x45176c['SPpPq'](execFileAsync,_0x5e3b77,['-y','-hide_banner',_0xf7b7b2(0xe7),_0x45176c['GNefn'],_0x45176c[_0xf7b7b2(0x131)],'10','-i',join(this[_0xf7b7b2(0x14c)](),_0x45176c['utJZZ']),_0x45176c[_0xf7b7b2(0x129)],_0xf7b7b2(0xe5),_0xf7b7b2(0x135),_0x45176c[_0xf7b7b2(0xf7)],_0xf7b7b2(0xff),_0xf7b7b2(0x160),_0xb0d504]),_0xb0d504;}[_0x372294(0x14c)](){const _0x3abb3f=_0x372294,_0x25e20e={'IITuF':_0x3abb3f(0x164)};return join(this['params'][_0x3abb3f(0xda)],_0x25e20e[_0x3abb3f(0x109)]);}}async function delay(_0x43f0ac){await new Promise(_0x3b04d3=>setTimeout(_0x3b04d3,_0x43f0ac));}async function resolveFfmpegPath(){const _0xea709e=_0x372294,_0x23e107={'cahUS':function(_0x5f2720,_0x5cbf84){return _0x5f2720(_0x5cbf84);},'PsCQs':_0xea709e(0x10a),'aNcZm':function(_0x1a5ac2,_0x38146b,_0x3aa7dd,_0x4007dd,_0x35065a){return _0x1a5ac2(_0x38146b,_0x3aa7dd,_0x4007dd,_0x35065a);},'JlGcO':_0xea709e(0x12c),'fBATx':_0xea709e(0x130),'Hddtl':function(_0x4c513c){return _0x4c513c();},'LIyOL':'.cache'};if(await _0x23e107[_0xea709e(0xf8)](canRunFfmpeg,_0x23e107['PsCQs']))return _0x23e107['PsCQs'];const _0x1f1dc6=[_0x23e107[_0xea709e(0x15f)](join,homedir(),_0xea709e(0x154),_0x23e107[_0xea709e(0x163)],_0x23e107['fBATx']),join(_0x23e107[_0xea709e(0x117)](homedir),_0x23e107[_0xea709e(0x15e)],'ms-playwright')];for(const _0x3b1f4c of _0x1f1dc6){try{const _0x140911=await readdir(_0x3b1f4c),_0x156b90=_0x140911[_0xea709e(0x141)](_0x120ff3=>_0x120ff3['startsWith']('ffmpeg-'))[_0xea709e(0xbf)]()['reverse']()['flatMap'](_0x28f5d1=>[join(_0x3b1f4c,_0x28f5d1,'ffmpeg-mac'),join(_0x3b1f4c,_0x28f5d1,_0xea709e(0xd6)),join(_0x3b1f4c,_0x28f5d1,_0xea709e(0x13a))]);for(const _0x3d81dc of _0x156b90){if(await _0x23e107['cahUS'](canRunFfmpeg,_0x3d81dc))return _0x3d81dc;}}catch{}}return null;}async function canRunFfmpeg(_0x2433ca){const _0xfc9e36=_0x372294,_0x399403={'jvInC':_0xfc9e36(0x15a)};try{return await execFileAsync(_0x2433ca,[_0x399403['jvInC']]),!![];}catch{return![];}}function toStepDisplayName(_0x405b1d){const _0x4e21b9=_0x372294,_0x25dd76={'lfuuX':function(_0xeaf185,_0x8e914e){return _0xeaf185(_0x8e914e);}},_0x3eb564=_0x25dd76[_0x4e21b9(0xcc)](basename,_0x405b1d)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')[_0x4e21b9(0x150)](/-/g,'\x20');return{'name':_0x3eb564,'isKeyStep':/^key_/i[_0x4e21b9(0xce)](_0x25dd76[_0x4e21b9(0xcc)](basename,_0x405b1d))};}function extractShellValue(_0x541a72){if(!_0x541a72)return null;return _0x541a72[0x1]??_0x541a72[0x2]??_0x541a72[0x3]??null;}function extractOutputOption(_0x5de4bd){const _0x345328=_0x372294;return extractShellValue(_0x5de4bd[_0x345328(0xb9)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x151794,_0x13764b){const _0x33dc15=_0x372294,_0x297a97={'DefoG':'execute','YyADr':_0x33dc15(0xb8),'nPpLi':'verify','CyQOo':'verify\x20page\x20condition','EaYec':_0x33dc15(0x11c),'uPufA':_0x33dc15(0x13e),'nAgua':_0x33dc15(0xcf),'GgaPv':function(_0x1688e7,_0x100990){return _0x1688e7(_0x100990);},'oabuG':'screenshot','bfwpS':'session\x20export'};switch(_0x13764b){case'session\x20create':return'create\x20Nova\x20browser\x20session';case _0x297a97['DefoG']:return _0x297a97[_0x33dc15(0xe1)];case _0x297a97['nPpLi']:return _0x297a97[_0x33dc15(0x108)];case _0x297a97[_0x33dc15(0xc6)]:return'ask\x20page\x20question';case _0x297a97[_0x33dc15(0xd3)]:return'navigate\x20browser';case'wait-for':return _0x297a97[_0x33dc15(0xf5)];case'snapshot':{const _0x1e2eb1=_0x297a97[_0x33dc15(0x178)](extractOutputOption,_0x151794);if(!_0x1e2eb1)return'capture\x20snapshot';const {name:_0x1ffaed}=toStepDisplayName(_0x1e2eb1);return _0x33dc15(0x13c)+_0x1ffaed+'`';}case _0x297a97[_0x33dc15(0x13f)]:{const _0x4619a0=extractOutputOption(_0x151794);if(!_0x4619a0)return _0x33dc15(0xde);const {name:_0x4482d3,isKeyStep:_0x2ac67a}=toStepDisplayName(_0x4619a0);return _0x2ac67a?'capture\x20key\x20step\x20`'+_0x4482d3+'`':_0x33dc15(0xe2)+_0x4482d3+'`';}case _0x297a97['bfwpS']:return _0x33dc15(0xea);default:return _0x13764b;}}function getNovaActCliCommandBlockReason(_0x42c3eb){const _0x2b15b2=_0x372294,_0x4b8809={'OdmZX':function(_0x72905a,_0x2ffa74){return _0x72905a(_0x2ffa74);},'nEPxY':function(_0x588162,_0x140fb7){return _0x588162===_0x140fb7;},'IOZIS':'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.','IMgbO':_0x2b15b2(0xbc)},_0x3d83c8=_0x4b8809['OdmZX'](parseNovaActCliCommand,_0x42c3eb);if(!_0x3d83c8)return'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.';if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x3d83c8))return'Nova\x20command\x20`'+_0x3d83c8+_0x2b15b2(0x14e);if(_0x4b8809[_0x2b15b2(0xae)](_0x3d83c8,'verify')&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x2b15b2(0xce)](_0x42c3eb))return _0x4b8809['IOZIS'];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x2b15b2(0xce)](_0x42c3eb))return _0x4b8809[_0x2b15b2(0xb4)];return null;}function buildFeedbackSection(_0x4eb5fa){const _0x213f6a=_0x372294,_0x18dcae={'fwcYT':'en-US','GjBqS':'short','HIhLe':_0x213f6a(0x124),'wQKUV':'element'};if(!_0x4eb5fa||_0x4eb5fa['unaddressedComments'][_0x213f6a(0xb5)]===0x0)return'';const _0xcfddef=_0x4eb5fa['unaddressedComments']['map'](_0x48cbeb=>{const _0x10671f=_0x213f6a,_0x126802=new Date(_0x48cbeb[_0x10671f(0x139)])[_0x10671f(0xe0)](_0x18dcae['fwcYT'],{'month':_0x18dcae[_0x10671f(0xd8)],'day':_0x18dcae['HIhLe']}),_0x49b6a9=_0x48cbeb[_0x10671f(0x175)]||_0x48cbeb[_0x10671f(0xbb)]||_0x10671f(0x17b),_0x39528d=_0x48cbeb['domRef']?_0x10671f(0xcb)+(_0x48cbeb['domRef']['selector']['split']('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x18dcae[_0x10671f(0xc7)])+_0x10671f(0x167)+(_0x48cbeb['domRef'][_0x10671f(0x187)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x10671f(0x116)+_0x48cbeb['id']+_0x10671f(0x10b)+_0x49b6a9+_0x10671f(0x166)+_0x126802+'):\x20\x22'+_0x48cbeb[_0x10671f(0x14d)]+'\x22'+_0x39528d;})['join']('\x0a');return'\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0xcfddef;}function buildNovaSharedOptionsInstruction(_0x15ecdc){if(!_0x15ecdc['trim']())return'The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.';return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x15ecdc;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x2e50c6){const _0x11a789=_0x372294,_0x524edf={'irzwL':function(_0x14c731,_0x47d025,_0x4432ac){return _0x14c731(_0x47d025,_0x4432ac);},'TyYNR':_0x11a789(0x120),'JHhwF':function(_0x2d42a5,_0x5e17a7,_0x4a27ad){return _0x2d42a5(_0x5e17a7,_0x4a27ad);},'uLYKb':'03_final-state.png','ESyHN':function(_0x3ced27,_0x4dbb33){return _0x3ced27(_0x4dbb33);}},{novaCommandPrefix:_0x3491c6,novaSharedOptionsSuffix:_0x12e6c6,cliArtifactDir:_0x3c03b3,url:_0x392e28}=_0x2e50c6,_0x3225f9=_0x524edf[_0x11a789(0x126)](buildCliArtifactPath,_0x3c03b3,_0x524edf['TyYNR']),_0x21f2d1=_0x524edf['JHhwF'](buildCliArtifactPath,_0x3c03b3,'01_initial-state.png'),_0x14364b=_0x524edf['irzwL'](buildCliArtifactPath,_0x3c03b3,_0x11a789(0x122)),_0x319bad=buildCliArtifactPath(_0x3c03b3,_0x524edf['uLYKb']);return'You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x3491c6+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x12e6c6)+_0x11a789(0xdc)+_0x3491c6+'\x20session\x20create\x20'+quoteShellArg(_0x392e28)+'\x20'+_0x12e6c6+'`\x0a2.\x20Run\x20`'+_0x3491c6+_0x11a789(0x144)+quoteShellArg(_0x3225f9)+'\x20'+_0x12e6c6+'`\x0a3.\x20Run\x20`'+_0x3491c6+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x21f2d1)+'\x20'+_0x12e6c6+_0x11a789(0xd9)+_0x3491c6+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x3491c6+'\x20snapshot\x20--output\x20'+_0x524edf['ESyHN'](quoteShellArg,_0x14364b)+'\x20'+_0x12e6c6+'`\x0a6.\x20Run\x20`'+_0x3491c6+_0x11a789(0x186)+_0x524edf['ESyHN'](quoteShellArg,_0x319bad)+'\x20'+_0x12e6c6+_0x11a789(0xdd)+_0x3c03b3+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x407e5a){const _0x6b1fc5=_0x372294,_0x3c125a={'gzGTd':function(_0x1844c4,_0x2db3d3,_0x1f6db3){return _0x1844c4(_0x2db3d3,_0x1f6db3);},'ARAnE':function(_0x44501,_0x5b52cb){return _0x44501(_0x5b52cb);}},{checklistItem:_0x1d191b,itemFeedback:_0x2cb725,taskDescription:_0x4a054b,novaCommandPrefix:_0x5e396b,novaSharedOptionsSuffix:_0x5f5194,cliArtifactDir:_0x39352e,url:_0x109cf3,loginInstructions:_0x4bb0d2}=_0x407e5a,_0x21d8b7=_0x1d191b['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x1d191b[_0x6b1fc5(0xd0)]:'',_0x526d66=buildFeedbackSection(_0x2cb725),_0x152ffc=_0x2cb725?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x2cb725[_0x6b1fc5(0x177)]:'',_0x51dc7f=_0x4bb0d2?_0x6b1fc5(0x189)+_0x4bb0d2+_0x6b1fc5(0x165):'',_0x122ec9=_0x3c125a['gzGTd'](buildCliArtifactPath,_0x39352e,'01_initial.yml'),_0x5b365d=buildCliArtifactPath(_0x39352e,_0x6b1fc5(0xfe)),_0x307b20=_0x3c125a['gzGTd'](buildCliArtifactPath,_0x39352e,_0x6b1fc5(0x183));return _0x6b1fc5(0x143)+_0x1d191b[_0x6b1fc5(0x100)]+_0x21d8b7+_0x526d66+_0x152ffc+_0x6b1fc5(0x13d)+_0x4a054b+_0x6b1fc5(0xe3)+_0x109cf3+_0x6b1fc5(0xf1)+_0x51dc7f+'\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`'+_0x5e396b+'\x20session\x20create\x20'+quoteShellArg(_0x109cf3)+'\x20'+_0x5f5194+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x39352e+_0x6b1fc5(0xbe)+_0x5e396b+_0x6b1fc5(0x144)+quoteShellArg(_0x122ec9)+'\x20'+_0x5f5194+_0x6b1fc5(0xfc)+_0x5e396b+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x5b365d)+'\x20'+_0x5f5194+_0x6b1fc5(0x136)+_0x307b20+_0x6b1fc5(0x127)+_0x5e396b+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x5f5194[_0x6b1fc5(0x185)]()?'`'+_0x5f5194+'`':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`')+'\x0a\x0a'+_0x3c125a[_0x6b1fc5(0x16c)](buildNovaSharedOptionsInstruction,_0x5f5194)+'\x0a\x0aExamples:\x0a-\x20`'+_0x5e396b+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x5f5194+_0x6b1fc5(0x15c)+_0x5e396b+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x5f5194+_0x6b1fc5(0x15c)+_0x5e396b+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x122ec9)+'\x20'+_0x5f5194+_0x6b1fc5(0x15c)+_0x5e396b+_0x6b1fc5(0x186)+quoteShellArg(_0x307b20)+'\x20'+_0x5f5194+_0x6b1fc5(0x137);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x3418f6){const _0x25bbaa=_0x372294,_0x30e653={'JZddp':function(_0x1b88b4,_0x3b213){return _0x1b88b4===_0x3b213;}},_0x1e35ca=[..._0x3418f6[_0x25bbaa(0x146)]()][_0x25bbaa(0xbf)]();let _0x6e989b=0x0;for(const _0x31b7cf of _0x3418f6[_0x25bbaa(0x106)]()){_0x6e989b+=_0x31b7cf;}return{'cliCommandCount':_0x6e989b,'cliCommandsSeen':_0x1e35ca,'noCliCommandsCalled':_0x30e653['JZddp'](_0x6e989b,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x5c3eb4,_0x46e426){const _0x912171=_0x372294,_0x5e2a23={'HLsvI':function(_0x456420,_0x4d573d){return _0x456420!==_0x4d573d;},'sUNcC':function(_0x3fbbfe,_0x349add){return _0x3fbbfe(_0x349add);},'gJkES':function(_0x24b6b9,_0x4c1c6b){return _0x24b6b9!==_0x4c1c6b;},'ksJpA':_0x912171(0xb7),'KdLxE':function(_0x450d17,_0x3df197){return _0x450d17(_0x3df197);},'OelsK':_0x912171(0xe6),'DUZQx':function(_0x1fa518,_0x203f87){return _0x1fa518===_0x203f87;},'gabgx':'nova-act-cli','xfhdX':'PostToolUseFailure','syWlP':'nova_act_command_failure'},_0x28ed3c=new Map(),_0x146cbf=async _0x504727=>{const _0x4beb7a=_0x912171;if(_0x5e2a23[_0x4beb7a(0x12f)](_0x504727['hook_event_name'],'PreToolUse'))return{};const _0xaf3c19=_0x504727;if(_0xaf3c19[_0x4beb7a(0xd5)]!==_0x4beb7a(0x14b))return{};const _0x4ceaa0=_0xaf3c19['tool_input'],_0x2747c7=_0x5e2a23['sUNcC'](extractBashCommand,_0x4ceaa0);if(!_0x2747c7)return{};const _0x4ccd37=getNovaActCliCommandBlockReason(_0x2747c7);if(!_0x4ccd37)return{};return{'decision':'block','reason':_0x4ccd37};},_0x4b87c8=async _0x502210=>{const _0x2ece39=_0x912171;if(_0x5e2a23[_0x2ece39(0x17d)](_0x502210['hook_event_name'],_0x5e2a23['ksJpA']))return{};const _0x2d9fe0=_0x502210;if(_0x5e2a23['gJkES'](_0x2d9fe0['tool_name'],'Bash'))return{};const _0xd762cc=_0x2d9fe0['tool_input'],_0x44f0c6=_0x5e2a23['KdLxE'](extractBashCommand,_0xd762cc);if(!_0x44f0c6)return{};const _0x38f06a=_0x5e2a23['sUNcC'](parseNovaActCliCommand,_0x44f0c6);if(!_0x38f06a)return{};_0x28ed3c[_0x2ece39(0x110)](_0x38f06a,(_0x28ed3c[_0x2ece39(0x168)](_0x38f06a)||0x0)+0x1),_0x5c3eb4[_0x2ece39(0x149)]('nova_act_command',{'subcommand':_0x38f06a}),_0x5c3eb4['trackPhaseEnd'](_0x5e2a23['OelsK'],{'subcommand':_0x38f06a,'commandPreview':_0x5e2a23['KdLxE'](previewNovaActCliCommand,_0x44f0c6)}),console[_0x2ece39(0x11f)](_0x2ece39(0x107)+formatNovaActCliLog(_0x44f0c6,_0x38f06a));if(_0x5e2a23['DUZQx'](_0x38f06a,'session\x20create')&&_0x46e426)try{await _0x46e426['start']();}catch(_0x123bc3){await _0x5c3eb4['trackPhaseError']('nova_act_artifact_recording',_0x123bc3,{'transport':_0x5e2a23[_0x2ece39(0x118)]});}return{};},_0x56e6b9=async _0x39adb9=>{const _0x3ebeaf=_0x912171;if(_0x39adb9[_0x3ebeaf(0x11a)]!==_0x5e2a23[_0x3ebeaf(0x12a)])return{};const _0x49a2c9=_0x39adb9;if(_0x49a2c9[_0x3ebeaf(0xd5)]!=='Bash')return{};return await _0x5c3eb4[_0x3ebeaf(0x140)](_0x5e2a23['syWlP'],_0x49a2c9['error'],{'transport':_0x5e2a23['gabgx'],'toolName':_0x3ebeaf(0x14b)}),{};};return{'preToolUseHook':_0x146cbf,'postToolUseHook':_0x4b87c8,'postToolUseFailureHook':_0x56e6b9,'commandCounts':_0x28ed3c};}async function runNovaLifecycleCommand(_0x40d182){const _0x58e047=_0x372294,_0x37ad28={'NEOSl':function(_0x3ba654,_0x1cbb88){return _0x3ba654(_0x1cbb88);},'cJIzx':function(_0x5c6301,_0x273ef6){return _0x5c6301??_0x273ef6;}},{novaOptions:_0x19c833,commandArgs:_0x2ce5bf,telemetry:_0x5514c0,phase:_0x520eb5,metadata:_0x2434c3,timeoutMs:_0x1e9237}=_0x40d182;_0x5514c0[_0x58e047(0x149)](_0x520eb5,_0x2434c3);try{const _0x4a11b3=await _0x37ad28['NEOSl'](runNovaActCliCommand,{..._0x19c833,'commandArgs':_0x2ce5bf,'cwd':process[_0x58e047(0xfd)](),'env':process['env'],'timeoutMs':_0x37ad28[_0x58e047(0x11e)](_0x1e9237,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x5514c0[_0x58e047(0x169)](_0x520eb5,{..._0x2434c3,'subcommand':_0x4a11b3['invocation'][_0x58e047(0xd4)],'commandPreview':previewNovaActCliCommand(_0x4a11b3[_0x58e047(0x14a)]['shellCommand']),'stdoutPreview':_0x37ad28['NEOSl'](previewNovaActCliCommand,_0x4a11b3[_0x58e047(0x113)]),'stderrPreview':previewNovaActCliCommand(_0x4a11b3['stderr']),'logDir':_0x37ad28[_0x58e047(0x158)](extractNovaActLogDir,_0x4a11b3[_0x58e047(0x113)])});}catch(_0x3c2b36){await _0x5514c0[_0x58e047(0x140)](_0x520eb5,_0x3c2b36,_0x2434c3);throw _0x3c2b36;}}export async function finalizeVerifyFeatureNovaCliSession(_0x5b7844){const _0x4e2b48=_0x372294,_0x15ae40={'XxKcJ':'nova_act_final_screenshot','DiYHp':'--output','kqwYy':_0x4e2b48(0x172),'uIBRd':_0x4e2b48(0xe4),'tqNOo':'session','Klrli':function(_0x70cbcd,_0xa9b9d9,_0x3f258c){return _0x70cbcd(_0xa9b9d9,_0x3f258c);},'ShcXH':'nova_act_session_report','iCyFw':'--output-dir','dyPoE':_0x4e2b48(0x12d),'WXYeC':_0x4e2b48(0xf9),'AzwOP':function(_0x44b915,_0x277522){return _0x44b915===_0x277522;},'xnsOD':'nova_act_session_close','fudZq':function(_0x36aa43,_0x40a195){return _0x36aa43(_0x40a195);}},{telemetry:_0x555a43,novaOptions:_0x455822,cliArtifactDir:_0x474f75,transportMetadata:_0x31d3f5,artifactRecorder:_0x5a9fff}=_0x5b7844,_0x35b153=[{'phase':_0x15ae40[_0x4e2b48(0xc8)],'commandArgs':['screenshot',_0x4e2b48(0x145),buildCliArtifactPath(_0x474f75,'key_final-state.png')]},{'phase':'nova_act_final_snapshot','commandArgs':['snapshot',_0x15ae40['DiYHp'],buildCliArtifactPath(_0x474f75,_0x15ae40['kqwYy'])]},{'phase':_0x15ae40['uIBRd'],'commandArgs':[_0x15ae40[_0x4e2b48(0xfa)],'export',_0x4e2b48(0x173),_0x4e2b48(0xc3),'--output',_0x15ae40[_0x4e2b48(0xdf)](buildCliArtifactPath,_0x474f75,_0x4e2b48(0x16a))]},{'phase':_0x15ae40[_0x4e2b48(0xe9)],'commandArgs':[_0x15ae40['tqNOo'],'export',_0x4e2b48(0x16b),_0x15ae40[_0x4e2b48(0x170)],_0x15ae40[_0x4e2b48(0xdf)](buildCliArtifactPath,_0x474f75,_0x15ae40['dyPoE'])]},{'phase':_0x4e2b48(0x153),'commandArgs':['session',_0x15ae40[_0x4e2b48(0x171)]]}];for(const _0x10c3cf of _0x35b153){_0x15ae40[_0x4e2b48(0x14f)](_0x10c3cf[_0x4e2b48(0x11d)],_0x15ae40[_0x4e2b48(0xaf)])&&await _0x5a9fff?.['stop']();try{await _0x15ae40[_0x4e2b48(0x176)](runNovaLifecycleCommand,{'novaOptions':_0x455822,'commandArgs':[..._0x10c3cf[_0x4e2b48(0x10c)]],'telemetry':_0x555a43,'phase':_0x10c3cf['phase'],'metadata':_0x31d3f5});}catch{}}}function _0x4889(){const _0x403ec8=['IITuF','ffmpeg',']\x20**','commandArgs','tzpBo','mtimeMs','session\x20create','set','97795POgMJS','captureTraceSample','stdout','-qr','videos','-\x20[','Hddtl','gabgx','mPKab','hook_event_name','.act_cli','ask','phase','cJIzx','log','00_initial-state.yml','from','02_final-state.yml','verify','numeric','zip','irzwL','`.\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`','base64','ilefm','xfhdX','locator','Caches','nova-report','session-recording.webm','HLsvI','ms-playwright','JmNsI','.json','novaOptions','telemetry','-c:v','`.\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`','`\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.','screencastStarted','createdAt','ffmpeg.exe','xwhwh','capture\x20snapshot\x20`','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','goto','oabuG','trackPhaseError','filter','send','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','\x20snapshot\x20--output\x20','--output','keys','DoHaX','frameSession','trackPhaseStart','invocation','Bash','getFrameDir','content','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','AzwOP','replace','289458ttJaQD','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','nova_act_session_close','Library','3184884AUBPUG','30XjpnxF','413XIMktX','NEOSl','1537791lCIvmh','-version','startTraceSampling','`\x0a-\x20`','data','LIyOL','aNcZm','yuv420p','transportMetadata','args','JlGcO','nova-video-frames','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','**\x20(','>\x20\x22','get','trackPhaseEnd','nova-session-export.json','--report','ARAnE','newCDPSession','sRZTB','Page.screencastFrame','iCyFw','WXYeC','final-state.yaml','--format','stopScreencast','authorName','fudZq','canonicalFlow','GgaPv','queueTraceSample','DCVmm','Reviewer','startAttempted','gJkES','traceSampleCount','execute','context','readSessionMetadataWithRetry','shellCommand','key_03_success-state.png','isFile','trim','\x20screenshot\x20--output\x20','textContent','browser_pid','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','1571892cSblsW','sessionId','nEPxY','xnsOD','traceSampleTimer','parse','-framerate','start','IMgbO','length','push','PostToolUse','execute\x20Nova\x20browser\x20action','match','stop','authorEmail','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','stopped','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','sort','pages','fFIYG','wait-for','json','padStart','finally','EaYec','wQKUV','XxKcJ','182132isLWNP','state','\x20(on\x20element:\x20<','lfuuX','nova-artifacts.zip','test','wait\x20for\x20page\x20condition','notes','ZkWyu','contexts','uPufA','subcommand','tool_name','ffmpeg-linux','tracing','GjBqS','`\x0a4.\x20Run\x20one\x20batched\x20`','cliArtifactDir','WvwCi','\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`','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','capture\x20screenshot','Klrli','toLocaleDateString','YyADr','capture\x20step\x20`','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','nova_act_session_export','scale=trunc(iw/2)*2:trunc(ih/2)*2','nova_act_command','-loglevel','eEiZT','ShcXH','export\x20Nova\x20session','now','trace.zip','nova_act_artifact_recording_stop','frameWrites','browser','76PBKDnp','\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','wIMQT','sessions','catch','nAgua','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','XkgvV','cahUS','close','tqNOo','stopTraceSampling','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','cwd','01_initial-state.png','-pix_fmt','description','jpeg','params','frameCount','Page.stopScreencast','69672DCKiqZ','values','[nova-act-cli]\x20','CyQOo'];_0x4889=function(){return _0x403ec8;};return _0x4889();}export async function harvestVerifyFeatureNovaCliArtifacts(_0x1dd054){const _0x51e51a=_0x372294,_0x31b099={'ZkWyu':function(_0x2709f9,_0x34f558,_0x4c2f84){return _0x2709f9(_0x34f558,_0x4c2f84);},'oyfhj':function(_0x215e9b,_0x34d972){return _0x215e9b(_0x34d972);},'KSfei':function(_0x4fe034,_0x40b77c){return _0x4fe034<_0x40b77c;},'iFShN':function(_0x25d06a,_0x1d180f){return _0x25d06a+_0x1d180f;},'mPKab':function(_0x534b06,_0x52ea09){return _0x534b06===_0x52ea09;}},{cwd:_0x3da5c2,cliArtifactDir:_0x323a94,startTime:_0x434cff}=_0x1dd054,_0x524625=[];await _0x31b099['ZkWyu'](mkdir,_0x323a94,{'recursive':!![]});const _0x423ace=await readdir(_0x3da5c2,{'withFileTypes':!![]});for(const _0x180293 of _0x423ace){if(!_0x180293[_0x51e51a(0x184)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x51e51a(0xce)](_0x180293['name']))continue;const _0x4ba257=_0x31b099[_0x51e51a(0xd1)](join,_0x3da5c2,_0x180293['name']),_0x2a8b87=await _0x31b099['oyfhj'](stat,_0x4ba257);if(_0x31b099['KSfei'](_0x31b099['iFShN'](_0x2a8b87[_0x51e51a(0x10e)],0x7d0),_0x434cff))continue;const _0x5f216f=buildCliArtifactPath(_0x323a94,_0x180293['name']);if(_0x31b099[_0x51e51a(0x119)](_0x4ba257,_0x5f216f))continue;await rename(_0x4ba257,_0x5f216f),_0x524625['push'](_0x180293['name']);}return _0x524625[_0x51e51a(0xbf)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x34d2f5){const _0x2ccacf=_0x372294,_0x579a01=join(_0x34d2f5,_0x2ccacf(0xec));try{return{'buffer':await readFile(_0x579a01),'source':_0x579a01};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x34d2f5),'source':_0x34d2f5};}}async function zipVerifyFeatureNovaArtifacts(_0x33c8e0){const _0x292a72=_0x372294,_0x3b5a89={'vSmpF':_0x292a72(0x125),'UbuTM':function(_0x426f0d,_0x666620){return _0x426f0d(_0x666620);}},_0x5bcb96=join(_0x33c8e0,'..',_0x292a72(0xcd));try{return await execFileAsync(_0x3b5a89['vSmpF'],[_0x292a72(0x114),_0x5bcb96,'.','-x','nova-user-data/*'],{'cwd':_0x33c8e0}),await _0x3b5a89['UbuTM'](readFile,_0x5bcb96);}finally{await rm(_0x5bcb96,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x438552){const _0x2fd3c7=_0x372294,_0x581ec6={'WvwCi':function(_0x53f477,_0x1a0aa8,_0xf8a733){return _0x53f477(_0x1a0aa8,_0xf8a733);}},_0x4a1400=_0x581ec6[_0x2fd3c7(0xdb)](buildNovaActCliInvocation,_0x438552[_0x2fd3c7(0x133)],_0x438552['commandArgs']);return{'command':_0x4a1400['command'],'args':_0x4a1400[_0x2fd3c7(0x162)],'commandPreview':previewNovaActCliCommand(_0x4a1400[_0x2fd3c7(0x182)]),'subcommand':_0x4a1400[_0x2fd3c7(0xd4)],'sharedOptionsSuffix':_0x581ec6['WvwCi'](buildNovaActCliSharedOptionsSuffix,_0x438552[_0x2fd3c7(0x133)],_0x438552['commandArgs'])};}
@@ -0,0 +1 @@
1
+ (function(_0x508dd0,_0x4da841){const _0x104deb=_0x4522,_0x278e7b=_0x508dd0();while(!![]){try{const _0x2aed14=-parseInt(_0x104deb(0xf4))/0x1*(parseInt(_0x104deb(0xa6))/0x2)+-parseInt(_0x104deb(0xe7))/0x3*(-parseInt(_0x104deb(0xad))/0x4)+parseInt(_0x104deb(0xe1))/0x5*(parseInt(_0x104deb(0xdb))/0x6)+-parseInt(_0x104deb(0xec))/0x7+parseInt(_0x104deb(0xca))/0x8+-parseInt(_0x104deb(0xd7))/0x9+parseInt(_0x104deb(0xf7))/0xa*(parseInt(_0x104deb(0xe5))/0xb);if(_0x2aed14===_0x4da841)break;else _0x278e7b['push'](_0x278e7b['shift']());}catch(_0x57005c){_0x278e7b['push'](_0x278e7b['shift']());}}}(_0x4db7,0x9aa0c));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';function _0x4db7(){const _0xc6318=['32847bBozPb','KvUsI','fill\x20','mTGFU','PostToolUse','425936PnhNzf','rangerwright_cli_command_failure','numeric','length','open\x20and\x20inspect\x20','authorName','trackPhaseStart','trackPhaseError','1248151wOOVHd','\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.','pop','1840UZgwhM','close','JiHNl','stringify','trackPhaseEnd','AMvyH','TSQLa','2UbKdJY','...','lRnlw','textContent','stderr','vlmUG','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','4yrtgYH','inspect\x20page','element','cwd','):\x20\x22','XqSco','selector','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','Reviewer','01_initial-state.png','createdAt','khdPj','NMzhn','rangerwright-cli','replace','TLNZM','open\x20and\x20inspect','target','\x20--screenshot-path\x20','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','split','log','slice','back-and-inspect','\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','set','tool_name','inspect','unaddressedComments','5183832ATfJFY','click-and-inspect','go\x20back\x20and\x20inspect','video-stop','domRef','HhZCS','hook_event_name','stdout','kntUO','fill-and-inspect','LiAVC','>\x20\x22','[rangerwright-cli]\x20','10709136eiTQjX','01_mozilla-homepage.png','agCDc','\x20>\x20','114PcXnXy','AzzZB','\x5c$&','nFtBg','phase','toLocaleDateString','167005pZbUGc','tool_input','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','subcommand','109923VsFbaF','invocation'];_0x4db7=function(){return _0xc6318;};return _0x4db7();}import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x13a07d,_0x1886cf=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x287069=_0x4522,_0x9052={'XqSco':function(_0x3a546f,_0x81af4e){return _0x3a546f>_0x81af4e;},'JEBxo':_0x287069(0xa7)};return _0x9052[_0x287069(0xb2)](_0x13a07d[_0x287069(0xef)],_0x1886cf)?_0x13a07d['slice'](0x0,_0x1886cf)+_0x9052['JEBxo']:_0x13a07d;}function extractShellValue(_0x2645a7){if(!_0x2645a7)return null;return _0x2645a7[0x1]??_0x2645a7[0x2]??_0x2645a7[0x3]??null;}function extractFirstCommandArgument(_0x33307e,_0x311d75){const _0x2d6304=_0x4522,_0x568120={'AMvyH':_0x2d6304(0xdd),'AzzZB':function(_0x12e441,_0x2d0140){return _0x12e441(_0x2d0140);}},_0x3a27de=_0x311d75[_0x2d6304(0xbb)](/[.*+?^${}()|[\]\\]/g,_0x568120[_0x2d6304(0xa4)]);return _0x568120[_0x2d6304(0xdc)](extractShellValue,_0x33307e['match'](new RegExp('(?:^|\x5cs)'+_0x3a27de+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x390667){const _0x18846b=_0x4522;if(!_0x390667)return _0x18846b(0xbe);if(/^e\d+$/i['test'](_0x390667))return'ref\x20'+_0x390667;return JSON[_0x18846b(0xa2)](truncatePreview(_0x390667,0x78));}function formatRangerwrightCliLog(_0x3a0936,_0x28742d){const _0x5ae985=_0x4522,_0x1a1693={'nFtBg':'open-and-inspect','lRnlw':function(_0x50910c,_0x1e6451,_0x163d5d){return _0x50910c(_0x1e6451,_0x163d5d);},'OAloe':_0x5ae985(0xcb),'UFXHB':function(_0x65904f,_0x11f2b6){return _0x65904f(_0x11f2b6);},'IXlPU':_0x5ae985(0xd3),'HhZCS':_0x5ae985(0xae),'gWncy':'tracing-stop'};switch(_0x28742d){case _0x1a1693[_0x5ae985(0xde)]:{const _0x2554ee=_0x1a1693[_0x5ae985(0xa8)](extractFirstCommandArgument,_0x3a0936,_0x28742d);return _0x2554ee?_0x5ae985(0xf0)+_0x2554ee:_0x5ae985(0xbd);}case _0x1a1693['OAloe']:return'click\x20and\x20inspect\x20'+_0x1a1693['UFXHB'](formatCommandTarget,extractFirstCommandArgument(_0x3a0936,_0x28742d));case'fill':case _0x1a1693['IXlPU']:return _0x5ae985(0xe9)+formatCommandTarget(_0x1a1693[_0x5ae985(0xa8)](extractFirstCommandArgument,_0x3a0936,_0x28742d));case _0x5ae985(0xc4):return _0x5ae985(0xcc);case _0x5ae985(0xc8):return _0x1a1693[_0x5ae985(0xcf)];case _0x1a1693['gWncy']:return'stop\x20tracing';case'video-stop':return'stop\x20video\x20recording';case _0x5ae985(0xa0):return'close\x20browser\x20session';default:return _0x28742d;}}function renderScenarioSections(_0x482b4f){const _0x31ea56=_0x4522,_0x41d809={'kntUO':_0x31ea56(0xda),'UynBF':function(_0x1d3fa5,_0x3882f0){return _0x1d3fa5>_0x3882f0;}},{checklistItem:_0x1424f7,itemFeedback:_0xb3e152}=_0x482b4f,_0x44a309=_0x1424f7['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x1424f7['notes']:'';let _0x3b2b0f='';if(_0xb3e152&&_0x41d809['UynBF'](_0xb3e152[_0x31ea56(0xc9)]['length'],0x0)){const _0x5d8555=_0xb3e152[_0x31ea56(0xc9)]['map'](_0x4a1333=>{const _0x469b7c=_0x31ea56,_0x17d792=new Date(_0x4a1333[_0x469b7c(0xb7)])[_0x469b7c(0xe0)]('en-US',{'month':'short','day':_0x469b7c(0xee)}),_0x4a58c6=_0x4a1333[_0x469b7c(0xf1)]||_0x4a1333['authorEmail']||_0x469b7c(0xb5),_0x5f1e70=_0x4a1333['domRef']?'\x20(on\x20element:\x20<'+(_0x4a1333[_0x469b7c(0xce)][_0x469b7c(0xb3)][_0x469b7c(0xc1)](_0x41d809[_0x469b7c(0xd2)])[_0x469b7c(0xf6)]()?.[_0x469b7c(0xc1)](':')[0x0]||_0x469b7c(0xaf))+_0x469b7c(0xd5)+(_0x4a1333[_0x469b7c(0xce)][_0x469b7c(0xa9)]||'')[_0x469b7c(0xc3)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x4a1333['id']+']\x20'+_0x4a58c6+'\x20('+_0x17d792+_0x469b7c(0xb1)+_0x4a1333['content']+'\x22'+_0x5f1e70;})['join']('\x0a');_0x3b2b0f='\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'+_0x5d8555;}const _0x1a7ea7=_0xb3e152?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0xb3e152['canonicalFlow']:'';return''+_0x1424f7['description']+_0x44a309+_0x3b2b0f+_0x1a7ea7;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x14cfd4){const _0x4bb5b1=_0x4522,_0x52ce9d={'KvUsI':_0x4bb5b1(0xb6),'qwSiC':'key_99_final-state.png','LiAVC':function(_0x307749,_0xb3fe53){return _0x307749(_0xb3fe53);},'joHeE':function(_0x1fa80d,_0x21d709){return _0x1fa80d??_0x21d709;},'NMzhn':'about:blank'},{checklistItem:_0x22a9e9,itemFeedback:_0x4d1275,taskDescription:_0x45f8d5,commandPrefix:_0x537a6f,isCdpMode:_0x571b62,url:_0x4f3708,cdpEndpoint:_0xe0e327,loginInstructions:_0x17abf7}=_0x14cfd4,_0x5c8cf6=_0x52ce9d[_0x4bb5b1(0xe8)],_0x2eef79=_0x52ce9d['qwSiC'],_0x2c23aa=_0x571b62?_0x537a6f+'\x20inspect\x20--screenshot-path\x20'+_0x52ce9d[_0x4bb5b1(0xd4)](quoteShellArg,_0x5c8cf6):_0x537a6f+'\x20open-and-inspect\x20'+quoteShellArg(_0x52ce9d['joHeE'](_0x4f3708,_0x52ce9d[_0x4bb5b1(0xb9)]))+_0x4bb5b1(0xbf)+quoteShellArg(_0x5c8cf6),_0x4f1f44=_0x571b62?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0xe0e327+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':_0x4bb5b1(0xc0)+_0x4f3708+_0x4bb5b1(0xf5),_0x225de6=_0x17abf7?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x17abf7+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+renderScenarioSections({'checklistItem':_0x22a9e9,'itemFeedback':_0x4d1275})+_0x4bb5b1(0xac)+_0x45f8d5+'\x0a\x0a'+_0x4f1f44+_0x225de6+_0x4bb5b1(0xe3)+_0x537a6f+_0x4bb5b1(0xc5)+_0x2c23aa+'\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'+_0x537a6f+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0x2eef79)+'\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(_0x682a5a){const _0x119168=_0x4522,_0x18f1ed={'Guwth':function(_0x289f5c,_0x5d3c71){return _0x289f5c(_0x5d3c71);}},_0x37d4d4=_0x119168(0xd8),_0x55857e='key_02_learn-more.png';return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x20Every\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x682a5a['commandPrefix']+'\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x0a\x0a1.\x20Run\x20`'+_0x682a5a['commandPrefix']+'\x20open-and-inspect\x20'+_0x18f1ed['Guwth'](quoteShellArg,_0x682a5a['url'])+_0x119168(0xbf)+quoteShellArg(_0x37d4d4)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x682a5a['commandPrefix']+'\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20'+quoteShellArg(_0x55857e)+_0x119168(0xb4);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x4e8c36){const _0x56ce52=[..._0x4e8c36['keys']()]['sort']();let _0x3d2bcf=0x0;for(const _0x2965f6 of _0x4e8c36['values']()){_0x3d2bcf+=_0x2965f6;}return{'cliCommandCount':_0x3d2bcf,'cliCommandsSeen':_0x56ce52,'noCliCommandsCalled':_0x3d2bcf===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0x142714){const _0x4e56d8={'TSQLa':function(_0x1a9d5c,_0x56f560){return _0x1a9d5c!==_0x56f560;},'DmkKQ':function(_0x45c359,_0x275220){return _0x45c359!==_0x275220;},'dHewP':'Bash','MVYes':function(_0x5689e4,_0x23c421){return _0x5689e4(_0x23c421);},'Gooul':function(_0x493661,_0x34859c,_0x9b3782){return _0x493661(_0x34859c,_0x9b3782);},'mTGFU':function(_0x229e66,_0x541517){return _0x229e66!==_0x541517;},'TLNZM':'PostToolUseFailure'},_0x3b9892=new Map(),_0x35406f=async _0x348d53=>{const _0x190a4a=_0x4522;if(_0x4e56d8[_0x190a4a(0xa5)](_0x348d53[_0x190a4a(0xd0)],_0x190a4a(0xeb)))return{};const _0x406c7f=_0x348d53;if(_0x4e56d8['DmkKQ'](_0x406c7f['tool_name'],_0x4e56d8['dHewP']))return{};const _0x2e2a59=_0x406c7f[_0x190a4a(0xe2)],_0x4d1df2=extractBashCommand(_0x2e2a59);if(!_0x4d1df2)return{};const _0x45976f=parseRangerwrightCliCommand(_0x4d1df2);if(!_0x45976f)return{};return _0x3b9892[_0x190a4a(0xc6)](_0x45976f,(_0x3b9892['get'](_0x45976f)||0x0)+0x1),_0x142714[_0x190a4a(0xf2)]('rangerwright_cli_command',{'subcommand':_0x45976f}),_0x142714['trackPhaseEnd']('rangerwright_cli_command',{'subcommand':_0x45976f,'commandPreview':_0x4e56d8['MVYes'](truncatePreview,_0x4d1df2)}),console[_0x190a4a(0xc2)](_0x190a4a(0xd6)+_0x4e56d8['Gooul'](formatRangerwrightCliLog,_0x4d1df2,_0x45976f)),{};},_0x40869a=async _0x213c01=>{const _0x3b3ae6=_0x4522;if(_0x4e56d8[_0x3b3ae6(0xea)](_0x213c01['hook_event_name'],_0x4e56d8[_0x3b3ae6(0xbc)]))return{};const _0xc31895=_0x213c01;if(_0xc31895[_0x3b3ae6(0xc7)]!=='Bash')return{};return await _0x142714[_0x3b3ae6(0xf3)](_0x3b3ae6(0xed),_0xc31895['error'],{'transport':_0x3b3ae6(0xba),'toolName':_0x4e56d8['dHewP']}),{};};return{'postToolUseHook':_0x35406f,'postToolUseFailureHook':_0x40869a,'commandCounts':_0x3b9892};}async function runRangerwrightLifecycleCommand(_0x46d415){const _0x39c9c7=_0x4522,_0x277510={'ktRFv':function(_0x48afe1,_0x5ebd84){return _0x48afe1??_0x5ebd84;},'vlmUG':function(_0x1ce070,_0x2611be,_0x27bdef){return _0x1ce070(_0x2611be,_0x27bdef);}},{options:_0x14d964,commandArgs:_0x52dda2,env:_0x30e001,telemetry:_0x362d0b,phase:_0x20144e,metadata:_0x415e09,timeoutMs:_0x46b117}=_0x46d415;_0x362d0b['trackPhaseStart'](_0x20144e,_0x415e09);try{const _0x4d32d4=await runRangerwrightCliCommand({..._0x14d964,'commandArgs':_0x52dda2,'cwd':process[_0x39c9c7(0xb0)](),'env':_0x30e001,'timeoutMs':_0x277510['ktRFv'](_0x46b117,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x362d0b[_0x39c9c7(0xa3)](_0x20144e,{..._0x415e09,'subcommand':_0x4d32d4[_0x39c9c7(0xe6)][_0x39c9c7(0xe4)],'stdoutPreview':_0x277510[_0x39c9c7(0xab)](truncatePreview,_0x4d32d4[_0x39c9c7(0xd1)],0x7d0),'stderrPreview':truncatePreview(_0x4d32d4[_0x39c9c7(0xaa)],0x7d0)});}catch(_0xd49113){await _0x362d0b[_0x39c9c7(0xf3)](_0x20144e,_0xd49113,_0x415e09);throw _0xd49113;}}function _0x4522(_0x33fdca,_0x44211f){_0x33fdca=_0x33fdca-0xa0;const _0x4db744=_0x4db7();let _0x452243=_0x4db744[_0x33fdca];return _0x452243;}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x294b85){const _0x5d5f80=_0x4522,_0x5d7c21={'CTJij':'tracing-stop','gpIPd':_0x5d5f80(0xcd),'JiHNl':'rangerwright_cli_close','khdPj':_0x5d5f80(0xa0),'agCDc':function(_0x8a0dea,_0x3c44cd){return _0x8a0dea(_0x3c44cd);}},{telemetry:_0x46b586,rangerwrightOptions:_0x189d54,env:_0x112b27,transportMetadata:_0x4db524}=_0x294b85,_0x37eed9=[{'phase':'rangerwright_cli_tracing_stop','commandArgs':[_0x5d7c21['CTJij']]},{'phase':'rangerwright_cli_video_stop','commandArgs':[_0x5d7c21['gpIPd']]},{'phase':_0x5d7c21[_0x5d5f80(0xa1)],'commandArgs':[_0x5d7c21[_0x5d5f80(0xb8)]]}];for(const _0x329d2b of _0x37eed9){try{await _0x5d7c21[_0x5d5f80(0xd9)](runRangerwrightLifecycleCommand,{'options':_0x189d54,'commandArgs':[..._0x329d2b['commandArgs']],'env':_0x112b27,'telemetry':_0x46b586,'phase':_0x329d2b[_0x5d5f80(0xdf)],'metadata':_0x4db524});}catch{}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "3.0.1-alpha.d9f4572-27",
3
+ "version": "3.0.1-alpha.ebe0997-35",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",
@@ -22,6 +22,7 @@
22
22
  "dependencies": {
23
23
  "@anthropic-ai/claude-agent-sdk": "^0.1.0",
24
24
  "@playwright/cli": "0.1.1",
25
+ "@ranger-testing/rangerwright": "^0.0.27",
25
26
  "dotenv": "^16.4.5",
26
27
  "inquirer": "^9.2.12",
27
28
  "playwright": "^1.57.0",
@@ -41,7 +42,7 @@
41
42
  },
42
43
  "overrides": {
43
44
  "minimatch": "^10.2.3",
44
- "brace-expansion": "^5.0.5",
45
+ "brace-expansion": "^5.0.6",
45
46
  "fast-uri": "3.1.2"
46
47
  }
47
48
  }