@ranger-testing/ranger-cli 3.1.6-alpha.4287155-52 → 3.1.6-alpha.4de822b-51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x4901ae=_0x11d4;(function(_0x423417,_0x3f71fc){const _0x52310e=_0x11d4,_0x2c9f64=_0x423417();while(!![]){try{const _0x5b73df=-parseInt(_0x52310e(0xfc))/0x1*(parseInt(_0x52310e(0x145))/0x2)+-parseInt(_0x52310e(0xc0))/0x3*(-parseInt(_0x52310e(0x176))/0x4)+-parseInt(_0x52310e(0xfe))/0x5+parseInt(_0x52310e(0xf9))/0x6*(-parseInt(_0x52310e(0xe2))/0x7)+parseInt(_0x52310e(0xeb))/0x8*(parseInt(_0x52310e(0x153))/0x9)+parseInt(_0x52310e(0xba))/0xa*(parseInt(_0x52310e(0x15f))/0xb)+-parseInt(_0x52310e(0xe6))/0xc*(-parseInt(_0x52310e(0xdb))/0xd);if(_0x5b73df===_0x3f71fc)break;else _0x2c9f64['push'](_0x2c9f64['shift']());}catch(_0x5256ad){_0x2c9f64['push'](_0x2c9f64['shift']());}}}(_0x5e02,0x84d56));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x23c83d 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';function _0x5e02(){const _0x54f188=['version','filter','in_progress','gltHU','No\x20active\x20session\x20for\x20this\x20feature\x20review.','xojjC','pwYox','\x1b[0m','toFixed','\x20\x20\x20\x20\x20ID:\x20','AgnnO','dashboardUrl','limit','BBxhQ','\x20\x20\x20ID:\x20','\x0aAvailable\x20scenarios:','\x20\x20\x20','Please\x20finish\x20your\x20review\x20first:','\x20scenarios.','\x20\x20Expected\x20flow:','includeDeleted','ZYvEc','\x20Session\x20','any','map','sgnll','pendingItems','Scenario\x20','MrKYb','location','\x0a✅\x20Report\x20generated:\x20','push','\x20\x20\x20Created:\x20','kdJFW','\x20\x20\x20Description:\x20','toLocaleDateString','storage','/api/v1/mcp/browser-sessions/','\x20>\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','pipe','RjdHR','wOpoF','totalCount','gitRepoUrl','neSCg','ctpLk','QXMRX','emMYM','WvQtR','OsCYj','incompleteReason','\x20in\x20progress','\x20concluded.','XCJNe','\x1b[1m','ILCaN','GfVWG','MPmnO','unaddressedComments','EZpob','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','verification_in_progress','stats','domRef','isTTY','\x20\x20\x20▶️\x20Started\x20session\x20','FxcfM','32yopUHN','VinMJ','exit','yYzUa','xLPRb','Bclno','incomplete','PsEgJ','round','fKeUr','canceledReason','GWItq',':\x20\x22','assetUrl','9POLTok','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','selector','textContent','ZQXdo','incompleteItems','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20blocked','log','/artifacts/','iDLpn','.md','9193492fMXMXz','HSHAc','arrayBuffer','write','canonicalFlow','ikpWV','scenarios','createdAt','stringify','ZlOhd','latestReview','\x20\x20\x20Completed:\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','screenshot','xCPZb','completed','excludeScenarios','status','split','tFnIO','jvkff','ElQbc','wQRQd','5756UwUjYj','trim','aTPCj','feedback-images','XylBz','ready','MnvWU','\x20at\x20[','WrBly','timing','submittedAt','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','length','DrAvF','spatial','CLAUDE_SESSION_ID','completedAt','authorName','blockedItems','PCCdL','notes','RANGER_TEST_USERNAME','wcLBJ','gitBranch','github.com/','\x20scenario(s).','EALvP','blockedReason','ISNLh','sessionId','10kisTYi','Tdibg','rjBec','verified','AVtLJ','error','225cFLtPz','verificationInProgressItems','env','assetType','\x0aCreating\x20feature\x20review...','active-feature.txt','short','...','\x0a✅\x20Session\x20is\x20already\x20completed.','replace','approved','\x20/\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','prompt','toLocaleString','\x20(v','Step\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','join','currentBranch','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','closed','Lzord','browserSessionId','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','dzkNo','Ubgem','3159338PCYFIU','WtBsW','ahwVJ','terminalReason','pSFMj','\x0a\x20\x20\x20Scenarios:','checklistItems','18151sKgLsQ','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','reports','\x0a✅\x20Restored\x20feature\x20review:\x20','48FmUzHR','clFco','name','srDPG','assets','1957800KJkWJg','nKDHa','.\x20Feature\x20review\x20has\x20','KDHVw','has','repeat','\x0a✅\x20Feature\x20review\x20created:\x20','\x20—\x20no\x20comments','description','No\x20scenarios\x20found.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','scenario','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','items','1356FiIYzg','):\x20\x22','emjpk','44936KSNPCV','stdout','1557230KBjBVA','pop','find'];_0x5e02=function(){return _0x54f188;};return _0x5e02();}import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x4901ae(0xc5),bold=_0x730cb0=>_0x4901ae(0x138)+_0x730cb0+_0x4901ae(0x108);function getGitRepoUrl(){const _0x179023=_0x4901ae,_0x5893c0={'AVtLJ':_0x179023(0x129)};try{const _0x18bb7c=execSync('git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':[_0x5893c0['AVtLJ'],_0x5893c0['AVtLJ'],_0x5893c0[_0x179023(0xbe)]]})[_0x179023(0x177)]();return _0x18bb7c[_0x179023(0xc9)](/\.git$/,'')[_0x179023(0xc9)](/^git@github\.com:/,_0x179023(0xb4))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x2ecd27=_0x4901ae,_0x133554={'FxcfM':function(_0x1bb690,_0x3231b4,_0x3cd96f){return _0x1bb690(_0x3231b4,_0x3cd96f);},'aTPCj':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','emMYM':_0x2ecd27(0x129)};try{return _0x133554[_0x2ecd27(0x144)](execSync,_0x133554[_0x2ecd27(0x178)],{'encoding':'utf-8','stdio':[_0x133554[_0x2ecd27(0x131)],_0x133554['emMYM'],'pipe']})[_0x2ecd27(0x177)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x496ea5=_0x4901ae,_0x1fc231={'PsEgJ':function(_0x50179e,_0x130ed7){return _0x50179e(_0x130ed7);},'bwzXe':function(_0x1d97e6,_0x3f16b0,_0x4a1a73){return _0x1d97e6(_0x3f16b0,_0x4a1a73);}},_0x3a5b44=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1fc231[_0x496ea5(0x14c)](existsSync,_0x3a5b44))return null;try{const _0x4f3ac4=await _0x1fc231['bwzXe'](readFile,_0x3a5b44,'utf-8');return _0x4f3ac4[_0x496ea5(0x177)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x2edf34){const _0x3a3ce9=_0x4901ae,_0x13aeb5={'MPmnO':function(_0x504afd,_0x452cc9,_0x2c8a1c){return _0x504afd(_0x452cc9,_0x2c8a1c);},'RZIrH':'utf-8'},_0x5196cc=getRangerDir(),_0x3e512e=_0x13aeb5[_0x3a3ce9(0x13b)](join,_0x5196cc,ACTIVE_FEATURE_FILE);!existsSync(_0x5196cc)&&await mkdir(_0x5196cc,{'recursive':!![]}),await writeFile(_0x3e512e,_0x2edf34,_0x13aeb5['RZIrH']);}function getProgressDisplay(_0xf8e34b){const _0x27e402=_0x4901ae,_0x2065d5={'WazEm':function(_0x395d02,_0x3f7811){return _0x395d02-_0x3f7811;},'EALvP':function(_0x14e10c,_0x599b49){return _0x14e10c>_0x599b49;},'rjBec':function(_0x4840a9,_0x1db7cb){return _0x4840a9>_0x1db7cb;},'ahwVJ':function(_0x490010,_0x2bbe85){return _0x490010>_0x2bbe85;}},_0x3d8e49=_0xf8e34b['verifiedItems']||0x0,_0x423564=_0xf8e34b[_0x27e402(0xc1)]||0x0,_0x2ec7bb=_0xf8e34b[_0x27e402(0xae)]||0x0,_0x318e62=_0xf8e34b[_0x27e402(0x158)]||0x0,_0xf87932=_0xf8e34b[_0x27e402(0x11b)]||0x0,_0x36fc93=_0x3d8e49+_0x423564+_0x2ec7bb+_0x318e62+_0xf87932;if(_0x36fc93===0x0)return'-';const _0x17cbfe=0xa,_0x2f5073=Math[_0x27e402(0x14d)](_0x3d8e49/_0x36fc93*_0x17cbfe),_0x908b3='█'[_0x27e402(0xf0)](_0x2f5073)+'░'['repeat'](_0x2065d5['WazEm'](_0x17cbfe,_0x2f5073)),_0x6484cd=[];if(_0x2065d5[_0x27e402(0xb6)](_0x2ec7bb,0x0))_0x6484cd['push'](_0x2ec7bb+_0x27e402(0x15a));if(_0x2065d5[_0x27e402(0xbc)](_0x318e62,0x0))_0x6484cd[_0x27e402(0x120)](_0x318e62+'\x20incomplete');if(_0x423564>0x0)_0x6484cd['push'](_0x423564+_0x27e402(0x135));const _0x404663=_0x2065d5[_0x27e402(0xdd)](_0x6484cd[_0x27e402(0xa8)],0x0)?'\x20('+_0x6484cd[_0x27e402(0xd2)](',\x20')+')':'';return _0x908b3+'\x20'+_0x3d8e49+'/'+_0x36fc93+'\x20verified'+_0x404663;}function getCurrentSessionItems(_0x44213b,_0x3d099c){const _0x383df2=_0x4901ae;if(!_0x44213b['currentSessionId'])return _0x3d099c['filter'](_0x50afa5=>!_0x50afa5[_0x383df2(0xb9)]);return _0x3d099c[_0x383df2(0x102)](_0x3c9005=>_0x3c9005['sessionId']===_0x44213b['currentSessionId']||!_0x3c9005[_0x383df2(0xb9)]);}function displayFeature(_0x3f0f31,_0x18a7b4){const _0x320220=_0x4901ae,_0x5410da={'QXMRX':function(_0x315141,_0x13ffa6){return _0x315141>_0x13ffa6;},'ztnYF':_0x320220(0xe0),'emjpk':_0x320220(0xd5),'gEXBm':function(_0x594548,_0x10e9b9){return _0x594548===_0x10e9b9;},'AgnnO':_0x320220(0xbd),'wQRQd':function(_0x40face,_0x56dbac){return _0x40face===_0x56dbac;},'pwYox':_0x320220(0x13f),'WtBsW':function(_0x447bd7,_0x11ad35){return _0x447bd7>_0x11ad35;},'HSHAc':function(_0x42b026,_0x2094b5){return _0x42b026!==_0x2094b5;},'MIncW':'blocked','OsCYj':_0x320220(0x14b),'eodWA':_0x320220(0xca)};console[_0x320220(0x15b)]('\x0a'+_0x3f0f31['name']+'\x20('+_0x3f0f31[_0x320220(0x10c)]+')');_0x3f0f31[_0x320220(0x140)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3f0f31[_0x320220(0x140)]));_0x3f0f31['description']&&console[_0x320220(0x15b)](_0x320220(0x123)+_0x3f0f31['description']);_0x3f0f31['gitRepoUrl']&&console[_0x320220(0x15b)]('\x20\x20\x20Repository:\x20'+_0x3f0f31['gitRepoUrl']);_0x3f0f31[_0x320220(0xb3)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x3f0f31[_0x320220(0xb3)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3f0f31['createdAt'])['toLocaleString']());_0x3f0f31[_0x320220(0xac)]&&console[_0x320220(0x15b)](_0x320220(0x16a)+new Date(_0x3f0f31[_0x320220(0xac)])['toLocaleString']());if(_0x18a7b4&&_0x5410da['QXMRX'](_0x18a7b4[_0x320220(0xa8)],0x0)){console[_0x320220(0x15b)](_0x5410da['ztnYF']);for(let _0x4343b0=0x0;_0x4343b0<_0x18a7b4['length'];_0x4343b0++){const _0x1e3c56=_0x18a7b4[_0x4343b0];let _0x57838f;if(_0x1e3c56[_0x320220(0x170)]===_0x5410da['emjpk']&&_0x5410da['gEXBm'](_0x1e3c56[_0x320220(0xde)],_0x320220(0xca)))_0x57838f='✅';else{if(_0x1e3c56[_0x320220(0x170)]===_0x5410da[_0x320220(0x10b)])_0x57838f='🟢';else{if(_0x5410da['gEXBm'](_0x1e3c56['status'],'incomplete'))_0x57838f='🟠';else{if(_0x1e3c56['status']==='blocked')_0x57838f='🛑';else{if(_0x1e3c56['status']===_0x5410da[_0x320220(0xfb)])_0x57838f='⛔';else _0x5410da['wQRQd'](_0x1e3c56[_0x320220(0x170)],_0x5410da[_0x320220(0x107)])?_0x57838f='⏳':_0x57838f='⬜';}}}}const _0x44ca39=_0x5410da[_0x320220(0x130)](_0x1e3c56['version'],0x1)?'\x20(v'+_0x1e3c56[_0x320220(0x101)]+')':'',_0x48905d=_0x5410da[_0x320220(0xdc)](_0x1e3c56['version'],0x1)&&_0x1e3c56['parentItemId']&&_0x1e3c56[_0x320220(0x170)]!=='closed'&&_0x5410da[_0x320220(0x160)](_0x1e3c56['status'],_0x5410da['AgnnO'])?'\x20[has\x20reviewer\x20feedback]':'';console['log'](_0x320220(0x111)+(_0x4343b0+0x1)+'.\x20'+_0x57838f+'\x20'+_0x1e3c56['description']+_0x44ca39+_0x48905d);_0x1e3c56[_0x320220(0x170)]===_0x5410da['MIncW']&&_0x1e3c56[_0x320220(0xb7)]&&console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x1e3c56[_0x320220(0xb7)]);_0x5410da[_0x320220(0x175)](_0x1e3c56['status'],_0x5410da[_0x320220(0x133)])&&_0x1e3c56['incompleteReason']&&console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x1e3c56[_0x320220(0x134)]);if(_0x5410da['gEXBm'](_0x1e3c56[_0x320220(0x170)],_0x320220(0xd5))&&_0x1e3c56[_0x320220(0xde)]===_0x5410da['eodWA'])console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Approved');else _0x1e3c56['status']===_0x320220(0xd5)&&_0x1e3c56[_0x320220(0x14f)]&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x1e3c56[_0x320220(0x14f)]);}}}export async function featureCreate(_0x168f30,_0x75fb48){const _0x27031f=_0x4901ae,_0x509530={'VinMJ':function(_0x41c5aa){return _0x41c5aa();},'GWItq':function(_0x25dca3,_0x3bed99,_0x2198c0){return _0x25dca3(_0x3bed99,_0x2198c0);}},{envNames:_0x424217}=await getEnvNames();if(_0x424217['length']===0x0&&!process['env'][_0x27031f(0xb1)]){let _0x15ea2c=0x0;try{_0x15ea2c=(await listCloudProfiles())['length'];}catch{_0x15ea2c=0x1;}_0x15ea2c===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x3f4ed8=>bold(_0x3f4ed8)));}const _0x8bbf47=_0x75fb48[_0x27031f(0x165)]?_0x75fb48['scenarios'][_0x27031f(0x119)](_0x43427d=>_0x43427d['trim']()):[],_0x1eae66=_0x509530[_0x27031f(0x146)](getGitRepoUrl),_0x368506=getGitBranch();console[_0x27031f(0x15b)](_0x27031f(0xc4));const _0x394d63=await createFeature({'name':_0x168f30,'description':_0x75fb48[_0x27031f(0xf3)],'checklist':_0x8bbf47,'gitRepoUrl':_0x1eae66,'gitBranch':_0x368506});await setActiveFeatureId(_0x394d63['id']),await tryStartCurrentSession(_0x394d63['id']);const _0x34436c=process[_0x27031f(0xc2)]['CLAUDE_SESSION_ID'];_0x34436c&&_0x509530[_0x27031f(0x150)](registerSession,_0x34436c,_0x394d63['id']),console['log'](_0x27031f(0xf1)+_0x394d63['id']),displayFeature(_0x394d63,_0x394d63[_0x27031f(0xe1)]),console[_0x27031f(0x15b)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x5abf7d){const _0x2aa7b1=_0x4901ae,_0x1ceac8={'TDZNR':function(_0x33f21f){return _0x33f21f();},'wOpoF':function(_0x446b7e,_0x24a9c2){return _0x446b7e(_0x24a9c2);},'dzkNo':function(_0x5a9a66,_0x4c8ead){return _0x5a9a66===_0x4c8ead;},'eSKWK':'\x0aNo\x20feature\x20reviews\x20found.','RjdHR':function(_0x45b21e,_0x52d91f){return _0x45b21e>_0x52d91f;},'EZqhd':function(_0x1a1b82,_0x6fc142){return _0x1a1b82<_0x6fc142;},'pzoHG':function(_0x3c5858,_0x5ad8ca){return _0x3c5858!==_0x5ad8ca;},'XylBz':'\x20--include-deleted'},_0x509312={'limit':_0x5abf7d['limit']??0xa,'offset':_0x5abf7d['offset']??0x0,'includeDeleted':_0x5abf7d[_0x2aa7b1(0x115)]};_0x5abf7d[_0x2aa7b1(0xd3)]&&(_0x509312[_0x2aa7b1(0x12d)]=getGitRepoUrl(),_0x509312[_0x2aa7b1(0xb3)]=_0x1ceac8['TDZNR'](getGitBranch));const _0x41bcf3=await _0x1ceac8[_0x2aa7b1(0x12b)](listFeatures,_0x509312);if(_0x1ceac8[_0x2aa7b1(0xd9)](_0x41bcf3['items'][_0x2aa7b1(0xa8)],0x0)){console['log'](_0x1ceac8['eSKWK']);return;}const _0x8f1cbf=_0x1ceac8[_0x2aa7b1(0x12a)](_0x41bcf3[_0x2aa7b1(0x12c)],_0x41bcf3['items']['length'])?'Showing\x20'+_0x41bcf3['items'][_0x2aa7b1(0xa8)]+'\x20of\x20'+_0x41bcf3[_0x2aa7b1(0x12c)]:_0x41bcf3['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x2aa7b1(0x15b)]('\x0a'+_0x8f1cbf+':\x0a');for(const _0x2747c9 of _0x41bcf3[_0x2aa7b1(0xf8)]){const _0x374c7d='5|1|2|4|3|0'['split']('|');let _0x24e596=0x0;while(!![]){switch(_0x374c7d[_0x24e596++]){case'0':console[_0x2aa7b1(0x15b)]('');continue;case'1':console[_0x2aa7b1(0x15b)](_0x2aa7b1(0x10f)+_0x2747c9['id']);continue;case'2':_0x2747c9['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x1ceac8[_0x2aa7b1(0x12b)](getProgressDisplay,_0x2747c9[_0x2aa7b1(0x140)]));continue;case'3':console['log'](_0x2aa7b1(0x121)+new Date(_0x2747c9[_0x2aa7b1(0x166)])[_0x2aa7b1(0x124)]());continue;case'4':_0x2747c9[_0x2aa7b1(0xb3)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x2747c9[_0x2aa7b1(0xb3)]);continue;case'5':console[_0x2aa7b1(0x15b)](''+_0x2747c9['name']);continue;}break;}}const _0x1ab1ee=_0x509312[_0x2aa7b1(0x10d)]??0xa,_0x599745=(_0x509312['offset']??0x0)+_0x41bcf3['items'][_0x2aa7b1(0xa8)];if(_0x1ceac8['EZqhd'](_0x599745,_0x41bcf3[_0x2aa7b1(0x12c)])){const _0x51de00=_0x1ceac8['pzoHG'](_0x1ab1ee,0xa)?'\x20--limit\x20'+_0x1ab1ee:'',_0x24599d=_0x5abf7d[_0x2aa7b1(0xd3)]?'\x20--current-branch':'',_0xb6bd8f=_0x5abf7d['includeDeleted']?_0x1ceac8[_0x2aa7b1(0x17a)]:'';console['log'](_0x2aa7b1(0xcc)+_0x599745+_0x51de00+_0x24599d+_0xb6bd8f);}}export async function featureShow(_0x3cac1e){const _0xd50a28=_0x4901ae,_0x279703={'lwljK':function(_0x320778){return _0x320778();},'Tdibg':_0xd50a28(0x154),'BkCYC':function(_0x42b90b,_0x1a151d){return _0x42b90b(_0x1a151d);}},_0x21ff7d=_0x3cac1e||await _0x279703['lwljK'](getActiveFeatureId);if(!_0x21ff7d)throw new Error(_0x279703[_0xd50a28(0xbb)]);const _0x139eea=await _0x279703['BkCYC'](getFeature,_0x21ff7d);displayFeature(_0x139eea,_0x139eea['checklistItems']);}function _0x11d4(_0x43403a,_0x11a0f2){_0x43403a=_0x43403a-0xa8;const _0x5e0233=_0x5e02();let _0x11d448=_0x5e0233[_0x43403a];return _0x11d448;}export async function featureResume(_0x100c45){const _0x454e8d=_0x4901ae,_0x292fd5={'Ubgem':function(_0x4d365a,_0x3c6c5e){return _0x4d365a(_0x3c6c5e);},'uuCIH':function(_0x2115ae,_0x37e380,_0x569d79){return _0x2115ae(_0x37e380,_0x569d79);},'ZlOhd':function(_0x3cb722,_0xa03f90,_0x4c52b9){return _0x3cb722(_0xa03f90,_0x4c52b9);},'hRUOu':function(_0x5eb599){return _0x5eb599();},'BzHzt':function(_0xe07c73,_0x3d96c2){return _0xe07c73||_0x3d96c2;},'qsLPu':_0x454e8d(0x118),'jvkff':function(_0x29d5a2,_0x1626ec){return _0x29d5a2===_0x1626ec;},'yXHLM':'selected','clFco':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','EZpob':function(_0x270e90,_0x58541f,_0x5856e1){return _0x270e90(_0x58541f,_0x5856e1);}};if(_0x100c45){const _0x3c830a=await _0x292fd5['Ubgem'](getFeature,_0x100c45);await _0x292fd5[_0x454e8d(0xda)](setActiveFeatureId,_0x3c830a['id']);const _0x25c8c6=getGitBranch();_0x25c8c6&&_0x25c8c6!==_0x3c830a[_0x454e8d(0xb3)]&&(await _0x292fd5['uuCIH'](updateFeature,_0x3c830a['id'],{'gitBranch':_0x25c8c6}),console[_0x454e8d(0x15b)](_0x454e8d(0xd1)+_0x25c8c6));console[_0x454e8d(0x15b)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3c830a[_0x454e8d(0xe8)]+'\x20('+_0x3c830a['id']+')'),await tryStartCurrentSession(_0x3c830a['id']);const _0x1ac6af=process[_0x454e8d(0xc2)][_0x454e8d(0xab)];_0x1ac6af&&_0x292fd5['uuCIH'](registerSession,_0x1ac6af,_0x3c830a['id']);_0x292fd5[_0x454e8d(0x168)](displayFeature,_0x3c830a,_0x3c830a['checklistItems']),await _0x292fd5['Ubgem'](printFeedbackNudge,_0x3c830a['id']);return;}const _0x597826=_0x292fd5['hRUOu'](getGitRepoUrl),_0x2458ca=getGitBranch();if(!_0x597826&&!_0x2458ca)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x454e8d(0x15b)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x292fd5['BzHzt'](_0x597826,'any')+_0x454e8d(0xcb)+(_0x2458ca||_0x292fd5['qsLPu'])+_0x454e8d(0xc7));const _0x4c2e51=await _0x292fd5[_0x454e8d(0xda)](listFeatures,{'gitRepoUrl':_0x597826,'gitBranch':_0x2458ca}),_0x3e18c6=_0x4c2e51['items']['filter'](_0x2aca89=>_0x2aca89['status']?_0x2aca89[_0x454e8d(0x170)]!==_0x454e8d(0xbd):!_0x2aca89['completedAt']);if(_0x292fd5[_0x454e8d(0x173)](_0x3e18c6['length'],0x0)){console[_0x454e8d(0x15b)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x454e8d(0x15b)](_0x454e8d(0xd4));return;}let _0x380f65;if(_0x3e18c6['length']===0x1)_0x380f65=_0x3e18c6[0x0];else{const _0x21b007=process['stdin']['isTTY']&&process['stdout'][_0x454e8d(0x142)];if(!_0x21b007){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xbc0879 of _0x3e18c6){console['log']('\x20\x20'+_0xbc0879[_0x454e8d(0xe8)]),console['log'](_0x454e8d(0x10a)+_0xbc0879['id']),_0xbc0879['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x292fd5[_0x454e8d(0xda)](getProgressDisplay,_0xbc0879['stats'])),_0xbc0879[_0x454e8d(0xb3)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xbc0879[_0x454e8d(0xb3)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x57982a}=await _0x23c83d[_0x454e8d(0xcd)]([{'type':'list','name':_0x292fd5['yXHLM'],'message':_0x292fd5[_0x454e8d(0xe7)],'choices':_0x3e18c6['map'](_0x155daa=>({'name':_0x155daa[_0x454e8d(0xe8)]+'\x20('+_0x155daa['id']+')','value':_0x155daa['id']}))}]);_0x380f65=_0x3e18c6[_0x454e8d(0x100)](_0xe7a79f=>_0xe7a79f['id']===_0x57982a);}await setActiveFeatureId(_0x380f65['id']);_0x2458ca&&_0x2458ca!==_0x380f65['gitBranch']&&(await updateFeature(_0x380f65['id'],{'gitBranch':_0x2458ca}),console[_0x454e8d(0x15b)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2458ca));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x380f65[_0x454e8d(0xe8)]+'\x20('+_0x380f65['id']+')'),await tryStartCurrentSession(_0x380f65['id']);const _0x4ff5b5=await _0x292fd5['Ubgem'](getFeature,_0x380f65['id']),_0x248577=process['env'][_0x454e8d(0xab)];_0x248577&&_0x292fd5[_0x454e8d(0x13d)](registerSession,_0x248577,_0x4ff5b5['id']),displayFeature(_0x4ff5b5,_0x4ff5b5['checklistItems']),await _0x292fd5['Ubgem'](printFeedbackNudge,_0x4ff5b5['id']);}async function printFeedbackNudge(_0x5d4674){const _0x335ba5=_0x4901ae,_0xf8e3a2={'ISNLh':function(_0xc938d3,_0x13e6c5){return _0xc938d3(_0x13e6c5);},'nKDHa':function(_0x134cd7,_0x500cb3,_0x3a2c28){return _0x134cd7(_0x500cb3,_0x3a2c28);},'jfoTX':function(_0x4a54c0,_0x3a99a8){return _0x4a54c0>_0x3a99a8;}};try{const {items:_0x3280d4}=await _0xf8e3a2[_0x335ba5(0xb8)](getActionItems,_0x5d4674);let _0x2fbe8c=0x0,_0x5c6e76=0x0;for(const _0x4132d7 of _0x3280d4){const _0x2f4e7f=await _0xf8e3a2[_0x335ba5(0xec)](getItemFeedback,_0x5d4674,_0x4132d7['id']);_0x2f4e7f[_0x335ba5(0x13c)][_0x335ba5(0xa8)]>0x0&&(_0x2fbe8c+=_0x2f4e7f['unaddressedComments'][_0x335ba5(0xa8)],_0x5c6e76++);}_0xf8e3a2['jfoTX'](_0x2fbe8c,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x2fbe8c+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x5c6e76+_0x335ba5(0xb5)),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x2a9f59){const _0x12a8cf=_0x4901ae;try{const {sessions:_0x5e7b0a}=await listFeatureSessions(_0x2a9f59),_0x2b20b8=_0x5e7b0a['find'](_0x5caade=>_0x5caade['status']===_0x12a8cf(0x17b));_0x2b20b8&&(await startSession(_0x2a9f59,_0x2b20b8['id']),console['log'](_0x12a8cf(0x143)+_0x2b20b8['iteration']));}catch{}}export async function featureReport(_0x44bb25,_0x4a197f){const _0x1133c7=_0x4901ae,_0x37bc8a={'MrKYb':'\x0aGenerating\x20report...','nsXeE':function(_0x5341da,_0x303160,_0x2a9527){return _0x5341da(_0x303160,_0x2a9527);},'DrAvF':function(_0x4b04bf,_0x2ede3d,_0x37be3f,_0xd1254){return _0x4b04bf(_0x2ede3d,_0x37be3f,_0xd1254);},'YqTlS':_0x1133c7(0xe4),'xCPZb':function(_0x59c3e2,_0x12c28e){return _0x59c3e2(_0x12c28e);},'Lzord':'utf-8'},_0x32cfe1=_0x44bb25||await getActiveFeatureId();if(!_0x32cfe1)throw new Error(_0x1133c7(0xf5));console['log'](_0x37bc8a[_0x1133c7(0x11d)]);const _0x3c0dd1=await _0x37bc8a['nsXeE'](getFeatureReportMarkdown,_0x32cfe1,{'style':_0x4a197f['style']}),_0x3846f5=_0x4a197f['output']||_0x37bc8a['DrAvF'](join,getRangerDir(),_0x37bc8a['YqTlS'],_0x32cfe1+_0x1133c7(0x15e)),_0x9d852f=_0x37bc8a['nsXeE'](join,_0x3846f5,'..');!_0x37bc8a[_0x1133c7(0x16d)](existsSync,_0x9d852f)&&await _0x37bc8a['nsXeE'](mkdir,_0x9d852f,{'recursive':!![]}),await _0x37bc8a[_0x1133c7(0xa9)](writeFile,_0x3846f5,_0x3c0dd1,_0x37bc8a[_0x1133c7(0xd6)]),console['log'](_0x1133c7(0x11f)+_0x3846f5);}function getScenarioResult(_0x16a5fe){const _0x31e4df=_0x4901ae,_0x36f7ed={'UNNOW':function(_0x5e58f3,_0x22ba96){return _0x5e58f3===_0x22ba96;},'gkdWl':_0x31e4df(0x13f)};if(_0x36f7ed['UNNOW'](_0x16a5fe[_0x31e4df(0x170)],_0x31e4df(0xd5)))return _0x16a5fe['terminalReason']??'closed';if(_0x16a5fe[_0x31e4df(0x170)]===_0x36f7ed['gkdWl'])return'in_progress';return _0x16a5fe['status'];}function getScenarioRationale(_0x4b3ec0,_0x2a6015){const _0x25850c=_0x4901ae;if(_0x2a6015)return _0x2a6015;if(_0x4b3ec0['blockedReason'])return _0x4b3ec0[_0x25850c(0xb7)];if(_0x4b3ec0[_0x25850c(0x134)])return _0x4b3ec0['incompleteReason'];if(_0x4b3ec0['canceledReason'])return _0x4b3ec0['canceledReason'];if(_0x4b3ec0['notes'])return _0x4b3ec0[_0x25850c(0xb0)];return null;}export async function featureReportPrDescription(_0x408557,_0xee1db2){const _0x38b44f=_0x4901ae,_0x59b065={'CekOn':function(_0x54c8c9){return _0x54c8c9();},'MTCEH':function(_0x2a5fce,_0x46f1d9,_0x30dfe5){return _0x2a5fce(_0x46f1d9,_0x30dfe5);},'PnKrp':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','tFnIO':function(_0x588057,_0x525842){return _0x588057>_0x525842;},'xojjC':function(_0x4a186e,_0x3615b5){return _0x4a186e+_0x3615b5;},'iDLpn':function(_0x30c36b,_0x576f30){return _0x30c36b===_0x576f30;},'PCCdL':_0x38b44f(0x159),'CPKvw':function(_0xe736f9,_0x3e5d66,_0x49fe81,_0x50ac3f){return _0xe736f9(_0x3e5d66,_0x49fe81,_0x50ac3f);}},_0x3001ee=_0x408557||await _0x59b065['CekOn'](getActiveFeatureId);if(!_0x3001ee)throw new Error(_0x38b44f(0xf5));const _0x37cc43=await getFeature(_0x3001ee),_0x55caf2=_0x37cc43['checklistItems']||[],_0x1661de=_0x59b065['MTCEH'](getCurrentSessionItems,_0x37cc43,_0x55caf2);_0x1661de[_0x38b44f(0xa8)]===0x0&&(console[_0x38b44f(0xbf)](_0x59b065['PnKrp']),process['exit'](0x1));const _0x559910=_0xee1db2[_0x38b44f(0x16f)]??[],_0x29421f=_0x559910[_0x38b44f(0x102)](_0x264c5d=>!Number['isInteger'](_0x264c5d)||_0x264c5d<0x1||_0x264c5d>_0x1661de['length']);if(_0x59b065[_0x38b44f(0x172)](_0x29421f['length'],0x0)){console[_0x38b44f(0xbf)](_0x38b44f(0x128)+_0x29421f['join'](',\x20')),console[_0x38b44f(0x15b)]('\x0aAvailable\x20scenarios:');for(let _0x5380c8=0x0;_0x5380c8<_0x1661de[_0x38b44f(0xa8)];_0x5380c8++){console['log']('\x20\x20'+_0x59b065[_0x38b44f(0x106)](_0x5380c8,0x1)+'.\x20'+_0x1661de[_0x5380c8][_0x38b44f(0xf3)]);}process['exit'](0x1);}const _0x5a5e78=new Set(_0x559910[_0x38b44f(0x119)](_0x22cc96=>_0x22cc96-0x1)),_0x5655e8=_0x1661de[_0x38b44f(0x102)]((_0x3e876d,_0x161d7a)=>!_0x5a5e78[_0x38b44f(0xef)](_0x161d7a));_0x59b065[_0x38b44f(0x15d)](_0x5655e8[_0x38b44f(0xa8)],0x0)&&(console[_0x38b44f(0xbf)](_0x59b065[_0x38b44f(0xaf)]),process['exit'](0x1));if(_0xee1db2['json'])await _0x59b065['CPKvw'](outputJsonReport,_0x3001ee,_0x37cc43,_0x5655e8);else{const _0x236672=await getFeatureReportMarkdown(_0x3001ee,{'itemIds':_0x5655e8['map'](_0x4f25d1=>_0x4f25d1['id'])});process[_0x38b44f(0xfd)][_0x38b44f(0x162)](_0x236672['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x5bf704,_0x51677c,_0x59a80d){const _0x56a380=_0x4901ae,_0x3e7e1b={'kdJFW':function(_0x7725be,_0x5f1321){return _0x7725be(_0x5f1321);},'srDPG':function(_0x507942,_0x2ec73e){return _0x507942>_0x2ec73e;},'ZYvEc':function(_0x23d493,_0xea3530,_0x39dfba){return _0x23d493(_0xea3530,_0x39dfba);},'lWokK':function(_0x108fbe,_0x21e6da){return _0x108fbe+_0x21e6da;}},_0x536b22=getApiBaseUrl(),_0x649504=await getFeatureReport(_0x5bf704),_0x101f75=new Map(_0x649504[_0x56a380(0xe1)]['map'](_0x296c8c=>[_0x296c8c['id'],_0x296c8c])),_0x1f38a9=await Promise['all'](_0x59a80d['map'](async _0x3cf74c=>{const _0x384f17=_0x56a380,_0x488e25=_0x101f75['get'](_0x3cf74c['id']),_0x4397cf=_0x488e25?.['linkedSession']??null;let _0x48d908=[];if(_0x3cf74c['browserSessionId'])try{const {steps:_0x198244}=await _0x3e7e1b[_0x384f17(0x122)](getBrowserSessionSteps,_0x3cf74c[_0x384f17(0xd7)]);_0x3e7e1b[_0x384f17(0xe9)](_0x198244['length'],0x0)&&(_0x48d908=_0x198244['map'](_0x298cef=>{const _0x45492b=_0x384f17,_0x3a104d=_0x298cef['assets']['find'](_0x3c4faf=>_0x3c4faf[_0x45492b(0xc3)]===_0x45492b(0x16c)&&_0x3c4faf[_0x45492b(0x17f)]==='after')??_0x298cef[_0x45492b(0xea)][_0x45492b(0x100)](_0x44f636=>_0x44f636['assetType']==='screenshot');let _0x48209a=null,_0x556a20=null;if(_0x3a104d){const _0x35bb5d=_0x3a104d[_0x45492b(0x125)][_0x45492b(0x11e)][_0x45492b(0x171)]('/')[_0x45492b(0xff)]();_0x48209a=_0x536b22+_0x45492b(0x126)+_0x3cf74c['browserSessionId']+_0x45492b(0x15c)+_0x35bb5d,_0x35bb5d&&(_0x556a20=_0x35bb5d['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x45492b(0xc9)](/[-_]/g,'\x20'));}return{'description':_0x556a20||_0x298cef['description']||_0x298cef['stepName']||_0x45492b(0xd0)+_0x298cef['position'],'screenshot':_0x48209a,'is_key_step':_0x298cef['isKeyStep']};}));}catch{}return _0x48d908['length']===0x0&&_0x4397cf?.['screenshotUrls']&&(_0x48d908=_0x4397cf['screenshotUrls']['map']((_0x37f015,_0x3d5163)=>({'description':'Screenshot\x20'+(_0x3d5163+0x1),'screenshot':_0x37f015,'is_key_step':![]}))),{'description':_0x3cf74c[_0x384f17(0xf3)],'result':getScenarioResult(_0x3cf74c),'rationale':_0x3e7e1b[_0x384f17(0x116)](getScenarioRationale,_0x3cf74c,_0x4397cf?.['agentResponse']),'steps':_0x48d908};})),_0x5d825f={'url':_0x51677c[_0x56a380(0x10c)],'scenarios':_0x1f38a9};process[_0x56a380(0xfd)]['write'](_0x3e7e1b['lWokK'](JSON[_0x56a380(0x167)](_0x5d825f,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x267e44){const _0x5e600c=_0x4901ae,_0x15dfa5={'kSREg':function(_0x4506b7){return _0x4506b7();},'mdMAb':_0x5e600c(0x154),'BATyT':_0x5e600c(0x105),'GfVWG':function(_0x57d6af,_0x537fce){return _0x57d6af===_0x537fce;},'asSUU':_0x5e600c(0x16e),'TpHOk':'in_progress','sgnll':'\x0aConcluding\x20session...'},_0xce9bc8=_0x267e44||await _0x15dfa5['kSREg'](getActiveFeatureId);if(!_0xce9bc8)throw new Error(_0x15dfa5['mdMAb']);const _0x5c4d95=await getFeature(_0xce9bc8);if(!_0x5c4d95['currentSessionId'])throw new Error(_0x15dfa5['BATyT']);const {sessions:_0x3c5be7}=await listFeatureSessions(_0xce9bc8),_0x31990a=_0x3c5be7['find'](_0x443644=>_0x443644['id']===_0x5c4d95['currentSessionId']);if(!_0x31990a)throw new Error('Current\x20session\x20not\x20found.');if(_0x15dfa5[_0x5e600c(0x13a)](_0x31990a[_0x5e600c(0x170)],_0x15dfa5['asSUU'])){console[_0x5e600c(0x15b)](_0x5e600c(0xc8));return;}if(_0x31990a['status']!==_0x15dfa5['TpHOk'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x31990a['status']);console[_0x5e600c(0x15b)](_0x15dfa5[_0x5e600c(0x11a)]),await concludeSession(_0xce9bc8,_0x5c4d95['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x31990a['iteration']+_0x5e600c(0x136)),console['log'](_0x5e600c(0xf7));}export async function featureSessions(_0x172bb1){const _0x3ff000=_0x4901ae,_0x245e16={'nEBFV':function(_0x58574f){return _0x58574f();},'xLPRb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','BBxhQ':function(_0xb39192,_0x3daf8a){return _0xb39192===_0x3daf8a;},'SZFuZ':'No\x20sessions\x20found.','MnvWU':_0x3ff000(0x103)},_0x22c392=_0x172bb1||await _0x245e16['nEBFV'](getActiveFeatureId);if(!_0x22c392)throw new Error(_0x245e16[_0x3ff000(0x149)]);const _0x3066f1=await getFeature(_0x22c392);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3066f1['name']+'\x0a');const {sessions:_0x32d808}=await listFeatureSessions(_0x22c392);if(_0x245e16[_0x3ff000(0x10e)](_0x32d808['length'],0x0)){console[_0x3ff000(0x15b)](_0x245e16['SZFuZ']);return;}for(const _0x415475 of _0x32d808){const _0x37ea47=_0x415475['status']===_0x3ff000(0x16e)?'✅':_0x415475[_0x3ff000(0x170)]===_0x245e16[_0x3ff000(0x17c)]?'🔄':'▶️';console[_0x3ff000(0x15b)](_0x37ea47+_0x3ff000(0x117)+_0x415475['iteration']+'\x20('+_0x415475['id']+')'),console[_0x3ff000(0x15b)]('\x20\x20\x20Status:\x20'+_0x415475[_0x3ff000(0x170)]),console['log'](_0x3ff000(0x121)+new Date(_0x415475[_0x3ff000(0x166)])[_0x3ff000(0xce)]()),_0x415475['completedAt']&&console['log'](_0x3ff000(0x16a)+new Date(_0x415475['completedAt'])['toLocaleString']()),console[_0x3ff000(0x15b)]('');}}export async function featureAddScenario(_0x3ee6b7,_0x38c40d){const _0x39b2c1=_0x4901ae,_0x6898b0={'DuxPR':function(_0xbc0ebf){return _0xbc0ebf();},'mUIQX':_0x39b2c1(0x154),'uwAdo':function(_0x4d68fe,_0x9ff727){return _0x4d68fe(_0x9ff727);},'aVFdY':function(_0x8a724f,_0x5198f2,_0x7e48b9){return _0x8a724f(_0x5198f2,_0x7e48b9);}},_0x385ba5=_0x38c40d||await _0x6898b0['DuxPR'](getActiveFeatureId);if(!_0x385ba5)throw new Error(_0x6898b0['mUIQX']);const _0x108aa5=await _0x6898b0['uwAdo'](getFeature,_0x385ba5);if(_0x108aa5['latestReview']&&!_0x108aa5[_0x39b2c1(0x169)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x108aa5['dashboardUrl']);await _0x6898b0['aVFdY'](createChecklistItem,_0x385ba5,_0x3ee6b7);const _0x33447b=await getFeature(_0x385ba5);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x33447b,_0x33447b['checklistItems']);}export async function featureEditScenario(_0x321657,_0x2bbafa){const _0xb6ae72=_0x4901ae,_0x462bf6={'yYzUa':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ctpLk':function(_0x1a65ea,_0x412e53){return _0x1a65ea(_0x412e53);},'VOhfI':_0xb6ae72(0x112),'zjmmB':function(_0x451bfa,_0x36f247){return _0x451bfa===_0x36f247;},'XCJNe':function(_0x224e70,_0x3e4ead){return _0x224e70===_0x3e4ead;},'gltHU':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','aVBZf':function(_0x51b4e5,_0x3b17d4){return _0x51b4e5-_0x3b17d4;},'ElQbc':function(_0x31197d,_0x5d2e65){return _0x31197d<_0x5d2e65;},'ZQXdo':function(_0x4f9519,_0x35edc8){return _0x4f9519>=_0x35edc8;},'gYviv':_0xb6ae72(0x110)},_0x203d33=_0x2bbafa['id']||await getActiveFeatureId();!_0x203d33&&(console[_0xb6ae72(0xbf)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x462bf6[_0xb6ae72(0x148)]),process['exit'](0x1));const _0xc2ad5c=await _0x462bf6[_0xb6ae72(0x12f)](getFeature,_0x203d33);_0xc2ad5c[_0xb6ae72(0x169)]&&!_0xc2ad5c[_0xb6ae72(0x169)][_0xb6ae72(0x180)]&&(console['error'](_0xb6ae72(0xe3)),console[_0xb6ae72(0xbf)](_0x462bf6['VOhfI']),console[_0xb6ae72(0xbf)]('\x20\x20'+_0xc2ad5c[_0xb6ae72(0x10c)]),process[_0xb6ae72(0x147)](0x1));const _0x370342=_0xc2ad5c['checklistItems']||[];_0x462bf6['zjmmB'](_0x370342[_0xb6ae72(0xa8)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x462bf6[_0xb6ae72(0x137)](_0x2bbafa[_0xb6ae72(0xf6)],undefined)){console['error'](_0x462bf6[_0xb6ae72(0x104)]),console[_0xb6ae72(0x15b)]('\x0aAvailable\x20scenarios:');for(let _0x498c07=0x0;_0x498c07<_0x370342['length'];_0x498c07++){console['log']('\x20\x20'+(_0x498c07+0x1)+'.\x20'+_0x370342[_0x498c07][_0xb6ae72(0xf3)]);}process['exit'](0x1);}const _0x5054c6=_0x462bf6['aVBZf'](_0x2bbafa[_0xb6ae72(0xf6)],0x1);if(_0x462bf6[_0xb6ae72(0x174)](_0x5054c6,0x0)||_0x462bf6[_0xb6ae72(0x157)](_0x5054c6,_0x370342[_0xb6ae72(0xa8)])){console[_0xb6ae72(0xbf)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x2bbafa['scenario']+_0xb6ae72(0xed)+_0x370342['length']+_0xb6ae72(0x113)),console['log'](_0x462bf6['gYviv']);for(let _0x4488cd=0x0;_0x462bf6[_0xb6ae72(0x174)](_0x4488cd,_0x370342['length']);_0x4488cd++){console[_0xb6ae72(0x15b)]('\x20\x20'+(_0x4488cd+0x1)+'.\x20'+_0x370342[_0x4488cd]['description']);}process[_0xb6ae72(0x147)](0x1);}const _0x12ae03=_0x370342[_0x5054c6];await updateChecklistItem(_0x203d33,_0x12ae03['id'],{'description':_0x321657});const _0x95a476=await getFeature(_0x203d33);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x95a476,_0x95a476['checklistItems']);}async function downloadFeedbackImage(_0x472353,_0x2779ee){const _0x2f16ac=_0x4901ae,_0x5c0c64={'pSFMj':function(_0x3f3a0d,_0x46b922,_0x146431){return _0x3f3a0d(_0x46b922,_0x146431);},'pRuPt':_0x2f16ac(0x179),'vhPMb':function(_0x5e2402,_0x1ea7ab,_0xebd762){return _0x5e2402(_0x1ea7ab,_0xebd762);}};try{const _0x3e6d6b=_0x5c0c64[_0x2f16ac(0xdf)](join,getRangerDir(),_0x5c0c64['pRuPt']);await _0x5c0c64['vhPMb'](mkdir,_0x3e6d6b,{'recursive':!![]});const _0x1a2605=_0x5c0c64[_0x2f16ac(0xdf)](join,_0x3e6d6b,'comment_'+_0x2779ee+'.png'),_0x251bda=await fetch(_0x472353);if(!_0x251bda['ok'])return null;const _0x4bc387=Buffer['from'](await _0x251bda[_0x2f16ac(0x161)]());return await writeFile(_0x1a2605,_0x4bc387),_0x1a2605;}catch{return null;}}export async function featureGetReview(_0x5ce0d5){const _0x32807f=_0x4901ae,_0xd62190={'zwGMO':function(_0x108326){return _0x108326();},'WrBly':function(_0x225558,_0x406bab){return _0x225558(_0x406bab);},'JESjr':function(_0x427d42,_0xf16782){return _0x427d42(_0xf16782);},'QLRdy':_0x32807f(0xf4),'Bclno':function(_0x1354f9,_0x8aaf6b){return _0x1354f9<_0x8aaf6b;},'xaUhz':function(_0x5ebb69,_0x3fee35,_0x196e8a){return _0x5ebb69(_0x3fee35,_0x196e8a);},'neSCg':function(_0xb7d5bc,_0x555261){return _0xb7d5bc+_0x555261;},'WvQtR':_0x32807f(0xc6),'ILCaN':'numeric','zJdPk':'Unknown','fKeUr':function(_0x4d1531,_0x270bc0,_0xf088e5){return _0x4d1531(_0x270bc0,_0xf088e5);},'KDHVw':_0x32807f(0x127),'ikpWV':function(_0x8f6a3a,_0x433b51){return _0x8f6a3a===_0x433b51;},'wcLBJ':function(_0x1bf4c0,_0x4a5d70){return _0x1bf4c0>=_0x4a5d70;}},_0x34be41=_0x5ce0d5||await _0xd62190['zwGMO'](getActiveFeatureId);if(!_0x34be41)throw new Error(_0x32807f(0x154));const _0x43bdd2=await _0xd62190[_0x32807f(0x17e)](getFeature,_0x34be41),{items:_0x59af4b}=await _0xd62190['JESjr'](getActionItems,_0x34be41);console[_0x32807f(0x15b)]('\x0a📋\x20Feedback\x20for:\x20'+_0x43bdd2['name']+'\x20('+_0x43bdd2['id']+')\x0a');if(_0x59af4b['length']===0x0){console['log'](_0xd62190['QLRdy']);return;}for(let _0xf76204=0x0;_0xd62190[_0x32807f(0x14a)](_0xf76204,_0x59af4b['length']);_0xf76204++){const _0x1685af=_0x59af4b[_0xf76204],_0x2d8cfb=_0x1685af[_0x32807f(0x101)]>0x1?_0x32807f(0xcf)+_0x1685af[_0x32807f(0x101)]+')':'',_0x3c696=await _0xd62190['xaUhz'](getItemFeedback,_0x34be41,_0x1685af['id']);if(_0x3c696['unaddressedComments'][_0x32807f(0xa8)]>0x0){console['log'](_0x32807f(0x11c)+_0xd62190[_0x32807f(0x12e)](_0xf76204,0x1)+':\x20\x22'+_0x1685af['description']+'\x22'+_0x2d8cfb+'\x20—\x20'+_0x3c696[_0x32807f(0x13c)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x5c71cc of _0x3c696[_0x32807f(0x13c)]){const _0x3d170f=new Date(_0x5c71cc['createdAt'])[_0x32807f(0x124)]('en-US',{'month':_0xd62190[_0x32807f(0x132)],'day':_0xd62190[_0x32807f(0x139)]}),_0x58c95e=_0x5c71cc[_0x32807f(0xad)]||_0x5c71cc['authorEmail']||_0xd62190['zJdPk'];console[_0x32807f(0x15b)]('\x20\x20💬\x20'+_0x58c95e+'\x20('+_0x3d170f+_0x32807f(0xfa)+_0x5c71cc['content']+'\x22');if(_0x5c71cc[_0x32807f(0x152)]){const _0x4f4899=await _0xd62190[_0x32807f(0x14e)](downloadFeedbackImage,_0x5c71cc[_0x32807f(0x152)],_0x5c71cc['id']);_0x4f4899&&console[_0x32807f(0x15b)](_0x32807f(0x181)+_0x4f4899);}if(_0x5c71cc[_0x32807f(0x141)]){const _0x769d56=_0x5c71cc[_0x32807f(0x141)][_0x32807f(0x155)][_0x32807f(0x171)](_0xd62190[_0x32807f(0xee)])[_0x32807f(0xff)]()?.[_0x32807f(0x171)](':')[0x0]||'element',_0x5002e8=_0x5c71cc['domRef']['textContent']?'\x20\x22'+_0x5c71cc[_0x32807f(0x141)][_0x32807f(0x156)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x769d56+'>'+_0x5002e8),console[_0x32807f(0x15b)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5c71cc[_0x32807f(0x141)]['selector']);}else{if(_0x5c71cc['spatial']){const _0x41bf21=_0x5c71cc[_0x32807f(0xaa)]['coordinates'];_0xd62190[_0x32807f(0x164)](_0x5c71cc['spatial']['type'],'point')&&_0xd62190[_0x32807f(0xb2)](_0x41bf21['length'],0x2)?console[_0x32807f(0x15b)](_0x32807f(0xd8)+_0x41bf21[0x0]['toFixed'](0x2)+',\x20'+_0x41bf21[0x1][_0x32807f(0x109)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x5c71cc['spatial']['type']+_0x32807f(0x17d)+_0x41bf21['map'](_0x556af2=>_0x556af2[_0x32807f(0x109)](0x2))[_0x32807f(0xd2)](',\x20')+']');}}}if(_0x3c696[_0x32807f(0x163)]){console['log'](_0x32807f(0x114));for(const _0x27116e of _0x3c696[_0x32807f(0x163)][_0x32807f(0x171)]('\x0a')){console[_0x32807f(0x15b)]('\x20\x20\x20\x20'+_0x27116e);}}}else console['log']('Scenario\x20'+(_0xf76204+0x1)+_0x32807f(0x151)+_0x1685af[_0x32807f(0xf3)]+'\x22'+_0x2d8cfb+_0x32807f(0xf2)),console[_0x32807f(0x15b)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x32807f(0x15b)]('');}}export async function featureDelete(_0x82bb8f){const _0x30b236=_0x4901ae,_0x4a9853={'cSpjT':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','KzdeF':_0x30b236(0x13e)},_0x538516=_0x82bb8f||await getActiveFeatureId();if(!_0x538516)throw new Error(_0x4a9853['cSpjT']);const _0x2abdf6=await getFeature(_0x538516);await softDeleteFeature(_0x538516),console['log'](_0x30b236(0x16b)+_0x2abdf6[_0x30b236(0xe8)]+'\x20('+_0x538516+')'),console['log'](_0x4a9853['KzdeF']+_0x538516);}export async function featureRestore(_0x476ee1){const _0x2b2f01=_0x4901ae;await restoreFeature(_0x476ee1);const _0x58f7ee=await getFeature(_0x476ee1);console[_0x2b2f01(0x15b)](_0x2b2f01(0xe5)+_0x58f7ee[_0x2b2f01(0xe8)]+'\x20('+_0x476ee1+')'),displayFeature(_0x58f7ee,_0x58f7ee['checklistItems']);}
1
+ const _0x5efecc=_0xdae6;(function(_0x56bf49,_0x4703fe){const _0x9a7372=_0xdae6,_0x3317c4=_0x56bf49();while(!![]){try{const _0x4303af=parseInt(_0x9a7372(0x181))/0x1+-parseInt(_0x9a7372(0x1bf))/0x2+parseInt(_0x9a7372(0x1f2))/0x3*(parseInt(_0x9a7372(0x182))/0x4)+-parseInt(_0x9a7372(0x22f))/0x5+-parseInt(_0x9a7372(0x212))/0x6*(-parseInt(_0x9a7372(0x239))/0x7)+-parseInt(_0x9a7372(0x1bc))/0x8+parseInt(_0x9a7372(0x1ac))/0x9*(parseInt(_0x9a7372(0x21f))/0xa);if(_0x4303af===_0x4703fe)break;else _0x3317c4['push'](_0x3317c4['shift']());}catch(_0xf4dcda){_0x3317c4['push'](_0x3317c4['shift']());}}}(_0x4d20,0x4f51d));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3f166d from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';function _0xdae6(_0x2d5851,_0x171a05){_0x2d5851=_0x2d5851-0x177;const _0x4d2066=_0x4d20();let _0xdae6c8=_0x4d2066[_0x2d5851];return _0xdae6c8;}import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x4d5817=>_0x5efecc(0x1f1)+_0x4d5817+'\x1b[0m';function _0x4d20(){const _0x37355b=['EpGzN','\x20/\x20','screenshotUrls','fiOBP','Screenshot\x20','stats','WdyAi','\x20at\x20[','cTqZy','\x20—\x20','\x20verified','RANGER_TEST_USERNAME','4504896nERxHI','totalCount','\x0aCreating\x20feature\x20review...','239146cesWkw','toLocaleString','toLocaleDateString','textContent','\x20\x20\x20Updated\x20branch\x20to:\x20','pdaRS','VcEgs','location','\x20\x20\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','checklistItems','\x20\x20\x20\x20\x20\x20Cancelled:\x20','write','canceledReason','browserSessionId','exit','/api/v1/mcp/browser-sessions/','agentResponse','kagjk','\x20incomplete','\x0a✅\x20Scenario\x20updated','limit','/artifacts/','PcDVe','\x20\x20\x20ID:\x20','split','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0a❌\x20Invalid\x20scenario\x20index:\x20','dashboardUrl','currentSessionId','KppCM','bdOvK','xSjst','sgtQw','get','output','\x20--limit\x20','sessionId','KpgYJ','HvRzg','Vmvli','after','\x0a✅\x20Report\x20generated:\x20','vmyUc','\x0aConcluding\x20session...','incomplete','\x20blocked','Step\x20','\x20\x20\x20Completed:\x20','HUteh','\x1b[1m','10356UfrrtQ','SJmHm','latestReview','completedAt','RpACz','XOOMW','WJQXt','YrjSy','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','has','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','No\x20scenarios\x20found.','lKOdS','stringify','\x0a✅\x20Scenario\x20added','any','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20\x20\x20Branch:\x20','linkedSession','\x20\x20\x20Description:\x20','version','reports','json','jWPre','WEIre','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','map','trim','\x0a⚠️\x20\x20','position','gitRepoUrl','selector','19662WSlvKJ','nKGHi','\x20\x20\x20\x20\x20\x20Blocked:\x20','includeDeleted','gitBranch','canonicalFlow','ZcSaU','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','screenshot','repeat','gnORF','offset','pipe','119030JTqtdE','JwBJY','domRef','hoWob','assetUrl','DYqix','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','type','\x0aNo\x20feature\x20reviews\x20found.','unaddressedComments','MzAWS','description','git\x20remote\x20get-url\x20origin','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','log','excludeScenarios','185055rxaaFU','all','XBjAc','approved','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a✅\x20Session\x20','vAUFM','GJwCx','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','verification_in_progress','133nBuvpE','createdAt','parentItemId','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20Approved','tsCjO','SdAKj','WVAFK','iteration','stdout','stdin','style','oNWMu','UsMEO','dHjXb','cEkcX','blockedReason','\x20—\x20no\x20comments','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','WKklP','):\x20\x22','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x0a✅\x20Feature\x20review\x20created:\x20','trimEnd','ZJSZv','\x20feature\x20review(s)\x20found','2|4|1|0|3|5','\x20\x20\x20Progress:\x20','replace','Cyirz','OedDm','Xhfmi','145779NgHFdP','128JLVltH','filter','closed','NnwFe','vHEYu','utf-8','completed','Mxpwb','length','timing','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','submittedAt','xLgXi','rrvGZ','lfgvE','join','WhyDG','Please\x20finish\x20your\x20review\x20first:','\x0a✅\x20Resumed\x20feature\x20review:\x20','Scenario\x20','iksCS','push','gutMO','EeUVu','list','Cannot\x20conclude\x20session\x20with\x20status:\x20','items','env','\x20>\x20','spatial','blocked','coordinates','status','error','name','\x0a\x20\x20\x20Scenarios:','\x20\x20\x20\x20\x20Branch:\x20','\x20concluded.','point','oWkqA','VaeYn','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','549kQVvLh','content','gBOWS','assets'];_0x4d20=function(){return _0x37355b;};return _0x4d20();}function getGitRepoUrl(){const _0x2111e2=_0x5efecc,_0x78d3d1={'lvedu':_0x2111e2(0x22b),'pdaRS':_0x2111e2(0x187)};try{const _0x1d8c43=execSync(_0x78d3d1['lvedu'],{'encoding':_0x78d3d1[_0x2111e2(0x1c4)],'stdio':[_0x2111e2(0x21e),_0x2111e2(0x21e),'pipe']})['trim']();return _0x1d8c43[_0x2111e2(0x17d)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x2111e2(0x17d)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x4b23d7=_0x5efecc,_0x3ad765={'Vmvli':function(_0x40cc00,_0x5bfa16,_0x33a4d9){return _0x40cc00(_0x5bfa16,_0x33a4d9);},'PcDVe':'utf-8','WEIre':_0x4b23d7(0x21e)};try{return _0x3ad765[_0x4b23d7(0x1e7)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x3ad765[_0x4b23d7(0x1d6)],'stdio':[_0x3ad765['WEIre'],_0x3ad765[_0x4b23d7(0x20a)],_0x3ad765['WEIre']]})[_0x4b23d7(0x20d)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2b6e66=_0x5efecc,_0x29e251={'WJQXt':function(_0x20a0b9,_0xc25a02,_0x290651){return _0x20a0b9(_0xc25a02,_0x290651);},'fuNFG':'utf-8'},_0x20350a=_0x29e251[_0x2b6e66(0x1f8)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x20350a))return null;try{const _0xa2eeb6=await readFile(_0x20350a,_0x29e251['fuNFG']);return _0xa2eeb6['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x61ee0a){const _0x2412a0=_0x5efecc,_0x123a31={'dHjXb':function(_0x1e75cf){return _0x1e75cf();},'aLvfc':function(_0x5e588d,_0x3afff7,_0x47de5f){return _0x5e588d(_0x3afff7,_0x47de5f);},'MzAWS':function(_0x1e2231,_0xcae4b2,_0x62ab51,_0x39bbc4){return _0x1e2231(_0xcae4b2,_0x62ab51,_0x39bbc4);},'iksCS':_0x2412a0(0x187)},_0x3fa2c9=_0x123a31[_0x2412a0(0x248)](getRangerDir),_0x522089=join(_0x3fa2c9,ACTIVE_FEATURE_FILE);!existsSync(_0x3fa2c9)&&await _0x123a31['aLvfc'](mkdir,_0x3fa2c9,{'recursive':!![]}),await _0x123a31[_0x2412a0(0x229)](writeFile,_0x522089,_0x61ee0a,_0x123a31[_0x2412a0(0x196)]);}function getProgressDisplay(_0x42e4b0){const _0x30d18d=_0x5efecc,_0xaf2cf1={'CVkIE':function(_0x4cf2f0,_0x36928e){return _0x4cf2f0+_0x36928e;},'nKGHi':function(_0xac437d,_0x343b0e){return _0xac437d+_0x343b0e;},'GJwCx':function(_0x48b468,_0x18a784){return _0x48b468>_0x18a784;},'vmyUc':function(_0x1b4fe8,_0x37bf75){return _0x1b4fe8>_0x37bf75;}},_0x1fd6c1=_0x42e4b0['verifiedItems']||0x0,_0x462c56=_0x42e4b0['verificationInProgressItems']||0x0,_0x97e2dd=_0x42e4b0['blockedItems']||0x0,_0x54e9f7=_0x42e4b0['incompleteItems']||0x0,_0x3378b3=_0x42e4b0['pendingItems']||0x0,_0x364526=_0xaf2cf1['CVkIE'](_0xaf2cf1[_0x30d18d(0x213)](_0x1fd6c1,_0x462c56),_0x97e2dd)+_0x54e9f7+_0x3378b3;if(_0x364526===0x0)return'-';const _0x2e511d=0xa,_0x3dccbd=Math['round'](_0x1fd6c1/_0x364526*_0x2e511d),_0x502992='█'[_0x30d18d(0x21b)](_0x3dccbd)+'░'['repeat'](_0x2e511d-_0x3dccbd),_0xcccfae=[];if(_0xaf2cf1[_0x30d18d(0x236)](_0x97e2dd,0x0))_0xcccfae['push'](_0x97e2dd+_0x30d18d(0x1ed));if(_0x54e9f7>0x0)_0xcccfae[_0x30d18d(0x197)](_0x54e9f7+_0x30d18d(0x1d2));if(_0xaf2cf1[_0x30d18d(0x1ea)](_0x462c56,0x0))_0xcccfae['push'](_0x462c56+'\x20in\x20progress');const _0x38775d=_0xaf2cf1['GJwCx'](_0xcccfae[_0x30d18d(0x18a)],0x0)?'\x20('+_0xcccfae[_0x30d18d(0x191)](',\x20')+')':'';return _0x502992+'\x20'+_0x1fd6c1+'/'+_0x364526+_0x30d18d(0x1ba)+_0x38775d;}function getCurrentSessionItems(_0x3d646e,_0x2adc2c){const _0x30d6a0=_0x5efecc;if(!_0x3d646e['currentSessionId'])return _0x2adc2c[_0x30d6a0(0x183)](_0x35415f=>!_0x35415f['sessionId']);return _0x2adc2c['filter'](_0x421799=>_0x421799[_0x30d6a0(0x1e4)]===_0x3d646e[_0x30d6a0(0x1dc)]||!_0x421799[_0x30d6a0(0x1e4)]);}function displayFeature(_0x84a1f7,_0x500901){const _0x12d35c=_0x5efecc,_0x335ec5={'vQrDr':_0x12d35c(0x1a5),'RpACz':function(_0x56a8cd,_0x4ffced){return _0x56a8cd===_0x4ffced;},'Mxpwb':function(_0x3564fc,_0x1f4a29){return _0x3564fc===_0x1f4a29;},'QnMkP':_0x12d35c(0x184),'xWJSi':'\x20[has\x20reviewer\x20feedback]','vAUFM':'blocked','DFOJv':_0x12d35c(0x1ec),'umOIY':_0x12d35c(0x232)};console['log']('\x0a'+_0x84a1f7['name']+'\x20('+_0x84a1f7[_0x12d35c(0x1db)]+')');_0x84a1f7[_0x12d35c(0x1b5)]&&console[_0x12d35c(0x22d)](_0x12d35c(0x17c)+getProgressDisplay(_0x84a1f7['stats']));_0x84a1f7[_0x12d35c(0x22a)]&&console[_0x12d35c(0x22d)](_0x12d35c(0x205)+_0x84a1f7['description']);_0x84a1f7[_0x12d35c(0x210)]&&console[_0x12d35c(0x22d)]('\x20\x20\x20Repository:\x20'+_0x84a1f7['gitRepoUrl']);_0x84a1f7['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x84a1f7['gitBranch']);console[_0x12d35c(0x22d)]('\x20\x20\x20Created:\x20'+new Date(_0x84a1f7['createdAt'])['toLocaleString']());_0x84a1f7[_0x12d35c(0x1f5)]&&console[_0x12d35c(0x22d)]('\x20\x20\x20Completed:\x20'+new Date(_0x84a1f7['completedAt'])['toLocaleString']());if(_0x500901&&_0x500901['length']>0x0){console['log'](_0x335ec5['vQrDr']);for(let _0x4c87de=0x0;_0x4c87de<_0x500901['length'];_0x4c87de++){const _0x28730a=_0x500901[_0x4c87de];let _0x57a9b6;if(_0x28730a[_0x12d35c(0x1a2)]==='closed'&&_0x28730a['terminalReason']===_0x12d35c(0x232))_0x57a9b6='✅';else{if(_0x28730a[_0x12d35c(0x1a2)]==='verified')_0x57a9b6='🟢';else{if(_0x335ec5[_0x12d35c(0x1f6)](_0x28730a['status'],_0x12d35c(0x1ec)))_0x57a9b6='🟠';else{if(_0x335ec5['RpACz'](_0x28730a[_0x12d35c(0x1a2)],_0x12d35c(0x1a0)))_0x57a9b6='🛑';else{if(_0x28730a[_0x12d35c(0x1a2)]===_0x12d35c(0x184))_0x57a9b6='⛔';else _0x335ec5[_0x12d35c(0x189)](_0x28730a['status'],'verification_in_progress')?_0x57a9b6='⏳':_0x57a9b6='⬜';}}}}const _0x522049=_0x28730a[_0x12d35c(0x206)]>0x1?'\x20(v'+_0x28730a[_0x12d35c(0x206)]+')':'',_0x16d3cb=_0x28730a[_0x12d35c(0x206)]>0x1&&_0x28730a[_0x12d35c(0x23b)]&&_0x28730a[_0x12d35c(0x1a2)]!==_0x335ec5['QnMkP']&&_0x28730a['status']!=='verified'?_0x335ec5['xWJSi']:'';console[_0x12d35c(0x22d)](_0x12d35c(0x1c7)+(_0x4c87de+0x1)+'.\x20'+_0x57a9b6+'\x20'+_0x28730a[_0x12d35c(0x22a)]+_0x522049+_0x16d3cb);_0x28730a[_0x12d35c(0x1a2)]===_0x335ec5[_0x12d35c(0x235)]&&_0x28730a['blockedReason']&&console['log'](_0x12d35c(0x214)+_0x28730a[_0x12d35c(0x24a)]);_0x335ec5['Mxpwb'](_0x28730a[_0x12d35c(0x1a2)],_0x335ec5['DFOJv'])&&_0x28730a['incompleteReason']&&console[_0x12d35c(0x22d)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x28730a['incompleteReason']);if(_0x28730a[_0x12d35c(0x1a2)]==='closed'&&_0x28730a['terminalReason']===_0x335ec5['umOIY'])console['log'](_0x12d35c(0x23e));else _0x28730a[_0x12d35c(0x1a2)]===_0x335ec5['QnMkP']&&_0x28730a[_0x12d35c(0x1cc)]&&console['log'](_0x12d35c(0x1ca)+_0x28730a['canceledReason']);}}}export async function featureCreate(_0x23dcd6,_0x17172c){const _0x587575=_0x5efecc,_0x134164={'XOOMW':function(_0x122225,_0x30ed11){return _0x122225===_0x30ed11;},'hizCV':function(_0x57906c){return _0x57906c();},'LQyDY':function(_0x4a8d2f){return _0x4a8d2f();},'ASWBm':_0x587575(0x1be),'wzNSM':function(_0x4f97d1,_0x5e4529,_0x10473f){return _0x4f97d1(_0x5e4529,_0x10473f);}},{envNames:_0x53c606}=await getEnvNames();if(_0x134164['XOOMW'](_0x53c606['length'],0x0)&&!process[_0x587575(0x19d)][_0x587575(0x1bb)]){let _0x2a3c70=0x0;try{_0x2a3c70=(await _0x134164['hizCV'](listCloudProfiles))[_0x587575(0x18a)];}catch{_0x2a3c70=0x1;}_0x134164[_0x587575(0x1f7)](_0x2a3c70,0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x2387e3=>bold(_0x2387e3)));}const _0x5cc702=_0x17172c['scenarios']?_0x17172c['scenarios'][_0x587575(0x20c)](_0x540fa0=>_0x540fa0['trim']()):[],_0x19b5ab=_0x134164['LQyDY'](getGitRepoUrl),_0x3d587a=getGitBranch();console[_0x587575(0x22d)](_0x134164['ASWBm']);const _0x5850aa=await createFeature({'name':_0x23dcd6,'description':_0x17172c[_0x587575(0x22a)],'checklist':_0x5cc702,'gitRepoUrl':_0x19b5ab,'gitBranch':_0x3d587a});await setActiveFeatureId(_0x5850aa['id']),await tryStartCurrentSession(_0x5850aa['id']);const _0x5ca6bb=process['env']['CLAUDE_SESSION_ID'];_0x5ca6bb&&_0x134164['wzNSM'](registerSession,_0x5ca6bb,_0x5850aa['id']),console[_0x587575(0x22d)](_0x587575(0x177)+_0x5850aa['id']),displayFeature(_0x5850aa,_0x5850aa['checklistItems']),console['log'](_0x587575(0x18c));}export async function featureList(_0x4535dc){const _0x5ea0a8=_0x5efecc,_0x40585d={'gutMO':function(_0x35fa17){return _0x35fa17();},'ZJSZv':_0x5ea0a8(0x227),'hJReR':_0x5ea0a8(0x17b),'lKOdS':function(_0x130f82,_0x2b57ec){return _0x130f82(_0x2b57ec);},'bdOvK':function(_0x5e41a8,_0x3669fd){return _0x5e41a8+_0x3669fd;},'ZLmmQ':function(_0x3a3890,_0x538f09){return _0x3a3890<_0x538f09;},'fNalq':'\x20--current-branch'},_0x1e6ea7={'limit':_0x4535dc[_0x5ea0a8(0x1d4)]??0xa,'offset':_0x4535dc[_0x5ea0a8(0x21d)]??0x0,'includeDeleted':_0x4535dc[_0x5ea0a8(0x215)]};_0x4535dc['currentBranch']&&(_0x1e6ea7['gitRepoUrl']=getGitRepoUrl(),_0x1e6ea7[_0x5ea0a8(0x216)]=_0x40585d[_0x5ea0a8(0x198)](getGitBranch));const _0x117008=await listFeatures(_0x1e6ea7);if(_0x117008[_0x5ea0a8(0x19c)]['length']===0x0){console[_0x5ea0a8(0x22d)](_0x40585d[_0x5ea0a8(0x179)]);return;}const _0x52155f=_0x117008['totalCount']>_0x117008[_0x5ea0a8(0x19c)]['length']?'Showing\x20'+_0x117008['items']['length']+'\x20of\x20'+_0x117008['totalCount']:_0x117008['totalCount']+_0x5ea0a8(0x17a);console[_0x5ea0a8(0x22d)]('\x0a'+_0x52155f+':\x0a');for(const _0x2fa8f7 of _0x117008['items']){const _0x512e97=_0x40585d['hJReR'][_0x5ea0a8(0x1d8)]('|');let _0x54b122=0x0;while(!![]){switch(_0x512e97[_0x54b122++]){case'0':_0x2fa8f7['gitBranch']&&console['log'](_0x5ea0a8(0x203)+_0x2fa8f7[_0x5ea0a8(0x216)]);continue;case'1':_0x2fa8f7['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x40585d[_0x5ea0a8(0x1fe)](getProgressDisplay,_0x2fa8f7['stats']));continue;case'2':console[_0x5ea0a8(0x22d)](''+_0x2fa8f7[_0x5ea0a8(0x1a4)]);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x2fa8f7['createdAt'])['toLocaleDateString']());continue;case'4':console[_0x5ea0a8(0x22d)](_0x5ea0a8(0x1d7)+_0x2fa8f7['id']);continue;case'5':console[_0x5ea0a8(0x22d)]('');continue;}break;}}const _0x4979f7=_0x1e6ea7['limit']??0xa,_0x10df4b=_0x40585d[_0x5ea0a8(0x1de)](_0x1e6ea7[_0x5ea0a8(0x21d)]??0x0,_0x117008['items'][_0x5ea0a8(0x18a)]);if(_0x40585d['ZLmmQ'](_0x10df4b,_0x117008[_0x5ea0a8(0x1bd)])){const _0x30f4f0=_0x4979f7!==0xa?_0x5ea0a8(0x1e3)+_0x4979f7:'',_0x1d6d12=_0x4535dc['currentBranch']?_0x40585d['fNalq']:'',_0x386454=_0x4535dc[_0x5ea0a8(0x215)]?'\x20--include-deleted':'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x10df4b+_0x30f4f0+_0x1d6d12+_0x386454);}}export async function featureShow(_0x31fbd0){const _0x3362f8=_0x5efecc,_0x210ed9=_0x31fbd0||await getActiveFeatureId();if(!_0x210ed9)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 _0x59052b=await getFeature(_0x210ed9);displayFeature(_0x59052b,_0x59052b[_0x3362f8(0x1c9)]);}export async function featureResume(_0x34eb81){const _0x455186=_0x5efecc,_0x43b863={'KpgYJ':function(_0x52283a,_0x477db8){return _0x52283a(_0x477db8);},'gkEnD':function(_0x5d4ad9){return _0x5d4ad9();},'cTqZy':function(_0x2079ac,_0x3c7507,_0x4ed013){return _0x2079ac(_0x3c7507,_0x4ed013);},'vHEYu':function(_0x21ea27,_0x1f7f72,_0x2717e8){return _0x21ea27(_0x1f7f72,_0x2717e8);},'ODqvI':'Not\x20in\x20a\x20git\x20repository.','oWkqA':function(_0x1bb78c,_0x593e6c){return _0x1bb78c||_0x593e6c;},'WhyDG':_0x455186(0x201),'Xhfmi':function(_0x93333c,_0x5d2bc0){return _0x93333c(_0x5d2bc0);},'DYqix':function(_0x320e32,_0x526d25){return _0x320e32===_0x526d25;},'SJmHm':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','mKrBH':_0x455186(0x1ab),'lfgvE':_0x455186(0x1c8),'hdHpR':_0x455186(0x19a),'HntbK':function(_0x891e3c,_0xb0f356){return _0x891e3c!==_0xb0f356;},'VaeYn':function(_0x43c232,_0x5ed381,_0x25c9c0){return _0x43c232(_0x5ed381,_0x25c9c0);},'KLfjX':function(_0x5de0ca,_0x1e0884,_0x573ce0){return _0x5de0ca(_0x1e0884,_0x573ce0);},'UsMEO':function(_0x3e1cc7,_0x4738ed,_0x46a0db){return _0x3e1cc7(_0x4738ed,_0x46a0db);}};if(_0x34eb81){const _0x245392=await getFeature(_0x34eb81);await _0x43b863[_0x455186(0x1e5)](setActiveFeatureId,_0x245392['id']);const _0x4444fa=_0x43b863['gkEnD'](getGitBranch);_0x4444fa&&_0x4444fa!==_0x245392[_0x455186(0x216)]&&(await _0x43b863[_0x455186(0x1b8)](updateFeature,_0x245392['id'],{'gitBranch':_0x4444fa}),console[_0x455186(0x22d)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4444fa));console['log'](_0x455186(0x194)+_0x245392[_0x455186(0x1a4)]+'\x20('+_0x245392['id']+')'),await tryStartCurrentSession(_0x245392['id']);const _0x599c62=process['env']['CLAUDE_SESSION_ID'];_0x599c62&&_0x43b863[_0x455186(0x1b8)](registerSession,_0x599c62,_0x245392['id']);_0x43b863[_0x455186(0x186)](displayFeature,_0x245392,_0x245392[_0x455186(0x1c9)]),await _0x43b863['KpgYJ'](printFeedbackNudge,_0x245392['id']);return;}const _0xc84ad0=getGitRepoUrl(),_0x4c55a3=getGitBranch();if(!_0xc84ad0&&!_0x4c55a3)throw new Error(_0x43b863['ODqvI']);console[_0x455186(0x22d)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x43b863[_0x455186(0x1a9)](_0xc84ad0,_0x43b863[_0x455186(0x192)])+_0x455186(0x1b1)+(_0x4c55a3||_0x43b863['WhyDG'])+'...');const _0x489078=await _0x43b863[_0x455186(0x180)](listFeatures,{'gitRepoUrl':_0xc84ad0,'gitBranch':_0x4c55a3}),_0x377305=_0x489078['items']['filter'](_0x47e86a=>_0x47e86a[_0x455186(0x1a2)]?_0x47e86a['status']!=='verified':!_0x47e86a[_0x455186(0x1f5)]);if(_0x43b863[_0x455186(0x224)](_0x377305[_0x455186(0x18a)],0x0)){console['log'](_0x43b863[_0x455186(0x1f3)]),console[_0x455186(0x22d)](_0x43b863['mKrBH']);return;}let _0x4d3cef;if(_0x43b863[_0x455186(0x224)](_0x377305[_0x455186(0x18a)],0x1))_0x4d3cef=_0x377305[0x0];else{const _0x287b29=process[_0x455186(0x244)]['isTTY']&&process[_0x455186(0x243)]['isTTY'];if(!_0x287b29){console['log'](_0x43b863[_0x455186(0x190)]);for(const _0x482e37 of _0x377305){console[_0x455186(0x22d)]('\x20\x20'+_0x482e37[_0x455186(0x1a4)]),console[_0x455186(0x22d)]('\x20\x20\x20\x20\x20ID:\x20'+_0x482e37['id']),_0x482e37['stats']&&console[_0x455186(0x22d)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x482e37[_0x455186(0x1b5)])),_0x482e37[_0x455186(0x216)]&&console[_0x455186(0x22d)](_0x455186(0x1a6)+_0x482e37['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x37419e}=await _0x3f166d['prompt']([{'type':_0x43b863['hdHpR'],'name':'selected','message':_0x455186(0x202),'choices':_0x377305[_0x455186(0x20c)](_0x523d04=>({'name':_0x523d04['name']+'\x20('+_0x523d04['id']+')','value':_0x523d04['id']}))}]);_0x4d3cef=_0x377305['find'](_0x2d2b3c=>_0x2d2b3c['id']===_0x37419e);}await _0x43b863['KpgYJ'](setActiveFeatureId,_0x4d3cef['id']);_0x4c55a3&&_0x43b863['HntbK'](_0x4c55a3,_0x4d3cef['gitBranch'])&&(await _0x43b863[_0x455186(0x1aa)](updateFeature,_0x4d3cef['id'],{'gitBranch':_0x4c55a3}),console[_0x455186(0x22d)](_0x455186(0x1c3)+_0x4c55a3));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4d3cef['name']+'\x20('+_0x4d3cef['id']+')'),await _0x43b863[_0x455186(0x1e5)](tryStartCurrentSession,_0x4d3cef['id']);const _0x16dcf3=await getFeature(_0x4d3cef['id']),_0x5eaf69=process['env']['CLAUDE_SESSION_ID'];_0x5eaf69&&_0x43b863['KLfjX'](registerSession,_0x5eaf69,_0x16dcf3['id']),_0x43b863[_0x455186(0x247)](displayFeature,_0x16dcf3,_0x16dcf3['checklistItems']),await printFeedbackNudge(_0x16dcf3['id']);}async function printFeedbackNudge(_0x30933f){const _0x1efe06=_0x5efecc,_0x15946d={'KXqqL':function(_0x468b46,_0x2a24e9,_0x49e8fd){return _0x468b46(_0x2a24e9,_0x49e8fd);},'ZqeqC':function(_0x5c59c2,_0x38061a){return _0x5c59c2>_0x38061a;},'HUteh':_0x1efe06(0x24c)};try{const {items:_0x34d013}=await getActionItems(_0x30933f);let _0x3baa3f=0x0,_0x3b4c57=0x0;for(const _0x440092 of _0x34d013){const _0x473599=await _0x15946d['KXqqL'](getItemFeedback,_0x30933f,_0x440092['id']);_0x15946d['ZqeqC'](_0x473599['unaddressedComments'][_0x1efe06(0x18a)],0x0)&&(_0x3baa3f+=_0x473599['unaddressedComments'][_0x1efe06(0x18a)],_0x3b4c57++);}_0x3baa3f>0x0&&(console[_0x1efe06(0x22d)](_0x1efe06(0x20e)+_0x3baa3f+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x3b4c57+'\x20scenario(s).'),console['log'](_0x15946d[_0x1efe06(0x1f0)]));}catch{}}async function tryStartCurrentSession(_0x2a5f86){const _0xa695a0=_0x5efecc,_0x3f5c0a={'yBiLo':function(_0x5715dc,_0x399b2b){return _0x5715dc(_0x399b2b);}};try{const {sessions:_0x3f9ae2}=await _0x3f5c0a['yBiLo'](listFeatureSessions,_0x2a5f86),_0x4b0a15=_0x3f9ae2['find'](_0x2342cd=>_0x2342cd['status']==='ready');_0x4b0a15&&(await startSession(_0x2a5f86,_0x4b0a15['id']),console[_0xa695a0(0x22d)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x4b0a15[_0xa695a0(0x242)]));}catch{}}export async function featureReport(_0x10a815,_0x4b42c3){const _0x2633c1=_0x5efecc,_0x46b43e={'oNWMu':function(_0x3552f5){return _0x3552f5();},'gnORF':function(_0x53702c,_0x2e6dda,_0x58273b){return _0x53702c(_0x2e6dda,_0x58273b);},'xLgXi':function(_0x5c7c2f,_0x4715c1,_0xf4e199,_0x174389){return _0x5c7c2f(_0x4715c1,_0xf4e199,_0x174389);},'mUDvc':_0x2633c1(0x207),'JwBJY':function(_0x595a10,_0x2457a2){return _0x595a10(_0x2457a2);},'gBOWS':_0x2633c1(0x187)},_0xe8911b=_0x10a815||await _0x46b43e[_0x2633c1(0x246)](getActiveFeatureId);if(!_0xe8911b)throw new Error(_0x2633c1(0x233));console['log']('\x0aGenerating\x20report...');const _0x5f0be7=await _0x46b43e[_0x2633c1(0x21c)](getFeatureReportMarkdown,_0xe8911b,{'style':_0x4b42c3[_0x2633c1(0x245)]}),_0x28b21c=_0x4b42c3[_0x2633c1(0x1e2)]||_0x46b43e[_0x2633c1(0x18e)](join,getRangerDir(),_0x46b43e['mUDvc'],_0xe8911b+'.md'),_0x3f2db4=join(_0x28b21c,'..');!_0x46b43e[_0x2633c1(0x220)](existsSync,_0x3f2db4)&&await mkdir(_0x3f2db4,{'recursive':!![]}),await writeFile(_0x28b21c,_0x5f0be7,_0x46b43e[_0x2633c1(0x1ae)]),console['log'](_0x2633c1(0x1e9)+_0x28b21c);}function getScenarioResult(_0xfea360){const _0x288e2b=_0x5efecc,_0x3c3019={'mhbiZ':function(_0x2d5c37,_0x430d89){return _0x2d5c37===_0x430d89;},'WKklP':'closed','fiOBP':'in_progress'};if(_0x3c3019['mhbiZ'](_0xfea360['status'],_0x3c3019[_0x288e2b(0x24d)]))return _0xfea360['terminalReason']??'closed';if(_0xfea360['status']===_0x288e2b(0x238))return _0x3c3019[_0x288e2b(0x1b3)];return _0xfea360['status'];}function getScenarioRationale(_0x1d8731,_0x31ebbb){const _0x1402f9=_0x5efecc,_0x4e2a2c='0|1|3|4|5|2'[_0x1402f9(0x1d8)]('|');let _0x34a6ca=0x0;while(!![]){switch(_0x4e2a2c[_0x34a6ca++]){case'0':if(_0x31ebbb)return _0x31ebbb;continue;case'1':if(_0x1d8731[_0x1402f9(0x24a)])return _0x1d8731['blockedReason'];continue;case'2':return null;case'3':if(_0x1d8731['incompleteReason'])return _0x1d8731['incompleteReason'];continue;case'4':if(_0x1d8731[_0x1402f9(0x1cc)])return _0x1d8731['canceledReason'];continue;case'5':if(_0x1d8731['notes'])return _0x1d8731['notes'];continue;}break;}}export async function featureReportPrDescription(_0xff0781,_0x236702){const _0x51bb7d=_0x5efecc,_0x46729d={'xSjst':function(_0x58afa2,_0xf7cd7,_0x4e88dd){return _0x58afa2(_0xf7cd7,_0x4e88dd);},'YOPnJ':_0x51bb7d(0x20b),'hoWob':function(_0xb4cff5,_0x314a66){return _0xb4cff5>_0x314a66;},'WVAFK':'\x0aAvailable\x20scenarios:','Cyirz':function(_0x532c71,_0x185591){return _0x532c71<_0x185591;},'xJyFM':function(_0x44f466,_0x380b3a){return _0x44f466===_0x380b3a;},'hwLOh':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','kagjk':function(_0x192bec,_0x107542,_0x204fae,_0x2323f8){return _0x192bec(_0x107542,_0x204fae,_0x2323f8);},'PxbvL':function(_0x5aa624,_0x1301bb,_0x246000){return _0x5aa624(_0x1301bb,_0x246000);}},_0x1fc487=_0xff0781||await getActiveFeatureId();if(!_0x1fc487)throw new Error(_0x51bb7d(0x233));const _0x1c39a9=await getFeature(_0x1fc487),_0x36a164=_0x1c39a9[_0x51bb7d(0x1c9)]||[],_0x48c7f3=_0x46729d[_0x51bb7d(0x1df)](getCurrentSessionItems,_0x1c39a9,_0x36a164);_0x48c7f3['length']===0x0&&(console[_0x51bb7d(0x1a3)](_0x46729d['YOPnJ']),process['exit'](0x1));const _0x2f1c67=_0x236702[_0x51bb7d(0x22e)]??[],_0x26aad1=_0x2f1c67['filter'](_0x116d6b=>!Number['isInteger'](_0x116d6b)||_0x116d6b<0x1||_0x116d6b>_0x48c7f3[_0x51bb7d(0x18a)]);if(_0x46729d[_0x51bb7d(0x222)](_0x26aad1['length'],0x0)){console[_0x51bb7d(0x1a3)](_0x51bb7d(0x1fc)+_0x26aad1[_0x51bb7d(0x191)](',\x20')),console['log'](_0x46729d[_0x51bb7d(0x241)]);for(let _0x3f6c12=0x0;_0x46729d[_0x51bb7d(0x17e)](_0x3f6c12,_0x48c7f3[_0x51bb7d(0x18a)]);_0x3f6c12++){console['log']('\x20\x20'+(_0x3f6c12+0x1)+'.\x20'+_0x48c7f3[_0x3f6c12]['description']);}process['exit'](0x1);}const _0xfb3279=new Set(_0x2f1c67['map'](_0x222d9a=>_0x222d9a-0x1)),_0x3658ac=_0x48c7f3['filter']((_0x2ac0b2,_0x4cda87)=>!_0xfb3279[_0x51bb7d(0x1fb)](_0x4cda87));_0x46729d['xJyFM'](_0x3658ac[_0x51bb7d(0x18a)],0x0)&&(console['error'](_0x46729d['hwLOh']),process['exit'](0x1));if(_0x236702[_0x51bb7d(0x208)])await _0x46729d[_0x51bb7d(0x1d1)](outputJsonReport,_0x1fc487,_0x1c39a9,_0x3658ac);else{const _0x13953b=await _0x46729d['PxbvL'](getFeatureReportMarkdown,_0x1fc487,{'itemIds':_0x3658ac['map'](_0x1dd929=>_0x1dd929['id'])});process[_0x51bb7d(0x243)][_0x51bb7d(0x1cb)](_0x13953b[_0x51bb7d(0x178)]()+'\x0a');}}async function outputJsonReport(_0x317fec,_0x18204b,_0x5d11fe){const _0x2220f9=_0x5efecc,_0x56bc98={'vrVdp':function(_0x9ea42b,_0x1744d8){return _0x9ea42b===_0x1744d8;},'tsCjO':function(_0x11e6f2,_0x44e4ba){return _0x11e6f2(_0x44e4ba);},'EeUVu':function(_0x466785,_0x103112,_0xa50803){return _0x466785(_0x103112,_0xa50803);},'LRyeK':function(_0x378c68){return _0x378c68();},'HXHtB':function(_0x127ec0,_0x5e065b){return _0x127ec0+_0x5e065b;}},_0x50f7fe=_0x56bc98['LRyeK'](getApiBaseUrl),_0x1b6887=await getFeatureReport(_0x317fec),_0x236d46=new Map(_0x1b6887['checklistItems'][_0x2220f9(0x20c)](_0x24f3ab=>[_0x24f3ab['id'],_0x24f3ab])),_0x5f3fe7=await Promise[_0x2220f9(0x230)](_0x5d11fe['map'](async _0x594884=>{const _0x313a9d=_0x2220f9,_0x1fe40a=_0x236d46[_0x313a9d(0x1e1)](_0x594884['id']),_0x216cb2=_0x1fe40a?.[_0x313a9d(0x204)]??null;let _0x2071d3=[];if(_0x594884[_0x313a9d(0x1cd)])try{const {steps:_0x17fcda}=await getBrowserSessionSteps(_0x594884[_0x313a9d(0x1cd)]);_0x17fcda[_0x313a9d(0x18a)]>0x0&&(_0x2071d3=_0x17fcda[_0x313a9d(0x20c)](_0x52655c=>{const _0x30a9e5=_0x313a9d,_0x549d69=_0x52655c[_0x30a9e5(0x1af)]['find'](_0x2e4669=>_0x2e4669['assetType']==='screenshot'&&_0x2e4669[_0x30a9e5(0x18b)]===_0x30a9e5(0x1e8))??_0x52655c[_0x30a9e5(0x1af)]['find'](_0x457565=>_0x457565['assetType']===_0x30a9e5(0x21a));let _0x2f09e8=null,_0x1cf562=null;if(_0x549d69){const _0x1f45ce=_0x549d69['storage'][_0x30a9e5(0x1c6)]['split']('/')['pop']();_0x2f09e8=_0x50f7fe+_0x30a9e5(0x1cf)+_0x594884[_0x30a9e5(0x1cd)]+_0x30a9e5(0x1d5)+_0x1f45ce,_0x1f45ce&&(_0x1cf562=_0x1f45ce['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1cf562||_0x52655c['description']||_0x52655c['stepName']||_0x30a9e5(0x1ee)+_0x52655c[_0x30a9e5(0x20f)],'screenshot':_0x2f09e8,'is_key_step':_0x52655c['isKeyStep']};}));}catch{}return _0x56bc98['vrVdp'](_0x2071d3[_0x313a9d(0x18a)],0x0)&&_0x216cb2?.['screenshotUrls']&&(_0x2071d3=_0x216cb2[_0x313a9d(0x1b2)]['map']((_0x325ca7,_0xac5fb2)=>({'description':_0x313a9d(0x1b4)+(_0xac5fb2+0x1),'screenshot':_0x325ca7,'is_key_step':![]}))),{'description':_0x594884[_0x313a9d(0x22a)],'result':_0x56bc98[_0x313a9d(0x23f)](getScenarioResult,_0x594884),'rationale':_0x56bc98[_0x313a9d(0x199)](getScenarioRationale,_0x594884,_0x216cb2?.[_0x313a9d(0x1d0)]),'steps':_0x2071d3};})),_0xca27={'url':_0x18204b['dashboardUrl'],'scenarios':_0x5f3fe7};process[_0x2220f9(0x243)]['write'](_0x56bc98['HXHtB'](JSON[_0x2220f9(0x1ff)](_0xca27,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x25d7e1){const _0x445038=_0x5efecc,_0x4db3a3={'SdAKj':function(_0x48144b){return _0x48144b();},'xoUEA':_0x445038(0x1fa),'HvRzg':function(_0x3fb871,_0x47d968){return _0x3fb871(_0x47d968);},'sgtQw':function(_0x31ff47,_0x329804){return _0x31ff47===_0x329804;},'fCqXm':'\x0a✅\x20Session\x20is\x20already\x20completed.','gWEtO':'in_progress'},_0x4d725b=_0x25d7e1||await _0x4db3a3[_0x445038(0x240)](getActiveFeatureId);if(!_0x4d725b)throw new Error(_0x4db3a3['xoUEA']);const _0x4252bf=await _0x4db3a3[_0x445038(0x1e6)](getFeature,_0x4d725b);if(!_0x4252bf[_0x445038(0x1dc)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x1493ea}=await _0x4db3a3[_0x445038(0x1e6)](listFeatureSessions,_0x4d725b),_0x1c31e9=_0x1493ea['find'](_0x4f4f80=>_0x4f4f80['id']===_0x4252bf['currentSessionId']);if(!_0x1c31e9)throw new Error('Current\x20session\x20not\x20found.');if(_0x4db3a3[_0x445038(0x1e0)](_0x1c31e9[_0x445038(0x1a2)],_0x445038(0x188))){console[_0x445038(0x22d)](_0x4db3a3['fCqXm']);return;}if(_0x1c31e9[_0x445038(0x1a2)]!==_0x4db3a3['gWEtO'])throw new Error(_0x445038(0x19b)+_0x1c31e9[_0x445038(0x1a2)]);console[_0x445038(0x22d)](_0x445038(0x1eb)),await concludeSession(_0x4d725b,_0x4252bf['currentSessionId']),console['log'](_0x445038(0x234)+_0x1c31e9['iteration']+_0x445038(0x1a7)),console[_0x445038(0x22d)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x29f46a){const _0x4561e2=_0x5efecc,_0x151d52={'lNXJV':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ZcSaU':function(_0x8995b,_0x103037){return _0x8995b(_0x103037);},'Ihtxf':function(_0x212990,_0x392272){return _0x212990===_0x392272;},'fbOyT':function(_0xcf1afb,_0x50a125){return _0xcf1afb===_0x50a125;}},_0x10502f=_0x29f46a||await getActiveFeatureId();if(!_0x10502f)throw new Error(_0x151d52['lNXJV']);const _0x2ffd66=await getFeature(_0x10502f);console[_0x4561e2(0x22d)](_0x4561e2(0x237)+_0x2ffd66['name']+'\x0a');const {sessions:_0x31d12c}=await _0x151d52[_0x4561e2(0x218)](listFeatureSessions,_0x10502f);if(_0x31d12c['length']===0x0){console[_0x4561e2(0x22d)]('No\x20sessions\x20found.');return;}for(const _0x285467 of _0x31d12c){const _0x2ecee9=_0x151d52['Ihtxf'](_0x285467['status'],'completed')?'✅':_0x151d52['fbOyT'](_0x285467[_0x4561e2(0x1a2)],'in_progress')?'🔄':'▶️';console[_0x4561e2(0x22d)](_0x2ecee9+'\x20Session\x20'+_0x285467[_0x4561e2(0x242)]+'\x20('+_0x285467['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x285467['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x285467[_0x4561e2(0x23a)])[_0x4561e2(0x1c0)]()),_0x285467['completedAt']&&console[_0x4561e2(0x22d)](_0x4561e2(0x1ef)+new Date(_0x285467[_0x4561e2(0x1f5)])[_0x4561e2(0x1c0)]()),console['log']('');}}export async function featureAddScenario(_0x581bf9,_0x1540d2){const _0x355f51=_0x5efecc,_0x2e0bf4={'VLzMN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Zoiip':function(_0x59bcb9,_0x5de3fc){return _0x59bcb9(_0x5de3fc);},'jWPre':function(_0x42afab,_0x216ef7,_0x2d2e6c){return _0x42afab(_0x216ef7,_0x2d2e6c);}},_0x2452c6=_0x1540d2||await getActiveFeatureId();if(!_0x2452c6)throw new Error(_0x2e0bf4['VLzMN']);const _0x4ebd12=await _0x2e0bf4['Zoiip'](getFeature,_0x2452c6);if(_0x4ebd12['latestReview']&&!_0x4ebd12['latestReview'][_0x355f51(0x18d)])throw new Error(_0x355f51(0x1d9)+_0x4ebd12[_0x355f51(0x1db)]);await _0x2e0bf4[_0x355f51(0x209)](createChecklistItem,_0x2452c6,_0x581bf9);const _0x2d5475=await getFeature(_0x2452c6);console[_0x355f51(0x22d)](_0x355f51(0x200)),displayFeature(_0x2d5475,_0x2d5475['checklistItems']);}export async function featureEditScenario(_0x56be05,_0x1bc9bd){const _0x56b4d2=_0x5efecc,_0x4c75f4={'OedDm':function(_0x1ed569,_0x3fca71){return _0x1ed569(_0x3fca71);},'AdkHp':_0x56b4d2(0x219),'XBjAc':'\x0aAvailable\x20scenarios:','KppCM':function(_0x5413a4,_0x1469a2){return _0x5413a4+_0x1469a2;},'EpGzN':function(_0x4ee4fe,_0x4724c8,_0x21ae59,_0x59d2dc){return _0x4ee4fe(_0x4724c8,_0x21ae59,_0x59d2dc);},'pzXem':function(_0x32ce09,_0x15617d,_0x4f1561){return _0x32ce09(_0x15617d,_0x4f1561);}},_0x56e5aa=_0x1bc9bd['id']||await getActiveFeatureId();!_0x56e5aa&&(console['error'](_0x56b4d2(0x225)),console[_0x56b4d2(0x1a3)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x474b83=await _0x4c75f4[_0x56b4d2(0x17f)](getFeature,_0x56e5aa);_0x474b83['latestReview']&&!_0x474b83[_0x56b4d2(0x1f4)][_0x56b4d2(0x18d)]&&(console[_0x56b4d2(0x1a3)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x56b4d2(0x1a3)](_0x56b4d2(0x193)),console['error']('\x20\x20'+_0x474b83[_0x56b4d2(0x1db)]),process[_0x56b4d2(0x1ce)](0x1));const _0x5e24c8=_0x474b83['checklistItems']||[];_0x5e24c8['length']===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x1bc9bd['scenario']===undefined){console[_0x56b4d2(0x1a3)](_0x4c75f4['AdkHp']),console['log'](_0x4c75f4[_0x56b4d2(0x231)]);for(let _0x2b7333=0x0;_0x2b7333<_0x5e24c8['length'];_0x2b7333++){console[_0x56b4d2(0x22d)]('\x20\x20'+_0x4c75f4[_0x56b4d2(0x1dd)](_0x2b7333,0x1)+'.\x20'+_0x5e24c8[_0x2b7333]['description']);}process[_0x56b4d2(0x1ce)](0x1);}const _0x8fdf3d=_0x1bc9bd['scenario']-0x1;if(_0x8fdf3d<0x0||_0x8fdf3d>=_0x5e24c8['length']){console[_0x56b4d2(0x1a3)](_0x56b4d2(0x1da)+_0x1bc9bd['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x5e24c8[_0x56b4d2(0x18a)]+'\x20scenarios.'),console['log'](_0x4c75f4['XBjAc']);for(let _0x5a8772=0x0;_0x5a8772<_0x5e24c8[_0x56b4d2(0x18a)];_0x5a8772++){console[_0x56b4d2(0x22d)]('\x20\x20'+(_0x5a8772+0x1)+'.\x20'+_0x5e24c8[_0x5a8772][_0x56b4d2(0x22a)]);}process['exit'](0x1);}const _0x1f6ed3=_0x5e24c8[_0x8fdf3d];await _0x4c75f4[_0x56b4d2(0x1b0)](updateChecklistItem,_0x56e5aa,_0x1f6ed3['id'],{'description':_0x56be05});const _0x43c7a1=await getFeature(_0x56e5aa);console[_0x56b4d2(0x22d)](_0x56b4d2(0x1d3)),_0x4c75f4['pzXem'](displayFeature,_0x43c7a1,_0x43c7a1['checklistItems']);}async function downloadFeedbackImage(_0x6e92b,_0x5df0fb){const _0x4bfad3=_0x5efecc,_0x3d503d={'cEkcX':function(_0x2b6558,_0x449386,_0x3ca04b){return _0x2b6558(_0x449386,_0x3ca04b);},'GSdsl':function(_0x34da97,_0x1ce714){return _0x34da97(_0x1ce714);}};try{const _0x1a380a=join(getRangerDir(),'feedback-images');await _0x3d503d[_0x4bfad3(0x249)](mkdir,_0x1a380a,{'recursive':!![]});const _0x574f6c=join(_0x1a380a,'comment_'+_0x5df0fb+'.png'),_0x166c84=await _0x3d503d['GSdsl'](fetch,_0x6e92b);if(!_0x166c84['ok'])return null;const _0x150d7e=Buffer['from'](await _0x166c84['arrayBuffer']());return await writeFile(_0x574f6c,_0x150d7e),_0x574f6c;}catch{return null;}}export async function featureGetReview(_0x185cd6){const _0x1fe8ef=_0x5efecc,_0x55c784={'iLSee':function(_0x642747){return _0x642747();},'YrjSy':_0x1fe8ef(0x1fa),'NnwFe':function(_0x50a059,_0x571299){return _0x50a059===_0x571299;},'GAaYA':_0x1fe8ef(0x1fd),'pICmN':function(_0xcfa591,_0x504588){return _0xcfa591<_0x504588;},'WdyAi':function(_0x1aa49f,_0x21b06d){return _0x1aa49f>_0x21b06d;},'vPNPn':function(_0x2bbf44,_0xee7a39){return _0x2bbf44+_0xee7a39;},'rrvGZ':'numeric','VcEgs':function(_0x222a91,_0x3dce9b){return _0x222a91>=_0x3dce9b;}},_0x3159e3=_0x185cd6||await _0x55c784['iLSee'](getActiveFeatureId);if(!_0x3159e3)throw new Error(_0x55c784[_0x1fe8ef(0x1f9)]);const _0x325f71=await getFeature(_0x3159e3),{items:_0x25384b}=await getActionItems(_0x3159e3);console[_0x1fe8ef(0x22d)]('\x0a📋\x20Feedback\x20for:\x20'+_0x325f71[_0x1fe8ef(0x1a4)]+'\x20('+_0x325f71['id']+')\x0a');if(_0x55c784[_0x1fe8ef(0x185)](_0x25384b['length'],0x0)){console['log'](_0x55c784['GAaYA']);return;}for(let _0x352b5a=0x0;_0x55c784['pICmN'](_0x352b5a,_0x25384b[_0x1fe8ef(0x18a)]);_0x352b5a++){const _0x3441b3=_0x25384b[_0x352b5a],_0x39ae2a=_0x55c784[_0x1fe8ef(0x1b6)](_0x3441b3[_0x1fe8ef(0x206)],0x1)?'\x20(v'+_0x3441b3[_0x1fe8ef(0x206)]+')':'',_0x59a883=await getItemFeedback(_0x3159e3,_0x3441b3['id']);if(_0x59a883[_0x1fe8ef(0x228)]['length']>0x0){console[_0x1fe8ef(0x22d)](_0x1fe8ef(0x195)+_0x55c784['vPNPn'](_0x352b5a,0x1)+':\x20\x22'+_0x3441b3[_0x1fe8ef(0x22a)]+'\x22'+_0x39ae2a+_0x1fe8ef(0x1b9)+_0x59a883[_0x1fe8ef(0x228)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x2ccb33 of _0x59a883['unaddressedComments']){const _0x415274=new Date(_0x2ccb33['createdAt'])[_0x1fe8ef(0x1c1)]('en-US',{'month':'short','day':_0x55c784[_0x1fe8ef(0x18f)]}),_0x29b4cd=_0x2ccb33['authorName']||_0x2ccb33['authorEmail']||'Unknown';console['log']('\x20\x20💬\x20'+_0x29b4cd+'\x20('+_0x415274+_0x1fe8ef(0x24e)+_0x2ccb33[_0x1fe8ef(0x1ad)]+'\x22');if(_0x2ccb33[_0x1fe8ef(0x223)]){const _0x3573d9=await downloadFeedbackImage(_0x2ccb33['assetUrl'],_0x2ccb33['id']);_0x3573d9&&console[_0x1fe8ef(0x22d)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x3573d9);}if(_0x2ccb33['domRef']){const _0x5f0028=_0x2ccb33[_0x1fe8ef(0x221)][_0x1fe8ef(0x211)][_0x1fe8ef(0x1d8)](_0x1fe8ef(0x19e))['pop']()?.['split'](':')[0x0]||'element',_0x58b044=_0x2ccb33[_0x1fe8ef(0x221)][_0x1fe8ef(0x1c2)]?'\x20\x22'+_0x2ccb33['domRef'][_0x1fe8ef(0x1c2)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x5f0028+'>'+_0x58b044),console[_0x1fe8ef(0x22d)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x2ccb33[_0x1fe8ef(0x221)][_0x1fe8ef(0x211)]);}else{if(_0x2ccb33[_0x1fe8ef(0x19f)]){const _0x41300c=_0x2ccb33['spatial'][_0x1fe8ef(0x1a1)];_0x55c784[_0x1fe8ef(0x185)](_0x2ccb33[_0x1fe8ef(0x19f)][_0x1fe8ef(0x226)],_0x1fe8ef(0x1a8))&&_0x55c784[_0x1fe8ef(0x1c5)](_0x41300c['length'],0x2)?console['log'](_0x1fe8ef(0x22c)+_0x41300c[0x0]['toFixed'](0x2)+',\x20'+_0x41300c[0x1]['toFixed'](0x2)+')'):console[_0x1fe8ef(0x22d)](_0x1fe8ef(0x24f)+_0x2ccb33['spatial'][_0x1fe8ef(0x226)]+_0x1fe8ef(0x1b7)+_0x41300c[_0x1fe8ef(0x20c)](_0x1fe1f6=>_0x1fe1f6['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x59a883[_0x1fe8ef(0x217)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x1c6175 of _0x59a883['canonicalFlow'][_0x1fe8ef(0x1d8)]('\x0a')){console['log'](_0x1fe8ef(0x23d)+_0x1c6175);}}}else console[_0x1fe8ef(0x22d)]('Scenario\x20'+(_0x352b5a+0x1)+':\x20\x22'+_0x3441b3[_0x1fe8ef(0x22a)]+'\x22'+_0x39ae2a+_0x1fe8ef(0x24b)),console[_0x1fe8ef(0x22d)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x1fe8ef(0x22d)]('');}}export async function featureDelete(_0xb230da){const _0x320016=_0x5efecc,_0xc2f6b7={'GncbI':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x3d3655=_0xb230da||await getActiveFeatureId();if(!_0x3d3655)throw new Error(_0x320016(0x1fa));const _0xeb6a58=await getFeature(_0x3d3655);await softDeleteFeature(_0x3d3655),console[_0x320016(0x22d)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xeb6a58['name']+'\x20('+_0x3d3655+')'),console['log'](_0xc2f6b7['GncbI']+_0x3d3655);}export async function featureRestore(_0x210ccd){const _0x3b649b=_0x5efecc,_0xb0ad9c={'iNSTL':function(_0x409ef7,_0x57d7cb,_0x120913){return _0x409ef7(_0x57d7cb,_0x120913);}};await restoreFeature(_0x210ccd);const _0x1ecdda=await getFeature(_0x210ccd);console[_0x3b649b(0x22d)](_0x3b649b(0x23c)+_0x1ecdda['name']+'\x20('+_0x210ccd+')'),_0xb0ad9c['iNSTL'](displayFeature,_0x1ecdda,_0x1ecdda['checklistItems']);}
@@ -1 +1 @@
1
- (function(_0x231ea5,_0x55f1ba){const _0x1dcde7=_0xcd9c,_0x3c3c75=_0x231ea5();while(!![]){try{const _0x48eb2b=parseInt(_0x1dcde7(0xbe))/0x1*(parseInt(_0x1dcde7(0xc9))/0x2)+-parseInt(_0x1dcde7(0xc1))/0x3*(-parseInt(_0x1dcde7(0xbd))/0x4)+-parseInt(_0x1dcde7(0xc0))/0x5*(-parseInt(_0x1dcde7(0xba))/0x6)+parseInt(_0x1dcde7(0xb8))/0x7*(parseInt(_0x1dcde7(0xb9))/0x8)+parseInt(_0x1dcde7(0xc3))/0x9*(parseInt(_0x1dcde7(0xbc))/0xa)+parseInt(_0x1dcde7(0xc6))/0xb+-parseInt(_0x1dcde7(0xc4))/0xc*(parseInt(_0x1dcde7(0xbf))/0xd);if(_0x48eb2b===_0x55f1ba)break;else _0x3c3c75['push'](_0x3c3c75['shift']());}catch(_0x2a75d4){_0x3c3c75['push'](_0x3c3c75['shift']());}}}(_0x460c,0x4e033));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};let cancellationHandlersInstalled=![];function _0x460c(){const _0x25d003=['172675uwhKHN','363177aSKcOM','SIGINT','56601yzDPWD','10670472SrejdR','Unknown\x20hook:\x20','4939869NwIiMy','once','Valid\x20hooks:\x20','69412KhjIvI','error','7CQRxOh','895952MwwNth','48ghlfaF','exit','40McLwxx','8vWilgJ','3XyRThG','13mzXuMM'];_0x460c=function(){return _0x25d003;};return _0x460c();}function _0xcd9c(_0x3a161d,_0x5f8b98){_0x3a161d=_0x3a161d-0xb7;const _0x460cf1=_0x460c();let _0xcd9c88=_0x460cf1[_0x3a161d];return _0xcd9c88;}function installCancellationHandlers(){const _0x21cd16=_0xcd9c;if(cancellationHandlersInstalled)return;const _0x4f1d41=()=>{process['exit'](0x0);};process[_0x21cd16(0xc7)](_0x21cd16(0xc2),_0x4f1d41),process['once']('SIGTERM',_0x4f1d41),process[_0x21cd16(0xc7)]('SIGHUP',_0x4f1d41),cancellationHandlersInstalled=!![];}export async function hook(_0x5997c9,_0x39af45){const _0x5cd1bf=_0xcd9c;installCancellationHandlers();const _0x41b453=HOOKS[_0x5997c9];if(!_0x41b453){const _0x2dc3f7=Object['keys'](HOOKS)['join'](',\x20');console[_0x5cd1bf(0xb7)](_0x5cd1bf(0xc5)+_0x5997c9),console['error'](_0x5cd1bf(0xc8)+_0x2dc3f7),process[_0x5cd1bf(0xbb)](0x1);}await _0x41b453(_0x39af45);}
1
+ (function(_0x231f97,_0x10ccb6){const _0xdb2e61=_0x25ca,_0xf49ed8=_0x231f97();while(!![]){try{const _0x2eec69=-parseInt(_0xdb2e61(0xbc))/0x1*(-parseInt(_0xdb2e61(0xc3))/0x2)+parseInt(_0xdb2e61(0xc4))/0x3+-parseInt(_0xdb2e61(0xc0))/0x4+-parseInt(_0xdb2e61(0xbf))/0x5+-parseInt(_0xdb2e61(0xc5))/0x6*(-parseInt(_0xdb2e61(0xb6))/0x7)+-parseInt(_0xdb2e61(0xc6))/0x8*(parseInt(_0xdb2e61(0xc8))/0x9)+-parseInt(_0xdb2e61(0xbe))/0xa*(-parseInt(_0xdb2e61(0xb9))/0xb);if(_0x2eec69===_0x10ccb6)break;else _0xf49ed8['push'](_0xf49ed8['shift']());}catch(_0x1dcabb){_0xf49ed8['push'](_0xf49ed8['shift']());}}}(_0x3955,0xa13ad));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x25ca(_0x43645d,_0x2c5017){_0x43645d=_0x43645d-0xb4;const _0x3955b2=_0x3955();let _0x25ca4b=_0x3955b2[_0x43645d];return _0x25ca4b;}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};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x2976c0=_0x25ca,_0x5248e9={'eLAOt':_0x2976c0(0xbb),'mYwTL':_0x2976c0(0xba)};if(cancellationHandlersInstalled)return;const _0x272e67=()=>{const _0x1dedd0=_0x2976c0;process[_0x1dedd0(0xb4)](0x0);};process['once'](_0x5248e9['eLAOt'],_0x272e67),process[_0x2976c0(0xbd)](_0x2976c0(0xc1),_0x272e67),process['once'](_0x5248e9[_0x2976c0(0xb5)],_0x272e67),cancellationHandlersInstalled=!![];}function _0x3955(){const _0x455604=['5TKejhQ','once','237590YaYCpZ','3527720VTWqZM','4985408DEFNVY','SIGTERM','JFugs','404078ieobCr','411654IylawP','338466Eojpao','32clQkyb','Valid\x20hooks:\x20','719622lzJZZw','exit','mYwTL','77cBPRXJ','join','xPuhf','539QTojmh','SIGHUP','SIGINT'];_0x3955=function(){return _0x455604;};return _0x3955();}export async function hook(_0x5cc179,_0x27c9bb){const _0x46766a=_0x25ca,_0x2fec15={'JFugs':function(_0x3d6915){return _0x3d6915();},'xPuhf':function(_0x1ed65c,_0x1581d8){return _0x1ed65c(_0x1581d8);}};_0x2fec15[_0x46766a(0xc2)](installCancellationHandlers);const _0x307849=HOOKS[_0x5cc179];if(!_0x307849){const _0x10118e=Object['keys'](HOOKS)[_0x46766a(0xb7)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x5cc179),console['error'](_0x46766a(0xc7)+_0x10118e),process[_0x46766a(0xb4)](0x1);}await _0x2fec15[_0x46766a(0xb8)](_0x307849,_0x27c9bb);}
@@ -1 +1 @@
1
- function _0x5447(_0x475d4b,_0x231bf4){_0x475d4b=_0x475d4b-0xdf;const _0x1da71e=_0x1da7();let _0x5447e6=_0x1da71e[_0x475d4b];return _0x5447e6;}const _0x35e6c5=_0x5447;(function(_0x482383,_0x150834){const _0x2891f9=_0x5447,_0x2895ae=_0x482383();while(!![]){try{const _0x164a19=-parseInt(_0x2891f9(0xe4))/0x1*(-parseInt(_0x2891f9(0xec))/0x2)+parseInt(_0x2891f9(0xe7))/0x3*(parseInt(_0x2891f9(0xe8))/0x4)+-parseInt(_0x2891f9(0xe3))/0x5*(parseInt(_0x2891f9(0xe9))/0x6)+-parseInt(_0x2891f9(0xe5))/0x7*(-parseInt(_0x2891f9(0xee))/0x8)+parseInt(_0x2891f9(0xe0))/0x9*(-parseInt(_0x2891f9(0xe2))/0xa)+-parseInt(_0x2891f9(0xed))/0xb*(parseInt(_0x2891f9(0xdf))/0xc)+-parseInt(_0x2891f9(0xea))/0xd*(-parseInt(_0x2891f9(0xeb))/0xe);if(_0x164a19===_0x150834)break;else _0x2895ae['push'](_0x2895ae['shift']());}catch(_0xad07aa){_0x2895ae['push'](_0x2895ae['shift']());}}}(_0x1da7,0x869be));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x35e6c5(0xe1);function _0x1da7(){const _0x3d291a=['2636293Xylvvg','40Saizph','36twKakA','90xOyMQr','\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.','1028170JgGasw','518845XZmUAK','118TVZgKc','774893EkBSbJ','session_id','147171dFraYx','16LYuBLn','48jsEDfH','2939690ehakbP','140uhRqUW','1994sblKqd'];_0x1da7=function(){return _0x3d291a;};return _0x1da7();}export async function autoPrompt(){const _0x968688=_0x35e6c5,_0x652e85={'mrzdh':function(_0x126fb2){return _0x126fb2();},'bfFDD':function(_0x206ba3,_0x57ead9){return _0x206ba3(_0x57ead9);}};if(resolveHookMode()==='off')return;const _0x1eacf5=await _0x652e85['mrzdh'](readHookInput),_0x1d0712=_0x1eacf5?.[_0x968688(0xe6)];if(!_0x1d0712)return;if(isSessionEnabled(_0x1d0712)||_0x652e85['bfFDD'](hasSessionBeenPrompted,_0x1d0712))return;markSessionPrompted(_0x1d0712),console['log'](AUTO_PROMPT_TEXT);}
1
+ (function(_0x37f7af,_0x555e8c){const _0x4c57ea=_0x2ca2,_0xec5441=_0x37f7af();while(!![]){try{const _0xaa2bef=parseInt(_0x4c57ea(0x177))/0x1+parseInt(_0x4c57ea(0x17b))/0x2*(parseInt(_0x4c57ea(0x181))/0x3)+parseInt(_0x4c57ea(0x183))/0x4+-parseInt(_0x4c57ea(0x178))/0x5*(-parseInt(_0x4c57ea(0x176))/0x6)+parseInt(_0x4c57ea(0x182))/0x7+-parseInt(_0x4c57ea(0x180))/0x8*(-parseInt(_0x4c57ea(0x17d))/0x9)+parseInt(_0x4c57ea(0x17a))/0xa*(-parseInt(_0x4c57ea(0x17f))/0xb);if(_0xaa2bef===_0x555e8c)break;else _0xec5441['push'](_0xec5441['shift']());}catch(_0x26b0fc){_0xec5441['push'](_0xec5441['shift']());}}}(_0x1e10,0xcdfe2));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x1e10(){const _0x3c333e=['2802LQrCjW','178302eALXga','10655AooGUD','log','20CCjJDd','2cWGDdl','HwgpH','10683mdlhwp','session_id','10618366xoztME','1832ZBwdvU','3744282NGrbwi','281225tahbpI','163148ofiFBv','ZPUUN'];_0x1e10=function(){return _0x3c333e;};return _0x1e10();}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';function _0x2ca2(_0x9a752,_0x37721d){_0x9a752=_0x9a752-0x175;const _0x1e101b=_0x1e10();let _0x2ca2ed=_0x1e101b[_0x9a752];return _0x2ca2ed;}export async function autoPrompt(){const _0xffcc5d=_0x2ca2,_0x192349={'NuMpG':function(_0x1ed7ef,_0x1595b4){return _0x1ed7ef===_0x1595b4;},'HwgpH':function(_0x5d3b1e){return _0x5d3b1e();},'TTQTT':'off','ZPUUN':function(_0x5aa55a,_0x1d3790){return _0x5aa55a(_0x1d3790);}};if(_0x192349['NuMpG'](_0x192349[_0xffcc5d(0x17c)](resolveHookMode),_0x192349['TTQTT']))return;const _0x3502f0=await readHookInput(),_0x3d480d=_0x3502f0?.[_0xffcc5d(0x17e)];if(!_0x3d480d)return;if(_0x192349['ZPUUN'](isSessionEnabled,_0x3d480d)||hasSessionBeenPrompted(_0x3d480d))return;_0x192349[_0xffcc5d(0x175)](markSessionPrompted,_0x3d480d),console[_0xffcc5d(0x179)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x54f64a,_0xbb1bbe){const _0xb0936c=_0x3d22,_0x26a93e=_0x54f64a();while(!![]){try{const _0x4786b6=-parseInt(_0xb0936c(0x16a))/0x1+-parseInt(_0xb0936c(0x15c))/0x2+-parseInt(_0xb0936c(0x15b))/0x3*(parseInt(_0xb0936c(0x15d))/0x4)+parseInt(_0xb0936c(0x162))/0x5+-parseInt(_0xb0936c(0x158))/0x6*(-parseInt(_0xb0936c(0x161))/0x7)+-parseInt(_0xb0936c(0x167))/0x8*(parseInt(_0xb0936c(0x169))/0x9)+parseInt(_0xb0936c(0x163))/0xa*(parseInt(_0xb0936c(0x160))/0xb);if(_0x4786b6===_0xbb1bbe)break;else _0x26a93e['push'](_0x26a93e['shift']());}catch(_0xc5dd9b){_0x26a93e['push'](_0x26a93e['shift']());}}}(_0x20b4,0x5e63e));function _0x3d22(_0x1a8bb3,_0x34022b){_0x1a8bb3=_0x1a8bb3-0x158;const _0x20b4b6=_0x20b4();let _0x3d2253=_0x20b4b6[_0x1a8bb3];return _0x3d2253;}function _0x20b4(){const _0x50f208=['fPnhT','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','ZdYdH','8rjozok','env','5906997xTFrrL','92968knDPHW','330txDKmT','CLAUDE_SESSION_ID','yJYbB','6NrICyp','581868RCbJxU','1297192DQwCpv','rPzfr','master','10797193dHLkqw','76846mneXVU','2450500JjRkAq','10baoNMY'];_0x20b4=function(){return _0x50f208;};return _0x20b4();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x4d8519){const _0x308709=_0x3d22,_0x436433={'rPzfr':function(_0x20984e,_0x50c8c1){return _0x20984e(_0x50c8c1);},'fPnhT':function(_0x388689,_0x55f10b){return _0x388689!==_0x55f10b;},'ZdYdH':function(_0x1b5216,_0xd5cb4f){return _0x1b5216(_0xd5cb4f);},'NJLmx':function(_0x31915a,_0x5f5760){return _0x31915a!==_0x5f5760;},'yJYbB':function(_0x4a509a,_0x7ee68f){return _0x4a509a!==_0x7ee68f;}},_0x188e6b=_0x4d8519||process[_0x308709(0x168)][_0x308709(0x159)]||'';_0x188e6b&&_0x436433[_0x308709(0x15e)](disableSession,_0x188e6b);const _0xc43736=getCurrentBranch();_0xc43736&&_0xc43736!=='main'&&_0x436433[_0x308709(0x164)](_0xc43736,'master')&&disableBranch(_0xc43736),_0x436433[_0x308709(0x166)](printBlock,_0x308709(0x165)+(_0xc43736&&_0x436433['NJLmx'](_0xc43736,'main')&&_0x436433[_0x308709(0x15a)](_0xc43736,_0x308709(0x15f))?'\x20and\x20branch\x20\x27'+_0xc43736+'\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(_0x5b16e8,_0x12cd48){const _0x315e23=_0x54c7,_0xb95800=_0x5b16e8();while(!![]){try{const _0x5cdbf5=-parseInt(_0x315e23(0x147))/0x1*(parseInt(_0x315e23(0x143))/0x2)+parseInt(_0x315e23(0x142))/0x3+parseInt(_0x315e23(0x146))/0x4+parseInt(_0x315e23(0x139))/0x5*(-parseInt(_0x315e23(0x13c))/0x6)+parseInt(_0x315e23(0x13f))/0x7+-parseInt(_0x315e23(0x13a))/0x8*(parseInt(_0x315e23(0x149))/0x9)+parseInt(_0x315e23(0x13b))/0xa*(-parseInt(_0x315e23(0x13d))/0xb);if(_0x5cdbf5===_0x12cd48)break;else _0xb95800['push'](_0xb95800['shift']());}catch(_0x5e1c78){_0xb95800['push'](_0xb95800['shift']());}}}(_0x2854,0x1bf93));function _0x54c7(_0x4857cb,_0x59521e){_0x4857cb=_0x4857cb-0x139;const _0x285489=_0x2854();let _0x54c733=_0x285489[_0x4857cb];return _0x54c733;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x2854(){const _0x306a07=['DZzoX','931203mncGwq','OWBDe','vNBNf','442341eRryuw','34382qCyoHL','smNit','\x20and\x20branch\x20\x27','846200BbMAQp','2KllpJH','hApbE','9NYBXpw','master','5BppRPH','538408MdnXZz','119350GDbBPt','365604HBHQmK','198wlAtvW'];_0x2854=function(){return _0x306a07;};return _0x2854();}import{printBlock}from'./output.js';export async function disable(_0x2c6c1a){const _0x11f87b=_0x54c7,_0x130f8d={'ezeux':function(_0x1b7b6f,_0x1c1502){return _0x1b7b6f(_0x1c1502);},'OWBDe':function(_0x47443c){return _0x47443c();},'DZzoX':'main','AjHyP':function(_0x9b9913,_0x46c8ea){return _0x9b9913!==_0x46c8ea;},'smNit':_0x11f87b(0x14a),'vNBNf':function(_0xca9b03,_0x820ab2){return _0xca9b03(_0x820ab2);},'XMFFG':function(_0x2c3803,_0x49689a){return _0x2c3803(_0x49689a);},'hApbE':function(_0x3ec2f5,_0x4c87b9){return _0x3ec2f5!==_0x4c87b9;}},_0x17e91c=_0x2c6c1a||process['env']['CLAUDE_SESSION_ID']||'';_0x17e91c&&_0x130f8d['ezeux'](disableSession,_0x17e91c);const _0x1fc8f4=_0x130f8d[_0x11f87b(0x140)](getCurrentBranch);_0x1fc8f4&&_0x1fc8f4!==_0x130f8d[_0x11f87b(0x13e)]&&_0x130f8d['AjHyP'](_0x1fc8f4,_0x130f8d[_0x11f87b(0x144)])&&_0x130f8d[_0x11f87b(0x141)](disableBranch,_0x1fc8f4),_0x130f8d['XMFFG'](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x1fc8f4&&_0x1fc8f4!==_0x130f8d[_0x11f87b(0x13e)]&&_0x130f8d[_0x11f87b(0x148)](_0x1fc8f4,_0x130f8d['smNit'])?_0x11f87b(0x145)+_0x1fc8f4+'\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(_0x35129f,_0x46439d){const _0x313bcb=_0x833b,_0x718acc=_0x35129f();while(!![]){try{const _0x456fbf=-parseInt(_0x313bcb(0xfa))/0x1*(-parseInt(_0x313bcb(0x10d))/0x2)+-parseInt(_0x313bcb(0x110))/0x3*(-parseInt(_0x313bcb(0xfd))/0x4)+parseInt(_0x313bcb(0x106))/0x5*(-parseInt(_0x313bcb(0x10c))/0x6)+-parseInt(_0x313bcb(0x102))/0x7*(parseInt(_0x313bcb(0xfe))/0x8)+parseInt(_0x313bcb(0x100))/0x9+parseInt(_0x313bcb(0xf9))/0xa*(parseInt(_0x313bcb(0x10b))/0xb)+parseInt(_0x313bcb(0x108))/0xc;if(_0x456fbf===_0x46439d)break;else _0x718acc['push'](_0x718acc['shift']());}catch(_0x6b9bfd){_0x718acc['push'](_0x718acc['shift']());}}}(_0x2b69,0xc0fea));function _0x833b(_0x1f9447,_0x412907){_0x1f9447=_0x1f9447-0xf8;const _0x2b69ac=_0x2b69();let _0x833b65=_0x2b69ac[_0x1f9447];return _0x833b65;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x452b23){const _0x234841=_0x833b,_0x332989={'sIhMt':function(_0x83ccaf,_0x522912){return _0x83ccaf(_0x522912);},'WJHdi':function(_0x7c4d52){return _0x7c4d52();},'wDgfE':function(_0x14f00a,_0x551d74){return _0x14f00a(_0x551d74);},'RXhvf':'main','OBGdK':function(_0x38ccaf,_0x462e37){return _0x38ccaf!==_0x462e37;},'uepLM':'master','EjyeI':function(_0x4584b5,_0x29d447){return _0x4584b5(_0x29d447);}},_0x194462=_0x452b23||process[_0x234841(0x104)]['CLAUDE_SESSION_ID']||'',_0x568049=_0x332989['sIhMt'](Boolean,_0x452b23),_0x85ab31=await getToken();if(!_0x85ab31){const _0x14094c=_0x568049?_0x234841(0x103):_0x234841(0x105),_0x438ae9=_0x568049?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x234841(0x10f);printBlock(_0x234841(0x10e)+_0x14094c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x438ae9);return;}try{await _0x332989[_0x234841(0xff)](update);}catch{}_0x194462&&_0x332989[_0x234841(0xf8)](enableSession,_0x194462);const _0x37b3e8=getCurrentBranch(),_0x11f6de=_0x37b3e8&&_0x37b3e8!==_0x332989['RXhvf']&&_0x332989[_0x234841(0xfb)](_0x37b3e8,_0x332989[_0x234841(0x107)])?_0x234841(0x10a)+_0x37b3e8+_0x234841(0x109):'',_0x2af709=getRangerSkillContent();_0x332989[_0x234841(0xfc)](printBlock,'#\x20RANGER\x20ENABLED'+_0x11f6de+_0x234841(0x101)+_0x2af709+'\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`.');}function _0x2b69(){const _0x5e390e=['\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','\x0a\x0a**Branch\x20\x27','2634797GclAnD','50178dNlFuT','4796EzvaBF','#\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`','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','3esoQuS','wDgfE','30AifAaO','73mMTzQP','OBGdK','EjyeI','2485412OypGNf','8GasRTD','WJHdi','7561044mNFPIc','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','4383393nlsufU','ranger\x20setup\x20--opencode','env','ranger\x20setup','565cjQvUD','uepLM','79440pSOZub'];_0x2b69=function(){return _0x5e390e;};return _0x2b69();}
1
+ (function(_0x3811fe,_0x39b7ca){const _0x400965=_0x187e,_0x4027a8=_0x3811fe();while(!![]){try{const _0x1dcea1=-parseInt(_0x400965(0x129))/0x1+parseInt(_0x400965(0x11e))/0x2*(parseInt(_0x400965(0x121))/0x3)+-parseInt(_0x400965(0x127))/0x4*(parseInt(_0x400965(0x12a))/0x5)+parseInt(_0x400965(0x119))/0x6+parseInt(_0x400965(0x12c))/0x7*(-parseInt(_0x400965(0x128))/0x8)+parseInt(_0x400965(0x11f))/0x9*(-parseInt(_0x400965(0x12d))/0xa)+parseInt(_0x400965(0x11c))/0xb*(parseInt(_0x400965(0x118))/0xc);if(_0x1dcea1===_0x39b7ca)break;else _0x4027a8['push'](_0x4027a8['shift']());}catch(_0x29247f){_0x4027a8['push'](_0x4027a8['shift']());}}}(_0x511a,0x485bf));function _0x187e(_0x581130,_0x1f937e){_0x581130=_0x581130-0x115;const _0x511aad=_0x511a();let _0x187e96=_0x511aad[_0x581130];return _0x187e96;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x511a(){const _0x246584=['main','\x0a\x0a**Branch\x20\x27','Jxexm','rHETk','99492vZbNha','2382504Oqutjb','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','master','1045jTHLVF','\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`.','4oxltdv','235575cMdEEt','env','230001ipcyPQ','CLAUDE_SESSION_ID','aJIRD','ranger\x20setup','#\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`','DeMRU','60placlY','8VqpxZl','477779PaYXNq','23755InIdZQ','ranger\x20setup\x20--opencode','3082002MKQAUW','20wyoHfv'];_0x511a=function(){return _0x246584;};return _0x511a();}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x44d448){const _0x36d18a=_0x187e,_0x2178f9={'frwoH':function(_0x5c8dca,_0x202e4b){return _0x5c8dca(_0x202e4b);},'rHETk':_0x36d18a(0x11a),'Jxexm':function(_0x5aad0c){return _0x5aad0c();},'DeMRU':function(_0x575f4d,_0x27c190){return _0x575f4d(_0x27c190);},'aJIRD':function(_0x4ad689){return _0x4ad689();}},_0x190581=_0x44d448||process[_0x36d18a(0x120)][_0x36d18a(0x122)]||'',_0xd81171=_0x2178f9['frwoH'](Boolean,_0x44d448),_0x3012c6=await getToken();if(!_0x3012c6){const _0x364f1c=_0xd81171?_0x36d18a(0x12b):_0x36d18a(0x124),_0x41a5a9=_0xd81171?_0x2178f9[_0x36d18a(0x117)]:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock(_0x36d18a(0x125)+_0x364f1c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x41a5a9);return;}try{await _0x2178f9[_0x36d18a(0x116)](update);}catch{}_0x190581&&_0x2178f9[_0x36d18a(0x126)](enableSession,_0x190581);const _0x396767=_0x2178f9[_0x36d18a(0x123)](getCurrentBranch),_0x4774ac=_0x396767&&_0x396767!==_0x36d18a(0x12e)&&_0x396767!==_0x36d18a(0x11b)?_0x36d18a(0x115)+_0x396767+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x9c9647=getRangerSkillContent();_0x2178f9['DeMRU'](printBlock,'#\x20RANGER\x20ENABLED'+_0x4774ac+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x9c9647+_0x36d18a(0x11d));}
@@ -1 +1 @@
1
- (function(_0x482333,_0x18a66a){const _0x3fd1fd=_0xe437,_0x4cce8c=_0x482333();while(!![]){try{const _0x297738=parseInt(_0x3fd1fd(0x86))/0x1*(-parseInt(_0x3fd1fd(0x8b))/0x2)+-parseInt(_0x3fd1fd(0x88))/0x3*(-parseInt(_0x3fd1fd(0x89))/0x4)+-parseInt(_0x3fd1fd(0x83))/0x5*(-parseInt(_0x3fd1fd(0x8d))/0x6)+-parseInt(_0x3fd1fd(0x8c))/0x7+-parseInt(_0x3fd1fd(0x82))/0x8+parseInt(_0x3fd1fd(0x87))/0x9+-parseInt(_0x3fd1fd(0x8a))/0xa;if(_0x297738===_0x18a66a)break;else _0x4cce8c['push'](_0x4cce8c['shift']());}catch(_0x25c3ea){_0x4cce8c['push'](_0x4cce8c['shift']());}}}(_0xaea1,0xefdbe));import{printBlock,getEnabledSessionId}from'./output.js';function _0xe437(_0x10369a,_0x41756e){_0x10369a=_0x10369a-0x82;const _0xaea1b3=_0xaea1();let _0xe43709=_0xaea1b3[_0x10369a];return _0xe43709;}function _0xaea1(){const _0x48b3cc=['1058544jUwUMa','343400eObghN','55cIuOhh','===\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===','UoASt','41941CJmkvx','8211636xkznuO','3uwTcme','4259624MSSXQn','10516120Qlafzd','32AgeRmP','8189433PmaQuI'];_0xaea1=function(){return _0x48b3cc;};return _0xaea1();}export async function exitPlanMode(_0x5993a3){const _0x1548dd=_0xe437,_0x21e71b={'UoASt':function(_0x1fe6c4,_0x2e858d){return _0x1fe6c4(_0x2e858d);}},_0x219833=await getEnabledSessionId(_0x5993a3);if(!_0x219833)return;_0x21e71b[_0x1548dd(0x85)](printBlock,_0x1548dd(0x84));}
1
+ function _0x542b(_0x4180df,_0xe069b4){_0x4180df=_0x4180df-0x91;const _0x24115c=_0x2411();let _0x542bdd=_0x24115c[_0x4180df];return _0x542bdd;}(function(_0x40d8ea,_0x5b40e5){const _0x1c515c=_0x542b,_0x4f9696=_0x40d8ea();while(!![]){try{const _0x3b1b01=-parseInt(_0x1c515c(0x94))/0x1+-parseInt(_0x1c515c(0x91))/0x2+parseInt(_0x1c515c(0x99))/0x3*(-parseInt(_0x1c515c(0x98))/0x4)+-parseInt(_0x1c515c(0x95))/0x5+-parseInt(_0x1c515c(0x92))/0x6+parseInt(_0x1c515c(0x93))/0x7+parseInt(_0x1c515c(0x9a))/0x8*(parseInt(_0x1c515c(0x96))/0x9);if(_0x3b1b01===_0x5b40e5)break;else _0x4f9696['push'](_0x4f9696['shift']());}catch(_0x13d432){_0x4f9696['push'](_0x4f9696['shift']());}}}(_0x2411,0x86c4c));function _0x2411(){const _0x4fc45d=['2404514upaGgQ','1078070yFvmop','1524940WwOJyV','117tMPXXQ','===\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===','2796QyDWOU','174vHGNJA','1286976ncMqQK','378552zgHLud','1619700aUNGLd'];_0x2411=function(){return _0x4fc45d;};return _0x2411();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3da233){const _0x42a636=_0x542b,_0x5c0a99=await getEnabledSessionId(_0x3da233);if(!_0x5c0a99)return;printBlock(_0x42a636(0x97));}
@@ -1 +1 @@
1
- (function(_0x376330,_0x2776fc){var _0x31b123=_0x1f23,_0x405de1=_0x376330();while(!![]){try{var _0x269cf4=parseInt(_0x31b123(0x14a))/0x1*(parseInt(_0x31b123(0x14d))/0x2)+parseInt(_0x31b123(0x14b))/0x3*(parseInt(_0x31b123(0x14c))/0x4)+parseInt(_0x31b123(0x143))/0x5*(parseInt(_0x31b123(0x145))/0x6)+parseInt(_0x31b123(0x149))/0x7+-parseInt(_0x31b123(0x144))/0x8+-parseInt(_0x31b123(0x148))/0x9*(parseInt(_0x31b123(0x146))/0xa)+parseInt(_0x31b123(0x147))/0xb;if(_0x269cf4===_0x2776fc)break;else _0x405de1['push'](_0x405de1['shift']());}catch(_0x5e296d){_0x405de1['push'](_0x405de1['shift']());}}}(_0x1803,0xa007e));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';function _0x1f23(_0x5e5ceb,_0x81150f){_0x5e5ceb=_0x5e5ceb-0x143;var _0x180390=_0x1803();var _0x1f238a=_0x180390[_0x5e5ceb];return _0x1f238a;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';function _0x1803(){var _0x13477e=['1847140vvaMkZ','55006xCYgmc','5765nzpXft','5891472tiVYHy','2454yIXhzK','5233330EmDSTJ','772508CbzBcj','9feSSLX','6189120lzfApl','1JfxjEL','3rSavrm'];_0x1803=function(){return _0x13477e;};return _0x1803();}
1
+ (function(_0x2a55ae,_0xe8eb1c){var _0x226e7c=_0x3b94,_0x1ab13f=_0x2a55ae();while(!![]){try{var _0x50ece6=parseInt(_0x226e7c(0x88))/0x1*(-parseInt(_0x226e7c(0x85))/0x2)+parseInt(_0x226e7c(0x84))/0x3+parseInt(_0x226e7c(0x83))/0x4*(parseInt(_0x226e7c(0x8a))/0x5)+-parseInt(_0x226e7c(0x89))/0x6+-parseInt(_0x226e7c(0x86))/0x7*(parseInt(_0x226e7c(0x87))/0x8)+-parseInt(_0x226e7c(0x8b))/0x9+parseInt(_0x226e7c(0x8d))/0xa*(parseInt(_0x226e7c(0x8c))/0xb);if(_0x50ece6===_0xe8eb1c)break;else _0x1ab13f['push'](_0x1ab13f['shift']());}catch(_0x17bb16){_0x1ab13f['push'](_0x1ab13f['shift']());}}}(_0x2d39,0x51e37));export{sessionStart}from'./sessionStart.js';function _0x2d39(){var _0x2e7c3b=['3321063nvGNwi','3839594vOEPFI','10ONGsCw','77996tfKodV','1623999yZfYJX','513580KQiLBM','7LfxGJD','193608faBLxJ','1UuKXnS','131808rtQpEi','30FmzvYB'];_0x2d39=function(){return _0x2e7c3b;};return _0x2d39();}export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x3b94(_0x2402a6,_0x1c910f){_0x2402a6=_0x2402a6-0x83;var _0x2d393c=_0x2d39();var _0x3b9447=_0x2d393c[_0x2402a6];return _0x3b9447;}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(_0x2eb116,_0x488c98){const _0x39833c=_0xa975,_0x194915=_0x2eb116();while(!![]){try{const _0x56bbf1=parseInt(_0x39833c(0x134))/0x1+-parseInt(_0x39833c(0x138))/0x2+-parseInt(_0x39833c(0x141))/0x3*(parseInt(_0x39833c(0x132))/0x4)+parseInt(_0x39833c(0x139))/0x5*(-parseInt(_0x39833c(0x140))/0x6)+parseInt(_0x39833c(0x13a))/0x7+parseInt(_0x39833c(0x133))/0x8*(parseInt(_0x39833c(0x13d))/0x9)+-parseInt(_0x39833c(0x136))/0xa*(-parseInt(_0x39833c(0x135))/0xb);if(_0x56bbf1===_0x488c98)break;else _0x194915['push'](_0x194915['shift']());}catch(_0x1ad843){_0x194915['push'](_0x194915['shift']());}}}(_0x4b8c,0x9844c));function _0xa975(_0x1231c8,_0x4fd591){_0x1231c8=_0x1231c8-0x132;const _0x4b8cc9=_0x4b8c();let _0xa97575=_0x4b8cc9[_0x1231c8];return _0xa97575;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0x4b8c(){const _0x14a514=['trim','1316492gJaRql','29040ODomgn','7384475FMlQwI','LelSv','session_id','18kXNVsK','HzxLY','log','864ZJzpxg','61689pjHQJi','parse','28wdhmAp','1514280JSkUtt','306422jKrzIf','2872727MHVOCG','20ueungf'];_0x4b8c=function(){return _0x14a514;};return _0x4b8c();}export function printBlock(_0xa871c4){const _0x55cbf6=_0xa975;console[_0x55cbf6(0x13f)](_0xa871c4);}export async function readHookInput(){const _0x264f0d=_0xa975;let _0x3b7174='';try{for await(const _0x3f5fc4 of process['stdin']){_0x3b7174+=_0x3f5fc4;}}catch{return null;}if(!_0x3b7174[_0x264f0d(0x137)]())return null;try{return JSON[_0x264f0d(0x142)](_0x3b7174);}catch{return null;}}export async function getEnabledSessionId(_0x54b4da){const _0x34a791=_0xa975,_0x2c1131={'HzxLY':function(_0x4da793,_0x2bb67c){return _0x4da793(_0x2bb67c);}};if(_0x54b4da)return isSessionEnabled(_0x54b4da)?_0x54b4da:null;const _0x58f886=await readHookInput(),_0x5509f9=_0x58f886?.[_0x34a791(0x13c)];if(!_0x5509f9||!_0x2c1131[_0x34a791(0x13e)](isSessionEnabled,_0x5509f9))return null;return _0x5509f9;}export async function getEnabledHookContext(_0x542278){const _0x21fb83=_0xa975,_0x3212ed={'LelSv':function(_0x1da8a9,_0x40e938){return _0x1da8a9(_0x40e938);}};if(_0x542278){if(!isSessionEnabled(_0x542278))return null;return{'sessionId':_0x542278,'input':{'session_id':_0x542278}};}const _0x1681a2=await readHookInput(),_0xd0fb29=_0x1681a2?.['session_id'];if(!_0xd0fb29||!_0x3212ed[_0x21fb83(0x13b)](isSessionEnabled,_0xd0fb29))return null;return{'sessionId':_0xd0fb29,'input':_0x1681a2};}
1
+ function _0x3abf(_0x37a96c,_0x2d661c){_0x37a96c=_0x37a96c-0x1c6;const _0x3b3224=_0x3b32();let _0x3abf10=_0x3b3224[_0x37a96c];return _0x3abf10;}(function(_0x34ea97,_0x4693c8){const _0x8435fc=_0x3abf,_0x1e5679=_0x34ea97();while(!![]){try{const _0x143229=parseInt(_0x8435fc(0x1c6))/0x1+-parseInt(_0x8435fc(0x1cd))/0x2+parseInt(_0x8435fc(0x1d1))/0x3+parseInt(_0x8435fc(0x1d0))/0x4+-parseInt(_0x8435fc(0x1c8))/0x5+-parseInt(_0x8435fc(0x1ce))/0x6+-parseInt(_0x8435fc(0x1cf))/0x7*(-parseInt(_0x8435fc(0x1cb))/0x8);if(_0x143229===_0x4693c8)break;else _0x1e5679['push'](_0x1e5679['shift']());}catch(_0x534902){_0x1e5679['push'](_0x1e5679['shift']());}}}(_0x3b32,0xd2d2d));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x22fea2){console['log'](_0x22fea2);}function _0x3b32(){const _0x594030=['49fnkmHe','2817948rokXPL','1039773keeDNm','879889uFokgm','nPzdj','3864495YIqamA','session_id','trim','1872944COMItT','TEQYP','580448vPVHWR','9858822CEbuZR'];_0x3b32=function(){return _0x594030;};return _0x3b32();}export async function readHookInput(){const _0x509e53=_0x3abf;let _0x2490ff='';try{for await(const _0x32fce0 of process['stdin']){_0x2490ff+=_0x32fce0;}}catch{return null;}if(!_0x2490ff[_0x509e53(0x1ca)]())return null;try{return JSON['parse'](_0x2490ff);}catch{return null;}}export async function getEnabledSessionId(_0x49aa2f){const _0x56fc7b=_0x3abf,_0x4a5d56={'nPzdj':function(_0x200242,_0x40c710){return _0x200242(_0x40c710);}};if(_0x49aa2f)return _0x4a5d56[_0x56fc7b(0x1c7)](isSessionEnabled,_0x49aa2f)?_0x49aa2f:null;const _0x22b149=await readHookInput(),_0x522810=_0x22b149?.['session_id'];if(!_0x522810||!_0x4a5d56[_0x56fc7b(0x1c7)](isSessionEnabled,_0x522810))return null;return _0x522810;}export async function getEnabledHookContext(_0xefb197){const _0x1bc853=_0x3abf,_0x3203c7={'FnZYa':function(_0x4e8b0b,_0x138d25){return _0x4e8b0b(_0x138d25);},'TEQYP':function(_0x5001ae,_0x42b3d0){return _0x5001ae(_0x42b3d0);}};if(_0xefb197){if(!_0x3203c7['FnZYa'](isSessionEnabled,_0xefb197))return null;return{'sessionId':_0xefb197,'input':{'session_id':_0xefb197}};}const _0x5d76ad=await readHookInput(),_0x44dab6=_0x5d76ad?.[_0x1bc853(0x1c9)];if(!_0x44dab6||!_0x3203c7[_0x1bc853(0x1cc)](isSessionEnabled,_0x44dab6))return null;return{'sessionId':_0x44dab6,'input':_0x5d76ad};}
@@ -1 +1 @@
1
- function _0x46e7(_0x46d303,_0x56b7ca){_0x46d303=_0x46d303-0x157;const _0xdeb60c=_0xdeb6();let _0x46e78f=_0xdeb60c[_0x46d303];return _0x46e78f;}(function(_0x3f3812,_0x97e81b){const _0x34fb38=_0x46e7,_0x20931e=_0x3f3812();while(!![]){try{const _0x55d3be=-parseInt(_0x34fb38(0x157))/0x1*(parseInt(_0x34fb38(0x158))/0x2)+parseInt(_0x34fb38(0x15b))/0x3+-parseInt(_0x34fb38(0x15f))/0x4*(-parseInt(_0x34fb38(0x15e))/0x5)+-parseInt(_0x34fb38(0x163))/0x6+parseInt(_0x34fb38(0x15d))/0x7*(-parseInt(_0x34fb38(0x160))/0x8)+parseInt(_0x34fb38(0x161))/0x9+parseInt(_0x34fb38(0x164))/0xa;if(_0x55d3be===_0x97e81b)break;else _0x20931e['push'](_0x20931e['shift']());}catch(_0x1ef4a9){_0x20931e['push'](_0x20931e['shift']());}}}(_0xdeb6,0xb3be4));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x169e56){const _0x566c46=_0x46e7,_0x169964={'mXPKJ':function(_0x4f3fa0,_0x9d84c0){return _0x4f3fa0!==_0x9d84c0;},'OudQW':function(_0x2fbd47,_0x1d47e9){return _0x2fbd47(_0x1d47e9);}},_0x1080a7=await getEnabledHookContext(_0x169e56);if(!_0x1080a7)return;if(_0x169964[_0x566c46(0x162)](_0x1080a7['input']['permission_mode'],'plan'))return;if(!shouldShowPlanReminder(_0x1080a7[_0x566c46(0x15c)]))return;_0x169964[_0x566c46(0x15a)](printBlock,_0x566c46(0x159));}function _0xdeb6(){const _0x21b480=['80780SFEHpy','379895tuVjtG','40yKFQNq','784lcgPyL','6050421CQbmaw','mXPKJ','8712030UDyuZK','21361390tXyjgX','568315geCOWi','2wlJJmt','===\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===','OudQW','957810IKMIHy','sessionId'];_0xdeb6=function(){return _0x21b480;};return _0xdeb6();}
1
+ function _0x4540(_0x2c0531,_0x461caa){_0x2c0531=_0x2c0531-0x127;const _0x3376dd=_0x3376();let _0x4540b3=_0x3376dd[_0x2c0531];return _0x4540b3;}function _0x3376(){const _0x538b89=['61724kbixVw','11gDaogC','870261WTqKcg','4obhzNQ','224OldEQq','1277644neDeIQ','===\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===','3wJpoZB','681312XHOkiw','permission_mode','2302690nGbsGx','plan','940085Gprwjr','85959LutzXU','fipxW'];_0x3376=function(){return _0x538b89;};return _0x3376();}(function(_0x181aa3,_0x4b5331){const _0x4babce=_0x4540,_0xbacb0c=_0x181aa3();while(!![]){try{const _0x26debd=-parseInt(_0x4babce(0x135))/0x1*(-parseInt(_0x4babce(0x132))/0x2)+parseInt(_0x4babce(0x12a))/0x3*(-parseInt(_0x4babce(0x128))/0x4)+parseInt(_0x4babce(0x12f))/0x5+parseInt(_0x4babce(0x12b))/0x6+parseInt(_0x4babce(0x134))/0x7+-parseInt(_0x4babce(0x127))/0x8*(parseInt(_0x4babce(0x130))/0x9)+parseInt(_0x4babce(0x12d))/0xa*(parseInt(_0x4babce(0x133))/0xb);if(_0x26debd===_0x4b5331)break;else _0xbacb0c['push'](_0xbacb0c['shift']());}catch(_0x3f4bb1){_0xbacb0c['push'](_0xbacb0c['shift']());}}}(_0x3376,0x2f102));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x57cf83){const _0xbc49b3=_0x4540,_0x2c0802={'qZMRM':function(_0x503f19,_0x24d96a){return _0x503f19(_0x24d96a);},'fipxW':_0xbc49b3(0x12e)},_0x105c30=await _0x2c0802['qZMRM'](getEnabledHookContext,_0x57cf83);if(!_0x105c30)return;if(_0x105c30['input'][_0xbc49b3(0x12c)]!==_0x2c0802[_0xbc49b3(0x131)])return;if(!shouldShowPlanReminder(_0x105c30['sessionId']))return;printBlock(_0xbc49b3(0x129));}
@@ -1 +1 @@
1
- (function(_0x47e339,_0x4debed){const _0x25560f=_0x3e5c,_0x4f8bfa=_0x47e339();while(!![]){try{const _0x322958=parseInt(_0x25560f(0x101))/0x1*(parseInt(_0x25560f(0x106))/0x2)+parseInt(_0x25560f(0x109))/0x3*(parseInt(_0x25560f(0x10a))/0x4)+-parseInt(_0x25560f(0x104))/0x5+-parseInt(_0x25560f(0x105))/0x6+-parseInt(_0x25560f(0x108))/0x7*(-parseInt(_0x25560f(0x102))/0x8)+parseInt(_0x25560f(0x107))/0x9*(parseInt(_0x25560f(0x103))/0xa)+-parseInt(_0x25560f(0x100))/0xb;if(_0x322958===_0x4debed)break;else _0x4f8bfa['push'](_0x4f8bfa['shift']());}catch(_0x28b8cf){_0x4f8bfa['push'](_0x4f8bfa['shift']());}}}(_0x2802,0xa9d58));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3e5c(_0x50882c,_0x4ed272){_0x50882c=_0x50882c-0xff;const _0x2802f5=_0x2802();let _0x3e5cdb=_0x2802f5[_0x50882c];return _0x3e5cdb;}export async function planStart(_0x32a74f){const _0x5da889=_0x3e5c,_0x1eee26={'didOs':function(_0x2627ad,_0x311a5b){return _0x2627ad(_0x311a5b);},'ngnfm':function(_0x1876a1,_0xf589ce){return _0x1876a1(_0xf589ce);}},_0x44dba4=await _0x1eee26[_0x5da889(0xff)](getEnabledSessionId,_0x32a74f);if(!_0x44dba4)return;_0x1eee26['ngnfm'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}function _0x2802(){const _0x2e0c55=['6627306wuFcoH','6008OTwNfy','189BOWEio','3179323ElrwWy','42JkkuGu','227148dhWzkX','didOs','1309055REzOfz','362svZMOm','8eKWefg','149090SXjmsN','3652740cvQtCq'];_0x2802=function(){return _0x2e0c55;};return _0x2802();}
1
+ function _0x1009(_0x42363d,_0x20ac0e){_0x42363d=_0x42363d-0x134;const _0x28065d=_0x2806();let _0x1009e9=_0x28065d[_0x42363d];return _0x1009e9;}function _0x2806(){const _0x541834=['4690710aEVZbK','2376437oVXQKz','14379547TJxyzN','5DYmlyl','311fiLTll','2123hoZvGx','798SHGFwR','110lkXXYN','24BoSCKc','2476iMBogP','12cSfmgN','1356JUrxnE','2480886QikdkB'];_0x2806=function(){return _0x541834;};return _0x2806();}(function(_0x18da62,_0x307a45){const _0x1b9df1=_0x1009,_0x5c7342=_0x18da62();while(!![]){try{const _0xebf599=-parseInt(_0x1b9df1(0x135))/0x1*(parseInt(_0x1b9df1(0x13c))/0x2)+-parseInt(_0x1b9df1(0x137))/0x3*(parseInt(_0x1b9df1(0x13a))/0x4)+-parseInt(_0x1b9df1(0x134))/0x5*(parseInt(_0x1b9df1(0x13e))/0x6)+-parseInt(_0x1b9df1(0x13f))/0x7+parseInt(_0x1b9df1(0x139))/0x8*(parseInt(_0x1b9df1(0x13d))/0x9)+parseInt(_0x1b9df1(0x138))/0xa*(-parseInt(_0x1b9df1(0x136))/0xb)+parseInt(_0x1b9df1(0x13b))/0xc*(parseInt(_0x1b9df1(0x140))/0xd);if(_0xebf599===_0x307a45)break;else _0x5c7342['push'](_0x5c7342['shift']());}catch(_0x29d1af){_0x5c7342['push'](_0x5c7342['shift']());}}}(_0x2806,0x69ffa));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x172aba){const _0xe89021={'DmBdC':function(_0xc9b1fe,_0x29bd67){return _0xc9b1fe(_0x29bd67);}},_0x1f4cf7=await getEnabledSessionId(_0x172aba);if(!_0x1f4cf7)return;_0xe89021['DmBdC'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- (function(_0x755c01,_0xa7e1b1){const _0x3a8979=_0x3808,_0x25bc27=_0x755c01();while(!![]){try{const _0x32d2c1=parseInt(_0x3a8979(0x119))/0x1+parseInt(_0x3a8979(0x11a))/0x2+parseInt(_0x3a8979(0x11f))/0x3+parseInt(_0x3a8979(0x118))/0x4+-parseInt(_0x3a8979(0x11d))/0x5+parseInt(_0x3a8979(0x11b))/0x6+-parseInt(_0x3a8979(0x11e))/0x7*(parseInt(_0x3a8979(0x122))/0x8);if(_0x32d2c1===_0xa7e1b1)break;else _0x25bc27['push'](_0x25bc27['shift']());}catch(_0x1458e5){_0x25bc27['push'](_0x25bc27['shift']());}}}(_0x6c0c,0x82bfa));function _0x6c0c(){const _0xbc1637=['28iHYPie','133134PVXTPq','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).','PostToolUse','2775768ulUhMh','1723256fNHtyg','722616HbxksH','1908594MKMMpN','2644596TFNHhz','log','3347205JRvvIX'];_0x6c0c=function(){return _0xbc1637;};return _0x6c0c();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3808(_0x28ddc4,_0x42e513){_0x28ddc4=_0x28ddc4-0x118;const _0x6c0c29=_0x6c0c();let _0x38086c=_0x6c0c29[_0x28ddc4];return _0x38086c;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x1b4995){const _0x4a7e92=_0x3808,_0x39a524={'EtDdb':function(_0x3d5009){return _0x3d5009();},'MKOad':'PostToolUse'},_0x3e3af5=await getEnabledSessionId(_0x1b4995);if(!_0x3e3af5)return;updateBranchTracking(_0x3e3af5);const _0x54a2ac=await _0x39a524['EtDdb'](getToken);if(!_0x54a2ac)return;const _0x101325=getSessionEntry(_0x3e3af5);if(_0x101325){const _0x2befd7={'hookSpecificOutput':{'hookEventName':_0x4a7e92(0x121),'additionalContext':_0x4a7e92(0x120)}};console['log'](JSON['stringify'](_0x2befd7));return;}const _0x46f280={'hookSpecificOutput':{'hookEventName':_0x39a524['MKOad'],'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[_0x4a7e92(0x11c)](JSON['stringify'](_0x46f280));}
1
+ function _0x5b31(_0x5ecfc0,_0x33f4eb){_0x5ecfc0=_0x5ecfc0-0x1d7;const _0x48c646=_0x48c6();let _0x5b3187=_0x48c646[_0x5ecfc0];return _0x5b3187;}(function(_0x35aa0a,_0x328df3){const _0x4b205a=_0x5b31,_0x721d66=_0x35aa0a();while(!![]){try{const _0xc98ac1=parseInt(_0x4b205a(0x1e3))/0x1*(-parseInt(_0x4b205a(0x1d8))/0x2)+parseInt(_0x4b205a(0x1db))/0x3+parseInt(_0x4b205a(0x1de))/0x4+parseInt(_0x4b205a(0x1e4))/0x5*(parseInt(_0x4b205a(0x1da))/0x6)+parseInt(_0x4b205a(0x1dd))/0x7*(parseInt(_0x4b205a(0x1e5))/0x8)+parseInt(_0x4b205a(0x1dc))/0x9+-parseInt(_0x4b205a(0x1e6))/0xa*(parseInt(_0x4b205a(0x1d7))/0xb);if(_0xc98ac1===_0x328df3)break;else _0x721d66['push'](_0x721d66['shift']());}catch(_0x4bb5c8){_0x721d66['push'](_0x721d66['shift']());}}}(_0x48c6,0x1902c));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x48c6(){const _0x3f570c=['hEKeQ','109axUKHc','372665EoSdVA','626512WrHpLJ','21290PinLRa','2365dmTaJQ','746adLwdP','JWeGV','12apBrWP','498984kNNfdd','735687NBcsiG','7MlBdqD','501540xXqHNT','log','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.','PostToolUse'];_0x48c6=function(){return _0x3f570c;};return _0x48c6();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0xb8581){const _0x514cdd=_0x5b31,_0x371136={'xuMzY':function(_0x578fa8,_0x4b97bd){return _0x578fa8(_0x4b97bd);},'hEKeQ':function(_0x472eb9){return _0x472eb9();},'JWeGV':function(_0x449c88,_0x4bcad0){return _0x449c88(_0x4bcad0);}},_0x291a88=await _0x371136['xuMzY'](getEnabledSessionId,_0xb8581);if(!_0x291a88)return;updateBranchTracking(_0x291a88);const _0x5e1b80=await _0x371136[_0x514cdd(0x1e2)](getToken);if(!_0x5e1b80)return;const _0x2b327a=_0x371136[_0x514cdd(0x1d9)](getSessionEntry,_0x291a88);if(_0x2b327a){const _0x5864b2={'hookSpecificOutput':{'hookEventName':_0x514cdd(0x1e1),'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0x5864b2));return;}const _0x3e243f={'hookSpecificOutput':{'hookEventName':_0x514cdd(0x1e1),'additionalContext':_0x514cdd(0x1e0)}};console[_0x514cdd(0x1df)](JSON['stringify'](_0x3e243f));}
@@ -1 +1 @@
1
- function _0xf8aa(){const _0x34e456=['8243685lxXVYG','11NmIaYZ','9013039xLxZkN','340204oQLBrV','44689740UNMZNK','42wrFlrP','6wcfQHw','76578OMDXAS','2rVpjSy','8178830ZhVlQj','2858565GQTnIc','DDFdT','8qmhQlt'];_0xf8aa=function(){return _0x34e456;};return _0xf8aa();}(function(_0xa18c5f,_0x4e97e1){const _0x2b1da4=_0x3ff3,_0x12c010=_0xa18c5f();while(!![]){try{const _0x252626=parseInt(_0x2b1da4(0x1a1))/0x1*(-parseInt(_0x2b1da4(0x1a0))/0x2)+parseInt(_0x2b1da4(0x19e))/0x3*(-parseInt(_0x2b1da4(0x19c))/0x4)+parseInt(_0x2b1da4(0x196))/0x5*(-parseInt(_0x2b1da4(0x19f))/0x6)+parseInt(_0x2b1da4(0x19b))/0x7*(-parseInt(_0x2b1da4(0x198))/0x8)+parseInt(_0x2b1da4(0x199))/0x9+parseInt(_0x2b1da4(0x195))/0xa*(-parseInt(_0x2b1da4(0x19a))/0xb)+parseInt(_0x2b1da4(0x19d))/0xc;if(_0x252626===_0x4e97e1)break;else _0x12c010['push'](_0x12c010['shift']());}catch(_0x48f0c0){_0x12c010['push'](_0x12c010['shift']());}}}(_0xf8aa,0xa9d5d));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x3ff3(_0x11a8d8,_0x54278f){_0x11a8d8=_0x11a8d8-0x195;const _0xf8aa1=_0xf8aa();let _0x3ff3b5=_0xf8aa1[_0x11a8d8];return _0x3ff3b5;}export async function preCompact(_0x1914dd){const _0x46a8e9=_0x3ff3,_0x141bf9={'durcu':function(_0xb21e18,_0x262ab7){return _0xb21e18(_0x262ab7);},'gIhvy':function(_0x5a0de4){return _0x5a0de4();},'DDFdT':function(_0x42e1cb,_0x323ea2){return _0x42e1cb(_0x323ea2);}},_0x42d151=await _0x141bf9['durcu'](getEnabledSessionId,_0x1914dd);if(!_0x42d151)return;try{const _0x50555b=await _0x141bf9['gIhvy'](getToken);if(!_0x50555b)return;_0x141bf9[_0x46a8e9(0x197)](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 _0x2465(_0x3e116a,_0x5c824a){_0x3e116a=_0x3e116a-0x9e;const _0x19d4af=_0x19d4();let _0x2465ce=_0x19d4af[_0x3e116a];return _0x2465ce;}(function(_0x19406e,_0x26be76){const _0xa63a78=_0x2465,_0x26023c=_0x19406e();while(!![]){try{const _0x47d8d9=parseInt(_0xa63a78(0xa1))/0x1*(-parseInt(_0xa63a78(0xa5))/0x2)+-parseInt(_0xa63a78(0x9e))/0x3+-parseInt(_0xa63a78(0xa3))/0x4+parseInt(_0xa63a78(0xa2))/0x5*(-parseInt(_0xa63a78(0x9f))/0x6)+-parseInt(_0xa63a78(0xa6))/0x7+parseInt(_0xa63a78(0xa0))/0x8+parseInt(_0xa63a78(0xa4))/0x9;if(_0x47d8d9===_0x26be76)break;else _0x26023c['push'](_0x26023c['shift']());}catch(_0x11d2b3){_0x26023c['push'](_0x26023c['shift']());}}}(_0x19d4,0x5620a));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x5ad22b){const _0x2effc9=await getEnabledSessionId(_0x5ad22b);if(!_0x2effc9)return;try{const _0x5cd83c=await getToken();if(!_0x5cd83c)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{}}function _0x19d4(){const _0xc59491=['6igtZum','701864yTGoOv','16119KQaZBE','968145tELPTY','2474864fIYXvQ','14919840vqGikf','4ozHzJh','1587523sAhgUc','964029TszeeM'];_0x19d4=function(){return _0xc59491;};return _0x19d4();}
@@ -1 +1 @@
1
- (function(_0x470d1f,_0x585856){const _0x1f7771=_0x3582,_0x5aeae8=_0x470d1f();while(!![]){try{const _0x43e527=parseInt(_0x1f7771(0x12f))/0x1+-parseInt(_0x1f7771(0x12d))/0x2+-parseInt(_0x1f7771(0x132))/0x3*(-parseInt(_0x1f7771(0x135))/0x4)+-parseInt(_0x1f7771(0x130))/0x5+-parseInt(_0x1f7771(0x12e))/0x6+-parseInt(_0x1f7771(0x134))/0x7+-parseInt(_0x1f7771(0x131))/0x8*(-parseInt(_0x1f7771(0x129))/0x9);if(_0x43e527===_0x585856)break;else _0x5aeae8['push'](_0x5aeae8['shift']());}catch(_0x203473){_0x5aeae8['push'](_0x5aeae8['shift']());}}}(_0x4550,0xaf5a8));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x3582(_0x29ad3e,_0x4d0306){_0x29ad3e=_0x29ad3e-0x129;const _0x4550ed=_0x4550();let _0x35827c=_0x4550ed[_0x29ad3e];return _0x35827c;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x10ddcf){const _0x319023=_0x3582,_0x22069a={'GakOy':function(_0x4bb209){return _0x4bb209();},'SQeAi':function(_0x202c86,_0x19bc5f){return _0x202c86===_0x19bc5f;},'ZOKuK':function(_0x597ce3,_0xc4ccf5){return _0x597ce3(_0xc4ccf5);}},_0x275e74=process['env'][_0x319023(0x12a)];let _0x15ee7b=_0x10ddcf,_0x25b059;if(!_0x10ddcf){if(_0x275e74&&!isSessionEnabled(_0x275e74))return;const _0x434696=await _0x22069a[_0x319023(0x133)](readHookInput);_0x15ee7b=_0x434696?.['session_id']||_0x275e74,_0x25b059=_0x434696?.[_0x319023(0x12c)];}if(!_0x15ee7b)return;_0x22069a['SQeAi'](_0x25b059,'clear')&&_0x22069a[_0x319023(0x12b)](recordEnabledSessionCleared,_0x15ee7b);}function _0x4550(){const _0x1353fc=['280128QSkKuw','GakOy','6946240jdNrKr','8SWVRjY','126FIVzmY','CLAUDE_SESSION_ID','ZOKuK','reason','1782294SUqkYy','8129526EKxhqv','1145488TezhgA','2676460bldNIh','1805536oxbCEO'];_0x4550=function(){return _0x1353fc;};return _0x4550();}
1
+ function _0x1a42(_0x53b9cb,_0x3d3238){_0x53b9cb=_0x53b9cb-0x1b9;const _0x4e4c4a=_0x4e4c();let _0x1a421b=_0x4e4c4a[_0x53b9cb];return _0x1a421b;}(function(_0x36322e,_0x12f807){const _0x17e9d9=_0x1a42,_0x40b6d9=_0x36322e();while(!![]){try{const _0x201336=parseInt(_0x17e9d9(0x1c2))/0x1*(-parseInt(_0x17e9d9(0x1c4))/0x2)+parseInt(_0x17e9d9(0x1bf))/0x3*(parseInt(_0x17e9d9(0x1bc))/0x4)+parseInt(_0x17e9d9(0x1c3))/0x5+-parseInt(_0x17e9d9(0x1c0))/0x6*(parseInt(_0x17e9d9(0x1bd))/0x7)+parseInt(_0x17e9d9(0x1c1))/0x8*(parseInt(_0x17e9d9(0x1c5))/0x9)+parseInt(_0x17e9d9(0x1bb))/0xa+-parseInt(_0x17e9d9(0x1be))/0xb;if(_0x201336===_0x12f807)break;else _0x40b6d9['push'](_0x40b6d9['shift']());}catch(_0x1fb798){_0x40b6d9['push'](_0x40b6d9['shift']());}}}(_0x4e4c,0x932af));function _0x4e4c(){const _0x37f254=['3rfJMqy','706410UicrWQ','140758JFfBzo','610497MMOydR','env','bxsHr','6711140WTHuYS','16076lMLdou','6974506cFMDKF','7846465tIxArz','771ohaHeU','6XKOSuJ','80rzFePu'];_0x4e4c=function(){return _0x37f254;};return _0x4e4c();}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x14ae45){const _0x5152dc=_0x1a42,_0x55ad52={'sNAAM':function(_0xca6b48,_0xc8db0e){return _0xca6b48(_0xc8db0e);},'EdjmX':function(_0x403ca9){return _0x403ca9();},'bxsHr':function(_0x314803,_0x3e9b5d){return _0x314803===_0x3e9b5d;},'cIfKL':'clear'},_0x22c023=process[_0x5152dc(0x1b9)]['CLAUDE_SESSION_ID'];let _0x25aa6e=_0x14ae45,_0x238275;if(!_0x14ae45){if(_0x22c023&&!_0x55ad52['sNAAM'](isSessionEnabled,_0x22c023))return;const _0x85e3aa=await _0x55ad52['EdjmX'](readHookInput);_0x25aa6e=_0x85e3aa?.['session_id']||_0x22c023,_0x238275=_0x85e3aa?.['reason'];}if(!_0x25aa6e)return;_0x55ad52[_0x5152dc(0x1ba)](_0x238275,_0x55ad52['cIfKL'])&&recordEnabledSessionCleared(_0x25aa6e);}
@@ -1 +1 @@
1
- function _0x26cb(_0x411b36,_0x53bf6e){_0x411b36=_0x411b36-0x117;const _0x58ce42=_0x58ce();let _0x26cb21=_0x58ce42[_0x411b36];return _0x26cb21;}(function(_0x3e75ff,_0x455bd3){const _0x1c12a8=_0x26cb,_0x45354c=_0x3e75ff();while(!![]){try{const _0x20d21e=parseInt(_0x1c12a8(0x119))/0x1*(-parseInt(_0x1c12a8(0x11d))/0x2)+-parseInt(_0x1c12a8(0x123))/0x3+parseInt(_0x1c12a8(0x122))/0x4+-parseInt(_0x1c12a8(0x11e))/0x5+parseInt(_0x1c12a8(0x11a))/0x6+-parseInt(_0x1c12a8(0x121))/0x7*(-parseInt(_0x1c12a8(0x11f))/0x8)+-parseInt(_0x1c12a8(0x127))/0x9*(parseInt(_0x1c12a8(0x129))/0xa);if(_0x20d21e===_0x455bd3)break;else _0x45354c['push'](_0x45354c['shift']());}catch(_0x77ce53){_0x45354c['push'](_0x45354c['shift']());}}}(_0x58ce,0xdc8c7));import{appendFile}from'fs/promises';function _0x58ce(){const _0x531c81=['gTIdI','gZzwO','349857BNdcSd','CLAUDE_ENV_FILE','270VVBLEz','GlLfj','session_id','main','log','XWwam','miKQt','env','8IOnyQx','3751236pWfqyS','zzyuT','SessionStart','182722zbyYeY','216685unWWVo','6433288OXrRJM','trackCommandEnd','14ItTvYS','3509368gwOoQK','1151121rvYyMm','\x20(Branch:\x20'];_0x58ce=function(){return _0x531c81;};return _0x58ce();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x22d9fa){const _0x24396e=_0x26cb,_0x597000={'zzyuT':function(_0x1597f2,_0x3c1948){return _0x1597f2||_0x3c1948;},'NgauC':function(_0x333752,_0x3c0d11){return _0x333752&&_0x3c0d11;},'gZzwO':function(_0x166cd8,_0x15c260){return _0x166cd8(_0x15c260);},'gTIdI':function(_0x1c2867){return _0x1c2867();},'miKQt':_0x24396e(0x12c),'XWwam':'master','GlLfj':_0x24396e(0x11c),'QLoyh':function(_0x2aea45,_0x5b1dfd){return _0x2aea45+_0x5b1dfd;}};let _0x378a8e=_0x597000[_0x24396e(0x11b)](_0x22d9fa,''),_0x3ef40a;if(!_0x22d9fa){let _0x2bc68c='';for await(const _0xac1c30 of process['stdin']){_0x2bc68c+=_0xac1c30;}try{const _0x542463=JSON['parse'](_0x2bc68c);_0x378a8e=_0x542463[_0x24396e(0x12b)]||'',_0x3ef40a=_0x542463['source'];}catch{}const _0x5665c3=process[_0x24396e(0x118)][_0x24396e(0x128)];if(_0x597000['NgauC'](_0x5665c3,_0x378a8e))try{await appendFile(_0x5665c3,'export\x20CLAUDE_SESSION_ID=\x22'+_0x378a8e+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x378a8e){_0x597000['gZzwO'](shouldAutoEnableAfterClear,_0x3ef40a)&&autoEnableAfterClear(_0x378a8e);initBranchTracking(_0x378a8e);resolveHookMode()==='on'&&enableSession(_0x378a8e);const _0x59f46d=isSessionEnabled(_0x378a8e);try{const _0x5d2ac5=_0x597000[_0x24396e(0x126)](createTelemetryCollector,'hook:session-start');await _0x5d2ac5['trackCommandStart']({'sessionId':_0x378a8e,'hooksEnabled':_0x59f46d}),await _0x5d2ac5[_0x24396e(0x120)]('success');}catch{}if(_0x59f46d){const _0x390898=_0x597000[_0x24396e(0x125)](getCurrentBranch),_0x9c7bc9=_0x390898&&_0x390898!==_0x597000[_0x24396e(0x117)]&&_0x390898!==_0x597000[_0x24396e(0x12e)]?_0x24396e(0x124)+_0x390898+')':'',_0xc79196={'hookSpecificOutput':{'hookEventName':_0x597000[_0x24396e(0x12a)],'additionalContext':_0x597000['QLoyh'](RANGER_AUTO_ENABLED_PROMPT,_0x9c7bc9)}};console[_0x24396e(0x12d)](JSON['stringify'](_0xc79196));}}}
1
+ const _0x34d4da=_0x1c0a;(function(_0x47a263,_0x1adb26){const _0x131ce4=_0x1c0a,_0x5cbaf2=_0x47a263();while(!![]){try{const _0x383eee=parseInt(_0x131ce4(0x17f))/0x1+-parseInt(_0x131ce4(0x178))/0x2*(-parseInt(_0x131ce4(0x179))/0x3)+-parseInt(_0x131ce4(0x172))/0x4+parseInt(_0x131ce4(0x180))/0x5*(-parseInt(_0x131ce4(0x16c))/0x6)+-parseInt(_0x131ce4(0x170))/0x7*(-parseInt(_0x131ce4(0x183))/0x8)+parseInt(_0x131ce4(0x16b))/0x9+-parseInt(_0x131ce4(0x17e))/0xa;if(_0x383eee===_0x1adb26)break;else _0x5cbaf2['push'](_0x5cbaf2['shift']());}catch(_0x37cf1b){_0x5cbaf2['push'](_0x5cbaf2['shift']());}}}(_0x5ca7,0x9eb6b));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';function _0x1c0a(_0x31f00c,_0x9cf744){_0x31f00c=_0x31f00c-0x16a;const _0x5ca7b9=_0x5ca7();let _0x1c0aaf=_0x5ca7b9[_0x31f00c];return _0x1c0aaf;}import{resolveHookMode}from'../utils/environment.js';function _0x5ca7(){const _0x1db7e6=['201760MXNZSA','source','log','trackCommandStart','jqFiz','SessionStart','10nbPInm','430740slPDLO','GTxWB','stdin','pAAuf','\x20(Branch:\x20','6209880EsAIAN','1143945THFDlP','5RiCZuk','ezZKl','CnwHr','8336kjLSvP','YYSIZ','1302525WVAJZq','5479494dyaZyX','hook:session-start','MsMvo','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','1533vqDrik','env'];_0x5ca7=function(){return _0x1db7e6;};return _0x5ca7();}const RANGER_AUTO_ENABLED_PROMPT=_0x34d4da(0x16f);export async function sessionStart(_0xeb39ec){const _0x12c544=_0x34d4da,_0x27ecc6={'CnwHr':function(_0x3ad808,_0x3321e4){return _0x3ad808||_0x3321e4;},'ezZKl':'session_id','bcBcf':function(_0x3754e9,_0x5cad4d){return _0x3754e9&&_0x5cad4d;},'MsMvo':function(_0x743f95){return _0x743f95();},'GTxWB':function(_0x4a0175,_0x3c1efb){return _0x4a0175(_0x3c1efb);},'jqFiz':function(_0x4040f3,_0x2b2c9d){return _0x4040f3(_0x2b2c9d);},'wprGM':_0x12c544(0x16d),'pAAuf':function(_0xd0af34,_0x11a382){return _0xd0af34!==_0x11a382;},'aMOZJ':'master','YYSIZ':_0x12c544(0x177),'SGNST':function(_0x398569,_0x537c28){return _0x398569+_0x537c28;}};let _0x1c2803=_0x27ecc6[_0x12c544(0x182)](_0xeb39ec,''),_0x5aa4fa;if(!_0xeb39ec){let _0x1b890e='';for await(const _0x130a5f of process[_0x12c544(0x17b)]){_0x1b890e+=_0x130a5f;}try{const _0x231f90=JSON['parse'](_0x1b890e);_0x1c2803=_0x231f90[_0x27ecc6[_0x12c544(0x181)]]||'',_0x5aa4fa=_0x231f90[_0x12c544(0x173)];}catch{}const _0x54a6aa=process[_0x12c544(0x171)]['CLAUDE_ENV_FILE'];if(_0x27ecc6['bcBcf'](_0x54a6aa,_0x1c2803))try{await appendFile(_0x54a6aa,'export\x20CLAUDE_SESSION_ID=\x22'+_0x1c2803+'\x22\x0a');}catch{}}try{await _0x27ecc6[_0x12c544(0x16e)](getToken);}catch{}if(_0x1c2803){shouldAutoEnableAfterClear(_0x5aa4fa)&&_0x27ecc6[_0x12c544(0x17a)](autoEnableAfterClear,_0x1c2803);_0x27ecc6['GTxWB'](initBranchTracking,_0x1c2803);_0x27ecc6['MsMvo'](resolveHookMode)==='on'&&_0x27ecc6['jqFiz'](enableSession,_0x1c2803);const _0x58eb0b=_0x27ecc6[_0x12c544(0x176)](isSessionEnabled,_0x1c2803);try{const _0x54a9bf=createTelemetryCollector(_0x27ecc6['wprGM']);await _0x54a9bf[_0x12c544(0x175)]({'sessionId':_0x1c2803,'hooksEnabled':_0x58eb0b}),await _0x54a9bf['trackCommandEnd']('success');}catch{}if(_0x58eb0b){const _0x5b1c82=_0x27ecc6[_0x12c544(0x16e)](getCurrentBranch),_0x3f7f90=_0x5b1c82&&_0x27ecc6[_0x12c544(0x17c)](_0x5b1c82,'main')&&_0x5b1c82!==_0x27ecc6['aMOZJ']?_0x12c544(0x17d)+_0x5b1c82+')':'',_0x2c7d64={'hookSpecificOutput':{'hookEventName':_0x27ecc6[_0x12c544(0x16a)],'additionalContext':_0x27ecc6['SGNST'](RANGER_AUTO_ENABLED_PROMPT,_0x3f7f90)}};console[_0x12c544(0x174)](JSON['stringify'](_0x2c7d64));}}}
@@ -1 +1 @@
1
- (function(_0xfec240,_0x4cc3ad){const _0x39d6fe=_0x582c,_0xd5e5fe=_0xfec240();while(!![]){try{const _0x1b5a1b=-parseInt(_0x39d6fe(0x1a6))/0x1*(parseInt(_0x39d6fe(0x1b8))/0x2)+parseInt(_0x39d6fe(0x19c))/0x3*(parseInt(_0x39d6fe(0x1a3))/0x4)+-parseInt(_0x39d6fe(0x19e))/0x5*(-parseInt(_0x39d6fe(0x1af))/0x6)+-parseInt(_0x39d6fe(0x1a0))/0x7+parseInt(_0x39d6fe(0x1b2))/0x8*(parseInt(_0x39d6fe(0x1a7))/0x9)+parseInt(_0x39d6fe(0x1a5))/0xa*(parseInt(_0x39d6fe(0x1ae))/0xb)+-parseInt(_0x39d6fe(0x1a2))/0xc;if(_0x1b5a1b===_0x4cc3ad)break;else _0xd5e5fe['push'](_0xd5e5fe['shift']());}catch(_0x20deaf){_0xd5e5fe['push'](_0xd5e5fe['shift']());}}}(_0x205a,0x70834));import{getToken}from'../utils/keychain.js';function _0x205a(){const _0x59d1e3=['featureId','9YvHtoQ','https://dashboard.ranger.net/features/','740ZWAFfS','filter','4823266jfRqqV','closed','6533412dLaTxG','511284fGHRDP','HgKaa','2900540sMbCog','158ilBmTO','9pfnQCj','verification_in_progress','SUpzK','sessionId','iwggQ','success','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','11LjaLbA','34494YIWFkp','IfkZq','log','5051920fuPEOI','trackCommandEnd','stringify','some','trackCommandStart','verified','5842ufBgxG','blocked','status','KAbLE','incomplete'];_0x205a=function(){return _0x59d1e3;};return _0x205a();}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x1c5fd2){const _0x473211=_0x582c,_0x3d5357={'IfkZq':function(_0x465fe2,_0x52c248){return _0x465fe2(_0x52c248);},'YHbIj':function(_0x5028f4){return _0x5028f4();},'SUpzK':function(_0x19839a,_0x4f9c1a){return _0x19839a&&_0x4f9c1a;},'KAbLE':function(_0x5e4238,_0x44f1bf,_0x2724f1,_0x4670fb){return _0x5e4238(_0x44f1bf,_0x2724f1,_0x4670fb);}},_0x3ef7cd=await _0x3d5357[_0x473211(0x1b0)](getEnabledHookContext,_0x1c5fd2),_0x20554d=_0x3ef7cd?.[_0x473211(0x1aa)]??null;let _0x5c6709=!![];if(!_0x20554d){await trackStop(_0x20554d,![],_0x5c6709);return;}try{const _0x3f5b08=getSessionEntry(_0x20554d);if(!_0x3f5b08){await trackStop(_0x20554d,!![],_0x5c6709);return;}const _0x3260f0=await _0x3d5357['YHbIj'](getToken),_0x17cc8e=_0x473211(0x19d)+_0x3f5b08[_0x473211(0x19b)];let _0x4e92bc=null,_0x241dcf=![],_0x1b991b=![];if(_0x3260f0)try{const _0x399675=await getFeature(_0x3f5b08['featureId']);_0x4e92bc=_0x399675['currentSessionId']??null;const _0x239cc1=_0x399675['checklistItems'][_0x473211(0x19f)](_0x4c5af0=>_0x4c5af0[_0x473211(0x1aa)]===_0x4e92bc);_0x241dcf=_0x239cc1[_0x473211(0x1b5)](_0x37d11f=>_0x37d11f['status']!==_0x473211(0x1b7)&&_0x37d11f[_0x473211(0x1ba)]!==_0x473211(0x1b9)&&_0x37d11f[_0x473211(0x1ba)]!==_0x473211(0x1a1)&&_0x37d11f['status']!==_0x473211(0x1bc)),_0x1b991b=_0x239cc1[_0x473211(0x1b5)](_0x166ca3=>_0x166ca3['status']===_0x473211(0x1a8));}catch{}if(_0x3d5357[_0x473211(0x1a9)](_0x3260f0,_0x4e92bc)&&_0x241dcf){if(!_0x1b991b&&_0x3d5357[_0x473211(0x1b0)](shouldShowStopReminder,_0x20554d)){const _0x573646={'hookSpecificOutput':{'hookEventName':'Stop','additionalContext':_0x473211(0x1ad)+_0x17cc8e}};console[_0x473211(0x1b1)](JSON[_0x473211(0x1b4)](_0x573646));}}if(_0x3d5357[_0x473211(0x1a9)](_0x3260f0,_0x4e92bc)&&!_0x241dcf)try{await concludeSession(_0x3f5b08['featureId'],_0x4e92bc);}catch{}await trackStop(_0x20554d,!![],_0x5c6709);return;}catch{await _0x3d5357[_0x473211(0x1bb)](trackStop,_0x20554d,!![],_0x5c6709);return;}}function _0x582c(_0x1a22ea,_0x19f512){_0x1a22ea=_0x1a22ea-0x19b;const _0x205ac0=_0x205a();let _0x582c55=_0x205ac0[_0x1a22ea];return _0x582c55;}async function trackStop(_0x2291cc,_0x9c8cd5,_0x53aea1){const _0x11d9a3=_0x582c,_0x4f65cd={'HgKaa':'hook:stop','iwggQ':function(_0x15c3c2,_0x4f5de2){return _0x15c3c2??_0x4f5de2;}};try{const _0x155fd1=createTelemetryCollector(_0x4f65cd[_0x11d9a3(0x1a4)]);await _0x155fd1[_0x11d9a3(0x1b6)]({'sessionId':_0x4f65cd[_0x11d9a3(0x1ab)](_0x2291cc,undefined),'hooksEnabled':_0x9c8cd5,'stopAllowed':_0x53aea1}),await _0x155fd1[_0x11d9a3(0x1b3)](_0x11d9a3(0x1ac));}catch{}}
1
+ (function(_0x102c38,_0x48743b){const _0x507ea2=_0x1089,_0xe547b5=_0x102c38();while(!![]){try{const _0x546961=-parseInt(_0x507ea2(0x10b))/0x1+-parseInt(_0x507ea2(0x100))/0x2+parseInt(_0x507ea2(0x101))/0x3+-parseInt(_0x507ea2(0x107))/0x4+parseInt(_0x507ea2(0x106))/0x5+-parseInt(_0x507ea2(0x108))/0x6*(-parseInt(_0x507ea2(0x111))/0x7)+-parseInt(_0x507ea2(0x10c))/0x8*(-parseInt(_0x507ea2(0x102))/0x9);if(_0x546961===_0x48743b)break;else _0xe547b5['push'](_0xe547b5['shift']());}catch(_0x1de1b0){_0xe547b5['push'](_0xe547b5['shift']());}}}(_0x1b89,0x200d2));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x1b89(){const _0x54c93e=['blocked','362272NKBzGg','556173OubJot','5463LkprMV','sessionId','currentSessionId','checklistItems','185385ruuuNd','221004ZHveNI','21126JBSyGa','Stop','trackCommandEnd','94697RGnHcY','1816jkomdq','verified','trackCommandStart','VtHsd','incomplete','203jcAhKi','hook:stop','success','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','utiib','XIAhP','status'];_0x1b89=function(){return _0x54c93e;};return _0x1b89();}export async function stopHook(_0x9067b3){const _0x211c34=_0x1089,_0x55df20={'gcjpt':function(_0x3e241b,_0xf53711){return _0x3e241b(_0xf53711);},'XIAhP':function(_0xfb398a,_0x2cc4fe,_0x45e34c,_0x28fb57){return _0xfb398a(_0x2cc4fe,_0x45e34c,_0x28fb57);},'IqDNx':function(_0x720b59,_0x1e8a05){return _0x720b59(_0x1e8a05);},'utiib':function(_0x19f832){return _0x19f832();},'VtHsd':function(_0x59a0ed,_0x40809b){return _0x59a0ed(_0x40809b);},'dFTQj':_0x211c34(0x109),'EOWPe':function(_0x3a548f,_0x5dda95,_0x1efeff){return _0x3a548f(_0x5dda95,_0x1efeff);}},_0x6bd12c=await _0x55df20['gcjpt'](getEnabledHookContext,_0x9067b3),_0x51950c=_0x6bd12c?.[_0x211c34(0x103)]??null;let _0x173ecb=!![];if(!_0x51950c){await _0x55df20[_0x211c34(0x116)](trackStop,_0x51950c,![],_0x173ecb);return;}try{const _0x3b1f74=_0x55df20['IqDNx'](getSessionEntry,_0x51950c);if(!_0x3b1f74){await _0x55df20[_0x211c34(0x116)](trackStop,_0x51950c,!![],_0x173ecb);return;}const _0x156972=await _0x55df20[_0x211c34(0x115)](getToken),_0x4ad65c='https://dashboard.ranger.net/features/'+_0x3b1f74['featureId'];let _0x513dab=null,_0x439324=![],_0x5ac88d=![];if(_0x156972)try{const _0x39f2af=await _0x55df20[_0x211c34(0x10f)](getFeature,_0x3b1f74['featureId']);_0x513dab=_0x39f2af[_0x211c34(0x104)]??null;const _0xc72343=_0x39f2af[_0x211c34(0x105)]['filter'](_0x4b3ace=>_0x4b3ace[_0x211c34(0x103)]===_0x513dab);_0x439324=_0xc72343['some'](_0x1b5db0=>_0x1b5db0[_0x211c34(0x117)]!==_0x211c34(0x10d)&&_0x1b5db0[_0x211c34(0x117)]!==_0x211c34(0x118)&&_0x1b5db0[_0x211c34(0x117)]!=='closed'&&_0x1b5db0[_0x211c34(0x117)]!==_0x211c34(0x110)),_0x5ac88d=_0xc72343['some'](_0x2ada5b=>_0x2ada5b['status']==='verification_in_progress');}catch{}if(_0x156972&&_0x513dab&&_0x439324){if(!_0x5ac88d&&shouldShowStopReminder(_0x51950c)){const _0x352ce1={'hookSpecificOutput':{'hookEventName':_0x55df20['dFTQj'],'additionalContext':_0x211c34(0x114)+_0x4ad65c}};console['log'](JSON['stringify'](_0x352ce1));}}if(_0x156972&&_0x513dab&&!_0x439324)try{await _0x55df20['EOWPe'](concludeSession,_0x3b1f74['featureId'],_0x513dab);}catch{}await _0x55df20['XIAhP'](trackStop,_0x51950c,!![],_0x173ecb);return;}catch{await trackStop(_0x51950c,!![],_0x173ecb);return;}}function _0x1089(_0x58a8d1,_0x3ba7b2){_0x58a8d1=_0x58a8d1-0x100;const _0x1b89b2=_0x1b89();let _0x10898e=_0x1b89b2[_0x58a8d1];return _0x10898e;}async function trackStop(_0x39b9a9,_0x903c74,_0x152414){const _0x3708c5=_0x1089,_0x1b774e={'ninIi':_0x3708c5(0x112)};try{const _0x53e43b=createTelemetryCollector(_0x1b774e['ninIi']);await _0x53e43b[_0x3708c5(0x10e)]({'sessionId':_0x39b9a9??undefined,'hooksEnabled':_0x903c74,'stopAllowed':_0x152414}),await _0x53e43b[_0x3708c5(0x10a)](_0x3708c5(0x113));}catch{}}
@@ -1 +1 @@
1
- (function(_0x53c4e8,_0x15c599){var _0x5c675c=_0xf546,_0x2d0e19=_0x53c4e8();while(!![]){try{var _0x5dd38f=-parseInt(_0x5c675c(0x11c))/0x1*(-parseInt(_0x5c675c(0x11a))/0x2)+-parseInt(_0x5c675c(0x122))/0x3*(parseInt(_0x5c675c(0x120))/0x4)+parseInt(_0x5c675c(0x11e))/0x5+-parseInt(_0x5c675c(0x11f))/0x6*(parseInt(_0x5c675c(0x11d))/0x7)+parseInt(_0x5c675c(0x121))/0x8*(-parseInt(_0x5c675c(0x124))/0x9)+-parseInt(_0x5c675c(0x11b))/0xa+parseInt(_0x5c675c(0x123))/0xb;if(_0x5dd38f===_0x15c599)break;else _0x2d0e19['push'](_0x2d0e19['shift']());}catch(_0x4a4cf0){_0x2d0e19['push'](_0x2d0e19['shift']());}}}(_0x4d6c,0xc1338));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';function _0x4d6c(){var _0x25e6cd=['296yesJBc','4159851vXeTnu','28692466PsEEOx','80010OzVWld','1698ztwWCw','11370000BKZPGv','739skSxAu','8386hwmCwO','4658040SmhePg','2622otpney','4TFyXIM'];_0x4d6c=function(){return _0x25e6cd;};return _0x4d6c();}export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';function _0xf546(_0x4bfdbc,_0x219df8){_0x4bfdbc=_0x4bfdbc-0x11a;var _0x4d6c45=_0x4d6c();var _0xf54649=_0x4d6c45[_0x4bfdbc];return _0xf54649;}export{migrateProfile}from'./migrateProfile.js';
1
+ (function(_0x3a32c2,_0xc0073b){var _0x51e3c1=_0x14e4,_0x134582=_0x3a32c2();while(!![]){try{var _0x266bbb=parseInt(_0x51e3c1(0x1a0))/0x1*(parseInt(_0x51e3c1(0x1a7))/0x2)+-parseInt(_0x51e3c1(0x19f))/0x3*(-parseInt(_0x51e3c1(0x1a8))/0x4)+parseInt(_0x51e3c1(0x1a6))/0x5+-parseInt(_0x51e3c1(0x1a3))/0x6*(parseInt(_0x51e3c1(0x1a1))/0x7)+parseInt(_0x51e3c1(0x1a2))/0x8+-parseInt(_0x51e3c1(0x1a4))/0x9+-parseInt(_0x51e3c1(0x1a5))/0xa*(parseInt(_0x51e3c1(0x19e))/0xb);if(_0x266bbb===_0xc0073b)break;else _0x134582['push'](_0x134582['shift']());}catch(_0x391ac7){_0x134582['push'](_0x134582['shift']());}}}(_0x2487,0x8bdb8));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';function _0x2487(){var _0xd65406=['89276VbxzMX','4912490nUEsAm','147OIsjtm','4yWWkhH','63IbsYui','8046128ncgnZl','358614OweOyi','8712630kUwvpk','30wtmVLH','4912840ecQmkX','168326cxSBsk'];_0x2487=function(){return _0xd65406;};return _0x2487();}function _0x14e4(_0x1b1295,_0x3a94ed){_0x1b1295=_0x1b1295-0x19e;var _0x248757=_0x2487();var _0x14e4e4=_0x248757[_0x1b1295];return _0x14e4e4;}export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';