@ranger-testing/ranger-cli 2.4.1 → 2.4.2
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x310ef7,_0x48c26c){const _0x58d2be=_0x4102,_0x8eb1df=_0x310ef7();while(!![]){try{const _0x11fa7f=-parseInt(_0x58d2be(0xa2))/0x1*(parseInt(_0x58d2be(0xcc))/0x2)+-parseInt(_0x58d2be(0x7e))/0x3+parseInt(_0x58d2be(0xb1))/0x4+parseInt(_0x58d2be(0xf9))/0x5*(-parseInt(_0x58d2be(0xd1))/0x6)+-parseInt(_0x58d2be(0x9e))/0x7+parseInt(_0x58d2be(0x91))/0x8+parseInt(_0x58d2be(0xb9))/0x9;if(_0x11fa7f===_0x48c26c)break;else _0x8eb1df['push'](_0x8eb1df['shift']());}catch(_0x10fa41){_0x8eb1df['push'](_0x8eb1df['shift']());}}}(_0x298d,0xc730c));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';function _0x298d(){const _0x145ba1=['video-stop','error','tool_input','eouaP','playwright-cli','key_03_success-state.png','tbjvv','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','trackPhaseStart','stderr','subcommand','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','content','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','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','authorEmail','rpoib','start\x20tracing','wUbFY','tool_name','kLqmM','vsBqn','\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','lZPZc','map','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','`\x20to\x20inspect\x20the\x20current\x20app\x20state.\x0a5.\x20Read\x20snapshot\x20YAML\x20files\x20to\x20find\x20element\x20references\x20like\x20`e12`,\x20then\x20use\x20them\x20with\x20`click`,\x20`fill`,\x20`check`,\x20or\x20`select`.\x0a6.\x20Use\x20`','fill','tMECo','IICwa','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','rdYys','\x20tracing-start`,\x20then\x20`','open\x20new\x20tab\x20','2761191MZiCEH','slice','\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','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','RBiyi','phase','DVyhM','open\x20','uooun','VVZDB','values','[playwright-cli]\x20','env','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','createdAt','JKFsr','\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','run\x20custom\x20Playwright\x20code','snapshot','9116480rIGnzU','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','pop','MRnWS','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','log','capture\x20snapshot\x20`','numeric','join','[ranger-verification-agent]\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','fill\x20','hLFFn','533092mWdYLP','canonicalFlow','key_04_success-state.png','LXPbX','1LkcXBz','XpAkz','iGlBi','MlpuB','01_initial-state.png','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','stdout','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','\x20(on\x20element:\x20<','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','\x20snapshot\x20--filename\x20','lmpLt','01_initial.yml','sort','hook_event_name','1766104XCFlPv','start\x20video\x20recording','set','trackPhaseEnd','aUZme','press\x20','select\x20tab\x20','zjkuv','12679740QjzsWJ','playwright_cli_close','`\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`','Reviewer','\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.','target','jwIrs','name','fXwDI','AvcrC','\x20screenshot\x20--filename\x20','notes','playwright_cli_video_stop','stop\x20video\x20recording','selector',']\x20**','vdtbn','trim','replace','1722668TAjsOI','invocation','CsCkY','VdwNK','capture\x20key\x20step\x20`','379410OBcCwI','PostToolUseFailure','Jrxyn','02_state.yml','test','element','stop\x20tracing','push','trace.zip','nAiKA','\x20open\x20','vysES','close','JRzaG','\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.','UuSJD','\x22,\x20\x22','trackPhaseError','BgixM','YOdQY','split','match','open\x20new\x20tab','\x20>\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','):\x20\x22','02_learn-more.yml','jHrms','tbETT','tool_call','`\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','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','domRef','KOsQD','ROOBn','isFile','tracing-start','cFkCx','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','DEBUG','25FRONdZ'];_0x298d=function(){return _0x145ba1;};return _0x298d();}const PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,PLAYWRIGHT_CLI_PREVIEW_LIMIT=0xf0,VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|session-recording(?:-\d+)?\.webm|trace(?:\.trace)?(?:-\d+)?\.zip|current_snap\.ya?ml)$/i;function truncatePreview(_0x566b21,_0x1062ea=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x347658=_0x4102,_0x3b36f6={'vsBqn':'...'};return _0x566b21['length']>_0x1062ea?_0x566b21[_0x347658(0x7f)](0x0,_0x1062ea)+_0x3b36f6[_0x347658(0x10f)]:_0x566b21;}function buildCliArtifactPath(_0x40a31a,_0x156d77){return join(_0x40a31a,_0x156d77);}function toStepDisplayName(_0x4deabf){const _0xfdb6e=_0x4102,_0x50e746={'eouaP':function(_0x412704,_0x39bd2b){return _0x412704(_0x39bd2b);}},_0x5d4b13=basename(_0x4deabf)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0xfdb6e(0xcb)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x5d4b13,'isKeyStep':/^key_/i[_0xfdb6e(0xd5)](_0x50e746[_0xfdb6e(0xfd)](basename,_0x4deabf))};}function extractShellValue(_0x289c1f){if(!_0x289c1f)return null;return _0x289c1f[0x1]??_0x289c1f[0x2]??_0x289c1f[0x3]??null;}function extractFilenameOption(_0x46ba8a){const _0x245501=_0x4102,_0x36961e={'DVyhM':function(_0x355944,_0x4eb9d0){return _0x355944(_0x4eb9d0);}};return _0x36961e[_0x245501(0x84)](extractShellValue,_0x46ba8a['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x35298f,_0x4ecfbd){const _0x292ec7=_0x4102,_0x45c36a=_0x4ecfbd['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x35298f[_0x292ec7(0xe6)](new RegExp('(?:^|\x5cs)'+_0x45c36a+_0x292ec7(0x107))));}function formatCommandTarget(_0x4d99a1){const _0x3a52fc=_0x4102,_0x2b8278={'qAIiE':_0x3a52fc(0xbe)};if(!_0x4d99a1)return _0x2b8278['qAIiE'];if(/^e\d+$/i['test'](_0x4d99a1))return'ref\x20'+_0x4d99a1;return JSON['stringify'](truncatePreview(_0x4d99a1,0x78));}function formatPlaywrightCliLog(_0x5b6e23,_0x4e2c36){const _0x21e5ea=_0x4102,_0x57061f={'zaKAo':function(_0xe7639d,_0x4bfd7f,_0x14a82a){return _0xe7639d(_0x4bfd7f,_0x14a82a);},'kLqmM':'open\x20browser','Jrxyn':'tracing-stop','MRnWS':'video-start','NicRj':_0x21e5ea(0xb2),'ktGic':_0x21e5ea(0xc6),'xAwAH':_0x21e5ea(0x90),'jwIrs':'capture\x20snapshot','BgixM':function(_0xb02cab,_0x2ae1cf){return _0xb02cab(_0x2ae1cf);},'JRzaG':function(_0x5998eb,_0x10f5b6){return _0x5998eb(_0x10f5b6);},'nAiKA':'click','ugsZz':'check','WoxFU':function(_0x53df63,_0x314732){return _0x53df63(_0x314732);},'uooun':function(_0x10279b,_0x2a6966,_0xf3034f){return _0x10279b(_0x2a6966,_0xf3034f);},'Peslw':'press','MSXoM':_0x21e5ea(0x8f),'zjkuv':_0x21e5ea(0xe7),'AvcrC':function(_0x5c14d1,_0x32cdd5,_0x360711){return _0x5c14d1(_0x32cdd5,_0x360711);}};switch(_0x4e2c36){case'open':{const _0x123f1a=_0x57061f['zaKAo'](extractFirstCommandArgument,_0x5b6e23,_0x4e2c36);return _0x123f1a?_0x21e5ea(0x85)+_0x123f1a:_0x57061f[_0x21e5ea(0x10e)];}case _0x21e5ea(0xf5):return _0x21e5ea(0x10b);case _0x57061f[_0x21e5ea(0xd3)]:return _0x21e5ea(0xd7);case _0x57061f[_0x21e5ea(0x94)]:return _0x57061f['NicRj'];case _0x21e5ea(0xfa):return _0x57061f['ktGic'];case _0x57061f['xAwAH']:{const _0xcceca1=extractFilenameOption(_0x5b6e23);if(!_0xcceca1)return _0x57061f[_0x21e5ea(0xbf)];const {name:_0x31a27d}=_0x57061f[_0x21e5ea(0xe3)](toStepDisplayName,_0xcceca1);return _0x21e5ea(0x97)+_0x31a27d+'`';}case'screenshot':{const _0x200801=_0x57061f['BgixM'](extractFilenameOption,_0x5b6e23);if(!_0x200801)return'capture\x20screenshot';const {name:_0x5e0c31,isKeyStep:_0x1595b9}=_0x57061f[_0x21e5ea(0xde)](toStepDisplayName,_0x200801);return _0x1595b9?_0x21e5ea(0xd0)+_0x5e0c31+'`':'capture\x20step\x20`'+_0x5e0c31+'`';}case _0x57061f[_0x21e5ea(0xda)]:return'click\x20'+formatCommandTarget(extractFirstCommandArgument(_0x5b6e23,_0x4e2c36));case _0x57061f['ugsZz']:return'check\x20'+_0x57061f['WoxFU'](formatCommandTarget,extractFirstCommandArgument(_0x5b6e23,_0x4e2c36));case _0x21e5ea(0x77):return _0x21e5ea(0x9c)+formatCommandTarget(_0x57061f[_0x21e5ea(0x86)](extractFirstCommandArgument,_0x5b6e23,_0x4e2c36));case _0x57061f['Peslw']:return _0x21e5ea(0xb6)+_0x57061f[_0x21e5ea(0xde)](formatCommandTarget,_0x57061f['uooun'](extractFirstCommandArgument,_0x5b6e23,_0x4e2c36));case'run-code':return _0x57061f['MSXoM'];case'tab-new':{const _0x43effa=extractFirstCommandArgument(_0x5b6e23,_0x4e2c36);return _0x43effa?_0x21e5ea(0x7d)+_0x43effa:_0x57061f[_0x21e5ea(0xb8)];}case'tab-select':{const _0x4f190a=_0x57061f[_0x21e5ea(0xc2)](extractFirstCommandArgument,_0x5b6e23,_0x4e2c36);return _0x4f190a?_0x21e5ea(0xb7)+_0x4f190a:'select\x20tab';}default:return _0x4e2c36;}}function extractPlaywrightCliToolDescription(_0x4a1611){const _0x5c4d91=_0x4102,_0x5232e0={'RBiyi':'string','rdYys':function(_0x3e0794,_0xb8727b){return _0x3e0794>_0xb8727b;}},_0x3bc2cf=_0x4a1611['description'];if(typeof _0x3bc2cf!==_0x5232e0[_0x5c4d91(0x82)])return null;const _0x23055a=_0x3bc2cf[_0x5c4d91(0xca)]()['replace'](/\s+/g,'\x20');return _0x5232e0[_0x5c4d91(0x7b)](_0x23055a['length'],0x0)?_0x23055a:null;}export function formatPlaywrightCliConsoleLogMessage(_0x1336bf,_0x6a378c,_0x21fe2c){const _0x2a2de3=_0x4102,_0x5d414d={'YOdQY':function(_0x1d9bfd,_0xc2440b){return _0x1d9bfd(_0xc2440b);}},_0x563a5f=formatPlaywrightCliLog(_0x6a378c,_0x21fe2c),_0x4f5c00=_0x5d414d[_0x2a2de3(0xe4)](extractPlaywrightCliToolDescription,_0x1336bf);if(!_0x4f5c00)return _0x2a2de3(0x89)+_0x563a5f;if(process[_0x2a2de3(0x8a)][_0x2a2de3(0xf8)])return _0x2a2de3(0x9a)+_0x4f5c00+'\x20('+_0x563a5f+')';return _0x2a2de3(0x9a)+_0x4f5c00;}export function buildVerifyFeatureCliDebugPrompt(_0x915345,_0x2e7a6e){const _0xb36fff=_0x4102,_0x1b076f={'hLFFn':'00_mozilla-homepage.yml','MtxyJ':function(_0xfdbe87,_0x3e3847,_0x361b72){return _0xfdbe87(_0x3e3847,_0x361b72);},'ESNXZ':'01_mozilla-homepage.png','lmpLt':function(_0x1b67e5,_0x40824f,_0x2fe234){return _0x1b67e5(_0x40824f,_0x2fe234);},'vysES':_0xb36fff(0xeb),'JKFsr':function(_0x4197d5,_0x403fbe){return _0x4197d5(_0x403fbe);}},_0x35e828=buildCliArtifactPath(_0x2e7a6e,_0x1b076f[_0xb36fff(0x9d)]),_0x3c4bfc=_0x1b076f['MtxyJ'](buildCliArtifactPath,_0x2e7a6e,_0x1b076f['ESNXZ']),_0x54fcec=_0x1b076f[_0xb36fff(0xad)](buildCliArtifactPath,_0x2e7a6e,_0x1b076f[_0xb36fff(0xdc)]),_0x4f5e9b=buildCliArtifactPath(_0x2e7a6e,'03_learn-more.png'),_0x1234f4=_0x1b076f[_0xb36fff(0x8d)](quoteShellArg,_0x35e828),_0x3bef59=_0x1b076f['JKFsr'](quoteShellArg,_0x3c4bfc),_0x53fdb6=quoteShellArg(_0x54fcec),_0x1e14b0=_0x1b076f[_0xb36fff(0x8d)](quoteShellArg,_0x4f5e9b);return _0xb36fff(0x8b)+_0x915345+'\x0a\x0a1.\x20Run\x20`'+_0x915345+_0xb36fff(0x95)+_0x915345+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x915345+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2e7a6e+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x915345+_0xb36fff(0xac)+_0x1234f4+_0xb36fff(0x7a)+_0x915345+_0xb36fff(0xc3)+_0x3bef59+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x915345+'\x20snapshot\x20--filename\x20'+_0x53fdb6+'`\x0a9.\x20Run\x20`'+_0x915345+_0xb36fff(0xc3)+_0x1e14b0+_0xb36fff(0x105);}export function buildVerifyFeatureCliPrompt(_0x12c58c){const _0xeae714=_0x4102,_0x56a31b={'lZPZc':'en-US','HEjUL':_0xeae714(0x98),'UuSJD':_0xeae714(0xe8),'apJHT':function(_0x4ad690,_0x542be6,_0x56fcbd){return _0x4ad690(_0x542be6,_0x56fcbd);},'aUZme':_0xeae714(0xae),'ROOBn':function(_0x4c5284,_0x12fe29,_0x8b19df){return _0x4c5284(_0x12fe29,_0x8b19df);},'jHrms':_0xeae714(0xd4),'fXwDI':_0xeae714(0xff),'rpoib':function(_0x23fbe9,_0x27dc1a,_0x2d0bf7){return _0x23fbe9(_0x27dc1a,_0x2d0bf7);},'tbjvv':_0xeae714(0xa6),'UUlsx':function(_0x53e92c,_0x185e99){return _0x53e92c(_0x185e99);},'iGlBi':function(_0x4caa5d,_0x3ebfe5){return _0x4caa5d(_0x3ebfe5);},'Rykyt':function(_0x4480bd,_0x55ac9b,_0x190090){return _0x4480bd(_0x55ac9b,_0x190090);}},{checklistItem:_0x383aa0,itemFeedback:_0x28d0b1,taskDescription:_0x5c975a,cliCommandPrefix:_0x39a7fe,cliArtifactDir:_0x9ffb84,isCdpMode:_0x2f01db,url:_0x293fd8,cdpEndpoint:_0x1387a8,loginInstructions:_0x310cc6}=_0x12c58c,_0x2d8d2f=_0x56a31b['apJHT'](buildCliArtifactPath,_0x9ffb84,_0x56a31b[_0xeae714(0xb5)]),_0x27cc18=_0x56a31b[_0xeae714(0xf3)](buildCliArtifactPath,_0x9ffb84,_0x56a31b[_0xeae714(0xec)]),_0x257d9c=buildCliArtifactPath(_0x9ffb84,_0x56a31b[_0xeae714(0xc1)]),_0x2ed750=_0x56a31b[_0xeae714(0x10a)](buildCliArtifactPath,_0x9ffb84,_0x56a31b[_0xeae714(0x100)]),_0x43d7fc=quoteShellArg(_0x2d8d2f),_0x12d104=quoteShellArg(_0x27cc18),_0xc741fc=_0x56a31b['UUlsx'](quoteShellArg,_0x257d9c),_0x32b26c=_0x56a31b['UUlsx'](quoteShellArg,_0x2ed750),_0x381c15=_0x383aa0[_0xeae714(0xc4)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x383aa0[_0xeae714(0xc4)]:'';let _0x2d9766='';if(_0x28d0b1&&_0x28d0b1['unaddressedComments']['length']>0x0){const _0x41c133=_0x28d0b1['unaddressedComments'][_0xeae714(0x74)](_0x2ac4f8=>{const _0x533b72=_0xeae714,_0x1b16f2=new Date(_0x2ac4f8[_0x533b72(0x8c)])['toLocaleDateString'](_0x56a31b[_0x533b72(0x73)],{'month':'short','day':_0x56a31b['HEjUL']}),_0x11f6cb=_0x2ac4f8['authorName']||_0x2ac4f8[_0x533b72(0x109)]||_0x533b72(0xbc),_0xb30a12=_0x2ac4f8[_0x533b72(0xf1)]?_0x533b72(0xaa)+(_0x2ac4f8[_0x533b72(0xf1)][_0x533b72(0xc7)][_0x533b72(0xe5)](_0x56a31b[_0x533b72(0xe0)])[_0x533b72(0x93)]()?.['split'](':')[0x0]||_0x533b72(0xd6))+'>\x20\x22'+(_0x2ac4f8[_0x533b72(0xf1)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x2ac4f8['id']+_0x533b72(0xc8)+_0x11f6cb+'**\x20('+_0x1b16f2+_0x533b72(0xea)+_0x2ac4f8[_0x533b72(0x106)]+'\x22'+_0xb30a12;})[_0xeae714(0x99)]('\x0a');_0x2d9766=_0xeae714(0x80)+_0x41c133;}const _0x3be678=_0x28d0b1?.[_0xeae714(0x9f)]?_0xeae714(0x101)+_0x28d0b1['canonicalFlow']:'',_0x362f76=_0x2f01db?_0xeae714(0xa9)+_0x1387a8+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':_0xeae714(0x75)+_0x293fd8+_0xeae714(0x110),_0x10da4f=_0x293fd8?_0x56a31b[_0xeae714(0xa4)](quoteShellArg,_0x293fd8):'',_0x10abf3=_0x2f01db?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x39a7fe+'\x20open`,\x20then\x20`'+_0x39a7fe+'\x20tracing-start`,\x20then\x20`'+_0x39a7fe+_0xeae714(0xa7)+_0x9ffb84+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x39a7fe+_0xeae714(0xac)+_0x43d7fc+_0xeae714(0x76)+_0x39a7fe+_0xeae714(0xc3)+_0x32b26c+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x39a7fe+_0xeae714(0xe9):_0xeae714(0x81)+_0x39a7fe+_0xeae714(0xdb)+_0x10da4f+'`,\x20then\x20`'+_0x39a7fe+_0xeae714(0x7c)+_0x39a7fe+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x9ffb84+_0xeae714(0xab)+_0x39a7fe+_0xeae714(0xac)+_0x43d7fc+'`\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`'+_0x39a7fe+'\x20screenshot\x20--filename\x20'+_0x32b26c+_0xeae714(0xf0)+_0x39a7fe+'\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',_0x44c9f3=_0x2f01db?_0xeae714(0xbd):'\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.',_0x1a6e2a=_0x310cc6?_0xeae714(0xf7)+_0x310cc6+'\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 _0xeae714(0x108)+_0x383aa0['description']+_0x381c15+_0x2d9766+_0x3be678+_0xeae714(0x92)+_0x5c975a+'\x0a\x0a'+_0x362f76+_0x1a6e2a+'\x0a\x0a'+_0x10abf3+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x39a7fe+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x9ffb84+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x12d104+_0xeae714(0xef)+_0xc741fc+_0xeae714(0xbb)+_0x9ffb84+'`:\x20\x22'+_0x2ed750+_0xeae714(0xe1)+buildCliArtifactPath(_0x9ffb84,'02_button-clicked.png')+_0xeae714(0xe1)+_0x56a31b['rpoib'](buildCliArtifactPath,_0x9ffb84,'03_result-visible.png')+_0xeae714(0x9b)+_0x56a31b['Rykyt'](buildCliArtifactPath,_0x9ffb84,_0xeae714(0xa0))+_0xeae714(0x8e)+_0x44c9f3+_0xeae714(0xdf);}export function summarizeVerifyFeatureCliCommandAvailability(_0x4839e6){const _0x430278=_0x4102,_0x25a264={'HzHcV':function(_0x28c6b9,_0x4ba44b){return _0x28c6b9===_0x4ba44b;}},_0x7e765c=[..._0x4839e6['keys']()][_0x430278(0xaf)]();let _0x3e0b6d=0x0;for(const _0x336496 of _0x4839e6[_0x430278(0x88)]()){_0x3e0b6d+=_0x336496;}return{'cliCommandCount':_0x3e0b6d,'cliCommandsSeen':_0x7e765c,'noCliCommandsCalled':_0x25a264['HzHcV'](_0x3e0b6d,0x0)};}function _0x4102(_0x360e04,_0x44d14a){_0x360e04=_0x360e04-0x73;const _0x298d0c=_0x298d();let _0x41020b=_0x298d0c[_0x360e04];return _0x41020b;}export function createVerifyFeatureCliHooks(_0x5bceda){const _0x37ca1e=_0x4102,_0x1aee38={'wUbFY':'PostToolUse','LXPbX':function(_0x3f6439,_0x48b4b3){return _0x3f6439(_0x48b4b3);},'MlpuB':function(_0x1e5f05,_0x1db62f){return _0x1e5f05+_0x1db62f;},'Hlxoh':_0x37ca1e(0xee),'DjvuV':'snapshot','CsCkY':function(_0x5ee2e0,_0x4a01a5,_0x1a7a2b,_0x469a4a){return _0x5ee2e0(_0x4a01a5,_0x1a7a2b,_0x469a4a);},'KOsQD':_0x37ca1e(0xd2),'VdwNK':_0x37ca1e(0xfe)},_0x1cb553=new Map(),_0x21b50a=async _0x3c0f3d=>{const _0x207938=_0x37ca1e;if(_0x3c0f3d[_0x207938(0xb0)]!==_0x1aee38[_0x207938(0x10c)])return{};const _0x4cda8b=_0x3c0f3d;if(_0x4cda8b[_0x207938(0x10d)]!=='Bash')return{};const _0x6dc471=_0x4cda8b[_0x207938(0xfc)],_0x418be7=_0x1aee38['LXPbX'](extractBashCommand,_0x6dc471);if(!_0x418be7)return{};const _0x5a6d60=parsePlaywrightCliCommand(_0x418be7);if(!_0x5a6d60)return{};return _0x1cb553[_0x207938(0xb3)](_0x5a6d60,_0x1aee38[_0x207938(0xa5)](_0x1cb553['get'](_0x5a6d60)||0x0,0x1)),_0x5bceda['trackPhaseStart']('tool_call',{'transport':_0x207938(0xfe),'toolName':_0x5a6d60}),_0x5bceda[_0x207938(0xb4)](_0x1aee38['Hlxoh'],{'transport':'playwright-cli','toolName':_0x5a6d60,'bashCommandPreview':_0x1aee38[_0x207938(0xa1)](truncatePreview,_0x418be7)}),_0x5a6d60!==_0x1aee38['DjvuV']&&console[_0x207938(0x96)](_0x1aee38[_0x207938(0xce)](formatPlaywrightCliConsoleLogMessage,_0x6dc471,_0x418be7,_0x5a6d60)),{};},_0xde81a9=async _0xcfb56=>{const _0x10ec70=_0x37ca1e;if(_0xcfb56[_0x10ec70(0xb0)]!==_0x1aee38[_0x10ec70(0xf2)])return{};const _0x2afe62=_0xcfb56;if(_0x2afe62['tool_name']!=='Bash')return{};return await _0x5bceda[_0x10ec70(0xe2)]('tool_failure',_0x2afe62[_0x10ec70(0xfb)],{'transport':_0x1aee38[_0x10ec70(0xcf)],'toolName':'Bash'}),{};};return{'postToolUseHook':_0x21b50a,'postToolUseFailureHook':_0xde81a9,'commandCounts':_0x1cb553};}async function runPlaywrightCliLifecycleCommand(_0x4e8d2a){const _0xe86e37=_0x4102,_0x2aec76={'XpAkz':function(_0x3d7f8c,_0x2bd1f2){return _0x3d7f8c??_0x2bd1f2;},'cFkCx':function(_0x25d41f,_0x51707f,_0xb11bae){return _0x25d41f(_0x51707f,_0xb11bae);}},{sessionId:_0x172e47,configPath:_0x20655d,commandArgs:_0x50e750,env:_0x13f3ea,telemetry:_0x4d7f12,phase:_0x4aa514,metadata:_0x3a2165,timeoutMs:_0x38c4ea}=_0x4e8d2a;_0x4d7f12[_0xe86e37(0x102)](_0x4aa514,_0x3a2165);try{const _0x5c57b6=await runPlaywrightCliCommand({'sessionId':_0x172e47,'configPath':_0x20655d,'commandArgs':_0x50e750,'cwd':process['cwd'](),'env':_0x13f3ea,'timeoutMs':_0x2aec76[_0xe86e37(0xa3)](_0x38c4ea,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x4d7f12[_0xe86e37(0xb4)](_0x4aa514,{..._0x3a2165,'subcommand':_0x5c57b6[_0xe86e37(0xcd)][_0xe86e37(0x104)],'stdoutPreview':truncatePreview(_0x5c57b6[_0xe86e37(0xa8)],0x7d0),'stderrPreview':_0x2aec76[_0xe86e37(0xf6)](truncatePreview,_0x5c57b6[_0xe86e37(0x103)],0x7d0)});}catch(_0x4a21c1){await _0x4d7f12['trackPhaseError'](_0x4aa514,_0x4a21c1,_0x3a2165);throw _0x4a21c1;}}export async function finalizeVerifyFeatureCliSession(_0x44d305){const _0x1d183d=_0x4102,_0x20d856={'tMECo':'tracing-stop','TjCHt':_0x1d183d(0xc5),'IPVTv':'video-stop','AioTZ':function(_0x4c64d8,_0x748f4,_0x54f7bc){return _0x4c64d8(_0x748f4,_0x54f7bc);},'VVZDB':_0x1d183d(0xdd)},{telemetry:_0x49ddcf,sessionId:_0x542441,configPath:_0xfc829a,cliArtifactDir:_0x51dcb6,env:_0x53fa4e,transportMetadata:_0x102f25}=_0x44d305,_0x4bf755=[{'phase':'playwright_cli_tracing_stop','commandArgs':[_0x20d856[_0x1d183d(0x78)]]},{'phase':_0x20d856['TjCHt'],'commandArgs':[_0x20d856['IPVTv'],'--filename='+_0x20d856['AioTZ'](buildCliArtifactPath,_0x51dcb6,'session-recording.webm')]},{'phase':_0x1d183d(0xba),'commandArgs':[_0x20d856[_0x1d183d(0x87)]]}];for(const _0x2fe585 of _0x4bf755){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x542441,'configPath':_0xfc829a,'commandArgs':[..._0x2fe585['commandArgs']],'env':_0x53fa4e,'telemetry':_0x49ddcf,'phase':_0x2fe585[_0x1d183d(0x83)],'metadata':_0x102f25});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x35ad7a){const _0x2796c7=_0x4102,_0x4dd46f={'IICwa':function(_0xab5970,_0x36184e,_0x60f629){return _0xab5970(_0x36184e,_0x60f629);}},_0x4d1a4e=[_0x2796c7(0xd9),'trace.trace.zip'];for(const _0x1f5de0 of _0x4d1a4e){const _0x54f573=_0x4dd46f[_0x2796c7(0x79)](join,_0x35ad7a,_0x1f5de0);try{return{'buffer':await readFile(_0x54f573),'source':_0x54f573};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x537b06){const _0x1b7ee3=_0x4102,_0x1e457f={'UlCad':function(_0x460f4a,_0xe5cac7,_0x3a3072){return _0x460f4a(_0xe5cac7,_0x3a3072);},'tbETT':function(_0x398774,_0x13490e){return _0x398774(_0x13490e);},'vdtbn':function(_0x19a1c3,_0x49b01e){return _0x19a1c3+_0x49b01e;},'hOkZB':function(_0x226dbf,_0x16b854){return _0x226dbf===_0x16b854;}},{cwd:_0x1c451e,cliArtifactDir:_0x122636,startTime:_0x100d05}=_0x537b06,_0x21b19a=[];await mkdir(_0x122636,{'recursive':!![]});const _0x1c2958=await _0x1e457f['UlCad'](readdir,_0x1c451e,{'withFileTypes':!![]});for(const _0x5d5d33 of _0x1c2958){if(!_0x5d5d33[_0x1b7ee3(0xf4)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x5d5d33[_0x1b7ee3(0xc0)]))continue;const _0xe389d9=join(_0x1c451e,_0x5d5d33[_0x1b7ee3(0xc0)]),_0x1bd93f=await _0x1e457f[_0x1b7ee3(0xed)](stat,_0xe389d9);if(_0x1e457f[_0x1b7ee3(0xc9)](_0x1bd93f['mtimeMs'],0x7d0)<_0x100d05)continue;const _0x3f1e67=buildCliArtifactPath(_0x122636,_0x5d5d33[_0x1b7ee3(0xc0)]);if(_0x1e457f['hOkZB'](_0xe389d9,_0x3f1e67))continue;await rename(_0xe389d9,_0x3f1e67),_0x21b19a[_0x1b7ee3(0xd8)](_0x5d5d33['name']);}return _0x21b19a[_0x1b7ee3(0xaf)]();}
|
|
1
|
+
(function(_0x58b9eb,_0x3a6467){const _0x31a10d=_0x9528,_0x3d8b0b=_0x58b9eb();while(!![]){try{const _0x191589=-parseInt(_0x31a10d(0xf0))/0x1*(parseInt(_0x31a10d(0x114))/0x2)+parseInt(_0x31a10d(0x142))/0x3+-parseInt(_0x31a10d(0x116))/0x4*(parseInt(_0x31a10d(0xd6))/0x5)+-parseInt(_0x31a10d(0xdb))/0x6*(-parseInt(_0x31a10d(0xd4))/0x7)+-parseInt(_0x31a10d(0xfd))/0x8+-parseInt(_0x31a10d(0xe5))/0x9+parseInt(_0x31a10d(0x127))/0xa;if(_0x191589===_0x3a6467)break;else _0x3d8b0b['push'](_0x3d8b0b['shift']());}catch(_0xad26d0){_0x3d8b0b['push'](_0x3d8b0b['shift']());}}}(_0x4b71,0x7928b));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';const PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,PLAYWRIGHT_CLI_PREVIEW_LIMIT=0xf0,VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|session-recording(?:-\d+)?\.webm|trace(?:\.trace)?(?:-\d+)?\.zip|current_snap\.ya?ml)$/i;function truncatePreview(_0x442ca4,_0x32b17e=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x252d6a=_0x9528,_0x125cac={'RfrBr':function(_0x598f66,_0x466a0d){return _0x598f66>_0x466a0d;},'WVgKa':function(_0x5347ab,_0x3da66a){return _0x5347ab+_0x3da66a;},'oyTnB':_0x252d6a(0x141)};return _0x125cac['RfrBr'](_0x442ca4['length'],_0x32b17e)?_0x125cac[_0x252d6a(0x149)](_0x442ca4['slice'](0x0,_0x32b17e),_0x125cac[_0x252d6a(0x128)]):_0x442ca4;}function buildCliArtifactPath(_0x3531df,_0x3862f4){return join(_0x3531df,_0x3862f4);}function toStepDisplayName(_0x156582){const _0x32016f=_0x9528,_0x15c7d3=basename(_0x156582)[_0x32016f(0x11c)](/\.(?:png|ya?ml)$/i,'')[_0x32016f(0x11c)](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x15c7d3,'isKeyStep':/^key_/i[_0x32016f(0xf2)](basename(_0x156582))};}function extractShellValue(_0x1595f2){if(!_0x1595f2)return null;return _0x1595f2[0x1]??_0x1595f2[0x2]??_0x1595f2[0x3]??null;}function extractFilenameOption(_0x48632a){return extractShellValue(_0x48632a['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x3f6faf,_0x2d6d19){const _0xcb6f39=_0x9528,_0x23ed3b={'RwUhu':_0xcb6f39(0x138),'EmDuE':function(_0x2303d8,_0x334c7a){return _0x2303d8(_0x334c7a);}},_0xf1d77c=_0x2d6d19[_0xcb6f39(0x11c)](/[.*+?^${}()|[\]\\]/g,_0x23ed3b[_0xcb6f39(0x131)]);return _0x23ed3b['EmDuE'](extractShellValue,_0x3f6faf['match'](new RegExp(_0xcb6f39(0x148)+_0xf1d77c+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x4516fc){const _0xb6d727=_0x9528;if(!_0x4516fc)return'target';if(/^e\d+$/i[_0xb6d727(0xf2)](_0x4516fc))return _0xb6d727(0x140)+_0x4516fc;return JSON['stringify'](truncatePreview(_0x4516fc,0x78));}function formatPlaywrightCliLog(_0x27f6e1,_0x2804f0){const _0x313274=_0x9528,_0x206118={'olQcr':function(_0x5c2455,_0x44b0e6,_0x5b0ed3){return _0x5c2455(_0x44b0e6,_0x5b0ed3);},'wkLze':_0x313274(0x124),'UjNQh':'start\x20video\x20recording','zuheY':function(_0x79e913,_0x422600){return _0x79e913(_0x422600);},'sDuzt':_0x313274(0x11e),'icRuS':function(_0x6af0c,_0x2dfaef){return _0x6af0c(_0x2dfaef);},'GZqYa':_0x313274(0xf8),'zIMpF':'press','mnytA':function(_0x3bca72,_0x2881c7){return _0x3bca72(_0x2881c7);},'HpAmW':_0x313274(0xc8),'FPBvd':_0x313274(0xcc),'frEXX':function(_0x5be533,_0x5c0f1f,_0xdc1ce4){return _0x5be533(_0x5c0f1f,_0xdc1ce4);},'Zsqyf':_0x313274(0xda),'QzhXu':'select\x20tab'};switch(_0x2804f0){case _0x313274(0x100):{const _0x275c8b=_0x206118['olQcr'](extractFirstCommandArgument,_0x27f6e1,_0x2804f0);return _0x275c8b?_0x313274(0xeb)+_0x275c8b:'open\x20browser';}case'tracing-start':return'start\x20tracing';case _0x313274(0x11a):return'stop\x20tracing';case _0x206118[_0x313274(0xf5)]:return _0x206118[_0x313274(0x113)];case _0x313274(0xf4):return'stop\x20video\x20recording';case _0x313274(0xd1):{const _0x2032c6=_0x206118['zuheY'](extractFilenameOption,_0x27f6e1);if(!_0x2032c6)return _0x206118['sDuzt'];const {name:_0x4aed89}=toStepDisplayName(_0x2032c6);return'capture\x20snapshot\x20`'+_0x4aed89+'`';}case'screenshot':{const _0x2cf0ec=_0x206118['icRuS'](extractFilenameOption,_0x27f6e1);if(!_0x2cf0ec)return'capture\x20screenshot';const {name:_0x5cfbb6,isKeyStep:_0x2092cd}=toStepDisplayName(_0x2cf0ec);return _0x2092cd?'capture\x20key\x20step\x20`'+_0x5cfbb6+'`':_0x313274(0x101)+_0x5cfbb6+'`';}case _0x313274(0xe7):return'click\x20'+formatCommandTarget(extractFirstCommandArgument(_0x27f6e1,_0x2804f0));case _0x206118['GZqYa']:return _0x313274(0x102)+formatCommandTarget(extractFirstCommandArgument(_0x27f6e1,_0x2804f0));case _0x313274(0xed):return _0x313274(0x146)+formatCommandTarget(extractFirstCommandArgument(_0x27f6e1,_0x2804f0));case _0x206118['zIMpF']:return _0x313274(0xd3)+_0x206118[_0x313274(0xe0)](formatCommandTarget,_0x206118[_0x313274(0xd9)](extractFirstCommandArgument,_0x27f6e1,_0x2804f0));case'run-code':return _0x206118['HpAmW'];case _0x206118[_0x313274(0xde)]:{const _0x188d62=_0x206118['frEXX'](extractFirstCommandArgument,_0x27f6e1,_0x2804f0);return _0x188d62?_0x313274(0x12e)+_0x188d62:_0x206118['Zsqyf'];}case _0x313274(0x110):{const _0x41d012=extractFirstCommandArgument(_0x27f6e1,_0x2804f0);return _0x41d012?_0x313274(0xe8)+_0x41d012:_0x206118[_0x313274(0xcd)];}default:return _0x2804f0;}}function extractPlaywrightCliToolDescription(_0x4e9048){const _0x50fe26=_0x9528,_0xbb10b2={'bUtvR':function(_0x56929c,_0x549b4f){return _0x56929c!==_0x549b4f;},'ODenQ':_0x50fe26(0x13e),'vdpLD':function(_0x5bef53,_0x3293d1){return _0x5bef53>_0x3293d1;}},_0x4a258f=_0x4e9048['description'];if(_0xbb10b2['bUtvR'](typeof _0x4a258f,_0xbb10b2['ODenQ']))return null;const _0x1df10d=_0x4a258f['trim']()['replace'](/\s+/g,'\x20');return _0xbb10b2['vdpLD'](_0x1df10d['length'],0x0)?_0x1df10d:null;}export function formatPlaywrightCliConsoleLogMessage(_0x505b9a,_0x1b4c2d,_0x1f80e7){const _0x5d481a=_0x9528,_0x3a5907={'PHzjx':function(_0x10371f,_0x2c4ef8,_0x46ce31){return _0x10371f(_0x2c4ef8,_0x46ce31);}},_0x489442=_0x3a5907[_0x5d481a(0x105)](formatPlaywrightCliLog,_0x1b4c2d,_0x1f80e7),_0x5e67a2=extractPlaywrightCliToolDescription(_0x505b9a);if(!_0x5e67a2)return'[playwright-cli]\x20'+_0x489442;if(process['env'][_0x5d481a(0xf1)])return'[ranger-verification-agent]\x20'+_0x5e67a2+'\x20('+_0x489442+')';return'[ranger-verification-agent]\x20'+_0x5e67a2;}export function buildVerifyFeatureCliDebugPrompt(_0x4ab711,_0x51f5cf){const _0xa2bb53=_0x9528,_0x584fd9={'XoKWz':'00_mozilla-homepage.yml','QhItA':function(_0x30b8ed,_0x50a68b,_0x46f222){return _0x30b8ed(_0x50a68b,_0x46f222);},'VYkoI':function(_0x167ed6,_0x3c721e,_0x34ff98){return _0x167ed6(_0x3c721e,_0x34ff98);},'dhUXx':_0xa2bb53(0x119),'fEpBv':function(_0xbfe043,_0x2c51e1){return _0xbfe043(_0x2c51e1);}},_0xb1538e=buildCliArtifactPath(_0x51f5cf,_0x584fd9[_0xa2bb53(0xd0)]),_0x53f4de=buildCliArtifactPath(_0x51f5cf,_0xa2bb53(0x112)),_0x6ef602=_0x584fd9[_0xa2bb53(0xff)](buildCliArtifactPath,_0x51f5cf,'02_learn-more.yml'),_0x3c14eb=_0x584fd9[_0xa2bb53(0xfa)](buildCliArtifactPath,_0x51f5cf,_0x584fd9['dhUXx']),_0x30d5c0=quoteShellArg(_0xb1538e),_0x351279=quoteShellArg(_0x53f4de),_0x19b9bc=quoteShellArg(_0x6ef602),_0x291cce=_0x584fd9[_0xa2bb53(0x145)](quoteShellArg,_0x3c14eb);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x4ab711+'\x0a\x0a1.\x20Run\x20`'+_0x4ab711+_0xa2bb53(0x107)+_0x4ab711+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x4ab711+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x51f5cf+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x4ab711+'\x20snapshot\x20--filename\x20'+_0x30d5c0+'`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`'+_0x4ab711+_0xa2bb53(0x120)+_0x351279+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x4ab711+'\x20snapshot\x20--filename\x20'+_0x19b9bc+'`\x0a9.\x20Run\x20`'+_0x4ab711+_0xa2bb53(0x120)+_0x291cce+_0xa2bb53(0xdf);}export function buildVerifyFeatureCliPrompt(_0x55f668){const _0x1fb9dd=_0x9528,_0x59f4e2={'YQWBS':_0x1fb9dd(0xee),'YUQvR':_0x1fb9dd(0xc5),'PcyVS':'\x20>\x20','hIVdH':function(_0xdff058,_0x2a1f51,_0x157212){return _0xdff058(_0x2a1f51,_0x157212);},'QByGG':'02_state.yml','MTvEr':function(_0x101ece,_0x25565c,_0xb3e214){return _0x101ece(_0x25565c,_0xb3e214);},'bjruA':_0x1fb9dd(0x134),'hCvMO':function(_0x5ca88a,_0x5f1d49,_0x35a09e){return _0x5ca88a(_0x5f1d49,_0x35a09e);},'vguow':function(_0x135016,_0x215e1b){return _0x135016(_0x215e1b);},'wsWkM':function(_0x46759b,_0x43f9bf){return _0x46759b(_0x43f9bf);},'JxaED':function(_0xc7ec0b,_0x3c5aad){return _0xc7ec0b(_0x3c5aad);},'xpTXJ':function(_0x39d270,_0x3112ca){return _0x39d270>_0x3112ca;},'WZkFF':function(_0x1ef5d0,_0x40d349){return _0x1ef5d0(_0x40d349);},'LcAvy':'03_result-visible.png'},{checklistItem:_0x5736c1,itemFeedback:_0x3bb43e,taskDescription:_0x68c87b,cliCommandPrefix:_0x2d2b63,cliArtifactDir:_0x40ffe7,isCdpMode:_0x26a2a6,url:_0x13fe4a,cdpEndpoint:_0x29ce28,loginInstructions:_0x3891c6}=_0x55f668,_0x45bb48=buildCliArtifactPath(_0x40ffe7,_0x1fb9dd(0x125)),_0x2d3744=_0x59f4e2[_0x1fb9dd(0x10e)](buildCliArtifactPath,_0x40ffe7,_0x59f4e2['QByGG']),_0x493c0f=_0x59f4e2[_0x1fb9dd(0x13d)](buildCliArtifactPath,_0x40ffe7,_0x59f4e2['bjruA']),_0x487f9a=_0x59f4e2['hCvMO'](buildCliArtifactPath,_0x40ffe7,_0x1fb9dd(0xea)),_0x5e0c41=_0x59f4e2[_0x1fb9dd(0xfb)](quoteShellArg,_0x45bb48),_0x559e21=_0x59f4e2['wsWkM'](quoteShellArg,_0x2d3744),_0x232dbe=quoteShellArg(_0x493c0f),_0x343708=_0x59f4e2['JxaED'](quoteShellArg,_0x487f9a),_0x265b87=_0x5736c1[_0x1fb9dd(0xd8)]?_0x1fb9dd(0xc4)+_0x5736c1['notes']:'';let _0x361982='';if(_0x3bb43e&&_0x59f4e2[_0x1fb9dd(0xf7)](_0x3bb43e[_0x1fb9dd(0x132)]['length'],0x0)){const _0x165d44=_0x3bb43e[_0x1fb9dd(0x132)][_0x1fb9dd(0x139)](_0x474c1d=>{const _0x28bd6b=_0x1fb9dd,_0x5b75f1=new Date(_0x474c1d['createdAt'])['toLocaleDateString'](_0x59f4e2[_0x28bd6b(0xcf)],{'month':'short','day':_0x28bd6b(0xe6)}),_0x9539ed=_0x474c1d['authorName']||_0x474c1d['authorEmail']||_0x59f4e2['YUQvR'],_0x933c98=_0x474c1d[_0x28bd6b(0xf3)]?_0x28bd6b(0xe4)+(_0x474c1d['domRef']['selector']['split'](_0x59f4e2['PcyVS'])['pop']()?.['split'](':')[0x0]||'element')+_0x28bd6b(0x117)+(_0x474c1d['domRef'][_0x28bd6b(0x103)]||'')[_0x28bd6b(0xf9)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x474c1d['id']+']\x20**'+_0x9539ed+_0x28bd6b(0x122)+_0x5b75f1+_0x28bd6b(0x13f)+_0x474c1d['content']+'\x22'+_0x933c98;})[_0x1fb9dd(0x137)]('\x0a');_0x361982=_0x1fb9dd(0x109)+_0x165d44;}const _0x188c10=_0x3bb43e?.[_0x1fb9dd(0xc3)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x3bb43e['canonicalFlow']:'',_0x5d3e4f=_0x26a2a6?_0x1fb9dd(0x13b)+_0x29ce28+_0x1fb9dd(0xd2):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x13fe4a+'\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',_0x4c3d27=_0x13fe4a?_0x59f4e2['WZkFF'](quoteShellArg,_0x13fe4a):'',_0x591333=_0x26a2a6?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x2d2b63+_0x1fb9dd(0x10c)+_0x2d2b63+_0x1fb9dd(0xe2)+_0x2d2b63+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x40ffe7+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x2d2b63+_0x1fb9dd(0xdd)+_0x5e0c41+'`\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`'+_0x2d2b63+_0x1fb9dd(0x120)+_0x343708+_0x1fb9dd(0xc0)+_0x2d2b63+'\x20run-code\x20\x22<playwright\x20code>\x22`.\x0a7.\x20Do\x20not\x20run\x20`close`,\x20`tracing-stop`,\x20or\x20`video-stop`;\x20the\x20host\x20finalizes\x20the\x20session\x20and\x20artifacts.\x0a8.\x20After\x20completing\x20the\x20verification,\x20evaluate\x20whether\x20the\x20result\x20adequately\x20verifies\x20the\x20scenario':'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x2d2b63+_0x1fb9dd(0x10f)+_0x4c3d27+'`,\x20then\x20`'+_0x2d2b63+_0x1fb9dd(0xe2)+_0x2d2b63+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x40ffe7+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x2d2b63+_0x1fb9dd(0xdd)+_0x5e0c41+_0x1fb9dd(0xc1)+_0x2d2b63+_0x1fb9dd(0x120)+_0x343708+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x2d2b63+_0x1fb9dd(0x106),_0x1c747c=_0x26a2a6?_0x1fb9dd(0x143):'\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.',_0x194daa=_0x3891c6?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x3891c6+'\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'+_0x5736c1[_0x1fb9dd(0x13a)]+_0x265b87+_0x361982+_0x188c10+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x68c87b+'\x0a\x0a'+_0x5d3e4f+_0x194daa+'\x0a\x0a'+_0x591333+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x2d2b63+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x40ffe7+_0x1fb9dd(0x135)+_0x559e21+_0x1fb9dd(0x10a)+_0x232dbe+'`\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`'+_0x40ffe7+'`:\x20\x22'+_0x487f9a+'\x22,\x20\x22'+buildCliArtifactPath(_0x40ffe7,_0x1fb9dd(0xd5))+_0x1fb9dd(0x118)+buildCliArtifactPath(_0x40ffe7,_0x59f4e2[_0x1fb9dd(0x12b)])+'\x22\x0a-\x20Number\x20prefixes\x20(01_,\x2002_,\x20etc.)\x20help\x20maintain\x20chronological\x20order\x0a-\x20For\x20KEY\x20MOMENTS\x20that\x20prove\x20the\x20scenario\x20is\x20complete,\x20prefix\x20with\x20\x22key_\x22:\x20\x22'+buildCliArtifactPath(_0x40ffe7,_0x1fb9dd(0x13c))+_0x1fb9dd(0xef)+_0x1c747c+'\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(_0x541bd9){const _0x19de5a=_0x9528,_0x168bcd=[..._0x541bd9[_0x19de5a(0xcb)]()][_0x19de5a(0xca)]();let _0x3a83d4=0x0;for(const _0x36800c of _0x541bd9[_0x19de5a(0xc9)]()){_0x3a83d4+=_0x36800c;}return{'cliCommandCount':_0x3a83d4,'cliCommandsSeen':_0x168bcd,'noCliCommandsCalled':_0x3a83d4===0x0};}export function createVerifyFeatureCliHooks(_0x2b8a83){const _0x476779=_0x9528,_0x26105e={'tVCPI':function(_0x38b32c,_0x47bbdd){return _0x38b32c!==_0x47bbdd;},'oCJYc':function(_0x3e2c20,_0x33d1b4){return _0x3e2c20!==_0x33d1b4;},'uhkIN':_0x476779(0x144),'LQzYI':function(_0xa00261,_0x5bf3ee){return _0xa00261(_0x5bf3ee);},'frhRR':function(_0x27ec6e,_0xf0db2d){return _0x27ec6e+_0xf0db2d;},'jRbJY':'playwright-cli','FIirE':function(_0x413938,_0x4753a5){return _0x413938(_0x4753a5);},'ZUUlb':'snapshot'},_0x377721=new Map(),_0x646475=async _0x547c39=>{const _0x21bcaf=_0x476779;if(_0x26105e[_0x21bcaf(0x12a)](_0x547c39[_0x21bcaf(0x115)],_0x21bcaf(0xc2)))return{};const _0x26291d=_0x547c39;if(_0x26105e['oCJYc'](_0x26291d[_0x21bcaf(0x10d)],_0x26105e['uhkIN']))return{};const _0x45a874=_0x26291d[_0x21bcaf(0xf6)],_0x2eaff2=extractBashCommand(_0x45a874);if(!_0x2eaff2)return{};const _0x2ffd76=_0x26105e['LQzYI'](parsePlaywrightCliCommand,_0x2eaff2);if(!_0x2ffd76)return{};return _0x377721[_0x21bcaf(0x11b)](_0x2ffd76,_0x26105e['frhRR'](_0x377721['get'](_0x2ffd76)||0x0,0x1)),_0x2b8a83['trackPhaseStart'](_0x21bcaf(0x11f),{'transport':_0x26105e[_0x21bcaf(0x130)],'toolName':_0x2ffd76}),_0x2b8a83['trackPhaseEnd']('tool_call',{'transport':_0x21bcaf(0x123),'toolName':_0x2ffd76,'bashCommandPreview':_0x26105e['FIirE'](truncatePreview,_0x2eaff2)}),_0x2ffd76!==_0x26105e['ZUUlb']&&console['log'](formatPlaywrightCliConsoleLogMessage(_0x45a874,_0x2eaff2,_0x2ffd76)),{};},_0x8729b4=async _0x96c991=>{const _0x580762=_0x476779;if(_0x96c991['hook_event_name']!=='PostToolUseFailure')return{};const _0xf05943=_0x96c991;if(_0xf05943[_0x580762(0x10d)]!==_0x26105e[_0x580762(0x12f)])return{};return await _0x2b8a83['trackPhaseError'](_0x580762(0xd7),_0xf05943['error'],{'transport':'playwright-cli','toolName':'Bash'}),{};};return{'postToolUseHook':_0x646475,'postToolUseFailureHook':_0x8729b4,'commandCounts':_0x377721};}async function runPlaywrightCliLifecycleCommand(_0x4d6925){const _0x3f7d36=_0x9528,_0x30c346={'iJwwV':function(_0x2547d5,_0x8d8771){return _0x2547d5(_0x8d8771);},'KLUCB':function(_0x41c9c8,_0x537a77){return _0x41c9c8??_0x537a77;},'QuNrj':function(_0x211653,_0x28e9eb,_0x57193a){return _0x211653(_0x28e9eb,_0x57193a);}},{sessionId:_0x4a553a,configPath:_0x25ec22,commandArgs:_0x3fbaf5,env:_0x17be28,telemetry:_0x210b1d,phase:_0x191bde,metadata:_0x35d3d,timeoutMs:_0x1d85dd}=_0x4d6925;_0x210b1d[_0x3f7d36(0xfc)](_0x191bde,_0x35d3d);try{const _0x2133ac=await _0x30c346['iJwwV'](runPlaywrightCliCommand,{'sessionId':_0x4a553a,'configPath':_0x25ec22,'commandArgs':_0x3fbaf5,'cwd':process[_0x3f7d36(0x12d)](),'env':_0x17be28,'timeoutMs':_0x30c346[_0x3f7d36(0xc6)](_0x1d85dd,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x210b1d['trackPhaseEnd'](_0x191bde,{..._0x35d3d,'subcommand':_0x2133ac['invocation']['subcommand'],'stdoutPreview':_0x30c346[_0x3f7d36(0x12c)](truncatePreview,_0x2133ac[_0x3f7d36(0xc7)],0x7d0),'stderrPreview':truncatePreview(_0x2133ac[_0x3f7d36(0x108)],0x7d0)});}catch(_0x28e785){await _0x210b1d[_0x3f7d36(0x10b)](_0x191bde,_0x28e785,_0x35d3d);throw _0x28e785;}}function _0x4b71(){const _0x4f46da=['tab-new','QzhXu','playwright_cli_tracing_stop','YQWBS','XoKWz','snapshot','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','press\x20','3409RUOngB','02_button-clicked.png','165WyQcES','tool_failure','notes','olQcr','open\x20new\x20tab','6906DBNwed','JEZqH','\x20snapshot\x20--filename\x20','FPBvd','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','mnytA','PjYal','\x20tracing-start`,\x20then\x20`','playwright_cli_close','\x20(on\x20element:\x20<','1309284SrsFcq','numeric','click','select\x20tab\x20','trace.zip','01_initial-state.png','open\x20','XMtVC','fill','en-US','\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','295882PmZRNr','DEBUG','test','domRef','video-stop','wkLze','tool_input','xpTXJ','check','slice','VYkoI','vguow','trackPhaseStart','1429392RPOJIz','xuWar','QhItA','open','capture\x20step\x20`','check\x20','textContent','push','PHzjx','\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','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','stderr','\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','`\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','trackPhaseError','\x20open`,\x20then\x20`','tool_name','hIVdH','\x20open\x20','tab-select','PDFdU','01_mozilla-homepage.png','UjNQh','2KEbzcP','hook_event_name','49024oGGLUY','>\x20\x22','\x22,\x20\x22','03_learn-more.png','tracing-stop','set','replace','hVwyz','capture\x20snapshot','tool_call','\x20screenshot\x20--filename\x20','commandArgs','**\x20(','playwright-cli','video-start','01_initial.yml','playwright_cli_video_stop','2468630nHBDQO','oyTnB','name','tVCPI','LcAvy','QuNrj','cwd','open\x20new\x20tab\x20','uhkIN','jRbJY','RwUhu','unaddressedComments','isFile','key_03_success-state.png','`\x0a-\x20`snapshot\x20--filename\x20','--filename=','join','\x5c$&','map','description','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','key_04_success-state.png','MTvEr','string','):\x20\x22','ref\x20','...','2140041QYEtAU','\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.','Bash','fEpBv','fill\x20','xtaOW','(?:^|\x5cs)','WVgKa','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','`\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`','PostToolUse','canonicalFlow','\x0a\x0a##\x20Additional\x20Notes\x0a','Reviewer','KLUCB','stdout','run\x20custom\x20Playwright\x20code','values','sort','keys'];_0x4b71=function(){return _0x4f46da;};return _0x4b71();}export async function finalizeVerifyFeatureCliSession(_0x200bf1){const _0x501f41=_0x9528,_0x21c14b={'hVwyz':_0x501f41(0x11a),'PjYal':_0x501f41(0x126),'PDFdU':'close'},{telemetry:_0x5068c4,sessionId:_0x500a7e,configPath:_0x663537,cliArtifactDir:_0x3a7151,env:_0xc893ed,transportMetadata:_0x4ba446}=_0x200bf1,_0x329339=[{'phase':_0x501f41(0xce),'commandArgs':[_0x21c14b[_0x501f41(0x11d)]]},{'phase':_0x21c14b[_0x501f41(0xe1)],'commandArgs':['video-stop',_0x501f41(0x136)+buildCliArtifactPath(_0x3a7151,'session-recording.webm')]},{'phase':_0x501f41(0xe3),'commandArgs':[_0x21c14b[_0x501f41(0x111)]]}];for(const _0x28dddb of _0x329339){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x500a7e,'configPath':_0x663537,'commandArgs':[..._0x28dddb[_0x501f41(0x121)]],'env':_0xc893ed,'telemetry':_0x5068c4,'phase':_0x28dddb['phase'],'metadata':_0x4ba446});}catch{}}}function _0x9528(_0x316121,_0x2a11ac){_0x316121=_0x316121-0xc0;const _0x4b7133=_0x4b71();let _0x9528b1=_0x4b7133[_0x316121];return _0x9528b1;}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x209a56){const _0x493b51=_0x9528,_0x5a3dc3={'xuWar':'trace.trace.zip'},_0x5352b7=[_0x493b51(0xe9),_0x5a3dc3[_0x493b51(0xfe)]];for(const _0x2877db of _0x5352b7){const _0x1406d1=join(_0x209a56,_0x2877db);try{return{'buffer':await readFile(_0x1406d1),'source':_0x1406d1};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x45fd16){const _0x309cc3=_0x9528,_0x101032={'xtaOW':function(_0x1b50fd,_0x200965){return _0x1b50fd(_0x200965);},'JEZqH':function(_0x22cb42,_0x4062b4){return _0x22cb42<_0x4062b4;},'XMtVC':function(_0x2b6fbc,_0x42838f,_0x5448f1){return _0x2b6fbc(_0x42838f,_0x5448f1);},'AOURf':function(_0x505b39,_0x5574b3){return _0x505b39===_0x5574b3;}},{cwd:_0x4f6a6a,cliArtifactDir:_0x5753ec,startTime:_0x25da29}=_0x45fd16,_0x451a5d=[];await mkdir(_0x5753ec,{'recursive':!![]});const _0x2d3bdd=await readdir(_0x4f6a6a,{'withFileTypes':!![]});for(const _0x461795 of _0x2d3bdd){if(!_0x461795[_0x309cc3(0x133)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x309cc3(0xf2)](_0x461795[_0x309cc3(0x129)]))continue;const _0x51817d=join(_0x4f6a6a,_0x461795[_0x309cc3(0x129)]),_0x1de5a0=await _0x101032[_0x309cc3(0x147)](stat,_0x51817d);if(_0x101032[_0x309cc3(0xdc)](_0x1de5a0['mtimeMs']+0x7d0,_0x25da29))continue;const _0x5f394d=_0x101032[_0x309cc3(0xec)](buildCliArtifactPath,_0x5753ec,_0x461795['name']);if(_0x101032['AOURf'](_0x51817d,_0x5f394d))continue;await _0x101032['XMtVC'](rename,_0x51817d,_0x5f394d),_0x451a5d[_0x309cc3(0x104)](_0x461795['name']);}return _0x451a5d['sort']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x34b49d,_0x24fd1f){const _0x369301=_0x17ce,_0x3216d2=_0x34b49d();while(!![]){try{const _0x1841ec=-parseInt(_0x369301(0x1b1))/0x1+-parseInt(_0x369301(0x1eb))/0x2+parseInt(_0x369301(0x236))/0x3+-parseInt(_0x369301(0x184))/0x4*(-parseInt(_0x369301(0x179))/0x5)+-parseInt(_0x369301(0x1e6))/0x6+-parseInt(_0x369301(0x23c))/0x7+parseInt(_0x369301(0x1d0))/0x8*(parseInt(_0x369301(0x1e8))/0x9);if(_0x1841ec===_0x24fd1f)break;else _0x3216d2['push'](_0x3216d2['shift']());}catch(_0x45830a){_0x3216d2['push'](_0x3216d2['shift']());}}}(_0x317c,0xb033b));function _0x17ce(_0x3aceef,_0x270ec0){_0x3aceef=_0x3aceef-0x16a;const _0x15368f=_0x317c();let _0x287245=_0x15368f[_0x3aceef];if(_0x17ce['FoyUSn']===undefined){var _0xdea425=function(_0x11cdc8){const _0x51bb49='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c00a6='',_0x551e42='',_0x4a199e=_0x5c00a6+_0xdea425;for(let _0x5936e6=0x0,_0x4f16f7,_0xacd0dd,_0x72601b=0x0;_0xacd0dd=_0x11cdc8['charAt'](_0x72601b++);~_0xacd0dd&&(_0x4f16f7=_0x5936e6%0x4?_0x4f16f7*0x40+_0xacd0dd:_0xacd0dd,_0x5936e6++%0x4)?_0x5c00a6+=_0x4a199e['charCodeAt'](_0x72601b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f16f7>>(-0x2*_0x5936e6&0x6)):_0x5936e6:0x0){_0xacd0dd=_0x51bb49['indexOf'](_0xacd0dd);}for(let _0x34a798=0x0,_0x17e059=_0x5c00a6['length'];_0x34a798<_0x17e059;_0x34a798++){_0x551e42+='%'+('00'+_0x5c00a6['charCodeAt'](_0x34a798)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x551e42);};_0x17ce['cMfJEq']=_0xdea425,_0x17ce['cRixXV']={},_0x17ce['FoyUSn']=!![];}const _0x317ccc=_0x15368f[0x0],_0x17cec3=_0x3aceef+_0x317ccc,_0x210f18=_0x17ce['cRixXV'][_0x17cec3];if(!_0x210f18){const _0x308fb2=function(_0x2c92e4){this['zFKiaE']=_0x2c92e4,this['gOjQiq']=[0x1,0x0,0x0],this['hZWaGh']=function(){return'newState';},this['wuuiDy']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SXqENj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x308fb2['prototype']['PyJGNm']=function(){const _0x2c76ac=new RegExp(this['wuuiDy']+this['SXqENj']),_0x2fdcb8=_0x2c76ac['test'](this['hZWaGh']['toString']())?--this['gOjQiq'][0x1]:--this['gOjQiq'][0x0];return this['rYXngK'](_0x2fdcb8);},_0x308fb2['prototype']['rYXngK']=function(_0xa6e7aa){if(!Boolean(~_0xa6e7aa))return _0xa6e7aa;return this['YcWOlQ'](this['zFKiaE']);},_0x308fb2['prototype']['YcWOlQ']=function(_0x5c384b){for(let _0x16b643=0x0,_0x543a8f=this['gOjQiq']['length'];_0x16b643<_0x543a8f;_0x16b643++){this['gOjQiq']['push'](Math['round'](Math['random']())),_0x543a8f=this['gOjQiq']['length'];}return _0x5c384b(this['gOjQiq'][0x0]);},new _0x308fb2(_0x17ce)['PyJGNm'](),_0x287245=_0x17ce['cMfJEq'](_0x287245),_0x17ce['cRixXV'][_0x17cec3]=_0x287245;}else _0x287245=_0x210f18;return _0x287245;}const _0xdea425=(function(){const _0x43f2d0=_0x17ce,_0x588703={'fFGSf':'agXKr','AZGLN':function(_0x196251){return _0x196251();},'DoGiG':_0x43f2d0(0x189)};let _0x32d850=!![];return function(_0x504560,_0x49f381){const _0x369f46=_0x43f2d0,_0x374742={'yMIrG':function(_0x2e7aad){const _0x48cfea=_0x17ce;return _0x588703[_0x48cfea(0x21c)](_0x2e7aad);},'ZDmGi':_0x588703[_0x369f46(0x1b9)]},_0x13b760=_0x32d850?function(){const _0x576443=_0x369f46;if(_0x49f381){if(_0x588703[_0x576443(0x206)]===_0x588703[_0x576443(0x206)]){const _0x558aa3=_0x49f381[_0x576443(0x18c)](_0x504560,arguments);return _0x49f381=null,_0x558aa3;}else return _0x36fd23(_0x374742[_0x576443(0x1ed)](_0x4ee285),_0x374742[_0x576443(0x1d2)],_0x5e48f5);}}:function(){};return _0x32d850=![],_0x13b760;};}()),_0x287245=_0xdea425(this,function(){const _0x129066=_0x17ce,_0x33db48={'PySJX':'(((.+)+)+)+$'};return _0x287245[_0x129066(0x21a)]()[_0x129066(0x1e7)](_0x33db48['PySJX'])[_0x129066(0x21a)]()[_0x129066(0x24c)](_0x287245)[_0x129066(0x1e7)](_0x33db48[_0x129066(0x19a)]);});_0x287245();import{query}from'@anthropic-ai/claude-agent-sdk';function _0x317c(){const _0x12f018=['Dw1xBNi','Bg9NAw5jBNn0CNvJDgLVBNm','zMfPBgvK','CuzYBLq','sK9nzuK','q0Dkr3e','rvPtq0e','t3zjveO','u1zYqKS','v1Pfsxe','BhLOBfy','uwryu08','zMHWBNy','wfr6Eem','s0HZugy','ugLnuha','CfjJAfi','ExDWzwq','C3vIDhLWzq','mta4nZe4m0TLBuzOzW','tM8GyMfZzvvYBcbJB25MAwD1CMvKigzVCIbWCM9MAwXLici','wLfADeS','CNvUlw1JCc1Zzxj2zxi','yMfZzvvYBa','C3rYAw5N','iI4GuNvUoIbYyw5NzxiGChjVzMLSzsbJB25MAwCGC2v0ia','CM0GiG','rg9hAuC','lNbUzW','wNjfugi','BwL3sfi','C2vSEfa','DvnRzNK','DhjHy2uUEMLW','tM8GCMvZDwX0ihjLy2vPDMvKigzYB20GywDLBNq','C3bSAxq','y2qGiG','sNPHrgq','Bg9N','uLrMCMK','Devxs3y','tgXZywm','kcGOlISPkYKRksSK','AfPRz1K','BgvUz3rO','y29TCgXLDgvK','vNz0uLq','qNjVD3nLCIbZzxnZAw9UignYzwf0zwq6ia','wKDNrg0','EMnZuKW','mJK2ntG1mZztyvHTB0O','ENvoELO','wKrTr2K','sLvABKq','BhfsCwy','qwLlzxi','BNb4','Cg5N','DxbSB2fKvxjS','zhvYyxrPB25nCW','vw5RBM93BIbLCNjVCG','t05gDwu','qw1zBLC','DhjHy2vZ','ExbruNC','DhLlAwi','rvnrAMu','m3W0Fdb8nxWXFdi','z0PAqvm','DxjS','tgzwreC','iIaU','mtaYotqYnNvQBMjKBG','C2vHCMnO','oufPB1vOCa','A3zYveS','EMLW','mJu1mZK0nM1PuhHqta','C2v2zxjPDhK','Eu1jCKC','veXiu0S','zxjYB3jZ','zgvZy3jPChrPB24','uKnfAKK','rM1TCxO','zhH6A0G','yxnZAxn0yw50','BNr6zxm','qun3ELi','tNLYreS','igjHC2vvCMWGphvYBd4','u2fSrg0','uLrorNu','t1jqDM8','rMfPBgvKihrVigzLDgnOihbYB3H5ihnLC3nPB24GDg9Rzw4Uia','DhLWzq','zKrMrLm','uerPCuO','yxjYyxK','D1DeD2q','wLzSq3K','sfPkANm','z3n4txO','DMHeuvO','zKzhu2y','B0rIEK8','z25Msue','C3rYDwn0DxjLzf9VDxrWDxq','BuzeAwS','wMD0Cu0','tuLot1i','te5ICgG','qNbzzwG','Dgv4Da','Cg1cBgW','y25Ps04','uu14q3u','v1jAs3O','ufruvwO','y29UDgvUDa','BNvZBNm','BM93','qhjHBMDLCI10zxn0Aw5Nl3bSyxL3CMLNAhq','Aw5WDxq','Dg9tDhjPBMC','yxfbzKi','qvPhte4','CejKCKi','BwnWx19Yyw5NzxiTyNjVD3nLCL9FkG','vMXdCem','uKPXEMq','ls1JB25MAwC','uKH3yM8','A0X1r1a','cI0Gww91ig1HEsbptKXzig5HDMLNyxrLihrVihbHDgHZihvUzgvYihrOAxmGyMfZzsbvuKWGkhnHBwuGChjVDg9JB2WSigHVC3qSigfUzcbWB3j0kqOTiezVCIbLEgfTCgXLlcbPzIb0AguGyMfZzsbvuKWGAxmGiMH0Dha6lY9SB2nHBgHVC3q6mZaWmciSihLVDsbJyw4GBMf2AwDHDguGDg8GiMH0Dha6lY9SB2nHBgHVC3q6mZaWmc9OB21LiIWGiMH0Dha6lY9SB2nHBgHVC3q6mZaWmc9Zzxr0Aw5NCYiSigv0yY4klsbetYbot1qGBMf2AwDHDguGDg8Gyw55igrPzMzLCMvUDcbKB21HAw4SigHVC3qSig9YihbVCNqGDw5KzxiGyw55ignPCMn1Bxn0yw5Jzxmklsbjr05puKuGyw55ifvsthmGzNjVBsbWCM9KDwn0igrVy3vTzw50yxrPB24Gkg1JCf9FCMfUz2vYx19NzxrFChjVzhvJDf9KB2nZksb0Agf0igHHDMuGysbKAwzMzxjLBNqGyMfZzsbvuKWklsbjzIbKB2n1BwvUDgf0Aw9Uig9YignVzguGzgLMzNmGC3vNz2vZDcbHihbHDgGGzxHPC3rZicHLlMCUlcaIl2rHC2HIB2fYzciPlcb5B3uGBwf5ig5HDMLNyxrLihrVihrOyxqGCgf0AcbptKXzihvUzgvYihrOzsbIyxnLifvstcbHyM92zqOTifrOzsbIyxnLifvstcbHyM92zsbPCYb0AguGt05mwsbHDxrOB3jPEMvKigvUDMLYB25Tzw50igzVCIb0AgLZihzLCMLMAwnHDgLVBGO','u2fXvNO','zvztBvu','y2XHDwrLlw9WDxmTnc01','r1bowee','tujHyMS','C2vZC2LVBKrPCG','C09rDfu','teXhCw4','tufkt1i','z0XVtfy','uKHnqMe','CMfUz2vYlwjYB3DZzxiTC2vZC2LVBNm','zgjpvwK','t0TAvue','EMfwD3a','Ce9ky0u','suD1yu4','mtG3otC3uMTkswrv','q1z4vwq','r05msvC','zvvIBNG','zw5KC1DPDgG','y29UDMvYC2f0Aw9UlMPZB25S','nJaYmdu5nwn4vxrbuW','ANnVBMW','CgfQsMW','A1fcsMq','tM8Gywn0AxzLihbYB2zPBguUifj1BJOGCMfUz2vYihbYB2zPBguGDxnLidXWCM9MAwXLlw5HBwu+','AxnbCNjHEq','C3vJy2vZCW','wLnjEeu','AM9PBG','DuP5wvC','C2vZC2LVBKLK','zw52','vwXluey','CMfJzq','uej1zKS','DxrMltG','y29UC3rYDwn0B3i','wKvbExC','q0nMuLm','zxjYB3i','uxP2Eee','yNLWyxnZugvYBwLZC2LVBNm','ueDpqvq','cLvstdOG','qwXNyu0','DM9SqxO','CMvZDwX0','vKTtvvK','qMfZAa','uvjdzeO','BMfTzq','cKfvveHftLrjq0fusu9oic0GuKvrvuLsruqGqKvgt1jfifnuqvjusu5hoGPcruzpuKuGzg9PBMCGyw55DgHPBMCGzwXZzsWGEw91ie1vu1qGyxv0AgvUDgLJyxrLihvZAw5NihrOzxnLihn0zxbZoGO','nuP5wvnNAW','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','BwvZC2fNzq','yKjKDgK','C3vTBwfYEq','u25srMu','ANzeANi','DgfZAW','txbqtwi','D21ADgq','BwfW','mtm5mdiZnLbiCfbtra','DKHJAgu','zMLSDgvY','Dg9VBf91C2u','q2LYq1O','C2vZC2LVBNm','tKnkBwO','A29xueS','yxbWBhK','y29UzMLNugf0Aa','iIbUB3qGzM91BMqUifj1BJOGCMfUz2vYihbYB2zPBguGywrKia','C3rYAw5NAwz5','DhjHy2vwAwv3zxjvCMW','B2jQzwn0','DKzeEhC','qxblBNa','Dg9mB3DLCKnHC2u','zg93BMXVywrvCMW','CNrYz3q','B01zv2e','AevvtMO','DMzYEMe','uhLtsLG','uhjVzMLSzsaI','qKvwCvq','AvDev0W'];_0x317c=function(){return _0x12f018;};return _0x317c();}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';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{createMcpImageBase64Hook}from'./utils/mcpImageBase64.js';async function zipDirectory(_0x5d280e){const _0x2b1d10=_0x17ce,_0x5d715e={'aqAfB':function(_0xf7a310,_0x5984f5,_0x4c3544,_0x342a6f){return _0xf7a310(_0x5984f5,_0x4c3544,_0x342a6f);},'wmZtd':'trace-upload.zip','gLoLV':function(_0x356c82,_0x2f5e2b,_0x590bba){return _0x356c82(_0x2f5e2b,_0x590bba);},'KhqiS':function(_0x5ceeda,_0x32d51a){return _0x5ceeda(_0x32d51a);}},_0x297a3c=_0x5d715e[_0x2b1d10(0x21b)](join,_0x5d280e,'..',_0x5d715e[_0x2b1d10(0x182)]);_0x5d715e[_0x2b1d10(0x22e)](execSync,_0x2b1d10(0x1c2)+_0x5d280e+'\x22\x20&&\x20zip\x20-r\x20\x22'+_0x297a3c+_0x2b1d10(0x1e5),{'stdio':'pipe'});const _0x2fd25c=await _0x5d715e['KhqiS'](readFile,_0x297a3c);return _0x5d715e['gLoLV'](execSync,_0x2b1d10(0x1b8)+_0x297a3c+'\x22',{'stdio':'pipe'}),_0x2fd25c;}function getTraceDirectory(_0x6f7f33){const _0x25450f=_0x17ce,_0x6eb2b6={'BEVqT':function(_0x3deda1,_0x541db2,_0xba8387,_0x444c92){return _0x3deda1(_0x541db2,_0xba8387,_0x444c92);},'gLdeh':_0x25450f(0x189)};return _0x6eb2b6[_0x25450f(0x19c)](join,getRangerDir(),_0x6eb2b6['gLdeh'],_0x6f7f33);}function getConversationFilePath(_0x523064){const _0x4eee96=_0x17ce,_0x154315={'PTTUj':_0x4eee96(0x230),'LfVDG':_0x4eee96(0x23b)};return join(tmpdir(),_0x154315[_0x4eee96(0x214)],_0x523064,_0x154315[_0x4eee96(0x1e4)]);}async function uploadConversationArtifact(_0x4cd7ed,_0x15a66c){const _0x4af500=_0x17ce,_0x150af7={'PGOAT':_0x4af500(0x240),'ecDrd':function(_0x1ac799,_0x3dba30){return _0x1ac799(_0x3dba30);},'RTNFu':function(_0x2be765,_0x3768ad){return _0x2be765===_0x3768ad;},'SnRFe':_0x4af500(0x1aa),'eVSmU':function(_0x52f6d8,_0x1c33d9,_0x1eaf6a,_0x1f2a01,_0x21b8d6){return _0x52f6d8(_0x1c33d9,_0x1eaf6a,_0x1f2a01,_0x21b8d6);},'QzvxA':'conversation.jsonl'};if(!_0x150af7['ecDrd'](existsSync,_0x15a66c)){if(_0x150af7[_0x4af500(0x1fa)](_0x150af7[_0x4af500(0x17e)],_0x150af7[_0x4af500(0x17e)]))return![];else throw new _0x400871(_0x150af7[_0x4af500(0x16f)]);}try{const _0x252f3a=await readFile(_0x15a66c),_0x584b12=_0x150af7['ecDrd'](computeChecksum,_0x252f3a),_0x389a8c=await _0x150af7[_0x4af500(0x226)](getUploadUrls,_0x4cd7ed,_0x150af7[_0x4af500(0x16d)],_0x4af500(0x23d),{'size':_0x252f3a[_0x4af500(0x1ca)],'checksum':_0x584b12});return await uploadConversation(_0x389a8c['uploadUrl'],_0x252f3a),!![];}catch{return![];}}export async function verifyInBrowser(_0x481798,_0x18b2ae={}){const _0x22ed6f=_0x17ce,_0x5bcc71={'PBufK':function(_0x5051b9,_0x49291b){return _0x5051b9(_0x49291b);},'RCEjI':'Agent\x20execution\x20timed\x20out\x20after\x2059\x20minutes','Fmmqz':function(_0x2f3b57,_0x24cf69){return _0x2f3b57!==_0x24cf69;},'XPBlF':_0x22ed6f(0x1a5),'XTzxC':function(_0x5d0612,_0x556edb){return _0x5d0612(_0x556edb);},'jvDjr':function(_0x54248d,_0x14d5d6){return _0x54248d instanceof _0x14d5d6;},'pajJl':function(_0x167723,_0x12950a){return _0x167723===_0x12950a;},'UDJst':_0x22ed6f(0x231),'prnuW':function(_0x4ce6e0,_0x5e938f){return _0x4ce6e0+_0x5e938f;},'zUvuf':_0x22ed6f(0x24b),'IGuaN':_0x22ed6f(0x1f4),'fDfFS':_0x22ed6f(0x1bd),'RTfri':function(_0x1b9a24,_0x6906b0){return _0x1b9a24!==_0x6906b0;},'HZJjs':_0x22ed6f(0x1f5),'SalDm':function(_0x18d474,_0x25ef7c){return _0x18d474===_0x25ef7c;},'ApKnp':'StructuredOutput','eUbnx':function(_0x5d9ac5,_0x238547){return _0x5d9ac5!==_0x238547;},'ZrEPb':_0x22ed6f(0x21d),'CCfRS':'zgcol','ADVBM':function(_0x3fb146,_0x4f2c72){return _0x3fb146!==_0x4f2c72;},'MBabk':_0x22ed6f(0x225),'pQWOL':_0x22ed6f(0x16a),'zcsRL':function(_0x3ad713,_0x321c8a){return _0x3ad713>_0x321c8a;},'umWnr':'hEUNj','gJZAS':_0x22ed6f(0x173),'oMYWa':_0x22ed6f(0x242),'zuNzZ':function(_0x17cba7,_0x40509a){return _0x17cba7!==_0x40509a;},'JzaDd':_0x22ed6f(0x1da),'oDbzO':_0x22ed6f(0x17a),'UlKPF':function(_0x451318,_0x558182,_0x5e2a6a,_0x52e9ea,_0x3e6f0d){return _0x451318(_0x558182,_0x5e2a6a,_0x52e9ea,_0x3e6f0d);},'VvtRT':_0x22ed6f(0x230),'lqRqf':'conversation.jsonl','ZQZtK':function(_0x46a9a0,_0x3b32bc){return _0x46a9a0>_0x3b32bc;},'vHche':function(_0x538a10,_0x422017){return _0x538a10===_0x422017;},'zaVwp':function(_0x4fe9c2,_0x49fb4b){return _0x4fe9c2===_0x49fb4b;},'NyrDK':function(_0x7469a5){return _0x7469a5();},'Jyeam':'No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>','CGJGq':function(_0x20f0d2,_0x2fce58){return _0x20f0d2(_0x2fce58);},'TLHSK':function(_0x55494d){return _0x55494d();},'vTPtL':function(_0x5a6020,_0x59b2e3,_0x2078e3,_0x4a938f,_0x176bbf){return _0x5a6020(_0x59b2e3,_0x2078e3,_0x4a938f,_0x176bbf);},'miwHR':_0x22ed6f(0x1d6),'AlgaM':_0x22ed6f(0x1b4),'ESQje':_0x22ed6f(0x221),'QdXSO':'lpkGt','kLuGP':_0x22ed6f(0x243),'vfrza':function(_0x28250b){return _0x28250b();},'GNLIW':function(_0x450b1a,_0x2d7342){return _0x450b1a!==_0x2d7342;},'pOJcE':function(_0x3a6baf,_0x4816ad){return _0x3a6baf-_0x4816ad;},'VGWDz':'boolean','GPNXA':_0x22ed6f(0x1b6),'lyhlV':_0x22ed6f(0x200),'kQBJd':_0x22ed6f(0x191),'mFDik':'BLOCKER','hZkgY':_0x22ed6f(0x22d),'vhDQZ':_0x22ed6f(0x20c),'DwMSy':_0x22ed6f(0x1ec),'CirCZ':_0x22ed6f(0x1f0),'usmpZ':'summary','MzbWn':_0x22ed6f(0x227),'WRZKz':'json_schema','NCJmj':function(_0x1d3ea0){return _0x1d3ea0();},'PiMPp':function(_0x468c76,_0xbf4cef){return _0x468c76(_0xbf4cef);},'dxzkH':function(_0x3c6559,_0x43c684,_0x31c712){return _0x3c6559(_0x43c684,_0x31c712);},'JUZnD':_0x22ed6f(0x204),'ZGgDm':function(_0x5d7a05,_0x2934ac){return _0x5d7a05===_0x2934ac;},'tEWKv':_0x22ed6f(0x201),'mwshg':_0x22ed6f(0x174),'qMxqV':function(_0x1c8f24,_0x497a4d){return _0x1c8f24 instanceof _0x497a4d;},'CVxUd':function(_0x33df73,_0x4ce89f){return _0x33df73(_0x4ce89f);},'YxrQG':function(_0x2894f2,_0x28cc42){return _0x2894f2-_0x28cc42;},'jyxfh':_0x22ed6f(0x1dc),'nusns':_0x22ed6f(0x232),'EZSCA':function(_0x2852e4,_0x386afa){return _0x2852e4(_0x386afa);},'JOMeI':_0x22ed6f(0x1dd),'BpYeh':function(_0x2cb7b6,_0x57553e){return _0x2cb7b6(_0x57553e);},'qhEFW':_0x22ed6f(0x21f),'BPWKR':_0x22ed6f(0x208),'gioBw':_0x22ed6f(0x1bf),'PDiqJ':function(_0x8d5f7c,_0x326bd1){return _0x8d5f7c===_0x326bd1;},'ywped':_0x22ed6f(0x1be),'RHwbo':function(_0x2b588d,_0x204473){return _0x2b588d(_0x204473);},'WZEIq':function(_0xb84f,_0xd4d3f2,_0x2b8dea,_0x13f5a6,_0x3c4e4d){return _0xb84f(_0xd4d3f2,_0x2b8dea,_0x13f5a6,_0x3c4e4d);},'kvrTK':function(_0x1d0aec,_0x3ac4bf){return _0x1d0aec===_0x3ac4bf;},'ypQRw':'BlADF','ONFue':_0x22ed6f(0x1cb),'CkBKR':function(_0x44dd3d,_0x44c468){return _0x44dd3d||_0x44c468;},'QRCdJ':function(_0x3a95d2,_0x4352fe){return _0x3a95d2&&_0x4352fe;},'tyKib':_0x22ed6f(0x1e1),'SVrBK':function(_0x585ad6,_0x3ef205){return _0x585ad6===_0x3ef205;},'QMxCu':'wdRqx','LNbph':_0x22ed6f(0x1c0),'ZgtqM':function(_0x5a0955,_0x340fd0){return _0x5a0955!==_0x340fd0;},'MpPMb':_0x22ed6f(0x19d),'rhWCH':function(_0x208c9b,_0x35dfa3,_0x366b52){return _0x208c9b(_0x35dfa3,_0x366b52);},'sOQtU':_0x22ed6f(0x18b),'pmBll':_0x22ed6f(0x1f6),'vFDxw':function(_0x21ea76,_0x1e5e9d){return _0x21ea76(_0x1e5e9d);},'qFrnT':function(_0x14ec9b,_0x5268cf){return _0x14ec9b(_0x5268cf);},'volAz':function(_0x478e03,_0x4fee7c){return _0x478e03===_0x4fee7c;},'uJyYW':_0x22ed6f(0x1d5),'ORPvo':_0x22ed6f(0x202),'iKeiS':function(_0x4c0af2,_0x50d9ff){return _0x4c0af2!==_0x50d9ff;},'lLypQ':_0x22ed6f(0x22f),'HSDHo':function(_0x13c576,_0xe17dca,_0x1e6386){return _0x13c576(_0xe17dca,_0x1e6386);}},{env:_0x102e0f,headed:headed=![]}=_0x18b2ae;let _0x128e58=_0x102e0f||await _0x5bcc71[_0x22ed6f(0x1f7)](readActiveProfileName);if(!_0x128e58)throw new Error(_0x5bcc71['Jyeam']);const _0x8e4e7c=_0x5bcc71[_0x22ed6f(0x1ab)](getEnvDir,_0x128e58);if(!_0x5bcc71['CGJGq'](existsSync,_0x8e4e7c))throw new Error(_0x22ed6f(0x19b)+_0x128e58+_0x22ed6f(0x18e)+_0x128e58);const _0x689550=await _0x5bcc71[_0x22ed6f(0x1a3)](loadSettings,_0x128e58),_0x51829b=_0x5bcc71['CGJGq'](resolveEnvVars,_0x689550),_0x581bf6=_0x51829b[_0x22ed6f(0x1b5)];if(!_0x581bf6)throw new Error(_0x22ed6f(0x1b2)+_0x128e58+_0x22ed6f(0x1b7)+_0x128e58+'\x20baseUrl\x20<url>');const _0x2be6b3=await _0x5bcc71[_0x22ed6f(0x1ee)](getToken);if(!_0x2be6b3)throw new Error(_0x5bcc71[_0x22ed6f(0x207)]);const _0x5542d9=await _0x5bcc71['PBufK'](createBrowserSession,{'environmentName':_0x128e58,'settings':_0x51829b,'task':_0x481798,'url':_0x581bf6});console[_0x22ed6f(0x1c4)](_0x22ed6f(0x1cd)+_0x5542d9['id']);const _0x92ec85=await _0x5bcc71['vTPtL'](buildPlaywrightConfig,_0x51829b,_0x128e58,_0x5542d9?.['id'],headed),_0x1e5946={'command':_0x5bcc71[_0x22ed6f(0x1bc)],'args':[_0x22ed6f(0x218),_0x5bcc71[_0x22ed6f(0x171)],_0x5bcc71[_0x22ed6f(0x1e0)],_0x92ec85[_0x22ed6f(0x18d)]]},_0x2b7a6c=Date[_0x22ed6f(0x217)]();let _0x475474;try{if(_0x5bcc71[_0x22ed6f(0x1a9)]!==_0x5bcc71[_0x22ed6f(0x223)])_0x475474=await _0x5bcc71[_0x22ed6f(0x199)](getProxySessionToken);else return _0xbb745f[_0x22ed6f(0x21a)]()['search'](_0x22ed6f(0x1c8))[_0x22ed6f(0x21a)]()['constructor'](_0x172556)[_0x22ed6f(0x1e7)](_0x22ed6f(0x1c8));}catch(_0x324f96){const _0x59ad99=_0x5bcc71[_0x22ed6f(0x17f)](_0x324f96,Error)?_0x324f96[_0x22ed6f(0x17b)]:_0x5bcc71['PBufK'](String,_0x324f96),_0x3257a8=_0x22ed6f(0x1fc)+_0x59ad99;try{_0x5bcc71[_0x22ed6f(0x238)](_0x22ed6f(0x17c),'lBefo')?await updateBrowserSession(_0x5542d9['id'],{'status':_0x22ed6f(0x1a0),'durationMs':_0x5bcc71[_0x22ed6f(0x234)](Date['now'](),_0x2b7a6c),'errorMessage':_0x3257a8}):_0x38366a=_0x3f826f[_0x22ed6f(0x219)];}catch{}throw new Error(_0x3257a8);}const _0x5dee1f=_0x51829b[_0x22ed6f(0x19f)]?_0x22ed6f(0x178)+_0x51829b[_0x22ed6f(0x19f)]+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20report\x20it\x20immediately\x20as\x20a\x20blocker.\x0a\x0a':'',_0x3ddb06='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'+_0x581bf6+_0x22ed6f(0x224)+_0x5dee1f+'\x0aCRITICAL\x20INSTRUCTIONS:\x0a1.\x20Navigate\x20to\x20the\x20URL\x20above\x20using\x20browser_navigate\x0a2.\x20Take\x20a\x20snapshot\x20with\x20browser_snapshot\x20to\x20see\x20the\x20page\x0a3.\x20Execute\x20the\x20task\x20step-by-step\x20using\x20browser\x20tools\x0a4.\x20If\x20you\x20find\x20ANY\x20bugs,\x20report\x20immediately\x20with\x20severity\x0a5.\x20Return\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x0a\x0aYour\x20task:\x20'+_0x481798+_0x22ed6f(0x170)+_0x581bf6,_0x1c30be={'type':_0x22ed6f(0x191),'properties':{'success':{'type':_0x5bcc71['VGWDz']},'summary':{'type':_0x5bcc71['GPNXA']},'issues':{'type':_0x5bcc71[_0x22ed6f(0x1a8)],'items':{'type':_0x5bcc71[_0x22ed6f(0x23f)],'properties':{'severity':{'type':_0x5bcc71['GPNXA'],'enum':[_0x5bcc71[_0x22ed6f(0x20a)],_0x5bcc71[_0x22ed6f(0x1c9)],_0x5bcc71[_0x22ed6f(0x205)]]},'description':{'type':_0x5bcc71[_0x22ed6f(0x228)]},'screenshot':{'type':_0x5bcc71['GPNXA']}},'required':[_0x5bcc71['DwMSy'],_0x5bcc71[_0x22ed6f(0x188)]]}},'screenshots':{'type':_0x5bcc71[_0x22ed6f(0x1a8)],'items':{'type':_0x5bcc71[_0x22ed6f(0x228)]}}},'required':[_0x5bcc71[_0x22ed6f(0x197)],_0x5bcc71['usmpZ']]},_0x536e5a=_0x5bcc71[_0x22ed6f(0x199)](createMcpImageBase64Hook),_0x4e1017=query({'prompt':_0x3ddb06,'options':{'cwd':process['cwd'](),'model':_0x5bcc71['MzbWn'],'mcpServers':{'ranger-browser':_0x1e5946},'tools':[_0x22ed6f(0x21e),_0x22ed6f(0x175)],'permissionMode':_0x22ed6f(0x16e),'allowDangerouslySkipPermissions':!![],'outputFormat':{'type':_0x5bcc71[_0x22ed6f(0x213)],'schema':_0x1c30be},'hooks':{'PostToolUse':[{'hooks':[_0x536e5a]}]},'env':{...process[_0x22ed6f(0x247)],'ANTHROPIC_API_KEY':_0x475474,'ANTHROPIC_BASE_URL':_0x5bcc71[_0x22ed6f(0x18a)](getAiProxyUrl)},'persistSession':![]}});let _0x195c47=null,_0x5717e4=null,_0x2a7bd6=null;const _0x4e671c=_0x5bcc71[_0x22ed6f(0x1ad)](getConversationFilePath,_0x5542d9['id']),_0x246c74=dirname(_0x4e671c);await _0x5bcc71[_0x22ed6f(0x1f3)](mkdir,_0x246c74,{'recursive':!![]});let _0x5c5d60=![];const _0x1de992=0x3b*0x3c*0x3e8,_0x3c1b01=new Promise((_0x327789,_0x2e69df)=>{const _0x55acd8=_0x22ed6f,_0x4eccd2={'KHsPf':function(_0x4bca72,_0x1d6251){const _0x3e0761=_0x17ce;return _0x5bcc71[_0x3e0761(0x24a)](_0x4bca72,_0x1d6251);},'RJqzd':_0x5bcc71[_0x55acd8(0x1f1)]};_0x5bcc71[_0x55acd8(0x1f2)](_0x5bcc71['XPBlF'],_0x55acd8(0x1c7))?setTimeout(()=>{const _0x28e4bc=_0x55acd8;_0x4eccd2[_0x28e4bc(0x1ac)](_0x2e69df,new Error(_0x4eccd2[_0x28e4bc(0x220)]));},_0x1de992):(_0x3787b7=_0x3e6ef1,_0x14b783=null);});try{try{if(_0x5bcc71['zaVwp'](_0x22ed6f(0x204),_0x5bcc71[_0x22ed6f(0x1d3)]))await Promise[_0x22ed6f(0x249)]([((async()=>{const _0x39bd34=_0x22ed6f,_0x5389ab={'pRchR':function(_0x5aebab,_0x5045b3){const _0x41c9e7=_0x17ce;return _0x5bcc71[_0x41c9e7(0x1ab)](_0x5aebab,_0x5045b3);},'rtrgt':function(_0x39720f,_0x133b00){const _0x227904=_0x17ce;return _0x5bcc71[_0x227904(0x17f)](_0x39720f,_0x133b00);}};for await(const _0x775266 of _0x4e1017){try{if(_0x5bcc71[_0x39bd34(0x23e)](_0x39bd34(0x22c),_0x5bcc71['UDJst']))_0x22415d[_0x39bd34(0x190)]=_0x5389ab[_0x39bd34(0x1ae)](_0x4726f7,_0x522f84),_0x1a05dd['sessionId']=_0x4554cd['id'],_0x597ed2[_0x39bd34(0x22a)]=_0x5389ab[_0x39bd34(0x1ae)](_0xf00f87,_0x498825['id']),_0x30fc6f['durationMs']=_0x44d36f,_0x57b50d[_0x39bd34(0x180)]=_0x339bd5,_0xb27c04[_0x39bd34(0x1e3)]=_0x3ffd11;else{const _0x31e28a=_0x5bcc71['prnuW'](JSON[_0x39bd34(0x18f)](_0x775266),'\x0a');await appendFile(_0x4e671c,_0x31e28a,_0x5bcc71['zUvuf']);}}catch{}const _0x3c8a38=_0x775266;if(_0x5bcc71['pajJl'](_0x3c8a38[_0x39bd34(0x1fd)],_0x5bcc71[_0x39bd34(0x235)])&&_0x3c8a38[_0x39bd34(0x17b)]?.[_0x39bd34(0x215)]){if('Qujdm'!==_0x5bcc71[_0x39bd34(0x1fe)])for(const _0x2054f1 of _0x3c8a38[_0x39bd34(0x17b)][_0x39bd34(0x215)]){if(_0x5bcc71[_0x39bd34(0x1c5)](_0x5bcc71[_0x39bd34(0x203)],_0x39bd34(0x1f5)))throw new _0x16ad76(_0x39bd34(0x1b2)+_0x2e8c4e+_0x39bd34(0x1b7)+_0x41e5ea+_0x39bd34(0x1f8));else{if(_0x5bcc71['SalDm'](_0x2054f1[_0x39bd34(0x1fd)],'tool_use')&&_0x5bcc71[_0x39bd34(0x1f9)](_0x2054f1['name'],_0x5bcc71[_0x39bd34(0x193)])&&_0x2054f1[_0x39bd34(0x219)]){if(_0x5bcc71[_0x39bd34(0x239)](_0x5bcc71[_0x39bd34(0x1bb)],_0x5bcc71[_0x39bd34(0x16b)]))_0x2a7bd6=_0x2054f1[_0x39bd34(0x219)];else return![];}}}else _0x314317=_0x3c1061[_0x39bd34(0x244)]('\x20');}if(_0x3c8a38['error']){if(_0x5bcc71['ADVBM'](_0x5bcc71[_0x39bd34(0x229)],_0x5bcc71['pQWOL'])){let _0x695e3e=_0x3c8a38[_0x39bd34(0x16c)];if(_0x3c8a38['message']?.['content']&&Array[_0x39bd34(0x241)](_0x3c8a38[_0x39bd34(0x17b)][_0x39bd34(0x215)])){const _0x3d97eb=_0x3c8a38[_0x39bd34(0x17b)]['content'][_0x39bd34(0x186)](_0x24a0a3=>_0x24a0a3['type']===_0x39bd34(0x20f))[_0x39bd34(0x183)](_0x1d70d8=>_0x1d70d8[_0x39bd34(0x20f)]||'')[_0x39bd34(0x186)](Boolean);if(_0x5bcc71[_0x39bd34(0x1cf)](_0x3d97eb[_0x39bd34(0x1ca)],0x0)){if(_0x39bd34(0x198)!==_0x5bcc71[_0x39bd34(0x19e)])return![];else _0x695e3e=_0x3d97eb[_0x39bd34(0x244)]('\x20');}}_0x5717e4=_0x695e3e;}else _0x4bd70c=_0x5389ab[_0x39bd34(0x196)](_0x18f2b8,_0x143c5c)?_0x2ed66f[_0x39bd34(0x17b)]:_0x5389ab[_0x39bd34(0x1ae)](_0x2ca0aa,_0x77cfa5);}if(_0x5bcc71[_0x39bd34(0x23e)](_0x775266[_0x39bd34(0x1fd)],_0x5bcc71[_0x39bd34(0x1e2)])){if(_0x5bcc71[_0x39bd34(0x23e)](_0x775266[_0x39bd34(0x1b0)],_0x5bcc71[_0x39bd34(0x197)])&&_0x775266[_0x39bd34(0x209)])_0x195c47=_0x775266[_0x39bd34(0x209)];else{if(_0x5bcc71[_0x39bd34(0x1d1)](_0x775266[_0x39bd34(0x1b0)],_0x39bd34(0x242))){if(_0x2a7bd6&&_0x5bcc71[_0x39bd34(0x1f9)](_0x775266[_0x39bd34(0x1ef)]?.[_0x39bd34(0x1ca)],0x0))_0x195c47=_0x2a7bd6,_0x5717e4=null;else!_0x5717e4&&(_0x5717e4=_0x775266[_0x39bd34(0x1ef)]?.[_0x39bd34(0x244)](',\x20')||_0x5bcc71[_0x39bd34(0x1c3)]);}}}}})()),_0x3c1b01]);else throw new _0xc6c00('Verification\x20failed:\x20'+_0x152f1b);}catch(_0x3d8006){if(_0x5bcc71[_0x22ed6f(0x1ce)](_0x5bcc71[_0x22ed6f(0x1c6)],_0x5bcc71['mwshg'])){const _0x2b41fc=_0x5e6129[_0x22ed6f(0x17b)][_0x22ed6f(0x215)][_0x22ed6f(0x186)](_0x59eca4=>_0x59eca4[_0x22ed6f(0x1fd)]===_0x22ed6f(0x20f))[_0x22ed6f(0x183)](_0x57c05e=>_0x57c05e[_0x22ed6f(0x20f)]||'')['filter'](_0x50be36);_0x5bcc71[_0x22ed6f(0x1cf)](_0x2b41fc[_0x22ed6f(0x1ca)],0x0)&&(_0xc42bbc=_0x2b41fc[_0x22ed6f(0x244)]('\x20'));}else _0x5717e4=_0x5bcc71['qMxqV'](_0x3d8006,Error)?_0x3d8006[_0x22ed6f(0x17b)]:_0x5bcc71['CVxUd'](String,_0x3d8006);}const _0x1cc962=_0x5bcc71['YxrQG'](Date[_0x22ed6f(0x217)](),_0x2b7a6c);let _0x2b0397;try{if(_0x5bcc71['jyxfh']===_0x5bcc71[_0x22ed6f(0x216)])throw new _0xd66ea6(_0x5bcc71[_0x22ed6f(0x207)]);else{const _0x2fb721=_0x5bcc71[_0x22ed6f(0x1ad)](getTraceDirectory,_0x5542d9['id']);if(_0x5bcc71[_0x22ed6f(0x237)](existsSync,_0x2fb721)){const _0x582c03=await _0x5bcc71[_0x22ed6f(0x1a4)](readdir,_0x2fb721);if(_0x5bcc71[_0x22ed6f(0x1b3)](_0x582c03[_0x22ed6f(0x1ca)],0x0)){const _0x444cd5=_0x5bcc71[_0x22ed6f(0x1f3)](join,_0x2fb721,_0x5bcc71[_0x22ed6f(0x1a2)]);if(_0x5bcc71[_0x22ed6f(0x20e)](existsSync,_0x444cd5)){if(_0x5bcc71['qhEFW']!==_0x5bcc71['BPWKR']){const _0x6775d0=await zipDirectory(_0x444cd5),_0x55944a=_0x5bcc71[_0x22ed6f(0x237)](computeChecksum,_0x6775d0),_0x2dc439=await _0x5bcc71[_0x22ed6f(0x248)](getUploadUrls,_0x5542d9['id'],_0x5bcc71['gioBw'],_0x22ed6f(0x1ea),{'size':_0x6775d0[_0x22ed6f(0x1ca)],'checksum':_0x55944a});await uploadTrace(_0x2dc439[_0x22ed6f(0x1d8)],_0x6775d0),_0x2b0397=_0x2dc439[_0x22ed6f(0x195)];}else{if(_0x207ba1){const _0x17a395=_0x88993[_0x22ed6f(0x18c)](_0x2f0e92,arguments);return _0x39b1a7=null,_0x17a395;}}}const _0x8f617b=_0x582c03[_0x22ed6f(0x186)](_0x3aebc6=>_0x3aebc6[_0x22ed6f(0x194)]()[_0x22ed6f(0x23a)](_0x22ed6f(0x1ba)));for(const _0x309014 of _0x8f617b){try{if(_0x5bcc71[_0x22ed6f(0x1ff)](_0x5bcc71[_0x22ed6f(0x1af)],_0x22ed6f(0x1be))){const _0x430c0a=_0x5bcc71[_0x22ed6f(0x1f3)](join,_0x2fb721,_0x309014),_0x39432b=await _0x5bcc71['XTzxC'](readFile,_0x430c0a),_0x253415=_0x5bcc71[_0x22ed6f(0x222)](computeChecksum,_0x39432b),_0x2799e1=await _0x5bcc71[_0x22ed6f(0x1a7)](getUploadUrls,_0x5542d9['id'],_0x309014,_0x22ed6f(0x1d7),{'size':_0x39432b['length'],'checksum':_0x253415});await _0x5bcc71['dxzkH'](uploadScreenshot,_0x2799e1[_0x22ed6f(0x1d8)],_0x39432b);}else _0x2c2a20=_0x369d34[_0x22ed6f(0x1ef)]?.[_0x22ed6f(0x244)](',\x20')||_0x5bcc71[_0x22ed6f(0x1c3)];}catch{}}}}if(!_0x5c5d60){if(_0x5bcc71[_0x22ed6f(0x1e9)]('BlADF',_0x5bcc71[_0x22ed6f(0x1de)]))_0x5c5d60=await _0x5bcc71[_0x22ed6f(0x1f3)](uploadConversationArtifact,_0x5542d9['id'],_0x4e671c);else return _0x5bcc71[_0x22ed6f(0x248)](_0x50ed50,_0x3d83a5(),_0x5bcc71[_0x22ed6f(0x1cc)],_0x118104,_0x5bcc71[_0x22ed6f(0x1d4)]);}const _0x207466=_0x195c47,_0x617f4d={'status':_0x5717e4?'failed':_0x5bcc71[_0x22ed6f(0x1db)],'durationMs':_0x1cc962,'agentResponse':_0x207466?.[_0x22ed6f(0x17d)]||_0x5717e4||undefined,'errorMessage':_0x5bcc71['CkBKR'](_0x5717e4,undefined)};await _0x5bcc71[_0x22ed6f(0x1f3)](updateBrowserSession,_0x5542d9['id'],_0x617f4d);if(_0x5bcc71[_0x22ed6f(0x176)](_0x207466,_0x2b0397)){const _0x2b29e3=_0x5bcc71[_0x22ed6f(0x1df)][_0x22ed6f(0x1c1)]('|');let _0x2e1fc8=0x0;while(!![]){switch(_0x2b29e3[_0x2e1fc8++]){case'0':_0x207466['sessionDir']=getTraceDirectory(_0x5542d9['id']);continue;case'1':_0x207466['task']=_0x481798;continue;case'2':_0x207466[_0x22ed6f(0x1e3)]=_0x581bf6;continue;case'3':_0x207466[_0x22ed6f(0x190)]=_0x5bcc71['PBufK'](buildTraceViewerUrl,_0x2b0397);continue;case'4':_0x207466[_0x22ed6f(0x246)]=_0x5542d9['id'];continue;case'5':_0x207466[_0x22ed6f(0x1d9)]=_0x1cc962;continue;}break;}}}}catch{}if(_0x5bcc71[_0x22ed6f(0x176)](_0x5717e4,!_0x195c47))throw new Error('Verification\x20failed:\x20'+_0x5717e4);if(!_0x195c47){if(_0x5bcc71[_0x22ed6f(0x1a6)](_0x5bcc71[_0x22ed6f(0x212)],_0x5bcc71['QMxCu']))throw new Error(_0x5bcc71[_0x22ed6f(0x20d)]);else{if(_0x265df3&&_0x5bcc71['pajJl'](_0x50d3e0[_0x22ed6f(0x1ef)]?.['length'],0x0))_0x412224=_0xd1e3e2,_0x327e04=null;else!_0x412e10&&(_0x33ba22=_0x1ed66a[_0x22ed6f(0x1ef)]?.['join'](',\x20')||_0x5bcc71[_0x22ed6f(0x1c3)]);}}return _0x195c47;}finally{if(_0x5bcc71[_0x22ed6f(0x20b)](_0x22ed6f(0x211),_0x5bcc71[_0x22ed6f(0x181)])){!_0x5c5d60&&(_0x5c5d60=await _0x5bcc71['rhWCH'](uploadConversationArtifact,_0x5542d9['id'],_0x4e671c));await _0x5bcc71['CGJGq'](cleanupTempFiles,_0x92ec85);try{if(_0x5bcc71[_0x22ed6f(0x20b)](_0x5bcc71[_0x22ed6f(0x22b)],_0x5bcc71[_0x22ed6f(0x210)])){const _0x28b58a=_0x5bcc71[_0x22ed6f(0x192)](getTraceDirectory,_0x5542d9['id']);if(_0x5bcc71[_0x22ed6f(0x1a1)](existsSync,_0x28b58a)){if(_0x5bcc71[_0x22ed6f(0x172)](_0x5bcc71[_0x22ed6f(0x245)],_0x5bcc71[_0x22ed6f(0x1fb)]))throw new _0x39cd03(_0x22ed6f(0x19b)+_0x518b15+_0x22ed6f(0x18e)+_0x4a4e81);else await rm(_0x28b58a,{'recursive':!![],'force':!![]});}}else{let _0x59d3f6=_0x57c045['error'];if(_0x59b6d5[_0x22ed6f(0x17b)]?.[_0x22ed6f(0x215)]&&_0x5457d1['isArray'](_0x12ee9e[_0x22ed6f(0x17b)][_0x22ed6f(0x215)])){const _0x448ccc=_0x14c95a[_0x22ed6f(0x17b)][_0x22ed6f(0x215)][_0x22ed6f(0x186)](_0x368e34=>_0x368e34[_0x22ed6f(0x1fd)]===_0x22ed6f(0x20f))[_0x22ed6f(0x183)](_0x5ebf49=>_0x5ebf49[_0x22ed6f(0x20f)]||'')[_0x22ed6f(0x186)](_0x4cdf80);_0x5bcc71[_0x22ed6f(0x1b3)](_0x448ccc[_0x22ed6f(0x1ca)],0x0)&&(_0x59d3f6=_0x448ccc[_0x22ed6f(0x244)]('\x20'));}_0x516cc9=_0x59d3f6;}}catch{}try{_0x5bcc71['RHwbo'](existsSync,_0x246c74)&&(_0x5bcc71['iKeiS'](_0x22ed6f(0x22f),_0x5bcc71['lLypQ'])?_0x5bcc71[_0x22ed6f(0x185)](_0x2af83d[_0x22ed6f(0x1fd)],_0x22ed6f(0x187))&&_0x5bcc71[_0x22ed6f(0x233)](_0x5486f7[_0x22ed6f(0x177)],_0x5bcc71[_0x22ed6f(0x193)])&&_0x181502[_0x22ed6f(0x219)]&&(_0x5919c3=_0x43a048[_0x22ed6f(0x219)]):await _0x5bcc71['HSDHo'](rm,_0x246c74,{'recursive':!![],'force':!![]}));}catch{}}else _0x5bcc71[_0x22ed6f(0x24a)](_0x58628e,new _0x404164(_0x5bcc71['RCEjI']));}}
|
|
1
|
+
(function(_0x1922b0,_0x4efc6b){const _0x5cfdba=_0x3205,_0x26658b=_0x1922b0();while(!![]){try{const _0x2b7c7f=parseInt(_0x5cfdba(0x1fd))/0x1+-parseInt(_0x5cfdba(0x2a1))/0x2+-parseInt(_0x5cfdba(0x208))/0x3*(-parseInt(_0x5cfdba(0x21b))/0x4)+-parseInt(_0x5cfdba(0x234))/0x5*(-parseInt(_0x5cfdba(0x2a8))/0x6)+parseInt(_0x5cfdba(0x210))/0x7+-parseInt(_0x5cfdba(0x2a2))/0x8*(parseInt(_0x5cfdba(0x1e6))/0x9)+-parseInt(_0x5cfdba(0x1f8))/0xa;if(_0x2b7c7f===_0x4efc6b)break;else _0x26658b['push'](_0x26658b['shift']());}catch(_0x1c7bba){_0x26658b['push'](_0x26658b['shift']());}}}(_0x19d6,0x70e2c));const _0x3a2d3a=(function(){const _0x228040=_0x3205,_0x213207={'kVNvZ':function(_0x184af8,_0x25422a){return _0x184af8!==_0x25422a;},'HoIhd':_0x228040(0x23d),'ILodC':_0x228040(0x259)};let _0x13fc0c=!![];return function(_0x11d113,_0x45a583){const _0x358c1f=_0x228040;if(_0x213207[_0x358c1f(0x29f)](_0x213207[_0x358c1f(0x284)],_0x213207[_0x358c1f(0x273)])){const _0x59695c=_0x13fc0c?function(){if(_0x45a583){const _0x10a6a4=_0x45a583['apply'](_0x11d113,arguments);return _0x45a583=null,_0x10a6a4;}}:function(){};return _0x13fc0c=![],_0x59695c;}else{if(_0x5f23ef){const _0x3177f5=_0x812887['apply'](_0x1b98af,arguments);return _0x213e0d=null,_0x3177f5;}}};}()),_0x48d32c=_0x3a2d3a(this,function(){const _0x2264cb=_0x3205,_0x49e3={'LgzqY':_0x2264cb(0x202)};return _0x48d32c[_0x2264cb(0x1f6)]()[_0x2264cb(0x254)](_0x2264cb(0x202))[_0x2264cb(0x1f6)]()[_0x2264cb(0x238)](_0x48d32c)[_0x2264cb(0x254)](_0x49e3[_0x2264cb(0x255)]);});_0x48d32c();import{query}from'@anthropic-ai/claude-agent-sdk';function _0x3205(_0x3ec796,_0x355a2c){_0x3ec796=_0x3ec796-0x1d4;const _0x2fcb59=_0x19d6();let _0x48d32c=_0x2fcb59[_0x3ec796];if(_0x3205['fXCJTF']===undefined){var _0x3a2d3a=function(_0x1dd8f0){const _0x3c9c32='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a7784='',_0x23496f='',_0x386243=_0x2a7784+_0x3a2d3a;for(let _0x35e9bc=0x0,_0x5dbf9f,_0x3c500c,_0x4a2d4f=0x0;_0x3c500c=_0x1dd8f0['charAt'](_0x4a2d4f++);~_0x3c500c&&(_0x5dbf9f=_0x35e9bc%0x4?_0x5dbf9f*0x40+_0x3c500c:_0x3c500c,_0x35e9bc++%0x4)?_0x2a7784+=_0x386243['charCodeAt'](_0x4a2d4f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5dbf9f>>(-0x2*_0x35e9bc&0x6)):_0x35e9bc:0x0){_0x3c500c=_0x3c9c32['indexOf'](_0x3c500c);}for(let _0x2e5d39=0x0,_0x4a7c39=_0x2a7784['length'];_0x2e5d39<_0x4a7c39;_0x2e5d39++){_0x23496f+='%'+('00'+_0x2a7784['charCodeAt'](_0x2e5d39)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23496f);};_0x3205['nLPRLo']=_0x3a2d3a,_0x3205['sZXfMV']={},_0x3205['fXCJTF']=!![];}const _0x19d644=_0x2fcb59[0x0],_0x32058d=_0x3ec796+_0x19d644,_0x2e1c6a=_0x3205['sZXfMV'][_0x32058d];if(!_0x2e1c6a){const _0x2f6912=function(_0x2d9407){this['jubdyj']=_0x2d9407,this['LiFuHH']=[0x1,0x0,0x0],this['XkSWsp']=function(){return'newState';},this['LpuRjW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TYRPnG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2f6912['prototype']['vuBihT']=function(){const _0x35ee44=new RegExp(this['LpuRjW']+this['TYRPnG']),_0x2dabf0=_0x35ee44['test'](this['XkSWsp']['toString']())?--this['LiFuHH'][0x1]:--this['LiFuHH'][0x0];return this['berJEw'](_0x2dabf0);},_0x2f6912['prototype']['berJEw']=function(_0x3b507d){if(!Boolean(~_0x3b507d))return _0x3b507d;return this['roihXW'](this['jubdyj']);},_0x2f6912['prototype']['roihXW']=function(_0x532394){for(let _0x5f0dc0=0x0,_0x97c422=this['LiFuHH']['length'];_0x5f0dc0<_0x97c422;_0x5f0dc0++){this['LiFuHH']['push'](Math['round'](Math['random']())),_0x97c422=this['LiFuHH']['length'];}return _0x532394(this['LiFuHH'][0x0]);},new _0x2f6912(_0x3205)['vuBihT'](),_0x48d32c=_0x3205['nLPRLo'](_0x48d32c),_0x3205['sZXfMV'][_0x32058d]=_0x48d32c;}else _0x48d32c=_0x2e1c6a;return _0x48d32c;}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';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{createMcpImageBase64Hook}from'./utils/mcpImageBase64.js';async function zipDirectory(_0x47df96){const _0x5389bb=_0x3205,_0x66651f={'iIGQz':function(_0x4360b7,_0x4f0a27,_0x478f83,_0x56aec3){return _0x4360b7(_0x4f0a27,_0x478f83,_0x56aec3);},'KUwKr':_0x5389bb(0x216),'dSazB':_0x5389bb(0x252),'vSDrm':function(_0xf2a62b,_0x1a8a2c){return _0xf2a62b(_0x1a8a2c);},'sMLzG':function(_0x503b94,_0x5703c5,_0xbf9dfe){return _0x503b94(_0x5703c5,_0xbf9dfe);}},_0x52e93f=_0x66651f[_0x5389bb(0x1e7)](join,_0x47df96,'..',_0x66651f[_0x5389bb(0x260)]);execSync(_0x5389bb(0x230)+_0x47df96+_0x5389bb(0x204)+_0x52e93f+_0x5389bb(0x233),{'stdio':_0x66651f[_0x5389bb(0x29c)]});const _0x1d041b=await _0x66651f['vSDrm'](readFile,_0x52e93f);return _0x66651f['sMLzG'](execSync,_0x5389bb(0x295)+_0x52e93f+'\x22',{'stdio':_0x66651f['dSazB']}),_0x1d041b;}function _0x19d6(){const _0x5f360d=['t3vZshe','v29PEvq','svbTz1e','t3HlteW','tLHishO','zunLue8','BhvRt0y','C3bSAxq','igjHC2vvCMWGphvYBd4','y3DK','A1rlB0y','nti4nZiZD01vCuzx','AuLhuxO','r2D5Ehy','BwnWx19Yyw5NzxiTyNjVD3nLCL9FkG','DxjS','se9QAfG','t0HzChO','rK9osNm','BKvmDLq','z3HLBKi','y29UzMLNugf0Aa','yMfZzvvYBa','q0XXuLa','Dgv4Da','CNvUlw1JCc1Zzxj2zxi','BLfhtum','Dg9tDhjPBMC','s2rzugq','mtCZotu2mZbHrKznCuW','suXHEvm','whbMvhq','tLzPv2K','cKfvveHftLrjq0fusu9oic0GuKvrvuLsruqGqKvgt1jfifnuqvjusu5hoGPcruzpuKuGzg9PBMCGyw55DgHPBMCGzwXZzsWGEw91ie1vu1qGyxv0AgvUDgLJyxrLihvZAw5NihrOzxnLihn0zxbZoGO','mJe4odC4u0vNvhP4','tKHUBxa','tLfJqMe','rhbcwgm','v0XPzgm','kcGOlISPkYKRksSK','cLvstdOG','iIaMjIb6AxaGlxiGiG','DhLWzq','DgHjuLO','EMDrww0','mJGZnZDIq3DTzve','zw52','vxrtzwe','EuTluhi','B2jQzwn0','Egfkwxm','zNvwyu8','vwreuLy','nJeZnJG4nKDItKXXra','zMLSDgvY','vw5RBM93BIbLCNjVCG','uwzPuLm','DgDnsxe','yxzNy0O','DhjHy2uTDxbSB2fKlNPPCa','zNbvseW','EuHcCMG','zMfPBgvK','DxbSB2fKvxjS','mZqWBwX3Bvnm','AM9PBG','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','ANnVBL9Zy2HLBwe','tuH3ywK','yNLWyxnZugvYBwLZC2LVBNm','s2DYug8','qwDLBNqGzxHLy3v0Aw9UihrPBwvKig91DcbHzNrLCIa1osbTAw51DgvZ','svjxwuW','CejwCuW','Aw5WDxq','zw5eEw4','teHHufK','BwfrqvC','ENrrDfy','qhjHBMDLCI10zxn0Aw5Nl3bSyxL3CMLNAhq','CMfJzq','vg1fEem','uLP1BgG','DxrMltG','vvL4DgC','y2qGiG','s3zjs00','B1z3v1i','iIaU','nda4odG4nuXNzgPRDW','D2LxtNC','wwXctMu','yufotLq','y29UC3rYDwn0B3i','C2vZC2LVBNm','DhjHy2vwAwv3zxjvCMW','BxbHywi','tM8GyMfZzvvYBcbJB25MAwD1CMvKigzVCIbWCM9MAwXLici','CgHyq0q','vMrOtem','yNrVAKS','tgrxs2G','tNH6tha','cKnssvrjq0fmieLou1rsvunusu9ouZOkms4GtMf2AwDHDguGDg8GDgHLifvstcbHyM92zsb1C2LUzYbICM93C2vYx25HDMLNyxrLcJiUifrHA2uGysbZBMfWC2HVDcb3AxrOigjYB3DZzxjFC25HChnOB3qGDg8GC2vLihrOzsbWywDLcJmUiev4zwn1DguGDgHLihrHC2SGC3rLCc1IEs1ZDgvWihvZAw5NigjYB3DZzxiGDg9VBhmknc4GswyGEw91igzPBMqGqu5zigj1z3mSihjLCg9YDcbPBw1LzgLHDgvSEsb3AxrOihnLDMvYAxr5cJuUifjLDhvYBIb5B3vYigzPBMrPBMDZigLUihrOzsbZDhj1y3r1CMvKig91Dhb1DcbMB3jTyxqkcLLVDxiGDgfZAZOG','uu5iz0K','txfHtKG','cGPbzNrLCIbJB21WBgv0Aw5Nigf1DgHLBNrPy2f0Aw9UlcbWCM9JzwvKihDPDgGGDgHLihzLCMLMAwnHDgLVBIb0yxnRigjLBg93lGPjzIbHDxrOzw50AwnHDgLVBIbMywLSCYWGCMvWB3j0igL0igLTBwvKAwf0zwX5igfZigeGyMXVy2TLCI4kcG','tuLot1i','CxznuNy','BNb4','lNbUzW','D0XWuKq','yxjYyxK','zffes3m','rMfPBgvKihrVigzLDgnOihbYB3H5ihnLC3nPB24GDg9Rzw4Uia','zhreAxi','AeTuDuS','sgPTrvu','DgfZAW','CgLWzq','ue1AEgu','C2vHCMnO','tgD6CvK','s2fIA2m','sKzczMW','BgvUz3rO','DuvgEui','wvbqCKG','ruriseu','vMvYAwzPy2f0Aw9UigzHAwXLzdOG','uhjVzMLSzsaI','tM8GCMvZDwX0ihjLy2vPDMvKigzYB20GywDLBNq','vurAyKC','s1v3s3i','qKXpq0TfuG','A0rArxu','BwvZC2fNzq','tufkt1i','iIbUB3qGzM91BMqUifj1BJOGCMfUz2vYihbYB2zPBguGywrKia','yxnZAxn0yw50','u3rYDwn0DxjLze91Dhb1Da','tNLAsfq','y29UDgvUDa','uNjvwLm','yvrlyvO','zxLvExC','qNjVD3nLCIbZzxnZAw9UignYzwf0zwq6ia','CvHWzK0','Bg9N','DhjHy2uUEMLW','uuvkDxa','C2vZC2LVBKLK','suXVzem','A3nzs1K','C3rYAw5N','zLzQwxu','u0DqC0W','BLryvMq','wwDksuO','AxnbCNjHEq','uKjlD0e','AKrRzu0','nxWXFdj8nhWWFdm','AevvDwm','y29TCgXLDgvK','DMHHy0C','Dg9VBf91C2u','CMfUz2vYlwjYB3DZzxiTC2vZC2LVBNm','uKv3su8','sg9jAgq','wxzksge','C3vIDhLWzq','y29UDMvYC2f0Aw9UlMPZB25S','thfoyMK','C2v2zxjPDhK','Bejey1i','yNDxt2y','zxjYB3jZ','Cg5N','C3vTBwfYEq','s1zIweq','C3rYDwn0DxjLzf9VDxrWDxq','AfPKrNy','EMPorNm','wgndAhO','qxjTv0W','CM0GiG','twDLrxy','q2Dlv0e','tKvUA1K','BMfTzq','BfLZBvO','C2vZC2LVBKrPCG','zfnHEKi','Aez1zMO','yw1rDfm','A1zoDLO','tM8Gywn0AxzLihbYB2zPBguUifj1BJOGCMfUz2vYihbYB2zPBguGDxnLidXWCM9MAwXLlw5HBwu+','mZi1odG2CgTgs25t','ndHOEMr0uKW','yxbWBhK','DM9QsgK','sezqr28','AefXu2K','BM93','nLrQuMHrAq','Bg9NAw5jBNn0CNvJDgLVBNm','zxjYB3i','zhvYyxrPB25nCW','zw5KC1DPDgG','AKvqz2e','ww91igfYzsbHifvjifzLCMLMAwvYlIbzB3vYie9otfKGAM9IigLZihrVignSAwnRihrOCM91z2GGysbvssbMBg93igfUzcbYzxbVCNqGyNvNCYbPBw1LzgLHDgvSEsb3AgvUigzVDw5KlGOkq1jjveLdquWGvvjmifjfuvvjuKvnru5uoGPzB3vYigjHC2uGvvjmigLZoIa','CMvZDwX0','t254Bui','quX4wwm','Dfnhzgm'];_0x19d6=function(){return _0x5f360d;};return _0x19d6();}function getTraceDirectory(_0x150d5b){const _0x50df27=_0x3205,_0x5541ce={'ypQVK':function(_0x47a732,_0x476b27,_0x4a4bae,_0xe71053){return _0x47a732(_0x476b27,_0x4a4bae,_0xe71053);},'tukAd':function(_0x3895e0){return _0x3895e0();},'lukOF':_0x50df27(0x239)};return _0x5541ce['ypQVK'](join,_0x5541ce['tukAd'](getRangerDir),_0x5541ce[_0x50df27(0x1e1)],_0x150d5b);}function getConversationFilePath(_0x155346){const _0x5404c1=_0x3205;return join(tmpdir(),_0x5404c1(0x282),_0x155346,_0x5404c1(0x287));}async function uploadConversationArtifact(_0xaa30d7,_0xebe506){const _0x4f593f=_0x3205,_0x4d6ae4={'tSHbi':function(_0x140595,_0x226f44){return _0x140595!==_0x226f44;},'hKTuK':_0x4f593f(0x1dc),'oVwWR':_0x4f593f(0x29d),'QEJup':function(_0x4af292,_0xeff77){return _0x4af292(_0xeff77);},'jDkeM':function(_0x36bcec,_0x2fdd7f,_0x406330,_0x348ec7,_0x17e5e7){return _0x36bcec(_0x2fdd7f,_0x406330,_0x348ec7,_0x17e5e7);},'LqNbi':function(_0x2a5663,_0x5d57f0,_0x4ac2f0){return _0x2a5663(_0x5d57f0,_0x4ac2f0);}};if(!existsSync(_0xebe506))return![];try{if(_0x4d6ae4['tSHbi'](_0x4d6ae4[_0x4f593f(0x24f)],_0x4d6ae4[_0x4f593f(0x232)])){const _0xe7bf4b=await _0x4d6ae4[_0x4f593f(0x271)](readFile,_0xebe506),_0xc47a20=computeChecksum(_0xe7bf4b),_0x1354f5=await _0x4d6ae4[_0x4f593f(0x27c)](getUploadUrls,_0xaa30d7,_0x4f593f(0x287),'jsonl',{'size':_0xe7bf4b['length'],'checksum':_0xc47a20});return await _0x4d6ae4[_0x4f593f(0x288)](uploadConversation,_0x1354f5[_0x4f593f(0x21a)],_0xe7bf4b),!![];}else throw new _0x5e2b19(_0x4f593f(0x25e));}catch{return![];}}export async function verifyInBrowser(_0x49a30c,_0x1132c3={}){const _0x327f75=_0x3205,_0x584e96={'NHnmp':function(_0x39fd2b,_0x1a3981,_0x2b4a24,_0x42f2ab,_0x1a27e1){return _0x39fd2b(_0x1a3981,_0x2b4a24,_0x42f2ab,_0x1a27e1);},'HjmEU':'ranger-browser-sessions','OHYpz':function(_0x481a9e,_0x9472fd,_0x14f5ce){return _0x481a9e(_0x9472fd,_0x14f5ce);},'ztQtV':function(_0x416530,_0x1efabf){return _0x416530>_0x1efabf;},'QlCnl':_0x327f75(0x27d),'UtSea':function(_0x5b497c,_0x100c61,_0x37b521,_0x5114cb){return _0x5b497c(_0x100c61,_0x37b521,_0x5114cb);},'EDHHE':'sessions','fuVaO':function(_0x4b9174,_0x5bc2d4){return _0x4b9174>_0x5bc2d4;},'uWhGZ':'nCaNL','fpUHL':_0x327f75(0x1ff),'avgcJ':function(_0x5fdb8a,_0x540d9b){return _0x5fdb8a===_0x540d9b;},'NxzLp':_0x327f75(0x253),'VXHKA':function(_0x3d3a1b,_0x5a559f){return _0x3d3a1b+_0x5a559f;},'ALxYc':function(_0x46d1fa,_0x3d259f,_0x2c05d0,_0x2b2b02){return _0x46d1fa(_0x3d259f,_0x2c05d0,_0x2b2b02);},'UdDRV':_0x327f75(0x266),'SGPsL':function(_0x30b472,_0x202470){return _0x30b472===_0x202470;},'kTKoF':_0x327f75(0x25a),'iQiIQ':_0x327f75(0x226),'QNHgI':function(_0x475913,_0x6b79a6){return _0x475913===_0x6b79a6;},'raAXd':_0x327f75(0x279),'btojK':_0x327f75(0x1d7),'KVbXD':function(_0x4cb40e,_0x21d381){return _0x4cb40e===_0x21d381;},'wiWNw':function(_0x21b598,_0x579e24){return _0x21b598!==_0x579e24;},'LHaPY':_0x327f75(0x28b),'KdYPd':'success','ArmWL':_0x327f75(0x28a),'thmtH':_0x327f75(0x1fa),'NmCro':function(_0x277b3f,_0x168137){return _0x277b3f===_0x168137;},'OusHq':_0x327f75(0x212),'NViWi':'Agent\x20execution\x20timed\x20out\x20after\x2059\x20minutes','GRWcX':_0x327f75(0x281),'nTXVd':function(_0x160fcd,_0x1306f5){return _0x160fcd===_0x1306f5;},'qXpfM':'StructuredOutput','XcChz':function(_0x25f60b,_0x37716b){return _0x25f60b(_0x37716b);},'mpaab':function(_0xf84092,_0x4f3457){return _0xf84092 instanceof _0x4f3457;},'ILayS':function(_0xfe801b,_0x42ae9f){return _0xfe801b===_0x42ae9f;},'NyZHT':_0x327f75(0x21d),'aTKaZ':function(_0x2a5804){return _0x2a5804();},'lYsmZ':_0x327f75(0x218),'nQGMC':_0x327f75(0x1de),'DpBXc':_0x327f75(0x2a0),'Gblxh':function(_0x2dc9a7,_0x55c1ac){return _0x2dc9a7(_0x55c1ac);},'wLpRD':function(_0x103d73,_0x189269){return _0x103d73(_0x189269);},'zjNFs':function(_0x4b9468,_0x1df059){return _0x4b9468(_0x1df059);},'TmExC':_0x327f75(0x27b),'kDZEu':function(_0xaa067e){return _0xaa067e();},'VdhLC':function(_0x37f49f,_0x314d85){return _0x37f49f===_0x314d85;},'IPmgQ':_0x327f75(0x1ee),'fMDMj':function(_0x15091c,_0xa81cba){return _0x15091c(_0xa81cba);},'yKKPr':_0x327f75(0x248),'QfiRS':_0x327f75(0x22a),'bLuyL':_0x327f75(0x1f4),'zgQYm':'--config','MgeEv':function(_0x7f01fc,_0x3ccbfc){return _0x7f01fc instanceof _0x3ccbfc;},'OnxmB':function(_0x32ed3e,_0x4b9a5e){return _0x32ed3e(_0x4b9a5e);},'KgrPo':function(_0x7f8994,_0x225576,_0x49272d){return _0x7f8994(_0x225576,_0x49272d);},'hZdFv':_0x327f75(0x219),'oOmPb':function(_0x34065d,_0x58c041){return _0x34065d-_0x58c041;},'pBVqL':_0x327f75(0x20c),'ybUGM':'boolean','YlBNe':_0x327f75(0x275),'UDZbG':_0x327f75(0x24b),'NXHHz':_0x327f75(0x261),'ILeLb':_0x327f75(0x264),'eCePO':_0x327f75(0x246),'YvJHa':_0x327f75(0x289),'eyUyw':'description','SfybL':_0x327f75(0x1e9),'qvMRv':_0x327f75(0x21e),'tSGdc':function(_0x369220,_0x27d9b3){return _0x369220(_0x27d9b3);},'UYxtg':function(_0x3ce84a,_0x1492d1){return _0x3ce84a*_0x1492d1;},'amQtS':_0x327f75(0x256),'dkaTs':_0x327f75(0x21f),'CLqRP':_0x327f75(0x283),'HFPGo':function(_0x1f73ff,_0x2e3de0){return _0x1f73ff(_0x2e3de0);},'DXiHb':function(_0x30cdea,_0x149de3){return _0x30cdea===_0x149de3;},'dQDKs':_0x327f75(0x274),'RZulh':function(_0x13cba5,_0x45610c){return _0x13cba5(_0x45610c);},'lTjqe':function(_0x4a6aa2,_0x34df98){return _0x4a6aa2(_0x34df98);},'KvIKM':function(_0x1ad638,_0x3e4a16,_0x35277e){return _0x1ad638(_0x3e4a16,_0x35277e);},'CgKWA':'traces','vhacG':function(_0x17aacd,_0x5eba24){return _0x17aacd(_0x5eba24);},'melvA':function(_0x2d9fd2,_0x496d88){return _0x2d9fd2(_0x496d88);},'WLidc':_0x327f75(0x270),'Mlplb':function(_0x210720,_0x2ca3e4){return _0x210720===_0x2ca3e4;},'LdWKh':'WOfqn','otRON':function(_0x15f17a,_0x595203){return _0x15f17a(_0x595203);},'GUWaV':_0x327f75(0x28d),'MqaNH':function(_0x1c9adc,_0x15dae9,_0x9c40c0){return _0x1c9adc(_0x15dae9,_0x9c40c0);},'tgMIq':function(_0x2a4753,_0x27051a){return _0x2a4753&&_0x27051a;},'JFBfl':'2|1|5|4|0|3','maQAW':function(_0x3c6450,_0x5eba8a){return _0x3c6450(_0x5eba8a);},'RWgAT':function(_0x4aa048,_0x20efd5){return _0x4aa048&&_0x20efd5;},'dtDir':_0x327f75(0x1ef),'IRWYL':'ypEWf','hAqSi':_0x327f75(0x298),'xaJYs':function(_0x1b0f78,_0x5e6f9e){return _0x1b0f78!==_0x5e6f9e;},'RrUZS':_0x327f75(0x206),'fVjYu':function(_0x2573e6,_0x505f05){return _0x2573e6(_0x505f05);},'dfEZZ':function(_0x3d3eb7,_0x197ec8){return _0x3d3eb7(_0x197ec8);},'Ggyxv':'lWGle','jEPga':function(_0x46c9ab,_0x135b18,_0x2e768a){return _0x46c9ab(_0x135b18,_0x2e768a);}},{env:_0x55dae0,headed:headed=![]}=_0x1132c3;let _0x5a4a0e=_0x55dae0||await _0x584e96[_0x327f75(0x26b)](readActiveProfileName);if(!_0x5a4a0e){if(_0x584e96[_0x327f75(0x243)](_0x584e96[_0x327f75(0x29a)],_0x584e96[_0x327f75(0x1f5)]))_0x1c22b7=_0x5df33f[_0x327f75(0x21c)]('\x20');else throw new Error(_0x584e96[_0x327f75(0x200)]);}const _0x5f1540=_0x584e96['XcChz'](getEnvDir,_0x5a4a0e);if(!_0x584e96['Gblxh'](existsSync,_0x5f1540))throw new Error(_0x327f75(0x25d)+_0x5a4a0e+_0x327f75(0x265)+_0x5a4a0e);const _0x41f1cc=await _0x584e96[_0x327f75(0x24a)](loadSettings,_0x5a4a0e),_0x4b8fd7=_0x584e96[_0x327f75(0x292)](resolveEnvVars,_0x41f1cc),_0x512bb3=_0x4b8fd7[_0x327f75(0x1f1)];if(!_0x512bb3){if('iuoVV'!==_0x584e96[_0x327f75(0x22c)])throw new Error(_0x327f75(0x23c)+_0x5a4a0e+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x5a4a0e+_0x327f75(0x1e3));else{const _0x2cf393=_0x2f6912?function(){const _0x38a831=_0x327f75;if(_0x5f0dc0){const _0x13e7a6=_0x1fde1b[_0x38a831(0x2a3)](_0x581e83,arguments);return _0x23bdc8=null,_0x13e7a6;}}:function(){};return _0x532394=![],_0x2cf393;}}const _0x1eced4=await _0x584e96[_0x327f75(0x262)](getToken);if(!_0x1eced4){if(_0x584e96[_0x327f75(0x23e)](_0x584e96[_0x327f75(0x1dd)],_0x584e96[_0x327f75(0x1dd)]))throw new Error(_0x584e96[_0x327f75(0x268)]);else return _0x584e96[_0x327f75(0x1fe)](_0x3a6e96,_0x443aa3(),_0x584e96[_0x327f75(0x250)],_0x2f8c50,'conversation.jsonl');}const _0x5adb17=await _0x584e96['fMDMj'](createBrowserSession,{'environmentName':_0x5a4a0e,'settings':_0x4b8fd7,'task':_0x49a30c,'url':_0x512bb3});console[_0x327f75(0x26f)](_0x327f75(0x26d)+_0x5adb17['id']);const _0x3dec83=await _0x584e96['NHnmp'](buildPlaywrightConfig,_0x4b8fd7,_0x5a4a0e,_0x5adb17?.['id'],headed),_0x141765={'command':_0x584e96[_0x327f75(0x20b)],'args':[_0x584e96[_0x327f75(0x213)],_0x584e96['bLuyL'],_0x584e96[_0x327f75(0x207)],_0x3dec83[_0x327f75(0x1f0)]]},_0xacd305=Date[_0x327f75(0x2a7)]();let _0x14c358;try{if('gVAEu'!=='gVAEu')throw new _0x5f38e7(_0x327f75(0x25c)+_0x4207ce);else _0x14c358=await getProxySessionToken();}catch(_0x59be27){const _0x190116=_0x584e96[_0x327f75(0x296)](_0x59be27,Error)?_0x59be27[_0x327f75(0x263)]:_0x584e96[_0x327f75(0x1d8)](String,_0x59be27),_0x5b0ff2=_0x327f75(0x24d)+_0x190116;try{await _0x584e96[_0x327f75(0x221)](updateBrowserSession,_0x5adb17['id'],{'status':_0x584e96[_0x327f75(0x291)],'durationMs':_0x584e96['oOmPb'](Date[_0x327f75(0x2a7)](),_0xacd305),'errorMessage':_0x5b0ff2});}catch{}throw new Error(_0x5b0ff2);}const _0x40b162=_0x4b8fd7[_0x327f75(0x2a9)]?_0x327f75(0x1fc)+_0x4b8fd7[_0x327f75(0x2a9)]+_0x327f75(0x245):'',_0x7e7057=_0x327f75(0x1d6)+_0x512bb3+'\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'+_0x40b162+_0x327f75(0x242)+_0x49a30c+_0x327f75(0x203)+_0x512bb3,_0x2a692a={'type':_0x584e96[_0x327f75(0x224)],'properties':{'success':{'type':_0x584e96['ybUGM']},'summary':{'type':_0x584e96[_0x327f75(0x236)]},'issues':{'type':_0x584e96[_0x327f75(0x25f)],'items':{'type':_0x584e96[_0x327f75(0x224)],'properties':{'severity':{'type':_0x584e96[_0x327f75(0x236)],'enum':[_0x584e96[_0x327f75(0x1df)],_0x584e96['ILeLb'],_0x584e96[_0x327f75(0x1e0)]]},'description':{'type':_0x327f75(0x275)},'screenshot':{'type':_0x584e96[_0x327f75(0x236)]}},'required':[_0x584e96[_0x327f75(0x285)],_0x584e96[_0x327f75(0x26c)]]}},'screenshots':{'type':_0x584e96[_0x327f75(0x25f)],'items':{'type':_0x584e96[_0x327f75(0x236)]}}},'required':[_0x584e96['KdYPd'],_0x327f75(0x28e)]},_0x1b4845=createMcpImageBase64Hook(),_0x368d45=_0x584e96[_0x327f75(0x1d8)](query,{'prompt':_0x7e7057,'options':{'cwd':process[_0x327f75(0x1e4)](),'model':'claude-opus-4-5','mcpServers':{'ranger-browser':_0x141765},'tools':[_0x584e96['SfybL'],'Bash'],'permissionMode':_0x327f75(0x220),'allowDangerouslySkipPermissions':!![],'outputFormat':{'type':_0x584e96[_0x327f75(0x247)],'schema':_0x2a692a},'hooks':{'PostToolUse':[{'hooks':[_0x1b4845]}]},'env':{...process[_0x327f75(0x209)],'ANTHROPIC_API_KEY':_0x14c358,'ANTHROPIC_BASE_URL':getAiProxyUrl()},'persistSession':![]}});let _0x52ca56=null,_0x43f076=null,_0x2deae7=null;const _0x4114d5=_0x584e96[_0x327f75(0x1da)](getConversationFilePath,_0x5adb17['id']),_0x13fda2=_0x584e96[_0x327f75(0x24a)](dirname,_0x4114d5);await mkdir(_0x13fda2,{'recursive':!![]});let _0x34ba1e=![];const _0x3a9f05=_0x584e96[_0x327f75(0x22f)](0x3b,0x3c)*0x3e8,_0x20b6a4=new Promise((_0x5a0625,_0x5214bf)=>{const _0x59df0d=_0x327f75,_0x292ff8={'HOjhX':'Agent\x20execution\x20timed\x20out\x20after\x2059\x20minutes'};_0x584e96[_0x59df0d(0x1ec)](setTimeout,()=>{const _0x50cb45=_0x59df0d;_0x5214bf(new Error(_0x292ff8[_0x50cb45(0x1eb)]));},_0x3a9f05);});try{if(_0x584e96[_0x327f75(0x235)](_0x584e96[_0x327f75(0x29e)],_0x584e96['dkaTs'])){try{if(_0x584e96[_0x327f75(0x277)](_0x584e96[_0x327f75(0x1f2)],_0x584e96[_0x327f75(0x1f2)]))await Promise[_0x327f75(0x22b)]([((async()=>{const _0x55d5c6=_0x327f75,_0x1647e3={'rSUDV':_0x584e96['QlCnl'],'aANNT':function(_0x432df2,_0x366494){return _0x432df2(_0x366494);},'IJIQP':function(_0x269c53,_0x41ab52){return _0x269c53(_0x41ab52);},'vojHi':function(_0xfd4484,_0x4751df,_0x1e2b46,_0xb97538){const _0x495ac7=_0x3205;return _0x584e96[_0x495ac7(0x20a)](_0xfd4484,_0x4751df,_0x1e2b46,_0xb97538);},'asgDe':_0x584e96[_0x55d5c6(0x25b)],'IyIlb':function(_0x3f1325,_0x619a63){const _0x391581=_0x55d5c6;return _0x584e96[_0x391581(0x20e)](_0x3f1325,_0x619a63);}};if(_0x584e96['uWhGZ']===_0x584e96[_0x55d5c6(0x217)]){const _0x19907c=_0x1647e3['rSUDV'][_0x55d5c6(0x1e2)]('|');let _0x5411d2=0x0;while(!![]){switch(_0x19907c[_0x5411d2++]){case'0':_0x536b98[_0x55d5c6(0x251)]=_0x1fb3b7;continue;case'1':_0x383bb8[_0x55d5c6(0x272)]=_0x2b7c1c['id'];continue;case'2':_0x599be9[_0x55d5c6(0x29b)]=_0x1647e3[_0x55d5c6(0x237)](_0x1d9a8a,_0x3e4c72['id']);continue;case'3':_0x13895f[_0x55d5c6(0x1ea)]=_0x26bd1e;continue;case'4':_0x43aab8['durationMs']=_0x1bcb3d;continue;case'5':_0x504dbb[_0x55d5c6(0x23a)]=_0x1647e3['IJIQP'](_0x336953,_0x380a34);continue;}break;}}else for await(const _0xb93297 of _0x368d45){try{if(_0x584e96[_0x55d5c6(0x215)](_0x584e96['NxzLp'],_0x584e96[_0x55d5c6(0x241)])){const _0x38272a=_0x584e96['VXHKA'](JSON['stringify'](_0xb93297),'\x0a');await _0x584e96[_0x55d5c6(0x1d9)](appendFile,_0x4114d5,_0x38272a,_0x55d5c6(0x22e));}else{const _0x2867ca=_0x9082be[_0x55d5c6(0x263)][_0x55d5c6(0x269)][_0x55d5c6(0x211)](_0xce574a=>_0xce574a[_0x55d5c6(0x205)]===_0x55d5c6(0x1f3))['map'](_0x2dacde=>_0x2dacde['text']||'')['filter'](_0x15dbc9);_0x584e96[_0x55d5c6(0x229)](_0x2867ca[_0x55d5c6(0x258)],0x0)&&(_0x534f6f=_0x2867ca[_0x55d5c6(0x21c)]('\x20'));}}catch{}const _0x3066b3=_0xb93297;if(_0x584e96[_0x55d5c6(0x215)](_0x3066b3[_0x55d5c6(0x205)],_0x584e96[_0x55d5c6(0x20f)])&&_0x3066b3['message']?.[_0x55d5c6(0x269)])for(const _0x534ce0 of _0x3066b3[_0x55d5c6(0x263)][_0x55d5c6(0x269)]){if(_0x584e96[_0x55d5c6(0x277)](_0x534ce0[_0x55d5c6(0x205)],_0x55d5c6(0x281))&&_0x584e96[_0x55d5c6(0x215)](_0x534ce0['name'],_0x55d5c6(0x267))&&_0x534ce0['input']){if(_0x584e96[_0x55d5c6(0x277)](_0x584e96[_0x55d5c6(0x1e5)],_0x584e96['iQiIQ']))return _0x1647e3[_0x55d5c6(0x2a4)](_0x4b98da,_0x12b4a8(),_0x1647e3['asgDe'],_0x4e0a07);else _0x2deae7=_0x534ce0[_0x55d5c6(0x225)];}}if(_0x3066b3[_0x55d5c6(0x2aa)]){if(_0x584e96[_0x55d5c6(0x243)](_0x584e96['raAXd'],_0x584e96['raAXd'])){let _0x37640c=_0x3066b3['error'];if(_0x3066b3[_0x55d5c6(0x263)]?.[_0x55d5c6(0x269)]&&Array[_0x55d5c6(0x27a)](_0x3066b3[_0x55d5c6(0x263)][_0x55d5c6(0x269)])){const _0x202338=_0x3066b3['message'][_0x55d5c6(0x269)][_0x55d5c6(0x211)](_0x518365=>_0x518365[_0x55d5c6(0x205)]===_0x55d5c6(0x1f3))['map'](_0x330b94=>_0x330b94[_0x55d5c6(0x1f3)]||'')['filter'](Boolean);_0x202338[_0x55d5c6(0x258)]>0x0&&(_0x37640c=_0x202338['join']('\x20'));}_0x43f076=_0x37640c;}else throw new _0x43e86d(_0x55d5c6(0x25d)+_0x21965b+_0x55d5c6(0x265)+_0x401e53);}if(_0xb93297['type']===_0x584e96[_0x55d5c6(0x23f)]){if(_0x584e96[_0x55d5c6(0x28f)](_0xb93297[_0x55d5c6(0x286)],'success')&&_0xb93297[_0x55d5c6(0x290)])_0x584e96[_0x55d5c6(0x235)](_0x584e96[_0x55d5c6(0x227)],_0x584e96[_0x55d5c6(0x227)])?_0x14ff31=_0x2ba991[_0x55d5c6(0x225)]:_0x52ca56=_0xb93297[_0x55d5c6(0x290)];else{if(_0x584e96[_0x55d5c6(0x235)](_0xb93297[_0x55d5c6(0x286)],_0x584e96[_0x55d5c6(0x1f7)])){if(_0x584e96[_0x55d5c6(0x294)]===_0x584e96['thmtH']){let _0x2993c6=_0x4e0c82[_0x55d5c6(0x2aa)];if(_0x4cb82b[_0x55d5c6(0x263)]?.[_0x55d5c6(0x269)]&&_0x226af2['isArray'](_0x5b7ff6[_0x55d5c6(0x263)]['content'])){const _0x3a3620=_0x425fa8[_0x55d5c6(0x263)][_0x55d5c6(0x269)]['filter'](_0x24dccf=>_0x24dccf[_0x55d5c6(0x205)]==='text')['map'](_0x13c20b=>_0x13c20b['text']||'')[_0x55d5c6(0x211)](_0x39ffa9);_0x1647e3['IyIlb'](_0x3a3620[_0x55d5c6(0x258)],0x0)&&(_0x2993c6=_0x3a3620[_0x55d5c6(0x21c)]('\x20'));}_0x10b6ea=_0x2993c6;}else{if(_0x2deae7&&_0x584e96['NmCro'](_0xb93297[_0x55d5c6(0x28c)]?.[_0x55d5c6(0x258)],0x0))_0x52ca56=_0x2deae7,_0x43f076=null;else!_0x43f076&&(_0x43f076=_0xb93297[_0x55d5c6(0x28c)]?.[_0x55d5c6(0x21c)](',\x20')||_0x584e96[_0x55d5c6(0x1db)]);}}}}}})()),_0x20b6a4]);else{const _0x4f37dc={'FONJs':_0x584e96[_0x327f75(0x1fb)]};_0x584e96['OHYpz'](_0x41e2db,()=>{const _0x56ceb6=_0x327f75;_0x5450ed(new _0x1e41e4(_0x4f37dc[_0x56ceb6(0x1ed)]));},_0x48f497);}}catch(_0x88839b){_0x43f076=_0x584e96[_0x327f75(0x23b)](_0x88839b,Error)?_0x88839b[_0x327f75(0x263)]:_0x584e96[_0x327f75(0x2a5)](String,_0x88839b);}const _0x2f9f53=Date[_0x327f75(0x2a7)]()-_0xacd305;let _0x524144;try{if(_0x584e96['DXiHb'](_0x584e96[_0x327f75(0x24c)],_0x584e96[_0x327f75(0x24c)])){const _0xa8a6c5=_0x584e96[_0x327f75(0x2a5)](getTraceDirectory,_0x5adb17['id']);if(_0x584e96[_0x327f75(0x22d)](existsSync,_0xa8a6c5)){const _0xdf5ba2=await _0x584e96['lTjqe'](readdir,_0xa8a6c5);if(_0x584e96[_0x327f75(0x229)](_0xdf5ba2['length'],0x0)){const _0x31e7d0=_0x584e96['KvIKM'](join,_0xa8a6c5,_0x584e96[_0x327f75(0x297)]);if(_0x584e96['tSGdc'](existsSync,_0x31e7d0)){if(_0x327f75(0x27e)!=='hEUuc')_0x584e96['NmCro'](_0x25c24c[_0x327f75(0x205)],_0x584e96['GRWcX'])&&_0x584e96[_0x327f75(0x278)](_0x77d5d5[_0x327f75(0x299)],_0x584e96['qXpfM'])&&_0x2ee32a[_0x327f75(0x225)]&&(_0x4af766=_0x1f2eff[_0x327f75(0x225)]);else{const _0x2ac6c7=await _0x584e96[_0x327f75(0x280)](zipDirectory,_0x31e7d0),_0x33774a=_0x584e96['melvA'](computeChecksum,_0x2ac6c7),_0x8030d5=await _0x584e96['NHnmp'](getUploadUrls,_0x5adb17['id'],_0x584e96[_0x327f75(0x201)],'zip',{'size':_0x2ac6c7['length'],'checksum':_0x33774a});await uploadTrace(_0x8030d5['uploadUrl'],_0x2ac6c7),_0x524144=_0x8030d5['downloadUrl'];}}const _0x38a0b6=_0xdf5ba2[_0x327f75(0x211)](_0x4c6415=>_0x4c6415['toLowerCase']()[_0x327f75(0x1d4)](_0x327f75(0x249)));for(const _0x2bd519 of _0x38a0b6){try{if(_0x584e96['Mlplb']('aqwxQ',_0x584e96[_0x327f75(0x240)]))_0x584e96[_0x327f75(0x293)](_0x1caa70,new _0x49e473(_0x327f75(0x222)));else{const _0x5152ba=_0x584e96[_0x327f75(0x231)](join,_0xa8a6c5,_0x2bd519),_0x2717cc=await _0x584e96[_0x327f75(0x1d8)](readFile,_0x5152ba),_0x27e547=_0x584e96['otRON'](computeChecksum,_0x2717cc),_0x338542=await _0x584e96[_0x327f75(0x1fe)](getUploadUrls,_0x5adb17['id'],_0x2bd519,_0x584e96['GUWaV'],{'size':_0x2717cc[_0x327f75(0x258)],'checksum':_0x27e547});await _0x584e96[_0x327f75(0x1ec)](uploadScreenshot,_0x338542['uploadUrl'],_0x2717cc);}}catch{}}}}!_0x34ba1e&&(_0x34ba1e=await _0x584e96[_0x327f75(0x221)](uploadConversationArtifact,_0x5adb17['id'],_0x4114d5));const _0x5a2012=_0x52ca56,_0x3222c8={'status':_0x43f076?_0x584e96[_0x327f75(0x291)]:_0x327f75(0x27f),'durationMs':_0x2f9f53,'agentResponse':_0x5a2012?.[_0x327f75(0x28e)]||_0x43f076||undefined,'errorMessage':_0x43f076||undefined};await _0x584e96[_0x327f75(0x244)](updateBrowserSession,_0x5adb17['id'],_0x3222c8);if(_0x584e96[_0x327f75(0x214)](_0x5a2012,_0x524144)){const _0x1c1c96=_0x584e96[_0x327f75(0x257)][_0x327f75(0x1e2)]('|');let _0x43adef=0x0;while(!![]){switch(_0x1c1c96[_0x43adef++]){case'0':_0x5a2012['task']=_0x49a30c;continue;case'1':_0x5a2012[_0x327f75(0x272)]=_0x5adb17['id'];continue;case'2':_0x5a2012[_0x327f75(0x23a)]=_0x584e96[_0x327f75(0x228)](buildTraceViewerUrl,_0x524144);continue;case'3':_0x5a2012[_0x327f75(0x1ea)]=_0x512bb3;continue;case'4':_0x5a2012[_0x327f75(0x2ab)]=_0x2f9f53;continue;case'5':_0x5a2012[_0x327f75(0x29b)]=getTraceDirectory(_0x5adb17['id']);continue;}break;}}}else _0x44fdb9=_0x261e05[_0x327f75(0x28c)]?.[_0x327f75(0x21c)](',\x20')||_0x584e96[_0x327f75(0x1db)];}catch{}if(_0x584e96['RWgAT'](_0x43f076,!_0x52ca56)){if(_0x584e96[_0x327f75(0x277)](_0x584e96[_0x327f75(0x24e)],_0x584e96[_0x327f75(0x223)]))_0x50faf7=_0x584e96[_0x327f75(0x23b)](_0x1da122,_0x43f00b)?_0xc7a754[_0x327f75(0x263)]:_0x584e96[_0x327f75(0x293)](_0x7d0ced,_0x3e0cb7);else throw new Error(_0x327f75(0x25c)+_0x43f076);}if(!_0x52ca56)throw new Error(_0x327f75(0x25e));return _0x52ca56;}else _0x173061=_0x30368f[_0x327f75(0x290)];}finally{if(_0x584e96[_0x327f75(0x2a6)]!==_0x584e96[_0x327f75(0x2a6)])return![];else{!_0x34ba1e&&(_0x34ba1e=await _0x584e96[_0x327f75(0x231)](uploadConversationArtifact,_0x5adb17['id'],_0x4114d5));await cleanupTempFiles(_0x3dec83);try{if(_0x584e96[_0x327f75(0x20d)]('IsPBk',_0x584e96[_0x327f75(0x26a)])){const _0x4ff0d3=_0x584e96[_0x327f75(0x276)](getTraceDirectory,_0x5adb17['id']);_0x584e96['dfEZZ'](existsSync,_0x4ff0d3)&&await _0x584e96[_0x327f75(0x1ec)](rm,_0x4ff0d3,{'recursive':!![],'force':!![]});}else for(const _0x59e362 of _0x293151['message'][_0x327f75(0x269)]){_0x584e96['nTXVd'](_0x59e362[_0x327f75(0x205)],_0x327f75(0x281))&&_0x584e96[_0x327f75(0x1f9)](_0x59e362['name'],_0x584e96[_0x327f75(0x26e)])&&_0x59e362['input']&&(_0x36dc5e=_0x59e362[_0x327f75(0x225)]);}}catch{}try{if(_0x584e96[_0x327f75(0x1e8)]===_0x584e96[_0x327f75(0x1e8)])_0x584e96['OnxmB'](existsSync,_0x13fda2)&&await _0x584e96[_0x327f75(0x1d5)](rm,_0x13fda2,{'recursive':!![],'force':!![]});else throw new _0x3fd021(_0x584e96[_0x327f75(0x268)]);}catch{}}}}
|