@ranger-testing/ranger-cli 2.1.1 → 2.1.3

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 (66) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/browserSessionsApi.js +1 -1
  35. package/build/commands/utils/claudeConfig.js +1 -1
  36. package/build/commands/utils/claudePlugin.js +1 -1
  37. package/build/commands/utils/crypto.js +1 -1
  38. package/build/commands/utils/desirePathLog.js +1 -1
  39. package/build/commands/utils/deviceAuth.js +1 -1
  40. package/build/commands/utils/environment.js +1 -1
  41. package/build/commands/utils/featureApi.js +1 -1
  42. package/build/commands/utils/featureReportGenerator.js +1 -1
  43. package/build/commands/utils/fixWebmDuration.js +1 -1
  44. package/build/commands/utils/git.js +1 -1
  45. package/build/commands/utils/keychain.js +1 -1
  46. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  47. package/build/commands/utils/mcpImageBase64.js +1 -1
  48. package/build/commands/utils/model.js +1 -1
  49. package/build/commands/utils/opencodeConfig.js +1 -1
  50. package/build/commands/utils/profileMessages.js +1 -1
  51. package/build/commands/utils/profileSetupBanner.js +1 -1
  52. package/build/commands/utils/rangerConfig.js +1 -1
  53. package/build/commands/utils/rangerRoot.js +1 -1
  54. package/build/commands/utils/reportGenerator.js +1 -1
  55. package/build/commands/utils/retry.js +1 -1
  56. package/build/commands/utils/sessionCache.js +1 -1
  57. package/build/commands/utils/settings.js +1 -1
  58. package/build/commands/utils/skillContent.js +1 -1
  59. package/build/commands/utils/skills.js +1 -1
  60. package/build/commands/utils/telemetry.js +1 -1
  61. package/build/commands/utils/traceSnapshotMapper.js +1 -0
  62. package/build/commands/utils/userApi.js +1 -1
  63. package/build/commands/utils/version.js +1 -1
  64. package/build/commands/verifyFeature.js +1 -1
  65. package/build/commands/verifyInBrowser.js +1 -1
  66. package/package.json +2 -1
