@ranger-testing/ranger-cli 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +3 -1
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/profileMessages.js +1 -1
  52. package/build/commands/utils/profileSetupBanner.js +1 -1
  53. package/build/commands/utils/rangerConfig.js +1 -1
  54. package/build/commands/utils/rangerRoot.js +1 -1
  55. package/build/commands/utils/reportGenerator.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  64. package/build/commands/utils/userApi.js +1 -1
  65. package/build/commands/utils/version.js +1 -1
  66. package/build/commands/verifyFeature.js +1 -1
  67. package/build/commands/verifyInBrowser.js +1 -1
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2d7e11,_0xd5f2db){const _0x20cdc4=_0x3503,_0x370df7=_0x2d7e11();while(!![]){try{const _0x24106e=-parseInt(_0x20cdc4(0x87))/0x1+-parseInt(_0x20cdc4(0x8b))/0x2+-parseInt(_0x20cdc4(0x83))/0x3*(-parseInt(_0x20cdc4(0x85))/0x4)+-parseInt(_0x20cdc4(0x88))/0x5+parseInt(_0x20cdc4(0x7d))/0x6*(-parseInt(_0x20cdc4(0x90))/0x7)+parseInt(_0x20cdc4(0x82))/0x8+parseInt(_0x20cdc4(0x84))/0x9;if(_0x24106e===_0xd5f2db)break;else _0x370df7['push'](_0x370df7['shift']());}catch(_0x182a16){_0x370df7['push'](_0x370df7['shift']());}}}(_0x3600,0x2ea3f));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function _0x3503(_0x424c8d,_0x585ec9){_0x424c8d=_0x424c8d-0x7b;const _0x360081=_0x3600();let _0x3503f0=_0x360081[_0x424c8d];return _0x3503f0;}function parseValue(_0x3edf98,_0x46c25c){const _0xa17c48=_0x3503,_0x12edca={'YqPMN':'false'};if(BOOLEAN_KEYS[_0xa17c48(0x89)](_0x3edf98)){if(_0x46c25c===_0xa17c48(0x7e))return!![];if(_0x46c25c===_0x12edca[_0xa17c48(0x81)])return![];throw new Error('Invalid\x20value\x20for\x20'+_0x3edf98+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x46c25c;}export async function configSet(_0x1b9483,_0x561061,_0xe45793){const _0x4f17ed=_0x3503,_0x372c39={'RmOXz':function(_0x1ea0c9,_0x1eb4ab){return _0x1ea0c9(_0x1eb4ab);},'LtQkb':function(_0x109182,_0x374356){return _0x109182(_0x374356);},'FFUZK':function(_0x2ebfa0,_0x33c5f7,_0x4ee0ff){return _0x2ebfa0(_0x33c5f7,_0x4ee0ff);},'mXPPX':function(_0x36487f,_0x20c214,_0x455222){return _0x36487f(_0x20c214,_0x455222);}},_0x40a4=_0x372c39[_0x4f17ed(0x7f)](getEnvDir,_0x1b9483);if(!existsSync(_0x40a4))throw new Error('Profile\x20\x22'+_0x1b9483+_0x4f17ed(0x92)+_0x1b9483);const _0x5c5e8a=await _0x372c39['LtQkb'](loadSettings,_0x1b9483),_0x809ef2=_0x372c39['FFUZK'](parseValue,_0x561061,_0xe45793);setNestedValue(_0x5c5e8a,_0x561061,_0x809ef2),await _0x372c39['mXPPX'](saveSettings,_0x1b9483,_0x5c5e8a),console['log'](_0x4f17ed(0x7b)+_0x561061+'\x20=\x20'+_0x809ef2);}function _0x3600(){const _0x456a43=['193016JMBAbB','936735WEcpyh','includes','Profile\x20\x22','13670miwfyO','gqgET','Key\x20\x22','(not\x20set)','\x22\x20not\x20found','816774dmftrs','HNNwE','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','log','stringify','FATSx','TtVzy','\x22\x20does\x20not\x20exist.','Set\x20','Hmzfg','18xNFvgm','true','RmOXz','Removed\x20','YqPMN','4168Eqcwrk','141DKLlVW','5698494LfJEGH','25072ZEDwCU','No\x20configuration\x20set\x20for\x20\x22'];_0x3600=function(){return _0x456a43;};return _0x3600();}export async function configGet(_0x463368,_0x53a911){const _0x3d7960=_0x3503,_0x21063d={'TtVzy':function(_0x37d149,_0x4f7dcf){return _0x37d149(_0x4f7dcf);},'wmKQG':function(_0x1b5214,_0x352e62){return _0x1b5214(_0x352e62);},'Hmzfg':function(_0x1c8eb2,_0x12373d,_0x5ab9bf){return _0x1c8eb2(_0x12373d,_0x5ab9bf);},'mKwFS':function(_0xa15d1e,_0x4f00b4){return _0xa15d1e===_0x4f00b4;}},_0x15b5c1=_0x21063d[_0x3d7960(0x96)](getEnvDir,_0x463368);if(!_0x21063d['wmKQG'](existsSync,_0x15b5c1))throw new Error(_0x3d7960(0x8a)+_0x463368+_0x3d7960(0x97));const _0x579766=await loadSettings(_0x463368),_0x43dd02=_0x21063d[_0x3d7960(0x7c)](getNestedValue,_0x579766,_0x53a911);if(_0x43dd02===undefined)console['log'](_0x3d7960(0x8e));else _0x21063d['mKwFS'](typeof _0x43dd02,'object')?console[_0x3d7960(0x93)](JSON[_0x3d7960(0x94)](_0x43dd02,null,0x2)):console[_0x3d7960(0x93)](_0x43dd02);}export async function configList(_0x556824){const _0x892860=_0x3503,_0x368ccd={'FATSx':function(_0x19e47f,_0x1d37b6){return _0x19e47f(_0x1d37b6);},'gqgET':function(_0x19d162,_0x2655b7){return _0x19d162(_0x2655b7);}},_0x25ad4d=getSettingsPath(_0x556824);if(!existsSync(_0x25ad4d)){const _0x270f3d=getEnvDir(_0x556824);if(!_0x368ccd[_0x892860(0x95)](existsSync,_0x270f3d))throw new Error(_0x892860(0x8a)+_0x556824+_0x892860(0x97));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x556824+'\x22');return;}const _0x3b5dd7=await _0x368ccd[_0x892860(0x8c)](loadSettings,_0x556824),_0x48957d=formatSettings(_0x3b5dd7);!_0x48957d?console['log'](_0x892860(0x86)+_0x556824+'\x22'):console['log'](_0x48957d);}export async function configUnset(_0xb518ee,_0x1be3c8){const _0x1630e0=_0x3503,_0xdb7806={'kvKmR':function(_0x2183ca,_0x276228){return _0x2183ca(_0x276228);},'HNNwE':function(_0x5f13c0,_0x14fb08,_0x2a704d){return _0x5f13c0(_0x14fb08,_0x2a704d);}},_0x334647=_0xdb7806['kvKmR'](getEnvDir,_0xb518ee);if(!existsSync(_0x334647))throw new Error(_0x1630e0(0x8a)+_0xb518ee+_0x1630e0(0x97));const _0x474415=await loadSettings(_0xb518ee),_0x135948=_0xdb7806['HNNwE'](deleteNestedValue,_0x474415,_0x1be3c8);_0x135948?(await _0xdb7806[_0x1630e0(0x91)](saveSettings,_0xb518ee,_0x474415),console['log'](_0x1630e0(0x80)+_0x1be3c8)):console['log'](_0x1630e0(0x8d)+_0x1be3c8+_0x1630e0(0x8f));}
1
+ function _0x5410(){const _0x53b813=['Profile\x20\x22','\x20=\x20','No\x20configuration\x20set\x20for\x20\x22','26jjSyPG','2036395TxabtX','1616223OxnhNh','allowInsecureLocalhost','63846QOoVrZ','\x22\x20not\x20found','175724rrcebT','headless','Key\x20\x22','45711SvAKJi','6RLoPwc','BDGPL','Set\x20','\x22\x20does\x20not\x20exist.','Bhmvg','log','NYxQx','13947872zKxOnG','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','6749343uykrUn','dNzXN','qEXBI'];_0x5410=function(){return _0x53b813;};return _0x5410();}const _0x2d3554=_0x317f;(function(_0x5c20f5,_0x1b0913){const _0x3a9984=_0x317f,_0x1aef25=_0x5c20f5();while(!![]){try{const _0x325186=parseInt(_0x3a9984(0x1fd))/0x1*(parseInt(_0x3a9984(0x1f4))/0x2)+-parseInt(_0x3a9984(0x1f8))/0x3+-parseInt(_0x3a9984(0x1fa))/0x4+-parseInt(_0x3a9984(0x1f5))/0x5*(parseInt(_0x3a9984(0x1fe))/0x6)+-parseInt(_0x3a9984(0x1f6))/0x7+parseInt(_0x3a9984(0x205))/0x8+-parseInt(_0x3a9984(0x1ee))/0x9;if(_0x325186===_0x1b0913)break;else _0x1aef25['push'](_0x1aef25['shift']());}catch(_0x31ea7e){_0x1aef25['push'](_0x1aef25['shift']());}}}(_0x5410,0xd7ec3));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x2d3554(0x1fb),_0x2d3554(0x1f7)];function parseValue(_0x5da4d7,_0x4741af){if(BOOLEAN_KEYS['includes'](_0x5da4d7)){if(_0x4741af==='true')return!![];if(_0x4741af==='false')return![];throw new Error('Invalid\x20value\x20for\x20'+_0x5da4d7+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x4741af;}export async function configSet(_0x7157a6,_0x11501a,_0x41881c){const _0x1c1269=_0x2d3554,_0x4700c0={'aeduW':function(_0x38dce0,_0xa130ff){return _0x38dce0(_0xa130ff);},'qsavn':function(_0x4a64a5,_0x1b3ae3){return _0x4a64a5(_0x1b3ae3);},'xEUpv':function(_0x3468c0,_0x36c518,_0x32cc51){return _0x3468c0(_0x36c518,_0x32cc51);}},_0x2cce78=getEnvDir(_0x7157a6);if(!_0x4700c0['aeduW'](existsSync,_0x2cce78))throw new Error(_0x1c1269(0x1f1)+_0x7157a6+_0x1c1269(0x1ed)+_0x7157a6);const _0x3dee90=await _0x4700c0['qsavn'](loadSettings,_0x7157a6),_0x4726f9=parseValue(_0x11501a,_0x41881c);setNestedValue(_0x3dee90,_0x11501a,_0x4726f9),await _0x4700c0['xEUpv'](saveSettings,_0x7157a6,_0x3dee90),console[_0x1c1269(0x203)](_0x1c1269(0x200)+_0x11501a+_0x1c1269(0x1f2)+_0x4726f9);}export async function configGet(_0x49265e,_0x5ddd28){const _0x44232c=_0x2d3554,_0x46e53d={'NYxQx':function(_0x5c5f14,_0x3cddc3){return _0x5c5f14(_0x3cddc3);},'Bhmvg':function(_0x1e0e15,_0x122cd7){return _0x1e0e15(_0x122cd7);}},_0x3cb4ea=getEnvDir(_0x49265e);if(!_0x46e53d[_0x44232c(0x204)](existsSync,_0x3cb4ea))throw new Error(_0x44232c(0x1f1)+_0x49265e+'\x22\x20does\x20not\x20exist.');const _0x211ec0=await _0x46e53d[_0x44232c(0x202)](loadSettings,_0x49265e),_0x421f40=getNestedValue(_0x211ec0,_0x5ddd28);if(_0x421f40===undefined)console['log']('(not\x20set)');else typeof _0x421f40==='object'?console['log'](JSON['stringify'](_0x421f40,null,0x2)):console['log'](_0x421f40);}export async function configList(_0x464792){const _0x2e17ed=_0x2d3554,_0x3bed64={'kLOnO':function(_0x3eca3a,_0x4cf9d8){return _0x3eca3a(_0x4cf9d8);},'qEXBI':function(_0x28e302,_0x17ea7b){return _0x28e302(_0x17ea7b);}},_0x5c139b=getSettingsPath(_0x464792);if(!_0x3bed64['kLOnO'](existsSync,_0x5c139b)){const _0x2b4f3a=_0x3bed64['kLOnO'](getEnvDir,_0x464792);if(!_0x3bed64['qEXBI'](existsSync,_0x2b4f3a))throw new Error(_0x2e17ed(0x1f1)+_0x464792+'\x22\x20does\x20not\x20exist.');console[_0x2e17ed(0x203)]('No\x20configuration\x20set\x20for\x20\x22'+_0x464792+'\x22');return;}const _0x543d46=await loadSettings(_0x464792),_0x2544e7=_0x3bed64[_0x2e17ed(0x1f0)](formatSettings,_0x543d46);!_0x2544e7?console[_0x2e17ed(0x203)](_0x2e17ed(0x1f3)+_0x464792+'\x22'):console['log'](_0x2544e7);}function _0x317f(_0x29206e,_0x287a9b){_0x29206e=_0x29206e-0x1ed;const _0x5410e1=_0x5410();let _0x317f78=_0x5410e1[_0x29206e];return _0x317f78;}export async function configUnset(_0x4a63d5,_0x204ca2){const _0x1be13d=_0x2d3554,_0x1b8492={'dNzXN':function(_0x2116b2,_0x245024){return _0x2116b2(_0x245024);},'IAAXd':function(_0x34bbe7,_0x324dc){return _0x34bbe7(_0x324dc);},'BDGPL':function(_0x2f4d9e,_0x55f4e1,_0x1f2285){return _0x2f4d9e(_0x55f4e1,_0x1f2285);}},_0x2b7490=_0x1b8492[_0x1be13d(0x1ef)](getEnvDir,_0x4a63d5);if(!_0x1b8492['IAAXd'](existsSync,_0x2b7490))throw new Error(_0x1be13d(0x1f1)+_0x4a63d5+_0x1be13d(0x201));const _0x2e558d=await loadSettings(_0x4a63d5),_0x2acfff=_0x1b8492[_0x1be13d(0x1ff)](deleteNestedValue,_0x2e558d,_0x204ca2);_0x2acfff?(await saveSettings(_0x4a63d5,_0x2e558d),console['log']('Removed\x20'+_0x204ca2)):console[_0x1be13d(0x203)](_0x1be13d(0x1fc)+_0x204ca2+_0x1be13d(0x1f9));}
@@ -1 +1 @@
1
- function _0x16cf(_0x51a5b9,_0x5b9e90){_0x51a5b9=_0x51a5b9-0x117;const _0x54d003=_0x54d0();let _0x16cf50=_0x54d003[_0x51a5b9];return _0x16cf50;}const _0x230aef=_0x16cf;(function(_0x15c9c5,_0x35d7d7){const _0x3971a4=_0x16cf,_0x3308cd=_0x15c9c5();while(!![]){try{const _0x42f98a=parseInt(_0x3971a4(0x130))/0x1*(-parseInt(_0x3971a4(0x12f))/0x2)+-parseInt(_0x3971a4(0x139))/0x3*(parseInt(_0x3971a4(0x134))/0x4)+-parseInt(_0x3971a4(0x132))/0x5*(-parseInt(_0x3971a4(0x12b))/0x6)+parseInt(_0x3971a4(0x127))/0x7+-parseInt(_0x3971a4(0x137))/0x8*(-parseInt(_0x3971a4(0x124))/0x9)+parseInt(_0x3971a4(0x118))/0xa*(-parseInt(_0x3971a4(0x135))/0xb)+parseInt(_0x3971a4(0x133))/0xc*(parseInt(_0x3971a4(0x126))/0xd);if(_0x42f98a===_0x35d7d7)break;else _0x3308cd['push'](_0x3308cd['shift']());}catch(_0x2a79ce){_0x3308cd['push'](_0x3308cd['shift']());}}}(_0x54d0,0xa12c6));import{readdir,stat}from'fs/promises';function _0x54d0(){const _0x39b729=['sort','54DnuhAe','push','18721378vcYOYK','2745995rBhLmU','jfJFd','lIHKO','\x20\x20\x20\x20\x20\x20URL:\x20','4335342zwNQmH','.txt','includes','\x0a*\x20=\x20active\x20profile','1062452PkfcXr','2XuJJTu','log','5ueZoRk','12kvokyR','1708xuzlLc','3487qoQJjA','ohQTa','602896MDYsYv','RXXWS','4548HaSvTd','isDirectory','Run:\x20ranger\x20profile\x20add\x20<profile-name>','startsWith','idLTS','20100tNGayw','bug-bashes','TWeDv','environmentDetails','local','reports','MfGqj','SXBCJ','baseUrl','sessions','settings.json'];_0x54d0=function(){return _0x39b729;};return _0x54d0();}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x230aef(0x121),_0x230aef(0x119),_0x230aef(0x11d),_0x230aef(0x11c),'ci'];export async function getEnvNames(){const _0x3361d3=_0x230aef,_0x54c7f6={'lIHKO':function(_0x4a5415){return _0x4a5415();},'wvyRz':function(_0x580b4e,_0x214723){return _0x580b4e(_0x214723);},'RXXWS':_0x3361d3(0x11c),'OCIHz':function(_0x3b8b45,_0x22432c){return _0x3b8b45(_0x22432c);},'ytGmg':function(_0x347a63,_0x33f6aa,_0x22033e){return _0x347a63(_0x33f6aa,_0x22033e);},'ohQTa':function(_0x5ea19b,_0x45d1af){return _0x5ea19b(_0x45d1af);},'TWeDv':function(_0x5d2f1d,_0x5cad0a,_0x2263f9){return _0x5d2f1d(_0x5cad0a,_0x2263f9);},'xdmps':function(_0x4efc80,_0x96f609){return _0x4efc80(_0x96f609);},'EbXvz':_0x3361d3(0x122),'RuBoA':'legacy'},_0x291e50=_0x54c7f6[_0x3361d3(0x129)](getRangerDir);if(!_0x54c7f6['wvyRz'](existsSync,_0x291e50))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x43448b=await readActiveProfileName(),_0x54e79d=[],_0x476f79={},_0x530bd7=join(_0x291e50,_0x54c7f6[_0x3361d3(0x138)]);if(_0x54c7f6['OCIHz'](existsSync,_0x530bd7)){const _0x5e81e4=await readdir(_0x530bd7);for(const _0x3d2bee of _0x5e81e4){const _0x7c10a5=join(_0x530bd7,_0x3d2bee),_0x452843=await stat(_0x7c10a5);_0x452843[_0x3361d3(0x13a)]()&&(_0x54e79d[_0x3361d3(0x125)](_0x3d2bee),_0x476f79[_0x3d2bee]='local');}}const _0x4c3317=_0x54c7f6['ytGmg'](join,_0x291e50,'ci');if(_0x54c7f6[_0x3361d3(0x136)](existsSync,_0x4c3317)){const _0x4ed5b6=await readdir(_0x4c3317);for(const _0x47c133 of _0x4ed5b6){const _0x2bfe64=_0x54c7f6[_0x3361d3(0x11a)](join,_0x4c3317,_0x47c133),_0x239464=await stat(_0x2bfe64);_0x239464[_0x3361d3(0x13a)]()&&(_0x54e79d[_0x3361d3(0x125)](_0x47c133),_0x476f79[_0x47c133]='ci');}}const _0x5a1969=await readdir(_0x291e50);for(const _0x26ddbc of _0x5a1969){if(NON_ENV_DIRS[_0x3361d3(0x12d)](_0x26ddbc))continue;if(_0x26ddbc[_0x3361d3(0x13c)]('.'))continue;if(_0x26ddbc['endsWith'](_0x3361d3(0x12c)))continue;const _0x31f987=join(_0x291e50,_0x26ddbc),_0x35314f=await stat(_0x31f987);_0x35314f[_0x3361d3(0x13a)]()&&_0x54c7f6['xdmps'](existsSync,join(_0x31f987,_0x54c7f6['EbXvz']))&&(!_0x54e79d['includes'](_0x26ddbc)&&(_0x54e79d[_0x3361d3(0x125)](_0x26ddbc),_0x476f79[_0x26ddbc]=_0x54c7f6['RuBoA']));}return{'envNames':_0x54e79d,'activeEnv':_0x43448b,'envTypes':_0x476f79};}export async function envList(){const _0x2981ba=_0x230aef,_0x2094bf={'MfGqj':function(_0x5c6475){return _0x5c6475();},'pOMvg':'\x0aNo\x20profiles\x20found.','idLTS':_0x2981ba(0x11c),'dMTpQ':function(_0x193149,_0x107bb5){return _0x193149(_0x107bb5);},'jfJFd':function(_0xb43733,_0x4c88cc){return _0xb43733===_0x4c88cc;},'SXBCJ':'legacy'},{envNames:_0x27aeb3,activeEnv:_0x244c77,envTypes:_0x78c5b3}=await _0x2094bf[_0x2981ba(0x11e)](getEnvNames);if(_0x27aeb3['length']===0x0){console['log'](_0x2094bf['pOMvg']),console['log'](_0x2981ba(0x13b));return;}console['log']('\x0aProfiles:');for(const _0xb8b05a of _0x27aeb3[_0x2981ba(0x123)]()){const _0x37b4f9=_0xb8b05a===_0x244c77,_0x4116d5=_0x78c5b3[_0xb8b05a]||_0x2094bf[_0x2981ba(0x117)],_0x16b89e=await _0x2094bf['dMTpQ'](loadSettings,_0xb8b05a),_0x17fb99=_0x2094bf[_0x2981ba(0x128)](_0x4116d5,_0x2094bf[_0x2981ba(0x11f)])?'':'\x20['+_0x4116d5+']';console['log']('\x20\x20'+(_0x37b4f9?'*\x20':'\x20\x20')+_0xb8b05a+_0x17fb99),_0x16b89e['baseUrl']&&console[_0x2981ba(0x131)](_0x2981ba(0x12a)+_0x16b89e[_0x2981ba(0x120)]),_0x16b89e[_0x2981ba(0x11b)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x16b89e['environmentDetails']);}_0x244c77&&console[_0x2981ba(0x131)](_0x2981ba(0x12e));}
1
+ const _0x15cf67=_0x2b30;(function(_0x53fa54,_0x54ad58){const _0xeb5ad2=_0x2b30,_0x37e67e=_0x53fa54();while(!![]){try{const _0x2b3a52=parseInt(_0xeb5ad2(0x16a))/0x1*(parseInt(_0xeb5ad2(0x16d))/0x2)+parseInt(_0xeb5ad2(0x185))/0x3*(parseInt(_0xeb5ad2(0x184))/0x4)+-parseInt(_0xeb5ad2(0x187))/0x5+-parseInt(_0xeb5ad2(0x179))/0x6*(parseInt(_0xeb5ad2(0x171))/0x7)+-parseInt(_0xeb5ad2(0x176))/0x8*(parseInt(_0xeb5ad2(0x170))/0x9)+-parseInt(_0xeb5ad2(0x17c))/0xa+parseInt(_0xeb5ad2(0x186))/0xb;if(_0x2b3a52===_0x54ad58)break;else _0x37e67e['push'](_0x37e67e['shift']());}catch(_0x368958){_0x37e67e['push'](_0x37e67e['shift']());}}}(_0x25b5,0x1bc6f));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';function _0x2b30(_0x473cfe,_0x12cdb1){_0x473cfe=_0x473cfe-0x169;const _0x25b52f=_0x25b5();let _0x2b30a5=_0x25b52f[_0x473cfe];return _0x2b30a5;}function _0x25b5(){const _0x3ed502=['.txt','goChi','push','length','44gmRNWE','61431Gqucdu','4152236HHbMuz','819755QjpYqG','jyGHe','6kbQaur','bug-bashes','FvTDG','11626paeJDU','settings.json','baseUrl','829827azPLYr','11522RAuTgW','sWSmd','log','iuSHi','legacy','16wVOsrS','uPgaF','\x0a*\x20=\x20active\x20profile','336reuxdP','\x0aProfiles:','JGDqO','832930xLnSrd','nmasR','OOZhH','KmJSN'];_0x25b5=function(){return _0x3ed502;};return _0x25b5();}const NON_ENV_DIRS=['sessions',_0x15cf67(0x16b),'reports','local','ci'];export async function getEnvNames(){const _0x2f7aea=_0x15cf67,_0x161d28={'uPgaF':function(_0x341527){return _0x341527();},'JGDqO':function(_0x263679,_0x473018,_0x10ca68){return _0x263679(_0x473018,_0x10ca68);},'jyGHe':'local','sWSmd':function(_0x24d4b2,_0x2878dd){return _0x24d4b2(_0x2878dd);},'nmasR':function(_0xfdab83,_0x59f36d,_0x6939a7){return _0xfdab83(_0x59f36d,_0x6939a7);},'iuSHi':function(_0x320a54,_0x35c567){return _0x320a54(_0x35c567);},'gheBc':function(_0x2dacab,_0x2c845c){return _0x2dacab(_0x2c845c);},'OOZhH':_0x2f7aea(0x180),'uhseA':function(_0x3dc433,_0x53d184){return _0x3dc433(_0x53d184);},'FvTDG':'legacy'},_0x3af264=_0x161d28[_0x2f7aea(0x177)](getRangerDir);if(!existsSync(_0x3af264))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0xccb19f=await _0x161d28[_0x2f7aea(0x177)](readActiveProfileName),_0x405ce9=[],_0x3812c0={},_0x3c3539=_0x161d28['JGDqO'](join,_0x3af264,_0x161d28[_0x2f7aea(0x169)]);if(_0x161d28[_0x2f7aea(0x172)](existsSync,_0x3c3539)){const _0x30a1c3=await _0x161d28['sWSmd'](readdir,_0x3c3539);for(const _0x54191e of _0x30a1c3){const _0x3ff6dd=join(_0x3c3539,_0x54191e),_0x34c0ff=await _0x161d28[_0x2f7aea(0x172)](stat,_0x3ff6dd);_0x34c0ff['isDirectory']()&&(_0x405ce9['push'](_0x54191e),_0x3812c0[_0x54191e]='local');}}const _0x572f78=_0x161d28[_0x2f7aea(0x17d)](join,_0x3af264,'ci');if(existsSync(_0x572f78)){const _0x3d7215=await _0x161d28['iuSHi'](readdir,_0x572f78);for(const _0x117798 of _0x3d7215){const _0x31bb8f=_0x161d28[_0x2f7aea(0x17b)](join,_0x572f78,_0x117798),_0x70c2a=await _0x161d28[_0x2f7aea(0x174)](stat,_0x31bb8f);_0x70c2a['isDirectory']()&&(_0x405ce9[_0x2f7aea(0x182)](_0x117798),_0x3812c0[_0x117798]='ci');}}const _0x3c9886=await _0x161d28['gheBc'](readdir,_0x3af264);for(const _0x4d22b6 of _0x3c9886){if(NON_ENV_DIRS['includes'](_0x4d22b6))continue;if(_0x4d22b6['startsWith']('.'))continue;if(_0x4d22b6['endsWith'](_0x161d28[_0x2f7aea(0x17e)]))continue;const _0x2da026=join(_0x3af264,_0x4d22b6),_0x296fbe=await stat(_0x2da026);_0x296fbe['isDirectory']()&&_0x161d28['uhseA'](existsSync,_0x161d28['nmasR'](join,_0x2da026,_0x2f7aea(0x16e)))&&(!_0x405ce9['includes'](_0x4d22b6)&&(_0x405ce9['push'](_0x4d22b6),_0x3812c0[_0x4d22b6]=_0x161d28[_0x2f7aea(0x16c)]));}return{'envNames':_0x405ce9,'activeEnv':_0xccb19f,'envTypes':_0x3812c0};}export async function envList(){const _0x2da781=_0x15cf67,_0x3327a6={'KmJSN':function(_0x13c12d){return _0x13c12d();},'goChi':'\x0aNo\x20profiles\x20found.','humEk':'local'},{envNames:_0x20c029,activeEnv:_0x51a03e,envTypes:_0x5de8be}=await _0x3327a6[_0x2da781(0x17f)](getEnvNames);if(_0x20c029[_0x2da781(0x183)]===0x0){console['log'](_0x3327a6[_0x2da781(0x181)]),console['log']('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console[_0x2da781(0x173)](_0x2da781(0x17a));for(const _0x4ced1c of _0x20c029['sort']()){const _0x334793=_0x4ced1c===_0x51a03e,_0x355a28=_0x5de8be[_0x4ced1c]||_0x3327a6['humEk'],_0x5ae2fb=await loadSettings(_0x4ced1c),_0x1f1e0e=_0x355a28===_0x2da781(0x175)?'':'\x20['+_0x355a28+']';console['log']('\x20\x20'+(_0x334793?'*\x20':'\x20\x20')+_0x4ced1c+_0x1f1e0e),_0x5ae2fb[_0x2da781(0x16f)]&&console[_0x2da781(0x173)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x5ae2fb['baseUrl']),_0x5ae2fb['environmentDetails']&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x5ae2fb['environmentDetails']);}_0x51a03e&&console['log'](_0x2da781(0x178));}
@@ -1 +1 @@
1
- const _0x23f300=_0x1ce6;(function(_0x26eacd,_0x3fc27c){const _0x43f1e7=_0x1ce6,_0xe087e7=_0x26eacd();while(!![]){try{const _0x5d69e1=parseInt(_0x43f1e7(0xb4))/0x1*(parseInt(_0x43f1e7(0x11a))/0x2)+-parseInt(_0x43f1e7(0x119))/0x3+parseInt(_0x43f1e7(0x124))/0x4+parseInt(_0x43f1e7(0x100))/0x5+-parseInt(_0x43f1e7(0xfe))/0x6+-parseInt(_0x43f1e7(0xc5))/0x7*(parseInt(_0x43f1e7(0xfb))/0x8)+-parseInt(_0x43f1e7(0xbf))/0x9;if(_0x5d69e1===_0x3fc27c)break;else _0xe087e7['push'](_0xe087e7['shift']());}catch(_0x99585d){_0xe087e7['push'](_0xe087e7['shift']());}}}(_0x56e0,0xc6b67));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x570df0 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0xcccf41=>_0x23f300(0x136)+_0xcccf41+_0x23f300(0xa7);function getGitRepoUrl(){const _0x4df224=_0x23f300,_0x2e4717={'tSBnE':'pipe'};try{const _0x863c7d=execSync(_0x4df224(0x13e),{'encoding':'utf-8','stdio':[_0x2e4717[_0x4df224(0xb7)],_0x4df224(0xc2),_0x2e4717[_0x4df224(0xb7)]]})[_0x4df224(0xde)]();return _0x863c7d[_0x4df224(0x108)](/\.git$/,'')[_0x4df224(0x108)](/^git@github\.com:/,_0x4df224(0x134))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x59b561=_0x23f300,_0x8e0fd5={'IayQI':function(_0x3a26f3,_0x3dd797,_0x49a8eb){return _0x3a26f3(_0x3dd797,_0x49a8eb);},'OELMJ':_0x59b561(0xd9),'mkpVM':'pipe'};try{return _0x8e0fd5[_0x59b561(0xbb)](execSync,_0x59b561(0xac),{'encoding':_0x8e0fd5['OELMJ'],'stdio':[_0x8e0fd5['mkpVM'],'pipe',_0x8e0fd5['mkpVM']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x412817=_0x23f300,_0x4c36da={'JuRqt':function(_0x3d5fdd,_0x312276,_0x178ebc){return _0x3d5fdd(_0x312276,_0x178ebc);}},_0x4e8c04=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4e8c04))return null;try{const _0x4d7fa=await _0x4c36da['JuRqt'](readFile,_0x4e8c04,_0x412817(0xd9));return _0x4d7fa['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x5647c6){const _0x110cdb=_0x23f300,_0x105d83={'alvNX':function(_0x2c8fd1){return _0x2c8fd1();},'msCTV':function(_0x30bc08,_0x46dbca){return _0x30bc08(_0x46dbca);},'jcJBi':function(_0x19540f,_0x42b139,_0xf8fed5,_0x27ae85){return _0x19540f(_0x42b139,_0xf8fed5,_0x27ae85);}},_0x56236c=_0x105d83['alvNX'](getRangerDir),_0x5ae319=join(_0x56236c,ACTIVE_FEATURE_FILE);!_0x105d83[_0x110cdb(0x109)](existsSync,_0x56236c)&&await mkdir(_0x56236c,{'recursive':!![]}),await _0x105d83[_0x110cdb(0xcf)](writeFile,_0x5ae319,_0x5647c6,_0x110cdb(0xd9));}function getProgressDisplay(_0xfd3b81){const _0x3777a4=_0x23f300,_0x541754={'yVtRc':function(_0x270770,_0x33f715){return _0x270770+_0x33f715;},'GsJIN':function(_0x1b028d,_0x4dfd58){return _0x1b028d/_0x4dfd58;},'fOLuB':function(_0x47a426,_0x47d8fe){return _0x47a426+_0x47d8fe;},'WIIQf':function(_0x172608,_0x5970a5){return _0x172608>_0x5970a5;},'ZjRqW':function(_0x2b485a,_0x5a914d){return _0x2b485a>_0x5a914d;}},_0x1a5bf0=_0xfd3b81[_0x3777a4(0xd5)]||0x0,_0x5aa3a9=_0xfd3b81['verificationInProgressItems']||0x0,_0x581145=_0xfd3b81['blockedItems']||0x0,_0x21960d=_0xfd3b81[_0x3777a4(0x152)]||0x0,_0x5350e2=_0xfd3b81[_0x3777a4(0x11d)]||0x0,_0x568df4=_0x541754['yVtRc'](_0x541754['yVtRc'](_0x541754[_0x3777a4(0xb9)](_0x541754['yVtRc'](_0x1a5bf0,_0x5aa3a9),_0x581145),_0x21960d),_0x5350e2);if(_0x568df4===0x0)return'-';const _0x24c8ef=0xa,_0x4855db=Math[_0x3777a4(0x14b)](_0x541754['GsJIN'](_0x1a5bf0,_0x568df4)*_0x24c8ef),_0x562f2f=_0x541754['fOLuB']('█'[_0x3777a4(0xc0)](_0x4855db),'░'[_0x3777a4(0xc0)](_0x24c8ef-_0x4855db)),_0x9b4718=[];if(_0x581145>0x0)_0x9b4718[_0x3777a4(0xee)](_0x581145+'\x20blocked');if(_0x541754['WIIQf'](_0x21960d,0x0))_0x9b4718[_0x3777a4(0xee)](_0x21960d+'\x20incomplete');if(_0x541754['ZjRqW'](_0x5aa3a9,0x0))_0x9b4718['push'](_0x5aa3a9+'\x20in\x20progress');const _0x204b8d=_0x9b4718[_0x3777a4(0x150)]>0x0?'\x20('+_0x9b4718['join'](',\x20')+')':'';return _0x562f2f+'\x20'+_0x1a5bf0+'/'+_0x568df4+_0x3777a4(0xfa)+_0x204b8d;}function _0x1ce6(_0x24ca6f,_0x1c990a){_0x24ca6f=_0x24ca6f-0x94;const _0x56e03d=_0x56e0();let _0x1ce62d=_0x56e03d[_0x24ca6f];return _0x1ce62d;}function _0x56e0(){const _0x44df10=['point','\x20\x20\x20ID:\x20','closed','github.com/','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x1b[1m','style','dashboardUrl','qmSft','\x20(v','\x20scenarios.','NSbYx','QAiur','git\x20remote\x20get-url\x20origin','mnVdG','arrayBuffer','\x20\x20✅\x20No\x20feedback\x20to\x20address','SFncG','authorEmail','.\x20Feature\x20review\x20has\x20','laOLl','toLocaleDateString','uzBUd','name','Bxwin','domRef','round','CLAUDE_SESSION_ID','stats','Current\x20session\x20not\x20found.','stepName','length','latestReview','incompleteItems','tsfVh','isInteger','completedAt','\x20\x20\x20\x20\x20ID:\x20','hDTqf','split','stdout','stringify','find','scenarios','textContent','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','assetUrl','/api/v1/mcp/browser-sessions/','status','feedback-images','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','spatial','\x20--limit\x20','after','WcLaG','eAAEY','notes','completed','\x20\x20\x20Updated\x20branch\x20to:\x20','version','json','yQxIl','\x1b[0m','TxvNP','gitBranch','exit','Scenario\x20','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Not\x20in\x20a\x20git\x20repository.','toLocaleString','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','canonicalFlow','/artifacts/','type','assetType','8929xAdqZv','OQyKG','excludeScenarios','tSBnE','toFixed','yVtRc','knTGR','IayQI','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','coordinates','dDPNT','412065uPAvNB','repeat','verification_in_progress','pipe','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','oBXUe','422835sDpVqk','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20—\x20no\x20comments','IDsBe','has','items','NRFHl','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20Completed:\x20','currentSessionId','jcJBi','tpIEG','iteration','JBdfv','incomplete','\x0a⚠️\x20\x20','verifiedItems','pop','isKeyStep','ready','utf-8','totalCount','selected','any','stdin','trim','RSBPJ','VrVTd','rfhAX','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','terminalReason','filter','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','\x0aAvailable\x20scenarios:','screenshotUrls','comment_','verified','FotKF','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','KxvHB','limit','push','5|4|1|3|0|2','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','scenario','gitRepoUrl','iLYaP','\x0a✅\x20Restored\x20feature\x20review:\x20','unaddressedComments','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20\x20\x20\x20','\x0a✅\x20Scenario\x20added','WGKiA','\x20verified','96aHufDN','UZCkp','cqNzQ','3073560Obedvo','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','1830290ZWgMFz','en-US','canceledReason','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20/\x20','Dxbbu','isTTY','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','replace','msCTV','QjREN','\x20\x20\x20Status:\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x20\x20Expected\x20flow:','browserSessionId','Uenge','content','dsXcK','from','qSoRL','output','log','element','AVJrX','\x20\x20\x20\x20\x20Progress:\x20','751359UUCQAZ','148agEzHo','\x20feature\x20review(s)\x20found','sessionId','pendingItems','in_progress','description','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','incompleteReason','error','position','5281924tDTRDz','fBNOz','\x20\x20\x20Progress:\x20','blockedReason','vLMBX','RrbaG','checklistItems','map','\x20\x20\x20Branch:\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','KtxGf','mTjpe','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'];_0x56e0=function(){return _0x44df10;};return _0x56e0();}function getCurrentSessionItems(_0x25eac9,_0xd8211b){const _0x1a0583=_0x23f300;if(!_0x25eac9[_0x1a0583(0xce)])return _0xd8211b['filter'](_0x4d1684=>!_0x4d1684['sessionId']);return _0xd8211b['filter'](_0x1e3b80=>_0x1e3b80['sessionId']===_0x25eac9[_0x1a0583(0xce)]||!_0x1e3b80[_0x1a0583(0x11c)]);}function displayFeature(_0x317369,_0x1cc3f8){const _0x11de1c=_0x23f300,_0x35032a={'wQKyC':function(_0x1c1ac7,_0x28e7cf){return _0x1c1ac7>_0x28e7cf;},'YRkZt':'\x0a\x20\x20\x20Scenarios:','tpIEG':_0x11de1c(0x133),'dDPNT':function(_0x479139,_0x3fce75){return _0x479139===_0x3fce75;},'DCRBO':'approved','AVJrX':function(_0x161f6e,_0x3be4fa){return _0x161f6e===_0x3be4fa;},'SypPY':'blocked','JSblv':function(_0x4f6ae9,_0x3c7dd4){return _0x4f6ae9>_0x3c7dd4;},'RSBPJ':function(_0x8536f9,_0x4ab7b1){return _0x8536f9!==_0x4ab7b1;},'hrXTz':_0x11de1c(0xd3),'yQxIl':function(_0xf7530b,_0x427953){return _0xf7530b===_0x427953;},'dKvkX':function(_0x52f4bc,_0x4f2456){return _0x52f4bc===_0x4f2456;}};console['log']('\x0a'+_0x317369[_0x11de1c(0x148)]+'\x20('+_0x317369[_0x11de1c(0x138)]+')');_0x317369['stats']&&console['log'](_0x11de1c(0x126)+getProgressDisplay(_0x317369[_0x11de1c(0x14d)]));_0x317369['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x317369['description']);_0x317369[_0x11de1c(0xf2)]&&console[_0x11de1c(0x115)]('\x20\x20\x20Repository:\x20'+_0x317369[_0x11de1c(0xf2)]);_0x317369['gitBranch']&&console[_0x11de1c(0x115)]('\x20\x20\x20Branch:\x20'+_0x317369['gitBranch']);console[_0x11de1c(0x115)]('\x20\x20\x20Created:\x20'+new Date(_0x317369['createdAt'])[_0x11de1c(0xae)]());_0x317369[_0x11de1c(0x155)]&&console[_0x11de1c(0x115)](_0x11de1c(0xcd)+new Date(_0x317369[_0x11de1c(0x155)])['toLocaleString']());if(_0x1cc3f8&&_0x35032a['wQKyC'](_0x1cc3f8['length'],0x0)){console['log'](_0x35032a['YRkZt']);for(let _0x2247ac=0x0;_0x2247ac<_0x1cc3f8['length'];_0x2247ac++){const _0x43764d=_0x1cc3f8[_0x2247ac];let _0x2033b5;if(_0x43764d['status']===_0x35032a[_0x11de1c(0xd0)]&&_0x35032a['dDPNT'](_0x43764d['terminalReason'],_0x35032a['DCRBO']))_0x2033b5='✅';else{if(_0x43764d['status']===_0x11de1c(0xe9))_0x2033b5='🟢';else{if(_0x35032a[_0x11de1c(0xbe)](_0x43764d['status'],_0x11de1c(0xd3)))_0x2033b5='🟠';else{if(_0x35032a['AVJrX'](_0x43764d[_0x11de1c(0x99)],_0x35032a['SypPY']))_0x2033b5='🛑';else{if(_0x43764d['status']===_0x35032a['tpIEG'])_0x2033b5='⛔';else _0x43764d['status']===_0x11de1c(0xc1)?_0x2033b5='⏳':_0x2033b5='⬜';}}}}const _0x38cb81=_0x43764d['version']>0x1?_0x11de1c(0x13a)+_0x43764d[_0x11de1c(0xa4)]+')':'',_0x2fad27=_0x35032a['JSblv'](_0x43764d['version'],0x1)&&_0x43764d['parentItemId']&&_0x43764d['status']!==_0x35032a['tpIEG']&&_0x35032a[_0x11de1c(0xdf)](_0x43764d[_0x11de1c(0x99)],'verified')?'\x20[has\x20reviewer\x20feedback]':'';console[_0x11de1c(0x115)]('\x20\x20\x20'+(_0x2247ac+0x1)+'.\x20'+_0x2033b5+'\x20'+_0x43764d['description']+_0x38cb81+_0x2fad27);_0x35032a[_0x11de1c(0x117)](_0x43764d[_0x11de1c(0x99)],_0x35032a['SypPY'])&&_0x43764d['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x43764d[_0x11de1c(0x127)]);_0x43764d[_0x11de1c(0x99)]===_0x35032a['hrXTz']&&_0x43764d['incompleteReason']&&console[_0x11de1c(0x115)](_0x11de1c(0x10c)+_0x43764d['incompleteReason']);if(_0x35032a['AVJrX'](_0x43764d['status'],_0x11de1c(0x133))&&_0x35032a[_0x11de1c(0xa6)](_0x43764d[_0x11de1c(0xe3)],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x35032a['dKvkX'](_0x43764d['status'],_0x11de1c(0x133))&&_0x43764d['canceledReason']&&console[_0x11de1c(0x115)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x43764d[_0x11de1c(0x102)]);}}}export async function featureCreate(_0x49c6d3,_0x5c3534){const _0x5654df=_0x23f300,_0x234bb7={'WcLaG':function(_0x670e61){return _0x670e61();},'PsqPG':function(_0x2130a8,_0x21535f){return _0x2130a8===_0x21535f;},'QWSMT':function(_0x352931,_0x2b85a9){return _0x352931(_0x2b85a9);},'UZCkp':function(_0x457605,_0xe23d6d,_0x5a2858){return _0x457605(_0xe23d6d,_0x5a2858);},'EebHA':function(_0x472807,_0xbdd47b,_0x58b9db){return _0x472807(_0xbdd47b,_0x58b9db);}},{envNames:_0x400a70}=await _0x234bb7[_0x5654df(0x9f)](getEnvNames);_0x234bb7['PsqPG'](_0x400a70['length'],0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x2c15da=>bold(_0x2c15da)));const _0xadd6b7=_0x5c3534[_0x5654df(0x94)]?_0x5c3534[_0x5654df(0x94)]['map'](_0x594c3d=>_0x594c3d['trim']()):[],_0xe5ae76=getGitRepoUrl(),_0x12c664=getGitBranch();console[_0x5654df(0x115)]('\x0aCreating\x20feature\x20review...');const _0x46ac57=await _0x234bb7['QWSMT'](createFeature,{'name':_0x49c6d3,'description':_0x5c3534[_0x5654df(0x11f)],'checklist':_0xadd6b7,'gitRepoUrl':_0xe5ae76,'gitBranch':_0x12c664});await setActiveFeatureId(_0x46ac57['id']),await tryStartCurrentSession(_0x46ac57['id']);const _0x1a4a3e=process['env'][_0x5654df(0x14c)];_0x1a4a3e&&_0x234bb7[_0x5654df(0xfc)](registerSession,_0x1a4a3e,_0x46ac57['id']),console[_0x5654df(0x115)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x46ac57['id']),_0x234bb7['EebHA'](displayFeature,_0x46ac57,_0x46ac57[_0x5654df(0x12a)]),console['log'](_0x5654df(0xbc));}export async function featureList(_0x2e7c88){const _0x1044e3=_0x23f300,_0x2f463e={'JUHgG':function(_0x419c32){return _0x419c32();},'KYDmp':function(_0x5d0988,_0x65e943){return _0x5d0988(_0x65e943);},'qSoRL':'\x0aNo\x20feature\x20reviews\x20found.','mMMHQ':function(_0x48b219,_0x979319){return _0x48b219>_0x979319;},'sCCMP':_0x1044e3(0xef),'YmvWM':function(_0x348f98,_0x37d3fc){return _0x348f98+_0x37d3fc;},'VrVTd':function(_0x2a347c,_0x322888){return _0x2a347c!==_0x322888;},'yWFbU':'\x20--include-deleted'},_0x21865e={'limit':_0x2e7c88[_0x1044e3(0xed)]??0xa,'offset':_0x2e7c88['offset']??0x0,'includeDeleted':_0x2e7c88['includeDeleted']};_0x2e7c88['currentBranch']&&(_0x21865e['gitRepoUrl']=_0x2f463e['JUHgG'](getGitRepoUrl),_0x21865e[_0x1044e3(0xa9)]=_0x2f463e['JUHgG'](getGitBranch));const _0x1c93f3=await _0x2f463e['KYDmp'](listFeatures,_0x21865e);if(_0x1c93f3['items'][_0x1044e3(0x150)]===0x0){console[_0x1044e3(0x115)](_0x2f463e[_0x1044e3(0x113)]);return;}const _0x3e0afa=_0x2f463e['mMMHQ'](_0x1c93f3[_0x1044e3(0xda)],_0x1c93f3['items']['length'])?'Showing\x20'+_0x1c93f3['items']['length']+'\x20of\x20'+_0x1c93f3[_0x1044e3(0xda)]:_0x1c93f3['totalCount']+_0x1044e3(0x11b);console['log']('\x0a'+_0x3e0afa+':\x0a');for(const _0x285050 of _0x1c93f3['items']){const _0x3ec0d1=_0x2f463e['sCCMP']['split']('|');let _0x21f545=0x0;while(!![]){switch(_0x3ec0d1[_0x21f545++]){case'0':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x285050['createdAt'])['toLocaleDateString']());continue;case'1':_0x285050[_0x1044e3(0x14d)]&&console[_0x1044e3(0x115)](_0x1044e3(0x126)+getProgressDisplay(_0x285050[_0x1044e3(0x14d)]));continue;case'2':console['log']('');continue;case'3':_0x285050['gitBranch']&&console['log'](_0x1044e3(0x12c)+_0x285050[_0x1044e3(0xa9)]);continue;case'4':console['log'](_0x1044e3(0x132)+_0x285050['id']);continue;case'5':console['log'](''+_0x285050['name']);continue;}break;}}const _0x4fde8c=_0x21865e[_0x1044e3(0xed)]??0xa,_0x1297c1=_0x2f463e['YmvWM'](_0x21865e['offset']??0x0,_0x1c93f3[_0x1044e3(0xca)][_0x1044e3(0x150)]);if(_0x1297c1<_0x1c93f3[_0x1044e3(0xda)]){const _0x5a70dd=_0x2f463e[_0x1044e3(0xe0)](_0x4fde8c,0xa)?_0x1044e3(0x9d)+_0x4fde8c:'',_0x24b3a7=_0x2e7c88['currentBranch']?'\x20--current-branch':'',_0x3adf62=_0x2e7c88['includeDeleted']?_0x2f463e['yWFbU']:'';console[_0x1044e3(0x115)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1297c1+_0x5a70dd+_0x24b3a7+_0x3adf62);}}export async function featureShow(_0x52063f){const _0x5894da=_0x23f300,_0x4cc7ab={'sIiJn':function(_0x33b0f2){return _0x33b0f2();},'JBwpe':_0x5894da(0x135),'NSbYx':function(_0x5ef324,_0x5cef97){return _0x5ef324(_0x5cef97);}},_0x3e5bf3=_0x52063f||await _0x4cc7ab['sIiJn'](getActiveFeatureId);if(!_0x3e5bf3)throw new Error(_0x4cc7ab['JBwpe']);const _0x336d1d=await _0x4cc7ab[_0x5894da(0x13c)](getFeature,_0x3e5bf3);displayFeature(_0x336d1d,_0x336d1d[_0x5894da(0x12a)]);}export async function featureResume(_0x58a827){const _0x5c04af=_0x23f300,_0x24ac5d={'aBSxi':function(_0x497742,_0x4084ed){return _0x497742(_0x4084ed);},'kQHNP':function(_0x28b21b,_0x3dd0a9){return _0x28b21b(_0x3dd0a9);},'MTlJh':function(_0x3c1062,_0xb99405,_0x17b9a3){return _0x3c1062(_0xb99405,_0x17b9a3);},'SDQpS':function(_0x32aee4,_0x3c3b06){return _0x32aee4(_0x3c3b06);},'SchLn':function(_0xb6e95a,_0x34069d,_0x168c7b){return _0xb6e95a(_0x34069d,_0x168c7b);},'gCRPk':function(_0x387cc4){return _0x387cc4();},'qmSft':function(_0x385e5c,_0xa51bb1){return _0x385e5c&&_0xa51bb1;},'QjREN':_0x5c04af(0xad),'mXPAX':function(_0x1eef10,_0x1443e9){return _0x1eef10||_0x1443e9;},'laOLl':'any','rfhAX':function(_0x2e3b29,_0x46cfa3){return _0x2e3b29===_0x46cfa3;},'OgbFu':_0x5c04af(0xe5),'nHDZl':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','uLJvh':_0x5c04af(0x107),'tsfVh':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:'};if(_0x58a827){const _0x382dae=await _0x24ac5d['aBSxi'](getFeature,_0x58a827);await _0x24ac5d['kQHNP'](setActiveFeatureId,_0x382dae['id']);const _0xa7691a=getGitBranch();_0xa7691a&&_0xa7691a!==_0x382dae[_0x5c04af(0xa9)]&&(await _0x24ac5d['MTlJh'](updateFeature,_0x382dae['id'],{'gitBranch':_0xa7691a}),console['log'](_0x5c04af(0xa3)+_0xa7691a));console[_0x5c04af(0x115)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x382dae['name']+'\x20('+_0x382dae['id']+')'),await _0x24ac5d['SDQpS'](tryStartCurrentSession,_0x382dae['id']);const _0x3a6bb1=process['env']['CLAUDE_SESSION_ID'];_0x3a6bb1&&_0x24ac5d['SchLn'](registerSession,_0x3a6bb1,_0x382dae['id']);displayFeature(_0x382dae,_0x382dae[_0x5c04af(0x12a)]),await printFeedbackNudge(_0x382dae['id']);return;}const _0x830378=getGitRepoUrl(),_0x2473aa=_0x24ac5d['gCRPk'](getGitBranch);if(_0x24ac5d[_0x5c04af(0x139)](!_0x830378,!_0x2473aa))throw new Error(_0x24ac5d[_0x5c04af(0x10a)]);console[_0x5c04af(0x115)](_0x5c04af(0xc3)+_0x24ac5d['mXPAX'](_0x830378,_0x5c04af(0xdc))+_0x5c04af(0x104)+(_0x2473aa||_0x24ac5d[_0x5c04af(0x145)])+'...');const _0xc2ee57=await _0x24ac5d['SDQpS'](listFeatures,{'gitRepoUrl':_0x830378,'gitBranch':_0x2473aa}),_0x43fbd9=_0xc2ee57[_0x5c04af(0xca)][_0x5c04af(0xe4)](_0x159235=>!_0x159235['completedAt']);if(_0x24ac5d[_0x5c04af(0xe1)](_0x43fbd9[_0x5c04af(0x150)],0x0)){console['log'](_0x24ac5d['OgbFu']),console['log'](_0x24ac5d['nHDZl']);return;}let _0x8b689c;if(_0x43fbd9[_0x5c04af(0x150)]===0x1)_0x8b689c=_0x43fbd9[0x0];else{const _0x16986f=process[_0x5c04af(0xdd)][_0x5c04af(0x106)]&&process[_0x5c04af(0x159)]['isTTY'];if(!_0x16986f){console[_0x5c04af(0x115)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xb4df7b of _0x43fbd9){console['log']('\x20\x20'+_0xb4df7b['name']),console['log'](_0x5c04af(0x156)+_0xb4df7b['id']),_0xb4df7b['stats']&&console[_0x5c04af(0x115)](_0x5c04af(0x118)+getProgressDisplay(_0xb4df7b['stats'])),_0xb4df7b['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xb4df7b[_0x5c04af(0xa9)]);}throw new Error(_0x24ac5d['uLJvh']);}const {selected:_0x393a88}=await _0x570df0['prompt']([{'type':'list','name':_0x5c04af(0xdb),'message':_0x24ac5d[_0x5c04af(0x153)],'choices':_0x43fbd9[_0x5c04af(0x12b)](_0xd8fb1a=>({'name':_0xd8fb1a[_0x5c04af(0x148)]+'\x20('+_0xd8fb1a['id']+')','value':_0xd8fb1a['id']}))}]);_0x8b689c=_0x43fbd9[_0x5c04af(0x15b)](_0x202e83=>_0x202e83['id']===_0x393a88);}await setActiveFeatureId(_0x8b689c['id']);_0x2473aa&&_0x2473aa!==_0x8b689c['gitBranch']&&(await updateFeature(_0x8b689c['id'],{'gitBranch':_0x2473aa}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2473aa));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x8b689c[_0x5c04af(0x148)]+'\x20('+_0x8b689c['id']+')'),await tryStartCurrentSession(_0x8b689c['id']);const _0x17a4d4=await getFeature(_0x8b689c['id']),_0x17a624=process['env']['CLAUDE_SESSION_ID'];_0x17a624&&registerSession(_0x17a624,_0x17a4d4['id']),_0x24ac5d['SchLn'](displayFeature,_0x17a4d4,_0x17a4d4['checklistItems']),await printFeedbackNudge(_0x17a4d4['id']);}async function printFeedbackNudge(_0x32475f){const _0x1efc65=_0x23f300,_0x867a0d={'rgUMQ':function(_0x4b5f03,_0x592549){return _0x4b5f03(_0x592549);},'PwiMa':function(_0x22f673,_0xa4692d,_0x40c8bb){return _0x22f673(_0xa4692d,_0x40c8bb);}};try{const {items:_0x1c72d6}=await _0x867a0d['rgUMQ'](getActionItems,_0x32475f);let _0x136b44=0x0,_0x1ebf7d=0x0;for(const _0x53d6bd of _0x1c72d6){const _0x3a33dc=await _0x867a0d['PwiMa'](getItemFeedback,_0x32475f,_0x53d6bd['id']);_0x3a33dc[_0x1efc65(0xf5)]['length']>0x0&&(_0x136b44+=_0x3a33dc['unaddressedComments']['length'],_0x1ebf7d++);}_0x136b44>0x0&&(console['log'](_0x1efc65(0xd4)+_0x136b44+_0x1efc65(0xff)+_0x1ebf7d+'\x20scenario(s).'),console[_0x1efc65(0x115)](_0x1efc65(0x96)));}catch{}}async function tryStartCurrentSession(_0x5b5de5){const _0x50feab=_0x23f300,_0x36d3c5={'SEHdi':function(_0x43d511,_0x273397){return _0x43d511(_0x273397);},'YfIFT':function(_0x545056,_0x2088ce,_0x4c92e9){return _0x545056(_0x2088ce,_0x4c92e9);}};try{const {sessions:_0x11c095}=await _0x36d3c5['SEHdi'](listFeatureSessions,_0x5b5de5),_0x2916ef=_0x11c095[_0x50feab(0x15b)](_0x1b9bbd=>_0x1b9bbd[_0x50feab(0x99)]===_0x50feab(0xd8));_0x2916ef&&(await _0x36d3c5['YfIFT'](startSession,_0x5b5de5,_0x2916ef['id']),console[_0x50feab(0x115)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x2916ef['iteration']));}catch{}}export async function featureReport(_0x5db596,_0x5ba5f7){const _0xab6ba9=_0x23f300,_0x1c739a={'acMpW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','fthlR':function(_0x43f074,_0x3429b9,_0x37ca6a,_0x2fa450){return _0x43f074(_0x3429b9,_0x37ca6a,_0x2fa450);},'bALPx':function(_0x41f94b){return _0x41f94b();},'OmCHy':'reports','eXyQQ':function(_0x1ee944,_0x570232){return _0x1ee944(_0x570232);},'Fplhq':function(_0x3333db,_0x2d5953,_0x41e47c){return _0x3333db(_0x2d5953,_0x41e47c);},'bAIXs':function(_0x24583d,_0x33f063,_0x376650,_0x4fc7c0){return _0x24583d(_0x33f063,_0x376650,_0x4fc7c0);},'IhpIW':_0xab6ba9(0xd9)},_0x52018f=_0x5db596||await getActiveFeatureId();if(!_0x52018f)throw new Error(_0x1c739a['acMpW']);console[_0xab6ba9(0x115)]('\x0aGenerating\x20report...');const _0x56b7cf=await getFeatureReportMarkdown(_0x52018f,{'style':_0x5ba5f7[_0xab6ba9(0x137)]}),_0x35aa2f=_0x5ba5f7[_0xab6ba9(0x114)]||_0x1c739a['fthlR'](join,_0x1c739a['bALPx'](getRangerDir),_0x1c739a['OmCHy'],_0x52018f+'.md'),_0x5ef314=join(_0x35aa2f,'..');!_0x1c739a['eXyQQ'](existsSync,_0x5ef314)&&await _0x1c739a['Fplhq'](mkdir,_0x5ef314,{'recursive':!![]}),await _0x1c739a['bAIXs'](writeFile,_0x35aa2f,_0x56b7cf,_0x1c739a['IhpIW']),console[_0xab6ba9(0x115)]('\x0a✅\x20Report\x20generated:\x20'+_0x35aa2f);}function getScenarioResult(_0x41c7f3){const _0x2d6116=_0x23f300,_0xc56563={'IDsBe':function(_0x377d26,_0x59a445){return _0x377d26===_0x59a445;}};if(_0xc56563[_0x2d6116(0xc8)](_0x41c7f3['status'],'closed'))return _0x41c7f3[_0x2d6116(0xe3)]??'closed';if(_0xc56563['IDsBe'](_0x41c7f3[_0x2d6116(0x99)],'verification_in_progress'))return'in_progress';return _0x41c7f3['status'];}function getScenarioRationale(_0x3d7af3,_0x590384){const _0x26354b=_0x23f300,_0xf7a94f='1|2|0|4|3|5'['split']('|');let _0x55f4c2=0x0;while(!![]){switch(_0xf7a94f[_0x55f4c2++]){case'0':if(_0x3d7af3['incompleteReason'])return _0x3d7af3[_0x26354b(0x121)];continue;case'1':if(_0x590384)return _0x590384;continue;case'2':if(_0x3d7af3['blockedReason'])return _0x3d7af3[_0x26354b(0x127)];continue;case'3':if(_0x3d7af3[_0x26354b(0xa1)])return _0x3d7af3[_0x26354b(0xa1)];continue;case'4':if(_0x3d7af3[_0x26354b(0x102)])return _0x3d7af3[_0x26354b(0x102)];continue;case'5':return null;}break;}}export async function featureReportPrDescription(_0x3e597a,_0x4e5087){const _0x39e302=_0x23f300,_0x705c3={'KtxGf':function(_0xae59eb){return _0xae59eb();},'JNMkL':function(_0x3f4844,_0x5cc119,_0x2c77f3){return _0x3f4844(_0x5cc119,_0x2c77f3);},'OQyKG':_0x39e302(0xc6),'fBNOz':function(_0x11e90b,_0x61f0c2){return _0x11e90b>_0x61f0c2;},'iHAHH':'\x0aAvailable\x20scenarios:','Dxbbu':function(_0xd1e5ca,_0x506e60){return _0xd1e5ca+_0x506e60;},'JBdfv':_0x39e302(0xf6),'EpzCa':function(_0x1de38b,_0x217c1f,_0xe6e4c1,_0x10e371){return _0x1de38b(_0x217c1f,_0xe6e4c1,_0x10e371);}},_0x4ed920=_0x3e597a||await _0x705c3[_0x39e302(0x12e)](getActiveFeatureId);if(!_0x4ed920)throw new Error(_0x39e302(0xeb));const _0x4c7be8=await getFeature(_0x4ed920),_0x4a7ef4=_0x4c7be8[_0x39e302(0x12a)]||[],_0x1b39ed=_0x705c3['JNMkL'](getCurrentSessionItems,_0x4c7be8,_0x4a7ef4);_0x1b39ed['length']===0x0&&(console[_0x39e302(0x122)](_0x705c3[_0x39e302(0xb5)]),process['exit'](0x1));const _0x519f59=_0x4e5087[_0x39e302(0xb6)]??[],_0x46ba3f=_0x519f59['filter'](_0x1c725d=>!Number[_0x39e302(0x154)](_0x1c725d)||_0x1c725d<0x1||_0x1c725d>_0x1b39ed['length']);if(_0x705c3[_0x39e302(0x125)](_0x46ba3f['length'],0x0)){console[_0x39e302(0x122)](_0x39e302(0x120)+_0x46ba3f['join'](',\x20')),console[_0x39e302(0x115)](_0x705c3['iHAHH']);for(let _0x30e093=0x0;_0x30e093<_0x1b39ed['length'];_0x30e093++){console[_0x39e302(0x115)]('\x20\x20'+_0x705c3[_0x39e302(0x105)](_0x30e093,0x1)+'.\x20'+_0x1b39ed[_0x30e093][_0x39e302(0x11f)]);}process[_0x39e302(0xaa)](0x1);}const _0x221415=new Set(_0x519f59['map'](_0x32b1ad=>_0x32b1ad-0x1)),_0x5eef06=_0x1b39ed['filter']((_0x44d162,_0x18be61)=>!_0x221415[_0x39e302(0xc9)](_0x18be61));_0x5eef06['length']===0x0&&(console[_0x39e302(0x122)](_0x705c3[_0x39e302(0xd2)]),process[_0x39e302(0xaa)](0x1));if(_0x4e5087[_0x39e302(0xa5)])await _0x705c3['EpzCa'](outputJsonReport,_0x4ed920,_0x4c7be8,_0x5eef06);else{const _0x14c123=await getFeatureReportMarkdown(_0x4ed920,{'itemIds':_0x5eef06['map'](_0x5358a1=>_0x5358a1['id'])});process[_0x39e302(0x159)]['write'](_0x14c123['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x1edde8,_0x58e3f5,_0x567120){const _0x3162cf=_0x23f300,_0x332b36={'VjayR':function(_0x42710d,_0x40a09e){return _0x42710d>_0x40a09e;},'mnVdG':function(_0x7cc96b){return _0x7cc96b();}},_0x2298f8=_0x332b36[_0x3162cf(0x13f)](getApiBaseUrl),_0x3312f7=await getFeatureReport(_0x1edde8),_0x2a77bd=new Map(_0x3312f7['checklistItems']['map'](_0x2296a1=>[_0x2296a1['id'],_0x2296a1])),_0x4e2bc0=await Promise['all'](_0x567120[_0x3162cf(0x12b)](async _0x4ef518=>{const _0x128efd=_0x3162cf,_0x47afae=_0x2a77bd['get'](_0x4ef518['id']),_0x37f873=_0x47afae?.['linkedSession']??null;let _0xa16cb9=[];if(_0x4ef518['browserSessionId'])try{const {steps:_0x40d498}=await getBrowserSessionSteps(_0x4ef518[_0x128efd(0x10e)]);_0x332b36['VjayR'](_0x40d498[_0x128efd(0x150)],0x0)&&(_0xa16cb9=_0x40d498[_0x128efd(0x12b)](_0x568c19=>{const _0x5ab527=_0x128efd,_0x2b3981=_0x568c19['assets'][_0x5ab527(0x15b)](_0x17bf00=>_0x17bf00['assetType']==='screenshot'&&_0x17bf00['timing']===_0x5ab527(0x9e))??_0x568c19['assets']['find'](_0x55b8ff=>_0x55b8ff[_0x5ab527(0xb3)]==='screenshot');let _0x13681e=null,_0x523bda=null;if(_0x2b3981){const _0x257aed=_0x2b3981['storage']['location'][_0x5ab527(0x158)]('/')[_0x5ab527(0xd6)]();_0x13681e=_0x2298f8+_0x5ab527(0x98)+_0x4ef518['browserSessionId']+_0x5ab527(0xb1)+_0x257aed,_0x257aed&&(_0x523bda=_0x257aed['replace'](/\.\w+$/,'')[_0x5ab527(0x108)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x523bda||_0x568c19['description']||_0x568c19[_0x5ab527(0x14f)]||'Step\x20'+_0x568c19[_0x5ab527(0x123)],'screenshot':_0x13681e,'is_key_step':_0x568c19[_0x5ab527(0xd7)]};}));}catch{}return _0xa16cb9['length']===0x0&&_0x37f873?.[_0x128efd(0xe7)]&&(_0xa16cb9=_0x37f873[_0x128efd(0xe7)]['map']((_0x2ba058,_0x448a6c)=>({'description':'Screenshot\x20'+(_0x448a6c+0x1),'screenshot':_0x2ba058,'is_key_step':![]}))),{'description':_0x4ef518[_0x128efd(0x11f)],'result':getScenarioResult(_0x4ef518),'rationale':getScenarioRationale(_0x4ef518,_0x37f873?.['agentResponse']),'steps':_0xa16cb9};})),_0xeca52c={'url':_0x58e3f5[_0x3162cf(0x138)],'scenarios':_0x4e2bc0};process['stdout']['write'](JSON[_0x3162cf(0x15a)](_0xeca52c,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x4d2779){const _0x56c608=_0x23f300,_0x51d2d8={'BWKIZ':function(_0x12ff07,_0x4ffcfd){return _0x12ff07(_0x4ffcfd);},'mTjpe':_0x56c608(0x14e),'FotKF':_0x56c608(0xa2),'iLYaP':'\x0a✅\x20Session\x20is\x20already\x20completed.','FWzQZ':'in_progress'},_0x105016=_0x4d2779||await getActiveFeatureId();if(!_0x105016)throw new Error(_0x56c608(0x135));const _0x1e7e9a=await _0x51d2d8['BWKIZ'](getFeature,_0x105016);if(!_0x1e7e9a['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x49e327}=await listFeatureSessions(_0x105016),_0x1a56f8=_0x49e327['find'](_0xca6612=>_0xca6612['id']===_0x1e7e9a['currentSessionId']);if(!_0x1a56f8)throw new Error(_0x51d2d8[_0x56c608(0x12f)]);if(_0x1a56f8[_0x56c608(0x99)]===_0x51d2d8[_0x56c608(0xea)]){console[_0x56c608(0x115)](_0x51d2d8[_0x56c608(0xf3)]);return;}if(_0x1a56f8[_0x56c608(0x99)]!==_0x51d2d8['FWzQZ'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x1a56f8[_0x56c608(0x99)]);console[_0x56c608(0x115)]('\x0aConcluding\x20session...'),await concludeSession(_0x105016,_0x1e7e9a[_0x56c608(0xce)]),console['log']('\x0a✅\x20Session\x20'+_0x1a56f8[_0x56c608(0xd1)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5412a4){const _0x4e2111=_0x23f300,_0x16812f={'XEGbx':function(_0xc0068e){return _0xc0068e();},'cqNzQ':_0x4e2111(0xeb),'oBXUe':function(_0x13433f,_0x5d7e7c){return _0x13433f(_0x5d7e7c);},'NRFHl':'No\x20sessions\x20found.','oVqwE':'completed','iDbAe':function(_0x49a548,_0x51209e){return _0x49a548===_0x51209e;}},_0x296df2=_0x5412a4||await _0x16812f['XEGbx'](getActiveFeatureId);if(!_0x296df2)throw new Error(_0x16812f[_0x4e2111(0xfd)]);const _0x4d24b9=await getFeature(_0x296df2);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4d24b9['name']+'\x0a');const {sessions:_0x427718}=await _0x16812f[_0x4e2111(0xc4)](listFeatureSessions,_0x296df2);if(_0x427718[_0x4e2111(0x150)]===0x0){console['log'](_0x16812f[_0x4e2111(0xcb)]);return;}for(const _0x1e06a6 of _0x427718){const _0x4a5950=_0x1e06a6[_0x4e2111(0x99)]===_0x16812f['oVqwE']?'✅':_0x16812f['iDbAe'](_0x1e06a6[_0x4e2111(0x99)],_0x4e2111(0x11e))?'🔄':'▶️';console[_0x4e2111(0x115)](_0x4a5950+'\x20Session\x20'+_0x1e06a6[_0x4e2111(0xd1)]+'\x20('+_0x1e06a6['id']+')'),console[_0x4e2111(0x115)](_0x4e2111(0x10b)+_0x1e06a6[_0x4e2111(0x99)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x1e06a6['createdAt'])['toLocaleString']()),_0x1e06a6[_0x4e2111(0x155)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x1e06a6['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x9239af,_0x2d5896){const _0x3483a3=_0x23f300,_0xb1f393={'NDuxL':function(_0x2c9877){return _0x2c9877();},'knTGR':function(_0x2c8188,_0x597126,_0x204270){return _0x2c8188(_0x597126,_0x204270);},'uuWtm':function(_0x13598f,_0x2957bf){return _0x13598f(_0x2957bf);},'dsXcK':function(_0xe6f2e1,_0x2bd4f8,_0x40ddec){return _0xe6f2e1(_0x2bd4f8,_0x40ddec);}},_0x386848=_0x2d5896||await _0xb1f393['NDuxL'](getActiveFeatureId);if(!_0x386848)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 _0x44a96d=await getFeature(_0x386848);if(_0x44a96d['latestReview']&&!_0x44a96d[_0x3483a3(0x151)]['submittedAt'])throw new Error(_0x3483a3(0x12d)+_0x44a96d[_0x3483a3(0x138)]);await _0xb1f393[_0x3483a3(0xba)](createChecklistItem,_0x386848,_0x9239af);const _0x3be6c1=await _0xb1f393['uuWtm'](getFeature,_0x386848);console[_0x3483a3(0x115)](_0x3483a3(0xf8)),_0xb1f393[_0x3483a3(0x111)](displayFeature,_0x3be6c1,_0x3be6c1[_0x3483a3(0x12a)]);}export async function featureEditScenario(_0x2b84bb,_0x38e9cd){const _0x3115e1=_0x23f300,_0x3c0d01={'eAAEY':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','EcFpn':function(_0x1af208,_0x53fda7){return _0x1af208===_0x53fda7;},'OikYs':_0x3115e1(0x9b),'iGdci':_0x3115e1(0xaf),'Bxwin':function(_0x388e8e,_0x187f19){return _0x388e8e<_0x187f19;},'bcHVy':function(_0xacfd37,_0x496aa7){return _0xacfd37+_0x496aa7;},'OMhOw':function(_0x1eb676,_0x2f9aa5){return _0x1eb676-_0x2f9aa5;},'RrbaG':function(_0x28f9d0,_0x242410){return _0x28f9d0>=_0x242410;},'weBGc':function(_0x5d6cf0,_0x1ebfe9,_0x1f9394){return _0x5d6cf0(_0x1ebfe9,_0x1f9394);}},_0x169495=_0x38e9cd['id']||await getActiveFeatureId();!_0x169495&&(console[_0x3115e1(0x122)](_0x3c0d01[_0x3115e1(0xa0)]),console[_0x3115e1(0x122)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process[_0x3115e1(0xaa)](0x1));const _0x27848c=await getFeature(_0x169495);_0x27848c[_0x3115e1(0x151)]&&!_0x27848c[_0x3115e1(0x151)]['submittedAt']&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x27848c[_0x3115e1(0x138)]),process['exit'](0x1));const _0x1e6a5c=_0x27848c[_0x3115e1(0x12a)]||[];_0x3c0d01['EcFpn'](_0x1e6a5c['length'],0x0)&&(console[_0x3115e1(0x122)](_0x3c0d01['OikYs']),process['exit'](0x1));if(_0x3c0d01['EcFpn'](_0x38e9cd['scenario'],undefined)){console['error'](_0x3c0d01['iGdci']),console[_0x3115e1(0x115)](_0x3115e1(0xe6));for(let _0x42b2a2=0x0;_0x3c0d01[_0x3115e1(0x149)](_0x42b2a2,_0x1e6a5c['length']);_0x42b2a2++){console[_0x3115e1(0x115)]('\x20\x20'+_0x3c0d01['bcHVy'](_0x42b2a2,0x1)+'.\x20'+_0x1e6a5c[_0x42b2a2][_0x3115e1(0x11f)]);}process['exit'](0x1);}const _0x260433=_0x3c0d01['OMhOw'](_0x38e9cd[_0x3115e1(0xf1)],0x1);if(_0x3c0d01[_0x3115e1(0x149)](_0x260433,0x0)||_0x3c0d01[_0x3115e1(0x129)](_0x260433,_0x1e6a5c['length'])){console[_0x3115e1(0x122)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x38e9cd['scenario']+_0x3115e1(0x144)+_0x1e6a5c['length']+_0x3115e1(0x13b)),console['log'](_0x3115e1(0xe6));for(let _0x7ec227=0x0;_0x7ec227<_0x1e6a5c['length'];_0x7ec227++){console[_0x3115e1(0x115)]('\x20\x20'+_0x3c0d01['bcHVy'](_0x7ec227,0x1)+'.\x20'+_0x1e6a5c[_0x7ec227]['description']);}process['exit'](0x1);}const _0x503639=_0x1e6a5c[_0x260433];await updateChecklistItem(_0x169495,_0x503639['id'],{'description':_0x2b84bb});const _0x223845=await getFeature(_0x169495);console[_0x3115e1(0x115)]('\x0a✅\x20Scenario\x20updated'),_0x3c0d01['weBGc'](displayFeature,_0x223845,_0x223845['checklistItems']);}async function downloadFeedbackImage(_0x6df001,_0x47d23e){const _0x23a627=_0x23f300,_0x274d1b={'XuUbd':function(_0x3f9ecd,_0x213b41,_0x1d3181){return _0x3f9ecd(_0x213b41,_0x1d3181);},'QAiur':_0x23a627(0x9a),'ZQYjl':function(_0x142bbe,_0x4b4e5e,_0x1a7760){return _0x142bbe(_0x4b4e5e,_0x1a7760);}};try{const _0xa2b166=_0x274d1b['XuUbd'](join,getRangerDir(),_0x274d1b[_0x23a627(0x13d)]);await mkdir(_0xa2b166,{'recursive':!![]});const _0x343275=join(_0xa2b166,_0x23a627(0xe8)+_0x47d23e+'.png'),_0x5098d6=await fetch(_0x6df001);if(!_0x5098d6['ok'])return null;const _0x317f31=Buffer[_0x23a627(0x112)](await _0x5098d6[_0x23a627(0x140)]());return await _0x274d1b['ZQYjl'](writeFile,_0x343275,_0x317f31),_0x343275;}catch{return null;}}export async function featureGetReview(_0x2286f9){const _0x32fe87=_0x23f300,_0x4ea732={'WvAox':function(_0x1d0fb2){return _0x1d0fb2();},'gqTWK':_0x32fe87(0x135),'Uenge':function(_0x517aba,_0x58e97e){return _0x517aba(_0x58e97e);},'TxvNP':function(_0x228a63,_0x5b07a8){return _0x228a63===_0x5b07a8;},'SFncG':function(_0x5bcab8,_0x5739d2,_0x83d069){return _0x5bcab8(_0x5739d2,_0x83d069);},'oLmyz':function(_0x2f72c1,_0x45b8cb){return _0x2f72c1>_0x45b8cb;},'WIINg':'numeric','KxvHB':'Unknown','uzBUd':'\x20>\x20'},_0x10eb6f=_0x2286f9||await _0x4ea732['WvAox'](getActiveFeatureId);if(!_0x10eb6f)throw new Error(_0x4ea732['gqTWK']);const _0x1fc065=await getFeature(_0x10eb6f),{items:_0x1ef99e}=await _0x4ea732[_0x32fe87(0x10f)](getActionItems,_0x10eb6f);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x1fc065[_0x32fe87(0x148)]+'\x20('+_0x1fc065['id']+')\x0a');if(_0x4ea732[_0x32fe87(0xa8)](_0x1ef99e['length'],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x5af75f=0x0;_0x5af75f<_0x1ef99e['length'];_0x5af75f++){const _0x2fd657=_0x1ef99e[_0x5af75f],_0x1e9cf4=_0x2fd657['version']>0x1?_0x32fe87(0x13a)+_0x2fd657[_0x32fe87(0xa4)]+')':'',_0x40c809=await _0x4ea732[_0x32fe87(0x142)](getItemFeedback,_0x10eb6f,_0x2fd657['id']);if(_0x4ea732['oLmyz'](_0x40c809['unaddressedComments']['length'],0x0)){console[_0x32fe87(0x115)](_0x32fe87(0xab)+(_0x5af75f+0x1)+':\x20\x22'+_0x2fd657['description']+'\x22'+_0x1e9cf4+'\x20—\x20'+_0x40c809[_0x32fe87(0xf5)][_0x32fe87(0x150)]+'\x20unaddressed\x20comment(s)');for(const _0x5cbaad of _0x40c809[_0x32fe87(0xf5)]){const _0x55dfbe=new Date(_0x5cbaad['createdAt'])[_0x32fe87(0x146)](_0x32fe87(0x101),{'month':'short','day':_0x4ea732['WIINg']}),_0x931fe5=_0x5cbaad['authorName']||_0x5cbaad[_0x32fe87(0x143)]||_0x4ea732[_0x32fe87(0xec)];console[_0x32fe87(0x115)]('\x20\x20💬\x20'+_0x931fe5+'\x20('+_0x55dfbe+'):\x20\x22'+_0x5cbaad[_0x32fe87(0x110)]+'\x22');if(_0x5cbaad[_0x32fe87(0x97)]){const _0x599dd1=await downloadFeedbackImage(_0x5cbaad[_0x32fe87(0x97)],_0x5cbaad['id']);_0x599dd1&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x599dd1);}if(_0x5cbaad[_0x32fe87(0x14a)]){const _0x20f017=_0x5cbaad['domRef']['selector'][_0x32fe87(0x158)](_0x4ea732[_0x32fe87(0x147)])['pop']()?.[_0x32fe87(0x158)](':')[0x0]||_0x32fe87(0x116),_0x91a2f4=_0x5cbaad[_0x32fe87(0x14a)][_0x32fe87(0x95)]?'\x20\x22'+_0x5cbaad['domRef'][_0x32fe87(0x95)]['slice'](0x0,0x3c)+'\x22':'';console[_0x32fe87(0x115)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x20f017+'>'+_0x91a2f4),console['log'](_0x32fe87(0x103)+_0x5cbaad['domRef']['selector']);}else{if(_0x5cbaad['spatial']){const _0x18549e=_0x5cbaad['spatial'][_0x32fe87(0xbd)];_0x4ea732['TxvNP'](_0x5cbaad[_0x32fe87(0x9c)][_0x32fe87(0xb2)],_0x32fe87(0x131))&&_0x18549e[_0x32fe87(0x150)]>=0x2?console['log'](_0x32fe87(0xcc)+_0x18549e[0x0]['toFixed'](0x2)+',\x20'+_0x18549e[0x1][_0x32fe87(0xb8)](0x2)+')'):console['log'](_0x32fe87(0xe2)+_0x5cbaad[_0x32fe87(0x9c)][_0x32fe87(0xb2)]+'\x20at\x20['+_0x18549e[_0x32fe87(0x12b)](_0x270db5=>_0x270db5[_0x32fe87(0xb8)](0x2))['join'](',\x20')+']');}}}if(_0x40c809[_0x32fe87(0xb0)]){console['log'](_0x32fe87(0x10d));for(const _0x5b1f2c of _0x40c809['canonicalFlow']['split']('\x0a')){console['log'](_0x32fe87(0xf7)+_0x5b1f2c);}}}else console['log']('Scenario\x20'+(_0x5af75f+0x1)+':\x20\x22'+_0x2fd657[_0x32fe87(0x11f)]+'\x22'+_0x1e9cf4+_0x32fe87(0xc7)),console['log'](_0x32fe87(0x141));console[_0x32fe87(0x115)]('');}}export async function featureDelete(_0x316b62){const _0x52bc77=_0x23f300,_0x11b20c={'Ikvts':_0x52bc77(0x135),'WGKiA':function(_0x554d4c,_0x24acce){return _0x554d4c(_0x24acce);},'hDTqf':function(_0x11e56d,_0x11a61a){return _0x11e56d(_0x11a61a);},'tbLny':function(_0xd20648,_0xd1d60b){return _0xd20648+_0xd1d60b;}},_0x5f0378=_0x316b62||await getActiveFeatureId();if(!_0x5f0378)throw new Error(_0x11b20c['Ikvts']);const _0x2e94e2=await _0x11b20c[_0x52bc77(0xf9)](getFeature,_0x5f0378);await _0x11b20c[_0x52bc77(0x157)](softDeleteFeature,_0x5f0378),console[_0x52bc77(0x115)](_0x52bc77(0x130)+_0x2e94e2['name']+'\x20('+_0x5f0378+')'),console[_0x52bc77(0x115)](_0x11b20c['tbLny'](_0x52bc77(0xf0),_0x5f0378));}export async function featureRestore(_0x285cb3){const _0x75b5b9=_0x23f300,_0x235970={'gQQlf':function(_0x4724a9,_0x52374d){return _0x4724a9(_0x52374d);},'vLMBX':function(_0x3a30f6,_0x1fe92e,_0x543406){return _0x3a30f6(_0x1fe92e,_0x543406);}};await restoreFeature(_0x285cb3);const _0x244894=await _0x235970['gQQlf'](getFeature,_0x285cb3);console['log'](_0x75b5b9(0xf4)+_0x244894[_0x75b5b9(0x148)]+'\x20('+_0x285cb3+')'),_0x235970[_0x75b5b9(0x128)](displayFeature,_0x244894,_0x244894[_0x75b5b9(0x12a)]);}
1
+ (function(_0x40170a,_0x55c12e){const _0xa6de93=_0x4bac,_0x3d853d=_0x40170a();while(!![]){try{const _0x51e9da=parseInt(_0xa6de93(0x1fe))/0x1*(-parseInt(_0xa6de93(0x25d))/0x2)+parseInt(_0xa6de93(0x275))/0x3+-parseInt(_0xa6de93(0x1f2))/0x4*(-parseInt(_0xa6de93(0x248))/0x5)+-parseInt(_0xa6de93(0x1ff))/0x6*(parseInt(_0xa6de93(0x28e))/0x7)+-parseInt(_0xa6de93(0x207))/0x8+parseInt(_0xa6de93(0x20a))/0x9+-parseInt(_0xa6de93(0x24a))/0xa*(-parseInt(_0xa6de93(0x1ee))/0xb);if(_0x51e9da===_0x55c12e)break;else _0x3d853d['push'](_0x3d853d['shift']());}catch(_0x3165d8){_0x3d853d['push'](_0x3d853d['shift']());}}}(_0x58f3,0xd0d5e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5eeedd from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x1c89d6=>'\x1b[1m'+_0x1c89d6+'\x1b[0m';function getGitRepoUrl(){const _0x150b80=_0x4bac,_0x351e02={'nWrwc':function(_0x4b1f1d,_0x3ef944,_0x192958){return _0x4b1f1d(_0x3ef944,_0x192958);},'FGnSK':'utf-8','LIxqi':'pipe'};try{const _0x3c709d=_0x351e02[_0x150b80(0x1f9)](execSync,_0x150b80(0x26a),{'encoding':_0x351e02[_0x150b80(0x1f7)],'stdio':[_0x150b80(0x25c),_0x351e02[_0x150b80(0x25e)],_0x351e02[_0x150b80(0x25e)]]})[_0x150b80(0x293)]();return _0x3c709d[_0x150b80(0x277)](/\.git$/,'')[_0x150b80(0x277)](/^git@github\.com:/,'github.com/')[_0x150b80(0x277)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x6f801a=_0x4bac,_0x4f92f9={'uMCOs':function(_0x5682dd,_0x11d674,_0x55c8fe){return _0x5682dd(_0x11d674,_0x55c8fe);},'ETiWm':_0x6f801a(0x243),'xDRrl':'pipe'};try{return _0x4f92f9[_0x6f801a(0x218)](execSync,_0x6f801a(0x209),{'encoding':_0x4f92f9['ETiWm'],'stdio':['pipe',_0x4f92f9[_0x6f801a(0x205)],_0x6f801a(0x25c)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3cb247=_0x4bac,_0x1d5826={'ZgfEb':function(_0x1ab241){return _0x1ab241();},'msfOx':_0x3cb247(0x243)},_0x3425af=join(_0x1d5826['ZgfEb'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x3425af))return null;try{const _0x112916=await readFile(_0x3425af,_0x1d5826['msfOx']);return _0x112916['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x262a24){const _0x448f29=_0x4bac,_0x5a3558={'YBgLI':function(_0x5492c8,_0x2a4f4c,_0x2e92bc,_0x20668e){return _0x5492c8(_0x2a4f4c,_0x2e92bc,_0x20668e);}},_0x298ed8=getRangerDir(),_0x2155de=join(_0x298ed8,ACTIVE_FEATURE_FILE);!existsSync(_0x298ed8)&&await mkdir(_0x298ed8,{'recursive':!![]}),await _0x5a3558[_0x448f29(0x246)](writeFile,_0x2155de,_0x262a24,_0x448f29(0x243));}function getProgressDisplay(_0x329b97){const _0x50ba59=_0x4bac,_0x220b82={'nSJch':function(_0x56d9f6,_0x3c3b02){return _0x56d9f6+_0x3c3b02;},'pMkcS':function(_0x411f9e,_0x5e0967){return _0x411f9e+_0x5e0967;},'rSEwg':function(_0x464b54,_0x23fc98){return _0x464b54-_0x23fc98;},'FnSmD':function(_0x5acd26,_0x182993){return _0x5acd26>_0x182993;},'gZAnc':function(_0x3044b0,_0x5787ef){return _0x3044b0>_0x5787ef;}},_0x520bd8=_0x329b97[_0x50ba59(0x253)]||0x0,_0x625454=_0x329b97[_0x50ba59(0x239)]||0x0,_0x3e82f3=_0x329b97[_0x50ba59(0x26f)]||0x0,_0x5e3a38=_0x329b97['incompleteItems']||0x0,_0x117f93=_0x329b97['pendingItems']||0x0,_0x1abccd=_0x220b82['nSJch'](_0x220b82[_0x50ba59(0x237)](_0x520bd8,_0x625454),_0x3e82f3)+_0x5e3a38+_0x117f93;if(_0x1abccd===0x0)return'-';const _0x240f9f=0xa,_0x1a44da=Math['round'](_0x520bd8/_0x1abccd*_0x240f9f),_0x1385d3='█'['repeat'](_0x1a44da)+'░'['repeat'](_0x220b82[_0x50ba59(0x213)](_0x240f9f,_0x1a44da)),_0x88738b=[];if(_0x3e82f3>0x0)_0x88738b['push'](_0x3e82f3+'\x20blocked');if(_0x5e3a38>0x0)_0x88738b[_0x50ba59(0x242)](_0x5e3a38+_0x50ba59(0x20c));if(_0x220b82[_0x50ba59(0x284)](_0x625454,0x0))_0x88738b[_0x50ba59(0x242)](_0x625454+'\x20in\x20progress');const _0x273ab4=_0x220b82[_0x50ba59(0x1fb)](_0x88738b['length'],0x0)?'\x20('+_0x88738b['join'](',\x20')+')':'';return _0x1385d3+'\x20'+_0x520bd8+'/'+_0x1abccd+'\x20verified'+_0x273ab4;}function getCurrentSessionItems(_0x2dacd7,_0x603786){const _0x481208=_0x4bac;if(!_0x2dacd7['currentSessionId'])return _0x603786['filter'](_0x3d5d6f=>!_0x3d5d6f['sessionId']);return _0x603786[_0x481208(0x278)](_0x161f31=>_0x161f31['sessionId']===_0x2dacd7['currentSessionId']||!_0x161f31[_0x481208(0x220)]);}function displayFeature(_0x3017e2,_0x29b837){const _0x20efda=_0x4bac,_0x453a04={'KiAso':function(_0x5c3ae0,_0x406ffc){return _0x5c3ae0>_0x406ffc;},'Cjpoo':function(_0x3791ad,_0x3c0421){return _0x3791ad<_0x3c0421;},'IuFos':_0x20efda(0x206),'gMjgi':function(_0x3018d,_0x13eef8){return _0x3018d===_0x13eef8;},'sfmHP':'approved','dWXmm':'verified','NDjcr':function(_0x1c5ee6,_0x3ebdcd){return _0x1c5ee6===_0x3ebdcd;},'NcoiU':function(_0xaa848e,_0x45f03b){return _0xaa848e!==_0x45f03b;},'GjcFF':'\x20[has\x20reviewer\x20feedback]','YaNgO':function(_0x2c51cc,_0x30a111){return _0x2c51cc+_0x30a111;},'iwjYI':_0x20efda(0x240),'hOXDX':function(_0x9fd4b,_0x3e3e90){return _0x9fd4b===_0x3e3e90;},'jFkBl':function(_0xecc225,_0x49f7c){return _0xecc225===_0x49f7c;}};console['log']('\x0a'+_0x3017e2['name']+'\x20('+_0x3017e2['dashboardUrl']+')');_0x3017e2[_0x20efda(0x1e0)]&&console[_0x20efda(0x217)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3017e2[_0x20efda(0x1e0)]));_0x3017e2[_0x20efda(0x1d6)]&&console['log'](_0x20efda(0x28d)+_0x3017e2['description']);_0x3017e2['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x3017e2['gitRepoUrl']);_0x3017e2['gitBranch']&&console['log'](_0x20efda(0x20f)+_0x3017e2['gitBranch']);console[_0x20efda(0x217)]('\x20\x20\x20Created:\x20'+new Date(_0x3017e2['createdAt'])['toLocaleString']());_0x3017e2[_0x20efda(0x23d)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x3017e2[_0x20efda(0x23d)])['toLocaleString']());if(_0x29b837&&_0x453a04['KiAso'](_0x29b837[_0x20efda(0x1eb)],0x0)){console[_0x20efda(0x217)]('\x0a\x20\x20\x20Scenarios:');for(let _0x1d489d=0x0;_0x453a04['Cjpoo'](_0x1d489d,_0x29b837['length']);_0x1d489d++){const _0x4951d1=_0x29b837[_0x1d489d];let _0x1ffaf5;if(_0x4951d1[_0x20efda(0x25b)]===_0x453a04[_0x20efda(0x21f)]&&_0x453a04[_0x20efda(0x245)](_0x4951d1['terminalReason'],_0x453a04[_0x20efda(0x202)]))_0x1ffaf5='✅';else{if(_0x4951d1['status']===_0x453a04['dWXmm'])_0x1ffaf5='🟢';else{if(_0x4951d1[_0x20efda(0x25b)]==='incomplete')_0x1ffaf5='🟠';else{if(_0x453a04['gMjgi'](_0x4951d1['status'],'blocked'))_0x1ffaf5='🛑';else{if(_0x453a04['NDjcr'](_0x4951d1['status'],_0x453a04['IuFos']))_0x1ffaf5='⛔';else _0x4951d1['status']==='verification_in_progress'?_0x1ffaf5='⏳':_0x1ffaf5='⬜';}}}}const _0x26247a=_0x4951d1['version']>0x1?'\x20(v'+_0x4951d1['version']+')':'',_0x4f280e=_0x4951d1['version']>0x1&&_0x4951d1[_0x20efda(0x264)]&&_0x4951d1[_0x20efda(0x25b)]!=='closed'&&_0x453a04['NcoiU'](_0x4951d1['status'],_0x453a04['dWXmm'])?_0x453a04[_0x20efda(0x1f0)]:'';console[_0x20efda(0x217)](_0x20efda(0x221)+_0x453a04[_0x20efda(0x288)](_0x1d489d,0x1)+'.\x20'+_0x1ffaf5+'\x20'+_0x4951d1['description']+_0x26247a+_0x4f280e);_0x4951d1[_0x20efda(0x25b)]===_0x453a04['iwjYI']&&_0x4951d1['blockedReason']&&console[_0x20efda(0x217)](_0x20efda(0x289)+_0x4951d1['blockedReason']);_0x4951d1[_0x20efda(0x25b)]==='incomplete'&&_0x4951d1['incompleteReason']&&console['log'](_0x20efda(0x236)+_0x4951d1['incompleteReason']);if(_0x4951d1[_0x20efda(0x25b)]===_0x20efda(0x206)&&_0x453a04[_0x20efda(0x1e8)](_0x4951d1[_0x20efda(0x210)],'approved'))console[_0x20efda(0x217)](_0x20efda(0x235));else _0x453a04['jFkBl'](_0x4951d1['status'],_0x453a04[_0x20efda(0x21f)])&&_0x4951d1['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x4951d1[_0x20efda(0x1ec)]);}}}function _0x4bac(_0x195396,_0xfebc9a){_0x195396=_0x195396-0x1d3;const _0x58f3a6=_0x58f3();let _0x4bac08=_0x58f3a6[_0x195396];return _0x4bac08;}export async function featureCreate(_0x19339c,_0x3f0d24){const _0x37b4d4=_0x4bac,_0xdbc751={'UomeD':function(_0x5a413a){return _0x5a413a();},'PHaYa':function(_0x45eee6,_0x5d9197){return _0x45eee6===_0x5d9197;},'Axpsc':function(_0x22a1f0,_0x4e32bc){return _0x22a1f0(_0x4e32bc);},'beoqp':function(_0x4c2307,_0x38024a,_0x165f01){return _0x4c2307(_0x38024a,_0x165f01);}},{envNames:_0x5f14de}=await _0xdbc751['UomeD'](getEnvNames);_0xdbc751['PHaYa'](_0x5f14de['length'],0x0)&&console[_0x37b4d4(0x23a)]('\x0a'+_0xdbc751[_0x37b4d4(0x1e7)](formatProfileRequiredMessage,_0x5285d2=>bold(_0x5285d2)));const _0xf8bd24=_0x3f0d24[_0x37b4d4(0x1f4)]?_0x3f0d24[_0x37b4d4(0x1f4)][_0x37b4d4(0x294)](_0x4edc4e=>_0x4edc4e['trim']()):[],_0x7fbd32=_0xdbc751[_0x37b4d4(0x201)](getGitRepoUrl),_0x5b2b83=getGitBranch();console['log']('\x0aCreating\x20feature\x20review...');const _0x1e9d55=await createFeature({'name':_0x19339c,'description':_0x3f0d24['description'],'checklist':_0xf8bd24,'gitRepoUrl':_0x7fbd32,'gitBranch':_0x5b2b83});await setActiveFeatureId(_0x1e9d55['id']),await _0xdbc751[_0x37b4d4(0x1e7)](tryStartCurrentSession,_0x1e9d55['id']);const _0x1d359f=process[_0x37b4d4(0x266)]['CLAUDE_SESSION_ID'];_0x1d359f&&_0xdbc751['beoqp'](registerSession,_0x1d359f,_0x1e9d55['id']),console['log'](_0x37b4d4(0x244)+_0x1e9d55['id']),displayFeature(_0x1e9d55,_0x1e9d55['checklistItems']),console['log'](_0x37b4d4(0x203));}export async function featureList(_0x2ca3fc){const _0x27a007=_0x4bac,_0x59dde3={'ZciFh':function(_0x803544){return _0x803544();},'RkkbC':function(_0x23d427,_0x144a32){return _0x23d427(_0x144a32);},'NHTLe':function(_0x451862,_0x43044b){return _0x451862>_0x43044b;},'WoVID':'\x20--include-deleted'},_0x4fcddf={'limit':_0x2ca3fc['limit']??0xa,'offset':_0x2ca3fc['offset']??0x0,'includeDeleted':_0x2ca3fc[_0x27a007(0x1d5)]};_0x2ca3fc[_0x27a007(0x1de)]&&(_0x4fcddf[_0x27a007(0x261)]=getGitRepoUrl(),_0x4fcddf[_0x27a007(0x22a)]=_0x59dde3[_0x27a007(0x226)](getGitBranch));const _0x11f637=await _0x59dde3['RkkbC'](listFeatures,_0x4fcddf);if(_0x11f637['items']['length']===0x0){console[_0x27a007(0x217)]('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x5ca8a3=_0x59dde3[_0x27a007(0x1f6)](_0x11f637['totalCount'],_0x11f637['items']['length'])?_0x27a007(0x27e)+_0x11f637[_0x27a007(0x1e3)][_0x27a007(0x1eb)]+_0x27a007(0x250)+_0x11f637[_0x27a007(0x252)]:_0x11f637[_0x27a007(0x252)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x5ca8a3+':\x0a');for(const _0x5ca130 of _0x11f637[_0x27a007(0x1e3)]){const _0x1e8a4b='0|3|2|4|1|5'[_0x27a007(0x23c)]('|');let _0x497f72=0x0;while(!![]){switch(_0x1e8a4b[_0x497f72++]){case'0':console[_0x27a007(0x217)](''+_0x5ca130[_0x27a007(0x259)]);continue;case'1':console['log'](_0x27a007(0x1e2)+new Date(_0x5ca130['createdAt'])[_0x27a007(0x234)]());continue;case'2':_0x5ca130['stats']&&console[_0x27a007(0x217)]('\x20\x20\x20Progress:\x20'+_0x59dde3['RkkbC'](getProgressDisplay,_0x5ca130['stats']));continue;case'3':console['log']('\x20\x20\x20ID:\x20'+_0x5ca130['id']);continue;case'4':_0x5ca130['gitBranch']&&console[_0x27a007(0x217)](_0x27a007(0x20f)+_0x5ca130['gitBranch']);continue;case'5':console[_0x27a007(0x217)]('');continue;}break;}}const _0x1ce94a=_0x4fcddf[_0x27a007(0x1fc)]??0xa,_0x177e3a=(_0x4fcddf[_0x27a007(0x27d)]??0x0)+_0x11f637['items'][_0x27a007(0x1eb)];if(_0x177e3a<_0x11f637['totalCount']){const _0x528ac0=_0x1ce94a!==0xa?'\x20--limit\x20'+_0x1ce94a:'',_0xc4f2d3=_0x2ca3fc['currentBranch']?'\x20--current-branch':'',_0x45eada=_0x2ca3fc[_0x27a007(0x1d5)]?_0x59dde3['WoVID']:'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x177e3a+_0x528ac0+_0xc4f2d3+_0x45eada);}}export async function featureShow(_0x3c74f0){const _0x32bc72={'VywLT':function(_0x347bf3,_0x1aca6d){return _0x347bf3(_0x1aca6d);},'QyjSM':function(_0x413785,_0x524d3f,_0x3b4c0c){return _0x413785(_0x524d3f,_0x3b4c0c);}},_0x27e693=_0x3c74f0||await getActiveFeatureId();if(!_0x27e693)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 _0x2f3367=await _0x32bc72['VywLT'](getFeature,_0x27e693);_0x32bc72['QyjSM'](displayFeature,_0x2f3367,_0x2f3367['checklistItems']);}export async function featureResume(_0x9be4f5){const _0x26b193=_0x4bac,_0x577ce1={'dWdxa':function(_0x192b1d,_0x495744){return _0x192b1d(_0x495744);},'wlrPq':function(_0x2086a9,_0xd5048b){return _0x2086a9(_0xd5048b);},'khjKo':function(_0x2b1e74){return _0x2b1e74();},'fYOJn':function(_0x3f2087,_0x1934f6,_0x15638a){return _0x3f2087(_0x1934f6,_0x15638a);},'kgNCl':function(_0x476257){return _0x476257();},'KAbyQ':function(_0x16615b){return _0x16615b();},'opDnV':function(_0x2c50c9,_0x8c0dd6){return _0x2c50c9&&_0x8c0dd6;},'cmfgH':function(_0x5b264f,_0x4cff2b){return _0x5b264f||_0x4cff2b;},'SiDaa':function(_0x4b1a30,_0x243381){return _0x4b1a30===_0x243381;},'vsNTY':_0x26b193(0x1d4),'fxwGU':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','hBbJp':'list','cTGDm':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','wHSRX':function(_0x33a66e,_0x22bee4){return _0x33a66e!==_0x22bee4;},'PjSBm':function(_0x43af52,_0x1bc5e5){return _0x43af52(_0x1bc5e5);},'UYSRZ':function(_0x3db589,_0x55d17b,_0x512bb0){return _0x3db589(_0x55d17b,_0x512bb0);}};if(_0x9be4f5){const _0x38c364=await _0x577ce1['dWdxa'](getFeature,_0x9be4f5);await _0x577ce1[_0x26b193(0x211)](setActiveFeatureId,_0x38c364['id']);const _0xe38918=_0x577ce1['khjKo'](getGitBranch);_0xe38918&&_0xe38918!==_0x38c364['gitBranch']&&(await _0x577ce1[_0x26b193(0x269)](updateFeature,_0x38c364['id'],{'gitBranch':_0xe38918}),console['log'](_0x26b193(0x23b)+_0xe38918));console[_0x26b193(0x217)](_0x26b193(0x24f)+_0x38c364['name']+'\x20('+_0x38c364['id']+')'),await tryStartCurrentSession(_0x38c364['id']);const _0x1c59c1=process[_0x26b193(0x266)][_0x26b193(0x20b)];_0x1c59c1&&registerSession(_0x1c59c1,_0x38c364['id']);_0x577ce1['fYOJn'](displayFeature,_0x38c364,_0x38c364['checklistItems']),await printFeedbackNudge(_0x38c364['id']);return;}const _0x4a75c1=_0x577ce1['kgNCl'](getGitRepoUrl),_0x2a3259=_0x577ce1['KAbyQ'](getGitBranch);if(_0x577ce1[_0x26b193(0x282)](!_0x4a75c1,!_0x2a3259))throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x26b193(0x217)](_0x26b193(0x1d3)+_0x577ce1[_0x26b193(0x274)](_0x4a75c1,'any')+_0x26b193(0x1fa)+(_0x2a3259||_0x26b193(0x295))+'...');const _0x273926=await listFeatures({'gitRepoUrl':_0x4a75c1,'gitBranch':_0x2a3259}),_0x30c538=_0x273926[_0x26b193(0x1e3)][_0x26b193(0x278)](_0x4b43f8=>!_0x4b43f8['completedAt']);if(_0x577ce1['SiDaa'](_0x30c538['length'],0x0)){console[_0x26b193(0x217)](_0x26b193(0x214)),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x21f8ee;if(_0x30c538[_0x26b193(0x1eb)]===0x1)_0x21f8ee=_0x30c538[0x0];else{const _0x1b1786=process[_0x26b193(0x1fd)][_0x26b193(0x258)]&&process['stdout']['isTTY'];if(!_0x1b1786){console['log'](_0x577ce1['vsNTY']);for(const _0x12e252 of _0x30c538){console[_0x26b193(0x217)]('\x20\x20'+_0x12e252[_0x26b193(0x259)]),console[_0x26b193(0x217)](_0x26b193(0x27a)+_0x12e252['id']),_0x12e252[_0x26b193(0x1e0)]&&console[_0x26b193(0x217)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x12e252[_0x26b193(0x1e0)])),_0x12e252[_0x26b193(0x22a)]&&console[_0x26b193(0x217)](_0x26b193(0x1e9)+_0x12e252[_0x26b193(0x22a)]);}throw new Error(_0x577ce1['fxwGU']);}const {selected:_0x172c29}=await _0x5eeedd[_0x26b193(0x287)]([{'type':_0x577ce1['hBbJp'],'name':'selected','message':_0x577ce1[_0x26b193(0x27f)],'choices':_0x30c538['map'](_0x148036=>({'name':_0x148036['name']+'\x20('+_0x148036['id']+')','value':_0x148036['id']}))}]);_0x21f8ee=_0x30c538[_0x26b193(0x223)](_0xae5d51=>_0xae5d51['id']===_0x172c29);}await setActiveFeatureId(_0x21f8ee['id']);_0x2a3259&&_0x577ce1[_0x26b193(0x28c)](_0x2a3259,_0x21f8ee[_0x26b193(0x22a)])&&(await _0x577ce1[_0x26b193(0x269)](updateFeature,_0x21f8ee['id'],{'gitBranch':_0x2a3259}),console['log'](_0x26b193(0x23b)+_0x2a3259));console[_0x26b193(0x217)](_0x26b193(0x24f)+_0x21f8ee['name']+'\x20('+_0x21f8ee['id']+')'),await _0x577ce1[_0x26b193(0x263)](tryStartCurrentSession,_0x21f8ee['id']);const _0x2e1052=await getFeature(_0x21f8ee['id']),_0x12f70f=process['env'][_0x26b193(0x20b)];_0x12f70f&&_0x577ce1['fYOJn'](registerSession,_0x12f70f,_0x2e1052['id']),_0x577ce1[_0x26b193(0x24d)](displayFeature,_0x2e1052,_0x2e1052[_0x26b193(0x28a)]),await _0x577ce1['PjSBm'](printFeedbackNudge,_0x2e1052['id']);}async function printFeedbackNudge(_0x52d0cd){const _0x5d2015=_0x4bac,_0x2ebf44={'SzVaZ':function(_0x53358b,_0x5dfa68){return _0x53358b(_0x5dfa68);},'oSpbk':function(_0x4932b8,_0x5a516c,_0x1d8337){return _0x4932b8(_0x5a516c,_0x1d8337);},'owUen':function(_0x333178,_0x4cf818){return _0x333178>_0x4cf818;}};try{const {items:_0x5f263a}=await _0x2ebf44[_0x5d2015(0x1db)](getActionItems,_0x52d0cd);let _0x40c291=0x0,_0x31cfcb=0x0;for(const _0x5e5b1b of _0x5f263a){const _0x33d70b=await _0x2ebf44['oSpbk'](getItemFeedback,_0x52d0cd,_0x5e5b1b['id']);_0x33d70b['unaddressedComments']['length']>0x0&&(_0x40c291+=_0x33d70b[_0x5d2015(0x27c)]['length'],_0x31cfcb++);}_0x2ebf44['owUen'](_0x40c291,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x40c291+_0x5d2015(0x216)+_0x31cfcb+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x495c57){const _0x5be9c4=_0x4bac,_0x2806da={'wWjNK':function(_0x1de292,_0x24a16a){return _0x1de292(_0x24a16a);},'fkqOV':function(_0x4f0e7e,_0x5b53a5,_0x415d6a){return _0x4f0e7e(_0x5b53a5,_0x415d6a);}};try{const {sessions:_0x52e362}=await _0x2806da[_0x5be9c4(0x1ed)](listFeatureSessions,_0x495c57),_0x4a154a=_0x52e362['find'](_0x48cca9=>_0x48cca9[_0x5be9c4(0x25b)]==='ready');_0x4a154a&&(await _0x2806da['fkqOV'](startSession,_0x495c57,_0x4a154a['id']),console['log'](_0x5be9c4(0x1df)+_0x4a154a[_0x5be9c4(0x238)]));}catch{}}export async function featureReport(_0xe0f39c,_0x619ffe){const _0x34894e=_0x4bac,_0x3daf44={'EJwgD':'\x0aGenerating\x20report...','ScbdB':function(_0x35316c,_0x291a28,_0x466976,_0x443da8){return _0x35316c(_0x291a28,_0x466976,_0x443da8);},'QdTEy':'reports','TqUrZ':function(_0x2474e6,_0x6d4a73,_0x4e3880){return _0x2474e6(_0x6d4a73,_0x4e3880);}},_0x1f45a1=_0xe0f39c||await getActiveFeatureId();if(!_0x1f45a1)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log'](_0x3daf44['EJwgD']);const _0x5961f1=await getFeatureReportMarkdown(_0x1f45a1,{'style':_0x619ffe['style']}),_0x5f37d6=_0x619ffe['output']||_0x3daf44[_0x34894e(0x21c)](join,getRangerDir(),_0x3daf44['QdTEy'],_0x1f45a1+_0x34894e(0x276)),_0x4a67e0=join(_0x5f37d6,'..');!existsSync(_0x4a67e0)&&await _0x3daf44['TqUrZ'](mkdir,_0x4a67e0,{'recursive':!![]}),await writeFile(_0x5f37d6,_0x5961f1,_0x34894e(0x243)),console[_0x34894e(0x217)]('\x0a✅\x20Report\x20generated:\x20'+_0x5f37d6);}function getScenarioResult(_0x2c8ad0){const _0x245d74=_0x4bac,_0x50e619={'IHhru':'closed','nBGeK':function(_0x3aa5b7,_0x4978a0){return _0x3aa5b7===_0x4978a0;}};if(_0x2c8ad0['status']===_0x50e619[_0x245d74(0x23e)])return _0x2c8ad0['terminalReason']??_0x50e619['IHhru'];if(_0x50e619['nBGeK'](_0x2c8ad0[_0x245d74(0x25b)],_0x245d74(0x28b)))return'in_progress';return _0x2c8ad0[_0x245d74(0x25b)];}function getScenarioRationale(_0x5b554e,_0x2bbbfd){const _0x405c76=_0x4bac;if(_0x2bbbfd)return _0x2bbbfd;if(_0x5b554e[_0x405c76(0x279)])return _0x5b554e[_0x405c76(0x279)];if(_0x5b554e['incompleteReason'])return _0x5b554e['incompleteReason'];if(_0x5b554e[_0x405c76(0x1ec)])return _0x5b554e['canceledReason'];if(_0x5b554e['notes'])return _0x5b554e[_0x405c76(0x26b)];return null;}export async function featureReportPrDescription(_0x1316d4,_0x341bff){const _0x3b07f7=_0x4bac,_0x44e857={'mUyfI':function(_0x1a8172){return _0x1a8172();},'AnGgC':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','hLEIS':function(_0x526000,_0x48fea0){return _0x526000>_0x48fea0;},'CDQEu':'\x0aAvailable\x20scenarios:','lUjtT':function(_0x5cfdef,_0x1f52fe){return _0x5cfdef<_0x1f52fe;},'VlXBt':function(_0x295673,_0x31adb4){return _0x295673+_0x31adb4;},'iEsQx':function(_0x183076,_0x26b2c3){return _0x183076===_0x26b2c3;},'uQWal':_0x3b07f7(0x270)},_0x5853c6=_0x1316d4||await _0x44e857['mUyfI'](getActiveFeatureId);if(!_0x5853c6)throw new Error(_0x44e857['AnGgC']);const _0x519407=await getFeature(_0x5853c6),_0xc5bf79=_0x519407['checklistItems']||[],_0x2ec963=getCurrentSessionItems(_0x519407,_0xc5bf79);_0x2ec963['length']===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process[_0x3b07f7(0x1f5)](0x1));const _0x12eee9=_0x341bff[_0x3b07f7(0x1d7)]??[],_0x3be1d1=_0x12eee9[_0x3b07f7(0x278)](_0x34c2f7=>!Number['isInteger'](_0x34c2f7)||_0x34c2f7<0x1||_0x34c2f7>_0x2ec963['length']);if(_0x44e857['hLEIS'](_0x3be1d1[_0x3b07f7(0x1eb)],0x0)){console['error'](_0x3b07f7(0x292)+_0x3be1d1['join'](',\x20')),console[_0x3b07f7(0x217)](_0x44e857[_0x3b07f7(0x21b)]);for(let _0x270b4f=0x0;_0x44e857['lUjtT'](_0x270b4f,_0x2ec963[_0x3b07f7(0x1eb)]);_0x270b4f++){console['log']('\x20\x20'+_0x44e857['VlXBt'](_0x270b4f,0x1)+'.\x20'+_0x2ec963[_0x270b4f]['description']);}process['exit'](0x1);}const _0x429286=new Set(_0x12eee9[_0x3b07f7(0x294)](_0x3001bb=>_0x3001bb-0x1)),_0x5e0bdb=_0x2ec963[_0x3b07f7(0x278)]((_0x123b6f,_0x371742)=>!_0x429286[_0x3b07f7(0x21d)](_0x371742));_0x44e857[_0x3b07f7(0x268)](_0x5e0bdb['length'],0x0)&&(console[_0x3b07f7(0x232)](_0x44e857[_0x3b07f7(0x273)]),process['exit'](0x1));if(_0x341bff[_0x3b07f7(0x22b)])await outputJsonReport(_0x5853c6,_0x519407,_0x5e0bdb);else{const _0x3f2d77=await getFeatureReportMarkdown(_0x5853c6,{'itemIds':_0x5e0bdb[_0x3b07f7(0x294)](_0x27eb56=>_0x27eb56['id'])});process['stdout']['write'](_0x3f2d77[_0x3b07f7(0x208)]()+'\x0a');}}async function outputJsonReport(_0x4bb312,_0x49fe4a,_0x188d9e){const _0x3a0b7a=_0x4bac,_0x44f1e2={'UJEFm':function(_0x1a73d7,_0x3996e3){return _0x1a73d7+_0x3996e3;}},_0x4029e2=getApiBaseUrl(),_0x49b981=await getFeatureReport(_0x4bb312),_0x172048=new Map(_0x49b981['checklistItems'][_0x3a0b7a(0x294)](_0x25758a=>[_0x25758a['id'],_0x25758a])),_0x48a789=await Promise['all'](_0x188d9e['map'](async _0xbb3916=>{const _0x5e3acb=_0x3a0b7a,_0x204174=_0x172048['get'](_0xbb3916['id']),_0x5b12b4=_0x204174?.['linkedSession']??null;let _0xdfb4b8=[];if(_0xbb3916[_0x5e3acb(0x1e5)])try{const {steps:_0x51b9fc}=await getBrowserSessionSteps(_0xbb3916['browserSessionId']);_0x51b9fc[_0x5e3acb(0x1eb)]>0x0&&(_0xdfb4b8=_0x51b9fc[_0x5e3acb(0x294)](_0x162c81=>{const _0x3df8a8=_0x5e3acb,_0x2d9739=_0x162c81['assets']['find'](_0x510544=>_0x510544[_0x3df8a8(0x1d9)]==='screenshot'&&_0x510544['timing']===_0x3df8a8(0x219))??_0x162c81['assets']['find'](_0x408ca9=>_0x408ca9[_0x3df8a8(0x1d9)]==='screenshot');let _0x50e754=null,_0x567436=null;if(_0x2d9739){const _0x50ee0e=_0x2d9739[_0x3df8a8(0x241)][_0x3df8a8(0x1f8)]['split']('/')[_0x3df8a8(0x229)]();_0x50e754=_0x4029e2+_0x3df8a8(0x1f1)+_0xbb3916['browserSessionId']+_0x3df8a8(0x255)+_0x50ee0e,_0x50ee0e&&(_0x567436=_0x50ee0e['replace'](/\.\w+$/,'')[_0x3df8a8(0x277)](/^(key_)?\d+_/,'')[_0x3df8a8(0x277)](/[-_]/g,'\x20'));}return{'description':_0x567436||_0x162c81['description']||_0x162c81[_0x3df8a8(0x254)]||_0x3df8a8(0x272)+_0x162c81['position'],'screenshot':_0x50e754,'is_key_step':_0x162c81[_0x3df8a8(0x249)]};}));}catch{}return _0xdfb4b8[_0x5e3acb(0x1eb)]===0x0&&_0x5b12b4?.[_0x5e3acb(0x215)]&&(_0xdfb4b8=_0x5b12b4['screenshotUrls'][_0x5e3acb(0x294)]((_0x5cc215,_0x31a99e)=>({'description':'Screenshot\x20'+(_0x31a99e+0x1),'screenshot':_0x5cc215,'is_key_step':![]}))),{'description':_0xbb3916[_0x5e3acb(0x1d6)],'result':getScenarioResult(_0xbb3916),'rationale':getScenarioRationale(_0xbb3916,_0x5b12b4?.['agentResponse']),'steps':_0xdfb4b8};})),_0x408681={'url':_0x49fe4a[_0x3a0b7a(0x251)],'scenarios':_0x48a789};process['stdout']['write'](_0x44f1e2['UJEFm'](JSON[_0x3a0b7a(0x212)](_0x408681,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x22d79d){const _0x55916b=_0x4bac,_0x4d655e={'wYhkl':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','HTBMo':'completed','fPfvW':function(_0x43a34b,_0x12c35a){return _0x43a34b!==_0x12c35a;},'jNINu':'\x0aConcluding\x20session...','bVPnX':function(_0x587542,_0x3c5847,_0x3a5da9){return _0x587542(_0x3c5847,_0x3a5da9);}},_0x3cdb38=_0x22d79d||await getActiveFeatureId();if(!_0x3cdb38)throw new Error(_0x55916b(0x280));const _0x2c89ed=await getFeature(_0x3cdb38);if(!_0x2c89ed['currentSessionId'])throw new Error(_0x4d655e[_0x55916b(0x224)]);const {sessions:_0x4b1aca}=await listFeatureSessions(_0x3cdb38),_0x1c5248=_0x4b1aca[_0x55916b(0x223)](_0x29a8d6=>_0x29a8d6['id']===_0x2c89ed['currentSessionId']);if(!_0x1c5248)throw new Error('Current\x20session\x20not\x20found.');if(_0x1c5248['status']===_0x4d655e['HTBMo']){console[_0x55916b(0x217)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x4d655e['fPfvW'](_0x1c5248[_0x55916b(0x25b)],_0x55916b(0x286)))throw new Error(_0x55916b(0x1e4)+_0x1c5248[_0x55916b(0x25b)]);console[_0x55916b(0x217)](_0x4d655e['jNINu']),await _0x4d655e[_0x55916b(0x22f)](concludeSession,_0x3cdb38,_0x2c89ed['currentSessionId']),console['log'](_0x55916b(0x283)+_0x1c5248[_0x55916b(0x238)]+'\x20concluded.'),console['log'](_0x55916b(0x296));}export async function featureSessions(_0x1b6aa7){const _0x3fa419=_0x4bac,_0x307658={'mKDGc':function(_0x25d587,_0x1bb34c){return _0x25d587(_0x1bb34c);},'PAcPC':function(_0x21c725,_0x5c88c3){return _0x21c725===_0x5c88c3;},'SgtEt':function(_0x3531b7,_0x3e5863){return _0x3531b7===_0x3e5863;}},_0x5555d2=_0x1b6aa7||await getActiveFeatureId();if(!_0x5555d2)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x5a97e0=await getFeature(_0x5555d2);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x5a97e0['name']+'\x0a');const {sessions:_0x464da5}=await _0x307658['mKDGc'](listFeatureSessions,_0x5555d2);if(_0x464da5[_0x3fa419(0x1eb)]===0x0){console['log'](_0x3fa419(0x1f3));return;}for(const _0x5352da of _0x464da5){const _0x3fe2bf=_0x307658['PAcPC'](_0x5352da[_0x3fa419(0x25b)],'completed')?'✅':_0x307658['SgtEt'](_0x5352da['status'],'in_progress')?'🔄':'▶️';console['log'](_0x3fe2bf+_0x3fa419(0x1ef)+_0x5352da['iteration']+'\x20('+_0x5352da['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x5352da[_0x3fa419(0x25b)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x5352da[_0x3fa419(0x1dd)])['toLocaleString']()),_0x5352da[_0x3fa419(0x23d)]&&console['log'](_0x3fa419(0x233)+new Date(_0x5352da[_0x3fa419(0x23d)])['toLocaleString']()),console[_0x3fa419(0x217)]('');}}export async function featureAddScenario(_0x409b71,_0x241387){const _0x448804=_0x4bac,_0x46545b={'oPxVv':function(_0x5d7d14,_0x16083b){return _0x5d7d14(_0x16083b);},'UQkXm':function(_0x3f4b35,_0x18529c,_0x4caaca){return _0x3f4b35(_0x18529c,_0x4caaca);},'eVkTC':function(_0x2dd909,_0x14288d,_0xd2b13){return _0x2dd909(_0x14288d,_0xd2b13);}},_0x59529f=_0x241387||await getActiveFeatureId();if(!_0x59529f)throw new Error(_0x448804(0x280));const _0x43a7ce=await _0x46545b['oPxVv'](getFeature,_0x59529f);if(_0x43a7ce[_0x448804(0x20d)]&&!_0x43a7ce['latestReview'][_0x448804(0x26e)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x43a7ce[_0x448804(0x251)]);await _0x46545b['UQkXm'](createChecklistItem,_0x59529f,_0x409b71);const _0x4303d9=await getFeature(_0x59529f);console['log'](_0x448804(0x25a)),_0x46545b[_0x448804(0x1da)](displayFeature,_0x4303d9,_0x4303d9[_0x448804(0x28a)]);}export async function featureEditScenario(_0x46ee19,_0x4aea8f){const _0x25845a=_0x4bac,_0x1d71c0={'mKPyy':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','LTzxp':function(_0x2b7aaf,_0x2aa91b){return _0x2b7aaf<_0x2aa91b;},'jVqXG':function(_0x3df8b2,_0x3e000f){return _0x3df8b2+_0x3e000f;},'rCDhq':function(_0x17d7a5,_0x4518b4,_0x599ca1,_0x452cde){return _0x17d7a5(_0x4518b4,_0x599ca1,_0x452cde);},'IRMiM':function(_0x196992,_0x4f3091,_0xe9e817){return _0x196992(_0x4f3091,_0xe9e817);}},_0x2ed92c=_0x4aea8f['id']||await getActiveFeatureId();!_0x2ed92c&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x25845a(0x232)](_0x1d71c0['mKPyy']),process[_0x25845a(0x1f5)](0x1));const _0x52a710=await getFeature(_0x2ed92c);_0x52a710['latestReview']&&!_0x52a710['latestReview']['submittedAt']&&(console[_0x25845a(0x232)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x25845a(0x232)]('Please\x20finish\x20your\x20review\x20first:'),console[_0x25845a(0x232)]('\x20\x20'+_0x52a710['dashboardUrl']),process['exit'](0x1));const _0xbd74e5=_0x52a710['checklistItems']||[];_0xbd74e5['length']===0x0&&(console[_0x25845a(0x232)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x25845a(0x1f5)](0x1));if(_0x4aea8f['scenario']===undefined){console[_0x25845a(0x232)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x25845a(0x285));for(let _0x3872e0=0x0;_0x3872e0<_0xbd74e5[_0x25845a(0x1eb)];_0x3872e0++){console['log']('\x20\x20'+(_0x3872e0+0x1)+'.\x20'+_0xbd74e5[_0x3872e0]['description']);}process[_0x25845a(0x1f5)](0x1);}const _0x1d0716=_0x4aea8f['scenario']-0x1;if(_0x1d0716<0x0||_0x1d0716>=_0xbd74e5['length']){console[_0x25845a(0x232)](_0x25845a(0x297)+_0x4aea8f[_0x25845a(0x23f)]+'.\x20Feature\x20review\x20has\x20'+_0xbd74e5[_0x25845a(0x1eb)]+'\x20scenarios.'),console['log'](_0x25845a(0x285));for(let _0x4354e4=0x0;_0x1d71c0['LTzxp'](_0x4354e4,_0xbd74e5['length']);_0x4354e4++){console[_0x25845a(0x217)]('\x20\x20'+_0x1d71c0[_0x25845a(0x204)](_0x4354e4,0x1)+'.\x20'+_0xbd74e5[_0x4354e4][_0x25845a(0x1d6)]);}process[_0x25845a(0x1f5)](0x1);}const _0xf6e59a=_0xbd74e5[_0x1d0716];await _0x1d71c0[_0x25845a(0x20e)](updateChecklistItem,_0x2ed92c,_0xf6e59a['id'],{'description':_0x46ee19});const _0x160bb0=await getFeature(_0x2ed92c);console['log']('\x0a✅\x20Scenario\x20updated'),_0x1d71c0[_0x25845a(0x256)](displayFeature,_0x160bb0,_0x160bb0['checklistItems']);}function _0x58f3(){const _0x5ab8f0=['pMkcS','iteration','verificationInProgressItems','warn','\x20\x20\x20Updated\x20branch\x20to:\x20','split','completedAt','IHhru','scenario','blocked','storage','push','utf-8','\x0a✅\x20Feature\x20review\x20created:\x20','gMjgi','YBgLI','toFixed','5pQBNBW','isKeyStep','13649650PBZeug','UKiNh','Qkkwl','UYSRZ','domRef','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x20of\x20','dashboardUrl','totalCount','verifiedItems','stepName','/artifacts/','IRMiM','join','isTTY','name','\x0a✅\x20Scenario\x20added','status','pipe','97252vzTWIO','LIxqi','\x20>\x20','No\x20scenarios\x20found.','gitRepoUrl','yzdai','PjSBm','parentItemId','authorName','env','\x20\x20💬\x20','iEsQx','fYOJn','git\x20remote\x20get-url\x20origin','notes','\x20—\x20no\x20comments','comment_','submittedAt','blockedItems','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','VRSum','Step\x20','uQWal','cmfgH','2634270reZpWn','.md','replace','filter','blockedReason','\x20\x20\x20\x20\x20ID:\x20','type','unaddressedComments','offset','Showing\x20','cTGDm','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review',':\x20\x22','opDnV','\x0a✅\x20Session\x20','FnSmD','\x0aAvailable\x20scenarios:','in_progress','prompt','YaNgO','\x20\x20\x20\x20\x20\x20Blocked:\x20','checklistItems','verification_in_progress','wHSRX','\x20\x20\x20Description:\x20','30569XwTLQL','ylzFf','MvAPo','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','trim','map','any','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','includeDeleted','description','excludeScenarios','\x20\x20Expected\x20flow:','assetType','eVkTC','SzVaZ','nDROA','createdAt','currentBranch','\x20\x20\x20▶️\x20Started\x20session\x20','stats','canonicalFlow','\x20\x20\x20Created:\x20','items','Cannot\x20conclude\x20session\x20with\x20status:\x20','browserSessionId','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','Axpsc','hOXDX','\x20\x20\x20\x20\x20Branch:\x20','GSbOC','length','canceledReason','wWjNK','11SHZCxN','\x20Session\x20','GjcFF','/api/v1/mcp/browser-sessions/','1534396RGoAAC','No\x20sessions\x20found.','scenarios','exit','NHTLe','FGnSK','location','nWrwc','\x20/\x20','gZAnc','limit','stdin','31nppZFi','78FzqOVr','content','UomeD','sfmHP','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','jVqXG','xDRrl','closed','8777840nyZIHq','trimEnd','git\x20rev-parse\x20--abbrev-ref\x20HEAD','8011287VTiLtv','CLAUDE_SESSION_ID','\x20incomplete','latestReview','rCDhq','\x20\x20\x20Branch:\x20','terminalReason','wlrPq','stringify','rSEwg','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','screenshotUrls','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','log','uMCOs','after','version','CDQEu','ScbdB','has','GhmJT','IuFos','sessionId','\x20\x20\x20','):\x20\x22','find','wYhkl','slice','ZciFh','\x20at\x20[','spatial','pop','gitBranch','json','Scenario\x20','feedback-images','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','bVPnX','TsGQs','\x20\x20\x20\x20\x20📋\x20Selector:\x20','error','\x20\x20\x20Completed:\x20','toLocaleDateString','\x20\x20\x20\x20\x20\x20Approved','\x20\x20\x20\x20\x20\x20Incomplete:\x20'];_0x58f3=function(){return _0x5ab8f0;};return _0x58f3();}async function downloadFeedbackImage(_0x159d49,_0x262ccc){const _0x4e268f=_0x4bac,_0x49a552={'cjMui':function(_0x2e4fed){return _0x2e4fed();},'sVfoL':function(_0x59cb25,_0x183eae,_0x108a8e){return _0x59cb25(_0x183eae,_0x108a8e);},'okSgs':function(_0x37f55c,_0x27b82e){return _0x37f55c(_0x27b82e);}};try{const _0xa8dd94=join(_0x49a552['cjMui'](getRangerDir),_0x4e268f(0x22d));await mkdir(_0xa8dd94,{'recursive':!![]});const _0x3dcb83=_0x49a552['sVfoL'](join,_0xa8dd94,_0x4e268f(0x26d)+_0x262ccc+'.png'),_0x2b4ca0=await _0x49a552['okSgs'](fetch,_0x159d49);if(!_0x2b4ca0['ok'])return null;const _0x4e1fa1=Buffer['from'](await _0x2b4ca0['arrayBuffer']());return await _0x49a552['sVfoL'](writeFile,_0x3dcb83,_0x4e1fa1),_0x3dcb83;}catch{return null;}}export async function featureGetReview(_0x588db5){const _0x357ae3=_0x4bac,_0x4e196e={'yzdai':function(_0x1ce15c){return _0x1ce15c();},'RjWPJ':_0x357ae3(0x280),'UKiNh':function(_0x21f8f9,_0x195347){return _0x21f8f9===_0x195347;},'GSbOC':function(_0x2de0a3,_0x4f11ea){return _0x2de0a3<_0x4f11ea;},'VRSum':function(_0x3dc53a,_0x49868c){return _0x3dc53a>_0x49868c;},'TnrSf':'short','Qkkwl':function(_0xd46888,_0x4fe061,_0x6eb17b){return _0xd46888(_0x4fe061,_0x6eb17b);},'vwzeu':_0x357ae3(0x25f),'lntxY':'element','eoeJP':function(_0x1f0e8f,_0x43028c){return _0x1f0e8f===_0x43028c;},'nDROA':function(_0x40c575,_0x449d5f){return _0x40c575>=_0x449d5f;},'uXuIw':function(_0x27b689,_0x103605){return _0x27b689+_0x103605;}},_0x212abd=_0x588db5||await _0x4e196e[_0x357ae3(0x262)](getActiveFeatureId);if(!_0x212abd)throw new Error(_0x4e196e['RjWPJ']);const _0x420a6b=await getFeature(_0x212abd),{items:_0xea0c12}=await getActionItems(_0x212abd);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x420a6b[_0x357ae3(0x259)]+'\x20('+_0x420a6b['id']+')\x0a');if(_0x4e196e[_0x357ae3(0x24b)](_0xea0c12[_0x357ae3(0x1eb)],0x0)){console[_0x357ae3(0x217)](_0x357ae3(0x260));return;}for(let _0x1f9f36=0x0;_0x4e196e[_0x357ae3(0x1ea)](_0x1f9f36,_0xea0c12[_0x357ae3(0x1eb)]);_0x1f9f36++){const _0x419e24=_0xea0c12[_0x1f9f36],_0x4a020f=_0x4e196e[_0x357ae3(0x271)](_0x419e24[_0x357ae3(0x21a)],0x1)?'\x20(v'+_0x419e24['version']+')':'',_0x24ecb7=await getItemFeedback(_0x212abd,_0x419e24['id']);if(_0x24ecb7['unaddressedComments']['length']>0x0){console[_0x357ae3(0x217)](_0x357ae3(0x22c)+(_0x1f9f36+0x1)+_0x357ae3(0x281)+_0x419e24['description']+'\x22'+_0x4a020f+'\x20—\x20'+_0x24ecb7['unaddressedComments'][_0x357ae3(0x1eb)]+'\x20unaddressed\x20comment(s)');for(const _0x4c57c7 of _0x24ecb7['unaddressedComments']){const _0x3c191b=new Date(_0x4c57c7['createdAt'])[_0x357ae3(0x234)]('en-US',{'month':_0x4e196e['TnrSf'],'day':'numeric'}),_0x548f76=_0x4c57c7[_0x357ae3(0x265)]||_0x4c57c7['authorEmail']||'Unknown';console['log'](_0x357ae3(0x267)+_0x548f76+'\x20('+_0x3c191b+_0x357ae3(0x222)+_0x4c57c7[_0x357ae3(0x200)]+'\x22');if(_0x4c57c7['assetUrl']){const _0x41b4fd=await _0x4e196e[_0x357ae3(0x24c)](downloadFeedbackImage,_0x4c57c7['assetUrl'],_0x4c57c7['id']);_0x41b4fd&&console[_0x357ae3(0x217)](_0x357ae3(0x22e)+_0x41b4fd);}if(_0x4c57c7['domRef']){const _0x32bff8=_0x4c57c7[_0x357ae3(0x24e)]['selector'][_0x357ae3(0x23c)](_0x4e196e['vwzeu'])[_0x357ae3(0x229)]()?.['split'](':')[0x0]||_0x4e196e['lntxY'],_0x572dfd=_0x4c57c7['domRef']['textContent']?'\x20\x22'+_0x4c57c7[_0x357ae3(0x24e)]['textContent'][_0x357ae3(0x225)](0x0,0x3c)+'\x22':'';console[_0x357ae3(0x217)](_0x357ae3(0x291)+_0x32bff8+'>'+_0x572dfd),console[_0x357ae3(0x217)](_0x357ae3(0x231)+_0x4c57c7['domRef']['selector']);}else{if(_0x4c57c7['spatial']){const _0x21b33f=_0x4c57c7[_0x357ae3(0x228)]['coordinates'];_0x4e196e['eoeJP'](_0x4c57c7[_0x357ae3(0x228)][_0x357ae3(0x27b)],'point')&&_0x4e196e[_0x357ae3(0x1dc)](_0x21b33f['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x21b33f[0x0][_0x357ae3(0x247)](0x2)+',\x20'+_0x21b33f[0x1]['toFixed'](0x2)+')'):console['log'](_0x357ae3(0x1e6)+_0x4c57c7[_0x357ae3(0x228)]['type']+_0x357ae3(0x227)+_0x21b33f['map'](_0x114324=>_0x114324['toFixed'](0x2))[_0x357ae3(0x257)](',\x20')+']');}}}if(_0x24ecb7[_0x357ae3(0x1e1)]){console['log'](_0x357ae3(0x1d8));for(const _0x12b908 of _0x24ecb7['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x12b908);}}}else console[_0x357ae3(0x217)]('Scenario\x20'+_0x4e196e['uXuIw'](_0x1f9f36,0x1)+':\x20\x22'+_0x419e24['description']+'\x22'+_0x4a020f+_0x357ae3(0x26c)),console[_0x357ae3(0x217)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x566bb7){const _0x1f34d6=_0x4bac,_0x53b8c5={'ylzFf':function(_0x138238){return _0x138238();},'hoRrR':function(_0x70850f,_0x45c7ab){return _0x70850f(_0x45c7ab);},'GhmJT':function(_0x5d1748,_0x5d3021){return _0x5d1748+_0x5d3021;},'TsGQs':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x2366d9=_0x566bb7||await _0x53b8c5[_0x1f34d6(0x28f)](getActiveFeatureId);if(!_0x2366d9)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 _0x44e9ea=await getFeature(_0x2366d9);await _0x53b8c5['hoRrR'](softDeleteFeature,_0x2366d9),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x44e9ea[_0x1f34d6(0x259)]+'\x20('+_0x2366d9+')'),console['log'](_0x53b8c5[_0x1f34d6(0x21e)](_0x53b8c5[_0x1f34d6(0x230)],_0x2366d9));}export async function featureRestore(_0x4a25cc){const _0x11a688=_0x4bac,_0x1dc4f1={'dZPaL':function(_0x7229e,_0x33474a){return _0x7229e(_0x33474a);},'MvAPo':function(_0x1d7a54,_0x28c654,_0xa3d168){return _0x1d7a54(_0x28c654,_0xa3d168);}};await _0x1dc4f1['dZPaL'](restoreFeature,_0x4a25cc);const _0x555d71=await getFeature(_0x4a25cc);console[_0x11a688(0x217)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x555d71[_0x11a688(0x259)]+'\x20('+_0x4a25cc+')'),_0x1dc4f1[_0x11a688(0x290)](displayFeature,_0x555d71,_0x555d71[_0x11a688(0x28a)]);}
@@ -1 +1 @@
1
- function _0x4ee5(_0x41a145,_0x5013c5){_0x41a145=_0x41a145-0x10d;const _0x315196=_0x3151();let _0x4ee5b4=_0x315196[_0x41a145];return _0x4ee5b4;}(function(_0x46d8a7,_0x20ae97){const _0x50a343=_0x4ee5,_0x537014=_0x46d8a7();while(!![]){try{const _0x43dcdb=-parseInt(_0x50a343(0x118))/0x1+-parseInt(_0x50a343(0x119))/0x2*(-parseInt(_0x50a343(0x111))/0x3)+parseInt(_0x50a343(0x10f))/0x4*(-parseInt(_0x50a343(0x116))/0x5)+-parseInt(_0x50a343(0x114))/0x6*(parseInt(_0x50a343(0x10e))/0x7)+parseInt(_0x50a343(0x10d))/0x8+parseInt(_0x50a343(0x110))/0x9+parseInt(_0x50a343(0x115))/0xa;if(_0x43dcdb===_0x20ae97)break;else _0x537014['push'](_0x537014['shift']());}catch(_0x6c05a3){_0x537014['push'](_0x537014['shift']());}}}(_0x3151,0xecae6));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x3151(){const _0x34d1f1=['apcEm','error','4194444ZKhqKY','40603070zwLjou','28850EFFUhP','keys','1750923WXKcNp','2anqHjk','Unknown\x20hook:\x20','Valid\x20hooks:\x20','5254936WwdyJf','14azpaFX','668oJSfAQ','2468070NTqoXZ','272109NfwhrJ'];_0x3151=function(){return _0x34d1f1;};return _0x3151();}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};export async function hook(_0x47c998,_0x599cf0){const _0x4bb08c=_0x4ee5,_0x3bae6d={'apcEm':function(_0x3873d6,_0x209b8d){return _0x3873d6(_0x209b8d);}},_0x46d445=HOOKS[_0x47c998];if(!_0x46d445){const _0x1e9f77=Object[_0x4bb08c(0x117)](HOOKS)['join'](',\x20');console['error'](_0x4bb08c(0x11a)+_0x47c998),console[_0x4bb08c(0x113)](_0x4bb08c(0x11b)+_0x1e9f77),process['exit'](0x1);}await _0x3bae6d[_0x4bb08c(0x112)](_0x46d445,_0x599cf0);}
1
+ (function(_0x5a318e,_0x299303){const _0x1965ac=_0x52b7,_0x887024=_0x5a318e();while(!![]){try{const _0x23b37a=-parseInt(_0x1965ac(0x140))/0x1*(parseInt(_0x1965ac(0x13f))/0x2)+-parseInt(_0x1965ac(0x142))/0x3+-parseInt(_0x1965ac(0x144))/0x4+parseInt(_0x1965ac(0x13c))/0x5*(-parseInt(_0x1965ac(0x138))/0x6)+-parseInt(_0x1965ac(0x137))/0x7*(-parseInt(_0x1965ac(0x141))/0x8)+-parseInt(_0x1965ac(0x13d))/0x9*(parseInt(_0x1965ac(0x13b))/0xa)+parseInt(_0x1965ac(0x139))/0xb;if(_0x23b37a===_0x299303)break;else _0x887024['push'](_0x887024['shift']());}catch(_0x551359){_0x887024['push'](_0x887024['shift']());}}}(_0x123d,0xc4ceb));function _0x52b7(_0x115726,_0x5c88b1){_0x115726=_0x115726-0x137;const _0x123d0e=_0x123d();let _0x52b7c3=_0x123d0e[_0x115726];return _0x52b7c3;}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 _0x123d(){const _0x41db89=['error','124870nRCNYj','6241615FPITYb','972TaQXnB','Unknown\x20hook:\x20','2354092cSDbGM','1yooVsN','4968kGhnHQ','103083OhRLbq','join','56348JDPMaf','exit','14189theoGH','6Cgydfc','37067459MJzWxb'];_0x123d=function(){return _0x41db89;};return _0x123d();}export async function hook(_0x5b3c6a,_0x3d5b76){const _0x1acac7=_0x52b7,_0x3612a4=HOOKS[_0x5b3c6a];if(!_0x3612a4){const _0x3cdec0=Object['keys'](HOOKS)[_0x1acac7(0x143)](',\x20');console['error'](_0x1acac7(0x13e)+_0x5b3c6a),console[_0x1acac7(0x13a)]('Valid\x20hooks:\x20'+_0x3cdec0),process[_0x1acac7(0x145)](0x1);}await _0x3612a4(_0x3d5b76);}
@@ -1 +1 @@
1
- const _0x7f66a2=_0x5781;(function(_0x17702c,_0x501684){const _0x519203=_0x5781,_0x11cca7=_0x17702c();while(!![]){try{const _0x4d4dde=parseInt(_0x519203(0x105))/0x1+-parseInt(_0x519203(0x110))/0x2*(parseInt(_0x519203(0x10c))/0x3)+parseInt(_0x519203(0x10d))/0x4*(parseInt(_0x519203(0x10b))/0x5)+-parseInt(_0x519203(0x10a))/0x6+-parseInt(_0x519203(0x111))/0x7*(-parseInt(_0x519203(0x106))/0x8)+-parseInt(_0x519203(0x109))/0x9*(parseInt(_0x519203(0x10f))/0xa)+-parseInt(_0x519203(0x10e))/0xb*(-parseInt(_0x519203(0x108))/0xc);if(_0x4d4dde===_0x501684)break;else _0x11cca7['push'](_0x11cca7['shift']());}catch(_0x1873a6){_0x11cca7['push'](_0x11cca7['shift']());}}}(_0x23d3,0xc0edc));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x7f66a2(0x112);export async function autoPrompt(){const _0x1b27f9=_0x7f66a2,_0x22f61e={'eOQEG':function(_0x13842d){return _0x13842d();}},_0x12f3f2=await _0x22f61e['eOQEG'](readHookInput),_0x5f1e63=_0x12f3f2?.['session_id'];if(!_0x5f1e63)return;if(isSessionEnabled(_0x5f1e63)||hasSessionBeenPrompted(_0x5f1e63))return;markSessionPrompted(_0x5f1e63),console[_0x1b27f9(0x107)](AUTO_PROMPT_TEXT);}function _0x5781(_0x2bfd2c,_0x3ed0f7){_0x2bfd2c=_0x2bfd2c-0x105;const _0x23d3dd=_0x23d3();let _0x578102=_0x23d3dd[_0x2bfd2c];return _0x578102;}function _0x23d3(){const _0x10db13=['88IBMGkL','1208760JDeDrR','1139234PtmEYm','28AHgmVC','\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.','1040545dFOAcD','2675224lPHhEP','log','851868cabfuA','27IJJMbD','7655442XuhSbZ','35QlWfkZ','6OgCiYm','355392uCzDox'];_0x23d3=function(){return _0x10db13;};return _0x23d3();}
1
+ function _0x1049(_0x4523d5,_0x587db6){_0x4523d5=_0x4523d5-0x106;const _0x4ce7d1=_0x4ce7();let _0x1049c6=_0x4ce7d1[_0x4523d5];return _0x1049c6;}(function(_0x1badbc,_0x2857c6){const _0x1f4ed8=_0x1049,_0x4fa779=_0x1badbc();while(!![]){try{const _0x184b1a=-parseInt(_0x1f4ed8(0x110))/0x1+-parseInt(_0x1f4ed8(0x108))/0x2*(-parseInt(_0x1f4ed8(0x10d))/0x3)+parseInt(_0x1f4ed8(0x10c))/0x4*(parseInt(_0x1f4ed8(0x112))/0x5)+parseInt(_0x1f4ed8(0x10f))/0x6+parseInt(_0x1f4ed8(0x10b))/0x7+-parseInt(_0x1f4ed8(0x111))/0x8+parseInt(_0x1f4ed8(0x109))/0x9*(-parseInt(_0x1f4ed8(0x10e))/0xa);if(_0x184b1a===_0x2857c6)break;else _0x4fa779['push'](_0x4fa779['shift']());}catch(_0x5d7550){_0x4fa779['push'](_0x4fa779['shift']());}}}(_0x4ce7,0x6c950));import{readHookInput}from'./output.js';function _0x4ce7(){const _0xee53dd=['BvDNK','session_id','35536ankjPj','152748XsnVFG','log','338709JWfBtP','126884nUreNy','93xcreWI','230nLrQjz','5079618EwEobk','502275lenwuz','5942680uXgSqE','100ehUtEb'];_0x4ce7=function(){return _0xee53dd;};return _0x4ce7();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\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.';export async function autoPrompt(){const _0x3a9d32=_0x1049,_0x554cbe={'BvDNK':function(_0x2e8961,_0x477350){return _0x2e8961(_0x477350);}},_0x49ee75=await readHookInput(),_0x48cb6d=_0x49ee75?.[_0x3a9d32(0x107)];if(!_0x48cb6d)return;if(isSessionEnabled(_0x48cb6d)||hasSessionBeenPrompted(_0x48cb6d))return;_0x554cbe[_0x3a9d32(0x106)](markSessionPrompted,_0x48cb6d),console[_0x3a9d32(0x10a)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x15aaad,_0x14f1db){const _0x26affb=_0x388d,_0x56af56=_0x15aaad();while(!![]){try{const _0x315c03=parseInt(_0x26affb(0x140))/0x1*(-parseInt(_0x26affb(0x148))/0x2)+-parseInt(_0x26affb(0x146))/0x3+parseInt(_0x26affb(0x14d))/0x4+-parseInt(_0x26affb(0x13c))/0x5*(-parseInt(_0x26affb(0x145))/0x6)+parseInt(_0x26affb(0x14a))/0x7+-parseInt(_0x26affb(0x149))/0x8+-parseInt(_0x26affb(0x139))/0x9*(-parseInt(_0x26affb(0x13e))/0xa);if(_0x315c03===_0x14f1db)break;else _0x56af56['push'](_0x56af56['shift']());}catch(_0x1a4db4){_0x56af56['push'](_0x56af56['shift']());}}}(_0x19aa,0xaf656));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x19aa(){const _0xbe848f=['master','117NqhiUf','KQItt','CLAUDE_SESSION_ID','5528605gUxeKe','yEJjJ','814010FJdTnQ','\x20and\x20branch\x20\x27','30994HidLvb','main','exit','error','UbVHm','6ttFoBP','2536308YddIjp','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','88qRQsZt','591344ZBNrAw','539420VscdjB','env','AcfFK','3042072pYcefp'];_0x19aa=function(){return _0xbe848f;};return _0x19aa();}function _0x388d(_0x44d5bd,_0x26d4ef){_0x44d5bd=_0x44d5bd-0x139;const _0x19aa12=_0x19aa();let _0x388d91=_0x19aa12[_0x44d5bd];return _0x388d91;}export async function disable(_0x49d55b){const _0x28dcfc=_0x388d,_0x55d289={'WwWNM':'Error:\x20No\x20session\x20ID\x20available.','IhFfC':'Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','yEJjJ':function(_0x26a516){return _0x26a516();},'AcfFK':function(_0x19ff1a,_0x50f9c0){return _0x19ff1a!==_0x50f9c0;},'KQItt':function(_0x1d18f9,_0x5c3878){return _0x1d18f9(_0x5c3878);},'UbVHm':function(_0x3eebd0,_0x24bdc9){return _0x3eebd0!==_0x24bdc9;}},_0x1812a6=_0x49d55b||process[_0x28dcfc(0x14b)][_0x28dcfc(0x13b)]||'';!_0x1812a6&&(console[_0x28dcfc(0x143)](_0x55d289['WwWNM']),console['error'](_0x55d289['IhFfC']),process[_0x28dcfc(0x142)](0x1));disableSession(_0x1812a6);const _0x176b99=_0x55d289[_0x28dcfc(0x13d)](getCurrentBranch);_0x176b99&&_0x176b99!==_0x28dcfc(0x141)&&_0x55d289[_0x28dcfc(0x14c)](_0x176b99,'master')&&_0x55d289[_0x28dcfc(0x13a)](disableBranch,_0x176b99),printBlock(_0x28dcfc(0x147)+(_0x176b99&&_0x176b99!=='main'&&_0x55d289[_0x28dcfc(0x144)](_0x176b99,_0x28dcfc(0x14e))?_0x28dcfc(0x13f)+_0x176b99+'\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(_0x35964b,_0x3ac904){const _0x4981ef=_0x128e,_0x1b2a18=_0x35964b();while(!![]){try{const _0x4a03b4=parseInt(_0x4981ef(0xd5))/0x1*(-parseInt(_0x4981ef(0xd7))/0x2)+parseInt(_0x4981ef(0xd8))/0x3+parseInt(_0x4981ef(0xd0))/0x4*(parseInt(_0x4981ef(0xd3))/0x5)+-parseInt(_0x4981ef(0xd9))/0x6+-parseInt(_0x4981ef(0xd2))/0x7*(parseInt(_0x4981ef(0xde))/0x8)+parseInt(_0x4981ef(0xd6))/0x9+parseInt(_0x4981ef(0xda))/0xa;if(_0x4a03b4===_0x3ac904)break;else _0x1b2a18['push'](_0x1b2a18['shift']());}catch(_0x1f3b95){_0x1b2a18['push'](_0x1b2a18['shift']());}}}(_0x1fb8,0x20ba3));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x1fb8(){const _0x19c0ee=['295COGtgE','.\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`.','2nBYrcy','2370195hqTilD','64822mYqalB','400617ASAaMJ','307590bWUghD','791000iBNtGz','jSDWq','CXQAQ','lSlUX','1053992BjiXjs','2552fLJzgn','master','14xFpsMq'];_0x1fb8=function(){return _0x19c0ee;};return _0x1fb8();}function _0x128e(_0x12c359,_0x54b21b){_0x12c359=_0x12c359-0xd0;const _0x1fb89e=_0x1fb8();let _0x128edc=_0x1fb89e[_0x12c359];return _0x128edc;}import{printBlock}from'./output.js';export async function disable(_0x171cf0){const _0x1f829b=_0x128e,_0x3b205e={'vEnjb':function(_0x26e477,_0x20c1cd){return _0x26e477(_0x20c1cd);},'jSDWq':function(_0x1c3d28){return _0x1c3d28();},'CXQAQ':'main','xXRoC':function(_0x300f72,_0x3ca80c){return _0x300f72!==_0x3ca80c;},'lSlUX':function(_0x465ff3,_0x1ef1f3){return _0x465ff3!==_0x1ef1f3;}},_0x302303=_0x171cf0||process['env']['CLAUDE_SESSION_ID']||'';_0x302303&&_0x3b205e['vEnjb'](disableSession,_0x302303);const _0x49eb83=_0x3b205e[_0x1f829b(0xdb)](getCurrentBranch);_0x49eb83&&_0x49eb83!==_0x3b205e[_0x1f829b(0xdc)]&&_0x3b205e['xXRoC'](_0x49eb83,'master')&&disableBranch(_0x49eb83),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x49eb83&&_0x49eb83!==_0x3b205e['CXQAQ']&&_0x3b205e[_0x1f829b(0xdd)](_0x49eb83,_0x1f829b(0xd1))?'\x20and\x20branch\x20\x27'+_0x49eb83+'\x27':'')+_0x1f829b(0xd4));}
@@ -1 +1 @@
1
- function _0x5618(_0x4b795d,_0x37a72f){_0x4b795d=_0x4b795d-0x194;const _0x17706c=_0x1770();let _0x561877=_0x17706c[_0x4b795d];return _0x561877;}(function(_0x1c609c,_0x5ce584){const _0x42375a=_0x5618,_0x43c379=_0x1c609c();while(!![]){try{const _0x3555b3=-parseInt(_0x42375a(0x197))/0x1+parseInt(_0x42375a(0x19a))/0x2+parseInt(_0x42375a(0x1a5))/0x3*(parseInt(_0x42375a(0x1a1))/0x4)+-parseInt(_0x42375a(0x1a2))/0x5+-parseInt(_0x42375a(0x19d))/0x6+-parseInt(_0x42375a(0x1a8))/0x7+parseInt(_0x42375a(0x1a6))/0x8;if(_0x3555b3===_0x5ce584)break;else _0x43c379['push'](_0x43c379['shift']());}catch(_0x4c33fc){_0x43c379['push'](_0x43c379['shift']());}}}(_0x1770,0x8f0de));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1770(){const _0x425047=['ranger\x20setup','main','3868444RZGsHp','5619200vtkWjy','#\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`','VWINo','3oXEhbx','18690880VZEaBg','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','7348929qEEoey','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','error','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','\x0a\x0a**Branch\x20\x27','rWVKC','771401kykEcO','#\x20RANGER\x20ENABLED','CLAUDE_SESSION_ID','1962536WfIWRb','exit','aQIFX','4522206OCtaCq','JDstj'];_0x1770=function(){return _0x425047;};return _0x1770();}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x408d8e){const _0x570131=_0x5618,_0x74dfdc={'eDLxQ':function(_0x115cf4,_0x1f28cb){return _0x115cf4(_0x1f28cb);},'rWVKC':function(_0x1f7da3){return _0x1f7da3();},'ZmTNh':'ranger\x20setup\x20--opencode','FQtOM':_0x570131(0x19f),'aQIFX':function(_0xb6e8cd){return _0xb6e8cd();},'VWINo':function(_0x59e122,_0x15f026){return _0x59e122!==_0x15f026;},'JDstj':'master','XqdwS':function(_0x13032a,_0x4b5b3f){return _0x13032a(_0x4b5b3f);}},_0x232117=_0x408d8e||process['env'][_0x570131(0x199)]||'';!_0x232117&&(console[_0x570131(0x1aa)]('Error:\x20No\x20session\x20ID\x20available.'),console[_0x570131(0x1aa)]('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process[_0x570131(0x19b)](0x1));const _0x48bb06=_0x74dfdc['eDLxQ'](Boolean,_0x408d8e),_0x2eb34a=await _0x74dfdc[_0x570131(0x196)](getToken);if(!_0x2eb34a){const _0x13655=_0x48bb06?_0x74dfdc['ZmTNh']:_0x74dfdc['FQtOM'],_0x482b5f=_0x48bb06?_0x570131(0x1a7):_0x570131(0x194);printBlock(_0x570131(0x1a3)+_0x13655+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x482b5f);return;}try{await _0x74dfdc[_0x570131(0x196)](update);}catch{}enableSession(_0x232117);const _0x3b82f2=_0x74dfdc[_0x570131(0x19c)](getCurrentBranch),_0x54597b=_0x3b82f2&&_0x74dfdc[_0x570131(0x1a4)](_0x3b82f2,_0x570131(0x1a0))&&_0x3b82f2!==_0x74dfdc[_0x570131(0x19e)]?_0x570131(0x195)+_0x3b82f2+_0x570131(0x1a9):'',_0x1b60e4=getRangerSkillContent();_0x74dfdc['XqdwS'](printBlock,_0x570131(0x198)+_0x54597b+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1b60e4+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
1
+ (function(_0x2c85ab,_0x3cf2c8){const _0x3d4f9d=_0x276b,_0x1b125f=_0x2c85ab();while(!![]){try{const _0x4a7dc7=parseInt(_0x3d4f9d(0x95))/0x1*(parseInt(_0x3d4f9d(0x9a))/0x2)+-parseInt(_0x3d4f9d(0x86))/0x3+-parseInt(_0x3d4f9d(0x89))/0x4*(-parseInt(_0x3d4f9d(0x8b))/0x5)+-parseInt(_0x3d4f9d(0x99))/0x6*(parseInt(_0x3d4f9d(0x9c))/0x7)+-parseInt(_0x3d4f9d(0x88))/0x8+parseInt(_0x3d4f9d(0x87))/0x9+parseInt(_0x3d4f9d(0x92))/0xa;if(_0x4a7dc7===_0x3cf2c8)break;else _0x1b125f['push'](_0x1b125f['shift']());}catch(_0x10033b){_0x1b125f['push'](_0x1b125f['shift']());}}}(_0x5e2d,0x861d2));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x276b(_0x2ac41a,_0x2af920){_0x2ac41a=_0x2ac41a-0x84;const _0x5e2d72=_0x5e2d();let _0x276b39=_0x5e2d72[_0x2ac41a];return _0x276b39;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x5e2d(){const _0x1e77fa=['RRIJl','main','kCdrf','9330670KatFwa','vvLGH','LNwTF','1BRnhiW','\x0a\x0a**Branch\x20\x27','#\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`','tRyeR','18wZrmJP','282482DVlGRJ','ranger\x20setup\x20--opencode','1184764kLhZph','\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`.','RKIOZ','2248884WUFaUT','8903223uLAxvs','6395592OahDXq','2170432UFwHKZ','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','5eLOCVJ','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','uQSpE','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.'];_0x5e2d=function(){return _0x1e77fa;};return _0x5e2d();}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x311786){const _0x20f453=_0x276b,_0x34c29f={'LNwTF':'ranger\x20setup','dVVLq':_0x20f453(0x8c),'kCdrf':function(_0x345e77){return _0x345e77();},'RKIOZ':function(_0x48da95,_0x3a2fc1){return _0x48da95(_0x3a2fc1);},'uQSpE':function(_0x2af40c,_0x16fc27){return _0x2af40c!==_0x16fc27;},'RRIJl':_0x20f453(0x90),'bEwQL':function(_0xfb501,_0x476816){return _0xfb501!==_0x476816;},'tRyeR':'master','vvLGH':function(_0x1742c4){return _0x1742c4();}},_0x332fad=_0x311786||process['env']['CLAUDE_SESSION_ID']||'',_0x54cc06=Boolean(_0x311786),_0x479fda=await getToken();if(!_0x479fda){const _0x1a6cda=_0x54cc06?_0x20f453(0x9b):_0x34c29f[_0x20f453(0x94)],_0x495abd=_0x54cc06?_0x20f453(0x8a):_0x34c29f['dVVLq'];printBlock(_0x20f453(0x97)+_0x1a6cda+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x495abd);return;}try{await _0x34c29f[_0x20f453(0x91)](update);}catch{}_0x332fad&&_0x34c29f[_0x20f453(0x85)](enableSession,_0x332fad);const _0x7f175b=getCurrentBranch(),_0x3f94e5=_0x7f175b&&_0x34c29f[_0x20f453(0x8d)](_0x7f175b,_0x34c29f[_0x20f453(0x8f)])&&_0x34c29f['bEwQL'](_0x7f175b,_0x34c29f[_0x20f453(0x98)])?_0x20f453(0x96)+_0x7f175b+_0x20f453(0x8e):'',_0x281350=_0x34c29f[_0x20f453(0x93)](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x3f94e5+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x281350+_0x20f453(0x84));}
@@ -1 +1 @@
1
- function _0x2304(){const _0x230c25=['1799870ZWFtdi','2075638GXWMPF','526648JiLeCQ','3Hirzte','29642688QLTwRi','1694440gdUhZx','30101ciaUVp','112ctgWGV','2185542QnbwgV'];_0x2304=function(){return _0x230c25;};return _0x2304();}(function(_0x33caa1,_0x551e7b){const _0x31e625=_0x59f9,_0xe6b868=_0x33caa1();while(!![]){try{const _0x2d4ded=-parseInt(_0x31e625(0xb2))/0x1+-parseInt(_0x31e625(0xb6))/0x2*(parseInt(_0x31e625(0xb8))/0x3)+-parseInt(_0x31e625(0xb1))/0x4+-parseInt(_0x31e625(0xb5))/0x5+parseInt(_0x31e625(0xb4))/0x6+parseInt(_0x31e625(0xb3))/0x7*(-parseInt(_0x31e625(0xb7))/0x8)+parseInt(_0x31e625(0xb0))/0x9;if(_0x2d4ded===_0x551e7b)break;else _0xe6b868['push'](_0xe6b868['shift']());}catch(_0x4a9bfa){_0xe6b868['push'](_0xe6b868['shift']());}}}(_0x2304,0xb7dc1));function _0x59f9(_0x2e0b61,_0x4f1e71){_0x2e0b61=_0x2e0b61-0xb0;const _0x230499=_0x2304();let _0x59f9d3=_0x230499[_0x2e0b61];return _0x59f9d3;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x44e59a){const _0x5213ce=await getEnabledSessionId(_0x44e59a);if(!_0x5213ce)return;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 _0x47cc(_0x23373a,_0x589265){_0x23373a=_0x23373a-0x73;const _0x2d07c4=_0x2d07();let _0x47ccb6=_0x2d07c4[_0x23373a];return _0x47ccb6;}(function(_0x365ace,_0x3fc754){const _0x50549b=_0x47cc,_0x3e441a=_0x365ace();while(!![]){try{const _0x963e78=parseInt(_0x50549b(0x7b))/0x1*(parseInt(_0x50549b(0x79))/0x2)+-parseInt(_0x50549b(0x77))/0x3*(-parseInt(_0x50549b(0x7d))/0x4)+-parseInt(_0x50549b(0x78))/0x5*(parseInt(_0x50549b(0x7c))/0x6)+-parseInt(_0x50549b(0x73))/0x7*(parseInt(_0x50549b(0x74))/0x8)+-parseInt(_0x50549b(0x76))/0x9+-parseInt(_0x50549b(0x75))/0xa+parseInt(_0x50549b(0x7a))/0xb;if(_0x963e78===_0x3fc754)break;else _0x3e441a['push'](_0x3e441a['shift']());}catch(_0x5b91c8){_0x3e441a['push'](_0x3e441a['shift']());}}}(_0x2d07,0x208c6));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x53702d){const _0x228269={'buaGD':function(_0x4e34cf,_0x952347){return _0x4e34cf(_0x952347);}},_0x1a5a38=await _0x228269['buaGD'](getEnabledSessionId,_0x53702d);if(!_0x1a5a38)return;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===');}function _0x2d07(){const _0x2e8f19=['22883dOnFAa','304OYCbLS','1841150VecNys','1221804qwKYlM','442182cZHDPY','85105bDnIMD','154202cBkOnl','6316079HGZxfb','1VphvhT','78xpKaaV','4yYJmvP'];_0x2d07=function(){return _0x2e8f19;};return _0x2d07();}
@@ -1 +1 @@
1
- (function(_0x14df15,_0x508942){var _0x1d116e=_0x1df9,_0x21403c=_0x14df15();while(!![]){try{var _0x6edfe7=-parseInt(_0x1d116e(0x11e))/0x1*(-parseInt(_0x1d116e(0x116))/0x2)+-parseInt(_0x1d116e(0x11a))/0x3+parseInt(_0x1d116e(0x11b))/0x4*(-parseInt(_0x1d116e(0x11d))/0x5)+parseInt(_0x1d116e(0x11c))/0x6*(parseInt(_0x1d116e(0x117))/0x7)+-parseInt(_0x1d116e(0x119))/0x8*(-parseInt(_0x1d116e(0x11f))/0x9)+parseInt(_0x1d116e(0x115))/0xa+-parseInt(_0x1d116e(0x118))/0xb;if(_0x6edfe7===_0x508942)break;else _0x21403c['push'](_0x21403c['shift']());}catch(_0x3b0e49){_0x21403c['push'](_0x21403c['shift']());}}}(_0x223d,0xdc23c));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x223d(){var _0x297250=['4DbgeYI','360642MlreAY','1223385mfiFrB','3VfAVkN','45AYpKvQ','10755920UcuGxb','1055386nbQhae','35IYGZvK','11106634mmHvSl','669160THRSTG','3664104PBIXru'];_0x223d=function(){return _0x297250;};return _0x223d();}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x1df9(_0x76a067,_0x596fcf){_0x76a067=_0x76a067-0x115;var _0x223d3b=_0x223d();var _0x1df914=_0x223d3b[_0x76a067];return _0x1df914;}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(_0xffaf77,_0x2007f4){var _0x1e3c12=_0x4edd,_0x9a0378=_0xffaf77();while(!![]){try{var _0x44cd7a=parseInt(_0x1e3c12(0x71))/0x1*(-parseInt(_0x1e3c12(0x73))/0x2)+parseInt(_0x1e3c12(0x76))/0x3+parseInt(_0x1e3c12(0x72))/0x4+-parseInt(_0x1e3c12(0x77))/0x5*(parseInt(_0x1e3c12(0x75))/0x6)+parseInt(_0x1e3c12(0x78))/0x7+-parseInt(_0x1e3c12(0x74))/0x8+parseInt(_0x1e3c12(0x70))/0x9;if(_0x44cd7a===_0x2007f4)break;else _0x9a0378['push'](_0x9a0378['shift']());}catch(_0x5d4a58){_0x9a0378['push'](_0x9a0378['shift']());}}}(_0x397c,0x404fa));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x4edd(_0x16f1e1,_0xba1a88){_0x16f1e1=_0x16f1e1-0x70;var _0x397c2d=_0x397c();var _0x4edd58=_0x397c2d[_0x16f1e1];return _0x4edd58;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';function _0x397c(){var _0x27580a=['2355680oiAELT','1415472LIyuEu','1491663hTFqRN','10yJZXYM','2939244IkZYwA','871254vlQNXg','215AYcVCq','1009992FTRspH','2202NBJWln'];_0x397c=function(){return _0x27580a;};return _0x397c();}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 +1 @@
1
- (function(_0x19bbf5,_0x2b591f){const _0x213c0a=_0x4e8d,_0x2b90a6=_0x19bbf5();while(!![]){try{const _0x530a00=parseInt(_0x213c0a(0xbc))/0x1+parseInt(_0x213c0a(0xb7))/0x2*(-parseInt(_0x213c0a(0xbe))/0x3)+parseInt(_0x213c0a(0xba))/0x4*(-parseInt(_0x213c0a(0xb8))/0x5)+-parseInt(_0x213c0a(0xb6))/0x6+-parseInt(_0x213c0a(0xc1))/0x7*(-parseInt(_0x213c0a(0xbb))/0x8)+parseInt(_0x213c0a(0xbf))/0x9*(-parseInt(_0x213c0a(0xc0))/0xa)+parseInt(_0x213c0a(0xb4))/0xb;if(_0x530a00===_0x2b591f)break;else _0x2b90a6['push'](_0x2b90a6['shift']());}catch(_0x35afe8){_0x2b90a6['push'](_0x2b90a6['shift']());}}}(_0xd829,0x4ca70));function _0x4e8d(_0x1eebc8,_0x4cf028){_0x1eebc8=_0x1eebc8-0xb3;const _0xd8298b=_0xd829();let _0x4e8dad=_0xd8298b[_0x1eebc8];return _0x4e8dad;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0xd829(){const _0x4fdb3c=['CiJiU','parse','session_id','cUmeb','6207201OTbzOn','log','2330130wTVTex','374IIElEA','1640OYpTwn','YyVsG','6332gxcmFc','35504uNUtVk','124798HVWVEq','aocPR','486jkBTZT','2727SGmUHj','1640lDzXLB','966iGVDnx'];_0xd829=function(){return _0x4fdb3c;};return _0xd829();}export function printBlock(_0x40dbf1){const _0x3c7d44=_0x4e8d;console[_0x3c7d44(0xb5)](_0x40dbf1);}export async function readHookInput(){const _0x44626d=_0x4e8d;let _0x4d3c8a='';for await(const _0x4e38bd of process['stdin']){_0x4d3c8a+=_0x4e38bd;}try{return JSON[_0x44626d(0xc3)](_0x4d3c8a);}catch{return null;}}export async function getEnabledSessionId(_0x52b839){const _0x5eb180=_0x4e8d,_0x4dcf24={'CiJiU':function(_0x26cb3d,_0x19671c){return _0x26cb3d(_0x19671c);},'cUmeb':function(_0x18f1b8){return _0x18f1b8();}};if(_0x52b839)return _0x4dcf24[_0x5eb180(0xc2)](isSessionEnabled,_0x52b839)?_0x52b839:null;const _0x46c21e=await _0x4dcf24[_0x5eb180(0xb3)](readHookInput),_0x47838b=_0x46c21e?.[_0x5eb180(0xc4)];if(!_0x47838b||!_0x4dcf24['CiJiU'](isSessionEnabled,_0x47838b))return null;return _0x47838b;}export async function getEnabledHookContext(_0x381b0a){const _0x2f5d7c=_0x4e8d,_0x58c801={'YyVsG':function(_0x64c8f,_0x4001ac){return _0x64c8f(_0x4001ac);},'aocPR':function(_0x238de8){return _0x238de8();},'FmWTE':function(_0x29caab,_0x3630be){return _0x29caab(_0x3630be);}};if(_0x381b0a){if(!_0x58c801[_0x2f5d7c(0xb9)](isSessionEnabled,_0x381b0a))return null;return{'sessionId':_0x381b0a,'input':{'session_id':_0x381b0a}};}const _0x2a3c54=await _0x58c801[_0x2f5d7c(0xbd)](readHookInput),_0x5b622b=_0x2a3c54?.['session_id'];if(!_0x5b622b||!_0x58c801['FmWTE'](isSessionEnabled,_0x5b622b))return null;return{'sessionId':_0x5b622b,'input':_0x2a3c54};}
1
+ (function(_0xc8da19,_0xf05049){const _0xbcd1f2=_0x57e7,_0x41178a=_0xc8da19();while(!![]){try{const _0x553831=-parseInt(_0xbcd1f2(0x71))/0x1*(-parseInt(_0xbcd1f2(0x7b))/0x2)+parseInt(_0xbcd1f2(0x76))/0x3+-parseInt(_0xbcd1f2(0x74))/0x4*(-parseInt(_0xbcd1f2(0x72))/0x5)+-parseInt(_0xbcd1f2(0x7a))/0x6*(parseInt(_0xbcd1f2(0x70))/0x7)+-parseInt(_0xbcd1f2(0x78))/0x8*(parseInt(_0xbcd1f2(0x77))/0x9)+-parseInt(_0xbcd1f2(0x75))/0xa+-parseInt(_0xbcd1f2(0x7c))/0xb*(-parseInt(_0xbcd1f2(0x79))/0xc);if(_0x553831===_0xf05049)break;else _0x41178a['push'](_0x41178a['shift']());}catch(_0x408b49){_0x41178a['push'](_0x41178a['shift']());}}}(_0x3bca,0xc32c0));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x259ec6){console['log'](_0x259ec6);}function _0x57e7(_0x3b908f,_0x3a9bdb){_0x3b908f=_0x3b908f-0x70;const _0x3bca7d=_0x3bca();let _0x57e728=_0x3bca7d[_0x3b908f];return _0x57e728;}export async function readHookInput(){let _0x5dbd6f='';for await(const _0x1a720f of process['stdin']){_0x5dbd6f+=_0x1a720f;}try{return JSON['parse'](_0x5dbd6f);}catch{return null;}}export async function getEnabledSessionId(_0x2ecc0c){const _0x3f1b2c=_0x57e7,_0x1abe17={'PmebC':function(_0x596ee2,_0x34d64e){return _0x596ee2(_0x34d64e);}};if(_0x2ecc0c)return _0x1abe17[_0x3f1b2c(0x7d)](isSessionEnabled,_0x2ecc0c)?_0x2ecc0c:null;const _0x14b630=await readHookInput(),_0x90a6bf=_0x14b630?.[_0x3f1b2c(0x73)];if(!_0x90a6bf||!_0x1abe17['PmebC'](isSessionEnabled,_0x90a6bf))return null;return _0x90a6bf;}export async function getEnabledHookContext(_0x17060e){const _0x51a2fe=_0x57e7;if(_0x17060e){if(!isSessionEnabled(_0x17060e))return null;return{'sessionId':_0x17060e,'input':{'session_id':_0x17060e}};}const _0xd8ea2c=await readHookInput(),_0x32e504=_0xd8ea2c?.[_0x51a2fe(0x73)];if(!_0x32e504||!isSessionEnabled(_0x32e504))return null;return{'sessionId':_0x32e504,'input':_0xd8ea2c};}function _0x3bca(){const _0x48962f=['27304bWEPul','352524NjKAfC','36438ibAvfX','10PJJSim','550aVTOLB','PmebC','455ZyFoPZ','24997UPcadZ','67190wuGVRH','session_id','8hEQfXe','5472130GLvNeD','1867146xUahbp','1323kyMiZh'];_0x3bca=function(){return _0x48962f;};return _0x3bca();}
@@ -1 +1 @@
1
- function _0x5d7d(){const _0x12cdc8=['15688590QPAEvD','plan','1911042fKFciv','262245fLxwAD','92152EHcicZ','4leGCRP','1525419BJGwbi','sessionId','permission_mode','144yWejGe','775963QSIiHo','jOveR','18nHQgjl','input','3016161lPVmeq','===\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==='];_0x5d7d=function(){return _0x12cdc8;};return _0x5d7d();}(function(_0x3806b3,_0x5da07a){const _0x1e46dd=_0x2287,_0x5a92be=_0x3806b3();while(!![]){try{const _0x214374=-parseInt(_0x1e46dd(0x188))/0x1+-parseInt(_0x1e46dd(0x180))/0x2+parseInt(_0x1e46dd(0x18c))/0x3*(parseInt(_0x1e46dd(0x183))/0x4)+-parseInt(_0x1e46dd(0x181))/0x5*(-parseInt(_0x1e46dd(0x18a))/0x6)+-parseInt(_0x1e46dd(0x184))/0x7+-parseInt(_0x1e46dd(0x182))/0x8*(parseInt(_0x1e46dd(0x187))/0x9)+parseInt(_0x1e46dd(0x18e))/0xa;if(_0x214374===_0x5da07a)break;else _0x5a92be['push'](_0x5a92be['shift']());}catch(_0x5ee6c9){_0x5a92be['push'](_0x5a92be['shift']());}}}(_0x5d7d,0x91f80));import{printBlock,getEnabledHookContext}from'./output.js';function _0x2287(_0x3fce0b,_0x3d0b3a){_0x3fce0b=_0x3fce0b-0x180;const _0x5d7d51=_0x5d7d();let _0x22873e=_0x5d7d51[_0x3fce0b];return _0x22873e;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x49f754){const _0x5e28b9=_0x2287,_0x51b264={'EZScU':function(_0xbaec9a,_0xeed096){return _0xbaec9a!==_0xeed096;},'guTuT':_0x5e28b9(0x18f),'jOveR':function(_0x47c4f9,_0x74d320){return _0x47c4f9(_0x74d320);}},_0x53b1dd=await getEnabledHookContext(_0x49f754);if(!_0x53b1dd)return;if(_0x51b264['EZScU'](_0x53b1dd[_0x5e28b9(0x18b)][_0x5e28b9(0x186)],_0x51b264['guTuT']))return;if(!_0x51b264[_0x5e28b9(0x189)](shouldShowPlanReminder,_0x53b1dd[_0x5e28b9(0x185)]))return;printBlock(_0x5e28b9(0x18d));}
1
+ (function(_0x3105f3,_0xdd7cf1){const _0x9e8d00=_0x2d00,_0x505956=_0x3105f3();while(!![]){try{const _0x4cf5e5=parseInt(_0x9e8d00(0x84))/0x1*(-parseInt(_0x9e8d00(0x80))/0x2)+-parseInt(_0x9e8d00(0x7b))/0x3+parseInt(_0x9e8d00(0x82))/0x4*(-parseInt(_0x9e8d00(0x87))/0x5)+-parseInt(_0x9e8d00(0x7e))/0x6+parseInt(_0x9e8d00(0x81))/0x7*(parseInt(_0x9e8d00(0x86))/0x8)+-parseInt(_0x9e8d00(0x7c))/0x9+parseInt(_0x9e8d00(0x7d))/0xa*(parseInt(_0x9e8d00(0x85))/0xb);if(_0x4cf5e5===_0xdd7cf1)break;else _0x505956['push'](_0x505956['shift']());}catch(_0x558c24){_0x505956['push'](_0x505956['shift']());}}}(_0x5f2c,0x391ae));import{printBlock,getEnabledHookContext}from'./output.js';function _0x5f2c(){const _0x54131b=['778386HEGKkk','2180115cDQmIn','3130LGbSTb','1513722udXrnG','sessionId','130068hIlZKM','7QEhRTK','1476120zKEBKT','plan','4ZhSGKH','45848KuFMkQ','2499744SDuAiO','5hfvMWu'];_0x5f2c=function(){return _0x54131b;};return _0x5f2c();}function _0x2d00(_0x45b0c7,_0xcd4fe8){_0x45b0c7=_0x45b0c7-0x7b;const _0x5f2cc1=_0x5f2c();let _0x2d0058=_0x5f2cc1[_0x45b0c7];return _0x2d0058;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x5f279a){const _0x7e3f0d=_0x2d00,_0x11235d={'axgwU':function(_0x4cde20,_0x472306){return _0x4cde20(_0x472306);}},_0x573aaa=await _0x11235d['axgwU'](getEnabledHookContext,_0x5f279a);if(!_0x573aaa)return;if(_0x573aaa['input']['permission_mode']!==_0x7e3f0d(0x83))return;if(!shouldShowPlanReminder(_0x573aaa[_0x7e3f0d(0x7f)]))return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- (function(_0x1c12e9,_0x2ab230){const _0x4ba1b4=_0x1e57,_0x54dcca=_0x1c12e9();while(!![]){try{const _0x2cd651=parseInt(_0x4ba1b4(0xa0))/0x1+-parseInt(_0x4ba1b4(0x9a))/0x2+-parseInt(_0x4ba1b4(0x99))/0x3+-parseInt(_0x4ba1b4(0xa1))/0x4+parseInt(_0x4ba1b4(0x9f))/0x5+parseInt(_0x4ba1b4(0x9d))/0x6*(parseInt(_0x4ba1b4(0x9e))/0x7)+parseInt(_0x4ba1b4(0x98))/0x8;if(_0x2cd651===_0x2ab230)break;else _0x54dcca['push'](_0x54dcca['shift']());}catch(_0x44300f){_0x54dcca['push'](_0x54dcca['shift']());}}}(_0x5a81,0xac7a2));function _0x1e57(_0x55bd6f,_0x54c353){_0x55bd6f=_0x55bd6f-0x98;const _0x5a81d0=_0x5a81();let _0x1e5778=_0x5a81d0[_0x55bd6f];return _0x1e5778;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x5a81(){const _0x5751cf=['20706488tnCHHH','4170681jJgMeI','1567252PavDDK','wpTAW','===\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===','19806TXdLJq','7wrfKMc','926475SmRSat','345317lgkBbJ','967620jYFHIi'];_0x5a81=function(){return _0x5751cf;};return _0x5a81();}export async function planStart(_0x45d031){const _0x163a31=_0x1e57,_0x3e9664={'wpTAW':function(_0x301a90,_0x1fbcaa){return _0x301a90(_0x1fbcaa);}},_0x222dce=await _0x3e9664[_0x163a31(0x9b)](getEnabledSessionId,_0x45d031);if(!_0x222dce)return;printBlock(_0x163a31(0x9c));}
1
+ (function(_0xcaea79,_0x21f517){const _0x18053a=_0x1af7,_0x18f136=_0xcaea79();while(!![]){try{const _0x370569=parseInt(_0x18053a(0x76))/0x1*(parseInt(_0x18053a(0x6f))/0x2)+-parseInt(_0x18053a(0x74))/0x3+-parseInt(_0x18053a(0x6c))/0x4*(-parseInt(_0x18053a(0x75))/0x5)+-parseInt(_0x18053a(0x72))/0x6*(-parseInt(_0x18053a(0x6d))/0x7)+-parseInt(_0x18053a(0x70))/0x8+parseInt(_0x18053a(0x71))/0x9*(-parseInt(_0x18053a(0x6e))/0xa)+parseInt(_0x18053a(0x78))/0xb*(parseInt(_0x18053a(0x77))/0xc);if(_0x370569===_0x21f517)break;else _0x18f136['push'](_0x18f136['shift']());}catch(_0x3804ce){_0x18f136['push'](_0x18f136['shift']());}}}(_0x5e3e,0x684ad));import{printBlock,getEnabledSessionId}from'./output.js';function _0x1af7(_0x53fb1d,_0x8309fd){_0x53fb1d=_0x53fb1d-0x6c;const _0x5e3e50=_0x5e3e();let _0x1af707=_0x5e3e50[_0x53fb1d];return _0x1af707;}export async function planStart(_0x2412c0){const _0x43169e=_0x1af7,_0x5071ff={'LnbZs':function(_0x151d0a,_0x3bc9d1){return _0x151d0a(_0x3bc9d1);}},_0x11f931=await getEnabledSessionId(_0x2412c0);if(!_0x11f931)return;_0x5071ff[_0x43169e(0x73)](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===');}function _0x5e3e(){const _0x43316c=['3063044mSNOCk','21yhtaEZ','1790540AamDNd','2kPzjHU','6327648yZaFvs','9zyDNiI','1050402jbAWmP','LnbZs','570954UBVzEF','5GEAhth','228832QTfKmw','162516hwngzI','55nzaevp'];_0x5e3e=function(){return _0x43316c;};return _0x5e3e();}
@@ -1 +1 @@
1
- function _0xfab2(){const _0x36d347=['log','1805410HXDxbW','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.','4304HCJlUB','ljLTE','90363RkDFrY','4CzKqUm','4501981UUQVIo','18uQTOfG','696848oGkZRi','102UVVOay','9Kircef','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).','359610FseyEa','73980CFAtzn','stringify'];_0xfab2=function(){return _0x36d347;};return _0xfab2();}(function(_0x2819ec,_0x2eefc6){const _0x40ca6a=_0x3514,_0x57d895=_0x2819ec();while(!![]){try{const _0x36272d=-parseInt(_0x40ca6a(0x79))/0x1+parseInt(_0x40ca6a(0x7e))/0x2*(-parseInt(_0x40ca6a(0x73))/0x3)+-parseInt(_0x40ca6a(0x71))/0x4*(parseInt(_0x40ca6a(0x78))/0x5)+-parseInt(_0x40ca6a(0x75))/0x6*(parseInt(_0x40ca6a(0x70))/0x7)+-parseInt(_0x40ca6a(0x74))/0x8+parseInt(_0x40ca6a(0x76))/0x9*(parseInt(_0x40ca6a(0x7c))/0xa)+parseInt(_0x40ca6a(0x72))/0xb;if(_0x36272d===_0x2eefc6)break;else _0x57d895['push'](_0x57d895['shift']());}catch(_0x5664b6){_0x57d895['push'](_0x57d895['shift']());}}}(_0xfab2,0x1e617));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3514(_0x2687e7,_0x4e25f7){_0x2687e7=_0x2687e7-0x6f;const _0xfab21c=_0xfab2();let _0x35140b=_0xfab21c[_0x2687e7];return _0x35140b;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x455300){const _0x4e3a0c=_0x3514,_0x7af7f9={'ljLTE':function(_0x148d6c,_0x1ea805){return _0x148d6c(_0x1ea805);}},_0x47f32a=await getEnabledSessionId(_0x455300);if(!_0x47f32a)return;updateBranchTracking(_0x47f32a);const _0x5471e1=await getToken();if(!_0x5471e1)return;const _0x286e32=_0x7af7f9[_0x4e3a0c(0x6f)](getSessionEntry,_0x47f32a);if(_0x286e32){const _0x528a7f={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4e3a0c(0x77)}};console[_0x4e3a0c(0x7b)](JSON[_0x4e3a0c(0x7a)](_0x528a7f));return;}const _0x215a7b={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4e3a0c(0x7d)}};console['log'](JSON[_0x4e3a0c(0x7a)](_0x215a7b));}
1
+ (function(_0x783f67,_0x448f80){const _0x134475=_0x1adc,_0x4e44b7=_0x783f67();while(!![]){try{const _0x564e05=-parseInt(_0x134475(0x1a6))/0x1+-parseInt(_0x134475(0x1a7))/0x2*(parseInt(_0x134475(0x19e))/0x3)+-parseInt(_0x134475(0x1aa))/0x4+-parseInt(_0x134475(0x1a2))/0x5*(-parseInt(_0x134475(0x1a0))/0x6)+parseInt(_0x134475(0x19d))/0x7*(parseInt(_0x134475(0x1a3))/0x8)+-parseInt(_0x134475(0x1ab))/0x9*(parseInt(_0x134475(0x1a9))/0xa)+parseInt(_0x134475(0x1a4))/0xb;if(_0x564e05===_0x448f80)break;else _0x4e44b7['push'](_0x4e44b7['shift']());}catch(_0x537e3f){_0x4e44b7['push'](_0x4e44b7['shift']());}}}(_0x58ab,0x88927));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x1adc(_0x48d769,_0x16ed0){_0x48d769=_0x48d769-0x19d;const _0x58ab73=_0x58ab();let _0x1adc57=_0x58ab73[_0x48d769];return _0x1adc57;}function _0x58ab(){const _0x183716=['12AFJDbW','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).','1948565OVVfhI','8gXsgaV','9976714zUtCur','WJzkc','1063391vITxZd','20xtUnvp','PostToolUse','861480ixXPRr','878516bOWcTr','9WIbOQW','dLLSQ','2654799ejgRAx','41127xJewuJ','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.'];_0x58ab=function(){return _0x183716;};return _0x58ab();}export async function postEdit(_0x64e1a){const _0x1ab23a=_0x1adc,_0x3bf74c={'WJzkc':function(_0x17e8c7,_0x2d0957){return _0x17e8c7(_0x2d0957);},'dLLSQ':function(_0x4b60b2){return _0x4b60b2();}},_0xcc398a=await getEnabledSessionId(_0x64e1a);if(!_0xcc398a)return;_0x3bf74c[_0x1ab23a(0x1a5)](updateBranchTracking,_0xcc398a);const _0x123733=await _0x3bf74c[_0x1ab23a(0x1ac)](getToken);if(!_0x123733)return;const _0x59377b=_0x3bf74c['WJzkc'](getSessionEntry,_0xcc398a);if(_0x59377b){const _0x363573={'hookSpecificOutput':{'hookEventName':_0x1ab23a(0x1a8),'additionalContext':_0x1ab23a(0x1a1)}};console['log'](JSON['stringify'](_0x363573));return;}const _0x55c393={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x1ab23a(0x19f)}};console['log'](JSON['stringify'](_0x55c393));}
@@ -1 +1 @@
1
- (function(_0x2ec1a7,_0x1ec919){const _0x4d0806=_0x190c,_0x4bcf19=_0x2ec1a7();while(!![]){try{const _0x710039=parseInt(_0x4d0806(0x7c))/0x1+parseInt(_0x4d0806(0x7e))/0x2+-parseInt(_0x4d0806(0x84))/0x3+parseInt(_0x4d0806(0x82))/0x4*(-parseInt(_0x4d0806(0x80))/0x5)+parseInt(_0x4d0806(0x81))/0x6*(parseInt(_0x4d0806(0x85))/0x7)+-parseInt(_0x4d0806(0x7b))/0x8*(-parseInt(_0x4d0806(0x7d))/0x9)+-parseInt(_0x4d0806(0x7f))/0xa;if(_0x710039===_0x1ec919)break;else _0x4bcf19['push'](_0x4bcf19['shift']());}catch(_0x5396de){_0x4bcf19['push'](_0x4bcf19['shift']());}}}(_0x1c6a,0x721d5));import{getToken}from'../utils/keychain.js';function _0x1c6a(){const _0xc1a2e6=['===\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`.','2145060LOAROH','3465217HwhHMO','EdOpm','16QfmpdG','842804WEBbpy','3534093KwdmKG','1617794YceiWc','11493390PDAJHM','110kekejH','6iZWEos','109148tzblyM'];_0x1c6a=function(){return _0xc1a2e6;};return _0x1c6a();}function _0x190c(_0x472809,_0x20c900){_0x472809=_0x472809-0x7a;const _0x1c6a6b=_0x1c6a();let _0x190ce5=_0x1c6a6b[_0x472809];return _0x190ce5;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x15d592){const _0x2d5e96=_0x190c,_0xf98143={'lNvyO':function(_0x5704c3){return _0x5704c3();},'EdOpm':function(_0x1e8fca,_0x3bf18d){return _0x1e8fca(_0x3bf18d);}},_0x1558d4=await getEnabledSessionId(_0x15d592);if(!_0x1558d4)return;try{const _0x2f7449=await _0xf98143['lNvyO'](getToken);if(!_0x2f7449)return;_0xf98143[_0x2d5e96(0x7a)](printBlock,_0x2d5e96(0x83));}catch{}}
1
+ function _0x1e92(_0x438354,_0x8a3cc){_0x438354=_0x438354-0x14c;const _0x525e97=_0x525e();let _0x1e9279=_0x525e97[_0x438354];return _0x1e9279;}(function(_0xdca57e,_0x55fe53){const _0x1b17f7=_0x1e92,_0x18e62e=_0xdca57e();while(!![]){try{const _0x3e6f2c=parseInt(_0x1b17f7(0x152))/0x1+parseInt(_0x1b17f7(0x151))/0x2*(-parseInt(_0x1b17f7(0x158))/0x3)+-parseInt(_0x1b17f7(0x14c))/0x4*(parseInt(_0x1b17f7(0x156))/0x5)+parseInt(_0x1b17f7(0x150))/0x6*(-parseInt(_0x1b17f7(0x157))/0x7)+-parseInt(_0x1b17f7(0x14f))/0x8+-parseInt(_0x1b17f7(0x154))/0x9*(-parseInt(_0x1b17f7(0x155))/0xa)+-parseInt(_0x1b17f7(0x14e))/0xb*(-parseInt(_0x1b17f7(0x14d))/0xc);if(_0x3e6f2c===_0x55fe53)break;else _0x18e62e['push'](_0x18e62e['shift']());}catch(_0x16f3c5){_0x18e62e['push'](_0x18e62e['shift']());}}}(_0x525e,0x9e9bb));function _0x525e(){const _0x1d9723=['12414oOHNiU','1648068jHIWtZ','885366bkBPDo','BhidK','270sWUvEM','232230sDpTPN','1084645eKVIod','7BmbxZu','3SqtVSm','4MCKbtI','24VUjjdC','1452242edNkiM','1227272iXRVBB'];_0x525e=function(){return _0x1d9723;};return _0x525e();}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x3c47e0){const _0x2059f7=_0x1e92,_0x1d3991={'BhidK':function(_0x93a8c0){return _0x93a8c0();}},_0x412ab1=await getEnabledSessionId(_0x3c47e0);if(!_0x412ab1)return;try{const _0x4abbec=await _0x1d3991[_0x2059f7(0x153)](getToken);if(!_0x4abbec)return;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(_0x5b4d8f,_0x52a747){const _0x3159c3=_0x1b8e,_0x424052=_0x5b4d8f();while(!![]){try{const _0xaac2d7=-parseInt(_0x3159c3(0x1e7))/0x1+-parseInt(_0x3159c3(0x1e6))/0x2+-parseInt(_0x3159c3(0x1ec))/0x3+-parseInt(_0x3159c3(0x1eb))/0x4*(-parseInt(_0x3159c3(0x1ea))/0x5)+-parseInt(_0x3159c3(0x1e8))/0x6+parseInt(_0x3159c3(0x1ef))/0x7+parseInt(_0x3159c3(0x1e9))/0x8;if(_0xaac2d7===_0x52a747)break;else _0x424052['push'](_0x424052['shift']());}catch(_0x14ee15){_0x424052['push'](_0x424052['shift']());}}}(_0x5f45,0x65653));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x5f45(){const _0x142fae=['5100312yKPZRP','session_id','1641202zVHUkQ','743468yDERBa','2355114wkPIYc','11161584bPkooN','1737265ZVHHWc','8RXiuRF','1340451jiDeYN','YVumu','sYPpX'];_0x5f45=function(){return _0x142fae;};return _0x5f45();}function _0x1b8e(_0x3a9098,_0x10d974){_0x3a9098=_0x3a9098-0x1e6;const _0x5f45ef=_0x5f45();let _0x1b8ecc=_0x5f45ef[_0x3a9098];return _0x1b8ecc;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x344cfa){const _0x2c7a1b=_0x1b8e,_0xe4ac66={'YVumu':function(_0x195d4a){return _0x195d4a();},'sYPpX':function(_0x4dbb26,_0x5344af){return _0x4dbb26===_0x5344af;}};let _0x1bfe06=_0x344cfa,_0x59b783;if(!_0x344cfa){const _0x5cf099=await _0xe4ac66[_0x2c7a1b(0x1ed)](readHookInput);_0x1bfe06=_0x5cf099?.[_0x2c7a1b(0x1f0)],_0x59b783=_0x5cf099?.['reason'];}if(!_0x1bfe06)return;_0xe4ac66[_0x2c7a1b(0x1ee)](_0x59b783,'clear')&&recordEnabledSessionCleared(_0x1bfe06);}
1
+ function _0x21a0(){const _0x2b9417=['clear','IxtVC','2083039cmBmRj','11052CwgARL','6648nehxZw','2135HfLWhK','2806722VImxgM','541896ighKFv','407424QCsyRb','199448YgEcZj','sifJm','session_id','2540aXnnEg','36BdMraK'];_0x21a0=function(){return _0x2b9417;};return _0x21a0();}function _0xc5f3(_0x340591,_0x5bf073){_0x340591=_0x340591-0x127;const _0x21a0a3=_0x21a0();let _0xc5f3ae=_0x21a0a3[_0x340591];return _0xc5f3ae;}(function(_0x15476c,_0x2085d9){const _0x2a9d19=_0xc5f3,_0x66e315=_0x15476c();while(!![]){try{const _0xc60390=-parseInt(_0x2a9d19(0x12d))/0x1+-parseInt(_0x2a9d19(0x12e))/0x2*(-parseInt(_0x2a9d19(0x132))/0x3)+parseInt(_0x2a9d19(0x129))/0x4*(-parseInt(_0x2a9d19(0x12a))/0x5)+parseInt(_0x2a9d19(0x12b))/0x6+parseInt(_0x2a9d19(0x127))/0x7+parseInt(_0x2a9d19(0x12c))/0x8+parseInt(_0x2a9d19(0x128))/0x9*(-parseInt(_0x2a9d19(0x131))/0xa);if(_0xc60390===_0x2085d9)break;else _0x66e315['push'](_0x66e315['shift']());}catch(_0x40eabf){_0x66e315['push'](_0x66e315['shift']());}}}(_0x21a0,0x92acb));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x1a88e3){const _0xbed283=_0xc5f3,_0x5310df={'IxtVC':function(_0x550d62){return _0x550d62();},'AIgQh':_0xbed283(0x133),'sifJm':function(_0x26258f,_0x12f390){return _0x26258f(_0x12f390);}};let _0x477dda=_0x1a88e3,_0x2699f2;if(!_0x1a88e3){const _0x2b6e18=await _0x5310df[_0xbed283(0x134)](readHookInput);_0x477dda=_0x2b6e18?.[_0xbed283(0x130)],_0x2699f2=_0x2b6e18?.['reason'];}if(!_0x477dda)return;_0x2699f2===_0x5310df['AIgQh']&&_0x5310df[_0xbed283(0x12f)](recordEnabledSessionCleared,_0x477dda);}