@ranger-testing/ranger-cli 3.1.0 → 3.1.1-alpha.b22d278-38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5ddbdc,_0x356208){const _0x55479d=_0x160c,_0x5624f8=_0x5ddbdc();while(!![]){try{const _0x68cca8=-parseInt(_0x55479d(0x21c))/0x1*(-parseInt(_0x55479d(0x1f7))/0x2)+parseInt(_0x55479d(0x214))/0x3+parseInt(_0x55479d(0x1d1))/0x4+-parseInt(_0x55479d(0x1da))/0x5+parseInt(_0x55479d(0x1fe))/0x6*(-parseInt(_0x55479d(0x1ec))/0x7)+parseInt(_0x55479d(0x1bb))/0x8*(-parseInt(_0x55479d(0x1af))/0x9)+-parseInt(_0x55479d(0x223))/0xa*(-parseInt(_0x55479d(0x215))/0xb);if(_0x68cca8===_0x356208)break;else _0x5624f8['push'](_0x5624f8['shift']());}catch(_0x25495f){_0x5624f8['push'](_0x5624f8['shift']());}}}(_0x4d8a,0x96598));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(_0x1da7d8,_0x10fd56=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x2ee0b8=_0x160c,_0x581c55={'SvWRO':function(_0x2f5f4c,_0x3278d4){return _0x2f5f4c>_0x3278d4;},'LAcVn':function(_0xf50585,_0x4670bf){return _0xf50585+_0x4670bf;},'FQCss':_0x2ee0b8(0x1bc)};return _0x581c55[_0x2ee0b8(0x1a0)](_0x1da7d8[_0x2ee0b8(0x1cb)],_0x10fd56)?_0x581c55[_0x2ee0b8(0x1df)](_0x1da7d8['slice'](0x0,_0x10fd56),_0x581c55['FQCss']):_0x1da7d8;}function buildCliArtifactPath(_0x39edf2,_0x130226){return join(_0x39edf2,_0x130226);}function toStepDisplayName(_0x2d0acc){const _0x466653=_0x160c,_0x18c55c={'lHBoN':function(_0x16316c,_0x87f08b){return _0x16316c(_0x87f08b);}},_0x58ad94=_0x18c55c['lHBoN'](basename,_0x2d0acc)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x466653(0x1d4)](/^key_/i,'')[_0x466653(0x1d4)](/^\d+_/,'')[_0x466653(0x1d4)](/-/g,'\x20');return{'name':_0x58ad94,'isKeyStep':/^key_/i['test'](basename(_0x2d0acc))};}function extractShellValue(_0x12f32b){if(!_0x12f32b)return null;return _0x12f32b[0x1]??_0x12f32b[0x2]??_0x12f32b[0x3]??null;}function extractFilenameOption(_0x40227d){return extractShellValue(_0x40227d['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x1498eb,_0x170647){const _0x52783c=_0x160c,_0x4ce192={'qJlKP':_0x52783c(0x1c4)},_0x177d3c=_0x170647['replace'](/[.*+?^${}()|[\]\\]/g,_0x4ce192[_0x52783c(0x19e)]);return extractShellValue(_0x1498eb[_0x52783c(0x1ad)](new RegExp('(?:^|\x5cs)'+_0x177d3c+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x592d43){const _0x2a8cdc=_0x160c,_0x1c8011={'QoBnT':'target'};if(!_0x592d43)return _0x1c8011[_0x2a8cdc(0x1e8)];if(/^e\d+$/i['test'](_0x592d43))return'ref\x20'+_0x592d43;return JSON['stringify'](truncatePreview(_0x592d43,0x78));}function formatPlaywrightCliLog(_0x56db57,_0xf6a75a){const _0x56f1f8=_0x160c,_0x3bbd3f={'DQNAi':'tracing-start','msOdI':_0x56f1f8(0x206),'zDmar':'start\x20video\x20recording','wWDoI':_0x56f1f8(0x1b6),'xdGfo':_0x56f1f8(0x1b7),'kwICP':_0x56f1f8(0x1ba),'qgmwW':function(_0x189aab,_0x5e137e){return _0x189aab(_0x5e137e);},'QafyK':_0x56f1f8(0x1c1),'PLscJ':function(_0x5400cb,_0x41efa9){return _0x5400cb(_0x41efa9);},'RQziX':function(_0x120541,_0x52105f,_0x3eb4e1){return _0x120541(_0x52105f,_0x3eb4e1);},'ScFrQ':_0x56f1f8(0x1b4),'UviTu':_0x56f1f8(0x19a),'BcdIq':function(_0x494455,_0x2d0abc){return _0x494455(_0x2d0abc);},'Fefog':'run-code','Ixphj':'run\x20custom\x20Playwright\x20code','kzqEv':'open\x20new\x20tab'};switch(_0xf6a75a){case _0x56f1f8(0x207):{const _0x21ae16=extractFirstCommandArgument(_0x56db57,_0xf6a75a);return _0x21ae16?'open\x20'+_0x21ae16:_0x56f1f8(0x1c2);}case _0x3bbd3f[_0x56f1f8(0x1ab)]:return _0x3bbd3f[_0x56f1f8(0x1cd)];case'tracing-stop':return _0x56f1f8(0x1ea);case'video-start':return _0x3bbd3f['zDmar'];case _0x3bbd3f[_0x56f1f8(0x1f6)]:return _0x3bbd3f[_0x56f1f8(0x1a5)];case _0x3bbd3f['kwICP']:{const _0x15cf8a=extractFilenameOption(_0x56db57);if(!_0x15cf8a)return'capture\x20snapshot';const {name:_0x2507a1}=toStepDisplayName(_0x15cf8a);return'capture\x20snapshot\x20`'+_0x2507a1+'`';}case'screenshot':{const _0x5e95b2=_0x3bbd3f['qgmwW'](extractFilenameOption,_0x56db57);if(!_0x5e95b2)return _0x3bbd3f['QafyK'];const {name:_0x38bf97,isKeyStep:_0x537870}=toStepDisplayName(_0x5e95b2);return _0x537870?'capture\x20key\x20step\x20`'+_0x38bf97+'`':_0x56f1f8(0x1a4)+_0x38bf97+'`';}case _0x56f1f8(0x202):return _0x56f1f8(0x1f3)+formatCommandTarget(extractFirstCommandArgument(_0x56db57,_0xf6a75a));case _0x56f1f8(0x21f):return'check\x20'+_0x3bbd3f[_0x56f1f8(0x1c8)](formatCommandTarget,_0x3bbd3f['RQziX'](extractFirstCommandArgument,_0x56db57,_0xf6a75a));case _0x3bbd3f[_0x56f1f8(0x1a3)]:return'fill\x20'+formatCommandTarget(extractFirstCommandArgument(_0x56db57,_0xf6a75a));case _0x3bbd3f['UviTu']:return _0x56f1f8(0x1ae)+_0x3bbd3f[_0x56f1f8(0x1d5)](formatCommandTarget,extractFirstCommandArgument(_0x56db57,_0xf6a75a));case _0x3bbd3f[_0x56f1f8(0x201)]:return _0x3bbd3f[_0x56f1f8(0x20c)];case _0x56f1f8(0x211):{const _0x4b198e=_0x3bbd3f['RQziX'](extractFirstCommandArgument,_0x56db57,_0xf6a75a);return _0x4b198e?_0x56f1f8(0x21e)+_0x4b198e:_0x3bbd3f['kzqEv'];}case'tab-select':{const _0x36391a=_0x3bbd3f[_0x56f1f8(0x1ac)](extractFirstCommandArgument,_0x56db57,_0xf6a75a);return _0x36391a?_0x56f1f8(0x1e9)+_0x36391a:'select\x20tab';}default:return _0xf6a75a;}}function _0x160c(_0x5ebb4f,_0xd622b2){_0x5ebb4f=_0x5ebb4f-0x199;const _0x4d8a08=_0x4d8a();let _0x160ccc=_0x4d8a08[_0x5ebb4f];return _0x160ccc;}function extractPlaywrightCliToolDescription(_0x39745f){const _0x39973c=_0x160c,_0x2200f3={'xszGt':function(_0x4b5abd,_0x37e5bb){return _0x4b5abd>_0x37e5bb;}},_0xa23a8e=_0x39745f['description'];if(typeof _0xa23a8e!==_0x39973c(0x1d0))return null;const _0x191c81=_0xa23a8e['trim']()['replace'](/\s+/g,'\x20');return _0x2200f3['xszGt'](_0x191c81[_0x39973c(0x1cb)],0x0)?_0x191c81:null;}export function formatPlaywrightCliConsoleLogMessage(_0x4777b2,_0x2d37d8,_0x285ee5){const _0xa10966=_0x160c,_0x6a8237=formatPlaywrightCliLog(_0x2d37d8,_0x285ee5),_0x10121f=extractPlaywrightCliToolDescription(_0x4777b2);if(!_0x10121f)return'[playwright-cli]\x20'+_0x6a8237;if(process[_0xa10966(0x1fa)]['DEBUG'])return _0xa10966(0x20b)+_0x10121f+'\x20('+_0x6a8237+')';return'[ranger-verification-agent]\x20'+_0x10121f;}export function buildVerifyFeatureCliDebugPrompt(_0x2ce837,_0x3b15a0){const _0x5805d2=_0x160c,_0x556a92={'rwhJo':_0x5805d2(0x1d7),'MGFwZ':function(_0x99671e,_0x5c65b1){return _0x99671e(_0x5c65b1);}},_0x1fc90f=buildCliArtifactPath(_0x3b15a0,'00_mozilla-homepage.yml'),_0x522d12=buildCliArtifactPath(_0x3b15a0,_0x556a92['rwhJo']),_0x5a5a5e=buildCliArtifactPath(_0x3b15a0,_0x5805d2(0x19c)),_0x18119b=buildCliArtifactPath(_0x3b15a0,'03_learn-more.png'),_0x3ab53b=quoteShellArg(_0x1fc90f),_0x487845=_0x556a92['MGFwZ'](quoteShellArg,_0x522d12),_0x4ea084=quoteShellArg(_0x5a5a5e),_0x57a856=_0x556a92[_0x5805d2(0x1b5)](quoteShellArg,_0x18119b);return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a'+_0x2ce837+_0x5805d2(0x1f8)+_0x2ce837+_0x5805d2(0x1e2)+_0x2ce837+_0x5805d2(0x219)+_0x2ce837+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x3b15a0+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x2ce837+_0x5805d2(0x1f4)+_0x3ab53b+_0x5805d2(0x1e0)+_0x2ce837+'\x20screenshot\x20--filename\x20'+_0x487845+_0x5805d2(0x1a9)+_0x2ce837+_0x5805d2(0x1f4)+_0x4ea084+_0x5805d2(0x1b8)+_0x2ce837+_0x5805d2(0x1e4)+_0x57a856+'`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureCliPrompt(_0x43b848){const _0x1e14a4=_0x160c,_0x5b8ffd={'rfmyD':'en-US','YfCZH':'numeric','WLVJd':'Reviewer','vIIlw':'01_initial.yml','TlxhC':_0x1e14a4(0x1cc),'wayhi':_0x1e14a4(0x1bd),'VlZVW':_0x1e14a4(0x1c9),'UOgao':function(_0x5d9d27,_0x2ff765){return _0x5d9d27(_0x2ff765);},'sflRl':_0x1e14a4(0x1e3),'NXqPc':function(_0x19bd17,_0x10c23a,_0x58e56b){return _0x19bd17(_0x10c23a,_0x58e56b);},'evHsT':_0x1e14a4(0x1f9)},{checklistItem:_0x2b81e2,itemFeedback:_0x4af899,taskDescription:_0x585f15,cliCommandPrefix:_0x3492cc,cliArtifactDir:_0x2bacc1,isCdpMode:_0x364bca,url:_0x2f2ad7,cdpEndpoint:_0x23b797,loginInstructions:_0x3c2113}=_0x43b848,_0x21bedc=buildCliArtifactPath(_0x2bacc1,_0x5b8ffd['vIIlw']),_0x5aa8a8=buildCliArtifactPath(_0x2bacc1,_0x5b8ffd['TlxhC']),_0x58bc19=buildCliArtifactPath(_0x2bacc1,_0x5b8ffd[_0x1e14a4(0x212)]),_0x1d700b=buildCliArtifactPath(_0x2bacc1,_0x5b8ffd[_0x1e14a4(0x1aa)]),_0x3e3ba6=_0x5b8ffd['UOgao'](quoteShellArg,_0x21bedc),_0x54e420=quoteShellArg(_0x5aa8a8),_0x42706c=quoteShellArg(_0x58bc19),_0x4fc6b9=_0x5b8ffd['UOgao'](quoteShellArg,_0x1d700b),_0xb3355a=_0x2b81e2[_0x1e14a4(0x1d6)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x2b81e2['notes']:'';let _0x271601='';if(_0x4af899&&_0x4af899['unaddressedComments']['length']>0x0){const _0x11072d=_0x4af899[_0x1e14a4(0x1d3)]['map'](_0x7a72d3=>{const _0x47ccc5=_0x1e14a4,_0x50c9e5=new Date(_0x7a72d3[_0x47ccc5(0x220)])['toLocaleDateString'](_0x5b8ffd[_0x47ccc5(0x1d8)],{'month':_0x47ccc5(0x1a7),'day':_0x5b8ffd[_0x47ccc5(0x21d)]}),_0x23cc22=_0x7a72d3[_0x47ccc5(0x19d)]||_0x7a72d3['authorEmail']||_0x5b8ffd[_0x47ccc5(0x1f0)],_0x12b81a=_0x7a72d3['domRef']?_0x47ccc5(0x1b9)+(_0x7a72d3['domRef'][_0x47ccc5(0x1c0)]['split']('\x20>\x20')['pop']()?.[_0x47ccc5(0x1d9)](':')[0x0]||_0x47ccc5(0x1eb))+'>\x20\x22'+(_0x7a72d3[_0x47ccc5(0x213)][_0x47ccc5(0x1c5)]||'')[_0x47ccc5(0x1de)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x7a72d3['id']+']\x20**'+_0x23cc22+'**\x20('+_0x50c9e5+_0x47ccc5(0x1be)+_0x7a72d3[_0x47ccc5(0x1e5)]+'\x22'+_0x12b81a;})[_0x1e14a4(0x1f1)]('\x0a');_0x271601='\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'+_0x11072d;}const _0x369741=_0x4af899?.['canonicalFlow']?_0x1e14a4(0x1bf)+_0x4af899[_0x1e14a4(0x1a6)]:'',_0x51979d=_0x364bca?_0x1e14a4(0x1b2)+_0x23b797+_0x1e14a4(0x1ca):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x2f2ad7+'\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',_0x46f905=_0x2f2ad7?quoteShellArg(_0x2f2ad7):'',_0x54446b=_0x364bca?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x3492cc+_0x1e14a4(0x20f)+_0x3492cc+'\x20tracing-start`,\x20then\x20`'+_0x3492cc+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2bacc1+_0x1e14a4(0x200)+_0x3492cc+_0x1e14a4(0x1f4)+_0x3e3ba6+_0x1e14a4(0x217)+_0x3492cc+'\x20screenshot\x20--filename\x20'+_0x4fc6b9+_0x1e14a4(0x1c7)+_0x3492cc+_0x1e14a4(0x1fc):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x3492cc+_0x1e14a4(0x19f)+_0x46f905+'`,\x20then\x20`'+_0x3492cc+_0x1e14a4(0x19b)+_0x3492cc+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2bacc1+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x3492cc+_0x1e14a4(0x1f4)+_0x3e3ba6+_0x1e14a4(0x1ed)+_0x3492cc+_0x1e14a4(0x1e4)+_0x4fc6b9+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x3492cc+'\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',_0xf3e2d2=_0x364bca?_0x1e14a4(0x1e6):_0x1e14a4(0x1ce),_0x56e811=_0x3c2113?_0x1e14a4(0x222)+_0x3c2113+'\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'+_0x2b81e2['description']+_0xb3355a+_0x271601+_0x369741+_0x1e14a4(0x1e7)+_0x585f15+'\x0a\x0a'+_0x51979d+_0x56e811+'\x0a\x0a'+_0x54446b+_0x1e14a4(0x1d2)+_0x3492cc+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x2bacc1+_0x1e14a4(0x1b3)+_0x54e420+_0x1e14a4(0x1c6)+_0x42706c+'`\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`'+_0x2bacc1+_0x1e14a4(0x1dd)+_0x1d700b+'\x22,\x20\x22'+buildCliArtifactPath(_0x2bacc1,_0x5b8ffd['sflRl'])+'\x22,\x20\x22'+_0x5b8ffd[_0x1e14a4(0x1b0)](buildCliArtifactPath,_0x2bacc1,_0x1e14a4(0x208))+'\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(_0x2bacc1,_0x5b8ffd['evHsT'])+_0x1e14a4(0x221)+_0xf3e2d2+_0x1e14a4(0x1fd);}function _0x4d8a(){const _0x328176=['GjCsW','QueZR','start\x20tracing','open','03_result-visible.png','SXEQR','session-recording.webm','[ranger-verification-agent]\x20','Ixphj','trackPhaseStart','playwright_cli_video_stop','\x20open`,\x20then\x20`','tool_failure','tab-new','wayhi','domRef','538518iIYPMq','539NQyUfa','values','`\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`','commandArgs','\x20tracing-start`\x0a3.\x20Run\x20`','name','PostToolUseFailure','14ZeMqvk','YfCZH','open\x20new\x20tab\x20','check','createdAt','\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','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','234960NHLfSW','trackPhaseEnd','tool_name','press','\x20tracing-start`,\x20then\x20`','02_learn-more.yml','authorName','qJlKP','\x20open\x20','SvWRO','trackPhaseError','jjsCU','ScFrQ','capture\x20step\x20`','xdGfo','canonicalFlow','short','PyRKm','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','VlZVW','DQNAi','RQziX','match','press\x20','27RlenlU','NXqPc','keys','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20','`\x0a-\x20`snapshot\x20--filename\x20','fill','MGFwZ','video-stop','stop\x20video\x20recording','`\x0a9.\x20Run\x20`','\x20(on\x20element:\x20<','snapshot','1760896sxRpbD','...','key_03_success-state.png','):\x20\x22','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','selector','capture\x20screenshot','open\x20browser','playwright-cli','\x5c$&','textContent','`\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.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','PLscJ','01_initial-state.png','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','length','02_state.yml','msOdI','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','bWbMJ','string','1382624SqecHs','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','unaddressedComments','replace','BcdIq','notes','01_mozilla-homepage.png','rfmyD','split','2333390dnHjnx','playwright_cli_tracing_stop','subcommand','`:\x20\x22','slice','LAcVn','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','log','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','02_button-clicked.png','\x20screenshot\x20--filename\x20','content','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20taking\x20the\x20initial\x20snapshot,\x20IMMEDIATELY\x20check\x20for\x20blocking\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20Crash\x20or\x20error\x20dialogs\x20(\x22An\x20error\x20occurred\x22,\x20\x22Something\x20went\x20wrong\x22,\x20unhandled\x20exception\x20messages)\x0a-\x20Blank\x20or\x20empty\x20window\x20with\x20no\x20rendered\x20content\x0a-\x20Framework\x20error\x20boundaries\x20(React\x20error\x20page,\x20Electron\x20crash\x20reporter)\x0a-\x20Unresponsive\x20or\x20frozen\x20UI\x20(no\x20interactive\x20elements\x20in\x20snapshot)\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22App\x20crashed\x20—\x20error\x20dialog\x20visible\x20on\x20launch\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20type:\x20\x22APP_ERROR\x22\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','QoBnT','select\x20tab\x20','stop\x20tracing','element','1918duGiQy','`\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`','get','PostToolUse','WLVJd','join','sort','click\x20','\x20snapshot\x20--filename\x20','qGzUO','wWDoI','102682VQpFqt','\x0a\x0a1.\x20Run\x20`','key_04_success-state.png','env','--filename=','\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##\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.','14286MOUdKW','USqsW','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','Fefog','click','phase'];_0x4d8a=function(){return _0x328176;};return _0x4d8a();}export function summarizeVerifyFeatureCliCommandAvailability(_0x17bd2d){const _0x1f2bcc=_0x160c,_0x2d8312=[..._0x17bd2d[_0x1f2bcc(0x1b1)]()][_0x1f2bcc(0x1f2)]();let _0x4d9fb3=0x0;for(const _0x239787 of _0x17bd2d[_0x1f2bcc(0x216)]()){_0x4d9fb3+=_0x239787;}return{'cliCommandCount':_0x4d9fb3,'cliCommandsSeen':_0x2d8312,'noCliCommandsCalled':_0x4d9fb3===0x0};}export function createVerifyFeatureCliHooks(_0x148621){const _0x285e42=_0x160c,_0x4f4c07={'PyRKm':function(_0xca2cec,_0x5adf20){return _0xca2cec!==_0x5adf20;},'USqsW':function(_0x42fd12,_0x2b0c69){return _0x42fd12(_0x2b0c69);},'QueZR':function(_0x49feca,_0x264820){return _0x49feca+_0x264820;},'qGzUO':'tool_call','aPHIf':'playwright-cli','yGXxJ':'snapshot','vqCLf':function(_0x1e20ce,_0x316ef3){return _0x1e20ce!==_0x316ef3;},'bWbMJ':_0x285e42(0x210)},_0x3c73b3=new Map(),_0xe5e015=async _0x363e27=>{const _0x450bb3=_0x285e42;if(_0x363e27['hook_event_name']!==_0x450bb3(0x1ef))return{};const _0x3d3fed=_0x363e27;if(_0x4f4c07[_0x450bb3(0x1a8)](_0x3d3fed['tool_name'],'Bash'))return{};const _0x377aef=_0x3d3fed['tool_input'],_0x553203=_0x4f4c07[_0x450bb3(0x1ff)](extractBashCommand,_0x377aef);if(!_0x553203)return{};const _0x28f39c=parsePlaywrightCliCommand(_0x553203);if(!_0x28f39c)return{};return _0x3c73b3['set'](_0x28f39c,_0x4f4c07[_0x450bb3(0x205)](_0x3c73b3[_0x450bb3(0x1ee)](_0x28f39c)||0x0,0x1)),_0x148621['trackPhaseStart'](_0x4f4c07[_0x450bb3(0x1f5)],{'transport':_0x4f4c07['aPHIf'],'toolName':_0x28f39c}),_0x148621['trackPhaseEnd'](_0x4f4c07[_0x450bb3(0x1f5)],{'transport':_0x4f4c07['aPHIf'],'toolName':_0x28f39c,'bashCommandPreview':_0x4f4c07['USqsW'](truncatePreview,_0x553203)}),_0x28f39c!==_0x4f4c07['yGXxJ']&&console[_0x450bb3(0x1e1)](formatPlaywrightCliConsoleLogMessage(_0x377aef,_0x553203,_0x28f39c)),{};},_0x5f461a=async _0x204bd7=>{const _0x3e05a0=_0x285e42;if(_0x4f4c07['vqCLf'](_0x204bd7['hook_event_name'],_0x3e05a0(0x21b)))return{};const _0x2b52ff=_0x204bd7;if(_0x4f4c07['vqCLf'](_0x2b52ff[_0x3e05a0(0x199)],'Bash'))return{};return await _0x148621['trackPhaseError'](_0x4f4c07[_0x3e05a0(0x1cf)],_0x2b52ff['error'],{'transport':_0x3e05a0(0x1c3),'toolName':'Bash'}),{};};return{'postToolUseHook':_0xe5e015,'postToolUseFailureHook':_0x5f461a,'commandCounts':_0x3c73b3};}async function runPlaywrightCliLifecycleCommand(_0x51fc82){const _0x532467=_0x160c,_0x4b3822={'SXEQR':function(_0x154831,_0xf9c36c,_0x1f6371){return _0x154831(_0xf9c36c,_0x1f6371);}},{sessionId:_0x57f9a3,configPath:_0x248301,commandArgs:_0x50ef83,env:_0x1980d5,telemetry:_0x2c7824,phase:_0x57c899,metadata:_0x2011e9,timeoutMs:_0x46f225}=_0x51fc82;_0x2c7824[_0x532467(0x20d)](_0x57c899,_0x2011e9);try{const _0x2ebc1d=await runPlaywrightCliCommand({'sessionId':_0x57f9a3,'configPath':_0x248301,'commandArgs':_0x50ef83,'cwd':process['cwd'](),'env':_0x1980d5,'timeoutMs':_0x46f225??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x2c7824[_0x532467(0x224)](_0x57c899,{..._0x2011e9,'subcommand':_0x2ebc1d['invocation'][_0x532467(0x1dc)],'stdoutPreview':truncatePreview(_0x2ebc1d['stdout'],0x7d0),'stderrPreview':_0x4b3822[_0x532467(0x209)](truncatePreview,_0x2ebc1d['stderr'],0x7d0)});}catch(_0x189807){await _0x2c7824[_0x532467(0x1a1)](_0x57c899,_0x189807,_0x2011e9);throw _0x189807;}}export async function finalizeVerifyFeatureCliSession(_0x37c33a){const _0x5ded16=_0x160c,_0x263544={'RvnNy':_0x5ded16(0x1db),'oOXUx':'tracing-stop','GjCsW':'video-stop','qSRba':function(_0x60a9a7,_0x189838,_0x3b1a56){return _0x60a9a7(_0x189838,_0x3b1a56);},'rpGSn':_0x5ded16(0x20a),'IYZcq':'playwright_cli_close'},{telemetry:_0x3cf9c9,sessionId:_0x4e608a,configPath:_0x4ae3ec,cliArtifactDir:_0x90c9d4,env:_0x3b1dba,transportMetadata:_0x4d2d36}=_0x37c33a,_0x1ec01e=[{'phase':_0x263544['RvnNy'],'commandArgs':[_0x263544['oOXUx']]},{'phase':_0x5ded16(0x20e),'commandArgs':[_0x263544[_0x5ded16(0x204)],_0x5ded16(0x1fb)+_0x263544['qSRba'](buildCliArtifactPath,_0x90c9d4,_0x263544['rpGSn'])]},{'phase':_0x263544['IYZcq'],'commandArgs':['close']}];for(const _0x442471 of _0x1ec01e){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x4e608a,'configPath':_0x4ae3ec,'commandArgs':[..._0x442471[_0x5ded16(0x218)]],'env':_0x3b1dba,'telemetry':_0x3cf9c9,'phase':_0x442471[_0x5ded16(0x203)],'metadata':_0x4d2d36});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x397d6a){const _0x2a247b=_0x160c,_0x48063a={'jjsCU':function(_0x3a1d4f,_0x35adf5,_0x527037){return _0x3a1d4f(_0x35adf5,_0x527037);},'mmvKB':function(_0x4a03b9,_0x105aa0){return _0x4a03b9(_0x105aa0);}},_0x49987d=['trace.zip','trace.trace.zip'];for(const _0x3e52b7 of _0x49987d){const _0x12ab4c=_0x48063a[_0x2a247b(0x1a2)](join,_0x397d6a,_0x3e52b7);try{return{'buffer':await _0x48063a['mmvKB'](readFile,_0x12ab4c),'source':_0x12ab4c};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x579e81){const _0x4c185f=_0x160c,_0x1ce240={'WTnQH':function(_0x4a52a4,_0x5cbdb0,_0x46ab21){return _0x4a52a4(_0x5cbdb0,_0x46ab21);},'NTxrd':function(_0x495e71,_0x4109d1){return _0x495e71===_0x4109d1;}},{cwd:_0x2abd19,cliArtifactDir:_0x50a512,startTime:_0x5b62a9}=_0x579e81,_0x477040=[];await _0x1ce240['WTnQH'](mkdir,_0x50a512,{'recursive':!![]});const _0x19065d=await readdir(_0x2abd19,{'withFileTypes':!![]});for(const _0x10f1c1 of _0x19065d){if(!_0x10f1c1['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x10f1c1[_0x4c185f(0x21a)]))continue;const _0xb8a77d=join(_0x2abd19,_0x10f1c1['name']),_0x2f391c=await stat(_0xb8a77d);if(_0x2f391c['mtimeMs']+0x7d0<_0x5b62a9)continue;const _0x39eb30=buildCliArtifactPath(_0x50a512,_0x10f1c1['name']);if(_0x1ce240['NTxrd'](_0xb8a77d,_0x39eb30))continue;await _0x1ce240['WTnQH'](rename,_0xb8a77d,_0x39eb30),_0x477040['push'](_0x10f1c1[_0x4c185f(0x21a)]);}return _0x477040[_0x4c185f(0x1f2)]();}
1
+ (function(_0x6d4362,_0x3904de){const _0x301bf5=_0x55f1,_0x5a9ed7=_0x6d4362();while(!![]){try{const _0x27514d=parseInt(_0x301bf5(0x1bb))/0x1+-parseInt(_0x301bf5(0x1e4))/0x2*(-parseInt(_0x301bf5(0x1d6))/0x3)+-parseInt(_0x301bf5(0x1fd))/0x4*(-parseInt(_0x301bf5(0x22a))/0x5)+-parseInt(_0x301bf5(0x22f))/0x6+-parseInt(_0x301bf5(0x1eb))/0x7*(-parseInt(_0x301bf5(0x1d3))/0x8)+-parseInt(_0x301bf5(0x23e))/0x9+-parseInt(_0x301bf5(0x235))/0xa*(-parseInt(_0x301bf5(0x1e3))/0xb);if(_0x27514d===_0x3904de)break;else _0x5a9ed7['push'](_0x5a9ed7['shift']());}catch(_0x12df5e){_0x5a9ed7['push'](_0x5a9ed7['shift']());}}}(_0x3fd8,0x55a57));import{mkdir,readFile,readdir,rename,stat}from'fs/promises';import{basename,join}from'path';import{extractBashCommand,parsePlaywrightCliCommand,quoteShellArg,runPlaywrightCliCommand}from'./utils/playwrightCli.js';function _0x3fd8(){const _0x270f89=['AlDjP','02_state.yml','env','qQTQq','key_04_success-state.png','HiGaE','push','stdout','keys','log','tool_call','tool_name','dsFXX','HJJgL','\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.','commandArgs','select\x20tab','862180xJyKfu','notes','unaddressedComments','WCEAX','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','1022652xuVrlV','\x0a\x0a1.\x20Run\x20`','`\x20writes\x20a\x20YAML\x20snapshot\x20you\x20can\x20read\x20for\x20element\x20refs\x0a-\x20`click\x20<ref>`,\x20`fill\x20<ref>\x20\x22text\x22`,\x20`check\x20<ref>`,\x20`press\x20Enter`\x0a-\x20`tab-list`,\x20`tab-select\x20<index>`,\x20`tab-new\x20<url>`\x0a-\x20`screenshot\x20--filename\x20','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`','Bash','values','15310Ygdxov','snapshot','DvvQP','fGDbE','QwkKF','subcommand','\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','playwright_cli_close','close','6012882YNAGFF','[ranger-verification-agent]\x20','rjqlK','authorName','XMOOI','mtimeMs','\x20tracing-start`\x0a3.\x20Run\x20`','`,\x20then\x20`','jpHgN','\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20step\x202\x20(taking\x20initial\x20snapshot),\x20IMMEDIATELY\x20check\x20for\x20blocking\x20HTTP\x20errors:\x0a\x0a**Blocking\x20errors\x20to\x20detect:**\x0a-\x20HTTP\x20404:\x20\x22404\x22,\x20\x22Not\x20Found\x22,\x20\x22Page\x20not\x20found\x22,\x20\x22does\x20not\x20exist\x22\x0a-\x20HTTP\x20500:\x20\x22500\x22,\x20\x22Internal\x20Server\x20Error\x22,\x20\x22Server\x20Error\x22,\x20\x22Something\x20went\x20wrong\x22\x0a-\x20HTTP\x20400:\x20\x22400\x22,\x20\x22Bad\x20Request\x22,\x20\x22Invalid\x20request\x22\x0a\x0a**Also\x20check\x20for:**\x0a-\x20Framework\x20error\x20pages\x20(Next.js\x20error\x20boundary,\x20React\x20error\x20page,\x20\x22Application\x20error\x22)\x0a-\x20Completely\x20blank/empty\x20pages\x20with\x20no\x20content\x0a-\x20\x22Cannot\x20GET\x20/path\x22\x20messages\x0a-\x20Login/sign-in/auth\x20pages\x20when\x20no\x20Authentication\x20section\x20is\x20present\x20in\x20this\x20prompt\x0a\x0a**If\x20ANY\x20blocking\x20error\x20is\x20detected:**\x0a1.\x20DO\x20NOT\x20continue\x20with\x20the\x20task\x0a2.\x20Return\x20IMMEDIATELY\x20with\x20evaluation:\x20\x22blocked\x22\x0a3.\x20Set\x20evaluationReason\x20to\x20describe\x20the\x20specific\x20error\x20(e.g.,\x20\x22HTTP\x20404\x20-\x20Page\x20not\x20found\x20at\x20/dashboard\x22)\x0a4.\x20Include\x20the\x20error\x20in\x20issues\x20array\x20with\x20severity:\x20\x22BLOCKER\x22\x20and\x20appropriate\x20type\x20(HTTP_404,\x20HTTP_500,\x20HTTP_400,\x20or\x20NAVIGATION_ERROR)\x0a\x0aThis\x20early\x20exit\x20prevents\x20wasting\x20time\x20on\x20tasks\x20that\x20cannot\x20succeed\x20due\x20to\x20fundamental\x20errors.','\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','276347mGXOkv','yPAPi','length','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','check\x20','createdAt','start\x20video\x20recording','\x20open\x20','JRfOQ','press','):\x20\x22','\x22,\x20\x22','oGibE','QsejL','hxQHI','ulEwN','`\x0a9.\x20Run\x20`','\x20snapshot\x20--filename\x20','UOMdd','playwright-cli','tracing-stop','content','fill','trackPhaseError','16pweLBx','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','description','518907CKefbJ','RxCNW','get','EkIdV','numeric','press\x20','\x20tracing-start`,\x20then\x20`','trackPhaseEnd','string','Reviewer','trim','ApQCt','playwright_cli_tracing_stop','1749SlRAMH','2ShXHJQ','PostToolUse','BGwYx','SJSca','hook_event_name','EPLrY','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','531055GiKtSI','name','GkWjV','\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.','stderr','vhcYu','nlHcT','video-stop','\x20>\x20','nrwtA','\x0a\x0a##\x20Additional\x20Notes\x0a','domRef','stop\x20tracing','BtssC','VdqFH','[playwright-cli]\x20','open\x20','run\x20custom\x20Playwright\x20code','8BTxjlJ','**\x20(','element','open\x20new\x20tab','\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.','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','open','ref\x20','uVALp','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','fill\x20','capture\x20snapshot\x20`','`\x0a-\x20`snapshot\x20--filename\x20','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','set','pyRmI','PeqRm','selector','02_learn-more.yml','authorEmail','tab-select','invocation','capture\x20screenshot','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','open\x20browser','trackPhaseStart','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','HxsQs'];_0x3fd8=function(){return _0x270f89;};return _0x3fd8();}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(_0xbcae2b,_0x572732=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x2b8e3f=_0x55f1,_0x11fb8d={'EkIdV':function(_0x74af94,_0xd471ff){return _0x74af94>_0xd471ff;}};return _0x11fb8d[_0x2b8e3f(0x1d9)](_0xbcae2b['length'],_0x572732)?_0xbcae2b['slice'](0x0,_0x572732)+'...':_0xbcae2b;}function buildCliArtifactPath(_0x2c08b8,_0x518e52){const _0x55bdc5=_0x55f1,_0x424337={'HxsQs':function(_0x340275,_0x11f26e,_0x588715){return _0x340275(_0x11f26e,_0x588715);}};return _0x424337[_0x55bdc5(0x218)](join,_0x2c08b8,_0x518e52);}function toStepDisplayName(_0x1d29da){const _0x5f5b47={'tSeDN':function(_0x3e7690,_0x2ab1d9){return _0x3e7690(_0x2ab1d9);}},_0x3f524e=basename(_0x1d29da)['replace'](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x3f524e,'isKeyStep':/^key_/i['test'](_0x5f5b47['tSeDN'](basename,_0x1d29da))};}function extractShellValue(_0x30df66){if(!_0x30df66)return null;return _0x30df66[0x1]??_0x30df66[0x2]??_0x30df66[0x3]??null;}function extractFilenameOption(_0x402f37){const _0x46d70f={'HvkwL':function(_0x593e6f,_0x58ddf7){return _0x593e6f(_0x58ddf7);}};return _0x46d70f['HvkwL'](extractShellValue,_0x402f37['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0xf7d666,_0x57e81f){const _0x1be201=_0x57e81f['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0xf7d666['match'](new RegExp('(?:^|\x5cs)'+_0x1be201+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x9d48eb){const _0x3857fb=_0x55f1,_0x1dfc7d={'uVALp':function(_0x5cca68,_0x302e3c,_0x158481){return _0x5cca68(_0x302e3c,_0x158481);}};if(!_0x9d48eb)return'target';if(/^e\d+$/i['test'](_0x9d48eb))return _0x3857fb(0x204)+_0x9d48eb;return JSON['stringify'](_0x1dfc7d[_0x3857fb(0x205)](truncatePreview,_0x9d48eb,0x78));}function formatPlaywrightCliLog(_0x195b21,_0x38701d){const _0x560ee2=_0x55f1,_0x126c12={'aHdsn':_0x560ee2(0x203),'ulEwN':function(_0x1cd707,_0x25260f,_0x4d0e41){return _0x1cd707(_0x25260f,_0x4d0e41);},'ZgNFZ':_0x560ee2(0x1f7),'hxQHI':_0x560ee2(0x1c1),'KWIwn':_0x560ee2(0x1f2),'GkWjV':_0x560ee2(0x236),'nrwtA':function(_0x3580f7,_0x28b8a7){return _0x3580f7(_0x28b8a7);},'yUcRF':function(_0x3a86d7,_0x147889){return _0x3a86d7(_0x147889);},'boxvt':function(_0x46abfb,_0x1d9c14){return _0x46abfb(_0x1d9c14);},'DvvQP':'check','KPRhD':_0x560ee2(0x1d1),'HJJgL':function(_0x48fe2c,_0x5db675){return _0x48fe2c(_0x5db675);},'nnEWE':_0x560ee2(0x1c4),'QHXvj':_0x560ee2(0x200),'yPAPi':function(_0x23d9df,_0x1081c5,_0x98b672){return _0x23d9df(_0x1081c5,_0x98b672);}};switch(_0x38701d){case _0x126c12['aHdsn']:{const _0x3ea18b=_0x126c12['ulEwN'](extractFirstCommandArgument,_0x195b21,_0x38701d);return _0x3ea18b?_0x560ee2(0x1fb)+_0x3ea18b:_0x560ee2(0x215);}case'tracing-start':return'start\x20tracing';case _0x560ee2(0x1cf):return _0x126c12['ZgNFZ'];case'video-start':return _0x126c12[_0x560ee2(0x1c9)];case _0x126c12['KWIwn']:return'stop\x20video\x20recording';case _0x126c12[_0x560ee2(0x1ed)]:{const _0x8f3468=_0x126c12[_0x560ee2(0x1f4)](extractFilenameOption,_0x195b21);if(!_0x8f3468)return'capture\x20snapshot';const {name:_0x2d0d08}=_0x126c12['yUcRF'](toStepDisplayName,_0x8f3468);return _0x560ee2(0x208)+_0x2d0d08+'`';}case'screenshot':{const _0x232c74=extractFilenameOption(_0x195b21);if(!_0x232c74)return _0x560ee2(0x213);const {name:_0x5dced3,isKeyStep:_0x5a985e}=_0x126c12['boxvt'](toStepDisplayName,_0x232c74);return _0x5a985e?'capture\x20key\x20step\x20`'+_0x5dced3+'`':'capture\x20step\x20`'+_0x5dced3+'`';}case'click':return'click\x20'+formatCommandTarget(_0x126c12[_0x560ee2(0x1ca)](extractFirstCommandArgument,_0x195b21,_0x38701d));case _0x126c12[_0x560ee2(0x237)]:return _0x560ee2(0x1bf)+_0x126c12[_0x560ee2(0x1f4)](formatCommandTarget,_0x126c12[_0x560ee2(0x1ca)](extractFirstCommandArgument,_0x195b21,_0x38701d));case _0x126c12['KPRhD']:return _0x560ee2(0x207)+_0x126c12[_0x560ee2(0x226)](formatCommandTarget,extractFirstCommandArgument(_0x195b21,_0x38701d));case _0x126c12['nnEWE']:return _0x560ee2(0x1db)+formatCommandTarget(_0x126c12[_0x560ee2(0x1ca)](extractFirstCommandArgument,_0x195b21,_0x38701d));case'run-code':return _0x560ee2(0x1fc);case'tab-new':{const _0x464b20=extractFirstCommandArgument(_0x195b21,_0x38701d);return _0x464b20?'open\x20new\x20tab\x20'+_0x464b20:_0x126c12['QHXvj'];}case _0x560ee2(0x211):{const _0xd1fe94=_0x126c12[_0x560ee2(0x1bc)](extractFirstCommandArgument,_0x195b21,_0x38701d);return _0xd1fe94?'select\x20tab\x20'+_0xd1fe94:_0x560ee2(0x229);}default:return _0x38701d;}}function extractPlaywrightCliToolDescription(_0x15d8c3){const _0x6468c9=_0x55f1,_0x1de1ba={'BtssC':function(_0x228fa4,_0x2bbab1){return _0x228fa4!==_0x2bbab1;},'aymqB':_0x6468c9(0x1de),'rjqlK':function(_0x21e5c5,_0x28b4fd){return _0x21e5c5>_0x28b4fd;}},_0x461023=_0x15d8c3['description'];if(_0x1de1ba[_0x6468c9(0x1f8)](typeof _0x461023,_0x1de1ba['aymqB']))return null;const _0xce2a51=_0x461023[_0x6468c9(0x1e0)]()['replace'](/\s+/g,'\x20');return _0x1de1ba[_0x6468c9(0x240)](_0xce2a51['length'],0x0)?_0xce2a51:null;}export function formatPlaywrightCliConsoleLogMessage(_0x1b563c,_0x50faa0,_0x23cae8){const _0x29c0fb=_0x55f1,_0x5e6fcd={'JRfOQ':function(_0x2421a4,_0x2a9b8f,_0x3ebb14){return _0x2421a4(_0x2a9b8f,_0x3ebb14);}},_0x33c8e9=_0x5e6fcd[_0x29c0fb(0x1c3)](formatPlaywrightCliLog,_0x50faa0,_0x23cae8),_0x55ae1f=extractPlaywrightCliToolDescription(_0x1b563c);if(!_0x55ae1f)return _0x29c0fb(0x1fa)+_0x33c8e9;if(process[_0x29c0fb(0x21b)]['DEBUG'])return _0x29c0fb(0x23f)+_0x55ae1f+'\x20('+_0x33c8e9+')';return'[ranger-verification-agent]\x20'+_0x55ae1f;}export function buildVerifyFeatureCliDebugPrompt(_0x5980bb,_0x3170bd){const _0x1061d8=_0x55f1,_0x56dbaf={'VctYh':function(_0x5e7381,_0x4e7f6c,_0x297a4e){return _0x5e7381(_0x4e7f6c,_0x297a4e);},'zuTeH':'01_mozilla-homepage.png','nlHcT':_0x1061d8(0x20f),'PeqRm':'03_learn-more.png','vhcYu':function(_0x9d4a34,_0x19439c){return _0x9d4a34(_0x19439c);}},_0x35ff25=_0x56dbaf['VctYh'](buildCliArtifactPath,_0x3170bd,'00_mozilla-homepage.yml'),_0x396171=_0x56dbaf['VctYh'](buildCliArtifactPath,_0x3170bd,_0x56dbaf['zuTeH']),_0x701304=buildCliArtifactPath(_0x3170bd,_0x56dbaf[_0x1061d8(0x1f1)]),_0x159d73=buildCliArtifactPath(_0x3170bd,_0x56dbaf[_0x1061d8(0x20d)]),_0x5c36e9=quoteShellArg(_0x35ff25),_0x26609d=_0x56dbaf['vhcYu'](quoteShellArg,_0x396171),_0x552e81=_0x56dbaf['vhcYu'](quoteShellArg,_0x701304),_0x399385=_0x56dbaf[_0x1061d8(0x1f0)](quoteShellArg,_0x159d73);return _0x1061d8(0x217)+_0x5980bb+_0x1061d8(0x230)+_0x5980bb+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x5980bb+_0x1061d8(0x244)+_0x5980bb+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x3170bd+_0x1061d8(0x232)+_0x5980bb+_0x1061d8(0x1cc)+_0x5c36e9+_0x1061d8(0x202)+_0x5980bb+'\x20screenshot\x20--filename\x20'+_0x26609d+_0x1061d8(0x214)+_0x5980bb+'\x20snapshot\x20--filename\x20'+_0x552e81+_0x1061d8(0x1cb)+_0x5980bb+'\x20screenshot\x20--filename\x20'+_0x399385+_0x1061d8(0x1be);}function _0x55f1(_0x5daa14,_0x303844){_0x5daa14=_0x5daa14-0x1b9;const _0x3fd8ce=_0x3fd8();let _0x55f175=_0x3fd8ce[_0x5daa14];return _0x55f175;}export function buildVerifyFeatureCliPrompt(_0x22a63d){const _0x4df720=_0x55f1,_0x54338e={'VdqFH':'en-US','AlDjP':_0x4df720(0x1f3),'jpHgN':_0x4df720(0x1ff),'oGibE':function(_0x45dd9e,_0x1b9a17,_0x51566d){return _0x45dd9e(_0x1b9a17,_0x51566d);},'QwkKF':'key_03_success-state.png','UOMdd':'01_initial-state.png','qQTQq':function(_0x59b2b7,_0x22ff49){return _0x59b2b7(_0x22ff49);},'lhpEv':function(_0x271d13,_0x4d67bb){return _0x271d13(_0x4d67bb);},'uPTtY':'03_result-visible.png','SJSca':_0x4df720(0x21d)},{checklistItem:_0x471bd6,itemFeedback:_0x1f5e9d,taskDescription:_0x38fc22,cliCommandPrefix:_0x51ac46,cliArtifactDir:_0x5c5665,isCdpMode:_0x280152,url:_0x1d4ce5,cdpEndpoint:_0x5c479f,loginInstructions:_0xa864fb}=_0x22a63d,_0x2ec22e=_0x54338e['oGibE'](buildCliArtifactPath,_0x5c5665,'01_initial.yml'),_0x3dd268=_0x54338e[_0x4df720(0x1c7)](buildCliArtifactPath,_0x5c5665,_0x4df720(0x21a)),_0x20f423=buildCliArtifactPath(_0x5c5665,_0x54338e[_0x4df720(0x239)]),_0x2ba967=_0x54338e[_0x4df720(0x1c7)](buildCliArtifactPath,_0x5c5665,_0x54338e[_0x4df720(0x1cd)]),_0x1c8a7d=_0x54338e[_0x4df720(0x21c)](quoteShellArg,_0x2ec22e),_0x14bc7a=quoteShellArg(_0x3dd268),_0x41dbcb=quoteShellArg(_0x20f423),_0x56da3f=_0x54338e['qQTQq'](quoteShellArg,_0x2ba967),_0x5949a4=_0x471bd6[_0x4df720(0x22b)]?_0x4df720(0x1f5)+_0x471bd6[_0x4df720(0x22b)]:'';let _0x180b5d='';if(_0x1f5e9d&&_0x1f5e9d[_0x4df720(0x22c)][_0x4df720(0x1bd)]>0x0){const _0x2983fc=_0x1f5e9d['unaddressedComments']['map'](_0x2d89a1=>{const _0x22ba18=_0x4df720,_0x3ccf0c=new Date(_0x2d89a1[_0x22ba18(0x1c0)])['toLocaleDateString'](_0x54338e[_0x22ba18(0x1f9)],{'month':'short','day':_0x22ba18(0x1da)}),_0x12d521=_0x2d89a1[_0x22ba18(0x241)]||_0x2d89a1[_0x22ba18(0x210)]||_0x22ba18(0x1df),_0x188816=_0x2d89a1['domRef']?'\x20(on\x20element:\x20<'+(_0x2d89a1[_0x22ba18(0x1f6)][_0x22ba18(0x20e)]['split'](_0x54338e[_0x22ba18(0x219)])['pop']()?.['split'](':')[0x0]||_0x54338e[_0x22ba18(0x246)])+'>\x20\x22'+(_0x2d89a1[_0x22ba18(0x1f6)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x2d89a1['id']+']\x20**'+_0x12d521+_0x22ba18(0x1fe)+_0x3ccf0c+_0x22ba18(0x1c5)+_0x2d89a1[_0x22ba18(0x1d0)]+'\x22'+_0x188816;})['join']('\x0a');_0x180b5d='\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'+_0x2983fc;}const _0x5e66cb=_0x1f5e9d?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x1f5e9d['canonicalFlow']:'',_0x47b14f=_0x280152?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x5c479f+'.\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'+_0x1d4ce5+'\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',_0x5c81d2=_0x1d4ce5?_0x54338e['lhpEv'](quoteShellArg,_0x1d4ce5):'',_0x1923c4=_0x280152?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x51ac46+'\x20open`,\x20then\x20`'+_0x51ac46+_0x4df720(0x1dc)+_0x51ac46+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x5c5665+_0x4df720(0x20a)+_0x51ac46+'\x20snapshot\x20--filename\x20'+_0x1c8a7d+'`\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`'+_0x51ac46+'\x20screenshot\x20--filename\x20'+_0x56da3f+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x51ac46+_0x4df720(0x1ba):'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x51ac46+_0x4df720(0x1c2)+_0x5c81d2+_0x4df720(0x245)+_0x51ac46+'\x20tracing-start`,\x20then\x20`'+_0x51ac46+_0x4df720(0x22e)+_0x5c5665+_0x4df720(0x20a)+_0x51ac46+_0x4df720(0x1cc)+_0x1c8a7d+'`\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`'+_0x51ac46+'\x20screenshot\x20--filename\x20'+_0x56da3f+_0x4df720(0x1ea)+_0x51ac46+_0x4df720(0x23b),_0x25275a=_0x280152?_0x4df720(0x1ee):_0x4df720(0x1b9),_0x54419b=_0xa864fb?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0xa864fb+_0x4df720(0x201):'';return _0x4df720(0x206)+_0x471bd6[_0x4df720(0x1d5)]+_0x5949a4+_0x180b5d+_0x5e66cb+_0x4df720(0x1d4)+_0x38fc22+'\x0a\x0a'+_0x47b14f+_0x54419b+'\x0a\x0a'+_0x1923c4+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x51ac46+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x5c5665+_0x4df720(0x209)+_0x14bc7a+_0x4df720(0x231)+_0x41dbcb+'`\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`'+_0x5c5665+'`:\x20\x22'+_0x2ba967+_0x4df720(0x1c6)+_0x54338e['oGibE'](buildCliArtifactPath,_0x5c5665,'02_button-clicked.png')+'\x22,\x20\x22'+buildCliArtifactPath(_0x5c5665,_0x54338e['uPTtY'])+'\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'+_0x54338e[_0x4df720(0x1c7)](buildCliArtifactPath,_0x5c5665,_0x54338e[_0x4df720(0x1e7)])+'\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'+_0x25275a+_0x4df720(0x227);}export function summarizeVerifyFeatureCliCommandAvailability(_0x271f84){const _0x395f0b=_0x55f1,_0x3a77f0={'OgTbh':function(_0x2e110a,_0x28bd91){return _0x2e110a===_0x28bd91;}},_0x3ddab0=[..._0x271f84[_0x395f0b(0x221)]()]['sort']();let _0x560717=0x0;for(const _0x23c63d of _0x271f84[_0x395f0b(0x234)]()){_0x560717+=_0x23c63d;}return{'cliCommandCount':_0x560717,'cliCommandsSeen':_0x3ddab0,'noCliCommandsCalled':_0x3a77f0['OgTbh'](_0x560717,0x0)};}export function createVerifyFeatureCliHooks(_0x2a2bbe){const _0x9a9ab=_0x55f1,_0x266d4c={'QsejL':_0x9a9ab(0x1e5),'XMOOI':'Bash','WCEAX':function(_0x5bc304,_0x3ce95c){return _0x5bc304(_0x3ce95c);},'MkGUa':function(_0x2b92ac,_0x413ea8){return _0x2b92ac+_0x413ea8;},'ApQCt':'tool_call','fGDbE':function(_0x3d863a,_0xb30418){return _0x3d863a!==_0xb30418;},'pyRmI':'PostToolUseFailure','sShuR':'tool_failure','JeeiC':_0x9a9ab(0x1ce)},_0x46020a=new Map(),_0x235e80=async _0x6718b8=>{const _0x53c5e2=_0x9a9ab;if(_0x6718b8[_0x53c5e2(0x1e8)]!==_0x266d4c[_0x53c5e2(0x1c8)])return{};const _0x291a74=_0x6718b8;if(_0x291a74['tool_name']!==_0x266d4c[_0x53c5e2(0x242)])return{};const _0x750eff=_0x291a74['tool_input'],_0x54a9dc=extractBashCommand(_0x750eff);if(!_0x54a9dc)return{};const _0x1c26a3=_0x266d4c[_0x53c5e2(0x22d)](parsePlaywrightCliCommand,_0x54a9dc);if(!_0x1c26a3)return{};return _0x46020a[_0x53c5e2(0x20b)](_0x1c26a3,_0x266d4c['MkGUa'](_0x46020a[_0x53c5e2(0x1d8)](_0x1c26a3)||0x0,0x1)),_0x2a2bbe[_0x53c5e2(0x216)](_0x266d4c[_0x53c5e2(0x1e1)],{'transport':'playwright-cli','toolName':_0x1c26a3}),_0x2a2bbe['trackPhaseEnd'](_0x53c5e2(0x223),{'transport':_0x53c5e2(0x1ce),'toolName':_0x1c26a3,'bashCommandPreview':_0x266d4c[_0x53c5e2(0x22d)](truncatePreview,_0x54a9dc)}),_0x1c26a3!=='snapshot'&&console[_0x53c5e2(0x222)](formatPlaywrightCliConsoleLogMessage(_0x750eff,_0x54a9dc,_0x1c26a3)),{};},_0x37c2ab=async _0x383ac3=>{const _0x152e3c=_0x9a9ab;if(_0x266d4c['fGDbE'](_0x383ac3['hook_event_name'],_0x266d4c[_0x152e3c(0x20c)]))return{};const _0x470471=_0x383ac3;if(_0x266d4c[_0x152e3c(0x238)](_0x470471[_0x152e3c(0x224)],'Bash'))return{};return await _0x2a2bbe[_0x152e3c(0x1d2)](_0x266d4c['sShuR'],_0x470471['error'],{'transport':_0x266d4c['JeeiC'],'toolName':_0x152e3c(0x233)}),{};};return{'postToolUseHook':_0x235e80,'postToolUseFailureHook':_0x37c2ab,'commandCounts':_0x46020a};}async function runPlaywrightCliLifecycleCommand(_0x47dd52){const _0x83dada=_0x55f1,_0x2a385f={'dsFXX':function(_0x5b874c,_0x5010e3){return _0x5b874c??_0x5010e3;},'RxCNW':function(_0x44c830,_0x312d16,_0x588aa8){return _0x44c830(_0x312d16,_0x588aa8);}},{sessionId:_0x456afc,configPath:_0x21029d,commandArgs:_0x18d446,env:_0xa84d56,telemetry:_0x44181f,phase:_0x57b3db,metadata:_0xaa5ea9,timeoutMs:_0x1ea28a}=_0x47dd52;_0x44181f[_0x83dada(0x216)](_0x57b3db,_0xaa5ea9);try{const _0x295b5c=await runPlaywrightCliCommand({'sessionId':_0x456afc,'configPath':_0x21029d,'commandArgs':_0x18d446,'cwd':process['cwd'](),'env':_0xa84d56,'timeoutMs':_0x2a385f[_0x83dada(0x225)](_0x1ea28a,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x44181f[_0x83dada(0x1dd)](_0x57b3db,{..._0xaa5ea9,'subcommand':_0x295b5c[_0x83dada(0x212)][_0x83dada(0x23a)],'stdoutPreview':_0x2a385f[_0x83dada(0x1d7)](truncatePreview,_0x295b5c[_0x83dada(0x220)],0x7d0),'stderrPreview':truncatePreview(_0x295b5c[_0x83dada(0x1ef)],0x7d0)});}catch(_0x18949b){await _0x44181f[_0x83dada(0x1d2)](_0x57b3db,_0x18949b,_0xaa5ea9);throw _0x18949b;}}export async function finalizeVerifyFeatureCliSession(_0x3b03ba){const _0x2b5628=_0x55f1,_0x1b2bec={'HiGaE':'playwright_cli_video_stop','EPLrY':'session-recording.webm','yTTEQ':function(_0x5e0571,_0x3f3304){return _0x5e0571(_0x3f3304);}},{telemetry:_0x2c2a73,sessionId:_0x4f3f94,configPath:_0x551577,cliArtifactDir:_0x50c521,env:_0x662168,transportMetadata:_0x121305}=_0x3b03ba,_0x152ae4=[{'phase':_0x2b5628(0x1e2),'commandArgs':[_0x2b5628(0x1cf)]},{'phase':_0x1b2bec[_0x2b5628(0x21e)],'commandArgs':[_0x2b5628(0x1f2),'--filename='+buildCliArtifactPath(_0x50c521,_0x1b2bec[_0x2b5628(0x1e9)])]},{'phase':_0x2b5628(0x23c),'commandArgs':[_0x2b5628(0x23d)]}];for(const _0x4637d9 of _0x152ae4){try{await _0x1b2bec['yTTEQ'](runPlaywrightCliLifecycleCommand,{'sessionId':_0x4f3f94,'configPath':_0x551577,'commandArgs':[..._0x4637d9[_0x2b5628(0x228)]],'env':_0x662168,'telemetry':_0x2c2a73,'phase':_0x4637d9['phase'],'metadata':_0x121305});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x1ef284){const _0x20181c={'KbCNq':'trace.zip','TLDin':'trace.trace.zip','QjWpT':function(_0x2404f9,_0xedfef1,_0x341791){return _0x2404f9(_0xedfef1,_0x341791);}},_0x56a444=[_0x20181c['KbCNq'],_0x20181c['TLDin']];for(const _0x5071b5 of _0x56a444){const _0x22ced8=_0x20181c['QjWpT'](join,_0x1ef284,_0x5071b5);try{return{'buffer':await readFile(_0x22ced8),'source':_0x22ced8};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x392b5f){const _0x2e8f5c=_0x55f1,_0x40ad48={'BGwYx':function(_0x3a394b,_0x4e3cad,_0x549c29){return _0x3a394b(_0x4e3cad,_0x549c29);},'QQsqz':function(_0x8a3726,_0x4560b2,_0x96ed4f){return _0x8a3726(_0x4560b2,_0x96ed4f);},'CchYC':function(_0xd1096b,_0x7ba403){return _0xd1096b(_0x7ba403);},'bfoLd':function(_0x333965,_0x32b614){return _0x333965<_0x32b614;},'mgTtj':function(_0x17c2b1,_0x16fab8){return _0x17c2b1+_0x16fab8;},'VEqoK':function(_0x4e9c36,_0x187b36){return _0x4e9c36===_0x187b36;}},{cwd:_0x1e9774,cliArtifactDir:_0x437c0a,startTime:_0x468d73}=_0x392b5f,_0x34b423=[];await mkdir(_0x437c0a,{'recursive':!![]});const _0x3cd56d=await _0x40ad48[_0x2e8f5c(0x1e6)](readdir,_0x1e9774,{'withFileTypes':!![]});for(const _0x43d23a of _0x3cd56d){if(!_0x43d23a['isFile']()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x43d23a[_0x2e8f5c(0x1ec)]))continue;const _0x2952ae=_0x40ad48['QQsqz'](join,_0x1e9774,_0x43d23a[_0x2e8f5c(0x1ec)]),_0x234690=await _0x40ad48['CchYC'](stat,_0x2952ae);if(_0x40ad48['bfoLd'](_0x40ad48['mgTtj'](_0x234690[_0x2e8f5c(0x243)],0x7d0),_0x468d73))continue;const _0x204a07=buildCliArtifactPath(_0x437c0a,_0x43d23a['name']);if(_0x40ad48['VEqoK'](_0x2952ae,_0x204a07))continue;await rename(_0x2952ae,_0x204a07),_0x34b423[_0x2e8f5c(0x21f)](_0x43d23a['name']);}return _0x34b423['sort']();}
@@ -1 +1 @@
1
- const _0x11e2f1=_0x7e44;(function(_0x3f03fa,_0x401791){const _0x504c26=_0x7e44,_0x1b53ac=_0x3f03fa();while(!![]){try{const _0x3a001f=-parseInt(_0x504c26(0xf4))/0x1*(parseInt(_0x504c26(0x100))/0x2)+-parseInt(_0x504c26(0x89))/0x3*(parseInt(_0x504c26(0xcf))/0x4)+-parseInt(_0x504c26(0xf6))/0x5+-parseInt(_0x504c26(0xc3))/0x6*(-parseInt(_0x504c26(0x13b))/0x7)+parseInt(_0x504c26(0x140))/0x8+parseInt(_0x504c26(0x9d))/0x9+parseInt(_0x504c26(0x9c))/0xa;if(_0x3a001f===_0x401791)break;else _0x1b53ac['push'](_0x1b53ac['shift']());}catch(_0x16524b){_0x1b53ac['push'](_0x1b53ac['shift']());}}}(_0x16fb,0x5c1bd));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';function _0x16fb(){const _0x4be2e2=['NLUGM','cXhvc','LYSjo','.json','map','utf-8','tagName','snapshot','readSessionMetadataWithRetry',']\x20**','ADmLU','content','PreToolUse','command','keys','duTna','jJlfi','ffmpeg-mac','):\x20\x22','xHdsE','tracing','\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20','\x0a\x0a##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Nova\x20Act\x20CLI\x20only.\x20Do\x20not\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20The\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20through\x20the\x20browser\x20command\x20prefix\x20below.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20check\x20AWS/auth\x20status,\x20read\x20env\x20files,\x20run\x20setup,\x20or\x20call\x20raw\x20`act\x20browser`.\x0a3.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20`','toLocaleDateString','parse','VYvDd','uYktW','TgYqd','vEAeW','stopped','14UTRChA','ffmpeg-linux','queueTraceSample','length','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','3499984OzfriB','selector','cwd','stop','PostToolUseFailure','tool_name','telemetry','params','jFYjU','trace.zip','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','verify','nova_act_session_close','context','nova-user-data/*','rIwMO','LbGbv','shellCommand','\x0a\x0aExamples:\x0a-\x20`','now','args','ms-playwright','01_initial-state.png','export','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','`.\x0a15.\x20As\x20soon\x20as\x20all\x20scenario\x20requirements\x20are\x20satisfied,\x20return\x20structured\x20output\x20immediately.\x20Do\x20not\x20keep\x20exploring,\x20asking,\x20or\x20taking\x20extra\x20screenshots.\x0a16.\x20Treat\x20a\x20Nova\x20`verify`\x20result\x20with\x20`ASSERTION_FAILED`\x20as\x20useful\x20evidence,\x20not\x20as\x20a\x20tool\x20crash.\x20Do\x20not\x20retry\x20the\x20same\x20assertion\x20or\x20search\x20for\x20alternatives\x20unless\x20the\x20scenario\x20explicitly\x20asks\x20you\x20to\x20find\x20any\x20matching\x20page.\x0a17.\x20Stay\x20within\x20the\x20pages\x20and\x20flow\x20named\x20by\x20the\x20scenario.\x20If\x20a\x20required\x20condition\x20is\x20absent\x20after\x20checking\x20the\x20relevant\x20named\x20page\x20once,\x20stop\x20and\x20return\x20\x22partial\x22\x20or\x20\x22failed\x22\x20with\x20the\x20missing\x20requirement.\x20Do\x20not\x20expand\x20into\x20unrelated\x20pages\x20or\x20broad\x20site\x20searches.\x0a18.\x20After\x20you\x20reach\x20and\x20screenshot\x20the\x20final\x20named\x20scenario\x20page,\x20do\x20not\x20execute\x20more\x20browser\x20commands.\x20Evaluate\x20any\x20\x22at\x20least\x20one\x20visited\x20page\x22\x20requirement\x20from\x20the\x20pages\x20already\x20visited\x20and\x20the\x20evidence\x20already\x20collected.\x0a19.\x20Do\x20not\x20run\x20`session\x20close`,\x20`session\x20list`,\x20`session\x20export`,\x20`script`,\x20`doctor`,\x20`--help`,\x20`aws`,\x20`find`,\x20`grep`,\x20`env`,\x20`printenv`,\x20package\x20managers,\x20or\x20setup\x20commands.\x20The\x20host\x20owns\x20setup,\x20auth,\x20session\x20cleanup,\x20and\x20artifact\x20export.\x0a20.\x20The\x20host\x20also\x20captures\x20final\x20screenshots,\x20snapshots,\x20and\x20exports\x20after\x20you\x20finish,\x20but\x20every\x20scenario\x20milestone\x20still\x20needs\x20an\x20accessible\x20screenshot.\x20If\x20the\x20last\x20milestone\x20is\x20the\x20final\x20browser\x20state\x20and\x20you\x20have\x20already\x20captured\x20it,\x20you\x20do\x20not\x20need\x20a\x20duplicate\x20final\x20screenshot.\x0a21.\x20Do\x20not\x20close\x20the\x20Nova\x20session.\x20The\x20host\x20exports\x20artifacts\x20after\x20you\x20finish.\x0a22.\x20The\x20structured\x20output\x20is\x20your\x20final\x20response.\x20After\x20returning\x20it,\x20do\x20not\x20write\x20a\x20separate\x20markdown\x20summary\x20or\x20repeat\x20the\x20findings.\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Nova\x20Act\x20CLI\x20commands\x20with\x20this\x20prefix:\x0a`','`\x0a6.\x20Run\x20`','\x0a\x0aThe\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20on\x20PATH.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20or\x20run\x20setup.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20the\x20session\x20create\x20command\x20below.\x0a\x0a1.\x20Run\x20`','--format','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','JuiLt','Igjib','xOyKP','`\x0a4.\x20Run\x20one\x20batched\x20`','goto','YyDRR','startAttempted','ROMep','env','ffmpeg','push','dLlTz','trim','commandArgs','set','mtimeMs','screencastStarted','02_final-state.yml','sessionId','unaddressedComments','send','session\x20create','839922swTjMN','finally','log','QJOIc','-\x20[','browser','Library','nova_act_command','transportMetadata','VqqWU','startScreencast','data','en-US','Page.stopScreencast','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','libvpx-vp9','HZzbF','emfKF','NgneW','890940zVGSkj','6111369tajSls','execute\x20Nova\x20browser\x20action','domRef','Page.screencastFrame','key_final-state.png','XVKRF','\x20snapshot\x20--output\x20','-pix_fmt','match','hook_event_name','tracingStarted','frame-','xoLRh','`\x0a\x0a##\x20Screenshot\x20Guidelines\x0aTake\x20screenshots\x20at\x20scenario\x20milestones\x20so\x20a\x20human\x20can\x20review\x20each\x20completed\x20step\x20and\x20the\x20final\x20state.\x20Use\x20numbered\x20filenames\x20and\x20prefix\x201-2\x20key\x20proof\x20screenshots\x20with\x20`key_`.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page\x20when\x20an\x20existing\x20verifier\x20screenshot\x20or\x20host\x20final\x20screenshot\x20is\x20accessible.\x0a\x0a##\x20Snapshot\x20Guidelines\x0aYou\x20must\x20take\x20the\x20initial\x20snapshot\x20listed\x20above.\x20After\x20that,\x20prefer\x20screenshots\x20plus\x20the\x20page\x20summaries\x20returned\x20by\x20`execute`\x20and\x20`verify`.\x20Only\x20call\x20`snapshot`\x20again\x20if\x20you\x20cannot\x20determine\x20the\x20next\x20action\x20or\x20evaluation\x20from\x20those\x20outputs.\x0a\x0a##\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20initial\x20snapshot\x20and\x20screenshot,\x20check\x20for\x20blocking\x20HTTP\x20errors,\x20framework\x20error\x20pages,\x20blank\x20pages,\x20and\x20authentication\x20failures.\x20If\x20any\x20blocking\x20issue\x20is\x20present,\x20stop\x20and\x20return\x20evaluation\x20\x22blocked\x22\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Failed\x20Assertions\x0aIf\x20`verify`\x20returns\x20`ASSERTION_FAILED`,\x20use\x20its\x20`actual`\x20and\x20`evidence`\x20fields\x20as\x20proof\x20for\x20the\x20final\x20evaluation.\x20Continue\x20only\x20to\x20finish\x20other\x20already-named\x20scenario\x20milestones.\x20Do\x20not\x20retry,\x20ask\x20about,\x20or\x20search\x20around\x20the\x20failed\x20condition.\x0a\x0a##\x20Final\x20Page\x20Stop\x0aWhen\x20the\x20scenario\x20names\x20a\x20final\x20page\x20or\x20final\x20navigation\x20target,\x20that\x20page\x20is\x20the\x20last\x20browser\x20milestone.\x20Once\x20it\x20is\x20loaded\x20and\x20screenshotted,\x20make\x20the\x20final\x20evaluation\x20from\x20the\x20collected\x20evidence.\x20Do\x20not\x20navigate,\x20search,\x20ask,\x20or\x20verify\x20beyond\x20that\x20final\x20page\x20unless\x20the\x20scenario\x20explicitly\x20names\x20another\x20page.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.','EuvrU','frameWrites','qmtRd','NnScr','createdAt','PlsKg','allSettled','cliArtifactDir','--output','getFrameDir','DAcXY','`\x0a-\x20`','zip','avjzv','gqYWj','base64','ncJuZ','trackPhaseStart','flatMap','verify\x20page\x20condition','Bash','execute','FBypH','novaOptions','1700268JKYlzy','xKHHp','The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.','ffmpeg.exe','key_03_success-state.png','jZqsC','ask\x20page\x20question','nova_act_artifact_recording','frameCount','screenshot','body','error','4XCJkit','mZyky','catch','PostToolUse','encodeScreencastVideo','frameSession','replace','nova-video-frames','SecVy','padie','CZaBU','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','pages','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','startTraceSampling','cdp_endpoint','wait-for','ediJA','--report','wMlng','wcQwz','cvyHu','Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','kViTp','split','\x20(on\x20element:\x20<','qBTQn','name','Page.startScreencast','subcommand','capture\x20step\x20`','JguAf','xzMFp','rCuIz','locator','stderr','start','87558GKFetx','PSZgq','2073370bKLRqX','ByLnB','Page.screencastFrameAck','invocation','.act_cli','trackPhaseError','`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','01_initial.yml','filter','CzsMD','16KsYTLl','.jpg','json','session','startsWith','You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','traceSampleInFlight','traceSampleTimer','test','connectOverCDP','MleaH','Nova\x20command\x20`','notes','00_initial-state.yml','then','drlUh','HgLDA','close','\x20session\x20create\x20','WcrxK','traceSampleCount','nova_act_final_screenshot','trackPhaseEnd','sort','qLZNH','NOXjy','LeKoZ','XdKRN'];_0x16fb=function(){return _0x4be2e2;};return _0x16fb();}import{homedir}from'os';import{basename,join}from'path';import{promisify}from'util';import{chromium}from'playwright';import{buildNovaActCliInvocation,buildNovaActCliSharedOptionsSuffix,extractNovaActLogDir,parseNovaActCliCommand,previewNovaActCliCommand,runNovaActCliCommand}from'./utils/novaActCli.js';import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';const NOVA_ACT_CLI_COMMAND_TIMEOUT_MS=0x1d4c0,NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS=0x3a98,NOVA_ARTIFACT_METADATA_WAIT_MS=0x1388,NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS=0x1388,VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|final-state\.ya?ml|nova-session-export\.json)$/i,NOVA_ACT_ALLOWED_AGENT_COMMANDS=new Set(['session\x20create',_0x11e2f1(0xc0),_0x11e2f1(0x14b),'ask',_0x11e2f1(0x163),_0x11e2f1(0xdf),'snapshot',_0x11e2f1(0xcc)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x4103aa,_0x141b62){const _0x1d6fdd=_0x11e2f1,_0x349d96={'dLlTz':function(_0x447a6c,_0x24af29,_0x453679){return _0x447a6c(_0x24af29,_0x453679);}};return _0x349d96[_0x1d6fdd(0x7e)](join,_0x4103aa,_0x141b62);}export class NovaActArtifactRecorder{['params'];[_0x11e2f1(0x8e)]=null;[_0x11e2f1(0x14d)]=null;['frameSession']=null;['frameWrites']=[];[_0x11e2f1(0xcb)]=0x0;['traceSampleCount']=0x0;['traceSampleTimer']=null;[_0x11e2f1(0x107)]=null;['tracingStarted']=![];[_0x11e2f1(0x83)]=![];[_0x11e2f1(0x79)]=![];['stopped']=![];constructor(_0xdfb68c){const _0x26473f=_0x11e2f1;this[_0x26473f(0x147)]=_0xdfb68c;}async[_0x11e2f1(0xf3)](){const _0x565f42=_0x11e2f1,_0x2d0655={'JguAf':function(_0x464e7c,_0x1b6457,_0x73ffbf){return _0x464e7c(_0x1b6457,_0x73ffbf);}};if(this[_0x565f42(0x79)])return;this[_0x565f42(0x79)]=!![];const _0x506b4d=await this['readSessionMetadataWithRetry'](),_0x264c79=_0x506b4d[_0x565f42(0xde)];if(!_0x264c79)throw new Error(_0x565f42(0x13f)+this['params'][_0x565f42(0xc2)]['sessionId']);await _0x2d0655[_0x565f42(0xee)](mkdir,this[_0x565f42(0x147)][_0x565f42(0xb2)],{'recursive':!![]}),this['browser']=await chromium[_0x565f42(0x10a)](_0x264c79,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this['context']=this['browser']['contexts']()[0x0]??null;if(!this['context'])throw new Error(_0x565f42(0xe5));await this[_0x565f42(0x14d)][_0x565f42(0x131)][_0x565f42(0xf3)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this['tracingStarted']=!![],this[_0x565f42(0xdd)](),await this[_0x565f42(0x93)](),this[_0x565f42(0x147)][_0x565f42(0x146)]['trackPhaseStart'](_0x565f42(0xca),{...this[_0x565f42(0x147)]['transportMetadata'],'cdpEndpoint':_0x264c79,'browserPid':_0x506b4d['browser_pid'],'sessionState':_0x506b4d['state']}),this['params']['telemetry'][_0x565f42(0x117)]('nova_act_artifact_recording',{...this['params'][_0x565f42(0x91)],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x565f42(0x83)]});}async['stop'](){const _0x53c67f=_0x11e2f1,_0xa3e9f4={'xoLRh':'nova_act_artifact_recording_stop','qxWjZ':function(_0x1d18d3,_0x36dfb1,_0xf48f21){return _0x1d18d3(_0x36dfb1,_0xf48f21);},'AHYmT':_0x53c67f(0x149)};if(this[_0x53c67f(0x13a)])return;this[_0x53c67f(0x13a)]=!![];const _0x1de50a={...this[_0x53c67f(0x147)][_0x53c67f(0x91)],'frameCount':this['frameCount'],'traceSampleCount':this[_0x53c67f(0x115)],'tracingStarted':this[_0x53c67f(0xa7)],'screencastStarted':this[_0x53c67f(0x83)]};this['params']['telemetry']['trackPhaseStart'](_0xa3e9f4[_0x53c67f(0xa9)],_0x1de50a);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this['stopScreencast'](),await Promise[_0x53c67f(0xb1)](this[_0x53c67f(0xac)]);this[_0x53c67f(0x14d)]&&this['tracingStarted']&&await this['context']['tracing'][_0x53c67f(0x143)]({'path':_0xa3e9f4['qxWjZ'](buildCliArtifactPath,this[_0x53c67f(0x147)]['cliArtifactDir'],_0xa3e9f4['AHYmT'])});const _0x42fd1a=await this[_0x53c67f(0xd3)]();this[_0x53c67f(0x147)]['telemetry']['trackPhaseEnd']('nova_act_artifact_recording_stop',{..._0x1de50a,'videoPath':_0x42fd1a});}catch(_0x290775){await this['params'][_0x53c67f(0x146)][_0x53c67f(0xfb)](_0xa3e9f4[_0x53c67f(0xa9)],_0x290775,_0x1de50a);}finally{await this[_0x53c67f(0x8e)]?.[_0x53c67f(0x112)]()[_0x53c67f(0xd1)](()=>undefined),this['browser']=null,this[_0x53c67f(0x14d)]=null,this[_0x53c67f(0xd4)]=null;}}async[_0x11e2f1(0x125)](){const _0x4cbb14=_0x11e2f1,_0x464c4b={'EuvrU':function(_0x923f4b){return _0x923f4b();},'CZaBU':function(_0x469956,_0x2efac4,_0x1acf66){return _0x469956(_0x2efac4,_0x1acf66);},'emfKF':function(_0x28117d,_0x26df64){return _0x28117d<_0x26df64;}},_0x15c5a4=join(_0x464c4b[_0x4cbb14(0xab)](homedir),_0x4cbb14(0xfa),_0x4cbb14(0x8e),'sessions',this[_0x4cbb14(0x147)][_0x4cbb14(0xc2)][_0x4cbb14(0x85)]+_0x4cbb14(0x120)),_0x47c889=Date[_0x4cbb14(0x153)]();let _0x229ffc;do{try{const _0x4febee=JSON[_0x4cbb14(0x135)](await _0x464c4b[_0x4cbb14(0xd9)](readFile,_0x15c5a4,_0x4cbb14(0x122)));if(_0x4febee[_0x4cbb14(0xde)])return _0x4febee;_0x229ffc=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x15c5a4);}catch(_0xbe376c){_0x229ffc=_0xbe376c;}await delay(0x64);}while(_0x464c4b[_0x4cbb14(0x9a)](Date['now']()-_0x47c889,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x229ffc instanceof Error)throw _0x229ffc;throw new Error(_0x4cbb14(0x14a)+_0x15c5a4);}async[_0x11e2f1(0x93)](){const _0x5586bf=_0x11e2f1,_0x591d16={'fDPrd':function(_0x7f66af,_0x54c5da,_0x4135fe){return _0x7f66af(_0x54c5da,_0x4135fe);},'YuUsN':function(_0x3fbdb9,_0x5b1a74,_0x34168a){return _0x3fbdb9(_0x5b1a74,_0x34168a);},'wcQwz':_0x5586bf(0xba),'qBTQn':_0x5586bf(0xeb),'yvMVs':'jpeg'};if(!this['context'])return;const _0x4844ff=this[_0x5586bf(0x14d)]['pages']()[0x0];if(!_0x4844ff)return;const _0x1b0de1=this['getFrameDir']();await mkdir(_0x1b0de1,{'recursive':!![]});const _0x268e8a=await this[_0x5586bf(0x14d)]['newCDPSession'](_0x4844ff);this['frameSession']=_0x268e8a,_0x268e8a['on'](_0x5586bf(0xa0),_0x3c8f75=>{const _0x447b5b=_0x5586bf,_0x84bf8c=++this['frameCount'],_0x567675=_0x591d16['fDPrd'](join,_0x1b0de1,_0x447b5b(0xa8)+String(_0x84bf8c)['padStart'](0x6,'0')+_0x447b5b(0x101)),_0x587829=_0x591d16['YuUsN'](writeFile,_0x567675,Buffer['from'](_0x3c8f75[_0x447b5b(0x94)],_0x591d16[_0x447b5b(0xe3)]))['catch'](()=>undefined)[_0x447b5b(0x8a)](()=>_0x268e8a['send'](_0x447b5b(0xf8),{'sessionId':_0x3c8f75[_0x447b5b(0x85)]}))[_0x447b5b(0x10f)](()=>undefined)['catch'](()=>undefined);this['frameWrites'][_0x447b5b(0x7d)](_0x587829);}),await _0x268e8a[_0x5586bf(0x87)](_0x591d16[_0x5586bf(0xe9)],{'format':_0x591d16['yvMVs'],'quality':0x4b,'everyNthFrame':0x6}),this[_0x5586bf(0x83)]=!![];}async['stopScreencast'](){const _0x51b025=_0x11e2f1;if(!this[_0x51b025(0xd4)]||!this[_0x51b025(0x83)])return;await this['frameSession'][_0x51b025(0x87)](_0x51b025(0x96))[_0x51b025(0xd1)](()=>undefined);}['startTraceSampling'](){const _0x657693=_0x11e2f1,_0x5b7e79={'qwWpW':function(_0x186784,_0x10ec2e,_0x28b70e){return _0x186784(_0x10ec2e,_0x28b70e);}};this['queueTraceSample'](),this['traceSampleTimer']=_0x5b7e79['qwWpW'](setInterval,()=>this[_0x657693(0x13d)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x11e2f1(0x13d)](){if(this['traceSampleInFlight'])return;this['traceSampleInFlight']=this['captureTraceSample']()['finally'](()=>{const _0x2646b1=_0x7e44;this[_0x2646b1(0x107)]=null;});}async['stopTraceSampling'](){const _0x1eed19=_0x11e2f1;this['traceSampleTimer']&&(clearInterval(this[_0x1eed19(0x108)]),this['traceSampleTimer']=null),await this['traceSampleInFlight']?.[_0x1eed19(0xd1)](()=>undefined);}async['captureTraceSample'](){const _0x308897=_0x11e2f1,_0x1624f5={'RrNEC':_0x308897(0xcd)},_0x4d79da=this[_0x308897(0x14d)]?.[_0x308897(0xdb)]()[0x0];if(!_0x4d79da)return;try{await _0x4d79da[_0x308897(0xf1)](_0x1624f5['RrNEC'])['evaluate'](_0x4ca601=>_0x4ca601[_0x308897(0x123)],undefined,{'timeout':0x3e8}),this[_0x308897(0x115)]++;}catch{}}async['encodeScreencastVideo'](){const _0x558417=_0x11e2f1,_0xb75291={'apYhk':function(_0x18bd29,_0x5008f5){return _0x18bd29<_0x5008f5;},'rIwMO':function(_0x3ba54b){return _0x3ba54b();},'jYBFd':function(_0x461025,_0x2db676,_0x2ab497){return _0x461025(_0x2db676,_0x2ab497);},'mZyky':function(_0xdea8a5,_0x146746,_0x4dc723){return _0xdea8a5(_0x146746,_0x4dc723);},'SecVy':function(_0x176a6a,_0x5cfb3f,_0xc0bba4){return _0x176a6a(_0x5cfb3f,_0xc0bba4);},'FBypH':_0x558417(0xce),'LbGbv':'-framerate','IhmUo':function(_0x12418d,_0x28b729,_0x3309c2){return _0x12418d(_0x28b729,_0x3309c2);},'drlUh':'-vf','ttoRf':'scale=trunc(iw/2)*2:trunc(ih/2)*2','YMqoU':_0x558417(0x98),'UvmbT':'yuv420p'};if(_0xb75291['apYhk'](this['frameCount'],0x2))return null;const _0x4cd645=await _0xb75291[_0x558417(0x14f)](resolveFfmpegPath);if(!_0x4cd645)return null;const _0x311e73=join(this[_0x558417(0x147)][_0x558417(0xb2)],'videos');await _0xb75291['jYBFd'](mkdir,_0x311e73,{'recursive':!![]});const _0x13b22f=_0xb75291[_0x558417(0xd0)](join,_0x311e73,'session-recording.webm');return await _0xb75291[_0x558417(0xd7)](execFileAsync,_0x4cd645,['-y','-hide_banner','-loglevel',_0xb75291[_0x558417(0xc1)],_0xb75291[_0x558417(0x150)],'10','-i',_0xb75291['IhmUo'](join,this[_0x558417(0xb4)](),'frame-%06d.jpg'),_0xb75291[_0x558417(0x110)],_0xb75291['ttoRf'],'-c:v',_0xb75291['YMqoU'],_0x558417(0xa4),_0xb75291['UvmbT'],_0x13b22f]),_0x13b22f;}[_0x11e2f1(0xb4)](){const _0x1c8754=_0x11e2f1,_0x49706e={'XGhnM':_0x1c8754(0xd6)};return join(this[_0x1c8754(0x147)][_0x1c8754(0xb2)],_0x49706e['XGhnM']);}}async function delay(_0x244187){await new Promise(_0x387e2c=>setTimeout(_0x387e2c,_0x244187));}async function resolveFfmpegPath(){const _0x5661b3=_0x11e2f1,_0x2f27ac={'PlsKg':function(_0x328809,_0x229edf){return _0x328809(_0x229edf);},'wNTiD':function(_0x506591){return _0x506591();},'ZYIcp':_0x5661b3(0x155),'qebEM':function(_0x49e848,_0x5cbcdf,_0x1697e9,_0x3d218e){return _0x49e848(_0x5cbcdf,_0x1697e9,_0x3d218e);},'jJlfi':function(_0x3970b5){return _0x3970b5();},'JmGtN':'.cache','XdKRN':function(_0x5f259,_0x1d3747){return _0x5f259(_0x1d3747);}};if(await _0x2f27ac[_0x5661b3(0xb0)](canRunFfmpeg,_0x5661b3(0x7c)))return'ffmpeg';const _0x2bc695=[join(_0x2f27ac['wNTiD'](homedir),_0x5661b3(0x8f),'Caches',_0x2f27ac['ZYIcp']),_0x2f27ac['qebEM'](join,_0x2f27ac[_0x5661b3(0x12d)](homedir),_0x2f27ac['JmGtN'],'ms-playwright')];for(const _0x50301f of _0x2bc695){try{const _0x3ba5a9=await _0x2f27ac[_0x5661b3(0x11c)](readdir,_0x50301f),_0x37d1fa=_0x3ba5a9[_0x5661b3(0xfe)](_0x2e1862=>_0x2e1862[_0x5661b3(0x104)]('ffmpeg-'))[_0x5661b3(0x118)]()['reverse']()[_0x5661b3(0xbd)](_0x791a38=>[join(_0x50301f,_0x791a38,_0x5661b3(0x12e)),join(_0x50301f,_0x791a38,_0x5661b3(0x13c)),join(_0x50301f,_0x791a38,_0x5661b3(0xc6))]);for(const _0x7bcf5d of _0x37d1fa){if(await _0x2f27ac['PlsKg'](canRunFfmpeg,_0x7bcf5d))return _0x7bcf5d;}}catch{}}return null;}async function canRunFfmpeg(_0x48c2c9){try{return await execFileAsync(_0x48c2c9,['-version']),!![];}catch{return![];}}function toStepDisplayName(_0x510a3c){const _0x528896=_0x11e2f1,_0x1d1d6b=basename(_0x510a3c)[_0x528896(0xd5)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x1d1d6b,'isKeyStep':/^key_/i[_0x528896(0x109)](basename(_0x510a3c))};}function extractShellValue(_0x4d3dfd){if(!_0x4d3dfd)return null;return _0x4d3dfd[0x1]??_0x4d3dfd[0x2]??_0x4d3dfd[0x3]??null;}function extractOutputOption(_0x21c50c){const _0x11dad4=_0x11e2f1;return extractShellValue(_0x21c50c[_0x11dad4(0xa5)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x3d9414,_0x20b6d6){const _0x1e602e=_0x11e2f1,_0xb7742d={'NgneW':'session\x20create','vEAeW':'create\x20Nova\x20browser\x20session','eZauG':_0x1e602e(0xc0),'XVKRF':_0x1e602e(0x9e),'rCuIz':_0x1e602e(0xbe),'cCpVd':'ask','ByLnB':_0x1e602e(0x124),'QJOIc':'capture\x20snapshot','ScUgS':_0x1e602e(0xcc),'xKHHp':function(_0x22c51c,_0x259f3f){return _0x22c51c(_0x259f3f);},'lyXTX':'export\x20Nova\x20session'};switch(_0x20b6d6){case _0xb7742d[_0x1e602e(0x9b)]:return _0xb7742d[_0x1e602e(0x139)];case _0xb7742d['eZauG']:return _0xb7742d[_0x1e602e(0xa2)];case'verify':return _0xb7742d[_0x1e602e(0xf0)];case _0xb7742d['cCpVd']:return _0x1e602e(0xc9);case'goto':return'navigate\x20browser';case _0x1e602e(0xdf):return'wait\x20for\x20page\x20condition';case _0xb7742d[_0x1e602e(0xf7)]:{const _0xdb529e=extractOutputOption(_0x3d9414);if(!_0xdb529e)return _0xb7742d[_0x1e602e(0x8c)];const {name:_0x13d281}=toStepDisplayName(_0xdb529e);return'capture\x20snapshot\x20`'+_0x13d281+'`';}case _0xb7742d['ScUgS']:{const _0xbe7636=_0xb7742d[_0x1e602e(0xc4)](extractOutputOption,_0x3d9414);if(!_0xbe7636)return'capture\x20screenshot';const {name:_0x3d876b,isKeyStep:_0xc25df}=toStepDisplayName(_0xbe7636);return _0xc25df?'capture\x20key\x20step\x20`'+_0x3d876b+'`':_0x1e602e(0xed)+_0x3d876b+'`';}case'session\x20export':return _0xb7742d['lyXTX'];default:return _0x20b6d6;}}function getNovaActCliCommandBlockReason(_0x1f88ce){const _0x4323d7=_0x11e2f1,_0x364c5b={'wMlng':'verify','avjzv':'Evaluate\x20visited-page\x20aggregate\x20requirements\x20from\x20the\x20collected\x20URLs,\x20titles,\x20headings,\x20verify\x20results,\x20and\x20screenshots.\x20Do\x20not\x20run\x20another\x20browser\x20command\x20to\x20re-check\x20pages\x20already\x20visited.'},_0x36dd8d=parseNovaActCliCommand(_0x1f88ce);if(!_0x36dd8d)return'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.';if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x36dd8d))return _0x4323d7(0x10c)+_0x36dd8d+_0x4323d7(0x106);if(_0x36dd8d===_0x364c5b[_0x4323d7(0xe2)]&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x1f88ce))return _0x364c5b[_0x4323d7(0xb8)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x4323d7(0x109)](_0x1f88ce))return _0x4323d7(0xda);return null;}function buildFeedbackSection(_0x4020c1){const _0x344841=_0x11e2f1,_0x54d8a3={'WcrxK':'short','PSZgq':'numeric','ediJA':'element','PdreM':function(_0x17ff6d,_0x274784){return _0x17ff6d===_0x274784;}};if(!_0x4020c1||_0x54d8a3['PdreM'](_0x4020c1[_0x344841(0x86)][_0x344841(0x13e)],0x0))return'';const _0x425dd=_0x4020c1['unaddressedComments'][_0x344841(0x121)](_0x55d322=>{const _0x261e6d=_0x344841,_0x3020d9=new Date(_0x55d322[_0x261e6d(0xaf)])[_0x261e6d(0x134)](_0x261e6d(0x95),{'month':_0x54d8a3[_0x261e6d(0x114)],'day':_0x54d8a3[_0x261e6d(0xf5)]}),_0x45e5dd=_0x55d322['authorName']||_0x55d322['authorEmail']||'Reviewer',_0x410a10=_0x55d322[_0x261e6d(0x9f)]?_0x261e6d(0xe8)+(_0x55d322[_0x261e6d(0x9f)][_0x261e6d(0x141)][_0x261e6d(0xe7)]('\x20>\x20')['pop']()?.[_0x261e6d(0xe7)](':')[0x0]||_0x54d8a3[_0x261e6d(0xe0)])+'>\x20\x22'+(_0x55d322[_0x261e6d(0x9f)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x261e6d(0x8d)+_0x55d322['id']+_0x261e6d(0x126)+_0x45e5dd+'**\x20('+_0x3020d9+_0x261e6d(0x12f)+_0x55d322[_0x261e6d(0x128)]+'\x22'+_0x410a10;})['join']('\x0a');return'\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x425dd;}function buildNovaSharedOptionsInstruction(_0x137bac){const _0x2291d1=_0x11e2f1;if(!_0x137bac['trim']())return _0x2291d1(0xc5);return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0x137bac;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x323913){const _0x524008=_0x11e2f1,_0x4f301a={'ncJuZ':function(_0x3c3a45,_0xc34340,_0x59ef38){return _0x3c3a45(_0xc34340,_0x59ef38);},'gVrmY':_0x524008(0x156),'xIhZH':function(_0x3711b4,_0x167d60,_0x18d309){return _0x3711b4(_0x167d60,_0x18d309);},'sismt':_0x524008(0x84),'duTna':function(_0x566469,_0x3f5428){return _0x566469(_0x3f5428);},'jZqsC':function(_0xdce926,_0x1ee370){return _0xdce926(_0x1ee370);},'TdJWO':function(_0x35b537,_0x156afb){return _0x35b537(_0x156afb);}},{novaCommandPrefix:_0x3d1173,novaSharedOptionsSuffix:_0x1dc20a,cliArtifactDir:_0x29cc25,url:_0x2406f2}=_0x323913,_0x31c79f=_0x4f301a[_0x524008(0xbb)](buildCliArtifactPath,_0x29cc25,_0x524008(0x10e)),_0x34044e=_0x4f301a['ncJuZ'](buildCliArtifactPath,_0x29cc25,_0x4f301a['gVrmY']),_0x4f973a=_0x4f301a['xIhZH'](buildCliArtifactPath,_0x29cc25,_0x4f301a['sismt']),_0x51fa91=buildCliArtifactPath(_0x29cc25,'03_final-state.png');return _0x524008(0x105)+_0x3d1173+'\x0a\x0a'+_0x4f301a[_0x524008(0x12c)](buildNovaSharedOptionsInstruction,_0x1dc20a)+_0x524008(0x15b)+_0x3d1173+_0x524008(0x113)+_0x4f301a[_0x524008(0xc8)](quoteShellArg,_0x2406f2)+'\x20'+_0x1dc20a+'`\x0a2.\x20Run\x20`'+_0x3d1173+_0x524008(0xa3)+quoteShellArg(_0x31c79f)+'\x20'+_0x1dc20a+'`\x0a3.\x20Run\x20`'+_0x3d1173+'\x20screenshot\x20--output\x20'+_0x4f301a['TdJWO'](quoteShellArg,_0x34044e)+'\x20'+_0x1dc20a+_0x524008(0x162)+_0x3d1173+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x3d1173+_0x524008(0xa3)+quoteShellArg(_0x4f973a)+'\x20'+_0x1dc20a+_0x524008(0x15a)+_0x3d1173+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x51fa91)+'\x20'+_0x1dc20a+'`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`'+_0x29cc25+_0x524008(0x15e);}function _0x7e44(_0x44e7e5,_0xa4a27e){_0x44e7e5=_0x44e7e5-0x79;const _0x16fb08=_0x16fb();let _0x7e4412=_0x16fb08[_0x44e7e5];return _0x7e4412;}export function buildVerifyFeatureNovaCliPrompt(_0x38858d){const _0x37e42d=_0x11e2f1,_0x307d65={'QqAPP':function(_0xa261fa,_0x105098,_0x2bb632){return _0xa261fa(_0x105098,_0x2bb632);},'LYSjo':'01_initial-state.png','ADmLU':function(_0x38443f,_0x336559){return _0x38443f(_0x336559);},'FHJHp':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','padie':function(_0x510eab,_0x18e917){return _0x510eab(_0x18e917);},'VYvDd':function(_0x46fb24,_0x198a2b){return _0x46fb24(_0x198a2b);}},{checklistItem:_0x35a6d1,itemFeedback:_0x152e0c,taskDescription:_0x113b8b,novaCommandPrefix:_0x716f8,novaSharedOptionsSuffix:_0x2ab268,cliArtifactDir:_0x2f871e,url:_0x40dfe3,loginInstructions:_0x36735c}=_0x38858d,_0x4c2c0f=_0x35a6d1[_0x37e42d(0x10d)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x35a6d1[_0x37e42d(0x10d)]:'',_0x43f5cc=buildFeedbackSection(_0x152e0c),_0x337eab=_0x152e0c?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x152e0c['canonicalFlow']:'',_0x45b4bd=_0x36735c?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x36735c+_0x37e42d(0x15d):'',_0x34afd0=_0x307d65['QqAPP'](buildCliArtifactPath,_0x2f871e,_0x37e42d(0xfd)),_0xcf6224=buildCliArtifactPath(_0x2f871e,_0x307d65[_0x37e42d(0x11f)]),_0x3b9a17=buildCliArtifactPath(_0x2f871e,_0x37e42d(0xc7));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'+_0x35a6d1['description']+_0x4c2c0f+_0x43f5cc+_0x337eab+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x113b8b+_0x37e42d(0x97)+_0x40dfe3+'\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x27s\x20origin.\x0a-\x20Do\x20not\x20navigate\x20to\x20any\x20different\x20protocol,\x20host,\x20or\x20port.\x0a-\x20If\x20the\x20browser\x20leaves\x20this\x20origin,\x20navigate\x20back\x20once.\x20If\x20you\x20cannot\x20recover,\x20return\x20evaluation\x20\x22blocked\x22.\x0a'+_0x45b4bd+_0x37e42d(0x133)+_0x716f8+'\x20session\x20create\x20'+quoteShellArg(_0x40dfe3)+'\x20'+_0x2ab268+_0x37e42d(0xfc)+_0x2f871e+'`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`'+_0x716f8+_0x37e42d(0xa3)+_0x307d65[_0x37e42d(0x127)](quoteShellArg,_0x34afd0)+'\x20'+_0x2ab268+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x716f8+'\x20screenshot\x20--output\x20'+quoteShellArg(_0xcf6224)+'\x20'+_0x2ab268+'`.\x0a7.\x20Optimize\x20for\x20few\x20browser\x20round\x20trips.\x20Each\x20Nova\x20CLI\x20call\x20has\x20high\x20latency.\x0a8.\x20Use\x203-5\x20high-level\x20`execute`\x20commands\x20total.\x20Each\x20`execute`\x20should\x20contain\x202-5\x20concrete\x20browser\x20steps\x20and\x20should\x20drive\x20to\x20the\x20next\x20milestone\x20page.\x0a9.\x20Do\x20not\x20split\x20a\x20simple\x20navigation\x20into\x20separate\x20commands\x20like\x20\x22open\x20menu\x22,\x20then\x20\x22click\x20link\x22,\x20then\x20\x22screenshot\x22.\x20Batch\x20those\x20into\x20one\x20`execute`\x20when\x20the\x20target\x20is\x20clear.\x0a10.\x20Do\x20not\x20use\x20`ask`\x20unless\x20you\x20are\x20genuinely\x20stuck\x20or\x20need\x20to\x20disambiguate\x20visible\x20page\x20content.\x20Prefer\x20reading\x20the\x20output\x20from\x20`execute`,\x20`snapshot`,\x20and\x20`verify`.\x0a11.\x20Use\x20`verify`\x20only\x20at\x20milestone\x20pages\x20that\x20map\x20directly\x20to\x20scenario\x20requirements.\x20Do\x20not\x20verify\x20after\x20every\x20click.\x0a12.\x20Take\x20screenshots\x20for\x20each\x20scenario\x20milestone\x20so\x20every\x20verified\x20step\x20has\x20reviewable\x20image\x20evidence,\x20including\x20the\x20final\x20state.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page.\x0a13.\x20After\x20the\x20required\x20initial\x20snapshot,\x20do\x20not\x20take\x20separate\x20milestone\x20snapshots\x20unless\x20you\x20cannot\x20understand\x20the\x20page\x20from\x20the\x20`execute`,\x20`verify`,\x20and\x20screenshot\x20outputs.\x0a14.\x20Mark\x20the\x20most\x20important\x20proof\x20screenshot\x20with\x20`key_`,\x20for\x20example\x20`'+_0x3b9a17+_0x37e42d(0x159)+_0x716f8+_0x37e42d(0xdc)+(_0x2ab268[_0x37e42d(0x7f)]()?'`'+_0x2ab268+'`':_0x307d65['FHJHp'])+'\x0a\x0a'+_0x307d65[_0x37e42d(0xd8)](buildNovaSharedOptionsInstruction,_0x2ab268)+_0x37e42d(0x152)+_0x716f8+_0x37e42d(0x158)+_0x2ab268+_0x37e42d(0xb6)+_0x716f8+_0x37e42d(0x132)+_0x2ab268+_0x37e42d(0xb6)+_0x716f8+'\x20snapshot\x20--output\x20'+_0x307d65[_0x37e42d(0x136)](quoteShellArg,_0x34afd0)+'\x20'+_0x2ab268+'`\x0a-\x20`'+_0x716f8+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x3b9a17)+'\x20'+_0x2ab268+_0x37e42d(0xaa);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x4a00fb){const _0x39101d=_0x11e2f1,_0x49f09e=[..._0x4a00fb[_0x39101d(0x12b)]()][_0x39101d(0x118)]();let _0x27f7e8=0x0;for(const _0x236daf of _0x4a00fb['values']()){_0x27f7e8+=_0x236daf;}return{'cliCommandCount':_0x27f7e8,'cliCommandsSeen':_0x49f09e,'noCliCommandsCalled':_0x27f7e8===0x0};}export function createVerifyFeatureNovaCliHooks(_0x32673b,_0x296fc7){const _0x1f5cc8=_0x11e2f1,_0x32edf7={'MleaH':function(_0xdbd054,_0x2f9c7e){return _0xdbd054!==_0x2f9c7e;},'HZzbF':_0x1f5cc8(0xbf),'LeKoZ':function(_0x4f0583,_0x156107){return _0x4f0583(_0x156107);},'spgBB':function(_0x29caed,_0x3d3131){return _0x29caed(_0x3d3131);},'YyDRR':function(_0x71f205,_0x4988b9){return _0x71f205!==_0x4988b9;},'jKtNX':function(_0x2928d4,_0x3b3cb4){return _0x2928d4(_0x3b3cb4);},'WYtOi':'nova_act_command','kViTp':function(_0x540c02,_0x212511){return _0x540c02(_0x212511);},'AqFNf':_0x1f5cc8(0x88),'VqqWU':'nova-act-cli','CpuJy':function(_0x2a4ea5,_0x4aee39){return _0x2a4ea5!==_0x4aee39;},'qLZNH':_0x1f5cc8(0x144),'fJrIw':'nova_act_command_failure'},_0x1d148d=new Map(),_0x100b1e=async _0x4d73e1=>{const _0x18091c=_0x1f5cc8;if(_0x4d73e1['hook_event_name']!==_0x18091c(0x129))return{};const _0x5113c0=_0x4d73e1;if(_0x32edf7[_0x18091c(0x10b)](_0x5113c0[_0x18091c(0x145)],_0x32edf7[_0x18091c(0x99)]))return{};const _0x2dcf54=_0x5113c0['tool_input'],_0x4a9fa6=_0x32edf7[_0x18091c(0x11b)](extractBashCommand,_0x2dcf54);if(!_0x4a9fa6)return{};const _0x582b46=_0x32edf7['spgBB'](getNovaActCliCommandBlockReason,_0x4a9fa6);if(!_0x582b46)return{};return{'decision':'block','reason':_0x582b46};},_0x4cbdf1=async _0x3f18d7=>{const _0x2433e3=_0x1f5cc8;if(_0x3f18d7['hook_event_name']!==_0x2433e3(0xd2))return{};const _0x506b13=_0x3f18d7;if(_0x32edf7[_0x2433e3(0x164)](_0x506b13[_0x2433e3(0x145)],'Bash'))return{};const _0x21adf6=_0x506b13['tool_input'],_0x56ae3c=extractBashCommand(_0x21adf6);if(!_0x56ae3c)return{};const _0x4119a4=_0x32edf7['jKtNX'](parseNovaActCliCommand,_0x56ae3c);if(!_0x4119a4)return{};_0x1d148d[_0x2433e3(0x81)](_0x4119a4,(_0x1d148d['get'](_0x4119a4)||0x0)+0x1),_0x32673b[_0x2433e3(0xbc)](_0x32edf7['WYtOi'],{'subcommand':_0x4119a4}),_0x32673b['trackPhaseEnd'](_0x2433e3(0x90),{'subcommand':_0x4119a4,'commandPreview':_0x32edf7[_0x2433e3(0xe6)](previewNovaActCliCommand,_0x56ae3c)}),console[_0x2433e3(0x8b)]('[nova-act-cli]\x20'+formatNovaActCliLog(_0x56ae3c,_0x4119a4));if(_0x4119a4===_0x32edf7['AqFNf']&&_0x296fc7)try{await _0x296fc7[_0x2433e3(0xf3)]();}catch(_0x443688){await _0x32673b['trackPhaseError'](_0x2433e3(0xca),_0x443688,{'transport':_0x32edf7[_0x2433e3(0x92)]});}return{};},_0x448415=async _0x103028=>{const _0x169f4=_0x1f5cc8;if(_0x32edf7['CpuJy'](_0x103028[_0x169f4(0xa6)],_0x32edf7[_0x169f4(0x119)]))return{};const _0x5c2168=_0x103028;if(_0x32edf7[_0x169f4(0x10b)](_0x5c2168['tool_name'],_0x169f4(0xbf)))return{};return await _0x32673b[_0x169f4(0xfb)](_0x32edf7['fJrIw'],_0x5c2168[_0x169f4(0xce)],{'transport':_0x32edf7[_0x169f4(0x92)],'toolName':_0x32edf7['HZzbF']}),{};};return{'preToolUseHook':_0x100b1e,'postToolUseHook':_0x4cbdf1,'postToolUseFailureHook':_0x448415,'commandCounts':_0x1d148d};}async function runNovaLifecycleCommand(_0x178a35){const _0x3bf139=_0x11e2f1,_0x467350={'ROMep':function(_0xc6d4f,_0x5c2653){return _0xc6d4f(_0x5c2653);},'xzMFp':function(_0x55e452,_0x538031){return _0x55e452??_0x538031;},'cXhvc':function(_0x29a2a5,_0x266620){return _0x29a2a5(_0x266620);}},{novaOptions:_0x23c2bd,commandArgs:_0x345c58,telemetry:_0x8fce6b,phase:_0x2244f2,metadata:_0x1db44f,timeoutMs:_0x11193c}=_0x178a35;_0x8fce6b['trackPhaseStart'](_0x2244f2,_0x1db44f);try{const _0x3a8b6c=await _0x467350[_0x3bf139(0x7a)](runNovaActCliCommand,{..._0x23c2bd,'commandArgs':_0x345c58,'cwd':process[_0x3bf139(0x142)](),'env':process[_0x3bf139(0x7b)],'timeoutMs':_0x467350[_0x3bf139(0xef)](_0x11193c,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x8fce6b['trackPhaseEnd'](_0x2244f2,{..._0x1db44f,'subcommand':_0x3a8b6c[_0x3bf139(0xf9)][_0x3bf139(0xec)],'commandPreview':previewNovaActCliCommand(_0x3a8b6c[_0x3bf139(0xf9)][_0x3bf139(0x151)]),'stdoutPreview':_0x467350[_0x3bf139(0x11e)](previewNovaActCliCommand,_0x3a8b6c['stdout']),'stderrPreview':_0x467350[_0x3bf139(0x11e)](previewNovaActCliCommand,_0x3a8b6c[_0x3bf139(0xf2)]),'logDir':extractNovaActLogDir(_0x3a8b6c['stdout'])});}catch(_0x3f3273){await _0x8fce6b[_0x3bf139(0xfb)](_0x2244f2,_0x3f3273,_0x1db44f);throw _0x3f3273;}}export async function finalizeVerifyFeatureNovaCliSession(_0x12663e){const _0x567030=_0x11e2f1,_0xf541b={'DAcXY':_0x567030(0x116),'gqYWj':_0x567030(0xb3),'uYktW':'nova_act_final_snapshot','NnScr':function(_0x54f2b4,_0x5bc12a,_0x2e2c11){return _0x54f2b4(_0x5bc12a,_0x2e2c11);},'NOXjy':'final-state.yaml','TgYqd':_0x567030(0x103),'qmtRd':'--output-dir','xOyKP':'nova-report','Igjib':_0x567030(0x112),'JuiLt':_0x567030(0x14c)},{telemetry:_0x10fc58,novaOptions:_0x1c5bc1,cliArtifactDir:_0xd550cc,transportMetadata:_0x5a9fa,artifactRecorder:_0x10f04e}=_0x12663e,_0x254f9c=[{'phase':_0xf541b[_0x567030(0xb5)],'commandArgs':[_0x567030(0xcc),_0xf541b['gqYWj'],buildCliArtifactPath(_0xd550cc,_0x567030(0xa1))]},{'phase':_0xf541b[_0x567030(0x137)],'commandArgs':['snapshot',_0xf541b[_0x567030(0xb9)],_0xf541b[_0x567030(0xae)](buildCliArtifactPath,_0xd550cc,_0xf541b[_0x567030(0x11a)])]},{'phase':'nova_act_session_export','commandArgs':[_0xf541b['TgYqd'],_0x567030(0x157),_0x567030(0x15c),_0x567030(0x102),'--output',buildCliArtifactPath(_0xd550cc,'nova-session-export.json')]},{'phase':'nova_act_session_report','commandArgs':[_0x567030(0x103),_0x567030(0x157),_0x567030(0xe1),_0xf541b[_0x567030(0xad)],_0xf541b['NnScr'](buildCliArtifactPath,_0xd550cc,_0xf541b[_0x567030(0x161)])]},{'phase':_0x567030(0x14c),'commandArgs':[_0xf541b[_0x567030(0x138)],_0xf541b[_0x567030(0x160)]]}];for(const _0xe69efd of _0x254f9c){_0xe69efd['phase']===_0xf541b[_0x567030(0x15f)]&&await _0x10f04e?.['stop']();try{await runNovaLifecycleCommand({'novaOptions':_0x1c5bc1,'commandArgs':[..._0xe69efd['commandArgs']],'telemetry':_0x10fc58,'phase':_0xe69efd['phase'],'metadata':_0x5a9fa});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x340220){const _0x1a5f4a=_0x11e2f1,_0x2277c0={'opEey':function(_0x935f83,_0x4a478d,_0x445450){return _0x935f83(_0x4a478d,_0x445450);},'dpFus':function(_0x3f6677,_0x57d67d){return _0x3f6677+_0x57d67d;},'liNLl':function(_0x5e297f,_0x1acb33){return _0x5e297f===_0x1acb33;}},{cwd:_0x123dca,cliArtifactDir:_0x28c2dd,startTime:_0x77006d}=_0x340220,_0x2860fd=[];await mkdir(_0x28c2dd,{'recursive':!![]});const _0x2beefc=await _0x2277c0['opEey'](readdir,_0x123dca,{'withFileTypes':!![]});for(const _0x57705e of _0x2beefc){if(!_0x57705e['isFile']()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x1a5f4a(0x109)](_0x57705e[_0x1a5f4a(0xea)]))continue;const _0x46963c=join(_0x123dca,_0x57705e['name']),_0x165d77=await stat(_0x46963c);if(_0x2277c0['dpFus'](_0x165d77[_0x1a5f4a(0x82)],0x7d0)<_0x77006d)continue;const _0x2ed810=_0x2277c0['opEey'](buildCliArtifactPath,_0x28c2dd,_0x57705e['name']);if(_0x2277c0['liNLl'](_0x46963c,_0x2ed810))continue;await rename(_0x46963c,_0x2ed810),_0x2860fd[_0x1a5f4a(0x7d)](_0x57705e['name']);}return _0x2860fd['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x379439){const _0x5ce0b4=_0x11e2f1,_0x21eba3={'xHdsE':function(_0x21dd3d,_0xd7b918,_0x54d89e){return _0x21dd3d(_0xd7b918,_0x54d89e);},'CzsMD':'trace.zip','jFYjU':function(_0x2a8fc9,_0x4de8b5){return _0x2a8fc9(_0x4de8b5);}},_0x146b21=_0x21eba3[_0x5ce0b4(0x130)](join,_0x379439,_0x21eba3[_0x5ce0b4(0xff)]);try{return{'buffer':await readFile(_0x146b21),'source':_0x146b21};}catch{return{'buffer':await _0x21eba3[_0x5ce0b4(0x148)](zipVerifyFeatureNovaArtifacts,_0x379439),'source':_0x379439};}}async function zipVerifyFeatureNovaArtifacts(_0x598ef9){const _0x33f4e7=_0x11e2f1,_0x34d6df={'gnhvv':function(_0x116fe8,_0x5c2a6e,_0x3b9875,_0x3ac292){return _0x116fe8(_0x5c2a6e,_0x3b9875,_0x3ac292);},'cvyHu':'nova-artifacts.zip','cBgxl':_0x33f4e7(0xb7),'chOOV':_0x33f4e7(0x14e),'HgLDA':function(_0x5b0f9f,_0x499e9b){return _0x5b0f9f(_0x499e9b);}},_0x369ad5=_0x34d6df['gnhvv'](join,_0x598ef9,'..',_0x34d6df[_0x33f4e7(0xe4)]);try{return await execFileAsync(_0x34d6df['cBgxl'],['-qr',_0x369ad5,'.','-x',_0x34d6df['chOOV']],{'cwd':_0x598ef9}),await _0x34d6df[_0x33f4e7(0x111)](readFile,_0x369ad5);}finally{await rm(_0x369ad5,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x4ce143){const _0x368a81=_0x11e2f1,_0x135494={'NLUGM':function(_0x3d72be,_0x3a24bb,_0xfc992){return _0x3d72be(_0x3a24bb,_0xfc992);}},_0x501ac9=_0x135494[_0x368a81(0x11d)](buildNovaActCliInvocation,_0x4ce143['novaOptions'],_0x4ce143['commandArgs']);return{'command':_0x501ac9[_0x368a81(0x12a)],'args':_0x501ac9[_0x368a81(0x154)],'commandPreview':previewNovaActCliCommand(_0x501ac9[_0x368a81(0x151)]),'subcommand':_0x501ac9[_0x368a81(0xec)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x4ce143['novaOptions'],_0x4ce143[_0x368a81(0x80)])};}
1
+ const _0x2c576b=_0x4886;(function(_0x4f854f,_0x57bc35){const _0x46d6b5=_0x4886,_0x4fbba1=_0x4f854f();while(!![]){try{const _0x36b3f7=parseInt(_0x46d6b5(0x11a))/0x1+-parseInt(_0x46d6b5(0xd3))/0x2+parseInt(_0x46d6b5(0x12e))/0x3+parseInt(_0x46d6b5(0xa0))/0x4+parseInt(_0x46d6b5(0xdc))/0x5+parseInt(_0x46d6b5(0xc3))/0x6+-parseInt(_0x46d6b5(0x162))/0x7*(-parseInt(_0x46d6b5(0x153))/0x8);if(_0x36b3f7===_0x57bc35)break;else _0x4fbba1['push'](_0x4fbba1['shift']());}catch(_0x34ceb1){_0x4fbba1['push'](_0x4fbba1['shift']());}}}(_0x546c,0xa7a29));function _0x4886(_0x45a77c,_0x26dae7){_0x45a77c=_0x45a77c-0x9a;const _0x546c1e=_0x546c();let _0x488674=_0x546c1e[_0x45a77c];return _0x488674;}import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';import{homedir}from'os';import{basename,join}from'path';import{promisify}from'util';import{chromium}from'playwright';import{buildNovaActCliInvocation,buildNovaActCliSharedOptionsSuffix,extractNovaActLogDir,parseNovaActCliCommand,previewNovaActCliCommand,runNovaActCliCommand}from'./utils/novaActCli.js';import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';const NOVA_ACT_CLI_COMMAND_TIMEOUT_MS=0x1d4c0,NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS=0x3a98,NOVA_ARTIFACT_METADATA_WAIT_MS=0x1388,NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS=0x1388,VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN=/^(?:\d{2}_.+\.(?:png|ya?ml)|key_.+\.png|final-state\.ya?ml|nova-session-export\.json)$/i,NOVA_ACT_ALLOWED_AGENT_COMMANDS=new Set([_0x2c576b(0x158),_0x2c576b(0x124),_0x2c576b(0x14a),'ask','goto',_0x2c576b(0x15f),'snapshot',_0x2c576b(0x9b)]),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x262170,_0x5db811){const _0xec0fce=_0x2c576b,_0x1abc1a={'dWWqC':function(_0x4b8511,_0x37ef8d,_0x304417){return _0x4b8511(_0x37ef8d,_0x304417);}};return _0x1abc1a[_0xec0fce(0x148)](join,_0x262170,_0x5db811);}export class NovaActArtifactRecorder{[_0x2c576b(0xd8)];[_0x2c576b(0x107)]=null;[_0x2c576b(0x14d)]=null;[_0x2c576b(0xc1)]=null;['frameWrites']=[];[_0x2c576b(0xf0)]=0x0;['traceSampleCount']=0x0;[_0x2c576b(0x151)]=null;['traceSampleInFlight']=null;['tracingStarted']=![];['screencastStarted']=![];[_0x2c576b(0xf9)]=![];[_0x2c576b(0x15a)]=![];constructor(_0x65c490){const _0x2c6dee=_0x2c576b;this[_0x2c6dee(0xd8)]=_0x65c490;}async['start'](){const _0xa3919e=_0x2c576b,_0x52ae59={'bnLIR':'Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','uDJNL':_0xa3919e(0xed)};if(this[_0xa3919e(0xf9)])return;this[_0xa3919e(0xf9)]=!![];const _0x33d760=await this[_0xa3919e(0xd0)](),_0x3ef9be=_0x33d760['cdp_endpoint'];if(!_0x3ef9be)throw new Error(_0xa3919e(0xb9)+this[_0xa3919e(0xd8)]['novaOptions'][_0xa3919e(0xe5)]);await mkdir(this[_0xa3919e(0xd8)][_0xa3919e(0xbf)],{'recursive':!![]}),this['browser']=await chromium['connectOverCDP'](_0x3ef9be,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0xa3919e(0x14d)]=this['browser'][_0xa3919e(0xfa)]()[0x0]??null;if(!this[_0xa3919e(0x14d)])throw new Error(_0x52ae59['bnLIR']);await this['context'][_0xa3919e(0x166)][_0xa3919e(0x14f)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0xa3919e(0x106)]=!![],this[_0xa3919e(0xa6)](),await this[_0xa3919e(0xff)](),this[_0xa3919e(0xd8)]['telemetry'][_0xa3919e(0x136)](_0x52ae59['uDJNL'],{...this['params']['transportMetadata'],'cdpEndpoint':_0x3ef9be,'browserPid':_0x33d760['browser_pid'],'sessionState':_0x33d760[_0xa3919e(0xcd)]}),this[_0xa3919e(0xd8)][_0xa3919e(0x14e)][_0xa3919e(0x154)](_0x52ae59['uDJNL'],{...this['params']['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']});}async[_0x2c576b(0xcf)](){const _0xdec446=_0x2c576b,_0x491697={'jFoNm':'nova_act_artifact_recording_stop'};if(this['stopped'])return;this['stopped']=!![];const _0x2e179c={...this['params'][_0xdec446(0x14b)],'frameCount':this[_0xdec446(0xf0)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']};this[_0xdec446(0xd8)]['telemetry'][_0xdec446(0x136)](_0x491697[_0xdec446(0xf5)],_0x2e179c);try{await this[_0xdec446(0xdb)](),await this[_0xdec446(0x150)](),await this['stopScreencast'](),await Promise['allSettled'](this[_0xdec446(0xa7)]);this['context']&&this['tracingStarted']&&await this['context']['tracing'][_0xdec446(0xcf)]({'path':buildCliArtifactPath(this[_0xdec446(0xd8)][_0xdec446(0xbf)],'trace.zip')});const _0x274ef5=await this[_0xdec446(0xc6)]();this['params']['telemetry']['trackPhaseEnd'](_0xdec446(0xba),{..._0x2e179c,'videoPath':_0x274ef5});}catch(_0x2868e9){await this['params']['telemetry'][_0xdec446(0x120)](_0xdec446(0xba),_0x2868e9,_0x2e179c);}finally{await this[_0xdec446(0x107)]?.[_0xdec446(0x103)]()['catch'](()=>undefined),this['browser']=null,this['context']=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0x123bbd=_0x2c576b,_0x23aa93={'iJWqz':function(_0x26f11c,_0x505c3d,_0x1f7a62,_0x1315fe,_0x308b12,_0x4e0dc1){return _0x26f11c(_0x505c3d,_0x1f7a62,_0x1315fe,_0x308b12,_0x4e0dc1);},'zBGDT':'.act_cli','DpkWK':_0x123bbd(0x107),'HHJNo':'utf-8','oHIZS':function(_0x2c675b,_0x387ba1){return _0x2c675b(_0x387ba1);},'muMeM':function(_0x238a92,_0x14c1fa){return _0x238a92<_0x14c1fa;}},_0x185138=_0x23aa93[_0x123bbd(0xfd)](join,homedir(),_0x23aa93['zBGDT'],_0x23aa93[_0x123bbd(0x100)],_0x123bbd(0x9f),this[_0x123bbd(0xd8)]['novaOptions']['sessionId']+'.json'),_0x3b7234=Date['now']();let _0x2a0d7d;do{try{const _0x182ddf=JSON['parse'](await readFile(_0x185138,_0x23aa93['HHJNo']));if(_0x182ddf['cdp_endpoint'])return _0x182ddf;_0x2a0d7d=new Error(_0x123bbd(0xe3)+_0x185138);}catch(_0x34bd75){_0x2a0d7d=_0x34bd75;}await _0x23aa93[_0x123bbd(0x14c)](delay,0x64);}while(_0x23aa93['muMeM'](Date[_0x123bbd(0xa2)]()-_0x3b7234,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x2a0d7d instanceof Error)throw _0x2a0d7d;throw new Error(_0x123bbd(0x130)+_0x185138);}async[_0x2c576b(0xff)](){const _0x5d16e3=_0x2c576b,_0x16623c={'hUDJu':_0x5d16e3(0xd4),'fEHMC':_0x5d16e3(0x149)};if(!this[_0x5d16e3(0x14d)])return;const _0x3be9ea=this[_0x5d16e3(0x14d)]['pages']()[0x0];if(!_0x3be9ea)return;const _0x30bf90=this['getFrameDir']();await mkdir(_0x30bf90,{'recursive':!![]});const _0x1383b0=await this[_0x5d16e3(0x14d)]['newCDPSession'](_0x3be9ea);this['frameSession']=_0x1383b0,_0x1383b0['on']('Page.screencastFrame',_0x424d15=>{const _0x46a308=_0x5d16e3,_0x207196=++this[_0x46a308(0xf0)],_0x43d05c=join(_0x30bf90,_0x46a308(0xb7)+String(_0x207196)['padStart'](0x6,'0')+'.jpg'),_0x50576d=writeFile(_0x43d05c,Buffer[_0x46a308(0xb5)](_0x424d15['data'],'base64'))[_0x46a308(0x157)](()=>undefined)['finally'](()=>_0x1383b0['send']('Page.screencastFrameAck',{'sessionId':_0x424d15['sessionId']}))['then'](()=>undefined)[_0x46a308(0x157)](()=>undefined);this['frameWrites']['push'](_0x50576d);}),await _0x1383b0['send'](_0x16623c[_0x5d16e3(0x128)],{'format':_0x16623c[_0x5d16e3(0x112)],'quality':0x4b,'everyNthFrame':0x6}),this[_0x5d16e3(0x159)]=!![];}async['stopScreencast'](){const _0x2eeeba=_0x2c576b,_0x10ab7d={'sXiuI':'Page.stopScreencast'};if(!this['frameSession']||!this['screencastStarted'])return;await this[_0x2eeeba(0xc1)]['send'](_0x10ab7d[_0x2eeeba(0x13d)])[_0x2eeeba(0x157)](()=>undefined);}[_0x2c576b(0xa6)](){const _0x1a7577=_0x2c576b,_0x3c0f58={'tHGGg':function(_0xa693fc,_0x407ac9,_0x2da075){return _0xa693fc(_0x407ac9,_0x2da075);}};this[_0x1a7577(0x11d)](),this[_0x1a7577(0x151)]=_0x3c0f58[_0x1a7577(0xe0)](setInterval,()=>this['queueTraceSample'](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x2c576b(0x11d)](){const _0x46b424=_0x2c576b;if(this['traceSampleInFlight'])return;this[_0x46b424(0xe6)]=this['captureTraceSample']()[_0x46b424(0xb2)](()=>{const _0x219d5c=_0x46b424;this[_0x219d5c(0xe6)]=null;});}async['stopTraceSampling'](){const _0x3c847e=_0x2c576b;this['traceSampleTimer']&&(clearInterval(this[_0x3c847e(0x151)]),this[_0x3c847e(0x151)]=null),await this['traceSampleInFlight']?.[_0x3c847e(0x157)](()=>undefined);}async[_0x2c576b(0x150)](){const _0x2946fc=_0x2c576b,_0x240d81=this['context']?.[_0x2946fc(0xae)]()[0x0];if(!_0x240d81)return;try{await _0x240d81['locator']('body')['evaluate'](_0x48c310=>_0x48c310[_0x2946fc(0xf4)],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x2c576b(0xc6)](){const _0x440176=_0x2c576b,_0x9ad73f={'MNzsz':function(_0x3c1b25){return _0x3c1b25();},'ylSFB':'videos','xRnBR':function(_0x22e996,_0x18d120,_0x241121){return _0x22e996(_0x18d120,_0x241121);},'hkfFb':_0x440176(0x15b),'ZbaCs':'frame-%06d.jpg','qKOqW':'scale=trunc(iw/2)*2:trunc(ih/2)*2','yzFhU':_0x440176(0x152),'EpRTU':'-pix_fmt','uZnyH':_0x440176(0x169)};if(this['frameCount']<0x2)return null;const _0x4c7c00=await _0x9ad73f['MNzsz'](resolveFfmpegPath);if(!_0x4c7c00)return null;const _0x277812=join(this['params'][_0x440176(0xbf)],_0x9ad73f['ylSFB']);await mkdir(_0x277812,{'recursive':!![]});const _0x58b743=_0x9ad73f[_0x440176(0x126)](join,_0x277812,'session-recording.webm');return await execFileAsync(_0x4c7c00,['-y',_0x9ad73f['hkfFb'],'-loglevel',_0x440176(0xd6),_0x440176(0x139),'10','-i',join(this[_0x440176(0x15d)](),_0x9ad73f[_0x440176(0xe4)]),_0x440176(0x138),_0x9ad73f['qKOqW'],_0x440176(0x117),_0x9ad73f['yzFhU'],_0x9ad73f[_0x440176(0xe8)],_0x9ad73f['uZnyH'],_0x58b743]),_0x58b743;}['getFrameDir'](){const _0x54d245=_0x2c576b;return join(this['params']['cliArtifactDir'],_0x54d245(0xdd));}}async function delay(_0x522916){await new Promise(_0x586fb6=>setTimeout(_0x586fb6,_0x522916));}async function resolveFfmpegPath(){const _0x3723fd=_0x2c576b,_0x3a6f16={'jPcRx':function(_0x1e18df,_0x1d92ee,_0x189576,_0x4bbd29,_0x322047){return _0x1e18df(_0x1d92ee,_0x189576,_0x4bbd29,_0x322047);},'OiFuT':function(_0x16f3f3){return _0x16f3f3();},'kfxjv':'Caches','Qjikh':function(_0xc228f5,_0x2a327b,_0x140b9a,_0x48ea07){return _0xc228f5(_0x2a327b,_0x140b9a,_0x48ea07);},'hFiPp':function(_0x4cd368){return _0x4cd368();},'KVibB':'ms-playwright'};if(await canRunFfmpeg(_0x3723fd(0x125)))return'ffmpeg';const _0x293fff=[_0x3a6f16['jPcRx'](join,_0x3a6f16[_0x3723fd(0x12d)](homedir),'Library',_0x3a6f16[_0x3723fd(0xbd)],'ms-playwright'),_0x3a6f16['Qjikh'](join,_0x3a6f16['hFiPp'](homedir),'.cache',_0x3a6f16[_0x3723fd(0xe1)])];for(const _0x5b7764 of _0x293fff){try{const _0x16bc36=await readdir(_0x5b7764),_0x428251=_0x16bc36['filter'](_0xb5628d=>_0xb5628d[_0x3723fd(0x129)]('ffmpeg-'))['sort']()[_0x3723fd(0xee)]()[_0x3723fd(0x15c)](_0x2ff03f=>[join(_0x5b7764,_0x2ff03f,_0x3723fd(0x13f)),join(_0x5b7764,_0x2ff03f,'ffmpeg-linux'),join(_0x5b7764,_0x2ff03f,_0x3723fd(0x119))]);for(const _0x71b6e1 of _0x428251){if(await canRunFfmpeg(_0x71b6e1))return _0x71b6e1;}}catch{}}return null;}async function canRunFfmpeg(_0x2b4c83){const _0x34ab76={'vpXDY':function(_0x5a6e3d,_0x4181aa,_0x2b713f){return _0x5a6e3d(_0x4181aa,_0x2b713f);}};try{return await _0x34ab76['vpXDY'](execFileAsync,_0x2b4c83,['-version']),!![];}catch{return![];}}function toStepDisplayName(_0x21ecb7){const _0x15e9e9=_0x2c576b,_0x4e43fc={'mGuPg':function(_0x3cb315,_0x23011b){return _0x3cb315(_0x23011b);}},_0xb5c395=_0x4e43fc['mGuPg'](basename,_0x21ecb7)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x15e9e9(0x114)](/^key_/i,'')['replace'](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0xb5c395,'isKeyStep':/^key_/i[_0x15e9e9(0xaf)](basename(_0x21ecb7))};}function extractShellValue(_0x2f9beb){if(!_0x2f9beb)return null;return _0x2f9beb[0x1]??_0x2f9beb[0x2]??_0x2f9beb[0x3]??null;}function extractOutputOption(_0x22aa2d){const _0xe79a94=_0x2c576b,_0x2780b2={'ESFkY':function(_0x5f29e1,_0x4cea35){return _0x5f29e1(_0x4cea35);}};return _0x2780b2['ESFkY'](extractShellValue,_0x22aa2d[_0xe79a94(0x155)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function _0x546c(){const _0x34b85f=['\x20screenshot\x20--output\x20','sessions','584716CYtbWW','KEByi','now','trim','HIfVf','selector','startTraceSampling','frameWrites','shellCommand','cBuok','-qr','`\x0a4.\x20Run\x20one\x20batched\x20`','navigate\x20browser','gLjlC','pages','test','verify\x20page\x20condition','Bash','finally','nova_act_final_screenshot','snapshot','from','\x20(on\x20element:\x20<','frame-','nova-report','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','nova_act_artifact_recording_stop','en-US','unaddressedComments','kfxjv','final-state.yaml','cliArtifactDir','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','frameSession','export','478146usBEmU','subcommand','numeric','encodeScreencastVideo','\x20session\x20create\x20','lxykd','notes','map','goto','DuUBI','state','TkYHa','stop','readSessionMetadataWithRetry','\x0a\x0a##\x20Additional\x20Notes\x0a','ask','1105328PovctY','Page.startScreencast','split','error','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','params','--format','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','stopTraceSampling','778130pKsfyU','nova-video-frames','GGCMW','\x0a\x0aThe\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20on\x20PATH.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20or\x20run\x20setup.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20the\x20session\x20create\x20command\x20below.\x0a\x0a1.\x20Run\x20`','tHGGg','KVibB','cwd','Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20','ZbaCs','sessionId','traceSampleInFlight','`.\x0a7.\x20Optimize\x20for\x20few\x20browser\x20round\x20trips.\x20Each\x20Nova\x20CLI\x20call\x20has\x20high\x20latency.\x0a8.\x20Use\x203-5\x20high-level\x20`execute`\x20commands\x20total.\x20Each\x20`execute`\x20should\x20contain\x202-5\x20concrete\x20browser\x20steps\x20and\x20should\x20drive\x20to\x20the\x20next\x20milestone\x20page.\x0a9.\x20Do\x20not\x20split\x20a\x20simple\x20navigation\x20into\x20separate\x20commands\x20like\x20\x22open\x20menu\x22,\x20then\x20\x22click\x20link\x22,\x20then\x20\x22screenshot\x22.\x20Batch\x20those\x20into\x20one\x20`execute`\x20when\x20the\x20target\x20is\x20clear.\x0a10.\x20Do\x20not\x20use\x20`ask`\x20unless\x20you\x20are\x20genuinely\x20stuck\x20or\x20need\x20to\x20disambiguate\x20visible\x20page\x20content.\x20Prefer\x20reading\x20the\x20output\x20from\x20`execute`,\x20`snapshot`,\x20and\x20`verify`.\x0a11.\x20Use\x20`verify`\x20only\x20at\x20milestone\x20pages\x20that\x20map\x20directly\x20to\x20scenario\x20requirements.\x20Do\x20not\x20verify\x20after\x20every\x20click.\x0a12.\x20Take\x20screenshots\x20for\x20each\x20scenario\x20milestone\x20so\x20every\x20verified\x20step\x20has\x20reviewable\x20image\x20evidence,\x20including\x20the\x20final\x20state.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page.\x0a13.\x20After\x20the\x20required\x20initial\x20snapshot,\x20do\x20not\x20take\x20separate\x20milestone\x20snapshots\x20unless\x20you\x20cannot\x20understand\x20the\x20page\x20from\x20the\x20`execute`,\x20`verify`,\x20and\x20screenshot\x20outputs.\x0a14.\x20Mark\x20the\x20most\x20important\x20proof\x20screenshot\x20with\x20`key_`,\x20for\x20example\x20`','EpRTU','`\x0a2.\x20Run\x20`','mtimeMs','join','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','nova_act_artifact_recording','reverse','short','frameCount','toLocaleDateString','You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','`\x0a\x0a##\x20Screenshot\x20Guidelines\x0aTake\x20screenshots\x20at\x20scenario\x20milestones\x20so\x20a\x20human\x20can\x20review\x20each\x20completed\x20step\x20and\x20the\x20final\x20state.\x20Use\x20numbered\x20filenames\x20and\x20prefix\x201-2\x20key\x20proof\x20screenshots\x20with\x20`key_`.\x20Avoid\x20duplicate\x20screenshots\x20of\x20the\x20same\x20unchanged\x20page\x20when\x20an\x20existing\x20verifier\x20screenshot\x20or\x20host\x20final\x20screenshot\x20is\x20accessible.\x0a\x0a##\x20Snapshot\x20Guidelines\x0aYou\x20must\x20take\x20the\x20initial\x20snapshot\x20listed\x20above.\x20After\x20that,\x20prefer\x20screenshots\x20plus\x20the\x20page\x20summaries\x20returned\x20by\x20`execute`\x20and\x20`verify`.\x20Only\x20call\x20`snapshot`\x20again\x20if\x20you\x20cannot\x20determine\x20the\x20next\x20action\x20or\x20evaluation\x20from\x20those\x20outputs.\x0a\x0a##\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20initial\x20snapshot\x20and\x20screenshot,\x20check\x20for\x20blocking\x20HTTP\x20errors,\x20framework\x20error\x20pages,\x20blank\x20pages,\x20and\x20authentication\x20failures.\x20If\x20any\x20blocking\x20issue\x20is\x20present,\x20stop\x20and\x20return\x20evaluation\x20\x22blocked\x22\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Failed\x20Assertions\x0aIf\x20`verify`\x20returns\x20`ASSERTION_FAILED`,\x20use\x20its\x20`actual`\x20and\x20`evidence`\x20fields\x20as\x20proof\x20for\x20the\x20final\x20evaluation.\x20Continue\x20only\x20to\x20finish\x20other\x20already-named\x20scenario\x20milestones.\x20Do\x20not\x20retry,\x20ask\x20about,\x20or\x20search\x20around\x20the\x20failed\x20condition.\x0a\x0a##\x20Final\x20Page\x20Stop\x0aWhen\x20the\x20scenario\x20names\x20a\x20final\x20page\x20or\x20final\x20navigation\x20target,\x20that\x20page\x20is\x20the\x20last\x20browser\x20milestone.\x20Once\x20it\x20is\x20loaded\x20and\x20screenshotted,\x20make\x20the\x20final\x20evaluation\x20from\x20the\x20collected\x20evidence.\x20Do\x20not\x20navigate,\x20search,\x20ask,\x20or\x20verify\x20beyond\x20that\x20final\x20page\x20unless\x20the\x20scenario\x20explicitly\x20names\x20another\x20page.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.','tagName','jFoNm','RMSfE','OizeJ','export\x20Nova\x20session','startAttempted','contexts','NJPJb','03_final-state.png','iJWqz','HvLXh','startScreencast','DpkWK','`\x0a3.\x20Run\x20`','capture\x20snapshot\x20`','close','nova_act_session_close','nova_act_final_snapshot','tracingStarted','browser','log','NvKzo','authorName','WGuwM','LYDcd','nova_act_session_report','MgNyF','\x20snapshot\x20--output\x20','nova_act_command_failure','session\x20export','fEHMC','WYmGI','replace','JGSHG','HutLP','-c:v','efvOO','ffmpeg.exe','26925OrBzWi','phase','\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL\x27s\x20origin.\x0a-\x20Do\x20not\x20navigate\x20to\x20any\x20different\x20protocol,\x20host,\x20or\x20port.\x0a-\x20If\x20the\x20browser\x20leaves\x20this\x20origin,\x20navigate\x20back\x20once.\x20If\x20you\x20cannot\x20recover,\x20return\x20evaluation\x20\x22blocked\x22.\x0a','queueTraceSample','nova-act-cli','urjyy','trackPhaseError','BPunV','capture\x20screenshot','tool_name','execute','ffmpeg','xRnBR','VyQLp','hUDJu','startsWith','stdout','akEPe','invocation','OiFuT','591186fchoOa','canonicalFlow','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','length','The\x20command\x20prefix\x20already\x20injects\x20session,\x20auth,\x20region,\x20workflow,\x20user-data,\x20headless,\x20and\x20JSON\x20options.\x0aDo\x20not\x20run\x20raw\x20`act\x20browser`.\x20Do\x20not\x20add\x20`--auth-mode`,\x20`--aws-profile`,\x20`--region`,\x20`--workflow-name`,\x20`--session-id`,\x20`--user-data-dir`,\x20`--headless`,\x20or\x20`--headed`\x20yourself.','key_03_success-state.png','capture\x20snapshot','domRef','trackPhaseStart','\x0a\x0a##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Nova\x20Act\x20CLI\x20only.\x20Do\x20not\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20The\x20act\x20CLI\x20is\x20already\x20installed\x20and\x20available\x20through\x20the\x20browser\x20command\x20prefix\x20below.\x20Do\x20not\x20search\x20the\x20filesystem\x20for\x20Nova,\x20install\x20packages,\x20inspect\x20docs,\x20check\x20AWS/auth\x20status,\x20read\x20env\x20files,\x20run\x20setup,\x20or\x20call\x20raw\x20`act\x20browser`.\x0a3.\x20Your\x20first\x20Bash\x20command\x20must\x20be\x20`','-vf','-framerate','FzdVz','json','nova-user-data/*','sXiuI','`\x0a-\x20`','ffmpeg-mac','`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','01_initial-state.png','ZSRpD','nMoAr','hook_event_name','content','get','dWWqC','jpeg','verify','transportMetadata','oHIZS','context','telemetry','start','captureTraceSample','traceSampleTimer','libvpx-vp9','8ocVPPt','trackPhaseEnd','match','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','catch','session\x20create','screencastStarted','stopped','-hide_banner','flatMap','getFrameDir',']\x20**','wait-for','SFGie','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','4436698mkqIKs','ZFqJn','name','Reviewer','tracing','tool_input','capture\x20step\x20`','yuv420p','isFile','\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a','OyRws','ycPgK','nova_act_command','screenshot','Nova\x20command\x20`','push'];_0x546c=function(){return _0x34b85f;};return _0x546c();}function formatNovaActCliLog(_0xb0b814,_0xcd4718){const _0xabd7c6=_0x2c576b,_0x59d896={'FbJKX':'execute\x20Nova\x20browser\x20action','dxhSo':'verify','lnLPl':_0xabd7c6(0xb0),'GGCMW':_0xabd7c6(0xd2),'gSCVp':_0xabd7c6(0xac),'FzdVz':_0xabd7c6(0x15f),'CObHu':_0xabd7c6(0x134),'ILYvy':function(_0x39abec,_0x1d972f){return _0x39abec(_0x1d972f);},'jneQE':_0xabd7c6(0x111),'HutLP':_0xabd7c6(0xf8)};switch(_0xcd4718){case _0xabd7c6(0x158):return'create\x20Nova\x20browser\x20session';case'execute':return _0x59d896['FbJKX'];case _0x59d896['dxhSo']:return _0x59d896['lnLPl'];case _0x59d896[_0xabd7c6(0xde)]:return'ask\x20page\x20question';case _0xabd7c6(0xcb):return _0x59d896['gSCVp'];case _0x59d896[_0xabd7c6(0x13a)]:return'wait\x20for\x20page\x20condition';case _0xabd7c6(0xb4):{const _0x9b51a3=extractOutputOption(_0xb0b814);if(!_0x9b51a3)return _0x59d896['CObHu'];const {name:_0x45556c}=_0x59d896['ILYvy'](toStepDisplayName,_0x9b51a3);return _0xabd7c6(0x102)+_0x45556c+'`';}case _0xabd7c6(0x9b):{const _0x9a6b06=extractOutputOption(_0xb0b814);if(!_0x9a6b06)return _0xabd7c6(0x122);const {name:_0x48e0fe,isKeyStep:_0x4ce097}=toStepDisplayName(_0x9a6b06);return _0x4ce097?'capture\x20key\x20step\x20`'+_0x48e0fe+'`':_0xabd7c6(0x168)+_0x48e0fe+'`';}case _0x59d896['jneQE']:return _0x59d896[_0xabd7c6(0x116)];default:return _0xcd4718;}}function getNovaActCliCommandBlockReason(_0xc8a5c8){const _0x41aebb=_0x2c576b,_0x13968a={'MpPNr':function(_0x74711d,_0x2ba00a){return _0x74711d===_0x2ba00a;},'OyRws':'Evaluate\x20visited-page\x20aggregate\x20requirements\x20from\x20the\x20collected\x20URLs,\x20titles,\x20headings,\x20verify\x20results,\x20and\x20screenshots.\x20Do\x20not\x20run\x20another\x20browser\x20command\x20to\x20re-check\x20pages\x20already\x20visited.'},_0x2c1d30=parseNovaActCliCommand(_0xc8a5c8);if(!_0x2c1d30)return'Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.';if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x2c1d30))return _0x41aebb(0x9c)+_0x2c1d30+_0x41aebb(0x140);if(_0x13968a['MpPNr'](_0x2c1d30,'verify')&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0xc8a5c8))return _0x13968a[_0x41aebb(0x16c)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x41aebb(0xaf)](_0xc8a5c8))return'Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.';return null;}function buildFeedbackSection(_0x657593){const _0x3acc47=_0x2c576b,_0x21f707={'KEByi':_0x3acc47(0xbb),'ZSRpD':'element'};if(!_0x657593||_0x657593['unaddressedComments'][_0x3acc47(0x131)]===0x0)return'';const _0x274b7a=_0x657593[_0x3acc47(0xbc)][_0x3acc47(0xca)](_0x163c92=>{const _0x580a7f=_0x3acc47,_0x5bcd44=new Date(_0x163c92['createdAt'])[_0x580a7f(0xf1)](_0x21f707[_0x580a7f(0xa1)],{'month':_0x580a7f(0xef),'day':_0x580a7f(0xc5)}),_0x3316e9=_0x163c92[_0x580a7f(0x10a)]||_0x163c92['authorEmail']||_0x580a7f(0x165),_0x594436=_0x163c92['domRef']?_0x580a7f(0xb6)+(_0x163c92[_0x580a7f(0x135)][_0x580a7f(0xa5)][_0x580a7f(0xd5)]('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x21f707[_0x580a7f(0x143)])+'>\x20\x22'+(_0x163c92[_0x580a7f(0x135)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return'-\x20['+_0x163c92['id']+_0x580a7f(0x15e)+_0x3316e9+'**\x20('+_0x5bcd44+'):\x20\x22'+_0x163c92[_0x580a7f(0x146)]+'\x22'+_0x594436;})[_0x3acc47(0xeb)]('\x0a');return _0x3acc47(0x16b)+_0x274b7a;}function buildNovaSharedOptionsInstruction(_0xe60486){const _0xdd2dd1=_0x2c576b;if(!_0xe60486[_0xdd2dd1(0xa3)]())return _0xdd2dd1(0x132);return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0xe60486;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x2fdd05){const _0x5d550c=_0x2c576b,_0x1d8d51={'HvLXh':function(_0x1a65f7,_0x25e6b2,_0x539533){return _0x1a65f7(_0x25e6b2,_0x539533);},'QfsqK':function(_0x3cebce,_0x3b6ba2,_0xcf075){return _0x3cebce(_0x3b6ba2,_0xcf075);},'JGSHG':'02_final-state.yml','akEPe':function(_0x2eb608,_0x37d416){return _0x2eb608(_0x37d416);},'Enjwh':function(_0x3fb6f6,_0x436ccb){return _0x3fb6f6(_0x436ccb);},'DuUBI':function(_0x13969e,_0x794f6b){return _0x13969e(_0x794f6b);}},{novaCommandPrefix:_0x4303a8,novaSharedOptionsSuffix:_0x15c879,cliArtifactDir:_0x3e6734,url:_0x24fd6d}=_0x2fdd05,_0x257a7f=_0x1d8d51[_0x5d550c(0xfe)](buildCliArtifactPath,_0x3e6734,'00_initial-state.yml'),_0x249b82=buildCliArtifactPath(_0x3e6734,_0x5d550c(0x142)),_0x21eb6a=_0x1d8d51['QfsqK'](buildCliArtifactPath,_0x3e6734,_0x1d8d51[_0x5d550c(0x115)]),_0x2420d8=buildCliArtifactPath(_0x3e6734,_0x5d550c(0xfc));return _0x5d550c(0xf2)+_0x4303a8+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x15c879)+_0x5d550c(0xdf)+_0x4303a8+'\x20session\x20create\x20'+quoteShellArg(_0x24fd6d)+'\x20'+_0x15c879+_0x5d550c(0xe9)+_0x4303a8+_0x5d550c(0x10f)+_0x1d8d51[_0x5d550c(0x12b)](quoteShellArg,_0x257a7f)+'\x20'+_0x15c879+_0x5d550c(0x101)+_0x4303a8+_0x5d550c(0x9e)+_0x1d8d51['Enjwh'](quoteShellArg,_0x249b82)+'\x20'+_0x15c879+_0x5d550c(0xab)+_0x4303a8+'\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`'+_0x4303a8+'\x20snapshot\x20--output\x20'+_0x1d8d51[_0x5d550c(0xcc)](quoteShellArg,_0x21eb6a)+'\x20'+_0x15c879+'`\x0a6.\x20Run\x20`'+_0x4303a8+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x2420d8)+'\x20'+_0x15c879+'`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`'+_0x3e6734+_0x5d550c(0x161);}export function buildVerifyFeatureNovaCliPrompt(_0x39d1){const _0xc7ac58=_0x2c576b,_0x65527d={'pPDKI':function(_0x5cd5ad,_0x310704){return _0x5cd5ad(_0x310704);},'rcmzs':function(_0x337058,_0x9fdb97,_0x31faf6){return _0x337058(_0x9fdb97,_0x31faf6);},'qpSAM':'01_initial.yml','SFGie':function(_0x3ce653,_0x4b64ac,_0x36f7c3){return _0x3ce653(_0x4b64ac,_0x36f7c3);},'NlpeD':'01_initial-state.png','LYDcd':function(_0x1d3b73,_0x11e999){return _0x1d3b73(_0x11e999);},'WYmGI':function(_0x2be34c,_0x4617b7){return _0x2be34c(_0x4617b7);}},{checklistItem:_0x1c14ed,itemFeedback:_0x3db9f4,taskDescription:_0x338ff4,novaCommandPrefix:_0x400dd2,novaSharedOptionsSuffix:_0x2fa363,cliArtifactDir:_0x22e607,url:_0x28ec8e,loginInstructions:_0x45be20}=_0x39d1,_0x5098b1=_0x1c14ed[_0xc7ac58(0xc9)]?_0xc7ac58(0xd1)+_0x1c14ed['notes']:'',_0x4f10e3=_0x65527d['pPDKI'](buildFeedbackSection,_0x3db9f4),_0x168aa6=_0x3db9f4?.[_0xc7ac58(0x12f)]?_0xc7ac58(0xd7)+_0x3db9f4['canonicalFlow']:'',_0x4626a1=_0x45be20?_0xc7ac58(0x156)+_0x45be20+_0xc7ac58(0xc0):'',_0x36563f=_0x65527d['rcmzs'](buildCliArtifactPath,_0x22e607,_0x65527d['qpSAM']),_0x50765c=_0x65527d[_0xc7ac58(0x160)](buildCliArtifactPath,_0x22e607,_0x65527d['NlpeD']),_0x4296ff=_0x65527d[_0xc7ac58(0x160)](buildCliArtifactPath,_0x22e607,_0xc7ac58(0x133));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'+_0x1c14ed['description']+_0x5098b1+_0x4f10e3+_0x168aa6+_0xc7ac58(0xec)+_0x338ff4+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x28ec8e+_0xc7ac58(0x11c)+_0x4626a1+_0xc7ac58(0x137)+_0x400dd2+_0xc7ac58(0xc7)+_0x65527d['pPDKI'](quoteShellArg,_0x28ec8e)+'\x20'+_0x2fa363+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x22e607+'`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`'+_0x400dd2+_0xc7ac58(0x10f)+_0x65527d[_0xc7ac58(0x10c)](quoteShellArg,_0x36563f)+'\x20'+_0x2fa363+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x400dd2+'\x20screenshot\x20--output\x20'+_0x65527d[_0xc7ac58(0x113)](quoteShellArg,_0x50765c)+'\x20'+_0x2fa363+_0xc7ac58(0xe7)+_0x4296ff+'`.\x0a15.\x20As\x20soon\x20as\x20all\x20scenario\x20requirements\x20are\x20satisfied,\x20return\x20structured\x20output\x20immediately.\x20Do\x20not\x20keep\x20exploring,\x20asking,\x20or\x20taking\x20extra\x20screenshots.\x0a16.\x20Treat\x20a\x20Nova\x20`verify`\x20result\x20with\x20`ASSERTION_FAILED`\x20as\x20useful\x20evidence,\x20not\x20as\x20a\x20tool\x20crash.\x20Do\x20not\x20retry\x20the\x20same\x20assertion\x20or\x20search\x20for\x20alternatives\x20unless\x20the\x20scenario\x20explicitly\x20asks\x20you\x20to\x20find\x20any\x20matching\x20page.\x0a17.\x20Stay\x20within\x20the\x20pages\x20and\x20flow\x20named\x20by\x20the\x20scenario.\x20If\x20a\x20required\x20condition\x20is\x20absent\x20after\x20checking\x20the\x20relevant\x20named\x20page\x20once,\x20stop\x20and\x20return\x20\x22partial\x22\x20or\x20\x22failed\x22\x20with\x20the\x20missing\x20requirement.\x20Do\x20not\x20expand\x20into\x20unrelated\x20pages\x20or\x20broad\x20site\x20searches.\x0a18.\x20After\x20you\x20reach\x20and\x20screenshot\x20the\x20final\x20named\x20scenario\x20page,\x20do\x20not\x20execute\x20more\x20browser\x20commands.\x20Evaluate\x20any\x20\x22at\x20least\x20one\x20visited\x20page\x22\x20requirement\x20from\x20the\x20pages\x20already\x20visited\x20and\x20the\x20evidence\x20already\x20collected.\x0a19.\x20Do\x20not\x20run\x20`session\x20close`,\x20`session\x20list`,\x20`session\x20export`,\x20`script`,\x20`doctor`,\x20`--help`,\x20`aws`,\x20`find`,\x20`grep`,\x20`env`,\x20`printenv`,\x20package\x20managers,\x20or\x20setup\x20commands.\x20The\x20host\x20owns\x20setup,\x20auth,\x20session\x20cleanup,\x20and\x20artifact\x20export.\x0a20.\x20The\x20host\x20also\x20captures\x20final\x20screenshots,\x20snapshots,\x20and\x20exports\x20after\x20you\x20finish,\x20but\x20every\x20scenario\x20milestone\x20still\x20needs\x20an\x20accessible\x20screenshot.\x20If\x20the\x20last\x20milestone\x20is\x20the\x20final\x20browser\x20state\x20and\x20you\x20have\x20already\x20captured\x20it,\x20you\x20do\x20not\x20need\x20a\x20duplicate\x20final\x20screenshot.\x0a21.\x20Do\x20not\x20close\x20the\x20Nova\x20session.\x20The\x20host\x20exports\x20artifacts\x20after\x20you\x20finish.\x0a22.\x20The\x20structured\x20output\x20is\x20your\x20final\x20response.\x20After\x20returning\x20it,\x20do\x20not\x20write\x20a\x20separate\x20markdown\x20summary\x20or\x20repeat\x20the\x20findings.\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Nova\x20Act\x20CLI\x20commands\x20with\x20this\x20prefix:\x0a`'+_0x400dd2+_0xc7ac58(0x141)+(_0x2fa363[_0xc7ac58(0xa3)]()?'`'+_0x2fa363+'`':_0xc7ac58(0xda))+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x2fa363)+'\x0a\x0aExamples:\x0a-\x20`'+_0x400dd2+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x2fa363+'`\x0a-\x20`'+_0x400dd2+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x2fa363+_0xc7ac58(0x13e)+_0x400dd2+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x36563f)+'\x20'+_0x2fa363+_0xc7ac58(0x13e)+_0x400dd2+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x4296ff)+'\x20'+_0x2fa363+_0xc7ac58(0xf3);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x55b807){const _0x53089d=_0x2c576b,_0xdeb875={'ycPgK':function(_0x450f71,_0x212f50){return _0x450f71===_0x212f50;}},_0x4ef55f=[..._0x55b807['keys']()]['sort']();let _0x1a5a9b=0x0;for(const _0x355920 of _0x55b807['values']()){_0x1a5a9b+=_0x355920;}return{'cliCommandCount':_0x1a5a9b,'cliCommandsSeen':_0x4ef55f,'noCliCommandsCalled':_0xdeb875[_0x53089d(0x16d)](_0x1a5a9b,0x0)};}export function createVerifyFeatureNovaCliHooks(_0x4009a3,_0x2c1d62){const _0x503a7c=_0x2c576b,_0x4431d3={'OizeJ':'PreToolUse','gLjlC':function(_0x338ae7,_0x57a84b){return _0x338ae7!==_0x57a84b;},'urjyy':_0x503a7c(0xb1),'ZFqJn':function(_0xbd0656,_0x36b736){return _0xbd0656!==_0x36b736;},'MgNyF':function(_0xbc4058,_0x1ff230){return _0xbc4058(_0x1ff230);},'Ebzew':function(_0x441640,_0x27b245){return _0x441640(_0x27b245);},'lLeDy':function(_0x56eed0,_0x2c0085,_0x49e53d){return _0x56eed0(_0x2c0085,_0x49e53d);},'IKgpq':_0x503a7c(0x11e),'efvOO':_0x503a7c(0x110)},_0x1c223e=new Map(),_0x2d89e4=async _0x3838ed=>{const _0x5a1c96=_0x503a7c;if(_0x3838ed['hook_event_name']!==_0x4431d3[_0x5a1c96(0xf7)])return{};const _0x4f954a=_0x3838ed;if(_0x4431d3['gLjlC'](_0x4f954a['tool_name'],_0x4431d3[_0x5a1c96(0x11f)]))return{};const _0x5f0dbb=_0x4f954a[_0x5a1c96(0x167)],_0x3585b5=extractBashCommand(_0x5f0dbb);if(!_0x3585b5)return{};const _0x30631c=getNovaActCliCommandBlockReason(_0x3585b5);if(!_0x30631c)return{};return{'decision':'block','reason':_0x30631c};},_0x223630=async _0x22012d=>{const _0x566553=_0x503a7c;if(_0x4431d3['ZFqJn'](_0x22012d[_0x566553(0x145)],'PostToolUse'))return{};const _0x21e276=_0x22012d;if(_0x4431d3[_0x566553(0xad)](_0x21e276[_0x566553(0x123)],_0x566553(0xb1)))return{};const _0x319dfb=_0x21e276[_0x566553(0x167)],_0x59a2a5=_0x4431d3[_0x566553(0x10e)](extractBashCommand,_0x319dfb);if(!_0x59a2a5)return{};const _0x1568f6=parseNovaActCliCommand(_0x59a2a5);if(!_0x1568f6)return{};_0x1c223e['set'](_0x1568f6,(_0x1c223e[_0x566553(0x147)](_0x1568f6)||0x0)+0x1),_0x4009a3[_0x566553(0x136)](_0x566553(0x9a),{'subcommand':_0x1568f6}),_0x4009a3['trackPhaseEnd']('nova_act_command',{'subcommand':_0x1568f6,'commandPreview':_0x4431d3['Ebzew'](previewNovaActCliCommand,_0x59a2a5)}),console[_0x566553(0x108)]('[nova-act-cli]\x20'+_0x4431d3['lLeDy'](formatNovaActCliLog,_0x59a2a5,_0x1568f6));if(_0x1568f6==='session\x20create'&&_0x2c1d62)try{await _0x2c1d62['start']();}catch(_0x361ed6){await _0x4009a3[_0x566553(0x120)](_0x566553(0xed),_0x361ed6,{'transport':_0x4431d3['IKgpq']});}return{};},_0x317d5d=async _0x5930e0=>{const _0x1e705a=_0x503a7c;if(_0x5930e0[_0x1e705a(0x145)]!=='PostToolUseFailure')return{};const _0x17e3a0=_0x5930e0;if(_0x4431d3[_0x1e705a(0x163)](_0x17e3a0['tool_name'],'Bash'))return{};return await _0x4009a3['trackPhaseError'](_0x4431d3[_0x1e705a(0x118)],_0x17e3a0[_0x1e705a(0xd6)],{'transport':'nova-act-cli','toolName':_0x4431d3[_0x1e705a(0x11f)]}),{};};return{'preToolUseHook':_0x2d89e4,'postToolUseHook':_0x223630,'postToolUseFailureHook':_0x317d5d,'commandCounts':_0x1c223e};}async function runNovaLifecycleCommand(_0x5a1104){const _0x326ff4=_0x2c576b,_0x5104ef={'uPeCB':function(_0x27b860,_0x4bece5){return _0x27b860(_0x4bece5);}},{novaOptions:_0x5406dd,commandArgs:_0x3bd4d0,telemetry:_0x319398,phase:_0x4de0e4,metadata:_0x2cef3c,timeoutMs:_0x124d6f}=_0x5a1104;_0x319398['trackPhaseStart'](_0x4de0e4,_0x2cef3c);try{const _0x2736cf=await runNovaActCliCommand({..._0x5406dd,'commandArgs':_0x3bd4d0,'cwd':process[_0x326ff4(0xe2)](),'env':process['env'],'timeoutMs':_0x124d6f??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x319398['trackPhaseEnd'](_0x4de0e4,{..._0x2cef3c,'subcommand':_0x2736cf[_0x326ff4(0x12c)][_0x326ff4(0xc4)],'commandPreview':previewNovaActCliCommand(_0x2736cf['invocation'][_0x326ff4(0xa8)]),'stdoutPreview':previewNovaActCliCommand(_0x2736cf[_0x326ff4(0x12a)]),'stderrPreview':_0x5104ef['uPeCB'](previewNovaActCliCommand,_0x2736cf['stderr']),'logDir':_0x5104ef['uPeCB'](extractNovaActLogDir,_0x2736cf[_0x326ff4(0x12a)])});}catch(_0x38bf28){await _0x319398['trackPhaseError'](_0x4de0e4,_0x38bf28,_0x2cef3c);throw _0x38bf28;}}export async function finalizeVerifyFeatureNovaCliSession(_0x51f830){const _0x20fbb1=_0x2c576b,_0x48ae4c={'lxykd':'--output','HIfVf':function(_0x23ba15,_0x1497cc,_0xfbf0f5){return _0x23ba15(_0x1497cc,_0xfbf0f5);},'NvKzo':_0x20fbb1(0x105),'nMoAr':'snapshot','ZzWvs':function(_0x499403,_0x432927,_0x12bff8){return _0x499403(_0x432927,_0x12bff8);},'NJPJb':'session','ySiiC':_0x20fbb1(0xc2),'TkYHa':_0x20fbb1(0xd9),'rhkWH':_0x20fbb1(0x13b),'aDbOK':_0x20fbb1(0x10d),'vuXPe':_0x20fbb1(0xb8),'KQelF':'close','BPunV':function(_0x119faa,_0x4bfd01){return _0x119faa(_0x4bfd01);}},{telemetry:_0x2891fe,novaOptions:_0x97450e,cliArtifactDir:_0xceaadd,transportMetadata:_0x257e76,artifactRecorder:_0x50cfeb}=_0x51f830,_0x2e4f81=[{'phase':_0x20fbb1(0xb3),'commandArgs':[_0x20fbb1(0x9b),_0x48ae4c[_0x20fbb1(0xc8)],_0x48ae4c[_0x20fbb1(0xa4)](buildCliArtifactPath,_0xceaadd,'key_final-state.png')]},{'phase':_0x48ae4c[_0x20fbb1(0x109)],'commandArgs':[_0x48ae4c[_0x20fbb1(0x144)],_0x48ae4c[_0x20fbb1(0xc8)],_0x48ae4c['ZzWvs'](buildCliArtifactPath,_0xceaadd,_0x20fbb1(0xbe))]},{'phase':'nova_act_session_export','commandArgs':[_0x48ae4c[_0x20fbb1(0xfb)],_0x48ae4c['ySiiC'],_0x48ae4c[_0x20fbb1(0xce)],_0x48ae4c['rhkWH'],_0x48ae4c['lxykd'],buildCliArtifactPath(_0xceaadd,'nova-session-export.json')]},{'phase':_0x48ae4c['aDbOK'],'commandArgs':['session',_0x20fbb1(0xc2),'--report','--output-dir',buildCliArtifactPath(_0xceaadd,_0x48ae4c['vuXPe'])]},{'phase':'nova_act_session_close','commandArgs':['session',_0x48ae4c['KQelF']]}];for(const _0x5e91f5 of _0x2e4f81){_0x5e91f5[_0x20fbb1(0x11b)]===_0x20fbb1(0x104)&&await _0x50cfeb?.['stop']();try{await _0x48ae4c[_0x20fbb1(0x121)](runNovaLifecycleCommand,{'novaOptions':_0x97450e,'commandArgs':[..._0x5e91f5['commandArgs']],'telemetry':_0x2891fe,'phase':_0x5e91f5[_0x20fbb1(0x11b)],'metadata':_0x257e76});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x239ddf){const _0x4c9a7b=_0x2c576b,_0x4d2fa2={'VyQLp':function(_0x4f9e94,_0x4c5767,_0x525db8){return _0x4f9e94(_0x4c5767,_0x525db8);},'bKdOA':function(_0x2a9061,_0x52a679){return _0x2a9061(_0x52a679);},'WGuwM':function(_0x3ed2dc,_0x5bfdde){return _0x3ed2dc<_0x5bfdde;},'UvgzP':function(_0x392385,_0xaab315,_0x481fac){return _0x392385(_0xaab315,_0x481fac);}},{cwd:_0x1eb69b,cliArtifactDir:_0x307974,startTime:_0xa54ea4}=_0x239ddf,_0x3bf2d5=[];await _0x4d2fa2['VyQLp'](mkdir,_0x307974,{'recursive':!![]});const _0x32de66=await _0x4d2fa2['VyQLp'](readdir,_0x1eb69b,{'withFileTypes':!![]});for(const _0x1295b2 of _0x32de66){if(!_0x1295b2[_0x4c9a7b(0x16a)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0x1295b2['name']))continue;const _0x3c05e6=_0x4d2fa2[_0x4c9a7b(0x127)](join,_0x1eb69b,_0x1295b2['name']),_0xdaa51b=await _0x4d2fa2['bKdOA'](stat,_0x3c05e6);if(_0x4d2fa2[_0x4c9a7b(0x10b)](_0xdaa51b[_0x4c9a7b(0xea)]+0x7d0,_0xa54ea4))continue;const _0x31259a=buildCliArtifactPath(_0x307974,_0x1295b2['name']);if(_0x3c05e6===_0x31259a)continue;await _0x4d2fa2['UvgzP'](rename,_0x3c05e6,_0x31259a),_0x3bf2d5[_0x4c9a7b(0x9d)](_0x1295b2[_0x4c9a7b(0x164)]);}return _0x3bf2d5['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0xba1f30){const _0x65caa2=_0x2c576b,_0x439eaf={'VoiQK':function(_0x76cd64,_0x55d353,_0x30775d){return _0x76cd64(_0x55d353,_0x30775d);},'RMSfE':function(_0x43a118,_0x18ef1e){return _0x43a118(_0x18ef1e);}},_0x2d4666=_0x439eaf['VoiQK'](join,_0xba1f30,'trace.zip');try{return{'buffer':await _0x439eaf[_0x65caa2(0xf6)](readFile,_0x2d4666),'source':_0x2d4666};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0xba1f30),'source':_0xba1f30};}}async function zipVerifyFeatureNovaArtifacts(_0x339d56){const _0x4282dc=_0x2c576b,_0x100795={'cBuok':function(_0x2eebd8,_0x20329c,_0x3c3c40,_0x213aac){return _0x2eebd8(_0x20329c,_0x3c3c40,_0x213aac);},'HxDoR':'zip','tHPDB':_0x4282dc(0x13c),'gmUdS':function(_0xe3afd8,_0x18c03b){return _0xe3afd8(_0x18c03b);},'vHqKz':function(_0x5f5d63,_0x4e0890,_0x12849e){return _0x5f5d63(_0x4e0890,_0x12849e);}},_0xdab666=_0x100795['cBuok'](join,_0x339d56,'..','nova-artifacts.zip');try{return await _0x100795[_0x4282dc(0xa9)](execFileAsync,_0x100795['HxDoR'],[_0x4282dc(0xaa),_0xdab666,'.','-x',_0x100795['tHPDB']],{'cwd':_0x339d56}),await _0x100795['gmUdS'](readFile,_0xdab666);}finally{await _0x100795['vHqKz'](rm,_0xdab666,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x158aa8){const _0x5dc3d6=_0x2c576b,_0x42a873=buildNovaActCliInvocation(_0x158aa8['novaOptions'],_0x158aa8['commandArgs']);return{'command':_0x42a873['command'],'args':_0x42a873['args'],'commandPreview':previewNovaActCliCommand(_0x42a873['shellCommand']),'subcommand':_0x42a873[_0x5dc3d6(0xc4)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x158aa8['novaOptions'],_0x158aa8['commandArgs'])};}
@@ -1 +1 @@
1
- function _0x4858(_0x4cadc6,_0x5a41dd){_0x4cadc6=_0x4cadc6-0x11b;const _0x59215e=_0x5921();let _0x48585e=_0x59215e[_0x4cadc6];return _0x48585e;}(function(_0x30f498,_0x11c7a3){const _0xa2cbcd=_0x4858,_0x46252a=_0x30f498();while(!![]){try{const _0x4773c2=parseInt(_0xa2cbcd(0x16c))/0x1+-parseInt(_0xa2cbcd(0x11f))/0x2+parseInt(_0xa2cbcd(0x161))/0x3*(-parseInt(_0xa2cbcd(0x163))/0x4)+parseInt(_0xa2cbcd(0x143))/0x5+parseInt(_0xa2cbcd(0x121))/0x6*(-parseInt(_0xa2cbcd(0x126))/0x7)+-parseInt(_0xa2cbcd(0x173))/0x8+parseInt(_0xa2cbcd(0x130))/0x9;if(_0x4773c2===_0x11c7a3)break;else _0x46252a['push'](_0x46252a['shift']());}catch(_0x1abaa5){_0x46252a['push'](_0x46252a['shift']());}}}(_0x5921,0xc8b1d));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x285399,_0x5ab70b=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0xfd4de0=_0x4858,_0x502618={'njtSM':function(_0x4b2bcd,_0x250fe8){return _0x4b2bcd>_0x250fe8;}};return _0x502618['njtSM'](_0x285399[_0xfd4de0(0x159)],_0x5ab70b)?_0x285399[_0xfd4de0(0x158)](0x0,_0x5ab70b)+'...':_0x285399;}function extractShellValue(_0x33117f){if(!_0x33117f)return null;return _0x33117f[0x1]??_0x33117f[0x2]??_0x33117f[0x3]??null;}function extractFirstCommandArgument(_0x29442f,_0x3840c2){const _0x55e7b1=_0x4858,_0x52afd0={'tLQxE':function(_0x133c74,_0x2e7a3d){return _0x133c74(_0x2e7a3d);}},_0x2037f4=_0x3840c2['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return _0x52afd0[_0x55e7b1(0x15e)](extractShellValue,_0x29442f[_0x55e7b1(0x12b)](new RegExp(_0x55e7b1(0x12e)+_0x2037f4+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x53cb65){const _0x46828d=_0x4858;if(!_0x53cb65)return'target';if(/^e\d+$/i['test'](_0x53cb65))return'ref\x20'+_0x53cb65;return JSON[_0x46828d(0x15d)](truncatePreview(_0x53cb65,0x78));}function _0x5921(){const _0x4b6238=['ZxADx','video-stop','stringify','tLQxE','\x20open-and-inspect\x20','stdout','77352WrHXib','en-US','236TZGEzt','unaddressedComments','key_99_final-state.png','BjEDm','content','\x0a\x0aPrefer\x20open-and-inspect\x20and\x20click-and-inspect\x20when\x20you\x20need\x20a\x20fresh\x20snapshot\x20plus\x20evidence.\x0a\x0aUse\x20back-and-inspect\x20to\x20return\x20to\x20the\x20previous\x20page\x20after\x20checking\x20a\x20detail\x20page.\x20Refresh\x20refs\x20after\x20going\x20back.\x0a\x0aEach\x20command\x20returns\x20JSON\x20with\x20success,\x20data,\x20and\x20error\x20fields.\x0a\x0aUse\x20data.title,\x20data.headings,\x20data.pageText,\x20and\x20data.snapshotText\x20together.\x20snapshotText\x20is\x20best\x20for\x20refs\x20and\x20controls;\x20pageText\x20is\x20valid\x20visible\x20evidence\x20for\x20page\x20content.\x0a\x0aDo\x20not\x20verify\x20from\x20a\x20broad\x20landing,\x20index,\x20category,\x20search,\x20or\x20navigation\x20page\x20when\x20the\x20task\x20asks\x20for\x20a\x20specific\x20page,\x20topic,\x20item,\x20or\x20action.\x20Click\x20and\x20inspect\x20the\x20most\x20specific\x20visible\x20target\x20first;\x20if\x20no\x20specific\x20target\x20exists,\x20report\x20the\x20missing\x20target.\x0a\x0aSave\x20screenshots\x20by\x20using\x20--screenshot-path\x20on\x20inspect\x20commands.\x20Relative\x20screenshot\x20paths\x20are\x20saved\x20under\x20the\x20run\x20artifact\x20directory.\x20Do\x20not\x20call\x20screenshot\x20--path.\x0a\x0aExample:\x0a\x0a','tool_name','fill-and-inspect','open\x20and\x20inspect\x20','1257449IzdauS','click\x20and\x20inspect\x20','map','notes','numeric','UPnqT','error','7438352YvJuIw','pKhWN','trackPhaseEnd','AYtfe','JPWIb','2011010JtmGxr','tool_input','6mLVErN','FGmIr','xTIUO','\x20--screenshot-path\x20','zgnIS','5635329VilMmb','inspect','ZATNj','cwd','commandPrefix','match','\x20>\x20','\x20(on\x20element:\x20<','(?:^|\x5cs)','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x20Every\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','25843311rPaCxr','element','kwSUF','uXqWq','Bash','vkXww','\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a','get','split','tracing-stop','\x0a\x0a##\x20Additional\x20Notes\x0a','TuCCv','01_initial-state.png','toLocaleDateString','textContent','haymg','fill','XpAwR','stderr','4773595tXvtHt','PostToolUseFailure','keys','GZEqI','trackPhaseError','KLogl','stop\x20tracing','BeqTn','key_02_learn-more.png','rangerwright_cli_tracing_stop','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','\x0a\x0aRefs\x20like\x20e37\x20are\x20only\x20valid\x20for\x20the\x20snapshot\x20that\x20produced\x20them.\x20Refresh\x20refs\x20after\x20navigation.\x0a\x0aUse\x20short\x20concrete\x20checkpoints\x20internally:\x20what\x20target\x20is\x20visible,\x20what\x20command\x20changes\x20state,\x20and\x20what\x20evidence\x20is\x20still\x20missing.\x20Issue\x20one\x20browser\x20command\x20at\x20a\x20time.\x20After\x20navigation,\x20validation,\x20or\x20a\x20changed\x20page,\x20inspect\x20before\x20deciding\x20the\x20next\x20action.\x0a\x0aBefore\x20reporting\x20success,\x20compare\x20each\x20required\x20CTA,\x20page\x20purpose,\x20and\x20topic\x20against\x20visible\x20page\x20evidence.\x20A\x20related\x20page\x20does\x20not\x20satisfy\x20a\x20different\x20required\x20topic\x20unless\x20the\x20page\x20text\x20directly\x20supports\x20that\x20topic\x20or\x20an\x20obvious\x20synonym.\x20If\x20required\x20evidence\x20is\x20missing,\x20mismatched,\x20or\x20only\x20inferred\x20from\x20adjacent\x20content,\x20report\x20that\x20plainly\x20and\x20do\x20not\x20mark\x20the\x20task\x20verified.\x0a\x0aFor\x20goals\x20with\x20more\x20than\x20one\x20required\x20condition,\x20use\x20an\x20internal\x20checklist\x20built\x20from\x20the\x20user\x27s\x20exact\x20requested\x20conditions.\x20Verify\x20each\x20checklist\x20item\x20against\x20visible\x20evidence\x20from\x20the\x20latest\x20browser\x20result.\x20If\x20any\x20item\x20lacks\x20direct\x20evidence,\x20report\x20the\x20task\x20as\x20not\x20verified\x20and\x20name\x20the\x20missing\x20item.\x0a\x0aOn\x20forms,\x20fill\x20only\x20visible\x20task-relevant\x20editable\x20fields\x20in\x20the\x20current\x20step\x20before\x20submitting\x20or\x20advancing.\x20Use\x20labels,\x20placeholders,\x20and\x20current\x20page\x20text\x20to\x20decide\x20which\x20fields\x20are\x20required.\x20Do\x20not\x20fill\x20fields\x20that\x20are\x20not\x20visible\x20in\x20the\x20latest\x20snapshot.\x0a\x0aUse\x20one\x20fill\x20command\x20per\x20field.\x20Do\x20not\x20combine\x20multiple\x20fields\x20into\x20one\x20fill\x20command\x20with\x20semicolons.\x0a\x0aIf\x20an\x20inspect-action\x20click\x20returns\x20the\x20same\x20page\x20or\x20shows\x20validation,\x20inspect\x20the\x20current\x20page\x20and\x20fill\x20blank\x20required\x20fields\x20before\x20retrying.\x20Do\x20not\x20repeat\x20the\x20same\x20blocked\x20click\x20unchanged.\x0a\x0aIf\x20a\x20click-and-inspect\x20result\x20keeps\x20the\x20same\x20URL\x20and\x20does\x20not\x20show\x20the\x20intended\x20target,\x20treat\x20it\x20as\x20a\x20no-op.\x20Refresh\x20refs\x20and\x20choose\x20a\x20different\x20visible\x20link,\x20or\x20use\x20back-and-inspect\x20if\x20you\x20need\x20the\x20prior\x20page.\x0a\x0aA\x20page\x20with\x20visible\x20required\x20fields\x20and\x20a\x20next,\x20submit,\x20continue,\x20or\x20confirm\x20control\x20is\x20still\x20actionable.\x20Fill\x20the\x20required\x20fields\x20with\x20values\x20from\x20the\x20task\x20before\x20reporting\x20incomplete\x20or\x20blocked.\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20first\x20inspect\x20result,\x20check\x20for\x20blocking\x20errors:\x0a-\x20HTTP\x20404,\x20500,\x20400,\x20\x22Not\x20Found\x22,\x20\x22Server\x20Error\x22,\x20or\x20\x22Bad\x20Request\x22\x0a-\x20Framework\x20error\x20pages\x0a-\x20Blank\x20pages\x20with\x20no\x20content\x0a-\x20App\x20crash\x20or\x20error\x20dialogs\x0a\x0aIf\x20any\x20blocking\x20error\x20is\x20visible,\x20return\x20evaluation\x20\x22blocked\x22\x20immediately\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.','phase','rangerwright_cli_command','close','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','rangerwright_cli_close','domRef','trackPhaseStart','selector','01_mozilla-homepage.png','slice','length','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.'];_0x5921=function(){return _0x4b6238;};return _0x5921();}function formatRangerwrightCliLog(_0x49ffc2,_0x3f83c8){const _0x54983f=_0x4858,_0x325712={'uXqWq':'click-and-inspect','GzFpm':function(_0x50aaa9,_0x45a929){return _0x50aaa9(_0x45a929);},'XpAwR':function(_0x1e38fe,_0x4a99c7,_0x4737a4){return _0x1e38fe(_0x4a99c7,_0x4737a4);},'UPnqT':_0x54983f(0x140),'QhjRT':_0x54983f(0x16a),'ZATNj':function(_0x5dc2b6,_0x155eeb){return _0x5dc2b6(_0x155eeb);},'AYtfe':'back-and-inspect','YyExa':'go\x20back\x20and\x20inspect','vkXww':_0x54983f(0x127),'FseHS':'inspect\x20page','ZxADx':'tracing-stop','RNVST':_0x54983f(0x149),'WlXMv':'stop\x20video\x20recording','OXfRi':'close\x20browser\x20session'};switch(_0x3f83c8){case'open-and-inspect':{const _0x270321=extractFirstCommandArgument(_0x49ffc2,_0x3f83c8);return _0x270321?_0x54983f(0x16b)+_0x270321:'open\x20and\x20inspect';}case _0x325712[_0x54983f(0x133)]:return _0x54983f(0x16d)+_0x325712['GzFpm'](formatCommandTarget,_0x325712[_0x54983f(0x141)](extractFirstCommandArgument,_0x49ffc2,_0x3f83c8));case _0x325712[_0x54983f(0x171)]:case _0x325712['QhjRT']:return'fill\x20'+_0x325712[_0x54983f(0x128)](formatCommandTarget,extractFirstCommandArgument(_0x49ffc2,_0x3f83c8));case _0x325712[_0x54983f(0x11d)]:return _0x325712['YyExa'];case _0x325712[_0x54983f(0x135)]:return _0x325712['FseHS'];case _0x325712[_0x54983f(0x15b)]:return _0x325712['RNVST'];case _0x54983f(0x15c):return _0x325712['WlXMv'];case'close':return _0x325712['OXfRi'];default:return _0x3f83c8;}}function renderScenarioSections(_0x3ecf2c){const _0x5010bf=_0x4858,_0x320db2={'cISDy':_0x5010bf(0x170),'BeqTn':_0x5010bf(0x12c),'pKhWN':function(_0x3582aa,_0xd80b99){return _0x3582aa>_0xd80b99;}},{checklistItem:_0x107474,itemFeedback:_0x2952a7}=_0x3ecf2c,_0x205c27=_0x107474['notes']?_0x5010bf(0x13a)+_0x107474[_0x5010bf(0x16f)]:'';let _0x55868c='';if(_0x2952a7&&_0x320db2[_0x5010bf(0x11b)](_0x2952a7[_0x5010bf(0x164)][_0x5010bf(0x159)],0x0)){const _0x587c90=_0x2952a7['unaddressedComments'][_0x5010bf(0x16e)](_0x124a33=>{const _0x3cc9ca=_0x5010bf,_0x5c4e66=new Date(_0x124a33['createdAt'])[_0x3cc9ca(0x13d)](_0x3cc9ca(0x162),{'month':'short','day':_0x320db2['cISDy']}),_0x5975f6=_0x124a33['authorName']||_0x124a33['authorEmail']||'Reviewer',_0x240658=_0x124a33['domRef']?_0x3cc9ca(0x12d)+(_0x124a33['domRef'][_0x3cc9ca(0x156)][_0x3cc9ca(0x138)](_0x320db2[_0x3cc9ca(0x14a)])['pop']()?.[_0x3cc9ca(0x138)](':')[0x0]||_0x3cc9ca(0x131))+'>\x20\x22'+(_0x124a33[_0x3cc9ca(0x154)][_0x3cc9ca(0x13e)]||'')[_0x3cc9ca(0x158)](0x0,0x32)+'\x22)':'';return'-\x20['+_0x124a33['id']+']\x20'+_0x5975f6+'\x20('+_0x5c4e66+'):\x20\x22'+_0x124a33[_0x3cc9ca(0x167)]+'\x22'+_0x240658;})['join']('\x0a');_0x55868c=_0x5010bf(0x136)+_0x587c90;}const _0x2d667f=_0x2952a7?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x2952a7['canonicalFlow']:'';return''+_0x107474['description']+_0x205c27+_0x55868c+_0x2d667f;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x2fb4f4){const _0x49cc03=_0x4858,_0x342f3e={'kwSUF':_0x49cc03(0x13c),'JCkgI':_0x49cc03(0x165),'zITeF':function(_0x495f65,_0x447381){return _0x495f65(_0x447381);},'Pigxb':function(_0x4cb3bc,_0x1254d6){return _0x4cb3bc(_0x1254d6);}},{checklistItem:_0x17c388,itemFeedback:_0x497ae1,taskDescription:_0x1c24fe,commandPrefix:_0x31cb03,isCdpMode:_0x38400,url:_0x37027a,cdpEndpoint:_0x2a2bc4,loginInstructions:_0x52e230}=_0x2fb4f4,_0xe937af=_0x342f3e[_0x49cc03(0x132)],_0x1af8f9=_0x342f3e['JCkgI'],_0x50c30d=_0x38400?_0x31cb03+'\x20inspect\x20--screenshot-path\x20'+quoteShellArg(_0xe937af):_0x31cb03+'\x20open-and-inspect\x20'+quoteShellArg(_0x37027a??'about:blank')+'\x20--screenshot-path\x20'+_0x342f3e['zITeF'](quoteShellArg,_0xe937af),_0x44c77d=_0x38400?_0x49cc03(0x14d)+_0x2a2bc4+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':_0x49cc03(0x152)+_0x37027a+'\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port.\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists,\x20navigate\x20to\x20it\x20only\x20under\x20this\x20base\x20URL.',_0x556a2b=_0x52e230?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x52e230+_0x49cc03(0x15a):'';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'+_0x342f3e['Pigxb'](renderScenarioSections,{'checklistItem':_0x17c388,'itemFeedback':_0x497ae1})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x1c24fe+'\x0a\x0a'+_0x44c77d+_0x556a2b+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x31cb03+'\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x20Browser\x20Trek\x20only\x20counts\x20literal\x20Rangerwright\x20command\x20invocations.\x0a\x0aTreat\x20the\x20command\x20prefix\x20as\x20immutable.\x20Copy\x20it\x20exactly,\x20then\x20append\x20one\x20supported\x20Rangerwright\x20subcommand\x20and\x20its\x20arguments.\x20If\x20a\x20browser\x20command\x20fails\x20because\x20the\x20binary\x20path\x20is\x20missing\x20or\x20the\x20command\x20syntax\x20is\x20malformed,\x20retry\x20once\x20with\x20the\x20exact\x20prefix\x20from\x20this\x20prompt\x20before\x20deciding\x20the\x20task\x20is\x20blocked.\x0a\x0aFirst\x20command:\x0a\x0a'+_0x50c30d+_0x49cc03(0x168)+_0x31cb03+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0x1af8f9)+_0x49cc03(0x14e);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0xe54cdb){const _0x41a30b=_0x4858,_0x126787={'BjEDm':_0x41a30b(0x157)},_0x16f909=_0x126787[_0x41a30b(0x166)],_0x19abef=_0x41a30b(0x14b);return _0x41a30b(0x12f)+_0xe54cdb[_0x41a30b(0x12a)]+'\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x0a\x0a1.\x20Run\x20`'+_0xe54cdb['commandPrefix']+_0x41a30b(0x15f)+quoteShellArg(_0xe54cdb['url'])+_0x41a30b(0x124)+quoteShellArg(_0x16f909)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0xe54cdb[_0x41a30b(0x12a)]+'\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20'+quoteShellArg(_0x19abef)+'`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x333bb2){const _0x1f3649=_0x4858,_0x5bd500={'zgnIS':function(_0x2297a8,_0x7eac8d){return _0x2297a8===_0x7eac8d;}},_0x59471a=[..._0x333bb2[_0x1f3649(0x145)]()]['sort']();let _0x596971=0x0;for(const _0x3d7fab of _0x333bb2['values']()){_0x596971+=_0x3d7fab;}return{'cliCommandCount':_0x596971,'cliCommandsSeen':_0x59471a,'noCliCommandsCalled':_0x5bd500[_0x1f3649(0x125)](_0x596971,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x40f204){const _0x52aa11=_0x4858,_0x4777ad={'DozwH':'PostToolUse','KLogl':function(_0x191112,_0x5e656d){return _0x191112!==_0x5e656d;},'GZEqI':_0x52aa11(0x134),'ZhplY':function(_0x24e1e0,_0x4a6d3b){return _0x24e1e0(_0x4a6d3b);},'kCkod':function(_0x33d274,_0x433550){return _0x33d274+_0x433550;},'haymg':function(_0x21c894,_0x388867){return _0x21c894(_0x388867);},'hOIjc':function(_0x2f275d,_0xb525a7,_0x102b15){return _0x2f275d(_0xb525a7,_0x102b15);},'hTsDE':function(_0x3a3411,_0x2d20e8){return _0x3a3411!==_0x2d20e8;},'TuCCv':function(_0x4e16f2,_0x30f7d8){return _0x4e16f2!==_0x30f7d8;},'toPPI':'rangerwright-cli'},_0x49f05c=new Map(),_0x488a94=async _0x5387e9=>{const _0x5b48f5=_0x52aa11;if(_0x5387e9['hook_event_name']!==_0x4777ad['DozwH'])return{};const _0x1254c2=_0x5387e9;if(_0x4777ad[_0x5b48f5(0x148)](_0x1254c2['tool_name'],_0x4777ad[_0x5b48f5(0x146)]))return{};const _0x2af8a2=_0x1254c2[_0x5b48f5(0x120)],_0x132ed6=extractBashCommand(_0x2af8a2);if(!_0x132ed6)return{};const _0x1d9c83=_0x4777ad['ZhplY'](parseRangerwrightCliCommand,_0x132ed6);if(!_0x1d9c83)return{};return _0x49f05c['set'](_0x1d9c83,_0x4777ad['kCkod'](_0x49f05c[_0x5b48f5(0x137)](_0x1d9c83)||0x0,0x1)),_0x40f204['trackPhaseStart'](_0x5b48f5(0x150),{'subcommand':_0x1d9c83}),_0x40f204[_0x5b48f5(0x11c)](_0x5b48f5(0x150),{'subcommand':_0x1d9c83,'commandPreview':_0x4777ad[_0x5b48f5(0x13f)](truncatePreview,_0x132ed6)}),console['log']('[rangerwright-cli]\x20'+_0x4777ad['hOIjc'](formatRangerwrightCliLog,_0x132ed6,_0x1d9c83)),{};},_0x2e4476=async _0x22c3f3=>{const _0x25543d=_0x52aa11;if(_0x4777ad['hTsDE'](_0x22c3f3['hook_event_name'],_0x25543d(0x144)))return{};const _0x54c59a=_0x22c3f3;if(_0x4777ad[_0x25543d(0x13b)](_0x54c59a[_0x25543d(0x169)],_0x4777ad['GZEqI']))return{};return await _0x40f204['trackPhaseError']('rangerwright_cli_command_failure',_0x54c59a[_0x25543d(0x172)],{'transport':_0x4777ad['toPPI'],'toolName':_0x25543d(0x134)}),{};};return{'postToolUseHook':_0x488a94,'postToolUseFailureHook':_0x2e4476,'commandCounts':_0x49f05c};}async function runRangerwrightLifecycleCommand(_0x2dc455){const _0x49ea9f=_0x4858,_0x5cce11={'FGmIr':function(_0x9e713e,_0x4dea43,_0x2a6c2e){return _0x9e713e(_0x4dea43,_0x2a6c2e);}},{options:_0x1f8aaa,commandArgs:_0x41b824,env:_0x216413,telemetry:_0x19147f,phase:_0x5f5bdd,metadata:_0x1b60af,timeoutMs:_0x275210}=_0x2dc455;_0x19147f[_0x49ea9f(0x155)](_0x5f5bdd,_0x1b60af);try{const _0x29b67a=await runRangerwrightCliCommand({..._0x1f8aaa,'commandArgs':_0x41b824,'cwd':process[_0x49ea9f(0x129)](),'env':_0x216413,'timeoutMs':_0x275210??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x19147f[_0x49ea9f(0x11c)](_0x5f5bdd,{..._0x1b60af,'subcommand':_0x29b67a['invocation']['subcommand'],'stdoutPreview':truncatePreview(_0x29b67a[_0x49ea9f(0x160)],0x7d0),'stderrPreview':_0x5cce11[_0x49ea9f(0x122)](truncatePreview,_0x29b67a[_0x49ea9f(0x142)],0x7d0)});}catch(_0x5b1eda){await _0x19147f[_0x49ea9f(0x147)](_0x5f5bdd,_0x5b1eda,_0x1b60af);throw _0x5b1eda;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x2bad01){const _0x2a9f81=_0x4858,_0x2aa31b={'RjMJk':_0x2a9f81(0x14c),'JPWIb':_0x2a9f81(0x15c),'xTIUO':_0x2a9f81(0x153),'cBiJU':_0x2a9f81(0x151)},{telemetry:_0x2b3f54,rangerwrightOptions:_0x1ee764,env:_0x20b429,transportMetadata:_0x4c2c61}=_0x2bad01,_0x446b62=[{'phase':_0x2aa31b['RjMJk'],'commandArgs':[_0x2a9f81(0x139)]},{'phase':'rangerwright_cli_video_stop','commandArgs':[_0x2aa31b[_0x2a9f81(0x11e)]]},{'phase':_0x2aa31b[_0x2a9f81(0x123)],'commandArgs':[_0x2aa31b['cBiJU']]}];for(const _0x336e27 of _0x446b62){try{await runRangerwrightLifecycleCommand({'options':_0x1ee764,'commandArgs':[..._0x336e27['commandArgs']],'env':_0x20b429,'telemetry':_0x2b3f54,'phase':_0x336e27[_0x2a9f81(0x14f)],'metadata':_0x4c2c61});}catch{}}}
1
+ (function(_0x4d4a71,_0x4fb94a){const _0x474e55=_0x4efd,_0x2c174e=_0x4d4a71();while(!![]){try{const _0xe81383=-parseInt(_0x474e55(0x134))/0x1*(-parseInt(_0x474e55(0x13c))/0x2)+parseInt(_0x474e55(0x132))/0x3+parseInt(_0x474e55(0x154))/0x4*(-parseInt(_0x474e55(0x167))/0x5)+parseInt(_0x474e55(0x14a))/0x6+-parseInt(_0x474e55(0x179))/0x7+parseInt(_0x474e55(0x180))/0x8+-parseInt(_0x474e55(0x172))/0x9;if(_0xe81383===_0x4fb94a)break;else _0x2c174e['push'](_0x2c174e['shift']());}catch(_0x599df7){_0x2c174e['push'](_0x2c174e['shift']());}}}(_0x2778,0x45fce));import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x2d29af,_0x2fb1d8=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x22335f=_0x4efd,_0x4bf19d={'NmMNp':function(_0x520a72,_0x3f8d42){return _0x520a72>_0x3f8d42;},'jQGDq':function(_0x3d1eed,_0x4fa149){return _0x3d1eed+_0x4fa149;}};return _0x4bf19d['NmMNp'](_0x2d29af[_0x22335f(0x13e)],_0x2fb1d8)?_0x4bf19d['jQGDq'](_0x2d29af[_0x22335f(0x17b)](0x0,_0x2fb1d8),'...'):_0x2d29af;}function extractShellValue(_0x3defa2){if(!_0x3defa2)return null;return _0x3defa2[0x1]??_0x3defa2[0x2]??_0x3defa2[0x3]??null;}function extractFirstCommandArgument(_0x183fad,_0xc0204a){const _0x2d21f6=_0x4efd,_0x458379=_0xc0204a[_0x2d21f6(0x186)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return extractShellValue(_0x183fad[_0x2d21f6(0x16e)](new RegExp('(?:^|\x5cs)'+_0x458379+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x301457){const _0x30eb2c=_0x4efd;if(!_0x301457)return'target';if(/^e\d+$/i[_0x30eb2c(0x15b)](_0x301457))return _0x30eb2c(0x14b)+_0x301457;return JSON['stringify'](truncatePreview(_0x301457,0x78));}function formatRangerwrightCliLog(_0x3b1ce8,_0x3969dc){const _0x5a213b=_0x4efd,_0x23f151={'Ycwcn':'open-and-inspect','Zogyb':function(_0x305873,_0x24be7f,_0x442982){return _0x305873(_0x24be7f,_0x442982);},'VfPDE':'back-and-inspect','gKXvE':_0x5a213b(0x185),'FtQnL':'stop\x20tracing'};switch(_0x3969dc){case _0x23f151[_0x5a213b(0x13d)]:{const _0x1b449c=extractFirstCommandArgument(_0x3b1ce8,_0x3969dc);return _0x1b449c?_0x5a213b(0x177)+_0x1b449c:'open\x20and\x20inspect';}case'click-and-inspect':return'click\x20and\x20inspect\x20'+formatCommandTarget(_0x23f151['Zogyb'](extractFirstCommandArgument,_0x3b1ce8,_0x3969dc));case _0x5a213b(0x166):case'fill-and-inspect':return'fill\x20'+formatCommandTarget(extractFirstCommandArgument(_0x3b1ce8,_0x3969dc));case _0x23f151['VfPDE']:return'go\x20back\x20and\x20inspect';case'inspect':return _0x23f151['gKXvE'];case _0x5a213b(0x12f):return _0x23f151[_0x5a213b(0x12c)];case _0x5a213b(0x15a):return'stop\x20video\x20recording';case _0x5a213b(0x17e):return'close\x20browser\x20session';default:return _0x3969dc;}}function renderScenarioSections(_0x5afc08){const _0x2b34e8=_0x4efd,_0x4152d3={'PMkfC':'en-US','zCFab':'short','voUPQ':function(_0x11e008,_0x45fc71){return _0x11e008>_0x45fc71;}},{checklistItem:_0x43ccca,itemFeedback:_0x41f70f}=_0x5afc08,_0x9cf2c5=_0x43ccca['notes']?_0x2b34e8(0x12e)+_0x43ccca['notes']:'';let _0x3f59af='';if(_0x41f70f&&_0x4152d3['voUPQ'](_0x41f70f['unaddressedComments']['length'],0x0)){const _0x55239a=_0x41f70f['unaddressedComments'][_0x2b34e8(0x173)](_0x17a737=>{const _0x1f405=_0x2b34e8,_0xee1dd=new Date(_0x17a737[_0x1f405(0x136)])['toLocaleDateString'](_0x4152d3['PMkfC'],{'month':_0x4152d3[_0x1f405(0x17d)],'day':'numeric'}),_0x38dc52=_0x17a737['authorName']||_0x17a737['authorEmail']||_0x1f405(0x13f),_0x5996ae=_0x17a737[_0x1f405(0x146)]?_0x1f405(0x16c)+(_0x17a737[_0x1f405(0x146)][_0x1f405(0x133)]['split'](_0x1f405(0x15d))['pop']()?.[_0x1f405(0x143)](':')[0x0]||'element')+_0x1f405(0x15f)+(_0x17a737[_0x1f405(0x146)]['textContent']||'')[_0x1f405(0x17b)](0x0,0x32)+'\x22)':'';return _0x1f405(0x142)+_0x17a737['id']+']\x20'+_0x38dc52+'\x20('+_0xee1dd+_0x1f405(0x12d)+_0x17a737[_0x1f405(0x175)]+'\x22'+_0x5996ae;})[_0x2b34e8(0x15c)]('\x0a');_0x3f59af='\x0a\x0a##\x20Reviewer\x20Feedback\x20to\x20Address\x0aThe\x20following\x20reviewer\x20comments\x20were\x20left\x20on\x20the\x20previous\x20version\x20of\x20this\x20item.\x0aVerify\x20that\x20each\x20concern\x20has\x20been\x20addressed\x20in\x20the\x20current\x20implementation.\x0aFor\x20each\x20comment\x20you\x20believe\x20has\x20been\x20addressed,\x20include\x20its\x20ID\x20in\x20addressedCommentIds.\x0a\x0a'+_0x55239a;}const _0xc05f73=_0x41f70f?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x41f70f[_0x2b34e8(0x16d)]:'';return''+_0x43ccca[_0x2b34e8(0x13b)]+_0x9cf2c5+_0x3f59af+_0xc05f73;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x29adc6){const _0x4c6df4=_0x4efd,_0x87bfeb={'oUjdU':_0x4c6df4(0x168),'cKbGG':function(_0x4dea73,_0x58fa45){return _0x4dea73(_0x58fa45);},'QexXN':function(_0x35953f,_0x33d652){return _0x35953f??_0x33d652;},'lxXDd':_0x4c6df4(0x152)},{checklistItem:_0x1197b6,itemFeedback:_0x274d18,taskDescription:_0x370056,commandPrefix:_0x27801d,isCdpMode:_0x148d7d,url:_0x4e4bc8,cdpEndpoint:_0x4f6f56,loginInstructions:_0x674238}=_0x29adc6,_0x4e9e7f=_0x4c6df4(0x161),_0x2f278a=_0x87bfeb['oUjdU'],_0x22b84d=_0x148d7d?_0x27801d+_0x4c6df4(0x139)+quoteShellArg(_0x4e9e7f):_0x27801d+_0x4c6df4(0x159)+_0x87bfeb['cKbGG'](quoteShellArg,_0x87bfeb['QexXN'](_0x4e4bc8,_0x87bfeb[_0x4c6df4(0x135)]))+'\x20--screenshot-path\x20'+_0x87bfeb[_0x4c6df4(0x160)](quoteShellArg,_0x4e9e7f),_0x56bf24=_0x148d7d?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0x4f6f56+_0x4c6df4(0x17a):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x4e4bc8+'\x0a-\x20You\x20may\x20ONLY\x20navigate\x20to\x20paths\x20under\x20this\x20base\x20URL.\x0a-\x20DO\x20NOT\x20navigate\x20to\x20any\x20different\x20domain,\x20host,\x20or\x20port.\x0a-\x20If\x20documentation\x20or\x20code\x20diffs\x20suggest\x20a\x20path\x20exists,\x20navigate\x20to\x20it\x20only\x20under\x20this\x20base\x20URL.',_0x129fe5=_0x674238?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x674238+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.':'';return _0x4c6df4(0x138)+_0x87bfeb['cKbGG'](renderScenarioSections,{'checklistItem':_0x1197b6,'itemFeedback':_0x274d18})+_0x4c6df4(0x178)+_0x370056+'\x0a\x0a'+_0x56bf24+_0x129fe5+_0x4c6df4(0x14c)+_0x27801d+_0x4c6df4(0x181)+_0x22b84d+_0x4c6df4(0x182)+_0x27801d+_0x4c6df4(0x153)+_0x87bfeb[_0x4c6df4(0x160)](quoteShellArg,_0x2f278a)+'\x0a\x0aRefs\x20like\x20e37\x20are\x20only\x20valid\x20for\x20the\x20snapshot\x20that\x20produced\x20them.\x20Refresh\x20refs\x20after\x20navigation.\x0a\x0aUse\x20short\x20concrete\x20checkpoints\x20internally:\x20what\x20target\x20is\x20visible,\x20what\x20command\x20changes\x20state,\x20and\x20what\x20evidence\x20is\x20still\x20missing.\x20Issue\x20one\x20browser\x20command\x20at\x20a\x20time.\x20After\x20navigation,\x20validation,\x20or\x20a\x20changed\x20page,\x20inspect\x20before\x20deciding\x20the\x20next\x20action.\x0a\x0aBefore\x20reporting\x20success,\x20compare\x20each\x20required\x20CTA,\x20page\x20purpose,\x20and\x20topic\x20against\x20visible\x20page\x20evidence.\x20A\x20related\x20page\x20does\x20not\x20satisfy\x20a\x20different\x20required\x20topic\x20unless\x20the\x20page\x20text\x20directly\x20supports\x20that\x20topic\x20or\x20an\x20obvious\x20synonym.\x20If\x20required\x20evidence\x20is\x20missing,\x20mismatched,\x20or\x20only\x20inferred\x20from\x20adjacent\x20content,\x20report\x20that\x20plainly\x20and\x20do\x20not\x20mark\x20the\x20task\x20verified.\x0a\x0aFor\x20goals\x20with\x20more\x20than\x20one\x20required\x20condition,\x20use\x20an\x20internal\x20checklist\x20built\x20from\x20the\x20user\x27s\x20exact\x20requested\x20conditions.\x20Verify\x20each\x20checklist\x20item\x20against\x20visible\x20evidence\x20from\x20the\x20latest\x20browser\x20result.\x20If\x20any\x20item\x20lacks\x20direct\x20evidence,\x20report\x20the\x20task\x20as\x20not\x20verified\x20and\x20name\x20the\x20missing\x20item.\x0a\x0aOn\x20forms,\x20fill\x20only\x20visible\x20task-relevant\x20editable\x20fields\x20in\x20the\x20current\x20step\x20before\x20submitting\x20or\x20advancing.\x20Use\x20labels,\x20placeholders,\x20and\x20current\x20page\x20text\x20to\x20decide\x20which\x20fields\x20are\x20required.\x20Do\x20not\x20fill\x20fields\x20that\x20are\x20not\x20visible\x20in\x20the\x20latest\x20snapshot.\x0a\x0aUse\x20one\x20fill\x20command\x20per\x20field.\x20Do\x20not\x20combine\x20multiple\x20fields\x20into\x20one\x20fill\x20command\x20with\x20semicolons.\x0a\x0aIf\x20an\x20inspect-action\x20click\x20returns\x20the\x20same\x20page\x20or\x20shows\x20validation,\x20inspect\x20the\x20current\x20page\x20and\x20fill\x20blank\x20required\x20fields\x20before\x20retrying.\x20Do\x20not\x20repeat\x20the\x20same\x20blocked\x20click\x20unchanged.\x0a\x0aIf\x20a\x20click-and-inspect\x20result\x20keeps\x20the\x20same\x20URL\x20and\x20does\x20not\x20show\x20the\x20intended\x20target,\x20treat\x20it\x20as\x20a\x20no-op.\x20Refresh\x20refs\x20and\x20choose\x20a\x20different\x20visible\x20link,\x20or\x20use\x20back-and-inspect\x20if\x20you\x20need\x20the\x20prior\x20page.\x0a\x0aA\x20page\x20with\x20visible\x20required\x20fields\x20and\x20a\x20next,\x20submit,\x20continue,\x20or\x20confirm\x20control\x20is\x20still\x20actionable.\x20Fill\x20the\x20required\x20fields\x20with\x20values\x20from\x20the\x20task\x20before\x20reporting\x20incomplete\x20or\x20blocked.\x0a\x0a##\x20Critical:\x20Early\x20Error\x20Detection\x0aAfter\x20the\x20first\x20inspect\x20result,\x20check\x20for\x20blocking\x20errors:\x0a-\x20HTTP\x20404,\x20500,\x20400,\x20\x22Not\x20Found\x22,\x20\x22Server\x20Error\x22,\x20or\x20\x22Bad\x20Request\x22\x0a-\x20Framework\x20error\x20pages\x0a-\x20Blank\x20pages\x20with\x20no\x20content\x0a-\x20App\x20crash\x20or\x20error\x20dialogs\x0a\x0aIf\x20any\x20blocking\x20error\x20is\x20visible,\x20return\x20evaluation\x20\x22blocked\x22\x20immediately\x20with\x20a\x20specific\x20reason.\x0a\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}function _0x4efd(_0x387217,_0x4656f3){_0x387217=_0x387217-0x12b;const _0x2778b2=_0x2778();let _0x4efd1f=_0x2778b2[_0x387217];return _0x4efd1f;}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x2cfcdf){const _0x183e73=_0x4efd,_0x2a0737={'NuCwa':function(_0x45de6b,_0xa9ac5e){return _0x45de6b(_0xa9ac5e);}},_0x33a121=_0x183e73(0x16b),_0x44618f='key_02_learn-more.png';return'You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x20Every\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x2cfcdf[_0x183e73(0x12b)]+_0x183e73(0x165)+_0x2cfcdf[_0x183e73(0x12b)]+_0x183e73(0x159)+_0x2a0737[_0x183e73(0x157)](quoteShellArg,_0x2cfcdf['url'])+'\x20--screenshot-path\x20'+quoteShellArg(_0x33a121)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x2cfcdf['commandPrefix']+_0x183e73(0x170)+_0x2a0737[_0x183e73(0x157)](quoteShellArg,_0x44618f)+_0x183e73(0x131);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x34e846){const _0x338c70=_0x4efd,_0x1575c7={'AxOTA':function(_0x3fe877,_0x3f3384){return _0x3fe877===_0x3f3384;}},_0x164050=[..._0x34e846[_0x338c70(0x176)]()][_0x338c70(0x150)]();let _0x5a134c=0x0;for(const _0x61ae4f of _0x34e846[_0x338c70(0x145)]()){_0x5a134c+=_0x61ae4f;}return{'cliCommandCount':_0x5a134c,'cliCommandsSeen':_0x164050,'noCliCommandsCalled':_0x1575c7['AxOTA'](_0x5a134c,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x3865b5){const _0x2dfb98=_0x4efd,_0x4d1375={'rAckk':function(_0xb12a2,_0x217323){return _0xb12a2!==_0x217323;},'UtqFF':'PostToolUse','VavPM':_0x2dfb98(0x174),'iGptx':function(_0x14528d,_0x3b8e36){return _0x14528d(_0x3b8e36);},'kITAW':function(_0x1f939f,_0x11715a){return _0x1f939f+_0x11715a;},'ILUlp':_0x2dfb98(0x13a),'rOmVi':function(_0x3145e4,_0x217a6b){return _0x3145e4(_0x217a6b);},'PNskH':function(_0x121895,_0x1a727e,_0x20b471){return _0x121895(_0x1a727e,_0x20b471);},'PjlDJ':'rangerwright-cli'},_0x403733=new Map(),_0x1d93c4=async _0x48a0cd=>{const _0x4d39a9=_0x2dfb98;if(_0x4d1375[_0x4d39a9(0x147)](_0x48a0cd[_0x4d39a9(0x151)],_0x4d1375['UtqFF']))return{};const _0x124db6=_0x48a0cd;if(_0x124db6[_0x4d39a9(0x183)]!==_0x4d1375['VavPM'])return{};const _0x49584b=_0x124db6[_0x4d39a9(0x158)],_0x2a9b49=extractBashCommand(_0x49584b);if(!_0x2a9b49)return{};const _0x56e500=_0x4d1375['iGptx'](parseRangerwrightCliCommand,_0x2a9b49);if(!_0x56e500)return{};return _0x403733[_0x4d39a9(0x148)](_0x56e500,_0x4d1375[_0x4d39a9(0x16a)](_0x403733['get'](_0x56e500)||0x0,0x1)),_0x3865b5['trackPhaseStart'](_0x4d1375[_0x4d39a9(0x141)],{'subcommand':_0x56e500}),_0x3865b5['trackPhaseEnd'](_0x4d1375['ILUlp'],{'subcommand':_0x56e500,'commandPreview':_0x4d1375[_0x4d39a9(0x184)](truncatePreview,_0x2a9b49)}),console[_0x4d39a9(0x163)](_0x4d39a9(0x15e)+_0x4d1375[_0x4d39a9(0x162)](formatRangerwrightCliLog,_0x2a9b49,_0x56e500)),{};},_0x388959=async _0x39a797=>{const _0x1a6340=_0x2dfb98;if(_0x39a797[_0x1a6340(0x151)]!=='PostToolUseFailure')return{};const _0x3a8a62=_0x39a797;if(_0x3a8a62[_0x1a6340(0x183)]!==_0x4d1375['VavPM'])return{};return await _0x3865b5[_0x1a6340(0x156)]('rangerwright_cli_command_failure',_0x3a8a62['error'],{'transport':_0x4d1375[_0x1a6340(0x17c)],'toolName':'Bash'}),{};};return{'postToolUseHook':_0x1d93c4,'postToolUseFailureHook':_0x388959,'commandCounts':_0x403733};}async function runRangerwrightLifecycleCommand(_0x54c693){const _0x51da58=_0x4efd,_0x4c360f={'XSHJh':function(_0x2528a6,_0x15ac4e,_0x1005c3){return _0x2528a6(_0x15ac4e,_0x1005c3);}},{options:_0x17f4b3,commandArgs:_0x1c98de,env:_0x169dfe,telemetry:_0x1e87a3,phase:_0x58f433,metadata:_0x1a1bc4,timeoutMs:_0xbbfe93}=_0x54c693;_0x1e87a3[_0x51da58(0x164)](_0x58f433,_0x1a1bc4);try{const _0x338eca=await runRangerwrightCliCommand({..._0x17f4b3,'commandArgs':_0x1c98de,'cwd':process['cwd'](),'env':_0x169dfe,'timeoutMs':_0xbbfe93??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x1e87a3['trackPhaseEnd'](_0x58f433,{..._0x1a1bc4,'subcommand':_0x338eca[_0x51da58(0x16f)]['subcommand'],'stdoutPreview':_0x4c360f[_0x51da58(0x155)](truncatePreview,_0x338eca[_0x51da58(0x149)],0x7d0),'stderrPreview':truncatePreview(_0x338eca[_0x51da58(0x169)],0x7d0)});}catch(_0x40450c){await _0x1e87a3[_0x51da58(0x156)](_0x58f433,_0x40450c,_0x1a1bc4);throw _0x40450c;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x17add5){const _0x3f4bc=_0x4efd,_0x484769={'iSwJw':_0x3f4bc(0x137),'scfFh':_0x3f4bc(0x12f),'arZrj':_0x3f4bc(0x171),'TKNss':'video-stop','toFoi':_0x3f4bc(0x140),'zZgBK':_0x3f4bc(0x17e),'aaxHy':function(_0x472bb8,_0x2e564c){return _0x472bb8(_0x2e564c);}},{telemetry:_0x56e385,rangerwrightOptions:_0x30dfaf,env:_0x404e08,transportMetadata:_0x2e53a5}=_0x17add5,_0x904b83=[{'phase':_0x484769[_0x3f4bc(0x14d)],'commandArgs':[_0x484769['scfFh']]},{'phase':_0x484769[_0x3f4bc(0x17f)],'commandArgs':[_0x484769['TKNss']]},{'phase':_0x484769[_0x3f4bc(0x144)],'commandArgs':[_0x484769[_0x3f4bc(0x14f)]]}];for(const _0x51042c of _0x904b83){try{await _0x484769[_0x3f4bc(0x14e)](runRangerwrightLifecycleCommand,{'options':_0x30dfaf,'commandArgs':[..._0x51042c['commandArgs']],'env':_0x404e08,'telemetry':_0x56e385,'phase':_0x51042c[_0x3f4bc(0x130)],'metadata':_0x2e53a5});}catch{}}}function _0x2778(){const _0x44739e=['.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','slice','PjlDJ','zCFab','close','arZrj','3049512OPbWgk','\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x20Browser\x20Trek\x20only\x20counts\x20literal\x20Rangerwright\x20command\x20invocations.\x0a\x0aTreat\x20the\x20command\x20prefix\x20as\x20immutable.\x20Copy\x20it\x20exactly,\x20then\x20append\x20one\x20supported\x20Rangerwright\x20subcommand\x20and\x20its\x20arguments.\x20If\x20a\x20browser\x20command\x20fails\x20because\x20the\x20binary\x20path\x20is\x20missing\x20or\x20the\x20command\x20syntax\x20is\x20malformed,\x20retry\x20once\x20with\x20the\x20exact\x20prefix\x20from\x20this\x20prompt\x20before\x20deciding\x20the\x20task\x20is\x20blocked.\x0a\x0aFirst\x20command:\x0a\x0a','\x0a\x0aPrefer\x20open-and-inspect\x20and\x20click-and-inspect\x20when\x20you\x20need\x20a\x20fresh\x20snapshot\x20plus\x20evidence.\x0a\x0aUse\x20back-and-inspect\x20to\x20return\x20to\x20the\x20previous\x20page\x20after\x20checking\x20a\x20detail\x20page.\x20Refresh\x20refs\x20after\x20going\x20back.\x0a\x0aEach\x20command\x20returns\x20JSON\x20with\x20success,\x20data,\x20and\x20error\x20fields.\x0a\x0aUse\x20data.title,\x20data.headings,\x20data.pageText,\x20and\x20data.snapshotText\x20together.\x20snapshotText\x20is\x20best\x20for\x20refs\x20and\x20controls;\x20pageText\x20is\x20valid\x20visible\x20evidence\x20for\x20page\x20content.\x0a\x0aDo\x20not\x20verify\x20from\x20a\x20broad\x20landing,\x20index,\x20category,\x20search,\x20or\x20navigation\x20page\x20when\x20the\x20task\x20asks\x20for\x20a\x20specific\x20page,\x20topic,\x20item,\x20or\x20action.\x20Click\x20and\x20inspect\x20the\x20most\x20specific\x20visible\x20target\x20first;\x20if\x20no\x20specific\x20target\x20exists,\x20report\x20the\x20missing\x20target.\x0a\x0aSave\x20screenshots\x20by\x20using\x20--screenshot-path\x20on\x20inspect\x20commands.\x20Relative\x20screenshot\x20paths\x20are\x20saved\x20under\x20the\x20run\x20artifact\x20directory.\x20Do\x20not\x20call\x20screenshot\x20--path.\x0a\x0aExample:\x0a\x0a','tool_name','rOmVi','inspect\x20page','replace','commandPrefix','FtQnL','):\x20\x22','\x0a\x0a##\x20Additional\x20Notes\x0a','tracing-stop','phase','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','1284195cDUiPR','selector','595OhGwAr','lxXDd','createdAt','rangerwright_cli_tracing_stop','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','\x20inspect\x20--screenshot-path\x20','rangerwright_cli_command','description','500pKoNwp','Ycwcn','length','Reviewer','rangerwright_cli_close','ILUlp','-\x20[','split','toFoi','values','domRef','rAckk','set','stdout','2950686cDpfNV','ref\x20','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','iSwJw','aaxHy','zZgBK','sort','hook_event_name','about:blank','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','40ZZHlcD','XSHJh','trackPhaseError','NuCwa','tool_input','\x20open-and-inspect\x20','video-stop','test','join','\x20>\x20','[rangerwright-cli]\x20','>\x20\x22','cKbGG','01_initial-state.png','PNskH','log','trackPhaseStart','\x0a\x0aDo\x20not\x20define\x20an\x20RW\x20variable.\x20Do\x20not\x20use\x20node_modules/.bin/rangerwright,\x20npx,\x20npm,\x20cd,\x20find,\x20grep,\x20or\x20search\x20for\x20the\x20binary.\x0a\x0a1.\x20Run\x20`','fill','1085uNZIFs','key_99_final-state.png','stderr','kITAW','01_mozilla-homepage.png','\x20(on\x20element:\x20<','canonicalFlow','match','invocation','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','rangerwright_cli_video_stop','7385112hnWKqG','map','Bash','content','keys','open\x20and\x20inspect\x20','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','2382639ugPhYh'];_0x2778=function(){return _0x44739e;};return _0x2778();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "3.1.0",
3
+ "version": "3.1.1-alpha.b22d278-38",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ranger": "./build/cli.js",