@ranger-testing/ranger-cli 2.5.4-alpha.f940f0d-18 → 2.5.4-alpha.feb9faf-20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/legacyWarning.js +1 -1
  52. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  53. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  54. package/build/commands/utils/mcpImageBase64.js +1 -1
  55. package/build/commands/utils/model.js +1 -1
  56. package/build/commands/utils/opencodeConfig.js +1 -1
  57. package/build/commands/utils/playwrightCli.js +1 -1
  58. package/build/commands/utils/profileMessages.js +1 -1
  59. package/build/commands/utils/profileSetupBanner.js +1 -1
  60. package/build/commands/utils/projectsConfig.js +1 -1
  61. package/build/commands/utils/rangerConfig.js +1 -1
  62. package/build/commands/utils/rangerRoot.js +1 -1
  63. package/build/commands/utils/resolveProfileContext.js +1 -1
  64. package/build/commands/utils/resolveProfileUrl.js +1 -1
  65. package/build/commands/utils/retry.js +1 -1
  66. package/build/commands/utils/sessionCache.js +1 -1
  67. package/build/commands/utils/settings.js +1 -1
  68. package/build/commands/utils/skillContent.js +1 -1
  69. package/build/commands/utils/skills.js +1 -1
  70. package/build/commands/utils/stitchWebmFiles.js +1 -1
  71. package/build/commands/utils/telemetry.js +1 -1
  72. package/build/commands/utils/tokenRefresh.js +1 -1
  73. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  74. package/build/commands/utils/userApi.js +1 -1
  75. package/build/commands/utils/version.js +1 -1
  76. package/build/commands/verifyFeature.js +1 -1
  77. package/build/commands/verifyFeatureCli.js +1 -1
  78. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x27a050,_0x109d29){const _0x3d790a=_0x231f,_0x43a569=_0x27a050();while(!![]){try{const _0x13d56d=-parseInt(_0x3d790a(0x1f1))/0x1*(parseInt(_0x3d790a(0x223))/0x2)+parseInt(_0x3d790a(0x20e))/0x3*(-parseInt(_0x3d790a(0x233))/0x4)+parseInt(_0x3d790a(0x1e1))/0x5*(-parseInt(_0x3d790a(0x1b0))/0x6)+parseInt(_0x3d790a(0x1b9))/0x7*(parseInt(_0x3d790a(0x1cc))/0x8)+parseInt(_0x3d790a(0x219))/0x9*(-parseInt(_0x3d790a(0x237))/0xa)+parseInt(_0x3d790a(0x1d0))/0xb*(-parseInt(_0x3d790a(0x1bc))/0xc)+-parseInt(_0x3d790a(0x240))/0xd*(-parseInt(_0x3d790a(0x217))/0xe);if(_0x13d56d===_0x109d29)break;else _0x43a569['push'](_0x43a569['shift']());}catch(_0x162462){_0x43a569['push'](_0x43a569['shift']());}}}(_0x6327,0x633fa));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(_0x1aaf05,_0x1c314e=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0xc279ca=_0x231f,_0x5092a7={'fGwKN':function(_0x2ddc90,_0x1d8101){return _0x2ddc90+_0x1d8101;}};return _0x1aaf05[_0xc279ca(0x226)]>_0x1c314e?_0x5092a7[_0xc279ca(0x1db)](_0x1aaf05[_0xc279ca(0x1e4)](0x0,_0x1c314e),_0xc279ca(0x22b)):_0x1aaf05;}function buildCliArtifactPath(_0x5d9bf8,_0x35351f){const _0x429a64=_0x231f,_0x20e9bc={'NwqHV':function(_0x508e8f,_0x4fef41,_0x11f4d1){return _0x508e8f(_0x4fef41,_0x11f4d1);}};return _0x20e9bc[_0x429a64(0x1ef)](join,_0x5d9bf8,_0x35351f);}function toStepDisplayName(_0x33c4d7){const _0x2ba3e9=_0x231f,_0x53cf36=basename(_0x33c4d7)[_0x2ba3e9(0x206)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x2ba3e9(0x206)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x53cf36,'isKeyStep':/^key_/i['test'](basename(_0x33c4d7))};}function extractShellValue(_0x5da616){if(!_0x5da616)return null;return _0x5da616[0x1]??_0x5da616[0x2]??_0x5da616[0x3]??null;}function extractFilenameOption(_0x157dca){return extractShellValue(_0x157dca['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x23ca5b,_0xddf6ea){const _0x1bb59b=_0x231f,_0x27e9ba=_0xddf6ea[_0x1bb59b(0x206)](/[.*+?^${}()|[\]\\]/g,_0x1bb59b(0x211));return extractShellValue(_0x23ca5b['match'](new RegExp('(?:^|\x5cs)'+_0x27e9ba+_0x1bb59b(0x1c6))));}function formatCommandTarget(_0x2e836d){const _0x5a60a7=_0x231f;if(!_0x2e836d)return _0x5a60a7(0x23a);if(/^e\d+$/i[_0x5a60a7(0x1fb)](_0x2e836d))return _0x5a60a7(0x201)+_0x2e836d;return JSON[_0x5a60a7(0x208)](truncatePreview(_0x2e836d,0x78));}function formatPlaywrightCliLog(_0x4740d7,_0x33fae7){const _0x11dfcc=_0x231f,_0x521d31={'GzFaS':'open\x20browser','ZgLih':'start\x20tracing','HllCq':'stop\x20tracing','ITRBT':'video-start','dGIuH':'stop\x20video\x20recording','ZWxUk':_0x11dfcc(0x1cd),'hHFIG':'screenshot','kZXXI':_0x11dfcc(0x1d7),'wvqWp':function(_0x3efd02,_0x2cdea0){return _0x3efd02(_0x2cdea0);},'VcIVS':function(_0x2145dc,_0x3e2c8e,_0x3bcb14){return _0x2145dc(_0x3e2c8e,_0x3bcb14);},'JBwdH':_0x11dfcc(0x1f4),'UYudz':_0x11dfcc(0x212),'gYyGi':function(_0x3dd6cc,_0x57000b){return _0x3dd6cc(_0x57000b);},'ILdCM':function(_0x263b52,_0x1f1102){return _0x263b52(_0x1f1102);},'NdgrO':'run-code','whzLI':_0x11dfcc(0x1c5),'qAxOO':'open\x20new\x20tab'};switch(_0x33fae7){case'open':{const _0x3974d5=extractFirstCommandArgument(_0x4740d7,_0x33fae7);return _0x3974d5?'open\x20'+_0x3974d5:_0x521d31['GzFaS'];}case'tracing-start':return _0x521d31['ZgLih'];case'tracing-stop':return _0x521d31[_0x11dfcc(0x1bf)];case _0x521d31['ITRBT']:return _0x11dfcc(0x22c);case'video-stop':return _0x521d31['dGIuH'];case _0x11dfcc(0x230):{const _0x31d04b=extractFilenameOption(_0x4740d7);if(!_0x31d04b)return _0x521d31['ZWxUk'];const {name:_0x1cc31c}=toStepDisplayName(_0x31d04b);return'capture\x20snapshot\x20`'+_0x1cc31c+'`';}case _0x521d31[_0x11dfcc(0x229)]:{const _0x265c0e=extractFilenameOption(_0x4740d7);if(!_0x265c0e)return _0x521d31['kZXXI'];const {name:_0x385456,isKeyStep:_0x52c58c}=_0x521d31[_0x11dfcc(0x1ad)](toStepDisplayName,_0x265c0e);return _0x52c58c?'capture\x20key\x20step\x20`'+_0x385456+'`':'capture\x20step\x20`'+_0x385456+'`';}case _0x11dfcc(0x1fa):return _0x11dfcc(0x222)+_0x521d31[_0x11dfcc(0x1ad)](formatCommandTarget,_0x521d31['VcIVS'](extractFirstCommandArgument,_0x4740d7,_0x33fae7));case _0x521d31[_0x11dfcc(0x1ba)]:return'check\x20'+_0x521d31[_0x11dfcc(0x1ad)](formatCommandTarget,extractFirstCommandArgument(_0x4740d7,_0x33fae7));case _0x521d31['UYudz']:return _0x11dfcc(0x1d2)+_0x521d31['gYyGi'](formatCommandTarget,extractFirstCommandArgument(_0x4740d7,_0x33fae7));case'press':return _0x11dfcc(0x1b1)+_0x521d31['ILdCM'](formatCommandTarget,extractFirstCommandArgument(_0x4740d7,_0x33fae7));case _0x521d31[_0x11dfcc(0x221)]:return'run\x20custom\x20Playwright\x20code';case _0x521d31[_0x11dfcc(0x1dd)]:{const _0x425a9=extractFirstCommandArgument(_0x4740d7,_0x33fae7);return _0x425a9?_0x11dfcc(0x205)+_0x425a9:_0x521d31['qAxOO'];}case'tab-select':{const _0x5dfdea=extractFirstCommandArgument(_0x4740d7,_0x33fae7);return _0x5dfdea?_0x11dfcc(0x23e)+_0x5dfdea:_0x11dfcc(0x231);}default:return _0x33fae7;}}function extractPlaywrightCliToolDescription(_0x2d6992){const _0x5c684f=_0x231f,_0x1014ed={'HJmDF':function(_0x2c0914,_0x1a16fd){return _0x2c0914>_0x1a16fd;}},_0x5de5cb=_0x2d6992[_0x5c684f(0x1f2)];if(typeof _0x5de5cb!==_0x5c684f(0x1ac))return null;const _0x45a0f2=_0x5de5cb['trim']()['replace'](/\s+/g,'\x20');return _0x1014ed[_0x5c684f(0x1e9)](_0x45a0f2['length'],0x0)?_0x45a0f2:null;}export function formatPlaywrightCliConsoleLogMessage(_0x150a58,_0x3e5616,_0x27de97){const _0x54f913=_0x231f,_0x55cfbf={'TboKC':function(_0x220251,_0x3453d2){return _0x220251(_0x3453d2);}},_0x535626=formatPlaywrightCliLog(_0x3e5616,_0x27de97),_0x2d8491=_0x55cfbf[_0x54f913(0x1e2)](extractPlaywrightCliToolDescription,_0x150a58);if(!_0x2d8491)return _0x54f913(0x210)+_0x535626;if(process[_0x54f913(0x1d1)][_0x54f913(0x1fc)])return'[ranger-verification-agent]\x20'+_0x2d8491+'\x20('+_0x535626+')';return'[ranger-verification-agent]\x20'+_0x2d8491;}function _0x231f(_0x48b813,_0x35b6a8){_0x48b813=_0x48b813-0x1a7;const _0x632792=_0x6327();let _0x231f4d=_0x632792[_0x48b813];return _0x231f4d;}function _0x6327(){const _0x3badda=['\x0a\x0a1.\x20Run\x20`','ref\x20','trace.zip','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','Oogab','open\x20new\x20tab\x20','replace','Bash','stringify','set','rsgTT','notes','trackPhaseEnd','keys','3gfOLqK','close','[playwright-cli]\x20','\x5c$&','fill','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','stdout','elmEc','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','42voOQrc','tool_name','9SJFxVF','01_initial.yml','KJMSj','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','\x20open\x20','cwd','\x20(on\x20element:\x20<','`:\x20\x22','NdgrO','click\x20','262YzrqFC','error','numeric','length','\x20screenshot\x20--filename\x20','KSMnq','hHFIG','euTDo','...','start\x20video\x20recording','\x20snapshot\x20--filename\x20','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','\x20tracing-start`\x0a3.\x20Run\x20`','snapshot','select\x20tab','PostToolUseFailure','1933836uKrylu','wAIGU','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','VZuuT','4079570JtSBlZ','ptAqj','rTZXR','target','**\x20(','\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.','map','select\x20tab\x20','mrnjv','10467431eZNvph','canonicalFlow','trackPhaseStart','authorName','YWfmR','tool_failure','\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','key_03_success-state.png','string','wvqWp','playwright_cli_tracing_stop','wJGUF','1129242JBBvUh','press\x20','split','subcommand','\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','content','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','\x20tracing-start`,\x20then\x20`','bLQMF','4032fMxlHt','JBwdH','QrvNJ','12iBQOfR','name','03_result-visible.png','HllCq','PXQXM','01_mozilla-homepage.png','playwright-cli','JHfqQ','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','tab-new','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','unaddressedComments','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','isFile','GxBRk','1472PrBcLH','capture\x20snapshot','hook_event_name','\x22,\x20\x22','4546091GbginB','env','fill\x20','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','CboSN','domRef','capture\x20screenshot','qtXkc','`,\x20then\x20`','invocation','fGwKN','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','whzLI','`\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','hlCAw','-\x20[','5uOnoTY','TboKC','lCCjU','slice','trace.trace.zip','--filename=','playwright_cli_video_stop','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','HJmDF','\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','EOjjh','tracing-stop','MkUun','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','NwqHV','\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','4749tPNCuM','description','createdAt','check','toLocaleDateString','commandArgs','`\x0a-\x20`snapshot\x20--filename\x20','xGoUM','QpDEz','click','test','DEBUG','00_mozilla-homepage.yml','session-recording.webm','fjFBK'];_0x6327=function(){return _0x3badda;};return _0x6327();}export function buildVerifyFeatureCliDebugPrompt(_0x70e223,_0x46dd5f){const _0x421986=_0x231f,_0xa4fbc1={'euTDo':function(_0xff5797,_0x46dec7,_0x1b41af){return _0xff5797(_0x46dec7,_0x1b41af);},'bLQMF':'02_learn-more.yml','PVdIC':function(_0x44e46c,_0x68ecab,_0xecea23){return _0x44e46c(_0x68ecab,_0xecea23);},'VZuuT':'03_learn-more.png','xGoUM':function(_0xfd2073,_0x4b0652){return _0xfd2073(_0x4b0652);}},_0x112926=buildCliArtifactPath(_0x46dd5f,_0x421986(0x1fd)),_0x38fa6a=_0xa4fbc1['euTDo'](buildCliArtifactPath,_0x46dd5f,_0x421986(0x1c1)),_0x1a55f5=_0xa4fbc1[_0x421986(0x22a)](buildCliArtifactPath,_0x46dd5f,_0xa4fbc1[_0x421986(0x1b8)]),_0x214c8c=_0xa4fbc1['PVdIC'](buildCliArtifactPath,_0x46dd5f,_0xa4fbc1[_0x421986(0x236)]),_0x4c8a96=quoteShellArg(_0x112926),_0x2b3826=quoteShellArg(_0x38fa6a),_0x5d2e3a=_0xa4fbc1[_0x421986(0x1f8)](quoteShellArg,_0x1a55f5),_0x43faf5=_0xa4fbc1['xGoUM'](quoteShellArg,_0x214c8c);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x70e223+_0x421986(0x200)+_0x70e223+_0x421986(0x235)+_0x70e223+_0x421986(0x22f)+_0x70e223+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x46dd5f+_0x421986(0x22e)+_0x70e223+'\x20snapshot\x20--filename\x20'+_0x4c8a96+_0x421986(0x213)+_0x70e223+_0x421986(0x227)+_0x2b3826+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x70e223+_0x421986(0x22d)+_0x5d2e3a+'`\x0a9.\x20Run\x20`'+_0x70e223+_0x421986(0x227)+_0x43faf5+_0x421986(0x1c9);}export function buildVerifyFeatureCliPrompt(_0x325930){const _0x3d52c2=_0x231f,_0x28a8ed={'ogCWe':'en-US','wJGUF':'short','KJMSj':_0x3d52c2(0x225),'qtXkc':'Reviewer','aTZru':'\x20>\x20','EJKBT':'element','GxBRk':function(_0x4f7d49,_0x16b3cd,_0x2bbd1c){return _0x4f7d49(_0x16b3cd,_0x2bbd1c);},'rsgTT':function(_0x5c7e9e,_0xb6adc4){return _0x5c7e9e(_0xb6adc4);},'ptAqj':function(_0x31b28d,_0x4a6e45){return _0x31b28d(_0x4a6e45);},'KSMnq':function(_0x1cfe56,_0x3ac46c){return _0x1cfe56(_0x3ac46c);},'hlCAw':function(_0x4ca207,_0x2156f0){return _0x4ca207(_0x2156f0);},'DQEUi':'02_button-clicked.png','EQjJp':function(_0x44fda0,_0x541093,_0xd8eaa4){return _0x44fda0(_0x541093,_0xd8eaa4);},'QpDEz':_0x3d52c2(0x1be)},{checklistItem:_0x5dc3a0,itemFeedback:_0x2bebcf,taskDescription:_0x11e7b5,cliCommandPrefix:_0x3f336b,cliArtifactDir:_0x46950d,isCdpMode:_0x385cc3,url:_0x370b09,cdpEndpoint:_0x46d9a1,loginInstructions:_0x487754}=_0x325930,_0x255ae6=_0x28a8ed[_0x3d52c2(0x1cb)](buildCliArtifactPath,_0x46950d,_0x3d52c2(0x21a)),_0x318b1d=_0x28a8ed['GxBRk'](buildCliArtifactPath,_0x46950d,'02_state.yml'),_0x4c569e=buildCliArtifactPath(_0x46950d,_0x3d52c2(0x1ab)),_0x27ebc8=_0x28a8ed['GxBRk'](buildCliArtifactPath,_0x46950d,'01_initial-state.png'),_0x1f8559=_0x28a8ed[_0x3d52c2(0x20a)](quoteShellArg,_0x255ae6),_0x5657f8=_0x28a8ed[_0x3d52c2(0x238)](quoteShellArg,_0x318b1d),_0x3292a6=_0x28a8ed['KSMnq'](quoteShellArg,_0x4c569e),_0x4dbd80=_0x28a8ed[_0x3d52c2(0x1df)](quoteShellArg,_0x27ebc8),_0x41bb2d=_0x5dc3a0['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x5dc3a0[_0x3d52c2(0x20b)]:'';let _0x4c36c8='';if(_0x2bebcf&&_0x2bebcf[_0x3d52c2(0x1c8)][_0x3d52c2(0x226)]>0x0){const _0x538209=_0x2bebcf[_0x3d52c2(0x1c8)][_0x3d52c2(0x23d)](_0x32836f=>{const _0x1c2ada=_0x3d52c2,_0x3f54a3=new Date(_0x32836f[_0x1c2ada(0x1f3)])[_0x1c2ada(0x1f5)](_0x28a8ed['ogCWe'],{'month':_0x28a8ed[_0x1c2ada(0x1af)],'day':_0x28a8ed[_0x1c2ada(0x21b)]}),_0x4b592b=_0x32836f[_0x1c2ada(0x1a7)]||_0x32836f['authorEmail']||_0x28a8ed[_0x1c2ada(0x1d8)],_0x4a7e32=_0x32836f[_0x1c2ada(0x1d6)]?_0x1c2ada(0x21f)+(_0x32836f['domRef']['selector'][_0x1c2ada(0x1b2)](_0x28a8ed['aTZru'])['pop']()?.[_0x1c2ada(0x1b2)](':')[0x0]||_0x28a8ed['EJKBT'])+'>\x20\x22'+(_0x32836f['domRef']['textContent']||'')[_0x1c2ada(0x1e4)](0x0,0x32)+'\x22)':'';return _0x1c2ada(0x1e0)+_0x32836f['id']+']\x20**'+_0x4b592b+_0x1c2ada(0x23b)+_0x3f54a3+'):\x20\x22'+_0x32836f[_0x1c2ada(0x1b5)]+'\x22'+_0x4a7e32;})['join']('\x0a');_0x4c36c8='\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'+_0x538209;}const _0x49eda9=_0x2bebcf?.[_0x3d52c2(0x241)]?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x2bebcf['canonicalFlow']:'',_0x3134ed=_0x385cc3?_0x3d52c2(0x1b6)+_0x46d9a1+_0x3d52c2(0x1dc):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x370b09+_0x3d52c2(0x1f0),_0x357064=_0x370b09?_0x28a8ed[_0x3d52c2(0x228)](quoteShellArg,_0x370b09):'',_0x39af92=_0x385cc3?_0x3d52c2(0x1d3)+_0x3f336b+'\x20open`,\x20then\x20`'+_0x3f336b+_0x3d52c2(0x1b7)+_0x3f336b+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x46950d+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x3f336b+'\x20snapshot\x20--filename\x20'+_0x1f8559+'`\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`'+_0x3f336b+_0x3d52c2(0x227)+_0x4dbd80+_0x3d52c2(0x21c)+_0x3f336b+_0x3d52c2(0x1b4):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x3f336b+_0x3d52c2(0x21d)+_0x357064+_0x3d52c2(0x1d9)+_0x3f336b+'\x20tracing-start`,\x20then\x20`'+_0x3f336b+_0x3d52c2(0x1ee)+_0x46950d+_0x3d52c2(0x203)+_0x3f336b+'\x20snapshot\x20--filename\x20'+_0x1f8559+'`\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`'+_0x3f336b+_0x3d52c2(0x227)+_0x4dbd80+_0x3d52c2(0x216)+_0x3f336b+_0x3d52c2(0x1aa),_0x30b9e7=_0x385cc3?_0x3d52c2(0x23c):'\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.',_0x1a5709=_0x487754?_0x3d52c2(0x1d4)+_0x487754+'\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'+_0x5dc3a0['description']+_0x41bb2d+_0x4c36c8+_0x49eda9+_0x3d52c2(0x1c7)+_0x11e7b5+'\x0a\x0a'+_0x3134ed+_0x1a5709+'\x0a\x0a'+_0x39af92+_0x3d52c2(0x1e8)+_0x3f336b+_0x3d52c2(0x1c4)+_0x46950d+_0x3d52c2(0x1f7)+_0x5657f8+_0x3d52c2(0x1de)+_0x3292a6+'`\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`'+_0x46950d+_0x3d52c2(0x220)+_0x27ebc8+_0x3d52c2(0x1cf)+buildCliArtifactPath(_0x46950d,_0x28a8ed['DQEUi'])+'\x22,\x20\x22'+_0x28a8ed['EQjJp'](buildCliArtifactPath,_0x46950d,_0x28a8ed[_0x3d52c2(0x1f9)])+_0x3d52c2(0x1ea)+buildCliArtifactPath(_0x46950d,'key_04_success-state.png')+'\x22\x0a-\x20The\x20\x22key_\x22\x20prefix\x20marks\x20screenshots\x20as\x20high-priority\x20evidence\x20for\x20human\x20reviewers\x0a\x0a**Aim\x20for\x203-6\x20screenshots\x20per\x20verification**\x20to\x20document\x20the\x20complete\x20flow.\x20Mark\x201-2\x20of\x20the\x20most\x20important\x20ones\x20with\x20the\x20\x22key_\x22\x20prefix.\x0a'+_0x30b9e7+'\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(_0x5d4c70){const _0x4eb415=_0x231f,_0x37dd09={'JIKRd':function(_0x3838d0,_0x29dea7){return _0x3838d0===_0x29dea7;}},_0x329a40=[..._0x5d4c70[_0x4eb415(0x20d)]()]['sort']();let _0x2341a5=0x0;for(const _0x544aef of _0x5d4c70['values']()){_0x2341a5+=_0x544aef;}return{'cliCommandCount':_0x2341a5,'cliCommandsSeen':_0x329a40,'noCliCommandsCalled':_0x37dd09['JIKRd'](_0x2341a5,0x0)};}export function createVerifyFeatureCliHooks(_0x3864cc){const _0xd14a12=_0x231f,_0x1b2c42={'PXQXM':function(_0x54e3cb,_0x23fe8d){return _0x54e3cb!==_0x23fe8d;},'uGSqd':function(_0x1d2497,_0x42d4f3){return _0x1d2497!==_0x42d4f3;},'iOGJB':function(_0xf84b72,_0xe49dbd){return _0xf84b72(_0xe49dbd);},'EzDHo':function(_0x350301,_0x1ed94c){return _0x350301+_0x1ed94c;},'OmDTm':'tool_call','fjFBK':_0xd14a12(0x1c2),'Dgati':function(_0x3a0430,_0x583250){return _0x3a0430(_0x583250);},'CboSN':_0xd14a12(0x230),'wAIGU':function(_0x4b1b71,_0x25ac6f,_0x47fd09,_0x543625){return _0x4b1b71(_0x25ac6f,_0x47fd09,_0x543625);},'ZGGPE':_0xd14a12(0x1a9),'QrvNJ':_0xd14a12(0x207)},_0x1f4316=new Map(),_0x3fabce=async _0x19c4f6=>{const _0x30ee55=_0xd14a12;if(_0x1b2c42[_0x30ee55(0x1c0)](_0x19c4f6[_0x30ee55(0x1ce)],'PostToolUse'))return{};const _0x190b94=_0x19c4f6;if(_0x1b2c42['uGSqd'](_0x190b94[_0x30ee55(0x218)],'Bash'))return{};const _0x54d340=_0x190b94['tool_input'],_0x5cdd07=_0x1b2c42['iOGJB'](extractBashCommand,_0x54d340);if(!_0x5cdd07)return{};const _0x2b13c4=parsePlaywrightCliCommand(_0x5cdd07);if(!_0x2b13c4)return{};return _0x1f4316[_0x30ee55(0x209)](_0x2b13c4,_0x1b2c42['EzDHo'](_0x1f4316['get'](_0x2b13c4)||0x0,0x1)),_0x3864cc[_0x30ee55(0x242)](_0x1b2c42['OmDTm'],{'transport':_0x1b2c42[_0x30ee55(0x1ff)],'toolName':_0x2b13c4}),_0x3864cc['trackPhaseEnd'](_0x1b2c42['OmDTm'],{'transport':'playwright-cli','toolName':_0x2b13c4,'bashCommandPreview':_0x1b2c42['Dgati'](truncatePreview,_0x5cdd07)}),_0x2b13c4!==_0x1b2c42[_0x30ee55(0x1d5)]&&console['log'](_0x1b2c42[_0x30ee55(0x234)](formatPlaywrightCliConsoleLogMessage,_0x54d340,_0x5cdd07,_0x2b13c4)),{};},_0x1f55e7=async _0x1076b2=>{const _0x1cf221=_0xd14a12;if(_0x1076b2['hook_event_name']!==_0x1cf221(0x232))return{};const _0x73cf99=_0x1076b2;if(_0x1b2c42[_0x1cf221(0x1c0)](_0x73cf99[_0x1cf221(0x218)],_0x1cf221(0x207)))return{};return await _0x3864cc['trackPhaseError'](_0x1b2c42['ZGGPE'],_0x73cf99[_0x1cf221(0x224)],{'transport':'playwright-cli','toolName':_0x1b2c42[_0x1cf221(0x1bb)]}),{};};return{'postToolUseHook':_0x3fabce,'postToolUseFailureHook':_0x1f55e7,'commandCounts':_0x1f4316};}async function runPlaywrightCliLifecycleCommand(_0x2b0d29){const _0x2344ec=_0x231f,_0x3119d7={'JHfqQ':function(_0x4b252c,_0x43a793){return _0x4b252c(_0x43a793);},'gTCPa':function(_0x59f3fe,_0x454a4a,_0x213b0a){return _0x59f3fe(_0x454a4a,_0x213b0a);},'YWfmR':function(_0x4d3bd8,_0x19a0ea,_0x2a8afc){return _0x4d3bd8(_0x19a0ea,_0x2a8afc);}},{sessionId:_0x51ae83,configPath:_0xae025c,commandArgs:_0x2e5a84,env:_0x127c8d,telemetry:_0x179ab8,phase:_0x59b26d,metadata:_0x4cabf9,timeoutMs:_0x369144}=_0x2b0d29;_0x179ab8[_0x2344ec(0x242)](_0x59b26d,_0x4cabf9);try{const _0x3ac115=await _0x3119d7[_0x2344ec(0x1c3)](runPlaywrightCliCommand,{'sessionId':_0x51ae83,'configPath':_0xae025c,'commandArgs':_0x2e5a84,'cwd':process[_0x2344ec(0x21e)](),'env':_0x127c8d,'timeoutMs':_0x369144??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x179ab8[_0x2344ec(0x20c)](_0x59b26d,{..._0x4cabf9,'subcommand':_0x3ac115[_0x2344ec(0x1da)][_0x2344ec(0x1b3)],'stdoutPreview':_0x3119d7['gTCPa'](truncatePreview,_0x3ac115[_0x2344ec(0x214)],0x7d0),'stderrPreview':_0x3119d7[_0x2344ec(0x1a8)](truncatePreview,_0x3ac115['stderr'],0x7d0)});}catch(_0x3a1d4e){await _0x179ab8['trackPhaseError'](_0x59b26d,_0x3a1d4e,_0x4cabf9);throw _0x3a1d4e;}}export async function finalizeVerifyFeatureCliSession(_0x51322e){const _0x397157=_0x231f,_0x26b5a1={'ltSMB':_0x397157(0x1ae),'elmEc':_0x397157(0x1ec),'gyOWt':_0x397157(0x1e7),'iBuWg':function(_0x235105,_0x41a6f0,_0x28cce6){return _0x235105(_0x41a6f0,_0x28cce6);},'ZLVWC':_0x397157(0x1fe),'EOjjh':function(_0x185d11,_0x5ae7a6){return _0x185d11(_0x5ae7a6);}},{telemetry:_0x989dd4,sessionId:_0x180fab,configPath:_0xa3c00c,cliArtifactDir:_0x3cd06b,env:_0x17aece,transportMetadata:_0x1538f9}=_0x51322e,_0x16e55a=[{'phase':_0x26b5a1['ltSMB'],'commandArgs':[_0x26b5a1[_0x397157(0x215)]]},{'phase':_0x26b5a1['gyOWt'],'commandArgs':['video-stop',_0x397157(0x1e6)+_0x26b5a1['iBuWg'](buildCliArtifactPath,_0x3cd06b,_0x26b5a1['ZLVWC'])]},{'phase':'playwright_cli_close','commandArgs':[_0x397157(0x20f)]}];for(const _0x4644d4 of _0x16e55a){try{await _0x26b5a1[_0x397157(0x1eb)](runPlaywrightCliLifecycleCommand,{'sessionId':_0x180fab,'configPath':_0xa3c00c,'commandArgs':[..._0x4644d4[_0x397157(0x1f6)]],'env':_0x17aece,'telemetry':_0x989dd4,'phase':_0x4644d4['phase'],'metadata':_0x1538f9});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x1cab24){const _0x2a11c7=_0x231f,_0x2bd353={'mrnjv':_0x2a11c7(0x202),'lCCjU':function(_0x30f7fa,_0x564b4a,_0x2b2c2d){return _0x30f7fa(_0x564b4a,_0x2b2c2d);},'tFJEe':function(_0x586605,_0xcf9b56){return _0x586605(_0xcf9b56);}},_0x27e672=[_0x2bd353[_0x2a11c7(0x23f)],_0x2a11c7(0x1e5)];for(const _0x36ac31 of _0x27e672){const _0x3fec0d=_0x2bd353[_0x2a11c7(0x1e3)](join,_0x1cab24,_0x36ac31);try{return{'buffer':await _0x2bd353['tFJEe'](readFile,_0x3fec0d),'source':_0x3fec0d};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x5e6f25){const _0xc51e3=_0x231f,_0x34ce98={'GtFXN':function(_0x41e80c,_0xf47c92,_0x2ed0f9){return _0x41e80c(_0xf47c92,_0x2ed0f9);},'wyTss':function(_0x45192d,_0x1d9824,_0x3cbb20){return _0x45192d(_0x1d9824,_0x3cbb20);},'Oogab':function(_0xe6e050,_0x4be384,_0x36e7a4){return _0xe6e050(_0x4be384,_0x36e7a4);},'MkUun':function(_0x5353f8,_0x5691f0){return _0x5353f8(_0x5691f0);},'rTZXR':function(_0x1acfc0,_0x23f95a){return _0x1acfc0<_0x23f95a;}},{cwd:_0x3d35d4,cliArtifactDir:_0x30cc54,startTime:_0x44fd82}=_0x5e6f25,_0x59d7d4=[];await _0x34ce98['GtFXN'](mkdir,_0x30cc54,{'recursive':!![]});const _0x9507e8=await _0x34ce98['wyTss'](readdir,_0x3d35d4,{'withFileTypes':!![]});for(const _0x4b9afc of _0x9507e8){if(!_0x4b9afc[_0xc51e3(0x1ca)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0xc51e3(0x1fb)](_0x4b9afc[_0xc51e3(0x1bd)]))continue;const _0xc6b1ca=_0x34ce98[_0xc51e3(0x204)](join,_0x3d35d4,_0x4b9afc[_0xc51e3(0x1bd)]),_0x4c0360=await _0x34ce98[_0xc51e3(0x1ed)](stat,_0xc6b1ca);if(_0x34ce98[_0xc51e3(0x239)](_0x4c0360['mtimeMs']+0x7d0,_0x44fd82))continue;const _0x3fdbf4=buildCliArtifactPath(_0x30cc54,_0x4b9afc[_0xc51e3(0x1bd)]);if(_0xc6b1ca===_0x3fdbf4)continue;await _0x34ce98['wyTss'](rename,_0xc6b1ca,_0x3fdbf4),_0x59d7d4['push'](_0x4b9afc['name']);}return _0x59d7d4['sort']();}
1
+ (function(_0x2d7805,_0x4ead0e){const _0x1e8b6e=_0x57c9,_0x57d5b3=_0x2d7805();while(!![]){try{const _0x3ede49=-parseInt(_0x1e8b6e(0x1d8))/0x1*(-parseInt(_0x1e8b6e(0x1b7))/0x2)+parseInt(_0x1e8b6e(0x1c4))/0x3*(parseInt(_0x1e8b6e(0x1e6))/0x4)+parseInt(_0x1e8b6e(0x220))/0x5+-parseInt(_0x1e8b6e(0x1ad))/0x6*(-parseInt(_0x1e8b6e(0x1cb))/0x7)+parseInt(_0x1e8b6e(0x20f))/0x8*(parseInt(_0x1e8b6e(0x1d7))/0x9)+-parseInt(_0x1e8b6e(0x1c7))/0xa+parseInt(_0x1e8b6e(0x1b3))/0xb*(-parseInt(_0x1e8b6e(0x1ef))/0xc);if(_0x3ede49===_0x4ead0e)break;else _0x57d5b3['push'](_0x57d5b3['shift']());}catch(_0x586632){_0x57d5b3['push'](_0x57d5b3['shift']());}}}(_0x19fe,0x52b9c));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(_0x5b9034,_0x4a394f=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x1cb154=_0x57c9,_0x2597f8={'WnayV':function(_0x339716,_0x3c4262){return _0x339716+_0x3c4262;},'XidBs':'...'};return _0x5b9034['length']>_0x4a394f?_0x2597f8[_0x1cb154(0x1b9)](_0x5b9034[_0x1cb154(0x213)](0x0,_0x4a394f),_0x2597f8[_0x1cb154(0x236)]):_0x5b9034;}function buildCliArtifactPath(_0x414e52,_0x9eeebe){const _0x11880a=_0x57c9,_0x1d07eb={'ptYPU':function(_0x207042,_0x559fa8,_0x171a63){return _0x207042(_0x559fa8,_0x171a63);}};return _0x1d07eb[_0x11880a(0x212)](join,_0x414e52,_0x9eeebe);}function toStepDisplayName(_0xa05073){const _0x3c1571=_0x57c9,_0x88e7a0={'NqfFW':function(_0x5c362b,_0x4dfef6){return _0x5c362b(_0x4dfef6);}},_0x11c280=_0x88e7a0[_0x3c1571(0x229)](basename,_0xa05073)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')[_0x3c1571(0x1ba)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x11c280,'isKeyStep':/^key_/i['test'](_0x88e7a0['NqfFW'](basename,_0xa05073))};}function extractShellValue(_0x104669){if(!_0x104669)return null;return _0x104669[0x1]??_0x104669[0x2]??_0x104669[0x3]??null;}function _0x19fe(){const _0x5bffc4=['WnayV','replace','lKRlt','run\x20custom\x20Playwright\x20code','02_learn-more.yml','textContent','aQmvK','playwright-cli','01_mozilla-homepage.png','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','XTqgG','12aoEKPD','\x0a\x0a1.\x20Run\x20`','stop\x20tracing','4996130GaiZYL','tool_call','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','numeric','49hFeJFe','\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','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','lcGhK','capture\x20key\x20step\x20`','check\x20','ijDdY','PoDAN','\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.','\x20screenshot\x20--filename\x20','ngFpJ','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','9OGoFvw','426837lQHxtV',']\x20**','trackPhaseStart','press','\x20snapshot\x20--filename\x20','03_learn-more.png','`:\x20\x22','playwright_cli_tracing_stop','capture\x20screenshot','authorEmail','ObHxA','tool_failure','tracing-start','knUCU','654612pdLWeK','video-start','fill','PostToolUseFailure','**\x20(','tool_input','`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','JWZfz','478776sAYxap','element','select\x20tab\x20','`\x0a-\x20`run-code\x20\x22await\x20page.waitForTimeout(1000)\x22`\x20for\x20waits\x20or\x20small\x20custom\x20checks\x0a\x0a##\x20Screenshot\x20Guidelines\x20-\x20IMPORTANT\x0aTake\x20screenshots\x20throughout\x20the\x20verification\x20flow\x20so\x20a\x20human\x20can\x20review\x20it\x20for\x20completeness.\x20Screenshots\x20are\x20your\x20evidence\x20trail.\x0a\x0a**When\x20to\x20take\x20screenshots\x20(use\x20Playwright\x20CLI\x20screenshot):**\x0a-\x20After\x20the\x20initial\x20snapshot\x20(capture\x20starting\x20state)\x0a-\x20Before\x20and\x20after\x20clicking\x20buttons\x20or\x20submitting\x20forms\x0a-\x20When\x20important\x20UI\x20elements\x20appear\x20(modals,\x20notifications,\x20loading\x20states)\x0a-\x20After\x20navigating\x20to\x20different\x20views\x20or\x20pages\x0a-\x20When\x20verifying\x20specific\x20elements\x20exist\x0a-\x20At\x20the\x20final\x20state\x20showing\x20the\x20completed\x20action\x0a\x0a**Screenshot\x20naming:**\x0a-\x20Use\x20descriptive\x20filenames\x20under\x20`','screenshot','createdAt','unaddressedComments','pop','stop\x20video\x20recording','UiUol','\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','click\x20','Bash','):\x20\x22','jdXBU','`\x0a-\x20`snapshot\x20--filename\x20','kWmNk','\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.','notes','test','error','stderr','qXGPV','nkkfa','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','KOQgv','key_03_success-state.png','capture\x20snapshot\x20`','wxZmZ','domRef','open\x20browser','playwright_cli_close','3448112VCrUPj','start\x20video\x20recording','fYiGc','ptYPU','slice','\x20(on\x20element:\x20<','press\x20','tab-select','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','open\x20','run-code','click','tyiAz','string','02_button-clicked.png','oylGh','(?:^|\x5cs)','3319865koPgEh','trackPhaseError','canonicalFlow','hook_event_name','start\x20tracing','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','UdzEg','XUcuf','\x20>\x20','NqfFW','video-stop','BUqrw','>\x20\x22','Zttzh','description','[playwright-cli]\x20','`,\x20then\x20`','\x20tracing-start`,\x20then\x20`','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','subcommand','check','`\x0a9.\x20Run\x20`','XidBs','match','ArBIU','GzrlK','split','capture\x20step\x20`','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','\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.','name','\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','set','\x22,\x20\x22','target','sort','186894rosSSI','trackPhaseEnd','tool_name','DEBUG','`\x20and\x20read\x20the\x20snapshot\x20file\x20to\x20inspect\x20the\x20page.\x0a5.\x20**IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors\x20before\x20proceeding.**\x0a6.\x20Execute\x20the\x20task\x20step-by-step\x20with\x20Playwright\x20CLI\x20commands.\x0a7.\x20Use\x20`','phase','429HVkjFH','open\x20new\x20tab','QYses','\x20open\x20','2aGZmBD','\x0a\x0a##\x20Additional\x20Notes\x0a'];_0x19fe=function(){return _0x5bffc4;};return _0x19fe();}function extractFilenameOption(_0x2aba79){return extractShellValue(_0x2aba79['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x9c783d,_0x1317d8){const _0x181292=_0x57c9,_0x9c326a={'QYses':'\x5c$&'},_0xebf7fd=_0x1317d8[_0x181292(0x1ba)](/[.*+?^${}()|[\]\\]/g,_0x9c326a[_0x181292(0x1b5)]);return extractShellValue(_0x9c783d[_0x181292(0x237)](new RegExp(_0x181292(0x21f)+_0xebf7fd+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function _0x57c9(_0x3b0b4f,_0xe5da32){_0x3b0b4f=_0x3b0b4f-0x1a3;const _0x19feca=_0x19fe();let _0x57c915=_0x19feca[_0x3b0b4f];return _0x57c915;}function formatCommandTarget(_0x288955){const _0x3c3c8d=_0x57c9,_0x26bb4a={'UdzEg':function(_0x73afaf,_0x3b83c1,_0x17bdbd){return _0x73afaf(_0x3b83c1,_0x17bdbd);}};if(!_0x288955)return _0x3c3c8d(0x1ab);if(/^e\d+$/i[_0x3c3c8d(0x202)](_0x288955))return'ref\x20'+_0x288955;return JSON['stringify'](_0x26bb4a[_0x3c3c8d(0x226)](truncatePreview,_0x288955,0x78));}function formatPlaywrightCliLog(_0x319ae5,_0x33885b){const _0x4569a1=_0x57c9,_0x290439={'nkkfa':'open','UiUol':function(_0x2dc371,_0x290a8c,_0xc13e5){return _0x2dc371(_0x290a8c,_0xc13e5);},'dgpID':_0x4569a1(0x20d),'fYiGc':'tracing-stop','zkRyu':_0x4569a1(0x1e7),'SlHMn':_0x4569a1(0x210),'AJpeb':_0x4569a1(0x1f7),'VvkjE':'snapshot','UnkKm':'capture\x20snapshot','lcGhK':function(_0x345bbb,_0xd8cf5c){return _0x345bbb(_0xd8cf5c);},'kWmNk':_0x4569a1(0x234),'jdXBU':_0x4569a1(0x1e8),'tyiAz':function(_0x5a7ed6,_0x363203){return _0x5a7ed6(_0x363203);},'RopHx':function(_0x3a6cbf,_0x3ffb37,_0x5a82c4){return _0x3a6cbf(_0x3ffb37,_0x5a82c4);},'ArBIU':function(_0x13baec,_0x5ce91e){return _0x13baec(_0x5ce91e);},'pAGGx':_0x4569a1(0x219),'Birby':'tab-new','uGREF':function(_0x560be5,_0x2ac224,_0x211c2c){return _0x560be5(_0x2ac224,_0x211c2c);}};switch(_0x33885b){case _0x290439[_0x4569a1(0x206)]:{const _0xec160a=_0x290439[_0x4569a1(0x1f8)](extractFirstCommandArgument,_0x319ae5,_0x33885b);return _0xec160a?_0x4569a1(0x218)+_0xec160a:_0x290439['dgpID'];}case _0x4569a1(0x1e4):return _0x4569a1(0x224);case _0x290439[_0x4569a1(0x211)]:return _0x4569a1(0x1c6);case _0x290439['zkRyu']:return _0x290439['SlHMn'];case _0x4569a1(0x22a):return _0x290439['AJpeb'];case _0x290439['VvkjE']:{const _0x58b5d4=extractFilenameOption(_0x319ae5);if(!_0x58b5d4)return _0x290439['UnkKm'];const {name:_0x1a399a}=toStepDisplayName(_0x58b5d4);return _0x4569a1(0x20a)+_0x1a399a+'`';}case _0x4569a1(0x1f3):{const _0x3ed3c9=_0x290439['lcGhK'](extractFilenameOption,_0x319ae5);if(!_0x3ed3c9)return _0x4569a1(0x1e0);const {name:_0x55fb5b,isKeyStep:_0x244610}=_0x290439['lcGhK'](toStepDisplayName,_0x3ed3c9);return _0x244610?_0x4569a1(0x1cf)+_0x55fb5b+'`':_0x4569a1(0x1a4)+_0x55fb5b+'`';}case _0x4569a1(0x21a):return _0x4569a1(0x1fa)+_0x290439[_0x4569a1(0x1ce)](formatCommandTarget,extractFirstCommandArgument(_0x319ae5,_0x33885b));case _0x290439[_0x4569a1(0x1ff)]:return _0x4569a1(0x1d0)+formatCommandTarget(_0x290439['UiUol'](extractFirstCommandArgument,_0x319ae5,_0x33885b));case _0x290439[_0x4569a1(0x1fd)]:return'fill\x20'+_0x290439[_0x4569a1(0x21b)](formatCommandTarget,_0x290439['RopHx'](extractFirstCommandArgument,_0x319ae5,_0x33885b));case _0x4569a1(0x1db):return _0x4569a1(0x215)+_0x290439[_0x4569a1(0x238)](formatCommandTarget,extractFirstCommandArgument(_0x319ae5,_0x33885b));case _0x290439['pAGGx']:return _0x4569a1(0x1bc);case _0x290439['Birby']:{const _0x5aa257=_0x290439['uGREF'](extractFirstCommandArgument,_0x319ae5,_0x33885b);return _0x5aa257?'open\x20new\x20tab\x20'+_0x5aa257:_0x4569a1(0x1b4);}case _0x4569a1(0x216):{const _0x114ffa=extractFirstCommandArgument(_0x319ae5,_0x33885b);return _0x114ffa?_0x4569a1(0x1f1)+_0x114ffa:'select\x20tab';}default:return _0x33885b;}}function extractPlaywrightCliToolDescription(_0x1d2497){const _0xbaebc1=_0x57c9,_0x41da53={'peIkb':function(_0x52848e,_0x572856){return _0x52848e!==_0x572856;},'MaClQ':_0xbaebc1(0x21c),'ObHxA':function(_0x9da011,_0x5b2599){return _0x9da011>_0x5b2599;}},_0x4af5ff=_0x1d2497[_0xbaebc1(0x22e)];if(_0x41da53['peIkb'](typeof _0x4af5ff,_0x41da53['MaClQ']))return null;const _0x45c500=_0x4af5ff['trim']()[_0xbaebc1(0x1ba)](/\s+/g,'\x20');return _0x41da53[_0xbaebc1(0x1e2)](_0x45c500['length'],0x0)?_0x45c500:null;}export function formatPlaywrightCliConsoleLogMessage(_0x189d20,_0x2bb08b,_0x535477){const _0x101f9b=_0x57c9,_0x42eac0=formatPlaywrightCliLog(_0x2bb08b,_0x535477),_0x5e988c=extractPlaywrightCliToolDescription(_0x189d20);if(!_0x5e988c)return _0x101f9b(0x22f)+_0x42eac0;if(process['env'][_0x101f9b(0x1b0)])return'[ranger-verification-agent]\x20'+_0x5e988c+'\x20('+_0x42eac0+')';return'[ranger-verification-agent]\x20'+_0x5e988c;}export function buildVerifyFeatureCliDebugPrompt(_0x198e45,_0x16e9d4){const _0x5983a4=_0x57c9,_0x96c258={'GzrlK':function(_0x56e8eb,_0x5b774d,_0x4900ba){return _0x56e8eb(_0x5b774d,_0x4900ba);},'knUCU':function(_0x2ab931,_0x47a209){return _0x2ab931(_0x47a209);}},_0x4f7863=_0x96c258['GzrlK'](buildCliArtifactPath,_0x16e9d4,'00_mozilla-homepage.yml'),_0x553072=buildCliArtifactPath(_0x16e9d4,_0x5983a4(0x1c1)),_0x40ddce=_0x96c258['GzrlK'](buildCliArtifactPath,_0x16e9d4,_0x5983a4(0x1bd)),_0x2a4971=_0x96c258[_0x5983a4(0x239)](buildCliArtifactPath,_0x16e9d4,_0x5983a4(0x1dd)),_0x34da29=_0x96c258[_0x5983a4(0x1e5)](quoteShellArg,_0x4f7863),_0x36de62=quoteShellArg(_0x553072),_0x5a659d=_0x96c258['knUCU'](quoteShellArg,_0x40ddce),_0x4b36cd=_0x96c258[_0x5983a4(0x1e5)](quoteShellArg,_0x2a4971);return _0x5983a4(0x217)+_0x198e45+_0x5983a4(0x1c5)+_0x198e45+_0x5983a4(0x1d6)+_0x198e45+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x198e45+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x16e9d4+_0x5983a4(0x225)+_0x198e45+_0x5983a4(0x1dc)+_0x34da29+_0x5983a4(0x1ed)+_0x198e45+_0x5983a4(0x1d4)+_0x36de62+_0x5983a4(0x1c9)+_0x198e45+'\x20snapshot\x20--filename\x20'+_0x5a659d+_0x5983a4(0x235)+_0x198e45+'\x20screenshot\x20--filename\x20'+_0x4b36cd+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x2e5b2a){const _0x5ba4cb=_0x57c9,_0x1448b6={'JWZfz':'en-US','qXGPV':'Reviewer','lKRlt':_0x5ba4cb(0x228),'ijDdY':_0x5ba4cb(0x1f0),'XUcuf':'01_initial.yml','ncVOY':'01_initial-state.png','Zttzh':function(_0x3061c8,_0x5b077a){return _0x3061c8(_0x5b077a);}},{checklistItem:_0x56ba2b,itemFeedback:_0x360434,taskDescription:_0x5a2287,cliCommandPrefix:_0x5749dc,cliArtifactDir:_0x56903f,isCdpMode:_0xf61f5f,url:_0x35a24c,cdpEndpoint:_0x5232d2,loginInstructions:_0x313e4f}=_0x2e5b2a,_0x4a0ebf=buildCliArtifactPath(_0x56903f,_0x1448b6[_0x5ba4cb(0x227)]),_0x4d9054=buildCliArtifactPath(_0x56903f,'02_state.yml'),_0x52339e=buildCliArtifactPath(_0x56903f,_0x5ba4cb(0x209)),_0x50f7b8=buildCliArtifactPath(_0x56903f,_0x1448b6['ncVOY']),_0x386dc0=_0x1448b6[_0x5ba4cb(0x22d)](quoteShellArg,_0x4a0ebf),_0x547973=_0x1448b6[_0x5ba4cb(0x22d)](quoteShellArg,_0x4d9054),_0x2cfc31=quoteShellArg(_0x52339e),_0x2ce6b0=quoteShellArg(_0x50f7b8),_0x9a76fa=_0x56ba2b[_0x5ba4cb(0x201)]?_0x5ba4cb(0x1b8)+_0x56ba2b['notes']:'';let _0x4c4bc4='';if(_0x360434&&_0x360434[_0x5ba4cb(0x1f5)]['length']>0x0){const _0x227238=_0x360434['unaddressedComments']['map'](_0x6c3e51=>{const _0x167eee=_0x5ba4cb,_0x290e9d=new Date(_0x6c3e51[_0x167eee(0x1f4)])['toLocaleDateString'](_0x1448b6[_0x167eee(0x1ee)],{'month':'short','day':_0x167eee(0x1ca)}),_0x33d02e=_0x6c3e51['authorName']||_0x6c3e51[_0x167eee(0x1e1)]||_0x1448b6[_0x167eee(0x205)],_0x1812ab=_0x6c3e51[_0x167eee(0x20c)]?_0x167eee(0x214)+(_0x6c3e51['domRef']['selector'][_0x167eee(0x1a3)](_0x1448b6[_0x167eee(0x1bb)])[_0x167eee(0x1f6)]()?.['split'](':')[0x0]||_0x1448b6[_0x167eee(0x1d1)])+_0x167eee(0x22c)+(_0x6c3e51['domRef'][_0x167eee(0x1be)]||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x6c3e51['id']+_0x167eee(0x1d9)+_0x33d02e+_0x167eee(0x1ea)+_0x290e9d+_0x167eee(0x1fc)+_0x6c3e51['content']+'\x22'+_0x1812ab;})['join']('\x0a');_0x4c4bc4='\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'+_0x227238;}const _0x5a99d7=_0x360434?.[_0x5ba4cb(0x222)]?_0x5ba4cb(0x1a5)+_0x360434['canonicalFlow']:'',_0xf52576=_0xf61f5f?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x5232d2+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x35a24c+'\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',_0x38ae97=_0x35a24c?quoteShellArg(_0x35a24c):'',_0x47f96c=_0xf61f5f?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x5749dc+'\x20open`,\x20then\x20`'+_0x5749dc+'\x20tracing-start`,\x20then\x20`'+_0x5749dc+_0x5ba4cb(0x1c2)+_0x56903f+_0x5ba4cb(0x232)+_0x5749dc+'\x20snapshot\x20--filename\x20'+_0x386dc0+'`\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`'+_0x5749dc+'\x20screenshot\x20--filename\x20'+_0x2ce6b0+_0x5ba4cb(0x207)+_0x5749dc+_0x5ba4cb(0x1cc):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x5749dc+_0x5ba4cb(0x1b6)+_0x38ae97+_0x5ba4cb(0x230)+_0x5749dc+_0x5ba4cb(0x231)+_0x5749dc+_0x5ba4cb(0x1c2)+_0x56903f+_0x5ba4cb(0x232)+_0x5749dc+'\x20snapshot\x20--filename\x20'+_0x386dc0+_0x5ba4cb(0x1b1)+_0x5749dc+'\x20screenshot\x20--filename\x20'+_0x2ce6b0+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x5749dc+_0x5ba4cb(0x1a8),_0x2dd20f=_0xf61f5f?_0x5ba4cb(0x1a6):_0x5ba4cb(0x200),_0x4d8101=_0x313e4f?_0x5ba4cb(0x1cd)+_0x313e4f+_0x5ba4cb(0x1d3):'';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'+_0x56ba2b[_0x5ba4cb(0x22e)]+_0x9a76fa+_0x4c4bc4+_0x5a99d7+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x5a2287+'\x0a\x0a'+_0xf52576+_0x4d8101+'\x0a\x0a'+_0x47f96c+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x5749dc+_0x5ba4cb(0x1ec)+_0x56903f+_0x5ba4cb(0x1fe)+_0x547973+'`\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'+_0x2cfc31+_0x5ba4cb(0x1f2)+_0x56903f+_0x5ba4cb(0x1de)+_0x50f7b8+_0x5ba4cb(0x1aa)+buildCliArtifactPath(_0x56903f,_0x5ba4cb(0x21d))+'\x22,\x20\x22'+buildCliArtifactPath(_0x56903f,'03_result-visible.png')+'\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(_0x56903f,'key_04_success-state.png')+_0x5ba4cb(0x1f9)+_0x2dd20f+'\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(_0x21b6de){const _0x3ad8bf=[..._0x21b6de['keys']()]['sort']();let _0x1e5e13=0x0;for(const _0x17eaf3 of _0x21b6de['values']()){_0x1e5e13+=_0x17eaf3;}return{'cliCommandCount':_0x1e5e13,'cliCommandsSeen':_0x3ad8bf,'noCliCommandsCalled':_0x1e5e13===0x0};}export function createVerifyFeatureCliHooks(_0x2f3818){const _0x44d1a7=_0x57c9,_0x43833b={'BUqrw':function(_0x130088,_0x3b51df){return _0x130088!==_0x3b51df;},'IsAMa':'PostToolUse','LSqyZ':function(_0x21e7e9,_0x4a5d0a){return _0x21e7e9(_0x4a5d0a);},'PoDAN':'tool_call','BiRep':'playwright-cli','HWnds':'snapshot','oylGh':function(_0x526a8f,_0x1e7a4d,_0xa41fc7,_0x439857){return _0x526a8f(_0x1e7a4d,_0xa41fc7,_0x439857);},'XTqgG':_0x44d1a7(0x1e9),'ImFkY':_0x44d1a7(0x1e3)},_0x5979a3=new Map(),_0x23c1af=async _0x1953c5=>{const _0x2497ec=_0x44d1a7;if(_0x43833b[_0x2497ec(0x22b)](_0x1953c5['hook_event_name'],_0x43833b['IsAMa']))return{};const _0xc42b7c=_0x1953c5;if(_0xc42b7c[_0x2497ec(0x1af)]!==_0x2497ec(0x1fb))return{};const _0x3e65cf=_0xc42b7c[_0x2497ec(0x1eb)],_0x411291=extractBashCommand(_0x3e65cf);if(!_0x411291)return{};const _0x4e503a=_0x43833b['LSqyZ'](parsePlaywrightCliCommand,_0x411291);if(!_0x4e503a)return{};return _0x5979a3[_0x2497ec(0x1a9)](_0x4e503a,(_0x5979a3['get'](_0x4e503a)||0x0)+0x1),_0x2f3818[_0x2497ec(0x1da)](_0x43833b[_0x2497ec(0x1d2)],{'transport':_0x43833b['BiRep'],'toolName':_0x4e503a}),_0x2f3818[_0x2497ec(0x1ae)](_0x2497ec(0x1c8),{'transport':_0x2497ec(0x1c0),'toolName':_0x4e503a,'bashCommandPreview':truncatePreview(_0x411291)}),_0x4e503a!==_0x43833b['HWnds']&&console['log'](_0x43833b[_0x2497ec(0x21e)](formatPlaywrightCliConsoleLogMessage,_0x3e65cf,_0x411291,_0x4e503a)),{};},_0x35a2dc=async _0x34e8ff=>{const _0x7fe6df=_0x44d1a7;if(_0x34e8ff[_0x7fe6df(0x223)]!==_0x43833b[_0x7fe6df(0x1c3)])return{};const _0x42efb8=_0x34e8ff;if(_0x43833b['BUqrw'](_0x42efb8[_0x7fe6df(0x1af)],_0x7fe6df(0x1fb)))return{};return await _0x2f3818['trackPhaseError'](_0x43833b['ImFkY'],_0x42efb8[_0x7fe6df(0x203)],{'transport':'playwright-cli','toolName':'Bash'}),{};};return{'postToolUseHook':_0x23c1af,'postToolUseFailureHook':_0x35a2dc,'commandCounts':_0x5979a3};}async function runPlaywrightCliLifecycleCommand(_0xb9dcdd){const _0x53f36b=_0x57c9,_0x18968d={'KOQgv':function(_0x266b76,_0x320df7){return _0x266b76(_0x320df7);},'jeStx':function(_0x494660,_0x1f7223){return _0x494660??_0x1f7223;},'VVMhX':function(_0x226fcb,_0x8519e,_0x4da094){return _0x226fcb(_0x8519e,_0x4da094);},'XKFmr':function(_0x27ef11,_0x470ace,_0x552d1b){return _0x27ef11(_0x470ace,_0x552d1b);}},{sessionId:_0x319f17,configPath:_0x4df8af,commandArgs:_0x40155e,env:_0x406ff8,telemetry:_0x59937f,phase:_0x3ced9c,metadata:_0x5da0fd,timeoutMs:_0x396801}=_0xb9dcdd;_0x59937f['trackPhaseStart'](_0x3ced9c,_0x5da0fd);try{const _0xdcecfd=await _0x18968d[_0x53f36b(0x208)](runPlaywrightCliCommand,{'sessionId':_0x319f17,'configPath':_0x4df8af,'commandArgs':_0x40155e,'cwd':process['cwd'](),'env':_0x406ff8,'timeoutMs':_0x18968d['jeStx'](_0x396801,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x59937f[_0x53f36b(0x1ae)](_0x3ced9c,{..._0x5da0fd,'subcommand':_0xdcecfd['invocation'][_0x53f36b(0x233)],'stdoutPreview':_0x18968d['VVMhX'](truncatePreview,_0xdcecfd['stdout'],0x7d0),'stderrPreview':_0x18968d['XKFmr'](truncatePreview,_0xdcecfd[_0x53f36b(0x204)],0x7d0)});}catch(_0x3fd1a0){await _0x59937f[_0x53f36b(0x221)](_0x3ced9c,_0x3fd1a0,_0x5da0fd);throw _0x3fd1a0;}}export async function finalizeVerifyFeatureCliSession(_0x3b5aaa){const _0x11bc43=_0x57c9,_0x46ec3a={'OKbgv':'tracing-stop','XdVwx':'playwright_cli_video_stop','ELtzi':'video-stop','QhJFP':_0x11bc43(0x20e),'aQmvK':function(_0x4e94dc,_0x2e0a9e){return _0x4e94dc(_0x2e0a9e);}},{telemetry:_0x25e48e,sessionId:_0xe0baec,configPath:_0x523041,cliArtifactDir:_0x514e2b,env:_0x13b9c9,transportMetadata:_0x32f8b1}=_0x3b5aaa,_0x557e56=[{'phase':_0x11bc43(0x1df),'commandArgs':[_0x46ec3a['OKbgv']]},{'phase':_0x46ec3a['XdVwx'],'commandArgs':[_0x46ec3a['ELtzi'],'--filename='+buildCliArtifactPath(_0x514e2b,'session-recording.webm')]},{'phase':_0x46ec3a['QhJFP'],'commandArgs':['close']}];for(const _0x174c96 of _0x557e56){try{await _0x46ec3a[_0x11bc43(0x1bf)](runPlaywrightCliLifecycleCommand,{'sessionId':_0xe0baec,'configPath':_0x523041,'commandArgs':[..._0x174c96['commandArgs']],'env':_0x13b9c9,'telemetry':_0x25e48e,'phase':_0x174c96[_0x11bc43(0x1b2)],'metadata':_0x32f8b1});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x4dcba8){const _0x2e7328={'cxVwk':'trace.trace.zip'},_0x3e654d=['trace.zip',_0x2e7328['cxVwk']];for(const _0x4911d1 of _0x3e654d){const _0x581357=join(_0x4dcba8,_0x4911d1);try{return{'buffer':await readFile(_0x581357),'source':_0x581357};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0xd93def){const _0x1033ce=_0x57c9,_0x2e6d8d={'usWHY':function(_0x115ceb,_0x2840e3,_0x29ca7c){return _0x115ceb(_0x2840e3,_0x29ca7c);},'wxZmZ':function(_0x2dab05,_0x23ae44){return _0x2dab05(_0x23ae44);},'ngFpJ':function(_0x5d9a12,_0x1200be){return _0x5d9a12+_0x1200be;}},{cwd:_0xac58a9,cliArtifactDir:_0x520776,startTime:_0x183d97}=_0xd93def,_0x36fe11=[];await _0x2e6d8d['usWHY'](mkdir,_0x520776,{'recursive':!![]});const _0x5a678e=await readdir(_0xac58a9,{'withFileTypes':!![]});for(const _0x3ba3ec of _0x5a678e){if(!_0x3ba3ec['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN[_0x1033ce(0x202)](_0x3ba3ec[_0x1033ce(0x1a7)]))continue;const _0x4a275d=join(_0xac58a9,_0x3ba3ec[_0x1033ce(0x1a7)]),_0x3d07d5=await _0x2e6d8d[_0x1033ce(0x20b)](stat,_0x4a275d);if(_0x2e6d8d[_0x1033ce(0x1d5)](_0x3d07d5['mtimeMs'],0x7d0)<_0x183d97)continue;const _0x1884bd=buildCliArtifactPath(_0x520776,_0x3ba3ec[_0x1033ce(0x1a7)]);if(_0x4a275d===_0x1884bd)continue;await rename(_0x4a275d,_0x1884bd),_0x36fe11['push'](_0x3ba3ec['name']);}return _0x36fe11[_0x1033ce(0x1ac)]();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "2.5.4-alpha.f940f0d-18",
3
+ "version": "2.5.4-alpha.feb9faf-20",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",