@ranger-testing/ranger-cli 2.0.7 → 2.1.1
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.
- package/README.md +10 -1
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -0
- package/build/commands/setup/opencode.js +1 -0
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -0
- package/build/commands/utils/model.js +1 -0
- package/build/commands/utils/opencodeConfig.js +1 -0
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -0
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +16 -14
- package/package.json +1 -1
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xa40a8f=_0x56ab;(function(_0x4b1f74,_0x3d65be){const _0x338f05=_0x56ab,_0x25aac3=_0x4b1f74();while(!![]){try{const _0x46e586=parseInt(_0x338f05(0xdd))/0x1+parseInt(_0x338f05(0xd4))/0x2*(parseInt(_0x338f05(0xdc))/0x3)+-parseInt(_0x338f05(0xcb))/0x4*(-parseInt(_0x338f05(0xcf))/0x5)+parseInt(_0x338f05(0xd2))/0x6+parseInt(_0x338f05(0xd7))/0x7*(-parseInt(_0x338f05(0xda))/0x8)+parseInt(_0x338f05(0xdf))/0x9+-parseInt(_0x338f05(0xca))/0xa;if(_0x46e586===_0x3d65be)break;else _0x25aac3['push'](_0x25aac3['shift']());}catch(_0x2555ed){_0x25aac3['push'](_0x25aac3['shift']());}}}(_0x18b0,0x67d0d));function _0x56ab(_0x502e7e,_0x591ac0){_0x502e7e=_0x502e7e-0xc3;const _0x18b047=_0x18b0();let _0x56ab98=_0x18b047[_0x502e7e];return _0x56ab98;}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';function _0x18b0(){const _0x299baf=['\x0aProfiles:','13646qRBSsS','settings.json','includes','5826709CzlIXS','sort','startsWith','8FTYnxX','lGUGg','159kAsaMj','670829VdjUio','length','4838472XIduQN','bug-bashes','fSkDV','IXXoI','log','\x0a*\x20=\x20active\x20profile','WXBeI','UFcAL','Run:\x20ranger\x20profile\x20add\x20<profile-name>','14369100aIpmUz','724OjVHQd','local','zIkZP','legacy','8900xiLQOV','isDirectory','push','4813740LnETiO'];_0x18b0=function(){return _0x299baf;};return _0x18b0();}const NON_ENV_DIRS=['sessions',_0xa40a8f(0xe0),'reports','local','ci'];export async function getEnvNames(){const _0x1591d1=_0xa40a8f,_0xb061f3={'BNHqw':function(_0x136d87){return _0x136d87();},'UFcAL':function(_0x2c1c38,_0x37a5aa){return _0x2c1c38(_0x37a5aa);},'lGUGg':function(_0x55ab75){return _0x55ab75();},'yxMtV':function(_0x3bad01,_0x544121,_0x301a45){return _0x3bad01(_0x544121,_0x301a45);},'kareF':'local','Nbqrq':function(_0x2868cc,_0x1e8fc5){return _0x2868cc(_0x1e8fc5);},'yauHa':function(_0x28af70,_0x516824){return _0x28af70(_0x516824);},'bHvtn':function(_0x4b6faf,_0x1720e1,_0x172670){return _0x4b6faf(_0x1720e1,_0x172670);},'fSkDV':'legacy'},_0x512fb1=_0xb061f3['BNHqw'](getRangerDir);if(!_0xb061f3[_0x1591d1(0xc8)](existsSync,_0x512fb1))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x522d8a=await _0xb061f3[_0x1591d1(0xdb)](readActiveProfileName),_0x5e7b2f=[],_0x4ffc57={},_0x554741=_0xb061f3['yxMtV'](join,_0x512fb1,_0xb061f3['kareF']);if(existsSync(_0x554741)){const _0xbd87cf=await _0xb061f3['Nbqrq'](readdir,_0x554741);for(const _0x4c7042 of _0xbd87cf){const _0x1729d1=join(_0x554741,_0x4c7042),_0x24034f=await stat(_0x1729d1);_0x24034f[_0x1591d1(0xd0)]()&&(_0x5e7b2f[_0x1591d1(0xd1)](_0x4c7042),_0x4ffc57[_0x4c7042]=_0x1591d1(0xcc));}}const _0x334154=join(_0x512fb1,'ci');if(existsSync(_0x334154)){const _0x366e9b=await readdir(_0x334154);for(const _0x530f8d of _0x366e9b){const _0x4612ff=join(_0x334154,_0x530f8d),_0x28695e=await stat(_0x4612ff);_0x28695e[_0x1591d1(0xd0)]()&&(_0x5e7b2f[_0x1591d1(0xd1)](_0x530f8d),_0x4ffc57[_0x530f8d]='ci');}}const _0x40dd55=await _0xb061f3['yauHa'](readdir,_0x512fb1);for(const _0x33d130 of _0x40dd55){if(NON_ENV_DIRS[_0x1591d1(0xd6)](_0x33d130))continue;if(_0x33d130[_0x1591d1(0xd9)]('.'))continue;if(_0x33d130['endsWith']('.txt'))continue;const _0x2de4fa=_0xb061f3['yxMtV'](join,_0x512fb1,_0x33d130),_0x466129=await stat(_0x2de4fa);_0x466129[_0x1591d1(0xd0)]()&&existsSync(_0xb061f3['bHvtn'](join,_0x2de4fa,_0x1591d1(0xd5)))&&(!_0x5e7b2f['includes'](_0x33d130)&&(_0x5e7b2f['push'](_0x33d130),_0x4ffc57[_0x33d130]=_0xb061f3[_0x1591d1(0xc3)]));}return{'envNames':_0x5e7b2f,'activeEnv':_0x522d8a,'envTypes':_0x4ffc57};}export async function envList(){const _0xa7c67a=_0xa40a8f,_0x42fa22={'VqATu':_0xa7c67a(0xc9),'zIkZP':function(_0x14601a,_0x101e47){return _0x14601a===_0x101e47;},'WXBeI':function(_0x42cb81,_0x437a85){return _0x42cb81(_0x437a85);},'IXXoI':_0xa7c67a(0xce)},{envNames:_0x96c1a7,activeEnv:_0x5f28a6,envTypes:_0x34f1ab}=await getEnvNames();if(_0x96c1a7[_0xa7c67a(0xde)]===0x0){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x42fa22['VqATu']);return;}console['log'](_0xa7c67a(0xd3));for(const _0x1cdb03 of _0x96c1a7[_0xa7c67a(0xd8)]()){const _0x20e044=_0x42fa22['zIkZP'](_0x1cdb03,_0x5f28a6),_0x36edd9=_0x34f1ab[_0x1cdb03]||'local',_0x238712=await _0x42fa22[_0xa7c67a(0xc7)](loadSettings,_0x1cdb03),_0x1478e5=_0x42fa22[_0xa7c67a(0xcd)](_0x36edd9,_0x42fa22[_0xa7c67a(0xc4)])?'':'\x20['+_0x36edd9+']';console[_0xa7c67a(0xc5)]('\x20\x20'+(_0x20e044?'*\x20':'\x20\x20')+_0x1cdb03+_0x1478e5),_0x238712['baseUrl']&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x238712['baseUrl']),_0x238712['environmentDetails']&&console[_0xa7c67a(0xc5)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x238712['environmentDetails']);}_0x5f28a6&&console['log'](_0xa7c67a(0xc6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x41fdff=_0x4908;(function(_0x9ac79,_0x2e7652){const _0x41aeee=_0x4908,_0x48b040=_0x9ac79();while(!![]){try{const _0x4993db=parseInt(_0x41aeee(0x19c))/0x1*(-parseInt(_0x41aeee(0x1b0))/0x2)+parseInt(_0x41aeee(0x168))/0x3*(-parseInt(_0x41aeee(0x1a9))/0x4)+parseInt(_0x41aeee(0x10a))/0x5+parseInt(_0x41aeee(0x15d))/0x6*(-parseInt(_0x41aeee(0x16c))/0x7)+-parseInt(_0x41aeee(0x1a1))/0x8+-parseInt(_0x41aeee(0x128))/0x9+parseInt(_0x41aeee(0x113))/0xa;if(_0x4993db===_0x2e7652)break;else _0x48b040['push'](_0x48b040['shift']());}catch(_0x12307c){_0x48b040['push'](_0x48b040['shift']());}}}(_0x46a4,0x6bc0e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5c0d7c from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE=_0x41fdff(0x157),bold=_0x4d54c4=>_0x41fdff(0x11b)+_0x4d54c4+'\x1b[0m';function getGitRepoUrl(){const _0x5acf20=_0x41fdff,_0x182533={'uDONv':_0x5acf20(0x15a),'UAmIv':_0x5acf20(0x125),'jBkmO':_0x5acf20(0x1bb)};try{const _0x2d7360=execSync(_0x182533[_0x5acf20(0x13c)],{'encoding':_0x182533[_0x5acf20(0x15b)],'stdio':['pipe',_0x182533['jBkmO'],_0x182533[_0x5acf20(0x1a6)]]})['trim']();return _0x2d7360['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function _0x46a4(){const _0x3e5365=['UAmIv','fqZMv','8238cwmnaV','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','tPPxs','IguNy','oDBgU','\x0a✅\x20Resumed\x20feature\x20review:\x20','version','dashboardUrl','zAnVG','\x20blocked','any','36cvNvIU','\x0aGenerating\x20report...','approved','QBCId','1449UbfIqm','UYnRH','No\x20sessions\x20found.','\x20\x20\x20\x20\x20ID:\x20','stdout','dtGEO','YLmII','CLAUDE_SESSION_ID','KTbgB','lPMCk','join','latestReview','\x20—\x20','IEWov','cBney','NArcM','incompleteItems','\x20--current-branch','selected','HVQAU','mHivn','authorName','split','\x20\x20\x20\x20\x20\x20Approved','stdin','completedAt','find','incompleteReason','\x0a✅\x20Feature\x20review\x20created:\x20','gitBranch','):\x20\x22','mOgag','.md','completed','stats','gitRepoUrl','USqDb','length','pxONe','Kohxc','mvFFT','TKeDK','\x0aCreating\x20feature\x20review...','error','\x20scenario(s).','ZybQW','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','\x20\x20\x20\x20\x20\x20Cancelled:\x20','1NxqovP','\x20\x20\x20\x20','\x20at\x20[','PVlOw','DfBwV','5306888miRyyD','\x20unaddressed\x20comment(s)','hMOJT','status','\x20\x20\x20Created:\x20','jBkmO','jxfTU','type','112076XcZZlh','blockedReason','xwmgZ','\x20incomplete','coordinates','content','XLTWi','1733254qGgsKu','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x20\x20\x20Status:\x20','push','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20Branch:\x20','TZDLx','scenario','spatial','verifiedItems','isTTY','pipe','ZVWcn','name','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','currentBranch','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','GNNpD','blocked','WhrEp','hIbSh','offset','canceledReason','items','2534720OBrNux','\x20\x20\x20Description:\x20','RFZAk','NYTYb','repeat','No\x20scenarios\x20found.','\x20feature\x20review(s)\x20found','sLmvu','LyYTj','22885580gtxXFQ','eXBWi','feedback-images','UMsdC','exit','toFixed','\x0aNo\x20feature\x20reviews\x20found.','\x20(v','\x1b[1m','YUCpo','unaddressedComments','iBkEm','Scenario\x20','\x20--limit\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','mnRqy','closed','limit','utf-8','GyqCa','\x0a✅\x20Scenario\x20updated','1833453yXbsxU','wpSMF','description','trim','TIyym','\x20scenarios.','\x20\x20\x20Progress:\x20','incomplete','terminalReason','\x20\x20\x20Repository:\x20','toLocaleString','fCZKw','XpdWW','Not\x20in\x20a\x20git\x20repository.','createdAt','log','prompt','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','...','uDONv','iteration','JbHLJ','toLocaleDateString','blockedItems','warn','yiACl','ryLea','Current\x20session\x20not\x20found.','\x20\x20✅\x20No\x20feedback\x20to\x20address','map','checklistItems','gQJbg','totalCount',':\x20\x22','\x20\x20\x20\x20\x20Progress:\x20','assetUrl','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','parentItemId','round','QSqII','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20','verificationInProgressItems','style','qnxHV','\x0a✅\x20Session\x20','active-feature.txt','VqoTc','\x20--include-deleted','git\x20remote\x20get-url\x20origin'];_0x46a4=function(){return _0x3e5365;};return _0x46a4();}function getGitBranch(){const _0x3fef09=_0x41fdff,_0xfa3b6b={'akUwz':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','oDBgU':'pipe'};try{return execSync(_0xfa3b6b['akUwz'],{'encoding':_0x3fef09(0x125),'stdio':[_0xfa3b6b['oDBgU'],_0xfa3b6b[_0x3fef09(0x161)],_0x3fef09(0x1bb)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x311ce5=_0x41fdff,_0x47a5b2={'WhrEp':function(_0x1937d6){return _0x1937d6();},'SGqTh':function(_0x39194c,_0x47aa70){return _0x39194c(_0x47aa70);}},_0x34b5b0=join(_0x47a5b2[_0x311ce5(0x105)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x47a5b2['SGqTh'](existsSync,_0x34b5b0))return null;try{const _0x2a8e02=await readFile(_0x34b5b0,_0x311ce5(0x125));return _0x2a8e02['trim']()||null;}catch{return null;}}function _0x4908(_0x11906b,_0xba534e){_0x11906b=_0x11906b-0x104;const _0x46a433=_0x46a4();let _0x490843=_0x46a433[_0x11906b];return _0x490843;}async function setActiveFeatureId(_0x1e3f99){const _0x16ff01=_0x41fdff,_0x212fd7={'MQTlN':function(_0x3030ff){return _0x3030ff();},'JbHLJ':function(_0x2b9ec6,_0x871307,_0x54bb75){return _0x2b9ec6(_0x871307,_0x54bb75);},'TKeDK':_0x16ff01(0x125)},_0x3717d7=_0x212fd7['MQTlN'](getRangerDir),_0x2f33c6=_0x212fd7[_0x16ff01(0x13e)](join,_0x3717d7,ACTIVE_FEATURE_FILE);!existsSync(_0x3717d7)&&await mkdir(_0x3717d7,{'recursive':!![]}),await writeFile(_0x2f33c6,_0x1e3f99,_0x212fd7[_0x16ff01(0x195)]);}function getProgressDisplay(_0x27748a){const _0x43316f=_0x41fdff,_0x4558dd={'LyYTj':function(_0x225dde,_0x2fdd87){return _0x225dde+_0x2fdd87;},'PVlOw':function(_0x4e1fee,_0x5da440){return _0x4e1fee/_0x5da440;},'mnDIP':function(_0x13725e,_0x42b491){return _0x13725e>_0x42b491;}},_0x7d3d71=_0x27748a[_0x43316f(0x1b9)]||0x0,_0x2bd4f6=_0x27748a[_0x43316f(0x153)]||0x0,_0x540e27=_0x27748a[_0x43316f(0x140)]||0x0,_0x4efefb=_0x27748a[_0x43316f(0x17c)]||0x0,_0x53062e=_0x27748a['pendingItems']||0x0,_0x12b1d5=_0x4558dd['LyYTj'](_0x7d3d71+_0x2bd4f6,_0x540e27)+_0x4efefb+_0x53062e;if(_0x12b1d5===0x0)return'-';const _0x365b34=0xa,_0x92b073=Math[_0x43316f(0x14f)](_0x4558dd[_0x43316f(0x19f)](_0x7d3d71,_0x12b1d5)*_0x365b34),_0x4a2305=_0x4558dd[_0x43316f(0x112)]('█'[_0x43316f(0x10e)](_0x92b073),'░'[_0x43316f(0x10e)](_0x365b34-_0x92b073)),_0x1af48f=[];if(_0x540e27>0x0)_0x1af48f[_0x43316f(0x1b3)](_0x540e27+_0x43316f(0x166));if(_0x4558dd['mnDIP'](_0x4efefb,0x0))_0x1af48f['push'](_0x4efefb+_0x43316f(0x1ac));if(_0x2bd4f6>0x0)_0x1af48f['push'](_0x2bd4f6+'\x20in\x20progress');const _0x1dea1b=_0x1af48f['length']>0x0?'\x20('+_0x1af48f[_0x43316f(0x176)](',\x20')+')':'';return _0x4a2305+'\x20'+_0x7d3d71+'/'+_0x12b1d5+'\x20verified'+_0x1dea1b;}function displayFeature(_0x246900,_0x4483e9){const _0x4277af=_0x41fdff,_0x1a5db3={'TZDLx':function(_0x869781,_0x934000){return _0x869781<_0x934000;},'SieSS':function(_0x152d17,_0x74224c){return _0x152d17===_0x74224c;},'NArcM':_0x4277af(0x123),'RFcOw':function(_0x55310f,_0x3dd38e){return _0x55310f===_0x3dd38e;},'SFjho':_0x4277af(0x16a),'DCQYj':'incomplete','xgbQj':function(_0x5b9573,_0x39821d){return _0x5b9573===_0x39821d;},'VqoTc':function(_0x7bc28,_0x506927){return _0x7bc28>_0x506927;},'oirMd':function(_0x465be2,_0xdd7e92){return _0x465be2!==_0xdd7e92;},'bKlyw':'verified','RFZAk':'\x20[has\x20reviewer\x20feedback]','xwmgZ':function(_0x255a1,_0x55db4a){return _0x255a1+_0x55db4a;},'IguNy':_0x4277af(0x104),'hqCqH':function(_0x1c1234,_0x306e35){return _0x1c1234===_0x306e35;}};console['log']('\x0a'+_0x246900['name']+'\x20('+_0x246900[_0x4277af(0x164)]+')');_0x246900['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x246900['stats']));_0x246900[_0x4277af(0x12a)]&&console['log'](_0x4277af(0x10b)+_0x246900['description']);_0x246900['gitRepoUrl']&&console[_0x4277af(0x137)](_0x4277af(0x131)+_0x246900[_0x4277af(0x18f)]);_0x246900['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x246900['gitBranch']);console[_0x4277af(0x137)]('\x20\x20\x20Created:\x20'+new Date(_0x246900[_0x4277af(0x136)])[_0x4277af(0x132)]());_0x246900[_0x4277af(0x185)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x246900['completedAt'])['toLocaleString']());if(_0x4483e9&&_0x4483e9[_0x4277af(0x191)]>0x0){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x43c39f=0x0;_0x1a5db3[_0x4277af(0x1b6)](_0x43c39f,_0x4483e9['length']);_0x43c39f++){const _0x54cde7=_0x4483e9[_0x43c39f];let _0x529cfe;if(_0x1a5db3['SieSS'](_0x54cde7[_0x4277af(0x1a4)],_0x1a5db3[_0x4277af(0x17b)])&&_0x1a5db3['RFcOw'](_0x54cde7['terminalReason'],_0x1a5db3['SFjho']))_0x529cfe='✅';else{if(_0x54cde7['status']==='verified')_0x529cfe='🟢';else{if(_0x1a5db3['SieSS'](_0x54cde7[_0x4277af(0x1a4)],_0x1a5db3['DCQYj']))_0x529cfe='🟠';else{if(_0x1a5db3['xgbQj'](_0x54cde7['status'],'blocked'))_0x529cfe='🛑';else{if(_0x54cde7['status']==='closed')_0x529cfe='⛔';else _0x1a5db3['RFcOw'](_0x54cde7[_0x4277af(0x1a4)],'verification_in_progress')?_0x529cfe='⏳':_0x529cfe='⬜';}}}}const _0x32bfc7=_0x1a5db3[_0x4277af(0x158)](_0x54cde7['version'],0x1)?'\x20(v'+_0x54cde7['version']+')':'',_0x1aa889=_0x54cde7['version']>0x1&&_0x54cde7[_0x4277af(0x14e)]&&_0x54cde7['status']!==_0x1a5db3['NArcM']&&_0x1a5db3['oirMd'](_0x54cde7[_0x4277af(0x1a4)],_0x1a5db3['bKlyw'])?_0x1a5db3[_0x4277af(0x10c)]:'';console[_0x4277af(0x137)](_0x4277af(0x152)+_0x1a5db3[_0x4277af(0x1ab)](_0x43c39f,0x1)+'.\x20'+_0x529cfe+'\x20'+_0x54cde7[_0x4277af(0x12a)]+_0x32bfc7+_0x1aa889);_0x54cde7[_0x4277af(0x1a4)]===_0x1a5db3[_0x4277af(0x160)]&&_0x54cde7[_0x4277af(0x1aa)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x54cde7[_0x4277af(0x1aa)]);_0x1a5db3['hqCqH'](_0x54cde7['status'],_0x4277af(0x12f))&&_0x54cde7[_0x4277af(0x187)]&&console['log'](_0x4277af(0x121)+_0x54cde7['incompleteReason']);if(_0x1a5db3['RFcOw'](_0x54cde7['status'],_0x4277af(0x123))&&_0x54cde7[_0x4277af(0x130)]==='approved')console[_0x4277af(0x137)](_0x4277af(0x183));else _0x1a5db3['SieSS'](_0x54cde7[_0x4277af(0x1a4)],_0x4277af(0x123))&&_0x54cde7['canceledReason']&&console['log'](_0x4277af(0x19b)+_0x54cde7[_0x4277af(0x108)]);}}}export async function featureCreate(_0x463da7,_0x339d8d){const _0x2a627f=_0x41fdff,_0x147a0c={'rgSxw':function(_0x53f3b3){return _0x53f3b3();},'GNNpD':function(_0x2d8a47){return _0x2d8a47();},'iBkEm':_0x2a627f(0x196),'ZybQW':function(_0x539a10,_0x18b14e){return _0x539a10(_0x18b14e);},'GlkSr':function(_0x596d9a,_0x531188,_0x1a12d1){return _0x596d9a(_0x531188,_0x1a12d1);}},{envNames:_0x841b21}=await getEnvNames();_0x841b21['length']===0x0&&console[_0x2a627f(0x141)]('\x0a'+formatProfileRequiredMessage(_0x31bcb8=>bold(_0x31bcb8)));const _0x2a1ea6=_0x339d8d['scenarios']?_0x339d8d['scenarios'][_0x2a627f(0x146)](_0x10f0c4=>_0x10f0c4[_0x2a627f(0x12b)]()):[],_0x190d5d=_0x147a0c['rgSxw'](getGitRepoUrl),_0x293bb9=_0x147a0c[_0x2a627f(0x1c1)](getGitBranch);console[_0x2a627f(0x137)](_0x147a0c[_0x2a627f(0x11e)]);const _0x1164af=await _0x147a0c[_0x2a627f(0x199)](createFeature,{'name':_0x463da7,'description':_0x339d8d[_0x2a627f(0x12a)],'checklist':_0x2a1ea6,'gitRepoUrl':_0x190d5d,'gitBranch':_0x293bb9});await setActiveFeatureId(_0x1164af['id']),await _0x147a0c[_0x2a627f(0x199)](tryStartCurrentSession,_0x1164af['id']);const _0x20402b=process['env'][_0x2a627f(0x173)];_0x20402b&®isterSession(_0x20402b,_0x1164af['id']),console['log'](_0x2a627f(0x188)+_0x1164af['id']),_0x147a0c['GlkSr'](displayFeature,_0x1164af,_0x1164af[_0x2a627f(0x147)]),console['log'](_0x2a627f(0x1be));}export async function featureList(_0x3c5a4c){const _0x4aba6e=_0x41fdff,_0x155ede={'akUaO':function(_0x57e7c7){return _0x57e7c7();},'GyqCa':function(_0x129c3f){return _0x129c3f();},'sLmvu':function(_0xa4a27d,_0x56f053){return _0xa4a27d(_0x56f053);},'YUCpo':function(_0x54e138,_0x86110b){return _0x54e138>_0x86110b;},'ryLea':function(_0x9d4530,_0xb36c3){return _0x9d4530<_0xb36c3;}},_0x10dbdb={'limit':_0x3c5a4c[_0x4aba6e(0x124)]??0xa,'offset':_0x3c5a4c[_0x4aba6e(0x107)]??0x0,'includeDeleted':_0x3c5a4c['includeDeleted']};_0x3c5a4c[_0x4aba6e(0x1bf)]&&(_0x10dbdb['gitRepoUrl']=_0x155ede['akUaO'](getGitRepoUrl),_0x10dbdb[_0x4aba6e(0x189)]=_0x155ede[_0x4aba6e(0x126)](getGitBranch));const _0x477660=await _0x155ede['sLmvu'](listFeatures,_0x10dbdb);if(_0x477660[_0x4aba6e(0x109)]['length']===0x0){console['log'](_0x4aba6e(0x119));return;}const _0x227c11=_0x155ede[_0x4aba6e(0x11c)](_0x477660['totalCount'],_0x477660['items'][_0x4aba6e(0x191)])?'Showing\x20'+_0x477660['items'][_0x4aba6e(0x191)]+'\x20of\x20'+_0x477660['totalCount']:_0x477660[_0x4aba6e(0x149)]+_0x4aba6e(0x110);console['log']('\x0a'+_0x227c11+':\x0a');for(const _0x57975d of _0x477660['items']){const _0x3d68ba='3|0|4|5|2|1'['split']('|');let _0x4a49ac=0x0;while(!![]){switch(_0x3d68ba[_0x4a49ac++]){case'0':console[_0x4aba6e(0x137)]('\x20\x20\x20ID:\x20'+_0x57975d['id']);continue;case'1':console['log']('');continue;case'2':console['log'](_0x4aba6e(0x1a5)+new Date(_0x57975d[_0x4aba6e(0x136)])['toLocaleDateString']());continue;case'3':console['log'](''+_0x57975d['name']);continue;case'4':_0x57975d['stats']&&console['log'](_0x4aba6e(0x12e)+_0x155ede[_0x4aba6e(0x111)](getProgressDisplay,_0x57975d[_0x4aba6e(0x18e)]));continue;case'5':_0x57975d['gitBranch']&&console[_0x4aba6e(0x137)](_0x4aba6e(0x1b5)+_0x57975d[_0x4aba6e(0x189)]);continue;}break;}}const _0xd66a3=_0x10dbdb[_0x4aba6e(0x124)]??0xa,_0x4b555f=(_0x10dbdb[_0x4aba6e(0x107)]??0x0)+_0x477660['items']['length'];if(_0x155ede[_0x4aba6e(0x143)](_0x4b555f,_0x477660['totalCount'])){const _0x3926c0=_0xd66a3!==0xa?_0x4aba6e(0x120)+_0xd66a3:'',_0x3678c2=_0x3c5a4c['currentBranch']?_0x4aba6e(0x17d):'',_0x3918ec=_0x3c5a4c['includeDeleted']?_0x4aba6e(0x159):'';console[_0x4aba6e(0x137)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x4b555f+_0x3926c0+_0x3678c2+_0x3918ec);}}export async function featureShow(_0x40ae8b){const _0x4e0fb3=_0x41fdff,_0x223bb5={'fqZMv':_0x4e0fb3(0x14d),'QqObA':function(_0x4c7fd9,_0x5effaf){return _0x4c7fd9(_0x5effaf);},'bqjZf':function(_0x4d0043,_0x491c4d,_0xdc3855){return _0x4d0043(_0x491c4d,_0xdc3855);}},_0x108ce4=_0x40ae8b||await getActiveFeatureId();if(!_0x108ce4)throw new Error(_0x223bb5[_0x4e0fb3(0x15c)]);const _0x4f935b=await _0x223bb5['QqObA'](getFeature,_0x108ce4);_0x223bb5['bqjZf'](displayFeature,_0x4f935b,_0x4f935b[_0x4e0fb3(0x147)]);}export async function featureResume(_0x20dde5){const _0x2f0c4d=_0x41fdff,_0x12fd7a={'zjfci':function(_0x1ed6c9,_0x4390c0){return _0x1ed6c9!==_0x4390c0;},'dtGEO':function(_0x1455a4,_0x33d57e){return _0x1455a4(_0x33d57e);},'tPPxs':function(_0x42c00e,_0x4e94d5,_0x4c8276){return _0x42c00e(_0x4e94d5,_0x4c8276);},'npLPv':function(_0x272ef1){return _0x272ef1();},'IEWov':function(_0x1390ee,_0x2a7cdc){return _0x1390ee&&_0x2a7cdc;},'pIkID':_0x2f0c4d(0x135),'zAnVG':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','QBCId':function(_0x1822ab,_0x38901f){return _0x1822ab===_0x38901f;},'mvFFT':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','TIyym':_0x2f0c4d(0x15e),'XsYSg':'list','Kohxc':_0x2f0c4d(0x17e),'UYnRH':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','KTbgB':function(_0x2e0c4d,_0x3bf485){return _0x2e0c4d(_0x3bf485);},'BcZyd':function(_0x155e59,_0x38f293,_0x4554e2){return _0x155e59(_0x38f293,_0x4554e2);}};if(_0x20dde5){const _0x5abca5=await getFeature(_0x20dde5);await setActiveFeatureId(_0x5abca5['id']);const _0x23936d=getGitBranch();_0x23936d&&_0x12fd7a['zjfci'](_0x23936d,_0x5abca5[_0x2f0c4d(0x189)])&&(await updateFeature(_0x5abca5['id'],{'gitBranch':_0x23936d}),console[_0x2f0c4d(0x137)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x23936d));console[_0x2f0c4d(0x137)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x5abca5['name']+'\x20('+_0x5abca5['id']+')'),await _0x12fd7a[_0x2f0c4d(0x171)](tryStartCurrentSession,_0x5abca5['id']);const _0x222c7a=process['env'][_0x2f0c4d(0x173)];_0x222c7a&&_0x12fd7a[_0x2f0c4d(0x15f)](registerSession,_0x222c7a,_0x5abca5['id']);displayFeature(_0x5abca5,_0x5abca5[_0x2f0c4d(0x147)]),await printFeedbackNudge(_0x5abca5['id']);return;}const _0x173492=getGitRepoUrl(),_0x165e92=_0x12fd7a['npLPv'](getGitBranch);if(_0x12fd7a[_0x2f0c4d(0x179)](!_0x173492,!_0x165e92))throw new Error(_0x12fd7a['pIkID']);console[_0x2f0c4d(0x137)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x173492||_0x2f0c4d(0x167))+'\x20/\x20'+(_0x165e92||_0x2f0c4d(0x167))+_0x2f0c4d(0x13b));const _0x33b750=await listFeatures({'gitRepoUrl':_0x173492,'gitBranch':_0x165e92}),_0x2b2fb0=_0x33b750[_0x2f0c4d(0x109)]['filter'](_0x52acd2=>!_0x52acd2['completedAt']);if(_0x2b2fb0[_0x2f0c4d(0x191)]===0x0){console[_0x2f0c4d(0x137)](_0x12fd7a[_0x2f0c4d(0x165)]),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x5c6c8c;if(_0x12fd7a[_0x2f0c4d(0x16b)](_0x2b2fb0['length'],0x1))_0x5c6c8c=_0x2b2fb0[0x0];else{const _0x18a674=process[_0x2f0c4d(0x184)]['isTTY']&&process[_0x2f0c4d(0x170)][_0x2f0c4d(0x1ba)];if(!_0x18a674){console['log'](_0x12fd7a[_0x2f0c4d(0x194)]);for(const _0xbe0e3b of _0x2b2fb0){console['log']('\x20\x20'+_0xbe0e3b['name']),console[_0x2f0c4d(0x137)](_0x2f0c4d(0x16f)+_0xbe0e3b['id']),_0xbe0e3b[_0x2f0c4d(0x18e)]&&console[_0x2f0c4d(0x137)](_0x2f0c4d(0x14b)+getProgressDisplay(_0xbe0e3b['stats'])),_0xbe0e3b[_0x2f0c4d(0x189)]&&console['log'](_0x2f0c4d(0x151)+_0xbe0e3b[_0x2f0c4d(0x189)]);}throw new Error(_0x12fd7a[_0x2f0c4d(0x12c)]);}const {selected:_0x496d5e}=await _0x5c0d7c[_0x2f0c4d(0x138)]([{'type':_0x12fd7a['XsYSg'],'name':_0x12fd7a[_0x2f0c4d(0x193)],'message':_0x12fd7a[_0x2f0c4d(0x16d)],'choices':_0x2b2fb0[_0x2f0c4d(0x146)](_0x2538f8=>({'name':_0x2538f8['name']+'\x20('+_0x2538f8['id']+')','value':_0x2538f8['id']}))}]);_0x5c6c8c=_0x2b2fb0['find'](_0x5b37e0=>_0x5b37e0['id']===_0x496d5e);}await setActiveFeatureId(_0x5c6c8c['id']);_0x165e92&&_0x165e92!==_0x5c6c8c[_0x2f0c4d(0x189)]&&(await _0x12fd7a['tPPxs'](updateFeature,_0x5c6c8c['id'],{'gitBranch':_0x165e92}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x165e92));console[_0x2f0c4d(0x137)](_0x2f0c4d(0x162)+_0x5c6c8c['name']+'\x20('+_0x5c6c8c['id']+')'),await tryStartCurrentSession(_0x5c6c8c['id']);const _0x5780a7=await _0x12fd7a[_0x2f0c4d(0x174)](getFeature,_0x5c6c8c['id']),_0x3ff65c=process['env']['CLAUDE_SESSION_ID'];_0x3ff65c&®isterSession(_0x3ff65c,_0x5780a7['id']),_0x12fd7a['BcZyd'](displayFeature,_0x5780a7,_0x5780a7['checklistItems']),await printFeedbackNudge(_0x5780a7['id']);}async function printFeedbackNudge(_0x35d994){const _0x540a9f=_0x41fdff,_0x3eb21b={'ZvGsz':function(_0x1f3112,_0x253ac1){return _0x1f3112(_0x253ac1);},'itvFN':function(_0x4a3f69,_0x2670cc){return _0x4a3f69>_0x2670cc;},'XLTWi':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0xe8b4ac}=await _0x3eb21b['ZvGsz'](getActionItems,_0x35d994);let _0xe96d38=0x0,_0x2184e1=0x0;for(const _0x291c79 of _0xe8b4ac){const _0x28fe08=await getItemFeedback(_0x35d994,_0x291c79['id']);_0x3eb21b['itvFN'](_0x28fe08[_0x540a9f(0x11d)][_0x540a9f(0x191)],0x0)&&(_0xe96d38+=_0x28fe08['unaddressedComments'][_0x540a9f(0x191)],_0x2184e1++);}_0xe96d38>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0xe96d38+_0x540a9f(0x1b1)+_0x2184e1+_0x540a9f(0x198)),console['log'](_0x3eb21b[_0x540a9f(0x1af)]));}catch{}}async function tryStartCurrentSession(_0x3a2d27){const _0x19434b=_0x41fdff,_0x3d8848={'HsKTP':function(_0x5e404f,_0x1a0d19){return _0x5e404f(_0x1a0d19);},'qnxHV':function(_0x4b8e6a,_0x40ecc3,_0x53043f){return _0x4b8e6a(_0x40ecc3,_0x53043f);}};try{const {sessions:_0x4ee109}=await _0x3d8848['HsKTP'](listFeatureSessions,_0x3a2d27),_0x1009d8=_0x4ee109[_0x19434b(0x186)](_0x5b3c2c=>_0x5b3c2c[_0x19434b(0x1a4)]==='ready');_0x1009d8&&(await _0x3d8848[_0x19434b(0x155)](startSession,_0x3a2d27,_0x1009d8['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x1009d8[_0x19434b(0x13d)]));}catch{}}export async function featureReport(_0x1eff91,_0x2fd680){const _0x589367=_0x41fdff,_0x3fcf01={'yiACl':function(_0x4be988){return _0x4be988();},'pxONe':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','MCbJe':function(_0x36e153,_0x35114c,_0x1c8394,_0x6b1ba2){return _0x36e153(_0x35114c,_0x1c8394,_0x6b1ba2);},'USqDb':function(_0x4f1611,_0x2b9d5f,_0x1cccb0){return _0x4f1611(_0x2b9d5f,_0x1cccb0);},'snCMp':function(_0x1c1160,_0x250ac8){return _0x1c1160(_0x250ac8);},'chQHb':'utf-8'},_0x2a5914=_0x1eff91||await _0x3fcf01[_0x589367(0x142)](getActiveFeatureId);if(!_0x2a5914)throw new Error(_0x3fcf01[_0x589367(0x192)]);console['log'](_0x589367(0x169));const _0x2d8cce=await getFeatureReportMarkdown(_0x2a5914,{'style':_0x2fd680[_0x589367(0x154)]}),_0x101e1b=_0x2fd680['output']||_0x3fcf01['MCbJe'](join,getRangerDir(),'reports',_0x2a5914+_0x589367(0x18c)),_0x5ba232=_0x3fcf01[_0x589367(0x190)](join,_0x101e1b,'..');!_0x3fcf01['snCMp'](existsSync,_0x5ba232)&&await _0x3fcf01['USqDb'](mkdir,_0x5ba232,{'recursive':!![]}),await writeFile(_0x101e1b,_0x2d8cce,_0x3fcf01['chQHb']),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x101e1b);}export async function featureConcludeSession(_0x8e209c){const _0x1bf4a3=_0x41fdff,_0x24699d={'kIQLK':_0x1bf4a3(0x14d),'XClmH':function(_0x21a617,_0x93d2ed){return _0x21a617(_0x93d2ed);},'mOgag':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','dTREt':_0x1bf4a3(0x144),'RyGqV':'\x0aConcluding\x20session...','cBney':function(_0x476bc8,_0x2749cc,_0xbbb093){return _0x476bc8(_0x2749cc,_0xbbb093);}},_0x2ac3d7=_0x8e209c||await getActiveFeatureId();if(!_0x2ac3d7)throw new Error(_0x24699d['kIQLK']);const _0x2752e5=await _0x24699d['XClmH'](getFeature,_0x2ac3d7);if(!_0x2752e5['currentSessionId'])throw new Error(_0x24699d[_0x1bf4a3(0x18b)]);const {sessions:_0x383fa4}=await listFeatureSessions(_0x2ac3d7),_0x1de903=_0x383fa4['find'](_0x5b46a7=>_0x5b46a7['id']===_0x2752e5['currentSessionId']);if(!_0x1de903)throw new Error(_0x24699d['dTREt']);if(_0x1de903['status']===_0x1bf4a3(0x18d)){console['log']('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x1de903[_0x1bf4a3(0x1a4)]!=='in_progress')throw new Error(_0x1bf4a3(0x139)+_0x1de903['status']);console[_0x1bf4a3(0x137)](_0x24699d['RyGqV']),await _0x24699d[_0x1bf4a3(0x17a)](concludeSession,_0x2ac3d7,_0x2752e5['currentSessionId']),console['log'](_0x1bf4a3(0x156)+_0x1de903['iteration']+'\x20concluded.'),console[_0x1bf4a3(0x137)](_0x1bf4a3(0x13a));}export async function featureSessions(_0x4ee4b1){const _0x2ca95e=_0x41fdff,_0x3af663={'sLUMQ':function(_0x328761){return _0x328761();},'kMkyY':function(_0x4d3c08,_0x53cd66){return _0x4d3c08(_0x53cd66);},'mifur':_0x2ca95e(0x18d)},_0x25948f=_0x4ee4b1||await _0x3af663['sLUMQ'](getActiveFeatureId);if(!_0x25948f)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x7089f1=await getFeature(_0x25948f);console['log'](_0x2ca95e(0x19a)+_0x7089f1[_0x2ca95e(0x1bd)]+'\x0a');const {sessions:_0x581f6e}=await _0x3af663['kMkyY'](listFeatureSessions,_0x25948f);if(_0x581f6e['length']===0x0){console[_0x2ca95e(0x137)](_0x2ca95e(0x16e));return;}for(const _0x2be6cd of _0x581f6e){const _0x1d80a2=_0x2be6cd[_0x2ca95e(0x1a4)]===_0x3af663['mifur']?'✅':_0x2be6cd['status']==='in_progress'?'🔄':'▶️';console['log'](_0x1d80a2+'\x20Session\x20'+_0x2be6cd[_0x2ca95e(0x13d)]+'\x20('+_0x2be6cd['id']+')'),console[_0x2ca95e(0x137)](_0x2ca95e(0x1b2)+_0x2be6cd[_0x2ca95e(0x1a4)]),console[_0x2ca95e(0x137)](_0x2ca95e(0x1a5)+new Date(_0x2be6cd['createdAt'])['toLocaleString']()),_0x2be6cd[_0x2ca95e(0x185)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x2be6cd['completedAt'])[_0x2ca95e(0x132)]()),console[_0x2ca95e(0x137)]('');}}export async function featureAddScenario(_0x271f22,_0x3fa27f){const _0x590b37=_0x41fdff,_0x2b0cc1={'ZVWcn':function(_0x170338,_0x3479e5,_0x3840e8){return _0x170338(_0x3479e5,_0x3840e8);},'XpdWW':function(_0x1363ed,_0x41c415){return _0x1363ed(_0x41c415);},'YLmII':function(_0x942f66,_0xbf5655,_0x597def){return _0x942f66(_0xbf5655,_0x597def);}},_0x241cc9=_0x3fa27f||await getActiveFeatureId();if(!_0x241cc9)throw new Error(_0x590b37(0x14d));const _0x27f729=await getFeature(_0x241cc9);if(_0x27f729[_0x590b37(0x177)]&&!_0x27f729['latestReview']['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x27f729['dashboardUrl']);await _0x2b0cc1[_0x590b37(0x1bc)](createChecklistItem,_0x241cc9,_0x271f22);const _0x1fb556=await _0x2b0cc1[_0x590b37(0x134)](getFeature,_0x241cc9);console['log']('\x0a✅\x20Scenario\x20added'),_0x2b0cc1[_0x590b37(0x172)](displayFeature,_0x1fb556,_0x1fb556['checklistItems']);}export async function featureEditScenario(_0x5d7888,_0x92d18d){const _0x1e571a=_0x41fdff,_0x1d413d={'QSqII':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','LONsj':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','SSCDh':'Please\x20finish\x20your\x20review\x20first:','wpSMF':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','DfBwV':'\x0aAvailable\x20scenarios:','fCZKw':function(_0x43e5d3,_0x14afa6){return _0x43e5d3-_0x14afa6;},'lPMCk':function(_0x5282aa,_0x4dcc38){return _0x5282aa<_0x4dcc38;},'gQJbg':function(_0x1e4a76,_0x556ce8){return _0x1e4a76>=_0x556ce8;},'NYTYb':function(_0x273722,_0x5a5ca5,_0x8bd3f6){return _0x273722(_0x5a5ca5,_0x8bd3f6);}},_0x222398=_0x92d18d['id']||await getActiveFeatureId();!_0x222398&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x1e571a(0x197)](_0x1d413d[_0x1e571a(0x150)]),process['exit'](0x1));const _0x43374b=await getFeature(_0x222398);_0x43374b[_0x1e571a(0x177)]&&!_0x43374b[_0x1e571a(0x177)]['submittedAt']&&(console['error'](_0x1d413d['LONsj']),console[_0x1e571a(0x197)](_0x1d413d['SSCDh']),console[_0x1e571a(0x197)]('\x20\x20'+_0x43374b['dashboardUrl']),process['exit'](0x1));const _0x125b62=_0x43374b[_0x1e571a(0x147)]||[];_0x125b62['length']===0x0&&(console['error'](_0x1d413d[_0x1e571a(0x129)]),process[_0x1e571a(0x117)](0x1));if(_0x92d18d[_0x1e571a(0x1b7)]===undefined){console[_0x1e571a(0x197)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x1d413d['DfBwV']);for(let _0x151be2=0x0;_0x151be2<_0x125b62[_0x1e571a(0x191)];_0x151be2++){console[_0x1e571a(0x137)]('\x20\x20'+(_0x151be2+0x1)+'.\x20'+_0x125b62[_0x151be2][_0x1e571a(0x12a)]);}process['exit'](0x1);}const _0x3b76be=_0x1d413d[_0x1e571a(0x133)](_0x92d18d['scenario'],0x1);if(_0x1d413d['lPMCk'](_0x3b76be,0x0)||_0x1d413d[_0x1e571a(0x148)](_0x3b76be,_0x125b62[_0x1e571a(0x191)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x92d18d[_0x1e571a(0x1b7)]+'.\x20Feature\x20review\x20has\x20'+_0x125b62[_0x1e571a(0x191)]+_0x1e571a(0x12d)),console[_0x1e571a(0x137)](_0x1d413d[_0x1e571a(0x1a0)]);for(let _0xfa4876=0x0;_0x1d413d[_0x1e571a(0x175)](_0xfa4876,_0x125b62[_0x1e571a(0x191)]);_0xfa4876++){console[_0x1e571a(0x137)]('\x20\x20'+(_0xfa4876+0x1)+'.\x20'+_0x125b62[_0xfa4876][_0x1e571a(0x12a)]);}process['exit'](0x1);}const _0x59f2c8=_0x125b62[_0x3b76be];await updateChecklistItem(_0x222398,_0x59f2c8['id'],{'description':_0x5d7888});const _0x348249=await getFeature(_0x222398);console[_0x1e571a(0x137)](_0x1e571a(0x127)),_0x1d413d[_0x1e571a(0x10d)](displayFeature,_0x348249,_0x348249[_0x1e571a(0x147)]);}async function downloadFeedbackImage(_0x69ec19,_0x320468){const _0x5d692a=_0x41fdff,_0x77f7c7={'RNdrr':function(_0x414c02,_0x3be0fb,_0x59997d){return _0x414c02(_0x3be0fb,_0x59997d);},'cLgJz':_0x5d692a(0x115),'hMOJT':function(_0x1e0d6e,_0x2773e1,_0xe542ab){return _0x1e0d6e(_0x2773e1,_0xe542ab);}};try{const _0x2347de=_0x77f7c7['RNdrr'](join,getRangerDir(),_0x77f7c7['cLgJz']);await _0x77f7c7[_0x5d692a(0x1a3)](mkdir,_0x2347de,{'recursive':!![]});const _0x200089=join(_0x2347de,'comment_'+_0x320468+'.png'),_0x17e87d=await fetch(_0x69ec19);if(!_0x17e87d['ok'])return null;const _0x344594=Buffer['from'](await _0x17e87d['arrayBuffer']());return await writeFile(_0x200089,_0x344594),_0x200089;}catch{return null;}}export async function featureGetReview(_0x249273){const _0x2a4ff0=_0x41fdff,_0x3926c4={'OFrCB':function(_0x339ecd){return _0x339ecd();},'DQWah':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','SncOq':function(_0x5a3fc7,_0x156ac7){return _0x5a3fc7(_0x156ac7);},'jxfTU':_0x2a4ff0(0x10f),'YQtgB':function(_0x411983,_0x2a5338){return _0x411983<_0x2a5338;},'UMsdC':function(_0x134aa8,_0xef37bc){return _0x134aa8>_0xef37bc;},'mQkpY':function(_0x5f0722,_0x2e5065,_0x151726){return _0x5f0722(_0x2e5065,_0x151726);},'dGMiE':function(_0x3a2da4,_0x59af47){return _0x3a2da4+_0x59af47;},'NpNkG':'en-US','IaumI':'short','HVQAU':function(_0xdca3a9,_0x5aea36,_0x4d9578){return _0xdca3a9(_0x5aea36,_0x4d9578);},'uhrey':function(_0x25176c,_0x4e6d89){return _0x25176c===_0x4e6d89;},'UImwA':'point','hIbSh':function(_0x4b69f6,_0x158e62){return _0x4b69f6+_0x158e62;}},_0x7af38f=_0x249273||await _0x3926c4['OFrCB'](getActiveFeatureId);if(!_0x7af38f)throw new Error(_0x3926c4['DQWah']);const _0x482a8b=await _0x3926c4['SncOq'](getFeature,_0x7af38f),{items:_0x4ed4d0}=await getActionItems(_0x7af38f);console[_0x2a4ff0(0x137)]('\x0a📋\x20Feedback\x20for:\x20'+_0x482a8b[_0x2a4ff0(0x1bd)]+'\x20('+_0x482a8b['id']+')\x0a');if(_0x4ed4d0['length']===0x0){console[_0x2a4ff0(0x137)](_0x3926c4[_0x2a4ff0(0x1a7)]);return;}for(let _0x5d48e6=0x0;_0x3926c4['YQtgB'](_0x5d48e6,_0x4ed4d0['length']);_0x5d48e6++){const _0x5cbe87=_0x4ed4d0[_0x5d48e6],_0x4c1741=_0x3926c4[_0x2a4ff0(0x116)](_0x5cbe87[_0x2a4ff0(0x163)],0x1)?_0x2a4ff0(0x11a)+_0x5cbe87[_0x2a4ff0(0x163)]+')':'',_0x845b4e=await _0x3926c4['mQkpY'](getItemFeedback,_0x7af38f,_0x5cbe87['id']);if(_0x3926c4['UMsdC'](_0x845b4e['unaddressedComments']['length'],0x0)){console[_0x2a4ff0(0x137)](_0x2a4ff0(0x11f)+_0x3926c4['dGMiE'](_0x5d48e6,0x1)+_0x2a4ff0(0x14a)+_0x5cbe87[_0x2a4ff0(0x12a)]+'\x22'+_0x4c1741+_0x2a4ff0(0x178)+_0x845b4e['unaddressedComments']['length']+_0x2a4ff0(0x1a2));for(const _0x3cf252 of _0x845b4e['unaddressedComments']){const _0x18fa39=new Date(_0x3cf252['createdAt'])[_0x2a4ff0(0x13f)](_0x3926c4['NpNkG'],{'month':_0x3926c4['IaumI'],'day':'numeric'}),_0x4b85df=_0x3cf252[_0x2a4ff0(0x181)]||_0x3cf252['authorEmail']||'Unknown';console['log']('\x20\x20💬\x20'+_0x4b85df+'\x20('+_0x18fa39+_0x2a4ff0(0x18a)+_0x3cf252[_0x2a4ff0(0x1ae)]+'\x22');if(_0x3cf252[_0x2a4ff0(0x14c)]){const _0x18a448=await _0x3926c4[_0x2a4ff0(0x17f)](downloadFeedbackImage,_0x3cf252['assetUrl'],_0x3cf252['id']);_0x18a448&&console[_0x2a4ff0(0x137)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x18a448);}if(_0x3cf252['spatial']){const _0x55066f=_0x3cf252[_0x2a4ff0(0x1b8)][_0x2a4ff0(0x1ad)];_0x3926c4['uhrey'](_0x3cf252[_0x2a4ff0(0x1b8)]['type'],_0x3926c4['UImwA'])&&_0x55066f['length']>=0x2?console['log'](_0x2a4ff0(0x1b4)+_0x55066f[0x0]['toFixed'](0x2)+',\x20'+_0x55066f[0x1]['toFixed'](0x2)+')'):console[_0x2a4ff0(0x137)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3cf252[_0x2a4ff0(0x1b8)][_0x2a4ff0(0x1a8)]+_0x2a4ff0(0x19e)+_0x55066f[_0x2a4ff0(0x146)](_0x3282ea=>_0x3282ea[_0x2a4ff0(0x118)](0x2))[_0x2a4ff0(0x176)](',\x20')+']');}}if(_0x845b4e['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x2bda3a of _0x845b4e['canonicalFlow'][_0x2a4ff0(0x182)]('\x0a')){console['log'](_0x2a4ff0(0x19d)+_0x2bda3a);}}}else console[_0x2a4ff0(0x137)](_0x2a4ff0(0x11f)+_0x3926c4[_0x2a4ff0(0x106)](_0x5d48e6,0x1)+_0x2a4ff0(0x14a)+_0x5cbe87[_0x2a4ff0(0x12a)]+'\x22'+_0x4c1741+'\x20—\x20no\x20comments'),console['log'](_0x2a4ff0(0x145));console[_0x2a4ff0(0x137)]('');}}export async function featureDelete(_0x4bf0f5){const _0x528995=_0x41fdff,_0x204341={'mnRqy':function(_0x4675d6){return _0x4675d6();},'YQFyP':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','eXBWi':function(_0x59f907,_0x4d4bbd){return _0x59f907(_0x4d4bbd);},'YocTg':function(_0x5aba11,_0x1ee6ba){return _0x5aba11+_0x1ee6ba;}},_0x4abfc2=_0x4bf0f5||await _0x204341[_0x528995(0x122)](getActiveFeatureId);if(!_0x4abfc2)throw new Error(_0x204341['YQFyP']);const _0x1327f2=await getFeature(_0x4abfc2);await _0x204341[_0x528995(0x114)](softDeleteFeature,_0x4abfc2),console[_0x528995(0x137)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x1327f2['name']+'\x20('+_0x4abfc2+')'),console['log'](_0x204341['YocTg'](_0x528995(0x1c0),_0x4abfc2));}export async function featureRestore(_0x397b74){const _0x1dcfb4=_0x41fdff,_0xa25e7d={'WjQrj':function(_0x42229c,_0x4ef6c9){return _0x42229c(_0x4ef6c9);},'mHivn':function(_0x33de22,_0x201d48,_0x569e95){return _0x33de22(_0x201d48,_0x569e95);}};await _0xa25e7d['WjQrj'](restoreFeature,_0x397b74);const _0x352cc7=await getFeature(_0x397b74);console[_0x1dcfb4(0x137)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x352cc7[_0x1dcfb4(0x1bd)]+'\x20('+_0x397b74+')'),_0xa25e7d[_0x1dcfb4(0x180)](displayFeature,_0x352cc7,_0x352cc7['checklistItems']);}
|
|
1
|
+
const _0x1f47f2=_0x3ee2;(function(_0xad3983,_0x1aab56){const _0x1e9d57=_0x3ee2,_0x2d5350=_0xad3983();while(!![]){try{const _0x315755=-parseInt(_0x1e9d57(0x196))/0x1*(-parseInt(_0x1e9d57(0x146))/0x2)+parseInt(_0x1e9d57(0x1b9))/0x3+parseInt(_0x1e9d57(0x155))/0x4*(parseInt(_0x1e9d57(0x1bc))/0x5)+parseInt(_0x1e9d57(0x129))/0x6+parseInt(_0x1e9d57(0x15e))/0x7*(-parseInt(_0x1e9d57(0x151))/0x8)+-parseInt(_0x1e9d57(0x11e))/0x9+-parseInt(_0x1e9d57(0x159))/0xa*(-parseInt(_0x1e9d57(0x19c))/0xb);if(_0x315755===_0x1aab56)break;else _0x2d5350['push'](_0x2d5350['shift']());}catch(_0x532ce4){_0x2d5350['push'](_0x2d5350['shift']());}}}(_0x30e4,0xdba51));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x124359 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE=_0x1f47f2(0x194),bold=_0x5816b3=>'\x1b[1m'+_0x5816b3+_0x1f47f2(0x16d);function getGitRepoUrl(){const _0x29a5f8=_0x1f47f2,_0x2105e8={'zFbIx':'pipe','SYchw':'github.com/'};try{const _0x5157b4=execSync(_0x29a5f8(0x14a),{'encoding':'utf-8','stdio':[_0x2105e8['zFbIx'],'pipe',_0x29a5f8(0x123)]})[_0x29a5f8(0x1b6)]();return _0x5157b4[_0x29a5f8(0x128)](/\.git$/,'')[_0x29a5f8(0x128)](/^git@github\.com:/,_0x2105e8['SYchw'])[_0x29a5f8(0x128)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x267660=_0x1f47f2,_0xfcbecf={'WEviS':function(_0x37aa40,_0x59394a,_0x3be4e4){return _0x37aa40(_0x59394a,_0x3be4e4);},'mbtxX':_0x267660(0x13f),'QkrEg':'utf-8','cVdIw':'pipe'};try{return _0xfcbecf['WEviS'](execSync,_0xfcbecf[_0x267660(0x195)],{'encoding':_0xfcbecf[_0x267660(0x157)],'stdio':[_0x267660(0x123),'pipe',_0xfcbecf[_0x267660(0xff)]]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2ef994=_0x1f47f2,_0x45609a={'hazrP':function(_0x31c2bc,_0x2a66fc,_0x422cca){return _0x31c2bc(_0x2a66fc,_0x422cca);},'IjSCr':'utf-8'},_0x4fea00=_0x45609a['hazrP'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4fea00))return null;try{const _0x8e315c=await readFile(_0x4fea00,_0x45609a[_0x2ef994(0x163)]);return _0x8e315c['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x2491bc){const _0x30e2ef=_0x1f47f2,_0x1dea1a={'pQBXC':function(_0x322643,_0x3b2af6){return _0x322643(_0x3b2af6);},'EognC':function(_0x4de311,_0x311580,_0x5c4748){return _0x4de311(_0x311580,_0x5c4748);},'QQLtF':'utf-8'},_0x355eb6=getRangerDir(),_0x1fc3df=join(_0x355eb6,ACTIVE_FEATURE_FILE);!_0x1dea1a['pQBXC'](existsSync,_0x355eb6)&&await _0x1dea1a[_0x30e2ef(0x142)](mkdir,_0x355eb6,{'recursive':!![]}),await writeFile(_0x1fc3df,_0x2491bc,_0x1dea1a['QQLtF']);}function getProgressDisplay(_0x12062e){const _0x3e4737=_0x1f47f2,_0x17651e={'aurND':function(_0xc6cecc,_0x2930c6){return _0xc6cecc+_0x2930c6;},'YbhbX':function(_0xf3506c,_0x470f75){return _0xf3506c+_0x470f75;},'RXrfX':function(_0x176756,_0x1ee5e9){return _0x176756===_0x1ee5e9;},'PnBru':function(_0x47aa50,_0x4a33b6){return _0x47aa50*_0x4a33b6;},'RSHWo':function(_0x3ee630,_0x30b6d1){return _0x3ee630-_0x30b6d1;},'HmgFS':function(_0x318baa,_0x1ce39d){return _0x318baa>_0x1ce39d;},'XpOJq':function(_0x15b67d,_0x2a10c9){return _0x15b67d>_0x2a10c9;}},_0x2b4857=_0x12062e[_0x3e4737(0x12b)]||0x0,_0x3b70ab=_0x12062e['verificationInProgressItems']||0x0,_0x1f8e67=_0x12062e['blockedItems']||0x0,_0x2f6139=_0x12062e['incompleteItems']||0x0,_0x448e0f=_0x12062e[_0x3e4737(0x119)]||0x0,_0xe7c78c=_0x17651e['aurND'](_0x17651e[_0x3e4737(0x126)](_0x2b4857+_0x3b70ab,_0x1f8e67),_0x2f6139)+_0x448e0f;if(_0x17651e[_0x3e4737(0x1c1)](_0xe7c78c,0x0))return'-';const _0x206eff=0xa,_0x504837=Math[_0x3e4737(0x185)](_0x17651e[_0x3e4737(0x121)](_0x2b4857/_0xe7c78c,_0x206eff)),_0x2f7bda='█'[_0x3e4737(0x15c)](_0x504837)+'░'[_0x3e4737(0x15c)](_0x17651e['RSHWo'](_0x206eff,_0x504837)),_0x307117=[];if(_0x1f8e67>0x0)_0x307117[_0x3e4737(0x130)](_0x1f8e67+_0x3e4737(0x117));if(_0x17651e[_0x3e4737(0x145)](_0x2f6139,0x0))_0x307117[_0x3e4737(0x130)](_0x2f6139+_0x3e4737(0x18b));if(_0x3b70ab>0x0)_0x307117[_0x3e4737(0x130)](_0x3b70ab+'\x20in\x20progress');const _0x112cb4=_0x17651e[_0x3e4737(0x178)](_0x307117['length'],0x0)?'\x20('+_0x307117['join'](',\x20')+')':'';return _0x2f7bda+'\x20'+_0x2b4857+'/'+_0xe7c78c+'\x20verified'+_0x112cb4;}function getCurrentSessionItems(_0x1022c9,_0x4b1d96){const _0x2a5dfc=_0x1f47f2;if(!_0x1022c9[_0x2a5dfc(0x198)])return _0x4b1d96[_0x2a5dfc(0x104)](_0x115aaf=>!_0x115aaf['sessionId'])['sort']((_0x1d606f,_0x5662ea)=>_0x1d606f['position']-_0x5662ea['position']);return _0x4b1d96['filter'](_0x294356=>_0x294356[_0x2a5dfc(0x109)]===_0x1022c9['currentSessionId']||!_0x294356['sessionId'])['sort']((_0xa93648,_0x101aea)=>_0xa93648['position']-_0x101aea[_0x2a5dfc(0x120)]);}function displayFeature(_0x3cfec2,_0x37203e){const _0x52c12d=_0x1f47f2,_0x3e01a0={'msffk':function(_0x15e009,_0x9210e8){return _0x15e009(_0x9210e8);},'raaFh':function(_0x1fbfb2,_0xc0a0ac){return _0x1fbfb2>_0xc0a0ac;},'ZtEQO':function(_0x3d0ee6,_0x36ff51){return _0x3d0ee6===_0x36ff51;},'yHnGL':'closed','ExhsR':'verified','MaCzx':function(_0x452607,_0xd62a17){return _0x452607===_0xd62a17;},'GqIED':_0x52c12d(0xfd),'GZTeq':function(_0x22a791,_0x2a6925){return _0x22a791===_0x2a6925;},'nUgxq':'blocked','dWhKB':function(_0x2b0cbc,_0x20ebc0){return _0x2b0cbc!==_0x20ebc0;},'SHVwJ':function(_0x117696,_0x35649d){return _0x117696!==_0x35649d;},'CBrSY':function(_0x393cbc,_0xb9d773){return _0x393cbc+_0xb9d773;},'LPbEx':function(_0x371359,_0x521354){return _0x371359===_0x521354;}};console['log']('\x0a'+_0x3cfec2[_0x52c12d(0x191)]+'\x20('+_0x3cfec2[_0x52c12d(0x134)]+')');_0x3cfec2['stats']&&console[_0x52c12d(0x11c)]('\x20\x20\x20Progress:\x20'+_0x3e01a0[_0x52c12d(0x14f)](getProgressDisplay,_0x3cfec2[_0x52c12d(0x160)]));_0x3cfec2['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x3cfec2['description']);_0x3cfec2['gitRepoUrl']&&console[_0x52c12d(0x11c)]('\x20\x20\x20Repository:\x20'+_0x3cfec2['gitRepoUrl']);_0x3cfec2['gitBranch']&&console[_0x52c12d(0x11c)](_0x52c12d(0x167)+_0x3cfec2[_0x52c12d(0x13c)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3cfec2[_0x52c12d(0x132)])[_0x52c12d(0xfe)]());_0x3cfec2[_0x52c12d(0x168)]&&console[_0x52c12d(0x11c)](_0x52c12d(0x1a7)+new Date(_0x3cfec2['completedAt'])['toLocaleString']());if(_0x37203e&&_0x3e01a0[_0x52c12d(0x189)](_0x37203e[_0x52c12d(0x1a0)],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x391efc=0x0;_0x391efc<_0x37203e['length'];_0x391efc++){const _0x18cc93=_0x37203e[_0x391efc];let _0x3438d3;if(_0x3e01a0[_0x52c12d(0x105)](_0x18cc93['status'],_0x3e01a0['yHnGL'])&&_0x18cc93['terminalReason']===_0x52c12d(0x1ad))_0x3438d3='✅';else{if(_0x18cc93[_0x52c12d(0x169)]===_0x3e01a0[_0x52c12d(0x125)])_0x3438d3='🟢';else{if(_0x3e01a0['MaCzx'](_0x18cc93['status'],_0x3e01a0['GqIED']))_0x3438d3='🟠';else{if(_0x3e01a0['GZTeq'](_0x18cc93['status'],_0x3e01a0[_0x52c12d(0x1bf)]))_0x3438d3='🛑';else{if(_0x18cc93['status']===_0x52c12d(0x153))_0x3438d3='⛔';else _0x3e01a0['GZTeq'](_0x18cc93['status'],_0x52c12d(0x148))?_0x3438d3='⏳':_0x3438d3='⬜';}}}}const _0x4d8143=_0x3e01a0['raaFh'](_0x18cc93['version'],0x1)?'\x20(v'+_0x18cc93['version']+')':'',_0x7ad377=_0x3e01a0[_0x52c12d(0x189)](_0x18cc93['version'],0x1)&&_0x18cc93['parentItemId']&&_0x3e01a0['dWhKB'](_0x18cc93['status'],_0x3e01a0['yHnGL'])&&_0x3e01a0['SHVwJ'](_0x18cc93[_0x52c12d(0x169)],_0x3e01a0['ExhsR'])?_0x52c12d(0x12f):'';console[_0x52c12d(0x11c)]('\x20\x20\x20'+_0x3e01a0[_0x52c12d(0x17a)](_0x391efc,0x1)+'.\x20'+_0x3438d3+'\x20'+_0x18cc93[_0x52c12d(0x124)]+_0x4d8143+_0x7ad377);_0x18cc93['status']===_0x52c12d(0x13e)&&_0x18cc93['blockedReason']&&console['log'](_0x52c12d(0x115)+_0x18cc93[_0x52c12d(0x1a6)]);_0x3e01a0[_0x52c12d(0x105)](_0x18cc93[_0x52c12d(0x169)],_0x52c12d(0xfd))&&_0x18cc93[_0x52c12d(0x17b)]&&console[_0x52c12d(0x11c)](_0x52c12d(0x13d)+_0x18cc93[_0x52c12d(0x17b)]);if(_0x3e01a0[_0x52c12d(0x114)](_0x18cc93[_0x52c12d(0x169)],'closed')&&_0x18cc93['terminalReason']===_0x52c12d(0x1ad))console['log'](_0x52c12d(0x197));else _0x18cc93['status']==='closed'&&_0x18cc93['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x18cc93[_0x52c12d(0x137)]);}}}export async function featureCreate(_0x5f2afc,_0x4f44ba){const _0x3bde65=_0x1f47f2,_0x48efa8={'vIcED':function(_0x51b142){return _0x51b142();},'mTfAu':function(_0x2115dd){return _0x2115dd();},'oxzXc':function(_0x4a56ff,_0x22c6df){return _0x4a56ff(_0x22c6df);}},{envNames:_0x29d792}=await getEnvNames();_0x29d792[_0x3bde65(0x1a0)]===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x207fa3=>bold(_0x207fa3)));const _0x10375e=_0x4f44ba[_0x3bde65(0x141)]?_0x4f44ba['scenarios']['map'](_0x281100=>_0x281100[_0x3bde65(0x1b6)]()):[],_0x4ae6e2=_0x48efa8['vIcED'](getGitRepoUrl),_0x5ca54d=_0x48efa8[_0x3bde65(0x1b3)](getGitBranch);console['log']('\x0aCreating\x20feature\x20review...');const _0x12e18a=await _0x48efa8[_0x3bde65(0x181)](createFeature,{'name':_0x5f2afc,'description':_0x4f44ba[_0x3bde65(0x124)],'checklist':_0x10375e,'gitRepoUrl':_0x4ae6e2,'gitBranch':_0x5ca54d});await setActiveFeatureId(_0x12e18a['id']),await tryStartCurrentSession(_0x12e18a['id']);const _0xf27142=process['env']['CLAUDE_SESSION_ID'];_0xf27142&®isterSession(_0xf27142,_0x12e18a['id']),console[_0x3bde65(0x11c)](_0x3bde65(0x10f)+_0x12e18a['id']),displayFeature(_0x12e18a,_0x12e18a[_0x3bde65(0x16f)]),console[_0x3bde65(0x11c)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x5cdc5c){const _0x379129=_0x1f47f2,_0x488a24={'iNYaZ':function(_0x35140b){return _0x35140b();},'aBUSi':function(_0x5e508a,_0x28b723){return _0x5e508a(_0x28b723);},'FORbq':'\x0aNo\x20feature\x20reviews\x20found.','lmeYf':function(_0x493903,_0x2d495e){return _0x493903>_0x2d495e;},'ExnAr':function(_0x5294c8,_0xe72f6){return _0x5294c8!==_0xe72f6;},'EwlMr':_0x379129(0x1ae)},_0x29bf01={'limit':_0x5cdc5c['limit']??0xa,'offset':_0x5cdc5c['offset']??0x0,'includeDeleted':_0x5cdc5c['includeDeleted']};_0x5cdc5c['currentBranch']&&(_0x29bf01['gitRepoUrl']=getGitRepoUrl(),_0x29bf01[_0x379129(0x13c)]=_0x488a24[_0x379129(0x102)](getGitBranch));const _0xd01f62=await _0x488a24[_0x379129(0x1a2)](listFeatures,_0x29bf01);if(_0xd01f62[_0x379129(0x1bd)][_0x379129(0x1a0)]===0x0){console[_0x379129(0x11c)](_0x488a24[_0x379129(0x1a9)]);return;}const _0x57fbab=_0x488a24[_0x379129(0x150)](_0xd01f62[_0x379129(0x17c)],_0xd01f62[_0x379129(0x1bd)][_0x379129(0x1a0)])?'Showing\x20'+_0xd01f62[_0x379129(0x1bd)]['length']+'\x20of\x20'+_0xd01f62['totalCount']:_0xd01f62[_0x379129(0x17c)]+_0x379129(0x18a);console[_0x379129(0x11c)]('\x0a'+_0x57fbab+':\x0a');for(const _0x3247e2 of _0xd01f62[_0x379129(0x1bd)]){console[_0x379129(0x11c)](''+_0x3247e2[_0x379129(0x191)]),console['log'](_0x379129(0x184)+_0x3247e2['id']),_0x3247e2[_0x379129(0x160)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3247e2['stats'])),_0x3247e2[_0x379129(0x13c)]&&console[_0x379129(0x11c)](_0x379129(0x167)+_0x3247e2['gitBranch']),console['log'](_0x379129(0x10a)+new Date(_0x3247e2[_0x379129(0x132)])['toLocaleDateString']()),console['log']('');}const _0x74f188=_0x29bf01['limit']??0xa,_0x147fc2=(_0x29bf01[_0x379129(0x143)]??0x0)+_0xd01f62['items'][_0x379129(0x1a0)];if(_0x147fc2<_0xd01f62[_0x379129(0x17c)]){const _0x8793=_0x488a24[_0x379129(0x170)](_0x74f188,0xa)?'\x20--limit\x20'+_0x74f188:'',_0x1a387e=_0x5cdc5c[_0x379129(0x17e)]?_0x488a24['EwlMr']:'',_0x135a33=_0x5cdc5c[_0x379129(0x11b)]?'\x20--include-deleted':'';console[_0x379129(0x11c)](_0x379129(0x15a)+_0x147fc2+_0x8793+_0x1a387e+_0x135a33);}}function _0x3ee2(_0x53f851,_0x5bd614){_0x53f851=_0x53f851-0xfc;const _0x30e4f3=_0x30e4();let _0x3ee2e7=_0x30e4f3[_0x53f851];return _0x3ee2e7;}export async function featureShow(_0x4b7bfe){const _0xaec392=_0x1f47f2,_0x162c46={'SyNuk':function(_0x1868ca){return _0x1868ca();},'qIpjo':_0xaec392(0x179),'dAgNN':function(_0x536eb7,_0x37ad30){return _0x536eb7(_0x37ad30);},'TSRoe':function(_0x3d5cc6,_0x2984ce,_0x343b5f){return _0x3d5cc6(_0x2984ce,_0x343b5f);}},_0x203aba=_0x4b7bfe||await _0x162c46['SyNuk'](getActiveFeatureId);if(!_0x203aba)throw new Error(_0x162c46['qIpjo']);const _0x1842e1=await _0x162c46['dAgNN'](getFeature,_0x203aba);_0x162c46['TSRoe'](displayFeature,_0x1842e1,_0x1842e1[_0xaec392(0x16f)]);}export async function featureResume(_0x2542c8){const _0x5b4d37=_0x1f47f2,_0x40e9dc={'mdgcV':function(_0x262938,_0x10d269){return _0x262938(_0x10d269);},'WwwOV':function(_0x40c574,_0x5454f0){return _0x40c574!==_0x5454f0;},'BhrPt':function(_0xb07598,_0x2d9daa,_0x454cfe){return _0xb07598(_0x2d9daa,_0x454cfe);},'tSHrI':function(_0x51d7c0,_0x320450){return _0x51d7c0&&_0x320450;},'KHrFs':_0x5b4d37(0x10b),'SKIks':'any','ohahS':function(_0x3b1c11,_0x576177){return _0x3b1c11===_0x576177;},'dTlTn':_0x5b4d37(0x15b),'IvAMv':_0x5b4d37(0x177),'gscFv':function(_0x58236c,_0x3fac38){return _0x58236c(_0x3fac38);},'pKEdV':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','WsvCp':'list','UeXCb':function(_0x19d17a,_0x5901e6){return _0x19d17a(_0x5901e6);}};if(_0x2542c8){const _0xe46071=await getFeature(_0x2542c8);await _0x40e9dc['mdgcV'](setActiveFeatureId,_0xe46071['id']);const _0x524840=getGitBranch();_0x524840&&_0x40e9dc['WwwOV'](_0x524840,_0xe46071[_0x5b4d37(0x13c)])&&(await _0x40e9dc['BhrPt'](updateFeature,_0xe46071['id'],{'gitBranch':_0x524840}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x524840));console['log'](_0x5b4d37(0x18e)+_0xe46071[_0x5b4d37(0x191)]+'\x20('+_0xe46071['id']+')'),await _0x40e9dc[_0x5b4d37(0x175)](tryStartCurrentSession,_0xe46071['id']);const _0x4e2fda=process[_0x5b4d37(0x15f)]['CLAUDE_SESSION_ID'];_0x4e2fda&®isterSession(_0x4e2fda,_0xe46071['id']);_0x40e9dc[_0x5b4d37(0x158)](displayFeature,_0xe46071,_0xe46071['checklistItems']),await _0x40e9dc[_0x5b4d37(0x175)](printFeedbackNudge,_0xe46071['id']);return;}const _0xee4d5=getGitRepoUrl(),_0x592ff7=getGitBranch();if(_0x40e9dc[_0x5b4d37(0x188)](!_0xee4d5,!_0x592ff7))throw new Error(_0x40e9dc[_0x5b4d37(0x1a3)]);console['log'](_0x5b4d37(0x152)+(_0xee4d5||_0x40e9dc['SKIks'])+'\x20/\x20'+(_0x592ff7||_0x5b4d37(0x1be))+'...');const _0x2a6714=await _0x40e9dc['mdgcV'](listFeatures,{'gitRepoUrl':_0xee4d5,'gitBranch':_0x592ff7}),_0x2c4ff6=_0x2a6714[_0x5b4d37(0x1bd)]['filter'](_0x311118=>!_0x311118['completedAt']);if(_0x40e9dc['ohahS'](_0x2c4ff6[_0x5b4d37(0x1a0)],0x0)){console[_0x5b4d37(0x11c)](_0x40e9dc['dTlTn']),console[_0x5b4d37(0x11c)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x4ab623;if(_0x2c4ff6['length']===0x1)_0x4ab623=_0x2c4ff6[0x0];else{const _0x1077f3=process[_0x5b4d37(0x14c)][_0x5b4d37(0x10d)]&&process['stdout']['isTTY'];if(!_0x1077f3){console[_0x5b4d37(0x11c)](_0x40e9dc[_0x5b4d37(0x106)]);for(const _0x97502e of _0x2c4ff6){console[_0x5b4d37(0x11c)]('\x20\x20'+_0x97502e['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x97502e['id']),_0x97502e['stats']&&console['log'](_0x5b4d37(0x10e)+_0x40e9dc[_0x5b4d37(0x1ba)](getProgressDisplay,_0x97502e[_0x5b4d37(0x160)])),_0x97502e[_0x5b4d37(0x13c)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x97502e['gitBranch']);}throw new Error(_0x40e9dc[_0x5b4d37(0x190)]);}const {selected:_0x29ff14}=await _0x124359['prompt']([{'type':_0x40e9dc['WsvCp'],'name':'selected','message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x2c4ff6[_0x5b4d37(0x12d)](_0xa7f941=>({'name':_0xa7f941['name']+'\x20('+_0xa7f941['id']+')','value':_0xa7f941['id']}))}]);_0x4ab623=_0x2c4ff6[_0x5b4d37(0x16a)](_0x47da3c=>_0x47da3c['id']===_0x29ff14);}await setActiveFeatureId(_0x4ab623['id']);_0x592ff7&&_0x40e9dc['WwwOV'](_0x592ff7,_0x4ab623[_0x5b4d37(0x13c)])&&(await updateFeature(_0x4ab623['id'],{'gitBranch':_0x592ff7}),console['log'](_0x5b4d37(0x14d)+_0x592ff7));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4ab623['name']+'\x20('+_0x4ab623['id']+')'),await _0x40e9dc[_0x5b4d37(0x175)](tryStartCurrentSession,_0x4ab623['id']);const _0x560375=await _0x40e9dc[_0x5b4d37(0x164)](getFeature,_0x4ab623['id']),_0x846bb6=process['env']['CLAUDE_SESSION_ID'];_0x846bb6&®isterSession(_0x846bb6,_0x560375['id']),displayFeature(_0x560375,_0x560375['checklistItems']),await _0x40e9dc[_0x5b4d37(0x175)](printFeedbackNudge,_0x560375['id']);}async function printFeedbackNudge(_0x1c1b57){const _0x577d28=_0x1f47f2,_0x5513f2={'tHXEZ':function(_0xb2d9ca,_0x2a5ec4,_0x3c2024){return _0xb2d9ca(_0x2a5ec4,_0x3c2024);},'YLqdV':function(_0x54ff45,_0x3ef93a){return _0x54ff45>_0x3ef93a;}};try{const {items:_0x32cbf9}=await getActionItems(_0x1c1b57);let _0x5536b2=0x0,_0x47d7e4=0x0;for(const _0x3977fb of _0x32cbf9){const _0x51eb0e=await _0x5513f2['tHXEZ'](getItemFeedback,_0x1c1b57,_0x3977fb['id']);_0x51eb0e[_0x577d28(0x1b8)][_0x577d28(0x1a0)]>0x0&&(_0x5536b2+=_0x51eb0e['unaddressedComments'][_0x577d28(0x1a0)],_0x47d7e4++);}_0x5513f2[_0x577d28(0x12c)](_0x5536b2,0x0)&&(console['log'](_0x577d28(0x1ab)+_0x5536b2+_0x577d28(0x11d)+_0x47d7e4+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x13231f){const _0x534f25=_0x1f47f2;try{const {sessions:_0x2ab4ab}=await listFeatureSessions(_0x13231f),_0xfc1de1=_0x2ab4ab[_0x534f25(0x16a)](_0x4f39f0=>_0x4f39f0['status']==='ready');_0xfc1de1&&(await startSession(_0x13231f,_0xfc1de1['id']),console[_0x534f25(0x11c)](_0x534f25(0x101)+_0xfc1de1['iteration']));}catch{}}export async function featureReport(_0x362616,_0x54445b){const _0xebd1bf=_0x1f47f2,_0x184979={'AJDhr':_0xebd1bf(0x15d),'fRGBM':function(_0x4816b3,_0x4d90e7,_0x161b84){return _0x4816b3(_0x4d90e7,_0x161b84);},'yJdkN':function(_0xc2b0f3,_0x553c0e,_0x11aff2,_0x210c5){return _0xc2b0f3(_0x553c0e,_0x11aff2,_0x210c5);},'yeblg':function(_0x193ed7){return _0x193ed7();},'TOehz':'reports','OdRCQ':function(_0x462645,_0x4c60fb){return _0x462645(_0x4c60fb);}},_0x86da38=_0x362616||await getActiveFeatureId();if(!_0x86da38)throw new Error(_0xebd1bf(0xfc));console[_0xebd1bf(0x11c)](_0x184979['AJDhr']);const _0x34baea=await _0x184979['fRGBM'](getFeatureReportMarkdown,_0x86da38,{'style':_0x54445b[_0xebd1bf(0x1b2)]}),_0x120f8f=_0x54445b['output']||_0x184979[_0xebd1bf(0x1c2)](join,_0x184979['yeblg'](getRangerDir),_0x184979[_0xebd1bf(0x1a8)],_0x86da38+_0xebd1bf(0x1ac)),_0x478d3b=_0x184979['fRGBM'](join,_0x120f8f,'..');!_0x184979[_0xebd1bf(0x182)](existsSync,_0x478d3b)&&await mkdir(_0x478d3b,{'recursive':!![]}),await _0x184979[_0xebd1bf(0x1c2)](writeFile,_0x120f8f,_0x34baea,'utf-8'),console['log'](_0xebd1bf(0x17f)+_0x120f8f);}export async function featureReportPrDescription(_0x17458b,_0x3807bc){const _0x4cca90=_0x1f47f2,_0x1bc54e={'sbYrW':function(_0x50334c,_0xe1fa12){return _0x50334c(_0xe1fa12);},'HwhVi':function(_0x4c163d,_0x589f55){return _0x4c163d===_0x589f55;},'BvYDb':_0x4cca90(0x1a1),'FxuRx':_0x4cca90(0x14b),'BbUDK':function(_0x4b76e7,_0x261fb0){return _0x4b76e7+_0x261fb0;},'OXaXD':function(_0x56e715,_0xbbc18c,_0x8ca905){return _0x56e715(_0xbbc18c,_0x8ca905);}},_0x190348=_0x17458b||await getActiveFeatureId();if(!_0x190348)throw new Error(_0x4cca90(0xfc));const _0x1cfee3=await _0x1bc54e['sbYrW'](getFeature,_0x190348),_0x427b5c=_0x1cfee3[_0x4cca90(0x16f)]||[],_0x49b69c=getCurrentSessionItems(_0x1cfee3,_0x427b5c);_0x1bc54e['HwhVi'](_0x49b69c[_0x4cca90(0x1a0)],0x0)&&(console['error'](_0x1bc54e[_0x4cca90(0x172)]),process[_0x4cca90(0x12a)](0x1));const _0x2229e1=_0x3807bc[_0x4cca90(0x13a)]??[],_0x58b516=_0x2229e1[_0x4cca90(0x104)](_0x3bc1d3=>!Number['isInteger'](_0x3bc1d3)||_0x3bc1d3<0x1||_0x3bc1d3>_0x49b69c[_0x4cca90(0x1a0)]);if(_0x58b516['length']>0x0){console['error'](_0x4cca90(0x16b)+_0x58b516[_0x4cca90(0x187)](',\x20')),console[_0x4cca90(0x11c)](_0x1bc54e[_0x4cca90(0x11a)]);for(let _0x35f0e7=0x0;_0x35f0e7<_0x49b69c[_0x4cca90(0x1a0)];_0x35f0e7++){console['log']('\x20\x20'+_0x1bc54e['BbUDK'](_0x35f0e7,0x1)+'.\x20'+_0x49b69c[_0x35f0e7]['description']);}process['exit'](0x1);}const _0x2f05b0=new Set(_0x2229e1[_0x4cca90(0x12d)](_0x373591=>_0x373591-0x1)),_0x29d276=_0x49b69c['filter']((_0x51709d,_0x3e6890)=>!_0x2f05b0['has'](_0x3e6890));_0x29d276['length']===0x0&&(console[_0x4cca90(0x18f)](_0x4cca90(0x110)),process[_0x4cca90(0x12a)](0x1));const _0x3c164b=await _0x1bc54e['OXaXD'](getFeatureReportMarkdown,_0x190348,{'itemIds':_0x29d276['map'](_0x46e17b=>_0x46e17b['id'])});process['stdout']['write'](_0x3c164b['trimEnd']()+'\x0a');}export async function featureConcludeSession(_0x5f1e70){const _0x518013=_0x1f47f2,_0x1ea17c={'SPmQx':function(_0x5eaa67){return _0x5eaa67();},'nldXH':function(_0x29fd50,_0x1cb143){return _0x29fd50(_0x1cb143);},'Hcxza':_0x518013(0x144),'HiiKJ':function(_0x332b1c,_0x23f90c){return _0x332b1c===_0x23f90c;},'KsIIB':_0x518013(0x1bb),'hwfbm':_0x518013(0x154)},_0x21ef80=_0x5f1e70||await _0x1ea17c['SPmQx'](getActiveFeatureId);if(!_0x21ef80)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x2fca8d=await _0x1ea17c['nldXH'](getFeature,_0x21ef80);if(!_0x2fca8d[_0x518013(0x198)])throw new Error(_0x1ea17c['Hcxza']);const {sessions:_0x42226f}=await _0x1ea17c[_0x518013(0x12e)](listFeatureSessions,_0x21ef80),_0x88591c=_0x42226f['find'](_0x1cb062=>_0x1cb062['id']===_0x2fca8d[_0x518013(0x198)]);if(!_0x88591c)throw new Error('Current\x20session\x20not\x20found.');if(_0x1ea17c['HiiKJ'](_0x88591c[_0x518013(0x169)],_0x518013(0x199))){console['log'](_0x1ea17c['KsIIB']);return;}if(_0x88591c[_0x518013(0x169)]!==_0x518013(0x176))throw new Error(_0x518013(0x133)+_0x88591c['status']);console['log'](_0x1ea17c[_0x518013(0x19e)]),await concludeSession(_0x21ef80,_0x2fca8d['currentSessionId']),console[_0x518013(0x11c)](_0x518013(0x135)+_0x88591c['iteration']+_0x518013(0x17d)),console[_0x518013(0x11c)](_0x518013(0x122));}export async function featureSessions(_0x4f94cd){const _0x48152f=_0x1f47f2,_0x1dbb35={'TDkaj':function(_0x1984b3){return _0x1984b3();},'GnuxQ':function(_0x433362,_0x555423){return _0x433362(_0x555423);},'nDOYp':'No\x20sessions\x20found.','ovHNl':_0x48152f(0x199),'FUHvE':function(_0x478a9a,_0x17dcb9){return _0x478a9a===_0x17dcb9;}},_0x2716e1=_0x4f94cd||await _0x1dbb35[_0x48152f(0x139)](getActiveFeatureId);if(!_0x2716e1)throw new Error(_0x48152f(0xfc));const _0x286aae=await _0x1dbb35['GnuxQ'](getFeature,_0x2716e1);console[_0x48152f(0x11c)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x286aae[_0x48152f(0x191)]+'\x0a');const {sessions:_0x20a296}=await listFeatureSessions(_0x2716e1);if(_0x20a296[_0x48152f(0x1a0)]===0x0){console['log'](_0x1dbb35['nDOYp']);return;}for(const _0x5d8c74 of _0x20a296){const _0x39143a=_0x5d8c74[_0x48152f(0x169)]===_0x1dbb35['ovHNl']?'✅':_0x1dbb35[_0x48152f(0x127)](_0x5d8c74['status'],_0x48152f(0x176))?'🔄':'▶️';console[_0x48152f(0x11c)](_0x39143a+'\x20Session\x20'+_0x5d8c74[_0x48152f(0x19d)]+'\x20('+_0x5d8c74['id']+')'),console['log'](_0x48152f(0x1aa)+_0x5d8c74['status']),console[_0x48152f(0x11c)]('\x20\x20\x20Created:\x20'+new Date(_0x5d8c74[_0x48152f(0x132)])[_0x48152f(0xfe)]()),_0x5d8c74[_0x48152f(0x168)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x5d8c74['completedAt'])[_0x48152f(0xfe)]()),console[_0x48152f(0x11c)]('');}}export async function featureAddScenario(_0x41e099,_0x56545c){const _0x134b47=_0x1f47f2,_0x334a2d={'qpjzg':function(_0x27abb0,_0x46e93c){return _0x27abb0(_0x46e93c);},'XLkgA':function(_0xf8a037,_0x316afc){return _0xf8a037(_0x316afc);},'kIkYI':function(_0x5c8c62,_0x462f08,_0x4755e7){return _0x5c8c62(_0x462f08,_0x4755e7);}},_0x302ceb=_0x56545c||await getActiveFeatureId();if(!_0x302ceb)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x3cebb8=await _0x334a2d[_0x134b47(0x18c)](getFeature,_0x302ceb);if(_0x3cebb8[_0x134b47(0x112)]&&!_0x3cebb8['latestReview']['submittedAt'])throw new Error(_0x134b47(0x165)+_0x3cebb8['dashboardUrl']);await createChecklistItem(_0x302ceb,_0x41e099);const _0x5d5831=await _0x334a2d[_0x134b47(0x147)](getFeature,_0x302ceb);console[_0x134b47(0x11c)](_0x134b47(0x180)),_0x334a2d[_0x134b47(0x140)](displayFeature,_0x5d5831,_0x5d5831[_0x134b47(0x16f)]);}export async function featureEditScenario(_0x5d3e62,_0x4feefc){const _0x431afa=_0x1f47f2,_0x3f3669={'btzgE':_0x431afa(0x149),'xKitQ':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','YbNiZ':function(_0x2fb42c,_0x4938f7){return _0x2fb42c(_0x4938f7);},'xUhdX':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','acHgw':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','TypXz':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','LZMuW':_0x431afa(0x14b),'sLsAa':function(_0x32c3d6,_0x587a36){return _0x32c3d6<_0x587a36;},'LZTaQ':function(_0x1752fd,_0x6490db){return _0x1752fd+_0x6490db;},'UUItz':function(_0x2d3d0b,_0x10a52a){return _0x2d3d0b<_0x10a52a;},'HmuPS':function(_0x492345,_0x50dd54){return _0x492345>=_0x50dd54;},'MRvLt':function(_0x20367f,_0x457053){return _0x20367f(_0x457053);}},_0x413ea3=_0x4feefc['id']||await getActiveFeatureId();!_0x413ea3&&(console[_0x431afa(0x18f)](_0x3f3669[_0x431afa(0x1b4)]),console['error'](_0x3f3669[_0x431afa(0x13b)]),process['exit'](0x1));const _0x285453=await _0x3f3669['YbNiZ'](getFeature,_0x413ea3);_0x285453['latestReview']&&!_0x285453[_0x431afa(0x112)][_0x431afa(0x116)]&&(console[_0x431afa(0x18f)](_0x3f3669['xUhdX']),console[_0x431afa(0x18f)](_0x431afa(0x10c)),console['error']('\x20\x20'+_0x285453['dashboardUrl']),process[_0x431afa(0x12a)](0x1));const _0x176450=_0x285453['checklistItems']||[];_0x176450[_0x431afa(0x1a0)]===0x0&&(console['error'](_0x3f3669[_0x431afa(0x166)]),process['exit'](0x1));if(_0x4feefc['scenario']===undefined){console['error'](_0x3f3669[_0x431afa(0x193)]),console[_0x431afa(0x11c)](_0x3f3669['LZMuW']);for(let _0x2d0262=0x0;_0x3f3669['sLsAa'](_0x2d0262,_0x176450[_0x431afa(0x1a0)]);_0x2d0262++){console['log']('\x20\x20'+_0x3f3669[_0x431afa(0x19f)](_0x2d0262,0x1)+'.\x20'+_0x176450[_0x2d0262]['description']);}process['exit'](0x1);}const _0x79586=_0x4feefc['scenario']-0x1;if(_0x3f3669[_0x431afa(0x11f)](_0x79586,0x0)||_0x3f3669[_0x431afa(0x107)](_0x79586,_0x176450[_0x431afa(0x1a0)])){console[_0x431afa(0x18f)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4feefc['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x176450[_0x431afa(0x1a0)]+_0x431afa(0x113)),console[_0x431afa(0x11c)](_0x431afa(0x14b));for(let _0xb1b16c=0x0;_0xb1b16c<_0x176450[_0x431afa(0x1a0)];_0xb1b16c++){console[_0x431afa(0x11c)]('\x20\x20'+_0x3f3669[_0x431afa(0x19f)](_0xb1b16c,0x1)+'.\x20'+_0x176450[_0xb1b16c][_0x431afa(0x124)]);}process[_0x431afa(0x12a)](0x1);}const _0x42e099=_0x176450[_0x79586];await updateChecklistItem(_0x413ea3,_0x42e099['id'],{'description':_0x5d3e62});const _0xa95896=await _0x3f3669[_0x431afa(0x171)](getFeature,_0x413ea3);console[_0x431afa(0x11c)](_0x431afa(0x131)),displayFeature(_0xa95896,_0xa95896['checklistItems']);}async function downloadFeedbackImage(_0x28ab34,_0x243f0f){const _0x2b0ed4=_0x1f47f2,_0x54266c={'PvHYg':function(_0xc5097c,_0x285e2c,_0x431dff){return _0xc5097c(_0x285e2c,_0x431dff);},'Gliyw':function(_0x50801c){return _0x50801c();},'yosdr':function(_0x8f58bc,_0x44b44e){return _0x8f58bc(_0x44b44e);}};try{const _0x16afe2=_0x54266c['PvHYg'](join,_0x54266c['Gliyw'](getRangerDir),_0x2b0ed4(0x173));await _0x54266c['PvHYg'](mkdir,_0x16afe2,{'recursive':!![]});const _0xcbf5fd=join(_0x16afe2,_0x2b0ed4(0x174)+_0x243f0f+_0x2b0ed4(0x19a)),_0x19adeb=await _0x54266c[_0x2b0ed4(0x19b)](fetch,_0x28ab34);if(!_0x19adeb['ok'])return null;const _0x64a5de=Buffer['from'](await _0x19adeb['arrayBuffer']());return await writeFile(_0xcbf5fd,_0x64a5de),_0xcbf5fd;}catch{return null;}}export async function featureGetReview(_0x59abb0){const _0x30dde2=_0x1f47f2,_0x44bb02={'FOWuw':function(_0x29f4c3){return _0x29f4c3();},'iZxJj':_0x30dde2(0x179),'wngjX':function(_0x2d87d9,_0xe4f32f){return _0x2d87d9(_0xe4f32f);},'KTCkZ':function(_0x59e696,_0x32f691){return _0x59e696===_0x32f691;},'zqZuc':_0x30dde2(0x111),'MSAkV':function(_0x222f47,_0xbcec14,_0x33fd14){return _0x222f47(_0xbcec14,_0x33fd14);},'qJmZQ':function(_0x6aed,_0x131de6){return _0x6aed>_0x131de6;},'IVdaH':_0x30dde2(0x16e),'CNhAI':'point','ZVaaK':function(_0x56e5b8,_0xdaa6ac){return _0x56e5b8+_0xdaa6ac;}},_0x1f5329=_0x59abb0||await _0x44bb02['FOWuw'](getActiveFeatureId);if(!_0x1f5329)throw new Error(_0x44bb02['iZxJj']);const _0x576c67=await getFeature(_0x1f5329),{items:_0x46fb58}=await _0x44bb02[_0x30dde2(0x14e)](getActionItems,_0x1f5329);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x576c67[_0x30dde2(0x191)]+'\x20('+_0x576c67['id']+')\x0a');if(_0x44bb02['KTCkZ'](_0x46fb58['length'],0x0)){console[_0x30dde2(0x11c)](_0x44bb02['zqZuc']);return;}for(let _0x3eec9c=0x0;_0x3eec9c<_0x46fb58[_0x30dde2(0x1a0)];_0x3eec9c++){const _0x376813=_0x46fb58[_0x3eec9c],_0x2217e1=_0x376813['version']>0x1?'\x20(v'+_0x376813[_0x30dde2(0x18d)]+')':'',_0x2a4ba2=await _0x44bb02[_0x30dde2(0x192)](getItemFeedback,_0x1f5329,_0x376813['id']);if(_0x44bb02['qJmZQ'](_0x2a4ba2[_0x30dde2(0x1b8)][_0x30dde2(0x1a0)],0x0)){console['log'](_0x30dde2(0x1b1)+(_0x3eec9c+0x1)+':\x20\x22'+_0x376813[_0x30dde2(0x124)]+'\x22'+_0x2217e1+_0x30dde2(0x161)+_0x2a4ba2['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x30a805 of _0x2a4ba2['unaddressedComments']){const _0x4cb25f=new Date(_0x30a805['createdAt'])[_0x30dde2(0x16c)](_0x30dde2(0x1a4),{'month':_0x44bb02[_0x30dde2(0x118)],'day':'numeric'}),_0x2d78d5=_0x30a805['authorName']||_0x30a805['authorEmail']||'Unknown';console['log']('\x20\x20💬\x20'+_0x2d78d5+'\x20('+_0x4cb25f+_0x30dde2(0x100)+_0x30a805['content']+'\x22');if(_0x30a805['assetUrl']){const _0x8994f2=await downloadFeedbackImage(_0x30a805['assetUrl'],_0x30a805['id']);_0x8994f2&&console['log'](_0x30dde2(0x103)+_0x8994f2);}if(_0x30a805[_0x30dde2(0x162)]){const _0x20b3f5=_0x30a805['spatial'][_0x30dde2(0x138)];_0x30a805['spatial'][_0x30dde2(0x1a5)]===_0x44bb02[_0x30dde2(0x1c0)]&&_0x20b3f5['length']>=0x2?console[_0x30dde2(0x11c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x20b3f5[0x0][_0x30dde2(0x108)](0x2)+',\x20'+_0x20b3f5[0x1][_0x30dde2(0x108)](0x2)+')'):console['log'](_0x30dde2(0x156)+_0x30a805[_0x30dde2(0x162)]['type']+_0x30dde2(0x1b0)+_0x20b3f5[_0x30dde2(0x12d)](_0x37185d=>_0x37185d['toFixed'](0x2))['join'](',\x20')+']');}}if(_0x2a4ba2['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x21bff0 of _0x2a4ba2[_0x30dde2(0x1b5)][_0x30dde2(0x186)]('\x0a')){console['log']('\x20\x20\x20\x20'+_0x21bff0);}}}else console[_0x30dde2(0x11c)](_0x30dde2(0x1b1)+_0x44bb02['ZVaaK'](_0x3eec9c,0x1)+':\x20\x22'+_0x376813['description']+'\x22'+_0x2217e1+_0x30dde2(0x136)),console[_0x30dde2(0x11c)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x1138c5){const _0x514048=_0x1f47f2,_0x1ca2b0={'ammax':function(_0x30ab4f){return _0x30ab4f();},'eQugD':_0x514048(0x179),'OsUFq':function(_0x326221,_0x5231ec){return _0x326221(_0x5231ec);},'FaQSm':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x157f13=_0x1138c5||await _0x1ca2b0[_0x514048(0x1af)](getActiveFeatureId);if(!_0x157f13)throw new Error(_0x1ca2b0['eQugD']);const _0x9973b1=await getFeature(_0x157f13);await _0x1ca2b0['OsUFq'](softDeleteFeature,_0x157f13),console[_0x514048(0x11c)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x9973b1['name']+'\x20('+_0x157f13+')'),console[_0x514048(0x11c)](_0x1ca2b0[_0x514048(0x1b7)]+_0x157f13);}export async function featureRestore(_0x58c5ba){const _0x1e1fa8=_0x1f47f2,_0x311ebd={'gnteX':function(_0x29299b,_0x8fdeca){return _0x29299b(_0x8fdeca);},'FHjHn':function(_0x277d7d,_0x4f97f4,_0x245f21){return _0x277d7d(_0x4f97f4,_0x245f21);}};await restoreFeature(_0x58c5ba);const _0x2d5162=await _0x311ebd['gnteX'](getFeature,_0x58c5ba);console[_0x1e1fa8(0x11c)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x2d5162[_0x1e1fa8(0x191)]+'\x20('+_0x58c5ba+')'),_0x311ebd[_0x1e1fa8(0x183)](displayFeature,_0x2d5162,_0x2d5162[_0x1e1fa8(0x16f)]);}function _0x30e4(){const _0x3bd3cb=['map','nldXH','\x20[has\x20reviewer\x20feedback]','push','\x0a✅\x20Scenario\x20updated','createdAt','Cannot\x20conclude\x20session\x20with\x20status:\x20','dashboardUrl','\x0a✅\x20Session\x20','\x20—\x20no\x20comments','canceledReason','coordinates','TDkaj','excludeScenarios','xKitQ','gitBranch','\x20\x20\x20\x20\x20\x20Incomplete:\x20','blocked','git\x20rev-parse\x20--abbrev-ref\x20HEAD','kIkYI','scenarios','EognC','offset','No\x20active\x20session\x20for\x20this\x20feature\x20review.','HmgFS','17342TvtbYB','XLkgA','verification_in_progress','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','git\x20remote\x20get-url\x20origin','\x0aAvailable\x20scenarios:','stdin','\x20\x20\x20Updated\x20branch\x20to:\x20','wngjX','msffk','lmeYf','8OIaqAe','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','closed','\x0aConcluding\x20session...','4604uuEkuW','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','QkrEg','BhrPt','2510ywonIl','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','repeat','\x0aGenerating\x20report...','11263959fHbjPr','env','stats','\x20—\x20','spatial','IjSCr','UeXCb','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','acHgw','\x20\x20\x20Branch:\x20','completedAt','status','find','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','toLocaleDateString','\x1b[0m','short','checklistItems','ExnAr','MRvLt','BvYDb','feedback-images','comment_','mdgcV','in_progress','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','XpOJq','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','CBrSY','incompleteReason','totalCount','\x20concluded.','currentBranch','\x0a✅\x20Report\x20generated:\x20','\x0a✅\x20Scenario\x20added','oxzXc','OdRCQ','FHjHn','\x20\x20\x20ID:\x20','round','split','join','tSHrI','raaFh','\x20feature\x20review(s)\x20found','\x20incomplete','qpjzg','version','\x0a✅\x20Resumed\x20feature\x20review:\x20','error','pKEdV','name','MSAkV','TypXz','active-feature.txt','mbtxX','46xEnkvE','\x20\x20\x20\x20\x20\x20Approved','currentSessionId','completed','.png','yosdr','45265seYTmm','iteration','hwfbm','LZTaQ','length','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','aBUSi','KHrFs','en-US','type','blockedReason','\x20\x20\x20Completed:\x20','TOehz','FORbq','\x20\x20\x20Status:\x20','\x0a⚠️\x20\x20','.md','approved','\x20--current-branch','ammax','\x20at\x20[','Scenario\x20','style','mTfAu','btzgE','canonicalFlow','trim','FaQSm','unaddressedComments','1780035nEuqSn','gscFv','\x0a✅\x20Session\x20is\x20already\x20completed.','2060yQHOTB','items','any','nUgxq','CNhAI','RXrfX','yJdkN','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','incomplete','toLocaleString','cVdIw','):\x20\x22','\x20\x20\x20▶️\x20Started\x20session\x20','iNYaZ','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','filter','ZtEQO','IvAMv','HmuPS','toFixed','sessionId','\x20\x20\x20Created:\x20','Not\x20in\x20a\x20git\x20repository.','Please\x20finish\x20your\x20review\x20first:','isTTY','\x20\x20\x20\x20\x20Progress:\x20','\x0a✅\x20Feature\x20review\x20created:\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','No\x20scenarios\x20found.','latestReview','\x20scenarios.','LPbEx','\x20\x20\x20\x20\x20\x20Blocked:\x20','submittedAt','\x20blocked','IVdaH','pendingItems','FxuRx','includeDeleted','log','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','12625164Lnvhkh','UUItz','position','PnBru','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','pipe','description','ExhsR','YbhbX','FUHvE','replace','8473860lPNMwJ','exit','verifiedItems','YLqdV'];_0x30e4=function(){return _0x3bd3cb;};return _0x30e4();}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x158797,_0x2e9a7e){const _0x2a7eb8=_0x347e,_0x481261=_0x158797();while(!![]){try{const _0x4a384b=-parseInt(_0x2a7eb8(0x196))/0x1*(-parseInt(_0x2a7eb8(0x19e))/0x2)+parseInt(_0x2a7eb8(0x1a1))/0x3+-parseInt(_0x2a7eb8(0x193))/0x4*(-parseInt(_0x2a7eb8(0x195))/0x5)+parseInt(_0x2a7eb8(0x19f))/0x6*(-parseInt(_0x2a7eb8(0x198))/0x7)+-parseInt(_0x2a7eb8(0x19c))/0x8+-parseInt(_0x2a7eb8(0x1a0))/0x9+parseInt(_0x2a7eb8(0x19d))/0xa*(parseInt(_0x2a7eb8(0x19a))/0xb);if(_0x4a384b===_0x2e9a7e)break;else _0x481261['push'](_0x481261['shift']());}catch(_0x35bafc){_0x481261['push'](_0x481261['shift']());}}}(_0x4fdd,0xe9158));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};export async function hook(_0x587a01,_0x7c7071){const _0x1f82ba=_0x347e,_0x349803=HOOKS[_0x587a01];if(!_0x349803){const _0x53ac51=Object[_0x1f82ba(0x199)](HOOKS)[_0x1f82ba(0x197)](',\x20');console[_0x1f82ba(0x192)](_0x1f82ba(0x194)+_0x587a01),console['error']('Valid\x20hooks:\x20'+_0x53ac51),process[_0x1f82ba(0x19b)](0x1);}await _0x349803(_0x7c7071);}function _0x347e(_0x3cd249,_0x192b10){_0x3cd249=_0x3cd249-0x192;const _0x4fdd4d=_0x4fdd();let _0x347eb6=_0x4fdd4d[_0x3cd249];return _0x347eb6;}function _0x4fdd(){const _0x2438f0=['792286SrqlSu','exit','10476568OPTCge','140RDfJvC','136718FXASuY','5314818EHvdIr','2200914WXXsVw','4547442BeVVRA','error','474020iWXQAV','Unknown\x20hook:\x20','5fufKKS','11NaZzRb','join','7evNRWw','keys'];_0x4fdd=function(){return _0x2438f0;};return _0x4fdd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x31b7(){const _0x342ca7=['2933016gyTcUq','ONxtk','6MgFded','55LjvLVH','11ZaDPtR','\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.','2099391cmbxYE','99834jkqaNL','36NhomVS','session_id','1636BUvxJL','193491NQvOcC','2413284LGiIJy','240txjqQg','27067TZNEal'];_0x31b7=function(){return _0x342ca7;};return _0x31b7();}const _0x45ec8c=_0x5720;(function(_0x3b1f6d,_0x37d21b){const _0x1c7b62=_0x5720,_0x5e8674=_0x3b1f6d();while(!![]){try{const _0x3809de=-parseInt(_0x1c7b62(0x149))/0x1*(-parseInt(_0x1c7b62(0x143))/0x2)+-parseInt(_0x1c7b62(0x14c))/0x3*(parseInt(_0x1c7b62(0x145))/0x4)+-parseInt(_0x1c7b62(0x14d))/0x5*(-parseInt(_0x1c7b62(0x142))/0x6)+parseInt(_0x1c7b62(0x150))/0x7+-parseInt(_0x1c7b62(0x14a))/0x8+parseInt(_0x1c7b62(0x146))/0x9*(-parseInt(_0x1c7b62(0x148))/0xa)+parseInt(_0x1c7b62(0x14e))/0xb*(parseInt(_0x1c7b62(0x147))/0xc);if(_0x3809de===_0x37d21b)break;else _0x5e8674['push'](_0x5e8674['shift']());}catch(_0x38cf59){_0x5e8674['push'](_0x5e8674['shift']());}}}(_0x31b7,0x4645a));function _0x5720(_0x3a56dc,_0x3cc715){_0x3a56dc=_0x3a56dc-0x142;const _0x31b7d6=_0x31b7();let _0x572067=_0x31b7d6[_0x3a56dc];return _0x572067;}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x45ec8c(0x14f);export async function autoPrompt(){const _0x4fd940=_0x45ec8c,_0x7ce3de={'ONxtk':function(_0x48fa4e,_0x526ff1){return _0x48fa4e(_0x526ff1);}},_0x19cc84=await readHookInput(),_0x2ee195=_0x19cc84?.[_0x4fd940(0x144)];if(!_0x2ee195)return;if(isSessionEnabled(_0x2ee195)||_0x7ce3de[_0x4fd940(0x14b)](hasSessionBeenPrompted,_0x2ee195))return;markSessionPrompted(_0x2ee195),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a4ab0,_0x129264){const _0x1aa57b=_0x34ce,_0xbf7686=_0x3a4ab0();while(!![]){try{const _0x1715c6=parseInt(_0x1aa57b(0x6d))/0x1*(parseInt(_0x1aa57b(0x77))/0x2)+parseInt(_0x1aa57b(0x72))/0x3*(-parseInt(_0x1aa57b(0x73))/0x4)+-parseInt(_0x1aa57b(0x70))/0x5+-parseInt(_0x1aa57b(0x74))/0x6+parseInt(_0x1aa57b(0x7c))/0x7+-parseInt(_0x1aa57b(0x75))/0x8+parseInt(_0x1aa57b(0x6f))/0x9*(parseInt(_0x1aa57b(0x76))/0xa);if(_0x1715c6===_0x129264)break;else _0xbf7686['push'](_0xbf7686['shift']());}catch(_0x9ffa25){_0xbf7686['push'](_0xbf7686['shift']());}}}(_0xa8d4,0x714d1));function _0xa8d4(){const _0x5075a2=['15461170gWdhhi','81686xKodxJ','AkGZz','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','error','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','1124018yUGQav','HYqNE','LilWv','12blAQoC','Error:\x20No\x20session\x20ID\x20available.','9BWEkMm','1741505nQoyda','main','7716NRXify','608fqYhwL','4419852ImLrwL','2054712FkoRfi'];_0xa8d4=function(){return _0x5075a2;};return _0xa8d4();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x34ce(_0x44d4aa,_0x53247a){_0x44d4aa=_0x44d4aa-0x6d;const _0xa8d4f4=_0xa8d4();let _0x34cea5=_0xa8d4f4[_0x44d4aa];return _0x34cea5;}import{printBlock}from'./output.js';export async function disable(_0x3ef02e){const _0x2b0065=_0x34ce,_0x132324={'lnjHb':_0x2b0065(0x71),'AkGZz':'master','LilWv':function(_0x2b298b,_0x10196f){return _0x2b298b(_0x10196f);},'HYqNE':function(_0x50e84f,_0x42d992){return _0x50e84f!==_0x42d992;}},_0x3a1132=_0x3ef02e||process['env']['CLAUDE_SESSION_ID']||'';!_0x3a1132&&(console['error'](_0x2b0065(0x6e)),console[_0x2b0065(0x7a)](_0x2b0065(0x79)),process['exit'](0x1));disableSession(_0x3a1132);const _0x52fe26=getCurrentBranch();_0x52fe26&&_0x52fe26!==_0x132324['lnjHb']&&_0x52fe26!==_0x132324[_0x2b0065(0x78)]&&_0x132324['LilWv'](disableBranch,_0x52fe26),_0x132324[_0x2b0065(0x7e)](printBlock,_0x2b0065(0x7b)+(_0x52fe26&&_0x132324[_0x2b0065(0x7d)](_0x52fe26,_0x132324['lnjHb'])&&_0x52fe26!==_0x132324['AkGZz']?'\x20and\x20branch\x20\x27'+_0x52fe26+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37d70b,_0xe002f3){const _0x27907b=_0x54b9,_0x8b0397=_0x37d70b();while(!![]){try{const _0x2c8f2d=parseInt(_0x27907b(0x10c))/0x1+-parseInt(_0x27907b(0x111))/0x2+-parseInt(_0x27907b(0x11c))/0x3+parseInt(_0x27907b(0x119))/0x4+parseInt(_0x27907b(0x11f))/0x5+-parseInt(_0x27907b(0x11a))/0x6*(parseInt(_0x27907b(0x10f))/0x7)+-parseInt(_0x27907b(0x112))/0x8*(-parseInt(_0x27907b(0x109))/0x9);if(_0x2c8f2d===_0xe002f3)break;else _0x8b0397['push'](_0x8b0397['shift']());}catch(_0x4c5b7c){_0x8b0397['push'](_0x8b0397['shift']());}}}(_0xdd8b,0x32d61));function _0xdd8b(){const _0x5ce02b=['420EdzQgl','env','224846SlkbIm','304vaZWBy','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','GUUIO','exit','\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.','uLbWk','ywnTU','749840fFyMza','28338DkmsTk','ranger\x20setup\x20--opencode','961083gZMIBT','error','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','318700KIbqSE','LsiAt','156051Gvxbkl','master','IuDVA','14307WlRCTL','ranger\x20setup','Error:\x20No\x20session\x20ID\x20available.'];_0xdd8b=function(){return _0x5ce02b;};return _0xdd8b();}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x54b9(_0x4dc0a,_0x313034){_0x4dc0a=_0x4dc0a-0x109;const _0xdd8b6c=_0xdd8b();let _0x54b980=_0xdd8b6c[_0x4dc0a];return _0x54b980;}export async function enable(_0x148831){const _0xfba995=_0x54b9,_0x52be50={'GUUIO':_0xfba995(0x11e),'IuDVA':_0xfba995(0x113),'LsiAt':function(_0x3efe67,_0x2b43d5){return _0x3efe67(_0x2b43d5);},'kETJi':function(_0x27fe38){return _0x27fe38();},'ywnTU':function(_0x3b4c6e){return _0x3b4c6e();},'uLbWk':'main','SVCLD':function(_0x2db06a,_0x4cfc6b){return _0x2db06a!==_0x4cfc6b;},'yVBFV':_0xfba995(0x10a)},_0x1a0ae7=_0x148831||process[_0xfba995(0x110)]['CLAUDE_SESSION_ID']||'';!_0x1a0ae7&&(console[_0xfba995(0x11d)](_0xfba995(0x10e)),console['error']('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process[_0xfba995(0x115)](0x1));const _0x15c22c=Boolean(_0x148831),_0xb413a2=await getToken();if(!_0xb413a2){const _0x3132d1=_0x15c22c?_0xfba995(0x11b):_0xfba995(0x10d),_0x56f484=_0x15c22c?_0x52be50[_0xfba995(0x114)]:_0x52be50[_0xfba995(0x10b)];_0x52be50['LsiAt'](printBlock,'#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x3132d1+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x56f484);return;}try{await _0x52be50['kETJi'](update);}catch{}_0x52be50[_0xfba995(0x120)](enableSession,_0x1a0ae7);const _0x4519de=_0x52be50[_0xfba995(0x118)](getCurrentBranch),_0x1dc2a3=_0x4519de&&_0x4519de!==_0x52be50[_0xfba995(0x117)]&&_0x52be50['SVCLD'](_0x4519de,_0x52be50['yVBFV'])?'\x0a\x0a**Branch\x20\x27'+_0x4519de+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x36a432=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x1dc2a3+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x36a432+_0xfba995(0x116));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1280(_0x56f5ee,_0x384830){_0x56f5ee=_0x56f5ee-0xd0;const _0xb73d2d=_0xb73d();let _0x1280a6=_0xb73d2d[_0x56f5ee];return _0x1280a6;}(function(_0x494432,_0x273f06){const _0x3b00de=_0x1280,_0x42a256=_0x494432();while(!![]){try{const _0x280305=parseInt(_0x3b00de(0xdc))/0x1*(parseInt(_0x3b00de(0xd5))/0x2)+-parseInt(_0x3b00de(0xd8))/0x3*(-parseInt(_0x3b00de(0xdb))/0x4)+parseInt(_0x3b00de(0xda))/0x5+-parseInt(_0x3b00de(0xd0))/0x6*(parseInt(_0x3b00de(0xd2))/0x7)+-parseInt(_0x3b00de(0xd7))/0x8*(-parseInt(_0x3b00de(0xd4))/0x9)+parseInt(_0x3b00de(0xd9))/0xa*(-parseInt(_0x3b00de(0xd3))/0xb)+-parseInt(_0x3b00de(0xd1))/0xc;if(_0x280305===_0x273f06)break;else _0x42a256['push'](_0x42a256['shift']());}catch(_0x374dc2){_0x42a256['push'](_0x42a256['shift']());}}}(_0xb73d,0xe26b9));import{printBlock,getEnabledSessionId}from'./output.js';function _0xb73d(){const _0x15bf29=['4490343JLlYlx','45TwUnpc','262LqAiXT','===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===','2096392GNflNK','4632582rtFynW','10bcabeL','1421355wSqpWp','4FfclHn','497CxVUOo','30kZlwJM','2820504zNbZTg','2286403buJmuQ'];_0xb73d=function(){return _0x15bf29;};return _0xb73d();}export async function exitPlanMode(_0x2ce838){const _0x1ad6e7=_0x1280,_0xdf9b32={'XbWTt':function(_0x4172ea,_0x3c6e63){return _0x4172ea(_0x3c6e63);}},_0x237f59=await _0xdf9b32['XbWTt'](getEnabledSessionId,_0x2ce838);if(!_0x237f59)return;_0xdf9b32['XbWTt'](printBlock,_0x1ad6e7(0xd6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x440d9,_0x29a58b){var _0x11ab80=_0x479a,_0x7d867a=_0x440d9();while(!![]){try{var _0x5a7937=-parseInt(_0x11ab80(0x179))/0x1+-parseInt(_0x11ab80(0x180))/0x2*(-parseInt(_0x11ab80(0x182))/0x3)+parseInt(_0x11ab80(0x181))/0x4+-parseInt(_0x11ab80(0x178))/0x5*(parseInt(_0x11ab80(0x17b))/0x6)+-parseInt(_0x11ab80(0x17f))/0x7*(-parseInt(_0x11ab80(0x17a))/0x8)+parseInt(_0x11ab80(0x17e))/0x9*(-parseInt(_0x11ab80(0x17c))/0xa)+parseInt(_0x11ab80(0x17d))/0xb;if(_0x5a7937===_0x29a58b)break;else _0x7d867a['push'](_0x7d867a['shift']());}catch(_0x250620){_0x7d867a['push'](_0x7d867a['shift']());}}}(_0x30a3,0xd8528));function _0x479a(_0xfed972,_0x559461){_0xfed972=_0xfed972-0x178;var _0x30a398=_0x30a3();var _0x479ae7=_0x30a398[_0xfed972];return _0x479ae7;}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x30a3(){var _0x18b53a=['7kHQOtD','22FOwwoA','1871344zfVsSm','143814ycZqUs','5KwptdL','583582auzMPD','121952vEmTEG','2481972kxPSoA','926990CHBNzA','27956324aGvWPm','162qoRxAy'];_0x30a3=function(){return _0x18b53a;};return _0x30a3();}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x286977,_0xd0d893){const _0x44a409=_0x5ae4,_0x511860=_0x286977();while(!![]){try{const _0x5bbd9d=-parseInt(_0x44a409(0x97))/0x1*(parseInt(_0x44a409(0x92))/0x2)+-parseInt(_0x44a409(0x8e))/0x3+-parseInt(_0x44a409(0x93))/0x4+-parseInt(_0x44a409(0x8f))/0x5*(parseInt(_0x44a409(0x91))/0x6)+-parseInt(_0x44a409(0x90))/0x7+parseInt(_0x44a409(0x94))/0x8*(-parseInt(_0x44a409(0x99))/0x9)+parseInt(_0x44a409(0x96))/0xa;if(_0x5bbd9d===_0xd0d893)break;else _0x511860['push'](_0x511860['shift']());}catch(_0x597a88){_0x511860['push'](_0x511860['shift']());}}}(_0x3d9f,0x2dad9));function _0x5ae4(_0x917b73,_0x4f0186){_0x917b73=_0x917b73-0x8d;const _0x3d9fa2=_0x3d9f();let _0x5ae4ac=_0x3d9fa2[_0x917b73];return _0x5ae4ac;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x2e5a3c){const _0x114b46=_0x5ae4;console[_0x114b46(0x95)](_0x2e5a3c);}export async function readHookInput(){const _0x36385c=_0x5ae4;let _0x17d93d='';for await(const _0x4b7fe8 of process[_0x36385c(0x98)]){_0x17d93d+=_0x4b7fe8;}try{return JSON['parse'](_0x17d93d);}catch{return null;}}export async function getEnabledSessionId(_0x2725ad){const _0x4454af=_0x5ae4;if(_0x2725ad)return isSessionEnabled(_0x2725ad)?_0x2725ad:null;const _0x15b6dd=await readHookInput(),_0x37daa2=_0x15b6dd?.[_0x4454af(0x8d)];if(!_0x37daa2||!isSessionEnabled(_0x37daa2))return null;return _0x37daa2;}export async function getEnabledHookContext(_0x13e2ed){const _0x29b9b2={'QtWXm':function(_0x5708a7,_0x4cb7cf){return _0x5708a7(_0x4cb7cf);},'CWNwl':function(_0xb61b59){return _0xb61b59();}};if(_0x13e2ed){if(!_0x29b9b2['QtWXm'](isSessionEnabled,_0x13e2ed))return null;return{'sessionId':_0x13e2ed,'input':{'session_id':_0x13e2ed}};}const _0x15de96=await _0x29b9b2['CWNwl'](readHookInput),_0x1978ae=_0x15de96?.['session_id'];if(!_0x1978ae||!isSessionEnabled(_0x1978ae))return null;return{'sessionId':_0x1978ae,'input':_0x15de96};}function _0x3d9f(){const _0x5ec571=['90JsJlwc','267094UmkpMp','54088DyZoie','9992qWvkes','log','9212770ifyhmH','1KXDfKj','stdin','198CwxxDi','session_id','826980uHfmXp','85775UbaBvw','186536tFyyrl'];_0x3d9f=function(){return _0x5ec571;};return _0x3d9f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b83d1,_0x1eaae3){const _0x4ef790=_0x2655,_0x217fbe=_0x2b83d1();while(!![]){try{const _0x179e44=parseInt(_0x4ef790(0x16f))/0x1+parseInt(_0x4ef790(0x16c))/0x2+-parseInt(_0x4ef790(0x170))/0x3*(parseInt(_0x4ef790(0x16e))/0x4)+parseInt(_0x4ef790(0x171))/0x5*(parseInt(_0x4ef790(0x16d))/0x6)+parseInt(_0x4ef790(0x16b))/0x7*(-parseInt(_0x4ef790(0x177))/0x8)+parseInt(_0x4ef790(0x176))/0x9+-parseInt(_0x4ef790(0x173))/0xa*(parseInt(_0x4ef790(0x175))/0xb);if(_0x179e44===_0x1eaae3)break;else _0x217fbe['push'](_0x217fbe['shift']());}catch(_0x59f1e6){_0x217fbe['push'](_0x217fbe['shift']());}}}(_0x43ee,0xe1f6f));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x77db21){const _0x2faf89=_0x2655,_0xd1ff7a=await getEnabledHookContext(_0x77db21);if(!_0xd1ff7a)return;if(_0xd1ff7a['input']['permission_mode']!==_0x2faf89(0x172))return;if(!shouldShowPlanReminder(_0xd1ff7a[_0x2faf89(0x178)]))return;printBlock(_0x2faf89(0x174));}function _0x2655(_0x31fec2,_0x248e38){_0x31fec2=_0x31fec2-0x16b;const _0x43ee25=_0x43ee();let _0x265569=_0x43ee25[_0x31fec2];return _0x265569;}function _0x43ee(){const _0x24d433=['592499aUlxGd','3zmABvW','1735ClLQpo','plan','30Puojof','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===','3128851hoHNvB','9439137CTIazs','283472kJiYaI','sessionId','245xVCECL','3070288xYgaLW','24702ghCQTM','6343884fKpiDe'];_0x43ee=function(){return _0x24d433;};return _0x43ee();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14725e,_0x5aa780){const _0x29a0aa=_0xb871,_0x4176b7=_0x14725e();while(!![]){try{const _0x16798e=-parseInt(_0x29a0aa(0x108))/0x1*(-parseInt(_0x29a0aa(0xff))/0x2)+-parseInt(_0x29a0aa(0xfd))/0x3*(parseInt(_0x29a0aa(0x105))/0x4)+-parseInt(_0x29a0aa(0x102))/0x5*(-parseInt(_0x29a0aa(0x100))/0x6)+-parseInt(_0x29a0aa(0x107))/0x7*(parseInt(_0x29a0aa(0x10a))/0x8)+parseInt(_0x29a0aa(0x101))/0x9*(parseInt(_0x29a0aa(0x106))/0xa)+-parseInt(_0x29a0aa(0x10b))/0xb*(parseInt(_0x29a0aa(0x103))/0xc)+parseInt(_0x29a0aa(0x109))/0xd*(parseInt(_0x29a0aa(0x104))/0xe);if(_0x16798e===_0x5aa780)break;else _0x4176b7['push'](_0x4176b7['shift']());}catch(_0x432ef4){_0x4176b7['push'](_0x4176b7['shift']());}}}(_0x13c7,0xc73df));function _0x13c7(){const _0x385ea1=['3980522EhaWzN','2632880BfLHSX','50cAjJFT','379834gyIfrb','1UbpICH','13hRXpHF','104jtVszk','151954foZIZD','3sQmVVc','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===','1035302djMEGw','24jTzjMk','138951yqRDqK','1971040tJvTCA','240AIzAOe'];_0x13c7=function(){return _0x385ea1;};return _0x13c7();}function _0xb871(_0x5afd30,_0x2a43fd){_0x5afd30=_0x5afd30-0xfd;const _0x13c7c0=_0x13c7();let _0xb8716b=_0x13c7c0[_0x5afd30];return _0xb8716b;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x2b8a8c){const _0x532bfc=_0xb871,_0x232315={'VwTxu':function(_0x482807,_0x3c4439){return _0x482807(_0x3c4439);}},_0x26f4a1=await _0x232315['VwTxu'](getEnabledSessionId,_0x2b8a8c);if(!_0x26f4a1)return;printBlock(_0x532bfc(0xfe));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x265c30,_0x43ad11){const _0x4afa25=_0x5a37,_0x1a96ca=_0x265c30();while(!![]){try{const _0x5adfcd=-parseInt(_0x4afa25(0x1f8))/0x1+parseInt(_0x4afa25(0x1fc))/0x2*(-parseInt(_0x4afa25(0x202))/0x3)+parseInt(_0x4afa25(0x1f5))/0x4*(parseInt(_0x4afa25(0x201))/0x5)+-parseInt(_0x4afa25(0x1f4))/0x6*(-parseInt(_0x4afa25(0x200))/0x7)+parseInt(_0x4afa25(0x1fd))/0x8*(parseInt(_0x4afa25(0x203))/0x9)+parseInt(_0x4afa25(0x1f9))/0xa*(-parseInt(_0x4afa25(0x1fe))/0xb)+-parseInt(_0x4afa25(0x1fb))/0xc;if(_0x5adfcd===_0x43ad11)break;else _0x1a96ca['push'](_0x1a96ca['shift']());}catch(_0x12811a){_0x1a96ca['push'](_0x1a96ca['shift']());}}}(_0x16e6,0xeeba7));function _0x16e6(){const _0x56553f=['ewWOQ','12294384VAcPfV','10jXsFHa','8RdCtkb','9596697LVGXXw','stringify','46193DZjHUo','3755yaaHkg','184116lukZAY','12352077WvszVm','log','1542AlNzNw','3076krnHBm','PostToolUse','RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.','464265gDULXe','10NehJZE'];_0x16e6=function(){return _0x56553f;};return _0x16e6();}function _0x5a37(_0x50e694,_0x2cea7d){_0x50e694=_0x50e694-0x1f3;const _0x16e619=_0x16e6();let _0x5a37ca=_0x16e619[_0x50e694];return _0x5a37ca;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x23c8d4){const _0x1b812c=_0x5a37,_0x5f29ff={'yKGUx':function(_0x481faf,_0x395d00){return _0x481faf(_0x395d00);},'jNiFv':function(_0x3cdfa3){return _0x3cdfa3();},'ewWOQ':_0x1b812c(0x1f6)},_0x599e26=await _0x5f29ff['yKGUx'](getEnabledSessionId,_0x23c8d4);if(!_0x599e26)return;updateBranchTracking(_0x599e26);const _0x4ec14c=await _0x5f29ff['jNiFv'](getToken);if(!_0x4ec14c)return;const _0x46aea7=getSessionEntry(_0x599e26);if(_0x46aea7){const _0x494323={'hookSpecificOutput':{'hookEventName':_0x5f29ff[_0x1b812c(0x1fa)],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON[_0x1b812c(0x1ff)](_0x494323));return;}const _0x54fd53={'hookSpecificOutput':{'hookEventName':_0x5f29ff[_0x1b812c(0x1fa)],'additionalContext':_0x1b812c(0x1f7)}};console[_0x1b812c(0x1f3)](JSON['stringify'](_0x54fd53));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x200a(){const _0x36b3ab=['186makzGa','6194532lXaQnZ','2359895JvUPdn','1100978xGnoWL','7354iyAPxg','608909HBVhop','ZMPCt','6311452ryuUtO','56JqPjjN','10200168EzJWME'];_0x200a=function(){return _0x36b3ab;};return _0x200a();}(function(_0x16503a,_0x4a680f){const _0x552fd7=_0x2d60,_0x44710f=_0x16503a();while(!![]){try{const _0x33bbd6=parseInt(_0x552fd7(0x1eb))/0x1+-parseInt(_0x552fd7(0x1ec))/0x2*(-parseInt(_0x552fd7(0x1e8))/0x3)+-parseInt(_0x552fd7(0x1e5))/0x4+parseInt(_0x552fd7(0x1ea))/0x5+-parseInt(_0x552fd7(0x1e9))/0x6+-parseInt(_0x552fd7(0x1ed))/0x7*(-parseInt(_0x552fd7(0x1e6))/0x8)+parseInt(_0x552fd7(0x1e7))/0x9;if(_0x33bbd6===_0x4a680f)break;else _0x44710f['push'](_0x44710f['shift']());}catch(_0x4f9d56){_0x44710f['push'](_0x44710f['shift']());}}}(_0x200a,0xe3c2b));function _0x2d60(_0x33fcc0,_0x2e918e){_0x33fcc0=_0x33fcc0-0x1e5;const _0x200ac3=_0x200a();let _0x2d60cb=_0x200ac3[_0x33fcc0];return _0x2d60cb;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x24aa60){const _0x23a4e4=_0x2d60,_0xd476f5={'mpoat':function(_0x4fcbf3){return _0x4fcbf3();},'ZMPCt':function(_0x554211,_0xf5a153){return _0x554211(_0xf5a153);}},_0x5ec839=await getEnabledSessionId(_0x24aa60);if(!_0x5ec839)return;try{const _0xcdba95=await _0xd476f5['mpoat'](getToken);if(!_0xcdba95)return;_0xd476f5[_0x23a4e4(0x1ee)](printBlock,'===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x419f36,_0x2038fe){const _0x1d55bb=_0xbc2a,_0x32d6f5=_0x419f36();while(!![]){try{const _0x9e316a=parseInt(_0x1d55bb(0x1ae))/0x1*(parseInt(_0x1d55bb(0x1b2))/0x2)+-parseInt(_0x1d55bb(0x1b0))/0x3+-parseInt(_0x1d55bb(0x1b1))/0x4+parseInt(_0x1d55bb(0x1b7))/0x5*(parseInt(_0x1d55bb(0x1b4))/0x6)+parseInt(_0x1d55bb(0x1b3))/0x7+parseInt(_0x1d55bb(0x1b6))/0x8*(-parseInt(_0x1d55bb(0x1b5))/0x9)+-parseInt(_0x1d55bb(0x1b9))/0xa;if(_0x9e316a===_0x2038fe)break;else _0x32d6f5['push'](_0x32d6f5['shift']());}catch(_0x4a7204){_0x32d6f5['push'](_0x32d6f5['shift']());}}}(_0x5584,0x89e0f));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x5584(){const _0x5626b5=['3273760ffuHGh','5890782aBnKvi','128043WRmxlq','456WKZivY','5peQbVS','pqRSb','809760IyHkEj','session_id','706NkyOfH','clear','1960803WfDmbp','869896ZiINZy','2488sSxuFc'];_0x5584=function(){return _0x5626b5;};return _0x5584();}import{readHookInput}from'./output.js';function _0xbc2a(_0x58a451,_0xb75b40){_0x58a451=_0x58a451-0x1ae;const _0x558497=_0x5584();let _0xbc2a88=_0x558497[_0x58a451];return _0xbc2a88;}export async function sessionEnd(_0xd03ef2){const _0x5a34c7=_0xbc2a,_0x2c377a={'pqRSb':function(_0x169af8){return _0x169af8();},'XJdUW':function(_0x1f0f7d,_0x1aa1e3){return _0x1f0f7d===_0x1aa1e3;},'dyHhs':_0x5a34c7(0x1af),'CtZAF':function(_0x1b7831,_0x36363f){return _0x1b7831(_0x36363f);}};let _0x18055f=_0xd03ef2,_0x4b0d70;if(!_0xd03ef2){const _0x38c769=await _0x2c377a[_0x5a34c7(0x1b8)](readHookInput);_0x18055f=_0x38c769?.[_0x5a34c7(0x1ba)],_0x4b0d70=_0x38c769?.['reason'];}if(!_0x18055f)return;_0x2c377a['XJdUW'](_0x4b0d70,_0x2c377a['dyHhs'])&&_0x2c377a['CtZAF'](recordEnabledSessionCleared,_0x18055f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x46e60a=_0x4417;(function(_0x6fbec8,_0x3e091b){const _0x15d964=_0x4417,_0x431195=_0x6fbec8();while(!![]){try{const _0x128415=parseInt(_0x15d964(0xf1))/0x1+parseInt(_0x15d964(0xf0))/0x2+parseInt(_0x15d964(0xf7))/0x3+-parseInt(_0x15d964(0xed))/0x4+-parseInt(_0x15d964(0xf6))/0x5+parseInt(_0x15d964(0xe8))/0x6+parseInt(_0x15d964(0xeb))/0x7*(-parseInt(_0x15d964(0xf9))/0x8);if(_0x128415===_0x3e091b)break;else _0x431195['push'](_0x431195['shift']());}catch(_0x32a444){_0x431195['push'](_0x431195['shift']());}}}(_0x3190,0x6f347));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x4417(_0x539125,_0x2490ce){_0x539125=_0x539125-0xe4;const _0x3190d0=_0x3190();let _0x4417eb=_0x3190d0[_0x539125];return _0x4417eb;}import{createTelemetryCollector}from'../utils/telemetry.js';function _0x3190(){const _0x3292b1=['800937NXRDQi','wmxrg','508632iAZXjh','SessionStart','\x20(Branch:\x20','hook:session-start','session_id','stringify','3224658IsuFdB','parse','export\x20CLAUDE_SESSION_ID=\x22','161tmABFE','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','1561936oiTumB','env','stdin','1721648fHePCI','788878QXnUvt','main','master','ZUhXh','EZcSL','729140hyaMKc'];_0x3190=function(){return _0x3292b1;};return _0x3190();}const RANGER_AUTO_ENABLED_PROMPT=_0x46e60a(0xec);export async function sessionStart(_0x3cec49){const _0x1c5eed=_0x46e60a,_0x10e993={'EZcSL':function(_0x4ce6b2,_0x2d24e1){return _0x4ce6b2||_0x2d24e1;},'qsVTR':'source','pAHwF':function(_0x24753c,_0x51097a){return _0x24753c(_0x51097a);},'ZUhXh':_0x1c5eed(0xe5),'BbjmA':_0x1c5eed(0xf2),'wmxrg':function(_0x1608ab,_0x230c4a){return _0x1608ab+_0x230c4a;}};let _0x3d3917=_0x10e993[_0x1c5eed(0xf5)](_0x3cec49,''),_0x545cb7;if(!_0x3cec49){let _0x2e9d26='';for await(const _0xf23a39 of process[_0x1c5eed(0xef)]){_0x2e9d26+=_0xf23a39;}try{const _0x5d3207=JSON[_0x1c5eed(0xe9)](_0x2e9d26);_0x3d3917=_0x5d3207[_0x1c5eed(0xe6)]||'',_0x545cb7=_0x5d3207[_0x10e993['qsVTR']];}catch{}const _0x20ba8b=process[_0x1c5eed(0xee)]['CLAUDE_ENV_FILE'];if(_0x20ba8b&&_0x3d3917)try{await appendFile(_0x20ba8b,_0x1c5eed(0xea)+_0x3d3917+'\x22\x0a');}catch{}}if(_0x3d3917){shouldAutoEnableAfterClear(_0x545cb7)&&autoEnableAfterClear(_0x3d3917);initBranchTracking(_0x3d3917);const _0x23cb94=_0x10e993['pAHwF'](isSessionEnabled,_0x3d3917);try{const _0x45b75b=createTelemetryCollector(_0x10e993[_0x1c5eed(0xf4)]);await _0x45b75b['trackCommandStart']({'sessionId':_0x3d3917,'hooksEnabled':_0x23cb94}),await _0x45b75b['trackCommandEnd']('success');}catch{}if(_0x23cb94){const _0x184313=getCurrentBranch(),_0x5c0381=_0x184313&&_0x184313!==_0x10e993['BbjmA']&&_0x184313!==_0x1c5eed(0xf3)?_0x1c5eed(0xe4)+_0x184313+')':'',_0xf6fb60={'hookSpecificOutput':{'hookEventName':_0x1c5eed(0xfa),'additionalContext':_0x10e993[_0x1c5eed(0xf8)](RANGER_AUTO_ENABLED_PROMPT,_0x5c0381)}};console['log'](JSON[_0x1c5eed(0xe7)](_0xf6fb60));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d5224,_0x16ad95){const _0x3a0f1d=_0x1437,_0x40f2cf=_0x5d5224();while(!![]){try{const _0xbc6aea=parseInt(_0x3a0f1d(0xff))/0x1+parseInt(_0x3a0f1d(0x114))/0x2*(parseInt(_0x3a0f1d(0x112))/0x3)+parseInt(_0x3a0f1d(0xfa))/0x4*(parseInt(_0x3a0f1d(0x115))/0x5)+-parseInt(_0x3a0f1d(0x104))/0x6*(-parseInt(_0x3a0f1d(0x10c))/0x7)+parseInt(_0x3a0f1d(0x10b))/0x8*(parseInt(_0x3a0f1d(0xf7))/0x9)+-parseInt(_0x3a0f1d(0x106))/0xa*(-parseInt(_0x3a0f1d(0xfe))/0xb)+-parseInt(_0x3a0f1d(0xf9))/0xc;if(_0xbc6aea===_0x16ad95)break;else _0x40f2cf['push'](_0x40f2cf['shift']());}catch(_0x40d25d){_0x40f2cf['push'](_0x40f2cf['shift']());}}}(_0x22f1,0xa80b4));import{open}from'fs/promises';import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';function _0x22f1(){const _0x401917=['769794BoEMIQ','alloc','15070YNGuPC','min',':\x0a\x0a','frNad','transcript_path','56mRLCOx','7XrcuDG','\x20for\x20\x22','JxEqb','currentSessionId','ehDrC','dclOV','3yeqmwm','utf8','286684GmSkmq','505kMEvPI','message','RANGER_SKIP_VERIFICATION','1565469RlFIbJ','featureId','24620124ztHfdZ','40444fAGWJs','trackCommandStart','sessionId','close','847gwrBAp','113507nRFlUE','size','string','RGGSF','input'];_0x22f1=function(){return _0x401917;};return _0x22f1();}import{getSessionEntry}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0xff38f0){const _0x1cedee=_0x1437,_0x433da2={'zDkWu':function(_0x2241d8,_0x2d506d){return _0x2241d8(_0x2d506d);},'dclOV':function(_0x398640,_0x114504){return _0x398640===_0x114504;},'frNad':function(_0x2f00b9,_0x3bad95,_0x1c8f0b,_0x3ced19){return _0x2f00b9(_0x3bad95,_0x1c8f0b,_0x3ced19);},'JxEqb':_0x1cedee(0xf6),'rmNrk':function(_0x2ab5f8,_0x2f2805,_0x1fa080){return _0x2ab5f8(_0x2f2805,_0x1fa080);},'TBAhZ':function(_0x5b95e9,_0x43b04d){return _0x5b95e9&&_0x43b04d;},'iocPu':function(_0x3a8005,_0x4cfec8,_0x4747f7){return _0x3a8005(_0x4cfec8,_0x4747f7);}},_0x5d1211=await _0x433da2['zDkWu'](getEnabledHookContext,_0xff38f0),_0x1a70c5=_0x5d1211?.[_0x1cedee(0xfc)]??null,_0x55cda0=Boolean(_0x5d1211?.[_0x1cedee(0x103)]?.['stop_hook_active']),_0x2213be=_0x433da2[_0x1cedee(0x111)](typeof _0x5d1211?.['input']?.[_0x1cedee(0x10a)],_0x1cedee(0x101))?_0x5d1211[_0x1cedee(0x103)][_0x1cedee(0x10a)]:null;let _0x263878=!![];if(!_0x1a70c5){await trackStop(_0x1a70c5,![],_0x263878);return;}try{const _0x3d6974=getSessionEntry(_0x1a70c5);if(!_0x3d6974){await _0x433da2[_0x1cedee(0x109)](trackStop,_0x1a70c5,!![],_0x263878);return;}const _0x13084b='https://dashboard.ranger.net/features/'+_0x3d6974[_0x1cedee(0xf8)],_0x398ff8=_0x433da2[_0x1cedee(0x10e)],_0x4bc3b5=await getToken(),_0x3ba360=!_0x55cda0;let _0x2bf174=null,_0x54fe19=null;const _0x145139=_0x55cda0&&await _0x433da2['rmNrk'](transcriptHasToken,_0x2213be,_0x398ff8),_0x2a29a8=await transcriptHasToken(_0x2213be,_0x13084b);if(_0x4bc3b5)try{const _0x2eb6b0=await getFeature(_0x3d6974['featureId']);_0x2bf174=_0x2eb6b0['name']??null,_0x54fe19=_0x2eb6b0[_0x1cedee(0x10f)]??null;}catch{}if(_0x433da2['TBAhZ'](_0x4bc3b5,_0x54fe19))try{await _0x433da2['iocPu'](concludeSession,_0x3d6974['featureId'],_0x54fe19);}catch(_0x371c9e){if(_0x145139){await _0x433da2[_0x1cedee(0x109)](trackStop,_0x1a70c5,!![],_0x263878);return;}_0x263878=![];const _0x4f4e96=_0x371c9e instanceof Error?_0x371c9e[_0x1cedee(0x116)]:String(_0x371c9e),_0x1a031d={'decision':'block','reason':'Failed\x20to\x20conclude\x20Ranger\x20feature\x20review\x20session'+(_0x2bf174?_0x1cedee(0x10d)+_0x2bf174+'\x22':'')+_0x1cedee(0x108)+_0x4f4e96+'\x0a\x0aThis\x20is\x20most\x20likely\x20due\x20to\x20pending\x20scenarios\x20that\x20need\x20to\x20be\x20verified.\x20Please\x20resolve\x20the\x20issue\x20or\x20resume\x20later\x20with:\x0a\x20\x20ranger\x20resume\x0a\x0aIf\x20you\x20are\x20extremely\x20sure\x20this\x20is\x20the\x20user\x27s\x20requirement\x20and\x20want\x20to\x20skip\x20verification\x20for\x20now,\x20send\x20a\x20final\x20message\x20that\x20includes\x20the\x20feature\x20review\x20link\x20('+_0x13084b+')\x20and\x20the\x20token\x20`'+_0x398ff8+'`,\x20then\x20run\x20/exit\x20again.'};console['log'](JSON['stringify'](_0x1a031d)),await trackStop(_0x1a70c5,!![],_0x263878);return;}await trackStop(_0x1a70c5,!![],_0x263878);return;}catch{await trackStop(_0x1a70c5,!![],_0x263878);return;}}async function trackStop(_0x16c243,_0x17ca0f,_0x1e5b38){const _0x4217a0=_0x1437,_0x5ce79e={'IYubQ':function(_0x785283,_0x9f78c4){return _0x785283(_0x9f78c4);}};try{const _0x2ccc7c=_0x5ce79e['IYubQ'](createTelemetryCollector,'hook:stop');await _0x2ccc7c[_0x4217a0(0xfb)]({'sessionId':_0x16c243??undefined,'hooksEnabled':_0x17ca0f,'stopAllowed':_0x1e5b38}),await _0x2ccc7c['trackCommandEnd']('success');}catch{}}function _0x1437(_0x5f3c7c,_0x537429){_0x5f3c7c=_0x5f3c7c-0xf6;const _0x22f10e=_0x22f1();let _0x143793=_0x22f10e[_0x5f3c7c];return _0x143793;}async function transcriptHasToken(_0x57b890,_0x3eb3d3){if(!_0x57b890)return![];const _0x28190f=await readTranscriptTail(_0x57b890,0x30d40);return _0x28190f?_0x28190f['includes'](_0x3eb3d3):![];}async function readTranscriptTail(_0x3b183e,_0x202901){const _0x4756a8=_0x1437,_0x35ad66={'ehDrC':function(_0x5d6c28,_0x2e5320){return _0x5d6c28<=_0x2e5320;},'RGGSF':_0x4756a8(0x113)};let _0x23e585=null;try{_0x23e585=await open(_0x3b183e,'r');const _0x298b5f=await _0x23e585['stat'](),_0x24fd6b=Math[_0x4756a8(0x107)](_0x298b5f[_0x4756a8(0x100)],_0x202901);if(_0x35ad66[_0x4756a8(0x110)](_0x24fd6b,0x0))return'';const _0x26bbf9=Buffer[_0x4756a8(0x105)](_0x24fd6b);return await _0x23e585['read'](_0x26bbf9,0x0,_0x24fd6b,_0x298b5f['size']-_0x24fd6b),_0x26bbf9['toString'](_0x35ad66[_0x4756a8(0x102)]);}catch{return null;}finally{try{await _0x23e585?.[_0x4756a8(0xfd)]();}catch{}}}
|