@ranger-testing/ranger-cli 2.3.0 → 2.3.2

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 (70) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -0
  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/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/reportGenerator.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/build/commands/verifyInBrowser.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x4a214e=_0x2bbb;function _0x23bc(){const _0x33076a=['CJmdl','TSfZj','Nqdyr','UAkrJ','NUUHU','3388617cVNSRj','309360JyNbrE','\x22\x20does\x20not\x20exist.','228042tNFdhm','(not\x20set)','146538sPBZGK','stringify','Key\x20\x22','qOkVZ','OxweO','allowInsecureLocalhost','object','No\x20configuration\x20set\x20for\x20\x22','Profile\x20\x22','906355CScqfz','480552Vijgpj','WUNzd','7zWsJSP','4JFPIrp','log','195988dQBwjp','true'];_0x23bc=function(){return _0x33076a;};return _0x23bc();}(function(_0x4bbb99,_0x49dbeb){const _0x45e390=_0x2bbb,_0x3bd447=_0x4bbb99();while(!![]){try{const _0x52d9ba=parseInt(_0x45e390(0xa2))/0x1+-parseInt(_0x45e390(0xac))/0x2+parseInt(_0x45e390(0x9d))/0x3+-parseInt(_0x45e390(0xa0))/0x4*(-parseInt(_0x45e390(0x9c))/0x5)+-parseInt(_0x45e390(0xae))/0x6*(-parseInt(_0x45e390(0x9f))/0x7)+parseInt(_0x45e390(0xaa))/0x8+-parseInt(_0x45e390(0xa9))/0x9;if(_0x52d9ba===_0x49dbeb)break;else _0x3bd447['push'](_0x3bd447['shift']());}catch(_0x5559bc){_0x3bd447['push'](_0x3bd447['shift']());}}}(_0x23bc,0x1adb2));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x4a214e(0x98)];function parseValue(_0x51e60d,_0x2aa988){const _0x2f8913=_0x4a214e,_0xc891bc={'qOkVZ':function(_0x1a8336,_0xb7c282){return _0x1a8336===_0xb7c282;}};if(BOOLEAN_KEYS['includes'](_0x51e60d)){if(_0xc891bc[_0x2f8913(0xb1)](_0x2aa988,_0x2f8913(0xa3)))return!![];if(_0x2aa988==='false')return![];throw new Error('Invalid\x20value\x20for\x20'+_0x51e60d+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x2aa988;}export async function configSet(_0x3761f7,_0x5b2cbb,_0x4a4857){const _0xf782f3=_0x4a214e,_0x7b3166={'TSfZj':function(_0x406c8b,_0xca7d33){return _0x406c8b(_0xca7d33);},'UAkrJ':function(_0x154ded,_0x5f2314,_0x254d96){return _0x154ded(_0x5f2314,_0x254d96);}},_0x1c27c5=getEnvDir(_0x3761f7);if(!existsSync(_0x1c27c5))throw new Error('Profile\x20\x22'+_0x3761f7+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3761f7);const _0x1309bb=await _0x7b3166[_0xf782f3(0xa5)](loadSettings,_0x3761f7),_0x1cefec=_0x7b3166[_0xf782f3(0xa7)](parseValue,_0x5b2cbb,_0x4a4857);setNestedValue(_0x1309bb,_0x5b2cbb,_0x1cefec),await _0x7b3166[_0xf782f3(0xa7)](saveSettings,_0x3761f7,_0x1309bb),console[_0xf782f3(0xa1)]('Set\x20'+_0x5b2cbb+'\x20=\x20'+_0x1cefec);}function _0x2bbb(_0x2ebf66,_0x57235f){_0x2ebf66=_0x2ebf66-0x98;const _0x23bc73=_0x23bc();let _0x2bbb8c=_0x23bc73[_0x2ebf66];return _0x2bbb8c;}export async function configGet(_0x1a7b55,_0x2e49a0){const _0x4d381c=_0x4a214e,_0x4fbe81={'CJmdl':function(_0x5f4c89,_0x395683){return _0x5f4c89(_0x395683);},'oqvSo':function(_0x1afce8,_0x39ce11,_0x5b1493){return _0x1afce8(_0x39ce11,_0x5b1493);},'NUUHU':function(_0x585479,_0x4a1ac0){return _0x585479===_0x4a1ac0;},'twqZZ':_0x4d381c(0x99)},_0x49d80c=_0x4fbe81[_0x4d381c(0xa4)](getEnvDir,_0x1a7b55);if(!existsSync(_0x49d80c))throw new Error('Profile\x20\x22'+_0x1a7b55+_0x4d381c(0xab));const _0x5e651b=await _0x4fbe81[_0x4d381c(0xa4)](loadSettings,_0x1a7b55),_0x4e65b7=_0x4fbe81['oqvSo'](getNestedValue,_0x5e651b,_0x2e49a0);if(_0x4fbe81[_0x4d381c(0xa8)](_0x4e65b7,undefined))console['log'](_0x4d381c(0xad));else _0x4fbe81[_0x4d381c(0xa8)](typeof _0x4e65b7,_0x4fbe81['twqZZ'])?console['log'](JSON[_0x4d381c(0xaf)](_0x4e65b7,null,0x2)):console['log'](_0x4e65b7);}export async function configList(_0xcf9987){const _0x1cd65d=_0x4a214e,_0x1e9c68={'WUNzd':function(_0x2a04b7,_0x54e6cf){return _0x2a04b7(_0x54e6cf);},'bkNrx':function(_0x21e474,_0x3fa244){return _0x21e474(_0x3fa244);},'Nqdyr':function(_0x212c96,_0x46da4f){return _0x212c96(_0x46da4f);},'EGjjZ':function(_0x28e830,_0x18717a){return _0x28e830(_0x18717a);}},_0x5eb8c1=_0x1e9c68[_0x1cd65d(0x9e)](getSettingsPath,_0xcf9987);if(!_0x1e9c68['bkNrx'](existsSync,_0x5eb8c1)){const _0x44b0ce=_0x1e9c68['WUNzd'](getEnvDir,_0xcf9987);if(!_0x1e9c68[_0x1cd65d(0xa6)](existsSync,_0x44b0ce))throw new Error(_0x1cd65d(0x9b)+_0xcf9987+'\x22\x20does\x20not\x20exist.');console[_0x1cd65d(0xa1)](_0x1cd65d(0x9a)+_0xcf9987+'\x22');return;}const _0x54bd50=await loadSettings(_0xcf9987),_0x6a4943=_0x1e9c68['EGjjZ'](formatSettings,_0x54bd50);!_0x6a4943?console[_0x1cd65d(0xa1)]('No\x20configuration\x20set\x20for\x20\x22'+_0xcf9987+'\x22'):console['log'](_0x6a4943);}export async function configUnset(_0x1dbd57,_0x830b0f){const _0x2801a3=_0x4a214e,_0x5c437d={'OxweO':function(_0x173f71,_0xe690a8){return _0x173f71(_0xe690a8);},'nQumd':function(_0x49f687,_0x1df29a,_0x3941dc){return _0x49f687(_0x1df29a,_0x3941dc);}},_0x4161d6=_0x5c437d[_0x2801a3(0xb2)](getEnvDir,_0x1dbd57);if(!_0x5c437d['OxweO'](existsSync,_0x4161d6))throw new Error(_0x2801a3(0x9b)+_0x1dbd57+'\x22\x20does\x20not\x20exist.');const _0x87577b=await loadSettings(_0x1dbd57),_0x2fca18=_0x5c437d['nQumd'](deleteNestedValue,_0x87577b,_0x830b0f);_0x2fca18?(await saveSettings(_0x1dbd57,_0x87577b),console['log']('Removed\x20'+_0x830b0f)):console['log'](_0x2801a3(0xb0)+_0x830b0f+'\x22\x20not\x20found');}
1
+ (function(_0x45ddec,_0x42715a){const _0x5031d1=_0x2bec,_0x9a880a=_0x45ddec();while(!![]){try{const _0x57f8d4=-parseInt(_0x5031d1(0xff))/0x1*(parseInt(_0x5031d1(0xee))/0x2)+parseInt(_0x5031d1(0xfc))/0x3*(parseInt(_0x5031d1(0xfb))/0x4)+parseInt(_0x5031d1(0xf3))/0x5*(parseInt(_0x5031d1(0xf0))/0x6)+parseInt(_0x5031d1(0xec))/0x7*(-parseInt(_0x5031d1(0xfd))/0x8)+parseInt(_0x5031d1(0xeb))/0x9*(-parseInt(_0x5031d1(0xf1))/0xa)+parseInt(_0x5031d1(0xe6))/0xb+parseInt(_0x5031d1(0xe8))/0xc;if(_0x57f8d4===_0x42715a)break;else _0x9a880a['push'](_0x9a880a['shift']());}catch(_0x39ab0d){_0x9a880a['push'](_0x9a880a['shift']());}}}(_0x536c,0x1c2cf));function _0x536c(){const _0x1f50d5=['8llriqH','object','1VVcIso','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','No\x20configuration\x20set\x20for\x20\x22','436183bcTBhk','Removed\x20','117876mfzcdd','rXhNj','pNTbM','18ZZZtxz','30604xINuaw','tEcnJ','360622OTTAwh','Profile\x20\x22','6138gRYKVE','24860VfPKQN',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','365cnemkn','\x20=\x20','stringify','BKpLb','ILRPa','dypCn','wwxHI','log','4MLopWj','542721GaVxeJ'];_0x536c=function(){return _0x1f50d5;};return _0x536c();}function _0x2bec(_0x47d53f,_0x2e3917){_0x47d53f=_0x47d53f-0xe5;const _0x536c07=_0x536c();let _0x2bec92=_0x536c07[_0x47d53f];return _0x2bec92;}import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseValue(_0x27f3ec,_0x324cb6){const _0x227ac0=_0x2bec,_0x2ddbcf={'abKoQ':'false'};if(BOOLEAN_KEYS['includes'](_0x27f3ec)){if(_0x324cb6==='true')return!![];if(_0x324cb6===_0x2ddbcf['abKoQ'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0x27f3ec+_0x227ac0(0xf2));}return _0x324cb6;}export async function configSet(_0x46765c,_0x3b28dc,_0x23a74b){const _0xa53c5b=_0x2bec,_0xd5c0be={'SZYZx':function(_0x31a942,_0x484976){return _0x31a942(_0x484976);},'BKpLb':function(_0x4b5862,_0x1cc56b,_0x55f8b4,_0x211560){return _0x4b5862(_0x1cc56b,_0x55f8b4,_0x211560);},'tEcnJ':function(_0x1565f5,_0x1a790a,_0x346a42){return _0x1565f5(_0x1a790a,_0x346a42);}},_0x41f8a7=_0xd5c0be['SZYZx'](getEnvDir,_0x46765c);if(!_0xd5c0be['SZYZx'](existsSync,_0x41f8a7))throw new Error('Profile\x20\x22'+_0x46765c+_0xa53c5b(0x100)+_0x46765c);const _0x57c08d=await _0xd5c0be['SZYZx'](loadSettings,_0x46765c),_0x3895e5=parseValue(_0x3b28dc,_0x23a74b);_0xd5c0be[_0xa53c5b(0xf6)](setNestedValue,_0x57c08d,_0x3b28dc,_0x3895e5),await _0xd5c0be[_0xa53c5b(0xed)](saveSettings,_0x46765c,_0x57c08d),console[_0xa53c5b(0xfa)]('Set\x20'+_0x3b28dc+_0xa53c5b(0xf4)+_0x3895e5);}export async function configGet(_0x3414f2,_0x39de2f){const _0x49f420=_0x2bec,_0x37c6c3={'wwxHI':function(_0xf40822,_0x1a6060){return _0xf40822(_0x1a6060);},'ILRPa':function(_0x12ce60,_0x323198){return _0x12ce60===_0x323198;},'dypCn':function(_0xec04b8,_0x46e073){return _0xec04b8===_0x46e073;},'gOrvz':_0x49f420(0xfe)},_0x427c93=_0x37c6c3['wwxHI'](getEnvDir,_0x3414f2);if(!existsSync(_0x427c93))throw new Error(_0x49f420(0xef)+_0x3414f2+'\x22\x20does\x20not\x20exist.');const _0x501f1e=await _0x37c6c3[_0x49f420(0xf9)](loadSettings,_0x3414f2),_0x29e018=getNestedValue(_0x501f1e,_0x39de2f);if(_0x37c6c3[_0x49f420(0xf7)](_0x29e018,undefined))console[_0x49f420(0xfa)]('(not\x20set)');else _0x37c6c3[_0x49f420(0xf8)](typeof _0x29e018,_0x37c6c3['gOrvz'])?console['log'](JSON[_0x49f420(0xf5)](_0x29e018,null,0x2)):console[_0x49f420(0xfa)](_0x29e018);}export async function configList(_0x35783d){const _0x1992cc=_0x2bec,_0x233596={'rXhNj':function(_0x1cd0b3,_0x5023d0){return _0x1cd0b3(_0x5023d0);}},_0x504fc0=getSettingsPath(_0x35783d);if(!_0x233596['rXhNj'](existsSync,_0x504fc0)){const _0x437d37=_0x233596['rXhNj'](getEnvDir,_0x35783d);if(!_0x233596[_0x1992cc(0xe9)](existsSync,_0x437d37))throw new Error('Profile\x20\x22'+_0x35783d+'\x22\x20does\x20not\x20exist.');console[_0x1992cc(0xfa)](_0x1992cc(0xe5)+_0x35783d+'\x22');return;}const _0x78e566=await _0x233596[_0x1992cc(0xe9)](loadSettings,_0x35783d),_0x249cdf=_0x233596[_0x1992cc(0xe9)](formatSettings,_0x78e566);!_0x249cdf?console[_0x1992cc(0xfa)](_0x1992cc(0xe5)+_0x35783d+'\x22'):console['log'](_0x249cdf);}export async function configUnset(_0x31eff6,_0x459a58){const _0x2d4b16=_0x2bec,_0x15bd18={'sdCgI':function(_0x1bbc44,_0x5add6f){return _0x1bbc44(_0x5add6f);},'pNTbM':function(_0x20a40e,_0x1f08de,_0x53f050){return _0x20a40e(_0x1f08de,_0x53f050);}},_0x507d86=getEnvDir(_0x31eff6);if(!existsSync(_0x507d86))throw new Error('Profile\x20\x22'+_0x31eff6+'\x22\x20does\x20not\x20exist.');const _0x335e74=await _0x15bd18['sdCgI'](loadSettings,_0x31eff6),_0x452771=deleteNestedValue(_0x335e74,_0x459a58);_0x452771?(await _0x15bd18[_0x2d4b16(0xea)](saveSettings,_0x31eff6,_0x335e74),console[_0x2d4b16(0xfa)](_0x2d4b16(0xe7)+_0x459a58)):console['log']('Key\x20\x22'+_0x459a58+'\x22\x20not\x20found');}
@@ -1 +1 @@
1
- const _0x5539e7=_0xd630;(function(_0x3acf4f,_0x57a113){const _0x214195=_0xd630,_0x207565=_0x3acf4f();while(!![]){try{const _0x56d3dc=parseInt(_0x214195(0x1f7))/0x1*(parseInt(_0x214195(0x205))/0x2)+-parseInt(_0x214195(0x206))/0x3*(parseInt(_0x214195(0x1fa))/0x4)+parseInt(_0x214195(0x1fd))/0x5*(parseInt(_0x214195(0x1f0))/0x6)+parseInt(_0x214195(0x1ef))/0x7+-parseInt(_0x214195(0x1ee))/0x8*(-parseInt(_0x214195(0x213))/0x9)+-parseInt(_0x214195(0x1f9))/0xa*(-parseInt(_0x214195(0x20f))/0xb)+parseInt(_0x214195(0x1f8))/0xc*(parseInt(_0x214195(0x201))/0xd);if(_0x56d3dc===_0x57a113)break;else _0x207565['push'](_0x207565['shift']());}catch(_0x3cfd86){_0x207565['push'](_0x207565['shift']());}}}(_0x3bee,0xe483e));function _0xd630(_0x535026,_0x1d43e9){_0x535026=_0x535026-0x1ee;const _0x3bee69=_0x3bee();let _0xd630e3=_0x3bee69[_0x535026];return _0xd630e3;}import{readdir,stat}from'fs/promises';function _0x3bee(){const _0x509e7f=['pXyaR','includes','1cksFCT','348tVrFji','10HaRXaT','12NlUtkb','log','Run:\x20ranger\x20profile\x20add\x20<profile-name>','5xnLLnO','kFsmX','sessions','kJHST','62348FCzBUh','.txt','environmentDetails','YpehF','452484JdfPvP','1547871KhCyPE','local','EYdwj','\x20\x20\x20\x20\x20\x20URL:\x20','baseUrl','push','\x0aProfiles:','legacy','\x0aNo\x20profiles\x20found.','1850321SZtiPz','sort','length','UWKdw','714501dXKpdx','104KazkDT','1911028rTxVli','3871626uRCVdo','iZOaL','bug-bashes','isDirectory','\x0a*\x20=\x20active\x20profile'];_0x3bee=function(){return _0x509e7f;};return _0x3bee();}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=[_0x5539e7(0x1ff),_0x5539e7(0x1f2),'reports','local','ci'];export async function getEnvNames(){const _0x284660=_0x5539e7,_0x244c55={'YpehF':function(_0x2c3cc7){return _0x2c3cc7();},'pXyaR':function(_0x4b1ee6,_0x5ac29c,_0x3fe8cc){return _0x4b1ee6(_0x5ac29c,_0x3fe8cc);},'WlPQS':function(_0x5d2342,_0x48890e){return _0x5d2342(_0x48890e);},'kJHST':function(_0x512de2,_0xda0c4c){return _0x512de2(_0xda0c4c);},'EYdwj':function(_0x4e681e,_0x5838fe,_0x18d5fa){return _0x4e681e(_0x5838fe,_0x18d5fa);},'Mzssp':function(_0x39a98e,_0x107ee5,_0x1150b8){return _0x39a98e(_0x107ee5,_0x1150b8);},'tNGzq':function(_0x1c9d5d,_0x48b44b){return _0x1c9d5d(_0x48b44b);},'tNTzr':function(_0x5d168a,_0x40c6f4){return _0x5d168a(_0x40c6f4);},'dQBCv':'settings.json'},_0x411f17=getRangerDir();if(!existsSync(_0x411f17))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4740cf=await _0x244c55[_0x284660(0x204)](readActiveProfileName),_0x17d429=[],_0x4d361d={},_0x2fa25e=_0x244c55[_0x284660(0x1f5)](join,_0x411f17,_0x284660(0x207));if(_0x244c55['WlPQS'](existsSync,_0x2fa25e)){const _0x507743=await _0x244c55[_0x284660(0x200)](readdir,_0x2fa25e);for(const _0x328b4 of _0x507743){const _0x15f2b1=_0x244c55[_0x284660(0x208)](join,_0x2fa25e,_0x328b4),_0x5cf830=await stat(_0x15f2b1);_0x5cf830['isDirectory']()&&(_0x17d429['push'](_0x328b4),_0x4d361d[_0x328b4]='local');}}const _0x4d497c=_0x244c55['Mzssp'](join,_0x411f17,'ci');if(existsSync(_0x4d497c)){const _0x452be5=await readdir(_0x4d497c);for(const _0x5d3c7a of _0x452be5){const _0x7a0acb=join(_0x4d497c,_0x5d3c7a),_0x1eb5c4=await _0x244c55['tNGzq'](stat,_0x7a0acb);_0x1eb5c4['isDirectory']()&&(_0x17d429[_0x284660(0x20b)](_0x5d3c7a),_0x4d361d[_0x5d3c7a]='ci');}}const _0x175999=await readdir(_0x411f17);for(const _0x207756 of _0x175999){if(NON_ENV_DIRS[_0x284660(0x1f6)](_0x207756))continue;if(_0x207756['startsWith']('.'))continue;if(_0x207756['endsWith'](_0x284660(0x202)))continue;const _0x1cfe4f=join(_0x411f17,_0x207756),_0x56e280=await stat(_0x1cfe4f);_0x56e280[_0x284660(0x1f3)]()&&_0x244c55['tNTzr'](existsSync,join(_0x1cfe4f,_0x244c55['dQBCv']))&&(!_0x17d429[_0x284660(0x1f6)](_0x207756)&&(_0x17d429['push'](_0x207756),_0x4d361d[_0x207756]=_0x284660(0x20d)));}return{'envNames':_0x17d429,'activeEnv':_0x4740cf,'envTypes':_0x4d361d};}export async function envList(){const _0x4a8ca2=_0x5539e7,_0x30092e={'oozZG':_0x4a8ca2(0x20e),'iZOaL':_0x4a8ca2(0x1fc),'UWKdw':_0x4a8ca2(0x20c),'kFsmX':function(_0x5b0da8,_0xb8e3a1){return _0x5b0da8===_0xb8e3a1;},'KyArq':'legacy'},{envNames:_0x3b449d,activeEnv:_0xc76a93,envTypes:_0x30e7c3}=await getEnvNames();if(_0x3b449d[_0x4a8ca2(0x211)]===0x0){console['log'](_0x30092e['oozZG']),console['log'](_0x30092e[_0x4a8ca2(0x1f1)]);return;}console[_0x4a8ca2(0x1fb)](_0x30092e[_0x4a8ca2(0x212)]);for(const _0x588605 of _0x3b449d[_0x4a8ca2(0x210)]()){const _0x496efb=_0x30092e[_0x4a8ca2(0x1fe)](_0x588605,_0xc76a93),_0x4bf1dc=_0x30e7c3[_0x588605]||'local',_0x331580=await loadSettings(_0x588605),_0x10e004=_0x30092e['kFsmX'](_0x4bf1dc,_0x30092e['KyArq'])?'':'\x20['+_0x4bf1dc+']';console['log']('\x20\x20'+(_0x496efb?'*\x20':'\x20\x20')+_0x588605+_0x10e004),_0x331580[_0x4a8ca2(0x20a)]&&console['log'](_0x4a8ca2(0x209)+_0x331580['baseUrl']),_0x331580[_0x4a8ca2(0x203)]&&console[_0x4a8ca2(0x1fb)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x331580['environmentDetails']);}_0xc76a93&&console['log'](_0x4a8ca2(0x1f4));}
1
+ const _0x586fd7=_0x2b5a;(function(_0x504954,_0x1658f7){const _0x1a22c0=_0x2b5a,_0x341c99=_0x504954();while(!![]){try{const _0x6e44c0=parseInt(_0x1a22c0(0x117))/0x1*(parseInt(_0x1a22c0(0x10b))/0x2)+-parseInt(_0x1a22c0(0x112))/0x3*(parseInt(_0x1a22c0(0x10f))/0x4)+-parseInt(_0x1a22c0(0x101))/0x5*(-parseInt(_0x1a22c0(0x116))/0x6)+parseInt(_0x1a22c0(0x110))/0x7*(parseInt(_0x1a22c0(0x100))/0x8)+-parseInt(_0x1a22c0(0x104))/0x9*(-parseInt(_0x1a22c0(0x105))/0xa)+parseInt(_0x1a22c0(0x111))/0xb+parseInt(_0x1a22c0(0x108))/0xc*(-parseInt(_0x1a22c0(0x119))/0xd);if(_0x6e44c0===_0x1658f7)break;else _0x341c99['push'](_0x341c99['shift']());}catch(_0x218492){_0x341c99['push'](_0x341c99['shift']());}}}(_0x57d3,0xcce8a));function _0x57d3(){const _0x29c79d=['SktWG','log','ZaOXd','WKCfz','dAsDM','17288ZaNiam','20ujhNbB','zqPTR','bug-bashes','18KfBAbA','6004010UROwJZ','\x0a*\x20=\x20active\x20profile','exJmc','30154764kFLenq','\x20\x20\x20\x20\x20\x20Details:\x20','settings.json','14lkKBpL','local','environmentDetails','push','4sfgTuz','1827qazalI','15071738hsEZGm','1941474ARwcSt','baseUrl','nMWPA','legacy','294912GLsNmn','95396uGAKrq','NIZkT','13bmHpDd','.txt','\x0aProfiles:','Run:\x20ranger\x20profile\x20add\x20<profile-name>'];_0x57d3=function(){return _0x29c79d;};return _0x57d3();}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions',_0x586fd7(0x103),'reports',_0x586fd7(0x10c),'ci'];function _0x2b5a(_0x138af2,_0x329640){_0x138af2=_0x138af2-0xfc;const _0x57d34c=_0x57d3();let _0x2b5a02=_0x57d34c[_0x138af2];return _0x2b5a02;}export async function getEnvNames(){const _0x59ccf7=_0x586fd7,_0x131539={'WkdFK':function(_0x12864c){return _0x12864c();},'ZaOXd':function(_0x52d8b7,_0x50cd70,_0x399990){return _0x52d8b7(_0x50cd70,_0x399990);},'Iyphg':function(_0x529b08,_0x117b36){return _0x529b08(_0x117b36);},'zFebh':_0x59ccf7(0x10c),'hjFXD':function(_0x4c7323,_0x3baa57){return _0x4c7323(_0x3baa57);},'cJmDk':function(_0x106afb,_0x26e9ed){return _0x106afb(_0x26e9ed);},'zqPTR':function(_0x98b83a,_0x54e408){return _0x98b83a(_0x54e408);},'JzWNu':_0x59ccf7(0x115)},_0x398aba=getRangerDir();if(!existsSync(_0x398aba))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x17c2d5=await _0x131539['WkdFK'](readActiveProfileName),_0xcf2442=[],_0x34b98e={},_0x17e8fa=_0x131539[_0x59ccf7(0xfd)](join,_0x398aba,_0x59ccf7(0x10c));if(existsSync(_0x17e8fa)){const _0xa274f0=await readdir(_0x17e8fa);for(const _0x3ae389 of _0xa274f0){const _0x102227=join(_0x17e8fa,_0x3ae389),_0x4596b6=await _0x131539['Iyphg'](stat,_0x102227);_0x4596b6['isDirectory']()&&(_0xcf2442[_0x59ccf7(0x10e)](_0x3ae389),_0x34b98e[_0x3ae389]=_0x131539['zFebh']);}}const _0x28823f=join(_0x398aba,'ci');if(_0x131539['hjFXD'](existsSync,_0x28823f)){const _0xd461db=await _0x131539['cJmDk'](readdir,_0x28823f);for(const _0x563fa6 of _0xd461db){const _0x55ba21=join(_0x28823f,_0x563fa6),_0x24698e=await stat(_0x55ba21);_0x24698e['isDirectory']()&&(_0xcf2442[_0x59ccf7(0x10e)](_0x563fa6),_0x34b98e[_0x563fa6]='ci');}}const _0x37894f=await readdir(_0x398aba);for(const _0x38db7e of _0x37894f){if(NON_ENV_DIRS['includes'](_0x38db7e))continue;if(_0x38db7e['startsWith']('.'))continue;if(_0x38db7e['endsWith'](_0x59ccf7(0x11a)))continue;const _0x387a09=join(_0x398aba,_0x38db7e),_0x4e19a6=await stat(_0x387a09);_0x4e19a6['isDirectory']()&&_0x131539[_0x59ccf7(0x102)](existsSync,join(_0x387a09,_0x59ccf7(0x10a)))&&(!_0xcf2442['includes'](_0x38db7e)&&(_0xcf2442[_0x59ccf7(0x10e)](_0x38db7e),_0x34b98e[_0x38db7e]=_0x131539['JzWNu']));}return{'envNames':_0xcf2442,'activeEnv':_0x17c2d5,'envTypes':_0x34b98e};}export async function envList(){const _0x191154=_0x586fd7,_0x5e89d7={'NIZkT':function(_0x54d769){return _0x54d769();},'SktWG':function(_0x1fc87a,_0xe0bbd8){return _0x1fc87a===_0xe0bbd8;},'WKCfz':'\x0aNo\x20profiles\x20found.','nMWPA':function(_0x5a9304,_0x209d67){return _0x5a9304===_0x209d67;},'exJmc':function(_0x867be8,_0x3cda10){return _0x867be8(_0x3cda10);},'dAsDM':'legacy'},{envNames:_0x131e37,activeEnv:_0x8c7ed4,envTypes:_0x30127a}=await _0x5e89d7[_0x191154(0x118)](getEnvNames);if(_0x5e89d7[_0x191154(0x11d)](_0x131e37['length'],0x0)){console['log'](_0x5e89d7[_0x191154(0xfe)]),console['log'](_0x191154(0x11c));return;}console['log'](_0x191154(0x11b));for(const _0xa4c531 of _0x131e37['sort']()){const _0x5858cf=_0x5e89d7[_0x191154(0x114)](_0xa4c531,_0x8c7ed4),_0x339d0c=_0x30127a[_0xa4c531]||'local',_0x49795f=await _0x5e89d7[_0x191154(0x107)](loadSettings,_0xa4c531),_0x538139=_0x5e89d7['nMWPA'](_0x339d0c,_0x5e89d7[_0x191154(0xff)])?'':'\x20['+_0x339d0c+']';console['log']('\x20\x20'+(_0x5858cf?'*\x20':'\x20\x20')+_0xa4c531+_0x538139),_0x49795f['baseUrl']&&console[_0x191154(0xfc)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x49795f[_0x191154(0x113)]),_0x49795f[_0x191154(0x10d)]&&console[_0x191154(0xfc)](_0x191154(0x109)+_0x49795f[_0x191154(0x10d)]);}_0x8c7ed4&&console[_0x191154(0xfc)](_0x191154(0x106));}
@@ -1 +1 @@
1
- function _0x42a3(){const _0x46bee6=['/api/v1/mcp/browser-sessions/','\x20/\x20','RecJt','split','gitRepoUrl','\x20\x20\x20\x20\x20ID:\x20','\x20\x20💬\x20','yxLfk','ELhOw','reports','QrpAV','1NYHPjn','\x1b[0m','No\x20scenarios\x20found.','Next\x20page:\x20ranger\x20list\x20--offset\x20','browserSessionId','output','env','assets','verification_in_progress','tzcQd','lsdFQ','utf-8','name','incompleteItems','4990794eBguxG','completedAt','checklistItems','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','LDsnr','ziEVL','2798109PGroeq','GWTIg','createdAt','nYuwk','aVlqW','stepName','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','currentSessionId','CLAUDE_SESSION_ID','write','description','tHHiU','parentItemId','\x20concluded.','quPBR','incompleteReason','\x20\x20\x20Progress:\x20','\x0a❌\x20Invalid\x20scenario\x20index:\x20','RojiB','\x20verified','JGyNK',':\x20\x22','evDWG','\x0a✅\x20Restored\x20feature\x20review:\x20','GwRrh','scenario','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','kpBek','xzEDQ','50lAdbdP','version','unaddressedComments','sknqb','kmqmT','DBPgo','toLocaleDateString','MfVwp','length','jzfBk','pop','closed','pdgyz','kHCvH','rtAgn','ijcsd','VDykV','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','iteration','\x20\x20\x20\x20\x20\x20Incomplete:\x20','assetType','terminalReason','TZAaW','CRXNh','\x20\x20\x20\x20\x20\x20Approved','olDcG','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','trim','stats','EGMOs','toLocaleString','KcwQD','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x0a⚠️\x20\x20','ftgZP','timing','VDVYy','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','ready','rThpx','\x20at\x20[','\x0a✅\x20Resumed\x20feature\x20review:\x20','5677160TppIXr','canonicalFlow','\x20\x20\x20\x20','63ZptVam','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','type','\x20\x20\x20▶️\x20Started\x20session\x20','error','\x20blocked','\x20of\x20','isTTY','\x20—\x20','pUEOF','git\x20remote\x20get-url\x20origin','includeDeleted','trimEnd','replace','agentResponse','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','MrTJg','approved','ufTUf','log','Screenshot\x20','blockedReason','authorName','uhogo','en-US','stdout','screenshot','gitBranch','assetUrl','vWZWX','qkXio','gjIih','join','map','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','FiaxO','...','status','ATEZL','6645HsRJdb','position','PKNyF','get','json','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','blockedItems','oeffw','\x20\x20\x20\x20\x20Branch:\x20','JxBDa','filter','QGIaT','domRef','Current\x20session\x20not\x20found.','yfhWJ','gfOkJ','xWNxp','LtTaf','warn','stringify','has','totalCount','zRNkM','coordinates','gMbzK','element','IrZMY','4228ClJUui','\x20\x20\x20\x20\x20📋\x20Selector:\x20','canceledReason','blocked','wCtmR','authorEmail','\x20[has\x20reviewer\x20feedback]','notes','Showing\x20','aNFnx','point','hhhfi','spatial','\x0a✅\x20Session\x20is\x20already\x20completed.','sessionId','find','QzVdj','github.com/','895296THVAkq','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','textContent','hupaA','selector','in_progress','3141470GRHWhx','\x20\x20\x20Completed:\x20','\x20\x20\x20Description:\x20','dashboardUrl','latestReview','pipe','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20Expected\x20flow:','toFixed','Cannot\x20conclude\x20session\x20with\x20status:\x20','kQmNV','SmiEL','\x20--limit\x20','completed','submittedAt','\x20Session\x20','QOdXJ','uBoBz','LOivW','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','scenarios','VTbaN','active-feature.txt','51269867nVSiis','No\x20sessions\x20found.','\x0a✅\x20Feature\x20review\x20created:\x20','\x20\x20\x20ID:\x20'];_0x42a3=function(){return _0x46bee6;};return _0x42a3();}const _0x492c6d=_0x56e7;(function(_0x21d07a,_0x480696){const _0x58578e=_0x56e7,_0x517c7d=_0x21d07a();while(!![]){try{const _0x1fef29=-parseInt(_0x58578e(0x13d))/0x1*(-parseInt(_0x58578e(0x117))/0x2)+parseInt(_0x58578e(0x14b))/0x3+parseInt(_0x58578e(0x1dd))/0x4*(parseInt(_0x58578e(0x1c2))/0x5)+parseInt(_0x58578e(0x111))/0x6*(-parseInt(_0x58578e(0x19b))/0x7)+parseInt(_0x58578e(0x198))/0x8+parseInt(_0x58578e(0x151))/0x9*(parseInt(_0x58578e(0x16e))/0xa)+-parseInt(_0x58578e(0x12e))/0xb;if(_0x1fef29===_0x480696)break;else _0x517c7d['push'](_0x517c7d['shift']());}catch(_0x281bd7){_0x517c7d['push'](_0x517c7d['shift']());}}}(_0x42a3,0xdb943));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x29615f 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=_0x492c6d(0x12d),bold=_0x1dc034=>'\x1b[1m'+_0x1dc034+_0x492c6d(0x13e);function getGitRepoUrl(){const _0x1ceff0=_0x492c6d,_0x4fd855={'PIqDK':_0x1ceff0(0x1a5),'iNtKN':'pipe'};try{const _0x2a2d86=execSync(_0x4fd855['PIqDK'],{'encoding':'utf-8','stdio':[_0x1ceff0(0x11c),'pipe',_0x4fd855['iNtKN']]})[_0x1ceff0(0x189)]();return _0x2a2d86['replace'](/\.git$/,'')[_0x1ceff0(0x1a8)](/^git@github\.com:/,_0x1ceff0(0x110))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x24be31=_0x492c6d,_0x55e57b={'euCvA':function(_0x3d585b,_0x22907e,_0x50ddf0){return _0x3d585b(_0x22907e,_0x50ddf0);},'gdfMa':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','FMFBT':_0x24be31(0x148),'LDsnr':'pipe'};try{return _0x55e57b['euCvA'](execSync,_0x55e57b['gdfMa'],{'encoding':_0x55e57b['FMFBT'],'stdio':[_0x55e57b[_0x24be31(0x14f)],_0x24be31(0x11c),'pipe']})[_0x24be31(0x189)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x539496=_0x492c6d,_0x36d633={'dzsyT':function(_0x1942a6,_0x13bd41,_0x10b343){return _0x1942a6(_0x13bd41,_0x10b343);},'jkdVs':function(_0x501212){return _0x501212();},'kmqmT':_0x539496(0x148)},_0x4546df=_0x36d633['dzsyT'](join,_0x36d633['jkdVs'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4546df))return null;try{const _0x241822=await readFile(_0x4546df,_0x36d633[_0x539496(0x172)]);return _0x241822['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x18d453){const _0x55caf5=_0x492c6d,_0x439dc0={'ATEZL':function(_0x25d07c,_0x2f171b,_0x36276c){return _0x25d07c(_0x2f171b,_0x36276c);},'VTbaN':function(_0x51f0b7,_0x23e6b2,_0x28d7ba,_0x2eb577){return _0x51f0b7(_0x23e6b2,_0x28d7ba,_0x2eb577);},'FiaxO':_0x55caf5(0x148)},_0x4a5352=getRangerDir(),_0x2fadda=join(_0x4a5352,ACTIVE_FEATURE_FILE);!existsSync(_0x4a5352)&&await _0x439dc0[_0x55caf5(0x1c1)](mkdir,_0x4a5352,{'recursive':!![]}),await _0x439dc0[_0x55caf5(0x12c)](writeFile,_0x2fadda,_0x18d453,_0x439dc0[_0x55caf5(0x1be)]);}function getProgressDisplay(_0x4b3279){const _0x2265b6=_0x492c6d,_0x2ed766={'ziEVL':function(_0x5f2a90,_0x1d5d9b){return _0x5f2a90+_0x1d5d9b;},'ftgZP':function(_0x5af7d4,_0x2779b7){return _0x5af7d4+_0x2779b7;},'RecJt':function(_0x4a9a4f,_0x7484b1){return _0x4a9a4f+_0x7484b1;},'stvGt':function(_0x399d3d,_0x31f977){return _0x399d3d*_0x31f977;},'lsdFQ':function(_0x61c02,_0x59e859){return _0x61c02/_0x59e859;},'uBoBz':function(_0x2fc164,_0x259921){return _0x2fc164>_0x259921;}},_0x44fb10=_0x4b3279['verifiedItems']||0x0,_0x47083c=_0x4b3279['verificationInProgressItems']||0x0,_0x309d46=_0x4b3279[_0x2265b6(0x1c8)]||0x0,_0x348a55=_0x4b3279[_0x2265b6(0x14a)]||0x0,_0x1ed48b=_0x4b3279['pendingItems']||0x0,_0x530e4b=_0x2ed766[_0x2265b6(0x150)](_0x2ed766[_0x2265b6(0x190)](_0x2ed766[_0x2265b6(0x134)](_0x44fb10+_0x47083c,_0x309d46),_0x348a55),_0x1ed48b);if(_0x530e4b===0x0)return'-';const _0x39b100=0xa,_0x3e12a6=Math['round'](_0x2ed766['stvGt'](_0x2ed766[_0x2265b6(0x147)](_0x44fb10,_0x530e4b),_0x39b100)),_0x1064aa='█'['repeat'](_0x3e12a6)+'░'['repeat'](_0x39b100-_0x3e12a6),_0x100beb=[];if(_0x2ed766[_0x2265b6(0x128)](_0x309d46,0x0))_0x100beb['push'](_0x309d46+_0x2265b6(0x1a0));if(_0x348a55>0x0)_0x100beb['push'](_0x348a55+'\x20incomplete');if(_0x47083c>0x0)_0x100beb['push'](_0x47083c+'\x20in\x20progress');const _0x31ce26=_0x2ed766['uBoBz'](_0x100beb[_0x2265b6(0x176)],0x0)?'\x20('+_0x100beb['join'](',\x20')+')':'';return _0x1064aa+'\x20'+_0x44fb10+'/'+_0x530e4b+_0x2265b6(0x164)+_0x31ce26;}function getCurrentSessionItems(_0x73e644,_0xd392b8){const _0x5cd922=_0x492c6d;if(!_0x73e644['currentSessionId'])return _0xd392b8['filter'](_0x41f37e=>!_0x41f37e['sessionId']);return _0xd392b8[_0x5cd922(0x1cc)](_0x3476bf=>_0x3476bf[_0x5cd922(0x10d)]===_0x73e644['currentSessionId']||!_0x3476bf[_0x5cd922(0x10d)]);}function displayFeature(_0x300bd2,_0x488480){const _0x398d12=_0x492c6d,_0xa27599={'nYuwk':function(_0x2a0c6b,_0x5c159d){return _0x2a0c6b>_0x5c159d;},'tzcQd':function(_0x2acc34,_0x434f0e){return _0x2acc34<_0x434f0e;},'ogslj':function(_0x105e99,_0x1e67c4){return _0x105e99===_0x1e67c4;},'aVlqW':_0x398d12(0x1ac),'evDWG':function(_0x112cf0,_0x1256c9){return _0x112cf0===_0x1256c9;},'TZAaW':'verified','siKJu':'incomplete','QGIaT':_0x398d12(0x1e0),'QzVdj':'closed','LmwfE':'verification_in_progress','qFaHN':function(_0x3a54d6,_0x399247){return _0x3a54d6!==_0x399247;},'KyIxc':function(_0x3aa7d5,_0x4da89c){return _0x3aa7d5!==_0x4da89c;},'GWTIg':function(_0x34bdff,_0x832a3d){return _0x34bdff===_0x832a3d;}};console[_0x398d12(0x1ae)]('\x0a'+_0x300bd2['name']+'\x20('+_0x300bd2[_0x398d12(0x11a)]+')');_0x300bd2['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x300bd2['stats']));_0x300bd2['description']&&console['log'](_0x398d12(0x119)+_0x300bd2['description']);_0x300bd2[_0x398d12(0x136)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x300bd2['gitRepoUrl']);_0x300bd2['gitBranch']&&console[_0x398d12(0x1ae)]('\x20\x20\x20Branch:\x20'+_0x300bd2['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x300bd2[_0x398d12(0x153)])[_0x398d12(0x18c)]());_0x300bd2[_0x398d12(0x14c)]&&console['log'](_0x398d12(0x118)+new Date(_0x300bd2[_0x398d12(0x14c)])['toLocaleString']());if(_0x488480&&_0xa27599[_0x398d12(0x154)](_0x488480['length'],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x5d715b=0x0;_0xa27599[_0x398d12(0x146)](_0x5d715b,_0x488480['length']);_0x5d715b++){const _0xe2673b=_0x488480[_0x5d715b];let _0x22df10;if(_0xe2673b[_0x398d12(0x1c0)]==='closed'&&_0xa27599['ogslj'](_0xe2673b[_0x398d12(0x183)],_0xa27599['aVlqW']))_0x22df10='✅';else{if(_0xa27599[_0x398d12(0x167)](_0xe2673b['status'],_0xa27599[_0x398d12(0x184)]))_0x22df10='🟢';else{if(_0xa27599['ogslj'](_0xe2673b['status'],_0xa27599['siKJu']))_0x22df10='🟠';else{if(_0xa27599[_0x398d12(0x167)](_0xe2673b['status'],_0xa27599['QGIaT']))_0x22df10='🛑';else{if(_0xe2673b['status']===_0xa27599['QzVdj'])_0x22df10='⛔';else _0xa27599[_0x398d12(0x167)](_0xe2673b[_0x398d12(0x1c0)],_0xa27599['LmwfE'])?_0x22df10='⏳':_0x22df10='⬜';}}}}const _0x6a926f=_0xe2673b['version']>0x1?'\x20(v'+_0xe2673b[_0x398d12(0x16f)]+')':'',_0x5311b4=_0xe2673b[_0x398d12(0x16f)]>0x1&&_0xe2673b[_0x398d12(0x15d)]&&_0xa27599['qFaHN'](_0xe2673b['status'],'closed')&&_0xa27599['KyIxc'](_0xe2673b['status'],_0xa27599[_0x398d12(0x184)])?_0x398d12(0x1e3):'';console['log']('\x20\x20\x20'+(_0x5d715b+0x1)+'.\x20'+_0x22df10+'\x20'+_0xe2673b[_0x398d12(0x15b)]+_0x6a926f+_0x5311b4);_0xe2673b['status']===_0xa27599[_0x398d12(0x1cd)]&&_0xe2673b['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0xe2673b['blockedReason']);_0xa27599[_0x398d12(0x152)](_0xe2673b['status'],'incomplete')&&_0xe2673b['incompleteReason']&&console['log'](_0x398d12(0x181)+_0xe2673b['incompleteReason']);if(_0xa27599['evDWG'](_0xe2673b['status'],_0xa27599['QzVdj'])&&_0xe2673b['terminalReason']===_0xa27599[_0x398d12(0x155)])console[_0x398d12(0x1ae)](_0x398d12(0x186));else _0xe2673b[_0x398d12(0x1c0)]===_0xa27599[_0x398d12(0x10f)]&&_0xe2673b[_0x398d12(0x1df)]&&console[_0x398d12(0x1ae)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0xe2673b['canceledReason']);}}}export async function featureCreate(_0xf6cb54,_0x3e83dc){const _0xc9b646=_0x492c6d,_0x1ce76f={'bHgzd':function(_0x4fb7ea){return _0x4fb7ea();},'KAilK':function(_0x474558,_0x36a8db){return _0x474558===_0x36a8db;},'RojiB':function(_0x31c920,_0x51f707){return _0x31c920(_0x51f707);},'CPPaP':function(_0x9f5bce){return _0x9f5bce();},'tHHiU':function(_0x1b49f2){return _0x1b49f2();},'uvvxT':'\x0aCreating\x20feature\x20review...','kpBek':function(_0x1e21b0,_0xd7bfa2){return _0x1e21b0(_0xd7bfa2);},'KFxBJ':function(_0x199c77,_0x5a1dbb,_0xa9b5df){return _0x199c77(_0x5a1dbb,_0xa9b5df);}},{envNames:_0x4fe83b}=await _0x1ce76f['bHgzd'](getEnvNames);_0x1ce76f['KAilK'](_0x4fe83b[_0xc9b646(0x176)],0x0)&&console[_0xc9b646(0x1d4)]('\x0a'+_0x1ce76f[_0xc9b646(0x163)](formatProfileRequiredMessage,_0xf6f54c=>bold(_0xf6f54c)));const _0x3a7847=_0x3e83dc['scenarios']?_0x3e83dc[_0xc9b646(0x12b)][_0xc9b646(0x1bc)](_0x35187d=>_0x35187d['trim']()):[],_0x3baa3c=_0x1ce76f['CPPaP'](getGitRepoUrl),_0x5996cb=_0x1ce76f[_0xc9b646(0x15c)](getGitBranch);console['log'](_0x1ce76f['uvvxT']);const _0x4b7a55=await _0x1ce76f[_0xc9b646(0x163)](createFeature,{'name':_0xf6cb54,'description':_0x3e83dc['description'],'checklist':_0x3a7847,'gitRepoUrl':_0x3baa3c,'gitBranch':_0x5996cb});await _0x1ce76f[_0xc9b646(0x16c)](setActiveFeatureId,_0x4b7a55['id']),await _0x1ce76f['RojiB'](tryStartCurrentSession,_0x4b7a55['id']);const _0x48e6f1=process['env'][_0xc9b646(0x159)];_0x48e6f1&&_0x1ce76f['KFxBJ'](registerSession,_0x48e6f1,_0x4b7a55['id']),console[_0xc9b646(0x1ae)](_0xc9b646(0x130)+_0x4b7a55['id']),displayFeature(_0x4b7a55,_0x4b7a55[_0xc9b646(0x14d)]),console['log'](_0xc9b646(0x18e));}export async function featureList(_0x23e8e3){const _0x426727=_0x492c6d,_0x558bd6={'hupaA':function(_0x524ef2){return _0x524ef2();},'GwRrh':function(_0xa9ba7d){return _0xa9ba7d();},'aNFnx':function(_0x4b3e87,_0xe7b349){return _0x4b3e87(_0xe7b349);},'WOjhI':function(_0x4008b2,_0x288b6c){return _0x4008b2+_0x288b6c;},'nUhGb':'\x20--current-branch'},_0x203b01={'limit':_0x23e8e3['limit']??0xa,'offset':_0x23e8e3['offset']??0x0,'includeDeleted':_0x23e8e3[_0x426727(0x1a6)]};_0x23e8e3['currentBranch']&&(_0x203b01[_0x426727(0x136)]=_0x558bd6[_0x426727(0x114)](getGitRepoUrl),_0x203b01[_0x426727(0x1b6)]=_0x558bd6[_0x426727(0x169)](getGitBranch));const _0x36335c=await _0x558bd6[_0x426727(0x1e6)](listFeatures,_0x203b01);if(_0x36335c['items'][_0x426727(0x176)]===0x0){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x1cfb59=_0x36335c['totalCount']>_0x36335c['items']['length']?_0x426727(0x1e5)+_0x36335c['items'][_0x426727(0x176)]+_0x426727(0x1a1)+_0x36335c['totalCount']:_0x36335c[_0x426727(0x1d7)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1cfb59+':\x0a');for(const _0x3d8677 of _0x36335c['items']){console[_0x426727(0x1ae)](''+_0x3d8677['name']),console['log'](_0x426727(0x131)+_0x3d8677['id']),_0x3d8677[_0x426727(0x18a)]&&console['log'](_0x426727(0x161)+_0x558bd6['aNFnx'](getProgressDisplay,_0x3d8677['stats'])),_0x3d8677['gitBranch']&&console[_0x426727(0x1ae)]('\x20\x20\x20Branch:\x20'+_0x3d8677['gitBranch']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3d8677[_0x426727(0x153)])[_0x426727(0x174)]()),console['log']('');}const _0x360f40=_0x203b01['limit']??0xa,_0x3b0731=_0x558bd6['WOjhI'](_0x203b01['offset']??0x0,_0x36335c['items'][_0x426727(0x176)]);if(_0x3b0731<_0x36335c['totalCount']){const _0x515492=_0x360f40!==0xa?_0x426727(0x123)+_0x360f40:'',_0x410326=_0x23e8e3['currentBranch']?_0x558bd6['nUhGb']:'',_0x52fc8e=_0x23e8e3['includeDeleted']?'\x20--include-deleted':'';console[_0x426727(0x1ae)](_0x426727(0x140)+_0x3b0731+_0x515492+_0x410326+_0x52fc8e);}}function _0x56e7(_0x268715,_0x24379f){_0x268715=_0x268715-0x109;const _0x42a387=_0x42a3();let _0x56e7c0=_0x42a387[_0x268715];return _0x56e7c0;}export async function featureShow(_0x3aff8e){const _0x44b1e2=_0x492c6d,_0x44685c=_0x3aff8e||await getActiveFeatureId();if(!_0x44685c)throw new Error(_0x44b1e2(0x11d));const _0x39bf25=await getFeature(_0x44685c);displayFeature(_0x39bf25,_0x39bf25['checklistItems']);}export async function featureResume(_0x500f57){const _0x3c9112=_0x492c6d,_0x527c59={'LtTaf':function(_0x88596f,_0x80a5a8){return _0x88596f(_0x80a5a8);},'bgOvY':function(_0x145130){return _0x145130();},'AawUp':function(_0x312036,_0x293ef8){return _0x312036!==_0x293ef8;},'IrZMY':function(_0x5bf640,_0x5c89de,_0x2c5cd7){return _0x5bf640(_0x5c89de,_0x2c5cd7);},'GngDc':function(_0x13e221){return _0x13e221();},'NZqgx':function(_0x498531,_0x52408c){return _0x498531&&_0x52408c;},'PKNyF':'Not\x20in\x20a\x20git\x20repository.','hfkBx':'any','sknqb':function(_0x52e5f4,_0x365f64){return _0x52e5f4===_0x365f64;},'HhxZQ':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','BrjYv':'selected','XQHWJ':function(_0x5baee2,_0x242b1f){return _0x5baee2(_0x242b1f);},'Xvydo':function(_0x550740,_0x3b05ac,_0x2f54a4){return _0x550740(_0x3b05ac,_0x2f54a4);}};if(_0x500f57){const _0x26eb11=await getFeature(_0x500f57);await _0x527c59['LtTaf'](setActiveFeatureId,_0x26eb11['id']);const _0x5334f4=_0x527c59['bgOvY'](getGitBranch);_0x5334f4&&_0x527c59['AawUp'](_0x5334f4,_0x26eb11[_0x3c9112(0x1b6)])&&(await updateFeature(_0x26eb11['id'],{'gitBranch':_0x5334f4}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x5334f4));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x26eb11[_0x3c9112(0x149)]+'\x20('+_0x26eb11['id']+')'),await tryStartCurrentSession(_0x26eb11['id']);const _0x36bb69=process[_0x3c9112(0x143)]['CLAUDE_SESSION_ID'];_0x36bb69&&_0x527c59['IrZMY'](registerSession,_0x36bb69,_0x26eb11['id']);displayFeature(_0x26eb11,_0x26eb11['checklistItems']),await printFeedbackNudge(_0x26eb11['id']);return;}const _0x248b58=getGitRepoUrl(),_0x1c6a31=_0x527c59['GngDc'](getGitBranch);if(_0x527c59['NZqgx'](!_0x248b58,!_0x1c6a31))throw new Error(_0x527c59[_0x3c9112(0x1c4)]);console[_0x3c9112(0x1ae)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x248b58||'any')+_0x3c9112(0x133)+(_0x1c6a31||_0x527c59['hfkBx'])+_0x3c9112(0x1bf));const _0x1c4292=await _0x527c59[_0x3c9112(0x1d3)](listFeatures,{'gitRepoUrl':_0x248b58,'gitBranch':_0x1c6a31}),_0x3d3c2d=_0x1c4292['items'][_0x3c9112(0x1cc)](_0x155f69=>!_0x155f69[_0x3c9112(0x14c)]);if(_0x527c59[_0x3c9112(0x171)](_0x3d3c2d[_0x3c9112(0x176)],0x0)){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0x3c9112(0x1aa));return;}let _0x231672;if(_0x527c59[_0x3c9112(0x171)](_0x3d3c2d['length'],0x1))_0x231672=_0x3d3c2d[0x0];else{const _0x7c08fe=process['stdin'][_0x3c9112(0x1a2)]&&process[_0x3c9112(0x1b4)][_0x3c9112(0x1a2)];if(!_0x7c08fe){console[_0x3c9112(0x1ae)](_0x3c9112(0x1c7));for(const _0x24e938 of _0x3d3c2d){console['log']('\x20\x20'+_0x24e938[_0x3c9112(0x149)]),console[_0x3c9112(0x1ae)](_0x3c9112(0x137)+_0x24e938['id']),_0x24e938[_0x3c9112(0x18a)]&&console[_0x3c9112(0x1ae)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x24e938[_0x3c9112(0x18a)])),_0x24e938[_0x3c9112(0x1b6)]&&console[_0x3c9112(0x1ae)](_0x3c9112(0x1ca)+_0x24e938['gitBranch']);}throw new Error(_0x527c59['HhxZQ']);}const {selected:_0x9939d4}=await _0x29615f['prompt']([{'type':'list','name':_0x527c59['BrjYv'],'message':_0x3c9112(0x17f),'choices':_0x3d3c2d['map'](_0x4e3ca7=>({'name':_0x4e3ca7[_0x3c9112(0x149)]+'\x20('+_0x4e3ca7['id']+')','value':_0x4e3ca7['id']}))}]);_0x231672=_0x3d3c2d[_0x3c9112(0x10e)](_0x49e5e3=>_0x49e5e3['id']===_0x9939d4);}await setActiveFeatureId(_0x231672['id']);_0x1c6a31&&_0x1c6a31!==_0x231672[_0x3c9112(0x1b6)]&&(await updateFeature(_0x231672['id'],{'gitBranch':_0x1c6a31}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x1c6a31));console['log'](_0x3c9112(0x197)+_0x231672[_0x3c9112(0x149)]+'\x20('+_0x231672['id']+')'),await _0x527c59['XQHWJ'](tryStartCurrentSession,_0x231672['id']);const _0x40c574=await _0x527c59[_0x3c9112(0x1d3)](getFeature,_0x231672['id']),_0x9b91ca=process['env']['CLAUDE_SESSION_ID'];_0x9b91ca&&_0x527c59['Xvydo'](registerSession,_0x9b91ca,_0x40c574['id']),_0x527c59[_0x3c9112(0x1dc)](displayFeature,_0x40c574,_0x40c574[_0x3c9112(0x14d)]),await printFeedbackNudge(_0x40c574['id']);}async function printFeedbackNudge(_0x456aaf){const _0x22f425=_0x492c6d,_0x37105c={'rtAgn':function(_0x3a14a3,_0x55a5fc){return _0x3a14a3(_0x55a5fc);},'QrpAV':function(_0x1807af,_0x22ce5d,_0x5e0f75){return _0x1807af(_0x22ce5d,_0x5e0f75);},'YLuqE':function(_0x470f51,_0x57cba5){return _0x470f51>_0x57cba5;},'yxLfk':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x100ab7}=await _0x37105c[_0x22f425(0x17c)](getActionItems,_0x456aaf);let _0x4aede5=0x0,_0x183ab4=0x0;for(const _0x4069c8 of _0x100ab7){const _0x213318=await _0x37105c[_0x22f425(0x13c)](getItemFeedback,_0x456aaf,_0x4069c8['id']);_0x37105c['YLuqE'](_0x213318[_0x22f425(0x170)]['length'],0x0)&&(_0x4aede5+=_0x213318['unaddressedComments']['length'],_0x183ab4++);}_0x4aede5>0x0&&(console[_0x22f425(0x1ae)](_0x22f425(0x18f)+_0x4aede5+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x183ab4+'\x20scenario(s).'),console['log'](_0x37105c[_0x22f425(0x139)]));}catch{}}async function tryStartCurrentSession(_0x1a1b84){const _0x1c324d=_0x492c6d,_0x4e7190={'EXNZh':function(_0x48b056,_0x3434e9){return _0x48b056(_0x3434e9);},'XrJlt':function(_0x148c70,_0x14e064,_0x47c872){return _0x148c70(_0x14e064,_0x47c872);}};try{const {sessions:_0x21ac14}=await _0x4e7190['EXNZh'](listFeatureSessions,_0x1a1b84),_0x213aee=_0x21ac14[_0x1c324d(0x10e)](_0x43e5eb=>_0x43e5eb['status']===_0x1c324d(0x194));_0x213aee&&(await _0x4e7190['XrJlt'](startSession,_0x1a1b84,_0x213aee['id']),console['log'](_0x1c324d(0x19e)+_0x213aee[_0x1c324d(0x180)]));}catch{}}export async function featureReport(_0x4399de,_0x5acc3a){const _0x3ca01f=_0x492c6d,_0x39401f={'xWNxp':function(_0x5f3e2f,_0x1d0c59,_0x877aa4){return _0x5f3e2f(_0x1d0c59,_0x877aa4);},'oeffw':function(_0x2d7d54,_0x26b877,_0xef7f27,_0x328afc){return _0x2d7d54(_0x26b877,_0xef7f27,_0x328afc);},'jzfBk':_0x3ca01f(0x13b),'zRNkM':function(_0x191d57,_0x1e29d8,_0x1aa1da){return _0x191d57(_0x1e29d8,_0x1aa1da);},'JGyNK':function(_0x3a9253,_0x337b19){return _0x3a9253(_0x337b19);},'hhhfi':function(_0x47bee4,_0x21f087,_0x3a4506){return _0x47bee4(_0x21f087,_0x3a4506);},'VDVYy':_0x3ca01f(0x148)},_0x550e4c=_0x4399de||await getActiveFeatureId();if(!_0x550e4c)throw new Error(_0x3ca01f(0x14e));console['log']('\x0aGenerating\x20report...');const _0x11e781=await _0x39401f[_0x3ca01f(0x1d2)](getFeatureReportMarkdown,_0x550e4c,{'style':_0x5acc3a['style']}),_0x1013e0=_0x5acc3a[_0x3ca01f(0x142)]||_0x39401f[_0x3ca01f(0x1c9)](join,getRangerDir(),_0x39401f[_0x3ca01f(0x177)],_0x550e4c+'.md'),_0x18e7ae=_0x39401f[_0x3ca01f(0x1d8)](join,_0x1013e0,'..');!_0x39401f[_0x3ca01f(0x165)](existsSync,_0x18e7ae)&&await _0x39401f[_0x3ca01f(0x10a)](mkdir,_0x18e7ae,{'recursive':!![]}),await _0x39401f['oeffw'](writeFile,_0x1013e0,_0x11e781,_0x39401f[_0x3ca01f(0x192)]),console[_0x3ca01f(0x1ae)]('\x0a✅\x20Report\x20generated:\x20'+_0x1013e0);}function getScenarioResult(_0x58cfbe){const _0x28baef=_0x492c6d,_0x190182={'XRMQX':_0x28baef(0x179),'pUEOF':function(_0x5cf6c4,_0x44bc94){return _0x5cf6c4===_0x44bc94;},'pAqkm':_0x28baef(0x145),'JxBDa':_0x28baef(0x116)};if(_0x58cfbe[_0x28baef(0x1c0)]===_0x190182['XRMQX'])return _0x58cfbe[_0x28baef(0x183)]??_0x28baef(0x179);if(_0x190182[_0x28baef(0x1a4)](_0x58cfbe['status'],_0x190182['pAqkm']))return _0x190182[_0x28baef(0x1cb)];return _0x58cfbe['status'];}function getScenarioRationale(_0x4534f2,_0x4b8797){const _0x55a572=_0x492c6d;if(_0x4b8797)return _0x4b8797;if(_0x4534f2[_0x55a572(0x1b0)])return _0x4534f2[_0x55a572(0x1b0)];if(_0x4534f2[_0x55a572(0x160)])return _0x4534f2[_0x55a572(0x160)];if(_0x4534f2[_0x55a572(0x1df)])return _0x4534f2[_0x55a572(0x1df)];if(_0x4534f2['notes'])return _0x4534f2[_0x55a572(0x1e4)];return null;}export async function featureReportPrDescription(_0x535e40,_0x17214b){const _0x24757c=_0x492c6d,_0x69896c={'zbMYP':function(_0x319263,_0x11e756,_0x343e3e){return _0x319263(_0x11e756,_0x343e3e);},'QJGmw':function(_0x2dc4a8,_0xd67e99){return _0x2dc4a8===_0xd67e99;},'uhogo':function(_0x2a4654,_0x453c6a){return _0x2a4654+_0x453c6a;},'wCtmR':_0x24757c(0x188),'VDykV':function(_0x527dbd,_0x1b7b44,_0x2472f8,_0x21c9f4){return _0x527dbd(_0x1b7b44,_0x2472f8,_0x21c9f4);}},_0x1c84cf=_0x535e40||await getActiveFeatureId();if(!_0x1c84cf)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x1e6fb6=await getFeature(_0x1c84cf),_0x154c6f=_0x1e6fb6[_0x24757c(0x14d)]||[],_0x418666=_0x69896c['zbMYP'](getCurrentSessionItems,_0x1e6fb6,_0x154c6f);_0x69896c['QJGmw'](_0x418666['length'],0x0)&&(console[_0x24757c(0x19f)](_0x24757c(0x193)),process['exit'](0x1));const _0x5e45f6=_0x17214b['excludeScenarios']??[],_0x2fe0ec=_0x5e45f6[_0x24757c(0x1cc)](_0x1055fa=>!Number['isInteger'](_0x1055fa)||_0x1055fa<0x1||_0x1055fa>_0x418666['length']);if(_0x2fe0ec[_0x24757c(0x176)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x2fe0ec[_0x24757c(0x1bb)](',\x20')),console[_0x24757c(0x1ae)]('\x0aAvailable\x20scenarios:');for(let _0x1711b9=0x0;_0x1711b9<_0x418666['length'];_0x1711b9++){console['log']('\x20\x20'+_0x69896c[_0x24757c(0x1b2)](_0x1711b9,0x1)+'.\x20'+_0x418666[_0x1711b9]['description']);}process['exit'](0x1);}const _0x34d173=new Set(_0x5e45f6[_0x24757c(0x1bc)](_0x396bbb=>_0x396bbb-0x1)),_0x2762ee=_0x418666['filter']((_0x241c06,_0x2f35ad)=>!_0x34d173[_0x24757c(0x1d6)](_0x2f35ad));_0x2762ee['length']===0x0&&(console['error'](_0x69896c[_0x24757c(0x1e1)]),process['exit'](0x1));if(_0x17214b[_0x24757c(0x1c6)])await _0x69896c[_0x24757c(0x17e)](outputJsonReport,_0x1c84cf,_0x1e6fb6,_0x2762ee);else{const _0x5db66e=await getFeatureReportMarkdown(_0x1c84cf,{'itemIds':_0x2762ee[_0x24757c(0x1bc)](_0x3ea62d=>_0x3ea62d['id'])});process[_0x24757c(0x1b4)][_0x24757c(0x15a)](_0x5db66e[_0x24757c(0x1a7)]()+'\x0a');}}async function outputJsonReport(_0x1b9a69,_0x5de1e3,_0x318208){const _0x21ca19=_0x492c6d,_0x4951a3={'ELhOw':function(_0x3ad79c){return _0x3ad79c();},'KcwQD':function(_0x345569,_0x3f2718){return _0x345569(_0x3f2718);}},_0xe97d73=_0x4951a3[_0x21ca19(0x13a)](getApiBaseUrl),_0x418fed=await _0x4951a3[_0x21ca19(0x18d)](getFeatureReport,_0x1b9a69),_0x54bc1c=new Map(_0x418fed[_0x21ca19(0x14d)]['map'](_0x7e6428=>[_0x7e6428['id'],_0x7e6428])),_0x5cadb6=await Promise['all'](_0x318208[_0x21ca19(0x1bc)](async _0x4c80ba=>{const _0x5e9446=_0x21ca19,_0x43b62c=_0x54bc1c[_0x5e9446(0x1c5)](_0x4c80ba['id']),_0x36d5ec=_0x43b62c?.['linkedSession']??null;let _0x1e3f0c=[];if(_0x4c80ba[_0x5e9446(0x141)])try{const {steps:_0x4506e2}=await getBrowserSessionSteps(_0x4c80ba['browserSessionId']);_0x4506e2[_0x5e9446(0x176)]>0x0&&(_0x1e3f0c=_0x4506e2[_0x5e9446(0x1bc)](_0x55b1d5=>{const _0x14f50a=_0x5e9446,_0x382b1d=_0x55b1d5[_0x14f50a(0x144)]['find'](_0x5de71c=>_0x5de71c[_0x14f50a(0x182)]===_0x14f50a(0x1b5)&&_0x5de71c[_0x14f50a(0x191)]==='after')??_0x55b1d5[_0x14f50a(0x144)]['find'](_0x3bedfd=>_0x3bedfd[_0x14f50a(0x182)]===_0x14f50a(0x1b5));let _0xddb7db=null,_0xf668a8=null;if(_0x382b1d){const _0x37a9e5=_0x382b1d['storage']['location'][_0x14f50a(0x135)]('/')[_0x14f50a(0x178)]();_0xddb7db=_0xe97d73+_0x14f50a(0x132)+_0x4c80ba['browserSessionId']+'/artifacts/'+_0x37a9e5,_0x37a9e5&&(_0xf668a8=_0x37a9e5[_0x14f50a(0x1a8)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x14f50a(0x1a8)](/[-_]/g,'\x20'));}return{'description':_0xf668a8||_0x55b1d5['description']||_0x55b1d5[_0x14f50a(0x156)]||'Step\x20'+_0x55b1d5[_0x14f50a(0x1c3)],'screenshot':_0xddb7db,'is_key_step':_0x55b1d5['isKeyStep']};}));}catch{}return _0x1e3f0c['length']===0x0&&_0x36d5ec?.['screenshotUrls']&&(_0x1e3f0c=_0x36d5ec['screenshotUrls']['map']((_0x1dcc71,_0xb3af25)=>({'description':_0x5e9446(0x1af)+(_0xb3af25+0x1),'screenshot':_0x1dcc71,'is_key_step':![]}))),{'description':_0x4c80ba[_0x5e9446(0x15b)],'result':getScenarioResult(_0x4c80ba),'rationale':getScenarioRationale(_0x4c80ba,_0x36d5ec?.[_0x5e9446(0x1a9)]),'steps':_0x1e3f0c};})),_0x236853={'url':_0x5de1e3['dashboardUrl'],'scenarios':_0x5cadb6};process['stdout']['write'](JSON[_0x21ca19(0x1d5)](_0x236853,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x186c57){const _0x34822e=_0x492c6d,_0x4783b6={'McazZ':_0x34822e(0x1cf),'EGMOs':function(_0x3f2114,_0x2a12ff){return _0x3f2114===_0x2a12ff;},'npyvv':function(_0x5b782f,_0x14ae34){return _0x5b782f!==_0x14ae34;}},_0x2d148b=_0x186c57||await getActiveFeatureId();if(!_0x2d148b)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 _0x350e81=await getFeature(_0x2d148b);if(!_0x350e81[_0x34822e(0x158)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x604944}=await listFeatureSessions(_0x2d148b),_0x388ee4=_0x604944['find'](_0x5af8dc=>_0x5af8dc['id']===_0x350e81[_0x34822e(0x158)]);if(!_0x388ee4)throw new Error(_0x4783b6['McazZ']);if(_0x4783b6[_0x34822e(0x18b)](_0x388ee4[_0x34822e(0x1c0)],_0x34822e(0x124))){console[_0x34822e(0x1ae)](_0x34822e(0x10c));return;}if(_0x4783b6['npyvv'](_0x388ee4[_0x34822e(0x1c0)],'in_progress'))throw new Error(_0x34822e(0x120)+_0x388ee4['status']);console[_0x34822e(0x1ae)]('\x0aConcluding\x20session...'),await concludeSession(_0x2d148b,_0x350e81[_0x34822e(0x158)]),console['log']('\x0a✅\x20Session\x20'+_0x388ee4['iteration']+_0x34822e(0x15e)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x216687){const _0x691874=_0x492c6d,_0x2e6e2e={'gMbzK':function(_0x1b976f){return _0x1b976f();},'qkXio':_0x691874(0x14e),'rmMZi':function(_0x232419,_0xd7228a){return _0x232419(_0xd7228a);},'OZZNh':function(_0x3d0292,_0x17c65b){return _0x3d0292(_0x17c65b);},'QOdXJ':function(_0x560d65,_0x236d87){return _0x560d65===_0x236d87;},'mZqLO':function(_0x464300,_0x4a06cf){return _0x464300===_0x4a06cf;}},_0x5d1502=_0x216687||await _0x2e6e2e[_0x691874(0x1da)](getActiveFeatureId);if(!_0x5d1502)throw new Error(_0x2e6e2e[_0x691874(0x1b9)]);const _0x2df451=await _0x2e6e2e['rmMZi'](getFeature,_0x5d1502);console['log'](_0x691874(0x112)+_0x2df451['name']+'\x0a');const {sessions:_0x599696}=await _0x2e6e2e['OZZNh'](listFeatureSessions,_0x5d1502);if(_0x2e6e2e[_0x691874(0x127)](_0x599696[_0x691874(0x176)],0x0)){console['log'](_0x691874(0x12f));return;}for(const _0x3ee868 of _0x599696){const _0x357ce9=_0x2e6e2e['mZqLO'](_0x3ee868['status'],_0x691874(0x124))?'✅':_0x2e6e2e[_0x691874(0x127)](_0x3ee868[_0x691874(0x1c0)],_0x691874(0x116))?'🔄':'▶️';console[_0x691874(0x1ae)](_0x357ce9+_0x691874(0x126)+_0x3ee868[_0x691874(0x180)]+'\x20('+_0x3ee868['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x3ee868[_0x691874(0x1c0)]),console[_0x691874(0x1ae)]('\x20\x20\x20Created:\x20'+new Date(_0x3ee868['createdAt'])[_0x691874(0x18c)]()),_0x3ee868['completedAt']&&console['log'](_0x691874(0x118)+new Date(_0x3ee868['completedAt'])['toLocaleString']()),console[_0x691874(0x1ae)]('');}}export async function featureAddScenario(_0x1469e5,_0x291332){const _0x552efa=_0x492c6d,_0x584d9b={'olDcG':function(_0x2a3d1a){return _0x2a3d1a();},'neBaY':function(_0x30d607,_0x19cc09,_0x574e68){return _0x30d607(_0x19cc09,_0x574e68);},'kHCvH':function(_0x1ae8ef,_0x2547df,_0x377d7b){return _0x1ae8ef(_0x2547df,_0x377d7b);}},_0x223fc2=_0x291332||await _0x584d9b[_0x552efa(0x187)](getActiveFeatureId);if(!_0x223fc2)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 _0x417f6a=await getFeature(_0x223fc2);if(_0x417f6a[_0x552efa(0x11b)]&&!_0x417f6a['latestReview'][_0x552efa(0x125)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x417f6a['dashboardUrl']);await _0x584d9b['neBaY'](createChecklistItem,_0x223fc2,_0x1469e5);const _0x2ba8df=await getFeature(_0x223fc2);console[_0x552efa(0x1ae)]('\x0a✅\x20Scenario\x20added'),_0x584d9b[_0x552efa(0x17b)](displayFeature,_0x2ba8df,_0x2ba8df[_0x552efa(0x14d)]);}export async function featureEditScenario(_0x4dcb52,_0xb4fe6){const _0x241345=_0x492c6d,_0xefe041={'gjIih':function(_0x2c21bc){return _0x2c21bc();},'ijcsd':'Please\x20finish\x20your\x20review\x20first:','ykpzg':function(_0x13af42,_0x11fa52){return _0x13af42===_0x11fa52;},'gfOkJ':function(_0x16f4f6,_0x12077c){return _0x16f4f6===_0x12077c;},'ruVOL':'\x0aAvailable\x20scenarios:','yfhWJ':function(_0x50e2ec,_0x50463f){return _0x50e2ec<_0x50463f;},'SmiEL':function(_0x15eb82,_0x3347cc){return _0x15eb82-_0x3347cc;},'KQlsV':function(_0x5b0d02,_0x3ddba3){return _0x5b0d02<_0x3ddba3;},'kQmNV':function(_0x545475,_0x5212c2,_0x4d5026,_0x4f4a37){return _0x545475(_0x5212c2,_0x4d5026,_0x4f4a37);},'DBPgo':function(_0x3c0fb1,_0x357744){return _0x3c0fb1(_0x357744);},'xzEDQ':function(_0x32e754,_0x2245d5,_0x2996ae){return _0x32e754(_0x2245d5,_0x2996ae);}},_0x2d75b1=_0xb4fe6['id']||await _0xefe041[_0x241345(0x1ba)](getActiveFeatureId);!_0x2d75b1&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error']('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x10234b=await getFeature(_0x2d75b1);_0x10234b[_0x241345(0x11b)]&&!_0x10234b[_0x241345(0x11b)][_0x241345(0x125)]&&(console[_0x241345(0x19f)](_0x241345(0x157)),console[_0x241345(0x19f)](_0xefe041[_0x241345(0x17d)]),console[_0x241345(0x19f)]('\x20\x20'+_0x10234b['dashboardUrl']),process['exit'](0x1));const _0x5c6f9f=_0x10234b[_0x241345(0x14d)]||[];_0xefe041['ykpzg'](_0x5c6f9f['length'],0x0)&&(console[_0x241345(0x19f)](_0x241345(0x12a)),process['exit'](0x1));if(_0xefe041[_0x241345(0x1d1)](_0xb4fe6['scenario'],undefined)){console[_0x241345(0x19f)](_0x241345(0x1bd)),console[_0x241345(0x1ae)](_0xefe041['ruVOL']);for(let _0x3d005a=0x0;_0xefe041[_0x241345(0x1d0)](_0x3d005a,_0x5c6f9f[_0x241345(0x176)]);_0x3d005a++){console['log']('\x20\x20'+(_0x3d005a+0x1)+'.\x20'+_0x5c6f9f[_0x3d005a]['description']);}process['exit'](0x1);}const _0x7005f6=_0xefe041[_0x241345(0x122)](_0xb4fe6[_0x241345(0x16a)],0x1);if(_0xefe041['KQlsV'](_0x7005f6,0x0)||_0x7005f6>=_0x5c6f9f[_0x241345(0x176)]){console['error'](_0x241345(0x162)+_0xb4fe6[_0x241345(0x16a)]+'.\x20Feature\x20review\x20has\x20'+_0x5c6f9f[_0x241345(0x176)]+'\x20scenarios.'),console[_0x241345(0x1ae)]('\x0aAvailable\x20scenarios:');for(let _0x35f3d7=0x0;_0x35f3d7<_0x5c6f9f[_0x241345(0x176)];_0x35f3d7++){console[_0x241345(0x1ae)]('\x20\x20'+(_0x35f3d7+0x1)+'.\x20'+_0x5c6f9f[_0x35f3d7]['description']);}process['exit'](0x1);}const _0x31a9f2=_0x5c6f9f[_0x7005f6];await _0xefe041[_0x241345(0x121)](updateChecklistItem,_0x2d75b1,_0x31a9f2['id'],{'description':_0x4dcb52});const _0x5b0a02=await _0xefe041[_0x241345(0x173)](getFeature,_0x2d75b1);console['log']('\x0a✅\x20Scenario\x20updated'),_0xefe041[_0x241345(0x16d)](displayFeature,_0x5b0a02,_0x5b0a02['checklistItems']);}async function downloadFeedbackImage(_0x4e9d28,_0x527e22){const _0x1974e8={'Qhcbv':function(_0x2960e4){return _0x2960e4();}};try{const _0x5cc725=join(_0x1974e8['Qhcbv'](getRangerDir),'feedback-images');await mkdir(_0x5cc725,{'recursive':!![]});const _0x4618d2=join(_0x5cc725,'comment_'+_0x527e22+'.png'),_0x5ad93f=await fetch(_0x4e9d28);if(!_0x5ad93f['ok'])return null;const _0x22b19d=Buffer['from'](await _0x5ad93f['arrayBuffer']());return await writeFile(_0x4618d2,_0x22b19d),_0x4618d2;}catch{return null;}}export async function featureGetReview(_0x1cfd36){const _0x240a48=_0x492c6d,_0x7820cc={'NYeuU':function(_0x45f42a,_0x2d9dba){return _0x45f42a(_0x2d9dba);},'hdBzo':function(_0x1257d7,_0x211c79){return _0x1257d7===_0x211c79;},'GfEXz':_0x240a48(0x13f),'MrTJg':function(_0x2ca7d4,_0x186798){return _0x2ca7d4>_0x186798;},'AxmjZ':function(_0x322bca,_0x2e5961){return _0x322bca>_0x2e5961;},'OtTip':function(_0x2ea215,_0x158a11){return _0x2ea215+_0x158a11;},'LOivW':'numeric','vWZWX':'Unknown','HmVNq':function(_0x3efe1c,_0x4c853e,_0x3502cc){return _0x3efe1c(_0x4c853e,_0x3502cc);},'quPBR':'\x20>\x20','ufTUf':_0x240a48(0x109),'pdgyz':function(_0x31d304,_0x4b4eea){return _0x31d304>=_0x4b4eea;}},_0xaf3caa=_0x1cfd36||await getActiveFeatureId();if(!_0xaf3caa)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 _0x1d47ef=await getFeature(_0xaf3caa),{items:_0x245d37}=await _0x7820cc['NYeuU'](getActionItems,_0xaf3caa);console[_0x240a48(0x1ae)]('\x0a📋\x20Feedback\x20for:\x20'+_0x1d47ef['name']+'\x20('+_0x1d47ef['id']+')\x0a');if(_0x7820cc['hdBzo'](_0x245d37[_0x240a48(0x176)],0x0)){console[_0x240a48(0x1ae)](_0x7820cc['GfEXz']);return;}for(let _0x7784bb=0x0;_0x7784bb<_0x245d37[_0x240a48(0x176)];_0x7784bb++){const _0x387bd4=_0x245d37[_0x7784bb],_0x3f4c97=_0x7820cc[_0x240a48(0x1ab)](_0x387bd4[_0x240a48(0x16f)],0x1)?'\x20(v'+_0x387bd4['version']+')':'',_0x10090f=await getItemFeedback(_0xaf3caa,_0x387bd4['id']);if(_0x7820cc['AxmjZ'](_0x10090f[_0x240a48(0x170)]['length'],0x0)){console['log']('Scenario\x20'+_0x7820cc['OtTip'](_0x7784bb,0x1)+_0x240a48(0x166)+_0x387bd4['description']+'\x22'+_0x3f4c97+_0x240a48(0x1a3)+_0x10090f[_0x240a48(0x170)][_0x240a48(0x176)]+'\x20unaddressed\x20comment(s)');for(const _0x4f7fad of _0x10090f[_0x240a48(0x170)]){const _0x2a5d2d=new Date(_0x4f7fad[_0x240a48(0x153)])[_0x240a48(0x174)](_0x240a48(0x1b3),{'month':'short','day':_0x7820cc[_0x240a48(0x129)]}),_0x3f2ff0=_0x4f7fad[_0x240a48(0x1b1)]||_0x4f7fad[_0x240a48(0x1e2)]||_0x7820cc[_0x240a48(0x1b8)];console['log'](_0x240a48(0x138)+_0x3f2ff0+'\x20('+_0x2a5d2d+'):\x20\x22'+_0x4f7fad['content']+'\x22');if(_0x4f7fad['assetUrl']){const _0x55ae9e=await _0x7820cc['HmVNq'](downloadFeedbackImage,_0x4f7fad[_0x240a48(0x1b7)],_0x4f7fad['id']);_0x55ae9e&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x55ae9e);}if(_0x4f7fad['domRef']){const _0x31efe1=_0x4f7fad['domRef']['selector']['split'](_0x7820cc[_0x240a48(0x15f)])['pop']()?.['split'](':')[0x0]||_0x240a48(0x1db),_0x55cae6=_0x4f7fad['domRef'][_0x240a48(0x113)]?'\x20\x22'+_0x4f7fad[_0x240a48(0x1ce)][_0x240a48(0x113)]['slice'](0x0,0x3c)+'\x22':'';console[_0x240a48(0x1ae)](_0x240a48(0x19c)+_0x31efe1+'>'+_0x55cae6),console['log'](_0x240a48(0x1de)+_0x4f7fad['domRef'][_0x240a48(0x115)]);}else{if(_0x4f7fad[_0x240a48(0x10b)]){const _0x2bb74e=_0x4f7fad[_0x240a48(0x10b)][_0x240a48(0x1d9)];_0x4f7fad['spatial'][_0x240a48(0x19d)]===_0x7820cc[_0x240a48(0x1ad)]&&_0x7820cc[_0x240a48(0x17a)](_0x2bb74e[_0x240a48(0x176)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x2bb74e[0x0][_0x240a48(0x11f)](0x2)+',\x20'+_0x2bb74e[0x1][_0x240a48(0x11f)](0x2)+')'):console['log'](_0x240a48(0x16b)+_0x4f7fad[_0x240a48(0x10b)][_0x240a48(0x19d)]+_0x240a48(0x196)+_0x2bb74e[_0x240a48(0x1bc)](_0x36c0c0=>_0x36c0c0[_0x240a48(0x11f)](0x2))['join'](',\x20')+']');}}}if(_0x10090f[_0x240a48(0x199)]){console[_0x240a48(0x1ae)](_0x240a48(0x11e));for(const _0x29a82f of _0x10090f[_0x240a48(0x199)][_0x240a48(0x135)]('\x0a')){console[_0x240a48(0x1ae)](_0x240a48(0x19a)+_0x29a82f);}}}else console[_0x240a48(0x1ae)]('Scenario\x20'+(_0x7784bb+0x1)+_0x240a48(0x166)+_0x387bd4['description']+'\x22'+_0x3f4c97+'\x20—\x20no\x20comments'),console[_0x240a48(0x1ae)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x59b1f7){const _0x387b30=_0x492c6d,_0x58d295={'ulmvh':function(_0x4bca21,_0x24114d){return _0x4bca21(_0x24114d);},'rThpx':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x2bbb5c=_0x59b1f7||await getActiveFeatureId();if(!_0x2bbb5c)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 _0x4f3148=await _0x58d295['ulmvh'](getFeature,_0x2bbb5c);await softDeleteFeature(_0x2bbb5c),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4f3148[_0x387b30(0x149)]+'\x20('+_0x2bbb5c+')'),console[_0x387b30(0x1ae)](_0x58d295[_0x387b30(0x195)]+_0x2bbb5c);}export async function featureRestore(_0x555eb8){const _0x591c5e=_0x492c6d,_0x5366e1={'fTTcX':function(_0x22a6c9,_0x226efb){return _0x22a6c9(_0x226efb);},'MfVwp':function(_0x5b1f0a,_0x108154){return _0x5b1f0a(_0x108154);},'CRXNh':function(_0x255d63,_0x3dff20,_0x388387){return _0x255d63(_0x3dff20,_0x388387);}};await _0x5366e1['fTTcX'](restoreFeature,_0x555eb8);const _0x1c254d=await _0x5366e1[_0x591c5e(0x175)](getFeature,_0x555eb8);console['log'](_0x591c5e(0x168)+_0x1c254d['name']+'\x20('+_0x555eb8+')'),_0x5366e1[_0x591c5e(0x185)](displayFeature,_0x1c254d,_0x1c254d['checklistItems']);}
1
+ const _0x442b66=_0xca9d;(function(_0x97c95a,_0x4b0f7d){const _0x655f38=_0xca9d,_0x533bd9=_0x97c95a();while(!![]){try{const _0x156be8=-parseInt(_0x655f38(0x17f))/0x1+-parseInt(_0x655f38(0x1be))/0x2*(-parseInt(_0x655f38(0x122))/0x3)+parseInt(_0x655f38(0x158))/0x4+-parseInt(_0x655f38(0x181))/0x5*(-parseInt(_0x655f38(0x16f))/0x6)+parseInt(_0x655f38(0x1ca))/0x7+-parseInt(_0x655f38(0x151))/0x8+-parseInt(_0x655f38(0x185))/0x9*(-parseInt(_0x655f38(0x166))/0xa);if(_0x156be8===_0x4b0f7d)break;else _0x533bd9['push'](_0x533bd9['shift']());}catch(_0x2cfa4d){_0x533bd9['push'](_0x533bd9['shift']());}}}(_0x226a,0xc0f5e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';function _0x226a(){const _0x15c3f9=['\x20\x20\x20Branch:\x20','NclFt','from','Not\x20in\x20a\x20git\x20repository.','\x20scenario(s).','zeUTb','\x0a✅\x20Session\x20is\x20already\x20completed.','sessionId','element','checklistItems','assets','toLocaleString','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Screenshot\x20','\x20feature\x20review(s)\x20found','ODrMH','\x0aNo\x20feature\x20reviews\x20found.','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','uITnL','replace','terminalReason','completedAt','type','GkAHu','rSjcB','offset','EWKpx','NyaGr','notes','split','status','\x20\x20✅\x20No\x20feedback\x20to\x20address','Showing\x20','spatial','version','latestReview','gTmLk','3|0|4|1|2|5','No\x20active\x20session\x20for\x20this\x20feature\x20review.','RRDmz','8923312ewvMfn','vcczT','currentBranch','bxOpY','\x20--include-deleted','incompleteReason','jtOOI','5527436sZGpQt',':\x20\x22','json','round','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x0a✅\x20Scenario\x20added','IGXVu','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','storage','\x20—\x20no\x20comments','eszob','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','KFwmU','4504030DJSQTk','trim','\x20\x20\x20\x20\x20Progress:\x20','verifiedItems','scenario','pipe','filter','DgFlZ','EMOjE','2046BBzcRC','stats','linkedSession','HspFw','screenshotUrls','arrayBuffer','rApkN','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','domRef','\x20\x20Expected\x20flow:','\x20scenarios.','\x0a✅\x20Report\x20generated:\x20','toFixed','\x20verified','gitBranch','env','584582VZADnH','uykKE','6430hsUNqW','IbtyF','canceledReason','blockedItems','9fbKBPR','fbTyy','totalCount','\x20\x20\x20Description:\x20','cXwlB','ygMBf','CGIlH','\x1b[0m','bILba','TRBQF','prompt','ognrz','isInteger','\x20incomplete','completed','short','XvlHV','limit','ksLou','includeDeleted','\x0aGenerating\x20report...','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','closed','dashboardUrl','blocked','\x0aAvailable\x20scenarios:','stringify','log','browserSessionId','feedback-images','piJjI','\x0a\x20\x20\x20Scenarios:','kkjZX','verification_in_progress','\x20\x20\x20\x20\x20\x20Incomplete:\x20','in_progress','screenshot','error','qIokl','position','length','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x20\x20\x20Completed:\x20','\x20\x20\x20','selected','\x20\x20\x20\x20\x20\x20Cancelled:\x20','Pzhnm','\x20/\x20','CMWMV','\x20concluded.','submittedAt','\x0aCreating\x20feature\x20review...','\x20\x20\x20Updated\x20branch\x20to:\x20','write','push','iteration','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','2AURaJF','\x20\x20\x20▶️\x20Started\x20session\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','ready','currentSessionId','\x20[has\x20reviewer\x20feedback]','wUNNd','FSMgq','\x20(v','find','CevcJ','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','1369025RNuKtt','verified','toLocaleDateString','oKJRE','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','map','name','eYqPQ','stdin','UkFSV','\x0a✅\x20Scenario\x20updated','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','assetUrl','nPKSJ','FbasH','):\x20\x22','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0a⚠️\x20\x20','djxVY','content','.\x20Feature\x20review\x20has\x20','repeat','stepName','.png','items','/api/v1/mcp/browser-sessions/','agentResponse','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20—\x20','unaddressedComments','CLAUDE_SESSION_ID','join','euSJq','\x0a❌\x20Invalid\x20scenario\x20index:\x20','pendingItems','No\x20sessions\x20found.','XbXAB','utf-8','isKeyStep','git\x20rev-parse\x20--abbrev-ref\x20HEAD','canonicalFlow','exit','GtILz','tRBbm','lbGVs','\x0a✅\x20Resumed\x20feature\x20review:\x20','YTocP','REYgo','dsauP','createdAt','fGGjB','eQxgn','gitRepoUrl','description','\x20--limit\x20','ndTik','71997iwyULh','selector','scenarios','cGsDu','\x20\x20\x20Created:\x20','blockedReason'];_0x226a=function(){return _0x15c3f9;};return _0x226a();}import{existsSync}from'fs';import{execSync}from'child_process';import _0x529460 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=_0x5b201e=>'\x1b[1m'+_0x5b201e+_0x442b66(0x18c);function getGitRepoUrl(){const _0x5c175e=_0x442b66,_0x55c04d={'piJjI':'pipe','dsauP':'github.com/'};try{const _0x3373cd=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x5c175e(0x10f),'stdio':['pipe','pipe',_0x55c04d[_0x5c175e(0x1a3)]]})['trim']();return _0x3373cd['replace'](/\.git$/,'')[_0x5c175e(0x13c)](/^git@github\.com:/,_0x55c04d[_0x5c175e(0x11a)])[_0x5c175e(0x13c)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x1f0798=_0x442b66,_0x56dc64={'fGGjB':_0x1f0798(0x10f),'ksLou':_0x1f0798(0x16b)};try{return execSync(_0x1f0798(0x111),{'encoding':_0x56dc64[_0x1f0798(0x11c)],'stdio':['pipe',_0x56dc64[_0x1f0798(0x197)],_0x1f0798(0x16b)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5a5a8d=_0x442b66,_0x5d898e={'DgFlZ':function(_0x1c7c15,_0x24be31,_0x2490d6){return _0x1c7c15(_0x24be31,_0x2490d6);},'tRBbm':_0x5a5a8d(0x10f)},_0x259563=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x259563))return null;try{const _0x1acfc9=await _0x5d898e[_0x5a5a8d(0x16d)](readFile,_0x259563,_0x5d898e[_0x5a5a8d(0x115)]);return _0x1acfc9[_0x5a5a8d(0x167)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x24704e){const _0x26253d={'UkdYy':function(_0x7c706c,_0x2a81e3,_0x428d01){return _0x7c706c(_0x2a81e3,_0x428d01);},'pzZnG':function(_0x203a3b,_0x423277,_0x4d5811,_0x1da270){return _0x203a3b(_0x423277,_0x4d5811,_0x1da270);}},_0x5d3797=getRangerDir(),_0x2b1101=_0x26253d['UkdYy'](join,_0x5d3797,ACTIVE_FEATURE_FILE);!existsSync(_0x5d3797)&&await mkdir(_0x5d3797,{'recursive':!![]}),await _0x26253d['pzZnG'](writeFile,_0x2b1101,_0x24704e,'utf-8');}function getProgressDisplay(_0x35110a){const _0x1b2f3f=_0x442b66,_0x53a590={'ODrMH':function(_0x28cd1c,_0x254137){return _0x28cd1c+_0x254137;},'UlnQs':function(_0x1baec1,_0x42f239){return _0x1baec1+_0x42f239;},'EjsGu':function(_0x206ffb,_0x22706d){return _0x206ffb===_0x22706d;},'CevcJ':function(_0x433546,_0x33d86f){return _0x433546*_0x33d86f;},'LORNV':function(_0x53e0cc,_0x4f453d){return _0x53e0cc/_0x4f453d;},'TSfBF':function(_0x5debfb,_0x4bb96b){return _0x5debfb>_0x4bb96b;},'UChLJ':function(_0x43d488,_0x2d13ab){return _0x43d488>_0x2d13ab;}},_0x13548c=_0x35110a[_0x1b2f3f(0x169)]||0x0,_0x5f3031=_0x35110a['verificationInProgressItems']||0x0,_0x46655e=_0x35110a[_0x1b2f3f(0x184)]||0x0,_0x4bd5df=_0x35110a['incompleteItems']||0x0,_0x145128=_0x35110a[_0x1b2f3f(0x1ec)]||0x0,_0x12229c=_0x53a590[_0x1b2f3f(0x138)](_0x53a590['UlnQs'](_0x13548c,_0x5f3031)+_0x46655e,_0x4bd5df)+_0x145128;if(_0x53a590['EjsGu'](_0x12229c,0x0))return'-';const _0x1fced2=0xa,_0x2be250=Math[_0x1b2f3f(0x15b)](_0x53a590[_0x1b2f3f(0x1c8)](_0x53a590['LORNV'](_0x13548c,_0x12229c),_0x1fced2)),_0x1bb2d2='█'[_0x1b2f3f(0x1df)](_0x2be250)+'░'['repeat'](_0x1fced2-_0x2be250),_0x173bae=[];if(_0x53a590['TSfBF'](_0x46655e,0x0))_0x173bae[_0x1b2f3f(0x1bb)](_0x46655e+'\x20blocked');if(_0x53a590['UChLJ'](_0x4bd5df,0x0))_0x173bae['push'](_0x4bd5df+_0x1b2f3f(0x192));if(_0x53a590['TSfBF'](_0x5f3031,0x0))_0x173bae['push'](_0x5f3031+'\x20in\x20progress');const _0x15f797=_0x173bae[_0x1b2f3f(0x1ad)]>0x0?'\x20('+_0x173bae[_0x1b2f3f(0x1e9)](',\x20')+')':'';return _0x1bb2d2+'\x20'+_0x13548c+'/'+_0x12229c+_0x1b2f3f(0x17c)+_0x15f797;}function getCurrentSessionItems(_0x13ba97,_0x539a80){const _0x4b96fe=_0x442b66;if(!_0x13ba97['currentSessionId'])return _0x539a80['filter'](_0x2ed90d=>!_0x2ed90d[_0x4b96fe(0x12f)]);return _0x539a80[_0x4b96fe(0x16c)](_0x4e12b5=>_0x4e12b5[_0x4b96fe(0x12f)]===_0x13ba97[_0x4b96fe(0x1c2)]||!_0x4e12b5[_0x4b96fe(0x12f)]);}function displayFeature(_0x34d40a,_0x4e2521){const _0x348459=_0x442b66,_0x454ecd={'bxOpY':_0x348459(0x1a4),'huXpN':function(_0x109d25,_0x155d51){return _0x109d25<_0x155d51;},'EWKpx':function(_0x51f9ee,_0xbf1b81){return _0x51f9ee===_0xbf1b81;},'cGsDu':_0x348459(0x19b),'hJaPJ':'incomplete','CGIlH':_0x348459(0x1a6),'TNoOw':function(_0x11fac4,_0x57f80d){return _0x11fac4!==_0x57f80d;},'bILba':function(_0x40c23c,_0x221129){return _0x40c23c+_0x221129;},'fbTyy':function(_0x500f56,_0x35686a){return _0x500f56===_0x35686a;},'TGXii':function(_0x3751f6,_0x282c47){return _0x3751f6===_0x282c47;}};console['log']('\x0a'+_0x34d40a['name']+'\x20('+_0x34d40a[_0x348459(0x19c)]+')');_0x34d40a[_0x348459(0x170)]&&console[_0x348459(0x1a0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x34d40a['stats']));_0x34d40a[_0x348459(0x11f)]&&console[_0x348459(0x1a0)](_0x348459(0x188)+_0x34d40a['description']);_0x34d40a[_0x348459(0x11e)]&&console[_0x348459(0x1a0)]('\x20\x20\x20Repository:\x20'+_0x34d40a['gitRepoUrl']);_0x34d40a[_0x348459(0x17d)]&&console['log'](_0x348459(0x128)+_0x34d40a[_0x348459(0x17d)]);console[_0x348459(0x1a0)]('\x20\x20\x20Created:\x20'+new Date(_0x34d40a[_0x348459(0x11b)])[_0x348459(0x133)]());_0x34d40a['completedAt']&&console[_0x348459(0x1a0)]('\x20\x20\x20Completed:\x20'+new Date(_0x34d40a['completedAt'])[_0x348459(0x133)]());if(_0x4e2521&&_0x4e2521['length']>0x0){console['log'](_0x454ecd[_0x348459(0x154)]);for(let _0x583676=0x0;_0x454ecd['huXpN'](_0x583676,_0x4e2521[_0x348459(0x1ad)]);_0x583676++){const _0x487c23=_0x4e2521[_0x583676];let _0x54f6bf;if(_0x454ecd['EWKpx'](_0x487c23['status'],_0x454ecd['cGsDu'])&&_0x487c23[_0x348459(0x13d)]==='approved')_0x54f6bf='✅';else{if(_0x454ecd['EWKpx'](_0x487c23['status'],_0x348459(0x1cb)))_0x54f6bf='🟢';else{if(_0x454ecd[_0x348459(0x143)](_0x487c23['status'],_0x454ecd['hJaPJ']))_0x54f6bf='🟠';else{if(_0x487c23['status']===_0x348459(0x19d))_0x54f6bf='🛑';else{if(_0x487c23[_0x348459(0x147)]==='closed')_0x54f6bf='⛔';else _0x454ecd['EWKpx'](_0x487c23[_0x348459(0x147)],_0x454ecd[_0x348459(0x18b)])?_0x54f6bf='⏳':_0x54f6bf='⬜';}}}}const _0x415210=_0x487c23['version']>0x1?_0x348459(0x1c6)+_0x487c23[_0x348459(0x14b)]+')':'',_0x13ce74=_0x487c23[_0x348459(0x14b)]>0x1&&_0x487c23['parentItemId']&&_0x454ecd['TNoOw'](_0x487c23[_0x348459(0x147)],_0x454ecd[_0x348459(0x125)])&&_0x487c23['status']!=='verified'?_0x348459(0x1c3):'';console['log'](_0x348459(0x1b0)+_0x454ecd[_0x348459(0x18d)](_0x583676,0x1)+'.\x20'+_0x54f6bf+'\x20'+_0x487c23[_0x348459(0x11f)]+_0x415210+_0x13ce74);_0x454ecd['fbTyy'](_0x487c23['status'],'blocked')&&_0x487c23[_0x348459(0x127)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x487c23['blockedReason']);_0x487c23[_0x348459(0x147)]===_0x454ecd['hJaPJ']&&_0x487c23[_0x348459(0x156)]&&console[_0x348459(0x1a0)](_0x348459(0x1a7)+_0x487c23['incompleteReason']);if(_0x454ecd['TGXii'](_0x487c23['status'],_0x454ecd[_0x348459(0x125)])&&_0x454ecd[_0x348459(0x186)](_0x487c23[_0x348459(0x13d)],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x487c23['status']==='closed'&&_0x487c23[_0x348459(0x183)]&&console['log'](_0x348459(0x1b2)+_0x487c23[_0x348459(0x183)]);}}}export async function featureCreate(_0x4ea070,_0x3e2b2f){const _0x291b11=_0x442b66,_0x1e8d56={'TgKCg':function(_0x22db85){return _0x22db85();},'REYgo':function(_0x2c4b06){return _0x2c4b06();},'UmgiG':_0x291b11(0x1b8),'SqzEx':function(_0x147a9c,_0x564e12,_0x34e04b){return _0x147a9c(_0x564e12,_0x34e04b);}},{envNames:_0x5aa8e0}=await _0x1e8d56['TgKCg'](getEnvNames);_0x5aa8e0[_0x291b11(0x1ad)]===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x12ac52=>bold(_0x12ac52)));const _0x5a4cfe=_0x3e2b2f[_0x291b11(0x124)]?_0x3e2b2f['scenarios']['map'](_0xdc6ec4=>_0xdc6ec4['trim']()):[],_0x1c51e6=getGitRepoUrl(),_0x13f4c6=_0x1e8d56[_0x291b11(0x119)](getGitBranch);console[_0x291b11(0x1a0)](_0x1e8d56['UmgiG']);const _0x1ed9ea=await createFeature({'name':_0x4ea070,'description':_0x3e2b2f['description'],'checklist':_0x5a4cfe,'gitRepoUrl':_0x1c51e6,'gitBranch':_0x13f4c6});await setActiveFeatureId(_0x1ed9ea['id']),await tryStartCurrentSession(_0x1ed9ea['id']);const _0x393085=process[_0x291b11(0x17e)][_0x291b11(0x1e8)];_0x393085&&registerSession(_0x393085,_0x1ed9ea['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x1ed9ea['id']),_0x1e8d56['SqzEx'](displayFeature,_0x1ed9ea,_0x1ed9ea[_0x291b11(0x131)]),console[_0x291b11(0x1a0)](_0x291b11(0x176));}export async function featureList(_0x1a2d76){const _0x20ed52=_0x442b66,_0x4a3896={'MrGDf':function(_0x3be50c){return _0x3be50c();},'gTmLk':function(_0x2e48d3,_0x9f4254){return _0x2e48d3>_0x9f4254;},'IAsos':function(_0x3b2644,_0x59dfa1){return _0x3b2644+_0x59dfa1;},'wJXso':function(_0xfe5ea7,_0x4f3b20){return _0xfe5ea7<_0x4f3b20;}},_0x3097ec={'limit':_0x1a2d76[_0x20ed52(0x196)]??0xa,'offset':_0x1a2d76[_0x20ed52(0x142)]??0x0,'includeDeleted':_0x1a2d76[_0x20ed52(0x198)]};_0x1a2d76[_0x20ed52(0x153)]&&(_0x3097ec[_0x20ed52(0x11e)]=getGitRepoUrl(),_0x3097ec['gitBranch']=_0x4a3896['MrGDf'](getGitBranch));const _0x3ee415=await listFeatures(_0x3097ec);if(_0x3ee415['items']['length']===0x0){console['log'](_0x20ed52(0x139));return;}const _0x3d45e5=_0x4a3896[_0x20ed52(0x14d)](_0x3ee415[_0x20ed52(0x187)],_0x3ee415[_0x20ed52(0x1e2)][_0x20ed52(0x1ad)])?_0x20ed52(0x149)+_0x3ee415['items']['length']+'\x20of\x20'+_0x3ee415['totalCount']:_0x3ee415[_0x20ed52(0x187)]+_0x20ed52(0x137);console[_0x20ed52(0x1a0)]('\x0a'+_0x3d45e5+':\x0a');for(const _0x1ee8ba of _0x3ee415['items']){const _0x233241=_0x20ed52(0x14e)['split']('|');let _0x217f1a=0x0;while(!![]){switch(_0x233241[_0x217f1a++]){case'0':console['log']('\x20\x20\x20ID:\x20'+_0x1ee8ba['id']);continue;case'1':_0x1ee8ba[_0x20ed52(0x17d)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x1ee8ba[_0x20ed52(0x17d)]);continue;case'2':console[_0x20ed52(0x1a0)]('\x20\x20\x20Created:\x20'+new Date(_0x1ee8ba[_0x20ed52(0x11b)])[_0x20ed52(0x1cc)]());continue;case'3':console[_0x20ed52(0x1a0)](''+_0x1ee8ba['name']);continue;case'4':_0x1ee8ba['stats']&&console[_0x20ed52(0x1a0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1ee8ba['stats']));continue;case'5':console[_0x20ed52(0x1a0)]('');continue;}break;}}const _0x7ffc6a=_0x3097ec[_0x20ed52(0x196)]??0xa,_0x12c882=_0x4a3896['IAsos'](_0x3097ec[_0x20ed52(0x142)]??0x0,_0x3ee415[_0x20ed52(0x1e2)]['length']);if(_0x4a3896['wJXso'](_0x12c882,_0x3ee415[_0x20ed52(0x187)])){const _0x15de89=_0x7ffc6a!==0xa?_0x20ed52(0x120)+_0x7ffc6a:'',_0x97b400=_0x1a2d76[_0x20ed52(0x153)]?'\x20--current-branch':'',_0x3012d6=_0x1a2d76[_0x20ed52(0x198)]?_0x20ed52(0x155):'';console[_0x20ed52(0x1a0)](_0x20ed52(0x1da)+_0x12c882+_0x15de89+_0x97b400+_0x3012d6);}}export async function featureShow(_0x2215c4){const _0x2a28cc=_0x442b66,_0x3b536f={'YTocP':function(_0x4683b4){return _0x4683b4();}},_0x248514=_0x2215c4||await _0x3b536f[_0x2a28cc(0x118)](getActiveFeatureId);if(!_0x248514)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 _0x705b30=await getFeature(_0x248514);displayFeature(_0x705b30,_0x705b30['checklistItems']);}export async function featureResume(_0x5896e7){const _0x1f7862=_0x442b66,_0x239fcc={'uITnL':function(_0x304be2,_0x52e34e){return _0x304be2(_0x52e34e);},'NyaGr':function(_0x513624,_0x2cc532,_0x50c307){return _0x513624(_0x2cc532,_0x50c307);},'vcczT':function(_0x844f02,_0x1a3eee,_0x60f9d7){return _0x844f02(_0x1a3eee,_0x60f9d7);},'iCIPI':function(_0x4cc3dc){return _0x4cc3dc();},'kViSr':'any','RRDmz':function(_0x5b287d,_0x457258){return _0x5b287d||_0x457258;},'XbXAB':function(_0x50f280,_0x400fe1){return _0x50f280===_0x400fe1;},'eQxgn':_0x1f7862(0x1e5),'LxbxB':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','ndTik':function(_0x533c34,_0x49501f){return _0x533c34!==_0x49501f;}};if(_0x5896e7){const _0x43b51d=await getFeature(_0x5896e7);await _0x239fcc['uITnL'](setActiveFeatureId,_0x43b51d['id']);const _0x527aca=getGitBranch();_0x527aca&&_0x527aca!==_0x43b51d[_0x1f7862(0x17d)]&&(await _0x239fcc[_0x1f7862(0x144)](updateFeature,_0x43b51d['id'],{'gitBranch':_0x527aca}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x527aca));console[_0x1f7862(0x1a0)](_0x1f7862(0x117)+_0x43b51d[_0x1f7862(0x1d0)]+'\x20('+_0x43b51d['id']+')'),await tryStartCurrentSession(_0x43b51d['id']);const _0x5a934b=process['env'][_0x1f7862(0x1e8)];_0x5a934b&&_0x239fcc[_0x1f7862(0x152)](registerSession,_0x5a934b,_0x43b51d['id']);displayFeature(_0x43b51d,_0x43b51d['checklistItems']),await printFeedbackNudge(_0x43b51d['id']);return;}const _0x1157db=getGitRepoUrl(),_0xf1e092=_0x239fcc['iCIPI'](getGitBranch);if(!_0x1157db&&!_0xf1e092)throw new Error(_0x1f7862(0x12b));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x1157db||_0x239fcc['kViSr'])+_0x1f7862(0x1b4)+_0x239fcc[_0x1f7862(0x150)](_0xf1e092,_0x239fcc['kViSr'])+'...');const _0x48e4a8=await _0x239fcc[_0x1f7862(0x13b)](listFeatures,{'gitRepoUrl':_0x1157db,'gitBranch':_0xf1e092}),_0x1610f5=_0x48e4a8['items']['filter'](_0x163183=>!_0x163183['completedAt']);if(_0x239fcc[_0x1f7862(0x1ee)](_0x1610f5['length'],0x0)){console[_0x1f7862(0x1a0)](_0x1f7862(0x1c0)),console[_0x1f7862(0x1a0)](_0x239fcc[_0x1f7862(0x11d)]);return;}let _0xfb13c5;if(_0x1610f5['length']===0x1)_0xfb13c5=_0x1610f5[0x0];else{const _0x2abd36=process[_0x1f7862(0x1d2)]['isTTY']&&process['stdout']['isTTY'];if(!_0x2abd36){console['log'](_0x1f7862(0x1d5));for(const _0x1fd196 of _0x1610f5){console['log']('\x20\x20'+_0x1fd196[_0x1f7862(0x1d0)]),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x1fd196['id']),_0x1fd196[_0x1f7862(0x170)]&&console[_0x1f7862(0x1a0)](_0x1f7862(0x168)+_0x239fcc['uITnL'](getProgressDisplay,_0x1fd196['stats'])),_0x1fd196['gitBranch']&&console[_0x1f7862(0x1a0)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x1fd196[_0x1f7862(0x17d)]);}throw new Error(_0x239fcc['LxbxB']);}const {selected:_0x4e0a64}=await _0x529460[_0x1f7862(0x18f)]([{'type':'list','name':_0x1f7862(0x1b1),'message':_0x1f7862(0x1bd),'choices':_0x1610f5['map'](_0x53c431=>({'name':_0x53c431[_0x1f7862(0x1d0)]+'\x20('+_0x53c431['id']+')','value':_0x53c431['id']}))}]);_0xfb13c5=_0x1610f5['find'](_0x8bdc4f=>_0x8bdc4f['id']===_0x4e0a64);}await _0x239fcc['uITnL'](setActiveFeatureId,_0xfb13c5['id']);_0xf1e092&&_0x239fcc[_0x1f7862(0x121)](_0xf1e092,_0xfb13c5[_0x1f7862(0x17d)])&&(await _0x239fcc[_0x1f7862(0x152)](updateFeature,_0xfb13c5['id'],{'gitBranch':_0xf1e092}),console['log'](_0x1f7862(0x1b9)+_0xf1e092));console[_0x1f7862(0x1a0)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xfb13c5['name']+'\x20('+_0xfb13c5['id']+')'),await tryStartCurrentSession(_0xfb13c5['id']);const _0x227be8=await _0x239fcc['uITnL'](getFeature,_0xfb13c5['id']),_0x11cabd=process[_0x1f7862(0x17e)][_0x1f7862(0x1e8)];_0x11cabd&&_0x239fcc['vcczT'](registerSession,_0x11cabd,_0x227be8['id']),displayFeature(_0x227be8,_0x227be8['checklistItems']),await printFeedbackNudge(_0x227be8['id']);}async function printFeedbackNudge(_0x59a7ce){const _0x23f211=_0x442b66,_0x379466={'yyLUh':function(_0x39b521,_0x2d279f,_0x2d37ef){return _0x39b521(_0x2d279f,_0x2d37ef);},'zeUTb':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x17868f}=await getActionItems(_0x59a7ce);let _0x107e8a=0x0,_0xb9d723=0x0;for(const _0x5175ec of _0x17868f){const _0x11249e=await _0x379466['yyLUh'](getItemFeedback,_0x59a7ce,_0x5175ec['id']);_0x11249e[_0x23f211(0x1e7)]['length']>0x0&&(_0x107e8a+=_0x11249e[_0x23f211(0x1e7)]['length'],_0xb9d723++);}_0x107e8a>0x0&&(console['log'](_0x23f211(0x1db)+_0x107e8a+_0x23f211(0x13a)+_0xb9d723+_0x23f211(0x12c)),console[_0x23f211(0x1a0)](_0x379466[_0x23f211(0x12d)]));}catch{}}async function tryStartCurrentSession(_0x15b2dc){const _0x551099=_0x442b66;try{const {sessions:_0x5cfd4d}=await listFeatureSessions(_0x15b2dc),_0x2810ef=_0x5cfd4d['find'](_0x3d17e3=>_0x3d17e3['status']===_0x551099(0x1c1));_0x2810ef&&(await startSession(_0x15b2dc,_0x2810ef['id']),console['log'](_0x551099(0x1bf)+_0x2810ef[_0x551099(0x1bc)]));}catch{}}export async function featureReport(_0x1e6d74,_0x567d70){const _0x19a157=_0x442b66,_0x3d20c8={'WoOyk':function(_0x11f7ec){return _0x11f7ec();},'JaIJj':_0x19a157(0x1ce),'FSMgq':function(_0x3500a5){return _0x3500a5();},'chAqR':'reports','qIokl':function(_0x5985e0,_0x113dae){return _0x5985e0(_0x113dae);},'NclFt':function(_0x323ada,_0x1af57a,_0x58af49,_0x490620){return _0x323ada(_0x1af57a,_0x58af49,_0x490620);}},_0x475c4c=_0x1e6d74||await _0x3d20c8['WoOyk'](getActiveFeatureId);if(!_0x475c4c)throw new Error(_0x3d20c8['JaIJj']);console[_0x19a157(0x1a0)](_0x19a157(0x199));const _0x50461e=await getFeatureReportMarkdown(_0x475c4c,{'style':_0x567d70['style']}),_0x2a98e5=_0x567d70['output']||join(_0x3d20c8[_0x19a157(0x1c5)](getRangerDir),_0x3d20c8['chAqR'],_0x475c4c+'.md'),_0x40a86b=join(_0x2a98e5,'..');!_0x3d20c8[_0x19a157(0x1ab)](existsSync,_0x40a86b)&&await mkdir(_0x40a86b,{'recursive':!![]}),await _0x3d20c8[_0x19a157(0x129)](writeFile,_0x2a98e5,_0x50461e,'utf-8'),console[_0x19a157(0x1a0)](_0x19a157(0x17a)+_0x2a98e5);}function getScenarioResult(_0x2e8e8b){const _0x1c0816=_0x442b66,_0x2f7944={'IbtyF':_0x1c0816(0x19b),'ZiBFE':function(_0x5617ff,_0x31d0a5){return _0x5617ff===_0x31d0a5;},'ygMBf':'verification_in_progress','jtOOI':'in_progress'};if(_0x2e8e8b['status']==='closed')return _0x2e8e8b['terminalReason']??_0x2f7944[_0x1c0816(0x182)];if(_0x2f7944['ZiBFE'](_0x2e8e8b[_0x1c0816(0x147)],_0x2f7944[_0x1c0816(0x18a)]))return _0x2f7944[_0x1c0816(0x157)];return _0x2e8e8b[_0x1c0816(0x147)];}function getScenarioRationale(_0x48ee41,_0x3240ac){const _0x3241e5=_0x442b66;if(_0x3240ac)return _0x3240ac;if(_0x48ee41[_0x3241e5(0x127)])return _0x48ee41['blockedReason'];if(_0x48ee41['incompleteReason'])return _0x48ee41[_0x3241e5(0x156)];if(_0x48ee41[_0x3241e5(0x183)])return _0x48ee41['canceledReason'];if(_0x48ee41[_0x3241e5(0x145)])return _0x48ee41[_0x3241e5(0x145)];return null;}export async function featureReportPrDescription(_0x104f55,_0x1af422){const _0x20daec=_0x442b66,_0x2307ca={'Pzhnm':function(_0x359944){return _0x359944();},'GkAHu':_0x20daec(0x1ce),'euSJq':function(_0x493440,_0x3a62e5){return _0x493440(_0x3a62e5);},'rNIqy':function(_0x208932,_0x3fbc7){return _0x208932===_0x3fbc7;},'QhBJX':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','kkjZX':function(_0x3ddf53,_0x10c288){return _0x3ddf53<_0x10c288;},'XvlHV':function(_0x40498d,_0x99559e){return _0x40498d+_0x99559e;},'uykKE':function(_0x1ab09f,_0x46106d){return _0x1ab09f===_0x46106d;},'eszob':function(_0x297c5d,_0x433a59,_0x4834c1){return _0x297c5d(_0x433a59,_0x4834c1);}},_0x2a1057=_0x104f55||await _0x2307ca[_0x20daec(0x1b3)](getActiveFeatureId);if(!_0x2a1057)throw new Error(_0x2307ca[_0x20daec(0x140)]);const _0x3444c7=await _0x2307ca[_0x20daec(0x1ea)](getFeature,_0x2a1057),_0x7110a8=_0x3444c7[_0x20daec(0x131)]||[],_0x47fad9=getCurrentSessionItems(_0x3444c7,_0x7110a8);_0x2307ca['rNIqy'](_0x47fad9[_0x20daec(0x1ad)],0x0)&&(console[_0x20daec(0x1aa)](_0x2307ca['QhBJX']),process['exit'](0x1));const _0x993aad=_0x1af422['excludeScenarios']??[],_0x3b7d26=_0x993aad['filter'](_0x20d0fe=>!Number[_0x20daec(0x191)](_0x20d0fe)||_0x20d0fe<0x1||_0x20d0fe>_0x47fad9[_0x20daec(0x1ad)]);if(_0x3b7d26[_0x20daec(0x1ad)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x3b7d26['join'](',\x20')),console['log'](_0x20daec(0x19e));for(let _0x3dcfbc=0x0;_0x2307ca[_0x20daec(0x1a5)](_0x3dcfbc,_0x47fad9[_0x20daec(0x1ad)]);_0x3dcfbc++){console['log']('\x20\x20'+_0x2307ca[_0x20daec(0x195)](_0x3dcfbc,0x1)+'.\x20'+_0x47fad9[_0x3dcfbc][_0x20daec(0x11f)]);}process['exit'](0x1);}const _0x525b13=new Set(_0x993aad['map'](_0x10f21b=>_0x10f21b-0x1)),_0x5c7657=_0x47fad9['filter']((_0x11386,_0x2ebe03)=>!_0x525b13['has'](_0x2ebe03));_0x2307ca[_0x20daec(0x180)](_0x5c7657[_0x20daec(0x1ad)],0x0)&&(console[_0x20daec(0x1aa)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x1af422[_0x20daec(0x15a)])await outputJsonReport(_0x2a1057,_0x3444c7,_0x5c7657);else{const _0x55a80c=await _0x2307ca[_0x20daec(0x163)](getFeatureReportMarkdown,_0x2a1057,{'itemIds':_0x5c7657[_0x20daec(0x1cf)](_0x3aae40=>_0x3aae40['id'])});process['stdout'][_0x20daec(0x1ba)](_0x55a80c['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x3e0387,_0x445229,_0x1a0191){const _0x1eb54a=_0x442b66,_0x59c143={'CMWMV':function(_0x3ffb53,_0x516f98){return _0x3ffb53(_0x516f98);},'RYBDI':function(_0x279e24){return _0x279e24();}},_0x2a1f8e=_0x59c143['RYBDI'](getApiBaseUrl),_0x291820=await getFeatureReport(_0x3e0387),_0x5631ae=new Map(_0x291820[_0x1eb54a(0x131)][_0x1eb54a(0x1cf)](_0x435c6d=>[_0x435c6d['id'],_0x435c6d])),_0x1b1f56=await Promise['all'](_0x1a0191['map'](async _0x39b786=>{const _0x6343f9=_0x1eb54a,_0x2cd95a=_0x5631ae['get'](_0x39b786['id']),_0x53c3fc=_0x2cd95a?.[_0x6343f9(0x171)]??null;let _0x14e444=[];if(_0x39b786[_0x6343f9(0x1a1)])try{const {steps:_0x5ab717}=await _0x59c143[_0x6343f9(0x1b5)](getBrowserSessionSteps,_0x39b786['browserSessionId']);_0x5ab717[_0x6343f9(0x1ad)]>0x0&&(_0x14e444=_0x5ab717['map'](_0x2ae8ee=>{const _0x4282a=_0x6343f9,_0x50b64d=_0x2ae8ee['assets'][_0x4282a(0x1c7)](_0x1312e=>_0x1312e['assetType']===_0x4282a(0x1a9)&&_0x1312e['timing']==='after')??_0x2ae8ee[_0x4282a(0x132)]['find'](_0x21726d=>_0x21726d['assetType']===_0x4282a(0x1a9));let _0x4fa8e4=null,_0x39be8c=null;if(_0x50b64d){const _0x10f121=_0x50b64d[_0x4282a(0x161)]['location'][_0x4282a(0x146)]('/')['pop']();_0x4fa8e4=_0x2a1f8e+_0x4282a(0x1e3)+_0x39b786[_0x4282a(0x1a1)]+'/artifacts/'+_0x10f121,_0x10f121&&(_0x39be8c=_0x10f121[_0x4282a(0x13c)](/\.\w+$/,'')[_0x4282a(0x13c)](/^(key_)?\d+_/,'')[_0x4282a(0x13c)](/[-_]/g,'\x20'));}return{'description':_0x39be8c||_0x2ae8ee[_0x4282a(0x11f)]||_0x2ae8ee[_0x4282a(0x1e0)]||'Step\x20'+_0x2ae8ee[_0x4282a(0x1ac)],'screenshot':_0x4fa8e4,'is_key_step':_0x2ae8ee[_0x4282a(0x110)]};}));}catch{}return _0x14e444[_0x6343f9(0x1ad)]===0x0&&_0x53c3fc?.[_0x6343f9(0x173)]&&(_0x14e444=_0x53c3fc['screenshotUrls'][_0x6343f9(0x1cf)]((_0x38235e,_0x4eb561)=>({'description':_0x6343f9(0x136)+(_0x4eb561+0x1),'screenshot':_0x38235e,'is_key_step':![]}))),{'description':_0x39b786[_0x6343f9(0x11f)],'result':getScenarioResult(_0x39b786),'rationale':getScenarioRationale(_0x39b786,_0x53c3fc?.[_0x6343f9(0x1e4)]),'steps':_0x14e444};})),_0x5a6506={'url':_0x445229[_0x1eb54a(0x19c)],'scenarios':_0x1b1f56};process['stdout'][_0x1eb54a(0x1ba)](JSON[_0x1eb54a(0x19f)](_0x5a6506,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x23cda0){const _0x2676ac=_0x442b66,_0xefda41={'wUNNd':function(_0x4a4389){return _0x4a4389();},'uiZEq':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','svNzA':'Current\x20session\x20not\x20found.','bGXJF':'\x0aConcluding\x20session...','djxVY':function(_0x24ee5e,_0x1f159a,_0x55f93d){return _0x24ee5e(_0x1f159a,_0x55f93d);}},_0xfd77be=_0x23cda0||await _0xefda41[_0x2676ac(0x1c4)](getActiveFeatureId);if(!_0xfd77be)throw new Error(_0xefda41['uiZEq']);const _0x449aca=await getFeature(_0xfd77be);if(!_0x449aca[_0x2676ac(0x1c2)])throw new Error(_0x2676ac(0x14f));const {sessions:_0x160acb}=await listFeatureSessions(_0xfd77be),_0xecc9f8=_0x160acb[_0x2676ac(0x1c7)](_0x182fbd=>_0x182fbd['id']===_0x449aca['currentSessionId']);if(!_0xecc9f8)throw new Error(_0xefda41['svNzA']);if(_0xecc9f8['status']===_0x2676ac(0x193)){console[_0x2676ac(0x1a0)](_0x2676ac(0x12e));return;}if(_0xecc9f8[_0x2676ac(0x147)]!==_0x2676ac(0x1a8))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0xecc9f8[_0x2676ac(0x147)]);console[_0x2676ac(0x1a0)](_0xefda41['bGXJF']),await _0xefda41[_0x2676ac(0x1dc)](concludeSession,_0xfd77be,_0x449aca['currentSessionId']),console[_0x2676ac(0x1a0)]('\x0a✅\x20Session\x20'+_0xecc9f8[_0x2676ac(0x1bc)]+_0x2676ac(0x1b6)),console['log'](_0x2676ac(0x164));}export async function featureSessions(_0x13979e){const _0x45ff90=_0x442b66,_0x4a29e6={'EMOjE':function(_0x5262f4){return _0x5262f4();},'GtILz':function(_0x2b1d2b,_0x40184a){return _0x2b1d2b(_0x40184a);},'EYDzL':function(_0x3e04e0,_0x61a21d){return _0x3e04e0===_0x61a21d;},'KFwmU':'completed'},_0x4208b8=_0x13979e||await _0x4a29e6[_0x45ff90(0x16e)](getActiveFeatureId);if(!_0x4208b8)throw new Error(_0x45ff90(0x1ce));const _0x173222=await getFeature(_0x4208b8);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x173222['name']+'\x0a');const {sessions:_0x376960}=await _0x4a29e6[_0x45ff90(0x114)](listFeatureSessions,_0x4208b8);if(_0x4a29e6['EYDzL'](_0x376960[_0x45ff90(0x1ad)],0x0)){console[_0x45ff90(0x1a0)](_0x45ff90(0x1ed));return;}for(const _0x174f75 of _0x376960){const _0x541ff0=_0x174f75[_0x45ff90(0x147)]===_0x4a29e6[_0x45ff90(0x165)]?'✅':_0x174f75['status']==='in_progress'?'🔄':'▶️';console['log'](_0x541ff0+'\x20Session\x20'+_0x174f75['iteration']+'\x20('+_0x174f75['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x174f75['status']),console[_0x45ff90(0x1a0)](_0x45ff90(0x126)+new Date(_0x174f75[_0x45ff90(0x11b)])['toLocaleString']()),_0x174f75['completedAt']&&console['log'](_0x45ff90(0x1af)+new Date(_0x174f75[_0x45ff90(0x13e)])['toLocaleString']()),console[_0x45ff90(0x1a0)]('');}}export async function featureAddScenario(_0x313152,_0x1d382e){const _0x3eb0dd=_0x442b66,_0x578dae={'UlCBq':function(_0x386992,_0x47602a){return _0x386992(_0x47602a);},'rSjcB':function(_0x1cab35,_0x32264b,_0x1aeee5){return _0x1cab35(_0x32264b,_0x1aeee5);},'IGXVu':function(_0x33ca7f,_0x527aa6){return _0x33ca7f(_0x527aa6);}},_0x33def3=_0x1d382e||await getActiveFeatureId();if(!_0x33def3)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 _0x2f8cbe=await _0x578dae['UlCBq'](getFeature,_0x33def3);if(_0x2f8cbe[_0x3eb0dd(0x14c)]&&!_0x2f8cbe['latestReview'][_0x3eb0dd(0x1b7)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x2f8cbe['dashboardUrl']);await _0x578dae['rSjcB'](createChecklistItem,_0x33def3,_0x313152);const _0x3c421f=await _0x578dae[_0x3eb0dd(0x15f)](getFeature,_0x33def3);console['log'](_0x3eb0dd(0x15e)),_0x578dae[_0x3eb0dd(0x141)](displayFeature,_0x3c421f,_0x3c421f[_0x3eb0dd(0x131)]);}export async function featureEditScenario(_0x3ed40b,_0x31d577){const _0x124d14=_0x442b66,_0xdd9838={'iFMgn':_0x124d14(0x135),'ognrz':'Please\x20finish\x20your\x20review\x20first:','OOQqE':function(_0x32a261,_0x24473c){return _0x32a261===_0x24473c;},'HspFw':_0x124d14(0x134),'JSVcC':function(_0x3d1a3f,_0x26fa81){return _0x3d1a3f<_0x26fa81;},'lbGVs':function(_0x2f4367,_0x5e482a){return _0x2f4367+_0x5e482a;},'ExfBF':function(_0x508c75,_0x11b421){return _0x508c75>=_0x11b421;},'NeVVX':'\x0aAvailable\x20scenarios:','SrLTS':function(_0x168dfd,_0x23d07f,_0x100c8f){return _0x168dfd(_0x23d07f,_0x100c8f);}},_0x52b5f9=_0x31d577['id']||await getActiveFeatureId();!_0x52b5f9&&(console['error'](_0xdd9838['iFMgn']),console['error'](_0x124d14(0x15c)),process[_0x124d14(0x113)](0x1));const _0x37f40e=await getFeature(_0x52b5f9);_0x37f40e[_0x124d14(0x14c)]&&!_0x37f40e[_0x124d14(0x14c)][_0x124d14(0x1b7)]&&(console[_0x124d14(0x1aa)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x124d14(0x1aa)](_0xdd9838[_0x124d14(0x190)]),console[_0x124d14(0x1aa)]('\x20\x20'+_0x37f40e[_0x124d14(0x19c)]),process['exit'](0x1));const _0x1e2b4e=_0x37f40e[_0x124d14(0x131)]||[];_0x1e2b4e['length']===0x0&&(console[_0x124d14(0x1aa)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0xdd9838['OOQqE'](_0x31d577['scenario'],undefined)){console[_0x124d14(0x1aa)](_0xdd9838[_0x124d14(0x172)]),console[_0x124d14(0x1a0)](_0x124d14(0x19e));for(let _0x514dab=0x0;_0xdd9838['JSVcC'](_0x514dab,_0x1e2b4e['length']);_0x514dab++){console[_0x124d14(0x1a0)]('\x20\x20'+_0xdd9838['lbGVs'](_0x514dab,0x1)+'.\x20'+_0x1e2b4e[_0x514dab]['description']);}process[_0x124d14(0x113)](0x1);}const _0x33f670=_0x31d577[_0x124d14(0x16a)]-0x1;if(_0x33f670<0x0||_0xdd9838['ExfBF'](_0x33f670,_0x1e2b4e['length'])){console[_0x124d14(0x1aa)](_0x124d14(0x1eb)+_0x31d577['scenario']+_0x124d14(0x1de)+_0x1e2b4e[_0x124d14(0x1ad)]+_0x124d14(0x179)),console[_0x124d14(0x1a0)](_0xdd9838['NeVVX']);for(let _0x44963d=0x0;_0x44963d<_0x1e2b4e['length'];_0x44963d++){console[_0x124d14(0x1a0)]('\x20\x20'+_0xdd9838[_0x124d14(0x116)](_0x44963d,0x1)+'.\x20'+_0x1e2b4e[_0x44963d]['description']);}process[_0x124d14(0x113)](0x1);}const _0x5c1cc8=_0x1e2b4e[_0x33f670];await updateChecklistItem(_0x52b5f9,_0x5c1cc8['id'],{'description':_0x3ed40b});const _0x305185=await getFeature(_0x52b5f9);console[_0x124d14(0x1a0)](_0x124d14(0x1d4)),_0xdd9838['SrLTS'](displayFeature,_0x305185,_0x305185[_0x124d14(0x131)]);}async function downloadFeedbackImage(_0x2e400b,_0x501b35){const _0x2cf36e=_0x442b66,_0x52dc83={'eYqPQ':function(_0x53cd9a,_0x1a3663,_0x58b0ad){return _0x53cd9a(_0x1a3663,_0x58b0ad);},'uNdgz':function(_0x3a94ba,_0x235f1c,_0x1d9570){return _0x3a94ba(_0x235f1c,_0x1d9570);}};try{const _0xc4f454=_0x52dc83[_0x2cf36e(0x1d1)](join,getRangerDir(),_0x2cf36e(0x1a2));await _0x52dc83['uNdgz'](mkdir,_0xc4f454,{'recursive':!![]});const _0xed9da0=_0x52dc83['uNdgz'](join,_0xc4f454,'comment_'+_0x501b35+_0x2cf36e(0x1e1)),_0x54d0af=await fetch(_0x2e400b);if(!_0x54d0af['ok'])return null;const _0x10722a=Buffer[_0x2cf36e(0x12a)](await _0x54d0af[_0x2cf36e(0x174)]());return await _0x52dc83['eYqPQ'](writeFile,_0xed9da0,_0x10722a),_0xed9da0;}catch{return null;}}export async function featureGetReview(_0x48b036){const _0x1a8f74=_0x442b66,_0x1c4f27={'nPKSJ':function(_0xa16747){return _0xa16747();},'laUlr':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','IHxcL':function(_0x51c3a5,_0x543c77){return _0x51c3a5===_0x543c77;},'AqezQ':function(_0x1f914d,_0x4d944a){return _0x1f914d<_0x4d944a;},'CDGCt':function(_0x5a8310,_0x5d9e6e,_0x144414){return _0x5a8310(_0x5d9e6e,_0x144414);},'oKJRE':'en-US','UkFSV':_0x1a8f74(0x194),'FbasH':'Unknown','rApkN':function(_0x440814,_0x4d02cb,_0x5f3e1c){return _0x440814(_0x4d02cb,_0x5f3e1c);},'hlOVZ':_0x1a8f74(0x130),'TRBQF':function(_0x5c02f1,_0x4ea390){return _0x5c02f1>=_0x4ea390;},'cXwlB':function(_0x521daa,_0x132435){return _0x521daa+_0x132435;}},_0x511f5d=_0x48b036||await _0x1c4f27[_0x1a8f74(0x1d7)](getActiveFeatureId);if(!_0x511f5d)throw new Error(_0x1c4f27['laUlr']);const _0x5029e1=await getFeature(_0x511f5d),{items:_0x4104a8}=await getActionItems(_0x511f5d);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5029e1['name']+'\x20('+_0x5029e1['id']+')\x0a');if(_0x1c4f27['IHxcL'](_0x4104a8[_0x1a8f74(0x1ad)],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x1c4ec6=0x0;_0x1c4f27['AqezQ'](_0x1c4ec6,_0x4104a8[_0x1a8f74(0x1ad)]);_0x1c4ec6++){const _0x278730=_0x4104a8[_0x1c4ec6],_0x2b2f3c=_0x278730[_0x1a8f74(0x14b)]>0x1?_0x1a8f74(0x1c6)+_0x278730['version']+')':'',_0x476482=await _0x1c4f27['CDGCt'](getItemFeedback,_0x511f5d,_0x278730['id']);if(_0x476482['unaddressedComments'][_0x1a8f74(0x1ad)]>0x0){console[_0x1a8f74(0x1a0)]('Scenario\x20'+(_0x1c4ec6+0x1)+':\x20\x22'+_0x278730[_0x1a8f74(0x11f)]+'\x22'+_0x2b2f3c+_0x1a8f74(0x1e6)+_0x476482['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x5609af of _0x476482[_0x1a8f74(0x1e7)]){const _0x389ef7=new Date(_0x5609af['createdAt'])['toLocaleDateString'](_0x1c4f27[_0x1a8f74(0x1cd)],{'month':_0x1c4f27[_0x1a8f74(0x1d3)],'day':'numeric'}),_0x1260de=_0x5609af['authorName']||_0x5609af['authorEmail']||_0x1c4f27[_0x1a8f74(0x1d8)];console['log']('\x20\x20💬\x20'+_0x1260de+'\x20('+_0x389ef7+_0x1a8f74(0x1d9)+_0x5609af[_0x1a8f74(0x1dd)]+'\x22');if(_0x5609af[_0x1a8f74(0x1d6)]){const _0x4e30c0=await _0x1c4f27[_0x1a8f74(0x175)](downloadFeedbackImage,_0x5609af[_0x1a8f74(0x1d6)],_0x5609af['id']);_0x4e30c0&&console['log'](_0x1a8f74(0x1ae)+_0x4e30c0);}if(_0x5609af[_0x1a8f74(0x177)]){const _0x54083c=_0x5609af[_0x1a8f74(0x177)][_0x1a8f74(0x123)]['split']('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x1c4f27['hlOVZ'],_0x2b8616=_0x5609af['domRef']['textContent']?'\x20\x22'+_0x5609af['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x54083c+'>'+_0x2b8616),console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5609af[_0x1a8f74(0x177)][_0x1a8f74(0x123)]);}else{if(_0x5609af['spatial']){const _0x4f58eb=_0x5609af['spatial']['coordinates'];_0x5609af[_0x1a8f74(0x14a)][_0x1a8f74(0x13f)]==='point'&&_0x1c4f27[_0x1a8f74(0x18e)](_0x4f58eb['length'],0x2)?console['log'](_0x1a8f74(0x15d)+_0x4f58eb[0x0]['toFixed'](0x2)+',\x20'+_0x4f58eb[0x1]['toFixed'](0x2)+')'):console['log'](_0x1a8f74(0x160)+_0x5609af[_0x1a8f74(0x14a)][_0x1a8f74(0x13f)]+'\x20at\x20['+_0x4f58eb[_0x1a8f74(0x1cf)](_0x46124b=>_0x46124b[_0x1a8f74(0x17b)](0x2))['join'](',\x20')+']');}}}if(_0x476482[_0x1a8f74(0x112)]){console[_0x1a8f74(0x1a0)](_0x1a8f74(0x178));for(const _0x32968b of _0x476482[_0x1a8f74(0x112)]['split']('\x0a')){console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20'+_0x32968b);}}}else console['log']('Scenario\x20'+_0x1c4f27[_0x1a8f74(0x189)](_0x1c4ec6,0x1)+_0x1a8f74(0x159)+_0x278730[_0x1a8f74(0x11f)]+'\x22'+_0x2b2f3c+_0x1a8f74(0x162)),console[_0x1a8f74(0x1a0)](_0x1a8f74(0x148));console['log']('');}}function _0xca9d(_0x2f96fe,_0x586ec3){_0x2f96fe=_0x2f96fe-0x10f;const _0x226a47=_0x226a();let _0xca9d26=_0x226a47[_0x2f96fe];return _0xca9d26;}export async function featureDelete(_0x22f3ac){const _0x3a7492=_0x442b66,_0xdae340={'upWCn':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','MwfvE':function(_0x4a53b1,_0x3a9319){return _0x4a53b1(_0x3a9319);},'SMlzU':function(_0x336697,_0x126bb5){return _0x336697+_0x126bb5;}},_0x2e4b14=_0x22f3ac||await getActiveFeatureId();if(!_0x2e4b14)throw new Error(_0xdae340['upWCn']);const _0x43d7d7=await getFeature(_0x2e4b14);await _0xdae340['MwfvE'](softDeleteFeature,_0x2e4b14),console[_0x3a7492(0x1a0)](_0x3a7492(0x19a)+_0x43d7d7[_0x3a7492(0x1d0)]+'\x20('+_0x2e4b14+')'),console[_0x3a7492(0x1a0)](_0xdae340['SMlzU'](_0x3a7492(0x1c9),_0x2e4b14));}export async function featureRestore(_0x2b86b7){const _0x3e8618=_0x442b66,_0x55f5f7={'PtOou':function(_0x190de7,_0x12a5ec){return _0x190de7(_0x12a5ec);}};await _0x55f5f7['PtOou'](restoreFeature,_0x2b86b7);const _0x5666a7=await getFeature(_0x2b86b7);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x5666a7['name']+'\x20('+_0x2b86b7+')'),displayFeature(_0x5666a7,_0x5666a7[_0x3e8618(0x131)]);}
@@ -1 +1 @@
1
- (function(_0x3690e2,_0x2bf3ca){const _0xa9d9bc=_0x3c3c,_0x28d7a5=_0x3690e2();while(!![]){try{const _0x7e928=-parseInt(_0xa9d9bc(0xb0))/0x1*(parseInt(_0xa9d9bc(0xb2))/0x2)+-parseInt(_0xa9d9bc(0xb3))/0x3+parseInt(_0xa9d9bc(0xad))/0x4+parseInt(_0xa9d9bc(0xac))/0x5+parseInt(_0xa9d9bc(0xae))/0x6+-parseInt(_0xa9d9bc(0xaf))/0x7+parseInt(_0xa9d9bc(0xab))/0x8;if(_0x7e928===_0x2bf3ca)break;else _0x28d7a5['push'](_0x28d7a5['shift']());}catch(_0x1bc344){_0x28d7a5['push'](_0x28d7a5['shift']());}}}(_0x4bf7,0x57db9));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 _0x3c3c(_0x403c4c,_0x36dddb){_0x403c4c=_0x403c4c-0xab;const _0x4bf7e7=_0x4bf7();let _0x3c3c0f=_0x4bf7e7[_0x403c4c];return _0x3c3c0f;}function _0x4bf7(){const _0x58099c=['4070680uLjGGO','2037810rEdPXG','1249684NNkvCn','4145652lfgDfA','4169487mPZapi','2oKZuhL','Unknown\x20hook:\x20','275612PCHnwp','2065926FkKfZH','khfga','error','exit'];_0x4bf7=function(){return _0x58099c;};return _0x4bf7();}export async function hook(_0x46fcc6,_0x487887){const _0x28addb=_0x3c3c,_0x26e112={'khfga':function(_0x231985,_0x313423){return _0x231985(_0x313423);}},_0x453aa=HOOKS[_0x46fcc6];if(!_0x453aa){const _0x191760=Object['keys'](HOOKS)['join'](',\x20');console[_0x28addb(0xb5)](_0x28addb(0xb1)+_0x46fcc6),console['error']('Valid\x20hooks:\x20'+_0x191760),process[_0x28addb(0xb6)](0x1);}await _0x26e112[_0x28addb(0xb4)](_0x453aa,_0x487887);}
1
+ function _0x5169(){const _0xe60ceb=['1459732gRFcUt','15654kBPjEZ','join','4904RyJLkl','5193Vflzvs','273175Siczze','410rQRUPv','20654040CSCKhy','1021578aRpbQU','1270325NhdpgU','4jvTODl','KyYvh'];_0x5169=function(){return _0xe60ceb;};return _0x5169();}(function(_0x5e5d18,_0x3d520a){const _0x58b9f2=_0x2a97,_0x4b24e2=_0x5e5d18();while(!![]){try{const _0x8a734b=-parseInt(_0x58b9f2(0x134))/0x1+-parseInt(_0x58b9f2(0x139))/0x2*(parseInt(_0x58b9f2(0x137))/0x3)+-parseInt(_0x58b9f2(0x13b))/0x4+-parseInt(_0x58b9f2(0x135))/0x5*(parseInt(_0x58b9f2(0x13c))/0x6)+parseInt(_0x58b9f2(0x138))/0x7+-parseInt(_0x58b9f2(0x132))/0x8*(parseInt(_0x58b9f2(0x133))/0x9)+parseInt(_0x58b9f2(0x136))/0xa;if(_0x8a734b===_0x3d520a)break;else _0x4b24e2['push'](_0x4b24e2['shift']());}catch(_0x4006fd){_0x4b24e2['push'](_0x4b24e2['shift']());}}}(_0x5169,0x57e90));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x2a97(_0x15b67a,_0x30fa11){_0x15b67a=_0x15b67a-0x131;const _0x516915=_0x5169();let _0x2a97e6=_0x516915[_0x15b67a];return _0x2a97e6;}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(_0x36aefe,_0x247202){const _0x150d7e=_0x2a97,_0x1a6c42={'KyYvh':function(_0x72cac5,_0x2f8409){return _0x72cac5(_0x2f8409);}},_0xb65cbb=HOOKS[_0x36aefe];if(!_0xb65cbb){const _0x2809fb=Object['keys'](HOOKS)[_0x150d7e(0x131)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x36aefe),console['error']('Valid\x20hooks:\x20'+_0x2809fb),process['exit'](0x1);}await _0x1a6c42[_0x150d7e(0x13a)](_0xb65cbb,_0x247202);}
@@ -1 +1 @@
1
- (function(_0x91464f,_0x4efd99){const _0x2bf179=_0x55a6,_0x49ac03=_0x91464f();while(!![]){try{const _0x4a8d84=-parseInt(_0x2bf179(0x81))/0x1+-parseInt(_0x2bf179(0x82))/0x2*(parseInt(_0x2bf179(0x84))/0x3)+-parseInt(_0x2bf179(0x8a))/0x4*(parseInt(_0x2bf179(0x89))/0x5)+-parseInt(_0x2bf179(0x83))/0x6+parseInt(_0x2bf179(0x88))/0x7+-parseInt(_0x2bf179(0x86))/0x8*(parseInt(_0x2bf179(0x8b))/0x9)+parseInt(_0x2bf179(0x85))/0xa;if(_0x4a8d84===_0x4efd99)break;else _0x49ac03['push'](_0x49ac03['shift']());}catch(_0x5d1c5b){_0x49ac03['push'](_0x49ac03['shift']());}}}(_0x110c,0xad9fd));import{readHookInput}from'./output.js';function _0x110c(){const _0x4cbf9b=['6489282fBOYJm','1702491SVWYLJ','48403140xYQwdU','1832MAjigo','session_id','2886870NenjIu','17145iPFEsn','612rUNhjQ','21852WZEKTi','1244369OMsGYF','4SEvdwa'];_0x110c=function(){return _0x4cbf9b;};return _0x110c();}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.';function _0x55a6(_0x5f0b0c,_0x50772c){_0x5f0b0c=_0x5f0b0c-0x81;const _0x110c16=_0x110c();let _0x55a655=_0x110c16[_0x5f0b0c];return _0x55a655;}export async function autoPrompt(){const _0x1e4757=_0x55a6,_0x2cb8cb={'iISkR':function(_0x4dece5,_0x5bb138){return _0x4dece5(_0x5bb138);}},_0x15fc5e=await readHookInput(),_0x288407=_0x15fc5e?.[_0x1e4757(0x87)];if(!_0x288407)return;if(isSessionEnabled(_0x288407)||_0x2cb8cb['iISkR'](hasSessionBeenPrompted,_0x288407))return;markSessionPrompted(_0x288407),console['log'](AUTO_PROMPT_TEXT);}
1
+ const _0x73223e=_0x1e8c;(function(_0x4b8eb4,_0x5a9b46){const _0x5b62c3=_0x1e8c,_0x5c3510=_0x4b8eb4();while(!![]){try{const _0x392d42=parseInt(_0x5b62c3(0x133))/0x1*(parseInt(_0x5b62c3(0x134))/0x2)+-parseInt(_0x5b62c3(0x135))/0x3*(-parseInt(_0x5b62c3(0x12f))/0x4)+parseInt(_0x5b62c3(0x138))/0x5+parseInt(_0x5b62c3(0x132))/0x6+-parseInt(_0x5b62c3(0x139))/0x7*(-parseInt(_0x5b62c3(0x136))/0x8)+-parseInt(_0x5b62c3(0x131))/0x9+-parseInt(_0x5b62c3(0x137))/0xa;if(_0x392d42===_0x5a9b46)break;else _0x5c3510['push'](_0x5c3510['shift']());}catch(_0x142fcb){_0x5c3510['push'](_0x5c3510['shift']());}}}(_0x217e,0x8264f));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x73223e(0x130);function _0x217e(){const _0x5a3e79=['\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.','5862501RBAPjc','2234106NjmgRn','56583DCcIWw','34DfbaXT','2115804YOFIqc','80eZFunf','18799510qwOknH','4709325CRysKQ','58828aSItcL','4dsKHbX'];_0x217e=function(){return _0x5a3e79;};return _0x217e();}function _0x1e8c(_0x4f6b06,_0x652bfa){_0x4f6b06=_0x4f6b06-0x12f;const _0x217e12=_0x217e();let _0x1e8c9e=_0x217e12[_0x4f6b06];return _0x1e8c9e;}export async function autoPrompt(){const _0x3c27c7={'eMQNa':function(_0x2b594d){return _0x2b594d();},'KCRCW':function(_0x2ee85c,_0x1ebdf0){return _0x2ee85c(_0x1ebdf0);}},_0xb7f289=await _0x3c27c7['eMQNa'](readHookInput),_0x28016f=_0xb7f289?.['session_id'];if(!_0x28016f)return;if(isSessionEnabled(_0x28016f)||_0x3c27c7['KCRCW'](hasSessionBeenPrompted,_0x28016f))return;markSessionPrompted(_0x28016f),console['log'](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x52bc4a,_0x2ab104){const _0xacde50=_0x1b7b,_0x122368=_0x52bc4a();while(!![]){try{const _0x54a955=parseInt(_0xacde50(0x87))/0x1*(parseInt(_0xacde50(0x95))/0x2)+parseInt(_0xacde50(0x94))/0x3+-parseInt(_0xacde50(0x8f))/0x4*(-parseInt(_0xacde50(0x88))/0x5)+parseInt(_0xacde50(0x93))/0x6*(-parseInt(_0xacde50(0x96))/0x7)+parseInt(_0xacde50(0x90))/0x8*(parseInt(_0xacde50(0x8b))/0x9)+parseInt(_0xacde50(0x8a))/0xa+-parseInt(_0xacde50(0x85))/0xb;if(_0x54a955===_0x2ab104)break;else _0x122368['push'](_0x122368['shift']());}catch(_0x5ecd62){_0x122368['push'](_0x122368['shift']());}}}(_0x166d,0xece46));function _0x166d(){const _0x2a3db1=['18uXRIjS','VUOmW','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','lEaZK','366500YvIoIN','362832IHRtIs','main','CLAUDE_SESSION_ID','6WyfMdy','3662220NBBRaV','24kmabdp','12240858cUoPgM','2159443FDQVUT','SmWid','7303RBcOgV','5zUHUVz','master','14246080cqEipW'];_0x166d=function(){return _0x2a3db1;};return _0x166d();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x1b7b(_0x552b7f,_0x4f7cec){_0x552b7f=_0x552b7f-0x85;const _0x166d9c=_0x166d();let _0x1b7b1d=_0x166d9c[_0x552b7f];return _0x1b7b1d;}import{printBlock}from'./output.js';export async function disable(_0x3c1839){const _0x2e1856=_0x1b7b,_0x6fc958={'SmWid':function(_0x51196a,_0x5d06ff){return _0x51196a(_0x5d06ff);},'lEaZK':function(_0x1f1a28,_0xd7ac18){return _0x1f1a28!==_0xd7ac18;},'iTCtl':function(_0x59f80c,_0x5dfbb9){return _0x59f80c!==_0x5dfbb9;},'zvMMT':_0x2e1856(0x89),'uxSJM':function(_0x56afb8,_0x21a963){return _0x56afb8(_0x21a963);},'VUOmW':function(_0x4f763e,_0x4827ae){return _0x4f763e!==_0x4827ae;}},_0x24e16c=_0x3c1839||process['env'][_0x2e1856(0x92)]||'';_0x24e16c&&_0x6fc958[_0x2e1856(0x86)](disableSession,_0x24e16c);const _0x39a450=getCurrentBranch();_0x39a450&&_0x6fc958[_0x2e1856(0x8e)](_0x39a450,_0x2e1856(0x91))&&_0x6fc958['iTCtl'](_0x39a450,_0x6fc958['zvMMT'])&&_0x6fc958[_0x2e1856(0x86)](disableBranch,_0x39a450),_0x6fc958['uxSJM'](printBlock,_0x2e1856(0x8d)+(_0x39a450&&_0x39a450!=='main'&&_0x6fc958[_0x2e1856(0x8c)](_0x39a450,'master')?'\x20and\x20branch\x20\x27'+_0x39a450+'\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(_0x476e1b,_0x4e3d8c){const _0x155a05=_0x3116,_0x408a06=_0x476e1b();while(!![]){try{const _0x57b127=parseInt(_0x155a05(0x7e))/0x1+parseInt(_0x155a05(0x7c))/0x2+-parseInt(_0x155a05(0x77))/0x3+parseInt(_0x155a05(0x7a))/0x4+-parseInt(_0x155a05(0x81))/0x5*(-parseInt(_0x155a05(0x78))/0x6)+parseInt(_0x155a05(0x80))/0x7*(-parseInt(_0x155a05(0x7d))/0x8)+-parseInt(_0x155a05(0x76))/0x9*(-parseInt(_0x155a05(0x7b))/0xa);if(_0x57b127===_0x4e3d8c)break;else _0x408a06['push'](_0x408a06['shift']());}catch(_0x198451){_0x408a06['push'](_0x408a06['shift']());}}}(_0x4b71,0xbadb5));function _0x3116(_0x56724b,_0x4ec249){_0x56724b=_0x56724b-0x74;const _0x4b712a=_0x4b71();let _0x31163b=_0x4b712a[_0x56724b];return _0x31163b;}function _0x4b71(){const _0x277a2a=['#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','1867491CKiYVw','1042569XeNBFf','1944780WPmWEQ','\x20and\x20branch\x20\x27','4544560tKtwlM','20IzPofG','1268442udAFlX','488UoVnGI','132852RRmnuu','oWPpo','175511MrPQZD','5gDgpVv','master'];_0x4b71=function(){return _0x277a2a;};return _0x4b71();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x1c394a){const _0x3c7c07=_0x3116,_0x325e89={'nTDba':'main','JXMdF':function(_0x5a4b66,_0x15e0e3){return _0x5a4b66(_0x15e0e3);},'ZkilZ':function(_0x58c332,_0x3ef5c5){return _0x58c332(_0x3ef5c5);},'oWPpo':function(_0x4c3992,_0x4149a0){return _0x4c3992!==_0x4149a0;},'sqkQT':_0x3c7c07(0x74)},_0x176c77=_0x1c394a||process['env']['CLAUDE_SESSION_ID']||'';_0x176c77&&disableSession(_0x176c77);const _0x33cd6e=getCurrentBranch();_0x33cd6e&&_0x33cd6e!==_0x325e89['nTDba']&&_0x33cd6e!==_0x3c7c07(0x74)&&_0x325e89['JXMdF'](disableBranch,_0x33cd6e),_0x325e89['ZkilZ'](printBlock,_0x3c7c07(0x75)+(_0x33cd6e&&_0x325e89[_0x3c7c07(0x7f)](_0x33cd6e,'main')&&_0x33cd6e!==_0x325e89['sqkQT']?_0x3c7c07(0x79)+_0x33cd6e+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
@@ -1 +1 @@
1
- (function(_0x14bf1b,_0x33ff80){const _0x4b613b=_0x433b,_0x49ace6=_0x14bf1b();while(!![]){try{const _0x48d32c=parseInt(_0x4b613b(0x1b9))/0x1+-parseInt(_0x4b613b(0x1b2))/0x2+-parseInt(_0x4b613b(0x1ad))/0x3*(-parseInt(_0x4b613b(0x1a3))/0x4)+parseInt(_0x4b613b(0x1a4))/0x5+-parseInt(_0x4b613b(0x1ba))/0x6*(parseInt(_0x4b613b(0x1a6))/0x7)+-parseInt(_0x4b613b(0x1a8))/0x8+parseInt(_0x4b613b(0x1b1))/0x9;if(_0x48d32c===_0x33ff80)break;else _0x49ace6['push'](_0x49ace6['shift']());}catch(_0xfe27e7){_0x49ace6['push'](_0x49ace6['shift']());}}}(_0x5b18,0xb18ee));function _0x433b(_0x5b4f7a,_0xca33e2){_0x5b4f7a=_0x5b4f7a-0x1a3;const _0x5b18e9=_0x5b18();let _0x433b79=_0x5b18e9[_0x5b4f7a];return _0x433b79;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x5b18(){const _0x5a9025=['main','#\x20RANGER\x20ENABLED','#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`','752302vkLTqt','7332AUEUqx','12IHJSem','5526370zwqQjE','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','7161bLPFyz','\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`.','3336600yhIlmq','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','EXIHn','ECLUv','120837MZmSmi','master','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','MiOLx','16562187iyHVKD','2848394WKLaVL','XkiOK','sUaCM','zAIZR'];_0x5b18=function(){return _0x5a9025;};return _0x5b18();}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x27184b){const _0x577037=_0x433b,_0x199054={'JvNIn':function(_0x19f811,_0x32bd16){return _0x19f811(_0x32bd16);},'zAIZR':'ranger\x20setup\x20--opencode','EXIHn':'ranger\x20setup','XkiOK':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','sUaCM':function(_0x659067){return _0x659067();},'MiOLx':_0x577037(0x1b6),'ECLUv':function(_0x4474dc,_0x56b499){return _0x4474dc!==_0x56b499;}},_0x2a2b59=_0x27184b||process['env']['CLAUDE_SESSION_ID']||'',_0x5866b8=_0x199054['JvNIn'](Boolean,_0x27184b),_0x402398=await getToken();if(!_0x402398){const _0x273ff9=_0x5866b8?_0x199054[_0x577037(0x1b5)]:_0x199054[_0x577037(0x1ab)],_0x1592fa=_0x5866b8?_0x577037(0x1a5):_0x199054[_0x577037(0x1b3)];printBlock(_0x577037(0x1b8)+_0x273ff9+_0x577037(0x1aa)+_0x1592fa);return;}try{await update();}catch{}_0x2a2b59&&enableSession(_0x2a2b59);const _0x1c9f65=_0x199054[_0x577037(0x1b4)](getCurrentBranch),_0x4291=_0x1c9f65&&_0x1c9f65!==_0x199054[_0x577037(0x1b0)]&&_0x199054[_0x577037(0x1ac)](_0x1c9f65,_0x577037(0x1ae))?'\x0a\x0a**Branch\x20\x27'+_0x1c9f65+_0x577037(0x1a9):'',_0x12f94b=getRangerSkillContent();printBlock(_0x577037(0x1b7)+_0x4291+_0x577037(0x1af)+_0x12f94b+_0x577037(0x1a7));}
1
+ (function(_0x1a9001,_0x3b2934){const _0xb45877=_0x1d71,_0x4674f8=_0x1a9001();while(!![]){try{const _0x366c84=parseInt(_0xb45877(0x178))/0x1+parseInt(_0xb45877(0x17f))/0x2+parseInt(_0xb45877(0x184))/0x3*(parseInt(_0xb45877(0x176))/0x4)+-parseInt(_0xb45877(0x183))/0x5+-parseInt(_0xb45877(0x174))/0x6*(-parseInt(_0xb45877(0x173))/0x7)+parseInt(_0xb45877(0x179))/0x8+parseInt(_0xb45877(0x186))/0x9*(-parseInt(_0xb45877(0x172))/0xa);if(_0x366c84===_0x3b2934)break;else _0x4674f8['push'](_0x4674f8['shift']());}catch(_0x2a15d1){_0x4674f8['push'](_0x4674f8['shift']());}}}(_0x15ff,0x69599));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x15ff(){const _0x116b13=['3199770ojyYCW','625731CdWtxE','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','12505266oSzVJZ','master','10ofvuQV','35539tLbcnL','684QDVvmQ','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','8zAqmUA','OdHoS','717136DhAquh','3398352eLFggs','main','ranger\x20setup','\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`.','HCxjO','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','646158GDiwgD','QeIbw','#\x20RANGER\x20ENABLED','sKTSC'];_0x15ff=function(){return _0x116b13;};return _0x15ff();}function _0x1d71(_0x34a150,_0x36aa87){_0x34a150=_0x34a150-0x172;const _0x15ff5d=_0x15ff();let _0x1d71ef=_0x15ff5d[_0x34a150];return _0x1d71ef;}import{update}from'../update.js';export async function enable(_0x558b0d){const _0x308e7c=_0x1d71,_0x529a11={'QeIbw':function(_0x41deaa){return _0x41deaa();},'yxlOo':_0x308e7c(0x17e),'OdHoS':function(_0x174efd){return _0x174efd();},'sKTSC':function(_0x1893c6,_0x6bc68c){return _0x1893c6!==_0x6bc68c;},'gIHSb':_0x308e7c(0x187),'HCxjO':function(_0x40e5e9){return _0x40e5e9();}},_0x137226=_0x558b0d||process['env']['CLAUDE_SESSION_ID']||'',_0x348779=Boolean(_0x558b0d),_0x285bfc=await _0x529a11[_0x308e7c(0x180)](getToken);if(!_0x285bfc){const _0x54b1bf=_0x348779?'ranger\x20setup\x20--opencode':_0x308e7c(0x17b),_0x1a36fc=_0x348779?_0x529a11['yxlOo']:_0x308e7c(0x185);printBlock('#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x54b1bf+_0x308e7c(0x175)+_0x1a36fc);return;}try{await _0x529a11[_0x308e7c(0x177)](update);}catch{}_0x137226&&enableSession(_0x137226);const _0x2b4202=getCurrentBranch(),_0x2d1234=_0x2b4202&&_0x529a11['sKTSC'](_0x2b4202,_0x308e7c(0x17a))&&_0x529a11[_0x308e7c(0x182)](_0x2b4202,_0x529a11['gIHSb'])?'\x0a\x0a**Branch\x20\x27'+_0x2b4202+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x1dc0f8=_0x529a11[_0x308e7c(0x17d)](getRangerSkillContent);printBlock(_0x308e7c(0x181)+_0x2d1234+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1dc0f8+_0x308e7c(0x17c));}
@@ -1 +1 @@
1
- function _0x362a(_0x23504b,_0x3ad814){_0x23504b=_0x23504b-0x1dd;const _0x293904=_0x2939();let _0x362a7f=_0x293904[_0x23504b];return _0x362a7f;}function _0x2939(){const _0x2ab7f7=['1485400NQIhaE','1317zePgsf','smkZm','761352zMfCZn','660709cylXFx','339853kKQyCM','1322isBwSP','90441ZApjjZ','18LrRoRA','323995lJXxpW','410xFXAUk'];_0x2939=function(){return _0x2ab7f7;};return _0x2939();}(function(_0x2ca50d,_0x2f88cc){const _0x20858b=_0x362a,_0x3f4a68=_0x2ca50d();while(!![]){try{const _0x256c54=-parseInt(_0x20858b(0x1df))/0x1+parseInt(_0x20858b(0x1e0))/0x2*(parseInt(_0x20858b(0x1e6))/0x3)+-parseInt(_0x20858b(0x1dd))/0x4+-parseInt(_0x20858b(0x1e3))/0x5+-parseInt(_0x20858b(0x1e2))/0x6*(-parseInt(_0x20858b(0x1de))/0x7)+-parseInt(_0x20858b(0x1e5))/0x8+-parseInt(_0x20858b(0x1e1))/0x9*(-parseInt(_0x20858b(0x1e4))/0xa);if(_0x256c54===_0x2f88cc)break;else _0x3f4a68['push'](_0x3f4a68['shift']());}catch(_0xbbc007){_0x3f4a68['push'](_0x3f4a68['shift']());}}}(_0x2939,0x31f8c));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3cb0fc){const _0x32f1fa=_0x362a,_0xeee9b0={'smkZm':function(_0x521901,_0x508932){return _0x521901(_0x508932);}},_0x281f05=await _0xeee9b0[_0x32f1fa(0x1e7)](getEnabledSessionId,_0x3cb0fc);if(!_0x281f05)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(_0x13fda1,_0x335adc){const _0x436967=_0x2118,_0x426fd3=_0x13fda1();while(!![]){try{const _0x17c287=parseInt(_0x436967(0xc8))/0x1*(parseInt(_0x436967(0xcd))/0x2)+parseInt(_0x436967(0xc6))/0x3*(parseInt(_0x436967(0xcc))/0x4)+-parseInt(_0x436967(0xc7))/0x5+-parseInt(_0x436967(0xc9))/0x6*(parseInt(_0x436967(0xcb))/0x7)+parseInt(_0x436967(0xce))/0x8+parseInt(_0x436967(0xcf))/0x9+-parseInt(_0x436967(0xca))/0xa;if(_0x17c287===_0x335adc)break;else _0x426fd3['push'](_0x426fd3['shift']());}catch(_0x2ca19b){_0x426fd3['push'](_0x426fd3['shift']());}}}(_0x1a5b,0x425c3));function _0x2118(_0x529acf,_0x27f59d){_0x529acf=_0x529acf-0xc6;const _0x1a5b08=_0x1a5b();let _0x21183f=_0x1a5b08[_0x529acf];return _0x21183f;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0xb094bd){const _0x2506a8=await getEnabledSessionId(_0xb094bd);if(!_0x2506a8)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 _0x1a5b(){const _0xf4ba5e=['14202FHhRzE','6LTNDYF','6963730FohiSu','1220317VaFJCX','4cRZKFH','36cOJZte','1826568mQYnQO','3664026hIfBAs','937659rVeSls','305545lcvtax'];_0x1a5b=function(){return _0xf4ba5e;};return _0x1a5b();}
@@ -1 +1 @@
1
- (function(_0x1fbb85,_0x5e9c59){var _0x4c4a80=_0x32e3,_0x38877b=_0x1fbb85();while(!![]){try{var _0x54cc81=parseInt(_0x4c4a80(0x1c2))/0x1+parseInt(_0x4c4a80(0x1c8))/0x2*(-parseInt(_0x4c4a80(0x1c0))/0x3)+-parseInt(_0x4c4a80(0x1c6))/0x4*(parseInt(_0x4c4a80(0x1c3))/0x5)+-parseInt(_0x4c4a80(0x1c7))/0x6+parseInt(_0x4c4a80(0x1bf))/0x7+parseInt(_0x4c4a80(0x1c5))/0x8*(-parseInt(_0x4c4a80(0x1c4))/0x9)+parseInt(_0x4c4a80(0x1c1))/0xa;if(_0x54cc81===_0x5e9c59)break;else _0x38877b['push'](_0x38877b['shift']());}catch(_0x18606f){_0x38877b['push'](_0x38877b['shift']());}}}(_0x5bba,0x4e758));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x5bba(){var _0x5885b0=['44dWSvHw','559410UopmPw','538562AqdIuM','1921927qogjGD','3fQaaKe','7511900qrgFFy','76230iZOrZc','33190kRQyBl','3105711WFHtEr','8UpBqBE'];_0x5bba=function(){return _0x5885b0;};return _0x5bba();}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';function _0x32e3(_0x39e156,_0x2916ea){_0x39e156=_0x39e156-0x1bf;var _0x5bbad3=_0x5bba();var _0x32e3c7=_0x5bbad3[_0x39e156];return _0x32e3c7;}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ function _0x4041(_0x791d38,_0x87c00){_0x791d38=_0x791d38-0x199;var _0x18a420=_0x18a4();var _0x4041eb=_0x18a420[_0x791d38];return _0x4041eb;}(function(_0x35173c,_0x457584){var _0x84036c=_0x4041,_0x3f9f5b=_0x35173c();while(!![]){try{var _0x34967e=parseInt(_0x84036c(0x19f))/0x1*(parseInt(_0x84036c(0x19e))/0x2)+parseInt(_0x84036c(0x19b))/0x3+parseInt(_0x84036c(0x1a1))/0x4+parseInt(_0x84036c(0x19a))/0x5+-parseInt(_0x84036c(0x199))/0x6*(parseInt(_0x84036c(0x1a0))/0x7)+parseInt(_0x84036c(0x19d))/0x8+-parseInt(_0x84036c(0x19c))/0x9;if(_0x34967e===_0x457584)break;else _0x3f9f5b['push'](_0x3f9f5b['shift']());}catch(_0x23fb0){_0x3f9f5b['push'](_0x3f9f5b['shift']());}}}(_0x18a4,0x664e3));function _0x18a4(){var _0x409f23=['1514450xEPOJq','519273QQxRVq','4626666ujxtLx','3858744NzapNt','494fRbpWI','1329WAaOmL','14JnwztC','1665272bpPRPu','2309364bfNtTS'];_0x18a4=function(){return _0x409f23;};return _0x18a4();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- (function(_0x586dda,_0x4c827d){const _0x4c02a6=_0x14fd,_0x2cc7e7=_0x586dda();while(!![]){try{const _0x3ab94c=-parseInt(_0x4c02a6(0x190))/0x1+-parseInt(_0x4c02a6(0x19a))/0x2+parseInt(_0x4c02a6(0x198))/0x3*(parseInt(_0x4c02a6(0x195))/0x4)+parseInt(_0x4c02a6(0x191))/0x5+-parseInt(_0x4c02a6(0x194))/0x6+-parseInt(_0x4c02a6(0x193))/0x7+-parseInt(_0x4c02a6(0x18e))/0x8*(-parseInt(_0x4c02a6(0x18f))/0x9);if(_0x3ab94c===_0x4c827d)break;else _0x2cc7e7['push'](_0x2cc7e7['shift']());}catch(_0x383313){_0x2cc7e7['push'](_0x2cc7e7['shift']());}}}(_0x41b9,0x7c211));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x437b34){const _0x26f411=_0x14fd;console[_0x26f411(0x18d)](_0x437b34);}function _0x41b9(){const _0x732299=['PyAnN','9kEUYuh','parse','257940pxqwjB','log','14126408TMOPNg','9ZWjtIS','257772bfDGSm','414835EZuVYZ','stdin','3231340iWWfkR','4320882WdUybT','304232mJGnZz','session_id'];_0x41b9=function(){return _0x732299;};return _0x41b9();}export async function readHookInput(){const _0x12e72a=_0x14fd;let _0x5d17b7='';for await(const _0x4fc0f4 of process[_0x12e72a(0x192)]){_0x5d17b7+=_0x4fc0f4;}try{return JSON[_0x12e72a(0x199)](_0x5d17b7);}catch{return null;}}export async function getEnabledSessionId(_0x1abecb){const _0x4248f8=_0x14fd,_0x5954e6={'PyAnN':function(_0x441923){return _0x441923();}};if(_0x1abecb)return isSessionEnabled(_0x1abecb)?_0x1abecb:null;const _0x1ec938=await _0x5954e6[_0x4248f8(0x197)](readHookInput),_0x4d54e4=_0x1ec938?.[_0x4248f8(0x196)];if(!_0x4d54e4||!isSessionEnabled(_0x4d54e4))return null;return _0x4d54e4;}function _0x14fd(_0x3f8172,_0x2ba49f){_0x3f8172=_0x3f8172-0x18d;const _0x41b939=_0x41b9();let _0x14fdf1=_0x41b939[_0x3f8172];return _0x14fdf1;}export async function getEnabledHookContext(_0x156cec){const _0x5cc33f=_0x14fd;if(_0x156cec){if(!isSessionEnabled(_0x156cec))return null;return{'sessionId':_0x156cec,'input':{'session_id':_0x156cec}};}const _0x3751d6=await readHookInput(),_0x5b3989=_0x3751d6?.[_0x5cc33f(0x196)];if(!_0x5b3989||!isSessionEnabled(_0x5b3989))return null;return{'sessionId':_0x5b3989,'input':_0x3751d6};}
1
+ (function(_0x24d400,_0xe9fb79){const _0x548e78=_0x196c,_0x1cc3e0=_0x24d400();while(!![]){try{const _0x1a50f6=parseInt(_0x548e78(0x140))/0x1+parseInt(_0x548e78(0x13e))/0x2+parseInt(_0x548e78(0x136))/0x3+parseInt(_0x548e78(0x135))/0x4*(-parseInt(_0x548e78(0x138))/0x5)+parseInt(_0x548e78(0x13d))/0x6+-parseInt(_0x548e78(0x13b))/0x7*(-parseInt(_0x548e78(0x137))/0x8)+-parseInt(_0x548e78(0x141))/0x9*(parseInt(_0x548e78(0x133))/0xa);if(_0x1a50f6===_0xe9fb79)break;else _0x1cc3e0['push'](_0x1cc3e0['shift']());}catch(_0x229ba3){_0x1cc3e0['push'](_0x1cc3e0['shift']());}}}(_0xa047,0x275dc));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x499e46){const _0x164e4a=_0x196c;console[_0x164e4a(0x13f)](_0x499e46);}function _0xa047(){const _0x289ac2=['43085nnJQen','PtMOm','1708608AvjQmJ','336262WliQLa','log','136910FXwGox','5374638xREgkC','parse','10DgagMT','Bkhzl','12dQZzja','415941XfOENY','48NkZKBD','11600syVhwq','tDTBZ','ABZoL'];_0xa047=function(){return _0x289ac2;};return _0xa047();}export async function readHookInput(){const _0x3f5255=_0x196c;let _0x5f00bd='';for await(const _0x2306d7 of process['stdin']){_0x5f00bd+=_0x2306d7;}try{return JSON[_0x3f5255(0x132)](_0x5f00bd);}catch{return null;}}function _0x196c(_0x5488ca,_0x26c5bf){_0x5488ca=_0x5488ca-0x132;const _0xa0473d=_0xa047();let _0x196c7d=_0xa0473d[_0x5488ca];return _0x196c7d;}export async function getEnabledSessionId(_0x1684b5){const _0x8deac6=_0x196c,_0x19d418={'PtMOm':function(_0x1bffa3,_0x5105ef){return _0x1bffa3(_0x5105ef);},'tDTBZ':function(_0xf1d9b6){return _0xf1d9b6();}};if(_0x1684b5)return _0x19d418[_0x8deac6(0x13c)](isSessionEnabled,_0x1684b5)?_0x1684b5:null;const _0x3e2d9d=await _0x19d418[_0x8deac6(0x139)](readHookInput),_0x51a612=_0x3e2d9d?.['session_id'];if(!_0x51a612||!isSessionEnabled(_0x51a612))return null;return _0x51a612;}export async function getEnabledHookContext(_0x5aa566){const _0x1ca183=_0x196c,_0x6bc4ad={'ABZoL':function(_0x25d12a,_0x252b78){return _0x25d12a(_0x252b78);},'Bkhzl':function(_0x4a421f){return _0x4a421f();}};if(_0x5aa566){if(!_0x6bc4ad[_0x1ca183(0x13a)](isSessionEnabled,_0x5aa566))return null;return{'sessionId':_0x5aa566,'input':{'session_id':_0x5aa566}};}const _0x5d6d2e=await _0x6bc4ad[_0x1ca183(0x134)](readHookInput),_0x204352=_0x5d6d2e?.['session_id'];if(!_0x204352||!_0x6bc4ad[_0x1ca183(0x13a)](isSessionEnabled,_0x204352))return null;return{'sessionId':_0x204352,'input':_0x5d6d2e};}
@@ -1 +1 @@
1
- (function(_0x5f1567,_0x119b5a){const _0x16e4fb=_0x139c,_0x3c007c=_0x5f1567();while(!![]){try{const _0x5457fd=-parseInt(_0x16e4fb(0x1fa))/0x1*(parseInt(_0x16e4fb(0x1f3))/0x2)+-parseInt(_0x16e4fb(0x1f6))/0x3+parseInt(_0x16e4fb(0x1f5))/0x4+parseInt(_0x16e4fb(0x1f1))/0x5+-parseInt(_0x16e4fb(0x1f4))/0x6+-parseInt(_0x16e4fb(0x1fc))/0x7+-parseInt(_0x16e4fb(0x1f7))/0x8*(-parseInt(_0x16e4fb(0x1fd))/0x9);if(_0x5457fd===_0x119b5a)break;else _0x3c007c['push'](_0x3c007c['shift']());}catch(_0x5095cb){_0x3c007c['push'](_0x3c007c['shift']());}}}(_0x3365,0x8f31c));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x139c(_0x32e430,_0x37676d){_0x32e430=_0x32e430-0x1f1;const _0x336579=_0x3365();let _0x139c2a=_0x336579[_0x32e430];return _0x139c2a;}export async function planReminder(_0x4fa00d){const _0x4035d1=_0x139c,_0x52ecf5={'rLitv':function(_0x200a45,_0xc057df){return _0x200a45(_0xc057df);}},_0xd57813=await getEnabledHookContext(_0x4fa00d);if(!_0xd57813)return;if(_0xd57813[_0x4035d1(0x1f9)][_0x4035d1(0x1fb)]!==_0x4035d1(0x1f8))return;if(!_0x52ecf5['rLitv'](shouldShowPlanReminder,_0xd57813[_0x4035d1(0x1f2)]))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===');}function _0x3365(){const _0x457730=['5599363coDnYY','3114qQoTUI','5175875ZBHerp','sessionId','1826050bbULLe','351768PXtcYo','1229568gKbUWk','755637pdcYDu','29304gLCdqf','plan','input','1fqXRvT','permission_mode'];_0x3365=function(){return _0x457730;};return _0x3365();}
1
+ (function(_0x37328a,_0x52d2a3){const _0x3af95f=_0x496b,_0xfc1c68=_0x37328a();while(!![]){try{const _0x1d13ee=-parseInt(_0x3af95f(0xa2))/0x1*(-parseInt(_0x3af95f(0x9b))/0x2)+parseInt(_0x3af95f(0x9f))/0x3*(parseInt(_0x3af95f(0x97))/0x4)+-parseInt(_0x3af95f(0x99))/0x5+-parseInt(_0x3af95f(0x9e))/0x6*(parseInt(_0x3af95f(0x94))/0x7)+-parseInt(_0x3af95f(0x98))/0x8+parseInt(_0x3af95f(0x9c))/0x9*(-parseInt(_0x3af95f(0xa3))/0xa)+-parseInt(_0x3af95f(0xa0))/0xb*(-parseInt(_0x3af95f(0x9a))/0xc);if(_0x1d13ee===_0x52d2a3)break;else _0xfc1c68['push'](_0xfc1c68['shift']());}catch(_0x40061d){_0xfc1c68['push'](_0xfc1c68['shift']());}}}(_0x3427,0xe91b6));import{printBlock,getEnabledHookContext}from'./output.js';function _0x3427(){const _0x430221=['18OAZicY','ETbiA','2154eIqtoJ','633MxiUoG','44030426ibMrVU','sessionId','164677yMaDcL','8234670fZNbQe','14126mLGYJZ','===\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===','DXfZZ','11076rztQSo','9418752xUvpXt','1240780iCsNAs','12AdFHrB','2KQJbdi'];_0x3427=function(){return _0x430221;};return _0x3427();}function _0x496b(_0x62bb2a,_0x355421){_0x62bb2a=_0x62bb2a-0x94;const _0x342708=_0x3427();let _0x496be4=_0x342708[_0x62bb2a];return _0x496be4;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x14dadd){const _0x96f620=_0x496b,_0x4cd1de={'Zodpe':function(_0x5d2ce8,_0x15ed87){return _0x5d2ce8(_0x15ed87);},'zsIyr':function(_0x5474f4,_0x11680c){return _0x5474f4!==_0x11680c;},'DXfZZ':function(_0x2b05b1,_0xca4aee){return _0x2b05b1(_0xca4aee);},'ETbiA':function(_0x1d04f6,_0x2c6669){return _0x1d04f6(_0x2c6669);}},_0x565775=await _0x4cd1de['Zodpe'](getEnabledHookContext,_0x14dadd);if(!_0x565775)return;if(_0x4cd1de['zsIyr'](_0x565775['input']['permission_mode'],'plan'))return;if(!_0x4cd1de[_0x96f620(0x96)](shouldShowPlanReminder,_0x565775[_0x96f620(0xa1)]))return;_0x4cd1de[_0x96f620(0x9d)](printBlock,_0x96f620(0x95));}
@@ -1 +1 @@
1
- function _0x4ff3(_0x73dc2a,_0x53e493){_0x73dc2a=_0x73dc2a-0x1ae;const _0x1e6849=_0x1e68();let _0x4ff3e2=_0x1e6849[_0x73dc2a];return _0x4ff3e2;}(function(_0x1809f3,_0xc68e3a){const _0x334f11=_0x4ff3,_0x4c864c=_0x1809f3();while(!![]){try{const _0x4cf6bb=-parseInt(_0x334f11(0x1b4))/0x1+parseInt(_0x334f11(0x1b5))/0x2*(-parseInt(_0x334f11(0x1b0))/0x3)+-parseInt(_0x334f11(0x1b8))/0x4+-parseInt(_0x334f11(0x1ae))/0x5+-parseInt(_0x334f11(0x1b6))/0x6*(-parseInt(_0x334f11(0x1b7))/0x7)+parseInt(_0x334f11(0x1b2))/0x8+-parseInt(_0x334f11(0x1b3))/0x9*(-parseInt(_0x334f11(0x1af))/0xa);if(_0x4cf6bb===_0xc68e3a)break;else _0x4c864c['push'](_0x4c864c['shift']());}catch(_0x1ddd5a){_0x4c864c['push'](_0x4c864c['shift']());}}}(_0x1e68,0x8ea41));import{printBlock,getEnabledSessionId}from'./output.js';function _0x1e68(){const _0x5e2cf6=['13960vUkxhO','9XpPhEU','LvpSl','7292752ZZWoAB','7020FTaUUN','541642yKZVzw','559898ZKDxDC','6gpjEqq','6909616BdEjvN','2995088NJAzLz','1365220bDTwEu'];_0x1e68=function(){return _0x5e2cf6;};return _0x1e68();}export async function planStart(_0x58720c){const _0x1b5772=_0x4ff3,_0x57ba36={'LvpSl':function(_0x335494,_0x26aeb8){return _0x335494(_0x26aeb8);}},_0x39adb0=await _0x57ba36[_0x1b5772(0x1b1)](getEnabledSessionId,_0x58720c);if(!_0x39adb0)return;_0x57ba36['LvpSl'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
1
+ (function(_0x78d9a0,_0x190777){const _0x4cf176=_0x317c,_0x2e240c=_0x78d9a0();while(!![]){try{const _0x489353=parseInt(_0x4cf176(0x1e9))/0x1+parseInt(_0x4cf176(0x1e7))/0x2+parseInt(_0x4cf176(0x1e4))/0x3+-parseInt(_0x4cf176(0x1ea))/0x4*(-parseInt(_0x4cf176(0x1e2))/0x5)+parseInt(_0x4cf176(0x1e0))/0x6*(-parseInt(_0x4cf176(0x1e3))/0x7)+-parseInt(_0x4cf176(0x1e1))/0x8*(parseInt(_0x4cf176(0x1e5))/0x9)+-parseInt(_0x4cf176(0x1e6))/0xa*(parseInt(_0x4cf176(0x1eb))/0xb);if(_0x489353===_0x190777)break;else _0x2e240c['push'](_0x2e240c['shift']());}catch(_0x4edbc8){_0x2e240c['push'](_0x2e240c['shift']());}}}(_0x13d5,0x25db5));function _0x317c(_0x400e28,_0x162604){_0x400e28=_0x400e28-0x1df;const _0x13d5d8=_0x13d5();let _0x317c1a=_0x13d5d8[_0x400e28];return _0x317c1a;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x1c1d28){const _0x3a8122=_0x317c,_0x5ed3d8={'ZhEuG':function(_0x3ab65c,_0x6f74c2){return _0x3ab65c(_0x6f74c2);},'iAZNJ':function(_0x1db4eb,_0x341d65){return _0x1db4eb(_0x341d65);}},_0x29091e=await _0x5ed3d8[_0x3a8122(0x1df)](getEnabledSessionId,_0x1c1d28);if(!_0x29091e)return;_0x5ed3d8['iAZNJ'](printBlock,_0x3a8122(0x1e8));}function _0x13d5(){const _0x310fed=['1545zsNQuP','615496ReDWiX','307536nFnMta','9DyNPlD','5130qocIGo','457932zzgMTr','===\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===','176186XFiwhP','1492nyAttx','1969MXkBaY','ZhEuG','6Ujwkio','2304840RSXUEj'];_0x13d5=function(){return _0x310fed;};return _0x13d5();}
@@ -1 +1 @@
1
- function _0xc6cc(_0x6f4fdc,_0x412614){_0x6f4fdc=_0x6f4fdc-0x1e0;const _0x14266c=_0x1426();let _0xc6cca5=_0x14266c[_0x6f4fdc];return _0xc6cca5;}(function(_0x55cfcc,_0xa8df3d){const _0x567d6d=_0xc6cc,_0x6e50c5=_0x55cfcc();while(!![]){try{const _0x84e924=-parseInt(_0x567d6d(0x1e5))/0x1+-parseInt(_0x567d6d(0x1ee))/0x2*(-parseInt(_0x567d6d(0x1ea))/0x3)+parseInt(_0x567d6d(0x1e8))/0x4*(parseInt(_0x567d6d(0x1e1))/0x5)+-parseInt(_0x567d6d(0x1e6))/0x6+parseInt(_0x567d6d(0x1e3))/0x7*(parseInt(_0x567d6d(0x1e2))/0x8)+parseInt(_0x567d6d(0x1e0))/0x9*(parseInt(_0x567d6d(0x1ed))/0xa)+-parseInt(_0x567d6d(0x1ec))/0xb;if(_0x84e924===_0xa8df3d)break;else _0x6e50c5['push'](_0x6e50c5['shift']());}catch(_0x202af2){_0x6e50c5['push'](_0x6e50c5['shift']());}}}(_0x1426,0x632c2));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x1426(){const _0x25cb05=['73740qQsokh','IJWMR','883040DUUrKW','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).','463704zShwNG','stringify','2745864jOIUnx','1783240xbMkCw','2kLdttj','AyXbk','9gBHiWK','15MDAoAz','20144EuGzWY','889JCUJeQ','log','646834OwftoE'];_0x1426=function(){return _0x25cb05;};return _0x1426();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x23af56){const _0x97b151=_0xc6cc,_0x26f20b={'UONGZ':function(_0x22b29a,_0x14e160){return _0x22b29a(_0x14e160);},'AyXbk':function(_0x23ec63,_0x1a2e01){return _0x23ec63(_0x1a2e01);},'IJWMR':'PostToolUse'},_0x1fd806=await _0x26f20b['UONGZ'](getEnabledSessionId,_0x23af56);if(!_0x1fd806)return;_0x26f20b[_0x97b151(0x1ef)](updateBranchTracking,_0x1fd806);const _0x34ed3a=await getToken();if(!_0x34ed3a)return;const _0x9c4be5=getSessionEntry(_0x1fd806);if(_0x9c4be5){const _0x59c2a6={'hookSpecificOutput':{'hookEventName':_0x26f20b[_0x97b151(0x1e7)],'additionalContext':_0x97b151(0x1e9)}};console[_0x97b151(0x1e4)](JSON[_0x97b151(0x1eb)](_0x59c2a6));return;}const _0x25bdd1={'hookSpecificOutput':{'hookEventName':_0x26f20b['IJWMR'],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x25bdd1));}
1
+ (function(_0x3abe3d,_0x3d5f68){const _0x291b5e=_0x2405,_0x582dab=_0x3abe3d();while(!![]){try{const _0x3ddbdd=-parseInt(_0x291b5e(0x11e))/0x1*(parseInt(_0x291b5e(0x114))/0x2)+parseInt(_0x291b5e(0x11c))/0x3+-parseInt(_0x291b5e(0x11f))/0x4+parseInt(_0x291b5e(0x11a))/0x5+parseInt(_0x291b5e(0x11d))/0x6*(-parseInt(_0x291b5e(0x121))/0x7)+parseInt(_0x291b5e(0x116))/0x8+-parseInt(_0x291b5e(0x120))/0x9*(-parseInt(_0x291b5e(0x119))/0xa);if(_0x3ddbdd===_0x3d5f68)break;else _0x582dab['push'](_0x582dab['shift']());}catch(_0x215c0c){_0x582dab['push'](_0x582dab['shift']());}}}(_0x3abd,0xee8d1));function _0x2405(_0x32e0fc,_0x17509b){_0x32e0fc=_0x32e0fc-0x114;const _0x3abd7c=_0x3abd();let _0x2405ed=_0x3abd7c[_0x32e0fc];return _0x2405ed;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3abd(){const _0xcb40dc=['PostToolUse','2357020whMjmJ','6798970XLxUUR','stringify','401127DqCPaS','96EQVYFp','1761yykVVE','2886632zEDmZS','54HhQvyX','673274ClAaKw','710ygBSiB','MwVQd','7640920LxgIBd','log'];_0x3abd=function(){return _0xcb40dc;};return _0x3abd();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x49b277){const _0x3a8794=_0x2405,_0x171d29={'sBISH':function(_0x165ea1,_0x309366){return _0x165ea1(_0x309366);},'MwVQd':_0x3a8794(0x118)},_0x151467=await getEnabledSessionId(_0x49b277);if(!_0x151467)return;updateBranchTracking(_0x151467);const _0x5e6b8f=await getToken();if(!_0x5e6b8f)return;const _0x18ef0a=_0x171d29['sBISH'](getSessionEntry,_0x151467);if(_0x18ef0a){const _0x50228f={'hookSpecificOutput':{'hookEventName':_0x171d29[_0x3a8794(0x115)],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x3a8794(0x117)](JSON[_0x3a8794(0x11b)](_0x50228f));return;}const _0x43643f={'hookSpecificOutput':{'hookEventName':_0x171d29[_0x3a8794(0x115)],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x43643f));}
@@ -1 +1 @@
1
- (function(_0x2d5a91,_0x3fcf8f){const _0x207d60=_0x5670,_0x2f4400=_0x2d5a91();while(!![]){try{const _0x1af59b=parseInt(_0x207d60(0x101))/0x1+parseInt(_0x207d60(0xfa))/0x2*(parseInt(_0x207d60(0x100))/0x3)+-parseInt(_0x207d60(0x102))/0x4*(parseInt(_0x207d60(0xff))/0x5)+-parseInt(_0x207d60(0xfc))/0x6+-parseInt(_0x207d60(0xf9))/0x7+parseInt(_0x207d60(0x103))/0x8*(parseInt(_0x207d60(0xfb))/0x9)+parseInt(_0x207d60(0xfd))/0xa*(parseInt(_0x207d60(0xfe))/0xb);if(_0x1af59b===_0x3fcf8f)break;else _0x2f4400['push'](_0x2f4400['shift']());}catch(_0x33196f){_0x2f4400['push'](_0x2f4400['shift']());}}}(_0x3d7d,0xa4be6));import{getToken}from'../utils/keychain.js';function _0x3d7d(){const _0x263a3f=['90hnCCAd','6844050jHNXLg','3151180iCRtro','55WhDVnQ','30lSMbbc','430293wxFxZZ','8178NzjEHw','452524cpdIoO','554072biYmnu','2490817NkHdSe','8wrDjqt'];_0x3d7d=function(){return _0x263a3f;};return _0x3d7d();}function _0x5670(_0x5a847b,_0x3cbdec){_0x5a847b=_0x5a847b-0xf9;const _0x3d7d6a=_0x3d7d();let _0x567088=_0x3d7d6a[_0x5a847b];return _0x567088;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x54a1e4){const _0x33e848={'DbtNn':function(_0x546951){return _0x546951();}},_0x4def74=await getEnabledSessionId(_0x54a1e4);if(!_0x4def74)return;try{const _0x3abfe6=await _0x33e848['DbtNn'](getToken);if(!_0x3abfe6)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
+ (function(_0x144431,_0x6d2bb9){const _0x5aca62=_0x184a,_0x3a53ca=_0x144431();while(!![]){try{const _0x5893c2=-parseInt(_0x5aca62(0x9c))/0x1+parseInt(_0x5aca62(0xa0))/0x2+parseInt(_0x5aca62(0xa5))/0x3+-parseInt(_0x5aca62(0xa4))/0x4+-parseInt(_0x5aca62(0xa2))/0x5+parseInt(_0x5aca62(0x9f))/0x6*(-parseInt(_0x5aca62(0xa1))/0x7)+parseInt(_0x5aca62(0xa6))/0x8*(parseInt(_0x5aca62(0x9d))/0x9);if(_0x5893c2===_0x6d2bb9)break;else _0x3a53ca['push'](_0x3a53ca['shift']());}catch(_0x250956){_0x3a53ca['push'](_0x3a53ca['shift']());}}}(_0x2875,0x8dac5));function _0x2875(){const _0x7314c7=['878805ZAnNPm','LxCLb','454254ZqcXDU','808774oMijml','70mfUBcV','2682525jMYxFC','===\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`.','5596lBUKky','1932132SZOYXI','80BuvhMC','149594HZRcDg'];_0x2875=function(){return _0x7314c7;};return _0x2875();}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x184a(_0x15c888,_0x42f5e4){_0x15c888=_0x15c888-0x9c;const _0x28750f=_0x2875();let _0x184a1f=_0x28750f[_0x15c888];return _0x184a1f;}export async function preCompact(_0x30ef67){const _0x3c6542=_0x184a,_0x2590fb={'LxCLb':function(_0x388c3d){return _0x388c3d();}},_0x49ba32=await getEnabledSessionId(_0x30ef67);if(!_0x49ba32)return;try{const _0x531d2d=await _0x2590fb[_0x3c6542(0x9e)](getToken);if(!_0x531d2d)return;printBlock(_0x3c6542(0xa3));}catch{}}
@@ -1 +1 @@
1
- (function(_0x344ec8,_0x2f1d5e){const _0xa85b81=_0x3525,_0xe543fc=_0x344ec8();while(!![]){try{const _0x3caf8b=-parseInt(_0xa85b81(0x90))/0x1+parseInt(_0xa85b81(0x91))/0x2*(-parseInt(_0xa85b81(0x95))/0x3)+parseInt(_0xa85b81(0x8a))/0x4*(parseInt(_0xa85b81(0x93))/0x5)+-parseInt(_0xa85b81(0x8f))/0x6*(-parseInt(_0xa85b81(0x8c))/0x7)+parseInt(_0xa85b81(0x8b))/0x8+parseInt(_0xa85b81(0x8d))/0x9*(-parseInt(_0xa85b81(0x92))/0xa)+parseInt(_0xa85b81(0x94))/0xb;if(_0x3caf8b===_0x2f1d5e)break;else _0xe543fc['push'](_0xe543fc['shift']());}catch(_0x376bc3){_0xe543fc['push'](_0xe543fc['shift']());}}}(_0x5b84,0xbc132));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x5b84(){const _0x42bb53=['18788lzHRRn','4218282joLlmL','reason','1146KkOsxC','251877hwhxfi','20BafbDw','10FnHFZi','2457845kztKGj','8204944BzPEqB','267234WKVSyJ','4RLaulG','5052736iarMoO'];_0x5b84=function(){return _0x42bb53;};return _0x5b84();}import{readHookInput}from'./output.js';function _0x3525(_0x269094,_0x57a7bb){_0x269094=_0x269094-0x8a;const _0x5b8480=_0x5b84();let _0x3525c8=_0x5b8480[_0x269094];return _0x3525c8;}export async function sessionEnd(_0x4b08d4){const _0x59a4fd=_0x3525,_0x8733f7={'QoFzK':function(_0x51f01c,_0x2d4b6b){return _0x51f01c(_0x2d4b6b);}};let _0x49f074=_0x4b08d4,_0x5ae126;if(!_0x4b08d4){const _0x11b32c=await readHookInput();_0x49f074=_0x11b32c?.['session_id'],_0x5ae126=_0x11b32c?.[_0x59a4fd(0x8e)];}if(!_0x49f074)return;_0x5ae126==='clear'&&_0x8733f7['QoFzK'](recordEnabledSessionCleared,_0x49f074);}
1
+ (function(_0x4019eb,_0x44f42b){const _0x19df50=_0x13e4,_0x3c51eb=_0x4019eb();while(!![]){try{const _0x55482b=-parseInt(_0x19df50(0x148))/0x1*(-parseInt(_0x19df50(0x144))/0x2)+-parseInt(_0x19df50(0x146))/0x3*(-parseInt(_0x19df50(0x149))/0x4)+parseInt(_0x19df50(0x142))/0x5*(-parseInt(_0x19df50(0x141))/0x6)+-parseInt(_0x19df50(0x13f))/0x7+-parseInt(_0x19df50(0x14a))/0x8+-parseInt(_0x19df50(0x143))/0x9+parseInt(_0x19df50(0x147))/0xa;if(_0x55482b===_0x44f42b)break;else _0x3c51eb['push'](_0x3c51eb['shift']());}catch(_0x1d0563){_0x3c51eb['push'](_0x3c51eb['shift']());}}}(_0x238b,0xd6e46));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x1839d8){const _0x5da35d=_0x13e4,_0xe5a91={'mYCBF':function(_0x2a2005,_0x1f5fca){return _0x2a2005===_0x1f5fca;},'KQlVd':'clear','ssVce':function(_0x5dab8f,_0x1ed559){return _0x5dab8f(_0x1ed559);}};let _0x21f302=_0x1839d8,_0x376729;if(!_0x1839d8){const _0x1c9393=await readHookInput();_0x21f302=_0x1c9393?.[_0x5da35d(0x145)],_0x376729=_0x1c9393?.['reason'];}if(!_0x21f302)return;_0xe5a91['mYCBF'](_0x376729,_0xe5a91[_0x5da35d(0x140)])&&_0xe5a91['ssVce'](recordEnabledSessionCleared,_0x21f302);}function _0x13e4(_0xc2fd9e,_0x176d28){_0xc2fd9e=_0xc2fd9e-0x13f;const _0x238ba6=_0x238b();let _0x13e472=_0x238ba6[_0xc2fd9e];return _0x13e472;}function _0x238b(){const _0x507d6=['session_id','48jxXrKQ','29215610GvxPKI','2SLMwSN','12688aMvzmg','6782640DyhCWY','7069125kXmRko','KQlVd','6SmoEYg','1609745AhLJqr','5496777dwbkCU','698292iGatmg'];_0x238b=function(){return _0x507d6;};return _0x238b();}