@ranger-testing/ranger-cli 3.1.6-alpha.aca5f9c-53 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x17361c=_0xa5d3;(function(_0x25a98b,_0x3acd01){const _0x22a390=_0xa5d3,_0x47ac55=_0x25a98b();while(!![]){try{const _0x23becd=parseInt(_0x22a390(0x139))/0x1*(-parseInt(_0x22a390(0x141))/0x2)+parseInt(_0x22a390(0xd5))/0x3*(parseInt(_0x22a390(0xce))/0x4)+parseInt(_0x22a390(0x124))/0x5*(-parseInt(_0x22a390(0xd6))/0x6)+-parseInt(_0x22a390(0xbf))/0x7*(parseInt(_0x22a390(0x118))/0x8)+parseInt(_0x22a390(0x131))/0x9+-parseInt(_0x22a390(0x101))/0xa+parseInt(_0x22a390(0x117))/0xb;if(_0x23becd===_0x3acd01)break;else _0x47ac55['push'](_0x47ac55['shift']());}catch(_0x52c13c){_0x47ac55['push'](_0x47ac55['shift']());}}}(_0x4ce9,0x260cc));function _0xa5d3(_0x565ce6,_0x5e80b6){_0x565ce6=_0x565ce6-0xa9;const _0x4ce99b=_0x4ce9();let _0xa5d393=_0x4ce99b[_0x565ce6];return _0xa5d393;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3ea057 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x16a36c=>_0x17361c(0x133)+_0x16a36c+'\x1b[0m';function getGitRepoUrl(){const _0x5b928e=_0x17361c,_0x10f081={'SgKAw':'git\x20remote\x20get-url\x20origin','pYWiJ':_0x5b928e(0xfc),'ByDZp':'github.com/'};try{const _0x443f1d=execSync(_0x10f081[_0x5b928e(0x128)],{'encoding':_0x10f081[_0x5b928e(0xf4)],'stdio':[_0x5b928e(0xae),_0x5b928e(0xae),'pipe']})[_0x5b928e(0x108)]();return _0x443f1d[_0x5b928e(0x17b)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x10f081['ByDZp'])[_0x5b928e(0x17b)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x1af5ba=_0x17361c,_0x5bdd2d={'jXEqr':function(_0x31c56b,_0x5ff175,_0x279908){return _0x31c56b(_0x5ff175,_0x279908);},'xBPsf':_0x1af5ba(0xfc),'UtjtS':_0x1af5ba(0xae)};try{return _0x5bdd2d[_0x1af5ba(0x114)](execSync,_0x1af5ba(0x16f),{'encoding':_0x5bdd2d['xBPsf'],'stdio':[_0x5bdd2d[_0x1af5ba(0x10f)],_0x5bdd2d['UtjtS'],_0x1af5ba(0xae)]})[_0x1af5ba(0x108)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x492719=_0x17361c,_0x3f9571={'lkoeh':function(_0x32706d,_0x494fcb,_0x5c0dda){return _0x32706d(_0x494fcb,_0x5c0dda);},'afLAu':_0x492719(0xfc)},_0xcca7fc=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0xcca7fc))return null;try{const _0x4e533a=await _0x3f9571['lkoeh'](readFile,_0xcca7fc,_0x3f9571['afLAu']);return _0x4e533a['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0xe14dba){const _0x1ddf05=getRangerDir(),_0x100a17=join(_0x1ddf05,ACTIVE_FEATURE_FILE);!existsSync(_0x1ddf05)&&await mkdir(_0x1ddf05,{'recursive':!![]}),await writeFile(_0x100a17,_0xe14dba,'utf-8');}function getProgressDisplay(_0x24b225){const _0x99c606=_0x17361c,_0xa0e579={'fecln':function(_0x4f2c37,_0x2b252a){return _0x4f2c37+_0x2b252a;},'BCLRU':function(_0x16ad46,_0xdd5806){return _0x16ad46*_0xdd5806;},'gASVK':function(_0x297d5d,_0x1e6401){return _0x297d5d-_0x1e6401;},'ZcEZK':function(_0x14849c,_0x3149e4){return _0x14849c>_0x3149e4;}},_0x55e752=_0x24b225['verifiedItems']||0x0,_0x942f65=_0x24b225[_0x99c606(0xe1)]||0x0,_0x5420d9=_0x24b225[_0x99c606(0x13a)]||0x0,_0x2e90d5=_0x24b225['incompleteItems']||0x0,_0x3a4a43=_0x24b225[_0x99c606(0xc4)]||0x0,_0x4940f6=_0xa0e579[_0x99c606(0x151)](_0x55e752+_0x942f65,_0x5420d9)+_0x2e90d5+_0x3a4a43;if(_0x4940f6===0x0)return'-';const _0x42fe04=0xa,_0x4a19fc=Math['round'](_0xa0e579[_0x99c606(0x162)](_0x55e752/_0x4940f6,_0x42fe04)),_0x1c1f46='█'[_0x99c606(0xee)](_0x4a19fc)+'░'['repeat'](_0xa0e579[_0x99c606(0xb3)](_0x42fe04,_0x4a19fc)),_0x2f979d=[];if(_0xa0e579[_0x99c606(0xda)](_0x5420d9,0x0))_0x2f979d[_0x99c606(0xbe)](_0x5420d9+'\x20blocked');if(_0x2e90d5>0x0)_0x2f979d['push'](_0x2e90d5+_0x99c606(0xcd));if(_0x942f65>0x0)_0x2f979d[_0x99c606(0xbe)](_0x942f65+_0x99c606(0x188));const _0x163b13=_0xa0e579['ZcEZK'](_0x2f979d['length'],0x0)?'\x20('+_0x2f979d[_0x99c606(0xab)](',\x20')+')':'';return _0x1c1f46+'\x20'+_0x55e752+'/'+_0x4940f6+_0x99c606(0x158)+_0x163b13;}function getCurrentSessionItems(_0xfac0d0,_0x270368){const _0x6ca77a=_0x17361c;if(!_0xfac0d0[_0x6ca77a(0x15c)])return _0x270368['filter'](_0x16f098=>!_0x16f098['sessionId']);return _0x270368[_0x6ca77a(0xf8)](_0x4dc206=>_0x4dc206[_0x6ca77a(0xd7)]===_0xfac0d0[_0x6ca77a(0x15c)]||!_0x4dc206['sessionId']);}function displayFeature(_0x232bcd,_0x46bddd){const _0x34b553=_0x17361c,_0x1789b1={'xefqu':function(_0x55575,_0x14d18f){return _0x55575<_0x14d18f;},'ukQfy':function(_0x5214d3,_0x3e7814){return _0x5214d3===_0x3e7814;},'FKxfB':function(_0x105a45,_0x2ff4fd){return _0x105a45===_0x2ff4fd;},'ipfEa':'blocked','CBJqt':_0x34b553(0xfb),'vEFJC':function(_0xee6e16,_0x50ce1b){return _0xee6e16===_0x50ce1b;},'Ybukc':_0x34b553(0xb6),'pthZt':function(_0x244c2b,_0x50d5b9){return _0x244c2b>_0x50d5b9;},'iGHLt':function(_0x183644,_0xa49b2f){return _0x183644!==_0xa49b2f;},'eTwBT':_0x34b553(0xbc),'ixDtS':function(_0xe6f2e9,_0x4865e1){return _0xe6f2e9+_0x4865e1;},'tRgQp':function(_0x271630,_0x3e9b0b){return _0x271630===_0x3e9b0b;},'ZrroR':_0x34b553(0x150),'NSCEF':_0x34b553(0xec),'iiJlW':function(_0x1163d6,_0x44cda8){return _0x1163d6===_0x44cda8;}};console['log']('\x0a'+_0x232bcd['name']+'\x20('+_0x232bcd[_0x34b553(0x121)]+')');_0x232bcd[_0x34b553(0x125)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x232bcd[_0x34b553(0x125)]));_0x232bcd[_0x34b553(0x12d)]&&console['log'](_0x34b553(0xde)+_0x232bcd[_0x34b553(0x12d)]);_0x232bcd['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x232bcd[_0x34b553(0x12a)]);_0x232bcd[_0x34b553(0x119)]&&console['log'](_0x34b553(0x11a)+_0x232bcd['gitBranch']);console[_0x34b553(0x16c)](_0x34b553(0xeb)+new Date(_0x232bcd['createdAt'])['toLocaleString']());_0x232bcd['completedAt']&&console[_0x34b553(0x16c)](_0x34b553(0x14b)+new Date(_0x232bcd['completedAt'])[_0x34b553(0xfe)]());if(_0x46bddd&&_0x46bddd[_0x34b553(0x140)]>0x0){console[_0x34b553(0x16c)](_0x34b553(0x122));for(let _0x3dd1fa=0x0;_0x1789b1['xefqu'](_0x3dd1fa,_0x46bddd['length']);_0x3dd1fa++){const _0x13ad6a=_0x46bddd[_0x3dd1fa];let _0x1ee845;if(_0x13ad6a[_0x34b553(0xaa)]===_0x34b553(0xfb)&&_0x1789b1['ukQfy'](_0x13ad6a['terminalReason'],'approved'))_0x1ee845='✅';else{if(_0x1789b1['FKxfB'](_0x13ad6a[_0x34b553(0xaa)],_0x34b553(0x129)))_0x1ee845='🟢';else{if(_0x1789b1[_0x34b553(0x10e)](_0x13ad6a[_0x34b553(0xaa)],_0x34b553(0x150)))_0x1ee845='🟠';else{if(_0x13ad6a['status']===_0x1789b1[_0x34b553(0x175)])_0x1ee845='🛑';else{if(_0x13ad6a[_0x34b553(0xaa)]===_0x1789b1[_0x34b553(0x11c)])_0x1ee845='⛔';else _0x1789b1[_0x34b553(0x15f)](_0x13ad6a[_0x34b553(0xaa)],_0x1789b1[_0x34b553(0x11d)])?_0x1ee845='⏳':_0x1ee845='⬜';}}}}const _0x91d3c6=_0x13ad6a[_0x34b553(0x12b)]>0x1?'\x20(v'+_0x13ad6a[_0x34b553(0x12b)]+')':'',_0x3eaf19=_0x1789b1['pthZt'](_0x13ad6a['version'],0x1)&&_0x13ad6a['parentItemId']&&_0x1789b1[_0x34b553(0xe2)](_0x13ad6a[_0x34b553(0xaa)],_0x1789b1[_0x34b553(0x11c)])&&_0x13ad6a[_0x34b553(0xaa)]!=='verified'?_0x1789b1['eTwBT']:'';console[_0x34b553(0x16c)]('\x20\x20\x20'+_0x1789b1['ixDtS'](_0x3dd1fa,0x1)+'.\x20'+_0x1ee845+'\x20'+_0x13ad6a[_0x34b553(0x12d)]+_0x91d3c6+_0x3eaf19);_0x13ad6a['status']==='blocked'&&_0x13ad6a['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x13ad6a[_0x34b553(0xf3)]);_0x1789b1[_0x34b553(0x17f)](_0x13ad6a[_0x34b553(0xaa)],_0x1789b1['ZrroR'])&&_0x13ad6a[_0x34b553(0x156)]&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x13ad6a[_0x34b553(0x156)]);if(_0x13ad6a[_0x34b553(0xaa)]==='closed'&&_0x1789b1['vEFJC'](_0x13ad6a[_0x34b553(0x170)],_0x1789b1['NSCEF']))console['log'](_0x34b553(0x15a));else _0x1789b1[_0x34b553(0xe0)](_0x13ad6a[_0x34b553(0xaa)],'closed')&&_0x13ad6a['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x13ad6a[_0x34b553(0x12f)]);}}}export async function featureCreate(_0x4e6789,_0x58b31d){const _0x509a7c=_0x17361c,_0x625fe2={'kcYpi':function(_0x36e09c){return _0x36e09c();},'HXgRE':function(_0x5c653a,_0x3544f4){return _0x5c653a===_0x3544f4;},'aiiJr':function(_0x146090,_0x434406){return _0x146090(_0x434406);},'zPqIV':function(_0x3a2b99,_0x10de4d,_0x5bbaf1){return _0x3a2b99(_0x10de4d,_0x5bbaf1);},'fTRIV':function(_0x3fb2e7,_0x196c26,_0x1f0256){return _0x3fb2e7(_0x196c26,_0x1f0256);}},{envNames:_0x75e01e}=await _0x625fe2['kcYpi'](getEnvNames);if(_0x625fe2[_0x509a7c(0x168)](_0x75e01e['length'],0x0)&&!process['env']['RANGER_TEST_USERNAME']){let _0x3f0245=0x0;try{_0x3f0245=(await _0x625fe2[_0x509a7c(0x111)](listCloudProfiles))['length'];}catch{_0x3f0245=0x1;}_0x3f0245===0x0&&console['warn']('\x0a'+_0x625fe2['aiiJr'](formatProfileRequiredMessage,_0x50b69d=>bold(_0x50b69d)));}const _0x3a1270=_0x58b31d['scenarios']?_0x58b31d[_0x509a7c(0x187)][_0x509a7c(0x143)](_0x795446=>_0x795446[_0x509a7c(0x108)]()):[],_0x19ecb1=_0x625fe2[_0x509a7c(0x111)](getGitRepoUrl),_0x492a7d=_0x625fe2['kcYpi'](getGitBranch);console[_0x509a7c(0x16c)]('\x0aCreating\x20feature\x20review...');const _0x564d29=await _0x625fe2['aiiJr'](createFeature,{'name':_0x4e6789,'description':_0x58b31d[_0x509a7c(0x12d)],'checklist':_0x3a1270,'gitRepoUrl':_0x19ecb1,'gitBranch':_0x492a7d});await _0x625fe2[_0x509a7c(0x11b)](setActiveFeatureId,_0x564d29['id']),await tryStartCurrentSession(_0x564d29['id']);const _0x57bf0d=process['env']['CLAUDE_SESSION_ID'];_0x57bf0d&&_0x625fe2[_0x509a7c(0x138)](registerSession,_0x57bf0d,_0x564d29['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x564d29['id']),_0x625fe2['fTRIV'](displayFeature,_0x564d29,_0x564d29['checklistItems']),console['log'](_0x509a7c(0x159));}export async function featureList(_0x78afff){const _0x33a8d4=_0x17361c,_0x5cc9c5={'SjWhm':function(_0x1813f1,_0x177200){return _0x1813f1>_0x177200;},'gVGCc':function(_0x5b4d57,_0x4a3ccf){return _0x5b4d57(_0x4a3ccf);}},_0x1a6233={'limit':_0x78afff[_0x33a8d4(0xc2)]??0xa,'offset':_0x78afff[_0x33a8d4(0xb9)]??0x0,'includeDeleted':_0x78afff[_0x33a8d4(0xd8)]};_0x78afff['currentBranch']&&(_0x1a6233['gitRepoUrl']=getGitRepoUrl(),_0x1a6233[_0x33a8d4(0x119)]=getGitBranch());const _0x3aee20=await listFeatures(_0x1a6233);if(_0x3aee20[_0x33a8d4(0x126)]['length']===0x0){console['log'](_0x33a8d4(0x181));return;}const _0x3c06f1=_0x5cc9c5['SjWhm'](_0x3aee20[_0x33a8d4(0xe8)],_0x3aee20['items'][_0x33a8d4(0x140)])?'Showing\x20'+_0x3aee20[_0x33a8d4(0x126)]['length']+_0x33a8d4(0x165)+_0x3aee20[_0x33a8d4(0xe8)]:_0x3aee20['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x33a8d4(0x16c)]('\x0a'+_0x3c06f1+':\x0a');for(const _0xecf95c of _0x3aee20['items']){console[_0x33a8d4(0x16c)](''+_0xecf95c[_0x33a8d4(0xcb)]),console[_0x33a8d4(0x16c)](_0x33a8d4(0x103)+_0xecf95c['id']),_0xecf95c[_0x33a8d4(0x125)]&&console['log'](_0x33a8d4(0xc6)+_0x5cc9c5[_0x33a8d4(0x107)](getProgressDisplay,_0xecf95c['stats'])),_0xecf95c[_0x33a8d4(0x119)]&&console[_0x33a8d4(0x16c)](_0x33a8d4(0x11a)+_0xecf95c[_0x33a8d4(0x119)]),console[_0x33a8d4(0x16c)](_0x33a8d4(0xeb)+new Date(_0xecf95c['createdAt'])[_0x33a8d4(0xb5)]()),console['log']('');}const _0x3bc7d3=_0x1a6233[_0x33a8d4(0xc2)]??0xa,_0x49ef16=(_0x1a6233['offset']??0x0)+_0x3aee20['items'][_0x33a8d4(0x140)];if(_0x49ef16<_0x3aee20[_0x33a8d4(0xe8)]){const _0x10b341=_0x3bc7d3!==0xa?'\x20--limit\x20'+_0x3bc7d3:'',_0x55e93d=_0x78afff[_0x33a8d4(0x120)]?_0x33a8d4(0xd0):'',_0x773c75=_0x78afff[_0x33a8d4(0xd8)]?_0x33a8d4(0x10c):'';console[_0x33a8d4(0x16c)](_0x33a8d4(0x176)+_0x49ef16+_0x10b341+_0x55e93d+_0x773c75);}}export async function featureShow(_0x379dcb){const _0x20be30=_0x17361c,_0x3a3ccb={'MaGwx':_0x20be30(0x157),'RvPdT':function(_0x233bd3,_0x57588a,_0x566fb9){return _0x233bd3(_0x57588a,_0x566fb9);}},_0x5574e0=_0x379dcb||await getActiveFeatureId();if(!_0x5574e0)throw new Error(_0x3a3ccb['MaGwx']);const _0x5c311d=await getFeature(_0x5574e0);_0x3a3ccb['RvPdT'](displayFeature,_0x5c311d,_0x5c311d['checklistItems']);}export async function featureResume(_0x31fc3d){const _0x27d38e=_0x17361c,_0x2b256f={'fyRpo':function(_0x33f2c5,_0x34832f){return _0x33f2c5(_0x34832f);},'MDuLu':function(_0x55423d){return _0x55423d();},'UrQLQ':function(_0x4faa90,_0x1439e5,_0x302202){return _0x4faa90(_0x1439e5,_0x302202);},'AOEOc':function(_0x3cdb96,_0x55c9eb){return _0x3cdb96(_0x55c9eb);},'iEpxU':function(_0x282bcd,_0x375e1b,_0x4246ce){return _0x282bcd(_0x375e1b,_0x4246ce);},'XmdDN':function(_0x33152a){return _0x33152a();},'QRlIZ':'Not\x20in\x20a\x20git\x20repository.','cRnzS':function(_0x176b0c,_0x5c91df){return _0x176b0c||_0x5c91df;},'GnCBH':'any','OYLbM':function(_0x347cb0,_0x23139c){return _0x347cb0===_0x23139c;},'ElYYc':_0x27d38e(0xf9),'bccLn':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','nZqFK':_0x27d38e(0x12e),'laisT':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','AmcOj':function(_0x184a14,_0x2ac0d3){return _0x184a14(_0x2ac0d3);},'qtyvV':function(_0x49aa53,_0x922962){return _0x49aa53(_0x922962);},'YZuXS':function(_0x12882a,_0x3727dd,_0x24399c){return _0x12882a(_0x3727dd,_0x24399c);}};if(_0x31fc3d){const _0x3d461e=await getFeature(_0x31fc3d);await _0x2b256f['fyRpo'](setActiveFeatureId,_0x3d461e['id']);const _0x41c992=_0x2b256f['MDuLu'](getGitBranch);_0x41c992&&_0x41c992!==_0x3d461e['gitBranch']&&(await _0x2b256f[_0x27d38e(0x177)](updateFeature,_0x3d461e['id'],{'gitBranch':_0x41c992}),console[_0x27d38e(0x16c)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x41c992));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3d461e[_0x27d38e(0xcb)]+'\x20('+_0x3d461e['id']+')'),await _0x2b256f[_0x27d38e(0x148)](tryStartCurrentSession,_0x3d461e['id']);const _0x3ceadd=process[_0x27d38e(0xbb)]['CLAUDE_SESSION_ID'];_0x3ceadd&&registerSession(_0x3ceadd,_0x3d461e['id']);_0x2b256f[_0x27d38e(0x183)](displayFeature,_0x3d461e,_0x3d461e['checklistItems']),await _0x2b256f['fyRpo'](printFeedbackNudge,_0x3d461e['id']);return;}const _0x3a281f=_0x2b256f['MDuLu'](getGitRepoUrl),_0x1a9553=_0x2b256f['XmdDN'](getGitBranch);if(!_0x3a281f&&!_0x1a9553)throw new Error(_0x2b256f['QRlIZ']);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x2b256f[_0x27d38e(0xaf)](_0x3a281f,_0x2b256f[_0x27d38e(0x14d)])+_0x27d38e(0x173)+(_0x1a9553||_0x27d38e(0xa9))+_0x27d38e(0x152));const _0x12e199=await _0x2b256f['AOEOc'](listFeatures,{'gitRepoUrl':_0x3a281f,'gitBranch':_0x1a9553}),_0x26a3bc=_0x12e199[_0x27d38e(0x126)]['filter'](_0x58dcfb=>_0x58dcfb['status']?_0x58dcfb['status']!==_0x27d38e(0x129):!_0x58dcfb['completedAt']);if(_0x2b256f[_0x27d38e(0xf5)](_0x26a3bc['length'],0x0)){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x27d38e(0x16c)](_0x2b256f['ElYYc']);return;}let _0x32d97f;if(_0x2b256f[_0x27d38e(0xf5)](_0x26a3bc[_0x27d38e(0x140)],0x1))_0x32d97f=_0x26a3bc[0x0];else{const _0x1227e3=process[_0x27d38e(0xb0)]['isTTY']&&process['stdout']['isTTY'];if(!_0x1227e3){console[_0x27d38e(0x16c)](_0x2b256f[_0x27d38e(0x102)]);for(const _0x3b6fab of _0x26a3bc){console['log']('\x20\x20'+_0x3b6fab['name']),console[_0x27d38e(0x16c)]('\x20\x20\x20\x20\x20ID:\x20'+_0x3b6fab['id']),_0x3b6fab['stats']&&console[_0x27d38e(0x16c)]('\x20\x20\x20\x20\x20Progress:\x20'+_0x2b256f[_0x27d38e(0x149)](getProgressDisplay,_0x3b6fab['stats'])),_0x3b6fab[_0x27d38e(0x119)]&&console['log'](_0x27d38e(0xad)+_0x3b6fab['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x56a86b}=await _0x3ea057['prompt']([{'type':_0x2b256f[_0x27d38e(0xdd)],'name':'selected','message':_0x2b256f['laisT'],'choices':_0x26a3bc[_0x27d38e(0x143)](_0x16a9f4=>({'name':_0x16a9f4['name']+'\x20('+_0x16a9f4['id']+')','value':_0x16a9f4['id']}))}]);_0x32d97f=_0x26a3bc['find'](_0x37157d=>_0x37157d['id']===_0x56a86b);}await _0x2b256f['AmcOj'](setActiveFeatureId,_0x32d97f['id']);_0x1a9553&&_0x1a9553!==_0x32d97f['gitBranch']&&(await _0x2b256f['UrQLQ'](updateFeature,_0x32d97f['id'],{'gitBranch':_0x1a9553}),console['log'](_0x27d38e(0xfa)+_0x1a9553));console['log'](_0x27d38e(0xf6)+_0x32d97f[_0x27d38e(0xcb)]+'\x20('+_0x32d97f['id']+')'),await tryStartCurrentSession(_0x32d97f['id']);const _0x4e6360=await _0x2b256f[_0x27d38e(0x186)](getFeature,_0x32d97f['id']),_0x15bc37=process[_0x27d38e(0xbb)]['CLAUDE_SESSION_ID'];_0x15bc37&&_0x2b256f['YZuXS'](registerSession,_0x15bc37,_0x4e6360['id']),_0x2b256f['UrQLQ'](displayFeature,_0x4e6360,_0x4e6360[_0x27d38e(0x16d)]),await printFeedbackNudge(_0x4e6360['id']);}async function printFeedbackNudge(_0x580a15){const _0x5b1f26=_0x17361c,_0x1f6468={'vvADo':function(_0x917270,_0x42f970){return _0x917270>_0x42f970;},'HGEgM':_0x5b1f26(0x135)};try{const {items:_0x32bbc5}=await getActionItems(_0x580a15);let _0x2c8508=0x0,_0x18aab1=0x0;for(const _0x5b14a9 of _0x32bbc5){const _0x408e76=await getItemFeedback(_0x580a15,_0x5b14a9['id']);_0x408e76['unaddressedComments'][_0x5b1f26(0x140)]>0x0&&(_0x2c8508+=_0x408e76['unaddressedComments']['length'],_0x18aab1++);}_0x1f6468[_0x5b1f26(0x144)](_0x2c8508,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x2c8508+_0x5b1f26(0x14f)+_0x18aab1+'\x20scenario(s).'),console[_0x5b1f26(0x16c)](_0x1f6468[_0x5b1f26(0x164)]));}catch{}}async function tryStartCurrentSession(_0x59908f){const _0x2724f7=_0x17361c,_0x509cae={'TDZeV':function(_0x3d98d3,_0xd1bd67){return _0x3d98d3(_0xd1bd67);}};try{const {sessions:_0x13cbe2}=await _0x509cae[_0x2724f7(0x110)](listFeatureSessions,_0x59908f),_0x3aecd6=_0x13cbe2['find'](_0x30b53c=>_0x30b53c['status']===_0x2724f7(0xe3));_0x3aecd6&&(await startSession(_0x59908f,_0x3aecd6['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x3aecd6[_0x2724f7(0x146)]));}catch{}}export async function featureReport(_0x3a1df2,_0x1ad8f8){const _0x52a94b=_0x17361c,_0x97e0e5={'Libsi':_0x52a94b(0x136),'IBzHP':function(_0x2c7547,_0x332579,_0x140adc,_0xc4b8e0){return _0x2c7547(_0x332579,_0x140adc,_0xc4b8e0);},'fdtaH':function(_0x2dec7d){return _0x2dec7d();},'KjvZE':_0x52a94b(0x132),'yvSTY':function(_0x34ceec,_0x5ad612,_0x2dd59e){return _0x34ceec(_0x5ad612,_0x2dd59e);},'QHFeM':function(_0x117880,_0x6254ab,_0x348deb,_0x4e7b9f){return _0x117880(_0x6254ab,_0x348deb,_0x4e7b9f);}},_0x28fa41=_0x3a1df2||await getActiveFeatureId();if(!_0x28fa41)throw new Error(_0x97e0e5['Libsi']);console[_0x52a94b(0x16c)]('\x0aGenerating\x20report...');const _0x52815a=await getFeatureReportMarkdown(_0x28fa41,{'style':_0x1ad8f8['style']}),_0x16a047=_0x1ad8f8['output']||_0x97e0e5[_0x52a94b(0x166)](join,_0x97e0e5[_0x52a94b(0x174)](getRangerDir),_0x97e0e5['KjvZE'],_0x28fa41+_0x52a94b(0xdc)),_0x1d9e6d=_0x97e0e5['yvSTY'](join,_0x16a047,'..');!existsSync(_0x1d9e6d)&&await mkdir(_0x1d9e6d,{'recursive':!![]}),await _0x97e0e5[_0x52a94b(0x172)](writeFile,_0x16a047,_0x52815a,_0x52a94b(0xfc)),console[_0x52a94b(0x16c)]('\x0a✅\x20Report\x20generated:\x20'+_0x16a047);}function getScenarioResult(_0x2230bb){const _0x4ee103=_0x17361c,_0x5e3d2f={'ZkYlU':function(_0x3b689b,_0x5930f9){return _0x3b689b===_0x5930f9;},'XsxVy':'closed'};if(_0x5e3d2f[_0x4ee103(0xba)](_0x2230bb['status'],_0x5e3d2f[_0x4ee103(0x147)]))return _0x2230bb[_0x4ee103(0x170)]??_0x4ee103(0xfb);if(_0x5e3d2f[_0x4ee103(0xba)](_0x2230bb['status'],_0x4ee103(0xb6)))return _0x4ee103(0xc7);return _0x2230bb[_0x4ee103(0xaa)];}function getScenarioRationale(_0x3fdf04,_0x13cc01){const _0x185efd=_0x17361c;if(_0x13cc01)return _0x13cc01;if(_0x3fdf04['blockedReason'])return _0x3fdf04[_0x185efd(0xf3)];if(_0x3fdf04['incompleteReason'])return _0x3fdf04['incompleteReason'];if(_0x3fdf04['canceledReason'])return _0x3fdf04[_0x185efd(0x12f)];if(_0x3fdf04[_0x185efd(0x16b)])return _0x3fdf04['notes'];return null;}export async function featureReportPrDescription(_0x21cd7a,_0x16165b){const _0x415704=_0x17361c,_0x3dff2c={'QxhFM':function(_0x1dd6a2){return _0x1dd6a2();},'sKBxC':function(_0x54a9ef,_0x7cd0dc){return _0x54a9ef(_0x7cd0dc);},'FxEuc':function(_0x1bb825,_0x4e080f,_0x4751ca){return _0x1bb825(_0x4e080f,_0x4751ca);},'yGkUx':'\x0aAvailable\x20scenarios:','ZmSOz':function(_0x44df67,_0x1b4f0b){return _0x44df67===_0x1b4f0b;},'lBhXJ':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','Wzgqa':function(_0x551499,_0x380749,_0x5d54c3,_0x29cc01){return _0x551499(_0x380749,_0x5d54c3,_0x29cc01);}},_0x2d2d66=_0x21cd7a||await _0x3dff2c[_0x415704(0xc9)](getActiveFeatureId);if(!_0x2d2d66)throw new Error(_0x415704(0x136));const _0x4cbc14=await _0x3dff2c[_0x415704(0xd1)](getFeature,_0x2d2d66),_0x2e5d2f=_0x4cbc14['checklistItems']||[],_0x24305f=_0x3dff2c[_0x415704(0xb1)](getCurrentSessionItems,_0x4cbc14,_0x2e5d2f);_0x24305f['length']===0x0&&(console[_0x415704(0x14e)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process[_0x415704(0xf7)](0x1));const _0x4d2d04=_0x16165b['excludeScenarios']??[],_0x168106=_0x4d2d04['filter'](_0x74bd6e=>!Number[_0x415704(0x10d)](_0x74bd6e)||_0x74bd6e<0x1||_0x74bd6e>_0x24305f['length']);if(_0x168106['length']>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x168106['join'](',\x20')),console[_0x415704(0x16c)](_0x3dff2c[_0x415704(0x13b)]);for(let _0x420100=0x0;_0x420100<_0x24305f['length'];_0x420100++){console[_0x415704(0x16c)]('\x20\x20'+(_0x420100+0x1)+'.\x20'+_0x24305f[_0x420100]['description']);}process['exit'](0x1);}const _0x2fed91=new Set(_0x4d2d04[_0x415704(0x143)](_0x1eaba7=>_0x1eaba7-0x1)),_0xf84273=_0x24305f['filter']((_0x4a773e,_0x39ab65)=>!_0x2fed91['has'](_0x39ab65));_0x3dff2c[_0x415704(0x105)](_0xf84273['length'],0x0)&&(console[_0x415704(0x14e)](_0x3dff2c['lBhXJ']),process['exit'](0x1));if(_0x16165b[_0x415704(0x130)])await _0x3dff2c[_0x415704(0x137)](outputJsonReport,_0x2d2d66,_0x4cbc14,_0xf84273);else{const _0xf46ce=await _0x3dff2c[_0x415704(0xb1)](getFeatureReportMarkdown,_0x2d2d66,{'itemIds':_0xf84273[_0x415704(0x143)](_0x1baa34=>_0x1baa34['id'])});process['stdout']['write'](_0xf46ce['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x18bb41,_0x2dfade,_0x466b6f){const _0x420dbe=_0x17361c,_0x52f2ca={'fKnRX':function(_0x3cc931,_0x24b787){return _0x3cc931(_0x24b787);},'pxFrV':function(_0x4a99d4,_0x1f8562,_0x2277d2){return _0x4a99d4(_0x1f8562,_0x2277d2);},'OHHkZ':function(_0x119fda){return _0x119fda();},'UFxNO':function(_0x593c30,_0x1c6e35){return _0x593c30+_0x1c6e35;}},_0x434d6c=_0x52f2ca[_0x420dbe(0xe7)](getApiBaseUrl),_0x5e8ec7=await getFeatureReport(_0x18bb41),_0x5b652e=new Map(_0x5e8ec7['checklistItems']['map'](_0x424ec2=>[_0x424ec2['id'],_0x424ec2])),_0x4547a5=await Promise[_0x420dbe(0x12c)](_0x466b6f['map'](async _0x393089=>{const _0x38585b=_0x420dbe,_0x31754e=_0x5b652e[_0x38585b(0x15e)](_0x393089['id']),_0x1d986a=_0x31754e?.[_0x38585b(0xe4)]??null;let _0x655c42=[];if(_0x393089['browserSessionId'])try{const {steps:_0x581239}=await getBrowserSessionSteps(_0x393089[_0x38585b(0x10a)]);_0x581239[_0x38585b(0x140)]>0x0&&(_0x655c42=_0x581239[_0x38585b(0x143)](_0x13202d=>{const _0x4df584=_0x38585b,_0xb93ac0=_0x13202d[_0x4df584(0xd2)]['find'](_0x5dee1b=>_0x5dee1b[_0x4df584(0x178)]===_0x4df584(0x11e)&&_0x5dee1b[_0x4df584(0xdb)]===_0x4df584(0x161))??_0x13202d['assets']['find'](_0x792d2a=>_0x792d2a[_0x4df584(0x178)]===_0x4df584(0x11e));let _0x84afed=null,_0x17e08b=null;if(_0xb93ac0){const _0x29dab3=_0xb93ac0[_0x4df584(0x180)][_0x4df584(0xc3)][_0x4df584(0x17a)]('/')[_0x4df584(0x106)]();_0x84afed=_0x434d6c+_0x4df584(0xfd)+_0x393089[_0x4df584(0x10a)]+_0x4df584(0x112)+_0x29dab3,_0x29dab3&&(_0x17e08b=_0x29dab3['replace'](/\.\w+$/,'')[_0x4df584(0x17b)](/^(key_)?\d+_/,'')[_0x4df584(0x17b)](/[-_]/g,'\x20'));}return{'description':_0x17e08b||_0x13202d[_0x4df584(0x12d)]||_0x13202d[_0x4df584(0xca)]||_0x4df584(0x14c)+_0x13202d[_0x4df584(0x17e)],'screenshot':_0x84afed,'is_key_step':_0x13202d['isKeyStep']};}));}catch{}return _0x655c42['length']===0x0&&_0x1d986a?.['screenshotUrls']&&(_0x655c42=_0x1d986a[_0x38585b(0x17c)][_0x38585b(0x143)]((_0x580650,_0x49b26f)=>({'description':_0x38585b(0x13e)+(_0x49b26f+0x1),'screenshot':_0x580650,'is_key_step':![]}))),{'description':_0x393089['description'],'result':_0x52f2ca['fKnRX'](getScenarioResult,_0x393089),'rationale':_0x52f2ca[_0x38585b(0x13f)](getScenarioRationale,_0x393089,_0x1d986a?.['agentResponse']),'steps':_0x655c42};})),_0x105c5a={'url':_0x2dfade['dashboardUrl'],'scenarios':_0x4547a5};process['stdout']['write'](_0x52f2ca[_0x420dbe(0xf0)](JSON['stringify'](_0x105c5a,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x30490b){const _0x4cfd9a=_0x17361c,_0x24ee3b={'BEVEQ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','lIsnD':function(_0x45a800,_0x52d459){return _0x45a800(_0x52d459);},'uRsrW':function(_0x884e35,_0x49f95b){return _0x884e35(_0x49f95b);},'vjfvO':_0x4cfd9a(0xc5),'oNzkj':'completed','oPnOC':function(_0x58adb9,_0xbf53e7){return _0x58adb9!==_0xbf53e7;},'IFnCk':function(_0x222742,_0x7bfed5,_0x65fcab){return _0x222742(_0x7bfed5,_0x65fcab);}},_0x164073=_0x30490b||await getActiveFeatureId();if(!_0x164073)throw new Error(_0x24ee3b[_0x4cfd9a(0xb8)]);const _0x543635=await _0x24ee3b['lIsnD'](getFeature,_0x164073);if(!_0x543635[_0x4cfd9a(0x15c)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x218202}=await _0x24ee3b['uRsrW'](listFeatureSessions,_0x164073),_0x527d13=_0x218202[_0x4cfd9a(0x13d)](_0x2efd91=>_0x2efd91['id']===_0x543635['currentSessionId']);if(!_0x527d13)throw new Error(_0x24ee3b['vjfvO']);if(_0x527d13[_0x4cfd9a(0xaa)]===_0x24ee3b[_0x4cfd9a(0x17d)]){console[_0x4cfd9a(0x16c)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x24ee3b['oPnOC'](_0x527d13[_0x4cfd9a(0xaa)],_0x4cfd9a(0xc7)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x527d13['status']);console['log']('\x0aConcluding\x20session...'),await _0x24ee3b['IFnCk'](concludeSession,_0x164073,_0x543635[_0x4cfd9a(0x15c)]),console['log']('\x0a✅\x20Session\x20'+_0x527d13['iteration']+'\x20concluded.'),console[_0x4cfd9a(0x16c)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}function _0x4ce9(){const _0x56726a=['\x20\x20\x20Progress:\x20','in_progress','\x20—\x20no\x20comments','QxhFM','stepName','name','point','\x20incomplete','31144oafOEz','oACCv','\x20--current-branch','sKBxC','assets','unaddressedComments','authorName','3vyiYHm','189102QfpEFx','sessionId','includeDeleted','No\x20scenarios\x20found.','ZcEZK','timing','.md','nZqFK','\x20\x20\x20Description:\x20','content','iiJlW','verificationInProgressItems','iGHLt','ready','linkedSession','domRef','WMmBO','OHHkZ','totalCount','.png','NzCKF','\x20\x20\x20Created:\x20','approved','\x20scenarios.','repeat','scenario','UFxNO','coordinates','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','blockedReason','pYWiJ','OYLbM','\x0a✅\x20Resumed\x20feature\x20review:\x20','exit','filter','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20Updated\x20branch\x20to:\x20','closed','utf-8','/api/v1/mcp/browser-sessions/','toLocaleString','qeOCB','latestReview','2904820wYntnq','bccLn','\x20\x20\x20ID:\x20','lxvEG','ZmSOz','pop','gVGCc','trim','):\x20\x22','browserSessionId','\x20\x20✅\x20No\x20feedback\x20to\x20address','\x20--include-deleted','isInteger','ukQfy','UtjtS','TDZeV','kcYpi','/artifacts/','submittedAt','jXEqr','\x20(v','selector','8949325LNfWXE','456nZYjDU','gitBranch','\x20\x20\x20Branch:\x20','aiiJr','CBJqt','Ybukc','screenshot','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','currentBranch','dashboardUrl','\x0a\x20\x20\x20Scenarios:','toFixed','10qOAnIn','stats','items','TGikW','SgKAw','verified','gitRepoUrl','version','all','description','list','canceledReason','json','1485981HGUcMx','reports','\x1b[1m','.\x20Feature\x20review\x20has\x20','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Wzgqa','zPqIV','8692mhLQCo','blockedItems','yGkUx','comment_','find','Screenshot\x20','pxFrV','length','66QHaqGp','atTnm','map','vvADo','Please\x20finish\x20your\x20review\x20first:','iteration','XsxVy','AOEOc','fyRpo','UCHKd','\x20\x20\x20Completed:\x20','Step\x20','GnCBH','error','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','incomplete','fecln','...','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','type','feedback-images','incompleteReason','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20verified','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x20\x20\x20\x20\x20\x20Approved','WLOqH','currentSessionId','completedAt','get','vEFJC','\x20Session\x20','after','BCLRU','\x20\x20💬\x20','HGEgM','\x20of\x20','IBzHP','\x20\x20Expected\x20flow:','HXgRE','slice','WYuZW','notes','log','checklistItems','BEFDi','git\x20rev-parse\x20--abbrev-ref\x20HEAD','terminalReason','createdAt','QHFeM','\x20/\x20','fdtaH','ipfEa','Next\x20page:\x20ranger\x20list\x20--offset\x20','UrQLQ','assetType','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','split','replace','screenshotUrls','oNzkj','position','tRgQp','storage','\x0aNo\x20feature\x20reviews\x20found.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','iEpxU','eDYjT','haPUs','qtyvV','scenarios','\x20in\x20progress','any','status','join','element','\x20\x20\x20\x20\x20Branch:\x20','pipe','cRnzS','stdin','FxEuc','completed','gASVK',':\x20\x22','toLocaleDateString','verification_in_progress','DGKHT','BEVEQ','offset','ZkYlU','env','\x20[has\x20reviewer\x20feedback]','HsceL','push','23366BsqRvm','spatial','assetUrl','limit','location','pendingItems','Current\x20session\x20not\x20found.'];_0x4ce9=function(){return _0x56726a;};return _0x4ce9();}export async function featureSessions(_0x36929e){const _0x1e5f19=_0x17361c,_0x338567={'TGikW':function(_0x33c861){return _0x33c861();},'WMmBO':_0x1e5f19(0x136),'HKDPQ':function(_0xa3bbd3,_0xc8a557){return _0xa3bbd3===_0xc8a557;},'BEFDi':'No\x20sessions\x20found.','oACCv':_0x1e5f19(0xc7)},_0x6986d4=_0x36929e||await _0x338567[_0x1e5f19(0x127)](getActiveFeatureId);if(!_0x6986d4)throw new Error(_0x338567[_0x1e5f19(0xe6)]);const _0x4bdddd=await getFeature(_0x6986d4);console['log'](_0x1e5f19(0xf2)+_0x4bdddd['name']+'\x0a');const {sessions:_0x5e05f8}=await listFeatureSessions(_0x6986d4);if(_0x338567['HKDPQ'](_0x5e05f8['length'],0x0)){console[_0x1e5f19(0x16c)](_0x338567[_0x1e5f19(0x16e)]);return;}for(const _0xff6871 of _0x5e05f8){const _0x10b321=_0xff6871[_0x1e5f19(0xaa)]===_0x1e5f19(0xb2)?'✅':_0xff6871['status']===_0x338567[_0x1e5f19(0xcf)]?'🔄':'▶️';console['log'](_0x10b321+_0x1e5f19(0x160)+_0xff6871[_0x1e5f19(0x146)]+'\x20('+_0xff6871['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0xff6871[_0x1e5f19(0xaa)]),console['log'](_0x1e5f19(0xeb)+new Date(_0xff6871[_0x1e5f19(0x171)])[_0x1e5f19(0xfe)]()),_0xff6871[_0x1e5f19(0x15d)]&&console['log'](_0x1e5f19(0x14b)+new Date(_0xff6871['completedAt'])['toLocaleString']()),console[_0x1e5f19(0x16c)]('');}}export async function featureAddScenario(_0x1ccd48,_0x2daf4c){const _0x3c6d81=_0x17361c,_0x5edd67={'EMzdp':function(_0x22b4fe){return _0x22b4fe();},'lhMiN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','gbeue':function(_0xfec47,_0x538b6e,_0x40c464){return _0xfec47(_0x538b6e,_0x40c464);},'lxvEG':function(_0x50da55,_0x569e18,_0x1498bf){return _0x50da55(_0x569e18,_0x1498bf);}},_0x1b1117=_0x2daf4c||await _0x5edd67['EMzdp'](getActiveFeatureId);if(!_0x1b1117)throw new Error(_0x5edd67['lhMiN']);const _0xea61e6=await getFeature(_0x1b1117);if(_0xea61e6['latestReview']&&!_0xea61e6[_0x3c6d81(0x100)][_0x3c6d81(0x113)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0xea61e6['dashboardUrl']);await _0x5edd67['gbeue'](createChecklistItem,_0x1b1117,_0x1ccd48);const _0x2a25cb=await getFeature(_0x1b1117);console['log']('\x0a✅\x20Scenario\x20added'),_0x5edd67[_0x3c6d81(0x104)](displayFeature,_0x2a25cb,_0x2a25cb[_0x3c6d81(0x16d)]);}export async function featureEditScenario(_0x4e4742,_0x2e1629){const _0x38b05b=_0x17361c,_0x56be7c={'aVhsG':_0x38b05b(0x153),'uccEH':function(_0x2316fe,_0x4e4859){return _0x2316fe(_0x4e4859);},'eDYjT':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','wOPkB':_0x38b05b(0x145),'WLOqH':function(_0x14b92a,_0x1a8c08){return _0x14b92a===_0x1a8c08;},'vdaav':_0x38b05b(0x11f),'QYVih':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','Qbavt':function(_0x1df2af,_0x5c4370){return _0x1df2af<_0x5c4370;},'HrYyi':function(_0x5688b4,_0x2925e1){return _0x5688b4<_0x2925e1;},'ruBMZ':function(_0x5c0c20,_0x3b664e){return _0x5c0c20+_0x3b664e;},'qTXdx':function(_0x304392,_0x5947c1){return _0x304392(_0x5947c1);}},_0xbf531b=_0x2e1629['id']||await getActiveFeatureId();!_0xbf531b&&(console['error'](_0x38b05b(0x179)),console['error'](_0x56be7c['aVhsG']),process['exit'](0x1));const _0x136bbb=await _0x56be7c['uccEH'](getFeature,_0xbf531b);_0x136bbb[_0x38b05b(0x100)]&&!_0x136bbb[_0x38b05b(0x100)][_0x38b05b(0x113)]&&(console[_0x38b05b(0x14e)](_0x56be7c[_0x38b05b(0x184)]),console['error'](_0x56be7c['wOPkB']),console[_0x38b05b(0x14e)]('\x20\x20'+_0x136bbb[_0x38b05b(0x121)]),process[_0x38b05b(0xf7)](0x1));const _0x4c6bdf=_0x136bbb[_0x38b05b(0x16d)]||[];_0x56be7c[_0x38b05b(0x15b)](_0x4c6bdf[_0x38b05b(0x140)],0x0)&&(console['error'](_0x56be7c['vdaav']),process[_0x38b05b(0xf7)](0x1));if(_0x2e1629[_0x38b05b(0xef)]===undefined){console[_0x38b05b(0x14e)](_0x56be7c['QYVih']),console[_0x38b05b(0x16c)]('\x0aAvailable\x20scenarios:');for(let _0x4cc497=0x0;_0x56be7c['Qbavt'](_0x4cc497,_0x4c6bdf[_0x38b05b(0x140)]);_0x4cc497++){console['log']('\x20\x20'+(_0x4cc497+0x1)+'.\x20'+_0x4c6bdf[_0x4cc497]['description']);}process[_0x38b05b(0xf7)](0x1);}const _0x23c010=_0x2e1629['scenario']-0x1;if(_0x56be7c['HrYyi'](_0x23c010,0x0)||_0x23c010>=_0x4c6bdf['length']){console[_0x38b05b(0x14e)](_0x38b05b(0x182)+_0x2e1629[_0x38b05b(0xef)]+_0x38b05b(0x134)+_0x4c6bdf['length']+_0x38b05b(0xed)),console['log']('\x0aAvailable\x20scenarios:');for(let _0x1c70fe=0x0;_0x56be7c['HrYyi'](_0x1c70fe,_0x4c6bdf[_0x38b05b(0x140)]);_0x1c70fe++){console['log']('\x20\x20'+_0x56be7c['ruBMZ'](_0x1c70fe,0x1)+'.\x20'+_0x4c6bdf[_0x1c70fe]['description']);}process['exit'](0x1);}const _0x178fd6=_0x4c6bdf[_0x23c010];await updateChecklistItem(_0xbf531b,_0x178fd6['id'],{'description':_0x4e4742});const _0x3224f6=await _0x56be7c['qTXdx'](getFeature,_0xbf531b);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x3224f6,_0x3224f6[_0x38b05b(0x16d)]);}async function downloadFeedbackImage(_0x3eb193,_0x2e6640){const _0x531de6=_0x17361c,_0x4c8866={'lAboo':function(_0x557ae8){return _0x557ae8();},'LThaF':_0x531de6(0x155),'qeOCB':function(_0x47d952,_0x196fbd,_0x4cd8f6){return _0x47d952(_0x196fbd,_0x4cd8f6);}};try{const _0x685fe=join(_0x4c8866['lAboo'](getRangerDir),_0x4c8866['LThaF']);await _0x4c8866[_0x531de6(0xff)](mkdir,_0x685fe,{'recursive':!![]});const _0x273824=join(_0x685fe,_0x531de6(0x13c)+_0x2e6640+_0x531de6(0xe9)),_0x15317f=await fetch(_0x3eb193);if(!_0x15317f['ok'])return null;const _0x3b2796=Buffer['from'](await _0x15317f['arrayBuffer']());return await _0x4c8866['qeOCB'](writeFile,_0x273824,_0x3b2796),_0x273824;}catch{return null;}}export async function featureGetReview(_0x5819b3){const _0x5f3f2e=_0x17361c,_0x457842={'haPUs':function(_0x47f8fc){return _0x47f8fc();},'KFBHA':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','HsceL':function(_0x3a8753,_0x2a2464){return _0x3a8753===_0x2a2464;},'aKgOG':_0x5f3f2e(0xd9),'raFJy':function(_0x433e4a,_0x13bdae){return _0x433e4a>_0x13bdae;},'DGKHT':'en-US','fsngP':'short','UCHKd':'\x20>\x20','UFqqb':_0x5f3f2e(0xac),'atTnm':function(_0x41f386,_0x2ec6b5){return _0x41f386>=_0x2ec6b5;}},_0xa3f7c9=_0x5819b3||await _0x457842[_0x5f3f2e(0x185)](getActiveFeatureId);if(!_0xa3f7c9)throw new Error(_0x457842['KFBHA']);const _0x4b672c=await getFeature(_0xa3f7c9),{items:_0x48441b}=await getActionItems(_0xa3f7c9);console[_0x5f3f2e(0x16c)]('\x0a📋\x20Feedback\x20for:\x20'+_0x4b672c['name']+'\x20('+_0x4b672c['id']+')\x0a');if(_0x457842[_0x5f3f2e(0xbd)](_0x48441b['length'],0x0)){console['log'](_0x457842['aKgOG']);return;}for(let _0x51d9ae=0x0;_0x51d9ae<_0x48441b['length'];_0x51d9ae++){const _0x1e4039=_0x48441b[_0x51d9ae],_0x2ccfe6=_0x1e4039[_0x5f3f2e(0x12b)]>0x1?_0x5f3f2e(0x115)+_0x1e4039[_0x5f3f2e(0x12b)]+')':'',_0xd556a8=await getItemFeedback(_0xa3f7c9,_0x1e4039['id']);if(_0x457842['raFJy'](_0xd556a8['unaddressedComments'][_0x5f3f2e(0x140)],0x0)){console['log']('Scenario\x20'+(_0x51d9ae+0x1)+_0x5f3f2e(0xb4)+_0x1e4039['description']+'\x22'+_0x2ccfe6+'\x20—\x20'+_0xd556a8['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0xbfa419 of _0xd556a8[_0x5f3f2e(0xd3)]){const _0x42cff0=new Date(_0xbfa419['createdAt'])['toLocaleDateString'](_0x457842[_0x5f3f2e(0xb7)],{'month':_0x457842['fsngP'],'day':'numeric'}),_0x582565=_0xbfa419[_0x5f3f2e(0xd4)]||_0xbfa419['authorEmail']||'Unknown';console[_0x5f3f2e(0x16c)](_0x5f3f2e(0x163)+_0x582565+'\x20('+_0x42cff0+_0x5f3f2e(0x109)+_0xbfa419[_0x5f3f2e(0xdf)]+'\x22');if(_0xbfa419['assetUrl']){const _0x2f9031=await downloadFeedbackImage(_0xbfa419[_0x5f3f2e(0xc1)],_0xbfa419['id']);_0x2f9031&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x2f9031);}if(_0xbfa419['domRef']){const _0x48da60=_0xbfa419[_0x5f3f2e(0xe5)][_0x5f3f2e(0x116)][_0x5f3f2e(0x17a)](_0x457842[_0x5f3f2e(0x14a)])[_0x5f3f2e(0x106)]()?.[_0x5f3f2e(0x17a)](':')[0x0]||_0x457842['UFqqb'],_0x33a916=_0xbfa419[_0x5f3f2e(0xe5)]['textContent']?'\x20\x22'+_0xbfa419[_0x5f3f2e(0xe5)]['textContent'][_0x5f3f2e(0x169)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x48da60+'>'+_0x33a916),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0xbfa419['domRef'][_0x5f3f2e(0x116)]);}else{if(_0xbfa419['spatial']){const _0x3b112b=_0xbfa419[_0x5f3f2e(0xc0)][_0x5f3f2e(0xf1)];_0xbfa419['spatial'][_0x5f3f2e(0x154)]===_0x5f3f2e(0xcc)&&_0x457842[_0x5f3f2e(0x142)](_0x3b112b['length'],0x2)?console[_0x5f3f2e(0x16c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x3b112b[0x0][_0x5f3f2e(0x123)](0x2)+',\x20'+_0x3b112b[0x1][_0x5f3f2e(0x123)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0xbfa419['spatial']['type']+'\x20at\x20['+_0x3b112b['map'](_0x37b1e2=>_0x37b1e2['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0xd556a8['canonicalFlow']){console[_0x5f3f2e(0x16c)](_0x5f3f2e(0x167));for(const _0x5e8b9c of _0xd556a8['canonicalFlow']['split']('\x0a')){console[_0x5f3f2e(0x16c)]('\x20\x20\x20\x20'+_0x5e8b9c);}}}else console['log']('Scenario\x20'+(_0x51d9ae+0x1)+':\x20\x22'+_0x1e4039[_0x5f3f2e(0x12d)]+'\x22'+_0x2ccfe6+_0x5f3f2e(0xc8)),console[_0x5f3f2e(0x16c)](_0x5f3f2e(0x10b));console[_0x5f3f2e(0x16c)]('');}}export async function featureDelete(_0x4e5c51){const _0x28fe11=_0x17361c,_0x3ce234={'UVfwI':function(_0x19b6f3){return _0x19b6f3();},'cdgYW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','HTGID':function(_0x4e5750,_0x2f0236){return _0x4e5750(_0x2f0236);},'hKaPp':function(_0x17bae6,_0x22b35a){return _0x17bae6+_0x22b35a;},'WYuZW':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0xc2c5b7=_0x4e5c51||await _0x3ce234['UVfwI'](getActiveFeatureId);if(!_0xc2c5b7)throw new Error(_0x3ce234['cdgYW']);const _0x1360ba=await getFeature(_0xc2c5b7);await _0x3ce234['HTGID'](softDeleteFeature,_0xc2c5b7),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x1360ba[_0x28fe11(0xcb)]+'\x20('+_0xc2c5b7+')'),console[_0x28fe11(0x16c)](_0x3ce234['hKaPp'](_0x3ce234[_0x28fe11(0x16a)],_0xc2c5b7));}export async function featureRestore(_0x288b3f){const _0x3712b7=_0x17361c,_0xb9fcd3={'NzCKF':function(_0x1d834c,_0x499c88){return _0x1d834c(_0x499c88);}};await _0xb9fcd3[_0x3712b7(0xea)](restoreFeature,_0x288b3f);const _0x4d562b=await _0xb9fcd3['NzCKF'](getFeature,_0x288b3f);console[_0x3712b7(0x16c)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x4d562b['name']+'\x20('+_0x288b3f+')'),displayFeature(_0x4d562b,_0x4d562b[_0x3712b7(0x16d)]);}
1
+ function _0x2b83(_0x34fa45,_0x21c230){_0x34fa45=_0x34fa45-0x112;const _0x41116a=_0x4111();let _0x2b83db=_0x41116a[_0x34fa45];return _0x2b83db;}const _0x37cebc=_0x2b83;(function(_0x3d26bc,_0x1dce21){const _0x3b4919=_0x2b83,_0x1c991b=_0x3d26bc();while(!![]){try{const _0x433f34=parseInt(_0x3b4919(0x19f))/0x1+parseInt(_0x3b4919(0x14e))/0x2+-parseInt(_0x3b4919(0x1a7))/0x3+-parseInt(_0x3b4919(0x1ac))/0x4+parseInt(_0x3b4919(0x1e9))/0x5+parseInt(_0x3b4919(0x199))/0x6*(-parseInt(_0x3b4919(0x186))/0x7)+-parseInt(_0x3b4919(0x14c))/0x8;if(_0x433f34===_0x1dce21)break;else _0x1c991b['push'](_0x1c991b['shift']());}catch(_0x59f323){_0x1c991b['push'](_0x1c991b['shift']());}}}(_0x4111,0xccc1c));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2ab983 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x37cebc(0x179),bold=_0x3852ff=>_0x37cebc(0x18a)+_0x3852ff+'\x1b[0m';function getGitRepoUrl(){const _0x40cebf=_0x37cebc,_0x13b9ad={'HBZjg':_0x40cebf(0x1b6)};try{const _0x21ca2f=execSync('git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':['pipe',_0x13b9ad['HBZjg'],'pipe']})[_0x40cebf(0x144)]();return _0x21ca2f[_0x40cebf(0x17a)](/\.git$/,'')[_0x40cebf(0x17a)](/^git@github\.com:/,_0x40cebf(0x198))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5a29d6=_0x37cebc,_0x65347d={'yYvfK':function(_0xc3e924,_0x341e65,_0xd9857d){return _0xc3e924(_0x341e65,_0xd9857d);},'kGHEJ':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','HlKSK':_0x5a29d6(0x1b6)};try{return _0x65347d['yYvfK'](execSync,_0x65347d[_0x5a29d6(0x168)],{'encoding':_0x5a29d6(0x117),'stdio':[_0x65347d[_0x5a29d6(0x11f)],_0x5a29d6(0x1b6),'pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5b5d5d=_0x37cebc,_0x285717={'datSe':function(_0x174d9e){return _0x174d9e();},'NBxob':_0x5b5d5d(0x117)},_0x194414=join(_0x285717['datSe'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x194414))return null;try{const _0x5ec97c=await readFile(_0x194414,_0x285717[_0x5b5d5d(0x136)]);return _0x5ec97c['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x4704f5){const _0x46a418=_0x37cebc,_0x4705e5={'xLSHb':function(_0x281cbb){return _0x281cbb();},'XspyM':function(_0x5c5737,_0x522eef,_0x2a2df1){return _0x5c5737(_0x522eef,_0x2a2df1);},'jZlBx':_0x46a418(0x117)},_0x5f39c9=_0x4705e5['xLSHb'](getRangerDir),_0x407076=_0x4705e5[_0x46a418(0x116)](join,_0x5f39c9,ACTIVE_FEATURE_FILE);!existsSync(_0x5f39c9)&&await mkdir(_0x5f39c9,{'recursive':!![]}),await writeFile(_0x407076,_0x4704f5,_0x4705e5['jZlBx']);}function getProgressDisplay(_0x182c37){const _0xd97474=_0x37cebc,_0x27b625={'ZgAvl':function(_0xec0206,_0x55e91a){return _0xec0206+_0x55e91a;},'cHLtp':function(_0x308599,_0x22f872){return _0x308599+_0x22f872;},'sfIDk':function(_0x51558a,_0x19ad29){return _0x51558a-_0x19ad29;}},_0x5bceb3=_0x182c37[_0xd97474(0x15c)]||0x0,_0x4c56f9=_0x182c37[_0xd97474(0x196)]||0x0,_0x122fe8=_0x182c37['blockedItems']||0x0,_0x5d9c4e=_0x182c37['incompleteItems']||0x0,_0xeecd3c=_0x182c37['pendingItems']||0x0,_0x19055f=_0x27b625[_0xd97474(0x191)](_0x5bceb3+_0x4c56f9+_0x122fe8,_0x5d9c4e)+_0xeecd3c;if(_0x19055f===0x0)return'-';const _0x48580f=0xa,_0x2eb2da=Math['round'](_0x5bceb3/_0x19055f*_0x48580f),_0x4bc0f4=_0x27b625['cHLtp']('█'['repeat'](_0x2eb2da),'░'['repeat'](_0x27b625[_0xd97474(0x187)](_0x48580f,_0x2eb2da))),_0x27d0d5=[];if(_0x122fe8>0x0)_0x27d0d5[_0xd97474(0x18f)](_0x122fe8+_0xd97474(0x1a1));if(_0x5d9c4e>0x0)_0x27d0d5[_0xd97474(0x18f)](_0x5d9c4e+'\x20incomplete');if(_0x4c56f9>0x0)_0x27d0d5['push'](_0x4c56f9+'\x20in\x20progress');const _0xe8fcd6=_0x27d0d5[_0xd97474(0x1b4)]>0x0?'\x20('+_0x27d0d5['join'](',\x20')+')':'';return _0x4bc0f4+'\x20'+_0x5bceb3+'/'+_0x19055f+'\x20verified'+_0xe8fcd6;}function getCurrentSessionItems(_0x541518,_0xf13050){const _0x461c3a=_0x37cebc;if(!_0x541518['currentSessionId'])return _0xf13050['filter'](_0x244abf=>!_0x244abf['sessionId']);return _0xf13050['filter'](_0x588d24=>_0x588d24['sessionId']===_0x541518[_0x461c3a(0x14d)]||!_0x588d24[_0x461c3a(0x135)]);}function displayFeature(_0x2d6308,_0xab4581){const _0x502a89=_0x37cebc,_0x363306={'QrBdH':function(_0x5aa2f7,_0x54788a){return _0x5aa2f7>_0x54788a;},'NbKLQ':function(_0x50ed8e,_0x1271a6){return _0x50ed8e===_0x1271a6;},'wbqne':function(_0x5087db,_0xea0735){return _0x5087db===_0xea0735;},'baBoy':function(_0x4f666b,_0x373ac3){return _0x4f666b===_0x373ac3;},'oZIbo':function(_0x537dcc,_0x5e8d14){return _0x537dcc===_0x5e8d14;},'Jnmcn':'closed','NxfCk':function(_0x504c4c,_0x149005){return _0x504c4c!==_0x149005;},'coOsP':'\x20[has\x20reviewer\x20feedback]','yQLRz':function(_0x23cd12,_0x576a74){return _0x23cd12+_0x576a74;},'fOTvO':_0x502a89(0x1ea),'NoaPO':function(_0x4fb2db,_0x27b8a5){return _0x4fb2db===_0x27b8a5;},'QgEBf':'approved'};console['log']('\x0a'+_0x2d6308['name']+'\x20('+_0x2d6308['dashboardUrl']+')');_0x2d6308[_0x502a89(0x130)]&&console[_0x502a89(0x1e6)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x2d6308[_0x502a89(0x130)]));_0x2d6308[_0x502a89(0x15b)]&&console[_0x502a89(0x1e6)](_0x502a89(0x11a)+_0x2d6308['description']);_0x2d6308['gitRepoUrl']&&console[_0x502a89(0x1e6)](_0x502a89(0x1aa)+_0x2d6308['gitRepoUrl']);_0x2d6308[_0x502a89(0x1cc)]&&console[_0x502a89(0x1e6)]('\x20\x20\x20Branch:\x20'+_0x2d6308[_0x502a89(0x1cc)]);console['log'](_0x502a89(0x153)+new Date(_0x2d6308['createdAt'])[_0x502a89(0x1d5)]());_0x2d6308[_0x502a89(0x173)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x2d6308[_0x502a89(0x173)])[_0x502a89(0x1d5)]());if(_0xab4581&&_0x363306['QrBdH'](_0xab4581[_0x502a89(0x1b4)],0x0)){console[_0x502a89(0x1e6)]('\x0a\x20\x20\x20Scenarios:');for(let _0x5683c3=0x0;_0x5683c3<_0xab4581['length'];_0x5683c3++){const _0x373b56=_0xab4581[_0x5683c3];let _0x2625cd;if(_0x363306[_0x502a89(0x157)](_0x373b56['status'],'closed')&&_0x373b56[_0x502a89(0x1e8)]==='approved')_0x2625cd='✅';else{if(_0x373b56[_0x502a89(0x163)]==='verified')_0x2625cd='🟢';else{if(_0x363306['wbqne'](_0x373b56[_0x502a89(0x163)],_0x502a89(0x1ea)))_0x2625cd='🟠';else{if(_0x363306['baBoy'](_0x373b56['status'],'blocked'))_0x2625cd='🛑';else{if(_0x363306['oZIbo'](_0x373b56[_0x502a89(0x163)],_0x363306[_0x502a89(0x1d1)]))_0x2625cd='⛔';else _0x373b56['status']===_0x502a89(0x138)?_0x2625cd='⏳':_0x2625cd='⬜';}}}}const _0x2ba535=_0x363306['QrBdH'](_0x373b56[_0x502a89(0x1cf)],0x1)?_0x502a89(0x1db)+_0x373b56[_0x502a89(0x1cf)]+')':'',_0x43a8de=_0x373b56[_0x502a89(0x1cf)]>0x1&&_0x373b56[_0x502a89(0x1c0)]&&_0x373b56[_0x502a89(0x163)]!==_0x363306['Jnmcn']&&_0x363306['NxfCk'](_0x373b56['status'],_0x502a89(0x152))?_0x363306[_0x502a89(0x17e)]:'';console[_0x502a89(0x1e6)](_0x502a89(0x124)+_0x363306[_0x502a89(0x15d)](_0x5683c3,0x1)+'.\x20'+_0x2625cd+'\x20'+_0x373b56[_0x502a89(0x15b)]+_0x2ba535+_0x43a8de);_0x373b56[_0x502a89(0x163)]==='blocked'&&_0x373b56[_0x502a89(0x1bf)]&&console['log'](_0x502a89(0x140)+_0x373b56[_0x502a89(0x1bf)]);_0x373b56[_0x502a89(0x163)]===_0x363306['fOTvO']&&_0x373b56[_0x502a89(0x1e5)]&&console['log'](_0x502a89(0x127)+_0x373b56[_0x502a89(0x1e5)]);if(_0x363306[_0x502a89(0x150)](_0x373b56['status'],'closed')&&_0x373b56[_0x502a89(0x1e8)]===_0x363306[_0x502a89(0x1c6)])console['log'](_0x502a89(0x1a4));else _0x363306[_0x502a89(0x114)](_0x373b56[_0x502a89(0x163)],_0x363306[_0x502a89(0x1d1)])&&_0x373b56[_0x502a89(0x123)]&&console[_0x502a89(0x1e6)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x373b56['canceledReason']);}}}export async function featureCreate(_0x44a02e,_0x1ddeb9){const _0x375f96=_0x37cebc,_0x224f9c={'waYbV':function(_0x497cbc,_0x443397){return _0x497cbc===_0x443397;},'MePlO':function(_0x45708b){return _0x45708b();},'YFpbF':function(_0x20c987,_0x17f988){return _0x20c987===_0x17f988;},'VHvQH':function(_0x3dee69){return _0x3dee69();},'zCUxR':function(_0x19190e,_0x45cdeb){return _0x19190e(_0x45cdeb);}},{envNames:_0x376f4d}=await getEnvNames();if(_0x224f9c['waYbV'](_0x376f4d[_0x375f96(0x1b4)],0x0)&&!process['env']['RANGER_TEST_USERNAME']){let _0x4ad60a=0x0;try{_0x4ad60a=(await _0x224f9c[_0x375f96(0x1d3)](listCloudProfiles))[_0x375f96(0x1b4)];}catch{_0x4ad60a=0x1;}_0x224f9c[_0x375f96(0x19c)](_0x4ad60a,0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x1230b2=>bold(_0x1230b2)));}const _0xe86bbe=_0x1ddeb9[_0x375f96(0x1b0)]?_0x1ddeb9[_0x375f96(0x1b0)][_0x375f96(0x18c)](_0x4af5d8=>_0x4af5d8[_0x375f96(0x144)]()):[],_0x58507d=getGitRepoUrl(),_0x23bb68=_0x224f9c['VHvQH'](getGitBranch);console['log'](_0x375f96(0x14f));const _0x5ca3f1=await createFeature({'name':_0x44a02e,'description':_0x1ddeb9['description'],'checklist':_0xe86bbe,'gitRepoUrl':_0x58507d,'gitBranch':_0x23bb68});await setActiveFeatureId(_0x5ca3f1['id']),await _0x224f9c['zCUxR'](tryStartCurrentSession,_0x5ca3f1['id']);const _0x566ef0=process[_0x375f96(0x1c5)]['CLAUDE_SESSION_ID'];_0x566ef0&&registerSession(_0x566ef0,_0x5ca3f1['id']),console[_0x375f96(0x1e6)](_0x375f96(0x151)+_0x5ca3f1['id']),displayFeature(_0x5ca3f1,_0x5ca3f1[_0x375f96(0x1a3)]),console[_0x375f96(0x1e6)](_0x375f96(0x13b));}export async function featureList(_0x3ac27f){const _0x48bf47=_0x37cebc,_0x3916c3={'dnGIO':function(_0x450370){return _0x450370();},'hVawp':function(_0x3d6fb9,_0x1bd66e){return _0x3d6fb9===_0x1bd66e;},'ogeDP':function(_0x1c928,_0x4e465e){return _0x1c928>_0x4e465e;},'PPTZd':function(_0x1bf2ed,_0x37321c){return _0x1bf2ed+_0x37321c;},'LVvfz':function(_0x35e37,_0x38be7b){return _0x35e37<_0x38be7b;},'eakmN':function(_0x53efcc,_0x2e03d6){return _0x53efcc!==_0x2e03d6;}},_0x217ab7={'limit':_0x3ac27f[_0x48bf47(0x188)]??0xa,'offset':_0x3ac27f[_0x48bf47(0x183)]??0x0,'includeDeleted':_0x3ac27f[_0x48bf47(0x1d4)]};_0x3ac27f['currentBranch']&&(_0x217ab7['gitRepoUrl']=_0x3916c3['dnGIO'](getGitRepoUrl),_0x217ab7[_0x48bf47(0x1cc)]=getGitBranch());const _0x5d35cc=await listFeatures(_0x217ab7);if(_0x3916c3['hVawp'](_0x5d35cc['items'][_0x48bf47(0x1b4)],0x0)){console[_0x48bf47(0x1e6)](_0x48bf47(0x16d));return;}const _0x32e2ee=_0x3916c3['ogeDP'](_0x5d35cc[_0x48bf47(0x1e3)],_0x5d35cc['items']['length'])?_0x48bf47(0x11e)+_0x5d35cc[_0x48bf47(0x139)][_0x48bf47(0x1b4)]+_0x48bf47(0x197)+_0x5d35cc[_0x48bf47(0x1e3)]:_0x5d35cc['totalCount']+_0x48bf47(0x160);console[_0x48bf47(0x1e6)]('\x0a'+_0x32e2ee+':\x0a');for(const _0x211f93 of _0x5d35cc['items']){const _0x469b58='1|3|5|4|0|2'['split']('|');let _0x221324=0x0;while(!![]){switch(_0x469b58[_0x221324++]){case'0':console[_0x48bf47(0x1e6)](_0x48bf47(0x153)+new Date(_0x211f93['createdAt'])['toLocaleDateString']());continue;case'1':console[_0x48bf47(0x1e6)](''+_0x211f93[_0x48bf47(0x1ed)]);continue;case'2':console[_0x48bf47(0x1e6)]('');continue;case'3':console[_0x48bf47(0x1e6)](_0x48bf47(0x137)+_0x211f93['id']);continue;case'4':_0x211f93['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x211f93['gitBranch']);continue;case'5':_0x211f93[_0x48bf47(0x130)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x211f93[_0x48bf47(0x130)]));continue;}break;}}const _0x59dc06=_0x217ab7[_0x48bf47(0x188)]??0xa,_0x3c7344=_0x3916c3['PPTZd'](_0x217ab7[_0x48bf47(0x183)]??0x0,_0x5d35cc['items'][_0x48bf47(0x1b4)]);if(_0x3916c3['LVvfz'](_0x3c7344,_0x5d35cc['totalCount'])){const _0x529ca2=_0x3916c3['eakmN'](_0x59dc06,0xa)?'\x20--limit\x20'+_0x59dc06:'',_0x14789f=_0x3ac27f['currentBranch']?'\x20--current-branch':'',_0x324c30=_0x3ac27f[_0x48bf47(0x1d4)]?'\x20--include-deleted':'';console[_0x48bf47(0x1e6)](_0x48bf47(0x155)+_0x3c7344+_0x529ca2+_0x14789f+_0x324c30);}}export async function featureShow(_0x20785d){const _0x566d88=_0x37cebc,_0x312ea2={'vhVCe':function(_0x2dfe14){return _0x2dfe14();},'asHyE':function(_0x1a7f19,_0x486457,_0x4ecd89){return _0x1a7f19(_0x486457,_0x4ecd89);}},_0x2ab0c0=_0x20785d||await _0x312ea2[_0x566d88(0x143)](getActiveFeatureId);if(!_0x2ab0c0)throw new Error(_0x566d88(0x121));const _0x593555=await getFeature(_0x2ab0c0);_0x312ea2['asHyE'](displayFeature,_0x593555,_0x593555[_0x566d88(0x1a3)]);}export async function featureResume(_0x4cc9bb){const _0x5dd37a=_0x37cebc,_0x42376a={'Tqvbu':function(_0x3f02cb){return _0x3f02cb();},'NuMjq':function(_0x283f5e,_0x4f175f){return _0x283f5e(_0x4f175f);},'ZXSfC':function(_0x596947,_0x47b830){return _0x596947||_0x47b830;},'rZXQT':'any','eixsX':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','jzpIa':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','mPSZq':function(_0x4c438d,_0x558d55){return _0x4c438d===_0x558d55;},'vgfnR':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','NHHAl':function(_0x46fa2f,_0x47512b){return _0x46fa2f(_0x47512b);},'PsABq':function(_0x515f52,_0x486470){return _0x515f52!==_0x486470;},'uIDsa':function(_0x15b8b1,_0x33680c,_0x84c3fa){return _0x15b8b1(_0x33680c,_0x84c3fa);},'PniVy':function(_0x207471,_0x438614){return _0x207471(_0x438614);}};if(_0x4cc9bb){const _0x323848=await getFeature(_0x4cc9bb);await setActiveFeatureId(_0x323848['id']);const _0x671710=_0x42376a[_0x5dd37a(0x1ec)](getGitBranch);_0x671710&&_0x671710!==_0x323848['gitBranch']&&(await updateFeature(_0x323848['id'],{'gitBranch':_0x671710}),console[_0x5dd37a(0x1e6)](_0x5dd37a(0x145)+_0x671710));console[_0x5dd37a(0x1e6)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x323848['name']+'\x20('+_0x323848['id']+')'),await tryStartCurrentSession(_0x323848['id']);const _0x1a4669=process[_0x5dd37a(0x1c5)]['CLAUDE_SESSION_ID'];_0x1a4669&&registerSession(_0x1a4669,_0x323848['id']);displayFeature(_0x323848,_0x323848['checklistItems']),await _0x42376a[_0x5dd37a(0x115)](printFeedbackNudge,_0x323848['id']);return;}const _0x13011a=getGitRepoUrl(),_0x581106=getGitBranch();if(!_0x13011a&&!_0x581106)throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log'](_0x5dd37a(0x13a)+_0x42376a[_0x5dd37a(0x16b)](_0x13011a,'any')+_0x5dd37a(0x1cb)+_0x42376a[_0x5dd37a(0x16b)](_0x581106,_0x42376a[_0x5dd37a(0x1ba)])+_0x5dd37a(0x159));const _0x2220da=await listFeatures({'gitRepoUrl':_0x13011a,'gitBranch':_0x581106}),_0x287ce0=_0x2220da[_0x5dd37a(0x139)]['filter'](_0x684c83=>_0x684c83[_0x5dd37a(0x163)]?_0x684c83['status']!=='verified':!_0x684c83[_0x5dd37a(0x173)]);if(_0x287ce0[_0x5dd37a(0x1b4)]===0x0){console['log'](_0x42376a['eixsX']),console[_0x5dd37a(0x1e6)](_0x42376a[_0x5dd37a(0x1d7)]);return;}let _0xbd4b1a;if(_0x42376a[_0x5dd37a(0x15f)](_0x287ce0[_0x5dd37a(0x1b4)],0x1))_0xbd4b1a=_0x287ce0[0x0];else{const _0x4f6e1c=process[_0x5dd37a(0x156)]['isTTY']&&process[_0x5dd37a(0x1dc)]['isTTY'];if(!_0x4f6e1c){console['log'](_0x5dd37a(0x126));for(const _0x158190 of _0x287ce0){console[_0x5dd37a(0x1e6)]('\x20\x20'+_0x158190['name']),console[_0x5dd37a(0x1e6)](_0x5dd37a(0x128)+_0x158190['id']),_0x158190['stats']&&console['log'](_0x5dd37a(0x1d6)+getProgressDisplay(_0x158190[_0x5dd37a(0x130)])),_0x158190[_0x5dd37a(0x1cc)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x158190['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x535d78}=await _0x2ab983['prompt']([{'type':_0x5dd37a(0x169),'name':'selected','message':_0x42376a['vgfnR'],'choices':_0x287ce0['map'](_0xad558a=>({'name':_0xad558a[_0x5dd37a(0x1ed)]+'\x20('+_0xad558a['id']+')','value':_0xad558a['id']}))}]);_0xbd4b1a=_0x287ce0['find'](_0x50e820=>_0x50e820['id']===_0x535d78);}await _0x42376a['NHHAl'](setActiveFeatureId,_0xbd4b1a['id']);_0x581106&&_0x42376a[_0x5dd37a(0x1ce)](_0x581106,_0xbd4b1a[_0x5dd37a(0x1cc)])&&(await _0x42376a[_0x5dd37a(0x1a0)](updateFeature,_0xbd4b1a['id'],{'gitBranch':_0x581106}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x581106));console[_0x5dd37a(0x1e6)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xbd4b1a['name']+'\x20('+_0xbd4b1a['id']+')'),await tryStartCurrentSession(_0xbd4b1a['id']);const _0x179949=await _0x42376a['NuMjq'](getFeature,_0xbd4b1a['id']),_0x1108c7=process[_0x5dd37a(0x1c5)]['CLAUDE_SESSION_ID'];_0x1108c7&&_0x42376a[_0x5dd37a(0x1a0)](registerSession,_0x1108c7,_0x179949['id']),displayFeature(_0x179949,_0x179949[_0x5dd37a(0x1a3)]),await _0x42376a[_0x5dd37a(0x1af)](printFeedbackNudge,_0x179949['id']);}async function printFeedbackNudge(_0x29c964){const _0x23055d=_0x37cebc,_0x3cba72={'SylOD':function(_0x571cf3,_0x3d23de){return _0x571cf3>_0x3d23de;},'rteNZ':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x514972}=await getActionItems(_0x29c964);let _0x275ccf=0x0,_0x21ebf1=0x0;for(const _0x17e7fb of _0x514972){const _0x526c5e=await getItemFeedback(_0x29c964,_0x17e7fb['id']);_0x3cba72[_0x23055d(0x189)](_0x526c5e['unaddressedComments']['length'],0x0)&&(_0x275ccf+=_0x526c5e['unaddressedComments']['length'],_0x21ebf1++);}_0x275ccf>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x275ccf+_0x23055d(0x122)+_0x21ebf1+'\x20scenario(s).'),console[_0x23055d(0x1e6)](_0x3cba72[_0x23055d(0x16c)]));}catch{}}async function tryStartCurrentSession(_0x575c68){const _0x2b85f1=_0x37cebc,_0x3bc71f={'LHmHP':function(_0x4e9679,_0x366367,_0x127ec5){return _0x4e9679(_0x366367,_0x127ec5);}};try{const {sessions:_0x3beb64}=await listFeatureSessions(_0x575c68),_0x20cf2f=_0x3beb64[_0x2b85f1(0x11b)](_0x5a14de=>_0x5a14de['status']===_0x2b85f1(0x1f1));_0x20cf2f&&(await _0x3bc71f[_0x2b85f1(0x148)](startSession,_0x575c68,_0x20cf2f['id']),console['log'](_0x2b85f1(0x181)+_0x20cf2f['iteration']));}catch{}}export async function featureReport(_0x452529,_0x2f2641){const _0x303ab8=_0x37cebc,_0x23aa31={'TnfWG':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','bVqUy':'\x0aGenerating\x20report...','eHmXH':function(_0x3cb13c,_0x5cdfee,_0x21c420,_0x2c23fc){return _0x3cb13c(_0x5cdfee,_0x21c420,_0x2c23fc);},'PCkpT':_0x303ab8(0x13e),'Bhsfb':function(_0x216c83,_0x283878,_0x247fca){return _0x216c83(_0x283878,_0x247fca);}},_0x399b6c=_0x452529||await getActiveFeatureId();if(!_0x399b6c)throw new Error(_0x23aa31[_0x303ab8(0x16a)]);console['log'](_0x23aa31[_0x303ab8(0x1ef)]);const _0x2ad722=await getFeatureReportMarkdown(_0x399b6c,{'style':_0x2f2641['style']}),_0x23a54a=_0x2f2641[_0x303ab8(0x1bd)]||_0x23aa31['eHmXH'](join,getRangerDir(),_0x23aa31[_0x303ab8(0x12d)],_0x399b6c+'.md'),_0x41b7f1=join(_0x23a54a,'..');!existsSync(_0x41b7f1)&&await _0x23aa31[_0x303ab8(0x1e0)](mkdir,_0x41b7f1,{'recursive':!![]}),await _0x23aa31['eHmXH'](writeFile,_0x23a54a,_0x2ad722,_0x303ab8(0x117)),console[_0x303ab8(0x1e6)]('\x0a✅\x20Report\x20generated:\x20'+_0x23a54a);}function getScenarioResult(_0x58dd67){const _0x54b223=_0x37cebc,_0x42c53c={'DALxf':'closed','vHAba':_0x54b223(0x138)};if(_0x58dd67[_0x54b223(0x163)]==='closed')return _0x58dd67[_0x54b223(0x1e8)]??_0x42c53c['DALxf'];if(_0x58dd67[_0x54b223(0x163)]===_0x42c53c['vHAba'])return _0x54b223(0x177);return _0x58dd67[_0x54b223(0x163)];}function getScenarioRationale(_0x3d601e,_0x23c4ea){const _0x1f5265=_0x37cebc,_0x57cdf9=_0x1f5265(0x185)[_0x1f5265(0x12a)]('|');let _0x321f01=0x0;while(!![]){switch(_0x57cdf9[_0x321f01++]){case'0':if(_0x23c4ea)return _0x23c4ea;continue;case'1':if(_0x3d601e[_0x1f5265(0x123)])return _0x3d601e[_0x1f5265(0x123)];continue;case'2':if(_0x3d601e[_0x1f5265(0x1eb)])return _0x3d601e['notes'];continue;case'3':return null;case'4':if(_0x3d601e['incompleteReason'])return _0x3d601e[_0x1f5265(0x1e5)];continue;case'5':if(_0x3d601e['blockedReason'])return _0x3d601e[_0x1f5265(0x1bf)];continue;}break;}}export async function featureReportPrDescription(_0x56b008,_0x51750a){const _0x56f097=_0x37cebc,_0x4ff138={'zAsYs':_0x56f097(0x195),'nfVIz':function(_0x505f0a,_0x3385e6){return _0x505f0a(_0x3385e6);},'jRcZt':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','gYUrf':function(_0x13c7cc,_0x4656e8){return _0x13c7cc<_0x4656e8;},'QIAgz':function(_0x13f318,_0x1c04e4){return _0x13f318===_0x1c04e4;},'mxEUD':_0x56f097(0x119)},_0x3fe2a0=_0x56b008||await getActiveFeatureId();if(!_0x3fe2a0)throw new Error(_0x4ff138['zAsYs']);const _0x47e0e4=await _0x4ff138[_0x56f097(0x17b)](getFeature,_0x3fe2a0),_0x249bed=_0x47e0e4['checklistItems']||[],_0x45419c=getCurrentSessionItems(_0x47e0e4,_0x249bed);_0x45419c[_0x56f097(0x1b4)]===0x0&&(console['error'](_0x4ff138['jRcZt']),process['exit'](0x1));const _0x54f35e=_0x51750a[_0x56f097(0x190)]??[],_0x169334=_0x54f35e['filter'](_0x7a920d=>!Number[_0x56f097(0x194)](_0x7a920d)||_0x7a920d<0x1||_0x7a920d>_0x45419c['length']);if(_0x169334['length']>0x0){console[_0x56f097(0x174)](_0x56f097(0x1c1)+_0x169334[_0x56f097(0x17d)](',\x20')),console['log'](_0x56f097(0x1ab));for(let _0x576edd=0x0;_0x4ff138[_0x56f097(0x11d)](_0x576edd,_0x45419c[_0x56f097(0x1b4)]);_0x576edd++){console['log']('\x20\x20'+(_0x576edd+0x1)+'.\x20'+_0x45419c[_0x576edd][_0x56f097(0x15b)]);}process['exit'](0x1);}const _0x1d2584=new Set(_0x54f35e['map'](_0x2b0f0a=>_0x2b0f0a-0x1)),_0x4fd8f0=_0x45419c['filter']((_0x46a0c2,_0x393a2c)=>!_0x1d2584['has'](_0x393a2c));_0x4ff138['QIAgz'](_0x4fd8f0[_0x56f097(0x1b4)],0x0)&&(console['error'](_0x4ff138[_0x56f097(0x129)]),process['exit'](0x1));if(_0x51750a[_0x56f097(0x1e4)])await outputJsonReport(_0x3fe2a0,_0x47e0e4,_0x4fd8f0);else{const _0x11b90a=await getFeatureReportMarkdown(_0x3fe2a0,{'itemIds':_0x4fd8f0[_0x56f097(0x18c)](_0x280c05=>_0x280c05['id'])});process[_0x56f097(0x1dc)][_0x56f097(0x134)](_0x11b90a[_0x56f097(0x133)]()+'\x0a');}}async function outputJsonReport(_0x165d3d,_0x16be59,_0x57e1ee){const _0x498853=_0x37cebc,_0xdb678={'fsQDh':function(_0x496a0d,_0x41e4f1){return _0x496a0d(_0x41e4f1);},'dkuzw':function(_0x953e42,_0x106bb8){return _0x953e42>_0x106bb8;},'cBPIY':function(_0xab58c3,_0xd635bb){return _0xab58c3===_0xd635bb;},'llPIv':function(_0xb87a8b,_0xc98aec){return _0xb87a8b(_0xc98aec);},'HrNkQ':function(_0x1aeef4,_0x5d229e,_0x1c18c4){return _0x1aeef4(_0x5d229e,_0x1c18c4);},'AOOym':function(_0x4519f0){return _0x4519f0();},'bZsRT':function(_0x189332,_0x4afe1a){return _0x189332(_0x4afe1a);}},_0x3a4ff3=_0xdb678[_0x498853(0x175)](getApiBaseUrl),_0x23e641=await _0xdb678[_0x498853(0x172)](getFeatureReport,_0x165d3d),_0x2c06eb=new Map(_0x23e641['checklistItems'][_0x498853(0x18c)](_0x4c24a9=>[_0x4c24a9['id'],_0x4c24a9])),_0x51c0b7=await Promise['all'](_0x57e1ee[_0x498853(0x18c)](async _0x5ba5ea=>{const _0x412601=_0x498853,_0x348701=_0x2c06eb['get'](_0x5ba5ea['id']),_0x4c3603=_0x348701?.[_0x412601(0x1cd)]??null;let _0x5bb35d=[];if(_0x5ba5ea['browserSessionId'])try{const {steps:_0x3926eb}=await _0xdb678['fsQDh'](getBrowserSessionSteps,_0x5ba5ea[_0x412601(0x1a8)]);_0xdb678['dkuzw'](_0x3926eb[_0x412601(0x1b4)],0x0)&&(_0x5bb35d=_0x3926eb[_0x412601(0x18c)](_0x1c51fc=>{const _0x5e755d=_0x412601,_0xfe5fe9=_0x1c51fc['assets']['find'](_0x3f7322=>_0x3f7322['assetType']===_0x5e755d(0x1c4)&&_0x3f7322[_0x5e755d(0x1ee)]==='after')??_0x1c51fc[_0x5e755d(0x1a2)][_0x5e755d(0x11b)](_0x3b2762=>_0x3b2762[_0x5e755d(0x154)]==='screenshot');let _0x16ebd3=null,_0x4dc759=null;if(_0xfe5fe9){const _0x1f7857=_0xfe5fe9['storage']['location'][_0x5e755d(0x12a)]('/')[_0x5e755d(0x164)]();_0x16ebd3=_0x3a4ff3+'/api/v1/mcp/browser-sessions/'+_0x5ba5ea['browserSessionId']+'/artifacts/'+_0x1f7857,_0x1f7857&&(_0x4dc759=_0x1f7857[_0x5e755d(0x17a)](/\.\w+$/,'')[_0x5e755d(0x17a)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x4dc759||_0x1c51fc[_0x5e755d(0x15b)]||_0x1c51fc['stepName']||'Step\x20'+_0x1c51fc[_0x5e755d(0x1d9)],'screenshot':_0x16ebd3,'is_key_step':_0x1c51fc[_0x5e755d(0x15e)]};}));}catch{}return _0xdb678[_0x412601(0x1c2)](_0x5bb35d[_0x412601(0x1b4)],0x0)&&_0x4c3603?.['screenshotUrls']&&(_0x5bb35d=_0x4c3603['screenshotUrls']['map']((_0x136de1,_0x3cb28d)=>({'description':_0x412601(0x1df)+(_0x3cb28d+0x1),'screenshot':_0x136de1,'is_key_step':![]}))),{'description':_0x5ba5ea[_0x412601(0x15b)],'result':_0xdb678[_0x412601(0x1d8)](getScenarioResult,_0x5ba5ea),'rationale':_0xdb678[_0x412601(0x12e)](getScenarioRationale,_0x5ba5ea,_0x4c3603?.['agentResponse']),'steps':_0x5bb35d};})),_0x14b0e7={'url':_0x16be59[_0x498853(0x17c)],'scenarios':_0x51c0b7};process[_0x498853(0x1dc)]['write'](JSON[_0x498853(0x14b)](_0x14b0e7,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x3600a1){const _0x3b126e=_0x37cebc,_0x3b2cb5={'oDzmz':function(_0x241986){return _0x241986();},'dcltL':function(_0x1d4433,_0x28519e){return _0x1d4433(_0x28519e);},'NyaNa':'Current\x20session\x20not\x20found.','onZlG':function(_0x272910,_0x54d5ef){return _0x272910===_0x54d5ef;},'shlTE':'completed','CDLPt':'\x0a✅\x20Session\x20is\x20already\x20completed.','iECDs':'in_progress','AtUgk':'\x0aConcluding\x20session...','YgXvV':function(_0x29936a,_0x1ce955,_0x490f5f){return _0x29936a(_0x1ce955,_0x490f5f);}},_0x4b4390=_0x3600a1||await _0x3b2cb5[_0x3b126e(0x15a)](getActiveFeatureId);if(!_0x4b4390)throw new Error(_0x3b126e(0x121));const _0x490f9c=await _0x3b2cb5['dcltL'](getFeature,_0x4b4390);if(!_0x490f9c[_0x3b126e(0x14d)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x4d60d9}=await listFeatureSessions(_0x4b4390),_0x3cceb7=_0x4d60d9[_0x3b126e(0x11b)](_0x14f6fd=>_0x14f6fd['id']===_0x490f9c[_0x3b126e(0x14d)]);if(!_0x3cceb7)throw new Error(_0x3b2cb5[_0x3b126e(0x1a6)]);if(_0x3b2cb5[_0x3b126e(0x125)](_0x3cceb7[_0x3b126e(0x163)],_0x3b2cb5['shlTE'])){console[_0x3b126e(0x1e6)](_0x3b2cb5[_0x3b126e(0x13f)]);return;}if(_0x3cceb7['status']!==_0x3b2cb5[_0x3b126e(0x1d2)])throw new Error(_0x3b126e(0x141)+_0x3cceb7[_0x3b126e(0x163)]);console['log'](_0x3b2cb5[_0x3b126e(0x166)]),await _0x3b2cb5['YgXvV'](concludeSession,_0x4b4390,_0x490f9c['currentSessionId']),console[_0x3b126e(0x1e6)](_0x3b126e(0x184)+_0x3cceb7['iteration']+'\x20concluded.'),console[_0x3b126e(0x1e6)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x538827){const _0x309a93=_0x37cebc,_0x2fb826={'MTDMq':function(_0x4d488e){return _0x4d488e();},'HPYUi':function(_0xb22842,_0x3e02c5){return _0xb22842(_0x3e02c5);},'cWxdW':function(_0x160dc7,_0xfc4ee){return _0x160dc7===_0xfc4ee;},'CiDcE':'in_progress'},_0x3421aa=_0x538827||await _0x2fb826[_0x309a93(0x1dd)](getActiveFeatureId);if(!_0x3421aa)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x4ff6c3=await _0x2fb826[_0x309a93(0x1b8)](getFeature,_0x3421aa);console['log'](_0x309a93(0x1de)+_0x4ff6c3['name']+'\x0a');const {sessions:_0x245518}=await listFeatureSessions(_0x3421aa);if(_0x2fb826[_0x309a93(0x1a5)](_0x245518['length'],0x0)){console['log']('No\x20sessions\x20found.');return;}for(const _0x9a3f7a of _0x245518){const _0x641d29=_0x2fb826[_0x309a93(0x1a5)](_0x9a3f7a[_0x309a93(0x163)],_0x309a93(0x1c3))?'✅':_0x2fb826[_0x309a93(0x1a5)](_0x9a3f7a[_0x309a93(0x163)],_0x2fb826['CiDcE'])?'🔄':'▶️';console['log'](_0x641d29+_0x309a93(0x12c)+_0x9a3f7a[_0x309a93(0x167)]+'\x20('+_0x9a3f7a['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x9a3f7a['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x9a3f7a[_0x309a93(0x1b2)])['toLocaleString']()),_0x9a3f7a[_0x309a93(0x173)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x9a3f7a[_0x309a93(0x173)])['toLocaleString']()),console[_0x309a93(0x1e6)]('');}}export async function featureAddScenario(_0x17b185,_0x202bb3){const _0x4926b2=_0x37cebc,_0x144132={'ZfLIu':_0x4926b2(0x121),'XQhHm':function(_0x32a1fb,_0x4a483f,_0x31e4c3){return _0x32a1fb(_0x4a483f,_0x31e4c3);}},_0x3ab675=_0x202bb3||await getActiveFeatureId();if(!_0x3ab675)throw new Error(_0x144132['ZfLIu']);const _0x6ba54b=await getFeature(_0x3ab675);if(_0x6ba54b[_0x4926b2(0x1e1)]&&!_0x6ba54b['latestReview']['submittedAt'])throw new Error(_0x4926b2(0x176)+_0x6ba54b[_0x4926b2(0x17c)]);await _0x144132[_0x4926b2(0x118)](createChecklistItem,_0x3ab675,_0x17b185);const _0x1dc413=await getFeature(_0x3ab675);console['log'](_0x4926b2(0x142)),displayFeature(_0x1dc413,_0x1dc413[_0x4926b2(0x1a3)]);}export async function featureEditScenario(_0x45d916,_0x38ac3a){const _0x28dada=_0x37cebc,_0x33a3dc={'mRhDN':function(_0x1ac5db){return _0x1ac5db();},'wTwVs':_0x28dada(0x1ad),'GUkzL':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','tDciM':function(_0x1cfc50,_0x5b551c){return _0x1cfc50===_0x5b551c;},'ZwiKv':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','ZNNVt':function(_0x4190b1,_0xa4c613){return _0x4190b1+_0xa4c613;},'ztvAs':function(_0x3782d1,_0x2478ed){return _0x3782d1>=_0x2478ed;},'OHliv':_0x28dada(0x1ab),'xZniM':function(_0x962f09,_0x566323){return _0x962f09<_0x566323;},'JJdBD':function(_0x5e2c23,_0x7159a9){return _0x5e2c23(_0x7159a9);}},_0x4443f2=_0x38ac3a['id']||await _0x33a3dc['mRhDN'](getActiveFeatureId);!_0x4443f2&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x33a3dc['wTwVs']),process['exit'](0x1));const _0x3f4bc4=await getFeature(_0x4443f2);_0x3f4bc4['latestReview']&&!_0x3f4bc4[_0x28dada(0x1e1)][_0x28dada(0x131)]&&(console[_0x28dada(0x174)](_0x33a3dc[_0x28dada(0x16f)]),console['error']('Please\x20finish\x20your\x20review\x20first:'),console[_0x28dada(0x174)]('\x20\x20'+_0x3f4bc4[_0x28dada(0x17c)]),process[_0x28dada(0x16e)](0x1));const _0x4b7baa=_0x3f4bc4['checklistItems']||[];_0x4b7baa[_0x28dada(0x1b4)]===0x0&&(console['error'](_0x28dada(0x12b)),process[_0x28dada(0x16e)](0x1));if(_0x33a3dc['tDciM'](_0x38ac3a['scenario'],undefined)){console['error'](_0x33a3dc['ZwiKv']),console[_0x28dada(0x1e6)]('\x0aAvailable\x20scenarios:');for(let _0x4b53c1=0x0;_0x4b53c1<_0x4b7baa[_0x28dada(0x1b4)];_0x4b53c1++){console[_0x28dada(0x1e6)]('\x20\x20'+_0x33a3dc['ZNNVt'](_0x4b53c1,0x1)+'.\x20'+_0x4b7baa[_0x4b53c1]['description']);}process['exit'](0x1);}const _0x3e9fc9=_0x38ac3a['scenario']-0x1;if(_0x3e9fc9<0x0||_0x33a3dc[_0x28dada(0x18e)](_0x3e9fc9,_0x4b7baa['length'])){console[_0x28dada(0x174)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x38ac3a['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x4b7baa['length']+'\x20scenarios.'),console[_0x28dada(0x1e6)](_0x33a3dc[_0x28dada(0x147)]);for(let _0x30ae0a=0x0;_0x33a3dc[_0x28dada(0x1ca)](_0x30ae0a,_0x4b7baa[_0x28dada(0x1b4)]);_0x30ae0a++){console[_0x28dada(0x1e6)]('\x20\x20'+_0x33a3dc[_0x28dada(0x171)](_0x30ae0a,0x1)+'.\x20'+_0x4b7baa[_0x30ae0a]['description']);}process['exit'](0x1);}const _0x44f088=_0x4b7baa[_0x3e9fc9];await updateChecklistItem(_0x4443f2,_0x44f088['id'],{'description':_0x45d916});const _0x5cd962=await _0x33a3dc['JJdBD'](getFeature,_0x4443f2);console[_0x28dada(0x1e6)](_0x28dada(0x162)),displayFeature(_0x5cd962,_0x5cd962['checklistItems']);}async function downloadFeedbackImage(_0x547a95,_0x1d4334){const _0x288aee=_0x37cebc,_0x455146={'QGjXR':function(_0x1c2e10){return _0x1c2e10();},'okoBY':function(_0x442a2b,_0xc65911,_0x4bf663){return _0x442a2b(_0xc65911,_0x4bf663);},'AlnBN':function(_0x510120,_0xb0acb7,_0xfe1f31){return _0x510120(_0xb0acb7,_0xfe1f31);},'AFEVU':function(_0x34035e,_0x4a7c54){return _0x34035e(_0x4a7c54);}};try{const _0x596987=join(_0x455146['QGjXR'](getRangerDir),_0x288aee(0x132));await _0x455146[_0x288aee(0x1d0)](mkdir,_0x596987,{'recursive':!![]});const _0x4b48ec=_0x455146[_0x288aee(0x1b5)](join,_0x596987,'comment_'+_0x1d4334+_0x288aee(0x18b)),_0x560c4e=await _0x455146[_0x288aee(0x158)](fetch,_0x547a95);if(!_0x560c4e['ok'])return null;const _0x382839=Buffer[_0x288aee(0x12f)](await _0x560c4e[_0x288aee(0x19e)]());return await _0x455146['okoBY'](writeFile,_0x4b48ec,_0x382839),_0x4b48ec;}catch{return null;}}function _0x4111(){const _0x25cc5e=['.png','map','qVkQX','ztvAs','push','excludeScenarios','ZgAvl','toLocaleDateString','short','isInteger','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','verificationInProgressItems','\x20of\x20','github.com/','66GDvKRO','\x20—\x20no\x20comments','textContent','YFpbF','Rycbn','arrayBuffer','486552xlcvPq','uIDsa','\x20blocked','assets','checklistItems','\x20\x20\x20\x20\x20\x20Approved','cWxdW','NyaNa','1798974ueMAqJ','browserSessionId','en-US','\x20\x20\x20Repository:\x20','\x0aAvailable\x20scenarios:','3313576deHRCY','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','PniVy','scenarios','UwIDv','createdAt','VJrrV','length','AlnBN','pipe','NuXZp','HPYUi','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','rZXQT','\x0a📋\x20Feedback\x20for:\x20','yzkvU','output','authorEmail','blockedReason','parentItemId','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','cBPIY','completed','screenshot','env','QgEBf','unaddressedComments','):\x20\x22','BHvFl','xZniM','\x20/\x20','gitBranch','linkedSession','PsABq','version','okoBY','Jnmcn','iECDs','MePlO','includeDeleted','toLocaleString','\x20\x20\x20\x20\x20Progress:\x20','jzpIa','llPIv','position','point','\x20(v','stdout','MTDMq','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','Screenshot\x20','Bhsfb','latestReview','vykgC','totalCount','json','incompleteReason','log','KIZdT','terminalReason','5400040IUodsN','incomplete','notes','Tqvbu','name','timing','bVqUy','canonicalFlow','ready','element','domRef','wbqne','NuMjq','XspyM','utf-8','XQhHm','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20\x20\x20Description:\x20','find','spatial','gYUrf','Showing\x20','HlKSK','Scenario\x20','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','canceledReason','\x20\x20\x20','onZlG','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x20\x20\x20\x20\x20ID:\x20','mxEUD','split','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','\x20Session\x20','PCkpT','HrNkQ','from','stats','submittedAt','feedback-images','trimEnd','write','sessionId','NBxob','\x20\x20\x20ID:\x20','verification_in_progress','items','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x0a✅\x20Restored\x20feature\x20review:\x20','reports','CDLPt','\x20\x20\x20\x20\x20\x20Blocked:\x20','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x0a✅\x20Scenario\x20added','vhVCe','trim','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20\x20Expected\x20flow:','OHliv','LHmHP',':\x20\x22','slice','stringify','5727280nbWvXX','currentSessionId','3107128COqWOx','\x0aCreating\x20feature\x20review...','NoaPO','\x0a✅\x20Feature\x20review\x20created:\x20','verified','\x20\x20\x20Created:\x20','assetType','Next\x20page:\x20ranger\x20list\x20--offset\x20','stdin','NbKLQ','AFEVU','...','oDzmz','description','verifiedItems','yQLRz','isKeyStep','mPSZq','\x20feature\x20review(s)\x20found','No\x20scenarios\x20found.','\x0a✅\x20Scenario\x20updated','status','pop','toFixed','AtUgk','iteration','kGHEJ','list','TnfWG','ZXSfC','rteNZ','\x0aNo\x20feature\x20reviews\x20found.','exit','GUkzL','Unknown','ZNNVt','bZsRT','completedAt','error','AOOym','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','in_progress','rTzFX','active-feature.txt','replace','nfVIz','dashboardUrl','join','coOsP','tIjFn','coordinates','\x20\x20\x20▶️\x20Started\x20session\x20','\x20—\x20','offset','\x0a✅\x20Session\x20','0|5|4|1|2|3','87486yfeoLv','sfIDk','limit','SylOD','\x1b[1m'];_0x4111=function(){return _0x25cc5e;};return _0x4111();}export async function featureGetReview(_0x22fe64){const _0x366319=_0x37cebc,_0x9f8ef0={'qVkQX':function(_0x1a8891){return _0x1a8891();},'rTzFX':function(_0x2dec2b,_0x102264){return _0x2dec2b(_0x102264);},'NuXZp':function(_0x3917ad,_0x35f793){return _0x3917ad(_0x35f793);},'tjLOT':function(_0x540b24,_0x4c4f91){return _0x540b24===_0x4c4f91;},'vykgC':_0x366319(0x161),'BzZTv':function(_0x31dffa,_0x19feb1,_0x4599cc){return _0x31dffa(_0x19feb1,_0x4599cc);},'BHvFl':'numeric','aYwlq':'\x20>\x20','VJrrV':_0x366319(0x112),'UwIDv':function(_0x341c3f,_0x6dbd4f){return _0x341c3f>=_0x6dbd4f;},'KIZdT':function(_0xe2c145,_0x18989e){return _0xe2c145+_0x18989e;}},_0x4c4bee=_0x22fe64||await _0x9f8ef0[_0x366319(0x18d)](getActiveFeatureId);if(!_0x4c4bee)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x52efa3=await _0x9f8ef0[_0x366319(0x178)](getFeature,_0x4c4bee),{items:_0x4eae9a}=await _0x9f8ef0[_0x366319(0x1b7)](getActionItems,_0x4c4bee);console['log'](_0x366319(0x1bb)+_0x52efa3['name']+'\x20('+_0x52efa3['id']+')\x0a');if(_0x9f8ef0['tjLOT'](_0x4eae9a[_0x366319(0x1b4)],0x0)){console['log'](_0x9f8ef0[_0x366319(0x1e2)]);return;}for(let _0x3d1234=0x0;_0x3d1234<_0x4eae9a[_0x366319(0x1b4)];_0x3d1234++){const _0x496e26=_0x4eae9a[_0x3d1234],_0x2f3b67=_0x496e26['version']>0x1?'\x20(v'+_0x496e26['version']+')':'',_0x4dc238=await _0x9f8ef0['BzZTv'](getItemFeedback,_0x4c4bee,_0x496e26['id']);if(_0x4dc238[_0x366319(0x1c7)]['length']>0x0){console[_0x366319(0x1e6)](_0x366319(0x120)+(_0x3d1234+0x1)+_0x366319(0x149)+_0x496e26['description']+'\x22'+_0x2f3b67+_0x366319(0x182)+_0x4dc238['unaddressedComments'][_0x366319(0x1b4)]+'\x20unaddressed\x20comment(s)');for(const _0x3646d2 of _0x4dc238[_0x366319(0x1c7)]){const _0xd67f20=new Date(_0x3646d2[_0x366319(0x1b2)])[_0x366319(0x192)](_0x366319(0x1a9),{'month':_0x366319(0x193),'day':_0x9f8ef0[_0x366319(0x1c9)]}),_0x36ced9=_0x3646d2['authorName']||_0x3646d2[_0x366319(0x1be)]||_0x366319(0x170);console[_0x366319(0x1e6)]('\x20\x20💬\x20'+_0x36ced9+'\x20('+_0xd67f20+_0x366319(0x1c8)+_0x3646d2['content']+'\x22');if(_0x3646d2['assetUrl']){const _0x282b1a=await downloadFeedbackImage(_0x3646d2['assetUrl'],_0x3646d2['id']);_0x282b1a&&console[_0x366319(0x1e6)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x282b1a);}if(_0x3646d2['domRef']){const _0x3d3b00=_0x3646d2[_0x366319(0x113)]['selector']['split'](_0x9f8ef0['aYwlq'])[_0x366319(0x164)]()?.['split'](':')[0x0]||_0x9f8ef0[_0x366319(0x1b3)],_0x5f6136=_0x3646d2['domRef'][_0x366319(0x19b)]?'\x20\x22'+_0x3646d2[_0x366319(0x113)][_0x366319(0x19b)][_0x366319(0x14a)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3d3b00+'>'+_0x5f6136),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3646d2[_0x366319(0x113)]['selector']);}else{if(_0x3646d2['spatial']){const _0x226765=_0x3646d2[_0x366319(0x11c)][_0x366319(0x180)];_0x9f8ef0['tjLOT'](_0x3646d2[_0x366319(0x11c)]['type'],_0x366319(0x1da))&&_0x9f8ef0[_0x366319(0x1b1)](_0x226765['length'],0x2)?console['log'](_0x366319(0x13c)+_0x226765[0x0]['toFixed'](0x2)+',\x20'+_0x226765[0x1][_0x366319(0x165)](0x2)+')'):console[_0x366319(0x1e6)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3646d2[_0x366319(0x11c)]['type']+'\x20at\x20['+_0x226765['map'](_0x5b6f55=>_0x5b6f55[_0x366319(0x165)](0x2))['join'](',\x20')+']');}}}if(_0x4dc238[_0x366319(0x1f0)]){console['log'](_0x366319(0x146));for(const _0x48e31a of _0x4dc238['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x48e31a);}}}else console[_0x366319(0x1e6)]('Scenario\x20'+_0x9f8ef0[_0x366319(0x1e7)](_0x3d1234,0x1)+_0x366319(0x149)+_0x496e26[_0x366319(0x15b)]+'\x22'+_0x2f3b67+_0x366319(0x19a)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x366319(0x1e6)]('');}}export async function featureDelete(_0x4f0328){const _0x142547=_0x37cebc,_0x266e8b={'Rycbn':function(_0x49ee38){return _0x49ee38();},'pfDIb':function(_0x44d42a,_0x4fdf4e){return _0x44d42a(_0x4fdf4e);},'GbGnZ':function(_0x3776c8,_0x5ae6e6){return _0x3776c8+_0x5ae6e6;},'yzkvU':_0x142547(0x1ae)},_0x421ffd=_0x4f0328||await _0x266e8b[_0x142547(0x19d)](getActiveFeatureId);if(!_0x421ffd)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x254967=await _0x266e8b['pfDIb'](getFeature,_0x421ffd);await softDeleteFeature(_0x421ffd),console['log'](_0x142547(0x1b9)+_0x254967['name']+'\x20('+_0x421ffd+')'),console['log'](_0x266e8b['GbGnZ'](_0x266e8b[_0x142547(0x1bc)],_0x421ffd));}export async function featureRestore(_0x225581){const _0x4e870a=_0x37cebc,_0x50fcbf={'tIjFn':function(_0x19b77e,_0x5878b1){return _0x19b77e(_0x5878b1);}};await _0x50fcbf['tIjFn'](restoreFeature,_0x225581);const _0x418077=await _0x50fcbf[_0x4e870a(0x17f)](getFeature,_0x225581);console['log'](_0x4e870a(0x13d)+_0x418077['name']+'\x20('+_0x225581+')'),displayFeature(_0x418077,_0x418077['checklistItems']);}
@@ -1 +1 @@
1
- (function(_0x218a43,_0x3849a2){const _0x575b7e=_0x7e85,_0x4feb78=_0x218a43();while(!![]){try{const _0xa32cf0=parseInt(_0x575b7e(0x15e))/0x1+parseInt(_0x575b7e(0x15f))/0x2+parseInt(_0x575b7e(0x168))/0x3+parseInt(_0x575b7e(0x169))/0x4*(-parseInt(_0x575b7e(0x164))/0x5)+-parseInt(_0x575b7e(0x160))/0x6*(-parseInt(_0x575b7e(0x166))/0x7)+parseInt(_0x575b7e(0x163))/0x8*(parseInt(_0x575b7e(0x15b))/0x9)+-parseInt(_0x575b7e(0x15c))/0xa;if(_0xa32cf0===_0x3849a2)break;else _0x4feb78['push'](_0x4feb78['shift']());}catch(_0x1420b7){_0x4feb78['push'](_0x4feb78['shift']());}}}(_0x4b53,0x1ffb2));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x7e85(_0x39325d,_0x486184){_0x39325d=_0x39325d-0x15a;const _0x4b53ed=_0x4b53();let _0x7e8555=_0x4b53ed[_0x39325d];return _0x7e8555;}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0xe902db=_0x7e85,_0x298f39={'cprJd':'SIGTERM'};if(cancellationHandlersInstalled)return;const _0x260a2d=()=>{const _0x3d5e5b=_0x7e85;process[_0x3d5e5b(0x162)](0x0);};process['once']('SIGINT',_0x260a2d),process['once'](_0x298f39['cprJd'],_0x260a2d),process['once'](_0xe902db(0x15a),_0x260a2d),cancellationHandlersInstalled=!![];}export async function hook(_0x240e79,_0x5231bc){const _0x5e005a=_0x7e85,_0x4f0841={'WHCmp':function(_0x5480bb){return _0x5480bb();},'irysJ':function(_0x62289f,_0xe8ea19){return _0x62289f(_0xe8ea19);}};_0x4f0841[_0x5e005a(0x165)](installCancellationHandlers);const _0x3959a6=HOOKS[_0x240e79];if(!_0x3959a6){const _0x8c73b7=Object['keys'](HOOKS)[_0x5e005a(0x161)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x240e79),console[_0x5e005a(0x167)](_0x5e005a(0x15d)+_0x8c73b7),process[_0x5e005a(0x162)](0x1);}await _0x4f0841['irysJ'](_0x3959a6,_0x5231bc);}function _0x4b53(){const _0xa5ac0=['492318aDfFtb','4OMzoJy','SIGHUP','2178YPoTZL','2839240TRghKQ','Valid\x20hooks:\x20','24746YGhOCV','156120ceUiAZ','6sbSXoK','join','exit','8312lfFhTg','566155DCouRZ','WHCmp','68593HaTwrf','error'];_0x4b53=function(){return _0xa5ac0;};return _0x4b53();}
1
+ (function(_0x5d8613,_0x169682){const _0x4ba5a3=_0x1900,_0x5d7a2a=_0x5d8613();while(!![]){try{const _0x5f4898=parseInt(_0x4ba5a3(0xeb))/0x1+parseInt(_0x4ba5a3(0xe7))/0x2*(-parseInt(_0x4ba5a3(0xf2))/0x3)+-parseInt(_0x4ba5a3(0xf4))/0x4+parseInt(_0x4ba5a3(0xe3))/0x5+parseInt(_0x4ba5a3(0xe6))/0x6*(parseInt(_0x4ba5a3(0xf6))/0x7)+-parseInt(_0x4ba5a3(0xee))/0x8+parseInt(_0x4ba5a3(0xef))/0x9*(parseInt(_0x4ba5a3(0xea))/0xa);if(_0x5f4898===_0x169682)break;else _0x5d7a2a['push'](_0x5d7a2a['shift']());}catch(_0x169916){_0x5d7a2a['push'](_0x5d7a2a['shift']());}}}(_0xc498,0x750e1));function _0x1900(_0x20e13a,_0x52c06f){_0x20e13a=_0x20e13a-0xe3;const _0xc498a4=_0xc498();let _0x1900f4=_0xc498a4[_0x20e13a];return _0x1900f4;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0xc498(){const _0x1ef264=['exit','2960500mJvNbX','JNXXk','SIGHUP','5147826gCigCi','680YMiDCU','SIGINT','error','2700340BfTqoI','257400rKsxbt','SIGTERM','Unknown\x20hook:\x20','5594968qFxikR','18UHeFQF','Valid\x20hooks:\x20','mIoWG','7989LZjsPt','petlU','653164cLEvmr','keys','7rkiOoz'];_0xc498=function(){return _0x1ef264;};return _0xc498();}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x1b33bd=_0x1900,_0x57b5c6={'JNXXk':_0x1b33bd(0xe8),'mIoWG':_0x1b33bd(0xec),'petlU':_0x1b33bd(0xe5)};if(cancellationHandlersInstalled)return;const _0x182f41=()=>{const _0x46c2da=_0x1b33bd;process[_0x46c2da(0xf7)](0x0);};process['once'](_0x57b5c6[_0x1b33bd(0xe4)],_0x182f41),process['once'](_0x57b5c6[_0x1b33bd(0xf1)],_0x182f41),process['once'](_0x57b5c6[_0x1b33bd(0xf3)],_0x182f41),cancellationHandlersInstalled=!![];}export async function hook(_0x5ef066,_0x42caa9){const _0x12e7eb=_0x1900,_0x2688d1={'LodxU':function(_0x589f78){return _0x589f78();},'iFngS':function(_0x5076b3,_0x59349b){return _0x5076b3(_0x59349b);}};_0x2688d1['LodxU'](installCancellationHandlers);const _0x18388c=HOOKS[_0x5ef066];if(!_0x18388c){const _0x3cb262=Object[_0x12e7eb(0xf5)](HOOKS)['join'](',\x20');console['error'](_0x12e7eb(0xed)+_0x5ef066),console[_0x12e7eb(0xe9)](_0x12e7eb(0xf0)+_0x3cb262),process[_0x12e7eb(0xf7)](0x1);}await _0x2688d1['iFngS'](_0x18388c,_0x42caa9);}
@@ -1 +1 @@
1
- (function(_0x18a337,_0x4a7f3c){const _0x2199cd=_0x5aa9,_0x679b29=_0x18a337();while(!![]){try{const _0x40d7f3=-parseInt(_0x2199cd(0x149))/0x1+parseInt(_0x2199cd(0x151))/0x2*(-parseInt(_0x2199cd(0x14d))/0x3)+parseInt(_0x2199cd(0x152))/0x4*(-parseInt(_0x2199cd(0x150))/0x5)+-parseInt(_0x2199cd(0x14b))/0x6+parseInt(_0x2199cd(0x154))/0x7+parseInt(_0x2199cd(0x14a))/0x8*(parseInt(_0x2199cd(0x14c))/0x9)+parseInt(_0x2199cd(0x14f))/0xa;if(_0x40d7f3===_0x4a7f3c)break;else _0x679b29['push'](_0x679b29['shift']());}catch(_0x51ef47){_0x679b29['push'](_0x679b29['shift']());}}}(_0x1cf0,0xcdf3a));function _0x5aa9(_0x5d4b84,_0x309f34){_0x5d4b84=_0x5d4b84-0x149;const _0x1cf09d=_0x1cf0();let _0x5aa9e2=_0x1cf09d[_0x5d4b84];return _0x5aa9e2;}import{readHookInput}from'./output.js';function _0x1cf0(){const _0x1248ca=['6742834QjUArj','1093945cjMdTQ','6406056qegFet','4147926hRpCjP','9aeKyMv','15195boCKIO','log','23935680kmmRck','40uHfIQt','302fLriRV','381964aupLwr','session_id'];_0x1cf0=function(){return _0x1248ca;};return _0x1cf0();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';export async function autoPrompt(){const _0x30fef1=_0x5aa9,_0x12f3c1={'YQXBQ':function(_0x378eba,_0x108362){return _0x378eba(_0x108362);}};if(resolveHookMode()==='off')return;const _0x3c8ac7=await readHookInput(),_0x2c2a58=_0x3c8ac7?.[_0x30fef1(0x153)];if(!_0x2c2a58)return;if(_0x12f3c1['YQXBQ'](isSessionEnabled,_0x2c2a58)||hasSessionBeenPrompted(_0x2c2a58))return;_0x12f3c1['YQXBQ'](markSessionPrompted,_0x2c2a58),console[_0x30fef1(0x14e)](AUTO_PROMPT_TEXT);}
1
+ function _0x296f(){const _0x5c01e1=['691775cDxuyb','2526320IjQaQh','383926YGwlVi','45805MykXea','ZxaLt','32HkjFme','20718YMbybB','log','1BCrLdg','VcxkM','ecZTc','6015015zGHElK','\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.','off','990570TliFOg'];_0x296f=function(){return _0x5c01e1;};return _0x296f();}function _0x3761(_0x304a8d,_0x465e8f){_0x304a8d=_0x304a8d-0x102;const _0x296f5a=_0x296f();let _0x37614d=_0x296f5a[_0x304a8d];return _0x37614d;}const _0x2c8889=_0x3761;(function(_0x2b092c,_0x27feb9){const _0x4c4ab2=_0x3761,_0x5d9732=_0x2b092c();while(!![]){try{const _0x3c32d1=-parseInt(_0x4c4ab2(0x109))/0x1*(parseInt(_0x4c4ab2(0x103))/0x2)+-parseInt(_0x4c4ab2(0x107))/0x3+-parseInt(_0x4c4ab2(0x106))/0x4*(-parseInt(_0x4c4ab2(0x104))/0x5)+-parseInt(_0x4c4ab2(0x10f))/0x6+parseInt(_0x4c4ab2(0x110))/0x7+-parseInt(_0x4c4ab2(0x102))/0x8+parseInt(_0x4c4ab2(0x10c))/0x9;if(_0x3c32d1===_0x27feb9)break;else _0x5d9732['push'](_0x5d9732['shift']());}catch(_0x29601e){_0x5d9732['push'](_0x5d9732['shift']());}}}(_0x296f,0x273b6));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x2c8889(0x10d);export async function autoPrompt(){const _0x24b657=_0x2c8889,_0x398cf3={'ecZTc':function(_0x158e28,_0x3f2773){return _0x158e28===_0x3f2773;},'VcxkM':function(_0x2bb92b){return _0x2bb92b();},'ZxaLt':function(_0x579879,_0x17ac70){return _0x579879(_0x17ac70);}};if(_0x398cf3[_0x24b657(0x10b)](_0x398cf3[_0x24b657(0x10a)](resolveHookMode),_0x24b657(0x10e)))return;const _0x251249=await readHookInput(),_0x13fd74=_0x251249?.['session_id'];if(!_0x13fd74)return;if(isSessionEnabled(_0x13fd74)||hasSessionBeenPrompted(_0x13fd74))return;_0x398cf3[_0x24b657(0x105)](markSessionPrompted,_0x13fd74),console[_0x24b657(0x108)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- function _0x1669(_0x3b4960,_0x529734){_0x3b4960=_0x3b4960-0xc1;const _0x1543f9=_0x1543();let _0x166977=_0x1543f9[_0x3b4960];return _0x166977;}(function(_0x489f18,_0x101d52){const _0x27f64b=_0x1669,_0x1ad923=_0x489f18();while(!![]){try{const _0x40b5ee=parseInt(_0x27f64b(0xc4))/0x1*(-parseInt(_0x27f64b(0xd0))/0x2)+-parseInt(_0x27f64b(0xc9))/0x3+parseInt(_0x27f64b(0xc5))/0x4+-parseInt(_0x27f64b(0xd1))/0x5*(parseInt(_0x27f64b(0xce))/0x6)+-parseInt(_0x27f64b(0xcc))/0x7+-parseInt(_0x27f64b(0xc1))/0x8*(-parseInt(_0x27f64b(0xcb))/0x9)+parseInt(_0x27f64b(0xc2))/0xa;if(_0x40b5ee===_0x101d52)break;else _0x1ad923['push'](_0x1ad923['shift']());}catch(_0x45a8c1){_0x1ad923['push'](_0x1ad923['shift']());}}}(_0x1543,0x7a792));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0xbba00f){const _0x3b568e=_0x1669,_0x2cea91={'GfspV':function(_0x134658,_0x393b55){return _0x134658(_0x393b55);},'CtYrP':function(_0x41aec4){return _0x41aec4();},'IogVJ':function(_0xc65835,_0x301a72){return _0xc65835!==_0x301a72;},'ULNZl':function(_0x104e6c,_0x2dcab7){return _0x104e6c(_0x2dcab7);},'Svere':function(_0x5ebcf3,_0x2e90a0){return _0x5ebcf3!==_0x2e90a0;}},_0x347882=_0xbba00f||process[_0x3b568e(0xd2)]['CLAUDE_SESSION_ID']||'';_0x347882&&_0x2cea91['GfspV'](disableSession,_0x347882);const _0x86b34d=_0x2cea91['CtYrP'](getCurrentBranch);_0x86b34d&&_0x86b34d!=='main'&&_0x2cea91[_0x3b568e(0xc6)](_0x86b34d,_0x3b568e(0xca))&&_0x2cea91[_0x3b568e(0xc8)](disableBranch,_0x86b34d),printBlock(_0x3b568e(0xc7)+(_0x86b34d&&_0x86b34d!=='main'&&_0x2cea91[_0x3b568e(0xcf)](_0x86b34d,'master')?_0x3b568e(0xcd)+_0x86b34d+'\x27':'')+_0x3b568e(0xc3));}function _0x1543(){const _0xf1efc0=['.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.','5909VxRcQw','1027532IOCpMq','IogVJ','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','ULNZl','508704fMrCig','master','27GuOzqy','3860997cNrYON','\x20and\x20branch\x20\x27','1260564VNSetf','Svere','158HMdwSx','5YZjesc','env','88216PMSuYz','16097300QdFuJx'];_0x1543=function(){return _0xf1efc0;};return _0x1543();}
1
+ function _0x1734(_0x1b06cc,_0x23df82){_0x1b06cc=_0x1b06cc-0xae;const _0x51b5a9=_0x51b5();let _0x1734b6=_0x51b5a9[_0x1b06cc];return _0x1734b6;}(function(_0xa9fc56,_0x408aaf){const _0x588d35=_0x1734,_0x384a74=_0xa9fc56();while(!![]){try{const _0x4fece1=parseInt(_0x588d35(0xb6))/0x1+parseInt(_0x588d35(0xbd))/0x2*(parseInt(_0x588d35(0xb1))/0x3)+-parseInt(_0x588d35(0xbe))/0x4+-parseInt(_0x588d35(0xb9))/0x5+parseInt(_0x588d35(0xb2))/0x6+-parseInt(_0x588d35(0xb3))/0x7*(-parseInt(_0x588d35(0xae))/0x8)+-parseInt(_0x588d35(0xb7))/0x9*(parseInt(_0x588d35(0xc0))/0xa);if(_0x4fece1===_0x408aaf)break;else _0x384a74['push'](_0x384a74['shift']());}catch(_0x45bc4d){_0x384a74['push'](_0x384a74['shift']());}}}(_0x51b5,0x18f32));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x868233){const _0x409b7b=_0x1734,_0x5aac51={'Lxpce':function(_0x42d77a,_0x504285){return _0x42d77a(_0x504285);},'leOtk':function(_0x3596ae,_0x484c15){return _0x3596ae!==_0x484c15;},'xprPC':'main','dhOdk':function(_0x2e118a,_0x4c2914){return _0x2e118a!==_0x4c2914;},'GNlTG':function(_0x296b93,_0x466c09){return _0x296b93(_0x466c09);},'lkHlh':function(_0x4d6204,_0x4cf3ab){return _0x4d6204!==_0x4cf3ab;}},_0x4a034a=_0x868233||process[_0x409b7b(0xb8)][_0x409b7b(0xba)]||'';_0x4a034a&&_0x5aac51['Lxpce'](disableSession,_0x4a034a);const _0x2a34f0=getCurrentBranch();_0x2a34f0&&_0x5aac51['leOtk'](_0x2a34f0,_0x5aac51[_0x409b7b(0xb0)])&&_0x5aac51['dhOdk'](_0x2a34f0,'master')&&disableBranch(_0x2a34f0),_0x5aac51['GNlTG'](printBlock,_0x409b7b(0xb5)+(_0x2a34f0&&_0x2a34f0!==_0x409b7b(0xb4)&&_0x5aac51[_0x409b7b(0xbb)](_0x2a34f0,_0x409b7b(0xbc))?_0x409b7b(0xaf)+_0x2a34f0+'\x27':'')+_0x409b7b(0xbf));}function _0x51b5(){const _0x3779a7=['master','14494zxvMsF','522152HNgmMf','.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.','110FFgNce','1532216rNlXMH','\x20and\x20branch\x20\x27','xprPC','57rDyUQv','763140JepGcB','7trFlOG','main','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','154152mQcIwG','202581BOGmbS','env','651155JWatGb','CLAUDE_SESSION_ID','lkHlh'];_0x51b5=function(){return _0x3779a7;};return _0x51b5();}
@@ -1 +1 @@
1
- (function(_0x5e2a9f,_0x2eff7a){const _0x1f30d7=_0x33ce,_0x1a8aa7=_0x5e2a9f();while(!![]){try{const _0x1e7e75=-parseInt(_0x1f30d7(0x76))/0x1*(-parseInt(_0x1f30d7(0x73))/0x2)+parseInt(_0x1f30d7(0x83))/0x3+-parseInt(_0x1f30d7(0x81))/0x4*(parseInt(_0x1f30d7(0x7c))/0x5)+parseInt(_0x1f30d7(0x7b))/0x6+-parseInt(_0x1f30d7(0x82))/0x7+parseInt(_0x1f30d7(0x7d))/0x8*(-parseInt(_0x1f30d7(0x77))/0x9)+parseInt(_0x1f30d7(0x75))/0xa;if(_0x1e7e75===_0x2eff7a)break;else _0x1a8aa7['push'](_0x1a8aa7['shift']());}catch(_0x3e317f){_0x1a8aa7['push'](_0x1a8aa7['shift']());}}}(_0xea1f,0xf2018));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x33ce(_0x4e6b4d,_0x32addc){_0x4e6b4d=_0x4e6b4d-0x73;const _0xea1f30=_0xea1f();let _0x33ce98=_0xea1f30[_0x4e6b4d];return _0x33ce98;}function _0xea1f(){const _0x25e79d=['1426554jAiarC','2273031qLzGPv','#\x20RANGER\x20ENABLED','#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`','yorRk','5483088IDBPCS','730975NgXYQy','24pdRlxA','ranger\x20setup\x20--opencode','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','32XoAQPL','8256689JBwWZx','753027JDZTLx','2eawVeR','env','15066090pcDEiN'];_0xea1f=function(){return _0x25e79d;};return _0xea1f();}import{update}from'../update.js';export async function enable(_0x2a341e){const _0x184be5=_0x33ce,_0x17bcca={'VuNQk':'ranger\x20setup','qnEtu':function(_0x6bef81){return _0x6bef81();},'CtWsU':function(_0x3fa712,_0x3a6e58){return _0x3fa712!==_0x3a6e58;},'yorRk':function(_0x203b71,_0x2a1e8b){return _0x203b71(_0x2a1e8b);}},_0x292565=_0x2a341e||process[_0x184be5(0x74)]['CLAUDE_SESSION_ID']||'',_0x174513=Boolean(_0x2a341e),_0x267f0a=await getToken();if(!_0x267f0a){const _0x270847=_0x174513?_0x184be5(0x7e):_0x17bcca['VuNQk'],_0x20bb11=_0x174513?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock(_0x184be5(0x79)+_0x270847+_0x184be5(0x80)+_0x20bb11);return;}try{await _0x17bcca['qnEtu'](update);}catch{}_0x292565&&enableSession(_0x292565);const _0x951527=getCurrentBranch(),_0x252419=_0x951527&&_0x951527!=='main'&&_0x17bcca['CtWsU'](_0x951527,'master')?'\x0a\x0a**Branch\x20\x27'+_0x951527+_0x184be5(0x7f):'',_0x1ca994=getRangerSkillContent();_0x17bcca[_0x184be5(0x7a)](printBlock,_0x184be5(0x78)+_0x252419+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1ca994+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
1
+ function _0x2fdb(){const _0xec5a0c=['Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','3208266IcEBFy','21PxjLxr','twxjQ','rJTcG','env','4WIcWEF','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','238081SygsrV','main','13OOlWAA','10055844yyeECe','4GtbcLB','2598175vMhDmv','8vTwdLT','MhGwr','1591206NHVKBQ','#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`','aLyXb','2311815TPZAwB','YqTFi','ranger\x20setup','1334472LVRiPj','aqvib','30hDsran','CLAUDE_SESSION_ID','HzHtP','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','master'];_0x2fdb=function(){return _0xec5a0c;};return _0x2fdb();}(function(_0x29dc99,_0x4bf4fe){const _0x3539f6=_0x19bd,_0x10d182=_0x29dc99();while(!![]){try{const _0x4a8031=parseInt(_0x3539f6(0x201))/0x1*(parseInt(_0x3539f6(0x1ff))/0x2)+-parseInt(_0x3539f6(0x1fa))/0x3+parseInt(_0x3539f6(0x205))/0x4*(parseInt(_0x3539f6(0x206))/0x5)+parseInt(_0x3539f6(0x209))/0x6*(-parseInt(_0x3539f6(0x1fb))/0x7)+parseInt(_0x3539f6(0x207))/0x8*(parseInt(_0x3539f6(0x204))/0x9)+parseInt(_0x3539f6(0x1f4))/0xa*(parseInt(_0x3539f6(0x20c))/0xb)+parseInt(_0x3539f6(0x1f2))/0xc*(-parseInt(_0x3539f6(0x203))/0xd);if(_0x4a8031===_0x4bf4fe)break;else _0x10d182['push'](_0x10d182['shift']());}catch(_0x343e8a){_0x10d182['push'](_0x10d182['shift']());}}}(_0x2fdb,0xbb591));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x19bd(_0xb054b2,_0x2efd13){_0xb054b2=_0xb054b2-0x1f2;const _0x2fdbf4=_0x2fdb();let _0x19bda0=_0x2fdbf4[_0xb054b2];return _0x19bda0;}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x3871c5){const _0x5bb5cd=_0x19bd,_0x4dec90={'MhGwr':function(_0x195e9a){return _0x195e9a();},'aqvib':'ranger\x20setup\x20--opencode','twxjQ':_0x5bb5cd(0x20e),'YqTFi':_0x5bb5cd(0x200),'lHVhB':_0x5bb5cd(0x1f9),'HzHtP':function(_0x4a9314,_0x16d7f5){return _0x4a9314(_0x16d7f5);},'nYfMj':function(_0x422320){return _0x422320();},'rJTcG':_0x5bb5cd(0x202),'aLyXb':_0x5bb5cd(0x1f8)},_0x16cfc5=_0x3871c5||process[_0x5bb5cd(0x1fe)][_0x5bb5cd(0x1f5)]||'',_0x5b5d5a=Boolean(_0x3871c5),_0x14140c=await _0x4dec90[_0x5bb5cd(0x208)](getToken);if(!_0x14140c){const _0x357c53=_0x5b5d5a?_0x4dec90[_0x5bb5cd(0x1f3)]:_0x4dec90[_0x5bb5cd(0x1fc)],_0x5c26ee=_0x5b5d5a?_0x4dec90[_0x5bb5cd(0x20d)]:_0x4dec90['lHVhB'];_0x4dec90[_0x5bb5cd(0x1f6)](printBlock,_0x5bb5cd(0x20a)+_0x357c53+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x5c26ee);return;}try{await _0x4dec90['MhGwr'](update);}catch{}_0x16cfc5&&enableSession(_0x16cfc5);const _0x52fb8e=_0x4dec90['nYfMj'](getCurrentBranch),_0x743aed=_0x52fb8e&&_0x52fb8e!==_0x4dec90[_0x5bb5cd(0x1fd)]&&_0x52fb8e!==_0x4dec90[_0x5bb5cd(0x20b)]?'\x0a\x0a**Branch\x20\x27'+_0x52fb8e+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x15c7aa=getRangerSkillContent();_0x4dec90[_0x5bb5cd(0x1f6)](printBlock,'#\x20RANGER\x20ENABLED'+_0x743aed+_0x5bb5cd(0x1f7)+_0x15c7aa+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
@@ -1 +1 @@
1
- (function(_0x158491,_0x468061){const _0x26450b=_0x2d36,_0xd4e143=_0x158491();while(!![]){try{const _0x12f428=parseInt(_0x26450b(0x109))/0x1+-parseInt(_0x26450b(0x10d))/0x2+parseInt(_0x26450b(0x111))/0x3+parseInt(_0x26450b(0x10e))/0x4*(parseInt(_0x26450b(0x10f))/0x5)+parseInt(_0x26450b(0x110))/0x6+-parseInt(_0x26450b(0x10b))/0x7*(-parseInt(_0x26450b(0x10c))/0x8)+-parseInt(_0x26450b(0x10a))/0x9;if(_0x12f428===_0x468061)break;else _0xd4e143['push'](_0xd4e143['shift']());}catch(_0x3b1d00){_0xd4e143['push'](_0xd4e143['shift']());}}}(_0x5a43,0x1e66b));function _0x2d36(_0x1407c2,_0x2692b9){_0x1407c2=_0x1407c2-0x109;const _0x5a4365=_0x5a43();let _0x2d367c=_0x5a4365[_0x1407c2];return _0x2d367c;}function _0x5a43(){const _0x1b44a5=['202416PvkWJH','3086622pHDKsN','2191NsxiaJ','1752fUqLyY','244772wGwgIw','1112AUAnno','1200nrmJCk','231054gCAReT','641025WlIAEz','===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20==='];_0x5a43=function(){return _0x1b44a5;};return _0x5a43();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x100dac){const _0x25401c=_0x2d36,_0x5e7691={'SEVTO':function(_0x269bd6,_0x4d8880){return _0x269bd6(_0x4d8880);},'ouuhy':function(_0x3a6e3e,_0x334a5f){return _0x3a6e3e(_0x334a5f);}},_0x2d343c=await _0x5e7691['SEVTO'](getEnabledSessionId,_0x100dac);if(!_0x2d343c)return;_0x5e7691['ouuhy'](printBlock,_0x25401c(0x112));}
1
+ (function(_0x104cea,_0x27e725){const _0x2f55a9=_0x1586,_0x53736d=_0x104cea();while(!![]){try{const _0x4d0009=parseInt(_0x2f55a9(0x123))/0x1*(-parseInt(_0x2f55a9(0x120))/0x2)+parseInt(_0x2f55a9(0x11e))/0x3+-parseInt(_0x2f55a9(0x122))/0x4+parseInt(_0x2f55a9(0x121))/0x5*(parseInt(_0x2f55a9(0x127))/0x6)+-parseInt(_0x2f55a9(0x125))/0x7+parseInt(_0x2f55a9(0x126))/0x8*(-parseInt(_0x2f55a9(0x124))/0x9)+parseInt(_0x2f55a9(0x11f))/0xa;if(_0x4d0009===_0x27e725)break;else _0x53736d['push'](_0x53736d['shift']());}catch(_0x62dbb0){_0x53736d['push'](_0x53736d['shift']());}}}(_0x3a06,0x2fcdb));function _0x1586(_0x58a3e1,_0x3248e6){_0x58a3e1=_0x58a3e1-0x11e;const _0x3a0644=_0x3a06();let _0x15861d=_0x3a0644[_0x58a3e1];return _0x15861d;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x3a06(){const _0x349037=['32bSKQGH','413064SBdwaf','980241SZkwqn','3430820mrDcXF','59862eFNPvQ','20gPPkEo','491808JzEkHa','10etEPpi','576585nkrfpo','496160uHViXq'];_0x3a06=function(){return _0x349037;};return _0x3a06();}export async function exitPlanMode(_0x7a66b5){const _0x21d178={'GfOMW':function(_0x4d7e98,_0x33c311){return _0x4d7e98(_0x33c311);}},_0x44f677=await getEnabledSessionId(_0x7a66b5);if(!_0x44f677)return;_0x21d178['GfOMW'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- (function(_0x1b80e1,_0x3da482){var _0x4b5948=_0x2170,_0x5a1859=_0x1b80e1();while(!![]){try{var _0x1821aa=-parseInt(_0x4b5948(0xd2))/0x1+parseInt(_0x4b5948(0xcf))/0x2+parseInt(_0x4b5948(0xd1))/0x3+parseInt(_0x4b5948(0xd7))/0x4*(-parseInt(_0x4b5948(0xd3))/0x5)+parseInt(_0x4b5948(0xd4))/0x6*(parseInt(_0x4b5948(0xd8))/0x7)+parseInt(_0x4b5948(0xd6))/0x8*(-parseInt(_0x4b5948(0xd0))/0x9)+-parseInt(_0x4b5948(0xd5))/0xa;if(_0x1821aa===_0x3da482)break;else _0x5a1859['push'](_0x5a1859['shift']());}catch(_0x2139df){_0x5a1859['push'](_0x5a1859['shift']());}}}(_0x1b7e,0x65208));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';function _0x2170(_0x5f0ac5,_0x57c3ae){_0x5f0ac5=_0x5f0ac5-0xcf;var _0x1b7e69=_0x1b7e();var _0x2170fd=_0x1b7e69[_0x5f0ac5];return _0x2170fd;}function _0x1b7e(){var _0x13dfd3=['4lJXLpj','35XDCXPA','1239640Nrudym','18PalxML','1357413zGhxUd','279630URKxDp','60295ktLhgR','205374BWzrdn','2097190wFWNZT','1311248xlAMPE'];_0x1b7e=function(){return _0x13dfd3;};return _0x1b7e();}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x2482be,_0xfcc712){var _0x3363d6=_0xf0f8,_0x36f4cd=_0x2482be();while(!![]){try{var _0x4d096d=-parseInt(_0x3363d6(0x176))/0x1+-parseInt(_0x3363d6(0x177))/0x2*(-parseInt(_0x3363d6(0x179))/0x3)+parseInt(_0x3363d6(0x178))/0x4+-parseInt(_0x3363d6(0x175))/0x5+-parseInt(_0x3363d6(0x174))/0x6+-parseInt(_0x3363d6(0x172))/0x7*(parseInt(_0x3363d6(0x17a))/0x8)+parseInt(_0x3363d6(0x173))/0x9*(parseInt(_0x3363d6(0x17b))/0xa);if(_0x4d096d===_0xfcc712)break;else _0x36f4cd['push'](_0x36f4cd['shift']());}catch(_0xb2cb79){_0x36f4cd['push'](_0x36f4cd['shift']());}}}(_0x51fe,0x5d8f8));function _0x51fe(){var _0x41a390=['2994084mUEvyN','2190555SGfldQ','550574skJrvA','58UkkpOg','744756smAWhg','44103HtHeoY','154488KvxJft','110pjenNf','7gWEDXG','1045404pChgcS'];_0x51fe=function(){return _0x41a390;};return _0x51fe();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';function _0xf0f8(_0x2ac079,_0x36cdaf){_0x2ac079=_0x2ac079-0x172;var _0x51feed=_0x51fe();var _0xf0f800=_0x51feed[_0x2ac079];return _0xf0f800;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- function _0x5b40(_0xfde229,_0x85ed6f){_0xfde229=_0xfde229-0xd7;const _0x2164a7=_0x2164();let _0x5b4000=_0x2164a7[_0xfde229];return _0x5b4000;}(function(_0x225749,_0x3ebd5c){const _0x2e27b0=_0x5b40,_0x4a84a8=_0x225749();while(!![]){try{const _0x4aabe1=parseInt(_0x2e27b0(0xe0))/0x1*(parseInt(_0x2e27b0(0xdb))/0x2)+-parseInt(_0x2e27b0(0xdd))/0x3+parseInt(_0x2e27b0(0xe4))/0x4*(parseInt(_0x2e27b0(0xdc))/0x5)+-parseInt(_0x2e27b0(0xe3))/0x6+parseInt(_0x2e27b0(0xd7))/0x7+-parseInt(_0x2e27b0(0xdf))/0x8+parseInt(_0x2e27b0(0xe5))/0x9;if(_0x4aabe1===_0x3ebd5c)break;else _0x4a84a8['push'](_0x4a84a8['shift']());}catch(_0x46fc89){_0x4a84a8['push'](_0x4a84a8['shift']());}}}(_0x2164,0x4fe04));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x2164(){const _0x468ed8=['26735zZijoM','1100751TnMFeV','session_id','1902984xkeiWA','54GgiQBb','stdin','log','2754024OUtUSD','368OAOtPF','4609800hySIQo','1963612qwuKnn','JBlNx','fLbBE','trim','3938SHyhAl'];_0x2164=function(){return _0x468ed8;};return _0x2164();}export function printBlock(_0xfdaad2){const _0x257443=_0x5b40;console[_0x257443(0xe2)](_0xfdaad2);}export async function readHookInput(){const _0x565edf=_0x5b40;let _0x35c583='';try{for await(const _0x216ba0 of process[_0x565edf(0xe1)]){_0x35c583+=_0x216ba0;}}catch{return null;}if(!_0x35c583[_0x565edf(0xda)]())return null;try{return JSON['parse'](_0x35c583);}catch{return null;}}export async function getEnabledSessionId(_0x43e188){const _0x45f376=_0x5b40,_0x17c6d1={'JBlNx':function(_0x54d6ff,_0x52e45b){return _0x54d6ff(_0x52e45b);},'sHAIR':function(_0xc04132){return _0xc04132();},'MvEER':function(_0x36392d,_0x1ab245){return _0x36392d(_0x1ab245);}};if(_0x43e188)return _0x17c6d1[_0x45f376(0xd8)](isSessionEnabled,_0x43e188)?_0x43e188:null;const _0x4860ff=await _0x17c6d1['sHAIR'](readHookInput),_0x4194c7=_0x4860ff?.[_0x45f376(0xde)];if(!_0x4194c7||!_0x17c6d1['MvEER'](isSessionEnabled,_0x4194c7))return null;return _0x4194c7;}export async function getEnabledHookContext(_0x576767){const _0x619b9c=_0x5b40,_0x3a6b4b={'fLbBE':function(_0x141844){return _0x141844();}};if(_0x576767){if(!isSessionEnabled(_0x576767))return null;return{'sessionId':_0x576767,'input':{'session_id':_0x576767}};}const _0x3237e4=await _0x3a6b4b[_0x619b9c(0xd9)](readHookInput),_0x17f3a2=_0x3237e4?.[_0x619b9c(0xde)];if(!_0x17f3a2||!isSessionEnabled(_0x17f3a2))return null;return{'sessionId':_0x17f3a2,'input':_0x3237e4};}
1
+ (function(_0x2c1c27,_0x15ac08){const _0x466805=_0x5c2f,_0x58ffc0=_0x2c1c27();while(!![]){try{const _0x55a9ca=parseInt(_0x466805(0x1a3))/0x1*(-parseInt(_0x466805(0x19e))/0x2)+-parseInt(_0x466805(0x19f))/0x3*(-parseInt(_0x466805(0x1a9))/0x4)+-parseInt(_0x466805(0x1a8))/0x5*(-parseInt(_0x466805(0x1ac))/0x6)+-parseInt(_0x466805(0x1a2))/0x7+-parseInt(_0x466805(0x1a6))/0x8+parseInt(_0x466805(0x1a4))/0x9*(parseInt(_0x466805(0x1a7))/0xa)+parseInt(_0x466805(0x1aa))/0xb;if(_0x55a9ca===_0x15ac08)break;else _0x58ffc0['push'](_0x58ffc0['shift']());}catch(_0x45a527){_0x58ffc0['push'](_0x58ffc0['shift']());}}}(_0x9ef1,0x2d2b9));function _0x9ef1(){const _0x879891=['852504stTXmF','100788AFoQzh','3LvcdHH','fKSls','stdin','120855izaUxe','6CDbjYb','9xksVdj','trim','619008BlvTAT','3015940lplzMf','5LEaGHy','12268lKWGKs','1488047MtvJKu','session_id'];_0x9ef1=function(){return _0x879891;};return _0x9ef1();}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x3ee991){console['log'](_0x3ee991);}export async function readHookInput(){const _0x4874d9=_0x5c2f;let _0x41d0b6='';try{for await(const _0x5eb945 of process[_0x4874d9(0x1a1)]){_0x41d0b6+=_0x5eb945;}}catch{return null;}if(!_0x41d0b6[_0x4874d9(0x1a5)]())return null;try{return JSON['parse'](_0x41d0b6);}catch{return null;}}function _0x5c2f(_0x5af89b,_0x5bfc01){_0x5af89b=_0x5af89b-0x19e;const _0x9ef123=_0x9ef1();let _0x5c2f5d=_0x9ef123[_0x5af89b];return _0x5c2f5d;}export async function getEnabledSessionId(_0x599037){const _0x41df1d=_0x5c2f,_0x2813da={'fKSls':function(_0x57f54c){return _0x57f54c();},'EAqhW':function(_0x57ef7e,_0x552ac9){return _0x57ef7e(_0x552ac9);}};if(_0x599037)return isSessionEnabled(_0x599037)?_0x599037:null;const _0x16598c=await _0x2813da[_0x41df1d(0x1a0)](readHookInput),_0x433d76=_0x16598c?.[_0x41df1d(0x1ab)];if(!_0x433d76||!_0x2813da['EAqhW'](isSessionEnabled,_0x433d76))return null;return _0x433d76;}export async function getEnabledHookContext(_0x16a663){const _0x150a33={'CleFf':function(_0x5c8512,_0x32b840){return _0x5c8512(_0x32b840);}};if(_0x16a663){if(!isSessionEnabled(_0x16a663))return null;return{'sessionId':_0x16a663,'input':{'session_id':_0x16a663}};}const _0x177131=await readHookInput(),_0x2b3a7d=_0x177131?.['session_id'];if(!_0x2b3a7d||!_0x150a33['CleFf'](isSessionEnabled,_0x2b3a7d))return null;return{'sessionId':_0x2b3a7d,'input':_0x177131};}
@@ -1 +1 @@
1
- (function(_0x30ecb1,_0x482a6a){const _0x12daf8=_0x3c80,_0x58a586=_0x30ecb1();while(!![]){try{const _0x5d027a=-parseInt(_0x12daf8(0xdf))/0x1*(parseInt(_0x12daf8(0xd5))/0x2)+parseInt(_0x12daf8(0xd1))/0x3*(parseInt(_0x12daf8(0xdc))/0x4)+parseInt(_0x12daf8(0xdb))/0x5+-parseInt(_0x12daf8(0xd4))/0x6+parseInt(_0x12daf8(0xda))/0x7+-parseInt(_0x12daf8(0xd8))/0x8*(parseInt(_0x12daf8(0xd2))/0x9)+parseInt(_0x12daf8(0xe0))/0xa*(parseInt(_0x12daf8(0xd3))/0xb);if(_0x5d027a===_0x482a6a)break;else _0x58a586['push'](_0x58a586['shift']());}catch(_0x58788d){_0x58a586['push'](_0x58a586['shift']());}}}(_0x320c,0x1f1bd));function _0x320c(){const _0x1153a4=['sessionId','581528QYbjvb','permission_mode','306558DOucII','81585FmqyHH','28aSDdqN','input','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===','3574eHVmbk','70190LwxgrE','90855ZafJow','9iijWfC','627xOACeb','1309938AMFfFy','142ROpdLb','plan'];_0x320c=function(){return _0x1153a4;};return _0x320c();}function _0x3c80(_0x3d88a2,_0x24e114){_0x3d88a2=_0x3d88a2-0xd1;const _0x320cd9=_0x320c();let _0x3c8053=_0x320cd9[_0x3d88a2];return _0x3c8053;}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x1c4104){const _0x5ba9ec=_0x3c80,_0x512f08={'Tmbgs':function(_0x29cbbe,_0x3a2501){return _0x29cbbe!==_0x3a2501;},'IdoKg':_0x5ba9ec(0xd6)},_0x53f412=await getEnabledHookContext(_0x1c4104);if(!_0x53f412)return;if(_0x512f08['Tmbgs'](_0x53f412[_0x5ba9ec(0xdd)][_0x5ba9ec(0xd9)],_0x512f08['IdoKg']))return;if(!shouldShowPlanReminder(_0x53f412[_0x5ba9ec(0xd7)]))return;printBlock(_0x5ba9ec(0xde));}
1
+ (function(_0x182219,_0x237533){const _0x279e37=_0xc1c7,_0x3505e3=_0x182219();while(!![]){try{const _0x398de5=parseInt(_0x279e37(0xca))/0x1+-parseInt(_0x279e37(0xcc))/0x2+-parseInt(_0x279e37(0xbe))/0x3*(-parseInt(_0x279e37(0xc2))/0x4)+parseInt(_0x279e37(0xc6))/0x5+parseInt(_0x279e37(0xbf))/0x6+parseInt(_0x279e37(0xc7))/0x7*(-parseInt(_0x279e37(0xc5))/0x8)+parseInt(_0x279e37(0xc1))/0x9*(-parseInt(_0x279e37(0xc0))/0xa);if(_0x398de5===_0x237533)break;else _0x3505e3['push'](_0x3505e3['shift']());}catch(_0x7f6094){_0x3505e3['push'](_0x3505e3['shift']());}}}(_0x3fec,0xc7338));function _0xc1c7(_0x794413,_0x1dbb36){_0x794413=_0x794413-0xbe;const _0x3feccd=_0x3fec();let _0xc1c774=_0x3feccd[_0x794413];return _0xc1c774;}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x3fec(){const _0x462674=['1454706sTxFcg','10pCOmBq','6074361ALmsxO','32488DvgfgU','XxOce','input','40vGkXET','3720910CNDTQn','491813gTtXQr','bDuvJ','sessionId','1318688rHOIka','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===','1429902cygfDi','93LSBiPn'];_0x3fec=function(){return _0x462674;};return _0x3fec();}export async function planReminder(_0x4b977a){const _0x929cc9=_0xc1c7,_0xb0e84d={'XxOce':function(_0x11b17a,_0x435fdb){return _0x11b17a(_0x435fdb);},'bDuvJ':function(_0x36477a,_0x19c430){return _0x36477a!==_0x19c430;},'KHvfj':'plan'},_0x4ca8e3=await _0xb0e84d[_0x929cc9(0xc3)](getEnabledHookContext,_0x4b977a);if(!_0x4ca8e3)return;if(_0xb0e84d[_0x929cc9(0xc8)](_0x4ca8e3[_0x929cc9(0xc4)]['permission_mode'],_0xb0e84d['KHvfj']))return;if(!shouldShowPlanReminder(_0x4ca8e3[_0x929cc9(0xc9)]))return;printBlock(_0x929cc9(0xcb));}
@@ -1 +1 @@
1
- function _0x430e(_0x40395d,_0x289a36){_0x40395d=_0x40395d-0x17d;const _0xd230bc=_0xd230();let _0x430e73=_0xd230bc[_0x40395d];return _0x430e73;}function _0xd230(){const _0x1da1ac=['56QSVDmQ','63080mkPybg','951224lSQwgF','QYkGv','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===','140357AIYJnE','850167yryiLt','1059046xcUoIX','1314795snzdig','6aEsBIQ','527075NKoTyM'];_0xd230=function(){return _0x1da1ac;};return _0xd230();}(function(_0x2395b8,_0x58b483){const _0x53e4e4=_0x430e,_0x5ce6f7=_0x2395b8();while(!![]){try{const _0x59df71=-parseInt(_0x53e4e4(0x187))/0x1+parseInt(_0x53e4e4(0x181))/0x2+parseInt(_0x53e4e4(0x182))/0x3+-parseInt(_0x53e4e4(0x186))/0x4+-parseInt(_0x53e4e4(0x184))/0x5+-parseInt(_0x53e4e4(0x183))/0x6*(-parseInt(_0x53e4e4(0x17f))/0x7)+-parseInt(_0x53e4e4(0x185))/0x8*(-parseInt(_0x53e4e4(0x180))/0x9);if(_0x59df71===_0x58b483)break;else _0x5ce6f7['push'](_0x5ce6f7['shift']());}catch(_0x4aba19){_0x5ce6f7['push'](_0x5ce6f7['shift']());}}}(_0xd230,0x8cc9f));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x23cbeb){const _0x5b40a5=_0x430e,_0x72cbe6={'QYkGv':function(_0x2ce543,_0x374a12){return _0x2ce543(_0x374a12);}},_0x578542=await getEnabledSessionId(_0x23cbeb);if(!_0x578542)return;_0x72cbe6[_0x5b40a5(0x17d)](printBlock,_0x5b40a5(0x17e));}
1
+ function _0x2cea(){const _0xec4c02=['682722flrAEV','6NlSWRc','10YlcOaS','1QIqMkB','1779183pwNgWe','899675GZoEef','2261112djmega','890684HBwrtm','830078ySCsTk','995632bvWyoo'];_0x2cea=function(){return _0xec4c02;};return _0x2cea();}(function(_0x29ed3f,_0x470cd1){const _0x1b5f5b=_0x4acd,_0x17a115=_0x29ed3f();while(!![]){try{const _0x4c6f12=parseInt(_0x1b5f5b(0x1e1))/0x1*(parseInt(_0x1b5f5b(0x1dc))/0x2)+parseInt(_0x1b5f5b(0x1df))/0x3*(-parseInt(_0x1b5f5b(0x1db))/0x4)+parseInt(_0x1b5f5b(0x1d9))/0x5+parseInt(_0x1b5f5b(0x1da))/0x6+-parseInt(_0x1b5f5b(0x1d8))/0x7+-parseInt(_0x1b5f5b(0x1dd))/0x8+-parseInt(_0x1b5f5b(0x1de))/0x9*(-parseInt(_0x1b5f5b(0x1e0))/0xa);if(_0x4c6f12===_0x470cd1)break;else _0x17a115['push'](_0x17a115['shift']());}catch(_0x4bfba0){_0x17a115['push'](_0x17a115['shift']());}}}(_0x2cea,0x369e7));import{printBlock,getEnabledSessionId}from'./output.js';function _0x4acd(_0x2f5ff4,_0x1d3f1c){_0x2f5ff4=_0x2f5ff4-0x1d8;const _0x2ceafb=_0x2cea();let _0x4acda6=_0x2ceafb[_0x2f5ff4];return _0x4acda6;}export async function planStart(_0x494efd){const _0xfecb8c=await getEnabledSessionId(_0x494efd);if(!_0xfecb8c)return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- (function(_0x3a25b7,_0x1ad979){const _0x2259e7=_0x5518,_0x18d3ba=_0x3a25b7();while(!![]){try{const _0x1fde71=parseInt(_0x2259e7(0x170))/0x1*(-parseInt(_0x2259e7(0x17a))/0x2)+-parseInt(_0x2259e7(0x179))/0x3*(-parseInt(_0x2259e7(0x16e))/0x4)+parseInt(_0x2259e7(0x17e))/0x5*(parseInt(_0x2259e7(0x171))/0x6)+-parseInt(_0x2259e7(0x172))/0x7*(-parseInt(_0x2259e7(0x176))/0x8)+parseInt(_0x2259e7(0x177))/0x9+-parseInt(_0x2259e7(0x17c))/0xa+parseInt(_0x2259e7(0x178))/0xb*(-parseInt(_0x2259e7(0x16f))/0xc);if(_0x1fde71===_0x1ad979)break;else _0x18d3ba['push'](_0x18d3ba['shift']());}catch(_0x53fa4d){_0x18d3ba['push'](_0x18d3ba['shift']());}}}(_0x3ff8,0xa327a));function _0x5518(_0x50e37f,_0x409d27){_0x50e37f=_0x50e37f-0x16e;const _0x3ff87f=_0x3ff8();let _0x551866=_0x3ff87f[_0x50e37f];return _0x551866;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3ff8(){const _0x383434=['6870860ZmUdbO','YbFqw','1250305fbtbnu','4954484yYhmyK','36yeMOGU','1dDBWKD','18CZGKhI','6656216SrmAeQ','log','RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).','RHHkz','8uvgSUy','6463989CHirRb','5120742GXSkqt','3SNQVXx','1811958aMCBGA','PostToolUse'];_0x3ff8=function(){return _0x383434;};return _0x3ff8();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x17d96b){const _0x93d39b=_0x5518,_0x522792={'YbFqw':function(_0x1d0838,_0xc1f576){return _0x1d0838(_0xc1f576);},'RHHkz':function(_0x190910){return _0x190910();}},_0xbbfeb8=await _0x522792[_0x93d39b(0x17d)](getEnabledSessionId,_0x17d96b);if(!_0xbbfeb8)return;updateBranchTracking(_0xbbfeb8);const _0x23269e=await _0x522792[_0x93d39b(0x175)](getToken);if(!_0x23269e)return;const _0x29cada=getSessionEntry(_0xbbfeb8);if(_0x29cada){const _0x225246={'hookSpecificOutput':{'hookEventName':_0x93d39b(0x17b),'additionalContext':_0x93d39b(0x174)}};console[_0x93d39b(0x173)](JSON['stringify'](_0x225246));return;}const _0x10589c={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console[_0x93d39b(0x173)](JSON['stringify'](_0x10589c));}
1
+ (function(_0x2d0bda,_0x300fce){const _0x15d03b=_0x369a,_0x22153d=_0x2d0bda();while(!![]){try{const _0x2ae400=-parseInt(_0x15d03b(0x17b))/0x1+parseInt(_0x15d03b(0x182))/0x2*(-parseInt(_0x15d03b(0x183))/0x3)+parseInt(_0x15d03b(0x187))/0x4*(parseInt(_0x15d03b(0x184))/0x5)+-parseInt(_0x15d03b(0x17c))/0x6+-parseInt(_0x15d03b(0x181))/0x7*(-parseInt(_0x15d03b(0x186))/0x8)+parseInt(_0x15d03b(0x17e))/0x9+-parseInt(_0x15d03b(0x180))/0xa*(-parseInt(_0x15d03b(0x185))/0xb);if(_0x2ae400===_0x300fce)break;else _0x22153d['push'](_0x22153d['shift']());}catch(_0x564f9d){_0x22153d['push'](_0x22153d['shift']());}}}(_0x1699,0x88990));function _0x1699(){const _0x30ed0b=['log','180342rHXLaz','1937754czUdnd','stringify','766323aPtPUd','PLtvY','780DGnHjj','959oGOOlT','75040EWLdGb','45xCyNPF','1165710rYnxFr','1177ekfQme','48624OZKmel','12tDDZqy'];_0x1699=function(){return _0x30ed0b;};return _0x1699();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x369a(_0x408a89,_0x405e33){_0x408a89=_0x408a89-0x17a;const _0x169936=_0x1699();let _0x369a94=_0x169936[_0x408a89];return _0x369a94;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x2d5867){const _0x4f6d47=_0x369a,_0x1a486f={'CCFuB':function(_0x2f475b,_0x500f91){return _0x2f475b(_0x500f91);},'jDztk':function(_0x1fbd3d){return _0x1fbd3d();},'PLtvY':'PostToolUse'},_0x147327=await getEnabledSessionId(_0x2d5867);if(!_0x147327)return;_0x1a486f['CCFuB'](updateBranchTracking,_0x147327);const _0x374242=await _0x1a486f['jDztk'](getToken);if(!_0x374242)return;const _0x16f77b=getSessionEntry(_0x147327);if(_0x16f77b){const _0x2926fb={'hookSpecificOutput':{'hookEventName':_0x1a486f[_0x4f6d47(0x17f)],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x4f6d47(0x17a)](JSON[_0x4f6d47(0x17d)](_0x2926fb));return;}const _0x568010={'hookSpecificOutput':{'hookEventName':_0x1a486f[_0x4f6d47(0x17f)],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x568010));}
@@ -1 +1 @@
1
- (function(_0x1dcaf0,_0x1d89f7){const _0x2121b8=_0x3325,_0x160313=_0x1dcaf0();while(!![]){try{const _0x2a58fd=parseInt(_0x2121b8(0xaa))/0x1+parseInt(_0x2121b8(0xab))/0x2*(-parseInt(_0x2121b8(0xaf))/0x3)+-parseInt(_0x2121b8(0xa2))/0x4+-parseInt(_0x2121b8(0xa8))/0x5*(parseInt(_0x2121b8(0xa6))/0x6)+parseInt(_0x2121b8(0xa3))/0x7*(parseInt(_0x2121b8(0xac))/0x8)+-parseInt(_0x2121b8(0xa5))/0x9*(-parseInt(_0x2121b8(0xa4))/0xa)+parseInt(_0x2121b8(0xa7))/0xb*(parseInt(_0x2121b8(0xad))/0xc);if(_0x2a58fd===_0x1d89f7)break;else _0x160313['push'](_0x160313['shift']());}catch(_0x10c033){_0x160313['push'](_0x160313['shift']());}}}(_0x3ac8,0x5272d));import{getToken}from'../utils/keychain.js';function _0x3ac8(){const _0xbe55bb=['588384KevjDo','2hiflGj','8szEBSf','1388796ldfDys','TEXUW','492954XpyfRR','2558100giOBoN','2328795CzPbKU','346090FHcGqR','63LqOpgf','759738IoMhlE','22GhWBUa','10JKpLoA','===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.'];_0x3ac8=function(){return _0xbe55bb;};return _0x3ac8();}import{printBlock,getEnabledSessionId}from'./output.js';function _0x3325(_0xfb4797,_0x409400){_0xfb4797=_0xfb4797-0xa2;const _0x3ac8bf=_0x3ac8();let _0x332580=_0x3ac8bf[_0xfb4797];return _0x332580;}export async function preCompact(_0x805256){const _0x4c84ed=_0x3325,_0x3feac9={'TEXUW':function(_0x48f05b,_0x2466d3){return _0x48f05b(_0x2466d3);}},_0x4f9f19=await getEnabledSessionId(_0x805256);if(!_0x4f9f19)return;try{const _0x5264f3=await getToken();if(!_0x5264f3)return;_0x3feac9[_0x4c84ed(0xae)](printBlock,_0x4c84ed(0xa9));}catch{}}
1
+ (function(_0x652c96,_0x6e2c37){const _0x5cfda7=_0xf147,_0x561148=_0x652c96();while(!![]){try{const _0x1443a9=-parseInt(_0x5cfda7(0x106))/0x1+parseInt(_0x5cfda7(0x109))/0x2*(-parseInt(_0x5cfda7(0x10a))/0x3)+-parseInt(_0x5cfda7(0x103))/0x4+-parseInt(_0x5cfda7(0x102))/0x5+-parseInt(_0x5cfda7(0x107))/0x6+-parseInt(_0x5cfda7(0x108))/0x7*(-parseInt(_0x5cfda7(0x105))/0x8)+-parseInt(_0x5cfda7(0x10b))/0x9*(-parseInt(_0x5cfda7(0x10d))/0xa);if(_0x1443a9===_0x6e2c37)break;else _0x561148['push'](_0x561148['shift']());}catch(_0x53f062){_0x561148['push'](_0x561148['shift']());}}}(_0x5128,0xceb59));import{getToken}from'../utils/keychain.js';function _0x5128(){const _0x42b861=['21fKDpjT','257722nhBJNr','27QSwtkg','18bJSOBa','LQisc','16890670TeqFdc','1769780KrHCYu','3574616tOBunf','===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.','2389448OHqAiL','384946ZAOMzY','3811146NyDkdw'];_0x5128=function(){return _0x42b861;};return _0x5128();}function _0xf147(_0x576d69,_0x3de20b){_0x576d69=_0x576d69-0x102;const _0x51282f=_0x5128();let _0xf147ec=_0x51282f[_0x576d69];return _0xf147ec;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x2f0ea4){const _0x462acd=_0xf147,_0x40a89a={'LQisc':function(_0x5f5699,_0x6ecf35){return _0x5f5699(_0x6ecf35);}},_0x3dc87a=await _0x40a89a[_0x462acd(0x10c)](getEnabledSessionId,_0x2f0ea4);if(!_0x3dc87a)return;try{const _0x53008c=await getToken();if(!_0x53008c)return;printBlock(_0x462acd(0x104));}catch{}}
@@ -1 +1 @@
1
- (function(_0x28993a,_0xe5f04f){const _0xcc7719=_0x2869,_0x49120a=_0x28993a();while(!![]){try{const _0x22c504=parseInt(_0xcc7719(0xbc))/0x1*(-parseInt(_0xcc7719(0xbe))/0x2)+parseInt(_0xcc7719(0xb9))/0x3+parseInt(_0xcc7719(0xc2))/0x4+-parseInt(_0xcc7719(0xb7))/0x5*(-parseInt(_0xcc7719(0xbd))/0x6)+-parseInt(_0xcc7719(0xc0))/0x7*(-parseInt(_0xcc7719(0xc3))/0x8)+-parseInt(_0xcc7719(0xb8))/0x9+parseInt(_0xcc7719(0xbf))/0xa*(-parseInt(_0xcc7719(0xc5))/0xb);if(_0x22c504===_0xe5f04f)break;else _0x49120a['push'](_0x49120a['shift']());}catch(_0x409422){_0x49120a['push'](_0x49120a['shift']());}}}(_0x3f89,0x3f8b4));function _0x2869(_0x2dd0cf,_0x483d47){_0x2dd0cf=_0x2dd0cf-0xb7;const _0x3f891f=_0x3f89();let _0x286951=_0x3f891f[_0x2dd0cf];return _0x286951;}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x3f89(){const _0x210e88=['TZrGd','reason','38951SWurrE','1239846DxwJcF','16eYLQeK','58820MXtSAm','14OsStlZ','env','632488RGkvRA','221528vjxlxX','clear','77tNmnEd','10lgHZlu','3780171PtbKVx','1218873AdCRnH'];_0x3f89=function(){return _0x210e88;};return _0x3f89();}import{readHookInput}from'./output.js';export async function sessionEnd(_0x4e3969){const _0x18bfce=_0x2869,_0xab8ff2={'EuglI':_0x18bfce(0xc4),'TZrGd':function(_0x19c381,_0xa6f2d1){return _0x19c381(_0xa6f2d1);}},_0x18cce3=process[_0x18bfce(0xc1)]['CLAUDE_SESSION_ID'];let _0x2aec18=_0x4e3969,_0x70996a;if(!_0x4e3969){if(_0x18cce3&&!isSessionEnabled(_0x18cce3))return;const _0x493a31=await readHookInput();_0x2aec18=_0x493a31?.['session_id']||_0x18cce3,_0x70996a=_0x493a31?.[_0x18bfce(0xbb)];}if(!_0x2aec18)return;_0x70996a===_0xab8ff2['EuglI']&&_0xab8ff2[_0x18bfce(0xba)](recordEnabledSessionCleared,_0x2aec18);}
1
+ (function(_0x1c5658,_0xb418a1){const _0x2d06ea=_0x3725,_0x3e818d=_0x1c5658();while(!![]){try{const _0x3317c1=-parseInt(_0x2d06ea(0xf3))/0x1*(parseInt(_0x2d06ea(0xf4))/0x2)+parseInt(_0x2d06ea(0xe8))/0x3*(parseInt(_0x2d06ea(0xea))/0x4)+parseInt(_0x2d06ea(0xe7))/0x5*(parseInt(_0x2d06ea(0xf0))/0x6)+-parseInt(_0x2d06ea(0xee))/0x7*(-parseInt(_0x2d06ea(0xef))/0x8)+-parseInt(_0x2d06ea(0xf1))/0x9*(parseInt(_0x2d06ea(0xec))/0xa)+-parseInt(_0x2d06ea(0xe9))/0xb+parseInt(_0x2d06ea(0xeb))/0xc;if(_0x3317c1===_0xb418a1)break;else _0x3e818d['push'](_0x3e818d['shift']());}catch(_0x538bbc){_0x3e818d['push'](_0x3e818d['shift']());}}}(_0x5441,0x85a40));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x3725(_0x577ec9,_0x3bdbb2){_0x577ec9=_0x577ec9-0xe6;const _0x544185=_0x5441();let _0x3725e8=_0x544185[_0x577ec9];return _0x3725e8;}function _0x5441(){const _0x5260eb=['6fVaPog','1745946viqRqH','XSBZW','397158CBkHQb','2jRoLcB','session_id','4437320uhPzqX','3KzOUni','4385216CNpsFm','2061224tQxLNN','701064dmNnGx','10lywNOW','clear','14mVsCSa','304032JLntnf'];_0x5441=function(){return _0x5260eb;};return _0x5441();}import{readHookInput}from'./output.js';export async function sessionEnd(_0x3fd84f){const _0x569611=_0x3725,_0x153ae2={'OrWri':function(_0x10b9a6){return _0x10b9a6();},'XSBZW':_0x569611(0xed)},_0x685d9f=process['env']['CLAUDE_SESSION_ID'];let _0x5ffc98=_0x3fd84f,_0x8e9c3f;if(!_0x3fd84f){if(_0x685d9f&&!isSessionEnabled(_0x685d9f))return;const _0x17d45d=await _0x153ae2['OrWri'](readHookInput);_0x5ffc98=_0x17d45d?.[_0x569611(0xe6)]||_0x685d9f,_0x8e9c3f=_0x17d45d?.['reason'];}if(!_0x5ffc98)return;_0x8e9c3f===_0x153ae2[_0x569611(0xf2)]&&recordEnabledSessionCleared(_0x5ffc98);}
@@ -1 +1 @@
1
- const _0x4f43c2=_0x3813;function _0x3813(_0x215890,_0x102678){_0x215890=_0x215890-0x10b;const _0x586d26=_0x586d();let _0x381352=_0x586d26[_0x215890];return _0x381352;}(function(_0x2dfd56,_0xe2210c){const _0x434df3=_0x3813,_0x3efa15=_0x2dfd56();while(!![]){try{const _0x3b43c5=parseInt(_0x434df3(0x113))/0x1+-parseInt(_0x434df3(0x117))/0x2+-parseInt(_0x434df3(0x112))/0x3*(-parseInt(_0x434df3(0x118))/0x4)+parseInt(_0x434df3(0x125))/0x5*(parseInt(_0x434df3(0x11a))/0x6)+-parseInt(_0x434df3(0x123))/0x7*(parseInt(_0x434df3(0x11b))/0x8)+-parseInt(_0x434df3(0x110))/0x9*(-parseInt(_0x434df3(0x10b))/0xa)+-parseInt(_0x434df3(0x115))/0xb*(parseInt(_0x434df3(0x10c))/0xc);if(_0x3b43c5===_0xe2210c)break;else _0x3efa15['push'](_0x3efa15['shift']());}catch(_0x49b2d2){_0x3efa15['push'](_0x3efa15['shift']());}}}(_0x586d,0x5f110));import{appendFile}from'fs/promises';function _0x586d(){const _0x503112=['=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','WlKlD','252MgyiVI','source','3zVOHPs','340473tInWHk','eRnnv','93423GSVVrX','master','450918UAesHl','1467084qpwBwk','ZLLlB','4482510LyzRCI','406936fFHZyU','trackCommandEnd','EgFgY','export\x20CLAUDE_SESSION_ID=\x22','parse','SessionStart','env','stdin','7miinnl','hook:session-start','5cUkxST','stringify','oeCHf','139970rfGBBj','1668tRqfHN','main'];_0x586d=function(){return _0x503112;};return _0x586d();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x4f43c2(0x10e);export async function sessionStart(_0x2d3b85){const _0x56195a=_0x4f43c2,_0x1f84ad={'WlKlD':function(_0x31bc45,_0x2105b6){return _0x31bc45||_0x2105b6;},'eRnnv':function(_0x230245){return _0x230245();},'ZLLlB':function(_0x55a3f1,_0x4576d8){return _0x55a3f1===_0x4576d8;},'YyUrE':function(_0xb57f5c){return _0xb57f5c();},'EgFgY':function(_0x3ebde2,_0x4b23e2){return _0x3ebde2(_0x4b23e2);},'vTUGd':'success','kxcmw':function(_0x44d381,_0x50d734){return _0x44d381!==_0x50d734;},'cqQDF':_0x56195a(0x10d),'jZayW':_0x56195a(0x116),'oeCHf':_0x56195a(0x120)};let _0x424390=_0x1f84ad[_0x56195a(0x10f)](_0x2d3b85,''),_0x35dae4;if(!_0x2d3b85){let _0x41537f='';for await(const _0x1c8a64 of process[_0x56195a(0x122)]){_0x41537f+=_0x1c8a64;}try{const _0x36fe19=JSON[_0x56195a(0x11f)](_0x41537f);_0x424390=_0x36fe19['session_id']||'',_0x35dae4=_0x36fe19[_0x56195a(0x111)];}catch{}const _0x4c47a3=process[_0x56195a(0x121)]['CLAUDE_ENV_FILE'];if(_0x4c47a3&&_0x424390)try{await appendFile(_0x4c47a3,_0x56195a(0x11e)+_0x424390+'\x22\x0a');}catch{}}try{await _0x1f84ad[_0x56195a(0x114)](getToken);}catch{}if(_0x424390){shouldAutoEnableAfterClear(_0x35dae4)&&autoEnableAfterClear(_0x424390);initBranchTracking(_0x424390);_0x1f84ad[_0x56195a(0x119)](_0x1f84ad['YyUrE'](resolveHookMode),'on')&&_0x1f84ad[_0x56195a(0x11d)](enableSession,_0x424390);const _0x28c44d=isSessionEnabled(_0x424390);try{const _0xc580eb=createTelemetryCollector(_0x56195a(0x124));await _0xc580eb['trackCommandStart']({'sessionId':_0x424390,'hooksEnabled':_0x28c44d}),await _0xc580eb[_0x56195a(0x11c)](_0x1f84ad['vTUGd']);}catch{}if(_0x28c44d){const _0xecc9ea=getCurrentBranch(),_0x5043db=_0xecc9ea&&_0x1f84ad['kxcmw'](_0xecc9ea,_0x1f84ad['cqQDF'])&&_0xecc9ea!==_0x1f84ad['jZayW']?'\x20(Branch:\x20'+_0xecc9ea+')':'',_0x5e2ea9={'hookSpecificOutput':{'hookEventName':_0x1f84ad[_0x56195a(0x127)],'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x5043db}};console['log'](JSON[_0x56195a(0x126)](_0x5e2ea9));}}}
1
+ const _0x1c2e60=_0x3b0e;(function(_0x8a3257,_0x5a0a5d){const _0x222103=_0x3b0e,_0x3e821d=_0x8a3257();while(!![]){try{const _0xabca77=parseInt(_0x222103(0x167))/0x1*(parseInt(_0x222103(0x16c))/0x2)+parseInt(_0x222103(0x165))/0x3+-parseInt(_0x222103(0x169))/0x4+-parseInt(_0x222103(0x163))/0x5+parseInt(_0x222103(0x168))/0x6*(parseInt(_0x222103(0x15f))/0x7)+-parseInt(_0x222103(0x15d))/0x8+parseInt(_0x222103(0x160))/0x9;if(_0xabca77===_0x5a0a5d)break;else _0x3e821d['push'](_0x3e821d['shift']());}catch(_0x1bf8e5){_0x3e821d['push'](_0x3e821d['shift']());}}}(_0xa632,0xd199c));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x3b0e(_0x36802e,_0x34e228){_0x36802e=_0x36802e-0x158;const _0xa632db=_0xa632();let _0x3b0e58=_0xa632db[_0x36802e];return _0x3b0e58;}function _0xa632(){const _0x137f63=['245214NUGjFk','18qAGpFy','6378996CLGumc','CLAUDE_ENV_FILE','session_id','6GnBcPk','cRhvG','XDfoa','master','mYCsx','main','hdfEb','trackCommandStart','7366168hhDdhA','HsBAb','2497789jzQUcj','7383420HZZEgj','QvMnJ','SessionStart','1318400FyCHoF','success','3033663CDcwpJ','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a================================================================='];_0xa632=function(){return _0x137f63;};return _0xa632();}import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x1c2e60(0x166);export async function sessionStart(_0x1a5110){const _0x3ab9ab=_0x1c2e60,_0x3d0abb={'QvMnJ':function(_0x43b6f7,_0x2d8351){return _0x43b6f7||_0x2d8351;},'mYCsx':_0x3ab9ab(0x16b),'aNwbm':'source','XDfoa':function(_0x4ef0f6,_0x2b327d){return _0x4ef0f6&&_0x2b327d;},'cRhvG':function(_0x37d490,_0x327d27,_0xac8743){return _0x37d490(_0x327d27,_0xac8743);},'iJbxl':function(_0x55a616,_0x553086){return _0x55a616===_0x553086;},'AGReY':function(_0x45781c,_0x46f820){return _0x45781c(_0x46f820);},'eEPCf':'hook:session-start','hdfEb':function(_0x226f50,_0x43d9ba){return _0x226f50!==_0x43d9ba;},'GdTuQ':_0x3ab9ab(0x162),'HsBAb':function(_0x3932ca,_0x90e5b){return _0x3932ca+_0x90e5b;}};let _0xb714ba=_0x3d0abb[_0x3ab9ab(0x161)](_0x1a5110,''),_0xf348f6;if(!_0x1a5110){let _0x1aef86='';for await(const _0x2b7200 of process['stdin']){_0x1aef86+=_0x2b7200;}try{const _0x26bfb5=JSON['parse'](_0x1aef86);_0xb714ba=_0x26bfb5[_0x3d0abb[_0x3ab9ab(0x159)]]||'',_0xf348f6=_0x26bfb5[_0x3d0abb['aNwbm']];}catch{}const _0x55b0c4=process['env'][_0x3ab9ab(0x16a)];if(_0x3d0abb[_0x3ab9ab(0x16e)](_0x55b0c4,_0xb714ba))try{await _0x3d0abb[_0x3ab9ab(0x16d)](appendFile,_0x55b0c4,'export\x20CLAUDE_SESSION_ID=\x22'+_0xb714ba+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0xb714ba){shouldAutoEnableAfterClear(_0xf348f6)&&autoEnableAfterClear(_0xb714ba);initBranchTracking(_0xb714ba);_0x3d0abb['iJbxl'](resolveHookMode(),'on')&&_0x3d0abb['AGReY'](enableSession,_0xb714ba);const _0x44355e=isSessionEnabled(_0xb714ba);try{const _0x41b4ea=createTelemetryCollector(_0x3d0abb['eEPCf']);await _0x41b4ea[_0x3ab9ab(0x15c)]({'sessionId':_0xb714ba,'hooksEnabled':_0x44355e}),await _0x41b4ea['trackCommandEnd'](_0x3ab9ab(0x164));}catch{}if(_0x44355e){const _0xcdb733=getCurrentBranch(),_0x15883c=_0xcdb733&&_0xcdb733!==_0x3ab9ab(0x15a)&&_0x3d0abb[_0x3ab9ab(0x15b)](_0xcdb733,_0x3ab9ab(0x158))?'\x20(Branch:\x20'+_0xcdb733+')':'',_0x1efb3c={'hookSpecificOutput':{'hookEventName':_0x3d0abb['GdTuQ'],'additionalContext':_0x3d0abb[_0x3ab9ab(0x15e)](RANGER_AUTO_ENABLED_PROMPT,_0x15883c)}};console['log'](JSON['stringify'](_0x1efb3c));}}}
@@ -1 +1 @@
1
- function _0x2a41(){const _0x567a63=['featureId','some','1531316vHISSC','2054056VgZFjy','1491015KbIZHP','1279412fJTjbS','trackCommandEnd','https://dashboard.ranger.net/features/','Stop','MFcYx','stringify','1584480TPvibA','verification_in_progress','5647476VXsEAg','verified','98SZWqwD','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','closed','success','1313565vFwkqv','blocked','status','hook:stop','sessionId'];_0x2a41=function(){return _0x567a63;};return _0x2a41();}function _0x3444(_0x38302,_0x3feba6){_0x38302=_0x38302-0xff;const _0x2a417e=_0x2a41();let _0x34448b=_0x2a417e[_0x38302];return _0x34448b;}(function(_0x470929,_0x50d871){const _0xf67ddc=_0x3444,_0x2ec741=_0x470929();while(!![]){try{const _0x9deb35=-parseInt(_0xf67ddc(0x114))/0x1+-parseInt(_0xf67ddc(0x112))/0x2+parseInt(_0xf67ddc(0x10a))/0x3+parseInt(_0xf67ddc(0x111))/0x4+parseInt(_0xf67ddc(0x113))/0x5+-parseInt(_0xf67ddc(0x104))/0x6+-parseInt(_0xf67ddc(0x106))/0x7*(-parseInt(_0xf67ddc(0x102))/0x8);if(_0x9deb35===_0x50d871)break;else _0x2ec741['push'](_0x2ec741['shift']());}catch(_0xe5ad02){_0x2ec741['push'](_0x2ec741['shift']());}}}(_0x2a41,0x9d3c9));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x56e178){const _0x294c7e=_0x3444,_0x18cf04={'UrmkF':function(_0x54608d,_0x3a0387){return _0x54608d(_0x3a0387);},'MFcYx':function(_0x4c9463,_0x53df37,_0x5f04a3,_0x7913ae){return _0x4c9463(_0x53df37,_0x5f04a3,_0x7913ae);},'eietF':function(_0x3a2b34){return _0x3a2b34();},'hkWnb':function(_0x2afff1,_0x3f6bc3,_0x1e1e16){return _0x2afff1(_0x3f6bc3,_0x1e1e16);}},_0x464580=await _0x18cf04['UrmkF'](getEnabledHookContext,_0x56e178),_0x55e2f1=_0x464580?.['sessionId']??null;let _0xdcf5c5=!![];if(!_0x55e2f1){await trackStop(_0x55e2f1,![],_0xdcf5c5);return;}try{const _0x4d42a0=getSessionEntry(_0x55e2f1);if(!_0x4d42a0){await _0x18cf04[_0x294c7e(0x100)](trackStop,_0x55e2f1,!![],_0xdcf5c5);return;}const _0x496ef3=await _0x18cf04['eietF'](getToken),_0x3d927e=_0x294c7e(0x116)+_0x4d42a0['featureId'];let _0x226c52=null,_0x44f166=![],_0x4562f0=![];if(_0x496ef3)try{const _0xd23511=await _0x18cf04['UrmkF'](getFeature,_0x4d42a0[_0x294c7e(0x10f)]);_0x226c52=_0xd23511['currentSessionId']??null;const _0x2d9d98=_0xd23511['checklistItems']['filter'](_0x5dc754=>_0x5dc754[_0x294c7e(0x10e)]===_0x226c52);_0x44f166=_0x2d9d98[_0x294c7e(0x110)](_0xb14c27=>_0xb14c27['status']!==_0x294c7e(0x105)&&_0xb14c27[_0x294c7e(0x10c)]!==_0x294c7e(0x10b)&&_0xb14c27['status']!==_0x294c7e(0x108)&&_0xb14c27['status']!=='incomplete'),_0x4562f0=_0x2d9d98['some'](_0x2884ee=>_0x2884ee['status']===_0x294c7e(0x103));}catch{}if(_0x496ef3&&_0x226c52&&_0x44f166){if(!_0x4562f0&&shouldShowStopReminder(_0x55e2f1)){const _0x3ae530={'hookSpecificOutput':{'hookEventName':_0x294c7e(0xff),'additionalContext':_0x294c7e(0x107)+_0x3d927e}};console['log'](JSON[_0x294c7e(0x101)](_0x3ae530));}}if(_0x496ef3&&_0x226c52&&!_0x44f166)try{await _0x18cf04['hkWnb'](concludeSession,_0x4d42a0[_0x294c7e(0x10f)],_0x226c52);}catch{}await trackStop(_0x55e2f1,!![],_0xdcf5c5);return;}catch{await trackStop(_0x55e2f1,!![],_0xdcf5c5);return;}}async function trackStop(_0x12d156,_0x3fce1d,_0x5919b5){const _0xe99729=_0x3444,_0x265112={'isgKv':function(_0x9c275a,_0x5cad03){return _0x9c275a(_0x5cad03);},'MykfX':function(_0x25d63c,_0x3c5fdf){return _0x25d63c??_0x3c5fdf;}};try{const _0x5550f6=_0x265112['isgKv'](createTelemetryCollector,_0xe99729(0x10d));await _0x5550f6['trackCommandStart']({'sessionId':_0x265112['MykfX'](_0x12d156,undefined),'hooksEnabled':_0x3fce1d,'stopAllowed':_0x5919b5}),await _0x5550f6[_0xe99729(0x115)](_0xe99729(0x109));}catch{}}
1
+ (function(_0x37e103,_0x347c5d){const _0x25704a=_0x4cb7,_0x3adf69=_0x37e103();while(!![]){try{const _0x45728d=parseInt(_0x25704a(0x130))/0x1*(-parseInt(_0x25704a(0x133))/0x2)+-parseInt(_0x25704a(0x131))/0x3+-parseInt(_0x25704a(0x139))/0x4+-parseInt(_0x25704a(0x13c))/0x5+-parseInt(_0x25704a(0x141))/0x6*(parseInt(_0x25704a(0x137))/0x7)+-parseInt(_0x25704a(0x12e))/0x8*(parseInt(_0x25704a(0x134))/0x9)+parseInt(_0x25704a(0x142))/0xa;if(_0x45728d===_0x347c5d)break;else _0x3adf69['push'](_0x3adf69['shift']());}catch(_0x426d37){_0x3adf69['push'](_0x3adf69['shift']());}}}(_0x287c,0x2c7ed));function _0x287c(){const _0x3ae92e=['checklistItems','80edshpv','664503gynlai','status','1054cqMXHE','3196449zayOrE','https://dashboard.ranger.net/features/','trackCommandEnd','17101dGnKeS','log','713192XmSlYv','stringify','EOheN','1618660aHVVdw','trackCommandStart','closed','sessionId','currentSessionId','204pSHemB','13861670FAGOvY','featureId','Flcau','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','rExWl','filter','8ECybLi'];_0x287c=function(){return _0x3ae92e;};return _0x287c();}import{getToken}from'../utils/keychain.js';function _0x4cb7(_0x3a458e,_0x2cdd94){_0x3a458e=_0x3a458e-0x12e;const _0x287c6e=_0x287c();let _0x4cb709=_0x287c6e[_0x3a458e];return _0x4cb709;}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0xb8cec8){const _0x2a9791=_0x4cb7,_0x26da5e={'qdEZQ':function(_0x27b1f1,_0x33f6e8,_0x95a01d,_0x4282ef){return _0x27b1f1(_0x33f6e8,_0x95a01d,_0x4282ef);},'Flcau':function(_0x3cb362,_0x2e3a61){return _0x3cb362(_0x2e3a61);},'EOheN':function(_0x354c1d){return _0x354c1d();},'WQNlb':function(_0x576348,_0x1f2cc8){return _0x576348&&_0x1f2cc8;},'yFqQc':function(_0xe4ba13,_0x2cb2e5){return _0xe4ba13(_0x2cb2e5);},'rExWl':function(_0x8da917,_0x24e88c){return _0x8da917&&_0x24e88c;}},_0x15af3f=await getEnabledHookContext(_0xb8cec8),_0xaca9bc=_0x15af3f?.[_0x2a9791(0x13f)]??null;let _0x2805bc=!![];if(!_0xaca9bc){await _0x26da5e['qdEZQ'](trackStop,_0xaca9bc,![],_0x2805bc);return;}try{const _0x10749d=_0x26da5e[_0x2a9791(0x144)](getSessionEntry,_0xaca9bc);if(!_0x10749d){await _0x26da5e['qdEZQ'](trackStop,_0xaca9bc,!![],_0x2805bc);return;}const _0x995421=await _0x26da5e[_0x2a9791(0x13b)](getToken),_0x12e2d9=_0x2a9791(0x135)+_0x10749d[_0x2a9791(0x143)];let _0x726f68=null,_0x5db154=![],_0x107f24=![];if(_0x995421)try{const _0xe935a2=await getFeature(_0x10749d[_0x2a9791(0x143)]);_0x726f68=_0xe935a2[_0x2a9791(0x140)]??null;const _0x179fd2=_0xe935a2[_0x2a9791(0x12f)][_0x2a9791(0x147)](_0x4a4107=>_0x4a4107['sessionId']===_0x726f68);_0x5db154=_0x179fd2['some'](_0x3ce9c5=>_0x3ce9c5['status']!=='verified'&&_0x3ce9c5['status']!=='blocked'&&_0x3ce9c5['status']!==_0x2a9791(0x13e)&&_0x3ce9c5[_0x2a9791(0x132)]!=='incomplete'),_0x107f24=_0x179fd2['some'](_0x166da2=>_0x166da2[_0x2a9791(0x132)]==='verification_in_progress');}catch{}if(_0x26da5e['WQNlb'](_0x995421,_0x726f68)&&_0x5db154){if(!_0x107f24&&_0x26da5e['yFqQc'](shouldShowStopReminder,_0xaca9bc)){const _0x221d93={'hookSpecificOutput':{'hookEventName':'Stop','additionalContext':_0x2a9791(0x145)+_0x12e2d9}};console[_0x2a9791(0x138)](JSON[_0x2a9791(0x13a)](_0x221d93));}}if(_0x26da5e[_0x2a9791(0x146)](_0x995421,_0x726f68)&&!_0x5db154)try{await concludeSession(_0x10749d['featureId'],_0x726f68);}catch{}await trackStop(_0xaca9bc,!![],_0x2805bc);return;}catch{await trackStop(_0xaca9bc,!![],_0x2805bc);return;}}async function trackStop(_0x15e5f4,_0xe38da6,_0x3a3a04){const _0x1375bb=_0x4cb7,_0x10dd0f={'NqYuX':'success'};try{const _0x36432a=createTelemetryCollector('hook:stop');await _0x36432a[_0x1375bb(0x13d)]({'sessionId':_0x15e5f4??undefined,'hooksEnabled':_0xe38da6,'stopAllowed':_0x3a3a04}),await _0x36432a[_0x1375bb(0x136)](_0x10dd0f['NqYuX']);}catch{}}
@@ -1 +1 @@
1
- (function(_0xff026e,_0x34128c){var _0x5ca277=_0xa6fc,_0x419353=_0xff026e();while(!![]){try{var _0x368fea=-parseInt(_0x5ca277(0x1a4))/0x1*(-parseInt(_0x5ca277(0x1a9))/0x2)+parseInt(_0x5ca277(0x1a1))/0x3*(-parseInt(_0x5ca277(0x1a3))/0x4)+-parseInt(_0x5ca277(0x1a8))/0x5+-parseInt(_0x5ca277(0x1a7))/0x6+-parseInt(_0x5ca277(0x1a5))/0x7+parseInt(_0x5ca277(0x1a6))/0x8+parseInt(_0x5ca277(0x1a0))/0x9*(parseInt(_0x5ca277(0x1a2))/0xa);if(_0x368fea===_0x34128c)break;else _0x419353['push'](_0x419353['shift']());}catch(_0x2c0b01){_0x419353['push'](_0x419353['shift']());}}}(_0x30b9,0xd635f));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';function _0xa6fc(_0x55e7be,_0x42325f){_0x55e7be=_0x55e7be-0x1a0;var _0x30b9bc=_0x30b9();var _0xa6fc0b=_0x30b9bc[_0x55e7be];return _0xa6fc0b;}export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';function _0x30b9(){var _0x5f4bf2=['19PmAfSF','4020562zMXnBE','1358960khywEU','10495932tbzpJH','6990070vTKbiI','102792ASwlHq','47583OMzFhP','681111aWsKVB','6960qJjFhl','4kckPGk'];_0x30b9=function(){return _0x5f4bf2;};return _0x30b9();}export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
1
+ (function(_0x3dd993,_0x205740){var _0x3dd8eb=_0x31f8,_0x1aa3db=_0x3dd993();while(!![]){try{var _0x4c46f4=-parseInt(_0x3dd8eb(0xb0))/0x1+-parseInt(_0x3dd8eb(0xb8))/0x2*(-parseInt(_0x3dd8eb(0xb7))/0x3)+parseInt(_0x3dd8eb(0xb2))/0x4*(parseInt(_0x3dd8eb(0xb4))/0x5)+-parseInt(_0x3dd8eb(0xb1))/0x6+parseInt(_0x3dd8eb(0xb6))/0x7+parseInt(_0x3dd8eb(0xb5))/0x8+parseInt(_0x3dd8eb(0xb3))/0x9*(-parseInt(_0x3dd8eb(0xaf))/0xa);if(_0x4c46f4===_0x205740)break;else _0x1aa3db['push'](_0x1aa3db['shift']());}catch(_0x255a2b){_0x1aa3db['push'](_0x1aa3db['shift']());}}}(_0x2066,0xbb047));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';function _0x31f8(_0xd5fecc,_0x11884d){_0xd5fecc=_0xd5fecc-0xaf;var _0x2066bc=_0x2066();var _0x31f89c=_0x2066bc[_0xd5fecc];return _0x31f89c;}export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';function _0x2066(){var _0xb5990d=['5SxJXkQ','11570000fYIjrv','10082303IhrtuL','3PLokhG','2767312uYlNLT','6114380LSLdkE','893614WieGHn','8720184OoxpGE','2708320EICEHs','27gbDLCy'];_0x2066=function(){return _0xb5990d;};return _0x2066();}export{migrateProfile}from'./migrateProfile.js';