@ranger-testing/ranger-cli 2.1.2 → 2.1.4

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 +3 -2
@@ -1 +1 @@
1
- const _0xfe4386=_0x319a;(function(_0x5e4a2e,_0x3f95ca){const _0x4f8bb1=_0x319a,_0x4ec1c7=_0x5e4a2e();while(!![]){try{const _0x30c178=parseInt(_0x4f8bb1(0x1a4))/0x1*(-parseInt(_0x4f8bb1(0x1a2))/0x2)+-parseInt(_0x4f8bb1(0x19f))/0x3*(parseInt(_0x4f8bb1(0x1a1))/0x4)+parseInt(_0x4f8bb1(0x1ad))/0x5*(parseInt(_0x4f8bb1(0x19e))/0x6)+parseInt(_0x4f8bb1(0x1b5))/0x7*(-parseInt(_0x4f8bb1(0x1b0))/0x8)+-parseInt(_0x4f8bb1(0x1a7))/0x9+parseInt(_0x4f8bb1(0x1ab))/0xa+parseInt(_0x4f8bb1(0x19a))/0xb;if(_0x30c178===_0x3f95ca)break;else _0x4ec1c7['push'](_0x4ec1c7['shift']());}catch(_0x55239d){_0x4ec1c7['push'](_0x4ec1c7['shift']());}}}(_0xd3f8,0xaef42));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';function _0x319a(_0x547794,_0x204237){_0x547794=_0x547794-0x199;const _0xd3f895=_0xd3f8();let _0x319a4e=_0xd3f895[_0x547794];return _0x319a4e;}import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0xfe4386(0x1b8),_0xfe4386(0x1a3),'reports','local','ci'];function _0xd3f8(){const _0x2264c4=['.txt','includes','BdghI','86420ciruXm','iQtmV','5chHXjP','log','environmentDetails','1984bPoDAM','\x20\x20\x20\x20\x20\x20Details:\x20','baseUrl','push','AceXP','27958KtqDLz','MyYUS','length','sessions','local','23777061gzIvWj','AKOdp','\x0aProfiles:','sort','4015620HxFhBo','2079762pSuUAF','isDirectory','4TKTPKs','2domlzU','bug-bashes','360239cVglXv','\x0aNo\x20profiles\x20found.','endsWith','709632MMFwyo'];_0xd3f8=function(){return _0x2264c4;};return _0xd3f8();}export async function getEnvNames(){const _0x677198=_0xfe4386,_0x50a6af={'MyYUS':function(_0x3ac25f){return _0x3ac25f();},'AceXP':function(_0xa9ba0d,_0x543d2b){return _0xa9ba0d(_0x543d2b);},'AKOdp':function(_0xf60c82,_0x3033ce,_0x27a8f5){return _0xf60c82(_0x3033ce,_0x27a8f5);},'FGbfz':function(_0x130cea,_0x1952c1){return _0x130cea(_0x1952c1);},'BdghI':function(_0xbbd27c,_0x4e2f52){return _0xbbd27c(_0x4e2f52);},'ekcMO':function(_0xcc7f48,_0x37e101){return _0xcc7f48(_0x37e101);},'djIGq':'settings.json'},_0x2e1368=getRangerDir();if(!existsSync(_0x2e1368))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1398cb=await _0x50a6af[_0x677198(0x1b6)](readActiveProfileName),_0x2378f3=[],_0x370708={},_0x1f7a19=join(_0x2e1368,_0x677198(0x199));if(_0x50a6af[_0x677198(0x1b4)](existsSync,_0x1f7a19)){const _0x1b72e9=await readdir(_0x1f7a19);for(const _0x276d1c of _0x1b72e9){const _0x419b2d=_0x50a6af[_0x677198(0x19b)](join,_0x1f7a19,_0x276d1c),_0x58129b=await _0x50a6af['FGbfz'](stat,_0x419b2d);_0x58129b['isDirectory']()&&(_0x2378f3['push'](_0x276d1c),_0x370708[_0x276d1c]=_0x677198(0x199));}}const _0x4df35a=_0x50a6af[_0x677198(0x19b)](join,_0x2e1368,'ci');if(existsSync(_0x4df35a)){const _0x121ba0=await _0x50a6af['AceXP'](readdir,_0x4df35a);for(const _0x104181 of _0x121ba0){const _0x18a1bd=_0x50a6af[_0x677198(0x19b)](join,_0x4df35a,_0x104181),_0x7cd7f6=await _0x50a6af['BdghI'](stat,_0x18a1bd);_0x7cd7f6[_0x677198(0x1a0)]()&&(_0x2378f3[_0x677198(0x1b3)](_0x104181),_0x370708[_0x104181]='ci');}}const _0x2439e2=await _0x50a6af['ekcMO'](readdir,_0x2e1368);for(const _0x5ba897 of _0x2439e2){if(NON_ENV_DIRS[_0x677198(0x1a9)](_0x5ba897))continue;if(_0x5ba897['startsWith']('.'))continue;if(_0x5ba897[_0x677198(0x1a6)](_0x677198(0x1a8)))continue;const _0x344cfe=join(_0x2e1368,_0x5ba897),_0x3b69f4=await _0x50a6af['BdghI'](stat,_0x344cfe);_0x3b69f4[_0x677198(0x1a0)]()&&_0x50a6af[_0x677198(0x1aa)](existsSync,join(_0x344cfe,_0x50a6af['djIGq']))&&(!_0x2378f3['includes'](_0x5ba897)&&(_0x2378f3['push'](_0x5ba897),_0x370708[_0x5ba897]='legacy'));}return{'envNames':_0x2378f3,'activeEnv':_0x1398cb,'envTypes':_0x370708};}export async function envList(){const _0x35c2e6=_0xfe4386,_0x4c49e1={'iQtmV':function(_0x867dae,_0x20f07a){return _0x867dae(_0x20f07a);},'mMZOi':function(_0x5612ba,_0x2b20ed){return _0x5612ba===_0x2b20ed;}},{envNames:_0x362674,activeEnv:_0xf9fbc4,envTypes:_0x5340b4}=await getEnvNames();if(_0x362674[_0x35c2e6(0x1b7)]===0x0){console[_0x35c2e6(0x1ae)](_0x35c2e6(0x1a5)),console['log']('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console[_0x35c2e6(0x1ae)](_0x35c2e6(0x19c));for(const _0x540d9f of _0x362674[_0x35c2e6(0x19d)]()){const _0x115b0f=_0x540d9f===_0xf9fbc4,_0x3cf74f=_0x5340b4[_0x540d9f]||'local',_0x43696a=await _0x4c49e1[_0x35c2e6(0x1ac)](loadSettings,_0x540d9f),_0x3e6b01=_0x4c49e1['mMZOi'](_0x3cf74f,'legacy')?'':'\x20['+_0x3cf74f+']';console[_0x35c2e6(0x1ae)]('\x20\x20'+(_0x115b0f?'*\x20':'\x20\x20')+_0x540d9f+_0x3e6b01),_0x43696a[_0x35c2e6(0x1b2)]&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x43696a['baseUrl']),_0x43696a[_0x35c2e6(0x1af)]&&console[_0x35c2e6(0x1ae)](_0x35c2e6(0x1b1)+_0x43696a['environmentDetails']);}_0xf9fbc4&&console['log']('\x0a*\x20=\x20active\x20profile');}
1
+ function _0x406b(){const _0x36d6ac=['12493590jdazAT','legacy','length','\x0aNo\x20profiles\x20found.','.txt','baseUrl','26zugkjT','1295847UqNkWN','push','Ddvue','environmentDetails','3077886cANNSy','isDirectory','4178120VwMvVH','263005ARBgUY','includes','sessions','64JyNRDY','log','wULpO','rssUY','1098925nfKxvG','7blfJfV','\x0a*\x20=\x20active\x20profile','jOCiX','\x20\x20\x20\x20\x20\x20URL:\x20','zkTbO','settings.json','KiIjF','startsWith','110841tyAlxR','gslTz'];_0x406b=function(){return _0x36d6ac;};return _0x406b();}const _0x305872=_0x2eea;(function(_0x374f0b,_0x5f9388){const _0x36c84e=_0x2eea,_0xbdba8d=_0x374f0b();while(!![]){try{const _0x5393e9=-parseInt(_0x36c84e(0x163))/0x1+-parseInt(_0x36c84e(0x154))/0x2*(-parseInt(_0x36c84e(0x16c))/0x3)+-parseInt(_0x36c84e(0x15f))/0x4*(-parseInt(_0x36c84e(0x15c))/0x5)+parseInt(_0x36c84e(0x159))/0x6*(-parseInt(_0x36c84e(0x164))/0x7)+-parseInt(_0x36c84e(0x15b))/0x8+parseInt(_0x36c84e(0x155))/0x9+parseInt(_0x36c84e(0x16e))/0xa;if(_0x5393e9===_0x5f9388)break;else _0xbdba8d['push'](_0xbdba8d['shift']());}catch(_0x380bc9){_0xbdba8d['push'](_0xbdba8d['shift']());}}}(_0x406b,0x8ddea));import{readdir,stat}from'fs/promises';import{join}from'path';function _0x2eea(_0x281e4d,_0x3dcf0a){_0x281e4d=_0x281e4d-0x154;const _0x406b99=_0x406b();let _0x2eea50=_0x406b99[_0x281e4d];return _0x2eea50;}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=[_0x305872(0x15e),'bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x7dd3aa=_0x305872,_0x3c78c4={'Ddvue':function(_0x4ff718,_0x13c4dd,_0x5a4889){return _0x4ff718(_0x13c4dd,_0x5a4889);},'rssUY':'local','wULpO':function(_0x44b891,_0x84bc85){return _0x44b891(_0x84bc85);},'yPaSJ':function(_0x1a4758,_0x3ae823,_0x4bb9ba){return _0x1a4758(_0x3ae823,_0x4bb9ba);},'foWsr':function(_0x46ea2c,_0xb87b82){return _0x46ea2c(_0xb87b82);},'gslTz':function(_0x1b61aa,_0x5c83cc){return _0x1b61aa(_0x5c83cc);},'wyxNU':function(_0x5b1a69,_0x2a5001){return _0x5b1a69(_0x2a5001);},'fzQNu':function(_0x39032e,_0x3b8f5f,_0x1eac6b){return _0x39032e(_0x3b8f5f,_0x1eac6b);},'zkTbO':_0x7dd3aa(0x16f)},_0x593d5d=getRangerDir();if(!existsSync(_0x593d5d))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2dbe3b=await readActiveProfileName(),_0x5886f7=[],_0x4643d3={},_0x7e0f15=_0x3c78c4[_0x7dd3aa(0x157)](join,_0x593d5d,_0x3c78c4[_0x7dd3aa(0x162)]);if(_0x3c78c4[_0x7dd3aa(0x161)](existsSync,_0x7e0f15)){const _0x1e51a1=await _0x3c78c4[_0x7dd3aa(0x161)](readdir,_0x7e0f15);for(const _0x30bb77 of _0x1e51a1){const _0x13c55f=join(_0x7e0f15,_0x30bb77),_0x191fed=await stat(_0x13c55f);_0x191fed['isDirectory']()&&(_0x5886f7[_0x7dd3aa(0x156)](_0x30bb77),_0x4643d3[_0x30bb77]=_0x3c78c4[_0x7dd3aa(0x162)]);}}const _0xaef497=_0x3c78c4['yPaSJ'](join,_0x593d5d,'ci');if(_0x3c78c4[_0x7dd3aa(0x161)](existsSync,_0xaef497)){const _0x4e6779=await _0x3c78c4['foWsr'](readdir,_0xaef497);for(const _0x1a8b41 of _0x4e6779){const _0x314bab=join(_0xaef497,_0x1a8b41),_0x30f6e2=await _0x3c78c4['wULpO'](stat,_0x314bab);_0x30f6e2[_0x7dd3aa(0x15a)]()&&(_0x5886f7[_0x7dd3aa(0x156)](_0x1a8b41),_0x4643d3[_0x1a8b41]='ci');}}const _0x4e2ddc=await _0x3c78c4[_0x7dd3aa(0x16d)](readdir,_0x593d5d);for(const _0x1889fd of _0x4e2ddc){if(NON_ENV_DIRS[_0x7dd3aa(0x15d)](_0x1889fd))continue;if(_0x1889fd[_0x7dd3aa(0x16b)]('.'))continue;if(_0x1889fd['endsWith'](_0x7dd3aa(0x172)))continue;const _0x27c32c=join(_0x593d5d,_0x1889fd),_0x2a772b=await _0x3c78c4['wyxNU'](stat,_0x27c32c);_0x2a772b[_0x7dd3aa(0x15a)]()&&existsSync(_0x3c78c4['fzQNu'](join,_0x27c32c,_0x7dd3aa(0x169)))&&(!_0x5886f7[_0x7dd3aa(0x15d)](_0x1889fd)&&(_0x5886f7['push'](_0x1889fd),_0x4643d3[_0x1889fd]=_0x3c78c4[_0x7dd3aa(0x168)]));}return{'envNames':_0x5886f7,'activeEnv':_0x2dbe3b,'envTypes':_0x4643d3};}export async function envList(){const _0x5acf12=_0x305872,_0x583122={'NqaRn':function(_0x6b173b,_0x3c6de3){return _0x6b173b===_0x3c6de3;},'ANkRs':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','ETvoV':function(_0x221a27,_0x57d749){return _0x221a27===_0x57d749;},'jOCiX':function(_0x4981af,_0x47fbb1){return _0x4981af(_0x47fbb1);},'KiIjF':function(_0x4a7784,_0x349fc8){return _0x4a7784===_0x349fc8;}},{envNames:_0x3809f4,activeEnv:_0x27f844,envTypes:_0x253e30}=await getEnvNames();if(_0x583122['NqaRn'](_0x3809f4[_0x5acf12(0x170)],0x0)){console['log'](_0x5acf12(0x171)),console['log'](_0x583122['ANkRs']);return;}console['log']('\x0aProfiles:');for(const _0xbe46fa of _0x3809f4['sort']()){const _0x11130e=_0x583122['ETvoV'](_0xbe46fa,_0x27f844),_0x5a9bff=_0x253e30[_0xbe46fa]||'local',_0x1ebc01=await _0x583122[_0x5acf12(0x166)](loadSettings,_0xbe46fa),_0x45c3f6=_0x583122[_0x5acf12(0x16a)](_0x5a9bff,_0x5acf12(0x16f))?'':'\x20['+_0x5a9bff+']';console['log']('\x20\x20'+(_0x11130e?'*\x20':'\x20\x20')+_0xbe46fa+_0x45c3f6),_0x1ebc01[_0x5acf12(0x173)]&&console[_0x5acf12(0x160)](_0x5acf12(0x167)+_0x1ebc01[_0x5acf12(0x173)]),_0x1ebc01[_0x5acf12(0x158)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x1ebc01['environmentDetails']);}_0x27f844&&console[_0x5acf12(0x160)](_0x5acf12(0x165));}
@@ -1 +1 @@
1
- const _0x3ab331=_0x3119;(function(_0x344f0c,_0x5e853d){const _0x4831eb=_0x3119,_0x3ef3ad=_0x344f0c();while(!![]){try{const _0x193a8d=parseInt(_0x4831eb(0xbe))/0x1*(parseInt(_0x4831eb(0x117))/0x2)+parseInt(_0x4831eb(0x110))/0x3*(parseInt(_0x4831eb(0xe9))/0x4)+-parseInt(_0x4831eb(0x129))/0x5+parseInt(_0x4831eb(0xaf))/0x6+parseInt(_0x4831eb(0x122))/0x7+parseInt(_0x4831eb(0xa3))/0x8*(-parseInt(_0x4831eb(0x145))/0x9)+-parseInt(_0x4831eb(0x131))/0xa;if(_0x193a8d===_0x5e853d)break;else _0x3ef3ad['push'](_0x3ef3ad['shift']());}catch(_0xe9f815){_0x3ef3ad['push'](_0x3ef3ad['shift']());}}}(_0x54a8,0xbfcd0));import{readFile,writeFile,mkdir}from'fs/promises';function _0x54a8(){const _0x24f483=['xrvnH','filter','push','\x20scenario(s).','tJrXt','Iabeq','latestReview','join','fOnKo','unaddressedComments','closed','\x20\x20\x20\x20\x20\x20Approved','completed','\x20\x20\x20Updated\x20branch\x20to:\x20','limit','canceledReason','completedAt','AUfUU','pCsDA','\x20\x20\x20\x20\x20\x20Cancelled:\x20','isInteger','NHLaI','includeDeleted','exit','incompleteReason','2340939PwWmUp','en-US','toFixed','dnGvT','NYNpq','write','approved','7610NutrIh','checklistItems','scenario','qeCOK','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','Scenario\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','assetUrl','wxYIM','\x20Session\x20','5102041bhKWEp','VfMuS','AoVUc','\x0aAvailable\x20scenarios:','verified','\x0a✅\x20Resumed\x20feature\x20review:\x20','stats','2368900VWIdej','bRYxc','\x20of\x20','JGWKx','ready','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ZFJhx','items','24242310BFqBzo','EhYai','\x0a✅\x20Session\x20','\x0a✅\x20Restored\x20feature\x20review:\x20','HlUjE','trim','\x20\x20\x20Repository:\x20','mnovU','name','xSUmk','\x1b[0m','WtjEY','incomplete','spatial','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','BIOym','GrRSw','log','dashboardUrl','Current\x20session\x20not\x20found.','63KVUWFx','FqPzj','map','AOyAc','Please\x20finish\x20your\x20review\x20first:','kXKfN','FIOXO','DRljW','split','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20Expected\x20flow:','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20(v','ekRsw','No\x20sessions\x20found.','xZbqi','find','isTTY','142808IwEcAe','status','utf-8','terminalReason','\x20\x20\x20\x20\x20\x20Incomplete:\x20','in_progress','\x0a\x20\x20\x20Scenarios:','arrayBuffer','QKDIz','\x20\x20\x20','\x20\x20\x20Progress:\x20','feedback-images','9091740VhTbaL','RQbkL','\x20\x20\x20\x20','):\x20\x22','\x20--include-deleted','incompleteItems','\x20--current-branch','description','numeric','ctbch','\x0a✅\x20Scenario\x20updated','length','.\x20Feature\x20review\x20has\x20','type','submittedAt','1YOTVId','currentSessionId','HqvAI','\x20at\x20[','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20\x20\x20\x20\x20Progress:\x20','sort','2|0|1|5|4|3','FYasT','SgZkQ','ZGZNU','bLOVm','excludeScenarios','blockedReason','short','gitRepoUrl','toLocaleString','NUdJf','psuDe','pipe','\x20\x20\x20Created:\x20','OJSGw','HucdW','active-feature.txt','env','yoUDM','tjMgW','position','YoqUA','GtgbT','output','blocked','CLAUDE_SESSION_ID','BCoql','version','stdin','stdout','comment_','\x20\x20\x20Branch:\x20','gJPeo','AcUNi','Cannot\x20conclude\x20session\x20with\x20status:\x20','gitBranch','8bXlXug','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','replace','PkPqd','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','blockedItems','kTrFm','error','scenarios','PVbVQ','totalCount','\x20\x20\x20Completed:\x20','repeat'];_0x54a8=function(){return _0x24f483;};return _0x54a8();}import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x24c657 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=_0x3ab331(0xd5),bold=_0x2bdca5=>'\x1b[1m'+_0x2bdca5+_0x3ab331(0x13b);function getGitRepoUrl(){const _0x36ee89=_0x3ab331,_0x57ddd9={'AOyAc':'utf-8','EDLoy':_0x36ee89(0xd1)};try{const _0x29cbd0=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x57ddd9[_0x36ee89(0x148)],'stdio':[_0x57ddd9['EDLoy'],'pipe','pipe']})['trim']();return _0x29cbd0['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x36ee89(0xec)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x188320=_0x3ab331,_0xce28fd={'HlviY':function(_0xfd9dce,_0x398fbf,_0x4e37ce){return _0xfd9dce(_0x398fbf,_0x4e37ce);},'tjMgW':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','AoVUc':'pipe'};try{return _0xce28fd['HlviY'](execSync,_0xce28fd[_0x188320(0xd8)],{'encoding':_0x188320(0xa5),'stdio':[_0xce28fd[_0x188320(0x124)],_0xce28fd[_0x188320(0x124)],'pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x100f29=_0x3ab331,_0x3677b0={'RQbkL':function(_0x377d2f,_0x513b98,_0x1bc625){return _0x377d2f(_0x513b98,_0x1bc625);},'ZFJhx':function(_0x3dd623){return _0x3dd623();},'UVuld':'utf-8'},_0x244f1a=_0x3677b0['RQbkL'](join,_0x3677b0[_0x100f29(0x12f)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x244f1a))return null;try{const _0x392ef8=await _0x3677b0[_0x100f29(0xb0)](readFile,_0x244f1a,_0x3677b0['UVuld']);return _0x392ef8[_0x100f29(0x136)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x3c3df8){const _0x38f09f=_0x3ab331,_0x5079db={'AUfUU':function(_0x5444ba,_0x47aaa5){return _0x5444ba(_0x47aaa5);},'dmODR':'utf-8'},_0x5a718a=getRangerDir(),_0xda6be2=join(_0x5a718a,ACTIVE_FEATURE_FILE);!_0x5079db[_0x38f09f(0x108)](existsSync,_0x5a718a)&&await mkdir(_0x5a718a,{'recursive':!![]}),await writeFile(_0xda6be2,_0x3c3df8,_0x5079db['dmODR']);}function getProgressDisplay(_0x267620){const _0x41954f=_0x3ab331,_0x2c6c73={'AGydJ':function(_0xfba2bc,_0x413c10){return _0xfba2bc===_0x413c10;},'FIOXO':function(_0x509bd1,_0x371db7){return _0x509bd1*_0x371db7;},'AwQUA':function(_0x482998,_0x42b972){return _0x482998/_0x42b972;},'OJSGw':function(_0x366ba4,_0x470da3){return _0x366ba4>_0x470da3;},'WSWLz':function(_0x39aa9a,_0x562e88){return _0x39aa9a>_0x562e88;}},_0xaaff1f=_0x267620['verifiedItems']||0x0,_0xcfcc69=_0x267620['verificationInProgressItems']||0x0,_0x112aa3=_0x267620[_0x41954f(0xef)]||0x0,_0x2fa34f=_0x267620[_0x41954f(0xb4)]||0x0,_0x4b5000=_0x267620['pendingItems']||0x0,_0x34d3a5=_0xaaff1f+_0xcfcc69+_0x112aa3+_0x2fa34f+_0x4b5000;if(_0x2c6c73['AGydJ'](_0x34d3a5,0x0))return'-';const _0x25004a=0xa,_0x2ba206=Math['round'](_0x2c6c73[_0x41954f(0x14b)](_0x2c6c73['AwQUA'](_0xaaff1f,_0x34d3a5),_0x25004a)),_0xf638de='█'[_0x41954f(0xf6)](_0x2ba206)+'░'[_0x41954f(0xf6)](_0x25004a-_0x2ba206),_0x3d8a48=[];if(_0x112aa3>0x0)_0x3d8a48['push'](_0x112aa3+'\x20blocked');if(_0x2c6c73['OJSGw'](_0x2fa34f,0x0))_0x3d8a48['push'](_0x2fa34f+'\x20incomplete');if(_0x2c6c73['WSWLz'](_0xcfcc69,0x0))_0x3d8a48[_0x41954f(0xf9)](_0xcfcc69+'\x20in\x20progress');const _0x3d3138=_0x2c6c73[_0x41954f(0xd3)](_0x3d8a48[_0x41954f(0xba)],0x0)?'\x20('+_0x3d8a48['join'](',\x20')+')':'';return _0xf638de+'\x20'+_0xaaff1f+'/'+_0x34d3a5+'\x20verified'+_0x3d3138;}function getCurrentSessionItems(_0x13efd2,_0x4117f1){const _0x29c6a2=_0x3ab331;if(!_0x13efd2[_0x29c6a2(0xbf)])return _0x4117f1[_0x29c6a2(0xf8)](_0x2956ce=>!_0x2956ce['sessionId'])[_0x29c6a2(0xc4)]((_0x17142c,_0x1550f2)=>_0x17142c[_0x29c6a2(0xd9)]-_0x1550f2[_0x29c6a2(0xd9)]);return _0x4117f1['filter'](_0x53691f=>_0x53691f['sessionId']===_0x13efd2['currentSessionId']||!_0x53691f['sessionId'])['sort']((_0x49d174,_0x190afa)=>_0x49d174['position']-_0x190afa['position']);}function displayFeature(_0x3da905,_0x17b11e){const _0x2ca17a=_0x3ab331,_0x4854d3={'yPzeW':function(_0x314665,_0x1eaa68){return _0x314665<_0x1eaa68;},'grrAo':function(_0x4ca862,_0x22630b){return _0x4ca862===_0x22630b;},'PkPqd':_0x2ca17a(0x101),'FqPzj':function(_0x114608,_0x212d04){return _0x114608===_0x212d04;},'GtgbT':function(_0x17b8bf,_0x5c5f94){return _0x17b8bf===_0x5c5f94;},'xZbqi':_0x2ca17a(0x13d),'Betho':function(_0x203f46,_0x105a4c){return _0x203f46>_0x105a4c;},'MMJKQ':function(_0x1f53ca,_0x35f5d4){return _0x1f53ca>_0x35f5d4;},'oBOpE':function(_0x22cf61,_0xe36e6e){return _0x22cf61+_0xe36e6e;},'fczoP':_0x2ca17a(0xdd),'FYasT':_0x2ca17a(0x116),'gJPeo':function(_0x1ab25e,_0x296e6c){return _0x1ab25e===_0x296e6c;}};console['log']('\x0a'+_0x3da905['name']+'\x20('+_0x3da905[_0x2ca17a(0x143)]+')');_0x3da905[_0x2ca17a(0x128)]&&console[_0x2ca17a(0x142)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3da905['stats']));_0x3da905['description']&&console[_0x2ca17a(0x142)]('\x20\x20\x20Description:\x20'+_0x3da905['description']);_0x3da905[_0x2ca17a(0xcd)]&&console['log'](_0x2ca17a(0x137)+_0x3da905[_0x2ca17a(0xcd)]);_0x3da905[_0x2ca17a(0xe8)]&&console['log'](_0x2ca17a(0xe4)+_0x3da905[_0x2ca17a(0xe8)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3da905['createdAt'])[_0x2ca17a(0xce)]());_0x3da905[_0x2ca17a(0x107)]&&console['log'](_0x2ca17a(0xf5)+new Date(_0x3da905['completedAt'])['toLocaleString']());if(_0x17b11e&&_0x17b11e[_0x2ca17a(0xba)]>0x0){console['log'](_0x2ca17a(0xa9));for(let _0x385fae=0x0;_0x4854d3['yPzeW'](_0x385fae,_0x17b11e[_0x2ca17a(0xba)]);_0x385fae++){const _0x52f35c=_0x17b11e[_0x385fae];let _0x16feb4;if(_0x4854d3['grrAo'](_0x52f35c[_0x2ca17a(0xa4)],_0x4854d3['PkPqd'])&&_0x4854d3[_0x2ca17a(0x146)](_0x52f35c['terminalReason'],'approved'))_0x16feb4='✅';else{if(_0x52f35c['status']===_0x2ca17a(0x126))_0x16feb4='🟢';else{if(_0x4854d3['GtgbT'](_0x52f35c[_0x2ca17a(0xa4)],_0x4854d3[_0x2ca17a(0xa0)]))_0x16feb4='🟠';else{if(_0x52f35c['status']==='blocked')_0x16feb4='🛑';else{if(_0x4854d3['grrAo'](_0x52f35c['status'],'closed'))_0x16feb4='⛔';else _0x4854d3[_0x2ca17a(0xdb)](_0x52f35c[_0x2ca17a(0xa4)],'verification_in_progress')?_0x16feb4='⏳':_0x16feb4='⬜';}}}}const _0x5dacc7=_0x4854d3['Betho'](_0x52f35c['version'],0x1)?'\x20(v'+_0x52f35c[_0x2ca17a(0xe0)]+')':'',_0x18571d=_0x4854d3['MMJKQ'](_0x52f35c[_0x2ca17a(0xe0)],0x1)&&_0x52f35c['parentItemId']&&_0x52f35c[_0x2ca17a(0xa4)]!==_0x4854d3[_0x2ca17a(0xed)]&&_0x52f35c['status']!==_0x2ca17a(0x126)?'\x20[has\x20reviewer\x20feedback]':'';console[_0x2ca17a(0x142)](_0x2ca17a(0xac)+_0x4854d3['oBOpE'](_0x385fae,0x1)+'.\x20'+_0x16feb4+'\x20'+_0x52f35c[_0x2ca17a(0xb6)]+_0x5dacc7+_0x18571d);_0x52f35c[_0x2ca17a(0xa4)]===_0x4854d3['fczoP']&&_0x52f35c['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x52f35c[_0x2ca17a(0xcb)]);_0x4854d3['FqPzj'](_0x52f35c[_0x2ca17a(0xa4)],_0x4854d3['xZbqi'])&&_0x52f35c[_0x2ca17a(0x10f)]&&console['log'](_0x2ca17a(0xa7)+_0x52f35c[_0x2ca17a(0x10f)]);if(_0x52f35c[_0x2ca17a(0xa4)]===_0x4854d3[_0x2ca17a(0xed)]&&_0x52f35c[_0x2ca17a(0xa6)]===_0x4854d3[_0x2ca17a(0xc6)])console[_0x2ca17a(0x142)](_0x2ca17a(0x102));else _0x4854d3[_0x2ca17a(0xe5)](_0x52f35c['status'],_0x2ca17a(0x101))&&_0x52f35c[_0x2ca17a(0x106)]&&console['log'](_0x2ca17a(0x10a)+_0x52f35c['canceledReason']);}}}export async function featureCreate(_0x47b55e,_0x1fd0c9){const _0x4c9815=_0x3ab331,_0xb5552={'rFmsi':function(_0x16f2c1){return _0x16f2c1();},'xFvUi':'\x0aCreating\x20feature\x20review...','NHLaI':function(_0xe43346,_0x1f37d4){return _0xe43346(_0x1f37d4);},'jSmZx':function(_0x3583bd,_0x456f9e){return _0x3583bd(_0x456f9e);},'bLOVm':function(_0x2eeff1,_0xffd87b,_0x1082d2){return _0x2eeff1(_0xffd87b,_0x1082d2);}},{envNames:_0xf4cc08}=await _0xb5552['rFmsi'](getEnvNames);_0xf4cc08['length']===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x1b17cc=>bold(_0x1b17cc)));const _0x47081f=_0x1fd0c9[_0x4c9815(0xf2)]?_0x1fd0c9[_0x4c9815(0xf2)]['map'](_0x28e3ff=>_0x28e3ff['trim']()):[],_0x5c3f0b=getGitRepoUrl(),_0x42cd56=getGitBranch();console[_0x4c9815(0x142)](_0xb5552['xFvUi']);const _0x161487=await createFeature({'name':_0x47b55e,'description':_0x1fd0c9['description'],'checklist':_0x47081f,'gitRepoUrl':_0x5c3f0b,'gitBranch':_0x42cd56});await _0xb5552[_0x4c9815(0x10c)](setActiveFeatureId,_0x161487['id']),await _0xb5552['jSmZx'](tryStartCurrentSession,_0x161487['id']);const _0x529613=process['env'][_0x4c9815(0xde)];_0x529613&&_0xb5552['bLOVm'](registerSession,_0x529613,_0x161487['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x161487['id']),_0xb5552[_0x4c9815(0xc9)](displayFeature,_0x161487,_0x161487['checklistItems']),console['log'](_0x4c9815(0xea));}export async function featureList(_0x3d4d26){const _0x411b2a=_0x3ab331,_0x3caf26={'GrRSw':function(_0x57aae7){return _0x57aae7();},'QEuUw':'\x0aNo\x20feature\x20reviews\x20found.','fOnKo':function(_0x28f0b0,_0x3f2724){return _0x28f0b0>_0x3f2724;},'KISIU':_0x411b2a(0xc5),'BIOym':function(_0x4d7c4e,_0x3ca0aa){return _0x4d7c4e(_0x3ca0aa);},'rhWAd':function(_0x6d99b2,_0x5197e5){return _0x6d99b2+_0x5197e5;},'VfMuS':function(_0x210bac,_0x1517fa){return _0x210bac<_0x1517fa;},'ctbch':_0x411b2a(0xb5)},_0x1564a1={'limit':_0x3d4d26[_0x411b2a(0x105)]??0xa,'offset':_0x3d4d26['offset']??0x0,'includeDeleted':_0x3d4d26[_0x411b2a(0x10d)]};_0x3d4d26['currentBranch']&&(_0x1564a1['gitRepoUrl']=getGitRepoUrl(),_0x1564a1['gitBranch']=_0x3caf26[_0x411b2a(0x141)](getGitBranch));const _0x2ac9da=await listFeatures(_0x1564a1);if(_0x2ac9da['items']['length']===0x0){console['log'](_0x3caf26['QEuUw']);return;}const _0x56de45=_0x3caf26[_0x411b2a(0xff)](_0x2ac9da['totalCount'],_0x2ac9da['items'][_0x411b2a(0xba)])?'Showing\x20'+_0x2ac9da['items'][_0x411b2a(0xba)]+_0x411b2a(0x12b)+_0x2ac9da[_0x411b2a(0xf4)]:_0x2ac9da['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x411b2a(0x142)]('\x0a'+_0x56de45+':\x0a');for(const _0x30c948 of _0x2ac9da['items']){const _0x5b19d3=_0x3caf26['KISIU'][_0x411b2a(0x14d)]('|');let _0x37220b=0x0;while(!![]){switch(_0x5b19d3[_0x37220b++]){case'0':console[_0x411b2a(0x142)]('\x20\x20\x20ID:\x20'+_0x30c948['id']);continue;case'1':_0x30c948[_0x411b2a(0x128)]&&console[_0x411b2a(0x142)](_0x411b2a(0xad)+_0x3caf26[_0x411b2a(0x140)](getProgressDisplay,_0x30c948[_0x411b2a(0x128)]));continue;case'2':console['log'](''+_0x30c948[_0x411b2a(0x139)]);continue;case'3':console[_0x411b2a(0x142)]('');continue;case'4':console[_0x411b2a(0x142)]('\x20\x20\x20Created:\x20'+new Date(_0x30c948['createdAt'])['toLocaleDateString']());continue;case'5':_0x30c948[_0x411b2a(0xe8)]&&console['log'](_0x411b2a(0xe4)+_0x30c948['gitBranch']);continue;}break;}}const _0x2af51f=_0x1564a1['limit']??0xa,_0x1df6ba=_0x3caf26['rhWAd'](_0x1564a1['offset']??0x0,_0x2ac9da[_0x411b2a(0x130)][_0x411b2a(0xba)]);if(_0x3caf26[_0x411b2a(0x123)](_0x1df6ba,_0x2ac9da[_0x411b2a(0xf4)])){const _0x191da5=_0x2af51f!==0xa?'\x20--limit\x20'+_0x2af51f:'',_0x3089e=_0x3d4d26['currentBranch']?_0x3caf26[_0x411b2a(0xb8)]:'',_0x510f18=_0x3d4d26['includeDeleted']?_0x411b2a(0xb3):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1df6ba+_0x191da5+_0x3089e+_0x510f18);}}export async function featureShow(_0x2ae4fe){const _0xc8f94d={'Pblve':function(_0x5bf6a9){return _0x5bf6a9();},'nVLhW':function(_0x1b53c,_0x47c73b){return _0x1b53c(_0x47c73b);}},_0x4c140d=_0x2ae4fe||await _0xc8f94d['Pblve'](getActiveFeatureId);if(!_0x4c140d)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 _0x495819=await _0xc8f94d['nVLhW'](getFeature,_0x4c140d);displayFeature(_0x495819,_0x495819['checklistItems']);}export async function featureResume(_0x5cd41e){const _0x1cf7ae=_0x3ab331,_0xf22736={'wxYIM':function(_0x2997c9,_0x284597){return _0x2997c9(_0x284597);},'SgZkQ':function(_0x227c0f,_0x2c15c9){return _0x227c0f!==_0x2c15c9;},'HlUjE':function(_0x121a25,_0x501206,_0x1ec0b9){return _0x121a25(_0x501206,_0x1ec0b9);},'HucdW':function(_0x3aa8cf,_0x456339){return _0x3aa8cf(_0x456339);},'fAipr':function(_0x35ac48,_0x257e52){return _0x35ac48&&_0x257e52;},'xcbUD':'Not\x20in\x20a\x20git\x20repository.','JGWKx':'any','cXUAx':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','sCNEZ':_0x1cf7ae(0x14f),'AcUNi':function(_0x4eaabb,_0x38f518){return _0x4eaabb(_0x38f518);},'yoUDM':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','OYSvH':'list','bRYxc':'selected','BCoql':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:'};if(_0x5cd41e){const _0xac24fb=await _0xf22736[_0x1cf7ae(0x120)](getFeature,_0x5cd41e);await setActiveFeatureId(_0xac24fb['id']);const _0x1e5483=getGitBranch();_0x1e5483&&_0xf22736[_0x1cf7ae(0xc7)](_0x1e5483,_0xac24fb[_0x1cf7ae(0xe8)])&&(await _0xf22736[_0x1cf7ae(0x135)](updateFeature,_0xac24fb['id'],{'gitBranch':_0x1e5483}),console[_0x1cf7ae(0x142)](_0x1cf7ae(0x104)+_0x1e5483));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xac24fb['name']+'\x20('+_0xac24fb['id']+')'),await _0xf22736['wxYIM'](tryStartCurrentSession,_0xac24fb['id']);const _0x5a0b63=process[_0x1cf7ae(0xd6)][_0x1cf7ae(0xde)];_0x5a0b63&&_0xf22736['HlUjE'](registerSession,_0x5a0b63,_0xac24fb['id']);displayFeature(_0xac24fb,_0xac24fb['checklistItems']),await _0xf22736[_0x1cf7ae(0xd4)](printFeedbackNudge,_0xac24fb['id']);return;}const _0x30fa23=getGitRepoUrl(),_0xe9859a=getGitBranch();if(_0xf22736['fAipr'](!_0x30fa23,!_0xe9859a))throw new Error(_0xf22736['xcbUD']);console['log'](_0x1cf7ae(0x11b)+(_0x30fa23||'any')+'\x20/\x20'+(_0xe9859a||_0xf22736[_0x1cf7ae(0x12c)])+'...');const _0x311eb4=await listFeatures({'gitRepoUrl':_0x30fa23,'gitBranch':_0xe9859a}),_0x5a6396=_0x311eb4[_0x1cf7ae(0x130)]['filter'](_0x122c18=>!_0x122c18['completedAt']);if(_0x5a6396['length']===0x0){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0xf22736['cXUAx']);return;}let _0x1990c2;if(_0x5a6396['length']===0x1)_0x1990c2=_0x5a6396[0x0];else{const _0x4c3603=process[_0x1cf7ae(0xe1)]['isTTY']&&process[_0x1cf7ae(0xe2)][_0x1cf7ae(0xa2)];if(!_0x4c3603){console['log'](_0xf22736['sCNEZ']);for(const _0x21689e of _0x5a6396){console[_0x1cf7ae(0x142)]('\x20\x20'+_0x21689e['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x21689e['id']),_0x21689e[_0x1cf7ae(0x128)]&&console['log'](_0x1cf7ae(0xc3)+_0xf22736[_0x1cf7ae(0xe6)](getProgressDisplay,_0x21689e[_0x1cf7ae(0x128)])),_0x21689e[_0x1cf7ae(0xe8)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x21689e[_0x1cf7ae(0xe8)]);}throw new Error(_0xf22736[_0x1cf7ae(0xd7)]);}const {selected:_0x493b25}=await _0x24c657['prompt']([{'type':_0xf22736['OYSvH'],'name':_0xf22736[_0x1cf7ae(0x12a)],'message':_0xf22736[_0x1cf7ae(0xdf)],'choices':_0x5a6396['map'](_0x53abcd=>({'name':_0x53abcd['name']+'\x20('+_0x53abcd['id']+')','value':_0x53abcd['id']}))}]);_0x1990c2=_0x5a6396['find'](_0x35b993=>_0x35b993['id']===_0x493b25);}await _0xf22736[_0x1cf7ae(0xd4)](setActiveFeatureId,_0x1990c2['id']);_0xe9859a&&_0xf22736['SgZkQ'](_0xe9859a,_0x1990c2[_0x1cf7ae(0xe8)])&&(await updateFeature(_0x1990c2['id'],{'gitBranch':_0xe9859a}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0xe9859a));console[_0x1cf7ae(0x142)](_0x1cf7ae(0x127)+_0x1990c2[_0x1cf7ae(0x139)]+'\x20('+_0x1990c2['id']+')'),await _0xf22736[_0x1cf7ae(0x120)](tryStartCurrentSession,_0x1990c2['id']);const _0x547cd5=await _0xf22736[_0x1cf7ae(0x120)](getFeature,_0x1990c2['id']),_0x3f6e69=process[_0x1cf7ae(0xd6)][_0x1cf7ae(0xde)];_0x3f6e69&&registerSession(_0x3f6e69,_0x547cd5['id']),displayFeature(_0x547cd5,_0x547cd5['checklistItems']),await printFeedbackNudge(_0x547cd5['id']);}async function printFeedbackNudge(_0x46b78a){const _0xd4e448=_0x3ab331,_0x3d5841={'HalcS':function(_0x6da95a,_0x3dcefb,_0x41018c){return _0x6da95a(_0x3dcefb,_0x41018c);},'zvUZx':function(_0x1fbcda,_0x309052){return _0x1fbcda>_0x309052;}};try{const {items:_0x3d4da1}=await getActionItems(_0x46b78a);let _0x1d939d=0x0,_0x419482=0x0;for(const _0x33a032 of _0x3d4da1){const _0x52dd21=await _0x3d5841['HalcS'](getItemFeedback,_0x46b78a,_0x33a032['id']);_0x3d5841['zvUZx'](_0x52dd21['unaddressedComments'][_0xd4e448(0xba)],0x0)&&(_0x1d939d+=_0x52dd21['unaddressedComments']['length'],_0x419482++);}_0x1d939d>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x1d939d+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x419482+_0xd4e448(0xfa)),console[_0xd4e448(0x142)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x2971ec){const _0xeab23=_0x3ab331,_0x3fe3c7={'hWUJW':function(_0x49656e,_0x1624f0,_0x1d8f19){return _0x49656e(_0x1624f0,_0x1d8f19);}};try{const {sessions:_0x3066d7}=await listFeatureSessions(_0x2971ec),_0x37d917=_0x3066d7[_0xeab23(0xa1)](_0x1c9753=>_0x1c9753[_0xeab23(0xa4)]===_0xeab23(0x12d));_0x37d917&&(await _0x3fe3c7['hWUJW'](startSession,_0x2971ec,_0x37d917['id']),console[_0xeab23(0x142)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x37d917['iteration']));}catch{}}export async function featureReport(_0x1396c4,_0x592169){const _0x2538be=_0x3ab331,_0x3c4273={'xSUmk':function(_0x97ed18,_0x2720a,_0x299d2a){return _0x97ed18(_0x2720a,_0x299d2a);},'xrvnH':'reports','HDVft':function(_0x4468e4,_0x185ad0,_0x5ae311,_0x46636a){return _0x4468e4(_0x185ad0,_0x5ae311,_0x46636a);}},_0x36aec3=_0x1396c4||await getActiveFeatureId();if(!_0x36aec3)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console[_0x2538be(0x142)]('\x0aGenerating\x20report...');const _0x16ef27=await _0x3c4273[_0x2538be(0x13a)](getFeatureReportMarkdown,_0x36aec3,{'style':_0x592169['style']}),_0x572102=_0x592169[_0x2538be(0xdc)]||join(getRangerDir(),_0x3c4273[_0x2538be(0xf7)],_0x36aec3+'.md'),_0x1175e7=join(_0x572102,'..');!existsSync(_0x1175e7)&&await mkdir(_0x1175e7,{'recursive':!![]}),await _0x3c4273['HDVft'](writeFile,_0x572102,_0x16ef27,'utf-8'),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x572102);}function _0x3119(_0x2e0fbb,_0x1a0eaa){_0x2e0fbb=_0x2e0fbb-0x9e;const _0x54a8ff=_0x54a8();let _0x311984=_0x54a8ff[_0x2e0fbb];return _0x311984;}export async function featureReportPrDescription(_0x403c13,_0x570985){const _0x530dc0=_0x3ab331,_0x59c611={'occbM':function(_0x14d350){return _0x14d350();},'Iabeq':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','HqvAI':function(_0x2ba298,_0x44b58a){return _0x2ba298(_0x44b58a);},'FTSrb':function(_0x486e5f,_0x4343e8,_0x5a7025){return _0x486e5f(_0x4343e8,_0x5a7025);},'mnovU':function(_0x391c93,_0x208dc9){return _0x391c93===_0x208dc9;},'wBJfw':function(_0x49837b,_0xc999e1){return _0x49837b<_0xc999e1;},'GYPJl':function(_0xa2831a,_0x5bd7cc){return _0xa2831a===_0x5bd7cc;}},_0x2c9c51=_0x403c13||await _0x59c611['occbM'](getActiveFeatureId);if(!_0x2c9c51)throw new Error(_0x59c611[_0x530dc0(0xfc)]);const _0x12f676=await _0x59c611[_0x530dc0(0xc0)](getFeature,_0x2c9c51),_0x452898=_0x12f676['checklistItems']||[],_0x180c9e=_0x59c611['FTSrb'](getCurrentSessionItems,_0x12f676,_0x452898);_0x59c611[_0x530dc0(0x138)](_0x180c9e[_0x530dc0(0xba)],0x0)&&(console[_0x530dc0(0xf1)](_0x530dc0(0xc2)),process[_0x530dc0(0x10e)](0x1));const _0x6e16bf=_0x570985[_0x530dc0(0xca)]??[],_0xf8c350=_0x6e16bf[_0x530dc0(0xf8)](_0x54c2ca=>!Number[_0x530dc0(0x10b)](_0x54c2ca)||_0x54c2ca<0x1||_0x54c2ca>_0x180c9e[_0x530dc0(0xba)]);if(_0xf8c350['length']>0x0){console[_0x530dc0(0xf1)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0xf8c350[_0x530dc0(0xfe)](',\x20')),console['log'](_0x530dc0(0x125));for(let _0x39a1a9=0x0;_0x59c611['wBJfw'](_0x39a1a9,_0x180c9e[_0x530dc0(0xba)]);_0x39a1a9++){console['log']('\x20\x20'+(_0x39a1a9+0x1)+'.\x20'+_0x180c9e[_0x39a1a9][_0x530dc0(0xb6)]);}process['exit'](0x1);}const _0x1ef2a8=new Set(_0x6e16bf['map'](_0xfcfe67=>_0xfcfe67-0x1)),_0x2dfc28=_0x180c9e[_0x530dc0(0xf8)]((_0x4e1a44,_0x29d7a3)=>!_0x1ef2a8['has'](_0x29d7a3));_0x59c611['GYPJl'](_0x2dfc28[_0x530dc0(0xba)],0x0)&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x530dc0(0x10e)](0x1));const _0x53520e=await getFeatureReportMarkdown(_0x2c9c51,{'itemIds':_0x2dfc28[_0x530dc0(0x147)](_0x58b85d=>_0x58b85d['id'])});process[_0x530dc0(0xe2)][_0x530dc0(0x115)](_0x53520e['trimEnd']()+'\x0a');}export async function featureConcludeSession(_0x28c415){const _0x397356=_0x3ab331,_0x45365c={'ozonU':_0x397356(0x151),'ryXgI':function(_0x1326d1,_0x42e23b){return _0x1326d1(_0x42e23b);},'dnGvT':_0x397356(0x144),'nmTCh':function(_0xe1366b,_0x20341a){return _0xe1366b===_0x20341a;},'iwopK':'\x0a✅\x20Session\x20is\x20already\x20completed.'},_0x3ed26f=_0x28c415||await getActiveFeatureId();if(!_0x3ed26f)throw new Error(_0x45365c['ozonU']);const _0x4cb4bb=await _0x45365c['ryXgI'](getFeature,_0x3ed26f);if(!_0x4cb4bb[_0x397356(0xbf)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x4d7baa}=await listFeatureSessions(_0x3ed26f),_0x2bcdae=_0x4d7baa[_0x397356(0xa1)](_0xc9a5ed=>_0xc9a5ed['id']===_0x4cb4bb['currentSessionId']);if(!_0x2bcdae)throw new Error(_0x45365c[_0x397356(0x113)]);if(_0x45365c['nmTCh'](_0x2bcdae['status'],_0x397356(0x103))){console[_0x397356(0x142)](_0x45365c['iwopK']);return;}if(_0x2bcdae['status']!==_0x397356(0xa8))throw new Error(_0x397356(0xe7)+_0x2bcdae[_0x397356(0xa4)]);console['log']('\x0aConcluding\x20session...'),await concludeSession(_0x3ed26f,_0x4cb4bb[_0x397356(0xbf)]),console[_0x397356(0x142)](_0x397356(0x133)+_0x2bcdae['iteration']+'\x20concluded.'),console[_0x397356(0x142)](_0x397356(0xeb));}export async function featureSessions(_0x414a4a){const _0x51a219=_0x3ab331,_0x193a70={'ekRsw':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','NUdJf':function(_0x3df985,_0x34703a){return _0x3df985(_0x34703a);},'yxCSP':function(_0x5bd301,_0x5d4aad){return _0x5bd301===_0x5d4aad;},'AAwKw':_0x51a219(0xa8)},_0x1cae6f=_0x414a4a||await getActiveFeatureId();if(!_0x1cae6f)throw new Error(_0x193a70[_0x51a219(0x9e)]);const _0x530979=await _0x193a70[_0x51a219(0xcf)](getFeature,_0x1cae6f);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x530979['name']+'\x0a');const {sessions:_0x3d80ac}=await listFeatureSessions(_0x1cae6f);if(_0x3d80ac[_0x51a219(0xba)]===0x0){console[_0x51a219(0x142)](_0x51a219(0x9f));return;}for(const _0x2bbdf9 of _0x3d80ac){const _0x519291=_0x2bbdf9['status']==='completed'?'✅':_0x193a70['yxCSP'](_0x2bbdf9[_0x51a219(0xa4)],_0x193a70['AAwKw'])?'🔄':'▶️';console[_0x51a219(0x142)](_0x519291+_0x51a219(0x121)+_0x2bbdf9['iteration']+'\x20('+_0x2bbdf9['id']+')'),console[_0x51a219(0x142)]('\x20\x20\x20Status:\x20'+_0x2bbdf9[_0x51a219(0xa4)]),console[_0x51a219(0x142)](_0x51a219(0xd2)+new Date(_0x2bbdf9['createdAt'])[_0x51a219(0xce)]()),_0x2bbdf9['completedAt']&&console[_0x51a219(0x142)]('\x20\x20\x20Completed:\x20'+new Date(_0x2bbdf9['completedAt'])[_0x51a219(0xce)]()),console[_0x51a219(0x142)]('');}}export async function featureAddScenario(_0x199355,_0x1d7d93){const _0x20eb83=_0x3ab331,_0x562942={'gcNwI':function(_0x5972dd){return _0x5972dd();},'QKDIz':_0x20eb83(0x151),'ZGZNU':function(_0x42df89,_0x1c09d0){return _0x42df89(_0x1c09d0);},'PVbVQ':function(_0x5f2477,_0xc4bd34,_0x4e8eaf){return _0x5f2477(_0xc4bd34,_0x4e8eaf);}},_0x3d5994=_0x1d7d93||await _0x562942['gcNwI'](getActiveFeatureId);if(!_0x3d5994)throw new Error(_0x562942[_0x20eb83(0xab)]);const _0xc1dc52=await _0x562942[_0x20eb83(0xc8)](getFeature,_0x3d5994);if(_0xc1dc52['latestReview']&&!_0xc1dc52['latestReview'][_0x20eb83(0xbd)])throw new Error(_0x20eb83(0x11e)+_0xc1dc52[_0x20eb83(0x143)]);await createChecklistItem(_0x3d5994,_0x199355);const _0x28c4c9=await _0x562942[_0x20eb83(0xc8)](getFeature,_0x3d5994);console['log']('\x0a✅\x20Scenario\x20added'),_0x562942[_0x20eb83(0xf3)](displayFeature,_0x28c4c9,_0x28c4c9['checklistItems']);}export async function featureEditScenario(_0xf70517,_0x561b68){const _0x54035b=_0x3ab331,_0x16d49f={'mdywp':_0x54035b(0x12e),'qeCOK':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','zxVTv':_0x54035b(0xee),'kFijS':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','WtjEY':function(_0x3584b8,_0x5af342){return _0x3584b8+_0x5af342;},'qmFSG':function(_0x182195,_0xd1477c){return _0x182195-_0xd1477c;},'kXKfN':_0x54035b(0x125),'nNFMm':function(_0x141439,_0x367d10){return _0x141439(_0x367d10);},'vrqDg':function(_0xcaa38b,_0xddc6d2,_0x14ea14){return _0xcaa38b(_0xddc6d2,_0x14ea14);}},_0x48fd9c=_0x561b68['id']||await getActiveFeatureId();!_0x48fd9c&&(console[_0x54035b(0xf1)](_0x16d49f['mdywp']),console['error'](_0x16d49f[_0x54035b(0x11a)]),process['exit'](0x1));const _0x1311d3=await getFeature(_0x48fd9c);_0x1311d3[_0x54035b(0xfd)]&&!_0x1311d3['latestReview']['submittedAt']&&(console[_0x54035b(0xf1)](_0x16d49f['zxVTv']),console[_0x54035b(0xf1)](_0x54035b(0x149)),console['error']('\x20\x20'+_0x1311d3['dashboardUrl']),process['exit'](0x1));const _0xb2a77e=_0x1311d3['checklistItems']||[];_0xb2a77e['length']===0x0&&(console[_0x54035b(0xf1)](_0x16d49f['kFijS']),process['exit'](0x1));if(_0x561b68['scenario']===undefined){console['error'](_0x54035b(0x13f)),console['log'](_0x54035b(0x125));for(let _0x521fe5=0x0;_0x521fe5<_0xb2a77e['length'];_0x521fe5++){console[_0x54035b(0x142)]('\x20\x20'+_0x16d49f[_0x54035b(0x13c)](_0x521fe5,0x1)+'.\x20'+_0xb2a77e[_0x521fe5]['description']);}process[_0x54035b(0x10e)](0x1);}const _0x141506=_0x16d49f['qmFSG'](_0x561b68[_0x54035b(0x119)],0x1);if(_0x141506<0x0||_0x141506>=_0xb2a77e['length']){console[_0x54035b(0xf1)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x561b68[_0x54035b(0x119)]+_0x54035b(0xbb)+_0xb2a77e[_0x54035b(0xba)]+'\x20scenarios.'),console[_0x54035b(0x142)](_0x16d49f[_0x54035b(0x14a)]);for(let _0xe712c=0x0;_0xe712c<_0xb2a77e['length'];_0xe712c++){console['log']('\x20\x20'+(_0xe712c+0x1)+'.\x20'+_0xb2a77e[_0xe712c]['description']);}process[_0x54035b(0x10e)](0x1);}const _0x5affb2=_0xb2a77e[_0x141506];await updateChecklistItem(_0x48fd9c,_0x5affb2['id'],{'description':_0xf70517});const _0x47c49e=await _0x16d49f['nNFMm'](getFeature,_0x48fd9c);console['log'](_0x54035b(0xb9)),_0x16d49f['vrqDg'](displayFeature,_0x47c49e,_0x47c49e['checklistItems']);}async function downloadFeedbackImage(_0x5bc70f,_0x56a6d1){const _0x1666d4=_0x3ab331,_0x42b53b={'psuDe':function(_0x468a65,_0x4a2c13,_0x4dfdfa){return _0x468a65(_0x4a2c13,_0x4dfdfa);},'pCsDA':function(_0x2a7703){return _0x2a7703();},'kEiAH':function(_0x4a8cc1,_0x3e1f79,_0x4495c4){return _0x4a8cc1(_0x3e1f79,_0x4495c4);},'NYNpq':function(_0x399bd6,_0x1ade64,_0x4e3959){return _0x399bd6(_0x1ade64,_0x4e3959);}};try{const _0x580e14=_0x42b53b['psuDe'](join,_0x42b53b[_0x1666d4(0x109)](getRangerDir),_0x1666d4(0xae));await _0x42b53b['kEiAH'](mkdir,_0x580e14,{'recursive':!![]});const _0x4673b5=_0x42b53b[_0x1666d4(0x114)](join,_0x580e14,_0x1666d4(0xe3)+_0x56a6d1+'.png'),_0x5b49a0=await fetch(_0x5bc70f);if(!_0x5b49a0['ok'])return null;const _0x11a1d9=Buffer['from'](await _0x5b49a0[_0x1666d4(0xaa)]());return await _0x42b53b[_0x1666d4(0xd0)](writeFile,_0x4673b5,_0x11a1d9),_0x4673b5;}catch{return null;}}export async function featureGetReview(_0x28f63f){const _0x2cf6ef=_0x3ab331,_0x192cbb={'xVbyw':function(_0x5044a3){return _0x5044a3();},'jShrk':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','tjbYl':function(_0x48d62c,_0xf87d43){return _0x48d62c===_0xf87d43;},'VCFVo':function(_0x4da04f,_0x5714a1){return _0x4da04f<_0x5714a1;},'DRljW':function(_0x3b4abc,_0x5a3fbd){return _0x3b4abc>_0x5a3fbd;},'YoqUA':function(_0x271c86,_0x15dcad){return _0x271c86+_0x15dcad;},'kpiIq':_0x2cf6ef(0xcc),'EhYai':'point'},_0x5949c9=_0x28f63f||await _0x192cbb['xVbyw'](getActiveFeatureId);if(!_0x5949c9)throw new Error(_0x192cbb['jShrk']);const _0x46fce8=await getFeature(_0x5949c9),{items:_0x2f968e}=await getActionItems(_0x5949c9);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x46fce8['name']+'\x20('+_0x46fce8['id']+')\x0a');if(_0x192cbb['tjbYl'](_0x2f968e['length'],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x150e44=0x0;_0x192cbb['VCFVo'](_0x150e44,_0x2f968e['length']);_0x150e44++){const _0x363a45=_0x2f968e[_0x150e44],_0x1fdf13=_0x363a45[_0x2cf6ef(0xe0)]>0x1?_0x2cf6ef(0x152)+_0x363a45[_0x2cf6ef(0xe0)]+')':'',_0x5248f6=await getItemFeedback(_0x5949c9,_0x363a45['id']);if(_0x192cbb[_0x2cf6ef(0x14c)](_0x5248f6['unaddressedComments'][_0x2cf6ef(0xba)],0x0)){console[_0x2cf6ef(0x142)](_0x2cf6ef(0x11c)+_0x192cbb[_0x2cf6ef(0xda)](_0x150e44,0x1)+':\x20\x22'+_0x363a45[_0x2cf6ef(0xb6)]+'\x22'+_0x1fdf13+'\x20—\x20'+_0x5248f6[_0x2cf6ef(0x100)][_0x2cf6ef(0xba)]+'\x20unaddressed\x20comment(s)');for(const _0x8290ff of _0x5248f6['unaddressedComments']){const _0x519a5d=new Date(_0x8290ff['createdAt'])['toLocaleDateString'](_0x2cf6ef(0x111),{'month':_0x192cbb['kpiIq'],'day':_0x2cf6ef(0xb7)}),_0x5cb1f8=_0x8290ff['authorName']||_0x8290ff['authorEmail']||'Unknown';console[_0x2cf6ef(0x142)]('\x20\x20💬\x20'+_0x5cb1f8+'\x20('+_0x519a5d+_0x2cf6ef(0xb2)+_0x8290ff['content']+'\x22');if(_0x8290ff[_0x2cf6ef(0x11f)]){const _0x4938d0=await downloadFeedbackImage(_0x8290ff['assetUrl'],_0x8290ff['id']);_0x4938d0&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x4938d0);}if(_0x8290ff['spatial']){const _0x1cca6e=_0x8290ff['spatial']['coordinates'];_0x192cbb['tjbYl'](_0x8290ff['spatial'][_0x2cf6ef(0xbc)],_0x192cbb[_0x2cf6ef(0x132)])&&_0x1cca6e['length']>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x1cca6e[0x0]['toFixed'](0x2)+',\x20'+_0x1cca6e[0x1][_0x2cf6ef(0x112)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x8290ff[_0x2cf6ef(0x13e)]['type']+_0x2cf6ef(0xc1)+_0x1cca6e[_0x2cf6ef(0x147)](_0x1587e0=>_0x1587e0[_0x2cf6ef(0x112)](0x2))[_0x2cf6ef(0xfe)](',\x20')+']');}}if(_0x5248f6['canonicalFlow']){console['log'](_0x2cf6ef(0x150));for(const _0x3b8ec3 of _0x5248f6['canonicalFlow'][_0x2cf6ef(0x14d)]('\x0a')){console[_0x2cf6ef(0x142)](_0x2cf6ef(0xb1)+_0x3b8ec3);}}}else console[_0x2cf6ef(0x142)]('Scenario\x20'+_0x192cbb[_0x2cf6ef(0xda)](_0x150e44,0x1)+':\x20\x22'+_0x363a45['description']+'\x22'+_0x1fdf13+'\x20—\x20no\x20comments'),console[_0x2cf6ef(0x142)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x33db32){const _0x1e133f=_0x3ab331,_0x181d76={'tJrXt':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','rfKGF':function(_0x49198b,_0x2fdc72){return _0x49198b(_0x2fdc72);}},_0x19e454=_0x33db32||await getActiveFeatureId();if(!_0x19e454)throw new Error(_0x181d76[_0x1e133f(0xfb)]);const _0x3f5e2d=await _0x181d76['rfKGF'](getFeature,_0x19e454);await _0x181d76['rfKGF'](softDeleteFeature,_0x19e454),console['log'](_0x1e133f(0x11d)+_0x3f5e2d['name']+'\x20('+_0x19e454+')'),console[_0x1e133f(0x142)](_0x1e133f(0x14e)+_0x19e454);}export async function featureRestore(_0x12cfd6){const _0x6dc48=_0x3ab331,_0x589972={'kTrFm':function(_0x4c96c9,_0xa117ea){return _0x4c96c9(_0xa117ea);}};await restoreFeature(_0x12cfd6);const _0x50c150=await _0x589972[_0x6dc48(0xf0)](getFeature,_0x12cfd6);console['log'](_0x6dc48(0x134)+_0x50c150[_0x6dc48(0x139)]+'\x20('+_0x12cfd6+')'),displayFeature(_0x50c150,_0x50c150[_0x6dc48(0x118)]);}
1
+ const _0x239627=_0x580b;(function(_0x28b7f2,_0x19cc1c){const _0x1f4507=_0x580b,_0x36506d=_0x28b7f2();while(!![]){try{const _0x1f780b=parseInt(_0x1f4507(0x174))/0x1*(parseInt(_0x1f4507(0x1b2))/0x2)+-parseInt(_0x1f4507(0x191))/0x3*(-parseInt(_0x1f4507(0x14e))/0x4)+-parseInt(_0x1f4507(0x1c6))/0x5+parseInt(_0x1f4507(0x144))/0x6*(parseInt(_0x1f4507(0x120))/0x7)+parseInt(_0x1f4507(0x18f))/0x8+-parseInt(_0x1f4507(0x199))/0x9+parseInt(_0x1f4507(0x15f))/0xa;if(_0x1f780b===_0x19cc1c)break;else _0x36506d['push'](_0x36506d['shift']());}catch(_0x3636bf){_0x36506d['push'](_0x36506d['shift']());}}}(_0x3d26,0x57408));function _0x580b(_0x25e074,_0x34a89b){_0x25e074=_0x25e074-0x120;const _0x3d26c6=_0x3d26();let _0x580b22=_0x3d26c6[_0x25e074];return _0x580b22;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3edf0f 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=_0x239627(0x167),bold=_0x3f789a=>_0x239627(0x15d)+_0x3f789a+_0x239627(0x131);function getGitRepoUrl(){const _0x2fbb1e=_0x239627,_0x5ac745={'UUFpe':function(_0x3443e6,_0x4b2deb,_0x459c6c){return _0x3443e6(_0x4b2deb,_0x459c6c);},'KZSAg':_0x2fbb1e(0x1d6),'vWZhW':'pipe'};try{const _0x2a20e8=_0x5ac745['UUFpe'](execSync,_0x2fbb1e(0x13e),{'encoding':_0x5ac745['KZSAg'],'stdio':[_0x5ac745['vWZhW'],_0x5ac745['vWZhW'],_0x5ac745[_0x2fbb1e(0x127)]]})[_0x2fbb1e(0x137)]();return _0x2a20e8[_0x2fbb1e(0x1d9)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x2fbb1e(0x18e))[_0x2fbb1e(0x1d9)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x426f6c=_0x239627,_0x155af8={'DuDHN':function(_0x1671be,_0x4edfd3,_0x2a6a75){return _0x1671be(_0x4edfd3,_0x2a6a75);},'XKQoY':_0x426f6c(0x1d6),'iIDHF':_0x426f6c(0x159)};try{return _0x155af8[_0x426f6c(0x132)](execSync,_0x426f6c(0x1cd),{'encoding':_0x155af8['XKQoY'],'stdio':[_0x426f6c(0x159),'pipe',_0x155af8['iIDHF']]})['trim']();}catch{return undefined;}}function _0x3d26(){const _0x26a754=['textContent','completed','Scenario\x20','latestReview','\x0a✅\x20Resumed\x20feature\x20review:\x20','closed','206RccQTY','No\x20scenarios\x20found.','.md','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','includeDeleted','Current\x20session\x20not\x20found.','canceledReason','repeat','\x0a✅\x20Session\x20is\x20already\x20completed.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','NslBY','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','YUaGg','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','bOmOV','canonicalFlow','error','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','FTKdQ','2152385HhWALO','\x20\x20\x20Repository:\x20','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','BsvqT','dCsfY','domRef','iteration','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Please\x20finish\x20your\x20review\x20first:','\x20\x20\x20Completed:\x20','\x20\x20\x20\x20','XpVny','\x20\x20\x20\x20\x20\x20Blocked:\x20','blockedReason','sLZrI','name','utf-8','\x20(v','assetUrl','replace','join','xngPS','osldB','CvTEY','items','5|2|4|1|3|0','Fqofg','\x20--current-branch','type','find','stdout','\x20at\x20[','YrLbl','submittedAt','length','log','UCYcq','mtnXh','warn','lkVYj','\x20scenarios.','JTFCa','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20\x20\x20Progress:\x20','\x20\x20\x20Created:\x20','PaEZn','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','xshPo','HiGsq','currentBranch','bprAX','gitRepoUrl','BtiCM','1211679PtYqNR','kVytg','\x20--include-deleted',':\x20\x22','limit','GpYAC','gitBranch','vWZhW','push','jQIEy','\x20\x20\x20','\x20scenario(s).','pXhUB','Gqlyv','description','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','env','\x1b[0m','DuDHN','currentSessionId','short','qNJdV','\x20unaddressed\x20comment(s)','trim','BmGzi','LeRKm','approved','IvpUo','feedback-images','PvsJH','git\x20remote\x20get-url\x20origin','QtvJe','\x20concluded.','round','SVSuj','\x20feature\x20review(s)\x20found','6JWsVKB','position','dysgP','isTTY','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','scenarios','\x20\x20\x20▶️\x20Started\x20session\x20','\x20\x20\x20Branch:\x20','totalCount','Larxx','70732xtpaIj','LWQLx','olWZc','\x20of\x20','ready','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','createdAt','sessionId','blockedItems','map','\x20in\x20progress','pipe','\x0a✅\x20Session\x20','xVhst','fcYSU','\x1b[1m','QABtt','5843320gBaQGw','dashboardUrl','split','\x20verified','Not\x20in\x20a\x20git\x20repository.','in_progress','write','selector','active-feature.txt','uNtTB','yHxbh','verified','NqChM','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','spatial','status','\x0a✅\x20Report\x20generated:\x20','\x20blocked','toLocaleDateString','kPdoM','\x0a⚠️\x20\x20','418VihtEa','\x20\x20\x20Description:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','WNoqQ','reports','oJUkH','\x0a\x20\x20\x20Scenarios:','ARyAH','\x20\x20\x20ID:\x20','ygPoJ','filter','qJtYp','eFrGY','trimEnd','unaddressedComments','mhOGY','en-US','havOL','version','DRXjA','numeric','stats','toLocaleString','mdGBu','element','wkseC','github.com/','707632CLUZCR','\x20\x20\x20\x20\x20\x20Cancelled:\x20','18raumPZ','offset','BPgpd','exit','AcLNC','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20Status:\x20','NFeHB','1864566FpspzM','\x20\x20\x20\x20\x20\x20Approved','incompleteItems','isInteger','CLAUDE_SESSION_ID','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','incomplete','desjK','sort','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','checklistItems','obArp','VnJrx','authorEmail','LoEKa','slice','arrayBuffer','egmBW','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'];_0x3d26=function(){return _0x26a754;};return _0x3d26();}export async function getActiveFeatureId(){const _0x7b6c37=_0x239627,_0x14b64d={'AcLNC':function(_0x2e981b){return _0x2e981b();}},_0x3fa6b0=join(_0x14b64d[_0x7b6c37(0x195)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x3fa6b0))return null;try{const _0x1fba33=await readFile(_0x3fa6b0,_0x7b6c37(0x1d6));return _0x1fba33['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x3dbfd2){const _0x154c75=_0x239627,_0x62ba3={'YBFja':function(_0x50cb88){return _0x50cb88();},'BPgpd':function(_0x3da18c,_0x52d0ae,_0x583a5a){return _0x3da18c(_0x52d0ae,_0x583a5a);},'xngPS':function(_0x2728b1,_0xea35e0){return _0x2728b1(_0xea35e0);},'QABtt':function(_0x56ccd5,_0x116c48,_0x213a2a,_0x1f2c9f){return _0x56ccd5(_0x116c48,_0x213a2a,_0x1f2c9f);},'nboPh':'utf-8'},_0x376a03=_0x62ba3['YBFja'](getRangerDir),_0x2df13e=_0x62ba3['BPgpd'](join,_0x376a03,ACTIVE_FEATURE_FILE);!_0x62ba3[_0x154c75(0x1db)](existsSync,_0x376a03)&&await _0x62ba3[_0x154c75(0x193)](mkdir,_0x376a03,{'recursive':!![]}),await _0x62ba3[_0x154c75(0x15e)](writeFile,_0x2df13e,_0x3dbfd2,_0x62ba3['nboPh']);}function getProgressDisplay(_0x3c8a2f){const _0x1e2f43=_0x239627,_0xe21867={'YUaGg':function(_0x5a019c,_0x39e101){return _0x5a019c+_0x39e101;},'BtiCM':function(_0x488a52,_0x50274e){return _0x488a52===_0x50274e;},'RMlOY':function(_0x268063,_0x12c4c1){return _0x268063-_0x12c4c1;},'egmBW':function(_0x46bd3f,_0xc5bbe){return _0x46bd3f>_0xc5bbe;},'Fqofg':function(_0x1050ad,_0x2ba572){return _0x1050ad>_0x2ba572;}},_0x46b3d2=_0x3c8a2f['verifiedItems']||0x0,_0x45ed18=_0x3c8a2f['verificationInProgressItems']||0x0,_0x68cc98=_0x3c8a2f[_0x1e2f43(0x156)]||0x0,_0x9090b7=_0x3c8a2f[_0x1e2f43(0x19b)]||0x0,_0x36e2f3=_0x3c8a2f['pendingItems']||0x0,_0x39a780=_0xe21867[_0x1e2f43(0x1bf)](_0x46b3d2,_0x45ed18)+_0x68cc98+_0x9090b7+_0x36e2f3;if(_0xe21867[_0x1e2f43(0x1fb)](_0x39a780,0x0))return'-';const _0x25fb9b=0xa,_0x2ac612=Math[_0x1e2f43(0x141)](_0x46b3d2/_0x39a780*_0x25fb9b),_0x426734='█'[_0x1e2f43(0x1ba)](_0x2ac612)+'░'[_0x1e2f43(0x1ba)](_0xe21867['RMlOY'](_0x25fb9b,_0x2ac612)),_0x4a6fdd=[];if(_0xe21867[_0x1e2f43(0x1aa)](_0x68cc98,0x0))_0x4a6fdd['push'](_0x68cc98+_0x1e2f43(0x170));if(_0xe21867[_0x1e2f43(0x1e0)](_0x9090b7,0x0))_0x4a6fdd[_0x1e2f43(0x128)](_0x9090b7+'\x20incomplete');if(_0xe21867[_0x1e2f43(0x1aa)](_0x45ed18,0x0))_0x4a6fdd[_0x1e2f43(0x128)](_0x45ed18+_0x1e2f43(0x158));const _0x31a483=_0x4a6fdd['length']>0x0?'\x20('+_0x4a6fdd[_0x1e2f43(0x1da)](',\x20')+')':'';return _0x426734+'\x20'+_0x46b3d2+'/'+_0x39a780+_0x1e2f43(0x162)+_0x31a483;}function getCurrentSessionItems(_0x1268c3,_0xf07eea){const _0x3058b0=_0x239627;if(!_0x1268c3[_0x3058b0(0x133)])return _0xf07eea['filter'](_0x133f7f=>!_0x133f7f[_0x3058b0(0x155)])['sort']((_0x3adcb5,_0x4546db)=>_0x3adcb5[_0x3058b0(0x145)]-_0x4546db[_0x3058b0(0x145)]);return _0xf07eea['filter'](_0xdbcc5d=>_0xdbcc5d['sessionId']===_0x1268c3['currentSessionId']||!_0xdbcc5d['sessionId'])[_0x3058b0(0x1a1)]((_0xea4563,_0x4b8ac7)=>_0xea4563[_0x3058b0(0x145)]-_0x4b8ac7['position']);}function displayFeature(_0x2bbe0f,_0x335d1d){const _0x3287df=_0x239627,_0x571761={'jcjAc':function(_0xb385d2,_0x213aad){return _0xb385d2(_0x213aad);},'PvsJH':function(_0x12e9c6,_0x4a6206){return _0x12e9c6<_0x4a6206;},'eFrGY':function(_0x202347,_0x16515d){return _0x202347===_0x16515d;},'wkseC':_0x3287df(0x1b1),'UCYcq':_0x3287df(0x13a),'fGTHD':_0x3287df(0x19f),'exzxz':function(_0x699484,_0x26237b){return _0x699484>_0x26237b;},'LWQLx':'\x20[has\x20reviewer\x20feedback]','lkVYj':function(_0x4f5cc1,_0x1b7970){return _0x4f5cc1+_0x1b7970;},'MfukX':'blocked','VzkkC':function(_0x3f0ffe,_0xeb64d){return _0x3f0ffe===_0xeb64d;}};console[_0x3287df(0x1e9)]('\x0a'+_0x2bbe0f[_0x3287df(0x1d5)]+'\x20('+_0x2bbe0f['dashboardUrl']+')');_0x2bbe0f['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x571761['jcjAc'](getProgressDisplay,_0x2bbe0f['stats']));_0x2bbe0f[_0x3287df(0x12e)]&&console['log'](_0x3287df(0x175)+_0x2bbe0f['description']);_0x2bbe0f[_0x3287df(0x1fa)]&&console[_0x3287df(0x1e9)](_0x3287df(0x1c7)+_0x2bbe0f['gitRepoUrl']);_0x2bbe0f['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x2bbe0f[_0x3287df(0x126)]);console['log'](_0x3287df(0x1f2)+new Date(_0x2bbe0f[_0x3287df(0x154)])[_0x3287df(0x18a)]());_0x2bbe0f['completedAt']&&console[_0x3287df(0x1e9)](_0x3287df(0x1cf)+new Date(_0x2bbe0f['completedAt'])[_0x3287df(0x18a)]());if(_0x335d1d&&_0x335d1d[_0x3287df(0x1e8)]>0x0){console['log'](_0x3287df(0x17a));for(let _0x3a1770=0x0;_0x571761[_0x3287df(0x13d)](_0x3a1770,_0x335d1d['length']);_0x3a1770++){const _0x53bc09=_0x335d1d[_0x3a1770];let _0x15d292;if(_0x571761[_0x3287df(0x180)](_0x53bc09['status'],_0x571761[_0x3287df(0x18d)])&&_0x53bc09['terminalReason']===_0x571761[_0x3287df(0x1ea)])_0x15d292='✅';else{if(_0x53bc09[_0x3287df(0x16e)]===_0x3287df(0x16a))_0x15d292='🟢';else{if(_0x571761['eFrGY'](_0x53bc09[_0x3287df(0x16e)],_0x571761['fGTHD']))_0x15d292='🟠';else{if(_0x53bc09[_0x3287df(0x16e)]==='blocked')_0x15d292='🛑';else{if(_0x53bc09['status']==='closed')_0x15d292='⛔';else _0x571761[_0x3287df(0x180)](_0x53bc09['status'],'verification_in_progress')?_0x15d292='⏳':_0x15d292='⬜';}}}}const _0x5493a3=_0x53bc09[_0x3287df(0x186)]>0x1?'\x20(v'+_0x53bc09[_0x3287df(0x186)]+')':'',_0x42d3c5=_0x571761['exzxz'](_0x53bc09['version'],0x1)&&_0x53bc09['parentItemId']&&_0x53bc09['status']!==_0x571761[_0x3287df(0x18d)]&&_0x53bc09[_0x3287df(0x16e)]!==_0x3287df(0x16a)?_0x571761[_0x3287df(0x14f)]:'';console[_0x3287df(0x1e9)](_0x3287df(0x12a)+_0x571761[_0x3287df(0x1ed)](_0x3a1770,0x1)+'.\x20'+_0x15d292+'\x20'+_0x53bc09['description']+_0x5493a3+_0x42d3c5);_0x53bc09[_0x3287df(0x16e)]===_0x571761['MfukX']&&_0x53bc09['blockedReason']&&console['log'](_0x3287df(0x1d2)+_0x53bc09[_0x3287df(0x1d3)]);_0x571761['VzkkC'](_0x53bc09[_0x3287df(0x16e)],_0x571761['fGTHD'])&&_0x53bc09['incompleteReason']&&console[_0x3287df(0x1e9)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x53bc09['incompleteReason']);if(_0x53bc09[_0x3287df(0x16e)]===_0x571761['wkseC']&&_0x571761[_0x3287df(0x180)](_0x53bc09['terminalReason'],_0x571761['UCYcq']))console['log'](_0x3287df(0x19a));else _0x53bc09['status']==='closed'&&_0x53bc09['canceledReason']&&console[_0x3287df(0x1e9)](_0x3287df(0x190)+_0x53bc09[_0x3287df(0x1b9)]);}}}export async function featureCreate(_0x5318d9,_0x56228b){const _0x2218c3=_0x239627,_0x28ec92={'qJtYp':function(_0x31c872){return _0x31c872();},'SVSuj':function(_0x2bff5c,_0x3de428){return _0x2bff5c(_0x3de428);},'PaEZn':function(_0x31f384){return _0x31f384();}},{envNames:_0x2f4887}=await _0x28ec92[_0x2218c3(0x17f)](getEnvNames);_0x2f4887[_0x2218c3(0x1e8)]===0x0&&console[_0x2218c3(0x1ec)]('\x0a'+_0x28ec92['SVSuj'](formatProfileRequiredMessage,_0x59a59d=>bold(_0x59a59d)));const _0x4997a5=_0x56228b[_0x2218c3(0x149)]?_0x56228b['scenarios']['map'](_0x29fd7c=>_0x29fd7c['trim']()):[],_0x3e5244=_0x28ec92['qJtYp'](getGitRepoUrl),_0x364403=_0x28ec92[_0x2218c3(0x1f3)](getGitBranch);console[_0x2218c3(0x1e9)]('\x0aCreating\x20feature\x20review...');const _0x4dfc11=await _0x28ec92[_0x2218c3(0x142)](createFeature,{'name':_0x5318d9,'description':_0x56228b['description'],'checklist':_0x4997a5,'gitRepoUrl':_0x3e5244,'gitBranch':_0x364403});await setActiveFeatureId(_0x4dfc11['id']),await tryStartCurrentSession(_0x4dfc11['id']);const _0x2c0945=process[_0x2218c3(0x130)][_0x2218c3(0x19d)];_0x2c0945&&registerSession(_0x2c0945,_0x4dfc11['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x4dfc11['id']),displayFeature(_0x4dfc11,_0x4dfc11[_0x2218c3(0x1a3)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x3764dd){const _0x4329ec=_0x239627,_0x280801={'LoEKa':function(_0x411e07,_0x3cfaa1){return _0x411e07===_0x3cfaa1;},'PFvUb':function(_0x5b4643,_0x109eab){return _0x5b4643>_0x109eab;},'IuxNw':_0x4329ec(0x1df),'FQEeE':function(_0x3ad39d,_0x19b2e4){return _0x3ad39d+_0x19b2e4;}},_0x4abb8d={'limit':_0x3764dd[_0x4329ec(0x124)]??0xa,'offset':_0x3764dd['offset']??0x0,'includeDeleted':_0x3764dd['includeDeleted']};_0x3764dd[_0x4329ec(0x1f8)]&&(_0x4abb8d['gitRepoUrl']=getGitRepoUrl(),_0x4abb8d['gitBranch']=getGitBranch());const _0x27b88f=await listFeatures(_0x4abb8d);if(_0x280801[_0x4329ec(0x1a7)](_0x27b88f[_0x4329ec(0x1de)]['length'],0x0)){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x5b6ad1=_0x280801['PFvUb'](_0x27b88f[_0x4329ec(0x14c)],_0x27b88f['items'][_0x4329ec(0x1e8)])?'Showing\x20'+_0x27b88f[_0x4329ec(0x1de)][_0x4329ec(0x1e8)]+_0x4329ec(0x151)+_0x27b88f[_0x4329ec(0x14c)]:_0x27b88f['totalCount']+_0x4329ec(0x143);console['log']('\x0a'+_0x5b6ad1+':\x0a');for(const _0x1f775f of _0x27b88f[_0x4329ec(0x1de)]){const _0x4cfb39=_0x280801['IuxNw'][_0x4329ec(0x161)]('|');let _0x5d942f=0x0;while(!![]){switch(_0x4cfb39[_0x5d942f++]){case'0':console['log']('');continue;case'1':_0x1f775f['gitBranch']&&console['log'](_0x4329ec(0x14b)+_0x1f775f[_0x4329ec(0x126)]);continue;case'2':console['log'](_0x4329ec(0x17c)+_0x1f775f['id']);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x1f775f[_0x4329ec(0x154)])[_0x4329ec(0x171)]());continue;case'4':_0x1f775f[_0x4329ec(0x189)]&&console['log'](_0x4329ec(0x1f1)+getProgressDisplay(_0x1f775f['stats']));continue;case'5':console['log'](''+_0x1f775f['name']);continue;}break;}}const _0xfa362e=_0x4abb8d['limit']??0xa,_0x4f43df=_0x280801['FQEeE'](_0x4abb8d[_0x4329ec(0x192)]??0x0,_0x27b88f[_0x4329ec(0x1de)][_0x4329ec(0x1e8)]);if(_0x4f43df<_0x27b88f[_0x4329ec(0x14c)]){const _0x4badcd=_0xfa362e!==0xa?'\x20--limit\x20'+_0xfa362e:'',_0x24b5cf=_0x3764dd['currentBranch']?_0x4329ec(0x1e1):'',_0x58e2f2=_0x3764dd[_0x4329ec(0x1b7)]?_0x4329ec(0x122):'';console['log'](_0x4329ec(0x1b5)+_0x4f43df+_0x4badcd+_0x24b5cf+_0x58e2f2);}}export async function featureShow(_0x7f3e68){const _0x3ee833=_0x239627,_0x2769ee={'sLZrI':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x3fce16=_0x7f3e68||await getActiveFeatureId();if(!_0x3fce16)throw new Error(_0x2769ee[_0x3ee833(0x1d4)]);const _0x1c3aee=await getFeature(_0x3fce16);displayFeature(_0x1c3aee,_0x1c3aee['checklistItems']);}export async function featureResume(_0x51fe25){const _0x4f9588=_0x239627,_0xc53696={'QtvJe':function(_0x21fc14,_0xf58b4b){return _0x21fc14(_0xf58b4b);},'WNoqQ':function(_0xbe4de1){return _0xbe4de1();},'kVytg':function(_0x3ea08c,_0x5127be){return _0x3ea08c!==_0x5127be;},'QAldo':function(_0x18aa8d,_0x485235,_0x439296){return _0x18aa8d(_0x485235,_0x439296);},'zDERo':function(_0x24d57e,_0x191ece){return _0x24d57e(_0x191ece);},'ARyAH':function(_0x38c0f5,_0x240128,_0x2d9db7){return _0x38c0f5(_0x240128,_0x2d9db7);},'xshPo':'any','qNJdV':function(_0x5403ea,_0x47808d){return _0x5403ea===_0x47808d;},'uNtTB':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','GpYAC':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','ygPoJ':'list','VnJrx':'selected','Giggt':function(_0x68cc72,_0x3ac15a){return _0x68cc72(_0x3ac15a);},'lwdpw':function(_0x61e930,_0x3d93ac){return _0x61e930!==_0x3d93ac;},'osldB':function(_0x50cb0b,_0x4b6c8a,_0x2a6481){return _0x50cb0b(_0x4b6c8a,_0x2a6481);}};if(_0x51fe25){const _0x531063=await _0xc53696[_0x4f9588(0x13f)](getFeature,_0x51fe25);await setActiveFeatureId(_0x531063['id']);const _0x5b126d=_0xc53696[_0x4f9588(0x177)](getGitBranch);_0x5b126d&&_0xc53696[_0x4f9588(0x121)](_0x5b126d,_0x531063['gitBranch'])&&(await _0xc53696['QAldo'](updateFeature,_0x531063['id'],{'gitBranch':_0x5b126d}),console['log'](_0x4f9588(0x1b6)+_0x5b126d));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x531063['name']+'\x20('+_0x531063['id']+')'),await _0xc53696['zDERo'](tryStartCurrentSession,_0x531063['id']);const _0x2bf64c=process[_0x4f9588(0x130)][_0x4f9588(0x19d)];_0x2bf64c&&registerSession(_0x2bf64c,_0x531063['id']);_0xc53696[_0x4f9588(0x17b)](displayFeature,_0x531063,_0x531063['checklistItems']),await printFeedbackNudge(_0x531063['id']);return;}const _0x4c12b5=getGitRepoUrl(),_0x21e9e4=_0xc53696[_0x4f9588(0x177)](getGitBranch);if(!_0x4c12b5&&!_0x21e9e4)throw new Error(_0x4f9588(0x163));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x4c12b5||_0xc53696[_0x4f9588(0x1f6)])+'\x20/\x20'+(_0x21e9e4||'any')+'...');const _0x4573e7=await listFeatures({'gitRepoUrl':_0x4c12b5,'gitBranch':_0x21e9e4}),_0x202780=_0x4573e7['items']['filter'](_0x32aff0=>!_0x32aff0['completedAt']);if(_0xc53696[_0x4f9588(0x135)](_0x202780[_0x4f9588(0x1e8)],0x0)){console['log'](_0xc53696[_0x4f9588(0x168)]),console[_0x4f9588(0x1e9)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x38d74b;if(_0x202780[_0x4f9588(0x1e8)]===0x1)_0x38d74b=_0x202780[0x0];else{const _0x406bbf=process['stdin'][_0x4f9588(0x147)]&&process[_0x4f9588(0x1e4)][_0x4f9588(0x147)];if(!_0x406bbf){console['log'](_0xc53696[_0x4f9588(0x125)]);for(const _0x1eb510 of _0x202780){console['log']('\x20\x20'+_0x1eb510['name']),console[_0x4f9588(0x1e9)]('\x20\x20\x20\x20\x20ID:\x20'+_0x1eb510['id']),_0x1eb510['stats']&&console[_0x4f9588(0x1e9)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1eb510['stats'])),_0x1eb510['gitBranch']&&console[_0x4f9588(0x1e9)](_0x4f9588(0x196)+_0x1eb510[_0x4f9588(0x126)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0xbce5b4}=await _0x3edf0f['prompt']([{'type':_0xc53696[_0x4f9588(0x17d)],'name':_0xc53696[_0x4f9588(0x1a5)],'message':_0x4f9588(0x1f0),'choices':_0x202780[_0x4f9588(0x157)](_0x22d70f=>({'name':_0x22d70f[_0x4f9588(0x1d5)]+'\x20('+_0x22d70f['id']+')','value':_0x22d70f['id']}))}]);_0x38d74b=_0x202780[_0x4f9588(0x1e3)](_0x3db035=>_0x3db035['id']===_0xbce5b4);}await _0xc53696['Giggt'](setActiveFeatureId,_0x38d74b['id']);_0x21e9e4&&_0xc53696['lwdpw'](_0x21e9e4,_0x38d74b['gitBranch'])&&(await _0xc53696['ARyAH'](updateFeature,_0x38d74b['id'],{'gitBranch':_0x21e9e4}),console['log'](_0x4f9588(0x1b6)+_0x21e9e4));console['log'](_0x4f9588(0x1b0)+_0x38d74b['name']+'\x20('+_0x38d74b['id']+')'),await _0xc53696['zDERo'](tryStartCurrentSession,_0x38d74b['id']);const _0x358200=await getFeature(_0x38d74b['id']),_0x1732a7=process[_0x4f9588(0x130)]['CLAUDE_SESSION_ID'];_0x1732a7&&_0xc53696[_0x4f9588(0x1dc)](registerSession,_0x1732a7,_0x358200['id']),displayFeature(_0x358200,_0x358200[_0x4f9588(0x1a3)]),await printFeedbackNudge(_0x358200['id']);}async function printFeedbackNudge(_0x4bd374){const _0x2c1d86=_0x239627,_0x258f30={'dysgP':function(_0x2069db,_0xbac467){return _0x2069db(_0xbac467);},'EgZpN':function(_0x29fd1e,_0x337d26){return _0x29fd1e>_0x337d26;},'yLeBf':_0x2c1d86(0x1ab)};try{const {items:_0x2f2d9f}=await _0x258f30[_0x2c1d86(0x146)](getActionItems,_0x4bd374);let _0x441806=0x0,_0x48e864=0x0;for(const _0x30d031 of _0x2f2d9f){const _0x35fec2=await getItemFeedback(_0x4bd374,_0x30d031['id']);_0x258f30['EgZpN'](_0x35fec2[_0x2c1d86(0x182)]['length'],0x0)&&(_0x441806+=_0x35fec2['unaddressedComments'][_0x2c1d86(0x1e8)],_0x48e864++);}_0x441806>0x0&&(console[_0x2c1d86(0x1e9)](_0x2c1d86(0x173)+_0x441806+_0x2c1d86(0x1f4)+_0x48e864+_0x2c1d86(0x12b)),console[_0x2c1d86(0x1e9)](_0x258f30['yLeBf']));}catch{}}async function tryStartCurrentSession(_0x3929fe){const _0x46e614=_0x239627,_0x20843e={'BmGzi':function(_0x5b9249,_0x617900,_0x96fdab){return _0x5b9249(_0x617900,_0x96fdab);}};try{const {sessions:_0x49eb73}=await listFeatureSessions(_0x3929fe),_0x1007a3=_0x49eb73[_0x46e614(0x1e3)](_0x4674b4=>_0x4674b4['status']===_0x46e614(0x152));_0x1007a3&&(await _0x20843e[_0x46e614(0x138)](startSession,_0x3929fe,_0x1007a3['id']),console[_0x46e614(0x1e9)](_0x46e614(0x14a)+_0x1007a3[_0x46e614(0x1cc)]));}catch{}}export async function featureReport(_0x26f8d5,_0x105495){const _0x5dcd1e=_0x239627,_0x4df402={'CvTEY':_0x5dcd1e(0x16c),'IvpUo':'\x0aGenerating\x20report...','uTkXz':function(_0x4f1d3f,_0xb945e6,_0x3ab8fb,_0x4fd4d9){return _0x4f1d3f(_0xb945e6,_0x3ab8fb,_0x4fd4d9);},'bprAX':function(_0x4e16a0){return _0x4e16a0();},'bOmOV':_0x5dcd1e(0x178),'YrLbl':function(_0x562c80,_0x46e3b0,_0x1f6278){return _0x562c80(_0x46e3b0,_0x1f6278);},'sqybr':function(_0x1ec7ba,_0x5038cb){return _0x1ec7ba(_0x5038cb);}},_0x177ebb=_0x26f8d5||await getActiveFeatureId();if(!_0x177ebb)throw new Error(_0x4df402[_0x5dcd1e(0x1dd)]);console['log'](_0x4df402[_0x5dcd1e(0x13b)]);const _0xa0cb9c=await getFeatureReportMarkdown(_0x177ebb,{'style':_0x105495['style']}),_0x3c2026=_0x105495['output']||_0x4df402['uTkXz'](join,_0x4df402[_0x5dcd1e(0x1f9)](getRangerDir),_0x4df402[_0x5dcd1e(0x1c1)],_0x177ebb+_0x5dcd1e(0x1b4)),_0x15864c=_0x4df402[_0x5dcd1e(0x1e6)](join,_0x3c2026,'..');!_0x4df402['sqybr'](existsSync,_0x15864c)&&await mkdir(_0x15864c,{'recursive':!![]}),await writeFile(_0x3c2026,_0xa0cb9c,_0x5dcd1e(0x1d6)),console['log'](_0x5dcd1e(0x16f)+_0x3c2026);}export async function featureReportPrDescription(_0xab2264,_0x39d210){const _0x49a7b6=_0x239627,_0x4da57e={'fIwIG':function(_0x29b38d){return _0x29b38d();},'HiGsq':_0x49a7b6(0x16c),'xVhst':function(_0x2bf2cf,_0x297850){return _0x2bf2cf(_0x297850);},'kPdoM':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','fKyUf':'\x0aAvailable\x20scenarios:','havOL':function(_0x2a078e,_0x37ab7e){return _0x2a078e<_0x37ab7e;},'NfvNa':function(_0x525088,_0x16cb19){return _0x525088===_0x16cb19;},'YSFFQ':function(_0x1bdd7e,_0x3a8397,_0x5bf3bf){return _0x1bdd7e(_0x3a8397,_0x5bf3bf);}},_0x2e4bd0=_0xab2264||await _0x4da57e['fIwIG'](getActiveFeatureId);if(!_0x2e4bd0)throw new Error(_0x4da57e[_0x49a7b6(0x1f7)]);const _0x170ca3=await _0x4da57e[_0x49a7b6(0x15b)](getFeature,_0x2e4bd0),_0x5b9f1b=_0x170ca3[_0x49a7b6(0x1a3)]||[],_0x3fe2e4=getCurrentSessionItems(_0x170ca3,_0x5b9f1b);_0x3fe2e4[_0x49a7b6(0x1e8)]===0x0&&(console[_0x49a7b6(0x1c3)](_0x4da57e[_0x49a7b6(0x172)]),process[_0x49a7b6(0x194)](0x1));const _0x2d4d11=_0x39d210['excludeScenarios']??[],_0x57f6d6=_0x2d4d11[_0x49a7b6(0x17e)](_0x297df7=>!Number[_0x49a7b6(0x19c)](_0x297df7)||_0x297df7<0x1||_0x297df7>_0x3fe2e4[_0x49a7b6(0x1e8)]);if(_0x57f6d6[_0x49a7b6(0x1e8)]>0x0){console[_0x49a7b6(0x1c3)](_0x49a7b6(0x12f)+_0x57f6d6['join'](',\x20')),console[_0x49a7b6(0x1e9)](_0x4da57e['fKyUf']);for(let _0x35b7df=0x0;_0x4da57e[_0x49a7b6(0x185)](_0x35b7df,_0x3fe2e4['length']);_0x35b7df++){console[_0x49a7b6(0x1e9)]('\x20\x20'+(_0x35b7df+0x1)+'.\x20'+_0x3fe2e4[_0x35b7df][_0x49a7b6(0x12e)]);}process['exit'](0x1);}const _0x515380=new Set(_0x2d4d11[_0x49a7b6(0x157)](_0x54409b=>_0x54409b-0x1)),_0x1614b8=_0x3fe2e4['filter']((_0x3f9e08,_0x2f5369)=>!_0x515380['has'](_0x2f5369));_0x4da57e['NfvNa'](_0x1614b8[_0x49a7b6(0x1e8)],0x0)&&(console[_0x49a7b6(0x1c3)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x49a7b6(0x194)](0x1));const _0x55f50e=await _0x4da57e['YSFFQ'](getFeatureReportMarkdown,_0x2e4bd0,{'itemIds':_0x1614b8[_0x49a7b6(0x157)](_0x50e52c=>_0x50e52c['id'])});process[_0x49a7b6(0x1e4)][_0x49a7b6(0x165)](_0x55f50e[_0x49a7b6(0x181)]()+'\x0a');}export async function featureConcludeSession(_0x554e00){const _0x1d5dd5=_0x239627,_0x2bfee1={'NFeHB':function(_0x2be70a){return _0x2be70a();},'mtnXh':_0x1d5dd5(0x148),'dEwSZ':_0x1d5dd5(0x1ad),'whjyC':_0x1d5dd5(0x164)},_0x521f9c=_0x554e00||await _0x2bfee1[_0x1d5dd5(0x198)](getActiveFeatureId);if(!_0x521f9c)throw new Error(_0x2bfee1[_0x1d5dd5(0x1eb)]);const _0x5e7587=await getFeature(_0x521f9c);if(!_0x5e7587[_0x1d5dd5(0x133)])throw new Error(_0x1d5dd5(0x176));const {sessions:_0x2ffe47}=await listFeatureSessions(_0x521f9c),_0xb5bd33=_0x2ffe47[_0x1d5dd5(0x1e3)](_0x53b019=>_0x53b019['id']===_0x5e7587['currentSessionId']);if(!_0xb5bd33)throw new Error(_0x1d5dd5(0x1b8));if(_0xb5bd33[_0x1d5dd5(0x16e)]===_0x2bfee1['dEwSZ']){console['log'](_0x1d5dd5(0x1bb));return;}if(_0xb5bd33[_0x1d5dd5(0x16e)]!==_0x2bfee1['whjyC'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0xb5bd33['status']);console[_0x1d5dd5(0x1e9)]('\x0aConcluding\x20session...'),await concludeSession(_0x521f9c,_0x5e7587[_0x1d5dd5(0x133)]),console[_0x1d5dd5(0x1e9)](_0x1d5dd5(0x15a)+_0xb5bd33['iteration']+_0x1d5dd5(0x140)),console['log'](_0x1d5dd5(0x1c8));}export async function featureSessions(_0x4aabfe){const _0x5d890b=_0x239627,_0x32216c={'QEeeW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JTFCa':function(_0x8a0ff1,_0x14ed1f){return _0x8a0ff1(_0x14ed1f);},'fcYSU':function(_0xcefe1c,_0x2e0dea){return _0xcefe1c===_0x2e0dea;},'NqChM':function(_0x7a288f,_0x49ed79){return _0x7a288f===_0x49ed79;},'UbDjm':function(_0x384de9,_0x54b0d8){return _0x384de9===_0x54b0d8;}},_0x30f24f=_0x4aabfe||await getActiveFeatureId();if(!_0x30f24f)throw new Error(_0x32216c['QEeeW']);const _0x1a256c=await _0x32216c[_0x5d890b(0x1ef)](getFeature,_0x30f24f);console[_0x5d890b(0x1e9)](_0x5d890b(0x1c0)+_0x1a256c[_0x5d890b(0x1d5)]+'\x0a');const {sessions:_0x30ffb6}=await listFeatureSessions(_0x30f24f);if(_0x32216c[_0x5d890b(0x15c)](_0x30ffb6['length'],0x0)){console[_0x5d890b(0x1e9)]('No\x20sessions\x20found.');return;}for(const _0xd234d6 of _0x30ffb6){const _0x3a99d5=_0x32216c[_0x5d890b(0x16b)](_0xd234d6[_0x5d890b(0x16e)],'completed')?'✅':_0x32216c['UbDjm'](_0xd234d6['status'],_0x5d890b(0x164))?'🔄':'▶️';console[_0x5d890b(0x1e9)](_0x3a99d5+'\x20Session\x20'+_0xd234d6[_0x5d890b(0x1cc)]+'\x20('+_0xd234d6['id']+')'),console[_0x5d890b(0x1e9)](_0x5d890b(0x197)+_0xd234d6['status']),console['log'](_0x5d890b(0x1f2)+new Date(_0xd234d6[_0x5d890b(0x154)])[_0x5d890b(0x18a)]()),_0xd234d6['completedAt']&&console[_0x5d890b(0x1e9)](_0x5d890b(0x1cf)+new Date(_0xd234d6['completedAt'])['toLocaleString']()),console[_0x5d890b(0x1e9)]('');}}export async function featureAddScenario(_0x5635c0,_0x30fca1){const _0x5c0ac8=_0x239627,_0x2c216a={'NslBY':function(_0xc5fcf6){return _0xc5fcf6();},'gQfbs':function(_0x1c4ffc,_0x37944e,_0x4a56b8){return _0x1c4ffc(_0x37944e,_0x4a56b8);}},_0x1d9833=_0x30fca1||await _0x2c216a[_0x5c0ac8(0x1bd)](getActiveFeatureId);if(!_0x1d9833)throw new Error(_0x5c0ac8(0x148));const _0x2f3d95=await getFeature(_0x1d9833);if(_0x2f3d95[_0x5c0ac8(0x1af)]&&!_0x2f3d95[_0x5c0ac8(0x1af)][_0x5c0ac8(0x1e7)])throw new Error(_0x5c0ac8(0x1a2)+_0x2f3d95[_0x5c0ac8(0x160)]);await _0x2c216a['gQfbs'](createChecklistItem,_0x1d9833,_0x5635c0);const _0x29f14e=await getFeature(_0x1d9833);console[_0x5c0ac8(0x1e9)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x29f14e,_0x29f14e[_0x5c0ac8(0x1a3)]);}export async function featureEditScenario(_0x3972c8,_0x9d8ec3){const _0x5e2529=_0x239627,_0xd8ed={'EhmEO':function(_0x4f7475){return _0x4f7475();},'obArp':_0x5e2529(0x1bc),'mdGBu':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XwJmJ':function(_0x5df65d,_0xfe919f){return _0x5df65d===_0xfe919f;},'dCsfY':_0x5e2529(0x1be),'gvANe':function(_0x4985bf,_0x3c28b5){return _0x4985bf===_0x3c28b5;},'BsvqT':'\x0aAvailable\x20scenarios:','yHxbh':function(_0x422bd6,_0x56ddeb){return _0x422bd6<_0x56ddeb;},'LeRKm':function(_0x49926b,_0x1843d3){return _0x49926b-_0x1843d3;},'kyyFB':function(_0x2e8a69,_0x4b68ea){return _0x2e8a69>=_0x4b68ea;}},_0x43202b=_0x9d8ec3['id']||await _0xd8ed['EhmEO'](getActiveFeatureId);!_0x43202b&&(console['error'](_0xd8ed[_0x5e2529(0x1a4)]),console['error'](_0xd8ed[_0x5e2529(0x18b)]),process[_0x5e2529(0x194)](0x1));const _0xe32145=await getFeature(_0x43202b);_0xe32145[_0x5e2529(0x1af)]&&!_0xe32145['latestReview']['submittedAt']&&(console[_0x5e2529(0x1c3)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x5e2529(0x1c3)](_0x5e2529(0x1ce)),console['error']('\x20\x20'+_0xe32145['dashboardUrl']),process[_0x5e2529(0x194)](0x1));const _0x48e76b=_0xe32145[_0x5e2529(0x1a3)]||[];_0xd8ed['XwJmJ'](_0x48e76b[_0x5e2529(0x1e8)],0x0)&&(console[_0x5e2529(0x1c3)](_0xd8ed[_0x5e2529(0x1ca)]),process['exit'](0x1));if(_0xd8ed['gvANe'](_0x9d8ec3['scenario'],undefined)){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x5e2529(0x1e9)](_0xd8ed[_0x5e2529(0x1c9)]);for(let _0x46eb58=0x0;_0xd8ed['yHxbh'](_0x46eb58,_0x48e76b[_0x5e2529(0x1e8)]);_0x46eb58++){console['log']('\x20\x20'+(_0x46eb58+0x1)+'.\x20'+_0x48e76b[_0x46eb58]['description']);}process['exit'](0x1);}const _0x5382a5=_0xd8ed[_0x5e2529(0x139)](_0x9d8ec3['scenario'],0x1);if(_0xd8ed['yHxbh'](_0x5382a5,0x0)||_0xd8ed['kyyFB'](_0x5382a5,_0x48e76b['length'])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x9d8ec3['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x48e76b[_0x5e2529(0x1e8)]+_0x5e2529(0x1ee)),console['log'](_0xd8ed[_0x5e2529(0x1c9)]);for(let _0x4fea66=0x0;_0xd8ed[_0x5e2529(0x169)](_0x4fea66,_0x48e76b[_0x5e2529(0x1e8)]);_0x4fea66++){console['log']('\x20\x20'+(_0x4fea66+0x1)+'.\x20'+_0x48e76b[_0x4fea66]['description']);}process[_0x5e2529(0x194)](0x1);}const _0x59569f=_0x48e76b[_0x5382a5];await updateChecklistItem(_0x43202b,_0x59569f['id'],{'description':_0x3972c8});const _0x4e56ff=await getFeature(_0x43202b);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x4e56ff,_0x4e56ff[_0x5e2529(0x1a3)]);}async function downloadFeedbackImage(_0x5e88fa,_0x289c06){const _0x24f90a=_0x239627,_0x1143af={'TqSGq':function(_0x252d74,_0x1c461f,_0x1dd9a8){return _0x252d74(_0x1c461f,_0x1dd9a8);},'CuQss':function(_0x2511c5,_0x5e92d8){return _0x2511c5(_0x5e92d8);}};try{const _0x314e3f=join(getRangerDir(),_0x24f90a(0x13c));await _0x1143af['TqSGq'](mkdir,_0x314e3f,{'recursive':!![]});const _0x375e60=_0x1143af['TqSGq'](join,_0x314e3f,'comment_'+_0x289c06+'.png'),_0x34a32e=await _0x1143af['CuQss'](fetch,_0x5e88fa);if(!_0x34a32e['ok'])return null;const _0x340b0a=Buffer['from'](await _0x34a32e[_0x24f90a(0x1a9)]());return await writeFile(_0x375e60,_0x340b0a),_0x375e60;}catch{return null;}}export async function featureGetReview(_0x9e74a9){const _0x4fe55f=_0x239627,_0x3c66f7={'ASQES':function(_0x8faf7b){return _0x8faf7b();},'mhOGY':_0x4fe55f(0x148),'Gqlyv':function(_0xb5581,_0x4d9578){return _0xb5581(_0x4d9578);},'desjK':function(_0x368034,_0xa00706){return _0x368034<_0xa00706;},'pXhUB':function(_0xdfefa0,_0x5e5ebd){return _0xdfefa0>_0x5e5ebd;},'tqPUh':function(_0x4831e3,_0x51460d){return _0x4831e3+_0x51460d;},'DNasQ':_0x4fe55f(0x134),'QaYjh':'\x20>\x20','XpVny':function(_0x1befa8,_0x2a533e){return _0x1befa8===_0x2a533e;},'iUdaq':'point','Larxx':function(_0x2d6125,_0x2ec7e2){return _0x2d6125>=_0x2ec7e2;},'SLRoh':function(_0x1ca6c3,_0x15d93b){return _0x1ca6c3+_0x15d93b;}},_0x16d6ad=_0x9e74a9||await _0x3c66f7['ASQES'](getActiveFeatureId);if(!_0x16d6ad)throw new Error(_0x3c66f7[_0x4fe55f(0x183)]);const _0x22df5f=await _0x3c66f7[_0x4fe55f(0x12d)](getFeature,_0x16d6ad),{items:_0x1b5bf6}=await getActionItems(_0x16d6ad);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x22df5f['name']+'\x20('+_0x22df5f['id']+')\x0a');if(_0x1b5bf6[_0x4fe55f(0x1e8)]===0x0){console['log'](_0x4fe55f(0x1b3));return;}for(let _0x4b068e=0x0;_0x3c66f7[_0x4fe55f(0x1a0)](_0x4b068e,_0x1b5bf6['length']);_0x4b068e++){const _0x35d309=_0x1b5bf6[_0x4b068e],_0x1aa640=_0x3c66f7[_0x4fe55f(0x12c)](_0x35d309[_0x4fe55f(0x186)],0x1)?_0x4fe55f(0x1d7)+_0x35d309['version']+')':'',_0x45c095=await getItemFeedback(_0x16d6ad,_0x35d309['id']);if(_0x3c66f7[_0x4fe55f(0x12c)](_0x45c095[_0x4fe55f(0x182)]['length'],0x0)){console['log'](_0x4fe55f(0x1ae)+_0x3c66f7['tqPUh'](_0x4b068e,0x1)+_0x4fe55f(0x123)+_0x35d309['description']+'\x22'+_0x1aa640+'\x20—\x20'+_0x45c095[_0x4fe55f(0x182)][_0x4fe55f(0x1e8)]+_0x4fe55f(0x136));for(const _0x142119 of _0x45c095['unaddressedComments']){const _0x33d2f4=new Date(_0x142119[_0x4fe55f(0x154)])[_0x4fe55f(0x171)](_0x4fe55f(0x184),{'month':_0x3c66f7['DNasQ'],'day':_0x4fe55f(0x188)}),_0x525a43=_0x142119['authorName']||_0x142119[_0x4fe55f(0x1a6)]||'Unknown';console['log']('\x20\x20💬\x20'+_0x525a43+'\x20('+_0x33d2f4+'):\x20\x22'+_0x142119['content']+'\x22');if(_0x142119[_0x4fe55f(0x1d8)]){const _0xd3f608=await downloadFeedbackImage(_0x142119[_0x4fe55f(0x1d8)],_0x142119['id']);_0xd3f608&&console['log'](_0x4fe55f(0x1c4)+_0xd3f608);}if(_0x142119[_0x4fe55f(0x1cb)]){const _0x46664a=_0x142119['domRef'][_0x4fe55f(0x166)]['split'](_0x3c66f7['QaYjh'])['pop']()?.[_0x4fe55f(0x161)](':')[0x0]||_0x4fe55f(0x18c),_0x3028fc=_0x142119[_0x4fe55f(0x1cb)][_0x4fe55f(0x1ac)]?'\x20\x22'+_0x142119['domRef']['textContent'][_0x4fe55f(0x1a8)](0x0,0x3c)+'\x22':'';console[_0x4fe55f(0x1e9)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x46664a+'>'+_0x3028fc),console[_0x4fe55f(0x1e9)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x142119[_0x4fe55f(0x1cb)]['selector']);}else{if(_0x142119['spatial']){const _0x48af5f=_0x142119[_0x4fe55f(0x16d)]['coordinates'];_0x3c66f7[_0x4fe55f(0x1d1)](_0x142119['spatial'][_0x4fe55f(0x1e2)],_0x3c66f7['iUdaq'])&&_0x3c66f7[_0x4fe55f(0x14d)](_0x48af5f[_0x4fe55f(0x1e8)],0x2)?console[_0x4fe55f(0x1e9)](_0x4fe55f(0x19e)+_0x48af5f[0x0]['toFixed'](0x2)+',\x20'+_0x48af5f[0x1]['toFixed'](0x2)+')'):console[_0x4fe55f(0x1e9)](_0x4fe55f(0x153)+_0x142119[_0x4fe55f(0x16d)][_0x4fe55f(0x1e2)]+_0x4fe55f(0x1e5)+_0x48af5f[_0x4fe55f(0x157)](_0x452dd4=>_0x452dd4['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x45c095[_0x4fe55f(0x1c2)]){console[_0x4fe55f(0x1e9)]('\x20\x20Expected\x20flow:');for(const _0x24ffa6 of _0x45c095['canonicalFlow']['split']('\x0a')){console[_0x4fe55f(0x1e9)](_0x4fe55f(0x1d0)+_0x24ffa6);}}}else console[_0x4fe55f(0x1e9)](_0x4fe55f(0x1ae)+_0x3c66f7['SLRoh'](_0x4b068e,0x1)+':\x20\x22'+_0x35d309[_0x4fe55f(0x12e)]+'\x22'+_0x1aa640+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x4fe55f(0x1e9)]('');}}export async function featureDelete(_0x438b08){const _0xe459c=_0x239627,_0x40b38b={'olWZc':function(_0x43901c){return _0x43901c();},'VgAfb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FgWOz':function(_0x102edc,_0x1959ba){return _0x102edc(_0x1959ba);},'SyPdM':function(_0x85a5b,_0x578be4){return _0x85a5b+_0x578be4;},'jQIEy':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0xe8e7cd=_0x438b08||await _0x40b38b[_0xe459c(0x150)](getActiveFeatureId);if(!_0xe8e7cd)throw new Error(_0x40b38b['VgAfb']);const _0x4aab85=await _0x40b38b['FgWOz'](getFeature,_0xe8e7cd);await softDeleteFeature(_0xe8e7cd),console[_0xe459c(0x1e9)](_0xe459c(0x1f5)+_0x4aab85['name']+'\x20('+_0xe8e7cd+')'),console[_0xe459c(0x1e9)](_0x40b38b['SyPdM'](_0x40b38b[_0xe459c(0x129)],_0xe8e7cd));}export async function featureRestore(_0xba85bb){const _0x1cf007=_0x239627,_0x3d2694={'DRXjA':function(_0x523742,_0x5c2628){return _0x523742(_0x5c2628);},'FTKdQ':function(_0x450809,_0x4241c1){return _0x450809(_0x4241c1);},'oJUkH':function(_0x45584a,_0x1b43c7,_0xb5c174){return _0x45584a(_0x1b43c7,_0xb5c174);}};await _0x3d2694[_0x1cf007(0x187)](restoreFeature,_0xba85bb);const _0x454548=await _0x3d2694[_0x1cf007(0x1c5)](getFeature,_0xba85bb);console[_0x1cf007(0x1e9)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x454548[_0x1cf007(0x1d5)]+'\x20('+_0xba85bb+')'),_0x3d2694[_0x1cf007(0x179)](displayFeature,_0x454548,_0x454548[_0x1cf007(0x1a3)]);}
@@ -1 +1 @@
1
- function _0x4a95(_0x59b302,_0xd36add){_0x59b302=_0x59b302-0x110;const _0x2ec4e8=_0x2ec4();let _0x4a95ef=_0x2ec4e8[_0x59b302];return _0x4a95ef;}(function(_0x5ce50e,_0x13fe24){const _0x2e4825=_0x4a95,_0x2918a2=_0x5ce50e();while(!![]){try{const _0x498e1d=-parseInt(_0x2e4825(0x11d))/0x1*(-parseInt(_0x2e4825(0x110))/0x2)+parseInt(_0x2e4825(0x111))/0x3+parseInt(_0x2e4825(0x117))/0x4*(-parseInt(_0x2e4825(0x116))/0x5)+parseInt(_0x2e4825(0x119))/0x6*(-parseInt(_0x2e4825(0x113))/0x7)+parseInt(_0x2e4825(0x112))/0x8+-parseInt(_0x2e4825(0x11e))/0x9*(-parseInt(_0x2e4825(0x11c))/0xa)+parseInt(_0x2e4825(0x11b))/0xb*(-parseInt(_0x2e4825(0x114))/0xc);if(_0x498e1d===_0x13fe24)break;else _0x2918a2['push'](_0x2918a2['shift']());}catch(_0x2a2649){_0x2918a2['push'](_0x2918a2['shift']());}}}(_0x2ec4,0xeddfc));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x2ec4(){const _0x2201d1=['312tvsFmj','exit','24GIWaMp','keys','11bARZgA','580100SQMhXM','1QwenpL','153JsQKgd','1845362khmrbP','2044269ZYITsr','8298456xTUccH','948353NLzTFv','15493956eAaPcg','error','52575baAZlh'];_0x2ec4=function(){return _0x2201d1;};return _0x2ec4();}export async function hook(_0xbe92b6,_0x163ae5){const _0x5c080e=_0x4a95,_0x2c5beb={'pTYpS':function(_0x4f8f25,_0x5d973b){return _0x4f8f25(_0x5d973b);}},_0x307cbf=HOOKS[_0xbe92b6];if(!_0x307cbf){const _0x4a5d08=Object[_0x5c080e(0x11a)](HOOKS)['join'](',\x20');console[_0x5c080e(0x115)]('Unknown\x20hook:\x20'+_0xbe92b6),console['error']('Valid\x20hooks:\x20'+_0x4a5d08),process[_0x5c080e(0x118)](0x1);}await _0x2c5beb['pTYpS'](_0x307cbf,_0x163ae5);}
1
+ (function(_0x4449f7,_0x4e6aa5){const _0x246206=_0x5410,_0x309e21=_0x4449f7();while(!![]){try{const _0xbce32e=-parseInt(_0x246206(0xd8))/0x1+-parseInt(_0x246206(0xdd))/0x2*(parseInt(_0x246206(0xd6))/0x3)+parseInt(_0x246206(0xda))/0x4+parseInt(_0x246206(0xdb))/0x5*(parseInt(_0x246206(0xde))/0x6)+parseInt(_0x246206(0xdc))/0x7+-parseInt(_0x246206(0xd9))/0x8*(parseInt(_0x246206(0xd5))/0x9)+-parseInt(_0x246206(0xdf))/0xa;if(_0xbce32e===_0x4e6aa5)break;else _0x309e21['push'](_0x309e21['shift']());}catch(_0x54f118){_0x309e21['push'](_0x309e21['shift']());}}}(_0x2b12,0x332aa));function _0x2b12(){const _0x3abf33=['763469gboCbM','4ZbwEmd','140784nXSrfT','127300BciJVr','error','exit','keys','Unknown\x20hook:\x20','1144926biIHBO','90150rHcEWE','WLiju','282006QUkZPd','8MrSuZg','1391684mWcYBA','50zCMOEU'];_0x2b12=function(){return _0x3abf33;};return _0x2b12();}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x5410(_0xfe6f20,_0x40a90d){_0xfe6f20=_0xfe6f20-0xd5;const _0x2b12d3=_0x2b12();let _0x541090=_0x2b12d3[_0xfe6f20];return _0x541090;}export async function hook(_0x1eb8ea,_0x5024aa){const _0x25df3c=_0x5410,_0x347db5={'WLiju':function(_0x1dc0c3,_0x3d0894){return _0x1dc0c3(_0x3d0894);}},_0x59b207=HOOKS[_0x1eb8ea];if(!_0x59b207){const _0x5d6c22=Object[_0x25df3c(0xe2)](HOOKS)['join'](',\x20');console[_0x25df3c(0xe0)](_0x25df3c(0xe3)+_0x1eb8ea),console['error']('Valid\x20hooks:\x20'+_0x5d6c22),process[_0x25df3c(0xe1)](0x1);}await _0x347db5[_0x25df3c(0xd7)](_0x59b207,_0x5024aa);}
@@ -1 +1 @@
1
- const _0x1c1823=_0x35b7;(function(_0x7e85d,_0x376069){const _0x12aa7e=_0x35b7,_0x1cb880=_0x7e85d();while(!![]){try{const _0x547d68=parseInt(_0x12aa7e(0x130))/0x1+parseInt(_0x12aa7e(0x136))/0x2*(parseInt(_0x12aa7e(0x129))/0x3)+parseInt(_0x12aa7e(0x12e))/0x4*(parseInt(_0x12aa7e(0x132))/0x5)+-parseInt(_0x12aa7e(0x12c))/0x6*(parseInt(_0x12aa7e(0x12f))/0x7)+parseInt(_0x12aa7e(0x127))/0x8*(-parseInt(_0x12aa7e(0x135))/0x9)+-parseInt(_0x12aa7e(0x133))/0xa+-parseInt(_0x12aa7e(0x128))/0xb;if(_0x547d68===_0x376069)break;else _0x1cb880['push'](_0x1cb880['shift']());}catch(_0x2f8580){_0x1cb880['push'](_0x1cb880['shift']());}}}(_0x25dd,0xc39b9));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x25dd(){const _0x291e03=['log','4388247cQYZrx','2oNQadj','8nmpmhN','21802649WvgSoa','2702409AnPlhr','\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.','rClIL','49770DyrbtE','RtyTD','48oieJvo','14BqCzre','1476129plIunp','xSZxH','553205owkfSE','4171830GcfGao'];_0x25dd=function(){return _0x291e03;};return _0x25dd();}function _0x35b7(_0x2ae1a7,_0x5d8b32){_0x2ae1a7=_0x2ae1a7-0x127;const _0x25ddd9=_0x25dd();let _0x35b7a0=_0x25ddd9[_0x2ae1a7];return _0x35b7a0;}const AUTO_PROMPT_TEXT=_0x1c1823(0x12a);export async function autoPrompt(){const _0x4fab8a=_0x1c1823,_0x3b64b5={'RtyTD':function(_0x11f056){return _0x11f056();},'rClIL':function(_0x4b1673,_0x4b2c78){return _0x4b1673(_0x4b2c78);},'xSZxH':function(_0x1299ab,_0x3504e8){return _0x1299ab(_0x3504e8);}},_0x1d2519=await _0x3b64b5[_0x4fab8a(0x12d)](readHookInput),_0x5276d4=_0x1d2519?.['session_id'];if(!_0x5276d4)return;if(_0x3b64b5['rClIL'](isSessionEnabled,_0x5276d4)||_0x3b64b5[_0x4fab8a(0x12b)](hasSessionBeenPrompted,_0x5276d4))return;_0x3b64b5[_0x4fab8a(0x131)](markSessionPrompted,_0x5276d4),console[_0x4fab8a(0x134)](AUTO_PROMPT_TEXT);}
1
+ function _0x38f6(_0x339216,_0x308e57){_0x339216=_0x339216-0xff;const _0xca82c5=_0xca82();let _0x38f68e=_0xca82c5[_0x339216];return _0x38f68e;}const _0x180894=_0x38f6;(function(_0x5d908f,_0xc5a5e8){const _0x5654ed=_0x38f6,_0x52a0d=_0x5d908f();while(!![]){try{const _0x35e752=parseInt(_0x5654ed(0x102))/0x1+parseInt(_0x5654ed(0x109))/0x2*(-parseInt(_0x5654ed(0x108))/0x3)+-parseInt(_0x5654ed(0x105))/0x4+-parseInt(_0x5654ed(0x103))/0x5+-parseInt(_0x5654ed(0xff))/0x6*(-parseInt(_0x5654ed(0x106))/0x7)+parseInt(_0x5654ed(0x107))/0x8+parseInt(_0x5654ed(0x101))/0x9;if(_0x35e752===_0xc5a5e8)break;else _0x52a0d['push'](_0x52a0d['shift']());}catch(_0x1cca27){_0x52a0d['push'](_0x52a0d['shift']());}}}(_0xca82,0x509dd));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x180894(0x104);function _0xca82(){const _0x11b4c6=['1824552ILzvEK','112JnfEfW','4033184sHwxid','822NrPsSF','1838sfgRjr','25314GsOQPn','log','487575fIusYl','478265fyevRp','329715xxuFbr','\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.'];_0xca82=function(){return _0x11b4c6;};return _0xca82();}export async function autoPrompt(){const _0x518d2b=_0x180894,_0x15b029={'BCHLq':function(_0xd86bbe,_0x373fa6){return _0xd86bbe(_0x373fa6);}},_0xab6546=await readHookInput(),_0x525c10=_0xab6546?.['session_id'];if(!_0x525c10)return;if(isSessionEnabled(_0x525c10)||_0x15b029['BCHLq'](hasSessionBeenPrompted,_0x525c10))return;markSessionPrompted(_0x525c10),console[_0x518d2b(0x100)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x307082,_0x9c93f0){const _0x2e4efe=_0x1f14,_0x268bc8=_0x307082();while(!![]){try{const _0x559316=parseInt(_0x2e4efe(0x129))/0x1+-parseInt(_0x2e4efe(0x123))/0x2*(parseInt(_0x2e4efe(0x12d))/0x3)+parseInt(_0x2e4efe(0x125))/0x4*(parseInt(_0x2e4efe(0x12a))/0x5)+-parseInt(_0x2e4efe(0x122))/0x6+-parseInt(_0x2e4efe(0x124))/0x7+-parseInt(_0x2e4efe(0x12e))/0x8+parseInt(_0x2e4efe(0x130))/0x9;if(_0x559316===_0x9c93f0)break;else _0x268bc8['push'](_0x268bc8['shift']());}catch(_0x2d9fa7){_0x268bc8['push'](_0x268bc8['shift']());}}}(_0x2e65,0xb9c43));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x2e65(){const _0x40946c=['kTTXM','21PZoOPa','11382448Tvrgyc','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','28964448WKNcom','master','4580190kfKJEU','208180FNoodh','7590436CCajJv','28hTmYoK','Error:\x20No\x20session\x20ID\x20available.','env','error','77376ALaMmM','1046000sLTNTk','yehrg'];_0x2e65=function(){return _0x40946c;};return _0x2e65();}function _0x1f14(_0x26f3af,_0x24f96a){_0x26f3af=_0x26f3af-0x121;const _0x2e6596=_0x2e65();let _0x1f14f0=_0x2e6596[_0x26f3af];return _0x1f14f0;}export async function disable(_0x37d7bb){const _0x1ff2e8=_0x1f14,_0x5acc71={'yehrg':_0x1ff2e8(0x126),'hsywm':function(_0x489d1a,_0x4d0757){return _0x489d1a!==_0x4d0757;},'kTTXM':function(_0x2f0f7c,_0x5cc494){return _0x2f0f7c(_0x5cc494);},'FrNzH':_0x1ff2e8(0x121)},_0x1e4b34=_0x37d7bb||process[_0x1ff2e8(0x127)]['CLAUDE_SESSION_ID']||'';!_0x1e4b34&&(console['error'](_0x5acc71[_0x1ff2e8(0x12b)]),console[_0x1ff2e8(0x128)](_0x1ff2e8(0x12f)),process['exit'](0x1));disableSession(_0x1e4b34);const _0x120baf=getCurrentBranch();_0x120baf&&_0x5acc71['hsywm'](_0x120baf,'main')&&_0x120baf!=='master'&&disableBranch(_0x120baf),_0x5acc71[_0x1ff2e8(0x12c)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x120baf&&_0x120baf!=='main'&&_0x5acc71['hsywm'](_0x120baf,_0x5acc71['FrNzH'])?'\x20and\x20branch\x20\x27'+_0x120baf+'\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(_0x5517ec,_0x12faac){const _0x38443c=_0x4a86,_0x1fca31=_0x5517ec();while(!![]){try{const _0x49f4cb=-parseInt(_0x38443c(0x90))/0x1+parseInt(_0x38443c(0x8a))/0x2+-parseInt(_0x38443c(0x96))/0x3*(-parseInt(_0x38443c(0x95))/0x4)+parseInt(_0x38443c(0x87))/0x5*(-parseInt(_0x38443c(0x92))/0x6)+parseInt(_0x38443c(0x88))/0x7+parseInt(_0x38443c(0x8d))/0x8+parseInt(_0x38443c(0x98))/0x9*(-parseInt(_0x38443c(0x94))/0xa);if(_0x49f4cb===_0x12faac)break;else _0x1fca31['push'](_0x1fca31['shift']());}catch(_0x206801){_0x1fca31['push'](_0x1fca31['shift']());}}}(_0x3add,0x80d37));function _0x3add(){const _0x5f11d6=['11446430iqhsAm','36rYcvis','321816AGnHnu','HHEBP','9TIXdyS','.\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`.','master','env','38990QHSTxM','7015183rSfSmm','uIfSF','444436rxdYOe','error','CLAUDE_SESSION_ID','5590672QdntPe','hccRk','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','514535GNyMkz','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','540OmyQQh','YdSBu'];_0x3add=function(){return _0x5f11d6;};return _0x3add();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x4a86(_0x585bab,_0x1905ef){_0x585bab=_0x585bab-0x87;const _0x3add3c=_0x3add();let _0x4a86e0=_0x3add3c[_0x585bab];return _0x4a86e0;}export async function disable(_0x22a70c){const _0x4979e1=_0x4a86,_0x256d52={'HHEBP':'Error:\x20No\x20session\x20ID\x20available.','hccRk':_0x4979e1(0x8f),'YdSBu':function(_0x399036,_0x1b91d8){return _0x399036(_0x1b91d8);},'uIfSF':function(_0x2a4117,_0x54ed9e){return _0x2a4117!==_0x54ed9e;}},_0x212947=_0x22a70c||process[_0x4979e1(0x9b)][_0x4979e1(0x8c)]||'';!_0x212947&&(console['error'](_0x256d52[_0x4979e1(0x97)]),console[_0x4979e1(0x8b)](_0x256d52[_0x4979e1(0x8e)]),process['exit'](0x1));disableSession(_0x212947);const _0x241dd2=getCurrentBranch();_0x241dd2&&_0x241dd2!=='main'&&_0x241dd2!==_0x4979e1(0x9a)&&disableBranch(_0x241dd2),_0x256d52[_0x4979e1(0x93)](printBlock,_0x4979e1(0x91)+(_0x241dd2&&_0x256d52[_0x4979e1(0x89)](_0x241dd2,'main')&&_0x241dd2!=='master'?'\x20and\x20branch\x20\x27'+_0x241dd2+'\x27':'')+_0x4979e1(0x99));}
@@ -1 +1 @@
1
- (function(_0x130c8f,_0x111b27){const _0x57a8e0=_0x184c,_0x369421=_0x130c8f();while(!![]){try{const _0x1d1492=-parseInt(_0x57a8e0(0x184))/0x1+parseInt(_0x57a8e0(0x186))/0x2*(parseInt(_0x57a8e0(0x18d))/0x3)+-parseInt(_0x57a8e0(0x199))/0x4+-parseInt(_0x57a8e0(0x183))/0x5*(-parseInt(_0x57a8e0(0x195))/0x6)+-parseInt(_0x57a8e0(0x18e))/0x7+parseInt(_0x57a8e0(0x18f))/0x8+-parseInt(_0x57a8e0(0x182))/0x9*(parseInt(_0x57a8e0(0x185))/0xa);if(_0x1d1492===_0x111b27)break;else _0x369421['push'](_0x369421['shift']());}catch(_0x4dc409){_0x369421['push'](_0x369421['shift']());}}}(_0xf3d0,0xbba29));function _0xf3d0(){const _0x106afa=['Error:\x20No\x20session\x20ID\x20available.','161709wvnHcl','4957246EiwFCB','10370880wFOfoL','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','ranger\x20setup','gBrxR','\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`.','#\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`','7236FBUVAC','weOql','jKYhV','master','3628908cDtuHa','93753VTaCrB','1865FkOTlI','226506LQBEoK','50hYAwkG','34NqKjnY','error','CLAUDE_SESSION_ID','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','env','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.'];_0xf3d0=function(){return _0x106afa;};return _0xf3d0();}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x184c(_0x465f77,_0x20ef3c){_0x465f77=_0x465f77-0x182;const _0xf3d06=_0xf3d0();let _0x184c9c=_0xf3d06[_0x465f77];return _0x184c9c;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x2a87bf){const _0x4dbbe9=_0x184c,_0x2d6a56={'jKYhV':'Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','BnMrS':function(_0x1a8289,_0x3c3700){return _0x1a8289(_0x3c3700);},'gznxn':'ranger\x20setup\x20--opencode','fTbzy':_0x4dbbe9(0x191),'CovJd':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','weOql':function(_0x526f1c,_0x25f870){return _0x526f1c(_0x25f870);},'NIuKh':function(_0x4b0c3a){return _0x4b0c3a();},'gBrxR':'main','ruCga':_0x4dbbe9(0x198),'pkJyA':function(_0x313758,_0x4e45fe){return _0x313758(_0x4e45fe);}},_0x2c7d91=_0x2a87bf||process[_0x4dbbe9(0x18a)][_0x4dbbe9(0x188)]||'';!_0x2c7d91&&(console['error'](_0x4dbbe9(0x18c)),console[_0x4dbbe9(0x187)](_0x2d6a56[_0x4dbbe9(0x197)]),process['exit'](0x1));const _0x25db65=_0x2d6a56['BnMrS'](Boolean,_0x2a87bf),_0x16f68c=await getToken();if(!_0x16f68c){const _0x27870f=_0x25db65?_0x2d6a56['gznxn']:_0x2d6a56['fTbzy'],_0x3af089=_0x25db65?_0x4dbbe9(0x189):_0x2d6a56['CovJd'];_0x2d6a56[_0x4dbbe9(0x196)](printBlock,_0x4dbbe9(0x194)+_0x27870f+_0x4dbbe9(0x190)+_0x3af089);return;}try{await update();}catch{}enableSession(_0x2c7d91);const _0xb8acd0=_0x2d6a56['NIuKh'](getCurrentBranch),_0x3316b4=_0xb8acd0&&_0xb8acd0!==_0x2d6a56[_0x4dbbe9(0x192)]&&_0xb8acd0!==_0x2d6a56['ruCga']?'\x0a\x0a**Branch\x20\x27'+_0xb8acd0+_0x4dbbe9(0x18b):'',_0x356593=getRangerSkillContent();_0x2d6a56['pkJyA'](printBlock,'#\x20RANGER\x20ENABLED'+_0x3316b4+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x356593+_0x4dbbe9(0x193));}
1
+ (function(_0x50a406,_0x353727){const _0x5c7e1e=_0xe579,_0x3245e4=_0x50a406();while(!![]){try{const _0x214129=-parseInt(_0x5c7e1e(0x1e9))/0x1*(parseInt(_0x5c7e1e(0x1f9))/0x2)+parseInt(_0x5c7e1e(0x1f2))/0x3*(-parseInt(_0x5c7e1e(0x1ed))/0x4)+parseInt(_0x5c7e1e(0x1fa))/0x5+parseInt(_0x5c7e1e(0x1ec))/0x6*(-parseInt(_0x5c7e1e(0x1f6))/0x7)+parseInt(_0x5c7e1e(0x1e5))/0x8*(-parseInt(_0x5c7e1e(0x1e6))/0x9)+parseInt(_0x5c7e1e(0x1ee))/0xa*(parseInt(_0x5c7e1e(0x1fb))/0xb)+parseInt(_0x5c7e1e(0x1f8))/0xc*(parseInt(_0x5c7e1e(0x1e7))/0xd);if(_0x214129===_0x353727)break;else _0x3245e4['push'](_0x3245e4['shift']());}catch(_0x3ebf02){_0x3245e4['push'](_0x3245e4['shift']());}}}(_0xea9d,0xaa541));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0xe579(_0x232e81,_0x238534){_0x232e81=_0x232e81-0x1e5;const _0xea9d94=_0xea9d();let _0xe5797f=_0xea9d94[_0x232e81];return _0xe5797f;}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0xea9d(){const _0x24c7f1=['kjgCX','1wxffJW','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','#\x20RANGER\x20ENABLED','15072twlSuc','1644DsjpsA','10TvydFa','\x0a\x0a**Branch\x20\x27','ranger\x20setup\x20--opencode','ranger\x20setup','1641YMQKOs','TnfaR','master','error','1526UimicW','main','24271500TAvdDX','1571754AyfXyq','5938145HlwzPs','2301255BOulLk','Zhagc','304BGYXwz','275562NDkgzW','13uHqwLU'];_0xea9d=function(){return _0x24c7f1;};return _0xea9d();}export async function enable(_0x3d1183){const _0xa2eb3f=_0xe579,_0x17ae88={'FtIUY':'Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','HGxIR':function(_0x25534a){return _0x25534a();},'Zhagc':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','kjgCX':function(_0x3b989f,_0x31cc75){return _0x3b989f!==_0x31cc75;},'pGkcl':_0xa2eb3f(0x1f7),'aLRVB':_0xa2eb3f(0x1f4),'TnfaR':function(_0x46eddb,_0x53366b){return _0x46eddb(_0x53366b);}},_0x5a5c52=_0x3d1183||process['env']['CLAUDE_SESSION_ID']||'';!_0x5a5c52&&(console['error']('Error:\x20No\x20session\x20ID\x20available.'),console[_0xa2eb3f(0x1f5)](_0x17ae88['FtIUY']),process['exit'](0x1));const _0x2c0442=Boolean(_0x3d1183),_0x48cce9=await _0x17ae88['HGxIR'](getToken);if(!_0x48cce9){const _0xf962f6=_0x2c0442?_0xa2eb3f(0x1f0):_0xa2eb3f(0x1f1),_0x2b2c9b=_0x2c0442?_0x17ae88[_0xa2eb3f(0x1fc)]:_0xa2eb3f(0x1ea);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`'+_0xf962f6+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x2b2c9b);return;}try{await update();}catch{}enableSession(_0x5a5c52);const _0x58f7d0=getCurrentBranch(),_0x462c5d=_0x58f7d0&&_0x17ae88[_0xa2eb3f(0x1e8)](_0x58f7d0,_0x17ae88['pGkcl'])&&_0x17ae88[_0xa2eb3f(0x1e8)](_0x58f7d0,_0x17ae88['aLRVB'])?_0xa2eb3f(0x1ef)+_0x58f7d0+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x49fdba=getRangerSkillContent();_0x17ae88[_0xa2eb3f(0x1f3)](printBlock,_0xa2eb3f(0x1eb)+_0x462c5d+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x49fdba+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
@@ -1 +1 @@
1
- (function(_0x16f229,_0x56b0e8){const _0x396e11=_0x3b05,_0x199128=_0x16f229();while(!![]){try{const _0x18d375=-parseInt(_0x396e11(0x110))/0x1*(parseInt(_0x396e11(0x10a))/0x2)+parseInt(_0x396e11(0x10d))/0x3+parseInt(_0x396e11(0x113))/0x4+-parseInt(_0x396e11(0x10c))/0x5+-parseInt(_0x396e11(0x10e))/0x6*(parseInt(_0x396e11(0x111))/0x7)+parseInt(_0x396e11(0x10f))/0x8+parseInt(_0x396e11(0x112))/0x9*(parseInt(_0x396e11(0x10b))/0xa);if(_0x18d375===_0x56b0e8)break;else _0x199128['push'](_0x199128['shift']());}catch(_0x4c1230){_0x199128['push'](_0x199128['shift']());}}}(_0xccac,0xb91e2));function _0x3b05(_0x4293f7,_0x20b21d){_0x4293f7=_0x4293f7-0x10a;const _0xccaca5=_0xccac();let _0x3b052a=_0xccaca5[_0x4293f7];return _0x3b052a;}import{printBlock,getEnabledSessionId}from'./output.js';function _0xccac(){const _0x3264b3=['1Cbypjm','414631MxHQel','9nabaRh','2197928KBWaLR','1412102ScWePD','13643930HFzPjy','2385525KDPisC','1708446Pgcgje','108OrzyMq','4193880VctqDK'];_0xccac=function(){return _0x3264b3;};return _0xccac();}export async function exitPlanMode(_0x3b701f){const _0x406ba3={'qlwiz':function(_0x266b5f,_0x47afe6){return _0x266b5f(_0x47afe6);}},_0x27c843=await _0x406ba3['qlwiz'](getEnabledSessionId,_0x3b701f);if(!_0x27c843)return;_0x406ba3['qlwiz'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
1
+ (function(_0x173eea,_0x18a939){const _0x1f1804=_0x3d6f,_0x3616bb=_0x173eea();while(!![]){try{const _0x5ec2e3=parseInt(_0x1f1804(0xfd))/0x1*(parseInt(_0x1f1804(0x100))/0x2)+parseInt(_0x1f1804(0xfe))/0x3*(-parseInt(_0x1f1804(0x105))/0x4)+-parseInt(_0x1f1804(0x101))/0x5*(parseInt(_0x1f1804(0x102))/0x6)+-parseInt(_0x1f1804(0xff))/0x7+-parseInt(_0x1f1804(0x107))/0x8+-parseInt(_0x1f1804(0x104))/0x9+parseInt(_0x1f1804(0x103))/0xa;if(_0x5ec2e3===_0x18a939)break;else _0x3616bb['push'](_0x3616bb['shift']());}catch(_0x2b029c){_0x3616bb['push'](_0x3616bb['shift']());}}}(_0x3ccf,0x64f7c));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3d6f(_0x255b1c,_0x1dd4d0){_0x255b1c=_0x255b1c-0xfd;const _0x3ccfef=_0x3ccf();let _0x3d6fad=_0x3ccfef[_0x255b1c];return _0x3d6fad;}function _0x3ccf(){const _0x1b66bf=['19315020eTJdLS','2971872MSggAo','978928xlTFsO','===\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===','417928dcWzgm','51698GDLzVW','6QqkelJ','5485410AlAkrv','16cZxTGf','165FAPzGz','50178LxGzol'];_0x3ccf=function(){return _0x1b66bf;};return _0x3ccf();}export async function exitPlanMode(_0x1a1dcb){const _0x14cd17=_0x3d6f,_0x3704fb=await getEnabledSessionId(_0x1a1dcb);if(!_0x3704fb)return;printBlock(_0x14cd17(0x106));}
@@ -1 +1 @@
1
- (function(_0x4d27a1,_0x4c5381){var _0x28ecb2=_0x1c81,_0x1608a8=_0x4d27a1();while(!![]){try{var _0x447f3e=-parseInt(_0x28ecb2(0x1ec))/0x1*(parseInt(_0x28ecb2(0x1f1))/0x2)+-parseInt(_0x28ecb2(0x1e9))/0x3*(parseInt(_0x28ecb2(0x1eb))/0x4)+-parseInt(_0x28ecb2(0x1ef))/0x5+parseInt(_0x28ecb2(0x1e8))/0x6*(-parseInt(_0x28ecb2(0x1ed))/0x7)+-parseInt(_0x28ecb2(0x1ee))/0x8+-parseInt(_0x28ecb2(0x1ea))/0x9+parseInt(_0x28ecb2(0x1f0))/0xa;if(_0x447f3e===_0x4c5381)break;else _0x1608a8['push'](_0x1608a8['shift']());}catch(_0x113499){_0x1608a8['push'](_0x1608a8['shift']());}}}(_0x4510,0x33503));export{sessionStart}from'./sessionStart.js';function _0x4510(){var _0x4f67e1=['5869HZUJfq','28DimlzD','34472JbmdpL','791860vVdznJ','8088730kOuVoT','8oKgnDI','520908Cjuyxy','2760UmcCdn','107145ExeLQb','232MFljbR'];_0x4510=function(){return _0x4f67e1;};return _0x4510();}export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x1c81(_0x1cc7d5,_0x80bb37){_0x1cc7d5=_0x1cc7d5-0x1e8;var _0x4510fd=_0x4510();var _0x1c8184=_0x4510fd[_0x1cc7d5];return _0x1c8184;}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(_0x26f7cd,_0x34211b){var _0x284bcb=_0x192a,_0x3f3eeb=_0x26f7cd();while(!![]){try{var _0x5991f0=-parseInt(_0x284bcb(0xdb))/0x1*(-parseInt(_0x284bcb(0xda))/0x2)+parseInt(_0x284bcb(0xd9))/0x3*(parseInt(_0x284bcb(0xe0))/0x4)+parseInt(_0x284bcb(0xdd))/0x5+parseInt(_0x284bcb(0xdf))/0x6+parseInt(_0x284bcb(0xdc))/0x7+parseInt(_0x284bcb(0xd7))/0x8*(-parseInt(_0x284bcb(0xde))/0x9)+-parseInt(_0x284bcb(0xd8))/0xa;if(_0x5991f0===_0x34211b)break;else _0x3f3eeb['push'](_0x3f3eeb['shift']());}catch(_0x24c26f){_0x3f3eeb['push'](_0x3f3eeb['shift']());}}}(_0x284a,0x4903c));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x284a(){var _0x2bdcc0=['40eRzELS','344rFXvwO','9547160MmgQEv','167604npUlGS','323054TShcsf','1PIvqVf','1404844JrvaqI','1957125BOsHYo','24525hVScWX','351810KTpJPy'];_0x284a=function(){return _0x2bdcc0;};return _0x284a();}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x192a(_0x577e91,_0x206c6f){_0x577e91=_0x577e91-0xd7;var _0x284aba=_0x284a();var _0x192aad=_0x284aba[_0x577e91];return _0x192aad;}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 +1 @@
1
- (function(_0x5b36dc,_0x18aa39){const _0xbd1a98=_0x3708,_0x423bc6=_0x5b36dc();while(!![]){try{const _0x1d07b5=parseInt(_0xbd1a98(0x125))/0x1*(-parseInt(_0xbd1a98(0x12c))/0x2)+parseInt(_0xbd1a98(0x128))/0x3+-parseInt(_0xbd1a98(0x123))/0x4+-parseInt(_0xbd1a98(0x126))/0x5*(parseInt(_0xbd1a98(0x129))/0x6)+parseInt(_0xbd1a98(0x127))/0x7+parseInt(_0xbd1a98(0x12a))/0x8*(-parseInt(_0xbd1a98(0x12f))/0x9)+parseInt(_0xbd1a98(0x124))/0xa;if(_0x1d07b5===_0x18aa39)break;else _0x423bc6['push'](_0x423bc6['shift']());}catch(_0x15c1cd){_0x423bc6['push'](_0x423bc6['shift']());}}}(_0x5397,0xae1ba));function _0x5397(){const _0x3a6c59=['1203564uNOkQI','11457820umWqjj','12qNmbbZ','5NTSxkl','6421002ueigRa','3115239ubcLQK','8525346PBhEez','50408ksERWu','log','9226UlhAVI','session_id','Fvvaj','873aKfsKb'];_0x5397=function(){return _0x3a6c59;};return _0x5397();}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x538ccb){const _0x5e7b08=_0x3708;console[_0x5e7b08(0x12b)](_0x538ccb);}export async function readHookInput(){let _0x133e81='';for await(const _0x427717 of process['stdin']){_0x133e81+=_0x427717;}try{return JSON['parse'](_0x133e81);}catch{return null;}}function _0x3708(_0x1a8371,_0x4df8ec){_0x1a8371=_0x1a8371-0x123;const _0x5397b7=_0x5397();let _0x3708f5=_0x5397b7[_0x1a8371];return _0x3708f5;}export async function getEnabledSessionId(_0x38f8bd){const _0x568877=_0x3708,_0x238cc7={'gKfhE':function(_0xfe31b5,_0x5f3957){return _0xfe31b5(_0x5f3957);}};if(_0x38f8bd)return _0x238cc7['gKfhE'](isSessionEnabled,_0x38f8bd)?_0x38f8bd:null;const _0x4baae3=await readHookInput(),_0x505c38=_0x4baae3?.[_0x568877(0x12d)];if(!_0x505c38||!isSessionEnabled(_0x505c38))return null;return _0x505c38;}export async function getEnabledHookContext(_0x55b830){const _0x3b62eb=_0x3708,_0x533098={'Fvvaj':function(_0x392078){return _0x392078();}};if(_0x55b830){if(!isSessionEnabled(_0x55b830))return null;return{'sessionId':_0x55b830,'input':{'session_id':_0x55b830}};}const _0x3713f4=await _0x533098[_0x3b62eb(0x12e)](readHookInput),_0xf9dcf5=_0x3713f4?.['session_id'];if(!_0xf9dcf5||!isSessionEnabled(_0xf9dcf5))return null;return{'sessionId':_0xf9dcf5,'input':_0x3713f4};}
1
+ (function(_0x3faa3c,_0x570c9d){const _0x22a35a=_0x9f89,_0x863f84=_0x3faa3c();while(!![]){try{const _0x6860b4=parseInt(_0x22a35a(0x140))/0x1*(-parseInt(_0x22a35a(0x138))/0x2)+-parseInt(_0x22a35a(0x13a))/0x3*(parseInt(_0x22a35a(0x143))/0x4)+parseInt(_0x22a35a(0x142))/0x5+-parseInt(_0x22a35a(0x144))/0x6*(-parseInt(_0x22a35a(0x13d))/0x7)+parseInt(_0x22a35a(0x141))/0x8*(parseInt(_0x22a35a(0x13f))/0x9)+parseInt(_0x22a35a(0x145))/0xa*(parseInt(_0x22a35a(0x13b))/0xb)+-parseInt(_0x22a35a(0x13c))/0xc*(-parseInt(_0x22a35a(0x13e))/0xd);if(_0x6860b4===_0x570c9d)break;else _0x863f84['push'](_0x863f84['shift']());}catch(_0x53e905){_0x863f84['push'](_0x863f84['shift']());}}}(_0x51a6,0xad88d));function _0x51a6(){const _0x576d73=['8fvggqh','5400645bvwLPi','973372rcWlQY','62232tzzRnY','244370AzNwEJ','parse','2kUXJHV','session_id','12ydXBOr','121kCufWS','145356mMFDtP','434CWDqGU','767clembR','478197zBuOsi','1075631kGfWrQ'];_0x51a6=function(){return _0x576d73;};return _0x51a6();}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x6d3bfc){console['log'](_0x6d3bfc);}function _0x9f89(_0x350b37,_0x11e6a2){_0x350b37=_0x350b37-0x137;const _0x51a693=_0x51a6();let _0x9f89e6=_0x51a693[_0x350b37];return _0x9f89e6;}export async function readHookInput(){const _0x5b814a=_0x9f89;let _0x11c341='';for await(const _0x5a8028 of process['stdin']){_0x11c341+=_0x5a8028;}try{return JSON[_0x5b814a(0x137)](_0x11c341);}catch{return null;}}export async function getEnabledSessionId(_0x321487){if(_0x321487)return isSessionEnabled(_0x321487)?_0x321487:null;const _0xf1f339=await readHookInput(),_0x4f3293=_0xf1f339?.['session_id'];if(!_0x4f3293||!isSessionEnabled(_0x4f3293))return null;return _0x4f3293;}export async function getEnabledHookContext(_0x273973){const _0x3c37fb=_0x9f89,_0xceb65c={'QpECs':function(_0x383d93,_0x28784b){return _0x383d93(_0x28784b);},'CGBEH':function(_0x1b2799){return _0x1b2799();}};if(_0x273973){if(!_0xceb65c['QpECs'](isSessionEnabled,_0x273973))return null;return{'sessionId':_0x273973,'input':{'session_id':_0x273973}};}const _0x356d98=await _0xceb65c['CGBEH'](readHookInput),_0x223cf5=_0x356d98?.[_0x3c37fb(0x139)];if(!_0x223cf5||!isSessionEnabled(_0x223cf5))return null;return{'sessionId':_0x223cf5,'input':_0x356d98};}
@@ -1 +1 @@
1
- (function(_0x1473c0,_0x23c35c){const _0x2ccd36=_0x1e12,_0x478b88=_0x1473c0();while(!![]){try{const _0x4bddad=-parseInt(_0x2ccd36(0x18f))/0x1+parseInt(_0x2ccd36(0x192))/0x2*(parseInt(_0x2ccd36(0x190))/0x3)+parseInt(_0x2ccd36(0x193))/0x4*(-parseInt(_0x2ccd36(0x19c))/0x5)+-parseInt(_0x2ccd36(0x195))/0x6+-parseInt(_0x2ccd36(0x191))/0x7*(parseInt(_0x2ccd36(0x196))/0x8)+parseInt(_0x2ccd36(0x197))/0x9*(-parseInt(_0x2ccd36(0x199))/0xa)+parseInt(_0x2ccd36(0x198))/0xb;if(_0x4bddad===_0x23c35c)break;else _0x478b88['push'](_0x478b88['shift']());}catch(_0x949e32){_0x478b88['push'](_0x478b88['shift']());}}}(_0x37d4,0x5a23b));function _0x1e12(_0x9a9a36,_0x2bc4fb){_0x9a9a36=_0x9a9a36-0x18f;const _0x37d443=_0x37d4();let _0x1e1266=_0x37d443[_0x9a9a36];return _0x1e1266;}import{printBlock,getEnabledHookContext}from'./output.js';function _0x37d4(){const _0x2d69da=['BwWwd','sessionId','84670MJnPHI','permission_mode','490358nJYniN','36shAXUy','338891VyaEKN','56026airomO','116PYzitU','===\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===','2181336xdbTfT','56kQMzzU','288jQXuJt','22655622iPOrne','107080iyzKOi'];_0x37d4=function(){return _0x2d69da;};return _0x37d4();}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x12bdf5){const _0x3c93a0=_0x1e12,_0x157239={'dnbVQ':function(_0x3e9389,_0x18ed4b){return _0x3e9389(_0x18ed4b);},'TsLhH':'plan','BwWwd':function(_0xe915b0,_0x109314){return _0xe915b0(_0x109314);}},_0x2f1d44=await _0x157239['dnbVQ'](getEnabledHookContext,_0x12bdf5);if(!_0x2f1d44)return;if(_0x2f1d44['input'][_0x3c93a0(0x19d)]!==_0x157239['TsLhH'])return;if(!_0x157239['dnbVQ'](shouldShowPlanReminder,_0x2f1d44[_0x3c93a0(0x19b)]))return;_0x157239[_0x3c93a0(0x19a)](printBlock,_0x3c93a0(0x194));}
1
+ function _0x5dcd(_0x103fd6,_0x4373e8){_0x103fd6=_0x103fd6-0x1df;const _0x3e1087=_0x3e10();let _0x5dcd44=_0x3e1087[_0x103fd6];return _0x5dcd44;}(function(_0x175860,_0x1e979){const _0x4a9825=_0x5dcd,_0x4f7ad3=_0x175860();while(!![]){try{const _0x5ab5d0=-parseInt(_0x4a9825(0x1e9))/0x1+-parseInt(_0x4a9825(0x1e6))/0x2+parseInt(_0x4a9825(0x1eb))/0x3+parseInt(_0x4a9825(0x1df))/0x4*(parseInt(_0x4a9825(0x1e7))/0x5)+parseInt(_0x4a9825(0x1e0))/0x6*(parseInt(_0x4a9825(0x1e8))/0x7)+parseInt(_0x4a9825(0x1e2))/0x8*(parseInt(_0x4a9825(0x1e4))/0x9)+-parseInt(_0x4a9825(0x1ea))/0xa*(parseInt(_0x4a9825(0x1e5))/0xb);if(_0x5ab5d0===_0x1e979)break;else _0x4f7ad3['push'](_0x4f7ad3['shift']());}catch(_0x48fb3e){_0x4f7ad3['push'](_0x4f7ad3['shift']());}}}(_0x3e10,0xc9157));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x3e10(){const _0x23dd05=['2156120PySXhk','90865zJpKhw','245413WrDkxl','645495JfmMVH','92500eOwiqW','4347303oDZKxR','324KxdUTx','6aJTVGb','RLZQZ','72dbiiVO','permission_mode','710271fNftcf','1331ADoYdx'];_0x3e10=function(){return _0x23dd05;};return _0x3e10();}export async function planReminder(_0x5b7619){const _0x3b5900=_0x5dcd,_0x35db2e={'RLZQZ':function(_0x2aed04,_0x26e5ea){return _0x2aed04(_0x26e5ea);},'MnPLM':function(_0x2656ad,_0x5c4305){return _0x2656ad(_0x5c4305);}},_0x353b75=await _0x35db2e[_0x3b5900(0x1e1)](getEnabledHookContext,_0x5b7619);if(!_0x353b75)return;if(_0x353b75['input'][_0x3b5900(0x1e3)]!=='plan')return;if(!shouldShowPlanReminder(_0x353b75['sessionId']))return;_0x35db2e['MnPLM'](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(_0x479443,_0x3bb3d0){const _0x1bb9ae=_0x5cdc,_0x32d778=_0x479443();while(!![]){try{const _0x18089d=parseInt(_0x1bb9ae(0x1ea))/0x1+-parseInt(_0x1bb9ae(0x1e6))/0x2+parseInt(_0x1bb9ae(0x1ee))/0x3*(-parseInt(_0x1bb9ae(0x1eb))/0x4)+parseInt(_0x1bb9ae(0x1e9))/0x5+parseInt(_0x1bb9ae(0x1ec))/0x6+-parseInt(_0x1bb9ae(0x1e8))/0x7+parseInt(_0x1bb9ae(0x1e7))/0x8;if(_0x18089d===_0x3bb3d0)break;else _0x32d778['push'](_0x32d778['shift']());}catch(_0x281e79){_0x32d778['push'](_0x32d778['shift']());}}}(_0x5af9,0xdb7bb));function _0x5af9(){const _0x3eacc9=['5074495JLfMpH','739369xSxzbC','3752jxWhnK','7465740yQByzt','AJAoe','3093lyZsFt','3423348ZFnEdb','13069816aoffNw','7381710KZLOzS'];_0x5af9=function(){return _0x3eacc9;};return _0x5af9();}import{printBlock,getEnabledSessionId}from'./output.js';function _0x5cdc(_0x3a42b4,_0x31863d){_0x3a42b4=_0x3a42b4-0x1e6;const _0x5af9ae=_0x5af9();let _0x5cdc83=_0x5af9ae[_0x3a42b4];return _0x5cdc83;}export async function planStart(_0x1b5f9a){const _0x4742fe=_0x5cdc,_0x4516c3={'AJAoe':function(_0x368b1f,_0x473e78){return _0x368b1f(_0x473e78);}},_0x741a4d=await _0x4516c3[_0x4742fe(0x1ed)](getEnabledSessionId,_0x1b5f9a);if(!_0x741a4d)return;_0x4516c3[_0x4742fe(0x1ed)](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
1
+ function _0x2e1c(_0x1942a7,_0x3b7557){_0x1942a7=_0x1942a7-0xeb;const _0x2d29c6=_0x2d29();let _0x2e1c0c=_0x2d29c6[_0x1942a7];return _0x2e1c0c;}(function(_0x69d9c1,_0xbfb4b8){const _0x5ea787=_0x2e1c,_0x2c62e4=_0x69d9c1();while(!![]){try{const _0x335fcd=-parseInt(_0x5ea787(0xf0))/0x1*(-parseInt(_0x5ea787(0xf2))/0x2)+-parseInt(_0x5ea787(0xed))/0x3*(-parseInt(_0x5ea787(0xf1))/0x4)+parseInt(_0x5ea787(0xee))/0x5+-parseInt(_0x5ea787(0xf3))/0x6*(-parseInt(_0x5ea787(0xf4))/0x7)+-parseInt(_0x5ea787(0xef))/0x8+parseInt(_0x5ea787(0xf5))/0x9+-parseInt(_0x5ea787(0xeb))/0xa*(parseInt(_0x5ea787(0xec))/0xb);if(_0x335fcd===_0xbfb4b8)break;else _0x2c62e4['push'](_0x2c62e4['shift']());}catch(_0x34d52c){_0x2c62e4['push'](_0x2c62e4['shift']());}}}(_0x2d29,0xe426b));import{printBlock,getEnabledSessionId}from'./output.js';function _0x2d29(){const _0x12f59c=['482DiZvRj','6AIGYbc','11312777iUSFEQ','16395696NlyVqV','251800ycdYBH','2794yfSKyQ','4615557WyxDHr','9150835DYpOnv','8965256xAYFWW','6823TLFigz','4VOHsQl'];_0x2d29=function(){return _0x12f59c;};return _0x2d29();}export async function planStart(_0x57888b){const _0x13147b={'VSlqg':function(_0x3cad64,_0x1be61e){return _0x3cad64(_0x1be61e);},'yoiLv':function(_0x4efd95,_0x4c0e9b){return _0x4efd95(_0x4c0e9b);}},_0x4cc0b5=await _0x13147b['VSlqg'](getEnabledSessionId,_0x57888b);if(!_0x4cc0b5)return;_0x13147b['yoiLv'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- function _0x6a96(){const _0x5222b3=['285930rwkJTs','30280QGFkMp','255908JYBomM','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).','log','56gYdNHB','68576oAJVTx','stringify','3vIudbz','3520ZWRPsx','55zlbYiK','229429tBoEwl','3358953ZkwRhx','PostToolUse','271676unVjzT','YBrZV','NoMdP'];_0x6a96=function(){return _0x5222b3;};return _0x6a96();}(function(_0x59f00f,_0x39b5c6){const _0x46fcd5=_0x509d,_0x1631b7=_0x59f00f();while(!![]){try{const _0x10bd69=parseInt(_0x46fcd5(0x1da))/0x1+parseInt(_0x46fcd5(0x1e2))/0x2*(parseInt(_0x46fcd5(0x1e8))/0x3)+parseInt(_0x46fcd5(0x1dd))/0x4+-parseInt(_0x46fcd5(0x1d9))/0x5*(-parseInt(_0x46fcd5(0x1e0))/0x6)+-parseInt(_0x46fcd5(0x1e5))/0x7*(parseInt(_0x46fcd5(0x1e6))/0x8)+parseInt(_0x46fcd5(0x1db))/0x9+parseInt(_0x46fcd5(0x1e1))/0xa*(-parseInt(_0x46fcd5(0x1d8))/0xb);if(_0x10bd69===_0x39b5c6)break;else _0x1631b7['push'](_0x1631b7['shift']());}catch(_0x2abc25){_0x1631b7['push'](_0x1631b7['shift']());}}}(_0x6a96,0x45a04));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x509d(_0xce6e57,_0xb7f093){_0xce6e57=_0xce6e57-0x1d8;const _0x6a9620=_0x6a96();let _0x509d5f=_0x6a9620[_0xce6e57];return _0x509d5f;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x49d8d6){const _0x53613e=_0x509d,_0x1e491b={'fBXlP':function(_0x3be240,_0x5d0d99){return _0x3be240(_0x5d0d99);},'YBrZV':function(_0x3eb7bc){return _0x3eb7bc();},'TfAuh':function(_0x8407b9,_0x213ebc){return _0x8407b9(_0x213ebc);},'NoMdP':_0x53613e(0x1dc)},_0x28209c=await getEnabledSessionId(_0x49d8d6);if(!_0x28209c)return;_0x1e491b['fBXlP'](updateBranchTracking,_0x28209c);const _0xfddecc=await _0x1e491b[_0x53613e(0x1de)](getToken);if(!_0xfddecc)return;const _0x2c442e=_0x1e491b['TfAuh'](getSessionEntry,_0x28209c);if(_0x2c442e){const _0x4ec09f={'hookSpecificOutput':{'hookEventName':_0x1e491b[_0x53613e(0x1df)],'additionalContext':_0x53613e(0x1e3)}};console['log'](JSON[_0x53613e(0x1e7)](_0x4ec09f));return;}const _0x51e4f2={'hookSpecificOutput':{'hookEventName':_0x1e491b['NoMdP'],'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[_0x53613e(0x1e4)](JSON[_0x53613e(0x1e7)](_0x51e4f2));}
1
+ (function(_0x2afece,_0x13a82a){const _0x18701c=_0x4509,_0x189bd9=_0x2afece();while(!![]){try{const _0xa158d=parseInt(_0x18701c(0x177))/0x1+parseInt(_0x18701c(0x170))/0x2*(parseInt(_0x18701c(0x172))/0x3)+-parseInt(_0x18701c(0x178))/0x4+parseInt(_0x18701c(0x16c))/0x5+parseInt(_0x18701c(0x171))/0x6+parseInt(_0x18701c(0x173))/0x7*(parseInt(_0x18701c(0x174))/0x8)+-parseInt(_0x18701c(0x176))/0x9;if(_0xa158d===_0x13a82a)break;else _0x189bd9['push'](_0x189bd9['shift']());}catch(_0x2eb586){_0x189bd9['push'](_0x189bd9['shift']());}}}(_0x146f,0xd076f));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x4fdea8){const _0x4111a2=_0x4509,_0x381b83={'TNXNL':function(_0x3c4513,_0x84e168){return _0x3c4513(_0x84e168);},'ypaWk':function(_0x374553){return _0x374553();},'jENXq':function(_0x350789,_0x5c6742){return _0x350789(_0x5c6742);},'TYkBh':_0x4111a2(0x16f)},_0x477819=await _0x381b83['TNXNL'](getEnabledSessionId,_0x4fdea8);if(!_0x477819)return;updateBranchTracking(_0x477819);const _0x426910=await _0x381b83['ypaWk'](getToken);if(!_0x426910)return;const _0x1fcf96=_0x381b83[_0x4111a2(0x16e)](getSessionEntry,_0x477819);if(_0x1fcf96){const _0xbe9631={'hookSpecificOutput':{'hookEventName':_0x381b83['TYkBh'],'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[_0x4111a2(0x16d)](JSON['stringify'](_0xbe9631));return;}const _0x18d9d3={'hookSpecificOutput':{'hookEventName':_0x381b83[_0x4111a2(0x175)],'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[_0x4111a2(0x16d)](JSON[_0x4111a2(0x179)](_0x18d9d3));}function _0x4509(_0x4a76e7,_0x44161f){_0x4a76e7=_0x4a76e7-0x16c;const _0x146f66=_0x146f();let _0x45096f=_0x146f66[_0x4a76e7];return _0x45096f;}function _0x146f(){const _0x440a5e=['7673595sMjaJd','log','jENXq','PostToolUse','2EkRjRW','8960772xqyJRP','17061oVhuGM','14GlkpEm','2290088pSAdfX','TYkBh','25066530NcwiAd','952736DPrVex','3680340EiaAUU','stringify'];_0x146f=function(){return _0x440a5e;};return _0x146f();}
@@ -1 +1 @@
1
- (function(_0x3149c2,_0x51e29b){const _0x164750=_0x4b31,_0x1ce17e=_0x3149c2();while(!![]){try{const _0x1635f0=-parseInt(_0x164750(0xe9))/0x1+-parseInt(_0x164750(0xf0))/0x2*(parseInt(_0x164750(0xec))/0x3)+parseInt(_0x164750(0xf3))/0x4+-parseInt(_0x164750(0xea))/0x5*(-parseInt(_0x164750(0xeb))/0x6)+parseInt(_0x164750(0xed))/0x7*(-parseInt(_0x164750(0xef))/0x8)+-parseInt(_0x164750(0xf2))/0x9+-parseInt(_0x164750(0xe8))/0xa*(-parseInt(_0x164750(0xf1))/0xb);if(_0x1635f0===_0x51e29b)break;else _0x1ce17e['push'](_0x1ce17e['shift']());}catch(_0x10e1c8){_0x1ce17e['push'](_0x1ce17e['shift']());}}}(_0x544b,0xaddef));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x4b31(_0x3108db,_0x55c429){_0x3108db=_0x3108db-0xe8;const _0x544ba7=_0x544b();let _0x4b3142=_0x544ba7[_0x3108db];return _0x4b3142;}function _0x544b(){const _0x27f253=['2004YkuSyG','296569ODnJUN','===\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`.','8XMXZVX','2358Xzasnv','77XMvvEu','11602341dGiCZY','3157780SivcdR','3555390uZjnhA','1145758dFBQex','35rHLpbQ','598974jnJfoC'];_0x544b=function(){return _0x27f253;};return _0x544b();}export async function preCompact(_0x3c4160){const _0x717a89=_0x4b31,_0x5e38ba={'aPOGB':function(_0x418e74,_0x5bb14c){return _0x418e74(_0x5bb14c);}},_0x4534c0=await _0x5e38ba['aPOGB'](getEnabledSessionId,_0x3c4160);if(!_0x4534c0)return;try{const _0x3e996e=await getToken();if(!_0x3e996e)return;printBlock(_0x717a89(0xee));}catch{}}
1
+ function _0x4e47(_0x583f6f,_0x39cfea){_0x583f6f=_0x583f6f-0x1e9;const _0x2c2720=_0x2c27();let _0x4e478c=_0x2c2720[_0x583f6f];return _0x4e478c;}(function(_0x3ca915,_0x462401){const _0x51d42f=_0x4e47,_0xd501da=_0x3ca915();while(!![]){try{const _0xc83db0=-parseInt(_0x51d42f(0x1ed))/0x1*(-parseInt(_0x51d42f(0x1ea))/0x2)+parseInt(_0x51d42f(0x1eb))/0x3*(-parseInt(_0x51d42f(0x1f4))/0x4)+-parseInt(_0x51d42f(0x1f5))/0x5+parseInt(_0x51d42f(0x1f3))/0x6*(parseInt(_0x51d42f(0x1f6))/0x7)+-parseInt(_0x51d42f(0x1f2))/0x8*(-parseInt(_0x51d42f(0x1ef))/0x9)+-parseInt(_0x51d42f(0x1f0))/0xa*(parseInt(_0x51d42f(0x1ee))/0xb)+parseInt(_0x51d42f(0x1e9))/0xc;if(_0xc83db0===_0x462401)break;else _0xd501da['push'](_0xd501da['shift']());}catch(_0x5db4c1){_0xd501da['push'](_0xd501da['shift']());}}}(_0x2c27,0x4a7bd));import{getToken}from'../utils/keychain.js';function _0x2c27(){const _0x158070=['5558DxQuwe','5730516rHZjSB','14072wKqGFN','3183IbNokj','Suqeu','86amnvbD','209Eyvtbd','9KdVPXh','235630jjFzzu','YdZNE','670696kqDRzh','1812kLRyXx','948HjBFCc','2010125cmcLup'];_0x2c27=function(){return _0x158070;};return _0x2c27();}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x48e859){const _0x440d75=_0x4e47,_0x15c75b={'Suqeu':function(_0x446589){return _0x446589();},'YdZNE':function(_0x37d90a,_0x3d09ff){return _0x37d90a(_0x3d09ff);}},_0x1e66b7=await getEnabledSessionId(_0x48e859);if(!_0x1e66b7)return;try{const _0x53121a=await _0x15c75b[_0x440d75(0x1ec)](getToken);if(!_0x53121a)return;_0x15c75b[_0x440d75(0x1f1)](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 +1 @@
1
- function _0x187a(_0x368027,_0x269048){_0x368027=_0x368027-0x6d;const _0x230e49=_0x230e();let _0x187a53=_0x230e49[_0x368027];return _0x187a53;}(function(_0x1ff490,_0x300589){const _0x509491=_0x187a,_0x1789eb=_0x1ff490();while(!![]){try{const _0x5c89bd=-parseInt(_0x509491(0x73))/0x1*(-parseInt(_0x509491(0x79))/0x2)+parseInt(_0x509491(0x74))/0x3*(-parseInt(_0x509491(0x75))/0x4)+parseInt(_0x509491(0x71))/0x5+-parseInt(_0x509491(0x6e))/0x6*(-parseInt(_0x509491(0x77))/0x7)+-parseInt(_0x509491(0x72))/0x8+-parseInt(_0x509491(0x76))/0x9*(-parseInt(_0x509491(0x6f))/0xa)+-parseInt(_0x509491(0x70))/0xb*(-parseInt(_0x509491(0x6d))/0xc);if(_0x5c89bd===_0x300589)break;else _0x1789eb['push'](_0x1789eb['shift']());}catch(_0x414f20){_0x1789eb['push'](_0x1789eb['shift']());}}}(_0x230e,0x7bffd));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x230e(){const _0x6128c5=['578455ISAGqj','2797648JmDhBM','675419KfGNYQ','3wrYKZY','4047772vGIcIZ','2390517OXucBj','7tzXcQt','EDDlE','2eMrIiG','136416vllKrm','2285058YKwjuW','10yhkjuS','418UCyOMZ'];_0x230e=function(){return _0x6128c5;};return _0x230e();}import{readHookInput}from'./output.js';export async function sessionEnd(_0x2327d0){const _0x2047f9=_0x187a,_0x4fe0fa={'EDDlE':function(_0x553862,_0x533f29){return _0x553862(_0x533f29);}};let _0x52a337=_0x2327d0,_0x1799d;if(!_0x2327d0){const _0x226fe0=await readHookInput();_0x52a337=_0x226fe0?.['session_id'],_0x1799d=_0x226fe0?.['reason'];}if(!_0x52a337)return;_0x1799d==='clear'&&_0x4fe0fa[_0x2047f9(0x78)](recordEnabledSessionCleared,_0x52a337);}
1
+ (function(_0x32a6e5,_0x1d5af1){const _0x8039b0=_0x5583,_0x1885fb=_0x32a6e5();while(!![]){try{const _0x32802f=parseInt(_0x8039b0(0xf0))/0x1+parseInt(_0x8039b0(0xeb))/0x2*(parseInt(_0x8039b0(0xef))/0x3)+parseInt(_0x8039b0(0xf4))/0x4*(parseInt(_0x8039b0(0xf5))/0x5)+parseInt(_0x8039b0(0xf6))/0x6*(parseInt(_0x8039b0(0xed))/0x7)+-parseInt(_0x8039b0(0xf3))/0x8*(parseInt(_0x8039b0(0xf7))/0x9)+parseInt(_0x8039b0(0xf1))/0xa*(-parseInt(_0x8039b0(0xee))/0xb)+-parseInt(_0x8039b0(0xec))/0xc;if(_0x32802f===_0x1d5af1)break;else _0x1885fb['push'](_0x1885fb['shift']());}catch(_0x11316c){_0x1885fb['push'](_0x1885fb['shift']());}}}(_0x108f,0xaa35c));function _0x5583(_0x5d400d,_0x4a6d1b){_0x5d400d=_0x5d400d-0xea;const _0x108f21=_0x108f();let _0x5583d6=_0x108f21[_0x5d400d];return _0x5583d6;}import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x3e7aa1){const _0x49801a=_0x5583,_0x27175b={'gjmTH':_0x49801a(0xf2),'FanoK':function(_0x5216f3,_0x434389){return _0x5216f3(_0x434389);}};let _0x518622=_0x3e7aa1,_0x2d73ea;if(!_0x3e7aa1){const _0x9d13fd=await readHookInput();_0x518622=_0x9d13fd?.['session_id'],_0x2d73ea=_0x9d13fd?.['reason'];}if(!_0x518622)return;_0x2d73ea===_0x27175b[_0x49801a(0xea)]&&_0x27175b['FanoK'](recordEnabledSessionCleared,_0x518622);}function _0x108f(){const _0x3b20fc=['15690660nLDlao','10913nJvLWx','92884JhgeCr','51NYqLiK','1364408JDrqxd','1540hotUeg','clear','8yPPFwy','364692uGRaCh','65IfOcqV','414lAlgxt','1478934Prxlbe','gjmTH','95554CwJvGv'];_0x108f=function(){return _0x3b20fc;};return _0x108f();}
@@ -1 +1 @@
1
- const _0x2424a8=_0x4a2c;(function(_0x5f225e,_0x3cc5d7){const _0x3fa30c=_0x4a2c,_0x1f8c7b=_0x5f225e();while(!![]){try{const _0x144908=parseInt(_0x3fa30c(0x1f4))/0x1*(-parseInt(_0x3fa30c(0x1f5))/0x2)+parseInt(_0x3fa30c(0x1fa))/0x3*(parseInt(_0x3fa30c(0x1f9))/0x4)+parseInt(_0x3fa30c(0x202))/0x5*(-parseInt(_0x3fa30c(0x1fe))/0x6)+-parseInt(_0x3fa30c(0x1ef))/0x7*(-parseInt(_0x3fa30c(0x201))/0x8)+-parseInt(_0x3fa30c(0x1f6))/0x9+-parseInt(_0x3fa30c(0x203))/0xa+parseInt(_0x3fa30c(0x204))/0xb*(parseInt(_0x3fa30c(0x1f1))/0xc);if(_0x144908===_0x3cc5d7)break;else _0x1f8c7b['push'](_0x1f8c7b['shift']());}catch(_0x172dea){_0x1f8c7b['push'](_0x1f8c7b['shift']());}}}(_0x2d2d,0x5b5c8));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x2d2d(){const _0x2398bb=['526EhEGna','2969280eaTCql','parse','source','124PwWhVO','44655pYGOBP','qJhvA','env','trackCommandEnd','1506BUoEaX','ZdLgN','swtZT','7640zoxXoH','11090qLdbuQ','4594630NVzjqf','7942nmYSJX','hook:session-start','success','CLAUDE_ENV_FILE','5110nPnDrt','export\x20CLAUDE_SESSION_ID=\x22','11076sioKfZ','=================================================================\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=================================================================','trackCommandStart','398auZXux'];_0x2d2d=function(){return _0x2398bb;};return _0x2d2d();}import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT=_0x2424a8(0x1f2);function _0x4a2c(_0x2132e5,_0x1be683){_0x2132e5=_0x2132e5-0x1ee;const _0x2d2d34=_0x2d2d();let _0x4a2cca=_0x2d2d34[_0x2132e5];return _0x4a2cca;}export async function sessionStart(_0x24e96f){const _0x17b53b=_0x2424a8,_0x311e8b={'qJhvA':function(_0xe498c5,_0x5bcf9d){return _0xe498c5||_0x5bcf9d;},'ZdLgN':function(_0x2f22ac,_0x4e9f81){return _0x2f22ac(_0x4e9f81);},'scjRL':_0x17b53b(0x205),'kCKRx':_0x17b53b(0x206),'JtYto':function(_0x45007b,_0x26028b){return _0x45007b!==_0x26028b;},'swtZT':function(_0x59ff39,_0x4f7af8){return _0x59ff39!==_0x4f7af8;},'OddAt':'SessionStart','fKATA':function(_0x34e57d,_0x243209){return _0x34e57d+_0x243209;}};let _0x1e1d2e=_0x311e8b[_0x17b53b(0x1fb)](_0x24e96f,''),_0xdb9e5c;if(!_0x24e96f){let _0x3c95d5='';for await(const _0x4a8e56 of process['stdin']){_0x3c95d5+=_0x4a8e56;}try{const _0x2c69e7=JSON[_0x17b53b(0x1f7)](_0x3c95d5);_0x1e1d2e=_0x2c69e7['session_id']||'',_0xdb9e5c=_0x2c69e7[_0x17b53b(0x1f8)];}catch{}const _0x43139f=process[_0x17b53b(0x1fc)][_0x17b53b(0x1ee)];if(_0x43139f&&_0x1e1d2e)try{await appendFile(_0x43139f,_0x17b53b(0x1f0)+_0x1e1d2e+'\x22\x0a');}catch{}}if(_0x1e1d2e){shouldAutoEnableAfterClear(_0xdb9e5c)&&_0x311e8b[_0x17b53b(0x1ff)](autoEnableAfterClear,_0x1e1d2e);_0x311e8b[_0x17b53b(0x1ff)](initBranchTracking,_0x1e1d2e);const _0x52b8ec=_0x311e8b[_0x17b53b(0x1ff)](isSessionEnabled,_0x1e1d2e);try{const _0x3d7e98=createTelemetryCollector(_0x311e8b['scjRL']);await _0x3d7e98[_0x17b53b(0x1f3)]({'sessionId':_0x1e1d2e,'hooksEnabled':_0x52b8ec}),await _0x3d7e98[_0x17b53b(0x1fd)](_0x311e8b['kCKRx']);}catch{}if(_0x52b8ec){const _0xd87e27=getCurrentBranch(),_0xe42574=_0xd87e27&&_0x311e8b['JtYto'](_0xd87e27,'main')&&_0x311e8b[_0x17b53b(0x200)](_0xd87e27,'master')?'\x20(Branch:\x20'+_0xd87e27+')':'',_0x37df64={'hookSpecificOutput':{'hookEventName':_0x311e8b['OddAt'],'additionalContext':_0x311e8b['fKATA'](RANGER_AUTO_ENABLED_PROMPT,_0xe42574)}};console['log'](JSON['stringify'](_0x37df64));}}}
1
+ const _0x4ac9a2=_0x5b87;function _0x5b87(_0x459d7d,_0x5a13ea){_0x459d7d=_0x459d7d-0x8b;const _0x26b004=_0x26b0();let _0x5b87d2=_0x26b004[_0x459d7d];return _0x5b87d2;}function _0x26b0(){const _0x1ad798=['21514FthXvm','session_id','1980306fNeDKA','ZCMKJ','838278CkKMex','trackCommandStart','hook:session-start','export\x20CLAUDE_SESSION_ID=\x22','source','40WOTMpK','dJRld','3421195ysiTMb','=================================================================\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=================================================================','stringify','ZKJTz','12XQLVtq','14WISwIm','3454736ePCzXU','730184tPhLGw','SessionStart','588810mRwnfs','parse'];_0x26b0=function(){return _0x1ad798;};return _0x26b0();}(function(_0x378632,_0x36e689){const _0xa80542=_0x5b87,_0x324521=_0x378632();while(!![]){try{const _0x13886a=-parseInt(_0xa80542(0x8c))/0x1*(parseInt(_0xa80542(0x92))/0x2)+parseInt(_0xa80542(0x90))/0x3*(-parseInt(_0xa80542(0x8b))/0x4)+parseInt(_0xa80542(0x9d))/0x5+parseInt(_0xa80542(0x94))/0x6+parseInt(_0xa80542(0x8e))/0x7+parseInt(_0xa80542(0x8d))/0x8+parseInt(_0xa80542(0x96))/0x9*(-parseInt(_0xa80542(0x9b))/0xa);if(_0x13886a===_0x36e689)break;else _0x324521['push'](_0x324521['shift']());}catch(_0xfd84ee){_0x324521['push'](_0x324521['shift']());}}}(_0x26b0,0x6b0c4));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT=_0x4ac9a2(0x9e);export async function sessionStart(_0x5f377a){const _0x52e6e9=_0x4ac9a2,_0x1c37df={'ZCMKJ':_0x52e6e9(0x93),'ZKJTz':function(_0x5a8824,_0x5d2522){return _0x5a8824(_0x5d2522);},'uItcK':function(_0x4ee6c7,_0x108465){return _0x4ee6c7(_0x108465);},'AcMCa':_0x52e6e9(0x98),'dJRld':'success'};let _0x178414=_0x5f377a||'',_0x6484b7;if(!_0x5f377a){let _0xffb532='';for await(const _0xa75a6e of process['stdin']){_0xffb532+=_0xa75a6e;}try{const _0x51abc7=JSON[_0x52e6e9(0x91)](_0xffb532);_0x178414=_0x51abc7[_0x1c37df[_0x52e6e9(0x95)]]||'',_0x6484b7=_0x51abc7[_0x52e6e9(0x9a)];}catch{}const _0x12a3a4=process['env']['CLAUDE_ENV_FILE'];if(_0x12a3a4&&_0x178414)try{await appendFile(_0x12a3a4,_0x52e6e9(0x99)+_0x178414+'\x22\x0a');}catch{}}if(_0x178414){_0x1c37df[_0x52e6e9(0xa0)](shouldAutoEnableAfterClear,_0x6484b7)&&autoEnableAfterClear(_0x178414);initBranchTracking(_0x178414);const _0x3c7997=_0x1c37df['ZKJTz'](isSessionEnabled,_0x178414);try{const _0x58ff46=_0x1c37df['uItcK'](createTelemetryCollector,_0x1c37df['AcMCa']);await _0x58ff46[_0x52e6e9(0x97)]({'sessionId':_0x178414,'hooksEnabled':_0x3c7997}),await _0x58ff46['trackCommandEnd'](_0x1c37df[_0x52e6e9(0x9c)]);}catch{}if(_0x3c7997){const _0xc30e1a=getCurrentBranch(),_0x38f583=_0xc30e1a&&_0xc30e1a!=='main'&&_0xc30e1a!=='master'?'\x20(Branch:\x20'+_0xc30e1a+')':'',_0x338454={'hookSpecificOutput':{'hookEventName':_0x52e6e9(0x8f),'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x38f583}};console['log'](JSON[_0x52e6e9(0x9f)](_0x338454));}}}