@ranger-testing/ranger-cli 2.1.8 → 2.2.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/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 -1
- package/build/commands/setup/opencode.js +1 -1
- 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 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- 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/stitchWebmFiles.js +1 -0
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.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/package.json +1 -1
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12ff75=_0x40b7;(function(_0x26f5cc,_0x586703){const _0x326737=_0x40b7,_0x45542c=_0x26f5cc();while(!![]){try{const _0x2c606c=parseInt(_0x326737(0xfb))/0x1+-parseInt(_0x326737(0xde))/0x2*(parseInt(_0x326737(0xe8))/0x3)+-parseInt(_0x326737(0xe2))/0x4*(-parseInt(_0x326737(0xdc))/0x5)+-parseInt(_0x326737(0xf1))/0x6*(-parseInt(_0x326737(0xfa))/0x7)+-parseInt(_0x326737(0xee))/0x8*(-parseInt(_0x326737(0xf5))/0x9)+-parseInt(_0x326737(0xd8))/0xa*(parseInt(_0x326737(0xe7))/0xb)+-parseInt(_0x326737(0xdf))/0xc;if(_0x2c606c===_0x586703)break;else _0x45542c['push'](_0x45542c['shift']());}catch(_0x11c5f4){_0x45542c['push'](_0x45542c['shift']());}}}(_0x5698,0xd6882));function _0x5698(){const _0xa9c3b4=['2bOWVRe','5544336fVLnSA','environmentDetails','KcppJ','228oMgysI','baseUrl','\x0aNo\x20profiles\x20found.','wNjik','settings.json','99CvGOio','4332303sYPVLG','includes','UOhGc','legacy','Falmm','length','16EMAJNz','\x20\x20\x20\x20\x20\x20URL:\x20','.txt','9816204kjkpCo','kDUhn','ylhIV','push','422199tTJFXD','sessions','log','OAATt','\x20\x20\x20\x20\x20\x20Details:\x20','7MbKfIZ','1326249yaLVJA','ZpQJi','765690jUsEOV','Run:\x20ranger\x20profile\x20add\x20<profile-name>','BqiaV','isDirectory','36655xYZymT','local'];_0x5698=function(){return _0xa9c3b4;};return _0x5698();}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x12ff75(0xf6),'bug-bashes','reports',_0x12ff75(0xdd),'ci'];function _0x40b7(_0x1d841b,_0x258fb0){_0x1d841b=_0x1d841b-0xd8;const _0x569815=_0x5698();let _0x40b748=_0x569815[_0x1d841b];return _0x40b748;}export async function getEnvNames(){const _0x15ad52=_0x12ff75,_0x4e4f51={'ylhIV':function(_0x481607){return _0x481607();},'PQyBn':function(_0x1961de){return _0x1961de();},'Falmm':function(_0x4ee537,_0x122889,_0x253d9f){return _0x4ee537(_0x122889,_0x253d9f);},'kDUhn':_0x15ad52(0xdd),'ZpQJi':function(_0x39d3c3,_0x278a10){return _0x39d3c3(_0x278a10);},'iaefC':function(_0x4e48b0,_0x10b573,_0x3839e5){return _0x4e48b0(_0x10b573,_0x3839e5);},'DJVVn':function(_0xc16e8c,_0x2d30fe){return _0xc16e8c(_0x2d30fe);},'IROpg':_0x15ad52(0xf0),'hBlmi':function(_0x1c3dd3,_0xac8b36){return _0x1c3dd3(_0xac8b36);},'KcppJ':'legacy'},_0x54d0dd=_0x4e4f51[_0x15ad52(0xf3)](getRangerDir);if(!existsSync(_0x54d0dd))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5ff356=await _0x4e4f51['PQyBn'](readActiveProfileName),_0x13a39d=[],_0x36c33e={},_0x5bd97f=_0x4e4f51[_0x15ad52(0xec)](join,_0x54d0dd,_0x4e4f51[_0x15ad52(0xf2)]);if(existsSync(_0x5bd97f)){const _0x2b519f=await _0x4e4f51[_0x15ad52(0xfc)](readdir,_0x5bd97f);for(const _0x3f848e of _0x2b519f){const _0x477558=join(_0x5bd97f,_0x3f848e),_0x1a7481=await stat(_0x477558);_0x1a7481[_0x15ad52(0xdb)]()&&(_0x13a39d['push'](_0x3f848e),_0x36c33e[_0x3f848e]=_0x4e4f51['kDUhn']);}}const _0x3296de=_0x4e4f51['iaefC'](join,_0x54d0dd,'ci');if(existsSync(_0x3296de)){const _0x3236b5=await readdir(_0x3296de);for(const _0x215dbb of _0x3236b5){const _0x5630cb=join(_0x3296de,_0x215dbb),_0x5966fc=await stat(_0x5630cb);_0x5966fc['isDirectory']()&&(_0x13a39d['push'](_0x215dbb),_0x36c33e[_0x215dbb]='ci');}}const _0x1cf6a2=await _0x4e4f51['DJVVn'](readdir,_0x54d0dd);for(const _0x20503b of _0x1cf6a2){if(NON_ENV_DIRS['includes'](_0x20503b))continue;if(_0x20503b['startsWith']('.'))continue;if(_0x20503b['endsWith'](_0x4e4f51['IROpg']))continue;const _0x2be357=join(_0x54d0dd,_0x20503b),_0x1b72ab=await _0x4e4f51['ZpQJi'](stat,_0x2be357);_0x1b72ab['isDirectory']()&&_0x4e4f51['hBlmi'](existsSync,join(_0x2be357,_0x15ad52(0xe6)))&&(!_0x13a39d[_0x15ad52(0xe9)](_0x20503b)&&(_0x13a39d[_0x15ad52(0xf4)](_0x20503b),_0x36c33e[_0x20503b]=_0x4e4f51[_0x15ad52(0xe1)]));}return{'envNames':_0x13a39d,'activeEnv':_0x5ff356,'envTypes':_0x36c33e};}export async function envList(){const _0x2e01ff=_0x12ff75,_0x33e90d={'LkmVt':function(_0x17ddd4,_0x3b132e){return _0x17ddd4===_0x3b132e;},'kPIuR':_0x2e01ff(0xd9),'qgZsd':'\x0aProfiles:','UOhGc':function(_0x2bd71d,_0x2e2d62){return _0x2bd71d===_0x2e2d62;},'BqiaV':'local','OAATt':function(_0x4d0057,_0x32370c){return _0x4d0057===_0x32370c;},'wNjik':_0x2e01ff(0xeb)},{envNames:_0x163904,activeEnv:_0x42cd1d,envTypes:_0x1bf4c8}=await getEnvNames();if(_0x33e90d['LkmVt'](_0x163904[_0x2e01ff(0xed)],0x0)){console['log'](_0x2e01ff(0xe4)),console['log'](_0x33e90d['kPIuR']);return;}console[_0x2e01ff(0xf7)](_0x33e90d['qgZsd']);for(const _0x36f2b2 of _0x163904['sort']()){const _0x2868c3=_0x33e90d[_0x2e01ff(0xea)](_0x36f2b2,_0x42cd1d),_0xc021fa=_0x1bf4c8[_0x36f2b2]||_0x33e90d[_0x2e01ff(0xda)],_0x565ce5=await loadSettings(_0x36f2b2),_0x3be87a=_0x33e90d[_0x2e01ff(0xf8)](_0xc021fa,_0x33e90d[_0x2e01ff(0xe5)])?'':'\x20['+_0xc021fa+']';console[_0x2e01ff(0xf7)]('\x20\x20'+(_0x2868c3?'*\x20':'\x20\x20')+_0x36f2b2+_0x3be87a),_0x565ce5[_0x2e01ff(0xe3)]&&console[_0x2e01ff(0xf7)](_0x2e01ff(0xef)+_0x565ce5[_0x2e01ff(0xe3)]),_0x565ce5['environmentDetails']&&console[_0x2e01ff(0xf7)](_0x2e01ff(0xf9)+_0x565ce5[_0x2e01ff(0xe0)]);}_0x42cd1d&&console['log']('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2c0418=_0x4321;(function(_0x2d6654,_0x288619){const _0x3f5d31=_0x4321,_0x2d0001=_0x2d6654();while(!![]){try{const _0x28367e=parseInt(_0x3f5d31(0x119))/0x1*(-parseInt(_0x3f5d31(0x14a))/0x2)+parseInt(_0x3f5d31(0x13d))/0x3+parseInt(_0x3f5d31(0x10e))/0x4*(-parseInt(_0x3f5d31(0x133))/0x5)+-parseInt(_0x3f5d31(0x16f))/0x6*(parseInt(_0x3f5d31(0xd4))/0x7)+parseInt(_0x3f5d31(0xe7))/0x8*(parseInt(_0x3f5d31(0x12f))/0x9)+-parseInt(_0x3f5d31(0x17b))/0xa+parseInt(_0x3f5d31(0x134))/0xb;if(_0x28367e===_0x288619)break;else _0x2d0001['push'](_0x2d0001['shift']());}catch(_0x56dbbb){_0x2d0001['push'](_0x2d0001['shift']());}}}(_0x2c30,0x859ac));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x34319d 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';function _0x4321(_0x39044c,_0x2b3afa){_0x39044c=_0x39044c-0xcd;const _0x2c30a1=_0x2c30();let _0x4321ab=_0x2c30a1[_0x39044c];return _0x4321ab;}import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x31606f=>_0x2c0418(0x11d)+_0x31606f+_0x2c0418(0x173);function getGitRepoUrl(){const _0x25453c=_0x2c0418,_0x126328={'bYgKS':function(_0x5412a6,_0x4a0687,_0x1db043){return _0x5412a6(_0x4a0687,_0x1db043);},'zgUEV':'utf-8','BFHUT':'pipe'};try{const _0x186691=_0x126328[_0x25453c(0xdf)](execSync,_0x25453c(0x150),{'encoding':_0x126328[_0x25453c(0xde)],'stdio':[_0x126328[_0x25453c(0x124)],_0x126328['BFHUT'],_0x25453c(0x163)]})['trim']();return _0x186691[_0x25453c(0xe6)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x25453c(0xe6)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x7e9ae1=_0x2c0418,_0x30d058={'vHapu':function(_0x375dad,_0x4e791d,_0x25820a){return _0x375dad(_0x4e791d,_0x25820a);},'QRtQv':_0x7e9ae1(0xfd),'KzwVq':'pipe'};try{return _0x30d058[_0x7e9ae1(0x171)](execSync,_0x30d058[_0x7e9ae1(0x147)],{'encoding':_0x7e9ae1(0x18a),'stdio':[_0x7e9ae1(0x163),_0x7e9ae1(0x163),_0x30d058['KzwVq']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1c6e61=_0x2c0418,_0x5613ee={'wCFUj':function(_0x376459){return _0x376459();},'CKWSa':function(_0x2c4030,_0x55cc7c){return _0x2c4030(_0x55cc7c);},'Iivrq':function(_0x477b66,_0x3ee9d1,_0x4b64c0){return _0x477b66(_0x3ee9d1,_0x4b64c0);}},_0x36e179=join(_0x5613ee[_0x1c6e61(0xf6)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x5613ee[_0x1c6e61(0xf3)](existsSync,_0x36e179))return null;try{const _0x53a02f=await _0x5613ee['Iivrq'](readFile,_0x36e179,_0x1c6e61(0x18a));return _0x53a02f['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x52d7a8){const _0x5adcff=_0x2c0418,_0x285a1e={'NXiFZ':function(_0x32fd3e){return _0x32fd3e();},'QJXpN':function(_0x256bac,_0x21d36d,_0x363285){return _0x256bac(_0x21d36d,_0x363285);},'pMosW':function(_0x1fa8fa,_0x20c654){return _0x1fa8fa(_0x20c654);}},_0x4d89ac=_0x285a1e['NXiFZ'](getRangerDir),_0x542624=_0x285a1e['QJXpN'](join,_0x4d89ac,ACTIVE_FEATURE_FILE);!_0x285a1e[_0x5adcff(0x105)](existsSync,_0x4d89ac)&&await mkdir(_0x4d89ac,{'recursive':!![]}),await writeFile(_0x542624,_0x52d7a8,'utf-8');}function getProgressDisplay(_0x35172b){const _0x103cfc=_0x2c0418,_0xebce64={'oScpl':function(_0x3c081b,_0x4a3b85){return _0x3c081b+_0x4a3b85;},'iHykS':function(_0x5c6ff1,_0x5ac280){return _0x5c6ff1+_0x5ac280;},'nRTLC':function(_0x531c54,_0x73bd54){return _0x531c54+_0x73bd54;},'flVqI':function(_0x33a121,_0x2cdae6){return _0x33a121-_0x2cdae6;},'bDaXe':function(_0xcd1ac9,_0x49861b){return _0xcd1ac9>_0x49861b;},'sIDkP':function(_0x1f8eba,_0x2a64df){return _0x1f8eba>_0x2a64df;},'IsRWy':function(_0x530272,_0x159126){return _0x530272>_0x159126;}},_0x119fea=_0x35172b[_0x103cfc(0x125)]||0x0,_0x1c79c7=_0x35172b[_0x103cfc(0xcd)]||0x0,_0x51ecb0=_0x35172b[_0x103cfc(0xdc)]||0x0,_0x3a1ff7=_0x35172b['incompleteItems']||0x0,_0x4bcb7f=_0x35172b[_0x103cfc(0x10a)]||0x0,_0x230feb=_0xebce64[_0x103cfc(0x152)](_0xebce64['iHykS'](_0xebce64[_0x103cfc(0x13e)](_0x119fea,_0x1c79c7),_0x51ecb0),_0x3a1ff7)+_0x4bcb7f;if(_0x230feb===0x0)return'-';const _0x1fe2a6=0xa,_0x16b6c7=Math['round'](_0x119fea/_0x230feb*_0x1fe2a6),_0x29db55=_0xebce64[_0x103cfc(0x13e)]('█'[_0x103cfc(0x121)](_0x16b6c7),'░'['repeat'](_0xebce64[_0x103cfc(0xd7)](_0x1fe2a6,_0x16b6c7))),_0x1d25fc=[];if(_0xebce64['bDaXe'](_0x51ecb0,0x0))_0x1d25fc['push'](_0x51ecb0+_0x103cfc(0x18f));if(_0xebce64[_0x103cfc(0x176)](_0x3a1ff7,0x0))_0x1d25fc[_0x103cfc(0x185)](_0x3a1ff7+_0x103cfc(0xf0));if(_0xebce64[_0x103cfc(0x15e)](_0x1c79c7,0x0))_0x1d25fc['push'](_0x1c79c7+_0x103cfc(0xe5));const _0x46b355=_0xebce64[_0x103cfc(0x12b)](_0x1d25fc['length'],0x0)?'\x20('+_0x1d25fc[_0x103cfc(0x108)](',\x20')+')':'';return _0x29db55+'\x20'+_0x119fea+'/'+_0x230feb+_0x103cfc(0x113)+_0x46b355;}function getCurrentSessionItems(_0x76c821,_0x22de81){const _0x70ca3a=_0x2c0418;if(!_0x76c821['currentSessionId'])return _0x22de81['filter'](_0x520115=>!_0x520115['sessionId'])['sort']((_0xa84d3e,_0x3880b4)=>_0xa84d3e[_0x70ca3a(0x166)]-_0x3880b4['position']);return _0x22de81['filter'](_0x1247d8=>_0x1247d8[_0x70ca3a(0x153)]===_0x76c821['currentSessionId']||!_0x1247d8['sessionId'])[_0x70ca3a(0xd3)]((_0x210cde,_0x5252e3)=>_0x210cde[_0x70ca3a(0x166)]-_0x5252e3['position']);}function displayFeature(_0x123734,_0x4655fa){const _0x36dfca=_0x2c0418,_0x573db3={'yVtDf':function(_0x1b4dc6,_0x98f794){return _0x1b4dc6===_0x98f794;},'CEHFP':_0x36dfca(0x167),'pqaxB':function(_0x3e76af,_0x2194c9){return _0x3e76af===_0x2194c9;},'TZtJf':function(_0x1705c4,_0x176c80){return _0x1705c4===_0x176c80;},'aAsWq':'closed','LKVff':_0x36dfca(0xfc),'ialBG':function(_0x33e6f2,_0x3cb079){return _0x33e6f2>_0x3cb079;},'BLHhK':function(_0x1e4db9,_0x4d07c4){return _0x1e4db9!==_0x4d07c4;},'KwEBJ':'verified','lEUTi':'blocked','IXhnk':function(_0x4ac4e9,_0x2d36cb){return _0x4ac4e9===_0x2d36cb;},'dHqQU':function(_0x222758,_0x254e47){return _0x222758===_0x254e47;}};console['log']('\x0a'+_0x123734['name']+'\x20('+_0x123734['dashboardUrl']+')');_0x123734['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x123734['stats']));_0x123734['description']&&console[_0x36dfca(0x103)]('\x20\x20\x20Description:\x20'+_0x123734[_0x36dfca(0x13b)]);_0x123734[_0x36dfca(0x16e)]&&console['log'](_0x36dfca(0x14e)+_0x123734[_0x36dfca(0x16e)]);_0x123734[_0x36dfca(0x12e)]&&console[_0x36dfca(0x103)](_0x36dfca(0x102)+_0x123734[_0x36dfca(0x12e)]);console[_0x36dfca(0x103)](_0x36dfca(0xf5)+new Date(_0x123734[_0x36dfca(0x16c)])['toLocaleString']());_0x123734[_0x36dfca(0x178)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x123734['completedAt'])['toLocaleString']());if(_0x4655fa&&_0x4655fa['length']>0x0){console['log'](_0x36dfca(0x180));for(let _0x1c8848=0x0;_0x1c8848<_0x4655fa[_0x36dfca(0x198)];_0x1c8848++){const _0xf33a8d=_0x4655fa[_0x1c8848];let _0x59b2ec;if(_0xf33a8d['status']===_0x36dfca(0x11f)&&_0x573db3[_0x36dfca(0xf9)](_0xf33a8d[_0x36dfca(0x10c)],_0x36dfca(0x17f)))_0x59b2ec='✅';else{if(_0xf33a8d['status']==='verified')_0x59b2ec='🟢';else{if(_0x573db3['yVtDf'](_0xf33a8d['status'],_0x573db3[_0x36dfca(0x15c)]))_0x59b2ec='🟠';else{if(_0x573db3['pqaxB'](_0xf33a8d['status'],_0x36dfca(0x141)))_0x59b2ec='🛑';else{if(_0x573db3[_0x36dfca(0x149)](_0xf33a8d[_0x36dfca(0x114)],_0x573db3['aAsWq']))_0x59b2ec='⛔';else _0x573db3[_0x36dfca(0x149)](_0xf33a8d['status'],_0x573db3['LKVff'])?_0x59b2ec='⏳':_0x59b2ec='⬜';}}}}const _0x45ffce=_0x573db3[_0x36dfca(0x199)](_0xf33a8d[_0x36dfca(0x135)],0x1)?_0x36dfca(0x154)+_0xf33a8d['version']+')':'',_0x3a24da=_0xf33a8d[_0x36dfca(0x135)]>0x1&&_0xf33a8d['parentItemId']&&_0x573db3[_0x36dfca(0x169)](_0xf33a8d['status'],'closed')&&_0xf33a8d[_0x36dfca(0x114)]!==_0x573db3[_0x36dfca(0x111)]?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+(_0x1c8848+0x1)+'.\x20'+_0x59b2ec+'\x20'+_0xf33a8d[_0x36dfca(0x13b)]+_0x45ffce+_0x3a24da);_0xf33a8d[_0x36dfca(0x114)]===_0x573db3['lEUTi']&&_0xf33a8d['blockedReason']&&console[_0x36dfca(0x103)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0xf33a8d[_0x36dfca(0x14c)]);_0x573db3[_0x36dfca(0xf9)](_0xf33a8d['status'],_0x36dfca(0x167))&&_0xf33a8d['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0xf33a8d['incompleteReason']);if(_0x573db3[_0x36dfca(0x17c)](_0xf33a8d['status'],'closed')&&_0x573db3[_0x36dfca(0x118)](_0xf33a8d['terminalReason'],_0x36dfca(0x17f)))console[_0x36dfca(0x103)](_0x36dfca(0x192));else _0x573db3[_0x36dfca(0xf9)](_0xf33a8d[_0x36dfca(0x114)],_0x36dfca(0x11f))&&_0xf33a8d['canceledReason']&&console[_0x36dfca(0x103)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0xf33a8d['canceledReason']);}}}export async function featureCreate(_0x13643b,_0x5c15f9){const _0x8e5fd=_0x2c0418,_0xaf71e2={'aiaNi':function(_0x17fb9f,_0x3d826b){return _0x17fb9f(_0x3d826b);},'wdtzj':function(_0x19f32c){return _0x19f32c();},'MRpuH':function(_0xd5e4ac,_0x52986c,_0x20ecf4){return _0xd5e4ac(_0x52986c,_0x20ecf4);}},{envNames:_0x156e04}=await getEnvNames();_0x156e04[_0x8e5fd(0x198)]===0x0&&console[_0x8e5fd(0xff)]('\x0a'+_0xaf71e2['aiaNi'](formatProfileRequiredMessage,_0x43f945=>bold(_0x43f945)));const _0x831e36=_0x5c15f9[_0x8e5fd(0x104)]?_0x5c15f9['scenarios'][_0x8e5fd(0x13f)](_0x1e079e=>_0x1e079e[_0x8e5fd(0x106)]()):[],_0xfe28f=_0xaf71e2[_0x8e5fd(0xe2)](getGitRepoUrl),_0x5e277e=getGitBranch();console[_0x8e5fd(0x103)](_0x8e5fd(0x146));const _0x3a88d1=await createFeature({'name':_0x13643b,'description':_0x5c15f9[_0x8e5fd(0x13b)],'checklist':_0x831e36,'gitRepoUrl':_0xfe28f,'gitBranch':_0x5e277e});await setActiveFeatureId(_0x3a88d1['id']),await tryStartCurrentSession(_0x3a88d1['id']);const _0x4f70e5=process[_0x8e5fd(0x110)][_0x8e5fd(0xef)];_0x4f70e5&®isterSession(_0x4f70e5,_0x3a88d1['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x3a88d1['id']),_0xaf71e2[_0x8e5fd(0x17e)](displayFeature,_0x3a88d1,_0x3a88d1['checklistItems']),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0xdfd01b){const _0x139bfa=_0x2c0418,_0x3fd3c0={'KZQei':function(_0x5c3de7){return _0x5c3de7();},'HetSE':function(_0x4d5d7d,_0x5a4455){return _0x4d5d7d(_0x5a4455);},'hdwhm':function(_0x1c6c58,_0x48bc9d){return _0x1c6c58+_0x48bc9d;},'fvUze':function(_0x52dd6a,_0x165912){return _0x52dd6a<_0x165912;},'eAymx':_0x139bfa(0x177)},_0x37a320={'limit':_0xdfd01b[_0x139bfa(0x159)]??0xa,'offset':_0xdfd01b[_0x139bfa(0xd2)]??0x0,'includeDeleted':_0xdfd01b['includeDeleted']};_0xdfd01b[_0x139bfa(0x196)]&&(_0x37a320[_0x139bfa(0x16e)]=_0x3fd3c0['KZQei'](getGitRepoUrl),_0x37a320[_0x139bfa(0x12e)]=_0x3fd3c0['KZQei'](getGitBranch));const _0x1bb5fd=await _0x3fd3c0['HetSE'](listFeatures,_0x37a320);if(_0x1bb5fd[_0x139bfa(0x142)]['length']===0x0){console['log'](_0x139bfa(0xf2));return;}const _0x5bd1f6=_0x1bb5fd[_0x139bfa(0x138)]>_0x1bb5fd['items'][_0x139bfa(0x198)]?_0x139bfa(0xf7)+_0x1bb5fd[_0x139bfa(0x142)]['length']+_0x139bfa(0x13c)+_0x1bb5fd[_0x139bfa(0x138)]:_0x1bb5fd['totalCount']+_0x139bfa(0x137);console['log']('\x0a'+_0x5bd1f6+':\x0a');for(const _0x1fa9d9 of _0x1bb5fd['items']){console['log'](''+_0x1fa9d9['name']),console['log'](_0x139bfa(0x14f)+_0x1fa9d9['id']),_0x1fa9d9['stats']&&console['log'](_0x139bfa(0x16d)+_0x3fd3c0[_0x139bfa(0x14d)](getProgressDisplay,_0x1fa9d9[_0x139bfa(0xf1)])),_0x1fa9d9[_0x139bfa(0x12e)]&&console[_0x139bfa(0x103)](_0x139bfa(0x102)+_0x1fa9d9['gitBranch']),console[_0x139bfa(0x103)](_0x139bfa(0xf5)+new Date(_0x1fa9d9[_0x139bfa(0x16c)])['toLocaleDateString']()),console[_0x139bfa(0x103)]('');}const _0x33ac8d=_0x37a320['limit']??0xa,_0x2d1161=_0x3fd3c0[_0x139bfa(0x129)](_0x37a320[_0x139bfa(0xd2)]??0x0,_0x1bb5fd['items'][_0x139bfa(0x198)]);if(_0x3fd3c0['fvUze'](_0x2d1161,_0x1bb5fd['totalCount'])){const _0x1b8ad6=_0x33ac8d!==0xa?_0x139bfa(0xe0)+_0x33ac8d:'',_0x3c1981=_0xdfd01b['currentBranch']?_0x3fd3c0[_0x139bfa(0x188)]:'',_0x3b4062=_0xdfd01b['includeDeleted']?_0x139bfa(0xfe):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x2d1161+_0x1b8ad6+_0x3c1981+_0x3b4062);}}export async function featureShow(_0x39fbd0){const _0x50841d={'FAdDj':function(_0x415557){return _0x415557();},'JAnsg':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FBQCy':function(_0xccf0d6,_0x37af8a){return _0xccf0d6(_0x37af8a);}},_0x3a59fc=_0x39fbd0||await _0x50841d['FAdDj'](getActiveFeatureId);if(!_0x3a59fc)throw new Error(_0x50841d['JAnsg']);const _0x67c30a=await _0x50841d['FBQCy'](getFeature,_0x3a59fc);displayFeature(_0x67c30a,_0x67c30a['checklistItems']);}export async function featureResume(_0x3cae6a){const _0x3f227f=_0x2c0418,_0x49d75f={'nmZaG':function(_0x5a33e4,_0xbb673a){return _0x5a33e4(_0xbb673a);},'mzGXN':function(_0x5aa2b4){return _0x5aa2b4();},'CLWos':'Not\x20in\x20a\x20git\x20repository.','KNmhO':function(_0x2a1fc0,_0x530d87){return _0x2a1fc0||_0x530d87;},'NbSQN':_0x3f227f(0x148),'PIimC':function(_0x31aad7,_0x343006){return _0x31aad7===_0x343006;},'gNDjh':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','adotK':_0x3f227f(0x115),'hIEmM':function(_0x540b1e,_0x47bb14){return _0x540b1e!==_0x47bb14;},'Nsorf':function(_0xcb62a5,_0x4276d2){return _0xcb62a5(_0x4276d2);},'pzUGG':function(_0x8b41ef,_0x79b89d,_0x5280f6){return _0x8b41ef(_0x79b89d,_0x5280f6);}};if(_0x3cae6a){const _0x214a48=await getFeature(_0x3cae6a);await _0x49d75f[_0x3f227f(0x101)](setActiveFeatureId,_0x214a48['id']);const _0x410555=_0x49d75f['mzGXN'](getGitBranch);_0x410555&&_0x410555!==_0x214a48['gitBranch']&&(await updateFeature(_0x214a48['id'],{'gitBranch':_0x410555}),console['log'](_0x3f227f(0x191)+_0x410555));console[_0x3f227f(0x103)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x214a48['name']+'\x20('+_0x214a48['id']+')'),await tryStartCurrentSession(_0x214a48['id']);const _0x24dd22=process['env']['CLAUDE_SESSION_ID'];_0x24dd22&®isterSession(_0x24dd22,_0x214a48['id']);displayFeature(_0x214a48,_0x214a48[_0x3f227f(0xfb)]),await _0x49d75f[_0x3f227f(0x101)](printFeedbackNudge,_0x214a48['id']);return;}const _0x2fe660=getGitRepoUrl(),_0x41fcf=getGitBranch();if(!_0x2fe660&&!_0x41fcf)throw new Error(_0x49d75f['CLWos']);console['log'](_0x3f227f(0x122)+_0x49d75f['KNmhO'](_0x2fe660,_0x49d75f['NbSQN'])+'\x20/\x20'+(_0x41fcf||_0x3f227f(0x148))+_0x3f227f(0xf8));const _0x3f5aee=await listFeatures({'gitRepoUrl':_0x2fe660,'gitBranch':_0x41fcf}),_0x15deff=_0x3f5aee['items'][_0x3f227f(0xdd)](_0x2bbc35=>!_0x2bbc35[_0x3f227f(0x178)]);if(_0x49d75f['PIimC'](_0x15deff[_0x3f227f(0x198)],0x0)){console['log'](_0x49d75f[_0x3f227f(0x12d)]),console['log'](_0x3f227f(0x182));return;}let _0x239c2b;if(_0x15deff[_0x3f227f(0x198)]===0x1)_0x239c2b=_0x15deff[0x0];else{const _0x41548a=process['stdin']['isTTY']&&process['stdout']['isTTY'];if(!_0x41548a){console[_0x3f227f(0x103)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x584e08 of _0x15deff){console['log']('\x20\x20'+_0x584e08[_0x3f227f(0xce)]),console[_0x3f227f(0x103)]('\x20\x20\x20\x20\x20ID:\x20'+_0x584e08['id']),_0x584e08['stats']&&console[_0x3f227f(0x103)](_0x3f227f(0xda)+_0x49d75f[_0x3f227f(0x101)](getProgressDisplay,_0x584e08[_0x3f227f(0xf1)])),_0x584e08['gitBranch']&&console['log'](_0x3f227f(0xea)+_0x584e08[_0x3f227f(0x12e)]);}throw new Error(_0x3f227f(0xd5));}const {selected:_0x3141fe}=await _0x34319d['prompt']([{'type':'list','name':_0x49d75f[_0x3f227f(0x156)],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x15deff['map'](_0x1d04de=>({'name':_0x1d04de['name']+'\x20('+_0x1d04de['id']+')','value':_0x1d04de['id']}))}]);_0x239c2b=_0x15deff['find'](_0x412a3d=>_0x412a3d['id']===_0x3141fe);}await setActiveFeatureId(_0x239c2b['id']);_0x41fcf&&_0x49d75f['hIEmM'](_0x41fcf,_0x239c2b[_0x3f227f(0x12e)])&&(await updateFeature(_0x239c2b['id'],{'gitBranch':_0x41fcf}),console[_0x3f227f(0x103)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x41fcf));console['log'](_0x3f227f(0x175)+_0x239c2b['name']+'\x20('+_0x239c2b['id']+')'),await _0x49d75f[_0x3f227f(0x101)](tryStartCurrentSession,_0x239c2b['id']);const _0x1c4429=await _0x49d75f['Nsorf'](getFeature,_0x239c2b['id']),_0x3bcca6=process['env']['CLAUDE_SESSION_ID'];_0x3bcca6&®isterSession(_0x3bcca6,_0x1c4429['id']),_0x49d75f[_0x3f227f(0x120)](displayFeature,_0x1c4429,_0x1c4429[_0x3f227f(0xfb)]),await printFeedbackNudge(_0x1c4429['id']);}async function printFeedbackNudge(_0x51fa6b){const _0x5d7f5e=_0x2c0418,_0x2375e4={'LcxOj':function(_0x330eb7,_0x5b71af){return _0x330eb7>_0x5b71af;},'JTWrJ':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x2c78c7}=await getActionItems(_0x51fa6b);let _0x2307e0=0x0,_0x526ec1=0x0;for(const _0x2f8d09 of _0x2c78c7){const _0x77b1f5=await getItemFeedback(_0x51fa6b,_0x2f8d09['id']);_0x77b1f5['unaddressedComments']['length']>0x0&&(_0x2307e0+=_0x77b1f5[_0x5d7f5e(0x128)][_0x5d7f5e(0x198)],_0x526ec1++);}_0x2375e4['LcxOj'](_0x2307e0,0x0)&&(console['log'](_0x5d7f5e(0xe3)+_0x2307e0+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x526ec1+_0x5d7f5e(0x162)),console['log'](_0x2375e4[_0x5d7f5e(0x15b)]));}catch{}}async function tryStartCurrentSession(_0x1ebff9){const _0x569298=_0x2c0418,_0x480668={'amNwh':function(_0x5f1cc8,_0x5eed26){return _0x5f1cc8(_0x5eed26);},'LaVWf':function(_0x84e1a8,_0x45308e,_0x3be099){return _0x84e1a8(_0x45308e,_0x3be099);}};try{const {sessions:_0x44b77e}=await _0x480668[_0x569298(0x116)](listFeatureSessions,_0x1ebff9),_0x43b404=_0x44b77e['find'](_0x348668=>_0x348668[_0x569298(0x114)]===_0x569298(0xd1));_0x43b404&&(await _0x480668[_0x569298(0x183)](startSession,_0x1ebff9,_0x43b404['id']),console[_0x569298(0x103)](_0x569298(0x10f)+_0x43b404[_0x569298(0x127)]));}catch{}}export async function featureReport(_0x16d2a7,_0x469298){const _0x4d3a8b=_0x2c0418,_0x56f0fa={'jFsNK':_0x4d3a8b(0x13a),'cPXGA':function(_0x2247b5,_0x54b121,_0x33cf43,_0x367c37){return _0x2247b5(_0x54b121,_0x33cf43,_0x367c37);},'euKjK':function(_0x2d0024){return _0x2d0024();},'RfzuZ':function(_0x1db58d,_0x2801e3,_0x48f649){return _0x1db58d(_0x2801e3,_0x48f649);},'QOPYQ':function(_0x26b53a,_0x591a82){return _0x26b53a(_0x591a82);},'qCROZ':'utf-8'},_0x2a3790=_0x16d2a7||await getActiveFeatureId();if(!_0x2a3790)throw new Error(_0x56f0fa[_0x4d3a8b(0x145)]);console[_0x4d3a8b(0x103)]('\x0aGenerating\x20report...');const _0x2b03f7=await getFeatureReportMarkdown(_0x2a3790,{'style':_0x469298['style']}),_0x136c69=_0x469298['output']||_0x56f0fa[_0x4d3a8b(0x179)](join,_0x56f0fa[_0x4d3a8b(0x187)](getRangerDir),_0x4d3a8b(0xd9),_0x2a3790+'.md'),_0x3fc7d3=_0x56f0fa['RfzuZ'](join,_0x136c69,'..');!_0x56f0fa[_0x4d3a8b(0x10b)](existsSync,_0x3fc7d3)&&await mkdir(_0x3fc7d3,{'recursive':!![]}),await writeFile(_0x136c69,_0x2b03f7,_0x56f0fa['qCROZ']),console[_0x4d3a8b(0x103)]('\x0a✅\x20Report\x20generated:\x20'+_0x136c69);}export async function featureReportPrDescription(_0x1e6b77,_0x1d548d){const _0x276bdb=_0x2c0418,_0x240839={'NDxjk':function(_0x370b2a,_0xbda8a9){return _0x370b2a(_0xbda8a9);},'GtKfX':_0x276bdb(0x109),'zmdBD':function(_0x212723,_0x29babb){return _0x212723>_0x29babb;},'HkrZw':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x153bf0=_0x1e6b77||await getActiveFeatureId();if(!_0x153bf0)throw new Error(_0x276bdb(0x13a));const _0x2ddbd7=await _0x240839['NDxjk'](getFeature,_0x153bf0),_0x4ee375=_0x2ddbd7[_0x276bdb(0xfb)]||[],_0xc9d1c9=getCurrentSessionItems(_0x2ddbd7,_0x4ee375);_0xc9d1c9[_0x276bdb(0x198)]===0x0&&(console[_0x276bdb(0x112)](_0x240839[_0x276bdb(0x197)]),process['exit'](0x1));const _0x49174e=_0x1d548d['excludeScenarios']??[],_0x4f386e=_0x49174e['filter'](_0x4d4fcd=>!Number['isInteger'](_0x4d4fcd)||_0x4d4fcd<0x1||_0x4d4fcd>_0xc9d1c9['length']);if(_0x240839[_0x276bdb(0x18e)](_0x4f386e[_0x276bdb(0x198)],0x0)){console['error'](_0x276bdb(0x155)+_0x4f386e[_0x276bdb(0x108)](',\x20')),console[_0x276bdb(0x103)]('\x0aAvailable\x20scenarios:');for(let _0x4aa0c0=0x0;_0x4aa0c0<_0xc9d1c9[_0x276bdb(0x198)];_0x4aa0c0++){console['log']('\x20\x20'+(_0x4aa0c0+0x1)+'.\x20'+_0xc9d1c9[_0x4aa0c0][_0x276bdb(0x13b)]);}process['exit'](0x1);}const _0x322e0e=new Set(_0x49174e['map'](_0x562bc0=>_0x562bc0-0x1)),_0x26193f=_0xc9d1c9['filter']((_0x3eaf67,_0x4b8c15)=>!_0x322e0e['has'](_0x4b8c15));_0x26193f['length']===0x0&&(console[_0x276bdb(0x112)](_0x240839['HkrZw']),process['exit'](0x1));const _0x17d45d=await getFeatureReportMarkdown(_0x153bf0,{'itemIds':_0x26193f['map'](_0x1af980=>_0x1af980['id'])});process[_0x276bdb(0x164)][_0x276bdb(0x172)](_0x17d45d[_0x276bdb(0x158)]()+'\x0a');}export async function featureConcludeSession(_0x398451){const _0x5a416a=_0x2c0418,_0x31af71={'totTN':function(_0x557e29){return _0x557e29();},'tubGo':_0x5a416a(0x140),'aGQZG':function(_0x1df0c6,_0x28fbfe){return _0x1df0c6(_0x28fbfe);},'CSliF':_0x5a416a(0x11e),'teiTG':function(_0x50e283,_0x29ba40){return _0x50e283!==_0x29ba40;},'WDdwY':_0x5a416a(0x194),'dVBDh':function(_0x446282,_0x173739,_0x5424de){return _0x446282(_0x173739,_0x5424de);}},_0xbef03=_0x398451||await _0x31af71[_0x5a416a(0x161)](getActiveFeatureId);if(!_0xbef03)throw new Error(_0x31af71[_0x5a416a(0x168)]);const _0x1eb644=await getFeature(_0xbef03);if(!_0x1eb644[_0x5a416a(0x144)])throw new Error(_0x5a416a(0x123));const {sessions:_0x4d815e}=await _0x31af71['aGQZG'](listFeatureSessions,_0xbef03),_0x31439e=_0x4d815e[_0x5a416a(0xeb)](_0x49c4ee=>_0x49c4ee['id']===_0x1eb644[_0x5a416a(0x144)]);if(!_0x31439e)throw new Error(_0x31af71['CSliF']);if(_0x31439e['status']==='completed'){console[_0x5a416a(0x103)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x31af71['teiTG'](_0x31439e['status'],_0x31af71[_0x5a416a(0x12a)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x31439e[_0x5a416a(0x114)]);console['log'](_0x5a416a(0x165)),await _0x31af71[_0x5a416a(0x11b)](concludeSession,_0xbef03,_0x1eb644[_0x5a416a(0x144)]),console[_0x5a416a(0x103)](_0x5a416a(0xd8)+_0x31439e['iteration']+_0x5a416a(0x18d)),console['log'](_0x5a416a(0x131));}export async function featureSessions(_0x14c53e){const _0xc264a5=_0x2c0418,_0xc6500a={'BjSOV':function(_0x203625){return _0x203625();},'XSuJW':function(_0x33a14d,_0x2a1117){return _0x33a14d(_0x2a1117);},'CUGEN':function(_0xa45107,_0xd84d19){return _0xa45107===_0xd84d19;},'puoOe':'No\x20sessions\x20found.','ZNtCM':'completed','aOgHZ':'in_progress'},_0xeb5050=_0x14c53e||await _0xc6500a['BjSOV'](getActiveFeatureId);if(!_0xeb5050)throw new Error(_0xc264a5(0x13a));const _0x3e5e59=await _0xc6500a[_0xc264a5(0xe8)](getFeature,_0xeb5050);console[_0xc264a5(0x103)](_0xc264a5(0xe1)+_0x3e5e59[_0xc264a5(0xce)]+'\x0a');const {sessions:_0x2600e5}=await listFeatureSessions(_0xeb5050);if(_0xc6500a['CUGEN'](_0x2600e5['length'],0x0)){console[_0xc264a5(0x103)](_0xc6500a['puoOe']);return;}for(const _0x4859b4 of _0x2600e5){const _0x236d93=_0x4859b4['status']===_0xc6500a['ZNtCM']?'✅':_0x4859b4['status']===_0xc6500a['aOgHZ']?'🔄':'▶️';console['log'](_0x236d93+_0xc264a5(0x186)+_0x4859b4['iteration']+'\x20('+_0x4859b4['id']+')'),console['log'](_0xc264a5(0x170)+_0x4859b4['status']),console['log'](_0xc264a5(0xf5)+new Date(_0x4859b4['createdAt'])['toLocaleString']()),_0x4859b4[_0xc264a5(0x178)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x4859b4['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x322fde,_0x50ddc2){const _0x33ace0=_0x2c0418,_0x1e46a7={'NPiXf':function(_0x2c6697,_0x28b74d){return _0x2c6697(_0x28b74d);}},_0x5a4bdd=_0x50ddc2||await getActiveFeatureId();if(!_0x5a4bdd)throw new Error(_0x33ace0(0x140));const _0x48f9b4=await getFeature(_0x5a4bdd);if(_0x48f9b4[_0x33ace0(0x143)]&&!_0x48f9b4[_0x33ace0(0x143)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x48f9b4[_0x33ace0(0xcf)]);await createChecklistItem(_0x5a4bdd,_0x322fde);const _0x2dc803=await _0x1e46a7['NPiXf'](getFeature,_0x5a4bdd);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x2dc803,_0x2dc803[_0x33ace0(0xfb)]);}export async function featureEditScenario(_0x30671e,_0x4a0d0b){const _0x5c38a3=_0x2c0418,_0x92e7f3={'VykDJ':function(_0x2a51fa){return _0x2a51fa();},'ONvNL':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','YQzyb':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','sBgVS':'Please\x20finish\x20your\x20review\x20first:','qSpYR':_0x5c38a3(0x12c),'ioHnb':function(_0xdb2aab,_0xda60a2){return _0xdb2aab<_0xda60a2;},'QIRwW':function(_0x5d7be8,_0x14d553){return _0x5d7be8+_0x14d553;},'poDHx':function(_0x108603,_0x16e8c6){return _0x108603-_0x16e8c6;},'OKrgg':function(_0x5a45ed,_0x2efba0){return _0x5a45ed>=_0x2efba0;},'SnvzO':function(_0x273077,_0x2b5036,_0x3fd4e9,_0x343861){return _0x273077(_0x2b5036,_0x3fd4e9,_0x343861);}},_0x296ed3=_0x4a0d0b['id']||await _0x92e7f3['VykDJ'](getActiveFeatureId);!_0x296ed3&&(console['error'](_0x92e7f3[_0x5c38a3(0x136)]),console[_0x5c38a3(0x112)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x46b08c=await getFeature(_0x296ed3);_0x46b08c[_0x5c38a3(0x143)]&&!_0x46b08c[_0x5c38a3(0x143)]['submittedAt']&&(console['error'](_0x92e7f3['YQzyb']),console['error'](_0x92e7f3['sBgVS']),console[_0x5c38a3(0x112)]('\x20\x20'+_0x46b08c['dashboardUrl']),process[_0x5c38a3(0x195)](0x1));const _0x249041=_0x46b08c['checklistItems']||[];_0x249041[_0x5c38a3(0x198)]===0x0&&(console['error'](_0x5c38a3(0x16a)),process[_0x5c38a3(0x195)](0x1));if(_0x4a0d0b['scenario']===undefined){console[_0x5c38a3(0x112)](_0x92e7f3[_0x5c38a3(0x181)]),console[_0x5c38a3(0x103)](_0x5c38a3(0xd6));for(let _0x2a1cda=0x0;_0x92e7f3['ioHnb'](_0x2a1cda,_0x249041[_0x5c38a3(0x198)]);_0x2a1cda++){console[_0x5c38a3(0x103)]('\x20\x20'+_0x92e7f3['QIRwW'](_0x2a1cda,0x1)+'.\x20'+_0x249041[_0x2a1cda]['description']);}process['exit'](0x1);}const _0x5a17b4=_0x92e7f3[_0x5c38a3(0x107)](_0x4a0d0b[_0x5c38a3(0x190)],0x1);if(_0x5a17b4<0x0||_0x92e7f3[_0x5c38a3(0x160)](_0x5a17b4,_0x249041[_0x5c38a3(0x198)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4a0d0b['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x249041[_0x5c38a3(0x198)]+_0x5c38a3(0x151)),console['log'](_0x5c38a3(0xd6));for(let _0x5ea0ad=0x0;_0x5ea0ad<_0x249041['length'];_0x5ea0ad++){console['log']('\x20\x20'+_0x92e7f3['QIRwW'](_0x5ea0ad,0x1)+'.\x20'+_0x249041[_0x5ea0ad][_0x5c38a3(0x13b)]);}process['exit'](0x1);}const _0x2dca99=_0x249041[_0x5a17b4];await _0x92e7f3['SnvzO'](updateChecklistItem,_0x296ed3,_0x2dca99['id'],{'description':_0x30671e});const _0x3ca8e3=await getFeature(_0x296ed3);console[_0x5c38a3(0x103)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x3ca8e3,_0x3ca8e3['checklistItems']);}function _0x2c30(){const _0x167424=['textContent','\x20in\x20progress','replace','79504KyRSNe','XSuJW','):\x20\x22','\x20\x20\x20\x20\x20Branch:\x20','find','\x20\x20💬\x20','type','pop','CLAUDE_SESSION_ID','\x20incomplete','stats','\x0aNo\x20feature\x20reviews\x20found.','CKWSa','No\x20scenarios\x20found.','\x20\x20\x20Created:\x20','wCFUj','Showing\x20','...','yVtDf','qYpva','checklistItems','verification_in_progress','git\x20rev-parse\x20--abbrev-ref\x20HEAD','\x20--include-deleted','warn','eJBCB','nmZaG','\x20\x20\x20Branch:\x20','log','scenarios','pMosW','trim','poDHx','join','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','pendingItems','QOPYQ','terminalReason','short','12rLHbPX','\x20\x20\x20▶️\x20Started\x20session\x20','env','KwEBJ','error','\x20verified','status','selected','amNwh','from','dHqQU','1NPFrgx','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','dVBDh','split','\x1b[1m','Current\x20session\x20not\x20found.','closed','pzUGG','repeat','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','BFHUT','verifiedItems','\x20\x20✅\x20No\x20feedback\x20to\x20address','iteration','unaddressedComments','hdwhm','WDdwY','bDaXe','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','gNDjh','gitBranch','315JFomcG','domRef','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','toFixed','677085QyehsL','20387092ynbOru','version','ONvNL','\x20feature\x20review(s)\x20found','totalCount','Unknown','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','description','\x20of\x20','3071898QMnlrH','nRTLC','map','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','blocked','items','latestReview','currentSessionId','jFsNK','\x0aCreating\x20feature\x20review...','QRtQv','any','TZtJf','1266718lqqpnf','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','blockedReason','HetSE','\x20\x20\x20Repository:\x20','\x20\x20\x20ID:\x20','git\x20remote\x20get-url\x20origin','\x20scenarios.','oScpl','sessionId','\x20(v','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','adotK','\x0a✅\x20Restored\x20feature\x20review:\x20','trimEnd','limit','dhrWb','JTWrJ','CEHFP','\x20\x20\x20\x20\x20📋\x20Selector:\x20','IsRWy','feedback-images','OKrgg','totTN','\x20scenario(s).','pipe','stdout','\x0aConcluding\x20session...','position','incomplete','tubGo','BLHhK','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','\x20>\x20','createdAt','\x20\x20\x20Progress:\x20','gitRepoUrl','12lmxdNr','\x20\x20\x20Status:\x20','vHapu','write','\x1b[0m','.png','\x0a✅\x20Resumed\x20feature\x20review:\x20','sIDkP','\x20--current-branch','completedAt','cPXGA','KESiA','8504520TyYNew','IXhnk','BxLzi','MRpuH','approved','\x0a\x20\x20\x20Scenarios:','qSpYR','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','LaVWf','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','push','\x20Session\x20','euKjK','eAymx','en-US','utf-8','\x20unaddressed\x20comment(s)','OOCaB','\x20concluded.','zmdBD','\x20blocked','scenario','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20\x20\x20\x20\x20\x20Approved','selector','in_progress','exit','currentBranch','GtKfX','length','ialBG','verificationInProgressItems','name','dashboardUrl','numeric','ready','offset','sort','2757517StisUk','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','\x0aAvailable\x20scenarios:','flVqI','\x0a✅\x20Session\x20','reports','\x20\x20\x20\x20\x20Progress:\x20','Scenario\x20','blockedItems','filter','zgUEV','bYgKS','\x20--limit\x20','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','wdtzj','\x0a⚠️\x20\x20'];_0x2c30=function(){return _0x167424;};return _0x2c30();}async function downloadFeedbackImage(_0x32a2cb,_0x390593){const _0x2a1683=_0x2c0418,_0x1860ae={'vSowg':function(_0x375580,_0x47eb2b,_0x5af17f){return _0x375580(_0x47eb2b,_0x5af17f);},'OOCaB':function(_0x9d0c22){return _0x9d0c22();},'BxLzi':_0x2a1683(0x15f),'KESiA':function(_0x161228,_0x699926){return _0x161228(_0x699926);}};try{const _0x4761d7=_0x1860ae['vSowg'](join,_0x1860ae[_0x2a1683(0x18c)](getRangerDir),_0x1860ae[_0x2a1683(0x17d)]);await _0x1860ae['vSowg'](mkdir,_0x4761d7,{'recursive':!![]});const _0x1b3591=join(_0x4761d7,'comment_'+_0x390593+_0x2a1683(0x174)),_0x26afd8=await _0x1860ae[_0x2a1683(0x17a)](fetch,_0x32a2cb);if(!_0x26afd8['ok'])return null;const _0x6b7d6c=Buffer[_0x2a1683(0x117)](await _0x26afd8['arrayBuffer']());return await writeFile(_0x1b3591,_0x6b7d6c),_0x1b3591;}catch{return null;}}export async function featureGetReview(_0x43bb5f){const _0x2c52df=_0x2c0418,_0x4b2b69={'eJBCB':function(_0x4c979c){return _0x4c979c();},'rdGhE':function(_0x59b6f6,_0x2a3c2f){return _0x59b6f6(_0x2a3c2f);},'cGghH':function(_0x404244,_0x3f2a06){return _0x404244===_0x3f2a06;},'UeruT':function(_0x464ece,_0x281979){return _0x464ece<_0x281979;},'XJhdM':function(_0x39c812,_0x282e6d){return _0x39c812>_0x282e6d;},'qYpva':function(_0x446024,_0x31bd6e,_0x272b51){return _0x446024(_0x31bd6e,_0x272b51);},'rwBfQ':function(_0x5593d5,_0x3dfa19){return _0x5593d5>_0x3dfa19;},'dhrWb':function(_0x387d83,_0x40c53b,_0x35800d){return _0x387d83(_0x40c53b,_0x35800d);},'Oypdc':function(_0x306425,_0x4a38a5){return _0x306425===_0x4a38a5;}},_0x177e19=_0x43bb5f||await _0x4b2b69[_0x2c52df(0x100)](getActiveFeatureId);if(!_0x177e19)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 _0x5ab50b=await getFeature(_0x177e19),{items:_0x1ca20f}=await _0x4b2b69['rdGhE'](getActionItems,_0x177e19);console[_0x2c52df(0x103)]('\x0a📋\x20Feedback\x20for:\x20'+_0x5ab50b['name']+'\x20('+_0x5ab50b['id']+')\x0a');if(_0x4b2b69['cGghH'](_0x1ca20f[_0x2c52df(0x198)],0x0)){console[_0x2c52df(0x103)](_0x2c52df(0xf4));return;}for(let _0x4b0a17=0x0;_0x4b2b69['UeruT'](_0x4b0a17,_0x1ca20f['length']);_0x4b0a17++){const _0x5b9184=_0x1ca20f[_0x4b0a17],_0x2bc608=_0x4b2b69['XJhdM'](_0x5b9184['version'],0x1)?_0x2c52df(0x154)+_0x5b9184['version']+')':'',_0x2c19dd=await _0x4b2b69[_0x2c52df(0xfa)](getItemFeedback,_0x177e19,_0x5b9184['id']);if(_0x4b2b69['rwBfQ'](_0x2c19dd[_0x2c52df(0x128)][_0x2c52df(0x198)],0x0)){console[_0x2c52df(0x103)](_0x2c52df(0xdb)+(_0x4b0a17+0x1)+':\x20\x22'+_0x5b9184[_0x2c52df(0x13b)]+'\x22'+_0x2bc608+'\x20—\x20'+_0x2c19dd[_0x2c52df(0x128)][_0x2c52df(0x198)]+_0x2c52df(0x18b));for(const _0xe1518c of _0x2c19dd['unaddressedComments']){const _0x46f403=new Date(_0xe1518c['createdAt'])['toLocaleDateString'](_0x2c52df(0x189),{'month':_0x2c52df(0x10d),'day':_0x2c52df(0xd0)}),_0x18642c=_0xe1518c['authorName']||_0xe1518c['authorEmail']||_0x2c52df(0x139);console[_0x2c52df(0x103)](_0x2c52df(0xec)+_0x18642c+'\x20('+_0x46f403+_0x2c52df(0xe9)+_0xe1518c['content']+'\x22');if(_0xe1518c['assetUrl']){const _0x3aa070=await _0x4b2b69[_0x2c52df(0x15a)](downloadFeedbackImage,_0xe1518c['assetUrl'],_0xe1518c['id']);_0x3aa070&&console['log'](_0x2c52df(0x14b)+_0x3aa070);}if(_0xe1518c['domRef']){const _0x3c073d=_0xe1518c[_0x2c52df(0x130)][_0x2c52df(0x193)][_0x2c52df(0x11c)](_0x2c52df(0x16b))[_0x2c52df(0xee)]()?.[_0x2c52df(0x11c)](':')[0x0]||'element',_0x4dece7=_0xe1518c[_0x2c52df(0x130)]['textContent']?'\x20\x22'+_0xe1518c[_0x2c52df(0x130)][_0x2c52df(0xe4)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x2c52df(0x184)+_0x3c073d+'>'+_0x4dece7),console[_0x2c52df(0x103)](_0x2c52df(0x15d)+_0xe1518c['domRef'][_0x2c52df(0x193)]);}else{if(_0xe1518c['spatial']){const _0x2cdae8=_0xe1518c['spatial']['coordinates'];_0x4b2b69['Oypdc'](_0xe1518c['spatial'][_0x2c52df(0xed)],'point')&&_0x2cdae8[_0x2c52df(0x198)]>=0x2?console[_0x2c52df(0x103)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x2cdae8[0x0][_0x2c52df(0x132)](0x2)+',\x20'+_0x2cdae8[0x1]['toFixed'](0x2)+')'):console[_0x2c52df(0x103)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0xe1518c['spatial'][_0x2c52df(0xed)]+'\x20at\x20['+_0x2cdae8[_0x2c52df(0x13f)](_0x5cae34=>_0x5cae34['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x2c19dd['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x26b5e9 of _0x2c19dd['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x26b5e9);}}}else console[_0x2c52df(0x103)]('Scenario\x20'+(_0x4b0a17+0x1)+':\x20\x22'+_0x5b9184['description']+'\x22'+_0x2bc608+'\x20—\x20no\x20comments'),console[_0x2c52df(0x103)](_0x2c52df(0x126));console['log']('');}}export async function featureDelete(_0x35e9d7){const _0x63d651=_0x2c0418,_0x15b8c0={'MVeEG':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','gEXmJ':function(_0x902a3f,_0x51f7cd){return _0x902a3f+_0x51f7cd;}},_0x1aeba1=_0x35e9d7||await getActiveFeatureId();if(!_0x1aeba1)throw new Error(_0x15b8c0['MVeEG']);const _0x1d39e3=await getFeature(_0x1aeba1);await softDeleteFeature(_0x1aeba1),console['log'](_0x63d651(0x11a)+_0x1d39e3['name']+'\x20('+_0x1aeba1+')'),console['log'](_0x15b8c0['gEXmJ']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20',_0x1aeba1));}export async function featureRestore(_0x2b16d1){const _0x40739f=_0x2c0418,_0x19427a={'ZcAtT':function(_0x27b0a8,_0x4af5ff,_0x2bee06){return _0x27b0a8(_0x4af5ff,_0x2bee06);}};await restoreFeature(_0x2b16d1);const _0x36e76d=await getFeature(_0x2b16d1);console[_0x40739f(0x103)](_0x40739f(0x157)+_0x36e76d['name']+'\x20('+_0x2b16d1+')'),_0x19427a['ZcAtT'](displayFeature,_0x36e76d,_0x36e76d['checklistItems']);}
|
|
1
|
+
const _0x2b49e1=_0x8f54;(function(_0x9822cb,_0x400d3f){const _0x133e67=_0x8f54,_0x5ae146=_0x9822cb();while(!![]){try{const _0x27add4=-parseInt(_0x133e67(0x1c0))/0x1+-parseInt(_0x133e67(0x1d5))/0x2*(-parseInt(_0x133e67(0x15d))/0x3)+parseInt(_0x133e67(0x112))/0x4*(parseInt(_0x133e67(0x1f3))/0x5)+-parseInt(_0x133e67(0x13e))/0x6+parseInt(_0x133e67(0x171))/0x7*(parseInt(_0x133e67(0x1d1))/0x8)+-parseInt(_0x133e67(0x193))/0x9*(parseInt(_0x133e67(0x1dd))/0xa)+parseInt(_0x133e67(0x14b))/0xb*(parseInt(_0x133e67(0x19c))/0xc);if(_0x27add4===_0x400d3f)break;else _0x5ae146['push'](_0x5ae146['shift']());}catch(_0x3ae326){_0x5ae146['push'](_0x5ae146['shift']());}}}(_0x9fb5,0xcf35a));function _0x9fb5(){const _0x1b60cd=['cUBiy','includeDeleted','OTDgX','XlEcx','tkdLd','22808ZanrbV','status','rwVAH','limit','12538oNvzOd','CpPBW','\x0a✅\x20Session\x20','name','naRbs','map','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20Progress:\x20','3940gHTNql','blockedItems','tLNkH','incompleteReason','split','.\x20Feature\x20review\x20has\x20','LFRpC','notes','round','zTrNe','screenshotUrls','from','lzDRq','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','gOtVy','excludeScenarios','currentSessionId','\x0a❌\x20Invalid\x20scenario\x20index:\x20','replace','Showing\x20','kDUIT','3109135KJaaGJ','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','nUyfd','mMPGL','4eRwaco','TZBrV','numeric','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','totalCount','push','assetUrl','sCkSN','\x20\x20\x20Description:\x20','approved','reports','fpsks','after','TBqyP','scenario','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20\x20\x20▶️\x20Started\x20session\x20','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','assetType','timing','\x20of\x20','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','hCrPR','XVBSk','Jyqyh','type','authorEmail','syImV','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0a✅\x20Restored\x20feature\x20review:\x20','log','BFlHT','offset','get','\x1b[1m','screenshot','coordinates','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x20—\x20no\x20comments','position','emfNM','IxhzC','\x20\x20Expected\x20flow:','8914218FKPxze','wjPav','slice','selected','iqTKZ','items','submittedAt','eaoRx','pCvWB','in_progress','\x20—\x20','any','gitBranch','22640233eeGKmK','\x20in\x20progress','stats','EhRTP','UADwk','\x0aAvailable\x20scenarios:','hsPhA','CWNaY','write','filter','warn','/api/v1/mcp/browser-sessions/','fMCVB','zVuff','KQTnm','RIKAY','\x20\x20\x20Branch:\x20','JLEUu','267ABflqt','Unknown','completedAt','nVDKS','createdAt','iDTKH','qczAb','stdin','verifiedItems','muHdU','JeRVb','OVehD','canceledReason','AKpVq','length','\x20--include-deleted','domRef','trimEnd','epvVw','latestReview','1890yhCdDh','CLAUDE_SESSION_ID','eMkgF','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','list','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','VVFpP','short','xOFmN','gUHIf','description','\x20\x20\x20ID:\x20','bukNn','wrswa','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x20\x20\x20\x20','pipe','find','canonicalFlow','hvWVb','location','\x20incomplete','prompt','lyJRK','isTTY','cMGVa','isInteger','utf-8','toFixed','sjoUc','toxAY','ZAKya','exQIZ','gInXv','18117BSiffb',':\x20\x22','BMBRG','\x20feature\x20review(s)\x20found','SkQXo','unaddressedComments','closed','mayWm','pop','12GnmSSl','NEKxz','toLocaleString','textContent','pRJyR','currentBranch','join','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','cnzkr','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','selector','trim','en-US','DXabf','ONDNm','dDYqa','blockedReason','exit','pendingItems','verification_in_progress','tnAnC','terminalReason','spatial','error','qQkZd','checklistItems','QKyex','completed','Scenario\x20','No\x20scenarios\x20found.','stdout','browserSessionId','GyxSv','dashboardUrl','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x0a\x20\x20\x20Scenarios:','880186BpoJbI','uCYcs','agentResponse','style','linkedSession','\x20\x20\x20Status:\x20','ZytxV','\x20\x20✅\x20No\x20feedback\x20to\x20address','version','repeat','\x20/\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('];_0x9fb5=function(){return _0x1b60cd;};return _0x9fb5();}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x189e33 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x559708=>_0x2b49e1(0x134)+_0x559708+'\x1b[0m';function getGitRepoUrl(){const _0x5086e6=_0x2b49e1,_0x1325bf={'JeRVb':function(_0x5e47ac,_0x3012a7,_0x401726){return _0x5e47ac(_0x3012a7,_0x401726);},'wrswa':'git\x20remote\x20get-url\x20origin','JLEUu':_0x5086e6(0x18c),'USpCq':_0x5086e6(0x181),'XVBSk':'github.com/'};try{const _0x10b2d4=_0x1325bf[_0x5086e6(0x167)](execSync,_0x1325bf[_0x5086e6(0x17e)],{'encoding':_0x1325bf[_0x5086e6(0x15c)],'stdio':['pipe',_0x5086e6(0x181),_0x1325bf['USpCq']]})['trim']();return _0x10b2d4['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x1325bf[_0x5086e6(0x129)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x379260=_0x2b49e1,_0x4fb095={'exQIZ':function(_0xa621b8,_0x21fa2a,_0x2f65e7){return _0xa621b8(_0x21fa2a,_0x2f65e7);},'sCkSN':'utf-8','TBqyP':_0x379260(0x181)};try{return _0x4fb095[_0x379260(0x191)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x4fb095[_0x379260(0x119)],'stdio':[_0x379260(0x181),_0x4fb095[_0x379260(0x11f)],'pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3c939e=_0x2b49e1,_0x2eb13b={'WEgwf':function(_0x56c955,_0x1a8a18,_0x45effe){return _0x56c955(_0x1a8a18,_0x45effe);},'zVuff':function(_0x34ae60){return _0x34ae60();},'sjoUc':function(_0x3e748c,_0x357a58){return _0x3e748c(_0x357a58);},'cnzkr':'utf-8'},_0x422ab2=_0x2eb13b['WEgwf'](join,_0x2eb13b[_0x3c939e(0x158)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x2eb13b[_0x3c939e(0x18e)](existsSync,_0x422ab2))return null;try{const _0x33bb08=await readFile(_0x422ab2,_0x2eb13b[_0x3c939e(0x1a4)]);return _0x33bb08[_0x3c939e(0x1a7)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x54aaa9){const _0x57f3c9=_0x2b49e1,_0x475811={'naRbs':function(_0x97a2fd){return _0x97a2fd();},'SkQXo':_0x57f3c9(0x18c)},_0x540507=_0x475811[_0x57f3c9(0x1d9)](getRangerDir),_0x1c8eab=join(_0x540507,ACTIVE_FEATURE_FILE);!existsSync(_0x540507)&&await mkdir(_0x540507,{'recursive':!![]}),await writeFile(_0x1c8eab,_0x54aaa9,_0x475811[_0x57f3c9(0x197)]);}function getProgressDisplay(_0x3ee6fb){const _0x12bc83=_0x2b49e1,_0x3efbfc={'OTDgX':function(_0x292685,_0x30a7df){return _0x292685+_0x30a7df;},'qQkZd':function(_0x5ac181,_0x582c3c){return _0x5ac181/_0x582c3c;},'cdrxu':function(_0x43b385,_0x1171f7){return _0x43b385-_0x1171f7;},'NEKxz':function(_0x4a5406,_0x428b0c){return _0x4a5406>_0x428b0c;},'lyJRK':function(_0x32f134,_0x4f4ee7){return _0x32f134>_0x4f4ee7;}},_0x1ef050=_0x3ee6fb[_0x12bc83(0x165)]||0x0,_0x5253eb=_0x3ee6fb['verificationInProgressItems']||0x0,_0x49458a=_0x3ee6fb[_0x12bc83(0x1de)]||0x0,_0x3624c8=_0x3ee6fb['incompleteItems']||0x0,_0x1a51eb=_0x3ee6fb[_0x12bc83(0x1ae)]||0x0,_0x1805b8=_0x3efbfc[_0x12bc83(0x1ce)](_0x1ef050+_0x5253eb+_0x49458a+_0x3624c8,_0x1a51eb);if(_0x1805b8===0x0)return'-';const _0x4f67ca=0xa,_0x420167=Math[_0x12bc83(0x1e5)](_0x3efbfc[_0x12bc83(0x1b4)](_0x1ef050,_0x1805b8)*_0x4f67ca),_0x211fc5='█'['repeat'](_0x420167)+'░'[_0x12bc83(0x1c9)](_0x3efbfc['cdrxu'](_0x4f67ca,_0x420167)),_0x33f288=[];if(_0x3efbfc[_0x12bc83(0x19d)](_0x49458a,0x0))_0x33f288['push'](_0x49458a+'\x20blocked');if(_0x3efbfc[_0x12bc83(0x188)](_0x3624c8,0x0))_0x33f288['push'](_0x3624c8+_0x12bc83(0x186));if(_0x5253eb>0x0)_0x33f288[_0x12bc83(0x117)](_0x5253eb+_0x12bc83(0x14c));const _0x224ac9=_0x33f288['length']>0x0?'\x20('+_0x33f288[_0x12bc83(0x1a2)](',\x20')+')':'';return _0x211fc5+'\x20'+_0x1ef050+'/'+_0x1805b8+'\x20verified'+_0x224ac9;}function getCurrentSessionItems(_0x13e47a,_0x28655c){const _0x61152=_0x2b49e1;if(!_0x13e47a[_0x61152(0x1ee)])return _0x28655c[_0x61152(0x154)](_0x47a961=>!_0x47a961['sessionId']);return _0x28655c[_0x61152(0x154)](_0x188eeb=>_0x188eeb['sessionId']===_0x13e47a[_0x61152(0x1ee)]||!_0x188eeb['sessionId']);}function displayFeature(_0x2aebbf,_0x374bd5){const _0x149cfe=_0x2b49e1,_0x11b376={'BMBRG':function(_0x5d4de4,_0x442e76){return _0x5d4de4>_0x442e76;},'iDTKH':function(_0x11c588,_0x478279){return _0x11c588===_0x478279;},'RIKAY':function(_0x11f7ee,_0x8fb138){return _0x11f7ee===_0x8fb138;},'sNBLg':'verified','gUHIf':'incomplete','epvVw':function(_0x383891,_0x3914af){return _0x383891===_0x3914af;},'jvCdw':'blocked','uCYcs':function(_0x3ccea9,_0x27196c){return _0x3ccea9===_0x27196c;},'qczAb':function(_0x2d43c7,_0x380e4b){return _0x2d43c7!==_0x380e4b;},'CpPBW':'\x20[has\x20reviewer\x20feedback]','tLNkH':function(_0x27dfb6,_0x214ea2){return _0x27dfb6===_0x214ea2;},'eMkgF':_0x149cfe(0x199),'Hbspt':function(_0x544eed,_0x2e636f){return _0x544eed===_0x2e636f;},'RHSDT':function(_0x123674,_0x1a16fe){return _0x123674===_0x1a16fe;}};console[_0x149cfe(0x130)]('\x0a'+_0x2aebbf[_0x149cfe(0x1d8)]+'\x20('+_0x2aebbf['dashboardUrl']+')');_0x2aebbf[_0x149cfe(0x14d)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x2aebbf['stats']));_0x2aebbf[_0x149cfe(0x17b)]&&console[_0x149cfe(0x130)](_0x149cfe(0x11a)+_0x2aebbf[_0x149cfe(0x17b)]);_0x2aebbf['gitRepoUrl']&&console[_0x149cfe(0x130)]('\x20\x20\x20Repository:\x20'+_0x2aebbf['gitRepoUrl']);_0x2aebbf[_0x149cfe(0x14a)]&&console['log'](_0x149cfe(0x15b)+_0x2aebbf[_0x149cfe(0x14a)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x2aebbf['createdAt'])[_0x149cfe(0x19e)]());_0x2aebbf['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x2aebbf['completedAt'])['toLocaleString']());if(_0x374bd5&&_0x11b376[_0x149cfe(0x195)](_0x374bd5[_0x149cfe(0x16b)],0x0)){console['log'](_0x149cfe(0x1bf));for(let _0x2ae7ea=0x0;_0x2ae7ea<_0x374bd5['length'];_0x2ae7ea++){const _0x80d5eb=_0x374bd5[_0x2ae7ea];let _0x11ac6a;if(_0x11b376[_0x149cfe(0x162)](_0x80d5eb[_0x149cfe(0x1d2)],_0x149cfe(0x199))&&_0x11b376[_0x149cfe(0x15a)](_0x80d5eb[_0x149cfe(0x1b1)],_0x149cfe(0x11b)))_0x11ac6a='✅';else{if(_0x80d5eb[_0x149cfe(0x1d2)]===_0x11b376['sNBLg'])_0x11ac6a='🟢';else{if(_0x80d5eb[_0x149cfe(0x1d2)]===_0x11b376['gUHIf'])_0x11ac6a='🟠';else{if(_0x11b376[_0x149cfe(0x16f)](_0x80d5eb[_0x149cfe(0x1d2)],_0x11b376['jvCdw']))_0x11ac6a='🛑';else{if(_0x11b376['RIKAY'](_0x80d5eb['status'],_0x149cfe(0x199)))_0x11ac6a='⛔';else _0x11b376[_0x149cfe(0x1c1)](_0x80d5eb['status'],_0x149cfe(0x1af))?_0x11ac6a='⏳':_0x11ac6a='⬜';}}}}const _0x3f7234=_0x11b376['BMBRG'](_0x80d5eb[_0x149cfe(0x1c8)],0x1)?'\x20(v'+_0x80d5eb['version']+')':'',_0x3f1b37=_0x80d5eb['version']>0x1&&_0x80d5eb['parentItemId']&&_0x11b376[_0x149cfe(0x163)](_0x80d5eb[_0x149cfe(0x1d2)],'closed')&&_0x80d5eb['status']!=='verified'?_0x11b376[_0x149cfe(0x1d6)]:'';console['log']('\x20\x20\x20'+(_0x2ae7ea+0x1)+'.\x20'+_0x11ac6a+'\x20'+_0x80d5eb[_0x149cfe(0x17b)]+_0x3f7234+_0x3f1b37);_0x80d5eb[_0x149cfe(0x1d2)]==='blocked'&&_0x80d5eb[_0x149cfe(0x1ac)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x80d5eb['blockedReason']);_0x11b376['iDTKH'](_0x80d5eb['status'],_0x11b376[_0x149cfe(0x17a)])&&_0x80d5eb['incompleteReason']&&console[_0x149cfe(0x130)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x80d5eb[_0x149cfe(0x1e0)]);if(_0x11b376[_0x149cfe(0x1df)](_0x80d5eb[_0x149cfe(0x1d2)],_0x11b376[_0x149cfe(0x173)])&&_0x11b376['Hbspt'](_0x80d5eb[_0x149cfe(0x1b1)],_0x149cfe(0x11b)))console[_0x149cfe(0x130)]('\x20\x20\x20\x20\x20\x20Approved');else _0x11b376['RHSDT'](_0x80d5eb['status'],_0x11b376[_0x149cfe(0x173)])&&_0x80d5eb[_0x149cfe(0x169)]&&console[_0x149cfe(0x130)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x80d5eb[_0x149cfe(0x169)]);}}}export async function featureCreate(_0x28eb49,_0x6ca3c1){const _0x30e83c=_0x2b49e1,_0x33d3d1={'VVFpP':function(_0x343830){return _0x343830();},'ONDNm':function(_0x28acfc,_0x85e3e0){return _0x28acfc(_0x85e3e0);},'yYNXp':function(_0x3ab84f){return _0x3ab84f();},'SMtmS':'\x0aCreating\x20feature\x20review...','hCrPR':function(_0x195d0e,_0x552786){return _0x195d0e(_0x552786);},'RXGWx':function(_0x501695,_0x54e88a,_0x2d6e3e){return _0x501695(_0x54e88a,_0x2d6e3e);}},{envNames:_0x19914b}=await _0x33d3d1[_0x30e83c(0x177)](getEnvNames);_0x19914b[_0x30e83c(0x16b)]===0x0&&console[_0x30e83c(0x155)]('\x0a'+_0x33d3d1[_0x30e83c(0x1aa)](formatProfileRequiredMessage,_0x5a45db=>bold(_0x5a45db)));const _0x286f92=_0x6ca3c1['scenarios']?_0x6ca3c1['scenarios']['map'](_0x136936=>_0x136936['trim']()):[],_0x23f7a1=getGitRepoUrl(),_0x518d85=_0x33d3d1['yYNXp'](getGitBranch);console['log'](_0x33d3d1['SMtmS']);const _0x562a3c=await _0x33d3d1[_0x30e83c(0x1aa)](createFeature,{'name':_0x28eb49,'description':_0x6ca3c1['description'],'checklist':_0x286f92,'gitRepoUrl':_0x23f7a1,'gitBranch':_0x518d85});await setActiveFeatureId(_0x562a3c['id']),await _0x33d3d1[_0x30e83c(0x128)](tryStartCurrentSession,_0x562a3c['id']);const _0x34c1c9=process['env']['CLAUDE_SESSION_ID'];_0x34c1c9&&_0x33d3d1['RXGWx'](registerSession,_0x34c1c9,_0x562a3c['id']),console[_0x30e83c(0x130)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x562a3c['id']),displayFeature(_0x562a3c,_0x562a3c[_0x30e83c(0x1b5)]),console[_0x30e83c(0x130)](_0x30e83c(0x1f4));}export async function featureList(_0x4dfcf3){const _0xbe7d90=_0x2b49e1,_0x315e15={'fRJsN':function(_0x4c001a){return _0x4c001a();},'lxARG':function(_0x71cf09,_0xd85298){return _0x71cf09(_0xd85298);},'bukNn':function(_0x3bcc6e,_0x3ed976){return _0x3bcc6e>_0x3ed976;},'ZIKGE':function(_0x1668cf,_0x4d0cad){return _0x1668cf+_0x4d0cad;},'OLyaU':function(_0x4e59a4,_0x284d0e){return _0x4e59a4<_0x284d0e;},'AKpVq':function(_0x199123,_0x1e9ab0){return _0x199123!==_0x1e9ab0;},'emfNM':_0xbe7d90(0x16c)},_0x51b08f={'limit':_0x4dfcf3['limit']??0xa,'offset':_0x4dfcf3['offset']??0x0,'includeDeleted':_0x4dfcf3[_0xbe7d90(0x1cd)]};_0x4dfcf3['currentBranch']&&(_0x51b08f['gitRepoUrl']=getGitRepoUrl(),_0x51b08f['gitBranch']=_0x315e15['fRJsN'](getGitBranch));const _0x2e4fe7=await _0x315e15['lxARG'](listFeatures,_0x51b08f);if(_0x2e4fe7['items']['length']===0x0){console[_0xbe7d90(0x130)]('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x515a96=_0x315e15[_0xbe7d90(0x17d)](_0x2e4fe7[_0xbe7d90(0x116)],_0x2e4fe7['items'][_0xbe7d90(0x16b)])?_0xbe7d90(0x1f1)+_0x2e4fe7['items'][_0xbe7d90(0x16b)]+_0xbe7d90(0x126)+_0x2e4fe7['totalCount']:_0x2e4fe7['totalCount']+_0xbe7d90(0x196);console['log']('\x0a'+_0x515a96+':\x0a');for(const _0x4bee07 of _0x2e4fe7[_0xbe7d90(0x143)]){console[_0xbe7d90(0x130)](''+_0x4bee07['name']),console['log'](_0xbe7d90(0x17c)+_0x4bee07['id']),_0x4bee07[_0xbe7d90(0x14d)]&&console[_0xbe7d90(0x130)](_0xbe7d90(0x1dc)+getProgressDisplay(_0x4bee07[_0xbe7d90(0x14d)])),_0x4bee07[_0xbe7d90(0x14a)]&&console['log'](_0xbe7d90(0x15b)+_0x4bee07[_0xbe7d90(0x14a)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x4bee07[_0xbe7d90(0x161)])['toLocaleDateString']()),console[_0xbe7d90(0x130)]('');}const _0x3ea93d=_0x51b08f[_0xbe7d90(0x1d4)]??0xa,_0xb5ba4b=_0x315e15['ZIKGE'](_0x51b08f[_0xbe7d90(0x132)]??0x0,_0x2e4fe7[_0xbe7d90(0x143)]['length']);if(_0x315e15['OLyaU'](_0xb5ba4b,_0x2e4fe7['totalCount'])){const _0x3866b9=_0x315e15[_0xbe7d90(0x16a)](_0x3ea93d,0xa)?'\x20--limit\x20'+_0x3ea93d:'',_0x45c8fe=_0x4dfcf3[_0xbe7d90(0x1a1)]?'\x20--current-branch':'',_0x38f177=_0x4dfcf3[_0xbe7d90(0x1cd)]?_0x315e15[_0xbe7d90(0x13b)]:'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0xb5ba4b+_0x3866b9+_0x45c8fe+_0x38f177);}}export async function featureShow(_0x172a93){const _0x492e7d=_0x2b49e1,_0x115214={'OVehD':function(_0x57f20b){return _0x57f20b();},'JLIrz':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','CWNaY':function(_0x4c5080,_0x1ffa60){return _0x4c5080(_0x1ffa60);}},_0x3ccc34=_0x172a93||await _0x115214[_0x492e7d(0x168)](getActiveFeatureId);if(!_0x3ccc34)throw new Error(_0x115214['JLIrz']);const _0x2efd5e=await _0x115214[_0x492e7d(0x152)](getFeature,_0x3ccc34);displayFeature(_0x2efd5e,_0x2efd5e[_0x492e7d(0x1b5)]);}function _0x8f54(_0x52a3cd,_0x4c53d5){_0x52a3cd=_0x52a3cd-0x111;const _0x9fb558=_0x9fb5();let _0x8f5410=_0x9fb558[_0x52a3cd];return _0x8f5410;}export async function featureResume(_0xa74a31){const _0x4d6819=_0x2b49e1,_0x4282e6={'cMGVa':function(_0x1f9fc7,_0x27acf8){return _0x1f9fc7(_0x27acf8);},'zTrNe':function(_0x59f966){return _0x59f966();},'hsPhA':function(_0x2dd70c,_0x1b6dac){return _0x2dd70c!==_0x1b6dac;},'toxAY':function(_0x18c41c,_0x271f44,_0x2b46ae){return _0x18c41c(_0x271f44,_0x2b46ae);},'xOFmN':function(_0x235979,_0x44d43a){return _0x235979||_0x44d43a;},'syImV':'any','oTpVO':function(_0x1b97ef,_0x561a04){return _0x1b97ef(_0x561a04);},'XlEcx':function(_0x4a5c45,_0x1ea21e){return _0x4a5c45===_0x1ea21e;},'pAhoC':_0x4d6819(0x1a3),'mMPGL':_0x4d6819(0x175),'ZMkdQ':_0x4d6819(0x141),'pCvWB':_0x4d6819(0x1be),'fpsks':function(_0x49c95f,_0x376438){return _0x49c95f(_0x376438);}};if(_0xa74a31){const _0x440262=await getFeature(_0xa74a31);await _0x4282e6['cMGVa'](setActiveFeatureId,_0x440262['id']);const _0x3a2262=_0x4282e6[_0x4d6819(0x1e6)](getGitBranch);_0x3a2262&&_0x4282e6[_0x4d6819(0x151)](_0x3a2262,_0x440262['gitBranch'])&&(await updateFeature(_0x440262['id'],{'gitBranch':_0x3a2262}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3a2262));console[_0x4d6819(0x130)](_0x4d6819(0x138)+_0x440262['name']+'\x20('+_0x440262['id']+')'),await _0x4282e6[_0x4d6819(0x18a)](tryStartCurrentSession,_0x440262['id']);const _0x6e969e=process['env']['CLAUDE_SESSION_ID'];_0x6e969e&&_0x4282e6['toxAY'](registerSession,_0x6e969e,_0x440262['id']);displayFeature(_0x440262,_0x440262[_0x4d6819(0x1b5)]),await printFeedbackNudge(_0x440262['id']);return;}const _0x1e316e=getGitRepoUrl(),_0x537c12=getGitBranch();if(!_0x1e316e&&!_0x537c12)throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x4282e6[_0x4d6819(0x179)](_0x1e316e,_0x4d6819(0x149))+_0x4d6819(0x1ca)+_0x4282e6['xOFmN'](_0x537c12,_0x4282e6[_0x4d6819(0x12d)])+'...');const _0x2235fd=await _0x4282e6['oTpVO'](listFeatures,{'gitRepoUrl':_0x1e316e,'gitBranch':_0x537c12}),_0xc6d31f=_0x2235fd['items'][_0x4d6819(0x154)](_0x26be41=>!_0x26be41['completedAt']);if(_0x4282e6[_0x4d6819(0x1cf)](_0xc6d31f['length'],0x0)){console[_0x4d6819(0x130)](_0x4282e6['pAhoC']),console['log'](_0x4d6819(0x127));return;}let _0xa084f8;if(_0xc6d31f[_0x4d6819(0x16b)]===0x1)_0xa084f8=_0xc6d31f[0x0];else{const _0x3008ce=process[_0x4d6819(0x164)]['isTTY']&&process[_0x4d6819(0x1ba)][_0x4d6819(0x189)];if(!_0x3008ce){console[_0x4d6819(0x130)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x3b4908 of _0xc6d31f){console[_0x4d6819(0x130)]('\x20\x20'+_0x3b4908['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x3b4908['id']),_0x3b4908['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x4282e6['cMGVa'](getProgressDisplay,_0x3b4908['stats'])),_0x3b4908[_0x4d6819(0x14a)]&&console['log'](_0x4d6819(0x1db)+_0x3b4908['gitBranch']);}throw new Error(_0x4d6819(0x174));}const {selected:_0x26d1b7}=await _0x189e33[_0x4d6819(0x187)]([{'type':_0x4282e6[_0x4d6819(0x111)],'name':_0x4282e6['ZMkdQ'],'message':_0x4282e6[_0x4d6819(0x146)],'choices':_0xc6d31f[_0x4d6819(0x1da)](_0x8c1323=>({'name':_0x8c1323[_0x4d6819(0x1d8)]+'\x20('+_0x8c1323['id']+')','value':_0x8c1323['id']}))}]);_0xa084f8=_0xc6d31f['find'](_0x2abd3b=>_0x2abd3b['id']===_0x26d1b7);}await setActiveFeatureId(_0xa084f8['id']);_0x537c12&&_0x537c12!==_0xa084f8['gitBranch']&&(await updateFeature(_0xa084f8['id'],{'gitBranch':_0x537c12}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x537c12));console['log'](_0x4d6819(0x138)+_0xa084f8['name']+'\x20('+_0xa084f8['id']+')'),await _0x4282e6[_0x4d6819(0x11d)](tryStartCurrentSession,_0xa084f8['id']);const _0x5eec7a=await getFeature(_0xa084f8['id']),_0x13cecc=process['env'][_0x4d6819(0x172)];_0x13cecc&&_0x4282e6[_0x4d6819(0x18f)](registerSession,_0x13cecc,_0x5eec7a['id']),displayFeature(_0x5eec7a,_0x5eec7a[_0x4d6819(0x1b5)]),await printFeedbackNudge(_0x5eec7a['id']);}async function printFeedbackNudge(_0xc635ee){const _0x4f045c=_0x2b49e1;try{const {items:_0x43c2dd}=await getActionItems(_0xc635ee);let _0x3d7a1a=0x0,_0x42b57c=0x0;for(const _0x82fe08 of _0x43c2dd){const _0x373fad=await getItemFeedback(_0xc635ee,_0x82fe08['id']);_0x373fad['unaddressedComments']['length']>0x0&&(_0x3d7a1a+=_0x373fad[_0x4f045c(0x198)][_0x4f045c(0x16b)],_0x42b57c++);}_0x3d7a1a>0x0&&(console[_0x4f045c(0x130)]('\x0a⚠️\x20\x20'+_0x3d7a1a+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x42b57c+'\x20scenario(s).'),console[_0x4f045c(0x130)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x5cf338){const _0xe09828=_0x2b49e1,_0x6bc362={'LFRpC':function(_0x5bed16,_0x49c3ea,_0x422d50){return _0x5bed16(_0x49c3ea,_0x422d50);}};try{const {sessions:_0x1d1cc2}=await listFeatureSessions(_0x5cf338),_0x59c02b=_0x1d1cc2['find'](_0x1db3e9=>_0x1db3e9[_0xe09828(0x1d2)]==='ready');_0x59c02b&&(await _0x6bc362[_0xe09828(0x1e3)](startSession,_0x5cf338,_0x59c02b['id']),console[_0xe09828(0x130)](_0xe09828(0x122)+_0x59c02b['iteration']));}catch{}}export async function featureReport(_0x32b698,_0x23e9c3){const _0x27890e=_0x2b49e1,_0x35b19f={'mSVyf':'\x0aGenerating\x20report...','Jyqyh':function(_0x939ddd,_0x122bd8,_0x479626,_0x4be099){return _0x939ddd(_0x122bd8,_0x479626,_0x4be099);},'rBxsb':_0x27890e(0x11c),'sBcCb':function(_0x2187ec,_0x38ed83){return _0x2187ec(_0x38ed83);},'fMCVB':_0x27890e(0x18c)},_0x1f2886=_0x32b698||await getActiveFeatureId();if(!_0x1f2886)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log'](_0x35b19f['mSVyf']);const _0x4e428d=await getFeatureReportMarkdown(_0x1f2886,{'style':_0x23e9c3[_0x27890e(0x1c3)]}),_0x693d3d=_0x23e9c3['output']||_0x35b19f[_0x27890e(0x12a)](join,getRangerDir(),_0x35b19f['rBxsb'],_0x1f2886+'.md'),_0x57a8ef=join(_0x693d3d,'..');!_0x35b19f['sBcCb'](existsSync,_0x57a8ef)&&await mkdir(_0x57a8ef,{'recursive':!![]}),await _0x35b19f['Jyqyh'](writeFile,_0x693d3d,_0x4e428d,_0x35b19f[_0x27890e(0x157)]),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x693d3d);}function getScenarioResult(_0x3f0519){const _0x17ac39=_0x2b49e1,_0x1d1b32={'UADwk':'closed'};if(_0x3f0519[_0x17ac39(0x1d2)]===_0x17ac39(0x199))return _0x3f0519[_0x17ac39(0x1b1)]??_0x1d1b32[_0x17ac39(0x14f)];if(_0x3f0519[_0x17ac39(0x1d2)]===_0x17ac39(0x1af))return'in_progress';return _0x3f0519['status'];}function getScenarioRationale(_0x422372,_0x542839){const _0x3ff774=_0x2b49e1;if(_0x542839)return _0x542839;if(_0x422372[_0x3ff774(0x1ac)])return _0x422372['blockedReason'];if(_0x422372['incompleteReason'])return _0x422372[_0x3ff774(0x1e0)];if(_0x422372['canceledReason'])return _0x422372['canceledReason'];if(_0x422372[_0x3ff774(0x1e4)])return _0x422372[_0x3ff774(0x1e4)];return null;}export async function featureReportPrDescription(_0x46f8e4,_0x845838){const _0x5704cb=_0x2b49e1,_0x4d4e35={'muHdU':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','hBBqx':'\x0aAvailable\x20scenarios:','mayWm':function(_0x36e16a,_0x29e024){return _0x36e16a===_0x29e024;},'FQnyS':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','kDUIT':function(_0x5eb492,_0x52c833,_0x35fe22,_0x5572a2){return _0x5eb492(_0x52c833,_0x35fe22,_0x5572a2);},'BFlHT':function(_0x30b478,_0x1277c9,_0x4865af){return _0x30b478(_0x1277c9,_0x4865af);}},_0x13fe89=_0x46f8e4||await getActiveFeatureId();if(!_0x13fe89)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x49500c=await getFeature(_0x13fe89),_0x2708f8=_0x49500c[_0x5704cb(0x1b5)]||[],_0x9851c9=getCurrentSessionItems(_0x49500c,_0x2708f8);_0x9851c9[_0x5704cb(0x16b)]===0x0&&(console['error'](_0x4d4e35[_0x5704cb(0x166)]),process[_0x5704cb(0x1ad)](0x1));const _0x2f5045=_0x845838[_0x5704cb(0x1ed)]??[],_0x14abb1=_0x2f5045[_0x5704cb(0x154)](_0x53b065=>!Number[_0x5704cb(0x18b)](_0x53b065)||_0x53b065<0x1||_0x53b065>_0x9851c9[_0x5704cb(0x16b)]);if(_0x14abb1['length']>0x0){console[_0x5704cb(0x1b3)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x14abb1['join'](',\x20')),console['log'](_0x4d4e35['hBBqx']);for(let _0x127146=0x0;_0x127146<_0x9851c9['length'];_0x127146++){console[_0x5704cb(0x130)]('\x20\x20'+(_0x127146+0x1)+'.\x20'+_0x9851c9[_0x127146][_0x5704cb(0x17b)]);}process[_0x5704cb(0x1ad)](0x1);}const _0x3cfae7=new Set(_0x2f5045['map'](_0x45edd2=>_0x45edd2-0x1)),_0x451b80=_0x9851c9[_0x5704cb(0x154)]((_0x22957f,_0x9ac2d6)=>!_0x3cfae7['has'](_0x9ac2d6));_0x4d4e35[_0x5704cb(0x19a)](_0x451b80[_0x5704cb(0x16b)],0x0)&&(console['error'](_0x4d4e35['FQnyS']),process[_0x5704cb(0x1ad)](0x1));if(_0x845838['json'])await _0x4d4e35[_0x5704cb(0x1f2)](outputJsonReport,_0x13fe89,_0x49500c,_0x451b80);else{const _0x493669=await _0x4d4e35[_0x5704cb(0x131)](getFeatureReportMarkdown,_0x13fe89,{'itemIds':_0x451b80['map'](_0x1305ff=>_0x1305ff['id'])});process['stdout'][_0x5704cb(0x153)](_0x493669[_0x5704cb(0x16e)]()+'\x0a');}}async function outputJsonReport(_0xa95159,_0x4050c4,_0x1436ef){const _0x134d5a=_0x2b49e1,_0x345550={'nUyfd':function(_0x1e44b3,_0x5f4edf){return _0x1e44b3(_0x5f4edf);},'LQsaQ':function(_0x25fa7b,_0x85e29,_0xe8f363){return _0x25fa7b(_0x85e29,_0xe8f363);},'bKIHn':function(_0x2d1c14){return _0x2d1c14();},'xanfg':function(_0x73da8e,_0x33a842){return _0x73da8e+_0x33a842;}},_0x297102=_0x345550['bKIHn'](getApiBaseUrl),_0x58e7cf=await _0x345550[_0x134d5a(0x1f5)](getFeatureReport,_0xa95159),_0x596ff4=new Map(_0x58e7cf['checklistItems'][_0x134d5a(0x1da)](_0x9ecfd0=>[_0x9ecfd0['id'],_0x9ecfd0])),_0xc202f2=await Promise['all'](_0x1436ef['map'](async _0x5e5ad3=>{const _0x436aa5=_0x134d5a,_0x293a97=_0x596ff4[_0x436aa5(0x133)](_0x5e5ad3['id']),_0x96b57f=_0x293a97?.[_0x436aa5(0x1c4)]??null;let _0x10aef6=[];if(_0x5e5ad3['browserSessionId'])try{const {steps:_0x3efc4e}=await _0x345550[_0x436aa5(0x1f5)](getBrowserSessionSteps,_0x5e5ad3[_0x436aa5(0x1bb)]);_0x3efc4e['length']>0x0&&(_0x10aef6=_0x3efc4e[_0x436aa5(0x1da)](_0x1a5f5b=>{const _0x17e4c7=_0x436aa5,_0x57a970=_0x1a5f5b['assets'][_0x17e4c7(0x182)](_0x4291f0=>_0x4291f0['assetType']===_0x17e4c7(0x135)&&_0x4291f0[_0x17e4c7(0x125)]===_0x17e4c7(0x11e))??_0x1a5f5b['assets']['find'](_0x1d6993=>_0x1d6993[_0x17e4c7(0x124)]===_0x17e4c7(0x135));let _0x58601e=null,_0x3b17a8=null;if(_0x57a970){const _0x186254=_0x57a970['storage'][_0x17e4c7(0x185)][_0x17e4c7(0x1e1)]('/')[_0x17e4c7(0x19b)]();_0x58601e=_0x297102+_0x17e4c7(0x156)+_0x5e5ad3['browserSessionId']+'/artifacts/'+_0x186254,_0x186254&&(_0x3b17a8=_0x186254['replace'](/\.\w+$/,'')[_0x17e4c7(0x1f0)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x3b17a8||_0x1a5f5b[_0x17e4c7(0x17b)]||_0x1a5f5b['stepName']||'Step\x20'+_0x1a5f5b[_0x17e4c7(0x13a)],'screenshot':_0x58601e,'is_key_step':_0x1a5f5b['isKeyStep']};}));}catch{}return _0x10aef6[_0x436aa5(0x16b)]===0x0&&_0x96b57f?.['screenshotUrls']&&(_0x10aef6=_0x96b57f[_0x436aa5(0x1e7)][_0x436aa5(0x1da)]((_0x57198a,_0x551413)=>({'description':'Screenshot\x20'+(_0x551413+0x1),'screenshot':_0x57198a,'is_key_step':![]}))),{'description':_0x5e5ad3[_0x436aa5(0x17b)],'result':_0x345550[_0x436aa5(0x1f5)](getScenarioResult,_0x5e5ad3),'rationale':_0x345550['LQsaQ'](getScenarioRationale,_0x5e5ad3,_0x96b57f?.[_0x436aa5(0x1c2)]),'steps':_0x10aef6};})),_0x3b8d89={'url':_0x4050c4[_0x134d5a(0x1bd)],'scenarios':_0xc202f2};process['stdout']['write'](_0x345550['xanfg'](JSON['stringify'](_0x3b8d89,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x2a4aac){const _0x179565=_0x2b49e1,_0x2f8e30={'BxQUA':function(_0xf104ae){return _0xf104ae();},'ocPDx':function(_0x11e78a,_0x1a208e){return _0x11e78a(_0x1a208e);},'EcWBB':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','NvOkT':'Current\x20session\x20not\x20found.','ZAKya':_0x179565(0x1b7),'gOtVy':'\x0a✅\x20Session\x20is\x20already\x20completed.','iTmIS':'\x0aConcluding\x20session...','cUBiy':function(_0x1d1d0d,_0x3fedea,_0x26c6ea){return _0x1d1d0d(_0x3fedea,_0x26c6ea);}},_0x5ebd6a=_0x2a4aac||await _0x2f8e30['BxQUA'](getActiveFeatureId);if(!_0x5ebd6a)throw new Error(_0x179565(0x115));const _0x252e6d=await _0x2f8e30['ocPDx'](getFeature,_0x5ebd6a);if(!_0x252e6d[_0x179565(0x1ee)])throw new Error(_0x2f8e30['EcWBB']);const {sessions:_0x35bd6a}=await listFeatureSessions(_0x5ebd6a),_0x22fe11=_0x35bd6a[_0x179565(0x182)](_0x49a19b=>_0x49a19b['id']===_0x252e6d['currentSessionId']);if(!_0x22fe11)throw new Error(_0x2f8e30['NvOkT']);if(_0x22fe11['status']===_0x2f8e30[_0x179565(0x190)]){console['log'](_0x2f8e30[_0x179565(0x1ec)]);return;}if(_0x22fe11['status']!==_0x179565(0x147))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x22fe11['status']);console[_0x179565(0x130)](_0x2f8e30['iTmIS']),await _0x2f8e30[_0x179565(0x1cc)](concludeSession,_0x5ebd6a,_0x252e6d[_0x179565(0x1ee)]),console[_0x179565(0x130)](_0x179565(0x1d7)+_0x22fe11['iteration']+'\x20concluded.'),console[_0x179565(0x130)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x3fd09d){const _0x38e5ad=_0x2b49e1,_0x1b18a0={'IxhzC':function(_0x2f617e,_0x3cf42e){return _0x2f617e(_0x3cf42e);},'EGcOY':'No\x20sessions\x20found.','TZBrV':function(_0x58f762,_0x2a7a10){return _0x58f762===_0x2a7a10;},'GyxSv':_0x38e5ad(0x1b7),'DXabf':'in_progress'},_0x1a7015=_0x3fd09d||await getActiveFeatureId();if(!_0x1a7015)throw new Error(_0x38e5ad(0x121));const _0x353f4b=await _0x1b18a0['IxhzC'](getFeature,_0x1a7015);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x353f4b[_0x38e5ad(0x1d8)]+'\x0a');const {sessions:_0x66479c}=await _0x1b18a0[_0x38e5ad(0x13c)](listFeatureSessions,_0x1a7015);if(_0x66479c[_0x38e5ad(0x16b)]===0x0){console['log'](_0x1b18a0['EGcOY']);return;}for(const _0x27b970 of _0x66479c){const _0x272c57=_0x1b18a0[_0x38e5ad(0x113)](_0x27b970['status'],_0x1b18a0[_0x38e5ad(0x1bc)])?'✅':_0x27b970['status']===_0x1b18a0[_0x38e5ad(0x1a9)]?'🔄':'▶️';console[_0x38e5ad(0x130)](_0x272c57+'\x20Session\x20'+_0x27b970['iteration']+'\x20('+_0x27b970['id']+')'),console['log'](_0x38e5ad(0x1c5)+_0x27b970['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x27b970['createdAt'])['toLocaleString']()),_0x27b970[_0x38e5ad(0x15f)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x27b970['completedAt'])[_0x38e5ad(0x19e)]()),console['log']('');}}export async function featureAddScenario(_0x3784d1,_0x5d2360){const _0x3aec06=_0x2b49e1,_0x1aaac3={'tnAnC':function(_0x36177a){return _0x36177a();},'KQTnm':_0x3aec06(0x115),'eYnNq':function(_0x12bcc6,_0x579f88,_0x1917b1){return _0x12bcc6(_0x579f88,_0x1917b1);}},_0x4c213c=_0x5d2360||await _0x1aaac3[_0x3aec06(0x1b0)](getActiveFeatureId);if(!_0x4c213c)throw new Error(_0x1aaac3[_0x3aec06(0x159)]);const _0x47f25e=await getFeature(_0x4c213c);if(_0x47f25e['latestReview']&&!_0x47f25e[_0x3aec06(0x170)][_0x3aec06(0x144)])throw new Error(_0x3aec06(0x17f)+_0x47f25e[_0x3aec06(0x1bd)]);await _0x1aaac3['eYnNq'](createChecklistItem,_0x4c213c,_0x3784d1);const _0x1fdbbe=await getFeature(_0x4c213c);console[_0x3aec06(0x130)]('\x0a✅\x20Scenario\x20added'),_0x1aaac3['eYnNq'](displayFeature,_0x1fdbbe,_0x1fdbbe['checklistItems']);}export async function featureEditScenario(_0x252880,_0x48242c){const _0x4c3da1=_0x2b49e1,_0x31a416={'dDYqa':function(_0xb2db60,_0x28c2ba){return _0xb2db60(_0x28c2ba);},'LSbtf':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','QKyex':'Please\x20finish\x20your\x20review\x20first:','lElDM':_0x4c3da1(0x1eb),'dWsWh':function(_0x114d52,_0x55ad37){return _0x114d52<_0x55ad37;},'fdawK':function(_0x59880d,_0x405ce2){return _0x59880d>=_0x405ce2;},'iqTKZ':function(_0x499bde,_0x66ac69){return _0x499bde<_0x66ac69;},'cOViT':function(_0xce62ae,_0x382c85){return _0xce62ae+_0x382c85;}},_0x2af417=_0x48242c['id']||await getActiveFeatureId();!_0x2af417&&(console[_0x4c3da1(0x1b3)](_0x4c3da1(0x1a5)),console[_0x4c3da1(0x1b3)](_0x4c3da1(0x1ea)),process[_0x4c3da1(0x1ad)](0x1));const _0x12a859=await _0x31a416[_0x4c3da1(0x1ab)](getFeature,_0x2af417);_0x12a859['latestReview']&&!_0x12a859['latestReview'][_0x4c3da1(0x144)]&&(console[_0x4c3da1(0x1b3)](_0x31a416['LSbtf']),console[_0x4c3da1(0x1b3)](_0x31a416[_0x4c3da1(0x1b6)]),console[_0x4c3da1(0x1b3)]('\x20\x20'+_0x12a859[_0x4c3da1(0x1bd)]),process[_0x4c3da1(0x1ad)](0x1));const _0x3e3884=_0x12a859['checklistItems']||[];_0x3e3884['length']===0x0&&(console['error'](_0x31a416['lElDM']),process['exit'](0x1));if(_0x48242c['scenario']===undefined){console['error'](_0x4c3da1(0x12e)),console['log']('\x0aAvailable\x20scenarios:');for(let _0x288bea=0x0;_0x31a416['dWsWh'](_0x288bea,_0x3e3884[_0x4c3da1(0x16b)]);_0x288bea++){console[_0x4c3da1(0x130)]('\x20\x20'+(_0x288bea+0x1)+'.\x20'+_0x3e3884[_0x288bea]['description']);}process[_0x4c3da1(0x1ad)](0x1);}const _0x22625e=_0x48242c['scenario']-0x1;if(_0x22625e<0x0||_0x31a416['fdawK'](_0x22625e,_0x3e3884[_0x4c3da1(0x16b)])){console[_0x4c3da1(0x1b3)](_0x4c3da1(0x1ef)+_0x48242c[_0x4c3da1(0x120)]+_0x4c3da1(0x1e2)+_0x3e3884[_0x4c3da1(0x16b)]+'\x20scenarios.'),console['log'](_0x4c3da1(0x150));for(let _0x3b3ae8=0x0;_0x31a416[_0x4c3da1(0x142)](_0x3b3ae8,_0x3e3884['length']);_0x3b3ae8++){console[_0x4c3da1(0x130)]('\x20\x20'+_0x31a416['cOViT'](_0x3b3ae8,0x1)+'.\x20'+_0x3e3884[_0x3b3ae8]['description']);}process[_0x4c3da1(0x1ad)](0x1);}const _0x104011=_0x3e3884[_0x22625e];await updateChecklistItem(_0x2af417,_0x104011['id'],{'description':_0x252880});const _0xb46ae6=await getFeature(_0x2af417);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0xb46ae6,_0xb46ae6['checklistItems']);}async function downloadFeedbackImage(_0x253834,_0x2a6d0d){const _0x1857e3=_0x2b49e1,_0x2138e0={'BSqCh':'feedback-images','rwVAH':function(_0x35412f,_0xfce2ad,_0x16b62b){return _0x35412f(_0xfce2ad,_0x16b62b);},'lTdvF':function(_0x296d0f,_0x41c219,_0x413aa4){return _0x296d0f(_0x41c219,_0x413aa4);}};try{const _0x368b52=join(getRangerDir(),_0x2138e0['BSqCh']);await _0x2138e0[_0x1857e3(0x1d3)](mkdir,_0x368b52,{'recursive':!![]});const _0x1e4fc1=join(_0x368b52,'comment_'+_0x2a6d0d+'.png'),_0x5b158f=await fetch(_0x253834);if(!_0x5b158f['ok'])return null;const _0x4f5e96=Buffer[_0x1857e3(0x1e8)](await _0x5b158f['arrayBuffer']());return await _0x2138e0['lTdvF'](writeFile,_0x1e4fc1,_0x4f5e96),_0x1e4fc1;}catch{return null;}}export async function featureGetReview(_0x4f4b2e){const _0x2233f7=_0x2b49e1,_0x56ab49={'YsdJR':function(_0x33ca50){return _0x33ca50();},'hvWVb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ZytxV':function(_0x4cba44,_0x83e8a6){return _0x4cba44(_0x83e8a6);},'EhRTP':function(_0x110c9e,_0x4ad4){return _0x110c9e<_0x4ad4;},'nVDKS':function(_0x4e6b9f,_0x2c692d){return _0x4e6b9f+_0x2c692d;},'pRJyR':_0x2233f7(0x1a8),'wjPav':_0x2233f7(0x178),'tkdLd':_0x2233f7(0x15e),'glsDo':function(_0x4f2630,_0x859de8,_0x1042f3){return _0x4f2630(_0x859de8,_0x1042f3);},'CaqLh':function(_0x4101cd,_0x4f4021){return _0x4101cd===_0x4f4021;},'gInXv':'point','lzDRq':function(_0x38214b,_0x3b3634){return _0x38214b>=_0x3b3634;}},_0x592079=_0x4f4b2e||await _0x56ab49['YsdJR'](getActiveFeatureId);if(!_0x592079)throw new Error(_0x56ab49[_0x2233f7(0x184)]);const _0xd76151=await getFeature(_0x592079),{items:_0xba96f8}=await _0x56ab49[_0x2233f7(0x1c6)](getActionItems,_0x592079);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0xd76151[_0x2233f7(0x1d8)]+'\x20('+_0xd76151['id']+')\x0a');if(_0xba96f8[_0x2233f7(0x16b)]===0x0){console['log'](_0x2233f7(0x1b9));return;}for(let _0x80afd3=0x0;_0x56ab49[_0x2233f7(0x14e)](_0x80afd3,_0xba96f8['length']);_0x80afd3++){const _0x1de65c=_0xba96f8[_0x80afd3],_0x5e66af=_0x1de65c['version']>0x1?'\x20(v'+_0x1de65c[_0x2233f7(0x1c8)]+')':'',_0x5ba148=await getItemFeedback(_0x592079,_0x1de65c['id']);if(_0x5ba148['unaddressedComments'][_0x2233f7(0x16b)]>0x0){console[_0x2233f7(0x130)]('Scenario\x20'+_0x56ab49[_0x2233f7(0x160)](_0x80afd3,0x1)+':\x20\x22'+_0x1de65c['description']+'\x22'+_0x5e66af+_0x2233f7(0x148)+_0x5ba148[_0x2233f7(0x198)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x3aaa74 of _0x5ba148['unaddressedComments']){const _0xc6f4e8=new Date(_0x3aaa74['createdAt'])['toLocaleDateString'](_0x56ab49[_0x2233f7(0x1a0)],{'month':_0x56ab49[_0x2233f7(0x13f)],'day':_0x2233f7(0x114)}),_0x5d1003=_0x3aaa74['authorName']||_0x3aaa74[_0x2233f7(0x12c)]||_0x56ab49[_0x2233f7(0x1d0)];console['log']('\x20\x20💬\x20'+_0x5d1003+'\x20('+_0xc6f4e8+'):\x20\x22'+_0x3aaa74['content']+'\x22');if(_0x3aaa74[_0x2233f7(0x118)]){const _0x1d1ad3=await _0x56ab49['glsDo'](downloadFeedbackImage,_0x3aaa74['assetUrl'],_0x3aaa74['id']);_0x1d1ad3&&console[_0x2233f7(0x130)](_0x2233f7(0x137)+_0x1d1ad3);}if(_0x3aaa74[_0x2233f7(0x16d)]){const _0x1f30f6=_0x3aaa74['domRef'][_0x2233f7(0x1a6)]['split']('\x20>\x20')[_0x2233f7(0x19b)]()?.[_0x2233f7(0x1e1)](':')[0x0]||'element',_0x249291=_0x3aaa74['domRef']['textContent']?'\x20\x22'+_0x3aaa74['domRef'][_0x2233f7(0x19f)][_0x2233f7(0x140)](0x0,0x3c)+'\x22':'';console[_0x2233f7(0x130)](_0x2233f7(0x123)+_0x1f30f6+'>'+_0x249291),console[_0x2233f7(0x130)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3aaa74['domRef']['selector']);}else{if(_0x3aaa74[_0x2233f7(0x1b2)]){const _0x2591da=_0x3aaa74[_0x2233f7(0x1b2)][_0x2233f7(0x136)];_0x56ab49['CaqLh'](_0x3aaa74['spatial'][_0x2233f7(0x12b)],_0x56ab49[_0x2233f7(0x192)])&&_0x56ab49[_0x2233f7(0x1e9)](_0x2591da['length'],0x2)?console[_0x2233f7(0x130)](_0x2233f7(0x1cb)+_0x2591da[0x0]['toFixed'](0x2)+',\x20'+_0x2591da[0x1]['toFixed'](0x2)+')'):console[_0x2233f7(0x130)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3aaa74[_0x2233f7(0x1b2)]['type']+'\x20at\x20['+_0x2591da[_0x2233f7(0x1da)](_0x3bd6c5=>_0x3bd6c5[_0x2233f7(0x18d)](0x2))['join'](',\x20')+']');}}}if(_0x5ba148[_0x2233f7(0x183)]){console[_0x2233f7(0x130)](_0x2233f7(0x13d));for(const _0x55185e of _0x5ba148['canonicalFlow'][_0x2233f7(0x1e1)]('\x0a')){console['log'](_0x2233f7(0x180)+_0x55185e);}}}else console[_0x2233f7(0x130)](_0x2233f7(0x1b8)+(_0x80afd3+0x1)+_0x2233f7(0x194)+_0x1de65c['description']+'\x22'+_0x5e66af+_0x2233f7(0x139)),console['log'](_0x2233f7(0x1c7));console[_0x2233f7(0x130)]('');}}export async function featureDelete(_0x5091f0){const _0x5664b0=_0x2b49e1,_0x2ed0b2={'uHMGN':_0x5664b0(0x115),'OMYRd':function(_0x37ce03,_0x614528){return _0x37ce03(_0x614528);},'eaoRx':function(_0x599868,_0x212288){return _0x599868+_0x212288;},'PLhBg':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x50f461=_0x5091f0||await getActiveFeatureId();if(!_0x50f461)throw new Error(_0x2ed0b2['uHMGN']);const _0x3d4dfa=await _0x2ed0b2['OMYRd'](getFeature,_0x50f461);await softDeleteFeature(_0x50f461),console['log'](_0x5664b0(0x176)+_0x3d4dfa[_0x5664b0(0x1d8)]+'\x20('+_0x50f461+')'),console['log'](_0x2ed0b2[_0x5664b0(0x145)](_0x2ed0b2['PLhBg'],_0x50f461));}export async function featureRestore(_0x1b7eb5){const _0x12a7ec=_0x2b49e1;await restoreFeature(_0x1b7eb5);const _0x123ed0=await getFeature(_0x1b7eb5);console['log'](_0x12a7ec(0x12f)+_0x123ed0[_0x12a7ec(0x1d8)]+'\x20('+_0x1b7eb5+')'),displayFeature(_0x123ed0,_0x123ed0['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57299d,_0x2895f0){const _0x4ca42f=_0x350d,_0x4b9b6b=_0x57299d();while(!![]){try{const _0x49d113=-parseInt(_0x4ca42f(0xd0))/0x1*(-parseInt(_0x4ca42f(0xd7))/0x2)+-parseInt(_0x4ca42f(0xd8))/0x3+-parseInt(_0x4ca42f(0xd6))/0x4+-parseInt(_0x4ca42f(0xd4))/0x5+parseInt(_0x4ca42f(0xd1))/0x6+parseInt(_0x4ca42f(0xd5))/0x7*(-parseInt(_0x4ca42f(0xd9))/0x8)+-parseInt(_0x4ca42f(0xdb))/0x9*(-parseInt(_0x4ca42f(0xcf))/0xa);if(_0x49d113===_0x2895f0)break;else _0x4b9b6b['push'](_0x4b9b6b['shift']());}catch(_0x1dbebd){_0x4b9b6b['push'](_0x4b9b6b['shift']());}}}(_0xce2a,0xae72d));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x350d(_0x2fbde0,_0x2473fe){_0x2fbde0=_0x2fbde0-0xcf;const _0xce2acb=_0xce2a();let _0x350d8c=_0xce2acb[_0x2fbde0];return _0x350d8c;}export async function hook(_0x29d734,_0x170647){const _0x1899f0=_0x350d,_0x146e41={'ZQVgy':function(_0x2bf1bd,_0x5913b5){return _0x2bf1bd(_0x5913b5);}},_0x24cb66=HOOKS[_0x29d734];if(!_0x24cb66){const _0x2f22d9=Object['keys'](HOOKS)['join'](',\x20');console[_0x1899f0(0xd2)](_0x1899f0(0xd3)+_0x29d734),console['error'](_0x1899f0(0xdc)+_0x2f22d9),process[_0x1899f0(0xda)](0x1);}await _0x146e41['ZQVgy'](_0x24cb66,_0x170647);}function _0xce2a(){const _0x5f15f7=['error','Unknown\x20hook:\x20','4989310XvUtyI','357aBEGix','841288HtWRoO','2qgTfSF','1873875QELHSE','139840xrIsVK','exit','397818qSNeyf','Valid\x20hooks:\x20','600Uxfzin','199772qmVnAU','3521628AQRRty'];_0xce2a=function(){return _0x5f15f7;};return _0xce2a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x174d7d,_0x2e4f77){const _0x3fd4f9=_0x59e5,_0x476179=_0x174d7d();while(!![]){try{const _0x1c1a1c=parseInt(_0x3fd4f9(0xb7))/0x1*(parseInt(_0x3fd4f9(0xbd))/0x2)+parseInt(_0x3fd4f9(0xb9))/0x3+parseInt(_0x3fd4f9(0xb4))/0x4+parseInt(_0x3fd4f9(0xbe))/0x5*(parseInt(_0x3fd4f9(0xba))/0x6)+-parseInt(_0x3fd4f9(0xb6))/0x7+parseInt(_0x3fd4f9(0xb8))/0x8*(-parseInt(_0x3fd4f9(0xbb))/0x9)+parseInt(_0x3fd4f9(0xb5))/0xa*(-parseInt(_0x3fd4f9(0xb3))/0xb);if(_0x1c1a1c===_0x2e4f77)break;else _0x476179['push'](_0x476179['shift']());}catch(_0x5a222c){_0x476179['push'](_0x476179['shift']());}}}(_0x1eca,0x291e2));import{readHookInput}from'./output.js';function _0x1eca(){const _0x3048b7=['19064XfVjpP','260868VnbqJn','1152bRvYiu','747RIFvOR','session_id','846hzpTQM','6205hbfjvT','240592JgYdUm','345048fPWhiG','40LOIVdQ','891926oYmbvK','401vaTnhl'];_0x1eca=function(){return _0x3048b7;};return _0x1eca();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x59e5(_0x2b5a22,_0x1b7786){_0x2b5a22=_0x2b5a22-0xb3;const _0x1ecaf2=_0x1eca();let _0x59e53a=_0x1ecaf2[_0x2b5a22];return _0x59e53a;}const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';export async function autoPrompt(){const _0xee5af8=_0x59e5,_0x11b87c={'BVnVz':function(_0x330520,_0x3ffc32){return _0x330520(_0x3ffc32);}},_0x5874ca=await readHookInput(),_0xc517c=_0x5874ca?.[_0xee5af8(0xbc)];if(!_0xc517c)return;if(_0x11b87c['BVnVz'](isSessionEnabled,_0xc517c)||hasSessionBeenPrompted(_0xc517c))return;markSessionPrompted(_0xc517c),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x318ab0,_0x12f955){const _0x47f412=_0x3131,_0x2e147f=_0x318ab0();while(!![]){try{const _0x5b468a=parseInt(_0x47f412(0x6c))/0x1+parseInt(_0x47f412(0x6d))/0x2*(parseInt(_0x47f412(0x72))/0x3)+parseInt(_0x47f412(0x78))/0x4*(parseInt(_0x47f412(0x7a))/0x5)+-parseInt(_0x47f412(0x79))/0x6+parseInt(_0x47f412(0x71))/0x7+-parseInt(_0x47f412(0x77))/0x8+-parseInt(_0x47f412(0x70))/0x9*(-parseInt(_0x47f412(0x76))/0xa);if(_0x5b468a===_0x12f955)break;else _0x2e147f['push'](_0x2e147f['shift']());}catch(_0x1cb464){_0x2e147f['push'](_0x2e147f['shift']());}}}(_0x3166,0x62e35));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x3131(_0x2bf40a,_0x61bc56){_0x2bf40a=_0x2bf40a-0x6b;const _0x31667a=_0x3166();let _0x3131ec=_0x31667a[_0x2bf40a];return _0x3131ec;}import{printBlock}from'./output.js';export async function disable(_0x48d016){const _0x4d0c67=_0x3131,_0x3ece96={'KpHAH':_0x4d0c67(0x6f),'hPRcj':_0x4d0c67(0x74),'HLSsj':function(_0x55eb3c){return _0x55eb3c();},'GEtDR':_0x4d0c67(0x7b),'ogrNO':function(_0x895e86,_0x1a0ef5){return _0x895e86!==_0x1a0ef5;},'jTBsI':'master','ppsGI':function(_0x29c01e,_0x5501d1){return _0x29c01e(_0x5501d1);}},_0x15092d=_0x48d016||process['env'][_0x4d0c67(0x75)]||'';!_0x15092d&&(console['error'](_0x3ece96['KpHAH']),console['error'](_0x3ece96['hPRcj']),process['exit'](0x1));disableSession(_0x15092d);const _0x1b9171=_0x3ece96['HLSsj'](getCurrentBranch);_0x1b9171&&_0x1b9171!==_0x3ece96[_0x4d0c67(0x6b)]&&_0x3ece96['ogrNO'](_0x1b9171,_0x3ece96['jTBsI'])&&_0x3ece96['ppsGI'](disableBranch,_0x1b9171),_0x3ece96['ppsGI'](printBlock,_0x4d0c67(0x73)+(_0x1b9171&&_0x1b9171!==_0x3ece96['GEtDR']&&_0x3ece96[_0x4d0c67(0x6e)](_0x1b9171,_0x3ece96['jTBsI'])?'\x20and\x20branch\x20\x27'+_0x1b9171+'\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`.');}function _0x3166(){const _0x30635a=['main','GEtDR','650730haVwdX','10WCbOZa','ogrNO','Error:\x20No\x20session\x20ID\x20available.','52317fZXQDt','491421PLhyUV','143247dVJhnK','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','CLAUDE_SESSION_ID','640syedaN','2286416xlKGtI','236wNVSOL','3962706qNmYYe','1660dSDNqv'];_0x3166=function(){return _0x30635a;};return _0x3166();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56179f,_0x57aef2){const _0x463287=_0x2704,_0x42a43a=_0x56179f();while(!![]){try{const _0xfaa164=-parseInt(_0x463287(0xa2))/0x1*(-parseInt(_0x463287(0x9c))/0x2)+parseInt(_0x463287(0xaa))/0x3*(-parseInt(_0x463287(0x9b))/0x4)+parseInt(_0x463287(0x93))/0x5*(parseInt(_0x463287(0xab))/0x6)+parseInt(_0x463287(0xa4))/0x7*(-parseInt(_0x463287(0xa9))/0x8)+-parseInt(_0x463287(0x94))/0x9*(-parseInt(_0x463287(0xa3))/0xa)+-parseInt(_0x463287(0xa0))/0xb*(-parseInt(_0x463287(0xa8))/0xc)+-parseInt(_0x463287(0x97))/0xd*(-parseInt(_0x463287(0x9f))/0xe);if(_0xfaa164===_0x57aef2)break;else _0x42a43a['push'](_0x42a43a['shift']());}catch(_0x94fc7e){_0x42a43a['push'](_0x42a43a['shift']());}}}(_0x1c76,0xa839a));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 _0x1c76(){const _0x383323=['2YIIbcE','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','error','28IjYfxi','11ZjlJUP','xLAyG','1284449hklrlT','20xPnWLP','917XdmPGO','DMKqk','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','5755884ipIOuc','71776zZxDNC','6582jWQZdr','660kCMJZe','9155DksfXw','1615239faCEUD','\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`.','ranger\x20setup\x20--opencode','1843985HislrW','env','main','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','1356ANlFcB'];_0x1c76=function(){return _0x383323;};return _0x1c76();}function _0x2704(_0x45a603,_0x5cfd06){_0x45a603=_0x45a603-0x93;const _0x1c7608=_0x1c76();let _0x270494=_0x1c7608[_0x45a603];return _0x270494;}export async function enable(_0x455fb5){const _0x59942c=_0x2704,_0xbd2105={'DMKqk':function(_0x531b2c,_0x50db21){return _0x531b2c(_0x50db21);},'xLAyG':function(_0x4b51bd){return _0x4b51bd();},'TSLed':function(_0x1e5b0e,_0x1dc6f1){return _0x1e5b0e!==_0x1dc6f1;}},_0x18b54a=_0x455fb5||process[_0x59942c(0x98)]['CLAUDE_SESSION_ID']||'';!_0x18b54a&&(console['error']('Error:\x20No\x20session\x20ID\x20available.'),console[_0x59942c(0x9e)](_0x59942c(0x9d)),process['exit'](0x1));const _0x315a1c=_0xbd2105['DMKqk'](Boolean,_0x455fb5),_0x4eef35=await getToken();if(!_0x4eef35){const _0x2f71fe=_0x315a1c?_0x59942c(0x96):'ranger\x20setup',_0x5d821d=_0x315a1c?_0x59942c(0xa7):_0x59942c(0xa6);_0xbd2105[_0x59942c(0xa5)](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`'+_0x2f71fe+_0x59942c(0x9a)+_0x5d821d);return;}try{await update();}catch{}enableSession(_0x18b54a);const _0x41cdad=_0xbd2105[_0x59942c(0xa1)](getCurrentBranch),_0x4c4b3f=_0x41cdad&&_0x41cdad!==_0x59942c(0x99)&&_0xbd2105['TSLed'](_0x41cdad,'master')?'\x0a\x0a**Branch\x20\x27'+_0x41cdad+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0xd219e3=getRangerSkillContent();_0xbd2105[_0x59942c(0xa5)](printBlock,'#\x20RANGER\x20ENABLED'+_0x4c4b3f+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0xd219e3+_0x59942c(0x95));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x55f5(_0x183300,_0x131811){_0x183300=_0x183300-0x190;const _0x2ba5d0=_0x2ba5();let _0x55f56e=_0x2ba5d0[_0x183300];return _0x55f56e;}(function(_0x1f4bc8,_0x35e89f){const _0x12a5b1=_0x55f5,_0x108ccb=_0x1f4bc8();while(!![]){try{const _0x52ad05=parseInt(_0x12a5b1(0x196))/0x1*(-parseInt(_0x12a5b1(0x198))/0x2)+-parseInt(_0x12a5b1(0x190))/0x3+parseInt(_0x12a5b1(0x19a))/0x4+parseInt(_0x12a5b1(0x197))/0x5*(-parseInt(_0x12a5b1(0x191))/0x6)+-parseInt(_0x12a5b1(0x193))/0x7*(parseInt(_0x12a5b1(0x194))/0x8)+parseInt(_0x12a5b1(0x199))/0x9*(-parseInt(_0x12a5b1(0x192))/0xa)+parseInt(_0x12a5b1(0x195))/0xb;if(_0x52ad05===_0x35e89f)break;else _0x108ccb['push'](_0x108ccb['shift']());}catch(_0x5d7575){_0x108ccb['push'](_0x108ccb['shift']());}}}(_0x2ba5,0x95694));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x1ee771){const _0xf19134=_0x55f5,_0x480765=await getEnabledSessionId(_0x1ee771);if(!_0x480765)return;printBlock(_0xf19134(0x19b));}function _0x2ba5(){const _0x549a91=['27149397YwaZor','451799gemVkz','2120rsXmHe','2xrJcmg','4419hIRYBF','2538464ECxxde','===\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===','2559978KxrMne','6366tiuKjo','12530ClGFLU','843801krGCIC','8wcpRWT'];_0x2ba5=function(){return _0x549a91;};return _0x2ba5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5eeafd,_0x14629){var _0x141787=_0x5c32,_0x3c6d6a=_0x5eeafd();while(!![]){try{var _0x36cfcc=parseInt(_0x141787(0x9b))/0x1*(-parseInt(_0x141787(0x98))/0x2)+-parseInt(_0x141787(0x96))/0x3*(parseInt(_0x141787(0x99))/0x4)+parseInt(_0x141787(0x95))/0x5+parseInt(_0x141787(0x97))/0x6+-parseInt(_0x141787(0x9a))/0x7*(parseInt(_0x141787(0x94))/0x8)+parseInt(_0x141787(0x9c))/0x9+-parseInt(_0x141787(0x9d))/0xa;if(_0x36cfcc===_0x14629)break;else _0x3c6d6a['push'](_0x3c6d6a['shift']());}catch(_0x445f76){_0x3c6d6a['push'](_0x3c6d6a['shift']());}}}(_0x487a,0x7eb3b));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x5c32(_0x5f4d72,_0xc63361){_0x5f4d72=_0x5f4d72-0x94;var _0x487a9d=_0x487a();var _0x5c32b1=_0x487a9d[_0x5f4d72];return _0x5c32b1;}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x487a(){var _0x2ac51c=['4312190WSOIJo','6AtqLmN','4161702wDIyJa','38diQihz','1232068ksWMLL','21TtANVQ','9176ZHUOdr','1959174thdSxl','397510JGuGvE','1132376QKhCqw'];_0x487a=function(){return _0x2ac51c;};return _0x487a();}export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a7c86,_0x514c24){const _0x2a16e8=_0x5ade,_0x168901=_0x4a7c86();while(!![]){try{const _0x3931c4=parseInt(_0x2a16e8(0x77))/0x1+parseInt(_0x2a16e8(0x6d))/0x2*(-parseInt(_0x2a16e8(0x69))/0x3)+-parseInt(_0x2a16e8(0x68))/0x4*(-parseInt(_0x2a16e8(0x71))/0x5)+-parseInt(_0x2a16e8(0x6e))/0x6*(parseInt(_0x2a16e8(0x6b))/0x7)+-parseInt(_0x2a16e8(0x6c))/0x8+parseInt(_0x2a16e8(0x6f))/0x9*(-parseInt(_0x2a16e8(0x72))/0xa)+parseInt(_0x2a16e8(0x6a))/0xb*(parseInt(_0x2a16e8(0x75))/0xc);if(_0x3931c4===_0x514c24)break;else _0x168901['push'](_0x168901['shift']());}catch(_0x2df69c){_0x168901['push'](_0x168901['shift']());}}}(_0x257e,0xbc052));function _0x5ade(_0x1768ff,_0x41d7d4){_0x1768ff=_0x1768ff-0x67;const _0x257e65=_0x257e();let _0x5ade83=_0x257e65[_0x1768ff];return _0x5ade83;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x402a22){const _0x171569=_0x5ade;console[_0x171569(0x73)](_0x402a22);}export async function readHookInput(){const _0x275835=_0x5ade;let _0x3c85c2='';for await(const _0x2de853 of process['stdin']){_0x3c85c2+=_0x2de853;}try{return JSON[_0x275835(0x70)](_0x3c85c2);}catch{return null;}}function _0x257e(){const _0x23cac7=['kmfVi','770036xYtibh','1119IzDiXz','418HSiEZF','28511caJowY','3068712NwCeBH','214mjeYzC','198pcyfXI','243pASLql','parse','5rrRmWa','389540MpLtqS','log','aXqad','250332gbppNV','session_id','1394570yiEuCs'];_0x257e=function(){return _0x23cac7;};return _0x257e();}export async function getEnabledSessionId(_0x867ba4){const _0x284a55=_0x5ade,_0x54f1cd={'oJpvt':function(_0x1ceeb9,_0x59f466){return _0x1ceeb9(_0x59f466);},'aXqad':function(_0x420dbe){return _0x420dbe();}};if(_0x867ba4)return _0x54f1cd['oJpvt'](isSessionEnabled,_0x867ba4)?_0x867ba4:null;const _0x365bd0=await _0x54f1cd[_0x284a55(0x74)](readHookInput),_0x37e57f=_0x365bd0?.[_0x284a55(0x76)];if(!_0x37e57f||!isSessionEnabled(_0x37e57f))return null;return _0x37e57f;}export async function getEnabledHookContext(_0x1f2762){const _0x49b4aa=_0x5ade,_0x186118={'kmfVi':function(_0x4c4836,_0x3ab8fd){return _0x4c4836(_0x3ab8fd);}};if(_0x1f2762){if(!isSessionEnabled(_0x1f2762))return null;return{'sessionId':_0x1f2762,'input':{'session_id':_0x1f2762}};}const _0x3f5528=await readHookInput(),_0x10d5e5=_0x3f5528?.[_0x49b4aa(0x76)];if(!_0x10d5e5||!_0x186118[_0x49b4aa(0x67)](isSessionEnabled,_0x10d5e5))return null;return{'sessionId':_0x10d5e5,'input':_0x3f5528};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2856d0,_0x18dcb2){const _0x4b1571=_0x1244,_0x383cbc=_0x2856d0();while(!![]){try{const _0x4bed7f=-parseInt(_0x4b1571(0x10b))/0x1*(parseInt(_0x4b1571(0x109))/0x2)+-parseInt(_0x4b1571(0x116))/0x3+-parseInt(_0x4b1571(0x113))/0x4*(parseInt(_0x4b1571(0x10d))/0x5)+-parseInt(_0x4b1571(0x110))/0x6+parseInt(_0x4b1571(0x10c))/0x7+-parseInt(_0x4b1571(0x10a))/0x8*(parseInt(_0x4b1571(0x10e))/0x9)+parseInt(_0x4b1571(0x111))/0xa;if(_0x4bed7f===_0x18dcb2)break;else _0x383cbc['push'](_0x383cbc['shift']());}catch(_0x4d1b71){_0x383cbc['push'](_0x383cbc['shift']());}}}(_0x3d3b,0xc1102));function _0x1244(_0x2f3b3b,_0x32584d){_0x2f3b3b=_0x2f3b3b-0x109;const _0x3d3b77=_0x3d3b();let _0x124441=_0x3d3b77[_0x2f3b3b];return _0x124441;}function _0x3d3b(){const _0x3e88fb=['FYTlJ','4074033IhpRos','19148UVaCVa','72392ylYFHJ','54aJHfuW','2785090NLHtAT','55jDjmJy','63cHLVGa','gMTHW','9136788OUFjzJ','53242250VPFSAC','plan','534604ZzkSry','===\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==='];_0x3d3b=function(){return _0x3e88fb;};return _0x3d3b();}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x135b2a){const _0x57ce32=_0x1244,_0x3b18c8={'FYTlJ':function(_0x1a6d3d,_0x139ec8){return _0x1a6d3d(_0x139ec8);},'gMTHW':function(_0xc706a1,_0xefa7f8){return _0xc706a1!==_0xefa7f8;}},_0x5d351f=await _0x3b18c8[_0x57ce32(0x115)](getEnabledHookContext,_0x135b2a);if(!_0x5d351f)return;if(_0x3b18c8[_0x57ce32(0x10f)](_0x5d351f['input']['permission_mode'],_0x57ce32(0x112)))return;if(!_0x3b18c8[_0x57ce32(0x115)](shouldShowPlanReminder,_0x5d351f['sessionId']))return;_0x3b18c8[_0x57ce32(0x115)](printBlock,_0x57ce32(0x114));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x169f10,_0x12e1c0){const _0x1969d6=_0x2541,_0x2b166c=_0x169f10();while(!![]){try{const _0x429c61=-parseInt(_0x1969d6(0x76))/0x1*(parseInt(_0x1969d6(0x71))/0x2)+-parseInt(_0x1969d6(0x73))/0x3+-parseInt(_0x1969d6(0x7a))/0x4+-parseInt(_0x1969d6(0x72))/0x5*(parseInt(_0x1969d6(0x75))/0x6)+-parseInt(_0x1969d6(0x7c))/0x7+-parseInt(_0x1969d6(0x78))/0x8*(-parseInt(_0x1969d6(0x7b))/0x9)+parseInt(_0x1969d6(0x79))/0xa;if(_0x429c61===_0x12e1c0)break;else _0x2b166c['push'](_0x2b166c['shift']());}catch(_0x1dde19){_0x2b166c['push'](_0x2b166c['shift']());}}}(_0x5779,0x67001));import{printBlock,getEnabledSessionId}from'./output.js';function _0x5779(){const _0x1fbe4f=['28pRfGbS','cqJWM','374128dwUMwZ','15358200wdhiNO','1431364czeORw','99kauqGL','4970028wYpOIg','5874lcEAVg','1651350pdEEcT','444018sNqQLv','===\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===','6qcnLpn'];_0x5779=function(){return _0x1fbe4f;};return _0x5779();}function _0x2541(_0x23c8f3,_0x184da7){_0x23c8f3=_0x23c8f3-0x71;const _0x577979=_0x5779();let _0x25412e=_0x577979[_0x23c8f3];return _0x25412e;}export async function planStart(_0x24e089){const _0x26ae1=_0x2541,_0x174a5e={'UApLf':function(_0x524573,_0x2a9d9c){return _0x524573(_0x2a9d9c);},'cqJWM':function(_0x14e334,_0x50f0c6){return _0x14e334(_0x50f0c6);}},_0x5043dc=await _0x174a5e['UApLf'](getEnabledSessionId,_0x24e089);if(!_0x5043dc)return;_0x174a5e[_0x26ae1(0x77)](printBlock,_0x26ae1(0x74));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2625(){const _0x5cb3c3=['14UITNyr','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.','1996915RdUNfI','6sTHQRF','261564ijbVMX','HAmIC','1276360ZvccER','stringify','309184pxoGoF','269890gPMCBb','PDJkH','806626fVIBhz','log','63mBPeEf','3gVTWqh','211007fbBkke','PostToolUse','429GdMpGm'];_0x2625=function(){return _0x5cb3c3;};return _0x2625();}function _0x5ef8(_0x151e66,_0x2039a1){_0x151e66=_0x151e66-0x69;const _0x2625a5=_0x2625();let _0x5ef83a=_0x2625a5[_0x151e66];return _0x5ef83a;}(function(_0x5a3d6b,_0x3e7cc8){const _0x32956f=_0x5ef8,_0xcb1bb=_0x5a3d6b();while(!![]){try{const _0x48f462=-parseInt(_0x32956f(0x77))/0x1+-parseInt(_0x32956f(0x73))/0x2+-parseInt(_0x32956f(0x76))/0x3*(-parseInt(_0x32956f(0x70))/0x4)+parseInt(_0x32956f(0x6a))/0x5*(parseInt(_0x32956f(0x6b))/0x6)+-parseInt(_0x32956f(0x7a))/0x7*(parseInt(_0x32956f(0x6e))/0x8)+-parseInt(_0x32956f(0x75))/0x9*(parseInt(_0x32956f(0x71))/0xa)+parseInt(_0x32956f(0x79))/0xb*(parseInt(_0x32956f(0x6c))/0xc);if(_0x48f462===_0x3e7cc8)break;else _0xcb1bb['push'](_0xcb1bb['shift']());}catch(_0x535fc6){_0xcb1bb['push'](_0xcb1bb['shift']());}}}(_0x2625,0x31e8d));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x59a898){const _0x192eb0=_0x5ef8,_0x420a23={'HAmIC':function(_0x5441c6,_0x8865ec){return _0x5441c6(_0x8865ec);},'fKVlB':function(_0x22fe8e,_0x2efa01){return _0x22fe8e(_0x2efa01);},'PDJkH':_0x192eb0(0x78)},_0x4c94ef=await getEnabledSessionId(_0x59a898);if(!_0x4c94ef)return;_0x420a23[_0x192eb0(0x6d)](updateBranchTracking,_0x4c94ef);const _0x1d401f=await getToken();if(!_0x1d401f)return;const _0xe41bb5=_0x420a23['fKVlB'](getSessionEntry,_0x4c94ef);if(_0xe41bb5){const _0x3da4c5={'hookSpecificOutput':{'hookEventName':_0x192eb0(0x78),'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[_0x192eb0(0x6f)](_0x3da4c5));return;}const _0x569f92={'hookSpecificOutput':{'hookEventName':_0x420a23[_0x192eb0(0x72)],'additionalContext':_0x192eb0(0x69)}};console[_0x192eb0(0x74)](JSON[_0x192eb0(0x6f)](_0x569f92));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x11af(){const _0x23c6e3=['533228hxMmvf','376420RLTVsA','534EYKsjM','37256bfASbP','110CljjYD','1555baaTRH','285578TgorgY','2208501RNeJlY','413eqLVkE','3APTZZo','5453XKgVLO','dqwBK'];_0x11af=function(){return _0x23c6e3;};return _0x11af();}(function(_0x13166a,_0x138240){const _0x482688=_0x2317,_0x28c0e4=_0x13166a();while(!![]){try{const _0x5c978f=-parseInt(_0x482688(0x1be))/0x1+-parseInt(_0x482688(0x1c6))/0x2+-parseInt(_0x482688(0x1bd))/0x3*(parseInt(_0x482688(0x1c0))/0x4)+-parseInt(_0x482688(0x1c5))/0x5*(-parseInt(_0x482688(0x1c2))/0x6)+parseInt(_0x482688(0x1bc))/0x7*(parseInt(_0x482688(0x1c3))/0x8)+-parseInt(_0x482688(0x1bb))/0x9+-parseInt(_0x482688(0x1c1))/0xa*(-parseInt(_0x482688(0x1c4))/0xb);if(_0x5c978f===_0x138240)break;else _0x28c0e4['push'](_0x28c0e4['shift']());}catch(_0x951e5c){_0x28c0e4['push'](_0x28c0e4['shift']());}}}(_0x11af,0x25174));import{getToken}from'../utils/keychain.js';function _0x2317(_0x4eab3c,_0x8ac1eb){_0x4eab3c=_0x4eab3c-0x1bb;const _0x11afed=_0x11af();let _0x231763=_0x11afed[_0x4eab3c];return _0x231763;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x2148f0){const _0x1787b1=_0x2317,_0x136b52={'dqwBK':function(_0x549c95,_0x4b3b66){return _0x549c95(_0x4b3b66);}},_0x4862f6=await _0x136b52[_0x1787b1(0x1bf)](getEnabledSessionId,_0x2148f0);if(!_0x4862f6)return;try{const _0xbfa91e=await getToken();if(!_0xbfa91e)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b7367,_0x71896e){const _0x5bb1ef=_0x2f6e,_0x594c24=_0x3b7367();while(!![]){try{const _0x4910f6=parseInt(_0x5bb1ef(0x1e3))/0x1*(parseInt(_0x5bb1ef(0x1de))/0x2)+parseInt(_0x5bb1ef(0x1d9))/0x3+parseInt(_0x5bb1ef(0x1e1))/0x4+-parseInt(_0x5bb1ef(0x1d8))/0x5+parseInt(_0x5bb1ef(0x1d7))/0x6*(parseInt(_0x5bb1ef(0x1e2))/0x7)+-parseInt(_0x5bb1ef(0x1db))/0x8*(parseInt(_0x5bb1ef(0x1e0))/0x9)+-parseInt(_0x5bb1ef(0x1dc))/0xa*(parseInt(_0x5bb1ef(0x1df))/0xb);if(_0x4910f6===_0x71896e)break;else _0x594c24['push'](_0x594c24['shift']());}catch(_0x58e603){_0x594c24['push'](_0x594c24['shift']());}}}(_0x462e,0x57842));function _0x462e(){const _0x1b6d4d=['848ZiSMvN','40hsKyLN','rcAeu','1430998EJmyzH','3363987yhqvsO','9171AYMVEw','1743644LIpukq','2182271RIiivY','1MYgjgd','6NzpqGR','2062590xbJbGo','1917309DrHket','clear'];_0x462e=function(){return _0x1b6d4d;};return _0x462e();}function _0x2f6e(_0x35635a,_0x2f0a19){_0x35635a=_0x35635a-0x1d7;const _0x462e0f=_0x462e();let _0x2f6e55=_0x462e0f[_0x35635a];return _0x2f6e55;}import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x2501d9){const _0x397b57=_0x2f6e,_0x5578da={'rcAeu':_0x397b57(0x1da)};let _0x3a8aad=_0x2501d9,_0x5a8164;if(!_0x2501d9){const _0x4fc06d=await readHookInput();_0x3a8aad=_0x4fc06d?.['session_id'],_0x5a8164=_0x4fc06d?.['reason'];}if(!_0x3a8aad)return;_0x5a8164===_0x5578da[_0x397b57(0x1dd)]&&recordEnabledSessionCleared(_0x3a8aad);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3786a1,_0x7f2cb8){const _0x544ac2=_0x1bd0,_0x2b088f=_0x3786a1();while(!![]){try{const _0x3a6866=-parseInt(_0x544ac2(0x145))/0x1+-parseInt(_0x544ac2(0x147))/0x2*(parseInt(_0x544ac2(0x141))/0x3)+-parseInt(_0x544ac2(0x143))/0x4+parseInt(_0x544ac2(0x139))/0x5+parseInt(_0x544ac2(0x14c))/0x6*(-parseInt(_0x544ac2(0x13d))/0x7)+parseInt(_0x544ac2(0x14a))/0x8+-parseInt(_0x544ac2(0x13c))/0x9*(-parseInt(_0x544ac2(0x14e))/0xa);if(_0x3a6866===_0x7f2cb8)break;else _0x2b088f['push'](_0x2b088f['shift']());}catch(_0x3079bc){_0x2b088f['push'](_0x2b088f['shift']());}}}(_0x3e80,0x2d0ff));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x1bd0(_0x551b54,_0x432f9b){_0x551b54=_0x551b54-0x138;const _0x3e80d2=_0x3e80();let _0x1bd02c=_0x3e80d2[_0x551b54];return _0x1bd02c;}import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x3f962d){const _0x3435bc=_0x1bd0,_0xbf1da9={'WoFIr':function(_0x4081c1,_0x2d0677){return _0x4081c1||_0x2d0677;},'LuEfs':function(_0x5b9c3b,_0x1f6bc1){return _0x5b9c3b&&_0x1f6bc1;},'HFpvm':function(_0x493542,_0x347f7c){return _0x493542(_0x347f7c);},'cpLiE':function(_0x4d081f,_0x22c2a5){return _0x4d081f(_0x22c2a5);},'BlLbS':function(_0x104a72,_0x4b468){return _0x104a72(_0x4b468);},'ahTVF':_0x3435bc(0x13b),'sdIHx':_0x3435bc(0x150),'VXAIa':'SessionStart','GGdXX':function(_0x4b2861,_0x5ae479){return _0x4b2861+_0x5ae479;}};let _0x3a52e9=_0xbf1da9[_0x3435bc(0x146)](_0x3f962d,''),_0x510c18;if(!_0x3f962d){let _0x1cb206='';for await(const _0x5411d0 of process['stdin']){_0x1cb206+=_0x5411d0;}try{const _0x5bc6ef=JSON[_0x3435bc(0x152)](_0x1cb206);_0x3a52e9=_0x5bc6ef[_0x3435bc(0x14d)]||'',_0x510c18=_0x5bc6ef['source'];}catch{}const _0x1a19db=process[_0x3435bc(0x151)][_0x3435bc(0x14f)];if(_0xbf1da9['LuEfs'](_0x1a19db,_0x3a52e9))try{await appendFile(_0x1a19db,_0x3435bc(0x14b)+_0x3a52e9+'\x22\x0a');}catch{}}if(_0x3a52e9){_0xbf1da9['HFpvm'](shouldAutoEnableAfterClear,_0x510c18)&&autoEnableAfterClear(_0x3a52e9);_0xbf1da9['cpLiE'](initBranchTracking,_0x3a52e9);const _0x2992b6=isSessionEnabled(_0x3a52e9);try{const _0x50464=_0xbf1da9[_0x3435bc(0x138)](createTelemetryCollector,_0x3435bc(0x140));await _0x50464['trackCommandStart']({'sessionId':_0x3a52e9,'hooksEnabled':_0x2992b6}),await _0x50464[_0x3435bc(0x13e)](_0xbf1da9[_0x3435bc(0x153)]);}catch{}if(_0x2992b6){const _0x16aa49=getCurrentBranch(),_0x1cc748=_0x16aa49&&_0x16aa49!==_0x3435bc(0x13f)&&_0x16aa49!==_0xbf1da9[_0x3435bc(0x149)]?_0x3435bc(0x142)+_0x16aa49+')':'',_0x5ce3a4={'hookSpecificOutput':{'hookEventName':_0xbf1da9[_0x3435bc(0x144)],'additionalContext':_0xbf1da9[_0x3435bc(0x148)](RANGER_AUTO_ENABLED_PROMPT,_0x1cc748)}};console[_0x3435bc(0x13a)](JSON['stringify'](_0x5ce3a4));}}}function _0x3e80(){const _0x26d38b=['ahTVF','BlLbS','498140vgIFod','log','success','316548FaEqEh','14knneKp','trackCommandEnd','main','hook:session-start','9gszEQH','\x20(Branch:\x20','401364bTdkch','VXAIa','339209WIxvIP','WoFIr','3070bJNsGT','GGdXX','sdIHx','1707792qFFfWE','export\x20CLAUDE_SESSION_ID=\x22','2760LRORZp','session_id','90IBmEFD','CLAUDE_ENV_FILE','master','env','parse'];_0x3e80=function(){return _0x26d38b;};return _0x3e80();}
|