@ranger-testing/ranger-cli 3.1.4 → 3.1.5-alpha.0c090c6-50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x999193,_0x51fe1e){const _0x5eb039=_0x1e5a,_0xe42d7e=_0x999193();while(!![]){try{const _0x43a505=parseInt(_0x5eb039(0x74))/0x1*(parseInt(_0x5eb039(0x8f))/0x2)+-parseInt(_0x5eb039(0xb7))/0x3+parseInt(_0x5eb039(0x84))/0x4+parseInt(_0x5eb039(0x75))/0x5+parseInt(_0x5eb039(0xce))/0x6+-parseInt(_0x5eb039(0x6d))/0x7+parseInt(_0x5eb039(0xa8))/0x8;if(_0x43a505===_0x51fe1e)break;else _0xe42d7e['push'](_0xe42d7e['shift']());}catch(_0x4c0d7a){_0xe42d7e['push'](_0xe42d7e['shift']());}}}(_0x2213,0xad33c));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 _0x1e5a(_0x3053c4,_0x1b9e2f){_0x3053c4=_0x3053c4-0x64;const _0x22131d=_0x2213();let _0x1e5adc=_0x22131d[_0x3053c4];return _0x1e5adc;}function truncatePreview(_0x12365f,_0x56e494=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x2e2540=_0x1e5a,_0x32b523={'RbUVj':function(_0x1b4a4a,_0x4a3ca0){return _0x1b4a4a+_0x4a3ca0;},'NwWWF':'...'};return _0x12365f['length']>_0x56e494?_0x32b523['RbUVj'](_0x12365f[_0x2e2540(0xe2)](0x0,_0x56e494),_0x32b523[_0x2e2540(0xbe)]):_0x12365f;}function buildCliArtifactPath(_0x2a2ea4,_0x517c4b){const _0x3ad188={'icimg':function(_0x81bdd1,_0x255e51,_0x29e2a7){return _0x81bdd1(_0x255e51,_0x29e2a7);}};return _0x3ad188['icimg'](join,_0x2a2ea4,_0x517c4b);}function toStepDisplayName(_0x26004b){const _0x3add17=_0x1e5a,_0x53b607={'cSpVl':function(_0x3a8249,_0x59ceeb){return _0x3a8249(_0x59ceeb);},'LpXna':function(_0x6b3118,_0x391cec){return _0x6b3118(_0x391cec);}},_0x4b8487=_0x53b607[_0x3add17(0xe5)](basename,_0x26004b)[_0x3add17(0x6c)](/\.(?:png|ya?ml)$/i,'')['replace'](/^key_/i,'')['replace'](/^\d+_/,'')[_0x3add17(0x6c)](/-/g,'\x20');return{'name':_0x4b8487,'isKeyStep':/^key_/i['test'](_0x53b607['LpXna'](basename,_0x26004b))};}function extractShellValue(_0x40bd71){if(!_0x40bd71)return null;return _0x40bd71[0x1]??_0x40bd71[0x2]??_0x40bd71[0x3]??null;}function extractFilenameOption(_0x5343c6){const _0x3c3aec=_0x1e5a,_0x1529d8={'pWPbQ':function(_0x4e24a3,_0x4a0abb){return _0x4e24a3(_0x4a0abb);}};return _0x1529d8[_0x3c3aec(0x91)](extractShellValue,_0x5343c6[_0x3c3aec(0x73)](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x2a3e51,_0x306c56){const _0x4061fd=_0x1e5a,_0x371cf4={'hPVye':'\x5c$&'},_0x3b447b=_0x306c56['replace'](/[.*+?^${}()|[\]\\]/g,_0x371cf4['hPVye']);return extractShellValue(_0x2a3e51['match'](new RegExp(_0x4061fd(0x8e)+_0x3b447b+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function formatCommandTarget(_0x268b11){const _0x10d936=_0x1e5a,_0x1858c2={'ZYrAt':function(_0x31d0a3,_0x53544f,_0x7edce1){return _0x31d0a3(_0x53544f,_0x7edce1);}};if(!_0x268b11)return'target';if(/^e\d+$/i[_0x10d936(0x88)](_0x268b11))return _0x10d936(0x8b)+_0x268b11;return JSON['stringify'](_0x1858c2['ZYrAt'](truncatePreview,_0x268b11,0x78));}function formatPlaywrightCliLog(_0x256ed2,_0x352ea1){const _0x3c1134=_0x1e5a,_0x112d91={'NIoCS':function(_0x118013,_0x41d897,_0x2d3473){return _0x118013(_0x41d897,_0x2d3473);},'MUUSV':_0x3c1134(0xb1),'Cosmv':_0x3c1134(0xac),'DzbYz':function(_0x21c1ac,_0x31dbd1){return _0x21c1ac(_0x31dbd1);},'seaHp':_0x3c1134(0xcc),'NXoJd':function(_0x3c652a,_0x382c40){return _0x3c652a(_0x382c40);},'GhIRA':'click','lgGEJ':'check','SERwY':function(_0x391fed,_0x293c2f){return _0x391fed(_0x293c2f);},'FXDRe':function(_0x5e96e1,_0x1e55ec,_0xf0300a){return _0x5e96e1(_0x1e55ec,_0xf0300a);},'KYshd':'press','awJwI':function(_0x249cea,_0x348475,_0x416c0c){return _0x249cea(_0x348475,_0x416c0c);},'iYYIN':_0x3c1134(0x69),'sQdVI':_0x3c1134(0xc2),'GgLMR':_0x3c1134(0xc0)};switch(_0x352ea1){case'open':{const _0x3ccc8a=_0x112d91['NIoCS'](extractFirstCommandArgument,_0x256ed2,_0x352ea1);return _0x3ccc8a?_0x3c1134(0xa7)+_0x3ccc8a:_0x3c1134(0xb0);}case'tracing-start':return _0x3c1134(0xd4);case _0x3c1134(0xda):return'stop\x20tracing';case _0x3c1134(0xb2):return _0x3c1134(0xbd);case _0x112d91[_0x3c1134(0x8a)]:return _0x3c1134(0xdb);case _0x112d91[_0x3c1134(0x96)]:{const _0x3e4323=_0x112d91['DzbYz'](extractFilenameOption,_0x256ed2);if(!_0x3e4323)return _0x112d91[_0x3c1134(0xcd)];const {name:_0x1287bc}=_0x112d91[_0x3c1134(0xc7)](toStepDisplayName,_0x3e4323);return _0x3c1134(0xdf)+_0x1287bc+'`';}case'screenshot':{const _0xb025fa=_0x112d91['NXoJd'](extractFilenameOption,_0x256ed2);if(!_0xb025fa)return'capture\x20screenshot';const {name:_0xe0da0f,isKeyStep:_0x1ea491}=toStepDisplayName(_0xb025fa);return _0x1ea491?'capture\x20key\x20step\x20`'+_0xe0da0f+'`':_0x3c1134(0x9a)+_0xe0da0f+'`';}case _0x112d91[_0x3c1134(0x92)]:return'click\x20'+formatCommandTarget(extractFirstCommandArgument(_0x256ed2,_0x352ea1));case _0x112d91[_0x3c1134(0xea)]:return _0x3c1134(0xa2)+_0x112d91['SERwY'](formatCommandTarget,_0x112d91['FXDRe'](extractFirstCommandArgument,_0x256ed2,_0x352ea1));case _0x3c1134(0xc5):return _0x3c1134(0x87)+formatCommandTarget(extractFirstCommandArgument(_0x256ed2,_0x352ea1));case _0x112d91[_0x3c1134(0xa5)]:return'press\x20'+formatCommandTarget(_0x112d91[_0x3c1134(0xa1)](extractFirstCommandArgument,_0x256ed2,_0x352ea1));case _0x112d91['iYYIN']:return'run\x20custom\x20Playwright\x20code';case _0x112d91['sQdVI']:{const _0x209c3e=_0x112d91[_0x3c1134(0xa1)](extractFirstCommandArgument,_0x256ed2,_0x352ea1);return _0x209c3e?_0x3c1134(0x7b)+_0x209c3e:'open\x20new\x20tab';}case _0x3c1134(0x94):{const _0x36acb9=extractFirstCommandArgument(_0x256ed2,_0x352ea1);return _0x36acb9?'select\x20tab\x20'+_0x36acb9:_0x112d91['GgLMR'];}default:return _0x352ea1;}}function extractPlaywrightCliToolDescription(_0x539c77){const _0x4d5e4b=_0x1e5a,_0x2c70cb={'qbZiI':_0x4d5e4b(0x9e),'LTrNK':function(_0x20a40d,_0x34ec72){return _0x20a40d>_0x34ec72;}},_0x118073=_0x539c77[_0x4d5e4b(0xd1)];if(typeof _0x118073!==_0x2c70cb['qbZiI'])return null;const _0x4dacc0=_0x118073['trim']()[_0x4d5e4b(0x6c)](/\s+/g,'\x20');return _0x2c70cb[_0x4d5e4b(0x77)](_0x4dacc0[_0x4d5e4b(0xb3)],0x0)?_0x4dacc0:null;}export function formatPlaywrightCliConsoleLogMessage(_0x4356e7,_0x4a89cd,_0x38b578){const _0x4fb4ee=_0x1e5a,_0x4a8507={'sYExG':function(_0x5d5d6f,_0x10e67f,_0x18435b){return _0x5d5d6f(_0x10e67f,_0x18435b);},'KUxpO':function(_0x6ce589,_0x1af478){return _0x6ce589(_0x1af478);}},_0x409929=_0x4a8507['sYExG'](formatPlaywrightCliLog,_0x4a89cd,_0x38b578),_0x333c56=_0x4a8507['KUxpO'](extractPlaywrightCliToolDescription,_0x4356e7);if(!_0x333c56)return _0x4fb4ee(0xd0)+_0x409929;if(process['env']['DEBUG'])return'[ranger-verification-agent]\x20'+_0x333c56+'\x20('+_0x409929+')';return'[ranger-verification-agent]\x20'+_0x333c56;}export function buildVerifyFeatureCliDebugPrompt(_0x334f2f,_0x3d0318){const _0x1f4f5f=_0x1e5a,_0x1c7187={'HhmjR':_0x1f4f5f(0x6a),'RlawO':function(_0x990f24,_0x18d45f,_0x1959ad){return _0x990f24(_0x18d45f,_0x1959ad);},'mHEVT':'02_learn-more.yml','bLSvA':function(_0x4eef32,_0x8501af){return _0x4eef32(_0x8501af);}},_0x3a8b12=buildCliArtifactPath(_0x3d0318,'00_mozilla-homepage.yml'),_0x8e12d=buildCliArtifactPath(_0x3d0318,_0x1c7187[_0x1f4f5f(0x70)]),_0x179dee=_0x1c7187[_0x1f4f5f(0x99)](buildCliArtifactPath,_0x3d0318,_0x1c7187['mHEVT']),_0xa432ae=buildCliArtifactPath(_0x3d0318,'03_learn-more.png'),_0x5cc38e=quoteShellArg(_0x3a8b12),_0xb524ce=quoteShellArg(_0x8e12d),_0x4a0d50=_0x1c7187['bLSvA'](quoteShellArg,_0x179dee),_0x2cd271=_0x1c7187['bLSvA'](quoteShellArg,_0xa432ae);return _0x1f4f5f(0x7c)+_0x334f2f+_0x1f4f5f(0xab)+_0x334f2f+'\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`'+_0x334f2f+'\x20tracing-start`\x0a3.\x20Run\x20`'+_0x334f2f+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x3d0318+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x334f2f+'\x20snapshot\x20--filename\x20'+_0x5cc38e+_0x1f4f5f(0xdd)+_0x334f2f+'\x20screenshot\x20--filename\x20'+_0xb524ce+_0x1f4f5f(0xe1)+_0x334f2f+'\x20snapshot\x20--filename\x20'+_0x4a0d50+'`\x0a9.\x20Run\x20`'+_0x334f2f+_0x1f4f5f(0x9d)+_0x2cd271+_0x1f4f5f(0xbb);}export function buildVerifyFeatureCliPrompt(_0x36bafa){const _0x15d7f4=_0x1e5a,_0x266122={'VNmNf':_0x15d7f4(0xd6),'bFqvH':'Reviewer','vfhvC':_0x15d7f4(0xe8),'EBAsn':'key_03_success-state.png','ptrkW':_0x15d7f4(0x97),'nqmix':function(_0x890b31,_0xee12df){return _0x890b31(_0xee12df);},'BSPTB':function(_0xd52485,_0x4de8e3){return _0xd52485(_0x4de8e3);},'cVxjO':function(_0x133488,_0x21a95c){return _0x133488(_0x21a95c);},'rmIYX':function(_0x2e483e,_0xc57863){return _0x2e483e(_0xc57863);},'IfgAu':function(_0x45b3f7,_0x59d8ef){return _0x45b3f7>_0x59d8ef;},'ipntx':function(_0x35041c,_0x5b086b){return _0x35041c(_0x5b086b);},'OXijr':function(_0x264ad5,_0x4b2553,_0x71ad33){return _0x264ad5(_0x4b2553,_0x71ad33);},'dNrJu':function(_0x1d9fb8,_0xa75e91,_0x4dfc5c){return _0x1d9fb8(_0xa75e91,_0x4dfc5c);},'sXcpg':'key_04_success-state.png'},{checklistItem:_0x4041e9,itemFeedback:_0xcd353d,taskDescription:_0x445a6b,cliCommandPrefix:_0x2bf2b0,cliArtifactDir:_0x138da8,isCdpMode:_0x239f26,url:_0x21cfb3,cdpEndpoint:_0x2e002a,loginInstructions:_0x47570e}=_0x36bafa,_0xf64062=buildCliArtifactPath(_0x138da8,_0x15d7f4(0xcb)),_0x54eacc=buildCliArtifactPath(_0x138da8,_0x15d7f4(0xe4)),_0x1d2bca=buildCliArtifactPath(_0x138da8,_0x266122['EBAsn']),_0x4b5b86=buildCliArtifactPath(_0x138da8,_0x266122[_0x15d7f4(0xb4)]),_0x16a0a7=_0x266122[_0x15d7f4(0x82)](quoteShellArg,_0xf64062),_0x4a5a57=_0x266122['BSPTB'](quoteShellArg,_0x54eacc),_0x58e876=_0x266122[_0x15d7f4(0xd5)](quoteShellArg,_0x1d2bca),_0xe5a328=_0x266122[_0x15d7f4(0xd9)](quoteShellArg,_0x4b5b86),_0x45016c=_0x4041e9['notes']?_0x15d7f4(0xc3)+_0x4041e9['notes']:'';let _0x241317='';if(_0xcd353d&&_0x266122['IfgAu'](_0xcd353d['unaddressedComments']['length'],0x0)){const _0x436133=_0xcd353d['unaddressedComments']['map'](_0x367461=>{const _0x58c4e1=_0x15d7f4,_0x252b8a=new Date(_0x367461['createdAt'])[_0x58c4e1(0x9b)]('en-US',{'month':_0x266122[_0x58c4e1(0xc8)],'day':'numeric'}),_0xf6f21b=_0x367461[_0x58c4e1(0x85)]||_0x367461['authorEmail']||_0x266122['bFqvH'],_0x1e8205=_0x367461['domRef']?'\x20(on\x20element:\x20<'+(_0x367461[_0x58c4e1(0x7d)]['selector']['split'](_0x266122['vfhvC'])['pop']()?.['split'](':')[0x0]||'element')+'>\x20\x22'+(_0x367461['domRef'][_0x58c4e1(0xb6)]||'')[_0x58c4e1(0xe2)](0x0,0x32)+'\x22)':'';return _0x58c4e1(0xa0)+_0x367461['id']+_0x58c4e1(0xbf)+_0xf6f21b+_0x58c4e1(0x83)+_0x252b8a+_0x58c4e1(0xe0)+_0x367461[_0x58c4e1(0xa9)]+'\x22'+_0x1e8205;})['join']('\x0a');_0x241317='\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'+_0x436133;}const _0xea95ab=_0xcd353d?.[_0x15d7f4(0x98)]?_0x15d7f4(0x67)+_0xcd353d['canonicalFlow']:'',_0x3ab840=_0x239f26?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0x2e002a+_0x15d7f4(0xc6):_0x15d7f4(0xe7)+_0x21cfb3+'\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',_0x4e081b=_0x21cfb3?_0x266122['ipntx'](quoteShellArg,_0x21cfb3):'',_0x3ad41a=_0x239f26?'##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`'+_0x2bf2b0+_0x15d7f4(0x7f)+_0x2bf2b0+'\x20tracing-start`,\x20then\x20`'+_0x2bf2b0+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x138da8+_0x15d7f4(0x90)+_0x2bf2b0+_0x15d7f4(0xa6)+_0x16a0a7+_0x15d7f4(0xba)+_0x2bf2b0+_0x15d7f4(0x9d)+_0xe5a328+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x2bf2b0+'\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':_0x15d7f4(0x86)+_0x2bf2b0+'\x20open\x20'+_0x4e081b+_0x15d7f4(0xd3)+_0x2bf2b0+'\x20tracing-start`,\x20then\x20`'+_0x2bf2b0+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x138da8+_0x15d7f4(0x90)+_0x2bf2b0+_0x15d7f4(0xa6)+_0x16a0a7+'`\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`'+_0x2bf2b0+'\x20screenshot\x20--filename\x20'+_0xe5a328+_0x15d7f4(0x81)+_0x2bf2b0+'\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',_0x42c380=_0x239f26?'\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.':_0x15d7f4(0x6b),_0x2fb5a4=_0x47570e?_0x15d7f4(0x78)+_0x47570e+'\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'+_0x4041e9[_0x15d7f4(0xd1)]+_0x45016c+_0x241317+_0xea95ab+_0x15d7f4(0x6e)+_0x445a6b+'\x0a\x0a'+_0x3ab840+_0x2fb5a4+'\x0a\x0a'+_0x3ad41a+_0x15d7f4(0xc4)+_0x2bf2b0+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x138da8+'`\x0a-\x20`snapshot\x20--filename\x20'+_0x4a5a57+_0x15d7f4(0xdc)+_0x58e876+_0x15d7f4(0xa3)+_0x138da8+_0x15d7f4(0xb5)+_0x4b5b86+'\x22,\x20\x22'+buildCliArtifactPath(_0x138da8,'02_button-clicked.png')+'\x22,\x20\x22'+_0x266122['OXijr'](buildCliArtifactPath,_0x138da8,_0x15d7f4(0x68))+'\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'+_0x266122[_0x15d7f4(0x80)](buildCliArtifactPath,_0x138da8,_0x266122[_0x15d7f4(0x95)])+'\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'+_0x42c380+'\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.';}function _0x2213(){const _0x5e1ed7=['tracing-stop','stop\x20video\x20recording','`\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','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','KlXEm','capture\x20snapshot\x20`','):\x20\x22','`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`','slice','PostToolUse','02_state.yml','cSpVl','Bash','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','\x20>\x20','tool_call','lgGEJ','gqqGK','playwright-cli','isFile','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','03_result-visible.png','run-code','01_mozilla-homepage.png','\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.','replace','7470638vRrhrI','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','xGvLh','HhmjR','log','playwright_cli_tracing_stop','match','1759GTDHIR','2223125LnAhVG','subcommand','LTrNK','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a','yKTcz','UmnHA','open\x20new\x20tab\x20','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','domRef','cwd','\x20open`,\x20then\x20`','dNrJu','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','nqmix','**\x20(','309520cOAsCD','authorName','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','fill\x20','test','trace.trace.zip','MUUSV','ref\x20','BwFmp','wudXP','(?:^|\x5cs)','236fWNStT','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','pWPbQ','GhIRA','mBLZx','tab-select','sXcpg','Cosmv','01_initial-state.png','canonicalFlow','RlawO','capture\x20step\x20`','toLocaleDateString','--filename=','\x20screenshot\x20--filename\x20','string','trackPhaseError','-\x20[','awJwI','check\x20','`\x0a-\x20`run-code\x20\x22await\x20page.waitForTimeout(1000)\x22`\x20for\x20waits\x20or\x20small\x20custom\x20checks\x0a\x0a##\x20Screenshot\x20Guidelines\x20-\x20IMPORTANT\x0aTake\x20screenshots\x20throughout\x20the\x20verification\x20flow\x20so\x20a\x20human\x20can\x20review\x20it\x20for\x20completeness.\x20Screenshots\x20are\x20your\x20evidence\x20trail.\x0a\x0a**When\x20to\x20take\x20screenshots\x20(use\x20Playwright\x20CLI\x20screenshot):**\x0a-\x20After\x20the\x20initial\x20snapshot\x20(capture\x20starting\x20state)\x0a-\x20Before\x20and\x20after\x20clicking\x20buttons\x20or\x20submitting\x20forms\x0a-\x20When\x20important\x20UI\x20elements\x20appear\x20(modals,\x20notifications,\x20loading\x20states)\x0a-\x20After\x20navigating\x20to\x20different\x20views\x20or\x20pages\x0a-\x20When\x20verifying\x20specific\x20elements\x20exist\x0a-\x20At\x20the\x20final\x20state\x20showing\x20the\x20completed\x20action\x0a\x0a**Screenshot\x20naming:**\x0a-\x20Use\x20descriptive\x20filenames\x20under\x20`','get','KYshd','\x20snapshot\x20--filename\x20','open\x20','1025664UouiKj','content','tool_name','\x0a\x0a1.\x20Run\x20`','snapshot','tool_input','invocation','hook_event_name','open\x20browser','video-stop','video-start','length','ptrkW','`:\x20\x22','textContent','364269fOlvWT','name','keys','`\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`','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','WIWaz','start\x20video\x20recording','NwWWF',']\x20**','select\x20tab','sort','tab-new','\x0a\x0a##\x20Additional\x20Notes\x0a','\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`','fill','.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.','NXoJd','VNmNf','eyaiL','mTDEO','01_initial.yml','capture\x20snapshot','seaHp','6241908KMmhJy','uXhIG','[playwright-cli]\x20','description','commandArgs','`,\x20then\x20`','start\x20tracing','cVxjO','short','trackPhaseStart','values','rmIYX'];_0x2213=function(){return _0x5e1ed7;};return _0x2213();}export function summarizeVerifyFeatureCliCommandAvailability(_0x11f930){const _0x2285b7=_0x1e5a,_0x583f63={'mTDEO':function(_0x127e19,_0x441bb8){return _0x127e19===_0x441bb8;}},_0x3c93d9=[..._0x11f930[_0x2285b7(0xb9)]()]['sort']();let _0x119b04=0x0;for(const _0x20e814 of _0x11f930[_0x2285b7(0xd8)]()){_0x119b04+=_0x20e814;}return{'cliCommandCount':_0x119b04,'cliCommandsSeen':_0x3c93d9,'noCliCommandsCalled':_0x583f63[_0x2285b7(0xca)](_0x119b04,0x0)};}export function createVerifyFeatureCliHooks(_0x515269){const _0x47f949=_0x1e5a,_0x34f5e4={'BwFmp':function(_0x4dfa25,_0x4baec7){return _0x4dfa25!==_0x4baec7;},'mBLZx':function(_0x461c41,_0xd4b368){return _0x461c41(_0xd4b368);},'ToKAO':_0x47f949(0xe9),'gqqGK':_0x47f949(0xac),'KlXEm':function(_0x145d7b,_0x2301e8,_0x3a4c11,_0xc1f9f1){return _0x145d7b(_0x2301e8,_0x3a4c11,_0xc1f9f1);},'bqWOg':function(_0x3ab0de,_0xf2d489){return _0x3ab0de!==_0xf2d489;},'wudXP':_0x47f949(0xe6),'YTqoG':_0x47f949(0x65)},_0x503574=new Map(),_0x49b9ee=async _0x39d8b3=>{const _0xa241e5=_0x47f949;if(_0x39d8b3[_0xa241e5(0xaf)]!==_0xa241e5(0xe3))return{};const _0x14299e=_0x39d8b3;if(_0x34f5e4[_0xa241e5(0x8c)](_0x14299e[_0xa241e5(0xaa)],_0xa241e5(0xe6)))return{};const _0x63d38f=_0x14299e[_0xa241e5(0xad)],_0x53a9db=extractBashCommand(_0x63d38f);if(!_0x53a9db)return{};const _0x3d164f=_0x34f5e4[_0xa241e5(0x93)](parsePlaywrightCliCommand,_0x53a9db);if(!_0x3d164f)return{};return _0x503574['set'](_0x3d164f,(_0x503574[_0xa241e5(0xa4)](_0x3d164f)||0x0)+0x1),_0x515269[_0xa241e5(0xd7)](_0x34f5e4['ToKAO'],{'transport':'playwright-cli','toolName':_0x3d164f}),_0x515269['trackPhaseEnd'](_0x34f5e4['ToKAO'],{'transport':'playwright-cli','toolName':_0x3d164f,'bashCommandPreview':truncatePreview(_0x53a9db)}),_0x3d164f!==_0x34f5e4[_0xa241e5(0x64)]&&console[_0xa241e5(0x71)](_0x34f5e4[_0xa241e5(0xde)](formatPlaywrightCliConsoleLogMessage,_0x63d38f,_0x53a9db,_0x3d164f)),{};},_0x4ede24=async _0x21fd28=>{const _0x2b65d8=_0x47f949;if(_0x34f5e4[_0x2b65d8(0x8c)](_0x21fd28[_0x2b65d8(0xaf)],'PostToolUseFailure'))return{};const _0x155bd8=_0x21fd28;if(_0x34f5e4['bqWOg'](_0x155bd8['tool_name'],_0x34f5e4['wudXP']))return{};return await _0x515269['trackPhaseError']('tool_failure',_0x155bd8['error'],{'transport':_0x34f5e4['YTqoG'],'toolName':_0x34f5e4[_0x2b65d8(0x8d)]}),{};};return{'postToolUseHook':_0x49b9ee,'postToolUseFailureHook':_0x4ede24,'commandCounts':_0x503574};}async function runPlaywrightCliLifecycleCommand(_0x768196){const _0x185b76=_0x1e5a,_0x43c52d={'lfvMK':function(_0x1168c7,_0x99c5a7){return _0x1168c7(_0x99c5a7);},'UmnHA':function(_0x627e8b,_0x2446d9,_0x1206d3){return _0x627e8b(_0x2446d9,_0x1206d3);},'xGvLh':function(_0xcc5136,_0x475947,_0xc94c95){return _0xcc5136(_0x475947,_0xc94c95);}},{sessionId:_0x50e6fa,configPath:_0x45c9a5,commandArgs:_0x5628f8,env:_0x5349a0,telemetry:_0x4309b7,phase:_0x36454c,metadata:_0x327e1a,timeoutMs:_0x188155}=_0x768196;_0x4309b7['trackPhaseStart'](_0x36454c,_0x327e1a);try{const _0x20c003=await _0x43c52d['lfvMK'](runPlaywrightCliCommand,{'sessionId':_0x50e6fa,'configPath':_0x45c9a5,'commandArgs':_0x5628f8,'cwd':process[_0x185b76(0x7e)](),'env':_0x5349a0,'timeoutMs':_0x188155??PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x4309b7['trackPhaseEnd'](_0x36454c,{..._0x327e1a,'subcommand':_0x20c003[_0x185b76(0xae)][_0x185b76(0x76)],'stdoutPreview':_0x43c52d[_0x185b76(0x7a)](truncatePreview,_0x20c003['stdout'],0x7d0),'stderrPreview':_0x43c52d[_0x185b76(0x6f)](truncatePreview,_0x20c003['stderr'],0x7d0)});}catch(_0x47e0cc){await _0x4309b7[_0x185b76(0x9f)](_0x36454c,_0x47e0cc,_0x327e1a);throw _0x47e0cc;}}export async function finalizeVerifyFeatureCliSession(_0x2b16b0){const _0x2f65d7=_0x1e5a,_0xcfcf3d={'WIWaz':'tracing-stop','qYuxJ':'playwright_cli_video_stop','UEYdb':'close'},{telemetry:_0x12ff6e,sessionId:_0x56beef,configPath:_0x3f0ef6,cliArtifactDir:_0x525564,env:_0x5a4c98,transportMetadata:_0x31e87e}=_0x2b16b0,_0xf5c427=[{'phase':_0x2f65d7(0x72),'commandArgs':[_0xcfcf3d[_0x2f65d7(0xbc)]]},{'phase':_0xcfcf3d['qYuxJ'],'commandArgs':[_0x2f65d7(0xb1),_0x2f65d7(0x9c)+buildCliArtifactPath(_0x525564,'session-recording.webm')]},{'phase':'playwright_cli_close','commandArgs':[_0xcfcf3d['UEYdb']]}];for(const _0x506eb9 of _0xf5c427){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x56beef,'configPath':_0x3f0ef6,'commandArgs':[..._0x506eb9[_0x2f65d7(0xd2)]],'env':_0x5a4c98,'telemetry':_0x12ff6e,'phase':_0x506eb9['phase'],'metadata':_0x31e87e});}catch{}}}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x5c3214){const _0x1eeed0=_0x1e5a,_0x3640b3={'xBOjI':'trace.zip','eyaiL':function(_0xda1f2d,_0xbdca4f,_0x401a3c){return _0xda1f2d(_0xbdca4f,_0x401a3c);}},_0x3e6cb6=[_0x3640b3['xBOjI'],_0x1eeed0(0x89)];for(const _0x4a3b89 of _0x3e6cb6){const _0x41e9f5=_0x3640b3[_0x1eeed0(0xc9)](join,_0x5c3214,_0x4a3b89);try{return{'buffer':await readFile(_0x41e9f5),'source':_0x41e9f5};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x9f6189){const _0x17f974=_0x1e5a,_0x201a90={'lfiEw':function(_0x396fc1,_0x4ab804,_0x1738b2){return _0x396fc1(_0x4ab804,_0x1738b2);},'wBWsT':function(_0x3017de,_0x1d5ab5,_0x19bfb8){return _0x3017de(_0x1d5ab5,_0x19bfb8);},'yKTcz':function(_0xd6048d,_0x2e3dac,_0x395eb8){return _0xd6048d(_0x2e3dac,_0x395eb8);},'TALxk':function(_0x462023,_0x3698f7){return _0x462023(_0x3698f7);},'HqFAY':function(_0x42b675,_0x4f2f41){return _0x42b675<_0x4f2f41;},'uXhIG':function(_0x37be31,_0x373115){return _0x37be31+_0x373115;}},{cwd:_0x3a4ee3,cliArtifactDir:_0x430dce,startTime:_0x1229ff}=_0x9f6189,_0x1efddc=[];await _0x201a90['lfiEw'](mkdir,_0x430dce,{'recursive':!![]});const _0x4d46fa=await _0x201a90['wBWsT'](readdir,_0x3a4ee3,{'withFileTypes':!![]});for(const _0x42cc49 of _0x4d46fa){if(!_0x42cc49[_0x17f974(0x66)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x42cc49[_0x17f974(0xb8)]))continue;const _0xc8218c=_0x201a90[_0x17f974(0x79)](join,_0x3a4ee3,_0x42cc49[_0x17f974(0xb8)]),_0x13d45b=await _0x201a90['TALxk'](stat,_0xc8218c);if(_0x201a90['HqFAY'](_0x201a90[_0x17f974(0xcf)](_0x13d45b['mtimeMs'],0x7d0),_0x1229ff))continue;const _0x5da9c0=_0x201a90[_0x17f974(0x79)](buildCliArtifactPath,_0x430dce,_0x42cc49[_0x17f974(0xb8)]);if(_0xc8218c===_0x5da9c0)continue;await _0x201a90['wBWsT'](rename,_0xc8218c,_0x5da9c0),_0x1efddc['push'](_0x42cc49['name']);}return _0x1efddc[_0x17f974(0xc1)]();}
|
|
1
|
+
(function(_0x27e1d4,_0x2862ab){const _0x33bdca=_0x33e3,_0x3e5c8b=_0x27e1d4();while(!![]){try{const _0x171f33=parseInt(_0x33bdca(0x146))/0x1*(parseInt(_0x33bdca(0x143))/0x2)+-parseInt(_0x33bdca(0xf4))/0x3*(-parseInt(_0x33bdca(0x104))/0x4)+parseInt(_0x33bdca(0x148))/0x5*(parseInt(_0x33bdca(0x136))/0x6)+-parseInt(_0x33bdca(0xdb))/0x7+parseInt(_0x33bdca(0xcf))/0x8+parseInt(_0x33bdca(0x117))/0x9*(-parseInt(_0x33bdca(0xfc))/0xa)+-parseInt(_0x33bdca(0x13f))/0xb*(parseInt(_0x33bdca(0x11d))/0xc);if(_0x171f33===_0x2862ab)break;else _0x3e5c8b['push'](_0x3e5c8b['shift']());}catch(_0x58cdd1){_0x3e5c8b['push'](_0x3e5c8b['shift']());}}}(_0x2519,0x3658f));function _0x33e3(_0x5050d2,_0x32be42){_0x5050d2=_0x5050d2-0xbb;const _0x251908=_0x2519();let _0x33e371=_0x251908[_0x5050d2];return _0x33e371;}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(_0x2ba35f,_0x324fc9=PLAYWRIGHT_CLI_PREVIEW_LIMIT){const _0x455024=_0x33e3,_0x1a73af={'BcwHb':_0x455024(0xdd)};return _0x2ba35f[_0x455024(0x156)]>_0x324fc9?_0x2ba35f[_0x455024(0xea)](0x0,_0x324fc9)+_0x1a73af['BcwHb']:_0x2ba35f;}function buildCliArtifactPath(_0x5a08af,_0x3af7e1){const _0x10315e=_0x33e3,_0xcf1500={'QUVjb':function(_0x3ec2e8,_0x14c8ca,_0x4dd527){return _0x3ec2e8(_0x14c8ca,_0x4dd527);}};return _0xcf1500[_0x10315e(0xc8)](join,_0x5a08af,_0x3af7e1);}function toStepDisplayName(_0x3de555){const _0x5d6fa0=_0x33e3,_0x244c72={'apJju':function(_0x101cff,_0x529e44){return _0x101cff(_0x529e44);}},_0x1d4077=_0x244c72[_0x5d6fa0(0xc6)](basename,_0x3de555)['replace'](/\.(?:png|ya?ml)$/i,'')[_0x5d6fa0(0xd2)](/^key_/i,'')['replace'](/^\d+_/,'')[_0x5d6fa0(0xd2)](/-/g,'\x20');return{'name':_0x1d4077,'isKeyStep':/^key_/i['test'](basename(_0x3de555))};}function extractShellValue(_0x4498f3){if(!_0x4498f3)return null;return _0x4498f3[0x1]??_0x4498f3[0x2]??_0x4498f3[0x3]??null;}function extractFilenameOption(_0x557814){const _0x5d0d6c=_0x33e3,_0x5a6822={'otFCH':function(_0x20a0bc,_0x30fb96){return _0x20a0bc(_0x30fb96);}};return _0x5a6822[_0x5d0d6c(0x10c)](extractShellValue,_0x557814['match'](/--filename(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function extractFirstCommandArgument(_0x856b38,_0x3e67ef){const _0x178318=_0x33e3,_0x342ee5={'HsZpi':'\x5c$&'},_0x9a0ef0=_0x3e67ef['replace'](/[.*+?^${}()|[\]\\]/g,_0x342ee5[_0x178318(0x113)]);return extractShellValue(_0x856b38['match'](new RegExp(_0x178318(0xd8)+_0x9a0ef0+_0x178318(0xfb))));}function formatCommandTarget(_0x1945d3){const _0x58da7d=_0x33e3;if(!_0x1945d3)return'target';if(/^e\d+$/i[_0x58da7d(0xe1)](_0x1945d3))return'ref\x20'+_0x1945d3;return JSON['stringify'](truncatePreview(_0x1945d3,0x78));}function formatPlaywrightCliLog(_0x499a89,_0x5709bd){const _0x1cce68=_0x33e3,_0x123105={'hegVD':_0x1cce68(0xbd),'MuURv':function(_0x10aed6,_0xfb3abe,_0x33be9e){return _0x10aed6(_0xfb3abe,_0x33be9e);},'mCgjM':_0x1cce68(0x123),'BMGJO':_0x1cce68(0x112),'iuTkB':'tracing-stop','KlwPq':_0x1cce68(0x11e),'iKBpV':_0x1cce68(0x11a),'byQWS':_0x1cce68(0x111),'yhNwu':function(_0x2b20a5,_0x53622f){return _0x2b20a5(_0x53622f);},'xnbSj':function(_0x54eea2,_0x181412){return _0x54eea2(_0x181412);},'RAdCW':'capture\x20screenshot','UiLHH':_0x1cce68(0x105),'rXBCd':function(_0x266479,_0x3a9b5e){return _0x266479(_0x3a9b5e);},'DYNHp':_0x1cce68(0x121),'yAuWV':function(_0x2d437f,_0x6069e4){return _0x2d437f(_0x6069e4);},'RnElM':_0x1cce68(0x145),'IvDNq':'tab-new','txwGY':'select\x20tab'};switch(_0x5709bd){case _0x123105[_0x1cce68(0xd7)]:{const _0x5511c8=_0x123105[_0x1cce68(0x10a)](extractFirstCommandArgument,_0x499a89,_0x5709bd);return _0x5511c8?'open\x20'+_0x5511c8:_0x123105['mCgjM'];}case _0x123105[_0x1cce68(0x12d)]:return'start\x20tracing';case _0x123105['iuTkB']:return _0x123105[_0x1cce68(0xce)];case _0x1cce68(0xc5):return _0x123105[_0x1cce68(0x127)];case'video-stop':return'stop\x20video\x20recording';case _0x1cce68(0xc9):{const _0x3b2cc1=extractFilenameOption(_0x499a89);if(!_0x3b2cc1)return _0x123105[_0x1cce68(0x141)];const {name:_0x538a00}=_0x123105['yhNwu'](toStepDisplayName,_0x3b2cc1);return'capture\x20snapshot\x20`'+_0x538a00+'`';}case'screenshot':{const _0x5b5ddb=_0x123105['xnbSj'](extractFilenameOption,_0x499a89);if(!_0x5b5ddb)return _0x123105[_0x1cce68(0xd0)];const {name:_0x271753,isKeyStep:_0x52de58}=_0x123105['yhNwu'](toStepDisplayName,_0x5b5ddb);return _0x52de58?'capture\x20key\x20step\x20`'+_0x271753+'`':_0x1cce68(0x150)+_0x271753+'`';}case _0x123105[_0x1cce68(0x122)]:return _0x1cce68(0x108)+_0x123105[_0x1cce68(0x132)](formatCommandTarget,extractFirstCommandArgument(_0x499a89,_0x5709bd));case _0x123105[_0x1cce68(0x140)]:return'check\x20'+_0x123105[_0x1cce68(0x107)](formatCommandTarget,_0x123105[_0x1cce68(0x10a)](extractFirstCommandArgument,_0x499a89,_0x5709bd));case _0x1cce68(0x129):return'fill\x20'+formatCommandTarget(extractFirstCommandArgument(_0x499a89,_0x5709bd));case'press':return _0x1cce68(0x133)+_0x123105['rXBCd'](formatCommandTarget,extractFirstCommandArgument(_0x499a89,_0x5709bd));case _0x123105['RnElM']:return _0x1cce68(0x12c);case _0x123105[_0x1cce68(0xde)]:{const _0x217425=extractFirstCommandArgument(_0x499a89,_0x5709bd);return _0x217425?_0x1cce68(0x101)+_0x217425:'open\x20new\x20tab';}case'tab-select':{const _0x293986=_0x123105['MuURv'](extractFirstCommandArgument,_0x499a89,_0x5709bd);return _0x293986?_0x1cce68(0xe7)+_0x293986:_0x123105['txwGY'];}default:return _0x5709bd;}}function extractPlaywrightCliToolDescription(_0x3f0814){const _0x55207b=_0x33e3,_0x1a53eb={'JIaHi':_0x55207b(0xcb),'dPIsy':function(_0xdde0ba,_0x54d11a){return _0xdde0ba>_0x54d11a;}},_0x3b745b=_0x3f0814['description'];if(typeof _0x3b745b!==_0x1a53eb['JIaHi'])return null;const _0x3d98d0=_0x3b745b['trim']()[_0x55207b(0xd2)](/\s+/g,'\x20');return _0x1a53eb['dPIsy'](_0x3d98d0[_0x55207b(0x156)],0x0)?_0x3d98d0:null;}export function formatPlaywrightCliConsoleLogMessage(_0x531c34,_0x5c1f4c,_0x2cf217){const _0x56d586=_0x33e3,_0x2d681f={'sAsUV':function(_0x4422c6,_0x23c2b6){return _0x4422c6(_0x23c2b6);}},_0x1fb52c=formatPlaywrightCliLog(_0x5c1f4c,_0x2cf217),_0x50ac4d=_0x2d681f[_0x56d586(0xbc)](extractPlaywrightCliToolDescription,_0x531c34);if(!_0x50ac4d)return'[playwright-cli]\x20'+_0x1fb52c;if(process['env'][_0x56d586(0x100)])return _0x56d586(0x109)+_0x50ac4d+'\x20('+_0x1fb52c+')';return'[ranger-verification-agent]\x20'+_0x50ac4d;}export function buildVerifyFeatureCliDebugPrompt(_0x4d5eb1,_0x1f71e9){const _0x4c46c0=_0x33e3,_0x278313={'xScEX':function(_0x4ce336,_0x129855,_0x5e427f){return _0x4ce336(_0x129855,_0x5e427f);},'bAwWC':_0x4c46c0(0x110),'mHmXH':_0x4c46c0(0x106),'GVHEH':function(_0x334b3c,_0x4101b1,_0x1f566d){return _0x334b3c(_0x4101b1,_0x1f566d);},'PFTkU':function(_0x4f88f9,_0x2eb830){return _0x4f88f9(_0x2eb830);},'awmFk':function(_0x376f7c,_0x2731d5){return _0x376f7c(_0x2731d5);}},_0x366558=_0x278313['xScEX'](buildCliArtifactPath,_0x1f71e9,_0x278313[_0x4c46c0(0xf1)]),_0x1611bd=_0x278313['xScEX'](buildCliArtifactPath,_0x1f71e9,_0x278313[_0x4c46c0(0x12a)]),_0x5e9547=_0x278313[_0x4c46c0(0xf2)](buildCliArtifactPath,_0x1f71e9,'02_learn-more.yml'),_0x7320d2=_0x278313['GVHEH'](buildCliArtifactPath,_0x1f71e9,'03_learn-more.png'),_0x7e160d=quoteShellArg(_0x366558),_0x2caeda=_0x278313['PFTkU'](quoteShellArg,_0x1611bd),_0x148cde=_0x278313[_0x4c46c0(0x14d)](quoteShellArg,_0x5e9547),_0x3abc93=quoteShellArg(_0x7320d2);return _0x4c46c0(0xef)+_0x4d5eb1+_0x4c46c0(0xdf)+_0x4d5eb1+_0x4c46c0(0xf9)+_0x4d5eb1+_0x4c46c0(0x155)+_0x4d5eb1+'\x20video-start`\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x1f71e9+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a5.\x20Run\x20`'+_0x4d5eb1+_0x4c46c0(0x13d)+_0x7e160d+_0x4c46c0(0x14b)+_0x4d5eb1+_0x4c46c0(0x152)+_0x2caeda+'`\x0a7.\x20Click\x20the\x20\x22Learn\x20More\x22\x20link\x20with\x20Playwright\x20CLI\x0a8.\x20Run\x20`'+_0x4d5eb1+_0x4c46c0(0x13d)+_0x148cde+'`\x0a9.\x20Run\x20`'+_0x4d5eb1+_0x4c46c0(0x152)+_0x3abc93+_0x4c46c0(0xe8);}export function buildVerifyFeatureCliPrompt(_0x55b446){const _0x3c1c99=_0x33e3,_0x1ed808={'jzIYG':_0x3c1c99(0x128),'EauBo':_0x3c1c99(0xc3),'PhvIF':_0x3c1c99(0xe6),'DOTra':function(_0x22932a,_0x5989ac,_0x2d89ef){return _0x22932a(_0x5989ac,_0x2d89ef);},'vwuOU':function(_0x1526b2,_0x552f88,_0x1a67af){return _0x1526b2(_0x552f88,_0x1a67af);},'iUMbw':_0x3c1c99(0xc2),'gpvNS':function(_0x5de7b4,_0x188ebb){return _0x5de7b4(_0x188ebb);},'LCKYw':function(_0xd77721,_0x5040be){return _0xd77721>_0x5040be;},'LTUqf':_0x3c1c99(0x118),'ezLkX':function(_0x488695,_0xaa6e68,_0x289ac4){return _0x488695(_0xaa6e68,_0x289ac4);},'vBqBg':_0x3c1c99(0x137),'vfdTI':_0x3c1c99(0x119)},{checklistItem:_0x4189f7,itemFeedback:_0x3263de,taskDescription:_0x318976,cliCommandPrefix:_0x4d7499,cliArtifactDir:_0x2a931c,isCdpMode:_0x4ea7be,url:_0x4aed30,cdpEndpoint:_0xab05dc,loginInstructions:_0x5e6d28}=_0x55b446,_0x3a9e21=_0x1ed808['DOTra'](buildCliArtifactPath,_0x2a931c,_0x3c1c99(0xc4)),_0x45989d=_0x1ed808['DOTra'](buildCliArtifactPath,_0x2a931c,'02_state.yml'),_0x453802=_0x1ed808[_0x3c1c99(0x144)](buildCliArtifactPath,_0x2a931c,_0x3c1c99(0x13c)),_0x42f2b3=buildCliArtifactPath(_0x2a931c,_0x1ed808[_0x3c1c99(0x11b)]),_0xea6feb=quoteShellArg(_0x3a9e21),_0x46d2ad=quoteShellArg(_0x45989d),_0x2b21d5=_0x1ed808[_0x3c1c99(0x131)](quoteShellArg,_0x453802),_0x572920=quoteShellArg(_0x42f2b3),_0x59907c=_0x4189f7[_0x3c1c99(0xcd)]?_0x3c1c99(0x11f)+_0x4189f7['notes']:'';let _0x20897e='';if(_0x3263de&&_0x1ed808['LCKYw'](_0x3263de[_0x3c1c99(0x114)]['length'],0x0)){const _0x1d7621=_0x3263de[_0x3c1c99(0x114)]['map'](_0x59b4ac=>{const _0x2f8a2e=_0x3c1c99,_0x4eacff=new Date(_0x59b4ac['createdAt'])['toLocaleDateString'](_0x1ed808['jzIYG'],{'month':'short','day':'numeric'}),_0x18fc12=_0x59b4ac['authorName']||_0x59b4ac['authorEmail']||_0x2f8a2e(0xf0),_0x8f541b=_0x59b4ac['domRef']?_0x2f8a2e(0x13e)+(_0x59b4ac[_0x2f8a2e(0xd6)][_0x2f8a2e(0x116)]['split'](_0x1ed808['EauBo'])['pop']()?.[_0x2f8a2e(0xfa)](':')[0x0]||_0x1ed808[_0x2f8a2e(0xf6)])+'>\x20\x22'+(_0x59b4ac['domRef']['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x2f8a2e(0xbb)+_0x59b4ac['id']+']\x20**'+_0x18fc12+'**\x20('+_0x4eacff+'):\x20\x22'+_0x59b4ac[_0x2f8a2e(0xf3)]+'\x22'+_0x8f541b;})[_0x3c1c99(0x147)]('\x0a');_0x20897e='\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'+_0x1d7621;}const _0x4755f2=_0x3263de?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x3263de['canonicalFlow']:'',_0x2c12d4=_0x4ea7be?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20(Chrome\x20DevTools\x20Protocol)\x20at\x20'+_0xab05dc+'.\x0aThis\x20is\x20NOT\x20a\x20web\x20app\x20—\x20there\x20is\x20no\x20URL\x20to\x20navigate\x20to.\x20The\x20app\x20is\x20already\x20running\x20and\x20connected.':_0x3c1c99(0xcc)+_0x4aed30+'\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',_0x2a48a4=_0x4aed30?quoteShellArg(_0x4aed30):'',_0x3c4ca9=_0x4ea7be?_0x3c1c99(0xe5)+_0x4d7499+_0x3c1c99(0xff)+_0x4d7499+_0x3c1c99(0xdc)+_0x4d7499+'\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x2a931c+_0x3c1c99(0xc7)+_0x4d7499+'\x20snapshot\x20--filename\x20'+_0xea6feb+_0x3c1c99(0x14f)+_0x4d7499+'\x20screenshot\x20--filename\x20'+_0x572920+_0x3c1c99(0x102)+_0x4d7499+'\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':_0x3c1c99(0xe5)+_0x4d7499+_0x3c1c99(0xc0)+_0x2a48a4+'`,\x20then\x20`'+_0x4d7499+_0x3c1c99(0xdc)+_0x4d7499+_0x3c1c99(0x12f)+_0x2a931c+'`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`'+_0x4d7499+_0x3c1c99(0x13d)+_0xea6feb+_0x3c1c99(0xe9)+_0x4d7499+_0x3c1c99(0x152)+_0x572920+'`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a8.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`'+_0x4d7499+'\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',_0x5a1165=_0x4ea7be?'\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.':_0x3c1c99(0x10e),_0x305aca=_0x5e6d28?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20you\x20MUST\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x5e6d28+'\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 _0x3c1c99(0x10b)+_0x4189f7[_0x3c1c99(0xbf)]+_0x59907c+_0x20897e+_0x4755f2+_0x3c1c99(0xbe)+_0x318976+'\x0a\x0a'+_0x2c12d4+_0x305aca+'\x0a\x0a'+_0x3c4ca9+'\x0a\x0a##\x20Browser\x20Command\x20Reference\x0aUse\x20Bash\x20to\x20run\x20Playwright\x20CLI\x20commands\x20with\x20this\x20exact\x20prefix:\x0a`'+_0x4d7499+'`\x0a\x0a-\x20Write\x20all\x20artifacts\x20under\x20`'+_0x2a931c+_0x3c1c99(0x138)+_0x46d2ad+_0x3c1c99(0x142)+_0x2b21d5+'`\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`'+_0x2a931c+'`:\x20\x22'+_0x42f2b3+_0x3c1c99(0x14a)+_0x1ed808[_0x3c1c99(0x149)](buildCliArtifactPath,_0x2a931c,_0x1ed808[_0x3c1c99(0x12b)])+_0x3c1c99(0x14a)+_0x1ed808[_0x3c1c99(0x10f)](buildCliArtifactPath,_0x2a931c,_0x1ed808[_0x3c1c99(0x12e)])+_0x3c1c99(0xf7)+_0x1ed808[_0x3c1c99(0x149)](buildCliArtifactPath,_0x2a931c,_0x1ed808[_0x3c1c99(0xe4)])+_0x3c1c99(0x120)+_0x5a1165+'\x0a##\x20Evaluation\x20Criteria\x0a-\x20VERIFIED:\x20The\x20task\x20completed\x20successfully\x20and\x20the\x20scenario\x20requirements\x20are\x20fully\x20met\x0a-\x20PARTIAL:\x20The\x20task\x20partially\x20completed\x20but\x20some\x20aspects\x20of\x20the\x20scenario\x20are\x20not\x20verified\x0a-\x20BLOCKED:\x20A\x20blocking\x20issue\x20(bug,\x20error,\x20missing\x20feature)\x20prevents\x20completion\x0a-\x20FAILED:\x20The\x20task\x20could\x20not\x20be\x20completed\x20due\x20to\x20errors\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format\x20with\x20your\x20evaluation.';}export function summarizeVerifyFeatureCliCommandAvailability(_0x3b68ad){const _0x4bab28=_0x33e3,_0x1aebf3=[..._0x3b68ad[_0x4bab28(0x125)]()][_0x4bab28(0x154)]();let _0x570cc9=0x0;for(const _0x7e1aff of _0x3b68ad[_0x4bab28(0xf5)]()){_0x570cc9+=_0x7e1aff;}return{'cliCommandCount':_0x570cc9,'cliCommandsSeen':_0x1aebf3,'noCliCommandsCalled':_0x570cc9===0x0};}export function createVerifyFeatureCliHooks(_0x4f840b){const _0x5d58cf=_0x33e3,_0x1a6986={'LgVpt':function(_0x43910f,_0x1f669e){return _0x43910f+_0x1f669e;},'oXuCW':_0x5d58cf(0xed),'vZvkX':function(_0x1d1481,_0x2586ee){return _0x1d1481!==_0x2586ee;},'InkAe':'Bash'},_0x7c6824=new Map(),_0x284b32=async _0x20344f=>{const _0x2af150=_0x5d58cf;if(_0x20344f[_0x2af150(0x10d)]!==_0x2af150(0xc1))return{};const _0x4d0c5e=_0x20344f;if(_0x4d0c5e[_0x2af150(0x135)]!==_0x2af150(0xec))return{};const _0x18e8b6=_0x4d0c5e[_0x2af150(0x126)],_0x10ef61=extractBashCommand(_0x18e8b6);if(!_0x10ef61)return{};const _0x50b490=parsePlaywrightCliCommand(_0x10ef61);if(!_0x50b490)return{};return _0x7c6824[_0x2af150(0xfd)](_0x50b490,_0x1a6986[_0x2af150(0xe2)](_0x7c6824[_0x2af150(0xd9)](_0x50b490)||0x0,0x1)),_0x4f840b[_0x2af150(0xfe)]('tool_call',{'transport':'playwright-cli','toolName':_0x50b490}),_0x4f840b['trackPhaseEnd']('tool_call',{'transport':_0x1a6986[_0x2af150(0x134)],'toolName':_0x50b490,'bashCommandPreview':truncatePreview(_0x10ef61)}),_0x50b490!=='snapshot'&&console[_0x2af150(0x13b)](formatPlaywrightCliConsoleLogMessage(_0x18e8b6,_0x10ef61,_0x50b490)),{};},_0x27ae31=async _0xa0fcb2=>{const _0x12a373=_0x5d58cf;if(_0xa0fcb2[_0x12a373(0x10d)]!==_0x12a373(0x153))return{};const _0x39c924=_0xa0fcb2;if(_0x1a6986['vZvkX'](_0x39c924['tool_name'],_0x1a6986[_0x12a373(0xca)]))return{};return await _0x4f840b['trackPhaseError']('tool_failure',_0x39c924['error'],{'transport':_0x1a6986['oXuCW'],'toolName':'Bash'}),{};};return{'postToolUseHook':_0x284b32,'postToolUseFailureHook':_0x27ae31,'commandCounts':_0x7c6824};}async function runPlaywrightCliLifecycleCommand(_0x206a1f){const _0x526507=_0x33e3,_0x2db980={'NxaGP':function(_0x117ed1,_0x5cdf44){return _0x117ed1??_0x5cdf44;},'nbRyB':function(_0x5a7f22,_0x4af131,_0x5de92c){return _0x5a7f22(_0x4af131,_0x5de92c);}},{sessionId:_0x1a1f83,configPath:_0x33892d,commandArgs:_0x5272d0,env:_0x196424,telemetry:_0x27331d,phase:_0x365933,metadata:_0xbdadcb,timeoutMs:_0x7a5d1}=_0x206a1f;_0x27331d[_0x526507(0xfe)](_0x365933,_0xbdadcb);try{const _0x34c73f=await runPlaywrightCliCommand({'sessionId':_0x1a1f83,'configPath':_0x33892d,'commandArgs':_0x5272d0,'cwd':process[_0x526507(0x124)](),'env':_0x196424,'timeoutMs':_0x2db980['NxaGP'](_0x7a5d1,PLAYWRIGHT_CLI_COMMAND_TIMEOUT_MS)});_0x27331d['trackPhaseEnd'](_0x365933,{..._0xbdadcb,'subcommand':_0x34c73f[_0x526507(0x11c)][_0x526507(0x14c)],'stdoutPreview':_0x2db980['nbRyB'](truncatePreview,_0x34c73f[_0x526507(0x139)],0x7d0),'stderrPreview':truncatePreview(_0x34c73f['stderr'],0x7d0)});}catch(_0x32f762){await _0x27331d['trackPhaseError'](_0x365933,_0x32f762,_0xbdadcb);throw _0x32f762;}}export async function finalizeVerifyFeatureCliSession(_0xb69349){const _0x483296=_0x33e3,_0x48fc65={'kQEkG':_0x483296(0xda),'WkbjW':'playwright_cli_video_stop','zCUer':'session-recording.webm','WInHX':'close'},{telemetry:_0x20f8da,sessionId:_0x387af7,configPath:_0xcd8896,cliArtifactDir:_0x2f5167,env:_0x2c01f5,transportMetadata:_0x5146cb}=_0xb69349,_0x30095a=[{'phase':_0x483296(0xd1),'commandArgs':[_0x48fc65[_0x483296(0xeb)]]},{'phase':_0x48fc65['WkbjW'],'commandArgs':[_0x483296(0x151),'--filename='+buildCliArtifactPath(_0x2f5167,_0x48fc65[_0x483296(0xd3)])]},{'phase':_0x483296(0xd4),'commandArgs':[_0x48fc65[_0x483296(0x115)]]}];for(const _0xc69e38 of _0x30095a){try{await runPlaywrightCliLifecycleCommand({'sessionId':_0x387af7,'configPath':_0xcd8896,'commandArgs':[..._0xc69e38['commandArgs']],'env':_0x2c01f5,'telemetry':_0x20f8da,'phase':_0xc69e38['phase'],'metadata':_0x5146cb});}catch{}}}function _0x2519(){const _0x2866f1=['capture\x20snapshot','tracing-start','HsZpi','unaddressedComments','WInHX','selector','18BTkVFc','02_button-clicked.png','key_04_success-state.png','start\x20video\x20recording','iUMbw','invocation','1367364SLUTOc','stop\x20tracing','\x0a\x0a##\x20Additional\x20Notes\x0a','\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','check','UiLHH','open\x20browser','cwd','keys','tool_input','iKBpV','en-US','fill','mHmXH','LTUqf','run\x20custom\x20Playwright\x20code','BMGJO','vBqBg','\x20video-start`.\x0a3.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`','isFile','gpvNS','rXBCd','press\x20','oXuCW','tool_name','510oSpxZg','03_result-visible.png','`\x0a-\x20`snapshot\x20--filename\x20','stdout','xLpqP','log','key_03_success-state.png','\x20snapshot\x20--filename\x20','\x20(on\x20element:\x20<','22juItPu','DYNHp','byQWS','`\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','484ObOZfu','vwuOU','run-code','1803qBvIQT','join','10525QVtprE','DOTra','\x22,\x20\x22','`\x0a5.\x20Read\x20the\x20snapshot\x20file\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20reference\x0a6.\x20Run\x20`','subcommand','awmFk','HNtOw','`\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`','capture\x20step\x20`','video-stop','\x20screenshot\x20--filename\x20','PostToolUseFailure','sort','\x20tracing-start`\x0a3.\x20Run\x20`','length','-\x20[','sAsUV','open','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','description','\x20open\x20','PostToolUse','01_initial-state.png','\x20>\x20','01_initial.yml','video-start','apJju','`\x20using\x20absolute\x20paths\x20only.\x20Do\x20not\x20use\x20relative\x20filenames.\x0a4.\x20Take\x20a\x20snapshot\x20with\x20`','QUVjb','snapshot','InkAe','string','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','notes','KlwPq','1215352eZuyGI','RAdCW','playwright_cli_tracing_stop','replace','zCUer','playwright_cli_close','trace.zip','domRef','hegVD','(?:^|\x5cs)','get','tracing-stop','3061562wFKsdp','\x20tracing-start`,\x20then\x20`','...','IvDNq','\x0a\x0a1.\x20Run\x20`','mtimeMs','test','LgVpt','IbsNv','vfdTI','##\x20Instructions\x0a1.\x20Use\x20Bash\x20plus\x20Playwright\x20CLI\x20only.\x20Do\x20NOT\x20call\x20MCP\x20browser\x20tools.\x0a2.\x20Start\x20by\x20running\x20`','element','select\x20tab\x20','`\x0a10.\x20Return\x20immediately\x20with\x20the\x20structured\x20output\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','`\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`','slice','kQEkG','Bash','playwright-cli','rVDMP','You\x20are\x20testing\x20browser\x20automation.\x20Your\x20task\x20is\x20simple:\x0a\x0aUse\x20Bash\x20and\x20Playwright\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','Reviewer','bAwWC','GVHEH','content','33QMvqzr','values','PhvIF','\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','push','\x20open\x20https://www.mozilla.org`\x0a2.\x20Run\x20`','split','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','1366010gRVdjY','set','trackPhaseStart','\x20open`,\x20then\x20`','DEBUG','open\x20new\x20tab\x20','`\x20style\x20absolute\x20paths\x20at\x20key\x20moments.\x0a6.\x20If\x20you\x20need\x20waits\x20or\x20custom\x20assertions,\x20use\x20`','name','143236jqujrt','click','01_mozilla-homepage.png','yAuWV','click\x20','[ranger-verification-agent]\x20','MuURv','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','otFCH','hook_event_name','\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.','ezLkX','00_mozilla-homepage.yml'];_0x2519=function(){return _0x2866f1;};return _0x2519();}export async function loadVerifyFeatureCliTraceUploadArtifact(_0x353871){const _0x207832=_0x33e3,_0x465e41={'rVDMP':function(_0x58af3c,_0x1e7e03,_0xb15803){return _0x58af3c(_0x1e7e03,_0xb15803);}},_0x5c04cd=[_0x207832(0xd5),'trace.trace.zip'];for(const _0x577106 of _0x5c04cd){const _0x172b3e=_0x465e41[_0x207832(0xee)](join,_0x353871,_0x577106);try{return{'buffer':await readFile(_0x172b3e),'source':_0x172b3e};}catch{}}return null;}export async function rehomeVerifyFeatureCliArtifacts(_0x463cd4){const _0x391381=_0x33e3,_0x5642f6={'HNtOw':function(_0x54bcbf,_0x1f67fa,_0x11d173){return _0x54bcbf(_0x1f67fa,_0x11d173);},'IbsNv':function(_0x40c891,_0x149495,_0x10bd94){return _0x40c891(_0x149495,_0x10bd94);},'uZUKd':function(_0x30bfc4,_0x461c45){return _0x30bfc4<_0x461c45;},'xPior':function(_0x591ad0,_0xd7fe8e){return _0x591ad0+_0xd7fe8e;},'xLpqP':function(_0x5ae2d3,_0x403b8b){return _0x5ae2d3===_0x403b8b;},'JPsmW':function(_0x5c8e70,_0x4f4394,_0x2ae3c0){return _0x5c8e70(_0x4f4394,_0x2ae3c0);}},{cwd:_0x561070,cliArtifactDir:_0x5b1cbb,startTime:_0x5003c7}=_0x463cd4,_0x5bc59c=[];await mkdir(_0x5b1cbb,{'recursive':!![]});const _0xf1c4e1=await _0x5642f6[_0x391381(0x14e)](readdir,_0x561070,{'withFileTypes':!![]});for(const _0x5e7150 of _0xf1c4e1){if(!_0x5e7150[_0x391381(0x130)]()||!VERIFY_FEATURE_CLI_ARTIFACT_FILE_PATTERN['test'](_0x5e7150[_0x391381(0x103)]))continue;const _0x5a1c47=_0x5642f6[_0x391381(0xe3)](join,_0x561070,_0x5e7150[_0x391381(0x103)]),_0x43b302=await stat(_0x5a1c47);if(_0x5642f6['uZUKd'](_0x5642f6['xPior'](_0x43b302[_0x391381(0xe0)],0x7d0),_0x5003c7))continue;const _0x46792f=buildCliArtifactPath(_0x5b1cbb,_0x5e7150[_0x391381(0x103)]);if(_0x5642f6[_0x391381(0x13a)](_0x5a1c47,_0x46792f))continue;await _0x5642f6['JPsmW'](rename,_0x5a1c47,_0x46792f),_0x5bc59c[_0x391381(0xf8)](_0x5e7150['name']);}return _0x5bc59c['sort']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x591d40=_0x16e9;(function(_0x19959f,_0x164d98){const _0xbc6fe7=_0x16e9,_0x1c5bfc=_0x19959f();while(!![]){try{const _0xfb09be=-parseInt(_0xbc6fe7(0x14d))/0x1+parseInt(_0xbc6fe7(0xc1))/0x2+-parseInt(_0xbc6fe7(0x16b))/0x3*(-parseInt(_0xbc6fe7(0xe9))/0x4)+parseInt(_0xbc6fe7(0x11d))/0x5*(-parseInt(_0xbc6fe7(0x126))/0x6)+parseInt(_0xbc6fe7(0xfa))/0x7+parseInt(_0xbc6fe7(0x15a))/0x8*(parseInt(_0xbc6fe7(0x144))/0x9)+-parseInt(_0xbc6fe7(0x171))/0xa*(parseInt(_0xbc6fe7(0x148))/0xb);if(_0xfb09be===_0x164d98)break;else _0x1c5bfc['push'](_0x1c5bfc['shift']());}catch(_0x5bbe20){_0x1c5bfc['push'](_0x1c5bfc['shift']());}}}(_0x5f16,0x7b1db));import{execFile}from'child_process';import{mkdir,readdir,readFile,rename,rm,stat,writeFile}from'fs/promises';import{homedir}from'os';import{basename,join}from'path';import{promisify}from'util';function _0x5f16(){const _0x240778=['Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','getFrameDir',']\x20**','test','kaQeh','nova_act_command','args','VxHwD','khcMf','-\x20[','EPByz','):\x20\x22','cwd','-loglevel','yGeKj','domRef','15axXzSO','error','ask','\x20>\x20','frameWrites','screencastStarted','startTraceSampling','02_final-state.yml','readSessionMetadataWithRetry','975606kqCzRM','match','CKVoo','json','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\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`','get','ffmpeg','ZlWdI','fAIEg','parse','[nova-act-cli]\x20','stdout','queueTraceSample','gaokH','VKARE','startAttempted','ScmYg','nova-act-cli','\x20snapshot\x20--output\x20','numeric','.json','data','videos','trim','`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','browser','gftwX','cliArtifactDir','hook_event_name','153HateYd','export','traceSampleInFlight','VbUei','44foxtbx','\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20','EgWEb','replace','kxdbk','419472HCQeNu','tracingStarted','JYtYf','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','stop','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','DAjjw','shellCommand','emrsa','nova-report','bpldj','selector','Reviewer','225528lMmuuH','frameCount','trackPhaseEnd','encodeScreencastVideo','Bash','\x0a\x0a##\x20Additional\x20Notes\x0a','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','SQHLm','catch','ShrkF','yGfTQ','qdkfS','isFile','faIyS','`\x0a-\x20`','JGhFl','subcommand','1920FVLoFD','HMhLJ','frame-','traceSampleTimer','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','authorEmail','1857030hwjuCQ','toLocaleDateString','pop','finally','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','env','EGmMC','ms-playwright','frame-%06d.jpg','nNTJD','log','Djedb','then','DQASN','screenshot','AJfwp','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','createdAt','01_initial-state.png','ANFkY','trackPhaseError','VKpKO','1736776gMtTUR','description','frameSession','--output','.jpg','values','params','QTmVi','-version','IntnT','Page.screencastFrameAck','nova_act_artifact_recording','ffmpeg-linux','sort','Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20','Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20','.cache','ffmpeg-mac','SlUJL','toHoi','hCYUq','execute','capture\x20step\x20`','transportMetadata','BSfPP','telemetry','close','>\x20\x22','newCDPSession','utf-8','`\x0a2.\x20Run\x20`','name','`\x0a6.\x20Run\x20`','fnmpc','ffmpeg-','SRuqF','stderr','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.','start','\x0a\x0aExamples:\x0a-\x20`','1280mlDNNB','verify','context','nova_act_session_close','contexts','browser_pid','zrXiX','stopScreencast','ievKB','zQSxk','novaOptions','send','bUQrS','BTWaW','element','nova-user-data/*','nova_act_artifact_recording_stop','4213545mbHxQh','goto','session-recording.webm','commandArgs','tool_input','now','pages','HospT','trackPhaseStart','keys','BIGyx','00_initial-state.yml','sessionId','notes','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','\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','`\x0a3.\x20Run\x20`','cdp_endpoint','canonicalFlow'];_0x5f16=function(){return _0x240778;};return _0x5f16();}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','execute','verify','ask',_0x591d40(0xfb),'wait-for','snapshot','screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x58facb,_0x1250e9){return join(_0x58facb,_0x1250e9);}export class NovaActArtifactRecorder{[_0x591d40(0xc7)];[_0x591d40(0x140)]=null;[_0x591d40(0xeb)]=null;['frameSession']=null;[_0x591d40(0x121)]=[];[_0x591d40(0x15b)]=0x0;['traceSampleCount']=0x0;[_0x591d40(0x16e)]=null;['traceSampleInFlight']=null;[_0x591d40(0x14e)]=![];['screencastStarted']=![];[_0x591d40(0x136)]=![];['stopped']=![];constructor(_0x4897e5){const _0x2d1c5c=_0x591d40;this[_0x2d1c5c(0xc7)]=_0x4897e5;}async[_0x591d40(0xe7)](){const _0x832f48=_0x591d40,_0x252209={'BIGyx':_0x832f48(0xcc)};if(this['startAttempted'])return;this['startAttempted']=!![];const _0x2b0da2=await this[_0x832f48(0x125)](),_0x3a3680=_0x2b0da2[_0x832f48(0x10b)];if(!_0x3a3680)throw new Error(_0x832f48(0xd0)+this['params'][_0x832f48(0xf3)][_0x832f48(0x106)]);await mkdir(this[_0x832f48(0xc7)][_0x832f48(0x142)],{'recursive':!![]}),this[_0x832f48(0x140)]=await chromium['connectOverCDP'](_0x3a3680,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x832f48(0xeb)]=this['browser'][_0x832f48(0xed)]()[0x0]??null;if(!this['context'])throw new Error('Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context');await this['context']['tracing'][_0x832f48(0xe7)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x832f48(0x14e)]=!![],this[_0x832f48(0x123)](),await this['startScreencast'](),this[_0x832f48(0xc7)][_0x832f48(0xda)]['trackPhaseStart'](_0x252209[_0x832f48(0x104)],{...this[_0x832f48(0xc7)][_0x832f48(0xd8)],'cdpEndpoint':_0x3a3680,'browserPid':_0x2b0da2[_0x832f48(0xee)],'sessionState':_0x2b0da2['state']}),this[_0x832f48(0xc7)][_0x832f48(0xda)]['trackPhaseEnd'](_0x252209['BIGyx'],{...this[_0x832f48(0xc7)]['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']});}async['stop'](){const _0x3bb2d7=_0x591d40,_0xa148cf={'zrXiX':'nova_act_artifact_recording_stop'};if(this['stopped'])return;this['stopped']=!![];const _0x5253dd={...this[_0x3bb2d7(0xc7)][_0x3bb2d7(0xd8)],'frameCount':this[_0x3bb2d7(0x15b)],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']};this[_0x3bb2d7(0xc7)][_0x3bb2d7(0xda)][_0x3bb2d7(0x102)](_0xa148cf[_0x3bb2d7(0xef)],_0x5253dd);try{await this['stopTraceSampling'](),await this['captureTraceSample'](),await this[_0x3bb2d7(0xf0)](),await Promise['allSettled'](this['frameWrites']);this['context']&&this[_0x3bb2d7(0x14e)]&&await this['context']['tracing'][_0x3bb2d7(0x151)]({'path':buildCliArtifactPath(this['params']['cliArtifactDir'],'trace.zip')});const _0xc101b8=await this['encodeScreencastVideo']();this['params'][_0x3bb2d7(0xda)]['trackPhaseEnd'](_0x3bb2d7(0xf9),{..._0x5253dd,'videoPath':_0xc101b8});}catch(_0x16cd6e){await this[_0x3bb2d7(0xc7)][_0x3bb2d7(0xda)][_0x3bb2d7(0x185)](_0x3bb2d7(0xf9),_0x16cd6e,_0x5253dd);}finally{await this[_0x3bb2d7(0x140)]?.['close']()['catch'](()=>undefined),this['browser']=null,this[_0x3bb2d7(0xeb)]=null,this[_0x3bb2d7(0xc3)]=null;}}async[_0x591d40(0x125)](){const _0x2d2497=_0x591d40,_0x1914ca={'SQHLm':function(_0xa7c972,_0x50d052,_0x31c195,_0x20a3d7,_0x113b54,_0x3165aa){return _0xa7c972(_0x50d052,_0x31c195,_0x20a3d7,_0x113b54,_0x3165aa);},'bNRSj':'.act_cli','HokdA':'sessions','oVmPL':_0x2d2497(0xde),'coWOD':function(_0xd0d837,_0x50aeee){return _0xd0d837(_0x50aeee);},'HospT':function(_0x32289c,_0x227521){return _0x32289c instanceof _0x227521;}},_0x52186a=_0x1914ca[_0x2d2497(0x161)](join,homedir(),_0x1914ca['bNRSj'],_0x2d2497(0x140),_0x1914ca['HokdA'],this[_0x2d2497(0xc7)]['novaOptions']['sessionId']+_0x2d2497(0x13b)),_0x1a1828=Date[_0x2d2497(0xff)]();let _0x249735;do{try{const _0x1a7b93=JSON[_0x2d2497(0x130)](await readFile(_0x52186a,_0x1914ca['oVmPL']));if(_0x1a7b93[_0x2d2497(0x10b)])return _0x1a7b93;_0x249735=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x52186a);}catch(_0x26ae0f){_0x249735=_0x26ae0f;}await _0x1914ca['coWOD'](delay,0x64);}while(Date[_0x2d2497(0xff)]()-_0x1a1828<NOVA_ARTIFACT_METADATA_WAIT_MS);if(_0x1914ca[_0x2d2497(0x101)](_0x249735,Error))throw _0x249735;throw new Error(_0x2d2497(0xcf)+_0x52186a);}async['startScreencast'](){const _0x259e0e=_0x591d40,_0x1ccb85={'dmOfG':'base64','IntnT':'Page.startScreencast'};if(!this['context'])return;const _0x44873e=this[_0x259e0e(0xeb)][_0x259e0e(0x100)]()[0x0];if(!_0x44873e)return;const _0x526c87=this[_0x259e0e(0x10e)]();await mkdir(_0x526c87,{'recursive':!![]});const _0x53dfa9=await this['context'][_0x259e0e(0xdd)](_0x44873e);this[_0x259e0e(0xc3)]=_0x53dfa9,_0x53dfa9['on']('Page.screencastFrame',_0x7f550b=>{const _0xbf511b=_0x259e0e,_0x12ab1f=++this['frameCount'],_0xe8fce2=join(_0x526c87,_0xbf511b(0x16d)+String(_0x12ab1f)['padStart'](0x6,'0')+_0xbf511b(0xc5)),_0x188f06=writeFile(_0xe8fce2,Buffer['from'](_0x7f550b[_0xbf511b(0x13c)],_0x1ccb85['dmOfG']))[_0xbf511b(0x162)](()=>undefined)[_0xbf511b(0x174)](()=>_0x53dfa9[_0xbf511b(0xf4)](_0xbf511b(0xcb),{'sessionId':_0x7f550b[_0xbf511b(0x106)]}))[_0xbf511b(0x17d)](()=>undefined)[_0xbf511b(0x162)](()=>undefined);this[_0xbf511b(0x121)]['push'](_0x188f06);}),await _0x53dfa9[_0x259e0e(0xf4)](_0x1ccb85[_0x259e0e(0xca)],{'format':'jpeg','quality':0x4b,'everyNthFrame':0x6}),this[_0x259e0e(0x122)]=!![];}async['stopScreencast'](){const _0x33a96b=_0x591d40;if(!this[_0x33a96b(0xc3)]||!this[_0x33a96b(0x122)])return;await this['frameSession'][_0x33a96b(0xf4)]('Page.stopScreencast')[_0x33a96b(0x162)](()=>undefined);}[_0x591d40(0x123)](){const _0x56d833=_0x591d40;this['queueTraceSample'](),this[_0x56d833(0x16e)]=setInterval(()=>this[_0x56d833(0x133)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}['queueTraceSample'](){const _0x5f4fa5=_0x591d40;if(this[_0x5f4fa5(0x146)])return;this[_0x5f4fa5(0x146)]=this['captureTraceSample']()['finally'](()=>{this['traceSampleInFlight']=null;});}async['stopTraceSampling'](){const _0x390cc5=_0x591d40,_0x163875={'EGmMC':function(_0x380e35,_0x5eb639){return _0x380e35(_0x5eb639);}};this[_0x390cc5(0x16e)]&&(_0x163875[_0x390cc5(0x177)](clearInterval,this[_0x390cc5(0x16e)]),this[_0x390cc5(0x16e)]=null),await this['traceSampleInFlight']?.['catch'](()=>undefined);}async['captureTraceSample'](){const _0x2b5604=this['context']?.['pages']()[0x0];if(!_0x2b5604)return;try{await _0x2b5604['locator']('body')['evaluate'](_0x3e94b2=>_0x3e94b2['tagName'],undefined,{'timeout':0x3e8}),this['traceSampleCount']++;}catch{}}async[_0x591d40(0x15d)](){const _0x1f1f8a=_0x591d40,_0x29cde6={'nNTJD':function(_0x3c7db0,_0x3211a4){return _0x3c7db0<_0x3211a4;},'VxHwD':function(_0x5fcdca){return _0x5fcdca();},'qdkfS':function(_0x19a79f,_0x3f5d75,_0x21ed3e){return _0x19a79f(_0x3f5d75,_0x21ed3e);},'JYtYf':_0x1f1f8a(0x13d),'KYxKM':_0x1f1f8a(0x11a),'hCYUq':'-framerate','EgWEb':_0x1f1f8a(0x179),'Djedb':'libvpx-vp9','zQSxk':'-pix_fmt','zuAaj':'yuv420p'};if(_0x29cde6[_0x1f1f8a(0x17a)](this[_0x1f1f8a(0x15b)],0x2))return null;const _0x412f93=await _0x29cde6[_0x1f1f8a(0x114)](resolveFfmpegPath);if(!_0x412f93)return null;const _0x17f6f8=_0x29cde6[_0x1f1f8a(0x165)](join,this[_0x1f1f8a(0xc7)][_0x1f1f8a(0x142)],_0x29cde6[_0x1f1f8a(0x14f)]);await _0x29cde6[_0x1f1f8a(0x165)](mkdir,_0x17f6f8,{'recursive':!![]});const _0x3a399c=_0x29cde6['qdkfS'](join,_0x17f6f8,_0x1f1f8a(0xfc));return await _0x29cde6['qdkfS'](execFileAsync,_0x412f93,['-y','-hide_banner',_0x29cde6['KYxKM'],_0x1f1f8a(0x11e),_0x29cde6[_0x1f1f8a(0xd5)],'10','-i',join(this[_0x1f1f8a(0x10e)](),_0x29cde6[_0x1f1f8a(0x14a)]),'-vf','scale=trunc(iw/2)*2:trunc(ih/2)*2','-c:v',_0x29cde6[_0x1f1f8a(0x17c)],_0x29cde6[_0x1f1f8a(0xf2)],_0x29cde6['zuAaj'],_0x3a399c]),_0x3a399c;}['getFrameDir'](){const _0xae8ca6=_0x591d40;return join(this[_0xae8ca6(0xc7)][_0xae8ca6(0x142)],'nova-video-frames');}}async function delay(_0x48c68c){await new Promise(_0x122102=>setTimeout(_0x122102,_0x48c68c));}async function resolveFfmpegPath(){const _0xe0c89f=_0x591d40,_0x188e37={'VKpKO':_0xe0c89f(0x12d),'AJfwp':function(_0x4fd5a6,_0x3e5f6d,_0x5e76e6,_0x11a45d,_0x1337f3){return _0x4fd5a6(_0x3e5f6d,_0x5e76e6,_0x11a45d,_0x1337f3);},'ywPjZ':'Library','gHCyS':'Caches','HMhLJ':function(_0x361dc7){return _0x361dc7();},'ANFkY':_0xe0c89f(0x178),'DAjjw':function(_0x55be39,_0x40ddec){return _0x55be39(_0x40ddec);},'VczoS':function(_0xc4622e,_0x37daca){return _0xc4622e(_0x37daca);}};if(await canRunFfmpeg('ffmpeg'))return _0x188e37[_0xe0c89f(0xc0)];const _0x51fee8=[_0x188e37[_0xe0c89f(0x180)](join,homedir(),_0x188e37['ywPjZ'],_0x188e37['gHCyS'],_0xe0c89f(0x178)),join(_0x188e37[_0xe0c89f(0x16c)](homedir),_0xe0c89f(0xd1),_0x188e37[_0xe0c89f(0x184)])];for(const _0x1187eb of _0x51fee8){try{const _0x3c0adc=await _0x188e37[_0xe0c89f(0x153)](readdir,_0x1187eb),_0x161a27=_0x3c0adc['filter'](_0x5bfd4b=>_0x5bfd4b['startsWith'](_0xe0c89f(0xe3)))[_0xe0c89f(0xce)]()['reverse']()['flatMap'](_0x161393=>[join(_0x1187eb,_0x161393,_0xe0c89f(0xd2)),join(_0x1187eb,_0x161393,_0xe0c89f(0xcd)),join(_0x1187eb,_0x161393,'ffmpeg.exe')]);for(const _0x5ba08f of _0x161a27){if(await _0x188e37['VczoS'](canRunFfmpeg,_0x5ba08f))return _0x5ba08f;}}catch{}}return null;}async function canRunFfmpeg(_0x4cd32c){const _0x4c1e58=_0x591d40;try{return await execFileAsync(_0x4cd32c,[_0x4c1e58(0xc9)]),!![];}catch{return![];}}function toStepDisplayName(_0x307848){const _0x10194e=_0x591d40,_0x4067db={'CjnQf':function(_0x56af79,_0x761b65){return _0x56af79(_0x761b65);},'bUQrS':function(_0x394d01,_0x266eb3){return _0x394d01(_0x266eb3);}},_0x5c961c=_0x4067db['CjnQf'](basename,_0x307848)[_0x10194e(0x14b)](/\.(?:png|ya?ml)$/i,'')[_0x10194e(0x14b)](/^key_/i,'')[_0x10194e(0x14b)](/^\d+_/,'')['replace'](/-/g,'\x20');return{'name':_0x5c961c,'isKeyStep':/^key_/i[_0x10194e(0x110)](_0x4067db[_0x10194e(0xf5)](basename,_0x307848))};}function extractShellValue(_0x3c22f9){if(!_0x3c22f9)return null;return _0x3c22f9[0x1]??_0x3c22f9[0x2]??_0x3c22f9[0x3]??null;}function extractOutputOption(_0xa4b770){const _0x522313=_0x591d40,_0x4ebe68={'CKVoo':function(_0x2cfcb8,_0x4882cc){return _0x2cfcb8(_0x4882cc);}};return _0x4ebe68[_0x522313(0x128)](extractShellValue,_0xa4b770[_0x522313(0x127)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x345f87,_0x4bfb2e){const _0x2926d9=_0x591d40,_0x17f7db={'RpbOW':'session\x20create','toHoi':'execute\x20Nova\x20browser\x20action','sHsid':_0x2926d9(0xfb),'emrsa':'wait\x20for\x20page\x20condition','IXwhi':function(_0x3799c1,_0x316978){return _0x3799c1(_0x316978);},'khcMf':'session\x20export'};switch(_0x4bfb2e){case _0x17f7db['RpbOW']:return'create\x20Nova\x20browser\x20session';case _0x2926d9(0xd6):return _0x17f7db[_0x2926d9(0xd4)];case _0x2926d9(0xea):return'verify\x20page\x20condition';case _0x2926d9(0x11f):return'ask\x20page\x20question';case _0x17f7db['sHsid']:return'navigate\x20browser';case'wait-for':return _0x17f7db[_0x2926d9(0x155)];case'snapshot':{const _0x5c7aa5=extractOutputOption(_0x345f87);if(!_0x5c7aa5)return'capture\x20snapshot';const {name:_0x17cbf4}=toStepDisplayName(_0x5c7aa5);return'capture\x20snapshot\x20`'+_0x17cbf4+'`';}case'screenshot':{const _0x44d46=extractOutputOption(_0x345f87);if(!_0x44d46)return'capture\x20screenshot';const {name:_0x14146e,isKeyStep:_0x5ad433}=_0x17f7db['IXwhi'](toStepDisplayName,_0x44d46);return _0x5ad433?'capture\x20key\x20step\x20`'+_0x14146e+'`':_0x2926d9(0xd7)+_0x14146e+'`';}case _0x17f7db[_0x2926d9(0x115)]:return'export\x20Nova\x20session';default:return _0x4bfb2e;}}function getNovaActCliCommandBlockReason(_0x1f4268){const _0x28501c=_0x591d40,_0x5ec903=parseNovaActCliCommand(_0x1f4268);if(!_0x5ec903)return _0x28501c(0x108);if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS['has'](_0x5ec903))return'Nova\x20command\x20`'+_0x5ec903+'`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.';if(_0x5ec903==='verify'&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i['test'](_0x1f4268))return'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.';if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x28501c(0x110)](_0x1f4268))return _0x28501c(0x10d);return null;}function buildFeedbackSection(_0x25bff5){const _0x2efe2a=_0x591d40,_0x27147c={'NEeiB':'en-US','TqExq':'short','JkgBc':_0x2efe2a(0x13a),'gftwX':_0x2efe2a(0x159),'QvdmQ':_0x2efe2a(0xf7),'ScmYg':function(_0x5f4604,_0x385c63){return _0x5f4604===_0x385c63;}};if(!_0x25bff5||_0x27147c[_0x2efe2a(0x137)](_0x25bff5['unaddressedComments']['length'],0x0))return'';const _0x443246=_0x25bff5['unaddressedComments']['map'](_0x5aee4c=>{const _0x43e61b=_0x2efe2a,_0x4d305d=new Date(_0x5aee4c[_0x43e61b(0x182)])[_0x43e61b(0x172)](_0x27147c['NEeiB'],{'month':_0x27147c['TqExq'],'day':_0x27147c['JkgBc']}),_0x25fd05=_0x5aee4c['authorName']||_0x5aee4c[_0x43e61b(0x170)]||_0x27147c[_0x43e61b(0x141)],_0xbc54c0=_0x5aee4c[_0x43e61b(0x11c)]?'\x20(on\x20element:\x20<'+(_0x5aee4c[_0x43e61b(0x11c)][_0x43e61b(0x158)]['split'](_0x43e61b(0x120))[_0x43e61b(0x173)]()?.['split'](':')[0x0]||_0x27147c['QvdmQ'])+_0x43e61b(0xdc)+(_0x5aee4c[_0x43e61b(0x11c)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x43e61b(0x116)+_0x5aee4c['id']+_0x43e61b(0x10f)+_0x25fd05+'**\x20('+_0x4d305d+_0x43e61b(0x118)+_0x5aee4c['content']+'\x22'+_0xbc54c0;})['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'+_0x443246;}function buildNovaSharedOptionsInstruction(_0xb0c26c){const _0x4e8124=_0x591d40;if(!_0xb0c26c[_0x4e8124(0x13e)]())return _0x4e8124(0xe6);return'Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a'+_0xb0c26c;}export function buildVerifyFeatureNovaCliDebugPrompt(_0xaa62d){const _0x2a034a=_0x591d40,_0x11bfde={'PGliU':_0x2a034a(0x105),'ufjND':function(_0x5efbd4,_0x24720f,_0xf8ff66){return _0x5efbd4(_0x24720f,_0xf8ff66);},'gZXRB':_0x2a034a(0x183),'QTmVi':_0x2a034a(0x124),'EPByz':'03_final-state.png','UwgEW':function(_0x1b94e2,_0x49758e){return _0x1b94e2(_0x49758e);}},{novaCommandPrefix:_0x568db7,novaSharedOptionsSuffix:_0x47488f,cliArtifactDir:_0x38c791,url:_0x314d56}=_0xaa62d,_0x43d158=buildCliArtifactPath(_0x38c791,_0x11bfde['PGliU']),_0x1d68c0=_0x11bfde['ufjND'](buildCliArtifactPath,_0x38c791,_0x11bfde['gZXRB']),_0x4076e3=buildCliArtifactPath(_0x38c791,_0x11bfde[_0x2a034a(0xc8)]),_0x51b554=buildCliArtifactPath(_0x38c791,_0x11bfde[_0x2a034a(0x117)]);return'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'+_0x568db7+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x47488f)+'\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`'+_0x568db7+'\x20session\x20create\x20'+quoteShellArg(_0x314d56)+'\x20'+_0x47488f+_0x2a034a(0xdf)+_0x568db7+_0x2a034a(0x139)+_0x11bfde['UwgEW'](quoteShellArg,_0x43d158)+'\x20'+_0x47488f+_0x2a034a(0x10a)+_0x568db7+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x1d68c0)+'\x20'+_0x47488f+'`\x0a4.\x20Run\x20one\x20batched\x20`'+_0x568db7+_0x2a034a(0x150)+_0x568db7+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x4076e3)+'\x20'+_0x47488f+_0x2a034a(0xe1)+_0x568db7+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x51b554)+'\x20'+_0x47488f+_0x2a034a(0x160)+_0x38c791+_0x2a034a(0x13f);}export function buildVerifyFeatureNovaCliPrompt(_0x10bad4){const _0x5adc33=_0x591d40,_0x28b8b4={'ZlWdI':function(_0x351a0b,_0x282996){return _0x351a0b(_0x282996);},'CcWnT':'01_initial.yml','YJrZa':function(_0x513951,_0x342de8,_0x21bd03){return _0x513951(_0x342de8,_0x21bd03);},'HUxBs':function(_0x24d532,_0x5d59b5,_0x2a31ae){return _0x24d532(_0x5d59b5,_0x2a31ae);},'SRuqF':'key_03_success-state.png','VKARE':function(_0x3a3422,_0x4fe9d0){return _0x3a3422(_0x4fe9d0);}},{checklistItem:_0x2e9389,itemFeedback:_0x127d7a,taskDescription:_0x4397d7,novaCommandPrefix:_0x5da3bc,novaSharedOptionsSuffix:_0x172413,cliArtifactDir:_0x478453,url:_0x27afd1,loginInstructions:_0x3dd0c4}=_0x10bad4,_0x25a6a9=_0x2e9389[_0x5adc33(0x107)]?_0x5adc33(0x15f)+_0x2e9389[_0x5adc33(0x107)]:'',_0x4c3b77=_0x28b8b4['ZlWdI'](buildFeedbackSection,_0x127d7a),_0x14bb21=_0x127d7a?.[_0x5adc33(0x10c)]?_0x5adc33(0x152)+_0x127d7a[_0x5adc33(0x10c)]:'',_0x2c2973=_0x3dd0c4?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x3dd0c4+_0x5adc33(0x175):'',_0x232913=buildCliArtifactPath(_0x478453,_0x28b8b4['CcWnT']),_0x124b2b=_0x28b8b4['YJrZa'](buildCliArtifactPath,_0x478453,_0x5adc33(0x183)),_0xb6d747=_0x28b8b4['HUxBs'](buildCliArtifactPath,_0x478453,_0x28b8b4[_0x5adc33(0xe4)]);return _0x5adc33(0x181)+_0x2e9389[_0x5adc33(0xc2)]+_0x25a6a9+_0x4c3b77+_0x14bb21+_0x5adc33(0x16f)+_0x4397d7+_0x5adc33(0x149)+_0x27afd1+_0x5adc33(0x109)+_0x2c2973+_0x5adc33(0x12b)+_0x5da3bc+'\x20session\x20create\x20'+quoteShellArg(_0x27afd1)+'\x20'+_0x172413+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x478453+_0x5adc33(0x12a)+_0x5da3bc+'\x20snapshot\x20--output\x20'+_0x28b8b4[_0x5adc33(0x12e)](quoteShellArg,_0x232913)+'\x20'+_0x172413+'`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`'+_0x5da3bc+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x124b2b)+'\x20'+_0x172413+'`.\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`'+_0xb6d747+'`.\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`'+_0x5da3bc+'`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a'+(_0x172413[_0x5adc33(0x13e)]()?'`'+_0x172413+'`':'`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`')+'\x0a\x0a'+_0x28b8b4[_0x5adc33(0x135)](buildNovaSharedOptionsInstruction,_0x172413)+_0x5adc33(0xe8)+_0x5da3bc+'\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20'+_0x172413+_0x5adc33(0x168)+_0x5da3bc+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0x172413+'`\x0a-\x20`'+_0x5da3bc+_0x5adc33(0x139)+quoteShellArg(_0x232913)+'\x20'+_0x172413+'`\x0a-\x20`'+_0x5da3bc+'\x20screenshot\x20--output\x20'+_0x28b8b4['ZlWdI'](quoteShellArg,_0xb6d747)+'\x20'+_0x172413+'`\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.';}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x4df2af){const _0x531f84=_0x591d40,_0x3ac45d=[..._0x4df2af[_0x531f84(0x103)]()]['sort']();let _0x51feb2=0x0;for(const _0x2b1ec5 of _0x4df2af[_0x531f84(0xc6)]()){_0x51feb2+=_0x2b1ec5;}return{'cliCommandCount':_0x51feb2,'cliCommandsSeen':_0x3ac45d,'noCliCommandsCalled':_0x51feb2===0x0};}export function createVerifyFeatureNovaCliHooks(_0x169b15,_0x30e290){const _0x3d5443=_0x591d40,_0x5114b2={'yxCXk':function(_0x3c14cf,_0x2d907d){return _0x3c14cf!==_0x2d907d;},'BSfPP':'PreToolUse','yGfTQ':'PostToolUse','ShrkF':_0x3d5443(0x15e),'OALmv':_0x3d5443(0x112),'gaokH':function(_0x21e37a,_0x1a04ee){return _0x21e37a(_0x1a04ee);},'ievKB':function(_0x4e6831,_0x40f346){return _0x4e6831===_0x40f346;},'bpldj':'nova_act_artifact_recording','SlUJL':_0x3d5443(0x138)},_0x32f837=new Map(),_0x398cea=async _0x51ad4f=>{const _0x31a8c7=_0x3d5443;if(_0x5114b2['yxCXk'](_0x51ad4f['hook_event_name'],_0x5114b2[_0x31a8c7(0xd9)]))return{};const _0x501ead=_0x51ad4f;if(_0x5114b2['yxCXk'](_0x501ead['tool_name'],_0x31a8c7(0x15e)))return{};const _0x495c10=_0x501ead[_0x31a8c7(0xfe)],_0x2cfc3f=extractBashCommand(_0x495c10);if(!_0x2cfc3f)return{};const _0x2e8a31=getNovaActCliCommandBlockReason(_0x2cfc3f);if(!_0x2e8a31)return{};return{'decision':'block','reason':_0x2e8a31};},_0x79d0df=async _0x293af4=>{const _0x2107b5=_0x3d5443;if(_0x293af4[_0x2107b5(0x143)]!==_0x5114b2[_0x2107b5(0x164)])return{};const _0x5749f6=_0x293af4;if(_0x5749f6['tool_name']!==_0x5114b2['ShrkF'])return{};const _0x1aed8f=_0x5749f6[_0x2107b5(0xfe)],_0x197b13=extractBashCommand(_0x1aed8f);if(!_0x197b13)return{};const _0x1b9347=parseNovaActCliCommand(_0x197b13);if(!_0x1b9347)return{};_0x32f837['set'](_0x1b9347,(_0x32f837[_0x2107b5(0x12c)](_0x1b9347)||0x0)+0x1),_0x169b15['trackPhaseStart'](_0x2107b5(0x112),{'subcommand':_0x1b9347}),_0x169b15[_0x2107b5(0x15c)](_0x5114b2['OALmv'],{'subcommand':_0x1b9347,'commandPreview':_0x5114b2[_0x2107b5(0x134)](previewNovaActCliCommand,_0x197b13)}),console[_0x2107b5(0x17b)](_0x2107b5(0x131)+formatNovaActCliLog(_0x197b13,_0x1b9347));if(_0x5114b2[_0x2107b5(0xf1)](_0x1b9347,'session\x20create')&&_0x30e290)try{await _0x30e290['start']();}catch(_0x171430){await _0x169b15['trackPhaseError'](_0x5114b2[_0x2107b5(0x157)],_0x171430,{'transport':_0x5114b2[_0x2107b5(0xd3)]});}return{};},_0x496128=async _0x83d869=>{const _0xcd7cd7=_0x3d5443;if(_0x83d869[_0xcd7cd7(0x143)]!=='PostToolUseFailure')return{};const _0x522d14=_0x83d869;if(_0x522d14['tool_name']!==_0x5114b2[_0xcd7cd7(0x163)])return{};return await _0x169b15[_0xcd7cd7(0x185)]('nova_act_command_failure',_0x522d14[_0xcd7cd7(0x11e)],{'transport':_0x5114b2['SlUJL'],'toolName':'Bash'}),{};};return{'preToolUseHook':_0x398cea,'postToolUseHook':_0x79d0df,'postToolUseFailureHook':_0x496128,'commandCounts':_0x32f837};}function _0x16e9(_0x11ea5c,_0x5cec71){_0x11ea5c=_0x11ea5c-0xc0;const _0x5f16df=_0x5f16();let _0x16e973=_0x5f16df[_0x11ea5c];return _0x16e973;}async function runNovaLifecycleCommand(_0x2c09d5){const _0x4b848e=_0x591d40,_0x580f24={'bIJeH':function(_0x85a053,_0x55ed96){return _0x85a053(_0x55ed96);}},{novaOptions:_0x1bc9ac,commandArgs:_0x3de871,telemetry:_0x164f3e,phase:_0xd1b1b0,metadata:_0x16fe4e,timeoutMs:_0xfa3694}=_0x2c09d5;_0x164f3e['trackPhaseStart'](_0xd1b1b0,_0x16fe4e);try{const _0x184d83=await runNovaActCliCommand({..._0x1bc9ac,'commandArgs':_0x3de871,'cwd':process[_0x4b848e(0x119)](),'env':process[_0x4b848e(0x176)],'timeoutMs':_0xfa3694??NOVA_ACT_CLI_COMMAND_TIMEOUT_MS});_0x164f3e['trackPhaseEnd'](_0xd1b1b0,{..._0x16fe4e,'subcommand':_0x184d83['invocation']['subcommand'],'commandPreview':previewNovaActCliCommand(_0x184d83['invocation'][_0x4b848e(0x154)]),'stdoutPreview':previewNovaActCliCommand(_0x184d83[_0x4b848e(0x132)]),'stderrPreview':previewNovaActCliCommand(_0x184d83[_0x4b848e(0xe5)]),'logDir':_0x580f24['bIJeH'](extractNovaActLogDir,_0x184d83[_0x4b848e(0x132)])});}catch(_0x333819){await _0x164f3e['trackPhaseError'](_0xd1b1b0,_0x333819,_0x16fe4e);throw _0x333819;}}export async function finalizeVerifyFeatureNovaCliSession(_0x546173){const _0x4a70c5=_0x591d40,_0x38b650={'xyNUQ':'nova_act_final_screenshot','JGhFl':_0x4a70c5(0x17f),'yGeKj':_0x4a70c5(0xc4),'TfHOs':'key_final-state.png','KNKpO':'snapshot','GaUOe':function(_0x39e8fd,_0x28296c,_0xd27f9a){return _0x39e8fd(_0x28296c,_0xd27f9a);},'BTWaW':'session','EFWMc':'--format','VbUei':_0x4a70c5(0x129),'ynSxj':'nova-session-export.json','Uosqi':'--report','PBhcr':_0x4a70c5(0xdb),'faIyS':'nova_act_session_close'},{telemetry:_0x13daeb,novaOptions:_0x34a66d,cliArtifactDir:_0x1fc548,transportMetadata:_0x1fdc93,artifactRecorder:_0x2e3542}=_0x546173,_0x2307b4=[{'phase':_0x38b650['xyNUQ'],'commandArgs':[_0x38b650[_0x4a70c5(0x169)],_0x38b650['yGeKj'],buildCliArtifactPath(_0x1fc548,_0x38b650['TfHOs'])]},{'phase':'nova_act_final_snapshot','commandArgs':[_0x38b650['KNKpO'],_0x38b650[_0x4a70c5(0x11b)],_0x38b650['GaUOe'](buildCliArtifactPath,_0x1fc548,'final-state.yaml')]},{'phase':'nova_act_session_export','commandArgs':[_0x38b650['BTWaW'],'export',_0x38b650['EFWMc'],_0x38b650[_0x4a70c5(0x147)],_0x38b650['yGeKj'],buildCliArtifactPath(_0x1fc548,_0x38b650['ynSxj'])]},{'phase':'nova_act_session_report','commandArgs':[_0x38b650['BTWaW'],_0x4a70c5(0x145),_0x38b650['Uosqi'],'--output-dir',buildCliArtifactPath(_0x1fc548,_0x4a70c5(0x156))]},{'phase':_0x4a70c5(0xec),'commandArgs':[_0x38b650[_0x4a70c5(0xf6)],_0x38b650['PBhcr']]}];for(const _0x5619b9 of _0x2307b4){_0x5619b9['phase']===_0x38b650[_0x4a70c5(0x167)]&&await _0x2e3542?.['stop']();try{await runNovaLifecycleCommand({'novaOptions':_0x34a66d,'commandArgs':[..._0x5619b9[_0x4a70c5(0xfd)]],'telemetry':_0x13daeb,'phase':_0x5619b9['phase'],'metadata':_0x1fdc93});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x23e974){const _0x1991a1=_0x591d40,_0x47194e={'kaQeh':function(_0x2a8476,_0x242668,_0xa1ebbe){return _0x2a8476(_0x242668,_0xa1ebbe);},'fAIEg':function(_0x95da9b,_0x50cc89,_0x38f644){return _0x95da9b(_0x50cc89,_0x38f644);},'DQASN':function(_0x358d96,_0x85e7bb){return _0x358d96(_0x85e7bb);},'kxdbk':function(_0x1c5945,_0x2d75b5){return _0x1c5945+_0x2d75b5;},'CcouO':function(_0x94387e,_0x14281e){return _0x94387e===_0x14281e;}},{cwd:_0x3ce3fa,cliArtifactDir:_0x25191a,startTime:_0x2e8547}=_0x23e974,_0x533687=[];await _0x47194e[_0x1991a1(0x111)](mkdir,_0x25191a,{'recursive':!![]});const _0x194d7d=await _0x47194e['fAIEg'](readdir,_0x3ce3fa,{'withFileTypes':!![]});for(const _0x5034c1 of _0x194d7d){if(!_0x5034c1[_0x1991a1(0x166)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN[_0x1991a1(0x110)](_0x5034c1[_0x1991a1(0xe0)]))continue;const _0x5a9656=_0x47194e[_0x1991a1(0x12f)](join,_0x3ce3fa,_0x5034c1[_0x1991a1(0xe0)]),_0xabb76f=await _0x47194e[_0x1991a1(0x17e)](stat,_0x5a9656);if(_0x47194e[_0x1991a1(0x14c)](_0xabb76f['mtimeMs'],0x7d0)<_0x2e8547)continue;const _0x59f7f1=buildCliArtifactPath(_0x25191a,_0x5034c1[_0x1991a1(0xe0)]);if(_0x47194e['CcouO'](_0x5a9656,_0x59f7f1))continue;await rename(_0x5a9656,_0x59f7f1),_0x533687['push'](_0x5034c1[_0x1991a1(0xe0)]);}return _0x533687['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x475ce9){const _0x206a68={'ePyZq':function(_0x3fc7cb,_0x1ec24e){return _0x3fc7cb(_0x1ec24e);}},_0x27cc87=join(_0x475ce9,'trace.zip');try{return{'buffer':await _0x206a68['ePyZq'](readFile,_0x27cc87),'source':_0x27cc87};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x475ce9),'source':_0x475ce9};}}async function zipVerifyFeatureNovaArtifacts(_0xf29e90){const _0x1bb57b=_0x591d40,_0x12cc4c={'fnmpc':function(_0x48962c,_0x30fd3d,_0x28a570,_0x4ccdbb){return _0x48962c(_0x30fd3d,_0x28a570,_0x4ccdbb);}},_0x16b78a=join(_0xf29e90,'..','nova-artifacts.zip');try{return await _0x12cc4c[_0x1bb57b(0xe2)](execFileAsync,'zip',['-qr',_0x16b78a,'.','-x',_0x1bb57b(0xf8)],{'cwd':_0xf29e90}),await readFile(_0x16b78a);}finally{await rm(_0x16b78a,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x289876){const _0x623a23=_0x591d40,_0x342bb2=buildNovaActCliInvocation(_0x289876[_0x623a23(0xf3)],_0x289876[_0x623a23(0xfd)]);return{'command':_0x342bb2['command'],'args':_0x342bb2[_0x623a23(0x113)],'commandPreview':previewNovaActCliCommand(_0x342bb2[_0x623a23(0x154)]),'subcommand':_0x342bb2[_0x623a23(0x16a)],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x289876['novaOptions'],_0x289876['commandArgs'])};}
|
|
1
|
+
const _0x2c4db6=_0x18f4;function _0x18f4(_0x1d867b,_0x1eea8e){_0x1d867b=_0x1d867b-0x118;const _0x117bf8=_0x117b();let _0x18f498=_0x117bf8[_0x1d867b];return _0x18f498;}(function(_0x482f98,_0x101ad0){const _0x1263f0=_0x18f4,_0x240000=_0x482f98();while(!![]){try{const _0x3c95f0=parseInt(_0x1263f0(0x196))/0x1+parseInt(_0x1263f0(0x143))/0x2+-parseInt(_0x1263f0(0x1c5))/0x3*(-parseInt(_0x1263f0(0x138))/0x4)+parseInt(_0x1263f0(0x166))/0x5*(parseInt(_0x1263f0(0x16d))/0x6)+parseInt(_0x1263f0(0x1b6))/0x7*(-parseInt(_0x1263f0(0x192))/0x8)+parseInt(_0x1263f0(0x1f7))/0x9*(parseInt(_0x1263f0(0x1b9))/0xa)+-parseInt(_0x1263f0(0x1a6))/0xb;if(_0x3c95f0===_0x101ad0)break;else _0x240000['push'](_0x240000['shift']());}catch(_0x3e3e6e){_0x240000['push'](_0x240000['shift']());}}}(_0x117b,0x91bd4));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';function _0x117b(){const _0x40c454=['videos','WcCWG','jwYrn','rXBnP','FoVnZ','stopTraceSampling','\x20session\x20create\x20','.json','captureTraceSample','):\x20\x22','evaluate','PFJpr','`\x0a4.\x20Run\x20one\x20batched\x20`','You\x20are\x20testing\x20Nova\x20Act\x20browser\x20automation.\x20Your\x20task\x20is\x20simple.\x0a\x0aUse\x20Bash\x20and\x20Nova\x20Act\x20CLI\x20only.\x20The\x20browser\x20command\x20prefix\x20is:\x0a','uOZER','wLjHj','`\x0a7.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aSave\x20every\x20artifact\x20under\x20`','wait-for','create\x20Nova\x20browser\x20session','novaOptions','NBOvf','nova-user-data/*','23944NImbVv','stop','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.','cliArtifactDir','ffmpeg.exe','--output','trackPhaseError','newCDPSession','numeric','start','trim','103366pBZRRk','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.','queueTraceSample','key_03_success-state.png','ffmpeg-','contexts','hook_event_name','trackPhaseStart','UAADS','-version','traceSampleCount','orFgM','split','get','\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','`.\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`','EBIgd','reCDo','xHgdu','isFile','invocation','Use\x20only\x20the\x20provided\x20Nova\x20browser\x20command\x20prefix\x20for\x20browser\x20verification.\x20Do\x20not\x20inspect\x20setup,\x20credentials,\x20files,\x20or\x20the\x20local\x20environment.','traceSampleTimer','stdout','\x20execute\x20\x221.\x20Open\x20the\x20account\x20settings\x20menu.\x202.\x20Click\x20Billing.\x203.\x20Wait\x20for\x20the\x20Billing\x20page\x20to\x20load.\x22\x20','startTraceSampling','KUNDN','**\x20(','\x20(on\x20element:\x20<','export\x20Nova\x20session','nova-report','trackPhaseEnd','00_initial-state.yml','sessionId','Yjgfl','4890365pgTWXy','xRttp','unaddressedComments','stopped','`.\x0a6.\x20Take\x20an\x20initial\x20screenshot:\x20`','01_initial.yml','catch','6oIWntw','domRef','DbAed','navigate\x20browser','\x20execute\x20\x22...\x22`\x20command\x20to\x20exercise\x20the\x20current\x20page.\x0a5.\x20Run\x20`','--format','yuv420p','-loglevel','Reviewer','json','final-state.yaml','sort','\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','fAqEj','slice','nova_act_final_snapshot','FkDxN','name','EvVRN','AJpii','nJISp','tool_input','goto','libvpx-vp9','match','\x20>\x20','DMJgX','content','export','shellCommand','Do\x20not\x20run\x20Nova\x20help,\x20doctor,\x20script,\x20session\x20list,\x20session\x20export,\x20or\x20session\x20close\x20commands\x20during\x20verification.','`\x0a\x0aAppend\x20this\x20option\x20suffix\x20to\x20browser\x20commands:\x0a','BxHez','short','subcommand','POQGK','XrygA','8oAEKWo','replace','-framerate','gWzQd','549176TzZRRp','test','capture\x20step\x20`','authorName','tool_name','.jpg','piCQk','error','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','`\x20using\x20absolute\x20paths\x20only.\x0a5.\x20Take\x20an\x20initial\x20snapshot:\x20`','canonicalFlow','VSWEE','02_final-state.yml','browser','KxqlG','allSettled','21918699GEJKIW','Page.startScreencast','--report','FLIhJ','`.\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`','startsWith','reverse','Page.screencastFrameAck','hOWvZ','frameSession','GCrbG','notes','-\x20[','capture\x20snapshot','[nova-act-cli]\x20','Ajufs','2391256dFdLTL','tLEJP','close','130HAjEEL','zeLJv','\x20snapshot\x20--output\x20','params','ikBBL','trace.zip','block','snapshot','capture\x20snapshot\x20`','transportMetadata','flatMap','`\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.','162ZZkIon','PreToolUse','command','dNPHP','nova_act_artifact_recording','\x20screenshot\x20--output\x20','values','wwoyI','encodeScreencastVideo','env','startAttempted','pages','base64','Bash','context','iDJrQ','PaYee','ms-playwright','frameWrites','cJDZJ','hHbOk','-c:v','tracingStarted','DyptG','session-recording.webm','PhcQp','filter','capture\x20key\x20step\x20`','has','screencastStarted','execute','wait\x20for\x20page\x20condition','FHVgR','`<none;\x20the\x20command\x20prefix\x20injects\x20shared\x20options>`','body','traceSampleInFlight','Append\x20this\x20option\x20suffix\x20to\x20every\x20browser\x20command\x20unless\x20the\x20host\x20gives\x20a\x20more\x20specific\x20example:\x0a','GDAUH','\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`','telemetry','sxPAz','rbhJQ','fHbQt','MRFqN','ffmpeg-mac','then','FlMvh','WnlYq','push','nova-act-cli','712377mcjVJR','`\x0a-\x20`','01_initial-state.png','session','frameCount','commandArgs',']\x20**','cwd','\x0a\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','session\x20create','args'];_0x117b=function(){return _0x40c454;};return _0x117b();}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([_0x2c4db6(0x120),_0x2c4db6(0x1e3),'verify','ask',_0x2c4db6(0x183),_0x2c4db6(0x133),_0x2c4db6(0x1c0),'screenshot']),execFileAsync=promisify(execFile);function buildCliArtifactPath(_0x17cbf5,_0x32e3fe){return join(_0x17cbf5,_0x32e3fe);}export class NovaActArtifactRecorder{['params'];[_0x2c4db6(0x1a3)]=null;['context']=null;[_0x2c4db6(0x1af)]=null;['frameWrites']=[];[_0x2c4db6(0x11a)]=0x0;[_0x2c4db6(0x14d)]=0x0;['traceSampleTimer']=null;[_0x2c4db6(0x1e8)]=null;[_0x2c4db6(0x1db)]=![];['screencastStarted']=![];[_0x2c4db6(0x1cf)]=![];[_0x2c4db6(0x169)]=![];constructor(_0x4b2971){const _0x3c6ec6=_0x2c4db6;this[_0x3c6ec6(0x1bc)]=_0x4b2971;}async['start'](){const _0x1670fb=_0x2c4db6,_0x58281f={'VtXev':'Nova\x20CDP\x20connection\x20did\x20not\x20expose\x20a\x20browser\x20context','Qpauo':'nova_act_artifact_recording'};if(this['startAttempted'])return;this['startAttempted']=!![];const _0x3b79f6=await this['readSessionMetadataWithRetry'](),_0x566392=_0x3b79f6['cdp_endpoint'];if(!_0x566392)throw new Error('Nova\x20session\x20metadata\x20did\x20not\x20include\x20cdp_endpoint\x20for\x20'+this['params']['novaOptions']['sessionId']);await mkdir(this[_0x1670fb(0x1bc)]['cliArtifactDir'],{'recursive':!![]}),this[_0x1670fb(0x1a3)]=await chromium['connectOverCDP'](_0x566392,{'timeout':NOVA_ARTIFACT_CDP_CONNECT_TIMEOUT_MS}),this[_0x1670fb(0x1d3)]=this['browser'][_0x1670fb(0x148)]()[0x0]??null;if(!this['context'])throw new Error(_0x58281f['VtXev']);await this['context']['tracing'][_0x1670fb(0x141)]({'screenshots':!![],'snapshots':!![],'sources':!![]}),this[_0x1670fb(0x1db)]=!![],this[_0x1670fb(0x15c)](),await this['startScreencast'](),this[_0x1670fb(0x1bc)][_0x1670fb(0x1ec)][_0x1670fb(0x14a)](_0x1670fb(0x1c9),{...this['params'][_0x1670fb(0x1c2)],'cdpEndpoint':_0x566392,'browserPid':_0x3b79f6['browser_pid'],'sessionState':_0x3b79f6['state']}),this[_0x1670fb(0x1bc)]['telemetry'][_0x1670fb(0x162)](_0x58281f['Qpauo'],{...this['params']['transportMetadata'],'tracingStarted':this['tracingStarted'],'screencastStarted':this[_0x1670fb(0x1e2)]});}async[_0x2c4db6(0x139)](){const _0xd7f5a2=_0x2c4db6,_0x44509c={'PFJpr':'nova_act_artifact_recording_stop'};if(this[_0xd7f5a2(0x169)])return;this[_0xd7f5a2(0x169)]=!![];const _0x7c9ba7={...this['params']['transportMetadata'],'frameCount':this['frameCount'],'traceSampleCount':this['traceSampleCount'],'tracingStarted':this['tracingStarted'],'screencastStarted':this['screencastStarted']};this['params']['telemetry'][_0xd7f5a2(0x14a)]('nova_act_artifact_recording_stop',_0x7c9ba7);try{await this[_0xd7f5a2(0x127)](),await this[_0xd7f5a2(0x12a)](),await this['stopScreencast'](),await Promise[_0xd7f5a2(0x1a5)](this['frameWrites']);this[_0xd7f5a2(0x1d3)]&&this[_0xd7f5a2(0x1db)]&&await this[_0xd7f5a2(0x1d3)]['tracing']['stop']({'path':buildCliArtifactPath(this['params']['cliArtifactDir'],_0xd7f5a2(0x1be))});const _0x58a1d=await this['encodeScreencastVideo']();this['params'][_0xd7f5a2(0x1ec)]['trackPhaseEnd'](_0x44509c[_0xd7f5a2(0x12d)],{..._0x7c9ba7,'videoPath':_0x58a1d});}catch(_0x42721a){await this['params'][_0xd7f5a2(0x1ec)][_0xd7f5a2(0x13e)]('nova_act_artifact_recording_stop',_0x42721a,_0x7c9ba7);}finally{await this['browser']?.[_0xd7f5a2(0x1b8)]()['catch'](()=>undefined),this['browser']=null,this[_0xd7f5a2(0x1d3)]=null,this['frameSession']=null;}}async['readSessionMetadataWithRetry'](){const _0x420b7c=_0x2c4db6,_0x32d51b={'YOwgj':function(_0x53ce8e){return _0x53ce8e();},'DbAed':'sessions','wLjHj':function(_0x308561,_0x1855f8,_0x5a7c77){return _0x308561(_0x1855f8,_0x5a7c77);},'WcCWG':'utf-8','LlsbI':function(_0x96d71d,_0xa5f0a5){return _0x96d71d(_0xa5f0a5);},'Ajufs':function(_0x114cca,_0x43c4f4){return _0x114cca<_0x43c4f4;},'XrygA':function(_0xb1bc05,_0x5f36cf){return _0xb1bc05 instanceof _0x5f36cf;}},_0x4d307e=join(_0x32d51b['YOwgj'](homedir),'.act_cli','browser',_0x32d51b[_0x420b7c(0x16f)],this['params']['novaOptions']['sessionId']+_0x420b7c(0x129)),_0x2ba72c=Date['now']();let _0x556fc4;do{try{const _0x27b32d=JSON['parse'](await _0x32d51b[_0x420b7c(0x131)](readFile,_0x4d307e,_0x32d51b[_0x420b7c(0x123)]));if(_0x27b32d['cdp_endpoint'])return _0x27b32d;_0x556fc4=new Error('Nova\x20metadata\x20missing\x20cdp_endpoint\x20at\x20'+_0x4d307e);}catch(_0x5d9a33){_0x556fc4=_0x5d9a33;}await _0x32d51b['LlsbI'](delay,0x64);}while(_0x32d51b[_0x420b7c(0x1b5)](Date['now']()-_0x2ba72c,NOVA_ARTIFACT_METADATA_WAIT_MS));if(_0x32d51b[_0x420b7c(0x191)](_0x556fc4,Error))throw _0x556fc4;throw new Error('Unable\x20to\x20read\x20Nova\x20session\x20metadata\x20at\x20'+_0x4d307e);}async['startScreencast'](){const _0x5b2854=_0x2c4db6,_0x55aead={'iDJrQ':function(_0x2835a4,_0x1582cc){return _0x2835a4(_0x1582cc);},'KuBix':function(_0x4e49fd,_0x310955,_0x17ee1c){return _0x4e49fd(_0x310955,_0x17ee1c);},'FlMvh':_0x5b2854(0x1d1),'xHgdu':function(_0x23e39f,_0x15a0a4,_0x2c3bbd){return _0x23e39f(_0x15a0a4,_0x2c3bbd);},'VxEML':_0x5b2854(0x1a7),'iYcXw':'jpeg'};if(!this[_0x5b2854(0x1d3)])return;const _0x15473d=this[_0x5b2854(0x1d3)][_0x5b2854(0x1d0)]()[0x0];if(!_0x15473d)return;const _0x3c4376=this['getFrameDir']();await _0x55aead[_0x5b2854(0x155)](mkdir,_0x3c4376,{'recursive':!![]});const _0x2884ce=await this[_0x5b2854(0x1d3)][_0x5b2854(0x13f)](_0x15473d);this[_0x5b2854(0x1af)]=_0x2884ce,_0x2884ce['on']('Page.screencastFrame',_0xd128d9=>{const _0x191f5f=_0x5b2854,_0x368a20=++this[_0x191f5f(0x11a)],_0x43bca8=join(_0x3c4376,'frame-'+_0x55aead[_0x191f5f(0x1d4)](String,_0x368a20)['padStart'](0x6,'0')+_0x191f5f(0x19b)),_0x36f319=_0x55aead['KuBix'](writeFile,_0x43bca8,Buffer['from'](_0xd128d9['data'],_0x55aead[_0x191f5f(0x1f3)]))['catch'](()=>undefined)['finally'](()=>_0x2884ce['send'](_0x191f5f(0x1ad),{'sessionId':_0xd128d9[_0x191f5f(0x164)]}))[_0x191f5f(0x1f2)](()=>undefined)[_0x191f5f(0x16c)](()=>undefined);this[_0x191f5f(0x1d7)][_0x191f5f(0x1f5)](_0x36f319);}),await _0x2884ce['send'](_0x55aead['VxEML'],{'format':_0x55aead['iYcXw'],'quality':0x4b,'everyNthFrame':0x6}),this[_0x5b2854(0x1e2)]=!![];}async['stopScreencast'](){const _0x4e7e06=_0x2c4db6;if(!this[_0x4e7e06(0x1af)]||!this[_0x4e7e06(0x1e2)])return;await this['frameSession']['send']('Page.stopScreencast')['catch'](()=>undefined);}[_0x2c4db6(0x15c)](){const _0x71b101=_0x2c4db6,_0x2c4b13={'ymMrT':function(_0x48d12f,_0xe1cf77,_0xca4a3f){return _0x48d12f(_0xe1cf77,_0xca4a3f);}};this['queueTraceSample'](),this[_0x71b101(0x159)]=_0x2c4b13['ymMrT'](setInterval,()=>this[_0x71b101(0x145)](),NOVA_ARTIFACT_TRACE_SAMPLE_INTERVAL_MS);}[_0x2c4db6(0x145)](){const _0x292870=_0x2c4db6;if(this[_0x292870(0x1e8)])return;this['traceSampleInFlight']=this['captureTraceSample']()['finally'](()=>{this['traceSampleInFlight']=null;});}async['stopTraceSampling'](){const _0x305126=_0x2c4db6;this['traceSampleTimer']&&(clearInterval(this[_0x305126(0x159)]),this[_0x305126(0x159)]=null),await this[_0x305126(0x1e8)]?.['catch'](()=>undefined);}async[_0x2c4db6(0x12a)](){const _0x56ff76=_0x2c4db6,_0x101a7d={'PhcQp':_0x56ff76(0x1e7)},_0x104e4d=this[_0x56ff76(0x1d3)]?.[_0x56ff76(0x1d0)]()[0x0];if(!_0x104e4d)return;try{await _0x104e4d['locator'](_0x101a7d[_0x56ff76(0x1de)])[_0x56ff76(0x12c)](_0x211444=>_0x211444['tagName'],undefined,{'timeout':0x3e8}),this[_0x56ff76(0x14d)]++;}catch{}}async[_0x2c4db6(0x1cd)](){const _0x4590e6=_0x2c4db6,_0x8c84fe={'DBuOu':function(_0x29118d,_0x44ce99){return _0x29118d<_0x44ce99;},'rXBnP':function(_0x2b580c,_0x11190f,_0x14a000){return _0x2b580c(_0x11190f,_0x14a000);},'tLEJP':_0x4590e6(0x174),'ikBBL':_0x4590e6(0x19d),'hJWGF':function(_0x1bed96,_0x4a83b2,_0x67707c){return _0x1bed96(_0x4a83b2,_0x67707c);},'AZzct':'frame-%06d.jpg','VtZkL':'-vf','FoVnZ':'scale=trunc(iw/2)*2:trunc(ih/2)*2','cJDZJ':_0x4590e6(0x184)};if(_0x8c84fe['DBuOu'](this['frameCount'],0x2))return null;const _0x5e281a=await resolveFfmpegPath();if(!_0x5e281a)return null;const _0x192d7d=join(this[_0x4590e6(0x1bc)]['cliArtifactDir'],_0x4590e6(0x122));await mkdir(_0x192d7d,{'recursive':!![]});const _0x143ee6=_0x8c84fe[_0x4590e6(0x125)](join,_0x192d7d,_0x4590e6(0x1dd));return await _0x8c84fe[_0x4590e6(0x125)](execFileAsync,_0x5e281a,['-y','-hide_banner',_0x8c84fe[_0x4590e6(0x1b7)],_0x8c84fe[_0x4590e6(0x1bd)],_0x4590e6(0x194),'10','-i',_0x8c84fe['hJWGF'](join,this['getFrameDir'](),_0x8c84fe['AZzct']),_0x8c84fe['VtZkL'],_0x8c84fe[_0x4590e6(0x126)],_0x4590e6(0x1da),_0x8c84fe[_0x4590e6(0x1d8)],'-pix_fmt',_0x4590e6(0x173),_0x143ee6]),_0x143ee6;}['getFrameDir'](){const _0x7402b0=_0x2c4db6,_0x175bf7={'sxPAz':function(_0x23ab05,_0x1bce43,_0x33b5b0){return _0x23ab05(_0x1bce43,_0x33b5b0);}};return _0x175bf7[_0x7402b0(0x1ed)](join,this['params'][_0x7402b0(0x13b)],'nova-video-frames');}}async function delay(_0x2f960a){await new Promise(_0x4238e8=>setTimeout(_0x4238e8,_0x2f960a));}async function resolveFfmpegPath(){const _0x4b3c2d=_0x2c4db6,_0x2127c2={'GDAUH':function(_0xa6334c,_0x13303c,_0x302c4e,_0x20bf13,_0x5c953c){return _0xa6334c(_0x13303c,_0x302c4e,_0x20bf13,_0x5c953c);},'TunIr':'Library','EOpVz':'Caches','AJpii':function(_0x11fcd9,_0x2b185c,_0x18a10b,_0x169be7){return _0x11fcd9(_0x2b185c,_0x18a10b,_0x169be7);},'dNPHP':'.cache','FHVgR':_0x4b3c2d(0x1d6),'reCDo':function(_0x226834,_0x1c1590){return _0x226834(_0x1c1590);}};if(await canRunFfmpeg('ffmpeg'))return'ffmpeg';const _0x4e08fd=[_0x2127c2[_0x4b3c2d(0x1ea)](join,homedir(),_0x2127c2['TunIr'],_0x2127c2['EOpVz'],'ms-playwright'),_0x2127c2[_0x4b3c2d(0x180)](join,homedir(),_0x2127c2[_0x4b3c2d(0x1c8)],_0x2127c2[_0x4b3c2d(0x1e5)])];for(const _0x5897b5 of _0x4e08fd){try{const _0x2d194f=await _0x2127c2[_0x4b3c2d(0x154)](readdir,_0x5897b5),_0xc77490=_0x2d194f[_0x4b3c2d(0x1df)](_0x12f85e=>_0x12f85e[_0x4b3c2d(0x1ab)](_0x4b3c2d(0x147)))[_0x4b3c2d(0x178)]()[_0x4b3c2d(0x1ac)]()[_0x4b3c2d(0x1c3)](_0x13b92c=>[join(_0x5897b5,_0x13b92c,_0x4b3c2d(0x1f1)),join(_0x5897b5,_0x13b92c,'ffmpeg-linux'),join(_0x5897b5,_0x13b92c,_0x4b3c2d(0x13c))]);for(const _0x32f59d of _0xc77490){if(await canRunFfmpeg(_0x32f59d))return _0x32f59d;}}catch{}}return null;}async function canRunFfmpeg(_0x5c65b9){const _0x5752dd=_0x2c4db6,_0x13aaa4={'uOZER':function(_0x437d24,_0x511685,_0x4886c8){return _0x437d24(_0x511685,_0x4886c8);},'EBIgd':_0x5752dd(0x14c)};try{return await _0x13aaa4[_0x5752dd(0x130)](execFileAsync,_0x5c65b9,[_0x13aaa4[_0x5752dd(0x153)]]),!![];}catch{return![];}}function toStepDisplayName(_0x4d839e){const _0x2cc8c0=_0x2c4db6,_0x1361ab={'LbYqF':function(_0x33e7bf,_0x47bb9d){return _0x33e7bf(_0x47bb9d);},'kcoiV':function(_0x12d7ce,_0x15611b){return _0x12d7ce(_0x15611b);}},_0x396f0b=_0x1361ab['LbYqF'](basename,_0x4d839e)[_0x2cc8c0(0x193)](/\.(?:png|ya?ml)$/i,'')[_0x2cc8c0(0x193)](/^key_/i,'')[_0x2cc8c0(0x193)](/^\d+_/,'')[_0x2cc8c0(0x193)](/-/g,'\x20');return{'name':_0x396f0b,'isKeyStep':/^key_/i[_0x2cc8c0(0x197)](_0x1361ab['kcoiV'](basename,_0x4d839e))};}function extractShellValue(_0x26d5cc){if(!_0x26d5cc)return null;return _0x26d5cc[0x1]??_0x26d5cc[0x2]??_0x26d5cc[0x3]??null;}function extractOutputOption(_0x465f32){const _0x3474a7=_0x2c4db6;return extractShellValue(_0x465f32[_0x3474a7(0x185)](/--output(?:=|\s+)(?:"([^"]+)"|'([^']+)'|(\S+))/));}function formatNovaActCliLog(_0x7e76c8,_0x5ad065){const _0x22c3d5=_0x2c4db6,_0x3f7c41={'jgLjZ':_0x22c3d5(0x120),'fAqEj':'ask','VrjNf':'ask\x20page\x20question','hOWvZ':'goto','BxHez':function(_0xfc43a9,_0x1702e){return _0xfc43a9(_0x1702e);},'WnlYq':'capture\x20screenshot','IszRm':_0x22c3d5(0x160)};switch(_0x5ad065){case _0x3f7c41['jgLjZ']:return _0x22c3d5(0x134);case'execute':return'execute\x20Nova\x20browser\x20action';case'verify':return'verify\x20page\x20condition';case _0x3f7c41[_0x22c3d5(0x17a)]:return _0x3f7c41['VrjNf'];case _0x3f7c41[_0x22c3d5(0x1ae)]:return _0x22c3d5(0x170);case'wait-for':return _0x22c3d5(0x1e4);case'snapshot':{const _0x552dd1=_0x3f7c41[_0x22c3d5(0x18d)](extractOutputOption,_0x7e76c8);if(!_0x552dd1)return _0x22c3d5(0x1b3);const {name:_0x1e85db}=toStepDisplayName(_0x552dd1);return _0x22c3d5(0x1c1)+_0x1e85db+'`';}case'screenshot':{const _0x5a9870=_0x3f7c41[_0x22c3d5(0x18d)](extractOutputOption,_0x7e76c8);if(!_0x5a9870)return _0x3f7c41[_0x22c3d5(0x1f4)];const {name:_0x5582a8,isKeyStep:_0x246cb4}=toStepDisplayName(_0x5a9870);return _0x246cb4?_0x22c3d5(0x1e0)+_0x5582a8+'`':_0x22c3d5(0x198)+_0x5582a8+'`';}case'session\x20export':return _0x3f7c41['IszRm'];default:return _0x5ad065;}}function getNovaActCliCommandBlockReason(_0x53f3d0){const _0x276e49=_0x2c4db6,_0x2176c2={'piCQk':_0x276e49(0x158),'KxqlG':function(_0x4687e7,_0x2f9689){return _0x4687e7===_0x2f9689;},'KXfSU':'verify','GCrbG':_0x276e49(0x13a)},_0x191f44=parseNovaActCliCommand(_0x53f3d0);if(!_0x191f44)return _0x2176c2[_0x276e49(0x19c)];if(!NOVA_ACT_ALLOWED_AGENT_COMMANDS[_0x276e49(0x1e1)](_0x191f44))return'Nova\x20command\x20`'+_0x191f44+'`\x20is\x20reserved\x20for\x20the\x20host.\x20Use\x20only\x20session\x20create,\x20execute,\x20verify,\x20ask,\x20goto,\x20wait-for,\x20snapshot,\x20and\x20screenshot.';if(_0x2176c2[_0x276e49(0x1a4)](_0x191f44,_0x2176c2['KXfSU'])&&/\b(?:previously visited|visited pages|pages visited|at least one of the pages visited)\b/i[_0x276e49(0x197)](_0x53f3d0))return _0x2176c2[_0x276e49(0x1b0)];if(/\s--help\b|\bdoctor\b|\bscript\b|\bsession\s+(?:close|list|export)\b/[_0x276e49(0x197)](_0x53f3d0))return _0x276e49(0x18b);return null;}function buildFeedbackSection(_0x40e73e){const _0x3a9f07=_0x2c4db6,_0x20b9bd={'UAADS':'en-US','fHbQt':_0x3a9f07(0x140),'zeLJv':_0x3a9f07(0x175),'AWvqx':function(_0x2e5f27,_0x10f16e){return _0x2e5f27===_0x10f16e;}};if(!_0x40e73e||_0x20b9bd['AWvqx'](_0x40e73e[_0x3a9f07(0x168)]['length'],0x0))return'';const _0x1613d5=_0x40e73e[_0x3a9f07(0x168)]['map'](_0x4ce826=>{const _0x32b89a=_0x3a9f07,_0x50ab5f=new Date(_0x4ce826['createdAt'])['toLocaleDateString'](_0x20b9bd[_0x32b89a(0x14b)],{'month':_0x32b89a(0x18e),'day':_0x20b9bd[_0x32b89a(0x1ef)]}),_0x178e16=_0x4ce826[_0x32b89a(0x199)]||_0x4ce826['authorEmail']||_0x20b9bd[_0x32b89a(0x1ba)],_0x3a8818=_0x4ce826[_0x32b89a(0x16e)]?_0x32b89a(0x15f)+(_0x4ce826['domRef']['selector'][_0x32b89a(0x14f)](_0x32b89a(0x186))['pop']()?.['split'](':')[0x0]||'element')+'>\x20\x22'+(_0x4ce826['domRef']['textContent']||'')[_0x32b89a(0x17b)](0x0,0x32)+'\x22)':'';return _0x32b89a(0x1b2)+_0x4ce826['id']+_0x32b89a(0x11c)+_0x178e16+_0x32b89a(0x15e)+_0x50ab5f+_0x32b89a(0x12b)+_0x4ce826[_0x32b89a(0x188)]+'\x22'+_0x3a8818;})['join']('\x0a');return _0x3a9f07(0x151)+_0x1613d5;}function buildNovaSharedOptionsInstruction(_0x521f00){const _0x4a745e=_0x2c4db6;if(!_0x521f00[_0x4a745e(0x142)]())return _0x4a745e(0x144);return _0x4a745e(0x1e9)+_0x521f00;}export function buildVerifyFeatureNovaCliDebugPrompt(_0x5d474b){const _0x46801c=_0x2c4db6,_0x5c0bb0={'jwYrn':function(_0x146e91,_0x177422,_0x24fd50){return _0x146e91(_0x177422,_0x24fd50);},'XGzHz':_0x46801c(0x1a2),'VjrGC':'03_final-state.png','kzRXH':function(_0x1c6b82,_0x18d138){return _0x1c6b82(_0x18d138);}},{novaCommandPrefix:_0x1849cd,novaSharedOptionsSuffix:_0x4d3a1e,cliArtifactDir:_0x446e84,url:_0x19fe5d}=_0x5d474b,_0x16fb77=buildCliArtifactPath(_0x446e84,_0x46801c(0x163)),_0x3d9480=_0x5c0bb0['jwYrn'](buildCliArtifactPath,_0x446e84,'01_initial-state.png'),_0x1eeb86=_0x5c0bb0[_0x46801c(0x124)](buildCliArtifactPath,_0x446e84,_0x5c0bb0['XGzHz']),_0x19aca9=_0x5c0bb0['jwYrn'](buildCliArtifactPath,_0x446e84,_0x5c0bb0['VjrGC']);return _0x46801c(0x12f)+_0x1849cd+'\x0a\x0a'+buildNovaSharedOptionsInstruction(_0x4d3a1e)+_0x46801c(0x1eb)+_0x1849cd+_0x46801c(0x128)+_0x5c0bb0['kzRXH'](quoteShellArg,_0x19fe5d)+'\x20'+_0x4d3a1e+'`\x0a2.\x20Run\x20`'+_0x1849cd+'\x20snapshot\x20--output\x20'+_0x5c0bb0['kzRXH'](quoteShellArg,_0x16fb77)+'\x20'+_0x4d3a1e+'`\x0a3.\x20Run\x20`'+_0x1849cd+'\x20screenshot\x20--output\x20'+quoteShellArg(_0x3d9480)+'\x20'+_0x4d3a1e+_0x46801c(0x12e)+_0x1849cd+_0x46801c(0x171)+_0x1849cd+'\x20snapshot\x20--output\x20'+quoteShellArg(_0x1eeb86)+'\x20'+_0x4d3a1e+'`\x0a6.\x20Run\x20`'+_0x1849cd+_0x46801c(0x1ca)+quoteShellArg(_0x19aca9)+'\x20'+_0x4d3a1e+_0x46801c(0x132)+_0x446e84+'`\x20using\x20absolute\x20paths\x20only.\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.';}export function buildVerifyFeatureNovaCliPrompt(_0x1b86d0){const _0x5527de=_0x2c4db6,_0x7e42be={'FLIhJ':function(_0x122ac0,_0x69198d,_0x1fa660){return _0x122ac0(_0x69198d,_0x1fa660);},'effgC':_0x5527de(0x16b),'RrCDB':function(_0x4c7443,_0x30f0f6,_0x47fc36){return _0x4c7443(_0x30f0f6,_0x47fc36);},'wwoyI':function(_0x5d0511,_0x54e8df){return _0x5d0511(_0x54e8df);},'LiMNM':_0x5527de(0x1e6),'ORsgP':function(_0x1de4f8,_0x54bf4c){return _0x1de4f8(_0x54bf4c);},'MRFqN':function(_0x137053,_0x4c5a73){return _0x137053(_0x4c5a73);}},{checklistItem:_0x232ad9,itemFeedback:_0x1ea484,taskDescription:_0x5b79b1,novaCommandPrefix:_0x1f6598,novaSharedOptionsSuffix:_0xef9d11,cliArtifactDir:_0x3738d3,url:_0x344866,loginInstructions:_0x71118b}=_0x1b86d0,_0x105906=_0x232ad9['notes']?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x232ad9[_0x5527de(0x1b1)]:'',_0x8dc16f=buildFeedbackSection(_0x1ea484),_0x3866f9=_0x1ea484?.['canonicalFlow']?_0x5527de(0x11f)+_0x1ea484[_0x5527de(0x1a0)]:'',_0x36b42e=_0x71118b?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x71118b+_0x5527de(0x11e):'',_0x22296b=_0x7e42be[_0x5527de(0x1a9)](buildCliArtifactPath,_0x3738d3,_0x7e42be['effgC']),_0x158fcf=_0x7e42be['RrCDB'](buildCliArtifactPath,_0x3738d3,_0x5527de(0x118)),_0x2e1885=buildCliArtifactPath(_0x3738d3,_0x5527de(0x146));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'+_0x232ad9['description']+_0x105906+_0x8dc16f+_0x3866f9+_0x5527de(0x19e)+_0x5b79b1+'\x0a\x0a##\x20App\x20Context\x0aYour\x20base\x20URL\x20is:\x20'+_0x344866+_0x5527de(0x179)+_0x36b42e+'\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`'+_0x1f6598+'\x20session\x20create\x20'+quoteShellArg(_0x344866)+'\x20'+_0xef9d11+'`.\x0a4.\x20Save\x20every\x20snapshot\x20and\x20screenshot\x20under\x20`'+_0x3738d3+_0x5527de(0x19f)+_0x1f6598+_0x5527de(0x1bb)+quoteShellArg(_0x22296b)+'\x20'+_0xef9d11+_0x5527de(0x16a)+_0x1f6598+'\x20screenshot\x20--output\x20'+_0x7e42be[_0x5527de(0x1cc)](quoteShellArg,_0x158fcf)+'\x20'+_0xef9d11+_0x5527de(0x1aa)+_0x2e1885+_0x5527de(0x152)+_0x1f6598+_0x5527de(0x18c)+(_0xef9d11[_0x5527de(0x142)]()?'`'+_0xef9d11+'`':_0x7e42be['LiMNM'])+'\x0a\x0a'+_0x7e42be['ORsgP'](buildNovaSharedOptionsInstruction,_0xef9d11)+'\x0a\x0aExamples:\x0a-\x20`'+_0x1f6598+_0x5527de(0x15b)+_0xef9d11+_0x5527de(0x1f8)+_0x1f6598+'\x20verify\x20\x22The\x20Billing\x20page\x20is\x20visible\x20and\x20shows\x20the\x20current\x20plan.\x22\x20'+_0xef9d11+'`\x0a-\x20`'+_0x1f6598+'\x20snapshot\x20--output\x20'+_0x7e42be[_0x5527de(0x1f0)](quoteShellArg,_0x22296b)+'\x20'+_0xef9d11+_0x5527de(0x1f8)+_0x1f6598+_0x5527de(0x1ca)+_0x7e42be[_0x5527de(0x1f0)](quoteShellArg,_0x2e1885)+'\x20'+_0xef9d11+_0x5527de(0x1c4);}export function summarizeVerifyFeatureNovaCliCommandAvailability(_0x18e08e){const _0x3bec5b=_0x2c4db6,_0x3978bd=[..._0x18e08e['keys']()][_0x3bec5b(0x178)]();let _0x3b1a43=0x0;for(const _0x2887c3 of _0x18e08e[_0x3bec5b(0x1cb)]()){_0x3b1a43+=_0x2887c3;}return{'cliCommandCount':_0x3b1a43,'cliCommandsSeen':_0x3978bd,'noCliCommandsCalled':_0x3b1a43===0x0};}export function createVerifyFeatureNovaCliHooks(_0x4928b3,_0x3895b4){const _0x2c42de=_0x2c4db6,_0x5e8f79={'orFgM':function(_0x3d8ae9,_0x43c8c5){return _0x3d8ae9(_0x43c8c5);},'POQGK':'PostToolUse','PaYee':_0x2c42de(0x1d2),'ZOYsE':function(_0x4bae4b,_0xdd7d01){return _0x4bae4b(_0xdd7d01);},'mbiEx':function(_0x4c0273,_0x52288a,_0x4ca434){return _0x4c0273(_0x52288a,_0x4ca434);},'ddwKC':_0x2c42de(0x1c9),'PMCFt':function(_0x5cdc0d,_0x23b8b1){return _0x5cdc0d!==_0x23b8b1;},'RGvhb':'PostToolUseFailure','FYqlb':_0x2c42de(0x1f6)},_0x2db2f5=new Map(),_0x1c7370=async _0xab42e4=>{const _0x257238=_0x2c42de;if(_0xab42e4['hook_event_name']!==_0x257238(0x1c6))return{};const _0x5bcc36=_0xab42e4;if(_0x5bcc36[_0x257238(0x19a)]!==_0x257238(0x1d2))return{};const _0x177323=_0x5bcc36['tool_input'],_0x28caf6=_0x5e8f79[_0x257238(0x14e)](extractBashCommand,_0x177323);if(!_0x28caf6)return{};const _0x40492b=_0x5e8f79['orFgM'](getNovaActCliCommandBlockReason,_0x28caf6);if(!_0x40492b)return{};return{'decision':_0x257238(0x1bf),'reason':_0x40492b};},_0x4b0a5f=async _0x4be35a=>{const _0x75b5e4=_0x2c42de;if(_0x4be35a[_0x75b5e4(0x149)]!==_0x5e8f79[_0x75b5e4(0x190)])return{};const _0x49fa69=_0x4be35a;if(_0x49fa69['tool_name']!==_0x5e8f79[_0x75b5e4(0x1d5)])return{};const _0x2dcf1e=_0x49fa69[_0x75b5e4(0x182)],_0x21a1eb=extractBashCommand(_0x2dcf1e);if(!_0x21a1eb)return{};const _0x5901ed=_0x5e8f79['ZOYsE'](parseNovaActCliCommand,_0x21a1eb);if(!_0x5901ed)return{};_0x2db2f5['set'](_0x5901ed,(_0x2db2f5[_0x75b5e4(0x150)](_0x5901ed)||0x0)+0x1),_0x4928b3['trackPhaseStart']('nova_act_command',{'subcommand':_0x5901ed}),_0x4928b3['trackPhaseEnd']('nova_act_command',{'subcommand':_0x5901ed,'commandPreview':previewNovaActCliCommand(_0x21a1eb)}),console['log'](_0x75b5e4(0x1b4)+_0x5e8f79['mbiEx'](formatNovaActCliLog,_0x21a1eb,_0x5901ed));if(_0x5901ed===_0x75b5e4(0x120)&&_0x3895b4)try{await _0x3895b4['start']();}catch(_0x33cedf){await _0x4928b3[_0x75b5e4(0x13e)](_0x5e8f79['ddwKC'],_0x33cedf,{'transport':_0x75b5e4(0x1f6)});}return{};},_0x3a8ca0=async _0x21a3f0=>{const _0x3137e3=_0x2c42de;if(_0x5e8f79['PMCFt'](_0x21a3f0['hook_event_name'],_0x5e8f79['RGvhb']))return{};const _0x4f99cb=_0x21a3f0;if(_0x4f99cb[_0x3137e3(0x19a)]!=='Bash')return{};return await _0x4928b3['trackPhaseError']('nova_act_command_failure',_0x4f99cb[_0x3137e3(0x19d)],{'transport':_0x5e8f79['FYqlb'],'toolName':'Bash'}),{};};return{'preToolUseHook':_0x1c7370,'postToolUseHook':_0x4b0a5f,'postToolUseFailureHook':_0x3a8ca0,'commandCounts':_0x2db2f5};}async function runNovaLifecycleCommand(_0x24b279){const _0x403706=_0x2c4db6,_0x42dd75={'obpdN':function(_0x2e94f6,_0x28a106){return _0x2e94f6??_0x28a106;},'xRttp':function(_0x1acf09,_0x410de2){return _0x1acf09(_0x410de2);},'FkMUL':function(_0x43ae17,_0x4e8852){return _0x43ae17(_0x4e8852);}},{novaOptions:_0x5bbde2,commandArgs:_0x54a114,telemetry:_0x39a401,phase:_0x2741ab,metadata:_0x44459f,timeoutMs:_0x2710d2}=_0x24b279;_0x39a401['trackPhaseStart'](_0x2741ab,_0x44459f);try{const _0x743168=await runNovaActCliCommand({..._0x5bbde2,'commandArgs':_0x54a114,'cwd':process[_0x403706(0x11d)](),'env':process[_0x403706(0x1ce)],'timeoutMs':_0x42dd75['obpdN'](_0x2710d2,NOVA_ACT_CLI_COMMAND_TIMEOUT_MS)});_0x39a401['trackPhaseEnd'](_0x2741ab,{..._0x44459f,'subcommand':_0x743168[_0x403706(0x157)][_0x403706(0x18f)],'commandPreview':_0x42dd75['xRttp'](previewNovaActCliCommand,_0x743168[_0x403706(0x157)][_0x403706(0x18a)]),'stdoutPreview':_0x42dd75['FkMUL'](previewNovaActCliCommand,_0x743168[_0x403706(0x15a)]),'stderrPreview':_0x42dd75[_0x403706(0x167)](previewNovaActCliCommand,_0x743168['stderr']),'logDir':extractNovaActLogDir(_0x743168['stdout'])});}catch(_0x1ffec3){await _0x39a401[_0x403706(0x13e)](_0x2741ab,_0x1ffec3,_0x44459f);throw _0x1ffec3;}}export async function finalizeVerifyFeatureNovaCliSession(_0x3a9ae4){const _0x1b98e0=_0x2c4db6,_0x3fe06d={'zNzkg':function(_0x62340f,_0x5d555e,_0x4aafc1){return _0x62340f(_0x5d555e,_0x4aafc1);},'VSWEE':'key_final-state.png','FkDxN':'session','gWzQd':_0x1b98e0(0x176),'UWEtA':_0x1b98e0(0x13d),'NPtMR':'nova-session-export.json','ZWVSy':'nova_act_session_report','EvVRN':'export','wQeaS':function(_0x3b0a17,_0x1695c1,_0x1eec7){return _0x3b0a17(_0x1695c1,_0x1eec7);},'DyptG':_0x1b98e0(0x161),'nvEve':_0x1b98e0(0x1b8),'rbhJQ':function(_0x5e882b,_0x2b05c3){return _0x5e882b===_0x2b05c3;},'hHbOk':'nova_act_session_close'},{telemetry:_0x55aacd,novaOptions:_0x32bea4,cliArtifactDir:_0x1972ba,transportMetadata:_0x4bd7a5,artifactRecorder:_0x2ba934}=_0x3a9ae4,_0x431983=[{'phase':'nova_act_final_screenshot','commandArgs':['screenshot','--output',_0x3fe06d['zNzkg'](buildCliArtifactPath,_0x1972ba,_0x3fe06d[_0x1b98e0(0x1a1)])]},{'phase':_0x1b98e0(0x17c),'commandArgs':[_0x1b98e0(0x1c0),_0x1b98e0(0x13d),buildCliArtifactPath(_0x1972ba,_0x1b98e0(0x177))]},{'phase':'nova_act_session_export','commandArgs':[_0x3fe06d[_0x1b98e0(0x17d)],_0x1b98e0(0x189),_0x1b98e0(0x172),_0x3fe06d[_0x1b98e0(0x195)],_0x3fe06d['UWEtA'],buildCliArtifactPath(_0x1972ba,_0x3fe06d['NPtMR'])]},{'phase':_0x3fe06d['ZWVSy'],'commandArgs':[_0x1b98e0(0x119),_0x3fe06d[_0x1b98e0(0x17f)],_0x1b98e0(0x1a8),'--output-dir',_0x3fe06d['wQeaS'](buildCliArtifactPath,_0x1972ba,_0x3fe06d[_0x1b98e0(0x1dc)])]},{'phase':'nova_act_session_close','commandArgs':['session',_0x3fe06d['nvEve']]}];for(const _0x14ee75 of _0x431983){_0x3fe06d[_0x1b98e0(0x1ee)](_0x14ee75['phase'],_0x3fe06d[_0x1b98e0(0x1d9)])&&await _0x2ba934?.['stop']();try{await runNovaLifecycleCommand({'novaOptions':_0x32bea4,'commandArgs':[..._0x14ee75[_0x1b98e0(0x11b)]],'telemetry':_0x55aacd,'phase':_0x14ee75['phase'],'metadata':_0x4bd7a5});}catch{}}}export async function harvestVerifyFeatureNovaCliArtifacts(_0x2102cc){const _0x1920fd=_0x2c4db6,_0xf6001f={'NBOvf':function(_0xabc8fc,_0x4c658f,_0x3b5d1b){return _0xabc8fc(_0x4c658f,_0x3b5d1b);},'snuHS':function(_0x143161,_0x57ac66,_0x489d0f){return _0x143161(_0x57ac66,_0x489d0f);},'eLsYv':function(_0x3b0669,_0xebbab5){return _0x3b0669<_0xebbab5;}},{cwd:_0x345c2d,cliArtifactDir:_0x57a2ef,startTime:_0x254ae5}=_0x2102cc,_0x3143fe=[];await _0xf6001f[_0x1920fd(0x136)](mkdir,_0x57a2ef,{'recursive':!![]});const _0x20ba01=await _0xf6001f['snuHS'](readdir,_0x345c2d,{'withFileTypes':!![]});for(const _0x213da4 of _0x20ba01){if(!_0x213da4[_0x1920fd(0x156)]()||!VERIFY_FEATURE_NOVA_ARTIFACT_FILE_PATTERN['test'](_0x213da4[_0x1920fd(0x17e)]))continue;const _0x495c37=join(_0x345c2d,_0x213da4[_0x1920fd(0x17e)]),_0x4dcffd=await stat(_0x495c37);if(_0xf6001f['eLsYv'](_0x4dcffd['mtimeMs']+0x7d0,_0x254ae5))continue;const _0x5dd5ef=buildCliArtifactPath(_0x57a2ef,_0x213da4[_0x1920fd(0x17e)]);if(_0x495c37===_0x5dd5ef)continue;await rename(_0x495c37,_0x5dd5ef),_0x3143fe[_0x1920fd(0x1f5)](_0x213da4[_0x1920fd(0x17e)]);}return _0x3143fe['sort']();}export async function loadVerifyFeatureNovaTraceUploadArtifact(_0x195a29){const _0x3fdf93=_0x2c4db6,_0x2fe113={'DMJgX':function(_0xc7ed5e,_0x3ebc58,_0x35437b){return _0xc7ed5e(_0x3ebc58,_0x35437b);}},_0x46971c=_0x2fe113[_0x3fdf93(0x187)](join,_0x195a29,'trace.zip');try{return{'buffer':await readFile(_0x46971c),'source':_0x46971c};}catch{return{'buffer':await zipVerifyFeatureNovaArtifacts(_0x195a29),'source':_0x195a29};}}async function zipVerifyFeatureNovaArtifacts(_0x16233b){const _0x5ea43d=_0x2c4db6,_0x22b74b={'Yjgfl':function(_0x11b81c,_0x570816,_0xaefe73,_0x182e81){return _0x11b81c(_0x570816,_0xaefe73,_0x182e81);},'nJISp':function(_0x33c73b,_0x3c35a2){return _0x33c73b(_0x3c35a2);},'qHoby':function(_0x9a18ec,_0x4c7176,_0x2ef170){return _0x9a18ec(_0x4c7176,_0x2ef170);}},_0x9ceeb6=join(_0x16233b,'..','nova-artifacts.zip');try{return await _0x22b74b[_0x5ea43d(0x165)](execFileAsync,'zip',['-qr',_0x9ceeb6,'.','-x',_0x5ea43d(0x137)],{'cwd':_0x16233b}),await _0x22b74b[_0x5ea43d(0x181)](readFile,_0x9ceeb6);}finally{await _0x22b74b['qHoby'](rm,_0x9ceeb6,{'force':!![]});}}export function buildNovaActCliDiagnostics(_0x4f9ee9){const _0x486763=_0x2c4db6,_0x204196={'FZrxA':function(_0xa786fe,_0x4d5262,_0x5e417a){return _0xa786fe(_0x4d5262,_0x5e417a);},'KUNDN':function(_0x38d2f5,_0x242b45){return _0x38d2f5(_0x242b45);}},_0x109e02=_0x204196['FZrxA'](buildNovaActCliInvocation,_0x4f9ee9['novaOptions'],_0x4f9ee9[_0x486763(0x11b)]);return{'command':_0x109e02[_0x486763(0x1c7)],'args':_0x109e02[_0x486763(0x121)],'commandPreview':_0x204196[_0x486763(0x15d)](previewNovaActCliCommand,_0x109e02['shellCommand']),'subcommand':_0x109e02['subcommand'],'sharedOptionsSuffix':buildNovaActCliSharedOptionsSuffix(_0x4f9ee9[_0x486763(0x135)],_0x4f9ee9[_0x486763(0x11b)])};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x22f865,_0x37d953){const _0x4abf39=_0x3145,_0x1aa09e=_0x22f865();while(!![]){try{const _0x3ad47e=-parseInt(_0x4abf39(0x163))/0x1*(parseInt(_0x4abf39(0x171))/0x2)+-parseInt(_0x4abf39(0x1a6))/0x3+-parseInt(_0x4abf39(0x175))/0x4+-parseInt(_0x4abf39(0x183))/0x5+-parseInt(_0x4abf39(0x1b7))/0x6+-parseInt(_0x4abf39(0x162))/0x7*(-parseInt(_0x4abf39(0x19e))/0x8)+parseInt(_0x4abf39(0x19d))/0x9;if(_0x3ad47e===_0x37d953)break;else _0x1aa09e['push'](_0x1aa09e['shift']());}catch(_0x59195c){_0x1aa09e['push'](_0x1aa09e['shift']());}}}(_0x6fd1,0xadad6));function _0x3145(_0x518dc7,_0x34e6fd){_0x518dc7=_0x518dc7-0x162;const _0x6fd18b=_0x6fd1();let _0x3145e1=_0x6fd18b[_0x518dc7];return _0x3145e1;}import{extractBashCommand,quoteShellArg}from'./utils/playwrightCli.js';function _0x6fd1(){const _0x2b9d3b=['rangerwright-cli','):\x20\x22','description','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','unaddressedComments','\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','cyUyE','en-US','stdout','trackPhaseEnd','go\x20back\x20and\x20inspect','\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.','xYpiM','zsbbh','test','dsYIo','length','createdAt','close','keys','sort','LfiQp','inspect','sreiH','\x0a\x0a##\x20Task\x20to\x20Execute\x0a','34065423IZsEAA','16hzzYVm','hook_event_name','-\x20[','content','invocation','.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.','inspect\x20page','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','878538wHZggU','tool_input','PostToolUseFailure','rangerwright_cli_close','gbNaE','ref\x20','iYByv','log','key_02_learn-more.png','QLczW','vDYwY','numeric','01_initial-state.png','rangerwright_cli_command_failure','url','\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a','domRef','6054990dvGuUn','Fbdzk','ItCoc','match','\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\x20evaluation\x20\x22blocked\x22\x20and\x20describe\x20the\x20auth\x20failure.','(?:^|\x5cs)','fill-and-inspect','stop\x20tracing','fill','\x20inspect\x20--screenshot-path\x20','slice','close\x20browser\x20session','click\x20and\x20inspect\x20','values','55111jaPVcN','1618dFflav','open\x20and\x20inspect','commandPrefix','\x20--screenshot-path\x20','bTBuU','open-and-inspect','bSDdp','\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.','\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','wsyan','UjrRW','...','short','notes','496ydkSxV','\x5c$&','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','authorEmail','2934416bogNpU','(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))','lXPpe','selector','join','split','UOFMF','tool_name','suKKB','phase','video-stop','\x20open-and-inspect\x20','##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20','VTdFy','3262660FFJhOz'];_0x6fd1=function(){return _0x2b9d3b;};return _0x6fd1();}import{parseRangerwrightCliCommand,runRangerwrightCliCommand}from'./utils/rangerwrightCli.js';const RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS=0xea60,RANGERWRIGHT_CLI_PREVIEW_LIMIT=0xf0;function truncatePreview(_0x468dc3,_0x16b7a6=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x51259a=_0x3145,_0x379c1c={'bQssn':function(_0xc86215,_0x1224c8){return _0xc86215+_0x1224c8;},'cFxVq':_0x51259a(0x16e)};return _0x468dc3[_0x51259a(0x194)]>_0x16b7a6?_0x379c1c['bQssn'](_0x468dc3[_0x51259a(0x1c1)](0x0,_0x16b7a6),_0x379c1c['cFxVq']):_0x468dc3;}function extractShellValue(_0xb01eb2){if(!_0xb01eb2)return null;return _0xb01eb2[0x1]??_0xb01eb2[0x2]??_0xb01eb2[0x3]??null;}function extractFirstCommandArgument(_0x534b94,_0x161d9f){const _0x221beb=_0x3145,_0x32080a=_0x161d9f['replace'](/[.*+?^${}()|[\]\\]/g,_0x221beb(0x172));return extractShellValue(_0x534b94[_0x221beb(0x1ba)](new RegExp(_0x221beb(0x1bc)+_0x32080a+_0x221beb(0x176))));}function formatCommandTarget(_0x44359b){const _0x473298=_0x3145,_0x36046a={'AIBFW':'target'};if(!_0x44359b)return _0x36046a['AIBFW'];if(/^e\d+$/i[_0x473298(0x192)](_0x44359b))return _0x473298(0x1ab)+_0x44359b;return JSON['stringify'](truncatePreview(_0x44359b,0x78));}function formatRangerwrightCliLog(_0x13bb57,_0x4d9101){const _0x2b7c92=_0x3145,_0x5e4452={'gbNaE':_0x2b7c92(0x168),'bTBuU':function(_0x462858,_0x14a2b1){return _0x462858(_0x14a2b1);},'coZUX':_0x2b7c92(0x1bf),'VTdFy':_0x2b7c92(0x1bd),'QLczW':'back-and-inspect','wsyan':_0x2b7c92(0x18e),'dsYIo':_0x2b7c92(0x19a),'Fbdzk':'tracing-stop','vDYwY':_0x2b7c92(0x196),'iYByv':_0x2b7c92(0x1c2)};switch(_0x4d9101){case _0x5e4452[_0x2b7c92(0x1aa)]:{const _0x1cf165=extractFirstCommandArgument(_0x13bb57,_0x4d9101);return _0x1cf165?'open\x20and\x20inspect\x20'+_0x1cf165:_0x2b7c92(0x164);}case'click-and-inspect':return _0x2b7c92(0x1c3)+_0x5e4452[_0x2b7c92(0x167)](formatCommandTarget,extractFirstCommandArgument(_0x13bb57,_0x4d9101));case _0x5e4452['coZUX']:case _0x5e4452[_0x2b7c92(0x182)]:return'fill\x20'+formatCommandTarget(extractFirstCommandArgument(_0x13bb57,_0x4d9101));case _0x5e4452[_0x2b7c92(0x1af)]:return _0x5e4452[_0x2b7c92(0x16c)];case _0x5e4452[_0x2b7c92(0x193)]:return _0x2b7c92(0x1a4);case _0x5e4452[_0x2b7c92(0x1b8)]:return _0x2b7c92(0x1be);case _0x2b7c92(0x17f):return'stop\x20video\x20recording';case _0x5e4452[_0x2b7c92(0x1b0)]:return _0x5e4452[_0x2b7c92(0x1ac)];default:return _0x4d9101;}}function renderScenarioSections(_0x23cfbd){const _0x106fcd=_0x3145,_0x4cfd0d={'lXPpe':_0x106fcd(0x18b),'hoYFv':_0x106fcd(0x16f),'LfiQp':_0x106fcd(0x1b1),'QdnFC':'Reviewer','OleRP':function(_0x34a820,_0x3ae8f7){return _0x34a820>_0x3ae8f7;}},{checklistItem:_0x2ee516,itemFeedback:_0x442a63}=_0x23cfbd,_0x22b3f1=_0x2ee516[_0x106fcd(0x170)]?'\x0a\x0a##\x20Additional\x20Notes\x0a'+_0x2ee516['notes']:'';let _0x52646e='';if(_0x442a63&&_0x4cfd0d['OleRP'](_0x442a63[_0x106fcd(0x188)]['length'],0x0)){const _0x382255=_0x442a63['unaddressedComments']['map'](_0x46e73f=>{const _0x521779=_0x106fcd,_0x2232e7=new Date(_0x46e73f[_0x521779(0x195)])['toLocaleDateString'](_0x4cfd0d[_0x521779(0x177)],{'month':_0x4cfd0d['hoYFv'],'day':_0x4cfd0d[_0x521779(0x199)]}),_0x5f32be=_0x46e73f['authorName']||_0x46e73f[_0x521779(0x174)]||_0x4cfd0d['QdnFC'],_0x2b7450=_0x46e73f[_0x521779(0x1b6)]?'\x20(on\x20element:\x20<'+(_0x46e73f[_0x521779(0x1b6)][_0x521779(0x178)][_0x521779(0x17a)]('\x20>\x20')['pop']()?.['split'](':')[0x0]||'element')+'>\x20\x22'+(_0x46e73f[_0x521779(0x1b6)]['textContent']||'')['slice'](0x0,0x32)+'\x22)':'';return _0x521779(0x1a0)+_0x46e73f['id']+']\x20'+_0x5f32be+'\x20('+_0x2232e7+_0x521779(0x185)+_0x46e73f[_0x521779(0x1a1)]+'\x22'+_0x2b7450;})[_0x106fcd(0x179)]('\x0a');_0x52646e=_0x106fcd(0x16b)+_0x382255;}const _0x59b5cc=_0x442a63?.['canonicalFlow']?'\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a'+_0x442a63['canonicalFlow']:'';return''+_0x2ee516[_0x106fcd(0x186)]+_0x22b3f1+_0x52646e+_0x59b5cc;}export function buildVerifyFeatureRangerwrightCliPrompt(_0xd54dab){const _0x1fb1eb=_0x3145,_0x285866={'vmXtJ':function(_0x4ad80a,_0x6d30ae){return _0x4ad80a(_0x6d30ae);},'fOPjX':function(_0x387f02,_0x21e3de){return _0x387f02(_0x21e3de);},'FidDT':'about:blank','ZcUiU':function(_0x279391,_0x5d3b9d){return _0x279391(_0x5d3b9d);}},{checklistItem:_0x22ec34,itemFeedback:_0x2b25ed,taskDescription:_0x2b0cda,commandPrefix:_0x257a14,isCdpMode:_0x3bac08,url:_0x2caf51,cdpEndpoint:_0x314cc4,loginInstructions:_0x137cfd}=_0xd54dab,_0x5680a1=_0x1fb1eb(0x1b2),_0x4dfe0f='key_99_final-state.png',_0xf8501f=_0x3bac08?_0x257a14+_0x1fb1eb(0x1c0)+_0x285866['vmXtJ'](quoteShellArg,_0x5680a1):_0x257a14+_0x1fb1eb(0x180)+_0x285866['fOPjX'](quoteShellArg,_0x2caf51??_0x285866['FidDT'])+'\x20--screenshot-path\x20'+quoteShellArg(_0x5680a1),_0x23fbb0=_0x3bac08?_0x1fb1eb(0x181)+_0x314cc4+_0x1fb1eb(0x1a3):'CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20'+_0x2caf51+_0x1fb1eb(0x18f),_0x5f1903=_0x137cfd?'\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a'+_0x137cfd+_0x1fb1eb(0x1bb):'';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'+_0x285866['ZcUiU'](renderScenarioSections,{'checklistItem':_0x22ec34,'itemFeedback':_0x2b25ed})+_0x1fb1eb(0x19c)+_0x2b0cda+'\x0a\x0a'+_0x23fbb0+_0x5f1903+_0x1fb1eb(0x1b5)+_0x257a14+'\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'+_0xf8501f+_0x1fb1eb(0x189)+_0x257a14+'\x20click-and-inspect\x20e37\x20--screenshot-path\x20'+quoteShellArg(_0x4dfe0f)+_0x1fb1eb(0x16a);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x4f85e3){const _0x362b96=_0x3145,_0x562422={'TTJyA':'01_mozilla-homepage.png','UOFMF':function(_0xc8b19e,_0x4c20c3){return _0xc8b19e(_0x4c20c3);}},_0xc26a4=_0x562422['TTJyA'],_0x393495=_0x362b96(0x1ae);return _0x362b96(0x187)+_0x4f85e3['commandPrefix']+'\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`'+_0x4f85e3[_0x362b96(0x165)]+_0x362b96(0x180)+_0x562422['UOFMF'](quoteShellArg,_0x4f85e3[_0x362b96(0x1b4)])+_0x362b96(0x166)+quoteShellArg(_0xc26a4)+'`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`'+_0x4f85e3[_0x362b96(0x165)]+_0x362b96(0x173)+_0x562422[_0x362b96(0x17b)](quoteShellArg,_0x393495)+_0x362b96(0x1a5);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x59fdd3){const _0x42dc1f=_0x3145,_0x555a54=[..._0x59fdd3[_0x42dc1f(0x197)]()][_0x42dc1f(0x198)]();let _0x159b90=0x0;for(const _0x59b99a of _0x59fdd3[_0x42dc1f(0x1c4)]()){_0x159b90+=_0x59b99a;}return{'cliCommandCount':_0x159b90,'cliCommandsSeen':_0x555a54,'noCliCommandsCalled':_0x159b90===0x0};}export function createVerifyFeatureRangerwrightCliHooks(_0xbf9e39){const _0x43a0fa=_0x3145,_0xca743f={'UjrRW':function(_0x125b49,_0x589fa0){return _0x125b49!==_0x589fa0;},'HnNIV':'PostToolUse','bSDdp':function(_0x20fd35,_0xde5411){return _0x20fd35!==_0xde5411;},'suKKB':'Bash','zsbbh':'rangerwright_cli_command','ItCoc':function(_0x3340d3,_0x156fc8){return _0x3340d3(_0x156fc8);},'sreiH':_0x43a0fa(0x1a8)},_0x1237a7=new Map(),_0x51fe5f=async _0x4b3607=>{const _0xb262fc=_0x43a0fa;if(_0xca743f[_0xb262fc(0x16d)](_0x4b3607['hook_event_name'],_0xca743f['HnNIV']))return{};const _0x13bd3f=_0x4b3607;if(_0xca743f[_0xb262fc(0x169)](_0x13bd3f['tool_name'],_0xca743f[_0xb262fc(0x17d)]))return{};const _0x2beae1=_0x13bd3f[_0xb262fc(0x1a7)],_0xf72fc=extractBashCommand(_0x2beae1);if(!_0xf72fc)return{};const _0x4fffe8=parseRangerwrightCliCommand(_0xf72fc);if(!_0x4fffe8)return{};return _0x1237a7['set'](_0x4fffe8,(_0x1237a7['get'](_0x4fffe8)||0x0)+0x1),_0xbf9e39['trackPhaseStart'](_0xca743f[_0xb262fc(0x191)],{'subcommand':_0x4fffe8}),_0xbf9e39['trackPhaseEnd'](_0xca743f['zsbbh'],{'subcommand':_0x4fffe8,'commandPreview':_0xca743f[_0xb262fc(0x1b9)](truncatePreview,_0xf72fc)}),console[_0xb262fc(0x1ad)]('[rangerwright-cli]\x20'+formatRangerwrightCliLog(_0xf72fc,_0x4fffe8)),{};},_0x27410f=async _0x4c43b6=>{const _0x4ab1dc=_0x43a0fa;if(_0x4c43b6[_0x4ab1dc(0x19f)]!==_0xca743f[_0x4ab1dc(0x19b)])return{};const _0x4359f1=_0x4c43b6;if(_0xca743f['UjrRW'](_0x4359f1[_0x4ab1dc(0x17c)],'Bash'))return{};return await _0xbf9e39['trackPhaseError'](_0x4ab1dc(0x1b3),_0x4359f1['error'],{'transport':_0x4ab1dc(0x184),'toolName':_0xca743f[_0x4ab1dc(0x17d)]}),{};};return{'postToolUseHook':_0x51fe5f,'postToolUseFailureHook':_0x27410f,'commandCounts':_0x1237a7};}async function runRangerwrightLifecycleCommand(_0x45ea50){const _0x1a5ffb=_0x3145,_0x500c18={'XvBjh':function(_0x5e99a7,_0x2a928b,_0x456e41){return _0x5e99a7(_0x2a928b,_0x456e41);}},{options:_0x4608d3,commandArgs:_0x5cc60f,env:_0x128c41,telemetry:_0x5502fa,phase:_0x2ff120,metadata:_0x433757,timeoutMs:_0x4267b5}=_0x45ea50;_0x5502fa['trackPhaseStart'](_0x2ff120,_0x433757);try{const _0x28e838=await runRangerwrightCliCommand({..._0x4608d3,'commandArgs':_0x5cc60f,'cwd':process['cwd'](),'env':_0x128c41,'timeoutMs':_0x4267b5??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x5502fa[_0x1a5ffb(0x18d)](_0x2ff120,{..._0x433757,'subcommand':_0x28e838[_0x1a5ffb(0x1a2)]['subcommand'],'stdoutPreview':_0x500c18['XvBjh'](truncatePreview,_0x28e838[_0x1a5ffb(0x18c)],0x7d0),'stderrPreview':truncatePreview(_0x28e838['stderr'],0x7d0)});}catch(_0x53fbcf){await _0x5502fa['trackPhaseError'](_0x2ff120,_0x53fbcf,_0x433757);throw _0x53fbcf;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x4133f9){const _0x16e950=_0x3145,_0x6573b0={'xYpiM':'rangerwright_cli_tracing_stop','cyUyE':'video-stop'},{telemetry:_0x3d1436,rangerwrightOptions:_0x599f15,env:_0x327967,transportMetadata:_0x422bae}=_0x4133f9,_0x55f9c4=[{'phase':_0x6573b0[_0x16e950(0x190)],'commandArgs':['tracing-stop']},{'phase':'rangerwright_cli_video_stop','commandArgs':[_0x6573b0[_0x16e950(0x18a)]]},{'phase':_0x16e950(0x1a9),'commandArgs':['close']}];for(const _0x252d4c of _0x55f9c4){try{await runRangerwrightLifecycleCommand({'options':_0x599f15,'commandArgs':[..._0x252d4c['commandArgs']],'env':_0x327967,'telemetry':_0x3d1436,'phase':_0x252d4c[_0x16e950(0x17e)],'metadata':_0x422bae});}catch{}}}
|
|
1
|
+
(function(_0xb26a31,_0x53b245){const _0x5bad72=_0x18f3,_0x25e783=_0xb26a31();while(!![]){try{const _0xc41e7d=-parseInt(_0x5bad72(0x163))/0x1*(parseInt(_0x5bad72(0x17c))/0x2)+parseInt(_0x5bad72(0x16c))/0x3+parseInt(_0x5bad72(0x18b))/0x4+parseInt(_0x5bad72(0x191))/0x5+parseInt(_0x5bad72(0x17d))/0x6*(-parseInt(_0x5bad72(0x193))/0x7)+parseInt(_0x5bad72(0x164))/0x8+parseInt(_0x5bad72(0x175))/0x9*(-parseInt(_0x5bad72(0x19b))/0xa);if(_0xc41e7d===_0x53b245)break;else _0x25e783['push'](_0x25e783['shift']());}catch(_0x3a9d13){_0x25e783['push'](_0x25e783['shift']());}}}(_0x328b,0xcf197));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(_0x162969,_0xf56e5d=RANGERWRIGHT_CLI_PREVIEW_LIMIT){const _0x37b03a=_0x18f3,_0x55beda={'UIgQy':function(_0x50db2b,_0x562335){return _0x50db2b>_0x562335;},'HcsvL':_0x37b03a(0x187)};return _0x55beda['UIgQy'](_0x162969[_0x37b03a(0x160)],_0xf56e5d)?_0x162969[_0x37b03a(0x15a)](0x0,_0xf56e5d)+_0x55beda['HcsvL']:_0x162969;}function extractShellValue(_0xcb0724){if(!_0xcb0724)return null;return _0xcb0724[0x1]??_0xcb0724[0x2]??_0xcb0724[0x3]??null;}function extractFirstCommandArgument(_0x36b842,_0x26d3d9){const _0x3e6c6c=_0x18f3,_0x329a44={'kdspP':_0x3e6c6c(0x1a3)},_0x1c247a=_0x26d3d9['replace'](/[.*+?^${}()|[\]\\]/g,_0x329a44[_0x3e6c6c(0x18a)]);return extractShellValue(_0x36b842[_0x3e6c6c(0x169)](new RegExp('(?:^|\x5cs)'+_0x1c247a+'(?:\x5cs+(?:\x22([^\x22]+)\x22|\x27([^\x27]+)\x27|(\x5cS+)))')));}function _0x18f3(_0x75ae38,_0x51dac0){_0x75ae38=_0x75ae38-0x13d;const _0x328bac=_0x328b();let _0x18f314=_0x328bac[_0x75ae38];return _0x18f314;}function formatCommandTarget(_0x2a59aa){const _0xeb0df=_0x18f3,_0x1d6660={'lwbUd':function(_0x3d1c82,_0x4690b8,_0x32d269){return _0x3d1c82(_0x4690b8,_0x32d269);}};if(!_0x2a59aa)return'target';if(/^e\d+$/i['test'](_0x2a59aa))return'ref\x20'+_0x2a59aa;return JSON['stringify'](_0x1d6660[_0xeb0df(0x17f)](truncatePreview,_0x2a59aa,0x78));}function formatRangerwrightCliLog(_0x4451d7,_0x45c3e5){const _0x40cb1e=_0x18f3,_0x254914={'FFosY':_0x40cb1e(0x156),'GjNpp':function(_0x8a95a1,_0x3b530e,_0x310293){return _0x8a95a1(_0x3b530e,_0x310293);},'gpHrp':'open\x20and\x20inspect','IWOzQ':'click-and-inspect','HpGud':function(_0x5d9510,_0x493a53){return _0x5d9510(_0x493a53);},'YLXjq':function(_0x39ffe0,_0x3afc9a,_0x26f156){return _0x39ffe0(_0x3afc9a,_0x26f156);},'fPAWE':_0x40cb1e(0x174),'xERWf':function(_0x3d7adb,_0x3bccf1){return _0x3d7adb(_0x3bccf1);},'Jbara':_0x40cb1e(0x18e),'PKdof':'go\x20back\x20and\x20inspect','DFbSl':'inspect','eBMHC':'inspect\x20page','KfqIN':'video-stop','HGUMf':'stop\x20video\x20recording','ddmwK':_0x40cb1e(0x15f)};switch(_0x45c3e5){case _0x254914[_0x40cb1e(0x14f)]:{const _0x19ca5c=_0x254914[_0x40cb1e(0x165)](extractFirstCommandArgument,_0x4451d7,_0x45c3e5);return _0x19ca5c?_0x40cb1e(0x17e)+_0x19ca5c:_0x254914[_0x40cb1e(0x146)];}case _0x254914['IWOzQ']:return _0x40cb1e(0x1a1)+_0x254914[_0x40cb1e(0x16e)](formatCommandTarget,_0x254914[_0x40cb1e(0x152)](extractFirstCommandArgument,_0x4451d7,_0x45c3e5));case _0x254914[_0x40cb1e(0x16f)]:case'fill-and-inspect':return'fill\x20'+_0x254914[_0x40cb1e(0x16b)](formatCommandTarget,extractFirstCommandArgument(_0x4451d7,_0x45c3e5));case _0x254914[_0x40cb1e(0x19c)]:return _0x254914[_0x40cb1e(0x18c)];case _0x254914[_0x40cb1e(0x15e)]:return _0x254914[_0x40cb1e(0x194)];case'tracing-stop':return _0x40cb1e(0x184);case _0x254914[_0x40cb1e(0x13d)]:return _0x254914[_0x40cb1e(0x151)];case _0x254914[_0x40cb1e(0x196)]:return _0x40cb1e(0x171);default:return _0x45c3e5;}}function renderScenarioSections(_0x2082bc){const _0xb3ec56=_0x18f3,_0x532c6b={'QgIwO':_0xb3ec56(0x15c),'pVRhH':'numeric','ESGVc':_0xb3ec56(0x14d),'RYGbc':_0xb3ec56(0x158),'dmLYF':'element'},{checklistItem:_0x41e5c2,itemFeedback:_0x16035f}=_0x2082bc,_0x180f35=_0x41e5c2[_0xb3ec56(0x13e)]?_0xb3ec56(0x180)+_0x41e5c2[_0xb3ec56(0x13e)]:'';let _0x5c11a4='';if(_0x16035f&&_0x16035f[_0xb3ec56(0x148)]['length']>0x0){const _0x494b4f=_0x16035f[_0xb3ec56(0x148)][_0xb3ec56(0x14a)](_0x2b1ea2=>{const _0x517a75=_0xb3ec56,_0x3a6ce9=new Date(_0x2b1ea2['createdAt'])[_0x517a75(0x157)]('en-US',{'month':_0x532c6b['QgIwO'],'day':_0x532c6b[_0x517a75(0x153)]}),_0x2472f9=_0x2b1ea2[_0x517a75(0x15d)]||_0x2b1ea2[_0x517a75(0x155)]||_0x532c6b[_0x517a75(0x172)],_0x175116=_0x2b1ea2[_0x517a75(0x1a0)]?_0x517a75(0x140)+(_0x2b1ea2[_0x517a75(0x1a0)][_0x517a75(0x178)]['split'](_0x532c6b['RYGbc'])['pop']()?.[_0x517a75(0x14e)](':')[0x0]||_0x532c6b['dmLYF'])+_0x517a75(0x154)+(_0x2b1ea2[_0x517a75(0x1a0)][_0x517a75(0x167)]||'')['slice'](0x0,0x32)+'\x22)':'';return _0x517a75(0x170)+_0x2b1ea2['id']+']\x20'+_0x2472f9+'\x20('+_0x3a6ce9+_0x517a75(0x197)+_0x2b1ea2[_0x517a75(0x145)]+'\x22'+_0x175116;})['join']('\x0a');_0x5c11a4=_0xb3ec56(0x190)+_0x494b4f;}const _0x45bb0d=_0x16035f?.['canonicalFlow']?_0xb3ec56(0x181)+_0x16035f[_0xb3ec56(0x182)]:'';return''+_0x41e5c2['description']+_0x180f35+_0x5c11a4+_0x45bb0d;}export function buildVerifyFeatureRangerwrightCliPrompt(_0x3ad452){const _0x1cb86d=_0x18f3,_0xed03bc={'mWcDe':function(_0x1aa0be,_0x43e4fa){return _0x1aa0be(_0x43e4fa);},'kgqNf':function(_0x13d3be,_0x21239c){return _0x13d3be??_0x21239c;},'TsHFO':function(_0x3e177f,_0x30cc80){return _0x3e177f(_0x30cc80);}},{checklistItem:_0x57d605,itemFeedback:_0x1d74e0,taskDescription:_0x464a92,commandPrefix:_0x2b1a27,isCdpMode:_0xd6d847,url:_0x23118a,cdpEndpoint:_0x43e708,loginInstructions:_0x51d3a0}=_0x3ad452,_0xbabb7d='01_initial-state.png',_0xd1b061='key_99_final-state.png',_0x38c99c=_0xd6d847?_0x2b1a27+'\x20inspect\x20--screenshot-path\x20'+_0xed03bc[_0x1cb86d(0x19e)](quoteShellArg,_0xbabb7d):_0x2b1a27+'\x20open-and-inspect\x20'+quoteShellArg(_0xed03bc[_0x1cb86d(0x19f)](_0x23118a,_0x1cb86d(0x19d)))+'\x20--screenshot-path\x20'+_0xed03bc['TsHFO'](quoteShellArg,_0xbabb7d),_0x176a0a=_0xd6d847?'##\x20App\x20Context\x0aYou\x20are\x20connected\x20to\x20a\x20desktop\x20application\x20via\x20CDP\x20at\x20'+_0x43e708+'.\x0aThe\x20app\x20is\x20already\x20running\x20and\x20connected.\x20Start\x20with\x20inspect\x20instead\x20of\x20opening\x20a\x20URL.':_0x1cb86d(0x150)+_0x23118a+'\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.',_0x5acb53=_0x51d3a0?_0x1cb86d(0x173)+_0x51d3a0+'\x0a\x0aAfter\x20completing\x20authentication,\x20proceed\x20with\x20the\x20verification\x20task\x20below.\x0aIf\x20authentication\x20fails,\x20return\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'+renderScenarioSections({'checklistItem':_0x57d605,'itemFeedback':_0x1d74e0})+'\x0a\x0a##\x20Task\x20to\x20Execute\x0a'+_0x464a92+'\x0a\x0a'+_0x176a0a+_0x5acb53+'\x0a\x0a##\x20Rangerwright\x20Instructions\x0aUse\x20Bash\x20and\x20Rangerwright\x20only.\x0a\x0aEvery\x20browser\x20command\x20must\x20start\x20with\x20this\x20exact\x20literal\x20command\x20prefix:\x0a\x0a'+_0x2b1a27+_0x1cb86d(0x183)+_0x38c99c+'\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'+_0x2b1a27+_0x1cb86d(0x143)+quoteShellArg(_0xd1b061)+_0x1cb86d(0x199);}export function buildVerifyFeatureRangerwrightCliDebugPrompt(_0x4a4f8b){const _0x1d6515=_0x18f3,_0x11b21f={'ckViS':_0x1d6515(0x19a),'HgdHa':function(_0x4ebec4,_0x5c7950){return _0x4ebec4(_0x5c7950);}},_0x34b7bd=_0x11b21f[_0x1d6515(0x142)],_0x51580e='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'+_0x4a4f8b[_0x1d6515(0x16a)]+_0x1d6515(0x15b)+_0x4a4f8b[_0x1d6515(0x16a)]+_0x1d6515(0x195)+_0x11b21f['HgdHa'](quoteShellArg,_0x4a4f8b['url'])+'\x20--screenshot-path\x20'+quoteShellArg(_0x34b7bd)+_0x1d6515(0x149)+_0x4a4f8b[_0x1d6515(0x16a)]+_0x1d6515(0x192)+quoteShellArg(_0x51580e)+_0x1d6515(0x141);}export function summarizeVerifyFeatureRangerwrightCliCommandAvailability(_0x4b5f18){const _0x1e54e1=_0x18f3,_0x300336={'GJIlt':function(_0x48159a,_0xa9cfbe){return _0x48159a===_0xa9cfbe;}},_0x4a550d=[..._0x4b5f18[_0x1e54e1(0x1a2)]()]['sort']();let _0x5bdd14=0x0;for(const _0x526006 of _0x4b5f18['values']()){_0x5bdd14+=_0x526006;}return{'cliCommandCount':_0x5bdd14,'cliCommandsSeen':_0x4a550d,'noCliCommandsCalled':_0x300336[_0x1e54e1(0x14b)](_0x5bdd14,0x0)};}export function createVerifyFeatureRangerwrightCliHooks(_0x57ccfa){const _0x1534a8=_0x18f3,_0x28f067={'HWKSG':_0x1534a8(0x176),'yaheh':function(_0x25a2e5,_0x9e83fc){return _0x25a2e5!==_0x9e83fc;},'XLDXB':'Bash','GlktO':_0x1534a8(0x161),'ttkvG':function(_0x50a55,_0x2e364b){return _0x50a55(_0x2e364b);},'pNEGZ':'PostToolUseFailure'},_0x591d1a=new Map(),_0x5043e7=async _0x3abc14=>{const _0x20be35=_0x1534a8;if(_0x3abc14[_0x20be35(0x188)]!==_0x28f067[_0x20be35(0x144)])return{};const _0x43ccd0=_0x3abc14;if(_0x28f067[_0x20be35(0x14c)](_0x43ccd0[_0x20be35(0x166)],_0x28f067[_0x20be35(0x162)]))return{};const _0x1a674f=_0x43ccd0[_0x20be35(0x177)],_0x9c5f40=extractBashCommand(_0x1a674f);if(!_0x9c5f40)return{};const _0x41abc4=parseRangerwrightCliCommand(_0x9c5f40);if(!_0x41abc4)return{};return _0x591d1a[_0x20be35(0x18f)](_0x41abc4,(_0x591d1a['get'](_0x41abc4)||0x0)+0x1),_0x57ccfa['trackPhaseStart'](_0x20be35(0x161),{'subcommand':_0x41abc4}),_0x57ccfa[_0x20be35(0x13f)](_0x28f067['GlktO'],{'subcommand':_0x41abc4,'commandPreview':_0x28f067[_0x20be35(0x159)](truncatePreview,_0x9c5f40)}),console[_0x20be35(0x179)](_0x20be35(0x189)+formatRangerwrightCliLog(_0x9c5f40,_0x41abc4)),{};},_0x4147c7=async _0x333de4=>{const _0x25d274=_0x1534a8;if(_0x333de4[_0x25d274(0x188)]!==_0x28f067['pNEGZ'])return{};const _0xde9f84=_0x333de4;if(_0xde9f84['tool_name']!==_0x28f067[_0x25d274(0x162)])return{};return await _0x57ccfa['trackPhaseError']('rangerwright_cli_command_failure',_0xde9f84[_0x25d274(0x18d)],{'transport':'rangerwright-cli','toolName':'Bash'}),{};};return{'postToolUseHook':_0x5043e7,'postToolUseFailureHook':_0x4147c7,'commandCounts':_0x591d1a};}function _0x328b(){const _0x55a82c=['tool_input','selector','log','trackPhaseStart','stderr','10lTSFDF','6GNEngj','open\x20and\x20inspect\x20','lwbUd','\x0a\x0a##\x20Additional\x20Notes\x0a','\x0a\x0a##\x20Expected\x20Flow\x20(from\x20previous\x20verification)\x0a','canonicalFlow','\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','stop\x20tracing','tracing-stop','trackPhaseError','...','hook_event_name','[rangerwright-cli]\x20','kdspP','3107660XIUrgT','PKdof','error','back-and-inspect','set','\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','7106815JMHiio','\x20click-and-inspect\x20<ref>\x20--screenshot-path\x20','838817gWqWzx','eBMHC','\x20open-and-inspect\x20','ddmwK','):\x20\x22','oKRNu','\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.','01_mozilla-homepage.png','20937040YMCHEa','Jbara','about:blank','mWcDe','kgqNf','domRef','click\x20and\x20inspect\x20','keys','\x5c$&','KfqIN','notes','trackPhaseEnd','\x20(on\x20element:\x20<','`\x0a4.\x20Return\x20immediately\x20with\x20the\x20structured\x20output.\x0a\x0aReturn\x20your\x20findings\x20in\x20the\x20structured\x20output\x20format.','ckViS','\x20click-and-inspect\x20e37\x20--screenshot-path\x20','HWKSG','content','gpHrp','subcommand','unaddressedComments','`\x0a2.\x20Use\x20the\x20returned\x20JSON\x20to\x20find\x20the\x20\x22Learn\x20More\x22\x20link\x20ref.\x0a3.\x20Run\x20`','map','GJIlt','yaheh','Reviewer','split','FFosY','CRITICAL\x20URL\x20REQUIREMENT:\x0aYour\x20base\x20URL\x20is:\x20','HGUMf','YLXjq','pVRhH','>\x20\x22','authorEmail','open-and-inspect','toLocaleDateString','\x20>\x20','ttkvG','slice','\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`','short','authorName','DFbSl','close','length','rangerwright_cli_command','XLDXB','318156kBogsK','6517096RSVnlP','GjNpp','tool_name','textContent','rangerwright_cli_tracing_stop','match','commandPrefix','xERWf','4919037dcQeos','commandArgs','HpGud','fPAWE','-\x20[','close\x20browser\x20session','ESGVc','\x0a\x0a##\x20Authentication\x0aBEFORE\x20starting\x20the\x20verification\x20task,\x20authenticate\x20using\x20these\x20steps:\x0a','fill','9ZlZwZm','PostToolUse'];_0x328b=function(){return _0x55a82c;};return _0x328b();}async function runRangerwrightLifecycleCommand(_0x21497c){const _0x1fd46f=_0x18f3,_0x332bdf={'hNsgo':function(_0x4be1e9,_0x1b399f,_0x3ab9bc){return _0x4be1e9(_0x1b399f,_0x3ab9bc);},'vTrtn':function(_0x559b5f,_0x10e622,_0x4db2d6){return _0x559b5f(_0x10e622,_0x4db2d6);}},{options:_0x1aec95,commandArgs:_0x2d140c,env:_0x20c92f,telemetry:_0x1d7528,phase:_0x4f170d,metadata:_0x452689,timeoutMs:_0x7199f3}=_0x21497c;_0x1d7528[_0x1fd46f(0x17a)](_0x4f170d,_0x452689);try{const _0x40f574=await runRangerwrightCliCommand({..._0x1aec95,'commandArgs':_0x2d140c,'cwd':process['cwd'](),'env':_0x20c92f,'timeoutMs':_0x7199f3??RANGERWRIGHT_CLI_COMMAND_TIMEOUT_MS});_0x1d7528[_0x1fd46f(0x13f)](_0x4f170d,{..._0x452689,'subcommand':_0x40f574['invocation'][_0x1fd46f(0x147)],'stdoutPreview':_0x332bdf['hNsgo'](truncatePreview,_0x40f574['stdout'],0x7d0),'stderrPreview':_0x332bdf['vTrtn'](truncatePreview,_0x40f574[_0x1fd46f(0x17b)],0x7d0)});}catch(_0x53f9df){await _0x1d7528[_0x1fd46f(0x186)](_0x4f170d,_0x53f9df,_0x452689);throw _0x53f9df;}}export async function finalizeVerifyFeatureRangerwrightCliSession(_0x3b3ce2){const _0x4f4395=_0x18f3,_0x51019c={'ELjir':_0x4f4395(0x168),'edjFl':'rangerwright_cli_video_stop','UxVoe':'rangerwright_cli_close','oKRNu':_0x4f4395(0x15f)},{telemetry:_0x29c461,rangerwrightOptions:_0x4fce44,env:_0x2247b6,transportMetadata:_0x4000f4}=_0x3b3ce2,_0x370b87=[{'phase':_0x51019c['ELjir'],'commandArgs':[_0x4f4395(0x185)]},{'phase':_0x51019c['edjFl'],'commandArgs':['video-stop']},{'phase':_0x51019c['UxVoe'],'commandArgs':[_0x51019c[_0x4f4395(0x198)]]}];for(const _0x5d00e3 of _0x370b87){try{await runRangerwrightLifecycleCommand({'options':_0x4fce44,'commandArgs':[..._0x5d00e3[_0x4f4395(0x16d)]],'env':_0x2247b6,'telemetry':_0x29c461,'phase':_0x5d00e3['phase'],'metadata':_0x4000f4});}catch{}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ranger-testing/ranger-cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5-alpha.0c090c6-50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ranger": "./build/cli.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@ranger-testing/rangerwright": "^0.0.27",
|
|
26
26
|
"dotenv": "^16.4.5",
|
|
27
27
|
"inquirer": "^9.2.12",
|
|
28
|
-
"playwright": "1.
|
|
28
|
+
"playwright": "1.56.1",
|
|
29
29
|
"ws": "^8.20.1",
|
|
30
30
|
"yargs": "^17.7.2",
|
|
31
31
|
"zod": "^3.23.8"
|
|
@@ -43,8 +43,11 @@
|
|
|
43
43
|
"typescript": "^5.0.0"
|
|
44
44
|
},
|
|
45
45
|
"overrides": {
|
|
46
|
+
"esbuild": "^0.28.1",
|
|
46
47
|
"minimatch": "^10.2.3",
|
|
47
48
|
"brace-expansion": "^5.0.6",
|
|
48
|
-
"fast-uri": "3.1.2"
|
|
49
|
+
"fast-uri": "3.1.2",
|
|
50
|
+
"@babel/core": "^7.29.6",
|
|
51
|
+
"js-yaml": "^4.2.0"
|
|
49
52
|
}
|
|
50
53
|
}
|