@ranger-testing/ranger-cli 2.5.4-alpha.0e8b82c-9 → 2.5.4-alpha.1b80607-25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/deleteProfile.js +1 -0
  8. package/build/commands/env.js +1 -1
  9. package/build/commands/feature.js +1 -1
  10. package/build/commands/hook.js +1 -1
  11. package/build/commands/hooks/autoPrompt.js +1 -1
  12. package/build/commands/hooks/disable.js +1 -1
  13. package/build/commands/hooks/enable.js +1 -1
  14. package/build/commands/hooks/exitPlanMode.js +1 -1
  15. package/build/commands/hooks/index.js +1 -1
  16. package/build/commands/hooks/output.js +1 -1
  17. package/build/commands/hooks/planReminder.js +1 -1
  18. package/build/commands/hooks/planStart.js +1 -1
  19. package/build/commands/hooks/postEdit.js +1 -1
  20. package/build/commands/hooks/preCompact.js +1 -1
  21. package/build/commands/hooks/sessionEnd.js +1 -1
  22. package/build/commands/hooks/sessionStart.js +1 -1
  23. package/build/commands/hooks/stopHook.js +1 -1
  24. package/build/commands/index.js +1 -1
  25. package/build/commands/login.js +1 -1
  26. package/build/commands/mcpBootstrap.js +1 -1
  27. package/build/commands/migrateProfile.js +1 -1
  28. package/build/commands/setup/claude.js +1 -1
  29. package/build/commands/setup/opencode.js +1 -1
  30. package/build/commands/setupCi.js +1 -1
  31. package/build/commands/skillup.js +1 -1
  32. package/build/commands/start.js +1 -1
  33. package/build/commands/status.js +1 -1
  34. package/build/commands/update.js +1 -1
  35. package/build/commands/updateEnv.js +1 -1
  36. package/build/commands/useEnv.js +1 -1
  37. package/build/commands/utils/activeProfile.js +1 -1
  38. package/build/commands/utils/agentEnv.js +1 -1
  39. package/build/commands/utils/browserSessionsApi.js +1 -1
  40. package/build/commands/utils/claudeConfig.js +1 -1
  41. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  42. package/build/commands/utils/claudePlugin.js +1 -1
  43. package/build/commands/utils/cloudProfile.js +1 -1
  44. package/build/commands/utils/cloudProfileSession.js +1 -1
  45. package/build/commands/utils/crypto.js +1 -1
  46. package/build/commands/utils/desirePathLog.js +1 -1
  47. package/build/commands/utils/deviceAuth.js +1 -1
  48. package/build/commands/utils/environment.js +1 -1
  49. package/build/commands/utils/featureApi.js +1 -1
  50. package/build/commands/utils/fixWebmDuration.js +1 -1
  51. package/build/commands/utils/gitTracked.js +1 -1
  52. package/build/commands/utils/keychain.js +1 -1
  53. package/build/commands/utils/legacyWarning.js +1 -0
  54. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  55. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  56. package/build/commands/utils/mcpImageBase64.js +1 -1
  57. package/build/commands/utils/model.js +1 -1
  58. package/build/commands/utils/novaActCli.js +1 -0
  59. package/build/commands/utils/opencodeConfig.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/resolveProfileContext.js +1 -1
  67. package/build/commands/utils/resolveProfileUrl.js +1 -1
  68. package/build/commands/utils/retry.js +1 -1
  69. package/build/commands/utils/sessionCache.js +1 -1
  70. package/build/commands/utils/settings.js +1 -1
  71. package/build/commands/utils/skillContent.js +1 -1
  72. package/build/commands/utils/skills.js +1 -1
  73. package/build/commands/utils/stitchWebmFiles.js +1 -1
  74. package/build/commands/utils/telemetry.js +1 -1
  75. package/build/commands/utils/tokenRefresh.js +1 -1
  76. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  77. package/build/commands/utils/userApi.js +1 -1
  78. package/build/commands/utils/version.js +1 -1
  79. package/build/commands/verifyFeature.js +1 -1
  80. package/build/commands/verifyFeatureCli.js +1 -1
  81. package/build/commands/verifyFeatureNovaCli.js +1 -0
  82. package/build/skills/ranger/SKILL.md +24 -8
  83. package/build/skills/ranger/create.md +16 -3
  84. package/build/skills/ranger/verify.md +35 -10
  85. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x4672dc,_0x5f2ced){const _0x442b53=_0x3ff2,_0x4a7578=_0x4672dc();while(!![]){try{const _0x5f2f5d=parseInt(_0x442b53(0x186))/0x1+-parseInt(_0x442b53(0x1c0))/0x2+parseInt(_0x442b53(0x176))/0x3+parseInt(_0x442b53(0x1c9))/0x4*(-parseInt(_0x442b53(0x17e))/0x5)+parseInt(_0x442b53(0x1b0))/0x6*(parseInt(_0x442b53(0x17d))/0x7)+-parseInt(_0x442b53(0x1c8))/0x8+parseInt(_0x442b53(0x1df))/0x9;if(_0x5f2f5d===_0x5f2ced)break;else _0x4a7578['push'](_0x4a7578['shift']());}catch(_0x28303b){_0x4a7578['push'](_0x4a7578['shift']());}}}(_0x12e1,0xd78bc));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(_0x4c70e0,_0x5a68a4=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x50a598=_0x3ff2,_0x2062d0={'skzFf':'...'};return _0x4c70e0[_0x50a598(0x1a6)]>_0x5a68a4?_0x4c70e0['slice'](0x0,_0x5a68a4)+_0x2062d0['skzFf']:_0x4c70e0;}function _0x12e1(){const _0x29c67b=['target','75414ZiNBWo','bYwcq','open\x20new\x20tab\x20','authorEmail','trim','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','ABUzo','7yKUKTK','5ZBSygp','authorName','hook_event_name','trackPhaseStart','map','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','-\x20[','01_initial-state.png','1413524eLYaOr','GHovm','name','02_state.yml','[playwright-cli]\x20','phase','qiWSC','tool_failure','test','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','close','unaddressedComments','\x20snapshot\x20--filename\x20','stdout','toLocaleDateString','content','\x20(on\x20element:\x20<','mtimeMs','trace.trace.zip','video-stop','IslIs','invocation','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','\x20screenshot\x20--filename\x20','\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.','PostToolUse','createdAt','Reviewer','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','\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','snapshot','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','length','DMgpM','\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','vaPmy','FJwEV','kfOyf','\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','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','`\x20writes\x20a\x20YAML\x20snapshot\x20you\x20can\x20read\x20for\x20element\x20refs\x0a-\x20`click\x20<ref>`,\x20`fill\x20<ref>\x20\x22text\x22`,\x20`check\x20<ref>`,\x20`press\x20Enter`\x0a-\x20`tab-list`,\x20`tab-select\x20<index>`,\x20`tab-new\x20<url>`\x0a-\x20`screenshot\x20--filename\x20','match','7634286YtESEw','EAddq','select\x20tab','BrRzw','00_mozilla-homepage.yml','pjHca','`\x0a-\x20`snapshot\x20--filename\x20','gQCSC','MDswe','open','WiLHh','Bash','values','XtMEB','tab-new','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','3080854rYRGro','key_04_success-state.png','run-code','trackPhaseEnd','dZGhq','`\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`','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','11424744poawBJ','1497196kgAlvV','sAZMj','open\x20new\x20tab','vYaqq','cwd','--filename=','domRef','fill','Vzbee','tracing-start','replace','tool_call','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','sort','capture\x20step\x20`','nOSMx','02_button-clicked.png','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','`\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`','keys','MZcFZ','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','13631868pqPqGQ','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','\x20tracing-start`\x0a3.\x20Run\x20`','dOIqJ','`\x0a9.\x20Run\x20`','fmxeg','HrIrm',']\x20**','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','get','short','playwright_cli_tracing_stop','open\x20browser','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','prlby','[ranger-verification-agent]\x20','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','check','01_mozilla-homepage.png','capture\x20key\x20step\x20`','tqpAf','Audce','error','\x20open\x20','run\x20custom\x20Playwright\x20code','pop','WJKJz','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','SKLac','subcommand','start\x20tracing','MlyLS','select\x20tab\x20','split','trackPhaseError','02_learn-more.yml'];_0x12e1=function(){return _0x29c67b;};return _0x12e1();}function buildCliArtifactPath(_0x36b67a,_0x29c404){return join(_0x36b67a,_0x29c404);}function toStepDisplayName(_0x1e193e){const _0x4fc715=_0x3ff2,_0x5e04fb=basename(_0x1e193e)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')[_0x4fc715(0x1d3)](/-/g,'\x20');return{'name':_0x5e04fb,'isKeyStep':/^key_/i[_0x4fc715(0x18e)](basename(_0x1e193e))};}function extractShellValue(_0x4d72e8){if(!_0x4d72e8)return null;return _0x4d72e8[0x1]??_0x4d72e8[0x2]??_0x4d72e8[0x3]??null;}function extractFilenameOption(_0x371187){const _0x2935cc=_0x3ff2,_0x150db9={'MDswe':function(_0x2b6e07,_0x3e03a6){return _0x2b6e07(_0x3e03a6);}};return _0x150db9[_0x2935cc(0x1b8)](extractShellValue,_0x371187['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x280781,_0x41dadb){const _0x3a3d75=_0x3ff2,_0x3417ad=_0x41dadb[_0x3a3d75(0x1d3)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x280781[_0x3a3d75(0x1af)](new RegExp('(?:^|\x5cs)'+_0x3417ad+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x502f77){const _0x5a7793=_0x3ff2,_0x464b37={'bYwcq':_0x5a7793(0x175),'tqpAf':function(_0x2c78c0,_0x23cf91,_0x4aa7fd){return _0x2c78c0(_0x23cf91,_0x4aa7fd);}};if(!_0x502f77)return _0x464b37[_0x5a7793(0x177)];if(/^e\d+$/i['test'](_0x502f77))return'ref\x20'+_0x502f77;return JSON['stringify'](_0x464b37[_0x5a7793(0x1f3)](truncatePreview,_0x502f77,0x78));}function formatPlaywrightCliLog(_0x4752a8,_0x5c4a87){const _0x248a8c=_0x3ff2,_0x53122d={'nOSMx':function(_0x4f2871,_0x56ca67,_0x227b53){return _0x4f2871(_0x56ca67,_0x227b53);},'tEMgD':_0x248a8c(0x1eb),'XtMEB':_0x248a8c(0x16f),'GHovm':'stop\x20tracing','qiWSC':'video-start','FJwEV':'start\x20video\x20recording','MlyLS':'video-stop','NTzcZ':'stop\x20video\x20recording','PxdoE':function(_0x7b5dd5,_0x5aec79){return _0x7b5dd5(_0x5aec79);},'yUMjW':'capture\x20snapshot','fmxeg':function(_0x5033f8,_0x23ef9b){return _0x5033f8(_0x23ef9b);},'EAddq':'capture\x20screenshot','sAZMj':'click','vYaqq':function(_0xefe5d4,_0x40d314){return _0xefe5d4(_0x40d314);},'ABUzo':_0x248a8c(0x1f0),'LKssV':function(_0xaec9aa,_0x5b1797,_0x338111){return _0xaec9aa(_0x5b1797,_0x338111);},'roddT':_0x248a8c(0x1c2),'fkLmx':function(_0x347120,_0x5380d8,_0x2cb0bf){return _0x347120(_0x5380d8,_0x2cb0bf);},'ULzcc':_0x248a8c(0x1b2)};switch(_0x5c4a87){case _0x248a8c(0x1b9):{const _0x1ff048=_0x53122d['nOSMx'](extractFirstCommandArgument,_0x4752a8,_0x5c4a87);return _0x1ff048?'open\x20'+_0x1ff048:_0x53122d['tEMgD'];}case _0x248a8c(0x1d2):return _0x53122d[_0x248a8c(0x1bd)];case'tracing-stop':return _0x53122d[_0x248a8c(0x187)];case _0x53122d[_0x248a8c(0x18c)]:return _0x53122d[_0x248a8c(0x1aa)];case _0x53122d[_0x248a8c(0x170)]:return _0x53122d['NTzcZ'];case _0x248a8c(0x1a4):{const _0x1db52b=_0x53122d['PxdoE'](extractFilenameOption,_0x4752a8);if(!_0x1db52b)return _0x53122d['yUMjW'];const {name:_0x32748b}=toStepDisplayName(_0x1db52b);return'capture\x20snapshot\x20`'+_0x32748b+'`';}case'screenshot':{const _0x56ca80=_0x53122d[_0x248a8c(0x1e4)](extractFilenameOption,_0x4752a8);if(!_0x56ca80)return _0x53122d[_0x248a8c(0x1b1)];const {name:_0x1aae33,isKeyStep:_0x48a18f}=toStepDisplayName(_0x56ca80);return _0x48a18f?_0x248a8c(0x1f2)+_0x1aae33+'`':_0x248a8c(0x1d7)+_0x1aae33+'`';}case _0x53122d[_0x248a8c(0x1ca)]:return'click\x20'+_0x53122d[_0x248a8c(0x1cc)](formatCommandTarget,extractFirstCommandArgument(_0x4752a8,_0x5c4a87));case _0x53122d[_0x248a8c(0x17c)]:return'check\x20'+formatCommandTarget(_0x53122d[_0x248a8c(0x1d8)](extractFirstCommandArgument,_0x4752a8,_0x5c4a87));case _0x248a8c(0x1d0):return'fill\x20'+_0x53122d['fmxeg'](formatCommandTarget,_0x53122d['LKssV'](extractFirstCommandArgument,_0x4752a8,_0x5c4a87));case'press':return'press\x20'+formatCommandTarget(extractFirstCommandArgument(_0x4752a8,_0x5c4a87));case _0x53122d['roddT']:return _0x248a8c(0x1f7);case _0x248a8c(0x1be):{const _0x40bac2=_0x53122d['fkLmx'](extractFirstCommandArgument,_0x4752a8,_0x5c4a87);return _0x40bac2?_0x248a8c(0x178)+_0x40bac2:_0x248a8c(0x1cb);}case'tab-select':{const _0x3a6f56=extractFirstCommandArgument(_0x4752a8,_0x5c4a87);return _0x3a6f56?_0x248a8c(0x171)+_0x3a6f56:_0x53122d['ULzcc'];}default:return _0x5c4a87;}}function extractPlaywrightCliToolDescription(_0x3cdb81){const _0x41f390=_0x3ff2,_0x50a9e4=_0x3cdb81['description'];if(typeof _0x50a9e4!=='string')return null;const _0x1d0606=_0x50a9e4[_0x41f390(0x17a)]()[_0x41f390(0x1d3)](/\s+/g,'\x20');return _0x1d0606[_0x41f390(0x1a6)]>0x0?_0x1d0606:null;}export function formatPlaywrightCliConsoleLogMessage(_0x45d30b,_0x396d47,_0x38fe15){const _0x5718f8=_0x3ff2,_0x2a81d9={'clBbe':function(_0x2d15a0,_0x56185f){return _0x2d15a0(_0x56185f);}},_0x557b42=formatPlaywrightCliLog(_0x396d47,_0x38fe15),_0x22661e=_0x2a81d9['clBbe'](extractPlaywrightCliToolDescription,_0x45d30b);if(!_0x22661e)return _0x5718f8(0x18a)+_0x557b42;if(process['env']['DEBUG'])return _0x5718f8(0x1ee)+_0x22661e+'\x20('+_0x557b42+')';return'[ranger-verification-agent]\x20'+_0x22661e;}export function buildVerifyFeatureCliDebugPrompt(_0x550fb5,_0x309c8a){const _0x503b38=_0x3ff2,_0xa7e87a={'CWQGt':function(_0x1eb94d,_0x23b85f,_0x3a9264){return _0x1eb94d(_0x23b85f,_0x3a9264);},'WiLHh':function(_0x368b26,_0x1bf8a9,_0x5efd94){return _0x368b26(_0x1bf8a9,_0x5efd94);},'lAvlG':function(_0x33de5d,_0x1f5bd7){return _0x33de5d(_0x1f5bd7);},'IslIs':function(_0x365725,_0x4fb09f){return _0x365725(_0x4fb09f);}},_0x55a531=_0xa7e87a['CWQGt'](buildCliArtifactPath,_0x309c8a,_0x503b38(0x1b4)),_0x47bdeb=buildCliArtifactPath(_0x309c8a,_0x503b38(0x1f1)),_0x2240e8=buildCliArtifactPath(_0x309c8a,_0x503b38(0x174)),_0x967502=_0xa7e87a[_0x503b38(0x1ba)](buildCliArtifactPath,_0x309c8a,'03_learn-more.png'),_0x8f1495=_0xa7e87a['lAvlG'](quoteShellArg,_0x55a531),_0x47f732=quoteShellArg(_0x47bdeb),_0x3bebd1=_0xa7e87a['lAvlG'](quoteShellArg,_0x2240e8),_0x4ec230=_0xa7e87a[_0x503b38(0x19a)](quoteShellArg,_0x967502);return _0x503b38(0x1de)+_0x550fb5+'\x0a\x0a1.\x20Run\x20`'+_0x550fb5+_0x503b38(0x1c7)+_0x550fb5+_0x503b38(0x1e1)+_0x550fb5+_0x503b38(0x183)+_0x309c8a+_0x503b38(0x1e7)+_0x550fb5+'\x20snapshot\x20--filename\x20'+_0x8f1495+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x550fb5+_0x503b38(0x19d)+_0x47f732+_0x503b38(0x19c)+_0x550fb5+'\x20snapshot\x20--filename\x20'+_0x3bebd1+_0x503b38(0x1e3)+_0x550fb5+'\x20screenshot\x20--filename\x20'+_0x4ec230+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0xe881bf){const _0x4eb70f=_0x3ff2,_0x112374={'rSQii':'en-US','jpOjl':_0x4eb70f(0x1e9),'DNFTe':'numeric','prlby':'\x20>\x20','dZGhq':'element','HrIrm':function(_0x463f54,_0x496899,_0x51fe90){return _0x463f54(_0x496899,_0x51fe90);},'dOIqJ':'key_03_success-state.png','dmLBI':function(_0x3eafce,_0x4160e4,_0x3e4058){return _0x3eafce(_0x4160e4,_0x3e4058);},'SKLac':function(_0x2ac1b8,_0x3937bd){return _0x2ac1b8(_0x3937bd);},'cFWae':function(_0x3a0862,_0x3cda1c,_0x323224){return _0x3a0862(_0x3cda1c,_0x323224);},'RJhAj':'03_result-visible.png','pjHca':_0x4eb70f(0x1c1)},{checklistItem:_0x11a516,itemFeedback:_0x1e256b,taskDescription:_0x2fd2c3,cliCommandPrefix:_0x35e128,cliArtifactDir:_0x55a450,isCdpMode:_0x3b6a1e,url:_0x37104d,cdpEndpoint:_0x3bfbcf,loginInstructions:_0xb4cc81}=_0xe881bf,_0x4808f5=_0x112374[_0x4eb70f(0x1e5)](buildCliArtifactPath,_0x55a450,'01_initial.yml'),_0x26103d=buildCliArtifactPath(_0x55a450,_0x4eb70f(0x189)),_0x2ffa7f=buildCliArtifactPath(_0x55a450,_0x112374[_0x4eb70f(0x1e2)]),_0xc3b9b2=_0x112374['dmLBI'](buildCliArtifactPath,_0x55a450,_0x4eb70f(0x185)),_0x2efcae=quoteShellArg(_0x4808f5),_0x390390=_0x112374[_0x4eb70f(0x16d)](quoteShellArg,_0x26103d),_0x526e4a=quoteShellArg(_0x2ffa7f),_0x3a28ec=_0x112374['SKLac'](quoteShellArg,_0xc3b9b2),_0x2d4918=_0x11a516['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x11a516['notes']:'';let _0x379751='';if(_0x1e256b&&_0x1e256b['unaddressedComments']['length']>0x0){const _0x3314db=_0x1e256b[_0x4eb70f(0x191)][_0x4eb70f(0x182)](_0x5ee17b=>{const _0x2a1b84=_0x4eb70f,_0x446858=new Date(_0x5ee17b[_0x2a1b84(0x1a0)])[_0x2a1b84(0x194)](_0x112374['rSQii'],{'month':_0x112374['jpOjl'],'day':_0x112374['DNFTe']}),_0x334e0a=_0x5ee17b[_0x2a1b84(0x17f)]||_0x5ee17b[_0x2a1b84(0x179)]||_0x2a1b84(0x1a1),_0x59b71d=_0x5ee17b[_0x2a1b84(0x1cf)]?_0x2a1b84(0x196)+(_0x5ee17b['domRef']['selector'][_0x2a1b84(0x172)](_0x112374[_0x2a1b84(0x1ed)])[_0x2a1b84(0x16a)]()?.['split'](':')[0x0]||_0x112374[_0x2a1b84(0x1c4)])+'>\x20\x22'+(_0x5ee17b[_0x2a1b84(0x1cf)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x2a1b84(0x184)+_0x5ee17b['id']+_0x2a1b84(0x1e6)+_0x334e0a+'**\x20('+_0x446858+'):\x20\x22'+_0x5ee17b[_0x2a1b84(0x195)]+'\x22'+_0x59b71d;})['join']('\x0a');_0x379751=_0x4eb70f(0x1a8)+_0x3314db;}const _0x3fdde6=_0x1e256b?.['canonicalFlow']?_0x4eb70f(0x1da)+_0x1e256b['canonicalFlow']:'',_0x1cf0c2=_0x3b6a1e?_0x4eb70f(0x16c)+_0x3bfbcf+'.\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'+_0x37104d+_0x4eb70f(0x1a3),_0x3b8b9d=_0x37104d?quoteShellArg(_0x37104d):'',_0x123534=_0x3b6a1e?_0x4eb70f(0x1a5)+_0x35e128+'\x20open`,\x20then\x20`'+_0x35e128+'\x20tracing-start`,\x20then\x20`'+_0x35e128+_0x4eb70f(0x1ad)+_0x55a450+_0x4eb70f(0x17b)+_0x35e128+'\x20snapshot\x20--filename\x20'+_0x2efcae+_0x4eb70f(0x1c5)+_0x35e128+'\x20screenshot\x20--filename\x20'+_0x3a28ec+_0x4eb70f(0x1bf)+_0x35e128+_0x4eb70f(0x1ac):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x35e128+_0x4eb70f(0x1f6)+_0x3b8b9d+'`,\x20then\x20`'+_0x35e128+'\x20tracing-start`,\x20then\x20`'+_0x35e128+_0x4eb70f(0x1ad)+_0x55a450+_0x4eb70f(0x17b)+_0x35e128+_0x4eb70f(0x192)+_0x2efcae+'`\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`'+_0x35e128+_0x4eb70f(0x19d)+_0x3a28ec+_0x4eb70f(0x1e0)+_0x35e128+'\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',_0x112a27=_0x3b6a1e?'\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.':_0x4eb70f(0x1ec),_0x126ce1=_0xb4cc81?_0x4eb70f(0x1a2)+_0xb4cc81+'\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 _0x4eb70f(0x1d5)+_0x11a516['description']+_0x2d4918+_0x379751+_0x3fdde6+_0x4eb70f(0x1c6)+_0x2fd2c3+'\x0a\x0a'+_0x1cf0c2+_0x126ce1+'\x0a\x0a'+_0x123534+_0x4eb70f(0x1ef)+_0x35e128+_0x4eb70f(0x18f)+_0x55a450+_0x4eb70f(0x1b6)+_0x390390+_0x4eb70f(0x1ae)+_0x526e4a+_0x4eb70f(0x1db)+_0x55a450+'`:\x20\x22'+_0xc3b9b2+'\x22,\x20\x22'+buildCliArtifactPath(_0x55a450,_0x4eb70f(0x1d9))+'\x22,\x20\x22'+_0x112374['cFWae'](buildCliArtifactPath,_0x55a450,_0x112374['RJhAj'])+'\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'+_0x112374[_0x4eb70f(0x1e5)](buildCliArtifactPath,_0x55a450,_0x112374[_0x4eb70f(0x1b5)])+'\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'+_0x112a27+_0x4eb70f(0x19e);}export function summarizeVerifyFeatureCliCommandAvailability(_0x3683cf){const _0x477e69=_0x3ff2,_0x4f8f95={'dgFDX':function(_0x396c7b,_0x3ceffc){return _0x396c7b===_0x3ceffc;}},_0x34378d=[..._0x3683cf[_0x477e69(0x1dc)]()]['sort']();let _0x1e42ab=0x0;for(const _0x3f7081 of _0x3683cf[_0x477e69(0x1bc)]()){_0x1e42ab+=_0x3f7081;}return{'cliCommandCount':_0x1e42ab,'cliCommandsSeen':_0x34378d,'noCliCommandsCalled':_0x4f8f95['dgFDX'](_0x1e42ab,0x0)};}export function createVerifyFeatureCliHooks(_0x9955c8){const _0x17119f={'oNXkI':function(_0x80e5ae,_0x353140){return _0x80e5ae!==_0x353140;},'lkMYR':function(_0x5e2d60,_0x16b7af){return _0x5e2d60(_0x16b7af);},'DMgpM':function(_0x939e3e,_0x5a884d){return _0x939e3e+_0x5a884d;},'MZcFZ':'tool_call','Hckdq':'PostToolUseFailure','gQCSC':function(_0xfa45a3,_0x4b0612){return _0xfa45a3!==_0x4b0612;},'Isgtd':'playwright-cli'},_0x61d940=new Map(),_0x8f7c5=async _0x45d6e2=>{const _0x1eb3ef=_0x3ff2;if(_0x17119f['oNXkI'](_0x45d6e2[_0x1eb3ef(0x180)],_0x1eb3ef(0x19f)))return{};const _0x5b13bf=_0x45d6e2;if(_0x5b13bf['tool_name']!=='Bash')return{};const _0x40f213=_0x5b13bf['tool_input'],_0x94912e=extractBashCommand(_0x40f213);if(!_0x94912e)return{};const _0x67dd67=_0x17119f['lkMYR'](parsePlaywrightCliCommand,_0x94912e);if(!_0x67dd67)return{};return _0x61d940['set'](_0x67dd67,_0x17119f[_0x1eb3ef(0x1a7)](_0x61d940[_0x1eb3ef(0x1e8)](_0x67dd67)||0x0,0x1)),_0x9955c8[_0x1eb3ef(0x181)](_0x1eb3ef(0x1d4),{'transport':'playwright-cli','toolName':_0x67dd67}),_0x9955c8[_0x1eb3ef(0x1c3)](_0x17119f[_0x1eb3ef(0x1dd)],{'transport':'playwright-cli','toolName':_0x67dd67,'bashCommandPreview':truncatePreview(_0x94912e)}),_0x67dd67!==_0x1eb3ef(0x1a4)&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x40f213,_0x94912e,_0x67dd67)),{};},_0x53b621=async _0x5d4ec2=>{const _0x54f9f3=_0x3ff2;if(_0x17119f['oNXkI'](_0x5d4ec2['hook_event_name'],_0x17119f['Hckdq']))return{};const _0x488c76=_0x5d4ec2;if(_0x17119f[_0x54f9f3(0x1b7)](_0x488c76['tool_name'],_0x54f9f3(0x1bb)))return{};return await _0x9955c8[_0x54f9f3(0x173)](_0x54f9f3(0x18d),_0x488c76[_0x54f9f3(0x1f5)],{'transport':_0x17119f['Isgtd'],'toolName':_0x54f9f3(0x1bb)}),{};};return{'postToolUseHook':_0x8f7c5,'postToolUseFailureHook':_0x53b621,'commandCounts':_0x61d940};}function _0x3ff2(_0x31a6cf,_0x12ace3){_0x31a6cf=_0x31a6cf-0x16a;const _0x12e1d0=_0x12e1();let _0x3ff22f=_0x12e1d0[_0x31a6cf];return _0x3ff22f;}async function runPlaywrightCliLifecycleCommand(_0x3a583b){const _0x4ae655=_0x3ff2,_0x23c811={'TvXtA':function(_0x5b11d4,_0x3b1219){return _0x5b11d4(_0x3b1219);},'Vzbee':function(_0x45c927,_0x2b6398){return _0x45c927??_0x2b6398;},'pvcxB':function(_0x58a5d1,_0x54bd4,_0x4114ea){return _0x58a5d1(_0x54bd4,_0x4114ea);}},{sessionId:_0x3a1abb,configPath:_0x1beed8,commandArgs:_0x3b72d9,env:_0x52efa5,telemetry:_0x5279ef,phase:_0x55dbb8,metadata:_0x24a5b8,timeoutMs:_0x33473b}=_0x3a583b;_0x5279ef[_0x4ae655(0x181)](_0x55dbb8,_0x24a5b8);try{const _0x2a7850=await _0x23c811['TvXtA'](runPlaywrightCliCommand,{'sessionId':_0x3a1abb,'configPath':_0x1beed8,'commandArgs':_0x3b72d9,'cwd':process[_0x4ae655(0x1cd)](),'env':_0x52efa5,'timeoutMs':_0x23c811[_0x4ae655(0x1d1)](_0x33473b,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x5279ef[_0x4ae655(0x1c3)](_0x55dbb8,{..._0x24a5b8,'subcommand':_0x2a7850[_0x4ae655(0x19b)][_0x4ae655(0x16e)],'stdoutPreview':truncatePreview(_0x2a7850[_0x4ae655(0x193)],0x7d0),'stderrPreview':_0x23c811['pvcxB'](truncatePreview,_0x2a7850['stderr'],0x7d0)});}catch(_0x55cde3){await _0x5279ef['trackPhaseError'](_0x55dbb8,_0x55cde3,_0x24a5b8);throw _0x55cde3;}}export async function finalizeVerifyFeatureCliSession(_0x559847){const _0x555a2a=_0x3ff2,_0x16efa5={'WJKJz':_0x555a2a(0x1ea),'hlBwA':'tracing-stop','kfOyf':'playwright_cli_video_stop','vaPmy':'session-recording.webm'},{telemetry:_0x390b9e,sessionId:_0x521f87,configPath:_0xf9ced4,cliArtifactDir:_0x2c25bf,env:_0x5b14b2,transportMetadata:_0x1be6d0}=_0x559847,_0x545c83=[{'phase':_0x16efa5[_0x555a2a(0x16b)],'commandArgs':[_0x16efa5['hlBwA']]},{'phase':_0x16efa5[_0x555a2a(0x1ab)],'commandArgs':[_0x555a2a(0x199),_0x555a2a(0x1ce)+buildCliArtifactPath(_0x2c25bf,_0x16efa5[_0x555a2a(0x1a9)])]},{'phase':'playwright_cli_close','commandArgs':[_0x555a2a(0x190)]}];for(const _0x3d2fcb of _0x545c83){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x521f87,'configPath':_0xf9ced4,'commandArgs':[..._0x3d2fcb['commandArgs']],'env':_0x5b14b2,'telemetry':_0x390b9e,'phase':_0x3d2fcb[_0x555a2a(0x18b)],'metadata':_0x1be6d0});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x1c4140){const _0x4f4017=_0x3ff2,_0xee2628={'vPlAX':'trace.zip','xTtPu':function(_0x45d98f,_0x1a7387,_0x583569){return _0x45d98f(_0x1a7387,_0x583569);}},_0x3c62dc=[_0xee2628['vPlAX'],_0x4f4017(0x198)];for(const _0x248f59 of _0x3c62dc){const _0x2bb5c4=_0xee2628['xTtPu'](join,_0x1c4140,_0x248f59);try{return{'buffer':await readFile(_0x2bb5c4),'source':_0x2bb5c4};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x2c1741){const _0x383ca6=_0x3ff2,_0x5f5be1={'Audce':function(_0x347178,_0xf97771,_0x20dca1){return _0x347178(_0xf97771,_0x20dca1);},'PZPsN':function(_0x18728e,_0x2f9222){return _0x18728e+_0x2f9222;},'BrRzw':function(_0x4659bb,_0x16d379,_0x4fd2b6){return _0x4659bb(_0x16d379,_0x4fd2b6);},'XAcGB':function(_0x291337,_0x3262f8){return _0x291337===_0x3262f8;}},{cwd:_0x6d7d9,cliArtifactDir:_0x215b8a,startTime:_0x537e3f}=_0x2c1741,_0x4f7ef8=[];await _0x5f5be1[_0x383ca6(0x1f4)](mkdir,_0x215b8a,{'recursive':!![]});const _0x3a67dd=await _0x5f5be1['Audce'](readdir,_0x6d7d9,{'withFileTypes':!![]});for(const _0x4678f5 of _0x3a67dd){if(!_0x4678f5['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x4678f5[_0x383ca6(0x188)]))continue;const _0x49d012=join(_0x6d7d9,_0x4678f5['name']),_0x3cb95f=await stat(_0x49d012);if(_0x5f5be1['PZPsN'](_0x3cb95f[_0x383ca6(0x197)],0x7d0)<_0x537e3f)continue;const _0x4c06eb=_0x5f5be1[_0x383ca6(0x1b3)](buildCliArtifactPath,_0x215b8a,_0x4678f5['name']);if(_0x5f5be1['XAcGB'](_0x49d012,_0x4c06eb))continue;await rename(_0x49d012,_0x4c06eb),_0x4f7ef8['push'](_0x4678f5['name']);}return _0x4f7ef8[_0x383ca6(0x1d6)]();}
1
+ (function(_0x469b2e,_0x2b8d60){const _0x459271=_0x26f0,_0x2115f1=_0x469b2e();while(!![]){try{const _0x125889=-parseInt(_0x459271(0x1cd))/0x1*(-parseInt(_0x459271(0x234))/0x2)+parseInt(_0x459271(0x21f))/0x3+parseInt(_0x459271(0x1fd))/0x4*(parseInt(_0x459271(0x24f))/0x5)+-parseInt(_0x459271(0x201))/0x6+parseInt(_0x459271(0x1e4))/0x7*(-parseInt(_0x459271(0x1d4))/0x8)+parseInt(_0x459271(0x1d6))/0x9+parseInt(_0x459271(0x1e3))/0xa*(-parseInt(_0x459271(0x1de))/0xb);if(_0x125889===_0x2b8d60)break;else _0x2115f1['push'](_0x2115f1['shift']());}catch(_0x4eef2d){_0x2115f1['push'](_0x2115f1['shift']());}}}(_0x1bdf,0xdf67e));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(_0x1e2586,_0x349b04=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x542adf=_0x26f0,_0x258cef={'AOtVK':function(_0x3ebbb5,_0x2fbc4c){return _0x3ebbb5+_0x2fbc4c;}};return _0x1e2586['length']>_0x349b04?_0x258cef['AOtVK'](_0x1e2586['slice'](0x0,_0x349b04),_0x542adf(0x243)):_0x1e2586;}function buildCliArtifactPath(_0x21efe5,_0x569c83){return join(_0x21efe5,_0x569c83);}function toStepDisplayName(_0x5bc708){const _0x6e215=_0x26f0,_0x2eddeb={'sqMNM':function(_0x3b0165,_0x54567c){return _0x3b0165(_0x54567c);}},_0x208d8a=basename(_0x5bc708)[_0x6e215(0x23c)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x208d8a,'isKeyStep':/^key_/i[_0x6e215(0x24b)](_0x2eddeb[_0x6e215(0x20e)](basename,_0x5bc708))};}function extractShellValue(_0x2dab47){if(!_0x2dab47)return null;return _0x2dab47[0x1]??_0x2dab47[0x2]??_0x2dab47[0x3]??null;}function _0x1bdf(){const _0x3f66a6=['Bash','test','QjREx','select\x20tab','length','695ENRVEX','commandArgs','\x20screenshot\x20--filename\x20','open\x20new\x20tab','description','session-recording.webm','stop\x20video\x20recording','iNXYX','qSuUx','domRef','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','[ranger-verification-agent]\x20','PostToolUse','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','stringify','JeHcQ','capture\x20screenshot','authorEmail','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','CUuhX','SbmFH','1aJkckc','joUVJ','EApcI','):\x20\x22','\x20>\x20','CFrgl','01_mozilla-homepage.png','8cjhSHx','\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','8146926JRCzMH','open','01_initial.yml','click','GVidF','fill','`\x0a9.\x20Run\x20`','run\x20custom\x20Playwright\x20code','2409GHkDmR','CurRx','vnEkW','env','tool_failure','4850mwLhEx','2629417AHZKUt','press\x20','trackPhaseEnd','en-US','tracing-stop','.\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','mtimeMs','MWOHe','open\x20browser','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','GRJyQ','ZNOyp','tool_call','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','02_learn-more.yml','rLYKJ','03_result-visible.png','split','unaddressedComments','isFile','element','02_state.yml','createdAt','content','12164PDhotv','\x20open`,\x20then\x20`','trim','set','6645666kuTEsz','WqdHo','01_initial-state.png','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','yCMPO','ymhiQ','trace.trace.zip','SBiPG','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','string','`\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`','ucOqR','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','sqMNM','trackPhaseError','oGZCz','tracing-start','hSMus','\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.','vkNer',']\x20**','\x20snapshot\x20--filename\x20','cnPrN','-\x20[','qfxle','authorName','match','trackPhaseStart','\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','jwxlO','3369801lmPmDB','**\x20(','EdGSr','`\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`','phase','icMzz','click\x20','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','textContent','press','check','trace.zip','video-stop','\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','OQbWe','pop','\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.','ktiUZ','MlvFW','DVcEs','\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','106694PHcrgl','name','short','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','UoCxr','playwright_cli_close','snapshot','gfqAr','replace','values','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','`\x20to\x20inspect\x20the\x20current\x20app\x20state.\x0a5.\x20Read\x20snapshot\x20YAML\x20files\x20to\x20find\x20element\x20references\x20like\x20`e12`,\x20then\x20use\x20them\x20with\x20`click`,\x20`fill`,\x20`check`,\x20or\x20`select`.\x0a6.\x20Use\x20`','\x0a\x0a##\x20Additional\x20Notes\x0a','run-code','[playwright-cli]\x20','...','QbnTO','tool_name','LTuXP','open\x20new\x20tab\x20','fill\x20','keys'];_0x1bdf=function(){return _0x3f66a6;};return _0x1bdf();}function extractFilenameOption(_0x285902){const _0x19ab4a=_0x26f0;return extractShellValue(_0x285902[_0x19ab4a(0x21b)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x41f8f1,_0x12844f){const _0x3e40aa=_0x12844f['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x41f8f1['match'](new RegExp('(?:^|\x5cs)'+_0x3e40aa+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x50484b){const _0x17c6ff=_0x26f0;if(!_0x50484b)return'target';if(/^e\d+$/i[_0x17c6ff(0x24b)](_0x50484b))return'ref\x20'+_0x50484b;return JSON[_0x17c6ff(0x25d)](truncatePreview(_0x50484b,0x78));}function formatPlaywrightCliLog(_0x4d1b9b,_0x43a5e4){const _0x2905af=_0x26f0,_0x4fed94={'ucOqR':function(_0x1d32cd,_0x309676,_0x5b416b){return _0x1d32cd(_0x309676,_0x5b416b);},'JeHcQ':'stop\x20tracing','MhZPE':'start\x20video\x20recording','OQbWe':_0x2905af(0x255),'WqdHo':function(_0x362024,_0x292039){return _0x362024(_0x292039);},'rLYKJ':'screenshot','oDtHh':function(_0x48e500,_0x2e52b8){return _0x48e500(_0x2e52b8);},'mBlzH':function(_0x34f211,_0x557416,_0x29dcfa){return _0x34f211(_0x557416,_0x29dcfa);},'GRJyQ':function(_0xfca10b,_0x382d5f,_0x40361a){return _0xfca10b(_0x382d5f,_0x40361a);}};switch(_0x43a5e4){case _0x2905af(0x1d7):{const _0x29f1ca=_0x4fed94['ucOqR'](extractFirstCommandArgument,_0x4d1b9b,_0x43a5e4);return _0x29f1ca?'open\x20'+_0x29f1ca:_0x2905af(0x1ed);}case _0x2905af(0x211):return'start\x20tracing';case _0x2905af(0x1e8):return _0x4fed94[_0x2905af(0x25e)];case'video-start':return _0x4fed94['MhZPE'];case _0x2905af(0x22b):return _0x4fed94[_0x2905af(0x22d)];case _0x2905af(0x23a):{const _0x406518=_0x4fed94['WqdHo'](extractFilenameOption,_0x4d1b9b);if(!_0x406518)return'capture\x20snapshot';const {name:_0xdbd23}=toStepDisplayName(_0x406518);return'capture\x20snapshot\x20`'+_0xdbd23+'`';}case _0x4fed94[_0x2905af(0x1f4)]:{const _0x147f8d=_0x4fed94[_0x2905af(0x202)](extractFilenameOption,_0x4d1b9b);if(!_0x147f8d)return _0x2905af(0x25f);const {name:_0x5aab4a,isKeyStep:_0xa11f6d}=_0x4fed94['oDtHh'](toStepDisplayName,_0x147f8d);return _0xa11f6d?'capture\x20key\x20step\x20`'+_0x5aab4a+'`':'capture\x20step\x20`'+_0x5aab4a+'`';}case _0x2905af(0x1d9):return _0x2905af(0x225)+formatCommandTarget(_0x4fed94[_0x2905af(0x20c)](extractFirstCommandArgument,_0x4d1b9b,_0x43a5e4));case _0x2905af(0x229):return'check\x20'+formatCommandTarget(_0x4fed94['ucOqR'](extractFirstCommandArgument,_0x4d1b9b,_0x43a5e4));case _0x2905af(0x1db):return _0x2905af(0x248)+formatCommandTarget(_0x4fed94['mBlzH'](extractFirstCommandArgument,_0x4d1b9b,_0x43a5e4));case _0x2905af(0x228):return _0x2905af(0x1e5)+formatCommandTarget(_0x4fed94['GRJyQ'](extractFirstCommandArgument,_0x4d1b9b,_0x43a5e4));case _0x2905af(0x241):return _0x2905af(0x1dd);case'tab-new':{const _0x89adb8=_0x4fed94[_0x2905af(0x1ef)](extractFirstCommandArgument,_0x4d1b9b,_0x43a5e4);return _0x89adb8?_0x2905af(0x247)+_0x89adb8:_0x2905af(0x252);}case'tab-select':{const _0xef021=extractFirstCommandArgument(_0x4d1b9b,_0x43a5e4);return _0xef021?'select\x20tab\x20'+_0xef021:_0x2905af(0x24d);}default:return _0x43a5e4;}}function extractPlaywrightCliToolDescription(_0x532c67){const _0x38dfda=_0x26f0,_0x452a1f={'qfxle':function(_0x2f1f50,_0x473046){return _0x2f1f50!==_0x473046;},'qSuUx':function(_0x29d40a,_0x27f57d){return _0x29d40a>_0x27f57d;}},_0x397039=_0x532c67[_0x38dfda(0x253)];if(_0x452a1f[_0x38dfda(0x219)](typeof _0x397039,_0x38dfda(0x20a)))return null;const _0x3a3cd2=_0x397039[_0x38dfda(0x1ff)]()['replace'](/\s+/g,'\x20');return _0x452a1f[_0x38dfda(0x257)](_0x3a3cd2['length'],0x0)?_0x3a3cd2:null;}export function formatPlaywrightCliConsoleLogMessage(_0x4f7134,_0x5199e4,_0x55d11c){const _0x54a670=_0x26f0,_0x35f702={'QjREx':function(_0xb74742,_0x556741,_0x16f9c6){return _0xb74742(_0x556741,_0x16f9c6);},'yCMPO':function(_0x52c8b1,_0x5a519d){return _0x52c8b1(_0x5a519d);}},_0xf95fef=_0x35f702[_0x54a670(0x24c)](formatPlaywrightCliLog,_0x5199e4,_0x55d11c),_0x5eddcf=_0x35f702[_0x54a670(0x205)](extractPlaywrightCliToolDescription,_0x4f7134);if(!_0x5eddcf)return _0x54a670(0x242)+_0xf95fef;if(process[_0x54a670(0x1e1)]['DEBUG'])return'[ranger-verification-agent]\x20'+_0x5eddcf+'\x20('+_0xf95fef+')';return _0x54a670(0x25a)+_0x5eddcf;}export function buildVerifyFeatureCliDebugPrompt(_0x5550df,_0x160b5e){const _0x4ab73a=_0x26f0,_0xba3999={'SBiPG':function(_0x44c02a,_0x5b901b,_0x56799f){return _0x44c02a(_0x5b901b,_0x56799f);},'vnEkW':_0x4ab73a(0x1d3),'OCOGV':function(_0xed99e0,_0x50df55,_0x5f73e){return _0xed99e0(_0x50df55,_0x5f73e);},'ymhiQ':function(_0x6bea4b,_0x7e8c66){return _0x6bea4b(_0x7e8c66);},'vkNer':function(_0x249765,_0x58227b){return _0x249765(_0x58227b);}},_0x27deca=_0xba3999[_0x4ab73a(0x208)](buildCliArtifactPath,_0x160b5e,'00_mozilla-homepage.yml'),_0x2fef4b=_0xba3999['SBiPG'](buildCliArtifactPath,_0x160b5e,_0xba3999[_0x4ab73a(0x1e0)]),_0x592ed2=_0xba3999['SBiPG'](buildCliArtifactPath,_0x160b5e,_0x4ab73a(0x1f3)),_0x416607=_0xba3999['OCOGV'](buildCliArtifactPath,_0x160b5e,'03_learn-more.png'),_0x59a633=quoteShellArg(_0x27deca),_0x9eac7b=_0xba3999[_0x4ab73a(0x206)](quoteShellArg,_0x2fef4b),_0x1b8b8a=_0xba3999[_0x4ab73a(0x214)](quoteShellArg,_0x592ed2),_0x235e6b=quoteShellArg(_0x416607);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x5550df+'\x0a\x0a1.\x20Run\x20`'+_0x5550df+_0x4ab73a(0x1ca)+_0x5550df+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x5550df+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x160b5e+_0x4ab73a(0x1ee)+_0x5550df+_0x4ab73a(0x216)+_0x59a633+_0x4ab73a(0x20d)+_0x5550df+'\x20screenshot\x20--filename\x20'+_0x9eac7b+_0x4ab73a(0x226)+_0x5550df+'\x20snapshot\x20--filename\x20'+_0x1b8b8a+_0x4ab73a(0x1dc)+_0x5550df+_0x4ab73a(0x251)+_0x235e6b+_0x4ab73a(0x25c);}export function buildVerifyFeatureCliPrompt(_0x5cd4d1){const _0x3f3b61=_0x26f0,_0x58de63={'hSMus':_0x3f3b61(0x1e7),'facyf':_0x3f3b61(0x236),'EUAjO':'numeric','MlvFW':'Reviewer','ktiUZ':function(_0x255c32,_0x45fb1d,_0x231f84){return _0x255c32(_0x45fb1d,_0x231f84);},'iNXYX':function(_0x3b1ea7,_0x123eb4){return _0x3b1ea7(_0x123eb4);},'bOlxN':function(_0x3b3f15,_0x8e5037){return _0x3b3f15>_0x8e5037;},'CFrgl':function(_0x50fcff,_0x1fb8d6){return _0x50fcff(_0x1fb8d6);},'CurRx':'02_button-clicked.png','OskzB':function(_0x22b234,_0x5b5ed0,_0x546e01){return _0x22b234(_0x5b5ed0,_0x546e01);},'bugBC':_0x3f3b61(0x1f5)},{checklistItem:_0x29178c,itemFeedback:_0x326d81,taskDescription:_0x13ff61,cliCommandPrefix:_0x1959df,cliArtifactDir:_0xc69a78,isCdpMode:_0x5115c9,url:_0x333f77,cdpEndpoint:_0x294e0c,loginInstructions:_0x162ae1}=_0x5cd4d1,_0x5f2e26=buildCliArtifactPath(_0xc69a78,_0x3f3b61(0x1d8)),_0x2a3915=buildCliArtifactPath(_0xc69a78,_0x3f3b61(0x1fa)),_0x4ddbbc=_0x58de63['ktiUZ'](buildCliArtifactPath,_0xc69a78,'key_03_success-state.png'),_0x3a220d=buildCliArtifactPath(_0xc69a78,_0x3f3b61(0x203)),_0x8b4a55=quoteShellArg(_0x5f2e26),_0x440383=quoteShellArg(_0x2a3915),_0x37b269=_0x58de63[_0x3f3b61(0x256)](quoteShellArg,_0x4ddbbc),_0x5a801e=_0x58de63['iNXYX'](quoteShellArg,_0x3a220d),_0x256b06=_0x29178c['notes']?_0x3f3b61(0x240)+_0x29178c['notes']:'';let _0x4ff6bb='';if(_0x326d81&&_0x58de63['bOlxN'](_0x326d81[_0x3f3b61(0x1f7)][_0x3f3b61(0x24e)],0x0)){const _0x1c7e05=_0x326d81['unaddressedComments']['map'](_0x11532a=>{const _0x4bade9=_0x3f3b61,_0x1dd9a2=new Date(_0x11532a[_0x4bade9(0x1fb)])['toLocaleDateString'](_0x58de63[_0x4bade9(0x212)],{'month':_0x58de63['facyf'],'day':_0x58de63['EUAjO']}),_0x4a37a9=_0x11532a[_0x4bade9(0x21a)]||_0x11532a[_0x4bade9(0x260)]||_0x58de63[_0x4bade9(0x231)],_0x109057=_0x11532a[_0x4bade9(0x258)]?'\x20(on\x20element:\x20<'+(_0x11532a['domRef']['selector'][_0x4bade9(0x1f6)](_0x4bade9(0x1d1))[_0x4bade9(0x22e)]()?.['split'](':')[0x0]||_0x4bade9(0x1f9))+'>\x20\x22'+(_0x11532a[_0x4bade9(0x258)][_0x4bade9(0x227)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x4bade9(0x218)+_0x11532a['id']+_0x4bade9(0x215)+_0x4a37a9+_0x4bade9(0x220)+_0x1dd9a2+_0x4bade9(0x1d0)+_0x11532a[_0x4bade9(0x1fc)]+'\x22'+_0x109057;})['join']('\x0a');_0x4ff6bb=_0x3f3b61(0x233)+_0x1c7e05;}const _0x20b26a=_0x326d81?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x326d81['canonicalFlow']:'',_0x5a3de5=_0x5115c9?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x294e0c+_0x3f3b61(0x1e9):_0x3f3b61(0x1ea)+_0x333f77+_0x3f3b61(0x22c),_0x59d4bb=_0x333f77?_0x58de63[_0x3f3b61(0x1d2)](quoteShellArg,_0x333f77):'',_0x2096ff=_0x5115c9?_0x3f3b61(0x23e)+_0x1959df+_0x3f3b61(0x1fe)+_0x1959df+'\x20tracing-start`,\x20then\x20`'+_0x1959df+_0x3f3b61(0x209)+_0xc69a78+_0x3f3b61(0x237)+_0x1959df+_0x3f3b61(0x216)+_0x8b4a55+_0x3f3b61(0x23f)+_0x1959df+_0x3f3b61(0x251)+_0x5a801e+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x1959df+_0x3f3b61(0x21d):_0x3f3b61(0x23e)+_0x1959df+'\x20open\x20'+_0x59d4bb+'`,\x20then\x20`'+_0x1959df+'\x20tracing-start`,\x20then\x20`'+_0x1959df+_0x3f3b61(0x209)+_0xc69a78+_0x3f3b61(0x237)+_0x1959df+'\x20snapshot\x20--filename\x20'+_0x8b4a55+_0x3f3b61(0x222)+_0x1959df+_0x3f3b61(0x251)+_0x5a801e+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x1959df+'\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',_0x106ba5=_0x5115c9?_0x3f3b61(0x213):'\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.',_0xa58776=_0x162ae1?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x162ae1+'\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 _0x3f3b61(0x204)+_0x29178c[_0x3f3b61(0x253)]+_0x256b06+_0x4ff6bb+_0x20b26a+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x13ff61+'\x0a\x0a'+_0x5a3de5+_0xa58776+'\x0a\x0a'+_0x2096ff+_0x3f3b61(0x259)+_0x1959df+_0x3f3b61(0x1f2)+_0xc69a78+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x440383+'`\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'+_0x37b269+_0x3f3b61(0x20b)+_0xc69a78+'`:\x20\x22'+_0x3a220d+'\x22,\x20\x22'+_0x58de63[_0x3f3b61(0x230)](buildCliArtifactPath,_0xc69a78,_0x58de63[_0x3f3b61(0x1df)])+'\x22,\x20\x22'+_0x58de63['OskzB'](buildCliArtifactPath,_0xc69a78,_0x58de63['bugBC'])+_0x3f3b61(0x1d5)+buildCliArtifactPath(_0xc69a78,'key_04_success-state.png')+'\x22\x0a-\x20The\x20\x22key_\x22\x20prefix\x20marks\x20screenshots\x20as\x20high-priority\x20evidence\x20for\x20human\x20reviewers\x0a\x0a**Aim\x20for\x203-6\x20screenshots\x20per\x20verification**\x20to\x20document\x20the\x20complete\x20flow.\x20Mark\x201-2\x20of\x20the\x20most\x20important\x20ones\x20with\x20the\x20\x22key_\x22\x20prefix.\x0a'+_0x106ba5+_0x3f3b61(0x22f);}export function summarizeVerifyFeatureCliCommandAvailability(_0x15d0c0){const _0x306dd4=_0x26f0,_0x27b0b9=[..._0x15d0c0[_0x306dd4(0x249)]()]['sort']();let _0x239ff8=0x0;for(const _0x2fce20 of _0x15d0c0[_0x306dd4(0x23d)]()){_0x239ff8+=_0x2fce20;}return{'cliCommandCount':_0x239ff8,'cliCommandsSeen':_0x27b0b9,'noCliCommandsCalled':_0x239ff8===0x0};}export function createVerifyFeatureCliHooks(_0x38ac90){const _0x50b84f=_0x26f0,_0x3c4b54={'icMzz':_0x50b84f(0x25b),'QbnTO':function(_0x16c23d,_0x425986){return _0x16c23d(_0x425986);},'YDhcJ':_0x50b84f(0x1f1),'kNMmz':'playwright-cli','gfqAr':function(_0xd403a5,_0x1956e7,_0x1ef58c,_0x2a5d7d){return _0xd403a5(_0x1956e7,_0x1ef58c,_0x2a5d7d);},'MWOHe':'PostToolUseFailure','oGZCz':function(_0x1d274e,_0x47ebb9){return _0x1d274e!==_0x47ebb9;},'mUDHK':_0x50b84f(0x1e2)},_0x1df119=new Map(),_0x11a6ba=async _0x124e2c=>{const _0x288928=_0x50b84f;if(_0x124e2c['hook_event_name']!==_0x3c4b54[_0x288928(0x224)])return{};const _0x557432=_0x124e2c;if(_0x557432['tool_name']!==_0x288928(0x24a))return{};const _0x2cc94f=_0x557432['tool_input'],_0xe8c924=_0x3c4b54['QbnTO'](extractBashCommand,_0x2cc94f);if(!_0xe8c924)return{};const _0x16b7ed=_0x3c4b54[_0x288928(0x244)](parsePlaywrightCliCommand,_0xe8c924);if(!_0x16b7ed)return{};return _0x1df119[_0x288928(0x200)](_0x16b7ed,(_0x1df119['get'](_0x16b7ed)||0x0)+0x1),_0x38ac90[_0x288928(0x21c)]('tool_call',{'transport':'playwright-cli','toolName':_0x16b7ed}),_0x38ac90['trackPhaseEnd'](_0x3c4b54['YDhcJ'],{'transport':_0x3c4b54['kNMmz'],'toolName':_0x16b7ed,'bashCommandPreview':truncatePreview(_0xe8c924)}),_0x16b7ed!==_0x288928(0x23a)&&console['log'](_0x3c4b54[_0x288928(0x23b)](formatPlaywrightCliConsoleLogMessage,_0x2cc94f,_0xe8c924,_0x16b7ed)),{};},_0x58369b=async _0x551e19=>{const _0x3da5b1=_0x50b84f;if(_0x551e19['hook_event_name']!==_0x3c4b54[_0x3da5b1(0x1ec)])return{};const _0x2e4204=_0x551e19;if(_0x3c4b54[_0x3da5b1(0x210)](_0x2e4204[_0x3da5b1(0x245)],_0x3da5b1(0x24a)))return{};return await _0x38ac90['trackPhaseError'](_0x3c4b54['mUDHK'],_0x2e4204['error'],{'transport':'playwright-cli','toolName':'Bash'}),{};};return{'postToolUseHook':_0x11a6ba,'postToolUseFailureHook':_0x58369b,'commandCounts':_0x1df119};}async function runPlaywrightCliLifecycleCommand(_0xade7ec){const _0x410e8a=_0x26f0,_0x5df0af={'jwxlO':function(_0x1492cf,_0x34e266){return _0x1492cf??_0x34e266;},'SbmFH':function(_0x16d5b3,_0x36d314,_0x1fa600){return _0x16d5b3(_0x36d314,_0x1fa600);},'CUuhX':function(_0x595d40,_0x4bbe5b,_0x31aa0b){return _0x595d40(_0x4bbe5b,_0x31aa0b);}},{sessionId:_0x375ec5,configPath:_0x43ce9d,commandArgs:_0x329f10,env:_0x9e15e8,telemetry:_0x17e2ed,phase:_0x62478,metadata:_0xaa1a5b,timeoutMs:_0x212917}=_0xade7ec;_0x17e2ed[_0x410e8a(0x21c)](_0x62478,_0xaa1a5b);try{const _0x2ba9b1=await runPlaywrightCliCommand({'sessionId':_0x375ec5,'configPath':_0x43ce9d,'commandArgs':_0x329f10,'cwd':process['cwd'](),'env':_0x9e15e8,'timeoutMs':_0x5df0af[_0x410e8a(0x21e)](_0x212917,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x17e2ed[_0x410e8a(0x1e6)](_0x62478,{..._0xaa1a5b,'subcommand':_0x2ba9b1['invocation']['subcommand'],'stdoutPreview':_0x5df0af[_0x410e8a(0x1cc)](truncatePreview,_0x2ba9b1['stdout'],0x7d0),'stderrPreview':_0x5df0af[_0x410e8a(0x1cb)](truncatePreview,_0x2ba9b1['stderr'],0x7d0)});}catch(_0x11545e){await _0x17e2ed[_0x410e8a(0x20f)](_0x62478,_0x11545e,_0xaa1a5b);throw _0x11545e;}}export async function finalizeVerifyFeatureCliSession(_0x3b9e6c){const _0x284010=_0x26f0,_0x5b3900={'EdGSr':'playwright_cli_tracing_stop','EApcI':_0x284010(0x1e8),'ZNOyp':_0x284010(0x254),'FUlSk':function(_0x3d1e44,_0x2d0bf0){return _0x3d1e44(_0x2d0bf0);}},{telemetry:_0x2cd80a,sessionId:_0x50643b,configPath:_0x1a9a6e,cliArtifactDir:_0x2f3b0c,env:_0x2ef489,transportMetadata:_0xc67560}=_0x3b9e6c,_0xfbe489=[{'phase':_0x5b3900[_0x284010(0x221)],'commandArgs':[_0x5b3900[_0x284010(0x1cf)]]},{'phase':'playwright_cli_video_stop','commandArgs':[_0x284010(0x22b),'--filename='+buildCliArtifactPath(_0x2f3b0c,_0x5b3900[_0x284010(0x1f0)])]},{'phase':_0x284010(0x239),'commandArgs':['close']}];for(const _0x6ad159 of _0xfbe489){try{await _0x5b3900['FUlSk'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x50643b,'configPath':_0x1a9a6e,'commandArgs':[..._0x6ad159[_0x284010(0x250)]],'env':_0x2ef489,'telemetry':_0x2cd80a,'phase':_0x6ad159[_0x284010(0x223)],'metadata':_0xc67560});}catch{}}}function _0x26f0(_0x3dbc7c,_0x13e89e){_0x3dbc7c=_0x3dbc7c-0x1ca;const _0x1bdf93=_0x1bdf();let _0x26f0dd=_0x1bdf93[_0x3dbc7c];return _0x26f0dd;}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x2d0ae7){const _0x24cb96=_0x26f0,_0x11b5ff={'joUVJ':function(_0x44888c,_0x39e208,_0x5ee2c0){return _0x44888c(_0x39e208,_0x5ee2c0);},'DVcEs':function(_0x2b3b42,_0x5345ab){return _0x2b3b42(_0x5345ab);}},_0x1cf4e8=[_0x24cb96(0x22a),_0x24cb96(0x207)];for(const _0x5c118f of _0x1cf4e8){const _0x3ce627=_0x11b5ff[_0x24cb96(0x1ce)](join,_0x2d0ae7,_0x5c118f);try{return{'buffer':await _0x11b5ff[_0x24cb96(0x232)](readFile,_0x3ce627),'source':_0x3ce627};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x5a04dd){const _0x522e1d=_0x26f0,_0x8c0d30={'UoCxr':function(_0x14b4fd,_0x3bd5de,_0x4de6f9){return _0x14b4fd(_0x3bd5de,_0x4de6f9);},'LTuXP':function(_0x4b500c,_0x19b41e){return _0x4b500c(_0x19b41e);},'GVidF':function(_0x3c298a,_0x7ba02f){return _0x3c298a+_0x7ba02f;},'cnPrN':function(_0x252b21,_0x2cbef6){return _0x252b21===_0x2cbef6;}},{cwd:_0x5e6d83,cliArtifactDir:_0x1c57a9,startTime:_0x3e5970}=_0x5a04dd,_0x1a7e10=[];await _0x8c0d30[_0x522e1d(0x238)](mkdir,_0x1c57a9,{'recursive':!![]});const _0x408c01=await _0x8c0d30[_0x522e1d(0x238)](readdir,_0x5e6d83,{'withFileTypes':!![]});for(const _0x51b745 of _0x408c01){if(!_0x51b745[_0x522e1d(0x1f8)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x51b745['name']))continue;const _0x3d1292=join(_0x5e6d83,_0x51b745['name']),_0x31158f=await _0x8c0d30[_0x522e1d(0x246)](stat,_0x3d1292);if(_0x8c0d30[_0x522e1d(0x1da)](_0x31158f[_0x522e1d(0x1eb)],0x7d0)<_0x3e5970)continue;const _0x314c20=buildCliArtifactPath(_0x1c57a9,_0x51b745[_0x522e1d(0x235)]);if(_0x8c0d30[_0x522e1d(0x217)](_0x3d1292,_0x314c20))continue;await rename(_0x3d1292,_0x314c20),_0x1a7e10['push'](_0x51b745['name']);}return _0x1a7e10['sort']();}
@@ -0,0 +1 @@
1
+ const _0x120ed1=_0x19c7;(function(_0x16910e,_0x5e1380){const _0x3113ba=_0x19c7,_0x5fd737=_0x16910e();while(!![]){try{const _0x59a7e0=parseInt(_0x3113ba(0x25a))/0x1+-parseInt(_0x3113ba(0x2b2))/0x2*(parseInt(_0x3113ba(0x1d9))/0x3)+-parseInt(_0x3113ba(0x274))/0x4+-parseInt(_0x3113ba(0x258))/0x5+parseInt(_0x3113ba(0x254))/0x6+-parseInt(_0x3113ba(0x269))/0x7+parseInt(_0x3113ba(0x292))/0x8;if(_0x59a7e0===_0x5e1380)break;else _0x5fd737['push'](_0x5fd737['shift']());}catch(_0x5297f2){_0x5fd737['push'](_0x5fd737['shift']());}}}(_0x1700,0xe6670));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';function _0x19c7(_0x5878d8,_0x451b6f){_0x5878d8=_0x5878d8-0x1d9;const _0x17004f=_0x1700();let _0x19c7ce=_0x17004f[_0x5878d8];return _0x19c7ce;}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([_0x120ed1(0x2b3),_0x120ed1(0x2bb),'verify','ask','goto','wait-for',_0x120ed1(0x222),_0x120ed1(0x297)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x10126d,_0x11a7a8){const _0x53a9fd=_0x120ed1,_0x2fde3c={'ktTIK':function(_0x29fba4,_0x9f3293,_0x157fab){return _0x29fba4(_0x9f3293,_0x157fab);}};return _0x2fde3c[_0x53a9fd(0x213)](join,_0x10126d,_0x11a7a8);}export class NovaActArtifactRecorder{['params'];[_0x120ed1(0x223)]=null;[_0x120ed1(0x2b8)]=null;['frameSession']=null;['frameWrites']=[];['frameCount']=0x0;[_0x120ed1(0x26e)]=0x0;['traceSampleTimer']=null;[_0x120ed1(0x2a4)]=null;['tracingStarted']=![];[_0x120ed1(0x284)]=![];[_0x120ed1(0x2b0)]=![];['stopped']=![];constructor(_0x1cfaea){const _0x3689ec=_0x120ed1;this[_0x3689ec(0x1ed)]=_0x1cfaea;}async[_0x120ed1(0x220)](){const _0x773f78=_0x120ed1,_0x4bc3f8={'toXPr':'nova_act_artifact_recording'};if(this['startAttempted'])return;this[_0x773f78(0x2b0)]=!![];const _0x20eefe=await this['readSessionMetadataWithRetry'](),_0x3ffc6a=_0x20eefe[_0x773f78(0x2a5)];if(!_0x3ffc6a)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this[_0x773f78(0x1ed)]['novaOptions'][_0x773f78(0x1e9)]);await mkdir(this[_0x773f78(0x1ed)][_0x773f78(0x1e1)],{'recursive':!![]}),this[_0x773f78(0x223)]=await chromium['connectOverCDP'](_0x3ffc6a,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this[_0x773f78(0x223)]['contexts']()[0x0]??null;if(!this['context'])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this[_0x773f78(0x2b8)][_0x773f78(0x286)][_0x773f78(0x220)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this['startTraceSampling'](),await this[_0x773f78(0x2af)](),this['params']['telemetry'][_0x773f78(0x201)](_0x773f78(0x234),{...this[_0x773f78(0x1ed)][_0x773f78(0x246)],'cdpEndpoint':_0x3ffc6a,'browserPid':_0x20eefe['browser_pid'],'sessionState':_0x20eefe['state']}),this['params'][_0x773f78(0x206)][_0x773f78(0x23c)](_0x4bc3f8[_0x773f78(0x1e4)],{...this[_0x773f78(0x1ed)]['transportMetadata'],'tracingStarted':this[_0x773f78(0x25b)],'screencastStarted':this['screencastStarted']});}async[_0x120ed1(0x1f1)](){const _0x196390=_0x120ed1,_0x55e29b={'tqRrf':'nova_act_artifact_recording_stop'};if(this[_0x196390(0x226)])return;this['stopped']=!![];const _0xb4a36b={...this['params']['transportMetadata'],'frameCount':this[_0x196390(0x231)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this[_0x196390(0x25b)],'screencastStarted':this['screencastStarted']};this['params'][_0x196390(0x206)][_0x196390(0x201)](_0x196390(0x22c),_0xb4a36b);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this['stopScreencast'](),await Promise[_0x196390(0x2a1)](this['frameWrites']);this['context']&&this['tracingStarted']&&await this['context'][_0x196390(0x286)][_0x196390(0x1f1)]({'path':buildCliArtifactPath(this[_0x196390(0x1ed)]['cliArtifactDir'],_0x196390(0x208))});const _0x4355f7=await this['encodeScreencastVideo']();this[_0x196390(0x1ed)][_0x196390(0x206)][_0x196390(0x23c)](_0x55e29b[_0x196390(0x20e)],{..._0xb4a36b,'videoPath':_0x4355f7});}catch(_0x57a2ad){await this['params']['telemetry']['trackPhaseError'](_0x55e29b[_0x196390(0x20e)],_0x57a2ad,_0xb4a36b);}finally{await this[_0x196390(0x223)]?.['close']()['catch'](()=>undefined),this[_0x196390(0x223)]=null,this[_0x196390(0x2b8)]=null,this[_0x196390(0x249)]=null;}}async[_0x120ed1(0x251)](){const _0x3090b9=_0x120ed1,_0x1154a6={'GwKxJ':function(_0x2b253d,_0x4cebf2,_0x357e37,_0x34139d,_0x1d6bc3,_0x366bfc){return _0x2b253d(_0x4cebf2,_0x357e37,_0x34139d,_0x1d6bc3,_0x366bfc);},'xvLXg':function(_0x6d6739){return _0x6d6739();},'uqLls':_0x3090b9(0x299),'ZFcYd':'sessions','eMyGV':function(_0x270036,_0x4bd289,_0x4c89db){return _0x270036(_0x4bd289,_0x4c89db);},'pYauk':'utf-8','tIUzs':function(_0x201186,_0x5aa343){return _0x201186(_0x5aa343);},'zDeIR':function(_0x17ebb3,_0x2e514e){return _0x17ebb3 instanceof _0x2e514e;}},_0x3e4203=_0x1154a6[_0x3090b9(0x217)](join,_0x1154a6['xvLXg'](homedir),_0x1154a6[_0x3090b9(0x21c)],'browser',_0x1154a6[_0x3090b9(0x23b)],this[_0x3090b9(0x1ed)][_0x3090b9(0x1f0)][_0x3090b9(0x1e9)]+_0x3090b9(0x2a8)),_0x73d866=Date[_0x3090b9(0x267)]();let _0x5bcf0a;do{try{const _0x114ddb=JSON[_0x3090b9(0x247)](await _0x1154a6['eMyGV'](readFile,_0x3e4203,_0x1154a6['pYauk']));if(_0x114ddb['cdp_endpoint'])return _0x114ddb;_0x5bcf0a=new Error(_0x3090b9(0x22b)+_0x3e4203);}catch(_0x36ad6e){_0x5bcf0a=_0x36ad6e;}await _0x1154a6['tIUzs'](delay,0x64);}while(Date[_0x3090b9(0x267)]()-_0x73d866<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x1154a6[_0x3090b9(0x215)](_0x5bcf0a,Error))throw _0x5bcf0a;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x3e4203);}async[_0x120ed1(0x2af)](){const _0x2fb620=_0x120ed1,_0x184e3e={'tACoK':function(_0x2fd9a3,_0x573241,_0x162b61){return _0x2fd9a3(_0x573241,_0x162b61);},'PVMHn':function(_0x320bce,_0x2ef472){return _0x320bce(_0x2ef472);},'mPIBm':_0x2fb620(0x29c)};if(!this[_0x2fb620(0x2b8)])return;const _0x1ba3ff=this[_0x2fb620(0x2b8)][_0x2fb620(0x262)]()[0x0];if(!_0x1ba3ff)return;const _0x277516=this[_0x2fb620(0x202)]();await mkdir(_0x277516,{'recursive':!![]});const _0x4682da=await this['context']['newCDPSession'](_0x1ba3ff);this[_0x2fb620(0x249)]=_0x4682da,_0x4682da['on']('Page.screencastFrame',_0x239331=>{const _0x53c3b6=_0x2fb620,_0x593b77=++this['frameCount'],_0x51a23a=_0x184e3e[_0x53c3b6(0x280)](join,_0x277516,'frame-'+_0x184e3e['PVMHn'](String,_0x593b77)['padStart'](0x6,'0')+_0x53c3b6(0x1de)),_0x5eca46=writeFile(_0x51a23a,Buffer[_0x53c3b6(0x29e)](_0x239331[_0x53c3b6(0x24b)],_0x184e3e[_0x53c3b6(0x2ad)]))['catch'](()=>undefined)['finally'](()=>_0x4682da['send'](_0x53c3b6(0x1eb),{'sessionId':_0x239331['sessionId']}))[_0x53c3b6(0x2ba)](()=>undefined)['catch'](()=>undefined);this['frameWrites']['push'](_0x5eca46);}),await _0x4682da['send']('Page.startScreencast',{'format':_0x2fb620(0x2a2),'quality':0x4b,'everyNthFrame':0x6}),this['screencastStarted']=!![];}async[_0x120ed1(0x211)](){const _0xa40d77=_0x120ed1;if(!this['frameSession']||!this['screencastStarted'])return;await this[_0xa40d77(0x249)]['send'](_0xa40d77(0x28b))[_0xa40d77(0x240)](()=>undefined);}[_0x120ed1(0x218)](){const _0x282595=_0x120ed1,_0x3b58db={'azvos':function(_0x561a9b,_0x3e49fe,_0x59437d){return _0x561a9b(_0x3e49fe,_0x59437d);}};this['queueTraceSample'](),this[_0x282595(0x25c)]=_0x3b58db['azvos'](setInterval,()=>this[_0x282595(0x21f)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x120ed1(0x21f)](){const _0x34dc88=_0x120ed1;if(this['traceSampleInFlight'])return;this[_0x34dc88(0x2a4)]=this[_0x34dc88(0x271)]()[_0x34dc88(0x227)](()=>{this['traceSampleInFlight']=null;});}async[_0x120ed1(0x2a9)](){const _0x415632=_0x120ed1;this[_0x415632(0x25c)]&&(clearInterval(this[_0x415632(0x25c)]),this['traceSampleTimer']=null),await this['traceSampleInFlight']?.['catch'](()=>undefined);}async[_0x120ed1(0x271)](){const _0x40cf00=_0x120ed1,_0x1ee5c4=this['context']?.[_0x40cf00(0x262)]()[0x0];if(!_0x1ee5c4)return;try{await _0x1ee5c4[_0x40cf00(0x256)]('body')[_0x40cf00(0x27b)](_0x278d19=>_0x278d19[_0x40cf00(0x279)],undefined,{'timeout':0x3e8}),this[_0x40cf00(0x26e)]++;}catch{}}async[_0x120ed1(0x238)](){const _0x5f5426=_0x120ed1,_0xaad526={'fuLrG':function(_0x28d071,_0x524b0a){return _0x28d071<_0x524b0a;},'PSGcT':function(_0x2d67d5,_0x55bf66,_0x8f6db7){return _0x2d67d5(_0x55bf66,_0x8f6db7);},'guNdx':'videos','mWQJN':function(_0x862d6b,_0x4fbfab,_0x412cd2){return _0x862d6b(_0x4fbfab,_0x412cd2);},'WhJie':'session-recording.webm','ouisL':function(_0xf65284,_0x5c8e96,_0x3ef3d8){return _0xf65284(_0x5c8e96,_0x3ef3d8);},'XVcrD':'-hide_banner','Tnkto':_0x5f5426(0x239),'pNeTi':'-framerate','nkMPr':function(_0x5d72c2,_0xcd34d7,_0x1e7255){return _0x5d72c2(_0xcd34d7,_0x1e7255);},'FMJHM':'frame-%06d.jpg','eOFno':'scale=trunc(iw/2)*2:trunc(ih/2)*2','HmVmh':'-c:v','zYqPm':'-pix_fmt','dmgCF':'yuv420p'};if(_0xaad526['fuLrG'](this['frameCount'],0x2))return null;const _0x3c91e6=await resolveFfmpegPath();if(!_0x3c91e6)return null;const _0x1e3f82=_0xaad526['PSGcT'](join,this['params']['cliArtifactDir'],_0xaad526['guNdx']);await _0xaad526[_0x5f5426(0x1e2)](mkdir,_0x1e3f82,{'recursive':!![]});const _0x3039cb=_0xaad526['mWQJN'](join,_0x1e3f82,_0xaad526[_0x5f5426(0x270)]);return await _0xaad526['ouisL'](execFileAsync,_0x3c91e6,['-y',_0xaad526[_0x5f5426(0x298)],_0x5f5426(0x28f),_0xaad526['Tnkto'],_0xaad526['pNeTi'],'10','-i',_0xaad526['nkMPr'](join,this['getFrameDir'](),_0xaad526[_0x5f5426(0x287)]),_0x5f5426(0x1f5),_0xaad526[_0x5f5426(0x1db)],_0xaad526['HmVmh'],'libvpx-vp9',_0xaad526['zYqPm'],_0xaad526['dmgCF'],_0x3039cb]),_0x3039cb;}['getFrameDir'](){const _0x4febfe=_0x120ed1,_0x592cbf={'yVmco':_0x4febfe(0x264)};return join(this['params']['cliArtifactDir'],_0x592cbf[_0x4febfe(0x22d)]);}}async function delay(_0xeed980){await new Promise(_0x57e48b=>setTimeout(_0x57e48b,_0xeed980));}async function resolveFfmpegPath(){const _0x49bf35=_0x120ed1,_0x468205={'TODQK':_0x49bf35(0x26c),'OiakH':function(_0x1c5103){return _0x1c5103();},'GQZOv':_0x49bf35(0x242),'bswPV':function(_0x200001,_0x7ccd73,_0xff2212,_0x3bd47b){return _0x200001(_0x7ccd73,_0xff2212,_0x3bd47b);},'opzXu':_0x49bf35(0x205),'rjYpn':function(_0x3f9160,_0x53cb3d){return _0x3f9160(_0x53cb3d);}};if(await canRunFfmpeg(_0x49bf35(0x26c)))return _0x468205['TODQK'];const _0x4a36dc=[join(_0x468205[_0x49bf35(0x236)](homedir),_0x49bf35(0x1ee),_0x468205[_0x49bf35(0x288)],_0x49bf35(0x205)),_0x468205[_0x49bf35(0x1fb)](join,_0x468205[_0x49bf35(0x236)](homedir),'.cache',_0x468205[_0x49bf35(0x225)])];for(const _0x28cd3b of _0x4a36dc){try{const _0x3a88c7=await _0x468205['rjYpn'](readdir,_0x28cd3b),_0x7ea000=_0x3a88c7[_0x49bf35(0x1f9)](_0x4ed238=>_0x4ed238['startsWith'](_0x49bf35(0x22e)))[_0x49bf35(0x283)]()['reverse']()[_0x49bf35(0x29b)](_0x2024cf=>[join(_0x28cd3b,_0x2024cf,_0x49bf35(0x207)),join(_0x28cd3b,_0x2024cf,_0x49bf35(0x294)),join(_0x28cd3b,_0x2024cf,_0x49bf35(0x243))]);for(const _0xb7d728 of _0x7ea000){if(await _0x468205[_0x49bf35(0x2b1)](canRunFfmpeg,_0xb7d728))return _0xb7d728;}}catch{}}return null;}async function canRunFfmpeg(_0x2bd685){const _0x86c66c=_0x120ed1,_0x488edd={'SYQTk':function(_0x3de5a8,_0x457514,_0x32b570){return _0x3de5a8(_0x457514,_0x32b570);}};try{return await _0x488edd[_0x86c66c(0x257)](execFileAsync,_0x2bd685,['-version']),!![];}catch{return![];}}function toStepDisplayName(_0x2a81b2){const _0x48cc07=_0x120ed1,_0x3804b6=basename(_0x2a81b2)[_0x48cc07(0x1f3)](/\.(?:png|ya?ml)$/i,'')[_0x48cc07(0x1f3)](/^key_/i,'')[_0x48cc07(0x1f3)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x3804b6,'isKeyStep':/^key_/i[_0x48cc07(0x1fc)](basename(_0x2a81b2))};}function extractShellValue(_0x3e784d){if(!_0x3e784d)return null;return _0x3e784d[0x1]??_0x3e784d[0x2]??_0x3e784d[0x3]??null;}function extractOutputOption(_0x529874){const _0x56a1c3=_0x120ed1,_0x5df6eb={'chFdY':function(_0x3b7d6b,_0x127875){return _0x3b7d6b(_0x127875);}};return _0x5df6eb[_0x56a1c3(0x1da)](extractShellValue,_0x529874[_0x56a1c3(0x28c)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x7647ee,_0x1c448d){const _0x417ca8=_0x120ed1,_0x4a6bb0={'iqdJs':'create\x20Nova\x20browser\x20session','sWlWu':_0x417ca8(0x277),'RjROv':_0x417ca8(0x22a),'yztFs':_0x417ca8(0x28a),'whQzU':'goto','KbSpP':_0x417ca8(0x1dc),'PDqGI':function(_0x2d5655,_0x1f2017){return _0x2d5655(_0x1f2017);},'UTJri':_0x417ca8(0x259),'KOBLg':_0x417ca8(0x297)};switch(_0x1c448d){case'session\x20create':return _0x4a6bb0['iqdJs'];case _0x417ca8(0x2bb):return _0x4a6bb0['sWlWu'];case _0x4a6bb0[_0x417ca8(0x23a)]:return _0x417ca8(0x20a);case'ask':return _0x4a6bb0[_0x417ca8(0x212)];case _0x4a6bb0['whQzU']:return'navigate\x20browser';case'wait-for':return _0x4a6bb0['KbSpP'];case'snapshot':{const _0x37be87=_0x4a6bb0[_0x417ca8(0x1ea)](extractOutputOption,_0x7647ee);if(!_0x37be87)return _0x4a6bb0['UTJri'];const {name:_0x3a5e36}=toStepDisplayName(_0x37be87);return _0x417ca8(0x1f2)+_0x3a5e36+'`';}case _0x4a6bb0['KOBLg']:{const _0x4f421a=extractOutputOption(_0x7647ee);if(!_0x4f421a)return'capture\x20screenshot';const {name:_0x287cf6,isKeyStep:_0x2bf1ab}=_0x4a6bb0[_0x417ca8(0x1ea)](toStepDisplayName,_0x4f421a);return _0x2bf1ab?'capture\x20key\x20step\x20`'+_0x287cf6+'`':_0x417ca8(0x27c)+_0x287cf6+'`';}case _0x417ca8(0x214):return _0x417ca8(0x21b);default:return _0x1c448d;}}function getNovaActCliCommandBlockReason(_0x8c9742){const _0x797f18=_0x120ed1,_0x4661fb={'MesPe':_0x797f18(0x229),'JFYxs':function(_0x2d99e5,_0xe98112){return _0x2d99e5===_0xe98112;},'HSGOU':_0x797f18(0x22a),'gsJBS':_0x797f18(0x20d),'Kjzve':_0x797f18(0x29d)},_0x38ba5c=parseNovaActCliCommand(_0x8c9742);if(!_0x38ba5c)return _0x4661fb[_0x797f18(0x2bc)];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x797f18(0x2a7)](_0x38ba5c))return'Nova\x20command\x20`'+_0x38ba5c+'`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.';if(_0x4661fb[_0x797f18(0x22f)](_0x38ba5c,_0x4661fb[_0x797f18(0x1ef)])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x797f18(0x1fc)](_0x8c9742))return _0x4661fb[_0x797f18(0x260)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/['test'](_0x8c9742))return _0x4661fb[_0x797f18(0x24d)];return null;}function buildFeedbackSection(_0x695ecc){const _0x12c6e4=_0x120ed1,_0x5350d9={'npObW':'en-US','kiGpI':_0x12c6e4(0x1fa),'sDuru':'numeric','cnUAb':_0x12c6e4(0x204),'rcudW':'element'};if(!_0x695ecc||_0x695ecc['unaddressedComments']['length']===0x0)return'';const _0x302ab8=_0x695ecc[_0x12c6e4(0x228)]['map'](_0x4cd115=>{const _0x16bded=_0x12c6e4,_0x11824b=new Date(_0x4cd115[_0x16bded(0x263)])[_0x16bded(0x235)](_0x5350d9[_0x16bded(0x290)],{'month':_0x5350d9['kiGpI'],'day':_0x5350d9['sDuru']}),_0x44a9e6=_0x4cd115[_0x16bded(0x2b9)]||_0x4cd115[_0x16bded(0x1fe)]||_0x5350d9['cnUAb'],_0x4a72c2=_0x4cd115[_0x16bded(0x24c)]?'\x20(on\x20element:\x20<'+(_0x4cd115['domRef']['selector'][_0x16bded(0x282)](_0x16bded(0x1e5))['pop']()?.[_0x16bded(0x282)](':')[0x0]||_0x5350d9[_0x16bded(0x295)])+'>\x20\x22'+(_0x4cd115['domRef'][_0x16bded(0x1dd)]||'')[_0x16bded(0x2ac)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x4cd115['id']+']\x20**'+_0x44a9e6+'**\x20('+_0x11824b+'):\x20\x22'+_0x4cd115[_0x16bded(0x210)]+'\x22'+_0x4a72c2;})['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'+_0x302ab8;}function buildNovaSharedOptionsInstruction(_0xe5868a){const _0x1fa86c=_0x120ed1;if(!_0xe5868a[_0x1fa86c(0x255)]())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 _0x1fa86c(0x1ec)+_0xe5868a;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x4e39d3){const _0x47babb=_0x120ed1,_0x4f3f3f={'zSLmq':'00_initial-state.yml','QVxIC':function(_0x4a3026,_0x47cb18,_0x20a321){return _0x4a3026(_0x47cb18,_0x20a321);},'CLrse':'02_final-state.yml','PIUOs':_0x47babb(0x21a),'NwzXa':function(_0x586065,_0x55d47b){return _0x586065(_0x55d47b);},'mxuVj':function(_0x843049,_0x39bf60){return _0x843049(_0x39bf60);}},{novaCommandPrefix:_0x5dc16c,novaSharedOptionsSuffix:_0x2cf6f2,cliArtifactDir:_0x460f7e,url:_0x23950c}=_0x4e39d3,_0x3a1a66=buildCliArtifactPath(_0x460f7e,_0x4f3f3f[_0x47babb(0x26b)]),_0x4e7220=_0x4f3f3f['QVxIC'](buildCliArtifactPath,_0x460f7e,'01_initial-state.png'),_0x4c1ca5=buildCliArtifactPath(_0x460f7e,_0x4f3f3f[_0x47babb(0x26d)]),_0xf4bd7a=buildCliArtifactPath(_0x460f7e,_0x4f3f3f['PIUOs']);return _0x47babb(0x245)+_0x5dc16c+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x2cf6f2)+'\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`'+_0x5dc16c+'\x20session\x20create\x20'+quoteShellArg(_0x23950c)+'\x20'+_0x2cf6f2+'`\x0a2.\x20Run\x20`'+_0x5dc16c+_0x47babb(0x27a)+quoteShellArg(_0x3a1a66)+'\x20'+_0x2cf6f2+_0x47babb(0x250)+_0x5dc16c+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x4e7220)+'\x20'+_0x2cf6f2+_0x47babb(0x26a)+_0x5dc16c+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x5dc16c+'\x20snapshot\x20--output\x20'+_0x4f3f3f[_0x47babb(0x24e)](quoteShellArg,_0x4c1ca5)+'\x20'+_0x2cf6f2+_0x47babb(0x252)+_0x5dc16c+'\x20screenshot\x20--output\x20'+_0x4f3f3f[_0x47babb(0x1ff)](quoteShellArg,_0xf4bd7a)+'\x20'+_0x2cf6f2+_0x47babb(0x272)+_0x460f7e+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x5c46cd){const _0x4105c8=_0x120ed1,_0x4228a3={'hoxMg':function(_0x7a5ff7,_0x487f47,_0x138285){return _0x7a5ff7(_0x487f47,_0x138285);},'ZfxQu':_0x4105c8(0x20f),'RJVOU':_0x4105c8(0x232),'tlYkF':function(_0x3727c6,_0x382838,_0x19b71a){return _0x3727c6(_0x382838,_0x19b71a);},'OIERJ':'key_03_success-state.png','WRgMz':function(_0x3d04fb,_0x4b065e){return _0x3d04fb(_0x4b065e);},'EHIJP':function(_0x2cc53c,_0x5780be){return _0x2cc53c(_0x5780be);},'htNda':function(_0x4ece6f,_0x4333b0){return _0x4ece6f(_0x4333b0);},'rAVAP':function(_0xff1e3b,_0x59fbd1){return _0xff1e3b(_0x59fbd1);}},{checklistItem:_0x452dbc,itemFeedback:_0x30cb39,taskDescription:_0x5158ab,novaCommandPrefix:_0x1a25f7,novaSharedOptionsSuffix:_0x10737b,cliArtifactDir:_0x517aba,url:_0x3c24ff,loginInstructions:_0x496f35}=_0x5c46cd,_0x5e1f8d=_0x452dbc['notes']?_0x4105c8(0x278)+_0x452dbc['notes']:'',_0x2084af=buildFeedbackSection(_0x30cb39),_0xe21a41=_0x30cb39?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x30cb39['canonicalFlow']:'',_0x13f792=_0x496f35?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x496f35+'\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'',_0x25bf96=_0x4228a3['hoxMg'](buildCliArtifactPath,_0x517aba,_0x4228a3['ZfxQu']),_0x427d25=buildCliArtifactPath(_0x517aba,_0x4228a3['RJVOU']),_0x2be22f=_0x4228a3[_0x4105c8(0x219)](buildCliArtifactPath,_0x517aba,_0x4228a3[_0x4105c8(0x224)]);return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x452dbc['description']+_0x5e1f8d+_0x2084af+_0xe21a41+_0x4105c8(0x2ae)+_0x5158ab+_0x4105c8(0x2a3)+_0x3c24ff+'\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'+_0x13f792+_0x4105c8(0x24f)+_0x1a25f7+'\x20session\x20create\x20'+_0x4228a3[_0x4105c8(0x27f)](quoteShellArg,_0x3c24ff)+'\x20'+_0x10737b+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x517aba+_0x4105c8(0x1f6)+_0x1a25f7+_0x4105c8(0x27a)+quoteShellArg(_0x25bf96)+'\x20'+_0x10737b+_0x4105c8(0x241)+_0x1a25f7+_0x4105c8(0x244)+_0x4228a3[_0x4105c8(0x275)](quoteShellArg,_0x427d25)+'\x20'+_0x10737b+'`.\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`'+_0x2be22f+'`.\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`'+_0x1a25f7+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x10737b['trim']()?'`'+_0x10737b+'`':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`')+'\x0a\x0a'+_0x4228a3['htNda'](buildNovaSharedOptionsInstruction,_0x10737b)+'\x0a\x0aExamples:\x0a-\x20`'+_0x1a25f7+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x10737b+_0x4105c8(0x233)+_0x1a25f7+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x10737b+'`\x0a-\x20`'+_0x1a25f7+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x25bf96)+'\x20'+_0x10737b+_0x4105c8(0x233)+_0x1a25f7+_0x4105c8(0x244)+_0x4228a3[_0x4105c8(0x1fd)](quoteShellArg,_0x2be22f)+'\x20'+_0x10737b+_0x4105c8(0x203);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x342806){const _0x7ce335=_0x120ed1,_0x1e8e83={'psXFF':function(_0x520606,_0x46f68f){return _0x520606===_0x46f68f;}},_0x44ad84=[..._0x342806[_0x7ce335(0x268)]()][_0x7ce335(0x283)]();let _0x3309e7=0x0;for(const _0x2cbe8d of _0x342806['values']()){_0x3309e7+=_0x2cbe8d;}return{'cliCommandCount':_0x3309e7,'cliCommandsSeen':_0x44ad84,'noCliCommandsCalled':_0x1e8e83[_0x7ce335(0x2b6)](_0x3309e7,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x752693,_0x296f00){const _0xc6df78=_0x120ed1,_0x3a60d8={'siyAj':_0xc6df78(0x2b5),'RwTbr':function(_0x35c1bc,_0x119b14){return _0x35c1bc!==_0x119b14;},'HKJFv':function(_0x26ec39,_0x4141fe){return _0x26ec39(_0x4141fe);},'pjhyN':_0xc6df78(0x21e),'hxPXk':function(_0x1e5bb8,_0x1d6091){return _0x1e5bb8!==_0x1d6091;},'wImip':_0xc6df78(0x273),'FKicX':function(_0x353094,_0x3251a6){return _0x353094(_0x3251a6);},'jZCNH':'nova_act_command','OhHTD':'nova_act_artifact_recording','pCVsR':_0xc6df78(0x1df),'tAXYe':_0xc6df78(0x265)},_0x3caf4b=new Map(),_0x5ab842=async _0x55398d=>{const _0xe883d8=_0xc6df78;if(_0x55398d['hook_event_name']!==_0x3a60d8['siyAj'])return{};const _0x10709d=_0x55398d;if(_0x3a60d8['RwTbr'](_0x10709d[_0xe883d8(0x216)],_0xe883d8(0x273)))return{};const _0x38bbe3=_0x10709d[_0xe883d8(0x293)],_0x565098=extractBashCommand(_0x38bbe3);if(!_0x565098)return{};const _0x1f068e=_0x3a60d8[_0xe883d8(0x200)](getNovaActCliCommandBlockReason,_0x565098);if(!_0x1f068e)return{};return{'decision':_0x3a60d8['pjhyN'],'reason':_0x1f068e};},_0x366b3f=async _0x1ca57f=>{const _0x3a0197=_0xc6df78;if(_0x1ca57f['hook_event_name']!==_0x3a0197(0x230))return{};const _0x361955=_0x1ca57f;if(_0x3a60d8['hxPXk'](_0x361955['tool_name'],_0x3a60d8['wImip']))return{};const _0x1f6b49=_0x361955['tool_input'],_0x302b33=extractBashCommand(_0x1f6b49);if(!_0x302b33)return{};const _0x17c3ad=_0x3a60d8['FKicX'](parseNovaActCliCommand,_0x302b33);if(!_0x17c3ad)return{};_0x3caf4b[_0x3a0197(0x29f)](_0x17c3ad,(_0x3caf4b['get'](_0x17c3ad)||0x0)+0x1),_0x752693[_0x3a0197(0x201)](_0x3a0197(0x237),{'subcommand':_0x17c3ad}),_0x752693['trackPhaseEnd'](_0x3a60d8['jZCNH'],{'subcommand':_0x17c3ad,'commandPreview':previewNovaActCliCommand(_0x302b33)}),console[_0x3a0197(0x25f)](_0x3a0197(0x21d)+formatNovaActCliLog(_0x302b33,_0x17c3ad));if(_0x17c3ad===_0x3a0197(0x2b3)&&_0x296f00)try{await _0x296f00[_0x3a0197(0x220)]();}catch(_0x27b4c4){await _0x752693['trackPhaseError'](_0x3a60d8[_0x3a0197(0x1e8)],_0x27b4c4,{'transport':_0x3a60d8['pCVsR']});}return{};},_0x3c33bf=async _0x2f29f7=>{const _0x6e86eb=_0xc6df78;if(_0x2f29f7['hook_event_name']!==_0x6e86eb(0x2b7))return{};const _0x3e35fa=_0x2f29f7;if(_0x3a60d8[_0x6e86eb(0x20c)](_0x3e35fa['tool_name'],_0x3a60d8['wImip']))return{};return await _0x752693[_0x6e86eb(0x25e)](_0x3a60d8[_0x6e86eb(0x1e6)],_0x3e35fa[_0x6e86eb(0x239)],{'transport':_0x3a60d8[_0x6e86eb(0x281)],'toolName':_0x3a60d8[_0x6e86eb(0x2a0)]}),{};};return{'preToolUseHook':_0x5ab842,'postToolUseHook':_0x366b3f,'postToolUseFailureHook':_0x3c33bf,'commandCounts':_0x3caf4b};}async function runNovaLifecycleCommand(_0xd28a4f){const _0x2c7fb0=_0x120ed1,_0x2b308a={'WGrWB':function(_0x385386,_0x43547b){return _0x385386(_0x43547b);}},{novaOptions:_0x4dc3d5,commandArgs:_0x5c2b15,telemetry:_0x1be8ea,phase:_0x4713cb,metadata:_0x5c63de,timeoutMs:_0x13742a}=_0xd28a4f;_0x1be8ea['trackPhaseStart'](_0x4713cb,_0x5c63de);try{const _0x3cb64b=await runNovaActCliCommand({..._0x4dc3d5,'commandArgs':_0x5c2b15,'cwd':process[_0x2c7fb0(0x1e7)](),'env':process['env'],'timeoutMs':_0x13742a??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x1be8ea[_0x2c7fb0(0x23c)](_0x4713cb,{..._0x5c63de,'subcommand':_0x3cb64b[_0x2c7fb0(0x266)][_0x2c7fb0(0x291)],'commandPreview':previewNovaActCliCommand(_0x3cb64b[_0x2c7fb0(0x266)]['shellCommand']),'stdoutPreview':_0x2b308a[_0x2c7fb0(0x26f)](previewNovaActCliCommand,_0x3cb64b[_0x2c7fb0(0x1e3)]),'stderrPreview':_0x2b308a[_0x2c7fb0(0x26f)](previewNovaActCliCommand,_0x3cb64b['stderr']),'logDir':extractNovaActLogDir(_0x3cb64b['stdout'])});}catch(_0x4a5947){await _0x1be8ea['trackPhaseError'](_0x4713cb,_0x4a5947,_0x5c63de);throw _0x4a5947;}}export async function finalizeVerifyFeatureNovaCliSession(_0x588710){const _0x150f68=_0x120ed1,_0x57fad3={'Jepav':_0x150f68(0x276),'cYoFF':'--output','wCwEy':'key_final-state.png','ZaKuG':_0x150f68(0x23e),'NROuJ':'--format','OObEn':'export','yXTmG':function(_0x2bef77,_0x2ace8b){return _0x2bef77(_0x2ace8b);}},{telemetry:_0x17adad,novaOptions:_0x3368aa,cliArtifactDir:_0x3185be,transportMetadata:_0x5305eb,artifactRecorder:_0x45d9f8}=_0x588710,_0x407a20=[{'phase':_0x57fad3['Jepav'],'commandArgs':['screenshot',_0x57fad3['cYoFF'],buildCliArtifactPath(_0x3185be,_0x57fad3[_0x150f68(0x27e)])]},{'phase':'nova_act_final_snapshot','commandArgs':['snapshot',_0x57fad3[_0x150f68(0x1e0)],buildCliArtifactPath(_0x3185be,_0x57fad3[_0x150f68(0x25d)])]},{'phase':_0x150f68(0x1f7),'commandArgs':['session',_0x150f68(0x2aa),_0x57fad3['NROuJ'],'json',_0x57fad3['cYoFF'],buildCliArtifactPath(_0x3185be,_0x150f68(0x1f4))]},{'phase':'nova_act_session_report','commandArgs':['session',_0x57fad3['OObEn'],_0x150f68(0x296),'--output-dir',buildCliArtifactPath(_0x3185be,_0x150f68(0x28d))]},{'phase':'nova_act_session_close','commandArgs':['session',_0x150f68(0x24a)]}];for(const _0x5c21cc of _0x407a20){_0x5c21cc['phase']===_0x150f68(0x23d)&&await _0x45d9f8?.[_0x150f68(0x1f1)]();try{await _0x57fad3['yXTmG'](runNovaLifecycleCommand,{'novaOptions':_0x3368aa,'commandArgs':[..._0x5c21cc['commandArgs']],'telemetry':_0x17adad,'phase':_0x5c21cc['phase'],'metadata':_0x5305eb});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x16b833){const _0x549dcb=_0x120ed1,_0x27a5b1={'ngKdh':function(_0xa2d8b9,_0x1488c3,_0x38b060){return _0xa2d8b9(_0x1488c3,_0x38b060);},'TemqC':function(_0x438d4c,_0x4c4a26){return _0x438d4c(_0x4c4a26);},'JeqCH':function(_0x4f386c,_0x4844dd){return _0x4f386c+_0x4844dd;},'TDYJO':function(_0x177d92,_0x3158e7){return _0x177d92===_0x3158e7;},'fJhLL':function(_0x44b832,_0x5eec68,_0x4fb5f0){return _0x44b832(_0x5eec68,_0x4fb5f0);}},{cwd:_0x52e3bd,cliArtifactDir:_0x4c3b30,startTime:_0x4bc6c4}=_0x16b833,_0x158d9e=[];await _0x27a5b1['ngKdh'](mkdir,_0x4c3b30,{'recursive':!![]});const _0x16f2c7=await _0x27a5b1[_0x549dcb(0x285)](readdir,_0x52e3bd,{'withFileTypes':!![]});for(const _0x2d10b1 of _0x16f2c7){if(!_0x2d10b1[_0x549dcb(0x2ab)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x549dcb(0x1fc)](_0x2d10b1[_0x549dcb(0x23f)]))continue;const _0x460562=join(_0x52e3bd,_0x2d10b1['name']),_0x492bb2=await _0x27a5b1[_0x549dcb(0x253)](stat,_0x460562);if(_0x27a5b1[_0x549dcb(0x261)](_0x492bb2['mtimeMs'],0x7d0)<_0x4bc6c4)continue;const _0x438a1c=_0x27a5b1[_0x549dcb(0x285)](buildCliArtifactPath,_0x4c3b30,_0x2d10b1[_0x549dcb(0x23f)]);if(_0x27a5b1['TDYJO'](_0x460562,_0x438a1c))continue;await _0x27a5b1[_0x549dcb(0x2b4)](rename,_0x460562,_0x438a1c),_0x158d9e['push'](_0x2d10b1[_0x549dcb(0x23f)]);}return _0x158d9e['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x13c3e5){const _0x27c162=_0x120ed1,_0x5654d6={'ogPOf':function(_0xf507c2,_0x4d8e55,_0x31f38c){return _0xf507c2(_0x4d8e55,_0x31f38c);},'JirUH':'trace.zip','cAPqS':function(_0x187328,_0xa1ee83){return _0x187328(_0xa1ee83);},'MXMly':function(_0x247688,_0x52d1a5){return _0x247688(_0x52d1a5);}},_0x22ca45=_0x5654d6[_0x27c162(0x1f8)](join,_0x13c3e5,_0x5654d6['JirUH']);try{return{'buffer':await _0x5654d6['cAPqS'](readFile,_0x22ca45),'source':_0x22ca45};}catch{return{'buffer':await _0x5654d6['MXMly'](zipVerifyFeatureNovaArtifacts,_0x13c3e5),'source':_0x13c3e5};}}async function zipVerifyFeatureNovaArtifacts(_0x5bbb3e){const _0x46a3aa=_0x120ed1,_0x16f306={'HUIMd':function(_0x24d2b4,_0x4e9b73,_0x1331bd,_0x35c55f){return _0x24d2b4(_0x4e9b73,_0x1331bd,_0x35c55f);},'WCGne':_0x46a3aa(0x289),'IOrID':function(_0x64e981,_0x517de9,_0x39c789,_0x33e0e7){return _0x64e981(_0x517de9,_0x39c789,_0x33e0e7);},'hYMFk':_0x46a3aa(0x29a)},_0x5852e3=_0x16f306[_0x46a3aa(0x221)](join,_0x5bbb3e,'..',_0x16f306['WCGne']);try{return await _0x16f306[_0x46a3aa(0x248)](execFileAsync,'zip',[_0x16f306['hYMFk'],_0x5852e3,'.','-x',_0x46a3aa(0x20b)],{'cwd':_0x5bbb3e}),await readFile(_0x5852e3);}finally{await rm(_0x5852e3,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x1f95d7){const _0x3789f4=_0x120ed1,_0x546d9c={'DEILi':function(_0x3d80d6,_0x1ce101,_0x2e67f4){return _0x3d80d6(_0x1ce101,_0x2e67f4);},'uwRnw':function(_0x48faaf,_0x2b2504){return _0x48faaf(_0x2b2504);}},_0x7717d9=_0x546d9c['DEILi'](buildNovaActCliInvocation,_0x1f95d7[_0x3789f4(0x1f0)],_0x1f95d7[_0x3789f4(0x209)]);return{'command':_0x7717d9['command'],'args':_0x7717d9[_0x3789f4(0x28e)],'commandPreview':_0x546d9c[_0x3789f4(0x2a6)](previewNovaActCliCommand,_0x7717d9['shellCommand']),'subcommand':_0x7717d9[_0x3789f4(0x291)],'sharedOptionsSuffix':_0x546d9c[_0x3789f4(0x27d)](buildNovaActCliSharedOptionsSuffix,_0x1f95d7[_0x3789f4(0x1f0)],_0x1f95d7[_0x3789f4(0x209)])};}function _0x1700(){const _0x52ad73=['novaOptions','stop','capture\x20snapshot\x20`','replace','nova-session-export.json','-vf','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','nova_act_session_export','ogPOf','filter','short','bswPV','test','rAVAP','authorEmail','mxuVj','HKJFv','trackPhaseStart','getFrameDir','`\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.','Reviewer','ms-playwright','telemetry','ffmpeg-mac','trace.zip','commandArgs','verify\x20page\x20condition','nova-user-data/*','hxPXk','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.','tqRrf','01_initial.yml','content','stopScreencast','yztFs','ktTIK','session\x20export','zDeIR','tool_name','GwKxJ','startTraceSampling','tlYkF','03_final-state.png','export\x20Nova\x20session','uqLls','[nova-act-cli]\x20','block','queueTraceSample','start','HUIMd','snapshot','browser','OIERJ','opzXu','stopped','finally','unaddressedComments','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','verify','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','nova_act_artifact_recording_stop','yVmco','ffmpeg-','JFYxs','PostToolUse','frameCount','01_initial-state.png','`\x0a-\x20`','nova_act_artifact_recording','toLocaleDateString','OiakH','nova_act_command','encodeScreencastVideo','error','RjROv','ZFcYd','trackPhaseEnd','nova_act_session_close','final-state.yaml','name','catch','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','Caches','ffmpeg.exe','\x20screenshot\x20--output\x20','You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','transportMetadata','parse','IOrID','frameSession','close','data','domRef','Kjzve','NwzXa','\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`','`\x0a3.\x20Run\x20`','readSessionMetadataWithRetry','`\x0a6.\x20Run\x20`','TemqC','5301402jJOayz','trim','locator','SYQTk','2426190qRDFMA','capture\x20snapshot','1070117sFCGAA','tracingStarted','traceSampleTimer','ZaKuG','trackPhaseError','log','gsJBS','JeqCH','pages','createdAt','nova-video-frames','nova_act_command_failure','invocation','now','keys','32445fNBCEI','`\x0a4.\x20Run\x20one\x20batched\x20`','zSLmq','ffmpeg','CLrse','traceSampleCount','WGrWB','WhJie','captureTraceSample','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','Bash','4578176sesqXA','EHIJP','nova_act_final_screenshot','execute\x20Nova\x20browser\x20action','\x0a\x0a##\x20Additional\x20Notes\x0a','tagName','\x20snapshot\x20--output\x20','evaluate','capture\x20step\x20`','DEILi','wCwEy','WRgMz','tACoK','pCVsR','split','sort','screencastStarted','ngKdh','tracing','FMJHM','GQZOv','nova-artifacts.zip','ask\x20page\x20question','Page.stopScreencast','match','nova-report','args','-loglevel','npObW','subcommand','9762664NNdrfv','tool_input','ffmpeg-linux','rcudW','--report','screenshot','XVcrD','.act_cli','-qr','flatMap','base64','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','from','set','wImip','allSettled','jpeg','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','traceSampleInFlight','cdp_endpoint','uwRnw','has','.json','stopTraceSampling','export','isFile','slice','mPIBm','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','startScreencast','startAttempted','rjYpn','198624eNDwfL','session\x20create','fJhLL','PreToolUse','psXFF','PostToolUseFailure','context','authorName','then','execute','MesPe','18mIxDns','chFdY','eOFno','wait\x20for\x20page\x20condition','textContent','.jpg','nova-act-cli','cYoFF','cliArtifactDir','PSGcT','stdout','toXPr','\x20>\x20','tAXYe','cwd','OhHTD','sessionId','PDqGI','Page.screencastFrameAck','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','params','Library','HSGOU'];_0x1700=function(){return _0x52ad73;};return _0x1700();}
@@ -13,22 +13,38 @@ If you are running in Claude Code, read and suggest the following claude-specifi
13
13
 
14
14
  Use Ranger when the work includes any UI or frontend component. Do not suggest Ranger for backend-only or infra-only changes unless the user asks.
15
15
 
16
- ## One-shot verification from user creds
16
+ ## One-shot verification (default path when you have creds)
17
17
 
18
- When the user gives you credentials and a goal in a single message (e.g. "use `alice@example.com` / `hunter2` to log in and check the dashboard renders"), skip the create/setup ceremony and run verification directly:
18
+ When the user gives you credentials and a goal in a single message (e.g. "use `alice@example.com` / `hunter2` to log in and check the dashboard renders"), run `go` DIRECTLY with the creds inline. No `create`, no `profile add`, no `resume` first:
19
19
 
20
20
  ```bash
21
21
  RANGER_TEST_USERNAME='alice@example.com' RANGER_TEST_PASSWORD='hunter2' \
22
- ranger-cli go --url <target-url> --notes '<the goal verbatim>'
22
+ ranger-cli go --base-url <target-url> --notes '<the goal verbatim>'
23
23
  ```
24
24
 
25
- If a feature review is required and none is active, the CLI will create one automatically. Do **not** run `ranger-cli create` first unless the user explicitly asks for a structured feature review with multiple scenarios.
25
+ The CLI:
26
+ - Materializes a profile from `RANGER_TEST_USERNAME` if one doesn't exist
27
+ - Runs the configured login automatically — no human at a browser needed
28
+ - Creates a feature review if one is required but missing
29
+ - Captures trace + screenshots as evidence
26
30
 
27
- When credentials sit in a `.env` next to the user's repo (look for `RANGER_TEST_USERNAME` / `RANGER_TEST_PASSWORD` / `TARGET_URL`), source that file inline before running `go` instead of typing the values.
31
+ This works for any login flow Ranger has set up with the customer (username/password, SSO, OAuth, MFA any shape we can run deterministically with the access we hold).
28
32
 
29
- This skill covers three workflows for Ranger feature review tracking:
33
+ Do **not** chain `ranger-cli create` before `go` unless the user explicitly asks for a structured multi-scenario feature review. The one-shot flow is the happy path for ad-hoc "verify this thing" requests.
30
34
 
31
- ## Supported Workflows
35
+ If credentials live in a `.env` next to the user's repo (look for `RANGER_TEST_USERNAME` / `RANGER_TEST_PASSWORD` / `TARGET_URL`), source that file inline before running `go` instead of typing values (`set -a; source ./.env; set +a`).
36
+
37
+ ### When to fall back
38
+
39
+ If `go` returns a 422 / login-failed, automated login probably isn't set up for this account yet. Fall back in this order:
40
+
41
+ 1. **Active profile** — try `ranger-cli go` with no env vars. Works if a human already ran `ranger-cli profile add` for this app.
42
+ 2. **Interactive setup** — ask the user to run `ranger-cli profile add <name>` (a browser opens, they log in once, you take it from there).
43
+ 3. **For automated CI / background-agent setups specifically**: tell the user automated login is set up per-app with the Ranger team — point them at https://docs.ranger.net/main/concepts/profiles#automated-login.
44
+
45
+ If the user did NOT give you credentials in the first place (just said "log in to my app"), skip the env-var path entirely and go straight to fallback #1 or #2.
46
+
47
+ ## Structured workflows
32
48
 
33
49
  | Workflow | When to Use | Required Reading |
34
50
  |----------|-------------|------------------|
@@ -248,7 +264,7 @@ If you encounter authentication issues:
248
264
  1. **Log in with provided credentials**: Set `RANGER_TEST_USERNAME` and `RANGER_TEST_PASSWORD` and re-run `ranger-cli go ...`. The CLI uses those credentials to log in and reuses the same profile on subsequent runs.
249
265
  2. **Check existing profiles**: Run `ranger-cli profile ls` to see all configured profiles.
250
266
  3. **Pin a specific profile**: Use `ranger-cli profile use <profile-name>` (or pass `--profile <name>` / set `RANGER_PROFILE`).
251
- 4. **Refresh auth**: Ask the user to run `ranger-cli profile update <profile-name>` to re-capture authentication for a profile.
267
+ 4. **Refresh auth**: For server-side relogin (headless, no human needed), set `RANGER_TEST_USERNAME` / `RANGER_TEST_PASSWORD` and re-run `ranger-cli go ...`. For SSO/OAuth profiles, run `ranger-cli profile update <account-email>` to re-capture the session (server-side login when configured, headed browser otherwise).
252
268
 
253
269
 
254
270
  ### Authentication Issues to Ranger
@@ -2,11 +2,24 @@
2
2
 
3
3
  Create a feature review when starting new work that doesn't have an existing feature review to resume.
4
4
 
5
- ## When NOT to use this
5
+ ## ⚠️ When NOT to use this
6
6
 
7
- If the user just wants a quick browser check (e.g. "log in as X and confirm the dashboard renders"), skip this step. Run `ranger-cli go --url <target> --notes '<goal>'` directly a feature review will be created automatically when one is needed. See the **One-shot verification from user creds** section in the parent `SKILL.md`.
7
+ **If the user just wants a quick browser check** (e.g. "log in as X and confirm the dashboard renders", "check that the new button appears on /settings"), **do not run `ranger-cli create`**. Run `ranger-cli go` directly:
8
8
 
9
- Reach for `ranger-cli create` when the work is multi-scenario or you want to enumerate the user journeys up front for the reviewer.
9
+ ```bash
10
+ RANGER_TEST_USERNAME='...' RANGER_TEST_PASSWORD='...' \
11
+ ranger-cli go --base-url <target> --notes '<goal verbatim>'
12
+ ```
13
+
14
+ The CLI creates a feature review automatically when one is needed. Chaining `create` first is wasted ceremony and shows up as noise for the reviewer. See the **One-shot verification** section in the parent `SKILL.md`.
15
+
16
+ Reach for `ranger-cli create` only when:
17
+
18
+ 1. The work is genuinely multi-scenario (2+ distinct user journeys worth tracking separately)
19
+ 2. You need to enumerate the scenarios up front for the reviewer to see before verification runs
20
+ 3. The user explicitly asks for a "feature review" rather than just a "browser check"
21
+
22
+ When in doubt, start with one-shot `go` — you can always add scenarios later with `ranger-cli add-scenario`.
10
23
 
11
24
  ## Basic Command
12
25
 
@@ -1,38 +1,63 @@
1
1
  # Verifying Scenarios
2
2
 
3
- After implementing code for a scenario, verify it works in the browser. This creates evidence (screenshots, traces, logs) that the implementation is complete.
3
+ ## One-shot: creds + goal in, verification out
4
4
 
5
- ## Basic Command
5
+ When the user gives you credentials and a goal (e.g. "use alice@example.com / hunter2 and check the dashboard renders"), run `go` directly with env vars inline — no `create`, no `profile add`, no ceremony:
6
6
 
7
7
  ```bash
8
- ranger-cli go --scenario <N> --notes "<what to verify>"
8
+ RANGER_TEST_USERNAME='alice@example.com' RANGER_TEST_PASSWORD='hunter2' \
9
+ ranger-cli go --base-url <target-url> --notes '<the goal verbatim>'
9
10
  ```
10
11
 
11
- ## Profile resolution
12
+ If credentials already live in a nearby `.env`, source it inline before running `go` instead of typing values (`set -a; source ./.env; set +a`).
13
+
14
+ The CLI:
15
+
16
+ - Materializes a profile from `RANGER_TEST_USERNAME` if one doesn't exist
17
+ - Runs the configured login if no session is cached
18
+ - Creates a feature review automatically when one is needed
19
+ - Captures a trace + screenshots you can link to
20
+
21
+ This works for any login flow Ranger has set up with the customer — username/password, SSO, OAuth, MFA, passkeys. Don't worry about the auth shape; if the user gave you creds, try this path first.
22
+
23
+ Do **not** run `ranger-cli create` first unless the user explicitly asks for a structured feature review with multiple scenarios.
24
+
25
+ ### Fallback when the one-shot path fails
12
26
 
13
- When the user gives you a username + password, set them inline and run `go` no `profile add` step:
27
+ If `go` returns a 422 / login-failed, automated login probably isn't set up for this account. Fall back in this order:
28
+
29
+ 1. **Active profile** — `ranger-cli go` with no env vars (works if a human ran `profile add` for this app)
30
+ 2. **Interactive setup** — ask the user to run `ranger-cli profile add <name>`
31
+ 3. **For CI / background-agent flows**: automated login is set up per-app with the Ranger team — point the user at https://docs.ranger.net/main/concepts/profiles#automated-login
32
+
33
+ If the user did NOT give you credentials, skip the env-var path entirely and go straight to fallback #1 or #2.
34
+
35
+ ## Scenario-driven verification
36
+
37
+ After implementing code against a scenario in an active feature review, verify it:
14
38
 
15
39
  ```bash
16
- RANGER_TEST_USERNAME='alice@example.com' RANGER_TEST_PASSWORD='hunter2' \
17
- ranger-cli go --url <target> --notes '<what to verify>'
40
+ ranger-cli go --scenario <N> --notes "<what to verify>"
18
41
  ```
19
42
 
20
- Resolution order:
43
+ ## Profile resolution order
21
44
 
22
45
  1. `--profile <name>` flag (or `RANGER_PROFILE` env var)
23
46
  2. Saved active profile (`ranger-cli profile use <name>`)
24
47
  3. `RANGER_TEST_USERNAME` (reuses or creates a matching profile)
25
48
  4. The org's sole profile when exactly one exists
26
49
 
27
- ## Required: Active Feature Review
50
+ ## Active feature review (only needed for scenario-driven runs)
28
51
 
29
- `go` requires an active feature review. If you don't have one:
52
+ If you're verifying a scenario (not a one-shot):
30
53
 
31
54
  ```bash
32
55
  ranger-cli list # Find feature reviews to resume
33
56
  ranger-cli resume <id> # Resume a specific feature review
34
57
  ```
35
58
 
59
+ For a one-shot `go --base-url ... --notes '...'`, the CLI handles feature-review creation for you.
60
+
36
61
  ## The Verification Flow
37
62
 
38
63
  1. **Select scenario** - CLI prompts which scenario this verifies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "2.5.4-alpha.0e8b82c-9",
3
+ "version": "2.5.4-alpha.1b80607-25",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",
@@ -41,6 +41,7 @@
41
41
  },
42
42
  "overrides": {
43
43
  "minimatch": "^10.2.3",
44
- "brace-expansion": "^5.0.5"
44
+ "brace-expansion": "^5.0.5",
45
+ "fast-uri": "3.1.2"
45
46
  }
46
47
  }