@ranger-testing/ranger-cli 3.1.7-alpha.62f152a-54 → 3.1.7-alpha.9ed0a8d-59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +2 -5
@@ -1 +1 @@
1
- (function(_0x4d2435,_0x1b6024){const _0x24a2c1=_0x50bc,_0x9871f9=_0x4d2435();while(!![]){try{const _0x291cb1=parseInt(_0x24a2c1(0x10c))/0x1*(parseInt(_0x24a2c1(0x122))/0x2)+parseInt(_0x24a2c1(0x126))/0x3+parseInt(_0x24a2c1(0xf1))/0x4+-parseInt(_0x24a2c1(0xf8))/0x5+-parseInt(_0x24a2c1(0x145))/0x6+-parseInt(_0x24a2c1(0x108))/0x7+parseInt(_0x24a2c1(0xdf))/0x8*(parseInt(_0x24a2c1(0x150))/0x9);if(_0x291cb1===_0x1b6024)break;else _0x9871f9['push'](_0x9871f9['shift']());}catch(_0x3e08d6){_0x9871f9['push'](_0x9871f9['shift']());}}}(_0x2932,0x33261));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';function _0x2932(){const _0xca93ef=['log','short','kaMRn','\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.','TrKxH','subcommand','2902416IICFYb','capture\x20snapshot\x20`','XJiyg','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','Rdcol','Reviewer','trackPhaseError','\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',']\x20**','playwright_cli_tracing_stop','cwd','03_result-visible.png','set','Bash','stop\x20tracing','check','en-US','TDakC','360884YOzDBb','replace','capture\x20snapshot','...','test','qJxiZ','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','253715ehntIk','-\x20[','ioSaC','aUhGz','trace.zip','fill','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','\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','HPPxK','createdAt','01_initial-state.png','start\x20video\x20recording','split','tool_name','phase','2314613NORrbb','kpEGh','PostToolUse','uZehJ','1XKrahZ','\x5c$&','isFile','[ranger-verification-agent]\x20','dbpwF','content','`\x0a9.\x20Run\x20`','\x20snapshot\x20--filename\x20','tool_call','\x20tracing-start`\x0a3.\x20Run\x20`','\x20screenshot\x20--filename\x20','\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.','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','\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','pQJKD','bjgRd','>\x20\x22','[playwright-cli]\x20','(?:^|\x5cs)','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','fill\x20','463530LEXiII','cBlko','--filename=','playwright-cli','551817DsPnrM','\x20tracing-start`,\x20then\x20`','`:\x20\x22','mtimeMs','tracing-start','llbrM','authorName','03_learn-more.png','snapshot','tab-new','tab-select','domRef','Dxlld','trackPhaseEnd','HzyDj','name','01_mozilla-homepage.png','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','unaddressedComments','open','invocation','HQJMM','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','NjvlN','SHVNa','\x20(on\x20element:\x20<','RkLhG','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','BoFtX','video-stop','stop\x20video\x20recording','1666920kBwGTy','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','EQUdh','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','tracing-stop','\x22,\x20\x22','\x0a\x0a1.\x20Run\x20`','ChtwW','`\x0a-\x20`snapshot\x20--filename\x20','length','string','9fTWKCM','description','\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.','commandArgs','open\x20','RWcix','lWpNl','click\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','dyNWf','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','PostToolUseFailure','bODkm','02_button-clicked.png','hook_event_name','numeric','LWlct','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','trim','target','`\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`'];_0x2932=function(){return _0xca93ef;};return _0x2932();}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(_0x4a4930,_0x42c155=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x3526af=_0x50bc;return _0x4a4930[_0x3526af(0x14e)]>_0x42c155?_0x4a4930['slice'](0x0,_0x42c155)+_0x3526af(0xf4):_0x4a4930;}function buildCliArtifactPath(_0xcb2a0a,_0x133b06){return join(_0xcb2a0a,_0x133b06);}function toStepDisplayName(_0x4c2679){const _0x488f36=_0x50bc,_0x48fce6={'UfiVm':function(_0x3a9287,_0x501a86){return _0x3a9287(_0x501a86);}},_0x2c2fdc=_0x48fce6['UfiVm'](basename,_0x4c2679)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x488f36(0xf2)](/^\d+_/,'')[_0x488f36(0xf2)](/-/g,'\x20');return{'name':_0x2c2fdc,'isKeyStep':/^key_/i['test'](basename(_0x4c2679))};}function extractShellValue(_0x5b436d){if(!_0x5b436d)return null;return _0x5b436d[0x1]??_0x5b436d[0x2]??_0x5b436d[0x3]??null;}function extractFilenameOption(_0x113e6f){const _0x55d0c9=_0x50bc,_0x1b1d4f={'Rdcol':function(_0x5e5524,_0x496e91){return _0x5e5524(_0x496e91);}};return _0x1b1d4f[_0x55d0c9(0xe3)](extractShellValue,_0x113e6f['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x56b637,_0x26c7ff){const _0x3f2bc1=_0x50bc,_0x2e8531={'FgwlJ':_0x3f2bc1(0x10d),'tenXg':function(_0xd67e76,_0x5b22b9){return _0xd67e76(_0x5b22b9);}},_0x31bd5e=_0x26c7ff['replace'](/[.*+?^${}()|[\]\\]/g,_0x2e8531['FgwlJ']);return _0x2e8531['tenXg'](extractShellValue,_0x56b637['match'](new RegExp(_0x3f2bc1(0x11e)+_0x31bd5e+_0x3f2bc1(0x13c))));}function formatCommandTarget(_0x29f193){const _0x292843=_0x50bc,_0x460491={'HPPxK':function(_0x43b3cf,_0x355305,_0x257447){return _0x43b3cf(_0x355305,_0x257447);}};if(!_0x29f193)return _0x292843(0xd7);if(/^e\d+$/i['test'](_0x29f193))return'ref\x20'+_0x29f193;return JSON['stringify'](_0x460491[_0x292843(0x101)](truncatePreview,_0x29f193,0x78));}function formatPlaywrightCliLog(_0x10fa64,_0x500a6f){const _0xf4bff2=_0x50bc,_0x242f37={'BoFtX':_0xf4bff2(0x139),'AIuRG':function(_0x1f1675,_0x55ff03,_0x129940){return _0x1f1675(_0x55ff03,_0x129940);},'eqXAz':_0xf4bff2(0x12a),'pxnAt':'start\x20tracing','SHVNa':'tracing-stop','dbpwF':_0xf4bff2(0xed),'HzyDj':_0xf4bff2(0x104),'lWpNl':_0xf4bff2(0x143),'LWlct':function(_0x480a3b,_0x29c588){return _0x480a3b(_0x29c588);},'ydQvI':_0xf4bff2(0xf3),'saVkW':'screenshot','yCgni':function(_0x489c7e,_0x468b95){return _0x489c7e(_0x468b95);},'kpEGh':'click','UrsgO':function(_0x254142,_0x1cc856){return _0x254142(_0x1cc856);},'EPswE':_0xf4bff2(0xee),'JOHWo':_0xf4bff2(0xfd),'kaMRn':_0xf4bff2(0x12f),'dxMVB':function(_0x4455ec,_0x13d43f,_0x364fe4){return _0x4455ec(_0x13d43f,_0x364fe4);},'RWcix':'open\x20new\x20tab'};switch(_0x500a6f){case _0x242f37[_0xf4bff2(0x142)]:{const _0x4ee3a8=_0x242f37['AIuRG'](extractFirstCommandArgument,_0x10fa64,_0x500a6f);return _0x4ee3a8?_0xf4bff2(0xc8)+_0x4ee3a8:'open\x20browser';}case _0x242f37['eqXAz']:return _0x242f37['pxnAt'];case _0x242f37[_0xf4bff2(0x13e)]:return _0x242f37[_0xf4bff2(0x110)];case'video-start':return _0x242f37[_0xf4bff2(0x134)];case _0x242f37[_0xf4bff2(0xca)]:return _0xf4bff2(0x144);case'snapshot':{const _0x41ff70=_0x242f37['LWlct'](extractFilenameOption,_0x10fa64);if(!_0x41ff70)return _0x242f37['ydQvI'];const {name:_0x4e57dc}=_0x242f37[_0xf4bff2(0xd4)](toStepDisplayName,_0x41ff70);return _0xf4bff2(0xe0)+_0x4e57dc+'`';}case _0x242f37['saVkW']:{const _0x3a0b1f=_0x242f37[_0xf4bff2(0xd4)](extractFilenameOption,_0x10fa64);if(!_0x3a0b1f)return'capture\x20screenshot';const {name:_0x2bb0a4,isKeyStep:_0x417b9d}=_0x242f37['yCgni'](toStepDisplayName,_0x3a0b1f);return _0x417b9d?'capture\x20key\x20step\x20`'+_0x2bb0a4+'`':'capture\x20step\x20`'+_0x2bb0a4+'`';}case _0x242f37[_0xf4bff2(0x109)]:return _0xf4bff2(0xcb)+_0x242f37['UrsgO'](formatCommandTarget,extractFirstCommandArgument(_0x10fa64,_0x500a6f));case _0x242f37['EPswE']:return'check\x20'+_0x242f37['LWlct'](formatCommandTarget,extractFirstCommandArgument(_0x10fa64,_0x500a6f));case _0x242f37['JOHWo']:return _0xf4bff2(0x121)+formatCommandTarget(extractFirstCommandArgument(_0x10fa64,_0x500a6f));case'press':return'press\x20'+formatCommandTarget(extractFirstCommandArgument(_0x10fa64,_0x500a6f));case'run-code':return'run\x20custom\x20Playwright\x20code';case _0x242f37[_0xf4bff2(0xdb)]:{const _0x40c698=_0x242f37['dxMVB'](extractFirstCommandArgument,_0x10fa64,_0x500a6f);return _0x40c698?'open\x20new\x20tab\x20'+_0x40c698:_0x242f37[_0xf4bff2(0xc9)];}case _0xf4bff2(0x130):{const _0xaedf10=extractFirstCommandArgument(_0x10fa64,_0x500a6f);return _0xaedf10?'select\x20tab\x20'+_0xaedf10:'select\x20tab';}default:return _0x500a6f;}}function extractPlaywrightCliToolDescription(_0x4a7a9c){const _0x384a9d=_0x50bc,_0x44b31a={'RjVFC':_0x384a9d(0x14f),'FWTxZ':function(_0x449bb7,_0x3fff7c){return _0x449bb7>_0x3fff7c;}},_0x192c1f=_0x4a7a9c['description'];if(typeof _0x192c1f!==_0x44b31a['RjVFC'])return null;const _0x4ea68f=_0x192c1f[_0x384a9d(0xd6)]()[_0x384a9d(0xf2)](/\s+/g,'\x20');return _0x44b31a['FWTxZ'](_0x4ea68f['length'],0x0)?_0x4ea68f:null;}export function formatPlaywrightCliConsoleLogMessage(_0x525fc8,_0x4094a,_0x69e6bb){const _0x397f9d=_0x50bc,_0x18bfeb={'ChtwW':function(_0x506b34,_0x2c60d9,_0x11a7d6){return _0x506b34(_0x2c60d9,_0x11a7d6);}},_0x307ef5=_0x18bfeb[_0x397f9d(0x14c)](formatPlaywrightCliLog,_0x4094a,_0x69e6bb),_0x46f026=extractPlaywrightCliToolDescription(_0x525fc8);if(!_0x46f026)return _0x397f9d(0x11d)+_0x307ef5;if(process['env']['DEBUG'])return'[ranger-verification-agent]\x20'+_0x46f026+'\x20('+_0x307ef5+')';return _0x397f9d(0x10f)+_0x46f026;}export function buildVerifyFeatureCliDebugPrompt(_0x2de570,_0x54b351){const _0x2a545a=_0x50bc,_0x29b586={'hYCJx':function(_0x4e2c74,_0x3b2d01,_0x39f136){return _0x4e2c74(_0x3b2d01,_0x39f136);},'HGCsk':'00_mozilla-homepage.yml','UMhss':_0x2a545a(0x136),'DUKUR':function(_0x3d5164,_0x4deb1a,_0xe1265d){return _0x3d5164(_0x4deb1a,_0xe1265d);},'ozHbw':'02_learn-more.yml','aUhGz':_0x2a545a(0x12d)},_0x2a382d=_0x29b586['hYCJx'](buildCliArtifactPath,_0x54b351,_0x29b586['HGCsk']),_0x1ec84a=_0x29b586['hYCJx'](buildCliArtifactPath,_0x54b351,_0x29b586['UMhss']),_0xbfc33d=_0x29b586['DUKUR'](buildCliArtifactPath,_0x54b351,_0x29b586['ozHbw']),_0x4b7f45=buildCliArtifactPath(_0x54b351,_0x29b586[_0x2a545a(0xfb)]),_0x5d4fd4=quoteShellArg(_0x2a382d),_0x4d1d4a=quoteShellArg(_0x1ec84a),_0x135c4e=quoteShellArg(_0xbfc33d),_0x448051=quoteShellArg(_0x4b7f45);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x2de570+_0x2a545a(0x14b)+_0x2de570+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x2de570+_0x2a545a(0x115)+_0x2de570+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x54b351+_0x2a545a(0xfe)+_0x2de570+'\x20snapshot\x20--filename\x20'+_0x5d4fd4+_0x2a545a(0x148)+_0x2de570+_0x2a545a(0x116)+_0x4d1d4a+_0x2a545a(0xce)+_0x2de570+'\x20snapshot\x20--filename\x20'+_0x135c4e+_0x2a545a(0x112)+_0x2de570+'\x20screenshot\x20--filename\x20'+_0x448051+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x29ce7f){const _0x1848f6=_0x50bc,_0x53cd7c={'VOhEd':_0x1848f6(0xe4),'llbrM':'element','RkLhG':'01_initial.yml','Dxlld':function(_0x3faacb,_0x40dbda,_0x10c362){return _0x3faacb(_0x40dbda,_0x10c362);},'pQJKD':'key_03_success-state.png','dyNWf':function(_0x67d31c,_0x252993){return _0x67d31c(_0x252993);},'bjgRd':function(_0x98636e,_0x5bf442){return _0x98636e(_0x5bf442);},'FemPm':function(_0x1f914b,_0x327947){return _0x1f914b>_0x327947;},'TrKxH':_0x1848f6(0xea),'sIhLj':'key_04_success-state.png'},{checklistItem:_0xe0725b,itemFeedback:_0x167157,taskDescription:_0x1e239a,cliCommandPrefix:_0xeb5932,cliArtifactDir:_0x2e3a4a,isCdpMode:_0x48622f,url:_0x55a2e5,cdpEndpoint:_0x94e157,loginInstructions:_0x48aabe}=_0x29ce7f,_0x504fd5=buildCliArtifactPath(_0x2e3a4a,_0x53cd7c[_0x1848f6(0x140)]),_0x37b39c=_0x53cd7c[_0x1848f6(0x132)](buildCliArtifactPath,_0x2e3a4a,'02_state.yml'),_0x5aac45=buildCliArtifactPath(_0x2e3a4a,_0x53cd7c[_0x1848f6(0x11a)]),_0x1e994c=buildCliArtifactPath(_0x2e3a4a,_0x1848f6(0x103)),_0x35f7e4=_0x53cd7c['dyNWf'](quoteShellArg,_0x504fd5),_0x15a6b6=quoteShellArg(_0x37b39c),_0x15b08c=_0x53cd7c['bjgRd'](quoteShellArg,_0x5aac45),_0x124191=_0x53cd7c[_0x1848f6(0x11b)](quoteShellArg,_0x1e994c),_0x1b3c62=_0xe0725b['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0xe0725b['notes']:'';let _0xa849f7='';if(_0x167157&&_0x53cd7c['FemPm'](_0x167157[_0x1848f6(0x138)]['length'],0x0)){const _0xdb3db4=_0x167157[_0x1848f6(0x138)]['map'](_0x348464=>{const _0x2f0e5a=_0x1848f6,_0x3d8c24=new Date(_0x348464[_0x2f0e5a(0x102)])['toLocaleDateString'](_0x2f0e5a(0xef),{'month':_0x2f0e5a(0xda),'day':_0x2f0e5a(0xd3)}),_0x5523e4=_0x348464[_0x2f0e5a(0x12c)]||_0x348464['authorEmail']||_0x53cd7c['VOhEd'],_0xad2a06=_0x348464[_0x2f0e5a(0x131)]?_0x2f0e5a(0x13f)+(_0x348464['domRef']['selector'][_0x2f0e5a(0x105)]('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x53cd7c[_0x2f0e5a(0x12b)])+_0x2f0e5a(0x11c)+(_0x348464[_0x2f0e5a(0x131)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x2f0e5a(0xf9)+_0x348464['id']+_0x2f0e5a(0xe7)+_0x5523e4+'**\x20('+_0x3d8c24+'):\x20\x22'+_0x348464[_0x2f0e5a(0x111)]+'\x22'+_0xad2a06;})['join']('\x0a');_0xa849f7='\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'+_0xdb3db4;}const _0x2e2abb=_0x167157?.['canonicalFlow']?_0x1848f6(0xe2)+_0x167157['canonicalFlow']:'',_0xc232aa=_0x48622f?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x94e157+'.\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'+_0x55a2e5+'\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',_0x135015=_0x55a2e5?_0x53cd7c[_0x1848f6(0xcd)](quoteShellArg,_0x55a2e5):'',_0x2ae148=_0x48622f?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0xeb5932+'\x20open`,\x20then\x20`'+_0xeb5932+_0x1848f6(0x127)+_0xeb5932+_0x1848f6(0x146)+_0x2e3a4a+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0xeb5932+_0x1848f6(0x113)+_0x35f7e4+'`\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`'+_0xeb5932+_0x1848f6(0x116)+_0x124191+_0x1848f6(0x118)+_0xeb5932+_0x1848f6(0x100):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0xeb5932+'\x20open\x20'+_0x135015+'`,\x20then\x20`'+_0xeb5932+'\x20tracing-start`,\x20then\x20`'+_0xeb5932+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2e3a4a+_0x1848f6(0xd5)+_0xeb5932+'\x20snapshot\x20--filename\x20'+_0x35f7e4+'`\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`'+_0xeb5932+'\x20screenshot\x20--filename\x20'+_0x124191+_0x1848f6(0x141)+_0xeb5932+_0x1848f6(0xe6),_0x278106=_0x48622f?_0x1848f6(0x152):'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.',_0x1e9ee0=_0x48aabe?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x48aabe+_0x1848f6(0x117):'';return _0x1848f6(0xf7)+_0xe0725b[_0x1848f6(0x151)]+_0x1b3c62+_0xa849f7+_0x2e2abb+_0x1848f6(0xff)+_0x1e239a+'\x0a\x0a'+_0xc232aa+_0x1e9ee0+'\x0a\x0a'+_0x2ae148+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0xeb5932+_0x1848f6(0x137)+_0x2e3a4a+_0x1848f6(0x14d)+_0x15a6b6+_0x1848f6(0x120)+_0x15b08c+_0x1848f6(0xd8)+_0x2e3a4a+_0x1848f6(0x128)+_0x1e994c+_0x1848f6(0x14a)+_0x53cd7c[_0x1848f6(0x132)](buildCliArtifactPath,_0x2e3a4a,_0x1848f6(0xd1))+_0x1848f6(0x14a)+buildCliArtifactPath(_0x2e3a4a,_0x53cd7c[_0x1848f6(0xdd)])+_0x1848f6(0xcc)+_0x53cd7c['Dxlld'](buildCliArtifactPath,_0x2e3a4a,_0x53cd7c['sIhLj'])+_0x1848f6(0x119)+_0x278106+_0x1848f6(0xdc);}export function summarizeVerifyFeatureCliCommandAvailability(_0x3f13d9){const _0x3f2be1=[..._0x3f13d9['keys']()]['sort']();let _0xc1d0a7=0x0;for(const _0x1fffc0 of _0x3f13d9['values']()){_0xc1d0a7+=_0x1fffc0;}return{'cliCommandCount':_0xc1d0a7,'cliCommandsSeen':_0x3f2be1,'noCliCommandsCalled':_0xc1d0a7===0x0};}export function createVerifyFeatureCliHooks(_0x224b45){const _0x30d599=_0x50bc,_0x140a2f={'NjvlN':'Bash','bODkm':function(_0x27579f,_0x5d6053){return _0x27579f(_0x5d6053);},'uZehJ':'tool_call','ZJmba':_0x30d599(0x125),'cBlko':function(_0x363d7e,_0x3c5fc1){return _0x363d7e!==_0x3c5fc1;},'JDQdW':_0x30d599(0xcf),'EQUdh':'tool_failure'},_0x819c26=new Map(),_0x481302=async _0x5a80e8=>{const _0x4d50fe=_0x30d599;if(_0x5a80e8['hook_event_name']!==_0x4d50fe(0x10a))return{};const _0x38ab9d=_0x5a80e8;if(_0x38ab9d[_0x4d50fe(0x106)]!==_0x140a2f['NjvlN'])return{};const _0x3e2487=_0x38ab9d[_0x4d50fe(0x11f)],_0x266403=_0x140a2f[_0x4d50fe(0xd0)](extractBashCommand,_0x3e2487);if(!_0x266403)return{};const _0x53a4a6=parsePlaywrightCliCommand(_0x266403);if(!_0x53a4a6)return{};return _0x819c26[_0x4d50fe(0xeb)](_0x53a4a6,(_0x819c26['get'](_0x53a4a6)||0x0)+0x1),_0x224b45['trackPhaseStart'](_0x140a2f[_0x4d50fe(0x10b)],{'transport':_0x140a2f['ZJmba'],'toolName':_0x53a4a6}),_0x224b45[_0x4d50fe(0x133)](_0x4d50fe(0x114),{'transport':'playwright-cli','toolName':_0x53a4a6,'bashCommandPreview':truncatePreview(_0x266403)}),_0x53a4a6!==_0x4d50fe(0x12e)&&console[_0x4d50fe(0xd9)](formatPlaywrightCliConsoleLogMessage(_0x3e2487,_0x266403,_0x53a4a6)),{};},_0x10f12e=async _0x34a7e0=>{const _0x312336=_0x30d599;if(_0x140a2f[_0x312336(0x123)](_0x34a7e0[_0x312336(0xd2)],_0x140a2f['JDQdW']))return{};const _0x30a1b1=_0x34a7e0;if(_0x30a1b1[_0x312336(0x106)]!==_0x312336(0xec))return{};return await _0x224b45[_0x312336(0xe5)](_0x140a2f[_0x312336(0x147)],_0x30a1b1['error'],{'transport':_0x140a2f['ZJmba'],'toolName':_0x140a2f[_0x312336(0x13d)]}),{};};return{'postToolUseHook':_0x481302,'postToolUseFailureHook':_0x10f12e,'commandCounts':_0x819c26};}async function runPlaywrightCliLifecycleCommand(_0x526c6e){const _0x3ab76b=_0x50bc,_0x1449da={'HQJMM':function(_0x384f5c,_0x58729a){return _0x384f5c(_0x58729a);},'ioSaC':function(_0x22c7b5,_0x25966f){return _0x22c7b5??_0x25966f;},'qJxiZ':function(_0x32e6c0,_0x3ca22d,_0x30b33f){return _0x32e6c0(_0x3ca22d,_0x30b33f);}},{sessionId:_0x1acf6f,configPath:_0x2b5029,commandArgs:_0x5c68b0,env:_0x90b0ff,telemetry:_0x2f53d4,phase:_0x54917c,metadata:_0x3eba4a,timeoutMs:_0x2862a5}=_0x526c6e;_0x2f53d4['trackPhaseStart'](_0x54917c,_0x3eba4a);try{const _0x531f41=await _0x1449da[_0x3ab76b(0x13b)](runPlaywrightCliCommand,{'sessionId':_0x1acf6f,'configPath':_0x2b5029,'commandArgs':_0x5c68b0,'cwd':process[_0x3ab76b(0xe9)](),'env':_0x90b0ff,'timeoutMs':_0x1449da[_0x3ab76b(0xfa)](_0x2862a5,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x2f53d4[_0x3ab76b(0x133)](_0x54917c,{..._0x3eba4a,'subcommand':_0x531f41[_0x3ab76b(0x13a)][_0x3ab76b(0xde)],'stdoutPreview':_0x1449da[_0x3ab76b(0xf6)](truncatePreview,_0x531f41['stdout'],0x7d0),'stderrPreview':_0x1449da['qJxiZ'](truncatePreview,_0x531f41['stderr'],0x7d0)});}catch(_0x36d913){await _0x2f53d4[_0x3ab76b(0xe5)](_0x54917c,_0x36d913,_0x3eba4a);throw _0x36d913;}}export async function finalizeVerifyFeatureCliSession(_0x1a1249){const _0x46b87a=_0x50bc,_0x41909a={'LyIMq':_0x46b87a(0x149),'IRVUP':function(_0x188d53,_0x3e9fef,_0x37eda6){return _0x188d53(_0x3e9fef,_0x37eda6);},'TDakC':'session-recording.webm','KqPIB':'playwright_cli_close'},{telemetry:_0x4dfef3,sessionId:_0x52c666,configPath:_0x15236d,cliArtifactDir:_0x2504a7,env:_0x28d892,transportMetadata:_0xc3079a}=_0x1a1249,_0x2c512c=[{'phase':_0x46b87a(0xe8),'commandArgs':[_0x41909a['LyIMq']]},{'phase':'playwright_cli_video_stop','commandArgs':['video-stop',_0x46b87a(0x124)+_0x41909a['IRVUP'](buildCliArtifactPath,_0x2504a7,_0x41909a[_0x46b87a(0xf0)])]},{'phase':_0x41909a['KqPIB'],'commandArgs':['close']}];for(const _0x2a70cb of _0x2c512c){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x52c666,'configPath':_0x15236d,'commandArgs':[..._0x2a70cb[_0x46b87a(0x153)]],'env':_0x28d892,'telemetry':_0x4dfef3,'phase':_0x2a70cb[_0x46b87a(0x107)],'metadata':_0xc3079a});}catch{}}}function _0x50bc(_0x5e62a1,_0x3b98f3){_0x5e62a1=_0x5e62a1-0xc8;const _0x2932c5=_0x2932();let _0x50bcd2=_0x2932c5[_0x5e62a1];return _0x50bcd2;}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x480a1c){const _0x5ed382=_0x50bc,_0x26abe8={'XJiyg':'trace.trace.zip'},_0x469083=[_0x5ed382(0xfc),_0x26abe8[_0x5ed382(0xe1)]];for(const _0x26188b of _0x469083){const _0x31f8e7=join(_0x480a1c,_0x26188b);try{return{'buffer':await readFile(_0x31f8e7),'source':_0x31f8e7};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x3120ec){const _0x1d1b4a=_0x50bc,_0x4fafee={'yeOfG':function(_0x223a5f,_0xb60d5f,_0x36800e){return _0x223a5f(_0xb60d5f,_0x36800e);},'jqLyz':function(_0x5a9484,_0x27cdd1){return _0x5a9484===_0x27cdd1;}},{cwd:_0x4bee08,cliArtifactDir:_0x2ae243,startTime:_0x53acef}=_0x3120ec,_0x52d590=[];await mkdir(_0x2ae243,{'recursive':!![]});const _0x43f21a=await readdir(_0x4bee08,{'withFileTypes':!![]});for(const _0x2dec05 of _0x43f21a){if(!_0x2dec05[_0x1d1b4a(0x10e)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x1d1b4a(0xf5)](_0x2dec05[_0x1d1b4a(0x135)]))continue;const _0x1044db=_0x4fafee['yeOfG'](join,_0x4bee08,_0x2dec05['name']),_0xbcd5e4=await stat(_0x1044db);if(_0xbcd5e4[_0x1d1b4a(0x129)]+0x7d0<_0x53acef)continue;const _0x4044f2=buildCliArtifactPath(_0x2ae243,_0x2dec05[_0x1d1b4a(0x135)]);if(_0x4fafee['jqLyz'](_0x1044db,_0x4044f2))continue;await rename(_0x1044db,_0x4044f2),_0x52d590['push'](_0x2dec05[_0x1d1b4a(0x135)]);}return _0x52d590['sort']();}
1
+ (function(_0x46c561,_0x4925bb){const _0xbe1225=_0x31a5,_0x4b4dad=_0x46c561();while(!![]){try{const _0x5ca533=parseInt(_0xbe1225(0x167))/0x1*(-parseInt(_0xbe1225(0x191))/0x2)+parseInt(_0xbe1225(0x1e4))/0x3+parseInt(_0xbe1225(0x1be))/0x4*(parseInt(_0xbe1225(0x19b))/0x5)+parseInt(_0xbe1225(0x1bf))/0x6+parseInt(_0xbe1225(0x1c6))/0x7+-parseInt(_0xbe1225(0x1e3))/0x8*(parseInt(_0xbe1225(0x1c2))/0x9)+parseInt(_0xbe1225(0x18d))/0xa*(-parseInt(_0xbe1225(0x198))/0xb);if(_0x5ca533===_0x4925bb)break;else _0x4b4dad['push'](_0x4b4dad['shift']());}catch(_0x1628e1){_0x4b4dad['push'](_0x4b4dad['shift']());}}}(_0x5dc4,0x46ae6));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';const PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,PLAYWRIGHT_CLI_PREVIEW_LIMIT=0xf0,VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|session-recording(?:-\d+)?\.webm|trace(?:\.trace)?(?:-\d+)?\.zip|current_snap\.ya?ml)$/i;function truncatePreview(_0x16dab9,_0x1fcd4f=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x303260=_0x31a5,_0x56ebec={'QxKZB':function(_0x486c9a,_0x4db2c2){return _0x486c9a>_0x4db2c2;},'ENFFC':function(_0x1640ff,_0x216e88){return _0x1640ff+_0x216e88;},'NgvLH':_0x303260(0x1da)};return _0x56ebec['QxKZB'](_0x16dab9[_0x303260(0x1b6)],_0x1fcd4f)?_0x56ebec['ENFFC'](_0x16dab9[_0x303260(0x174)](0x0,_0x1fcd4f),_0x56ebec['NgvLH']):_0x16dab9;}function buildCliArtifactPath(_0x588fae,_0x191177){const _0x1d4349=_0x31a5,_0x5554e1={'etcPM':function(_0x4af4d1,_0x127565,_0x95ebf){return _0x4af4d1(_0x127565,_0x95ebf);}};return _0x5554e1[_0x1d4349(0x189)](join,_0x588fae,_0x191177);}function toStepDisplayName(_0x5bb706){const _0x55af4d=_0x31a5,_0x4c0911={'TuBJm':function(_0x21d3c4,_0x3c1049){return _0x21d3c4(_0x3c1049);}},_0x4aaf66=basename(_0x5bb706)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x55af4d(0x19c)](/^key_/i,'')['replace'](/^\d+_/,'')[_0x55af4d(0x19c)](/-/g,'\x20');return{'name':_0x4aaf66,'isKeyStep':/^key_/i['test'](_0x4c0911['TuBJm'](basename,_0x5bb706))};}function extractShellValue(_0x18dc86){if(!_0x18dc86)return null;return _0x18dc86[0x1]??_0x18dc86[0x2]??_0x18dc86[0x3]??null;}function extractFilenameOption(_0x2f57b0){const _0x819ccf=_0x31a5,_0x3760bb={'hGckV':function(_0x301ee2,_0x45bec6){return _0x301ee2(_0x45bec6);}};return _0x3760bb['hGckV'](extractShellValue,_0x2f57b0[_0x819ccf(0x1a5)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x547940,_0x39f207){const _0x57db02=_0x31a5,_0x590735=_0x39f207['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x547940['match'](new RegExp(_0x57db02(0x1e0)+_0x590735+_0x57db02(0x170))));}function _0x31a5(_0xdc0639,_0x337f86){_0xdc0639=_0xdc0639-0x15e;const _0x5dc4eb=_0x5dc4();let _0x31a56c=_0x5dc4eb[_0xdc0639];return _0x31a56c;}function formatCommandTarget(_0x2f028e){const _0x45d949=_0x31a5;if(!_0x2f028e)return'target';if(/^e\d+$/i[_0x45d949(0x1c7)](_0x2f028e))return'ref\x20'+_0x2f028e;return JSON['stringify'](truncatePreview(_0x2f028e,0x78));}function formatPlaywrightCliLog(_0xfbcd32,_0x4cfa5e){const _0x5636d0=_0x31a5,_0x67a5cb={'UDZdK':'open','LjtGS':_0x5636d0(0x1d1),'LBoTg':_0x5636d0(0x1a6),'IRCza':'stop\x20tracing','EXjji':'video-start','AQcFk':'stop\x20video\x20recording','UcYJH':function(_0x4c7398,_0x13191b){return _0x4c7398(_0x13191b);},'WJHcB':'fill','UsUbo':function(_0x169c96,_0x5dd045,_0x37af84){return _0x169c96(_0x5dd045,_0x37af84);},'hNwgc':_0x5636d0(0x190),'wUvbz':_0x5636d0(0x1d3),'NnjEK':'run\x20custom\x20Playwright\x20code','eOoVu':_0x5636d0(0x1aa),'henmR':'open\x20new\x20tab','Fuyrw':_0x5636d0(0x16e)};switch(_0x4cfa5e){case _0x67a5cb['UDZdK']:{const _0x103cc7=extractFirstCommandArgument(_0xfbcd32,_0x4cfa5e);return _0x103cc7?_0x5636d0(0x1c9)+_0x103cc7:'open\x20browser';}case _0x67a5cb[_0x5636d0(0x181)]:return _0x67a5cb[_0x5636d0(0x1dc)];case'tracing-stop':return _0x67a5cb[_0x5636d0(0x1ac)];case _0x67a5cb[_0x5636d0(0x1ce)]:return _0x5636d0(0x1a2);case'video-stop':return _0x67a5cb[_0x5636d0(0x16a)];case _0x5636d0(0x183):{const _0x2874a4=extractFilenameOption(_0xfbcd32);if(!_0x2874a4)return'capture\x20snapshot';const {name:_0xca777c}=toStepDisplayName(_0x2874a4);return'capture\x20snapshot\x20`'+_0xca777c+'`';}case'screenshot':{const _0x1130d5=extractFilenameOption(_0xfbcd32);if(!_0x1130d5)return'capture\x20screenshot';const {name:_0x578735,isKeyStep:_0x524523}=_0x67a5cb[_0x5636d0(0x161)](toStepDisplayName,_0x1130d5);return _0x524523?_0x5636d0(0x18f)+_0x578735+'`':_0x5636d0(0x1d8)+_0x578735+'`';}case _0x5636d0(0x1b3):return _0x5636d0(0x17c)+formatCommandTarget(extractFirstCommandArgument(_0xfbcd32,_0x4cfa5e));case'check':return _0x5636d0(0x193)+_0x67a5cb[_0x5636d0(0x161)](formatCommandTarget,extractFirstCommandArgument(_0xfbcd32,_0x4cfa5e));case _0x67a5cb['WJHcB']:return _0x5636d0(0x184)+formatCommandTarget(_0x67a5cb['UsUbo'](extractFirstCommandArgument,_0xfbcd32,_0x4cfa5e));case _0x67a5cb['hNwgc']:return _0x5636d0(0x1d0)+_0x67a5cb['UcYJH'](formatCommandTarget,extractFirstCommandArgument(_0xfbcd32,_0x4cfa5e));case _0x67a5cb[_0x5636d0(0x169)]:return _0x67a5cb[_0x5636d0(0x15f)];case _0x67a5cb['eOoVu']:{const _0x1d9a4b=_0x67a5cb[_0x5636d0(0x162)](extractFirstCommandArgument,_0xfbcd32,_0x4cfa5e);return _0x1d9a4b?'open\x20new\x20tab\x20'+_0x1d9a4b:_0x67a5cb['henmR'];}case _0x67a5cb[_0x5636d0(0x1b5)]:{const _0x1e5fc3=extractFirstCommandArgument(_0xfbcd32,_0x4cfa5e);return _0x1e5fc3?'select\x20tab\x20'+_0x1e5fc3:_0x5636d0(0x17f);}default:return _0x4cfa5e;}}function _0x5dc4(){const _0x59ad68=['click\x20','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','tool_name','select\x20tab','\x20open\x20','LjtGS','tKTVT','snapshot','fill\x20','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','aCBnm','TSdoP','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','etcPM','DJzrT','description','createdAt','1327630WhtrBw','-\x20[','capture\x20key\x20step\x20`','press','922UGqRiC','name','check\x20','RGFWw','`\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`','kRCgv','push','11YIvuzN','[ranger-verification-agent]\x20','`\x0a-\x20`run-code\x20\x22await\x20page.waitForTimeout(1000)\x22`\x20for\x20waits\x20or\x20small\x20custom\x20checks\x0a\x0a##\x20Screenshot\x20Guidelines\x20-\x20IMPORTANT\x0aTake\x20screenshots\x20throughout\x20the\x20verification\x20flow\x20so\x20a\x20human\x20can\x20review\x20it\x20for\x20completeness.\x20Screenshots\x20are\x20your\x20evidence\x20trail.\x0a\x0a**When\x20to\x20take\x20screenshots\x20(use\x20Playwright\x20CLI\x20screenshot):**\x0a-\x20After\x20the\x20initial\x20snapshot\x20(capture\x20starting\x20state)\x0a-\x20Before\x20and\x20after\x20clicking\x20buttons\x20or\x20submitting\x20forms\x0a-\x20When\x20important\x20UI\x20elements\x20appear\x20(modals,\x20notifications,\x20loading\x20states)\x0a-\x20After\x20navigating\x20to\x20different\x20views\x20or\x20pages\x0a-\x20When\x20verifying\x20specific\x20elements\x20exist\x0a-\x20At\x20the\x20final\x20state\x20showing\x20the\x20completed\x20action\x0a\x0a**Screenshot\x20naming:**\x0a-\x20Use\x20descriptive\x20filenames\x20under\x20`','1857060TpdWvm','replace','\x20tracing-start`,\x20then\x20`','authorEmail','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','domRef','trace.zip','start\x20video\x20recording','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','sort','match','start\x20tracing','02_learn-more.yml','authorName','**\x20(','tab-new','01_initial-state.png','IRCza','tracing-stop','vDfQV','`\x0a9.\x20Run\x20`','set','ovalh','mtimeMs','click','close','Fuyrw','length','get','\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','BMPuz','`\x0a-\x20`snapshot\x20--filename\x20','phase','kBftd','`:\x20\x22','4mpNgYS','625404QNnRdx','02_button-clicked.png','PBmAB','2589129NQntTZ','\x20snapshot\x20--filename\x20','trackPhaseError','stderr','3223983tUkUGd','test','\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.','open\x20','kvfPV','playwright-cli','trackPhaseEnd','`,\x20then\x20`','EXjji','selector','press\x20','tracing-start','canonicalFlow','run-code','\x20screenshot\x20--filename\x20','):\x20\x22',']\x20**','tool_input','capture\x20step\x20`','key_04_success-state.png','...','Bash','LBoTg','notes','`\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','commandArgs','(?:^|\x5cs)','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','join','8dndPyy','547938wGxmRa','unaddressedComments','vQBfY','pop','NnjEK','invocation','UcYJH','UsUbo','tZBoC','element','trim','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','887AuAGfU','short','wUvbz','AQcFk','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','tool_failure','03_result-visible.png','tab-select','pKgoJ','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','iuxDQ','textContent','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','slice','split','\x20tracing-start`\x0a3.\x20Run\x20`','cAtLn','02_state.yml','KuCtt','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','Reviewer'];_0x5dc4=function(){return _0x59ad68;};return _0x5dc4();}function extractPlaywrightCliToolDescription(_0x19642c){const _0x2eeb69=_0x31a5,_0x1aeeb4={'evkal':function(_0x31fcd5,_0x5a8e1c){return _0x31fcd5!==_0x5a8e1c;},'vDfQV':function(_0x49c4fb,_0x18f9ce){return _0x49c4fb>_0x18f9ce;}},_0x4abe1e=_0x19642c[_0x2eeb69(0x18b)];if(_0x1aeeb4['evkal'](typeof _0x4abe1e,'string'))return null;const _0x3abba6=_0x4abe1e[_0x2eeb69(0x165)]()['replace'](/\s+/g,'\x20');return _0x1aeeb4[_0x2eeb69(0x1ae)](_0x3abba6['length'],0x0)?_0x3abba6:null;}export function formatPlaywrightCliConsoleLogMessage(_0x5928ec,_0x38b51a,_0x342e58){const _0x5d4b3a=_0x31a5,_0x569659=formatPlaywrightCliLog(_0x38b51a,_0x342e58),_0x288770=extractPlaywrightCliToolDescription(_0x5928ec);if(!_0x288770)return'[playwright-cli]\x20'+_0x569659;if(process['env']['DEBUG'])return _0x5d4b3a(0x199)+_0x288770+'\x20('+_0x569659+')';return _0x5d4b3a(0x199)+_0x288770;}export function buildVerifyFeatureCliDebugPrompt(_0xc91f64,_0x2e2dd){const _0x452b59=_0x31a5,_0x1014a8={'qiWyx':function(_0x29b059,_0x19d390,_0x3549a5){return _0x29b059(_0x19d390,_0x3549a5);},'hPApA':'01_mozilla-homepage.png','cAtLn':function(_0x50b7ea,_0x3f16cd){return _0x50b7ea(_0x3f16cd);},'MHoBX':function(_0x1b3d29,_0x27a872){return _0x1b3d29(_0x27a872);}},_0x2b418e=buildCliArtifactPath(_0x2e2dd,'00_mozilla-homepage.yml'),_0x4a9bb0=_0x1014a8['qiWyx'](buildCliArtifactPath,_0x2e2dd,_0x1014a8['hPApA']),_0x4088ba=_0x1014a8['qiWyx'](buildCliArtifactPath,_0x2e2dd,_0x452b59(0x1a7)),_0x78359a=buildCliArtifactPath(_0x2e2dd,'03_learn-more.png'),_0x2273d3=_0x1014a8[_0x452b59(0x177)](quoteShellArg,_0x2b418e),_0x1f36dd=_0x1014a8['MHoBX'](quoteShellArg,_0x4a9bb0),_0x5cdef9=quoteShellArg(_0x4088ba),_0x2fe58d=quoteShellArg(_0x78359a);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0xc91f64+'\x0a\x0a1.\x20Run\x20`'+_0xc91f64+_0x452b59(0x166)+_0xc91f64+_0x452b59(0x176)+_0xc91f64+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2e2dd+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0xc91f64+_0x452b59(0x1c3)+_0x2273d3+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0xc91f64+'\x20screenshot\x20--filename\x20'+_0x1f36dd+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0xc91f64+'\x20snapshot\x20--filename\x20'+_0x5cdef9+_0x452b59(0x1af)+_0xc91f64+_0x452b59(0x1d4)+_0x2fe58d+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x88e1d5){const _0x2e60b9=_0x31a5,_0x4949ab={'kBftd':'en-US','BMPuz':_0x2e60b9(0x168),'XGbgs':_0x2e60b9(0x17b),'TSdoP':function(_0x130a49,_0x42f448,_0x3ba510){return _0x130a49(_0x42f448,_0x3ba510);},'vQBfY':'01_initial.yml','mhkIZ':function(_0x3ee5b1,_0x50a9f2,_0x551d98){return _0x3ee5b1(_0x50a9f2,_0x551d98);},'iSZDP':function(_0x311cf2,_0x455573){return _0x311cf2(_0x455573);},'RGFWw':function(_0x992eac,_0x373f5c){return _0x992eac(_0x373f5c);},'kRCgv':function(_0x1f5ae9,_0x5363c7,_0x253b0e){return _0x1f5ae9(_0x5363c7,_0x253b0e);},'tZBoC':function(_0x377dfa,_0x1f44b2,_0xdd6573){return _0x377dfa(_0x1f44b2,_0xdd6573);}},{checklistItem:_0xf42dac,itemFeedback:_0x16b053,taskDescription:_0x3641b4,cliCommandPrefix:_0x34c4ad,cliArtifactDir:_0x140970,isCdpMode:_0x14e365,url:_0x17d860,cdpEndpoint:_0x19c0bc,loginInstructions:_0x4abb9b}=_0x88e1d5,_0x4ccdc6=_0x4949ab['TSdoP'](buildCliArtifactPath,_0x140970,_0x4949ab[_0x2e60b9(0x1e6)]),_0x133e0a=_0x4949ab['TSdoP'](buildCliArtifactPath,_0x140970,_0x2e60b9(0x178)),_0x527065=_0x4949ab[_0x2e60b9(0x187)](buildCliArtifactPath,_0x140970,'key_03_success-state.png'),_0x3f8ae4=_0x4949ab['mhkIZ'](buildCliArtifactPath,_0x140970,_0x2e60b9(0x1ab)),_0x478c19=_0x4949ab['iSZDP'](quoteShellArg,_0x4ccdc6),_0x1d0ea4=_0x4949ab['RGFWw'](quoteShellArg,_0x133e0a),_0x27e87e=_0x4949ab[_0x2e60b9(0x194)](quoteShellArg,_0x527065),_0x2a0082=_0x4949ab['RGFWw'](quoteShellArg,_0x3f8ae4),_0x4d1bb7=_0xf42dac[_0x2e60b9(0x1dd)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0xf42dac['notes']:'';let _0x583b86='';if(_0x16b053&&_0x16b053[_0x2e60b9(0x1e5)]['length']>0x0){const _0x32f8e4=_0x16b053['unaddressedComments']['map'](_0x738b5c=>{const _0x3aafc2=_0x2e60b9,_0x1d052a=new Date(_0x738b5c[_0x3aafc2(0x18c)])['toLocaleDateString'](_0x4949ab[_0x3aafc2(0x1bc)],{'month':_0x4949ab[_0x3aafc2(0x1b9)],'day':'numeric'}),_0x14d2e8=_0x738b5c[_0x3aafc2(0x1a8)]||_0x738b5c[_0x3aafc2(0x19e)]||_0x4949ab['XGbgs'],_0x18eec0=_0x738b5c[_0x3aafc2(0x1a0)]?'\x20(on\x20element:\x20<'+(_0x738b5c[_0x3aafc2(0x1a0)][_0x3aafc2(0x1cf)][_0x3aafc2(0x175)]('\x20>\x20')[_0x3aafc2(0x15e)]()?.['split'](':')[0x0]||_0x3aafc2(0x164))+'>\x20\x22'+(_0x738b5c['domRef'][_0x3aafc2(0x172)]||'')[_0x3aafc2(0x174)](0x0,0x32)+'\x22)':'';return _0x3aafc2(0x18e)+_0x738b5c['id']+_0x3aafc2(0x1d6)+_0x14d2e8+_0x3aafc2(0x1a9)+_0x1d052a+_0x3aafc2(0x1d5)+_0x738b5c['content']+'\x22'+_0x18eec0;})[_0x2e60b9(0x1e2)]('\x0a');_0x583b86=_0x2e60b9(0x1b8)+_0x32f8e4;}const _0x1121a2=_0x16b053?.['canonicalFlow']?_0x2e60b9(0x1a3)+_0x16b053[_0x2e60b9(0x1d2)]:'',_0x26e628=_0x14e365?_0x2e60b9(0x188)+_0x19c0bc+_0x2e60b9(0x16b):_0x2e60b9(0x19f)+_0x17d860+'\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',_0x27bda5=_0x17d860?quoteShellArg(_0x17d860):'',_0x3a17fb=_0x14e365?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x34c4ad+'\x20open`,\x20then\x20`'+_0x34c4ad+_0x2e60b9(0x19d)+_0x34c4ad+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x140970+_0x2e60b9(0x1e1)+_0x34c4ad+'\x20snapshot\x20--filename\x20'+_0x478c19+'`\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`'+_0x34c4ad+'\x20screenshot\x20--filename\x20'+_0x2a0082+_0x2e60b9(0x185)+_0x34c4ad+'\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a7.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a8.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario':'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x34c4ad+_0x2e60b9(0x180)+_0x27bda5+_0x2e60b9(0x1cd)+_0x34c4ad+'\x20tracing-start`,\x20then\x20`'+_0x34c4ad+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x140970+_0x2e60b9(0x1e1)+_0x34c4ad+_0x2e60b9(0x1c3)+_0x478c19+_0x2e60b9(0x195)+_0x34c4ad+'\x20screenshot\x20--filename\x20'+_0x2a0082+_0x2e60b9(0x173)+_0x34c4ad+'\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',_0x1ef7de=_0x14e365?'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20taking\x20the\x20initial\x20snapshot,\x20IMMEDIATELY\x20check\x20for\x20blocking\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20Crash\x20or\x20error\x20dialogs\x20(\x22An\x20error\x20occurred\x22,\x20\x22Something\x20went\x20wrong\x22,\x20unhandled\x20exception\x20messages)\x0a-\x20Blank\x20or\x20empty\x20window\x20with\x20no\x20rendered\x20content\x0a-\x20Framework\x20error\x20boundaries\x20(React\x20error\x20page,\x20Electron\x20crash\x20reporter)\x0a-\x20Unresponsive\x20or\x20frozen\x20UI\x20(no\x20interactive\x20elements\x20in\x20snapshot)\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22App\x20crashed\x20—\x20error\x20dialog\x20visible\x20on\x20launch\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20type:\x20\x22APP_ERROR\x22\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.':'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.',_0x403fbb=_0x4abb9b?_0x2e60b9(0x17a)+_0x4abb9b+'\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'+_0xf42dac['description']+_0x4d1bb7+_0x583b86+_0x1121a2+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x3641b4+'\x0a\x0a'+_0x26e628+_0x403fbb+'\x0a\x0a'+_0x3a17fb+_0x2e60b9(0x17d)+_0x34c4ad+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x140970+_0x2e60b9(0x1ba)+_0x1d0ea4+_0x2e60b9(0x1de)+_0x27e87e+_0x2e60b9(0x19a)+_0x140970+_0x2e60b9(0x1bd)+_0x3f8ae4+'\x22,\x20\x22'+_0x4949ab[_0x2e60b9(0x196)](buildCliArtifactPath,_0x140970,_0x2e60b9(0x1c0))+'\x22,\x20\x22'+_0x4949ab[_0x2e60b9(0x163)](buildCliArtifactPath,_0x140970,_0x2e60b9(0x16d))+'\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'+_0x4949ab['TSdoP'](buildCliArtifactPath,_0x140970,_0x2e60b9(0x1d9))+'\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'+_0x1ef7de+_0x2e60b9(0x1c8);}export function summarizeVerifyFeatureCliCommandAvailability(_0x52f96a){const _0x3c7700=_0x31a5,_0x1cb53f=[..._0x52f96a['keys']()][_0x3c7700(0x1a4)]();let _0x477c3c=0x0;for(const _0x2e9cd8 of _0x52f96a['values']()){_0x477c3c+=_0x2e9cd8;}return{'cliCommandCount':_0x477c3c,'cliCommandsSeen':_0x1cb53f,'noCliCommandsCalled':_0x477c3c===0x0};}export function createVerifyFeatureCliHooks(_0x23df59){const _0x4d230d=_0x31a5,_0x2e9a3f={'FKSyf':'PostToolUse','mGGQU':function(_0x2f3b8,_0x22d6e8){return _0x2f3b8!==_0x22d6e8;},'PBmAB':function(_0x20d1e8,_0x3743cc){return _0x20d1e8(_0x3743cc);},'KuCtt':'tool_call','pKgoJ':_0x4d230d(0x1cb),'tgEAQ':'snapshot','iuxDQ':function(_0x86520,_0x8abe96){return _0x86520!==_0x8abe96;},'oEURy':function(_0x1417bc,_0x2b47a6){return _0x1417bc!==_0x2b47a6;},'DJzrT':_0x4d230d(0x1db)},_0x4588ba=new Map(),_0xa11e00=async _0x19fa09=>{const _0x10891e=_0x4d230d;if(_0x19fa09['hook_event_name']!==_0x2e9a3f['FKSyf'])return{};const _0xe021c3=_0x19fa09;if(_0x2e9a3f['mGGQU'](_0xe021c3[_0x10891e(0x17e)],_0x10891e(0x1db)))return{};const _0x3746c6=_0xe021c3[_0x10891e(0x1d7)],_0x566dfa=_0x2e9a3f[_0x10891e(0x1c1)](extractBashCommand,_0x3746c6);if(!_0x566dfa)return{};const _0x3335db=parsePlaywrightCliCommand(_0x566dfa);if(!_0x3335db)return{};return _0x4588ba[_0x10891e(0x1b0)](_0x3335db,(_0x4588ba[_0x10891e(0x1b7)](_0x3335db)||0x0)+0x1),_0x23df59['trackPhaseStart'](_0x2e9a3f[_0x10891e(0x179)],{'transport':_0x2e9a3f[_0x10891e(0x16f)],'toolName':_0x3335db}),_0x23df59['trackPhaseEnd'](_0x2e9a3f[_0x10891e(0x179)],{'transport':'playwright-cli','toolName':_0x3335db,'bashCommandPreview':truncatePreview(_0x566dfa)}),_0x2e9a3f['mGGQU'](_0x3335db,_0x2e9a3f['tgEAQ'])&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x3746c6,_0x566dfa,_0x3335db)),{};},_0x269377=async _0x39d8f5=>{const _0x515479=_0x4d230d;if(_0x2e9a3f[_0x515479(0x171)](_0x39d8f5['hook_event_name'],'PostToolUseFailure'))return{};const _0x53d180=_0x39d8f5;if(_0x2e9a3f['oEURy'](_0x53d180[_0x515479(0x17e)],_0x2e9a3f[_0x515479(0x18a)]))return{};return await _0x23df59[_0x515479(0x1c4)](_0x515479(0x16c),_0x53d180['error'],{'transport':_0x515479(0x1cb),'toolName':'Bash'}),{};};return{'postToolUseHook':_0xa11e00,'postToolUseFailureHook':_0x269377,'commandCounts':_0x4588ba};}async function runPlaywrightCliLifecycleCommand(_0x57ca92){const _0x200fcb=_0x31a5,_0x11a956={'zgihQ':function(_0x2e4ad9,_0x288f74){return _0x2e4ad9(_0x288f74);},'OpyIv':function(_0x36abc2,_0x55d81b,_0x29cddb){return _0x36abc2(_0x55d81b,_0x29cddb);}},{sessionId:_0x3a2934,configPath:_0x26c632,commandArgs:_0x367677,env:_0x1953c3,telemetry:_0x173ac9,phase:_0x3d4d6a,metadata:_0x562d29,timeoutMs:_0x5b0120}=_0x57ca92;_0x173ac9['trackPhaseStart'](_0x3d4d6a,_0x562d29);try{const _0x1ab1b3=await _0x11a956['zgihQ'](runPlaywrightCliCommand,{'sessionId':_0x3a2934,'configPath':_0x26c632,'commandArgs':_0x367677,'cwd':process['cwd'](),'env':_0x1953c3,'timeoutMs':_0x5b0120??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x173ac9[_0x200fcb(0x1cc)](_0x3d4d6a,{..._0x562d29,'subcommand':_0x1ab1b3[_0x200fcb(0x160)]['subcommand'],'stdoutPreview':_0x11a956['OpyIv'](truncatePreview,_0x1ab1b3['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x1ab1b3[_0x200fcb(0x1c5)],0x7d0)});}catch(_0x1e732d){await _0x173ac9[_0x200fcb(0x1c4)](_0x3d4d6a,_0x1e732d,_0x562d29);throw _0x1e732d;}}export async function finalizeVerifyFeatureCliSession(_0x178d7b){const _0x14995a=_0x31a5,_0x279709={'ovalh':'playwright_cli_tracing_stop','aCBnm':'playwright_cli_video_stop','PIfKJ':function(_0xf3b090,_0x4b9713,_0x537905){return _0xf3b090(_0x4b9713,_0x537905);},'eFHMm':_0x14995a(0x1b4),'TIHEP':function(_0x1b0c52,_0x11094c){return _0x1b0c52(_0x11094c);}},{telemetry:_0x4c1e4d,sessionId:_0x2debaa,configPath:_0x2e0f68,cliArtifactDir:_0x4ae831,env:_0x21a6fb,transportMetadata:_0x6e5bd8}=_0x178d7b,_0x5f017e=[{'phase':_0x279709[_0x14995a(0x1b1)],'commandArgs':[_0x14995a(0x1ad)]},{'phase':_0x279709[_0x14995a(0x186)],'commandArgs':['video-stop','--filename='+_0x279709['PIfKJ'](buildCliArtifactPath,_0x4ae831,'session-recording.webm')]},{'phase':'playwright_cli_close','commandArgs':[_0x279709['eFHMm']]}];for(const _0x561436 of _0x5f017e){try{await _0x279709['TIHEP'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x2debaa,'configPath':_0x2e0f68,'commandArgs':[..._0x561436[_0x14995a(0x1df)]],'env':_0x21a6fb,'telemetry':_0x4c1e4d,'phase':_0x561436[_0x14995a(0x1bb)],'metadata':_0x6e5bd8});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x4afcc7){const _0x56355e=_0x31a5,_0x16ca5f={'kvfPV':'trace.trace.zip','pibuI':function(_0x15b857,_0x377fcf){return _0x15b857(_0x377fcf);}},_0x17e725=[_0x56355e(0x1a1),_0x16ca5f[_0x56355e(0x1ca)]];for(const _0x50d7b0 of _0x17e725){const _0x2db335=join(_0x4afcc7,_0x50d7b0);try{return{'buffer':await _0x16ca5f['pibuI'](readFile,_0x2db335),'source':_0x2db335};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x32ff75){const _0xf4af04=_0x31a5,_0x198ac2={'CMJFT':function(_0x2f3236,_0x4cc2bd,_0x26fad7){return _0x2f3236(_0x4cc2bd,_0x26fad7);},'tKTVT':function(_0x10ad80,_0xdb8a56){return _0x10ad80+_0xdb8a56;},'xuLRu':function(_0x42e75b,_0x2bc956,_0x51274f){return _0x42e75b(_0x2bc956,_0x51274f);}},{cwd:_0x302b65,cliArtifactDir:_0x1ab8ea,startTime:_0xd0998d}=_0x32ff75,_0x1f6299=[];await _0x198ac2['CMJFT'](mkdir,_0x1ab8ea,{'recursive':!![]});const _0x15a495=await readdir(_0x302b65,{'withFileTypes':!![]});for(const _0x4c806f of _0x15a495){if(!_0x4c806f['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0xf4af04(0x1c7)](_0x4c806f[_0xf4af04(0x192)]))continue;const _0x27c14d=join(_0x302b65,_0x4c806f['name']),_0x2b04ed=await stat(_0x27c14d);if(_0x198ac2[_0xf4af04(0x182)](_0x2b04ed[_0xf4af04(0x1b2)],0x7d0)<_0xd0998d)continue;const _0x44fe03=_0x198ac2['xuLRu'](buildCliArtifactPath,_0x1ab8ea,_0x4c806f[_0xf4af04(0x192)]);if(_0x27c14d===_0x44fe03)continue;await rename(_0x27c14d,_0x44fe03),_0x1f6299[_0xf4af04(0x197)](_0x4c806f['name']);}return _0x1f6299['sort']();}
@@ -1 +1 @@
1
- const _0x2fac39=_0x3809;(function(_0x3029f7,_0xbc6692){const _0x5371e1=_0x3809,_0xa75ddf=_0x3029f7();while(!![]){try{const _0x24cdc6=parseInt(_0x5371e1(0x14e))/0x1+parseInt(_0x5371e1(0x7c))/0x2*(parseInt(_0x5371e1(0xe3))/0x3)+-parseInt(_0x5371e1(0xac))/0x4*(parseInt(_0x5371e1(0x14a))/0x5)+parseInt(_0x5371e1(0xfc))/0x6*(parseInt(_0x5371e1(0x10e))/0x7)+-parseInt(_0x5371e1(0x150))/0x8*(parseInt(_0x5371e1(0x14f))/0x9)+-parseInt(_0x5371e1(0x9c))/0xa*(parseInt(_0x5371e1(0x7d))/0xb)+parseInt(_0x5371e1(0x117))/0xc;if(_0x24cdc6===_0xbc6692)break;else _0xa75ddf['push'](_0xa75ddf['shift']());}catch(_0x349443){_0xa75ddf['push'](_0xa75ddf['shift']());}}}(_0x3a38,0x7a4fb));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([_0x2fac39(0xed),_0x2fac39(0xae),'verify',_0x2fac39(0x14c),_0x2fac39(0x96),'wait-for',_0x2fac39(0x13c),_0x2fac39(0xba)]),execFileAsync=promisify(execFile);function _0x3809(_0x19de59,_0x431318){_0x19de59=_0x19de59-0x76;const _0x3a38c2=_0x3a38();let _0x380957=_0x3a38c2[_0x19de59];return _0x380957;}function buildCliArtifactPath(_0x227b15,_0x106dff){return join(_0x227b15,_0x106dff);}export class NovaActArtifactRecorder{[_0x2fac39(0x153)];['browser']=null;['context']=null;['frameSession']=null;['frameWrites']=[];[_0x2fac39(0x104)]=0x0;[_0x2fac39(0x103)]=0x0;['traceSampleTimer']=null;['traceSampleInFlight']=null;['tracingStarted']=![];[_0x2fac39(0x134)]=![];[_0x2fac39(0xa3)]=![];['stopped']=![];constructor(_0x1a6a8e){const _0x10fa4b=_0x2fac39;this[_0x10fa4b(0x153)]=_0x1a6a8e;}async[_0x2fac39(0x11b)](){const _0x546c89=_0x2fac39,_0x3980a7={'wbvvH':_0x546c89(0xfa)};if(this[_0x546c89(0xa3)])return;this['startAttempted']=!![];const _0x3d7fb5=await this[_0x546c89(0x126)](),_0x4c2a0c=_0x3d7fb5[_0x546c89(0x152)];if(!_0x4c2a0c)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x546c89(0x153)]['novaOptions']['sessionId']);await mkdir(this['params'][_0x546c89(0x80)],{'recursive':!![]}),this['browser']=await chromium['connectOverCDP'](_0x4c2a0c,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x546c89(0x149)]=this['browser'][_0x546c89(0x11c)]()[0x0]??null;if(!this['context'])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this['context']['tracing'][_0x546c89(0x11b)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x546c89(0x114)](),await this['startScreencast'](),this['params'][_0x546c89(0xdb)][_0x546c89(0x81)]('nova_act_artifact_recording',{...this['params']['transportMetadata'],'cdpEndpoint':_0x4c2a0c,'browserPid':_0x3d7fb5[_0x546c89(0x113)],'sessionState':_0x3d7fb5[_0x546c89(0x119)]}),this['params']['telemetry']['trackPhaseEnd'](_0x3980a7[_0x546c89(0xea)],{...this[_0x546c89(0x153)]['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x546c89(0x134)]});}async['stop'](){const _0x575ab2=_0x2fac39,_0x2c0f01={'VSrJV':_0x575ab2(0x14b)};if(this[_0x575ab2(0x10b)])return;this[_0x575ab2(0x10b)]=!![];const _0x425cce={...this[_0x575ab2(0x153)]['transportMetadata'],'frameCount':this[_0x575ab2(0x104)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this[_0x575ab2(0xc0)],'screencastStarted':this['screencastStarted']};this['params']['telemetry'][_0x575ab2(0x81)](_0x2c0f01['VSrJV'],_0x425cce);try{await this['stopTraceSampling'](),await this[_0x575ab2(0x12b)](),await this['stopScreencast'](),await Promise[_0x575ab2(0x99)](this['frameWrites']);this['context']&&this[_0x575ab2(0xc0)]&&await this[_0x575ab2(0x149)][_0x575ab2(0x82)]['stop']({'path':buildCliArtifactPath(this[_0x575ab2(0x153)][_0x575ab2(0x80)],'trace.zip')});const _0x2346c1=await this['encodeScreencastVideo']();this[_0x575ab2(0x153)][_0x575ab2(0xdb)][_0x575ab2(0x13e)]('nova_act_artifact_recording_stop',{..._0x425cce,'videoPath':_0x2346c1});}catch(_0x673986){await this[_0x575ab2(0x153)]['telemetry']['trackPhaseError'](_0x575ab2(0x14b),_0x673986,_0x425cce);}finally{await this[_0x575ab2(0x100)]?.[_0x575ab2(0x124)]()[_0x575ab2(0x85)](()=>undefined),this[_0x575ab2(0x100)]=null,this[_0x575ab2(0x149)]=null,this[_0x575ab2(0x12d)]=null;}}async['readSessionMetadataWithRetry'](){const _0x281d1b=_0x2fac39,_0x398134={'PtlgL':function(_0xecfaba,_0xc77a6e,_0x25939f,_0x5ed785,_0x1afd06,_0x419e43){return _0xecfaba(_0xc77a6e,_0x25939f,_0x5ed785,_0x1afd06,_0x419e43);},'oZJkx':_0x281d1b(0x8e),'bpOKM':'sessions','CEoWi':function(_0x3be861,_0x15b58d){return _0x3be861-_0x15b58d;}},_0x422fdf=_0x398134[_0x281d1b(0xc8)](join,homedir(),_0x398134[_0x281d1b(0xb6)],_0x281d1b(0x100),_0x398134['bpOKM'],this[_0x281d1b(0x153)]['novaOptions'][_0x281d1b(0x78)]+_0x281d1b(0x83)),_0x156320=Date['now']();let _0x40d3bc;do{try{const _0x49f5dc=JSON['parse'](await readFile(_0x422fdf,_0x281d1b(0x12e)));if(_0x49f5dc['cdp_endpoint'])return _0x49f5dc;_0x40d3bc=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x422fdf);}catch(_0x36f615){_0x40d3bc=_0x36f615;}await delay(0x64);}while(_0x398134['CEoWi'](Date['now'](),_0x156320)<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x40d3bc instanceof Error)throw _0x40d3bc;throw new Error(_0x281d1b(0x125)+_0x422fdf);}async['startScreencast'](){const _0x58c8bc=_0x2fac39,_0x1a133d={'gxVeS':function(_0x192263,_0x859bec,_0x2a9ae6){return _0x192263(_0x859bec,_0x2a9ae6);},'Cilig':function(_0x1c2db9,_0x2e2277){return _0x1c2db9(_0x2e2277);},'aqHwb':'Page.screencastFrame','QIHoh':'Page.startScreencast','MtGUx':'jpeg'};if(!this[_0x58c8bc(0x149)])return;const _0x548bb5=this['context'][_0x58c8bc(0x9e)]()[0x0];if(!_0x548bb5)return;const _0x1f0ef3=this[_0x58c8bc(0x94)]();await mkdir(_0x1f0ef3,{'recursive':!![]});const _0x9053=await this[_0x58c8bc(0x149)]['newCDPSession'](_0x548bb5);this[_0x58c8bc(0x12d)]=_0x9053,_0x9053['on'](_0x1a133d[_0x58c8bc(0x122)],_0x42daf4=>{const _0x235e06=_0x58c8bc,_0x1882ff=++this[_0x235e06(0x104)],_0x3f130b=_0x1a133d[_0x235e06(0x7e)](join,_0x1f0ef3,'frame-'+_0x1a133d['Cilig'](String,_0x1882ff)['padStart'](0x6,'0')+'.jpg'),_0x441faf=writeFile(_0x3f130b,Buffer['from'](_0x42daf4['data'],'base64'))[_0x235e06(0x85)](()=>undefined)['finally'](()=>_0x9053['send'](_0x235e06(0x10f),{'sessionId':_0x42daf4[_0x235e06(0x78)]}))['then'](()=>undefined)[_0x235e06(0x85)](()=>undefined);this['frameWrites'][_0x235e06(0xaf)](_0x441faf);}),await _0x9053['send'](_0x1a133d['QIHoh'],{'format':_0x1a133d[_0x58c8bc(0xb9)],'quality':0x4b,'everyNthFrame':0x6}),this[_0x58c8bc(0x134)]=!![];}async[_0x2fac39(0x136)](){const _0x49cef9=_0x2fac39,_0x5e5039={'NQNrM':'Page.stopScreencast'};if(!this['frameSession']||!this[_0x49cef9(0x134)])return;await this['frameSession']['send'](_0x5e5039['NQNrM'])['catch'](()=>undefined);}[_0x2fac39(0x114)](){const _0x4b4c00=_0x2fac39,_0x4e8469={'qxegz':function(_0x415da6,_0x36a643,_0x17a650){return _0x415da6(_0x36a643,_0x17a650);}};this['queueTraceSample'](),this[_0x4b4c00(0xf4)]=_0x4e8469[_0x4b4c00(0xdc)](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x2fac39(0x92)](){const _0x4e4832=_0x2fac39;if(this['traceSampleInFlight'])return;this[_0x4e4832(0x14d)]=this[_0x4e4832(0x12b)]()[_0x4e4832(0x13d)](()=>{const _0x2b093b=_0x4e4832;this[_0x2b093b(0x14d)]=null;});}async['stopTraceSampling'](){const _0x515fc3=_0x2fac39,_0x401daa={'SPrJM':function(_0x1d4182,_0x34d7f3){return _0x1d4182(_0x34d7f3);}};this['traceSampleTimer']&&(_0x401daa[_0x515fc3(0x123)](clearInterval,this[_0x515fc3(0xf4)]),this['traceSampleTimer']=null),await this[_0x515fc3(0x14d)]?.[_0x515fc3(0x85)](()=>undefined);}async['captureTraceSample'](){const _0x3fcaf1=_0x2fac39,_0x23c096={'EoLva':'body'},_0x59c711=this[_0x3fcaf1(0x149)]?.['pages']()[0x0];if(!_0x59c711)return;try{await _0x59c711[_0x3fcaf1(0xce)](_0x23c096[_0x3fcaf1(0x143)])[_0x3fcaf1(0x138)](_0x578e66=>_0x578e66['tagName'],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x2fac39(0xff)](){const _0x22f471=_0x2fac39,_0x496c7b={'BwSDA':function(_0x262d57,_0x3facef){return _0x262d57<_0x3facef;},'sntdc':function(_0x5d9c41,_0x3b9972,_0x56b985){return _0x5d9c41(_0x3b9972,_0x56b985);},'wEoRR':_0x22f471(0x101),'kbhKC':_0x22f471(0x84),'przje':'-hide_banner','AoUZd':_0x22f471(0xdd),'bzRTQ':_0x22f471(0x112),'QRuEw':_0x22f471(0x146),'IfPOn':_0x22f471(0xf3)};if(_0x496c7b[_0x22f471(0x86)](this['frameCount'],0x2))return null;const _0x9ddc77=await resolveFfmpegPath();if(!_0x9ddc77)return null;const _0x1378cc=_0x496c7b[_0x22f471(0x137)](join,this[_0x22f471(0x153)][_0x22f471(0x80)],_0x496c7b['wEoRR']);await _0x496c7b[_0x22f471(0x137)](mkdir,_0x1378cc,{'recursive':!![]});const _0x22596a=join(_0x1378cc,_0x496c7b['kbhKC']);return await execFileAsync(_0x9ddc77,['-y',_0x496c7b[_0x22f471(0xd1)],_0x496c7b['AoUZd'],_0x22f471(0xfe),_0x22f471(0x151),'10','-i',_0x496c7b['sntdc'](join,this[_0x22f471(0x94)](),_0x496c7b[_0x22f471(0x120)]),'-vf',_0x496c7b['QRuEw'],'-c:v',_0x22f471(0xc6),'-pix_fmt',_0x496c7b[_0x22f471(0xdf)],_0x22596a]),_0x22596a;}['getFrameDir'](){const _0x4ffc1a=_0x2fac39,_0x594066={'Pykxw':function(_0x1181fb,_0x214ca9,_0x137ffd){return _0x1181fb(_0x214ca9,_0x137ffd);},'qzILX':_0x4ffc1a(0xef)};return _0x594066[_0x4ffc1a(0xd9)](join,this['params']['cliArtifactDir'],_0x594066[_0x4ffc1a(0xbf)]);}}async function delay(_0xd2e81e){await new Promise(_0x14ab15=>setTimeout(_0x14ab15,_0xd2e81e));}async function resolveFfmpegPath(){const _0xd58384=_0x2fac39,_0xc54004={'GbpFu':function(_0xd9ae0a,_0x5d8b41){return _0xd9ae0a(_0x5d8b41);},'LJoBk':'ffmpeg','SsomF':function(_0x302c98,_0x3bee67,_0x1174cb,_0xc2d848,_0x3cb29f){return _0x302c98(_0x3bee67,_0x1174cb,_0xc2d848,_0x3cb29f);},'JoXQO':function(_0x3ca95d){return _0x3ca95d();},'nQjSn':'Library','pOTJR':_0xd58384(0xbc),'JFcFC':function(_0x4de6b9,_0x178b78,_0x27ea53,_0x5730cd){return _0x4de6b9(_0x178b78,_0x27ea53,_0x5730cd);},'qmoNY':function(_0x3c0140,_0x43da0b){return _0x3c0140(_0x43da0b);}};if(await _0xc54004[_0xd58384(0xf0)](canRunFfmpeg,_0xc54004['LJoBk']))return _0xc54004['LJoBk'];const _0x5e578f=[_0xc54004['SsomF'](join,_0xc54004[_0xd58384(0xa5)](homedir),_0xc54004[_0xd58384(0x116)],_0xd58384(0xc5),_0xc54004[_0xd58384(0xd8)]),_0xc54004[_0xd58384(0xb7)](join,homedir(),'.cache',_0xc54004['pOTJR'])];for(const _0x196b7b of _0x5e578f){try{const _0x49d8db=await readdir(_0x196b7b),_0x477ae3=_0x49d8db[_0xd58384(0xa7)](_0x54ffc8=>_0x54ffc8[_0xd58384(0xeb)](_0xd58384(0xd6)))[_0xd58384(0xa0)]()[_0xd58384(0xd0)]()[_0xd58384(0x109)](_0x35f264=>[join(_0x196b7b,_0x35f264,'ffmpeg-mac'),join(_0x196b7b,_0x35f264,_0xd58384(0x7a)),join(_0x196b7b,_0x35f264,'ffmpeg.exe')]);for(const _0x484867 of _0x477ae3){if(await _0xc54004[_0xd58384(0x128)](canRunFfmpeg,_0x484867))return _0x484867;}}catch{}}return null;}async function canRunFfmpeg(_0x505163){try{return await execFileAsync(_0x505163,['-version']),!![];}catch{return![];}}function toStepDisplayName(_0x52d072){const _0x5e0ab2=_0x2fac39,_0x1ac2d8={'FlFue':function(_0xe28b7d,_0x5b19f0){return _0xe28b7d(_0x5b19f0);}},_0x4594ba=basename(_0x52d072)[_0x5e0ab2(0xf2)](/\.(?:png|ya?ml)$/i,'')[_0x5e0ab2(0xf2)](/^key_/i,'')['replace'](/^\d+_/,'')[_0x5e0ab2(0xf2)](/-/g,'\x20');return{'name':_0x4594ba,'isKeyStep':/^key_/i['test'](_0x1ac2d8['FlFue'](basename,_0x52d072))};}function extractShellValue(_0x3d4668){if(!_0x3d4668)return null;return _0x3d4668[0x1]??_0x3d4668[0x2]??_0x3d4668[0x3]??null;}function extractOutputOption(_0x81ef3a){const _0xbb4514=_0x2fac39;return extractShellValue(_0x81ef3a[_0xbb4514(0x88)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x17302d,_0x17c3ef){const _0x3daec7=_0x2fac39,_0x44ee34={'FLvGH':'execute','aqsdA':'verify','GUPma':'ask','oSrSo':_0x3daec7(0xa9),'GcYsA':_0x3daec7(0x110),'gMlbO':_0x3daec7(0x8f),'lfWOl':_0x3daec7(0x95),'dQCCA':_0x3daec7(0x13c),'qjxuz':'capture\x20snapshot','xLQOf':function(_0x17e969,_0x36628f){return _0x17e969(_0x36628f);},'KIfqa':_0x3daec7(0xba),'ujrie':_0x3daec7(0xd7),'lnBBY':_0x3daec7(0xb8)};switch(_0x17c3ef){case'session\x20create':return'create\x20Nova\x20browser\x20session';case _0x44ee34['FLvGH']:return'execute\x20Nova\x20browser\x20action';case _0x44ee34[_0x3daec7(0xc1)]:return'verify\x20page\x20condition';case _0x44ee34['GUPma']:return _0x44ee34[_0x3daec7(0xda)];case'goto':return _0x44ee34['GcYsA'];case _0x44ee34[_0x3daec7(0xa8)]:return _0x44ee34['lfWOl'];case _0x44ee34['dQCCA']:{const _0xa7cd6=extractOutputOption(_0x17302d);if(!_0xa7cd6)return _0x44ee34[_0x3daec7(0x11e)];const {name:_0x5e9792}=_0x44ee34[_0x3daec7(0xf6)](toStepDisplayName,_0xa7cd6);return'capture\x20snapshot\x20`'+_0x5e9792+'`';}case _0x44ee34[_0x3daec7(0x7f)]:{const _0x4141cb=extractOutputOption(_0x17302d);if(!_0x4141cb)return _0x44ee34['ujrie'];const {name:_0x7f3042,isKeyStep:_0xca4803}=_0x44ee34[_0x3daec7(0xf6)](toStepDisplayName,_0x4141cb);return _0xca4803?'capture\x20key\x20step\x20`'+_0x7f3042+'`':'capture\x20step\x20`'+_0x7f3042+'`';}case'session\x20export':return _0x44ee34['lnBBY'];default:return _0x17c3ef;}}function getNovaActCliCommandBlockReason(_0x38f1ab){const _0x3af525=_0x2fac39,_0x126f7a={'ptkrZ':_0x3af525(0x127),'SNfUX':'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.'},_0x14f384=parseNovaActCliCommand(_0x38f1ab);if(!_0x14f384)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'](_0x14f384))return _0x3af525(0xb2)+_0x14f384+_0x3af525(0x9b);if(_0x14f384===_0x3af525(0x77)&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x38f1ab))return _0x126f7a[_0x3af525(0xa1)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x3af525(0x12c)](_0x38f1ab))return _0x126f7a[_0x3af525(0xe5)];return null;}function buildFeedbackSection(_0xecd32a){const _0x2200b6=_0x2fac39,_0x161f17={'nRQGH':_0x2200b6(0xc9),'VCEFB':_0x2200b6(0xd5),'dAKdP':'numeric'};if(!_0xecd32a||_0xecd32a['unaddressedComments']['length']===0x0)return'';const _0x11c93c=_0xecd32a[_0x2200b6(0x10c)][_0x2200b6(0x11f)](_0x4b9b9e=>{const _0x657cd2=_0x2200b6,_0x3924cc=new Date(_0x4b9b9e['createdAt'])[_0x657cd2(0x13b)](_0x161f17[_0x657cd2(0xb3)],{'month':_0x161f17[_0x657cd2(0xa4)],'day':_0x161f17[_0x657cd2(0x13a)]}),_0x216dfb=_0x4b9b9e['authorName']||_0x4b9b9e['authorEmail']||'Reviewer',_0x2ffe4c=_0x4b9b9e[_0x657cd2(0xbb)]?_0x657cd2(0x111)+(_0x4b9b9e['domRef']['selector'][_0x657cd2(0x8d)]('\x20>\x20')['pop']()?.[_0x657cd2(0x8d)](':')[0x0]||_0x657cd2(0x139))+_0x657cd2(0x147)+(_0x4b9b9e['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x4b9b9e['id']+_0x657cd2(0x105)+_0x216dfb+_0x657cd2(0xbe)+_0x3924cc+_0x657cd2(0x11a)+_0x4b9b9e[_0x657cd2(0xf8)]+'\x22'+_0x2ffe4c;})['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'+_0x11c93c;}function buildNovaSharedOptionsInstruction(_0x1734e0){const _0x3b5be1=_0x2fac39;if(!_0x1734e0['trim']())return _0x3b5be1(0xf1);return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x1734e0;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x38e313){const _0x28a306=_0x2fac39,_0x49de8b={'hwdWf':function(_0x56c9de,_0x1927b2,_0x3d4c57){return _0x56c9de(_0x1927b2,_0x3d4c57);},'leshA':function(_0x2e23d0,_0x5c474e,_0x3974f3){return _0x2e23d0(_0x5c474e,_0x3974f3);},'rezlk':'01_initial-state.png','zNrqn':'02_final-state.yml','EmNCD':'03_final-state.png','uqEzI':function(_0x3942ba,_0xcedcb1){return _0x3942ba(_0xcedcb1);}},{novaCommandPrefix:_0x3cb711,novaSharedOptionsSuffix:_0x10bd11,cliArtifactDir:_0x3de723,url:_0x33bd26}=_0x38e313,_0x2c98a5=_0x49de8b['hwdWf'](buildCliArtifactPath,_0x3de723,_0x28a306(0xfb)),_0x582448=_0x49de8b['leshA'](buildCliArtifactPath,_0x3de723,_0x49de8b[_0x28a306(0xe1)]),_0x5a4b2e=buildCliArtifactPath(_0x3de723,_0x49de8b[_0x28a306(0x87)]),_0xe94134=buildCliArtifactPath(_0x3de723,_0x49de8b['EmNCD']);return _0x28a306(0x142)+_0x3cb711+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x10bd11)+'\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`'+_0x3cb711+'\x20session\x20create\x20'+quoteShellArg(_0x33bd26)+'\x20'+_0x10bd11+_0x28a306(0x8a)+_0x3cb711+'\x20snapshot\x20--output\x20'+_0x49de8b[_0x28a306(0x118)](quoteShellArg,_0x2c98a5)+'\x20'+_0x10bd11+'`\x0a3.\x20Run\x20`'+_0x3cb711+_0x28a306(0x97)+quoteShellArg(_0x582448)+'\x20'+_0x10bd11+'`\x0a4.\x20Run\x20one\x20batched\x20`'+_0x3cb711+_0x28a306(0xb0)+_0x3cb711+_0x28a306(0xb5)+quoteShellArg(_0x5a4b2e)+'\x20'+_0x10bd11+'`\x0a6.\x20Run\x20`'+_0x3cb711+_0x28a306(0x97)+quoteShellArg(_0xe94134)+'\x20'+_0x10bd11+_0x28a306(0xd4)+_0x3de723+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x2ee959){const _0x1a67df=_0x2fac39,_0x158113={'CtCRW':function(_0x51230d,_0x5a498e){return _0x51230d(_0x5a498e);},'cMiAY':function(_0xd5b24a,_0x14087f,_0x57ba95){return _0xd5b24a(_0x14087f,_0x57ba95);},'mqqnS':'01_initial.yml','vJpRN':'01_initial-state.png','XIqgv':function(_0x473ba9,_0x2427f7,_0x1e8d9c){return _0x473ba9(_0x2427f7,_0x1e8d9c);},'XVNDP':function(_0x482b45,_0x19ee03){return _0x482b45(_0x19ee03);}},{checklistItem:_0x138d14,itemFeedback:_0x87232f,taskDescription:_0x5e4de9,novaCommandPrefix:_0x135115,novaSharedOptionsSuffix:_0x50f024,cliArtifactDir:_0x5a827b,url:_0x69c873,loginInstructions:_0x1bb789}=_0x2ee959,_0x1519ba=_0x138d14[_0x1a67df(0xee)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x138d14[_0x1a67df(0xee)]:'',_0x59b51e=_0x158113['CtCRW'](buildFeedbackSection,_0x87232f),_0x1864db=_0x87232f?.[_0x1a67df(0x13f)]?_0x1a67df(0x98)+_0x87232f['canonicalFlow']:'',_0x5f000b=_0x1bb789?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x1bb789+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x2ccda2=_0x158113[_0x1a67df(0xe4)](buildCliArtifactPath,_0x5a827b,_0x158113[_0x1a67df(0x12a)]),_0x4cce71=buildCliArtifactPath(_0x5a827b,_0x158113['vJpRN']),_0x5812ad=_0x158113['XIqgv'](buildCliArtifactPath,_0x5a827b,_0x1a67df(0xf9));return _0x1a67df(0x107)+_0x138d14[_0x1a67df(0x76)]+_0x1519ba+_0x59b51e+_0x1864db+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x5e4de9+_0x1a67df(0xe0)+_0x69c873+_0x1a67df(0x93)+_0x5f000b+_0x1a67df(0xad)+_0x135115+_0x1a67df(0xf5)+_0x158113['XVNDP'](quoteShellArg,_0x69c873)+'\x20'+_0x50f024+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x5a827b+_0x1a67df(0xd2)+_0x135115+_0x1a67df(0xb5)+_0x158113['CtCRW'](quoteShellArg,_0x2ccda2)+'\x20'+_0x50f024+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x135115+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x4cce71)+'\x20'+_0x50f024+'`.\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`'+_0x5812ad+'`.\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`'+_0x135115+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x50f024[_0x1a67df(0xc4)]()?'`'+_0x50f024+'`':_0x1a67df(0xbd))+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x50f024)+_0x1a67df(0x155)+_0x135115+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x50f024+'`\x0a-\x20`'+_0x135115+_0x1a67df(0x140)+_0x50f024+_0x1a67df(0x9d)+_0x135115+_0x1a67df(0xb5)+quoteShellArg(_0x2ccda2)+'\x20'+_0x50f024+'`\x0a-\x20`'+_0x135115+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x5812ad)+'\x20'+_0x50f024+_0x1a67df(0x121);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x3316a4){const _0x4b24e9=_0x2fac39,_0x49c0e9=[..._0x3316a4[_0x4b24e9(0xcd)]()][_0x4b24e9(0xa0)]();let _0x5ae20e=0x0;for(const _0x43000b of _0x3316a4['values']()){_0x5ae20e+=_0x43000b;}return{'cliCommandCount':_0x5ae20e,'cliCommandsSeen':_0x49c0e9,'noCliCommandsCalled':_0x5ae20e===0x0};}export function createVerifyFeatureNovaCliHooks(_0x7fa5fd,_0x1c0037){const _0x1bfd4c=_0x2fac39,_0x245dda={'sheKJ':function(_0x3d1c47,_0x24d998){return _0x3d1c47!==_0x24d998;},'xpULn':'Bash','LQZTK':function(_0x49a363,_0x4c4036){return _0x49a363(_0x4c4036);},'kkNeJ':_0x1bfd4c(0xde),'tcAqd':function(_0x43c85f,_0x58dbc2){return _0x43c85f(_0x58dbc2);},'gteIe':function(_0x296d08,_0x1b5f31){return _0x296d08===_0x1b5f31;},'oINLG':_0x1bfd4c(0x141),'VXqLQ':function(_0x30dfe5,_0x4be8a5){return _0x30dfe5!==_0x4be8a5;},'TWkvJ':'PostToolUseFailure','fuihY':function(_0x457b4b,_0x2ed9be){return _0x457b4b!==_0x2ed9be;},'hlBuS':'nova_act_command_failure'},_0x2b2eb7=new Map(),_0x258caa=async _0x3459d4=>{const _0x5411b0=_0x1bfd4c;if(_0x3459d4['hook_event_name']!=='PreToolUse')return{};const _0x3654b7=_0x3459d4;if(_0x245dda['sheKJ'](_0x3654b7[_0x5411b0(0xc2)],_0x245dda[_0x5411b0(0xa6)]))return{};const _0x2bfd01=_0x3654b7['tool_input'],_0x2d78b9=extractBashCommand(_0x2bfd01);if(!_0x2d78b9)return{};const _0x36aee9=_0x245dda[_0x5411b0(0xa2)](getNovaActCliCommandBlockReason,_0x2d78b9);if(!_0x36aee9)return{};return{'decision':'block','reason':_0x36aee9};},_0xcd859d=async _0x38cb66=>{const _0xd625c3=_0x1bfd4c;if(_0x245dda['sheKJ'](_0x38cb66['hook_event_name'],'PostToolUse'))return{};const _0x2e31a0=_0x38cb66;if(_0x2e31a0[_0xd625c3(0xc2)]!==_0x245dda['xpULn'])return{};const _0x5a4805=_0x2e31a0['tool_input'],_0x3a9f6f=extractBashCommand(_0x5a4805);if(!_0x3a9f6f)return{};const _0x35f225=parseNovaActCliCommand(_0x3a9f6f);if(!_0x35f225)return{};_0x2b2eb7['set'](_0x35f225,(_0x2b2eb7['get'](_0x35f225)||0x0)+0x1),_0x7fa5fd[_0xd625c3(0x81)](_0x245dda[_0xd625c3(0x129)],{'subcommand':_0x35f225}),_0x7fa5fd['trackPhaseEnd'](_0x245dda['kkNeJ'],{'subcommand':_0x35f225,'commandPreview':_0x245dda[_0xd625c3(0xd3)](previewNovaActCliCommand,_0x3a9f6f)}),console[_0xd625c3(0xe7)](_0xd625c3(0x132)+formatNovaActCliLog(_0x3a9f6f,_0x35f225));if(_0x245dda['gteIe'](_0x35f225,'session\x20create')&&_0x1c0037)try{await _0x1c0037['start']();}catch(_0x391c4b){await _0x7fa5fd['trackPhaseError']('nova_act_artifact_recording',_0x391c4b,{'transport':_0x245dda[_0xd625c3(0x79)]});}return{};},_0x190b1b=async _0x4e9e6d=>{const _0x3b45b8=_0x1bfd4c;if(_0x245dda['VXqLQ'](_0x4e9e6d['hook_event_name'],_0x245dda['TWkvJ']))return{};const _0x11559b=_0x4e9e6d;if(_0x245dda['fuihY'](_0x11559b['tool_name'],_0x3b45b8(0xf7)))return{};return await _0x7fa5fd['trackPhaseError'](_0x245dda['hlBuS'],_0x11559b['error'],{'transport':_0x3b45b8(0x141),'toolName':'Bash'}),{};};return{'preToolUseHook':_0x258caa,'postToolUseHook':_0xcd859d,'postToolUseFailureHook':_0x190b1b,'commandCounts':_0x2b2eb7};}async function runNovaLifecycleCommand(_0x266fb5){const _0x2eeb28=_0x2fac39,_0xb7ba00={'SyyOg':function(_0x2c8a10,_0x3ab898){return _0x2c8a10(_0x3ab898);},'IUGNc':function(_0x2fe709,_0x47ebc7){return _0x2fe709(_0x47ebc7);},'qdYPc':function(_0x16c27a,_0xd8c5be){return _0x16c27a(_0xd8c5be);}},{novaOptions:_0x838a6,commandArgs:_0x20f517,telemetry:_0x3d5dc9,phase:_0x2ae0ad,metadata:_0x592fab,timeoutMs:_0x320aa5}=_0x266fb5;_0x3d5dc9['trackPhaseStart'](_0x2ae0ad,_0x592fab);try{const _0x367ac3=await _0xb7ba00[_0x2eeb28(0x145)](runNovaActCliCommand,{..._0x838a6,'commandArgs':_0x20f517,'cwd':process['cwd'](),'env':process['env'],'timeoutMs':_0x320aa5??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x3d5dc9[_0x2eeb28(0x13e)](_0x2ae0ad,{..._0x592fab,'subcommand':_0x367ac3[_0x2eeb28(0x91)]['subcommand'],'commandPreview':_0xb7ba00[_0x2eeb28(0x9a)](previewNovaActCliCommand,_0x367ac3['invocation'][_0x2eeb28(0x131)]),'stdoutPreview':previewNovaActCliCommand(_0x367ac3[_0x2eeb28(0x115)]),'stderrPreview':_0xb7ba00[_0x2eeb28(0xca)](previewNovaActCliCommand,_0x367ac3[_0x2eeb28(0x90)]),'logDir':extractNovaActLogDir(_0x367ac3['stdout'])});}catch(_0x321501){await _0x3d5dc9[_0x2eeb28(0xe9)](_0x2ae0ad,_0x321501,_0x592fab);throw _0x321501;}}export async function finalizeVerifyFeatureNovaCliSession(_0x1d9205){const _0x48ff00=_0x2fac39,_0x434271={'Wkxwu':_0x48ff00(0xba),'nGYAT':_0x48ff00(0xb4),'yGNBL':_0x48ff00(0xe6),'FVghu':'snapshot','ApxfL':function(_0x2cc870,_0x19bede,_0x17ceec){return _0x2cc870(_0x19bede,_0x17ceec);},'XAuKE':_0x48ff00(0x133),'ObvDJ':_0x48ff00(0x130),'rzRVY':function(_0x5bcafe,_0x1ffcb8,_0x3328ef){return _0x5bcafe(_0x1ffcb8,_0x3328ef);},'wiWPf':_0x48ff00(0x135),'QECcn':'export','QjGLe':_0x48ff00(0x156),'kbfch':_0x48ff00(0x102),'LxWyW':_0x48ff00(0xab),'aLxHj':'close'},{telemetry:_0x1e2266,novaOptions:_0x37947a,cliArtifactDir:_0xfe5e52,transportMetadata:_0x26e078,artifactRecorder:_0x385a63}=_0x1d9205,_0x53f7d1=[{'phase':_0x48ff00(0xec),'commandArgs':[_0x434271['Wkxwu'],_0x48ff00(0x130),buildCliArtifactPath(_0xfe5e52,_0x434271['nGYAT'])]},{'phase':_0x434271[_0x48ff00(0xcf)],'commandArgs':[_0x434271[_0x48ff00(0x8c)],_0x48ff00(0x130),_0x434271[_0x48ff00(0xcb)](buildCliArtifactPath,_0xfe5e52,'final-state.yaml')]},{'phase':_0x48ff00(0x8b),'commandArgs':[_0x434271['XAuKE'],'export',_0x48ff00(0xcc),'json',_0x434271[_0x48ff00(0xaa)],_0x434271['rzRVY'](buildCliArtifactPath,_0xfe5e52,_0x434271['wiWPf'])]},{'phase':'nova_act_session_report','commandArgs':['session',_0x434271['QECcn'],'--report',_0x434271[_0x48ff00(0xc3)],_0x434271['ApxfL'](buildCliArtifactPath,_0xfe5e52,_0x434271['kbfch'])]},{'phase':_0x434271[_0x48ff00(0x108)],'commandArgs':[_0x434271['XAuKE'],_0x434271['aLxHj']]}];for(const _0x2a31f3 of _0x53f7d1){_0x2a31f3[_0x48ff00(0xfd)]===_0x48ff00(0xab)&&await _0x385a63?.[_0x48ff00(0x144)]();try{await runNovaLifecycleCommand({'novaOptions':_0x37947a,'commandArgs':[..._0x2a31f3['commandArgs']],'telemetry':_0x1e2266,'phase':_0x2a31f3['phase'],'metadata':_0x26e078});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x5bc8bb){const _0x52656e=_0x2fac39,_0x458be4={'vwMDO':function(_0x2bb41c,_0x26f58d,_0xe6d0b4){return _0x2bb41c(_0x26f58d,_0xe6d0b4);},'neMQm':function(_0x2f2e2a,_0x4716a2){return _0x2f2e2a<_0x4716a2;},'jKjwo':function(_0x23c565,_0x3e5387){return _0x23c565+_0x3e5387;}},{cwd:_0x30b4e6,cliArtifactDir:_0x50eb1c,startTime:_0x5ed44a}=_0x5bc8bb,_0x59594d=[];await mkdir(_0x50eb1c,{'recursive':!![]});const _0x50aa64=await readdir(_0x30b4e6,{'withFileTypes':!![]});for(const _0x15dce3 of _0x50aa64){if(!_0x15dce3[_0x52656e(0x154)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x52656e(0x12c)](_0x15dce3['name']))continue;const _0x388a2f=_0x458be4[_0x52656e(0x89)](join,_0x30b4e6,_0x15dce3['name']),_0x2e8a5c=await stat(_0x388a2f);if(_0x458be4['neMQm'](_0x458be4[_0x52656e(0x12f)](_0x2e8a5c['mtimeMs'],0x7d0),_0x5ed44a))continue;const _0x534249=buildCliArtifactPath(_0x50eb1c,_0x15dce3[_0x52656e(0x148)]);if(_0x388a2f===_0x534249)continue;await rename(_0x388a2f,_0x534249),_0x59594d[_0x52656e(0xaf)](_0x15dce3['name']);}return _0x59594d[_0x52656e(0xa0)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x21e0c6){const _0x50cef3=_0x2fac39,_0x5ac029={'vSPgn':function(_0x4d1d78,_0x562022,_0xc5add8){return _0x4d1d78(_0x562022,_0xc5add8);},'qdlaN':'trace.zip','riQgn':function(_0x56153d,_0x29dedd){return _0x56153d(_0x29dedd);}},_0xf53c87=_0x5ac029['vSPgn'](join,_0x21e0c6,_0x5ac029['qdlaN']);try{return{'buffer':await readFile(_0xf53c87),'source':_0xf53c87};}catch{return{'buffer':await _0x5ac029[_0x50cef3(0x9f)](zipVerifyFeatureNovaArtifacts,_0x21e0c6),'source':_0x21e0c6};}}async function zipVerifyFeatureNovaArtifacts(_0x3fd64b){const _0x3647e0=_0x2fac39,_0x31dd86={'ofPTN':function(_0x103253,_0x5d9635,_0x4c68af,_0x204cb9){return _0x103253(_0x5d9635,_0x4c68af,_0x204cb9);},'CsQKG':'zip','PgFHi':_0x3647e0(0xc7),'uOSTV':'nova-user-data/*','HRyon':function(_0x4f9b9d,_0x42e10a){return _0x4f9b9d(_0x42e10a);}},_0x3eea9d=_0x31dd86['ofPTN'](join,_0x3fd64b,'..','nova-artifacts.zip');try{return await _0x31dd86['ofPTN'](execFileAsync,_0x31dd86[_0x3647e0(0x106)],[_0x31dd86['PgFHi'],_0x3eea9d,'.','-x',_0x31dd86['uOSTV']],{'cwd':_0x3fd64b}),await _0x31dd86[_0x3647e0(0xb1)](readFile,_0x3eea9d);}finally{await rm(_0x3eea9d,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x4ded53){const _0x354da7=_0x2fac39,_0x1c3cee={'cqxam':function(_0x1efbf9,_0x47140c,_0x36aee3){return _0x1efbf9(_0x47140c,_0x36aee3);}},_0x5ceb66=buildNovaActCliInvocation(_0x4ded53['novaOptions'],_0x4ded53[_0x354da7(0x10a)]);return{'command':_0x5ceb66[_0x354da7(0xe8)],'args':_0x5ceb66[_0x354da7(0xe2)],'commandPreview':previewNovaActCliCommand(_0x5ceb66['shellCommand']),'subcommand':_0x5ceb66[_0x354da7(0x11d)],'sharedOptionsSuffix':_0x1c3cee[_0x354da7(0x7b)](buildNovaActCliSharedOptionsSuffix,_0x4ded53[_0x354da7(0x10d)],_0x4ded53['commandArgs'])};}function _0x3a38(){const _0xa50888=['stderr','invocation','queueTraceSample','\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','getFrameDir','wait\x20for\x20page\x20condition','goto','\x20screenshot\x20--output\x20','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','allSettled','IUGNc','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','10QXLCuM','`\x0a-\x20`','pages','riQgn','sort','ptkrZ','LQZTK','startAttempted','VCEFB','JoXQO','xpULn','filter','gMlbO','ask\x20page\x20question','ObvDJ','nova_act_session_close','30040PaJBCm','\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`','execute','push','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','HRyon','Nova\x20command\x20`','nRQGH','key_final-state.png','\x20snapshot\x20--output\x20','oZJkx','JFcFC','export\x20Nova\x20session','MtGUx','screenshot','domRef','ms-playwright','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','**\x20(','qzILX','tracingStarted','aqsdA','tool_name','QjGLe','trim','Caches','libvpx-vp9','-qr','PtlgL','en-US','qdYPc','ApxfL','--format','keys','locator','yGNBL','reverse','przje','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','tcAqd','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','short','ffmpeg-','capture\x20screenshot','pOTJR','Pykxw','oSrSo','telemetry','qxegz','-loglevel','nova_act_command','IfPOn','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','rezlk','args','999831lLuHJh','cMiAY','SNfUX','nova_act_final_snapshot','log','command','trackPhaseError','wbvvH','startsWith','nova_act_final_screenshot','session\x20create','notes','nova-video-frames','GbpFu','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.','replace','yuv420p','traceSampleTimer','\x20session\x20create\x20','xLQOf','Bash','content','key_03_success-state.png','nova_act_artifact_recording','00_initial-state.yml','3371946efcvAp','phase','error','encodeScreencastVideo','browser','videos','nova-report','traceSampleCount','frameCount',']\x20**','CsQKG','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','LxWyW','flatMap','commandArgs','stopped','unaddressedComments','novaOptions','7VwRPuB','Page.screencastFrameAck','navigate\x20browser','\x20(on\x20element:\x20<','frame-%06d.jpg','browser_pid','startTraceSampling','stdout','nQjSn','14129544dazadm','uqEzI','state','):\x20\x22','start','contexts','subcommand','qjxuz','map','bzRTQ','`\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.','aqHwb','SPrJM','close','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','readSessionMetadataWithRetry','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.','qmoNY','kkNeJ','mqqnS','captureTraceSample','test','frameSession','utf-8','jKjwo','--output','shellCommand','[nova-act-cli]\x20','session','screencastStarted','nova-session-export.json','stopScreencast','sntdc','evaluate','element','dAKdP','toLocaleDateString','snapshot','finally','trackPhaseEnd','canonicalFlow','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','nova-act-cli','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','EoLva','stop','SyyOg','scale=trunc(iw/2)*2:trunc(ih/2)*2','>\x20\x22','name','context','450WqDVVD','nova_act_artifact_recording_stop','ask','traceSampleInFlight','225005jdMKRL','9549soLvBB','2456ramsBV','-framerate','cdp_endpoint','params','isFile','\x0a\x0aExamples:\x0a-\x20`','--output-dir','description','verify','sessionId','oINLG','ffmpeg-linux','cqxam','2gXGutM','8746331TMxrby','gxVeS','KIfqa','cliArtifactDir','trackPhaseStart','tracing','.json','session-recording.webm','catch','BwSDA','zNrqn','match','vwMDO','`\x0a2.\x20Run\x20`','nova_act_session_export','FVghu','split','.act_cli','wait-for'];_0x3a38=function(){return _0xa50888;};return _0x3a38();}
1
+ const _0x12e0e8=_0x20c2;(function(_0x4549ec,_0x208c2a){const _0x136d12=_0x20c2,_0x1ec0d9=_0x4549ec();while(!![]){try{const _0x1b0bf=-parseInt(_0x136d12(0x124))/0x1+parseInt(_0x136d12(0x187))/0x2+parseInt(_0x136d12(0x168))/0x3*(parseInt(_0x136d12(0x10b))/0x4)+-parseInt(_0x136d12(0x106))/0x5+-parseInt(_0x136d12(0x193))/0x6*(-parseInt(_0x136d12(0x17b))/0x7)+-parseInt(_0x136d12(0x153))/0x8*(-parseInt(_0x136d12(0x136))/0x9)+parseInt(_0x136d12(0x181))/0xa*(parseInt(_0x136d12(0x116))/0xb);if(_0x1b0bf===_0x208c2a)break;else _0x1ec0d9['push'](_0x1ec0d9['shift']());}catch(_0x41a026){_0x1ec0d9['push'](_0x1ec0d9['shift']());}}}(_0xdc7c,0x6539e));function _0x20c2(_0x228f8e,_0x525d21){_0x228f8e=_0x228f8e-0xbb;const _0xdc7c56=_0xdc7c();let _0x20c22e=_0xdc7c56[_0x228f8e];return _0x20c22e;}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';function _0xdc7c(){const _0x659e5f=['set','tool_name','nova_act_command_failure','readSessionMetadataWithRetry','contexts','jjauU','notes','xfUbX','send','.json','element','final-state.yaml','log','--format','snapshot','Page.screencastFrameAck','then','encodeScreencastVideo','scale=trunc(iw/2)*2:trunc(ih/2)*2','connectOverCDP','.jpg','\x20snapshot\x20--output\x20','BDmcR','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','nova_act_artifact_recording','zip','\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`','nafsV','YxrLs','context','\x0a\x0a##\x20Additional\x20Notes\x0a','gBkLU','WQdfA','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','textContent','stop','description','sGGrh','frame-%06d.jpg','KoFmc','startTraceSampling','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','params','PZupl','test','-qr','02_final-state.yml','trackPhaseEnd','twPBV','navigate\x20browser','aSPkf','msSzj','shellCommand','Library','name','clcwt','values','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.','nova-artifacts.zip','\x20>\x20','wKsRK','nova_act_session_export','\x0a\x0aExamples:\x0a-\x20`','rmQmB','nova-session-export.json','`.\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`','capture\x20snapshot','capture\x20key\x20step\x20`','commandArgs','.act_cli','rjHeN','fIOiv','tqcra','novaOptions','domRef','stopped','kGZcB','startAttempted','stopScreencast','GEbyQ','01_initial.yml','frameSession','1672290NpjPql','`\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.','yuv420p','nova-report','stopTraceSampling','52Rhlcfx','Caches','tool_input','trackPhaseStart','jjtTd','getFrameDir','AMcZC','startsWith','wCTEG','create\x20Nova\x20browser\x20session','unaddressedComments','681241rKSZEJ','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','jstnh','numeric','zfIWG','stdout','`\x0a4.\x20Run\x20one\x20batched\x20`','tagName','01_initial-state.png','>\x20\x22','ask\x20page\x20question','qkhmX','BiMGH','-\x20[','435331IFeBwQ','frameWrites','ffmpeg','Bash','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','bCDGn','frameCount','startScreencast','nova_act_final_screenshot','jnbCc','replace','catch','vlyEq','selector','start','now','jnLQf','RvEft','2290311DwOIFA','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','-hide_banner','verify','\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','GBkuq','parse','rkFNJ','cwd','browser','LbsCZ','sort','cliArtifactDir','videos','Nova\x20command\x20`','uOOZh','-framerate','qUljc','session\x20create','OSalZ','qEPak','phase','-pix_fmt','from','ZSBdH','keys','session-recording.webm','execute\x20Nova\x20browser\x20action','close','8tQRLMJ','telemetry','\x20screenshot\x20--output\x20','PostToolUseFailure','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','--report','frame-','subcommand','env','TUDjG','IRrYf','zzCSG','short','trim','traceSampleTimer','screenshot','00_initial-state.yml','browser_pid','authorName','`\x0a3.\x20Run\x20`','.cache','93237wIzfEK','nova_act_final_snapshot','pages','vqoXk','push','nova_act_session_close','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','ask','qNTmp','nova-act-cli','ZEJvW','`\x0a6.\x20Run\x20`','sVFyG','\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`','error','yWrIG','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','`\x0a-\x20`','screencastStarted','198142XVgpoZ','SpStD','traceSampleCount','nahbf','ThXxD','CLqgU','30VooWGZ','mtimeMs','tracingStarted','ms-playwright','queueTraceSample','key_03_success-state.png','623612ejFLZC','-c:v','sessions','hook_event_name','sessionId','LPHps','Reviewer','OjMoQ','canonicalFlow','--output','capture\x20screenshot','content','6VKlHjl','Drphi','DoNyD','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','aMKRC','\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','-version','`\x0a2.\x20Run\x20`','wait-for','VhbFO'];_0xdc7c=function(){return _0x659e5f;};return _0xdc7c();}import{promisify}from'util';import{chromium}from'playwright';import{buildNovaActCliInvocation,buildNovaActCliSharedOptionsSuffix,extractNovaActLogDir,parseNovaActCliCommand,previewNovaActCliCommand,runNovaActCliCommand}from'./utils/novaActCli.js';import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';const NOVA_ACT_CLI_COMMAND_TIMEOUT_MS=0x1d4c0,NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS=0x3a98,NOVA_ARTIFACT_METADATA_WAIT_MS=0x1388,NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS=0x1388,VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|final-state\.ya?ml|nova-session-export\.json)$/i,NOVA_ACT_ALLOWED_AGENT_COMMANDS=new Set(['session\x20create','execute',_0x12e0e8(0x139),'ask','goto',_0x12e0e8(0x19b),_0x12e0e8(0xc2),_0x12e0e8(0x162)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x9dfcd5,_0x3bb51d){return join(_0x9dfcd5,_0x3bb51d);}export class NovaActArtifactRecorder{['params'];['browser']=null;[_0x12e0e8(0xd1)]=null;['frameSession']=null;['frameWrites']=[];['frameCount']=0x0;['traceSampleCount']=0x0;[_0x12e0e8(0x161)]=null;['traceSampleInFlight']=null;['tracingStarted']=![];['screencastStarted']=![];[_0x12e0e8(0x101)]=![];[_0x12e0e8(0xff)]=![];constructor(_0x4d0a0e){const _0x3ffea2=_0x12e0e8;this[_0x3ffea2(0xde)]=_0x4d0a0e;}async['start'](){const _0x4f1bba=_0x12e0e8,_0x1f581b={'ZhzEk':'Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','xcqLH':_0x4f1bba(0xcc)};if(this[_0x4f1bba(0x101)])return;this[_0x4f1bba(0x101)]=!![];const _0xd44d37=await this['readSessionMetadataWithRetry'](),_0x4132a5=_0xd44d37['cdp_endpoint'];if(!_0x4132a5)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x4f1bba(0xde)]['novaOptions'][_0x4f1bba(0x18b)]);await mkdir(this['params']['cliArtifactDir'],{'recursive':!![]}),this[_0x4f1bba(0x13f)]=await chromium[_0x4f1bba(0xc7)](_0x4132a5,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this['browser'][_0x4f1bba(0x1a1)]()[0x0]??null;if(!this['context'])throw new Error(_0x1f581b['ZhzEk']);await this['context']['tracing']['start']({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x4f1bba(0xdc)](),await this['startScreencast'](),this['params']['telemetry']['trackPhaseStart'](_0x1f581b['xcqLH'],{...this[_0x4f1bba(0xde)]['transportMetadata'],'cdpEndpoint':_0x4132a5,'browserPid':_0xd44d37[_0x4f1bba(0x164)],'sessionState':_0xd44d37['state']}),this['params']['telemetry']['trackPhaseEnd'](_0x4f1bba(0xcc),{...this['params']['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x25f2ab=_0x12e0e8,_0x25915a={'GEbyQ':'nova_act_artifact_recording_stop'};if(this['stopped'])return;this[_0x25f2ab(0xff)]=!![];const _0x185261={...this['params']['transportMetadata'],'frameCount':this[_0x25f2ab(0x12a)],'traceSampleCount':this[_0x25f2ab(0x17d)],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']};this['params'][_0x25f2ab(0x154)]['trackPhaseStart'](_0x25915a[_0x25f2ab(0x103)],_0x185261);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this[_0x25f2ab(0x102)](),await Promise['allSettled'](this[_0x25f2ab(0x125)]);this[_0x25f2ab(0xd1)]&&this[_0x25f2ab(0x183)]&&await this['context']['tracing'][_0x25f2ab(0xd7)]({'path':buildCliArtifactPath(this['params'][_0x25f2ab(0x142)],'trace.zip')});const _0x4920ce=await this[_0x25f2ab(0xc5)]();this[_0x25f2ab(0xde)]['telemetry'][_0x25f2ab(0xe3)](_0x25915a['GEbyQ'],{..._0x185261,'videoPath':_0x4920ce});}catch(_0x514626){await this['params']['telemetry']['trackPhaseError']('nova_act_artifact_recording_stop',_0x514626,_0x185261);}finally{await this[_0x25f2ab(0x13f)]?.['close']()[_0x25f2ab(0x12f)](()=>undefined),this['browser']=null,this['context']=null,this[_0x25f2ab(0x105)]=null;}}async[_0x12e0e8(0x1a0)](){const _0x45ef51=_0x12e0e8,_0x1b760e={'oBGIA':function(_0x35d374){return _0x35d374();},'LbsCZ':_0x45ef51(0x13f),'uQnQs':_0x45ef51(0x189),'sGGrh':function(_0x589b49,_0x2e3aae){return _0x589b49-_0x2e3aae;}},_0x2840a8=join(_0x1b760e['oBGIA'](homedir),_0x45ef51(0xf9),_0x1b760e[_0x45ef51(0x140)],_0x1b760e['uQnQs'],this['params']['novaOptions']['sessionId']+_0x45ef51(0xbd)),_0x1c020d=Date['now']();let _0x84fd23;do{try{const _0x5021ce=JSON[_0x45ef51(0x13c)](await readFile(_0x2840a8,'utf-8'));if(_0x5021ce['cdp_endpoint'])return _0x5021ce;_0x84fd23=new Error(_0x45ef51(0x196)+_0x2840a8);}catch(_0x523619){_0x84fd23=_0x523619;}await delay(0x64);}while(_0x1b760e[_0x45ef51(0xd9)](Date[_0x45ef51(0x133)](),_0x1c020d)<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x84fd23 instanceof Error)throw _0x84fd23;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x2840a8);}async[_0x12e0e8(0x12b)](){const _0x367dfa=_0x12e0e8,_0xdd5176={'OSalZ':function(_0x1dbe52,_0x352eba,_0x26a4a0){return _0x1dbe52(_0x352eba,_0x26a4a0);},'BDmcR':function(_0x53ec1e,_0x352087){return _0x53ec1e(_0x352087);},'sVFyG':'Page.startScreencast','rkFNJ':'jpeg'};if(!this[_0x367dfa(0xd1)])return;const _0x1deb00=this['context'][_0x367dfa(0x16a)]()[0x0];if(!_0x1deb00)return;const _0x16c868=this[_0x367dfa(0x110)]();await _0xdd5176['OSalZ'](mkdir,_0x16c868,{'recursive':!![]});const _0x2afd77=await this['context']['newCDPSession'](_0x1deb00);this[_0x367dfa(0x105)]=_0x2afd77,_0x2afd77['on']('Page.screencastFrame',_0x55dd04=>{const _0x2013b8=_0x367dfa,_0x119321=++this['frameCount'],_0x29cc78=_0xdd5176[_0x2013b8(0x149)](join,_0x16c868,_0x2013b8(0x159)+_0xdd5176[_0x2013b8(0xca)](String,_0x119321)['padStart'](0x6,'0')+_0x2013b8(0xc8)),_0x410db7=writeFile(_0x29cc78,Buffer[_0x2013b8(0x14d)](_0x55dd04['data'],'base64'))[_0x2013b8(0x12f)](()=>undefined)['finally'](()=>_0x2afd77[_0x2013b8(0xbc)](_0x2013b8(0xc3),{'sessionId':_0x55dd04[_0x2013b8(0x18b)]}))[_0x2013b8(0xc4)](()=>undefined)['catch'](()=>undefined);this[_0x2013b8(0x125)]['push'](_0x410db7);}),await _0x2afd77[_0x367dfa(0xbc)](_0xdd5176[_0x367dfa(0x174)],{'format':_0xdd5176[_0x367dfa(0x13d)],'quality':0x4b,'everyNthFrame':0x6}),this['screencastStarted']=!![];}async[_0x12e0e8(0x102)](){const _0x4c6041=_0x12e0e8,_0x490eee={'aSPkf':'Page.stopScreencast'};if(!this[_0x4c6041(0x105)]||!this[_0x4c6041(0x17a)])return;await this[_0x4c6041(0x105)][_0x4c6041(0xbc)](_0x490eee[_0x4c6041(0xe6)])[_0x4c6041(0x12f)](()=>undefined);}['startTraceSampling'](){const _0xb81bd0=_0x12e0e8;this[_0xb81bd0(0x185)](),this[_0xb81bd0(0x161)]=setInterval(()=>this[_0xb81bd0(0x185)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x12e0e8(0x185)](){if(this['traceSampleInFlight'])return;this['traceSampleInFlight']=this['captureTraceSample']()['finally'](()=>{this['traceSampleInFlight']=null;});}async[_0x12e0e8(0x10a)](){const _0x260c2d=_0x12e0e8,_0x3cb312={'ZyTax':function(_0x2f0ecb,_0x5a4ee3){return _0x2f0ecb(_0x5a4ee3);}};this['traceSampleTimer']&&(_0x3cb312['ZyTax'](clearInterval,this[_0x260c2d(0x161)]),this[_0x260c2d(0x161)]=null),await this['traceSampleInFlight']?.['catch'](()=>undefined);}async['captureTraceSample'](){const _0x42f3ed=_0x12e0e8,_0x4c3df7=this[_0x42f3ed(0xd1)]?.[_0x42f3ed(0x16a)]()[0x0];if(!_0x4c3df7)return;try{await _0x4c3df7['locator']('body')['evaluate'](_0x531492=>_0x531492[_0x42f3ed(0x11d)],undefined,{'timeout':0x3e8}),this[_0x42f3ed(0x17d)]++;}catch{}}async[_0x12e0e8(0xc5)](){const _0x156045=_0x12e0e8,_0x5d762f={'JiIkM':function(_0x605556,_0xa82ba8){return _0x605556<_0xa82ba8;},'UbaaQ':function(_0x4532d7){return _0x4532d7();},'yWrIG':function(_0x3f16a6,_0x22e1b4,_0x29d5a3){return _0x3f16a6(_0x22e1b4,_0x29d5a3);},'FzpYd':function(_0x361a1d,_0x593788,_0x467f46){return _0x361a1d(_0x593788,_0x467f46);},'xfUbX':_0x156045(0x150),'pKFaN':'-loglevel','qEPak':'error','mStJu':_0x156045(0x146),'YxrLs':'-vf','TjyzP':'libvpx-vp9','bNPFs':_0x156045(0x108)};if(_0x5d762f['JiIkM'](this[_0x156045(0x12a)],0x2))return null;const _0x14dc90=await _0x5d762f['UbaaQ'](resolveFfmpegPath);if(!_0x14dc90)return null;const _0xcf5569=_0x5d762f[_0x156045(0x177)](join,this['params'][_0x156045(0x142)],_0x156045(0x143));await _0x5d762f['yWrIG'](mkdir,_0xcf5569,{'recursive':!![]});const _0x5f2725=_0x5d762f['FzpYd'](join,_0xcf5569,_0x5d762f[_0x156045(0xbb)]);return await execFileAsync(_0x14dc90,['-y',_0x156045(0x138),_0x5d762f['pKFaN'],_0x5d762f[_0x156045(0x14a)],_0x5d762f['mStJu'],'10','-i',join(this['getFrameDir'](),_0x156045(0xda)),_0x5d762f[_0x156045(0xd0)],_0x156045(0xc6),_0x156045(0x188),_0x5d762f['TjyzP'],_0x156045(0x14c),_0x5d762f['bNPFs'],_0x5f2725]),_0x5f2725;}['getFrameDir'](){const _0x464ea0=_0x12e0e8;return join(this['params'][_0x464ea0(0x142)],'nova-video-frames');}}async function delay(_0x4e2c16){await new Promise(_0x5c4a52=>setTimeout(_0x5c4a52,_0x4e2c16));}async function resolveFfmpegPath(){const _0xa6e8e5=_0x12e0e8,_0x4e7ffc={'aYLbI':_0xa6e8e5(0x10c),'vqoXk':_0xa6e8e5(0x184),'pvzYY':function(_0x474eed){return _0x474eed();},'ThXxD':_0xa6e8e5(0x167)};if(await canRunFfmpeg(_0xa6e8e5(0x126)))return _0xa6e8e5(0x126);const _0x4d600d=[join(homedir(),_0xa6e8e5(0xe9),_0x4e7ffc['aYLbI'],_0x4e7ffc[_0xa6e8e5(0x16b)]),join(_0x4e7ffc['pvzYY'](homedir),_0x4e7ffc[_0xa6e8e5(0x17f)],_0xa6e8e5(0x184))];for(const _0x47f434 of _0x4d600d){try{const _0x4282da=await readdir(_0x47f434),_0x149c81=_0x4282da['filter'](_0x4abc65=>_0x4abc65[_0xa6e8e5(0x112)]('ffmpeg-'))[_0xa6e8e5(0x141)]()['reverse']()['flatMap'](_0x136c21=>[join(_0x47f434,_0x136c21,'ffmpeg-mac'),join(_0x47f434,_0x136c21,'ffmpeg-linux'),join(_0x47f434,_0x136c21,'ffmpeg.exe')]);for(const _0x55f89b of _0x149c81){if(await canRunFfmpeg(_0x55f89b))return _0x55f89b;}}catch{}}return null;}async function canRunFfmpeg(_0x1d5c98){const _0x5d05ed=_0x12e0e8,_0x260d47={'TUDjG':function(_0xcc7543,_0x1341da,_0x340e23){return _0xcc7543(_0x1341da,_0x340e23);},'kGZcB':_0x5d05ed(0x199)};try{return await _0x260d47[_0x5d05ed(0x15c)](execFileAsync,_0x1d5c98,[_0x260d47[_0x5d05ed(0x100)]]),!![];}catch{return![];}}function toStepDisplayName(_0x3495d7){const _0x4d7d65=_0x12e0e8,_0x4ada3f=basename(_0x3495d7)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x4d7d65(0x12e)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x4ada3f,'isKeyStep':/^key_/i['test'](basename(_0x3495d7))};}function extractShellValue(_0x2f7b48){if(!_0x2f7b48)return null;return _0x2f7b48[0x1]??_0x2f7b48[0x2]??_0x2f7b48[0x3]??null;}function extractOutputOption(_0x1c9dd7){const _0x5857cb={'Stmrk':function(_0x32211b,_0x20fe4a){return _0x32211b(_0x20fe4a);}};return _0x5857cb['Stmrk'](extractShellValue,_0x1c9dd7['match'](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x3c0c35,_0x55b2f4){const _0x23140f=_0x12e0e8,_0x42942a={'fIOiv':_0x23140f(0x114),'qNTmp':'execute','jgLoz':_0x23140f(0x151),'SpStD':_0x23140f(0x16f),'euGYJ':_0x23140f(0x120),'TGaOC':'wait-for','jjauU':_0x23140f(0xf6),'GBkuq':function(_0x431753,_0x49c3ad){return _0x431753(_0x49c3ad);},'Ictyu':'session\x20export','IRrYf':'export\x20Nova\x20session'};switch(_0x55b2f4){case _0x23140f(0x148):return _0x42942a[_0x23140f(0xfb)];case _0x42942a[_0x23140f(0x170)]:return _0x42942a['jgLoz'];case'verify':return'verify\x20page\x20condition';case _0x42942a[_0x23140f(0x17c)]:return _0x42942a['euGYJ'];case'goto':return _0x23140f(0xe5);case _0x42942a['TGaOC']:return'wait\x20for\x20page\x20condition';case'snapshot':{const _0x4ac114=extractOutputOption(_0x3c0c35);if(!_0x4ac114)return _0x42942a[_0x23140f(0x1a2)];const {name:_0x5f54ec}=_0x42942a[_0x23140f(0x13b)](toStepDisplayName,_0x4ac114);return'capture\x20snapshot\x20`'+_0x5f54ec+'`';}case'screenshot':{const _0x5d88da=extractOutputOption(_0x3c0c35);if(!_0x5d88da)return _0x23140f(0x191);const {name:_0x4e1f3a,isKeyStep:_0x438077}=_0x42942a['GBkuq'](toStepDisplayName,_0x5d88da);return _0x438077?_0x23140f(0xf7)+_0x4e1f3a+'`':'capture\x20step\x20`'+_0x4e1f3a+'`';}case _0x42942a['Ictyu']:return _0x42942a[_0x23140f(0x15d)];default:return _0x55b2f4;}}function getNovaActCliCommandBlockReason(_0x1ae67d){const _0x5c2926=_0x12e0e8,_0x24f753={'zzCSG':function(_0x1385f9,_0x4a5fc3){return _0x1385f9===_0x4a5fc3;},'ZEJvW':_0x5c2926(0xd5)},_0x409a17=parseNovaActCliCommand(_0x1ae67d);if(!_0x409a17)return _0x5c2926(0x117);if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x409a17))return _0x5c2926(0x144)+_0x409a17+_0x5c2926(0x137);if(_0x24f753[_0x5c2926(0x15e)](_0x409a17,'verify')&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x5c2926(0xe0)](_0x1ae67d))return _0x5c2926(0xed);if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x5c2926(0xe0)](_0x1ae67d))return _0x24f753[_0x5c2926(0x172)];return null;}function buildFeedbackSection(_0x2d39e7){const _0x49a242=_0x12e0e8,_0x5f310e={'BiMGH':'en-US','nafsV':_0x49a242(0x15f),'jnbCc':_0x49a242(0xbe)};if(!_0x2d39e7||_0x2d39e7[_0x49a242(0x115)]['length']===0x0)return'';const _0xb21776=_0x2d39e7['unaddressedComments']['map'](_0x2766c6=>{const _0x288d18=_0x49a242,_0x4c0645=new Date(_0x2766c6['createdAt'])['toLocaleDateString'](_0x5f310e[_0x288d18(0x122)],{'month':_0x5f310e[_0x288d18(0xcf)],'day':_0x288d18(0x119)}),_0x4eefd2=_0x2766c6[_0x288d18(0x165)]||_0x2766c6['authorEmail']||_0x288d18(0x18d),_0x290950=_0x2766c6['domRef']?'\x20(on\x20element:\x20<'+(_0x2766c6[_0x288d18(0xfe)][_0x288d18(0x131)]['split'](_0x288d18(0xef))['pop']()?.['split'](':')[0x0]||_0x5f310e[_0x288d18(0x12d)])+_0x288d18(0x11f)+(_0x2766c6['domRef'][_0x288d18(0xd6)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x288d18(0x123)+_0x2766c6['id']+']\x20**'+_0x4eefd2+'**\x20('+_0x4c0645+'):\x20\x22'+_0x2766c6[_0x288d18(0x192)]+'\x22'+_0x290950;})['join']('\x0a');return _0x49a242(0x13a)+_0xb21776;}function buildNovaSharedOptionsInstruction(_0x7f9a25){const _0x334bc2=_0x12e0e8;if(!_0x7f9a25[_0x334bc2(0x160)]())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'+_0x7f9a25;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x5a8438){const _0x392381=_0x12e0e8,_0x3e35de={'bCDGn':function(_0x4a488e,_0x7c6a13,_0x4d3ddc){return _0x4a488e(_0x7c6a13,_0x4d3ddc);},'wCTEG':function(_0x58e26c,_0x5901e4,_0x5a1144){return _0x58e26c(_0x5901e4,_0x5a1144);},'AMcZC':'03_final-state.png','IwXjs':function(_0x32455d,_0x15ad41){return _0x32455d(_0x15ad41);}},{novaCommandPrefix:_0x38c37b,novaSharedOptionsSuffix:_0x4e1471,cliArtifactDir:_0x181459,url:_0x36cff4}=_0x5a8438,_0x5647cb=_0x3e35de['bCDGn'](buildCliArtifactPath,_0x181459,_0x392381(0x163)),_0x546556=_0x3e35de[_0x392381(0x113)](buildCliArtifactPath,_0x181459,_0x392381(0x11e)),_0x6e37f7=_0x3e35de[_0x392381(0x129)](buildCliArtifactPath,_0x181459,_0x392381(0xe2)),_0x1a0047=buildCliArtifactPath(_0x181459,_0x3e35de[_0x392381(0x111)]);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'+_0x38c37b+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x4e1471)+_0x392381(0xce)+_0x38c37b+'\x20session\x20create\x20'+_0x3e35de['IwXjs'](quoteShellArg,_0x36cff4)+'\x20'+_0x4e1471+_0x392381(0x19a)+_0x38c37b+_0x392381(0xc9)+_0x3e35de['IwXjs'](quoteShellArg,_0x5647cb)+'\x20'+_0x4e1471+_0x392381(0x166)+_0x38c37b+_0x392381(0x155)+quoteShellArg(_0x546556)+'\x20'+_0x4e1471+_0x392381(0x11c)+_0x38c37b+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x38c37b+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x6e37f7)+'\x20'+_0x4e1471+_0x392381(0x173)+_0x38c37b+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x1a0047)+'\x20'+_0x4e1471+_0x392381(0x16e)+_0x181459+_0x392381(0x157);}export function buildVerifyFeatureNovaCliPrompt(_0x2bc3ed){const _0x4e8824=_0x12e0e8,_0x509832={'uOOZh':function(_0x4e47f1,_0x5bcbf9,_0x56b7f0){return _0x4e47f1(_0x5bcbf9,_0x56b7f0);},'CLqgU':_0x4e8824(0x104),'nZvdd':_0x4e8824(0x11e),'clcwt':function(_0xcda2a9,_0x2f97c3){return _0xcda2a9(_0x2f97c3);}},{checklistItem:_0x411a0d,itemFeedback:_0x4699f0,taskDescription:_0x22e48e,novaCommandPrefix:_0x4c33bf,novaSharedOptionsSuffix:_0x4ed821,cliArtifactDir:_0x2d67b5,url:_0x10ab0e,loginInstructions:_0x4d8a67}=_0x2bc3ed,_0xaca538=_0x411a0d[_0x4e8824(0x1a3)]?_0x4e8824(0xd2)+_0x411a0d[_0x4e8824(0x1a3)]:'',_0x4e0404=buildFeedbackSection(_0x4699f0),_0x5c7168=_0x4699f0?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x4699f0[_0x4e8824(0x18f)]:'',_0x28b05b=_0x4d8a67?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x4d8a67+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x3a9645=_0x509832[_0x4e8824(0x145)](buildCliArtifactPath,_0x2d67b5,_0x509832[_0x4e8824(0x180)]),_0x1ee440=_0x509832['uOOZh'](buildCliArtifactPath,_0x2d67b5,_0x509832['nZvdd']),_0x44f7db=_0x509832[_0x4e8824(0x145)](buildCliArtifactPath,_0x2d67b5,_0x4e8824(0x186));return _0x4e8824(0xcb)+_0x411a0d[_0x4e8824(0xd8)]+_0xaca538+_0x4e0404+_0x5c7168+_0x4e8824(0x128)+_0x22e48e+_0x4e8824(0x178)+_0x10ab0e+_0x4e8824(0x198)+_0x28b05b+_0x4e8824(0x175)+_0x4c33bf+'\x20session\x20create\x20'+_0x509832['clcwt'](quoteShellArg,_0x10ab0e)+'\x20'+_0x4ed821+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2d67b5+'`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`'+_0x4c33bf+_0x4e8824(0xc9)+_0x509832[_0x4e8824(0xeb)](quoteShellArg,_0x3a9645)+'\x20'+_0x4ed821+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x4c33bf+_0x4e8824(0x155)+_0x509832[_0x4e8824(0xeb)](quoteShellArg,_0x1ee440)+'\x20'+_0x4ed821+_0x4e8824(0xf5)+_0x44f7db+'`.\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`'+_0x4c33bf+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x4ed821[_0x4e8824(0x160)]()?'`'+_0x4ed821+'`':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`')+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x4ed821)+_0x4e8824(0xf2)+_0x4c33bf+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x4ed821+_0x4e8824(0x179)+_0x4c33bf+_0x4e8824(0xdd)+_0x4ed821+'`\x0a-\x20`'+_0x4c33bf+_0x4e8824(0xc9)+quoteShellArg(_0x3a9645)+'\x20'+_0x4ed821+_0x4e8824(0x179)+_0x4c33bf+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x44f7db)+'\x20'+_0x4ed821+_0x4e8824(0x107);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x5e98f3){const _0x597178=_0x12e0e8,_0x390e51={'msSzj':function(_0x43c8b0,_0x3e7a35){return _0x43c8b0===_0x3e7a35;}},_0x41e40a=[..._0x5e98f3[_0x597178(0x14f)]()]['sort']();let _0x219244=0x0;for(const _0x14d248 of _0x5e98f3[_0x597178(0xec)]()){_0x219244+=_0x14d248;}return{'cliCommandCount':_0x219244,'cliCommandsSeen':_0x41e40a,'noCliCommandsCalled':_0x390e51[_0x597178(0xe7)](_0x219244,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x787ece,_0x165469){const _0x369930=_0x12e0e8,_0x40ed1c={'ZSBdH':function(_0x42859b,_0x1c8fd5){return _0x42859b(_0x1c8fd5);},'CzAKN':'PostToolUse','nahbf':_0x369930(0x127),'tqcra':function(_0x17d447,_0xe4d3da){return _0x17d447(_0xe4d3da);},'wKsRK':function(_0x3b2244,_0x1cecc7){return _0x3b2244+_0x1cecc7;},'jstnh':'nova_act_command','rmQmB':function(_0x554ff3,_0x1d9ef0){return _0x554ff3===_0x1d9ef0;},'HIVed':'session\x20create','KoFmc':'nova-act-cli','UZIEl':_0x369930(0x156),'OjMoQ':function(_0x17a0e4,_0x3c94b9){return _0x17a0e4!==_0x3c94b9;}},_0x26246f=new Map(),_0x5357dc=async _0x499570=>{const _0x39b237=_0x369930;if(_0x499570[_0x39b237(0x18a)]!=='PreToolUse')return{};const _0x38c23c=_0x499570;if(_0x38c23c['tool_name']!=='Bash')return{};const _0x3bb50f=_0x38c23c[_0x39b237(0x10d)],_0x158a80=_0x40ed1c[_0x39b237(0x14e)](extractBashCommand,_0x3bb50f);if(!_0x158a80)return{};const _0x438821=getNovaActCliCommandBlockReason(_0x158a80);if(!_0x438821)return{};return{'decision':'block','reason':_0x438821};},_0x2bd309=async _0x437772=>{const _0x18b571=_0x369930;if(_0x437772['hook_event_name']!==_0x40ed1c['CzAKN'])return{};const _0x562189=_0x437772;if(_0x562189['tool_name']!==_0x40ed1c[_0x18b571(0x17e)])return{};const _0x1ccf74=_0x562189['tool_input'],_0x121de3=_0x40ed1c[_0x18b571(0xfc)](extractBashCommand,_0x1ccf74);if(!_0x121de3)return{};const _0x2003df=parseNovaActCliCommand(_0x121de3);if(!_0x2003df)return{};_0x26246f[_0x18b571(0x19d)](_0x2003df,_0x40ed1c[_0x18b571(0xf0)](_0x26246f['get'](_0x2003df)||0x0,0x1)),_0x787ece['trackPhaseStart'](_0x40ed1c[_0x18b571(0x118)],{'subcommand':_0x2003df}),_0x787ece[_0x18b571(0xe3)]('nova_act_command',{'subcommand':_0x2003df,'commandPreview':previewNovaActCliCommand(_0x121de3)}),console[_0x18b571(0xc0)]('[nova-act-cli]\x20'+formatNovaActCliLog(_0x121de3,_0x2003df));if(_0x40ed1c[_0x18b571(0xf3)](_0x2003df,_0x40ed1c['HIVed'])&&_0x165469)try{await _0x165469[_0x18b571(0x132)]();}catch(_0x22aa12){await _0x787ece['trackPhaseError'](_0x18b571(0xcc),_0x22aa12,{'transport':_0x40ed1c[_0x18b571(0xdb)]});}return{};},_0x1f7df0=async _0x5a1d4a=>{const _0xc8ad2f=_0x369930;if(_0x5a1d4a['hook_event_name']!==_0x40ed1c['UZIEl'])return{};const _0x6381a6=_0x5a1d4a;if(_0x40ed1c[_0xc8ad2f(0x18e)](_0x6381a6[_0xc8ad2f(0x19e)],_0xc8ad2f(0x127)))return{};return await _0x787ece['trackPhaseError'](_0xc8ad2f(0x19f),_0x6381a6[_0xc8ad2f(0x176)],{'transport':_0xc8ad2f(0x171),'toolName':'Bash'}),{};};return{'preToolUseHook':_0x5357dc,'postToolUseHook':_0x2bd309,'postToolUseFailureHook':_0x1f7df0,'commandCounts':_0x26246f};}async function runNovaLifecycleCommand(_0x2804fd){const _0x34bce7=_0x12e0e8,_0x52cf90={'lpgRk':function(_0x908a74,_0x2a0d42){return _0x908a74(_0x2a0d42);},'LPHps':function(_0x4591b2,_0x5962e3){return _0x4591b2(_0x5962e3);},'WQdfA':function(_0x522a19,_0x388ee9){return _0x522a19(_0x388ee9);}},{novaOptions:_0x508547,commandArgs:_0x349a08,telemetry:_0x16c335,phase:_0x27f254,metadata:_0x20295c,timeoutMs:_0x474d96}=_0x2804fd;_0x16c335[_0x34bce7(0x10e)](_0x27f254,_0x20295c);try{const _0x47f120=await _0x52cf90['lpgRk'](runNovaActCliCommand,{..._0x508547,'commandArgs':_0x349a08,'cwd':process[_0x34bce7(0x13e)](),'env':process[_0x34bce7(0x15b)],'timeoutMs':_0x474d96??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x16c335['trackPhaseEnd'](_0x27f254,{..._0x20295c,'subcommand':_0x47f120['invocation'][_0x34bce7(0x15a)],'commandPreview':previewNovaActCliCommand(_0x47f120['invocation'][_0x34bce7(0xe8)]),'stdoutPreview':_0x52cf90[_0x34bce7(0x18c)](previewNovaActCliCommand,_0x47f120[_0x34bce7(0x11b)]),'stderrPreview':previewNovaActCliCommand(_0x47f120['stderr']),'logDir':_0x52cf90[_0x34bce7(0xd4)](extractNovaActLogDir,_0x47f120[_0x34bce7(0x11b)])});}catch(_0x3cf023){await _0x16c335['trackPhaseError'](_0x27f254,_0x3cf023,_0x20295c);throw _0x3cf023;}}export async function finalizeVerifyFeatureNovaCliSession(_0x6e6add){const _0x1ba3e6=_0x12e0e8,_0x2f4416={'rjHeN':_0x1ba3e6(0x12c),'VhbFO':function(_0x57b546,_0xc4c86a,_0x3b0f5e){return _0x57b546(_0xc4c86a,_0x3b0f5e);},'vlyEq':'key_final-state.png','TzKrI':'snapshot','twPBV':_0x1ba3e6(0xf1),'gBkLU':'session','jnLQf':'json','NLHoJ':'nova_act_session_report','DoNyD':'--output-dir','zfIWG':function(_0x4af9c6,_0x37d843,_0x1ef18f){return _0x4af9c6(_0x37d843,_0x1ef18f);},'qUljc':'nova_act_session_close'},{telemetry:_0x11d91c,novaOptions:_0x3ebbb5,cliArtifactDir:_0x3e0c16,transportMetadata:_0x41d303,artifactRecorder:_0x4156a9}=_0x6e6add,_0x1b2574=[{'phase':_0x2f4416[_0x1ba3e6(0xfa)],'commandArgs':['screenshot','--output',_0x2f4416[_0x1ba3e6(0x19c)](buildCliArtifactPath,_0x3e0c16,_0x2f4416[_0x1ba3e6(0x130)])]},{'phase':_0x1ba3e6(0x169),'commandArgs':[_0x2f4416['TzKrI'],_0x1ba3e6(0x190),buildCliArtifactPath(_0x3e0c16,_0x1ba3e6(0xbf))]},{'phase':_0x2f4416[_0x1ba3e6(0xe4)],'commandArgs':[_0x2f4416['gBkLU'],'export',_0x1ba3e6(0xc1),_0x2f4416[_0x1ba3e6(0x134)],'--output',buildCliArtifactPath(_0x3e0c16,_0x1ba3e6(0xf4))]},{'phase':_0x2f4416['NLHoJ'],'commandArgs':['session','export',_0x1ba3e6(0x158),_0x2f4416[_0x1ba3e6(0x195)],_0x2f4416[_0x1ba3e6(0x11a)](buildCliArtifactPath,_0x3e0c16,_0x1ba3e6(0x109))]},{'phase':_0x2f4416[_0x1ba3e6(0x147)],'commandArgs':[_0x2f4416[_0x1ba3e6(0xd3)],_0x1ba3e6(0x152)]}];for(const _0x335c91 of _0x1b2574){_0x335c91['phase']===_0x1ba3e6(0x16d)&&await _0x4156a9?.[_0x1ba3e6(0xd7)]();try{await runNovaLifecycleCommand({'novaOptions':_0x3ebbb5,'commandArgs':[..._0x335c91[_0x1ba3e6(0xf8)]],'telemetry':_0x11d91c,'phase':_0x335c91[_0x1ba3e6(0x14b)],'metadata':_0x41d303});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x32eb6c){const _0x1c4055=_0x12e0e8,_0x3958aa={'IPqpe':function(_0xc2fc47,_0xd9448a,_0x314474){return _0xc2fc47(_0xd9448a,_0x314474);},'RvEft':function(_0x2a8c9f,_0x6ab3e8){return _0x2a8c9f(_0x6ab3e8);},'eeJuJ':function(_0x383e53,_0x4945c0){return _0x383e53<_0x4945c0;},'Drphi':function(_0x54b918,_0x256b29){return _0x54b918+_0x256b29;},'KdOSM':function(_0x4607ca,_0x1c1860,_0x1a046d){return _0x4607ca(_0x1c1860,_0x1a046d);}},{cwd:_0x703806,cliArtifactDir:_0x5bb7b9,startTime:_0x2ba2d3}=_0x32eb6c,_0x125f51=[];await mkdir(_0x5bb7b9,{'recursive':!![]});const _0x520cf8=await readdir(_0x703806,{'withFileTypes':!![]});for(const _0x4c8a4c of _0x520cf8){if(!_0x4c8a4c['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0x4c8a4c[_0x1c4055(0xea)]))continue;const _0x14d81c=_0x3958aa['IPqpe'](join,_0x703806,_0x4c8a4c[_0x1c4055(0xea)]),_0x307d42=await _0x3958aa[_0x1c4055(0x135)](stat,_0x14d81c);if(_0x3958aa['eeJuJ'](_0x3958aa[_0x1c4055(0x194)](_0x307d42[_0x1c4055(0x182)],0x7d0),_0x2ba2d3))continue;const _0x1afc0c=buildCliArtifactPath(_0x5bb7b9,_0x4c8a4c['name']);if(_0x14d81c===_0x1afc0c)continue;await _0x3958aa['KdOSM'](rename,_0x14d81c,_0x1afc0c),_0x125f51[_0x1c4055(0x16c)](_0x4c8a4c['name']);}return _0x125f51[_0x1c4055(0x141)]();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x205782){const _0x22e35b=join(_0x205782,'trace.zip');try{return{'buffer':await readFile(_0x22e35b),'source':_0x22e35b};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x205782),'source':_0x205782};}}async function zipVerifyFeatureNovaArtifacts(_0x293bd3){const _0x2acc0f=_0x12e0e8,_0x5c2ec3={'qkhmX':function(_0x5544a2,_0x18d69d,_0x4f19ae,_0x4ff100){return _0x5544a2(_0x18d69d,_0x4f19ae,_0x4ff100);},'aMKRC':_0x2acc0f(0xee),'lMxfz':function(_0x3c8b9e,_0x161649,_0xb41e83,_0x4be5f0){return _0x3c8b9e(_0x161649,_0xb41e83,_0x4be5f0);},'jjtTd':_0x2acc0f(0xe1),'OqNVL':'nova-user-data/*'},_0x2d16a3=_0x5c2ec3[_0x2acc0f(0x121)](join,_0x293bd3,'..',_0x5c2ec3[_0x2acc0f(0x197)]);try{return await _0x5c2ec3['lMxfz'](execFileAsync,_0x2acc0f(0xcd),[_0x5c2ec3[_0x2acc0f(0x10f)],_0x2d16a3,'.','-x',_0x5c2ec3['OqNVL']],{'cwd':_0x293bd3}),await readFile(_0x2d16a3);}finally{await rm(_0x2d16a3,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x5190ed){const _0x1c72a1=_0x12e0e8,_0xd4288d={'PZupl':function(_0x1eafbe,_0x120476,_0x3df70a){return _0x1eafbe(_0x120476,_0x3df70a);},'vUher':function(_0x14ef5c,_0x35a39b){return _0x14ef5c(_0x35a39b);}},_0x5e4247=_0xd4288d[_0x1c72a1(0xdf)](buildNovaActCliInvocation,_0x5190ed['novaOptions'],_0x5190ed['commandArgs']);return{'command':_0x5e4247['command'],'args':_0x5e4247['args'],'commandPreview':_0xd4288d['vUher'](previewNovaActCliCommand,_0x5e4247['shellCommand']),'subcommand':_0x5e4247['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x5190ed[_0x1c72a1(0xfd)],_0x5190ed['commandArgs'])};}
@@ -1 +1 @@
1
- (function(_0x40041b,_0x1253b0){const _0xdf0aa7=_0x1684,_0x51e5f6=_0x40041b();while(!![]){try{const _0x3f3d7d=parseInt(_0xdf0aa7(0xdf))/0x1+-parseInt(_0xdf0aa7(0xbe))/0x2+-parseInt(_0xdf0aa7(0xc1))/0x3*(-parseInt(_0xdf0aa7(0xb8))/0x4)+parseInt(_0xdf0aa7(0xd6))/0x5+parseInt(_0xdf0aa7(0xb2))/0x6+-parseInt(_0xdf0aa7(0xbf))/0x7*(parseInt(_0xdf0aa7(0xc5))/0x8)+parseInt(_0xdf0aa7(0xb9))/0x9*(-parseInt(_0xdf0aa7(0xd7))/0xa);if(_0x3f3d7d===_0x1253b0)break;else _0x51e5f6['push'](_0x51e5f6['shift']());}catch(_0x2f959f){_0x51e5f6['push'](_0x51e5f6['shift']());}}}(_0x31b4,0x304c0));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x56344c,_0x164bca=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x54692b=_0x1684,_0x3b2fd3={'USBOe':function(_0x5d606a,_0x5e80e0){return _0x5d606a>_0x5e80e0;},'lGnyC':function(_0x396ae3,_0x573703){return _0x396ae3+_0x573703;},'NKNqN':_0x54692b(0xb4)};return _0x3b2fd3['USBOe'](_0x56344c['length'],_0x164bca)?_0x3b2fd3[_0x54692b(0xa9)](_0x56344c['slice'](0x0,_0x164bca),_0x3b2fd3[_0x54692b(0xda)]):_0x56344c;}function extractShellValue(_0x451247){if(!_0x451247)return null;return _0x451247[0x1]??_0x451247[0x2]??_0x451247[0x3]??null;}function extractFirstCommandArgument(_0x286b76,_0x28a8e1){const _0x46b18d=_0x1684,_0x5511b6=_0x28a8e1[_0x46b18d(0xe5)](/[.*+?^${}()|[\]\\]/g,_0x46b18d(0xb6));return extractShellValue(_0x286b76['match'](new RegExp(_0x46b18d(0xbc)+_0x5511b6+_0x46b18d(0xdb))));}function formatCommandTarget(_0x2a6aac){const _0x1d02d5=_0x1684,_0x3926dd={'xMKCx':_0x1d02d5(0xd9)};if(!_0x2a6aac)return _0x3926dd['xMKCx'];if(/^e\d+$/i[_0x1d02d5(0xc3)](_0x2a6aac))return _0x1d02d5(0xa3)+_0x2a6aac;return JSON['stringify'](truncatePreview(_0x2a6aac,0x78));}function _0x1684(_0x640ed3,_0x326df5){_0x640ed3=_0x640ed3-0x93;const _0x31b40c=_0x31b4();let _0x168476=_0x31b40c[_0x640ed3];return _0x168476;}function _0x31b4(){const _0x4b44b3=['BLEqt','numeric','slice','stop\x20video\x20recording','GOQBT','DjGqf','stop\x20tracing','Reviewer','unaddressedComments','close','747800CJwUIb','10RpXqbP','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','target','NKNqN','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','\x20(on\x20element:\x20<','ResJt','lVUKK','360597NYUuIW','domRef','hook_event_name','error','\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.','trackPhaseStart','replace','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','key_99_final-state.png','selector','[rangerwright-cli]\x20','VHvcp','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','chZYm','rangerwright_cli_tracing_stop','fill-and-inspect','JElpT','-\x20[','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','mJyCA','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','PDuLG','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','commandArgs','Bash','.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','HyhYX','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','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','ref\x20','\x20open-and-inspect\x20','VuuTu','XyQDb','split','tracing-stop','lGnyC','description','phase','01_initial-state.png','rangerwright_cli_command','Ixwea','get','jhWZd','>\x20\x22','1220280RbrDIF','click-and-inspect','...','keys','\x5c$&','vlPBL','14932NIoiAa','1032246MomGGv','):\x20\x22','video-stop','(?:^|\x5cs)','commandPrefix','658904jRNyIL','2534BmdOtP','log','99BmXzkQ','nHfMR','test','\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.','4304Nkvult','zaliK','length','notes','AejWV','open\x20and\x20inspect\x20','authorName'];_0x31b4=function(){return _0x4b44b3;};return _0x31b4();}function formatRangerwrightCliLog(_0x2b9d71,_0x3fb9fe){const _0x4f782f=_0x1684,_0x5835e7={'XyQDb':function(_0x4a01c5,_0x127a6c){return _0x4a01c5(_0x127a6c);},'PDuLG':_0x4f782f(0x95),'lVUKK':'back-and-inspect','GdROp':'go\x20back\x20and\x20inspect','VuuTu':'inspect','chZYm':'video-stop','vlPBL':_0x4f782f(0xcf),'ResJt':_0x4f782f(0xd5)};switch(_0x3fb9fe){case'open-and-inspect':{const _0x2e2c9e=extractFirstCommandArgument(_0x2b9d71,_0x3fb9fe);return _0x2e2c9e?_0x4f782f(0xca)+_0x2e2c9e:'open\x20and\x20inspect';}case _0x4f782f(0xb3):return'click\x20and\x20inspect\x20'+_0x5835e7[_0x4f782f(0xa6)](formatCommandTarget,extractFirstCommandArgument(_0x2b9d71,_0x3fb9fe));case'fill':case _0x5835e7[_0x4f782f(0x9b)]:return'fill\x20'+_0x5835e7[_0x4f782f(0xa6)](formatCommandTarget,extractFirstCommandArgument(_0x2b9d71,_0x3fb9fe));case _0x5835e7[_0x4f782f(0xde)]:return _0x5835e7['GdROp'];case _0x5835e7[_0x4f782f(0xa5)]:return'inspect\x20page';case'tracing-stop':return _0x4f782f(0xd2);case _0x5835e7[_0x4f782f(0x93)]:return _0x5835e7[_0x4f782f(0xb7)];case _0x5835e7[_0x4f782f(0xdd)]:return'close\x20browser\x20session';default:return _0x3fb9fe;}}function renderScenarioSections(_0x327563){const _0x249e73=_0x1684,_0x4238de={'eexRW':'short','JElpT':_0x249e73(0xd3),'cVQEV':'\x20>\x20','AejWV':'element','gpNEn':function(_0x1fec5d,_0x8a9081){return _0x1fec5d>_0x8a9081;}},{checklistItem:_0x46ceed,itemFeedback:_0x579553}=_0x327563,_0x53a297=_0x46ceed[_0x249e73(0xc8)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x46ceed['notes']:'';let _0xac9917='';if(_0x579553&&_0x4238de['gpNEn'](_0x579553[_0x249e73(0xd4)][_0x249e73(0xc7)],0x0)){const _0x20d951=_0x579553[_0x249e73(0xd4)]['map'](_0x18d7e6=>{const _0x3d78a7=_0x249e73,_0x210cdc=new Date(_0x18d7e6['createdAt'])['toLocaleDateString']('en-US',{'month':_0x4238de['eexRW'],'day':_0x3d78a7(0xcd)}),_0x4b052c=_0x18d7e6[_0x3d78a7(0xcb)]||_0x18d7e6['authorEmail']||_0x4238de[_0x3d78a7(0x96)],_0x543210=_0x18d7e6[_0x3d78a7(0xe0)]?_0x3d78a7(0xdc)+(_0x18d7e6[_0x3d78a7(0xe0)][_0x3d78a7(0xe8)][_0x3d78a7(0xa7)](_0x4238de['cVQEV'])['pop']()?.[_0x3d78a7(0xa7)](':')[0x0]||_0x4238de[_0x3d78a7(0xc9)])+_0x3d78a7(0xb1)+(_0x18d7e6['domRef']['textContent']||'')[_0x3d78a7(0xce)](0x0,0x32)+'\x22)':'';return _0x3d78a7(0x97)+_0x18d7e6['id']+']\x20'+_0x4b052c+'\x20('+_0x210cdc+_0x3d78a7(0xba)+_0x18d7e6['content']+'\x22'+_0x543210;})['join']('\x0a');_0xac9917='\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'+_0x20d951;}const _0x265610=_0x579553?.['canonicalFlow']?_0x249e73(0xa2)+_0x579553['canonicalFlow']:'';return''+_0x46ceed[_0x249e73(0xaa)]+_0x53a297+_0xac9917+_0x265610;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x37a2c1){const _0x38f1ea=_0x1684,_0x66f58b={'dAkcE':_0x38f1ea(0xe7),'WHOph':function(_0x56c13d,_0x42b758){return _0x56c13d(_0x42b758);},'GOQBT':'about:blank'},{checklistItem:_0x2da618,itemFeedback:_0x33d06c,taskDescription:_0x16f035,commandPrefix:_0x5fb871,isCdpMode:_0x2f0737,url:_0x18d09c,cdpEndpoint:_0x53594f,loginInstructions:_0x1bbab5}=_0x37a2c1,_0x127efc=_0x38f1ea(0xac),_0x332d74=_0x66f58b['dAkcE'],_0x16917f=_0x2f0737?_0x5fb871+'\x20inspect\x20--screenshot-path\x20'+_0x66f58b['WHOph'](quoteShellArg,_0x127efc):_0x5fb871+_0x38f1ea(0xa4)+_0x66f58b['WHOph'](quoteShellArg,_0x18d09c??_0x66f58b[_0x38f1ea(0xd0)])+'\x20--screenshot-path\x20'+_0x66f58b['WHOph'](quoteShellArg,_0x127efc),_0x24f69a=_0x2f0737?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0x53594f+_0x38f1ea(0x9f):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x18d09c+_0x38f1ea(0xe3),_0x88180b=_0x1bbab5?_0x38f1ea(0x9a)+_0x1bbab5+_0x38f1ea(0xd8):'';return _0x38f1ea(0xa1)+_0x66f58b['WHOph'](renderScenarioSections,{'checklistItem':_0x2da618,'itemFeedback':_0x33d06c})+_0x38f1ea(0xe6)+_0x16f035+'\x0a\x0a'+_0x24f69a+_0x88180b+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x5fb871+'\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'+_0x16917f+'\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'+_0x5fb871+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0x332d74)+_0x38f1ea(0xc4);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0xbff557){const _0x4d5dcb=_0x1684,_0xe458d={'mJyCA':'01_mozilla-homepage.png','BLEqt':function(_0x50b46a,_0x3dec61){return _0x50b46a(_0x3dec61);}},_0x1ecfb8=_0xe458d[_0x4d5dcb(0x99)],_0x15e17d='key_02_learn-more.png';return _0x4d5dcb(0x9c)+_0xbff557[_0x4d5dcb(0xbd)]+'\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`'+_0xbff557['commandPrefix']+_0x4d5dcb(0xa4)+quoteShellArg(_0xbff557['url'])+'\x20--screenshot-path\x20'+quoteShellArg(_0x1ecfb8)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0xbff557[_0x4d5dcb(0xbd)]+_0x4d5dcb(0x98)+_0xe458d[_0x4d5dcb(0xcc)](quoteShellArg,_0x15e17d)+_0x4d5dcb(0xeb);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x4c15ba){const _0x3a2e84=_0x1684,_0x5536df={'VHvcp':function(_0x3db749,_0x2e9cf0){return _0x3db749===_0x2e9cf0;}},_0x28af9b=[..._0x4c15ba[_0x3a2e84(0xb5)]()]['sort']();let _0x3d98e0=0x0;for(const _0x24c343 of _0x4c15ba['values']()){_0x3d98e0+=_0x24c343;}return{'cliCommandCount':_0x3d98e0,'cliCommandsSeen':_0x28af9b,'noCliCommandsCalled':_0x5536df[_0x3a2e84(0xea)](_0x3d98e0,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x1efdd4){const _0x50035b=_0x1684,_0x51fdcf={'jhWZd':function(_0x5ca987,_0x5f2986){return _0x5ca987!==_0x5f2986;},'nHfMR':'Bash','NTyyZ':_0x50035b(0xad),'vzKeA':function(_0x374be1,_0x37f500,_0x3df839){return _0x374be1(_0x37f500,_0x3df839);},'NCvhF':'PostToolUseFailure','DjGqf':'rangerwright_cli_command_failure'},_0x48b39e=new Map(),_0x34f721=async _0x31140d=>{const _0x21dde9=_0x50035b;if(_0x31140d[_0x21dde9(0xe1)]!=='PostToolUse')return{};const _0x21103d=_0x31140d;if(_0x51fdcf[_0x21dde9(0xb0)](_0x21103d['tool_name'],_0x51fdcf['nHfMR']))return{};const _0x318ca2=_0x21103d['tool_input'],_0x345b38=extractBashCommand(_0x318ca2);if(!_0x345b38)return{};const _0x364990=parseRangerwrightCliCommand(_0x345b38);if(!_0x364990)return{};return _0x48b39e['set'](_0x364990,(_0x48b39e[_0x21dde9(0xaf)](_0x364990)||0x0)+0x1),_0x1efdd4['trackPhaseStart']('rangerwright_cli_command',{'subcommand':_0x364990}),_0x1efdd4['trackPhaseEnd'](_0x51fdcf['NTyyZ'],{'subcommand':_0x364990,'commandPreview':truncatePreview(_0x345b38)}),console[_0x21dde9(0xc0)](_0x21dde9(0xe9)+_0x51fdcf['vzKeA'](formatRangerwrightCliLog,_0x345b38,_0x364990)),{};},_0xa2f02c=async _0x17a0b6=>{const _0x5cbbd6=_0x50035b;if(_0x51fdcf['jhWZd'](_0x17a0b6[_0x5cbbd6(0xe1)],_0x51fdcf['NCvhF']))return{};const _0x4d60cc=_0x17a0b6;if(_0x4d60cc['tool_name']!==_0x5cbbd6(0x9e))return{};return await _0x1efdd4['trackPhaseError'](_0x51fdcf[_0x5cbbd6(0xd1)],_0x4d60cc[_0x5cbbd6(0xe2)],{'transport':'rangerwright-cli','toolName':_0x51fdcf[_0x5cbbd6(0xc2)]}),{};};return{'postToolUseHook':_0x34f721,'postToolUseFailureHook':_0xa2f02c,'commandCounts':_0x48b39e};}async function runRangerwrightLifecycleCommand(_0x453f24){const _0x113087=_0x1684,_0x1c8716={'Ixwea':function(_0xe62673,_0xd8e291){return _0xe62673??_0xd8e291;},'DqSIS':function(_0x356143,_0x35e934,_0x2ee972){return _0x356143(_0x35e934,_0x2ee972);}},{options:_0x4cf388,commandArgs:_0x101475,env:_0x4fd9a1,telemetry:_0x84fc0e,phase:_0x3e5b80,metadata:_0x332d63,timeoutMs:_0xa486f3}=_0x453f24;_0x84fc0e[_0x113087(0xe4)](_0x3e5b80,_0x332d63);try{const _0x369ac8=await runRangerwrightCliCommand({..._0x4cf388,'commandArgs':_0x101475,'cwd':process['cwd'](),'env':_0x4fd9a1,'timeoutMs':_0x1c8716[_0x113087(0xae)](_0xa486f3,RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x84fc0e['trackPhaseEnd'](_0x3e5b80,{..._0x332d63,'subcommand':_0x369ac8['invocation']['subcommand'],'stdoutPreview':truncatePreview(_0x369ac8['stdout'],0x7d0),'stderrPreview':_0x1c8716['DqSIS'](truncatePreview,_0x369ac8['stderr'],0x7d0)});}catch(_0x487ef0){await _0x84fc0e['trackPhaseError'](_0x3e5b80,_0x487ef0,_0x332d63);throw _0x487ef0;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x48e35a){const _0x4e2399=_0x1684,_0x2630b9={'zaliK':_0x4e2399(0x94),'iBJSW':_0x4e2399(0xbb),'HyhYX':function(_0x2238f1,_0x4efa15){return _0x2238f1(_0x4efa15);}},{telemetry:_0x398592,rangerwrightOptions:_0x355db4,env:_0x4b2190,transportMetadata:_0xb67aa7}=_0x48e35a,_0x54817a=[{'phase':_0x2630b9[_0x4e2399(0xc6)],'commandArgs':[_0x4e2399(0xa8)]},{'phase':'rangerwright_cli_video_stop','commandArgs':[_0x2630b9['iBJSW']]},{'phase':'rangerwright_cli_close','commandArgs':['close']}];for(const _0x4cd3ac of _0x54817a){try{await _0x2630b9[_0x4e2399(0xa0)](runRangerwrightLifecycleCommand,{'options':_0x355db4,'commandArgs':[..._0x4cd3ac[_0x4e2399(0x9d)]],'env':_0x4b2190,'telemetry':_0x398592,'phase':_0x4cd3ac[_0x4e2399(0xab)],'metadata':_0xb67aa7});}catch{}}}
1
+ (function(_0x55fc2c,_0x302607){const _0x276308=_0x5100,_0x32af52=_0x55fc2c();while(!![]){try{const _0x2529ab=-parseInt(_0x276308(0x151))/0x1+parseInt(_0x276308(0x175))/0x2*(-parseInt(_0x276308(0x191))/0x3)+parseInt(_0x276308(0x172))/0x4*(parseInt(_0x276308(0x143))/0x5)+parseInt(_0x276308(0x165))/0x6*(-parseInt(_0x276308(0x145))/0x7)+-parseInt(_0x276308(0x18f))/0x8+parseInt(_0x276308(0x169))/0x9+-parseInt(_0x276308(0x14c))/0xa*(-parseInt(_0x276308(0x15c))/0xb);if(_0x2529ab===_0x302607)break;else _0x32af52['push'](_0x32af52['shift']());}catch(_0x2e7fbe){_0x32af52['push'](_0x32af52['shift']());}}}(_0x5e1b,0x9c280));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x234c8c,_0x205ec5=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x4aef8e=_0x5100,_0x56c328={'uROME':function(_0xb4db11,_0x1d54eb){return _0xb4db11>_0x1d54eb;}};return _0x56c328[_0x4aef8e(0x14e)](_0x234c8c[_0x4aef8e(0x168)],_0x205ec5)?_0x234c8c[_0x4aef8e(0x144)](0x0,_0x205ec5)+_0x4aef8e(0x16e):_0x234c8c;}function _0x5100(_0x3fa1c4,_0x55c749){_0x3fa1c4=_0x3fa1c4-0x13f;const _0x5e1b60=_0x5e1b();let _0x5100f0=_0x5e1b60[_0x3fa1c4];return _0x5100f0;}function extractShellValue(_0x5ddfb8){if(!_0x5ddfb8)return null;return _0x5ddfb8[0x1]??_0x5ddfb8[0x2]??_0x5ddfb8[0x3]??null;}function extractFirstCommandArgument(_0x58fa93,_0x306528){const _0x14df01=_0x5100,_0x3a2d6a={'BgpxN':function(_0x466f04,_0x44e9d9){return _0x466f04(_0x44e9d9);}},_0x54bb01=_0x306528[_0x14df01(0x166)](/[.*+?^${}()|[\]\\]/g,_0x14df01(0x149));return _0x3a2d6a[_0x14df01(0x159)](extractShellValue,_0x58fa93['match'](new RegExp(_0x14df01(0x15d)+_0x54bb01+_0x14df01(0x146))));}function formatCommandTarget(_0x5289dd){const _0x58dc92=_0x5100,_0x1a43af={'CfTFg':'target','HLJWY':function(_0x3ffda8,_0x4cecd4,_0x8aa305){return _0x3ffda8(_0x4cecd4,_0x8aa305);}};if(!_0x5289dd)return _0x1a43af[_0x58dc92(0x194)];if(/^e\d+$/i[_0x58dc92(0x141)](_0x5289dd))return'ref\x20'+_0x5289dd;return JSON[_0x58dc92(0x158)](_0x1a43af[_0x58dc92(0x154)](truncatePreview,_0x5289dd,0x78));}function _0x5e1b(){const _0x1ae4dc=['tool_name','domRef','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','6342AWQFyP','replace','content','length','4881474ErXVsd','unaddressedComments','keys','tool_input','notes','...','stop\x20video\x20recording','cwd','eVEvz','148CEBlRd','element','stdout','5326diqLoL','authorName','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','commandPrefix','trackPhaseStart','01_initial-state.png','\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','stop\x20tracing','click\x20and\x20inspect\x20','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','pop','\x20open-and-inspect\x20','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','KIefG','rangerwright_cli_command','close\x20browser\x20session','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','lxqZn','\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.','.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','iYrja','description','get','trackPhaseError','hook_event_name','neaYt','1054280LXuMDl','stderr','72xPstTK','short','key_99_final-state.png','CfTFg','about:blank','split','numeric','trackPhaseEnd','invocation','test','SIImE','54170lourwG','slice','3395leLxHT','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','PfMHL','en-US','\x5c$&','inspect\x20page','rangerwright_cli_tracing_stop','4640010iVeKGV','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','uROME','hIdUB','\x20>\x20','59287KYnUsr','\x20--screenshot-path\x20','\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`','HLJWY','\x20(on\x20element:\x20<','>\x20\x22','rangerwright_cli_command_failure','stringify','BgpxN','rangerwright_cli_close','rangerwright_cli_video_stop','11LadvSJ','(?:^|\x5cs)','values','Bash','canonicalFlow','wWTFz'];_0x5e1b=function(){return _0x1ae4dc;};return _0x5e1b();}function formatRangerwrightCliLog(_0x493fd1,_0x389129){const _0x4e84af=_0x5100,_0x51c3c0={'BiqTJ':'open\x20and\x20inspect','PfMHL':'click-and-inspect','wWTFz':'fill','KIefG':'fill-and-inspect','BMjzd':function(_0x3c52a5,_0x2bdeac){return _0x3c52a5(_0x2bdeac);},'HOQbP':_0x4e84af(0x14a),'ysUCD':_0x4e84af(0x184)};switch(_0x389129){case'open-and-inspect':{const _0x32245a=extractFirstCommandArgument(_0x493fd1,_0x389129);return _0x32245a?'open\x20and\x20inspect\x20'+_0x32245a:_0x51c3c0['BiqTJ'];}case _0x51c3c0[_0x4e84af(0x147)]:return _0x4e84af(0x17d)+formatCommandTarget(extractFirstCommandArgument(_0x493fd1,_0x389129));case _0x51c3c0[_0x4e84af(0x161)]:case _0x51c3c0[_0x4e84af(0x182)]:return'fill\x20'+_0x51c3c0['BMjzd'](formatCommandTarget,extractFirstCommandArgument(_0x493fd1,_0x389129));case'back-and-inspect':return'go\x20back\x20and\x20inspect';case'inspect':return _0x51c3c0['HOQbP'];case'tracing-stop':return _0x4e84af(0x17c);case'video-stop':return _0x4e84af(0x16f);case'close':return _0x51c3c0['ysUCD'];default:return _0x389129;}}function renderScenarioSections(_0x16a6bf){const _0x2d578a=_0x5100,_0x292e1b={'SIImE':_0x2d578a(0x192),'neaYt':_0x2d578a(0x197),'lxqZn':'Reviewer','iYrja':_0x2d578a(0x173)},{checklistItem:_0x20f351,itemFeedback:_0x3df00d}=_0x16a6bf,_0x573a94=_0x20f351['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x20f351[_0x2d578a(0x16d)]:'';let _0x14151b='';if(_0x3df00d&&_0x3df00d['unaddressedComments']['length']>0x0){const _0x2ef08f=_0x3df00d[_0x2d578a(0x16a)]['map'](_0x59e359=>{const _0x433f21=_0x2d578a,_0x476a6c=new Date(_0x59e359['createdAt'])['toLocaleDateString'](_0x433f21(0x148),{'month':_0x292e1b[_0x433f21(0x142)],'day':_0x292e1b[_0x433f21(0x18e)]}),_0x39dc7c=_0x59e359[_0x433f21(0x176)]||_0x59e359['authorEmail']||_0x292e1b[_0x433f21(0x186)],_0x4682a5=_0x59e359['domRef']?_0x433f21(0x155)+(_0x59e359[_0x433f21(0x163)]['selector'][_0x433f21(0x196)](_0x433f21(0x150))[_0x433f21(0x17f)]()?.['split'](':')[0x0]||_0x292e1b[_0x433f21(0x189)])+_0x433f21(0x156)+(_0x59e359['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x59e359['id']+']\x20'+_0x39dc7c+'\x20('+_0x476a6c+'):\x20\x22'+_0x59e359[_0x433f21(0x167)]+'\x22'+_0x4682a5;})['join']('\x0a');_0x14151b='\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'+_0x2ef08f;}const _0xed9833=_0x3df00d?.[_0x2d578a(0x160)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x3df00d[_0x2d578a(0x160)]:'';return''+_0x20f351[_0x2d578a(0x18a)]+_0x573a94+_0x14151b+_0xed9833;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x2d2a8e){const _0x48e68f=_0x5100,_0x25eb89={'TyegK':_0x48e68f(0x193),'RvTcz':function(_0x380397,_0x1ae0fd){return _0x380397(_0x1ae0fd);}},{checklistItem:_0x2d3b50,itemFeedback:_0x5acc9e,taskDescription:_0x1efcd3,commandPrefix:_0x2adef5,isCdpMode:_0x27b5d1,url:_0x177ff0,cdpEndpoint:_0x229701,loginInstructions:_0x101d1d}=_0x2d2a8e,_0x3d9fc1=_0x48e68f(0x17a),_0x9141ff=_0x25eb89['TyegK'],_0x2c15da=_0x27b5d1?_0x2adef5+'\x20inspect\x20--screenshot-path\x20'+quoteShellArg(_0x3d9fc1):_0x2adef5+'\x20open-and-inspect\x20'+quoteShellArg(_0x177ff0??_0x48e68f(0x195))+'\x20--screenshot-path\x20'+quoteShellArg(_0x3d9fc1),_0x3c49b2=_0x27b5d1?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0x229701+_0x48e68f(0x188):_0x48e68f(0x185)+_0x177ff0+_0x48e68f(0x187),_0x45e127=_0x101d1d?_0x48e68f(0x164)+_0x101d1d+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return _0x48e68f(0x14d)+_0x25eb89['RvTcz'](renderScenarioSections,{'checklistItem':_0x2d3b50,'itemFeedback':_0x5acc9e})+_0x48e68f(0x181)+_0x1efcd3+'\x0a\x0a'+_0x3c49b2+_0x45e127+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x2adef5+'\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'+_0x2c15da+_0x48e68f(0x17b)+_0x2adef5+_0x48e68f(0x17e)+quoteShellArg(_0x9141ff)+'\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(_0x422450){const _0x2ed2ef=_0x5100,_0x563b71={'MpYjP':'key_02_learn-more.png','eVEvz':function(_0x502cf9,_0x316aa6){return _0x502cf9(_0x316aa6);}},_0x3a53a4='01_mozilla-homepage.png',_0x5dfdbc=_0x563b71['MpYjP'];return _0x2ed2ef(0x177)+_0x422450[_0x2ed2ef(0x178)]+_0x2ed2ef(0x153)+_0x422450[_0x2ed2ef(0x178)]+_0x2ed2ef(0x180)+_0x563b71[_0x2ed2ef(0x171)](quoteShellArg,_0x422450['url'])+_0x2ed2ef(0x152)+_0x563b71[_0x2ed2ef(0x171)](quoteShellArg,_0x3a53a4)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x422450[_0x2ed2ef(0x178)]+'\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20'+quoteShellArg(_0x5dfdbc)+'`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x2e8a12){const _0x1493bc=_0x5100,_0x4e20d9=[..._0x2e8a12[_0x1493bc(0x16b)]()]['sort']();let _0x593825=0x0;for(const _0x222db1 of _0x2e8a12[_0x1493bc(0x15e)]()){_0x593825+=_0x222db1;}return{'cliCommandCount':_0x593825,'cliCommandsSeen':_0x4e20d9,'noCliCommandsCalled':_0x593825===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0x58d4c6){const _0x477acb={'Aypwu':function(_0x2a6478,_0x28d720){return _0x2a6478!==_0x28d720;},'SkvPF':function(_0x38f83e,_0x383aee){return _0x38f83e(_0x383aee);},'WVTgN':function(_0x3c7a43,_0x318f3f,_0x44a493){return _0x3c7a43(_0x318f3f,_0x44a493);},'TLCuk':'Bash'},_0x2e3787=new Map(),_0x3deb79=async _0x5a33bb=>{const _0x5d1317=_0x5100;if(_0x5a33bb['hook_event_name']!=='PostToolUse')return{};const _0x161198=_0x5a33bb;if(_0x477acb['Aypwu'](_0x161198[_0x5d1317(0x162)],_0x5d1317(0x15f)))return{};const _0x4ef58=_0x161198[_0x5d1317(0x16c)],_0x3d82a8=extractBashCommand(_0x4ef58);if(!_0x3d82a8)return{};const _0x21cca2=parseRangerwrightCliCommand(_0x3d82a8);if(!_0x21cca2)return{};return _0x2e3787['set'](_0x21cca2,(_0x2e3787[_0x5d1317(0x18b)](_0x21cca2)||0x0)+0x1),_0x58d4c6[_0x5d1317(0x179)]('rangerwright_cli_command',{'subcommand':_0x21cca2}),_0x58d4c6['trackPhaseEnd'](_0x5d1317(0x183),{'subcommand':_0x21cca2,'commandPreview':_0x477acb['SkvPF'](truncatePreview,_0x3d82a8)}),console['log']('[rangerwright-cli]\x20'+_0x477acb['WVTgN'](formatRangerwrightCliLog,_0x3d82a8,_0x21cca2)),{};},_0x28f3b0=async _0x1e5646=>{const _0x56e21a=_0x5100;if(_0x477acb['Aypwu'](_0x1e5646[_0x56e21a(0x18d)],'PostToolUseFailure'))return{};const _0x2e459c=_0x1e5646;if(_0x2e459c[_0x56e21a(0x162)]!==_0x477acb['TLCuk'])return{};return await _0x58d4c6[_0x56e21a(0x18c)](_0x56e21a(0x157),_0x2e459c['error'],{'transport':'rangerwright-cli','toolName':_0x56e21a(0x15f)}),{};};return{'postToolUseHook':_0x3deb79,'postToolUseFailureHook':_0x28f3b0,'commandCounts':_0x2e3787};}async function runRangerwrightLifecycleCommand(_0x45637c){const _0xd90303=_0x5100,_0xdaf67f={'BbAVj':function(_0x30f24f,_0x239a3f,_0x48766a){return _0x30f24f(_0x239a3f,_0x48766a);}},{options:_0x3d38b1,commandArgs:_0x2970b7,env:_0x53d71f,telemetry:_0x5481d7,phase:_0x8551d2,metadata:_0x42f07f,timeoutMs:_0x3f71f6}=_0x45637c;_0x5481d7['trackPhaseStart'](_0x8551d2,_0x42f07f);try{const _0x539b55=await runRangerwrightCliCommand({..._0x3d38b1,'commandArgs':_0x2970b7,'cwd':process[_0xd90303(0x170)](),'env':_0x53d71f,'timeoutMs':_0x3f71f6??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x5481d7[_0xd90303(0x13f)](_0x8551d2,{..._0x42f07f,'subcommand':_0x539b55[_0xd90303(0x140)]['subcommand'],'stdoutPreview':truncatePreview(_0x539b55[_0xd90303(0x174)],0x7d0),'stderrPreview':_0xdaf67f['BbAVj'](truncatePreview,_0x539b55[_0xd90303(0x190)],0x7d0)});}catch(_0x54c83d){await _0x5481d7['trackPhaseError'](_0x8551d2,_0x54c83d,_0x42f07f);throw _0x54c83d;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x5aef57){const _0x2e8f76=_0x5100,_0x401b92={'hIdUB':_0x2e8f76(0x14b),'TLRAX':_0x2e8f76(0x15b),'HbRHP':'video-stop'},{telemetry:_0x599cbb,rangerwrightOptions:_0x13980b,env:_0x46713e,transportMetadata:_0x12ceed}=_0x5aef57,_0x4a6e7f=[{'phase':_0x401b92[_0x2e8f76(0x14f)],'commandArgs':['tracing-stop']},{'phase':_0x401b92['TLRAX'],'commandArgs':[_0x401b92['HbRHP']]},{'phase':_0x2e8f76(0x15a),'commandArgs':['close']}];for(const _0x45a372 of _0x4a6e7f){try{await runRangerwrightLifecycleCommand({'options':_0x13980b,'commandArgs':[..._0x45a372['commandArgs']],'env':_0x46713e,'telemetry':_0x599cbb,'phase':_0x45a372['phase'],'metadata':_0x12ceed});}catch{}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "3.1.7-alpha.62f152a-54",
3
+ "version": "3.1.7-alpha.9ed0a8d-59",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",
@@ -13,7 +13,7 @@
13
13
  "dev": "tsx src/cli.ts",
14
14
  "check-playwright-version": "node scripts/check-playwright-version.cjs",
15
15
  "postinstall": "node scripts/postinstall.js",
16
- "test": "jest --config jest.config.cjs"
16
+ "test": "cd ../.. && TEST_ENVIRONMENT=true tsx --import ./tests/node-runner/setup.ts --test --test-concurrency=1 ./tests/node-runner/cli/*.test.cjs"
17
17
  },
18
18
  "files": [
19
19
  "build",
@@ -32,13 +32,10 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/inquirer": "^9.0.7",
35
- "@types/jest": "^29.5.0",
36
35
  "@types/node": "^22.0.0",
37
36
  "@types/ws": "^8.18.1",
38
37
  "@types/yargs": "^17.0.32",
39
- "jest": "^29.7.0",
40
38
  "javascript-obfuscator": "^4.1.1",
41
- "ts-jest": "^29.1.0",
42
39
  "tsx": "^4.20.6",
43
40
  "typescript": "^5.0.0"
44
41
  },