@ranger-testing/ranger-cli 2.5.1 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -0
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/package.json +1 -1
  70. package/build/commands/utils/featureReportGenerator.js +0 -1
  71. package/build/commands/utils/git.js +0 -1
  72. package/build/commands/utils/reportGenerator.js +0 -1
  73. package/build/commands/verifyInBrowser.js +0 -1
@@ -1 +1 @@
1
- (function(_0x2267ae,_0x5e4458){const _0x2fe2aa=_0x3a68,_0x373a8c=_0x2267ae();while(!![]){try{const _0xd06ded=parseInt(_0x2fe2aa(0xfe))/0x1+-parseInt(_0x2fe2aa(0x11d))/0x2+-parseInt(_0x2fe2aa(0x128))/0x3+-parseInt(_0x2fe2aa(0x10c))/0x4+parseInt(_0x2fe2aa(0x151))/0x5*(-parseInt(_0x2fe2aa(0x12b))/0x6)+-parseInt(_0x2fe2aa(0x126))/0x7*(-parseInt(_0x2fe2aa(0x18a))/0x8)+-parseInt(_0x2fe2aa(0x124))/0x9*(-parseInt(_0x2fe2aa(0x181))/0xa);if(_0xd06ded===_0x5e4458)break;else _0x373a8c['push'](_0x373a8c['shift']());}catch(_0x2431f1){_0x373a8c['push'](_0x373a8c['shift']());}}}(_0x3572,0x2dda6));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 _0x3572(){const _0x2c2a3d=['397117UGxIAw','pop','180909tsOLHX','sort','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','1170RmHnkC','split','WzlVT','join','JuoLL','dymaQ','\x20tracing-start`\x0a3.\x20Run\x20`','**\x20(','commandArgs','OdOXh','tab-new','stop\x20tracing','fill','\x20open\x20','tracing-start','03_learn-more.png','trace.trace.zip','\x20(on\x20element:\x20<','trackPhaseEnd','(?:^|\x5cs)','snapshot','\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','\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.','length','PostToolUse','hook_event_name','open\x20','\x5c$&','stop\x20video\x20recording','authorEmail','01_initial.yml','Ohwoz','\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.','OPBgm','isFile','MpVQx','sDXdm','tracing-stop','4625ADePSQ','session-recording.webm','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','mCfll','match','playwright_cli_close','tool_failure','JsNmP','close','`\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`','\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','name','set','canonicalFlow','\x22,\x20\x22','NIygj','bhPul','replace','MPZWl','string','jqOva','tool_call','run\x20custom\x20Playwright\x20code','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','nLhrj','IokLL','playwright-cli','Aqvhe','get','en-US','click\x20','push','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','capture\x20screenshot','VIPlG','\x20>\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','Reviewer','cwd','01_initial-state.png','WyrUI','description','LzCig','map','\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','\x20screenshot\x20--filename\x20','capture\x20step\x20`','tDqNx','15200lcFILn','ref\x20','click','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','DEBUG','select\x20tab\x20','slice','createdAt','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','24CgGQzZ','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','playwright_cli_video_stop','stringify','textContent','invocation','--filename=','\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','playwright_cli_tracing_stop','domRef','tab-select','`\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`','GMcHt','`:\x20\x22','241401ocIHgZ','PostToolUseFailure','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','KijfQ','`\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`','Bash','capture\x20snapshot\x20`','selector','KQSTW','FUCMu','QbxbK','video-stop','open\x20new\x20tab\x20','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','280736GmKacK','01_mozilla-homepage.png','zoFjJ','check\x20','trackPhaseStart','YtVeh','mtimeMs','open\x20browser','error','\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','FRxvT','KHpMJ','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','-\x20[','OqRcH','zKeBv','trackPhaseError','306156iXTovp','start\x20video\x20recording','QQdAx','\x20snapshot\x20--filename\x20','run-code','bXwKN','\x20tracing-start`,\x20then\x20`','1422QUMYuE','capture\x20key\x20step\x20`'];_0x3572=function(){return _0x2c2a3d;};return _0x3572();}function truncatePreview(_0x2513f1,_0x338741=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x2d22e3=_0x3a68,_0x2e3a2c={'OVFyA':function(_0x5cceff,_0x431456){return _0x5cceff+_0x431456;},'OqRcH':'...'};return _0x2513f1[_0x2d22e3(0x142)]>_0x338741?_0x2e3a2c['OVFyA'](_0x2513f1[_0x2d22e3(0x187)](0x0,_0x338741),_0x2e3a2c[_0x2d22e3(0x11a)]):_0x2513f1;}function buildCliArtifactPath(_0x30b061,_0x118492){return join(_0x30b061,_0x118492);}function toStepDisplayName(_0x162d45){const _0x477b07={'IcoQa':function(_0x13dcd4,_0x4eeb3a){return _0x13dcd4(_0x4eeb3a);}},_0x2206a3=basename(_0x162d45)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x2206a3,'isKeyStep':/^key_/i['test'](_0x477b07['IcoQa'](basename,_0x162d45))};}function extractShellValue(_0x3ef101){if(!_0x3ef101)return null;return _0x3ef101[0x1]??_0x3ef101[0x2]??_0x3ef101[0x3]??null;}function _0x3a68(_0x159b41,_0x36dcc8){_0x159b41=_0x159b41-0xfb;const _0x357238=_0x3572();let _0x3a6834=_0x357238[_0x159b41];return _0x3a6834;}function extractFilenameOption(_0x5df5f9){const _0x2086cf=_0x3a68,_0x18cb9f={'OPBgm':function(_0xaeff2d,_0x544adc){return _0xaeff2d(_0x544adc);}};return _0x18cb9f[_0x2086cf(0x14c)](extractShellValue,_0x5df5f9[_0x2086cf(0x155)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x3132bc,_0x496adc){const _0x52135d=_0x3a68,_0x2b9551=_0x496adc[_0x52135d(0x162)](/[.*+?^${}()|[\]\\]/g,_0x52135d(0x146));return extractShellValue(_0x3132bc['match'](new RegExp(_0x52135d(0x13e)+_0x2b9551+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x2901bf){const _0x2208cb=_0x3a68,_0x2885d4={'GlXHA':'target'};if(!_0x2901bf)return _0x2885d4['GlXHA'];if(/^e\d+$/i['test'](_0x2901bf))return _0x2208cb(0x182)+_0x2901bf;return JSON[_0x2208cb(0x18d)](truncatePreview(_0x2901bf,0x78));}function formatPlaywrightCliLog(_0x2bd7dc,_0x29bff5){const _0x22bdee=_0x3a68,_0x101eb5={'JuoLL':_0x22bdee(0x113),'FUCMu':'tracing-stop','bXwKN':_0x22bdee(0x136),'OdOXh':'video-start','Aqvhe':_0x22bdee(0x109),'fJLjH':function(_0x4399a1,_0xbb2d9b){return _0x4399a1(_0xbb2d9b);},'MpVQx':'capture\x20snapshot','LzCig':_0x22bdee(0x172),'KijfQ':function(_0x202393,_0x4a87a2){return _0x202393(_0x4a87a2);},'JsNmP':_0x22bdee(0x183),'JSHso':'check','WyrUI':function(_0x3e8005,_0x30e796,_0x4baf11){return _0x3e8005(_0x30e796,_0x4baf11);},'SOyqD':_0x22bdee(0x137),'WAsqS':'press','PnQVh':_0x22bdee(0x167),'YtVeh':_0x22bdee(0x135)};switch(_0x29bff5){case'open':{const _0x291138=extractFirstCommandArgument(_0x2bd7dc,_0x29bff5);return _0x291138?_0x22bdee(0x145)+_0x291138:_0x101eb5[_0x22bdee(0x12f)];}case _0x22bdee(0x139):return'start\x20tracing';case _0x101eb5[_0x22bdee(0x107)]:return _0x101eb5[_0x22bdee(0x122)];case _0x101eb5[_0x22bdee(0x134)]:return _0x22bdee(0x11e);case _0x101eb5[_0x22bdee(0x16c)]:return _0x22bdee(0x147);case _0x22bdee(0x13f):{const _0x43b630=_0x101eb5['fJLjH'](extractFilenameOption,_0x2bd7dc);if(!_0x43b630)return _0x101eb5[_0x22bdee(0x14e)];const {name:_0x5a9405}=toStepDisplayName(_0x43b630);return _0x22bdee(0x104)+_0x5a9405+'`';}case'screenshot':{const _0x28963a=_0x101eb5['fJLjH'](extractFilenameOption,_0x2bd7dc);if(!_0x28963a)return _0x101eb5[_0x22bdee(0x17b)];const {name:_0x2c09f0,isKeyStep:_0x552cea}=_0x101eb5['KijfQ'](toStepDisplayName,_0x28963a);return _0x552cea?_0x22bdee(0x125)+_0x2c09f0+'`':_0x22bdee(0x17f)+_0x2c09f0+'`';}case _0x101eb5[_0x22bdee(0x158)]:return _0x22bdee(0x16f)+_0x101eb5[_0x22bdee(0x101)](formatCommandTarget,extractFirstCommandArgument(_0x2bd7dc,_0x29bff5));case _0x101eb5['JSHso']:return _0x22bdee(0x10f)+formatCommandTarget(_0x101eb5['WyrUI'](extractFirstCommandArgument,_0x2bd7dc,_0x29bff5));case _0x101eb5['SOyqD']:return'fill\x20'+formatCommandTarget(_0x101eb5[_0x22bdee(0x179)](extractFirstCommandArgument,_0x2bd7dc,_0x29bff5));case _0x101eb5['WAsqS']:return'press\x20'+formatCommandTarget(extractFirstCommandArgument(_0x2bd7dc,_0x29bff5));case _0x22bdee(0x121):return _0x101eb5['PnQVh'];case _0x101eb5[_0x22bdee(0x111)]:{const _0x466c38=extractFirstCommandArgument(_0x2bd7dc,_0x29bff5);return _0x466c38?_0x22bdee(0x10a)+_0x466c38:'open\x20new\x20tab';}case _0x22bdee(0x194):{const _0x46398b=extractFirstCommandArgument(_0x2bd7dc,_0x29bff5);return _0x46398b?_0x22bdee(0x186)+_0x46398b:'select\x20tab';}default:return _0x29bff5;}}function extractPlaywrightCliToolDescription(_0x263017){const _0x358a37=_0x3a68,_0x45883c={'elKnn':_0x358a37(0x164)},_0x5b010d=_0x263017[_0x358a37(0x17a)];if(typeof _0x5b010d!==_0x45883c['elKnn'])return null;const _0x3dd433=_0x5b010d['trim']()[_0x358a37(0x162)](/\s+/g,'\x20');return _0x3dd433['length']>0x0?_0x3dd433:null;}export function formatPlaywrightCliConsoleLogMessage(_0x8ba6de,_0x1bab5c,_0x2f4774){const _0x1b8a7e=_0x3a68,_0x5c5f1d=formatPlaywrightCliLog(_0x1bab5c,_0x2f4774),_0x4a1ba6=extractPlaywrightCliToolDescription(_0x8ba6de);if(!_0x4a1ba6)return'[playwright-cli]\x20'+_0x5c5f1d;if(process['env'][_0x1b8a7e(0x185)])return'[ranger-verification-agent]\x20'+_0x4a1ba6+'\x20('+_0x5c5f1d+')';return'[ranger-verification-agent]\x20'+_0x4a1ba6;}export function buildVerifyFeatureCliDebugPrompt(_0x1483d7,_0x47d682){const _0x46e4f3=_0x3a68,_0x2bb85b={'dymaQ':function(_0x5682b9,_0x373e72,_0x241163){return _0x5682b9(_0x373e72,_0x241163);},'UTyxf':'00_mozilla-homepage.yml','tDqNx':function(_0x22b8dc,_0x1c6a7e){return _0x22b8dc(_0x1c6a7e);}},_0x5af8a8=_0x2bb85b[_0x46e4f3(0x130)](buildCliArtifactPath,_0x47d682,_0x2bb85b['UTyxf']),_0x4dc886=_0x2bb85b['dymaQ'](buildCliArtifactPath,_0x47d682,_0x46e4f3(0x10d)),_0x29ef76=buildCliArtifactPath(_0x47d682,'02_learn-more.yml'),_0x4bb4b8=buildCliArtifactPath(_0x47d682,_0x46e4f3(0x13a)),_0x2fca73=_0x2bb85b[_0x46e4f3(0x180)](quoteShellArg,_0x5af8a8),_0x120b43=quoteShellArg(_0x4dc886),_0xe8fe72=quoteShellArg(_0x29ef76),_0x4f1541=quoteShellArg(_0x4bb4b8);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x1483d7+'\x0a\x0a1.\x20Run\x20`'+_0x1483d7+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x1483d7+_0x46e4f3(0x131)+_0x1483d7+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x47d682+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x1483d7+_0x46e4f3(0x120)+_0x2fca73+_0x46e4f3(0x10b)+_0x1483d7+_0x46e4f3(0x17e)+_0x120b43+_0x46e4f3(0x171)+_0x1483d7+_0x46e4f3(0x120)+_0xe8fe72+'`\x0a9.\x20Run\x20`'+_0x1483d7+_0x46e4f3(0x17e)+_0x4f1541+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x4d135d){const _0x5c3c77=_0x3a68,_0xeddc06={'sDXdm':_0x5c3c77(0x16e),'vriDj':'short','SWJVq':'numeric','zoFjJ':_0x5c3c77(0x174),'esqTM':'element','NIygj':_0x5c3c77(0x149),'bhPul':function(_0x5b8f6f,_0x335d0a,_0x31824a){return _0x5b8f6f(_0x335d0a,_0x31824a);},'QbxbK':'02_state.yml','AUvmw':function(_0x299c60,_0x218b09,_0x1074c8){return _0x299c60(_0x218b09,_0x1074c8);},'KQSTW':'key_03_success-state.png','GMcHt':function(_0x52a342,_0x41f61c){return _0x52a342(_0x41f61c);},'wVZNQ':function(_0xe22715,_0x253e4b){return _0xe22715(_0x253e4b);},'rFPCE':'02_button-clicked.png','IokLL':function(_0x3bfdce,_0x3a137b,_0x3b8185){return _0x3bfdce(_0x3a137b,_0x3b8185);}},{checklistItem:_0x28e454,itemFeedback:_0x19037b,taskDescription:_0x41733e,cliCommandPrefix:_0x42c8bc,cliArtifactDir:_0x5be51f,isCdpMode:_0x40297e,url:_0x212559,cdpEndpoint:_0x26c1ef,loginInstructions:_0x3d057b}=_0x4d135d,_0x54138e=buildCliArtifactPath(_0x5be51f,_0xeddc06[_0x5c3c77(0x160)]),_0x4c5e02=_0xeddc06['bhPul'](buildCliArtifactPath,_0x5be51f,_0xeddc06[_0x5c3c77(0x108)]),_0x5b942f=_0xeddc06['AUvmw'](buildCliArtifactPath,_0x5be51f,_0xeddc06[_0x5c3c77(0x106)]),_0x109a0d=buildCliArtifactPath(_0x5be51f,_0x5c3c77(0x178)),_0x2492f4=quoteShellArg(_0x54138e),_0x4c0357=quoteShellArg(_0x4c5e02),_0x55c5bf=_0xeddc06[_0x5c3c77(0xfc)](quoteShellArg,_0x5b942f),_0x184383=_0xeddc06['wVZNQ'](quoteShellArg,_0x109a0d),_0x1e7a60=_0x28e454['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x28e454['notes']:'';let _0x7864fc='';if(_0x19037b&&_0x19037b['unaddressedComments']['length']>0x0){const _0x4d9ec6=_0x19037b['unaddressedComments'][_0x5c3c77(0x17c)](_0x32a588=>{const _0x24ba26=_0x5c3c77,_0x595098=new Date(_0x32a588[_0x24ba26(0x188)])['toLocaleDateString'](_0xeddc06[_0x24ba26(0x14f)],{'month':_0xeddc06['vriDj'],'day':_0xeddc06['SWJVq']}),_0xda055d=_0x32a588['authorName']||_0x32a588[_0x24ba26(0x148)]||_0x24ba26(0x176),_0x361cd4=_0x32a588[_0x24ba26(0x193)]?_0x24ba26(0x13c)+(_0x32a588[_0x24ba26(0x193)][_0x24ba26(0x105)][_0x24ba26(0x12c)](_0xeddc06[_0x24ba26(0x10e)])[_0x24ba26(0x127)]()?.[_0x24ba26(0x12c)](':')[0x0]||_0xeddc06['esqTM'])+'>\x20\x22'+(_0x32a588['domRef'][_0x24ba26(0x18e)]||'')[_0x24ba26(0x187)](0x0,0x32)+'\x22)':'';return _0x24ba26(0x119)+_0x32a588['id']+']\x20**'+_0xda055d+_0x24ba26(0x132)+_0x595098+'):\x20\x22'+_0x32a588['content']+'\x22'+_0x361cd4;})[_0x5c3c77(0x12e)]('\x0a');_0x7864fc=_0x5c3c77(0x140)+_0x4d9ec6;}const _0x399f48=_0x19037b?.[_0x5c3c77(0x15e)]?_0x5c3c77(0x189)+_0x19037b[_0x5c3c77(0x15e)]:'',_0x2a6337=_0x40297e?_0x5c3c77(0x100)+_0x26c1ef+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':_0x5c3c77(0x12a)+_0x212559+_0x5c3c77(0x191),_0x476bdc=_0x212559?quoteShellArg(_0x212559):'',_0x34c3f1=_0x40297e?_0x5c3c77(0x18b)+_0x42c8bc+'\x20open`,\x20then\x20`'+_0x42c8bc+'\x20tracing-start`,\x20then\x20`'+_0x42c8bc+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x5be51f+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x42c8bc+_0x5c3c77(0x120)+_0x2492f4+_0x5c3c77(0x15a)+_0x42c8bc+_0x5c3c77(0x17e)+_0x184383+_0x5c3c77(0x184)+_0x42c8bc+'\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':_0x5c3c77(0x18b)+_0x42c8bc+_0x5c3c77(0x138)+_0x476bdc+'`,\x20then\x20`'+_0x42c8bc+_0x5c3c77(0x123)+_0x42c8bc+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x5be51f+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x42c8bc+_0x5c3c77(0x120)+_0x2492f4+_0x5c3c77(0xfb)+_0x42c8bc+'\x20screenshot\x20--filename\x20'+_0x184383+_0x5c3c77(0x168)+_0x42c8bc+_0x5c3c77(0x17d),_0x3871ef=_0x40297e?'\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.':_0x5c3c77(0x141),_0x261384=_0x3d057b?_0x5c3c77(0x118)+_0x3d057b+_0x5c3c77(0x14b):'';return _0x5c3c77(0x153)+_0x28e454[_0x5c3c77(0x17a)]+_0x1e7a60+_0x7864fc+_0x399f48+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x41733e+'\x0a\x0a'+_0x2a6337+_0x261384+'\x0a\x0a'+_0x34c3f1+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x42c8bc+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x5be51f+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x4c0357+_0x5c3c77(0x175)+_0x55c5bf+_0x5c3c77(0x102)+_0x5be51f+_0x5c3c77(0xfd)+_0x109a0d+_0x5c3c77(0x15f)+_0xeddc06[_0x5c3c77(0x161)](buildCliArtifactPath,_0x5be51f,_0xeddc06['rFPCE'])+_0x5c3c77(0x15f)+buildCliArtifactPath(_0x5be51f,'03_result-visible.png')+_0x5c3c77(0x15b)+_0xeddc06[_0x5c3c77(0x16a)](buildCliArtifactPath,_0x5be51f,'key_04_success-state.png')+_0x5c3c77(0x115)+_0x3871ef+'\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20(bug,\x20error,\x20missing\x20feature)\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureCliCommandAvailability(_0x5b2ae5){const _0x13320a=[..._0x5b2ae5['keys']()]['sort']();let _0x3b4b8b=0x0;for(const _0x523878 of _0x5b2ae5['values']()){_0x3b4b8b+=_0x523878;}return{'cliCommandCount':_0x3b4b8b,'cliCommandsSeen':_0x13320a,'noCliCommandsCalled':_0x3b4b8b===0x0};}export function createVerifyFeatureCliHooks(_0x26597){const _0x41d10b=_0x3a68,_0xc67000={'hUYoU':function(_0x4f8dc0,_0x2d1a37){return _0x4f8dc0!==_0x2d1a37;},'uGqlV':function(_0x237be6,_0x2b7fcb){return _0x237be6(_0x2b7fcb);},'TSQIA':function(_0x3fd77a,_0x5da439){return _0x3fd77a(_0x5da439);},'WzlVT':function(_0x11342a,_0x486723){return _0x11342a+_0x486723;},'zDHTo':_0x41d10b(0x16b),'PVSWZ':function(_0x437be0,_0x3c794d,_0x1246cd,_0x59e5a2){return _0x437be0(_0x3c794d,_0x1246cd,_0x59e5a2);},'KHpMJ':function(_0x1a42c7,_0x6fedf7){return _0x1a42c7!==_0x6fedf7;},'zKeBv':_0x41d10b(0xff),'nLhrj':_0x41d10b(0x103),'FRxvT':_0x41d10b(0x157)},_0x5ed46e=new Map(),_0x32be6e=async _0x5b71fe=>{const _0x850432=_0x41d10b;if(_0xc67000['hUYoU'](_0x5b71fe[_0x850432(0x144)],_0x850432(0x143)))return{};const _0x584798=_0x5b71fe;if(_0x584798['tool_name']!=='Bash')return{};const _0x111fec=_0x584798['tool_input'],_0x3bfd3b=_0xc67000['uGqlV'](extractBashCommand,_0x111fec);if(!_0x3bfd3b)return{};const _0x4d8eff=_0xc67000['TSQIA'](parsePlaywrightCliCommand,_0x3bfd3b);if(!_0x4d8eff)return{};return _0x5ed46e[_0x850432(0x15d)](_0x4d8eff,_0xc67000[_0x850432(0x12d)](_0x5ed46e[_0x850432(0x16d)](_0x4d8eff)||0x0,0x1)),_0x26597['trackPhaseStart'](_0x850432(0x166),{'transport':_0xc67000['zDHTo'],'toolName':_0x4d8eff}),_0x26597['trackPhaseEnd']('tool_call',{'transport':'playwright-cli','toolName':_0x4d8eff,'bashCommandPreview':truncatePreview(_0x3bfd3b)}),_0x4d8eff!==_0x850432(0x13f)&&console['log'](_0xc67000['PVSWZ'](formatPlaywrightCliConsoleLogMessage,_0x111fec,_0x3bfd3b,_0x4d8eff)),{};},_0x3f66b3=async _0x3dd629=>{const _0x3c2b61=_0x41d10b;if(_0xc67000[_0x3c2b61(0x117)](_0x3dd629[_0x3c2b61(0x144)],_0xc67000[_0x3c2b61(0x11b)]))return{};const _0x2d43d6=_0x3dd629;if(_0x2d43d6['tool_name']!==_0xc67000[_0x3c2b61(0x169)])return{};return await _0x26597[_0x3c2b61(0x11c)](_0xc67000[_0x3c2b61(0x116)],_0x2d43d6[_0x3c2b61(0x114)],{'transport':'playwright-cli','toolName':_0xc67000[_0x3c2b61(0x169)]}),{};};return{'postToolUseHook':_0x32be6e,'postToolUseFailureHook':_0x3f66b3,'commandCounts':_0x5ed46e};}async function runPlaywrightCliLifecycleCommand(_0x443f05){const _0x495ef7=_0x3a68,_0x1ffadf={'jbAia':function(_0x47e387,_0x4321f7,_0xd26cfd){return _0x47e387(_0x4321f7,_0xd26cfd);}},{sessionId:_0x31db2e,configPath:_0x57b9f5,commandArgs:_0x3d0dd8,env:_0x57a509,telemetry:_0x4e68fb,phase:_0x1c8a20,metadata:_0x1455d7,timeoutMs:_0x2fcb36}=_0x443f05;_0x4e68fb[_0x495ef7(0x110)](_0x1c8a20,_0x1455d7);try{const _0xf825a2=await runPlaywrightCliCommand({'sessionId':_0x31db2e,'configPath':_0x57b9f5,'commandArgs':_0x3d0dd8,'cwd':process[_0x495ef7(0x177)](),'env':_0x57a509,'timeoutMs':_0x2fcb36??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x4e68fb[_0x495ef7(0x13d)](_0x1c8a20,{..._0x1455d7,'subcommand':_0xf825a2[_0x495ef7(0x18f)]['subcommand'],'stdoutPreview':truncatePreview(_0xf825a2['stdout'],0x7d0),'stderrPreview':_0x1ffadf['jbAia'](truncatePreview,_0xf825a2['stderr'],0x7d0)});}catch(_0x3025f4){await _0x4e68fb['trackPhaseError'](_0x1c8a20,_0x3025f4,_0x1455d7);throw _0x3025f4;}}export async function finalizeVerifyFeatureCliSession(_0x333585){const _0x43ba71=_0x3a68,_0x468994={'mCfll':'video-stop','ySKMM':function(_0x423e65,_0x3b5660,_0x4f2208){return _0x423e65(_0x3b5660,_0x4f2208);},'jqOva':_0x43ba71(0x159)},{telemetry:_0x204c91,sessionId:_0x2dfbe4,configPath:_0x175567,cliArtifactDir:_0x2affa3,env:_0x400784,transportMetadata:_0x283a34}=_0x333585,_0x168cee=[{'phase':_0x43ba71(0x192),'commandArgs':[_0x43ba71(0x150)]},{'phase':_0x43ba71(0x18c),'commandArgs':[_0x468994[_0x43ba71(0x154)],_0x43ba71(0x190)+_0x468994['ySKMM'](buildCliArtifactPath,_0x2affa3,_0x43ba71(0x152))]},{'phase':_0x43ba71(0x156),'commandArgs':[_0x468994[_0x43ba71(0x165)]]}];for(const _0x3c96bf of _0x168cee){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x2dfbe4,'configPath':_0x175567,'commandArgs':[..._0x3c96bf[_0x43ba71(0x133)]],'env':_0x400784,'telemetry':_0x204c91,'phase':_0x3c96bf['phase'],'metadata':_0x283a34});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x30e415){const _0x2ba683=_0x3a68,_0x41be30={'QQdAx':'trace.zip','Ohwoz':_0x2ba683(0x13b),'xpXCn':function(_0x205001,_0x599f2a,_0x2ed4e9){return _0x205001(_0x599f2a,_0x2ed4e9);},'swopD':function(_0xb4c9bb,_0x385796){return _0xb4c9bb(_0x385796);}},_0x450906=[_0x41be30[_0x2ba683(0x11f)],_0x41be30[_0x2ba683(0x14a)]];for(const _0x120875 of _0x450906){const _0x1514a1=_0x41be30['xpXCn'](join,_0x30e415,_0x120875);try{return{'buffer':await _0x41be30['swopD'](readFile,_0x1514a1),'source':_0x1514a1};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x3c426b){const _0x1e1e09=_0x3a68,_0x207cbb={'KGuww':function(_0x157e65,_0x1c2f77){return _0x157e65(_0x1c2f77);},'VIPlG':function(_0x32a56a,_0x5a5395){return _0x32a56a<_0x5a5395;},'MPZWl':function(_0x3fe4eb,_0x4ed4e1){return _0x3fe4eb===_0x4ed4e1;}},{cwd:_0x57c00b,cliArtifactDir:_0x3d906f,startTime:_0x1d5431}=_0x3c426b,_0x33134b=[];await mkdir(_0x3d906f,{'recursive':!![]});const _0x562399=await readdir(_0x57c00b,{'withFileTypes':!![]});for(const _0x17ec67 of _0x562399){if(!_0x17ec67[_0x1e1e09(0x14d)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x17ec67[_0x1e1e09(0x15c)]))continue;const _0x5aa17b=join(_0x57c00b,_0x17ec67[_0x1e1e09(0x15c)]),_0x4fd35d=await _0x207cbb['KGuww'](stat,_0x5aa17b);if(_0x207cbb[_0x1e1e09(0x173)](_0x4fd35d[_0x1e1e09(0x112)]+0x7d0,_0x1d5431))continue;const _0x358975=buildCliArtifactPath(_0x3d906f,_0x17ec67[_0x1e1e09(0x15c)]);if(_0x207cbb[_0x1e1e09(0x163)](_0x5aa17b,_0x358975))continue;await rename(_0x5aa17b,_0x358975),_0x33134b[_0x1e1e09(0x170)](_0x17ec67[_0x1e1e09(0x15c)]);}return _0x33134b[_0x1e1e09(0x129)]();}
1
+ (function(_0xc3785f,_0x6f68f4){const _0x1dcd5f=_0x1906,_0x14e9e8=_0xc3785f();while(!![]){try{const _0x2589a3=-parseInt(_0x1dcd5f(0x120))/0x1+-parseInt(_0x1dcd5f(0xbe))/0x2*(-parseInt(_0x1dcd5f(0x123))/0x3)+-parseInt(_0x1dcd5f(0xf3))/0x4+-parseInt(_0x1dcd5f(0xcd))/0x5+parseInt(_0x1dcd5f(0xfd))/0x6+parseInt(_0x1dcd5f(0xcc))/0x7*(parseInt(_0x1dcd5f(0x101))/0x8)+parseInt(_0x1dcd5f(0xda))/0x9*(parseInt(_0x1dcd5f(0x105))/0xa);if(_0x2589a3===_0x6f68f4)break;else _0x14e9e8['push'](_0x14e9e8['shift']());}catch(_0x476f29){_0x14e9e8['push'](_0x14e9e8['shift']());}}}(_0x3e1e,0xa034e));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 _0x3e1e(){const _0x595fd5=['nTWDe','--filename=','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','tool_call','mtimeMs','tZDQi','press','YwWpn','capture\x20snapshot','trackPhaseError','values','start\x20video\x20recording','fDzmm','02_state.yml','capture\x20snapshot\x20`','03_result-visible.png','QonmR','4266324YOKqMh','\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.','\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','\x0a\x0a##\x20Additional\x20Notes\x0a','\x22,\x20\x22','push','DEBUG','BlppD','mnoHK','snapshot','5525802DXcFnv','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a7.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a8.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario','uBanL','221664iBYGYI','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','fill\x20','stderr','20QRFyQa','subcommand','jbeng','domRef','\x0a\x0a1.\x20Run\x20`','test','Hvgtu','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','pop','error','`\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`','BLagu','pFnGX','):\x20\x22','trackPhaseEnd','textContent','numeric','unaddressedComments','tracing-stop','capture\x20screenshot','voKXt','description','close','canonicalFlow','BrLHk','selector','tool_input','195319OvhOKS','env','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','3045XmydOW','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','PostToolUseFailure','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','check','eEPeT','GlgiT','isFile','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','ZAcWi','name','dXKXI','set','XNYyU','-\x20[','playwright-cli','cFoBI','RqMat','`\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`','ref\x20','\x20tracing-start`\x0a3.\x20Run\x20`','Bash','stop\x20tracing','map','invocation','authorName','ptAuM','mGyuo','iqcGc','EuGeZ','UVmLE','video-start','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','SesNj','hook_event_name','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','trace.zip','trim','run-code','\x20screenshot\x20--filename\x20','trackPhaseStart','cwd','fill','match','310MLINek','key_04_success-state.png','wccsK','split','\x20snapshot\x20--filename\x20','\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','run\x20custom\x20Playwright\x20code','HFjfv','replace','tracing-start','stop\x20video\x20recording','yjvfV','open','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','259zPMeKY','6294320exfDXP','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','trace.trace.zip','tool_name','03_learn-more.png','element','`\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`','\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','sort','(?:^|\x5cs)','HKBvu','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','JuCFV','4830669TvfbrR','commandArgs','janFE','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','02_button-clicked.png','press\x20','\x5c$&','NdWgF'];_0x3e1e=function(){return _0x595fd5;};return _0x3e1e();}function truncatePreview(_0x20ed24,_0x12edfc=PLAYWRIGHT_CLI_PREVIEW_LIMIT){return _0x20ed24['length']>_0x12edfc?_0x20ed24['slice'](0x0,_0x12edfc)+'...':_0x20ed24;}function buildCliArtifactPath(_0x245d07,_0x4424a1){const _0x24b3b6=_0x1906,_0x271358={'ZAcWi':function(_0x339ade,_0x417183,_0x2a62f0){return _0x339ade(_0x417183,_0x2a62f0);}};return _0x271358[_0x24b3b6(0x12c)](join,_0x245d07,_0x4424a1);}function _0x1906(_0x13987c,_0x98b125){_0x13987c=_0x13987c-0xa6;const _0x3e1ed9=_0x3e1e();let _0x190632=_0x3e1ed9[_0x13987c];return _0x190632;}function toStepDisplayName(_0x611250){const _0x123f57=_0x1906,_0x13e715={'HFjfv':function(_0x51ae87,_0x25eff2){return _0x51ae87(_0x25eff2);}},_0x20c995=_0x13e715[_0x123f57(0xc5)](basename,_0x611250)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')[_0x123f57(0xc6)](/-/g,'\x20');return{'name':_0x20c995,'isKeyStep':/^key_/i['test'](basename(_0x611250))};}function extractShellValue(_0x98f4b7){if(!_0x98f4b7)return null;return _0x98f4b7[0x1]??_0x98f4b7[0x2]??_0x98f4b7[0x3]??null;}function extractFilenameOption(_0x118230){return extractShellValue(_0x118230['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x584aef,_0x27887e){const _0x19e55c=_0x1906,_0x360d43={'SesNj':_0x19e55c(0xe0),'fDzmm':function(_0x4b211e,_0x4ab5d4){return _0x4b211e(_0x4ab5d4);}},_0x11889b=_0x27887e[_0x19e55c(0xc6)](/[.*+?^${}()|[\]\\]/g,_0x360d43[_0x19e55c(0xb3)]);return _0x360d43[_0x19e55c(0xee)](extractShellValue,_0x584aef[_0x19e55c(0xbd)](new RegExp(_0x19e55c(0xd6)+_0x11889b+_0x19e55c(0xe4))));}function formatCommandTarget(_0x44523f){const _0x1a2230=_0x1906,_0x56bc82={'plrAw':'target'};if(!_0x44523f)return _0x56bc82['plrAw'];if(/^e\d+$/i[_0x1a2230(0x10a)](_0x44523f))return _0x1a2230(0x136)+_0x44523f;return JSON['stringify'](truncatePreview(_0x44523f,0x78));}function formatPlaywrightCliLog(_0x22859d,_0x6085c3){const _0x460921=_0x1906,_0x313a2c={'tXGvZ':_0x460921(0xca),'nTWDe':function(_0x33ae35,_0x40a40f,_0x2804be){return _0x33ae35(_0x40a40f,_0x2804be);},'voKXt':'open\x20browser','uBanL':_0x460921(0xc7),'HKBvu':'start\x20tracing','fCBFX':_0x460921(0xed),'bpDMK':_0x460921(0xc8),'QonmR':_0x460921(0xfc),'BlppD':function(_0x173337,_0x5df837){return _0x173337(_0x5df837);},'ZUKuF':'screenshot','BLagu':_0x460921(0x118),'dXKXI':'click','yXqPx':_0x460921(0xbc),'CVVIj':_0x460921(0xc4),'JuCFV':'open\x20new\x20tab','mGyuo':'tab-select','ptAuM':function(_0x13e6d5,_0x197a48,_0xf5f181){return _0x13e6d5(_0x197a48,_0xf5f181);}};switch(_0x6085c3){case _0x313a2c['tXGvZ']:{const _0x20f85b=_0x313a2c[_0x460921(0xe2)](extractFirstCommandArgument,_0x22859d,_0x6085c3);return _0x20f85b?'open\x20'+_0x20f85b:_0x313a2c[_0x460921(0x119)];}case _0x313a2c[_0x460921(0x100)]:return _0x313a2c[_0x460921(0xd7)];case _0x460921(0x117):return _0x460921(0xa8);case _0x460921(0xb1):return _0x313a2c['fCBFX'];case'video-stop':return _0x313a2c['bpDMK'];case _0x313a2c[_0x460921(0xf2)]:{const _0x25e76f=_0x313a2c[_0x460921(0xfa)](extractFilenameOption,_0x22859d);if(!_0x25e76f)return _0x460921(0xea);const {name:_0x198a44}=toStepDisplayName(_0x25e76f);return _0x460921(0xf0)+_0x198a44+'`';}case _0x313a2c['ZUKuF']:{const _0x470fe4=_0x313a2c[_0x460921(0xfa)](extractFilenameOption,_0x22859d);if(!_0x470fe4)return _0x313a2c[_0x460921(0x110)];const {name:_0x2795b6,isKeyStep:_0x277694}=toStepDisplayName(_0x470fe4);return _0x277694?'capture\x20key\x20step\x20`'+_0x2795b6+'`':'capture\x20step\x20`'+_0x2795b6+'`';}case _0x313a2c[_0x460921(0x12e)]:return'click\x20'+formatCommandTarget(extractFirstCommandArgument(_0x22859d,_0x6085c3));case _0x460921(0x127):return'check\x20'+_0x313a2c[_0x460921(0xfa)](formatCommandTarget,_0x313a2c[_0x460921(0xe2)](extractFirstCommandArgument,_0x22859d,_0x6085c3));case _0x313a2c['yXqPx']:return _0x460921(0x103)+formatCommandTarget(extractFirstCommandArgument(_0x22859d,_0x6085c3));case _0x460921(0xe8):return _0x460921(0xdf)+formatCommandTarget(extractFirstCommandArgument(_0x22859d,_0x6085c3));case _0x460921(0xb8):return _0x313a2c['CVVIj'];case'tab-new':{const _0x30d17d=extractFirstCommandArgument(_0x22859d,_0x6085c3);return _0x30d17d?'open\x20new\x20tab\x20'+_0x30d17d:_0x313a2c[_0x460921(0xd9)];}case _0x313a2c[_0x460921(0xad)]:{const _0x51cb4e=_0x313a2c[_0x460921(0xac)](extractFirstCommandArgument,_0x22859d,_0x6085c3);return _0x51cb4e?'select\x20tab\x20'+_0x51cb4e:'select\x20tab';}default:return _0x6085c3;}}function extractPlaywrightCliToolDescription(_0x44118d){const _0xfdc1aa=_0x1906,_0x22232e=_0x44118d['description'];if(typeof _0x22232e!=='string')return null;const _0x48659c=_0x22232e[_0xfdc1aa(0xb7)]()['replace'](/\s+/g,'\x20');return _0x48659c['length']>0x0?_0x48659c:null;}export function formatPlaywrightCliConsoleLogMessage(_0x3d7b39,_0x5de6d2,_0x558024){const _0x28d829=_0x1906,_0x5adfac={'RqMat':function(_0x21c3f0,_0x3caf5d){return _0x21c3f0(_0x3caf5d);}},_0x4d0e92=formatPlaywrightCliLog(_0x5de6d2,_0x558024),_0x48ab94=_0x5adfac[_0x28d829(0x134)](extractPlaywrightCliToolDescription,_0x3d7b39);if(!_0x48ab94)return'[playwright-cli]\x20'+_0x4d0e92;if(process[_0x28d829(0x121)][_0x28d829(0xf9)])return'[ranger-verification-agent]\x20'+_0x48ab94+'\x20('+_0x4d0e92+')';return'[ranger-verification-agent]\x20'+_0x48ab94;}export function buildVerifyFeatureCliDebugPrompt(_0x15372b,_0x4b3fbf){const _0x2c640e=_0x1906,_0x411c4a={'mnoHK':function(_0x5122b2,_0x78efe3,_0x457bca){return _0x5122b2(_0x78efe3,_0x457bca);},'yjvfV':_0x2c640e(0xd1),'Hvgtu':function(_0x226946,_0x38d38e){return _0x226946(_0x38d38e);},'ZacWf':function(_0xf16cfe,_0x1d8018){return _0xf16cfe(_0x1d8018);}},_0x1e7239=_0x411c4a[_0x2c640e(0xfb)](buildCliArtifactPath,_0x4b3fbf,'00_mozilla-homepage.yml'),_0x1a178c=buildCliArtifactPath(_0x4b3fbf,'01_mozilla-homepage.png'),_0x20c7c3=buildCliArtifactPath(_0x4b3fbf,'02_learn-more.yml'),_0x8000a6=buildCliArtifactPath(_0x4b3fbf,_0x411c4a[_0x2c640e(0xc9)]),_0x2eb8a9=_0x411c4a[_0x2c640e(0x10b)](quoteShellArg,_0x1e7239),_0x116d28=_0x411c4a[_0x2c640e(0x10b)](quoteShellArg,_0x1a178c),_0x2f24c0=_0x411c4a['ZacWf'](quoteShellArg,_0x20c7c3),_0x1f604c=quoteShellArg(_0x8000a6);return _0x2c640e(0x102)+_0x15372b+_0x2c640e(0x109)+_0x15372b+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x15372b+_0x2c640e(0xa6)+_0x15372b+_0x2c640e(0xd4)+_0x4b3fbf+_0x2c640e(0x122)+_0x15372b+'\x20snapshot\x20--filename\x20'+_0x2eb8a9+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x15372b+_0x2c640e(0xb9)+_0x116d28+_0x2c640e(0xb2)+_0x15372b+'\x20snapshot\x20--filename\x20'+_0x2f24c0+'`\x0a9.\x20Run\x20`'+_0x15372b+'\x20screenshot\x20--filename\x20'+_0x1f604c+_0x2c640e(0xb5);}export function buildVerifyFeatureCliPrompt(_0x4eacd5){const _0x4dff8c=_0x1906,_0x18be0a={'zMDby':_0x4dff8c(0x115),'UcNGE':'\x20>\x20','GlgiT':function(_0x1bfef5,_0x37505f,_0x2c5517){return _0x1bfef5(_0x37505f,_0x2c5517);},'pFnGX':'key_03_success-state.png','GTjsq':function(_0x33b853,_0x48e804){return _0x33b853(_0x48e804);},'qlPUL':function(_0x4b04ac,_0x2ffd55){return _0x4b04ac(_0x2ffd55);},'YpUHw':function(_0x2d51ce,_0x37eae4){return _0x2d51ce(_0x37eae4);},'UVmLE':_0x4dff8c(0xde),'XnrLj':_0x4dff8c(0xbf)},{checklistItem:_0x1020a2,itemFeedback:_0x2bc69e,taskDescription:_0xff138e,cliCommandPrefix:_0x35b73e,cliArtifactDir:_0x34036f,isCdpMode:_0x247860,url:_0x1284ce,cdpEndpoint:_0x470506,loginInstructions:_0x48a385}=_0x4eacd5,_0x3c4aec=buildCliArtifactPath(_0x34036f,'01_initial.yml'),_0x35e5cd=buildCliArtifactPath(_0x34036f,_0x4dff8c(0xef)),_0x8061d0=_0x18be0a[_0x4dff8c(0x129)](buildCliArtifactPath,_0x34036f,_0x18be0a[_0x4dff8c(0x111)]),_0x3d503b=_0x18be0a[_0x4dff8c(0x129)](buildCliArtifactPath,_0x34036f,'01_initial-state.png'),_0x5b3c0f=_0x18be0a['GTjsq'](quoteShellArg,_0x3c4aec),_0x3c313f=quoteShellArg(_0x35e5cd),_0x3d20e7=_0x18be0a['qlPUL'](quoteShellArg,_0x8061d0),_0x18477e=_0x18be0a['qlPUL'](quoteShellArg,_0x3d503b),_0x45fe33=_0x1020a2['notes']?_0x4dff8c(0xf6)+_0x1020a2['notes']:'';let _0x5cbb7e='';if(_0x2bc69e&&_0x2bc69e['unaddressedComments']['length']>0x0){const _0x3c8de1=_0x2bc69e[_0x4dff8c(0x116)][_0x4dff8c(0xa9)](_0x13a784=>{const _0xe3073d=_0x4dff8c,_0x4a917c=new Date(_0x13a784['createdAt'])['toLocaleDateString']('en-US',{'month':'short','day':_0x18be0a['zMDby']}),_0x545cc5=_0x13a784[_0xe3073d(0xab)]||_0x13a784['authorEmail']||'Reviewer',_0x5e20c1=_0x13a784[_0xe3073d(0x108)]?'\x20(on\x20element:\x20<'+(_0x13a784[_0xe3073d(0x108)][_0xe3073d(0x11e)][_0xe3073d(0xc1)](_0x18be0a['UcNGE'])[_0xe3073d(0x10d)]()?.['split'](':')[0x0]||_0xe3073d(0xd2))+'>\x20\x22'+(_0x13a784['domRef'][_0xe3073d(0x114)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0xe3073d(0x131)+_0x13a784['id']+']\x20**'+_0x545cc5+'**\x20('+_0x4a917c+_0xe3073d(0x112)+_0x13a784['content']+'\x22'+_0x5e20c1;})['join']('\x0a');_0x5cbb7e='\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'+_0x3c8de1;}const _0x5b1ebe=_0x2bc69e?.[_0x4dff8c(0x11c)]?_0x4dff8c(0xd8)+_0x2bc69e['canonicalFlow']:'',_0x960474=_0x247860?_0x4dff8c(0x12b)+_0x470506+_0x4dff8c(0x126):_0x4dff8c(0x10c)+_0x1284ce+'\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',_0x50f248=_0x1284ce?_0x18be0a['YpUHw'](quoteShellArg,_0x1284ce):'',_0x4b30bf=_0x247860?_0x4dff8c(0xdd)+_0x35b73e+'\x20open`,\x20then\x20`'+_0x35b73e+'\x20tracing-start`,\x20then\x20`'+_0x35b73e+_0x4dff8c(0x124)+_0x34036f+_0x4dff8c(0xcb)+_0x35b73e+'\x20snapshot\x20--filename\x20'+_0x5b3c0f+_0x4dff8c(0x10f)+_0x35b73e+_0x4dff8c(0xb9)+_0x18477e+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x35b73e+_0x4dff8c(0xff):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x35b73e+'\x20open\x20'+_0x50f248+'`,\x20then\x20`'+_0x35b73e+'\x20tracing-start`,\x20then\x20`'+_0x35b73e+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x34036f+_0x4dff8c(0xcb)+_0x35b73e+_0x4dff8c(0xc2)+_0x5b3c0f+_0x4dff8c(0xd3)+_0x35b73e+'\x20screenshot\x20--filename\x20'+_0x18477e+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x35b73e+_0x4dff8c(0xc3),_0x3b483b=_0x247860?_0x4dff8c(0xf4):'\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.',_0x5059c0=_0x48a385?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x48a385+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20immediately\x20with\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return'You\x20are\x20a\x20Feature\x20Review\x20Verifier.\x20Your\x20job\x20is\x20to\x20verify\x20a\x20scenario\x20by\x20executing\x20a\x20UI\x20flow\x20and\x20evaluating\x20whether\x20it\x20adequately\x20completes\x20the\x20scenario.\x0a\x0a##\x20Scenario\x20to\x20Verify\x0a'+_0x1020a2[_0x4dff8c(0x11a)]+_0x45fe33+_0x5cbb7e+_0x5b1ebe+_0x4dff8c(0xce)+_0xff138e+'\x0a\x0a'+_0x960474+_0x5059c0+'\x0a\x0a'+_0x4b30bf+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x35b73e+_0x4dff8c(0xfe)+_0x34036f+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x3c313f+'`\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'+_0x3d20e7+_0x4dff8c(0x135)+_0x34036f+'`:\x20\x22'+_0x3d503b+_0x4dff8c(0xf7)+_0x18be0a[_0x4dff8c(0x129)](buildCliArtifactPath,_0x34036f,_0x18be0a[_0x4dff8c(0xb0)])+'\x22,\x20\x22'+buildCliArtifactPath(_0x34036f,_0x4dff8c(0xf1))+_0x4dff8c(0xf5)+_0x18be0a['GlgiT'](buildCliArtifactPath,_0x34036f,_0x18be0a['XnrLj'])+'\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'+_0x3b483b+'\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20(bug,\x20error,\x20missing\x20feature)\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureCliCommandAvailability(_0x533e79){const _0x5ec125=_0x1906,_0x22aed4=[..._0x533e79['keys']()][_0x5ec125(0xd5)]();let _0x3e8aab=0x0;for(const _0x1844a8 of _0x533e79[_0x5ec125(0xec)]()){_0x3e8aab+=_0x1844a8;}return{'cliCommandCount':_0x3e8aab,'cliCommandsSeen':_0x22aed4,'noCliCommandsCalled':_0x3e8aab===0x0};}export function createVerifyFeatureCliHooks(_0x4e9526){const _0x55684e=_0x1906,_0x44c979={'EuGeZ':function(_0xbf523d,_0x176df3){return _0xbf523d!==_0x176df3;},'mzTTf':'Bash','rxRne':function(_0x36d7dc,_0x3b1836){return _0x36d7dc(_0x3b1836);},'BrLHk':function(_0x2fb28c,_0x51cf20){return _0x2fb28c+_0x51cf20;},'eEPeT':_0x55684e(0xe5),'DvySY':'playwright-cli','vtQTx':function(_0x9933df,_0x1523ae){return _0x9933df(_0x1523ae);},'NdWgF':function(_0x56aafa,_0x18bce2,_0x15b37f,_0x3845d7){return _0x56aafa(_0x18bce2,_0x15b37f,_0x3845d7);},'wccsK':'tool_failure'},_0x178770=new Map(),_0x2f5229=async _0x25f706=>{const _0x359398=_0x55684e;if(_0x44c979[_0x359398(0xaf)](_0x25f706[_0x359398(0xb4)],'PostToolUse'))return{};const _0x1541c4=_0x25f706;if(_0x1541c4[_0x359398(0xd0)]!==_0x44c979['mzTTf'])return{};const _0x512277=_0x1541c4[_0x359398(0x11f)],_0x538d14=_0x44c979['rxRne'](extractBashCommand,_0x512277);if(!_0x538d14)return{};const _0x2dbb31=parsePlaywrightCliCommand(_0x538d14);if(!_0x2dbb31)return{};return _0x178770[_0x359398(0x12f)](_0x2dbb31,_0x44c979[_0x359398(0x11d)](_0x178770['get'](_0x2dbb31)||0x0,0x1)),_0x4e9526['trackPhaseStart'](_0x44c979[_0x359398(0x128)],{'transport':_0x44c979['DvySY'],'toolName':_0x2dbb31}),_0x4e9526[_0x359398(0x113)](_0x359398(0xe5),{'transport':_0x359398(0x132),'toolName':_0x2dbb31,'bashCommandPreview':_0x44c979['vtQTx'](truncatePreview,_0x538d14)}),_0x44c979['EuGeZ'](_0x2dbb31,'snapshot')&&console['log'](_0x44c979[_0x359398(0xe1)](formatPlaywrightCliConsoleLogMessage,_0x512277,_0x538d14,_0x2dbb31)),{};},_0xeb72a1=async _0x2f381d=>{const _0x5670ed=_0x55684e;if(_0x44c979[_0x5670ed(0xaf)](_0x2f381d['hook_event_name'],_0x5670ed(0x125)))return{};const _0x2691ce=_0x2f381d;if(_0x2691ce['tool_name']!==_0x5670ed(0xa7))return{};return await _0x4e9526[_0x5670ed(0xeb)](_0x44c979[_0x5670ed(0xc0)],_0x2691ce[_0x5670ed(0x10e)],{'transport':_0x5670ed(0x132),'toolName':_0x5670ed(0xa7)}),{};};return{'postToolUseHook':_0x2f5229,'postToolUseFailureHook':_0xeb72a1,'commandCounts':_0x178770};}async function runPlaywrightCliLifecycleCommand(_0x30b1ea){const _0x455014=_0x1906,_0x5525b5={'iqcGc':function(_0x134a84,_0x3aa5df){return _0x134a84??_0x3aa5df;},'cFoBI':function(_0x32f36f,_0x3b0cca,_0x39cda5){return _0x32f36f(_0x3b0cca,_0x39cda5);}},{sessionId:_0x15ee24,configPath:_0x1cb610,commandArgs:_0x242f93,env:_0x79b7a,telemetry:_0x282777,phase:_0x159a7,metadata:_0x27a80d,timeoutMs:_0x350b3b}=_0x30b1ea;_0x282777[_0x455014(0xba)](_0x159a7,_0x27a80d);try{const _0x574887=await runPlaywrightCliCommand({'sessionId':_0x15ee24,'configPath':_0x1cb610,'commandArgs':_0x242f93,'cwd':process[_0x455014(0xbb)](),'env':_0x79b7a,'timeoutMs':_0x5525b5[_0x455014(0xae)](_0x350b3b,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x282777[_0x455014(0x113)](_0x159a7,{..._0x27a80d,'subcommand':_0x574887[_0x455014(0xaa)][_0x455014(0x106)],'stdoutPreview':_0x5525b5[_0x455014(0x133)](truncatePreview,_0x574887['stdout'],0x7d0),'stderrPreview':truncatePreview(_0x574887[_0x455014(0x104)],0x7d0)});}catch(_0x32134c){await _0x282777[_0x455014(0xeb)](_0x159a7,_0x32134c,_0x27a80d);throw _0x32134c;}}export async function finalizeVerifyFeatureCliSession(_0x3d40f5){const _0x574673=_0x1906,_0x2e2eb6={'RDSys':'playwright_cli_video_stop','YRJoO':_0x574673(0x11b),'jGFUo':function(_0xa168af,_0x22be95){return _0xa168af(_0x22be95);}},{telemetry:_0x3098e5,sessionId:_0x2a3ef1,configPath:_0x1f9628,cliArtifactDir:_0x28632b,env:_0x21e1b2,transportMetadata:_0x4c006e}=_0x3d40f5,_0xbab236=[{'phase':'playwright_cli_tracing_stop','commandArgs':['tracing-stop']},{'phase':_0x2e2eb6['RDSys'],'commandArgs':['video-stop',_0x574673(0xe3)+buildCliArtifactPath(_0x28632b,'session-recording.webm')]},{'phase':'playwright_cli_close','commandArgs':[_0x2e2eb6['YRJoO']]}];for(const _0x3d73cf of _0xbab236){try{await _0x2e2eb6['jGFUo'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x2a3ef1,'configPath':_0x1f9628,'commandArgs':[..._0x3d73cf[_0x574673(0xdb)]],'env':_0x21e1b2,'telemetry':_0x3098e5,'phase':_0x3d73cf['phase'],'metadata':_0x4c006e});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x2c39fc){const _0x45682c=_0x1906,_0x2f8a1d={'tZDQi':_0x45682c(0xcf),'YwWpn':function(_0x164885,_0x208c69,_0x17b58f){return _0x164885(_0x208c69,_0x17b58f);},'XNYyU':function(_0x138229,_0x534186){return _0x138229(_0x534186);}},_0x3bb9e9=[_0x45682c(0xb6),_0x2f8a1d[_0x45682c(0xe7)]];for(const _0x5152c4 of _0x3bb9e9){const _0x2e0015=_0x2f8a1d[_0x45682c(0xe9)](join,_0x2c39fc,_0x5152c4);try{return{'buffer':await _0x2f8a1d[_0x45682c(0x130)](readFile,_0x2e0015),'source':_0x2e0015};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x1eb370){const _0x47b175=_0x1906,_0xdd8929={'janFE':function(_0x326471,_0x4ff840,_0x1493c1){return _0x326471(_0x4ff840,_0x1493c1);},'DhBPt':function(_0x55f9f5,_0xb6764){return _0x55f9f5(_0xb6764);},'jbeng':function(_0x448827,_0x518712){return _0x448827<_0x518712;},'QMTEM':function(_0x6a91be,_0x15a995){return _0x6a91be+_0x15a995;},'stTPr':function(_0x18f614,_0x3bcd35){return _0x18f614===_0x3bcd35;},'xlARc':function(_0x8c448a,_0x12bfa2,_0x30883c){return _0x8c448a(_0x12bfa2,_0x30883c);}},{cwd:_0x3ca8ef,cliArtifactDir:_0xe808ad,startTime:_0x511164}=_0x1eb370,_0xeeca37=[];await _0xdd8929[_0x47b175(0xdc)](mkdir,_0xe808ad,{'recursive':!![]});const _0x2e3988=await _0xdd8929[_0x47b175(0xdc)](readdir,_0x3ca8ef,{'withFileTypes':!![]});for(const _0x5e6938 of _0x2e3988){if(!_0x5e6938[_0x47b175(0x12a)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x5e6938['name']))continue;const _0x5c1045=join(_0x3ca8ef,_0x5e6938['name']),_0xedbee5=await _0xdd8929['DhBPt'](stat,_0x5c1045);if(_0xdd8929[_0x47b175(0x107)](_0xdd8929['QMTEM'](_0xedbee5[_0x47b175(0xe6)],0x7d0),_0x511164))continue;const _0x42f27b=buildCliArtifactPath(_0xe808ad,_0x5e6938[_0x47b175(0x12d)]);if(_0xdd8929['stTPr'](_0x5c1045,_0x42f27b))continue;await _0xdd8929['xlARc'](rename,_0x5c1045,_0x42f27b),_0xeeca37[_0x47b175(0xf8)](_0x5e6938['name']);}return _0xeeca37['sort']();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",
@@ -1 +0,0 @@
1
- function _0x4b5b(_0x22bdb8,_0x3b3068){_0x22bdb8=_0x22bdb8-0x84;const _0x281540=_0x2815();let _0x4b5be7=_0x281540[_0x22bdb8];return _0x4b5be7;}(function(_0x5ba883,_0x27cf95){const _0xec844d=_0x4b5b,_0x1d78b3=_0x5ba883();while(!![]){try{const _0x33a85f=-parseInt(_0xec844d(0xa7))/0x1*(-parseInt(_0xec844d(0xc0))/0x2)+-parseInt(_0xec844d(0xaf))/0x3*(-parseInt(_0xec844d(0x9d))/0x4)+parseInt(_0xec844d(0xb0))/0x5*(parseInt(_0xec844d(0xb4))/0x6)+parseInt(_0xec844d(0xa0))/0x7*(parseInt(_0xec844d(0xbc))/0x8)+-parseInt(_0xec844d(0xab))/0x9*(parseInt(_0xec844d(0x9f))/0xa)+-parseInt(_0xec844d(0xce))/0xb*(-parseInt(_0xec844d(0x8c))/0xc)+-parseInt(_0xec844d(0xad))/0xd;if(_0x33a85f===_0x27cf95)break;else _0x1d78b3['push'](_0x1d78b3['shift']());}catch(_0x20ae86){_0x1d78b3['push'](_0x1d78b3['shift']());}}}(_0x2815,0xf3499));export function buildTraceViewerUrl(_0x2f21b2){const _0x4d3679=_0x4b5b,_0x314116=encodeURIComponent(_0x2f21b2);return _0x4d3679(0xd0)+_0x314116;}function getStatusEmoji(_0x4e5142){const _0xaebb95=_0x4b5b,_0x177166={'PwCZu':'completed','DiOqc':_0xaebb95(0x8b),'uigFA':_0xaebb95(0xbf),'SOkhu':'closed'};switch(_0x4e5142){case _0xaebb95(0x8e):case _0x177166['PwCZu']:return'✅';case'pending':case _0x177166[_0xaebb95(0xa5)]:return'🔄';case _0x177166[_0xaebb95(0xd5)]:return'🟠';case'blocked':return'🛑';case _0x177166[_0xaebb95(0xc6)]:return'⛔';default:return'❓';}}function formatDuration(_0x35c40f){const _0x2ede95=_0x4b5b,_0xf7227e={'AzxgZ':function(_0x266f76,_0x5214f1){return _0x266f76<_0x5214f1;},'FYixB':function(_0xc8ba0f,_0x1c16aa){return _0xc8ba0f<_0x1c16aa;},'WwxWT':function(_0x53259c,_0x14d592){return _0x53259c%_0x14d592;}};if(_0x35c40f===null||_0x35c40f===undefined)return'N/A';if(_0xf7227e['AzxgZ'](_0x35c40f,0x3e8))return _0x35c40f+'ms';const _0x5db213=Math['floor'](_0x35c40f/0x3e8);if(_0xf7227e[_0x2ede95(0xa6)](_0x5db213,0x3c))return _0x5db213+'s';const _0x3867b4=Math['floor'](_0x5db213/0x3c),_0x228ac2=_0xf7227e[_0x2ede95(0xb2)](_0x5db213,0x3c);return _0x3867b4+'m\x20'+_0x228ac2+'s';}function formatDate(_0x4bce5f){const _0x41d0f2=_0x4b5b,_0x17c70a={'QjoFs':_0x41d0f2(0xba),'UWSWM':_0x41d0f2(0x97)};if(!_0x4bce5f)return'N/A';return new Date(_0x4bce5f)['toLocaleDateString']('en-US',{'year':_0x17c70a['QjoFs'],'month':_0x17c70a[_0x41d0f2(0x8f)],'day':_0x41d0f2(0xba)});}function _0x2815(){const _0x2b3902=['push','69411823WizuzR','###\x20','990081qpmWLB','5uxdFWi','filter','WwxWT','hgXae','9616542oSXfuL','##\x20Scenario\x20Progress\x20(','jzwuN','wmThX','gitRepoUrl','Arlul','numeric','WDsUW','40WfDbWh','blTDM','traceUrl','incomplete','22zmelVj','No\x20Session','status','browserSessionId','createdAt','description','SOkhu','agentResponse','ZYbFf','length','closedAt','blocked','\x20|\x20','#\x20Feature\x20Review\x20Report:\x20','6039VYzHdj','blockedReason','https://trace.playwright.dev/?trace=','quFtX','SLIrM',':\x20In\x20Progress','VdVDS','uigFA',':\x20Ready','XIWOA','-\x20**Session:**\x20','Lfsnc','##\x20All\x20Verification\x20Sessions','substring','currentSession','in_progress','35652rtUuME','checklistItemId','verified','UWSWM','|---------|----------|--------|----------|------|','##\x20Description','-\x20**','iteration','-\x20**Reason:**\x20','##\x20Blocking\x20Issues','AUpDK','short','SnLHt','N/A','blockedAt','-\x20**Blocked:**\x20','completedAt','16sBqYpP','**Branch:**\x20','816670WQzUKk','1816339XICTmp','verifiedAt','gitBranch','...','Session\x20','DiOqc','FYixB','51474WARyNH','-\x20**Summary:**\x20','canceledReason','stltO','9ZEkCvb'];_0x2815=function(){return _0x2b3902;};return _0x2815();}export function generateFeatureReport(_0x5cd0f9){const _0x41b7cd=_0x4b5b,_0x26f01e={'Lfsnc':'in_progress','ZYbFf':'completed','stltO':function(_0x9bf292,_0x49b458){return _0x9bf292(_0x49b458);},'Arlul':'closed','NdGES':function(_0x89fa00,_0x2702bb){return _0x89fa00===_0x2702bb;},'pcSdE':_0x41b7cd(0xcb),'WDsUW':_0x41b7cd(0xbf),'SnLHt':function(_0x15664d,_0x3b3372){return _0x15664d(_0x3b3372);},'wmThX':function(_0xa12799,_0x5f2d27){return _0xa12799>_0x5f2d27;},'BXFxM':'No\x20reason\x20provided','oguDi':_0x41b7cd(0x95),'AUpDK':'None','jzwuN':function(_0x89d943,_0x1be52c){return _0x89d943>_0x1be52c;},'quFtX':_0x41b7cd(0x88),'blTDM':'|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','XIWOA':_0x41b7cd(0x90),'SLIrM':function(_0x55284d,_0x3cc9c6){return _0x55284d+_0x3cc9c6;},'IFWNn':_0x41b7cd(0xa3),'oSxrk':function(_0x2b5148,_0x4bd704){return _0x2b5148===_0x4bd704;},'iPCZi':'failed','hgXae':function(_0x49744a,_0x573b58){return _0x49744a(_0x573b58);},'VdVDS':function(_0x32e27e,_0x436e8e){return _0x32e27e(_0x436e8e);}},{feature:_0x134e4a,stats:_0x31dd03,checklistItems:_0x4e23dd,sessions:_0x1cc36b}=_0x5cd0f9,_0x18b714=[];_0x18b714[_0x41b7cd(0xac)](_0x41b7cd(0xcd)+_0x134e4a['name']),_0x18b714[_0x41b7cd(0xac)]('');let _0x4ab598,_0x31b07a;if(_0x134e4a[_0x41b7cd(0x9c)])_0x4ab598='Completed',_0x31b07a='✅';else{if(_0x134e4a[_0x41b7cd(0x8a)]){const _0x16dc4d=_0x134e4a[_0x41b7cd(0x8a)][_0x41b7cd(0xc2)];switch(_0x16dc4d){case'ready':_0x4ab598=_0x41b7cd(0xa4)+_0x134e4a['currentSession'][_0x41b7cd(0x93)]+_0x41b7cd(0x84),_0x31b07a='▶️';break;case _0x26f01e[_0x41b7cd(0x87)]:_0x4ab598=_0x41b7cd(0xa4)+_0x134e4a[_0x41b7cd(0x8a)][_0x41b7cd(0x93)]+_0x41b7cd(0xd3),_0x31b07a='🔄';break;case _0x26f01e['ZYbFf']:_0x4ab598=_0x41b7cd(0xa4)+_0x134e4a['currentSession'][_0x41b7cd(0x93)]+':\x20Awaiting\x20Review',_0x31b07a='📊';break;default:_0x4ab598='Unknown',_0x31b07a='❓';}}else _0x4ab598=_0x41b7cd(0xc1),_0x31b07a='⬜';}_0x18b714[_0x41b7cd(0xac)]('**Status:**\x20'+_0x31b07a+'\x20'+_0x4ab598),_0x18b714['push']('**Created:**\x20'+_0x26f01e['stltO'](formatDate,_0x134e4a['createdAt']));_0x134e4a['completedAt']&&_0x18b714[_0x41b7cd(0xac)]('**Completed:**\x20'+formatDate(_0x134e4a[_0x41b7cd(0x9c)]));_0x134e4a[_0x41b7cd(0xb8)]&&_0x18b714[_0x41b7cd(0xac)]('**Repository:**\x20'+_0x134e4a['gitRepoUrl']);_0x134e4a['gitBranch']&&_0x18b714[_0x41b7cd(0xac)](_0x41b7cd(0x9e)+_0x134e4a[_0x41b7cd(0xa2)]);_0x18b714['push']('');_0x134e4a[_0x41b7cd(0xc5)]&&(_0x18b714[_0x41b7cd(0xac)](_0x41b7cd(0x91)),_0x18b714[_0x41b7cd(0xac)](''),_0x18b714['push'](_0x134e4a[_0x41b7cd(0xc5)]),_0x18b714['push'](''));const _0x581ca9=_0x4e23dd['filter'](_0x5d30a0=>_0x5d30a0['status']!=='closed'),_0x327a17=_0x4e23dd['filter'](_0x133bab=>_0x133bab['status']===_0x41b7cd(0x8e))[_0x41b7cd(0xc9)];_0x18b714['push'](_0x41b7cd(0xb5)+_0x327a17+'/'+_0x581ca9['length']+'\x20verified)'),_0x18b714['push']('');for(const _0x4a103e of _0x4e23dd){const _0x333cb8=_0x26f01e['stltO'](getStatusEmoji,_0x4a103e[_0x41b7cd(0xc2)]),_0x3d15da=_0x4a103e[_0x41b7cd(0xc2)]===_0x26f01e['Arlul'],_0x1621d9=_0x3d15da?'~~':'',_0xb21d23=_0x3d15da?'~~':'';_0x18b714[_0x41b7cd(0xac)](_0x41b7cd(0xae)+_0x333cb8+'\x20'+_0x1621d9+_0x4a103e[_0x41b7cd(0xc5)]+_0xb21d23),_0x18b714[_0x41b7cd(0xac)]('');_0x26f01e['NdGES'](_0x4a103e['status'],'verified')&&_0x4a103e[_0x41b7cd(0xa1)]&&_0x18b714['push']('-\x20**Verified:**\x20'+_0x26f01e['stltO'](formatDate,_0x4a103e[_0x41b7cd(0xa1)]));_0x4a103e['status']===_0x26f01e['pcSdE']&&_0x4a103e[_0x41b7cd(0x9a)]&&(_0x18b714['push'](_0x41b7cd(0x9b)+formatDate(_0x4a103e['blockedAt'])),_0x4a103e[_0x41b7cd(0xcf)]&&_0x18b714['push'](_0x41b7cd(0x94)+_0x4a103e['blockedReason']));_0x26f01e['NdGES'](_0x4a103e['status'],_0x26f01e[_0x41b7cd(0xb9)])&&_0x4a103e[_0x41b7cd(0xca)]&&(_0x18b714['push']('-\x20**Closed:**\x20'+_0x26f01e[_0x41b7cd(0xaa)](formatDate,_0x4a103e[_0x41b7cd(0xca)])),_0x4a103e['canceledReason']&&_0x18b714['push']('-\x20**Reason:**\x20'+_0x4a103e[_0x41b7cd(0xa9)]));_0x26f01e['NdGES'](_0x4a103e[_0x41b7cd(0xc2)],_0x26f01e[_0x41b7cd(0xbb)])&&_0x18b714['push']('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x4a103e['browserSessionId']){_0x18b714['push'](_0x41b7cd(0x86)+_0x4a103e[_0x41b7cd(0xc3)]);const _0x522197=_0x1cc36b['find'](_0x16471d=>_0x16471d['id']===_0x4a103e['browserSessionId']);_0x522197&&(_0x522197['agentResponse']&&_0x18b714['push'](_0x41b7cd(0xa8)+_0x522197[_0x41b7cd(0xc7)]),_0x522197['traceUrl']&&_0x18b714[_0x41b7cd(0xac)]('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x26f01e[_0x41b7cd(0x98)](buildTraceViewerUrl,_0x522197[_0x41b7cd(0xbe)])+')'));}_0x18b714['push']('');}const _0x3237be=_0x4e23dd[_0x41b7cd(0xb1)](_0x46f4c4=>_0x46f4c4[_0x41b7cd(0xc2)]===_0x41b7cd(0xcb));if(_0x26f01e[_0x41b7cd(0xb7)](_0x3237be[_0x41b7cd(0xc9)],0x0)){_0x18b714['push'](_0x41b7cd(0x95)),_0x18b714['push']('');for(const _0xf15fda of _0x3237be){_0x18b714[_0x41b7cd(0xac)](_0x41b7cd(0x92)+_0xf15fda['description']+'**:\x20'+(_0xf15fda['blockedReason']||_0x26f01e['BXFxM']));}_0x18b714[_0x41b7cd(0xac)]('');}else _0x18b714['push'](_0x26f01e['oguDi']),_0x18b714['push'](''),_0x18b714[_0x41b7cd(0xac)](_0x26f01e[_0x41b7cd(0x96)]),_0x18b714['push']('');if(_0x26f01e[_0x41b7cd(0xb6)](_0x1cc36b[_0x41b7cd(0xc9)],0x0)){_0x18b714['push'](_0x26f01e[_0x41b7cd(0xd1)]),_0x18b714['push'](''),_0x18b714[_0x41b7cd(0xac)](_0x26f01e[_0x41b7cd(0xbd)]),_0x18b714['push'](_0x26f01e[_0x41b7cd(0x85)]);for(const _0x35a9ea of _0x1cc36b){const _0x194eef=_0x35a9ea[_0x41b7cd(0x8d)]?_0x4e23dd['find'](_0x32bc99=>_0x32bc99['id']===_0x35a9ea['checklistItemId']):null,_0x46fa78=_0x194eef?_0x26f01e[_0x41b7cd(0xd2)](_0x194eef[_0x41b7cd(0xc5)][_0x41b7cd(0x89)](0x0,0x1e),_0x194eef[_0x41b7cd(0xc5)]['length']>0x1e?_0x26f01e['IFWNn']:''):_0x41b7cd(0x99),_0x56dd7d=_0x26f01e['oSxrk'](_0x35a9ea['status'],_0x26f01e[_0x41b7cd(0xc8)])?'✅':_0x26f01e['NdGES'](_0x35a9ea[_0x41b7cd(0xc2)],_0x26f01e['iPCZi'])?'❌':'🔄';_0x18b714['push']('|\x20'+_0x35a9ea['id']+_0x41b7cd(0xcc)+_0x46fa78+_0x41b7cd(0xcc)+_0x56dd7d+'\x20'+_0x35a9ea[_0x41b7cd(0xc2)]+'\x20|\x20'+_0x26f01e[_0x41b7cd(0xb3)](formatDuration,_0x35a9ea['durationMs'])+'\x20|\x20'+_0x26f01e[_0x41b7cd(0xd4)](formatDate,_0x35a9ea[_0x41b7cd(0xc4)])+'\x20|');}_0x18b714[_0x41b7cd(0xac)]('');}return _0x18b714['join']('\x0a');}
@@ -1 +0,0 @@
1
- (function(_0x160171,_0x55edd2){const _0x144a67=_0x22d4,_0xc5893b=_0x160171();while(!![]){try{const _0x14a3af=parseInt(_0x144a67(0x1fc))/0x1*(-parseInt(_0x144a67(0x1ff))/0x2)+-parseInt(_0x144a67(0x1f5))/0x3+parseInt(_0x144a67(0x1f4))/0x4+parseInt(_0x144a67(0x202))/0x5+-parseInt(_0x144a67(0x204))/0x6+-parseInt(_0x144a67(0x200))/0x7*(-parseInt(_0x144a67(0x1fb))/0x8)+-parseInt(_0x144a67(0x1fd))/0x9*(-parseInt(_0x144a67(0x1f8))/0xa);if(_0x14a3af===_0x55edd2)break;else _0xc5893b['push'](_0xc5893b['shift']());}catch(_0x15079b){_0xc5893b['push'](_0xc5893b['shift']());}}}(_0x2ac7,0x2fa83));import{execSync}from'child_process';function _0x22d4(_0x297070,_0x3d4050){_0x297070=_0x297070-0x1f4;const _0x2ac7f1=_0x2ac7();let _0x22d4f7=_0x2ac7f1[_0x297070];return _0x22d4f7;}export function getGitBranch(){const _0x5db2ec=_0x22d4,_0x413ab3={'wCqAz':function(_0x3c0bbd,_0x155098,_0x425d45){return _0x3c0bbd(_0x155098,_0x425d45);},'lnUQp':'utf-8','bhNiF':_0x5db2ec(0x1f7)};try{return _0x413ab3[_0x5db2ec(0x201)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x413ab3[_0x5db2ec(0x1fe)],'stdio':[_0x5db2ec(0x1f7),_0x413ab3[_0x5db2ec(0x203)],_0x413ab3['bhNiF']]})['trim']();}catch{return undefined;}}function _0x2ac7(){const _0x2e7667=['lnUQp','59982HPnUJl','655585XdWmrp','wCqAz','968620YcJocC','bhNiF','362130MJcTTQ','STVAC','65340vyVfvZ','768507GZEKFL','trim','pipe','206890oLKSJD','utf-8','replace','8bjACmJ','11loRZZd','234lufhxN'];_0x2ac7=function(){return _0x2e7667;};return _0x2ac7();}export function getGitRepoUrl(){const _0x38909f=_0x22d4,_0x3a008b={'STVAC':function(_0x6c4e80,_0x5e1074,_0x5f422f){return _0x6c4e80(_0x5e1074,_0x5f422f);},'PLkxZ':_0x38909f(0x1f9),'EwGgK':_0x38909f(0x1f7)};try{const _0x815cf9=_0x3a008b[_0x38909f(0x205)](execSync,'git\x20remote\x20get-url\x20origin',{'encoding':_0x3a008b['PLkxZ'],'stdio':['pipe',_0x38909f(0x1f7),_0x3a008b['EwGgK']]})[_0x38909f(0x1f6)]();return _0x815cf9['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x38909f(0x1fa)](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x2db7e8={'KOlnH':function(_0x2de238){return _0x2de238();}};return{'branch':getGitBranch(),'repoUrl':_0x2db7e8['KOlnH'](getGitRepoUrl)};}
@@ -1 +0,0 @@
1
- (function(_0x54657e,_0x27838f){const _0x464cd4=_0x15fa,_0xaa614d=_0x54657e();while(!![]){try{const _0x43d653=-parseInt(_0x464cd4(0x132))/0x1*(parseInt(_0x464cd4(0x14d))/0x2)+-parseInt(_0x464cd4(0x139))/0x3+-parseInt(_0x464cd4(0x143))/0x4*(parseInt(_0x464cd4(0x144))/0x5)+parseInt(_0x464cd4(0x14f))/0x6*(parseInt(_0x464cd4(0x14c))/0x7)+parseInt(_0x464cd4(0x13a))/0x8*(-parseInt(_0x464cd4(0x146))/0x9)+-parseInt(_0x464cd4(0x131))/0xa+parseInt(_0x464cd4(0x145))/0xb*(parseInt(_0x464cd4(0x136))/0xc);if(_0x43d653===_0x27838f)break;else _0xaa614d['push'](_0xaa614d['shift']());}catch(_0x41728f){_0xaa614d['push'](_0xaa614d['shift']());}}}(_0x395d,0x8a906));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x395d(){const _0x567f6f=['10801380ejClRe','198178kjJEru','length','toFixed','join','26962296dZKXIo','sort','severity','2459184UuVZqv','1422760ytiQQf','map','**URL:**\x20','filename','ATTqE','description','replace',']\x20Issue','charAt','3908492dDSrdj','5gXxUfr','22gUhNhV','45rHdOMI','---','slice','toISOString','**Status:**\x20','push','19117LrXmSU','2NeMyXu','**Session:**\x20`','84ZoBEtT','ISSUES\x20FOUND','split','MAJOR','PASSED'];_0x395d=function(){return _0x567f6f;};return _0x395d();}function _0x15fa(_0xc8a86a,_0x147086){_0xc8a86a=_0xc8a86a-0x130;const _0x395d6e=_0x395d();let _0x15fa5d=_0x395d6e[_0xc8a86a];return _0x15fa5d;}export async function collectScreenshots(_0x5c1a9f){const _0x5c7c1a=_0x15fa,_0x26472d={'rMchd':function(_0x28ef4b,_0x25c290){return _0x28ef4b(_0x25c290);}},_0x500d5d=[],_0x55783a=[];if(!existsSync(_0x5c1a9f))return{'screenshots':_0x500d5d,'paths':_0x55783a};const _0x2f5171=await _0x26472d['rMchd'](readdir,_0x5c1a9f),_0x4bbcc6=_0x2f5171['filter'](_0x1c2dfd=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x1c2dfd))[_0x5c7c1a(0x137)]();for(const _0x23a440 of _0x4bbcc6){const _0x35deee=join(_0x5c1a9f,_0x23a440);_0x500d5d['push']({'filename':_0x23a440,'path':_0x35deee,'relativePath':'./'+_0x23a440}),_0x55783a['push'](_0x35deee);}return{'screenshots':_0x500d5d,'paths':_0x55783a};}function getSeverityEmoji(_0x12f966){const _0x95665c=_0x15fa;switch(_0x12f966){case'BLOCKER':return'🔴';case _0x95665c(0x152):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x3292bd){const _0xfe01c4=_0x15fa,_0x4518de=_0x3292bd['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x2df0d3=_0x4518de[_0xfe01c4(0x140)](/^\d+-/,'');return _0x2df0d3[_0xfe01c4(0x151)]('-')[_0xfe01c4(0x13b)](_0x46cfd4=>_0x46cfd4[_0xfe01c4(0x142)](0x0)['toUpperCase']()+_0x46cfd4[_0xfe01c4(0x148)](0x1))[_0xfe01c4(0x135)]('\x20');}export function generateMarkdownReport(_0x3d359c){const _0x5b83e9=_0x15fa,_0x2d225b={'ATTqE':function(_0x20770f,_0x4b2602){return _0x20770f/_0x4b2602;},'EMIux':function(_0x3f139f,_0x36f331){return _0x3f139f>_0x36f331;},'VojsO':function(_0x4b5862,_0x258e44){return _0x4b5862(_0x258e44);}},{sessionId:_0x865971,task:_0x5a3999,url:_0xc02276,success:_0x381b74,summary:_0x368afa,issues:_0x4b62b0,screenshots:_0x4d1e3b,durationMs:_0x26cccd,traceViewerUrl:_0x9d977b}=_0x3d359c,_0x4c34d1=new Date()[_0x5b83e9(0x149)](),_0x1c9ce4=_0x2d225b[_0x5b83e9(0x13e)](_0x26cccd,0x3e8)[_0x5b83e9(0x134)](0x1),_0x1bd6f2=[];_0x1bd6f2[_0x5b83e9(0x14b)]('#\x20Verification\x20Report'),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)](_0x5b83e9(0x14e)+_0x865971+'`'),_0x1bd6f2[_0x5b83e9(0x14b)]('**Generated:**\x20'+_0x4c34d1),_0x1bd6f2['push']('**Duration:**\x20'+_0x1c9ce4+'s'),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2['push']('##\x20Task'),_0x1bd6f2['push'](''),_0x1bd6f2['push'](_0x5b83e9(0x13c)+_0xc02276),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2['push']('>\x20'+_0x5a3999),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)]('##\x20Result'),_0x1bd6f2['push']('');const _0x245a10=_0x381b74?'✅':'❌';_0x1bd6f2['push'](_0x5b83e9(0x14a)+_0x245a10+'\x20'+(_0x381b74?_0x5b83e9(0x130):_0x5b83e9(0x150))),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)]('###\x20Summary'),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)](_0x368afa),_0x1bd6f2['push']('');if(_0x4b62b0&&_0x2d225b['EMIux'](_0x4b62b0[_0x5b83e9(0x133)],0x0)){_0x1bd6f2['push']('###\x20Issues\x20Found\x20('+_0x4b62b0[_0x5b83e9(0x133)]+')'),_0x1bd6f2['push']('');for(const _0xedb560 of _0x4b62b0){const _0x393293=getSeverityEmoji(_0xedb560['severity']);_0x1bd6f2[_0x5b83e9(0x14b)]('####\x20'+_0x393293+'\x20['+_0xedb560[_0x5b83e9(0x138)]+_0x5b83e9(0x141)),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2['push'](_0xedb560[_0x5b83e9(0x13f)]),_0x1bd6f2[_0x5b83e9(0x14b)]('');if(_0xedb560['screenshot']){const _0x4fd941=_0xedb560['screenshot'],_0x34c066=_0x4d1e3b['find'](_0x51b2c4=>_0x51b2c4[_0x5b83e9(0x13d)]===_0x4fd941||_0x51b2c4['filename']['includes'](_0x4fd941));_0x34c066&&(_0x1bd6f2[_0x5b83e9(0x14b)]('**Screenshot:**'),_0x1bd6f2['push'](''),_0x1bd6f2['push']('!['+_0x4fd941+']('+_0x34c066['relativePath']+')'),_0x1bd6f2['push'](''));}}}if(_0x2d225b['EMIux'](_0x4d1e3b[_0x5b83e9(0x133)],0x0)){_0x1bd6f2[_0x5b83e9(0x14b)]('##\x20Screenshots\x20('+_0x4d1e3b['length']+')'),_0x1bd6f2['push']('');for(const _0x88c419 of _0x4d1e3b){const _0x48d74c=_0x2d225b['VojsO'](formatScreenshotCaption,_0x88c419[_0x5b83e9(0x13d)]);_0x1bd6f2[_0x5b83e9(0x14b)]('###\x20'+_0x48d74c),_0x1bd6f2['push'](''),_0x1bd6f2['push']('!['+_0x88c419['filename']+']('+_0x88c419['relativePath']+')'),_0x1bd6f2['push']('');}}return _0x9d977b&&(_0x1bd6f2[_0x5b83e9(0x14b)](_0x5b83e9(0x147)),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2[_0x5b83e9(0x14b)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x9d977b+')'),_0x1bd6f2[_0x5b83e9(0x14b)]('')),_0x1bd6f2[_0x5b83e9(0x135)]('\x0a');}
@@ -1 +0,0 @@
1
- (function(_0xe542f0,_0x5da022){const _0x23961c=_0xc9a1,_0x5970cc=_0xe542f0();while(!![]){try{const _0x4b32f8=-parseInt(_0x23961c(0xde))/0x1+parseInt(_0x23961c(0x147))/0x2+-parseInt(_0x23961c(0x1b6))/0x3+parseInt(_0x23961c(0xd2))/0x4*(parseInt(_0x23961c(0x110))/0x5)+parseInt(_0x23961c(0x134))/0x6*(parseInt(_0x23961c(0x166))/0x7)+parseInt(_0x23961c(0x129))/0x8+-parseInt(_0x23961c(0x12a))/0x9;if(_0x4b32f8===_0x5da022)break;else _0x5970cc['push'](_0x5970cc['shift']());}catch(_0x52a9ea){_0x5970cc['push'](_0x5970cc['shift']());}}}(_0x2d67,0xafc61));const _0x17ab5c=(function(){const _0x2233a1=_0xc9a1,_0xd7927a={'ZDtRM':function(_0x63dd10,_0x3ef51a){return _0x63dd10!==_0x3ef51a;},'WDYuO':_0x2233a1(0x114),'qkNxS':function(_0x2ed0f1,_0x58b84f){return _0x2ed0f1!==_0x58b84f;},'xRwJZ':_0x2233a1(0xd7),'RIKKa':'bBNcZ','LJZeP':function(_0x1b1c18,_0x4a0e88,_0x50d713,_0x1149f3,_0x2816f9){return _0x1b1c18(_0x4a0e88,_0x50d713,_0x1149f3,_0x2816f9);},'VwWqH':'ranger-browser-sessions','CCBCB':_0x2233a1(0x1c0),'qsuCW':_0x2233a1(0x1be),'NCHnz':function(_0x43741b,_0x5ef33d){return _0x43741b===_0x5ef33d;},'FVsBF':_0x2233a1(0x16e)};let _0x4abd26=!![];return function(_0x2f52fb,_0x3e9d35){const _0x28a905=_0x2233a1,_0x2d20d5={'jULOe':function(_0x331d38,_0x1913d2,_0x122f32,_0x1e803c,_0xbce81f){return _0xd7927a['LJZeP'](_0x331d38,_0x1913d2,_0x122f32,_0x1e803c,_0xbce81f);},'yNsWR':_0xd7927a['VwWqH'],'NTYhc':_0xd7927a[_0x28a905(0x168)],'WTJkj':function(_0x478cef,_0x52cfe9){return _0x478cef===_0x52cfe9;},'KGaGl':_0xd7927a[_0x28a905(0x111)],'vSlGM':function(_0x4d0641,_0x4c692e){const _0x59bbfe=_0x28a905;return _0xd7927a[_0x59bbfe(0x16d)](_0x4d0641,_0x4c692e);},'vBHSA':_0x28a905(0x161)};if(_0xd7927a[_0x28a905(0x1bf)](_0xd7927a[_0x28a905(0x195)],_0xd7927a['FVsBF']))return _0x2d20d5[_0x28a905(0x17c)](_0x25631b,_0x1e96f5(),_0x2d20d5['yNsWR'],_0x20cf47,_0x2d20d5[_0x28a905(0x144)]);else{const _0x342c2c=_0x4abd26?function(){const _0x33a8a2=_0x28a905;if(_0xd7927a[_0x33a8a2(0xf8)](_0xd7927a[_0x33a8a2(0xf9)],_0xd7927a[_0x33a8a2(0xf9)]))return![];else{if(_0x3e9d35){if(_0xd7927a[_0x33a8a2(0x1bf)](_0xd7927a[_0x33a8a2(0x148)],_0xd7927a[_0x33a8a2(0x185)])){const _0x411868=_0x3e9d35[_0x33a8a2(0x183)](_0x2f52fb,arguments);return _0x3e9d35=null,_0x411868;}else for(const _0x395907 of _0xe883a9['message'][_0x33a8a2(0xd0)]){_0x2d20d5[_0x33a8a2(0x1bc)](_0x395907['type'],_0x2d20d5['KGaGl'])&&_0x2d20d5[_0x33a8a2(0x154)](_0x395907[_0x33a8a2(0xd5)],_0x2d20d5[_0x33a8a2(0xd8)])&&_0x395907[_0x33a8a2(0x12c)]&&(_0x4cee9c=_0x395907[_0x33a8a2(0x12c)]);}}}}:function(){};return _0x4abd26=![],_0x342c2c;}};}()),_0x4d20b2=_0x17ab5c(this,function(){const _0x1e991e=_0xc9a1,_0x22e31d={'FQEPn':_0x1e991e(0x1b9)};return _0x4d20b2[_0x1e991e(0x146)]()[_0x1e991e(0x1bd)](_0x22e31d[_0x1e991e(0x13b)])['toString']()['constructor'](_0x4d20b2)[_0x1e991e(0x1bd)](_0x22e31d[_0x1e991e(0x13b)]);});_0x4d20b2();import{query}from'@anthropic-ai/claude-agent-sdk';import{join,dirname}from'path';import{readFile,readdir,appendFile,mkdir,rm}from'fs/promises';import{existsSync}from'fs';import{execSync}from'child_process';import{tmpdir}from'os';import{loadSettings,resolveEnvVars,buildPlaywrightConfig,cleanupTempFiles,getEnvDir}from'./utils/settings.js';import{createBrowserSession,updateBrowserSession,getUploadUrls,uploadTrace,uploadConversation,uploadScreenshot,buildTraceViewerUrl,getProxySessionToken,computeChecksum}from'./utils/browserSessionsApi.js';import{getAiProxyUrl}from'./utils/environment.js';function _0x2d67(){const _0x28bcc8=['ANnVBL9Zy2HLBwe','BwvZC2fNzq','yxbWBhK','BM93','uKLls2e','AKfUzNa','zMfPBgvK','EMLW','wKvsDxy','z1DNDfe','sK9rthe','ChrNtvi','vKPAB3K','zxjWq2e','BffJEKe','CgLWzq','BxrzEhm','C3bSAxq','zg93BMXVywrvCMW','yMTJCfq','rLzZqKy','q21pvNC','ze5Mq1u','yxjYyxK','u21zqNC','CeTOteW','Cg5N','rMfPBgvKihrVigzLDgnOihbYB3H5ihnLC3nPB24GDg9Rzw4Uia','AMrnzue','cKfvveHftLrjq0fusu9oic0GuKvrvuLsruqGqKvgt1jfifnuqvjusu5hoGPcruzpuKuGzg9PBMCGyw55DgHPBMCGzwXZzsWGEw91ie1vu1qGyxv0AgvUDgLJyxrLihvZAw5NihrOzxnLihn0zxbZoGO','vuPrt1q','BLvQBee','yK9Mt3G','Aevny1i','yMfZzvvYBa','Den5t0O','sKLZt1G','CujAwKS','zvrduMO','svHnrKi','C3vIDhLWzq','we5TALu','Eun3vwe','r3HIsfC','ANnVBMW','yxPrtNy','Bvbwtvu','yM9VBgvHBG','tufkt1i','zxjYB3i','C2vZC2LVBKLK','C3rYAw5N','sMjUCKq','otKXndKXy1Pbtfzi','CMnpELi','C3rYAw5NAwz5','kcGOlISPkYKRksSK','EwfRrNq','EwLovuS','v1rkA2O','C2vHCMnO','Dg9VBf91C2u','CwToEfm','y29UDMvYC2f0Aw9UlMPZB25S','yLLoyKK','ufbxzNq','sefRENy','yNbTvKC','y29TCgXLDgvK','y29UDgvUDa','yu1psLG','ndeZotu0nfrqwxD2zq','qvvgDwS','zhvYyxrPB25nCW','BMfTzq','zgjKEvK','tLPtDfG','DKjiu0e','uK1wvfG','zgvZy3jPChrPB24','rKfkBNK','rKfHwLi','y3DK','nJGYmdGZwxzuEhf6','wxrtzw0','tM8GCMvZDwX0ihjLy2vPDMvKigzYB20GywDLBNq','cGPbzNrLCIbJB21WBgv0Aw5Nigf1DgHLBNrPy2f0Aw9UlcbWCM9JzwvKihDPDgGGDgHLihzLCMLMAwnHDgLVBIb0yxnRigjLBg93lGPjzIbHDxrOzw50AwnHDgLVBIbMywLSCYWGCMvWB3j0igL0igLTBwvKAwf0zwX5igfZigeGyMXVy2TLCI4kcG','A21csLy','qKXpq0TfuG','C3rYDwn0DxjLzf9VDxrWDxq','r2HHDKO','sKv3s0u','qNzhs1G','BwfW','qwDLBNqGzxHLy3v0Aw9UihrPBwvKig91DcbHzNrLCIa1osbTAw51DgvZ','iI4GuNvUoIbYyw5NzxiGChjVzMLSzsbJB25MAwCGC2v0ia','DKvVr2O','qMfZAa','qxvQtuW','qhjHBMDLCI10zxn0Aw5Nl3bSyxL3CMLNAhq','BgvUz3rO','DhjHy2vZ','DxrMltG','tuHsDLi','sMnQsKy','v3vXvwK','rfnbu0y','BMjuvhm','DhjHy2vwAwv3zxjvCMW','wKr0uK0','v0rzDu8','vfzvvhK','tvrstw8','Dgv4Da','Buv0Cvy','C3vJy2vZCW','uKLcEhG','uhjVzMLSzsaI','CM0GiG','tM8Gywn0AxzLihbYB2zPBguUifj1BJOGCMfUz2vYihbYB2zPBguGDxnLidXWCM9MAwXLlw5HBwu+','DxbSB2fKvxjS','A3D5Dxe','u0vmDxO','BwnWx19Yyw5NzxiTyNjVD3nLCL9FkG','cLvstdOG','C2v2zxjPDhK','y2XHDwrLlw9WDxmTnc01','sKPdDLu','tMDSCM4','ALbfsMu','B2jQzwn0','quvQq1G','vvruAuS','nwrQAg5NEq','Cxn1q1C','vLDIAxa','ug5vAMu','yvjtyMC','sfbVC3y','qMvPCNO','CLjzs1m','AKzRzfi','y29UzMLNugf0Aa','wfHIwM4','BfHkAgi','s3vPrgW','BMveBvK','y2qGiG','vur4v3K','C2vZC2LVBKrPCG','D3j2z2m','yxnZAxn0yw50','sMHlsu4','zxH1D04','zw52','ufD0B3O','yKLmBK8','CgfZvfi','nZm1odaWofjvywj3DG','mJa0mdm3mdjKBxPhtKO','tujizvK','Aw5WDxq','iIbUB3qGzM91BMqUifj1BJOGCMfUz2vYihbYB2zPBguGywrKia','vwvTqwS','uKvOBuy','rgroC2K','vMvYAwzPy2f0Aw9UigzHAwXLzdOG','v3zntNC','swjgB1O','mtHIu0Dhu0u','uujVsM4','iIaMjIb6AxaGlxiGiG','zMLSDgvY','iIaU','Bujxt1O','D1PNreu','rLffug4','BKXxwMy','DxjS','sLnNBuy','rNPACeO','D0T3qMy','EMLgsfC','C1v3z2q','DM5lzxm','tLrzAgm','uM9kweq','Dg9tDhjPBMC','mJmXmZCWnhjSqM5tAq','Efj3sLO','ufPRwMi','v1vSBfq','y21XwfK','ls1JB25MAwC','AM9PBG','v2rwDMi','zxjYB3jZ','qNnkzxG','sfrnuuC','Ew1gs28','EufPtgi','DLnSr00','rgjvyum','ww1mrgO','C2rLuNq','CufKD1C','rwjns3q','r3fesvC','C2vZC2LVBNm','rhL4Beq','tM8GyMfZzvvYBcbJB25MAwD1CMvKigzVCIbWCM9MAwXLici','AxnbCNjHEq','tuLot1i','rNzeAfK','u3rYDwn0DxjLze91Dhb1Da','CMfJzq','Bg9N','BLPtAxG','z3rptMG','mJa3mJmYmNruvfvYDq','igjHC2vvCMWGphvYBd4','q0ncq0i','wgrUwwy','CNvUlw1JCc1Zzxj2zxi','Bg9NAw5jBNn0CNvJDgLVBNm','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','tKniBNO','tLHdqM8','BNb4','DhLWzq','DNjxy0m','cKnssvrjq0fmieLou1rsvunusu9ouZOkms4GtMf2AwDHDguGDg8GDgHLifvstcbHyM92zsb1C2LUzYbICM93C2vYx25HDMLNyxrLcJiUifrHA2uGysbZBMfWC2HVDcb3AxrOigjYB3DZzxjFC25HChnOB3qGDg8GC2vLihrOzsbWywDLcJmUiev4zwn1DguGDgHLihrHC2SGC3rLCc1IEs1ZDgvWihvZAw5NigjYB3DZzxiGDg9VBhmknc4GswyGEw91igzPBMqGqu5zigj1z3mSihjLCg9YDcbPBw1LzgLHDgvSEsb3AxrOihnLDMvYAxr5cJuUifjLDhvYBIb5B3vYigzPBMrPBMDZigLUihrOzsbZDhj1y3r1CMvKig91Dhb1DcbMB3jTyxqkcLLVDxiGDgfZAZOG','lNbUzW','C3vTBwfYEq','DgfZAW','rvfiz2e','BNPSCfu','r2fAzMC','yNrSquK','r05JELm','B2PtwNO','ALvmt2u','q2HHCMG','vw5RBM93BIbLCNjVCG','zfbkvMq','EvnSv28'];_0x2d67=function(){return _0x28bcc8;};return _0x2d67();}import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{createMcpImageBase64Hook}from'./utils/mcpImageBase64.js';function _0xc9a1(_0x478519,_0x1110a0){_0x478519=_0x478519-0xcf;const _0x579c0b=_0x2d67();let _0x4d20b2=_0x579c0b[_0x478519];if(_0xc9a1['WiTUQX']===undefined){var _0x17ab5c=function(_0x556bdc){const _0x5c7dbb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x347f3a='',_0xf84c83='',_0x192577=_0x347f3a+_0x17ab5c;for(let _0x52932f=0x0,_0xc4da92,_0x55bc50,_0x262a58=0x0;_0x55bc50=_0x556bdc['charAt'](_0x262a58++);~_0x55bc50&&(_0xc4da92=_0x52932f%0x4?_0xc4da92*0x40+_0x55bc50:_0x55bc50,_0x52932f++%0x4)?_0x347f3a+=_0x192577['charCodeAt'](_0x262a58+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xc4da92>>(-0x2*_0x52932f&0x6)):_0x52932f:0x0){_0x55bc50=_0x5c7dbb['indexOf'](_0x55bc50);}for(let _0x2f17f4=0x0,_0x5d1d40=_0x347f3a['length'];_0x2f17f4<_0x5d1d40;_0x2f17f4++){_0xf84c83+='%'+('00'+_0x347f3a['charCodeAt'](_0x2f17f4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf84c83);};_0xc9a1['siAmsG']=_0x17ab5c,_0xc9a1['BPNRoD']={},_0xc9a1['WiTUQX']=!![];}const _0x2d6791=_0x579c0b[0x0],_0xc9a193=_0x478519+_0x2d6791,_0x416f83=_0xc9a1['BPNRoD'][_0xc9a193];if(!_0x416f83){const _0x488474=function(_0x29e5de){this['mIYuek']=_0x29e5de,this['OkAzhe']=[0x1,0x0,0x0],this['xlIvtW']=function(){return'newState';},this['ZQnGNc']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['VdjNco']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x488474['prototype']['FUGKQh']=function(){const _0x30082d=new RegExp(this['ZQnGNc']+this['VdjNco']),_0x35e69b=_0x30082d['test'](this['xlIvtW']['toString']())?--this['OkAzhe'][0x1]:--this['OkAzhe'][0x0];return this['JTRhNh'](_0x35e69b);},_0x488474['prototype']['JTRhNh']=function(_0x146133){if(!Boolean(~_0x146133))return _0x146133;return this['aJPadG'](this['mIYuek']);},_0x488474['prototype']['aJPadG']=function(_0x4cb0e0){for(let _0x1873ce=0x0,_0x13d445=this['OkAzhe']['length'];_0x1873ce<_0x13d445;_0x1873ce++){this['OkAzhe']['push'](Math['round'](Math['random']())),_0x13d445=this['OkAzhe']['length'];}return _0x4cb0e0(this['OkAzhe'][0x0]);},new _0x488474(_0xc9a1)['FUGKQh'](),_0x4d20b2=_0xc9a1['siAmsG'](_0x4d20b2),_0xc9a1['BPNRoD'][_0xc9a193]=_0x4d20b2;}else _0x4d20b2=_0x416f83;return _0x4d20b2;}async function zipDirectory(_0x3846bb){const _0x4e5e0b=_0xc9a1,_0x4e4610={'Nglrn':function(_0x34d31b,_0x444c06,_0x65e30b,_0xf3ef76){return _0x34d31b(_0x444c06,_0x65e30b,_0xf3ef76);},'ZERuv':'trace-upload.zip','Tkqhp':function(_0x46d8ef,_0x2161f2,_0x160089){return _0x46d8ef(_0x2161f2,_0x160089);},'lQczA':_0x4e5e0b(0x190),'JbnrD':function(_0x2e3ad0,_0x4e94c0){return _0x2e3ad0(_0x4e94c0);}},_0x375f24=_0x4e4610[_0x4e5e0b(0x10b)](join,_0x3846bb,'..',_0x4e4610[_0x4e5e0b(0x189)]);_0x4e4610['Tkqhp'](execSync,_0x4e5e0b(0x11e)+_0x3846bb+_0x4e5e0b(0x136)+_0x375f24+_0x4e5e0b(0x138),{'stdio':_0x4e4610[_0x4e5e0b(0x18f)]});const _0x4d48e7=await _0x4e4610[_0x4e5e0b(0x1b5)](readFile,_0x375f24);return execSync(_0x4e5e0b(0x101)+_0x375f24+'\x22',{'stdio':_0x4e4610['lQczA']}),_0x4d48e7;}function getTraceDirectory(_0x1b9f79){const _0xc4365=_0xc9a1,_0x1b65e6={'DyxlD':function(_0x118480,_0x339177,_0x4ce088,_0x27efbb){return _0x118480(_0x339177,_0x4ce088,_0x27efbb);},'hYnnn':function(_0x2d54fa){return _0x2d54fa();},'VJZoy':'sessions'};return _0x1b65e6[_0xc4365(0x15c)](join,_0x1b65e6['hYnnn'](getRangerDir),_0x1b65e6[_0xc4365(0x18d)],_0x1b9f79);}function getConversationFilePath(_0x381dda){const _0xc9f492=_0xc9a1,_0x216d7c={'VWbip':function(_0x3fa83d){return _0x3fa83d();},'AujML':_0xc9f492(0x1c0)};return join(_0x216d7c[_0xc9f492(0x112)](tmpdir),'ranger-browser-sessions',_0x381dda,_0x216d7c[_0xc9f492(0xed)]);}async function uploadConversationArtifact(_0x1deaaa,_0x4daa21){const _0x57e9d4=_0xc9a1,_0x1a1e57={'qAdwW':function(_0x4d3e79,_0x102f18){return _0x4d3e79(_0x102f18);},'JOQLq':function(_0x331060,_0xcd8931){return _0x331060!==_0xcd8931;},'mtYxs':'axJFM','aMOJX':function(_0x36b4f7,_0x4bede9){return _0x36b4f7(_0x4bede9);},'IXMFB':function(_0x4da31a,_0x49204c){return _0x4da31a(_0x49204c);},'lXJhb':function(_0x526a78,_0x2ed6e8,_0x14603e,_0x62986b,_0x53b816){return _0x526a78(_0x2ed6e8,_0x14603e,_0x62986b,_0x53b816);},'JJCvU':_0x57e9d4(0x1c0),'CmOVw':function(_0x2a107a,_0xdf37aa){return _0x2a107a===_0xdf37aa;},'yCwUa':_0x57e9d4(0x178)};if(!_0x1a1e57[_0x57e9d4(0x158)](existsSync,_0x4daa21)){if(_0x1a1e57[_0x57e9d4(0x18b)](_0x1a1e57['mtYxs'],_0x1a1e57[_0x57e9d4(0x191)]))throw new _0x345e63(_0x57e9d4(0x100)+_0x5a429a+_0x57e9d4(0x12d)+_0x2e0338);else return![];}try{const _0x524ea9=await _0x1a1e57[_0x57e9d4(0xd1)](readFile,_0x4daa21),_0x2d85ca=_0x1a1e57[_0x57e9d4(0x1a8)](computeChecksum,_0x524ea9),_0x17c2e2=await _0x1a1e57[_0x57e9d4(0x11b)](getUploadUrls,_0x1deaaa,_0x1a1e57[_0x57e9d4(0x10a)],_0x57e9d4(0x1ad),{'size':_0x524ea9[_0x57e9d4(0xef)],'checksum':_0x2d85ca});return await uploadConversation(_0x17c2e2[_0x57e9d4(0x103)],_0x524ea9),!![];}catch{if(_0x1a1e57[_0x57e9d4(0x196)](_0x1a1e57[_0x57e9d4(0x1ab)],_0x1a1e57[_0x57e9d4(0x1ab)]))return![];else _0x506511=_0x16053a,_0x6272d8=null;}}export async function verifyInBrowser(_0x46642a,_0x402bf7={}){const _0x40007f=_0xc9a1,_0x4b5242={'AUFuk':_0x40007f(0xe9),'fBrjQ':function(_0xf30cc,_0x8b2865){return _0xf30cc instanceof _0x8b2865;},'erpCa':function(_0x1eae7b,_0x2498a4){return _0x1eae7b(_0x2498a4);},'UemAk':function(_0x9324f6,_0x36542a){return _0x9324f6!==_0x36542a;},'EQHga':_0x40007f(0xfa),'GNczS':function(_0x41ac9e,_0x4d0466,_0x28dd17){return _0x41ac9e(_0x4d0466,_0x28dd17);},'gtONh':_0x40007f(0xe0),'jPEJe':function(_0x53d7fd,_0x410932,_0x669811,_0x3a6e8d){return _0x53d7fd(_0x410932,_0x669811,_0x3a6e8d);},'REhmF':function(_0x21c6a6){return _0x21c6a6();},'Beirz':_0x40007f(0x15b),'WvMNw':function(_0x62c6fb,_0x3f551f){return _0x62c6fb===_0x3f551f;},'WuqUi':_0x40007f(0x1be),'kmBJV':function(_0x3d6b23,_0x37c45b){return _0x3d6b23===_0x37c45b;},'vrWcC':_0x40007f(0x161),'GkPvP':_0x40007f(0x1b9),'jFkdR':function(_0x2c83b5,_0x2fa44f){return _0x2c83b5===_0x2fa44f;},'rcOzR':_0x40007f(0x1ba),'BsJex':function(_0x21c4e3,_0x2c9a4e){return _0x21c4e3+_0x2c9a4e;},'YtSem':function(_0x262dc6,_0x57656f,_0x4bfc4f,_0x45833e){return _0x262dc6(_0x57656f,_0x4bfc4f,_0x45833e);},'XdnYf':_0x40007f(0xf1),'Charh':_0x40007f(0x122),'HTMQG':function(_0x1fe84e,_0x6cad39){return _0x1fe84e===_0x6cad39;},'DcUgK':_0x40007f(0xfd),'sMPaN':_0x40007f(0xdb),'neDmY':function(_0xaf6e8b,_0x318cd9){return _0xaf6e8b!==_0x318cd9;},'JcjJF':_0x40007f(0xf2),'PnUje':'result','EbMKt':_0x40007f(0xfe),'mBWOZ':'FKDWi','ojSZz':_0x40007f(0x1a1),'JhKIN':_0x40007f(0x17e),'eTCRj':function(_0x18f5d0,_0x18dae0,_0x103ba5){return _0x18f5d0(_0x18dae0,_0x103ba5);},'WUllT':function(_0x114e06){return _0x114e06();},'hEMcR':_0x40007f(0x102),'WCQVs':function(_0x514a53,_0x407ddd){return _0x514a53(_0x407ddd);},'yiNUK':function(_0x28d3ad,_0x128b26){return _0x28d3ad(_0x128b26);},'DbUaC':function(_0x46b39d,_0x13f84e){return _0x46b39d(_0x13f84e);},'WCOic':function(_0x2fd5f6){return _0x2fd5f6();},'AEjCX':_0x40007f(0x16c),'jdMeA':function(_0xa21d77,_0x4b4555){return _0xa21d77(_0x4b4555);},'wZgDE':function(_0x45ff08,_0xb2dece,_0x23a606,_0x53ab2e,_0x513197){return _0x45ff08(_0xb2dece,_0x23a606,_0x53ab2e,_0x513197);},'GhavJ':_0x40007f(0x14c),'dNfCU':function(_0x1d3cd9){return _0x1d3cd9();},'rRYKS':function(_0x1bb410,_0x26c818){return _0x1bb410 instanceof _0x26c818;},'UJQOT':function(_0x1aeb0b,_0x3df897){return _0x1aeb0b(_0x3df897);},'wKwBf':function(_0x5ce0ea,_0xef9e6d,_0x4eed9a){return _0x5ce0ea(_0xef9e6d,_0x4eed9a);},'exuwN':_0x40007f(0x187),'YmLDj':function(_0x5dc177,_0xb58222){return _0x5dc177-_0xb58222;},'yAiLb':_0x40007f(0x10d),'gehdg':_0x40007f(0x1b0),'bILnO':_0x40007f(0x1b4),'qBZZK':_0x40007f(0x198),'vnKes':_0x40007f(0x1b1),'GqDIW':_0x40007f(0x15f),'tCyOJ':_0x40007f(0xda),'UTTiK':_0x40007f(0x174),'dPJVd':_0x40007f(0x106),'nzlpU':_0x40007f(0xec),'JIsOX':'bypassPermissions','RMVTX':_0x40007f(0x181),'ziFHW':function(_0x5265b1,_0x3eddfd){return _0x5265b1*_0x3eddfd;},'mPVMU':function(_0xe55ebf,_0x3dcedb){return _0xe55ebf*_0x3dcedb;},'JSgmF':function(_0x1313e4,_0x229dea){return _0x1313e4===_0x229dea;},'SELuz':_0x40007f(0x145),'QBoJn':'fLPYi','JEwKE':function(_0x3203d4,_0x23f032){return _0x3203d4 instanceof _0x23f032;},'ptgMR':function(_0x2b625b,_0x4697e7){return _0x2b625b-_0x4697e7;},'nIVDm':function(_0x1f09d4,_0x1e981b){return _0x1f09d4(_0x1e981b);},'XXbZn':function(_0x348ed4,_0x2886e4){return _0x348ed4(_0x2886e4);},'ymFKo':function(_0x3845c8,_0x4b29e5){return _0x3845c8>_0x4b29e5;},'QSpVR':_0x40007f(0xf0),'azQNv':function(_0xd3dcc1,_0x20abb5){return _0xd3dcc1(_0x20abb5);},'HPosv':function(_0x54033f,_0x487f72){return _0x54033f===_0x487f72;},'pQjQO':_0x40007f(0xf6),'wrvgc':_0x40007f(0x199),'GxbHW':function(_0x3c1d22,_0x45a35f){return _0x3c1d22(_0x45a35f);},'nUjlA':function(_0x3faa19,_0x427416,_0x5e254e,_0x5aeda1,_0x1f8760){return _0x3faa19(_0x427416,_0x5e254e,_0x5aeda1,_0x1f8760);},'PPWft':'trace.zip','FvDhY':_0x40007f(0x188),'bkcpT':_0x40007f(0x104),'nLWZf':_0x40007f(0x18a),'KuiDl':'OAaKP','SfvoN':_0x40007f(0x19b),'sUwgd':function(_0x2255c2,_0x1cea5d,_0x2946ad){return _0x2255c2(_0x1cea5d,_0x2946ad);},'RIBxx':'GGRAi','bpmVG':function(_0x225aca,_0x439af4,_0x2e76a2){return _0x225aca(_0x439af4,_0x2e76a2);},'TnpGU':_0x40007f(0xcf),'MTRMo':function(_0x37da67,_0x1e3ab5){return _0x37da67||_0x1e3ab5;},'IEktR':function(_0x4cf614,_0x37a3d8,_0x163a86){return _0x4cf614(_0x37a3d8,_0x163a86);},'cmqXY':function(_0x127096,_0x1956fd){return _0x127096&&_0x1956fd;},'dbdyY':'1|5|3|4|2|0','FAaZR':function(_0x349d14,_0x46caf4){return _0x349d14(_0x46caf4);},'aiAFZ':function(_0x55d1bd,_0x2a8f30){return _0x55d1bd!==_0x2a8f30;},'WdVvb':_0x40007f(0x13f),'ySlWo':'wPGDc','PWtoz':_0x40007f(0xf5),'IbFoZ':function(_0x19f966,_0x215219){return _0x19f966(_0x215219);},'UDxWy':function(_0x350b6b,_0x57ddd2){return _0x350b6b(_0x57ddd2);},'BvGKX':_0x40007f(0x130),'jAnfp':_0x40007f(0xeb),'sdeRt':function(_0x2cdfa0,_0x2f4f13){return _0x2cdfa0(_0x2f4f13);}},{env:_0xa85442,headed:headed=![]}=_0x402bf7;let _0x101322=_0xa85442||await _0x4b5242[_0x40007f(0x14a)](readActiveProfileName);if(!_0x101322)throw new Error(_0x4b5242[_0x40007f(0x1a2)]);const _0x2092a0=_0x4b5242['WCQVs'](getEnvDir,_0x101322);if(!_0x4b5242['yiNUK'](existsSync,_0x2092a0))throw new Error('Profile\x20\x22'+_0x101322+_0x40007f(0x12d)+_0x101322);const _0x21e709=await _0x4b5242[_0x40007f(0x155)](loadSettings,_0x101322),_0x17e78f=resolveEnvVars(_0x21e709),_0x1c9d0e=_0x17e78f[_0x40007f(0x1a3)];if(!_0x1c9d0e)throw new Error(_0x40007f(0x15d)+_0x101322+_0x40007f(0xea)+_0x101322+_0x40007f(0x167));const _0x456be9=await _0x4b5242['WCOic'](getToken);if(!_0x456be9)throw new Error(_0x4b5242[_0x40007f(0x10e)]);const _0x402460=await _0x4b5242[_0x40007f(0x19d)](createBrowserSession,{'environmentName':_0x101322,'settings':_0x17e78f,'task':_0x46642a,'url':_0x1c9d0e});console[_0x40007f(0x163)]('Browser\x20session\x20created:\x20'+_0x402460['id']);const _0x55a759=await _0x4b5242[_0x40007f(0x13a)](buildPlaywrightConfig,_0x17e78f,_0x101322,_0x402460?.['id'],headed),_0x288ba6={'command':_0x40007f(0x16f),'args':[_0x40007f(0xee),_0x40007f(0x16a),_0x4b5242[_0x40007f(0xe5)],_0x55a759[_0x40007f(0x119)]]},_0x340ae5=Date[_0x40007f(0x184)]();let _0xca9de4;try{_0xca9de4=await _0x4b5242[_0x40007f(0x197)](getProxySessionToken);}catch(_0x475454){const _0x5538d0=_0x4b5242[_0x40007f(0x117)](_0x475454,Error)?_0x475454['message']:_0x4b5242[_0x40007f(0x19f)](String,_0x475454),_0x22165d=_0x40007f(0x19c)+_0x5538d0;try{await _0x4b5242[_0x40007f(0x140)](updateBrowserSession,_0x402460['id'],{'status':_0x4b5242[_0x40007f(0x124)],'durationMs':_0x4b5242[_0x40007f(0x156)](Date[_0x40007f(0x184)](),_0x340ae5),'errorMessage':_0x22165d});}catch{}throw new Error(_0x22165d);}const _0x592c49=_0x17e78f[_0x40007f(0x16b)]?_0x40007f(0x19e)+_0x17e78f[_0x40007f(0x16b)]+_0x40007f(0xe1):'',_0x5610e5='You\x20are\x20a\x20UI\x20Verifier.\x20Your\x20ONLY\x20job\x20is\x20to\x20click\x20through\x20a\x20UI\x20flow\x20and\x20report\x20bugs\x20immediately\x20when\x20found.\x0a\x0aCRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x1c9d0e+'\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-\x20IGNORE\x20any\x20URLs\x20from\x20product\x20documentation\x20(mcp__ranger__get_product_docs)\x20that\x20have\x20a\x20different\x20base\x20URL\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\x20environment\x20for\x20this\x20verification\x0a'+_0x592c49+_0x40007f(0x172)+_0x46642a+_0x40007f(0x107)+_0x1c9d0e,_0x59f683={'type':_0x4b5242[_0x40007f(0x153)],'properties':{'success':{'type':_0x4b5242['gehdg']},'summary':{'type':_0x4b5242[_0x40007f(0x127)]},'issues':{'type':_0x4b5242[_0x40007f(0x1a6)],'items':{'type':_0x4b5242['yAiLb'],'properties':{'severity':{'type':_0x4b5242[_0x40007f(0x127)],'enum':[_0x40007f(0xe3),_0x4b5242[_0x40007f(0x143)],_0x4b5242[_0x40007f(0x15a)]]},'description':{'type':_0x40007f(0x1b4)},'screenshot':{'type':_0x4b5242[_0x40007f(0x127)]}},'required':[_0x40007f(0x108),_0x4b5242[_0x40007f(0x1a4)]]}},'screenshots':{'type':_0x4b5242[_0x40007f(0x1a6)],'items':{'type':_0x4b5242[_0x40007f(0x127)]}}},'required':[_0x4b5242[_0x40007f(0x159)],_0x4b5242[_0x40007f(0x10f)]]},_0x53fb78=_0x4b5242[_0x40007f(0x14a)](createMcpImageBase64Hook),_0x10af6f=_0x4b5242[_0x40007f(0x1bb)](query,{'prompt':_0x5610e5,'options':{'cwd':process[_0x40007f(0xdd)](),'model':_0x40007f(0x109),'mcpServers':{'ranger-browser':_0x288ba6},'tools':[_0x4b5242[_0x40007f(0x17f)],_0x4b5242[_0x40007f(0x177)]],'permissionMode':_0x4b5242[_0x40007f(0x1a5)],'allowDangerouslySkipPermissions':!![],'outputFormat':{'type':_0x4b5242[_0x40007f(0xd9)],'schema':_0x59f683},'hooks':{'PostToolUse':[{'hooks':[_0x53fb78]}]},'env':{...process[_0x40007f(0x125)],'ANTHROPIC_API_KEY':_0xca9de4,'ANTHROPIC_BASE_URL':_0x4b5242[_0x40007f(0x14a)](getAiProxyUrl),'DISABLE_TELEMETRY':'true'},'persistSession':![]}});let _0x3e923c=null,_0x307cbd=null,_0x1f7b16=null;const _0x4a93dc=_0x4b5242[_0x40007f(0x1bb)](getConversationFilePath,_0x402460['id']),_0x11577f=dirname(_0x4a93dc);await mkdir(_0x11577f,{'recursive':!![]});let _0x5461e5=![];const _0x172755=_0x4b5242[_0x40007f(0x141)](_0x4b5242[_0x40007f(0x1af)](0x3b,0x3c),0x3e8),_0x18e2b5=new Promise((_0x75c68d,_0x191172)=>{const _0x8217a8=_0x40007f,_0x283e3e={'pasTR':function(_0x34ef0a,_0x2c027c){return _0x4b5242['fBrjQ'](_0x34ef0a,_0x2c027c);},'kHqEH':function(_0x46615e,_0x45fb1e){return _0x4b5242['erpCa'](_0x46615e,_0x45fb1e);}};_0x4b5242[_0x8217a8(0x12e)](_0x4b5242[_0x8217a8(0x176)],_0x4b5242[_0x8217a8(0x176)])?_0x53bf4e=_0x283e3e[_0x8217a8(0x128)](_0x1ca9b0,_0x230568)?_0x49b809['message']:_0x283e3e['kHqEH'](_0x41b10a,_0x52ed5b):_0x4b5242[_0x8217a8(0x17a)](setTimeout,()=>{const _0x5ea3b9=_0x8217a8;_0x191172(new Error(_0x4b5242[_0x5ea3b9(0xd3)]));},_0x172755);});try{try{if(_0x4b5242['JSgmF'](_0x4b5242[_0x40007f(0x105)],_0x4b5242[_0x40007f(0x135)]))throw new _0x540ac3(_0x4b5242[_0x40007f(0x165)]);else await Promise[_0x40007f(0x162)]([((async()=>{const _0x2ae961=_0x40007f,_0x4ede80={'XNmjU':function(_0x5174fb,_0x141a0f){const _0x1d19f9=_0xc9a1;return _0x4b5242[_0x1d19f9(0x132)](_0x5174fb,_0x141a0f);},'tvIWe':_0x4b5242[_0x2ae961(0xf4)],'HAkzv':function(_0x385937,_0x382a36){const _0x31dd3d=_0x2ae961;return _0x4b5242[_0x31dd3d(0xe2)](_0x385937,_0x382a36);},'MBHeY':_0x4b5242[_0x2ae961(0x171)],'nZSix':_0x4b5242['GkPvP']};for await(const _0x17665a of _0x10af6f){if(_0x4b5242['jFkdR']('CSSsB',_0x4b5242[_0x2ae961(0x1b7)]))throw new _0x2160f8(_0x2ae961(0x15d)+_0x2cce03+_0x2ae961(0xea)+_0x18652b+_0x2ae961(0x167));else{try{if(_0x4b5242[_0x2ae961(0x132)](_0x2ae961(0x149),_0x2ae961(0x149))){const _0x469976=_0x4b5242[_0x2ae961(0x150)](JSON[_0x2ae961(0x1b8)](_0x17665a),'\x0a');await _0x4b5242[_0x2ae961(0xdf)](appendFile,_0x4a93dc,_0x469976,_0x4b5242[_0x2ae961(0x169)]);}else{const _0x2dfd24=_0x205bb1['apply'](_0xf73fb3,arguments);return _0x616a8=null,_0x2dfd24;}}catch{}const _0x8bcfdf=_0x17665a;if(_0x4b5242['kmBJV'](_0x8bcfdf[_0x2ae961(0x170)],_0x4b5242[_0x2ae961(0x17d)])&&_0x8bcfdf[_0x2ae961(0x182)]?.['content'])for(const _0x144b38 of _0x8bcfdf['message'][_0x2ae961(0xd0)]){if(_0x144b38[_0x2ae961(0x170)]===_0x4b5242[_0x2ae961(0xf4)]&&_0x4b5242[_0x2ae961(0x151)](_0x144b38[_0x2ae961(0xd5)],_0x4b5242[_0x2ae961(0x171)])&&_0x144b38[_0x2ae961(0x12c)]){if(_0x4b5242[_0x2ae961(0x12e)](_0x4b5242['DcUgK'],_0x4b5242['sMPaN']))_0x1f7b16=_0x144b38[_0x2ae961(0x12c)];else return![];}}if(_0x8bcfdf['error']){if(_0x4b5242[_0x2ae961(0x11d)](_0x4b5242['JcjJF'],_0x4b5242[_0x2ae961(0xf3)]))_0x4ede80[_0x2ae961(0x1aa)](_0x6ac7b4[_0x2ae961(0x170)],_0x4ede80['tvIWe'])&&_0x4ede80[_0x2ae961(0x1c3)](_0x2ea7c4[_0x2ae961(0xd5)],_0x4ede80[_0x2ae961(0x12b)])&&_0x14a0e3[_0x2ae961(0x12c)]&&(_0x1e8184=_0x281955[_0x2ae961(0x12c)]);else{let _0x524659=_0x8bcfdf[_0x2ae961(0x1b2)];if(_0x8bcfdf['message']?.[_0x2ae961(0xd0)]&&Array[_0x2ae961(0x15e)](_0x8bcfdf[_0x2ae961(0x182)][_0x2ae961(0xd0)])){const _0x49bd82=_0x8bcfdf[_0x2ae961(0x182)][_0x2ae961(0xd0)][_0x2ae961(0x137)](_0x42bcb3=>_0x42bcb3[_0x2ae961(0x170)]==='text')[_0x2ae961(0xe8)](_0x16c098=>_0x16c098[_0x2ae961(0xfc)]||'')[_0x2ae961(0x137)](Boolean);_0x49bd82[_0x2ae961(0xef)]>0x0&&(_0x524659=_0x49bd82['join']('\x20'));}_0x307cbd=_0x524659;}}if(_0x4b5242['HTMQG'](_0x17665a[_0x2ae961(0x170)],_0x4b5242[_0x2ae961(0x113)])){if(_0x17665a[_0x2ae961(0x1a9)]===_0x4b5242[_0x2ae961(0x159)]&&_0x17665a[_0x2ae961(0xe4)]){if(_0x4b5242['HTMQG'](_0x4b5242[_0x2ae961(0x139)],_0x4b5242['mBWOZ']))_0x3e923c=_0x17665a['structured_output'];else return _0x4701ba[_0x2ae961(0x146)]()['search'](xwtGLU['nZSix'])[_0x2ae961(0x146)]()['constructor'](_0x31933f)[_0x2ae961(0x1bd)](xwtGLU[_0x2ae961(0x164)]);}else{if(_0x4b5242[_0x2ae961(0x12e)](_0x17665a[_0x2ae961(0x1a9)],'success')){if('pKhLL'!==_0x2ae961(0x19a))return _0x4b5242[_0x2ae961(0x10c)](_0x289007,_0x4b5242[_0x2ae961(0x12f)](_0x3131e9),_0x4b5242[_0x2ae961(0x116)],_0x17351a);else{if(_0x1f7b16&&_0x17665a[_0x2ae961(0x14f)]?.[_0x2ae961(0xef)]===0x0)_0x3e923c=_0x1f7b16,_0x307cbd=null;else{if(!_0x307cbd){if(_0x4b5242[_0x2ae961(0x17b)]===_0x4b5242[_0x2ae961(0x17b)])_0x307cbd=_0x17665a[_0x2ae961(0x14f)]?.[_0x2ae961(0x14d)](',\x20')||_0x4b5242[_0x2ae961(0x123)];else{if(_0x115f19){const _0x1de1d4=_0x40d0e0['apply'](_0x2aeef7,arguments);return _0x2564ac=null,_0x1de1d4;}}}}}}}}}}})()),_0x18e2b5]);}catch(_0x26ceee){_0x307cbd=_0x4b5242[_0x40007f(0xe6)](_0x26ceee,Error)?_0x26ceee[_0x40007f(0x182)]:_0x4b5242['erpCa'](String,_0x26ceee);}const _0x143615=_0x4b5242[_0x40007f(0x18c)](Date['now'](),_0x340ae5);let _0x1ce97f;try{const _0x35dfaf=getTraceDirectory(_0x402460['id']);if(_0x4b5242['nIVDm'](existsSync,_0x35dfaf)){const _0x52346a=await _0x4b5242[_0x40007f(0x11a)](readdir,_0x35dfaf);if(_0x4b5242[_0x40007f(0x152)](_0x52346a[_0x40007f(0xef)],0x0)){const _0x220a18=join(_0x35dfaf,_0x4b5242['QSpVR']);if(_0x4b5242[_0x40007f(0x1ae)](existsSync,_0x220a18)){if(_0x4b5242[_0x40007f(0x115)](_0x4b5242['pQjQO'],_0x4b5242[_0x40007f(0x121)]))_0x4b5242[_0x40007f(0x18e)](_0x1fb7cc,new _0x2ecd05(_0x40007f(0xe9)));else{const _0x1b4289=await _0x4b5242[_0x40007f(0x19d)](zipDirectory,_0x220a18),_0x5accb5=_0x4b5242[_0x40007f(0x1ac)](computeChecksum,_0x1b4289),_0x578cc3=await _0x4b5242[_0x40007f(0x1a0)](getUploadUrls,_0x402460['id'],_0x4b5242[_0x40007f(0x1c2)],_0x4b5242[_0x40007f(0x160)],{'size':_0x1b4289[_0x40007f(0xef)],'checksum':_0x5accb5});await uploadTrace(_0x578cc3[_0x40007f(0x103)],_0x1b4289),_0x1ce97f=_0x578cc3[_0x40007f(0x193)];}}const _0x217e84=_0x52346a[_0x40007f(0x137)](_0x5097d3=>_0x5097d3['toLowerCase']()['endsWith'](_0x40007f(0x173)));for(const _0xecb070 of _0x217e84){if(_0x4b5242[_0x40007f(0x12e)](_0x4b5242[_0x40007f(0x194)],_0x4b5242[_0x40007f(0x13c)]))try{if(_0x4b5242[_0x40007f(0x11c)]===_0x4b5242['KuiDl']){const _0x48b276=_0x4b5242[_0x40007f(0x1a7)](join,_0x35dfaf,_0xecb070),_0x273e30=await _0x4b5242[_0x40007f(0x19d)](readFile,_0x48b276),_0x5b0cf1=computeChecksum(_0x273e30),_0x5702eb=await getUploadUrls(_0x402460['id'],_0xecb070,_0x4b5242['SfvoN'],{'size':_0x273e30[_0x40007f(0xef)],'checksum':_0x5b0cf1});await _0x4b5242[_0x40007f(0x142)](uploadScreenshot,_0x5702eb['uploadUrl'],_0x273e30);}else{const _0x4327d5={'uZNOy':function(_0x238b79,_0x390ce4){const _0x36eddb=_0x40007f;return _0x4b5242[_0x36eddb(0x18e)](_0x238b79,_0x390ce4);},'bYNbI':_0x4b5242[_0x40007f(0xd3)]};_0x4b5242['eTCRj'](_0xe8f36a,()=>{const _0x3e147e=_0x40007f;_0x4327d5['uZNOy'](_0x12bc93,new _0x4a7337(_0x4327d5[_0x3e147e(0x1c1)]));},_0x141ee8);}}catch{}else{if(_0x4e91b2&&_0x522148['errors']?.[_0x40007f(0xef)]===0x0)_0x49dae1=_0x2de2b6,_0x1c7f33=null;else!_0x32c6f3&&(_0x5061c8=_0x2ebef9[_0x40007f(0x14f)]?.[_0x40007f(0x14d)](',\x20')||_0x40007f(0x17e));}}}}if(!_0x5461e5){if(_0x4b5242[_0x40007f(0x118)](_0x4b5242[_0x40007f(0xff)],_0x4b5242[_0x40007f(0xff)]))_0x5461e5=await _0x4b5242[_0x40007f(0x1c4)](uploadConversationArtifact,_0x402460['id'],_0x4a93dc);else{const _0x1200d0='5|0|2|1|3|4'['split']('|');let _0x59566f=0x0;while(!![]){switch(_0x1200d0[_0x59566f++]){case'0':_0x1cdaf1[_0x40007f(0x1b3)]=_0x29b0d1['id'];continue;case'1':_0x2f1640['durationMs']=_0x4215c4;continue;case'2':_0x4fbbe1[_0x40007f(0x120)]=_0x4b5242['erpCa'](_0xf5c66,_0x3ca37c['id']);continue;case'3':_0x491020[_0x40007f(0x175)]=_0x1c21a2;continue;case'4':_0x13cb06[_0x40007f(0x13d)]=_0x39fbc8;continue;case'5':_0x2006b0['traceViewerUrl']=_0x4b5242[_0x40007f(0x18e)](_0x5efa24,_0x1683d4);continue;}break;}}}const _0x39b6b8=_0x3e923c,_0x2e8467={'status':_0x307cbd?_0x4b5242[_0x40007f(0x124)]:_0x4b5242['TnpGU'],'durationMs':_0x143615,'agentResponse':_0x39b6b8?.[_0x40007f(0x174)]||_0x307cbd||undefined,'errorMessage':_0x4b5242[_0x40007f(0xfb)](_0x307cbd,undefined)};await _0x4b5242['IEktR'](updateBrowserSession,_0x402460['id'],_0x2e8467);if(_0x4b5242[_0x40007f(0x14b)](_0x39b6b8,_0x1ce97f)){const _0x437045=_0x4b5242[_0x40007f(0xd6)][_0x40007f(0x192)]('|');let _0x4fe9bd=0x0;while(!![]){switch(_0x437045[_0x4fe9bd++]){case'0':_0x39b6b8['url']=_0x1c9d0e;continue;case'1':_0x39b6b8[_0x40007f(0xf7)]=buildTraceViewerUrl(_0x1ce97f);continue;case'2':_0x39b6b8[_0x40007f(0x175)]=_0x46642a;continue;case'3':_0x39b6b8[_0x40007f(0x120)]=_0x4b5242[_0x40007f(0xdc)](getTraceDirectory,_0x402460['id']);continue;case'4':_0x39b6b8[_0x40007f(0xd4)]=_0x143615;continue;case'5':_0x39b6b8['sessionId']=_0x402460['id'];continue;}break;}}}catch{}if(_0x4b5242[_0x40007f(0x14b)](_0x307cbd,!_0x3e923c)){if(_0x4b5242['aiAFZ'](_0x4b5242[_0x40007f(0x14e)],_0x4b5242[_0x40007f(0x14e)]))_0x1c7a91=_0x30b876['input'];else throw new Error('Verification\x20failed:\x20'+_0x307cbd);}if(!_0x3e923c)throw new Error(_0x4b5242[_0x40007f(0x165)]);return _0x3e923c;}finally{!_0x5461e5&&(_0x4b5242[_0x40007f(0x180)]!==_0x4b5242[_0x40007f(0x126)]?_0x5461e5=await _0x4b5242['IEktR'](uploadConversationArtifact,_0x402460['id'],_0x4a93dc):_0x16118c=_0x5e1671[_0x40007f(0x14f)]?.[_0x40007f(0x14d)](',\x20')||_0x4b5242[_0x40007f(0x123)]);await _0x4b5242['XXbZn'](cleanupTempFiles,_0x55a759);try{const _0x1af988=_0x4b5242[_0x40007f(0x133)](getTraceDirectory,_0x402460['id']);if(_0x4b5242[_0x40007f(0x11f)](existsSync,_0x1af988)){if(_0x4b5242[_0x40007f(0x13e)](_0x40007f(0x179),'btlAI'))await _0x4b5242[_0x40007f(0x142)](rm,_0x1af988,{'recursive':!![],'force':!![]});else throw new _0x1ca9ff(_0x40007f(0x131)+_0x527b17);}}catch{}try{_0x4b5242[_0x40007f(0xe7)]!==_0x4b5242[_0x40007f(0x186)]?_0x4b5242[_0x40007f(0x157)](existsSync,_0x11577f)&&await _0x4b5242[_0x40007f(0x1c4)](rm,_0x11577f,{'recursive':!![],'force':!![]}):_0x482610=_0x4c6e4f[_0x40007f(0x14d)]('\x20');}catch{}}}