@@ -1 +1 @@
1
- const _0xa40a8f=_0x56ab;(function(_0x4b1f74,_0x3d65be){const _0x338f05=_0x56ab,_0x25aac3=_0x4b1f74();while(!![]){try{const _0x46e586=parseInt(_0x338f05(0xdd))/0x1+parseInt(_0x338f05(0xd4))/0x2*(parseInt(_0x338f05(0xdc))/0x3)+-parseInt(_0x338f05(0xcb))/0x4*(-parseInt(_0x338f05(0xcf))/0x5)+parseInt(_0x338f05(0xd2))/0x6+parseInt(_0x338f05(0xd7))/0x7*(-parseInt(_0x338f05(0xda))/0x8)+parseInt(_0x338f05(0xdf))/0x9+-parseInt(_0x338f05(0xca))/0xa;if(_0x46e586===_0x3d65be)break;else _0x25aac3['push'](_0x25aac3['shift']());}catch(_0x2555ed){_0x25aac3['push'](_0x25aac3['shift']());}}}(_0x18b0,0x67d0d));function _0x56ab(_0x502e7e,_0x591ac0){_0x502e7e=_0x502e7e-0xc3;const _0x18b047=_0x18b0();let _0x56ab98=_0x18b047[_0x502e7e];return _0x56ab98;}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';function _0x18b0(){const _0x299baf=['\x0aProfiles:','13646qRBSsS','settings.json','includes','5826709CzlIXS','sort','startsWith','8FTYnxX','lGUGg','159kAsaMj','670829VdjUio','length','4838472XIduQN','bug-bashes','fSkDV','IXXoI','log','\x0a*\x20=\x20active\x20profile','WXBeI','UFcAL','Run:\x20ranger\x20profile\x20add\x20<profile-name>','14369100aIpmUz','724OjVHQd','local','zIkZP','legacy','8900xiLQOV','isDirectory','push','4813740LnETiO'];_0x18b0=function(){return _0x299baf;};return _0x18b0();}const NON_ENV_DIRS=['sessions',_0xa40a8f(0xe0),'reports','local','ci'];export async function getEnvNames(){const _0x1591d1=_0xa40a8f,_0xb061f3={'BNHqw':function(_0x136d87){return _0x136d87();},'UFcAL':function(_0x2c1c38,_0x37a5aa){return _0x2c1c38(_0x37a5aa);},'lGUGg':function(_0x55ab75){return _0x55ab75();},'yxMtV':function(_0x3bad01,_0x544121,_0x301a45){return _0x3bad01(_0x544121,_0x301a45);},'kareF':'local','Nbqrq':function(_0x2868cc,_0x1e8fc5){return _0x2868cc(_0x1e8fc5);},'yauHa':function(_0x28af70,_0x516824){return _0x28af70(_0x516824);},'bHvtn':function(_0x4b6faf,_0x1720e1,_0x172670){return _0x4b6faf(_0x1720e1,_0x172670);},'fSkDV':'legacy'},_0x512fb1=_0xb061f3['BNHqw'](getRangerDir);if(!_0xb061f3[_0x1591d1(0xc8)](existsSync,_0x512fb1))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x522d8a=await _0xb061f3[_0x1591d1(0xdb)](readActiveProfileName),_0x5e7b2f=[],_0x4ffc57={},_0x554741=_0xb061f3['yxMtV'](join,_0x512fb1,_0xb061f3['kareF']);if(existsSync(_0x554741)){const _0xbd87cf=await _0xb061f3['Nbqrq'](readdir,_0x554741);for(const _0x4c7042 of _0xbd87cf){const _0x1729d1=join(_0x554741,_0x4c7042),_0x24034f=await stat(_0x1729d1);_0x24034f[_0x1591d1(0xd0)]()&&(_0x5e7b2f[_0x1591d1(0xd1)](_0x4c7042),_0x4ffc57[_0x4c7042]=_0x1591d1(0xcc));}}const _0x334154=join(_0x512fb1,'ci');if(existsSync(_0x334154)){const _0x366e9b=await readdir(_0x334154);for(const _0x530f8d of _0x366e9b){const _0x4612ff=join(_0x334154,_0x530f8d),_0x28695e=await stat(_0x4612ff);_0x28695e[_0x1591d1(0xd0)]()&&(_0x5e7b2f[_0x1591d1(0xd1)](_0x530f8d),_0x4ffc57[_0x530f8d]='ci');}}const _0x40dd55=await _0xb061f3['yauHa'](readdir,_0x512fb1);for(const _0x33d130 of _0x40dd55){if(NON_ENV_DIRS[_0x1591d1(0xd6)](_0x33d130))continue;if(_0x33d130[_0x1591d1(0xd9)]('.'))continue;if(_0x33d130['endsWith']('.txt'))continue;const _0x2de4fa=_0xb061f3['yxMtV'](join,_0x512fb1,_0x33d130),_0x466129=await stat(_0x2de4fa);_0x466129[_0x1591d1(0xd0)]()&&existsSync(_0xb061f3['bHvtn'](join,_0x2de4fa,_0x1591d1(0xd5)))&&(!_0x5e7b2f['includes'](_0x33d130)&&(_0x5e7b2f['push'](_0x33d130),_0x4ffc57[_0x33d130]=_0xb061f3[_0x1591d1(0xc3)]));}return{'envNames':_0x5e7b2f,'activeEnv':_0x522d8a,'envTypes':_0x4ffc57};}export async function envList(){const _0xa7c67a=_0xa40a8f,_0x42fa22={'VqATu':_0xa7c67a(0xc9),'zIkZP':function(_0x14601a,_0x101e47){return _0x14601a===_0x101e47;},'WXBeI':function(_0x42cb81,_0x437a85){return _0x42cb81(_0x437a85);},'IXXoI':_0xa7c67a(0xce)},{envNames:_0x96c1a7,activeEnv:_0x5f28a6,envTypes:_0x34f1ab}=await getEnvNames();if(_0x96c1a7[_0xa7c67a(0xde)]===0x0){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x42fa22['VqATu']);return;}console['log'](_0xa7c67a(0xd3));for(const _0x1cdb03 of _0x96c1a7[_0xa7c67a(0xd8)]()){const _0x20e044=_0x42fa22['zIkZP'](_0x1cdb03,_0x5f28a6),_0x36edd9=_0x34f1ab[_0x1cdb03]||'local',_0x238712=await _0x42fa22[_0xa7c67a(0xc7)](loadSettings,_0x1cdb03),_0x1478e5=_0x42fa22[_0xa7c67a(0xcd)](_0x36edd9,_0x42fa22[_0xa7c67a(0xc4)])?'':'\x20['+_0x36edd9+']';console[_0xa7c67a(0xc5)]('\x20\x20'+(_0x20e044?'*\x20':'\x20\x20')+_0x1cdb03+_0x1478e5),_0x238712['baseUrl']&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x238712['baseUrl']),_0x238712['environmentDetails']&&console[_0xa7c67a(0xc5)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x238712['environmentDetails']);}_0x5f28a6&&console['log'](_0xa7c67a(0xc6));}
1
+ function _0xa8b0(){const _0x19fdfc=['9GvEysL','includes','length','baseUrl','AlsZz','sessions','bug-bashes','1939NOAeVL','FIQzl','56518NKPnYU','21832wOIVwc','1172910EBSWjg','push','kukWp','settings.json','1859270tsvDMD','2199356yJSnIG','log','legacy','vWpmg','\x0aNo\x20profiles\x20found.','6GJlYFk','1807210nYHXDI','isDirectory','\x20\x20\x20\x20\x20\x20Details:\x20','environmentDetails','ZMuao','reports','.txt','4860XcpoiM','3kGTRxW','283848cOUeiy','VqQcs','local','qAxwU'];_0xa8b0=function(){return _0x19fdfc;};return _0xa8b0();}const _0x517e83=_0x3950;(function(_0x219844,_0x5521d2){const _0x43d9bb=_0x3950,_0x14cedc=_0x219844();while(!![]){try{const _0x1e308e=parseInt(_0x43d9bb(0x13b))/0x1+parseInt(_0x43d9bb(0x155))/0x2+parseInt(_0x43d9bb(0x13a))/0x3*(parseInt(_0x43d9bb(0x14f))/0x4)+parseInt(_0x43d9bb(0x14e))/0x5*(parseInt(_0x43d9bb(0x154))/0x6)+-parseInt(_0x43d9bb(0x146))/0x7*(-parseInt(_0x43d9bb(0x149))/0x8)+-parseInt(_0x43d9bb(0x13f))/0x9*(parseInt(_0x43d9bb(0x14a))/0xa)+parseInt(_0x43d9bb(0x148))/0xb*(-parseInt(_0x43d9bb(0x139))/0xc);if(_0x1e308e===_0x5521d2)break;else _0x14cedc['push'](_0x14cedc['shift']());}catch(_0x16b35b){_0x14cedc['push'](_0x14cedc['shift']());}}}(_0xa8b0,0xa2d12));function _0x3950(_0x4bfca8,_0x3b552a){_0x4bfca8=_0x4bfca8-0x135;const _0xa8b01c=_0xa8b0();let _0x395077=_0xa8b01c[_0x4bfca8];return _0x395077;}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x517e83(0x144),_0x517e83(0x145),_0x517e83(0x137),'local','ci'];export async function getEnvNames(){const _0x2dc426=_0x517e83,_0x17e744={'PaDBX':function(_0x57772e){return _0x57772e();},'SNbgd':function(_0x2c85fd,_0xbadde3){return _0x2c85fd(_0xbadde3);},'ZMuao':_0x2dc426(0x13d),'kukWp':function(_0x12ca3e,_0x41f9e8){return _0x12ca3e(_0x41f9e8);},'CeTXo':function(_0x5179f1,_0x5a5501,_0xc2b4fb){return _0x5179f1(_0x5a5501,_0xc2b4fb);},'FIQzl':function(_0x4b6736,_0xb82300){return _0x4b6736(_0xb82300);},'AlsZz':function(_0x590d32,_0x37779b){return _0x590d32(_0x37779b);},'yOUjw':_0x2dc426(0x14d)},_0x39c112=_0x17e744['PaDBX'](getRangerDir);if(!_0x17e744['SNbgd'](existsSync,_0x39c112))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x3d176c=await readActiveProfileName(),_0x2064f2=[],_0x2ab3bb={},_0x17bfd2=join(_0x39c112,_0x17e744[_0x2dc426(0x136)]);if(existsSync(_0x17bfd2)){const _0x5f09e2=await _0x17e744[_0x2dc426(0x14c)](readdir,_0x17bfd2);for(const _0x38b716 of _0x5f09e2){const _0x175690=join(_0x17bfd2,_0x38b716),_0x95a56d=await stat(_0x175690);_0x95a56d['isDirectory']()&&(_0x2064f2[_0x2dc426(0x14b)](_0x38b716),_0x2ab3bb[_0x38b716]=_0x2dc426(0x13d));}}const _0x5985bb=_0x17e744['CeTXo'](join,_0x39c112,'ci');if(existsSync(_0x5985bb)){const _0x2c0ad8=await readdir(_0x5985bb);for(const _0x4bee6e of _0x2c0ad8){const _0x7da4a3=join(_0x5985bb,_0x4bee6e),_0x5f0810=await _0x17e744[_0x2dc426(0x147)](stat,_0x7da4a3);_0x5f0810['isDirectory']()&&(_0x2064f2['push'](_0x4bee6e),_0x2ab3bb[_0x4bee6e]='ci');}}const _0x59efee=await readdir(_0x39c112);for(const _0x96578e of _0x59efee){if(NON_ENV_DIRS[_0x2dc426(0x140)](_0x96578e))continue;if(_0x96578e['startsWith']('.'))continue;if(_0x96578e['endsWith'](_0x2dc426(0x138)))continue;const _0xa3b9c9=join(_0x39c112,_0x96578e),_0x2ddb93=await _0x17e744[_0x2dc426(0x143)](stat,_0xa3b9c9);_0x2ddb93[_0x2dc426(0x156)]()&&existsSync(_0x17e744['CeTXo'](join,_0xa3b9c9,_0x17e744['yOUjw']))&&(!_0x2064f2['includes'](_0x96578e)&&(_0x2064f2[_0x2dc426(0x14b)](_0x96578e),_0x2ab3bb[_0x96578e]=_0x2dc426(0x151)));}return{'envNames':_0x2064f2,'activeEnv':_0x3d176c,'envTypes':_0x2ab3bb};}export async function envList(){const _0x3fa07e=_0x517e83,_0xbe418e={'LkRyY':function(_0x42cad1){return _0x42cad1();},'qAxwU':function(_0xffbcc,_0x5ca558){return _0xffbcc===_0x5ca558;},'VqQcs':_0x3fa07e(0x153),'mirCm':function(_0x26215c,_0x890221){return _0x26215c(_0x890221);},'vWpmg':_0x3fa07e(0x151)},{envNames:_0x474493,activeEnv:_0x50aa1a,envTypes:_0x49f1b5}=await _0xbe418e['LkRyY'](getEnvNames);if(_0xbe418e[_0x3fa07e(0x13e)](_0x474493[_0x3fa07e(0x141)],0x0)){console[_0x3fa07e(0x150)](_0xbe418e[_0x3fa07e(0x13c)]),console[_0x3fa07e(0x150)]('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console['log']('\x0aProfiles:');for(const _0x1b2bef of _0x474493['sort']()){const _0x2f40c7=_0x1b2bef===_0x50aa1a,_0x1f360e=_0x49f1b5[_0x1b2bef]||_0x3fa07e(0x13d),_0x88e635=await _0xbe418e['mirCm'](loadSettings,_0x1b2bef),_0x4f751a=_0x1f360e===_0xbe418e[_0x3fa07e(0x152)]?'':'\x20['+_0x1f360e+']';console['log']('\x20\x20'+(_0x2f40c7?'*\x20':'\x20\x20')+_0x1b2bef+_0x4f751a),_0x88e635[_0x3fa07e(0x142)]&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x88e635['baseUrl']),_0x88e635['environmentDetails']&&console['log'](_0x3fa07e(0x157)+_0x88e635[_0x3fa07e(0x135)]);}_0x50aa1a&&console[_0x3fa07e(0x150)]('\x0a*\x20=\x20active\x20profile');}
@@ -1 +1 @@
1
- const _0x1f47f2=_0x3ee2;(function(_0xad3983,_0x1aab56){const _0x1e9d57=_0x3ee2,_0x2d5350=_0xad3983();while(!![]){try{const _0x315755=-parseInt(_0x1e9d57(0x196))/0x1*(-parseInt(_0x1e9d57(0x146))/0x2)+parseInt(_0x1e9d57(0x1b9))/0x3+parseInt(_0x1e9d57(0x155))/0x4*(parseInt(_0x1e9d57(0x1bc))/0x5)+parseInt(_0x1e9d57(0x129))/0x6+parseInt(_0x1e9d57(0x15e))/0x7*(-parseInt(_0x1e9d57(0x151))/0x8)+-parseInt(_0x1e9d57(0x11e))/0x9+-parseInt(_0x1e9d57(0x159))/0xa*(-parseInt(_0x1e9d57(0x19c))/0xb);if(_0x315755===_0x1aab56)break;else _0x2d5350['push'](_0x2d5350['shift']());}catch(_0x532ce4){_0x2d5350['push'](_0x2d5350['shift']());}}}(_0x30e4,0xdba51));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x124359 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE=_0x1f47f2(0x194),bold=_0x5816b3=>'\x1b[1m'+_0x5816b3+_0x1f47f2(0x16d);function getGitRepoUrl(){const _0x29a5f8=_0x1f47f2,_0x2105e8={'zFbIx':'pipe','SYchw':'github.com/'};try{const _0x5157b4=execSync(_0x29a5f8(0x14a),{'encoding':'utf-8','stdio':[_0x2105e8['zFbIx'],'pipe',_0x29a5f8(0x123)]})[_0x29a5f8(0x1b6)]();return _0x5157b4[_0x29a5f8(0x128)](/\.git$/,'')[_0x29a5f8(0x128)](/^git@github\.com:/,_0x2105e8['SYchw'])[_0x29a5f8(0x128)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x267660=_0x1f47f2,_0xfcbecf={'WEviS':function(_0x37aa40,_0x59394a,_0x3be4e4){return _0x37aa40(_0x59394a,_0x3be4e4);},'mbtxX':_0x267660(0x13f),'QkrEg':'utf-8','cVdIw':'pipe'};try{return _0xfcbecf['WEviS'](execSync,_0xfcbecf[_0x267660(0x195)],{'encoding':_0xfcbecf[_0x267660(0x157)],'stdio':[_0x267660(0x123),'pipe',_0xfcbecf[_0x267660(0xff)]]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2ef994=_0x1f47f2,_0x45609a={'hazrP':function(_0x31c2bc,_0x2a66fc,_0x422cca){return _0x31c2bc(_0x2a66fc,_0x422cca);},'IjSCr':'utf-8'},_0x4fea00=_0x45609a['hazrP'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4fea00))return null;try{const _0x8e315c=await readFile(_0x4fea00,_0x45609a[_0x2ef994(0x163)]);return _0x8e315c['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x2491bc){const _0x30e2ef=_0x1f47f2,_0x1dea1a={'pQBXC':function(_0x322643,_0x3b2af6){return _0x322643(_0x3b2af6);},'EognC':function(_0x4de311,_0x311580,_0x5c4748){return _0x4de311(_0x311580,_0x5c4748);},'QQLtF':'utf-8'},_0x355eb6=getRangerDir(),_0x1fc3df=join(_0x355eb6,ACTIVE_FEATURE_FILE);!_0x1dea1a['pQBXC'](existsSync,_0x355eb6)&&await _0x1dea1a[_0x30e2ef(0x142)](mkdir,_0x355eb6,{'recursive':!![]}),await writeFile(_0x1fc3df,_0x2491bc,_0x1dea1a['QQLtF']);}function getProgressDisplay(_0x12062e){const _0x3e4737=_0x1f47f2,_0x17651e={'aurND':function(_0xc6cecc,_0x2930c6){return _0xc6cecc+_0x2930c6;},'YbhbX':function(_0xf3506c,_0x470f75){return _0xf3506c+_0x470f75;},'RXrfX':function(_0x176756,_0x1ee5e9){return _0x176756===_0x1ee5e9;},'PnBru':function(_0x47aa50,_0x4a33b6){return _0x47aa50*_0x4a33b6;},'RSHWo':function(_0x3ee630,_0x30b6d1){return _0x3ee630-_0x30b6d1;},'HmgFS':function(_0x318baa,_0x1ce39d){return _0x318baa>_0x1ce39d;},'XpOJq':function(_0x15b67d,_0x2a10c9){return _0x15b67d>_0x2a10c9;}},_0x2b4857=_0x12062e[_0x3e4737(0x12b)]||0x0,_0x3b70ab=_0x12062e['verificationInProgressItems']||0x0,_0x1f8e67=_0x12062e['blockedItems']||0x0,_0x2f6139=_0x12062e['incompleteItems']||0x0,_0x448e0f=_0x12062e[_0x3e4737(0x119)]||0x0,_0xe7c78c=_0x17651e['aurND'](_0x17651e[_0x3e4737(0x126)](_0x2b4857+_0x3b70ab,_0x1f8e67),_0x2f6139)+_0x448e0f;if(_0x17651e[_0x3e4737(0x1c1)](_0xe7c78c,0x0))return'-';const _0x206eff=0xa,_0x504837=Math[_0x3e4737(0x185)](_0x17651e[_0x3e4737(0x121)](_0x2b4857/_0xe7c78c,_0x206eff)),_0x2f7bda='█'[_0x3e4737(0x15c)](_0x504837)+'░'[_0x3e4737(0x15c)](_0x17651e['RSHWo'](_0x206eff,_0x504837)),_0x307117=[];if(_0x1f8e67>0x0)_0x307117[_0x3e4737(0x130)](_0x1f8e67+_0x3e4737(0x117));if(_0x17651e[_0x3e4737(0x145)](_0x2f6139,0x0))_0x307117[_0x3e4737(0x130)](_0x2f6139+_0x3e4737(0x18b));if(_0x3b70ab>0x0)_0x307117[_0x3e4737(0x130)](_0x3b70ab+'\x20in\x20progress');const _0x112cb4=_0x17651e[_0x3e4737(0x178)](_0x307117['length'],0x0)?'\x20('+_0x307117['join'](',\x20')+')':'';return _0x2f7bda+'\x20'+_0x2b4857+'/'+_0xe7c78c+'\x20verified'+_0x112cb4;}function getCurrentSessionItems(_0x1022c9,_0x4b1d96){const _0x2a5dfc=_0x1f47f2;if(!_0x1022c9[_0x2a5dfc(0x198)])return _0x4b1d96[_0x2a5dfc(0x104)](_0x115aaf=>!_0x115aaf['sessionId'])['sort']((_0x1d606f,_0x5662ea)=>_0x1d606f['position']-_0x5662ea['position']);return _0x4b1d96['filter'](_0x294356=>_0x294356[_0x2a5dfc(0x109)]===_0x1022c9['currentSessionId']||!_0x294356['sessionId'])['sort']((_0xa93648,_0x101aea)=>_0xa93648['position']-_0x101aea[_0x2a5dfc(0x120)]);}function displayFeature(_0x3cfec2,_0x37203e){const _0x52c12d=_0x1f47f2,_0x3e01a0={'msffk':function(_0x15e009,_0x9210e8){return _0x15e009(_0x9210e8);},'raaFh':function(_0x1fbfb2,_0xc0a0ac){return _0x1fbfb2>_0xc0a0ac;},'ZtEQO':function(_0x3d0ee6,_0x36ff51){return _0x3d0ee6===_0x36ff51;},'yHnGL':'closed','ExhsR':'verified','MaCzx':function(_0x452607,_0xd62a17){return _0x452607===_0xd62a17;},'GqIED':_0x52c12d(0xfd),'GZTeq':function(_0x22a791,_0x2a6925){return _0x22a791===_0x2a6925;},'nUgxq':'blocked','dWhKB':function(_0x2b0cbc,_0x20ebc0){return _0x2b0cbc!==_0x20ebc0;},'SHVwJ':function(_0x117696,_0x35649d){return _0x117696!==_0x35649d;},'CBrSY':function(_0x393cbc,_0xb9d773){return _0x393cbc+_0xb9d773;},'LPbEx':function(_0x371359,_0x521354){return _0x371359===_0x521354;}};console['log']('\x0a'+_0x3cfec2[_0x52c12d(0x191)]+'\x20('+_0x3cfec2[_0x52c12d(0x134)]+')');_0x3cfec2['stats']&&console[_0x52c12d(0x11c)]('\x20\x20\x20Progress:\x20'+_0x3e01a0[_0x52c12d(0x14f)](getProgressDisplay,_0x3cfec2[_0x52c12d(0x160)]));_0x3cfec2['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x3cfec2['description']);_0x3cfec2['gitRepoUrl']&&console[_0x52c12d(0x11c)]('\x20\x20\x20Repository:\x20'+_0x3cfec2['gitRepoUrl']);_0x3cfec2['gitBranch']&&console[_0x52c12d(0x11c)](_0x52c12d(0x167)+_0x3cfec2[_0x52c12d(0x13c)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3cfec2[_0x52c12d(0x132)])[_0x52c12d(0xfe)]());_0x3cfec2[_0x52c12d(0x168)]&&console[_0x52c12d(0x11c)](_0x52c12d(0x1a7)+new Date(_0x3cfec2['completedAt'])['toLocaleString']());if(_0x37203e&&_0x3e01a0[_0x52c12d(0x189)](_0x37203e[_0x52c12d(0x1a0)],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x391efc=0x0;_0x391efc<_0x37203e['length'];_0x391efc++){const _0x18cc93=_0x37203e[_0x391efc];let _0x3438d3;if(_0x3e01a0[_0x52c12d(0x105)](_0x18cc93['status'],_0x3e01a0['yHnGL'])&&_0x18cc93['terminalReason']===_0x52c12d(0x1ad))_0x3438d3='✅';else{if(_0x18cc93[_0x52c12d(0x169)]===_0x3e01a0[_0x52c12d(0x125)])_0x3438d3='🟢';else{if(_0x3e01a0['MaCzx'](_0x18cc93['status'],_0x3e01a0['GqIED']))_0x3438d3='🟠';else{if(_0x3e01a0['GZTeq'](_0x18cc93['status'],_0x3e01a0[_0x52c12d(0x1bf)]))_0x3438d3='🛑';else{if(_0x18cc93['status']===_0x52c12d(0x153))_0x3438d3='⛔';else _0x3e01a0['GZTeq'](_0x18cc93['status'],_0x52c12d(0x148))?_0x3438d3='⏳':_0x3438d3='⬜';}}}}const _0x4d8143=_0x3e01a0['raaFh'](_0x18cc93['version'],0x1)?'\x20(v'+_0x18cc93['version']+')':'',_0x7ad377=_0x3e01a0[_0x52c12d(0x189)](_0x18cc93['version'],0x1)&&_0x18cc93['parentItemId']&&_0x3e01a0['dWhKB'](_0x18cc93['status'],_0x3e01a0['yHnGL'])&&_0x3e01a0['SHVwJ'](_0x18cc93[_0x52c12d(0x169)],_0x3e01a0['ExhsR'])?_0x52c12d(0x12f):'';console[_0x52c12d(0x11c)]('\x20\x20\x20'+_0x3e01a0[_0x52c12d(0x17a)](_0x391efc,0x1)+'.\x20'+_0x3438d3+'\x20'+_0x18cc93[_0x52c12d(0x124)]+_0x4d8143+_0x7ad377);_0x18cc93['status']===_0x52c12d(0x13e)&&_0x18cc93['blockedReason']&&console['log'](_0x52c12d(0x115)+_0x18cc93[_0x52c12d(0x1a6)]);_0x3e01a0[_0x52c12d(0x105)](_0x18cc93[_0x52c12d(0x169)],_0x52c12d(0xfd))&&_0x18cc93[_0x52c12d(0x17b)]&&console[_0x52c12d(0x11c)](_0x52c12d(0x13d)+_0x18cc93[_0x52c12d(0x17b)]);if(_0x3e01a0[_0x52c12d(0x114)](_0x18cc93[_0x52c12d(0x169)],'closed')&&_0x18cc93['terminalReason']===_0x52c12d(0x1ad))console['log'](_0x52c12d(0x197));else _0x18cc93['status']==='closed'&&_0x18cc93['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x18cc93[_0x52c12d(0x137)]);}}}export async function featureCreate(_0x5f2afc,_0x4f44ba){const _0x3bde65=_0x1f47f2,_0x48efa8={'vIcED':function(_0x51b142){return _0x51b142();},'mTfAu':function(_0x2115dd){return _0x2115dd();},'oxzXc':function(_0x4a56ff,_0x22c6df){return _0x4a56ff(_0x22c6df);}},{envNames:_0x29d792}=await getEnvNames();_0x29d792[_0x3bde65(0x1a0)]===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x207fa3=>bold(_0x207fa3)));const _0x10375e=_0x4f44ba[_0x3bde65(0x141)]?_0x4f44ba['scenarios']['map'](_0x281100=>_0x281100[_0x3bde65(0x1b6)]()):[],_0x4ae6e2=_0x48efa8['vIcED'](getGitRepoUrl),_0x5ca54d=_0x48efa8[_0x3bde65(0x1b3)](getGitBranch);console['log']('\x0aCreating\x20feature\x20review...');const _0x12e18a=await _0x48efa8[_0x3bde65(0x181)](createFeature,{'name':_0x5f2afc,'description':_0x4f44ba[_0x3bde65(0x124)],'checklist':_0x10375e,'gitRepoUrl':_0x4ae6e2,'gitBranch':_0x5ca54d});await setActiveFeatureId(_0x12e18a['id']),await tryStartCurrentSession(_0x12e18a['id']);const _0xf27142=process['env']['CLAUDE_SESSION_ID'];_0xf27142&&registerSession(_0xf27142,_0x12e18a['id']),console[_0x3bde65(0x11c)](_0x3bde65(0x10f)+_0x12e18a['id']),displayFeature(_0x12e18a,_0x12e18a[_0x3bde65(0x16f)]),console[_0x3bde65(0x11c)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x5cdc5c){const _0x379129=_0x1f47f2,_0x488a24={'iNYaZ':function(_0x35140b){return _0x35140b();},'aBUSi':function(_0x5e508a,_0x28b723){return _0x5e508a(_0x28b723);},'FORbq':'\x0aNo\x20feature\x20reviews\x20found.','lmeYf':function(_0x493903,_0x2d495e){return _0x493903>_0x2d495e;},'ExnAr':function(_0x5294c8,_0xe72f6){return _0x5294c8!==_0xe72f6;},'EwlMr':_0x379129(0x1ae)},_0x29bf01={'limit':_0x5cdc5c['limit']??0xa,'offset':_0x5cdc5c['offset']??0x0,'includeDeleted':_0x5cdc5c['includeDeleted']};_0x5cdc5c['currentBranch']&&(_0x29bf01['gitRepoUrl']=getGitRepoUrl(),_0x29bf01[_0x379129(0x13c)]=_0x488a24[_0x379129(0x102)](getGitBranch));const _0xd01f62=await _0x488a24[_0x379129(0x1a2)](listFeatures,_0x29bf01);if(_0xd01f62[_0x379129(0x1bd)][_0x379129(0x1a0)]===0x0){console[_0x379129(0x11c)](_0x488a24[_0x379129(0x1a9)]);return;}const _0x57fbab=_0x488a24[_0x379129(0x150)](_0xd01f62[_0x379129(0x17c)],_0xd01f62[_0x379129(0x1bd)][_0x379129(0x1a0)])?'Showing\x20'+_0xd01f62[_0x379129(0x1bd)]['length']+'\x20of\x20'+_0xd01f62['totalCount']:_0xd01f62[_0x379129(0x17c)]+_0x379129(0x18a);console[_0x379129(0x11c)]('\x0a'+_0x57fbab+':\x0a');for(const _0x3247e2 of _0xd01f62[_0x379129(0x1bd)]){console[_0x379129(0x11c)](''+_0x3247e2[_0x379129(0x191)]),console['log'](_0x379129(0x184)+_0x3247e2['id']),_0x3247e2[_0x379129(0x160)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3247e2['stats'])),_0x3247e2[_0x379129(0x13c)]&&console[_0x379129(0x11c)](_0x379129(0x167)+_0x3247e2['gitBranch']),console['log'](_0x379129(0x10a)+new Date(_0x3247e2[_0x379129(0x132)])['toLocaleDateString']()),console['log']('');}const _0x74f188=_0x29bf01['limit']??0xa,_0x147fc2=(_0x29bf01[_0x379129(0x143)]??0x0)+_0xd01f62['items'][_0x379129(0x1a0)];if(_0x147fc2<_0xd01f62[_0x379129(0x17c)]){const _0x8793=_0x488a24[_0x379129(0x170)](_0x74f188,0xa)?'\x20--limit\x20'+_0x74f188:'',_0x1a387e=_0x5cdc5c[_0x379129(0x17e)]?_0x488a24['EwlMr']:'',_0x135a33=_0x5cdc5c[_0x379129(0x11b)]?'\x20--include-deleted':'';console[_0x379129(0x11c)](_0x379129(0x15a)+_0x147fc2+_0x8793+_0x1a387e+_0x135a33);}}function _0x3ee2(_0x53f851,_0x5bd614){_0x53f851=_0x53f851-0xfc;const _0x30e4f3=_0x30e4();let _0x3ee2e7=_0x30e4f3[_0x53f851];return _0x3ee2e7;}export async function featureShow(_0x4b7bfe){const _0xaec392=_0x1f47f2,_0x162c46={'SyNuk':function(_0x1868ca){return _0x1868ca();},'qIpjo':_0xaec392(0x179),'dAgNN':function(_0x536eb7,_0x37ad30){return _0x536eb7(_0x37ad30);},'TSRoe':function(_0x3d5cc6,_0x2984ce,_0x343b5f){return _0x3d5cc6(_0x2984ce,_0x343b5f);}},_0x203aba=_0x4b7bfe||await _0x162c46['SyNuk'](getActiveFeatureId);if(!_0x203aba)throw new Error(_0x162c46['qIpjo']);const _0x1842e1=await _0x162c46['dAgNN'](getFeature,_0x203aba);_0x162c46['TSRoe'](displayFeature,_0x1842e1,_0x1842e1[_0xaec392(0x16f)]);}export async function featureResume(_0x2542c8){const _0x5b4d37=_0x1f47f2,_0x40e9dc={'mdgcV':function(_0x262938,_0x10d269){return _0x262938(_0x10d269);},'WwwOV':function(_0x40c574,_0x5454f0){return _0x40c574!==_0x5454f0;},'BhrPt':function(_0xb07598,_0x2d9daa,_0x454cfe){return _0xb07598(_0x2d9daa,_0x454cfe);},'tSHrI':function(_0x51d7c0,_0x320450){return _0x51d7c0&&_0x320450;},'KHrFs':_0x5b4d37(0x10b),'SKIks':'any','ohahS':function(_0x3b1c11,_0x576177){return _0x3b1c11===_0x576177;},'dTlTn':_0x5b4d37(0x15b),'IvAMv':_0x5b4d37(0x177),'gscFv':function(_0x58236c,_0x3fac38){return _0x58236c(_0x3fac38);},'pKEdV':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','WsvCp':'list','UeXCb':function(_0x19d17a,_0x5901e6){return _0x19d17a(_0x5901e6);}};if(_0x2542c8){const _0xe46071=await getFeature(_0x2542c8);await _0x40e9dc['mdgcV'](setActiveFeatureId,_0xe46071['id']);const _0x524840=getGitBranch();_0x524840&&_0x40e9dc['WwwOV'](_0x524840,_0xe46071[_0x5b4d37(0x13c)])&&(await _0x40e9dc['BhrPt'](updateFeature,_0xe46071['id'],{'gitBranch':_0x524840}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x524840));console['log'](_0x5b4d37(0x18e)+_0xe46071[_0x5b4d37(0x191)]+'\x20('+_0xe46071['id']+')'),await _0x40e9dc[_0x5b4d37(0x175)](tryStartCurrentSession,_0xe46071['id']);const _0x4e2fda=process[_0x5b4d37(0x15f)]['CLAUDE_SESSION_ID'];_0x4e2fda&&registerSession(_0x4e2fda,_0xe46071['id']);_0x40e9dc[_0x5b4d37(0x158)](displayFeature,_0xe46071,_0xe46071['checklistItems']),await _0x40e9dc[_0x5b4d37(0x175)](printFeedbackNudge,_0xe46071['id']);return;}const _0xee4d5=getGitRepoUrl(),_0x592ff7=getGitBranch();if(_0x40e9dc[_0x5b4d37(0x188)](!_0xee4d5,!_0x592ff7))throw new Error(_0x40e9dc[_0x5b4d37(0x1a3)]);console['log'](_0x5b4d37(0x152)+(_0xee4d5||_0x40e9dc['SKIks'])+'\x20/\x20'+(_0x592ff7||_0x5b4d37(0x1be))+'...');const _0x2a6714=await _0x40e9dc['mdgcV'](listFeatures,{'gitRepoUrl':_0xee4d5,'gitBranch':_0x592ff7}),_0x2c4ff6=_0x2a6714[_0x5b4d37(0x1bd)]['filter'](_0x311118=>!_0x311118['completedAt']);if(_0x40e9dc['ohahS'](_0x2c4ff6[_0x5b4d37(0x1a0)],0x0)){console[_0x5b4d37(0x11c)](_0x40e9dc['dTlTn']),console[_0x5b4d37(0x11c)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x4ab623;if(_0x2c4ff6['length']===0x1)_0x4ab623=_0x2c4ff6[0x0];else{const _0x1077f3=process[_0x5b4d37(0x14c)][_0x5b4d37(0x10d)]&&process['stdout']['isTTY'];if(!_0x1077f3){console[_0x5b4d37(0x11c)](_0x40e9dc[_0x5b4d37(0x106)]);for(const _0x97502e of _0x2c4ff6){console[_0x5b4d37(0x11c)]('\x20\x20'+_0x97502e['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x97502e['id']),_0x97502e['stats']&&console['log'](_0x5b4d37(0x10e)+_0x40e9dc[_0x5b4d37(0x1ba)](getProgressDisplay,_0x97502e[_0x5b4d37(0x160)])),_0x97502e[_0x5b4d37(0x13c)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x97502e['gitBranch']);}throw new Error(_0x40e9dc[_0x5b4d37(0x190)]);}const {selected:_0x29ff14}=await _0x124359['prompt']([{'type':_0x40e9dc['WsvCp'],'name':'selected','message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x2c4ff6[_0x5b4d37(0x12d)](_0xa7f941=>({'name':_0xa7f941['name']+'\x20('+_0xa7f941['id']+')','value':_0xa7f941['id']}))}]);_0x4ab623=_0x2c4ff6[_0x5b4d37(0x16a)](_0x47da3c=>_0x47da3c['id']===_0x29ff14);}await setActiveFeatureId(_0x4ab623['id']);_0x592ff7&&_0x40e9dc['WwwOV'](_0x592ff7,_0x4ab623[_0x5b4d37(0x13c)])&&(await updateFeature(_0x4ab623['id'],{'gitBranch':_0x592ff7}),console['log'](_0x5b4d37(0x14d)+_0x592ff7));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4ab623['name']+'\x20('+_0x4ab623['id']+')'),await _0x40e9dc[_0x5b4d37(0x175)](tryStartCurrentSession,_0x4ab623['id']);const _0x560375=await _0x40e9dc[_0x5b4d37(0x164)](getFeature,_0x4ab623['id']),_0x846bb6=process['env']['CLAUDE_SESSION_ID'];_0x846bb6&&registerSession(_0x846bb6,_0x560375['id']),displayFeature(_0x560375,_0x560375['checklistItems']),await _0x40e9dc[_0x5b4d37(0x175)](printFeedbackNudge,_0x560375['id']);}async function printFeedbackNudge(_0x1c1b57){const _0x577d28=_0x1f47f2,_0x5513f2={'tHXEZ':function(_0xb2d9ca,_0x2a5ec4,_0x3c2024){return _0xb2d9ca(_0x2a5ec4,_0x3c2024);},'YLqdV':function(_0x54ff45,_0x3ef93a){return _0x54ff45>_0x3ef93a;}};try{const {items:_0x32cbf9}=await getActionItems(_0x1c1b57);let _0x5536b2=0x0,_0x47d7e4=0x0;for(const _0x3977fb of _0x32cbf9){const _0x51eb0e=await _0x5513f2['tHXEZ'](getItemFeedback,_0x1c1b57,_0x3977fb['id']);_0x51eb0e[_0x577d28(0x1b8)][_0x577d28(0x1a0)]>0x0&&(_0x5536b2+=_0x51eb0e['unaddressedComments'][_0x577d28(0x1a0)],_0x47d7e4++);}_0x5513f2[_0x577d28(0x12c)](_0x5536b2,0x0)&&(console['log'](_0x577d28(0x1ab)+_0x5536b2+_0x577d28(0x11d)+_0x47d7e4+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x13231f){const _0x534f25=_0x1f47f2;try{const {sessions:_0x2ab4ab}=await listFeatureSessions(_0x13231f),_0xfc1de1=_0x2ab4ab[_0x534f25(0x16a)](_0x4f39f0=>_0x4f39f0['status']==='ready');_0xfc1de1&&(await startSession(_0x13231f,_0xfc1de1['id']),console[_0x534f25(0x11c)](_0x534f25(0x101)+_0xfc1de1['iteration']));}catch{}}export async function featureReport(_0x362616,_0x54445b){const _0xebd1bf=_0x1f47f2,_0x184979={'AJDhr':_0xebd1bf(0x15d),'fRGBM':function(_0x4816b3,_0x4d90e7,_0x161b84){return _0x4816b3(_0x4d90e7,_0x161b84);},'yJdkN':function(_0xc2b0f3,_0x553c0e,_0x11aff2,_0x210c5){return _0xc2b0f3(_0x553c0e,_0x11aff2,_0x210c5);},'yeblg':function(_0x193ed7){return _0x193ed7();},'TOehz':'reports','OdRCQ':function(_0x462645,_0x4c60fb){return _0x462645(_0x4c60fb);}},_0x86da38=_0x362616||await getActiveFeatureId();if(!_0x86da38)throw new Error(_0xebd1bf(0xfc));console[_0xebd1bf(0x11c)](_0x184979['AJDhr']);const _0x34baea=await _0x184979['fRGBM'](getFeatureReportMarkdown,_0x86da38,{'style':_0x54445b[_0xebd1bf(0x1b2)]}),_0x120f8f=_0x54445b['output']||_0x184979[_0xebd1bf(0x1c2)](join,_0x184979['yeblg'](getRangerDir),_0x184979[_0xebd1bf(0x1a8)],_0x86da38+_0xebd1bf(0x1ac)),_0x478d3b=_0x184979['fRGBM'](join,_0x120f8f,'..');!_0x184979[_0xebd1bf(0x182)](existsSync,_0x478d3b)&&await mkdir(_0x478d3b,{'recursive':!![]}),await _0x184979[_0xebd1bf(0x1c2)](writeFile,_0x120f8f,_0x34baea,'utf-8'),console['log'](_0xebd1bf(0x17f)+_0x120f8f);}export async function featureReportPrDescription(_0x17458b,_0x3807bc){const _0x4cca90=_0x1f47f2,_0x1bc54e={'sbYrW':function(_0x50334c,_0xe1fa12){return _0x50334c(_0xe1fa12);},'HwhVi':function(_0x4c163d,_0x589f55){return _0x4c163d===_0x589f55;},'BvYDb':_0x4cca90(0x1a1),'FxuRx':_0x4cca90(0x14b),'BbUDK':function(_0x4b76e7,_0x261fb0){return _0x4b76e7+_0x261fb0;},'OXaXD':function(_0x56e715,_0xbbc18c,_0x8ca905){return _0x56e715(_0xbbc18c,_0x8ca905);}},_0x190348=_0x17458b||await getActiveFeatureId();if(!_0x190348)throw new Error(_0x4cca90(0xfc));const _0x1cfee3=await _0x1bc54e['sbYrW'](getFeature,_0x190348),_0x427b5c=_0x1cfee3[_0x4cca90(0x16f)]||[],_0x49b69c=getCurrentSessionItems(_0x1cfee3,_0x427b5c);_0x1bc54e['HwhVi'](_0x49b69c[_0x4cca90(0x1a0)],0x0)&&(console['error'](_0x1bc54e[_0x4cca90(0x172)]),process[_0x4cca90(0x12a)](0x1));const _0x2229e1=_0x3807bc[_0x4cca90(0x13a)]??[],_0x58b516=_0x2229e1[_0x4cca90(0x104)](_0x3bc1d3=>!Number['isInteger'](_0x3bc1d3)||_0x3bc1d3<0x1||_0x3bc1d3>_0x49b69c[_0x4cca90(0x1a0)]);if(_0x58b516['length']>0x0){console['error'](_0x4cca90(0x16b)+_0x58b516[_0x4cca90(0x187)](',\x20')),console[_0x4cca90(0x11c)](_0x1bc54e[_0x4cca90(0x11a)]);for(let _0x35f0e7=0x0;_0x35f0e7<_0x49b69c[_0x4cca90(0x1a0)];_0x35f0e7++){console['log']('\x20\x20'+_0x1bc54e['BbUDK'](_0x35f0e7,0x1)+'.\x20'+_0x49b69c[_0x35f0e7]['description']);}process['exit'](0x1);}const _0x2f05b0=new Set(_0x2229e1[_0x4cca90(0x12d)](_0x373591=>_0x373591-0x1)),_0x29d276=_0x49b69c['filter']((_0x51709d,_0x3e6890)=>!_0x2f05b0['has'](_0x3e6890));_0x29d276['length']===0x0&&(console[_0x4cca90(0x18f)](_0x4cca90(0x110)),process[_0x4cca90(0x12a)](0x1));const _0x3c164b=await _0x1bc54e['OXaXD'](getFeatureReportMarkdown,_0x190348,{'itemIds':_0x29d276['map'](_0x46e17b=>_0x46e17b['id'])});process['stdout']['write'](_0x3c164b['trimEnd']()+'\x0a');}export async function featureConcludeSession(_0x5f1e70){const _0x518013=_0x1f47f2,_0x1ea17c={'SPmQx':function(_0x5eaa67){return _0x5eaa67();},'nldXH':function(_0x29fd50,_0x1cb143){return _0x29fd50(_0x1cb143);},'Hcxza':_0x518013(0x144),'HiiKJ':function(_0x332b1c,_0x23f90c){return _0x332b1c===_0x23f90c;},'KsIIB':_0x518013(0x1bb),'hwfbm':_0x518013(0x154)},_0x21ef80=_0x5f1e70||await _0x1ea17c['SPmQx'](getActiveFeatureId);if(!_0x21ef80)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 _0x2fca8d=await _0x1ea17c['nldXH'](getFeature,_0x21ef80);if(!_0x2fca8d[_0x518013(0x198)])throw new Error(_0x1ea17c['Hcxza']);const {sessions:_0x42226f}=await _0x1ea17c[_0x518013(0x12e)](listFeatureSessions,_0x21ef80),_0x88591c=_0x42226f['find'](_0x1cb062=>_0x1cb062['id']===_0x2fca8d[_0x518013(0x198)]);if(!_0x88591c)throw new Error('Current\x20session\x20not\x20found.');if(_0x1ea17c['HiiKJ'](_0x88591c[_0x518013(0x169)],_0x518013(0x199))){console['log'](_0x1ea17c['KsIIB']);return;}if(_0x88591c[_0x518013(0x169)]!==_0x518013(0x176))throw new Error(_0x518013(0x133)+_0x88591c['status']);console['log'](_0x1ea17c[_0x518013(0x19e)]),await concludeSession(_0x21ef80,_0x2fca8d['currentSessionId']),console[_0x518013(0x11c)](_0x518013(0x135)+_0x88591c['iteration']+_0x518013(0x17d)),console[_0x518013(0x11c)](_0x518013(0x122));}export async function featureSessions(_0x4f94cd){const _0x48152f=_0x1f47f2,_0x1dbb35={'TDkaj':function(_0x1984b3){return _0x1984b3();},'GnuxQ':function(_0x433362,_0x555423){return _0x433362(_0x555423);},'nDOYp':'No\x20sessions\x20found.','ovHNl':_0x48152f(0x199),'FUHvE':function(_0x478a9a,_0x17dcb9){return _0x478a9a===_0x17dcb9;}},_0x2716e1=_0x4f94cd||await _0x1dbb35[_0x48152f(0x139)](getActiveFeatureId);if(!_0x2716e1)throw new Error(_0x48152f(0xfc));const _0x286aae=await _0x1dbb35['GnuxQ'](getFeature,_0x2716e1);console[_0x48152f(0x11c)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x286aae[_0x48152f(0x191)]+'\x0a');const {sessions:_0x20a296}=await listFeatureSessions(_0x2716e1);if(_0x20a296[_0x48152f(0x1a0)]===0x0){console['log'](_0x1dbb35['nDOYp']);return;}for(const _0x5d8c74 of _0x20a296){const _0x39143a=_0x5d8c74[_0x48152f(0x169)]===_0x1dbb35['ovHNl']?'✅':_0x1dbb35[_0x48152f(0x127)](_0x5d8c74['status'],_0x48152f(0x176))?'🔄':'▶️';console[_0x48152f(0x11c)](_0x39143a+'\x20Session\x20'+_0x5d8c74[_0x48152f(0x19d)]+'\x20('+_0x5d8c74['id']+')'),console['log'](_0x48152f(0x1aa)+_0x5d8c74['status']),console[_0x48152f(0x11c)]('\x20\x20\x20Created:\x20'+new Date(_0x5d8c74[_0x48152f(0x132)])[_0x48152f(0xfe)]()),_0x5d8c74[_0x48152f(0x168)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x5d8c74['completedAt'])[_0x48152f(0xfe)]()),console[_0x48152f(0x11c)]('');}}export async function featureAddScenario(_0x41e099,_0x56545c){const _0x134b47=_0x1f47f2,_0x334a2d={'qpjzg':function(_0x27abb0,_0x46e93c){return _0x27abb0(_0x46e93c);},'XLkgA':function(_0xf8a037,_0x316afc){return _0xf8a037(_0x316afc);},'kIkYI':function(_0x5c8c62,_0x462f08,_0x4755e7){return _0x5c8c62(_0x462f08,_0x4755e7);}},_0x302ceb=_0x56545c||await getActiveFeatureId();if(!_0x302ceb)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 _0x3cebb8=await _0x334a2d[_0x134b47(0x18c)](getFeature,_0x302ceb);if(_0x3cebb8[_0x134b47(0x112)]&&!_0x3cebb8['latestReview']['submittedAt'])throw new Error(_0x134b47(0x165)+_0x3cebb8['dashboardUrl']);await createChecklistItem(_0x302ceb,_0x41e099);const _0x5d5831=await _0x334a2d[_0x134b47(0x147)](getFeature,_0x302ceb);console[_0x134b47(0x11c)](_0x134b47(0x180)),_0x334a2d[_0x134b47(0x140)](displayFeature,_0x5d5831,_0x5d5831[_0x134b47(0x16f)]);}export async function featureEditScenario(_0x5d3e62,_0x4feefc){const _0x431afa=_0x1f47f2,_0x3f3669={'btzgE':_0x431afa(0x149),'xKitQ':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','YbNiZ':function(_0x2fb42c,_0x4938f7){return _0x2fb42c(_0x4938f7);},'xUhdX':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','acHgw':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','TypXz':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','LZMuW':_0x431afa(0x14b),'sLsAa':function(_0x32c3d6,_0x587a36){return _0x32c3d6<_0x587a36;},'LZTaQ':function(_0x1752fd,_0x6490db){return _0x1752fd+_0x6490db;},'UUItz':function(_0x2d3d0b,_0x10a52a){return _0x2d3d0b<_0x10a52a;},'HmuPS':function(_0x492345,_0x50dd54){return _0x492345>=_0x50dd54;},'MRvLt':function(_0x20367f,_0x457053){return _0x20367f(_0x457053);}},_0x413ea3=_0x4feefc['id']||await getActiveFeatureId();!_0x413ea3&&(console[_0x431afa(0x18f)](_0x3f3669[_0x431afa(0x1b4)]),console['error'](_0x3f3669[_0x431afa(0x13b)]),process['exit'](0x1));const _0x285453=await _0x3f3669['YbNiZ'](getFeature,_0x413ea3);_0x285453['latestReview']&&!_0x285453[_0x431afa(0x112)][_0x431afa(0x116)]&&(console[_0x431afa(0x18f)](_0x3f3669['xUhdX']),console[_0x431afa(0x18f)](_0x431afa(0x10c)),console['error']('\x20\x20'+_0x285453['dashboardUrl']),process[_0x431afa(0x12a)](0x1));const _0x176450=_0x285453['checklistItems']||[];_0x176450[_0x431afa(0x1a0)]===0x0&&(console['error'](_0x3f3669[_0x431afa(0x166)]),process['exit'](0x1));if(_0x4feefc['scenario']===undefined){console['error'](_0x3f3669[_0x431afa(0x193)]),console[_0x431afa(0x11c)](_0x3f3669['LZMuW']);for(let _0x2d0262=0x0;_0x3f3669['sLsAa'](_0x2d0262,_0x176450[_0x431afa(0x1a0)]);_0x2d0262++){console['log']('\x20\x20'+_0x3f3669[_0x431afa(0x19f)](_0x2d0262,0x1)+'.\x20'+_0x176450[_0x2d0262]['description']);}process['exit'](0x1);}const _0x79586=_0x4feefc['scenario']-0x1;if(_0x3f3669[_0x431afa(0x11f)](_0x79586,0x0)||_0x3f3669[_0x431afa(0x107)](_0x79586,_0x176450[_0x431afa(0x1a0)])){console[_0x431afa(0x18f)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4feefc['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x176450[_0x431afa(0x1a0)]+_0x431afa(0x113)),console[_0x431afa(0x11c)](_0x431afa(0x14b));for(let _0xb1b16c=0x0;_0xb1b16c<_0x176450[_0x431afa(0x1a0)];_0xb1b16c++){console[_0x431afa(0x11c)]('\x20\x20'+_0x3f3669[_0x431afa(0x19f)](_0xb1b16c,0x1)+'.\x20'+_0x176450[_0xb1b16c][_0x431afa(0x124)]);}process[_0x431afa(0x12a)](0x1);}const _0x42e099=_0x176450[_0x79586];await updateChecklistItem(_0x413ea3,_0x42e099['id'],{'description':_0x5d3e62});const _0xa95896=await _0x3f3669[_0x431afa(0x171)](getFeature,_0x413ea3);console[_0x431afa(0x11c)](_0x431afa(0x131)),displayFeature(_0xa95896,_0xa95896['checklistItems']);}async function downloadFeedbackImage(_0x28ab34,_0x243f0f){const _0x2b0ed4=_0x1f47f2,_0x54266c={'PvHYg':function(_0xc5097c,_0x285e2c,_0x431dff){return _0xc5097c(_0x285e2c,_0x431dff);},'Gliyw':function(_0x50801c){return _0x50801c();},'yosdr':function(_0x8f58bc,_0x44b44e){return _0x8f58bc(_0x44b44e);}};try{const _0x16afe2=_0x54266c['PvHYg'](join,_0x54266c['Gliyw'](getRangerDir),_0x2b0ed4(0x173));await _0x54266c['PvHYg'](mkdir,_0x16afe2,{'recursive':!![]});const _0xcbf5fd=join(_0x16afe2,_0x2b0ed4(0x174)+_0x243f0f+_0x2b0ed4(0x19a)),_0x19adeb=await _0x54266c[_0x2b0ed4(0x19b)](fetch,_0x28ab34);if(!_0x19adeb['ok'])return null;const _0x64a5de=Buffer['from'](await _0x19adeb['arrayBuffer']());return await writeFile(_0xcbf5fd,_0x64a5de),_0xcbf5fd;}catch{return null;}}export async function featureGetReview(_0x59abb0){const _0x30dde2=_0x1f47f2,_0x44bb02={'FOWuw':function(_0x29f4c3){return _0x29f4c3();},'iZxJj':_0x30dde2(0x179),'wngjX':function(_0x2d87d9,_0xe4f32f){return _0x2d87d9(_0xe4f32f);},'KTCkZ':function(_0x59e696,_0x32f691){return _0x59e696===_0x32f691;},'zqZuc':_0x30dde2(0x111),'MSAkV':function(_0x222f47,_0xbcec14,_0x33fd14){return _0x222f47(_0xbcec14,_0x33fd14);},'qJmZQ':function(_0x6aed,_0x131de6){return _0x6aed>_0x131de6;},'IVdaH':_0x30dde2(0x16e),'CNhAI':'point','ZVaaK':function(_0x56e5b8,_0xdaa6ac){return _0x56e5b8+_0xdaa6ac;}},_0x1f5329=_0x59abb0||await _0x44bb02['FOWuw'](getActiveFeatureId);if(!_0x1f5329)throw new Error(_0x44bb02['iZxJj']);const _0x576c67=await getFeature(_0x1f5329),{items:_0x46fb58}=await _0x44bb02[_0x30dde2(0x14e)](getActionItems,_0x1f5329);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x576c67[_0x30dde2(0x191)]+'\x20('+_0x576c67['id']+')\x0a');if(_0x44bb02['KTCkZ'](_0x46fb58['length'],0x0)){console[_0x30dde2(0x11c)](_0x44bb02['zqZuc']);return;}for(let _0x3eec9c=0x0;_0x3eec9c<_0x46fb58[_0x30dde2(0x1a0)];_0x3eec9c++){const _0x376813=_0x46fb58[_0x3eec9c],_0x2217e1=_0x376813['version']>0x1?'\x20(v'+_0x376813[_0x30dde2(0x18d)]+')':'',_0x2a4ba2=await _0x44bb02[_0x30dde2(0x192)](getItemFeedback,_0x1f5329,_0x376813['id']);if(_0x44bb02['qJmZQ'](_0x2a4ba2[_0x30dde2(0x1b8)][_0x30dde2(0x1a0)],0x0)){console['log'](_0x30dde2(0x1b1)+(_0x3eec9c+0x1)+':\x20\x22'+_0x376813[_0x30dde2(0x124)]+'\x22'+_0x2217e1+_0x30dde2(0x161)+_0x2a4ba2['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x30a805 of _0x2a4ba2['unaddressedComments']){const _0x4cb25f=new Date(_0x30a805['createdAt'])[_0x30dde2(0x16c)](_0x30dde2(0x1a4),{'month':_0x44bb02[_0x30dde2(0x118)],'day':'numeric'}),_0x2d78d5=_0x30a805['authorName']||_0x30a805['authorEmail']||'Unknown';console['log']('\x20\x20💬\x20'+_0x2d78d5+'\x20('+_0x4cb25f+_0x30dde2(0x100)+_0x30a805['content']+'\x22');if(_0x30a805['assetUrl']){const _0x8994f2=await downloadFeedbackImage(_0x30a805['assetUrl'],_0x30a805['id']);_0x8994f2&&console['log'](_0x30dde2(0x103)+_0x8994f2);}if(_0x30a805[_0x30dde2(0x162)]){const _0x20b3f5=_0x30a805['spatial'][_0x30dde2(0x138)];_0x30a805['spatial'][_0x30dde2(0x1a5)]===_0x44bb02[_0x30dde2(0x1c0)]&&_0x20b3f5['length']>=0x2?console[_0x30dde2(0x11c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x20b3f5[0x0][_0x30dde2(0x108)](0x2)+',\x20'+_0x20b3f5[0x1][_0x30dde2(0x108)](0x2)+')'):console['log'](_0x30dde2(0x156)+_0x30a805[_0x30dde2(0x162)]['type']+_0x30dde2(0x1b0)+_0x20b3f5[_0x30dde2(0x12d)](_0x37185d=>_0x37185d['toFixed'](0x2))['join'](',\x20')+']');}}if(_0x2a4ba2['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x21bff0 of _0x2a4ba2[_0x30dde2(0x1b5)][_0x30dde2(0x186)]('\x0a')){console['log']('\x20\x20\x20\x20'+_0x21bff0);}}}else console[_0x30dde2(0x11c)](_0x30dde2(0x1b1)+_0x44bb02['ZVaaK'](_0x3eec9c,0x1)+':\x20\x22'+_0x376813['description']+'\x22'+_0x2217e1+_0x30dde2(0x136)),console[_0x30dde2(0x11c)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x1138c5){const _0x514048=_0x1f47f2,_0x1ca2b0={'ammax':function(_0x30ab4f){return _0x30ab4f();},'eQugD':_0x514048(0x179),'OsUFq':function(_0x326221,_0x5231ec){return _0x326221(_0x5231ec);},'FaQSm':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x157f13=_0x1138c5||await _0x1ca2b0[_0x514048(0x1af)](getActiveFeatureId);if(!_0x157f13)throw new Error(_0x1ca2b0['eQugD']);const _0x9973b1=await getFeature(_0x157f13);await _0x1ca2b0['OsUFq'](softDeleteFeature,_0x157f13),console[_0x514048(0x11c)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x9973b1['name']+'\x20('+_0x157f13+')'),console[_0x514048(0x11c)](_0x1ca2b0[_0x514048(0x1b7)]+_0x157f13);}export async function featureRestore(_0x58c5ba){const _0x1e1fa8=_0x1f47f2,_0x311ebd={'gnteX':function(_0x29299b,_0x8fdeca){return _0x29299b(_0x8fdeca);},'FHjHn':function(_0x277d7d,_0x4f97f4,_0x245f21){return _0x277d7d(_0x4f97f4,_0x245f21);}};await restoreFeature(_0x58c5ba);const _0x2d5162=await _0x311ebd['gnteX'](getFeature,_0x58c5ba);console[_0x1e1fa8(0x11c)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x2d5162[_0x1e1fa8(0x191)]+'\x20('+_0x58c5ba+')'),_0x311ebd[_0x1e1fa8(0x183)](displayFeature,_0x2d5162,_0x2d5162[_0x1e1fa8(0x16f)]);}function _0x30e4(){const _0x3bd3cb=['map','nldXH','\x20[has\x20reviewer\x20feedback]','push','\x0a✅\x20Scenario\x20updated','createdAt','Cannot\x20conclude\x20session\x20with\x20status:\x20','dashboardUrl','\x0a✅\x20Session\x20','\x20—\x20no\x20comments','canceledReason','coordinates','TDkaj','excludeScenarios','xKitQ','gitBranch','\x20\x20\x20\x20\x20\x20Incomplete:\x20','blocked','git\x20rev-parse\x20--abbrev-ref\x20HEAD','kIkYI','scenarios','EognC','offset','No\x20active\x20session\x20for\x20this\x20feature\x20review.','HmgFS','17342TvtbYB','XLkgA','verification_in_progress','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','git\x20remote\x20get-url\x20origin','\x0aAvailable\x20scenarios:','stdin','\x20\x20\x20Updated\x20branch\x20to:\x20','wngjX','msffk','lmeYf','8OIaqAe','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','closed','\x0aConcluding\x20session...','4604uuEkuW','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','QkrEg','BhrPt','2510ywonIl','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','repeat','\x0aGenerating\x20report...','11263959fHbjPr','env','stats','\x20—\x20','spatial','IjSCr','UeXCb','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','acHgw','\x20\x20\x20Branch:\x20','completedAt','status','find','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','toLocaleDateString','\x1b[0m','short','checklistItems','ExnAr','MRvLt','BvYDb','feedback-images','comment_','mdgcV','in_progress','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','XpOJq','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','CBrSY','incompleteReason','totalCount','\x20concluded.','currentBranch','\x0a✅\x20Report\x20generated:\x20','\x0a✅\x20Scenario\x20added','oxzXc','OdRCQ','FHjHn','\x20\x20\x20ID:\x20','round','split','join','tSHrI','raaFh','\x20feature\x20review(s)\x20found','\x20incomplete','qpjzg','version','\x0a✅\x20Resumed\x20feature\x20review:\x20','error','pKEdV','name','MSAkV','TypXz','active-feature.txt','mbtxX','46xEnkvE','\x20\x20\x20\x20\x20\x20Approved','currentSessionId','completed','.png','yosdr','45265seYTmm','iteration','hwfbm','LZTaQ','length','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','aBUSi','KHrFs','en-US','type','blockedReason','\x20\x20\x20Completed:\x20','TOehz','FORbq','\x20\x20\x20Status:\x20','\x0a⚠️\x20\x20','.md','approved','\x20--current-branch','ammax','\x20at\x20[','Scenario\x20','style','mTfAu','btzgE','canonicalFlow','trim','FaQSm','unaddressedComments','1780035nEuqSn','gscFv','\x0a✅\x20Session\x20is\x20already\x20completed.','2060yQHOTB','items','any','nUgxq','CNhAI','RXrfX','yJdkN','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','incomplete','toLocaleString','cVdIw','):\x20\x22','\x20\x20\x20▶️\x20Started\x20session\x20','iNYaZ','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','filter','ZtEQO','IvAMv','HmuPS','toFixed','sessionId','\x20\x20\x20Created:\x20','Not\x20in\x20a\x20git\x20repository.','Please\x20finish\x20your\x20review\x20first:','isTTY','\x20\x20\x20\x20\x20Progress:\x20','\x0a✅\x20Feature\x20review\x20created:\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','No\x20scenarios\x20found.','latestReview','\x20scenarios.','LPbEx','\x20\x20\x20\x20\x20\x20Blocked:\x20','submittedAt','\x20blocked','IVdaH','pendingItems','FxuRx','includeDeleted','log','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','12625164Lnvhkh','UUItz','position','PnBru','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','pipe','description','ExhsR','YbhbX','FUHvE','replace','8473860lPNMwJ','exit','verifiedItems','YLqdV'];_0x30e4=function(){return _0x3bd3cb;};return _0x30e4();}
1
+ const _0x5cb4dc=_0x3172;(function(_0x5523db,_0x21dfeb){const _0x7bed0b=_0x3172,_0x25c44f=_0x5523db();while(!![]){try{const _0x57d325=-parseInt(_0x7bed0b(0x254))/0x1*(-parseInt(_0x7bed0b(0x1e4))/0x2)+parseInt(_0x7bed0b(0x24d))/0x3*(-parseInt(_0x7bed0b(0x26b))/0x4)+parseInt(_0x7bed0b(0x286))/0x5+-parseInt(_0x7bed0b(0x267))/0x6*(-parseInt(_0x7bed0b(0x1f3))/0x7)+-parseInt(_0x7bed0b(0x1ee))/0x8*(-parseInt(_0x7bed0b(0x203))/0x9)+parseInt(_0x7bed0b(0x1f0))/0xa*(parseInt(_0x7bed0b(0x1d4))/0xb)+-parseInt(_0x7bed0b(0x1e5))/0xc*(parseInt(_0x7bed0b(0x1c6))/0xd);if(_0x57d325===_0x21dfeb)break;else _0x25c44f['push'](_0x25c44f['shift']());}catch(_0x10c598){_0x25c44f['push'](_0x25c44f['shift']());}}}(_0x6e3f,0xef486));function _0x3172(_0x115bcf,_0x26d63e){_0x115bcf=_0x115bcf-0x1be;const _0x6e3f92=_0x6e3f();let _0x317290=_0x6e3f92[_0x115bcf];return _0x317290;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x567b4d from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x6e3f(){const _0x548910=['canonicalFlow','qcGNB','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','1482668VDcAtR','utf-8','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','authorName','pipe','createdAt','\x20>\x20','en-US','gcUPy','kpyNI','numeric','YpRwZ','error','\x20\x20\x20Completed:\x20','pendingItems','iMqRw','590IOikTE','696SGnbSd','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','completedAt','gitRepoUrl','Please\x20finish\x20your\x20review\x20first:','point','jdJPA','\x20at\x20[','6002776uOIUhP','\x20blocked','80WmzyaV','Scenario\x20','offset','28XWAuSX','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','totalCount','assetUrl','PpLTC','push','\x20(v','\x0a✅\x20Feature\x20review\x20created:\x20','IGRxp','has','dashboardUrl','GOCFX','lGfDF','\x20\x20\x20Branch:\x20','lXrbi','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','9PXngQO','VTJLR','spatial','incompleteItems','git\x20rev-parse\x20--abbrev-ref\x20HEAD','\x20\x20\x20\x20\x20Progress:\x20','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','QqNuP','status','\x20\x20\x20\x20','DHedC','\x0a✅\x20Resumed\x20feature\x20review:\x20','QQREa','split','verification_in_progress','.md','github.com/','\x20\x20\x20Created:\x20','paIBG','pDSas','description','rwjwK','map','DboTk','iWvHT','canceledReason','\x20\x20\x20\x20\x20\x20Approved','scenarios','currentBranch','qYmiI','\x20feature\x20review(s)\x20found','\x20Session\x20','TBaMx','mQtyt','cRkOr','iAUjk','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x0a✅\x20Restored\x20feature\x20review:\x20','thlKw','iRdJk','DWRoH','Gwwee','blockedItems','wAuJl','CfdTD','approved','limit','\x0a📋\x20Feedback\x20for:\x20','unaddressedComments','UjIlZ','closed','BLGXa','version','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','completed','\x20verified','sccCI','\x20—\x20','UnNWI','checklistItems','VNVdg','\x0a✅\x20Scenario\x20added','position','viwmu','submittedAt','KWhze','IymiH','\x20\x20\x20Updated\x20branch\x20to:\x20','latestReview','dSWbu','name','find','toLocaleDateString','6UWTZYJ','length','mYfOA','FhdeD','currentSessionId','\x20/\x20','domRef','1967UUSDeW','BkRAx','bEbJx','TYwWV','textContent','iteration','rsAiO','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','log','mHPDv','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','No\x20sessions\x20found.','Current\x20session\x20not\x20found.','blocked','filter','isTTY','stdout','PVbmF','\x20\x20\x20Repository:\x20','2073426wZclAV','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','toLocaleString','\x20of\x20','3802852mTRNwI','toFixed','\x0a\x20\x20\x20Scenarios:','isInteger','xlvEY','\x20--current-branch','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','in_progress','stats','type','goBLW','prompt','WgGZX','sessionId','\x20\x20\x20\x20\x20\x20Incomplete:\x20','replace','from','pop','env','yfGYO','gitBranch','No\x20scenarios\x20found.','includeDeleted','\x20\x20Expected\x20flow:','exit','incompleteReason','zfbYa','5840310cYJtMT','\x20\x20\x20▶️\x20Started\x20session\x20','repeat','terminalReason','items','QMZdK','kzeOu','blockedReason','\x1b[0m','trimEnd','trim','465699XOwSVo','join','hOmhA','\x0aGenerating\x20report...','\x20\x20\x20\x20\x20ID:\x20','any','git\x20remote\x20get-url\x20origin','ZfQUv','sort','Showing\x20','iYJcU'];_0x6e3f=function(){return _0x548910;};return _0x6e3f();}import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x478bf3=>'\x1b[1m'+_0x478bf3+_0x5cb4dc(0x1c3);function getGitRepoUrl(){const _0x59111a=_0x5cb4dc,_0x446b2d={'OzCPo':function(_0x3cbbfb,_0x14e732,_0xccd3a7){return _0x3cbbfb(_0x14e732,_0xccd3a7);},'TYwWV':_0x59111a(0x1cc),'DHedC':'utf-8','xlvEY':_0x59111a(0x1d8),'iAUjk':_0x59111a(0x214)};try{const _0x400bab=_0x446b2d['OzCPo'](execSync,_0x446b2d[_0x59111a(0x257)],{'encoding':_0x446b2d[_0x59111a(0x20e)],'stdio':[_0x446b2d[_0x59111a(0x26f)],_0x59111a(0x1d8),'pipe']})[_0x59111a(0x1c5)]();return _0x400bab['replace'](/\.git$/,'')[_0x59111a(0x27a)](/^git@github\.com:/,_0x446b2d[_0x59111a(0x227)])[_0x59111a(0x27a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x31b95b=_0x5cb4dc,_0xa3533e={'pDSas':function(_0x2986df,_0x5e5b27,_0x4a2123){return _0x2986df(_0x5e5b27,_0x4a2123);},'cvrPP':_0x31b95b(0x207),'owoTZ':'utf-8','GOCFX':_0x31b95b(0x1d8)};try{return _0xa3533e[_0x31b95b(0x217)](execSync,_0xa3533e['cvrPP'],{'encoding':_0xa3533e['owoTZ'],'stdio':[_0xa3533e['GOCFX'],_0xa3533e[_0x31b95b(0x1fe)],'pipe']})[_0x31b95b(0x1c5)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4f165e=_0x5cb4dc,_0x5a0b59={'QOAps':function(_0xc1e5a6,_0x5d616f){return _0xc1e5a6(_0x5d616f);},'IGRxp':'utf-8'},_0x3a44ef=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x5a0b59['QOAps'](existsSync,_0x3a44ef))return null;try{const _0x4b8d27=await readFile(_0x3a44ef,_0x5a0b59[_0x4f165e(0x1fb)]);return _0x4b8d27[_0x4f165e(0x1c5)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x49b4d0){const _0xa4d0c2=_0x5cb4dc,_0xde1492={'bEbJx':function(_0x3b005c,_0x43cc37,_0x1972f8){return _0x3b005c(_0x43cc37,_0x1972f8);},'fglce':function(_0x4937d6,_0x589367){return _0x4937d6(_0x589367);},'wAuJl':function(_0x4c2c13,_0x4877da,_0x3a710c,_0x3ec74f){return _0x4c2c13(_0x4877da,_0x3a710c,_0x3ec74f);},'yvHyk':_0xa4d0c2(0x1d5)},_0x4685fe=getRangerDir(),_0x3ccaa7=_0xde1492[_0xa4d0c2(0x256)](join,_0x4685fe,ACTIVE_FEATURE_FILE);!_0xde1492['fglce'](existsSync,_0x4685fe)&&await mkdir(_0x4685fe,{'recursive':!![]}),await _0xde1492[_0xa4d0c2(0x22f)](writeFile,_0x3ccaa7,_0x49b4d0,_0xde1492['yvHyk']);}function getProgressDisplay(_0x4b9c26){const _0x10f2b5=_0x5cb4dc,_0x56f7bc={'tWlQE':function(_0x195780,_0x217210){return _0x195780+_0x217210;},'EvHGx':function(_0x2e1bbf,_0x191c8f){return _0x2e1bbf+_0x191c8f;},'qcGNB':function(_0x248840,_0x3f7d1e){return _0x248840*_0x3f7d1e;},'iYJcU':function(_0x53bad9,_0x2117dc){return _0x53bad9/_0x2117dc;},'gYsyb':function(_0x5a3ce5,_0x3858ef){return _0x5a3ce5-_0x3858ef;}},_0x1aa8fe=_0x4b9c26['verifiedItems']||0x0,_0x139c7c=_0x4b9c26['verificationInProgressItems']||0x0,_0x20ba4b=_0x4b9c26[_0x10f2b5(0x22e)]||0x0,_0x848936=_0x4b9c26[_0x10f2b5(0x206)]||0x0,_0x102b11=_0x4b9c26[_0x10f2b5(0x1e2)]||0x0,_0x3a97f1=_0x56f7bc['tWlQE'](_0x56f7bc['EvHGx'](_0x1aa8fe,_0x139c7c)+_0x20ba4b,_0x848936)+_0x102b11;if(_0x3a97f1===0x0)return'-';const _0x1bf4f6=0xa,_0x4fbea4=Math['round'](_0x56f7bc[_0x10f2b5(0x1d2)](_0x56f7bc[_0x10f2b5(0x1d0)](_0x1aa8fe,_0x3a97f1),_0x1bf4f6)),_0x203858='█'['repeat'](_0x4fbea4)+'░'[_0x10f2b5(0x288)](_0x56f7bc['gYsyb'](_0x1bf4f6,_0x4fbea4)),_0x49abbe=[];if(_0x20ba4b>0x0)_0x49abbe['push'](_0x20ba4b+_0x10f2b5(0x1ef));if(_0x848936>0x0)_0x49abbe[_0x10f2b5(0x1f8)](_0x848936+'\x20incomplete');if(_0x139c7c>0x0)_0x49abbe[_0x10f2b5(0x1f8)](_0x139c7c+'\x20in\x20progress');const _0x4ace80=_0x49abbe['length']>0x0?'\x20('+_0x49abbe[_0x10f2b5(0x1c7)](',\x20')+')':'';return _0x203858+'\x20'+_0x1aa8fe+'/'+_0x3a97f1+_0x10f2b5(0x23b)+_0x4ace80;}function getCurrentSessionItems(_0x40e8cf,_0x2965d6){const _0x34aed5=_0x5cb4dc;if(!_0x40e8cf[_0x34aed5(0x251)])return _0x2965d6['filter'](_0x3bb602=>!_0x3bb602[_0x34aed5(0x278)])['sort']((_0x17b731,_0x33034e)=>_0x17b731[_0x34aed5(0x242)]-_0x33034e[_0x34aed5(0x242)]);return _0x2965d6[_0x34aed5(0x262)](_0x14a4dd=>_0x14a4dd[_0x34aed5(0x278)]===_0x40e8cf[_0x34aed5(0x251)]||!_0x14a4dd[_0x34aed5(0x278)])[_0x34aed5(0x1ce)]((_0x376301,_0x4988da)=>_0x376301['position']-_0x4988da[_0x34aed5(0x242)]);}function displayFeature(_0x42fd8f,_0xb694d0){const _0x164ca3=_0x5cb4dc,_0x341164={'DWRoH':function(_0x50f83a,_0x2f758b){return _0x50f83a===_0x2f758b;},'YpRwZ':_0x164ca3(0x231),'rwjwK':function(_0x4d7d5b,_0x20ed89){return _0x4d7d5b===_0x20ed89;},'lXrbi':'verified','Zkfre':_0x164ca3(0x261),'QqNuP':_0x164ca3(0x236),'vJuKn':function(_0x5ce926,_0x424027){return _0x5ce926>_0x424027;},'DboTk':function(_0x5dc76b,_0x428196){return _0x5dc76b!==_0x428196;},'Gwwee':'\x20[has\x20reviewer\x20feedback]','gcUPy':'incomplete','OVygl':function(_0x574d8a,_0x59dbd8){return _0x574d8a===_0x59dbd8;}};console[_0x164ca3(0x25c)]('\x0a'+_0x42fd8f[_0x164ca3(0x24a)]+'\x20('+_0x42fd8f[_0x164ca3(0x1fd)]+')');_0x42fd8f[_0x164ca3(0x273)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x42fd8f['stats']));_0x42fd8f[_0x164ca3(0x218)]&&console['log']('\x20\x20\x20Description:\x20'+_0x42fd8f['description']);_0x42fd8f[_0x164ca3(0x1e9)]&&console[_0x164ca3(0x25c)](_0x164ca3(0x266)+_0x42fd8f[_0x164ca3(0x1e9)]);_0x42fd8f[_0x164ca3(0x27f)]&&console[_0x164ca3(0x25c)](_0x164ca3(0x200)+_0x42fd8f['gitBranch']);console[_0x164ca3(0x25c)](_0x164ca3(0x215)+new Date(_0x42fd8f[_0x164ca3(0x1d9)])[_0x164ca3(0x269)]());_0x42fd8f[_0x164ca3(0x1e8)]&&console[_0x164ca3(0x25c)]('\x20\x20\x20Completed:\x20'+new Date(_0x42fd8f[_0x164ca3(0x1e8)])['toLocaleString']());if(_0xb694d0&&_0xb694d0[_0x164ca3(0x24e)]>0x0){console[_0x164ca3(0x25c)](_0x164ca3(0x26d));for(let _0x3b8fff=0x0;_0x3b8fff<_0xb694d0['length'];_0x3b8fff++){const _0x4c993c=_0xb694d0[_0x3b8fff];let _0x5ec57a;if(_0x341164[_0x164ca3(0x22c)](_0x4c993c['status'],'closed')&&_0x341164[_0x164ca3(0x22c)](_0x4c993c[_0x164ca3(0x1be)],_0x341164['YpRwZ']))_0x5ec57a='✅';else{if(_0x341164[_0x164ca3(0x219)](_0x4c993c['status'],_0x341164[_0x164ca3(0x201)]))_0x5ec57a='🟢';else{if(_0x4c993c[_0x164ca3(0x20c)]==='incomplete')_0x5ec57a='🟠';else{if(_0x4c993c['status']===_0x341164['Zkfre'])_0x5ec57a='🛑';else{if(_0x4c993c[_0x164ca3(0x20c)]===_0x341164[_0x164ca3(0x20b)])_0x5ec57a='⛔';else _0x341164['rwjwK'](_0x4c993c[_0x164ca3(0x20c)],_0x164ca3(0x212))?_0x5ec57a='⏳':_0x5ec57a='⬜';}}}}const _0x46a7e9=_0x4c993c[_0x164ca3(0x238)]>0x1?_0x164ca3(0x1f9)+_0x4c993c[_0x164ca3(0x238)]+')':'',_0x5e0e22=_0x341164['vJuKn'](_0x4c993c[_0x164ca3(0x238)],0x1)&&_0x4c993c['parentItemId']&&_0x4c993c[_0x164ca3(0x20c)]!==_0x341164[_0x164ca3(0x20b)]&&_0x341164[_0x164ca3(0x21b)](_0x4c993c[_0x164ca3(0x20c)],_0x341164['lXrbi'])?_0x341164[_0x164ca3(0x22d)]:'';console[_0x164ca3(0x25c)]('\x20\x20\x20'+(_0x3b8fff+0x1)+'.\x20'+_0x5ec57a+'\x20'+_0x4c993c['description']+_0x46a7e9+_0x5e0e22);_0x4c993c[_0x164ca3(0x20c)]==='blocked'&&_0x4c993c['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4c993c[_0x164ca3(0x1c2)]);_0x341164[_0x164ca3(0x22c)](_0x4c993c['status'],_0x341164[_0x164ca3(0x1dc)])&&_0x4c993c[_0x164ca3(0x284)]&&console['log'](_0x164ca3(0x279)+_0x4c993c[_0x164ca3(0x284)]);if(_0x4c993c['status']===_0x341164['QqNuP']&&_0x341164['OVygl'](_0x4c993c['terminalReason'],_0x341164[_0x164ca3(0x1df)]))console[_0x164ca3(0x25c)](_0x164ca3(0x21e));else _0x4c993c['status']===_0x341164[_0x164ca3(0x20b)]&&_0x4c993c[_0x164ca3(0x21d)]&&console[_0x164ca3(0x25c)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x4c993c['canceledReason']);}}}export async function featureCreate(_0x391364,_0x495022){const _0x3b9840=_0x5cb4dc,_0x4ccc92={'ONGLk':function(_0x3f7e15,_0x4949c4){return _0x3f7e15===_0x4949c4;},'iWvHT':function(_0x5336bb){return _0x5336bb();},'GqdNB':'\x0aCreating\x20feature\x20review...','sotFJ':function(_0x2db7e9,_0x1e9dfc){return _0x2db7e9(_0x1e9dfc);},'nfKcF':function(_0x3e3c67,_0x39f96c){return _0x3e3c67(_0x39f96c);},'iNgEz':function(_0x101d80,_0x155933,_0xff9961){return _0x101d80(_0x155933,_0xff9961);}},{envNames:_0x565980}=await getEnvNames();_0x4ccc92['ONGLk'](_0x565980[_0x3b9840(0x24e)],0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x43b00a=>bold(_0x43b00a)));const _0x3d724f=_0x495022[_0x3b9840(0x21f)]?_0x495022['scenarios'][_0x3b9840(0x21a)](_0x30249a=>_0x30249a['trim']()):[],_0x4d1f41=getGitRepoUrl(),_0x307ca2=_0x4ccc92[_0x3b9840(0x21c)](getGitBranch);console['log'](_0x4ccc92['GqdNB']);const _0x1a4efd=await _0x4ccc92['sotFJ'](createFeature,{'name':_0x391364,'description':_0x495022[_0x3b9840(0x218)],'checklist':_0x3d724f,'gitRepoUrl':_0x4d1f41,'gitBranch':_0x307ca2});await setActiveFeatureId(_0x1a4efd['id']),await _0x4ccc92['nfKcF'](tryStartCurrentSession,_0x1a4efd['id']);const _0x1e3ca8=process['env']['CLAUDE_SESSION_ID'];_0x1e3ca8&&_0x4ccc92['iNgEz'](registerSession,_0x1e3ca8,_0x1a4efd['id']),console['log'](_0x3b9840(0x1fa)+_0x1a4efd['id']),displayFeature(_0x1a4efd,_0x1a4efd[_0x3b9840(0x23f)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x548699){const _0x210993=_0x5cb4dc,_0x4168db={'KCxMo':function(_0x5deb04){return _0x5deb04();},'xoLwE':function(_0xa224d9,_0x4ae1fd){return _0xa224d9(_0x4ae1fd);},'sccCI':'\x0aNo\x20feature\x20reviews\x20found.','mvMyV':function(_0x50ac7d,_0x883a9d){return _0x50ac7d+_0x883a9d;},'QjYUr':function(_0x52d510,_0xf91067){return _0x52d510<_0xf91067;},'mYfOA':function(_0x1033d8,_0x20417b){return _0x1033d8!==_0x20417b;}},_0xa8c852={'limit':_0x548699[_0x210993(0x232)]??0xa,'offset':_0x548699[_0x210993(0x1f2)]??0x0,'includeDeleted':_0x548699['includeDeleted']};_0x548699[_0x210993(0x220)]&&(_0xa8c852['gitRepoUrl']=_0x4168db['KCxMo'](getGitRepoUrl),_0xa8c852[_0x210993(0x27f)]=getGitBranch());const _0x1bf235=await _0x4168db['xoLwE'](listFeatures,_0xa8c852);if(_0x1bf235[_0x210993(0x1bf)]['length']===0x0){console[_0x210993(0x25c)](_0x4168db[_0x210993(0x23c)]);return;}const _0x53d7ab=_0x1bf235[_0x210993(0x1f5)]>_0x1bf235['items']['length']?_0x210993(0x1cf)+_0x1bf235['items']['length']+_0x210993(0x26a)+_0x1bf235[_0x210993(0x1f5)]:_0x1bf235[_0x210993(0x1f5)]+_0x210993(0x222);console['log']('\x0a'+_0x53d7ab+':\x0a');for(const _0x1bf578 of _0x1bf235['items']){console[_0x210993(0x25c)](''+_0x1bf578[_0x210993(0x24a)]),console['log']('\x20\x20\x20ID:\x20'+_0x1bf578['id']),_0x1bf578['stats']&&console[_0x210993(0x25c)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1bf578['stats'])),_0x1bf578['gitBranch']&&console[_0x210993(0x25c)](_0x210993(0x200)+_0x1bf578[_0x210993(0x27f)]),console['log'](_0x210993(0x215)+new Date(_0x1bf578['createdAt'])[_0x210993(0x24c)]()),console[_0x210993(0x25c)]('');}const _0x115ff0=_0xa8c852['limit']??0xa,_0x325e09=_0x4168db['mvMyV'](_0xa8c852['offset']??0x0,_0x1bf235['items']['length']);if(_0x4168db['QjYUr'](_0x325e09,_0x1bf235['totalCount'])){const _0x7a8cb0=_0x4168db[_0x210993(0x24f)](_0x115ff0,0xa)?'\x20--limit\x20'+_0x115ff0:'',_0x323a12=_0x548699[_0x210993(0x220)]?_0x210993(0x270):'',_0x12babe=_0x548699[_0x210993(0x281)]?'\x20--include-deleted':'';console[_0x210993(0x25c)](_0x210993(0x1e7)+_0x325e09+_0x7a8cb0+_0x323a12+_0x12babe);}}export async function featureShow(_0x3e3320){const _0x173d05=_0x5cb4dc,_0x228d77={'QQREa':function(_0x120772){return _0x120772();},'GzXHS':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x29b53f=_0x3e3320||await _0x228d77[_0x173d05(0x210)](getActiveFeatureId);if(!_0x29b53f)throw new Error(_0x228d77['GzXHS']);const _0x16abee=await getFeature(_0x29b53f);displayFeature(_0x16abee,_0x16abee['checklistItems']);}export async function featureResume(_0x1c6781){const _0x14289d=_0x5cb4dc,_0x51a9bb={'CfdTD':function(_0x2e4569,_0x317fb6){return _0x2e4569(_0x317fb6);},'PVbmF':function(_0x518d60){return _0x518d60();},'sCifb':function(_0x544cbe,_0x51b4fd){return _0x544cbe&&_0x51b4fd;},'zfbYa':'Not\x20in\x20a\x20git\x20repository.','jjntN':function(_0x3a5ce4,_0x399f40){return _0x3a5ce4||_0x399f40;},'ZoHKA':function(_0x55f7cd,_0x1df9cf){return _0x55f7cd||_0x1df9cf;},'iRdJk':_0x14289d(0x20a),'UjIlZ':function(_0x35af0d,_0x268cf0){return _0x35af0d(_0x268cf0);},'iNpgU':function(_0x299f05,_0x1be43d,_0x112192){return _0x299f05(_0x1be43d,_0x112192);}};if(_0x1c6781){const _0x32dc34=await _0x51a9bb[_0x14289d(0x230)](getFeature,_0x1c6781);await setActiveFeatureId(_0x32dc34['id']);const _0x3c7ac7=getGitBranch();_0x3c7ac7&&_0x3c7ac7!==_0x32dc34[_0x14289d(0x27f)]&&(await updateFeature(_0x32dc34['id'],{'gitBranch':_0x3c7ac7}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3c7ac7));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x32dc34[_0x14289d(0x24a)]+'\x20('+_0x32dc34['id']+')'),await _0x51a9bb[_0x14289d(0x230)](tryStartCurrentSession,_0x32dc34['id']);const _0x118774=process[_0x14289d(0x27d)]['CLAUDE_SESSION_ID'];_0x118774&&registerSession(_0x118774,_0x32dc34['id']);displayFeature(_0x32dc34,_0x32dc34['checklistItems']),await printFeedbackNudge(_0x32dc34['id']);return;}const _0x2ce98f=_0x51a9bb[_0x14289d(0x265)](getGitRepoUrl),_0x268d0f=_0x51a9bb['PVbmF'](getGitBranch);if(_0x51a9bb['sCifb'](!_0x2ce98f,!_0x268d0f))throw new Error(_0x51a9bb[_0x14289d(0x285)]);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x51a9bb['jjntN'](_0x2ce98f,'any')+_0x14289d(0x252)+_0x51a9bb['ZoHKA'](_0x268d0f,_0x14289d(0x1cb))+'...');const _0x56cb15=await listFeatures({'gitRepoUrl':_0x2ce98f,'gitBranch':_0x268d0f}),_0x315ff9=_0x56cb15[_0x14289d(0x1bf)][_0x14289d(0x262)](_0x150ca7=>!_0x150ca7[_0x14289d(0x1e8)]);if(_0x315ff9['length']===0x0){console[_0x14289d(0x25c)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x370295;if(_0x315ff9[_0x14289d(0x24e)]===0x1)_0x370295=_0x315ff9[0x0];else{const _0x491d83=process['stdin'][_0x14289d(0x263)]&&process['stdout']['isTTY'];if(!_0x491d83){console['log'](_0x14289d(0x268));for(const _0x17ee02 of _0x315ff9){console[_0x14289d(0x25c)]('\x20\x20'+_0x17ee02[_0x14289d(0x24a)]),console[_0x14289d(0x25c)](_0x14289d(0x1ca)+_0x17ee02['id']),_0x17ee02[_0x14289d(0x273)]&&console['log'](_0x14289d(0x208)+_0x51a9bb[_0x14289d(0x230)](getProgressDisplay,_0x17ee02['stats'])),_0x17ee02[_0x14289d(0x27f)]&&console[_0x14289d(0x25c)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x17ee02['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x34f439}=await _0x567b4d[_0x14289d(0x276)]([{'type':'list','name':'selected','message':_0x51a9bb[_0x14289d(0x22b)],'choices':_0x315ff9[_0x14289d(0x21a)](_0x4df4bb=>({'name':_0x4df4bb[_0x14289d(0x24a)]+'\x20('+_0x4df4bb['id']+')','value':_0x4df4bb['id']}))}]);_0x370295=_0x315ff9['find'](_0x156f53=>_0x156f53['id']===_0x34f439);}await setActiveFeatureId(_0x370295['id']);_0x268d0f&&_0x268d0f!==_0x370295[_0x14289d(0x27f)]&&(await updateFeature(_0x370295['id'],{'gitBranch':_0x268d0f}),console[_0x14289d(0x25c)](_0x14289d(0x247)+_0x268d0f));console[_0x14289d(0x25c)](_0x14289d(0x20f)+_0x370295[_0x14289d(0x24a)]+'\x20('+_0x370295['id']+')'),await _0x51a9bb['UjIlZ'](tryStartCurrentSession,_0x370295['id']);const _0x4853e2=await getFeature(_0x370295['id']),_0x1d4067=process[_0x14289d(0x27d)]['CLAUDE_SESSION_ID'];_0x1d4067&&registerSession(_0x1d4067,_0x4853e2['id']),_0x51a9bb['iNpgU'](displayFeature,_0x4853e2,_0x4853e2['checklistItems']),await _0x51a9bb[_0x14289d(0x235)](printFeedbackNudge,_0x4853e2['id']);}async function printFeedbackNudge(_0x5320a8){const _0x199635=_0x5cb4dc,_0x126b1d={'lQOoO':function(_0x4a0dfa,_0x237ff9,_0x2770a9){return _0x4a0dfa(_0x237ff9,_0x2770a9);},'rtvqa':function(_0x1255e9,_0x3c3f26){return _0x1255e9>_0x3c3f26;},'kpyNI':_0x199635(0x239)};try{const {items:_0x4f59f4}=await getActionItems(_0x5320a8);let _0x3b0de7=0x0,_0x40ea1b=0x0;for(const _0x2a39bc of _0x4f59f4){const _0x28e49b=await _0x126b1d['lQOoO'](getItemFeedback,_0x5320a8,_0x2a39bc['id']);_0x28e49b['unaddressedComments'][_0x199635(0x24e)]>0x0&&(_0x3b0de7+=_0x28e49b['unaddressedComments']['length'],_0x40ea1b++);}_0x126b1d['rtvqa'](_0x3b0de7,0x0)&&(console[_0x199635(0x25c)]('\x0a⚠️\x20\x20'+_0x3b0de7+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x40ea1b+'\x20scenario(s).'),console[_0x199635(0x25c)](_0x126b1d[_0x199635(0x1dd)]));}catch{}}async function tryStartCurrentSession(_0x4ccf22){const _0x4be68c=_0x5cb4dc,_0x2d5c2e={'sSkvX':function(_0x2c1a55,_0x1f752e){return _0x2c1a55(_0x1f752e);},'lgSqg':function(_0x35715c,_0x2e2b58,_0x41029f){return _0x35715c(_0x2e2b58,_0x41029f);}};try{const {sessions:_0x35d184}=await _0x2d5c2e['sSkvX'](listFeatureSessions,_0x4ccf22),_0x13142e=_0x35d184[_0x4be68c(0x24b)](_0x5b94ca=>_0x5b94ca[_0x4be68c(0x20c)]==='ready');_0x13142e&&(await _0x2d5c2e['lgSqg'](startSession,_0x4ccf22,_0x13142e['id']),console[_0x4be68c(0x25c)](_0x4be68c(0x287)+_0x13142e['iteration']));}catch{}}export async function featureReport(_0x4c23ad,_0x97d730){const _0x363721=_0x5cb4dc,_0x425d61={'lGfDF':function(_0x3c45e5,_0x15c0f0,_0x23128f){return _0x3c45e5(_0x15c0f0,_0x23128f);},'HznLX':'reports','oYiQH':function(_0x5c00dc,_0x34d980){return _0x5c00dc(_0x34d980);},'mRJCr':function(_0x2a422f,_0x474b8e,_0x3a11b9){return _0x2a422f(_0x474b8e,_0x3a11b9);},'ehGHS':_0x363721(0x1d5)},_0x28a2e6=_0x4c23ad||await getActiveFeatureId();if(!_0x28a2e6)throw new Error(_0x363721(0x1d6));console[_0x363721(0x25c)](_0x363721(0x1c9));const _0x443b68=await _0x425d61[_0x363721(0x1ff)](getFeatureReportMarkdown,_0x28a2e6,{'style':_0x97d730['style']}),_0x4bcbb6=_0x97d730['output']||join(getRangerDir(),_0x425d61['HznLX'],_0x28a2e6+_0x363721(0x213)),_0x5e1d35=join(_0x4bcbb6,'..');!_0x425d61['oYiQH'](existsSync,_0x5e1d35)&&await _0x425d61['mRJCr'](mkdir,_0x5e1d35,{'recursive':!![]}),await writeFile(_0x4bcbb6,_0x443b68,_0x425d61['ehGHS']),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x4bcbb6);}export async function featureReportPrDescription(_0x95f76f,_0x1b9b95){const _0x1ffa52=_0x5cb4dc,_0x5a2469={'CSKCN':function(_0xfad347,_0x11cfa5){return _0xfad347(_0x11cfa5);},'IqrUN':_0x1ffa52(0x1d3),'cRMwg':function(_0x54a762,_0x366c50){return _0x54a762>_0x366c50;},'DdYBo':'\x0aAvailable\x20scenarios:'},_0x44768c=_0x95f76f||await getActiveFeatureId();if(!_0x44768c)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x20bd83=await _0x5a2469['CSKCN'](getFeature,_0x44768c),_0x4f9725=_0x20bd83['checklistItems']||[],_0x1ea07a=getCurrentSessionItems(_0x20bd83,_0x4f9725);_0x1ea07a['length']===0x0&&(console['error'](_0x5a2469['IqrUN']),process[_0x1ffa52(0x283)](0x1));const _0x16779a=_0x1b9b95['excludeScenarios']??[],_0x3badbc=_0x16779a[_0x1ffa52(0x262)](_0xc96a2b=>!Number[_0x1ffa52(0x26e)](_0xc96a2b)||_0xc96a2b<0x1||_0xc96a2b>_0x1ea07a['length']);if(_0x5a2469['cRMwg'](_0x3badbc[_0x1ffa52(0x24e)],0x0)){console[_0x1ffa52(0x1e0)](_0x1ffa52(0x228)+_0x3badbc[_0x1ffa52(0x1c7)](',\x20')),console['log'](_0x5a2469['DdYBo']);for(let _0x34bff1=0x0;_0x34bff1<_0x1ea07a['length'];_0x34bff1++){console[_0x1ffa52(0x25c)]('\x20\x20'+(_0x34bff1+0x1)+'.\x20'+_0x1ea07a[_0x34bff1]['description']);}process['exit'](0x1);}const _0x2a7563=new Set(_0x16779a['map'](_0x5b15f4=>_0x5b15f4-0x1)),_0xd06ca5=_0x1ea07a[_0x1ffa52(0x262)]((_0x20ca1b,_0x1737c4)=>!_0x2a7563[_0x1ffa52(0x1fc)](_0x1737c4));_0xd06ca5['length']===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x1ffa52(0x283)](0x1));const _0xb10da6=await getFeatureReportMarkdown(_0x44768c,{'itemIds':_0xd06ca5['map'](_0x165b84=>_0x165b84['id'])});process[_0x1ffa52(0x264)]['write'](_0xb10da6[_0x1ffa52(0x1c4)]()+'\x0a');}export async function featureConcludeSession(_0x48c0a9){const _0x2131f5=_0x5cb4dc,_0x3e0454={'KWhze':function(_0x101d6a){return _0x101d6a();},'viwmu':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','kzeOu':function(_0x5f186c,_0x5ca38f){return _0x5f186c(_0x5ca38f);},'owsuj':function(_0x207399,_0x31532b){return _0x207399===_0x31532b;},'ZFwCC':'\x0a✅\x20Session\x20is\x20already\x20completed.','iMqRw':function(_0x50811b,_0x31fe08){return _0x50811b!==_0x31fe08;},'mQtyt':_0x2131f5(0x272),'ZBdnU':function(_0x1ad5a4,_0x24f13d,_0x23495f){return _0x1ad5a4(_0x24f13d,_0x23495f);}},_0x3ab447=_0x48c0a9||await _0x3e0454[_0x2131f5(0x245)](getActiveFeatureId);if(!_0x3ab447)throw new Error(_0x3e0454[_0x2131f5(0x243)]);const _0x3df295=await _0x3e0454[_0x2131f5(0x1c1)](getFeature,_0x3ab447);if(!_0x3df295[_0x2131f5(0x251)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x3f597b}=await listFeatureSessions(_0x3ab447),_0x34bf6d=_0x3f597b[_0x2131f5(0x24b)](_0xb9ad60=>_0xb9ad60['id']===_0x3df295[_0x2131f5(0x251)]);if(!_0x34bf6d)throw new Error(_0x2131f5(0x260));if(_0x3e0454['owsuj'](_0x34bf6d['status'],'completed')){console[_0x2131f5(0x25c)](_0x3e0454['ZFwCC']);return;}if(_0x3e0454[_0x2131f5(0x1e3)](_0x34bf6d[_0x2131f5(0x20c)],_0x3e0454[_0x2131f5(0x225)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x34bf6d['status']);console['log']('\x0aConcluding\x20session...'),await _0x3e0454['ZBdnU'](concludeSession,_0x3ab447,_0x3df295[_0x2131f5(0x251)]),console['log']('\x0a✅\x20Session\x20'+_0x34bf6d['iteration']+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x2e0727){const _0x1666ba=_0x5cb4dc,_0x34b223={'qHUpb':_0x1666ba(0x1d6),'zrwxB':function(_0x798575,_0x3ad1ef){return _0x798575===_0x3ad1ef;},'qYmiI':_0x1666ba(0x23a),'VNVdg':_0x1666ba(0x272)},_0x572ed3=_0x2e0727||await getActiveFeatureId();if(!_0x572ed3)throw new Error(_0x34b223['qHUpb']);const _0x515441=await getFeature(_0x572ed3);console['log'](_0x1666ba(0x202)+_0x515441['name']+'\x0a');const {sessions:_0x2a0826}=await listFeatureSessions(_0x572ed3);if(_0x2a0826[_0x1666ba(0x24e)]===0x0){console[_0x1666ba(0x25c)](_0x1666ba(0x25f));return;}for(const _0x5b6e14 of _0x2a0826){const _0x259071=_0x34b223['zrwxB'](_0x5b6e14[_0x1666ba(0x20c)],_0x34b223[_0x1666ba(0x221)])?'✅':_0x5b6e14['status']===_0x34b223[_0x1666ba(0x240)]?'🔄':'▶️';console['log'](_0x259071+_0x1666ba(0x223)+_0x5b6e14[_0x1666ba(0x259)]+'\x20('+_0x5b6e14['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x5b6e14[_0x1666ba(0x20c)]),console[_0x1666ba(0x25c)](_0x1666ba(0x215)+new Date(_0x5b6e14['createdAt'])[_0x1666ba(0x269)]()),_0x5b6e14['completedAt']&&console[_0x1666ba(0x25c)](_0x1666ba(0x1e1)+new Date(_0x5b6e14['completedAt'])[_0x1666ba(0x269)]()),console['log']('');}}export async function featureAddScenario(_0x1d4f8d,_0x234893){const _0x38c36f=_0x5cb4dc,_0x212155={'IymiH':function(_0x8d10cc){return _0x8d10cc();},'Kdlua':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','VTJLR':function(_0x2c598a,_0x52de85,_0x94d3d2){return _0x2c598a(_0x52de85,_0x94d3d2);},'goBLW':function(_0x251440,_0x599aa7){return _0x251440(_0x599aa7);}},_0x567abb=_0x234893||await _0x212155[_0x38c36f(0x246)](getActiveFeatureId);if(!_0x567abb)throw new Error(_0x212155['Kdlua']);const _0x3091ba=await getFeature(_0x567abb);if(_0x3091ba['latestReview']&&!_0x3091ba[_0x38c36f(0x248)][_0x38c36f(0x244)])throw new Error(_0x38c36f(0x1e6)+_0x3091ba[_0x38c36f(0x1fd)]);await _0x212155['VTJLR'](createChecklistItem,_0x567abb,_0x1d4f8d);const _0xf83385=await _0x212155[_0x38c36f(0x275)](getFeature,_0x567abb);console[_0x38c36f(0x25c)](_0x38c36f(0x241)),_0x212155[_0x38c36f(0x204)](displayFeature,_0xf83385,_0xf83385[_0x38c36f(0x23f)]);}export async function featureEditScenario(_0x45dd50,_0x57a850){const _0x258497=_0x5cb4dc,_0x2424c0={'WgGZX':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','rsAiO':function(_0x32120f,_0x5674b0){return _0x32120f(_0x5674b0);},'hOmhA':_0x258497(0x1ea),'yfGYO':function(_0x3f5319,_0x39153f){return _0x3f5319===_0x39153f;},'eNMrT':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','BLGXa':'\x0aAvailable\x20scenarios:','yLiUt':function(_0x25e01f,_0x3ca58f){return _0x25e01f-_0x3ca58f;},'mHPDv':function(_0x54f71f,_0x368a9a){return _0x54f71f>=_0x368a9a;},'lBMvt':function(_0x21a989,_0x172622){return _0x21a989<_0x172622;},'aZNeP':function(_0x5cf938,_0x245fe8){return _0x5cf938+_0x245fe8;}},_0x34a691=_0x57a850['id']||await getActiveFeatureId();!_0x34a691&&(console[_0x258497(0x1e0)](_0x2424c0[_0x258497(0x277)]),console['error'](_0x258497(0x1f4)),process[_0x258497(0x283)](0x1));const _0x542d46=await _0x2424c0[_0x258497(0x25a)](getFeature,_0x34a691);_0x542d46[_0x258497(0x248)]&&!_0x542d46[_0x258497(0x248)][_0x258497(0x244)]&&(console[_0x258497(0x1e0)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x258497(0x1e0)](_0x2424c0[_0x258497(0x1c8)]),console['error']('\x20\x20'+_0x542d46[_0x258497(0x1fd)]),process['exit'](0x1));const _0x12e8d0=_0x542d46[_0x258497(0x23f)]||[];_0x12e8d0['length']===0x0&&(console[_0x258497(0x1e0)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x2424c0[_0x258497(0x27e)](_0x57a850['scenario'],undefined)){console['error'](_0x2424c0['eNMrT']),console['log'](_0x2424c0['BLGXa']);for(let _0xf31219=0x0;_0xf31219<_0x12e8d0['length'];_0xf31219++){console[_0x258497(0x25c)]('\x20\x20'+(_0xf31219+0x1)+'.\x20'+_0x12e8d0[_0xf31219][_0x258497(0x218)]);}process['exit'](0x1);}const _0x114bd3=_0x2424c0['yLiUt'](_0x57a850['scenario'],0x1);if(_0x114bd3<0x0||_0x2424c0[_0x258497(0x25d)](_0x114bd3,_0x12e8d0[_0x258497(0x24e)])){console[_0x258497(0x1e0)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x57a850['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x12e8d0['length']+'\x20scenarios.'),console['log'](_0x2424c0[_0x258497(0x237)]);for(let _0x4264dc=0x0;_0x2424c0['lBMvt'](_0x4264dc,_0x12e8d0['length']);_0x4264dc++){console[_0x258497(0x25c)]('\x20\x20'+_0x2424c0['aZNeP'](_0x4264dc,0x1)+'.\x20'+_0x12e8d0[_0x4264dc][_0x258497(0x218)]);}process['exit'](0x1);}const _0x1dfb81=_0x12e8d0[_0x114bd3];await updateChecklistItem(_0x34a691,_0x1dfb81['id'],{'description':_0x45dd50});const _0x960218=await getFeature(_0x34a691);console[_0x258497(0x25c)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x960218,_0x960218[_0x258497(0x23f)]);}async function downloadFeedbackImage(_0x44ffb3,_0x152d84){const _0x4707d8=_0x5cb4dc,_0x48fd54={'jdJPA':function(_0x5ac17e){return _0x5ac17e();},'emINF':function(_0x3e27d1,_0x28a5e1,_0x1e45e2){return _0x3e27d1(_0x28a5e1,_0x1e45e2);},'paIBG':function(_0x36d3da,_0xf3d95d,_0xe0f4b3){return _0x36d3da(_0xf3d95d,_0xe0f4b3);}};try{const _0x36deb7=join(_0x48fd54[_0x4707d8(0x1ec)](getRangerDir),'feedback-images');await _0x48fd54['emINF'](mkdir,_0x36deb7,{'recursive':!![]});const _0x235dc1=_0x48fd54[_0x4707d8(0x216)](join,_0x36deb7,'comment_'+_0x152d84+'.png'),_0x4278e5=await fetch(_0x44ffb3);if(!_0x4278e5['ok'])return null;const _0xbc1a73=Buffer[_0x4707d8(0x27b)](await _0x4278e5['arrayBuffer']());return await writeFile(_0x235dc1,_0xbc1a73),_0x235dc1;}catch{return null;}}export async function featureGetReview(_0x4477e5){const _0x34abd4=_0x5cb4dc,_0xdbf136={'ErWcI':function(_0x5d8712){return _0x5d8712();},'QMZdK':function(_0x7969ef,_0x2c361c){return _0x7969ef(_0x2c361c);},'UnNWI':function(_0x5508a2,_0xf882de){return _0x5508a2===_0xf882de;},'PpLTC':_0x34abd4(0x280),'iFbiT':function(_0x4a8c40,_0x12ab52){return _0x4a8c40<_0x12ab52;},'dSWbu':function(_0x4da2ba,_0x5f433e){return _0x4da2ba>_0x5f433e;},'Tawya':function(_0x1937b1,_0x285a21){return _0x1937b1>_0x285a21;},'TBaMx':function(_0x50cdf0,_0x465a72){return _0x50cdf0+_0x465a72;},'ZfQUv':_0x34abd4(0x1db),'ePFgO':'short','BkRAx':'Unknown','thlKw':_0x34abd4(0x1da),'uunWZ':function(_0x2c8535,_0x4fe37d){return _0x2c8535>=_0x4fe37d;}},_0x3841c7=_0x4477e5||await _0xdbf136['ErWcI'](getActiveFeatureId);if(!_0x3841c7)throw new Error(_0x34abd4(0x25e));const _0x5f3938=await _0xdbf136[_0x34abd4(0x1c0)](getFeature,_0x3841c7),{items:_0x1f0394}=await getActionItems(_0x3841c7);console['log'](_0x34abd4(0x233)+_0x5f3938['name']+'\x20('+_0x5f3938['id']+')\x0a');if(_0xdbf136[_0x34abd4(0x23e)](_0x1f0394['length'],0x0)){console[_0x34abd4(0x25c)](_0xdbf136[_0x34abd4(0x1f7)]);return;}for(let _0x4573d0=0x0;_0xdbf136['iFbiT'](_0x4573d0,_0x1f0394[_0x34abd4(0x24e)]);_0x4573d0++){const _0x154c60=_0x1f0394[_0x4573d0],_0x22330e=_0xdbf136[_0x34abd4(0x249)](_0x154c60[_0x34abd4(0x238)],0x1)?_0x34abd4(0x1f9)+_0x154c60['version']+')':'',_0x4e40bb=await getItemFeedback(_0x3841c7,_0x154c60['id']);if(_0xdbf136['Tawya'](_0x4e40bb['unaddressedComments']['length'],0x0)){console[_0x34abd4(0x25c)](_0x34abd4(0x1f1)+_0xdbf136[_0x34abd4(0x224)](_0x4573d0,0x1)+':\x20\x22'+_0x154c60['description']+'\x22'+_0x22330e+_0x34abd4(0x23d)+_0x4e40bb[_0x34abd4(0x234)][_0x34abd4(0x24e)]+'\x20unaddressed\x20comment(s)');for(const _0x3a472e of _0x4e40bb['unaddressedComments']){const _0x4f99d3=new Date(_0x3a472e[_0x34abd4(0x1d9)])['toLocaleDateString'](_0xdbf136[_0x34abd4(0x1cd)],{'month':_0xdbf136['ePFgO'],'day':_0x34abd4(0x1de)}),_0x3a28a7=_0x3a472e[_0x34abd4(0x1d7)]||_0x3a472e['authorEmail']||_0xdbf136[_0x34abd4(0x255)];console['log']('\x20\x20💬\x20'+_0x3a28a7+'\x20('+_0x4f99d3+'):\x20\x22'+_0x3a472e['content']+'\x22');if(_0x3a472e['assetUrl']){const _0x506fd0=await downloadFeedbackImage(_0x3a472e[_0x34abd4(0x1f6)],_0x3a472e['id']);_0x506fd0&&console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x506fd0);}if(_0x3a472e['domRef']){const _0x142a45=_0x3a472e[_0x34abd4(0x253)]['selector'][_0x34abd4(0x211)](_0xdbf136[_0x34abd4(0x22a)])[_0x34abd4(0x27c)]()?.[_0x34abd4(0x211)](':')[0x0]||'element',_0x6f8745=_0x3a472e['domRef'][_0x34abd4(0x258)]?'\x20\x22'+_0x3a472e[_0x34abd4(0x253)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x34abd4(0x25c)](_0x34abd4(0x209)+_0x142a45+'>'+_0x6f8745),console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3a472e['domRef']['selector']);}else{if(_0x3a472e[_0x34abd4(0x205)]){const _0x29637a=_0x3a472e[_0x34abd4(0x205)]['coordinates'];_0xdbf136[_0x34abd4(0x23e)](_0x3a472e[_0x34abd4(0x205)][_0x34abd4(0x274)],_0x34abd4(0x1eb))&&_0xdbf136['uunWZ'](_0x29637a[_0x34abd4(0x24e)],0x2)?console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x29637a[0x0][_0x34abd4(0x26c)](0x2)+',\x20'+_0x29637a[0x1][_0x34abd4(0x26c)](0x2)+')'):console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3a472e[_0x34abd4(0x205)]['type']+_0x34abd4(0x1ed)+_0x29637a[_0x34abd4(0x21a)](_0x57479c=>_0x57479c[_0x34abd4(0x26c)](0x2))['join'](',\x20')+']');}}}if(_0x4e40bb['canonicalFlow']){console[_0x34abd4(0x25c)](_0x34abd4(0x282));for(const _0x3e960a of _0x4e40bb[_0x34abd4(0x1d1)][_0x34abd4(0x211)]('\x0a')){console['log'](_0x34abd4(0x20d)+_0x3e960a);}}}else console[_0x34abd4(0x25c)](_0x34abd4(0x1f1)+(_0x4573d0+0x1)+':\x20\x22'+_0x154c60[_0x34abd4(0x218)]+'\x22'+_0x22330e+'\x20—\x20no\x20comments'),console[_0x34abd4(0x25c)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x34abd4(0x25c)]('');}}export async function featureDelete(_0x2f1e3e){const _0x154889=_0x5cb4dc,_0x2b9583={'LseBU':function(_0x3f3735){return _0x3f3735();},'FhdeD':function(_0x5b7775,_0x437347){return _0x5b7775(_0x437347);},'gfzKS':function(_0x41a877,_0x335257){return _0x41a877+_0x335257;},'cRkOr':_0x154889(0x25b)},_0x34a636=_0x2f1e3e||await _0x2b9583['LseBU'](getActiveFeatureId);if(!_0x34a636)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 _0x270d19=await getFeature(_0x34a636);await _0x2b9583[_0x154889(0x250)](softDeleteFeature,_0x34a636),console[_0x154889(0x25c)](_0x154889(0x271)+_0x270d19['name']+'\x20('+_0x34a636+')'),console[_0x154889(0x25c)](_0x2b9583['gfzKS'](_0x2b9583[_0x154889(0x226)],_0x34a636));}export async function featureRestore(_0x508e25){const _0x1cf679=_0x5cb4dc,_0x46800f={'hftcx':function(_0x5da1ee,_0x1b78cf){return _0x5da1ee(_0x1b78cf);},'NMxNw':function(_0x3b3039,_0x191154,_0x2b5629){return _0x3b3039(_0x191154,_0x2b5629);}};await _0x46800f['hftcx'](restoreFeature,_0x508e25);const _0x2bb78b=await getFeature(_0x508e25);console[_0x1cf679(0x25c)](_0x1cf679(0x229)+_0x2bb78b['name']+'\x20('+_0x508e25+')'),_0x46800f['NMxNw'](displayFeature,_0x2bb78b,_0x2bb78b[_0x1cf679(0x23f)]);}
@@ -1 +1 @@
1
- (function(_0x158797,_0x2e9a7e){const _0x2a7eb8=_0x347e,_0x481261=_0x158797();while(!![]){try{const _0x4a384b=-parseInt(_0x2a7eb8(0x196))/0x1*(-parseInt(_0x2a7eb8(0x19e))/0x2)+parseInt(_0x2a7eb8(0x1a1))/0x3+-parseInt(_0x2a7eb8(0x193))/0x4*(-parseInt(_0x2a7eb8(0x195))/0x5)+parseInt(_0x2a7eb8(0x19f))/0x6*(-parseInt(_0x2a7eb8(0x198))/0x7)+-parseInt(_0x2a7eb8(0x19c))/0x8+-parseInt(_0x2a7eb8(0x1a0))/0x9+parseInt(_0x2a7eb8(0x19d))/0xa*(parseInt(_0x2a7eb8(0x19a))/0xb);if(_0x4a384b===_0x2e9a7e)break;else _0x481261['push'](_0x481261['shift']());}catch(_0x35bafc){_0x481261['push'](_0x481261['shift']());}}}(_0x4fdd,0xe9158));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};export async function hook(_0x587a01,_0x7c7071){const _0x1f82ba=_0x347e,_0x349803=HOOKS[_0x587a01];if(!_0x349803){const _0x53ac51=Object[_0x1f82ba(0x199)](HOOKS)[_0x1f82ba(0x197)](',\x20');console[_0x1f82ba(0x192)](_0x1f82ba(0x194)+_0x587a01),console['error']('Valid\x20hooks:\x20'+_0x53ac51),process[_0x1f82ba(0x19b)](0x1);}await _0x349803(_0x7c7071);}function _0x347e(_0x3cd249,_0x192b10){_0x3cd249=_0x3cd249-0x192;const _0x4fdd4d=_0x4fdd();let _0x347eb6=_0x4fdd4d[_0x3cd249];return _0x347eb6;}function _0x4fdd(){const _0x2438f0=['792286SrqlSu','exit','10476568OPTCge','140RDfJvC','136718FXASuY','5314818EHvdIr','2200914WXXsVw','4547442BeVVRA','error','474020iWXQAV','Unknown\x20hook:\x20','5fufKKS','11NaZzRb','join','7evNRWw','keys'];_0x4fdd=function(){return _0x2438f0;};return _0x4fdd();}
1
+ (function(_0x24410e,_0x591f18){const _0x2b2c28=_0xc077,_0x495771=_0x24410e();while(!![]){try{const _0x1e7d13=-parseInt(_0x2b2c28(0x9f))/0x1*(parseInt(_0x2b2c28(0xa0))/0x2)+-parseInt(_0x2b2c28(0x9a))/0x3+parseInt(_0x2b2c28(0x98))/0x4*(parseInt(_0x2b2c28(0x9d))/0x5)+-parseInt(_0x2b2c28(0x9e))/0x6*(parseInt(_0x2b2c28(0x99))/0x7)+-parseInt(_0x2b2c28(0x9b))/0x8*(parseInt(_0x2b2c28(0xa2))/0x9)+-parseInt(_0x2b2c28(0x96))/0xa*(parseInt(_0x2b2c28(0x94))/0xb)+-parseInt(_0x2b2c28(0x95))/0xc*(-parseInt(_0x2b2c28(0xa1))/0xd);if(_0x1e7d13===_0x591f18)break;else _0x495771['push'](_0x495771['shift']());}catch(_0x40b126){_0x495771['push'](_0x495771['shift']());}}}(_0x3f8b,0xf10c1));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0xc077(_0x16f3fe,_0x11baf5){_0x16f3fe=_0x16f3fe-0x93;const _0x3f8b46=_0x3f8b();let _0xc0771f=_0x3f8b46[_0x16f3fe];return _0xc0771f;}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};export async function hook(_0x3db4f3,_0x1dfa4a){const _0x26a66c=_0xc077,_0x386a08=HOOKS[_0x3db4f3];if(!_0x386a08){const _0x2d2d3a=Object[_0x26a66c(0x93)](HOOKS)[_0x26a66c(0x9c)](',\x20');console[_0x26a66c(0x97)]('Unknown\x20hook:\x20'+_0x3db4f3),console[_0x26a66c(0x97)]('Valid\x20hooks:\x20'+_0x2d2d3a),process['exit'](0x1);}await _0x386a08(_0x1dfa4a);}function _0x3f8b(){const _0x10d3c1=['4174821wPJKqP','328EArYLN','join','1573235RddSKz','6seYVne','335557ABcYUg','2jHNdXh','195260xkCeaO','102474kgUWqG','keys','1024199erHCyF','4824NiQjPR','150BaGSLm','error','4VMQGgm','12423131coFUrq'];_0x3f8b=function(){return _0x10d3c1;};return _0x3f8b();}
@@ -1 +1 @@
1
- function _0x31b7(){const _0x342ca7=['2933016gyTcUq','ONxtk','6MgFded','55LjvLVH','11ZaDPtR','\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.','2099391cmbxYE','99834jkqaNL','36NhomVS','session_id','1636BUvxJL','193491NQvOcC','2413284LGiIJy','240txjqQg','27067TZNEal'];_0x31b7=function(){return _0x342ca7;};return _0x31b7();}const _0x45ec8c=_0x5720;(function(_0x3b1f6d,_0x37d21b){const _0x1c7b62=_0x5720,_0x5e8674=_0x3b1f6d();while(!![]){try{const _0x3809de=-parseInt(_0x1c7b62(0x149))/0x1*(-parseInt(_0x1c7b62(0x143))/0x2)+-parseInt(_0x1c7b62(0x14c))/0x3*(parseInt(_0x1c7b62(0x145))/0x4)+-parseInt(_0x1c7b62(0x14d))/0x5*(-parseInt(_0x1c7b62(0x142))/0x6)+parseInt(_0x1c7b62(0x150))/0x7+-parseInt(_0x1c7b62(0x14a))/0x8+parseInt(_0x1c7b62(0x146))/0x9*(-parseInt(_0x1c7b62(0x148))/0xa)+parseInt(_0x1c7b62(0x14e))/0xb*(parseInt(_0x1c7b62(0x147))/0xc);if(_0x3809de===_0x37d21b)break;else _0x5e8674['push'](_0x5e8674['shift']());}catch(_0x38cf59){_0x5e8674['push'](_0x5e8674['shift']());}}}(_0x31b7,0x4645a));function _0x5720(_0x3a56dc,_0x3cc715){_0x3a56dc=_0x3a56dc-0x142;const _0x31b7d6=_0x31b7();let _0x572067=_0x31b7d6[_0x3a56dc];return _0x572067;}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x45ec8c(0x14f);export async function autoPrompt(){const _0x4fd940=_0x45ec8c,_0x7ce3de={'ONxtk':function(_0x48fa4e,_0x526ff1){return _0x48fa4e(_0x526ff1);}},_0x19cc84=await readHookInput(),_0x2ee195=_0x19cc84?.[_0x4fd940(0x144)];if(!_0x2ee195)return;if(isSessionEnabled(_0x2ee195)||_0x7ce3de[_0x4fd940(0x14b)](hasSessionBeenPrompted,_0x2ee195))return;markSessionPrompted(_0x2ee195),console['log'](AUTO_PROMPT_TEXT);}
1
+ function _0x4130(){const _0x495101=['865865ERgEtg','2057256bpuZPG','11QRZFMk','4dLTtBq','\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.','log','46518VFXjDO','19295090fRimLB','6MhwrmC','7JGQGIu','session_id','2117763JtVduO','1906445pcxtIQ','851344bqyEQM'];_0x4130=function(){return _0x495101;};return _0x4130();}const _0x2d5e75=_0x5377;(function(_0x400e30,_0x16c7f4){const _0x4ec348=_0x5377,_0x5adabf=_0x400e30();while(!![]){try{const _0x1e3c46=-parseInt(_0x4ec348(0x6f))/0x1+-parseInt(_0x4ec348(0x72))/0x2*(-parseInt(_0x4ec348(0x67))/0x3)+parseInt(_0x4ec348(0x6e))/0x4+parseInt(_0x4ec348(0x6d))/0x5*(-parseInt(_0x4ec348(0x69))/0x6)+-parseInt(_0x4ec348(0x6a))/0x7*(parseInt(_0x4ec348(0x70))/0x8)+-parseInt(_0x4ec348(0x6c))/0x9+-parseInt(_0x4ec348(0x68))/0xa*(-parseInt(_0x4ec348(0x71))/0xb);if(_0x1e3c46===_0x16c7f4)break;else _0x5adabf['push'](_0x5adabf['shift']());}catch(_0x5f2f5c){_0x5adabf['push'](_0x5adabf['shift']());}}}(_0x4130,0x69e4b));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x5377(_0x1aefa1,_0x560efb){_0x1aefa1=_0x1aefa1-0x67;const _0x413018=_0x4130();let _0x5377d3=_0x413018[_0x1aefa1];return _0x5377d3;}const AUTO_PROMPT_TEXT=_0x2d5e75(0x73);export async function autoPrompt(){const _0x9a223a=_0x2d5e75,_0x118d24={'kxIvy':function(_0x531bf9){return _0x531bf9();},'FFIDn':function(_0x3b5e05,_0x2125da){return _0x3b5e05(_0x2125da);}},_0x266400=await _0x118d24['kxIvy'](readHookInput),_0x5aafc3=_0x266400?.[_0x9a223a(0x6b)];if(!_0x5aafc3)return;if(_0x118d24['FFIDn'](isSessionEnabled,_0x5aafc3)||_0x118d24['FFIDn'](hasSessionBeenPrompted,_0x5aafc3))return;markSessionPrompted(_0x5aafc3),console[_0x9a223a(0x74)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x3a4ab0,_0x129264){const _0x1aa57b=_0x34ce,_0xbf7686=_0x3a4ab0();while(!![]){try{const _0x1715c6=parseInt(_0x1aa57b(0x6d))/0x1*(parseInt(_0x1aa57b(0x77))/0x2)+parseInt(_0x1aa57b(0x72))/0x3*(-parseInt(_0x1aa57b(0x73))/0x4)+-parseInt(_0x1aa57b(0x70))/0x5+-parseInt(_0x1aa57b(0x74))/0x6+parseInt(_0x1aa57b(0x7c))/0x7+-parseInt(_0x1aa57b(0x75))/0x8+parseInt(_0x1aa57b(0x6f))/0x9*(parseInt(_0x1aa57b(0x76))/0xa);if(_0x1715c6===_0x129264)break;else _0xbf7686['push'](_0xbf7686['shift']());}catch(_0x9ffa25){_0xbf7686['push'](_0xbf7686['shift']());}}}(_0xa8d4,0x714d1));function _0xa8d4(){const _0x5075a2=['15461170gWdhhi','81686xKodxJ','AkGZz','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','error','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','1124018yUGQav','HYqNE','LilWv','12blAQoC','Error:\x20No\x20session\x20ID\x20available.','9BWEkMm','1741505nQoyda','main','7716NRXify','608fqYhwL','4419852ImLrwL','2054712FkoRfi'];_0xa8d4=function(){return _0x5075a2;};return _0xa8d4();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x34ce(_0x44d4aa,_0x53247a){_0x44d4aa=_0x44d4aa-0x6d;const _0xa8d4f4=_0xa8d4();let _0x34cea5=_0xa8d4f4[_0x44d4aa];return _0x34cea5;}import{printBlock}from'./output.js';export async function disable(_0x3ef02e){const _0x2b0065=_0x34ce,_0x132324={'lnjHb':_0x2b0065(0x71),'AkGZz':'master','LilWv':function(_0x2b298b,_0x10196f){return _0x2b298b(_0x10196f);},'HYqNE':function(_0x50e84f,_0x42d992){return _0x50e84f!==_0x42d992;}},_0x3a1132=_0x3ef02e||process['env']['CLAUDE_SESSION_ID']||'';!_0x3a1132&&(console['error'](_0x2b0065(0x6e)),console[_0x2b0065(0x7a)](_0x2b0065(0x79)),process['exit'](0x1));disableSession(_0x3a1132);const _0x52fe26=getCurrentBranch();_0x52fe26&&_0x52fe26!==_0x132324['lnjHb']&&_0x52fe26!==_0x132324[_0x2b0065(0x78)]&&_0x132324['LilWv'](disableBranch,_0x52fe26),_0x132324[_0x2b0065(0x7e)](printBlock,_0x2b0065(0x7b)+(_0x52fe26&&_0x132324[_0x2b0065(0x7d)](_0x52fe26,_0x132324['lnjHb'])&&_0x52fe26!==_0x132324['AkGZz']?'\x20and\x20branch\x20\x27'+_0x52fe26+'\x27':'')+'.\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`.');}
1
+ function _0x2800(){const _0x3bc392=['30PyfRLF','266178BcjQfu','\x20and\x20branch\x20\x27','543lCGIKX','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','error','xyjVM','master','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','198000nDMREh','802032rBaGtN','8MvEfiw','51128GxjvKT','682QIBBIz','9462594rPggmb','13975839CqFmQN','env','lgDFi'];_0x2800=function(){return _0x3bc392;};return _0x2800();}function _0x4d28(_0x1d4632,_0x39dae9){_0x1d4632=_0x1d4632-0x12c;const _0x280070=_0x2800();let _0x4d2887=_0x280070[_0x1d4632];return _0x4d2887;}(function(_0x508a0f,_0x294b58){const _0x22335a=_0x4d28,_0x4bf28f=_0x508a0f();while(!![]){try{const _0x7d6c3a=-parseInt(_0x22335a(0x13c))/0x1+parseInt(_0x22335a(0x136))/0x2*(-parseInt(_0x22335a(0x12c))/0x3)+parseInt(_0x22335a(0x133))/0x4*(parseInt(_0x22335a(0x13b))/0x5)+-parseInt(_0x22335a(0x137))/0x6+parseInt(_0x22335a(0x135))/0x7+-parseInt(_0x22335a(0x134))/0x8*(-parseInt(_0x22335a(0x138))/0x9)+-parseInt(_0x22335a(0x132))/0xa;if(_0x7d6c3a===_0x294b58)break;else _0x4bf28f['push'](_0x4bf28f['shift']());}catch(_0x5eb5dc){_0x4bf28f['push'](_0x4bf28f['shift']());}}}(_0x2800,0xccb19));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x261c4d){const _0x1cdeaf=_0x4d28,_0x7ab8c4={'uiWdp':function(_0x169a90,_0x3629e5){return _0x169a90(_0x3629e5);},'lgDFi':function(_0x36414f){return _0x36414f();},'pMRKi':function(_0x30726c,_0x2b44e9){return _0x30726c!==_0x2b44e9;},'xyjVM':function(_0xa87137,_0x4bf16c){return _0xa87137(_0x4bf16c);},'YSqLB':'main'},_0x2adf48=_0x261c4d||process[_0x1cdeaf(0x139)]['CLAUDE_SESSION_ID']||'';!_0x2adf48&&(console[_0x1cdeaf(0x12e)]('Error:\x20No\x20session\x20ID\x20available.'),console[_0x1cdeaf(0x12e)](_0x1cdeaf(0x12d)),process['exit'](0x1));_0x7ab8c4['uiWdp'](disableSession,_0x2adf48);const _0x55c4af=_0x7ab8c4[_0x1cdeaf(0x13a)](getCurrentBranch);_0x55c4af&&_0x7ab8c4['pMRKi'](_0x55c4af,'main')&&_0x55c4af!==_0x1cdeaf(0x130)&&_0x7ab8c4[_0x1cdeaf(0x12f)](disableBranch,_0x55c4af),_0x7ab8c4['xyjVM'](printBlock,_0x1cdeaf(0x131)+(_0x55c4af&&_0x55c4af!==_0x7ab8c4['YSqLB']&&_0x7ab8c4['pMRKi'](_0x55c4af,_0x1cdeaf(0x130))?_0x1cdeaf(0x13d)+_0x55c4af+'\x27':'')+'.\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`.');}
@@ -1 +1 @@
1
- (function(_0x37d70b,_0xe002f3){const _0x27907b=_0x54b9,_0x8b0397=_0x37d70b();while(!![]){try{const _0x2c8f2d=parseInt(_0x27907b(0x10c))/0x1+-parseInt(_0x27907b(0x111))/0x2+-parseInt(_0x27907b(0x11c))/0x3+parseInt(_0x27907b(0x119))/0x4+parseInt(_0x27907b(0x11f))/0x5+-parseInt(_0x27907b(0x11a))/0x6*(parseInt(_0x27907b(0x10f))/0x7)+-parseInt(_0x27907b(0x112))/0x8*(-parseInt(_0x27907b(0x109))/0x9);if(_0x2c8f2d===_0xe002f3)break;else _0x8b0397['push'](_0x8b0397['shift']());}catch(_0x4c5b7c){_0x8b0397['push'](_0x8b0397['shift']());}}}(_0xdd8b,0x32d61));function _0xdd8b(){const _0x5ce02b=['420EdzQgl','env','224846SlkbIm','304vaZWBy','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','GUUIO','exit','\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`.','uLbWk','ywnTU','749840fFyMza','28338DkmsTk','ranger\x20setup\x20--opencode','961083gZMIBT','error','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','318700KIbqSE','LsiAt','156051Gvxbkl','master','IuDVA','14307WlRCTL','ranger\x20setup','Error:\x20No\x20session\x20ID\x20available.'];_0xdd8b=function(){return _0x5ce02b;};return _0xdd8b();}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x54b9(_0x4dc0a,_0x313034){_0x4dc0a=_0x4dc0a-0x109;const _0xdd8b6c=_0xdd8b();let _0x54b980=_0xdd8b6c[_0x4dc0a];return _0x54b980;}export async function enable(_0x148831){const _0xfba995=_0x54b9,_0x52be50={'GUUIO':_0xfba995(0x11e),'IuDVA':_0xfba995(0x113),'LsiAt':function(_0x3efe67,_0x2b43d5){return _0x3efe67(_0x2b43d5);},'kETJi':function(_0x27fe38){return _0x27fe38();},'ywnTU':function(_0x3b4c6e){return _0x3b4c6e();},'uLbWk':'main','SVCLD':function(_0x2db06a,_0x4cfc6b){return _0x2db06a!==_0x4cfc6b;},'yVBFV':_0xfba995(0x10a)},_0x1a0ae7=_0x148831||process[_0xfba995(0x110)]['CLAUDE_SESSION_ID']||'';!_0x1a0ae7&&(console[_0xfba995(0x11d)](_0xfba995(0x10e)),console['error']('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process[_0xfba995(0x115)](0x1));const _0x15c22c=Boolean(_0x148831),_0xb413a2=await getToken();if(!_0xb413a2){const _0x3132d1=_0x15c22c?_0xfba995(0x11b):_0xfba995(0x10d),_0x56f484=_0x15c22c?_0x52be50[_0xfba995(0x114)]:_0x52be50[_0xfba995(0x10b)];_0x52be50['LsiAt'](printBlock,'#\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`'+_0x3132d1+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x56f484);return;}try{await _0x52be50['kETJi'](update);}catch{}_0x52be50[_0xfba995(0x120)](enableSession,_0x1a0ae7);const _0x4519de=_0x52be50[_0xfba995(0x118)](getCurrentBranch),_0x1dc2a3=_0x4519de&&_0x4519de!==_0x52be50[_0xfba995(0x117)]&&_0x52be50['SVCLD'](_0x4519de,_0x52be50['yVBFV'])?'\x0a\x0a**Branch\x20\x27'+_0x4519de+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x36a432=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x1dc2a3+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x36a432+_0xfba995(0x116));}
1
+ (function(_0x46eea7,_0x468f30){const _0x570c71=_0x2c4b,_0xec0bbd=_0x46eea7();while(!![]){try{const _0x483859=parseInt(_0x570c71(0x14b))/0x1+-parseInt(_0x570c71(0x159))/0x2*(-parseInt(_0x570c71(0x154))/0x3)+parseInt(_0x570c71(0x148))/0x4*(parseInt(_0x570c71(0x147))/0x5)+-parseInt(_0x570c71(0x15a))/0x6+-parseInt(_0x570c71(0x15d))/0x7+-parseInt(_0x570c71(0x15c))/0x8+parseInt(_0x570c71(0x151))/0x9*(-parseInt(_0x570c71(0x152))/0xa);if(_0x483859===_0x468f30)break;else _0xec0bbd['push'](_0xec0bbd['shift']());}catch(_0x4b0f88){_0xec0bbd['push'](_0xec0bbd['shift']());}}}(_0x356c,0x2ce1a));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x356c(){const _0x4426dc=['147129QBlcMD','#\x20RANGER\x20ENABLED','env','AbmaC','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','12sneKaQ','345942zTkpKM','lTTML','763624ltqzax','474124JwgfBo','452495AlOxNr','16xvQLCo','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','master','126266rdYiKU','GRVmp','\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`.','ranger\x20setup','error','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','30636lhPUoN','1110EkKBFe','yCcNp'];_0x356c=function(){return _0x4426dc;};return _0x356c();}function _0x2c4b(_0x7c80ce,_0x31403b){_0x7c80ce=_0x7c80ce-0x147;const _0x356ccd=_0x356c();let _0x2c4b25=_0x356ccd[_0x7c80ce];return _0x2c4b25;}export async function enable(_0x5aa687){const _0x3c19eb=_0x2c4b,_0x272c84={'yCcNp':'Error:\x20No\x20session\x20ID\x20available.','GRVmp':function(_0xa0bd75,_0x258da0){return _0xa0bd75(_0x258da0);},'hZiHS':_0x3c19eb(0x14e),'AbmaC':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','SSaZL':_0x3c19eb(0x149),'lTTML':function(_0x1bd69d,_0x27163b){return _0x1bd69d!==_0x27163b;},'LnNkD':_0x3c19eb(0x14a),'PwUCi':function(_0x29278b){return _0x29278b();},'bQifT':function(_0x553e1f,_0x1e7bdf){return _0x553e1f(_0x1e7bdf);}},_0x27ae3e=_0x5aa687||process[_0x3c19eb(0x156)]['CLAUDE_SESSION_ID']||'';!_0x27ae3e&&(console[_0x3c19eb(0x14f)](_0x272c84[_0x3c19eb(0x153)]),console['error']('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process['exit'](0x1));const _0x31ee06=_0x272c84[_0x3c19eb(0x14c)](Boolean,_0x5aa687),_0x34e0e9=await getToken();if(!_0x34e0e9){const _0xa03957=_0x31ee06?'ranger\x20setup\x20--opencode':_0x272c84['hZiHS'],_0x12b4a1=_0x31ee06?_0x272c84[_0x3c19eb(0x157)]:_0x272c84['SSaZL'];printBlock('#\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`'+_0xa03957+_0x3c19eb(0x158)+_0x12b4a1);return;}try{await update();}catch{}enableSession(_0x27ae3e);const _0xc0a1df=getCurrentBranch(),_0x3085dc=_0xc0a1df&&_0x272c84[_0x3c19eb(0x15b)](_0xc0a1df,'main')&&_0x272c84['lTTML'](_0xc0a1df,_0x272c84['LnNkD'])?'\x0a\x0a**Branch\x20\x27'+_0xc0a1df+_0x3c19eb(0x150):'',_0x3c032f=_0x272c84['PwUCi'](getRangerSkillContent);_0x272c84['bQifT'](printBlock,_0x3c19eb(0x155)+_0x3085dc+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x3c032f+_0x3c19eb(0x14d));}
@@ -1 +1 @@
1
- function _0x1280(_0x56f5ee,_0x384830){_0x56f5ee=_0x56f5ee-0xd0;const _0xb73d2d=_0xb73d();let _0x1280a6=_0xb73d2d[_0x56f5ee];return _0x1280a6;}(function(_0x494432,_0x273f06){const _0x3b00de=_0x1280,_0x42a256=_0x494432();while(!![]){try{const _0x280305=parseInt(_0x3b00de(0xdc))/0x1*(parseInt(_0x3b00de(0xd5))/0x2)+-parseInt(_0x3b00de(0xd8))/0x3*(-parseInt(_0x3b00de(0xdb))/0x4)+parseInt(_0x3b00de(0xda))/0x5+-parseInt(_0x3b00de(0xd0))/0x6*(parseInt(_0x3b00de(0xd2))/0x7)+-parseInt(_0x3b00de(0xd7))/0x8*(-parseInt(_0x3b00de(0xd4))/0x9)+parseInt(_0x3b00de(0xd9))/0xa*(-parseInt(_0x3b00de(0xd3))/0xb)+-parseInt(_0x3b00de(0xd1))/0xc;if(_0x280305===_0x273f06)break;else _0x42a256['push'](_0x42a256['shift']());}catch(_0x374dc2){_0x42a256['push'](_0x42a256['shift']());}}}(_0xb73d,0xe26b9));import{printBlock,getEnabledSessionId}from'./output.js';function _0xb73d(){const _0x15bf29=['4490343JLlYlx','45TwUnpc','262LqAiXT','===\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===','2096392GNflNK','4632582rtFynW','10bcabeL','1421355wSqpWp','4FfclHn','497CxVUOo','30kZlwJM','2820504zNbZTg','2286403buJmuQ'];_0xb73d=function(){return _0x15bf29;};return _0xb73d();}export async function exitPlanMode(_0x2ce838){const _0x1ad6e7=_0x1280,_0xdf9b32={'XbWTt':function(_0x4172ea,_0x3c6e63){return _0x4172ea(_0x3c6e63);}},_0x237f59=await _0xdf9b32['XbWTt'](getEnabledSessionId,_0x2ce838);if(!_0x237f59)return;_0xdf9b32['XbWTt'](printBlock,_0x1ad6e7(0xd6));}
1
+ (function(_0x4f8a8d,_0x5523db){const _0x514812=_0x3dba,_0x8791df=_0x4f8a8d();while(!![]){try{const _0x456917=-parseInt(_0x514812(0xf5))/0x1+parseInt(_0x514812(0xf4))/0x2*(parseInt(_0x514812(0xf7))/0x3)+parseInt(_0x514812(0xec))/0x4*(parseInt(_0x514812(0xf3))/0x5)+parseInt(_0x514812(0xee))/0x6+-parseInt(_0x514812(0xf2))/0x7*(-parseInt(_0x514812(0xed))/0x8)+-parseInt(_0x514812(0xef))/0x9+-parseInt(_0x514812(0xf1))/0xa;if(_0x456917===_0x5523db)break;else _0x8791df['push'](_0x8791df['shift']());}catch(_0x5e8d4e){_0x8791df['push'](_0x8791df['shift']());}}}(_0x2be2,0x8b972));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3dba(_0x2485f5,_0x2cfe04){_0x2485f5=_0x2485f5-0xec;const _0x2be2c1=_0x2be2();let _0x3dbab8=_0x2be2c1[_0x2485f5];return _0x3dbab8;}function _0x2be2(){const _0x4462d8=['4936584AJeGIq','3024270qgOLMB','dlhUY','6071880qNlgpU','16877xLISDP','2495mhdhTY','5686DWGhWp','444424NXhWYZ','===\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===','42oovhNg','1912SAjLvH','2848lXSJJt'];_0x2be2=function(){return _0x4462d8;};return _0x2be2();}export async function exitPlanMode(_0x2deb00){const _0x225775=_0x3dba,_0x104c25={'dlhUY':function(_0x571c03,_0x3ed5f6){return _0x571c03(_0x3ed5f6);}},_0x58633b=await _0x104c25[_0x225775(0xf0)](getEnabledSessionId,_0x2deb00);if(!_0x58633b)return;_0x104c25[_0x225775(0xf0)](printBlock,_0x225775(0xf6));}
@@ -1 +1 @@
1
- (function(_0x440d9,_0x29a58b){var _0x11ab80=_0x479a,_0x7d867a=_0x440d9();while(!![]){try{var _0x5a7937=-parseInt(_0x11ab80(0x179))/0x1+-parseInt(_0x11ab80(0x180))/0x2*(-parseInt(_0x11ab80(0x182))/0x3)+parseInt(_0x11ab80(0x181))/0x4+-parseInt(_0x11ab80(0x178))/0x5*(parseInt(_0x11ab80(0x17b))/0x6)+-parseInt(_0x11ab80(0x17f))/0x7*(-parseInt(_0x11ab80(0x17a))/0x8)+parseInt(_0x11ab80(0x17e))/0x9*(-parseInt(_0x11ab80(0x17c))/0xa)+parseInt(_0x11ab80(0x17d))/0xb;if(_0x5a7937===_0x29a58b)break;else _0x7d867a['push'](_0x7d867a['shift']());}catch(_0x250620){_0x7d867a['push'](_0x7d867a['shift']());}}}(_0x30a3,0xd8528));function _0x479a(_0xfed972,_0x559461){_0xfed972=_0xfed972-0x178;var _0x30a398=_0x30a3();var _0x479ae7=_0x30a398[_0xfed972];return _0x479ae7;}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x30a3(){var _0x18b53a=['7kHQOtD','22FOwwoA','1871344zfVsSm','143814ycZqUs','5KwptdL','583582auzMPD','121952vEmTEG','2481972kxPSoA','926990CHBNzA','27956324aGvWPm','162qoRxAy'];_0x30a3=function(){return _0x18b53a;};return _0x30a3();}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';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x460a67,_0xaf27aa){var _0x7ecac0=_0x3364,_0xb9e5d3=_0x460a67();while(!![]){try{var _0x2a152f=parseInt(_0x7ecac0(0x1d2))/0x1+parseInt(_0x7ecac0(0x1d3))/0x2+-parseInt(_0x7ecac0(0x1cc))/0x3*(-parseInt(_0x7ecac0(0x1ca))/0x4)+parseInt(_0x7ecac0(0x1cd))/0x5*(parseInt(_0x7ecac0(0x1ce))/0x6)+-parseInt(_0x7ecac0(0x1d4))/0x7+-parseInt(_0x7ecac0(0x1cf))/0x8*(-parseInt(_0x7ecac0(0x1d1))/0x9)+-parseInt(_0x7ecac0(0x1d0))/0xa*(parseInt(_0x7ecac0(0x1cb))/0xb);if(_0x2a152f===_0xaf27aa)break;else _0xb9e5d3['push'](_0xb9e5d3['shift']());}catch(_0x4e2a9d){_0xb9e5d3['push'](_0xb9e5d3['shift']());}}}(_0x44e5,0xe8ab8));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 _0x3364(_0x564120,_0x2c4090){_0x564120=_0x564120-0x1ca;var _0x44e549=_0x44e5();var _0x33648a=_0x44e549[_0x564120];return _0x33648a;}export{enable}from'./enable.js';function _0x44e5(){var _0x204cbf=['440fwMdLu','221217XXRIrA','1270Ptqhzn','38670cawJjX','56XviLgs','1152980xHBcCQ','826749ocJVil','1482782VLkRKr','3508626rbZFko','8440453pNGTot','68BPFYMd'];_0x44e5=function(){return _0x204cbf;};return _0x44e5();}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- (function(_0x286977,_0xd0d893){const _0x44a409=_0x5ae4,_0x511860=_0x286977();while(!![]){try{const _0x5bbd9d=-parseInt(_0x44a409(0x97))/0x1*(parseInt(_0x44a409(0x92))/0x2)+-parseInt(_0x44a409(0x8e))/0x3+-parseInt(_0x44a409(0x93))/0x4+-parseInt(_0x44a409(0x8f))/0x5*(parseInt(_0x44a409(0x91))/0x6)+-parseInt(_0x44a409(0x90))/0x7+parseInt(_0x44a409(0x94))/0x8*(-parseInt(_0x44a409(0x99))/0x9)+parseInt(_0x44a409(0x96))/0xa;if(_0x5bbd9d===_0xd0d893)break;else _0x511860['push'](_0x511860['shift']());}catch(_0x597a88){_0x511860['push'](_0x511860['shift']());}}}(_0x3d9f,0x2dad9));function _0x5ae4(_0x917b73,_0x4f0186){_0x917b73=_0x917b73-0x8d;const _0x3d9fa2=_0x3d9f();let _0x5ae4ac=_0x3d9fa2[_0x917b73];return _0x5ae4ac;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x2e5a3c){const _0x114b46=_0x5ae4;console[_0x114b46(0x95)](_0x2e5a3c);}export async function readHookInput(){const _0x36385c=_0x5ae4;let _0x17d93d='';for await(const _0x4b7fe8 of process[_0x36385c(0x98)]){_0x17d93d+=_0x4b7fe8;}try{return JSON['parse'](_0x17d93d);}catch{return null;}}export async function getEnabledSessionId(_0x2725ad){const _0x4454af=_0x5ae4;if(_0x2725ad)return isSessionEnabled(_0x2725ad)?_0x2725ad:null;const _0x15b6dd=await readHookInput(),_0x37daa2=_0x15b6dd?.[_0x4454af(0x8d)];if(!_0x37daa2||!isSessionEnabled(_0x37daa2))return null;return _0x37daa2;}export async function getEnabledHookContext(_0x13e2ed){const _0x29b9b2={'QtWXm':function(_0x5708a7,_0x4cb7cf){return _0x5708a7(_0x4cb7cf);},'CWNwl':function(_0xb61b59){return _0xb61b59();}};if(_0x13e2ed){if(!_0x29b9b2['QtWXm'](isSessionEnabled,_0x13e2ed))return null;return{'sessionId':_0x13e2ed,'input':{'session_id':_0x13e2ed}};}const _0x15de96=await _0x29b9b2['CWNwl'](readHookInput),_0x1978ae=_0x15de96?.['session_id'];if(!_0x1978ae||!isSessionEnabled(_0x1978ae))return null;return{'sessionId':_0x1978ae,'input':_0x15de96};}function _0x3d9f(){const _0x5ec571=['90JsJlwc','267094UmkpMp','54088DyZoie','9992qWvkes','log','9212770ifyhmH','1KXDfKj','stdin','198CwxxDi','session_id','826980uHfmXp','85775UbaBvw','186536tFyyrl'];_0x3d9f=function(){return _0x5ec571;};return _0x3d9f();}
1
+ (function(_0xc7cce6,_0xcce487){const _0x3469a8=_0x3b9a,_0x160729=_0xc7cce6();while(!![]){try{const _0x5043cb=parseInt(_0x3469a8(0xd5))/0x1+parseInt(_0x3469a8(0xd1))/0x2*(-parseInt(_0x3469a8(0xd7))/0x3)+-parseInt(_0x3469a8(0xd2))/0x4*(parseInt(_0x3469a8(0xcd))/0x5)+-parseInt(_0x3469a8(0xd6))/0x6*(-parseInt(_0x3469a8(0xd8))/0x7)+parseInt(_0x3469a8(0xd0))/0x8+-parseInt(_0x3469a8(0xd9))/0x9*(-parseInt(_0x3469a8(0xd4))/0xa)+-parseInt(_0x3469a8(0xcf))/0xb;if(_0x5043cb===_0xcce487)break;else _0x160729['push'](_0x160729['shift']());}catch(_0x3cefaf){_0x160729['push'](_0x160729['shift']());}}}(_0x443b,0x30d16));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x3bf887){const _0x4c1247=_0x3b9a;console[_0x4c1247(0xd3)](_0x3bf887);}export async function readHookInput(){const _0x5826f9=_0x3b9a;let _0x267f94='';for await(const _0x4478f2 of process[_0x5826f9(0xce)]){_0x267f94+=_0x4478f2;}try{return JSON['parse'](_0x267f94);}catch{return null;}}function _0x3b9a(_0x5d71b8,_0x2cdddf){_0x5d71b8=_0x5d71b8-0xcc;const _0x443b51=_0x443b();let _0x3b9ab6=_0x443b51[_0x5d71b8];return _0x3b9ab6;}export async function getEnabledSessionId(_0x2ceb16){const _0xe45eae=_0x3b9a,_0x387c6a={'woLXj':function(_0x5c5977){return _0x5c5977();}};if(_0x2ceb16)return isSessionEnabled(_0x2ceb16)?_0x2ceb16:null;const _0x5b5625=await _0x387c6a[_0xe45eae(0xcc)](readHookInput),_0x23bf84=_0x5b5625?.['session_id'];if(!_0x23bf84||!isSessionEnabled(_0x23bf84))return null;return _0x23bf84;}function _0x443b(){const _0x4374d1=['log','2982610NiPSWA','171446CJmOQS','1038HyHTSE','3aVJdBj','1519JYdurm','9McUvNN','woLXj','5eLujrO','stdin','1011670piqSTo','1670488pLJqXh','472070REofOx','752384vDluyh'];_0x443b=function(){return _0x4374d1;};return _0x443b();}export async function getEnabledHookContext(_0x430ee0){const _0x1ccb51={'GEBZk':function(_0x13c0f2,_0x283086){return _0x13c0f2(_0x283086);},'aoNxn':function(_0x475094,_0x159367){return _0x475094(_0x159367);}};if(_0x430ee0){if(!_0x1ccb51['GEBZk'](isSessionEnabled,_0x430ee0))return null;return{'sessionId':_0x430ee0,'input':{'session_id':_0x430ee0}};}const _0x55ebe4=await readHookInput(),_0x110c43=_0x55ebe4?.['session_id'];if(!_0x110c43||!_0x1ccb51['aoNxn'](isSessionEnabled,_0x110c43))return null;return{'sessionId':_0x110c43,'input':_0x55ebe4};}
@@ -1 +1 @@
1
- (function(_0x2b83d1,_0x1eaae3){const _0x4ef790=_0x2655,_0x217fbe=_0x2b83d1();while(!![]){try{const _0x179e44=parseInt(_0x4ef790(0x16f))/0x1+parseInt(_0x4ef790(0x16c))/0x2+-parseInt(_0x4ef790(0x170))/0x3*(parseInt(_0x4ef790(0x16e))/0x4)+parseInt(_0x4ef790(0x171))/0x5*(parseInt(_0x4ef790(0x16d))/0x6)+parseInt(_0x4ef790(0x16b))/0x7*(-parseInt(_0x4ef790(0x177))/0x8)+parseInt(_0x4ef790(0x176))/0x9+-parseInt(_0x4ef790(0x173))/0xa*(parseInt(_0x4ef790(0x175))/0xb);if(_0x179e44===_0x1eaae3)break;else _0x217fbe['push'](_0x217fbe['shift']());}catch(_0x59f1e6){_0x217fbe['push'](_0x217fbe['shift']());}}}(_0x43ee,0xe1f6f));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x77db21){const _0x2faf89=_0x2655,_0xd1ff7a=await getEnabledHookContext(_0x77db21);if(!_0xd1ff7a)return;if(_0xd1ff7a['input']['permission_mode']!==_0x2faf89(0x172))return;if(!shouldShowPlanReminder(_0xd1ff7a[_0x2faf89(0x178)]))return;printBlock(_0x2faf89(0x174));}function _0x2655(_0x31fec2,_0x248e38){_0x31fec2=_0x31fec2-0x16b;const _0x43ee25=_0x43ee();let _0x265569=_0x43ee25[_0x31fec2];return _0x265569;}function _0x43ee(){const _0x24d433=['592499aUlxGd','3zmABvW','1735ClLQpo','plan','30Puojof','===\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===','3128851hoHNvB','9439137CTIazs','283472kJiYaI','sessionId','245xVCECL','3070288xYgaLW','24702ghCQTM','6343884fKpiDe'];_0x43ee=function(){return _0x24d433;};return _0x43ee();}
1
+ (function(_0x2eb9d5,_0x28ddc0){const _0x1d6d56=_0xdbbf,_0x187fdc=_0x2eb9d5();while(!![]){try{const _0x21b625=parseInt(_0x1d6d56(0x107))/0x1*(-parseInt(_0x1d6d56(0x111))/0x2)+-parseInt(_0x1d6d56(0x10b))/0x3+-parseInt(_0x1d6d56(0x110))/0x4*(parseInt(_0x1d6d56(0x10c))/0x5)+parseInt(_0x1d6d56(0x103))/0x6+parseInt(_0x1d6d56(0x10e))/0x7+parseInt(_0x1d6d56(0x109))/0x8*(-parseInt(_0x1d6d56(0x10f))/0x9)+-parseInt(_0x1d6d56(0x106))/0xa*(-parseInt(_0x1d6d56(0x108))/0xb);if(_0x21b625===_0x28ddc0)break;else _0x187fdc['push'](_0x187fdc['shift']());}catch(_0x1affa8){_0x187fdc['push'](_0x187fdc['shift']());}}}(_0x5782,0x4bf74));import{printBlock,getEnabledHookContext}from'./output.js';function _0xdbbf(_0x28f7a7,_0x5a240e){_0x28f7a7=_0x28f7a7-0x103;const _0x578207=_0x5782();let _0xdbbfb=_0x578207[_0x28f7a7];return _0xdbbfb;}function _0x5782(){const _0x1b5f06=['VZGTB','2441131BNdrkD','2781vSCdJm','1089028ipdgZw','4CTAixI','1555650JlJhtW','permission_mode','plan','11309470XKtnzq','66878wOOOBp','11pFfSOA','11592YijJAp','sessionId','905364ASPVql','10iNPbXy'];_0x5782=function(){return _0x1b5f06;};return _0x5782();}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x30e7cd){const _0x17915f=_0xdbbf,_0x485b25={'VZGTB':function(_0x1892b1,_0x461e87){return _0x1892b1!==_0x461e87;}},_0x166163=await getEnabledHookContext(_0x30e7cd);if(!_0x166163)return;if(_0x485b25[_0x17915f(0x10d)](_0x166163['input'][_0x17915f(0x104)],_0x17915f(0x105)))return;if(!shouldShowPlanReminder(_0x166163[_0x17915f(0x10a)]))return;printBlock('===\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===');}
@@ -1 +1 @@
1
- (function(_0x14725e,_0x5aa780){const _0x29a0aa=_0xb871,_0x4176b7=_0x14725e();while(!![]){try{const _0x16798e=-parseInt(_0x29a0aa(0x108))/0x1*(-parseInt(_0x29a0aa(0xff))/0x2)+-parseInt(_0x29a0aa(0xfd))/0x3*(parseInt(_0x29a0aa(0x105))/0x4)+-parseInt(_0x29a0aa(0x102))/0x5*(-parseInt(_0x29a0aa(0x100))/0x6)+-parseInt(_0x29a0aa(0x107))/0x7*(parseInt(_0x29a0aa(0x10a))/0x8)+parseInt(_0x29a0aa(0x101))/0x9*(parseInt(_0x29a0aa(0x106))/0xa)+-parseInt(_0x29a0aa(0x10b))/0xb*(parseInt(_0x29a0aa(0x103))/0xc)+parseInt(_0x29a0aa(0x109))/0xd*(parseInt(_0x29a0aa(0x104))/0xe);if(_0x16798e===_0x5aa780)break;else _0x4176b7['push'](_0x4176b7['shift']());}catch(_0x432ef4){_0x4176b7['push'](_0x4176b7['shift']());}}}(_0x13c7,0xc73df));function _0x13c7(){const _0x385ea1=['3980522EhaWzN','2632880BfLHSX','50cAjJFT','379834gyIfrb','1UbpICH','13hRXpHF','104jtVszk','151954foZIZD','3sQmVVc','===\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===','1035302djMEGw','24jTzjMk','138951yqRDqK','1971040tJvTCA','240AIzAOe'];_0x13c7=function(){return _0x385ea1;};return _0x13c7();}function _0xb871(_0x5afd30,_0x2a43fd){_0x5afd30=_0x5afd30-0xfd;const _0x13c7c0=_0x13c7();let _0xb8716b=_0x13c7c0[_0x5afd30];return _0xb8716b;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x2b8a8c){const _0x532bfc=_0xb871,_0x232315={'VwTxu':function(_0x482807,_0x3c4439){return _0x482807(_0x3c4439);}},_0x26f4a1=await _0x232315['VwTxu'](getEnabledSessionId,_0x2b8a8c);if(!_0x26f4a1)return;printBlock(_0x532bfc(0xfe));}
1
+ function _0x5341(){const _0x5cb725=['219838fUXYEy','864XPtSdb','36318EvEpZw','30GjufMr','9320hjngPJ','1392752VyIOFa','dJmSz','cmbPp','2565021gwuVlO','805275holcfE','10927971JHbTGG','1043LjWHLH','===\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==='];_0x5341=function(){return _0x5cb725;};return _0x5341();}function _0x53ee(_0x4323a1,_0x49b671){_0x4323a1=_0x4323a1-0xe7;const _0x534160=_0x5341();let _0x53eec9=_0x534160[_0x4323a1];return _0x53eec9;}(function(_0x4a6d14,_0x56d287){const _0x98cabb=_0x53ee,_0x4eed1c=_0x4a6d14();while(!![]){try{const _0x4d5982=-parseInt(_0x98cabb(0xe7))/0x1+parseInt(_0x98cabb(0xeb))/0x2+-parseInt(_0x98cabb(0xf3))/0x3+-parseInt(_0x98cabb(0xec))/0x4*(parseInt(_0x98cabb(0xef))/0x5)+parseInt(_0x98cabb(0xed))/0x6*(-parseInt(_0x98cabb(0xe9))/0x7)+-parseInt(_0x98cabb(0xf0))/0x8+-parseInt(_0x98cabb(0xe8))/0x9*(-parseInt(_0x98cabb(0xee))/0xa);if(_0x4d5982===_0x56d287)break;else _0x4eed1c['push'](_0x4eed1c['shift']());}catch(_0x54d261){_0x4eed1c['push'](_0x4eed1c['shift']());}}}(_0x5341,0x95d2f));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x575bf4){const _0x2c447d=_0x53ee,_0x1b38d5={'cmbPp':function(_0x37731a,_0x2c47a6){return _0x37731a(_0x2c47a6);},'dJmSz':function(_0x54216c,_0x1dc869){return _0x54216c(_0x1dc869);}},_0x44cc75=await _0x1b38d5[_0x2c447d(0xf2)](getEnabledSessionId,_0x575bf4);if(!_0x44cc75)return;_0x1b38d5[_0x2c447d(0xf1)](printBlock,_0x2c447d(0xea));}
@@ -1 +1 @@
1
- (function(_0x265c30,_0x43ad11){const _0x4afa25=_0x5a37,_0x1a96ca=_0x265c30();while(!![]){try{const _0x5adfcd=-parseInt(_0x4afa25(0x1f8))/0x1+parseInt(_0x4afa25(0x1fc))/0x2*(-parseInt(_0x4afa25(0x202))/0x3)+parseInt(_0x4afa25(0x1f5))/0x4*(parseInt(_0x4afa25(0x201))/0x5)+-parseInt(_0x4afa25(0x1f4))/0x6*(-parseInt(_0x4afa25(0x200))/0x7)+parseInt(_0x4afa25(0x1fd))/0x8*(parseInt(_0x4afa25(0x203))/0x9)+parseInt(_0x4afa25(0x1f9))/0xa*(-parseInt(_0x4afa25(0x1fe))/0xb)+-parseInt(_0x4afa25(0x1fb))/0xc;if(_0x5adfcd===_0x43ad11)break;else _0x1a96ca['push'](_0x1a96ca['shift']());}catch(_0x12811a){_0x1a96ca['push'](_0x1a96ca['shift']());}}}(_0x16e6,0xeeba7));function _0x16e6(){const _0x56553f=['ewWOQ','12294384VAcPfV','10jXsFHa','8RdCtkb','9596697LVGXXw','stringify','46193DZjHUo','3755yaaHkg','184116lukZAY','12352077WvszVm','log','1542AlNzNw','3076krnHBm','PostToolUse','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.','464265gDULXe','10NehJZE'];_0x16e6=function(){return _0x56553f;};return _0x16e6();}function _0x5a37(_0x50e694,_0x2cea7d){_0x50e694=_0x50e694-0x1f3;const _0x16e619=_0x16e6();let _0x5a37ca=_0x16e619[_0x50e694];return _0x5a37ca;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x23c8d4){const _0x1b812c=_0x5a37,_0x5f29ff={'yKGUx':function(_0x481faf,_0x395d00){return _0x481faf(_0x395d00);},'jNiFv':function(_0x3cdfa3){return _0x3cdfa3();},'ewWOQ':_0x1b812c(0x1f6)},_0x599e26=await _0x5f29ff['yKGUx'](getEnabledSessionId,_0x23c8d4);if(!_0x599e26)return;updateBranchTracking(_0x599e26);const _0x4ec14c=await _0x5f29ff['jNiFv'](getToken);if(!_0x4ec14c)return;const _0x46aea7=getSessionEntry(_0x599e26);if(_0x46aea7){const _0x494323={'hookSpecificOutput':{'hookEventName':_0x5f29ff[_0x1b812c(0x1fa)],'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['log'](JSON[_0x1b812c(0x1ff)](_0x494323));return;}const _0x54fd53={'hookSpecificOutput':{'hookEventName':_0x5f29ff[_0x1b812c(0x1fa)],'additionalContext':_0x1b812c(0x1f7)}};console[_0x1b812c(0x1f3)](JSON['stringify'](_0x54fd53));}
1
+ (function(_0x4257b0,_0x325e37){const _0x381d12=_0x3b3e,_0x61d175=_0x4257b0();while(!![]){try{const _0x357789=parseInt(_0x381d12(0x117))/0x1*(-parseInt(_0x381d12(0x114))/0x2)+parseInt(_0x381d12(0x10f))/0x3+-parseInt(_0x381d12(0x10d))/0x4*(parseInt(_0x381d12(0x110))/0x5)+-parseInt(_0x381d12(0x10c))/0x6*(parseInt(_0x381d12(0x116))/0x7)+parseInt(_0x381d12(0x113))/0x8*(-parseInt(_0x381d12(0x111))/0x9)+-parseInt(_0x381d12(0x10e))/0xa*(parseInt(_0x381d12(0x118))/0xb)+parseInt(_0x381d12(0x10b))/0xc;if(_0x357789===_0x325e37)break;else _0x61d175['push'](_0x61d175['shift']());}catch(_0x3c0216){_0x61d175['push'](_0x61d175['shift']());}}}(_0x5591,0xeb5c5));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3b3e(_0x36d387,_0x8e6828){_0x36d387=_0x36d387-0x10b;const _0x5591f3=_0x5591();let _0x3b3e18=_0x5591f3[_0x36d387];return _0x3b3e18;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x5591(){const _0x3a02a4=['64360uXvkKC','66910sKhxkk','PostToolUse','5207503aMDeGE','2xfxzMK','11klzrzG','64564176vHPLCH','12cPbcrT','3583864xwacwV','4169910pqIyvo','1831335TuhMpi','10hbmOkL','1413JaHSzY','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).'];_0x5591=function(){return _0x3a02a4;};return _0x5591();}export async function postEdit(_0x2521f2){const _0x2e7fe2=_0x3b3e,_0x2b581a={'FlfeK':function(_0x486154,_0x38832f){return _0x486154(_0x38832f);},'nEdAE':_0x2e7fe2(0x115)},_0x2d55a4=await _0x2b581a['FlfeK'](getEnabledSessionId,_0x2521f2);if(!_0x2d55a4)return;updateBranchTracking(_0x2d55a4);const _0xff8cb=await getToken();if(!_0xff8cb)return;const _0x467ee4=getSessionEntry(_0x2d55a4);if(_0x467ee4){const _0x181c69={'hookSpecificOutput':{'hookEventName':_0x2b581a['nEdAE'],'additionalContext':_0x2e7fe2(0x112)}};console['log'](JSON['stringify'](_0x181c69));return;}const _0xccaa65={'hookSpecificOutput':{'hookEventName':_0x2e7fe2(0x115),'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'](_0xccaa65));}
@@ -1 +1 @@
1
- function _0x200a(){const _0x36b3ab=['186makzGa','6194532lXaQnZ','2359895JvUPdn','1100978xGnoWL','7354iyAPxg','608909HBVhop','ZMPCt','6311452ryuUtO','56JqPjjN','10200168EzJWME'];_0x200a=function(){return _0x36b3ab;};return _0x200a();}(function(_0x16503a,_0x4a680f){const _0x552fd7=_0x2d60,_0x44710f=_0x16503a();while(!![]){try{const _0x33bbd6=parseInt(_0x552fd7(0x1eb))/0x1+-parseInt(_0x552fd7(0x1ec))/0x2*(-parseInt(_0x552fd7(0x1e8))/0x3)+-parseInt(_0x552fd7(0x1e5))/0x4+parseInt(_0x552fd7(0x1ea))/0x5+-parseInt(_0x552fd7(0x1e9))/0x6+-parseInt(_0x552fd7(0x1ed))/0x7*(-parseInt(_0x552fd7(0x1e6))/0x8)+parseInt(_0x552fd7(0x1e7))/0x9;if(_0x33bbd6===_0x4a680f)break;else _0x44710f['push'](_0x44710f['shift']());}catch(_0x4f9d56){_0x44710f['push'](_0x44710f['shift']());}}}(_0x200a,0xe3c2b));function _0x2d60(_0x33fcc0,_0x2e918e){_0x33fcc0=_0x33fcc0-0x1e5;const _0x200ac3=_0x200a();let _0x2d60cb=_0x200ac3[_0x33fcc0];return _0x2d60cb;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x24aa60){const _0x23a4e4=_0x2d60,_0xd476f5={'mpoat':function(_0x4fcbf3){return _0x4fcbf3();},'ZMPCt':function(_0x554211,_0xf5a153){return _0x554211(_0xf5a153);}},_0x5ec839=await getEnabledSessionId(_0x24aa60);if(!_0x5ec839)return;try{const _0xcdba95=await _0xd476f5['mpoat'](getToken);if(!_0xcdba95)return;_0xd476f5[_0x23a4e4(0x1ee)](printBlock,'===\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`.');}catch{}}
1
+ (function(_0x35c59c,_0x3eb6ef){const _0x5054a9=_0xbdaa,_0x3d63fc=_0x35c59c();while(!![]){try{const _0x155ad3=-parseInt(_0x5054a9(0xfa))/0x1+parseInt(_0x5054a9(0xfd))/0x2+-parseInt(_0x5054a9(0xff))/0x3*(parseInt(_0x5054a9(0x101))/0x4)+parseInt(_0x5054a9(0x100))/0x5+parseInt(_0x5054a9(0xf8))/0x6*(parseInt(_0x5054a9(0xf7))/0x7)+-parseInt(_0x5054a9(0xf9))/0x8+-parseInt(_0x5054a9(0xfb))/0x9;if(_0x155ad3===_0x3eb6ef)break;else _0x3d63fc['push'](_0x3d63fc['shift']());}catch(_0x44996a){_0x3d63fc['push'](_0x3d63fc['shift']());}}}(_0x2077,0x475a5));function _0xbdaa(_0x4f30b8,_0x5b9f44){_0x4f30b8=_0x4f30b8-0xf7;const _0x2077e3=_0x2077();let _0xbdaa29=_0x2077e3[_0x4f30b8];return _0xbdaa29;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x2077(){const _0x83634f=['6151644BsDJTB','===\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`.','1078514dWvJPl','zJMMA','3KYvqnQ','2197010SNeray','1036004ojqezP','YCzko','1442toSuuc','13644EECPky','342920zioaSB','169460rJNuAB'];_0x2077=function(){return _0x83634f;};return _0x2077();}export async function preCompact(_0x150dee){const _0x336656=_0xbdaa,_0x402eaa={'YCzko':function(_0x5ed0af){return _0x5ed0af();},'zJMMA':function(_0x1b58cb,_0xe9a730){return _0x1b58cb(_0xe9a730);}},_0x454acd=await getEnabledSessionId(_0x150dee);if(!_0x454acd)return;try{const _0x2d8917=await _0x402eaa[_0x336656(0x102)](getToken);if(!_0x2d8917)return;_0x402eaa[_0x336656(0xfe)](printBlock,_0x336656(0xfc));}catch{}}
@@ -1 +1 @@
1
- (function(_0x419f36,_0x2038fe){const _0x1d55bb=_0xbc2a,_0x32d6f5=_0x419f36();while(!![]){try{const _0x9e316a=parseInt(_0x1d55bb(0x1ae))/0x1*(parseInt(_0x1d55bb(0x1b2))/0x2)+-parseInt(_0x1d55bb(0x1b0))/0x3+-parseInt(_0x1d55bb(0x1b1))/0x4+parseInt(_0x1d55bb(0x1b7))/0x5*(parseInt(_0x1d55bb(0x1b4))/0x6)+parseInt(_0x1d55bb(0x1b3))/0x7+parseInt(_0x1d55bb(0x1b6))/0x8*(-parseInt(_0x1d55bb(0x1b5))/0x9)+-parseInt(_0x1d55bb(0x1b9))/0xa;if(_0x9e316a===_0x2038fe)break;else _0x32d6f5['push'](_0x32d6f5['shift']());}catch(_0x4a7204){_0x32d6f5['push'](_0x32d6f5['shift']());}}}(_0x5584,0x89e0f));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x5584(){const _0x5626b5=['3273760ffuHGh','5890782aBnKvi','128043WRmxlq','456WKZivY','5peQbVS','pqRSb','809760IyHkEj','session_id','706NkyOfH','clear','1960803WfDmbp','869896ZiINZy','2488sSxuFc'];_0x5584=function(){return _0x5626b5;};return _0x5584();}import{readHookInput}from'./output.js';function _0xbc2a(_0x58a451,_0xb75b40){_0x58a451=_0x58a451-0x1ae;const _0x558497=_0x5584();let _0xbc2a88=_0x558497[_0x58a451];return _0xbc2a88;}export async function sessionEnd(_0xd03ef2){const _0x5a34c7=_0xbc2a,_0x2c377a={'pqRSb':function(_0x169af8){return _0x169af8();},'XJdUW':function(_0x1f0f7d,_0x1aa1e3){return _0x1f0f7d===_0x1aa1e3;},'dyHhs':_0x5a34c7(0x1af),'CtZAF':function(_0x1b7831,_0x36363f){return _0x1b7831(_0x36363f);}};let _0x18055f=_0xd03ef2,_0x4b0d70;if(!_0xd03ef2){const _0x38c769=await _0x2c377a[_0x5a34c7(0x1b8)](readHookInput);_0x18055f=_0x38c769?.[_0x5a34c7(0x1ba)],_0x4b0d70=_0x38c769?.['reason'];}if(!_0x18055f)return;_0x2c377a['XJdUW'](_0x4b0d70,_0x2c377a['dyHhs'])&&_0x2c377a['CtZAF'](recordEnabledSessionCleared,_0x18055f);}
1
+ (function(_0x6a2cdb,_0x3b9b61){const _0x53262b=_0x570a,_0x2ea4b6=_0x6a2cdb();while(!![]){try{const _0x5d3311=parseInt(_0x53262b(0x105))/0x1+parseInt(_0x53262b(0x109))/0x2*(parseInt(_0x53262b(0x106))/0x3)+-parseInt(_0x53262b(0x103))/0x4*(parseInt(_0x53262b(0x108))/0x5)+-parseInt(_0x53262b(0x10a))/0x6+parseInt(_0x53262b(0x10c))/0x7+-parseInt(_0x53262b(0x104))/0x8+-parseInt(_0x53262b(0x10b))/0x9;if(_0x5d3311===_0x3b9b61)break;else _0x2ea4b6['push'](_0x2ea4b6['shift']());}catch(_0x104def){_0x2ea4b6['push'](_0x2ea4b6['shift']());}}}(_0x5581,0xbd630));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x570a(_0x262477,_0x333ecf){_0x262477=_0x262477-0x103;const _0x558122=_0x5581();let _0x570a4f=_0x558122[_0x262477];return _0x570a4f;}import{readHookInput}from'./output.js';function _0x5581(){const _0x30fb23=['3jGyqjQ','QwICi','5879515pVtXBt','2936812slReQv','4466418vUzujf','7327080BQYnlu','7125293FePPIW','4ZyVpwE','1261152sWwhNr','1181493gGjMZf'];_0x5581=function(){return _0x30fb23;};return _0x5581();}export async function sessionEnd(_0x4ee5b5){const _0x1425f1=_0x570a,_0x3fd0bf={'QwICi':function(_0x1b4818,_0x577bf2){return _0x1b4818===_0x577bf2;}};let _0x291c9c=_0x4ee5b5,_0x486f82;if(!_0x4ee5b5){const _0x491beb=await readHookInput();_0x291c9c=_0x491beb?.['session_id'],_0x486f82=_0x491beb?.['reason'];}if(!_0x291c9c)return;_0x3fd0bf[_0x1425f1(0x107)](_0x486f82,'clear')&&recordEnabledSessionCleared(_0x291c9c);}
@@ -1 +1 @@
1
- const _0x46e60a=_0x4417;(function(_0x6fbec8,_0x3e091b){const _0x15d964=_0x4417,_0x431195=_0x6fbec8();while(!![]){try{const _0x128415=parseInt(_0x15d964(0xf1))/0x1+parseInt(_0x15d964(0xf0))/0x2+parseInt(_0x15d964(0xf7))/0x3+-parseInt(_0x15d964(0xed))/0x4+-parseInt(_0x15d964(0xf6))/0x5+parseInt(_0x15d964(0xe8))/0x6+parseInt(_0x15d964(0xeb))/0x7*(-parseInt(_0x15d964(0xf9))/0x8);if(_0x128415===_0x3e091b)break;else _0x431195['push'](_0x431195['shift']());}catch(_0x32a444){_0x431195['push'](_0x431195['shift']());}}}(_0x3190,0x6f347));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x4417(_0x539125,_0x2490ce){_0x539125=_0x539125-0xe4;const _0x3190d0=_0x3190();let _0x4417eb=_0x3190d0[_0x539125];return _0x4417eb;}import{createTelemetryCollector}from'../utils/telemetry.js';function _0x3190(){const _0x3292b1=['800937NXRDQi','wmxrg','508632iAZXjh','SessionStart','\x20(Branch:\x20','hook:session-start','session_id','stringify','3224658IsuFdB','parse','export\x20CLAUDE_SESSION_ID=\x22','161tmABFE','=================================================================\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=================================================================','1561936oiTumB','env','stdin','1721648fHePCI','788878QXnUvt','main','master','ZUhXh','EZcSL','729140hyaMKc'];_0x3190=function(){return _0x3292b1;};return _0x3190();}const RANGER_AUTO_ENABLED_PROMPT=_0x46e60a(0xec);export async function sessionStart(_0x3cec49){const _0x1c5eed=_0x46e60a,_0x10e993={'EZcSL':function(_0x4ce6b2,_0x2d24e1){return _0x4ce6b2||_0x2d24e1;},'qsVTR':'source','pAHwF':function(_0x24753c,_0x51097a){return _0x24753c(_0x51097a);},'ZUhXh':_0x1c5eed(0xe5),'BbjmA':_0x1c5eed(0xf2),'wmxrg':function(_0x1608ab,_0x230c4a){return _0x1608ab+_0x230c4a;}};let _0x3d3917=_0x10e993[_0x1c5eed(0xf5)](_0x3cec49,''),_0x545cb7;if(!_0x3cec49){let _0x2e9d26='';for await(const _0xf23a39 of process[_0x1c5eed(0xef)]){_0x2e9d26+=_0xf23a39;}try{const _0x5d3207=JSON[_0x1c5eed(0xe9)](_0x2e9d26);_0x3d3917=_0x5d3207[_0x1c5eed(0xe6)]||'',_0x545cb7=_0x5d3207[_0x10e993['qsVTR']];}catch{}const _0x20ba8b=process[_0x1c5eed(0xee)]['CLAUDE_ENV_FILE'];if(_0x20ba8b&&_0x3d3917)try{await appendFile(_0x20ba8b,_0x1c5eed(0xea)+_0x3d3917+'\x22\x0a');}catch{}}if(_0x3d3917){shouldAutoEnableAfterClear(_0x545cb7)&&autoEnableAfterClear(_0x3d3917);initBranchTracking(_0x3d3917);const _0x23cb94=_0x10e993['pAHwF'](isSessionEnabled,_0x3d3917);try{const _0x45b75b=createTelemetryCollector(_0x10e993[_0x1c5eed(0xf4)]);await _0x45b75b['trackCommandStart']({'sessionId':_0x3d3917,'hooksEnabled':_0x23cb94}),await _0x45b75b['trackCommandEnd']('success');}catch{}if(_0x23cb94){const _0x184313=getCurrentBranch(),_0x5c0381=_0x184313&&_0x184313!==_0x10e993['BbjmA']&&_0x184313!==_0x1c5eed(0xf3)?_0x1c5eed(0xe4)+_0x184313+')':'',_0xf6fb60={'hookSpecificOutput':{'hookEventName':_0x1c5eed(0xfa),'additionalContext':_0x10e993[_0x1c5eed(0xf8)](RANGER_AUTO_ENABLED_PROMPT,_0x5c0381)}};console['log'](JSON[_0x1c5eed(0xe7)](_0xf6fb60));}}}
1
+ (function(_0x17323c,_0x5abfb6){const _0xbaf116=_0x4cd1,_0x4dac08=_0x17323c();while(!![]){try{const _0x1e13fe=-parseInt(_0xbaf116(0x194))/0x1+-parseInt(_0xbaf116(0x191))/0x2*(-parseInt(_0xbaf116(0x18c))/0x3)+-parseInt(_0xbaf116(0x197))/0x4+parseInt(_0xbaf116(0x196))/0x5+-parseInt(_0xbaf116(0x188))/0x6*(parseInt(_0xbaf116(0x18d))/0x7)+parseInt(_0xbaf116(0x19a))/0x8*(-parseInt(_0xbaf116(0x193))/0x9)+parseInt(_0xbaf116(0x186))/0xa;if(_0x1e13fe===_0x5abfb6)break;else _0x4dac08['push'](_0x4dac08['shift']());}catch(_0x566213){_0x4dac08['push'](_0x4dac08['shift']());}}}(_0x2ce9,0x242b1));function _0x4cd1(_0x5715c9,_0x30dc41){_0x5715c9=_0x5715c9-0x186;const _0x2ce926=_0x2ce9();let _0x4cd17f=_0x2ce926[_0x5715c9];return _0x4cd17f;}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x2ce9(){const _0x226b08=['44146OCofVu','kMlqW','817803zmPdCs','95711IVCati','SessionStart','297735GglrZK','874540zMVmNi','trackCommandStart','success','24xtkgPC','5901420vpubXk','\x20(Branch:\x20','811962bluHIV','master','stdin','xOocT','30FHpGSN','7KQVFdE','HyzPI','trackCommandEnd','session_id'];_0x2ce9=function(){return _0x226b08;};return _0x2ce9();}import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\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=================================================================';export async function sessionStart(_0x2e55b2){const _0x4a9731=_0x4cd1,_0x50f868={'aXEOV':function(_0x373e15,_0x25231b){return _0x373e15||_0x25231b;},'XJUAu':_0x4a9731(0x190),'xOocT':'source','hkzqc':function(_0x20fd1,_0x29464c,_0x58437e){return _0x20fd1(_0x29464c,_0x58437e);},'EqWQx':function(_0x9c5853,_0x3c72d2){return _0x9c5853(_0x3c72d2);},'HyzPI':_0x4a9731(0x199),'rXsAd':'main','kMlqW':_0x4a9731(0x195)};let _0x3d044e=_0x50f868['aXEOV'](_0x2e55b2,''),_0x312403;if(!_0x2e55b2){let _0x2aac4e='';for await(const _0x488fdf of process[_0x4a9731(0x18a)]){_0x2aac4e+=_0x488fdf;}try{const _0x22a783=JSON['parse'](_0x2aac4e);_0x3d044e=_0x22a783[_0x50f868['XJUAu']]||'',_0x312403=_0x22a783[_0x50f868[_0x4a9731(0x18b)]];}catch{}const _0x579f67=process['env']['CLAUDE_ENV_FILE'];if(_0x579f67&&_0x3d044e)try{await _0x50f868['hkzqc'](appendFile,_0x579f67,'export\x20CLAUDE_SESSION_ID=\x22'+_0x3d044e+'\x22\x0a');}catch{}}if(_0x3d044e){_0x50f868['EqWQx'](shouldAutoEnableAfterClear,_0x312403)&&autoEnableAfterClear(_0x3d044e);_0x50f868['EqWQx'](initBranchTracking,_0x3d044e);const _0xc49d0f=isSessionEnabled(_0x3d044e);try{const _0x3d620f=createTelemetryCollector('hook:session-start');await _0x3d620f[_0x4a9731(0x198)]({'sessionId':_0x3d044e,'hooksEnabled':_0xc49d0f}),await _0x3d620f[_0x4a9731(0x18f)](_0x50f868[_0x4a9731(0x18e)]);}catch{}if(_0xc49d0f){const _0x592fea=getCurrentBranch(),_0x35e4dd=_0x592fea&&_0x592fea!==_0x50f868['rXsAd']&&_0x592fea!==_0x4a9731(0x189)?_0x4a9731(0x187)+_0x592fea+')':'',_0x4c0047={'hookSpecificOutput':{'hookEventName':_0x50f868[_0x4a9731(0x192)],'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x35e4dd}};console['log'](JSON['stringify'](_0x4c0047));}}}